@openmeter/client 1.0.0-beta-6d41ced5d8d3 → 1.0.0-beta-89ad46498d71

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.
@@ -173,6 +173,11 @@ export declare const entitlementType: z.ZodEnum<{
173
173
  export declare const entitlementAccessExpand: z.ZodEnum<{
174
174
  value: "value";
175
175
  }>;
176
+ export declare const iso8601Duration: z.ZodString;
177
+ export declare const entitlementMeasureUsageFromPreset: z.ZodEnum<{
178
+ current_period_start: "current_period_start";
179
+ now: "now";
180
+ }>;
176
181
  export declare const createLabels: z.ZodRecord<z.ZodString, z.ZodString>;
177
182
  export declare const creditFundingMethod: z.ZodEnum<{
178
183
  external: "external";
@@ -186,7 +191,6 @@ export declare const taxBehavior: z.ZodEnum<{
186
191
  exclusive: "exclusive";
187
192
  inclusive: "inclusive";
188
193
  }>;
189
- export declare const iso8601Duration: z.ZodString;
190
194
  export declare const creditPurchasePaymentSettlementStatus: z.ZodEnum<{
191
195
  authorized: "authorized";
192
196
  pending: "pending";
@@ -631,6 +635,10 @@ export declare const entitlementAccessValue: z.ZodObject<{
631
635
  totalAvailableGrantAmount: z.ZodString;
632
636
  grantBalances: z.ZodRecord<z.ZodString, z.ZodString>;
633
637
  }, z.core.$strip>;
638
+ export declare const entitlementIssueAfterReset: z.ZodObject<{
639
+ amount: z.ZodString;
640
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
641
+ }, z.core.$strip>;
634
642
  export declare const createChargeCostBasisManual: z.ZodObject<{
635
643
  type: z.ZodLiteral<"manual">;
636
644
  fiatCurrency: z.ZodOptional<z.ZodString>;
@@ -848,6 +856,9 @@ export declare const customerReference: z.ZodObject<{
848
856
  export declare const profileReference: z.ZodObject<{
849
857
  id: z.ZodString;
850
858
  }, z.core.$strip>;
859
+ export declare const featureReference: z.ZodObject<{
860
+ id: z.ZodString;
861
+ }, z.core.$strip>;
851
862
  export declare const createChargeCostBasisPinned: z.ZodObject<{
852
863
  type: z.ZodLiteral<"pinned">;
853
864
  fiatCurrency: z.ZodString;
@@ -878,9 +889,6 @@ export declare const subscriptionCostBasisPin: z.ZodObject<{
878
889
  invoiceCurrency: z.ZodString;
879
890
  costBasisId: z.ZodString;
880
891
  }, z.core.$strip>;
881
- export declare const featureReference: z.ZodObject<{
882
- id: z.ZodString;
883
- }, z.core.$strip>;
884
892
  export declare const subscriptionReference: z.ZodObject<{
885
893
  id: z.ZodString;
886
894
  name: z.ZodOptional<z.ZodString>;
@@ -949,16 +957,16 @@ export declare const appStripeCreateCustomerPortalSessionResult: z.ZodObject<{
949
957
  locale: z.ZodString;
950
958
  url: z.ZodString;
951
959
  }, z.core.$strip>;
960
+ export declare const closedPeriod: z.ZodObject<{
961
+ from: z.ZodDate;
962
+ to: z.ZodDate;
963
+ }, z.core.$strip>;
952
964
  export declare const chargeResolvedCostBasis: z.ZodObject<{
953
965
  fiatCurrency: z.ZodString;
954
966
  rate: z.ZodString;
955
967
  costBasisId: z.ZodOptional<z.ZodString>;
956
968
  resolvedAt: z.ZodDate;
957
969
  }, z.core.$strip>;
958
- export declare const closedPeriod: z.ZodObject<{
959
- from: z.ZodDate;
960
- to: z.ZodDate;
961
- }, z.core.$strip>;
962
970
  export declare const subscriptionAddonTimelineSegment: z.ZodObject<{
963
971
  activeFrom: z.ZodDate;
964
972
  activeTo: z.ZodOptional<z.ZodDate>;
@@ -1355,6 +1363,14 @@ export declare const customerStripeCreateCustomerPortalSessionRequest: z.ZodObje
1355
1363
  returnUrl: z.ZodOptional<z.ZodString>;
1356
1364
  }, z.core.$strip>;
1357
1365
  }, z.core.$strip>;
1366
+ export declare const recurringPeriodInput: z.ZodObject<{
1367
+ interval: z.ZodString;
1368
+ anchor: z.ZodOptional<z.ZodDate>;
1369
+ }, z.core.$strip>;
1370
+ export declare const recurringPeriod: z.ZodObject<{
1371
+ anchor: z.ZodDate;
1372
+ interval: z.ZodString;
1373
+ }, z.core.$strip>;
1358
1374
  export declare const rateCardMeteredEntitlement: z.ZodObject<{
1359
1375
  type: z.ZodLiteral<"metered">;
1360
1376
  isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -1373,10 +1389,10 @@ export declare const subscriptionEditStretchPhase: z.ZodObject<{
1373
1389
  phaseKey: z.ZodString;
1374
1390
  extendBy: z.ZodString;
1375
1391
  }, z.core.$strip>;
1376
- export declare const recurringPeriod: z.ZodObject<{
1377
- anchor: z.ZodDate;
1378
- interval: z.ZodString;
1379
- }, z.core.$strip>;
1392
+ export declare const entitlementMeasureUsageFrom: z.ZodUnion<readonly [z.ZodEnum<{
1393
+ current_period_start: "current_period_start";
1394
+ now: "now";
1395
+ }>, z.ZodDate]>;
1380
1396
  export declare const updateCreditGrantExternalSettlementRequest: z.ZodObject<{
1381
1397
  status: z.ZodEnum<{
1382
1398
  authorized: "authorized";
@@ -3077,6 +3093,132 @@ export declare const appStripeCreateCheckoutSessionConsentCollection: z.ZodObjec
3077
3093
  required: "required";
3078
3094
  }>>;
3079
3095
  }, z.core.$strip>;
3096
+ export declare const entitlementGrantCreateRequest: z.ZodObject<{
3097
+ amount: z.ZodString;
3098
+ priority: z.ZodOptional<z.ZodNumber>;
3099
+ effectiveAt: z.ZodDate;
3100
+ expiresAfter: z.ZodOptional<z.ZodString>;
3101
+ maxRolloverAmount: z.ZodOptional<z.ZodString>;
3102
+ minRolloverAmount: z.ZodOptional<z.ZodString>;
3103
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3104
+ recurrence: z.ZodOptional<z.ZodObject<{
3105
+ interval: z.ZodString;
3106
+ anchor: z.ZodOptional<z.ZodDate>;
3107
+ }, z.core.$strip>>;
3108
+ }, z.core.$strip>;
3109
+ export declare const createEntitlementStaticRequest: z.ZodObject<{
3110
+ type: z.ZodLiteral<"static">;
3111
+ feature: z.ZodObject<{
3112
+ id: z.ZodString;
3113
+ }, z.core.$strip>;
3114
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3115
+ config: z.ZodUnknown;
3116
+ usagePeriod: z.ZodOptional<z.ZodObject<{
3117
+ interval: z.ZodString;
3118
+ anchor: z.ZodOptional<z.ZodDate>;
3119
+ }, z.core.$strip>>;
3120
+ }, z.core.$strip>;
3121
+ export declare const createEntitlementBooleanRequest: z.ZodObject<{
3122
+ type: z.ZodLiteral<"boolean">;
3123
+ feature: z.ZodObject<{
3124
+ id: z.ZodString;
3125
+ }, z.core.$strip>;
3126
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3127
+ usagePeriod: z.ZodOptional<z.ZodObject<{
3128
+ interval: z.ZodString;
3129
+ anchor: z.ZodOptional<z.ZodDate>;
3130
+ }, z.core.$strip>>;
3131
+ }, z.core.$strip>;
3132
+ export declare const entitlementMetered: z.ZodObject<{
3133
+ id: z.ZodString;
3134
+ type: z.ZodLiteral<"metered">;
3135
+ feature: z.ZodObject<{
3136
+ id: z.ZodString;
3137
+ }, z.core.$strip>;
3138
+ customer: z.ZodObject<{
3139
+ id: z.ZodString;
3140
+ }, z.core.$strip>;
3141
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3142
+ activeFrom: z.ZodDate;
3143
+ activeTo: z.ZodOptional<z.ZodDate>;
3144
+ createdAt: z.ZodDate;
3145
+ updatedAt: z.ZodDate;
3146
+ deletedAt: z.ZodOptional<z.ZodDate>;
3147
+ usagePeriod: z.ZodObject<{
3148
+ anchor: z.ZodDate;
3149
+ interval: z.ZodString;
3150
+ }, z.core.$strip>;
3151
+ currentUsagePeriod: z.ZodObject<{
3152
+ from: z.ZodDate;
3153
+ to: z.ZodDate;
3154
+ }, z.core.$strip>;
3155
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3156
+ issue: z.ZodOptional<z.ZodObject<{
3157
+ amount: z.ZodString;
3158
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3159
+ }, z.core.$strip>>;
3160
+ issueAfterReset: z.ZodOptional<z.ZodString>;
3161
+ issueAfterResetPriority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3162
+ preserveOverageAtReset: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3163
+ measureUsageFrom: z.ZodDate;
3164
+ lastReset: z.ZodDate;
3165
+ }, z.core.$strip>;
3166
+ export declare const entitlementStatic: z.ZodObject<{
3167
+ id: z.ZodString;
3168
+ type: z.ZodLiteral<"static">;
3169
+ feature: z.ZodObject<{
3170
+ id: z.ZodString;
3171
+ }, z.core.$strip>;
3172
+ customer: z.ZodObject<{
3173
+ id: z.ZodString;
3174
+ }, z.core.$strip>;
3175
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3176
+ usagePeriod: z.ZodOptional<z.ZodObject<{
3177
+ anchor: z.ZodDate;
3178
+ interval: z.ZodString;
3179
+ }, z.core.$strip>>;
3180
+ currentUsagePeriod: z.ZodOptional<z.ZodObject<{
3181
+ from: z.ZodDate;
3182
+ to: z.ZodDate;
3183
+ }, z.core.$strip>>;
3184
+ activeFrom: z.ZodDate;
3185
+ activeTo: z.ZodOptional<z.ZodDate>;
3186
+ createdAt: z.ZodDate;
3187
+ updatedAt: z.ZodDate;
3188
+ deletedAt: z.ZodOptional<z.ZodDate>;
3189
+ config: z.ZodUnknown;
3190
+ }, z.core.$strip>;
3191
+ export declare const entitlementBoolean: z.ZodObject<{
3192
+ id: z.ZodString;
3193
+ type: z.ZodLiteral<"boolean">;
3194
+ feature: z.ZodObject<{
3195
+ id: z.ZodString;
3196
+ }, z.core.$strip>;
3197
+ customer: z.ZodObject<{
3198
+ id: z.ZodString;
3199
+ }, z.core.$strip>;
3200
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3201
+ usagePeriod: z.ZodOptional<z.ZodObject<{
3202
+ anchor: z.ZodDate;
3203
+ interval: z.ZodString;
3204
+ }, z.core.$strip>>;
3205
+ currentUsagePeriod: z.ZodOptional<z.ZodObject<{
3206
+ from: z.ZodDate;
3207
+ to: z.ZodDate;
3208
+ }, z.core.$strip>>;
3209
+ activeFrom: z.ZodDate;
3210
+ activeTo: z.ZodOptional<z.ZodDate>;
3211
+ createdAt: z.ZodDate;
3212
+ updatedAt: z.ZodDate;
3213
+ deletedAt: z.ZodOptional<z.ZodDate>;
3214
+ }, z.core.$strip>;
3215
+ export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
3216
+ type: z.ZodLiteral<"anchored">;
3217
+ recurringPeriod: z.ZodObject<{
3218
+ anchor: z.ZodDate;
3219
+ interval: z.ZodString;
3220
+ }, z.core.$strip>;
3221
+ }, z.core.$strip>;
3080
3222
  export declare const rateCardEntitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
3081
3223
  type: z.ZodLiteral<"metered">;
3082
3224
  isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -3098,13 +3240,6 @@ export declare const subscriptionEditAddPhase: z.ZodObject<{
3098
3240
  duration: z.ZodOptional<z.ZodString>;
3099
3241
  }, z.core.$strip>;
3100
3242
  }, z.core.$strip>;
3101
- export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
3102
- type: z.ZodLiteral<"anchored">;
3103
- recurringPeriod: z.ZodObject<{
3104
- anchor: z.ZodDate;
3105
- interval: z.ZodString;
3106
- }, z.core.$strip>;
3107
- }, z.core.$strip>;
3108
3243
  export declare const subscriptionBase: z.ZodObject<{
3109
3244
  id: z.ZodString;
3110
3245
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4202,6 +4337,123 @@ export declare const appStripeCreateCheckoutSessionRequestOptions: z.ZodObject<{
4202
4337
  }>>>;
4203
4338
  }, z.core.$strip>>;
4204
4339
  }, z.core.$strip>;
4340
+ export declare const createEntitlementMeteredRequest: z.ZodObject<{
4341
+ type: z.ZodLiteral<"metered">;
4342
+ feature: z.ZodObject<{
4343
+ id: z.ZodString;
4344
+ }, z.core.$strip>;
4345
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4346
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4347
+ issue: z.ZodOptional<z.ZodObject<{
4348
+ amount: z.ZodString;
4349
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4350
+ }, z.core.$strip>>;
4351
+ issueAfterReset: z.ZodOptional<z.ZodString>;
4352
+ issueAfterResetPriority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4353
+ preserveOverageAtReset: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4354
+ usagePeriod: z.ZodObject<{
4355
+ interval: z.ZodString;
4356
+ anchor: z.ZodOptional<z.ZodDate>;
4357
+ }, z.core.$strip>;
4358
+ measureUsageFrom: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4359
+ current_period_start: "current_period_start";
4360
+ now: "now";
4361
+ }>, z.ZodDate]>>;
4362
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
4363
+ amount: z.ZodString;
4364
+ priority: z.ZodOptional<z.ZodNumber>;
4365
+ effectiveAt: z.ZodDate;
4366
+ expiresAfter: z.ZodOptional<z.ZodString>;
4367
+ maxRolloverAmount: z.ZodOptional<z.ZodString>;
4368
+ minRolloverAmount: z.ZodOptional<z.ZodString>;
4369
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4370
+ recurrence: z.ZodOptional<z.ZodObject<{
4371
+ interval: z.ZodString;
4372
+ anchor: z.ZodOptional<z.ZodDate>;
4373
+ }, z.core.$strip>>;
4374
+ }, z.core.$strip>>>;
4375
+ }, z.core.$strip>;
4376
+ export declare const entitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
4377
+ id: z.ZodString;
4378
+ type: z.ZodLiteral<"metered">;
4379
+ feature: z.ZodObject<{
4380
+ id: z.ZodString;
4381
+ }, z.core.$strip>;
4382
+ customer: z.ZodObject<{
4383
+ id: z.ZodString;
4384
+ }, z.core.$strip>;
4385
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4386
+ activeFrom: z.ZodDate;
4387
+ activeTo: z.ZodOptional<z.ZodDate>;
4388
+ createdAt: z.ZodDate;
4389
+ updatedAt: z.ZodDate;
4390
+ deletedAt: z.ZodOptional<z.ZodDate>;
4391
+ usagePeriod: z.ZodObject<{
4392
+ anchor: z.ZodDate;
4393
+ interval: z.ZodString;
4394
+ }, z.core.$strip>;
4395
+ currentUsagePeriod: z.ZodObject<{
4396
+ from: z.ZodDate;
4397
+ to: z.ZodDate;
4398
+ }, z.core.$strip>;
4399
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4400
+ issue: z.ZodOptional<z.ZodObject<{
4401
+ amount: z.ZodString;
4402
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4403
+ }, z.core.$strip>>;
4404
+ issueAfterReset: z.ZodOptional<z.ZodString>;
4405
+ issueAfterResetPriority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4406
+ preserveOverageAtReset: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4407
+ measureUsageFrom: z.ZodDate;
4408
+ lastReset: z.ZodDate;
4409
+ }, z.core.$strip>, z.ZodObject<{
4410
+ id: z.ZodString;
4411
+ type: z.ZodLiteral<"static">;
4412
+ feature: z.ZodObject<{
4413
+ id: z.ZodString;
4414
+ }, z.core.$strip>;
4415
+ customer: z.ZodObject<{
4416
+ id: z.ZodString;
4417
+ }, z.core.$strip>;
4418
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4419
+ usagePeriod: z.ZodOptional<z.ZodObject<{
4420
+ anchor: z.ZodDate;
4421
+ interval: z.ZodString;
4422
+ }, z.core.$strip>>;
4423
+ currentUsagePeriod: z.ZodOptional<z.ZodObject<{
4424
+ from: z.ZodDate;
4425
+ to: z.ZodDate;
4426
+ }, z.core.$strip>>;
4427
+ activeFrom: z.ZodDate;
4428
+ activeTo: z.ZodOptional<z.ZodDate>;
4429
+ createdAt: z.ZodDate;
4430
+ updatedAt: z.ZodDate;
4431
+ deletedAt: z.ZodOptional<z.ZodDate>;
4432
+ config: z.ZodUnknown;
4433
+ }, z.core.$strip>, z.ZodObject<{
4434
+ id: z.ZodString;
4435
+ type: z.ZodLiteral<"boolean">;
4436
+ feature: z.ZodObject<{
4437
+ id: z.ZodString;
4438
+ }, z.core.$strip>;
4439
+ customer: z.ZodObject<{
4440
+ id: z.ZodString;
4441
+ }, z.core.$strip>;
4442
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4443
+ usagePeriod: z.ZodOptional<z.ZodObject<{
4444
+ anchor: z.ZodDate;
4445
+ interval: z.ZodString;
4446
+ }, z.core.$strip>>;
4447
+ currentUsagePeriod: z.ZodOptional<z.ZodObject<{
4448
+ from: z.ZodDate;
4449
+ to: z.ZodDate;
4450
+ }, z.core.$strip>>;
4451
+ activeFrom: z.ZodDate;
4452
+ activeTo: z.ZodOptional<z.ZodDate>;
4453
+ createdAt: z.ZodDate;
4454
+ updatedAt: z.ZodDate;
4455
+ deletedAt: z.ZodOptional<z.ZodDate>;
4456
+ }, z.core.$strip>], "type">;
4205
4457
  export declare const workflowCollectionAlignment: z.ZodDiscriminatedUnion<[z.ZodObject<{
4206
4458
  type: z.ZodLiteral<"subscription">;
4207
4459
  }, z.core.$strip>, z.ZodObject<{
@@ -5342,6 +5594,63 @@ export declare const customerStripeCreateCheckoutSessionRequest: z.ZodObject<{
5342
5594
  }, z.core.$strip>>;
5343
5595
  }, z.core.$strip>;
5344
5596
  }, z.core.$strip>;
5597
+ export declare const createEntitlementRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
5598
+ type: z.ZodLiteral<"metered">;
5599
+ feature: z.ZodObject<{
5600
+ id: z.ZodString;
5601
+ }, z.core.$strip>;
5602
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5603
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5604
+ issue: z.ZodOptional<z.ZodObject<{
5605
+ amount: z.ZodString;
5606
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5607
+ }, z.core.$strip>>;
5608
+ issueAfterReset: z.ZodOptional<z.ZodString>;
5609
+ issueAfterResetPriority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5610
+ preserveOverageAtReset: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5611
+ usagePeriod: z.ZodObject<{
5612
+ interval: z.ZodString;
5613
+ anchor: z.ZodOptional<z.ZodDate>;
5614
+ }, z.core.$strip>;
5615
+ measureUsageFrom: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
5616
+ current_period_start: "current_period_start";
5617
+ now: "now";
5618
+ }>, z.ZodDate]>>;
5619
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
5620
+ amount: z.ZodString;
5621
+ priority: z.ZodOptional<z.ZodNumber>;
5622
+ effectiveAt: z.ZodDate;
5623
+ expiresAfter: z.ZodOptional<z.ZodString>;
5624
+ maxRolloverAmount: z.ZodOptional<z.ZodString>;
5625
+ minRolloverAmount: z.ZodOptional<z.ZodString>;
5626
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5627
+ recurrence: z.ZodOptional<z.ZodObject<{
5628
+ interval: z.ZodString;
5629
+ anchor: z.ZodOptional<z.ZodDate>;
5630
+ }, z.core.$strip>>;
5631
+ }, z.core.$strip>>>;
5632
+ }, z.core.$strip>, z.ZodObject<{
5633
+ type: z.ZodLiteral<"static">;
5634
+ feature: z.ZodObject<{
5635
+ id: z.ZodString;
5636
+ }, z.core.$strip>;
5637
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5638
+ config: z.ZodUnknown;
5639
+ usagePeriod: z.ZodOptional<z.ZodObject<{
5640
+ interval: z.ZodString;
5641
+ anchor: z.ZodOptional<z.ZodDate>;
5642
+ }, z.core.$strip>>;
5643
+ }, z.core.$strip>, z.ZodObject<{
5644
+ type: z.ZodLiteral<"boolean">;
5645
+ feature: z.ZodObject<{
5646
+ id: z.ZodString;
5647
+ }, z.core.$strip>;
5648
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5649
+ usagePeriod: z.ZodOptional<z.ZodObject<{
5650
+ interval: z.ZodString;
5651
+ anchor: z.ZodOptional<z.ZodDate>;
5652
+ }, z.core.$strip>>;
5653
+ }, z.core.$strip>], "type">;
5345
5654
  export declare const workflowCollectionSettings: z.ZodObject<{
5346
5655
  alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5347
5656
  type: z.ZodLiteral<"subscription">;
@@ -17871,6 +18180,147 @@ export declare const getCustomerEntitlementAccessResponse: z.ZodObject<{
17871
18180
  grantBalances: z.ZodRecord<z.ZodString, z.ZodString>;
17872
18181
  }, z.core.$strip>>;
17873
18182
  }, z.core.$strip>;
18183
+ export declare const createCustomerEntitlementPathParams: z.ZodObject<{
18184
+ customerId: z.ZodString;
18185
+ }, z.core.$strip>;
18186
+ export declare const createCustomerEntitlementBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
18187
+ type: z.ZodLiteral<"metered">;
18188
+ feature: z.ZodObject<{
18189
+ id: z.ZodString;
18190
+ }, z.core.$strip>;
18191
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18192
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18193
+ issue: z.ZodOptional<z.ZodObject<{
18194
+ amount: z.ZodString;
18195
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18196
+ }, z.core.$strip>>;
18197
+ issueAfterReset: z.ZodOptional<z.ZodString>;
18198
+ issueAfterResetPriority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18199
+ preserveOverageAtReset: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18200
+ usagePeriod: z.ZodObject<{
18201
+ interval: z.ZodString;
18202
+ anchor: z.ZodOptional<z.ZodDate>;
18203
+ }, z.core.$strip>;
18204
+ measureUsageFrom: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
18205
+ current_period_start: "current_period_start";
18206
+ now: "now";
18207
+ }>, z.ZodDate]>>;
18208
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
18209
+ amount: z.ZodString;
18210
+ priority: z.ZodOptional<z.ZodNumber>;
18211
+ effectiveAt: z.ZodDate;
18212
+ expiresAfter: z.ZodOptional<z.ZodString>;
18213
+ maxRolloverAmount: z.ZodOptional<z.ZodString>;
18214
+ minRolloverAmount: z.ZodOptional<z.ZodString>;
18215
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18216
+ recurrence: z.ZodOptional<z.ZodObject<{
18217
+ interval: z.ZodString;
18218
+ anchor: z.ZodOptional<z.ZodDate>;
18219
+ }, z.core.$strip>>;
18220
+ }, z.core.$strip>>>;
18221
+ }, z.core.$strip>, z.ZodObject<{
18222
+ type: z.ZodLiteral<"static">;
18223
+ feature: z.ZodObject<{
18224
+ id: z.ZodString;
18225
+ }, z.core.$strip>;
18226
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18227
+ config: z.ZodUnknown;
18228
+ usagePeriod: z.ZodOptional<z.ZodObject<{
18229
+ interval: z.ZodString;
18230
+ anchor: z.ZodOptional<z.ZodDate>;
18231
+ }, z.core.$strip>>;
18232
+ }, z.core.$strip>, z.ZodObject<{
18233
+ type: z.ZodLiteral<"boolean">;
18234
+ feature: z.ZodObject<{
18235
+ id: z.ZodString;
18236
+ }, z.core.$strip>;
18237
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18238
+ usagePeriod: z.ZodOptional<z.ZodObject<{
18239
+ interval: z.ZodString;
18240
+ anchor: z.ZodOptional<z.ZodDate>;
18241
+ }, z.core.$strip>>;
18242
+ }, z.core.$strip>], "type">;
18243
+ export declare const createCustomerEntitlementResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
18244
+ id: z.ZodString;
18245
+ type: z.ZodLiteral<"metered">;
18246
+ feature: z.ZodObject<{
18247
+ id: z.ZodString;
18248
+ }, z.core.$strip>;
18249
+ customer: z.ZodObject<{
18250
+ id: z.ZodString;
18251
+ }, z.core.$strip>;
18252
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18253
+ activeFrom: z.ZodDate;
18254
+ activeTo: z.ZodOptional<z.ZodDate>;
18255
+ createdAt: z.ZodDate;
18256
+ updatedAt: z.ZodDate;
18257
+ deletedAt: z.ZodOptional<z.ZodDate>;
18258
+ usagePeriod: z.ZodObject<{
18259
+ anchor: z.ZodDate;
18260
+ interval: z.ZodString;
18261
+ }, z.core.$strip>;
18262
+ currentUsagePeriod: z.ZodObject<{
18263
+ from: z.ZodDate;
18264
+ to: z.ZodDate;
18265
+ }, z.core.$strip>;
18266
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18267
+ issue: z.ZodOptional<z.ZodObject<{
18268
+ amount: z.ZodString;
18269
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18270
+ }, z.core.$strip>>;
18271
+ issueAfterReset: z.ZodOptional<z.ZodString>;
18272
+ issueAfterResetPriority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18273
+ preserveOverageAtReset: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18274
+ measureUsageFrom: z.ZodDate;
18275
+ lastReset: z.ZodDate;
18276
+ }, z.core.$strip>, z.ZodObject<{
18277
+ id: z.ZodString;
18278
+ type: z.ZodLiteral<"static">;
18279
+ feature: z.ZodObject<{
18280
+ id: z.ZodString;
18281
+ }, z.core.$strip>;
18282
+ customer: z.ZodObject<{
18283
+ id: z.ZodString;
18284
+ }, z.core.$strip>;
18285
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18286
+ usagePeriod: z.ZodOptional<z.ZodObject<{
18287
+ anchor: z.ZodDate;
18288
+ interval: z.ZodString;
18289
+ }, z.core.$strip>>;
18290
+ currentUsagePeriod: z.ZodOptional<z.ZodObject<{
18291
+ from: z.ZodDate;
18292
+ to: z.ZodDate;
18293
+ }, z.core.$strip>>;
18294
+ activeFrom: z.ZodDate;
18295
+ activeTo: z.ZodOptional<z.ZodDate>;
18296
+ createdAt: z.ZodDate;
18297
+ updatedAt: z.ZodDate;
18298
+ deletedAt: z.ZodOptional<z.ZodDate>;
18299
+ config: z.ZodUnknown;
18300
+ }, z.core.$strip>, z.ZodObject<{
18301
+ id: z.ZodString;
18302
+ type: z.ZodLiteral<"boolean">;
18303
+ feature: z.ZodObject<{
18304
+ id: z.ZodString;
18305
+ }, z.core.$strip>;
18306
+ customer: z.ZodObject<{
18307
+ id: z.ZodString;
18308
+ }, z.core.$strip>;
18309
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18310
+ usagePeriod: z.ZodOptional<z.ZodObject<{
18311
+ anchor: z.ZodDate;
18312
+ interval: z.ZodString;
18313
+ }, z.core.$strip>>;
18314
+ currentUsagePeriod: z.ZodOptional<z.ZodObject<{
18315
+ from: z.ZodDate;
18316
+ to: z.ZodDate;
18317
+ }, z.core.$strip>>;
18318
+ activeFrom: z.ZodDate;
18319
+ activeTo: z.ZodOptional<z.ZodDate>;
18320
+ createdAt: z.ZodDate;
18321
+ updatedAt: z.ZodDate;
18322
+ deletedAt: z.ZodOptional<z.ZodDate>;
18323
+ }, z.core.$strip>], "type">;
17874
18324
  export declare const createCreditGrantPathParams: z.ZodObject<{
17875
18325
  customerId: z.ZodString;
17876
18326
  }, z.core.$strip>;
@@ -32898,6 +33348,11 @@ export declare const entitlementTypeWire: z.ZodEnum<{
32898
33348
  export declare const entitlementAccessExpandWire: z.ZodEnum<{
32899
33349
  value: "value";
32900
33350
  }>;
33351
+ export declare const iso8601DurationWire: z.ZodString;
33352
+ export declare const entitlementMeasureUsageFromPresetWire: z.ZodEnum<{
33353
+ current_period_start: "current_period_start";
33354
+ now: "now";
33355
+ }>;
32901
33356
  export declare const createLabelsWire: z.ZodRecord<z.ZodString, z.ZodString>;
32902
33357
  export declare const creditFundingMethodWire: z.ZodEnum<{
32903
33358
  external: "external";
@@ -32911,7 +33366,6 @@ export declare const taxBehaviorWire: z.ZodEnum<{
32911
33366
  exclusive: "exclusive";
32912
33367
  inclusive: "inclusive";
32913
33368
  }>;
32914
- export declare const iso8601DurationWire: z.ZodString;
32915
33369
  export declare const creditPurchasePaymentSettlementStatusWire: z.ZodEnum<{
32916
33370
  authorized: "authorized";
32917
33371
  pending: "pending";
@@ -33356,6 +33810,10 @@ export declare const entitlementAccessValueWire: z.ZodObject<{
33356
33810
  total_available_grant_amount: z.ZodString;
33357
33811
  grant_balances: z.ZodRecord<z.ZodString, z.ZodString>;
33358
33812
  }, z.core.$strict>;
33813
+ export declare const entitlementIssueAfterResetWire: z.ZodObject<{
33814
+ amount: z.ZodString;
33815
+ priority: z.ZodOptional<z.ZodNumber>;
33816
+ }, z.core.$strict>;
33359
33817
  export declare const createChargeCostBasisManualWire: z.ZodObject<{
33360
33818
  type: z.ZodLiteral<"manual">;
33361
33819
  fiat_currency: z.ZodOptional<z.ZodString>;
@@ -33573,6 +34031,9 @@ export declare const customerReferenceWire: z.ZodObject<{
33573
34031
  export declare const profileReferenceWire: z.ZodObject<{
33574
34032
  id: z.ZodString;
33575
34033
  }, z.core.$strict>;
34034
+ export declare const featureReferenceWire: z.ZodObject<{
34035
+ id: z.ZodString;
34036
+ }, z.core.$strict>;
33576
34037
  export declare const createChargeCostBasisPinnedWire: z.ZodObject<{
33577
34038
  type: z.ZodLiteral<"pinned">;
33578
34039
  fiat_currency: z.ZodString;
@@ -33603,9 +34064,6 @@ export declare const subscriptionCostBasisPinWire: z.ZodObject<{
33603
34064
  invoice_currency: z.ZodString;
33604
34065
  cost_basis_id: z.ZodString;
33605
34066
  }, z.core.$strict>;
33606
- export declare const featureReferenceWire: z.ZodObject<{
33607
- id: z.ZodString;
33608
- }, z.core.$strict>;
33609
34067
  export declare const subscriptionReferenceWire: z.ZodObject<{
33610
34068
  id: z.ZodString;
33611
34069
  name: z.ZodOptional<z.ZodString>;
@@ -33674,16 +34132,16 @@ export declare const appStripeCreateCustomerPortalSessionResultWire: z.ZodObject
33674
34132
  locale: z.ZodString;
33675
34133
  url: z.ZodString;
33676
34134
  }, z.core.$strict>;
34135
+ export declare const closedPeriodWire: z.ZodObject<{
34136
+ from: z.ZodString;
34137
+ to: z.ZodString;
34138
+ }, z.core.$strict>;
33677
34139
  export declare const chargeResolvedCostBasisWire: z.ZodObject<{
33678
34140
  fiat_currency: z.ZodString;
33679
34141
  rate: z.ZodString;
33680
34142
  cost_basis_id: z.ZodOptional<z.ZodString>;
33681
34143
  resolved_at: z.ZodString;
33682
34144
  }, z.core.$strict>;
33683
- export declare const closedPeriodWire: z.ZodObject<{
33684
- from: z.ZodString;
33685
- to: z.ZodString;
33686
- }, z.core.$strict>;
33687
34145
  export declare const subscriptionAddonTimelineSegmentWire: z.ZodObject<{
33688
34146
  active_from: z.ZodString;
33689
34147
  active_to: z.ZodOptional<z.ZodString>;
@@ -34080,6 +34538,14 @@ export declare const customerStripeCreateCustomerPortalSessionRequestWire: z.Zod
34080
34538
  return_url: z.ZodOptional<z.ZodString>;
34081
34539
  }, z.core.$strict>;
34082
34540
  }, z.core.$strict>;
34541
+ export declare const recurringPeriodInputWire: z.ZodObject<{
34542
+ interval: z.ZodString;
34543
+ anchor: z.ZodOptional<z.ZodString>;
34544
+ }, z.core.$strict>;
34545
+ export declare const recurringPeriodWire: z.ZodObject<{
34546
+ anchor: z.ZodString;
34547
+ interval: z.ZodString;
34548
+ }, z.core.$strict>;
34083
34549
  export declare const rateCardMeteredEntitlementWire: z.ZodObject<{
34084
34550
  type: z.ZodLiteral<"metered">;
34085
34551
  is_soft_limit: z.ZodOptional<z.ZodBoolean>;
@@ -34098,10 +34564,10 @@ export declare const subscriptionEditStretchPhaseWire: z.ZodObject<{
34098
34564
  phase_key: z.ZodString;
34099
34565
  extend_by: z.ZodString;
34100
34566
  }, z.core.$strict>;
34101
- export declare const recurringPeriodWire: z.ZodObject<{
34102
- anchor: z.ZodString;
34103
- interval: z.ZodString;
34104
- }, z.core.$strict>;
34567
+ export declare const entitlementMeasureUsageFromWire: z.ZodUnion<readonly [z.ZodEnum<{
34568
+ current_period_start: "current_period_start";
34569
+ now: "now";
34570
+ }>, z.ZodString]>;
34105
34571
  export declare const updateCreditGrantExternalSettlementRequestWire: z.ZodObject<{
34106
34572
  status: z.ZodEnum<{
34107
34573
  authorized: "authorized";
@@ -35802,6 +36268,132 @@ export declare const appStripeCreateCheckoutSessionConsentCollectionWire: z.ZodO
35802
36268
  required: "required";
35803
36269
  }>>;
35804
36270
  }, z.core.$strict>;
36271
+ export declare const entitlementGrantCreateRequestWire: z.ZodObject<{
36272
+ amount: z.ZodString;
36273
+ priority: z.ZodOptional<z.ZodNumber>;
36274
+ effective_at: z.ZodString;
36275
+ expires_after: z.ZodOptional<z.ZodString>;
36276
+ max_rollover_amount: z.ZodOptional<z.ZodString>;
36277
+ min_rollover_amount: z.ZodOptional<z.ZodString>;
36278
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36279
+ recurrence: z.ZodOptional<z.ZodObject<{
36280
+ interval: z.ZodString;
36281
+ anchor: z.ZodOptional<z.ZodString>;
36282
+ }, z.core.$strict>>;
36283
+ }, z.core.$strict>;
36284
+ export declare const createEntitlementStaticRequestWire: z.ZodObject<{
36285
+ type: z.ZodLiteral<"static">;
36286
+ feature: z.ZodObject<{
36287
+ id: z.ZodString;
36288
+ }, z.core.$strict>;
36289
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36290
+ config: z.ZodUnknown;
36291
+ usage_period: z.ZodOptional<z.ZodObject<{
36292
+ interval: z.ZodString;
36293
+ anchor: z.ZodOptional<z.ZodString>;
36294
+ }, z.core.$strict>>;
36295
+ }, z.core.$strict>;
36296
+ export declare const createEntitlementBooleanRequestWire: z.ZodObject<{
36297
+ type: z.ZodLiteral<"boolean">;
36298
+ feature: z.ZodObject<{
36299
+ id: z.ZodString;
36300
+ }, z.core.$strict>;
36301
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36302
+ usage_period: z.ZodOptional<z.ZodObject<{
36303
+ interval: z.ZodString;
36304
+ anchor: z.ZodOptional<z.ZodString>;
36305
+ }, z.core.$strict>>;
36306
+ }, z.core.$strict>;
36307
+ export declare const entitlementMeteredWire: z.ZodObject<{
36308
+ id: z.ZodString;
36309
+ type: z.ZodLiteral<"metered">;
36310
+ feature: z.ZodObject<{
36311
+ id: z.ZodString;
36312
+ }, z.core.$strict>;
36313
+ customer: z.ZodObject<{
36314
+ id: z.ZodString;
36315
+ }, z.core.$strict>;
36316
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36317
+ active_from: z.ZodString;
36318
+ active_to: z.ZodOptional<z.ZodString>;
36319
+ created_at: z.ZodString;
36320
+ updated_at: z.ZodString;
36321
+ deleted_at: z.ZodOptional<z.ZodString>;
36322
+ usage_period: z.ZodObject<{
36323
+ anchor: z.ZodString;
36324
+ interval: z.ZodString;
36325
+ }, z.core.$strict>;
36326
+ current_usage_period: z.ZodObject<{
36327
+ from: z.ZodString;
36328
+ to: z.ZodString;
36329
+ }, z.core.$strict>;
36330
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36331
+ issue: z.ZodOptional<z.ZodObject<{
36332
+ amount: z.ZodString;
36333
+ priority: z.ZodOptional<z.ZodNumber>;
36334
+ }, z.core.$strict>>;
36335
+ issue_after_reset: z.ZodOptional<z.ZodString>;
36336
+ issue_after_reset_priority: z.ZodOptional<z.ZodNumber>;
36337
+ preserve_overage_at_reset: z.ZodOptional<z.ZodBoolean>;
36338
+ measure_usage_from: z.ZodString;
36339
+ last_reset: z.ZodString;
36340
+ }, z.core.$strict>;
36341
+ export declare const entitlementStaticWire: z.ZodObject<{
36342
+ id: z.ZodString;
36343
+ type: z.ZodLiteral<"static">;
36344
+ feature: z.ZodObject<{
36345
+ id: z.ZodString;
36346
+ }, z.core.$strict>;
36347
+ customer: z.ZodObject<{
36348
+ id: z.ZodString;
36349
+ }, z.core.$strict>;
36350
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36351
+ usage_period: z.ZodOptional<z.ZodObject<{
36352
+ anchor: z.ZodString;
36353
+ interval: z.ZodString;
36354
+ }, z.core.$strict>>;
36355
+ current_usage_period: z.ZodOptional<z.ZodObject<{
36356
+ from: z.ZodString;
36357
+ to: z.ZodString;
36358
+ }, z.core.$strict>>;
36359
+ active_from: z.ZodString;
36360
+ active_to: z.ZodOptional<z.ZodString>;
36361
+ created_at: z.ZodString;
36362
+ updated_at: z.ZodString;
36363
+ deleted_at: z.ZodOptional<z.ZodString>;
36364
+ config: z.ZodUnknown;
36365
+ }, z.core.$strict>;
36366
+ export declare const entitlementBooleanWire: z.ZodObject<{
36367
+ id: z.ZodString;
36368
+ type: z.ZodLiteral<"boolean">;
36369
+ feature: z.ZodObject<{
36370
+ id: z.ZodString;
36371
+ }, z.core.$strict>;
36372
+ customer: z.ZodObject<{
36373
+ id: z.ZodString;
36374
+ }, z.core.$strict>;
36375
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36376
+ usage_period: z.ZodOptional<z.ZodObject<{
36377
+ anchor: z.ZodString;
36378
+ interval: z.ZodString;
36379
+ }, z.core.$strict>>;
36380
+ current_usage_period: z.ZodOptional<z.ZodObject<{
36381
+ from: z.ZodString;
36382
+ to: z.ZodString;
36383
+ }, z.core.$strict>>;
36384
+ active_from: z.ZodString;
36385
+ active_to: z.ZodOptional<z.ZodString>;
36386
+ created_at: z.ZodString;
36387
+ updated_at: z.ZodString;
36388
+ deleted_at: z.ZodOptional<z.ZodString>;
36389
+ }, z.core.$strict>;
36390
+ export declare const workflowCollectionAlignmentAnchoredWire: z.ZodObject<{
36391
+ type: z.ZodLiteral<"anchored">;
36392
+ recurring_period: z.ZodObject<{
36393
+ anchor: z.ZodString;
36394
+ interval: z.ZodString;
36395
+ }, z.core.$strict>;
36396
+ }, z.core.$strict>;
35805
36397
  export declare const rateCardEntitlementWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
35806
36398
  type: z.ZodLiteral<"metered">;
35807
36399
  is_soft_limit: z.ZodOptional<z.ZodBoolean>;
@@ -35823,13 +36415,6 @@ export declare const subscriptionEditAddPhaseWire: z.ZodObject<{
35823
36415
  duration: z.ZodOptional<z.ZodString>;
35824
36416
  }, z.core.$strict>;
35825
36417
  }, z.core.$strict>;
35826
- export declare const workflowCollectionAlignmentAnchoredWire: z.ZodObject<{
35827
- type: z.ZodLiteral<"anchored">;
35828
- recurring_period: z.ZodObject<{
35829
- anchor: z.ZodString;
35830
- interval: z.ZodString;
35831
- }, z.core.$strict>;
35832
- }, z.core.$strict>;
35833
36418
  export declare const subscriptionBaseWire: z.ZodObject<{
35834
36419
  id: z.ZodString;
35835
36420
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -36927,6 +37512,123 @@ export declare const appStripeCreateCheckoutSessionRequestOptionsWire: z.ZodObje
36927
37512
  }>>;
36928
37513
  }, z.core.$strict>>;
36929
37514
  }, z.core.$strict>;
37515
+ export declare const createEntitlementMeteredRequestWire: z.ZodObject<{
37516
+ type: z.ZodLiteral<"metered">;
37517
+ feature: z.ZodObject<{
37518
+ id: z.ZodString;
37519
+ }, z.core.$strict>;
37520
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37521
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
37522
+ issue: z.ZodOptional<z.ZodObject<{
37523
+ amount: z.ZodString;
37524
+ priority: z.ZodOptional<z.ZodNumber>;
37525
+ }, z.core.$strict>>;
37526
+ issue_after_reset: z.ZodOptional<z.ZodString>;
37527
+ issue_after_reset_priority: z.ZodOptional<z.ZodNumber>;
37528
+ preserve_overage_at_reset: z.ZodOptional<z.ZodBoolean>;
37529
+ usage_period: z.ZodObject<{
37530
+ interval: z.ZodString;
37531
+ anchor: z.ZodOptional<z.ZodString>;
37532
+ }, z.core.$strict>;
37533
+ measure_usage_from: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
37534
+ current_period_start: "current_period_start";
37535
+ now: "now";
37536
+ }>, z.ZodString]>>;
37537
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
37538
+ amount: z.ZodString;
37539
+ priority: z.ZodOptional<z.ZodNumber>;
37540
+ effective_at: z.ZodString;
37541
+ expires_after: z.ZodOptional<z.ZodString>;
37542
+ max_rollover_amount: z.ZodOptional<z.ZodString>;
37543
+ min_rollover_amount: z.ZodOptional<z.ZodString>;
37544
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37545
+ recurrence: z.ZodOptional<z.ZodObject<{
37546
+ interval: z.ZodString;
37547
+ anchor: z.ZodOptional<z.ZodString>;
37548
+ }, z.core.$strict>>;
37549
+ }, z.core.$strict>>>;
37550
+ }, z.core.$strict>;
37551
+ export declare const entitlementWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
37552
+ id: z.ZodString;
37553
+ type: z.ZodLiteral<"metered">;
37554
+ feature: z.ZodObject<{
37555
+ id: z.ZodString;
37556
+ }, z.core.$strict>;
37557
+ customer: z.ZodObject<{
37558
+ id: z.ZodString;
37559
+ }, z.core.$strict>;
37560
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37561
+ active_from: z.ZodString;
37562
+ active_to: z.ZodOptional<z.ZodString>;
37563
+ created_at: z.ZodString;
37564
+ updated_at: z.ZodString;
37565
+ deleted_at: z.ZodOptional<z.ZodString>;
37566
+ usage_period: z.ZodObject<{
37567
+ anchor: z.ZodString;
37568
+ interval: z.ZodString;
37569
+ }, z.core.$strict>;
37570
+ current_usage_period: z.ZodObject<{
37571
+ from: z.ZodString;
37572
+ to: z.ZodString;
37573
+ }, z.core.$strict>;
37574
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
37575
+ issue: z.ZodOptional<z.ZodObject<{
37576
+ amount: z.ZodString;
37577
+ priority: z.ZodOptional<z.ZodNumber>;
37578
+ }, z.core.$strict>>;
37579
+ issue_after_reset: z.ZodOptional<z.ZodString>;
37580
+ issue_after_reset_priority: z.ZodOptional<z.ZodNumber>;
37581
+ preserve_overage_at_reset: z.ZodOptional<z.ZodBoolean>;
37582
+ measure_usage_from: z.ZodString;
37583
+ last_reset: z.ZodString;
37584
+ }, z.core.$strict>, z.ZodObject<{
37585
+ id: z.ZodString;
37586
+ type: z.ZodLiteral<"static">;
37587
+ feature: z.ZodObject<{
37588
+ id: z.ZodString;
37589
+ }, z.core.$strict>;
37590
+ customer: z.ZodObject<{
37591
+ id: z.ZodString;
37592
+ }, z.core.$strict>;
37593
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37594
+ usage_period: z.ZodOptional<z.ZodObject<{
37595
+ anchor: z.ZodString;
37596
+ interval: z.ZodString;
37597
+ }, z.core.$strict>>;
37598
+ current_usage_period: z.ZodOptional<z.ZodObject<{
37599
+ from: z.ZodString;
37600
+ to: z.ZodString;
37601
+ }, z.core.$strict>>;
37602
+ active_from: z.ZodString;
37603
+ active_to: z.ZodOptional<z.ZodString>;
37604
+ created_at: z.ZodString;
37605
+ updated_at: z.ZodString;
37606
+ deleted_at: z.ZodOptional<z.ZodString>;
37607
+ config: z.ZodUnknown;
37608
+ }, z.core.$strict>, z.ZodObject<{
37609
+ id: z.ZodString;
37610
+ type: z.ZodLiteral<"boolean">;
37611
+ feature: z.ZodObject<{
37612
+ id: z.ZodString;
37613
+ }, z.core.$strict>;
37614
+ customer: z.ZodObject<{
37615
+ id: z.ZodString;
37616
+ }, z.core.$strict>;
37617
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37618
+ usage_period: z.ZodOptional<z.ZodObject<{
37619
+ anchor: z.ZodString;
37620
+ interval: z.ZodString;
37621
+ }, z.core.$strict>>;
37622
+ current_usage_period: z.ZodOptional<z.ZodObject<{
37623
+ from: z.ZodString;
37624
+ to: z.ZodString;
37625
+ }, z.core.$strict>>;
37626
+ active_from: z.ZodString;
37627
+ active_to: z.ZodOptional<z.ZodString>;
37628
+ created_at: z.ZodString;
37629
+ updated_at: z.ZodString;
37630
+ deleted_at: z.ZodOptional<z.ZodString>;
37631
+ }, z.core.$strict>], "type">;
36930
37632
  export declare const workflowCollectionAlignmentWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
36931
37633
  type: z.ZodLiteral<"subscription">;
36932
37634
  }, z.core.$strict>, z.ZodObject<{
@@ -38067,6 +38769,63 @@ export declare const customerStripeCreateCheckoutSessionRequestWire: z.ZodObject
38067
38769
  }, z.core.$strict>>;
38068
38770
  }, z.core.$strict>;
38069
38771
  }, z.core.$strict>;
38772
+ export declare const createEntitlementRequestWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
38773
+ type: z.ZodLiteral<"metered">;
38774
+ feature: z.ZodObject<{
38775
+ id: z.ZodString;
38776
+ }, z.core.$strict>;
38777
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38778
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
38779
+ issue: z.ZodOptional<z.ZodObject<{
38780
+ amount: z.ZodString;
38781
+ priority: z.ZodOptional<z.ZodNumber>;
38782
+ }, z.core.$strict>>;
38783
+ issue_after_reset: z.ZodOptional<z.ZodString>;
38784
+ issue_after_reset_priority: z.ZodOptional<z.ZodNumber>;
38785
+ preserve_overage_at_reset: z.ZodOptional<z.ZodBoolean>;
38786
+ usage_period: z.ZodObject<{
38787
+ interval: z.ZodString;
38788
+ anchor: z.ZodOptional<z.ZodString>;
38789
+ }, z.core.$strict>;
38790
+ measure_usage_from: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
38791
+ current_period_start: "current_period_start";
38792
+ now: "now";
38793
+ }>, z.ZodString]>>;
38794
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
38795
+ amount: z.ZodString;
38796
+ priority: z.ZodOptional<z.ZodNumber>;
38797
+ effective_at: z.ZodString;
38798
+ expires_after: z.ZodOptional<z.ZodString>;
38799
+ max_rollover_amount: z.ZodOptional<z.ZodString>;
38800
+ min_rollover_amount: z.ZodOptional<z.ZodString>;
38801
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38802
+ recurrence: z.ZodOptional<z.ZodObject<{
38803
+ interval: z.ZodString;
38804
+ anchor: z.ZodOptional<z.ZodString>;
38805
+ }, z.core.$strict>>;
38806
+ }, z.core.$strict>>>;
38807
+ }, z.core.$strict>, z.ZodObject<{
38808
+ type: z.ZodLiteral<"static">;
38809
+ feature: z.ZodObject<{
38810
+ id: z.ZodString;
38811
+ }, z.core.$strict>;
38812
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38813
+ config: z.ZodUnknown;
38814
+ usage_period: z.ZodOptional<z.ZodObject<{
38815
+ interval: z.ZodString;
38816
+ anchor: z.ZodOptional<z.ZodString>;
38817
+ }, z.core.$strict>>;
38818
+ }, z.core.$strict>, z.ZodObject<{
38819
+ type: z.ZodLiteral<"boolean">;
38820
+ feature: z.ZodObject<{
38821
+ id: z.ZodString;
38822
+ }, z.core.$strict>;
38823
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38824
+ usage_period: z.ZodOptional<z.ZodObject<{
38825
+ interval: z.ZodString;
38826
+ anchor: z.ZodOptional<z.ZodString>;
38827
+ }, z.core.$strict>>;
38828
+ }, z.core.$strict>], "type">;
38070
38829
  export declare const workflowCollectionSettingsWire: z.ZodObject<{
38071
38830
  alignment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
38072
38831
  type: z.ZodLiteral<"subscription">;
@@ -50587,6 +51346,147 @@ export declare const getCustomerEntitlementAccessResponseWire: z.ZodObject<{
50587
51346
  grant_balances: z.ZodRecord<z.ZodString, z.ZodString>;
50588
51347
  }, z.core.$strict>>;
50589
51348
  }, z.core.$strict>;
51349
+ export declare const createCustomerEntitlementPathParamsWire: z.ZodObject<{
51350
+ customerId: z.ZodString;
51351
+ }, z.core.$strip>;
51352
+ export declare const createCustomerEntitlementBodyWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
51353
+ type: z.ZodLiteral<"metered">;
51354
+ feature: z.ZodObject<{
51355
+ id: z.ZodString;
51356
+ }, z.core.$strict>;
51357
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51358
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
51359
+ issue: z.ZodOptional<z.ZodObject<{
51360
+ amount: z.ZodString;
51361
+ priority: z.ZodOptional<z.ZodNumber>;
51362
+ }, z.core.$strict>>;
51363
+ issue_after_reset: z.ZodOptional<z.ZodString>;
51364
+ issue_after_reset_priority: z.ZodOptional<z.ZodNumber>;
51365
+ preserve_overage_at_reset: z.ZodOptional<z.ZodBoolean>;
51366
+ usage_period: z.ZodObject<{
51367
+ interval: z.ZodString;
51368
+ anchor: z.ZodOptional<z.ZodString>;
51369
+ }, z.core.$strict>;
51370
+ measure_usage_from: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
51371
+ current_period_start: "current_period_start";
51372
+ now: "now";
51373
+ }>, z.ZodString]>>;
51374
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
51375
+ amount: z.ZodString;
51376
+ priority: z.ZodOptional<z.ZodNumber>;
51377
+ effective_at: z.ZodString;
51378
+ expires_after: z.ZodOptional<z.ZodString>;
51379
+ max_rollover_amount: z.ZodOptional<z.ZodString>;
51380
+ min_rollover_amount: z.ZodOptional<z.ZodString>;
51381
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51382
+ recurrence: z.ZodOptional<z.ZodObject<{
51383
+ interval: z.ZodString;
51384
+ anchor: z.ZodOptional<z.ZodString>;
51385
+ }, z.core.$strict>>;
51386
+ }, z.core.$strict>>>;
51387
+ }, z.core.$strict>, z.ZodObject<{
51388
+ type: z.ZodLiteral<"static">;
51389
+ feature: z.ZodObject<{
51390
+ id: z.ZodString;
51391
+ }, z.core.$strict>;
51392
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51393
+ config: z.ZodUnknown;
51394
+ usage_period: z.ZodOptional<z.ZodObject<{
51395
+ interval: z.ZodString;
51396
+ anchor: z.ZodOptional<z.ZodString>;
51397
+ }, z.core.$strict>>;
51398
+ }, z.core.$strict>, z.ZodObject<{
51399
+ type: z.ZodLiteral<"boolean">;
51400
+ feature: z.ZodObject<{
51401
+ id: z.ZodString;
51402
+ }, z.core.$strict>;
51403
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51404
+ usage_period: z.ZodOptional<z.ZodObject<{
51405
+ interval: z.ZodString;
51406
+ anchor: z.ZodOptional<z.ZodString>;
51407
+ }, z.core.$strict>>;
51408
+ }, z.core.$strict>], "type">;
51409
+ export declare const createCustomerEntitlementResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
51410
+ id: z.ZodString;
51411
+ type: z.ZodLiteral<"metered">;
51412
+ feature: z.ZodObject<{
51413
+ id: z.ZodString;
51414
+ }, z.core.$strict>;
51415
+ customer: z.ZodObject<{
51416
+ id: z.ZodString;
51417
+ }, z.core.$strict>;
51418
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51419
+ active_from: z.ZodString;
51420
+ active_to: z.ZodOptional<z.ZodString>;
51421
+ created_at: z.ZodString;
51422
+ updated_at: z.ZodString;
51423
+ deleted_at: z.ZodOptional<z.ZodString>;
51424
+ usage_period: z.ZodObject<{
51425
+ anchor: z.ZodString;
51426
+ interval: z.ZodString;
51427
+ }, z.core.$strict>;
51428
+ current_usage_period: z.ZodObject<{
51429
+ from: z.ZodString;
51430
+ to: z.ZodString;
51431
+ }, z.core.$strict>;
51432
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
51433
+ issue: z.ZodOptional<z.ZodObject<{
51434
+ amount: z.ZodString;
51435
+ priority: z.ZodOptional<z.ZodNumber>;
51436
+ }, z.core.$strict>>;
51437
+ issue_after_reset: z.ZodOptional<z.ZodString>;
51438
+ issue_after_reset_priority: z.ZodOptional<z.ZodNumber>;
51439
+ preserve_overage_at_reset: z.ZodOptional<z.ZodBoolean>;
51440
+ measure_usage_from: z.ZodString;
51441
+ last_reset: z.ZodString;
51442
+ }, z.core.$strict>, z.ZodObject<{
51443
+ id: z.ZodString;
51444
+ type: z.ZodLiteral<"static">;
51445
+ feature: z.ZodObject<{
51446
+ id: z.ZodString;
51447
+ }, z.core.$strict>;
51448
+ customer: z.ZodObject<{
51449
+ id: z.ZodString;
51450
+ }, z.core.$strict>;
51451
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51452
+ usage_period: z.ZodOptional<z.ZodObject<{
51453
+ anchor: z.ZodString;
51454
+ interval: z.ZodString;
51455
+ }, z.core.$strict>>;
51456
+ current_usage_period: z.ZodOptional<z.ZodObject<{
51457
+ from: z.ZodString;
51458
+ to: z.ZodString;
51459
+ }, z.core.$strict>>;
51460
+ active_from: z.ZodString;
51461
+ active_to: z.ZodOptional<z.ZodString>;
51462
+ created_at: z.ZodString;
51463
+ updated_at: z.ZodString;
51464
+ deleted_at: z.ZodOptional<z.ZodString>;
51465
+ config: z.ZodUnknown;
51466
+ }, z.core.$strict>, z.ZodObject<{
51467
+ id: z.ZodString;
51468
+ type: z.ZodLiteral<"boolean">;
51469
+ feature: z.ZodObject<{
51470
+ id: z.ZodString;
51471
+ }, z.core.$strict>;
51472
+ customer: z.ZodObject<{
51473
+ id: z.ZodString;
51474
+ }, z.core.$strict>;
51475
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51476
+ usage_period: z.ZodOptional<z.ZodObject<{
51477
+ anchor: z.ZodString;
51478
+ interval: z.ZodString;
51479
+ }, z.core.$strict>>;
51480
+ current_usage_period: z.ZodOptional<z.ZodObject<{
51481
+ from: z.ZodString;
51482
+ to: z.ZodString;
51483
+ }, z.core.$strict>>;
51484
+ active_from: z.ZodString;
51485
+ active_to: z.ZodOptional<z.ZodString>;
51486
+ created_at: z.ZodString;
51487
+ updated_at: z.ZodString;
51488
+ deleted_at: z.ZodOptional<z.ZodString>;
51489
+ }, z.core.$strict>], "type">;
50590
51490
  export declare const createCreditGrantPathParamsWire: z.ZodObject<{
50591
51491
  customerId: z.ZodString;
50592
51492
  }, z.core.$strip>;