autumn-js 1.4.47 → 1.4.49

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 (116) hide show
  1. package/dist/backend/adapters/express.js +1780 -792
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +1780 -792
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +1780 -792
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +1780 -792
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +1780 -792
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
  12. package/dist/backend/{chunk-XSFLWMJO.mjs → chunk-6X4JZECX.mjs} +1 -1
  13. package/dist/backend/{chunk-BRCDWBVZ.mjs → chunk-EUR3CZTF.mjs} +1 -1
  14. package/dist/backend/{chunk-LPQJUWEP.mjs → chunk-EVPPOVX5.mjs} +2 -2
  15. package/dist/{better-auth/chunk-U4Z36UKV.mjs → backend/chunk-L4HKBZCC.mjs} +1773 -1168
  16. package/dist/backend/{chunk-QXN5PMM3.mjs → chunk-N2SCUJPL.mjs} +2 -2
  17. package/dist/backend/{chunk-P5IBHZVY.mjs → chunk-QPDWSMZ5.mjs} +1 -1
  18. package/dist/backend/{chunk-BAMETKFC.mjs → chunk-XIBFK5EL.mjs} +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +1780 -792
  22. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/handleRouteByName.js +1780 -792
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +1780 -792
  30. package/dist/backend/core/handlers/index.mjs +4 -4
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +1780 -792
  34. package/dist/backend/core/index.mjs +4 -4
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.js +220 -60
  38. package/dist/backend/core/routes/index.mjs +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.js +220 -60
  44. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  45. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  47. package/dist/backend/core/types/index.d.mts +1 -1
  48. package/dist/backend/core/types/index.d.ts +1 -1
  49. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  51. package/dist/backend/index.d.mts +2 -2
  52. package/dist/backend/index.d.ts +2 -2
  53. package/dist/backend/index.js +1780 -792
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-4Nvx_kS7.d.mts → routeTypes-C_10hxA-.d.mts} +916 -130
  56. package/dist/backend/{routeTypes-5NBu7O27.d.ts → routeTypes-CqaUPWtn.d.ts} +916 -130
  57. package/dist/{backend/chunk-QPCIJMW3.mjs → better-auth/chunk-44MLRR2L.mjs} +1996 -945
  58. package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
  59. package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
  60. package/dist/better-auth/index.js +1780 -792
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +1780 -792
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +1780 -792
  67. package/dist/better-auth/utils/index.mjs +3 -3
  68. package/dist/react/AutumnContext.d.mts +4 -4
  69. package/dist/react/AutumnContext.d.ts +4 -4
  70. package/dist/react/client/AutumnClient.d.mts +4 -4
  71. package/dist/react/client/AutumnClient.d.ts +4 -4
  72. package/dist/react/client/IAutumnClient.d.mts +4 -4
  73. package/dist/react/client/IAutumnClient.d.ts +4 -4
  74. package/dist/react/client/index.d.mts +4 -4
  75. package/dist/react/client/index.d.ts +4 -4
  76. package/dist/react/{customer-Bf5yt0Mo.d.mts → customer-BK_WEJ0J.d.mts} +17 -1
  77. package/dist/react/{customer-BQxqzdSE.d.ts → customer-CGLAquo9.d.ts} +17 -1
  78. package/dist/react/hooks/index.d.mts +4 -4
  79. package/dist/react/hooks/index.d.ts +4 -4
  80. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  81. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  82. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  83. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  84. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  85. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  86. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  87. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  88. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  89. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  90. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  91. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  92. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  93. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  94. package/dist/react/hooks/useCustomer.d.mts +3 -3
  95. package/dist/react/hooks/useCustomer.d.ts +3 -3
  96. package/dist/react/hooks/useEntity.d.mts +2 -2
  97. package/dist/react/hooks/useEntity.d.ts +2 -2
  98. package/dist/react/hooks/useListEvents.d.mts +2 -2
  99. package/dist/react/hooks/useListEvents.d.ts +2 -2
  100. package/dist/react/hooks/useListPlans.d.mts +3 -3
  101. package/dist/react/hooks/useListPlans.d.ts +3 -3
  102. package/dist/react/hooks/useReferrals.d.mts +2 -2
  103. package/dist/react/hooks/useReferrals.d.ts +2 -2
  104. package/dist/react/index.d.mts +4 -4
  105. package/dist/react/index.d.ts +4 -4
  106. package/dist/react/{list-plans-response-CgqelDUJ.d.mts → list-plans-response-BMWMbzkK.d.ts} +89 -20
  107. package/dist/react/{list-plans-response-jYoBA-Ci.d.ts → list-plans-response-kbT4GwSh.d.mts} +89 -20
  108. package/dist/react/{params-B3qR55v_.d.ts → params-D_8sPp60.d.ts} +258 -40
  109. package/dist/react/{params-DWlWVt04.d.mts → params-eTM9nRBb.d.mts} +258 -40
  110. package/dist/react/{plan-BoEfV7t8.d.mts → plan-Dji-zdws.d.mts} +53 -7
  111. package/dist/react/{plan-BoEfV7t8.d.ts → plan-Dji-zdws.d.ts} +53 -7
  112. package/dist/sdk/index.d.mts +2323 -1205
  113. package/dist/sdk/index.d.ts +2323 -1205
  114. package/dist/sdk/index.js +21373 -20046
  115. package/dist/sdk/index.mjs +21237 -20046
  116. package/package.json +2 -2
@@ -1,6 +1,233 @@
1
1
  import {
2
- AutumnError
3
- } from "./chunk-J44WR3QZ.mjs";
2
+ resolveIdentityFromScope
3
+ } from "./chunk-J2WYVGHS.mjs";
4
+ import {
5
+ backendError,
6
+ backendSuccess,
7
+ isBackendResult,
8
+ routeConfigs,
9
+ sanitizeBody,
10
+ secretKeyCheck
11
+ } from "./chunk-ZHYDDOAE.mjs";
12
+ import {
13
+ getActiveOrganization
14
+ } from "./chunk-BT3EAYVW.mjs";
15
+
16
+ // src/better-auth/utils/handleBetterAuthRoute.ts
17
+ import { getSessionFromCtx } from "better-auth/api";
18
+
19
+ // ../sdk/src/lib/url.ts
20
+ var hasOwn = Object.prototype.hasOwnProperty;
21
+ function pathToFunc(pathPattern, options) {
22
+ const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
23
+ return function buildURLPath(params = {}) {
24
+ return pathPattern.replace(paramRE, function(_, placeholder) {
25
+ if (!hasOwn.call(params, placeholder)) {
26
+ throw new Error(`Parameter '${placeholder}' is required`);
27
+ }
28
+ const value = params[placeholder];
29
+ if (typeof value !== "string" && typeof value !== "number") {
30
+ throw new Error(
31
+ `Parameter '${placeholder}' must be a string or number`
32
+ );
33
+ }
34
+ return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
35
+ }).replace(/^\/+/, "");
36
+ };
37
+ }
38
+
39
+ // ../sdk/src/lib/config.ts
40
+ var ServerList = [
41
+ /**
42
+ * Production server
43
+ */
44
+ "https://api.useautumn.com"
45
+ ];
46
+ function serverURLFromOptions(options) {
47
+ let serverURL = options.serverURL;
48
+ const params = {};
49
+ if (!serverURL) {
50
+ const serverIdx = options.serverIdx ?? 0;
51
+ if (serverIdx < 0 || serverIdx >= ServerList.length) {
52
+ throw new Error(`Invalid server index ${serverIdx}`);
53
+ }
54
+ serverURL = ServerList[serverIdx] || "";
55
+ }
56
+ const u = pathToFunc(serverURL)(params);
57
+ return new URL(u);
58
+ }
59
+ var SDK_METADATA = {
60
+ language: "typescript",
61
+ openapiDocVersion: "2.5.0",
62
+ sdkVersion: "0.10.18",
63
+ genVersion: "2.884.13",
64
+ userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
65
+ };
66
+
67
+ // ../sdk/src/lib/http.ts
68
+ var DEFAULT_FETCHER = (input, init) => {
69
+ if (init == null) {
70
+ return fetch(input);
71
+ } else {
72
+ return fetch(input, init);
73
+ }
74
+ };
75
+ var HTTPClient = class _HTTPClient {
76
+ constructor(options = {}) {
77
+ this.options = options;
78
+ this.fetcher = options.fetcher || DEFAULT_FETCHER;
79
+ }
80
+ fetcher;
81
+ requestHooks = [];
82
+ requestErrorHooks = [];
83
+ responseHooks = [];
84
+ async request(request) {
85
+ let req = request;
86
+ for (const hook of this.requestHooks) {
87
+ const nextRequest = await hook(req);
88
+ if (nextRequest) {
89
+ req = nextRequest;
90
+ }
91
+ }
92
+ try {
93
+ const res = await this.fetcher(req);
94
+ for (const hook of this.responseHooks) {
95
+ await hook(res, req);
96
+ }
97
+ return res;
98
+ } catch (err) {
99
+ for (const hook of this.requestErrorHooks) {
100
+ await hook(err, req);
101
+ }
102
+ throw err;
103
+ }
104
+ }
105
+ addHook(...args) {
106
+ if (args[0] === "beforeRequest") {
107
+ this.requestHooks.push(args[1]);
108
+ } else if (args[0] === "requestError") {
109
+ this.requestErrorHooks.push(args[1]);
110
+ } else if (args[0] === "response") {
111
+ this.responseHooks.push(args[1]);
112
+ } else {
113
+ throw new Error(`Invalid hook type: ${args[0]}`);
114
+ }
115
+ return this;
116
+ }
117
+ removeHook(...args) {
118
+ let target;
119
+ if (args[0] === "beforeRequest") {
120
+ target = this.requestHooks;
121
+ } else if (args[0] === "requestError") {
122
+ target = this.requestErrorHooks;
123
+ } else if (args[0] === "response") {
124
+ target = this.responseHooks;
125
+ } else {
126
+ throw new Error(`Invalid hook type: ${args[0]}`);
127
+ }
128
+ const index = target.findIndex((v) => v === args[1]);
129
+ if (index >= 0) {
130
+ target.splice(index, 1);
131
+ }
132
+ return this;
133
+ }
134
+ clone() {
135
+ const child = new _HTTPClient(this.options);
136
+ child.requestHooks = this.requestHooks.slice();
137
+ child.requestErrorHooks = this.requestErrorHooks.slice();
138
+ child.responseHooks = this.responseHooks.slice();
139
+ return child;
140
+ }
141
+ };
142
+ var mediaParamSeparator = /\s*;\s*/g;
143
+ function matchContentType(response, pattern) {
144
+ if (pattern === "*") {
145
+ return true;
146
+ }
147
+ let contentType = response.headers.get("content-type")?.trim() || "application/octet-stream";
148
+ contentType = contentType.toLowerCase();
149
+ const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator);
150
+ const [wantType = "", ...wantParams] = wantParts;
151
+ if (wantType.split("/").length !== 2) {
152
+ return false;
153
+ }
154
+ const gotParts = contentType.split(mediaParamSeparator);
155
+ const [gotType = "", ...gotParams] = gotParts;
156
+ const [type = "", subtype = ""] = gotType.split("/");
157
+ if (!type || !subtype) {
158
+ return false;
159
+ }
160
+ if (wantType !== "*/*" && gotType !== wantType && `${type}/*` !== wantType && `*/${subtype}` !== wantType) {
161
+ return false;
162
+ }
163
+ if (gotParams.length < wantParams.length) {
164
+ return false;
165
+ }
166
+ const params = new Set(gotParams);
167
+ for (const wantParam of wantParams) {
168
+ if (!params.has(wantParam)) {
169
+ return false;
170
+ }
171
+ }
172
+ return true;
173
+ }
174
+ var codeRangeRE = new RegExp("^[0-9]xx$", "i");
175
+ function matchStatusCode(response, codes) {
176
+ const actual = `${response.status}`;
177
+ const expectedCodes = Array.isArray(codes) ? codes : [codes];
178
+ if (!expectedCodes.length) {
179
+ return false;
180
+ }
181
+ return expectedCodes.some((ec) => {
182
+ const code = `${ec}`;
183
+ if (code === "default") {
184
+ return true;
185
+ }
186
+ if (!codeRangeRE.test(`${code}`)) {
187
+ return code === actual;
188
+ }
189
+ const expectFamily = code.charAt(0);
190
+ if (!expectFamily) {
191
+ throw new Error("Invalid status code range");
192
+ }
193
+ const actualFamily = actual.charAt(0);
194
+ if (!actualFamily) {
195
+ throw new Error(`Invalid response status code: ${actual}`);
196
+ }
197
+ return actualFamily === expectFamily;
198
+ });
199
+ }
200
+ function matchResponse(response, code, contentTypePattern) {
201
+ return matchStatusCode(response, code) && matchContentType(response, contentTypePattern);
202
+ }
203
+ function isConnectionError(err) {
204
+ if (typeof err !== "object" || err == null) {
205
+ return false;
206
+ }
207
+ const isBrowserErr = err instanceof TypeError && err.message.toLowerCase().startsWith("failed to fetch");
208
+ const isNodeErr = err instanceof TypeError && err.message.toLowerCase().startsWith("fetch failed");
209
+ const isBunErr = "name" in err && err.name === "ConnectionError";
210
+ const isGenericErr = "code" in err && typeof err.code === "string" && err.code.toLowerCase() === "econnreset";
211
+ return isBrowserErr || isNodeErr || isGenericErr || isBunErr;
212
+ }
213
+ function isTimeoutError(err) {
214
+ if (typeof err !== "object" || err == null) {
215
+ return false;
216
+ }
217
+ const isNative = "name" in err && err.name === "TimeoutError";
218
+ const isLegacyNative = "code" in err && err.code === 23;
219
+ const isGenericErr = "code" in err && typeof err.code === "string" && err.code.toLowerCase() === "econnaborted";
220
+ return isNative || isLegacyNative || isGenericErr;
221
+ }
222
+ function isAbortError(err) {
223
+ if (typeof err !== "object" || err == null) {
224
+ return false;
225
+ }
226
+ const isNative = "name" in err && err.name === "AbortError";
227
+ const isLegacyNative = "code" in err && err.code === 20;
228
+ const isGenericErr = "code" in err && typeof err.code === "string" && err.code.toLowerCase() === "econnaborted";
229
+ return isNative || isLegacyNative || isGenericErr;
230
+ }
4
231
 
5
232
  // ../sdk/src/funcs/batch-track.ts
6
233
  import * as z124 from "zod/v4-mini";
@@ -250,170 +477,28 @@ var encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
250
477
  var encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
251
478
  var encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
252
479
 
253
- // ../sdk/src/lib/http.ts
254
- var DEFAULT_FETCHER = (input, init) => {
255
- if (init == null) {
256
- return fetch(input);
257
- } else {
258
- return fetch(input, init);
259
- }
260
- };
261
- var HTTPClient = class _HTTPClient {
262
- constructor(options = {}) {
263
- this.options = options;
264
- this.fetcher = options.fetcher || DEFAULT_FETCHER;
265
- }
266
- fetcher;
267
- requestHooks = [];
268
- requestErrorHooks = [];
269
- responseHooks = [];
270
- async request(request) {
271
- let req = request;
272
- for (const hook of this.requestHooks) {
273
- const nextRequest = await hook(req);
274
- if (nextRequest) {
275
- req = nextRequest;
276
- }
277
- }
278
- try {
279
- const res = await this.fetcher(req);
280
- for (const hook of this.responseHooks) {
281
- await hook(res, req);
282
- }
283
- return res;
284
- } catch (err) {
285
- for (const hook of this.requestErrorHooks) {
286
- await hook(err, req);
287
- }
288
- throw err;
289
- }
290
- }
291
- addHook(...args) {
292
- if (args[0] === "beforeRequest") {
293
- this.requestHooks.push(args[1]);
294
- } else if (args[0] === "requestError") {
295
- this.requestErrorHooks.push(args[1]);
296
- } else if (args[0] === "response") {
297
- this.responseHooks.push(args[1]);
298
- } else {
299
- throw new Error(`Invalid hook type: ${args[0]}`);
300
- }
301
- return this;
302
- }
303
- removeHook(...args) {
304
- let target;
305
- if (args[0] === "beforeRequest") {
306
- target = this.requestHooks;
307
- } else if (args[0] === "requestError") {
308
- target = this.requestErrorHooks;
309
- } else if (args[0] === "response") {
310
- target = this.responseHooks;
311
- } else {
312
- throw new Error(`Invalid hook type: ${args[0]}`);
313
- }
314
- const index = target.findIndex((v) => v === args[1]);
315
- if (index >= 0) {
316
- target.splice(index, 1);
317
- }
318
- return this;
319
- }
320
- clone() {
321
- const child = new _HTTPClient(this.options);
322
- child.requestHooks = this.requestHooks.slice();
323
- child.requestErrorHooks = this.requestErrorHooks.slice();
324
- child.responseHooks = this.responseHooks.slice();
325
- return child;
480
+ // ../sdk/src/models/autumn-error.ts
481
+ var AutumnError = class extends Error {
482
+ /** HTTP status code */
483
+ statusCode;
484
+ /** HTTP body */
485
+ body;
486
+ /** HTTP headers */
487
+ headers;
488
+ /** HTTP content type */
489
+ contentType;
490
+ /** Raw response */
491
+ rawResponse;
492
+ constructor(message, httpMeta) {
493
+ super(message);
494
+ this.statusCode = httpMeta.response.status;
495
+ this.body = httpMeta.body;
496
+ this.headers = httpMeta.response.headers;
497
+ this.contentType = httpMeta.response.headers.get("content-type") || "";
498
+ this.rawResponse = httpMeta.response;
499
+ this.name = "AutumnError";
326
500
  }
327
501
  };
328
- var mediaParamSeparator = /\s*;\s*/g;
329
- function matchContentType(response, pattern) {
330
- if (pattern === "*") {
331
- return true;
332
- }
333
- let contentType = response.headers.get("content-type")?.trim() || "application/octet-stream";
334
- contentType = contentType.toLowerCase();
335
- const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator);
336
- const [wantType = "", ...wantParams] = wantParts;
337
- if (wantType.split("/").length !== 2) {
338
- return false;
339
- }
340
- const gotParts = contentType.split(mediaParamSeparator);
341
- const [gotType = "", ...gotParams] = gotParts;
342
- const [type = "", subtype = ""] = gotType.split("/");
343
- if (!type || !subtype) {
344
- return false;
345
- }
346
- if (wantType !== "*/*" && gotType !== wantType && `${type}/*` !== wantType && `*/${subtype}` !== wantType) {
347
- return false;
348
- }
349
- if (gotParams.length < wantParams.length) {
350
- return false;
351
- }
352
- const params = new Set(gotParams);
353
- for (const wantParam of wantParams) {
354
- if (!params.has(wantParam)) {
355
- return false;
356
- }
357
- }
358
- return true;
359
- }
360
- var codeRangeRE = new RegExp("^[0-9]xx$", "i");
361
- function matchStatusCode(response, codes) {
362
- const actual = `${response.status}`;
363
- const expectedCodes = Array.isArray(codes) ? codes : [codes];
364
- if (!expectedCodes.length) {
365
- return false;
366
- }
367
- return expectedCodes.some((ec) => {
368
- const code = `${ec}`;
369
- if (code === "default") {
370
- return true;
371
- }
372
- if (!codeRangeRE.test(`${code}`)) {
373
- return code === actual;
374
- }
375
- const expectFamily = code.charAt(0);
376
- if (!expectFamily) {
377
- throw new Error("Invalid status code range");
378
- }
379
- const actualFamily = actual.charAt(0);
380
- if (!actualFamily) {
381
- throw new Error(`Invalid response status code: ${actual}`);
382
- }
383
- return actualFamily === expectFamily;
384
- });
385
- }
386
- function matchResponse(response, code, contentTypePattern) {
387
- return matchStatusCode(response, code) && matchContentType(response, contentTypePattern);
388
- }
389
- function isConnectionError(err) {
390
- if (typeof err !== "object" || err == null) {
391
- return false;
392
- }
393
- const isBrowserErr = err instanceof TypeError && err.message.toLowerCase().startsWith("failed to fetch");
394
- const isNodeErr = err instanceof TypeError && err.message.toLowerCase().startsWith("fetch failed");
395
- const isBunErr = "name" in err && err.name === "ConnectionError";
396
- const isGenericErr = "code" in err && typeof err.code === "string" && err.code.toLowerCase() === "econnreset";
397
- return isBrowserErr || isNodeErr || isGenericErr || isBunErr;
398
- }
399
- function isTimeoutError(err) {
400
- if (typeof err !== "object" || err == null) {
401
- return false;
402
- }
403
- const isNative = "name" in err && err.name === "TimeoutError";
404
- const isLegacyNative = "code" in err && err.code === 23;
405
- const isGenericErr = "code" in err && typeof err.code === "string" && err.code.toLowerCase() === "econnaborted";
406
- return isNative || isLegacyNative || isGenericErr;
407
- }
408
- function isAbortError(err) {
409
- if (typeof err !== "object" || err == null) {
410
- return false;
411
- }
412
- const isNative = "name" in err && err.name === "AbortError";
413
- const isLegacyNative = "code" in err && err.code === 20;
414
- const isGenericErr = "code" in err && typeof err.code === "string" && err.code.toLowerCase() === "econnaborted";
415
- return isNative || isLegacyNative || isGenericErr;
416
- }
417
502
 
418
503
  // ../sdk/src/models/autumn-default-error.ts
419
504
  var AutumnDefaultError = class extends AutumnError {
@@ -925,26 +1010,6 @@ async function extractSecurity(sec) {
925
1010
  return typeof sec === "function" ? sec() : sec;
926
1011
  }
927
1012
 
928
- // ../sdk/src/lib/url.ts
929
- var hasOwn = Object.prototype.hasOwnProperty;
930
- function pathToFunc(pathPattern, options) {
931
- const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
932
- return function buildURLPath(params = {}) {
933
- return pathPattern.replace(paramRE, function(_, placeholder) {
934
- if (!hasOwn.call(params, placeholder)) {
935
- throw new Error(`Parameter '${placeholder}' is required`);
936
- }
937
- const value = params[placeholder];
938
- if (typeof value !== "string" && typeof value !== "number") {
939
- throw new Error(
940
- `Parameter '${placeholder}' must be a string or number`
941
- );
942
- }
943
- return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
944
- }).replace(/^\/+/, "");
945
- };
946
- }
947
-
948
1013
  // ../sdk/src/models/advance-test-clock-op.ts
949
1014
  import * as z8 from "zod/v4-mini";
950
1015
 
@@ -1526,7 +1591,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
1526
1591
  // ../sdk/src/models/attach-response.ts
1527
1592
  import * as z14 from "zod/v4-mini";
1528
1593
 
1529
- // ../sdk/src/models/attach-upsert-license-rollover.ts
1594
+ // ../sdk/src/models/attach-upsert-license-proration.ts
1530
1595
  import * as z13 from "zod/v4-mini";
1531
1596
  var AttachDurationType = {
1532
1597
  Day: "day",
@@ -1775,10 +1840,6 @@ var AttachUpsertLicenseOnDecrease = {
1775
1840
  None: "none",
1776
1841
  NoProrations: "no_prorations"
1777
1842
  };
1778
- var AttachUpsertLicenseExpiryDurationType = {
1779
- Month: "month",
1780
- Forever: "forever"
1781
- };
1782
1843
  var AttachFeatureQuantity$outboundSchema = z13.pipe(
1783
1844
  z13.object({
1784
1845
  featureId: z13.string(),
@@ -1943,6 +2004,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
1943
2004
  duration: AttachItemDuration$outboundSchema,
1944
2005
  length: z13.number()
1945
2006
  });
2007
+ var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
2008
+ z13.object({
2009
+ meteredFeatureId: z13.string(),
2010
+ excluded: z13.literal(true)
2011
+ }),
2012
+ z13.transform((v) => {
2013
+ return remap(v, {
2014
+ meteredFeatureId: "metered_feature_id"
2015
+ });
2016
+ })
2017
+ );
1946
2018
  var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
1947
2019
  var AttachDimensionsItem4$outboundSchema = z13.pipe(
1948
2020
  z13.object({
@@ -2127,7 +2199,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
2127
2199
  );
2128
2200
  var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
2129
2201
  z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
2130
- z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
2202
+ z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
2203
+ z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
2131
2204
  ]);
2132
2205
  var AttachItemProviderMarkups$outboundSchema = z13.object({
2133
2206
  markup: z13.number()
@@ -2171,7 +2244,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
2171
2244
  z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
2172
2245
  z13.lazy(
2173
2246
  () => AttachCreditSchemaItem2$outboundSchema
2174
- )
2247
+ ),
2248
+ z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
2175
2249
  ]))),
2176
2250
  markups: z13.optional(z13.lazy(
2177
2251
  () => AttachItemMarkups$outboundSchema
@@ -2322,6 +2396,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
2322
2396
  duration: AttachAddItemDuration$outboundSchema,
2323
2397
  length: z13.number()
2324
2398
  });
2399
+ var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
2400
+ z13.object({
2401
+ meteredFeatureId: z13.string(),
2402
+ excluded: z13.literal(true)
2403
+ }),
2404
+ z13.transform((v) => {
2405
+ return remap(v, {
2406
+ meteredFeatureId: "metered_feature_id"
2407
+ });
2408
+ })
2409
+ );
2325
2410
  var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
2326
2411
  var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
2327
2412
  z13.object({
@@ -2508,7 +2593,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
2508
2593
  );
2509
2594
  var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
2510
2595
  z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
2511
- z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
2596
+ z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
2597
+ z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
2512
2598
  ]);
2513
2599
  var AttachAddItemProviderMarkups$outboundSchema = z13.object({
2514
2600
  markup: z13.number()
@@ -2552,7 +2638,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
2552
2638
  z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
2553
2639
  z13.lazy(
2554
2640
  () => AttachCreditSchemaAddItem2$outboundSchema
2555
- )
2641
+ ),
2642
+ z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
2556
2643
  ]))),
2557
2644
  markups: z13.optional(z13.lazy(
2558
2645
  () => AttachAddItemMarkups$outboundSchema
@@ -2896,26 +2983,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
2896
2983
  });
2897
2984
  })
2898
2985
  );
2899
- var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
2900
- AttachUpsertLicenseExpiryDurationType
2901
- );
2902
- var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
2903
- z13.object({
2904
- max: z13.optional(z13.number()),
2905
- maxPercentage: z13.optional(z13.number()),
2906
- expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
2907
- expiryDurationLength: z13.optional(z13.number())
2908
- }),
2909
- z13.transform((v) => {
2910
- return remap(v, {
2911
- maxPercentage: "max_percentage",
2912
- expiryDurationType: "expiry_duration_type",
2913
- expiryDurationLength: "expiry_duration_length"
2914
- });
2915
- })
2916
- );
2917
2986
 
2918
2987
  // ../sdk/src/models/attach-response.ts
2988
+ var AttachUpsertLicenseExpiryDurationType = {
2989
+ Month: "month",
2990
+ Forever: "forever"
2991
+ };
2919
2992
  var AttachUpsertLicenseDuration = {
2920
2993
  Day: "day",
2921
2994
  Week: "week",
@@ -3037,11 +3110,40 @@ var AttachCode = {
3037
3110
  PaymentFailed: "payment_failed",
3038
3111
  PaymentProcessing: "payment_processing"
3039
3112
  };
3113
+ var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
3114
+ AttachUpsertLicenseExpiryDurationType
3115
+ );
3116
+ var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
3117
+ z14.object({
3118
+ max: z14.optional(z14.number()),
3119
+ maxPercentage: z14.optional(z14.number()),
3120
+ expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
3121
+ expiryDurationLength: z14.optional(z14.number())
3122
+ }),
3123
+ z14.transform((v) => {
3124
+ return remap(v, {
3125
+ maxPercentage: "max_percentage",
3126
+ expiryDurationType: "expiry_duration_type",
3127
+ expiryDurationLength: "expiry_duration_length"
3128
+ });
3129
+ })
3130
+ );
3040
3131
  var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
3041
3132
  var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
3042
3133
  duration: AttachUpsertLicenseDuration$outboundSchema,
3043
3134
  length: z14.number()
3044
3135
  });
3136
+ var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
3137
+ z14.object({
3138
+ meteredFeatureId: z14.string(),
3139
+ excluded: z14.literal(true)
3140
+ }),
3141
+ z14.transform((v) => {
3142
+ return remap(v, {
3143
+ meteredFeatureId: "metered_feature_id"
3144
+ });
3145
+ })
3146
+ );
3045
3147
  var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
3046
3148
  var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
3047
3149
  z14.object({
@@ -3244,7 +3346,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
3244
3346
  );
3245
3347
  var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
3246
3348
  z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
3247
- z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
3349
+ z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
3350
+ z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
3248
3351
  ]);
3249
3352
  var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
3250
3353
  markup: z14.number()
@@ -3288,7 +3391,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
3288
3391
  z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
3289
3392
  z14.lazy(
3290
3393
  () => AttachCreditSchemaUpsertLicense2$outboundSchema
3291
- )
3394
+ ),
3395
+ z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
3292
3396
  ]))),
3293
3397
  markups: z14.optional(z14.lazy(
3294
3398
  () => AttachUpsertLicenseMarkups$outboundSchema
@@ -3312,7 +3416,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
3312
3416
  reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
3313
3417
  price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
3314
3418
  proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
3315
- rollover: z14.optional(AttachUpsertLicenseRollover$outboundSchema),
3419
+ rollover: z14.optional(
3420
+ z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
3421
+ ),
3316
3422
  expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
3317
3423
  featureOverride: z14.optional(
3318
3424
  z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
@@ -3841,6 +3947,11 @@ var BalanceType = {
3841
3947
  CreditSystem: "credit_system",
3842
3948
  AiCreditSystem: "ai_credit_system"
3843
3949
  };
3950
+ var BalanceCombine = {
3951
+ Sum: "sum",
3952
+ Max: "max",
3953
+ Min: "min"
3954
+ };
3844
3955
  var BalanceDimensionsToEnum3 = {
3845
3956
  Inf: "inf"
3846
3957
  };
@@ -3877,6 +3988,7 @@ var BalanceSource = {
3877
3988
  Entity: "entity"
3878
3989
  };
3879
3990
  var BalanceType$inboundSchema = inboundSchema(BalanceType);
3991
+ var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
3880
3992
  var BalanceDimensions6$inboundSchema = z15.pipe(
3881
3993
  z15.object({
3882
3994
  match: z15.record(z15.string(), string5()),
@@ -4153,6 +4265,7 @@ var BalanceFeature$inboundSchema = z15.pipe(
4153
4265
  name: string5(),
4154
4266
  type: BalanceType$inboundSchema,
4155
4267
  consumable: boolean2(),
4268
+ combine: optional3(BalanceCombine$inboundSchema),
4156
4269
  event_names: optional3(z15.array(string5())),
4157
4270
  credit_schema: optional3(z15.array(smartUnion([
4158
4271
  z15.lazy(() => BalanceCreditSchema1$inboundSchema),
@@ -4350,7 +4463,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
4350
4463
  // ../sdk/src/models/billing-update-response.ts
4351
4464
  import * as z18 from "zod/v4-mini";
4352
4465
 
4353
- // ../sdk/src/models/billing-update-upsert-license-rollover.ts
4466
+ // ../sdk/src/models/billing-update-upsert-license-proration.ts
4354
4467
  import * as z17 from "zod/v4-mini";
4355
4468
  var BillingUpdateDurationType = {
4356
4469
  Day: "day",
@@ -4599,10 +4712,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
4599
4712
  None: "none",
4600
4713
  NoProrations: "no_prorations"
4601
4714
  };
4602
- var BillingUpdateUpsertLicenseExpiryDurationType = {
4603
- Month: "month",
4604
- Forever: "forever"
4605
- };
4606
4715
  var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
4607
4716
  z17.object({
4608
4717
  featureId: z17.string(),
@@ -4767,6 +4876,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
4767
4876
  duration: BillingUpdateItemDuration$outboundSchema,
4768
4877
  length: z17.number()
4769
4878
  });
4879
+ var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
4880
+ z17.object({
4881
+ meteredFeatureId: z17.string(),
4882
+ excluded: z17.literal(true)
4883
+ }),
4884
+ z17.transform((v) => {
4885
+ return remap(v, {
4886
+ meteredFeatureId: "metered_feature_id"
4887
+ });
4888
+ })
4889
+ );
4770
4890
  var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
4771
4891
  var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
4772
4892
  z17.object({
@@ -4963,7 +5083,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
4963
5083
  );
4964
5084
  var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
4965
5085
  z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
4966
- z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
5086
+ z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
5087
+ z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
4967
5088
  ]);
4968
5089
  var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
4969
5090
  markup: z17.number()
@@ -5007,7 +5128,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
5007
5128
  z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
5008
5129
  z17.lazy(
5009
5130
  () => BillingUpdateCreditSchemaItem2$outboundSchema
5010
- )
5131
+ ),
5132
+ z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
5011
5133
  ]))),
5012
5134
  markups: z17.optional(z17.lazy(
5013
5135
  () => BillingUpdateItemMarkups$outboundSchema
@@ -5166,6 +5288,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
5166
5288
  duration: BillingUpdateAddItemDuration$outboundSchema,
5167
5289
  length: z17.number()
5168
5290
  });
5291
+ var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
5292
+ z17.object({
5293
+ meteredFeatureId: z17.string(),
5294
+ excluded: z17.literal(true)
5295
+ }),
5296
+ z17.transform((v) => {
5297
+ return remap(v, {
5298
+ meteredFeatureId: "metered_feature_id"
5299
+ });
5300
+ })
5301
+ );
5169
5302
  var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
5170
5303
  var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
5171
5304
  z17.object({
@@ -5372,7 +5505,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
5372
5505
  );
5373
5506
  var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
5374
5507
  z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
5375
- z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
5508
+ z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
5509
+ z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
5376
5510
  ]);
5377
5511
  var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
5378
5512
  markup: z17.number()
@@ -5416,7 +5550,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
5416
5550
  z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
5417
5551
  z17.lazy(
5418
5552
  () => BillingUpdateCreditSchemaAddItem2$outboundSchema
5419
- )
5553
+ ),
5554
+ z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
5420
5555
  ]))),
5421
5556
  markups: z17.optional(z17.lazy(
5422
5557
  () => BillingUpdateAddItemMarkups$outboundSchema
@@ -5780,26 +5915,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
5780
5915
  });
5781
5916
  })
5782
5917
  );
5783
- var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
5784
- BillingUpdateUpsertLicenseExpiryDurationType
5785
- );
5786
- var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
5787
- z17.object({
5788
- max: z17.optional(z17.number()),
5789
- maxPercentage: z17.optional(z17.number()),
5790
- expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
5791
- expiryDurationLength: z17.optional(z17.number())
5792
- }),
5793
- z17.transform((v) => {
5794
- return remap(v, {
5795
- maxPercentage: "max_percentage",
5796
- expiryDurationType: "expiry_duration_type",
5797
- expiryDurationLength: "expiry_duration_length"
5798
- });
5799
- })
5800
- );
5801
5918
 
5802
5919
  // ../sdk/src/models/billing-update-response.ts
5920
+ var BillingUpdateUpsertLicenseExpiryDurationType = {
5921
+ Month: "month",
5922
+ Forever: "forever"
5923
+ };
5803
5924
  var BillingUpdateUpsertLicenseDuration = {
5804
5925
  Day: "day",
5805
5926
  Week: "week",
@@ -5921,11 +6042,40 @@ var BillingUpdateCode = {
5921
6042
  PaymentFailed: "payment_failed",
5922
6043
  PaymentProcessing: "payment_processing"
5923
6044
  };
6045
+ var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
6046
+ BillingUpdateUpsertLicenseExpiryDurationType
6047
+ );
6048
+ var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
6049
+ z18.object({
6050
+ max: z18.optional(z18.number()),
6051
+ maxPercentage: z18.optional(z18.number()),
6052
+ expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
6053
+ expiryDurationLength: z18.optional(z18.number())
6054
+ }),
6055
+ z18.transform((v) => {
6056
+ return remap(v, {
6057
+ maxPercentage: "max_percentage",
6058
+ expiryDurationType: "expiry_duration_type",
6059
+ expiryDurationLength: "expiry_duration_length"
6060
+ });
6061
+ })
6062
+ );
5924
6063
  var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
5925
6064
  var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
5926
6065
  duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
5927
6066
  length: z18.number()
5928
6067
  });
6068
+ var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
6069
+ z18.object({
6070
+ meteredFeatureId: z18.string(),
6071
+ excluded: z18.literal(true)
6072
+ }),
6073
+ z18.transform((v) => {
6074
+ return remap(v, {
6075
+ meteredFeatureId: "metered_feature_id"
6076
+ });
6077
+ })
6078
+ );
5929
6079
  var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
5930
6080
  var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
5931
6081
  z18.object({
@@ -6135,7 +6285,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
6135
6285
  );
6136
6286
  var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
6137
6287
  z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
6138
- z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
6288
+ z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
6289
+ z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
6139
6290
  ]);
6140
6291
  var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
6141
6292
  markup: z18.number()
@@ -6179,7 +6330,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
6179
6330
  z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
6180
6331
  z18.lazy(
6181
6332
  () => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
6182
- )
6333
+ ),
6334
+ z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
6183
6335
  ]))),
6184
6336
  markups: z18.optional(z18.lazy(
6185
6337
  () => BillingUpdateUpsertLicenseMarkups$outboundSchema
@@ -6203,7 +6355,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
6203
6355
  reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
6204
6356
  price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
6205
6357
  proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
6206
- rollover: z18.optional(BillingUpdateUpsertLicenseRollover$outboundSchema),
6358
+ rollover: z18.optional(
6359
+ z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
6360
+ ),
6207
6361
  expiry: z18.optional(
6208
6362
  z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
6209
6363
  ),
@@ -6673,6 +6827,11 @@ var FlagType2 = {
6673
6827
  CreditSystem: "credit_system",
6674
6828
  AiCreditSystem: "ai_credit_system"
6675
6829
  };
6830
+ var CheckCombine2 = {
6831
+ Sum: "sum",
6832
+ Max: "max",
6833
+ Min: "min"
6834
+ };
6676
6835
  var CheckDimensionsToEnum6 = {
6677
6836
  Inf: "inf"
6678
6837
  };
@@ -6798,6 +6957,11 @@ var FlagType1 = {
6798
6957
  CreditSystem: "credit_system",
6799
6958
  AiCreditSystem: "ai_credit_system"
6800
6959
  };
6960
+ var CheckCombine1 = {
6961
+ Sum: "sum",
6962
+ Max: "max",
6963
+ Min: "min"
6964
+ };
6801
6965
  var CheckDimensionsToEnum3 = {
6802
6966
  Inf: "inf"
6803
6967
  };
@@ -6956,6 +7120,7 @@ var CheckParams$outboundSchema = z19.pipe(
6956
7120
  })
6957
7121
  );
6958
7122
  var FlagType2$inboundSchema = inboundSchema(FlagType2);
7123
+ var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
6959
7124
  var CheckDimensions12$inboundSchema = z19.pipe(
6960
7125
  z19.object({
6961
7126
  match: z19.record(z19.string(), string5()),
@@ -7232,6 +7397,7 @@ var CheckFeature2$inboundSchema = z19.pipe(
7232
7397
  name: string5(),
7233
7398
  type: FlagType2$inboundSchema,
7234
7399
  consumable: boolean2(),
7400
+ combine: optional3(CheckCombine2$inboundSchema),
7235
7401
  event_names: optional3(z19.array(string5())),
7236
7402
  credit_schema: optional3(z19.array(smartUnion([
7237
7403
  z19.lazy(() => CheckCreditSchema4$inboundSchema),
@@ -7611,6 +7777,7 @@ var CheckResponseBody2$inboundSchema = z19.pipe(
7611
7777
  })
7612
7778
  );
7613
7779
  var FlagType1$inboundSchema = inboundSchema(FlagType1);
7780
+ var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
7614
7781
  var CheckDimensions6$inboundSchema = z19.pipe(
7615
7782
  z19.object({
7616
7783
  match: z19.record(z19.string(), string5()),
@@ -7887,6 +8054,7 @@ var CheckFeature1$inboundSchema = z19.pipe(
7887
8054
  name: string5(),
7888
8055
  type: FlagType1$inboundSchema,
7889
8056
  consumable: boolean2(),
8057
+ combine: optional3(CheckCombine1$inboundSchema),
7890
8058
  event_names: optional3(z19.array(string5())),
7891
8059
  credit_schema: optional3(z19.array(smartUnion([
7892
8060
  z19.lazy(() => CheckCreditSchema1$inboundSchema),
@@ -8565,7 +8733,7 @@ var CustomerData$outboundSchema = z21.pipe(
8565
8733
  // ../sdk/src/models/plan.ts
8566
8734
  import * as z23 from "zod/v4-mini";
8567
8735
 
8568
- // ../sdk/src/models/plan-variant-details-billing-controls-1.ts
8736
+ // ../sdk/src/models/plan-variant-details-usage-alert.ts
8569
8737
  import * as z22 from "zod/v4-mini";
8570
8738
  var PlanPriceInterval = {
8571
8739
  OneOff: "one_off",
@@ -9029,6 +9197,17 @@ var ItemExpiry$inboundSchema = z22.object({
9029
9197
  duration: ItemDuration$inboundSchema,
9030
9198
  length: number2()
9031
9199
  });
9200
+ var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
9201
+ z22.object({
9202
+ metered_feature_id: string5(),
9203
+ excluded: literal3(true)
9204
+ }),
9205
+ z22.transform((v) => {
9206
+ return remap(v, {
9207
+ "metered_feature_id": "meteredFeatureId"
9208
+ });
9209
+ })
9210
+ );
9032
9211
  var PlanDimensionsItem4$inboundSchema = z22.pipe(
9033
9212
  z22.object({
9034
9213
  match: z22.record(z22.string(), string5()),
@@ -9189,7 +9368,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
9189
9368
  );
9190
9369
  var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
9191
9370
  z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
9192
- z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
9371
+ z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
9372
+ z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
9193
9373
  ]);
9194
9374
  var PlanItemProviderMarkups$inboundSchema = z22.object({
9195
9375
  markup: number2()
@@ -9233,7 +9413,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
9233
9413
  z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
9234
9414
  z22.lazy(
9235
9415
  () => PlanCreditSchemaItemFeatureOverride2$inboundSchema
9236
- )
9416
+ ),
9417
+ z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
9237
9418
  ]))),
9238
9419
  markups: optional3(z22.lazy(
9239
9420
  () => ItemMarkups$inboundSchema
@@ -9631,6 +9812,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
9631
9812
  duration: VariantDetailsDuration$inboundSchema,
9632
9813
  length: number2()
9633
9814
  });
9815
+ var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
9816
+ z22.object({
9817
+ metered_feature_id: string5(),
9818
+ excluded: literal3(true)
9819
+ }),
9820
+ z22.transform((v) => {
9821
+ return remap(v, {
9822
+ "metered_feature_id": "meteredFeatureId"
9823
+ });
9824
+ })
9825
+ );
9634
9826
  var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
9635
9827
  z22.object({
9636
9828
  match: z22.record(z22.string(), string5()),
@@ -9811,7 +10003,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
9811
10003
  );
9812
10004
  var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
9813
10005
  z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
9814
- z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
10006
+ z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
10007
+ z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
9815
10008
  ]);
9816
10009
  var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
9817
10010
  markup: number2()
@@ -9855,7 +10048,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
9855
10048
  z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
9856
10049
  z22.lazy(
9857
10050
  () => PlanCreditSchemaVariantDetails2$inboundSchema
9858
- )
10051
+ ),
10052
+ z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
9859
10053
  ]))),
9860
10054
  markups: optional3(z22.lazy(
9861
10055
  () => VariantDetailsMarkups$inboundSchema
@@ -10041,45 +10235,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
10041
10235
  });
10042
10236
  })
10043
10237
  );
10044
- var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
10045
- z22.object({
10046
- feature_id: string5(),
10047
- enabled: z22._default(boolean2(), false)
10048
- }),
10049
- z22.transform((v) => {
10050
- return remap(v, {
10051
- "feature_id": "featureId"
10052
- });
10053
- })
10054
- );
10055
- var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
10056
- z22.object({
10057
- auto_topups: optional3(
10058
- z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
10059
- ),
10060
- spend_limits: optional3(
10061
- z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
10062
- ),
10063
- usage_limits: optional3(
10064
- z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
10065
- ),
10066
- usage_alerts: optional3(
10067
- z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
10068
- ),
10069
- overage_allowed: optional3(
10070
- z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
10071
- )
10072
- }),
10073
- z22.transform((v) => {
10074
- return remap(v, {
10075
- "auto_topups": "autoTopups",
10076
- "spend_limits": "spendLimits",
10077
- "usage_limits": "usageLimits",
10078
- "usage_alerts": "usageAlerts",
10079
- "overage_allowed": "overageAllowed"
10080
- });
10081
- })
10082
- );
10083
10238
 
10084
10239
  // ../sdk/src/models/plan.ts
10085
10240
  var PlanPriceUpsertLicenseInterval = {
@@ -10172,6 +10327,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
10172
10327
  SemiAnnual: "semi_annual",
10173
10328
  Year: "year"
10174
10329
  };
10330
+ var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
10331
+ z23.object({
10332
+ feature_id: string5(),
10333
+ enabled: z23._default(boolean2(), false)
10334
+ }),
10335
+ z23.transform((v) => {
10336
+ return remap(v, {
10337
+ "feature_id": "featureId"
10338
+ });
10339
+ })
10340
+ );
10341
+ var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
10342
+ z23.object({
10343
+ auto_topups: optional3(
10344
+ z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
10345
+ ),
10346
+ spend_limits: optional3(
10347
+ z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
10348
+ ),
10349
+ usage_limits: optional3(
10350
+ z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
10351
+ ),
10352
+ usage_alerts: optional3(
10353
+ z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
10354
+ ),
10355
+ overage_allowed: optional3(
10356
+ z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
10357
+ )
10358
+ }),
10359
+ z23.transform((v) => {
10360
+ return remap(v, {
10361
+ "auto_topups": "autoTopups",
10362
+ "spend_limits": "spendLimits",
10363
+ "usage_limits": "usageLimits",
10364
+ "usage_alerts": "usageAlerts",
10365
+ "overage_allowed": "overageAllowed"
10366
+ });
10367
+ })
10368
+ );
10175
10369
  var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
10176
10370
  var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
10177
10371
  currency: string5(),
@@ -10308,6 +10502,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
10308
10502
  duration: UpsertLicenseDuration$inboundSchema,
10309
10503
  length: number2()
10310
10504
  });
10505
+ var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
10506
+ z23.object({
10507
+ metered_feature_id: string5(),
10508
+ excluded: literal3(true)
10509
+ }),
10510
+ z23.transform((v) => {
10511
+ return remap(v, {
10512
+ "metered_feature_id": "meteredFeatureId"
10513
+ });
10514
+ })
10515
+ );
10311
10516
  var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
10312
10517
  z23.object({
10313
10518
  match: z23.record(z23.string(), string5()),
@@ -10489,7 +10694,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
10489
10694
  );
10490
10695
  var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
10491
10696
  z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
10492
- z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
10697
+ z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
10698
+ z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
10493
10699
  ]);
10494
10700
  var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
10495
10701
  markup: number2()
@@ -10533,7 +10739,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
10533
10739
  z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
10534
10740
  z23.lazy(
10535
10741
  () => PlanCreditSchemaUpsertLicense2$inboundSchema
10536
- )
10742
+ ),
10743
+ z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
10537
10744
  ]))),
10538
10745
  markups: optional3(z23.lazy(
10539
10746
  () => UpsertLicenseMarkups$inboundSchema
@@ -10660,7 +10867,7 @@ var Customize1$inboundSchema = z23.pipe(
10660
10867
  remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
10661
10868
  free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
10662
10869
  billing_controls: optional3(
10663
- PlanVariantDetailsBillingControls1$inboundSchema
10870
+ z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
10664
10871
  ),
10665
10872
  upsert_licenses: optional3(
10666
10873
  z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
@@ -10780,6 +10987,11 @@ var CreateEntityType = {
10780
10987
  CreditSystem: "credit_system",
10781
10988
  AiCreditSystem: "ai_credit_system"
10782
10989
  };
10990
+ var CreateEntityCombine = {
10991
+ Sum: "sum",
10992
+ Max: "max",
10993
+ Min: "min"
10994
+ };
10783
10995
  var CreateEntityDimensionsToEnum3 = {
10784
10996
  Inf: "inf"
10785
10997
  };
@@ -11021,6 +11233,7 @@ var CreateEntityPurchase$inboundSchema = z24.pipe(
11021
11233
  })
11022
11234
  );
11023
11235
  var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
11236
+ var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
11024
11237
  var CreateEntityDimensions6$inboundSchema = z24.pipe(
11025
11238
  z24.object({
11026
11239
  match: z24.record(z24.string(), string5()),
@@ -11306,6 +11519,7 @@ var CreateEntityFeature$inboundSchema = z24.pipe(
11306
11519
  name: string5(),
11307
11520
  type: CreateEntityType$inboundSchema,
11308
11521
  consumable: boolean2(),
11522
+ combine: optional3(CreateEntityCombine$inboundSchema),
11309
11523
  event_names: optional3(z24.array(string5())),
11310
11524
  credit_schema: optional3(z24.array(smartUnion([
11311
11525
  z24.lazy(() => CreateEntityCreditSchema1$inboundSchema),
@@ -11529,6 +11743,11 @@ var CreateFeatureTypeRequestBody = {
11529
11743
  CreditSystem: "credit_system",
11530
11744
  AiCreditSystem: "ai_credit_system"
11531
11745
  };
11746
+ var CreateFeatureCombineRequest = {
11747
+ Sum: "sum",
11748
+ Max: "max",
11749
+ Min: "min"
11750
+ };
11532
11751
  var CreateFeatureDimensionsToRequestBodyEnum2 = {
11533
11752
  Inf: "inf"
11534
11753
  };
@@ -11544,6 +11763,11 @@ var CreateFeatureTypeResponse = {
11544
11763
  CreditSystem: "credit_system",
11545
11764
  AiCreditSystem: "ai_credit_system"
11546
11765
  };
11766
+ var CreateFeatureCombineResponse = {
11767
+ Sum: "sum",
11768
+ Max: "max",
11769
+ Min: "min"
11770
+ };
11547
11771
  var CreateFeatureDimensionsToResponseEnum3 = {
11548
11772
  Inf: "inf"
11549
11773
  };
@@ -11557,6 +11781,7 @@ var CreateFeatureToResponseEnum = {
11557
11781
  Inf: "inf"
11558
11782
  };
11559
11783
  var CreateFeatureTypeRequestBody$outboundSchema = z25.enum(CreateFeatureTypeRequestBody);
11784
+ var CreateFeatureCombineRequest$outboundSchema = z25.enum(CreateFeatureCombineRequest);
11560
11785
  var CreateFeatureDisplayRequestBody$outboundSchema = z25.object({
11561
11786
  singular: z25.string(),
11562
11787
  plural: z25.string()
@@ -11790,6 +12015,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
11790
12015
  name: z25.string(),
11791
12016
  type: CreateFeatureTypeRequestBody$outboundSchema,
11792
12017
  consumable: z25.optional(z25.boolean()),
12018
+ combine: z25.optional(CreateFeatureCombineRequest$outboundSchema),
11793
12019
  display: z25.optional(
11794
12020
  z25.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
11795
12021
  ),
@@ -11823,6 +12049,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
11823
12049
  })
11824
12050
  );
11825
12051
  var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
12052
+ var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
11826
12053
  var CreateFeatureDimensionsResponse6$inboundSchema = z25.pipe(
11827
12054
  z25.object({
11828
12055
  match: z25.record(z25.string(), string5()),
@@ -12131,6 +12358,7 @@ var CreateFeatureResponse$inboundSchema = z25.pipe(
12131
12358
  name: string5(),
12132
12359
  type: CreateFeatureTypeResponse$inboundSchema,
12133
12360
  consumable: boolean2(),
12361
+ combine: optional3(CreateFeatureCombineResponse$inboundSchema),
12134
12362
  event_names: optional3(z25.array(string5())),
12135
12363
  credit_schema: optional3(z25.array(smartUnion([
12136
12364
  z25.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
@@ -13314,7 +13542,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
13314
13542
  preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
13315
13543
  });
13316
13544
 
13317
- // ../sdk/src/models/create-plan-item-tier-additional-currency-response.ts
13545
+ // ../sdk/src/models/create-plan-item-additional-currency-response.ts
13318
13546
  import * as z27 from "zod/v4-mini";
13319
13547
  var CreatePlanPriceIntervalRequestBody = {
13320
13548
  OneOff: "one_off",
@@ -13687,6 +13915,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
13687
13915
  duration: CreatePlanItemDurationRequestBody$outboundSchema,
13688
13916
  length: z27.number()
13689
13917
  });
13918
+ var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
13919
+ z27.object({
13920
+ meteredFeatureId: z27.string(),
13921
+ excluded: z27.literal(true)
13922
+ }),
13923
+ z27.transform((v) => {
13924
+ return remap(v, {
13925
+ meteredFeatureId: "metered_feature_id"
13926
+ });
13927
+ })
13928
+ );
13690
13929
  var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13691
13930
  var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
13692
13931
  z27.object({
@@ -13896,7 +14135,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
13896
14135
  );
13897
14136
  var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
13898
14137
  z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
13899
- z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
14138
+ z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
14139
+ z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
13900
14140
  ]);
13901
14141
  var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
13902
14142
  markup: z27.number()
@@ -13940,7 +14180,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
13940
14180
  z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
13941
14181
  z27.lazy(
13942
14182
  () => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
13943
- )
14183
+ ),
14184
+ z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
13944
14185
  ]))),
13945
14186
  markups: z27.optional(z27.lazy(
13946
14187
  () => CreatePlanItemMarkupsRequestBody$outboundSchema
@@ -14140,6 +14381,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
14140
14381
  duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
14141
14382
  length: z27.number()
14142
14383
  });
14384
+ var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
14385
+ z27.object({
14386
+ meteredFeatureId: z27.string(),
14387
+ excluded: z27.literal(true)
14388
+ }),
14389
+ z27.transform((v) => {
14390
+ return remap(v, {
14391
+ meteredFeatureId: "metered_feature_id"
14392
+ });
14393
+ })
14394
+ );
14143
14395
  var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
14144
14396
  var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
14145
14397
  z27.object({
@@ -14356,7 +14608,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
14356
14608
  );
14357
14609
  var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
14358
14610
  z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
14359
- z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
14611
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
14612
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
14360
14613
  ]);
14361
14614
  var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
14362
14615
  markup: z27.number()
@@ -14400,7 +14653,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
14400
14653
  z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
14401
14654
  z27.lazy(
14402
14655
  () => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
14403
- )
14656
+ ),
14657
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
14404
14658
  ]))),
14405
14659
  markups: z27.optional(z27.lazy(
14406
14660
  () => CreatePlanLicenseMarkupsRequestBody$outboundSchema
@@ -14848,24 +15102,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
14848
15102
  currency: string5(),
14849
15103
  amount: number2()
14850
15104
  });
14851
- var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
14852
- var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
14853
- z27.object({
14854
- currency: string5(),
14855
- amount: optional3(number2()),
14856
- flat_amount: optional3(number2())
14857
- }),
14858
- z27.transform((v) => {
14859
- return remap(v, {
14860
- "flat_amount": "flatAmount"
14861
- });
14862
- })
14863
- );
14864
15105
 
14865
15106
  // ../sdk/src/models/create-plan-response.ts
14866
15107
  import * as z29 from "zod/v4-mini";
14867
15108
 
14868
- // ../sdk/src/models/create-plan-upsert-license-on-decrease.ts
15109
+ // ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
14869
15110
  import * as z28 from "zod/v4-mini";
14870
15111
  var CreatePlanItemTierBehaviorResponse = {
14871
15112
  Graduated: "graduated",
@@ -15120,31 +15361,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
15120
15361
  SemiAnnual: "semi_annual",
15121
15362
  Year: "year"
15122
15363
  };
15123
- var CreatePlanUpsertLicenseAddItemBillingMethod = {
15124
- Prepaid: "prepaid",
15125
- UsageBased: "usage_based"
15126
- };
15127
- var CreatePlanUpsertLicenseOnIncrease = {
15128
- BillImmediately: "bill_immediately",
15129
- ProrateImmediately: "prorate_immediately",
15130
- ProrateNextCycle: "prorate_next_cycle",
15131
- BillNextCycle: "bill_next_cycle"
15132
- };
15133
- var CreatePlanUpsertLicenseOnDecrease = {
15134
- Prorate: "prorate",
15135
- ProrateImmediately: "prorate_immediately",
15136
- ProrateNextCycle: "prorate_next_cycle",
15137
- None: "none",
15138
- NoProrations: "no_prorations"
15139
- };
15364
+ var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
15365
+ var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
15366
+ z28.object({
15367
+ currency: string5(),
15368
+ amount: optional3(number2()),
15369
+ flat_amount: optional3(number2())
15370
+ }),
15371
+ z28.transform((v) => {
15372
+ return remap(v, {
15373
+ "flat_amount": "flatAmount"
15374
+ });
15375
+ })
15376
+ );
15140
15377
  var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
15141
15378
  z28.object({
15142
- to: CreatePlanPriceItemToResponse$inboundSchema,
15379
+ to: smartUnion([number2(), string5()]),
15143
15380
  amount: number2(),
15144
15381
  flat_amount: optional3(number2()),
15145
- additional_currencies: optional3(
15146
- z28.array(CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema)
15147
- )
15382
+ additional_currencies: optional3(z28.array(z28.lazy(
15383
+ () => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
15384
+ )))
15148
15385
  }),
15149
15386
  z28.transform((v) => {
15150
15387
  return remap(v, {
@@ -15236,6 +15473,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
15236
15473
  duration: CreatePlanItemDurationResponse$inboundSchema,
15237
15474
  length: number2()
15238
15475
  });
15476
+ var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
15477
+ z28.object({
15478
+ metered_feature_id: string5(),
15479
+ excluded: literal3(true)
15480
+ }),
15481
+ z28.transform((v) => {
15482
+ return remap(v, {
15483
+ "metered_feature_id": "meteredFeatureId"
15484
+ });
15485
+ })
15486
+ );
15239
15487
  var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
15240
15488
  z28.object({
15241
15489
  match: z28.record(z28.string(), string5()),
@@ -15423,6 +15671,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
15423
15671
  ),
15424
15672
  z28.lazy(
15425
15673
  () => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
15674
+ ),
15675
+ z28.lazy(
15676
+ () => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
15426
15677
  )
15427
15678
  ]);
15428
15679
  var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
@@ -15469,6 +15720,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
15469
15720
  ),
15470
15721
  z28.lazy(
15471
15722
  () => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
15723
+ ),
15724
+ z28.lazy(
15725
+ () => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
15472
15726
  )
15473
15727
  ]))),
15474
15728
  markups: optional3(z28.lazy(
@@ -15881,6 +16135,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
15881
16135
  duration: CreatePlanVariantDetailsDuration$inboundSchema,
15882
16136
  length: number2()
15883
16137
  });
16138
+ var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
16139
+ z28.object({
16140
+ metered_feature_id: string5(),
16141
+ excluded: literal3(true)
16142
+ }),
16143
+ z28.transform((v) => {
16144
+ return remap(v, {
16145
+ "metered_feature_id": "meteredFeatureId"
16146
+ });
16147
+ })
16148
+ );
15884
16149
  var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
15885
16150
  z28.object({
15886
16151
  match: z28.record(z28.string(), string5()),
@@ -16070,7 +16335,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
16070
16335
  );
16071
16336
  var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
16072
16337
  z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
16073
- z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
16338
+ z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
16339
+ z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
16074
16340
  ]);
16075
16341
  var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
16076
16342
  markup: number2()
@@ -16114,7 +16380,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
16114
16380
  z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
16115
16381
  z28.lazy(
16116
16382
  () => CreatePlanCreditSchemaVariantDetails2$inboundSchema
16117
- )
16383
+ ),
16384
+ z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
16118
16385
  ]))),
16119
16386
  markups: optional3(z28.lazy(
16120
16387
  () => CreatePlanVariantDetailsMarkups$inboundSchema
@@ -16420,40 +16687,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
16420
16687
  );
16421
16688
  var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
16422
16689
  var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
16423
- var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
16424
- var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
16425
- z28.object({
16426
- amount: optional3(number2()),
16427
- additional_currencies: optional3(z28.array(z28.lazy(
16428
- () => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
16429
- ))),
16430
- tiers: optional3(z28.array(z28.lazy(
16431
- () => CreatePlanUpsertLicensePriceTier$inboundSchema
16432
- ))),
16433
- tier_behavior: optional3(
16434
- CreatePlanUpsertLicenseTierBehavior$inboundSchema
16435
- ),
16436
- interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
16437
- interval_count: z28._default(number2(), 1),
16438
- billing_units: z28._default(number2(), 1),
16439
- billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
16440
- max_purchase: z28.optional(z28.nullable(number2()))
16441
- }),
16442
- z28.transform((v) => {
16443
- return remap(v, {
16444
- "additional_currencies": "additionalCurrencies",
16445
- "tier_behavior": "tierBehavior",
16446
- "interval_count": "intervalCount",
16447
- "billing_units": "billingUnits",
16448
- "billing_method": "billingMethod",
16449
- "max_purchase": "maxPurchase"
16450
- });
16451
- })
16452
- );
16453
- var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
16454
- var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
16455
16690
 
16456
16691
  // ../sdk/src/models/create-plan-response.ts
16692
+ var CreatePlanUpsertLicenseAddItemBillingMethod = {
16693
+ Prepaid: "prepaid",
16694
+ UsageBased: "usage_based"
16695
+ };
16696
+ var CreatePlanUpsertLicenseOnIncrease = {
16697
+ BillImmediately: "bill_immediately",
16698
+ ProrateImmediately: "prorate_immediately",
16699
+ ProrateNextCycle: "prorate_next_cycle",
16700
+ BillNextCycle: "bill_next_cycle"
16701
+ };
16702
+ var CreatePlanUpsertLicenseOnDecrease = {
16703
+ Prorate: "prorate",
16704
+ ProrateImmediately: "prorate_immediately",
16705
+ ProrateNextCycle: "prorate_next_cycle",
16706
+ None: "none",
16707
+ NoProrations: "no_prorations"
16708
+ };
16457
16709
  var CreatePlanUpsertLicenseExpiryDurationType = {
16458
16710
  Month: "month",
16459
16711
  Forever: "forever"
@@ -16586,6 +16838,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
16586
16838
  SemiAnnual: "semi_annual",
16587
16839
  Year: "year"
16588
16840
  };
16841
+ var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
16842
+ var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
16843
+ z29.object({
16844
+ amount: optional3(number2()),
16845
+ additional_currencies: optional3(
16846
+ z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
16847
+ ),
16848
+ tiers: optional3(
16849
+ z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
16850
+ ),
16851
+ tier_behavior: optional3(
16852
+ CreatePlanUpsertLicenseTierBehavior$inboundSchema
16853
+ ),
16854
+ interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
16855
+ interval_count: z29._default(number2(), 1),
16856
+ billing_units: z29._default(number2(), 1),
16857
+ billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
16858
+ max_purchase: z29.optional(z29.nullable(number2()))
16859
+ }),
16860
+ z29.transform((v) => {
16861
+ return remap(v, {
16862
+ "additional_currencies": "additionalCurrencies",
16863
+ "tier_behavior": "tierBehavior",
16864
+ "interval_count": "intervalCount",
16865
+ "billing_units": "billingUnits",
16866
+ "billing_method": "billingMethod",
16867
+ "max_purchase": "maxPurchase"
16868
+ });
16869
+ })
16870
+ );
16871
+ var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
16872
+ var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
16589
16873
  var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
16590
16874
  z29.object({
16591
16875
  on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
@@ -16619,6 +16903,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
16619
16903
  duration: CreatePlanUpsertLicenseDuration$inboundSchema,
16620
16904
  length: number2()
16621
16905
  });
16906
+ var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
16907
+ z29.object({
16908
+ metered_feature_id: string5(),
16909
+ excluded: literal3(true)
16910
+ }),
16911
+ z29.transform((v) => {
16912
+ return remap(v, {
16913
+ "metered_feature_id": "meteredFeatureId"
16914
+ });
16915
+ })
16916
+ );
16622
16917
  var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
16623
16918
  z29.object({
16624
16919
  match: z29.record(z29.string(), string5()),
@@ -16805,7 +17100,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
16805
17100
  var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
16806
17101
  [
16807
17102
  z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
16808
- z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
17103
+ z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
17104
+ z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
16809
17105
  ]
16810
17106
  );
16811
17107
  var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
@@ -16850,7 +17146,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
16850
17146
  z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
16851
17147
  z29.lazy(
16852
17148
  () => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
16853
- )
17149
+ ),
17150
+ z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
16854
17151
  ]))),
16855
17152
  markups: optional3(z29.lazy(
16856
17153
  () => CreatePlanUpsertLicenseMarkups$inboundSchema
@@ -16872,7 +17169,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
16872
17169
  unlimited: optional3(boolean2()),
16873
17170
  pooled: z29._default(boolean2(), false),
16874
17171
  reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
16875
- price: optional3(CreatePlanUpsertLicensePrice$inboundSchema),
17172
+ price: optional3(
17173
+ z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
17174
+ ),
16876
17175
  proration: optional3(
16877
17176
  z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
16878
17177
  ),
@@ -17156,6 +17455,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
17156
17455
  duration: CreatePlanLicenseDurationResponse$inboundSchema,
17157
17456
  length: number2()
17158
17457
  });
17458
+ var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
17459
+ z29.object({
17460
+ metered_feature_id: string5(),
17461
+ excluded: literal3(true)
17462
+ }),
17463
+ z29.transform((v) => {
17464
+ return remap(v, {
17465
+ "metered_feature_id": "meteredFeatureId"
17466
+ });
17467
+ })
17468
+ );
17159
17469
  var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
17160
17470
  z29.object({
17161
17471
  match: z29.record(z29.string(), string5()),
@@ -17341,7 +17651,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
17341
17651
  );
17342
17652
  var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
17343
17653
  z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
17344
- z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
17654
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
17655
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
17345
17656
  ]);
17346
17657
  var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
17347
17658
  markup: number2()
@@ -17385,7 +17696,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
17385
17696
  z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
17386
17697
  z29.lazy(
17387
17698
  () => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
17388
- )
17699
+ ),
17700
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
17389
17701
  ]))),
17390
17702
  markups: optional3(z29.lazy(
17391
17703
  () => CreatePlanLicenseMarkupsResponse$inboundSchema
@@ -17937,10 +18249,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
17937
18249
  // ../sdk/src/models/create-schedule-response.ts
17938
18250
  import * as z36 from "zod/v4-mini";
17939
18251
 
17940
- // ../sdk/src/models/phase-add-item-model-markups-2.ts
18252
+ // ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
17941
18253
  import * as z35 from "zod/v4-mini";
17942
18254
 
17943
- // ../sdk/src/models/unscheduled-plan-upsert-license-on-increase.ts
18255
+ // ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
17944
18256
  import * as z34 from "zod/v4-mini";
17945
18257
  var CreateScheduleFreeTrialDurationType = {
17946
18258
  Day: "day",
@@ -18191,12 +18503,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
18191
18503
  Prepaid: "prepaid",
18192
18504
  UsageBased: "usage_based"
18193
18505
  };
18194
- var UnscheduledPlanUpsertLicenseOnIncrease = {
18195
- BillImmediately: "bill_immediately",
18196
- ProrateImmediately: "prorate_immediately",
18197
- ProrateNextCycle: "prorate_next_cycle",
18198
- BillNextCycle: "bill_next_cycle"
18199
- };
18200
18506
  var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
18201
18507
  var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
18202
18508
  var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
@@ -18417,6 +18723,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
18417
18723
  duration: UnscheduledPlanItemDuration$outboundSchema,
18418
18724
  length: z34.number()
18419
18725
  });
18726
+ var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
18727
+ z34.object({
18728
+ meteredFeatureId: z34.string(),
18729
+ excluded: z34.literal(true)
18730
+ }),
18731
+ z34.transform((v) => {
18732
+ return remap(v, {
18733
+ meteredFeatureId: "metered_feature_id"
18734
+ });
18735
+ })
18736
+ );
18420
18737
  var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
18421
18738
  var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
18422
18739
  z34.object({
@@ -18619,7 +18936,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
18619
18936
  );
18620
18937
  var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
18621
18938
  z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
18622
- z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
18939
+ z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
18940
+ z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
18623
18941
  ]);
18624
18942
  var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
18625
18943
  markup: z34.number()
@@ -18663,7 +18981,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
18663
18981
  z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
18664
18982
  z34.lazy(
18665
18983
  () => CreditSchemaUnscheduledPlanItem2$outboundSchema
18666
- )
18984
+ ),
18985
+ z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
18667
18986
  ]))),
18668
18987
  markups: z34.optional(z34.lazy(
18669
18988
  () => UnscheduledPlanItemMarkups$outboundSchema
@@ -18822,6 +19141,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
18822
19141
  duration: UnscheduledPlanAddItemDuration$outboundSchema,
18823
19142
  length: z34.number()
18824
19143
  });
19144
+ var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
19145
+ z34.object({
19146
+ meteredFeatureId: z34.string(),
19147
+ excluded: z34.literal(true)
19148
+ }),
19149
+ z34.transform((v) => {
19150
+ return remap(v, {
19151
+ meteredFeatureId: "metered_feature_id"
19152
+ });
19153
+ })
19154
+ );
18825
19155
  var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
18826
19156
  var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
18827
19157
  z34.object({
@@ -19028,7 +19358,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
19028
19358
  );
19029
19359
  var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
19030
19360
  z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
19031
- z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
19361
+ z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
19362
+ z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
19032
19363
  ]);
19033
19364
  var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
19034
19365
  markup: z34.number()
@@ -19072,7 +19403,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
19072
19403
  z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
19073
19404
  z34.lazy(
19074
19405
  () => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
19075
- )
19406
+ ),
19407
+ z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
19076
19408
  ]))),
19077
19409
  markups: z34.optional(z34.lazy(
19078
19410
  () => UnscheduledPlanAddItemMarkups$outboundSchema
@@ -19376,40 +19708,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
19376
19708
  );
19377
19709
  var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
19378
19710
  var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
19379
- var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
19380
- z34.object({
19381
- amount: z34.optional(z34.number()),
19382
- additionalCurrencies: z34.optional(z34.array(z34.lazy(
19383
- () => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
19384
- ))),
19385
- tiers: z34.optional(z34.array(z34.lazy(
19386
- () => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
19387
- ))),
19388
- tierBehavior: z34.optional(
19389
- UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
19390
- ),
19391
- interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
19392
- intervalCount: z34._default(z34.number(), 1),
19393
- billingUnits: z34._default(z34.number(), 1),
19394
- billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
19395
- maxPurchase: z34.optional(z34.nullable(z34.number()))
19396
- }),
19397
- z34.transform((v) => {
19398
- return remap(v, {
19399
- additionalCurrencies: "additional_currencies",
19400
- tierBehavior: "tier_behavior",
19401
- intervalCount: "interval_count",
19402
- billingUnits: "billing_units",
19403
- billingMethod: "billing_method",
19404
- maxPurchase: "max_purchase"
19405
- });
19406
- })
19407
- );
19408
- var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
19409
- UnscheduledPlanUpsertLicenseOnIncrease
19410
- );
19411
19711
 
19412
- // ../sdk/src/models/phase-add-item-model-markups-2.ts
19712
+ // ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
19713
+ var UnscheduledPlanUpsertLicenseOnIncrease = {
19714
+ BillImmediately: "bill_immediately",
19715
+ ProrateImmediately: "prorate_immediately",
19716
+ ProrateNextCycle: "prorate_next_cycle",
19717
+ BillNextCycle: "bill_next_cycle"
19718
+ };
19413
19719
  var UnscheduledPlanUpsertLicenseOnDecrease = {
19414
19720
  Prorate: "prorate",
19415
19721
  ProrateImmediately: "prorate_immediately",
@@ -19589,6 +19895,40 @@ var PhaseDimensionsToAddItemEnum1 = {
19589
19895
  var PhaseToAddItemEnum = {
19590
19896
  Inf: "inf"
19591
19897
  };
19898
+ var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
19899
+ z35.object({
19900
+ amount: z35.optional(z35.number()),
19901
+ additionalCurrencies: z35.optional(
19902
+ z35.array(
19903
+ UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
19904
+ )
19905
+ ),
19906
+ tiers: z35.optional(
19907
+ z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
19908
+ ),
19909
+ tierBehavior: z35.optional(
19910
+ UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
19911
+ ),
19912
+ interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
19913
+ intervalCount: z35._default(z35.number(), 1),
19914
+ billingUnits: z35._default(z35.number(), 1),
19915
+ billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
19916
+ maxPurchase: z35.optional(z35.nullable(z35.number()))
19917
+ }),
19918
+ z35.transform((v) => {
19919
+ return remap(v, {
19920
+ additionalCurrencies: "additional_currencies",
19921
+ tierBehavior: "tier_behavior",
19922
+ intervalCount: "interval_count",
19923
+ billingUnits: "billing_units",
19924
+ billingMethod: "billing_method",
19925
+ maxPurchase: "max_purchase"
19926
+ });
19927
+ })
19928
+ );
19929
+ var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
19930
+ UnscheduledPlanUpsertLicenseOnIncrease
19931
+ );
19592
19932
  var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
19593
19933
  UnscheduledPlanUpsertLicenseOnDecrease
19594
19934
  );
@@ -19627,6 +19967,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
19627
19967
  duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
19628
19968
  length: z35.number()
19629
19969
  });
19970
+ var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
19971
+ z35.object({
19972
+ meteredFeatureId: z35.string(),
19973
+ excluded: z35.literal(true)
19974
+ }),
19975
+ z35.transform((v) => {
19976
+ return remap(v, {
19977
+ meteredFeatureId: "metered_feature_id"
19978
+ });
19979
+ })
19980
+ );
19630
19981
  var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
19631
19982
  var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
19632
19983
  z35.object({
@@ -19843,7 +20194,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
19843
20194
  );
19844
20195
  var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
19845
20196
  z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
19846
- z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
20197
+ z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
20198
+ z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
19847
20199
  ]);
19848
20200
  var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
19849
20201
  markup: z35.number()
@@ -19887,7 +20239,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
19887
20239
  z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
19888
20240
  z35.lazy(
19889
20241
  () => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
19890
- )
20242
+ ),
20243
+ z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
19891
20244
  ]))),
19892
20245
  markups: z35.optional(z35.lazy(
19893
20246
  () => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
@@ -19909,7 +20262,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
19909
20262
  unlimited: z35.optional(z35.boolean()),
19910
20263
  pooled: z35._default(z35.boolean(), false),
19911
20264
  reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
19912
- price: z35.optional(UnscheduledPlanUpsertLicensePrice$outboundSchema),
20265
+ price: z35.optional(
20266
+ z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
20267
+ ),
19913
20268
  proration: z35.optional(
19914
20269
  z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
19915
20270
  ),
@@ -20234,6 +20589,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
20234
20589
  duration: PhaseItemDuration2$outboundSchema,
20235
20590
  length: z35.number()
20236
20591
  });
20592
+ var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
20593
+ z35.object({
20594
+ meteredFeatureId: z35.string(),
20595
+ excluded: z35.literal(true)
20596
+ }),
20597
+ z35.transform((v) => {
20598
+ return remap(v, {
20599
+ meteredFeatureId: "metered_feature_id"
20600
+ });
20601
+ })
20602
+ );
20237
20603
  var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
20238
20604
  var PhaseDimensionsItem4$outboundSchema = z35.pipe(
20239
20605
  z35.object({
@@ -20418,7 +20784,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
20418
20784
  );
20419
20785
  var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
20420
20786
  z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
20421
- z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
20787
+ z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
20788
+ z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
20422
20789
  ]);
20423
20790
  var PhaseItemProviderMarkups2$outboundSchema = z35.object({
20424
20791
  markup: z35.number()
@@ -20462,7 +20829,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
20462
20829
  z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
20463
20830
  z35.lazy(
20464
20831
  () => PhaseCreditSchemaItem2$outboundSchema
20465
- )
20832
+ ),
20833
+ z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
20466
20834
  ]))),
20467
20835
  markups: z35.optional(z35.lazy(
20468
20836
  () => PhaseItemMarkups2$outboundSchema
@@ -20613,6 +20981,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
20613
20981
  duration: PhaseAddItemDuration2$outboundSchema,
20614
20982
  length: z35.number()
20615
20983
  });
20984
+ var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
20985
+ z35.object({
20986
+ meteredFeatureId: z35.string(),
20987
+ excluded: z35.literal(true)
20988
+ }),
20989
+ z35.transform((v) => {
20990
+ return remap(v, {
20991
+ meteredFeatureId: "metered_feature_id"
20992
+ });
20993
+ })
20994
+ );
20616
20995
  var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
20617
20996
  var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
20618
20997
  z35.object({
@@ -20758,65 +21137,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
20758
21137
  });
20759
21138
  var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
20760
21139
  var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
20761
- var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
20762
- z35.object({
20763
- to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
20764
- creditCost: z35.number()
20765
- }),
20766
- z35.transform((v) => {
20767
- return remap(v, {
20768
- creditCost: "credit_cost"
20769
- });
20770
- })
20771
- );
20772
- var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
20773
- z35.object({
20774
- meteredFeatureId: z35.string(),
20775
- billingUnits: z35.optional(z35.number()),
20776
- dimensions: z35.optional(z35.record(
20777
- z35.string(),
20778
- smartUnion([
20779
- z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
20780
- z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
20781
- ])
20782
- )),
20783
- multipliers: z35.optional(z35.record(
20784
- z35.string(),
20785
- z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
20786
- )),
20787
- tierBehavior: z35.literal("graduated"),
20788
- tiers: z35.array(
20789
- z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
20790
- )
20791
- }),
20792
- z35.transform((v) => {
20793
- return remap(v, {
20794
- meteredFeatureId: "metered_feature_id",
20795
- billingUnits: "billing_units",
20796
- tierBehavior: "tier_behavior"
20797
- });
20798
- })
20799
- );
20800
- var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
20801
- z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
20802
- z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
20803
- ]);
20804
- var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
20805
- markup: z35.number()
20806
- });
20807
- var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
20808
- z35.object({
20809
- markup: z35.optional(z35.number()),
20810
- inputCost: z35.optional(z35.number()),
20811
- outputCost: z35.optional(z35.number())
20812
- }),
20813
- z35.transform((v) => {
20814
- return remap(v, {
20815
- inputCost: "input_cost",
20816
- outputCost: "output_cost"
20817
- });
20818
- })
20819
- );
20820
21140
 
20821
21141
  // ../sdk/src/models/create-schedule-response.ts
20822
21142
  var PhaseRemoveItemBillingMethod2 = {
@@ -20973,20 +21293,73 @@ var CreateScheduleCode = {
20973
21293
  PaymentFailed: "payment_failed",
20974
21294
  PaymentProcessing: "payment_processing"
20975
21295
  };
20976
- var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
21296
+ var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
20977
21297
  z36.object({
20978
- defaultMarkup: z36.optional(z36.number()),
20979
- providerMarkups: z36.optional(
20980
- z36.nullable(
20981
- z36.record(z36.string(), PhaseAddItemProviderMarkups2$outboundSchema)
20982
- )
21298
+ to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
21299
+ creditCost: z36.number()
21300
+ }),
21301
+ z36.transform((v) => {
21302
+ return remap(v, {
21303
+ creditCost: "credit_cost"
21304
+ });
21305
+ })
21306
+ );
21307
+ var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
21308
+ z36.object({
21309
+ meteredFeatureId: z36.string(),
21310
+ billingUnits: z36.optional(z36.number()),
21311
+ dimensions: z36.optional(
21312
+ z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
20983
21313
  ),
20984
- modelMarkups: z36.optional(
20985
- z36.nullable(
20986
- z36.record(z36.string(), PhaseAddItemModelMarkups2$outboundSchema)
20987
- )
21314
+ multipliers: z36.optional(
21315
+ z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
21316
+ ),
21317
+ tierBehavior: z36.literal("graduated"),
21318
+ tiers: z36.array(
21319
+ z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
20988
21320
  )
20989
21321
  }),
21322
+ z36.transform((v) => {
21323
+ return remap(v, {
21324
+ meteredFeatureId: "metered_feature_id",
21325
+ billingUnits: "billing_units",
21326
+ tierBehavior: "tier_behavior"
21327
+ });
21328
+ })
21329
+ );
21330
+ var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
21331
+ z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
21332
+ PhaseCreditSchemaAddItem2$outboundSchema,
21333
+ PhaseCreditSchemaAddItem3$outboundSchema
21334
+ ]);
21335
+ var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
21336
+ markup: z36.number()
21337
+ });
21338
+ var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
21339
+ z36.object({
21340
+ markup: z36.optional(z36.number()),
21341
+ inputCost: z36.optional(z36.number()),
21342
+ outputCost: z36.optional(z36.number())
21343
+ }),
21344
+ z36.transform((v) => {
21345
+ return remap(v, {
21346
+ inputCost: "input_cost",
21347
+ outputCost: "output_cost"
21348
+ });
21349
+ })
21350
+ );
21351
+ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
21352
+ z36.object({
21353
+ defaultMarkup: z36.optional(z36.number()),
21354
+ providerMarkups: z36.optional(z36.nullable(z36.record(
21355
+ z36.string(),
21356
+ z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
21357
+ ))),
21358
+ modelMarkups: z36.optional(z36.nullable(z36.record(
21359
+ z36.string(),
21360
+ z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
21361
+ )))
21362
+ }),
20990
21363
  z36.transform((v) => {
20991
21364
  return remap(v, {
20992
21365
  defaultMarkup: "default_markup",
@@ -20997,10 +21370,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
20997
21370
  );
20998
21371
  var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
20999
21372
  z36.object({
21000
- creditSchema: z36.optional(
21001
- z36.array(PhaseAddItemCreditSchemaUnion2$outboundSchema)
21002
- ),
21003
- markups: z36.optional(z36.lazy(() => PhaseAddItemMarkups2$outboundSchema))
21373
+ creditSchema: z36.optional(z36.array(smartUnion([
21374
+ z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
21375
+ PhaseCreditSchemaAddItem2$outboundSchema,
21376
+ PhaseCreditSchemaAddItem3$outboundSchema
21377
+ ]))),
21378
+ markups: z36.optional(z36.lazy(
21379
+ () => PhaseAddItemMarkups2$outboundSchema
21380
+ ))
21004
21381
  }),
21005
21382
  z36.transform((v) => {
21006
21383
  return remap(v, {
@@ -21342,6 +21719,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
21342
21719
  duration: PhaseUpsertLicenseDuration2$outboundSchema,
21343
21720
  length: z36.number()
21344
21721
  });
21722
+ var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
21723
+ z36.object({
21724
+ meteredFeatureId: z36.string(),
21725
+ excluded: z36.literal(true)
21726
+ }),
21727
+ z36.transform((v) => {
21728
+ return remap(v, {
21729
+ meteredFeatureId: "metered_feature_id"
21730
+ });
21731
+ })
21732
+ );
21345
21733
  var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
21346
21734
  var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
21347
21735
  z36.object({
@@ -21528,7 +21916,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
21528
21916
  );
21529
21917
  var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
21530
21918
  z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
21531
- z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
21919
+ z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
21920
+ z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
21532
21921
  ]);
21533
21922
  var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
21534
21923
  markup: z36.number()
@@ -21572,7 +21961,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
21572
21961
  z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
21573
21962
  z36.lazy(
21574
21963
  () => PhaseCreditSchemaUpsertLicense2$outboundSchema
21575
- )
21964
+ ),
21965
+ z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
21576
21966
  ]))),
21577
21967
  markups: z36.optional(z36.lazy(
21578
21968
  () => PhaseUpsertLicenseMarkups2$outboundSchema
@@ -22032,6 +22422,11 @@ var CustomerFlagsType = {
22032
22422
  CreditSystem: "credit_system",
22033
22423
  AiCreditSystem: "ai_credit_system"
22034
22424
  };
22425
+ var CustomerCombine = {
22426
+ Sum: "sum",
22427
+ Max: "max",
22428
+ Min: "min"
22429
+ };
22035
22430
  var CustomerDimensionsToEnum3 = {
22036
22431
  Inf: "inf"
22037
22432
  };
@@ -22338,6 +22733,7 @@ var License$inboundSchema = z39.pipe(
22338
22733
  })
22339
22734
  );
22340
22735
  var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
22736
+ var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
22341
22737
  var CustomerDimensions6$inboundSchema = z39.pipe(
22342
22738
  z39.object({
22343
22739
  match: z39.record(z39.string(), string5()),
@@ -22614,6 +23010,7 @@ var CustomerFeature$inboundSchema = z39.pipe(
22614
23010
  name: string5(),
22615
23011
  type: CustomerFlagsType$inboundSchema,
22616
23012
  consumable: boolean2(),
23013
+ combine: optional3(CustomerCombine$inboundSchema),
22617
23014
  event_names: optional3(z39.array(string5())),
22618
23015
  credit_schema: optional3(z39.array(smartUnion([
22619
23016
  z39.lazy(() => CustomerCreditSchema1$inboundSchema),
@@ -23356,6 +23753,11 @@ var GetCustomerFlagsType = {
23356
23753
  CreditSystem: "credit_system",
23357
23754
  AiCreditSystem: "ai_credit_system"
23358
23755
  };
23756
+ var GetCustomerCombine = {
23757
+ Sum: "sum",
23758
+ Max: "max",
23759
+ Min: "min"
23760
+ };
23359
23761
  var GetCustomerDimensionsToEnum3 = {
23360
23762
  Inf: "inf"
23361
23763
  };
@@ -23673,6 +24075,7 @@ var GetCustomerLicense$inboundSchema = z52.pipe(
23673
24075
  })
23674
24076
  );
23675
24077
  var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
24078
+ var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
23676
24079
  var GetCustomerDimensions6$inboundSchema = z52.pipe(
23677
24080
  z52.object({
23678
24081
  match: z52.record(z52.string(), string5()),
@@ -23958,6 +24361,7 @@ var GetCustomerFeature$inboundSchema = z52.pipe(
23958
24361
  name: string5(),
23959
24362
  type: GetCustomerFlagsType$inboundSchema,
23960
24363
  consumable: boolean2(),
24364
+ combine: optional3(GetCustomerCombine$inboundSchema),
23961
24365
  event_names: optional3(z52.array(string5())),
23962
24366
  credit_schema: optional3(z52.array(smartUnion([
23963
24367
  z52.lazy(() => GetCustomerCreditSchema1$inboundSchema),
@@ -24345,6 +24749,11 @@ var GetEntityType = {
24345
24749
  CreditSystem: "credit_system",
24346
24750
  AiCreditSystem: "ai_credit_system"
24347
24751
  };
24752
+ var GetEntityCombine = {
24753
+ Sum: "sum",
24754
+ Max: "max",
24755
+ Min: "min"
24756
+ };
24348
24757
  var GetEntityDimensionsToEnum3 = {
24349
24758
  Inf: "inf"
24350
24759
  };
@@ -24470,6 +24879,7 @@ var GetEntityPurchase$inboundSchema = z53.pipe(
24470
24879
  })
24471
24880
  );
24472
24881
  var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
24882
+ var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
24473
24883
  var GetEntityDimensions6$inboundSchema = z53.pipe(
24474
24884
  z53.object({
24475
24885
  match: z53.record(z53.string(), string5()),
@@ -24746,6 +25156,7 @@ var GetEntityFeature$inboundSchema = z53.pipe(
24746
25156
  name: string5(),
24747
25157
  type: GetEntityType$inboundSchema,
24748
25158
  consumable: boolean2(),
25159
+ combine: optional3(GetEntityCombine$inboundSchema),
24749
25160
  event_names: optional3(z53.array(string5())),
24750
25161
  credit_schema: optional3(z53.array(smartUnion([
24751
25162
  z53.lazy(() => GetEntityCreditSchema1$inboundSchema),
@@ -24964,6 +25375,11 @@ var GetFeatureType = {
24964
25375
  CreditSystem: "credit_system",
24965
25376
  AiCreditSystem: "ai_credit_system"
24966
25377
  };
25378
+ var GetFeatureCombine = {
25379
+ Sum: "sum",
25380
+ Max: "max",
25381
+ Min: "min"
25382
+ };
24967
25383
  var GetFeatureDimensionsToEnum3 = {
24968
25384
  Inf: "inf"
24969
25385
  };
@@ -24987,6 +25403,7 @@ var GetFeatureParams$outboundSchema = z54.pipe(
24987
25403
  })
24988
25404
  );
24989
25405
  var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
25406
+ var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
24990
25407
  var GetFeatureDimensions6$inboundSchema = z54.pipe(
24991
25408
  z54.object({
24992
25409
  match: z54.record(z54.string(), string5()),
@@ -25263,6 +25680,7 @@ var GetFeatureResponse$inboundSchema = z54.pipe(
25263
25680
  name: string5(),
25264
25681
  type: GetFeatureType$inboundSchema,
25265
25682
  consumable: boolean2(),
25683
+ combine: optional3(GetFeatureCombine$inboundSchema),
25266
25684
  event_names: optional3(z54.array(string5())),
25267
25685
  credit_schema: optional3(z54.array(smartUnion([
25268
25686
  z54.lazy(() => GetFeatureCreditSchema1$inboundSchema),
@@ -25606,7 +26024,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
25606
26024
  // ../sdk/src/models/get-plan-response.ts
25607
26025
  import * as z57 from "zod/v4-mini";
25608
26026
 
25609
- // ../sdk/src/models/get-plan-variant-details-usage-alert.ts
26027
+ // ../sdk/src/models/get-plan-variant-details-basis.ts
25610
26028
  import * as z56 from "zod/v4-mini";
25611
26029
  var GetPlanPriceInterval = {
25612
26030
  OneOff: "one_off",
@@ -26085,6 +26503,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
26085
26503
  duration: GetPlanItemDuration$inboundSchema,
26086
26504
  length: number2()
26087
26505
  });
26506
+ var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
26507
+ z56.object({
26508
+ metered_feature_id: string5(),
26509
+ excluded: literal3(true)
26510
+ }),
26511
+ z56.transform((v) => {
26512
+ return remap(v, {
26513
+ "metered_feature_id": "meteredFeatureId"
26514
+ });
26515
+ })
26516
+ );
26088
26517
  var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
26089
26518
  z56.object({
26090
26519
  match: z56.record(z56.string(), string5()),
@@ -26253,7 +26682,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
26253
26682
  );
26254
26683
  var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
26255
26684
  z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
26256
- z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
26685
+ z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
26686
+ z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
26257
26687
  ]);
26258
26688
  var GetPlanItemProviderMarkups$inboundSchema = z56.object({
26259
26689
  markup: number2()
@@ -26297,7 +26727,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
26297
26727
  z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
26298
26728
  z56.lazy(
26299
26729
  () => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
26300
- )
26730
+ ),
26731
+ z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
26301
26732
  ]))),
26302
26733
  markups: optional3(z56.lazy(
26303
26734
  () => GetPlanItemMarkups$inboundSchema
@@ -26699,6 +27130,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
26699
27130
  duration: GetPlanVariantDetailsDuration$inboundSchema,
26700
27131
  length: number2()
26701
27132
  });
27133
+ var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
27134
+ z56.object({
27135
+ metered_feature_id: string5(),
27136
+ excluded: literal3(true)
27137
+ }),
27138
+ z56.transform((v) => {
27139
+ return remap(v, {
27140
+ "metered_feature_id": "meteredFeatureId"
27141
+ });
27142
+ })
27143
+ );
26702
27144
  var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
26703
27145
  z56.object({
26704
27146
  match: z56.record(z56.string(), string5()),
@@ -26884,7 +27326,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
26884
27326
  );
26885
27327
  var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
26886
27328
  z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
26887
- z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
27329
+ z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
27330
+ z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
26888
27331
  ]);
26889
27332
  var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
26890
27333
  markup: number2()
@@ -26928,7 +27371,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
26928
27371
  z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
26929
27372
  z56.lazy(
26930
27373
  () => GetPlanCreditSchemaVariantDetails2$inboundSchema
26931
- )
27374
+ ),
27375
+ z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
26932
27376
  ]))),
26933
27377
  markups: optional3(z56.lazy(
26934
27378
  () => GetPlanVariantDetailsMarkups$inboundSchema
@@ -27102,28 +27546,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
27102
27546
  );
27103
27547
  var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
27104
27548
  var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
27105
- var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
27106
- properties: z56.record(z56.string(), string5())
27107
- });
27108
- var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
27109
- z56.object({
27110
- feature_id: optional3(string5()),
27111
- enabled: z56._default(boolean2(), true),
27112
- threshold: number2(),
27113
- threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
27114
- basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
27115
- filter: optional3(
27116
- z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
27117
- ),
27118
- name: optional3(string5())
27119
- }),
27120
- z56.transform((v) => {
27121
- return remap(v, {
27122
- "feature_id": "featureId",
27123
- "threshold_type": "thresholdType"
27124
- });
27125
- })
27126
- );
27127
27549
 
27128
27550
  // ../sdk/src/models/get-plan-response.ts
27129
27551
  var GetPlanPriceUpsertLicenseInterval = {
@@ -27306,6 +27728,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
27306
27728
  SemiAnnual: "semi_annual",
27307
27729
  Year: "year"
27308
27730
  };
27731
+ var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
27732
+ properties: z57.record(z57.string(), string5())
27733
+ });
27734
+ var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
27735
+ z57.object({
27736
+ feature_id: optional3(string5()),
27737
+ enabled: z57._default(boolean2(), true),
27738
+ threshold: number2(),
27739
+ threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
27740
+ basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
27741
+ filter: optional3(
27742
+ z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
27743
+ ),
27744
+ name: optional3(string5())
27745
+ }),
27746
+ z57.transform((v) => {
27747
+ return remap(v, {
27748
+ "feature_id": "featureId",
27749
+ "threshold_type": "thresholdType"
27750
+ });
27751
+ })
27752
+ );
27309
27753
  var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
27310
27754
  z57.object({
27311
27755
  feature_id: string5(),
@@ -27329,7 +27773,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
27329
27773
  z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
27330
27774
  ),
27331
27775
  usage_alerts: optional3(
27332
- z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
27776
+ z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
27333
27777
  ),
27334
27778
  overage_allowed: optional3(
27335
27779
  z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
@@ -27483,6 +27927,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
27483
27927
  duration: GetPlanUpsertLicenseDuration$inboundSchema,
27484
27928
  length: number2()
27485
27929
  });
27930
+ var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
27931
+ z57.object({
27932
+ metered_feature_id: string5(),
27933
+ excluded: literal3(true)
27934
+ }),
27935
+ z57.transform((v) => {
27936
+ return remap(v, {
27937
+ "metered_feature_id": "meteredFeatureId"
27938
+ });
27939
+ })
27940
+ );
27486
27941
  var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
27487
27942
  z57.object({
27488
27943
  match: z57.record(z57.string(), string5()),
@@ -27664,7 +28119,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
27664
28119
  );
27665
28120
  var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
27666
28121
  z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
27667
- z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
28122
+ z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
28123
+ z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
27668
28124
  ]);
27669
28125
  var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
27670
28126
  markup: number2()
@@ -27708,7 +28164,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
27708
28164
  z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
27709
28165
  z57.lazy(
27710
28166
  () => GetPlanCreditSchemaUpsertLicense2$inboundSchema
27711
- )
28167
+ ),
28168
+ z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
27712
28169
  ]))),
27713
28170
  markups: optional3(z57.lazy(
27714
28171
  () => GetPlanUpsertLicenseMarkups$inboundSchema
@@ -28012,6 +28469,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
28012
28469
  duration: GetPlanLicenseDuration$inboundSchema,
28013
28470
  length: number2()
28014
28471
  });
28472
+ var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
28473
+ z57.object({
28474
+ metered_feature_id: string5(),
28475
+ excluded: literal3(true)
28476
+ }),
28477
+ z57.transform((v) => {
28478
+ return remap(v, {
28479
+ "metered_feature_id": "meteredFeatureId"
28480
+ });
28481
+ })
28482
+ );
28015
28483
  var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
28016
28484
  z57.object({
28017
28485
  match: z57.record(z57.string(), string5()),
@@ -28180,7 +28648,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
28180
28648
  );
28181
28649
  var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
28182
28650
  z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
28183
- z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
28651
+ z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
28652
+ z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
28184
28653
  ]);
28185
28654
  var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
28186
28655
  markup: number2()
@@ -28224,7 +28693,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
28224
28693
  z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
28225
28694
  z57.lazy(
28226
28695
  () => GetPlanCreditSchemaLicense2$inboundSchema
28227
- )
28696
+ ),
28697
+ z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
28228
28698
  ]))),
28229
28699
  markups: optional3(z57.lazy(
28230
28700
  () => GetPlanLicenseMarkups$inboundSchema
@@ -29401,6 +29871,11 @@ var ListCustomersType = {
29401
29871
  CreditSystem: "credit_system",
29402
29872
  AiCreditSystem: "ai_credit_system"
29403
29873
  };
29874
+ var ListCustomersCombine = {
29875
+ Sum: "sum",
29876
+ Max: "max",
29877
+ Min: "min"
29878
+ };
29404
29879
  var ListCustomersDimensionsToEnum3 = {
29405
29880
  Inf: "inf"
29406
29881
  };
@@ -29717,6 +30192,7 @@ var ListCustomersLicense$inboundSchema = z68.pipe(
29717
30192
  })
29718
30193
  );
29719
30194
  var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
30195
+ var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
29720
30196
  var ListCustomersDimensions6$inboundSchema = z68.pipe(
29721
30197
  z68.object({
29722
30198
  match: z68.record(z68.string(), string5()),
@@ -30002,6 +30478,7 @@ var ListCustomersFeature$inboundSchema = z68.pipe(
30002
30478
  name: string5(),
30003
30479
  type: ListCustomersType$inboundSchema,
30004
30480
  consumable: boolean2(),
30481
+ combine: optional3(ListCustomersCombine$inboundSchema),
30005
30482
  event_names: optional3(z68.array(string5())),
30006
30483
  credit_schema: optional3(z68.array(smartUnion([
30007
30484
  z68.lazy(() => ListCustomersCreditSchema1$inboundSchema),
@@ -30168,6 +30645,11 @@ var ListEntitiesType = {
30168
30645
  CreditSystem: "credit_system",
30169
30646
  AiCreditSystem: "ai_credit_system"
30170
30647
  };
30648
+ var ListEntitiesCombine = {
30649
+ Sum: "sum",
30650
+ Max: "max",
30651
+ Min: "min"
30652
+ };
30171
30653
  var ListEntitiesDimensionsToEnum3 = {
30172
30654
  Inf: "inf"
30173
30655
  };
@@ -30307,6 +30789,7 @@ var ListEntitiesPurchase$inboundSchema = z69.pipe(
30307
30789
  })
30308
30790
  );
30309
30791
  var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
30792
+ var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
30310
30793
  var ListEntitiesDimensions6$inboundSchema = z69.pipe(
30311
30794
  z69.object({
30312
30795
  match: z69.record(z69.string(), string5()),
@@ -30592,6 +31075,7 @@ var ListEntitiesFeature$inboundSchema = z69.pipe(
30592
31075
  name: string5(),
30593
31076
  type: ListEntitiesType$inboundSchema,
30594
31077
  consumable: boolean2(),
31078
+ combine: optional3(ListEntitiesCombine$inboundSchema),
30595
31079
  event_names: optional3(z69.array(string5())),
30596
31080
  credit_schema: optional3(z69.array(smartUnion([
30597
31081
  z69.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
@@ -30937,6 +31421,11 @@ var ListFeaturesType = {
30937
31421
  CreditSystem: "credit_system",
30938
31422
  AiCreditSystem: "ai_credit_system"
30939
31423
  };
31424
+ var ListFeaturesCombine = {
31425
+ Sum: "sum",
31426
+ Max: "max",
31427
+ Min: "min"
31428
+ };
30940
31429
  var ListFeaturesDimensionsToEnum3 = {
30941
31430
  Inf: "inf"
30942
31431
  };
@@ -30951,6 +31440,7 @@ var ListFeaturesToEnum = {
30951
31440
  };
30952
31441
  var ListFeaturesRequest$outboundSchema = z71.object({});
30953
31442
  var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
31443
+ var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
30954
31444
  var ListFeaturesDimensions6$inboundSchema = z71.pipe(
30955
31445
  z71.object({
30956
31446
  match: z71.record(z71.string(), string5()),
@@ -31236,6 +31726,7 @@ var ListFeaturesList$inboundSchema = z71.pipe(
31236
31726
  name: string5(),
31237
31727
  type: ListFeaturesType$inboundSchema,
31238
31728
  consumable: boolean2(),
31729
+ combine: optional3(ListFeaturesCombine$inboundSchema),
31239
31730
  event_names: optional3(z71.array(string5())),
31240
31731
  credit_schema: optional3(z71.array(smartUnion([
31241
31732
  z71.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
@@ -31439,13 +31930,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
31439
31930
  })
31440
31931
  );
31441
31932
 
31442
- // ../sdk/src/models/list-plans-response.ts
31443
- import * as z77 from "zod/v4-mini";
31444
-
31445
- // ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
31933
+ // ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
31446
31934
  import * as z75 from "zod/v4-mini";
31447
31935
 
31448
- // ../sdk/src/models/list-plans-variant-details-usage-alert.ts
31936
+ // ../sdk/src/models/list-plans-variant-details-basis.ts
31449
31937
  import * as z74 from "zod/v4-mini";
31450
31938
  var ListPlansPriceInterval = {
31451
31939
  OneOff: "one_off",
@@ -31929,6 +32417,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
31929
32417
  duration: ListPlansItemDuration$inboundSchema,
31930
32418
  length: number2()
31931
32419
  });
32420
+ var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
32421
+ z74.object({
32422
+ metered_feature_id: string5(),
32423
+ excluded: literal3(true)
32424
+ }),
32425
+ z74.transform((v) => {
32426
+ return remap(v, {
32427
+ "metered_feature_id": "meteredFeatureId"
32428
+ });
32429
+ })
32430
+ );
31932
32431
  var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
31933
32432
  z74.object({
31934
32433
  match: z74.record(z74.string(), string5()),
@@ -32097,7 +32596,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
32097
32596
  );
32098
32597
  var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
32099
32598
  z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
32100
- z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
32599
+ z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
32600
+ z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
32101
32601
  ]);
32102
32602
  var ListPlansItemProviderMarkups$inboundSchema = z74.object({
32103
32603
  markup: number2()
@@ -32141,7 +32641,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
32141
32641
  z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
32142
32642
  z74.lazy(
32143
32643
  () => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
32144
- )
32644
+ ),
32645
+ z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
32145
32646
  ]))),
32146
32647
  markups: optional3(z74.lazy(
32147
32648
  () => ListPlansItemMarkups$inboundSchema
@@ -32547,6 +33048,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
32547
33048
  duration: ListPlansVariantDetailsDuration$inboundSchema,
32548
33049
  length: number2()
32549
33050
  });
33051
+ var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
33052
+ z74.object({
33053
+ metered_feature_id: string5(),
33054
+ excluded: literal3(true)
33055
+ }),
33056
+ z74.transform((v) => {
33057
+ return remap(v, {
33058
+ "metered_feature_id": "meteredFeatureId"
33059
+ });
33060
+ })
33061
+ );
32550
33062
  var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
32551
33063
  z74.object({
32552
33064
  match: z74.record(z74.string(), string5()),
@@ -32733,7 +33245,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
32733
33245
  var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
32734
33246
  [
32735
33247
  z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
32736
- z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
33248
+ z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
33249
+ z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
32737
33250
  ]
32738
33251
  );
32739
33252
  var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
@@ -32778,7 +33291,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
32778
33291
  z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
32779
33292
  z74.lazy(
32780
33293
  () => ListPlansCreditSchemaVariantDetails2$inboundSchema
32781
- )
33294
+ ),
33295
+ z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
32782
33296
  ]))),
32783
33297
  markups: optional3(z74.lazy(
32784
33298
  () => ListPlansVariantDetailsMarkups$inboundSchema
@@ -32952,30 +33466,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
32952
33466
  );
32953
33467
  var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
32954
33468
  var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
32955
- var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
32956
- properties: z74.record(z74.string(), string5())
32957
- });
32958
- var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
32959
- z74.object({
32960
- feature_id: optional3(string5()),
32961
- enabled: z74._default(boolean2(), true),
32962
- threshold: number2(),
32963
- threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
32964
- basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
32965
- filter: optional3(
32966
- z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
32967
- ),
32968
- name: optional3(string5())
32969
- }),
32970
- z74.transform((v) => {
32971
- return remap(v, {
32972
- "feature_id": "featureId",
32973
- "threshold_type": "thresholdType"
32974
- });
32975
- })
32976
- );
32977
33469
 
32978
- // ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
33470
+ // ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
32979
33471
  var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
32980
33472
  OneOff: "one_off",
32981
33473
  Week: "week",
@@ -33220,9 +33712,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
33220
33712
  var ListPlansDimensionsToVariantAddItemEnum1 = {
33221
33713
  Inf: "inf"
33222
33714
  };
33223
- var ListPlansToVariantAddItemEnum = {
33224
- Inf: "inf"
33225
- };
33715
+ var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
33716
+ properties: z75.record(z75.string(), string5())
33717
+ });
33718
+ var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
33719
+ z75.object({
33720
+ feature_id: optional3(string5()),
33721
+ enabled: z75._default(boolean2(), true),
33722
+ threshold: number2(),
33723
+ threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
33724
+ basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
33725
+ filter: optional3(
33726
+ z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
33727
+ ),
33728
+ name: optional3(string5())
33729
+ }),
33730
+ z75.transform((v) => {
33731
+ return remap(v, {
33732
+ "feature_id": "featureId",
33733
+ "threshold_type": "thresholdType"
33734
+ });
33735
+ })
33736
+ );
33226
33737
  var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
33227
33738
  z75.object({
33228
33739
  feature_id: string5(),
@@ -33245,9 +33756,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
33245
33756
  usage_limits: optional3(
33246
33757
  z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
33247
33758
  ),
33248
- usage_alerts: optional3(
33249
- z75.array(ListPlansVariantDetailsUsageAlert$inboundSchema)
33250
- ),
33759
+ usage_alerts: optional3(z75.array(z75.lazy(
33760
+ () => ListPlansVariantDetailsUsageAlert$inboundSchema
33761
+ ))),
33251
33762
  overage_allowed: optional3(z75.array(z75.lazy(
33252
33763
  () => ListPlansVariantDetailsOverageAllowed$inboundSchema
33253
33764
  )))
@@ -33408,6 +33919,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
33408
33919
  length: number2()
33409
33920
  }
33410
33921
  );
33922
+ var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
33923
+ z75.object({
33924
+ metered_feature_id: string5(),
33925
+ excluded: literal3(true)
33926
+ }),
33927
+ z75.transform((v) => {
33928
+ return remap(v, {
33929
+ "metered_feature_id": "meteredFeatureId"
33930
+ });
33931
+ })
33932
+ );
33411
33933
  var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
33412
33934
  z75.object({
33413
33935
  match: z75.record(z75.string(), string5()),
@@ -33620,6 +34142,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
33620
34142
  ),
33621
34143
  z75.lazy(
33622
34144
  () => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
34145
+ ),
34146
+ z75.lazy(
34147
+ () => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
33623
34148
  )
33624
34149
  ]);
33625
34150
  var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
@@ -33670,6 +34195,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
33670
34195
  ),
33671
34196
  z75.lazy(
33672
34197
  () => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
34198
+ ),
34199
+ z75.lazy(
34200
+ () => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
33673
34201
  )
33674
34202
  ]))),
33675
34203
  markups: optional3(z75.lazy(
@@ -33986,6 +34514,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
33986
34514
  duration: ListPlansLicenseDuration$inboundSchema,
33987
34515
  length: number2()
33988
34516
  });
34517
+ var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
34518
+ z75.object({
34519
+ metered_feature_id: string5(),
34520
+ excluded: literal3(true)
34521
+ }),
34522
+ z75.transform((v) => {
34523
+ return remap(v, {
34524
+ "metered_feature_id": "meteredFeatureId"
34525
+ });
34526
+ })
34527
+ );
33989
34528
  var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
33990
34529
  z75.object({
33991
34530
  match: z75.record(z75.string(), string5()),
@@ -34163,7 +34702,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
34163
34702
  );
34164
34703
  var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
34165
34704
  z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
34166
- z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
34705
+ z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
34706
+ z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
34167
34707
  ]);
34168
34708
  var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
34169
34709
  markup: number2()
@@ -34207,7 +34747,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
34207
34747
  z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
34208
34748
  z75.lazy(
34209
34749
  () => ListPlansCreditSchemaLicense2$inboundSchema
34210
- )
34750
+ ),
34751
+ z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
34211
34752
  ]))),
34212
34753
  markups: optional3(z75.lazy(
34213
34754
  () => ListPlansLicenseMarkups$inboundSchema
@@ -34455,6 +34996,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
34455
34996
  duration: ListPlansVariantAddItemDuration$inboundSchema,
34456
34997
  length: number2()
34457
34998
  });
34999
+ var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
35000
+ z75.object({
35001
+ metered_feature_id: string5(),
35002
+ excluded: literal3(true)
35003
+ }),
35004
+ z75.transform((v) => {
35005
+ return remap(v, {
35006
+ "metered_feature_id": "meteredFeatureId"
35007
+ });
35008
+ })
35009
+ );
34458
35010
  var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
34459
35011
  z75.object({
34460
35012
  match: z75.record(z75.string(), string5()),
@@ -34585,34 +35137,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
34585
35137
  });
34586
35138
  })
34587
35139
  );
34588
- var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
34589
- z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
34590
- z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
34591
- ]);
34592
- var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
34593
- match: z75.record(z75.string(), string5()),
34594
- factor: optional3(number2()),
34595
- add: optional3(number2())
34596
- });
34597
- var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
34598
- var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
34599
- var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
34600
- z75.object({
34601
- to: smartUnion([
34602
- number2(),
34603
- ListPlansToVariantAddItemEnum$inboundSchema
34604
- ]),
34605
- credit_cost: number2()
34606
- }),
34607
- z75.transform((v) => {
34608
- return remap(v, {
34609
- "credit_cost": "creditCost"
34610
- });
34611
- })
34612
- );
34613
35140
 
34614
- // ../sdk/src/models/variant-plan-usage-limit-interval.ts
35141
+ // ../sdk/src/models/list-plans-response.ts
35142
+ import * as z77 from "zod/v4-mini";
35143
+
35144
+ // ../sdk/src/models/variant-env.ts
34615
35145
  import * as z76 from "zod/v4-mini";
35146
+ var ListPlansToVariantAddItemEnum = {
35147
+ Inf: "inf"
35148
+ };
34616
35149
  var ListPlansVariantRemoveItemBillingMethod = {
34617
35150
  Prepaid: "prepaid",
34618
35151
  UsageBased: "usage_based"
@@ -34836,22 +35369,31 @@ var VariantEnv = {
34836
35369
  Sandbox: "sandbox",
34837
35370
  Live: "live"
34838
35371
  };
34839
- var VariantPlanAutoTopupInterval = {
34840
- Hour: "hour",
34841
- Day: "day",
34842
- Week: "week",
34843
- Month: "month"
34844
- };
34845
- var VariantPlanLimitType = {
34846
- Absolute: "absolute",
34847
- UsagePercentage: "usage_percentage"
34848
- };
34849
- var VariantPlanUsageLimitInterval = {
34850
- Day: "day",
34851
- Week: "week",
34852
- Month: "month",
34853
- Year: "year"
34854
- };
35372
+ var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
35373
+ ListPlansDimensionsVariantAddItem1$inboundSchema,
35374
+ ListPlansDimensionsVariantAddItem2$inboundSchema
35375
+ ]);
35376
+ var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
35377
+ match: z76.record(z76.string(), string5()),
35378
+ factor: optional3(number2()),
35379
+ add: optional3(number2())
35380
+ });
35381
+ var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
35382
+ var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
35383
+ var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
35384
+ z76.object({
35385
+ to: smartUnion([
35386
+ number2(),
35387
+ ListPlansToVariantAddItemEnum$inboundSchema
35388
+ ]),
35389
+ credit_cost: number2()
35390
+ }),
35391
+ z76.transform((v) => {
35392
+ return remap(v, {
35393
+ "credit_cost": "creditCost"
35394
+ });
35395
+ })
35396
+ );
34855
35397
  var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
34856
35398
  z76.object({
34857
35399
  metered_feature_id: string5(),
@@ -34859,14 +35401,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
34859
35401
  dimensions: optional3(
34860
35402
  z76.record(
34861
35403
  z76.string(),
34862
- ListPlansVariantAddItemDimensionsUnion1$inboundSchema
35404
+ smartUnion([
35405
+ ListPlansDimensionsVariantAddItem1$inboundSchema,
35406
+ ListPlansDimensionsVariantAddItem2$inboundSchema
35407
+ ])
34863
35408
  )
34864
35409
  ),
34865
- multipliers: optional3(
34866
- z76.record(z76.string(), ListPlansVariantAddItemMultipliers1$inboundSchema)
34867
- ),
35410
+ multipliers: optional3(z76.record(
35411
+ z76.string(),
35412
+ z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
35413
+ )),
34868
35414
  tier_behavior: literal3("graduated"),
34869
- tiers: z76.array(ListPlansVariantAddItemFeatureOverrideTier$inboundSchema)
35415
+ tiers: z76.array(z76.lazy(
35416
+ () => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
35417
+ ))
34870
35418
  }),
34871
35419
  z76.transform((v) => {
34872
35420
  return remap(v, {
@@ -34879,7 +35427,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
34879
35427
  var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
34880
35428
  [
34881
35429
  z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
34882
- ListPlansCreditSchemaVariantAddItem2$inboundSchema
35430
+ ListPlansCreditSchemaVariantAddItem2$inboundSchema,
35431
+ ListPlansCreditSchemaVariantAddItem3$inboundSchema
34883
35432
  ]
34884
35433
  );
34885
35434
  var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
@@ -34922,7 +35471,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
34922
35471
  z76.object({
34923
35472
  credit_schema: optional3(z76.array(smartUnion([
34924
35473
  z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
34925
- ListPlansCreditSchemaVariantAddItem2$inboundSchema
35474
+ ListPlansCreditSchemaVariantAddItem2$inboundSchema,
35475
+ ListPlansCreditSchemaVariantAddItem3$inboundSchema
34926
35476
  ]))),
34927
35477
  markups: optional3(z76.lazy(
34928
35478
  () => ListPlansVariantAddItemMarkups$inboundSchema
@@ -35285,6 +35835,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
35285
35835
  duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
35286
35836
  length: number2()
35287
35837
  });
35838
+ var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
35839
+ z76.object({
35840
+ metered_feature_id: string5(),
35841
+ excluded: literal3(true)
35842
+ }),
35843
+ z76.transform((v) => {
35844
+ return remap(v, {
35845
+ "metered_feature_id": "meteredFeatureId"
35846
+ });
35847
+ })
35848
+ );
35288
35849
  var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
35289
35850
  z76.object({
35290
35851
  match: z76.record(z76.string(), string5()),
@@ -35453,7 +36014,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
35453
36014
  );
35454
36015
  var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
35455
36016
  z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
35456
- z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
36017
+ z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
36018
+ z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
35457
36019
  ]);
35458
36020
  var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
35459
36021
  markup: number2()
@@ -35497,7 +36059,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
35497
36059
  z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
35498
36060
  z76.lazy(
35499
36061
  () => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
35500
- )
36062
+ ),
36063
+ z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
35501
36064
  ]))),
35502
36065
  markups: optional3(z76.lazy(
35503
36066
  () => ListPlansVariantUpsertLicenseMarkups$inboundSchema
@@ -35879,6 +36442,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
35879
36442
  duration: VariantPlanDuration$inboundSchema,
35880
36443
  length: number2()
35881
36444
  });
36445
+ var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
36446
+ z76.object({
36447
+ metered_feature_id: string5(),
36448
+ excluded: literal3(true)
36449
+ }),
36450
+ z76.transform((v) => {
36451
+ return remap(v, {
36452
+ "metered_feature_id": "meteredFeatureId"
36453
+ });
36454
+ })
36455
+ );
35882
36456
  var DimensionsVariantPlan4$inboundSchema = z76.pipe(
35883
36457
  z76.object({
35884
36458
  match: z76.record(z76.string(), string5()),
@@ -36047,7 +36621,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
36047
36621
  );
36048
36622
  var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
36049
36623
  z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
36050
- z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
36624
+ z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
36625
+ z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
36051
36626
  ]);
36052
36627
  var VariantPlanProviderMarkups$inboundSchema = z76.object({
36053
36628
  markup: number2()
@@ -36091,7 +36666,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
36091
36666
  z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
36092
36667
  z76.lazy(
36093
36668
  () => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
36094
- )
36669
+ ),
36670
+ z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
36095
36671
  ]))),
36096
36672
  markups: optional3(z76.lazy(
36097
36673
  () => VariantPlanMarkups$inboundSchema
@@ -36197,12 +36773,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
36197
36773
  })
36198
36774
  );
36199
36775
  var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
36200
- var VariantConfig$inboundSchema = z76.pipe(
36201
- z76.object({
36202
- ignore_past_due: z76._default(boolean2(), false),
36203
- anchor_to_month_start: z76._default(boolean2(), false)
36776
+
36777
+ // ../sdk/src/models/list-plans-response.ts
36778
+ var VariantPlanAutoTopupInterval = {
36779
+ Hour: "hour",
36780
+ Day: "day",
36781
+ Week: "week",
36782
+ Month: "month"
36783
+ };
36784
+ var VariantPlanLimitType = {
36785
+ Absolute: "absolute",
36786
+ UsagePercentage: "usage_percentage"
36787
+ };
36788
+ var VariantPlanUsageLimitInterval = {
36789
+ Day: "day",
36790
+ Week: "week",
36791
+ Month: "month",
36792
+ Year: "year"
36793
+ };
36794
+ var VariantPlanAnchor = {
36795
+ BillingCycle: "billing_cycle",
36796
+ Utc: "utc"
36797
+ };
36798
+ var VariantPlanThresholdType = {
36799
+ Usage: "usage",
36800
+ UsagePercentage: "usage_percentage",
36801
+ Remaining: "remaining",
36802
+ RemainingPercentage: "remaining_percentage"
36803
+ };
36804
+ var VariantPlanBasis = {
36805
+ Balance: "balance",
36806
+ Included: "included",
36807
+ Recurring: "recurring",
36808
+ UsageLimit: "usage_limit"
36809
+ };
36810
+ var VariantStatus = {
36811
+ Active: "active",
36812
+ Scheduled: "scheduled"
36813
+ };
36814
+ var VariantAttachAction = {
36815
+ Activate: "activate",
36816
+ Upgrade: "upgrade",
36817
+ Downgrade: "downgrade",
36818
+ None: "none",
36819
+ Purchase: "purchase"
36820
+ };
36821
+ var VariantConfig$inboundSchema = z77.pipe(
36822
+ z77.object({
36823
+ ignore_past_due: z77._default(boolean2(), false),
36824
+ anchor_to_month_start: z77._default(boolean2(), false)
36204
36825
  }),
36205
- z76.transform((v) => {
36826
+ z77.transform((v) => {
36206
36827
  return remap(v, {
36207
36828
  "ignore_past_due": "ignorePastDue",
36208
36829
  "anchor_to_month_start": "anchorToMonthStart"
@@ -36210,30 +36831,30 @@ var VariantConfig$inboundSchema = z76.pipe(
36210
36831
  })
36211
36832
  );
36212
36833
  var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
36213
- var VariantPlanPurchaseLimit$inboundSchema = z76.pipe(
36214
- z76.object({
36834
+ var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
36835
+ z77.object({
36215
36836
  interval: VariantPlanAutoTopupInterval$inboundSchema,
36216
- interval_count: z76._default(number2(), 1),
36837
+ interval_count: z77._default(number2(), 1),
36217
36838
  limit: number2()
36218
36839
  }),
36219
- z76.transform((v) => {
36840
+ z77.transform((v) => {
36220
36841
  return remap(v, {
36221
36842
  "interval_count": "intervalCount"
36222
36843
  });
36223
36844
  })
36224
36845
  );
36225
- var VariantPlanAutoTopup$inboundSchema = z76.pipe(
36226
- z76.object({
36846
+ var VariantPlanAutoTopup$inboundSchema = z77.pipe(
36847
+ z77.object({
36227
36848
  feature_id: string5(),
36228
- enabled: z76._default(boolean2(), false),
36849
+ enabled: z77._default(boolean2(), false),
36229
36850
  threshold: number2(),
36230
36851
  quantity: number2(),
36231
36852
  purchase_limit: optional3(
36232
- z76.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
36853
+ z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
36233
36854
  ),
36234
36855
  invoice_mode: optional3(boolean2())
36235
36856
  }),
36236
- z76.transform((v) => {
36857
+ z77.transform((v) => {
36237
36858
  return remap(v, {
36238
36859
  "feature_id": "featureId",
36239
36860
  "purchase_limit": "purchaseLimit",
@@ -36242,15 +36863,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
36242
36863
  })
36243
36864
  );
36244
36865
  var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
36245
- var VariantPlanSpendLimit$inboundSchema = z76.pipe(
36246
- z76.object({
36866
+ var VariantPlanSpendLimit$inboundSchema = z77.pipe(
36867
+ z77.object({
36247
36868
  feature_id: optional3(string5()),
36248
- enabled: z76._default(boolean2(), false),
36869
+ enabled: z77._default(boolean2(), false),
36249
36870
  limit_type: optional3(VariantPlanLimitType$inboundSchema),
36250
36871
  overage_limit: optional3(number2()),
36251
36872
  skip_overage_billing: optional3(boolean2())
36252
36873
  }),
36253
- z76.transform((v) => {
36874
+ z77.transform((v) => {
36254
36875
  return remap(v, {
36255
36876
  "feature_id": "featureId",
36256
36877
  "limit_type": "limitType",
@@ -36260,35 +36881,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
36260
36881
  })
36261
36882
  );
36262
36883
  var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
36263
-
36264
- // ../sdk/src/models/list-plans-response.ts
36265
- var VariantPlanAnchor = {
36266
- BillingCycle: "billing_cycle",
36267
- Utc: "utc"
36268
- };
36269
- var VariantPlanThresholdType = {
36270
- Usage: "usage",
36271
- UsagePercentage: "usage_percentage",
36272
- Remaining: "remaining",
36273
- RemainingPercentage: "remaining_percentage"
36274
- };
36275
- var VariantPlanBasis = {
36276
- Balance: "balance",
36277
- Included: "included",
36278
- Recurring: "recurring",
36279
- UsageLimit: "usage_limit"
36280
- };
36281
- var VariantStatus = {
36282
- Active: "active",
36283
- Scheduled: "scheduled"
36284
- };
36285
- var VariantAttachAction = {
36286
- Activate: "activate",
36287
- Upgrade: "upgrade",
36288
- Downgrade: "downgrade",
36289
- None: "none",
36290
- Purchase: "purchase"
36291
- };
36292
36884
  var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
36293
36885
  var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
36294
36886
  properties: z77.record(z77.string(), string5())
@@ -36347,8 +36939,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
36347
36939
  );
36348
36940
  var VariantPlanBillingControls$inboundSchema = z77.pipe(
36349
36941
  z77.object({
36350
- auto_topups: optional3(z77.array(VariantPlanAutoTopup$inboundSchema)),
36351
- spend_limits: optional3(z77.array(VariantPlanSpendLimit$inboundSchema)),
36942
+ auto_topups: optional3(
36943
+ z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
36944
+ ),
36945
+ spend_limits: optional3(
36946
+ z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
36947
+ ),
36352
36948
  usage_limits: optional3(
36353
36949
  z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
36354
36950
  ),
@@ -36404,7 +37000,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
36404
37000
  created_at: number2(),
36405
37001
  env: VariantEnv$inboundSchema,
36406
37002
  archived: boolean2(),
36407
- config: VariantConfig$inboundSchema,
37003
+ config: z77.lazy(() => VariantConfig$inboundSchema),
36408
37004
  billing_controls: optional3(
36409
37005
  z77.lazy(() => VariantPlanBillingControls$inboundSchema)
36410
37006
  ),
@@ -37170,6 +37766,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
37170
37766
  duration: MultiAttachDuration$outboundSchema,
37171
37767
  length: z85.number()
37172
37768
  });
37769
+ var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
37770
+ z85.object({
37771
+ meteredFeatureId: z85.string(),
37772
+ excluded: z85.literal(true)
37773
+ }),
37774
+ z85.transform((v) => {
37775
+ return remap(v, {
37776
+ meteredFeatureId: "metered_feature_id"
37777
+ });
37778
+ })
37779
+ );
37173
37780
  var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
37174
37781
  var MultiAttachDimensions4$outboundSchema = z85.pipe(
37175
37782
  z85.object({
@@ -37354,7 +37961,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
37354
37961
  );
37355
37962
  var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
37356
37963
  z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
37357
- z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
37964
+ z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
37965
+ z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
37358
37966
  ]);
37359
37967
  var MultiAttachProviderMarkups$outboundSchema = z85.object({
37360
37968
  markup: z85.number()
@@ -37398,7 +38006,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
37398
38006
  z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
37399
38007
  z85.lazy(
37400
38008
  () => MultiAttachCreditSchema2$outboundSchema
37401
- )
38009
+ ),
38010
+ z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
37402
38011
  ]))),
37403
38012
  markups: z85.optional(z85.lazy(
37404
38013
  () => MultiAttachMarkups$outboundSchema
@@ -37958,7 +38567,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
37958
38567
  // ../sdk/src/models/preview-attach-response.ts
37959
38568
  import * as z90 from "zod/v4-mini";
37960
38569
 
37961
- // ../sdk/src/models/preview-attach-upsert-license-rollover.ts
38570
+ // ../sdk/src/models/preview-attach-upsert-license-proration.ts
37962
38571
  import * as z89 from "zod/v4-mini";
37963
38572
  var PreviewAttachDurationType = {
37964
38573
  Day: "day",
@@ -38207,10 +38816,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
38207
38816
  None: "none",
38208
38817
  NoProrations: "no_prorations"
38209
38818
  };
38210
- var PreviewAttachUpsertLicenseExpiryDurationType = {
38211
- Month: "month",
38212
- Forever: "forever"
38213
- };
38214
38819
  var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
38215
38820
  z89.object({
38216
38821
  featureId: z89.string(),
@@ -38375,6 +38980,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
38375
38980
  duration: PreviewAttachItemDuration$outboundSchema,
38376
38981
  length: z89.number()
38377
38982
  });
38983
+ var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
38984
+ z89.object({
38985
+ meteredFeatureId: z89.string(),
38986
+ excluded: z89.literal(true)
38987
+ }),
38988
+ z89.transform((v) => {
38989
+ return remap(v, {
38990
+ meteredFeatureId: "metered_feature_id"
38991
+ });
38992
+ })
38993
+ );
38378
38994
  var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
38379
38995
  var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
38380
38996
  z89.object({
@@ -38571,7 +39187,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
38571
39187
  );
38572
39188
  var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
38573
39189
  z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
38574
- z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
39190
+ z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
39191
+ z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
38575
39192
  ]);
38576
39193
  var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
38577
39194
  markup: z89.number()
@@ -38615,7 +39232,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
38615
39232
  z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
38616
39233
  z89.lazy(
38617
39234
  () => PreviewAttachCreditSchemaItem2$outboundSchema
38618
- )
39235
+ ),
39236
+ z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
38619
39237
  ]))),
38620
39238
  markups: z89.optional(z89.lazy(
38621
39239
  () => PreviewAttachItemMarkups$outboundSchema
@@ -38774,6 +39392,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
38774
39392
  duration: PreviewAttachAddItemDuration$outboundSchema,
38775
39393
  length: z89.number()
38776
39394
  });
39395
+ var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
39396
+ z89.object({
39397
+ meteredFeatureId: z89.string(),
39398
+ excluded: z89.literal(true)
39399
+ }),
39400
+ z89.transform((v) => {
39401
+ return remap(v, {
39402
+ meteredFeatureId: "metered_feature_id"
39403
+ });
39404
+ })
39405
+ );
38777
39406
  var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
38778
39407
  var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
38779
39408
  z89.object({
@@ -38980,7 +39609,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
38980
39609
  );
38981
39610
  var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
38982
39611
  z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
38983
- z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
39612
+ z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
39613
+ z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
38984
39614
  ]);
38985
39615
  var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
38986
39616
  markup: z89.number()
@@ -39024,7 +39654,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
39024
39654
  z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
39025
39655
  z89.lazy(
39026
39656
  () => PreviewAttachCreditSchemaAddItem2$outboundSchema
39027
- )
39657
+ ),
39658
+ z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
39028
39659
  ]))),
39029
39660
  markups: z89.optional(z89.lazy(
39030
39661
  () => PreviewAttachAddItemMarkups$outboundSchema
@@ -39388,26 +40019,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
39388
40019
  });
39389
40020
  })
39390
40021
  );
39391
- var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
39392
- PreviewAttachUpsertLicenseExpiryDurationType
39393
- );
39394
- var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
39395
- z89.object({
39396
- max: z89.optional(z89.number()),
39397
- maxPercentage: z89.optional(z89.number()),
39398
- expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
39399
- expiryDurationLength: z89.optional(z89.number())
39400
- }),
39401
- z89.transform((v) => {
39402
- return remap(v, {
39403
- maxPercentage: "max_percentage",
39404
- expiryDurationType: "expiry_duration_type",
39405
- expiryDurationLength: "expiry_duration_length"
39406
- });
39407
- })
39408
- );
39409
40022
 
39410
40023
  // ../sdk/src/models/preview-attach-response.ts
40024
+ var PreviewAttachUpsertLicenseExpiryDurationType = {
40025
+ Month: "month",
40026
+ Forever: "forever"
40027
+ };
39411
40028
  var PreviewAttachUpsertLicenseDuration = {
39412
40029
  Day: "day",
39413
40030
  Week: "week",
@@ -39532,11 +40149,40 @@ var PreviewAttachStatus = {
39532
40149
  Incomplete: "incomplete",
39533
40150
  RequiresLocation: "requires_location"
39534
40151
  };
40152
+ var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
40153
+ PreviewAttachUpsertLicenseExpiryDurationType
40154
+ );
40155
+ var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
40156
+ z90.object({
40157
+ max: z90.optional(z90.number()),
40158
+ maxPercentage: z90.optional(z90.number()),
40159
+ expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
40160
+ expiryDurationLength: z90.optional(z90.number())
40161
+ }),
40162
+ z90.transform((v) => {
40163
+ return remap(v, {
40164
+ maxPercentage: "max_percentage",
40165
+ expiryDurationType: "expiry_duration_type",
40166
+ expiryDurationLength: "expiry_duration_length"
40167
+ });
40168
+ })
40169
+ );
39535
40170
  var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
39536
40171
  var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
39537
40172
  duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
39538
40173
  length: z90.number()
39539
40174
  });
40175
+ var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
40176
+ z90.object({
40177
+ meteredFeatureId: z90.string(),
40178
+ excluded: z90.literal(true)
40179
+ }),
40180
+ z90.transform((v) => {
40181
+ return remap(v, {
40182
+ meteredFeatureId: "metered_feature_id"
40183
+ });
40184
+ })
40185
+ );
39540
40186
  var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
39541
40187
  var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
39542
40188
  z90.object({
@@ -39746,7 +40392,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
39746
40392
  );
39747
40393
  var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
39748
40394
  z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
39749
- z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
40395
+ z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
40396
+ z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
39750
40397
  ]);
39751
40398
  var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
39752
40399
  markup: z90.number()
@@ -39790,7 +40437,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
39790
40437
  z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
39791
40438
  z90.lazy(
39792
40439
  () => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
39793
- )
40440
+ ),
40441
+ z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
39794
40442
  ]))),
39795
40443
  markups: z90.optional(z90.lazy(
39796
40444
  () => PreviewAttachUpsertLicenseMarkups$outboundSchema
@@ -39814,7 +40462,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
39814
40462
  reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
39815
40463
  price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
39816
40464
  proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
39817
- rollover: z90.optional(PreviewAttachUpsertLicenseRollover$outboundSchema),
40465
+ rollover: z90.optional(
40466
+ z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
40467
+ ),
39818
40468
  expiry: z90.optional(
39819
40469
  z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
39820
40470
  ),
@@ -40834,6 +41484,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
40834
41484
  duration: PreviewMultiAttachDuration$outboundSchema,
40835
41485
  length: z91.number()
40836
41486
  });
41487
+ var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
41488
+ z91.object({
41489
+ meteredFeatureId: z91.string(),
41490
+ excluded: z91.literal(true)
41491
+ }),
41492
+ z91.transform((v) => {
41493
+ return remap(v, {
41494
+ meteredFeatureId: "metered_feature_id"
41495
+ });
41496
+ })
41497
+ );
40837
41498
  var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
40838
41499
  var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
40839
41500
  z91.object({
@@ -41036,7 +41697,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
41036
41697
  );
41037
41698
  var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
41038
41699
  z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
41039
- z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
41700
+ z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
41701
+ z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
41040
41702
  ]);
41041
41703
  var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
41042
41704
  markup: z91.number()
@@ -41080,7 +41742,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
41080
41742
  z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
41081
41743
  z91.lazy(
41082
41744
  () => PreviewMultiAttachCreditSchema2$outboundSchema
41083
- )
41745
+ ),
41746
+ z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
41084
41747
  ]))),
41085
41748
  markups: z91.optional(z91.lazy(
41086
41749
  () => PreviewMultiAttachMarkups$outboundSchema
@@ -42153,7 +42816,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
42153
42816
  // ../sdk/src/models/preview-update-response.ts
42154
42817
  import * as z95 from "zod/v4-mini";
42155
42818
 
42156
- // ../sdk/src/models/preview-update-upsert-license-rollover.ts
42819
+ // ../sdk/src/models/preview-update-upsert-license-proration.ts
42157
42820
  import * as z94 from "zod/v4-mini";
42158
42821
  var PreviewUpdateDurationType = {
42159
42822
  Day: "day",
@@ -42402,10 +43065,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
42402
43065
  None: "none",
42403
43066
  NoProrations: "no_prorations"
42404
43067
  };
42405
- var PreviewUpdateUpsertLicenseExpiryDurationType = {
42406
- Month: "month",
42407
- Forever: "forever"
42408
- };
42409
43068
  var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
42410
43069
  z94.object({
42411
43070
  featureId: z94.string(),
@@ -42570,6 +43229,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
42570
43229
  duration: PreviewUpdateItemDuration$outboundSchema,
42571
43230
  length: z94.number()
42572
43231
  });
43232
+ var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
43233
+ z94.object({
43234
+ meteredFeatureId: z94.string(),
43235
+ excluded: z94.literal(true)
43236
+ }),
43237
+ z94.transform((v) => {
43238
+ return remap(v, {
43239
+ meteredFeatureId: "metered_feature_id"
43240
+ });
43241
+ })
43242
+ );
42573
43243
  var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
42574
43244
  var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
42575
43245
  z94.object({
@@ -42766,7 +43436,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
42766
43436
  );
42767
43437
  var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
42768
43438
  z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
42769
- z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
43439
+ z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
43440
+ z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
42770
43441
  ]);
42771
43442
  var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
42772
43443
  markup: z94.number()
@@ -42810,7 +43481,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
42810
43481
  z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
42811
43482
  z94.lazy(
42812
43483
  () => PreviewUpdateCreditSchemaItem2$outboundSchema
42813
- )
43484
+ ),
43485
+ z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
42814
43486
  ]))),
42815
43487
  markups: z94.optional(z94.lazy(
42816
43488
  () => PreviewUpdateItemMarkups$outboundSchema
@@ -42969,6 +43641,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
42969
43641
  duration: PreviewUpdateAddItemDuration$outboundSchema,
42970
43642
  length: z94.number()
42971
43643
  });
43644
+ var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
43645
+ z94.object({
43646
+ meteredFeatureId: z94.string(),
43647
+ excluded: z94.literal(true)
43648
+ }),
43649
+ z94.transform((v) => {
43650
+ return remap(v, {
43651
+ meteredFeatureId: "metered_feature_id"
43652
+ });
43653
+ })
43654
+ );
42972
43655
  var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
42973
43656
  var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
42974
43657
  z94.object({
@@ -43175,7 +43858,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
43175
43858
  );
43176
43859
  var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
43177
43860
  z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
43178
- z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
43861
+ z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
43862
+ z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
43179
43863
  ]);
43180
43864
  var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
43181
43865
  markup: z94.number()
@@ -43219,7 +43903,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
43219
43903
  z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
43220
43904
  z94.lazy(
43221
43905
  () => PreviewUpdateCreditSchemaAddItem2$outboundSchema
43222
- )
43906
+ ),
43907
+ z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
43223
43908
  ]))),
43224
43909
  markups: z94.optional(z94.lazy(
43225
43910
  () => PreviewUpdateAddItemMarkups$outboundSchema
@@ -43583,26 +44268,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
43583
44268
  });
43584
44269
  })
43585
44270
  );
43586
- var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
43587
- PreviewUpdateUpsertLicenseExpiryDurationType
43588
- );
43589
- var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
43590
- z94.object({
43591
- max: z94.optional(z94.number()),
43592
- maxPercentage: z94.optional(z94.number()),
43593
- expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
43594
- expiryDurationLength: z94.optional(z94.number())
43595
- }),
43596
- z94.transform((v) => {
43597
- return remap(v, {
43598
- maxPercentage: "max_percentage",
43599
- expiryDurationType: "expiry_duration_type",
43600
- expiryDurationLength: "expiry_duration_length"
43601
- });
43602
- })
43603
- );
43604
44271
 
43605
44272
  // ../sdk/src/models/preview-update-response.ts
44273
+ var PreviewUpdateUpsertLicenseExpiryDurationType = {
44274
+ Month: "month",
44275
+ Forever: "forever"
44276
+ };
43606
44277
  var PreviewUpdateUpsertLicenseDuration = {
43607
44278
  Day: "day",
43608
44279
  Week: "week",
@@ -43731,11 +44402,40 @@ var PreviewUpdateStatus = {
43731
44402
  Incomplete: "incomplete",
43732
44403
  RequiresLocation: "requires_location"
43733
44404
  };
44405
+ var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
44406
+ PreviewUpdateUpsertLicenseExpiryDurationType
44407
+ );
44408
+ var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
44409
+ z95.object({
44410
+ max: z95.optional(z95.number()),
44411
+ maxPercentage: z95.optional(z95.number()),
44412
+ expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
44413
+ expiryDurationLength: z95.optional(z95.number())
44414
+ }),
44415
+ z95.transform((v) => {
44416
+ return remap(v, {
44417
+ maxPercentage: "max_percentage",
44418
+ expiryDurationType: "expiry_duration_type",
44419
+ expiryDurationLength: "expiry_duration_length"
44420
+ });
44421
+ })
44422
+ );
43734
44423
  var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
43735
44424
  var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
43736
44425
  duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
43737
44426
  length: z95.number()
43738
44427
  });
44428
+ var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
44429
+ z95.object({
44430
+ meteredFeatureId: z95.string(),
44431
+ excluded: z95.literal(true)
44432
+ }),
44433
+ z95.transform((v) => {
44434
+ return remap(v, {
44435
+ meteredFeatureId: "metered_feature_id"
44436
+ });
44437
+ })
44438
+ );
43739
44439
  var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
43740
44440
  var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
43741
44441
  z95.object({
@@ -43945,7 +44645,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
43945
44645
  );
43946
44646
  var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
43947
44647
  z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
43948
- z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
44648
+ z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
44649
+ z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
43949
44650
  ]);
43950
44651
  var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
43951
44652
  markup: z95.number()
@@ -43989,7 +44690,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
43989
44690
  z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
43990
44691
  z95.lazy(
43991
44692
  () => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
43992
- )
44693
+ ),
44694
+ z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
43993
44695
  ]))),
43994
44696
  markups: z95.optional(z95.lazy(
43995
44697
  () => PreviewUpdateUpsertLicenseMarkups$outboundSchema
@@ -44013,7 +44715,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
44013
44715
  reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
44014
44716
  price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
44015
44717
  proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
44016
- rollover: z95.optional(PreviewUpdateUpsertLicenseRollover$outboundSchema),
44718
+ rollover: z95.optional(
44719
+ z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
44720
+ ),
44017
44721
  expiry: z95.optional(
44018
44722
  z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
44019
44723
  ),
@@ -46116,7 +46820,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
46116
46820
  // ../sdk/src/models/setup-payment-response.ts
46117
46821
  import * as z105 from "zod/v4-mini";
46118
46822
 
46119
- // ../sdk/src/models/setup-payment-upsert-license-rollover.ts
46823
+ // ../sdk/src/models/setup-payment-upsert-license-proration.ts
46120
46824
  import * as z104 from "zod/v4-mini";
46121
46825
  var SetupPaymentDurationType = {
46122
46826
  Day: "day",
@@ -46365,10 +47069,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
46365
47069
  None: "none",
46366
47070
  NoProrations: "no_prorations"
46367
47071
  };
46368
- var SetupPaymentUpsertLicenseExpiryDurationType = {
46369
- Month: "month",
46370
- Forever: "forever"
46371
- };
46372
47072
  var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
46373
47073
  z104.object({
46374
47074
  featureId: z104.string(),
@@ -46533,6 +47233,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
46533
47233
  duration: SetupPaymentItemDuration$outboundSchema,
46534
47234
  length: z104.number()
46535
47235
  });
47236
+ var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
47237
+ z104.object({
47238
+ meteredFeatureId: z104.string(),
47239
+ excluded: z104.literal(true)
47240
+ }),
47241
+ z104.transform((v) => {
47242
+ return remap(v, {
47243
+ meteredFeatureId: "metered_feature_id"
47244
+ });
47245
+ })
47246
+ );
46536
47247
  var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
46537
47248
  var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
46538
47249
  z104.object({
@@ -46729,7 +47440,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
46729
47440
  );
46730
47441
  var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
46731
47442
  z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
46732
- z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
47443
+ z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
47444
+ z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
46733
47445
  ]);
46734
47446
  var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
46735
47447
  markup: z104.number()
@@ -46773,7 +47485,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
46773
47485
  z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
46774
47486
  z104.lazy(
46775
47487
  () => SetupPaymentCreditSchemaItem2$outboundSchema
46776
- )
47488
+ ),
47489
+ z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
46777
47490
  ]))),
46778
47491
  markups: z104.optional(z104.lazy(
46779
47492
  () => SetupPaymentItemMarkups$outboundSchema
@@ -46930,6 +47643,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
46930
47643
  duration: SetupPaymentAddItemDuration$outboundSchema,
46931
47644
  length: z104.number()
46932
47645
  });
47646
+ var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
47647
+ z104.object({
47648
+ meteredFeatureId: z104.string(),
47649
+ excluded: z104.literal(true)
47650
+ }),
47651
+ z104.transform((v) => {
47652
+ return remap(v, {
47653
+ meteredFeatureId: "metered_feature_id"
47654
+ });
47655
+ })
47656
+ );
46933
47657
  var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
46934
47658
  var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
46935
47659
  z104.object({
@@ -47132,7 +47856,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
47132
47856
  );
47133
47857
  var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
47134
47858
  z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
47135
- z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
47859
+ z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
47860
+ z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
47136
47861
  ]);
47137
47862
  var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
47138
47863
  markup: z104.number()
@@ -47176,7 +47901,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
47176
47901
  z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
47177
47902
  z104.lazy(
47178
47903
  () => SetupPaymentCreditSchemaAddItem2$outboundSchema
47179
- )
47904
+ ),
47905
+ z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
47180
47906
  ]))),
47181
47907
  markups: z104.optional(z104.lazy(
47182
47908
  () => SetupPaymentAddItemMarkups$outboundSchema
@@ -47540,26 +48266,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
47540
48266
  });
47541
48267
  })
47542
48268
  );
47543
- var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
47544
- SetupPaymentUpsertLicenseExpiryDurationType
47545
- );
47546
- var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
47547
- z104.object({
47548
- max: z104.optional(z104.number()),
47549
- maxPercentage: z104.optional(z104.number()),
47550
- expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
47551
- expiryDurationLength: z104.optional(z104.number())
47552
- }),
47553
- z104.transform((v) => {
47554
- return remap(v, {
47555
- maxPercentage: "max_percentage",
47556
- expiryDurationType: "expiry_duration_type",
47557
- expiryDurationLength: "expiry_duration_length"
47558
- });
47559
- })
47560
- );
47561
48269
 
47562
48270
  // ../sdk/src/models/setup-payment-response.ts
48271
+ var SetupPaymentUpsertLicenseExpiryDurationType = {
48272
+ Month: "month",
48273
+ Forever: "forever"
48274
+ };
47563
48275
  var SetupPaymentUpsertLicenseDuration = {
47564
48276
  Day: "day",
47565
48277
  Week: "week",
@@ -47652,11 +48364,40 @@ var SetupPaymentTaxExempt = {
47652
48364
  Exempt: "exempt",
47653
48365
  Reverse: "reverse"
47654
48366
  };
48367
+ var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
48368
+ SetupPaymentUpsertLicenseExpiryDurationType
48369
+ );
48370
+ var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
48371
+ z105.object({
48372
+ max: z105.optional(z105.number()),
48373
+ maxPercentage: z105.optional(z105.number()),
48374
+ expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
48375
+ expiryDurationLength: z105.optional(z105.number())
48376
+ }),
48377
+ z105.transform((v) => {
48378
+ return remap(v, {
48379
+ maxPercentage: "max_percentage",
48380
+ expiryDurationType: "expiry_duration_type",
48381
+ expiryDurationLength: "expiry_duration_length"
48382
+ });
48383
+ })
48384
+ );
47655
48385
  var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
47656
48386
  var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
47657
48387
  duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
47658
48388
  length: z105.number()
47659
48389
  });
48390
+ var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
48391
+ z105.object({
48392
+ meteredFeatureId: z105.string(),
48393
+ excluded: z105.literal(true)
48394
+ }),
48395
+ z105.transform((v) => {
48396
+ return remap(v, {
48397
+ meteredFeatureId: "metered_feature_id"
48398
+ });
48399
+ })
48400
+ );
47660
48401
  var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
47661
48402
  var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
47662
48403
  z105.object({
@@ -47866,7 +48607,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
47866
48607
  );
47867
48608
  var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
47868
48609
  z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
47869
- z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
48610
+ z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
48611
+ z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
47870
48612
  ]);
47871
48613
  var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
47872
48614
  markup: z105.number()
@@ -47910,7 +48652,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
47910
48652
  z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
47911
48653
  z105.lazy(
47912
48654
  () => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
47913
- )
48655
+ ),
48656
+ z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
47914
48657
  ]))),
47915
48658
  markups: z105.optional(z105.lazy(
47916
48659
  () => SetupPaymentUpsertLicenseMarkups$outboundSchema
@@ -47934,7 +48677,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
47934
48677
  reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
47935
48678
  price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
47936
48679
  proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
47937
- rollover: z105.optional(SetupPaymentUpsertLicenseRollover$outboundSchema),
48680
+ rollover: z105.optional(
48681
+ z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
48682
+ ),
47938
48683
  expiry: z105.optional(
47939
48684
  z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
47940
48685
  ),
@@ -49089,6 +49834,11 @@ var UpdateCustomerType = {
49089
49834
  CreditSystem: "credit_system",
49090
49835
  AiCreditSystem: "ai_credit_system"
49091
49836
  };
49837
+ var UpdateCustomerCombine = {
49838
+ Sum: "sum",
49839
+ Max: "max",
49840
+ Min: "min"
49841
+ };
49092
49842
  var UpdateCustomerDimensionsToEnum3 = {
49093
49843
  Inf: "inf"
49094
49844
  };
@@ -49712,6 +50462,7 @@ var UpdateCustomerLicense$inboundSchema = z111.pipe(
49712
50462
  })
49713
50463
  );
49714
50464
  var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
50465
+ var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
49715
50466
  var UpdateCustomerDimensions6$inboundSchema = z111.pipe(
49716
50467
  z111.object({
49717
50468
  match: z111.record(z111.string(), string5()),
@@ -49999,6 +50750,7 @@ var UpdateCustomerFeature$inboundSchema = z111.pipe(
49999
50750
  name: string5(),
50000
50751
  type: UpdateCustomerType$inboundSchema,
50001
50752
  consumable: boolean2(),
50753
+ combine: optional3(UpdateCustomerCombine$inboundSchema),
50002
50754
  event_names: optional3(z111.array(string5())),
50003
50755
  credit_schema: optional3(z111.array(smartUnion([
50004
50756
  z111.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
@@ -50186,6 +50938,11 @@ var UpdateEntityType = {
50186
50938
  CreditSystem: "credit_system",
50187
50939
  AiCreditSystem: "ai_credit_system"
50188
50940
  };
50941
+ var UpdateEntityCombine = {
50942
+ Sum: "sum",
50943
+ Max: "max",
50944
+ Min: "min"
50945
+ };
50189
50946
  var UpdateEntityDimensionsToEnum3 = {
50190
50947
  Inf: "inf"
50191
50948
  };
@@ -50455,6 +51212,7 @@ var UpdateEntityPurchase$inboundSchema = z112.pipe(
50455
51212
  })
50456
51213
  );
50457
51214
  var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
51215
+ var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
50458
51216
  var UpdateEntityDimensions6$inboundSchema = z112.pipe(
50459
51217
  z112.object({
50460
51218
  match: z112.record(z112.string(), string5()),
@@ -50740,6 +51498,7 @@ var UpdateEntityFeature$inboundSchema = z112.pipe(
50740
51498
  name: string5(),
50741
51499
  type: UpdateEntityType$inboundSchema,
50742
51500
  consumable: boolean2(),
51501
+ combine: optional3(UpdateEntityCombine$inboundSchema),
50743
51502
  event_names: optional3(z112.array(string5())),
50744
51503
  credit_schema: optional3(z112.array(smartUnion([
50745
51504
  z112.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
@@ -50963,6 +51722,11 @@ var UpdateFeatureTypeRequestBody = {
50963
51722
  CreditSystem: "credit_system",
50964
51723
  AiCreditSystem: "ai_credit_system"
50965
51724
  };
51725
+ var UpdateFeatureCombineRequest = {
51726
+ Sum: "sum",
51727
+ Max: "max",
51728
+ Min: "min"
51729
+ };
50966
51730
  var UpdateFeatureDimensionsToRequestBodyEnum2 = {
50967
51731
  Inf: "inf"
50968
51732
  };
@@ -50978,6 +51742,11 @@ var UpdateFeatureTypeResponse = {
50978
51742
  CreditSystem: "credit_system",
50979
51743
  AiCreditSystem: "ai_credit_system"
50980
51744
  };
51745
+ var UpdateFeatureCombineResponse = {
51746
+ Sum: "sum",
51747
+ Max: "max",
51748
+ Min: "min"
51749
+ };
50981
51750
  var UpdateFeatureDimensionsToResponseEnum3 = {
50982
51751
  Inf: "inf"
50983
51752
  };
@@ -50991,6 +51760,7 @@ var UpdateFeatureToResponseEnum = {
50991
51760
  Inf: "inf"
50992
51761
  };
50993
51762
  var UpdateFeatureTypeRequestBody$outboundSchema = z113.enum(UpdateFeatureTypeRequestBody);
51763
+ var UpdateFeatureCombineRequest$outboundSchema = z113.enum(UpdateFeatureCombineRequest);
50994
51764
  var UpdateFeatureDisplayRequestBody$outboundSchema = z113.object({
50995
51765
  singular: z113.string(),
50996
51766
  plural: z113.string()
@@ -51224,6 +51994,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
51224
51994
  name: z113.optional(z113.string()),
51225
51995
  type: z113.optional(UpdateFeatureTypeRequestBody$outboundSchema),
51226
51996
  consumable: z113.optional(z113.boolean()),
51997
+ combine: z113.optional(UpdateFeatureCombineRequest$outboundSchema),
51227
51998
  display: z113.optional(
51228
51999
  z113.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
51229
52000
  ),
@@ -51260,6 +52031,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
51260
52031
  })
51261
52032
  );
51262
52033
  var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
52034
+ var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
51263
52035
  var UpdateFeatureDimensionsResponse6$inboundSchema = z113.pipe(
51264
52036
  z113.object({
51265
52037
  match: z113.record(z113.string(), string5()),
@@ -51568,6 +52340,7 @@ var UpdateFeatureResponse$inboundSchema = z113.pipe(
51568
52340
  name: string5(),
51569
52341
  type: UpdateFeatureTypeResponse$inboundSchema,
51570
52342
  consumable: boolean2(),
52343
+ combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
51571
52344
  event_names: optional3(z113.array(string5())),
51572
52345
  credit_schema: optional3(z113.array(smartUnion([
51573
52346
  z113.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
@@ -51708,13 +52481,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
51708
52481
  invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
51709
52482
  });
51710
52483
 
51711
- // ../sdk/src/models/update-plan-dimensions-variant-details-upsert-license-4.ts
51712
- import * as z117 from "zod/v4-mini";
51713
-
51714
- // ../sdk/src/models/update-plan-item-processors.ts
52484
+ // ../sdk/src/models/update-plan-item-tier-behavior-response.ts
51715
52485
  import * as z116 from "zod/v4-mini";
51716
52486
 
51717
- // ../sdk/src/models/update-plan-variant-price.ts
52487
+ // ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
51718
52488
  import * as z115 from "zod/v4-mini";
51719
52489
  var UpdatePlanPriceIntervalRequestBody = {
51720
52490
  OneOff: "one_off",
@@ -51945,10 +52715,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
51945
52715
  SemiAnnual: "semi_annual",
51946
52716
  Year: "year"
51947
52717
  };
51948
- var UpdatePlanVariantAddItemBillingMethod = {
51949
- Prepaid: "prepaid",
51950
- UsageBased: "usage_based"
51951
- };
51952
52718
  var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
51953
52719
  var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
51954
52720
  currency: z115.string(),
@@ -52095,6 +52861,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
52095
52861
  duration: UpdatePlanItemDurationRequestBody$outboundSchema,
52096
52862
  length: z115.number()
52097
52863
  });
52864
+ var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
52865
+ z115.object({
52866
+ meteredFeatureId: z115.string(),
52867
+ excluded: z115.literal(true)
52868
+ }),
52869
+ z115.transform((v) => {
52870
+ return remap(v, {
52871
+ meteredFeatureId: "metered_feature_id"
52872
+ });
52873
+ })
52874
+ );
52098
52875
  var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
52099
52876
  var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
52100
52877
  z115.object({
@@ -52304,7 +53081,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
52304
53081
  );
52305
53082
  var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
52306
53083
  z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
52307
- z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
53084
+ z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
53085
+ z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
52308
53086
  ]);
52309
53087
  var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
52310
53088
  markup: z115.number()
@@ -52348,7 +53126,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
52348
53126
  z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
52349
53127
  z115.lazy(
52350
53128
  () => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
52351
- )
53129
+ ),
53130
+ z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
52352
53131
  ]))),
52353
53132
  markups: z115.optional(z115.lazy(
52354
53133
  () => UpdatePlanItemMarkupsRequestBody$outboundSchema
@@ -52544,6 +53323,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
52544
53323
  duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
52545
53324
  length: z115.number()
52546
53325
  });
53326
+ var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
53327
+ z115.object({
53328
+ meteredFeatureId: z115.string(),
53329
+ excluded: z115.literal(true)
53330
+ }),
53331
+ z115.transform((v) => {
53332
+ return remap(v, {
53333
+ meteredFeatureId: "metered_feature_id"
53334
+ });
53335
+ })
53336
+ );
52547
53337
  var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
52548
53338
  var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
52549
53339
  z115.object({
@@ -52760,7 +53550,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
52760
53550
  );
52761
53551
  var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
52762
53552
  z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
52763
- z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
53553
+ z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
53554
+ z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
52764
53555
  ]);
52765
53556
  var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
52766
53557
  markup: z115.number()
@@ -52804,7 +53595,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
52804
53595
  z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
52805
53596
  z115.lazy(
52806
53597
  () => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
52807
- )
53598
+ ),
53599
+ z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
52808
53600
  ]))),
52809
53601
  markups: z115.optional(z115.lazy(
52810
53602
  () => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
@@ -53197,38 +53989,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
53197
53989
  var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
53198
53990
  UpdatePlanVariantAddItemPriceInterval
53199
53991
  );
53200
- var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
53201
- UpdatePlanVariantAddItemBillingMethod
53202
- );
53203
- var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
53204
- z115.object({
53205
- amount: z115.optional(z115.number()),
53206
- additionalCurrencies: z115.optional(z115.array(z115.lazy(
53207
- () => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
53208
- ))),
53209
- tiers: z115.optional(z115.array(z115.lazy(
53210
- () => UpdatePlanVariantPriceTier$outboundSchema
53211
- ))),
53212
- tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
53213
- interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
53214
- intervalCount: z115._default(z115.number(), 1),
53215
- billingUnits: z115._default(z115.number(), 1),
53216
- billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
53217
- maxPurchase: z115.optional(z115.nullable(z115.number()))
53218
- }),
53219
- z115.transform((v) => {
53220
- return remap(v, {
53221
- additionalCurrencies: "additional_currencies",
53222
- tierBehavior: "tier_behavior",
53223
- intervalCount: "interval_count",
53224
- billingUnits: "billing_units",
53225
- billingMethod: "billing_method",
53226
- maxPurchase: "max_purchase"
53227
- });
53228
- })
53229
- );
53230
53992
 
53231
- // ../sdk/src/models/update-plan-item-processors.ts
53993
+ // ../sdk/src/models/update-plan-item-tier-behavior-response.ts
53994
+ var UpdatePlanVariantAddItemBillingMethod = {
53995
+ Prepaid: "prepaid",
53996
+ UsageBased: "usage_based"
53997
+ };
53232
53998
  var UpdatePlanVariantOnIncrease = {
53233
53999
  BillImmediately: "bill_immediately",
53234
54000
  ProrateImmediately: "prorate_immediately",
@@ -53446,18 +54212,34 @@ var UpdatePlanItemTierBehaviorResponse = {
53446
54212
  Graduated: "graduated",
53447
54213
  Volume: "volume"
53448
54214
  };
53449
- var UpdatePlanPriceItemIntervalResponse = {
53450
- OneOff: "one_off",
53451
- Week: "week",
53452
- Month: "month",
53453
- Quarter: "quarter",
53454
- SemiAnnual: "semi_annual",
53455
- Year: "year"
53456
- };
53457
- var UpdatePlanItemBillingMethodResponse = {
53458
- Prepaid: "prepaid",
53459
- UsageBased: "usage_based"
53460
- };
54215
+ var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
54216
+ UpdatePlanVariantAddItemBillingMethod
54217
+ );
54218
+ var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
54219
+ z116.object({
54220
+ amount: z116.optional(z116.number()),
54221
+ additionalCurrencies: z116.optional(
54222
+ z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
54223
+ ),
54224
+ tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
54225
+ tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
54226
+ interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
54227
+ intervalCount: z116._default(z116.number(), 1),
54228
+ billingUnits: z116._default(z116.number(), 1),
54229
+ billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
54230
+ maxPurchase: z116.optional(z116.nullable(z116.number()))
54231
+ }),
54232
+ z116.transform((v) => {
54233
+ return remap(v, {
54234
+ additionalCurrencies: "additional_currencies",
54235
+ tierBehavior: "tier_behavior",
54236
+ intervalCount: "interval_count",
54237
+ billingUnits: "billing_units",
54238
+ billingMethod: "billing_method",
54239
+ maxPurchase: "max_purchase"
54240
+ });
54241
+ })
54242
+ );
53461
54243
  var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
53462
54244
  var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
53463
54245
  var UpdatePlanVariantProration$outboundSchema = z116.pipe(
@@ -53493,6 +54275,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
53493
54275
  duration: UpdatePlanVariantDuration$outboundSchema,
53494
54276
  length: z116.number()
53495
54277
  });
54278
+ var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
54279
+ z116.object({
54280
+ meteredFeatureId: z116.string(),
54281
+ excluded: z116.literal(true)
54282
+ }),
54283
+ z116.transform((v) => {
54284
+ return remap(v, {
54285
+ meteredFeatureId: "metered_feature_id"
54286
+ });
54287
+ })
54288
+ );
53496
54289
  var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
53497
54290
  var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
53498
54291
  z116.object({
@@ -53689,7 +54482,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
53689
54482
  );
53690
54483
  var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
53691
54484
  z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
53692
- z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
54485
+ z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
54486
+ z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
53693
54487
  ]);
53694
54488
  var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
53695
54489
  markup: z116.number()
@@ -53733,7 +54527,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
53733
54527
  z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
53734
54528
  z116.lazy(
53735
54529
  () => UpdatePlanCreditSchemaVariant2$outboundSchema
53736
- )
54530
+ ),
54531
+ z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
53737
54532
  ]))),
53738
54533
  markups: z116.optional(z116.lazy(
53739
54534
  () => UpdatePlanVariantMarkups$outboundSchema
@@ -53755,7 +54550,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
53755
54550
  unlimited: z116.optional(z116.boolean()),
53756
54551
  pooled: z116._default(z116.boolean(), false),
53757
54552
  reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
53758
- price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
54553
+ price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
53759
54554
  proration: z116.optional(
53760
54555
  z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
53761
54556
  ),
@@ -54124,6 +54919,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
54124
54919
  duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
54125
54920
  length: z116.number()
54126
54921
  });
54922
+ var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
54923
+ z116.object({
54924
+ meteredFeatureId: z116.string(),
54925
+ excluded: z116.literal(true)
54926
+ }),
54927
+ z116.transform((v) => {
54928
+ return remap(v, {
54929
+ meteredFeatureId: "metered_feature_id"
54930
+ });
54931
+ })
54932
+ );
54127
54933
  var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
54128
54934
  var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
54129
54935
  z116.object({
@@ -54344,7 +55150,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
54344
55150
  );
54345
55151
  var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
54346
55152
  z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
54347
- z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
55153
+ z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
55154
+ z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
54348
55155
  ]);
54349
55156
  var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
54350
55157
  markup: z116.number()
@@ -54392,6 +55199,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
54392
55199
  ),
54393
55200
  z116.lazy(
54394
55201
  () => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
55202
+ ),
55203
+ z116.lazy(
55204
+ () => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
54395
55205
  )
54396
55206
  ]))),
54397
55207
  markups: z116.optional(z116.lazy(
@@ -54781,25 +55591,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
54781
55591
  })
54782
55592
  );
54783
55593
  var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
54784
- var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
54785
- var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
54786
- var UpdatePlanItemStripe$inboundSchema = z116.pipe(
54787
- z116.object({
54788
- price_id: string5()
54789
- }),
54790
- z116.transform((v) => {
54791
- return remap(v, {
54792
- "price_id": "priceId"
54793
- });
54794
- })
54795
- );
54796
- var UpdatePlanItemProcessors$inboundSchema = z116.object({
54797
- stripe: z116.optional(
54798
- z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
54799
- )
54800
- });
54801
55594
 
54802
- // ../sdk/src/models/update-plan-dimensions-variant-details-upsert-license-4.ts
55595
+ // ../sdk/src/models/update-plan-response.ts
55596
+ import * as z118 from "zod/v4-mini";
55597
+
55598
+ // ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
55599
+ import * as z117 from "zod/v4-mini";
55600
+ var UpdatePlanPriceItemIntervalResponse = {
55601
+ OneOff: "one_off",
55602
+ Week: "week",
55603
+ Month: "month",
55604
+ Quarter: "quarter",
55605
+ SemiAnnual: "semi_annual",
55606
+ Year: "year"
55607
+ };
55608
+ var UpdatePlanItemBillingMethodResponse = {
55609
+ Prepaid: "prepaid",
55610
+ UsageBased: "usage_based"
55611
+ };
54803
55612
  var UpdatePlanItemExpiryDurationTypeResponse = {
54804
55613
  Month: "month",
54805
55614
  Forever: "forever"
@@ -55054,16 +55863,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
55054
55863
  None: "none",
55055
55864
  NoProrations: "no_prorations"
55056
55865
  };
55057
- var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
55058
- Month: "month",
55059
- Forever: "forever"
55060
- };
55061
- var UpdatePlanVariantDetailsUpsertLicenseDuration = {
55062
- Day: "day",
55063
- Week: "week",
55064
- Month: "month",
55065
- Year: "year"
55066
- };
55866
+ var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
55867
+ var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
55868
+ var UpdatePlanItemStripe$inboundSchema = z117.pipe(
55869
+ z117.object({
55870
+ price_id: string5()
55871
+ }),
55872
+ z117.transform((v) => {
55873
+ return remap(v, {
55874
+ "price_id": "priceId"
55875
+ });
55876
+ })
55877
+ );
55878
+ var UpdatePlanItemProcessors$inboundSchema = z117.object({
55879
+ stripe: z117.optional(
55880
+ z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
55881
+ )
55882
+ });
55067
55883
  var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
55068
55884
  z117.object({
55069
55885
  amount: optional3(number2()),
@@ -55081,7 +55897,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
55081
55897
  billing_units: number2(),
55082
55898
  billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
55083
55899
  max_purchase: nullable(number2()),
55084
- processors: optional3(UpdatePlanItemProcessors$inboundSchema)
55900
+ processors: optional3(
55901
+ z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
55902
+ )
55085
55903
  }),
55086
55904
  z117.transform((v) => {
55087
55905
  return remap(v, {
@@ -55127,6 +55945,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
55127
55945
  duration: UpdatePlanItemDurationResponse$inboundSchema,
55128
55946
  length: number2()
55129
55947
  });
55948
+ var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
55949
+ z117.object({
55950
+ metered_feature_id: string5(),
55951
+ excluded: literal3(true)
55952
+ }),
55953
+ z117.transform((v) => {
55954
+ return remap(v, {
55955
+ "metered_feature_id": "meteredFeatureId"
55956
+ });
55957
+ })
55958
+ );
55130
55959
  var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
55131
55960
  z117.object({
55132
55961
  match: z117.record(z117.string(), string5()),
@@ -55314,6 +56143,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
55314
56143
  ),
55315
56144
  z117.lazy(
55316
56145
  () => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
56146
+ ),
56147
+ z117.lazy(
56148
+ () => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
55317
56149
  )
55318
56150
  ]);
55319
56151
  var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
@@ -55360,6 +56192,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
55360
56192
  ),
55361
56193
  z117.lazy(
55362
56194
  () => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
56195
+ ),
56196
+ z117.lazy(
56197
+ () => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
55363
56198
  )
55364
56199
  ]))),
55365
56200
  markups: optional3(z117.lazy(
@@ -55772,6 +56607,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
55772
56607
  duration: UpdatePlanVariantDetailsDuration$inboundSchema,
55773
56608
  length: number2()
55774
56609
  });
56610
+ var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
56611
+ z117.object({
56612
+ metered_feature_id: string5(),
56613
+ excluded: literal3(true)
56614
+ }),
56615
+ z117.transform((v) => {
56616
+ return remap(v, {
56617
+ "metered_feature_id": "meteredFeatureId"
56618
+ });
56619
+ })
56620
+ );
55775
56621
  var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
55776
56622
  z117.object({
55777
56623
  match: z117.record(z117.string(), string5()),
@@ -55961,7 +56807,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
55961
56807
  );
55962
56808
  var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
55963
56809
  z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
55964
- z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
56810
+ z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
56811
+ z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
55965
56812
  ]);
55966
56813
  var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
55967
56814
  markup: number2()
@@ -56005,7 +56852,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
56005
56852
  z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
56006
56853
  z117.lazy(
56007
56854
  () => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
56008
- )
56855
+ ),
56856
+ z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
56009
56857
  ]))),
56010
56858
  markups: optional3(z117.lazy(
56011
56859
  () => UpdatePlanVariantDetailsMarkups$inboundSchema
@@ -56347,56 +57195,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
56347
57195
  );
56348
57196
  var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
56349
57197
  var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
56350
- var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
56351
- z117.object({
56352
- on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
56353
- on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
56354
- }),
56355
- z117.transform((v) => {
56356
- return remap(v, {
56357
- "on_increase": "onIncrease",
56358
- "on_decrease": "onDecrease"
56359
- });
56360
- })
56361
- );
56362
- var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
56363
- UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
56364
- );
56365
- var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
56366
- z117.object({
56367
- max: optional3(number2()),
56368
- max_percentage: optional3(number2()),
56369
- expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
56370
- expiry_duration_length: optional3(number2())
56371
- }),
56372
- z117.transform((v) => {
56373
- return remap(v, {
56374
- "max_percentage": "maxPercentage",
56375
- "expiry_duration_type": "expiryDurationType",
56376
- "expiry_duration_length": "expiryDurationLength"
56377
- });
56378
- })
56379
- );
56380
- var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
56381
- var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
56382
- duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
56383
- length: number2()
56384
- });
56385
- var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
56386
- z117.object({
56387
- match: z117.record(z117.string(), string5()),
56388
- priority: optional3(number2()),
56389
- credit_cost: number2()
56390
- }),
56391
- z117.transform((v) => {
56392
- return remap(v, {
56393
- "credit_cost": "creditCost"
56394
- });
56395
- })
56396
- );
56397
57198
 
56398
57199
  // ../sdk/src/models/update-plan-response.ts
56399
- import * as z118 from "zod/v4-mini";
57200
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
57201
+ Month: "month",
57202
+ Forever: "forever"
57203
+ };
57204
+ var UpdatePlanVariantDetailsUpsertLicenseDuration = {
57205
+ Day: "day",
57206
+ Week: "week",
57207
+ Month: "month",
57208
+ Year: "year"
57209
+ };
56400
57210
  var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
56401
57211
  Inf: "inf"
56402
57212
  };
@@ -56519,6 +57329,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
56519
57329
  SemiAnnual: "semi_annual",
56520
57330
  Year: "year"
56521
57331
  };
57332
+ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
57333
+ z118.object({
57334
+ on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
57335
+ on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
57336
+ }),
57337
+ z118.transform((v) => {
57338
+ return remap(v, {
57339
+ "on_increase": "onIncrease",
57340
+ "on_decrease": "onDecrease"
57341
+ });
57342
+ })
57343
+ );
57344
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
57345
+ UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
57346
+ );
57347
+ var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
57348
+ z118.object({
57349
+ max: optional3(number2()),
57350
+ max_percentage: optional3(number2()),
57351
+ expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
57352
+ expiry_duration_length: optional3(number2())
57353
+ }),
57354
+ z118.transform((v) => {
57355
+ return remap(v, {
57356
+ "max_percentage": "maxPercentage",
57357
+ "expiry_duration_type": "expiryDurationType",
57358
+ "expiry_duration_length": "expiryDurationLength"
57359
+ });
57360
+ })
57361
+ );
57362
+ var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
57363
+ var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
57364
+ duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
57365
+ length: number2()
57366
+ });
57367
+ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
57368
+ z118.object({
57369
+ metered_feature_id: string5(),
57370
+ excluded: literal3(true)
57371
+ }),
57372
+ z118.transform((v) => {
57373
+ return remap(v, {
57374
+ "metered_feature_id": "meteredFeatureId"
57375
+ });
57376
+ })
57377
+ );
57378
+ var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
57379
+ z118.object({
57380
+ match: z118.record(z118.string(), string5()),
57381
+ priority: optional3(number2()),
57382
+ credit_cost: number2()
57383
+ }),
57384
+ z118.transform((v) => {
57385
+ return remap(v, {
57386
+ "credit_cost": "creditCost"
57387
+ });
57388
+ })
57389
+ );
56522
57390
  var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
56523
57391
  var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
56524
57392
  number2(),
@@ -56557,7 +57425,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
56557
57425
  z118.lazy(
56558
57426
  () => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
56559
57427
  ),
56560
- UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
57428
+ z118.lazy(
57429
+ () => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
57430
+ )
56561
57431
  ]);
56562
57432
  var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
56563
57433
  match: z118.record(z118.string(), string5()),
@@ -56574,7 +57444,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
56574
57444
  z118.lazy(
56575
57445
  () => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
56576
57446
  ),
56577
- UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
57447
+ z118.lazy(
57448
+ () => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
57449
+ )
56578
57450
  ])
56579
57451
  )),
56580
57452
  multipliers: optional3(z118.record(
@@ -56713,6 +57585,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
56713
57585
  ),
56714
57586
  z118.lazy(
56715
57587
  () => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
57588
+ ),
57589
+ z118.lazy(
57590
+ () => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
56716
57591
  )
56717
57592
  ]);
56718
57593
  var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
@@ -56763,6 +57638,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
56763
57638
  ),
56764
57639
  z118.lazy(
56765
57640
  () => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
57641
+ ),
57642
+ z118.lazy(
57643
+ () => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
56766
57644
  )
56767
57645
  ]))),
56768
57646
  markups: optional3(z118.lazy(
@@ -56792,15 +57670,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
56792
57670
  price: optional3(
56793
57671
  UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
56794
57672
  ),
56795
- proration: optional3(
56796
- UpdatePlanUpsertLicenseProrationResponse$inboundSchema
56797
- ),
56798
- rollover: optional3(
56799
- UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
56800
- ),
56801
- expiry: optional3(
56802
- UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
56803
- ),
57673
+ proration: optional3(z118.lazy(
57674
+ () => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
57675
+ )),
57676
+ rollover: optional3(z118.lazy(
57677
+ () => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
57678
+ )),
57679
+ expiry: optional3(z118.lazy(
57680
+ () => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
57681
+ )),
56804
57682
  feature_override: optional3(z118.lazy(
56805
57683
  () => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
56806
57684
  ))
@@ -57081,6 +57959,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
57081
57959
  duration: UpdatePlanLicenseDurationResponse$inboundSchema,
57082
57960
  length: number2()
57083
57961
  });
57962
+ var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
57963
+ z118.object({
57964
+ metered_feature_id: string5(),
57965
+ excluded: literal3(true)
57966
+ }),
57967
+ z118.transform((v) => {
57968
+ return remap(v, {
57969
+ "metered_feature_id": "meteredFeatureId"
57970
+ });
57971
+ })
57972
+ );
57084
57973
  var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
57085
57974
  z118.object({
57086
57975
  match: z118.record(z118.string(), string5()),
@@ -57266,7 +58155,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
57266
58155
  );
57267
58156
  var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
57268
58157
  z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
57269
- z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
58158
+ z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
58159
+ z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
57270
58160
  ]);
57271
58161
  var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
57272
58162
  markup: number2()
@@ -57310,7 +58200,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
57310
58200
  z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
57311
58201
  z118.lazy(
57312
58202
  () => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
57313
- )
58203
+ ),
58204
+ z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
57314
58205
  ]))),
57315
58206
  markups: optional3(z118.lazy(
57316
58207
  () => UpdatePlanLicenseMarkupsResponse$inboundSchema
@@ -58968,34 +59859,6 @@ var BufferLoggedResponseHook = class {
58968
59859
  }
58969
59860
  };
58970
59861
 
58971
- // ../sdk/src/lib/config.ts
58972
- var ServerList = [
58973
- /**
58974
- * Production server
58975
- */
58976
- "https://api.useautumn.com"
58977
- ];
58978
- function serverURLFromOptions(options) {
58979
- let serverURL = options.serverURL;
58980
- const params = {};
58981
- if (!serverURL) {
58982
- const serverIdx = options.serverIdx ?? 0;
58983
- if (serverIdx < 0 || serverIdx >= ServerList.length) {
58984
- throw new Error(`Invalid server index ${serverIdx}`);
58985
- }
58986
- serverURL = ServerList[serverIdx] || "";
58987
- }
58988
- const u = pathToFunc(serverURL)(params);
58989
- return new URL(u);
58990
- }
58991
- var SDK_METADATA = {
58992
- language: "typescript",
58993
- openapiDocVersion: "2.5.0",
58994
- sdkVersion: "0.10.18",
58995
- genVersion: "2.884.13",
58996
- userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
58997
- };
58998
-
58999
59862
  // ../sdk/src/hooks/edge/edgeURLs.ts
59000
59863
  var withTrailingSlash = (url) => String(url).replace(/\/+$/, "") + "/";
59001
59864
  var edgeBasesOf = ({
@@ -63527,6 +64390,7 @@ var Features = class extends ClientSDK {
63527
64390
  * @param name - The name of the feature.
63528
64391
  * @param type - The type of the feature. 'single_use' features are consumed, like API calls, tokens, or messages. 'continuous_use' features are allocated, like seats, workspaces, or projects. 'credit_system' features are schemas that unify multiple 'single_use' features into a single credit system.
63529
64392
  * @param consumable - Whether this feature is consumable. A consumable feature is one that periodically resets and is consumed rather than allocated (like credits, API requests, etc.). Applicable only for 'metered' features. (optional)
64393
+ * @param combine - How grants of this feature from several plans combine. 'sum' (default) adds them up. 'max' or 'min' keeps only the highest or lowest grant among plan items with no price; priced items always add on top. Metered and credit system features only. (optional)
63530
64394
  * @param display - Singular and plural display names for the feature in your user interface. (optional)
63531
64395
  * @param creditSchema - A schema that maps metered feature IDs to flat or graduated credit costs. For classic credit systems only — AI credit systems use model_markups instead. (optional)
63532
64396
  * @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
@@ -63599,6 +64463,7 @@ var Features = class extends ClientSDK {
63599
64463
  * @param name - The name of the feature. (optional)
63600
64464
  * @param type - The type of the feature. 'single_use' features are consumed, like API calls, tokens, or messages. 'continuous_use' features are allocated, like seats, workspaces, or projects. 'credit_system' features are schemas that unify multiple 'single_use' features into a single credit system. (optional)
63601
64465
  * @param consumable - Whether this feature is consumable. A consumable feature is one that periodically resets and is consumed rather than allocated (like credits, API requests, etc.). Applicable only for 'metered' features. (optional)
64466
+ * @param combine - How grants of this feature from several plans combine. 'sum' (default) adds them up. 'max' or 'min' keeps only the highest or lowest grant among plan items with no price; priced items always add on top. Metered and credit system features only. (optional)
63602
64467
  * @param display - Singular and plural display names for the feature in your user interface. (optional)
63603
64468
  * @param creditSchema - A schema that maps metered feature IDs to flat or graduated credit costs. For classic credit systems only — AI credit systems use model_markups instead. (optional)
63604
64469
  * @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
@@ -68405,6 +69270,192 @@ var Autumn = class _Autumn extends ClientSDK {
68405
69270
  }
68406
69271
  };
68407
69272
 
69273
+ // src/backend/core/handlers/errorTransformer.ts
69274
+ var parseErrorBody = (body) => {
69275
+ if (!body || body.length === 0) return {};
69276
+ try {
69277
+ return JSON.parse(body);
69278
+ } catch {
69279
+ return {};
69280
+ }
69281
+ };
69282
+ var transformSdkError = (error) => {
69283
+ if (error instanceof AutumnError) {
69284
+ const parsed = parseErrorBody(error.body);
69285
+ return backendError({
69286
+ statusCode: error.statusCode,
69287
+ message: parsed.message ?? error.message ?? "Autumn API request failed",
69288
+ code: parsed.code ?? "autumn_api_error"
69289
+ });
69290
+ }
69291
+ if (error instanceof Error) {
69292
+ return backendError({
69293
+ message: error.message,
69294
+ code: "internal_error"
69295
+ });
69296
+ }
69297
+ return backendError({
69298
+ message: "Internal server error",
69299
+ code: "internal_error"
69300
+ });
69301
+ };
69302
+
69303
+ // src/backend/core/handlers/resolveIdentity.ts
69304
+ var resolveIdentity = async ({
69305
+ getCustomer,
69306
+ requireCustomer = true
69307
+ }) => {
69308
+ try {
69309
+ const authResult = await getCustomer();
69310
+ const identity = authResult ? {
69311
+ customerId: authResult.customerId ?? null,
69312
+ customerData: authResult.customerData
69313
+ } : { customerId: null, customerData: void 0 };
69314
+ if (requireCustomer && !identity.customerId) {
69315
+ return {
69316
+ success: false,
69317
+ error: backendError({
69318
+ message: `customerId returned from identify function is ${identity.customerId}`,
69319
+ code: "no_customer_id",
69320
+ statusCode: 401
69321
+ })
69322
+ };
69323
+ }
69324
+ return { success: true, identity };
69325
+ } catch (error) {
69326
+ console.error("[Autumn]: identify failed", error);
69327
+ return { success: false, error: transformSdkError(error) };
69328
+ }
69329
+ };
69330
+
69331
+ // src/backend/core/handlers/executeRoute.ts
69332
+ var buildSdkArgs = ({
69333
+ body,
69334
+ identity,
69335
+ route
69336
+ }) => {
69337
+ const args = sanitizeBody(body, route.protectedBodyFields);
69338
+ if (identity.customerId) {
69339
+ args.customerId = identity.customerId;
69340
+ }
69341
+ return args;
69342
+ };
69343
+ var executeRoute = async ({
69344
+ autumn,
69345
+ route,
69346
+ body,
69347
+ getCustomer
69348
+ }) => {
69349
+ const requireCustomer = route.requireCustomer !== false;
69350
+ const identityResult = await resolveIdentity({
69351
+ getCustomer,
69352
+ requireCustomer
69353
+ });
69354
+ if (identityResult.success === false) {
69355
+ return identityResult.error;
69356
+ }
69357
+ const { identity } = identityResult;
69358
+ if (route.customHandler) {
69359
+ try {
69360
+ const result = await route.customHandler({ autumn, identity, body });
69361
+ if (isBackendResult(result)) {
69362
+ return result;
69363
+ }
69364
+ return backendSuccess({ body: result });
69365
+ } catch (error) {
69366
+ console.error(`[Autumn] Custom handler failed: ${route.route}`, error);
69367
+ return transformSdkError(error);
69368
+ }
69369
+ }
69370
+ const sdkArgs = buildSdkArgs({ body, identity, route });
69371
+ try {
69372
+ const result = await route.sdkMethod(autumn, sdkArgs);
69373
+ return backendSuccess({ body: result });
69374
+ } catch (error) {
69375
+ console.error(`[Autumn] SDK call failed: ${route.route}`, error);
69376
+ return transformSdkError(error);
69377
+ }
69378
+ };
69379
+
69380
+ // src/backend/core/handlers/handleRouteByName.ts
69381
+ var handleRouteByName = async ({
69382
+ routeName,
69383
+ body,
69384
+ identify,
69385
+ secretKey,
69386
+ autumnURL
69387
+ }) => {
69388
+ const keyCheck = secretKeyCheck(secretKey);
69389
+ if (!keyCheck.found) {
69390
+ return {
69391
+ status: keyCheck.error.statusCode,
69392
+ body: keyCheck.error
69393
+ };
69394
+ }
69395
+ const route = routeConfigs.find((r) => r.route === routeName);
69396
+ if (!route) {
69397
+ return {
69398
+ status: 404,
69399
+ body: { message: "Route not found", code: "route_not_found" }
69400
+ };
69401
+ }
69402
+ const autumn = new Autumn({
69403
+ secretKey: secretKey || process.env.AUTUMN_SECRET_KEY,
69404
+ ...autumnURL && { serverURL: autumnURL }
69405
+ });
69406
+ const result = await executeRoute({
69407
+ autumn,
69408
+ route,
69409
+ body,
69410
+ getCustomer: identify
69411
+ });
69412
+ return {
69413
+ status: result.statusCode,
69414
+ body: result.body
69415
+ };
69416
+ };
69417
+
69418
+ // src/better-auth/utils/handleBetterAuthRoute.ts
69419
+ var createIdentityResolver = ({
69420
+ session,
69421
+ organization,
69422
+ customerScope,
69423
+ identify
69424
+ }) => {
69425
+ return () => {
69426
+ if (identify) {
69427
+ return identify({ session, organization });
69428
+ }
69429
+ return resolveIdentityFromScope({ session, organization, customerScope });
69430
+ };
69431
+ };
69432
+ var createHandleBetterAuthRoute = ({
69433
+ secretKey,
69434
+ baseURL,
69435
+ customerScope,
69436
+ identify
69437
+ }) => {
69438
+ return async ({ ctx, routeName }) => {
69439
+ const session = await getSessionFromCtx(
69440
+ ctx
69441
+ );
69442
+ const organization = await getActiveOrganization(ctx, session);
69443
+ const typedCtx = ctx;
69444
+ return handleRouteByName({
69445
+ routeName,
69446
+ body: typedCtx.body,
69447
+ identify: createIdentityResolver({
69448
+ session,
69449
+ organization,
69450
+ customerScope,
69451
+ identify
69452
+ }),
69453
+ secretKey,
69454
+ autumnURL: baseURL
69455
+ });
69456
+ };
69457
+ };
69458
+
68408
69459
  export {
68409
- Autumn
69460
+ createHandleBetterAuthRoute
68410
69461
  };