@openmeter/sdk 1.0.0-beta.223 → 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.
Files changed (101) hide show
  1. package/README.md +200 -0
  2. package/biome.json +67 -0
  3. package/dist/cjs/src/client/addons.d.cts +8 -8
  4. package/dist/cjs/src/client/addons.js.map +1 -1
  5. package/dist/cjs/src/client/apps.d.cts +10 -10
  6. package/dist/cjs/src/client/apps.js.map +1 -1
  7. package/dist/cjs/src/client/billing.d.cts +19 -19
  8. package/dist/cjs/src/client/billing.js.map +1 -1
  9. package/dist/cjs/src/client/common.d.cts +3 -3
  10. package/dist/cjs/src/client/common.js.map +1 -1
  11. package/dist/cjs/src/client/customers.d.cts +25 -24
  12. package/dist/cjs/src/client/customers.js.map +1 -1
  13. package/dist/cjs/src/client/debug.d.cts +2 -2
  14. package/dist/cjs/src/client/debug.js.map +1 -1
  15. package/dist/cjs/src/client/entitlements.d.cts +15 -13
  16. package/dist/cjs/src/client/entitlements.js.map +1 -1
  17. package/dist/cjs/src/client/events.d.cts +4 -4
  18. package/dist/cjs/src/client/events.js.map +1 -1
  19. package/dist/cjs/src/client/features.d.cts +12 -3
  20. package/dist/cjs/src/client/features.js.map +1 -1
  21. package/dist/cjs/src/client/index.cjs +1 -1
  22. package/dist/cjs/src/client/index.d.cts +2 -2
  23. package/dist/cjs/src/client/index.js.map +1 -1
  24. package/dist/cjs/src/client/info.d.cts +3 -3
  25. package/dist/cjs/src/client/info.js.map +1 -1
  26. package/dist/cjs/src/client/meters.d.cts +5 -5
  27. package/dist/cjs/src/client/meters.js.map +1 -1
  28. package/dist/cjs/src/client/notifications.d.cts +17 -11
  29. package/dist/cjs/src/client/notifications.js.map +1 -1
  30. package/dist/cjs/src/client/plans.d.cts +12 -12
  31. package/dist/cjs/src/client/plans.js.map +1 -1
  32. package/dist/cjs/src/client/portal.d.cts +4 -4
  33. package/dist/cjs/src/client/portal.js.map +1 -1
  34. package/dist/cjs/src/client/schemas.d.cts +1046 -139
  35. package/dist/cjs/src/client/subjects.d.cts +4 -4
  36. package/dist/cjs/src/client/subjects.js.map +1 -1
  37. package/dist/cjs/src/client/subscription-addons.d.cts +5 -5
  38. package/dist/cjs/src/client/subscription-addons.js.map +1 -1
  39. package/dist/cjs/src/client/subscriptions.d.cts +13 -8
  40. package/dist/cjs/src/client/subscriptions.js.map +1 -1
  41. package/dist/cjs/src/client/utils.cjs +1 -3
  42. package/dist/cjs/src/client/utils.d.cts +1 -1
  43. package/dist/cjs/src/client/utils.js.map +1 -1
  44. package/dist/cjs/src/portal/index.d.cts +1 -1
  45. package/dist/cjs/src/portal/index.js.map +1 -1
  46. package/dist/cjs/src/zod/index.cjs +1230 -634
  47. package/dist/cjs/src/zod/index.d.cts +1304 -615
  48. package/dist/cjs/src/zod/index.js.map +1 -1
  49. package/dist/cjs/tsconfig.7db92107.tsbuildinfo +1 -0
  50. package/dist/cjs/tsconfig.94dd8c51.tsbuildinfo +1 -0
  51. package/dist/src/client/addons.d.ts +8 -8
  52. package/dist/src/client/addons.js.map +1 -1
  53. package/dist/src/client/apps.d.ts +10 -10
  54. package/dist/src/client/apps.js.map +1 -1
  55. package/dist/src/client/billing.d.ts +19 -19
  56. package/dist/src/client/billing.js.map +1 -1
  57. package/dist/src/client/common.d.ts +3 -3
  58. package/dist/src/client/common.js.map +1 -1
  59. package/dist/src/client/customers.d.ts +25 -24
  60. package/dist/src/client/customers.js.map +1 -1
  61. package/dist/src/client/debug.d.ts +2 -2
  62. package/dist/src/client/debug.js.map +1 -1
  63. package/dist/src/client/entitlements.d.ts +15 -13
  64. package/dist/src/client/entitlements.js.map +1 -1
  65. package/dist/src/client/events.d.ts +4 -4
  66. package/dist/src/client/events.js.map +1 -1
  67. package/dist/src/client/features.d.ts +12 -3
  68. package/dist/src/client/features.js.map +1 -1
  69. package/dist/src/client/index.d.ts +2 -2
  70. package/dist/src/client/index.js +1 -1
  71. package/dist/src/client/index.js.map +1 -1
  72. package/dist/src/client/info.d.ts +3 -3
  73. package/dist/src/client/info.js.map +1 -1
  74. package/dist/src/client/meters.d.ts +5 -5
  75. package/dist/src/client/meters.js.map +1 -1
  76. package/dist/src/client/notifications.d.ts +17 -11
  77. package/dist/src/client/notifications.js.map +1 -1
  78. package/dist/src/client/plans.d.ts +12 -12
  79. package/dist/src/client/plans.js.map +1 -1
  80. package/dist/src/client/portal.d.ts +4 -4
  81. package/dist/src/client/portal.js.map +1 -1
  82. package/dist/src/client/schemas.d.ts +1046 -139
  83. package/dist/src/client/subjects.d.ts +4 -4
  84. package/dist/src/client/subjects.js.map +1 -1
  85. package/dist/src/client/subscription-addons.d.ts +5 -5
  86. package/dist/src/client/subscription-addons.js.map +1 -1
  87. package/dist/src/client/subscriptions.d.ts +13 -8
  88. package/dist/src/client/subscriptions.js.map +1 -1
  89. package/dist/src/client/utils.d.ts +1 -1
  90. package/dist/src/client/utils.js +1 -3
  91. package/dist/src/client/utils.js.map +1 -1
  92. package/dist/src/portal/index.d.ts +1 -1
  93. package/dist/src/portal/index.js.map +1 -1
  94. package/dist/src/zod/index.d.ts +1304 -615
  95. package/dist/src/zod/index.js +1147 -554
  96. package/dist/src/zod/index.js.map +1 -1
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/orval.config.ts +2 -6
  99. package/package.json +21 -35
  100. package/dist/cjs/tsconfig.07c9b9a6.tsbuildinfo +0 -1
  101. package/dist/cjs/tsconfig.5c5dbdc6.tsbuildinfo +0 -1
@@ -1,18 +1,23 @@
1
- /* eslint-disable no-useless-escape */
2
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3
- // @ts-nocheck
1
+ /**
2
+ * Generated by orval v7.13.0 🍺
3
+ * Do not edit manually.
4
+ * OpenMeter Cloud API
5
+ * OpenMeter is a cloud native usage metering service.
6
+ The OpenMeter API allows you to ingest events, query meter usage, and manage resources.
7
+ * OpenAPI spec version: 1.0.0
8
+ */
4
9
  import { z as zod } from 'zod';
5
10
  /**
6
11
  * List all add-ons.
7
12
  * @summary List add-ons
8
13
  */
9
14
  export const listAddonsQueryIncludeDeletedDefault = false;
10
- export const listAddonsQueryIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
15
+ export const listAddonsQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11
16
  export const listAddonsQueryKeyItemMax = 64;
12
- export const listAddonsQueryKeyItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
17
+ export const listAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
13
18
  export const listAddonsQueryCurrencyItemMin = 3;
14
19
  export const listAddonsQueryCurrencyItemMax = 3;
15
- export const listAddonsQueryCurrencyItemRegExp = new RegExp('^[A-Z]{3}$');
20
+ export const listAddonsQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
16
21
  export const listAddonsQueryPageDefault = 1;
17
22
  export const listAddonsQueryPageSizeDefault = 100;
18
23
  export const listAddonsQueryPageSizeMax = 1000;
@@ -80,57 +85,57 @@ export const listAddonsQueryParams = zod.object({
80
85
  export const createAddonBodyNameMax = 256;
81
86
  export const createAddonBodyDescriptionMax = 1024;
82
87
  export const createAddonBodyKeyMax = 64;
83
- export const createAddonBodyKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
88
+ export const createAddonBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
84
89
  export const createAddonBodyCurrencyMinOne = 3;
85
90
  export const createAddonBodyCurrencyMaxOne = 3;
86
- export const createAddonBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
91
+ export const createAddonBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
87
92
  export const createAddonBodyCurrencyDefault = 'USD';
88
93
  export const createAddonBodyRateCardsItemKeyMax = 64;
89
- export const createAddonBodyRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
94
+ export const createAddonBodyRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
90
95
  export const createAddonBodyRateCardsItemNameMax = 256;
91
96
  export const createAddonBodyRateCardsItemDescriptionMax = 1024;
92
97
  export const createAddonBodyRateCardsItemFeatureKeyMax = 64;
93
- export const createAddonBodyRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
98
+ export const createAddonBodyRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
94
99
  export const createAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
95
100
  export const createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
96
101
  export const createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
97
102
  export const createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
98
103
  export const createAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
99
- export const createAddonBodyRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
100
- export const createAddonBodyRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
104
+ export const createAddonBodyRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
105
+ export const createAddonBodyRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
101
106
  export const createAddonBodyRateCardsItemPricePaymentTermDefault = 'in_advance';
102
- export const createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
107
+ export const createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
103
108
  export const createAddonBodyRateCardsItemKeyMaxOne = 64;
104
- export const createAddonBodyRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
109
+ export const createAddonBodyRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
105
110
  export const createAddonBodyRateCardsItemNameMaxOne = 256;
106
111
  export const createAddonBodyRateCardsItemDescriptionMaxOne = 1024;
107
112
  export const createAddonBodyRateCardsItemFeatureKeyMaxOne = 64;
108
- export const createAddonBodyRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
113
+ export const createAddonBodyRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
109
114
  export const createAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
110
115
  export const createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
111
116
  export const createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
112
117
  export const createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
113
118
  export const createAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
114
- export const createAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
115
- export const createAddonBodyRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
119
+ export const createAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
120
+ export const createAddonBodyRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
116
121
  export const createAddonBodyRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
117
- export const createAddonBodyRateCardsItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
118
- export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
119
- export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
120
- export const createAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
121
- export const createAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
122
- export const createAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
123
- export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
124
- export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
125
- export const createAddonBodyRateCardsItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
122
+ export const createAddonBodyRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
123
+ export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
124
+ export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
125
+ export const createAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
126
+ export const createAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
127
+ export const createAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
128
+ export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
129
+ export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
130
+ export const createAddonBodyRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
126
131
  export const createAddonBodyRateCardsItemPriceMultiplierDefault = '1';
127
- export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
128
- export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
129
- export const createAddonBodyRateCardsItemPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
130
- export const createAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
131
- export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
132
- export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
133
- export const createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
132
+ export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
133
+ export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
134
+ export const createAddonBodyRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
135
+ export const createAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
136
+ export const createAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
137
+ export const createAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
138
+ export const createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
134
139
  export const createAddonBody = zod
135
140
  .object({
136
141
  currency: zod.coerce
@@ -148,7 +153,7 @@ export const createAddonBody = zod
148
153
  instanceType: zod
149
154
  .enum(['single', 'multiple'])
150
155
  .describe('The instanceType of the add-on.\nSingle instance add-ons can be added to subscription only once while add-ons with multiple type can be added more then once.')
151
- .describe('The instanceType of the add-ons. Can be \"single\" or \"multiple\".'),
156
+ .describe('The instanceType of the add-ons. Can be "single" or "multiple".'),
152
157
  key: zod.coerce
153
158
  .string()
154
159
  .min(1)
@@ -218,7 +223,7 @@ export const createAddonBody = zod
218
223
  .number()
219
224
  .min(createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin)
220
225
  .optional()
221
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
226
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
222
227
  issueAfterResetPriority: zod.coerce
223
228
  .number()
224
229
  .min(1)
@@ -390,7 +395,7 @@ export const createAddonBody = zod
390
395
  .number()
391
396
  .min(createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
392
397
  .optional()
393
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
398
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
394
399
  issueAfterResetPriority: zod.coerce
395
400
  .number()
396
401
  .min(1)
@@ -660,58 +665,58 @@ export const createAddonBody = zod
660
665
  * Update add-on by id.
661
666
  * @summary Update add-on
662
667
  */
663
- export const updateAddonPathAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
668
+ export const updateAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
664
669
  export const updateAddonParams = zod.object({
665
670
  addonId: zod.coerce.string().regex(updateAddonPathAddonIdRegExp),
666
671
  });
667
672
  export const updateAddonBodyNameMax = 256;
668
673
  export const updateAddonBodyDescriptionMax = 1024;
669
674
  export const updateAddonBodyRateCardsItemKeyMax = 64;
670
- export const updateAddonBodyRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
675
+ export const updateAddonBodyRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
671
676
  export const updateAddonBodyRateCardsItemNameMax = 256;
672
677
  export const updateAddonBodyRateCardsItemDescriptionMax = 1024;
673
678
  export const updateAddonBodyRateCardsItemFeatureKeyMax = 64;
674
- export const updateAddonBodyRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
679
+ export const updateAddonBodyRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
675
680
  export const updateAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
676
681
  export const updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
677
682
  export const updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
678
683
  export const updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
679
684
  export const updateAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
680
- export const updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
681
- export const updateAddonBodyRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
685
+ export const updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
686
+ export const updateAddonBodyRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
682
687
  export const updateAddonBodyRateCardsItemPricePaymentTermDefault = 'in_advance';
683
- export const updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
688
+ export const updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
684
689
  export const updateAddonBodyRateCardsItemKeyMaxOne = 64;
685
- export const updateAddonBodyRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
690
+ export const updateAddonBodyRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
686
691
  export const updateAddonBodyRateCardsItemNameMaxOne = 256;
687
692
  export const updateAddonBodyRateCardsItemDescriptionMaxOne = 1024;
688
693
  export const updateAddonBodyRateCardsItemFeatureKeyMaxOne = 64;
689
- export const updateAddonBodyRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
694
+ export const updateAddonBodyRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
690
695
  export const updateAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
691
696
  export const updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
692
697
  export const updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
693
698
  export const updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
694
699
  export const updateAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
695
- export const updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
696
- export const updateAddonBodyRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
700
+ export const updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
701
+ export const updateAddonBodyRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
697
702
  export const updateAddonBodyRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
698
- export const updateAddonBodyRateCardsItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
699
- export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
700
- export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
701
- export const updateAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
702
- export const updateAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
703
- export const updateAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
704
- export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
705
- export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
706
- export const updateAddonBodyRateCardsItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
703
+ export const updateAddonBodyRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
704
+ export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
705
+ export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
706
+ export const updateAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
707
+ export const updateAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
708
+ export const updateAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
709
+ export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
710
+ export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
711
+ export const updateAddonBodyRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
707
712
  export const updateAddonBodyRateCardsItemPriceMultiplierDefault = '1';
708
- export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
709
- export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
710
- export const updateAddonBodyRateCardsItemPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
711
- export const updateAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
712
- export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
713
- export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
714
- export const updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
713
+ export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
714
+ export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
715
+ export const updateAddonBodyRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
716
+ export const updateAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
717
+ export const updateAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
718
+ export const updateAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
719
+ export const updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
715
720
  export const updateAddonBody = zod
716
721
  .object({
717
722
  description: zod.coerce
@@ -722,7 +727,7 @@ export const updateAddonBody = zod
722
727
  instanceType: zod
723
728
  .enum(['single', 'multiple'])
724
729
  .describe('The instanceType of the add-on.\nSingle instance add-ons can be added to subscription only once while add-ons with multiple type can be added more then once.')
725
- .describe('The instanceType of the add-ons. Can be \"single\" or \"multiple\".'),
730
+ .describe('The instanceType of the add-ons. Can be "single" or "multiple".'),
726
731
  metadata: zod
727
732
  .record(zod.string(), zod.coerce.string())
728
733
  .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
@@ -786,7 +791,7 @@ export const updateAddonBody = zod
786
791
  .number()
787
792
  .min(updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin)
788
793
  .optional()
789
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
794
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
790
795
  issueAfterResetPriority: zod.coerce
791
796
  .number()
792
797
  .min(1)
@@ -958,7 +963,7 @@ export const updateAddonBody = zod
958
963
  .number()
959
964
  .min(updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
960
965
  .optional()
961
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
966
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
962
967
  issueAfterResetPriority: zod.coerce
963
968
  .number()
964
969
  .min(1)
@@ -1229,7 +1234,7 @@ export const updateAddonBody = zod
1229
1234
  * @summary Get add-on
1230
1235
  */
1231
1236
  export const getAddonPathAddonIdMax = 64;
1232
- export const getAddonPathAddonIdRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1237
+ export const getAddonPathAddonIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1233
1238
  export const getAddonParams = zod.object({
1234
1239
  addonId: zod.coerce
1235
1240
  .string()
@@ -1250,7 +1255,7 @@ export const getAddonQueryParams = zod.object({
1250
1255
  Once a add-on is deleted it cannot be undeleted.
1251
1256
  * @summary Delete add-on
1252
1257
  */
1253
- export const deleteAddonPathAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1258
+ export const deleteAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1254
1259
  export const deleteAddonParams = zod.object({
1255
1260
  addonId: zod.coerce.string().regex(deleteAddonPathAddonIdRegExp),
1256
1261
  });
@@ -1258,7 +1263,7 @@ export const deleteAddonParams = zod.object({
1258
1263
  * Archive a add-on version.
1259
1264
  * @summary Archive add-on version
1260
1265
  */
1261
- export const archiveAddonPathAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1266
+ export const archiveAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1262
1267
  export const archiveAddonParams = zod.object({
1263
1268
  addonId: zod.coerce.string().regex(archiveAddonPathAddonIdRegExp),
1264
1269
  });
@@ -1266,7 +1271,7 @@ export const archiveAddonParams = zod.object({
1266
1271
  * Publish a add-on version.
1267
1272
  * @summary Publish add-on
1268
1273
  */
1269
- export const publishAddonPathAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1274
+ export const publishAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1270
1275
  export const publishAddonParams = zod.object({
1271
1276
  addonId: zod.coerce.string().regex(publishAddonPathAddonIdRegExp),
1272
1277
  });
@@ -1293,15 +1298,15 @@ export const listAppsQueryParams = zod.object({
1293
1298
  /**
1294
1299
  * @summary Submit draft synchronization results
1295
1300
  */
1296
- export const appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1301
+ export const appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1297
1302
  export const appCustomInvoicingDraftSynchronizedParams = zod.object({
1298
1303
  invoiceId: zod.coerce
1299
1304
  .string()
1300
1305
  .regex(appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp),
1301
1306
  });
1302
1307
  export const appCustomInvoicingDraftSynchronizedBodyInvoicingInvoiceNumberMaxOne = 256;
1303
- export const appCustomInvoicingDraftSynchronizedBodyInvoicingLineExternalIdsItemLineIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1304
- export const appCustomInvoicingDraftSynchronizedBodyInvoicingLineDiscountExternalIdsItemLineDiscountIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1308
+ export const appCustomInvoicingDraftSynchronizedBodyInvoicingLineExternalIdsItemLineIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1309
+ export const appCustomInvoicingDraftSynchronizedBodyInvoicingLineDiscountExternalIdsItemLineDiscountIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1305
1310
  export const appCustomInvoicingDraftSynchronizedBody = zod
1306
1311
  .object({
1307
1312
  invoicing: zod
@@ -1354,7 +1359,7 @@ export const appCustomInvoicingDraftSynchronizedBody = zod
1354
1359
  /**
1355
1360
  * @summary Submit issuing synchronization results
1356
1361
  */
1357
- export const appCustomInvoicingIssuingSynchronizedPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1362
+ export const appCustomInvoicingIssuingSynchronizedPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1358
1363
  export const appCustomInvoicingIssuingSynchronizedParams = zod.object({
1359
1364
  invoiceId: zod.coerce
1360
1365
  .string()
@@ -1395,7 +1400,7 @@ export const appCustomInvoicingIssuingSynchronizedBody = zod
1395
1400
  /**
1396
1401
  * @summary Update payment status
1397
1402
  */
1398
- export const appCustomInvoicingUpdatePaymentStatusPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1403
+ export const appCustomInvoicingUpdatePaymentStatusPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1399
1404
  export const appCustomInvoicingUpdatePaymentStatusParams = zod.object({
1400
1405
  invoiceId: zod.coerce
1401
1406
  .string()
@@ -1420,7 +1425,7 @@ export const appCustomInvoicingUpdatePaymentStatusBody = zod
1420
1425
  * Get the app.
1421
1426
  * @summary Get app
1422
1427
  */
1423
- export const getAppPathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1428
+ export const getAppPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1424
1429
  export const getAppParams = zod.object({
1425
1430
  id: zod.coerce.string().regex(getAppPathIdRegExp),
1426
1431
  });
@@ -1428,7 +1433,7 @@ export const getAppParams = zod.object({
1428
1433
  * Update an app.
1429
1434
  * @summary Update app
1430
1435
  */
1431
- export const updateAppPathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1436
+ export const updateAppPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1432
1437
  export const updateAppParams = zod.object({
1433
1438
  id: zod.coerce.string().regex(updateAppPathIdRegExp),
1434
1439
  });
@@ -1516,7 +1521,7 @@ export const updateAppBody = zod
1516
1521
  * Uninstall an app.
1517
1522
  * @summary Uninstall app
1518
1523
  */
1519
- export const uninstallAppPathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1524
+ export const uninstallAppPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1520
1525
  export const uninstallAppParams = zod.object({
1521
1526
  id: zod.coerce.string().regex(uninstallAppPathIdRegExp),
1522
1527
  });
@@ -1525,7 +1530,7 @@ export const uninstallAppParams = zod.object({
1525
1530
  * @deprecated
1526
1531
  * @summary Update Stripe API key
1527
1532
  */
1528
- export const updateStripeAPIKeyPathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1533
+ export const updateStripeAPIKeyPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1529
1534
  export const updateStripeAPIKeyParams = zod.object({
1530
1535
  id: zod.coerce.string().regex(updateStripeAPIKeyPathIdRegExp),
1531
1536
  });
@@ -1538,7 +1543,7 @@ export const updateStripeAPIKeyBody = zod
1538
1543
  * Handle stripe webhooks for apps.
1539
1544
  * @summary Stripe webhook
1540
1545
  */
1541
- export const appStripeWebhookPathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1546
+ export const appStripeWebhookPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1542
1547
  export const appStripeWebhookParams = zod.object({
1543
1548
  id: zod.coerce.string().regex(appStripeWebhookPathIdRegExp),
1544
1549
  });
@@ -1565,9 +1570,9 @@ useful for getting the current effective billing workflow settings for all users
1565
1570
  if they have customer orverrides or not.
1566
1571
  * @summary List customer overrides
1567
1572
  */
1568
- export const listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1573
+ export const listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1569
1574
  export const listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault = true;
1570
- export const listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1575
+ export const listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1571
1576
  export const listBillingProfileCustomerOverridesQueryPageDefault = 1;
1572
1577
  export const listBillingProfileCustomerOverridesQueryPageSizeDefault = 100;
1573
1578
  export const listBillingProfileCustomerOverridesQueryPageSizeMax = 1000;
@@ -1643,13 +1648,13 @@ This can be used to test the effect of different billing profiles before making
1643
1648
  the default ones or have different workflow settings for example for enterprise customers.
1644
1649
  * @summary Create a new or update a customer override
1645
1650
  */
1646
- export const upsertBillingProfileCustomerOverridePathCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1651
+ export const upsertBillingProfileCustomerOverridePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1647
1652
  export const upsertBillingProfileCustomerOverrideParams = zod.object({
1648
1653
  customerId: zod.coerce
1649
1654
  .string()
1650
1655
  .regex(upsertBillingProfileCustomerOverridePathCustomerIdRegExp),
1651
1656
  });
1652
- export const upsertBillingProfileCustomerOverrideBodyBillingProfileIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1657
+ export const upsertBillingProfileCustomerOverrideBodyBillingProfileIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1653
1658
  export const upsertBillingProfileCustomerOverrideBody = zod
1654
1659
  .object({
1655
1660
  billingProfileId: zod.coerce
@@ -1668,7 +1673,7 @@ If the customer override is not found, the default billing profile's values are
1668
1673
  allows for getting a merged profile regardless of the customer override existence.
1669
1674
  * @summary Get a customer override
1670
1675
  */
1671
- export const getBillingProfileCustomerOverridePathCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1676
+ export const getBillingProfileCustomerOverridePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1672
1677
  export const getBillingProfileCustomerOverrideParams = zod.object({
1673
1678
  customerId: zod.coerce
1674
1679
  .string()
@@ -1688,7 +1693,7 @@ This will remove the customer override and the customer will be subject to the d
1688
1693
  billing profile's settings again.
1689
1694
  * @summary Delete a customer override
1690
1695
  */
1691
- export const deleteBillingProfileCustomerOverridePathCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1696
+ export const deleteBillingProfileCustomerOverridePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1692
1697
  export const deleteBillingProfileCustomerOverrideParams = zod.object({
1693
1698
  customerId: zod.coerce
1694
1699
  .string()
@@ -1705,7 +1710,7 @@ A new invoice will be created if:
1705
1710
  - the currency of the line item doesn't match the currency of any invoices in gathering state
1706
1711
  * @summary Create pending line items
1707
1712
  */
1708
- export const createPendingInvoiceLinePathCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1713
+ export const createPendingInvoiceLinePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1709
1714
  export const createPendingInvoiceLineParams = zod.object({
1710
1715
  customerId: zod.coerce
1711
1716
  .string()
@@ -1713,54 +1718,54 @@ export const createPendingInvoiceLineParams = zod.object({
1713
1718
  });
1714
1719
  export const createPendingInvoiceLineBodyCurrencyMinOne = 3;
1715
1720
  export const createPendingInvoiceLineBodyCurrencyMaxOne = 3;
1716
- export const createPendingInvoiceLineBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
1721
+ export const createPendingInvoiceLineBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
1717
1722
  export const createPendingInvoiceLineBodyLinesItemNameMax = 256;
1718
1723
  export const createPendingInvoiceLineBodyLinesItemDescriptionMax = 1024;
1719
- export const createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
1720
- export const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1724
+ export const createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
1725
+ export const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1721
1726
  export const createPendingInvoiceLineBodyLinesItemPricePaymentTermDefault = 'in_advance';
1722
- export const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1723
- export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1724
- export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1725
- export const createPendingInvoiceLineBodyLinesItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1726
- export const createPendingInvoiceLineBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1727
- export const createPendingInvoiceLineBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1728
- export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1729
- export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1730
- export const createPendingInvoiceLineBodyLinesItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1727
+ export const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
1728
+ export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1729
+ export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1730
+ export const createPendingInvoiceLineBodyLinesItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1731
+ export const createPendingInvoiceLineBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1732
+ export const createPendingInvoiceLineBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1733
+ export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
1734
+ export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
1735
+ export const createPendingInvoiceLineBodyLinesItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1731
1736
  export const createPendingInvoiceLineBodyLinesItemPriceMultiplierDefault = '1';
1732
- export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1733
- export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1734
- export const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1735
- export const createPendingInvoiceLineBodyLinesItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1736
- export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1737
- export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1737
+ export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
1738
+ export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
1739
+ export const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
1740
+ export const createPendingInvoiceLineBodyLinesItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1741
+ export const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
1742
+ export const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
1738
1743
  export const createPendingInvoiceLineBodyLinesItemFeatureKeyMax = 64;
1739
- export const createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
1744
+ export const createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
1740
1745
  export const createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyMax = 64;
1741
- export const createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
1742
- export const createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
1743
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1746
+ export const createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
1747
+ export const createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
1748
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1744
1749
  export const createPendingInvoiceLineBodyLinesItemRateCardPricePaymentTermDefault = 'in_advance';
1745
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1746
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1747
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1748
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1749
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1750
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1751
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1752
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1753
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1750
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
1751
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1752
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1753
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1754
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1755
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1756
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
1757
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
1758
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1754
1759
  export const createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierDefault = '1';
1755
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1756
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1757
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1758
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1759
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1760
- export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1761
- export const createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1762
- export const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
1763
- export const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
1760
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
1761
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
1762
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
1763
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1764
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
1765
+ export const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
1766
+ export const createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1767
+ export const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
1768
+ export const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1764
1769
  export const createPendingInvoiceLineBody = zod
1765
1770
  .object({
1766
1771
  currency: zod.coerce
@@ -2239,64 +2244,64 @@ This call will simulate an invoice for a customer based on the pending line item
2239
2244
  The call will return the total amount of the invoice and the line items that will be included in the invoice.
2240
2245
  * @summary Simulate an invoice for a customer
2241
2246
  */
2242
- export const simulateInvoicePathCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2247
+ export const simulateInvoicePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2243
2248
  export const simulateInvoiceParams = zod.object({
2244
2249
  customerId: zod.coerce.string().regex(simulateInvoicePathCustomerIdRegExp),
2245
2250
  });
2246
2251
  export const simulateInvoiceBodyNumberMaxOne = 256;
2247
2252
  export const simulateInvoiceBodyCurrencyMinOne = 3;
2248
2253
  export const simulateInvoiceBodyCurrencyMaxOne = 3;
2249
- export const simulateInvoiceBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
2254
+ export const simulateInvoiceBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
2250
2255
  export const simulateInvoiceBodyLinesItemNameMax = 256;
2251
2256
  export const simulateInvoiceBodyLinesItemDescriptionMax = 1024;
2252
- export const simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
2253
- export const simulateInvoiceBodyLinesItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2257
+ export const simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
2258
+ export const simulateInvoiceBodyLinesItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2254
2259
  export const simulateInvoiceBodyLinesItemPricePaymentTermDefault = 'in_advance';
2255
- export const simulateInvoiceBodyLinesItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2256
- export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2257
- export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2258
- export const simulateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2259
- export const simulateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2260
- export const simulateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2261
- export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2262
- export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2263
- export const simulateInvoiceBodyLinesItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2260
+ export const simulateInvoiceBodyLinesItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
2261
+ export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2262
+ export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2263
+ export const simulateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2264
+ export const simulateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2265
+ export const simulateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2266
+ export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
2267
+ export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
2268
+ export const simulateInvoiceBodyLinesItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2264
2269
  export const simulateInvoiceBodyLinesItemPriceMultiplierDefault = '1';
2265
- export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2266
- export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2267
- export const simulateInvoiceBodyLinesItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2268
- export const simulateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2269
- export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2270
- export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2270
+ export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
2271
+ export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
2272
+ export const simulateInvoiceBodyLinesItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
2273
+ export const simulateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2274
+ export const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
2275
+ export const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
2271
2276
  export const simulateInvoiceBodyLinesItemFeatureKeyMax = 64;
2272
- export const simulateInvoiceBodyLinesItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
2277
+ export const simulateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
2273
2278
  export const simulateInvoiceBodyLinesItemRateCardFeatureKeyMax = 64;
2274
- export const simulateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
2275
- export const simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
2276
- export const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2279
+ export const simulateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
2280
+ export const simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
2281
+ export const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2277
2282
  export const simulateInvoiceBodyLinesItemRateCardPricePaymentTermDefault = 'in_advance';
2278
- export const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2279
- export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2280
- export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2281
- export const simulateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2282
- export const simulateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2283
- export const simulateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2284
- export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2285
- export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2286
- export const simulateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2283
+ export const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
2284
+ export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2285
+ export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2286
+ export const simulateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2287
+ export const simulateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2288
+ export const simulateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2289
+ export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
2290
+ export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
2291
+ export const simulateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2287
2292
  export const simulateInvoiceBodyLinesItemRateCardPriceMultiplierDefault = '1';
2288
- export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2289
- export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2290
- export const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2291
- export const simulateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2292
- export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2293
- export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2294
- export const simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2295
- export const simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2296
- export const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2297
- export const simulateInvoiceBodyLinesItemQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2298
- export const simulateInvoiceBodyLinesItemPreLinePeriodQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2299
- export const simulateInvoiceBodyLinesItemIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2293
+ export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
2294
+ export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
2295
+ export const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
2296
+ export const simulateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2297
+ export const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
2298
+ export const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
2299
+ export const simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2300
+ export const simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2301
+ export const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2302
+ export const simulateInvoiceBodyLinesItemQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2303
+ export const simulateInvoiceBodyLinesItemPreLinePeriodQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2304
+ export const simulateInvoiceBodyLinesItemIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2300
2305
  export const simulateInvoiceBody = zod
2301
2306
  .object({
2302
2307
  currency: zod.coerce
@@ -2798,7 +2803,7 @@ in the response. For example by adding the expand=lines option the invoice lines
2798
2803
  Gathering invoices will always show the current usage calculated on the fly.
2799
2804
  * @summary List invoices
2800
2805
  */
2801
- export const listInvoicesQueryCustomersItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2806
+ export const listInvoicesQueryCustomersItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2802
2807
  export const listInvoicesQueryPageDefault = 1;
2803
2808
  export const listInvoicesQueryPageSizeDefault = 100;
2804
2809
  export const listInvoicesQueryPageSizeMax = 1000;
@@ -2900,8 +2905,8 @@ New pending line items will be created for the period between now() and the next
2900
2905
  The call can return multiple invoices if the pending line items are in different currencies.
2901
2906
  * @summary Invoice a customer based on the pending line items
2902
2907
  */
2903
- export const invoicePendingLinesActionBodyFiltersLineIdsItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2904
- export const invoicePendingLinesActionBodyCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2908
+ export const invoicePendingLinesActionBodyFiltersLineIdsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2909
+ export const invoicePendingLinesActionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2905
2910
  export const invoicePendingLinesActionBody = zod
2906
2911
  .object({
2907
2912
  asOf: zod.coerce
@@ -2937,11 +2942,11 @@ export const invoicePendingLinesActionBody = zod
2937
2942
  Gathering invoices will always show the current usage calculated on the fly.
2938
2943
  * @summary Get an invoice
2939
2944
  */
2940
- export const getInvoicePathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2945
+ export const getInvoicePathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2941
2946
  export const getInvoiceParams = zod.object({
2942
2947
  invoiceId: zod.coerce.string().regex(getInvoicePathInvoiceIdRegExp),
2943
2948
  });
2944
- export const getInvoiceQueryExpandDefault = ['lines'];
2949
+ export const getInvoiceQueryExpandDefault = () => ['lines'];
2945
2950
  export const getInvoiceQueryIncludeDeletedLinesDefault = false;
2946
2951
  export const getInvoiceQueryParams = zod.object({
2947
2952
  expand: zod
@@ -2959,7 +2964,7 @@ Only invoices that are in the draft (or earlier) status can be deleted.
2959
2964
  Invoices that are post finalization can only be voided.
2960
2965
  * @summary Delete an invoice
2961
2966
  */
2962
- export const deleteInvoicePathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2967
+ export const deleteInvoicePathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2963
2968
  export const deleteInvoiceParams = zod.object({
2964
2969
  invoiceId: zod.coerce.string().regex(deleteInvoicePathInvoiceIdRegExp),
2965
2970
  });
@@ -2969,7 +2974,7 @@ export const deleteInvoiceParams = zod.object({
2969
2974
  Only invoices in draft or earlier status can be updated.
2970
2975
  * @summary Update an invoice
2971
2976
  */
2972
- export const updateInvoicePathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
2977
+ export const updateInvoicePathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
2973
2978
  export const updateInvoiceParams = zod.object({
2974
2979
  invoiceId: zod.coerce.string().regex(updateInvoicePathInvoiceIdRegExp),
2975
2980
  });
@@ -2978,66 +2983,66 @@ export const updateInvoiceBodySupplierKeyMax = 256;
2978
2983
  export const updateInvoiceBodySupplierTaxIdCodeMaxOne = 32;
2979
2984
  export const updateInvoiceBodySupplierAddressesItemCountryMinOne = 2;
2980
2985
  export const updateInvoiceBodySupplierAddressesItemCountryMaxOne = 2;
2981
- export const updateInvoiceBodySupplierAddressesItemCountryRegExpOne = new RegExp('^[A-Z]{2}$');
2986
+ export const updateInvoiceBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
2982
2987
  export const updateInvoiceBodySupplierAddressesMax = 1;
2983
2988
  export const updateInvoiceBodyCustomerKeyMax = 256;
2984
2989
  export const updateInvoiceBodyCustomerTaxIdCodeMaxOne = 32;
2985
2990
  export const updateInvoiceBodyCustomerAddressesItemCountryMinOne = 2;
2986
2991
  export const updateInvoiceBodyCustomerAddressesItemCountryMaxOne = 2;
2987
- export const updateInvoiceBodyCustomerAddressesItemCountryRegExpOne = new RegExp('^[A-Z]{2}$');
2992
+ export const updateInvoiceBodyCustomerAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
2988
2993
  export const updateInvoiceBodyCustomerAddressesMax = 1;
2989
2994
  export const updateInvoiceBodyLinesItemNameMax = 256;
2990
2995
  export const updateInvoiceBodyLinesItemDescriptionMax = 1024;
2991
- export const updateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
2992
- export const updateInvoiceBodyLinesItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2996
+ export const updateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
2997
+ export const updateInvoiceBodyLinesItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
2993
2998
  export const updateInvoiceBodyLinesItemPricePaymentTermDefault = 'in_advance';
2994
- export const updateInvoiceBodyLinesItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2995
- export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2996
- export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2997
- export const updateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2998
- export const updateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2999
- export const updateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3000
- export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3001
- export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3002
- export const updateInvoiceBodyLinesItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
2999
+ export const updateInvoiceBodyLinesItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
3000
+ export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3001
+ export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3002
+ export const updateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3003
+ export const updateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3004
+ export const updateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3005
+ export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
3006
+ export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
3007
+ export const updateInvoiceBodyLinesItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3003
3008
  export const updateInvoiceBodyLinesItemPriceMultiplierDefault = '1';
3004
- export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3005
- export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3006
- export const updateInvoiceBodyLinesItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3007
- export const updateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3008
- export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3009
- export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3009
+ export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
3010
+ export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
3011
+ export const updateInvoiceBodyLinesItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
3012
+ export const updateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3013
+ export const updateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
3014
+ export const updateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
3010
3015
  export const updateInvoiceBodyLinesItemFeatureKeyMax = 64;
3011
- export const updateInvoiceBodyLinesItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
3016
+ export const updateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
3012
3017
  export const updateInvoiceBodyLinesItemRateCardFeatureKeyMax = 64;
3013
- export const updateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
3014
- export const updateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
3015
- export const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3018
+ export const updateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
3019
+ export const updateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
3020
+ export const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3016
3021
  export const updateInvoiceBodyLinesItemRateCardPricePaymentTermDefault = 'in_advance';
3017
- export const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3018
- export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3019
- export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3020
- export const updateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3021
- export const updateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3022
- export const updateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3023
- export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3024
- export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3025
- export const updateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3022
+ export const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
3023
+ export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3024
+ export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3025
+ export const updateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3026
+ export const updateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3027
+ export const updateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3028
+ export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
3029
+ export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
3030
+ export const updateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3026
3031
  export const updateInvoiceBodyLinesItemRateCardPriceMultiplierDefault = '1';
3027
- export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3028
- export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3029
- export const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3030
- export const updateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3031
- export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3032
- export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3033
- export const updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3034
- export const updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
3035
- export const updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3036
- export const updateInvoiceBodyLinesItemIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3032
+ export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
3033
+ export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
3034
+ export const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
3035
+ export const updateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3036
+ export const updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
3037
+ export const updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
3038
+ export const updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3039
+ export const updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
3040
+ export const updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3041
+ export const updateInvoiceBodyLinesItemIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3037
3042
  export const updateInvoiceBodyWorkflowWorkflowInvoicingAutoAdvanceDefault = true;
3038
3043
  export const updateInvoiceBodyWorkflowWorkflowInvoicingDraftPeriodDefault = 'P0D';
3039
3044
  export const updateInvoiceBodyWorkflowWorkflowInvoicingDueAfterDefault = 'P30D';
3040
- export const updateInvoiceBodyWorkflowWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
3045
+ export const updateInvoiceBodyWorkflowWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
3041
3046
  export const updateInvoiceBodyWorkflowWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
3042
3047
  export const updateInvoiceBody = zod
3043
3048
  .object({
@@ -3721,7 +3726,7 @@ The call doesn't "approve the invoice", it only advances the invoice to the next
3721
3726
  The action can be called when the invoice's statusDetails' actions field contain the "advance" action.
3722
3727
  * @summary Advance the invoice's state to the next status
3723
3728
  */
3724
- export const advanceInvoiceActionPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3729
+ export const advanceInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3725
3730
  export const advanceInvoiceActionParams = zod.object({
3726
3731
  invoiceId: zod.coerce.string().regex(advanceInvoiceActionPathInvoiceIdRegExp),
3727
3732
  });
@@ -3735,7 +3740,7 @@ This call is valid in two invoice statuses:
3735
3740
  - `manual_approval_needed`: the invoice will be sent to the customer, the invoice state becomes issued
3736
3741
  * @summary Send the invoice to the customer
3737
3742
  */
3738
- export const approveInvoiceActionPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3743
+ export const approveInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3739
3744
  export const approveInvoiceActionParams = zod.object({
3740
3745
  invoiceId: zod.coerce.string().regex(approveInvoiceActionPathInvoiceIdRegExp),
3741
3746
  });
@@ -3745,7 +3750,7 @@ export const approveInvoiceActionParams = zod.object({
3745
3750
  The action can be called when the invoice's statusDetails' actions field contain the "retry" action.
3746
3751
  * @summary Retry advancing the invoice after a failed attempt.
3747
3752
  */
3748
- export const retryInvoiceActionPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3753
+ export const retryInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3749
3754
  export const retryInvoiceActionParams = zod.object({
3750
3755
  invoiceId: zod.coerce.string().regex(retryInvoiceActionPathInvoiceIdRegExp),
3751
3756
  });
@@ -3758,7 +3763,7 @@ This call is only valid in `draft.waiting_for_collection` status, where the coll
3758
3763
  can be skipped using this action.
3759
3764
  * @summary Snapshot quantities for usage based line items
3760
3765
  */
3761
- export const snapshotQuantitiesInvoiceActionPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3766
+ export const snapshotQuantitiesInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3762
3767
  export const snapshotQuantitiesInvoiceActionParams = zod.object({
3763
3768
  invoiceId: zod.coerce
3764
3769
  .string()
@@ -3770,7 +3775,7 @@ export const snapshotQuantitiesInvoiceActionParams = zod.object({
3770
3775
  Note: charges might apply, depending on the tax provider.
3771
3776
  * @summary Recalculate an invoice's tax amounts
3772
3777
  */
3773
- export const recalculateInvoiceTaxActionPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3778
+ export const recalculateInvoiceTaxActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3774
3779
  export const recalculateInvoiceTaxActionParams = zod.object({
3775
3780
  invoiceId: zod.coerce
3776
3781
  .string()
@@ -3784,11 +3789,11 @@ Only invoices that have been alread issued can be voided.
3784
3789
  Voiding an invoice will mark it as voided, the user can specify how to handle the voided line items.
3785
3790
  * @summary Void an invoice
3786
3791
  */
3787
- export const voidInvoiceActionPathInvoiceIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3792
+ export const voidInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3788
3793
  export const voidInvoiceActionParams = zod.object({
3789
3794
  invoiceId: zod.coerce.string().regex(voidInvoiceActionPathInvoiceIdRegExp),
3790
3795
  });
3791
- export const voidInvoiceActionBodyOverridesItemLineIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3796
+ export const voidInvoiceActionBodyOverridesItemLineIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3792
3797
  export const voidInvoiceActionBody = zod
3793
3798
  .object({
3794
3799
  action: zod
@@ -3910,8 +3915,9 @@ export const createBillingProfileBodySupplierKeyMax = 256;
3910
3915
  export const createBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
3911
3916
  export const createBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
3912
3917
  export const createBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
3913
- export const createBillingProfileBodySupplierAddressesItemCountryRegExpOne = new RegExp('^[A-Z]{2}$');
3918
+ export const createBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
3914
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)?)?$/;
3915
3921
  export const createBillingProfileBodyWorkflowCollectionAlignmentDefault = {
3916
3922
  type: 'subscription',
3917
3923
  };
@@ -3920,13 +3926,13 @@ export const createBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = true;
3920
3926
  export const createBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = 'P0D';
3921
3927
  export const createBillingProfileBodyWorkflowInvoicingDueAfterDefault = 'P30D';
3922
3928
  export const createBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = false;
3923
- export const createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
3929
+ export const createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
3924
3930
  export const createBillingProfileBodyWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
3925
3931
  export const createBillingProfileBodyWorkflowTaxEnabledDefault = true;
3926
3932
  export const createBillingProfileBodyWorkflowTaxEnforcedDefault = false;
3927
- export const createBillingProfileBodyAppsTaxRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3928
- export const createBillingProfileBodyAppsInvoicingRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3929
- export const createBillingProfileBodyAppsPaymentRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
3933
+ export const createBillingProfileBodyAppsTaxRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3934
+ export const createBillingProfileBodyAppsInvoicingRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3935
+ export const createBillingProfileBodyAppsPaymentRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3930
3936
  export const createBillingProfileBody = zod
3931
3937
  .object({
3932
3938
  apps: zod
@@ -4036,12 +4042,37 @@ export const createBillingProfileBody = zod
4036
4042
  collection: zod
4037
4043
  .object({
4038
4044
  alignment: zod
4039
- .object({
4040
- type: zod
4041
- .enum(['subscription'])
4042
- .describe('The type of alignment.'),
4043
- })
4044
- .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
+ ])
4045
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).')
4046
4077
  .default(createBillingProfileBodyWorkflowCollectionAlignmentDefault)
4047
4078
  .describe('The alignment for collecting the pending line items into an invoice.'),
@@ -4144,7 +4175,7 @@ Only such billing profiles can be deleted that are:
4144
4175
  - only have finalized invoices
4145
4176
  * @summary Delete a billing profile
4146
4177
  */
4147
- export const deleteBillingProfilePathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4178
+ export const deleteBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4148
4179
  export const deleteBillingProfileParams = zod.object({
4149
4180
  id: zod.coerce.string().regex(deleteBillingProfilePathIdRegExp),
4150
4181
  });
@@ -4156,7 +4187,7 @@ in the response. For example by adding the expand=apps option the apps used by t
4156
4187
  will be included in the response.
4157
4188
  * @summary Get a billing profile
4158
4189
  */
4159
- export const getBillingProfilePathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4190
+ export const getBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4160
4191
  export const getBillingProfileParams = zod.object({
4161
4192
  id: zod.coerce.string().regex(getBillingProfilePathIdRegExp),
4162
4193
  });
@@ -4174,7 +4205,7 @@ The apps field cannot be updated directly, if an app change is desired a new
4174
4205
  profile should be created.
4175
4206
  * @summary Update a billing profile
4176
4207
  */
4177
- export const updateBillingProfilePathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4208
+ export const updateBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4178
4209
  export const updateBillingProfileParams = zod.object({
4179
4210
  id: zod.coerce.string().regex(updateBillingProfilePathIdRegExp),
4180
4211
  });
@@ -4184,8 +4215,9 @@ export const updateBillingProfileBodySupplierKeyMax = 256;
4184
4215
  export const updateBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
4185
4216
  export const updateBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
4186
4217
  export const updateBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
4187
- export const updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = new RegExp('^[A-Z]{2}$');
4218
+ export const updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
4188
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)?)?$/;
4189
4221
  export const updateBillingProfileBodyWorkflowCollectionAlignmentDefault = {
4190
4222
  type: 'subscription',
4191
4223
  };
@@ -4194,7 +4226,7 @@ export const updateBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = true;
4194
4226
  export const updateBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = 'P0D';
4195
4227
  export const updateBillingProfileBodyWorkflowInvoicingDueAfterDefault = 'P30D';
4196
4228
  export const updateBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = false;
4197
- export const updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
4229
+ export const updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
4198
4230
  export const updateBillingProfileBodyWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
4199
4231
  export const updateBillingProfileBodyWorkflowTaxEnabledDefault = true;
4200
4232
  export const updateBillingProfileBodyWorkflowTaxEnforcedDefault = false;
@@ -4290,12 +4322,37 @@ export const updateBillingProfileBody = zod
4290
4322
  collection: zod
4291
4323
  .object({
4292
4324
  alignment: zod
4293
- .object({
4294
- type: zod
4295
- .enum(['subscription'])
4296
- .describe('The type of alignment.'),
4297
- })
4298
- .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
+ ])
4299
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).')
4300
4357
  .default(updateBillingProfileBodyWorkflowCollectionAlignmentDefault)
4301
4358
  .describe('The alignment for collecting the pending line items into an invoice.'),
@@ -4399,10 +4456,10 @@ export const createCustomerBodyKeyMax = 256;
4399
4456
  export const createCustomerBodyUsageAttributionSubjectKeysMax = 1;
4400
4457
  export const createCustomerBodyCurrencyMinOne = 3;
4401
4458
  export const createCustomerBodyCurrencyMaxOne = 3;
4402
- export const createCustomerBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
4459
+ export const createCustomerBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
4403
4460
  export const createCustomerBodyBillingAddressCountryMinOne = 2;
4404
4461
  export const createCustomerBodyBillingAddressCountryMaxOne = 2;
4405
- export const createCustomerBodyBillingAddressCountryRegExpOne = new RegExp('^[A-Z]{2}$');
4462
+ export const createCustomerBodyBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
4406
4463
  export const createCustomerBody = zod
4407
4464
  .object({
4408
4465
  billingAddress: zod
@@ -4467,7 +4524,10 @@ export const createCustomerBody = zod
4467
4524
  usageAttribution: zod
4468
4525
  .object({
4469
4526
  subjectKeys: zod
4470
- .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.'))
4471
4531
  .min(1)
4472
4532
  .max(createCustomerBodyUsageAttributionSubjectKeysMax)
4473
4533
  .describe('The subjects that are attributed to the customer.'),
@@ -4536,6 +4596,8 @@ export const listCustomersQueryParams = zod.object({
4536
4596
  * Get a customer by ID or key.
4537
4597
  * @summary Get customer
4538
4598
  */
4599
+ export const getCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4600
+ export const getCustomerPathCustomerIdOrKeyMaxTwo = 256;
4539
4601
  export const getCustomerParams = zod.object({
4540
4602
  customerIdOrKey: zod.union([
4541
4603
  zod.coerce
@@ -4561,6 +4623,8 @@ export const getCustomerQueryParams = zod.object({
4561
4623
  * Update a customer by ID.
4562
4624
  * @summary Update customer
4563
4625
  */
4626
+ export const updateCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4627
+ export const updateCustomerPathCustomerIdOrKeyMaxTwo = 256;
4564
4628
  export const updateCustomerParams = zod.object({
4565
4629
  customerIdOrKey: zod.union([
4566
4630
  zod.coerce
@@ -4580,10 +4644,10 @@ export const updateCustomerBodyKeyMax = 256;
4580
4644
  export const updateCustomerBodyUsageAttributionSubjectKeysMax = 1;
4581
4645
  export const updateCustomerBodyCurrencyMinOne = 3;
4582
4646
  export const updateCustomerBodyCurrencyMaxOne = 3;
4583
- export const updateCustomerBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
4647
+ export const updateCustomerBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
4584
4648
  export const updateCustomerBodyBillingAddressCountryMinOne = 2;
4585
4649
  export const updateCustomerBodyBillingAddressCountryMaxOne = 2;
4586
- export const updateCustomerBodyBillingAddressCountryRegExpOne = new RegExp('^[A-Z]{2}$');
4650
+ export const updateCustomerBodyBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
4587
4651
  export const updateCustomerBody = zod
4588
4652
  .object({
4589
4653
  billingAddress: zod
@@ -4648,7 +4712,10 @@ export const updateCustomerBody = zod
4648
4712
  usageAttribution: zod
4649
4713
  .object({
4650
4714
  subjectKeys: zod
4651
- .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.'))
4652
4719
  .min(1)
4653
4720
  .max(updateCustomerBodyUsageAttributionSubjectKeysMax)
4654
4721
  .describe('The subjects that are attributed to the customer.'),
@@ -4661,6 +4728,8 @@ export const updateCustomerBody = zod
4661
4728
  * Delete a customer by ID.
4662
4729
  * @summary Delete customer
4663
4730
  */
4731
+ export const deleteCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4732
+ export const deleteCustomerPathCustomerIdOrKeyMaxTwo = 256;
4664
4733
  export const deleteCustomerParams = zod.object({
4665
4734
  customerIdOrKey: zod.union([
4666
4735
  zod.coerce
@@ -4678,6 +4747,8 @@ export const deleteCustomerParams = zod.object({
4678
4747
  * Get the overall access of a customer.
4679
4748
  * @summary Get customer access
4680
4749
  */
4750
+ export const getCustomerAccessPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4751
+ export const getCustomerAccessPathCustomerIdOrKeyMaxTwo = 256;
4681
4752
  export const getCustomerAccessParams = zod.object({
4682
4753
  customerIdOrKey: zod.union([
4683
4754
  zod.coerce
@@ -4695,6 +4766,8 @@ export const getCustomerAccessParams = zod.object({
4695
4766
  * List customers app data.
4696
4767
  * @summary List customer app data
4697
4768
  */
4769
+ export const listCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4770
+ export const listCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
4698
4771
  export const listCustomerAppDataParams = zod.object({
4699
4772
  customerIdOrKey: zod.union([
4700
4773
  zod.coerce
@@ -4732,6 +4805,8 @@ export const listCustomerAppDataQueryParams = zod.object({
4732
4805
  * Upsert customer app data.
4733
4806
  * @summary Upsert customer app data
4734
4807
  */
4808
+ export const upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4809
+ export const upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
4735
4810
  export const upsertCustomerAppDataParams = zod.object({
4736
4811
  customerIdOrKey: zod.union([
4737
4812
  zod.coerce
@@ -4745,19 +4820,19 @@ export const upsertCustomerAppDataParams = zod.object({
4745
4820
  .describe('ExternalKey is a looser version of key.'),
4746
4821
  ]),
4747
4822
  });
4748
- export const upsertCustomerAppDataBodyIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4749
- export const upsertCustomerAppDataBodyAppIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4823
+ export const upsertCustomerAppDataBodyIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4824
+ export const upsertCustomerAppDataBodyAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4750
4825
  export const upsertCustomerAppDataBodyAppNameMax = 256;
4751
4826
  export const upsertCustomerAppDataBodyAppDescriptionMax = 1024;
4752
4827
  export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMax = 64;
4753
- export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
4754
- export const upsertCustomerAppDataBodyIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4755
- export const upsertCustomerAppDataBodyAppIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4828
+ export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
4829
+ export const upsertCustomerAppDataBodyIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4830
+ export const upsertCustomerAppDataBodyAppIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4756
4831
  export const upsertCustomerAppDataBodyAppNameMaxOne = 256;
4757
4832
  export const upsertCustomerAppDataBodyAppDescriptionMaxOne = 1024;
4758
4833
  export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMaxOne = 64;
4759
- export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
4760
- export const upsertCustomerAppDataBodyIdRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4834
+ export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
4835
+ export const upsertCustomerAppDataBodyIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4761
4836
  export const upsertCustomerAppDataBodyItem = zod
4762
4837
  .union([
4763
4838
  zod
@@ -4995,7 +5070,9 @@ export const upsertCustomerAppDataBody = zod.array(upsertCustomerAppDataBodyItem
4995
5070
  * Delete customer app data.
4996
5071
  * @summary Delete customer app data
4997
5072
  */
4998
- export const deleteCustomerAppDataPathAppIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5073
+ export const deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5074
+ export const deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
5075
+ export const deleteCustomerAppDataPathAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4999
5076
  export const deleteCustomerAppDataParams = zod.object({
5000
5077
  appId: zod.coerce.string().regex(deleteCustomerAppDataPathAppIdRegExp),
5001
5078
  customerIdOrKey: zod.union([
@@ -5014,8 +5091,10 @@ export const deleteCustomerAppDataParams = zod.object({
5014
5091
  * 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.
5015
5092
  * @summary Get customer entitlement value
5016
5093
  */
5094
+ export const getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5095
+ export const getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo = 256;
5017
5096
  export const getCustomerEntitlementValuePathFeatureKeyMax = 64;
5018
- export const getCustomerEntitlementValuePathFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5097
+ export const getCustomerEntitlementValuePathFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5019
5098
  export const getCustomerEntitlementValueParams = zod.object({
5020
5099
  customerIdOrKey: zod.union([
5021
5100
  zod.coerce
@@ -5042,6 +5121,8 @@ export const getCustomerEntitlementValueQueryParams = zod.object({
5042
5121
  Only returns data if the customer billing profile is linked to a stripe app.
5043
5122
  * @summary Get customer stripe app data
5044
5123
  */
5124
+ export const getCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5125
+ export const getCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = 256;
5045
5126
  export const getCustomerStripeAppDataParams = zod.object({
5046
5127
  customerIdOrKey: zod.union([
5047
5128
  zod.coerce
@@ -5060,6 +5141,8 @@ export const getCustomerStripeAppDataParams = zod.object({
5060
5141
  Only updates data if the customer billing profile is linked to a stripe app.
5061
5142
  * @summary Upsert customer stripe app data
5062
5143
  */
5144
+ export const upsertCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5145
+ export const upsertCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = 256;
5063
5146
  export const upsertCustomerStripeAppDataParams = zod.object({
5064
5147
  customerIdOrKey: zod.union([
5065
5148
  zod.coerce
@@ -5090,6 +5173,8 @@ Useful to redirect the customer to the Stripe customer portal to manage their pa
5090
5173
  change their billing address and access their invoice history.
5091
5174
  * @summary Create Stripe customer portal session
5092
5175
  */
5176
+ export const createCustomerStripePortalSessionPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5177
+ export const createCustomerStripePortalSessionPathCustomerIdOrKeyMaxTwo = 256;
5093
5178
  export const createCustomerStripePortalSessionParams = zod.object({
5094
5179
  customerIdOrKey: zod.union([
5095
5180
  zod.coerce
@@ -5123,6 +5208,8 @@ export const createCustomerStripePortalSessionBody = zod
5123
5208
  * Lists all subscriptions for a customer.
5124
5209
  * @summary List customer subscriptions
5125
5210
  */
5211
+ export const listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5212
+ export const listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo = 256;
5126
5213
  export const listCustomerSubscriptionsParams = zod.object({
5127
5214
  customerIdOrKey: zod.union([
5128
5215
  zod.coerce
@@ -5140,6 +5227,11 @@ export const listCustomerSubscriptionsQueryPageDefault = 1;
5140
5227
  export const listCustomerSubscriptionsQueryPageSizeDefault = 100;
5141
5228
  export const listCustomerSubscriptionsQueryPageSizeMax = 1000;
5142
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.'),
5143
5235
  page: zod.coerce
5144
5236
  .number()
5145
5237
  .min(1)
@@ -5151,6 +5243,11 @@ export const listCustomerSubscriptionsQueryParams = zod.object({
5151
5243
  .max(listCustomerSubscriptionsQueryPageSizeMax)
5152
5244
  .default(listCustomerSubscriptionsQueryPageSizeDefault)
5153
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(),
5154
5251
  });
5155
5252
  /**
5156
5253
  * List all entitlements for all the subjects and features. This endpoint is intended for administrative purposes only.
@@ -5217,7 +5314,7 @@ export const listEntitlementsQueryParams = zod.object({
5217
5314
  * Get entitlement by id.
5218
5315
  * @summary Get entitlement by id
5219
5316
  */
5220
- export const getEntitlementByIdPathEntitlementIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5317
+ export const getEntitlementByIdPathEntitlementIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5221
5318
  export const getEntitlementByIdParams = zod.object({
5222
5319
  entitlementId: zod.coerce
5223
5320
  .string()
@@ -5230,7 +5327,7 @@ If the from query param is not provided it defaults to last 72 hours.
5230
5327
  * @summary List ingested events
5231
5328
  */
5232
5329
  export const listEventsQueryClientIdMax = 36;
5233
- export const listEventsQueryCustomerIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5330
+ export const listEventsQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5234
5331
  export const listEventsQueryLimitDefault = 100;
5235
5332
  export const listEventsQueryLimitMax = 100;
5236
5333
  export const listEventsQueryParams = zod.object({
@@ -5295,7 +5392,7 @@ export const ingestEventsBody = zod
5295
5392
  datacontenttype: zod
5296
5393
  .enum(['application/json'])
5297
5394
  .nullish()
5298
- .describe('Content type of the CloudEvents data value. Only the value \"application/json\" is allowed over HTTP.'),
5395
+ .describe('Content type of the CloudEvents data value. Only the value "application/json" is allowed over HTTP.'),
5299
5396
  dataschema: zod.coerce
5300
5397
  .string()
5301
5398
  .url()
@@ -5334,7 +5431,7 @@ export const ingestEventsBody = zod
5334
5431
  datacontenttype: zod
5335
5432
  .enum(['application/json'])
5336
5433
  .nullish()
5337
- .describe('Content type of the CloudEvents data value. Only the value \"application/json\" is allowed over HTTP.'),
5434
+ .describe('Content type of the CloudEvents data value. Only the value "application/json" is allowed over HTTP.'),
5338
5435
  dataschema: zod.coerce
5339
5436
  .string()
5340
5437
  .url()
@@ -5382,7 +5479,7 @@ export const listFeaturesQueryParams = zod.object({
5382
5479
  includeArchived: zod.coerce
5383
5480
  .boolean()
5384
5481
  .optional()
5385
- .describe('Filter by meterGroupByFilters'),
5482
+ .describe('Include archived features in response.'),
5386
5483
  limit: zod.coerce
5387
5484
  .number()
5388
5485
  .min(1)
@@ -5423,11 +5520,74 @@ Features cannot be updated later, only archived.
5423
5520
  * @summary Create feature
5424
5521
  */
5425
5522
  export const createFeatureBodyKeyMax = 64;
5426
- export const createFeatureBodyKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5523
+ export const createFeatureBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5427
5524
  export const createFeatureBodyMeterSlugMax = 64;
5428
- export const createFeatureBodyMeterSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5525
+ export const createFeatureBodyMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5429
5526
  export const createFeatureBody = zod
5430
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.'),
5431
5591
  key: zod.coerce
5432
5592
  .string()
5433
5593
  .min(1)
@@ -5654,7 +5814,7 @@ export const marketplaceOAuth2InstallAuthorizeQueryParams = zod.object({
5654
5814
  state: zod.coerce
5655
5815
  .string()
5656
5816
  .optional()
5657
- .describe('Required if the \"state\" parameter was present in the client authorization request.\nThe exact value received from the client:\n\nUnique, randomly generated, opaque, and non-guessable string that is sent\nwhen starting an authentication request and validated when processing the response.'),
5817
+ .describe('Required if the "state" parameter was present in the client authorization request.\nThe exact value received from the client:\n\nUnique, randomly generated, opaque, and non-guessable string that is sent\nwhen starting an authentication request and validated when processing the response.'),
5658
5818
  });
5659
5819
  /**
5660
5820
  * List meters.
@@ -5693,7 +5853,7 @@ export const listMetersQueryParams = zod.object({
5693
5853
  export const createMeterBodyDescriptionMax = 1024;
5694
5854
  export const createMeterBodyNameMax = 256;
5695
5855
  export const createMeterBodySlugMax = 64;
5696
- export const createMeterBodySlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5856
+ export const createMeterBodySlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5697
5857
  export const createMeterBody = zod
5698
5858
  .object({
5699
5859
  aggregation: zod
@@ -5746,7 +5906,7 @@ export const createMeterBody = zod
5746
5906
  * @summary Get meter
5747
5907
  */
5748
5908
  export const getMeterPathMeterIdOrSlugMax = 64;
5749
- export const getMeterPathMeterIdOrSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5909
+ export const getMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5750
5910
  export const getMeterParams = zod.object({
5751
5911
  meterIdOrSlug: zod.coerce
5752
5912
  .string()
@@ -5759,7 +5919,7 @@ export const getMeterParams = zod.object({
5759
5919
  * @summary Update meter
5760
5920
  */
5761
5921
  export const updateMeterPathMeterIdOrSlugMax = 64;
5762
- export const updateMeterPathMeterIdOrSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5922
+ export const updateMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5763
5923
  export const updateMeterParams = zod.object({
5764
5924
  meterIdOrSlug: zod.coerce
5765
5925
  .string()
@@ -5798,7 +5958,7 @@ export const updateMeterBody = zod
5798
5958
  * @summary Delete meter
5799
5959
  */
5800
5960
  export const deleteMeterPathMeterIdOrSlugMax = 64;
5801
- export const deleteMeterPathMeterIdOrSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5961
+ export const deleteMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5802
5962
  export const deleteMeterParams = zod.object({
5803
5963
  meterIdOrSlug: zod.coerce
5804
5964
  .string()
@@ -5806,12 +5966,36 @@ export const deleteMeterParams = zod.object({
5806
5966
  .max(deleteMeterPathMeterIdOrSlugMax)
5807
5967
  .regex(deleteMeterPathMeterIdOrSlugRegExp),
5808
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
+ });
5809
5993
  /**
5810
5994
  * Query meter for usage.
5811
5995
  * @summary Query meter
5812
5996
  */
5813
5997
  export const queryMeterPathMeterIdOrSlugMax = 64;
5814
- export const queryMeterPathMeterIdOrSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5998
+ export const queryMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5815
5999
  export const queryMeterParams = zod.object({
5816
6000
  meterIdOrSlug: zod.coerce
5817
6001
  .string()
@@ -5867,7 +6051,7 @@ export const queryMeterQueryParams = zod.object({
5867
6051
  * @summary Query meter
5868
6052
  */
5869
6053
  export const queryMeterPostPathMeterIdOrSlugMax = 64;
5870
- export const queryMeterPostPathMeterIdOrSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6054
+ export const queryMeterPostPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5871
6055
  export const queryMeterPostParams = zod.object({
5872
6056
  meterIdOrSlug: zod.coerce
5873
6057
  .string()
@@ -5882,6 +6066,69 @@ export const queryMeterPostBodyFilterCustomerIdMax = 100;
5882
6066
  export const queryMeterPostBodyGroupByMax = 100;
5883
6067
  export const queryMeterPostBody = zod
5884
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.'),
5885
6132
  clientId: zod.coerce
5886
6133
  .string()
5887
6134
  .min(1)
@@ -5931,7 +6178,7 @@ export const queryMeterPostBody = zod
5931
6178
  * @summary List meter subjects
5932
6179
  */
5933
6180
  export const listMeterSubjectsPathMeterIdOrSlugMax = 64;
5934
- export const listMeterSubjectsPathMeterIdOrSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6181
+ export const listMeterSubjectsPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5935
6182
  export const listMeterSubjectsParams = zod.object({
5936
6183
  meterIdOrSlug: zod.coerce
5937
6184
  .string()
@@ -5939,6 +6186,16 @@ export const listMeterSubjectsParams = zod.object({
5939
6186
  .max(listMeterSubjectsPathMeterIdOrSlugMax)
5940
6187
  .regex(listMeterSubjectsPathMeterIdOrSlugRegExp),
5941
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
+ });
5942
6199
  /**
5943
6200
  * List all notification channels.
5944
6201
  * @summary List notification channels
@@ -5978,8 +6235,9 @@ export const listNotificationChannelsQueryParams = zod.object({
5978
6235
  * Create a new notification channel.
5979
6236
  * @summary Create a notification channel
5980
6237
  */
6238
+ export const createNotificationChannelBodyNameMax = 256;
5981
6239
  export const createNotificationChannelBodyDisabledDefault = false;
5982
- export const createNotificationChannelBodySigningSecretRegExp = new RegExp('^(whsec_)?[a-zA-Z0-9+/=]{32,100}$');
6240
+ export const createNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
5983
6241
  export const createNotificationChannelBody = zod
5984
6242
  .object({
5985
6243
  customHeaders: zod
@@ -5990,7 +6248,16 @@ export const createNotificationChannelBody = zod
5990
6248
  .boolean()
5991
6249
  .optional()
5992
6250
  .describe('Whether the channel is disabled or not.'),
5993
- 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.'),
5994
6261
  signingSecret: zod.coerce
5995
6262
  .string()
5996
6263
  .regex(createNotificationChannelBodySigningSecretRegExp)
@@ -6007,14 +6274,15 @@ export const createNotificationChannelBody = zod
6007
6274
  * Update notification channel.
6008
6275
  * @summary Update a notification channel
6009
6276
  */
6010
- export const updateNotificationChannelPathChannelIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6277
+ export const updateNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6011
6278
  export const updateNotificationChannelParams = zod.object({
6012
6279
  channelId: zod.coerce
6013
6280
  .string()
6014
6281
  .regex(updateNotificationChannelPathChannelIdRegExp),
6015
6282
  });
6283
+ export const updateNotificationChannelBodyNameMax = 256;
6016
6284
  export const updateNotificationChannelBodyDisabledDefault = false;
6017
- export const updateNotificationChannelBodySigningSecretRegExp = new RegExp('^(whsec_)?[a-zA-Z0-9+/=]{32,100}$');
6285
+ export const updateNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
6018
6286
  export const updateNotificationChannelBody = zod
6019
6287
  .object({
6020
6288
  customHeaders: zod
@@ -6025,7 +6293,16 @@ export const updateNotificationChannelBody = zod
6025
6293
  .boolean()
6026
6294
  .optional()
6027
6295
  .describe('Whether the channel is disabled or not.'),
6028
- 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.'),
6029
6306
  signingSecret: zod.coerce
6030
6307
  .string()
6031
6308
  .regex(updateNotificationChannelBodySigningSecretRegExp)
@@ -6042,7 +6319,7 @@ export const updateNotificationChannelBody = zod
6042
6319
  * Get a notification channel by id.
6043
6320
  * @summary Get notification channel
6044
6321
  */
6045
- export const getNotificationChannelPathChannelIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6322
+ export const getNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6046
6323
  export const getNotificationChannelParams = zod.object({
6047
6324
  channelId: zod.coerce
6048
6325
  .string()
@@ -6054,7 +6331,7 @@ export const getNotificationChannelParams = zod.object({
6054
6331
  Once a notification channel is deleted it cannot be undeleted.
6055
6332
  * @summary Delete a notification channel
6056
6333
  */
6057
- export const deleteNotificationChannelPathChannelIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6334
+ export const deleteNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6058
6335
  export const deleteNotificationChannelParams = zod.object({
6059
6336
  channelId: zod.coerce
6060
6337
  .string()
@@ -6064,8 +6341,8 @@ export const deleteNotificationChannelParams = zod.object({
6064
6341
  * List all notification events.
6065
6342
  * @summary List notification events
6066
6343
  */
6067
- export const listNotificationEventsQueryRuleItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6068
- export const listNotificationEventsQueryChannelItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6344
+ export const listNotificationEventsQueryRuleItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6345
+ export const listNotificationEventsQueryChannelItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6069
6346
  export const listNotificationEventsQueryPageDefault = 1;
6070
6347
  export const listNotificationEventsQueryPageSizeDefault = 100;
6071
6348
  export const listNotificationEventsQueryPageSizeMax = 1000;
@@ -6124,6 +6401,25 @@ export const listNotificationEventsQueryParams = zod.object({
6124
6401
  export const getNotificationEventParams = zod.object({
6125
6402
  eventId: zod.coerce.string(),
6126
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.');
6127
6423
  /**
6128
6424
  * List all notification rules.
6129
6425
  * @summary List notification rules
@@ -6131,7 +6427,7 @@ export const getNotificationEventParams = zod.object({
6131
6427
  export const listNotificationRulesQueryIncludeDeletedDefault = false;
6132
6428
  export const listNotificationRulesQueryIncludeDisabledDefault = false;
6133
6429
  export const listNotificationRulesQueryFeatureItemMax = 64;
6134
- export const listNotificationRulesQueryFeatureItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6430
+ export const listNotificationRulesQueryFeatureItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6135
6431
  export const listNotificationRulesQueryPageDefault = 1;
6136
6432
  export const listNotificationRulesQueryPageSizeDefault = 100;
6137
6433
  export const listNotificationRulesQueryPageSizeMax = 1000;
@@ -6178,19 +6474,23 @@ export const listNotificationRulesQueryParams = zod.object({
6178
6474
  * Create a new notification rule.
6179
6475
  * @summary Create a notification rule
6180
6476
  */
6477
+ export const createNotificationRuleBodyNameMax = 256;
6181
6478
  export const createNotificationRuleBodyDisabledDefault = false;
6182
6479
  export const createNotificationRuleBodyThresholdsMax = 10;
6183
- export const createNotificationRuleBodyChannelsItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6480
+ export const createNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6184
6481
  export const createNotificationRuleBodyFeaturesItemMax = 64;
6185
- export const createNotificationRuleBodyFeaturesItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
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;
6186
6484
  export const createNotificationRuleBodyDisabledDefaultOne = false;
6187
- export const createNotificationRuleBodyChannelsItemRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6485
+ export const createNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6188
6486
  export const createNotificationRuleBodyFeaturesItemMaxOne = 64;
6189
- export const createNotificationRuleBodyFeaturesItemRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
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;
6190
6489
  export const createNotificationRuleBodyDisabledDefaultTwo = false;
6191
- export const createNotificationRuleBodyChannelsItemRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6490
+ export const createNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6491
+ export const createNotificationRuleBodyNameMaxThree = 256;
6192
6492
  export const createNotificationRuleBodyDisabledDefaultThree = false;
6193
- export const createNotificationRuleBodyChannelsItemRegExpThree = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6493
+ export const createNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6194
6494
  export const createNotificationRuleBody = zod
6195
6495
  .union([
6196
6496
  zod
@@ -6216,8 +6516,15 @@ export const createNotificationRuleBody = zod
6216
6516
  .min(1)
6217
6517
  .optional()
6218
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.'),
6219
6524
  name: zod.coerce
6220
6525
  .string()
6526
+ .min(1)
6527
+ .max(createNotificationRuleBodyNameMax)
6221
6528
  .describe('The user friendly name of the notification rule.'),
6222
6529
  thresholds: zod
6223
6530
  .array(zod
@@ -6264,8 +6571,15 @@ export const createNotificationRuleBody = zod
6264
6571
  .min(1)
6265
6572
  .optional()
6266
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.'),
6267
6579
  name: zod.coerce
6268
6580
  .string()
6581
+ .min(1)
6582
+ .max(createNotificationRuleBodyNameMaxOne)
6269
6583
  .describe('The user friendly name of the notification rule.'),
6270
6584
  type: zod.enum(['entitlements.reset']),
6271
6585
  })
@@ -6283,8 +6597,15 @@ export const createNotificationRuleBody = zod
6283
6597
  .boolean()
6284
6598
  .optional()
6285
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.'),
6286
6605
  name: zod.coerce
6287
6606
  .string()
6607
+ .min(1)
6608
+ .max(createNotificationRuleBodyNameMaxTwo)
6288
6609
  .describe('The user friendly name of the notification rule.'),
6289
6610
  type: zod.enum(['invoice.created']),
6290
6611
  })
@@ -6302,8 +6623,15 @@ export const createNotificationRuleBody = zod
6302
6623
  .boolean()
6303
6624
  .optional()
6304
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.'),
6305
6631
  name: zod.coerce
6306
6632
  .string()
6633
+ .min(1)
6634
+ .max(createNotificationRuleBodyNameMaxThree)
6307
6635
  .describe('The user friendly name of the notification rule.'),
6308
6636
  type: zod.enum(['invoice.updated']),
6309
6637
  })
@@ -6314,23 +6642,27 @@ export const createNotificationRuleBody = zod
6314
6642
  * Update notification rule.
6315
6643
  * @summary Update a notification rule
6316
6644
  */
6317
- export const updateNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6645
+ export const updateNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6318
6646
  export const updateNotificationRuleParams = zod.object({
6319
6647
  ruleId: zod.coerce.string().regex(updateNotificationRulePathRuleIdRegExp),
6320
6648
  });
6649
+ export const updateNotificationRuleBodyNameMax = 256;
6321
6650
  export const updateNotificationRuleBodyDisabledDefault = false;
6322
6651
  export const updateNotificationRuleBodyThresholdsMax = 10;
6323
- export const updateNotificationRuleBodyChannelsItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6652
+ export const updateNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6324
6653
  export const updateNotificationRuleBodyFeaturesItemMax = 64;
6325
- export const updateNotificationRuleBodyFeaturesItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
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;
6326
6656
  export const updateNotificationRuleBodyDisabledDefaultOne = false;
6327
- export const updateNotificationRuleBodyChannelsItemRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6657
+ export const updateNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6328
6658
  export const updateNotificationRuleBodyFeaturesItemMaxOne = 64;
6329
- export const updateNotificationRuleBodyFeaturesItemRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
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;
6330
6661
  export const updateNotificationRuleBodyDisabledDefaultTwo = false;
6331
- export const updateNotificationRuleBodyChannelsItemRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6662
+ export const updateNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6663
+ export const updateNotificationRuleBodyNameMaxThree = 256;
6332
6664
  export const updateNotificationRuleBodyDisabledDefaultThree = false;
6333
- export const updateNotificationRuleBodyChannelsItemRegExpThree = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6665
+ export const updateNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6334
6666
  export const updateNotificationRuleBody = zod
6335
6667
  .union([
6336
6668
  zod
@@ -6356,8 +6688,15 @@ export const updateNotificationRuleBody = zod
6356
6688
  .min(1)
6357
6689
  .optional()
6358
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.'),
6359
6696
  name: zod.coerce
6360
6697
  .string()
6698
+ .min(1)
6699
+ .max(updateNotificationRuleBodyNameMax)
6361
6700
  .describe('The user friendly name of the notification rule.'),
6362
6701
  thresholds: zod
6363
6702
  .array(zod
@@ -6404,8 +6743,15 @@ export const updateNotificationRuleBody = zod
6404
6743
  .min(1)
6405
6744
  .optional()
6406
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.'),
6407
6751
  name: zod.coerce
6408
6752
  .string()
6753
+ .min(1)
6754
+ .max(updateNotificationRuleBodyNameMaxOne)
6409
6755
  .describe('The user friendly name of the notification rule.'),
6410
6756
  type: zod.enum(['entitlements.reset']),
6411
6757
  })
@@ -6423,8 +6769,15 @@ export const updateNotificationRuleBody = zod
6423
6769
  .boolean()
6424
6770
  .optional()
6425
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.'),
6426
6777
  name: zod.coerce
6427
6778
  .string()
6779
+ .min(1)
6780
+ .max(updateNotificationRuleBodyNameMaxTwo)
6428
6781
  .describe('The user friendly name of the notification rule.'),
6429
6782
  type: zod.enum(['invoice.created']),
6430
6783
  })
@@ -6442,8 +6795,15 @@ export const updateNotificationRuleBody = zod
6442
6795
  .boolean()
6443
6796
  .optional()
6444
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.'),
6445
6803
  name: zod.coerce
6446
6804
  .string()
6805
+ .min(1)
6806
+ .max(updateNotificationRuleBodyNameMaxThree)
6447
6807
  .describe('The user friendly name of the notification rule.'),
6448
6808
  type: zod.enum(['invoice.updated']),
6449
6809
  })
@@ -6454,7 +6814,7 @@ export const updateNotificationRuleBody = zod
6454
6814
  * Get a notification rule by id.
6455
6815
  * @summary Get notification rule
6456
6816
  */
6457
- export const getNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6817
+ export const getNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6458
6818
  export const getNotificationRuleParams = zod.object({
6459
6819
  ruleId: zod.coerce.string().regex(getNotificationRulePathRuleIdRegExp),
6460
6820
  });
@@ -6464,7 +6824,7 @@ export const getNotificationRuleParams = zod.object({
6464
6824
  Once a notification rule is deleted it cannot be undeleted.
6465
6825
  * @summary Delete a notification rule
6466
6826
  */
6467
- export const deleteNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6827
+ export const deleteNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6468
6828
  export const deleteNotificationRuleParams = zod.object({
6469
6829
  ruleId: zod.coerce.string().regex(deleteNotificationRulePathRuleIdRegExp),
6470
6830
  });
@@ -6472,7 +6832,7 @@ export const deleteNotificationRuleParams = zod.object({
6472
6832
  * Test a notification rule by sending a test event with random data.
6473
6833
  * @summary Test notification rule
6474
6834
  */
6475
- export const testNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6835
+ export const testNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6476
6836
  export const testNotificationRuleParams = zod.object({
6477
6837
  ruleId: zod.coerce.string().regex(testNotificationRulePathRuleIdRegExp),
6478
6838
  });
@@ -6481,12 +6841,12 @@ export const testNotificationRuleParams = zod.object({
6481
6841
  * @summary List plans
6482
6842
  */
6483
6843
  export const listPlansQueryIncludeDeletedDefault = false;
6484
- export const listPlansQueryIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6844
+ export const listPlansQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6485
6845
  export const listPlansQueryKeyItemMax = 64;
6486
- export const listPlansQueryKeyItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6846
+ export const listPlansQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6487
6847
  export const listPlansQueryCurrencyItemMin = 3;
6488
6848
  export const listPlansQueryCurrencyItemMax = 3;
6489
- export const listPlansQueryCurrencyItemRegExp = new RegExp('^[A-Z]{3}$');
6849
+ export const listPlansQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
6490
6850
  export const listPlansQueryPageDefault = 1;
6491
6851
  export const listPlansQueryPageSizeDefault = 100;
6492
6852
  export const listPlansQueryPageSizeMax = 1000;
@@ -6554,10 +6914,10 @@ export const listPlansQueryParams = zod.object({
6554
6914
  export const createPlanBodyNameMax = 256;
6555
6915
  export const createPlanBodyDescriptionMax = 1024;
6556
6916
  export const createPlanBodyKeyMax = 64;
6557
- export const createPlanBodyKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6917
+ export const createPlanBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6558
6918
  export const createPlanBodyCurrencyMinOne = 3;
6559
6919
  export const createPlanBodyCurrencyMaxOne = 3;
6560
- export const createPlanBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
6920
+ export const createPlanBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
6561
6921
  export const createPlanBodyCurrencyDefault = 'USD';
6562
6922
  export const createPlanBodyProRatingConfigEnabledDefault = true;
6563
6923
  export const createPlanBodyProRatingConfigModeDefault = 'prorate_prices';
@@ -6566,55 +6926,55 @@ export const createPlanBodyProRatingConfigDefault = {
6566
6926
  mode: 'prorate_prices',
6567
6927
  };
6568
6928
  export const createPlanBodyPhasesItemKeyMax = 64;
6569
- export const createPlanBodyPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6929
+ export const createPlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6570
6930
  export const createPlanBodyPhasesItemNameMax = 256;
6571
6931
  export const createPlanBodyPhasesItemDescriptionMax = 1024;
6572
6932
  export const createPlanBodyPhasesItemRateCardsItemKeyMax = 64;
6573
- export const createPlanBodyPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6933
+ export const createPlanBodyPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6574
6934
  export const createPlanBodyPhasesItemRateCardsItemNameMax = 256;
6575
6935
  export const createPlanBodyPhasesItemRateCardsItemDescriptionMax = 1024;
6576
6936
  export const createPlanBodyPhasesItemRateCardsItemFeatureKeyMax = 64;
6577
- export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6937
+ export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6578
6938
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
6579
6939
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
6580
6940
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
6581
6941
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
6582
6942
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
6583
- export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
6584
- export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6943
+ export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
6944
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6585
6945
  export const createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
6586
- export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6946
+ export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6587
6947
  export const createPlanBodyPhasesItemRateCardsItemKeyMaxOne = 64;
6588
- export const createPlanBodyPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6948
+ export const createPlanBodyPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6589
6949
  export const createPlanBodyPhasesItemRateCardsItemNameMaxOne = 256;
6590
6950
  export const createPlanBodyPhasesItemRateCardsItemDescriptionMaxOne = 1024;
6591
6951
  export const createPlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
6592
- export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6952
+ export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6593
6953
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
6594
6954
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
6595
6955
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
6596
6956
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
6597
6957
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
6598
- export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
6599
- export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6958
+ export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
6959
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6600
6960
  export const createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
6601
- export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6602
- export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6603
- export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6604
- export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6605
- export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6606
- export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6607
- export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6608
- export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6609
- export const createPlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6961
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
6962
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6963
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6964
+ export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6965
+ export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6966
+ export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6967
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6968
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6969
+ export const createPlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6610
6970
  export const createPlanBodyPhasesItemRateCardsItemPriceMultiplierDefault = '1';
6611
- export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6612
- export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6613
- export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6614
- export const createPlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6615
- export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6616
- export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6617
- export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6971
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
6972
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
6973
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
6974
+ export const createPlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6975
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
6976
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
6977
+ export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6618
6978
  export const createPlanBody = zod
6619
6979
  .object({
6620
6980
  alignment: zod
@@ -6629,7 +6989,7 @@ export const createPlanBody = zod
6629
6989
  .describe('Alignment configuration for the plan.'),
6630
6990
  billingCadence: zod.coerce
6631
6991
  .string()
6632
- .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: \"P1M\" (monthly), \"P3M\" (quarterly), \"P1Y\" (annually).'),
6992
+ .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
6633
6993
  currency: zod.coerce
6634
6994
  .string()
6635
6995
  .min(createPlanBodyCurrencyMinOne)
@@ -6739,7 +7099,7 @@ export const createPlanBody = zod
6739
7099
  .number()
6740
7100
  .min(createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
6741
7101
  .optional()
6742
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
7102
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
6743
7103
  issueAfterResetPriority: zod.coerce
6744
7104
  .number()
6745
7105
  .min(1)
@@ -6911,7 +7271,7 @@ export const createPlanBody = zod
6911
7271
  .number()
6912
7272
  .min(createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
6913
7273
  .optional()
6914
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
7274
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
6915
7275
  issueAfterResetPriority: zod.coerce
6916
7276
  .number()
6917
7277
  .min(1)
@@ -7201,7 +7561,7 @@ It returns error if there is already a plan in draft or planId does not referenc
7201
7561
  * @summary New draft plan
7202
7562
  */
7203
7563
  export const nextPlanPathPlanIdOrKeyMax = 64;
7204
- export const nextPlanPathPlanIdOrKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7564
+ export const nextPlanPathPlanIdOrKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7205
7565
  export const nextPlanParams = zod.object({
7206
7566
  planIdOrKey: zod.coerce
7207
7567
  .string()
@@ -7213,7 +7573,7 @@ export const nextPlanParams = zod.object({
7213
7573
  * Update plan by id.
7214
7574
  * @summary Update a plan
7215
7575
  */
7216
- export const updatePlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7576
+ export const updatePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7217
7577
  export const updatePlanParams = zod.object({
7218
7578
  planId: zod.coerce.string().regex(updatePlanPathPlanIdRegExp),
7219
7579
  });
@@ -7226,55 +7586,55 @@ export const updatePlanBodyProRatingConfigDefault = {
7226
7586
  mode: 'prorate_prices',
7227
7587
  };
7228
7588
  export const updatePlanBodyPhasesItemKeyMax = 64;
7229
- export const updatePlanBodyPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7589
+ export const updatePlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7230
7590
  export const updatePlanBodyPhasesItemNameMax = 256;
7231
7591
  export const updatePlanBodyPhasesItemDescriptionMax = 1024;
7232
7592
  export const updatePlanBodyPhasesItemRateCardsItemKeyMax = 64;
7233
- export const updatePlanBodyPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7593
+ export const updatePlanBodyPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7234
7594
  export const updatePlanBodyPhasesItemRateCardsItemNameMax = 256;
7235
7595
  export const updatePlanBodyPhasesItemRateCardsItemDescriptionMax = 1024;
7236
7596
  export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyMax = 64;
7237
- export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7597
+ export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7238
7598
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
7239
7599
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
7240
7600
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
7241
7601
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
7242
7602
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
7243
- export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
7244
- export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7603
+ export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
7604
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7245
7605
  export const updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
7246
- export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7606
+ export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7247
7607
  export const updatePlanBodyPhasesItemRateCardsItemKeyMaxOne = 64;
7248
- export const updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7608
+ export const updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7249
7609
  export const updatePlanBodyPhasesItemRateCardsItemNameMaxOne = 256;
7250
7610
  export const updatePlanBodyPhasesItemRateCardsItemDescriptionMaxOne = 1024;
7251
7611
  export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
7252
- export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7612
+ export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7253
7613
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
7254
7614
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
7255
7615
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
7256
7616
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
7257
7617
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
7258
- export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
7259
- export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7618
+ export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
7619
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7260
7620
  export const updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
7261
- export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7262
- export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7263
- export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7264
- export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7265
- export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7266
- export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7267
- export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7268
- export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7269
- export const updatePlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7621
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
7622
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7623
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7624
+ export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7625
+ export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7626
+ export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7627
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7628
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7629
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7270
7630
  export const updatePlanBodyPhasesItemRateCardsItemPriceMultiplierDefault = '1';
7271
- export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7272
- export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7273
- export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7274
- export const updatePlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7275
- export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7276
- export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7277
- export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7631
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
7632
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
7633
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
7634
+ export const updatePlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7635
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
7636
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
7637
+ export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7278
7638
  export const updatePlanBody = zod
7279
7639
  .object({
7280
7640
  alignment: zod
@@ -7289,7 +7649,7 @@ export const updatePlanBody = zod
7289
7649
  .describe('Alignment configuration for the plan.'),
7290
7650
  billingCadence: zod.coerce
7291
7651
  .string()
7292
- .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: \"P1M\" (monthly), \"P3M\" (quarterly), \"P1Y\" (annually).'),
7652
+ .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
7293
7653
  description: zod.coerce
7294
7654
  .string()
7295
7655
  .max(updatePlanBodyDescriptionMax)
@@ -7386,7 +7746,7 @@ export const updatePlanBody = zod
7386
7746
  .number()
7387
7747
  .min(updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
7388
7748
  .optional()
7389
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
7749
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
7390
7750
  issueAfterResetPriority: zod.coerce
7391
7751
  .number()
7392
7752
  .min(1)
@@ -7558,7 +7918,7 @@ export const updatePlanBody = zod
7558
7918
  .number()
7559
7919
  .min(updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
7560
7920
  .optional()
7561
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
7921
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
7562
7922
  issueAfterResetPriority: zod.coerce
7563
7923
  .number()
7564
7924
  .min(1)
@@ -7846,7 +8206,7 @@ export const updatePlanBody = zod
7846
8206
  * @summary Get plan
7847
8207
  */
7848
8208
  export const getPlanPathPlanIdMax = 64;
7849
- export const getPlanPathPlanIdRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8209
+ export const getPlanPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7850
8210
  export const getPlanParams = zod.object({
7851
8211
  planId: zod.coerce
7852
8212
  .string()
@@ -7867,7 +8227,7 @@ export const getPlanQueryParams = zod.object({
7867
8227
  Once a plan is deleted it cannot be undeleted.
7868
8228
  * @summary Delete plan
7869
8229
  */
7870
- export const deletePlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8230
+ export const deletePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7871
8231
  export const deletePlanParams = zod.object({
7872
8232
  planId: zod.coerce.string().regex(deletePlanPathPlanIdRegExp),
7873
8233
  });
@@ -7876,7 +8236,7 @@ export const deletePlanParams = zod.object({
7876
8236
  * @summary List all available add-ons for plan
7877
8237
  */
7878
8238
  export const listPlanAddonsPathPlanIdMax = 64;
7879
- export const listPlanAddonsPathPlanIdRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8239
+ export const listPlanAddonsPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7880
8240
  export const listPlanAddonsParams = zod.object({
7881
8241
  planId: zod.coerce
7882
8242
  .string()
@@ -7885,9 +8245,9 @@ export const listPlanAddonsParams = zod.object({
7885
8245
  .regex(listPlanAddonsPathPlanIdRegExp),
7886
8246
  });
7887
8247
  export const listPlanAddonsQueryIncludeDeletedDefault = false;
7888
- export const listPlanAddonsQueryIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8248
+ export const listPlanAddonsQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7889
8249
  export const listPlanAddonsQueryKeyItemMax = 64;
7890
- export const listPlanAddonsQueryKeyItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8250
+ export const listPlanAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7891
8251
  export const listPlanAddonsQueryPageDefault = 1;
7892
8252
  export const listPlanAddonsQueryPageSizeDefault = 100;
7893
8253
  export const listPlanAddonsQueryPageSizeMax = 1000;
@@ -7937,11 +8297,11 @@ export const listPlanAddonsQueryParams = zod.object({
7937
8297
  * Create new add-on assignment for plan.
7938
8298
  * @summary Create new add-on assignment for plan
7939
8299
  */
7940
- export const createPlanAddonPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8300
+ export const createPlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7941
8301
  export const createPlanAddonParams = zod.object({
7942
8302
  planId: zod.coerce.string().regex(createPlanAddonPathPlanIdRegExp),
7943
8303
  });
7944
- export const createPlanAddonBodyAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8304
+ export const createPlanAddonBodyAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7945
8305
  export const createPlanAddonBody = zod
7946
8306
  .object({
7947
8307
  addonId: zod.coerce
@@ -7966,8 +8326,8 @@ export const createPlanAddonBody = zod
7966
8326
  * Update add-on assignment for plan.
7967
8327
  * @summary Update add-on assignment for plan
7968
8328
  */
7969
- export const updatePlanAddonPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7970
- export const updatePlanAddonPathPlanAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8329
+ export const updatePlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8330
+ export const updatePlanAddonPathPlanAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7971
8331
  export const updatePlanAddonParams = zod.object({
7972
8332
  planAddonId: zod.coerce.string().regex(updatePlanAddonPathPlanAddonIdRegExp),
7973
8333
  planId: zod.coerce.string().regex(updatePlanAddonPathPlanIdRegExp),
@@ -7993,9 +8353,9 @@ export const updatePlanAddonBody = zod
7993
8353
  * @summary Get add-on assignment for plan
7994
8354
  */
7995
8355
  export const getPlanAddonPathPlanIdMax = 64;
7996
- export const getPlanAddonPathPlanIdRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8356
+ export const getPlanAddonPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7997
8357
  export const getPlanAddonPathPlanAddonIdMax = 64;
7998
- export const getPlanAddonPathPlanAddonIdRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8358
+ export const getPlanAddonPathPlanAddonIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7999
8359
  export const getPlanAddonParams = zod.object({
8000
8360
  planAddonId: zod.coerce
8001
8361
  .string()
@@ -8014,8 +8374,8 @@ export const getPlanAddonParams = zod.object({
8014
8374
  Once a plan is deleted it cannot be undeleted.
8015
8375
  * @summary Delete add-on assignment for plan
8016
8376
  */
8017
- export const deletePlanAddonPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8018
- export const deletePlanAddonPathPlanAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8377
+ export const deletePlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8378
+ export const deletePlanAddonPathPlanAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8019
8379
  export const deletePlanAddonParams = zod.object({
8020
8380
  planAddonId: zod.coerce.string().regex(deletePlanAddonPathPlanAddonIdRegExp),
8021
8381
  planId: zod.coerce.string().regex(deletePlanAddonPathPlanIdRegExp),
@@ -8024,7 +8384,7 @@ export const deletePlanAddonParams = zod.object({
8024
8384
  * Archive a plan version.
8025
8385
  * @summary Archive plan version
8026
8386
  */
8027
- export const archivePlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8387
+ export const archivePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8028
8388
  export const archivePlanParams = zod.object({
8029
8389
  planId: zod.coerce.string().regex(archivePlanPathPlanIdRegExp),
8030
8390
  });
@@ -8032,7 +8392,7 @@ export const archivePlanParams = zod.object({
8032
8392
  * Publish a plan version.
8033
8393
  * @summary Publish plan
8034
8394
  */
8035
- export const publishPlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8395
+ export const publishPlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8036
8396
  export const publishPlanParams = zod.object({
8037
8397
  planId: zod.coerce.string().regex(publishPlanPathPlanIdRegExp),
8038
8398
  });
@@ -8041,7 +8401,7 @@ export const publishPlanParams = zod.object({
8041
8401
  * @summary Query meter Query meter
8042
8402
  */
8043
8403
  export const queryPortalMeterPathMeterSlugMax = 64;
8044
- export const queryPortalMeterPathMeterSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8404
+ export const queryPortalMeterPathMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8045
8405
  export const queryPortalMeterParams = zod.object({
8046
8406
  meterSlug: zod.coerce
8047
8407
  .string()
@@ -8133,21 +8493,21 @@ export const invalidatePortalTokensBody = zod.object({
8133
8493
  * Create checkout session.
8134
8494
  * @summary Create checkout session
8135
8495
  */
8136
- export const createStripeCheckoutSessionBodyAppIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8137
- export const createStripeCheckoutSessionBodyCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8496
+ export const createStripeCheckoutSessionBodyAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8497
+ export const createStripeCheckoutSessionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8138
8498
  export const createStripeCheckoutSessionBodyCustomerNameMax = 256;
8139
8499
  export const createStripeCheckoutSessionBodyCustomerDescriptionMax = 1024;
8140
8500
  export const createStripeCheckoutSessionBodyCustomerKeyMaxOne = 256;
8141
8501
  export const createStripeCheckoutSessionBodyCustomerUsageAttributionSubjectKeysMax = 1;
8142
8502
  export const createStripeCheckoutSessionBodyCustomerCurrencyMinOne = 3;
8143
8503
  export const createStripeCheckoutSessionBodyCustomerCurrencyMaxOne = 3;
8144
- export const createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
8504
+ export const createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne = /^[A-Z]{3}$/;
8145
8505
  export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryMinOne = 2;
8146
8506
  export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryMaxOne = 2;
8147
- export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne = new RegExp('^[A-Z]{2}$');
8507
+ export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
8148
8508
  export const createStripeCheckoutSessionBodyOptionsCurrencyMinOne = 3;
8149
8509
  export const createStripeCheckoutSessionBodyOptionsCurrencyMaxOne = 3;
8150
- export const createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
8510
+ export const createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne = /^[A-Z]{3}$/;
8151
8511
  export const createStripeCheckoutSessionBodyOptionsCustomTextAfterSubmitMessageMax = 1200;
8152
8512
  export const createStripeCheckoutSessionBodyOptionsCustomTextShippingAddressMessageMax = 1200;
8153
8513
  export const createStripeCheckoutSessionBodyOptionsCustomTextSubmitMessageMax = 1200;
@@ -8247,7 +8607,10 @@ export const createStripeCheckoutSessionBody = zod
8247
8607
  usageAttribution: zod
8248
8608
  .object({
8249
8609
  subjectKeys: zod
8250
- .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.'))
8251
8614
  .min(1)
8252
8615
  .max(createStripeCheckoutSessionBodyCustomerUsageAttributionSubjectKeysMax)
8253
8616
  .describe('The subjects that are attributed to the customer.'),
@@ -8489,20 +8852,23 @@ export const createEntitlementParams = zod.object({
8489
8852
  subjectIdOrKey: zod.coerce.string(),
8490
8853
  });
8491
8854
  export const createEntitlementBodyFeatureKeyMax = 64;
8492
- export const createEntitlementBodyFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8493
- export const createEntitlementBodyFeatureIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8855
+ export const createEntitlementBodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8856
+ export const createEntitlementBodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8494
8857
  export const createEntitlementBodyIsSoftLimitDefault = false;
8495
8858
  export const createEntitlementBodyIsUnlimitedDefault = false;
8859
+ export const createEntitlementBodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8496
8860
  export const createEntitlementBodyIssueAfterResetMin = 0;
8497
8861
  export const createEntitlementBodyIssueAfterResetPriorityDefault = 1;
8498
8862
  export const createEntitlementBodyIssueAfterResetPriorityMax = 255;
8499
8863
  export const createEntitlementBodyPreserveOverageAtResetDefault = false;
8500
8864
  export const createEntitlementBodyFeatureKeyMaxOne = 64;
8501
- export const createEntitlementBodyFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8502
- export const createEntitlementBodyFeatureIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8865
+ export const createEntitlementBodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8866
+ export const createEntitlementBodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8867
+ export const createEntitlementBodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8503
8868
  export const createEntitlementBodyFeatureKeyMaxTwo = 64;
8504
- export const createEntitlementBodyFeatureKeyRegExpTwo = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8505
- export const createEntitlementBodyFeatureIdRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8869
+ export const createEntitlementBodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8870
+ export const createEntitlementBodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8871
+ export const createEntitlementBodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8506
8872
  export const createEntitlementBody = zod
8507
8873
  .union([
8508
8874
  zod
@@ -8527,7 +8893,7 @@ export const createEntitlementBody = zod
8527
8893
  .number()
8528
8894
  .min(createEntitlementBodyIssueAfterResetMin)
8529
8895
  .optional()
8530
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
8896
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
8531
8897
  issueAfterResetPriority: zod.coerce
8532
8898
  .number()
8533
8899
  .min(1)
@@ -8720,6 +9086,7 @@ export const createGrantBodyPriorityMax = 255;
8720
9086
  export const createGrantBodyExpirationCountMax = 1000;
8721
9087
  export const createGrantBodyMaxRolloverAmountDefault = 0;
8722
9088
  export const createGrantBodyMinRolloverAmountDefault = 0;
9089
+ export const createGrantBodyRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8723
9090
  export const createGrantBody = zod
8724
9091
  .object({
8725
9092
  amount: zod.coerce
@@ -8796,20 +9163,23 @@ export const overrideEntitlementParams = zod.object({
8796
9163
  subjectIdOrKey: zod.coerce.string(),
8797
9164
  });
8798
9165
  export const overrideEntitlementBodyFeatureKeyMax = 64;
8799
- export const overrideEntitlementBodyFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8800
- export const overrideEntitlementBodyFeatureIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9166
+ export const overrideEntitlementBodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9167
+ export const overrideEntitlementBodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8801
9168
  export const overrideEntitlementBodyIsSoftLimitDefault = false;
8802
9169
  export const overrideEntitlementBodyIsUnlimitedDefault = false;
9170
+ export const overrideEntitlementBodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8803
9171
  export const overrideEntitlementBodyIssueAfterResetMin = 0;
8804
9172
  export const overrideEntitlementBodyIssueAfterResetPriorityDefault = 1;
8805
9173
  export const overrideEntitlementBodyIssueAfterResetPriorityMax = 255;
8806
9174
  export const overrideEntitlementBodyPreserveOverageAtResetDefault = false;
8807
9175
  export const overrideEntitlementBodyFeatureKeyMaxOne = 64;
8808
- export const overrideEntitlementBodyFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8809
- export const overrideEntitlementBodyFeatureIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9176
+ export const overrideEntitlementBodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9177
+ export const overrideEntitlementBodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9178
+ export const overrideEntitlementBodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8810
9179
  export const overrideEntitlementBodyFeatureKeyMaxTwo = 64;
8811
- export const overrideEntitlementBodyFeatureKeyRegExpTwo = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8812
- export const overrideEntitlementBodyFeatureIdRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9180
+ export const overrideEntitlementBodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9181
+ export const overrideEntitlementBodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9182
+ export const overrideEntitlementBodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
8813
9183
  export const overrideEntitlementBody = zod
8814
9184
  .union([
8815
9185
  zod
@@ -8834,7 +9204,7 @@ export const overrideEntitlementBody = zod
8834
9204
  .number()
8835
9205
  .min(overrideEntitlementBodyIssueAfterResetMin)
8836
9206
  .optional()
8837
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
9207
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
8838
9208
  issueAfterResetPriority: zod.coerce
8839
9209
  .number()
8840
9210
  .min(1)
@@ -9070,15 +9440,15 @@ export const resetEntitlementUsageBody = zod
9070
9440
  * @summary Create subscription
9071
9441
  */
9072
9442
  export const createSubscriptionBodyPlanKeyMax = 64;
9073
- export const createSubscriptionBodyPlanKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9443
+ export const createSubscriptionBodyPlanKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9074
9444
  export const createSubscriptionBodyTimingDefault = 'immediate';
9075
- export const createSubscriptionBodyCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9445
+ export const createSubscriptionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9076
9446
  export const createSubscriptionBodyCustomerKeyMax = 256;
9077
9447
  export const createSubscriptionBodyCustomPlanNameMax = 256;
9078
9448
  export const createSubscriptionBodyCustomPlanDescriptionMax = 1024;
9079
9449
  export const createSubscriptionBodyCustomPlanCurrencyMinOne = 3;
9080
9450
  export const createSubscriptionBodyCustomPlanCurrencyMaxOne = 3;
9081
- export const createSubscriptionBodyCustomPlanCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
9451
+ export const createSubscriptionBodyCustomPlanCurrencyRegExpOne = /^[A-Z]{3}$/;
9082
9452
  export const createSubscriptionBodyCustomPlanCurrencyDefault = 'USD';
9083
9453
  export const createSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = true;
9084
9454
  export const createSubscriptionBodyCustomPlanProRatingConfigModeDefault = 'prorate_prices';
@@ -9087,57 +9457,57 @@ export const createSubscriptionBodyCustomPlanProRatingConfigDefault = {
9087
9457
  mode: 'prorate_prices',
9088
9458
  };
9089
9459
  export const createSubscriptionBodyCustomPlanPhasesItemKeyMax = 64;
9090
- export const createSubscriptionBodyCustomPlanPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9460
+ export const createSubscriptionBodyCustomPlanPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9091
9461
  export const createSubscriptionBodyCustomPlanPhasesItemNameMax = 256;
9092
9462
  export const createSubscriptionBodyCustomPlanPhasesItemDescriptionMax = 1024;
9093
9463
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = 64;
9094
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9464
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9095
9465
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = 256;
9096
9466
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = 1024;
9097
9467
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = 64;
9098
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9468
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9099
9469
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
9100
9470
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
9101
9471
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
9102
9472
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
9103
9473
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
9104
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
9105
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9474
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
9475
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9106
9476
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
9107
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9477
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9108
9478
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = 64;
9109
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9479
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9110
9480
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = 256;
9111
9481
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = 1024;
9112
9482
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
9113
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9483
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9114
9484
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
9115
9485
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
9116
9486
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
9117
9487
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
9118
9488
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
9119
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
9120
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9489
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
9490
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9121
9491
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
9122
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9123
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9124
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9125
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9126
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9127
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9128
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9129
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9130
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9492
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9493
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9494
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9495
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9496
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9497
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9498
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9499
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9500
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9131
9501
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = '1';
9132
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9133
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9134
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9135
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9136
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9137
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9138
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9502
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9503
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9504
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9505
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9506
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9507
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9508
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9139
9509
  export const createSubscriptionBodyTimingDefaultFour = 'immediate';
9140
- export const createSubscriptionBodyCustomerIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9510
+ export const createSubscriptionBodyCustomerIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9141
9511
  export const createSubscriptionBodyCustomerKeyMaxOne = 256;
9142
9512
  export const createSubscriptionBody = zod
9143
9513
  .union([
@@ -9246,7 +9616,7 @@ export const createSubscriptionBody = zod
9246
9616
  .describe('Alignment configuration for the plan.'),
9247
9617
  billingCadence: zod.coerce
9248
9618
  .string()
9249
- .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: \"P1M\" (monthly), \"P3M\" (quarterly), \"P1Y\" (annually).'),
9619
+ .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
9250
9620
  currency: zod.coerce
9251
9621
  .string()
9252
9622
  .min(createSubscriptionBodyCustomPlanCurrencyMinOne)
@@ -9350,7 +9720,7 @@ export const createSubscriptionBody = zod
9350
9720
  .number()
9351
9721
  .min(createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
9352
9722
  .optional()
9353
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
9723
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
9354
9724
  issueAfterResetPriority: zod.coerce
9355
9725
  .number()
9356
9726
  .min(1)
@@ -9522,7 +9892,7 @@ export const createSubscriptionBody = zod
9522
9892
  .number()
9523
9893
  .min(createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
9524
9894
  .optional()
9525
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
9895
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
9526
9896
  issueAfterResetPriority: zod.coerce
9527
9897
  .number()
9528
9898
  .min(1)
@@ -9826,7 +10196,7 @@ export const createSubscriptionBody = zod
9826
10196
  /**
9827
10197
  * @summary Get subscription
9828
10198
  */
9829
- export const getSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10199
+ export const getSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9830
10200
  export const getSubscriptionParams = zod.object({
9831
10201
  subscriptionId: zod.coerce
9832
10202
  .string()
@@ -9843,61 +10213,61 @@ export const getSubscriptionQueryParams = zod.object({
9843
10213
  The key format is `/phases/{phaseKey}` or `/phases/{phaseKey}/items/{itemKey}`.
9844
10214
  * @summary Edit subscription
9845
10215
  */
9846
- export const editSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10216
+ export const editSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9847
10217
  export const editSubscriptionParams = zod.object({
9848
10218
  subscriptionId: zod.coerce
9849
10219
  .string()
9850
10220
  .regex(editSubscriptionPathSubscriptionIdRegExp),
9851
10221
  });
9852
10222
  export const editSubscriptionBodyCustomizationsItemRateCardKeyMax = 64;
9853
- export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10223
+ export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9854
10224
  export const editSubscriptionBodyCustomizationsItemRateCardNameMax = 256;
9855
10225
  export const editSubscriptionBodyCustomizationsItemRateCardDescriptionMax = 1024;
9856
10226
  export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMax = 64;
9857
- export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10227
+ export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9858
10228
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefault = false;
9859
10229
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin = 0;
9860
10230
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefault = 1;
9861
10231
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMax = 255;
9862
10232
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefault = false;
9863
- export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
9864
- export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10233
+ export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
10234
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9865
10235
  export const editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefault = 'in_advance';
9866
- export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10236
+ export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9867
10237
  export const editSubscriptionBodyCustomizationsItemRateCardKeyMaxOne = 64;
9868
- export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10238
+ export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9869
10239
  export const editSubscriptionBodyCustomizationsItemRateCardNameMaxOne = 256;
9870
10240
  export const editSubscriptionBodyCustomizationsItemRateCardDescriptionMaxOne = 1024;
9871
10241
  export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMaxOne = 64;
9872
- export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10242
+ export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9873
10243
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefaultOne = false;
9874
10244
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne = 0;
9875
10245
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
9876
10246
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
9877
10247
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
9878
- export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
9879
- export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10248
+ export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
10249
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9880
10250
  export const editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefaultTwo = 'in_advance';
9881
- export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9882
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9883
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9884
- export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9885
- export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9886
- export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9887
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9888
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9889
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10251
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
10252
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10253
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10254
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10255
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10256
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10257
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10258
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10259
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9890
10260
  export const editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierDefault = '1';
9891
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9892
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9893
- export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9894
- export const editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9895
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9896
- export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9897
- export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9898
- export const editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10261
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
10262
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
10263
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
10264
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10265
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
10266
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
10267
+ export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10268
+ export const editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9899
10269
  export const editSubscriptionBodyCustomizationsItemPhaseKeyMaxTwo = 64;
9900
- export const editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10270
+ export const editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9901
10271
  export const editSubscriptionBodyCustomizationsMax = 100;
9902
10272
  export const editSubscriptionBody = zod
9903
10273
  .object({
@@ -9960,7 +10330,7 @@ export const editSubscriptionBody = zod
9960
10330
  .number()
9961
10331
  .min(editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin)
9962
10332
  .optional()
9963
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
10333
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
9964
10334
  issueAfterResetPriority: zod.coerce
9965
10335
  .number()
9966
10336
  .min(1)
@@ -10132,7 +10502,7 @@ export const editSubscriptionBody = zod
10132
10502
  .number()
10133
10503
  .min(editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne)
10134
10504
  .optional()
10135
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
10505
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
10136
10506
  issueAfterResetPriority: zod.coerce
10137
10507
  .number()
10138
10508
  .min(1)
@@ -10504,7 +10874,7 @@ export const editSubscriptionBody = zod
10504
10874
  * Deletes a subscription. Only scheduled subscriptions can be deleted.
10505
10875
  * @summary Delete subscription
10506
10876
  */
10507
- export const deleteSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10877
+ export const deleteSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10508
10878
  export const deleteSubscriptionParams = zod.object({
10509
10879
  subscriptionId: zod.coerce
10510
10880
  .string()
@@ -10514,7 +10884,7 @@ export const deleteSubscriptionParams = zod.object({
10514
10884
  * Create a new subscription addon, either providing the key or the id of the addon.
10515
10885
  * @summary Create subscription addon
10516
10886
  */
10517
- export const createSubscriptionAddonPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10887
+ export const createSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10518
10888
  export const createSubscriptionAddonParams = zod.object({
10519
10889
  subscriptionId: zod.coerce
10520
10890
  .string()
@@ -10523,7 +10893,7 @@ export const createSubscriptionAddonParams = zod.object({
10523
10893
  export const createSubscriptionAddonBodyNameMax = 256;
10524
10894
  export const createSubscriptionAddonBodyDescriptionMax = 1024;
10525
10895
  export const createSubscriptionAddonBodyQuantityMin = 0;
10526
- export const createSubscriptionAddonBodyAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10896
+ export const createSubscriptionAddonBodyAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10527
10897
  export const createSubscriptionAddonBody = zod
10528
10898
  .object({
10529
10899
  addon: zod
@@ -10570,7 +10940,7 @@ export const createSubscriptionAddonBody = zod
10570
10940
  * List all addons of a subscription. In the returned list will match to a set unique by addonId.
10571
10941
  * @summary List subscription addons
10572
10942
  */
10573
- export const listSubscriptionAddonsPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10943
+ export const listSubscriptionAddonsPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10574
10944
  export const listSubscriptionAddonsParams = zod.object({
10575
10945
  subscriptionId: zod.coerce
10576
10946
  .string()
@@ -10580,8 +10950,8 @@ export const listSubscriptionAddonsParams = zod.object({
10580
10950
  * Get a subscription addon by id.
10581
10951
  * @summary Get subscription addon
10582
10952
  */
10583
- export const getSubscriptionAddonPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10584
- export const getSubscriptionAddonPathSubscriptionAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10953
+ export const getSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10954
+ export const getSubscriptionAddonPathSubscriptionAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10585
10955
  export const getSubscriptionAddonParams = zod.object({
10586
10956
  subscriptionAddonId: zod.coerce
10587
10957
  .string()
@@ -10594,8 +10964,8 @@ export const getSubscriptionAddonParams = zod.object({
10594
10964
  * Updates a subscription addon (allows changing the quantity: purchasing more instances or cancelling the current instances)
10595
10965
  * @summary Update subscription addon
10596
10966
  */
10597
- export const updateSubscriptionAddonPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10598
- export const updateSubscriptionAddonPathSubscriptionAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10967
+ export const updateSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10968
+ export const updateSubscriptionAddonPathSubscriptionAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10599
10969
  export const updateSubscriptionAddonParams = zod.object({
10600
10970
  subscriptionAddonId: zod.coerce
10601
10971
  .string()
@@ -10649,7 +11019,7 @@ export const updateSubscriptionAddonBody = zod
10649
11019
  Will result in a scheduling conflict if there are other subscriptions scheduled to start after the cancellation time.
10650
11020
  * @summary Cancel subscription
10651
11021
  */
10652
- export const cancelSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11022
+ export const cancelSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10653
11023
  export const cancelSubscriptionParams = zod.object({
10654
11024
  subscriptionId: zod.coerce
10655
11025
  .string()
@@ -10674,19 +11044,19 @@ export const cancelSubscriptionBody = zod.object({
10674
11044
  Can be used for upgrades, downgrades, and plan changes.
10675
11045
  * @summary Change subscription
10676
11046
  */
10677
- export const changeSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11047
+ export const changeSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10678
11048
  export const changeSubscriptionParams = zod.object({
10679
11049
  subscriptionId: zod.coerce
10680
11050
  .string()
10681
11051
  .regex(changeSubscriptionPathSubscriptionIdRegExp),
10682
11052
  });
10683
11053
  export const changeSubscriptionBodyPlanKeyMax = 64;
10684
- export const changeSubscriptionBodyPlanKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11054
+ export const changeSubscriptionBodyPlanKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10685
11055
  export const changeSubscriptionBodyCustomPlanNameMax = 256;
10686
11056
  export const changeSubscriptionBodyCustomPlanDescriptionMax = 1024;
10687
11057
  export const changeSubscriptionBodyCustomPlanCurrencyMinOne = 3;
10688
11058
  export const changeSubscriptionBodyCustomPlanCurrencyMaxOne = 3;
10689
- export const changeSubscriptionBodyCustomPlanCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
11059
+ export const changeSubscriptionBodyCustomPlanCurrencyRegExpOne = /^[A-Z]{3}$/;
10690
11060
  export const changeSubscriptionBodyCustomPlanCurrencyDefault = 'USD';
10691
11061
  export const changeSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = true;
10692
11062
  export const changeSubscriptionBodyCustomPlanProRatingConfigModeDefault = 'prorate_prices';
@@ -10695,55 +11065,55 @@ export const changeSubscriptionBodyCustomPlanProRatingConfigDefault = {
10695
11065
  mode: 'prorate_prices',
10696
11066
  };
10697
11067
  export const changeSubscriptionBodyCustomPlanPhasesItemKeyMax = 64;
10698
- export const changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11068
+ export const changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10699
11069
  export const changeSubscriptionBodyCustomPlanPhasesItemNameMax = 256;
10700
11070
  export const changeSubscriptionBodyCustomPlanPhasesItemDescriptionMax = 1024;
10701
11071
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = 64;
10702
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11072
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10703
11073
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = 256;
10704
11074
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = 1024;
10705
11075
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = 64;
10706
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11076
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10707
11077
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
10708
11078
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
10709
11079
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
10710
11080
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
10711
11081
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
10712
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
10713
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
11082
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
11083
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10714
11084
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
10715
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
11085
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10716
11086
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = 64;
10717
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11087
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10718
11088
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = 256;
10719
11089
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = 1024;
10720
11090
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
10721
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11091
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10722
11092
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
10723
11093
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
10724
11094
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
10725
11095
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
10726
11096
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
10727
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
10728
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
11097
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
11098
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10729
11099
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
10730
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10731
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10732
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10733
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10734
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10735
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10736
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10737
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10738
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
11100
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
11101
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
11102
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
11103
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
11104
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
11105
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
11106
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
11107
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
11108
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10739
11109
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = '1';
10740
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10741
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10742
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10743
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10744
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10745
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10746
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
11110
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
11111
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
11112
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
11113
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
11114
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
11115
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
11116
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10747
11117
  export const changeSubscriptionBody = zod
10748
11118
  .union([
10749
11119
  zod
@@ -10828,7 +11198,7 @@ export const changeSubscriptionBody = zod
10828
11198
  .describe('Alignment configuration for the plan.'),
10829
11199
  billingCadence: zod.coerce
10830
11200
  .string()
10831
- .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: \"P1M\" (monthly), \"P3M\" (quarterly), \"P1Y\" (annually).'),
11201
+ .describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
10832
11202
  currency: zod.coerce
10833
11203
  .string()
10834
11204
  .min(changeSubscriptionBodyCustomPlanCurrencyMinOne)
@@ -10932,7 +11302,7 @@ export const changeSubscriptionBody = zod
10932
11302
  .number()
10933
11303
  .min(changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
10934
11304
  .optional()
10935
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
11305
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
10936
11306
  issueAfterResetPriority: zod.coerce
10937
11307
  .number()
10938
11308
  .min(1)
@@ -11104,7 +11474,7 @@ export const changeSubscriptionBody = zod
11104
11474
  .number()
11105
11475
  .min(changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
11106
11476
  .optional()
11107
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
11477
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
11108
11478
  issueAfterResetPriority: zod.coerce
11109
11479
  .number()
11110
11480
  .min(1)
@@ -11410,7 +11780,7 @@ If possible, the migration will be done immediately.
11410
11780
  If not, the migration will be scheduled to the end of the current billing period.
11411
11781
  * @summary Migrate subscription
11412
11782
  */
11413
- export const migrateSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11783
+ export const migrateSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11414
11784
  export const migrateSubscriptionParams = zod.object({
11415
11785
  subscriptionId: zod.coerce
11416
11786
  .string()
@@ -11448,9 +11818,10 @@ export const migrateSubscriptionBody = zod.object({
11448
11818
  /**
11449
11819
  * Restores a canceled subscription.
11450
11820
  Any subscription scheduled to start later will be deleted and this subscription will be continued indefinitely.
11821
+ * @deprecated
11451
11822
  * @summary Restore subscription
11452
11823
  */
11453
- export const restoreSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11824
+ export const restoreSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11454
11825
  export const restoreSubscriptionParams = zod.object({
11455
11826
  subscriptionId: zod.coerce
11456
11827
  .string()
@@ -11460,7 +11831,7 @@ export const restoreSubscriptionParams = zod.object({
11460
11831
  * Cancels the scheduled cancelation.
11461
11832
  * @summary Unschedule cancelation
11462
11833
  */
11463
- export const unscheduleCancelationPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11834
+ export const unscheduleCancelationPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11464
11835
  export const unscheduleCancelationParams = zod.object({
11465
11836
  subscriptionId: zod.coerce
11466
11837
  .string()
@@ -11478,6 +11849,8 @@ A given customer can only have one active (non-deleted) entitlement per featureK
11478
11849
  Once an entitlement is created you cannot modify it, only delete it.
11479
11850
  * @summary Create a customer entitlement
11480
11851
  */
11852
+ export const createCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11853
+ export const createCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
11481
11854
  export const createCustomerEntitlementV2Params = zod.object({
11482
11855
  customerIdOrKey: zod.union([
11483
11856
  zod.coerce
@@ -11492,20 +11865,30 @@ export const createCustomerEntitlementV2Params = zod.object({
11492
11865
  ]),
11493
11866
  });
11494
11867
  export const createCustomerEntitlementV2BodyFeatureKeyMax = 64;
11495
- export const createCustomerEntitlementV2BodyFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11496
- export const createCustomerEntitlementV2BodyFeatureIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11868
+ export const createCustomerEntitlementV2BodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
11869
+ export const createCustomerEntitlementV2BodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11497
11870
  export const createCustomerEntitlementV2BodyIsSoftLimitDefault = false;
11498
- export const createCustomerEntitlementV2BodyIsUnlimitedDefault = false;
11871
+ export const createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
11872
+ export const createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
11499
11873
  export const createCustomerEntitlementV2BodyIssueAfterResetMin = 0;
11500
11874
  export const createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = 1;
11501
11875
  export const createCustomerEntitlementV2BodyIssueAfterResetPriorityMax = 255;
11502
- export const createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
11876
+ export const createCustomerEntitlementV2BodyIssueAmountMin = 0;
11877
+ export const createCustomerEntitlementV2BodyIssuePriorityDefault = 1;
11878
+ export const createCustomerEntitlementV2BodyIssuePriorityMax = 255;
11879
+ export const createCustomerEntitlementV2BodyGrantsItemAmountMin = 0;
11880
+ export const createCustomerEntitlementV2BodyGrantsItemPriorityMax = 255;
11881
+ export const createCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = 0;
11882
+ export const createCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
11883
+ export const createCustomerEntitlementV2BodyGrantsItemExpirationCountMax = 1000;
11503
11884
  export const createCustomerEntitlementV2BodyFeatureKeyMaxOne = 64;
11504
- export const createCustomerEntitlementV2BodyFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11505
- export const createCustomerEntitlementV2BodyFeatureIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11885
+ export const createCustomerEntitlementV2BodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
11886
+ export const createCustomerEntitlementV2BodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11887
+ export const createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
11506
11888
  export const createCustomerEntitlementV2BodyFeatureKeyMaxTwo = 64;
11507
- export const createCustomerEntitlementV2BodyFeatureKeyRegExpTwo = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
11508
- export const createCustomerEntitlementV2BodyFeatureIdRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11889
+ export const createCustomerEntitlementV2BodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
11890
+ export const createCustomerEntitlementV2BodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11891
+ export const createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
11509
11892
  export const createCustomerEntitlementV2Body = zod
11510
11893
  .union([
11511
11894
  zod
@@ -11522,25 +11905,111 @@ export const createCustomerEntitlementV2Body = zod
11522
11905
  .regex(createCustomerEntitlementV2BodyFeatureKeyRegExp)
11523
11906
  .optional()
11524
11907
  .describe('The feature the subject is entitled to use.\nEither featureKey or featureId is required.'),
11908
+ grants: zod
11909
+ .array(zod
11910
+ .object({
11911
+ amount: zod.coerce
11912
+ .number()
11913
+ .min(createCustomerEntitlementV2BodyGrantsItemAmountMin)
11914
+ .describe('The amount to grant. Should be a positive number.'),
11915
+ annotations: zod
11916
+ .record(zod.string(), zod.any())
11917
+ .describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
11918
+ .optional()
11919
+ .describe('Grant annotations'),
11920
+ effectiveAt: zod.coerce
11921
+ .date()
11922
+ .describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
11923
+ expiration: zod
11924
+ .object({
11925
+ count: zod.coerce
11926
+ .number()
11927
+ .min(1)
11928
+ .max(createCustomerEntitlementV2BodyGrantsItemExpirationCountMax)
11929
+ .describe('The number of time units in the expiration period.'),
11930
+ duration: zod
11931
+ .enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
11932
+ .describe('The expiration duration enum')
11933
+ .describe('The unit of time for the expiration period.'),
11934
+ })
11935
+ .describe('The grant expiration definition')
11936
+ .optional()
11937
+ .describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
11938
+ maxRolloverAmount: zod.coerce
11939
+ .number()
11940
+ .optional()
11941
+ .describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
11942
+ metadata: zod
11943
+ .record(zod.string(), zod.coerce.string())
11944
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
11945
+ .optional()
11946
+ .describe('The grant metadata.'),
11947
+ minRolloverAmount: zod.coerce
11948
+ .number()
11949
+ .optional()
11950
+ .describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
11951
+ priority: zod.coerce
11952
+ .number()
11953
+ .min(1)
11954
+ .max(createCustomerEntitlementV2BodyGrantsItemPriorityMax)
11955
+ .optional()
11956
+ .describe('The priority of the grant. Grants with higher priority are applied first.\nPriority is a positive decimal numbers. With lower numbers indicating higher importance.\nFor example, a priority of 1 is more urgent than a priority of 2.\nWhen there are several grants available for the same subject, the system selects the grant with the highest priority.\nIn cases where grants share the same priority level, the grant closest to its expiration will be used first.\nIn the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.'),
11957
+ recurrence: zod
11958
+ .object({
11959
+ anchor: zod.coerce
11960
+ .date()
11961
+ .optional()
11962
+ .describe('A date-time anchor to base the recurring period on.'),
11963
+ interval: zod
11964
+ .union([
11965
+ zod.coerce
11966
+ .string()
11967
+ .regex(createCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo),
11968
+ zod
11969
+ .enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
11970
+ .describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
11971
+ ])
11972
+ .describe('Period duration for the recurrence')
11973
+ .describe('The unit of time for the interval.'),
11974
+ })
11975
+ .describe('Recurring period with an interval and an anchor.')
11976
+ .optional()
11977
+ .describe('The subject of the grant.'),
11978
+ })
11979
+ .describe('The grant creation input.'))
11980
+ .optional()
11981
+ .describe('Grants'),
11525
11982
  isSoftLimit: zod.coerce
11526
11983
  .boolean()
11527
11984
  .optional()
11528
11985
  .describe('If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.'),
11986
+ issue: zod
11987
+ .object({
11988
+ amount: zod.coerce
11989
+ .number()
11990
+ .min(createCustomerEntitlementV2BodyIssueAmountMin)
11991
+ .describe('The initial grant amount'),
11992
+ priority: zod.coerce
11993
+ .number()
11994
+ .min(1)
11995
+ .max(createCustomerEntitlementV2BodyIssuePriorityMax)
11996
+ .default(createCustomerEntitlementV2BodyIssuePriorityDefault)
11997
+ .describe('The priority of the issue after reset'),
11998
+ })
11999
+ .describe('Issue after reset')
12000
+ .optional()
12001
+ .describe('Issue after reset'),
11529
12002
  issueAfterReset: zod.coerce
11530
12003
  .number()
11531
12004
  .min(createCustomerEntitlementV2BodyIssueAfterResetMin)
11532
12005
  .optional()
11533
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
12006
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
11534
12007
  issueAfterResetPriority: zod.coerce
11535
12008
  .number()
11536
12009
  .min(1)
11537
12010
  .max(createCustomerEntitlementV2BodyIssueAfterResetPriorityMax)
11538
12011
  .default(createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault)
11539
12012
  .describe('Defines the grant priority for the default grant.'),
11540
- isUnlimited: zod.coerce
11541
- .boolean()
11542
- .optional()
11543
- .describe('Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.'),
11544
12013
  measureUsageFrom: zod
11545
12014
  .union([
11546
12015
  zod
@@ -11584,7 +12053,7 @@ export const createCustomerEntitlementV2Body = zod
11584
12053
  .describe('Recurring period with an interval and an anchor.')
11585
12054
  .describe('The usage period associated with the entitlement.'),
11586
12055
  })
11587
- .describe('Create inpurs for metered entitlement'),
12056
+ .describe('Create inputs for metered entitlement'),
11588
12057
  zod
11589
12058
  .object({
11590
12059
  config: zod.coerce
@@ -11680,6 +12149,8 @@ export const createCustomerEntitlementV2Body = zod
11680
12149
  * List all entitlements for a customer. For checking entitlement access, use the /value endpoint instead.
11681
12150
  * @summary List customer entitlements
11682
12151
  */
12152
+ export const listCustomerEntitlementsV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12153
+ export const listCustomerEntitlementsV2PathCustomerIdOrKeyMaxTwo = 256;
11683
12154
  export const listCustomerEntitlementsV2Params = zod.object({
11684
12155
  customerIdOrKey: zod.union([
11685
12156
  zod.coerce
@@ -11721,8 +12192,10 @@ export const listCustomerEntitlementsV2QueryParams = zod.object({
11721
12192
  If featureKey is used, the entitlement is resolved for the current timestamp.
11722
12193
  * @summary Get customer entitlement
11723
12194
  */
12195
+ export const getCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12196
+ export const getCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
11724
12197
  export const getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = 64;
11725
- export const getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12198
+ export const getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11726
12199
  export const getCustomerEntitlementV2Params = zod.object({
11727
12200
  customerIdOrKey: zod.union([
11728
12201
  zod.coerce
@@ -11746,8 +12219,10 @@ export const getCustomerEntitlementV2Params = zod.object({
11746
12219
  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.
11747
12220
  * @summary Delete customer entitlement
11748
12221
  */
12222
+ export const deleteCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12223
+ export const deleteCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
11749
12224
  export const deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = 64;
11750
- export const deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12225
+ export const deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11751
12226
  export const deleteCustomerEntitlementV2Params = zod.object({
11752
12227
  customerIdOrKey: zod.union([
11753
12228
  zod.coerce
@@ -11770,8 +12245,10 @@ export const deleteCustomerEntitlementV2Params = zod.object({
11770
12245
  * List all grants issued for an entitlement. The entitlement can be defined either by its id or featureKey.
11771
12246
  * @summary List customer entitlement grants
11772
12247
  */
12248
+ export const listCustomerEntitlementGrantsV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12249
+ export const listCustomerEntitlementGrantsV2PathCustomerIdOrKeyMaxTwo = 256;
11773
12250
  export const listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyMax = 64;
11774
- export const listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12251
+ export const listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11775
12252
  export const listCustomerEntitlementGrantsV2Params = zod.object({
11776
12253
  customerIdOrKey: zod.union([
11777
12254
  zod.coerce
@@ -11842,8 +12319,10 @@ Rollover settings define what happens to the remaining balance of a grant at a r
11842
12319
  Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
11843
12320
  * @summary Create customer entitlement grant
11844
12321
  */
12322
+ export const createCustomerEntitlementGrantV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12323
+ export const createCustomerEntitlementGrantV2PathCustomerIdOrKeyMaxTwo = 256;
11845
12324
  export const createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyMax = 64;
11846
- export const createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12325
+ export const createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11847
12326
  export const createCustomerEntitlementGrantV2Params = zod.object({
11848
12327
  customerIdOrKey: zod.union([
11849
12328
  zod.coerce
@@ -11864,15 +12343,20 @@ export const createCustomerEntitlementGrantV2Params = zod.object({
11864
12343
  });
11865
12344
  export const createCustomerEntitlementGrantV2BodyAmountMin = 0;
11866
12345
  export const createCustomerEntitlementGrantV2BodyPriorityMax = 255;
11867
- export const createCustomerEntitlementGrantV2BodyExpirationCountMax = 1000;
11868
- export const createCustomerEntitlementGrantV2BodyMaxRolloverAmountDefault = 0;
11869
12346
  export const createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = 0;
12347
+ export const createCustomerEntitlementGrantV2BodyRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
12348
+ export const createCustomerEntitlementGrantV2BodyExpirationCountMax = 1000;
11870
12349
  export const createCustomerEntitlementGrantV2Body = zod
11871
12350
  .object({
11872
12351
  amount: zod.coerce
11873
12352
  .number()
11874
12353
  .min(createCustomerEntitlementGrantV2BodyAmountMin)
11875
12354
  .describe('The amount to grant. Should be a positive number.'),
12355
+ annotations: zod
12356
+ .record(zod.string(), zod.any())
12357
+ .describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
12358
+ .optional()
12359
+ .describe('Grant annotations'),
11876
12360
  effectiveAt: zod.coerce
11877
12361
  .date()
11878
12362
  .describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
@@ -11889,11 +12373,12 @@ export const createCustomerEntitlementGrantV2Body = zod
11889
12373
  .describe('The unit of time for the expiration period.'),
11890
12374
  })
11891
12375
  .describe('The grant expiration definition')
11892
- .describe('The grant expiration definition'),
12376
+ .optional()
12377
+ .describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
11893
12378
  maxRolloverAmount: zod.coerce
11894
12379
  .number()
11895
12380
  .optional()
11896
- .describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
12381
+ .describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
11897
12382
  metadata: zod
11898
12383
  .record(zod.string(), zod.coerce.string())
11899
12384
  .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
@@ -11940,8 +12425,10 @@ BurndownHistory returns a continous history of segments, where the segments are
11940
12425
  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.
11941
12426
  * @summary Get customer entitlement history
11942
12427
  */
12428
+ export const getCustomerEntitlementHistoryV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12429
+ export const getCustomerEntitlementHistoryV2PathCustomerIdOrKeyMaxTwo = 256;
11943
12430
  export const getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyMax = 64;
11944
- export const getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12431
+ export const getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11945
12432
  export const getCustomerEntitlementHistoryV2Params = zod.object({
11946
12433
  customerIdOrKey: zod.union([
11947
12434
  zod.coerce
@@ -11984,6 +12471,10 @@ export const getCustomerEntitlementHistoryV2QueryParams = zod.object({
11984
12471
  This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
11985
12472
  * @summary Override customer entitlement
11986
12473
  */
12474
+ export const overrideCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12475
+ export const overrideCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
12476
+ export const overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12477
+ export const overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMaxTwo = 256;
11987
12478
  export const overrideCustomerEntitlementV2Params = zod.object({
11988
12479
  customerIdOrKey: zod.union([
11989
12480
  zod.coerce
@@ -12009,20 +12500,30 @@ export const overrideCustomerEntitlementV2Params = zod.object({
12009
12500
  ]),
12010
12501
  });
12011
12502
  export const overrideCustomerEntitlementV2BodyFeatureKeyMax = 64;
12012
- export const overrideCustomerEntitlementV2BodyFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
12013
- export const overrideCustomerEntitlementV2BodyFeatureIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12503
+ export const overrideCustomerEntitlementV2BodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
12504
+ export const overrideCustomerEntitlementV2BodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12014
12505
  export const overrideCustomerEntitlementV2BodyIsSoftLimitDefault = false;
12015
- export const overrideCustomerEntitlementV2BodyIsUnlimitedDefault = false;
12506
+ export const overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
12507
+ export const overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
12016
12508
  export const overrideCustomerEntitlementV2BodyIssueAfterResetMin = 0;
12017
12509
  export const overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = 1;
12018
12510
  export const overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax = 255;
12019
- export const overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
12511
+ export const overrideCustomerEntitlementV2BodyIssueAmountMin = 0;
12512
+ export const overrideCustomerEntitlementV2BodyIssuePriorityDefault = 1;
12513
+ export const overrideCustomerEntitlementV2BodyIssuePriorityMax = 255;
12514
+ export const overrideCustomerEntitlementV2BodyGrantsItemAmountMin = 0;
12515
+ export const overrideCustomerEntitlementV2BodyGrantsItemPriorityMax = 255;
12516
+ export const overrideCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = 0;
12517
+ export const overrideCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
12518
+ export const overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax = 1000;
12020
12519
  export const overrideCustomerEntitlementV2BodyFeatureKeyMaxOne = 64;
12021
- export const overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
12022
- export const overrideCustomerEntitlementV2BodyFeatureIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12520
+ export const overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
12521
+ export const overrideCustomerEntitlementV2BodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12522
+ export const overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
12023
12523
  export const overrideCustomerEntitlementV2BodyFeatureKeyMaxTwo = 64;
12024
- export const overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
12025
- export const overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12524
+ export const overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
12525
+ export const overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12526
+ export const overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
12026
12527
  export const overrideCustomerEntitlementV2Body = zod
12027
12528
  .union([
12028
12529
  zod
@@ -12039,25 +12540,111 @@ export const overrideCustomerEntitlementV2Body = zod
12039
12540
  .regex(overrideCustomerEntitlementV2BodyFeatureKeyRegExp)
12040
12541
  .optional()
12041
12542
  .describe('The feature the subject is entitled to use.\nEither featureKey or featureId is required.'),
12543
+ grants: zod
12544
+ .array(zod
12545
+ .object({
12546
+ amount: zod.coerce
12547
+ .number()
12548
+ .min(overrideCustomerEntitlementV2BodyGrantsItemAmountMin)
12549
+ .describe('The amount to grant. Should be a positive number.'),
12550
+ annotations: zod
12551
+ .record(zod.string(), zod.any())
12552
+ .describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
12553
+ .optional()
12554
+ .describe('Grant annotations'),
12555
+ effectiveAt: zod.coerce
12556
+ .date()
12557
+ .describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
12558
+ expiration: zod
12559
+ .object({
12560
+ count: zod.coerce
12561
+ .number()
12562
+ .min(1)
12563
+ .max(overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax)
12564
+ .describe('The number of time units in the expiration period.'),
12565
+ duration: zod
12566
+ .enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
12567
+ .describe('The expiration duration enum')
12568
+ .describe('The unit of time for the expiration period.'),
12569
+ })
12570
+ .describe('The grant expiration definition')
12571
+ .optional()
12572
+ .describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
12573
+ maxRolloverAmount: zod.coerce
12574
+ .number()
12575
+ .optional()
12576
+ .describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
12577
+ metadata: zod
12578
+ .record(zod.string(), zod.coerce.string())
12579
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
12580
+ .optional()
12581
+ .describe('The grant metadata.'),
12582
+ minRolloverAmount: zod.coerce
12583
+ .number()
12584
+ .optional()
12585
+ .describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
12586
+ priority: zod.coerce
12587
+ .number()
12588
+ .min(1)
12589
+ .max(overrideCustomerEntitlementV2BodyGrantsItemPriorityMax)
12590
+ .optional()
12591
+ .describe('The priority of the grant. Grants with higher priority are applied first.\nPriority is a positive decimal numbers. With lower numbers indicating higher importance.\nFor example, a priority of 1 is more urgent than a priority of 2.\nWhen there are several grants available for the same subject, the system selects the grant with the highest priority.\nIn cases where grants share the same priority level, the grant closest to its expiration will be used first.\nIn the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.'),
12592
+ recurrence: zod
12593
+ .object({
12594
+ anchor: zod.coerce
12595
+ .date()
12596
+ .optional()
12597
+ .describe('A date-time anchor to base the recurring period on.'),
12598
+ interval: zod
12599
+ .union([
12600
+ zod.coerce
12601
+ .string()
12602
+ .regex(overrideCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo),
12603
+ zod
12604
+ .enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
12605
+ .describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
12606
+ ])
12607
+ .describe('Period duration for the recurrence')
12608
+ .describe('The unit of time for the interval.'),
12609
+ })
12610
+ .describe('Recurring period with an interval and an anchor.')
12611
+ .optional()
12612
+ .describe('The subject of the grant.'),
12613
+ })
12614
+ .describe('The grant creation input.'))
12615
+ .optional()
12616
+ .describe('Grants'),
12042
12617
  isSoftLimit: zod.coerce
12043
12618
  .boolean()
12044
12619
  .optional()
12045
12620
  .describe('If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.'),
12621
+ issue: zod
12622
+ .object({
12623
+ amount: zod.coerce
12624
+ .number()
12625
+ .min(overrideCustomerEntitlementV2BodyIssueAmountMin)
12626
+ .describe('The initial grant amount'),
12627
+ priority: zod.coerce
12628
+ .number()
12629
+ .min(1)
12630
+ .max(overrideCustomerEntitlementV2BodyIssuePriorityMax)
12631
+ .default(overrideCustomerEntitlementV2BodyIssuePriorityDefault)
12632
+ .describe('The priority of the issue after reset'),
12633
+ })
12634
+ .describe('Issue after reset')
12635
+ .optional()
12636
+ .describe('Issue after reset'),
12046
12637
  issueAfterReset: zod.coerce
12047
12638
  .number()
12048
12639
  .min(overrideCustomerEntitlementV2BodyIssueAfterResetMin)
12049
12640
  .optional()
12050
- .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the \"amount\", \"minRolloverAmount\", and \"maxRolloverAmount\" fields all be the same.'),
12641
+ .describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
12051
12642
  issueAfterResetPriority: zod.coerce
12052
12643
  .number()
12053
12644
  .min(1)
12054
12645
  .max(overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax)
12055
12646
  .default(overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault)
12056
12647
  .describe('Defines the grant priority for the default grant.'),
12057
- isUnlimited: zod.coerce
12058
- .boolean()
12059
- .optional()
12060
- .describe('Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.'),
12061
12648
  measureUsageFrom: zod
12062
12649
  .union([
12063
12650
  zod
@@ -12101,7 +12688,7 @@ export const overrideCustomerEntitlementV2Body = zod
12101
12688
  .describe('Recurring period with an interval and an anchor.')
12102
12689
  .describe('The usage period associated with the entitlement.'),
12103
12690
  })
12104
- .describe('Create inpurs for metered entitlement'),
12691
+ .describe('Create inputs for metered entitlement'),
12105
12692
  zod
12106
12693
  .object({
12107
12694
  config: zod.coerce
@@ -12199,8 +12786,10 @@ export const overrideCustomerEntitlementV2Body = zod
12199
12786
  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.
12200
12787
  * @summary Reset customer entitlement
12201
12788
  */
12789
+ export const resetCustomerEntitlementUsageV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12790
+ export const resetCustomerEntitlementUsageV2PathCustomerIdOrKeyMaxTwo = 256;
12202
12791
  export const resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyMax = 64;
12203
- export const resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12792
+ export const resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12204
12793
  export const resetCustomerEntitlementUsageV2Params = zod.object({
12205
12794
  customerIdOrKey: zod.union([
12206
12795
  zod.coerce
@@ -12239,8 +12828,10 @@ export const resetCustomerEntitlementUsageV2Body = zod
12239
12828
  * 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.
12240
12829
  * @summary Get customer entitlement value
12241
12830
  */
12831
+ export const getCustomerEntitlementValueV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12832
+ export const getCustomerEntitlementValueV2PathCustomerIdOrKeyMaxTwo = 256;
12242
12833
  export const getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyMax = 64;
12243
- export const getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12834
+ export const getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12244
12835
  export const getCustomerEntitlementValueV2Params = zod.object({
12245
12836
  customerIdOrKey: zod.union([
12246
12837
  zod.coerce
@@ -12330,7 +12921,7 @@ export const listEntitlementsV2QueryParams = zod.object({
12330
12921
  * Get entitlement by id.
12331
12922
  * @summary Get entitlement by id
12332
12923
  */
12333
- export const getEntitlementByIdV2PathEntitlementIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12924
+ export const getEntitlementByIdV2PathEntitlementIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12334
12925
  export const getEntitlementByIdV2Params = zod.object({
12335
12926
  entitlementId: zod.coerce
12336
12927
  .string()
@@ -12367,6 +12958,8 @@ To fetch the grants of a specific entitlement please use the /api/v2/customers/{
12367
12958
  If page is provided that takes precedence and the paginated response is returned.
12368
12959
  * @summary List grants
12369
12960
  */
12961
+ export const listGrantsV2QueryCustomerItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12962
+ export const listGrantsV2QueryCustomerItemMaxTwo = 256;
12370
12963
  export const listGrantsV2QueryIncludeDeletedDefault = false;
12371
12964
  export const listGrantsV2QueryPageDefault = 1;
12372
12965
  export const listGrantsV2QueryPageSizeDefault = 100;