@mountaya/client 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +2 -2
  3. package/dist/admin/index.cjs +2876 -3502
  4. package/dist/admin/index.cjs.map +1 -1
  5. package/dist/admin/index.d.cts +731 -912
  6. package/dist/admin/index.d.ts +731 -912
  7. package/dist/admin/index.js +188 -285
  8. package/dist/admin/index.js.map +1 -1
  9. package/dist/browser.cjs +5913 -7993
  10. package/dist/browser.cjs.map +1 -1
  11. package/dist/browser.d.cts +42 -78
  12. package/dist/browser.d.ts +42 -78
  13. package/dist/browser.js +18 -49
  14. package/dist/browser.js.map +1 -1
  15. package/dist/chunk-CeEX7ayk.d.cts +75531 -0
  16. package/dist/chunk-CeEX7ayk.d.ts +75531 -0
  17. package/dist/chunk-Cg7Dtcb4.js +2987 -0
  18. package/dist/chunk-Cg7Dtcb4.js.map +1 -0
  19. package/dist/chunk-DJqUsgsy.d.ts +1463 -0
  20. package/dist/chunk-DNc8T5K1.js +241 -0
  21. package/dist/chunk-DNc8T5K1.js.map +1 -0
  22. package/dist/chunk-DTxzw3hu.d.cts +1463 -0
  23. package/dist/chunk-DmxQID5X.js +2289 -0
  24. package/dist/chunk-DmxQID5X.js.map +1 -0
  25. package/dist/chunk-DoZt_oIV.d.ts +3991 -0
  26. package/dist/chunk-DpJrqANO.js +11 -0
  27. package/dist/chunk-Dx8mPAdC.d.cts +3991 -0
  28. package/dist/chunk-X2ukY3ho.js +419 -0
  29. package/dist/chunk-X2ukY3ho.js.map +1 -0
  30. package/dist/events/index.cjs +1338 -1874
  31. package/dist/events/index.cjs.map +1 -1
  32. package/dist/events/index.d.cts +373 -382
  33. package/dist/events/index.d.ts +373 -382
  34. package/dist/events/index.js +523 -806
  35. package/dist/events/index.js.map +1 -1
  36. package/dist/index.cjs +5908 -7988
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +37 -69
  39. package/dist/index.d.ts +37 -69
  40. package/dist/index.js +17 -48
  41. package/dist/index.js.map +1 -1
  42. package/package.json +7 -8
  43. package/src/browser.ts +1 -0
  44. package/src/core/rules/clientHeader.ts +1 -1
  45. package/src/core/rules/errors.ts +1 -1
  46. package/src/core/rules/nullMasks.gen.ts +14 -2
  47. package/src/core/rules/version.gen.ts +1 -1
  48. package/src/events/index.ts +1 -5
  49. package/src/rest/adminResources.gen.ts +2 -0
  50. package/src/rest/dates.gen.ts +1 -1
  51. package/src/rest/resources.gen.ts +2 -0
  52. package/src/rest/schema.gen.ts +247 -60
  53. package/src/tiles/schema.gen.ts +1 -3
  54. package/dist/chunk-BM526BHG.js +0 -342
  55. package/dist/chunk-BM526BHG.js.map +0 -1
  56. package/dist/chunk-D2YEVTG7.js +0 -327
  57. package/dist/chunk-D2YEVTG7.js.map +0 -1
  58. package/dist/chunk-OHKVUREN.js +0 -3500
  59. package/dist/chunk-OHKVUREN.js.map +0 -1
  60. package/dist/chunk-TDTK2L5H.js +0 -3842
  61. package/dist/chunk-TDTK2L5H.js.map +0 -1
  62. package/dist/coreOperations.gen-BMYPoBbz.d.ts +0 -1760
  63. package/dist/coreOperations.gen-BxX5xRxw.d.cts +0 -1760
  64. package/dist/errors-B-GqAtQv.d.cts +0 -75960
  65. package/dist/errors-B-GqAtQv.d.ts +0 -75960
  66. package/dist/operations.gen-CvTyzKNF.d.cts +0 -3993
  67. package/dist/operations.gen-DUD406TV.d.ts +0 -3993
@@ -0,0 +1,2987 @@
1
+ const digitPattern = /[0-9]/;
2
+ const alphaPattern = /[A-Za-z]/;
3
+ const lowercaseAlphaPattern = /[a-z]/;
4
+ const keyCharPattern = /[a-z0-9_.*-]/;
5
+ const tokenCharPattern = /[!#$%&'*+\-.^_`|~0-9A-Za-z:/]/;
6
+ const base64CharPattern = /[A-Za-z0-9+/=]/;
7
+ var Cursor = class {
8
+ text;
9
+ index = 0;
10
+ constructor(text) {
11
+ this.text = text;
12
+ }
13
+ get done() {
14
+ return this.index >= this.text.length;
15
+ }
16
+ peek() {
17
+ return this.text[this.index] ?? "";
18
+ }
19
+ take() {
20
+ const char = this.peek();
21
+ this.index += 1;
22
+ return char;
23
+ }
24
+ skipSpaces() {
25
+ while (this.peek() === " ") this.index += 1;
26
+ }
27
+ skipWhitespace() {
28
+ while (this.peek() === " " || this.peek() === " ") this.index += 1;
29
+ }
30
+ consume(char) {
31
+ return this.take() === char;
32
+ }
33
+ member() {
34
+ if (this.peek() === "(") {
35
+ if (!this.innerList()) return;
36
+ const parameters = this.parameters();
37
+ return parameters === void 0 ? void 0 : {
38
+ item: void 0,
39
+ parameters
40
+ };
41
+ }
42
+ const item = this.bareItem();
43
+ const parameters = item === void 0 ? void 0 : this.parameters();
44
+ return parameters === void 0 ? void 0 : {
45
+ item,
46
+ parameters
47
+ };
48
+ }
49
+ innerList() {
50
+ this.index += 1;
51
+ for (;;) {
52
+ this.skipSpaces();
53
+ if (this.peek() === ")") {
54
+ this.index += 1;
55
+ return true;
56
+ }
57
+ if (this.bareItem() === void 0 || this.parameters() === void 0) return false;
58
+ if (this.peek() !== " " && this.peek() !== ")") return false;
59
+ }
60
+ }
61
+ parameters() {
62
+ const parameters = /* @__PURE__ */ new Map();
63
+ while (this.peek() === ";") {
64
+ this.index += 1;
65
+ this.skipSpaces();
66
+ const key = this.key();
67
+ if (key === void 0) return;
68
+ let value = {
69
+ kind: "boolean",
70
+ value: true
71
+ };
72
+ if (this.peek() === "=") {
73
+ this.index += 1;
74
+ value = this.bareItem();
75
+ }
76
+ if (value === void 0) return;
77
+ parameters.set(key, value);
78
+ }
79
+ return parameters;
80
+ }
81
+ key() {
82
+ if (!lowercaseAlphaPattern.test(this.peek()) && this.peek() !== "*") return;
83
+ let key = this.take();
84
+ while (keyCharPattern.test(this.peek())) key += this.take();
85
+ return key;
86
+ }
87
+ bareItem() {
88
+ const first = this.peek();
89
+ if (first === "-" || digitPattern.test(first)) return this.number();
90
+ if (first === "\"") {
91
+ const value = this.string();
92
+ return value === void 0 ? void 0 : {
93
+ kind: "string",
94
+ value
95
+ };
96
+ }
97
+ if (first === "*" || alphaPattern.test(first)) return {
98
+ kind: "token",
99
+ value: this.token()
100
+ };
101
+ if (first === ":") return this.bytes() ? { kind: "bytes" } : void 0;
102
+ if (first === "?") {
103
+ this.index += 1;
104
+ const value = this.take();
105
+ return value === "0" || value === "1" ? {
106
+ kind: "boolean",
107
+ value: value === "1"
108
+ } : void 0;
109
+ }
110
+ if (first === "@") {
111
+ this.index += 1;
112
+ const date = this.number();
113
+ return date?.kind === "integer" ? {
114
+ kind: "date",
115
+ value: date.value
116
+ } : void 0;
117
+ }
118
+ if (first === "%") {
119
+ this.index += 1;
120
+ const value = this.displayString();
121
+ return value === void 0 ? void 0 : {
122
+ kind: "display",
123
+ value
124
+ };
125
+ }
126
+ }
127
+ number() {
128
+ let sign = 1;
129
+ if (this.peek() === "-") {
130
+ sign = -1;
131
+ this.index += 1;
132
+ }
133
+ let digits = "";
134
+ let decimal = false;
135
+ while (digitPattern.test(this.peek()) || this.peek() === "." && !decimal) {
136
+ if (this.peek() === ".") {
137
+ if (digits.length > 12) return;
138
+ decimal = true;
139
+ }
140
+ digits += this.take();
141
+ if (!decimal && digits.length > 15 || decimal && digits.length > 16) return;
142
+ }
143
+ if (digits === "" || digits.startsWith(".")) return;
144
+ if (!decimal) return {
145
+ kind: "integer",
146
+ value: sign * Number(digits)
147
+ };
148
+ const fraction = digits.slice(digits.indexOf(".") + 1);
149
+ if (fraction.length === 0 || fraction.length > 3) return;
150
+ return {
151
+ kind: "decimal",
152
+ value: sign * Number(digits)
153
+ };
154
+ }
155
+ string() {
156
+ this.index += 1;
157
+ let value = "";
158
+ for (;;) {
159
+ if (this.done) return;
160
+ const char = this.take();
161
+ if (char === "\"") return value;
162
+ if (char === "\\") {
163
+ const escaped = this.take();
164
+ if (escaped !== "\"" && escaped !== "\\") return;
165
+ value += escaped;
166
+ continue;
167
+ }
168
+ const code = char.charCodeAt(0);
169
+ if (code < 32 || code > 126) return;
170
+ value += char;
171
+ }
172
+ }
173
+ token() {
174
+ let value = this.take();
175
+ while (tokenCharPattern.test(this.peek())) value += this.take();
176
+ return value;
177
+ }
178
+ bytes() {
179
+ this.index += 1;
180
+ while (base64CharPattern.test(this.peek())) this.index += 1;
181
+ return this.consume(":");
182
+ }
183
+ displayString() {
184
+ if (!this.consume("\"")) return;
185
+ const bytes = [];
186
+ for (;;) {
187
+ if (this.done) return;
188
+ const char = this.take();
189
+ const code = char.charCodeAt(0);
190
+ if (code < 32 || code > 126) return;
191
+ if (char === "\"") try {
192
+ return new TextDecoder("utf-8", { fatal: true }).decode(Uint8Array.from(bytes));
193
+ } catch {
194
+ return;
195
+ }
196
+ if (char === "%") {
197
+ const hex = this.take() + this.take();
198
+ if (!/^[0-9a-f]{2}$/.test(hex)) return;
199
+ bytes.push(Number.parseInt(hex, 16));
200
+ continue;
201
+ }
202
+ bytes.push(code);
203
+ }
204
+ }
205
+ };
206
+ const parseList = (text) => {
207
+ const cursor = new Cursor(text);
208
+ const members = [];
209
+ cursor.skipSpaces();
210
+ while (!cursor.done) {
211
+ const member = cursor.member();
212
+ if (member === void 0) return;
213
+ members.push(member);
214
+ cursor.skipWhitespace();
215
+ if (cursor.done) break;
216
+ if (!cursor.consume(",")) return;
217
+ cursor.skipWhitespace();
218
+ if (cursor.done) return;
219
+ }
220
+ return members;
221
+ };
222
+ const wholeNumber = (item) => item?.kind === "integer" && item.value >= 0 ? item.value : void 0;
223
+ const policyName = (member) => member.item?.kind === "string" ? member.item.value : void 0;
224
+ const parseRateLimit = (headers) => {
225
+ const policyField = headers.get("RateLimit-Policy");
226
+ const declared = policyField === null ? void 0 : parseList(policyField);
227
+ if (declared === void 0) return;
228
+ const stateField = headers.get("RateLimit");
229
+ const states = /* @__PURE__ */ new Map();
230
+ for (const member of (stateField === null ? void 0 : parseList(stateField)) ?? []) {
231
+ const name = policyName(member);
232
+ if (name !== void 0 && !states.has(name)) states.set(name, member);
233
+ }
234
+ const policies = [];
235
+ for (const member of declared) {
236
+ const name = policyName(member);
237
+ const quota = wholeNumber(member.parameters.get("q"));
238
+ if (name === void 0 || quota === void 0) continue;
239
+ const state = states.get(name)?.parameters;
240
+ policies.push({
241
+ name,
242
+ quota,
243
+ remaining: wholeNumber(state?.get("r")),
244
+ resetSeconds: wholeNumber(state?.get("t")),
245
+ windowSeconds: wholeNumber(member.parameters.get("w"))
246
+ });
247
+ }
248
+ return policies.length === 0 ? void 0 : { policies };
249
+ };
250
+ var MountayaError = class extends Error {
251
+ name = "MountayaError";
252
+ idempotencyKey;
253
+ constructor(message, options) {
254
+ super(message, options);
255
+ this.idempotencyKey = options?.idempotencyKey;
256
+ }
257
+ };
258
+ var MountayaConfigurationError = class extends MountayaError {
259
+ name = "MountayaConfigurationError";
260
+ };
261
+ const describeType = (value) => {
262
+ if (value === null || value === void 0) return String(value);
263
+ const type = Array.isArray(value) ? "array" : typeof value;
264
+ return /^[aeiou]/.test(type) ? `an ${type}` : `a ${type}`;
265
+ };
266
+ const describeValue = (value) => {
267
+ if (typeof value === "string") return JSON.stringify(value);
268
+ try {
269
+ return String(value);
270
+ } catch {
271
+ return describeType(value);
272
+ }
273
+ };
274
+ const refuseOption = (path, value, remedy, context) => new MountayaConfigurationError(`${context === void 0 ? "" : `${context}: `}${path} is ${describeValue(value)}; ${remedy}`);
275
+ var MountayaConnectionError = class extends MountayaError {
276
+ name = "MountayaConnectionError";
277
+ constructor(message, cause, idempotencyKey) {
278
+ super(message, {
279
+ cause,
280
+ idempotencyKey
281
+ });
282
+ }
283
+ };
284
+ var MountayaApiError = class extends MountayaError {
285
+ name = "MountayaApiError";
286
+ status;
287
+ errors;
288
+ metadata;
289
+ rateLimit;
290
+ requestId;
291
+ retryAfter;
292
+ constructor(message, status, errors, details = {}) {
293
+ super(message, details.cause === void 0 ? { idempotencyKey: details.idempotencyKey } : {
294
+ cause: details.cause,
295
+ idempotencyKey: details.idempotencyKey
296
+ });
297
+ this.status = status;
298
+ this.errors = errors;
299
+ this.metadata = details.metadata;
300
+ this.rateLimit = details.rateLimit;
301
+ this.requestId = details.requestId;
302
+ this.retryAfter = details.retryAfter;
303
+ }
304
+ get code() {
305
+ return this.errors[0]?.extensions?.code;
306
+ }
307
+ hasCode(code) {
308
+ return this.errors.some((entry) => entry.extensions?.code === code);
309
+ }
310
+ };
311
+ var MountayaBadRequestError = class extends MountayaApiError {
312
+ name = "MountayaBadRequestError";
313
+ };
314
+ var MountayaAuthenticationError = class extends MountayaApiError {
315
+ name = "MountayaAuthenticationError";
316
+ };
317
+ var MountayaBillingError = class extends MountayaApiError {
318
+ name = "MountayaBillingError";
319
+ };
320
+ var MountayaForbiddenError = class extends MountayaApiError {
321
+ name = "MountayaForbiddenError";
322
+ };
323
+ var MountayaNotFoundError = class extends MountayaApiError {
324
+ name = "MountayaNotFoundError";
325
+ };
326
+ var MountayaMethodNotAllowedError = class extends MountayaApiError {
327
+ name = "MountayaMethodNotAllowedError";
328
+ };
329
+ var MountayaConflictError = class extends MountayaApiError {
330
+ name = "MountayaConflictError";
331
+ };
332
+ const KEY_IN_USE_CODE = "IDEMPOTENCY_KEY_IN_USE";
333
+ const CEILING_CODE = "LIMIT_REACHED";
334
+ var MountayaIdempotencyKeyInUseError = class extends MountayaConflictError {
335
+ name = "MountayaIdempotencyKeyInUseError";
336
+ };
337
+ const IDEMPOTENT_ANSWER_UNAVAILABLE_CODE = "IDEMPOTENCY_ANSWER_UNAVAILABLE";
338
+ var MountayaIdempotentAnswerUnavailableError = class extends MountayaConflictError {
339
+ name = "MountayaIdempotentAnswerUnavailableError";
340
+ answer;
341
+ constructor(message, status, errors, details = {}) {
342
+ super(message, status, errors, details);
343
+ const { etag: taggedAs, location: createdAt, status: answeredWith } = details.metadata ?? {};
344
+ this.answer = {
345
+ etag: typeof taggedAs === "string" ? taggedAs : void 0,
346
+ location: typeof createdAt === "string" ? createdAt : void 0,
347
+ status: typeof answeredWith === "number" && Number.isInteger(answeredWith) ? answeredWith : void 0
348
+ };
349
+ }
350
+ };
351
+ var MountayaPreconditionFailedError = class extends MountayaApiError {
352
+ name = "MountayaPreconditionFailedError";
353
+ etag;
354
+ constructor(message, status, errors, details = {}) {
355
+ super(message, status, errors, details);
356
+ this.etag = details.etag;
357
+ }
358
+ };
359
+ var MountayaPayloadTooLargeError = class extends MountayaApiError {
360
+ name = "MountayaPayloadTooLargeError";
361
+ };
362
+ var MountayaRateLimitError = class extends MountayaApiError {
363
+ name = "MountayaRateLimitError";
364
+ };
365
+ var MountayaServerError = class extends MountayaApiError {
366
+ name = "MountayaServerError";
367
+ };
368
+ var MountayaDataError = class extends MountayaApiError {
369
+ name = "MountayaDataError";
370
+ };
371
+ const MOUNTAYA_API_ERROR_NAMES = [
372
+ "MountayaApiError",
373
+ "MountayaAuthenticationError",
374
+ "MountayaBadRequestError",
375
+ "MountayaBillingError",
376
+ "MountayaConflictError",
377
+ "MountayaDataError",
378
+ "MountayaForbiddenError",
379
+ "MountayaIdempotencyKeyInUseError",
380
+ "MountayaIdempotentAnswerUnavailableError",
381
+ "MountayaMethodNotAllowedError",
382
+ "MountayaNotFoundError",
383
+ "MountayaPayloadTooLargeError",
384
+ "MountayaPreconditionFailedError",
385
+ "MountayaRateLimitError",
386
+ "MountayaServerError"
387
+ ];
388
+ const MOUNTAYA_ERROR_NAMES = [
389
+ ...MOUNTAYA_API_ERROR_NAMES,
390
+ "MountayaConfigurationError",
391
+ "MountayaConnectionError",
392
+ "MountayaError",
393
+ "MountayaSelectionError",
394
+ "MountayaWebhookSignatureError",
395
+ "SseBufferOverflowError"
396
+ ];
397
+ const declaresName = (value, names) => typeof value === "object" && value !== null && "name" in value && typeof value.name === "string" && names.includes(value.name);
398
+ const isMountayaError = (error) => declaresName(error, MOUNTAYA_ERROR_NAMES);
399
+ const isMountayaApiError = (error) => declaresName(error, MOUNTAYA_API_ERROR_NAMES) && "status" in error && typeof error.status === "number" && "errors" in error && Array.isArray(error.errors) && error.errors.every((entry) => typeof entry === "object" && entry !== null) && "hasCode" in error && typeof error.hasCode === "function";
400
+ const isErrorEntry = (entry) => typeof entry === "object" && entry !== null && "message" in entry && typeof entry.message === "string";
401
+ const errorsOf = (body) => typeof body === "object" && body !== null && "errors" in body ? body.errors : void 0;
402
+ const entriesOf = (body) => {
403
+ const errors = errorsOf(body);
404
+ return Array.isArray(errors) ? errors.filter(isErrorEntry) : [];
405
+ };
406
+ const statesErrors = (body) => {
407
+ const errors = errorsOf(body);
408
+ return errors !== void 0 && errors !== null && !(Array.isArray(errors) && errors.length === 0);
409
+ };
410
+ const isMetadata = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
411
+ const metadataOf = (body) => {
412
+ if (typeof body !== "object" || body === null || !("extensions" in body)) return;
413
+ const { extensions } = body;
414
+ if (typeof extensions !== "object" || extensions === null || !("metadata" in extensions)) return;
415
+ const { metadata } = extensions;
416
+ return isMetadata(metadata) ? metadata : void 0;
417
+ };
418
+ const PAYMENT_REQUIRED_CODE = "PAYMENT_REQUIRED";
419
+ const BILLING_STEP = "The API's message says which applies: a product of the organization's agreement is changed with Mountaya (https://mountaya.com/en/contact/), and a missing payment method is added, or an invoice still owed paid, in the organization's billing settings.";
420
+ const CEILING_STEP = "No wait lifts a ceiling, so this call is not repeated: free a place in what the error's metadata names, or change the organization's agreement with Mountaya (https://mountaya.com/en/contact/) where it sets that ceiling.";
421
+ const secondsSpelled = (count) => `${count} ${count === 1 ? "second" : "seconds"}`;
422
+ const momentAfter = (seconds) => {
423
+ const end = new Date(Date.now() + seconds * 1e3);
424
+ return Number.isNaN(end.getTime()) ? void 0 : end.toISOString().replace(/\.\d{3}Z$/, "Z");
425
+ };
426
+ const monthlyAllowanceStep = (retryAfterSeconds) => {
427
+ const moment = retryAfterSeconds === void 0 ? void 0 : momentAfter(retryAfterSeconds);
428
+ return `The organization's monthly allowance on this API is spent: it renews when the next billing period begins${retryAfterSeconds === void 0 || retryAfterSeconds === 0 ? "" : ` in ${secondsSpelled(retryAfterSeconds)}${moment === void 0 ? "" : ` (at ${moment})`}`}, so this call is not repeated before then. A larger allowance is set in the organization's agreement with Mountaya (https://mountaya.com/en/contact/).`;
429
+ };
430
+ const spendsMonthlyAllowance = (rateLimit) => {
431
+ const policies = rateLimit?.policies ?? [];
432
+ return policies.some((policy) => policy.name === "month" && policy.remaining === 0) && policies.every((policy) => policy.name === "month" || policy.remaining !== 0);
433
+ };
434
+ const CREDENTIAL_STEP = "Check the credential this client sends: a key that is unknown, rotated or disabled, and a session token that has expired, are refused.";
435
+ const MEMBER_SESSION_STEP = "This call acts as the user its session token was minted for, so mint the token with postSession's user_id set to that user.";
436
+ const SECRET_KEY_STEP = "Check the secret key this client sends: one that is unknown, revoked or malformed, or one of a canceled organization, is refused.";
437
+ const FORBIDDEN_STEP = "Check that the key carries the scope this call needs, that the resource belongs to the key's organization, and that the page calling is one the organization allows.";
438
+ const ACTING_USER_STEP = "This call acts as the user its session token names (postSession's user_id), who must be a member of the key's organization holding the role the call asks.";
439
+ const MINT_REFUSAL_STEP = "Check that the publishable key in the body is one this secret key's organization issued, and that user_id names a member of that organization or a user holding an invitation to it.";
440
+ const PRECONDITION_STEP = "The resource changed since the etag this write names was read: read it again, and decide what the write should be now.";
441
+ const IDEMPOTENT_ANSWER_STEP = "The write was made, and its answer cannot be given again: read the resource again rather than sending the write once more.";
442
+ const KEY_IN_USE_STEP = "The first request with this Idempotency-Key is still running: send the same call again with the error's idempotencyKey, never a new key, which would make the write twice.";
443
+ const MINT_LIMIT_STEP = "Minting is limited per secret key, per client IP address and secret key whose requests keep failing, and per user_id it refuses, so check the publishable key and the user_id before asking again.";
444
+ const nextStepFor = (status, code, retryAfterSeconds, monthlyAllowanceSpent, declaration) => {
445
+ const mints = declaration.requiresSecretKey === true;
446
+ const actsAsMember = declaration.actsAsMember === true;
447
+ switch (status) {
448
+ case 401:
449
+ if (mints) return SECRET_KEY_STEP;
450
+ return actsAsMember ? `${CREDENTIAL_STEP} ${MEMBER_SESSION_STEP}` : CREDENTIAL_STEP;
451
+ case 402: return BILLING_STEP;
452
+ case 403:
453
+ if (mints) return MINT_REFUSAL_STEP;
454
+ return actsAsMember ? `${FORBIDDEN_STEP} ${ACTING_USER_STEP}` : FORBIDDEN_STEP;
455
+ case 409: return code === "IDEMPOTENCY_ANSWER_UNAVAILABLE" ? IDEMPOTENT_ANSWER_STEP : code === "IDEMPOTENCY_KEY_IN_USE" ? KEY_IN_USE_STEP : void 0;
456
+ case 412: return PRECONDITION_STEP;
457
+ case 429: {
458
+ if (code === "LIMIT_REACHED") return CEILING_STEP;
459
+ if (monthlyAllowanceSpent) return monthlyAllowanceStep(retryAfterSeconds);
460
+ const wait = retryAfterSeconds === void 0 || retryAfterSeconds === 0 ? "Wait before calling again." : `Wait ${secondsSpelled(retryAfterSeconds)} before calling again.`;
461
+ return mints ? `${wait} ${MINT_LIMIT_STEP}` : wait;
462
+ }
463
+ default: return;
464
+ }
465
+ };
466
+ const failureMessage = (context, status, entries, facts = {}) => {
467
+ const first = entries[0] ?? {};
468
+ const parts = [
469
+ status,
470
+ first.extensions?.code,
471
+ first.message
472
+ ].map((part) => typeof part === "string" ? part.trim() : typeof part === "number" ? String(part) : "").filter((part) => part !== "");
473
+ const summary = parts.length === 0 ? context : `${context}: ${parts.join(" ")}`;
474
+ const next = status === void 0 ? void 0 : nextStepFor(status, first.extensions?.code, facts.retryAfterSeconds, spendsMonthlyAllowance(facts.rateLimit), facts.declaration ?? {});
475
+ const sentence = next === void 0 ? summary : `${/[.!?]$/.test(summary) ? summary : `${summary}.`} ${next}`;
476
+ return facts.requestId === void 0 ? sentence : `${sentence} (request ${facts.requestId})`;
477
+ };
478
+ const MONTHS = [
479
+ "Jan",
480
+ "Feb",
481
+ "Mar",
482
+ "Apr",
483
+ "May",
484
+ "Jun",
485
+ "Jul",
486
+ "Aug",
487
+ "Sep",
488
+ "Oct",
489
+ "Nov",
490
+ "Dec"
491
+ ];
492
+ const delaySecondsPattern = /^[ \t]*(\d+)[ \t]*$/;
493
+ const MAX_DELAY_SECONDS_COUNT = 9223372036854775807n;
494
+ const imfFixdatePattern = /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) ([A-Z][a-z]{2}) (\d{4}) (\d{2}):(\d{2}):(\d{2}) GMT$/;
495
+ const rfc850DatePattern = /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-([A-Z][a-z]{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2}) GMT$/;
496
+ const asctimeDatePattern = /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) ([A-Z][a-z]{2}) ([ \d]\d) (\d{2}):(\d{2}):(\d{2}) (\d{4})$/;
497
+ const utcInstant = (year, month, day, hour, minute, second) => {
498
+ const monthIndex = MONTHS.indexOf(month);
499
+ if (monthIndex < 0 || hour > 23 || minute > 59 || second > 60) return;
500
+ const midnight = /* @__PURE__ */ new Date(0);
501
+ midnight.setUTCFullYear(year, monthIndex, day);
502
+ if (midnight.getUTCMonth() !== monthIndex || midnight.getUTCDate() !== day) return;
503
+ return midnight.getTime() + ((hour * 60 + minute) * 60 + second) * 1e3;
504
+ };
505
+ const httpDate = (value, now) => {
506
+ const fixdate = imfFixdatePattern.exec(value);
507
+ if (fixdate !== null) {
508
+ const [, day, month, year, hour, minute, second] = fixdate;
509
+ return utcInstant(Number(year), month ?? "", Number(day), Number(hour), Number(minute), Number(second));
510
+ }
511
+ const rfc850 = rfc850DatePattern.exec(value);
512
+ if (rfc850 !== null) {
513
+ const [, day, month, shortYear, hour, minute, second] = rfc850;
514
+ const currentYear = new Date(now).getUTCFullYear();
515
+ const sameDigits = currentYear - currentYear % 100 + Number(shortYear);
516
+ const year = sameDigits > currentYear + 50 ? sameDigits - 100 : sameDigits;
517
+ return utcInstant(year, month ?? "", Number(day), Number(hour), Number(minute), Number(second));
518
+ }
519
+ const asctime = asctimeDatePattern.exec(value);
520
+ if (asctime !== null) {
521
+ const [, month, day, hour, minute, second, year] = asctime;
522
+ return utcInstant(Number(year), month ?? "", Number(day), Number(hour), Number(minute), Number(second));
523
+ }
524
+ };
525
+ const parseRetryAfter = (header, now = Date.now) => {
526
+ if (header === null) return;
527
+ const digits = delaySecondsPattern.exec(header)?.[1];
528
+ if (digits !== void 0) {
529
+ if (BigInt(digits) > MAX_DELAY_SECONDS_COUNT) return;
530
+ return Math.min(Number(digits), Number.MAX_SAFE_INTEGER);
531
+ }
532
+ const current = now();
533
+ const instant = httpDate(header.replace(/^[ \t]+|[ \t]+$/g, ""), current);
534
+ return instant === void 0 ? void 0 : Math.max(0, Math.ceil((instant - current) / 1e3));
535
+ };
536
+ const answerDetailsOf = (headers) => {
537
+ const requestId = headers.get("X-Request-Id")?.trim();
538
+ return {
539
+ rateLimit: parseRateLimit(headers),
540
+ requestId: requestId === void 0 || requestId === "" ? void 0 : requestId
541
+ };
542
+ };
543
+ const replayedOf = (headers) => headers.get("Idempotent-Replayed")?.trim().toLowerCase() === "true";
544
+ const errorOfBody = (body, answer, context, declaration, idempotencyKey) => {
545
+ const entries = entriesOf(body);
546
+ const retryAfterSeconds = parseRetryAfter(answer.headers.get("Retry-After"));
547
+ const details = answerDetailsOf(answer.headers);
548
+ return errorForStatus(failureMessage(context, answer.status, entries, {
549
+ declaration,
550
+ rateLimit: details.rateLimit,
551
+ requestId: details.requestId,
552
+ retryAfterSeconds
553
+ }), answer.status, entries, {
554
+ ...details,
555
+ etag: answer.headers.get("ETag") ?? void 0,
556
+ idempotencyKey,
557
+ metadata: metadataOf(body),
558
+ retryAfter: retryAfterSeconds
559
+ });
560
+ };
561
+ const errorFromResponse = async (response, context, declaration, idempotencyKey) => errorOfBody(await response.json().catch(() => void 0), response, context, declaration, idempotencyKey);
562
+ const errorFromBody = (text, answer, context, declaration, idempotencyKey) => {
563
+ let body;
564
+ try {
565
+ body = JSON.parse(text);
566
+ } catch {
567
+ body = void 0;
568
+ }
569
+ return errorOfBody(body, answer, context, declaration, idempotencyKey);
570
+ };
571
+ const errorForStatus = (message, status, entries = [], details = {}) => {
572
+ const { etag, ...rest } = details;
573
+ const args = [
574
+ message,
575
+ status,
576
+ entries,
577
+ rest
578
+ ];
579
+ switch (status) {
580
+ case 400: return new MountayaBadRequestError(...args);
581
+ case 401: return new MountayaAuthenticationError(...args);
582
+ case 402: return new MountayaBillingError(...args);
583
+ case 403: return new MountayaForbiddenError(...args);
584
+ case 404: return new MountayaNotFoundError(...args);
585
+ case 405: return new MountayaMethodNotAllowedError(...args);
586
+ case 409: switch (entries[0]?.extensions?.code) {
587
+ case IDEMPOTENT_ANSWER_UNAVAILABLE_CODE: return new MountayaIdempotentAnswerUnavailableError(...args);
588
+ case KEY_IN_USE_CODE: return new MountayaIdempotencyKeyInUseError(...args);
589
+ default: return new MountayaConflictError(...args);
590
+ }
591
+ case 412: return new MountayaPreconditionFailedError(message, status, entries, {
592
+ ...rest,
593
+ etag
594
+ });
595
+ case 413: return new MountayaPayloadTooLargeError(...args);
596
+ case 429: return new MountayaRateLimitError(...args);
597
+ default: return status >= 500 ? new MountayaServerError(...args) : new MountayaApiError(...args);
598
+ }
599
+ };
600
+ const isHolding = (mask) => Array.isArray(mask) && mask.length === 2 && mask[0] === true;
601
+ const isVariants = (mask) => Array.isArray(mask) && mask.length === 2 && typeof mask[0] === "string";
602
+ const isListMask$1 = (mask) => Array.isArray(mask) && mask.length === 1;
603
+ const isMembers = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
604
+ const withAbsentNulls = (value, mask) => {
605
+ if (mask === void 0 || mask === true || isHolding(mask)) return value;
606
+ if (isListMask$1(mask)) {
607
+ if (!Array.isArray(value)) return value;
608
+ let copy;
609
+ for (const [index, element] of value.entries()) {
610
+ const written = withAbsentNulls(element, mask[0]);
611
+ if (written !== element) {
612
+ copy ??= [...value];
613
+ copy[index] = written;
614
+ }
615
+ }
616
+ return copy ?? value;
617
+ }
618
+ if (!isMembers(value)) return value;
619
+ if (isVariants(mask)) {
620
+ const [discriminator, variants] = mask;
621
+ const variant = value[discriminator];
622
+ return typeof variant === "string" && Object.hasOwn(variants, variant) ? withAbsentNulls(value, variants[variant]) : value;
623
+ }
624
+ let copy;
625
+ for (const [member, inner] of Object.entries(mask)) {
626
+ if (!Object.hasOwn(value, member)) {
627
+ if (inner === true || isHolding(inner)) {
628
+ copy ??= { ...value };
629
+ copy[member] = null;
630
+ }
631
+ continue;
632
+ }
633
+ const held = value[member];
634
+ const written = withAbsentNulls(held, isHolding(inner) ? inner[1] : inner);
635
+ if (written !== held) {
636
+ copy ??= { ...value };
637
+ copy[member] = written;
638
+ }
639
+ }
640
+ return copy ?? value;
641
+ };
642
+ const isoDate = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:Z|[+-](\d{2}):(\d{2}))$/;
643
+ const ISO_DATE_MIN_LENGTH = 20;
644
+ const ISO_DATE_SEPARATOR = 84;
645
+ const MONTH_DAYS = [
646
+ 31,
647
+ 28,
648
+ 31,
649
+ 30,
650
+ 31,
651
+ 30,
652
+ 31,
653
+ 31,
654
+ 30,
655
+ 31,
656
+ 30,
657
+ 31
658
+ ];
659
+ const isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
660
+ const daysIn = (year, month) => month === 2 && isLeapYear(year) ? 29 : MONTH_DAYS[month - 1] ?? 0;
661
+ const instantOf = (value) => {
662
+ if (value.length < ISO_DATE_MIN_LENGTH || value.charCodeAt(10) !== ISO_DATE_SEPARATOR) return;
663
+ const fields = isoDate.exec(value);
664
+ if (fields === null) return;
665
+ const field = (index) => Number(fields[index] ?? 0);
666
+ const year = field(1);
667
+ const month = field(2);
668
+ const day = field(3);
669
+ if (!(month >= 1 && month <= 12 && day >= 1 && day <= daysIn(year, month) && field(4) <= 23 && field(5) <= 59 && field(6) <= 59 && field(7) <= 23 && field(8) <= 59)) return;
670
+ const instant = new Date(value);
671
+ return Number.isNaN(instant.getTime()) ? void 0 : instant;
672
+ };
673
+ const isListMask = (mask) => Array.isArray(mask);
674
+ const isList = (value) => Array.isArray(value);
675
+ const decodeDates = (value, mask, field = "the answer") => {
676
+ if (mask === void 0) return value;
677
+ if (mask === true) {
678
+ if (typeof value !== "string") return value;
679
+ const instant = instantOf(value);
680
+ if (instant === void 0) throw new MountayaError(`${field}, which the contract declares an instant, holds a string that names none: an instant is a full ISO 8601 timestamp carrying its zone.`);
681
+ return instant;
682
+ }
683
+ if (isListMask(mask)) {
684
+ if (isList(value)) {
685
+ const [element] = mask;
686
+ for (let index = 0; index < value.length; index += 1) value[index] = decodeDates(value[index], element, field);
687
+ }
688
+ return value;
689
+ }
690
+ if (typeof value === "object" && value !== null && !isList(value)) {
691
+ for (const [member, memberMask] of Object.entries(mask)) if (Object.hasOwn(value, member)) {
692
+ const current = Reflect.get(value, member);
693
+ const decoded = decodeDates(current, memberMask, member);
694
+ if (decoded !== current) Reflect.set(value, member, decoded);
695
+ }
696
+ }
697
+ return value;
698
+ };
699
+ const parseJsonWithDates = (text, mask) => text.length > 0 ? decodeDates(JSON.parse(text), mask) : void 0;
700
+ const agentRunDates = { created_at: true };
701
+ const collabCollectionChangedEventDates = { occurred_at: true };
702
+ const collabItineraryChangedEventDates = { occurred_at: true };
703
+ const collabMemberDates = { connected_at: true };
704
+ const collabPresenceJoinEventDates = { connected_at: true };
705
+ const collabPresenceSnapshotEventDates = { members: [collabMemberDates] };
706
+ const collabSegmentChangedEventDates = { occurred_at: true };
707
+ const collabStreamEventDates = {
708
+ connected_at: true,
709
+ members: [collabMemberDates],
710
+ occurred_at: true
711
+ };
712
+ const collabWaypointChangedEventDates = { occurred_at: true };
713
+ const collabZoneChangedEventDates = { occurred_at: true };
714
+ const collectionDates = {
715
+ created_at: true,
716
+ updated_at: true
717
+ };
718
+ const collectionEventObjectDates = {
719
+ created_at: true,
720
+ updated_at: true
721
+ };
722
+ const collectionShareLinkEventObjectDates = { created_at: true };
723
+ const invoiceDates = { created_at: true };
724
+ const invoiceEventObjectDates = { created_at: true };
725
+ const itineraryDates = {
726
+ created_at: true,
727
+ updated_at: true
728
+ };
729
+ const itineraryEventObjectDates = {
730
+ created_at: true,
731
+ updated_at: true
732
+ };
733
+ const itinerarySegmentDates = {
734
+ created_at: true,
735
+ start_at: true
736
+ };
737
+ const itinerarySegmentEventObjectDates = { created_at: true };
738
+ const itinerarySegmentGroupDates = { created_at: true };
739
+ const itinerarySegmentGroupEventObjectDates = { created_at: true };
740
+ const itineraryShareLinkEventObjectDates = { created_at: true };
741
+ const waypointTimingDates = { cutoff_at: true };
742
+ const itineraryWaypointDates = {
743
+ created_at: true,
744
+ timing: waypointTimingDates
745
+ };
746
+ const itineraryWaypointEventObjectDates = { created_at: true };
747
+ const itineraryWithDetailsDates = {
748
+ created_at: true,
749
+ groups: [itinerarySegmentGroupDates],
750
+ published_at: true,
751
+ segments: [itinerarySegmentDates],
752
+ updated_at: true,
753
+ waypoints: [itineraryWaypointDates]
754
+ };
755
+ const membershipDates = { joined_at: true };
756
+ const organizationDates = {
757
+ created_at: true,
758
+ updated_at: true
759
+ };
760
+ const organizationEventObjectDates = {
761
+ created_at: true,
762
+ updated_at: true
763
+ };
764
+ const organizationInvitationDates = {
765
+ created_at: true,
766
+ expires_at: true
767
+ };
768
+ const organizationInvitationEventObjectDates = {
769
+ created_at: true,
770
+ expires_at: true
771
+ };
772
+ const organizationMemberDates = { joined_at: true };
773
+ const organizationMemberEventObjectDates = { joined_at: true };
774
+ const subscriptionDiscountDates = { ends_at: true };
775
+ const organizationSubscriptionDates = {
776
+ current_period_end_at: true,
777
+ discount: subscriptionDiscountDates,
778
+ ended_at: true
779
+ };
780
+ const organizationSubscriptionEventObjectDates = { current_period_end_at: true };
781
+ const organizationSubscriptionSummaryDates = { api: organizationSubscriptionDates };
782
+ const publishableKeyDates = {
783
+ created_at: true,
784
+ last_used_at: true,
785
+ revoked_at: true
786
+ };
787
+ const publishableKeyEventObjectDates = {
788
+ created_at: true,
789
+ revoked_at: true
790
+ };
791
+ const secretKeyEventObjectDates = {
792
+ created_at: true,
793
+ revoked_at: true
794
+ };
795
+ const segmentCreateParamsDates = { start_at: true };
796
+ const segmentUpdateParamsDates = { start_at: true };
797
+ const sessionDates = { expires_at: true };
798
+ const shareLinkDates = { created_at: true };
799
+ const userInvitationDates = {
800
+ created_at: true,
801
+ expires_at: true
802
+ };
803
+ const waypointCreateParamsDates = { timing: waypointTimingDates };
804
+ const waypointUpdateParamsDates = { timing: waypointTimingDates };
805
+ const webhookDeliveryDates = {
806
+ created_at: true,
807
+ last_attempt_at: true,
808
+ next_attempt_at: true
809
+ };
810
+ const webhookDeliveryAttemptDates = {
811
+ attempted_at: true,
812
+ scheduled_at: true
813
+ };
814
+ const webhookDeliveryCreateParamsDates = { since: true };
815
+ const webhookDeliveryTriggerDates = {
816
+ created_at: true,
817
+ since: true
818
+ };
819
+ const webhookDeliveryWithAttemptsDates = {
820
+ attempts: [webhookDeliveryAttemptDates],
821
+ created_at: true,
822
+ last_attempt_at: true,
823
+ next_attempt_at: true
824
+ };
825
+ const webhookEndpointDates = {
826
+ created_at: true,
827
+ disabled_at: true,
828
+ failing_since: true,
829
+ updated_at: true
830
+ };
831
+ const webhookEndpointEventObjectDates = {
832
+ created_at: true,
833
+ failing_since: true,
834
+ updated_at: true
835
+ };
836
+ const webhookEndpointWithSecretDates = webhookEndpointDates;
837
+ const webhookEventObjectDates = {
838
+ created_at: true,
839
+ current_period_end_at: true,
840
+ end_at: true,
841
+ expires_at: true,
842
+ failing_since: true,
843
+ joined_at: true,
844
+ revoked_at: true,
845
+ start_at: true,
846
+ updated_at: true
847
+ };
848
+ const webhookEventDataDates = { object: webhookEventObjectDates };
849
+ const webhookEventDates = {
850
+ created_at: true,
851
+ data: webhookEventDataDates
852
+ };
853
+ const webhookEventWithDeliveriesDates = {
854
+ created_at: true,
855
+ data: webhookEventDataDates,
856
+ deliveries: [webhookDeliveryDates]
857
+ };
858
+ const webhookHealthDestinationDates = {
859
+ failing_since: true,
860
+ last_success_at: true
861
+ };
862
+ const webhookHealthPointDates = { start_at: true };
863
+ const webhookHealthDates = {
864
+ destinations: [webhookHealthDestinationDates],
865
+ end_at: true,
866
+ series: [webhookHealthPointDates],
867
+ start_at: true
868
+ };
869
+ const zoneDates = {
870
+ created_at: true,
871
+ end_at: true,
872
+ published_at: true,
873
+ start_at: true,
874
+ updated_at: true
875
+ };
876
+ const zoneCreateParamsDates = {
877
+ end_at: true,
878
+ start_at: true
879
+ };
880
+ const zoneEventObjectDates = {
881
+ created_at: true,
882
+ end_at: true,
883
+ start_at: true,
884
+ updated_at: true
885
+ };
886
+ const zoneUpdateParamsDates = {
887
+ end_at: true,
888
+ start_at: true
889
+ };
890
+ const collabStreamEventDatesByType = {
891
+ "collection.changed": collabCollectionChangedEventDates,
892
+ "itinerary.changed": collabItineraryChangedEventDates,
893
+ "presence.join": collabPresenceJoinEventDates,
894
+ "presence.snapshot": collabPresenceSnapshotEventDates,
895
+ "segment.changed": collabSegmentChangedEventDates,
896
+ "waypoint.changed": collabWaypointChangedEventDates,
897
+ "zone.changed": collabZoneChangedEventDates
898
+ };
899
+ const restSchemaDates = {
900
+ AgentRun: agentRunDates,
901
+ CollabCollectionChangedEvent: collabCollectionChangedEventDates,
902
+ CollabItineraryChangedEvent: collabItineraryChangedEventDates,
903
+ CollabMember: collabMemberDates,
904
+ CollabPresenceJoinEvent: collabPresenceJoinEventDates,
905
+ CollabPresenceSnapshotEvent: collabPresenceSnapshotEventDates,
906
+ CollabSegmentChangedEvent: collabSegmentChangedEventDates,
907
+ CollabStreamEvent: collabStreamEventDates,
908
+ CollabWaypointChangedEvent: collabWaypointChangedEventDates,
909
+ CollabZoneChangedEvent: collabZoneChangedEventDates,
910
+ Collection: collectionDates,
911
+ CollectionEventObject: collectionEventObjectDates,
912
+ CollectionShareLinkEventObject: collectionShareLinkEventObjectDates,
913
+ Invoice: invoiceDates,
914
+ InvoiceEventObject: invoiceEventObjectDates,
915
+ Itinerary: itineraryDates,
916
+ ItineraryEventObject: itineraryEventObjectDates,
917
+ ItinerarySegment: itinerarySegmentDates,
918
+ ItinerarySegmentEventObject: itinerarySegmentEventObjectDates,
919
+ ItinerarySegmentGroup: itinerarySegmentGroupDates,
920
+ ItinerarySegmentGroupEventObject: itinerarySegmentGroupEventObjectDates,
921
+ ItineraryShareLinkEventObject: itineraryShareLinkEventObjectDates,
922
+ ItineraryWaypoint: itineraryWaypointDates,
923
+ ItineraryWaypointEventObject: itineraryWaypointEventObjectDates,
924
+ ItineraryWithDetails: itineraryWithDetailsDates,
925
+ Membership: membershipDates,
926
+ Organization: organizationDates,
927
+ OrganizationEventObject: organizationEventObjectDates,
928
+ OrganizationInvitation: organizationInvitationDates,
929
+ OrganizationInvitationEventObject: organizationInvitationEventObjectDates,
930
+ OrganizationMember: organizationMemberDates,
931
+ OrganizationMemberEventObject: organizationMemberEventObjectDates,
932
+ OrganizationSubscription: organizationSubscriptionDates,
933
+ OrganizationSubscriptionEventObject: organizationSubscriptionEventObjectDates,
934
+ OrganizationSubscriptionSummary: organizationSubscriptionSummaryDates,
935
+ PublishableKey: publishableKeyDates,
936
+ PublishableKeyEventObject: publishableKeyEventObjectDates,
937
+ SecretKeyEventObject: secretKeyEventObjectDates,
938
+ SegmentCreateParams: segmentCreateParamsDates,
939
+ SegmentUpdateParams: segmentUpdateParamsDates,
940
+ Session: sessionDates,
941
+ ShareLink: shareLinkDates,
942
+ SubscriptionDiscount: subscriptionDiscountDates,
943
+ UserInvitation: userInvitationDates,
944
+ WaypointCreateParams: waypointCreateParamsDates,
945
+ WaypointTiming: waypointTimingDates,
946
+ WaypointUpdateParams: waypointUpdateParamsDates,
947
+ WebhookDelivery: webhookDeliveryDates,
948
+ WebhookDeliveryAttempt: webhookDeliveryAttemptDates,
949
+ WebhookDeliveryCreateParams: webhookDeliveryCreateParamsDates,
950
+ WebhookDeliveryTrigger: webhookDeliveryTriggerDates,
951
+ WebhookDeliveryWithAttempts: webhookDeliveryWithAttemptsDates,
952
+ WebhookEndpoint: webhookEndpointDates,
953
+ WebhookEndpointEventObject: webhookEndpointEventObjectDates,
954
+ WebhookEndpointWithSecret: webhookEndpointWithSecretDates,
955
+ WebhookEvent: webhookEventDates,
956
+ WebhookEventData: webhookEventDataDates,
957
+ WebhookEventObject: webhookEventObjectDates,
958
+ WebhookEventWithDeliveries: webhookEventWithDeliveriesDates,
959
+ WebhookHealth: webhookHealthDates,
960
+ WebhookHealthDestination: webhookHealthDestinationDates,
961
+ WebhookHealthPoint: webhookHealthPointDates,
962
+ Zone: zoneDates,
963
+ ZoneCreateParams: zoneCreateParamsDates,
964
+ ZoneEventObject: zoneEventObjectDates,
965
+ ZoneUpdateParams: zoneUpdateParamsDates
966
+ };
967
+ const deleteCollection = (transport, args, options) => transport.request({
968
+ actsAsMember: true,
969
+ idempotencyKey: args.idempotencyKey,
970
+ idempotent: true,
971
+ ifMatch: args.ifMatch,
972
+ method: "DELETE",
973
+ operationId: "deleteCollection",
974
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}`,
975
+ requiresSession: true,
976
+ retry: options?.retry,
977
+ serverBudgetMs: 3e4,
978
+ signal: options?.signal,
979
+ surface: "rest",
980
+ takesIdempotencyKey: true,
981
+ timeoutMs: options?.timeoutMs
982
+ });
983
+ const deleteCollectionItinerary = (transport, args, options) => transport.request({
984
+ actsAsMember: true,
985
+ dates: { data: collectionDates },
986
+ idempotencyKey: args.idempotencyKey,
987
+ idempotent: true,
988
+ ifMatch: args.ifMatch,
989
+ method: "DELETE",
990
+ operationId: "deleteCollectionItinerary",
991
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/itineraries/${encodeURIComponent(String(args.itinerary_id))}`,
992
+ requiresSession: true,
993
+ retry: options?.retry,
994
+ serverBudgetMs: 3e4,
995
+ signal: options?.signal,
996
+ surface: "rest",
997
+ takesIdempotencyKey: true,
998
+ timeoutMs: options?.timeoutMs
999
+ });
1000
+ const deleteCollectionShareLink = (transport, args, options) => transport.request({
1001
+ actsAsMember: true,
1002
+ idempotencyKey: args.idempotencyKey,
1003
+ idempotent: true,
1004
+ method: "DELETE",
1005
+ operationId: "deleteCollectionShareLink",
1006
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/share-link`,
1007
+ requiresSession: true,
1008
+ retry: options?.retry,
1009
+ serverBudgetMs: 3e4,
1010
+ signal: options?.signal,
1011
+ surface: "rest",
1012
+ takesIdempotencyKey: true,
1013
+ timeoutMs: options?.timeoutMs
1014
+ });
1015
+ const deleteCollectionZone = (transport, args, options) => transport.request({
1016
+ actsAsMember: true,
1017
+ dates: { data: collectionDates },
1018
+ idempotencyKey: args.idempotencyKey,
1019
+ idempotent: true,
1020
+ ifMatch: args.ifMatch,
1021
+ method: "DELETE",
1022
+ operationId: "deleteCollectionZone",
1023
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/zones/${encodeURIComponent(String(args.zone_id))}`,
1024
+ requiresSession: true,
1025
+ retry: options?.retry,
1026
+ serverBudgetMs: 3e4,
1027
+ signal: options?.signal,
1028
+ surface: "rest",
1029
+ takesIdempotencyKey: true,
1030
+ timeoutMs: options?.timeoutMs
1031
+ });
1032
+ const deleteItinerary = (transport, args, options) => transport.request({
1033
+ actsAsMember: true,
1034
+ idempotencyKey: args.idempotencyKey,
1035
+ idempotent: true,
1036
+ ifMatch: args.ifMatch,
1037
+ method: "DELETE",
1038
+ operationId: "deleteItinerary",
1039
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}`,
1040
+ requiresSession: true,
1041
+ retry: options?.retry,
1042
+ serverBudgetMs: 3e4,
1043
+ signal: options?.signal,
1044
+ surface: "rest",
1045
+ takesIdempotencyKey: true,
1046
+ timeoutMs: options?.timeoutMs
1047
+ });
1048
+ const deleteItineraryPublication = (transport, args, options) => transport.request({
1049
+ actsAsMember: true,
1050
+ dates: { data: itineraryWithDetailsDates },
1051
+ idempotencyKey: args.idempotencyKey,
1052
+ idempotent: true,
1053
+ ifMatch: args.ifMatch,
1054
+ method: "DELETE",
1055
+ operationId: "deleteItineraryPublication",
1056
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/publication`,
1057
+ requiresSession: true,
1058
+ retry: options?.retry,
1059
+ serverBudgetMs: 3e4,
1060
+ signal: options?.signal,
1061
+ surface: "rest",
1062
+ takesIdempotencyKey: true,
1063
+ timeoutMs: options?.timeoutMs
1064
+ });
1065
+ const deleteItinerarySegment = (transport, args, options) => transport.request({
1066
+ actsAsMember: true,
1067
+ dates: { data: itineraryWithDetailsDates },
1068
+ idempotencyKey: args.idempotencyKey,
1069
+ idempotent: true,
1070
+ ifMatch: args.ifMatch,
1071
+ method: "DELETE",
1072
+ operationId: "deleteItinerarySegment",
1073
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segments/${encodeURIComponent(String(args.segment_id))}`,
1074
+ requiresSession: true,
1075
+ retry: options?.retry,
1076
+ serverBudgetMs: 3e4,
1077
+ signal: options?.signal,
1078
+ surface: "rest",
1079
+ takesIdempotencyKey: true,
1080
+ timeoutMs: options?.timeoutMs
1081
+ });
1082
+ const deleteItinerarySegmentGroup = (transport, args, options) => transport.request({
1083
+ actsAsMember: true,
1084
+ dates: { data: itineraryWithDetailsDates },
1085
+ idempotencyKey: args.idempotencyKey,
1086
+ idempotent: true,
1087
+ ifMatch: args.ifMatch,
1088
+ method: "DELETE",
1089
+ operationId: "deleteItinerarySegmentGroup",
1090
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segment-groups/${encodeURIComponent(String(args.group_id))}`,
1091
+ requiresSession: true,
1092
+ retry: options?.retry,
1093
+ serverBudgetMs: 3e4,
1094
+ signal: options?.signal,
1095
+ surface: "rest",
1096
+ takesIdempotencyKey: true,
1097
+ timeoutMs: options?.timeoutMs
1098
+ });
1099
+ const deleteItineraryShareLink = (transport, args, options) => transport.request({
1100
+ actsAsMember: true,
1101
+ idempotencyKey: args.idempotencyKey,
1102
+ idempotent: true,
1103
+ method: "DELETE",
1104
+ operationId: "deleteItineraryShareLink",
1105
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/share-link`,
1106
+ requiresSession: true,
1107
+ retry: options?.retry,
1108
+ serverBudgetMs: 3e4,
1109
+ signal: options?.signal,
1110
+ surface: "rest",
1111
+ takesIdempotencyKey: true,
1112
+ timeoutMs: options?.timeoutMs
1113
+ });
1114
+ const deleteItineraryWaypoint = (transport, args, options) => transport.request({
1115
+ actsAsMember: true,
1116
+ dates: { data: itineraryWithDetailsDates },
1117
+ idempotencyKey: args.idempotencyKey,
1118
+ idempotent: true,
1119
+ ifMatch: args.ifMatch,
1120
+ method: "DELETE",
1121
+ operationId: "deleteItineraryWaypoint",
1122
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/waypoints/${encodeURIComponent(String(args.waypoint_id))}`,
1123
+ requiresSession: true,
1124
+ retry: options?.retry,
1125
+ serverBudgetMs: 3e4,
1126
+ signal: options?.signal,
1127
+ surface: "rest",
1128
+ takesIdempotencyKey: true,
1129
+ timeoutMs: options?.timeoutMs
1130
+ });
1131
+ const deleteMyInvitation = (transport, args, options) => transport.request({
1132
+ actsAsMember: true,
1133
+ idempotencyKey: args.idempotencyKey,
1134
+ idempotent: true,
1135
+ method: "DELETE",
1136
+ operationId: "deleteMyInvitation",
1137
+ path: `/v1/me/invitations/${encodeURIComponent(String(args.invitation_id))}`,
1138
+ requiresSession: true,
1139
+ retry: options?.retry,
1140
+ serverBudgetMs: 3e4,
1141
+ signal: options?.signal,
1142
+ surface: "rest",
1143
+ takesIdempotencyKey: true,
1144
+ timeoutMs: options?.timeoutMs
1145
+ });
1146
+ const deleteOrganizationAiProviderConfig = (transport, args, options) => transport.request({
1147
+ actsAsMember: true,
1148
+ idempotencyKey: args.idempotencyKey,
1149
+ idempotent: true,
1150
+ ifMatch: args.ifMatch,
1151
+ method: "DELETE",
1152
+ operationId: "deleteOrganizationAiProviderConfig",
1153
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/ai-provider-config`,
1154
+ requiresSession: true,
1155
+ retry: options?.retry,
1156
+ serverBudgetMs: 3e4,
1157
+ signal: options?.signal,
1158
+ surface: "rest",
1159
+ takesIdempotencyKey: true,
1160
+ timeoutMs: options?.timeoutMs
1161
+ });
1162
+ const deleteOrganizationBillingPaymentMethod = (transport, args, options) => transport.request({
1163
+ actsAsMember: true,
1164
+ idempotencyKey: args.idempotencyKey,
1165
+ idempotent: true,
1166
+ method: "DELETE",
1167
+ operationId: "deleteOrganizationBillingPaymentMethod",
1168
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/payment-methods/${encodeURIComponent(String(args.payment_method_id))}`,
1169
+ requiresSession: true,
1170
+ retry: options?.retry,
1171
+ serverBudgetMs: 3e4,
1172
+ signal: options?.signal,
1173
+ surface: "rest",
1174
+ takesIdempotencyKey: true,
1175
+ timeoutMs: options?.timeoutMs
1176
+ });
1177
+ const deleteOrganizationBillingSubscription = (transport, args, options) => transport.request({
1178
+ actsAsMember: true,
1179
+ dates: { data: organizationSubscriptionSummaryDates },
1180
+ idempotencyKey: args.idempotencyKey,
1181
+ idempotent: true,
1182
+ method: "DELETE",
1183
+ operationId: "deleteOrganizationBillingSubscription",
1184
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/subscription`,
1185
+ requiresSession: true,
1186
+ retry: options?.retry,
1187
+ serverBudgetMs: 3e4,
1188
+ signal: options?.signal,
1189
+ surface: "rest",
1190
+ takesIdempotencyKey: true,
1191
+ timeoutMs: options?.timeoutMs
1192
+ });
1193
+ const deleteOrganizationInvitation = (transport, args, options) => transport.request({
1194
+ actsAsMember: true,
1195
+ idempotencyKey: args.idempotencyKey,
1196
+ idempotent: true,
1197
+ method: "DELETE",
1198
+ operationId: "deleteOrganizationInvitation",
1199
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/invitations/${encodeURIComponent(String(args.invitation_id))}`,
1200
+ requiresSession: true,
1201
+ retry: options?.retry,
1202
+ serverBudgetMs: 3e4,
1203
+ signal: options?.signal,
1204
+ surface: "rest",
1205
+ takesIdempotencyKey: true,
1206
+ timeoutMs: options?.timeoutMs
1207
+ });
1208
+ const deleteOrganizationMember = (transport, args, options) => transport.request({
1209
+ actsAsMember: true,
1210
+ idempotencyKey: args.idempotencyKey,
1211
+ idempotent: true,
1212
+ method: "DELETE",
1213
+ operationId: "deleteOrganizationMember",
1214
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/members/${encodeURIComponent(String(args.user_id))}`,
1215
+ requiresSession: true,
1216
+ retry: options?.retry,
1217
+ serverBudgetMs: 3e4,
1218
+ signal: options?.signal,
1219
+ surface: "rest",
1220
+ takesIdempotencyKey: true,
1221
+ timeoutMs: options?.timeoutMs
1222
+ });
1223
+ const deleteOrganizationPublishableKey = (transport, args, options) => transport.request({
1224
+ actsAsMember: true,
1225
+ dates: { data: publishableKeyDates },
1226
+ idempotencyKey: args.idempotencyKey,
1227
+ idempotent: true,
1228
+ ifMatch: args.ifMatch,
1229
+ method: "DELETE",
1230
+ operationId: "deleteOrganizationPublishableKey",
1231
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/publishable-keys/${encodeURIComponent(String(args.key_id))}`,
1232
+ requiresSession: true,
1233
+ retry: options?.retry,
1234
+ serverBudgetMs: 3e4,
1235
+ signal: options?.signal,
1236
+ surface: "rest",
1237
+ takesIdempotencyKey: true,
1238
+ timeoutMs: options?.timeoutMs
1239
+ });
1240
+ const deleteOrganizationWebhookEndpoint = (transport, args, options) => transport.request({
1241
+ actsAsMember: true,
1242
+ idempotencyKey: args.idempotencyKey,
1243
+ idempotent: true,
1244
+ ifMatch: args.ifMatch,
1245
+ method: "DELETE",
1246
+ operationId: "deleteOrganizationWebhookEndpoint",
1247
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-endpoints/${encodeURIComponent(String(args.webhook_endpoint_id))}`,
1248
+ requiresSession: true,
1249
+ retry: options?.retry,
1250
+ serverBudgetMs: 3e4,
1251
+ signal: options?.signal,
1252
+ surface: "rest",
1253
+ takesIdempotencyKey: true,
1254
+ timeoutMs: options?.timeoutMs
1255
+ });
1256
+ const deleteZone = (transport, args, options) => transport.request({
1257
+ actsAsMember: true,
1258
+ idempotencyKey: args.idempotencyKey,
1259
+ idempotent: true,
1260
+ ifMatch: args.ifMatch,
1261
+ method: "DELETE",
1262
+ operationId: "deleteZone",
1263
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}`,
1264
+ requiresSession: true,
1265
+ retry: options?.retry,
1266
+ serverBudgetMs: 3e4,
1267
+ signal: options?.signal,
1268
+ surface: "rest",
1269
+ takesIdempotencyKey: true,
1270
+ timeoutMs: options?.timeoutMs
1271
+ });
1272
+ const deleteZonePublication = (transport, args, options) => transport.request({
1273
+ actsAsMember: true,
1274
+ dates: { data: zoneDates },
1275
+ idempotencyKey: args.idempotencyKey,
1276
+ idempotent: true,
1277
+ ifMatch: args.ifMatch,
1278
+ method: "DELETE",
1279
+ operationId: "deleteZonePublication",
1280
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}/publication`,
1281
+ requiresSession: true,
1282
+ retry: options?.retry,
1283
+ serverBudgetMs: 3e4,
1284
+ signal: options?.signal,
1285
+ surface: "rest",
1286
+ takesIdempotencyKey: true,
1287
+ timeoutMs: options?.timeoutMs
1288
+ });
1289
+ const getActivities = (transport, options) => transport.request({
1290
+ acceptsShareToken: true,
1291
+ idempotent: true,
1292
+ method: "GET",
1293
+ operationId: "getActivities",
1294
+ path: "/v1/activities",
1295
+ retry: options?.retry,
1296
+ serverBudgetMs: 3e4,
1297
+ signal: options?.signal,
1298
+ surface: "rest",
1299
+ timeoutMs: options?.timeoutMs
1300
+ });
1301
+ const getAgentRunEvents = (transport, args, options) => transport.requestBinary({
1302
+ accept: "text/event-stream",
1303
+ actsAsMember: true,
1304
+ idempotent: true,
1305
+ method: "GET",
1306
+ operationId: "getAgentRunEvents",
1307
+ path: `/v1/agent/runs/${encodeURIComponent(String(args.run_id))}/events`,
1308
+ requiresSession: true,
1309
+ retry: options?.retry,
1310
+ signal: options?.signal,
1311
+ surface: "rest",
1312
+ timeoutMs: options?.timeoutMs
1313
+ });
1314
+ const getAiProviders = (transport, options) => transport.request({
1315
+ idempotent: true,
1316
+ method: "GET",
1317
+ operationId: "getAiProviders",
1318
+ path: "/v1/ai-providers",
1319
+ requiresSession: true,
1320
+ retry: options?.retry,
1321
+ serverBudgetMs: 3e4,
1322
+ signal: options?.signal,
1323
+ surface: "rest",
1324
+ timeoutMs: options?.timeoutMs
1325
+ });
1326
+ const getBillingProducts = (transport, options) => transport.request({
1327
+ idempotent: true,
1328
+ method: "GET",
1329
+ operationId: "getBillingProducts",
1330
+ path: "/v1/billing/products",
1331
+ requiresSession: true,
1332
+ retry: options?.retry,
1333
+ serverBudgetMs: 3e4,
1334
+ signal: options?.signal,
1335
+ surface: "rest",
1336
+ timeoutMs: options?.timeoutMs
1337
+ });
1338
+ const getCollection = (transport, args, options) => transport.request({
1339
+ acceptsShareToken: true,
1340
+ dates: { data: collectionDates },
1341
+ idempotent: true,
1342
+ method: "GET",
1343
+ operationId: "getCollection",
1344
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}`,
1345
+ retry: options?.retry,
1346
+ serverBudgetMs: 3e4,
1347
+ signal: options?.signal,
1348
+ surface: "rest",
1349
+ timeoutMs: options?.timeoutMs
1350
+ });
1351
+ const getCollectionItineraries = (transport, args, options) => transport.request({
1352
+ acceptsShareToken: true,
1353
+ dates: { data: [itineraryDates] },
1354
+ idempotent: true,
1355
+ method: "GET",
1356
+ operationId: "getCollectionItineraries",
1357
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/itineraries`,
1358
+ query: args.query,
1359
+ retry: options?.retry,
1360
+ serverBudgetMs: 3e4,
1361
+ signal: options?.signal,
1362
+ surface: "rest",
1363
+ timeoutMs: options?.timeoutMs
1364
+ });
1365
+ const getCollections = (transport, args = {}, options) => transport.request({
1366
+ dates: { data: [collectionDates] },
1367
+ idempotent: true,
1368
+ method: "GET",
1369
+ operationId: "getCollections",
1370
+ path: "/v1/collections",
1371
+ query: args.query,
1372
+ retry: options?.retry,
1373
+ serverBudgetMs: 3e4,
1374
+ signal: options?.signal,
1375
+ surface: "rest",
1376
+ timeoutMs: options?.timeoutMs
1377
+ });
1378
+ const getCollectionShareLink = (transport, args, options) => transport.request({
1379
+ actsAsMember: true,
1380
+ dates: { data: shareLinkDates },
1381
+ idempotent: true,
1382
+ method: "GET",
1383
+ operationId: "getCollectionShareLink",
1384
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/share-link`,
1385
+ requiresSession: true,
1386
+ retry: options?.retry,
1387
+ serverBudgetMs: 3e4,
1388
+ signal: options?.signal,
1389
+ surface: "rest",
1390
+ timeoutMs: options?.timeoutMs
1391
+ });
1392
+ const getCollectionZones = (transport, args, options) => transport.request({
1393
+ acceptsShareToken: true,
1394
+ dates: { data: [zoneDates] },
1395
+ idempotent: true,
1396
+ method: "GET",
1397
+ operationId: "getCollectionZones",
1398
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/zones`,
1399
+ query: args.query,
1400
+ retry: options?.retry,
1401
+ serverBudgetMs: 3e4,
1402
+ signal: options?.signal,
1403
+ surface: "rest",
1404
+ timeoutMs: options?.timeoutMs
1405
+ });
1406
+ const getItineraries = (transport, args = {}, options) => transport.request({
1407
+ dates: { data: [itineraryDates] },
1408
+ idempotent: true,
1409
+ method: "GET",
1410
+ operationId: "getItineraries",
1411
+ path: "/v1/itineraries",
1412
+ query: args.query,
1413
+ retry: options?.retry,
1414
+ serverBudgetMs: 3e4,
1415
+ signal: options?.signal,
1416
+ surface: "rest",
1417
+ timeoutMs: options?.timeoutMs
1418
+ });
1419
+ const getItinerary = (transport, args, options) => transport.request({
1420
+ acceptsShareToken: true,
1421
+ dates: { data: itineraryWithDetailsDates },
1422
+ idempotent: true,
1423
+ method: "GET",
1424
+ operationId: "getItinerary",
1425
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}`,
1426
+ query: args.query,
1427
+ retry: options?.retry,
1428
+ serverBudgetMs: 3e4,
1429
+ signal: options?.signal,
1430
+ surface: "rest",
1431
+ timeoutMs: options?.timeoutMs
1432
+ });
1433
+ const getItineraryEvents = (transport, args, options) => transport.requestBinary({
1434
+ accept: "text/event-stream",
1435
+ actsAsMember: true,
1436
+ idempotent: true,
1437
+ method: "GET",
1438
+ operationId: "getItineraryEvents",
1439
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/events`,
1440
+ requiresSession: true,
1441
+ retry: options?.retry,
1442
+ signal: options?.signal,
1443
+ surface: "rest",
1444
+ timeoutMs: options?.timeoutMs
1445
+ });
1446
+ const getItineraryExport = (transport, args, options) => transport.requestBinary({
1447
+ accept: "application/gpx+xml, application/geo+json, application/vnd.google-earth.kml+xml, application/vnd.google-earth.kmz, application/vnd.ant.fit, application/vnd.garmin.tcx+xml, text/csv",
1448
+ acceptsShareToken: true,
1449
+ idempotent: true,
1450
+ method: "GET",
1451
+ operationId: "getItineraryExport",
1452
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/export`,
1453
+ query: args.query,
1454
+ retry: options?.retry,
1455
+ serverBudgetMs: 3e4,
1456
+ signal: options?.signal,
1457
+ surface: "rest",
1458
+ timeoutMs: options?.timeoutMs
1459
+ });
1460
+ const getItineraryPace = (transport, args, options) => transport.request({
1461
+ acceptsShareToken: true,
1462
+ idempotent: true,
1463
+ method: "GET",
1464
+ operationId: "getItineraryPace",
1465
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/pace`,
1466
+ query: args.query,
1467
+ retry: options?.retry,
1468
+ serverBudgetMs: 3e4,
1469
+ signal: options?.signal,
1470
+ surface: "rest",
1471
+ timeoutMs: options?.timeoutMs
1472
+ });
1473
+ const getItineraryShareLink = (transport, args, options) => transport.request({
1474
+ actsAsMember: true,
1475
+ dates: { data: shareLinkDates },
1476
+ idempotent: true,
1477
+ method: "GET",
1478
+ operationId: "getItineraryShareLink",
1479
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/share-link`,
1480
+ requiresSession: true,
1481
+ retry: options?.retry,
1482
+ serverBudgetMs: 3e4,
1483
+ signal: options?.signal,
1484
+ surface: "rest",
1485
+ timeoutMs: options?.timeoutMs
1486
+ });
1487
+ const getLayers = (transport, args = {}, options) => transport.request({
1488
+ acceptsShareToken: true,
1489
+ idempotent: true,
1490
+ method: "GET",
1491
+ operationId: "getLayers",
1492
+ path: "/v1/layers",
1493
+ query: args.query,
1494
+ retry: options?.retry,
1495
+ serverBudgetMs: 3e4,
1496
+ signal: options?.signal,
1497
+ surface: "rest",
1498
+ timeoutMs: options?.timeoutMs
1499
+ });
1500
+ const getMyInvitations = (transport, args = {}, options) => transport.request({
1501
+ actsAsMember: true,
1502
+ dates: { data: [userInvitationDates] },
1503
+ idempotent: true,
1504
+ method: "GET",
1505
+ operationId: "getMyInvitations",
1506
+ path: "/v1/me/invitations",
1507
+ query: args.query,
1508
+ requiresSession: true,
1509
+ retry: options?.retry,
1510
+ serverBudgetMs: 3e4,
1511
+ signal: options?.signal,
1512
+ surface: "rest",
1513
+ timeoutMs: options?.timeoutMs
1514
+ });
1515
+ const getMyOrganizationNotificationPreferences = (transport, args, options) => transport.request({
1516
+ actsAsMember: true,
1517
+ idempotent: true,
1518
+ method: "GET",
1519
+ operationId: "getMyOrganizationNotificationPreferences",
1520
+ path: `/v1/me/organizations/${encodeURIComponent(String(args.organization_id))}/notification-preferences`,
1521
+ requiresSession: true,
1522
+ retry: options?.retry,
1523
+ serverBudgetMs: 3e4,
1524
+ signal: options?.signal,
1525
+ surface: "rest",
1526
+ timeoutMs: options?.timeoutMs
1527
+ });
1528
+ const getMyOrganizations = (transport, args = {}, options) => transport.request({
1529
+ actsAsMember: true,
1530
+ dates: { data: [membershipDates] },
1531
+ idempotent: true,
1532
+ method: "GET",
1533
+ operationId: "getMyOrganizations",
1534
+ path: "/v1/me/organizations",
1535
+ query: args.query,
1536
+ requiresSession: true,
1537
+ retry: options?.retry,
1538
+ serverBudgetMs: 3e4,
1539
+ signal: options?.signal,
1540
+ surface: "rest",
1541
+ timeoutMs: options?.timeoutMs
1542
+ });
1543
+ const getMyPreferences = (transport, options) => transport.request({
1544
+ actsAsMember: true,
1545
+ idempotent: true,
1546
+ method: "GET",
1547
+ operationId: "getMyPreferences",
1548
+ path: "/v1/me/preferences",
1549
+ requiresSession: true,
1550
+ retry: options?.retry,
1551
+ serverBudgetMs: 3e4,
1552
+ signal: options?.signal,
1553
+ surface: "rest",
1554
+ timeoutMs: options?.timeoutMs
1555
+ });
1556
+ const getOrganization = (transport, args, options) => transport.request({
1557
+ acceptsShareToken: true,
1558
+ dates: { data: organizationDates },
1559
+ idempotent: true,
1560
+ method: "GET",
1561
+ operationId: "getOrganization",
1562
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}`,
1563
+ retry: options?.retry,
1564
+ serverBudgetMs: 3e4,
1565
+ signal: options?.signal,
1566
+ surface: "rest",
1567
+ timeoutMs: options?.timeoutMs
1568
+ });
1569
+ const getOrganizationAiProviderConfig = (transport, args, options) => transport.request({
1570
+ idempotent: true,
1571
+ method: "GET",
1572
+ operationId: "getOrganizationAiProviderConfig",
1573
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/ai-provider-config`,
1574
+ requiresSession: true,
1575
+ retry: options?.retry,
1576
+ serverBudgetMs: 3e4,
1577
+ signal: options?.signal,
1578
+ surface: "rest",
1579
+ timeoutMs: options?.timeoutMs
1580
+ });
1581
+ const getOrganizationBillingInfo = (transport, args, options) => transport.request({
1582
+ idempotent: true,
1583
+ method: "GET",
1584
+ operationId: "getOrganizationBillingInfo",
1585
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/info`,
1586
+ requiresSession: true,
1587
+ retry: options?.retry,
1588
+ serverBudgetMs: 3e4,
1589
+ signal: options?.signal,
1590
+ surface: "rest",
1591
+ timeoutMs: options?.timeoutMs
1592
+ });
1593
+ const getOrganizationBillingInvoices = (transport, args, options) => transport.request({
1594
+ dates: { data: [invoiceDates] },
1595
+ idempotent: true,
1596
+ method: "GET",
1597
+ operationId: "getOrganizationBillingInvoices",
1598
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/invoices`,
1599
+ query: args.query,
1600
+ requiresSession: true,
1601
+ retry: options?.retry,
1602
+ serverBudgetMs: 3e4,
1603
+ signal: options?.signal,
1604
+ surface: "rest",
1605
+ timeoutMs: options?.timeoutMs
1606
+ });
1607
+ const getOrganizationBillingPaymentMethods = (transport, args, options) => transport.request({
1608
+ idempotent: true,
1609
+ method: "GET",
1610
+ operationId: "getOrganizationBillingPaymentMethods",
1611
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/payment-methods`,
1612
+ query: args.query,
1613
+ requiresSession: true,
1614
+ retry: options?.retry,
1615
+ serverBudgetMs: 3e4,
1616
+ signal: options?.signal,
1617
+ surface: "rest",
1618
+ timeoutMs: options?.timeoutMs
1619
+ });
1620
+ const getOrganizationBillingPromotionCode = (transport, args, options) => transport.request({
1621
+ idempotent: true,
1622
+ method: "GET",
1623
+ operationId: "getOrganizationBillingPromotionCode",
1624
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/promotion-codes/${encodeURIComponent(String(args.code))}`,
1625
+ requiresSession: true,
1626
+ retry: options?.retry,
1627
+ serverBudgetMs: 3e4,
1628
+ signal: options?.signal,
1629
+ surface: "rest",
1630
+ timeoutMs: options?.timeoutMs
1631
+ });
1632
+ const getOrganizationBillingSubscription = (transport, args, options) => transport.request({
1633
+ dates: { data: organizationSubscriptionSummaryDates },
1634
+ idempotent: true,
1635
+ method: "GET",
1636
+ operationId: "getOrganizationBillingSubscription",
1637
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/subscription`,
1638
+ requiresSession: true,
1639
+ retry: options?.retry,
1640
+ serverBudgetMs: 3e4,
1641
+ signal: options?.signal,
1642
+ surface: "rest",
1643
+ timeoutMs: options?.timeoutMs
1644
+ });
1645
+ const getOrganizationEvents = (transport, args, options) => transport.requestBinary({
1646
+ accept: "text/event-stream",
1647
+ actsAsMember: true,
1648
+ idempotent: true,
1649
+ method: "GET",
1650
+ operationId: "getOrganizationEvents",
1651
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/events`,
1652
+ requiresSession: true,
1653
+ retry: options?.retry,
1654
+ signal: options?.signal,
1655
+ surface: "rest",
1656
+ timeoutMs: options?.timeoutMs
1657
+ });
1658
+ const getOrganizationInvitation = (transport, args, options) => transport.request({
1659
+ dates: { data: organizationInvitationDates },
1660
+ idempotent: true,
1661
+ method: "GET",
1662
+ operationId: "getOrganizationInvitation",
1663
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/invitations/${encodeURIComponent(String(args.invitation_id))}`,
1664
+ requiresSession: true,
1665
+ retry: options?.retry,
1666
+ serverBudgetMs: 3e4,
1667
+ signal: options?.signal,
1668
+ surface: "rest",
1669
+ timeoutMs: options?.timeoutMs
1670
+ });
1671
+ const getOrganizationInvitations = (transport, args, options) => transport.request({
1672
+ dates: { data: [organizationInvitationDates] },
1673
+ idempotent: true,
1674
+ method: "GET",
1675
+ operationId: "getOrganizationInvitations",
1676
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/invitations`,
1677
+ query: args.query,
1678
+ requiresSession: true,
1679
+ retry: options?.retry,
1680
+ serverBudgetMs: 3e4,
1681
+ signal: options?.signal,
1682
+ surface: "rest",
1683
+ timeoutMs: options?.timeoutMs
1684
+ });
1685
+ const getOrganizationMembers = (transport, args, options) => transport.request({
1686
+ dates: { data: [organizationMemberDates] },
1687
+ idempotent: true,
1688
+ method: "GET",
1689
+ operationId: "getOrganizationMembers",
1690
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/members`,
1691
+ query: args.query,
1692
+ requiresSession: true,
1693
+ retry: options?.retry,
1694
+ serverBudgetMs: 3e4,
1695
+ signal: options?.signal,
1696
+ surface: "rest",
1697
+ timeoutMs: options?.timeoutMs
1698
+ });
1699
+ const getOrganizationPublishableKey = (transport, args, options) => transport.request({
1700
+ dates: { data: publishableKeyDates },
1701
+ idempotent: true,
1702
+ method: "GET",
1703
+ operationId: "getOrganizationPublishableKey",
1704
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/publishable-keys/${encodeURIComponent(String(args.key_id))}`,
1705
+ requiresSession: true,
1706
+ retry: options?.retry,
1707
+ serverBudgetMs: 3e4,
1708
+ signal: options?.signal,
1709
+ surface: "rest",
1710
+ timeoutMs: options?.timeoutMs
1711
+ });
1712
+ const getOrganizationPublishableKeys = (transport, args, options) => transport.request({
1713
+ dates: { data: [publishableKeyDates] },
1714
+ idempotent: true,
1715
+ method: "GET",
1716
+ operationId: "getOrganizationPublishableKeys",
1717
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/publishable-keys`,
1718
+ query: args.query,
1719
+ requiresSession: true,
1720
+ retry: options?.retry,
1721
+ serverBudgetMs: 3e4,
1722
+ signal: options?.signal,
1723
+ surface: "rest",
1724
+ timeoutMs: options?.timeoutMs
1725
+ });
1726
+ const getOrganizationSettings = (transport, args, options) => transport.request({
1727
+ idempotent: true,
1728
+ method: "GET",
1729
+ operationId: "getOrganizationSettings",
1730
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/settings`,
1731
+ requiresSession: true,
1732
+ retry: options?.retry,
1733
+ serverBudgetMs: 3e4,
1734
+ signal: options?.signal,
1735
+ surface: "rest",
1736
+ timeoutMs: options?.timeoutMs
1737
+ });
1738
+ const getOrganizationUsageData = (transport, args, options) => transport.request({
1739
+ idempotent: true,
1740
+ method: "GET",
1741
+ operationId: "getOrganizationUsageData",
1742
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/usage/data`,
1743
+ query: args.query,
1744
+ requiresSession: true,
1745
+ retry: options?.retry,
1746
+ serverBudgetMs: 3e4,
1747
+ signal: options?.signal,
1748
+ surface: "rest",
1749
+ timeoutMs: options?.timeoutMs
1750
+ });
1751
+ const getOrganizationUsageTiles = (transport, args, options) => transport.request({
1752
+ idempotent: true,
1753
+ method: "GET",
1754
+ operationId: "getOrganizationUsageTiles",
1755
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/usage/tiles`,
1756
+ query: args.query,
1757
+ requiresSession: true,
1758
+ retry: options?.retry,
1759
+ serverBudgetMs: 3e4,
1760
+ signal: options?.signal,
1761
+ surface: "rest",
1762
+ timeoutMs: options?.timeoutMs
1763
+ });
1764
+ const getOrganizationWebhookDeliveries = (transport, args, options) => transport.request({
1765
+ dates: { data: [webhookDeliveryDates] },
1766
+ idempotent: true,
1767
+ method: "GET",
1768
+ operationId: "getOrganizationWebhookDeliveries",
1769
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-deliveries`,
1770
+ query: args.query,
1771
+ requiresSession: true,
1772
+ retry: options?.retry,
1773
+ serverBudgetMs: 3e4,
1774
+ signal: options?.signal,
1775
+ surface: "rest",
1776
+ timeoutMs: options?.timeoutMs
1777
+ });
1778
+ const getOrganizationWebhookDelivery = (transport, args, options) => transport.request({
1779
+ dates: { data: webhookDeliveryWithAttemptsDates },
1780
+ idempotent: true,
1781
+ method: "GET",
1782
+ operationId: "getOrganizationWebhookDelivery",
1783
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-deliveries/${encodeURIComponent(String(args.delivery_id))}`,
1784
+ requiresSession: true,
1785
+ retry: options?.retry,
1786
+ serverBudgetMs: 3e4,
1787
+ signal: options?.signal,
1788
+ surface: "rest",
1789
+ timeoutMs: options?.timeoutMs
1790
+ });
1791
+ const getOrganizationWebhookEndpoint = (transport, args, options) => transport.request({
1792
+ dates: { data: webhookEndpointDates },
1793
+ idempotent: true,
1794
+ method: "GET",
1795
+ operationId: "getOrganizationWebhookEndpoint",
1796
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-endpoints/${encodeURIComponent(String(args.webhook_endpoint_id))}`,
1797
+ requiresSession: true,
1798
+ retry: options?.retry,
1799
+ serverBudgetMs: 3e4,
1800
+ signal: options?.signal,
1801
+ surface: "rest",
1802
+ timeoutMs: options?.timeoutMs
1803
+ });
1804
+ const getOrganizationWebhookEndpoints = (transport, args, options) => transport.request({
1805
+ dates: { data: [webhookEndpointDates] },
1806
+ idempotent: true,
1807
+ method: "GET",
1808
+ operationId: "getOrganizationWebhookEndpoints",
1809
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-endpoints`,
1810
+ query: args.query,
1811
+ requiresSession: true,
1812
+ retry: options?.retry,
1813
+ serverBudgetMs: 3e4,
1814
+ signal: options?.signal,
1815
+ surface: "rest",
1816
+ timeoutMs: options?.timeoutMs
1817
+ });
1818
+ const getOrganizationWebhookEvent = (transport, args, options) => transport.request({
1819
+ dates: { data: webhookEventWithDeliveriesDates },
1820
+ idempotent: true,
1821
+ method: "GET",
1822
+ operationId: "getOrganizationWebhookEvent",
1823
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-events/${encodeURIComponent(String(args.event_id))}`,
1824
+ requiresSession: true,
1825
+ retry: options?.retry,
1826
+ serverBudgetMs: 3e4,
1827
+ signal: options?.signal,
1828
+ surface: "rest",
1829
+ timeoutMs: options?.timeoutMs
1830
+ });
1831
+ const getOrganizationWebhookEvents = (transport, args, options) => transport.request({
1832
+ dates: { data: [webhookEventDates] },
1833
+ idempotent: true,
1834
+ method: "GET",
1835
+ operationId: "getOrganizationWebhookEvents",
1836
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-events`,
1837
+ query: args.query,
1838
+ requiresSession: true,
1839
+ retry: options?.retry,
1840
+ serverBudgetMs: 3e4,
1841
+ signal: options?.signal,
1842
+ surface: "rest",
1843
+ timeoutMs: options?.timeoutMs
1844
+ });
1845
+ const getOrganizationWebhookHealth = (transport, args, options) => transport.request({
1846
+ dates: { data: webhookHealthDates },
1847
+ idempotent: true,
1848
+ method: "GET",
1849
+ operationId: "getOrganizationWebhookHealth",
1850
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-health`,
1851
+ query: args.query,
1852
+ requiresSession: true,
1853
+ retry: options?.retry,
1854
+ serverBudgetMs: 3e4,
1855
+ signal: options?.signal,
1856
+ surface: "rest",
1857
+ timeoutMs: options?.timeoutMs
1858
+ });
1859
+ const getWebhookEventTypes = (transport, options) => transport.request({
1860
+ idempotent: true,
1861
+ method: "GET",
1862
+ operationId: "getWebhookEventTypes",
1863
+ path: "/v1/webhook-event-types",
1864
+ requiresSession: true,
1865
+ retry: options?.retry,
1866
+ serverBudgetMs: 3e4,
1867
+ signal: options?.signal,
1868
+ surface: "rest",
1869
+ timeoutMs: options?.timeoutMs
1870
+ });
1871
+ const getZone = (transport, args, options) => transport.request({
1872
+ acceptsShareToken: true,
1873
+ dates: { data: zoneDates },
1874
+ idempotent: true,
1875
+ method: "GET",
1876
+ operationId: "getZone",
1877
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}`,
1878
+ query: args.query,
1879
+ retry: options?.retry,
1880
+ serverBudgetMs: 3e4,
1881
+ signal: options?.signal,
1882
+ surface: "rest",
1883
+ timeoutMs: options?.timeoutMs
1884
+ });
1885
+ const getZoneEvents = (transport, args, options) => transport.requestBinary({
1886
+ accept: "text/event-stream",
1887
+ actsAsMember: true,
1888
+ idempotent: true,
1889
+ method: "GET",
1890
+ operationId: "getZoneEvents",
1891
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}/events`,
1892
+ requiresSession: true,
1893
+ retry: options?.retry,
1894
+ signal: options?.signal,
1895
+ surface: "rest",
1896
+ timeoutMs: options?.timeoutMs
1897
+ });
1898
+ const getZones = (transport, args = {}, options) => transport.request({
1899
+ dates: { data: [zoneDates] },
1900
+ idempotent: true,
1901
+ method: "GET",
1902
+ operationId: "getZones",
1903
+ path: "/v1/zones",
1904
+ query: args.query,
1905
+ retry: options?.retry,
1906
+ serverBudgetMs: 3e4,
1907
+ signal: options?.signal,
1908
+ surface: "rest",
1909
+ timeoutMs: options?.timeoutMs
1910
+ });
1911
+ const patchCollection = (transport, args, options) => transport.request({
1912
+ actsAsMember: true,
1913
+ body: args.body,
1914
+ dates: { data: collectionDates },
1915
+ idempotencyKey: args.idempotencyKey,
1916
+ idempotent: true,
1917
+ ifMatch: args.ifMatch,
1918
+ method: "PATCH",
1919
+ operationId: "patchCollection",
1920
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}`,
1921
+ requiresSession: true,
1922
+ retry: options?.retry,
1923
+ serverBudgetMs: 3e4,
1924
+ signal: options?.signal,
1925
+ surface: "rest",
1926
+ takesIdempotencyKey: true,
1927
+ timeoutMs: options?.timeoutMs
1928
+ });
1929
+ const patchCollectionItinerary = (transport, args, options) => transport.request({
1930
+ actsAsMember: true,
1931
+ body: args.body,
1932
+ dates: { data: collectionDates },
1933
+ idempotencyKey: args.idempotencyKey,
1934
+ idempotent: true,
1935
+ ifMatch: args.ifMatch,
1936
+ method: "PATCH",
1937
+ operationId: "patchCollectionItinerary",
1938
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/itineraries/${encodeURIComponent(String(args.itinerary_id))}`,
1939
+ requiresSession: true,
1940
+ retry: options?.retry,
1941
+ serverBudgetMs: 3e4,
1942
+ signal: options?.signal,
1943
+ surface: "rest",
1944
+ takesIdempotencyKey: true,
1945
+ timeoutMs: options?.timeoutMs
1946
+ });
1947
+ const patchItinerary = (transport, args, options) => transport.request({
1948
+ actsAsMember: true,
1949
+ body: args.body,
1950
+ dates: { data: itineraryWithDetailsDates },
1951
+ idempotencyKey: args.idempotencyKey,
1952
+ idempotent: true,
1953
+ ifMatch: args.ifMatch,
1954
+ method: "PATCH",
1955
+ operationId: "patchItinerary",
1956
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}`,
1957
+ requiresSession: true,
1958
+ retry: options?.retry,
1959
+ serverBudgetMs: 3e4,
1960
+ signal: options?.signal,
1961
+ surface: "rest",
1962
+ takesIdempotencyKey: true,
1963
+ timeoutMs: options?.timeoutMs
1964
+ });
1965
+ const patchItinerarySegment = (transport, args, options) => transport.request({
1966
+ actsAsMember: true,
1967
+ body: args.body,
1968
+ dates: { data: itineraryWithDetailsDates },
1969
+ idempotencyKey: args.idempotencyKey,
1970
+ idempotent: true,
1971
+ ifMatch: args.ifMatch,
1972
+ method: "PATCH",
1973
+ operationId: "patchItinerarySegment",
1974
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segments/${encodeURIComponent(String(args.segment_id))}`,
1975
+ requiresSession: true,
1976
+ retry: options?.retry,
1977
+ serverBudgetMs: 3e4,
1978
+ signal: options?.signal,
1979
+ surface: "rest",
1980
+ takesIdempotencyKey: true,
1981
+ timeoutMs: options?.timeoutMs
1982
+ });
1983
+ const patchItinerarySegmentGroup = (transport, args, options) => transport.request({
1984
+ actsAsMember: true,
1985
+ body: args.body,
1986
+ dates: { data: itineraryWithDetailsDates },
1987
+ idempotencyKey: args.idempotencyKey,
1988
+ idempotent: true,
1989
+ ifMatch: args.ifMatch,
1990
+ method: "PATCH",
1991
+ operationId: "patchItinerarySegmentGroup",
1992
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segment-groups/${encodeURIComponent(String(args.group_id))}`,
1993
+ requiresSession: true,
1994
+ retry: options?.retry,
1995
+ serverBudgetMs: 3e4,
1996
+ signal: options?.signal,
1997
+ surface: "rest",
1998
+ takesIdempotencyKey: true,
1999
+ timeoutMs: options?.timeoutMs
2000
+ });
2001
+ const patchItineraryWaypoint = (transport, args, options) => transport.request({
2002
+ actsAsMember: true,
2003
+ body: args.body,
2004
+ dates: { data: itineraryWithDetailsDates },
2005
+ idempotencyKey: args.idempotencyKey,
2006
+ idempotent: true,
2007
+ ifMatch: args.ifMatch,
2008
+ method: "PATCH",
2009
+ operationId: "patchItineraryWaypoint",
2010
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/waypoints/${encodeURIComponent(String(args.waypoint_id))}`,
2011
+ requiresSession: true,
2012
+ retry: options?.retry,
2013
+ serverBudgetMs: 3e4,
2014
+ signal: options?.signal,
2015
+ surface: "rest",
2016
+ takesIdempotencyKey: true,
2017
+ timeoutMs: options?.timeoutMs
2018
+ });
2019
+ const patchMyOrganizationNotificationPreferences = (transport, args, options) => transport.request({
2020
+ actsAsMember: true,
2021
+ body: args.body,
2022
+ idempotencyKey: args.idempotencyKey,
2023
+ idempotent: true,
2024
+ method: "PATCH",
2025
+ operationId: "patchMyOrganizationNotificationPreferences",
2026
+ path: `/v1/me/organizations/${encodeURIComponent(String(args.organization_id))}/notification-preferences`,
2027
+ requiresSession: true,
2028
+ retry: options?.retry,
2029
+ serverBudgetMs: 3e4,
2030
+ signal: options?.signal,
2031
+ surface: "rest",
2032
+ takesIdempotencyKey: true,
2033
+ timeoutMs: options?.timeoutMs
2034
+ });
2035
+ const patchMyPreferences = (transport, args, options) => transport.request({
2036
+ actsAsMember: true,
2037
+ body: args.body,
2038
+ idempotencyKey: args.idempotencyKey,
2039
+ idempotent: true,
2040
+ method: "PATCH",
2041
+ operationId: "patchMyPreferences",
2042
+ path: "/v1/me/preferences",
2043
+ requiresSession: true,
2044
+ retry: options?.retry,
2045
+ serverBudgetMs: 3e4,
2046
+ signal: options?.signal,
2047
+ surface: "rest",
2048
+ takesIdempotencyKey: true,
2049
+ timeoutMs: options?.timeoutMs
2050
+ });
2051
+ const patchOrganization = (transport, args, options) => transport.request({
2052
+ actsAsMember: true,
2053
+ body: args.body,
2054
+ dates: { data: organizationDates },
2055
+ idempotencyKey: args.idempotencyKey,
2056
+ idempotent: true,
2057
+ ifMatch: args.ifMatch,
2058
+ method: "PATCH",
2059
+ operationId: "patchOrganization",
2060
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}`,
2061
+ requiresSession: true,
2062
+ retry: options?.retry,
2063
+ serverBudgetMs: 3e4,
2064
+ signal: options?.signal,
2065
+ surface: "rest",
2066
+ takesIdempotencyKey: true,
2067
+ timeoutMs: options?.timeoutMs
2068
+ });
2069
+ const patchOrganizationAiProviderConfig = (transport, args, options) => transport.request({
2070
+ actsAsMember: true,
2071
+ body: args.body,
2072
+ idempotencyKey: args.idempotencyKey,
2073
+ idempotent: true,
2074
+ ifMatch: args.ifMatch,
2075
+ method: "PATCH",
2076
+ operationId: "patchOrganizationAiProviderConfig",
2077
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/ai-provider-config`,
2078
+ requiresSession: true,
2079
+ retry: options?.retry,
2080
+ serverBudgetMs: 3e4,
2081
+ signal: options?.signal,
2082
+ surface: "rest",
2083
+ takesIdempotencyKey: true,
2084
+ timeoutMs: options?.timeoutMs
2085
+ });
2086
+ const patchOrganizationBillingInfo = (transport, args, options) => transport.request({
2087
+ actsAsMember: true,
2088
+ body: args.body,
2089
+ idempotencyKey: args.idempotencyKey,
2090
+ idempotent: true,
2091
+ method: "PATCH",
2092
+ operationId: "patchOrganizationBillingInfo",
2093
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/info`,
2094
+ requiresSession: true,
2095
+ retry: options?.retry,
2096
+ serverBudgetMs: 3e4,
2097
+ signal: options?.signal,
2098
+ surface: "rest",
2099
+ takesIdempotencyKey: true,
2100
+ timeoutMs: options?.timeoutMs
2101
+ });
2102
+ const patchOrganizationMember = (transport, args, options) => transport.request({
2103
+ actsAsMember: true,
2104
+ body: args.body,
2105
+ dates: { data: organizationMemberDates },
2106
+ idempotencyKey: args.idempotencyKey,
2107
+ idempotent: true,
2108
+ method: "PATCH",
2109
+ operationId: "patchOrganizationMember",
2110
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/members/${encodeURIComponent(String(args.user_id))}`,
2111
+ requiresSession: true,
2112
+ retry: options?.retry,
2113
+ serverBudgetMs: 3e4,
2114
+ signal: options?.signal,
2115
+ surface: "rest",
2116
+ takesIdempotencyKey: true,
2117
+ timeoutMs: options?.timeoutMs
2118
+ });
2119
+ const patchOrganizationPublishableKey = (transport, args, options) => transport.request({
2120
+ actsAsMember: true,
2121
+ body: args.body,
2122
+ dates: { data: publishableKeyDates },
2123
+ idempotencyKey: args.idempotencyKey,
2124
+ idempotent: true,
2125
+ ifMatch: args.ifMatch,
2126
+ method: "PATCH",
2127
+ operationId: "patchOrganizationPublishableKey",
2128
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/publishable-keys/${encodeURIComponent(String(args.key_id))}`,
2129
+ requiresSession: true,
2130
+ retry: options?.retry,
2131
+ serverBudgetMs: 3e4,
2132
+ signal: options?.signal,
2133
+ surface: "rest",
2134
+ takesIdempotencyKey: true,
2135
+ timeoutMs: options?.timeoutMs
2136
+ });
2137
+ const patchOrganizationSettings = (transport, args, options) => transport.request({
2138
+ actsAsMember: true,
2139
+ body: args.body,
2140
+ idempotencyKey: args.idempotencyKey,
2141
+ idempotent: true,
2142
+ ifMatch: args.ifMatch,
2143
+ method: "PATCH",
2144
+ operationId: "patchOrganizationSettings",
2145
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/settings`,
2146
+ requiresSession: true,
2147
+ retry: options?.retry,
2148
+ serverBudgetMs: 3e4,
2149
+ signal: options?.signal,
2150
+ surface: "rest",
2151
+ takesIdempotencyKey: true,
2152
+ timeoutMs: options?.timeoutMs
2153
+ });
2154
+ const patchOrganizationWebhookEndpoint = (transport, args, options) => transport.request({
2155
+ actsAsMember: true,
2156
+ body: args.body,
2157
+ dates: { data: webhookEndpointDates },
2158
+ idempotencyKey: args.idempotencyKey,
2159
+ idempotent: true,
2160
+ ifMatch: args.ifMatch,
2161
+ method: "PATCH",
2162
+ operationId: "patchOrganizationWebhookEndpoint",
2163
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-endpoints/${encodeURIComponent(String(args.webhook_endpoint_id))}`,
2164
+ requiresSession: true,
2165
+ retry: options?.retry,
2166
+ serverBudgetMs: 3e4,
2167
+ signal: options?.signal,
2168
+ surface: "rest",
2169
+ takesIdempotencyKey: true,
2170
+ timeoutMs: options?.timeoutMs
2171
+ });
2172
+ const patchZone = (transport, args, options) => transport.request({
2173
+ actsAsMember: true,
2174
+ body: args.body,
2175
+ dates: { data: zoneDates },
2176
+ idempotencyKey: args.idempotencyKey,
2177
+ idempotent: true,
2178
+ ifMatch: args.ifMatch,
2179
+ method: "PATCH",
2180
+ operationId: "patchZone",
2181
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}`,
2182
+ requiresSession: true,
2183
+ retry: options?.retry,
2184
+ serverBudgetMs: 3e4,
2185
+ signal: options?.signal,
2186
+ surface: "rest",
2187
+ takesIdempotencyKey: true,
2188
+ timeoutMs: options?.timeoutMs
2189
+ });
2190
+ const postAgentRun = (transport, args, options) => transport.request({
2191
+ actsAsMember: true,
2192
+ body: args.body,
2193
+ dates: { data: agentRunDates },
2194
+ idempotencyKey: args.idempotencyKey,
2195
+ idempotent: false,
2196
+ method: "POST",
2197
+ operationId: "postAgentRun",
2198
+ path: "/v1/agent/runs",
2199
+ requiresSession: true,
2200
+ retry: options?.retry,
2201
+ serverBudgetMs: 3e4,
2202
+ signal: options?.signal,
2203
+ surface: "rest",
2204
+ takesIdempotencyKey: true,
2205
+ timeoutMs: options?.timeoutMs
2206
+ });
2207
+ const postAgentRunFeedback = (transport, args, options) => transport.request({
2208
+ actsAsMember: true,
2209
+ body: args.body,
2210
+ idempotencyKey: args.idempotencyKey,
2211
+ idempotent: false,
2212
+ method: "POST",
2213
+ operationId: "postAgentRunFeedback",
2214
+ path: `/v1/agent/runs/${encodeURIComponent(String(args.run_id))}/feedback`,
2215
+ requiresSession: true,
2216
+ retry: options?.retry,
2217
+ serverBudgetMs: 3e4,
2218
+ signal: options?.signal,
2219
+ surface: "rest",
2220
+ takesIdempotencyKey: true,
2221
+ timeoutMs: options?.timeoutMs
2222
+ });
2223
+ const postAgentRunInput = (transport, args, options) => transport.request({
2224
+ actsAsMember: true,
2225
+ body: args.body,
2226
+ idempotencyKey: args.idempotencyKey,
2227
+ idempotent: false,
2228
+ method: "POST",
2229
+ operationId: "postAgentRunInput",
2230
+ path: `/v1/agent/runs/${encodeURIComponent(String(args.run_id))}/input`,
2231
+ requiresSession: true,
2232
+ retry: options?.retry,
2233
+ serverBudgetMs: 3e4,
2234
+ signal: options?.signal,
2235
+ surface: "rest",
2236
+ takesIdempotencyKey: true,
2237
+ timeoutMs: options?.timeoutMs
2238
+ });
2239
+ const postCollection = (transport, args, options) => transport.request({
2240
+ actsAsMember: true,
2241
+ body: args.body,
2242
+ dates: { data: collectionDates },
2243
+ idempotencyKey: args.idempotencyKey,
2244
+ idempotent: false,
2245
+ method: "POST",
2246
+ operationId: "postCollection",
2247
+ path: "/v1/collections",
2248
+ requiresSession: true,
2249
+ retry: options?.retry,
2250
+ serverBudgetMs: 3e4,
2251
+ signal: options?.signal,
2252
+ surface: "rest",
2253
+ takesIdempotencyKey: true,
2254
+ timeoutMs: options?.timeoutMs
2255
+ });
2256
+ const postCollectionItineraries = (transport, args, options) => transport.request({
2257
+ actsAsMember: true,
2258
+ body: args.body,
2259
+ dates: { data: collectionDates },
2260
+ idempotencyKey: args.idempotencyKey,
2261
+ idempotent: true,
2262
+ ifMatch: args.ifMatch,
2263
+ method: "POST",
2264
+ operationId: "postCollectionItineraries",
2265
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/itineraries`,
2266
+ requiresSession: true,
2267
+ retry: options?.retry,
2268
+ serverBudgetMs: 3e4,
2269
+ signal: options?.signal,
2270
+ surface: "rest",
2271
+ takesIdempotencyKey: true,
2272
+ timeoutMs: options?.timeoutMs
2273
+ });
2274
+ const postCollectionShareLink = (transport, args, options) => transport.request({
2275
+ actsAsMember: true,
2276
+ dates: { data: shareLinkDates },
2277
+ idempotencyKey: args.idempotencyKey,
2278
+ idempotent: true,
2279
+ method: "POST",
2280
+ operationId: "postCollectionShareLink",
2281
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/share-link`,
2282
+ requiresSession: true,
2283
+ retry: options?.retry,
2284
+ serverBudgetMs: 3e4,
2285
+ signal: options?.signal,
2286
+ surface: "rest",
2287
+ takesIdempotencyKey: true,
2288
+ timeoutMs: options?.timeoutMs
2289
+ });
2290
+ const postCollectionShareLinkRotate = (transport, args, options) => transport.request({
2291
+ actsAsMember: true,
2292
+ dates: { data: shareLinkDates },
2293
+ idempotencyKey: args.idempotencyKey,
2294
+ idempotent: false,
2295
+ method: "POST",
2296
+ operationId: "postCollectionShareLinkRotate",
2297
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/share-link/rotate`,
2298
+ requiresSession: true,
2299
+ retry: options?.retry,
2300
+ serverBudgetMs: 3e4,
2301
+ signal: options?.signal,
2302
+ surface: "rest",
2303
+ takesIdempotencyKey: true,
2304
+ timeoutMs: options?.timeoutMs
2305
+ });
2306
+ const postCollectionZones = (transport, args, options) => transport.request({
2307
+ actsAsMember: true,
2308
+ body: args.body,
2309
+ dates: { data: collectionDates },
2310
+ idempotencyKey: args.idempotencyKey,
2311
+ idempotent: true,
2312
+ ifMatch: args.ifMatch,
2313
+ method: "POST",
2314
+ operationId: "postCollectionZones",
2315
+ path: `/v1/collections/${encodeURIComponent(String(args.collection_id))}/zones`,
2316
+ requiresSession: true,
2317
+ retry: options?.retry,
2318
+ serverBudgetMs: 3e4,
2319
+ signal: options?.signal,
2320
+ surface: "rest",
2321
+ takesIdempotencyKey: true,
2322
+ timeoutMs: options?.timeoutMs
2323
+ });
2324
+ const postItinerary = (transport, args, options) => transport.request({
2325
+ actsAsMember: true,
2326
+ body: args.body,
2327
+ dates: { data: itineraryWithDetailsDates },
2328
+ idempotencyKey: args.idempotencyKey,
2329
+ idempotent: false,
2330
+ method: "POST",
2331
+ operationId: "postItinerary",
2332
+ path: "/v1/itineraries",
2333
+ requiresSession: true,
2334
+ retry: options?.retry,
2335
+ serverBudgetMs: 3e4,
2336
+ signal: options?.signal,
2337
+ surface: "rest",
2338
+ takesIdempotencyKey: true,
2339
+ timeoutMs: options?.timeoutMs
2340
+ });
2341
+ const postItineraryCollab = (transport, args, options) => transport.request({
2342
+ actsAsMember: true,
2343
+ body: args.body,
2344
+ idempotent: true,
2345
+ method: "POST",
2346
+ operationId: "postItineraryCollab",
2347
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/collab`,
2348
+ requiresSession: true,
2349
+ retry: options?.retry,
2350
+ serverBudgetMs: 3e4,
2351
+ signal: options?.signal,
2352
+ surface: "rest",
2353
+ timeoutMs: options?.timeoutMs
2354
+ });
2355
+ const postItineraryDuplicate = (transport, args, options) => transport.request({
2356
+ actsAsMember: true,
2357
+ body: args.body,
2358
+ dates: { data: itineraryWithDetailsDates },
2359
+ idempotencyKey: args.idempotencyKey,
2360
+ idempotent: false,
2361
+ method: "POST",
2362
+ operationId: "postItineraryDuplicate",
2363
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/duplicate`,
2364
+ query: args.query,
2365
+ requiresSession: true,
2366
+ retry: options?.retry,
2367
+ serverBudgetMs: 3e4,
2368
+ signal: options?.signal,
2369
+ surface: "rest",
2370
+ takesIdempotencyKey: true,
2371
+ timeoutMs: options?.timeoutMs
2372
+ });
2373
+ const postItineraryImport = (transport, args, options) => transport.request({
2374
+ actsAsMember: true,
2375
+ body: args.body,
2376
+ dates: { data: itineraryWithDetailsDates },
2377
+ idempotencyKey: args.idempotencyKey,
2378
+ idempotent: false,
2379
+ method: "POST",
2380
+ operationId: "postItineraryImport",
2381
+ path: "/v1/itineraries/import",
2382
+ requiresSession: true,
2383
+ retry: options?.retry,
2384
+ serverBudgetMs: 55e3,
2385
+ signal: options?.signal,
2386
+ surface: "rest",
2387
+ takesIdempotencyKey: true,
2388
+ timeoutMs: options?.timeoutMs
2389
+ });
2390
+ const postItineraryPreview = (transport, args, options) => transport.request({
2391
+ actsAsMember: true,
2392
+ body: args.body,
2393
+ idempotencyKey: args.idempotencyKey,
2394
+ idempotent: true,
2395
+ method: "POST",
2396
+ operationId: "postItineraryPreview",
2397
+ path: "/v1/itineraries/preview",
2398
+ requiresSession: true,
2399
+ retry: options?.retry,
2400
+ serverBudgetMs: 55e3,
2401
+ signal: options?.signal,
2402
+ surface: "rest",
2403
+ takesIdempotencyKey: true,
2404
+ timeoutMs: options?.timeoutMs
2405
+ });
2406
+ const postItineraryPublication = (transport, args, options) => transport.request({
2407
+ actsAsMember: true,
2408
+ dates: { data: itineraryWithDetailsDates },
2409
+ idempotencyKey: args.idempotencyKey,
2410
+ idempotent: true,
2411
+ ifMatch: args.ifMatch,
2412
+ method: "POST",
2413
+ operationId: "postItineraryPublication",
2414
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/publication`,
2415
+ requiresSession: true,
2416
+ retry: options?.retry,
2417
+ serverBudgetMs: 3e4,
2418
+ signal: options?.signal,
2419
+ surface: "rest",
2420
+ takesIdempotencyKey: true,
2421
+ timeoutMs: options?.timeoutMs
2422
+ });
2423
+ const postItinerarySegment = (transport, args, options) => transport.request({
2424
+ actsAsMember: true,
2425
+ body: args.body,
2426
+ dates: { data: itineraryWithDetailsDates },
2427
+ idempotencyKey: args.idempotencyKey,
2428
+ idempotent: false,
2429
+ ifMatch: args.ifMatch,
2430
+ method: "POST",
2431
+ operationId: "postItinerarySegment",
2432
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segments`,
2433
+ requiresSession: true,
2434
+ retry: options?.retry,
2435
+ serverBudgetMs: 3e4,
2436
+ signal: options?.signal,
2437
+ surface: "rest",
2438
+ takesIdempotencyKey: true,
2439
+ timeoutMs: options?.timeoutMs
2440
+ });
2441
+ const postItinerarySegmentConvert = (transport, args, options) => transport.request({
2442
+ actsAsMember: true,
2443
+ body: args.body,
2444
+ dates: { data: itineraryWithDetailsDates },
2445
+ idempotencyKey: args.idempotencyKey,
2446
+ idempotent: true,
2447
+ ifMatch: args.ifMatch,
2448
+ method: "POST",
2449
+ operationId: "postItinerarySegmentConvert",
2450
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segments/${encodeURIComponent(String(args.segment_id))}/convert`,
2451
+ requiresSession: true,
2452
+ retry: options?.retry,
2453
+ serverBudgetMs: 3e4,
2454
+ signal: options?.signal,
2455
+ surface: "rest",
2456
+ takesIdempotencyKey: true,
2457
+ timeoutMs: options?.timeoutMs
2458
+ });
2459
+ const postItinerarySegmentGroup = (transport, args, options) => transport.request({
2460
+ actsAsMember: true,
2461
+ body: args.body,
2462
+ dates: { data: itineraryWithDetailsDates },
2463
+ idempotencyKey: args.idempotencyKey,
2464
+ idempotent: false,
2465
+ ifMatch: args.ifMatch,
2466
+ method: "POST",
2467
+ operationId: "postItinerarySegmentGroup",
2468
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segment-groups`,
2469
+ requiresSession: true,
2470
+ retry: options?.retry,
2471
+ serverBudgetMs: 3e4,
2472
+ signal: options?.signal,
2473
+ surface: "rest",
2474
+ takesIdempotencyKey: true,
2475
+ timeoutMs: options?.timeoutMs
2476
+ });
2477
+ const postItinerarySegmentMerge = (transport, args, options) => transport.request({
2478
+ actsAsMember: true,
2479
+ dates: { data: itineraryWithDetailsDates },
2480
+ idempotencyKey: args.idempotencyKey,
2481
+ idempotent: false,
2482
+ ifMatch: args.ifMatch,
2483
+ method: "POST",
2484
+ operationId: "postItinerarySegmentMerge",
2485
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segments/${encodeURIComponent(String(args.segment_id))}/merge`,
2486
+ requiresSession: true,
2487
+ retry: options?.retry,
2488
+ serverBudgetMs: 3e4,
2489
+ signal: options?.signal,
2490
+ surface: "rest",
2491
+ takesIdempotencyKey: true,
2492
+ timeoutMs: options?.timeoutMs
2493
+ });
2494
+ const postItinerarySegmentSplit = (transport, args, options) => transport.request({
2495
+ actsAsMember: true,
2496
+ body: args.body,
2497
+ dates: { data: itineraryWithDetailsDates },
2498
+ idempotencyKey: args.idempotencyKey,
2499
+ idempotent: false,
2500
+ ifMatch: args.ifMatch,
2501
+ method: "POST",
2502
+ operationId: "postItinerarySegmentSplit",
2503
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/segments/${encodeURIComponent(String(args.segment_id))}/split`,
2504
+ requiresSession: true,
2505
+ retry: options?.retry,
2506
+ serverBudgetMs: 3e4,
2507
+ signal: options?.signal,
2508
+ surface: "rest",
2509
+ takesIdempotencyKey: true,
2510
+ timeoutMs: options?.timeoutMs
2511
+ });
2512
+ const postItineraryShareLink = (transport, args, options) => transport.request({
2513
+ actsAsMember: true,
2514
+ dates: { data: shareLinkDates },
2515
+ idempotencyKey: args.idempotencyKey,
2516
+ idempotent: true,
2517
+ method: "POST",
2518
+ operationId: "postItineraryShareLink",
2519
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/share-link`,
2520
+ requiresSession: true,
2521
+ retry: options?.retry,
2522
+ serverBudgetMs: 3e4,
2523
+ signal: options?.signal,
2524
+ surface: "rest",
2525
+ takesIdempotencyKey: true,
2526
+ timeoutMs: options?.timeoutMs
2527
+ });
2528
+ const postItineraryShareLinkRotate = (transport, args, options) => transport.request({
2529
+ actsAsMember: true,
2530
+ dates: { data: shareLinkDates },
2531
+ idempotencyKey: args.idempotencyKey,
2532
+ idempotent: false,
2533
+ method: "POST",
2534
+ operationId: "postItineraryShareLinkRotate",
2535
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/share-link/rotate`,
2536
+ requiresSession: true,
2537
+ retry: options?.retry,
2538
+ serverBudgetMs: 3e4,
2539
+ signal: options?.signal,
2540
+ surface: "rest",
2541
+ takesIdempotencyKey: true,
2542
+ timeoutMs: options?.timeoutMs
2543
+ });
2544
+ const postItineraryWaypoint = (transport, args, options) => transport.request({
2545
+ actsAsMember: true,
2546
+ body: args.body,
2547
+ dates: { data: itineraryWithDetailsDates },
2548
+ idempotencyKey: args.idempotencyKey,
2549
+ idempotent: false,
2550
+ ifMatch: args.ifMatch,
2551
+ method: "POST",
2552
+ operationId: "postItineraryWaypoint",
2553
+ path: `/v1/itineraries/${encodeURIComponent(String(args.itinerary_id))}/waypoints`,
2554
+ requiresSession: true,
2555
+ retry: options?.retry,
2556
+ serverBudgetMs: 3e4,
2557
+ signal: options?.signal,
2558
+ surface: "rest",
2559
+ takesIdempotencyKey: true,
2560
+ timeoutMs: options?.timeoutMs
2561
+ });
2562
+ const postMyInvitationAccept = (transport, args, options) => transport.request({
2563
+ actsAsMember: true,
2564
+ dates: { data: membershipDates },
2565
+ idempotencyKey: args.idempotencyKey,
2566
+ idempotent: true,
2567
+ method: "POST",
2568
+ operationId: "postMyInvitationAccept",
2569
+ path: `/v1/me/invitations/${encodeURIComponent(String(args.invitation_id))}/accept`,
2570
+ requiresSession: true,
2571
+ retry: options?.retry,
2572
+ serverBudgetMs: 3e4,
2573
+ signal: options?.signal,
2574
+ surface: "rest",
2575
+ takesIdempotencyKey: true,
2576
+ timeoutMs: options?.timeoutMs
2577
+ });
2578
+ const postOrganization = (transport, args, options) => transport.request({
2579
+ actsAsMember: true,
2580
+ body: args.body,
2581
+ dates: { data: organizationDates },
2582
+ idempotencyKey: args.idempotencyKey,
2583
+ idempotent: false,
2584
+ method: "POST",
2585
+ operationId: "postOrganization",
2586
+ path: "/v1/organizations",
2587
+ requiresSession: true,
2588
+ retry: options?.retry,
2589
+ serverBudgetMs: 3e4,
2590
+ signal: options?.signal,
2591
+ surface: "rest",
2592
+ takesIdempotencyKey: true,
2593
+ timeoutMs: options?.timeoutMs
2594
+ });
2595
+ const postOrganizationAiProviderConfig = (transport, args, options) => transport.request({
2596
+ actsAsMember: true,
2597
+ body: args.body,
2598
+ idempotencyKey: args.idempotencyKey,
2599
+ idempotent: false,
2600
+ method: "POST",
2601
+ operationId: "postOrganizationAiProviderConfig",
2602
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/ai-provider-config`,
2603
+ requiresSession: true,
2604
+ retry: options?.retry,
2605
+ serverBudgetMs: 3e4,
2606
+ signal: options?.signal,
2607
+ surface: "rest",
2608
+ takesIdempotencyKey: true,
2609
+ timeoutMs: options?.timeoutMs
2610
+ });
2611
+ const postOrganizationBillingPaymentMethod = (transport, args, options) => transport.request({
2612
+ actsAsMember: true,
2613
+ body: args.body,
2614
+ idempotencyKey: args.idempotencyKey,
2615
+ idempotent: true,
2616
+ method: "POST",
2617
+ operationId: "postOrganizationBillingPaymentMethod",
2618
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/payment-methods`,
2619
+ requiresSession: true,
2620
+ retry: options?.retry,
2621
+ serverBudgetMs: 3e4,
2622
+ signal: options?.signal,
2623
+ surface: "rest",
2624
+ takesIdempotencyKey: true,
2625
+ timeoutMs: options?.timeoutMs
2626
+ });
2627
+ const postOrganizationBillingPaymentMethodSetDefault = (transport, args, options) => transport.request({
2628
+ actsAsMember: true,
2629
+ idempotencyKey: args.idempotencyKey,
2630
+ idempotent: true,
2631
+ method: "POST",
2632
+ operationId: "postOrganizationBillingPaymentMethodSetDefault",
2633
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/payment-methods/${encodeURIComponent(String(args.payment_method_id))}/set-default`,
2634
+ requiresSession: true,
2635
+ retry: options?.retry,
2636
+ serverBudgetMs: 3e4,
2637
+ signal: options?.signal,
2638
+ surface: "rest",
2639
+ takesIdempotencyKey: true,
2640
+ timeoutMs: options?.timeoutMs
2641
+ });
2642
+ const postOrganizationBillingPaymentMethodSetup = (transport, args, options) => transport.request({
2643
+ actsAsMember: true,
2644
+ idempotencyKey: args.idempotencyKey,
2645
+ idempotent: false,
2646
+ method: "POST",
2647
+ operationId: "postOrganizationBillingPaymentMethodSetup",
2648
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/payment-methods/setup`,
2649
+ requiresSession: true,
2650
+ retry: options?.retry,
2651
+ serverBudgetMs: 3e4,
2652
+ signal: options?.signal,
2653
+ surface: "rest",
2654
+ takesIdempotencyKey: true,
2655
+ timeoutMs: options?.timeoutMs
2656
+ });
2657
+ const postOrganizationBillingProvision = (transport, args, options) => transport.request({
2658
+ actsAsMember: true,
2659
+ body: args.body,
2660
+ idempotencyKey: args.idempotencyKey,
2661
+ idempotent: true,
2662
+ method: "POST",
2663
+ operationId: "postOrganizationBillingProvision",
2664
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/provision`,
2665
+ requiresSession: true,
2666
+ retry: options?.retry,
2667
+ serverBudgetMs: 3e4,
2668
+ signal: options?.signal,
2669
+ surface: "rest",
2670
+ takesIdempotencyKey: true,
2671
+ timeoutMs: options?.timeoutMs
2672
+ });
2673
+ const postOrganizationBillingSubscription = (transport, args, options) => transport.request({
2674
+ actsAsMember: true,
2675
+ dates: { data: organizationSubscriptionSummaryDates },
2676
+ idempotencyKey: args.idempotencyKey,
2677
+ idempotent: true,
2678
+ method: "POST",
2679
+ operationId: "postOrganizationBillingSubscription",
2680
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/billing/subscription`,
2681
+ requiresSession: true,
2682
+ retry: options?.retry,
2683
+ serverBudgetMs: 3e4,
2684
+ signal: options?.signal,
2685
+ surface: "rest",
2686
+ takesIdempotencyKey: true,
2687
+ timeoutMs: options?.timeoutMs
2688
+ });
2689
+ const postOrganizationInvitation = (transport, args, options) => transport.request({
2690
+ actsAsMember: true,
2691
+ body: args.body,
2692
+ dates: { data: organizationInvitationDates },
2693
+ idempotencyKey: args.idempotencyKey,
2694
+ idempotent: false,
2695
+ method: "POST",
2696
+ operationId: "postOrganizationInvitation",
2697
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/invitations`,
2698
+ requiresSession: true,
2699
+ retry: options?.retry,
2700
+ serverBudgetMs: 3e4,
2701
+ signal: options?.signal,
2702
+ surface: "rest",
2703
+ takesIdempotencyKey: true,
2704
+ timeoutMs: options?.timeoutMs
2705
+ });
2706
+ const postOrganizationLookup = (transport, args, options) => transport.request({
2707
+ body: args.body,
2708
+ dates: { data: organizationDates },
2709
+ idempotent: true,
2710
+ method: "POST",
2711
+ operationId: "postOrganizationLookup",
2712
+ path: "/v1/organizations/lookup",
2713
+ retry: options?.retry,
2714
+ serverBudgetMs: 3e4,
2715
+ signal: options?.signal,
2716
+ surface: "rest",
2717
+ takesNoCredential: true,
2718
+ timeoutMs: options?.timeoutMs
2719
+ });
2720
+ const postOrganizationPublishableKey = (transport, args, options) => transport.request({
2721
+ actsAsMember: true,
2722
+ body: args.body,
2723
+ dates: { data: publishableKeyDates },
2724
+ idempotencyKey: args.idempotencyKey,
2725
+ idempotent: false,
2726
+ method: "POST",
2727
+ operationId: "postOrganizationPublishableKey",
2728
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/publishable-keys`,
2729
+ requiresSession: true,
2730
+ retry: options?.retry,
2731
+ serverBudgetMs: 3e4,
2732
+ signal: options?.signal,
2733
+ surface: "rest",
2734
+ takesIdempotencyKey: true,
2735
+ timeoutMs: options?.timeoutMs
2736
+ });
2737
+ const postOrganizationWebhookDelivery = (transport, args, options) => transport.request({
2738
+ actsAsMember: true,
2739
+ body: args.body,
2740
+ dates: { data: webhookDeliveryTriggerDates },
2741
+ idempotencyKey: args.idempotencyKey,
2742
+ idempotent: false,
2743
+ method: "POST",
2744
+ operationId: "postOrganizationWebhookDelivery",
2745
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-deliveries`,
2746
+ requiresSession: true,
2747
+ retry: options?.retry,
2748
+ serverBudgetMs: 3e4,
2749
+ signal: options?.signal,
2750
+ surface: "rest",
2751
+ takesIdempotencyKey: true,
2752
+ timeoutMs: options?.timeoutMs
2753
+ });
2754
+ const postOrganizationWebhookEndpoint = (transport, args, options) => transport.request({
2755
+ actsAsMember: true,
2756
+ body: args.body,
2757
+ dates: { data: webhookEndpointWithSecretDates },
2758
+ idempotencyKey: args.idempotencyKey,
2759
+ idempotent: false,
2760
+ method: "POST",
2761
+ operationId: "postOrganizationWebhookEndpoint",
2762
+ path: `/v1/organizations/${encodeURIComponent(String(args.organization_id))}/webhook-endpoints`,
2763
+ requiresSession: true,
2764
+ retry: options?.retry,
2765
+ serverBudgetMs: 3e4,
2766
+ signal: options?.signal,
2767
+ surface: "rest",
2768
+ takesIdempotencyKey: true,
2769
+ timeoutMs: options?.timeoutMs
2770
+ });
2771
+ const postSession = (transport, args, options) => transport.request({
2772
+ body: args.body,
2773
+ dates: { data: sessionDates },
2774
+ idempotent: true,
2775
+ method: "POST",
2776
+ operationId: "postSession",
2777
+ path: "/v1/sessions",
2778
+ requiresSecretKey: true,
2779
+ retry: options?.retry,
2780
+ serverBudgetMs: 3e4,
2781
+ signal: options?.signal,
2782
+ surface: "rest",
2783
+ timeoutMs: options?.timeoutMs
2784
+ });
2785
+ const postZone = (transport, args, options) => transport.request({
2786
+ actsAsMember: true,
2787
+ body: args.body,
2788
+ dates: { data: zoneDates },
2789
+ idempotencyKey: args.idempotencyKey,
2790
+ idempotent: false,
2791
+ method: "POST",
2792
+ operationId: "postZone",
2793
+ path: "/v1/zones",
2794
+ requiresSession: true,
2795
+ retry: options?.retry,
2796
+ serverBudgetMs: 3e4,
2797
+ signal: options?.signal,
2798
+ surface: "rest",
2799
+ takesIdempotencyKey: true,
2800
+ timeoutMs: options?.timeoutMs
2801
+ });
2802
+ const postZoneCollab = (transport, args, options) => transport.request({
2803
+ actsAsMember: true,
2804
+ body: args.body,
2805
+ idempotent: true,
2806
+ method: "POST",
2807
+ operationId: "postZoneCollab",
2808
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}/collab`,
2809
+ requiresSession: true,
2810
+ retry: options?.retry,
2811
+ serverBudgetMs: 3e4,
2812
+ signal: options?.signal,
2813
+ surface: "rest",
2814
+ timeoutMs: options?.timeoutMs
2815
+ });
2816
+ const postZonePublication = (transport, args, options) => transport.request({
2817
+ actsAsMember: true,
2818
+ dates: { data: zoneDates },
2819
+ idempotencyKey: args.idempotencyKey,
2820
+ idempotent: true,
2821
+ ifMatch: args.ifMatch,
2822
+ method: "POST",
2823
+ operationId: "postZonePublication",
2824
+ path: `/v1/zones/${encodeURIComponent(String(args.zone_id))}/publication`,
2825
+ requiresSession: true,
2826
+ retry: options?.retry,
2827
+ serverBudgetMs: 3e4,
2828
+ signal: options?.signal,
2829
+ surface: "rest",
2830
+ takesIdempotencyKey: true,
2831
+ timeoutMs: options?.timeoutMs
2832
+ });
2833
+ const bind = (transport) => ({
2834
+ admin: {
2835
+ billing: {
2836
+ deleteOrganizationBillingPaymentMethod: (args, options) => deleteOrganizationBillingPaymentMethod(transport, args, options),
2837
+ deleteOrganizationBillingSubscription: (args, options) => deleteOrganizationBillingSubscription(transport, args, options),
2838
+ getBillingProducts: (options) => getBillingProducts(transport, options),
2839
+ getOrganizationBillingInfo: (args, options) => getOrganizationBillingInfo(transport, args, options),
2840
+ getOrganizationBillingInvoices: (args, options) => getOrganizationBillingInvoices(transport, args, options),
2841
+ getOrganizationBillingPaymentMethods: (args, options) => getOrganizationBillingPaymentMethods(transport, args, options),
2842
+ getOrganizationBillingPromotionCode: (args, options) => getOrganizationBillingPromotionCode(transport, args, options),
2843
+ getOrganizationBillingSubscription: (args, options) => getOrganizationBillingSubscription(transport, args, options),
2844
+ patchOrganizationBillingInfo: (args, options) => patchOrganizationBillingInfo(transport, args, options),
2845
+ postOrganizationBillingPaymentMethod: (args, options) => postOrganizationBillingPaymentMethod(transport, args, options),
2846
+ postOrganizationBillingPaymentMethodSetDefault: (args, options) => postOrganizationBillingPaymentMethodSetDefault(transport, args, options),
2847
+ postOrganizationBillingPaymentMethodSetup: (args, options) => postOrganizationBillingPaymentMethodSetup(transport, args, options),
2848
+ postOrganizationBillingProvision: (args, options) => postOrganizationBillingProvision(transport, args, options),
2849
+ postOrganizationBillingSubscription: (args, options) => postOrganizationBillingSubscription(transport, args, options)
2850
+ },
2851
+ invitations: {
2852
+ deleteOrganizationInvitation: (args, options) => deleteOrganizationInvitation(transport, args, options),
2853
+ getOrganizationInvitation: (args, options) => getOrganizationInvitation(transport, args, options),
2854
+ getOrganizationInvitations: (args, options) => getOrganizationInvitations(transport, args, options),
2855
+ postOrganizationInvitation: (args, options) => postOrganizationInvitation(transport, args, options)
2856
+ },
2857
+ keys: {
2858
+ deleteOrganizationPublishableKey: (args, options) => deleteOrganizationPublishableKey(transport, args, options),
2859
+ getOrganizationPublishableKey: (args, options) => getOrganizationPublishableKey(transport, args, options),
2860
+ getOrganizationPublishableKeys: (args, options) => getOrganizationPublishableKeys(transport, args, options),
2861
+ patchOrganizationPublishableKey: (args, options) => patchOrganizationPublishableKey(transport, args, options),
2862
+ postOrganizationPublishableKey: (args, options) => postOrganizationPublishableKey(transport, args, options)
2863
+ },
2864
+ members: {
2865
+ deleteOrganizationMember: (args, options) => deleteOrganizationMember(transport, args, options),
2866
+ getOrganizationMembers: (args, options) => getOrganizationMembers(transport, args, options),
2867
+ patchOrganizationMember: (args, options) => patchOrganizationMember(transport, args, options)
2868
+ },
2869
+ organizations: {
2870
+ deleteOrganizationAiProviderConfig: (args, options) => deleteOrganizationAiProviderConfig(transport, args, options),
2871
+ getAiProviders: (options) => getAiProviders(transport, options),
2872
+ getOrganization: (args, options) => getOrganization(transport, args, options),
2873
+ getOrganizationAiProviderConfig: (args, options) => getOrganizationAiProviderConfig(transport, args, options),
2874
+ getOrganizationSettings: (args, options) => getOrganizationSettings(transport, args, options),
2875
+ getOrganizationUsageData: (args, options) => getOrganizationUsageData(transport, args, options),
2876
+ getOrganizationUsageTiles: (args, options) => getOrganizationUsageTiles(transport, args, options),
2877
+ patchOrganization: (args, options) => patchOrganization(transport, args, options),
2878
+ patchOrganizationAiProviderConfig: (args, options) => patchOrganizationAiProviderConfig(transport, args, options),
2879
+ patchOrganizationSettings: (args, options) => patchOrganizationSettings(transport, args, options),
2880
+ postOrganization: (args, options) => postOrganization(transport, args, options),
2881
+ postOrganizationAiProviderConfig: (args, options) => postOrganizationAiProviderConfig(transport, args, options)
2882
+ },
2883
+ sessions: { postSession: (args, options) => postSession(transport, args, options) },
2884
+ users: {
2885
+ deleteMyInvitation: (args, options) => deleteMyInvitation(transport, args, options),
2886
+ getMyInvitations: (args, options) => getMyInvitations(transport, args, options),
2887
+ getMyOrganizationNotificationPreferences: (args, options) => getMyOrganizationNotificationPreferences(transport, args, options),
2888
+ getMyOrganizations: (args, options) => getMyOrganizations(transport, args, options),
2889
+ getMyPreferences: (options) => getMyPreferences(transport, options),
2890
+ patchMyOrganizationNotificationPreferences: (args, options) => patchMyOrganizationNotificationPreferences(transport, args, options),
2891
+ patchMyPreferences: (args, options) => patchMyPreferences(transport, args, options),
2892
+ postMyInvitationAccept: (args, options) => postMyInvitationAccept(transport, args, options)
2893
+ },
2894
+ webhooks: {
2895
+ deleteOrganizationWebhookEndpoint: (args, options) => deleteOrganizationWebhookEndpoint(transport, args, options),
2896
+ getOrganizationWebhookDeliveries: (args, options) => getOrganizationWebhookDeliveries(transport, args, options),
2897
+ getOrganizationWebhookDelivery: (args, options) => getOrganizationWebhookDelivery(transport, args, options),
2898
+ getOrganizationWebhookEndpoint: (args, options) => getOrganizationWebhookEndpoint(transport, args, options),
2899
+ getOrganizationWebhookEndpoints: (args, options) => getOrganizationWebhookEndpoints(transport, args, options),
2900
+ getOrganizationWebhookEvent: (args, options) => getOrganizationWebhookEvent(transport, args, options),
2901
+ getOrganizationWebhookEvents: (args, options) => getOrganizationWebhookEvents(transport, args, options),
2902
+ getOrganizationWebhookHealth: (args, options) => getOrganizationWebhookHealth(transport, args, options),
2903
+ getWebhookEventTypes: (options) => getWebhookEventTypes(transport, options),
2904
+ patchOrganizationWebhookEndpoint: (args, options) => patchOrganizationWebhookEndpoint(transport, args, options),
2905
+ postOrganizationWebhookDelivery: (args, options) => postOrganizationWebhookDelivery(transport, args, options),
2906
+ postOrganizationWebhookEndpoint: (args, options) => postOrganizationWebhookEndpoint(transport, args, options)
2907
+ }
2908
+ },
2909
+ agent: { runs: {
2910
+ getAgentRunEvents: (args, options) => getAgentRunEvents(transport, args, options),
2911
+ postAgentRun: (args, options) => postAgentRun(transport, args, options),
2912
+ postAgentRunFeedback: (args, options) => postAgentRunFeedback(transport, args, options),
2913
+ postAgentRunInput: (args, options) => postAgentRunInput(transport, args, options)
2914
+ } },
2915
+ studio: {
2916
+ activities: { getActivities: (options) => getActivities(transport, options) },
2917
+ collab: {
2918
+ getItineraryEvents: (args, options) => getItineraryEvents(transport, args, options),
2919
+ getOrganizationEvents: (args, options) => getOrganizationEvents(transport, args, options),
2920
+ getZoneEvents: (args, options) => getZoneEvents(transport, args, options),
2921
+ postItineraryCollab: (args, options) => postItineraryCollab(transport, args, options),
2922
+ postZoneCollab: (args, options) => postZoneCollab(transport, args, options)
2923
+ },
2924
+ collections: {
2925
+ deleteCollection: (args, options) => deleteCollection(transport, args, options),
2926
+ deleteCollectionItinerary: (args, options) => deleteCollectionItinerary(transport, args, options),
2927
+ deleteCollectionShareLink: (args, options) => deleteCollectionShareLink(transport, args, options),
2928
+ deleteCollectionZone: (args, options) => deleteCollectionZone(transport, args, options),
2929
+ getCollection: (args, options) => getCollection(transport, args, options),
2930
+ getCollectionItineraries: (args, options) => getCollectionItineraries(transport, args, options),
2931
+ getCollections: (args, options) => getCollections(transport, args, options),
2932
+ getCollectionShareLink: (args, options) => getCollectionShareLink(transport, args, options),
2933
+ getCollectionZones: (args, options) => getCollectionZones(transport, args, options),
2934
+ patchCollection: (args, options) => patchCollection(transport, args, options),
2935
+ patchCollectionItinerary: (args, options) => patchCollectionItinerary(transport, args, options),
2936
+ postCollection: (args, options) => postCollection(transport, args, options),
2937
+ postCollectionItineraries: (args, options) => postCollectionItineraries(transport, args, options),
2938
+ postCollectionShareLink: (args, options) => postCollectionShareLink(transport, args, options),
2939
+ postCollectionShareLinkRotate: (args, options) => postCollectionShareLinkRotate(transport, args, options),
2940
+ postCollectionZones: (args, options) => postCollectionZones(transport, args, options)
2941
+ },
2942
+ itineraries: {
2943
+ deleteItinerary: (args, options) => deleteItinerary(transport, args, options),
2944
+ deleteItineraryPublication: (args, options) => deleteItineraryPublication(transport, args, options),
2945
+ deleteItinerarySegment: (args, options) => deleteItinerarySegment(transport, args, options),
2946
+ deleteItinerarySegmentGroup: (args, options) => deleteItinerarySegmentGroup(transport, args, options),
2947
+ deleteItineraryShareLink: (args, options) => deleteItineraryShareLink(transport, args, options),
2948
+ deleteItineraryWaypoint: (args, options) => deleteItineraryWaypoint(transport, args, options),
2949
+ getItineraries: (args, options) => getItineraries(transport, args, options),
2950
+ getItinerary: (args, options) => getItinerary(transport, args, options),
2951
+ getItineraryExport: (args, options) => getItineraryExport(transport, args, options),
2952
+ getItineraryPace: (args, options) => getItineraryPace(transport, args, options),
2953
+ getItineraryShareLink: (args, options) => getItineraryShareLink(transport, args, options),
2954
+ patchItinerary: (args, options) => patchItinerary(transport, args, options),
2955
+ patchItinerarySegment: (args, options) => patchItinerarySegment(transport, args, options),
2956
+ patchItinerarySegmentGroup: (args, options) => patchItinerarySegmentGroup(transport, args, options),
2957
+ patchItineraryWaypoint: (args, options) => patchItineraryWaypoint(transport, args, options),
2958
+ postItinerary: (args, options) => postItinerary(transport, args, options),
2959
+ postItineraryDuplicate: (args, options) => postItineraryDuplicate(transport, args, options),
2960
+ postItineraryImport: (args, options) => postItineraryImport(transport, args, options),
2961
+ postItineraryPreview: (args, options) => postItineraryPreview(transport, args, options),
2962
+ postItineraryPublication: (args, options) => postItineraryPublication(transport, args, options),
2963
+ postItinerarySegment: (args, options) => postItinerarySegment(transport, args, options),
2964
+ postItinerarySegmentConvert: (args, options) => postItinerarySegmentConvert(transport, args, options),
2965
+ postItinerarySegmentGroup: (args, options) => postItinerarySegmentGroup(transport, args, options),
2966
+ postItinerarySegmentMerge: (args, options) => postItinerarySegmentMerge(transport, args, options),
2967
+ postItinerarySegmentSplit: (args, options) => postItinerarySegmentSplit(transport, args, options),
2968
+ postItineraryShareLink: (args, options) => postItineraryShareLink(transport, args, options),
2969
+ postItineraryShareLinkRotate: (args, options) => postItineraryShareLinkRotate(transport, args, options),
2970
+ postItineraryWaypoint: (args, options) => postItineraryWaypoint(transport, args, options)
2971
+ },
2972
+ layers: { getLayers: (args, options) => getLayers(transport, args, options) },
2973
+ organizations: { postOrganizationLookup: (args, options) => postOrganizationLookup(transport, args, options) },
2974
+ zones: {
2975
+ deleteZone: (args, options) => deleteZone(transport, args, options),
2976
+ deleteZonePublication: (args, options) => deleteZonePublication(transport, args, options),
2977
+ getZone: (args, options) => getZone(transport, args, options),
2978
+ getZones: (args, options) => getZones(transport, args, options),
2979
+ patchZone: (args, options) => patchZone(transport, args, options),
2980
+ postZone: (args, options) => postZone(transport, args, options),
2981
+ postZonePublication: (args, options) => postZonePublication(transport, args, options)
2982
+ }
2983
+ }
2984
+ });
2985
+ export { getOrganizationPublishableKey as $, parseRetryAfter as $n, postMyInvitationAccept as $t, getCollections as A, MountayaConnectionError as An, patchZone as At, getMyOrganizations as B, MountayaRateLimitError as Bn, postItineraryCollab as Bt, getAgentRunEvents as C, KEY_IN_USE_CODE as Cn, patchOrganization as Ct, getCollectionItineraries as D, MountayaBillingError as Dn, patchOrganizationPublishableKey as Dt, getCollection as E, MountayaBadRequestError as En, patchOrganizationMember as Et, getItineraryPace as F, MountayaIdempotentAnswerUnavailableError as Fn, postCollectionItineraries as Ft, getOrganizationBillingInvoices as G, entriesOf as Gn, postItinerarySegment as Gt, getOrganization as H, PAYMENT_REQUIRED_CODE as Hn, postItineraryImport as Ht, getItineraryShareLink as I, MountayaMethodNotAllowedError as In, postCollectionShareLink as It, getOrganizationBillingSubscription as J, errorFromResponse as Jn, postItinerarySegmentMerge as Jt, getOrganizationBillingPaymentMethods as K, errorForStatus as Kn, postItinerarySegmentConvert as Kt, getLayers as L, MountayaNotFoundError as Ln, postCollectionShareLinkRotate as Lt, getItinerary as M, MountayaError as Mn, postAgentRunFeedback as Mt, getItineraryEvents as N, MountayaForbiddenError as Nn, postAgentRunInput as Nt, getCollectionShareLink as O, MountayaConfigurationError as On, patchOrganizationSettings as Ot, getItineraryExport as P, MountayaIdempotencyKeyInUseError as Pn, postCollection as Pt, getOrganizationMembers as Q, metadataOf as Qn, postItineraryWaypoint as Qt, getMyInvitations as R, MountayaPayloadTooLargeError as Rn, postCollectionZones as Rt, getActivities as S, CEILING_CODE as Sn, patchMyPreferences as St, getBillingProducts as T, MountayaAuthenticationError as Tn, patchOrganizationBillingInfo as Tt, getOrganizationAiProviderConfig as U, answerDetailsOf as Un, postItineraryPreview as Ut, getMyPreferences as V, MountayaServerError as Vn, postItineraryDuplicate as Vt, getOrganizationBillingInfo as W, describeType as Wn, postItineraryPublication as Wt, getOrganizationInvitation as X, isMountayaApiError as Xn, postItineraryShareLink as Xt, getOrganizationEvents as Y, failureMessage as Yn, postItinerarySegmentSplit as Yt, getOrganizationInvitations as Z, isMountayaError as Zn, postItineraryShareLinkRotate as Zt, deleteOrganizationMember as _, restSchemaDates as _n, patchItinerary as _t, deleteCollectionZone as a, postOrganizationBillingProvision as an, getOrganizationWebhookDelivery as at, deleteZone as b, parseJsonWithDates as bn, patchItineraryWaypoint as bt, deleteItinerarySegment as c, postOrganizationLookup as cn, getOrganizationWebhookEvent as ct, deleteItineraryWaypoint as d, postOrganizationWebhookEndpoint as dn, getWebhookEventTypes as dt, postOrganization as en, refuseOption as er, getOrganizationPublishableKeys as et, deleteMyInvitation as f, postSession as fn, getZone as ft, deleteOrganizationInvitation as g, collabStreamEventDatesByType as gn, patchCollectionItinerary as gt, deleteOrganizationBillingSubscription as h, postZonePublication as hn, patchCollection as ht, deleteCollectionShareLink as i, postOrganizationBillingPaymentMethodSetup as in, getOrganizationWebhookDeliveries as it, getItineraries as j, MountayaDataError as jn, postAgentRun as jt, getCollectionZones as k, MountayaConflictError as kn, patchOrganizationWebhookEndpoint as kt, deleteItinerarySegmentGroup as l, postOrganizationPublishableKey as ln, getOrganizationWebhookEvents as lt, deleteOrganizationBillingPaymentMethod as m, postZoneCollab as mn, getZones as mt, deleteCollection as n, postOrganizationBillingPaymentMethod as nn, statesErrors as nr, getOrganizationUsageData as nt, deleteItinerary as o, postOrganizationBillingSubscription as on, getOrganizationWebhookEndpoint as ot, deleteOrganizationAiProviderConfig as p, postZone as pn, getZoneEvents as pt, getOrganizationBillingPromotionCode as q, errorFromBody as qn, postItinerarySegmentGroup as qt, deleteCollectionItinerary as r, postOrganizationBillingPaymentMethodSetDefault as rn, parseRateLimit as rr, getOrganizationUsageTiles as rt, deleteItineraryPublication as s, postOrganizationInvitation as sn, getOrganizationWebhookEndpoints as st, bind as t, postOrganizationAiProviderConfig as tn, replayedOf as tr, getOrganizationSettings as tt, deleteItineraryShareLink as u, postOrganizationWebhookDelivery as un, getOrganizationWebhookHealth as ut, deleteOrganizationPublishableKey as v, decodeDates as vn, patchItinerarySegment as vt, getAiProviders as w, MountayaApiError as wn, patchOrganizationAiProviderConfig as wt, deleteZonePublication as x, withAbsentNulls as xn, patchMyOrganizationNotificationPreferences as xt, deleteOrganizationWebhookEndpoint as y, instantOf as yn, patchItinerarySegmentGroup as yt, getMyOrganizationNotificationPreferences as z, MountayaPreconditionFailedError as zn, postItinerary as zt };
2986
+
2987
+ //# sourceMappingURL=chunk-Cg7Dtcb4.js.map