@openmeter/sdk 1.0.0-beta.217 → 1.0.0-beta.219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,7 @@ export declare const createAddonBody: zod.ZodObject<{
112
112
  key: zod.ZodString;
113
113
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
114
114
  name: zod.ZodString;
115
- rateCards: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
115
+ rateCards: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
116
116
  billingCadence: zod.ZodNullable<zod.ZodString>;
117
117
  description: zod.ZodOptional<zod.ZodString>;
118
118
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -145,7 +145,7 @@ export declare const createAddonBody: zod.ZodObject<{
145
145
  quantity: string;
146
146
  } | undefined;
147
147
  }>>;
148
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
148
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
149
149
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
150
150
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
151
151
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -367,7 +367,7 @@ export declare const createAddonBody: zod.ZodObject<{
367
367
  quantity: string;
368
368
  } | undefined;
369
369
  }>>;
370
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
370
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
371
371
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
372
372
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
373
373
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -417,7 +417,7 @@ export declare const createAddonBody: zod.ZodObject<{
417
417
  key: zod.ZodString;
418
418
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
419
419
  name: zod.ZodString;
420
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
420
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
421
421
  amount: zod.ZodString;
422
422
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
423
423
  type: zod.ZodEnum<["flat"]>;
@@ -1079,7 +1079,7 @@ export declare const updateAddonBody: zod.ZodObject<{
1079
1079
  instanceType: zod.ZodEnum<["single", "multiple"]>;
1080
1080
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
1081
1081
  name: zod.ZodString;
1082
- rateCards: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
1082
+ rateCards: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
1083
1083
  billingCadence: zod.ZodNullable<zod.ZodString>;
1084
1084
  description: zod.ZodOptional<zod.ZodString>;
1085
1085
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -1112,7 +1112,7 @@ export declare const updateAddonBody: zod.ZodObject<{
1112
1112
  quantity: string;
1113
1113
  } | undefined;
1114
1114
  }>>;
1115
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
1115
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1116
1116
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
1117
1117
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
1118
1118
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -1334,7 +1334,7 @@ export declare const updateAddonBody: zod.ZodObject<{
1334
1334
  quantity: string;
1335
1335
  } | undefined;
1336
1336
  }>>;
1337
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
1337
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1338
1338
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
1339
1339
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
1340
1340
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -1384,7 +1384,7 @@ export declare const updateAddonBody: zod.ZodObject<{
1384
1384
  key: zod.ZodString;
1385
1385
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
1386
1386
  name: zod.ZodString;
1387
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
1387
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
1388
1388
  amount: zod.ZodString;
1389
1389
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
1390
1390
  type: zod.ZodEnum<["flat"]>;
@@ -2236,7 +2236,7 @@ export declare const updateAppBodyNameMaxOne = 256;
2236
2236
  export declare const updateAppBodyDescriptionMaxOne = 1024;
2237
2237
  export declare const updateAppBodyNameMaxTwo = 256;
2238
2238
  export declare const updateAppBodyDescriptionMaxTwo = 1024;
2239
- export declare const updateAppBody: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2239
+ export declare const updateAppBody: zod.ZodUnion<[zod.ZodObject<{
2240
2240
  description: zod.ZodOptional<zod.ZodString>;
2241
2241
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
2242
2242
  name: zod.ZodString;
@@ -2570,7 +2570,7 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
2570
2570
  from: Date;
2571
2571
  to: Date;
2572
2572
  }>;
2573
- price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2573
+ price: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
2574
2574
  amount: zod.ZodString;
2575
2575
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
2576
2576
  type: zod.ZodEnum<["flat"]>;
@@ -2753,7 +2753,7 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
2753
2753
  } | undefined;
2754
2754
  }>>;
2755
2755
  featureKey: zod.ZodOptional<zod.ZodString>;
2756
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2756
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
2757
2757
  amount: zod.ZodString;
2758
2758
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
2759
2759
  type: zod.ZodEnum<["flat"]>;
@@ -3635,7 +3635,7 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
3635
3635
  to: Date;
3636
3636
  }>;
3637
3637
  preLinePeriodQuantity: zod.ZodOptional<zod.ZodString>;
3638
- price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
3638
+ price: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
3639
3639
  amount: zod.ZodString;
3640
3640
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
3641
3641
  type: zod.ZodEnum<["flat"]>;
@@ -3819,7 +3819,7 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
3819
3819
  } | undefined;
3820
3820
  }>>;
3821
3821
  featureKey: zod.ZodOptional<zod.ZodString>;
3822
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
3822
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
3823
3823
  amount: zod.ZodString;
3824
3824
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
3825
3825
  type: zod.ZodEnum<["flat"]>;
@@ -4930,7 +4930,7 @@ export declare const updateInvoiceBody: zod.ZodObject<{
4930
4930
  from: Date;
4931
4931
  to: Date;
4932
4932
  }>;
4933
- price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
4933
+ price: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
4934
4934
  amount: zod.ZodString;
4935
4935
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
4936
4936
  type: zod.ZodEnum<["flat"]>;
@@ -5113,7 +5113,7 @@ export declare const updateInvoiceBody: zod.ZodObject<{
5113
5113
  } | undefined;
5114
5114
  }>>;
5115
5115
  featureKey: zod.ZodOptional<zod.ZodString>;
5116
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
5116
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
5117
5117
  amount: zod.ZodString;
5118
5118
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
5119
5119
  type: zod.ZodEnum<["flat"]>;
@@ -6326,7 +6326,7 @@ export declare const voidInvoiceActionParams: zod.ZodObject<{
6326
6326
  export declare const voidInvoiceActionBodyOverridesItemLineIdRegExp: RegExp;
6327
6327
  export declare const voidInvoiceActionBody: zod.ZodObject<{
6328
6328
  action: zod.ZodObject<{
6329
- action: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
6329
+ action: zod.ZodUnion<[zod.ZodObject<{
6330
6330
  type: zod.ZodEnum<["discard"]>;
6331
6331
  }, "strip", zod.ZodTypeAny, {
6332
6332
  type: "discard";
@@ -6362,7 +6362,7 @@ export declare const voidInvoiceActionBody: zod.ZodObject<{
6362
6362
  }>;
6363
6363
  overrides: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
6364
6364
  action: zod.ZodObject<{
6365
- action: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
6365
+ action: zod.ZodUnion<[zod.ZodObject<{
6366
6366
  type: zod.ZodEnum<["discard"]>;
6367
6367
  }, "strip", zod.ZodTypeAny, {
6368
6368
  type: "discard";
@@ -7445,8 +7445,6 @@ export declare const listCustomersQueryParams: zod.ZodObject<{
7445
7445
  * Get a customer by ID or key.
7446
7446
  * @summary Get customer
7447
7447
  */
7448
- export declare const getCustomerPathCustomerIdOrKeyRegExpOne: RegExp;
7449
- export declare const getCustomerPathCustomerIdOrKeyMaxTwo = 256;
7450
7448
  export declare const getCustomerParams: zod.ZodObject<{
7451
7449
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
7452
7450
  }, "strip", zod.ZodTypeAny, {
@@ -7465,8 +7463,6 @@ export declare const getCustomerQueryParams: zod.ZodObject<{
7465
7463
  * Update a customer by ID.
7466
7464
  * @summary Update customer
7467
7465
  */
7468
- export declare const updateCustomerPathCustomerIdOrKeyRegExpOne: RegExp;
7469
- export declare const updateCustomerPathCustomerIdOrKeyMaxTwo = 256;
7470
7466
  export declare const updateCustomerParams: zod.ZodObject<{
7471
7467
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
7472
7468
  }, "strip", zod.ZodTypeAny, {
@@ -7566,8 +7562,6 @@ export declare const updateCustomerBody: zod.ZodObject<{
7566
7562
  * Delete a customer by ID.
7567
7563
  * @summary Delete customer
7568
7564
  */
7569
- export declare const deleteCustomerPathCustomerIdOrKeyRegExpOne: RegExp;
7570
- export declare const deleteCustomerPathCustomerIdOrKeyMaxTwo = 256;
7571
7565
  export declare const deleteCustomerParams: zod.ZodObject<{
7572
7566
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
7573
7567
  }, "strip", zod.ZodTypeAny, {
@@ -7579,8 +7573,6 @@ export declare const deleteCustomerParams: zod.ZodObject<{
7579
7573
  * Get the overall access of a customer.
7580
7574
  * @summary Get customer access
7581
7575
  */
7582
- export declare const getCustomerAccessPathCustomerIdOrKeyRegExpOne: RegExp;
7583
- export declare const getCustomerAccessPathCustomerIdOrKeyMaxTwo = 256;
7584
7576
  export declare const getCustomerAccessParams: zod.ZodObject<{
7585
7577
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
7586
7578
  }, "strip", zod.ZodTypeAny, {
@@ -7592,8 +7584,6 @@ export declare const getCustomerAccessParams: zod.ZodObject<{
7592
7584
  * List customers app data.
7593
7585
  * @summary List customer app data
7594
7586
  */
7595
- export declare const listCustomerAppDataPathCustomerIdOrKeyRegExpOne: RegExp;
7596
- export declare const listCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
7597
7587
  export declare const listCustomerAppDataParams: zod.ZodObject<{
7598
7588
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
7599
7589
  }, "strip", zod.ZodTypeAny, {
@@ -7621,8 +7611,6 @@ export declare const listCustomerAppDataQueryParams: zod.ZodObject<{
7621
7611
  * Upsert customer app data.
7622
7612
  * @summary Upsert customer app data
7623
7613
  */
7624
- export declare const upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne: RegExp;
7625
- export declare const upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
7626
7614
  export declare const upsertCustomerAppDataParams: zod.ZodObject<{
7627
7615
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
7628
7616
  }, "strip", zod.ZodTypeAny, {
@@ -7643,7 +7631,7 @@ export declare const upsertCustomerAppDataBodyAppDescriptionMaxOne = 1024;
7643
7631
  export declare const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMaxOne = 64;
7644
7632
  export declare const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne: RegExp;
7645
7633
  export declare const upsertCustomerAppDataBodyIdRegExpTwo: RegExp;
7646
- export declare const upsertCustomerAppDataBodyItem: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
7634
+ export declare const upsertCustomerAppDataBodyItem: zod.ZodUnion<[zod.ZodObject<{
7647
7635
  id: zod.ZodOptional<zod.ZodString>;
7648
7636
  stripeCustomerId: zod.ZodString;
7649
7637
  stripeDefaultPaymentMethodId: zod.ZodOptional<zod.ZodString>;
@@ -7980,7 +7968,7 @@ export declare const upsertCustomerAppDataBodyItem: zod.ZodDiscriminatedUnion<"t
7980
7968
  metadata?: Record<string, string> | null | undefined;
7981
7969
  } | undefined;
7982
7970
  }>]>;
7983
- export declare const upsertCustomerAppDataBody: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
7971
+ export declare const upsertCustomerAppDataBody: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
7984
7972
  id: zod.ZodOptional<zod.ZodString>;
7985
7973
  stripeCustomerId: zod.ZodString;
7986
7974
  stripeDefaultPaymentMethodId: zod.ZodOptional<zod.ZodString>;
@@ -8321,8 +8309,6 @@ export declare const upsertCustomerAppDataBody: zod.ZodArray<zod.ZodDiscriminate
8321
8309
  * Delete customer app data.
8322
8310
  * @summary Delete customer app data
8323
8311
  */
8324
- export declare const deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne: RegExp;
8325
- export declare const deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
8326
8312
  export declare const deleteCustomerAppDataPathAppIdRegExp: RegExp;
8327
8313
  export declare const deleteCustomerAppDataParams: zod.ZodObject<{
8328
8314
  appId: zod.ZodString;
@@ -8334,12 +8320,554 @@ export declare const deleteCustomerAppDataParams: zod.ZodObject<{
8334
8320
  customerIdOrKey: string;
8335
8321
  appId: string;
8336
8322
  }>;
8323
+ /**
8324
+ * OpenMeter has three types of entitlements: metered, boolean, and static. The type property determines the type of entitlement. The underlying feature has to be compatible with the entitlement type specified in the request (e.g., a metered entitlement needs a feature associated with a meter).
8325
+
8326
+ - Boolean entitlements define static feature access, e.g. "Can use SSO authentication".
8327
+ - Static entitlements let you pass along a configuration while granting access, e.g. "Using this feature with X Y settings" (passed in the config).
8328
+ - Metered entitlements have many use cases, from setting up usage-based access to implementing complex credit systems. Example: The customer can use 10000 AI tokens during the usage period of the entitlement.
8329
+
8330
+ A given customer can only have one active (non-deleted) entitlement per featureKey. If you try to create a new entitlement for a featureKey that already has an active entitlement, the request will fail with a 409 error.
8331
+
8332
+ Once an entitlement is created you cannot modify it, only delete it.
8333
+ * @summary Create a customer entitlement
8334
+ */
8335
+ export declare const createCustomerEntitlementParams: zod.ZodObject<{
8336
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8337
+ }, "strip", zod.ZodTypeAny, {
8338
+ customerIdOrKey: string;
8339
+ }, {
8340
+ customerIdOrKey: string;
8341
+ }>;
8342
+ export declare const createCustomerEntitlementBodyFeatureKeyMax = 64;
8343
+ export declare const createCustomerEntitlementBodyFeatureKeyRegExp: RegExp;
8344
+ export declare const createCustomerEntitlementBodyFeatureIdRegExp: RegExp;
8345
+ export declare const createCustomerEntitlementBodyIsSoftLimitDefault = false;
8346
+ export declare const createCustomerEntitlementBodyIsUnlimitedDefault = false;
8347
+ export declare const createCustomerEntitlementBodyIssueAfterResetMin = 0;
8348
+ export declare const createCustomerEntitlementBodyIssueAfterResetPriorityDefault = 1;
8349
+ export declare const createCustomerEntitlementBodyIssueAfterResetPriorityMax = 255;
8350
+ export declare const createCustomerEntitlementBodyPreserveOverageAtResetDefault = false;
8351
+ export declare const createCustomerEntitlementBodyFeatureKeyMaxOne = 64;
8352
+ export declare const createCustomerEntitlementBodyFeatureKeyRegExpOne: RegExp;
8353
+ export declare const createCustomerEntitlementBodyFeatureIdRegExpOne: RegExp;
8354
+ export declare const createCustomerEntitlementBodyFeatureKeyMaxTwo = 64;
8355
+ export declare const createCustomerEntitlementBodyFeatureKeyRegExpTwo: RegExp;
8356
+ export declare const createCustomerEntitlementBodyFeatureIdRegExpTwo: RegExp;
8357
+ export declare const createCustomerEntitlementBody: zod.ZodUnion<[zod.ZodObject<{
8358
+ featureId: zod.ZodOptional<zod.ZodString>;
8359
+ featureKey: zod.ZodOptional<zod.ZodString>;
8360
+ isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
8361
+ issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
8362
+ issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
8363
+ isUnlimited: zod.ZodOptional<zod.ZodBoolean>;
8364
+ measureUsageFrom: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["CURRENT_PERIOD_START", "NOW"]>, zod.ZodDate]>>;
8365
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8366
+ preserveOverageAtReset: zod.ZodOptional<zod.ZodBoolean>;
8367
+ type: zod.ZodEnum<["metered"]>;
8368
+ usagePeriod: zod.ZodObject<{
8369
+ anchor: zod.ZodOptional<zod.ZodDate>;
8370
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8371
+ }, "strip", zod.ZodTypeAny, {
8372
+ interval: string;
8373
+ anchor?: Date | undefined;
8374
+ }, {
8375
+ interval: string;
8376
+ anchor?: Date | undefined;
8377
+ }>;
8378
+ }, "strip", zod.ZodTypeAny, {
8379
+ type: "metered";
8380
+ usagePeriod: {
8381
+ interval: string;
8382
+ anchor?: Date | undefined;
8383
+ };
8384
+ issueAfterResetPriority: number;
8385
+ featureKey?: string | undefined;
8386
+ featureId?: string | undefined;
8387
+ metadata?: Record<string, string> | undefined;
8388
+ isSoftLimit?: boolean | undefined;
8389
+ issueAfterReset?: number | undefined;
8390
+ preserveOverageAtReset?: boolean | undefined;
8391
+ isUnlimited?: boolean | undefined;
8392
+ measureUsageFrom?: Date | "CURRENT_PERIOD_START" | "NOW" | undefined;
8393
+ }, {
8394
+ type: "metered";
8395
+ usagePeriod: {
8396
+ interval: string;
8397
+ anchor?: Date | undefined;
8398
+ };
8399
+ featureKey?: string | undefined;
8400
+ featureId?: string | undefined;
8401
+ metadata?: Record<string, string> | undefined;
8402
+ isSoftLimit?: boolean | undefined;
8403
+ issueAfterReset?: number | undefined;
8404
+ issueAfterResetPriority?: number | undefined;
8405
+ preserveOverageAtReset?: boolean | undefined;
8406
+ isUnlimited?: boolean | undefined;
8407
+ measureUsageFrom?: Date | "CURRENT_PERIOD_START" | "NOW" | undefined;
8408
+ }>, zod.ZodObject<{
8409
+ config: zod.ZodString;
8410
+ featureId: zod.ZodOptional<zod.ZodString>;
8411
+ featureKey: zod.ZodOptional<zod.ZodString>;
8412
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8413
+ type: zod.ZodEnum<["static"]>;
8414
+ usagePeriod: zod.ZodOptional<zod.ZodObject<{
8415
+ anchor: zod.ZodOptional<zod.ZodDate>;
8416
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8417
+ }, "strip", zod.ZodTypeAny, {
8418
+ interval: string;
8419
+ anchor?: Date | undefined;
8420
+ }, {
8421
+ interval: string;
8422
+ anchor?: Date | undefined;
8423
+ }>>;
8424
+ }, "strip", zod.ZodTypeAny, {
8425
+ type: "static";
8426
+ config: string;
8427
+ featureKey?: string | undefined;
8428
+ featureId?: string | undefined;
8429
+ metadata?: Record<string, string> | undefined;
8430
+ usagePeriod?: {
8431
+ interval: string;
8432
+ anchor?: Date | undefined;
8433
+ } | undefined;
8434
+ }, {
8435
+ type: "static";
8436
+ config: string;
8437
+ featureKey?: string | undefined;
8438
+ featureId?: string | undefined;
8439
+ metadata?: Record<string, string> | undefined;
8440
+ usagePeriod?: {
8441
+ interval: string;
8442
+ anchor?: Date | undefined;
8443
+ } | undefined;
8444
+ }>, zod.ZodObject<{
8445
+ featureId: zod.ZodOptional<zod.ZodString>;
8446
+ featureKey: zod.ZodOptional<zod.ZodString>;
8447
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8448
+ type: zod.ZodEnum<["boolean"]>;
8449
+ usagePeriod: zod.ZodOptional<zod.ZodObject<{
8450
+ anchor: zod.ZodOptional<zod.ZodDate>;
8451
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8452
+ }, "strip", zod.ZodTypeAny, {
8453
+ interval: string;
8454
+ anchor?: Date | undefined;
8455
+ }, {
8456
+ interval: string;
8457
+ anchor?: Date | undefined;
8458
+ }>>;
8459
+ }, "strip", zod.ZodTypeAny, {
8460
+ type: "boolean";
8461
+ featureKey?: string | undefined;
8462
+ featureId?: string | undefined;
8463
+ metadata?: Record<string, string> | undefined;
8464
+ usagePeriod?: {
8465
+ interval: string;
8466
+ anchor?: Date | undefined;
8467
+ } | undefined;
8468
+ }, {
8469
+ type: "boolean";
8470
+ featureKey?: string | undefined;
8471
+ featureId?: string | undefined;
8472
+ metadata?: Record<string, string> | undefined;
8473
+ usagePeriod?: {
8474
+ interval: string;
8475
+ anchor?: Date | undefined;
8476
+ } | undefined;
8477
+ }>]>;
8478
+ /**
8479
+ * List all entitlements for a customer. For checking entitlement access, use the /value endpoint instead.
8480
+ * @summary List customer entitlements
8481
+ */
8482
+ export declare const listCustomerEntitlementsParams: zod.ZodObject<{
8483
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8484
+ }, "strip", zod.ZodTypeAny, {
8485
+ customerIdOrKey: string;
8486
+ }, {
8487
+ customerIdOrKey: string;
8488
+ }>;
8489
+ export declare const listCustomerEntitlementsQueryIncludeDeletedDefault = false;
8490
+ export declare const listCustomerEntitlementsQueryParams: zod.ZodObject<{
8491
+ includeDeleted: zod.ZodOptional<zod.ZodBoolean>;
8492
+ }, "strip", zod.ZodTypeAny, {
8493
+ includeDeleted?: boolean | undefined;
8494
+ }, {
8495
+ includeDeleted?: boolean | undefined;
8496
+ }>;
8497
+ /**
8498
+ * Get entitlement by feature key. For checking entitlement access, use the /value endpoint instead.
8499
+ * @summary Get customer entitlement
8500
+ */
8501
+ export declare const getCustomerEntitlementPathFeatureKeyMax = 64;
8502
+ export declare const getCustomerEntitlementPathFeatureKeyRegExp: RegExp;
8503
+ export declare const getCustomerEntitlementParams: zod.ZodObject<{
8504
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8505
+ featureKey: zod.ZodString;
8506
+ }, "strip", zod.ZodTypeAny, {
8507
+ featureKey: string;
8508
+ customerIdOrKey: string;
8509
+ }, {
8510
+ featureKey: string;
8511
+ customerIdOrKey: string;
8512
+ }>;
8513
+ /**
8514
+ * Deleting an entitlement revokes access to the associated feature. As a single customer can only have one entitlement per featureKey, when "migrating" features you have to delete the old entitlements as well.
8515
+ As access and status checks can be historical queries, deleting an entitlement populates the deletedAt timestamp. When queried for a time before that, the entitlement is still considered active, you cannot have retroactive changes to access, which is important for, among other things, auditing.
8516
+ * @summary Delete customer entitlement
8517
+ */
8518
+ export declare const deleteCustomerEntitlementPathFeatureKeyMax = 64;
8519
+ export declare const deleteCustomerEntitlementPathFeatureKeyRegExp: RegExp;
8520
+ export declare const deleteCustomerEntitlementParams: zod.ZodObject<{
8521
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8522
+ featureKey: zod.ZodString;
8523
+ }, "strip", zod.ZodTypeAny, {
8524
+ featureKey: string;
8525
+ customerIdOrKey: string;
8526
+ }, {
8527
+ featureKey: string;
8528
+ customerIdOrKey: string;
8529
+ }>;
8530
+ /**
8531
+ * List all grants issued for an entitlement. The entitlement can be defined either by its id or featureKey.
8532
+ * @summary List customer entitlement grants
8533
+ */
8534
+ export declare const listCustomerEntitlementGrantsPathFeatureKeyMax = 64;
8535
+ export declare const listCustomerEntitlementGrantsPathFeatureKeyRegExp: RegExp;
8536
+ export declare const listCustomerEntitlementGrantsParams: zod.ZodObject<{
8537
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8538
+ featureKey: zod.ZodString;
8539
+ }, "strip", zod.ZodTypeAny, {
8540
+ featureKey: string;
8541
+ customerIdOrKey: string;
8542
+ }, {
8543
+ featureKey: string;
8544
+ customerIdOrKey: string;
8545
+ }>;
8546
+ export declare const listCustomerEntitlementGrantsQueryIncludeDeletedDefault = false;
8547
+ export declare const listCustomerEntitlementGrantsQueryParams: zod.ZodObject<{
8548
+ includeDeleted: zod.ZodOptional<zod.ZodBoolean>;
8549
+ orderBy: zod.ZodOptional<zod.ZodEnum<["id", "createdAt", "updatedAt"]>>;
8550
+ }, "strip", zod.ZodTypeAny, {
8551
+ orderBy?: "id" | "createdAt" | "updatedAt" | undefined;
8552
+ includeDeleted?: boolean | undefined;
8553
+ }, {
8554
+ orderBy?: "id" | "createdAt" | "updatedAt" | undefined;
8555
+ includeDeleted?: boolean | undefined;
8556
+ }>;
8557
+ /**
8558
+ * Grants define a behavior of granting usage for a metered entitlement. They can have complicated recurrence and rollover rules, thanks to which you can define a wide range of access patterns with a single grant, in most cases you don't have to periodically create new grants. You can only issue grants for active metered entitlements.
8559
+
8560
+ A grant defines a given amount of usage that can be consumed for the entitlement. The grant is in effect between its effective date and its expiration date. Specifying both is mandatory for new grants.
8561
+
8562
+ Grants have a priority setting that determines their order of use. Lower numbers have higher priority, with 0 being the highest priority.
8563
+
8564
+ Grants can have a recurrence setting intended to automate the manual reissuing of grants. For example, a daily recurrence is equal to reissuing that same grant every day (ignoring rollover settings).
8565
+
8566
+ Rollover settings define what happens to the remaining balance of a grant at a reset. Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
8567
+
8568
+ Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
8569
+ * @summary Create customer entitlement grant
8570
+ */
8571
+ export declare const createCustomerEntitlementGrantPathFeatureKeyMax = 64;
8572
+ export declare const createCustomerEntitlementGrantPathFeatureKeyRegExp: RegExp;
8573
+ export declare const createCustomerEntitlementGrantParams: zod.ZodObject<{
8574
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8575
+ featureKey: zod.ZodString;
8576
+ }, "strip", zod.ZodTypeAny, {
8577
+ featureKey: string;
8578
+ customerIdOrKey: string;
8579
+ }, {
8580
+ featureKey: string;
8581
+ customerIdOrKey: string;
8582
+ }>;
8583
+ export declare const createCustomerEntitlementGrantBodyAmountMin = 0;
8584
+ export declare const createCustomerEntitlementGrantBodyPriorityMax = 255;
8585
+ export declare const createCustomerEntitlementGrantBodyMaxRolloverAmountDefault = 0;
8586
+ export declare const createCustomerEntitlementGrantBodyMinRolloverAmountDefault = 0;
8587
+ export declare const createCustomerEntitlementGrantBody: zod.ZodObject<{
8588
+ amount: zod.ZodNumber;
8589
+ effectiveAt: zod.ZodDate;
8590
+ expiration: zod.ZodObject<{
8591
+ count: zod.ZodNumber;
8592
+ duration: zod.ZodEnum<["HOUR", "DAY", "WEEK", "MONTH", "YEAR"]>;
8593
+ }, "strip", zod.ZodTypeAny, {
8594
+ duration: "HOUR" | "DAY" | "WEEK" | "MONTH" | "YEAR";
8595
+ count: number;
8596
+ }, {
8597
+ duration: "HOUR" | "DAY" | "WEEK" | "MONTH" | "YEAR";
8598
+ count: number;
8599
+ }>;
8600
+ maxRolloverAmount: zod.ZodOptional<zod.ZodNumber>;
8601
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8602
+ minRolloverAmount: zod.ZodOptional<zod.ZodNumber>;
8603
+ priority: zod.ZodOptional<zod.ZodNumber>;
8604
+ recurrence: zod.ZodOptional<zod.ZodObject<{
8605
+ anchor: zod.ZodOptional<zod.ZodDate>;
8606
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8607
+ }, "strip", zod.ZodTypeAny, {
8608
+ interval: string;
8609
+ anchor?: Date | undefined;
8610
+ }, {
8611
+ interval: string;
8612
+ anchor?: Date | undefined;
8613
+ }>>;
8614
+ }, "strip", zod.ZodTypeAny, {
8615
+ amount: number;
8616
+ effectiveAt: Date;
8617
+ expiration: {
8618
+ duration: "HOUR" | "DAY" | "WEEK" | "MONTH" | "YEAR";
8619
+ count: number;
8620
+ };
8621
+ metadata?: Record<string, string> | undefined;
8622
+ maxRolloverAmount?: number | undefined;
8623
+ minRolloverAmount?: number | undefined;
8624
+ priority?: number | undefined;
8625
+ recurrence?: {
8626
+ interval: string;
8627
+ anchor?: Date | undefined;
8628
+ } | undefined;
8629
+ }, {
8630
+ amount: number;
8631
+ effectiveAt: Date;
8632
+ expiration: {
8633
+ duration: "HOUR" | "DAY" | "WEEK" | "MONTH" | "YEAR";
8634
+ count: number;
8635
+ };
8636
+ metadata?: Record<string, string> | undefined;
8637
+ maxRolloverAmount?: number | undefined;
8638
+ minRolloverAmount?: number | undefined;
8639
+ priority?: number | undefined;
8640
+ recurrence?: {
8641
+ interval: string;
8642
+ anchor?: Date | undefined;
8643
+ } | undefined;
8644
+ }>;
8645
+ /**
8646
+ * Returns historical balance and usage data for the entitlement. The queried history can span accross multiple reset events.
8647
+
8648
+ BurndownHistory returns a continous history of segments, where the segments are seperated by events that changed either the grant burndown priority or the usage period.
8649
+
8650
+ WindowedHistory returns windowed usage data for the period enriched with balance information and the list of grants that were being burnt down in that window.
8651
+ * @summary Get customer entitlement history
8652
+ */
8653
+ export declare const getCustomerEntitlementHistoryPathFeatureKeyMax = 64;
8654
+ export declare const getCustomerEntitlementHistoryPathFeatureKeyRegExp: RegExp;
8655
+ export declare const getCustomerEntitlementHistoryParams: zod.ZodObject<{
8656
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8657
+ featureKey: zod.ZodString;
8658
+ }, "strip", zod.ZodTypeAny, {
8659
+ featureKey: string;
8660
+ customerIdOrKey: string;
8661
+ }, {
8662
+ featureKey: string;
8663
+ customerIdOrKey: string;
8664
+ }>;
8665
+ export declare const getCustomerEntitlementHistoryQueryWindowTimeZoneDefault = "UTC";
8666
+ export declare const getCustomerEntitlementHistoryQueryParams: zod.ZodObject<{
8667
+ from: zod.ZodOptional<zod.ZodDate>;
8668
+ to: zod.ZodOptional<zod.ZodDate>;
8669
+ windowSize: zod.ZodEnum<["MINUTE", "HOUR", "DAY", "MONTH"]>;
8670
+ windowTimeZone: zod.ZodDefault<zod.ZodString>;
8671
+ }, "strip", zod.ZodTypeAny, {
8672
+ windowSize: "HOUR" | "DAY" | "MONTH" | "MINUTE";
8673
+ windowTimeZone: string;
8674
+ from?: Date | undefined;
8675
+ to?: Date | undefined;
8676
+ }, {
8677
+ windowSize: "HOUR" | "DAY" | "MONTH" | "MINUTE";
8678
+ from?: Date | undefined;
8679
+ to?: Date | undefined;
8680
+ windowTimeZone?: string | undefined;
8681
+ }>;
8682
+ /**
8683
+ * Overriding an entitlement creates a new entitlement from the provided inputs and soft deletes the previous entitlement for the provided customer-feature pair. If the previous entitlement is already deleted or otherwise doesnt exist, the override will fail.
8684
+
8685
+ This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
8686
+ * @summary Override customer entitlement
8687
+ */
8688
+ export declare const overrideCustomerEntitlementPathFeatureKeyMax = 64;
8689
+ export declare const overrideCustomerEntitlementPathFeatureKeyRegExp: RegExp;
8690
+ export declare const overrideCustomerEntitlementParams: zod.ZodObject<{
8691
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8692
+ featureKey: zod.ZodString;
8693
+ }, "strip", zod.ZodTypeAny, {
8694
+ featureKey: string;
8695
+ customerIdOrKey: string;
8696
+ }, {
8697
+ featureKey: string;
8698
+ customerIdOrKey: string;
8699
+ }>;
8700
+ export declare const overrideCustomerEntitlementBodyFeatureKeyMax = 64;
8701
+ export declare const overrideCustomerEntitlementBodyFeatureKeyRegExp: RegExp;
8702
+ export declare const overrideCustomerEntitlementBodyFeatureIdRegExp: RegExp;
8703
+ export declare const overrideCustomerEntitlementBodyIsSoftLimitDefault = false;
8704
+ export declare const overrideCustomerEntitlementBodyIsUnlimitedDefault = false;
8705
+ export declare const overrideCustomerEntitlementBodyIssueAfterResetMin = 0;
8706
+ export declare const overrideCustomerEntitlementBodyIssueAfterResetPriorityDefault = 1;
8707
+ export declare const overrideCustomerEntitlementBodyIssueAfterResetPriorityMax = 255;
8708
+ export declare const overrideCustomerEntitlementBodyPreserveOverageAtResetDefault = false;
8709
+ export declare const overrideCustomerEntitlementBodyFeatureKeyMaxOne = 64;
8710
+ export declare const overrideCustomerEntitlementBodyFeatureKeyRegExpOne: RegExp;
8711
+ export declare const overrideCustomerEntitlementBodyFeatureIdRegExpOne: RegExp;
8712
+ export declare const overrideCustomerEntitlementBodyFeatureKeyMaxTwo = 64;
8713
+ export declare const overrideCustomerEntitlementBodyFeatureKeyRegExpTwo: RegExp;
8714
+ export declare const overrideCustomerEntitlementBodyFeatureIdRegExpTwo: RegExp;
8715
+ export declare const overrideCustomerEntitlementBody: zod.ZodUnion<[zod.ZodObject<{
8716
+ featureId: zod.ZodOptional<zod.ZodString>;
8717
+ featureKey: zod.ZodOptional<zod.ZodString>;
8718
+ isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
8719
+ issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
8720
+ issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
8721
+ isUnlimited: zod.ZodOptional<zod.ZodBoolean>;
8722
+ measureUsageFrom: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["CURRENT_PERIOD_START", "NOW"]>, zod.ZodDate]>>;
8723
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8724
+ preserveOverageAtReset: zod.ZodOptional<zod.ZodBoolean>;
8725
+ type: zod.ZodEnum<["metered"]>;
8726
+ usagePeriod: zod.ZodObject<{
8727
+ anchor: zod.ZodOptional<zod.ZodDate>;
8728
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8729
+ }, "strip", zod.ZodTypeAny, {
8730
+ interval: string;
8731
+ anchor?: Date | undefined;
8732
+ }, {
8733
+ interval: string;
8734
+ anchor?: Date | undefined;
8735
+ }>;
8736
+ }, "strip", zod.ZodTypeAny, {
8737
+ type: "metered";
8738
+ usagePeriod: {
8739
+ interval: string;
8740
+ anchor?: Date | undefined;
8741
+ };
8742
+ issueAfterResetPriority: number;
8743
+ featureKey?: string | undefined;
8744
+ featureId?: string | undefined;
8745
+ metadata?: Record<string, string> | undefined;
8746
+ isSoftLimit?: boolean | undefined;
8747
+ issueAfterReset?: number | undefined;
8748
+ preserveOverageAtReset?: boolean | undefined;
8749
+ isUnlimited?: boolean | undefined;
8750
+ measureUsageFrom?: Date | "CURRENT_PERIOD_START" | "NOW" | undefined;
8751
+ }, {
8752
+ type: "metered";
8753
+ usagePeriod: {
8754
+ interval: string;
8755
+ anchor?: Date | undefined;
8756
+ };
8757
+ featureKey?: string | undefined;
8758
+ featureId?: string | undefined;
8759
+ metadata?: Record<string, string> | undefined;
8760
+ isSoftLimit?: boolean | undefined;
8761
+ issueAfterReset?: number | undefined;
8762
+ issueAfterResetPriority?: number | undefined;
8763
+ preserveOverageAtReset?: boolean | undefined;
8764
+ isUnlimited?: boolean | undefined;
8765
+ measureUsageFrom?: Date | "CURRENT_PERIOD_START" | "NOW" | undefined;
8766
+ }>, zod.ZodObject<{
8767
+ config: zod.ZodString;
8768
+ featureId: zod.ZodOptional<zod.ZodString>;
8769
+ featureKey: zod.ZodOptional<zod.ZodString>;
8770
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8771
+ type: zod.ZodEnum<["static"]>;
8772
+ usagePeriod: zod.ZodOptional<zod.ZodObject<{
8773
+ anchor: zod.ZodOptional<zod.ZodDate>;
8774
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8775
+ }, "strip", zod.ZodTypeAny, {
8776
+ interval: string;
8777
+ anchor?: Date | undefined;
8778
+ }, {
8779
+ interval: string;
8780
+ anchor?: Date | undefined;
8781
+ }>>;
8782
+ }, "strip", zod.ZodTypeAny, {
8783
+ type: "static";
8784
+ config: string;
8785
+ featureKey?: string | undefined;
8786
+ featureId?: string | undefined;
8787
+ metadata?: Record<string, string> | undefined;
8788
+ usagePeriod?: {
8789
+ interval: string;
8790
+ anchor?: Date | undefined;
8791
+ } | undefined;
8792
+ }, {
8793
+ type: "static";
8794
+ config: string;
8795
+ featureKey?: string | undefined;
8796
+ featureId?: string | undefined;
8797
+ metadata?: Record<string, string> | undefined;
8798
+ usagePeriod?: {
8799
+ interval: string;
8800
+ anchor?: Date | undefined;
8801
+ } | undefined;
8802
+ }>, zod.ZodObject<{
8803
+ featureId: zod.ZodOptional<zod.ZodString>;
8804
+ featureKey: zod.ZodOptional<zod.ZodString>;
8805
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8806
+ type: zod.ZodEnum<["boolean"]>;
8807
+ usagePeriod: zod.ZodOptional<zod.ZodObject<{
8808
+ anchor: zod.ZodOptional<zod.ZodDate>;
8809
+ interval: zod.ZodUnion<[zod.ZodString, zod.ZodEnum<["DAY", "WEEK", "MONTH", "YEAR"]>]>;
8810
+ }, "strip", zod.ZodTypeAny, {
8811
+ interval: string;
8812
+ anchor?: Date | undefined;
8813
+ }, {
8814
+ interval: string;
8815
+ anchor?: Date | undefined;
8816
+ }>>;
8817
+ }, "strip", zod.ZodTypeAny, {
8818
+ type: "boolean";
8819
+ featureKey?: string | undefined;
8820
+ featureId?: string | undefined;
8821
+ metadata?: Record<string, string> | undefined;
8822
+ usagePeriod?: {
8823
+ interval: string;
8824
+ anchor?: Date | undefined;
8825
+ } | undefined;
8826
+ }, {
8827
+ type: "boolean";
8828
+ featureKey?: string | undefined;
8829
+ featureId?: string | undefined;
8830
+ metadata?: Record<string, string> | undefined;
8831
+ usagePeriod?: {
8832
+ interval: string;
8833
+ anchor?: Date | undefined;
8834
+ } | undefined;
8835
+ }>]>;
8836
+ /**
8837
+ * Reset marks the start of a new usage period for the entitlement and initiates grant rollover. At the start of a period usage is zerod out and grants are rolled over based on their rollover settings. It would typically be synced with the customers billing period to enforce usage based on their subscription.
8838
+
8839
+ Usage is automatically reset for metered entitlements based on their usage period, but this endpoint allows to manually reset it at any time. When doing so the period anchor of the entitlement can be changed if needed.
8840
+ * @summary Reset customer entitlement
8841
+ */
8842
+ export declare const resetCustomerEntitlementUsagePathFeatureKeyMax = 64;
8843
+ export declare const resetCustomerEntitlementUsagePathFeatureKeyRegExp: RegExp;
8844
+ export declare const resetCustomerEntitlementUsageParams: zod.ZodObject<{
8845
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8846
+ featureKey: zod.ZodString;
8847
+ }, "strip", zod.ZodTypeAny, {
8848
+ featureKey: string;
8849
+ customerIdOrKey: string;
8850
+ }, {
8851
+ featureKey: string;
8852
+ customerIdOrKey: string;
8853
+ }>;
8854
+ export declare const resetCustomerEntitlementUsageBody: zod.ZodObject<{
8855
+ effectiveAt: zod.ZodOptional<zod.ZodDate>;
8856
+ preserveOverage: zod.ZodOptional<zod.ZodBoolean>;
8857
+ retainAnchor: zod.ZodOptional<zod.ZodBoolean>;
8858
+ }, "strip", zod.ZodTypeAny, {
8859
+ effectiveAt?: Date | undefined;
8860
+ preserveOverage?: boolean | undefined;
8861
+ retainAnchor?: boolean | undefined;
8862
+ }, {
8863
+ effectiveAt?: Date | undefined;
8864
+ preserveOverage?: boolean | undefined;
8865
+ retainAnchor?: boolean | undefined;
8866
+ }>;
8337
8867
  /**
8338
8868
  * Checks customer access to a given feature (by key). All entitlement types share the hasAccess property in their value response, but multiple other properties are returned based on the entitlement type.
8339
8869
  * @summary Get customer entitlement value
8340
8870
  */
8341
- export declare const getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne: RegExp;
8342
- export declare const getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo = 256;
8343
8871
  export declare const getCustomerEntitlementValuePathFeatureKeyMax = 64;
8344
8872
  export declare const getCustomerEntitlementValuePathFeatureKeyRegExp: RegExp;
8345
8873
  export declare const getCustomerEntitlementValueParams: zod.ZodObject<{
@@ -8359,12 +8887,72 @@ export declare const getCustomerEntitlementValueQueryParams: zod.ZodObject<{
8359
8887
  }, {
8360
8888
  time?: Date | undefined;
8361
8889
  }>;
8890
+ /**
8891
+ * Get stripe app data for a customer.
8892
+ Only returns data if the customer billing profile is linked to a stripe app.
8893
+ * @summary Get customer stripe app data
8894
+ */
8895
+ export declare const getCustomerStripeAppDataParams: zod.ZodObject<{
8896
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8897
+ }, "strip", zod.ZodTypeAny, {
8898
+ customerIdOrKey: string;
8899
+ }, {
8900
+ customerIdOrKey: string;
8901
+ }>;
8902
+ /**
8903
+ * Upsert stripe app data for a customer.
8904
+ Only updates data if the customer billing profile is linked to a stripe app.
8905
+ * @summary Upsert customer stripe app data
8906
+ */
8907
+ export declare const upsertCustomerStripeAppDataParams: zod.ZodObject<{
8908
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8909
+ }, "strip", zod.ZodTypeAny, {
8910
+ customerIdOrKey: string;
8911
+ }, {
8912
+ customerIdOrKey: string;
8913
+ }>;
8914
+ export declare const upsertCustomerStripeAppDataBody: zod.ZodObject<{
8915
+ stripeCustomerId: zod.ZodString;
8916
+ stripeDefaultPaymentMethodId: zod.ZodOptional<zod.ZodString>;
8917
+ }, "strip", zod.ZodTypeAny, {
8918
+ stripeCustomerId: string;
8919
+ stripeDefaultPaymentMethodId?: string | undefined;
8920
+ }, {
8921
+ stripeCustomerId: string;
8922
+ stripeDefaultPaymentMethodId?: string | undefined;
8923
+ }>;
8924
+ /**
8925
+ * Create Stripe customer portal session.
8926
+ Only returns URL if the customer billing profile is linked to a stripe app and customer.
8927
+
8928
+ Useful to redirect the customer to the Stripe customer portal to manage their payment methods,
8929
+ change their billing address and access their invoice history.
8930
+ * @summary Create Stripe customer portal session
8931
+ */
8932
+ export declare const createCustomerStripePortalSessionParams: zod.ZodObject<{
8933
+ customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8934
+ }, "strip", zod.ZodTypeAny, {
8935
+ customerIdOrKey: string;
8936
+ }, {
8937
+ customerIdOrKey: string;
8938
+ }>;
8939
+ export declare const createCustomerStripePortalSessionBody: zod.ZodObject<{
8940
+ configurationId: zod.ZodOptional<zod.ZodString>;
8941
+ locale: zod.ZodOptional<zod.ZodString>;
8942
+ returnUrl: zod.ZodOptional<zod.ZodString>;
8943
+ }, "strip", zod.ZodTypeAny, {
8944
+ configurationId?: string | undefined;
8945
+ locale?: string | undefined;
8946
+ returnUrl?: string | undefined;
8947
+ }, {
8948
+ configurationId?: string | undefined;
8949
+ locale?: string | undefined;
8950
+ returnUrl?: string | undefined;
8951
+ }>;
8362
8952
  /**
8363
8953
  * Lists all subscriptions for a customer.
8364
8954
  * @summary List customer subscriptions
8365
8955
  */
8366
- export declare const listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne: RegExp;
8367
- export declare const listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo = 256;
8368
8956
  export declare const listCustomerSubscriptionsParams: zod.ZodObject<{
8369
8957
  customerIdOrKey: zod.ZodUnion<[zod.ZodString, zod.ZodString]>;
8370
8958
  }, "strip", zod.ZodTypeAny, {
@@ -8968,8 +9556,10 @@ export declare const queryMeterParams: zod.ZodObject<{
8968
9556
  }>;
8969
9557
  export declare const queryMeterQueryClientIdMax = 36;
8970
9558
  export declare const queryMeterQueryWindowTimeZoneDefault = "UTC";
9559
+ export declare const queryMeterQueryFilterCustomerIdMax = 100;
8971
9560
  export declare const queryMeterQueryParams: zod.ZodObject<{
8972
9561
  clientId: zod.ZodOptional<zod.ZodString>;
9562
+ filterCustomerId: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
8973
9563
  filterGroupBy: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
8974
9564
  from: zod.ZodOptional<zod.ZodDate>;
8975
9565
  groupBy: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -8985,6 +9575,7 @@ export declare const queryMeterQueryParams: zod.ZodObject<{
8985
9575
  windowSize?: "HOUR" | "DAY" | "MONTH" | "MINUTE" | undefined;
8986
9576
  groupBy?: string[] | undefined;
8987
9577
  clientId?: string | undefined;
9578
+ filterCustomerId?: string[] | undefined;
8988
9579
  filterGroupBy?: Record<string, string> | undefined;
8989
9580
  }, {
8990
9581
  subject?: string[] | undefined;
@@ -8994,6 +9585,7 @@ export declare const queryMeterQueryParams: zod.ZodObject<{
8994
9585
  windowTimeZone?: string | undefined;
8995
9586
  groupBy?: string[] | undefined;
8996
9587
  clientId?: string | undefined;
9588
+ filterCustomerId?: string[] | undefined;
8997
9589
  filterGroupBy?: Record<string, string> | undefined;
8998
9590
  }>;
8999
9591
  /**
@@ -9011,9 +9603,11 @@ export declare const queryMeterPostParams: zod.ZodObject<{
9011
9603
  export declare const queryMeterPostBodyClientIdMax = 36;
9012
9604
  export declare const queryMeterPostBodyWindowTimeZoneDefault = "UTC";
9013
9605
  export declare const queryMeterPostBodySubjectMax = 100;
9606
+ export declare const queryMeterPostBodyFilterCustomerIdMax = 100;
9014
9607
  export declare const queryMeterPostBodyGroupByMax = 100;
9015
9608
  export declare const queryMeterPostBody: zod.ZodObject<{
9016
9609
  clientId: zod.ZodOptional<zod.ZodString>;
9610
+ filterCustomerId: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
9017
9611
  filterGroupBy: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString, "many">>>;
9018
9612
  from: zod.ZodOptional<zod.ZodDate>;
9019
9613
  groupBy: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -9029,6 +9623,7 @@ export declare const queryMeterPostBody: zod.ZodObject<{
9029
9623
  windowSize?: "HOUR" | "DAY" | "MONTH" | "MINUTE" | undefined;
9030
9624
  groupBy?: string[] | undefined;
9031
9625
  clientId?: string | undefined;
9626
+ filterCustomerId?: string[] | undefined;
9032
9627
  filterGroupBy?: Record<string, string[]> | undefined;
9033
9628
  }, {
9034
9629
  subject?: string[] | undefined;
@@ -9038,6 +9633,7 @@ export declare const queryMeterPostBody: zod.ZodObject<{
9038
9633
  windowTimeZone?: string | undefined;
9039
9634
  groupBy?: string[] | undefined;
9040
9635
  clientId?: string | undefined;
9636
+ filterCustomerId?: string[] | undefined;
9041
9637
  filterGroupBy?: Record<string, string[]> | undefined;
9042
9638
  }>;
9043
9639
  /**
@@ -9284,7 +9880,7 @@ export declare const createNotificationRuleBodyDisabledDefaultTwo = false;
9284
9880
  export declare const createNotificationRuleBodyChannelsItemRegExpTwo: RegExp;
9285
9881
  export declare const createNotificationRuleBodyDisabledDefaultThree = false;
9286
9882
  export declare const createNotificationRuleBodyChannelsItemRegExpThree: RegExp;
9287
- export declare const createNotificationRuleBody: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
9883
+ export declare const createNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
9288
9884
  channels: zod.ZodArray<zod.ZodString, "many">;
9289
9885
  disabled: zod.ZodOptional<zod.ZodBoolean>;
9290
9886
  features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -9394,7 +9990,7 @@ export declare const updateNotificationRuleBodyDisabledDefaultTwo = false;
9394
9990
  export declare const updateNotificationRuleBodyChannelsItemRegExpTwo: RegExp;
9395
9991
  export declare const updateNotificationRuleBodyDisabledDefaultThree = false;
9396
9992
  export declare const updateNotificationRuleBodyChannelsItemRegExpThree: RegExp;
9397
- export declare const updateNotificationRuleBody: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
9993
+ export declare const updateNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
9398
9994
  channels: zod.ZodArray<zod.ZodString, "many">;
9399
9995
  disabled: zod.ZodOptional<zod.ZodBoolean>;
9400
9996
  features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -9653,7 +10249,7 @@ export declare const createPlanBody: zod.ZodObject<{
9653
10249
  key: zod.ZodString;
9654
10250
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
9655
10251
  name: zod.ZodString;
9656
- rateCards: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
10252
+ rateCards: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
9657
10253
  billingCadence: zod.ZodNullable<zod.ZodString>;
9658
10254
  description: zod.ZodOptional<zod.ZodString>;
9659
10255
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -9686,7 +10282,7 @@ export declare const createPlanBody: zod.ZodObject<{
9686
10282
  quantity: string;
9687
10283
  } | undefined;
9688
10284
  }>>;
9689
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
10285
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
9690
10286
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
9691
10287
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
9692
10288
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -9908,7 +10504,7 @@ export declare const createPlanBody: zod.ZodObject<{
9908
10504
  quantity: string;
9909
10505
  } | undefined;
9910
10506
  }>>;
9911
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
10507
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
9912
10508
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
9913
10509
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
9914
10510
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -9958,7 +10554,7 @@ export declare const createPlanBody: zod.ZodObject<{
9958
10554
  key: zod.ZodString;
9959
10555
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
9960
10556
  name: zod.ZodString;
9961
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
10557
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
9962
10558
  amount: zod.ZodString;
9963
10559
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
9964
10560
  type: zod.ZodEnum<["flat"]>;
@@ -10959,7 +11555,7 @@ export declare const updatePlanBody: zod.ZodObject<{
10959
11555
  key: zod.ZodString;
10960
11556
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
10961
11557
  name: zod.ZodString;
10962
- rateCards: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
11558
+ rateCards: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
10963
11559
  billingCadence: zod.ZodNullable<zod.ZodString>;
10964
11560
  description: zod.ZodOptional<zod.ZodString>;
10965
11561
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -10992,7 +11588,7 @@ export declare const updatePlanBody: zod.ZodObject<{
10992
11588
  quantity: string;
10993
11589
  } | undefined;
10994
11590
  }>>;
10995
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
11591
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
10996
11592
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
10997
11593
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
10998
11594
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -11214,7 +11810,7 @@ export declare const updatePlanBody: zod.ZodObject<{
11214
11810
  quantity: string;
11215
11811
  } | undefined;
11216
11812
  }>>;
11217
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
11813
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
11218
11814
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
11219
11815
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
11220
11816
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -11264,7 +11860,7 @@ export declare const updatePlanBody: zod.ZodObject<{
11264
11860
  key: zod.ZodString;
11265
11861
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
11266
11862
  name: zod.ZodString;
11267
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
11863
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
11268
11864
  amount: zod.ZodString;
11269
11865
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
11270
11866
  type: zod.ZodEnum<["flat"]>;
@@ -12374,8 +12970,10 @@ export declare const queryPortalMeterParams: zod.ZodObject<{
12374
12970
  }>;
12375
12971
  export declare const queryPortalMeterQueryClientIdMax = 36;
12376
12972
  export declare const queryPortalMeterQueryWindowTimeZoneDefault = "UTC";
12973
+ export declare const queryPortalMeterQueryFilterCustomerIdMax = 100;
12377
12974
  export declare const queryPortalMeterQueryParams: zod.ZodObject<{
12378
12975
  clientId: zod.ZodOptional<zod.ZodString>;
12976
+ filterCustomerId: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
12379
12977
  filterGroupBy: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
12380
12978
  from: zod.ZodOptional<zod.ZodDate>;
12381
12979
  groupBy: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -12389,6 +12987,7 @@ export declare const queryPortalMeterQueryParams: zod.ZodObject<{
12389
12987
  windowSize?: "HOUR" | "DAY" | "MONTH" | "MINUTE" | undefined;
12390
12988
  groupBy?: string[] | undefined;
12391
12989
  clientId?: string | undefined;
12990
+ filterCustomerId?: string[] | undefined;
12392
12991
  filterGroupBy?: Record<string, string> | undefined;
12393
12992
  }, {
12394
12993
  from?: Date | undefined;
@@ -12397,6 +12996,7 @@ export declare const queryPortalMeterQueryParams: zod.ZodObject<{
12397
12996
  windowTimeZone?: string | undefined;
12398
12997
  groupBy?: string[] | undefined;
12399
12998
  clientId?: string | undefined;
12999
+ filterCustomerId?: string[] | undefined;
12400
13000
  filterGroupBy?: Record<string, string> | undefined;
12401
13001
  }>;
12402
13002
  /**
@@ -12465,7 +13065,7 @@ export declare const createStripeCheckoutSessionBodyOptionsCustomTextSubmitMessa
12465
13065
  export declare const createStripeCheckoutSessionBodyOptionsCustomTextTermsOfServiceAcceptanceMessageMax = 1200;
12466
13066
  export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12467
13067
  appId: zod.ZodOptional<zod.ZodString>;
12468
- customer: zod.ZodUnion<[zod.ZodUnion<[zod.ZodObject<{
13068
+ customer: zod.ZodUnion<[zod.ZodObject<{
12469
13069
  id: zod.ZodString;
12470
13070
  }, "strip", zod.ZodTypeAny, {
12471
13071
  id: string;
@@ -12477,7 +13077,7 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12477
13077
  key: string;
12478
13078
  }, {
12479
13079
  key: string;
12480
- }>]>, zod.ZodObject<{
13080
+ }>, zod.ZodObject<{
12481
13081
  billingAddress: zod.ZodOptional<zod.ZodObject<{
12482
13082
  city: zod.ZodOptional<zod.ZodString>;
12483
13083
  country: zod.ZodOptional<zod.ZodString>;
@@ -12673,6 +13273,7 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12673
13273
  }, "strip", zod.ZodTypeAny, {
12674
13274
  metadata?: Record<string, string> | undefined;
12675
13275
  currency?: string | undefined;
13276
+ locale?: string | undefined;
12676
13277
  billingAddressCollection?: "auto" | "required" | undefined;
12677
13278
  cancelURL?: string | undefined;
12678
13279
  clientReferenceID?: string | undefined;
@@ -12703,7 +13304,6 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12703
13304
  } | undefined;
12704
13305
  } | undefined;
12705
13306
  expiresAt?: number | undefined;
12706
- locale?: string | undefined;
12707
13307
  paymentMethodTypes?: string[] | undefined;
12708
13308
  redirectOnCompletion?: "never" | "always" | "if_required" | undefined;
12709
13309
  returnURL?: string | undefined;
@@ -12716,6 +13316,7 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12716
13316
  }, {
12717
13317
  metadata?: Record<string, string> | undefined;
12718
13318
  currency?: string | undefined;
13319
+ locale?: string | undefined;
12719
13320
  billingAddressCollection?: "auto" | "required" | undefined;
12720
13321
  cancelURL?: string | undefined;
12721
13322
  clientReferenceID?: string | undefined;
@@ -12746,7 +13347,6 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12746
13347
  } | undefined;
12747
13348
  } | undefined;
12748
13349
  expiresAt?: number | undefined;
12749
- locale?: string | undefined;
12750
13350
  paymentMethodTypes?: string[] | undefined;
12751
13351
  redirectOnCompletion?: "never" | "always" | "if_required" | undefined;
12752
13352
  returnURL?: string | undefined;
@@ -12786,6 +13386,7 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12786
13386
  options: {
12787
13387
  metadata?: Record<string, string> | undefined;
12788
13388
  currency?: string | undefined;
13389
+ locale?: string | undefined;
12789
13390
  billingAddressCollection?: "auto" | "required" | undefined;
12790
13391
  cancelURL?: string | undefined;
12791
13392
  clientReferenceID?: string | undefined;
@@ -12816,7 +13417,6 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12816
13417
  } | undefined;
12817
13418
  } | undefined;
12818
13419
  expiresAt?: number | undefined;
12819
- locale?: string | undefined;
12820
13420
  paymentMethodTypes?: string[] | undefined;
12821
13421
  redirectOnCompletion?: "never" | "always" | "if_required" | undefined;
12822
13422
  returnURL?: string | undefined;
@@ -12857,6 +13457,7 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12857
13457
  options: {
12858
13458
  metadata?: Record<string, string> | undefined;
12859
13459
  currency?: string | undefined;
13460
+ locale?: string | undefined;
12860
13461
  billingAddressCollection?: "auto" | "required" | undefined;
12861
13462
  cancelURL?: string | undefined;
12862
13463
  clientReferenceID?: string | undefined;
@@ -12887,7 +13488,6 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
12887
13488
  } | undefined;
12888
13489
  } | undefined;
12889
13490
  expiresAt?: number | undefined;
12890
- locale?: string | undefined;
12891
13491
  paymentMethodTypes?: string[] | undefined;
12892
13492
  redirectOnCompletion?: "never" | "always" | "if_required" | undefined;
12893
13493
  returnURL?: string | undefined;
@@ -13008,7 +13608,7 @@ export declare const createEntitlementBodyFeatureIdRegExpOne: RegExp;
13008
13608
  export declare const createEntitlementBodyFeatureKeyMaxTwo = 64;
13009
13609
  export declare const createEntitlementBodyFeatureKeyRegExpTwo: RegExp;
13010
13610
  export declare const createEntitlementBodyFeatureIdRegExpTwo: RegExp;
13011
- export declare const createEntitlementBody: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
13611
+ export declare const createEntitlementBody: zod.ZodUnion<[zod.ZodObject<{
13012
13612
  featureId: zod.ZodOptional<zod.ZodString>;
13013
13613
  featureKey: zod.ZodOptional<zod.ZodString>;
13014
13614
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
@@ -13290,7 +13890,7 @@ export declare const overrideEntitlementBodyFeatureIdRegExpOne: RegExp;
13290
13890
  export declare const overrideEntitlementBodyFeatureKeyMaxTwo = 64;
13291
13891
  export declare const overrideEntitlementBodyFeatureKeyRegExpTwo: RegExp;
13292
13892
  export declare const overrideEntitlementBodyFeatureIdRegExpTwo: RegExp;
13293
- export declare const overrideEntitlementBody: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
13893
+ export declare const overrideEntitlementBody: zod.ZodUnion<[zod.ZodObject<{
13294
13894
  featureId: zod.ZodOptional<zod.ZodString>;
13295
13895
  featureKey: zod.ZodOptional<zod.ZodString>;
13296
13896
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
@@ -13681,7 +14281,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
13681
14281
  key: zod.ZodString;
13682
14282
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
13683
14283
  name: zod.ZodString;
13684
- rateCards: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
14284
+ rateCards: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
13685
14285
  billingCadence: zod.ZodNullable<zod.ZodString>;
13686
14286
  description: zod.ZodOptional<zod.ZodString>;
13687
14287
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -13714,7 +14314,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
13714
14314
  quantity: string;
13715
14315
  } | undefined;
13716
14316
  }>>;
13717
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
14317
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
13718
14318
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
13719
14319
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
13720
14320
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -13936,7 +14536,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
13936
14536
  quantity: string;
13937
14537
  } | undefined;
13938
14538
  }>>;
13939
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
14539
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
13940
14540
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
13941
14541
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
13942
14542
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -13986,7 +14586,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
13986
14586
  key: zod.ZodString;
13987
14587
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
13988
14588
  name: zod.ZodString;
13989
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
14589
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
13990
14590
  amount: zod.ZodString;
13991
14591
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
13992
14592
  type: zod.ZodEnum<["flat"]>;
@@ -15268,10 +15868,10 @@ export declare const editSubscriptionBodyCustomizationsItemPhaseKeyMaxTwo = 64;
15268
15868
  export declare const editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo: RegExp;
15269
15869
  export declare const editSubscriptionBodyCustomizationsMax = 100;
15270
15870
  export declare const editSubscriptionBody: zod.ZodObject<{
15271
- customizations: zod.ZodArray<zod.ZodDiscriminatedUnion<"op", [zod.ZodObject<{
15871
+ customizations: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
15272
15872
  op: zod.ZodEnum<["add_item"]>;
15273
15873
  phaseKey: zod.ZodString;
15274
- rateCard: zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
15874
+ rateCard: zod.ZodUnion<[zod.ZodObject<{
15275
15875
  billingCadence: zod.ZodNullable<zod.ZodString>;
15276
15876
  description: zod.ZodOptional<zod.ZodString>;
15277
15877
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -15304,7 +15904,7 @@ export declare const editSubscriptionBody: zod.ZodObject<{
15304
15904
  quantity: string;
15305
15905
  } | undefined;
15306
15906
  }>>;
15307
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
15907
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
15308
15908
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
15309
15909
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
15310
15910
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -15526,7 +16126,7 @@ export declare const editSubscriptionBody: zod.ZodObject<{
15526
16126
  quantity: string;
15527
16127
  } | undefined;
15528
16128
  }>>;
15529
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
16129
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
15530
16130
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
15531
16131
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
15532
16132
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -15576,7 +16176,7 @@ export declare const editSubscriptionBody: zod.ZodObject<{
15576
16176
  key: zod.ZodString;
15577
16177
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
15578
16178
  name: zod.ZodString;
15579
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
16179
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
15580
16180
  amount: zod.ZodString;
15581
16181
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
15582
16182
  type: zod.ZodEnum<["flat"]>;
@@ -16930,7 +17530,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
16930
17530
  key: zod.ZodString;
16931
17531
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
16932
17532
  name: zod.ZodString;
16933
- rateCards: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
17533
+ rateCards: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
16934
17534
  billingCadence: zod.ZodNullable<zod.ZodString>;
16935
17535
  description: zod.ZodOptional<zod.ZodString>;
16936
17536
  discounts: zod.ZodOptional<zod.ZodObject<{
@@ -16963,7 +17563,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
16963
17563
  quantity: string;
16964
17564
  } | undefined;
16965
17565
  }>>;
16966
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
17566
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
16967
17567
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
16968
17568
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
16969
17569
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -17185,7 +17785,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
17185
17785
  quantity: string;
17186
17786
  } | undefined;
17187
17787
  }>>;
17188
- entitlementTemplate: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
17788
+ entitlementTemplate: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
17189
17789
  isSoftLimit: zod.ZodOptional<zod.ZodBoolean>;
17190
17790
  issueAfterReset: zod.ZodOptional<zod.ZodNumber>;
17191
17791
  issueAfterResetPriority: zod.ZodDefault<zod.ZodNumber>;
@@ -17235,7 +17835,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
17235
17835
  key: zod.ZodString;
17236
17836
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
17237
17837
  name: zod.ZodString;
17238
- price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
17838
+ price: zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
17239
17839
  amount: zod.ZodString;
17240
17840
  paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
17241
17841
  type: zod.ZodEnum<["flat"]>;