@openmeter/sdk 1.0.0-beta.224 → 1.0.0-beta.225

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.
@@ -3917,6 +3917,7 @@ export const createBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
3917
3917
  export const createBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
3918
3918
  export const createBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
3919
3919
  export const createBillingProfileBodySupplierAddressesMax = 1;
3920
+ export const createBillingProfileBodyWorkflowCollectionAlignmentRecurringPeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
3920
3921
  export const createBillingProfileBodyWorkflowCollectionAlignmentDefault = {
3921
3922
  type: 'subscription',
3922
3923
  };
@@ -4041,12 +4042,37 @@ export const createBillingProfileBody = zod
4041
4042
  collection: zod
4042
4043
  .object({
4043
4044
  alignment: zod
4044
- .object({
4045
- type: zod
4046
- .enum(['subscription'])
4047
- .describe('The type of alignment.'),
4048
- })
4049
- .describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.')
4045
+ .union([
4046
+ zod
4047
+ .object({
4048
+ type: zod.enum(['subscription']),
4049
+ })
4050
+ .describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.'),
4051
+ zod
4052
+ .object({
4053
+ recurringPeriod: zod
4054
+ .object({
4055
+ anchor: zod.coerce
4056
+ .date()
4057
+ .describe('A date-time anchor to base the recurring period on.'),
4058
+ interval: zod
4059
+ .union([
4060
+ zod.coerce
4061
+ .string()
4062
+ .regex(createBillingProfileBodyWorkflowCollectionAlignmentRecurringPeriodIntervalRegExpTwo),
4063
+ zod
4064
+ .enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
4065
+ .describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
4066
+ ])
4067
+ .describe('Period duration for the recurrence')
4068
+ .describe('The unit of time for the interval. Heuristically maps ISO duraitons to enum values or returns the ISO duration.'),
4069
+ })
4070
+ .describe('Recurring period with an interval and an anchor.')
4071
+ .describe('The recurring period for the alignment.'),
4072
+ type: zod.enum(['anchored']),
4073
+ })
4074
+ .describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.'),
4075
+ ])
4050
4076
  .describe('The alignment for collecting the pending line items into an invoice.\n\nDefaults to subscription, which means that we are to create a new invoice every time the\na subscription period starts (for in advance items) or ends (for in arrears items).')
4051
4077
  .default(createBillingProfileBodyWorkflowCollectionAlignmentDefault)
4052
4078
  .describe('The alignment for collecting the pending line items into an invoice.'),
@@ -4191,6 +4217,7 @@ export const updateBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
4191
4217
  export const updateBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
4192
4218
  export const updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
4193
4219
  export const updateBillingProfileBodySupplierAddressesMax = 1;
4220
+ export const updateBillingProfileBodyWorkflowCollectionAlignmentRecurringPeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
4194
4221
  export const updateBillingProfileBodyWorkflowCollectionAlignmentDefault = {
4195
4222
  type: 'subscription',
4196
4223
  };
@@ -4295,12 +4322,37 @@ export const updateBillingProfileBody = zod
4295
4322
  collection: zod
4296
4323
  .object({
4297
4324
  alignment: zod
4298
- .object({
4299
- type: zod
4300
- .enum(['subscription'])
4301
- .describe('The type of alignment.'),
4302
- })
4303
- .describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.')
4325
+ .union([
4326
+ zod
4327
+ .object({
4328
+ type: zod.enum(['subscription']),
4329
+ })
4330
+ .describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.'),
4331
+ zod
4332
+ .object({
4333
+ recurringPeriod: zod
4334
+ .object({
4335
+ anchor: zod.coerce
4336
+ .date()
4337
+ .describe('A date-time anchor to base the recurring period on.'),
4338
+ interval: zod
4339
+ .union([
4340
+ zod.coerce
4341
+ .string()
4342
+ .regex(updateBillingProfileBodyWorkflowCollectionAlignmentRecurringPeriodIntervalRegExpTwo),
4343
+ zod
4344
+ .enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
4345
+ .describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
4346
+ ])
4347
+ .describe('Period duration for the recurrence')
4348
+ .describe('The unit of time for the interval. Heuristically maps ISO duraitons to enum values or returns the ISO duration.'),
4349
+ })
4350
+ .describe('Recurring period with an interval and an anchor.')
4351
+ .describe('The recurring period for the alignment.'),
4352
+ type: zod.enum(['anchored']),
4353
+ })
4354
+ .describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.'),
4355
+ ])
4304
4356
  .describe('The alignment for collecting the pending line items into an invoice.\n\nDefaults to subscription, which means that we are to create a new invoice every time the\na subscription period starts (for in advance items) or ends (for in arrears items).')
4305
4357
  .default(updateBillingProfileBodyWorkflowCollectionAlignmentDefault)
4306
4358
  .describe('The alignment for collecting the pending line items into an invoice.'),
@@ -4472,7 +4524,10 @@ export const createCustomerBody = zod
4472
4524
  usageAttribution: zod
4473
4525
  .object({
4474
4526
  subjectKeys: zod
4475
- .array(zod.coerce.string())
4527
+ .array(zod.coerce
4528
+ .string()
4529
+ .min(1)
4530
+ .describe('SubjectKey is a key that is used to identify a subject.'))
4476
4531
  .min(1)
4477
4532
  .max(createCustomerBodyUsageAttributionSubjectKeysMax)
4478
4533
  .describe('The subjects that are attributed to the customer.'),
@@ -4657,7 +4712,10 @@ export const updateCustomerBody = zod
4657
4712
  usageAttribution: zod
4658
4713
  .object({
4659
4714
  subjectKeys: zod
4660
- .array(zod.coerce.string())
4715
+ .array(zod.coerce
4716
+ .string()
4717
+ .min(1)
4718
+ .describe('SubjectKey is a key that is used to identify a subject.'))
4661
4719
  .min(1)
4662
4720
  .max(updateCustomerBodyUsageAttributionSubjectKeysMax)
4663
4721
  .describe('The subjects that are attributed to the customer.'),
@@ -5169,6 +5227,11 @@ export const listCustomerSubscriptionsQueryPageDefault = 1;
5169
5227
  export const listCustomerSubscriptionsQueryPageSizeDefault = 100;
5170
5228
  export const listCustomerSubscriptionsQueryPageSizeMax = 1000;
5171
5229
  export const listCustomerSubscriptionsQueryParams = zod.object({
5230
+ order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
5231
+ orderBy: zod
5232
+ .enum(['activeFrom', 'activeTo'])
5233
+ .optional()
5234
+ .describe('The order by field.'),
5172
5235
  page: zod.coerce
5173
5236
  .number()
5174
5237
  .min(1)
@@ -5180,6 +5243,11 @@ export const listCustomerSubscriptionsQueryParams = zod.object({
5180
5243
  .max(listCustomerSubscriptionsQueryPageSizeMax)
5181
5244
  .default(listCustomerSubscriptionsQueryPageSizeDefault)
5182
5245
  .describe('The maximum number of items per page.\n\nDefault is 100.'),
5246
+ status: zod
5247
+ .array(zod
5248
+ .enum(['active', 'inactive', 'canceled', 'scheduled'])
5249
+ .describe('Subscription status.'))
5250
+ .optional(),
5183
5251
  });
5184
5252
  /**
5185
5253
  * List all entitlements for all the subjects and features. This endpoint is intended for administrative purposes only.
@@ -5411,7 +5479,7 @@ export const listFeaturesQueryParams = zod.object({
5411
5479
  includeArchived: zod.coerce
5412
5480
  .boolean()
5413
5481
  .optional()
5414
- .describe('Filter by meterGroupByFilters'),
5482
+ .describe('Include archived features in response.'),
5415
5483
  limit: zod.coerce
5416
5484
  .number()
5417
5485
  .min(1)
@@ -5457,6 +5525,69 @@ export const createFeatureBodyMeterSlugMax = 64;
5457
5525
  export const createFeatureBodyMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5458
5526
  export const createFeatureBody = zod
5459
5527
  .object({
5528
+ advancedMeterGroupByFilters: zod
5529
+ .record(zod.string(), zod
5530
+ .object({
5531
+ $and: zod
5532
+ .array(zod.any())
5533
+ .nullish()
5534
+ .describe('Provide a list of filters to be combined with a logical AND.'),
5535
+ $eq: zod.coerce
5536
+ .string()
5537
+ .nullish()
5538
+ .describe('The field must be equal to the provided value.'),
5539
+ $gt: zod.coerce
5540
+ .string()
5541
+ .nullish()
5542
+ .describe('The field must be greater than the provided value.'),
5543
+ $gte: zod.coerce
5544
+ .string()
5545
+ .nullish()
5546
+ .describe('The field must be greater than or equal to the provided value.'),
5547
+ $ilike: zod.coerce
5548
+ .string()
5549
+ .nullish()
5550
+ .describe('The field must match the provided value, ignoring case.'),
5551
+ $in: zod
5552
+ .array(zod.coerce.string())
5553
+ .nullish()
5554
+ .describe('The field must be in the provided list of values.'),
5555
+ $like: zod.coerce
5556
+ .string()
5557
+ .nullish()
5558
+ .describe('The field must match the provided value.'),
5559
+ $lt: zod.coerce
5560
+ .string()
5561
+ .nullish()
5562
+ .describe('The field must be less than the provided value.'),
5563
+ $lte: zod.coerce
5564
+ .string()
5565
+ .nullish()
5566
+ .describe('The field must be less than or equal to the provided value.'),
5567
+ $ne: zod.coerce
5568
+ .string()
5569
+ .nullish()
5570
+ .describe('The field must not be equal to the provided value.'),
5571
+ $nilike: zod.coerce
5572
+ .string()
5573
+ .nullish()
5574
+ .describe('The field must not match the provided value, ignoring case.'),
5575
+ $nin: zod
5576
+ .array(zod.coerce.string())
5577
+ .nullish()
5578
+ .describe('The field must not be in the provided list of values.'),
5579
+ $nlike: zod.coerce
5580
+ .string()
5581
+ .nullish()
5582
+ .describe('The field must not match the provided value.'),
5583
+ $or: zod
5584
+ .array(zod.any())
5585
+ .nullish()
5586
+ .describe('Provide a list of filters to be combined with a logical OR.'),
5587
+ })
5588
+ .describe('A filter for a string field.'))
5589
+ .optional()
5590
+ .describe('Optional advanced meter group by filters.\nYou can use this to filter for values of the meter groupBy fields.'),
5460
5591
  key: zod.coerce
5461
5592
  .string()
5462
5593
  .min(1)
@@ -5835,6 +5966,30 @@ export const deleteMeterParams = zod.object({
5835
5966
  .max(deleteMeterPathMeterIdOrSlugMax)
5836
5967
  .regex(deleteMeterPathMeterIdOrSlugRegExp),
5837
5968
  });
5969
+ /**
5970
+ * List meter group by values.
5971
+ * @summary List meter group by values
5972
+ */
5973
+ export const listMeterGroupByValuesPathMeterIdOrSlugMax = 64;
5974
+ export const listMeterGroupByValuesPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5975
+ export const listMeterGroupByValuesParams = zod.object({
5976
+ groupByKey: zod.coerce.string(),
5977
+ meterIdOrSlug: zod.coerce
5978
+ .string()
5979
+ .min(1)
5980
+ .max(listMeterGroupByValuesPathMeterIdOrSlugMax)
5981
+ .regex(listMeterGroupByValuesPathMeterIdOrSlugRegExp),
5982
+ });
5983
+ export const listMeterGroupByValuesQueryParams = zod.object({
5984
+ from: zod.coerce
5985
+ .date()
5986
+ .optional()
5987
+ .describe('Start date-time in RFC 3339 format.\n\nInclusive. Defaults to 24 hours ago.\n\nFor example: ?from=2025-01-01T00%3A00%3A00.000Z'),
5988
+ to: zod.coerce
5989
+ .date()
5990
+ .optional()
5991
+ .describe('End date-time in RFC 3339 format.\n\nInclusive.\n\nFor example: ?to=2025-02-01T00%3A00%3A00.000Z'),
5992
+ });
5838
5993
  /**
5839
5994
  * Query meter for usage.
5840
5995
  * @summary Query meter
@@ -5911,6 +6066,69 @@ export const queryMeterPostBodyFilterCustomerIdMax = 100;
5911
6066
  export const queryMeterPostBodyGroupByMax = 100;
5912
6067
  export const queryMeterPostBody = zod
5913
6068
  .object({
6069
+ advancedMeterGroupByFilters: zod
6070
+ .record(zod.string(), zod
6071
+ .object({
6072
+ $and: zod
6073
+ .array(zod.any())
6074
+ .nullish()
6075
+ .describe('Provide a list of filters to be combined with a logical AND.'),
6076
+ $eq: zod.coerce
6077
+ .string()
6078
+ .nullish()
6079
+ .describe('The field must be equal to the provided value.'),
6080
+ $gt: zod.coerce
6081
+ .string()
6082
+ .nullish()
6083
+ .describe('The field must be greater than the provided value.'),
6084
+ $gte: zod.coerce
6085
+ .string()
6086
+ .nullish()
6087
+ .describe('The field must be greater than or equal to the provided value.'),
6088
+ $ilike: zod.coerce
6089
+ .string()
6090
+ .nullish()
6091
+ .describe('The field must match the provided value, ignoring case.'),
6092
+ $in: zod
6093
+ .array(zod.coerce.string())
6094
+ .nullish()
6095
+ .describe('The field must be in the provided list of values.'),
6096
+ $like: zod.coerce
6097
+ .string()
6098
+ .nullish()
6099
+ .describe('The field must match the provided value.'),
6100
+ $lt: zod.coerce
6101
+ .string()
6102
+ .nullish()
6103
+ .describe('The field must be less than the provided value.'),
6104
+ $lte: zod.coerce
6105
+ .string()
6106
+ .nullish()
6107
+ .describe('The field must be less than or equal to the provided value.'),
6108
+ $ne: zod.coerce
6109
+ .string()
6110
+ .nullish()
6111
+ .describe('The field must not be equal to the provided value.'),
6112
+ $nilike: zod.coerce
6113
+ .string()
6114
+ .nullish()
6115
+ .describe('The field must not match the provided value, ignoring case.'),
6116
+ $nin: zod
6117
+ .array(zod.coerce.string())
6118
+ .nullish()
6119
+ .describe('The field must not be in the provided list of values.'),
6120
+ $nlike: zod.coerce
6121
+ .string()
6122
+ .nullish()
6123
+ .describe('The field must not match the provided value.'),
6124
+ $or: zod
6125
+ .array(zod.any())
6126
+ .nullish()
6127
+ .describe('Provide a list of filters to be combined with a logical OR.'),
6128
+ })
6129
+ .describe('A filter for a string field.'))
6130
+ .optional()
6131
+ .describe('Optional advanced meter group by filters.\nYou can use this to filter for values of the meter groupBy fields.'),
5914
6132
  clientId: zod.coerce
5915
6133
  .string()
5916
6134
  .min(1)
@@ -5968,6 +6186,16 @@ export const listMeterSubjectsParams = zod.object({
5968
6186
  .max(listMeterSubjectsPathMeterIdOrSlugMax)
5969
6187
  .regex(listMeterSubjectsPathMeterIdOrSlugRegExp),
5970
6188
  });
6189
+ export const listMeterSubjectsQueryParams = zod.object({
6190
+ from: zod.coerce
6191
+ .date()
6192
+ .optional()
6193
+ .describe('Start date-time in RFC 3339 format.\n\nInclusive. Defaults to the beginning of time.\n\nFor example: ?from=2025-01-01T00%3A00%3A00.000Z'),
6194
+ to: zod.coerce
6195
+ .date()
6196
+ .optional()
6197
+ .describe('End date-time in RFC 3339 format.\n\nInclusive.\n\nFor example: ?to=2025-02-01T00%3A00%3A00.000Z'),
6198
+ });
5971
6199
  /**
5972
6200
  * List all notification channels.
5973
6201
  * @summary List notification channels
@@ -6007,6 +6235,7 @@ export const listNotificationChannelsQueryParams = zod.object({
6007
6235
  * Create a new notification channel.
6008
6236
  * @summary Create a notification channel
6009
6237
  */
6238
+ export const createNotificationChannelBodyNameMax = 256;
6010
6239
  export const createNotificationChannelBodyDisabledDefault = false;
6011
6240
  export const createNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
6012
6241
  export const createNotificationChannelBody = zod
@@ -6019,7 +6248,16 @@ export const createNotificationChannelBody = zod
6019
6248
  .boolean()
6020
6249
  .optional()
6021
6250
  .describe('Whether the channel is disabled or not.'),
6022
- name: zod.coerce.string().describe('User friendly name of the channel.'),
6251
+ metadata: zod
6252
+ .record(zod.string(), zod.coerce.string())
6253
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6254
+ .nullish()
6255
+ .describe('Additional metadata for the resource.'),
6256
+ name: zod.coerce
6257
+ .string()
6258
+ .min(1)
6259
+ .max(createNotificationChannelBodyNameMax)
6260
+ .describe('User friendly name of the channel.'),
6023
6261
  signingSecret: zod.coerce
6024
6262
  .string()
6025
6263
  .regex(createNotificationChannelBodySigningSecretRegExp)
@@ -6042,6 +6280,7 @@ export const updateNotificationChannelParams = zod.object({
6042
6280
  .string()
6043
6281
  .regex(updateNotificationChannelPathChannelIdRegExp),
6044
6282
  });
6283
+ export const updateNotificationChannelBodyNameMax = 256;
6045
6284
  export const updateNotificationChannelBodyDisabledDefault = false;
6046
6285
  export const updateNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
6047
6286
  export const updateNotificationChannelBody = zod
@@ -6054,7 +6293,16 @@ export const updateNotificationChannelBody = zod
6054
6293
  .boolean()
6055
6294
  .optional()
6056
6295
  .describe('Whether the channel is disabled or not.'),
6057
- name: zod.coerce.string().describe('User friendly name of the channel.'),
6296
+ metadata: zod
6297
+ .record(zod.string(), zod.coerce.string())
6298
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6299
+ .nullish()
6300
+ .describe('Additional metadata for the resource.'),
6301
+ name: zod.coerce
6302
+ .string()
6303
+ .min(1)
6304
+ .max(updateNotificationChannelBodyNameMax)
6305
+ .describe('User friendly name of the channel.'),
6058
6306
  signingSecret: zod.coerce
6059
6307
  .string()
6060
6308
  .regex(updateNotificationChannelBodySigningSecretRegExp)
@@ -6153,6 +6401,25 @@ export const listNotificationEventsQueryParams = zod.object({
6153
6401
  export const getNotificationEventParams = zod.object({
6154
6402
  eventId: zod.coerce.string(),
6155
6403
  });
6404
+ /**
6405
+ * @summary Re-send notification event
6406
+ */
6407
+ export const resendNotificationEventPathEventIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6408
+ export const resendNotificationEventParams = zod.object({
6409
+ eventId: zod.coerce.string().regex(resendNotificationEventPathEventIdRegExp),
6410
+ });
6411
+ export const resendNotificationEventBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6412
+ export const resendNotificationEventBody = zod
6413
+ .object({
6414
+ channels: zod
6415
+ .array(zod.coerce
6416
+ .string()
6417
+ .regex(resendNotificationEventBodyChannelsItemRegExp)
6418
+ .describe('ULID (Universally Unique Lexicographically Sortable Identifier).'))
6419
+ .optional()
6420
+ .describe('Notification channels to which the event should be re-sent.'),
6421
+ })
6422
+ .describe('A notification event that will be re-sent.');
6156
6423
  /**
6157
6424
  * List all notification rules.
6158
6425
  * @summary List notification rules
@@ -6207,17 +6474,21 @@ export const listNotificationRulesQueryParams = zod.object({
6207
6474
  * Create a new notification rule.
6208
6475
  * @summary Create a notification rule
6209
6476
  */
6477
+ export const createNotificationRuleBodyNameMax = 256;
6210
6478
  export const createNotificationRuleBodyDisabledDefault = false;
6211
6479
  export const createNotificationRuleBodyThresholdsMax = 10;
6212
6480
  export const createNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6213
6481
  export const createNotificationRuleBodyFeaturesItemMax = 64;
6214
6482
  export const createNotificationRuleBodyFeaturesItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6483
+ export const createNotificationRuleBodyNameMaxOne = 256;
6215
6484
  export const createNotificationRuleBodyDisabledDefaultOne = false;
6216
6485
  export const createNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6217
6486
  export const createNotificationRuleBodyFeaturesItemMaxOne = 64;
6218
6487
  export const createNotificationRuleBodyFeaturesItemRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6488
+ export const createNotificationRuleBodyNameMaxTwo = 256;
6219
6489
  export const createNotificationRuleBodyDisabledDefaultTwo = false;
6220
6490
  export const createNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6491
+ export const createNotificationRuleBodyNameMaxThree = 256;
6221
6492
  export const createNotificationRuleBodyDisabledDefaultThree = false;
6222
6493
  export const createNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6223
6494
  export const createNotificationRuleBody = zod
@@ -6245,8 +6516,15 @@ export const createNotificationRuleBody = zod
6245
6516
  .min(1)
6246
6517
  .optional()
6247
6518
  .describe('Optional field for defining the scope of notification by feature. It may contain features by id or key.'),
6519
+ metadata: zod
6520
+ .record(zod.string(), zod.coerce.string())
6521
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6522
+ .nullish()
6523
+ .describe('Additional metadata for the resource.'),
6248
6524
  name: zod.coerce
6249
6525
  .string()
6526
+ .min(1)
6527
+ .max(createNotificationRuleBodyNameMax)
6250
6528
  .describe('The user friendly name of the notification rule.'),
6251
6529
  thresholds: zod
6252
6530
  .array(zod
@@ -6293,8 +6571,15 @@ export const createNotificationRuleBody = zod
6293
6571
  .min(1)
6294
6572
  .optional()
6295
6573
  .describe('Optional field for defining the scope of notification by feature. It may contain features by id or key.'),
6574
+ metadata: zod
6575
+ .record(zod.string(), zod.coerce.string())
6576
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6577
+ .nullish()
6578
+ .describe('Additional metadata for the resource.'),
6296
6579
  name: zod.coerce
6297
6580
  .string()
6581
+ .min(1)
6582
+ .max(createNotificationRuleBodyNameMaxOne)
6298
6583
  .describe('The user friendly name of the notification rule.'),
6299
6584
  type: zod.enum(['entitlements.reset']),
6300
6585
  })
@@ -6312,8 +6597,15 @@ export const createNotificationRuleBody = zod
6312
6597
  .boolean()
6313
6598
  .optional()
6314
6599
  .describe('Whether the rule is disabled or not.'),
6600
+ metadata: zod
6601
+ .record(zod.string(), zod.coerce.string())
6602
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6603
+ .nullish()
6604
+ .describe('Additional metadata for the resource.'),
6315
6605
  name: zod.coerce
6316
6606
  .string()
6607
+ .min(1)
6608
+ .max(createNotificationRuleBodyNameMaxTwo)
6317
6609
  .describe('The user friendly name of the notification rule.'),
6318
6610
  type: zod.enum(['invoice.created']),
6319
6611
  })
@@ -6331,8 +6623,15 @@ export const createNotificationRuleBody = zod
6331
6623
  .boolean()
6332
6624
  .optional()
6333
6625
  .describe('Whether the rule is disabled or not.'),
6626
+ metadata: zod
6627
+ .record(zod.string(), zod.coerce.string())
6628
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6629
+ .nullish()
6630
+ .describe('Additional metadata for the resource.'),
6334
6631
  name: zod.coerce
6335
6632
  .string()
6633
+ .min(1)
6634
+ .max(createNotificationRuleBodyNameMaxThree)
6336
6635
  .describe('The user friendly name of the notification rule.'),
6337
6636
  type: zod.enum(['invoice.updated']),
6338
6637
  })
@@ -6347,17 +6646,21 @@ export const updateNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-
6347
6646
  export const updateNotificationRuleParams = zod.object({
6348
6647
  ruleId: zod.coerce.string().regex(updateNotificationRulePathRuleIdRegExp),
6349
6648
  });
6649
+ export const updateNotificationRuleBodyNameMax = 256;
6350
6650
  export const updateNotificationRuleBodyDisabledDefault = false;
6351
6651
  export const updateNotificationRuleBodyThresholdsMax = 10;
6352
6652
  export const updateNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6353
6653
  export const updateNotificationRuleBodyFeaturesItemMax = 64;
6354
6654
  export const updateNotificationRuleBodyFeaturesItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6655
+ export const updateNotificationRuleBodyNameMaxOne = 256;
6355
6656
  export const updateNotificationRuleBodyDisabledDefaultOne = false;
6356
6657
  export const updateNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6357
6658
  export const updateNotificationRuleBodyFeaturesItemMaxOne = 64;
6358
6659
  export const updateNotificationRuleBodyFeaturesItemRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6660
+ export const updateNotificationRuleBodyNameMaxTwo = 256;
6359
6661
  export const updateNotificationRuleBodyDisabledDefaultTwo = false;
6360
6662
  export const updateNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6663
+ export const updateNotificationRuleBodyNameMaxThree = 256;
6361
6664
  export const updateNotificationRuleBodyDisabledDefaultThree = false;
6362
6665
  export const updateNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6363
6666
  export const updateNotificationRuleBody = zod
@@ -6385,8 +6688,15 @@ export const updateNotificationRuleBody = zod
6385
6688
  .min(1)
6386
6689
  .optional()
6387
6690
  .describe('Optional field for defining the scope of notification by feature. It may contain features by id or key.'),
6691
+ metadata: zod
6692
+ .record(zod.string(), zod.coerce.string())
6693
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6694
+ .nullish()
6695
+ .describe('Additional metadata for the resource.'),
6388
6696
  name: zod.coerce
6389
6697
  .string()
6698
+ .min(1)
6699
+ .max(updateNotificationRuleBodyNameMax)
6390
6700
  .describe('The user friendly name of the notification rule.'),
6391
6701
  thresholds: zod
6392
6702
  .array(zod
@@ -6433,8 +6743,15 @@ export const updateNotificationRuleBody = zod
6433
6743
  .min(1)
6434
6744
  .optional()
6435
6745
  .describe('Optional field for defining the scope of notification by feature. It may contain features by id or key.'),
6746
+ metadata: zod
6747
+ .record(zod.string(), zod.coerce.string())
6748
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6749
+ .nullish()
6750
+ .describe('Additional metadata for the resource.'),
6436
6751
  name: zod.coerce
6437
6752
  .string()
6753
+ .min(1)
6754
+ .max(updateNotificationRuleBodyNameMaxOne)
6438
6755
  .describe('The user friendly name of the notification rule.'),
6439
6756
  type: zod.enum(['entitlements.reset']),
6440
6757
  })
@@ -6452,8 +6769,15 @@ export const updateNotificationRuleBody = zod
6452
6769
  .boolean()
6453
6770
  .optional()
6454
6771
  .describe('Whether the rule is disabled or not.'),
6772
+ metadata: zod
6773
+ .record(zod.string(), zod.coerce.string())
6774
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6775
+ .nullish()
6776
+ .describe('Additional metadata for the resource.'),
6455
6777
  name: zod.coerce
6456
6778
  .string()
6779
+ .min(1)
6780
+ .max(updateNotificationRuleBodyNameMaxTwo)
6457
6781
  .describe('The user friendly name of the notification rule.'),
6458
6782
  type: zod.enum(['invoice.created']),
6459
6783
  })
@@ -6471,8 +6795,15 @@ export const updateNotificationRuleBody = zod
6471
6795
  .boolean()
6472
6796
  .optional()
6473
6797
  .describe('Whether the rule is disabled or not.'),
6798
+ metadata: zod
6799
+ .record(zod.string(), zod.coerce.string())
6800
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
6801
+ .nullish()
6802
+ .describe('Additional metadata for the resource.'),
6474
6803
  name: zod.coerce
6475
6804
  .string()
6805
+ .min(1)
6806
+ .max(updateNotificationRuleBodyNameMaxThree)
6476
6807
  .describe('The user friendly name of the notification rule.'),
6477
6808
  type: zod.enum(['invoice.updated']),
6478
6809
  })
@@ -8276,7 +8607,10 @@ export const createStripeCheckoutSessionBody = zod
8276
8607
  usageAttribution: zod
8277
8608
  .object({
8278
8609
  subjectKeys: zod
8279
- .array(zod.coerce.string())
8610
+ .array(zod.coerce
8611
+ .string()
8612
+ .min(1)
8613
+ .describe('SubjectKey is a key that is used to identify a subject.'))
8280
8614
  .min(1)
8281
8615
  .max(createStripeCheckoutSessionBodyCustomerUsageAttributionSubjectKeysMax)
8282
8616
  .describe('The subjects that are attributed to the customer.'),