diff --git a/Cargo.lock b/Cargo.lock index 6a666a43..bb2775f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.119.0" +version = "0.120.0" dependencies = [ "prost", "prost-types", diff --git a/proto/sentry_protos/billing/v1/services/package/v1/package.proto b/proto/sentry_protos/billing/v1/services/package/v1/package.proto index 64440e58..4fc8de9e 100644 --- a/proto/sentry_protos/billing/v1/services/package/v1/package.proto +++ b/proto/sentry_protos/billing/v1/services/package/v1/package.proto @@ -39,6 +39,11 @@ message LineItemConfig { // Whether this LineItem is eligible for a product trial. bool can_product_trial = 12; + // Whether staff can start a product trial of this LineItem, though customers cannot (ie Size Analysis). + // Staff can also start a product trial of any LineItem with can_product_trial set. + // Set at most one of can_product_trial and can_admin_product_trial. + bool can_admin_product_trial = 14; + sentry_protos.billing.v1.common.v1.BillingType billing_type = 13; } @@ -75,6 +80,11 @@ message SharedLineItemPool { // Whether this LineItem is eligible for a product trial. bool can_product_trial = 11; + + // Whether staff can start a product trial of this pool, though customers cannot. + // Staff can also start a product trial of any pool with can_product_trial set. + // Set at most one of can_product_trial and can_admin_product_trial. + bool can_admin_product_trial = 12; } // Non-volume feature limits tied to a package tier (dashboards, metric diff --git a/rust/src/sentry_protos.billing.v1.services.package.v1.rs b/rust/src/sentry_protos.billing.v1.services.package.v1.rs index c303b761..d79758a8 100644 --- a/rust/src/sentry_protos.billing.v1.services.package.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.package.v1.rs @@ -29,6 +29,11 @@ pub struct LineItemConfig { /// Whether this LineItem is eligible for a product trial. #[prost(bool, tag = "12")] pub can_product_trial: bool, + /// Whether staff can start a product trial of this LineItem, though customers cannot (ie Size Analysis). + /// Staff can also start a product trial of any LineItem with can_product_trial set. + /// Set at most one of can_product_trial and can_admin_product_trial. + #[prost(bool, tag = "14")] + pub can_admin_product_trial: bool, #[prost(enumeration = "super::super::super::common::v1::BillingType", tag = "13")] pub billing_type: i32, /// how many of this lineitem are included in the package, the customer can reserve more on their contract @@ -107,6 +112,11 @@ pub struct SharedLineItemPool { /// Whether this LineItem is eligible for a product trial. #[prost(bool, tag = "11")] pub can_product_trial: bool, + /// Whether staff can start a product trial of this pool, though customers cannot. + /// Staff can also start a product trial of any pool with can_product_trial set. + /// Set at most one of can_product_trial and can_admin_product_trial. + #[prost(bool, tag = "12")] + pub can_admin_product_trial: bool, /// How many units are available for a PackageConfig during a subscription trial? For packages that are not eligible for trials, /// this field will be unset for all line items. #[prost(oneof = "shared_line_item_pool::TrialUnits", tags = "9, 10")]