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

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.
@@ -2974,11 +2974,13 @@ export const updateInvoiceParams = zod.object({
2974
2974
  invoiceId: zod.coerce.string().regex(updateInvoicePathInvoiceIdRegExp),
2975
2975
  });
2976
2976
  export const updateInvoiceBodyDescriptionMax = 1024;
2977
+ export const updateInvoiceBodySupplierKeyMax = 256;
2977
2978
  export const updateInvoiceBodySupplierTaxIdCodeMaxOne = 32;
2978
2979
  export const updateInvoiceBodySupplierAddressesItemCountryMinOne = 2;
2979
2980
  export const updateInvoiceBodySupplierAddressesItemCountryMaxOne = 2;
2980
2981
  export const updateInvoiceBodySupplierAddressesItemCountryRegExpOne = new RegExp('^[A-Z]{2}$');
2981
2982
  export const updateInvoiceBodySupplierAddressesMax = 1;
2983
+ export const updateInvoiceBodyCustomerKeyMax = 256;
2982
2984
  export const updateInvoiceBodyCustomerTaxIdCodeMaxOne = 32;
2983
2985
  export const updateInvoiceBodyCustomerAddressesItemCountryMinOne = 2;
2984
2986
  export const updateInvoiceBodyCustomerAddressesItemCountryMaxOne = 2;
@@ -3078,6 +3080,12 @@ export const updateInvoiceBody = zod
3078
3080
  .max(updateInvoiceBodyCustomerAddressesMax)
3079
3081
  .optional()
3080
3082
  .describe('Regular post addresses for where information should be sent if needed.'),
3083
+ key: zod.coerce
3084
+ .string()
3085
+ .min(1)
3086
+ .max(updateInvoiceBodyCustomerKeyMax)
3087
+ .optional()
3088
+ .describe('An optional unique key of the party (if available)'),
3081
3089
  name: zod.coerce
3082
3090
  .string()
3083
3091
  .optional()
@@ -3610,6 +3618,12 @@ export const updateInvoiceBody = zod
3610
3618
  .max(updateInvoiceBodySupplierAddressesMax)
3611
3619
  .optional()
3612
3620
  .describe('Regular post addresses for where information should be sent if needed.'),
3621
+ key: zod.coerce
3622
+ .string()
3623
+ .min(1)
3624
+ .max(updateInvoiceBodySupplierKeyMax)
3625
+ .optional()
3626
+ .describe('An optional unique key of the party (if available)'),
3613
3627
  name: zod.coerce
3614
3628
  .string()
3615
3629
  .optional()
@@ -3892,6 +3906,7 @@ can be applied to a billing profile to customize the billing behavior for a spec
3892
3906
  */
3893
3907
  export const createBillingProfileBodyNameMax = 256;
3894
3908
  export const createBillingProfileBodyDescriptionMax = 1024;
3909
+ export const createBillingProfileBodySupplierKeyMax = 256;
3895
3910
  export const createBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
3896
3911
  export const createBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
3897
3912
  export const createBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
@@ -3990,6 +4005,12 @@ export const createBillingProfileBody = zod
3990
4005
  .string()
3991
4006
  .optional()
3992
4007
  .describe('Unique identifier for the party (if available)'),
4008
+ key: zod.coerce
4009
+ .string()
4010
+ .min(1)
4011
+ .max(createBillingProfileBodySupplierKeyMax)
4012
+ .optional()
4013
+ .describe('An optional unique key of the party (if available)'),
3993
4014
  name: zod.coerce
3994
4015
  .string()
3995
4016
  .optional()
@@ -4159,6 +4180,7 @@ export const updateBillingProfileParams = zod.object({
4159
4180
  });
4160
4181
  export const updateBillingProfileBodyNameMax = 256;
4161
4182
  export const updateBillingProfileBodyDescriptionMax = 1024;
4183
+ export const updateBillingProfileBodySupplierKeyMax = 256;
4162
4184
  export const updateBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
4163
4185
  export const updateBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
4164
4186
  export const updateBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
@@ -4237,6 +4259,12 @@ export const updateBillingProfileBody = zod
4237
4259
  .string()
4238
4260
  .optional()
4239
4261
  .describe('Unique identifier for the party (if available)'),
4262
+ key: zod.coerce
4263
+ .string()
4264
+ .min(1)
4265
+ .max(updateBillingProfileBodySupplierKeyMax)
4266
+ .optional()
4267
+ .describe('An optional unique key of the party (if available)'),
4240
4268
  name: zod.coerce
4241
4269
  .string()
4242
4270
  .optional()
@@ -5321,6 +5349,7 @@ export const createCustomerEntitlementGrantParams = zod.object({
5321
5349
  });
5322
5350
  export const createCustomerEntitlementGrantBodyAmountMin = 0;
5323
5351
  export const createCustomerEntitlementGrantBodyPriorityMax = 255;
5352
+ export const createCustomerEntitlementGrantBodyExpirationCountMax = 1000;
5324
5353
  export const createCustomerEntitlementGrantBodyMaxRolloverAmountDefault = 0;
5325
5354
  export const createCustomerEntitlementGrantBodyMinRolloverAmountDefault = 0;
5326
5355
  export const createCustomerEntitlementGrantBody = zod
@@ -5336,6 +5365,8 @@ export const createCustomerEntitlementGrantBody = zod
5336
5365
  .object({
5337
5366
  count: zod.coerce
5338
5367
  .number()
5368
+ .min(1)
5369
+ .max(createCustomerEntitlementGrantBodyExpirationCountMax)
5339
5370
  .describe('The number of time units in the expiration period.'),
5340
5371
  duration: zod
5341
5372
  .enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
@@ -9358,6 +9389,7 @@ export const createGrantParams = zod.object({
9358
9389
  });
9359
9390
  export const createGrantBodyAmountMin = 0;
9360
9391
  export const createGrantBodyPriorityMax = 255;
9392
+ export const createGrantBodyExpirationCountMax = 1000;
9361
9393
  export const createGrantBodyMaxRolloverAmountDefault = 0;
9362
9394
  export const createGrantBodyMinRolloverAmountDefault = 0;
9363
9395
  export const createGrantBody = zod
@@ -9373,6 +9405,8 @@ export const createGrantBody = zod
9373
9405
  .object({
9374
9406
  count: zod.coerce
9375
9407
  .number()
9408
+ .min(1)
9409
+ .max(createGrantBodyExpirationCountMax)
9376
9410
  .describe('The number of time units in the expiration period.'),
9377
9411
  duration: zod
9378
9412
  .enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])