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

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 (100) hide show
  1. package/biome.json +67 -0
  2. package/dist/cjs/src/client/addons.d.cts +8 -8
  3. package/dist/cjs/src/client/addons.js.map +1 -1
  4. package/dist/cjs/src/client/apps.d.cts +10 -10
  5. package/dist/cjs/src/client/apps.js.map +1 -1
  6. package/dist/cjs/src/client/billing.d.cts +19 -19
  7. package/dist/cjs/src/client/billing.js.map +1 -1
  8. package/dist/cjs/src/client/common.d.cts +3 -3
  9. package/dist/cjs/src/client/common.js.map +1 -1
  10. package/dist/cjs/src/client/customers.d.cts +25 -24
  11. package/dist/cjs/src/client/customers.js.map +1 -1
  12. package/dist/cjs/src/client/debug.d.cts +2 -2
  13. package/dist/cjs/src/client/debug.js.map +1 -1
  14. package/dist/cjs/src/client/entitlements.d.cts +15 -13
  15. package/dist/cjs/src/client/entitlements.js.map +1 -1
  16. package/dist/cjs/src/client/events.d.cts +4 -4
  17. package/dist/cjs/src/client/events.js.map +1 -1
  18. package/dist/cjs/src/client/features.d.cts +3 -3
  19. package/dist/cjs/src/client/features.js.map +1 -1
  20. package/dist/cjs/src/client/index.cjs +1 -1
  21. package/dist/cjs/src/client/index.d.cts +2 -2
  22. package/dist/cjs/src/client/index.js.map +1 -1
  23. package/dist/cjs/src/client/info.d.cts +3 -3
  24. package/dist/cjs/src/client/info.js.map +1 -1
  25. package/dist/cjs/src/client/meters.d.cts +5 -5
  26. package/dist/cjs/src/client/meters.js.map +1 -1
  27. package/dist/cjs/src/client/notifications.d.cts +11 -11
  28. package/dist/cjs/src/client/notifications.js.map +1 -1
  29. package/dist/cjs/src/client/plans.d.cts +12 -12
  30. package/dist/cjs/src/client/plans.js.map +1 -1
  31. package/dist/cjs/src/client/portal.d.cts +4 -4
  32. package/dist/cjs/src/client/portal.js.map +1 -1
  33. package/dist/cjs/src/client/schemas.d.cts +299 -13
  34. package/dist/cjs/src/client/subjects.d.cts +4 -4
  35. package/dist/cjs/src/client/subjects.js.map +1 -1
  36. package/dist/cjs/src/client/subscription-addons.d.cts +5 -5
  37. package/dist/cjs/src/client/subscription-addons.js.map +1 -1
  38. package/dist/cjs/src/client/subscriptions.d.cts +8 -8
  39. package/dist/cjs/src/client/subscriptions.js.map +1 -1
  40. package/dist/cjs/src/client/utils.cjs +1 -3
  41. package/dist/cjs/src/client/utils.d.cts +1 -1
  42. package/dist/cjs/src/client/utils.js.map +1 -1
  43. package/dist/cjs/src/portal/index.d.cts +1 -1
  44. package/dist/cjs/src/portal/index.js.map +1 -1
  45. package/dist/cjs/src/zod/index.cjs +876 -615
  46. package/dist/cjs/src/zod/index.d.cts +906 -599
  47. package/dist/cjs/src/zod/index.js.map +1 -1
  48. package/dist/cjs/tsconfig.041f8f6a.tsbuildinfo +1 -0
  49. package/dist/cjs/tsconfig.c55e75d7.tsbuildinfo +1 -0
  50. package/dist/src/client/addons.d.ts +8 -8
  51. package/dist/src/client/addons.js.map +1 -1
  52. package/dist/src/client/apps.d.ts +10 -10
  53. package/dist/src/client/apps.js.map +1 -1
  54. package/dist/src/client/billing.d.ts +19 -19
  55. package/dist/src/client/billing.js.map +1 -1
  56. package/dist/src/client/common.d.ts +3 -3
  57. package/dist/src/client/common.js.map +1 -1
  58. package/dist/src/client/customers.d.ts +25 -24
  59. package/dist/src/client/customers.js.map +1 -1
  60. package/dist/src/client/debug.d.ts +2 -2
  61. package/dist/src/client/debug.js.map +1 -1
  62. package/dist/src/client/entitlements.d.ts +15 -13
  63. package/dist/src/client/entitlements.js.map +1 -1
  64. package/dist/src/client/events.d.ts +4 -4
  65. package/dist/src/client/events.js.map +1 -1
  66. package/dist/src/client/features.d.ts +3 -3
  67. package/dist/src/client/features.js.map +1 -1
  68. package/dist/src/client/index.d.ts +2 -2
  69. package/dist/src/client/index.js +1 -1
  70. package/dist/src/client/index.js.map +1 -1
  71. package/dist/src/client/info.d.ts +3 -3
  72. package/dist/src/client/info.js.map +1 -1
  73. package/dist/src/client/meters.d.ts +5 -5
  74. package/dist/src/client/meters.js.map +1 -1
  75. package/dist/src/client/notifications.d.ts +11 -11
  76. package/dist/src/client/notifications.js.map +1 -1
  77. package/dist/src/client/plans.d.ts +12 -12
  78. package/dist/src/client/plans.js.map +1 -1
  79. package/dist/src/client/portal.d.ts +4 -4
  80. package/dist/src/client/portal.js.map +1 -1
  81. package/dist/src/client/schemas.d.ts +299 -13
  82. package/dist/src/client/subjects.d.ts +4 -4
  83. package/dist/src/client/subjects.js.map +1 -1
  84. package/dist/src/client/subscription-addons.d.ts +5 -5
  85. package/dist/src/client/subscription-addons.js.map +1 -1
  86. package/dist/src/client/subscriptions.d.ts +8 -8
  87. package/dist/src/client/subscriptions.js.map +1 -1
  88. package/dist/src/client/utils.d.ts +1 -1
  89. package/dist/src/client/utils.js +1 -3
  90. package/dist/src/client/utils.js.map +1 -1
  91. package/dist/src/portal/index.d.ts +1 -1
  92. package/dist/src/portal/index.js.map +1 -1
  93. package/dist/src/zod/index.d.ts +906 -599
  94. package/dist/src/zod/index.js +795 -536
  95. package/dist/src/zod/index.js.map +1 -1
  96. package/dist/tsconfig.tsbuildinfo +1 -1
  97. package/orval.config.ts +2 -6
  98. package/package.json +21 -35
  99. package/dist/cjs/tsconfig.07c9b9a6.tsbuildinfo +0 -1
  100. 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,7 +3915,7 @@ 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;
3915
3920
  export const createBillingProfileBodyWorkflowCollectionAlignmentDefault = {
3916
3921
  type: 'subscription',
@@ -3920,13 +3925,13 @@ export const createBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = true;
3920
3925
  export const createBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = 'P0D';
3921
3926
  export const createBillingProfileBodyWorkflowInvoicingDueAfterDefault = 'P30D';
3922
3927
  export const createBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = false;
3923
- export const createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
3928
+ export const createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
3924
3929
  export const createBillingProfileBodyWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
3925
3930
  export const createBillingProfileBodyWorkflowTaxEnabledDefault = true;
3926
3931
  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}$');
3932
+ export const createBillingProfileBodyAppsTaxRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3933
+ export const createBillingProfileBodyAppsInvoicingRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3934
+ export const createBillingProfileBodyAppsPaymentRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
3930
3935
  export const createBillingProfileBody = zod
3931
3936
  .object({
3932
3937
  apps: zod
@@ -4144,7 +4149,7 @@ Only such billing profiles can be deleted that are:
4144
4149
  - only have finalized invoices
4145
4150
  * @summary Delete a billing profile
4146
4151
  */
4147
- export const deleteBillingProfilePathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4152
+ export const deleteBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4148
4153
  export const deleteBillingProfileParams = zod.object({
4149
4154
  id: zod.coerce.string().regex(deleteBillingProfilePathIdRegExp),
4150
4155
  });
@@ -4156,7 +4161,7 @@ in the response. For example by adding the expand=apps option the apps used by t
4156
4161
  will be included in the response.
4157
4162
  * @summary Get a billing profile
4158
4163
  */
4159
- export const getBillingProfilePathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4164
+ export const getBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4160
4165
  export const getBillingProfileParams = zod.object({
4161
4166
  id: zod.coerce.string().regex(getBillingProfilePathIdRegExp),
4162
4167
  });
@@ -4174,7 +4179,7 @@ The apps field cannot be updated directly, if an app change is desired a new
4174
4179
  profile should be created.
4175
4180
  * @summary Update a billing profile
4176
4181
  */
4177
- export const updateBillingProfilePathIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
4182
+ export const updateBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4178
4183
  export const updateBillingProfileParams = zod.object({
4179
4184
  id: zod.coerce.string().regex(updateBillingProfilePathIdRegExp),
4180
4185
  });
@@ -4184,7 +4189,7 @@ export const updateBillingProfileBodySupplierKeyMax = 256;
4184
4189
  export const updateBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
4185
4190
  export const updateBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
4186
4191
  export const updateBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
4187
- export const updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = new RegExp('^[A-Z]{2}$');
4192
+ export const updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
4188
4193
  export const updateBillingProfileBodySupplierAddressesMax = 1;
4189
4194
  export const updateBillingProfileBodyWorkflowCollectionAlignmentDefault = {
4190
4195
  type: 'subscription',
@@ -4194,7 +4199,7 @@ export const updateBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = true;
4194
4199
  export const updateBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = 'P0D';
4195
4200
  export const updateBillingProfileBodyWorkflowInvoicingDueAfterDefault = 'P30D';
4196
4201
  export const updateBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = false;
4197
- export const updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
4202
+ export const updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
4198
4203
  export const updateBillingProfileBodyWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
4199
4204
  export const updateBillingProfileBodyWorkflowTaxEnabledDefault = true;
4200
4205
  export const updateBillingProfileBodyWorkflowTaxEnforcedDefault = false;
@@ -4399,10 +4404,10 @@ export const createCustomerBodyKeyMax = 256;
4399
4404
  export const createCustomerBodyUsageAttributionSubjectKeysMax = 1;
4400
4405
  export const createCustomerBodyCurrencyMinOne = 3;
4401
4406
  export const createCustomerBodyCurrencyMaxOne = 3;
4402
- export const createCustomerBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
4407
+ export const createCustomerBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
4403
4408
  export const createCustomerBodyBillingAddressCountryMinOne = 2;
4404
4409
  export const createCustomerBodyBillingAddressCountryMaxOne = 2;
4405
- export const createCustomerBodyBillingAddressCountryRegExpOne = new RegExp('^[A-Z]{2}$');
4410
+ export const createCustomerBodyBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
4406
4411
  export const createCustomerBody = zod
4407
4412
  .object({
4408
4413
  billingAddress: zod
@@ -4536,6 +4541,8 @@ export const listCustomersQueryParams = zod.object({
4536
4541
  * Get a customer by ID or key.
4537
4542
  * @summary Get customer
4538
4543
  */
4544
+ export const getCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4545
+ export const getCustomerPathCustomerIdOrKeyMaxTwo = 256;
4539
4546
  export const getCustomerParams = zod.object({
4540
4547
  customerIdOrKey: zod.union([
4541
4548
  zod.coerce
@@ -4561,6 +4568,8 @@ export const getCustomerQueryParams = zod.object({
4561
4568
  * Update a customer by ID.
4562
4569
  * @summary Update customer
4563
4570
  */
4571
+ export const updateCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4572
+ export const updateCustomerPathCustomerIdOrKeyMaxTwo = 256;
4564
4573
  export const updateCustomerParams = zod.object({
4565
4574
  customerIdOrKey: zod.union([
4566
4575
  zod.coerce
@@ -4580,10 +4589,10 @@ export const updateCustomerBodyKeyMax = 256;
4580
4589
  export const updateCustomerBodyUsageAttributionSubjectKeysMax = 1;
4581
4590
  export const updateCustomerBodyCurrencyMinOne = 3;
4582
4591
  export const updateCustomerBodyCurrencyMaxOne = 3;
4583
- export const updateCustomerBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
4592
+ export const updateCustomerBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
4584
4593
  export const updateCustomerBodyBillingAddressCountryMinOne = 2;
4585
4594
  export const updateCustomerBodyBillingAddressCountryMaxOne = 2;
4586
- export const updateCustomerBodyBillingAddressCountryRegExpOne = new RegExp('^[A-Z]{2}$');
4595
+ export const updateCustomerBodyBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
4587
4596
  export const updateCustomerBody = zod
4588
4597
  .object({
4589
4598
  billingAddress: zod
@@ -4661,6 +4670,8 @@ export const updateCustomerBody = zod
4661
4670
  * Delete a customer by ID.
4662
4671
  * @summary Delete customer
4663
4672
  */
4673
+ export const deleteCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4674
+ export const deleteCustomerPathCustomerIdOrKeyMaxTwo = 256;
4664
4675
  export const deleteCustomerParams = zod.object({
4665
4676
  customerIdOrKey: zod.union([
4666
4677
  zod.coerce
@@ -4678,6 +4689,8 @@ export const deleteCustomerParams = zod.object({
4678
4689
  * Get the overall access of a customer.
4679
4690
  * @summary Get customer access
4680
4691
  */
4692
+ export const getCustomerAccessPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4693
+ export const getCustomerAccessPathCustomerIdOrKeyMaxTwo = 256;
4681
4694
  export const getCustomerAccessParams = zod.object({
4682
4695
  customerIdOrKey: zod.union([
4683
4696
  zod.coerce
@@ -4695,6 +4708,8 @@ export const getCustomerAccessParams = zod.object({
4695
4708
  * List customers app data.
4696
4709
  * @summary List customer app data
4697
4710
  */
4711
+ export const listCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4712
+ export const listCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
4698
4713
  export const listCustomerAppDataParams = zod.object({
4699
4714
  customerIdOrKey: zod.union([
4700
4715
  zod.coerce
@@ -4732,6 +4747,8 @@ export const listCustomerAppDataQueryParams = zod.object({
4732
4747
  * Upsert customer app data.
4733
4748
  * @summary Upsert customer app data
4734
4749
  */
4750
+ export const upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4751
+ export const upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
4735
4752
  export const upsertCustomerAppDataParams = zod.object({
4736
4753
  customerIdOrKey: zod.union([
4737
4754
  zod.coerce
@@ -4745,19 +4762,19 @@ export const upsertCustomerAppDataParams = zod.object({
4745
4762
  .describe('ExternalKey is a looser version of key.'),
4746
4763
  ]),
4747
4764
  });
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}$');
4765
+ export const upsertCustomerAppDataBodyIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4766
+ export const upsertCustomerAppDataBodyAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4750
4767
  export const upsertCustomerAppDataBodyAppNameMax = 256;
4751
4768
  export const upsertCustomerAppDataBodyAppDescriptionMax = 1024;
4752
4769
  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}$');
4770
+ export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
4771
+ export const upsertCustomerAppDataBodyIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4772
+ export const upsertCustomerAppDataBodyAppIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4756
4773
  export const upsertCustomerAppDataBodyAppNameMaxOne = 256;
4757
4774
  export const upsertCustomerAppDataBodyAppDescriptionMaxOne = 1024;
4758
4775
  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}$');
4776
+ export const upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
4777
+ export const upsertCustomerAppDataBodyIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4761
4778
  export const upsertCustomerAppDataBodyItem = zod
4762
4779
  .union([
4763
4780
  zod
@@ -4995,7 +5012,9 @@ export const upsertCustomerAppDataBody = zod.array(upsertCustomerAppDataBodyItem
4995
5012
  * Delete customer app data.
4996
5013
  * @summary Delete customer app data
4997
5014
  */
4998
- export const deleteCustomerAppDataPathAppIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5015
+ export const deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5016
+ export const deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
5017
+ export const deleteCustomerAppDataPathAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
4999
5018
  export const deleteCustomerAppDataParams = zod.object({
5000
5019
  appId: zod.coerce.string().regex(deleteCustomerAppDataPathAppIdRegExp),
5001
5020
  customerIdOrKey: zod.union([
@@ -5014,8 +5033,10 @@ export const deleteCustomerAppDataParams = zod.object({
5014
5033
  * 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
5034
  * @summary Get customer entitlement value
5016
5035
  */
5036
+ export const getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5037
+ export const getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo = 256;
5017
5038
  export const getCustomerEntitlementValuePathFeatureKeyMax = 64;
5018
- export const getCustomerEntitlementValuePathFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5039
+ export const getCustomerEntitlementValuePathFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5019
5040
  export const getCustomerEntitlementValueParams = zod.object({
5020
5041
  customerIdOrKey: zod.union([
5021
5042
  zod.coerce
@@ -5042,6 +5063,8 @@ export const getCustomerEntitlementValueQueryParams = zod.object({
5042
5063
  Only returns data if the customer billing profile is linked to a stripe app.
5043
5064
  * @summary Get customer stripe app data
5044
5065
  */
5066
+ export const getCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5067
+ export const getCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = 256;
5045
5068
  export const getCustomerStripeAppDataParams = zod.object({
5046
5069
  customerIdOrKey: zod.union([
5047
5070
  zod.coerce
@@ -5060,6 +5083,8 @@ export const getCustomerStripeAppDataParams = zod.object({
5060
5083
  Only updates data if the customer billing profile is linked to a stripe app.
5061
5084
  * @summary Upsert customer stripe app data
5062
5085
  */
5086
+ export const upsertCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5087
+ export const upsertCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = 256;
5063
5088
  export const upsertCustomerStripeAppDataParams = zod.object({
5064
5089
  customerIdOrKey: zod.union([
5065
5090
  zod.coerce
@@ -5090,6 +5115,8 @@ Useful to redirect the customer to the Stripe customer portal to manage their pa
5090
5115
  change their billing address and access their invoice history.
5091
5116
  * @summary Create Stripe customer portal session
5092
5117
  */
5118
+ export const createCustomerStripePortalSessionPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5119
+ export const createCustomerStripePortalSessionPathCustomerIdOrKeyMaxTwo = 256;
5093
5120
  export const createCustomerStripePortalSessionParams = zod.object({
5094
5121
  customerIdOrKey: zod.union([
5095
5122
  zod.coerce
@@ -5123,6 +5150,8 @@ export const createCustomerStripePortalSessionBody = zod
5123
5150
  * Lists all subscriptions for a customer.
5124
5151
  * @summary List customer subscriptions
5125
5152
  */
5153
+ export const listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5154
+ export const listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo = 256;
5126
5155
  export const listCustomerSubscriptionsParams = zod.object({
5127
5156
  customerIdOrKey: zod.union([
5128
5157
  zod.coerce
@@ -5217,7 +5246,7 @@ export const listEntitlementsQueryParams = zod.object({
5217
5246
  * Get entitlement by id.
5218
5247
  * @summary Get entitlement by id
5219
5248
  */
5220
- export const getEntitlementByIdPathEntitlementIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5249
+ export const getEntitlementByIdPathEntitlementIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5221
5250
  export const getEntitlementByIdParams = zod.object({
5222
5251
  entitlementId: zod.coerce
5223
5252
  .string()
@@ -5230,7 +5259,7 @@ If the from query param is not provided it defaults to last 72 hours.
5230
5259
  * @summary List ingested events
5231
5260
  */
5232
5261
  export const listEventsQueryClientIdMax = 36;
5233
- export const listEventsQueryCustomerIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
5262
+ export const listEventsQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5234
5263
  export const listEventsQueryLimitDefault = 100;
5235
5264
  export const listEventsQueryLimitMax = 100;
5236
5265
  export const listEventsQueryParams = zod.object({
@@ -5295,7 +5324,7 @@ export const ingestEventsBody = zod
5295
5324
  datacontenttype: zod
5296
5325
  .enum(['application/json'])
5297
5326
  .nullish()
5298
- .describe('Content type of the CloudEvents data value. Only the value \"application/json\" is allowed over HTTP.'),
5327
+ .describe('Content type of the CloudEvents data value. Only the value "application/json" is allowed over HTTP.'),
5299
5328
  dataschema: zod.coerce
5300
5329
  .string()
5301
5330
  .url()
@@ -5334,7 +5363,7 @@ export const ingestEventsBody = zod
5334
5363
  datacontenttype: zod
5335
5364
  .enum(['application/json'])
5336
5365
  .nullish()
5337
- .describe('Content type of the CloudEvents data value. Only the value \"application/json\" is allowed over HTTP.'),
5366
+ .describe('Content type of the CloudEvents data value. Only the value "application/json" is allowed over HTTP.'),
5338
5367
  dataschema: zod.coerce
5339
5368
  .string()
5340
5369
  .url()
@@ -5423,9 +5452,9 @@ Features cannot be updated later, only archived.
5423
5452
  * @summary Create feature
5424
5453
  */
5425
5454
  export const createFeatureBodyKeyMax = 64;
5426
- export const createFeatureBodyKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5455
+ export const createFeatureBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5427
5456
  export const createFeatureBodyMeterSlugMax = 64;
5428
- export const createFeatureBodyMeterSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5457
+ export const createFeatureBodyMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5429
5458
  export const createFeatureBody = zod
5430
5459
  .object({
5431
5460
  key: zod.coerce
@@ -5654,7 +5683,7 @@ export const marketplaceOAuth2InstallAuthorizeQueryParams = zod.object({
5654
5683
  state: zod.coerce
5655
5684
  .string()
5656
5685
  .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.'),
5686
+ .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
5687
  });
5659
5688
  /**
5660
5689
  * List meters.
@@ -5693,7 +5722,7 @@ export const listMetersQueryParams = zod.object({
5693
5722
  export const createMeterBodyDescriptionMax = 1024;
5694
5723
  export const createMeterBodyNameMax = 256;
5695
5724
  export const createMeterBodySlugMax = 64;
5696
- export const createMeterBodySlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
5725
+ export const createMeterBodySlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
5697
5726
  export const createMeterBody = zod
5698
5727
  .object({
5699
5728
  aggregation: zod
@@ -5746,7 +5775,7 @@ export const createMeterBody = zod
5746
5775
  * @summary Get meter
5747
5776
  */
5748
5777
  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}$');
5778
+ export const getMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5750
5779
  export const getMeterParams = zod.object({
5751
5780
  meterIdOrSlug: zod.coerce
5752
5781
  .string()
@@ -5759,7 +5788,7 @@ export const getMeterParams = zod.object({
5759
5788
  * @summary Update meter
5760
5789
  */
5761
5790
  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}$');
5791
+ export const updateMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5763
5792
  export const updateMeterParams = zod.object({
5764
5793
  meterIdOrSlug: zod.coerce
5765
5794
  .string()
@@ -5798,7 +5827,7 @@ export const updateMeterBody = zod
5798
5827
  * @summary Delete meter
5799
5828
  */
5800
5829
  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}$');
5830
+ export const deleteMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5802
5831
  export const deleteMeterParams = zod.object({
5803
5832
  meterIdOrSlug: zod.coerce
5804
5833
  .string()
@@ -5811,7 +5840,7 @@ export const deleteMeterParams = zod.object({
5811
5840
  * @summary Query meter
5812
5841
  */
5813
5842
  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}$');
5843
+ export const queryMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5815
5844
  export const queryMeterParams = zod.object({
5816
5845
  meterIdOrSlug: zod.coerce
5817
5846
  .string()
@@ -5867,7 +5896,7 @@ export const queryMeterQueryParams = zod.object({
5867
5896
  * @summary Query meter
5868
5897
  */
5869
5898
  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}$');
5899
+ export const queryMeterPostPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5871
5900
  export const queryMeterPostParams = zod.object({
5872
5901
  meterIdOrSlug: zod.coerce
5873
5902
  .string()
@@ -5931,7 +5960,7 @@ export const queryMeterPostBody = zod
5931
5960
  * @summary List meter subjects
5932
5961
  */
5933
5962
  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}$');
5963
+ export const listMeterSubjectsPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
5935
5964
  export const listMeterSubjectsParams = zod.object({
5936
5965
  meterIdOrSlug: zod.coerce
5937
5966
  .string()
@@ -5979,7 +6008,7 @@ export const listNotificationChannelsQueryParams = zod.object({
5979
6008
  * @summary Create a notification channel
5980
6009
  */
5981
6010
  export const createNotificationChannelBodyDisabledDefault = false;
5982
- export const createNotificationChannelBodySigningSecretRegExp = new RegExp('^(whsec_)?[a-zA-Z0-9+/=]{32,100}$');
6011
+ export const createNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
5983
6012
  export const createNotificationChannelBody = zod
5984
6013
  .object({
5985
6014
  customHeaders: zod
@@ -6007,14 +6036,14 @@ export const createNotificationChannelBody = zod
6007
6036
  * Update notification channel.
6008
6037
  * @summary Update a notification channel
6009
6038
  */
6010
- export const updateNotificationChannelPathChannelIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6039
+ export const updateNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6011
6040
  export const updateNotificationChannelParams = zod.object({
6012
6041
  channelId: zod.coerce
6013
6042
  .string()
6014
6043
  .regex(updateNotificationChannelPathChannelIdRegExp),
6015
6044
  });
6016
6045
  export const updateNotificationChannelBodyDisabledDefault = false;
6017
- export const updateNotificationChannelBodySigningSecretRegExp = new RegExp('^(whsec_)?[a-zA-Z0-9+/=]{32,100}$');
6046
+ export const updateNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
6018
6047
  export const updateNotificationChannelBody = zod
6019
6048
  .object({
6020
6049
  customHeaders: zod
@@ -6042,7 +6071,7 @@ export const updateNotificationChannelBody = zod
6042
6071
  * Get a notification channel by id.
6043
6072
  * @summary Get notification channel
6044
6073
  */
6045
- export const getNotificationChannelPathChannelIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6074
+ export const getNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6046
6075
  export const getNotificationChannelParams = zod.object({
6047
6076
  channelId: zod.coerce
6048
6077
  .string()
@@ -6054,7 +6083,7 @@ export const getNotificationChannelParams = zod.object({
6054
6083
  Once a notification channel is deleted it cannot be undeleted.
6055
6084
  * @summary Delete a notification channel
6056
6085
  */
6057
- export const deleteNotificationChannelPathChannelIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6086
+ export const deleteNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6058
6087
  export const deleteNotificationChannelParams = zod.object({
6059
6088
  channelId: zod.coerce
6060
6089
  .string()
@@ -6064,8 +6093,8 @@ export const deleteNotificationChannelParams = zod.object({
6064
6093
  * List all notification events.
6065
6094
  * @summary List notification events
6066
6095
  */
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}$');
6096
+ export const listNotificationEventsQueryRuleItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6097
+ export const listNotificationEventsQueryChannelItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6069
6098
  export const listNotificationEventsQueryPageDefault = 1;
6070
6099
  export const listNotificationEventsQueryPageSizeDefault = 100;
6071
6100
  export const listNotificationEventsQueryPageSizeMax = 1000;
@@ -6131,7 +6160,7 @@ export const getNotificationEventParams = zod.object({
6131
6160
  export const listNotificationRulesQueryIncludeDeletedDefault = false;
6132
6161
  export const listNotificationRulesQueryIncludeDisabledDefault = false;
6133
6162
  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}$');
6163
+ export const listNotificationRulesQueryFeatureItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6135
6164
  export const listNotificationRulesQueryPageDefault = 1;
6136
6165
  export const listNotificationRulesQueryPageSizeDefault = 100;
6137
6166
  export const listNotificationRulesQueryPageSizeMax = 1000;
@@ -6180,17 +6209,17 @@ export const listNotificationRulesQueryParams = zod.object({
6180
6209
  */
6181
6210
  export const createNotificationRuleBodyDisabledDefault = false;
6182
6211
  export const createNotificationRuleBodyThresholdsMax = 10;
6183
- export const createNotificationRuleBodyChannelsItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6212
+ export const createNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6184
6213
  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}$');
6214
+ export const createNotificationRuleBodyFeaturesItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6186
6215
  export const createNotificationRuleBodyDisabledDefaultOne = false;
6187
- export const createNotificationRuleBodyChannelsItemRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6216
+ export const createNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6188
6217
  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}$');
6218
+ export const createNotificationRuleBodyFeaturesItemRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6190
6219
  export const createNotificationRuleBodyDisabledDefaultTwo = false;
6191
- export const createNotificationRuleBodyChannelsItemRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6220
+ export const createNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6192
6221
  export const createNotificationRuleBodyDisabledDefaultThree = false;
6193
- export const createNotificationRuleBodyChannelsItemRegExpThree = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6222
+ export const createNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6194
6223
  export const createNotificationRuleBody = zod
6195
6224
  .union([
6196
6225
  zod
@@ -6314,23 +6343,23 @@ export const createNotificationRuleBody = zod
6314
6343
  * Update notification rule.
6315
6344
  * @summary Update a notification rule
6316
6345
  */
6317
- export const updateNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6346
+ export const updateNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6318
6347
  export const updateNotificationRuleParams = zod.object({
6319
6348
  ruleId: zod.coerce.string().regex(updateNotificationRulePathRuleIdRegExp),
6320
6349
  });
6321
6350
  export const updateNotificationRuleBodyDisabledDefault = false;
6322
6351
  export const updateNotificationRuleBodyThresholdsMax = 10;
6323
- export const updateNotificationRuleBodyChannelsItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6352
+ export const updateNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6324
6353
  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}$');
6354
+ export const updateNotificationRuleBodyFeaturesItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6326
6355
  export const updateNotificationRuleBodyDisabledDefaultOne = false;
6327
- export const updateNotificationRuleBodyChannelsItemRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6356
+ export const updateNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6328
6357
  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}$');
6358
+ export const updateNotificationRuleBodyFeaturesItemRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6330
6359
  export const updateNotificationRuleBodyDisabledDefaultTwo = false;
6331
- export const updateNotificationRuleBodyChannelsItemRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6360
+ export const updateNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6332
6361
  export const updateNotificationRuleBodyDisabledDefaultThree = false;
6333
- export const updateNotificationRuleBodyChannelsItemRegExpThree = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6362
+ export const updateNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6334
6363
  export const updateNotificationRuleBody = zod
6335
6364
  .union([
6336
6365
  zod
@@ -6454,7 +6483,7 @@ export const updateNotificationRuleBody = zod
6454
6483
  * Get a notification rule by id.
6455
6484
  * @summary Get notification rule
6456
6485
  */
6457
- export const getNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6486
+ export const getNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6458
6487
  export const getNotificationRuleParams = zod.object({
6459
6488
  ruleId: zod.coerce.string().regex(getNotificationRulePathRuleIdRegExp),
6460
6489
  });
@@ -6464,7 +6493,7 @@ export const getNotificationRuleParams = zod.object({
6464
6493
  Once a notification rule is deleted it cannot be undeleted.
6465
6494
  * @summary Delete a notification rule
6466
6495
  */
6467
- export const deleteNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6496
+ export const deleteNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6468
6497
  export const deleteNotificationRuleParams = zod.object({
6469
6498
  ruleId: zod.coerce.string().regex(deleteNotificationRulePathRuleIdRegExp),
6470
6499
  });
@@ -6472,7 +6501,7 @@ export const deleteNotificationRuleParams = zod.object({
6472
6501
  * Test a notification rule by sending a test event with random data.
6473
6502
  * @summary Test notification rule
6474
6503
  */
6475
- export const testNotificationRulePathRuleIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6504
+ export const testNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6476
6505
  export const testNotificationRuleParams = zod.object({
6477
6506
  ruleId: zod.coerce.string().regex(testNotificationRulePathRuleIdRegExp),
6478
6507
  });
@@ -6481,12 +6510,12 @@ export const testNotificationRuleParams = zod.object({
6481
6510
  * @summary List plans
6482
6511
  */
6483
6512
  export const listPlansQueryIncludeDeletedDefault = false;
6484
- export const listPlansQueryIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
6513
+ export const listPlansQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
6485
6514
  export const listPlansQueryKeyItemMax = 64;
6486
- export const listPlansQueryKeyItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6515
+ export const listPlansQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6487
6516
  export const listPlansQueryCurrencyItemMin = 3;
6488
6517
  export const listPlansQueryCurrencyItemMax = 3;
6489
- export const listPlansQueryCurrencyItemRegExp = new RegExp('^[A-Z]{3}$');
6518
+ export const listPlansQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
6490
6519
  export const listPlansQueryPageDefault = 1;
6491
6520
  export const listPlansQueryPageSizeDefault = 100;
6492
6521
  export const listPlansQueryPageSizeMax = 1000;
@@ -6554,10 +6583,10 @@ export const listPlansQueryParams = zod.object({
6554
6583
  export const createPlanBodyNameMax = 256;
6555
6584
  export const createPlanBodyDescriptionMax = 1024;
6556
6585
  export const createPlanBodyKeyMax = 64;
6557
- export const createPlanBodyKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6586
+ export const createPlanBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6558
6587
  export const createPlanBodyCurrencyMinOne = 3;
6559
6588
  export const createPlanBodyCurrencyMaxOne = 3;
6560
- export const createPlanBodyCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
6589
+ export const createPlanBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
6561
6590
  export const createPlanBodyCurrencyDefault = 'USD';
6562
6591
  export const createPlanBodyProRatingConfigEnabledDefault = true;
6563
6592
  export const createPlanBodyProRatingConfigModeDefault = 'prorate_prices';
@@ -6566,55 +6595,55 @@ export const createPlanBodyProRatingConfigDefault = {
6566
6595
  mode: 'prorate_prices',
6567
6596
  };
6568
6597
  export const createPlanBodyPhasesItemKeyMax = 64;
6569
- export const createPlanBodyPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6598
+ export const createPlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6570
6599
  export const createPlanBodyPhasesItemNameMax = 256;
6571
6600
  export const createPlanBodyPhasesItemDescriptionMax = 1024;
6572
6601
  export const createPlanBodyPhasesItemRateCardsItemKeyMax = 64;
6573
- export const createPlanBodyPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6602
+ export const createPlanBodyPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6574
6603
  export const createPlanBodyPhasesItemRateCardsItemNameMax = 256;
6575
6604
  export const createPlanBodyPhasesItemRateCardsItemDescriptionMax = 1024;
6576
6605
  export const createPlanBodyPhasesItemRateCardsItemFeatureKeyMax = 64;
6577
- export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6606
+ export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6578
6607
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
6579
6608
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
6580
6609
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
6581
6610
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
6582
6611
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
6583
- export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
6584
- export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6612
+ export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
6613
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6585
6614
  export const createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
6586
- export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6615
+ export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6587
6616
  export const createPlanBodyPhasesItemRateCardsItemKeyMaxOne = 64;
6588
- export const createPlanBodyPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6617
+ export const createPlanBodyPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6589
6618
  export const createPlanBodyPhasesItemRateCardsItemNameMaxOne = 256;
6590
6619
  export const createPlanBodyPhasesItemRateCardsItemDescriptionMaxOne = 1024;
6591
6620
  export const createPlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
6592
- export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
6621
+ export const createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
6593
6622
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
6594
6623
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
6595
6624
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
6596
6625
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
6597
6626
  export const createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
6598
- export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
6599
- export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
6627
+ export const createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
6628
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6600
6629
  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]+)?$');
6630
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
6631
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6632
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6633
+ export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6634
+ export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6635
+ export const createPlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6636
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6637
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6638
+ export const createPlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6610
6639
  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]+)?$');
6640
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
6641
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
6642
+ export const createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
6643
+ export const createPlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
6644
+ export const createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
6645
+ export const createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
6646
+ export const createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
6618
6647
  export const createPlanBody = zod
6619
6648
  .object({
6620
6649
  alignment: zod
@@ -6629,7 +6658,7 @@ export const createPlanBody = zod
6629
6658
  .describe('Alignment configuration for the plan.'),
6630
6659
  billingCadence: zod.coerce
6631
6660
  .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).'),
6661
+ .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
6662
  currency: zod.coerce
6634
6663
  .string()
6635
6664
  .min(createPlanBodyCurrencyMinOne)
@@ -6739,7 +6768,7 @@ export const createPlanBody = zod
6739
6768
  .number()
6740
6769
  .min(createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
6741
6770
  .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.'),
6771
+ .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
6772
  issueAfterResetPriority: zod.coerce
6744
6773
  .number()
6745
6774
  .min(1)
@@ -6911,7 +6940,7 @@ export const createPlanBody = zod
6911
6940
  .number()
6912
6941
  .min(createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
6913
6942
  .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.'),
6943
+ .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
6944
  issueAfterResetPriority: zod.coerce
6916
6945
  .number()
6917
6946
  .min(1)
@@ -7201,7 +7230,7 @@ It returns error if there is already a plan in draft or planId does not referenc
7201
7230
  * @summary New draft plan
7202
7231
  */
7203
7232
  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}$');
7233
+ export const nextPlanPathPlanIdOrKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7205
7234
  export const nextPlanParams = zod.object({
7206
7235
  planIdOrKey: zod.coerce
7207
7236
  .string()
@@ -7213,7 +7242,7 @@ export const nextPlanParams = zod.object({
7213
7242
  * Update plan by id.
7214
7243
  * @summary Update a plan
7215
7244
  */
7216
- export const updatePlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7245
+ export const updatePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7217
7246
  export const updatePlanParams = zod.object({
7218
7247
  planId: zod.coerce.string().regex(updatePlanPathPlanIdRegExp),
7219
7248
  });
@@ -7226,55 +7255,55 @@ export const updatePlanBodyProRatingConfigDefault = {
7226
7255
  mode: 'prorate_prices',
7227
7256
  };
7228
7257
  export const updatePlanBodyPhasesItemKeyMax = 64;
7229
- export const updatePlanBodyPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7258
+ export const updatePlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7230
7259
  export const updatePlanBodyPhasesItemNameMax = 256;
7231
7260
  export const updatePlanBodyPhasesItemDescriptionMax = 1024;
7232
7261
  export const updatePlanBodyPhasesItemRateCardsItemKeyMax = 64;
7233
- export const updatePlanBodyPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7262
+ export const updatePlanBodyPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7234
7263
  export const updatePlanBodyPhasesItemRateCardsItemNameMax = 256;
7235
7264
  export const updatePlanBodyPhasesItemRateCardsItemDescriptionMax = 1024;
7236
7265
  export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyMax = 64;
7237
- export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7266
+ export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7238
7267
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
7239
7268
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
7240
7269
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
7241
7270
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
7242
7271
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
7243
- export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
7244
- export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7272
+ export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
7273
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7245
7274
  export const updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
7246
- export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7275
+ export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7247
7276
  export const updatePlanBodyPhasesItemRateCardsItemKeyMaxOne = 64;
7248
- export const updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7277
+ export const updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7249
7278
  export const updatePlanBodyPhasesItemRateCardsItemNameMaxOne = 256;
7250
7279
  export const updatePlanBodyPhasesItemRateCardsItemDescriptionMaxOne = 1024;
7251
7280
  export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
7252
- export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7281
+ export const updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7253
7282
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
7254
7283
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
7255
7284
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
7256
7285
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
7257
7286
  export const updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
7258
- export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
7259
- export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
7287
+ export const updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
7288
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7260
7289
  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]+)?$');
7290
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
7291
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7292
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7293
+ export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7294
+ export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7295
+ export const updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7296
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7297
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7298
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7270
7299
  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]+)?$');
7300
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
7301
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
7302
+ export const updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
7303
+ export const updatePlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
7304
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
7305
+ export const updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
7306
+ export const updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
7278
7307
  export const updatePlanBody = zod
7279
7308
  .object({
7280
7309
  alignment: zod
@@ -7289,7 +7318,7 @@ export const updatePlanBody = zod
7289
7318
  .describe('Alignment configuration for the plan.'),
7290
7319
  billingCadence: zod.coerce
7291
7320
  .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).'),
7321
+ .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
7322
  description: zod.coerce
7294
7323
  .string()
7295
7324
  .max(updatePlanBodyDescriptionMax)
@@ -7386,7 +7415,7 @@ export const updatePlanBody = zod
7386
7415
  .number()
7387
7416
  .min(updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
7388
7417
  .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.'),
7418
+ .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
7419
  issueAfterResetPriority: zod.coerce
7391
7420
  .number()
7392
7421
  .min(1)
@@ -7558,7 +7587,7 @@ export const updatePlanBody = zod
7558
7587
  .number()
7559
7588
  .min(updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
7560
7589
  .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.'),
7590
+ .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
7591
  issueAfterResetPriority: zod.coerce
7563
7592
  .number()
7564
7593
  .min(1)
@@ -7846,7 +7875,7 @@ export const updatePlanBody = zod
7846
7875
  * @summary Get plan
7847
7876
  */
7848
7877
  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}$');
7878
+ export const getPlanPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7850
7879
  export const getPlanParams = zod.object({
7851
7880
  planId: zod.coerce
7852
7881
  .string()
@@ -7867,7 +7896,7 @@ export const getPlanQueryParams = zod.object({
7867
7896
  Once a plan is deleted it cannot be undeleted.
7868
7897
  * @summary Delete plan
7869
7898
  */
7870
- export const deletePlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7899
+ export const deletePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7871
7900
  export const deletePlanParams = zod.object({
7872
7901
  planId: zod.coerce.string().regex(deletePlanPathPlanIdRegExp),
7873
7902
  });
@@ -7876,7 +7905,7 @@ export const deletePlanParams = zod.object({
7876
7905
  * @summary List all available add-ons for plan
7877
7906
  */
7878
7907
  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}$');
7908
+ export const listPlanAddonsPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7880
7909
  export const listPlanAddonsParams = zod.object({
7881
7910
  planId: zod.coerce
7882
7911
  .string()
@@ -7885,9 +7914,9 @@ export const listPlanAddonsParams = zod.object({
7885
7914
  .regex(listPlanAddonsPathPlanIdRegExp),
7886
7915
  });
7887
7916
  export const listPlanAddonsQueryIncludeDeletedDefault = false;
7888
- export const listPlanAddonsQueryIdItemRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7917
+ export const listPlanAddonsQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7889
7918
  export const listPlanAddonsQueryKeyItemMax = 64;
7890
- export const listPlanAddonsQueryKeyItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
7919
+ export const listPlanAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
7891
7920
  export const listPlanAddonsQueryPageDefault = 1;
7892
7921
  export const listPlanAddonsQueryPageSizeDefault = 100;
7893
7922
  export const listPlanAddonsQueryPageSizeMax = 1000;
@@ -7937,11 +7966,11 @@ export const listPlanAddonsQueryParams = zod.object({
7937
7966
  * Create new add-on assignment for plan.
7938
7967
  * @summary Create new add-on assignment for plan
7939
7968
  */
7940
- export const createPlanAddonPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7969
+ export const createPlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7941
7970
  export const createPlanAddonParams = zod.object({
7942
7971
  planId: zod.coerce.string().regex(createPlanAddonPathPlanIdRegExp),
7943
7972
  });
7944
- export const createPlanAddonBodyAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
7973
+ export const createPlanAddonBodyAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7945
7974
  export const createPlanAddonBody = zod
7946
7975
  .object({
7947
7976
  addonId: zod.coerce
@@ -7966,8 +7995,8 @@ export const createPlanAddonBody = zod
7966
7995
  * Update add-on assignment for plan.
7967
7996
  * @summary Update add-on assignment for plan
7968
7997
  */
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}$');
7998
+ export const updatePlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7999
+ export const updatePlanAddonPathPlanAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7971
8000
  export const updatePlanAddonParams = zod.object({
7972
8001
  planAddonId: zod.coerce.string().regex(updatePlanAddonPathPlanAddonIdRegExp),
7973
8002
  planId: zod.coerce.string().regex(updatePlanAddonPathPlanIdRegExp),
@@ -7993,9 +8022,9 @@ export const updatePlanAddonBody = zod
7993
8022
  * @summary Get add-on assignment for plan
7994
8023
  */
7995
8024
  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}$');
8025
+ export const getPlanAddonPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7997
8026
  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}$');
8027
+ export const getPlanAddonPathPlanAddonIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
7999
8028
  export const getPlanAddonParams = zod.object({
8000
8029
  planAddonId: zod.coerce
8001
8030
  .string()
@@ -8014,8 +8043,8 @@ export const getPlanAddonParams = zod.object({
8014
8043
  Once a plan is deleted it cannot be undeleted.
8015
8044
  * @summary Delete add-on assignment for plan
8016
8045
  */
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}$');
8046
+ export const deletePlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8047
+ export const deletePlanAddonPathPlanAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8019
8048
  export const deletePlanAddonParams = zod.object({
8020
8049
  planAddonId: zod.coerce.string().regex(deletePlanAddonPathPlanAddonIdRegExp),
8021
8050
  planId: zod.coerce.string().regex(deletePlanAddonPathPlanIdRegExp),
@@ -8024,7 +8053,7 @@ export const deletePlanAddonParams = zod.object({
8024
8053
  * Archive a plan version.
8025
8054
  * @summary Archive plan version
8026
8055
  */
8027
- export const archivePlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8056
+ export const archivePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8028
8057
  export const archivePlanParams = zod.object({
8029
8058
  planId: zod.coerce.string().regex(archivePlanPathPlanIdRegExp),
8030
8059
  });
@@ -8032,7 +8061,7 @@ export const archivePlanParams = zod.object({
8032
8061
  * Publish a plan version.
8033
8062
  * @summary Publish plan
8034
8063
  */
8035
- export const publishPlanPathPlanIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8064
+ export const publishPlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8036
8065
  export const publishPlanParams = zod.object({
8037
8066
  planId: zod.coerce.string().regex(publishPlanPathPlanIdRegExp),
8038
8067
  });
@@ -8041,7 +8070,7 @@ export const publishPlanParams = zod.object({
8041
8070
  * @summary Query meter Query meter
8042
8071
  */
8043
8072
  export const queryPortalMeterPathMeterSlugMax = 64;
8044
- export const queryPortalMeterPathMeterSlugRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
8073
+ export const queryPortalMeterPathMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8045
8074
  export const queryPortalMeterParams = zod.object({
8046
8075
  meterSlug: zod.coerce
8047
8076
  .string()
@@ -8133,21 +8162,21 @@ export const invalidatePortalTokensBody = zod.object({
8133
8162
  * Create checkout session.
8134
8163
  * @summary Create checkout session
8135
8164
  */
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}$');
8165
+ export const createStripeCheckoutSessionBodyAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8166
+ export const createStripeCheckoutSessionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8138
8167
  export const createStripeCheckoutSessionBodyCustomerNameMax = 256;
8139
8168
  export const createStripeCheckoutSessionBodyCustomerDescriptionMax = 1024;
8140
8169
  export const createStripeCheckoutSessionBodyCustomerKeyMaxOne = 256;
8141
8170
  export const createStripeCheckoutSessionBodyCustomerUsageAttributionSubjectKeysMax = 1;
8142
8171
  export const createStripeCheckoutSessionBodyCustomerCurrencyMinOne = 3;
8143
8172
  export const createStripeCheckoutSessionBodyCustomerCurrencyMaxOne = 3;
8144
- export const createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
8173
+ export const createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne = /^[A-Z]{3}$/;
8145
8174
  export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryMinOne = 2;
8146
8175
  export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryMaxOne = 2;
8147
- export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne = new RegExp('^[A-Z]{2}$');
8176
+ export const createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
8148
8177
  export const createStripeCheckoutSessionBodyOptionsCurrencyMinOne = 3;
8149
8178
  export const createStripeCheckoutSessionBodyOptionsCurrencyMaxOne = 3;
8150
- export const createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
8179
+ export const createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne = /^[A-Z]{3}$/;
8151
8180
  export const createStripeCheckoutSessionBodyOptionsCustomTextAfterSubmitMessageMax = 1200;
8152
8181
  export const createStripeCheckoutSessionBodyOptionsCustomTextShippingAddressMessageMax = 1200;
8153
8182
  export const createStripeCheckoutSessionBodyOptionsCustomTextSubmitMessageMax = 1200;
@@ -8489,20 +8518,23 @@ export const createEntitlementParams = zod.object({
8489
8518
  subjectIdOrKey: zod.coerce.string(),
8490
8519
  });
8491
8520
  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}$');
8521
+ export const createEntitlementBodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8522
+ export const createEntitlementBodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8494
8523
  export const createEntitlementBodyIsSoftLimitDefault = false;
8495
8524
  export const createEntitlementBodyIsUnlimitedDefault = false;
8525
+ 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
8526
  export const createEntitlementBodyIssueAfterResetMin = 0;
8497
8527
  export const createEntitlementBodyIssueAfterResetPriorityDefault = 1;
8498
8528
  export const createEntitlementBodyIssueAfterResetPriorityMax = 255;
8499
8529
  export const createEntitlementBodyPreserveOverageAtResetDefault = false;
8500
8530
  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}$');
8531
+ export const createEntitlementBodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8532
+ export const createEntitlementBodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8533
+ 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
8534
  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}$');
8535
+ export const createEntitlementBodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8536
+ export const createEntitlementBodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8537
+ 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
8538
  export const createEntitlementBody = zod
8507
8539
  .union([
8508
8540
  zod
@@ -8527,7 +8559,7 @@ export const createEntitlementBody = zod
8527
8559
  .number()
8528
8560
  .min(createEntitlementBodyIssueAfterResetMin)
8529
8561
  .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.'),
8562
+ .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
8563
  issueAfterResetPriority: zod.coerce
8532
8564
  .number()
8533
8565
  .min(1)
@@ -8720,6 +8752,7 @@ export const createGrantBodyPriorityMax = 255;
8720
8752
  export const createGrantBodyExpirationCountMax = 1000;
8721
8753
  export const createGrantBodyMaxRolloverAmountDefault = 0;
8722
8754
  export const createGrantBodyMinRolloverAmountDefault = 0;
8755
+ 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
8756
  export const createGrantBody = zod
8724
8757
  .object({
8725
8758
  amount: zod.coerce
@@ -8796,20 +8829,23 @@ export const overrideEntitlementParams = zod.object({
8796
8829
  subjectIdOrKey: zod.coerce.string(),
8797
8830
  });
8798
8831
  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}$');
8832
+ export const overrideEntitlementBodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8833
+ export const overrideEntitlementBodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8801
8834
  export const overrideEntitlementBodyIsSoftLimitDefault = false;
8802
8835
  export const overrideEntitlementBodyIsUnlimitedDefault = false;
8836
+ 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
8837
  export const overrideEntitlementBodyIssueAfterResetMin = 0;
8804
8838
  export const overrideEntitlementBodyIssueAfterResetPriorityDefault = 1;
8805
8839
  export const overrideEntitlementBodyIssueAfterResetPriorityMax = 255;
8806
8840
  export const overrideEntitlementBodyPreserveOverageAtResetDefault = false;
8807
8841
  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}$');
8842
+ export const overrideEntitlementBodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8843
+ export const overrideEntitlementBodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8844
+ 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
8845
  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}$');
8846
+ export const overrideEntitlementBodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8847
+ export const overrideEntitlementBodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
8848
+ 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
8849
  export const overrideEntitlementBody = zod
8814
8850
  .union([
8815
8851
  zod
@@ -8834,7 +8870,7 @@ export const overrideEntitlementBody = zod
8834
8870
  .number()
8835
8871
  .min(overrideEntitlementBodyIssueAfterResetMin)
8836
8872
  .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.'),
8873
+ .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
8874
  issueAfterResetPriority: zod.coerce
8839
8875
  .number()
8840
8876
  .min(1)
@@ -9070,15 +9106,15 @@ export const resetEntitlementUsageBody = zod
9070
9106
  * @summary Create subscription
9071
9107
  */
9072
9108
  export const createSubscriptionBodyPlanKeyMax = 64;
9073
- export const createSubscriptionBodyPlanKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9109
+ export const createSubscriptionBodyPlanKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9074
9110
  export const createSubscriptionBodyTimingDefault = 'immediate';
9075
- export const createSubscriptionBodyCustomerIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9111
+ export const createSubscriptionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9076
9112
  export const createSubscriptionBodyCustomerKeyMax = 256;
9077
9113
  export const createSubscriptionBodyCustomPlanNameMax = 256;
9078
9114
  export const createSubscriptionBodyCustomPlanDescriptionMax = 1024;
9079
9115
  export const createSubscriptionBodyCustomPlanCurrencyMinOne = 3;
9080
9116
  export const createSubscriptionBodyCustomPlanCurrencyMaxOne = 3;
9081
- export const createSubscriptionBodyCustomPlanCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
9117
+ export const createSubscriptionBodyCustomPlanCurrencyRegExpOne = /^[A-Z]{3}$/;
9082
9118
  export const createSubscriptionBodyCustomPlanCurrencyDefault = 'USD';
9083
9119
  export const createSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = true;
9084
9120
  export const createSubscriptionBodyCustomPlanProRatingConfigModeDefault = 'prorate_prices';
@@ -9087,57 +9123,57 @@ export const createSubscriptionBodyCustomPlanProRatingConfigDefault = {
9087
9123
  mode: 'prorate_prices',
9088
9124
  };
9089
9125
  export const createSubscriptionBodyCustomPlanPhasesItemKeyMax = 64;
9090
- export const createSubscriptionBodyCustomPlanPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9126
+ export const createSubscriptionBodyCustomPlanPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9091
9127
  export const createSubscriptionBodyCustomPlanPhasesItemNameMax = 256;
9092
9128
  export const createSubscriptionBodyCustomPlanPhasesItemDescriptionMax = 1024;
9093
9129
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = 64;
9094
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9130
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9095
9131
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = 256;
9096
9132
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = 1024;
9097
9133
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = 64;
9098
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9134
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9099
9135
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
9100
9136
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
9101
9137
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
9102
9138
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
9103
9139
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
9104
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
9105
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9140
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
9141
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9106
9142
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
9107
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9143
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9108
9144
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = 64;
9109
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9145
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9110
9146
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = 256;
9111
9147
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = 1024;
9112
9148
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
9113
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9149
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9114
9150
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
9115
9151
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
9116
9152
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
9117
9153
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
9118
9154
  export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
9119
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
9120
- export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9155
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
9156
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9121
9157
  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]+)?$');
9158
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9159
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9160
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9161
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9162
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9163
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9164
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9165
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9166
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9131
9167
  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]+)?$');
9168
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9169
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9170
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9171
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9172
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9173
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9174
+ export const createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9139
9175
  export const createSubscriptionBodyTimingDefaultFour = 'immediate';
9140
- export const createSubscriptionBodyCustomerIdRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9176
+ export const createSubscriptionBodyCustomerIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9141
9177
  export const createSubscriptionBodyCustomerKeyMaxOne = 256;
9142
9178
  export const createSubscriptionBody = zod
9143
9179
  .union([
@@ -9246,7 +9282,7 @@ export const createSubscriptionBody = zod
9246
9282
  .describe('Alignment configuration for the plan.'),
9247
9283
  billingCadence: zod.coerce
9248
9284
  .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).'),
9285
+ .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
9286
  currency: zod.coerce
9251
9287
  .string()
9252
9288
  .min(createSubscriptionBodyCustomPlanCurrencyMinOne)
@@ -9350,7 +9386,7 @@ export const createSubscriptionBody = zod
9350
9386
  .number()
9351
9387
  .min(createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
9352
9388
  .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.'),
9389
+ .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
9390
  issueAfterResetPriority: zod.coerce
9355
9391
  .number()
9356
9392
  .min(1)
@@ -9522,7 +9558,7 @@ export const createSubscriptionBody = zod
9522
9558
  .number()
9523
9559
  .min(createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
9524
9560
  .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.'),
9561
+ .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
9562
  issueAfterResetPriority: zod.coerce
9527
9563
  .number()
9528
9564
  .min(1)
@@ -9826,7 +9862,7 @@ export const createSubscriptionBody = zod
9826
9862
  /**
9827
9863
  * @summary Get subscription
9828
9864
  */
9829
- export const getSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9865
+ export const getSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9830
9866
  export const getSubscriptionParams = zod.object({
9831
9867
  subscriptionId: zod.coerce
9832
9868
  .string()
@@ -9843,61 +9879,61 @@ export const getSubscriptionQueryParams = zod.object({
9843
9879
  The key format is `/phases/{phaseKey}` or `/phases/{phaseKey}/items/{itemKey}`.
9844
9880
  * @summary Edit subscription
9845
9881
  */
9846
- export const editSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
9882
+ export const editSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
9847
9883
  export const editSubscriptionParams = zod.object({
9848
9884
  subscriptionId: zod.coerce
9849
9885
  .string()
9850
9886
  .regex(editSubscriptionPathSubscriptionIdRegExp),
9851
9887
  });
9852
9888
  export const editSubscriptionBodyCustomizationsItemRateCardKeyMax = 64;
9853
- export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9889
+ export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9854
9890
  export const editSubscriptionBodyCustomizationsItemRateCardNameMax = 256;
9855
9891
  export const editSubscriptionBodyCustomizationsItemRateCardDescriptionMax = 1024;
9856
9892
  export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMax = 64;
9857
- export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9893
+ export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9858
9894
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefault = false;
9859
9895
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin = 0;
9860
9896
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefault = 1;
9861
9897
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMax = 255;
9862
9898
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefault = false;
9863
- export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
9864
- export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9899
+ export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
9900
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9865
9901
  export const editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefault = 'in_advance';
9866
- export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9902
+ export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9867
9903
  export const editSubscriptionBodyCustomizationsItemRateCardKeyMaxOne = 64;
9868
- export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9904
+ export const editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9869
9905
  export const editSubscriptionBodyCustomizationsItemRateCardNameMaxOne = 256;
9870
9906
  export const editSubscriptionBodyCustomizationsItemRateCardDescriptionMaxOne = 1024;
9871
9907
  export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMaxOne = 64;
9872
- export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9908
+ export const editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9873
9909
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefaultOne = false;
9874
9910
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne = 0;
9875
9911
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
9876
9912
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
9877
9913
  export const editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
9878
- export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
9879
- export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
9914
+ export const editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
9915
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9880
9916
  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]+)?$');
9917
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9918
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9919
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9920
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9921
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9922
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9923
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9924
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9925
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9890
9926
  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]+)?$');
9927
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9928
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
9929
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9930
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9931
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9932
+ export const editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
9933
+ export const editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
9934
+ export const editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
9899
9935
  export const editSubscriptionBodyCustomizationsItemPhaseKeyMaxTwo = 64;
9900
- export const editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
9936
+ export const editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
9901
9937
  export const editSubscriptionBodyCustomizationsMax = 100;
9902
9938
  export const editSubscriptionBody = zod
9903
9939
  .object({
@@ -9960,7 +9996,7 @@ export const editSubscriptionBody = zod
9960
9996
  .number()
9961
9997
  .min(editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin)
9962
9998
  .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.'),
9999
+ .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
10000
  issueAfterResetPriority: zod.coerce
9965
10001
  .number()
9966
10002
  .min(1)
@@ -10132,7 +10168,7 @@ export const editSubscriptionBody = zod
10132
10168
  .number()
10133
10169
  .min(editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne)
10134
10170
  .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.'),
10171
+ .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
10172
  issueAfterResetPriority: zod.coerce
10137
10173
  .number()
10138
10174
  .min(1)
@@ -10504,7 +10540,7 @@ export const editSubscriptionBody = zod
10504
10540
  * Deletes a subscription. Only scheduled subscriptions can be deleted.
10505
10541
  * @summary Delete subscription
10506
10542
  */
10507
- export const deleteSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10543
+ export const deleteSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10508
10544
  export const deleteSubscriptionParams = zod.object({
10509
10545
  subscriptionId: zod.coerce
10510
10546
  .string()
@@ -10514,7 +10550,7 @@ export const deleteSubscriptionParams = zod.object({
10514
10550
  * Create a new subscription addon, either providing the key or the id of the addon.
10515
10551
  * @summary Create subscription addon
10516
10552
  */
10517
- export const createSubscriptionAddonPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10553
+ export const createSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10518
10554
  export const createSubscriptionAddonParams = zod.object({
10519
10555
  subscriptionId: zod.coerce
10520
10556
  .string()
@@ -10523,7 +10559,7 @@ export const createSubscriptionAddonParams = zod.object({
10523
10559
  export const createSubscriptionAddonBodyNameMax = 256;
10524
10560
  export const createSubscriptionAddonBodyDescriptionMax = 1024;
10525
10561
  export const createSubscriptionAddonBodyQuantityMin = 0;
10526
- export const createSubscriptionAddonBodyAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10562
+ export const createSubscriptionAddonBodyAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10527
10563
  export const createSubscriptionAddonBody = zod
10528
10564
  .object({
10529
10565
  addon: zod
@@ -10570,7 +10606,7 @@ export const createSubscriptionAddonBody = zod
10570
10606
  * List all addons of a subscription. In the returned list will match to a set unique by addonId.
10571
10607
  * @summary List subscription addons
10572
10608
  */
10573
- export const listSubscriptionAddonsPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10609
+ export const listSubscriptionAddonsPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10574
10610
  export const listSubscriptionAddonsParams = zod.object({
10575
10611
  subscriptionId: zod.coerce
10576
10612
  .string()
@@ -10580,8 +10616,8 @@ export const listSubscriptionAddonsParams = zod.object({
10580
10616
  * Get a subscription addon by id.
10581
10617
  * @summary Get subscription addon
10582
10618
  */
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}$');
10619
+ export const getSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10620
+ export const getSubscriptionAddonPathSubscriptionAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10585
10621
  export const getSubscriptionAddonParams = zod.object({
10586
10622
  subscriptionAddonId: zod.coerce
10587
10623
  .string()
@@ -10594,8 +10630,8 @@ export const getSubscriptionAddonParams = zod.object({
10594
10630
  * Updates a subscription addon (allows changing the quantity: purchasing more instances or cancelling the current instances)
10595
10631
  * @summary Update subscription addon
10596
10632
  */
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}$');
10633
+ export const updateSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10634
+ export const updateSubscriptionAddonPathSubscriptionAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10599
10635
  export const updateSubscriptionAddonParams = zod.object({
10600
10636
  subscriptionAddonId: zod.coerce
10601
10637
  .string()
@@ -10649,7 +10685,7 @@ export const updateSubscriptionAddonBody = zod
10649
10685
  Will result in a scheduling conflict if there are other subscriptions scheduled to start after the cancellation time.
10650
10686
  * @summary Cancel subscription
10651
10687
  */
10652
- export const cancelSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10688
+ export const cancelSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10653
10689
  export const cancelSubscriptionParams = zod.object({
10654
10690
  subscriptionId: zod.coerce
10655
10691
  .string()
@@ -10674,19 +10710,19 @@ export const cancelSubscriptionBody = zod.object({
10674
10710
  Can be used for upgrades, downgrades, and plan changes.
10675
10711
  * @summary Change subscription
10676
10712
  */
10677
- export const changeSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10713
+ export const changeSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
10678
10714
  export const changeSubscriptionParams = zod.object({
10679
10715
  subscriptionId: zod.coerce
10680
10716
  .string()
10681
10717
  .regex(changeSubscriptionPathSubscriptionIdRegExp),
10682
10718
  });
10683
10719
  export const changeSubscriptionBodyPlanKeyMax = 64;
10684
- export const changeSubscriptionBodyPlanKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10720
+ export const changeSubscriptionBodyPlanKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10685
10721
  export const changeSubscriptionBodyCustomPlanNameMax = 256;
10686
10722
  export const changeSubscriptionBodyCustomPlanDescriptionMax = 1024;
10687
10723
  export const changeSubscriptionBodyCustomPlanCurrencyMinOne = 3;
10688
10724
  export const changeSubscriptionBodyCustomPlanCurrencyMaxOne = 3;
10689
- export const changeSubscriptionBodyCustomPlanCurrencyRegExpOne = new RegExp('^[A-Z]{3}$');
10725
+ export const changeSubscriptionBodyCustomPlanCurrencyRegExpOne = /^[A-Z]{3}$/;
10690
10726
  export const changeSubscriptionBodyCustomPlanCurrencyDefault = 'USD';
10691
10727
  export const changeSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = true;
10692
10728
  export const changeSubscriptionBodyCustomPlanProRatingConfigModeDefault = 'prorate_prices';
@@ -10695,55 +10731,55 @@ export const changeSubscriptionBodyCustomPlanProRatingConfigDefault = {
10695
10731
  mode: 'prorate_prices',
10696
10732
  };
10697
10733
  export const changeSubscriptionBodyCustomPlanPhasesItemKeyMax = 64;
10698
- export const changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10734
+ export const changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10699
10735
  export const changeSubscriptionBodyCustomPlanPhasesItemNameMax = 256;
10700
10736
  export const changeSubscriptionBodyCustomPlanPhasesItemDescriptionMax = 1024;
10701
10737
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = 64;
10702
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10738
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10703
10739
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = 256;
10704
10740
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = 1024;
10705
10741
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = 64;
10706
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10742
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10707
10743
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
10708
10744
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
10709
10745
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
10710
10746
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
10711
10747
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
10712
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = new RegExp('^txcd_\\d{8}$');
10713
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10748
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
10749
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10714
10750
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
10715
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10751
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10716
10752
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = 64;
10717
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10753
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10718
10754
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = 256;
10719
10755
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = 1024;
10720
10756
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
10721
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$');
10757
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
10722
10758
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
10723
10759
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
10724
10760
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
10725
10761
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
10726
10762
  export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
10727
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = new RegExp('^txcd_\\d{8}$');
10728
- export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = new RegExp('^\\-?[0-9]+(\\.[0-9]+)?$');
10763
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
10764
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10729
10765
  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]+)?$');
10766
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
10767
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10768
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10769
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10770
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10771
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10772
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10773
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10774
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10739
10775
  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]+)?$');
10776
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
10777
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
10778
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
10779
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
10780
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
10781
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
10782
+ export const changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
10747
10783
  export const changeSubscriptionBody = zod
10748
10784
  .union([
10749
10785
  zod
@@ -10828,7 +10864,7 @@ export const changeSubscriptionBody = zod
10828
10864
  .describe('Alignment configuration for the plan.'),
10829
10865
  billingCadence: zod.coerce
10830
10866
  .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).'),
10867
+ .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
10868
  currency: zod.coerce
10833
10869
  .string()
10834
10870
  .min(changeSubscriptionBodyCustomPlanCurrencyMinOne)
@@ -10932,7 +10968,7 @@ export const changeSubscriptionBody = zod
10932
10968
  .number()
10933
10969
  .min(changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
10934
10970
  .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.'),
10971
+ .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
10972
  issueAfterResetPriority: zod.coerce
10937
10973
  .number()
10938
10974
  .min(1)
@@ -11104,7 +11140,7 @@ export const changeSubscriptionBody = zod
11104
11140
  .number()
11105
11141
  .min(changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
11106
11142
  .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.'),
11143
+ .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
11144
  issueAfterResetPriority: zod.coerce
11109
11145
  .number()
11110
11146
  .min(1)
@@ -11410,7 +11446,7 @@ If possible, the migration will be done immediately.
11410
11446
  If not, the migration will be scheduled to the end of the current billing period.
11411
11447
  * @summary Migrate subscription
11412
11448
  */
11413
- export const migrateSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11449
+ export const migrateSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11414
11450
  export const migrateSubscriptionParams = zod.object({
11415
11451
  subscriptionId: zod.coerce
11416
11452
  .string()
@@ -11448,9 +11484,10 @@ export const migrateSubscriptionBody = zod.object({
11448
11484
  /**
11449
11485
  * Restores a canceled subscription.
11450
11486
  Any subscription scheduled to start later will be deleted and this subscription will be continued indefinitely.
11487
+ * @deprecated
11451
11488
  * @summary Restore subscription
11452
11489
  */
11453
- export const restoreSubscriptionPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11490
+ export const restoreSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11454
11491
  export const restoreSubscriptionParams = zod.object({
11455
11492
  subscriptionId: zod.coerce
11456
11493
  .string()
@@ -11460,7 +11497,7 @@ export const restoreSubscriptionParams = zod.object({
11460
11497
  * Cancels the scheduled cancelation.
11461
11498
  * @summary Unschedule cancelation
11462
11499
  */
11463
- export const unscheduleCancelationPathSubscriptionIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
11500
+ export const unscheduleCancelationPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11464
11501
  export const unscheduleCancelationParams = zod.object({
11465
11502
  subscriptionId: zod.coerce
11466
11503
  .string()
@@ -11478,6 +11515,8 @@ A given customer can only have one active (non-deleted) entitlement per featureK
11478
11515
  Once an entitlement is created you cannot modify it, only delete it.
11479
11516
  * @summary Create a customer entitlement
11480
11517
  */
11518
+ export const createCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11519
+ export const createCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
11481
11520
  export const createCustomerEntitlementV2Params = zod.object({
11482
11521
  customerIdOrKey: zod.union([
11483
11522
  zod.coerce
@@ -11492,20 +11531,30 @@ export const createCustomerEntitlementV2Params = zod.object({
11492
11531
  ]),
11493
11532
  });
11494
11533
  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}$');
11534
+ export const createCustomerEntitlementV2BodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
11535
+ export const createCustomerEntitlementV2BodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11497
11536
  export const createCustomerEntitlementV2BodyIsSoftLimitDefault = false;
11498
- export const createCustomerEntitlementV2BodyIsUnlimitedDefault = false;
11537
+ 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)?)?$/;
11538
+ export const createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
11499
11539
  export const createCustomerEntitlementV2BodyIssueAfterResetMin = 0;
11500
11540
  export const createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = 1;
11501
11541
  export const createCustomerEntitlementV2BodyIssueAfterResetPriorityMax = 255;
11502
- export const createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
11542
+ export const createCustomerEntitlementV2BodyIssueAmountMin = 0;
11543
+ export const createCustomerEntitlementV2BodyIssuePriorityDefault = 1;
11544
+ export const createCustomerEntitlementV2BodyIssuePriorityMax = 255;
11545
+ export const createCustomerEntitlementV2BodyGrantsItemAmountMin = 0;
11546
+ export const createCustomerEntitlementV2BodyGrantsItemPriorityMax = 255;
11547
+ export const createCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = 0;
11548
+ 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)?)?$/;
11549
+ export const createCustomerEntitlementV2BodyGrantsItemExpirationCountMax = 1000;
11503
11550
  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}$');
11551
+ export const createCustomerEntitlementV2BodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
11552
+ export const createCustomerEntitlementV2BodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11553
+ 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
11554
  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}$');
11555
+ export const createCustomerEntitlementV2BodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
11556
+ export const createCustomerEntitlementV2BodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11557
+ 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
11558
  export const createCustomerEntitlementV2Body = zod
11510
11559
  .union([
11511
11560
  zod
@@ -11522,25 +11571,111 @@ export const createCustomerEntitlementV2Body = zod
11522
11571
  .regex(createCustomerEntitlementV2BodyFeatureKeyRegExp)
11523
11572
  .optional()
11524
11573
  .describe('The feature the subject is entitled to use.\nEither featureKey or featureId is required.'),
11574
+ grants: zod
11575
+ .array(zod
11576
+ .object({
11577
+ amount: zod.coerce
11578
+ .number()
11579
+ .min(createCustomerEntitlementV2BodyGrantsItemAmountMin)
11580
+ .describe('The amount to grant. Should be a positive number.'),
11581
+ annotations: zod
11582
+ .record(zod.string(), zod.any())
11583
+ .describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
11584
+ .optional()
11585
+ .describe('Grant annotations'),
11586
+ effectiveAt: zod.coerce
11587
+ .date()
11588
+ .describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
11589
+ expiration: zod
11590
+ .object({
11591
+ count: zod.coerce
11592
+ .number()
11593
+ .min(1)
11594
+ .max(createCustomerEntitlementV2BodyGrantsItemExpirationCountMax)
11595
+ .describe('The number of time units in the expiration period.'),
11596
+ duration: zod
11597
+ .enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
11598
+ .describe('The expiration duration enum')
11599
+ .describe('The unit of time for the expiration period.'),
11600
+ })
11601
+ .describe('The grant expiration definition')
11602
+ .optional()
11603
+ .describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
11604
+ maxRolloverAmount: zod.coerce
11605
+ .number()
11606
+ .optional()
11607
+ .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))'),
11608
+ metadata: zod
11609
+ .record(zod.string(), zod.coerce.string())
11610
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
11611
+ .optional()
11612
+ .describe('The grant metadata.'),
11613
+ minRolloverAmount: zod.coerce
11614
+ .number()
11615
+ .optional()
11616
+ .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))'),
11617
+ priority: zod.coerce
11618
+ .number()
11619
+ .min(1)
11620
+ .max(createCustomerEntitlementV2BodyGrantsItemPriorityMax)
11621
+ .optional()
11622
+ .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.'),
11623
+ recurrence: zod
11624
+ .object({
11625
+ anchor: zod.coerce
11626
+ .date()
11627
+ .optional()
11628
+ .describe('A date-time anchor to base the recurring period on.'),
11629
+ interval: zod
11630
+ .union([
11631
+ zod.coerce
11632
+ .string()
11633
+ .regex(createCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo),
11634
+ zod
11635
+ .enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
11636
+ .describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
11637
+ ])
11638
+ .describe('Period duration for the recurrence')
11639
+ .describe('The unit of time for the interval.'),
11640
+ })
11641
+ .describe('Recurring period with an interval and an anchor.')
11642
+ .optional()
11643
+ .describe('The subject of the grant.'),
11644
+ })
11645
+ .describe('The grant creation input.'))
11646
+ .optional()
11647
+ .describe('Grants'),
11525
11648
  isSoftLimit: zod.coerce
11526
11649
  .boolean()
11527
11650
  .optional()
11528
11651
  .describe('If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.'),
11652
+ issue: zod
11653
+ .object({
11654
+ amount: zod.coerce
11655
+ .number()
11656
+ .min(createCustomerEntitlementV2BodyIssueAmountMin)
11657
+ .describe('The initial grant amount'),
11658
+ priority: zod.coerce
11659
+ .number()
11660
+ .min(1)
11661
+ .max(createCustomerEntitlementV2BodyIssuePriorityMax)
11662
+ .default(createCustomerEntitlementV2BodyIssuePriorityDefault)
11663
+ .describe('The priority of the issue after reset'),
11664
+ })
11665
+ .describe('Issue after reset')
11666
+ .optional()
11667
+ .describe('Issue after reset'),
11529
11668
  issueAfterReset: zod.coerce
11530
11669
  .number()
11531
11670
  .min(createCustomerEntitlementV2BodyIssueAfterResetMin)
11532
11671
  .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.'),
11672
+ .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
11673
  issueAfterResetPriority: zod.coerce
11535
11674
  .number()
11536
11675
  .min(1)
11537
11676
  .max(createCustomerEntitlementV2BodyIssueAfterResetPriorityMax)
11538
11677
  .default(createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault)
11539
11678
  .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
11679
  measureUsageFrom: zod
11545
11680
  .union([
11546
11681
  zod
@@ -11584,7 +11719,7 @@ export const createCustomerEntitlementV2Body = zod
11584
11719
  .describe('Recurring period with an interval and an anchor.')
11585
11720
  .describe('The usage period associated with the entitlement.'),
11586
11721
  })
11587
- .describe('Create inpurs for metered entitlement'),
11722
+ .describe('Create inputs for metered entitlement'),
11588
11723
  zod
11589
11724
  .object({
11590
11725
  config: zod.coerce
@@ -11680,6 +11815,8 @@ export const createCustomerEntitlementV2Body = zod
11680
11815
  * List all entitlements for a customer. For checking entitlement access, use the /value endpoint instead.
11681
11816
  * @summary List customer entitlements
11682
11817
  */
11818
+ export const listCustomerEntitlementsV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11819
+ export const listCustomerEntitlementsV2PathCustomerIdOrKeyMaxTwo = 256;
11683
11820
  export const listCustomerEntitlementsV2Params = zod.object({
11684
11821
  customerIdOrKey: zod.union([
11685
11822
  zod.coerce
@@ -11721,8 +11858,10 @@ export const listCustomerEntitlementsV2QueryParams = zod.object({
11721
11858
  If featureKey is used, the entitlement is resolved for the current timestamp.
11722
11859
  * @summary Get customer entitlement
11723
11860
  */
11861
+ export const getCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11862
+ export const getCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
11724
11863
  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}$');
11864
+ export const getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11726
11865
  export const getCustomerEntitlementV2Params = zod.object({
11727
11866
  customerIdOrKey: zod.union([
11728
11867
  zod.coerce
@@ -11746,8 +11885,10 @@ export const getCustomerEntitlementV2Params = zod.object({
11746
11885
  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
11886
  * @summary Delete customer entitlement
11748
11887
  */
11888
+ export const deleteCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11889
+ export const deleteCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
11749
11890
  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}$');
11891
+ export const deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11751
11892
  export const deleteCustomerEntitlementV2Params = zod.object({
11752
11893
  customerIdOrKey: zod.union([
11753
11894
  zod.coerce
@@ -11770,8 +11911,10 @@ export const deleteCustomerEntitlementV2Params = zod.object({
11770
11911
  * List all grants issued for an entitlement. The entitlement can be defined either by its id or featureKey.
11771
11912
  * @summary List customer entitlement grants
11772
11913
  */
11914
+ export const listCustomerEntitlementGrantsV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11915
+ export const listCustomerEntitlementGrantsV2PathCustomerIdOrKeyMaxTwo = 256;
11773
11916
  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}$');
11917
+ export const listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11775
11918
  export const listCustomerEntitlementGrantsV2Params = zod.object({
11776
11919
  customerIdOrKey: zod.union([
11777
11920
  zod.coerce
@@ -11842,8 +11985,10 @@ Rollover settings define what happens to the remaining balance of a grant at a r
11842
11985
  Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
11843
11986
  * @summary Create customer entitlement grant
11844
11987
  */
11988
+ export const createCustomerEntitlementGrantV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11989
+ export const createCustomerEntitlementGrantV2PathCustomerIdOrKeyMaxTwo = 256;
11845
11990
  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}$');
11991
+ export const createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11847
11992
  export const createCustomerEntitlementGrantV2Params = zod.object({
11848
11993
  customerIdOrKey: zod.union([
11849
11994
  zod.coerce
@@ -11864,15 +12009,20 @@ export const createCustomerEntitlementGrantV2Params = zod.object({
11864
12009
  });
11865
12010
  export const createCustomerEntitlementGrantV2BodyAmountMin = 0;
11866
12011
  export const createCustomerEntitlementGrantV2BodyPriorityMax = 255;
11867
- export const createCustomerEntitlementGrantV2BodyExpirationCountMax = 1000;
11868
- export const createCustomerEntitlementGrantV2BodyMaxRolloverAmountDefault = 0;
11869
12012
  export const createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = 0;
12013
+ 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)?)?$/;
12014
+ export const createCustomerEntitlementGrantV2BodyExpirationCountMax = 1000;
11870
12015
  export const createCustomerEntitlementGrantV2Body = zod
11871
12016
  .object({
11872
12017
  amount: zod.coerce
11873
12018
  .number()
11874
12019
  .min(createCustomerEntitlementGrantV2BodyAmountMin)
11875
12020
  .describe('The amount to grant. Should be a positive number.'),
12021
+ annotations: zod
12022
+ .record(zod.string(), zod.any())
12023
+ .describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
12024
+ .optional()
12025
+ .describe('Grant annotations'),
11876
12026
  effectiveAt: zod.coerce
11877
12027
  .date()
11878
12028
  .describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
@@ -11889,11 +12039,12 @@ export const createCustomerEntitlementGrantV2Body = zod
11889
12039
  .describe('The unit of time for the expiration period.'),
11890
12040
  })
11891
12041
  .describe('The grant expiration definition')
11892
- .describe('The grant expiration definition'),
12042
+ .optional()
12043
+ .describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
11893
12044
  maxRolloverAmount: zod.coerce
11894
12045
  .number()
11895
12046
  .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))'),
12047
+ .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
12048
  metadata: zod
11898
12049
  .record(zod.string(), zod.coerce.string())
11899
12050
  .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
@@ -11940,8 +12091,10 @@ BurndownHistory returns a continous history of segments, where the segments are
11940
12091
  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
12092
  * @summary Get customer entitlement history
11942
12093
  */
12094
+ export const getCustomerEntitlementHistoryV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12095
+ export const getCustomerEntitlementHistoryV2PathCustomerIdOrKeyMaxTwo = 256;
11943
12096
  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}$');
12097
+ export const getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
11945
12098
  export const getCustomerEntitlementHistoryV2Params = zod.object({
11946
12099
  customerIdOrKey: zod.union([
11947
12100
  zod.coerce
@@ -11984,6 +12137,10 @@ export const getCustomerEntitlementHistoryV2QueryParams = zod.object({
11984
12137
  This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
11985
12138
  * @summary Override customer entitlement
11986
12139
  */
12140
+ export const overrideCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12141
+ export const overrideCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
12142
+ export const overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12143
+ export const overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMaxTwo = 256;
11987
12144
  export const overrideCustomerEntitlementV2Params = zod.object({
11988
12145
  customerIdOrKey: zod.union([
11989
12146
  zod.coerce
@@ -12009,20 +12166,30 @@ export const overrideCustomerEntitlementV2Params = zod.object({
12009
12166
  ]),
12010
12167
  });
12011
12168
  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}$');
12169
+ export const overrideCustomerEntitlementV2BodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
12170
+ export const overrideCustomerEntitlementV2BodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12014
12171
  export const overrideCustomerEntitlementV2BodyIsSoftLimitDefault = false;
12015
- export const overrideCustomerEntitlementV2BodyIsUnlimitedDefault = false;
12172
+ 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)?)?$/;
12173
+ export const overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
12016
12174
  export const overrideCustomerEntitlementV2BodyIssueAfterResetMin = 0;
12017
12175
  export const overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = 1;
12018
12176
  export const overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax = 255;
12019
- export const overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
12177
+ export const overrideCustomerEntitlementV2BodyIssueAmountMin = 0;
12178
+ export const overrideCustomerEntitlementV2BodyIssuePriorityDefault = 1;
12179
+ export const overrideCustomerEntitlementV2BodyIssuePriorityMax = 255;
12180
+ export const overrideCustomerEntitlementV2BodyGrantsItemAmountMin = 0;
12181
+ export const overrideCustomerEntitlementV2BodyGrantsItemPriorityMax = 255;
12182
+ export const overrideCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = 0;
12183
+ 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)?)?$/;
12184
+ export const overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax = 1000;
12020
12185
  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}$');
12186
+ export const overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
12187
+ export const overrideCustomerEntitlementV2BodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12188
+ 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
12189
  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}$');
12190
+ export const overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
12191
+ export const overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12192
+ 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
12193
  export const overrideCustomerEntitlementV2Body = zod
12027
12194
  .union([
12028
12195
  zod
@@ -12039,25 +12206,111 @@ export const overrideCustomerEntitlementV2Body = zod
12039
12206
  .regex(overrideCustomerEntitlementV2BodyFeatureKeyRegExp)
12040
12207
  .optional()
12041
12208
  .describe('The feature the subject is entitled to use.\nEither featureKey or featureId is required.'),
12209
+ grants: zod
12210
+ .array(zod
12211
+ .object({
12212
+ amount: zod.coerce
12213
+ .number()
12214
+ .min(overrideCustomerEntitlementV2BodyGrantsItemAmountMin)
12215
+ .describe('The amount to grant. Should be a positive number.'),
12216
+ annotations: zod
12217
+ .record(zod.string(), zod.any())
12218
+ .describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
12219
+ .optional()
12220
+ .describe('Grant annotations'),
12221
+ effectiveAt: zod.coerce
12222
+ .date()
12223
+ .describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
12224
+ expiration: zod
12225
+ .object({
12226
+ count: zod.coerce
12227
+ .number()
12228
+ .min(1)
12229
+ .max(overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax)
12230
+ .describe('The number of time units in the expiration period.'),
12231
+ duration: zod
12232
+ .enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
12233
+ .describe('The expiration duration enum')
12234
+ .describe('The unit of time for the expiration period.'),
12235
+ })
12236
+ .describe('The grant expiration definition')
12237
+ .optional()
12238
+ .describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
12239
+ maxRolloverAmount: zod.coerce
12240
+ .number()
12241
+ .optional()
12242
+ .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))'),
12243
+ metadata: zod
12244
+ .record(zod.string(), zod.coerce.string())
12245
+ .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
12246
+ .optional()
12247
+ .describe('The grant metadata.'),
12248
+ minRolloverAmount: zod.coerce
12249
+ .number()
12250
+ .optional()
12251
+ .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))'),
12252
+ priority: zod.coerce
12253
+ .number()
12254
+ .min(1)
12255
+ .max(overrideCustomerEntitlementV2BodyGrantsItemPriorityMax)
12256
+ .optional()
12257
+ .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.'),
12258
+ recurrence: zod
12259
+ .object({
12260
+ anchor: zod.coerce
12261
+ .date()
12262
+ .optional()
12263
+ .describe('A date-time anchor to base the recurring period on.'),
12264
+ interval: zod
12265
+ .union([
12266
+ zod.coerce
12267
+ .string()
12268
+ .regex(overrideCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo),
12269
+ zod
12270
+ .enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
12271
+ .describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
12272
+ ])
12273
+ .describe('Period duration for the recurrence')
12274
+ .describe('The unit of time for the interval.'),
12275
+ })
12276
+ .describe('Recurring period with an interval and an anchor.')
12277
+ .optional()
12278
+ .describe('The subject of the grant.'),
12279
+ })
12280
+ .describe('The grant creation input.'))
12281
+ .optional()
12282
+ .describe('Grants'),
12042
12283
  isSoftLimit: zod.coerce
12043
12284
  .boolean()
12044
12285
  .optional()
12045
12286
  .describe('If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.'),
12287
+ issue: zod
12288
+ .object({
12289
+ amount: zod.coerce
12290
+ .number()
12291
+ .min(overrideCustomerEntitlementV2BodyIssueAmountMin)
12292
+ .describe('The initial grant amount'),
12293
+ priority: zod.coerce
12294
+ .number()
12295
+ .min(1)
12296
+ .max(overrideCustomerEntitlementV2BodyIssuePriorityMax)
12297
+ .default(overrideCustomerEntitlementV2BodyIssuePriorityDefault)
12298
+ .describe('The priority of the issue after reset'),
12299
+ })
12300
+ .describe('Issue after reset')
12301
+ .optional()
12302
+ .describe('Issue after reset'),
12046
12303
  issueAfterReset: zod.coerce
12047
12304
  .number()
12048
12305
  .min(overrideCustomerEntitlementV2BodyIssueAfterResetMin)
12049
12306
  .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.'),
12307
+ .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
12308
  issueAfterResetPriority: zod.coerce
12052
12309
  .number()
12053
12310
  .min(1)
12054
12311
  .max(overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax)
12055
12312
  .default(overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault)
12056
12313
  .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
12314
  measureUsageFrom: zod
12062
12315
  .union([
12063
12316
  zod
@@ -12101,7 +12354,7 @@ export const overrideCustomerEntitlementV2Body = zod
12101
12354
  .describe('Recurring period with an interval and an anchor.')
12102
12355
  .describe('The usage period associated with the entitlement.'),
12103
12356
  })
12104
- .describe('Create inpurs for metered entitlement'),
12357
+ .describe('Create inputs for metered entitlement'),
12105
12358
  zod
12106
12359
  .object({
12107
12360
  config: zod.coerce
@@ -12199,8 +12452,10 @@ export const overrideCustomerEntitlementV2Body = zod
12199
12452
  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
12453
  * @summary Reset customer entitlement
12201
12454
  */
12455
+ export const resetCustomerEntitlementUsageV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12456
+ export const resetCustomerEntitlementUsageV2PathCustomerIdOrKeyMaxTwo = 256;
12202
12457
  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}$');
12458
+ export const resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12204
12459
  export const resetCustomerEntitlementUsageV2Params = zod.object({
12205
12460
  customerIdOrKey: zod.union([
12206
12461
  zod.coerce
@@ -12239,8 +12494,10 @@ export const resetCustomerEntitlementUsageV2Body = zod
12239
12494
  * 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
12495
  * @summary Get customer entitlement value
12241
12496
  */
12497
+ export const getCustomerEntitlementValueV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12498
+ export const getCustomerEntitlementValueV2PathCustomerIdOrKeyMaxTwo = 256;
12242
12499
  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}$');
12500
+ export const getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12244
12501
  export const getCustomerEntitlementValueV2Params = zod.object({
12245
12502
  customerIdOrKey: zod.union([
12246
12503
  zod.coerce
@@ -12330,7 +12587,7 @@ export const listEntitlementsV2QueryParams = zod.object({
12330
12587
  * Get entitlement by id.
12331
12588
  * @summary Get entitlement by id
12332
12589
  */
12333
- export const getEntitlementByIdV2PathEntitlementIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
12590
+ export const getEntitlementByIdV2PathEntitlementIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12334
12591
  export const getEntitlementByIdV2Params = zod.object({
12335
12592
  entitlementId: zod.coerce
12336
12593
  .string()
@@ -12367,6 +12624,8 @@ To fetch the grants of a specific entitlement please use the /api/v2/customers/{
12367
12624
  If page is provided that takes precedence and the paginated response is returned.
12368
12625
  * @summary List grants
12369
12626
  */
12627
+ export const listGrantsV2QueryCustomerItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
12628
+ export const listGrantsV2QueryCustomerItemMaxTwo = 256;
12370
12629
  export const listGrantsV2QueryIncludeDeletedDefault = false;
12371
12630
  export const listGrantsV2QueryPageDefault = 1;
12372
12631
  export const listGrantsV2QueryPageSizeDefault = 100;