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.
- package/dist/backend/adapters/express.js +1780 -792
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +1780 -792
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +1780 -792
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +1780 -792
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +1780 -792
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
- package/dist/backend/{chunk-XSFLWMJO.mjs → chunk-6X4JZECX.mjs} +1 -1
- package/dist/backend/{chunk-BRCDWBVZ.mjs → chunk-EUR3CZTF.mjs} +1 -1
- package/dist/backend/{chunk-LPQJUWEP.mjs → chunk-EVPPOVX5.mjs} +2 -2
- package/dist/{better-auth/chunk-U4Z36UKV.mjs → backend/chunk-L4HKBZCC.mjs} +1773 -1168
- package/dist/backend/{chunk-QXN5PMM3.mjs → chunk-N2SCUJPL.mjs} +2 -2
- package/dist/backend/{chunk-P5IBHZVY.mjs → chunk-QPDWSMZ5.mjs} +1 -1
- package/dist/backend/{chunk-BAMETKFC.mjs → chunk-XIBFK5EL.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +1780 -792
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +1780 -792
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +1780 -792
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1780 -792
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +220 -60
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +220 -60
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1780 -792
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-4Nvx_kS7.d.mts → routeTypes-C_10hxA-.d.mts} +916 -130
- package/dist/backend/{routeTypes-5NBu7O27.d.ts → routeTypes-CqaUPWtn.d.ts} +916 -130
- package/dist/{backend/chunk-QPCIJMW3.mjs → better-auth/chunk-44MLRR2L.mjs} +1996 -945
- package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
- package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
- package/dist/better-auth/index.js +1780 -792
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1780 -792
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1780 -792
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-Bf5yt0Mo.d.mts → customer-BK_WEJ0J.d.mts} +17 -1
- package/dist/react/{customer-BQxqzdSE.d.ts → customer-CGLAquo9.d.ts} +17 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-response-CgqelDUJ.d.mts → list-plans-response-BMWMbzkK.d.ts} +89 -20
- package/dist/react/{list-plans-response-jYoBA-Ci.d.ts → list-plans-response-kbT4GwSh.d.mts} +89 -20
- package/dist/react/{params-B3qR55v_.d.ts → params-D_8sPp60.d.ts} +258 -40
- package/dist/react/{params-DWlWVt04.d.mts → params-eTM9nRBb.d.mts} +258 -40
- package/dist/react/{plan-BoEfV7t8.d.mts → plan-Dji-zdws.d.mts} +53 -7
- package/dist/react/{plan-BoEfV7t8.d.ts → plan-Dji-zdws.d.ts} +53 -7
- package/dist/sdk/index.d.mts +2323 -1205
- package/dist/sdk/index.d.ts +2323 -1205
- package/dist/sdk/index.js +21373 -20046
- package/dist/sdk/index.mjs +21237 -20046
- package/package.json +2 -2
|
@@ -1,233 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
backendError,
|
|
6
|
-
backendSuccess,
|
|
7
|
-
isBackendResult,
|
|
8
|
-
routeConfigs,
|
|
9
|
-
sanitizeBody,
|
|
10
|
-
secretKeyCheck
|
|
11
|
-
} from "./chunk-7UPP5FN5.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
|
-
}
|
|
2
|
+
AutumnError
|
|
3
|
+
} from "./chunk-J44WR3QZ.mjs";
|
|
231
4
|
|
|
232
5
|
// ../sdk/src/funcs/batch-track.ts
|
|
233
6
|
import * as z124 from "zod/v4-mini";
|
|
@@ -477,28 +250,170 @@ var encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
|
477
250
|
var encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
478
251
|
var encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
479
252
|
|
|
480
|
-
// ../sdk/src/
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
this.
|
|
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;
|
|
500
326
|
}
|
|
501
327
|
};
|
|
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
|
+
}
|
|
502
417
|
|
|
503
418
|
// ../sdk/src/models/autumn-default-error.ts
|
|
504
419
|
var AutumnDefaultError = class extends AutumnError {
|
|
@@ -1010,6 +925,26 @@ async function extractSecurity(sec) {
|
|
|
1010
925
|
return typeof sec === "function" ? sec() : sec;
|
|
1011
926
|
}
|
|
1012
927
|
|
|
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
|
+
|
|
1013
948
|
// ../sdk/src/models/advance-test-clock-op.ts
|
|
1014
949
|
import * as z8 from "zod/v4-mini";
|
|
1015
950
|
|
|
@@ -1591,7 +1526,7 @@ var AttachLicenseResponse$inboundSchema = z12.object({
|
|
|
1591
1526
|
// ../sdk/src/models/attach-response.ts
|
|
1592
1527
|
import * as z14 from "zod/v4-mini";
|
|
1593
1528
|
|
|
1594
|
-
// ../sdk/src/models/attach-upsert-license-
|
|
1529
|
+
// ../sdk/src/models/attach-upsert-license-proration.ts
|
|
1595
1530
|
import * as z13 from "zod/v4-mini";
|
|
1596
1531
|
var AttachDurationType = {
|
|
1597
1532
|
Day: "day",
|
|
@@ -1840,10 +1775,6 @@ var AttachUpsertLicenseOnDecrease = {
|
|
|
1840
1775
|
None: "none",
|
|
1841
1776
|
NoProrations: "no_prorations"
|
|
1842
1777
|
};
|
|
1843
|
-
var AttachUpsertLicenseExpiryDurationType = {
|
|
1844
|
-
Month: "month",
|
|
1845
|
-
Forever: "forever"
|
|
1846
|
-
};
|
|
1847
1778
|
var AttachFeatureQuantity$outboundSchema = z13.pipe(
|
|
1848
1779
|
z13.object({
|
|
1849
1780
|
featureId: z13.string(),
|
|
@@ -2008,6 +1939,17 @@ var AttachItemExpiry$outboundSchema = z13.object({
|
|
|
2008
1939
|
duration: AttachItemDuration$outboundSchema,
|
|
2009
1940
|
length: z13.number()
|
|
2010
1941
|
});
|
|
1942
|
+
var AttachCreditSchemaItem3$outboundSchema = z13.pipe(
|
|
1943
|
+
z13.object({
|
|
1944
|
+
meteredFeatureId: z13.string(),
|
|
1945
|
+
excluded: z13.literal(true)
|
|
1946
|
+
}),
|
|
1947
|
+
z13.transform((v) => {
|
|
1948
|
+
return remap(v, {
|
|
1949
|
+
meteredFeatureId: "metered_feature_id"
|
|
1950
|
+
});
|
|
1951
|
+
})
|
|
1952
|
+
);
|
|
2011
1953
|
var AttachDimensionsItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2012
1954
|
var AttachDimensionsItem4$outboundSchema = z13.pipe(
|
|
2013
1955
|
z13.object({
|
|
@@ -2192,7 +2134,8 @@ var AttachCreditSchemaItem1$outboundSchema = z13.pipe(
|
|
|
2192
2134
|
);
|
|
2193
2135
|
var AttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2194
2136
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2195
|
-
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema)
|
|
2137
|
+
z13.lazy(() => AttachCreditSchemaItem2$outboundSchema),
|
|
2138
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2196
2139
|
]);
|
|
2197
2140
|
var AttachItemProviderMarkups$outboundSchema = z13.object({
|
|
2198
2141
|
markup: z13.number()
|
|
@@ -2236,7 +2179,8 @@ var AttachItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2236
2179
|
z13.lazy(() => AttachCreditSchemaItem1$outboundSchema),
|
|
2237
2180
|
z13.lazy(
|
|
2238
2181
|
() => AttachCreditSchemaItem2$outboundSchema
|
|
2239
|
-
)
|
|
2182
|
+
),
|
|
2183
|
+
z13.lazy(() => AttachCreditSchemaItem3$outboundSchema)
|
|
2240
2184
|
]))),
|
|
2241
2185
|
markups: z13.optional(z13.lazy(
|
|
2242
2186
|
() => AttachItemMarkups$outboundSchema
|
|
@@ -2387,6 +2331,17 @@ var AttachAddItemExpiry$outboundSchema = z13.object({
|
|
|
2387
2331
|
duration: AttachAddItemDuration$outboundSchema,
|
|
2388
2332
|
length: z13.number()
|
|
2389
2333
|
});
|
|
2334
|
+
var AttachCreditSchemaAddItem3$outboundSchema = z13.pipe(
|
|
2335
|
+
z13.object({
|
|
2336
|
+
meteredFeatureId: z13.string(),
|
|
2337
|
+
excluded: z13.literal(true)
|
|
2338
|
+
}),
|
|
2339
|
+
z13.transform((v) => {
|
|
2340
|
+
return remap(v, {
|
|
2341
|
+
meteredFeatureId: "metered_feature_id"
|
|
2342
|
+
});
|
|
2343
|
+
})
|
|
2344
|
+
);
|
|
2390
2345
|
var AttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z13.string(), z13.number(), z13.boolean()]);
|
|
2391
2346
|
var AttachDimensionsAddItem4$outboundSchema = z13.pipe(
|
|
2392
2347
|
z13.object({
|
|
@@ -2573,7 +2528,8 @@ var AttachCreditSchemaAddItem1$outboundSchema = z13.pipe(
|
|
|
2573
2528
|
);
|
|
2574
2529
|
var AttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
2575
2530
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2576
|
-
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema)
|
|
2531
|
+
z13.lazy(() => AttachCreditSchemaAddItem2$outboundSchema),
|
|
2532
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2577
2533
|
]);
|
|
2578
2534
|
var AttachAddItemProviderMarkups$outboundSchema = z13.object({
|
|
2579
2535
|
markup: z13.number()
|
|
@@ -2617,7 +2573,8 @@ var AttachAddItemFeatureOverride$outboundSchema = z13.pipe(
|
|
|
2617
2573
|
z13.lazy(() => AttachCreditSchemaAddItem1$outboundSchema),
|
|
2618
2574
|
z13.lazy(
|
|
2619
2575
|
() => AttachCreditSchemaAddItem2$outboundSchema
|
|
2620
|
-
)
|
|
2576
|
+
),
|
|
2577
|
+
z13.lazy(() => AttachCreditSchemaAddItem3$outboundSchema)
|
|
2621
2578
|
]))),
|
|
2622
2579
|
markups: z13.optional(z13.lazy(
|
|
2623
2580
|
() => AttachAddItemMarkups$outboundSchema
|
|
@@ -2961,26 +2918,12 @@ var AttachUpsertLicenseProration$outboundSchema = z13.pipe(
|
|
|
2961
2918
|
});
|
|
2962
2919
|
})
|
|
2963
2920
|
);
|
|
2964
|
-
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z13.enum(
|
|
2965
|
-
AttachUpsertLicenseExpiryDurationType
|
|
2966
|
-
);
|
|
2967
|
-
var AttachUpsertLicenseRollover$outboundSchema = z13.pipe(
|
|
2968
|
-
z13.object({
|
|
2969
|
-
max: z13.optional(z13.number()),
|
|
2970
|
-
maxPercentage: z13.optional(z13.number()),
|
|
2971
|
-
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
2972
|
-
expiryDurationLength: z13.optional(z13.number())
|
|
2973
|
-
}),
|
|
2974
|
-
z13.transform((v) => {
|
|
2975
|
-
return remap(v, {
|
|
2976
|
-
maxPercentage: "max_percentage",
|
|
2977
|
-
expiryDurationType: "expiry_duration_type",
|
|
2978
|
-
expiryDurationLength: "expiry_duration_length"
|
|
2979
|
-
});
|
|
2980
|
-
})
|
|
2981
|
-
);
|
|
2982
2921
|
|
|
2983
2922
|
// ../sdk/src/models/attach-response.ts
|
|
2923
|
+
var AttachUpsertLicenseExpiryDurationType = {
|
|
2924
|
+
Month: "month",
|
|
2925
|
+
Forever: "forever"
|
|
2926
|
+
};
|
|
2984
2927
|
var AttachUpsertLicenseDuration = {
|
|
2985
2928
|
Day: "day",
|
|
2986
2929
|
Week: "week",
|
|
@@ -3102,11 +3045,40 @@ var AttachCode = {
|
|
|
3102
3045
|
PaymentFailed: "payment_failed",
|
|
3103
3046
|
PaymentProcessing: "payment_processing"
|
|
3104
3047
|
};
|
|
3048
|
+
var AttachUpsertLicenseExpiryDurationType$outboundSchema = z14.enum(
|
|
3049
|
+
AttachUpsertLicenseExpiryDurationType
|
|
3050
|
+
);
|
|
3051
|
+
var AttachUpsertLicenseRollover$outboundSchema = z14.pipe(
|
|
3052
|
+
z14.object({
|
|
3053
|
+
max: z14.optional(z14.number()),
|
|
3054
|
+
maxPercentage: z14.optional(z14.number()),
|
|
3055
|
+
expiryDurationType: AttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
3056
|
+
expiryDurationLength: z14.optional(z14.number())
|
|
3057
|
+
}),
|
|
3058
|
+
z14.transform((v) => {
|
|
3059
|
+
return remap(v, {
|
|
3060
|
+
maxPercentage: "max_percentage",
|
|
3061
|
+
expiryDurationType: "expiry_duration_type",
|
|
3062
|
+
expiryDurationLength: "expiry_duration_length"
|
|
3063
|
+
});
|
|
3064
|
+
})
|
|
3065
|
+
);
|
|
3105
3066
|
var AttachUpsertLicenseDuration$outboundSchema = z14.enum(AttachUpsertLicenseDuration);
|
|
3106
3067
|
var AttachUpsertLicenseExpiry$outboundSchema = z14.object({
|
|
3107
3068
|
duration: AttachUpsertLicenseDuration$outboundSchema,
|
|
3108
3069
|
length: z14.number()
|
|
3109
3070
|
});
|
|
3071
|
+
var AttachCreditSchemaUpsertLicense3$outboundSchema = z14.pipe(
|
|
3072
|
+
z14.object({
|
|
3073
|
+
meteredFeatureId: z14.string(),
|
|
3074
|
+
excluded: z14.literal(true)
|
|
3075
|
+
}),
|
|
3076
|
+
z14.transform((v) => {
|
|
3077
|
+
return remap(v, {
|
|
3078
|
+
meteredFeatureId: "metered_feature_id"
|
|
3079
|
+
});
|
|
3080
|
+
})
|
|
3081
|
+
);
|
|
3110
3082
|
var AttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
|
|
3111
3083
|
var AttachDimensionsUpsertLicense4$outboundSchema = z14.pipe(
|
|
3112
3084
|
z14.object({
|
|
@@ -3309,7 +3281,8 @@ var AttachCreditSchemaUpsertLicense1$outboundSchema = z14.pipe(
|
|
|
3309
3281
|
);
|
|
3310
3282
|
var AttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
3311
3283
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3312
|
-
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
3284
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
3285
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3313
3286
|
]);
|
|
3314
3287
|
var AttachUpsertLicenseProviderMarkups$outboundSchema = z14.object({
|
|
3315
3288
|
markup: z14.number()
|
|
@@ -3353,7 +3326,8 @@ var AttachUpsertLicenseFeatureOverride$outboundSchema = z14.pipe(
|
|
|
3353
3326
|
z14.lazy(() => AttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
3354
3327
|
z14.lazy(
|
|
3355
3328
|
() => AttachCreditSchemaUpsertLicense2$outboundSchema
|
|
3356
|
-
)
|
|
3329
|
+
),
|
|
3330
|
+
z14.lazy(() => AttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
3357
3331
|
]))),
|
|
3358
3332
|
markups: z14.optional(z14.lazy(
|
|
3359
3333
|
() => AttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -3377,7 +3351,9 @@ var AttachUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3377
3351
|
reset: z14.optional(AttachUpsertLicenseReset$outboundSchema),
|
|
3378
3352
|
price: z14.optional(AttachUpsertLicensePrice$outboundSchema),
|
|
3379
3353
|
proration: z14.optional(AttachUpsertLicenseProration$outboundSchema),
|
|
3380
|
-
rollover: z14.optional(
|
|
3354
|
+
rollover: z14.optional(
|
|
3355
|
+
z14.lazy(() => AttachUpsertLicenseRollover$outboundSchema)
|
|
3356
|
+
),
|
|
3381
3357
|
expiry: z14.optional(z14.lazy(() => AttachUpsertLicenseExpiry$outboundSchema)),
|
|
3382
3358
|
featureOverride: z14.optional(
|
|
3383
3359
|
z14.lazy(() => AttachUpsertLicenseFeatureOverride$outboundSchema)
|
|
@@ -3906,6 +3882,11 @@ var BalanceType = {
|
|
|
3906
3882
|
CreditSystem: "credit_system",
|
|
3907
3883
|
AiCreditSystem: "ai_credit_system"
|
|
3908
3884
|
};
|
|
3885
|
+
var BalanceCombine = {
|
|
3886
|
+
Sum: "sum",
|
|
3887
|
+
Max: "max",
|
|
3888
|
+
Min: "min"
|
|
3889
|
+
};
|
|
3909
3890
|
var BalanceDimensionsToEnum3 = {
|
|
3910
3891
|
Inf: "inf"
|
|
3911
3892
|
};
|
|
@@ -3942,6 +3923,7 @@ var BalanceSource = {
|
|
|
3942
3923
|
Entity: "entity"
|
|
3943
3924
|
};
|
|
3944
3925
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
3926
|
+
var BalanceCombine$inboundSchema = inboundSchema(BalanceCombine);
|
|
3945
3927
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3946
3928
|
z15.object({
|
|
3947
3929
|
match: z15.record(z15.string(), string5()),
|
|
@@ -4218,6 +4200,7 @@ var BalanceFeature$inboundSchema = z15.pipe(
|
|
|
4218
4200
|
name: string5(),
|
|
4219
4201
|
type: BalanceType$inboundSchema,
|
|
4220
4202
|
consumable: boolean2(),
|
|
4203
|
+
combine: optional3(BalanceCombine$inboundSchema),
|
|
4221
4204
|
event_names: optional3(z15.array(string5())),
|
|
4222
4205
|
credit_schema: optional3(z15.array(smartUnion([
|
|
4223
4206
|
z15.lazy(() => BalanceCreditSchema1$inboundSchema),
|
|
@@ -4415,7 +4398,7 @@ var BatchTrackResponse$inboundSchema = smartUnion([
|
|
|
4415
4398
|
// ../sdk/src/models/billing-update-response.ts
|
|
4416
4399
|
import * as z18 from "zod/v4-mini";
|
|
4417
4400
|
|
|
4418
|
-
// ../sdk/src/models/billing-update-upsert-license-
|
|
4401
|
+
// ../sdk/src/models/billing-update-upsert-license-proration.ts
|
|
4419
4402
|
import * as z17 from "zod/v4-mini";
|
|
4420
4403
|
var BillingUpdateDurationType = {
|
|
4421
4404
|
Day: "day",
|
|
@@ -4664,10 +4647,6 @@ var BillingUpdateUpsertLicenseOnDecrease = {
|
|
|
4664
4647
|
None: "none",
|
|
4665
4648
|
NoProrations: "no_prorations"
|
|
4666
4649
|
};
|
|
4667
|
-
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
4668
|
-
Month: "month",
|
|
4669
|
-
Forever: "forever"
|
|
4670
|
-
};
|
|
4671
4650
|
var BillingUpdateFeatureQuantity$outboundSchema = z17.pipe(
|
|
4672
4651
|
z17.object({
|
|
4673
4652
|
featureId: z17.string(),
|
|
@@ -4832,6 +4811,17 @@ var BillingUpdateItemExpiry$outboundSchema = z17.object({
|
|
|
4832
4811
|
duration: BillingUpdateItemDuration$outboundSchema,
|
|
4833
4812
|
length: z17.number()
|
|
4834
4813
|
});
|
|
4814
|
+
var BillingUpdateCreditSchemaItem3$outboundSchema = z17.pipe(
|
|
4815
|
+
z17.object({
|
|
4816
|
+
meteredFeatureId: z17.string(),
|
|
4817
|
+
excluded: z17.literal(true)
|
|
4818
|
+
}),
|
|
4819
|
+
z17.transform((v) => {
|
|
4820
|
+
return remap(v, {
|
|
4821
|
+
meteredFeatureId: "metered_feature_id"
|
|
4822
|
+
});
|
|
4823
|
+
})
|
|
4824
|
+
);
|
|
4835
4825
|
var BillingUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
4836
4826
|
var BillingUpdateDimensionsItem4$outboundSchema = z17.pipe(
|
|
4837
4827
|
z17.object({
|
|
@@ -5028,7 +5018,8 @@ var BillingUpdateCreditSchemaItem1$outboundSchema = z17.pipe(
|
|
|
5028
5018
|
);
|
|
5029
5019
|
var BillingUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5030
5020
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5031
|
-
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema)
|
|
5021
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem2$outboundSchema),
|
|
5022
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5032
5023
|
]);
|
|
5033
5024
|
var BillingUpdateItemProviderMarkups$outboundSchema = z17.object({
|
|
5034
5025
|
markup: z17.number()
|
|
@@ -5072,7 +5063,8 @@ var BillingUpdateItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5072
5063
|
z17.lazy(() => BillingUpdateCreditSchemaItem1$outboundSchema),
|
|
5073
5064
|
z17.lazy(
|
|
5074
5065
|
() => BillingUpdateCreditSchemaItem2$outboundSchema
|
|
5075
|
-
)
|
|
5066
|
+
),
|
|
5067
|
+
z17.lazy(() => BillingUpdateCreditSchemaItem3$outboundSchema)
|
|
5076
5068
|
]))),
|
|
5077
5069
|
markups: z17.optional(z17.lazy(
|
|
5078
5070
|
() => BillingUpdateItemMarkups$outboundSchema
|
|
@@ -5231,6 +5223,17 @@ var BillingUpdateAddItemExpiry$outboundSchema = z17.object({
|
|
|
5231
5223
|
duration: BillingUpdateAddItemDuration$outboundSchema,
|
|
5232
5224
|
length: z17.number()
|
|
5233
5225
|
});
|
|
5226
|
+
var BillingUpdateCreditSchemaAddItem3$outboundSchema = z17.pipe(
|
|
5227
|
+
z17.object({
|
|
5228
|
+
meteredFeatureId: z17.string(),
|
|
5229
|
+
excluded: z17.literal(true)
|
|
5230
|
+
}),
|
|
5231
|
+
z17.transform((v) => {
|
|
5232
|
+
return remap(v, {
|
|
5233
|
+
meteredFeatureId: "metered_feature_id"
|
|
5234
|
+
});
|
|
5235
|
+
})
|
|
5236
|
+
);
|
|
5234
5237
|
var BillingUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
|
|
5235
5238
|
var BillingUpdateDimensionsAddItem4$outboundSchema = z17.pipe(
|
|
5236
5239
|
z17.object({
|
|
@@ -5437,7 +5440,8 @@ var BillingUpdateCreditSchemaAddItem1$outboundSchema = z17.pipe(
|
|
|
5437
5440
|
);
|
|
5438
5441
|
var BillingUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
5439
5442
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5440
|
-
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema)
|
|
5443
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem2$outboundSchema),
|
|
5444
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5441
5445
|
]);
|
|
5442
5446
|
var BillingUpdateAddItemProviderMarkups$outboundSchema = z17.object({
|
|
5443
5447
|
markup: z17.number()
|
|
@@ -5481,7 +5485,8 @@ var BillingUpdateAddItemFeatureOverride$outboundSchema = z17.pipe(
|
|
|
5481
5485
|
z17.lazy(() => BillingUpdateCreditSchemaAddItem1$outboundSchema),
|
|
5482
5486
|
z17.lazy(
|
|
5483
5487
|
() => BillingUpdateCreditSchemaAddItem2$outboundSchema
|
|
5484
|
-
)
|
|
5488
|
+
),
|
|
5489
|
+
z17.lazy(() => BillingUpdateCreditSchemaAddItem3$outboundSchema)
|
|
5485
5490
|
]))),
|
|
5486
5491
|
markups: z17.optional(z17.lazy(
|
|
5487
5492
|
() => BillingUpdateAddItemMarkups$outboundSchema
|
|
@@ -5845,26 +5850,12 @@ var BillingUpdateUpsertLicenseProration$outboundSchema = z17.pipe(
|
|
|
5845
5850
|
});
|
|
5846
5851
|
})
|
|
5847
5852
|
);
|
|
5848
|
-
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z17.enum(
|
|
5849
|
-
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5850
|
-
);
|
|
5851
|
-
var BillingUpdateUpsertLicenseRollover$outboundSchema = z17.pipe(
|
|
5852
|
-
z17.object({
|
|
5853
|
-
max: z17.optional(z17.number()),
|
|
5854
|
-
maxPercentage: z17.optional(z17.number()),
|
|
5855
|
-
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5856
|
-
expiryDurationLength: z17.optional(z17.number())
|
|
5857
|
-
}),
|
|
5858
|
-
z17.transform((v) => {
|
|
5859
|
-
return remap(v, {
|
|
5860
|
-
maxPercentage: "max_percentage",
|
|
5861
|
-
expiryDurationType: "expiry_duration_type",
|
|
5862
|
-
expiryDurationLength: "expiry_duration_length"
|
|
5863
|
-
});
|
|
5864
|
-
})
|
|
5865
|
-
);
|
|
5866
5853
|
|
|
5867
5854
|
// ../sdk/src/models/billing-update-response.ts
|
|
5855
|
+
var BillingUpdateUpsertLicenseExpiryDurationType = {
|
|
5856
|
+
Month: "month",
|
|
5857
|
+
Forever: "forever"
|
|
5858
|
+
};
|
|
5868
5859
|
var BillingUpdateUpsertLicenseDuration = {
|
|
5869
5860
|
Day: "day",
|
|
5870
5861
|
Week: "week",
|
|
@@ -5986,11 +5977,40 @@ var BillingUpdateCode = {
|
|
|
5986
5977
|
PaymentFailed: "payment_failed",
|
|
5987
5978
|
PaymentProcessing: "payment_processing"
|
|
5988
5979
|
};
|
|
5980
|
+
var BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema = z18.enum(
|
|
5981
|
+
BillingUpdateUpsertLicenseExpiryDurationType
|
|
5982
|
+
);
|
|
5983
|
+
var BillingUpdateUpsertLicenseRollover$outboundSchema = z18.pipe(
|
|
5984
|
+
z18.object({
|
|
5985
|
+
max: z18.optional(z18.number()),
|
|
5986
|
+
maxPercentage: z18.optional(z18.number()),
|
|
5987
|
+
expiryDurationType: BillingUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
5988
|
+
expiryDurationLength: z18.optional(z18.number())
|
|
5989
|
+
}),
|
|
5990
|
+
z18.transform((v) => {
|
|
5991
|
+
return remap(v, {
|
|
5992
|
+
maxPercentage: "max_percentage",
|
|
5993
|
+
expiryDurationType: "expiry_duration_type",
|
|
5994
|
+
expiryDurationLength: "expiry_duration_length"
|
|
5995
|
+
});
|
|
5996
|
+
})
|
|
5997
|
+
);
|
|
5989
5998
|
var BillingUpdateUpsertLicenseDuration$outboundSchema = z18.enum(BillingUpdateUpsertLicenseDuration);
|
|
5990
5999
|
var BillingUpdateUpsertLicenseExpiry$outboundSchema = z18.object({
|
|
5991
6000
|
duration: BillingUpdateUpsertLicenseDuration$outboundSchema,
|
|
5992
6001
|
length: z18.number()
|
|
5993
6002
|
});
|
|
6003
|
+
var BillingUpdateCreditSchemaUpsertLicense3$outboundSchema = z18.pipe(
|
|
6004
|
+
z18.object({
|
|
6005
|
+
meteredFeatureId: z18.string(),
|
|
6006
|
+
excluded: z18.literal(true)
|
|
6007
|
+
}),
|
|
6008
|
+
z18.transform((v) => {
|
|
6009
|
+
return remap(v, {
|
|
6010
|
+
meteredFeatureId: "metered_feature_id"
|
|
6011
|
+
});
|
|
6012
|
+
})
|
|
6013
|
+
);
|
|
5994
6014
|
var BillingUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z18.string(), z18.number(), z18.boolean()]);
|
|
5995
6015
|
var BillingUpdateDimensionsUpsertLicense4$outboundSchema = z18.pipe(
|
|
5996
6016
|
z18.object({
|
|
@@ -6200,7 +6220,8 @@ var BillingUpdateCreditSchemaUpsertLicense1$outboundSchema = z18.pipe(
|
|
|
6200
6220
|
);
|
|
6201
6221
|
var BillingUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
6202
6222
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6203
|
-
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
6223
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
6224
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6204
6225
|
]);
|
|
6205
6226
|
var BillingUpdateUpsertLicenseProviderMarkups$outboundSchema = z18.object({
|
|
6206
6227
|
markup: z18.number()
|
|
@@ -6244,7 +6265,8 @@ var BillingUpdateUpsertLicenseFeatureOverride$outboundSchema = z18.pipe(
|
|
|
6244
6265
|
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
6245
6266
|
z18.lazy(
|
|
6246
6267
|
() => BillingUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
6247
|
-
)
|
|
6268
|
+
),
|
|
6269
|
+
z18.lazy(() => BillingUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
6248
6270
|
]))),
|
|
6249
6271
|
markups: z18.optional(z18.lazy(
|
|
6250
6272
|
() => BillingUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -6268,7 +6290,9 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z18.pipe(
|
|
|
6268
6290
|
reset: z18.optional(BillingUpdateUpsertLicenseReset$outboundSchema),
|
|
6269
6291
|
price: z18.optional(BillingUpdateUpsertLicensePrice$outboundSchema),
|
|
6270
6292
|
proration: z18.optional(BillingUpdateUpsertLicenseProration$outboundSchema),
|
|
6271
|
-
rollover: z18.optional(
|
|
6293
|
+
rollover: z18.optional(
|
|
6294
|
+
z18.lazy(() => BillingUpdateUpsertLicenseRollover$outboundSchema)
|
|
6295
|
+
),
|
|
6272
6296
|
expiry: z18.optional(
|
|
6273
6297
|
z18.lazy(() => BillingUpdateUpsertLicenseExpiry$outboundSchema)
|
|
6274
6298
|
),
|
|
@@ -6738,6 +6762,11 @@ var FlagType2 = {
|
|
|
6738
6762
|
CreditSystem: "credit_system",
|
|
6739
6763
|
AiCreditSystem: "ai_credit_system"
|
|
6740
6764
|
};
|
|
6765
|
+
var CheckCombine2 = {
|
|
6766
|
+
Sum: "sum",
|
|
6767
|
+
Max: "max",
|
|
6768
|
+
Min: "min"
|
|
6769
|
+
};
|
|
6741
6770
|
var CheckDimensionsToEnum6 = {
|
|
6742
6771
|
Inf: "inf"
|
|
6743
6772
|
};
|
|
@@ -6863,6 +6892,11 @@ var FlagType1 = {
|
|
|
6863
6892
|
CreditSystem: "credit_system",
|
|
6864
6893
|
AiCreditSystem: "ai_credit_system"
|
|
6865
6894
|
};
|
|
6895
|
+
var CheckCombine1 = {
|
|
6896
|
+
Sum: "sum",
|
|
6897
|
+
Max: "max",
|
|
6898
|
+
Min: "min"
|
|
6899
|
+
};
|
|
6866
6900
|
var CheckDimensionsToEnum3 = {
|
|
6867
6901
|
Inf: "inf"
|
|
6868
6902
|
};
|
|
@@ -7021,6 +7055,7 @@ var CheckParams$outboundSchema = z19.pipe(
|
|
|
7021
7055
|
})
|
|
7022
7056
|
);
|
|
7023
7057
|
var FlagType2$inboundSchema = inboundSchema(FlagType2);
|
|
7058
|
+
var CheckCombine2$inboundSchema = inboundSchema(CheckCombine2);
|
|
7024
7059
|
var CheckDimensions12$inboundSchema = z19.pipe(
|
|
7025
7060
|
z19.object({
|
|
7026
7061
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7297,6 +7332,7 @@ var CheckFeature2$inboundSchema = z19.pipe(
|
|
|
7297
7332
|
name: string5(),
|
|
7298
7333
|
type: FlagType2$inboundSchema,
|
|
7299
7334
|
consumable: boolean2(),
|
|
7335
|
+
combine: optional3(CheckCombine2$inboundSchema),
|
|
7300
7336
|
event_names: optional3(z19.array(string5())),
|
|
7301
7337
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7302
7338
|
z19.lazy(() => CheckCreditSchema4$inboundSchema),
|
|
@@ -7676,6 +7712,7 @@ var CheckResponseBody2$inboundSchema = z19.pipe(
|
|
|
7676
7712
|
})
|
|
7677
7713
|
);
|
|
7678
7714
|
var FlagType1$inboundSchema = inboundSchema(FlagType1);
|
|
7715
|
+
var CheckCombine1$inboundSchema = inboundSchema(CheckCombine1);
|
|
7679
7716
|
var CheckDimensions6$inboundSchema = z19.pipe(
|
|
7680
7717
|
z19.object({
|
|
7681
7718
|
match: z19.record(z19.string(), string5()),
|
|
@@ -7952,6 +7989,7 @@ var CheckFeature1$inboundSchema = z19.pipe(
|
|
|
7952
7989
|
name: string5(),
|
|
7953
7990
|
type: FlagType1$inboundSchema,
|
|
7954
7991
|
consumable: boolean2(),
|
|
7992
|
+
combine: optional3(CheckCombine1$inboundSchema),
|
|
7955
7993
|
event_names: optional3(z19.array(string5())),
|
|
7956
7994
|
credit_schema: optional3(z19.array(smartUnion([
|
|
7957
7995
|
z19.lazy(() => CheckCreditSchema1$inboundSchema),
|
|
@@ -8630,7 +8668,7 @@ var CustomerData$outboundSchema = z21.pipe(
|
|
|
8630
8668
|
// ../sdk/src/models/plan.ts
|
|
8631
8669
|
import * as z23 from "zod/v4-mini";
|
|
8632
8670
|
|
|
8633
|
-
// ../sdk/src/models/plan-variant-details-
|
|
8671
|
+
// ../sdk/src/models/plan-variant-details-usage-alert.ts
|
|
8634
8672
|
import * as z22 from "zod/v4-mini";
|
|
8635
8673
|
var PlanPriceInterval = {
|
|
8636
8674
|
OneOff: "one_off",
|
|
@@ -9094,6 +9132,17 @@ var ItemExpiry$inboundSchema = z22.object({
|
|
|
9094
9132
|
duration: ItemDuration$inboundSchema,
|
|
9095
9133
|
length: number2()
|
|
9096
9134
|
});
|
|
9135
|
+
var PlanCreditSchemaItemFeatureOverride3$inboundSchema = z22.pipe(
|
|
9136
|
+
z22.object({
|
|
9137
|
+
metered_feature_id: string5(),
|
|
9138
|
+
excluded: literal3(true)
|
|
9139
|
+
}),
|
|
9140
|
+
z22.transform((v) => {
|
|
9141
|
+
return remap(v, {
|
|
9142
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9143
|
+
});
|
|
9144
|
+
})
|
|
9145
|
+
);
|
|
9097
9146
|
var PlanDimensionsItem4$inboundSchema = z22.pipe(
|
|
9098
9147
|
z22.object({
|
|
9099
9148
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9254,7 +9303,8 @@ var PlanCreditSchemaItemFeatureOverride1$inboundSchema = z22.pipe(
|
|
|
9254
9303
|
);
|
|
9255
9304
|
var PlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9256
9305
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9257
|
-
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
9306
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
9307
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9258
9308
|
]);
|
|
9259
9309
|
var PlanItemProviderMarkups$inboundSchema = z22.object({
|
|
9260
9310
|
markup: number2()
|
|
@@ -9298,7 +9348,8 @@ var ItemFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9298
9348
|
z22.lazy(() => PlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
9299
9349
|
z22.lazy(
|
|
9300
9350
|
() => PlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
9301
|
-
)
|
|
9351
|
+
),
|
|
9352
|
+
z22.lazy(() => PlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
9302
9353
|
]))),
|
|
9303
9354
|
markups: optional3(z22.lazy(
|
|
9304
9355
|
() => ItemMarkups$inboundSchema
|
|
@@ -9696,6 +9747,17 @@ var VariantDetailsExpiry$inboundSchema = z22.object({
|
|
|
9696
9747
|
duration: VariantDetailsDuration$inboundSchema,
|
|
9697
9748
|
length: number2()
|
|
9698
9749
|
});
|
|
9750
|
+
var PlanCreditSchemaVariantDetails3$inboundSchema = z22.pipe(
|
|
9751
|
+
z22.object({
|
|
9752
|
+
metered_feature_id: string5(),
|
|
9753
|
+
excluded: literal3(true)
|
|
9754
|
+
}),
|
|
9755
|
+
z22.transform((v) => {
|
|
9756
|
+
return remap(v, {
|
|
9757
|
+
"metered_feature_id": "meteredFeatureId"
|
|
9758
|
+
});
|
|
9759
|
+
})
|
|
9760
|
+
);
|
|
9699
9761
|
var PlanDimensionsVariantDetails4$inboundSchema = z22.pipe(
|
|
9700
9762
|
z22.object({
|
|
9701
9763
|
match: z22.record(z22.string(), string5()),
|
|
@@ -9876,7 +9938,8 @@ var PlanCreditSchemaVariantDetails1$inboundSchema = z22.pipe(
|
|
|
9876
9938
|
);
|
|
9877
9939
|
var PlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
9878
9940
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9879
|
-
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema)
|
|
9941
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails2$inboundSchema),
|
|
9942
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9880
9943
|
]);
|
|
9881
9944
|
var PlanVariantDetailsProviderMarkups$inboundSchema = z22.object({
|
|
9882
9945
|
markup: number2()
|
|
@@ -9920,7 +9983,8 @@ var VariantDetailsFeatureOverride$inboundSchema = z22.pipe(
|
|
|
9920
9983
|
z22.lazy(() => PlanCreditSchemaVariantDetails1$inboundSchema),
|
|
9921
9984
|
z22.lazy(
|
|
9922
9985
|
() => PlanCreditSchemaVariantDetails2$inboundSchema
|
|
9923
|
-
)
|
|
9986
|
+
),
|
|
9987
|
+
z22.lazy(() => PlanCreditSchemaVariantDetails3$inboundSchema)
|
|
9924
9988
|
]))),
|
|
9925
9989
|
markups: optional3(z22.lazy(
|
|
9926
9990
|
() => VariantDetailsMarkups$inboundSchema
|
|
@@ -10106,45 +10170,6 @@ var PlanVariantDetailsUsageAlert$inboundSchema = z22.pipe(
|
|
|
10106
10170
|
});
|
|
10107
10171
|
})
|
|
10108
10172
|
);
|
|
10109
|
-
var PlanVariantDetailsOverageAllowed1$inboundSchema = z22.pipe(
|
|
10110
|
-
z22.object({
|
|
10111
|
-
feature_id: string5(),
|
|
10112
|
-
enabled: z22._default(boolean2(), false)
|
|
10113
|
-
}),
|
|
10114
|
-
z22.transform((v) => {
|
|
10115
|
-
return remap(v, {
|
|
10116
|
-
"feature_id": "featureId"
|
|
10117
|
-
});
|
|
10118
|
-
})
|
|
10119
|
-
);
|
|
10120
|
-
var PlanVariantDetailsBillingControls1$inboundSchema = z22.pipe(
|
|
10121
|
-
z22.object({
|
|
10122
|
-
auto_topups: optional3(
|
|
10123
|
-
z22.array(z22.lazy(() => PlanVariantDetailsAutoTopup$inboundSchema))
|
|
10124
|
-
),
|
|
10125
|
-
spend_limits: optional3(
|
|
10126
|
-
z22.array(z22.lazy(() => PlanVariantDetailsSpendLimit$inboundSchema))
|
|
10127
|
-
),
|
|
10128
|
-
usage_limits: optional3(
|
|
10129
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageLimit$inboundSchema))
|
|
10130
|
-
),
|
|
10131
|
-
usage_alerts: optional3(
|
|
10132
|
-
z22.array(z22.lazy(() => PlanVariantDetailsUsageAlert$inboundSchema))
|
|
10133
|
-
),
|
|
10134
|
-
overage_allowed: optional3(
|
|
10135
|
-
z22.array(z22.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10136
|
-
)
|
|
10137
|
-
}),
|
|
10138
|
-
z22.transform((v) => {
|
|
10139
|
-
return remap(v, {
|
|
10140
|
-
"auto_topups": "autoTopups",
|
|
10141
|
-
"spend_limits": "spendLimits",
|
|
10142
|
-
"usage_limits": "usageLimits",
|
|
10143
|
-
"usage_alerts": "usageAlerts",
|
|
10144
|
-
"overage_allowed": "overageAllowed"
|
|
10145
|
-
});
|
|
10146
|
-
})
|
|
10147
|
-
);
|
|
10148
10173
|
|
|
10149
10174
|
// ../sdk/src/models/plan.ts
|
|
10150
10175
|
var PlanPriceUpsertLicenseInterval = {
|
|
@@ -10237,6 +10262,45 @@ var PlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
10237
10262
|
SemiAnnual: "semi_annual",
|
|
10238
10263
|
Year: "year"
|
|
10239
10264
|
};
|
|
10265
|
+
var PlanVariantDetailsOverageAllowed1$inboundSchema = z23.pipe(
|
|
10266
|
+
z23.object({
|
|
10267
|
+
feature_id: string5(),
|
|
10268
|
+
enabled: z23._default(boolean2(), false)
|
|
10269
|
+
}),
|
|
10270
|
+
z23.transform((v) => {
|
|
10271
|
+
return remap(v, {
|
|
10272
|
+
"feature_id": "featureId"
|
|
10273
|
+
});
|
|
10274
|
+
})
|
|
10275
|
+
);
|
|
10276
|
+
var PlanVariantDetailsBillingControls1$inboundSchema = z23.pipe(
|
|
10277
|
+
z23.object({
|
|
10278
|
+
auto_topups: optional3(
|
|
10279
|
+
z23.array(PlanVariantDetailsAutoTopup$inboundSchema)
|
|
10280
|
+
),
|
|
10281
|
+
spend_limits: optional3(
|
|
10282
|
+
z23.array(PlanVariantDetailsSpendLimit$inboundSchema)
|
|
10283
|
+
),
|
|
10284
|
+
usage_limits: optional3(
|
|
10285
|
+
z23.array(PlanVariantDetailsUsageLimit$inboundSchema)
|
|
10286
|
+
),
|
|
10287
|
+
usage_alerts: optional3(
|
|
10288
|
+
z23.array(PlanVariantDetailsUsageAlert$inboundSchema)
|
|
10289
|
+
),
|
|
10290
|
+
overage_allowed: optional3(
|
|
10291
|
+
z23.array(z23.lazy(() => PlanVariantDetailsOverageAllowed1$inboundSchema))
|
|
10292
|
+
)
|
|
10293
|
+
}),
|
|
10294
|
+
z23.transform((v) => {
|
|
10295
|
+
return remap(v, {
|
|
10296
|
+
"auto_topups": "autoTopups",
|
|
10297
|
+
"spend_limits": "spendLimits",
|
|
10298
|
+
"usage_limits": "usageLimits",
|
|
10299
|
+
"usage_alerts": "usageAlerts",
|
|
10300
|
+
"overage_allowed": "overageAllowed"
|
|
10301
|
+
});
|
|
10302
|
+
})
|
|
10303
|
+
);
|
|
10240
10304
|
var PlanPriceUpsertLicenseInterval$inboundSchema = inboundSchema(PlanPriceUpsertLicenseInterval);
|
|
10241
10305
|
var UpsertLicenseAdditionalCurrency$inboundSchema = z23.object({
|
|
10242
10306
|
currency: string5(),
|
|
@@ -10373,6 +10437,17 @@ var UpsertLicenseExpiry$inboundSchema = z23.object({
|
|
|
10373
10437
|
duration: UpsertLicenseDuration$inboundSchema,
|
|
10374
10438
|
length: number2()
|
|
10375
10439
|
});
|
|
10440
|
+
var PlanCreditSchemaUpsertLicense3$inboundSchema = z23.pipe(
|
|
10441
|
+
z23.object({
|
|
10442
|
+
metered_feature_id: string5(),
|
|
10443
|
+
excluded: literal3(true)
|
|
10444
|
+
}),
|
|
10445
|
+
z23.transform((v) => {
|
|
10446
|
+
return remap(v, {
|
|
10447
|
+
"metered_feature_id": "meteredFeatureId"
|
|
10448
|
+
});
|
|
10449
|
+
})
|
|
10450
|
+
);
|
|
10376
10451
|
var PlanDimensionsUpsertLicense4$inboundSchema = z23.pipe(
|
|
10377
10452
|
z23.object({
|
|
10378
10453
|
match: z23.record(z23.string(), string5()),
|
|
@@ -10554,7 +10629,8 @@ var PlanCreditSchemaUpsertLicense1$inboundSchema = z23.pipe(
|
|
|
10554
10629
|
);
|
|
10555
10630
|
var PlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
10556
10631
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10557
|
-
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
10632
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
10633
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10558
10634
|
]);
|
|
10559
10635
|
var PlanUpsertLicenseProviderMarkups$inboundSchema = z23.object({
|
|
10560
10636
|
markup: number2()
|
|
@@ -10598,7 +10674,8 @@ var UpsertLicenseFeatureOverride$inboundSchema = z23.pipe(
|
|
|
10598
10674
|
z23.lazy(() => PlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
10599
10675
|
z23.lazy(
|
|
10600
10676
|
() => PlanCreditSchemaUpsertLicense2$inboundSchema
|
|
10601
|
-
)
|
|
10677
|
+
),
|
|
10678
|
+
z23.lazy(() => PlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
10602
10679
|
]))),
|
|
10603
10680
|
markups: optional3(z23.lazy(
|
|
10604
10681
|
() => UpsertLicenseMarkups$inboundSchema
|
|
@@ -10725,7 +10802,7 @@ var Customize1$inboundSchema = z23.pipe(
|
|
|
10725
10802
|
remove_items: optional3(z23.array(PlanItemFilter$inboundSchema)),
|
|
10726
10803
|
free_trial: z23.optional(z23.nullable(FreeTrialParams$inboundSchema)),
|
|
10727
10804
|
billing_controls: optional3(
|
|
10728
|
-
PlanVariantDetailsBillingControls1$inboundSchema
|
|
10805
|
+
z23.lazy(() => PlanVariantDetailsBillingControls1$inboundSchema)
|
|
10729
10806
|
),
|
|
10730
10807
|
upsert_licenses: optional3(
|
|
10731
10808
|
z23.array(z23.lazy(() => UpsertLicense$inboundSchema))
|
|
@@ -10845,6 +10922,11 @@ var CreateEntityType = {
|
|
|
10845
10922
|
CreditSystem: "credit_system",
|
|
10846
10923
|
AiCreditSystem: "ai_credit_system"
|
|
10847
10924
|
};
|
|
10925
|
+
var CreateEntityCombine = {
|
|
10926
|
+
Sum: "sum",
|
|
10927
|
+
Max: "max",
|
|
10928
|
+
Min: "min"
|
|
10929
|
+
};
|
|
10848
10930
|
var CreateEntityDimensionsToEnum3 = {
|
|
10849
10931
|
Inf: "inf"
|
|
10850
10932
|
};
|
|
@@ -11086,6 +11168,7 @@ var CreateEntityPurchase$inboundSchema = z24.pipe(
|
|
|
11086
11168
|
})
|
|
11087
11169
|
);
|
|
11088
11170
|
var CreateEntityType$inboundSchema = inboundSchema(CreateEntityType);
|
|
11171
|
+
var CreateEntityCombine$inboundSchema = inboundSchema(CreateEntityCombine);
|
|
11089
11172
|
var CreateEntityDimensions6$inboundSchema = z24.pipe(
|
|
11090
11173
|
z24.object({
|
|
11091
11174
|
match: z24.record(z24.string(), string5()),
|
|
@@ -11371,6 +11454,7 @@ var CreateEntityFeature$inboundSchema = z24.pipe(
|
|
|
11371
11454
|
name: string5(),
|
|
11372
11455
|
type: CreateEntityType$inboundSchema,
|
|
11373
11456
|
consumable: boolean2(),
|
|
11457
|
+
combine: optional3(CreateEntityCombine$inboundSchema),
|
|
11374
11458
|
event_names: optional3(z24.array(string5())),
|
|
11375
11459
|
credit_schema: optional3(z24.array(smartUnion([
|
|
11376
11460
|
z24.lazy(() => CreateEntityCreditSchema1$inboundSchema),
|
|
@@ -11594,6 +11678,11 @@ var CreateFeatureTypeRequestBody = {
|
|
|
11594
11678
|
CreditSystem: "credit_system",
|
|
11595
11679
|
AiCreditSystem: "ai_credit_system"
|
|
11596
11680
|
};
|
|
11681
|
+
var CreateFeatureCombineRequest = {
|
|
11682
|
+
Sum: "sum",
|
|
11683
|
+
Max: "max",
|
|
11684
|
+
Min: "min"
|
|
11685
|
+
};
|
|
11597
11686
|
var CreateFeatureDimensionsToRequestBodyEnum2 = {
|
|
11598
11687
|
Inf: "inf"
|
|
11599
11688
|
};
|
|
@@ -11609,6 +11698,11 @@ var CreateFeatureTypeResponse = {
|
|
|
11609
11698
|
CreditSystem: "credit_system",
|
|
11610
11699
|
AiCreditSystem: "ai_credit_system"
|
|
11611
11700
|
};
|
|
11701
|
+
var CreateFeatureCombineResponse = {
|
|
11702
|
+
Sum: "sum",
|
|
11703
|
+
Max: "max",
|
|
11704
|
+
Min: "min"
|
|
11705
|
+
};
|
|
11612
11706
|
var CreateFeatureDimensionsToResponseEnum3 = {
|
|
11613
11707
|
Inf: "inf"
|
|
11614
11708
|
};
|
|
@@ -11622,6 +11716,7 @@ var CreateFeatureToResponseEnum = {
|
|
|
11622
11716
|
Inf: "inf"
|
|
11623
11717
|
};
|
|
11624
11718
|
var CreateFeatureTypeRequestBody$outboundSchema = z25.enum(CreateFeatureTypeRequestBody);
|
|
11719
|
+
var CreateFeatureCombineRequest$outboundSchema = z25.enum(CreateFeatureCombineRequest);
|
|
11625
11720
|
var CreateFeatureDisplayRequestBody$outboundSchema = z25.object({
|
|
11626
11721
|
singular: z25.string(),
|
|
11627
11722
|
plural: z25.string()
|
|
@@ -11855,6 +11950,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11855
11950
|
name: z25.string(),
|
|
11856
11951
|
type: CreateFeatureTypeRequestBody$outboundSchema,
|
|
11857
11952
|
consumable: z25.optional(z25.boolean()),
|
|
11953
|
+
combine: z25.optional(CreateFeatureCombineRequest$outboundSchema),
|
|
11858
11954
|
display: z25.optional(
|
|
11859
11955
|
z25.lazy(() => CreateFeatureDisplayRequestBody$outboundSchema)
|
|
11860
11956
|
),
|
|
@@ -11888,6 +11984,7 @@ var CreateFeatureParams$outboundSchema = z25.pipe(
|
|
|
11888
11984
|
})
|
|
11889
11985
|
);
|
|
11890
11986
|
var CreateFeatureTypeResponse$inboundSchema = inboundSchema(CreateFeatureTypeResponse);
|
|
11987
|
+
var CreateFeatureCombineResponse$inboundSchema = inboundSchema(CreateFeatureCombineResponse);
|
|
11891
11988
|
var CreateFeatureDimensionsResponse6$inboundSchema = z25.pipe(
|
|
11892
11989
|
z25.object({
|
|
11893
11990
|
match: z25.record(z25.string(), string5()),
|
|
@@ -12196,6 +12293,7 @@ var CreateFeatureResponse$inboundSchema = z25.pipe(
|
|
|
12196
12293
|
name: string5(),
|
|
12197
12294
|
type: CreateFeatureTypeResponse$inboundSchema,
|
|
12198
12295
|
consumable: boolean2(),
|
|
12296
|
+
combine: optional3(CreateFeatureCombineResponse$inboundSchema),
|
|
12199
12297
|
event_names: optional3(z25.array(string5())),
|
|
12200
12298
|
credit_schema: optional3(z25.array(smartUnion([
|
|
12201
12299
|
z25.lazy(() => CreateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -13379,7 +13477,7 @@ var CreateInvoiceResponse$inboundSchema = z26.object({
|
|
|
13379
13477
|
preview: z26.lazy(() => CreateInvoicePreview$inboundSchema)
|
|
13380
13478
|
});
|
|
13381
13479
|
|
|
13382
|
-
// ../sdk/src/models/create-plan-item-
|
|
13480
|
+
// ../sdk/src/models/create-plan-item-additional-currency-response.ts
|
|
13383
13481
|
import * as z27 from "zod/v4-mini";
|
|
13384
13482
|
var CreatePlanPriceIntervalRequestBody = {
|
|
13385
13483
|
OneOff: "one_off",
|
|
@@ -13752,6 +13850,17 @@ var CreatePlanItemExpiryRequestBody$outboundSchema = z27.object({
|
|
|
13752
13850
|
duration: CreatePlanItemDurationRequestBody$outboundSchema,
|
|
13753
13851
|
length: z27.number()
|
|
13754
13852
|
});
|
|
13853
|
+
var CreatePlanCreditSchemaItemRequestBody3$outboundSchema = z27.pipe(
|
|
13854
|
+
z27.object({
|
|
13855
|
+
meteredFeatureId: z27.string(),
|
|
13856
|
+
excluded: z27.literal(true)
|
|
13857
|
+
}),
|
|
13858
|
+
z27.transform((v) => {
|
|
13859
|
+
return remap(v, {
|
|
13860
|
+
meteredFeatureId: "metered_feature_id"
|
|
13861
|
+
});
|
|
13862
|
+
})
|
|
13863
|
+
);
|
|
13755
13864
|
var CreatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13756
13865
|
var CreatePlanDimensionsItemRequestBody4$outboundSchema = z27.pipe(
|
|
13757
13866
|
z27.object({
|
|
@@ -13961,7 +14070,8 @@ var CreatePlanCreditSchemaItemRequestBody1$outboundSchema = z27.pipe(
|
|
|
13961
14070
|
);
|
|
13962
14071
|
var CreatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13963
14072
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
13964
|
-
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
14073
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
14074
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
13965
14075
|
]);
|
|
13966
14076
|
var CreatePlanItemProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13967
14077
|
markup: z27.number()
|
|
@@ -14005,7 +14115,8 @@ var CreatePlanItemFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14005
14115
|
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
14006
14116
|
z27.lazy(
|
|
14007
14117
|
() => CreatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
14008
|
-
)
|
|
14118
|
+
),
|
|
14119
|
+
z27.lazy(() => CreatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
14009
14120
|
]))),
|
|
14010
14121
|
markups: z27.optional(z27.lazy(
|
|
14011
14122
|
() => CreatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -14205,6 +14316,17 @@ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
|
14205
14316
|
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
14206
14317
|
length: z27.number()
|
|
14207
14318
|
});
|
|
14319
|
+
var CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
14320
|
+
z27.object({
|
|
14321
|
+
meteredFeatureId: z27.string(),
|
|
14322
|
+
excluded: z27.literal(true)
|
|
14323
|
+
}),
|
|
14324
|
+
z27.transform((v) => {
|
|
14325
|
+
return remap(v, {
|
|
14326
|
+
meteredFeatureId: "metered_feature_id"
|
|
14327
|
+
});
|
|
14328
|
+
})
|
|
14329
|
+
);
|
|
14208
14330
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
14209
14331
|
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
14210
14332
|
z27.object({
|
|
@@ -14421,7 +14543,8 @@ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
|
14421
14543
|
);
|
|
14422
14544
|
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
14423
14545
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14424
|
-
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
14546
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
14547
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14425
14548
|
]);
|
|
14426
14549
|
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
14427
14550
|
markup: z27.number()
|
|
@@ -14465,7 +14588,8 @@ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
|
14465
14588
|
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
14466
14589
|
z27.lazy(
|
|
14467
14590
|
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
14468
|
-
)
|
|
14591
|
+
),
|
|
14592
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
14469
14593
|
]))),
|
|
14470
14594
|
markups: z27.optional(z27.lazy(
|
|
14471
14595
|
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -14913,24 +15037,11 @@ var CreatePlanItemAdditionalCurrencyResponse$inboundSchema = z27.object({
|
|
|
14913
15037
|
currency: string5(),
|
|
14914
15038
|
amount: number2()
|
|
14915
15039
|
});
|
|
14916
|
-
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
14917
|
-
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z27.pipe(
|
|
14918
|
-
z27.object({
|
|
14919
|
-
currency: string5(),
|
|
14920
|
-
amount: optional3(number2()),
|
|
14921
|
-
flat_amount: optional3(number2())
|
|
14922
|
-
}),
|
|
14923
|
-
z27.transform((v) => {
|
|
14924
|
-
return remap(v, {
|
|
14925
|
-
"flat_amount": "flatAmount"
|
|
14926
|
-
});
|
|
14927
|
-
})
|
|
14928
|
-
);
|
|
14929
15040
|
|
|
14930
15041
|
// ../sdk/src/models/create-plan-response.ts
|
|
14931
15042
|
import * as z29 from "zod/v4-mini";
|
|
14932
15043
|
|
|
14933
|
-
// ../sdk/src/models/create-plan-upsert-license-
|
|
15044
|
+
// ../sdk/src/models/create-plan-upsert-license-add-item-price-interval.ts
|
|
14934
15045
|
import * as z28 from "zod/v4-mini";
|
|
14935
15046
|
var CreatePlanItemTierBehaviorResponse = {
|
|
14936
15047
|
Graduated: "graduated",
|
|
@@ -15185,31 +15296,27 @@ var CreatePlanUpsertLicenseAddItemPriceInterval = {
|
|
|
15185
15296
|
SemiAnnual: "semi_annual",
|
|
15186
15297
|
Year: "year"
|
|
15187
15298
|
};
|
|
15188
|
-
var
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
|
|
15198
|
-
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
15202
|
-
None: "none",
|
|
15203
|
-
NoProrations: "no_prorations"
|
|
15204
|
-
};
|
|
15299
|
+
var CreatePlanPriceItemToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
15300
|
+
var CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema = z28.pipe(
|
|
15301
|
+
z28.object({
|
|
15302
|
+
currency: string5(),
|
|
15303
|
+
amount: optional3(number2()),
|
|
15304
|
+
flat_amount: optional3(number2())
|
|
15305
|
+
}),
|
|
15306
|
+
z28.transform((v) => {
|
|
15307
|
+
return remap(v, {
|
|
15308
|
+
"flat_amount": "flatAmount"
|
|
15309
|
+
});
|
|
15310
|
+
})
|
|
15311
|
+
);
|
|
15205
15312
|
var CreatePlanPriceItemTierResponse$inboundSchema = z28.pipe(
|
|
15206
15313
|
z28.object({
|
|
15207
|
-
to:
|
|
15314
|
+
to: smartUnion([number2(), string5()]),
|
|
15208
15315
|
amount: number2(),
|
|
15209
15316
|
flat_amount: optional3(number2()),
|
|
15210
|
-
additional_currencies: optional3(
|
|
15211
|
-
|
|
15212
|
-
)
|
|
15317
|
+
additional_currencies: optional3(z28.array(z28.lazy(
|
|
15318
|
+
() => CreatePlanItemTierAdditionalCurrencyResponse$inboundSchema
|
|
15319
|
+
)))
|
|
15213
15320
|
}),
|
|
15214
15321
|
z28.transform((v) => {
|
|
15215
15322
|
return remap(v, {
|
|
@@ -15301,6 +15408,17 @@ var CreatePlanItemExpiryResponse$inboundSchema = z28.object({
|
|
|
15301
15408
|
duration: CreatePlanItemDurationResponse$inboundSchema,
|
|
15302
15409
|
length: number2()
|
|
15303
15410
|
});
|
|
15411
|
+
var CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z28.pipe(
|
|
15412
|
+
z28.object({
|
|
15413
|
+
metered_feature_id: string5(),
|
|
15414
|
+
excluded: literal3(true)
|
|
15415
|
+
}),
|
|
15416
|
+
z28.transform((v) => {
|
|
15417
|
+
return remap(v, {
|
|
15418
|
+
"metered_feature_id": "meteredFeatureId"
|
|
15419
|
+
});
|
|
15420
|
+
})
|
|
15421
|
+
);
|
|
15304
15422
|
var CreatePlanDimensionsItemResponse4$inboundSchema = z28.pipe(
|
|
15305
15423
|
z28.object({
|
|
15306
15424
|
match: z28.record(z28.string(), string5()),
|
|
@@ -15488,6 +15606,9 @@ var CreatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
15488
15606
|
),
|
|
15489
15607
|
z28.lazy(
|
|
15490
15608
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15609
|
+
),
|
|
15610
|
+
z28.lazy(
|
|
15611
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15491
15612
|
)
|
|
15492
15613
|
]);
|
|
15493
15614
|
var CreatePlanItemProviderMarkupsResponse$inboundSchema = z28.object({
|
|
@@ -15534,6 +15655,9 @@ var CreatePlanItemFeatureOverrideResponse$inboundSchema = z28.pipe(
|
|
|
15534
15655
|
),
|
|
15535
15656
|
z28.lazy(
|
|
15536
15657
|
() => CreatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
15658
|
+
),
|
|
15659
|
+
z28.lazy(
|
|
15660
|
+
() => CreatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
15537
15661
|
)
|
|
15538
15662
|
]))),
|
|
15539
15663
|
markups: optional3(z28.lazy(
|
|
@@ -15946,6 +16070,17 @@ var CreatePlanVariantDetailsExpiry$inboundSchema = z28.object({
|
|
|
15946
16070
|
duration: CreatePlanVariantDetailsDuration$inboundSchema,
|
|
15947
16071
|
length: number2()
|
|
15948
16072
|
});
|
|
16073
|
+
var CreatePlanCreditSchemaVariantDetails3$inboundSchema = z28.pipe(
|
|
16074
|
+
z28.object({
|
|
16075
|
+
metered_feature_id: string5(),
|
|
16076
|
+
excluded: literal3(true)
|
|
16077
|
+
}),
|
|
16078
|
+
z28.transform((v) => {
|
|
16079
|
+
return remap(v, {
|
|
16080
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16081
|
+
});
|
|
16082
|
+
})
|
|
16083
|
+
);
|
|
15949
16084
|
var CreatePlanDimensionsVariantDetails4$inboundSchema = z28.pipe(
|
|
15950
16085
|
z28.object({
|
|
15951
16086
|
match: z28.record(z28.string(), string5()),
|
|
@@ -16135,7 +16270,8 @@ var CreatePlanCreditSchemaVariantDetails1$inboundSchema = z28.pipe(
|
|
|
16135
16270
|
);
|
|
16136
16271
|
var CreatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
16137
16272
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16138
|
-
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
16273
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
16274
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16139
16275
|
]);
|
|
16140
16276
|
var CreatePlanVariantDetailsProviderMarkups$inboundSchema = z28.object({
|
|
16141
16277
|
markup: number2()
|
|
@@ -16179,7 +16315,8 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
16179
16315
|
z28.lazy(() => CreatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
16180
16316
|
z28.lazy(
|
|
16181
16317
|
() => CreatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
16182
|
-
)
|
|
16318
|
+
),
|
|
16319
|
+
z28.lazy(() => CreatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
16183
16320
|
]))),
|
|
16184
16321
|
markups: optional3(z28.lazy(
|
|
16185
16322
|
() => CreatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -16485,40 +16622,25 @@ var CreatePlanUpsertLicensePriceTier$inboundSchema = z28.pipe(
|
|
|
16485
16622
|
);
|
|
16486
16623
|
var CreatePlanUpsertLicenseTierBehavior$inboundSchema = inboundSchema(CreatePlanUpsertLicenseTierBehavior);
|
|
16487
16624
|
var CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemPriceInterval);
|
|
16488
|
-
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16489
|
-
var CreatePlanUpsertLicensePrice$inboundSchema = z28.pipe(
|
|
16490
|
-
z28.object({
|
|
16491
|
-
amount: optional3(number2()),
|
|
16492
|
-
additional_currencies: optional3(z28.array(z28.lazy(
|
|
16493
|
-
() => CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
16494
|
-
))),
|
|
16495
|
-
tiers: optional3(z28.array(z28.lazy(
|
|
16496
|
-
() => CreatePlanUpsertLicensePriceTier$inboundSchema
|
|
16497
|
-
))),
|
|
16498
|
-
tier_behavior: optional3(
|
|
16499
|
-
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16500
|
-
),
|
|
16501
|
-
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16502
|
-
interval_count: z28._default(number2(), 1),
|
|
16503
|
-
billing_units: z28._default(number2(), 1),
|
|
16504
|
-
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16505
|
-
max_purchase: z28.optional(z28.nullable(number2()))
|
|
16506
|
-
}),
|
|
16507
|
-
z28.transform((v) => {
|
|
16508
|
-
return remap(v, {
|
|
16509
|
-
"additional_currencies": "additionalCurrencies",
|
|
16510
|
-
"tier_behavior": "tierBehavior",
|
|
16511
|
-
"interval_count": "intervalCount",
|
|
16512
|
-
"billing_units": "billingUnits",
|
|
16513
|
-
"billing_method": "billingMethod",
|
|
16514
|
-
"max_purchase": "maxPurchase"
|
|
16515
|
-
});
|
|
16516
|
-
})
|
|
16517
|
-
);
|
|
16518
|
-
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16519
|
-
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16520
16625
|
|
|
16521
16626
|
// ../sdk/src/models/create-plan-response.ts
|
|
16627
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod = {
|
|
16628
|
+
Prepaid: "prepaid",
|
|
16629
|
+
UsageBased: "usage_based"
|
|
16630
|
+
};
|
|
16631
|
+
var CreatePlanUpsertLicenseOnIncrease = {
|
|
16632
|
+
BillImmediately: "bill_immediately",
|
|
16633
|
+
ProrateImmediately: "prorate_immediately",
|
|
16634
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16635
|
+
BillNextCycle: "bill_next_cycle"
|
|
16636
|
+
};
|
|
16637
|
+
var CreatePlanUpsertLicenseOnDecrease = {
|
|
16638
|
+
Prorate: "prorate",
|
|
16639
|
+
ProrateImmediately: "prorate_immediately",
|
|
16640
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
16641
|
+
None: "none",
|
|
16642
|
+
NoProrations: "no_prorations"
|
|
16643
|
+
};
|
|
16522
16644
|
var CreatePlanUpsertLicenseExpiryDurationType = {
|
|
16523
16645
|
Month: "month",
|
|
16524
16646
|
Forever: "forever"
|
|
@@ -16651,6 +16773,38 @@ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
16651
16773
|
SemiAnnual: "semi_annual",
|
|
16652
16774
|
Year: "year"
|
|
16653
16775
|
};
|
|
16776
|
+
var CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanUpsertLicenseAddItemBillingMethod);
|
|
16777
|
+
var CreatePlanUpsertLicensePrice$inboundSchema = z29.pipe(
|
|
16778
|
+
z29.object({
|
|
16779
|
+
amount: optional3(number2()),
|
|
16780
|
+
additional_currencies: optional3(
|
|
16781
|
+
z29.array(CreatePlanUpsertLicenseAddItemAdditionalCurrency$inboundSchema)
|
|
16782
|
+
),
|
|
16783
|
+
tiers: optional3(
|
|
16784
|
+
z29.array(CreatePlanUpsertLicensePriceTier$inboundSchema)
|
|
16785
|
+
),
|
|
16786
|
+
tier_behavior: optional3(
|
|
16787
|
+
CreatePlanUpsertLicenseTierBehavior$inboundSchema
|
|
16788
|
+
),
|
|
16789
|
+
interval: CreatePlanUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
16790
|
+
interval_count: z29._default(number2(), 1),
|
|
16791
|
+
billing_units: z29._default(number2(), 1),
|
|
16792
|
+
billing_method: CreatePlanUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
16793
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16794
|
+
}),
|
|
16795
|
+
z29.transform((v) => {
|
|
16796
|
+
return remap(v, {
|
|
16797
|
+
"additional_currencies": "additionalCurrencies",
|
|
16798
|
+
"tier_behavior": "tierBehavior",
|
|
16799
|
+
"interval_count": "intervalCount",
|
|
16800
|
+
"billing_units": "billingUnits",
|
|
16801
|
+
"billing_method": "billingMethod",
|
|
16802
|
+
"max_purchase": "maxPurchase"
|
|
16803
|
+
});
|
|
16804
|
+
})
|
|
16805
|
+
);
|
|
16806
|
+
var CreatePlanUpsertLicenseOnIncrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnIncrease);
|
|
16807
|
+
var CreatePlanUpsertLicenseOnDecrease$inboundSchema = inboundSchema(CreatePlanUpsertLicenseOnDecrease);
|
|
16654
16808
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
16655
16809
|
z29.object({
|
|
16656
16810
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16684,6 +16838,17 @@ var CreatePlanUpsertLicenseExpiry$inboundSchema = z29.object({
|
|
|
16684
16838
|
duration: CreatePlanUpsertLicenseDuration$inboundSchema,
|
|
16685
16839
|
length: number2()
|
|
16686
16840
|
});
|
|
16841
|
+
var CreatePlanCreditSchemaUpsertLicense3$inboundSchema = z29.pipe(
|
|
16842
|
+
z29.object({
|
|
16843
|
+
metered_feature_id: string5(),
|
|
16844
|
+
excluded: literal3(true)
|
|
16845
|
+
}),
|
|
16846
|
+
z29.transform((v) => {
|
|
16847
|
+
return remap(v, {
|
|
16848
|
+
"metered_feature_id": "meteredFeatureId"
|
|
16849
|
+
});
|
|
16850
|
+
})
|
|
16851
|
+
);
|
|
16687
16852
|
var CreatePlanDimensionsUpsertLicense4$inboundSchema = z29.pipe(
|
|
16688
16853
|
z29.object({
|
|
16689
16854
|
match: z29.record(z29.string(), string5()),
|
|
@@ -16870,7 +17035,8 @@ var CreatePlanCreditSchemaUpsertLicense1$inboundSchema = z29.pipe(
|
|
|
16870
17035
|
var CreatePlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion(
|
|
16871
17036
|
[
|
|
16872
17037
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16873
|
-
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
17038
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
17039
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16874
17040
|
]
|
|
16875
17041
|
);
|
|
16876
17042
|
var CreatePlanUpsertLicenseProviderMarkups$inboundSchema = z29.object({
|
|
@@ -16915,7 +17081,8 @@ var CreatePlanUpsertLicenseFeatureOverride$inboundSchema = z29.pipe(
|
|
|
16915
17081
|
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
16916
17082
|
z29.lazy(
|
|
16917
17083
|
() => CreatePlanCreditSchemaUpsertLicense2$inboundSchema
|
|
16918
|
-
)
|
|
17084
|
+
),
|
|
17085
|
+
z29.lazy(() => CreatePlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
16919
17086
|
]))),
|
|
16920
17087
|
markups: optional3(z29.lazy(
|
|
16921
17088
|
() => CreatePlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -16937,7 +17104,9 @@ var CreatePlanUpsertLicensePlanItem$inboundSchema = z29.pipe(
|
|
|
16937
17104
|
unlimited: optional3(boolean2()),
|
|
16938
17105
|
pooled: z29._default(boolean2(), false),
|
|
16939
17106
|
reset: optional3(CreatePlanUpsertLicenseReset$inboundSchema),
|
|
16940
|
-
price: optional3(
|
|
17107
|
+
price: optional3(
|
|
17108
|
+
z29.lazy(() => CreatePlanUpsertLicensePrice$inboundSchema)
|
|
17109
|
+
),
|
|
16941
17110
|
proration: optional3(
|
|
16942
17111
|
z29.lazy(() => CreatePlanUpsertLicenseProration$inboundSchema)
|
|
16943
17112
|
),
|
|
@@ -17221,6 +17390,17 @@ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
|
17221
17390
|
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
17222
17391
|
length: number2()
|
|
17223
17392
|
});
|
|
17393
|
+
var CreatePlanCreditSchemaLicenseResponse3$inboundSchema = z29.pipe(
|
|
17394
|
+
z29.object({
|
|
17395
|
+
metered_feature_id: string5(),
|
|
17396
|
+
excluded: literal3(true)
|
|
17397
|
+
}),
|
|
17398
|
+
z29.transform((v) => {
|
|
17399
|
+
return remap(v, {
|
|
17400
|
+
"metered_feature_id": "meteredFeatureId"
|
|
17401
|
+
});
|
|
17402
|
+
})
|
|
17403
|
+
);
|
|
17224
17404
|
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
17225
17405
|
z29.object({
|
|
17226
17406
|
match: z29.record(z29.string(), string5()),
|
|
@@ -17406,7 +17586,8 @@ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
|
17406
17586
|
);
|
|
17407
17587
|
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
17408
17588
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17409
|
-
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
17589
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
17590
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17410
17591
|
]);
|
|
17411
17592
|
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
17412
17593
|
markup: number2()
|
|
@@ -17450,7 +17631,8 @@ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
|
17450
17631
|
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
17451
17632
|
z29.lazy(
|
|
17452
17633
|
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
17453
|
-
)
|
|
17634
|
+
),
|
|
17635
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
17454
17636
|
]))),
|
|
17455
17637
|
markups: optional3(z29.lazy(
|
|
17456
17638
|
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -18002,10 +18184,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
18002
18184
|
// ../sdk/src/models/create-schedule-response.ts
|
|
18003
18185
|
import * as z36 from "zod/v4-mini";
|
|
18004
18186
|
|
|
18005
|
-
// ../sdk/src/models/phase-add-item-
|
|
18187
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
18006
18188
|
import * as z35 from "zod/v4-mini";
|
|
18007
18189
|
|
|
18008
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
18190
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-add-item-billing-method.ts
|
|
18009
18191
|
import * as z34 from "zod/v4-mini";
|
|
18010
18192
|
var CreateScheduleFreeTrialDurationType = {
|
|
18011
18193
|
Day: "day",
|
|
@@ -18256,12 +18438,6 @@ var UnscheduledPlanUpsertLicenseAddItemBillingMethod = {
|
|
|
18256
18438
|
Prepaid: "prepaid",
|
|
18257
18439
|
UsageBased: "usage_based"
|
|
18258
18440
|
};
|
|
18259
|
-
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
18260
|
-
BillImmediately: "bill_immediately",
|
|
18261
|
-
ProrateImmediately: "prorate_immediately",
|
|
18262
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
18263
|
-
BillNextCycle: "bill_next_cycle"
|
|
18264
|
-
};
|
|
18265
18441
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
18266
18442
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
18267
18443
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -18482,6 +18658,17 @@ var UnscheduledPlanItemExpiry$outboundSchema = z34.object({
|
|
|
18482
18658
|
duration: UnscheduledPlanItemDuration$outboundSchema,
|
|
18483
18659
|
length: z34.number()
|
|
18484
18660
|
});
|
|
18661
|
+
var CreditSchemaUnscheduledPlanItem3$outboundSchema = z34.pipe(
|
|
18662
|
+
z34.object({
|
|
18663
|
+
meteredFeatureId: z34.string(),
|
|
18664
|
+
excluded: z34.literal(true)
|
|
18665
|
+
}),
|
|
18666
|
+
z34.transform((v) => {
|
|
18667
|
+
return remap(v, {
|
|
18668
|
+
meteredFeatureId: "metered_feature_id"
|
|
18669
|
+
});
|
|
18670
|
+
})
|
|
18671
|
+
);
|
|
18485
18672
|
var DimensionsUnscheduledPlanItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18486
18673
|
var DimensionsUnscheduledPlanItem4$outboundSchema = z34.pipe(
|
|
18487
18674
|
z34.object({
|
|
@@ -18684,7 +18871,8 @@ var CreditSchemaUnscheduledPlanItem1$outboundSchema = z34.pipe(
|
|
|
18684
18871
|
);
|
|
18685
18872
|
var UnscheduledPlanItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
18686
18873
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18687
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema)
|
|
18874
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem2$outboundSchema),
|
|
18875
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18688
18876
|
]);
|
|
18689
18877
|
var UnscheduledPlanItemProviderMarkups$outboundSchema = z34.object({
|
|
18690
18878
|
markup: z34.number()
|
|
@@ -18728,7 +18916,8 @@ var UnscheduledPlanItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
18728
18916
|
z34.lazy(() => CreditSchemaUnscheduledPlanItem1$outboundSchema),
|
|
18729
18917
|
z34.lazy(
|
|
18730
18918
|
() => CreditSchemaUnscheduledPlanItem2$outboundSchema
|
|
18731
|
-
)
|
|
18919
|
+
),
|
|
18920
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanItem3$outboundSchema)
|
|
18732
18921
|
]))),
|
|
18733
18922
|
markups: z34.optional(z34.lazy(
|
|
18734
18923
|
() => UnscheduledPlanItemMarkups$outboundSchema
|
|
@@ -18887,6 +19076,17 @@ var UnscheduledPlanAddItemExpiry$outboundSchema = z34.object({
|
|
|
18887
19076
|
duration: UnscheduledPlanAddItemDuration$outboundSchema,
|
|
18888
19077
|
length: z34.number()
|
|
18889
19078
|
});
|
|
19079
|
+
var CreditSchemaUnscheduledPlanAddItem3$outboundSchema = z34.pipe(
|
|
19080
|
+
z34.object({
|
|
19081
|
+
meteredFeatureId: z34.string(),
|
|
19082
|
+
excluded: z34.literal(true)
|
|
19083
|
+
}),
|
|
19084
|
+
z34.transform((v) => {
|
|
19085
|
+
return remap(v, {
|
|
19086
|
+
meteredFeatureId: "metered_feature_id"
|
|
19087
|
+
});
|
|
19088
|
+
})
|
|
19089
|
+
);
|
|
18890
19090
|
var DimensionsUnscheduledPlanAddItemMatch4$outboundSchema = smartUnion([z34.string(), z34.number(), z34.boolean()]);
|
|
18891
19091
|
var DimensionsUnscheduledPlanAddItem4$outboundSchema = z34.pipe(
|
|
18892
19092
|
z34.object({
|
|
@@ -19093,7 +19293,8 @@ var CreditSchemaUnscheduledPlanAddItem1$outboundSchema = z34.pipe(
|
|
|
19093
19293
|
);
|
|
19094
19294
|
var UnscheduledPlanAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19095
19295
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19096
|
-
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema)
|
|
19296
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema),
|
|
19297
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19097
19298
|
]);
|
|
19098
19299
|
var UnscheduledPlanAddItemProviderMarkups$outboundSchema = z34.object({
|
|
19099
19300
|
markup: z34.number()
|
|
@@ -19137,7 +19338,8 @@ var UnscheduledPlanAddItemFeatureOverride$outboundSchema = z34.pipe(
|
|
|
19137
19338
|
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem1$outboundSchema),
|
|
19138
19339
|
z34.lazy(
|
|
19139
19340
|
() => CreditSchemaUnscheduledPlanAddItem2$outboundSchema
|
|
19140
|
-
)
|
|
19341
|
+
),
|
|
19342
|
+
z34.lazy(() => CreditSchemaUnscheduledPlanAddItem3$outboundSchema)
|
|
19141
19343
|
]))),
|
|
19142
19344
|
markups: z34.optional(z34.lazy(
|
|
19143
19345
|
() => UnscheduledPlanAddItemMarkups$outboundSchema
|
|
@@ -19441,40 +19643,14 @@ var UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema = z34.enum(
|
|
|
19441
19643
|
);
|
|
19442
19644
|
var UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemPriceInterval);
|
|
19443
19645
|
var UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema = z34.enum(UnscheduledPlanUpsertLicenseAddItemBillingMethod);
|
|
19444
|
-
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
19445
|
-
z34.object({
|
|
19446
|
-
amount: z34.optional(z34.number()),
|
|
19447
|
-
additionalCurrencies: z34.optional(z34.array(z34.lazy(
|
|
19448
|
-
() => UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19449
|
-
))),
|
|
19450
|
-
tiers: z34.optional(z34.array(z34.lazy(
|
|
19451
|
-
() => UnscheduledPlanUpsertLicensePriceTier$outboundSchema
|
|
19452
|
-
))),
|
|
19453
|
-
tierBehavior: z34.optional(
|
|
19454
|
-
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19455
|
-
),
|
|
19456
|
-
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19457
|
-
intervalCount: z34._default(z34.number(), 1),
|
|
19458
|
-
billingUnits: z34._default(z34.number(), 1),
|
|
19459
|
-
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19460
|
-
maxPurchase: z34.optional(z34.nullable(z34.number()))
|
|
19461
|
-
}),
|
|
19462
|
-
z34.transform((v) => {
|
|
19463
|
-
return remap(v, {
|
|
19464
|
-
additionalCurrencies: "additional_currencies",
|
|
19465
|
-
tierBehavior: "tier_behavior",
|
|
19466
|
-
intervalCount: "interval_count",
|
|
19467
|
-
billingUnits: "billing_units",
|
|
19468
|
-
billingMethod: "billing_method",
|
|
19469
|
-
maxPurchase: "max_purchase"
|
|
19470
|
-
});
|
|
19471
|
-
})
|
|
19472
|
-
);
|
|
19473
|
-
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19474
|
-
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19475
|
-
);
|
|
19476
19646
|
|
|
19477
|
-
// ../sdk/src/models/phase-add-item-
|
|
19647
|
+
// ../sdk/src/models/phase-add-item-feature-override-to-union-2.ts
|
|
19648
|
+
var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
19649
|
+
BillImmediately: "bill_immediately",
|
|
19650
|
+
ProrateImmediately: "prorate_immediately",
|
|
19651
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19652
|
+
BillNextCycle: "bill_next_cycle"
|
|
19653
|
+
};
|
|
19478
19654
|
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19479
19655
|
Prorate: "prorate",
|
|
19480
19656
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -19654,6 +19830,40 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19654
19830
|
var PhaseToAddItemEnum = {
|
|
19655
19831
|
Inf: "inf"
|
|
19656
19832
|
};
|
|
19833
|
+
var UnscheduledPlanUpsertLicensePrice$outboundSchema = z35.pipe(
|
|
19834
|
+
z35.object({
|
|
19835
|
+
amount: z35.optional(z35.number()),
|
|
19836
|
+
additionalCurrencies: z35.optional(
|
|
19837
|
+
z35.array(
|
|
19838
|
+
UnscheduledPlanUpsertLicenseAddItemAdditionalCurrency$outboundSchema
|
|
19839
|
+
)
|
|
19840
|
+
),
|
|
19841
|
+
tiers: z35.optional(
|
|
19842
|
+
z35.array(UnscheduledPlanUpsertLicensePriceTier$outboundSchema)
|
|
19843
|
+
),
|
|
19844
|
+
tierBehavior: z35.optional(
|
|
19845
|
+
UnscheduledPlanUpsertLicenseTierBehavior$outboundSchema
|
|
19846
|
+
),
|
|
19847
|
+
interval: UnscheduledPlanUpsertLicenseAddItemPriceInterval$outboundSchema,
|
|
19848
|
+
intervalCount: z35._default(z35.number(), 1),
|
|
19849
|
+
billingUnits: z35._default(z35.number(), 1),
|
|
19850
|
+
billingMethod: UnscheduledPlanUpsertLicenseAddItemBillingMethod$outboundSchema,
|
|
19851
|
+
maxPurchase: z35.optional(z35.nullable(z35.number()))
|
|
19852
|
+
}),
|
|
19853
|
+
z35.transform((v) => {
|
|
19854
|
+
return remap(v, {
|
|
19855
|
+
additionalCurrencies: "additional_currencies",
|
|
19856
|
+
tierBehavior: "tier_behavior",
|
|
19857
|
+
intervalCount: "interval_count",
|
|
19858
|
+
billingUnits: "billing_units",
|
|
19859
|
+
billingMethod: "billing_method",
|
|
19860
|
+
maxPurchase: "max_purchase"
|
|
19861
|
+
});
|
|
19862
|
+
})
|
|
19863
|
+
);
|
|
19864
|
+
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z35.enum(
|
|
19865
|
+
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19866
|
+
);
|
|
19657
19867
|
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19658
19868
|
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19659
19869
|
);
|
|
@@ -19692,6 +19902,17 @@ var UnscheduledPlanUpsertLicenseExpiry$outboundSchema = z35.object({
|
|
|
19692
19902
|
duration: UnscheduledPlanUpsertLicenseDuration$outboundSchema,
|
|
19693
19903
|
length: z35.number()
|
|
19694
19904
|
});
|
|
19905
|
+
var CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema = z35.pipe(
|
|
19906
|
+
z35.object({
|
|
19907
|
+
meteredFeatureId: z35.string(),
|
|
19908
|
+
excluded: z35.literal(true)
|
|
19909
|
+
}),
|
|
19910
|
+
z35.transform((v) => {
|
|
19911
|
+
return remap(v, {
|
|
19912
|
+
meteredFeatureId: "metered_feature_id"
|
|
19913
|
+
});
|
|
19914
|
+
})
|
|
19915
|
+
);
|
|
19695
19916
|
var DimensionsUnscheduledPlanUpsertLicenseMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
19696
19917
|
var DimensionsUnscheduledPlanUpsertLicense4$outboundSchema = z35.pipe(
|
|
19697
19918
|
z35.object({
|
|
@@ -19908,7 +20129,8 @@ var CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = z35.pipe(
|
|
|
19908
20129
|
);
|
|
19909
20130
|
var UnscheduledPlanUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
19910
20131
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19911
|
-
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema)
|
|
20132
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema),
|
|
20133
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19912
20134
|
]);
|
|
19913
20135
|
var UnscheduledPlanUpsertLicenseProviderMarkups$outboundSchema = z35.object({
|
|
19914
20136
|
markup: z35.number()
|
|
@@ -19952,7 +20174,8 @@ var UnscheduledPlanUpsertLicenseFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19952
20174
|
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema),
|
|
19953
20175
|
z35.lazy(
|
|
19954
20176
|
() => CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema
|
|
19955
|
-
)
|
|
20177
|
+
),
|
|
20178
|
+
z35.lazy(() => CreditSchemaUnscheduledPlanUpsertLicense3$outboundSchema)
|
|
19956
20179
|
]))),
|
|
19957
20180
|
markups: z35.optional(z35.lazy(
|
|
19958
20181
|
() => UnscheduledPlanUpsertLicenseMarkups$outboundSchema
|
|
@@ -19974,7 +20197,9 @@ var UnscheduledPlanUpsertLicensePlanItem$outboundSchema = z35.pipe(
|
|
|
19974
20197
|
unlimited: z35.optional(z35.boolean()),
|
|
19975
20198
|
pooled: z35._default(z35.boolean(), false),
|
|
19976
20199
|
reset: z35.optional(UnscheduledPlanUpsertLicenseReset$outboundSchema),
|
|
19977
|
-
price: z35.optional(
|
|
20200
|
+
price: z35.optional(
|
|
20201
|
+
z35.lazy(() => UnscheduledPlanUpsertLicensePrice$outboundSchema)
|
|
20202
|
+
),
|
|
19978
20203
|
proration: z35.optional(
|
|
19979
20204
|
z35.lazy(() => UnscheduledPlanUpsertLicenseProration$outboundSchema)
|
|
19980
20205
|
),
|
|
@@ -20299,6 +20524,17 @@ var PhaseItemExpiry2$outboundSchema = z35.object({
|
|
|
20299
20524
|
duration: PhaseItemDuration2$outboundSchema,
|
|
20300
20525
|
length: z35.number()
|
|
20301
20526
|
});
|
|
20527
|
+
var PhaseCreditSchemaItem3$outboundSchema = z35.pipe(
|
|
20528
|
+
z35.object({
|
|
20529
|
+
meteredFeatureId: z35.string(),
|
|
20530
|
+
excluded: z35.literal(true)
|
|
20531
|
+
}),
|
|
20532
|
+
z35.transform((v) => {
|
|
20533
|
+
return remap(v, {
|
|
20534
|
+
meteredFeatureId: "metered_feature_id"
|
|
20535
|
+
});
|
|
20536
|
+
})
|
|
20537
|
+
);
|
|
20302
20538
|
var PhaseDimensionsItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20303
20539
|
var PhaseDimensionsItem4$outboundSchema = z35.pipe(
|
|
20304
20540
|
z35.object({
|
|
@@ -20483,7 +20719,8 @@ var PhaseCreditSchemaItem1$outboundSchema = z35.pipe(
|
|
|
20483
20719
|
);
|
|
20484
20720
|
var PhaseItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20485
20721
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20486
|
-
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema)
|
|
20722
|
+
z35.lazy(() => PhaseCreditSchemaItem2$outboundSchema),
|
|
20723
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20487
20724
|
]);
|
|
20488
20725
|
var PhaseItemProviderMarkups2$outboundSchema = z35.object({
|
|
20489
20726
|
markup: z35.number()
|
|
@@ -20527,7 +20764,8 @@ var PhaseItemFeatureOverride2$outboundSchema = z35.pipe(
|
|
|
20527
20764
|
z35.lazy(() => PhaseCreditSchemaItem1$outboundSchema),
|
|
20528
20765
|
z35.lazy(
|
|
20529
20766
|
() => PhaseCreditSchemaItem2$outboundSchema
|
|
20530
|
-
)
|
|
20767
|
+
),
|
|
20768
|
+
z35.lazy(() => PhaseCreditSchemaItem3$outboundSchema)
|
|
20531
20769
|
]))),
|
|
20532
20770
|
markups: z35.optional(z35.lazy(
|
|
20533
20771
|
() => PhaseItemMarkups2$outboundSchema
|
|
@@ -20678,6 +20916,17 @@ var PhaseAddItemExpiry2$outboundSchema = z35.object({
|
|
|
20678
20916
|
duration: PhaseAddItemDuration2$outboundSchema,
|
|
20679
20917
|
length: z35.number()
|
|
20680
20918
|
});
|
|
20919
|
+
var PhaseCreditSchemaAddItem3$outboundSchema = z35.pipe(
|
|
20920
|
+
z35.object({
|
|
20921
|
+
meteredFeatureId: z35.string(),
|
|
20922
|
+
excluded: z35.literal(true)
|
|
20923
|
+
}),
|
|
20924
|
+
z35.transform((v) => {
|
|
20925
|
+
return remap(v, {
|
|
20926
|
+
meteredFeatureId: "metered_feature_id"
|
|
20927
|
+
});
|
|
20928
|
+
})
|
|
20929
|
+
);
|
|
20681
20930
|
var PhaseDimensionsAddItemMatch4$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
|
|
20682
20931
|
var PhaseDimensionsAddItem4$outboundSchema = z35.pipe(
|
|
20683
20932
|
z35.object({
|
|
@@ -20823,65 +21072,6 @@ var PhaseAddItemMultipliers3$outboundSchema = z35.object({
|
|
|
20823
21072
|
});
|
|
20824
21073
|
var PhaseToAddItemEnum$outboundSchema = z35.enum(PhaseToAddItemEnum);
|
|
20825
21074
|
var PhaseAddItemFeatureOverrideToUnion2$outboundSchema = smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]);
|
|
20826
|
-
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z35.pipe(
|
|
20827
|
-
z35.object({
|
|
20828
|
-
to: smartUnion([z35.number(), PhaseToAddItemEnum$outboundSchema]),
|
|
20829
|
-
creditCost: z35.number()
|
|
20830
|
-
}),
|
|
20831
|
-
z35.transform((v) => {
|
|
20832
|
-
return remap(v, {
|
|
20833
|
-
creditCost: "credit_cost"
|
|
20834
|
-
});
|
|
20835
|
-
})
|
|
20836
|
-
);
|
|
20837
|
-
var PhaseCreditSchemaAddItem1$outboundSchema = z35.pipe(
|
|
20838
|
-
z35.object({
|
|
20839
|
-
meteredFeatureId: z35.string(),
|
|
20840
|
-
billingUnits: z35.optional(z35.number()),
|
|
20841
|
-
dimensions: z35.optional(z35.record(
|
|
20842
|
-
z35.string(),
|
|
20843
|
-
smartUnion([
|
|
20844
|
-
z35.lazy(() => PhaseDimensionsAddItem1$outboundSchema),
|
|
20845
|
-
z35.lazy(() => PhaseDimensionsAddItem2$outboundSchema)
|
|
20846
|
-
])
|
|
20847
|
-
)),
|
|
20848
|
-
multipliers: z35.optional(z35.record(
|
|
20849
|
-
z35.string(),
|
|
20850
|
-
z35.lazy(() => PhaseAddItemMultipliers3$outboundSchema)
|
|
20851
|
-
)),
|
|
20852
|
-
tierBehavior: z35.literal("graduated"),
|
|
20853
|
-
tiers: z35.array(
|
|
20854
|
-
z35.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
20855
|
-
)
|
|
20856
|
-
}),
|
|
20857
|
-
z35.transform((v) => {
|
|
20858
|
-
return remap(v, {
|
|
20859
|
-
meteredFeatureId: "metered_feature_id",
|
|
20860
|
-
billingUnits: "billing_units",
|
|
20861
|
-
tierBehavior: "tier_behavior"
|
|
20862
|
-
});
|
|
20863
|
-
})
|
|
20864
|
-
);
|
|
20865
|
-
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
20866
|
-
z35.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
20867
|
-
z35.lazy(() => PhaseCreditSchemaAddItem2$outboundSchema)
|
|
20868
|
-
]);
|
|
20869
|
-
var PhaseAddItemProviderMarkups2$outboundSchema = z35.object({
|
|
20870
|
-
markup: z35.number()
|
|
20871
|
-
});
|
|
20872
|
-
var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
20873
|
-
z35.object({
|
|
20874
|
-
markup: z35.optional(z35.number()),
|
|
20875
|
-
inputCost: z35.optional(z35.number()),
|
|
20876
|
-
outputCost: z35.optional(z35.number())
|
|
20877
|
-
}),
|
|
20878
|
-
z35.transform((v) => {
|
|
20879
|
-
return remap(v, {
|
|
20880
|
-
inputCost: "input_cost",
|
|
20881
|
-
outputCost: "output_cost"
|
|
20882
|
-
});
|
|
20883
|
-
})
|
|
20884
|
-
);
|
|
20885
21075
|
|
|
20886
21076
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20887
21077
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -21038,20 +21228,73 @@ var CreateScheduleCode = {
|
|
|
21038
21228
|
PaymentFailed: "payment_failed",
|
|
21039
21229
|
PaymentProcessing: "payment_processing"
|
|
21040
21230
|
};
|
|
21041
|
-
var
|
|
21231
|
+
var PhaseAddItemFeatureOverrideTier2$outboundSchema = z36.pipe(
|
|
21042
21232
|
z36.object({
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21046
|
-
|
|
21047
|
-
|
|
21233
|
+
to: PhaseAddItemFeatureOverrideToUnion2$outboundSchema,
|
|
21234
|
+
creditCost: z36.number()
|
|
21235
|
+
}),
|
|
21236
|
+
z36.transform((v) => {
|
|
21237
|
+
return remap(v, {
|
|
21238
|
+
creditCost: "credit_cost"
|
|
21239
|
+
});
|
|
21240
|
+
})
|
|
21241
|
+
);
|
|
21242
|
+
var PhaseCreditSchemaAddItem1$outboundSchema = z36.pipe(
|
|
21243
|
+
z36.object({
|
|
21244
|
+
meteredFeatureId: z36.string(),
|
|
21245
|
+
billingUnits: z36.optional(z36.number()),
|
|
21246
|
+
dimensions: z36.optional(
|
|
21247
|
+
z36.record(z36.string(), PhaseAddItemDimensionsUnion3$outboundSchema)
|
|
21048
21248
|
),
|
|
21049
|
-
|
|
21050
|
-
z36.
|
|
21051
|
-
|
|
21052
|
-
|
|
21249
|
+
multipliers: z36.optional(
|
|
21250
|
+
z36.record(z36.string(), PhaseAddItemMultipliers3$outboundSchema)
|
|
21251
|
+
),
|
|
21252
|
+
tierBehavior: z36.literal("graduated"),
|
|
21253
|
+
tiers: z36.array(
|
|
21254
|
+
z36.lazy(() => PhaseAddItemFeatureOverrideTier2$outboundSchema)
|
|
21053
21255
|
)
|
|
21054
21256
|
}),
|
|
21257
|
+
z36.transform((v) => {
|
|
21258
|
+
return remap(v, {
|
|
21259
|
+
meteredFeatureId: "metered_feature_id",
|
|
21260
|
+
billingUnits: "billing_units",
|
|
21261
|
+
tierBehavior: "tier_behavior"
|
|
21262
|
+
});
|
|
21263
|
+
})
|
|
21264
|
+
);
|
|
21265
|
+
var PhaseAddItemCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21266
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21267
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21268
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21269
|
+
]);
|
|
21270
|
+
var PhaseAddItemProviderMarkups2$outboundSchema = z36.object({
|
|
21271
|
+
markup: z36.number()
|
|
21272
|
+
});
|
|
21273
|
+
var PhaseAddItemModelMarkups2$outboundSchema = z36.pipe(
|
|
21274
|
+
z36.object({
|
|
21275
|
+
markup: z36.optional(z36.number()),
|
|
21276
|
+
inputCost: z36.optional(z36.number()),
|
|
21277
|
+
outputCost: z36.optional(z36.number())
|
|
21278
|
+
}),
|
|
21279
|
+
z36.transform((v) => {
|
|
21280
|
+
return remap(v, {
|
|
21281
|
+
inputCost: "input_cost",
|
|
21282
|
+
outputCost: "output_cost"
|
|
21283
|
+
});
|
|
21284
|
+
})
|
|
21285
|
+
);
|
|
21286
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21287
|
+
z36.object({
|
|
21288
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21289
|
+
providerMarkups: z36.optional(z36.nullable(z36.record(
|
|
21290
|
+
z36.string(),
|
|
21291
|
+
z36.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21292
|
+
))),
|
|
21293
|
+
modelMarkups: z36.optional(z36.nullable(z36.record(
|
|
21294
|
+
z36.string(),
|
|
21295
|
+
z36.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
21296
|
+
)))
|
|
21297
|
+
}),
|
|
21055
21298
|
z36.transform((v) => {
|
|
21056
21299
|
return remap(v, {
|
|
21057
21300
|
defaultMarkup: "default_markup",
|
|
@@ -21062,10 +21305,14 @@ var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
|
21062
21305
|
);
|
|
21063
21306
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
21064
21307
|
z36.object({
|
|
21065
|
-
creditSchema: z36.optional(
|
|
21066
|
-
z36.
|
|
21067
|
-
|
|
21068
|
-
|
|
21308
|
+
creditSchema: z36.optional(z36.array(smartUnion([
|
|
21309
|
+
z36.lazy(() => PhaseCreditSchemaAddItem1$outboundSchema),
|
|
21310
|
+
PhaseCreditSchemaAddItem2$outboundSchema,
|
|
21311
|
+
PhaseCreditSchemaAddItem3$outboundSchema
|
|
21312
|
+
]))),
|
|
21313
|
+
markups: z36.optional(z36.lazy(
|
|
21314
|
+
() => PhaseAddItemMarkups2$outboundSchema
|
|
21315
|
+
))
|
|
21069
21316
|
}),
|
|
21070
21317
|
z36.transform((v) => {
|
|
21071
21318
|
return remap(v, {
|
|
@@ -21407,6 +21654,17 @@ var PhaseUpsertLicenseExpiry2$outboundSchema = z36.object({
|
|
|
21407
21654
|
duration: PhaseUpsertLicenseDuration2$outboundSchema,
|
|
21408
21655
|
length: z36.number()
|
|
21409
21656
|
});
|
|
21657
|
+
var PhaseCreditSchemaUpsertLicense3$outboundSchema = z36.pipe(
|
|
21658
|
+
z36.object({
|
|
21659
|
+
meteredFeatureId: z36.string(),
|
|
21660
|
+
excluded: z36.literal(true)
|
|
21661
|
+
}),
|
|
21662
|
+
z36.transform((v) => {
|
|
21663
|
+
return remap(v, {
|
|
21664
|
+
meteredFeatureId: "metered_feature_id"
|
|
21665
|
+
});
|
|
21666
|
+
})
|
|
21667
|
+
);
|
|
21410
21668
|
var PhaseDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z36.string(), z36.number(), z36.boolean()]);
|
|
21411
21669
|
var PhaseDimensionsUpsertLicense4$outboundSchema = z36.pipe(
|
|
21412
21670
|
z36.object({
|
|
@@ -21593,7 +21851,8 @@ var PhaseCreditSchemaUpsertLicense1$outboundSchema = z36.pipe(
|
|
|
21593
21851
|
);
|
|
21594
21852
|
var PhaseUpsertLicenseCreditSchemaUnion2$outboundSchema = smartUnion([
|
|
21595
21853
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21596
|
-
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema)
|
|
21854
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense2$outboundSchema),
|
|
21855
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21597
21856
|
]);
|
|
21598
21857
|
var PhaseUpsertLicenseProviderMarkups2$outboundSchema = z36.object({
|
|
21599
21858
|
markup: z36.number()
|
|
@@ -21637,7 +21896,8 @@ var PhaseUpsertLicenseFeatureOverride2$outboundSchema = z36.pipe(
|
|
|
21637
21896
|
z36.lazy(() => PhaseCreditSchemaUpsertLicense1$outboundSchema),
|
|
21638
21897
|
z36.lazy(
|
|
21639
21898
|
() => PhaseCreditSchemaUpsertLicense2$outboundSchema
|
|
21640
|
-
)
|
|
21899
|
+
),
|
|
21900
|
+
z36.lazy(() => PhaseCreditSchemaUpsertLicense3$outboundSchema)
|
|
21641
21901
|
]))),
|
|
21642
21902
|
markups: z36.optional(z36.lazy(
|
|
21643
21903
|
() => PhaseUpsertLicenseMarkups2$outboundSchema
|
|
@@ -22097,6 +22357,11 @@ var CustomerFlagsType = {
|
|
|
22097
22357
|
CreditSystem: "credit_system",
|
|
22098
22358
|
AiCreditSystem: "ai_credit_system"
|
|
22099
22359
|
};
|
|
22360
|
+
var CustomerCombine = {
|
|
22361
|
+
Sum: "sum",
|
|
22362
|
+
Max: "max",
|
|
22363
|
+
Min: "min"
|
|
22364
|
+
};
|
|
22100
22365
|
var CustomerDimensionsToEnum3 = {
|
|
22101
22366
|
Inf: "inf"
|
|
22102
22367
|
};
|
|
@@ -22403,6 +22668,7 @@ var License$inboundSchema = z39.pipe(
|
|
|
22403
22668
|
})
|
|
22404
22669
|
);
|
|
22405
22670
|
var CustomerFlagsType$inboundSchema = inboundSchema(CustomerFlagsType);
|
|
22671
|
+
var CustomerCombine$inboundSchema = inboundSchema(CustomerCombine);
|
|
22406
22672
|
var CustomerDimensions6$inboundSchema = z39.pipe(
|
|
22407
22673
|
z39.object({
|
|
22408
22674
|
match: z39.record(z39.string(), string5()),
|
|
@@ -22679,6 +22945,7 @@ var CustomerFeature$inboundSchema = z39.pipe(
|
|
|
22679
22945
|
name: string5(),
|
|
22680
22946
|
type: CustomerFlagsType$inboundSchema,
|
|
22681
22947
|
consumable: boolean2(),
|
|
22948
|
+
combine: optional3(CustomerCombine$inboundSchema),
|
|
22682
22949
|
event_names: optional3(z39.array(string5())),
|
|
22683
22950
|
credit_schema: optional3(z39.array(smartUnion([
|
|
22684
22951
|
z39.lazy(() => CustomerCreditSchema1$inboundSchema),
|
|
@@ -23421,6 +23688,11 @@ var GetCustomerFlagsType = {
|
|
|
23421
23688
|
CreditSystem: "credit_system",
|
|
23422
23689
|
AiCreditSystem: "ai_credit_system"
|
|
23423
23690
|
};
|
|
23691
|
+
var GetCustomerCombine = {
|
|
23692
|
+
Sum: "sum",
|
|
23693
|
+
Max: "max",
|
|
23694
|
+
Min: "min"
|
|
23695
|
+
};
|
|
23424
23696
|
var GetCustomerDimensionsToEnum3 = {
|
|
23425
23697
|
Inf: "inf"
|
|
23426
23698
|
};
|
|
@@ -23738,6 +24010,7 @@ var GetCustomerLicense$inboundSchema = z52.pipe(
|
|
|
23738
24010
|
})
|
|
23739
24011
|
);
|
|
23740
24012
|
var GetCustomerFlagsType$inboundSchema = inboundSchema(GetCustomerFlagsType);
|
|
24013
|
+
var GetCustomerCombine$inboundSchema = inboundSchema(GetCustomerCombine);
|
|
23741
24014
|
var GetCustomerDimensions6$inboundSchema = z52.pipe(
|
|
23742
24015
|
z52.object({
|
|
23743
24016
|
match: z52.record(z52.string(), string5()),
|
|
@@ -24023,6 +24296,7 @@ var GetCustomerFeature$inboundSchema = z52.pipe(
|
|
|
24023
24296
|
name: string5(),
|
|
24024
24297
|
type: GetCustomerFlagsType$inboundSchema,
|
|
24025
24298
|
consumable: boolean2(),
|
|
24299
|
+
combine: optional3(GetCustomerCombine$inboundSchema),
|
|
24026
24300
|
event_names: optional3(z52.array(string5())),
|
|
24027
24301
|
credit_schema: optional3(z52.array(smartUnion([
|
|
24028
24302
|
z52.lazy(() => GetCustomerCreditSchema1$inboundSchema),
|
|
@@ -24410,6 +24684,11 @@ var GetEntityType = {
|
|
|
24410
24684
|
CreditSystem: "credit_system",
|
|
24411
24685
|
AiCreditSystem: "ai_credit_system"
|
|
24412
24686
|
};
|
|
24687
|
+
var GetEntityCombine = {
|
|
24688
|
+
Sum: "sum",
|
|
24689
|
+
Max: "max",
|
|
24690
|
+
Min: "min"
|
|
24691
|
+
};
|
|
24413
24692
|
var GetEntityDimensionsToEnum3 = {
|
|
24414
24693
|
Inf: "inf"
|
|
24415
24694
|
};
|
|
@@ -24535,6 +24814,7 @@ var GetEntityPurchase$inboundSchema = z53.pipe(
|
|
|
24535
24814
|
})
|
|
24536
24815
|
);
|
|
24537
24816
|
var GetEntityType$inboundSchema = inboundSchema(GetEntityType);
|
|
24817
|
+
var GetEntityCombine$inboundSchema = inboundSchema(GetEntityCombine);
|
|
24538
24818
|
var GetEntityDimensions6$inboundSchema = z53.pipe(
|
|
24539
24819
|
z53.object({
|
|
24540
24820
|
match: z53.record(z53.string(), string5()),
|
|
@@ -24811,6 +25091,7 @@ var GetEntityFeature$inboundSchema = z53.pipe(
|
|
|
24811
25091
|
name: string5(),
|
|
24812
25092
|
type: GetEntityType$inboundSchema,
|
|
24813
25093
|
consumable: boolean2(),
|
|
25094
|
+
combine: optional3(GetEntityCombine$inboundSchema),
|
|
24814
25095
|
event_names: optional3(z53.array(string5())),
|
|
24815
25096
|
credit_schema: optional3(z53.array(smartUnion([
|
|
24816
25097
|
z53.lazy(() => GetEntityCreditSchema1$inboundSchema),
|
|
@@ -25029,6 +25310,11 @@ var GetFeatureType = {
|
|
|
25029
25310
|
CreditSystem: "credit_system",
|
|
25030
25311
|
AiCreditSystem: "ai_credit_system"
|
|
25031
25312
|
};
|
|
25313
|
+
var GetFeatureCombine = {
|
|
25314
|
+
Sum: "sum",
|
|
25315
|
+
Max: "max",
|
|
25316
|
+
Min: "min"
|
|
25317
|
+
};
|
|
25032
25318
|
var GetFeatureDimensionsToEnum3 = {
|
|
25033
25319
|
Inf: "inf"
|
|
25034
25320
|
};
|
|
@@ -25052,6 +25338,7 @@ var GetFeatureParams$outboundSchema = z54.pipe(
|
|
|
25052
25338
|
})
|
|
25053
25339
|
);
|
|
25054
25340
|
var GetFeatureType$inboundSchema = inboundSchema(GetFeatureType);
|
|
25341
|
+
var GetFeatureCombine$inboundSchema = inboundSchema(GetFeatureCombine);
|
|
25055
25342
|
var GetFeatureDimensions6$inboundSchema = z54.pipe(
|
|
25056
25343
|
z54.object({
|
|
25057
25344
|
match: z54.record(z54.string(), string5()),
|
|
@@ -25328,6 +25615,7 @@ var GetFeatureResponse$inboundSchema = z54.pipe(
|
|
|
25328
25615
|
name: string5(),
|
|
25329
25616
|
type: GetFeatureType$inboundSchema,
|
|
25330
25617
|
consumable: boolean2(),
|
|
25618
|
+
combine: optional3(GetFeatureCombine$inboundSchema),
|
|
25331
25619
|
event_names: optional3(z54.array(string5())),
|
|
25332
25620
|
credit_schema: optional3(z54.array(smartUnion([
|
|
25333
25621
|
z54.lazy(() => GetFeatureCreditSchema1$inboundSchema),
|
|
@@ -25671,7 +25959,7 @@ var GetOrCreateCustomerParams$outboundSchema = z55.pipe(
|
|
|
25671
25959
|
// ../sdk/src/models/get-plan-response.ts
|
|
25672
25960
|
import * as z57 from "zod/v4-mini";
|
|
25673
25961
|
|
|
25674
|
-
// ../sdk/src/models/get-plan-variant-details-
|
|
25962
|
+
// ../sdk/src/models/get-plan-variant-details-basis.ts
|
|
25675
25963
|
import * as z56 from "zod/v4-mini";
|
|
25676
25964
|
var GetPlanPriceInterval = {
|
|
25677
25965
|
OneOff: "one_off",
|
|
@@ -26150,6 +26438,17 @@ var GetPlanItemExpiry$inboundSchema = z56.object({
|
|
|
26150
26438
|
duration: GetPlanItemDuration$inboundSchema,
|
|
26151
26439
|
length: number2()
|
|
26152
26440
|
});
|
|
26441
|
+
var GetPlanCreditSchemaItemFeatureOverride3$inboundSchema = z56.pipe(
|
|
26442
|
+
z56.object({
|
|
26443
|
+
metered_feature_id: string5(),
|
|
26444
|
+
excluded: literal3(true)
|
|
26445
|
+
}),
|
|
26446
|
+
z56.transform((v) => {
|
|
26447
|
+
return remap(v, {
|
|
26448
|
+
"metered_feature_id": "meteredFeatureId"
|
|
26449
|
+
});
|
|
26450
|
+
})
|
|
26451
|
+
);
|
|
26153
26452
|
var GetPlanDimensionsItem4$inboundSchema = z56.pipe(
|
|
26154
26453
|
z56.object({
|
|
26155
26454
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26318,7 +26617,8 @@ var GetPlanCreditSchemaItemFeatureOverride1$inboundSchema = z56.pipe(
|
|
|
26318
26617
|
);
|
|
26319
26618
|
var GetPlanItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26320
26619
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26321
|
-
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
26620
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
26621
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26322
26622
|
]);
|
|
26323
26623
|
var GetPlanItemProviderMarkups$inboundSchema = z56.object({
|
|
26324
26624
|
markup: number2()
|
|
@@ -26362,7 +26662,8 @@ var GetPlanItemFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26362
26662
|
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
26363
26663
|
z56.lazy(
|
|
26364
26664
|
() => GetPlanCreditSchemaItemFeatureOverride2$inboundSchema
|
|
26365
|
-
)
|
|
26665
|
+
),
|
|
26666
|
+
z56.lazy(() => GetPlanCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
26366
26667
|
]))),
|
|
26367
26668
|
markups: optional3(z56.lazy(
|
|
26368
26669
|
() => GetPlanItemMarkups$inboundSchema
|
|
@@ -26764,6 +27065,17 @@ var GetPlanVariantDetailsExpiry$inboundSchema = z56.object({
|
|
|
26764
27065
|
duration: GetPlanVariantDetailsDuration$inboundSchema,
|
|
26765
27066
|
length: number2()
|
|
26766
27067
|
});
|
|
27068
|
+
var GetPlanCreditSchemaVariantDetails3$inboundSchema = z56.pipe(
|
|
27069
|
+
z56.object({
|
|
27070
|
+
metered_feature_id: string5(),
|
|
27071
|
+
excluded: literal3(true)
|
|
27072
|
+
}),
|
|
27073
|
+
z56.transform((v) => {
|
|
27074
|
+
return remap(v, {
|
|
27075
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27076
|
+
});
|
|
27077
|
+
})
|
|
27078
|
+
);
|
|
26767
27079
|
var GetPlanDimensionsVariantDetails4$inboundSchema = z56.pipe(
|
|
26768
27080
|
z56.object({
|
|
26769
27081
|
match: z56.record(z56.string(), string5()),
|
|
@@ -26949,7 +27261,8 @@ var GetPlanCreditSchemaVariantDetails1$inboundSchema = z56.pipe(
|
|
|
26949
27261
|
);
|
|
26950
27262
|
var GetPlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
26951
27263
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26952
|
-
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema)
|
|
27264
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails2$inboundSchema),
|
|
27265
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26953
27266
|
]);
|
|
26954
27267
|
var GetPlanVariantDetailsProviderMarkups$inboundSchema = z56.object({
|
|
26955
27268
|
markup: number2()
|
|
@@ -26993,7 +27306,8 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
26993
27306
|
z56.lazy(() => GetPlanCreditSchemaVariantDetails1$inboundSchema),
|
|
26994
27307
|
z56.lazy(
|
|
26995
27308
|
() => GetPlanCreditSchemaVariantDetails2$inboundSchema
|
|
26996
|
-
)
|
|
27309
|
+
),
|
|
27310
|
+
z56.lazy(() => GetPlanCreditSchemaVariantDetails3$inboundSchema)
|
|
26997
27311
|
]))),
|
|
26998
27312
|
markups: optional3(z56.lazy(
|
|
26999
27313
|
() => GetPlanVariantDetailsMarkups$inboundSchema
|
|
@@ -27167,28 +27481,6 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z56.pipe(
|
|
|
27167
27481
|
);
|
|
27168
27482
|
var GetPlanVariantDetailsThresholdType$inboundSchema = inboundSchema(GetPlanVariantDetailsThresholdType);
|
|
27169
27483
|
var GetPlanVariantDetailsBasis$inboundSchema = inboundSchema(GetPlanVariantDetailsBasis);
|
|
27170
|
-
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z56.object({
|
|
27171
|
-
properties: z56.record(z56.string(), string5())
|
|
27172
|
-
});
|
|
27173
|
-
var GetPlanVariantDetailsUsageAlert$inboundSchema = z56.pipe(
|
|
27174
|
-
z56.object({
|
|
27175
|
-
feature_id: optional3(string5()),
|
|
27176
|
-
enabled: z56._default(boolean2(), true),
|
|
27177
|
-
threshold: number2(),
|
|
27178
|
-
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27179
|
-
basis: z56._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27180
|
-
filter: optional3(
|
|
27181
|
-
z56.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27182
|
-
),
|
|
27183
|
-
name: optional3(string5())
|
|
27184
|
-
}),
|
|
27185
|
-
z56.transform((v) => {
|
|
27186
|
-
return remap(v, {
|
|
27187
|
-
"feature_id": "featureId",
|
|
27188
|
-
"threshold_type": "thresholdType"
|
|
27189
|
-
});
|
|
27190
|
-
})
|
|
27191
|
-
);
|
|
27192
27484
|
|
|
27193
27485
|
// ../sdk/src/models/get-plan-response.ts
|
|
27194
27486
|
var GetPlanPriceUpsertLicenseInterval = {
|
|
@@ -27371,6 +27663,28 @@ var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
|
27371
27663
|
SemiAnnual: "semi_annual",
|
|
27372
27664
|
Year: "year"
|
|
27373
27665
|
};
|
|
27666
|
+
var GetPlanVariantDetailsUsageAlertFilter$inboundSchema = z57.object({
|
|
27667
|
+
properties: z57.record(z57.string(), string5())
|
|
27668
|
+
});
|
|
27669
|
+
var GetPlanVariantDetailsUsageAlert$inboundSchema = z57.pipe(
|
|
27670
|
+
z57.object({
|
|
27671
|
+
feature_id: optional3(string5()),
|
|
27672
|
+
enabled: z57._default(boolean2(), true),
|
|
27673
|
+
threshold: number2(),
|
|
27674
|
+
threshold_type: GetPlanVariantDetailsThresholdType$inboundSchema,
|
|
27675
|
+
basis: z57._default(GetPlanVariantDetailsBasis$inboundSchema, "balance"),
|
|
27676
|
+
filter: optional3(
|
|
27677
|
+
z57.lazy(() => GetPlanVariantDetailsUsageAlertFilter$inboundSchema)
|
|
27678
|
+
),
|
|
27679
|
+
name: optional3(string5())
|
|
27680
|
+
}),
|
|
27681
|
+
z57.transform((v) => {
|
|
27682
|
+
return remap(v, {
|
|
27683
|
+
"feature_id": "featureId",
|
|
27684
|
+
"threshold_type": "thresholdType"
|
|
27685
|
+
});
|
|
27686
|
+
})
|
|
27687
|
+
);
|
|
27374
27688
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
27375
27689
|
z57.object({
|
|
27376
27690
|
feature_id: string5(),
|
|
@@ -27394,7 +27708,7 @@ var GetPlanVariantDetailsBillingControls$inboundSchema = z57.pipe(
|
|
|
27394
27708
|
z57.array(GetPlanVariantDetailsUsageLimit$inboundSchema)
|
|
27395
27709
|
),
|
|
27396
27710
|
usage_alerts: optional3(
|
|
27397
|
-
z57.array(GetPlanVariantDetailsUsageAlert$inboundSchema)
|
|
27711
|
+
z57.array(z57.lazy(() => GetPlanVariantDetailsUsageAlert$inboundSchema))
|
|
27398
27712
|
),
|
|
27399
27713
|
overage_allowed: optional3(
|
|
27400
27714
|
z57.array(z57.lazy(() => GetPlanVariantDetailsOverageAllowed$inboundSchema))
|
|
@@ -27548,6 +27862,17 @@ var GetPlanUpsertLicenseExpiry$inboundSchema = z57.object({
|
|
|
27548
27862
|
duration: GetPlanUpsertLicenseDuration$inboundSchema,
|
|
27549
27863
|
length: number2()
|
|
27550
27864
|
});
|
|
27865
|
+
var GetPlanCreditSchemaUpsertLicense3$inboundSchema = z57.pipe(
|
|
27866
|
+
z57.object({
|
|
27867
|
+
metered_feature_id: string5(),
|
|
27868
|
+
excluded: literal3(true)
|
|
27869
|
+
}),
|
|
27870
|
+
z57.transform((v) => {
|
|
27871
|
+
return remap(v, {
|
|
27872
|
+
"metered_feature_id": "meteredFeatureId"
|
|
27873
|
+
});
|
|
27874
|
+
})
|
|
27875
|
+
);
|
|
27551
27876
|
var GetPlanDimensionsUpsertLicense4$inboundSchema = z57.pipe(
|
|
27552
27877
|
z57.object({
|
|
27553
27878
|
match: z57.record(z57.string(), string5()),
|
|
@@ -27729,7 +28054,8 @@ var GetPlanCreditSchemaUpsertLicense1$inboundSchema = z57.pipe(
|
|
|
27729
28054
|
);
|
|
27730
28055
|
var GetPlanUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27731
28056
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27732
|
-
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema)
|
|
28057
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense2$inboundSchema),
|
|
28058
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27733
28059
|
]);
|
|
27734
28060
|
var GetPlanUpsertLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27735
28061
|
markup: number2()
|
|
@@ -27773,7 +28099,8 @@ var GetPlanUpsertLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
27773
28099
|
z57.lazy(() => GetPlanCreditSchemaUpsertLicense1$inboundSchema),
|
|
27774
28100
|
z57.lazy(
|
|
27775
28101
|
() => GetPlanCreditSchemaUpsertLicense2$inboundSchema
|
|
27776
|
-
)
|
|
28102
|
+
),
|
|
28103
|
+
z57.lazy(() => GetPlanCreditSchemaUpsertLicense3$inboundSchema)
|
|
27777
28104
|
]))),
|
|
27778
28105
|
markups: optional3(z57.lazy(
|
|
27779
28106
|
() => GetPlanUpsertLicenseMarkups$inboundSchema
|
|
@@ -28077,6 +28404,17 @@ var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
|
28077
28404
|
duration: GetPlanLicenseDuration$inboundSchema,
|
|
28078
28405
|
length: number2()
|
|
28079
28406
|
});
|
|
28407
|
+
var GetPlanCreditSchemaLicense3$inboundSchema = z57.pipe(
|
|
28408
|
+
z57.object({
|
|
28409
|
+
metered_feature_id: string5(),
|
|
28410
|
+
excluded: literal3(true)
|
|
28411
|
+
}),
|
|
28412
|
+
z57.transform((v) => {
|
|
28413
|
+
return remap(v, {
|
|
28414
|
+
"metered_feature_id": "meteredFeatureId"
|
|
28415
|
+
});
|
|
28416
|
+
})
|
|
28417
|
+
);
|
|
28080
28418
|
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
28081
28419
|
z57.object({
|
|
28082
28420
|
match: z57.record(z57.string(), string5()),
|
|
@@ -28245,7 +28583,8 @@ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
|
28245
28583
|
);
|
|
28246
28584
|
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
28247
28585
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28248
|
-
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
28586
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema),
|
|
28587
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28249
28588
|
]);
|
|
28250
28589
|
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
28251
28590
|
markup: number2()
|
|
@@ -28289,7 +28628,8 @@ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
|
28289
28628
|
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
28290
28629
|
z57.lazy(
|
|
28291
28630
|
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
28292
|
-
)
|
|
28631
|
+
),
|
|
28632
|
+
z57.lazy(() => GetPlanCreditSchemaLicense3$inboundSchema)
|
|
28293
28633
|
]))),
|
|
28294
28634
|
markups: optional3(z57.lazy(
|
|
28295
28635
|
() => GetPlanLicenseMarkups$inboundSchema
|
|
@@ -29466,6 +29806,11 @@ var ListCustomersType = {
|
|
|
29466
29806
|
CreditSystem: "credit_system",
|
|
29467
29807
|
AiCreditSystem: "ai_credit_system"
|
|
29468
29808
|
};
|
|
29809
|
+
var ListCustomersCombine = {
|
|
29810
|
+
Sum: "sum",
|
|
29811
|
+
Max: "max",
|
|
29812
|
+
Min: "min"
|
|
29813
|
+
};
|
|
29469
29814
|
var ListCustomersDimensionsToEnum3 = {
|
|
29470
29815
|
Inf: "inf"
|
|
29471
29816
|
};
|
|
@@ -29782,6 +30127,7 @@ var ListCustomersLicense$inboundSchema = z68.pipe(
|
|
|
29782
30127
|
})
|
|
29783
30128
|
);
|
|
29784
30129
|
var ListCustomersType$inboundSchema = inboundSchema(ListCustomersType);
|
|
30130
|
+
var ListCustomersCombine$inboundSchema = inboundSchema(ListCustomersCombine);
|
|
29785
30131
|
var ListCustomersDimensions6$inboundSchema = z68.pipe(
|
|
29786
30132
|
z68.object({
|
|
29787
30133
|
match: z68.record(z68.string(), string5()),
|
|
@@ -30067,6 +30413,7 @@ var ListCustomersFeature$inboundSchema = z68.pipe(
|
|
|
30067
30413
|
name: string5(),
|
|
30068
30414
|
type: ListCustomersType$inboundSchema,
|
|
30069
30415
|
consumable: boolean2(),
|
|
30416
|
+
combine: optional3(ListCustomersCombine$inboundSchema),
|
|
30070
30417
|
event_names: optional3(z68.array(string5())),
|
|
30071
30418
|
credit_schema: optional3(z68.array(smartUnion([
|
|
30072
30419
|
z68.lazy(() => ListCustomersCreditSchema1$inboundSchema),
|
|
@@ -30233,6 +30580,11 @@ var ListEntitiesType = {
|
|
|
30233
30580
|
CreditSystem: "credit_system",
|
|
30234
30581
|
AiCreditSystem: "ai_credit_system"
|
|
30235
30582
|
};
|
|
30583
|
+
var ListEntitiesCombine = {
|
|
30584
|
+
Sum: "sum",
|
|
30585
|
+
Max: "max",
|
|
30586
|
+
Min: "min"
|
|
30587
|
+
};
|
|
30236
30588
|
var ListEntitiesDimensionsToEnum3 = {
|
|
30237
30589
|
Inf: "inf"
|
|
30238
30590
|
};
|
|
@@ -30372,6 +30724,7 @@ var ListEntitiesPurchase$inboundSchema = z69.pipe(
|
|
|
30372
30724
|
})
|
|
30373
30725
|
);
|
|
30374
30726
|
var ListEntitiesType$inboundSchema = inboundSchema(ListEntitiesType);
|
|
30727
|
+
var ListEntitiesCombine$inboundSchema = inboundSchema(ListEntitiesCombine);
|
|
30375
30728
|
var ListEntitiesDimensions6$inboundSchema = z69.pipe(
|
|
30376
30729
|
z69.object({
|
|
30377
30730
|
match: z69.record(z69.string(), string5()),
|
|
@@ -30657,6 +31010,7 @@ var ListEntitiesFeature$inboundSchema = z69.pipe(
|
|
|
30657
31010
|
name: string5(),
|
|
30658
31011
|
type: ListEntitiesType$inboundSchema,
|
|
30659
31012
|
consumable: boolean2(),
|
|
31013
|
+
combine: optional3(ListEntitiesCombine$inboundSchema),
|
|
30660
31014
|
event_names: optional3(z69.array(string5())),
|
|
30661
31015
|
credit_schema: optional3(z69.array(smartUnion([
|
|
30662
31016
|
z69.lazy(() => ListEntitiesCreditSchema1$inboundSchema),
|
|
@@ -31002,6 +31356,11 @@ var ListFeaturesType = {
|
|
|
31002
31356
|
CreditSystem: "credit_system",
|
|
31003
31357
|
AiCreditSystem: "ai_credit_system"
|
|
31004
31358
|
};
|
|
31359
|
+
var ListFeaturesCombine = {
|
|
31360
|
+
Sum: "sum",
|
|
31361
|
+
Max: "max",
|
|
31362
|
+
Min: "min"
|
|
31363
|
+
};
|
|
31005
31364
|
var ListFeaturesDimensionsToEnum3 = {
|
|
31006
31365
|
Inf: "inf"
|
|
31007
31366
|
};
|
|
@@ -31016,6 +31375,7 @@ var ListFeaturesToEnum = {
|
|
|
31016
31375
|
};
|
|
31017
31376
|
var ListFeaturesRequest$outboundSchema = z71.object({});
|
|
31018
31377
|
var ListFeaturesType$inboundSchema = inboundSchema(ListFeaturesType);
|
|
31378
|
+
var ListFeaturesCombine$inboundSchema = inboundSchema(ListFeaturesCombine);
|
|
31019
31379
|
var ListFeaturesDimensions6$inboundSchema = z71.pipe(
|
|
31020
31380
|
z71.object({
|
|
31021
31381
|
match: z71.record(z71.string(), string5()),
|
|
@@ -31301,6 +31661,7 @@ var ListFeaturesList$inboundSchema = z71.pipe(
|
|
|
31301
31661
|
name: string5(),
|
|
31302
31662
|
type: ListFeaturesType$inboundSchema,
|
|
31303
31663
|
consumable: boolean2(),
|
|
31664
|
+
combine: optional3(ListFeaturesCombine$inboundSchema),
|
|
31304
31665
|
event_names: optional3(z71.array(string5())),
|
|
31305
31666
|
credit_schema: optional3(z71.array(smartUnion([
|
|
31306
31667
|
z71.lazy(() => ListFeaturesCreditSchema1$inboundSchema),
|
|
@@ -31504,13 +31865,10 @@ var ListInvoicesResponse$inboundSchema = z73.pipe(
|
|
|
31504
31865
|
})
|
|
31505
31866
|
);
|
|
31506
31867
|
|
|
31507
|
-
// ../sdk/src/models/list-plans-
|
|
31508
|
-
import * as z77 from "zod/v4-mini";
|
|
31509
|
-
|
|
31510
|
-
// ../sdk/src/models/list-plans-variant-add-item-feature-override-tier.ts
|
|
31868
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
31511
31869
|
import * as z75 from "zod/v4-mini";
|
|
31512
31870
|
|
|
31513
|
-
// ../sdk/src/models/list-plans-variant-details-
|
|
31871
|
+
// ../sdk/src/models/list-plans-variant-details-basis.ts
|
|
31514
31872
|
import * as z74 from "zod/v4-mini";
|
|
31515
31873
|
var ListPlansPriceInterval = {
|
|
31516
31874
|
OneOff: "one_off",
|
|
@@ -31994,6 +32352,17 @@ var ListPlansItemExpiry$inboundSchema = z74.object({
|
|
|
31994
32352
|
duration: ListPlansItemDuration$inboundSchema,
|
|
31995
32353
|
length: number2()
|
|
31996
32354
|
});
|
|
32355
|
+
var ListPlansCreditSchemaItemFeatureOverride3$inboundSchema = z74.pipe(
|
|
32356
|
+
z74.object({
|
|
32357
|
+
metered_feature_id: string5(),
|
|
32358
|
+
excluded: literal3(true)
|
|
32359
|
+
}),
|
|
32360
|
+
z74.transform((v) => {
|
|
32361
|
+
return remap(v, {
|
|
32362
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32363
|
+
});
|
|
32364
|
+
})
|
|
32365
|
+
);
|
|
31997
32366
|
var ListPlansDimensionsItem4$inboundSchema = z74.pipe(
|
|
31998
32367
|
z74.object({
|
|
31999
32368
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32162,7 +32531,8 @@ var ListPlansCreditSchemaItemFeatureOverride1$inboundSchema = z74.pipe(
|
|
|
32162
32531
|
);
|
|
32163
32532
|
var ListPlansItemCreditSchemaUnion$inboundSchema = smartUnion([
|
|
32164
32533
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32165
|
-
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema)
|
|
32534
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema),
|
|
32535
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32166
32536
|
]);
|
|
32167
32537
|
var ListPlansItemProviderMarkups$inboundSchema = z74.object({
|
|
32168
32538
|
markup: number2()
|
|
@@ -32206,7 +32576,8 @@ var ListPlansItemFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32206
32576
|
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride1$inboundSchema),
|
|
32207
32577
|
z74.lazy(
|
|
32208
32578
|
() => ListPlansCreditSchemaItemFeatureOverride2$inboundSchema
|
|
32209
|
-
)
|
|
32579
|
+
),
|
|
32580
|
+
z74.lazy(() => ListPlansCreditSchemaItemFeatureOverride3$inboundSchema)
|
|
32210
32581
|
]))),
|
|
32211
32582
|
markups: optional3(z74.lazy(
|
|
32212
32583
|
() => ListPlansItemMarkups$inboundSchema
|
|
@@ -32612,6 +32983,17 @@ var ListPlansVariantDetailsExpiry$inboundSchema = z74.object({
|
|
|
32612
32983
|
duration: ListPlansVariantDetailsDuration$inboundSchema,
|
|
32613
32984
|
length: number2()
|
|
32614
32985
|
});
|
|
32986
|
+
var ListPlansCreditSchemaVariantDetails3$inboundSchema = z74.pipe(
|
|
32987
|
+
z74.object({
|
|
32988
|
+
metered_feature_id: string5(),
|
|
32989
|
+
excluded: literal3(true)
|
|
32990
|
+
}),
|
|
32991
|
+
z74.transform((v) => {
|
|
32992
|
+
return remap(v, {
|
|
32993
|
+
"metered_feature_id": "meteredFeatureId"
|
|
32994
|
+
});
|
|
32995
|
+
})
|
|
32996
|
+
);
|
|
32615
32997
|
var ListPlansDimensionsVariantDetails4$inboundSchema = z74.pipe(
|
|
32616
32998
|
z74.object({
|
|
32617
32999
|
match: z74.record(z74.string(), string5()),
|
|
@@ -32798,7 +33180,8 @@ var ListPlansCreditSchemaVariantDetails1$inboundSchema = z74.pipe(
|
|
|
32798
33180
|
var ListPlansVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion(
|
|
32799
33181
|
[
|
|
32800
33182
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32801
|
-
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema)
|
|
33183
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails2$inboundSchema),
|
|
33184
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32802
33185
|
]
|
|
32803
33186
|
);
|
|
32804
33187
|
var ListPlansVariantDetailsProviderMarkups$inboundSchema = z74.object({
|
|
@@ -32843,7 +33226,8 @@ var ListPlansVariantDetailsFeatureOverride$inboundSchema = z74.pipe(
|
|
|
32843
33226
|
z74.lazy(() => ListPlansCreditSchemaVariantDetails1$inboundSchema),
|
|
32844
33227
|
z74.lazy(
|
|
32845
33228
|
() => ListPlansCreditSchemaVariantDetails2$inboundSchema
|
|
32846
|
-
)
|
|
33229
|
+
),
|
|
33230
|
+
z74.lazy(() => ListPlansCreditSchemaVariantDetails3$inboundSchema)
|
|
32847
33231
|
]))),
|
|
32848
33232
|
markups: optional3(z74.lazy(
|
|
32849
33233
|
() => ListPlansVariantDetailsMarkups$inboundSchema
|
|
@@ -33017,30 +33401,8 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z74.pipe(
|
|
|
33017
33401
|
);
|
|
33018
33402
|
var ListPlansVariantDetailsThresholdType$inboundSchema = inboundSchema(ListPlansVariantDetailsThresholdType);
|
|
33019
33403
|
var ListPlansVariantDetailsBasis$inboundSchema = inboundSchema(ListPlansVariantDetailsBasis);
|
|
33020
|
-
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z74.object({
|
|
33021
|
-
properties: z74.record(z74.string(), string5())
|
|
33022
|
-
});
|
|
33023
|
-
var ListPlansVariantDetailsUsageAlert$inboundSchema = z74.pipe(
|
|
33024
|
-
z74.object({
|
|
33025
|
-
feature_id: optional3(string5()),
|
|
33026
|
-
enabled: z74._default(boolean2(), true),
|
|
33027
|
-
threshold: number2(),
|
|
33028
|
-
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33029
|
-
basis: z74._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33030
|
-
filter: optional3(
|
|
33031
|
-
z74.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33032
|
-
),
|
|
33033
|
-
name: optional3(string5())
|
|
33034
|
-
}),
|
|
33035
|
-
z74.transform((v) => {
|
|
33036
|
-
return remap(v, {
|
|
33037
|
-
"feature_id": "featureId",
|
|
33038
|
-
"threshold_type": "thresholdType"
|
|
33039
|
-
});
|
|
33040
|
-
})
|
|
33041
|
-
);
|
|
33042
33404
|
|
|
33043
|
-
// ../sdk/src/models/list-plans-variant-add-item-
|
|
33405
|
+
// ../sdk/src/models/list-plans-dimensions-variant-add-item-1.ts
|
|
33044
33406
|
var ListPlansPriceVariantDetailsUpsertLicenseInterval = {
|
|
33045
33407
|
OneOff: "one_off",
|
|
33046
33408
|
Week: "week",
|
|
@@ -33285,9 +33647,28 @@ var ListPlansDimensionsToVariantAddItemEnum2 = {
|
|
|
33285
33647
|
var ListPlansDimensionsToVariantAddItemEnum1 = {
|
|
33286
33648
|
Inf: "inf"
|
|
33287
33649
|
};
|
|
33288
|
-
var
|
|
33289
|
-
|
|
33290
|
-
};
|
|
33650
|
+
var ListPlansVariantDetailsUsageAlertFilter$inboundSchema = z75.object({
|
|
33651
|
+
properties: z75.record(z75.string(), string5())
|
|
33652
|
+
});
|
|
33653
|
+
var ListPlansVariantDetailsUsageAlert$inboundSchema = z75.pipe(
|
|
33654
|
+
z75.object({
|
|
33655
|
+
feature_id: optional3(string5()),
|
|
33656
|
+
enabled: z75._default(boolean2(), true),
|
|
33657
|
+
threshold: number2(),
|
|
33658
|
+
threshold_type: ListPlansVariantDetailsThresholdType$inboundSchema,
|
|
33659
|
+
basis: z75._default(ListPlansVariantDetailsBasis$inboundSchema, "balance"),
|
|
33660
|
+
filter: optional3(
|
|
33661
|
+
z75.lazy(() => ListPlansVariantDetailsUsageAlertFilter$inboundSchema)
|
|
33662
|
+
),
|
|
33663
|
+
name: optional3(string5())
|
|
33664
|
+
}),
|
|
33665
|
+
z75.transform((v) => {
|
|
33666
|
+
return remap(v, {
|
|
33667
|
+
"feature_id": "featureId",
|
|
33668
|
+
"threshold_type": "thresholdType"
|
|
33669
|
+
});
|
|
33670
|
+
})
|
|
33671
|
+
);
|
|
33291
33672
|
var ListPlansVariantDetailsOverageAllowed$inboundSchema = z75.pipe(
|
|
33292
33673
|
z75.object({
|
|
33293
33674
|
feature_id: string5(),
|
|
@@ -33310,9 +33691,9 @@ var ListPlansVariantDetailsBillingControls$inboundSchema = z75.pipe(
|
|
|
33310
33691
|
usage_limits: optional3(
|
|
33311
33692
|
z75.array(ListPlansVariantDetailsUsageLimit$inboundSchema)
|
|
33312
33693
|
),
|
|
33313
|
-
usage_alerts: optional3(
|
|
33314
|
-
|
|
33315
|
-
),
|
|
33694
|
+
usage_alerts: optional3(z75.array(z75.lazy(
|
|
33695
|
+
() => ListPlansVariantDetailsUsageAlert$inboundSchema
|
|
33696
|
+
))),
|
|
33316
33697
|
overage_allowed: optional3(z75.array(z75.lazy(
|
|
33317
33698
|
() => ListPlansVariantDetailsOverageAllowed$inboundSchema
|
|
33318
33699
|
)))
|
|
@@ -33473,6 +33854,17 @@ var ListPlansVariantDetailsUpsertLicenseExpiry$inboundSchema = z75.object(
|
|
|
33473
33854
|
length: number2()
|
|
33474
33855
|
}
|
|
33475
33856
|
);
|
|
33857
|
+
var ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z75.pipe(
|
|
33858
|
+
z75.object({
|
|
33859
|
+
metered_feature_id: string5(),
|
|
33860
|
+
excluded: literal3(true)
|
|
33861
|
+
}),
|
|
33862
|
+
z75.transform((v) => {
|
|
33863
|
+
return remap(v, {
|
|
33864
|
+
"metered_feature_id": "meteredFeatureId"
|
|
33865
|
+
});
|
|
33866
|
+
})
|
|
33867
|
+
);
|
|
33476
33868
|
var ListPlansDimensionsVariantDetailsUpsertLicense4$inboundSchema = z75.pipe(
|
|
33477
33869
|
z75.object({
|
|
33478
33870
|
match: z75.record(z75.string(), string5()),
|
|
@@ -33685,6 +34077,9 @@ var ListPlansVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smartU
|
|
|
33685
34077
|
),
|
|
33686
34078
|
z75.lazy(
|
|
33687
34079
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34080
|
+
),
|
|
34081
|
+
z75.lazy(
|
|
34082
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33688
34083
|
)
|
|
33689
34084
|
]);
|
|
33690
34085
|
var ListPlansVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z75.object({
|
|
@@ -33735,6 +34130,9 @@ var ListPlansVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z75.pipe
|
|
|
33735
34130
|
),
|
|
33736
34131
|
z75.lazy(
|
|
33737
34132
|
() => ListPlansCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
34133
|
+
),
|
|
34134
|
+
z75.lazy(
|
|
34135
|
+
() => ListPlansCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
33738
34136
|
)
|
|
33739
34137
|
]))),
|
|
33740
34138
|
markups: optional3(z75.lazy(
|
|
@@ -34051,6 +34449,17 @@ var ListPlansLicenseExpiry$inboundSchema = z75.object({
|
|
|
34051
34449
|
duration: ListPlansLicenseDuration$inboundSchema,
|
|
34052
34450
|
length: number2()
|
|
34053
34451
|
});
|
|
34452
|
+
var ListPlansCreditSchemaLicense3$inboundSchema = z75.pipe(
|
|
34453
|
+
z75.object({
|
|
34454
|
+
metered_feature_id: string5(),
|
|
34455
|
+
excluded: literal3(true)
|
|
34456
|
+
}),
|
|
34457
|
+
z75.transform((v) => {
|
|
34458
|
+
return remap(v, {
|
|
34459
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34460
|
+
});
|
|
34461
|
+
})
|
|
34462
|
+
);
|
|
34054
34463
|
var ListPlansDimensionsLicense4$inboundSchema = z75.pipe(
|
|
34055
34464
|
z75.object({
|
|
34056
34465
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34228,7 +34637,8 @@ var ListPlansCreditSchemaLicense1$inboundSchema = z75.pipe(
|
|
|
34228
34637
|
);
|
|
34229
34638
|
var ListPlansLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
34230
34639
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34231
|
-
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema)
|
|
34640
|
+
z75.lazy(() => ListPlansCreditSchemaLicense2$inboundSchema),
|
|
34641
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34232
34642
|
]);
|
|
34233
34643
|
var ListPlansLicenseProviderMarkups$inboundSchema = z75.object({
|
|
34234
34644
|
markup: number2()
|
|
@@ -34272,7 +34682,8 @@ var ListPlansLicenseFeatureOverride$inboundSchema = z75.pipe(
|
|
|
34272
34682
|
z75.lazy(() => ListPlansCreditSchemaLicense1$inboundSchema),
|
|
34273
34683
|
z75.lazy(
|
|
34274
34684
|
() => ListPlansCreditSchemaLicense2$inboundSchema
|
|
34275
|
-
)
|
|
34685
|
+
),
|
|
34686
|
+
z75.lazy(() => ListPlansCreditSchemaLicense3$inboundSchema)
|
|
34276
34687
|
]))),
|
|
34277
34688
|
markups: optional3(z75.lazy(
|
|
34278
34689
|
() => ListPlansLicenseMarkups$inboundSchema
|
|
@@ -34520,6 +34931,17 @@ var ListPlansVariantAddItemExpiry$inboundSchema = z75.object({
|
|
|
34520
34931
|
duration: ListPlansVariantAddItemDuration$inboundSchema,
|
|
34521
34932
|
length: number2()
|
|
34522
34933
|
});
|
|
34934
|
+
var ListPlansCreditSchemaVariantAddItem3$inboundSchema = z75.pipe(
|
|
34935
|
+
z75.object({
|
|
34936
|
+
metered_feature_id: string5(),
|
|
34937
|
+
excluded: literal3(true)
|
|
34938
|
+
}),
|
|
34939
|
+
z75.transform((v) => {
|
|
34940
|
+
return remap(v, {
|
|
34941
|
+
"metered_feature_id": "meteredFeatureId"
|
|
34942
|
+
});
|
|
34943
|
+
})
|
|
34944
|
+
);
|
|
34523
34945
|
var ListPlansDimensionsVariantAddItem4$inboundSchema = z75.pipe(
|
|
34524
34946
|
z75.object({
|
|
34525
34947
|
match: z75.record(z75.string(), string5()),
|
|
@@ -34650,34 +35072,15 @@ var ListPlansDimensionsVariantAddItem1$inboundSchema = z75.pipe(
|
|
|
34650
35072
|
});
|
|
34651
35073
|
})
|
|
34652
35074
|
);
|
|
34653
|
-
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
34654
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem1$inboundSchema),
|
|
34655
|
-
z75.lazy(() => ListPlansDimensionsVariantAddItem2$inboundSchema)
|
|
34656
|
-
]);
|
|
34657
|
-
var ListPlansVariantAddItemMultipliers1$inboundSchema = z75.object({
|
|
34658
|
-
match: z75.record(z75.string(), string5()),
|
|
34659
|
-
factor: optional3(number2()),
|
|
34660
|
-
add: optional3(number2())
|
|
34661
|
-
});
|
|
34662
|
-
var ListPlansToVariantAddItemEnum$inboundSchema = z75.enum(ListPlansToVariantAddItemEnum);
|
|
34663
|
-
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
34664
|
-
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z75.pipe(
|
|
34665
|
-
z75.object({
|
|
34666
|
-
to: smartUnion([
|
|
34667
|
-
number2(),
|
|
34668
|
-
ListPlansToVariantAddItemEnum$inboundSchema
|
|
34669
|
-
]),
|
|
34670
|
-
credit_cost: number2()
|
|
34671
|
-
}),
|
|
34672
|
-
z75.transform((v) => {
|
|
34673
|
-
return remap(v, {
|
|
34674
|
-
"credit_cost": "creditCost"
|
|
34675
|
-
});
|
|
34676
|
-
})
|
|
34677
|
-
);
|
|
34678
35075
|
|
|
34679
|
-
// ../sdk/src/models/
|
|
35076
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
35077
|
+
import * as z77 from "zod/v4-mini";
|
|
35078
|
+
|
|
35079
|
+
// ../sdk/src/models/variant-env.ts
|
|
34680
35080
|
import * as z76 from "zod/v4-mini";
|
|
35081
|
+
var ListPlansToVariantAddItemEnum = {
|
|
35082
|
+
Inf: "inf"
|
|
35083
|
+
};
|
|
34681
35084
|
var ListPlansVariantRemoveItemBillingMethod = {
|
|
34682
35085
|
Prepaid: "prepaid",
|
|
34683
35086
|
UsageBased: "usage_based"
|
|
@@ -34901,22 +35304,31 @@ var VariantEnv = {
|
|
|
34901
35304
|
Sandbox: "sandbox",
|
|
34902
35305
|
Live: "live"
|
|
34903
35306
|
};
|
|
34904
|
-
var
|
|
34905
|
-
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
|
|
34910
|
-
|
|
34911
|
-
|
|
34912
|
-
|
|
34913
|
-
|
|
34914
|
-
var
|
|
34915
|
-
|
|
34916
|
-
|
|
34917
|
-
|
|
34918
|
-
|
|
34919
|
-
|
|
35307
|
+
var ListPlansVariantAddItemDimensionsUnion1$inboundSchema = smartUnion([
|
|
35308
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35309
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35310
|
+
]);
|
|
35311
|
+
var ListPlansVariantAddItemMultipliers1$inboundSchema = z76.object({
|
|
35312
|
+
match: z76.record(z76.string(), string5()),
|
|
35313
|
+
factor: optional3(number2()),
|
|
35314
|
+
add: optional3(number2())
|
|
35315
|
+
});
|
|
35316
|
+
var ListPlansToVariantAddItemEnum$inboundSchema = z76.enum(ListPlansToVariantAddItemEnum);
|
|
35317
|
+
var ListPlansVariantAddItemFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), ListPlansToVariantAddItemEnum$inboundSchema]);
|
|
35318
|
+
var ListPlansVariantAddItemFeatureOverrideTier$inboundSchema = z76.pipe(
|
|
35319
|
+
z76.object({
|
|
35320
|
+
to: smartUnion([
|
|
35321
|
+
number2(),
|
|
35322
|
+
ListPlansToVariantAddItemEnum$inboundSchema
|
|
35323
|
+
]),
|
|
35324
|
+
credit_cost: number2()
|
|
35325
|
+
}),
|
|
35326
|
+
z76.transform((v) => {
|
|
35327
|
+
return remap(v, {
|
|
35328
|
+
"credit_cost": "creditCost"
|
|
35329
|
+
});
|
|
35330
|
+
})
|
|
35331
|
+
);
|
|
34920
35332
|
var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
34921
35333
|
z76.object({
|
|
34922
35334
|
metered_feature_id: string5(),
|
|
@@ -34924,14 +35336,20 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34924
35336
|
dimensions: optional3(
|
|
34925
35337
|
z76.record(
|
|
34926
35338
|
z76.string(),
|
|
34927
|
-
|
|
35339
|
+
smartUnion([
|
|
35340
|
+
ListPlansDimensionsVariantAddItem1$inboundSchema,
|
|
35341
|
+
ListPlansDimensionsVariantAddItem2$inboundSchema
|
|
35342
|
+
])
|
|
34928
35343
|
)
|
|
34929
35344
|
),
|
|
34930
|
-
multipliers: optional3(
|
|
34931
|
-
z76.
|
|
34932
|
-
|
|
35345
|
+
multipliers: optional3(z76.record(
|
|
35346
|
+
z76.string(),
|
|
35347
|
+
z76.lazy(() => ListPlansVariantAddItemMultipliers1$inboundSchema)
|
|
35348
|
+
)),
|
|
34933
35349
|
tier_behavior: literal3("graduated"),
|
|
34934
|
-
tiers: z76.array(
|
|
35350
|
+
tiers: z76.array(z76.lazy(
|
|
35351
|
+
() => ListPlansVariantAddItemFeatureOverrideTier$inboundSchema
|
|
35352
|
+
))
|
|
34935
35353
|
}),
|
|
34936
35354
|
z76.transform((v) => {
|
|
34937
35355
|
return remap(v, {
|
|
@@ -34944,7 +35362,8 @@ var ListPlansCreditSchemaVariantAddItem1$inboundSchema = z76.pipe(
|
|
|
34944
35362
|
var ListPlansVariantAddItemCreditSchemaUnion$inboundSchema = smartUnion(
|
|
34945
35363
|
[
|
|
34946
35364
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34947
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35365
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35366
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34948
35367
|
]
|
|
34949
35368
|
);
|
|
34950
35369
|
var ListPlansVariantAddItemProviderMarkups$inboundSchema = z76.object({
|
|
@@ -34987,7 +35406,8 @@ var ListPlansVariantAddItemFeatureOverride$inboundSchema = z76.pipe(
|
|
|
34987
35406
|
z76.object({
|
|
34988
35407
|
credit_schema: optional3(z76.array(smartUnion([
|
|
34989
35408
|
z76.lazy(() => ListPlansCreditSchemaVariantAddItem1$inboundSchema),
|
|
34990
|
-
ListPlansCreditSchemaVariantAddItem2$inboundSchema
|
|
35409
|
+
ListPlansCreditSchemaVariantAddItem2$inboundSchema,
|
|
35410
|
+
ListPlansCreditSchemaVariantAddItem3$inboundSchema
|
|
34991
35411
|
]))),
|
|
34992
35412
|
markups: optional3(z76.lazy(
|
|
34993
35413
|
() => ListPlansVariantAddItemMarkups$inboundSchema
|
|
@@ -35350,6 +35770,17 @@ var ListPlansVariantUpsertLicenseExpiry$inboundSchema = z76.object({
|
|
|
35350
35770
|
duration: ListPlansVariantUpsertLicenseDuration$inboundSchema,
|
|
35351
35771
|
length: number2()
|
|
35352
35772
|
});
|
|
35773
|
+
var ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema = z76.pipe(
|
|
35774
|
+
z76.object({
|
|
35775
|
+
metered_feature_id: string5(),
|
|
35776
|
+
excluded: literal3(true)
|
|
35777
|
+
}),
|
|
35778
|
+
z76.transform((v) => {
|
|
35779
|
+
return remap(v, {
|
|
35780
|
+
"metered_feature_id": "meteredFeatureId"
|
|
35781
|
+
});
|
|
35782
|
+
})
|
|
35783
|
+
);
|
|
35353
35784
|
var ListPlansDimensionsVariantUpsertLicense4$inboundSchema = z76.pipe(
|
|
35354
35785
|
z76.object({
|
|
35355
35786
|
match: z76.record(z76.string(), string5()),
|
|
@@ -35518,7 +35949,8 @@ var ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema = z76.pipe(
|
|
|
35518
35949
|
);
|
|
35519
35950
|
var ListPlansVariantUpsertLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
35520
35951
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35521
|
-
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema)
|
|
35952
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema),
|
|
35953
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35522
35954
|
]);
|
|
35523
35955
|
var ListPlansVariantUpsertLicenseProviderMarkups$inboundSchema = z76.object({
|
|
35524
35956
|
markup: number2()
|
|
@@ -35562,7 +35994,8 @@ var ListPlansVariantUpsertLicenseFeatureOverride$inboundSchema = z76.pipe(
|
|
|
35562
35994
|
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense1$inboundSchema),
|
|
35563
35995
|
z76.lazy(
|
|
35564
35996
|
() => ListPlansCreditSchemaVariantUpsertLicense2$inboundSchema
|
|
35565
|
-
)
|
|
35997
|
+
),
|
|
35998
|
+
z76.lazy(() => ListPlansCreditSchemaVariantUpsertLicense3$inboundSchema)
|
|
35566
35999
|
]))),
|
|
35567
36000
|
markups: optional3(z76.lazy(
|
|
35568
36001
|
() => ListPlansVariantUpsertLicenseMarkups$inboundSchema
|
|
@@ -35944,6 +36377,17 @@ var VariantPlanExpiry$inboundSchema = z76.object({
|
|
|
35944
36377
|
duration: VariantPlanDuration$inboundSchema,
|
|
35945
36378
|
length: number2()
|
|
35946
36379
|
});
|
|
36380
|
+
var CreditSchemaVariantPlanFeatureOverride3$inboundSchema = z76.pipe(
|
|
36381
|
+
z76.object({
|
|
36382
|
+
metered_feature_id: string5(),
|
|
36383
|
+
excluded: literal3(true)
|
|
36384
|
+
}),
|
|
36385
|
+
z76.transform((v) => {
|
|
36386
|
+
return remap(v, {
|
|
36387
|
+
"metered_feature_id": "meteredFeatureId"
|
|
36388
|
+
});
|
|
36389
|
+
})
|
|
36390
|
+
);
|
|
35947
36391
|
var DimensionsVariantPlan4$inboundSchema = z76.pipe(
|
|
35948
36392
|
z76.object({
|
|
35949
36393
|
match: z76.record(z76.string(), string5()),
|
|
@@ -36112,7 +36556,8 @@ var CreditSchemaVariantPlanFeatureOverride1$inboundSchema = z76.pipe(
|
|
|
36112
36556
|
);
|
|
36113
36557
|
var VariantPlanCreditSchemaUnion$inboundSchema = smartUnion([
|
|
36114
36558
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36115
|
-
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema)
|
|
36559
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema),
|
|
36560
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36116
36561
|
]);
|
|
36117
36562
|
var VariantPlanProviderMarkups$inboundSchema = z76.object({
|
|
36118
36563
|
markup: number2()
|
|
@@ -36156,7 +36601,8 @@ var VariantPlanFeatureOverride$inboundSchema = z76.pipe(
|
|
|
36156
36601
|
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride1$inboundSchema),
|
|
36157
36602
|
z76.lazy(
|
|
36158
36603
|
() => CreditSchemaVariantPlanFeatureOverride2$inboundSchema
|
|
36159
|
-
)
|
|
36604
|
+
),
|
|
36605
|
+
z76.lazy(() => CreditSchemaVariantPlanFeatureOverride3$inboundSchema)
|
|
36160
36606
|
]))),
|
|
36161
36607
|
markups: optional3(z76.lazy(
|
|
36162
36608
|
() => VariantPlanMarkups$inboundSchema
|
|
@@ -36262,12 +36708,57 @@ var VariantFreeTrial$inboundSchema = z76.pipe(
|
|
|
36262
36708
|
})
|
|
36263
36709
|
);
|
|
36264
36710
|
var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
|
|
36265
|
-
|
|
36266
|
-
|
|
36267
|
-
|
|
36268
|
-
|
|
36711
|
+
|
|
36712
|
+
// ../sdk/src/models/list-plans-response.ts
|
|
36713
|
+
var VariantPlanAutoTopupInterval = {
|
|
36714
|
+
Hour: "hour",
|
|
36715
|
+
Day: "day",
|
|
36716
|
+
Week: "week",
|
|
36717
|
+
Month: "month"
|
|
36718
|
+
};
|
|
36719
|
+
var VariantPlanLimitType = {
|
|
36720
|
+
Absolute: "absolute",
|
|
36721
|
+
UsagePercentage: "usage_percentage"
|
|
36722
|
+
};
|
|
36723
|
+
var VariantPlanUsageLimitInterval = {
|
|
36724
|
+
Day: "day",
|
|
36725
|
+
Week: "week",
|
|
36726
|
+
Month: "month",
|
|
36727
|
+
Year: "year"
|
|
36728
|
+
};
|
|
36729
|
+
var VariantPlanAnchor = {
|
|
36730
|
+
BillingCycle: "billing_cycle",
|
|
36731
|
+
Utc: "utc"
|
|
36732
|
+
};
|
|
36733
|
+
var VariantPlanThresholdType = {
|
|
36734
|
+
Usage: "usage",
|
|
36735
|
+
UsagePercentage: "usage_percentage",
|
|
36736
|
+
Remaining: "remaining",
|
|
36737
|
+
RemainingPercentage: "remaining_percentage"
|
|
36738
|
+
};
|
|
36739
|
+
var VariantPlanBasis = {
|
|
36740
|
+
Balance: "balance",
|
|
36741
|
+
Included: "included",
|
|
36742
|
+
Recurring: "recurring",
|
|
36743
|
+
UsageLimit: "usage_limit"
|
|
36744
|
+
};
|
|
36745
|
+
var VariantStatus = {
|
|
36746
|
+
Active: "active",
|
|
36747
|
+
Scheduled: "scheduled"
|
|
36748
|
+
};
|
|
36749
|
+
var VariantAttachAction = {
|
|
36750
|
+
Activate: "activate",
|
|
36751
|
+
Upgrade: "upgrade",
|
|
36752
|
+
Downgrade: "downgrade",
|
|
36753
|
+
None: "none",
|
|
36754
|
+
Purchase: "purchase"
|
|
36755
|
+
};
|
|
36756
|
+
var VariantConfig$inboundSchema = z77.pipe(
|
|
36757
|
+
z77.object({
|
|
36758
|
+
ignore_past_due: z77._default(boolean2(), false),
|
|
36759
|
+
anchor_to_month_start: z77._default(boolean2(), false)
|
|
36269
36760
|
}),
|
|
36270
|
-
|
|
36761
|
+
z77.transform((v) => {
|
|
36271
36762
|
return remap(v, {
|
|
36272
36763
|
"ignore_past_due": "ignorePastDue",
|
|
36273
36764
|
"anchor_to_month_start": "anchorToMonthStart"
|
|
@@ -36275,30 +36766,30 @@ var VariantConfig$inboundSchema = z76.pipe(
|
|
|
36275
36766
|
})
|
|
36276
36767
|
);
|
|
36277
36768
|
var VariantPlanAutoTopupInterval$inboundSchema = inboundSchema(VariantPlanAutoTopupInterval);
|
|
36278
|
-
var VariantPlanPurchaseLimit$inboundSchema =
|
|
36279
|
-
|
|
36769
|
+
var VariantPlanPurchaseLimit$inboundSchema = z77.pipe(
|
|
36770
|
+
z77.object({
|
|
36280
36771
|
interval: VariantPlanAutoTopupInterval$inboundSchema,
|
|
36281
|
-
interval_count:
|
|
36772
|
+
interval_count: z77._default(number2(), 1),
|
|
36282
36773
|
limit: number2()
|
|
36283
36774
|
}),
|
|
36284
|
-
|
|
36775
|
+
z77.transform((v) => {
|
|
36285
36776
|
return remap(v, {
|
|
36286
36777
|
"interval_count": "intervalCount"
|
|
36287
36778
|
});
|
|
36288
36779
|
})
|
|
36289
36780
|
);
|
|
36290
|
-
var VariantPlanAutoTopup$inboundSchema =
|
|
36291
|
-
|
|
36781
|
+
var VariantPlanAutoTopup$inboundSchema = z77.pipe(
|
|
36782
|
+
z77.object({
|
|
36292
36783
|
feature_id: string5(),
|
|
36293
|
-
enabled:
|
|
36784
|
+
enabled: z77._default(boolean2(), false),
|
|
36294
36785
|
threshold: number2(),
|
|
36295
36786
|
quantity: number2(),
|
|
36296
36787
|
purchase_limit: optional3(
|
|
36297
|
-
|
|
36788
|
+
z77.lazy(() => VariantPlanPurchaseLimit$inboundSchema)
|
|
36298
36789
|
),
|
|
36299
36790
|
invoice_mode: optional3(boolean2())
|
|
36300
36791
|
}),
|
|
36301
|
-
|
|
36792
|
+
z77.transform((v) => {
|
|
36302
36793
|
return remap(v, {
|
|
36303
36794
|
"feature_id": "featureId",
|
|
36304
36795
|
"purchase_limit": "purchaseLimit",
|
|
@@ -36307,15 +36798,15 @@ var VariantPlanAutoTopup$inboundSchema = z76.pipe(
|
|
|
36307
36798
|
})
|
|
36308
36799
|
);
|
|
36309
36800
|
var VariantPlanLimitType$inboundSchema = inboundSchema(VariantPlanLimitType);
|
|
36310
|
-
var VariantPlanSpendLimit$inboundSchema =
|
|
36311
|
-
|
|
36801
|
+
var VariantPlanSpendLimit$inboundSchema = z77.pipe(
|
|
36802
|
+
z77.object({
|
|
36312
36803
|
feature_id: optional3(string5()),
|
|
36313
|
-
enabled:
|
|
36804
|
+
enabled: z77._default(boolean2(), false),
|
|
36314
36805
|
limit_type: optional3(VariantPlanLimitType$inboundSchema),
|
|
36315
36806
|
overage_limit: optional3(number2()),
|
|
36316
36807
|
skip_overage_billing: optional3(boolean2())
|
|
36317
36808
|
}),
|
|
36318
|
-
|
|
36809
|
+
z77.transform((v) => {
|
|
36319
36810
|
return remap(v, {
|
|
36320
36811
|
"feature_id": "featureId",
|
|
36321
36812
|
"limit_type": "limitType",
|
|
@@ -36325,35 +36816,6 @@ var VariantPlanSpendLimit$inboundSchema = z76.pipe(
|
|
|
36325
36816
|
})
|
|
36326
36817
|
);
|
|
36327
36818
|
var VariantPlanUsageLimitInterval$inboundSchema = inboundSchema(VariantPlanUsageLimitInterval);
|
|
36328
|
-
|
|
36329
|
-
// ../sdk/src/models/list-plans-response.ts
|
|
36330
|
-
var VariantPlanAnchor = {
|
|
36331
|
-
BillingCycle: "billing_cycle",
|
|
36332
|
-
Utc: "utc"
|
|
36333
|
-
};
|
|
36334
|
-
var VariantPlanThresholdType = {
|
|
36335
|
-
Usage: "usage",
|
|
36336
|
-
UsagePercentage: "usage_percentage",
|
|
36337
|
-
Remaining: "remaining",
|
|
36338
|
-
RemainingPercentage: "remaining_percentage"
|
|
36339
|
-
};
|
|
36340
|
-
var VariantPlanBasis = {
|
|
36341
|
-
Balance: "balance",
|
|
36342
|
-
Included: "included",
|
|
36343
|
-
Recurring: "recurring",
|
|
36344
|
-
UsageLimit: "usage_limit"
|
|
36345
|
-
};
|
|
36346
|
-
var VariantStatus = {
|
|
36347
|
-
Active: "active",
|
|
36348
|
-
Scheduled: "scheduled"
|
|
36349
|
-
};
|
|
36350
|
-
var VariantAttachAction = {
|
|
36351
|
-
Activate: "activate",
|
|
36352
|
-
Upgrade: "upgrade",
|
|
36353
|
-
Downgrade: "downgrade",
|
|
36354
|
-
None: "none",
|
|
36355
|
-
Purchase: "purchase"
|
|
36356
|
-
};
|
|
36357
36819
|
var VariantPlanAnchor$inboundSchema = inboundSchema(VariantPlanAnchor);
|
|
36358
36820
|
var VariantPlanUsageLimitFilter$inboundSchema = z77.object({
|
|
36359
36821
|
properties: z77.record(z77.string(), string5())
|
|
@@ -36412,8 +36874,12 @@ var VariantPlanOverageAllowed$inboundSchema = z77.pipe(
|
|
|
36412
36874
|
);
|
|
36413
36875
|
var VariantPlanBillingControls$inboundSchema = z77.pipe(
|
|
36414
36876
|
z77.object({
|
|
36415
|
-
auto_topups: optional3(
|
|
36416
|
-
|
|
36877
|
+
auto_topups: optional3(
|
|
36878
|
+
z77.array(z77.lazy(() => VariantPlanAutoTopup$inboundSchema))
|
|
36879
|
+
),
|
|
36880
|
+
spend_limits: optional3(
|
|
36881
|
+
z77.array(z77.lazy(() => VariantPlanSpendLimit$inboundSchema))
|
|
36882
|
+
),
|
|
36417
36883
|
usage_limits: optional3(
|
|
36418
36884
|
z77.array(z77.lazy(() => VariantPlanUsageLimit$inboundSchema))
|
|
36419
36885
|
),
|
|
@@ -36469,7 +36935,7 @@ var ListPlansPlan$inboundSchema = z77.pipe(
|
|
|
36469
36935
|
created_at: number2(),
|
|
36470
36936
|
env: VariantEnv$inboundSchema,
|
|
36471
36937
|
archived: boolean2(),
|
|
36472
|
-
config: VariantConfig$inboundSchema,
|
|
36938
|
+
config: z77.lazy(() => VariantConfig$inboundSchema),
|
|
36473
36939
|
billing_controls: optional3(
|
|
36474
36940
|
z77.lazy(() => VariantPlanBillingControls$inboundSchema)
|
|
36475
36941
|
),
|
|
@@ -37235,6 +37701,17 @@ var MultiAttachExpiry$outboundSchema = z85.object({
|
|
|
37235
37701
|
duration: MultiAttachDuration$outboundSchema,
|
|
37236
37702
|
length: z85.number()
|
|
37237
37703
|
});
|
|
37704
|
+
var MultiAttachCreditSchema3$outboundSchema = z85.pipe(
|
|
37705
|
+
z85.object({
|
|
37706
|
+
meteredFeatureId: z85.string(),
|
|
37707
|
+
excluded: z85.literal(true)
|
|
37708
|
+
}),
|
|
37709
|
+
z85.transform((v) => {
|
|
37710
|
+
return remap(v, {
|
|
37711
|
+
meteredFeatureId: "metered_feature_id"
|
|
37712
|
+
});
|
|
37713
|
+
})
|
|
37714
|
+
);
|
|
37238
37715
|
var MultiAttachDimensionsMatch4$outboundSchema = smartUnion([z85.string(), z85.number(), z85.boolean()]);
|
|
37239
37716
|
var MultiAttachDimensions4$outboundSchema = z85.pipe(
|
|
37240
37717
|
z85.object({
|
|
@@ -37419,7 +37896,8 @@ var MultiAttachCreditSchema1$outboundSchema = z85.pipe(
|
|
|
37419
37896
|
);
|
|
37420
37897
|
var MultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
37421
37898
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37422
|
-
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema)
|
|
37899
|
+
z85.lazy(() => MultiAttachCreditSchema2$outboundSchema),
|
|
37900
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37423
37901
|
]);
|
|
37424
37902
|
var MultiAttachProviderMarkups$outboundSchema = z85.object({
|
|
37425
37903
|
markup: z85.number()
|
|
@@ -37463,7 +37941,8 @@ var MultiAttachFeatureOverride$outboundSchema = z85.pipe(
|
|
|
37463
37941
|
z85.lazy(() => MultiAttachCreditSchema1$outboundSchema),
|
|
37464
37942
|
z85.lazy(
|
|
37465
37943
|
() => MultiAttachCreditSchema2$outboundSchema
|
|
37466
|
-
)
|
|
37944
|
+
),
|
|
37945
|
+
z85.lazy(() => MultiAttachCreditSchema3$outboundSchema)
|
|
37467
37946
|
]))),
|
|
37468
37947
|
markups: z85.optional(z85.lazy(
|
|
37469
37948
|
() => MultiAttachMarkups$outboundSchema
|
|
@@ -38023,7 +38502,7 @@ var PayInvoiceResponse$inboundSchema = z88.object({
|
|
|
38023
38502
|
// ../sdk/src/models/preview-attach-response.ts
|
|
38024
38503
|
import * as z90 from "zod/v4-mini";
|
|
38025
38504
|
|
|
38026
|
-
// ../sdk/src/models/preview-attach-upsert-license-
|
|
38505
|
+
// ../sdk/src/models/preview-attach-upsert-license-proration.ts
|
|
38027
38506
|
import * as z89 from "zod/v4-mini";
|
|
38028
38507
|
var PreviewAttachDurationType = {
|
|
38029
38508
|
Day: "day",
|
|
@@ -38272,10 +38751,6 @@ var PreviewAttachUpsertLicenseOnDecrease = {
|
|
|
38272
38751
|
None: "none",
|
|
38273
38752
|
NoProrations: "no_prorations"
|
|
38274
38753
|
};
|
|
38275
|
-
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
38276
|
-
Month: "month",
|
|
38277
|
-
Forever: "forever"
|
|
38278
|
-
};
|
|
38279
38754
|
var PreviewAttachFeatureQuantityRequestBody$outboundSchema = z89.pipe(
|
|
38280
38755
|
z89.object({
|
|
38281
38756
|
featureId: z89.string(),
|
|
@@ -38440,6 +38915,17 @@ var PreviewAttachItemExpiry$outboundSchema = z89.object({
|
|
|
38440
38915
|
duration: PreviewAttachItemDuration$outboundSchema,
|
|
38441
38916
|
length: z89.number()
|
|
38442
38917
|
});
|
|
38918
|
+
var PreviewAttachCreditSchemaItem3$outboundSchema = z89.pipe(
|
|
38919
|
+
z89.object({
|
|
38920
|
+
meteredFeatureId: z89.string(),
|
|
38921
|
+
excluded: z89.literal(true)
|
|
38922
|
+
}),
|
|
38923
|
+
z89.transform((v) => {
|
|
38924
|
+
return remap(v, {
|
|
38925
|
+
meteredFeatureId: "metered_feature_id"
|
|
38926
|
+
});
|
|
38927
|
+
})
|
|
38928
|
+
);
|
|
38443
38929
|
var PreviewAttachDimensionsItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38444
38930
|
var PreviewAttachDimensionsItem4$outboundSchema = z89.pipe(
|
|
38445
38931
|
z89.object({
|
|
@@ -38636,7 +39122,8 @@ var PreviewAttachCreditSchemaItem1$outboundSchema = z89.pipe(
|
|
|
38636
39122
|
);
|
|
38637
39123
|
var PreviewAttachItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
38638
39124
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38639
|
-
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema)
|
|
39125
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem2$outboundSchema),
|
|
39126
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38640
39127
|
]);
|
|
38641
39128
|
var PreviewAttachItemProviderMarkups$outboundSchema = z89.object({
|
|
38642
39129
|
markup: z89.number()
|
|
@@ -38680,7 +39167,8 @@ var PreviewAttachItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
38680
39167
|
z89.lazy(() => PreviewAttachCreditSchemaItem1$outboundSchema),
|
|
38681
39168
|
z89.lazy(
|
|
38682
39169
|
() => PreviewAttachCreditSchemaItem2$outboundSchema
|
|
38683
|
-
)
|
|
39170
|
+
),
|
|
39171
|
+
z89.lazy(() => PreviewAttachCreditSchemaItem3$outboundSchema)
|
|
38684
39172
|
]))),
|
|
38685
39173
|
markups: z89.optional(z89.lazy(
|
|
38686
39174
|
() => PreviewAttachItemMarkups$outboundSchema
|
|
@@ -38839,6 +39327,17 @@ var PreviewAttachAddItemExpiry$outboundSchema = z89.object({
|
|
|
38839
39327
|
duration: PreviewAttachAddItemDuration$outboundSchema,
|
|
38840
39328
|
length: z89.number()
|
|
38841
39329
|
});
|
|
39330
|
+
var PreviewAttachCreditSchemaAddItem3$outboundSchema = z89.pipe(
|
|
39331
|
+
z89.object({
|
|
39332
|
+
meteredFeatureId: z89.string(),
|
|
39333
|
+
excluded: z89.literal(true)
|
|
39334
|
+
}),
|
|
39335
|
+
z89.transform((v) => {
|
|
39336
|
+
return remap(v, {
|
|
39337
|
+
meteredFeatureId: "metered_feature_id"
|
|
39338
|
+
});
|
|
39339
|
+
})
|
|
39340
|
+
);
|
|
38842
39341
|
var PreviewAttachDimensionsAddItemMatch4$outboundSchema = smartUnion([z89.string(), z89.number(), z89.boolean()]);
|
|
38843
39342
|
var PreviewAttachDimensionsAddItem4$outboundSchema = z89.pipe(
|
|
38844
39343
|
z89.object({
|
|
@@ -39045,7 +39544,8 @@ var PreviewAttachCreditSchemaAddItem1$outboundSchema = z89.pipe(
|
|
|
39045
39544
|
);
|
|
39046
39545
|
var PreviewAttachAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39047
39546
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39048
|
-
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema)
|
|
39547
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem2$outboundSchema),
|
|
39548
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39049
39549
|
]);
|
|
39050
39550
|
var PreviewAttachAddItemProviderMarkups$outboundSchema = z89.object({
|
|
39051
39551
|
markup: z89.number()
|
|
@@ -39089,7 +39589,8 @@ var PreviewAttachAddItemFeatureOverride$outboundSchema = z89.pipe(
|
|
|
39089
39589
|
z89.lazy(() => PreviewAttachCreditSchemaAddItem1$outboundSchema),
|
|
39090
39590
|
z89.lazy(
|
|
39091
39591
|
() => PreviewAttachCreditSchemaAddItem2$outboundSchema
|
|
39092
|
-
)
|
|
39592
|
+
),
|
|
39593
|
+
z89.lazy(() => PreviewAttachCreditSchemaAddItem3$outboundSchema)
|
|
39093
39594
|
]))),
|
|
39094
39595
|
markups: z89.optional(z89.lazy(
|
|
39095
39596
|
() => PreviewAttachAddItemMarkups$outboundSchema
|
|
@@ -39453,26 +39954,12 @@ var PreviewAttachUpsertLicenseProration$outboundSchema = z89.pipe(
|
|
|
39453
39954
|
});
|
|
39454
39955
|
})
|
|
39455
39956
|
);
|
|
39456
|
-
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z89.enum(
|
|
39457
|
-
PreviewAttachUpsertLicenseExpiryDurationType
|
|
39458
|
-
);
|
|
39459
|
-
var PreviewAttachUpsertLicenseRollover$outboundSchema = z89.pipe(
|
|
39460
|
-
z89.object({
|
|
39461
|
-
max: z89.optional(z89.number()),
|
|
39462
|
-
maxPercentage: z89.optional(z89.number()),
|
|
39463
|
-
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
39464
|
-
expiryDurationLength: z89.optional(z89.number())
|
|
39465
|
-
}),
|
|
39466
|
-
z89.transform((v) => {
|
|
39467
|
-
return remap(v, {
|
|
39468
|
-
maxPercentage: "max_percentage",
|
|
39469
|
-
expiryDurationType: "expiry_duration_type",
|
|
39470
|
-
expiryDurationLength: "expiry_duration_length"
|
|
39471
|
-
});
|
|
39472
|
-
})
|
|
39473
|
-
);
|
|
39474
39957
|
|
|
39475
39958
|
// ../sdk/src/models/preview-attach-response.ts
|
|
39959
|
+
var PreviewAttachUpsertLicenseExpiryDurationType = {
|
|
39960
|
+
Month: "month",
|
|
39961
|
+
Forever: "forever"
|
|
39962
|
+
};
|
|
39476
39963
|
var PreviewAttachUpsertLicenseDuration = {
|
|
39477
39964
|
Day: "day",
|
|
39478
39965
|
Week: "week",
|
|
@@ -39597,11 +40084,40 @@ var PreviewAttachStatus = {
|
|
|
39597
40084
|
Incomplete: "incomplete",
|
|
39598
40085
|
RequiresLocation: "requires_location"
|
|
39599
40086
|
};
|
|
40087
|
+
var PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema = z90.enum(
|
|
40088
|
+
PreviewAttachUpsertLicenseExpiryDurationType
|
|
40089
|
+
);
|
|
40090
|
+
var PreviewAttachUpsertLicenseRollover$outboundSchema = z90.pipe(
|
|
40091
|
+
z90.object({
|
|
40092
|
+
max: z90.optional(z90.number()),
|
|
40093
|
+
maxPercentage: z90.optional(z90.number()),
|
|
40094
|
+
expiryDurationType: PreviewAttachUpsertLicenseExpiryDurationType$outboundSchema,
|
|
40095
|
+
expiryDurationLength: z90.optional(z90.number())
|
|
40096
|
+
}),
|
|
40097
|
+
z90.transform((v) => {
|
|
40098
|
+
return remap(v, {
|
|
40099
|
+
maxPercentage: "max_percentage",
|
|
40100
|
+
expiryDurationType: "expiry_duration_type",
|
|
40101
|
+
expiryDurationLength: "expiry_duration_length"
|
|
40102
|
+
});
|
|
40103
|
+
})
|
|
40104
|
+
);
|
|
39600
40105
|
var PreviewAttachUpsertLicenseDuration$outboundSchema = z90.enum(PreviewAttachUpsertLicenseDuration);
|
|
39601
40106
|
var PreviewAttachUpsertLicenseExpiry$outboundSchema = z90.object({
|
|
39602
40107
|
duration: PreviewAttachUpsertLicenseDuration$outboundSchema,
|
|
39603
40108
|
length: z90.number()
|
|
39604
40109
|
});
|
|
40110
|
+
var PreviewAttachCreditSchemaUpsertLicense3$outboundSchema = z90.pipe(
|
|
40111
|
+
z90.object({
|
|
40112
|
+
meteredFeatureId: z90.string(),
|
|
40113
|
+
excluded: z90.literal(true)
|
|
40114
|
+
}),
|
|
40115
|
+
z90.transform((v) => {
|
|
40116
|
+
return remap(v, {
|
|
40117
|
+
meteredFeatureId: "metered_feature_id"
|
|
40118
|
+
});
|
|
40119
|
+
})
|
|
40120
|
+
);
|
|
39605
40121
|
var PreviewAttachDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z90.string(), z90.number(), z90.boolean()]);
|
|
39606
40122
|
var PreviewAttachDimensionsUpsertLicense4$outboundSchema = z90.pipe(
|
|
39607
40123
|
z90.object({
|
|
@@ -39811,7 +40327,8 @@ var PreviewAttachCreditSchemaUpsertLicense1$outboundSchema = z90.pipe(
|
|
|
39811
40327
|
);
|
|
39812
40328
|
var PreviewAttachUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
39813
40329
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39814
|
-
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema)
|
|
40330
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema),
|
|
40331
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39815
40332
|
]);
|
|
39816
40333
|
var PreviewAttachUpsertLicenseProviderMarkups$outboundSchema = z90.object({
|
|
39817
40334
|
markup: z90.number()
|
|
@@ -39855,7 +40372,8 @@ var PreviewAttachUpsertLicenseFeatureOverride$outboundSchema = z90.pipe(
|
|
|
39855
40372
|
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense1$outboundSchema),
|
|
39856
40373
|
z90.lazy(
|
|
39857
40374
|
() => PreviewAttachCreditSchemaUpsertLicense2$outboundSchema
|
|
39858
|
-
)
|
|
40375
|
+
),
|
|
40376
|
+
z90.lazy(() => PreviewAttachCreditSchemaUpsertLicense3$outboundSchema)
|
|
39859
40377
|
]))),
|
|
39860
40378
|
markups: z90.optional(z90.lazy(
|
|
39861
40379
|
() => PreviewAttachUpsertLicenseMarkups$outboundSchema
|
|
@@ -39879,7 +40397,9 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z90.pipe(
|
|
|
39879
40397
|
reset: z90.optional(PreviewAttachUpsertLicenseReset$outboundSchema),
|
|
39880
40398
|
price: z90.optional(PreviewAttachUpsertLicensePrice$outboundSchema),
|
|
39881
40399
|
proration: z90.optional(PreviewAttachUpsertLicenseProration$outboundSchema),
|
|
39882
|
-
rollover: z90.optional(
|
|
40400
|
+
rollover: z90.optional(
|
|
40401
|
+
z90.lazy(() => PreviewAttachUpsertLicenseRollover$outboundSchema)
|
|
40402
|
+
),
|
|
39883
40403
|
expiry: z90.optional(
|
|
39884
40404
|
z90.lazy(() => PreviewAttachUpsertLicenseExpiry$outboundSchema)
|
|
39885
40405
|
),
|
|
@@ -40899,6 +41419,17 @@ var PreviewMultiAttachExpiry$outboundSchema = z91.object({
|
|
|
40899
41419
|
duration: PreviewMultiAttachDuration$outboundSchema,
|
|
40900
41420
|
length: z91.number()
|
|
40901
41421
|
});
|
|
41422
|
+
var PreviewMultiAttachCreditSchema3$outboundSchema = z91.pipe(
|
|
41423
|
+
z91.object({
|
|
41424
|
+
meteredFeatureId: z91.string(),
|
|
41425
|
+
excluded: z91.literal(true)
|
|
41426
|
+
}),
|
|
41427
|
+
z91.transform((v) => {
|
|
41428
|
+
return remap(v, {
|
|
41429
|
+
meteredFeatureId: "metered_feature_id"
|
|
41430
|
+
});
|
|
41431
|
+
})
|
|
41432
|
+
);
|
|
40902
41433
|
var PreviewMultiAttachDimensionsMatch4$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
|
|
40903
41434
|
var PreviewMultiAttachDimensions4$outboundSchema = z91.pipe(
|
|
40904
41435
|
z91.object({
|
|
@@ -41101,7 +41632,8 @@ var PreviewMultiAttachCreditSchema1$outboundSchema = z91.pipe(
|
|
|
41101
41632
|
);
|
|
41102
41633
|
var PreviewMultiAttachCreditSchemaUnion$outboundSchema = smartUnion([
|
|
41103
41634
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41104
|
-
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema)
|
|
41635
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema2$outboundSchema),
|
|
41636
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41105
41637
|
]);
|
|
41106
41638
|
var PreviewMultiAttachProviderMarkups$outboundSchema = z91.object({
|
|
41107
41639
|
markup: z91.number()
|
|
@@ -41145,7 +41677,8 @@ var PreviewMultiAttachFeatureOverride$outboundSchema = z91.pipe(
|
|
|
41145
41677
|
z91.lazy(() => PreviewMultiAttachCreditSchema1$outboundSchema),
|
|
41146
41678
|
z91.lazy(
|
|
41147
41679
|
() => PreviewMultiAttachCreditSchema2$outboundSchema
|
|
41148
|
-
)
|
|
41680
|
+
),
|
|
41681
|
+
z91.lazy(() => PreviewMultiAttachCreditSchema3$outboundSchema)
|
|
41149
41682
|
]))),
|
|
41150
41683
|
markups: z91.optional(z91.lazy(
|
|
41151
41684
|
() => PreviewMultiAttachMarkups$outboundSchema
|
|
@@ -42218,7 +42751,7 @@ var PreviewSyncWebhooksResponse$inboundSchema = z93.object({
|
|
|
42218
42751
|
// ../sdk/src/models/preview-update-response.ts
|
|
42219
42752
|
import * as z95 from "zod/v4-mini";
|
|
42220
42753
|
|
|
42221
|
-
// ../sdk/src/models/preview-update-upsert-license-
|
|
42754
|
+
// ../sdk/src/models/preview-update-upsert-license-proration.ts
|
|
42222
42755
|
import * as z94 from "zod/v4-mini";
|
|
42223
42756
|
var PreviewUpdateDurationType = {
|
|
42224
42757
|
Day: "day",
|
|
@@ -42467,10 +43000,6 @@ var PreviewUpdateUpsertLicenseOnDecrease = {
|
|
|
42467
43000
|
None: "none",
|
|
42468
43001
|
NoProrations: "no_prorations"
|
|
42469
43002
|
};
|
|
42470
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
42471
|
-
Month: "month",
|
|
42472
|
-
Forever: "forever"
|
|
42473
|
-
};
|
|
42474
43003
|
var PreviewUpdateFeatureQuantityRequestBody$outboundSchema = z94.pipe(
|
|
42475
43004
|
z94.object({
|
|
42476
43005
|
featureId: z94.string(),
|
|
@@ -42635,6 +43164,17 @@ var PreviewUpdateItemExpiry$outboundSchema = z94.object({
|
|
|
42635
43164
|
duration: PreviewUpdateItemDuration$outboundSchema,
|
|
42636
43165
|
length: z94.number()
|
|
42637
43166
|
});
|
|
43167
|
+
var PreviewUpdateCreditSchemaItem3$outboundSchema = z94.pipe(
|
|
43168
|
+
z94.object({
|
|
43169
|
+
meteredFeatureId: z94.string(),
|
|
43170
|
+
excluded: z94.literal(true)
|
|
43171
|
+
}),
|
|
43172
|
+
z94.transform((v) => {
|
|
43173
|
+
return remap(v, {
|
|
43174
|
+
meteredFeatureId: "metered_feature_id"
|
|
43175
|
+
});
|
|
43176
|
+
})
|
|
43177
|
+
);
|
|
42638
43178
|
var PreviewUpdateDimensionsItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
42639
43179
|
var PreviewUpdateDimensionsItem4$outboundSchema = z94.pipe(
|
|
42640
43180
|
z94.object({
|
|
@@ -42831,7 +43371,8 @@ var PreviewUpdateCreditSchemaItem1$outboundSchema = z94.pipe(
|
|
|
42831
43371
|
);
|
|
42832
43372
|
var PreviewUpdateItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
42833
43373
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42834
|
-
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema)
|
|
43374
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem2$outboundSchema),
|
|
43375
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42835
43376
|
]);
|
|
42836
43377
|
var PreviewUpdateItemProviderMarkups$outboundSchema = z94.object({
|
|
42837
43378
|
markup: z94.number()
|
|
@@ -42875,7 +43416,8 @@ var PreviewUpdateItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
42875
43416
|
z94.lazy(() => PreviewUpdateCreditSchemaItem1$outboundSchema),
|
|
42876
43417
|
z94.lazy(
|
|
42877
43418
|
() => PreviewUpdateCreditSchemaItem2$outboundSchema
|
|
42878
|
-
)
|
|
43419
|
+
),
|
|
43420
|
+
z94.lazy(() => PreviewUpdateCreditSchemaItem3$outboundSchema)
|
|
42879
43421
|
]))),
|
|
42880
43422
|
markups: z94.optional(z94.lazy(
|
|
42881
43423
|
() => PreviewUpdateItemMarkups$outboundSchema
|
|
@@ -43034,6 +43576,17 @@ var PreviewUpdateAddItemExpiry$outboundSchema = z94.object({
|
|
|
43034
43576
|
duration: PreviewUpdateAddItemDuration$outboundSchema,
|
|
43035
43577
|
length: z94.number()
|
|
43036
43578
|
});
|
|
43579
|
+
var PreviewUpdateCreditSchemaAddItem3$outboundSchema = z94.pipe(
|
|
43580
|
+
z94.object({
|
|
43581
|
+
meteredFeatureId: z94.string(),
|
|
43582
|
+
excluded: z94.literal(true)
|
|
43583
|
+
}),
|
|
43584
|
+
z94.transform((v) => {
|
|
43585
|
+
return remap(v, {
|
|
43586
|
+
meteredFeatureId: "metered_feature_id"
|
|
43587
|
+
});
|
|
43588
|
+
})
|
|
43589
|
+
);
|
|
43037
43590
|
var PreviewUpdateDimensionsAddItemMatch4$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
|
|
43038
43591
|
var PreviewUpdateDimensionsAddItem4$outboundSchema = z94.pipe(
|
|
43039
43592
|
z94.object({
|
|
@@ -43240,7 +43793,8 @@ var PreviewUpdateCreditSchemaAddItem1$outboundSchema = z94.pipe(
|
|
|
43240
43793
|
);
|
|
43241
43794
|
var PreviewUpdateAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
43242
43795
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43243
|
-
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema)
|
|
43796
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem2$outboundSchema),
|
|
43797
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43244
43798
|
]);
|
|
43245
43799
|
var PreviewUpdateAddItemProviderMarkups$outboundSchema = z94.object({
|
|
43246
43800
|
markup: z94.number()
|
|
@@ -43284,7 +43838,8 @@ var PreviewUpdateAddItemFeatureOverride$outboundSchema = z94.pipe(
|
|
|
43284
43838
|
z94.lazy(() => PreviewUpdateCreditSchemaAddItem1$outboundSchema),
|
|
43285
43839
|
z94.lazy(
|
|
43286
43840
|
() => PreviewUpdateCreditSchemaAddItem2$outboundSchema
|
|
43287
|
-
)
|
|
43841
|
+
),
|
|
43842
|
+
z94.lazy(() => PreviewUpdateCreditSchemaAddItem3$outboundSchema)
|
|
43288
43843
|
]))),
|
|
43289
43844
|
markups: z94.optional(z94.lazy(
|
|
43290
43845
|
() => PreviewUpdateAddItemMarkups$outboundSchema
|
|
@@ -43648,26 +44203,12 @@ var PreviewUpdateUpsertLicenseProration$outboundSchema = z94.pipe(
|
|
|
43648
44203
|
});
|
|
43649
44204
|
})
|
|
43650
44205
|
);
|
|
43651
|
-
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z94.enum(
|
|
43652
|
-
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
43653
|
-
);
|
|
43654
|
-
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z94.pipe(
|
|
43655
|
-
z94.object({
|
|
43656
|
-
max: z94.optional(z94.number()),
|
|
43657
|
-
maxPercentage: z94.optional(z94.number()),
|
|
43658
|
-
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
43659
|
-
expiryDurationLength: z94.optional(z94.number())
|
|
43660
|
-
}),
|
|
43661
|
-
z94.transform((v) => {
|
|
43662
|
-
return remap(v, {
|
|
43663
|
-
maxPercentage: "max_percentage",
|
|
43664
|
-
expiryDurationType: "expiry_duration_type",
|
|
43665
|
-
expiryDurationLength: "expiry_duration_length"
|
|
43666
|
-
});
|
|
43667
|
-
})
|
|
43668
|
-
);
|
|
43669
44206
|
|
|
43670
44207
|
// ../sdk/src/models/preview-update-response.ts
|
|
44208
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType = {
|
|
44209
|
+
Month: "month",
|
|
44210
|
+
Forever: "forever"
|
|
44211
|
+
};
|
|
43671
44212
|
var PreviewUpdateUpsertLicenseDuration = {
|
|
43672
44213
|
Day: "day",
|
|
43673
44214
|
Week: "week",
|
|
@@ -43796,11 +44337,40 @@ var PreviewUpdateStatus = {
|
|
|
43796
44337
|
Incomplete: "incomplete",
|
|
43797
44338
|
RequiresLocation: "requires_location"
|
|
43798
44339
|
};
|
|
44340
|
+
var PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema = z95.enum(
|
|
44341
|
+
PreviewUpdateUpsertLicenseExpiryDurationType
|
|
44342
|
+
);
|
|
44343
|
+
var PreviewUpdateUpsertLicenseRollover$outboundSchema = z95.pipe(
|
|
44344
|
+
z95.object({
|
|
44345
|
+
max: z95.optional(z95.number()),
|
|
44346
|
+
maxPercentage: z95.optional(z95.number()),
|
|
44347
|
+
expiryDurationType: PreviewUpdateUpsertLicenseExpiryDurationType$outboundSchema,
|
|
44348
|
+
expiryDurationLength: z95.optional(z95.number())
|
|
44349
|
+
}),
|
|
44350
|
+
z95.transform((v) => {
|
|
44351
|
+
return remap(v, {
|
|
44352
|
+
maxPercentage: "max_percentage",
|
|
44353
|
+
expiryDurationType: "expiry_duration_type",
|
|
44354
|
+
expiryDurationLength: "expiry_duration_length"
|
|
44355
|
+
});
|
|
44356
|
+
})
|
|
44357
|
+
);
|
|
43799
44358
|
var PreviewUpdateUpsertLicenseDuration$outboundSchema = z95.enum(PreviewUpdateUpsertLicenseDuration);
|
|
43800
44359
|
var PreviewUpdateUpsertLicenseExpiry$outboundSchema = z95.object({
|
|
43801
44360
|
duration: PreviewUpdateUpsertLicenseDuration$outboundSchema,
|
|
43802
44361
|
length: z95.number()
|
|
43803
44362
|
});
|
|
44363
|
+
var PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema = z95.pipe(
|
|
44364
|
+
z95.object({
|
|
44365
|
+
meteredFeatureId: z95.string(),
|
|
44366
|
+
excluded: z95.literal(true)
|
|
44367
|
+
}),
|
|
44368
|
+
z95.transform((v) => {
|
|
44369
|
+
return remap(v, {
|
|
44370
|
+
meteredFeatureId: "metered_feature_id"
|
|
44371
|
+
});
|
|
44372
|
+
})
|
|
44373
|
+
);
|
|
43804
44374
|
var PreviewUpdateDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z95.string(), z95.number(), z95.boolean()]);
|
|
43805
44375
|
var PreviewUpdateDimensionsUpsertLicense4$outboundSchema = z95.pipe(
|
|
43806
44376
|
z95.object({
|
|
@@ -44010,7 +44580,8 @@ var PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema = z95.pipe(
|
|
|
44010
44580
|
);
|
|
44011
44581
|
var PreviewUpdateUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
44012
44582
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44013
|
-
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema)
|
|
44583
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema),
|
|
44584
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44014
44585
|
]);
|
|
44015
44586
|
var PreviewUpdateUpsertLicenseProviderMarkups$outboundSchema = z95.object({
|
|
44016
44587
|
markup: z95.number()
|
|
@@ -44054,7 +44625,8 @@ var PreviewUpdateUpsertLicenseFeatureOverride$outboundSchema = z95.pipe(
|
|
|
44054
44625
|
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense1$outboundSchema),
|
|
44055
44626
|
z95.lazy(
|
|
44056
44627
|
() => PreviewUpdateCreditSchemaUpsertLicense2$outboundSchema
|
|
44057
|
-
)
|
|
44628
|
+
),
|
|
44629
|
+
z95.lazy(() => PreviewUpdateCreditSchemaUpsertLicense3$outboundSchema)
|
|
44058
44630
|
]))),
|
|
44059
44631
|
markups: z95.optional(z95.lazy(
|
|
44060
44632
|
() => PreviewUpdateUpsertLicenseMarkups$outboundSchema
|
|
@@ -44078,7 +44650,9 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z95.pipe(
|
|
|
44078
44650
|
reset: z95.optional(PreviewUpdateUpsertLicenseReset$outboundSchema),
|
|
44079
44651
|
price: z95.optional(PreviewUpdateUpsertLicensePrice$outboundSchema),
|
|
44080
44652
|
proration: z95.optional(PreviewUpdateUpsertLicenseProration$outboundSchema),
|
|
44081
|
-
rollover: z95.optional(
|
|
44653
|
+
rollover: z95.optional(
|
|
44654
|
+
z95.lazy(() => PreviewUpdateUpsertLicenseRollover$outboundSchema)
|
|
44655
|
+
),
|
|
44082
44656
|
expiry: z95.optional(
|
|
44083
44657
|
z95.lazy(() => PreviewUpdateUpsertLicenseExpiry$outboundSchema)
|
|
44084
44658
|
),
|
|
@@ -46181,7 +46755,7 @@ var SearchRequestLogsResponse$inboundSchema = z103.object({
|
|
|
46181
46755
|
// ../sdk/src/models/setup-payment-response.ts
|
|
46182
46756
|
import * as z105 from "zod/v4-mini";
|
|
46183
46757
|
|
|
46184
|
-
// ../sdk/src/models/setup-payment-upsert-license-
|
|
46758
|
+
// ../sdk/src/models/setup-payment-upsert-license-proration.ts
|
|
46185
46759
|
import * as z104 from "zod/v4-mini";
|
|
46186
46760
|
var SetupPaymentDurationType = {
|
|
46187
46761
|
Day: "day",
|
|
@@ -46430,10 +47004,6 @@ var SetupPaymentUpsertLicenseOnDecrease = {
|
|
|
46430
47004
|
None: "none",
|
|
46431
47005
|
NoProrations: "no_prorations"
|
|
46432
47006
|
};
|
|
46433
|
-
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
46434
|
-
Month: "month",
|
|
46435
|
-
Forever: "forever"
|
|
46436
|
-
};
|
|
46437
47007
|
var SetupPaymentFeatureQuantity$outboundSchema = z104.pipe(
|
|
46438
47008
|
z104.object({
|
|
46439
47009
|
featureId: z104.string(),
|
|
@@ -46598,6 +47168,17 @@ var SetupPaymentItemExpiry$outboundSchema = z104.object({
|
|
|
46598
47168
|
duration: SetupPaymentItemDuration$outboundSchema,
|
|
46599
47169
|
length: z104.number()
|
|
46600
47170
|
});
|
|
47171
|
+
var SetupPaymentCreditSchemaItem3$outboundSchema = z104.pipe(
|
|
47172
|
+
z104.object({
|
|
47173
|
+
meteredFeatureId: z104.string(),
|
|
47174
|
+
excluded: z104.literal(true)
|
|
47175
|
+
}),
|
|
47176
|
+
z104.transform((v) => {
|
|
47177
|
+
return remap(v, {
|
|
47178
|
+
meteredFeatureId: "metered_feature_id"
|
|
47179
|
+
});
|
|
47180
|
+
})
|
|
47181
|
+
);
|
|
46601
47182
|
var SetupPaymentDimensionsItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46602
47183
|
var SetupPaymentDimensionsItem4$outboundSchema = z104.pipe(
|
|
46603
47184
|
z104.object({
|
|
@@ -46794,7 +47375,8 @@ var SetupPaymentCreditSchemaItem1$outboundSchema = z104.pipe(
|
|
|
46794
47375
|
);
|
|
46795
47376
|
var SetupPaymentItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
46796
47377
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46797
|
-
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema)
|
|
47378
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem2$outboundSchema),
|
|
47379
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46798
47380
|
]);
|
|
46799
47381
|
var SetupPaymentItemProviderMarkups$outboundSchema = z104.object({
|
|
46800
47382
|
markup: z104.number()
|
|
@@ -46838,7 +47420,8 @@ var SetupPaymentItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
46838
47420
|
z104.lazy(() => SetupPaymentCreditSchemaItem1$outboundSchema),
|
|
46839
47421
|
z104.lazy(
|
|
46840
47422
|
() => SetupPaymentCreditSchemaItem2$outboundSchema
|
|
46841
|
-
)
|
|
47423
|
+
),
|
|
47424
|
+
z104.lazy(() => SetupPaymentCreditSchemaItem3$outboundSchema)
|
|
46842
47425
|
]))),
|
|
46843
47426
|
markups: z104.optional(z104.lazy(
|
|
46844
47427
|
() => SetupPaymentItemMarkups$outboundSchema
|
|
@@ -46995,6 +47578,17 @@ var SetupPaymentAddItemExpiry$outboundSchema = z104.object({
|
|
|
46995
47578
|
duration: SetupPaymentAddItemDuration$outboundSchema,
|
|
46996
47579
|
length: z104.number()
|
|
46997
47580
|
});
|
|
47581
|
+
var SetupPaymentCreditSchemaAddItem3$outboundSchema = z104.pipe(
|
|
47582
|
+
z104.object({
|
|
47583
|
+
meteredFeatureId: z104.string(),
|
|
47584
|
+
excluded: z104.literal(true)
|
|
47585
|
+
}),
|
|
47586
|
+
z104.transform((v) => {
|
|
47587
|
+
return remap(v, {
|
|
47588
|
+
meteredFeatureId: "metered_feature_id"
|
|
47589
|
+
});
|
|
47590
|
+
})
|
|
47591
|
+
);
|
|
46998
47592
|
var SetupPaymentDimensionsAddItemMatch4$outboundSchema = smartUnion([z104.string(), z104.number(), z104.boolean()]);
|
|
46999
47593
|
var SetupPaymentDimensionsAddItem4$outboundSchema = z104.pipe(
|
|
47000
47594
|
z104.object({
|
|
@@ -47197,7 +47791,8 @@ var SetupPaymentCreditSchemaAddItem1$outboundSchema = z104.pipe(
|
|
|
47197
47791
|
);
|
|
47198
47792
|
var SetupPaymentAddItemCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47199
47793
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47200
|
-
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema)
|
|
47794
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem2$outboundSchema),
|
|
47795
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47201
47796
|
]);
|
|
47202
47797
|
var SetupPaymentAddItemProviderMarkups$outboundSchema = z104.object({
|
|
47203
47798
|
markup: z104.number()
|
|
@@ -47241,7 +47836,8 @@ var SetupPaymentAddItemFeatureOverride$outboundSchema = z104.pipe(
|
|
|
47241
47836
|
z104.lazy(() => SetupPaymentCreditSchemaAddItem1$outboundSchema),
|
|
47242
47837
|
z104.lazy(
|
|
47243
47838
|
() => SetupPaymentCreditSchemaAddItem2$outboundSchema
|
|
47244
|
-
)
|
|
47839
|
+
),
|
|
47840
|
+
z104.lazy(() => SetupPaymentCreditSchemaAddItem3$outboundSchema)
|
|
47245
47841
|
]))),
|
|
47246
47842
|
markups: z104.optional(z104.lazy(
|
|
47247
47843
|
() => SetupPaymentAddItemMarkups$outboundSchema
|
|
@@ -47605,26 +48201,12 @@ var SetupPaymentUpsertLicenseProration$outboundSchema = z104.pipe(
|
|
|
47605
48201
|
});
|
|
47606
48202
|
})
|
|
47607
48203
|
);
|
|
47608
|
-
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z104.enum(
|
|
47609
|
-
SetupPaymentUpsertLicenseExpiryDurationType
|
|
47610
|
-
);
|
|
47611
|
-
var SetupPaymentUpsertLicenseRollover$outboundSchema = z104.pipe(
|
|
47612
|
-
z104.object({
|
|
47613
|
-
max: z104.optional(z104.number()),
|
|
47614
|
-
maxPercentage: z104.optional(z104.number()),
|
|
47615
|
-
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
47616
|
-
expiryDurationLength: z104.optional(z104.number())
|
|
47617
|
-
}),
|
|
47618
|
-
z104.transform((v) => {
|
|
47619
|
-
return remap(v, {
|
|
47620
|
-
maxPercentage: "max_percentage",
|
|
47621
|
-
expiryDurationType: "expiry_duration_type",
|
|
47622
|
-
expiryDurationLength: "expiry_duration_length"
|
|
47623
|
-
});
|
|
47624
|
-
})
|
|
47625
|
-
);
|
|
47626
48204
|
|
|
47627
48205
|
// ../sdk/src/models/setup-payment-response.ts
|
|
48206
|
+
var SetupPaymentUpsertLicenseExpiryDurationType = {
|
|
48207
|
+
Month: "month",
|
|
48208
|
+
Forever: "forever"
|
|
48209
|
+
};
|
|
47628
48210
|
var SetupPaymentUpsertLicenseDuration = {
|
|
47629
48211
|
Day: "day",
|
|
47630
48212
|
Week: "week",
|
|
@@ -47717,11 +48299,40 @@ var SetupPaymentTaxExempt = {
|
|
|
47717
48299
|
Exempt: "exempt",
|
|
47718
48300
|
Reverse: "reverse"
|
|
47719
48301
|
};
|
|
48302
|
+
var SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema = z105.enum(
|
|
48303
|
+
SetupPaymentUpsertLicenseExpiryDurationType
|
|
48304
|
+
);
|
|
48305
|
+
var SetupPaymentUpsertLicenseRollover$outboundSchema = z105.pipe(
|
|
48306
|
+
z105.object({
|
|
48307
|
+
max: z105.optional(z105.number()),
|
|
48308
|
+
maxPercentage: z105.optional(z105.number()),
|
|
48309
|
+
expiryDurationType: SetupPaymentUpsertLicenseExpiryDurationType$outboundSchema,
|
|
48310
|
+
expiryDurationLength: z105.optional(z105.number())
|
|
48311
|
+
}),
|
|
48312
|
+
z105.transform((v) => {
|
|
48313
|
+
return remap(v, {
|
|
48314
|
+
maxPercentage: "max_percentage",
|
|
48315
|
+
expiryDurationType: "expiry_duration_type",
|
|
48316
|
+
expiryDurationLength: "expiry_duration_length"
|
|
48317
|
+
});
|
|
48318
|
+
})
|
|
48319
|
+
);
|
|
47720
48320
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z105.enum(SetupPaymentUpsertLicenseDuration);
|
|
47721
48321
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z105.object({
|
|
47722
48322
|
duration: SetupPaymentUpsertLicenseDuration$outboundSchema,
|
|
47723
48323
|
length: z105.number()
|
|
47724
48324
|
});
|
|
48325
|
+
var SetupPaymentCreditSchemaUpsertLicense3$outboundSchema = z105.pipe(
|
|
48326
|
+
z105.object({
|
|
48327
|
+
meteredFeatureId: z105.string(),
|
|
48328
|
+
excluded: z105.literal(true)
|
|
48329
|
+
}),
|
|
48330
|
+
z105.transform((v) => {
|
|
48331
|
+
return remap(v, {
|
|
48332
|
+
meteredFeatureId: "metered_feature_id"
|
|
48333
|
+
});
|
|
48334
|
+
})
|
|
48335
|
+
);
|
|
47725
48336
|
var SetupPaymentDimensionsUpsertLicenseMatch4$outboundSchema = smartUnion([z105.string(), z105.number(), z105.boolean()]);
|
|
47726
48337
|
var SetupPaymentDimensionsUpsertLicense4$outboundSchema = z105.pipe(
|
|
47727
48338
|
z105.object({
|
|
@@ -47931,7 +48542,8 @@ var SetupPaymentCreditSchemaUpsertLicense1$outboundSchema = z105.pipe(
|
|
|
47931
48542
|
);
|
|
47932
48543
|
var SetupPaymentUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
47933
48544
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47934
|
-
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema)
|
|
48545
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema),
|
|
48546
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47935
48547
|
]);
|
|
47936
48548
|
var SetupPaymentUpsertLicenseProviderMarkups$outboundSchema = z105.object({
|
|
47937
48549
|
markup: z105.number()
|
|
@@ -47975,7 +48587,8 @@ var SetupPaymentUpsertLicenseFeatureOverride$outboundSchema = z105.pipe(
|
|
|
47975
48587
|
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense1$outboundSchema),
|
|
47976
48588
|
z105.lazy(
|
|
47977
48589
|
() => SetupPaymentCreditSchemaUpsertLicense2$outboundSchema
|
|
47978
|
-
)
|
|
48590
|
+
),
|
|
48591
|
+
z105.lazy(() => SetupPaymentCreditSchemaUpsertLicense3$outboundSchema)
|
|
47979
48592
|
]))),
|
|
47980
48593
|
markups: z105.optional(z105.lazy(
|
|
47981
48594
|
() => SetupPaymentUpsertLicenseMarkups$outboundSchema
|
|
@@ -47999,7 +48612,9 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z105.pipe(
|
|
|
47999
48612
|
reset: z105.optional(SetupPaymentUpsertLicenseReset$outboundSchema),
|
|
48000
48613
|
price: z105.optional(SetupPaymentUpsertLicensePrice$outboundSchema),
|
|
48001
48614
|
proration: z105.optional(SetupPaymentUpsertLicenseProration$outboundSchema),
|
|
48002
|
-
rollover: z105.optional(
|
|
48615
|
+
rollover: z105.optional(
|
|
48616
|
+
z105.lazy(() => SetupPaymentUpsertLicenseRollover$outboundSchema)
|
|
48617
|
+
),
|
|
48003
48618
|
expiry: z105.optional(
|
|
48004
48619
|
z105.lazy(() => SetupPaymentUpsertLicenseExpiry$outboundSchema)
|
|
48005
48620
|
),
|
|
@@ -49154,6 +49769,11 @@ var UpdateCustomerType = {
|
|
|
49154
49769
|
CreditSystem: "credit_system",
|
|
49155
49770
|
AiCreditSystem: "ai_credit_system"
|
|
49156
49771
|
};
|
|
49772
|
+
var UpdateCustomerCombine = {
|
|
49773
|
+
Sum: "sum",
|
|
49774
|
+
Max: "max",
|
|
49775
|
+
Min: "min"
|
|
49776
|
+
};
|
|
49157
49777
|
var UpdateCustomerDimensionsToEnum3 = {
|
|
49158
49778
|
Inf: "inf"
|
|
49159
49779
|
};
|
|
@@ -49777,6 +50397,7 @@ var UpdateCustomerLicense$inboundSchema = z111.pipe(
|
|
|
49777
50397
|
})
|
|
49778
50398
|
);
|
|
49779
50399
|
var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
|
|
50400
|
+
var UpdateCustomerCombine$inboundSchema = inboundSchema(UpdateCustomerCombine);
|
|
49780
50401
|
var UpdateCustomerDimensions6$inboundSchema = z111.pipe(
|
|
49781
50402
|
z111.object({
|
|
49782
50403
|
match: z111.record(z111.string(), string5()),
|
|
@@ -50064,6 +50685,7 @@ var UpdateCustomerFeature$inboundSchema = z111.pipe(
|
|
|
50064
50685
|
name: string5(),
|
|
50065
50686
|
type: UpdateCustomerType$inboundSchema,
|
|
50066
50687
|
consumable: boolean2(),
|
|
50688
|
+
combine: optional3(UpdateCustomerCombine$inboundSchema),
|
|
50067
50689
|
event_names: optional3(z111.array(string5())),
|
|
50068
50690
|
credit_schema: optional3(z111.array(smartUnion([
|
|
50069
50691
|
z111.lazy(() => UpdateCustomerCreditSchema1$inboundSchema),
|
|
@@ -50251,6 +50873,11 @@ var UpdateEntityType = {
|
|
|
50251
50873
|
CreditSystem: "credit_system",
|
|
50252
50874
|
AiCreditSystem: "ai_credit_system"
|
|
50253
50875
|
};
|
|
50876
|
+
var UpdateEntityCombine = {
|
|
50877
|
+
Sum: "sum",
|
|
50878
|
+
Max: "max",
|
|
50879
|
+
Min: "min"
|
|
50880
|
+
};
|
|
50254
50881
|
var UpdateEntityDimensionsToEnum3 = {
|
|
50255
50882
|
Inf: "inf"
|
|
50256
50883
|
};
|
|
@@ -50520,6 +51147,7 @@ var UpdateEntityPurchase$inboundSchema = z112.pipe(
|
|
|
50520
51147
|
})
|
|
50521
51148
|
);
|
|
50522
51149
|
var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
|
|
51150
|
+
var UpdateEntityCombine$inboundSchema = inboundSchema(UpdateEntityCombine);
|
|
50523
51151
|
var UpdateEntityDimensions6$inboundSchema = z112.pipe(
|
|
50524
51152
|
z112.object({
|
|
50525
51153
|
match: z112.record(z112.string(), string5()),
|
|
@@ -50805,6 +51433,7 @@ var UpdateEntityFeature$inboundSchema = z112.pipe(
|
|
|
50805
51433
|
name: string5(),
|
|
50806
51434
|
type: UpdateEntityType$inboundSchema,
|
|
50807
51435
|
consumable: boolean2(),
|
|
51436
|
+
combine: optional3(UpdateEntityCombine$inboundSchema),
|
|
50808
51437
|
event_names: optional3(z112.array(string5())),
|
|
50809
51438
|
credit_schema: optional3(z112.array(smartUnion([
|
|
50810
51439
|
z112.lazy(() => UpdateEntityCreditSchema1$inboundSchema),
|
|
@@ -51028,6 +51657,11 @@ var UpdateFeatureTypeRequestBody = {
|
|
|
51028
51657
|
CreditSystem: "credit_system",
|
|
51029
51658
|
AiCreditSystem: "ai_credit_system"
|
|
51030
51659
|
};
|
|
51660
|
+
var UpdateFeatureCombineRequest = {
|
|
51661
|
+
Sum: "sum",
|
|
51662
|
+
Max: "max",
|
|
51663
|
+
Min: "min"
|
|
51664
|
+
};
|
|
51031
51665
|
var UpdateFeatureDimensionsToRequestBodyEnum2 = {
|
|
51032
51666
|
Inf: "inf"
|
|
51033
51667
|
};
|
|
@@ -51043,6 +51677,11 @@ var UpdateFeatureTypeResponse = {
|
|
|
51043
51677
|
CreditSystem: "credit_system",
|
|
51044
51678
|
AiCreditSystem: "ai_credit_system"
|
|
51045
51679
|
};
|
|
51680
|
+
var UpdateFeatureCombineResponse = {
|
|
51681
|
+
Sum: "sum",
|
|
51682
|
+
Max: "max",
|
|
51683
|
+
Min: "min"
|
|
51684
|
+
};
|
|
51046
51685
|
var UpdateFeatureDimensionsToResponseEnum3 = {
|
|
51047
51686
|
Inf: "inf"
|
|
51048
51687
|
};
|
|
@@ -51056,6 +51695,7 @@ var UpdateFeatureToResponseEnum = {
|
|
|
51056
51695
|
Inf: "inf"
|
|
51057
51696
|
};
|
|
51058
51697
|
var UpdateFeatureTypeRequestBody$outboundSchema = z113.enum(UpdateFeatureTypeRequestBody);
|
|
51698
|
+
var UpdateFeatureCombineRequest$outboundSchema = z113.enum(UpdateFeatureCombineRequest);
|
|
51059
51699
|
var UpdateFeatureDisplayRequestBody$outboundSchema = z113.object({
|
|
51060
51700
|
singular: z113.string(),
|
|
51061
51701
|
plural: z113.string()
|
|
@@ -51289,6 +51929,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51289
51929
|
name: z113.optional(z113.string()),
|
|
51290
51930
|
type: z113.optional(UpdateFeatureTypeRequestBody$outboundSchema),
|
|
51291
51931
|
consumable: z113.optional(z113.boolean()),
|
|
51932
|
+
combine: z113.optional(UpdateFeatureCombineRequest$outboundSchema),
|
|
51292
51933
|
display: z113.optional(
|
|
51293
51934
|
z113.lazy(() => UpdateFeatureDisplayRequestBody$outboundSchema)
|
|
51294
51935
|
),
|
|
@@ -51325,6 +51966,7 @@ var UpdateFeatureParams$outboundSchema = z113.pipe(
|
|
|
51325
51966
|
})
|
|
51326
51967
|
);
|
|
51327
51968
|
var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
|
|
51969
|
+
var UpdateFeatureCombineResponse$inboundSchema = inboundSchema(UpdateFeatureCombineResponse);
|
|
51328
51970
|
var UpdateFeatureDimensionsResponse6$inboundSchema = z113.pipe(
|
|
51329
51971
|
z113.object({
|
|
51330
51972
|
match: z113.record(z113.string(), string5()),
|
|
@@ -51633,6 +52275,7 @@ var UpdateFeatureResponse$inboundSchema = z113.pipe(
|
|
|
51633
52275
|
name: string5(),
|
|
51634
52276
|
type: UpdateFeatureTypeResponse$inboundSchema,
|
|
51635
52277
|
consumable: boolean2(),
|
|
52278
|
+
combine: optional3(UpdateFeatureCombineResponse$inboundSchema),
|
|
51636
52279
|
event_names: optional3(z113.array(string5())),
|
|
51637
52280
|
credit_schema: optional3(z113.array(smartUnion([
|
|
51638
52281
|
z113.lazy(() => UpdateFeatureCreditSchemaResponse1$inboundSchema),
|
|
@@ -51773,13 +52416,10 @@ var UpdateInvoiceResponse$inboundSchema = z114.object({
|
|
|
51773
52416
|
invoice: z114.lazy(() => UpdateInvoiceInvoice$inboundSchema)
|
|
51774
52417
|
});
|
|
51775
52418
|
|
|
51776
|
-
// ../sdk/src/models/update-plan-
|
|
51777
|
-
import * as z117 from "zod/v4-mini";
|
|
51778
|
-
|
|
51779
|
-
// ../sdk/src/models/update-plan-item-processors.ts
|
|
52419
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
51780
52420
|
import * as z116 from "zod/v4-mini";
|
|
51781
52421
|
|
|
51782
|
-
// ../sdk/src/models/update-plan-variant-price.ts
|
|
52422
|
+
// ../sdk/src/models/update-plan-variant-add-item-price-interval.ts
|
|
51783
52423
|
import * as z115 from "zod/v4-mini";
|
|
51784
52424
|
var UpdatePlanPriceIntervalRequestBody = {
|
|
51785
52425
|
OneOff: "one_off",
|
|
@@ -52010,10 +52650,6 @@ var UpdatePlanVariantAddItemPriceInterval = {
|
|
|
52010
52650
|
SemiAnnual: "semi_annual",
|
|
52011
52651
|
Year: "year"
|
|
52012
52652
|
};
|
|
52013
|
-
var UpdatePlanVariantAddItemBillingMethod = {
|
|
52014
|
-
Prepaid: "prepaid",
|
|
52015
|
-
UsageBased: "usage_based"
|
|
52016
|
-
};
|
|
52017
52653
|
var UpdatePlanPriceIntervalRequestBody$outboundSchema = z115.enum(UpdatePlanPriceIntervalRequestBody);
|
|
52018
52654
|
var UpdatePlanAdditionalCurrencyRequestBody$outboundSchema = z115.object({
|
|
52019
52655
|
currency: z115.string(),
|
|
@@ -52160,6 +52796,17 @@ var UpdatePlanItemExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52160
52796
|
duration: UpdatePlanItemDurationRequestBody$outboundSchema,
|
|
52161
52797
|
length: z115.number()
|
|
52162
52798
|
});
|
|
52799
|
+
var UpdatePlanCreditSchemaItemRequestBody3$outboundSchema = z115.pipe(
|
|
52800
|
+
z115.object({
|
|
52801
|
+
meteredFeatureId: z115.string(),
|
|
52802
|
+
excluded: z115.literal(true)
|
|
52803
|
+
}),
|
|
52804
|
+
z115.transform((v) => {
|
|
52805
|
+
return remap(v, {
|
|
52806
|
+
meteredFeatureId: "metered_feature_id"
|
|
52807
|
+
});
|
|
52808
|
+
})
|
|
52809
|
+
);
|
|
52163
52810
|
var UpdatePlanDimensionsItemMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52164
52811
|
var UpdatePlanDimensionsItemRequestBody4$outboundSchema = z115.pipe(
|
|
52165
52812
|
z115.object({
|
|
@@ -52369,7 +53016,8 @@ var UpdatePlanCreditSchemaItemRequestBody1$outboundSchema = z115.pipe(
|
|
|
52369
53016
|
);
|
|
52370
53017
|
var UpdatePlanItemCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52371
53018
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52372
|
-
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema)
|
|
53019
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema),
|
|
53020
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52373
53021
|
]);
|
|
52374
53022
|
var UpdatePlanItemProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52375
53023
|
markup: z115.number()
|
|
@@ -52413,7 +53061,8 @@ var UpdatePlanItemFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52413
53061
|
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody1$outboundSchema),
|
|
52414
53062
|
z115.lazy(
|
|
52415
53063
|
() => UpdatePlanCreditSchemaItemRequestBody2$outboundSchema
|
|
52416
|
-
)
|
|
53064
|
+
),
|
|
53065
|
+
z115.lazy(() => UpdatePlanCreditSchemaItemRequestBody3$outboundSchema)
|
|
52417
53066
|
]))),
|
|
52418
53067
|
markups: z115.optional(z115.lazy(
|
|
52419
53068
|
() => UpdatePlanItemMarkupsRequestBody$outboundSchema
|
|
@@ -52609,6 +53258,17 @@ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z115.object({
|
|
|
52609
53258
|
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
52610
53259
|
length: z115.number()
|
|
52611
53260
|
});
|
|
53261
|
+
var UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema = z115.pipe(
|
|
53262
|
+
z115.object({
|
|
53263
|
+
meteredFeatureId: z115.string(),
|
|
53264
|
+
excluded: z115.literal(true)
|
|
53265
|
+
}),
|
|
53266
|
+
z115.transform((v) => {
|
|
53267
|
+
return remap(v, {
|
|
53268
|
+
meteredFeatureId: "metered_feature_id"
|
|
53269
|
+
});
|
|
53270
|
+
})
|
|
53271
|
+
);
|
|
52612
53272
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z115.string(), z115.number(), z115.boolean()]);
|
|
52613
53273
|
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z115.pipe(
|
|
52614
53274
|
z115.object({
|
|
@@ -52825,7 +53485,8 @@ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z115.pipe(
|
|
|
52825
53485
|
);
|
|
52826
53486
|
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
52827
53487
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52828
|
-
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
53488
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema),
|
|
53489
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52829
53490
|
]);
|
|
52830
53491
|
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z115.object({
|
|
52831
53492
|
markup: z115.number()
|
|
@@ -52869,7 +53530,8 @@ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z115.pipe(
|
|
|
52869
53530
|
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
52870
53531
|
z115.lazy(
|
|
52871
53532
|
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
52872
|
-
)
|
|
53533
|
+
),
|
|
53534
|
+
z115.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody3$outboundSchema)
|
|
52873
53535
|
]))),
|
|
52874
53536
|
markups: z115.optional(z115.lazy(
|
|
52875
53537
|
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
@@ -53262,38 +53924,12 @@ var UpdatePlanVariantTierBehavior$outboundSchema = z115.enum(UpdatePlanVariantTi
|
|
|
53262
53924
|
var UpdatePlanVariantAddItemPriceInterval$outboundSchema = z115.enum(
|
|
53263
53925
|
UpdatePlanVariantAddItemPriceInterval
|
|
53264
53926
|
);
|
|
53265
|
-
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z115.enum(
|
|
53266
|
-
UpdatePlanVariantAddItemBillingMethod
|
|
53267
|
-
);
|
|
53268
|
-
var UpdatePlanVariantPrice$outboundSchema = z115.pipe(
|
|
53269
|
-
z115.object({
|
|
53270
|
-
amount: z115.optional(z115.number()),
|
|
53271
|
-
additionalCurrencies: z115.optional(z115.array(z115.lazy(
|
|
53272
|
-
() => UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema
|
|
53273
|
-
))),
|
|
53274
|
-
tiers: z115.optional(z115.array(z115.lazy(
|
|
53275
|
-
() => UpdatePlanVariantPriceTier$outboundSchema
|
|
53276
|
-
))),
|
|
53277
|
-
tierBehavior: z115.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
53278
|
-
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
53279
|
-
intervalCount: z115._default(z115.number(), 1),
|
|
53280
|
-
billingUnits: z115._default(z115.number(), 1),
|
|
53281
|
-
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
53282
|
-
maxPurchase: z115.optional(z115.nullable(z115.number()))
|
|
53283
|
-
}),
|
|
53284
|
-
z115.transform((v) => {
|
|
53285
|
-
return remap(v, {
|
|
53286
|
-
additionalCurrencies: "additional_currencies",
|
|
53287
|
-
tierBehavior: "tier_behavior",
|
|
53288
|
-
intervalCount: "interval_count",
|
|
53289
|
-
billingUnits: "billing_units",
|
|
53290
|
-
billingMethod: "billing_method",
|
|
53291
|
-
maxPurchase: "max_purchase"
|
|
53292
|
-
});
|
|
53293
|
-
})
|
|
53294
|
-
);
|
|
53295
53927
|
|
|
53296
|
-
// ../sdk/src/models/update-plan-item-
|
|
53928
|
+
// ../sdk/src/models/update-plan-item-tier-behavior-response.ts
|
|
53929
|
+
var UpdatePlanVariantAddItemBillingMethod = {
|
|
53930
|
+
Prepaid: "prepaid",
|
|
53931
|
+
UsageBased: "usage_based"
|
|
53932
|
+
};
|
|
53297
53933
|
var UpdatePlanVariantOnIncrease = {
|
|
53298
53934
|
BillImmediately: "bill_immediately",
|
|
53299
53935
|
ProrateImmediately: "prorate_immediately",
|
|
@@ -53511,18 +54147,34 @@ var UpdatePlanItemTierBehaviorResponse = {
|
|
|
53511
54147
|
Graduated: "graduated",
|
|
53512
54148
|
Volume: "volume"
|
|
53513
54149
|
};
|
|
53514
|
-
var
|
|
53515
|
-
|
|
53516
|
-
|
|
53517
|
-
|
|
53518
|
-
|
|
53519
|
-
|
|
53520
|
-
|
|
53521
|
-
|
|
53522
|
-
|
|
53523
|
-
|
|
53524
|
-
|
|
53525
|
-
|
|
54150
|
+
var UpdatePlanVariantAddItemBillingMethod$outboundSchema = z116.enum(
|
|
54151
|
+
UpdatePlanVariantAddItemBillingMethod
|
|
54152
|
+
);
|
|
54153
|
+
var UpdatePlanVariantPrice$outboundSchema = z116.pipe(
|
|
54154
|
+
z116.object({
|
|
54155
|
+
amount: z116.optional(z116.number()),
|
|
54156
|
+
additionalCurrencies: z116.optional(
|
|
54157
|
+
z116.array(UpdatePlanVariantAddItemAdditionalCurrency$outboundSchema)
|
|
54158
|
+
),
|
|
54159
|
+
tiers: z116.optional(z116.array(UpdatePlanVariantPriceTier$outboundSchema)),
|
|
54160
|
+
tierBehavior: z116.optional(UpdatePlanVariantTierBehavior$outboundSchema),
|
|
54161
|
+
interval: UpdatePlanVariantAddItemPriceInterval$outboundSchema,
|
|
54162
|
+
intervalCount: z116._default(z116.number(), 1),
|
|
54163
|
+
billingUnits: z116._default(z116.number(), 1),
|
|
54164
|
+
billingMethod: UpdatePlanVariantAddItemBillingMethod$outboundSchema,
|
|
54165
|
+
maxPurchase: z116.optional(z116.nullable(z116.number()))
|
|
54166
|
+
}),
|
|
54167
|
+
z116.transform((v) => {
|
|
54168
|
+
return remap(v, {
|
|
54169
|
+
additionalCurrencies: "additional_currencies",
|
|
54170
|
+
tierBehavior: "tier_behavior",
|
|
54171
|
+
intervalCount: "interval_count",
|
|
54172
|
+
billingUnits: "billing_units",
|
|
54173
|
+
billingMethod: "billing_method",
|
|
54174
|
+
maxPurchase: "max_purchase"
|
|
54175
|
+
});
|
|
54176
|
+
})
|
|
54177
|
+
);
|
|
53526
54178
|
var UpdatePlanVariantOnIncrease$outboundSchema = z116.enum(UpdatePlanVariantOnIncrease);
|
|
53527
54179
|
var UpdatePlanVariantOnDecrease$outboundSchema = z116.enum(UpdatePlanVariantOnDecrease);
|
|
53528
54180
|
var UpdatePlanVariantProration$outboundSchema = z116.pipe(
|
|
@@ -53558,6 +54210,17 @@ var UpdatePlanVariantExpiry$outboundSchema = z116.object({
|
|
|
53558
54210
|
duration: UpdatePlanVariantDuration$outboundSchema,
|
|
53559
54211
|
length: z116.number()
|
|
53560
54212
|
});
|
|
54213
|
+
var UpdatePlanCreditSchemaVariant3$outboundSchema = z116.pipe(
|
|
54214
|
+
z116.object({
|
|
54215
|
+
meteredFeatureId: z116.string(),
|
|
54216
|
+
excluded: z116.literal(true)
|
|
54217
|
+
}),
|
|
54218
|
+
z116.transform((v) => {
|
|
54219
|
+
return remap(v, {
|
|
54220
|
+
meteredFeatureId: "metered_feature_id"
|
|
54221
|
+
});
|
|
54222
|
+
})
|
|
54223
|
+
);
|
|
53561
54224
|
var DimensionsVariantMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
53562
54225
|
var UpdatePlanDimensionsVariant4$outboundSchema = z116.pipe(
|
|
53563
54226
|
z116.object({
|
|
@@ -53754,7 +54417,8 @@ var UpdatePlanCreditSchemaVariant1$outboundSchema = z116.pipe(
|
|
|
53754
54417
|
);
|
|
53755
54418
|
var UpdatePlanVariantCreditSchemaUnion$outboundSchema = smartUnion([
|
|
53756
54419
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53757
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema)
|
|
54420
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant2$outboundSchema),
|
|
54421
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53758
54422
|
]);
|
|
53759
54423
|
var UpdatePlanVariantProviderMarkups$outboundSchema = z116.object({
|
|
53760
54424
|
markup: z116.number()
|
|
@@ -53798,7 +54462,8 @@ var UpdatePlanVariantFeatureOverride$outboundSchema = z116.pipe(
|
|
|
53798
54462
|
z116.lazy(() => UpdatePlanCreditSchemaVariant1$outboundSchema),
|
|
53799
54463
|
z116.lazy(
|
|
53800
54464
|
() => UpdatePlanCreditSchemaVariant2$outboundSchema
|
|
53801
|
-
)
|
|
54465
|
+
),
|
|
54466
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariant3$outboundSchema)
|
|
53802
54467
|
]))),
|
|
53803
54468
|
markups: z116.optional(z116.lazy(
|
|
53804
54469
|
() => UpdatePlanVariantMarkups$outboundSchema
|
|
@@ -53820,7 +54485,7 @@ var UpdatePlanVariantPlanItem$outboundSchema = z116.pipe(
|
|
|
53820
54485
|
unlimited: z116.optional(z116.boolean()),
|
|
53821
54486
|
pooled: z116._default(z116.boolean(), false),
|
|
53822
54487
|
reset: z116.optional(UpdatePlanVariantReset$outboundSchema),
|
|
53823
|
-
price: z116.optional(UpdatePlanVariantPrice$outboundSchema),
|
|
54488
|
+
price: z116.optional(z116.lazy(() => UpdatePlanVariantPrice$outboundSchema)),
|
|
53824
54489
|
proration: z116.optional(
|
|
53825
54490
|
z116.lazy(() => UpdatePlanVariantProration$outboundSchema)
|
|
53826
54491
|
),
|
|
@@ -54189,6 +54854,17 @@ var UpdatePlanVariantUpsertLicenseExpiry$outboundSchema = z116.object({
|
|
|
54189
54854
|
duration: UpdatePlanVariantUpsertLicenseDuration$outboundSchema,
|
|
54190
54855
|
length: z116.number()
|
|
54191
54856
|
});
|
|
54857
|
+
var UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema = z116.pipe(
|
|
54858
|
+
z116.object({
|
|
54859
|
+
meteredFeatureId: z116.string(),
|
|
54860
|
+
excluded: z116.literal(true)
|
|
54861
|
+
}),
|
|
54862
|
+
z116.transform((v) => {
|
|
54863
|
+
return remap(v, {
|
|
54864
|
+
meteredFeatureId: "metered_feature_id"
|
|
54865
|
+
});
|
|
54866
|
+
})
|
|
54867
|
+
);
|
|
54192
54868
|
var DimensionsVariantUpsertLicenseMatch4$outboundSchema = smartUnion([z116.string(), z116.number(), z116.boolean()]);
|
|
54193
54869
|
var UpdatePlanDimensionsVariantUpsertLicense4$outboundSchema = z116.pipe(
|
|
54194
54870
|
z116.object({
|
|
@@ -54409,7 +55085,8 @@ var UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema = z116.pipe(
|
|
|
54409
55085
|
);
|
|
54410
55086
|
var UpdatePlanVariantUpsertLicenseCreditSchemaUnion$outboundSchema = smartUnion([
|
|
54411
55087
|
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense1$outboundSchema),
|
|
54412
|
-
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema)
|
|
55088
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema),
|
|
55089
|
+
z116.lazy(() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema)
|
|
54413
55090
|
]);
|
|
54414
55091
|
var UpdatePlanVariantUpsertLicenseProviderMarkups$outboundSchema = z116.object({
|
|
54415
55092
|
markup: z116.number()
|
|
@@ -54457,6 +55134,9 @@ var UpdatePlanVariantUpsertLicenseFeatureOverride$outboundSchema = z116.pipe(
|
|
|
54457
55134
|
),
|
|
54458
55135
|
z116.lazy(
|
|
54459
55136
|
() => UpdatePlanCreditSchemaVariantUpsertLicense2$outboundSchema
|
|
55137
|
+
),
|
|
55138
|
+
z116.lazy(
|
|
55139
|
+
() => UpdatePlanCreditSchemaVariantUpsertLicense3$outboundSchema
|
|
54460
55140
|
)
|
|
54461
55141
|
]))),
|
|
54462
55142
|
markups: z116.optional(z116.lazy(
|
|
@@ -54846,25 +55526,24 @@ var UpdatePlanPriceItemTierResponse$inboundSchema = z116.pipe(
|
|
|
54846
55526
|
})
|
|
54847
55527
|
);
|
|
54848
55528
|
var UpdatePlanItemTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanItemTierBehaviorResponse);
|
|
54849
|
-
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
54850
|
-
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
54851
|
-
var UpdatePlanItemStripe$inboundSchema = z116.pipe(
|
|
54852
|
-
z116.object({
|
|
54853
|
-
price_id: string5()
|
|
54854
|
-
}),
|
|
54855
|
-
z116.transform((v) => {
|
|
54856
|
-
return remap(v, {
|
|
54857
|
-
"price_id": "priceId"
|
|
54858
|
-
});
|
|
54859
|
-
})
|
|
54860
|
-
);
|
|
54861
|
-
var UpdatePlanItemProcessors$inboundSchema = z116.object({
|
|
54862
|
-
stripe: z116.optional(
|
|
54863
|
-
z116.nullable(z116.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
54864
|
-
)
|
|
54865
|
-
});
|
|
54866
55529
|
|
|
54867
|
-
// ../sdk/src/models/update-plan-
|
|
55530
|
+
// ../sdk/src/models/update-plan-response.ts
|
|
55531
|
+
import * as z118 from "zod/v4-mini";
|
|
55532
|
+
|
|
55533
|
+
// ../sdk/src/models/update-plan-upsert-license-on-decrease-response.ts
|
|
55534
|
+
import * as z117 from "zod/v4-mini";
|
|
55535
|
+
var UpdatePlanPriceItemIntervalResponse = {
|
|
55536
|
+
OneOff: "one_off",
|
|
55537
|
+
Week: "week",
|
|
55538
|
+
Month: "month",
|
|
55539
|
+
Quarter: "quarter",
|
|
55540
|
+
SemiAnnual: "semi_annual",
|
|
55541
|
+
Year: "year"
|
|
55542
|
+
};
|
|
55543
|
+
var UpdatePlanItemBillingMethodResponse = {
|
|
55544
|
+
Prepaid: "prepaid",
|
|
55545
|
+
UsageBased: "usage_based"
|
|
55546
|
+
};
|
|
54868
55547
|
var UpdatePlanItemExpiryDurationTypeResponse = {
|
|
54869
55548
|
Month: "month",
|
|
54870
55549
|
Forever: "forever"
|
|
@@ -55119,16 +55798,23 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
55119
55798
|
None: "none",
|
|
55120
55799
|
NoProrations: "no_prorations"
|
|
55121
55800
|
};
|
|
55122
|
-
var
|
|
55123
|
-
|
|
55124
|
-
|
|
55125
|
-
|
|
55126
|
-
|
|
55127
|
-
|
|
55128
|
-
|
|
55129
|
-
|
|
55130
|
-
|
|
55131
|
-
};
|
|
55801
|
+
var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
|
|
55802
|
+
var UpdatePlanItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanItemBillingMethodResponse);
|
|
55803
|
+
var UpdatePlanItemStripe$inboundSchema = z117.pipe(
|
|
55804
|
+
z117.object({
|
|
55805
|
+
price_id: string5()
|
|
55806
|
+
}),
|
|
55807
|
+
z117.transform((v) => {
|
|
55808
|
+
return remap(v, {
|
|
55809
|
+
"price_id": "priceId"
|
|
55810
|
+
});
|
|
55811
|
+
})
|
|
55812
|
+
);
|
|
55813
|
+
var UpdatePlanItemProcessors$inboundSchema = z117.object({
|
|
55814
|
+
stripe: z117.optional(
|
|
55815
|
+
z117.nullable(z117.lazy(() => UpdatePlanItemStripe$inboundSchema))
|
|
55816
|
+
)
|
|
55817
|
+
});
|
|
55132
55818
|
var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
55133
55819
|
z117.object({
|
|
55134
55820
|
amount: optional3(number2()),
|
|
@@ -55146,7 +55832,9 @@ var UpdatePlanItemPriceResponse$inboundSchema = z117.pipe(
|
|
|
55146
55832
|
billing_units: number2(),
|
|
55147
55833
|
billing_method: UpdatePlanItemBillingMethodResponse$inboundSchema,
|
|
55148
55834
|
max_purchase: nullable(number2()),
|
|
55149
|
-
processors: optional3(
|
|
55835
|
+
processors: optional3(
|
|
55836
|
+
z117.lazy(() => UpdatePlanItemProcessors$inboundSchema)
|
|
55837
|
+
)
|
|
55150
55838
|
}),
|
|
55151
55839
|
z117.transform((v) => {
|
|
55152
55840
|
return remap(v, {
|
|
@@ -55192,6 +55880,17 @@ var UpdatePlanItemExpiryResponse$inboundSchema = z117.object({
|
|
|
55192
55880
|
duration: UpdatePlanItemDurationResponse$inboundSchema,
|
|
55193
55881
|
length: number2()
|
|
55194
55882
|
});
|
|
55883
|
+
var UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema = z117.pipe(
|
|
55884
|
+
z117.object({
|
|
55885
|
+
metered_feature_id: string5(),
|
|
55886
|
+
excluded: literal3(true)
|
|
55887
|
+
}),
|
|
55888
|
+
z117.transform((v) => {
|
|
55889
|
+
return remap(v, {
|
|
55890
|
+
"metered_feature_id": "meteredFeatureId"
|
|
55891
|
+
});
|
|
55892
|
+
})
|
|
55893
|
+
);
|
|
55195
55894
|
var UpdatePlanDimensionsItemResponse4$inboundSchema = z117.pipe(
|
|
55196
55895
|
z117.object({
|
|
55197
55896
|
match: z117.record(z117.string(), string5()),
|
|
@@ -55379,6 +56078,9 @@ var UpdatePlanItemCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
|
55379
56078
|
),
|
|
55380
56079
|
z117.lazy(
|
|
55381
56080
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56081
|
+
),
|
|
56082
|
+
z117.lazy(
|
|
56083
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55382
56084
|
)
|
|
55383
56085
|
]);
|
|
55384
56086
|
var UpdatePlanItemProviderMarkupsResponse$inboundSchema = z117.object({
|
|
@@ -55425,6 +56127,9 @@ var UpdatePlanItemFeatureOverrideResponse$inboundSchema = z117.pipe(
|
|
|
55425
56127
|
),
|
|
55426
56128
|
z117.lazy(
|
|
55427
56129
|
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse2$inboundSchema
|
|
56130
|
+
),
|
|
56131
|
+
z117.lazy(
|
|
56132
|
+
() => UpdatePlanCreditSchemaItemFeatureOverrideResponse3$inboundSchema
|
|
55428
56133
|
)
|
|
55429
56134
|
]))),
|
|
55430
56135
|
markups: optional3(z117.lazy(
|
|
@@ -55837,6 +56542,17 @@ var UpdatePlanVariantDetailsExpiry$inboundSchema = z117.object({
|
|
|
55837
56542
|
duration: UpdatePlanVariantDetailsDuration$inboundSchema,
|
|
55838
56543
|
length: number2()
|
|
55839
56544
|
});
|
|
56545
|
+
var UpdatePlanCreditSchemaVariantDetails3$inboundSchema = z117.pipe(
|
|
56546
|
+
z117.object({
|
|
56547
|
+
metered_feature_id: string5(),
|
|
56548
|
+
excluded: literal3(true)
|
|
56549
|
+
}),
|
|
56550
|
+
z117.transform((v) => {
|
|
56551
|
+
return remap(v, {
|
|
56552
|
+
"metered_feature_id": "meteredFeatureId"
|
|
56553
|
+
});
|
|
56554
|
+
})
|
|
56555
|
+
);
|
|
55840
56556
|
var UpdatePlanDimensionsVariantDetails4$inboundSchema = z117.pipe(
|
|
55841
56557
|
z117.object({
|
|
55842
56558
|
match: z117.record(z117.string(), string5()),
|
|
@@ -56026,7 +56742,8 @@ var UpdatePlanCreditSchemaVariantDetails1$inboundSchema = z117.pipe(
|
|
|
56026
56742
|
);
|
|
56027
56743
|
var UpdatePlanVariantDetailsCreditSchemaUnion$inboundSchema = smartUnion([
|
|
56028
56744
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56029
|
-
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema)
|
|
56745
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema),
|
|
56746
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56030
56747
|
]);
|
|
56031
56748
|
var UpdatePlanVariantDetailsProviderMarkups$inboundSchema = z117.object({
|
|
56032
56749
|
markup: number2()
|
|
@@ -56070,7 +56787,8 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z117.pipe(
|
|
|
56070
56787
|
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails1$inboundSchema),
|
|
56071
56788
|
z117.lazy(
|
|
56072
56789
|
() => UpdatePlanCreditSchemaVariantDetails2$inboundSchema
|
|
56073
|
-
)
|
|
56790
|
+
),
|
|
56791
|
+
z117.lazy(() => UpdatePlanCreditSchemaVariantDetails3$inboundSchema)
|
|
56074
56792
|
]))),
|
|
56075
56793
|
markups: optional3(z117.lazy(
|
|
56076
56794
|
() => UpdatePlanVariantDetailsMarkups$inboundSchema
|
|
@@ -56412,56 +57130,18 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z117.pipe(
|
|
|
56412
57130
|
);
|
|
56413
57131
|
var UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnIncreaseResponse);
|
|
56414
57132
|
var UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseOnDecreaseResponse);
|
|
56415
|
-
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z117.pipe(
|
|
56416
|
-
z117.object({
|
|
56417
|
-
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
56418
|
-
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
56419
|
-
}),
|
|
56420
|
-
z117.transform((v) => {
|
|
56421
|
-
return remap(v, {
|
|
56422
|
-
"on_increase": "onIncrease",
|
|
56423
|
-
"on_decrease": "onDecrease"
|
|
56424
|
-
});
|
|
56425
|
-
})
|
|
56426
|
-
);
|
|
56427
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
56428
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
56429
|
-
);
|
|
56430
|
-
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z117.pipe(
|
|
56431
|
-
z117.object({
|
|
56432
|
-
max: optional3(number2()),
|
|
56433
|
-
max_percentage: optional3(number2()),
|
|
56434
|
-
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
56435
|
-
expiry_duration_length: optional3(number2())
|
|
56436
|
-
}),
|
|
56437
|
-
z117.transform((v) => {
|
|
56438
|
-
return remap(v, {
|
|
56439
|
-
"max_percentage": "maxPercentage",
|
|
56440
|
-
"expiry_duration_type": "expiryDurationType",
|
|
56441
|
-
"expiry_duration_length": "expiryDurationLength"
|
|
56442
|
-
});
|
|
56443
|
-
})
|
|
56444
|
-
);
|
|
56445
|
-
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
56446
|
-
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z117.object({
|
|
56447
|
-
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
56448
|
-
length: number2()
|
|
56449
|
-
});
|
|
56450
|
-
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z117.pipe(
|
|
56451
|
-
z117.object({
|
|
56452
|
-
match: z117.record(z117.string(), string5()),
|
|
56453
|
-
priority: optional3(number2()),
|
|
56454
|
-
credit_cost: number2()
|
|
56455
|
-
}),
|
|
56456
|
-
z117.transform((v) => {
|
|
56457
|
-
return remap(v, {
|
|
56458
|
-
"credit_cost": "creditCost"
|
|
56459
|
-
});
|
|
56460
|
-
})
|
|
56461
|
-
);
|
|
56462
57133
|
|
|
56463
57134
|
// ../sdk/src/models/update-plan-response.ts
|
|
56464
|
-
|
|
57135
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
57136
|
+
Month: "month",
|
|
57137
|
+
Forever: "forever"
|
|
57138
|
+
};
|
|
57139
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration = {
|
|
57140
|
+
Day: "day",
|
|
57141
|
+
Week: "week",
|
|
57142
|
+
Month: "month",
|
|
57143
|
+
Year: "year"
|
|
57144
|
+
};
|
|
56465
57145
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2 = {
|
|
56466
57146
|
Inf: "inf"
|
|
56467
57147
|
};
|
|
@@ -56584,6 +57264,64 @@ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
|
56584
57264
|
SemiAnnual: "semi_annual",
|
|
56585
57265
|
Year: "year"
|
|
56586
57266
|
};
|
|
57267
|
+
var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z118.pipe(
|
|
57268
|
+
z118.object({
|
|
57269
|
+
on_increase: UpdatePlanUpsertLicenseOnIncreaseResponse$inboundSchema,
|
|
57270
|
+
on_decrease: UpdatePlanUpsertLicenseOnDecreaseResponse$inboundSchema
|
|
57271
|
+
}),
|
|
57272
|
+
z118.transform((v) => {
|
|
57273
|
+
return remap(v, {
|
|
57274
|
+
"on_increase": "onIncrease",
|
|
57275
|
+
"on_decrease": "onDecrease"
|
|
57276
|
+
});
|
|
57277
|
+
})
|
|
57278
|
+
);
|
|
57279
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
57280
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
57281
|
+
);
|
|
57282
|
+
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z118.pipe(
|
|
57283
|
+
z118.object({
|
|
57284
|
+
max: optional3(number2()),
|
|
57285
|
+
max_percentage: optional3(number2()),
|
|
57286
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
57287
|
+
expiry_duration_length: optional3(number2())
|
|
57288
|
+
}),
|
|
57289
|
+
z118.transform((v) => {
|
|
57290
|
+
return remap(v, {
|
|
57291
|
+
"max_percentage": "maxPercentage",
|
|
57292
|
+
"expiry_duration_type": "expiryDurationType",
|
|
57293
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
57294
|
+
});
|
|
57295
|
+
})
|
|
57296
|
+
);
|
|
57297
|
+
var UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseDuration);
|
|
57298
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema = z118.object({
|
|
57299
|
+
duration: UpdatePlanVariantDetailsUpsertLicenseDuration$inboundSchema,
|
|
57300
|
+
length: number2()
|
|
57301
|
+
});
|
|
57302
|
+
var UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema = z118.pipe(
|
|
57303
|
+
z118.object({
|
|
57304
|
+
metered_feature_id: string5(),
|
|
57305
|
+
excluded: literal3(true)
|
|
57306
|
+
}),
|
|
57307
|
+
z118.transform((v) => {
|
|
57308
|
+
return remap(v, {
|
|
57309
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57310
|
+
});
|
|
57311
|
+
})
|
|
57312
|
+
);
|
|
57313
|
+
var UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema = z118.pipe(
|
|
57314
|
+
z118.object({
|
|
57315
|
+
match: z118.record(z118.string(), string5()),
|
|
57316
|
+
priority: optional3(number2()),
|
|
57317
|
+
credit_cost: number2()
|
|
57318
|
+
}),
|
|
57319
|
+
z118.transform((v) => {
|
|
57320
|
+
return remap(v, {
|
|
57321
|
+
"credit_cost": "creditCost"
|
|
57322
|
+
});
|
|
57323
|
+
})
|
|
57324
|
+
);
|
|
56587
57325
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z118.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
56588
57326
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
56589
57327
|
number2(),
|
|
@@ -56622,7 +57360,9 @@ var UpdatePlanVariantDetailsUpsertLicenseDimensionsUnion2$inboundSchema = smartU
|
|
|
56622
57360
|
z118.lazy(
|
|
56623
57361
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56624
57362
|
),
|
|
56625
|
-
|
|
57363
|
+
z118.lazy(
|
|
57364
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57365
|
+
)
|
|
56626
57366
|
]);
|
|
56627
57367
|
var UpdatePlanVariantDetailsUpsertLicenseMultipliers2$inboundSchema = z118.object({
|
|
56628
57368
|
match: z118.record(z118.string(), string5()),
|
|
@@ -56639,7 +57379,9 @@ var UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema = z118.pipe
|
|
|
56639
57379
|
z118.lazy(
|
|
56640
57380
|
() => UpdatePlanDimensionsVariantDetailsUpsertLicense3$inboundSchema
|
|
56641
57381
|
),
|
|
56642
|
-
|
|
57382
|
+
z118.lazy(
|
|
57383
|
+
() => UpdatePlanDimensionsVariantDetailsUpsertLicense4$inboundSchema
|
|
57384
|
+
)
|
|
56643
57385
|
])
|
|
56644
57386
|
)),
|
|
56645
57387
|
multipliers: optional3(z118.record(
|
|
@@ -56778,6 +57520,9 @@ var UpdatePlanVariantDetailsUpsertLicenseCreditSchemaUnion$inboundSchema = smart
|
|
|
56778
57520
|
),
|
|
56779
57521
|
z118.lazy(
|
|
56780
57522
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57523
|
+
),
|
|
57524
|
+
z118.lazy(
|
|
57525
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56781
57526
|
)
|
|
56782
57527
|
]);
|
|
56783
57528
|
var UpdatePlanVariantDetailsUpsertLicenseProviderMarkups$inboundSchema = z118.object({
|
|
@@ -56828,6 +57573,9 @@ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z118.pi
|
|
|
56828
57573
|
),
|
|
56829
57574
|
z118.lazy(
|
|
56830
57575
|
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense2$inboundSchema
|
|
57576
|
+
),
|
|
57577
|
+
z118.lazy(
|
|
57578
|
+
() => UpdatePlanCreditSchemaVariantDetailsUpsertLicense3$inboundSchema
|
|
56831
57579
|
)
|
|
56832
57580
|
]))),
|
|
56833
57581
|
markups: optional3(z118.lazy(
|
|
@@ -56857,15 +57605,15 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z118.pipe(
|
|
|
56857
57605
|
price: optional3(
|
|
56858
57606
|
UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema
|
|
56859
57607
|
),
|
|
56860
|
-
proration: optional3(
|
|
56861
|
-
UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
56862
|
-
),
|
|
56863
|
-
rollover: optional3(
|
|
56864
|
-
UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
56865
|
-
),
|
|
56866
|
-
expiry: optional3(
|
|
56867
|
-
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
56868
|
-
),
|
|
57608
|
+
proration: optional3(z118.lazy(
|
|
57609
|
+
() => UpdatePlanUpsertLicenseProrationResponse$inboundSchema
|
|
57610
|
+
)),
|
|
57611
|
+
rollover: optional3(z118.lazy(
|
|
57612
|
+
() => UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema
|
|
57613
|
+
)),
|
|
57614
|
+
expiry: optional3(z118.lazy(
|
|
57615
|
+
() => UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
57616
|
+
)),
|
|
56869
57617
|
feature_override: optional3(z118.lazy(
|
|
56870
57618
|
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
56871
57619
|
))
|
|
@@ -57146,6 +57894,17 @@ var UpdatePlanLicenseExpiryResponse$inboundSchema = z118.object({
|
|
|
57146
57894
|
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
57147
57895
|
length: number2()
|
|
57148
57896
|
});
|
|
57897
|
+
var UpdatePlanCreditSchemaLicenseResponse3$inboundSchema = z118.pipe(
|
|
57898
|
+
z118.object({
|
|
57899
|
+
metered_feature_id: string5(),
|
|
57900
|
+
excluded: literal3(true)
|
|
57901
|
+
}),
|
|
57902
|
+
z118.transform((v) => {
|
|
57903
|
+
return remap(v, {
|
|
57904
|
+
"metered_feature_id": "meteredFeatureId"
|
|
57905
|
+
});
|
|
57906
|
+
})
|
|
57907
|
+
);
|
|
57149
57908
|
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z118.pipe(
|
|
57150
57909
|
z118.object({
|
|
57151
57910
|
match: z118.record(z118.string(), string5()),
|
|
@@ -57331,7 +58090,8 @@ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z118.pipe(
|
|
|
57331
58090
|
);
|
|
57332
58091
|
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
57333
58092
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57334
|
-
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
58093
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema),
|
|
58094
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57335
58095
|
]);
|
|
57336
58096
|
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z118.object({
|
|
57337
58097
|
markup: number2()
|
|
@@ -57375,7 +58135,8 @@ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z118.pipe(
|
|
|
57375
58135
|
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
57376
58136
|
z118.lazy(
|
|
57377
58137
|
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
57378
|
-
)
|
|
58138
|
+
),
|
|
58139
|
+
z118.lazy(() => UpdatePlanCreditSchemaLicenseResponse3$inboundSchema)
|
|
57379
58140
|
]))),
|
|
57380
58141
|
markups: optional3(z118.lazy(
|
|
57381
58142
|
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
@@ -59033,6 +59794,34 @@ var BufferLoggedResponseHook = class {
|
|
|
59033
59794
|
}
|
|
59034
59795
|
};
|
|
59035
59796
|
|
|
59797
|
+
// ../sdk/src/lib/config.ts
|
|
59798
|
+
var ServerList = [
|
|
59799
|
+
/**
|
|
59800
|
+
* Production server
|
|
59801
|
+
*/
|
|
59802
|
+
"https://api.useautumn.com"
|
|
59803
|
+
];
|
|
59804
|
+
function serverURLFromOptions(options) {
|
|
59805
|
+
let serverURL = options.serverURL;
|
|
59806
|
+
const params = {};
|
|
59807
|
+
if (!serverURL) {
|
|
59808
|
+
const serverIdx = options.serverIdx ?? 0;
|
|
59809
|
+
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
59810
|
+
throw new Error(`Invalid server index ${serverIdx}`);
|
|
59811
|
+
}
|
|
59812
|
+
serverURL = ServerList[serverIdx] || "";
|
|
59813
|
+
}
|
|
59814
|
+
const u = pathToFunc(serverURL)(params);
|
|
59815
|
+
return new URL(u);
|
|
59816
|
+
}
|
|
59817
|
+
var SDK_METADATA = {
|
|
59818
|
+
language: "typescript",
|
|
59819
|
+
openapiDocVersion: "2.5.0",
|
|
59820
|
+
sdkVersion: "0.10.18",
|
|
59821
|
+
genVersion: "2.884.13",
|
|
59822
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
|
|
59823
|
+
};
|
|
59824
|
+
|
|
59036
59825
|
// ../sdk/src/hooks/edge/edgeURLs.ts
|
|
59037
59826
|
var withTrailingSlash = (url) => String(url).replace(/\/+$/, "") + "/";
|
|
59038
59827
|
var edgeBasesOf = ({
|
|
@@ -63564,6 +64353,7 @@ var Features = class extends ClientSDK {
|
|
|
63564
64353
|
* @param name - The name of the feature.
|
|
63565
64354
|
* @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.
|
|
63566
64355
|
* @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)
|
|
64356
|
+
* @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)
|
|
63567
64357
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63568
64358
|
* @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)
|
|
63569
64359
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -63636,6 +64426,7 @@ var Features = class extends ClientSDK {
|
|
|
63636
64426
|
* @param name - The name of the feature. (optional)
|
|
63637
64427
|
* @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)
|
|
63638
64428
|
* @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)
|
|
64429
|
+
* @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)
|
|
63639
64430
|
* @param display - Singular and plural display names for the feature in your user interface. (optional)
|
|
63640
64431
|
* @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)
|
|
63641
64432
|
* @param modelMarkups - Per-model markup overrides for AI credit systems. Maps model IDs to their markup configuration. (optional)
|
|
@@ -68442,192 +69233,6 @@ var Autumn = class _Autumn extends ClientSDK {
|
|
|
68442
69233
|
}
|
|
68443
69234
|
};
|
|
68444
69235
|
|
|
68445
|
-
// src/backend/core/handlers/errorTransformer.ts
|
|
68446
|
-
var parseErrorBody = (body) => {
|
|
68447
|
-
if (!body || body.length === 0) return {};
|
|
68448
|
-
try {
|
|
68449
|
-
return JSON.parse(body);
|
|
68450
|
-
} catch {
|
|
68451
|
-
return {};
|
|
68452
|
-
}
|
|
68453
|
-
};
|
|
68454
|
-
var transformSdkError = (error) => {
|
|
68455
|
-
if (error instanceof AutumnError) {
|
|
68456
|
-
const parsed = parseErrorBody(error.body);
|
|
68457
|
-
return backendError({
|
|
68458
|
-
statusCode: error.statusCode,
|
|
68459
|
-
message: parsed.message ?? error.message ?? "Autumn API request failed",
|
|
68460
|
-
code: parsed.code ?? "autumn_api_error"
|
|
68461
|
-
});
|
|
68462
|
-
}
|
|
68463
|
-
if (error instanceof Error) {
|
|
68464
|
-
return backendError({
|
|
68465
|
-
message: error.message,
|
|
68466
|
-
code: "internal_error"
|
|
68467
|
-
});
|
|
68468
|
-
}
|
|
68469
|
-
return backendError({
|
|
68470
|
-
message: "Internal server error",
|
|
68471
|
-
code: "internal_error"
|
|
68472
|
-
});
|
|
68473
|
-
};
|
|
68474
|
-
|
|
68475
|
-
// src/backend/core/handlers/resolveIdentity.ts
|
|
68476
|
-
var resolveIdentity = async ({
|
|
68477
|
-
getCustomer,
|
|
68478
|
-
requireCustomer = true
|
|
68479
|
-
}) => {
|
|
68480
|
-
try {
|
|
68481
|
-
const authResult = await getCustomer();
|
|
68482
|
-
const identity = authResult ? {
|
|
68483
|
-
customerId: authResult.customerId ?? null,
|
|
68484
|
-
customerData: authResult.customerData
|
|
68485
|
-
} : { customerId: null, customerData: void 0 };
|
|
68486
|
-
if (requireCustomer && !identity.customerId) {
|
|
68487
|
-
return {
|
|
68488
|
-
success: false,
|
|
68489
|
-
error: backendError({
|
|
68490
|
-
message: `customerId returned from identify function is ${identity.customerId}`,
|
|
68491
|
-
code: "no_customer_id",
|
|
68492
|
-
statusCode: 401
|
|
68493
|
-
})
|
|
68494
|
-
};
|
|
68495
|
-
}
|
|
68496
|
-
return { success: true, identity };
|
|
68497
|
-
} catch (error) {
|
|
68498
|
-
console.error("[Autumn]: identify failed", error);
|
|
68499
|
-
return { success: false, error: transformSdkError(error) };
|
|
68500
|
-
}
|
|
68501
|
-
};
|
|
68502
|
-
|
|
68503
|
-
// src/backend/core/handlers/executeRoute.ts
|
|
68504
|
-
var buildSdkArgs = ({
|
|
68505
|
-
body,
|
|
68506
|
-
identity,
|
|
68507
|
-
route
|
|
68508
|
-
}) => {
|
|
68509
|
-
const args = sanitizeBody(body, route.protectedBodyFields);
|
|
68510
|
-
if (identity.customerId) {
|
|
68511
|
-
args.customerId = identity.customerId;
|
|
68512
|
-
}
|
|
68513
|
-
return args;
|
|
68514
|
-
};
|
|
68515
|
-
var executeRoute = async ({
|
|
68516
|
-
autumn,
|
|
68517
|
-
route,
|
|
68518
|
-
body,
|
|
68519
|
-
getCustomer
|
|
68520
|
-
}) => {
|
|
68521
|
-
const requireCustomer = route.requireCustomer !== false;
|
|
68522
|
-
const identityResult = await resolveIdentity({
|
|
68523
|
-
getCustomer,
|
|
68524
|
-
requireCustomer
|
|
68525
|
-
});
|
|
68526
|
-
if (identityResult.success === false) {
|
|
68527
|
-
return identityResult.error;
|
|
68528
|
-
}
|
|
68529
|
-
const { identity } = identityResult;
|
|
68530
|
-
if (route.customHandler) {
|
|
68531
|
-
try {
|
|
68532
|
-
const result = await route.customHandler({ autumn, identity, body });
|
|
68533
|
-
if (isBackendResult(result)) {
|
|
68534
|
-
return result;
|
|
68535
|
-
}
|
|
68536
|
-
return backendSuccess({ body: result });
|
|
68537
|
-
} catch (error) {
|
|
68538
|
-
console.error(`[Autumn] Custom handler failed: ${route.route}`, error);
|
|
68539
|
-
return transformSdkError(error);
|
|
68540
|
-
}
|
|
68541
|
-
}
|
|
68542
|
-
const sdkArgs = buildSdkArgs({ body, identity, route });
|
|
68543
|
-
try {
|
|
68544
|
-
const result = await route.sdkMethod(autumn, sdkArgs);
|
|
68545
|
-
return backendSuccess({ body: result });
|
|
68546
|
-
} catch (error) {
|
|
68547
|
-
console.error(`[Autumn] SDK call failed: ${route.route}`, error);
|
|
68548
|
-
return transformSdkError(error);
|
|
68549
|
-
}
|
|
68550
|
-
};
|
|
68551
|
-
|
|
68552
|
-
// src/backend/core/handlers/handleRouteByName.ts
|
|
68553
|
-
var handleRouteByName = async ({
|
|
68554
|
-
routeName,
|
|
68555
|
-
body,
|
|
68556
|
-
identify,
|
|
68557
|
-
secretKey,
|
|
68558
|
-
autumnURL
|
|
68559
|
-
}) => {
|
|
68560
|
-
const keyCheck = secretKeyCheck(secretKey);
|
|
68561
|
-
if (!keyCheck.found) {
|
|
68562
|
-
return {
|
|
68563
|
-
status: keyCheck.error.statusCode,
|
|
68564
|
-
body: keyCheck.error
|
|
68565
|
-
};
|
|
68566
|
-
}
|
|
68567
|
-
const route = routeConfigs.find((r) => r.route === routeName);
|
|
68568
|
-
if (!route) {
|
|
68569
|
-
return {
|
|
68570
|
-
status: 404,
|
|
68571
|
-
body: { message: "Route not found", code: "route_not_found" }
|
|
68572
|
-
};
|
|
68573
|
-
}
|
|
68574
|
-
const autumn = new Autumn({
|
|
68575
|
-
secretKey: secretKey || process.env.AUTUMN_SECRET_KEY,
|
|
68576
|
-
...autumnURL && { serverURL: autumnURL }
|
|
68577
|
-
});
|
|
68578
|
-
const result = await executeRoute({
|
|
68579
|
-
autumn,
|
|
68580
|
-
route,
|
|
68581
|
-
body,
|
|
68582
|
-
getCustomer: identify
|
|
68583
|
-
});
|
|
68584
|
-
return {
|
|
68585
|
-
status: result.statusCode,
|
|
68586
|
-
body: result.body
|
|
68587
|
-
};
|
|
68588
|
-
};
|
|
68589
|
-
|
|
68590
|
-
// src/better-auth/utils/handleBetterAuthRoute.ts
|
|
68591
|
-
var createIdentityResolver = ({
|
|
68592
|
-
session,
|
|
68593
|
-
organization,
|
|
68594
|
-
customerScope,
|
|
68595
|
-
identify
|
|
68596
|
-
}) => {
|
|
68597
|
-
return () => {
|
|
68598
|
-
if (identify) {
|
|
68599
|
-
return identify({ session, organization });
|
|
68600
|
-
}
|
|
68601
|
-
return resolveIdentityFromScope({ session, organization, customerScope });
|
|
68602
|
-
};
|
|
68603
|
-
};
|
|
68604
|
-
var createHandleBetterAuthRoute = ({
|
|
68605
|
-
secretKey,
|
|
68606
|
-
baseURL,
|
|
68607
|
-
customerScope,
|
|
68608
|
-
identify
|
|
68609
|
-
}) => {
|
|
68610
|
-
return async ({ ctx, routeName }) => {
|
|
68611
|
-
const session = await getSessionFromCtx(
|
|
68612
|
-
ctx
|
|
68613
|
-
);
|
|
68614
|
-
const organization = await getActiveOrganization(ctx, session);
|
|
68615
|
-
const typedCtx = ctx;
|
|
68616
|
-
return handleRouteByName({
|
|
68617
|
-
routeName,
|
|
68618
|
-
body: typedCtx.body,
|
|
68619
|
-
identify: createIdentityResolver({
|
|
68620
|
-
session,
|
|
68621
|
-
organization,
|
|
68622
|
-
customerScope,
|
|
68623
|
-
identify
|
|
68624
|
-
}),
|
|
68625
|
-
secretKey,
|
|
68626
|
-
autumnURL: baseURL
|
|
68627
|
-
});
|
|
68628
|
-
};
|
|
68629
|
-
};
|
|
68630
|
-
|
|
68631
69236
|
export {
|
|
68632
|
-
|
|
69237
|
+
Autumn
|
|
68633
69238
|
};
|