@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
@@ -1,3993 +0,0 @@
1
- import { a as MountayaTransport, ef as RequestOptions, g6 as operations, c as components, bS as BinaryBody } from './errors-B-GqAtQv.cjs';
2
-
3
- /**
4
- * SuccessBody extracts the JSON body of an operation's 2xx response: its 200, else its 201,
5
- * else its 202.
6
- *
7
- * The platform wraps every success in an envelope whose `data` carries the payload, so
8
- * this resolves to the envelope rather than to the bare resource: callers read
9
- * `result.data`, which is what the wire actually sends, `null` on a write that removes
10
- * something and has nothing left to answer. A 202 is read like the other two: an operation
11
- * that starts work rather than finishing it names what it started at `data`, and that is
12
- * typed only if this reaches it.
13
- */
14
- type SuccessBody<O> = O extends {
15
- responses: {
16
- 200: {
17
- content: {
18
- "application/json": infer B;
19
- };
20
- };
21
- };
22
- } ? B : O extends {
23
- responses: {
24
- 201: {
25
- content: {
26
- "application/json": infer C;
27
- };
28
- };
29
- };
30
- } ? C : O extends {
31
- responses: {
32
- 202: {
33
- content: {
34
- "application/json": infer D;
35
- };
36
- };
37
- };
38
- } ? D : unknown;
39
- /**
40
- * Delete a collection.
41
- * DELETE /v1/collections/{collection_id}
42
- * Requires a publishable key with the `studio-embedded` scope.
43
- * Acts as the user its session token was minted for, so the token must name one.
44
- */
45
- declare const deleteCollection: (transport: MountayaTransport, args: {
46
- readonly "collection_id": string;
47
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
48
- readonly idempotencyKey?: string | undefined;
49
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
50
- readonly ifMatch?: string | undefined;
51
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteCollection"]>>;
52
- /**
53
- * Remove an itinerary from a collection.
54
- * DELETE /v1/collections/{collection_id}/itineraries/{itinerary_id}
55
- * Requires a publishable key with the `studio-embedded` scope.
56
- * Acts as the user its session token was minted for, so the token must name one.
57
- */
58
- declare const deleteCollectionItinerary: (transport: MountayaTransport, args: {
59
- readonly "collection_id": string;
60
- readonly "itinerary_id": string;
61
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
62
- readonly idempotencyKey?: string | undefined;
63
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
64
- readonly ifMatch?: string | undefined;
65
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteCollectionItinerary"]>>;
66
- /**
67
- * Remove the collection's share link.
68
- * DELETE /v1/collections/{collection_id}/share-link
69
- * Requires a publishable key with the `studio-embedded` scope.
70
- * Acts as the user its session token was minted for, so the token must name one.
71
- */
72
- declare const deleteCollectionShareLink: (transport: MountayaTransport, args: {
73
- readonly "collection_id": string;
74
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
75
- readonly idempotencyKey?: string | undefined;
76
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteCollectionShareLink"]>>;
77
- /**
78
- * Remove a zone from a collection.
79
- * DELETE /v1/collections/{collection_id}/zones/{zone_id}
80
- * Requires a publishable key with the `studio-embedded` scope.
81
- * Acts as the user its session token was minted for, so the token must name one.
82
- */
83
- declare const deleteCollectionZone: (transport: MountayaTransport, args: {
84
- readonly "collection_id": string;
85
- readonly "zone_id": string;
86
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
87
- readonly idempotencyKey?: string | undefined;
88
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
89
- readonly ifMatch?: string | undefined;
90
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteCollectionZone"]>>;
91
- /**
92
- * Delete an itinerary.
93
- * DELETE /v1/itineraries/{itinerary_id}
94
- * Requires a publishable key with the `studio-embedded` scope.
95
- * Acts as the user its session token was minted for, so the token must name one.
96
- */
97
- declare const deleteItinerary: (transport: MountayaTransport, args: {
98
- readonly "itinerary_id": string;
99
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
100
- readonly idempotencyKey?: string | undefined;
101
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
102
- readonly ifMatch?: string | undefined;
103
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteItinerary"]>>;
104
- /**
105
- * Take the itinerary's publication down.
106
- * DELETE /v1/itineraries/{itinerary_id}/publication
107
- * Requires a publishable key with the `studio-embedded` scope.
108
- * Acts as the user its session token was minted for, so the token must name one.
109
- */
110
- declare const deleteItineraryPublication: (transport: MountayaTransport, args: {
111
- readonly "itinerary_id": string;
112
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
113
- readonly idempotencyKey?: string | undefined;
114
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
115
- readonly ifMatch?: string | undefined;
116
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteItineraryPublication"]>>;
117
- /**
118
- * Delete a segment from an itinerary.
119
- * DELETE /v1/itineraries/{itinerary_id}/segments/{segment_id}
120
- * Requires a publishable key with the `studio-embedded` scope.
121
- * Acts as the user its session token was minted for, so the token must name one.
122
- */
123
- declare const deleteItinerarySegment: (transport: MountayaTransport, args: {
124
- readonly "itinerary_id": string;
125
- readonly "segment_id": string;
126
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
127
- readonly idempotencyKey?: string | undefined;
128
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
129
- readonly ifMatch?: string | undefined;
130
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteItinerarySegment"]>>;
131
- /**
132
- * Delete a segment group.
133
- * DELETE /v1/itineraries/{itinerary_id}/segment-groups/{group_id}
134
- * Requires a publishable key with the `studio-embedded` scope.
135
- * Acts as the user its session token was minted for, so the token must name one.
136
- */
137
- declare const deleteItinerarySegmentGroup: (transport: MountayaTransport, args: {
138
- readonly "itinerary_id": string;
139
- readonly "group_id": string;
140
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
141
- readonly idempotencyKey?: string | undefined;
142
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
143
- readonly ifMatch?: string | undefined;
144
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteItinerarySegmentGroup"]>>;
145
- /**
146
- * Remove the itinerary's share link.
147
- * DELETE /v1/itineraries/{itinerary_id}/share-link
148
- * Requires a publishable key with the `studio-embedded` scope.
149
- * Acts as the user its session token was minted for, so the token must name one.
150
- */
151
- declare const deleteItineraryShareLink: (transport: MountayaTransport, args: {
152
- readonly "itinerary_id": string;
153
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
154
- readonly idempotencyKey?: string | undefined;
155
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteItineraryShareLink"]>>;
156
- /**
157
- * Delete a waypoint from an itinerary.
158
- * DELETE /v1/itineraries/{itinerary_id}/waypoints/{waypoint_id}
159
- * Requires a publishable key with the `studio-embedded` scope.
160
- * Acts as the user its session token was minted for, so the token must name one.
161
- */
162
- declare const deleteItineraryWaypoint: (transport: MountayaTransport, args: {
163
- readonly "itinerary_id": string;
164
- readonly "waypoint_id": string;
165
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
166
- readonly idempotencyKey?: string | undefined;
167
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
168
- readonly ifMatch?: string | undefined;
169
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteItineraryWaypoint"]>>;
170
- /**
171
- * Decline an invitation.
172
- * DELETE /v1/me/invitations/{invitation_id}
173
- * Requires a publishable key with the `studio-embedded` scope.
174
- * Acts as the user its session token was minted for, so the token must name one.
175
- */
176
- declare const deleteMyInvitation: (transport: MountayaTransport, args: {
177
- readonly "invitation_id": string;
178
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
179
- readonly idempotencyKey?: string | undefined;
180
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteMyInvitation"]>>;
181
- /**
182
- * Delete an organization's AI provider configuration.
183
- * DELETE /v1/organizations/{organization_id}/ai-provider-config
184
- * Requires a publishable key with the `management` scope.
185
- * Acts as the user its session token was minted for, so the token must name one.
186
- */
187
- declare const deleteOrganizationAiProviderConfig: (transport: MountayaTransport, args: {
188
- readonly "organization_id": string;
189
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
190
- readonly idempotencyKey?: string | undefined;
191
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
192
- readonly ifMatch?: string | undefined;
193
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationAiProviderConfig"]>>;
194
- /**
195
- * Detach a payment method from an organization.
196
- * DELETE /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}
197
- * Requires a publishable key with the `management` scope.
198
- * Acts as the user its session token was minted for, so the token must name one.
199
- */
200
- declare const deleteOrganizationBillingPaymentMethod: (transport: MountayaTransport, args: {
201
- readonly "organization_id": string;
202
- readonly "payment_method_id": string;
203
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
204
- readonly idempotencyKey?: string | undefined;
205
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationBillingPaymentMethod"]>>;
206
- /**
207
- * End an organization's Data API subscription at the end of its period.
208
- * DELETE /v1/organizations/{organization_id}/billing/subscription
209
- * Requires a publishable key with the `management` scope.
210
- * Acts as the user its session token was minted for, so the token must name one.
211
- */
212
- declare const deleteOrganizationBillingSubscription: (transport: MountayaTransport, args: {
213
- readonly "organization_id": string;
214
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
215
- readonly idempotencyKey?: string | undefined;
216
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationBillingSubscription"]>>;
217
- /**
218
- * Withdraw a pending invitation.
219
- * DELETE /v1/organizations/{organization_id}/invitations/{invitation_id}
220
- * Requires a publishable key with the `management` scope.
221
- * Acts as the user its session token was minted for, so the token must name one.
222
- */
223
- declare const deleteOrganizationInvitation: (transport: MountayaTransport, args: {
224
- readonly "organization_id": string;
225
- readonly "invitation_id": string;
226
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
227
- readonly idempotencyKey?: string | undefined;
228
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationInvitation"]>>;
229
- /**
230
- * Remove a member from an organization, or leave it.
231
- * DELETE /v1/organizations/{organization_id}/members/{user_id}
232
- * Requires a publishable key with the `management` scope.
233
- * Acts as the user its session token was minted for, so the token must name one.
234
- */
235
- declare const deleteOrganizationMember: (transport: MountayaTransport, args: {
236
- readonly "organization_id": string;
237
- readonly "user_id": string;
238
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
239
- readonly idempotencyKey?: string | undefined;
240
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationMember"]>>;
241
- /**
242
- * Revoke a publishable key.
243
- * DELETE /v1/organizations/{organization_id}/publishable-keys/{key_id}
244
- * Requires a publishable key with the `management` scope.
245
- * Acts as the user its session token was minted for, so the token must name one.
246
- */
247
- declare const deleteOrganizationPublishableKey: (transport: MountayaTransport, args: {
248
- readonly "organization_id": string;
249
- readonly "key_id": string;
250
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
251
- readonly idempotencyKey?: string | undefined;
252
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
253
- readonly ifMatch?: string | undefined;
254
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationPublishableKey"]>>;
255
- /**
256
- * Delete a webhook endpoint.
257
- * DELETE /v1/organizations/{organization_id}/webhook-endpoints/{webhook_endpoint_id}
258
- * Requires a publishable key with the `management` scope.
259
- * Acts as the user its session token was minted for, so the token must name one.
260
- */
261
- declare const deleteOrganizationWebhookEndpoint: (transport: MountayaTransport, args: {
262
- readonly "organization_id": string;
263
- readonly "webhook_endpoint_id": string;
264
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
265
- readonly idempotencyKey?: string | undefined;
266
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
267
- readonly ifMatch?: string | undefined;
268
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteOrganizationWebhookEndpoint"]>>;
269
- /**
270
- * Delete a zone.
271
- * DELETE /v1/zones/{zone_id}
272
- * Requires a publishable key with the `studio-embedded` scope.
273
- * Acts as the user its session token was minted for, so the token must name one.
274
- */
275
- declare const deleteZone: (transport: MountayaTransport, args: {
276
- readonly "zone_id": string;
277
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
278
- readonly idempotencyKey?: string | undefined;
279
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
280
- readonly ifMatch?: string | undefined;
281
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteZone"]>>;
282
- /**
283
- * Take the zone's publication down.
284
- * DELETE /v1/zones/{zone_id}/publication
285
- * Requires a publishable key with the `studio-embedded` scope.
286
- * Acts as the user its session token was minted for, so the token must name one.
287
- */
288
- declare const deleteZonePublication: (transport: MountayaTransport, args: {
289
- readonly "zone_id": string;
290
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
291
- readonly idempotencyKey?: string | undefined;
292
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
293
- readonly ifMatch?: string | undefined;
294
- }, options?: RequestOptions) => Promise<SuccessBody<operations["deleteZonePublication"]>>;
295
- /**
296
- * List all activity categories and their activities.
297
- * GET /v1/activities
298
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
299
- */
300
- declare const getActivities: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getActivities"]>>;
301
- /**
302
- * Stream an agent run's events over Server-Sent Events.
303
- * GET /v1/agent/runs/{run_id}/events
304
- * Requires a publishable key with the `studio-embedded` scope.
305
- * Acts as the user its session token was minted for, so the token must name one.
306
- */
307
- declare const getAgentRunEvents: (transport: MountayaTransport, args: {
308
- readonly "run_id": string;
309
- }, options?: RequestOptions) => Promise<BinaryBody>;
310
- /**
311
- * List the AI provider catalog.
312
- * GET /v1/ai-providers
313
- * Requires a publishable key with the `management` scope.
314
- */
315
- declare const getAiProviders: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getAiProviders"]>>;
316
- /**
317
- * List the billing catalog.
318
- * GET /v1/billing/products
319
- * Requires a publishable key with the `management` scope.
320
- */
321
- declare const getBillingProducts: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getBillingProducts"]>>;
322
- /**
323
- * Retrieve a single collection with its itineraries and zones.
324
- * GET /v1/collections/{collection_id}
325
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
326
- */
327
- declare const getCollection: (transport: MountayaTransport, args: {
328
- readonly "collection_id": string;
329
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getCollection"]>>;
330
- /**
331
- * List the itineraries a collection contains.
332
- * GET /v1/collections/{collection_id}/itineraries
333
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
334
- */
335
- declare const getCollectionItineraries: (transport: MountayaTransport, args: {
336
- readonly "collection_id": string;
337
- readonly query?: NonNullable<operations["getCollectionItineraries"]["parameters"]["query"]> | undefined;
338
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getCollectionItineraries"]>>;
339
- /**
340
- * List collections.
341
- * GET /v1/collections
342
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
343
- */
344
- declare const getCollections: (transport: MountayaTransport, args?: {
345
- readonly query?: NonNullable<operations["getCollections"]["parameters"]["query"]> | undefined;
346
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getCollections"]>>;
347
- /**
348
- * Read the collection's share link.
349
- * GET /v1/collections/{collection_id}/share-link
350
- * Requires a publishable key with the `studio-embedded` scope.
351
- * Acts as the user its session token was minted for, so the token must name one.
352
- */
353
- declare const getCollectionShareLink: (transport: MountayaTransport, args: {
354
- readonly "collection_id": string;
355
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getCollectionShareLink"]>>;
356
- /**
357
- * List the zones a collection contains.
358
- * GET /v1/collections/{collection_id}/zones
359
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
360
- */
361
- declare const getCollectionZones: (transport: MountayaTransport, args: {
362
- readonly "collection_id": string;
363
- readonly query?: NonNullable<operations["getCollectionZones"]["parameters"]["query"]> | undefined;
364
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getCollectionZones"]>>;
365
- /**
366
- * List the itineraries the credential reaches.
367
- * GET /v1/itineraries
368
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
369
- */
370
- declare const getItineraries: (transport: MountayaTransport, args?: {
371
- readonly query?: NonNullable<operations["getItineraries"]["parameters"]["query"]> | undefined;
372
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getItineraries"]>>;
373
- /**
374
- * Retrieve a single itinerary with its segments and waypoints.
375
- * GET /v1/itineraries/{itinerary_id}
376
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
377
- */
378
- declare const getItinerary: (transport: MountayaTransport, args: {
379
- readonly "itinerary_id": string;
380
- readonly query?: NonNullable<operations["getItinerary"]["parameters"]["query"]> | undefined;
381
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getItinerary"]>>;
382
- /**
383
- * Stream one itinerary's collaboration session over SSE.
384
- * GET /v1/itineraries/{itinerary_id}/events
385
- * Requires a publishable key with the `studio-embedded` scope.
386
- * Acts as the user its session token was minted for, so the token must name one.
387
- */
388
- declare const getItineraryEvents: (transport: MountayaTransport, args: {
389
- readonly "itinerary_id": string;
390
- }, options?: RequestOptions) => Promise<BinaryBody>;
391
- /**
392
- * Export an itinerary as a downloadable file.
393
- * GET /v1/itineraries/{itinerary_id}/export
394
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
395
- */
396
- declare const getItineraryExport: (transport: MountayaTransport, args: {
397
- readonly "itinerary_id": string;
398
- readonly query?: NonNullable<operations["getItineraryExport"]["parameters"]["query"]> | undefined;
399
- }, options?: RequestOptions) => Promise<BinaryBody>;
400
- /**
401
- * Re-time an itinerary at a travel pace the caller names.
402
- * GET /v1/itineraries/{itinerary_id}/pace
403
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
404
- */
405
- declare const getItineraryPace: (transport: MountayaTransport, args: {
406
- readonly "itinerary_id": string;
407
- readonly query?: NonNullable<operations["getItineraryPace"]["parameters"]["query"]> | undefined;
408
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getItineraryPace"]>>;
409
- /**
410
- * Read the itinerary's share link.
411
- * GET /v1/itineraries/{itinerary_id}/share-link
412
- * Requires a publishable key with the `studio-embedded` scope.
413
- * Acts as the user its session token was minted for, so the token must name one.
414
- */
415
- declare const getItineraryShareLink: (transport: MountayaTransport, args: {
416
- readonly "itinerary_id": string;
417
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getItineraryShareLink"]>>;
418
- /**
419
- * List terrains, overlays, and the zone layer.
420
- * GET /v1/layers
421
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
422
- */
423
- declare const getLayers: (transport: MountayaTransport, args?: {
424
- readonly query?: NonNullable<operations["getLayers"]["parameters"]["query"]> | undefined;
425
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getLayers"]>>;
426
- /**
427
- * List the invitations waiting for the acting user.
428
- * GET /v1/me/invitations
429
- * Requires a publishable key with the `studio-embedded` scope.
430
- * Acts as the user its session token was minted for, so the token must name one.
431
- */
432
- declare const getMyInvitations: (transport: MountayaTransport, args?: {
433
- readonly query?: NonNullable<operations["getMyInvitations"]["parameters"]["query"]> | undefined;
434
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getMyInvitations"]>>;
435
- /**
436
- * Retrieve the acting user's notification emails for an organization.
437
- * GET /v1/me/organizations/{organization_id}/notification-preferences
438
- * Requires a publishable key with the `studio-embedded` scope.
439
- * Acts as the user its session token was minted for, so the token must name one.
440
- */
441
- declare const getMyOrganizationNotificationPreferences: (transport: MountayaTransport, args: {
442
- readonly "organization_id": string;
443
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getMyOrganizationNotificationPreferences"]>>;
444
- /**
445
- * List the acting user's memberships.
446
- * GET /v1/me/organizations
447
- * Requires a publishable key with the `studio-embedded` scope.
448
- * Acts as the user its session token was minted for, so the token must name one.
449
- */
450
- declare const getMyOrganizations: (transport: MountayaTransport, args?: {
451
- readonly query?: NonNullable<operations["getMyOrganizations"]["parameters"]["query"]> | undefined;
452
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getMyOrganizations"]>>;
453
- /**
454
- * Retrieve the acting user's display preferences.
455
- * GET /v1/me/preferences
456
- * Requires a publishable key with the `studio-embedded` scope.
457
- * Acts as the user its session token was minted for, so the token must name one.
458
- */
459
- declare const getMyPreferences: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getMyPreferences"]>>;
460
- /**
461
- * Retrieve an organization.
462
- * GET /v1/organizations/{organization_id}
463
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
464
- */
465
- declare const getOrganization: (transport: MountayaTransport, args: {
466
- readonly "organization_id": string;
467
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganization"]>>;
468
- /**
469
- * Retrieve an organization's AI provider configuration.
470
- * GET /v1/organizations/{organization_id}/ai-provider-config
471
- * Requires a publishable key with the `management` scope.
472
- */
473
- declare const getOrganizationAiProviderConfig: (transport: MountayaTransport, args: {
474
- readonly "organization_id": string;
475
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationAiProviderConfig"]>>;
476
- /**
477
- * Retrieve an organization's billing information.
478
- * GET /v1/organizations/{organization_id}/billing/info
479
- * Requires a publishable key with the `management` scope.
480
- */
481
- declare const getOrganizationBillingInfo: (transport: MountayaTransport, args: {
482
- readonly "organization_id": string;
483
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationBillingInfo"]>>;
484
- /**
485
- * List an organization's invoices.
486
- * GET /v1/organizations/{organization_id}/billing/invoices
487
- * Requires a publishable key with the `management` scope.
488
- */
489
- declare const getOrganizationBillingInvoices: (transport: MountayaTransport, args: {
490
- readonly "organization_id": string;
491
- readonly query?: NonNullable<operations["getOrganizationBillingInvoices"]["parameters"]["query"]> | undefined;
492
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationBillingInvoices"]>>;
493
- /**
494
- * List an organization's saved payment methods.
495
- * GET /v1/organizations/{organization_id}/billing/payment-methods
496
- * Requires a publishable key with the `management` scope.
497
- */
498
- declare const getOrganizationBillingPaymentMethods: (transport: MountayaTransport, args: {
499
- readonly "organization_id": string;
500
- readonly query?: NonNullable<operations["getOrganizationBillingPaymentMethods"]["parameters"]["query"]> | undefined;
501
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationBillingPaymentMethods"]>>;
502
- /**
503
- * Check what a promotion code is worth to an organization.
504
- * GET /v1/organizations/{organization_id}/billing/promotion-codes/{code}
505
- * Requires a publishable key with the `management` scope.
506
- */
507
- declare const getOrganizationBillingPromotionCode: (transport: MountayaTransport, args: {
508
- readonly "organization_id": string;
509
- readonly "code": string;
510
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationBillingPromotionCode"]>>;
511
- /**
512
- * Retrieve an organization's subscription.
513
- * GET /v1/organizations/{organization_id}/billing/subscription
514
- * Requires a publishable key with the `management` scope.
515
- */
516
- declare const getOrganizationBillingSubscription: (transport: MountayaTransport, args: {
517
- readonly "organization_id": string;
518
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationBillingSubscription"]>>;
519
- /**
520
- * Stream an organization's list events over SSE.
521
- * GET /v1/organizations/{organization_id}/events
522
- * Requires a publishable key with the `studio-embedded` scope.
523
- * Acts as the user its session token was minted for, so the token must name one.
524
- */
525
- declare const getOrganizationEvents: (transport: MountayaTransport, args: {
526
- readonly "organization_id": string;
527
- }, options?: RequestOptions) => Promise<BinaryBody>;
528
- /**
529
- * Retrieve a pending invitation.
530
- * GET /v1/organizations/{organization_id}/invitations/{invitation_id}
531
- * Requires a publishable key with the `management` scope.
532
- */
533
- declare const getOrganizationInvitation: (transport: MountayaTransport, args: {
534
- readonly "organization_id": string;
535
- readonly "invitation_id": string;
536
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationInvitation"]>>;
537
- /**
538
- * List an organization's pending invitations.
539
- * GET /v1/organizations/{organization_id}/invitations
540
- * Requires a publishable key with the `management` scope.
541
- */
542
- declare const getOrganizationInvitations: (transport: MountayaTransport, args: {
543
- readonly "organization_id": string;
544
- readonly query?: NonNullable<operations["getOrganizationInvitations"]["parameters"]["query"]> | undefined;
545
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationInvitations"]>>;
546
- /**
547
- * List an organization's members.
548
- * GET /v1/organizations/{organization_id}/members
549
- * Requires a publishable key with the `management` scope.
550
- */
551
- declare const getOrganizationMembers: (transport: MountayaTransport, args: {
552
- readonly "organization_id": string;
553
- readonly query?: NonNullable<operations["getOrganizationMembers"]["parameters"]["query"]> | undefined;
554
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationMembers"]>>;
555
- /**
556
- * Retrieve a publishable key.
557
- * GET /v1/organizations/{organization_id}/publishable-keys/{key_id}
558
- * Requires a publishable key with the `management` scope.
559
- */
560
- declare const getOrganizationPublishableKey: (transport: MountayaTransport, args: {
561
- readonly "organization_id": string;
562
- readonly "key_id": string;
563
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationPublishableKey"]>>;
564
- /**
565
- * List an organization's publishable keys.
566
- * GET /v1/organizations/{organization_id}/publishable-keys
567
- * Requires a publishable key with the `management` scope.
568
- */
569
- declare const getOrganizationPublishableKeys: (transport: MountayaTransport, args: {
570
- readonly "organization_id": string;
571
- readonly query?: NonNullable<operations["getOrganizationPublishableKeys"]["parameters"]["query"]> | undefined;
572
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationPublishableKeys"]>>;
573
- /**
574
- * Retrieve an organization's Map Publishing settings.
575
- * GET /v1/organizations/{organization_id}/settings
576
- * Requires a publishable key with the `management` scope.
577
- */
578
- declare const getOrganizationSettings: (transport: MountayaTransport, args: {
579
- readonly "organization_id": string;
580
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationSettings"]>>;
581
- /**
582
- * Retrieve an organization's data usage.
583
- * GET /v1/organizations/{organization_id}/usage/data
584
- * Requires a publishable key with the `management` scope.
585
- */
586
- declare const getOrganizationUsageData: (transport: MountayaTransport, args: {
587
- readonly "organization_id": string;
588
- readonly query?: NonNullable<operations["getOrganizationUsageData"]["parameters"]["query"]> | undefined;
589
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationUsageData"]>>;
590
- /**
591
- * Retrieve an organization's Tile API usage.
592
- * GET /v1/organizations/{organization_id}/usage/tiles
593
- * Requires a publishable key with the `management` scope.
594
- */
595
- declare const getOrganizationUsageTiles: (transport: MountayaTransport, args: {
596
- readonly "organization_id": string;
597
- readonly query?: NonNullable<operations["getOrganizationUsageTiles"]["parameters"]["query"]> | undefined;
598
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationUsageTiles"]>>;
599
- /**
600
- * List an organization's webhook deliveries.
601
- * GET /v1/organizations/{organization_id}/webhook-deliveries
602
- * Requires a publishable key with the `management` scope.
603
- */
604
- declare const getOrganizationWebhookDeliveries: (transport: MountayaTransport, args: {
605
- readonly "organization_id": string;
606
- readonly query?: NonNullable<operations["getOrganizationWebhookDeliveries"]["parameters"]["query"]> | undefined;
607
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookDeliveries"]>>;
608
- /**
609
- * Retrieve a webhook delivery with its attempts.
610
- * GET /v1/organizations/{organization_id}/webhook-deliveries/{delivery_id}
611
- * Requires a publishable key with the `management` scope.
612
- */
613
- declare const getOrganizationWebhookDelivery: (transport: MountayaTransport, args: {
614
- readonly "organization_id": string;
615
- readonly "delivery_id": string;
616
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookDelivery"]>>;
617
- /**
618
- * Retrieve a webhook endpoint.
619
- * GET /v1/organizations/{organization_id}/webhook-endpoints/{webhook_endpoint_id}
620
- * Requires a publishable key with the `management` scope.
621
- */
622
- declare const getOrganizationWebhookEndpoint: (transport: MountayaTransport, args: {
623
- readonly "organization_id": string;
624
- readonly "webhook_endpoint_id": string;
625
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookEndpoint"]>>;
626
- /**
627
- * List an organization's webhook endpoints.
628
- * GET /v1/organizations/{organization_id}/webhook-endpoints
629
- * Requires a publishable key with the `management` scope.
630
- */
631
- declare const getOrganizationWebhookEndpoints: (transport: MountayaTransport, args: {
632
- readonly "organization_id": string;
633
- readonly query?: NonNullable<operations["getOrganizationWebhookEndpoints"]["parameters"]["query"]> | undefined;
634
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookEndpoints"]>>;
635
- /**
636
- * Retrieve a webhook event with its deliveries.
637
- * GET /v1/organizations/{organization_id}/webhook-events/{event_id}
638
- * Requires a publishable key with the `management` scope.
639
- */
640
- declare const getOrganizationWebhookEvent: (transport: MountayaTransport, args: {
641
- readonly "organization_id": string;
642
- readonly "event_id": string;
643
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookEvent"]>>;
644
- /**
645
- * List an organization's webhook events.
646
- * GET /v1/organizations/{organization_id}/webhook-events
647
- * Requires a publishable key with the `management` scope.
648
- */
649
- declare const getOrganizationWebhookEvents: (transport: MountayaTransport, args: {
650
- readonly "organization_id": string;
651
- readonly query?: NonNullable<operations["getOrganizationWebhookEvents"]["parameters"]["query"]> | undefined;
652
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookEvents"]>>;
653
- /**
654
- * Retrieve the reliability of an organization's webhooks.
655
- * GET /v1/organizations/{organization_id}/webhook-health
656
- * Requires a publishable key with the `management` scope.
657
- */
658
- declare const getOrganizationWebhookHealth: (transport: MountayaTransport, args: {
659
- readonly "organization_id": string;
660
- readonly query?: NonNullable<operations["getOrganizationWebhookHealth"]["parameters"]["query"]> | undefined;
661
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getOrganizationWebhookHealth"]>>;
662
- /**
663
- * List the public webhook event types.
664
- * GET /v1/webhook-event-types
665
- * Requires a publishable key with the `management` scope.
666
- */
667
- declare const getWebhookEventTypes: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getWebhookEventTypes"]>>;
668
- /**
669
- * Retrieve a single zone with its geometry.
670
- * GET /v1/zones/{zone_id}
671
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
672
- */
673
- declare const getZone: (transport: MountayaTransport, args: {
674
- readonly "zone_id": string;
675
- readonly query?: NonNullable<operations["getZone"]["parameters"]["query"]> | undefined;
676
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getZone"]>>;
677
- /**
678
- * Stream one zone's collaboration session over SSE.
679
- * GET /v1/zones/{zone_id}/events
680
- * Requires a publishable key with the `studio-embedded` scope.
681
- * Acts as the user its session token was minted for, so the token must name one.
682
- */
683
- declare const getZoneEvents: (transport: MountayaTransport, args: {
684
- readonly "zone_id": string;
685
- }, options?: RequestOptions) => Promise<BinaryBody>;
686
- /**
687
- * List zones.
688
- * GET /v1/zones
689
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
690
- */
691
- declare const getZones: (transport: MountayaTransport, args?: {
692
- readonly query?: NonNullable<operations["getZones"]["parameters"]["query"]> | undefined;
693
- }, options?: RequestOptions) => Promise<SuccessBody<operations["getZones"]>>;
694
- /**
695
- * Update an existing collection.
696
- * PATCH /v1/collections/{collection_id}
697
- * Requires a publishable key with the `studio-embedded` scope.
698
- * Acts as the user its session token was minted for, so the token must name one.
699
- */
700
- declare const patchCollection: (transport: MountayaTransport, args: {
701
- readonly "collection_id": string;
702
- readonly body: operations["patchCollection"]["requestBody"] extends {
703
- content: {
704
- "application/json": infer B;
705
- };
706
- } ? B : never;
707
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
708
- readonly idempotencyKey?: string | undefined;
709
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
710
- readonly ifMatch?: string | undefined;
711
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchCollection"]>>;
712
- /**
713
- * Set an itinerary's position within a collection.
714
- * PATCH /v1/collections/{collection_id}/itineraries/{itinerary_id}
715
- * Requires a publishable key with the `studio-embedded` scope.
716
- * Acts as the user its session token was minted for, so the token must name one.
717
- */
718
- declare const patchCollectionItinerary: (transport: MountayaTransport, args: {
719
- readonly "collection_id": string;
720
- readonly "itinerary_id": string;
721
- readonly body: operations["patchCollectionItinerary"]["requestBody"] extends {
722
- content: {
723
- "application/json": infer B;
724
- };
725
- } ? B : never;
726
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
727
- readonly idempotencyKey?: string | undefined;
728
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
729
- readonly ifMatch?: string | undefined;
730
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchCollectionItinerary"]>>;
731
- /**
732
- * Update an existing itinerary.
733
- * PATCH /v1/itineraries/{itinerary_id}
734
- * Requires a publishable key with the `studio-embedded` scope.
735
- * Acts as the user its session token was minted for, so the token must name one.
736
- */
737
- declare const patchItinerary: (transport: MountayaTransport, args: {
738
- readonly "itinerary_id": string;
739
- readonly body: operations["patchItinerary"]["requestBody"] extends {
740
- content: {
741
- "application/json": infer B;
742
- };
743
- } ? B : never;
744
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
745
- readonly idempotencyKey?: string | undefined;
746
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
747
- readonly ifMatch?: string | undefined;
748
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchItinerary"]>>;
749
- /**
750
- * Update an existing segment.
751
- * PATCH /v1/itineraries/{itinerary_id}/segments/{segment_id}
752
- * Requires a publishable key with the `studio-embedded` scope.
753
- * Acts as the user its session token was minted for, so the token must name one.
754
- */
755
- declare const patchItinerarySegment: (transport: MountayaTransport, args: {
756
- readonly "itinerary_id": string;
757
- readonly "segment_id": string;
758
- readonly body: operations["patchItinerarySegment"]["requestBody"] extends {
759
- content: {
760
- "application/json": infer B;
761
- };
762
- } ? B : never;
763
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
764
- readonly idempotencyKey?: string | undefined;
765
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
766
- readonly ifMatch?: string | undefined;
767
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchItinerarySegment"]>>;
768
- /**
769
- * Update a segment group.
770
- * PATCH /v1/itineraries/{itinerary_id}/segment-groups/{group_id}
771
- * Requires a publishable key with the `studio-embedded` scope.
772
- * Acts as the user its session token was minted for, so the token must name one.
773
- */
774
- declare const patchItinerarySegmentGroup: (transport: MountayaTransport, args: {
775
- readonly "itinerary_id": string;
776
- readonly "group_id": string;
777
- readonly body: operations["patchItinerarySegmentGroup"]["requestBody"] extends {
778
- content: {
779
- "application/json": infer B;
780
- };
781
- } ? B : never;
782
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
783
- readonly idempotencyKey?: string | undefined;
784
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
785
- readonly ifMatch?: string | undefined;
786
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchItinerarySegmentGroup"]>>;
787
- /**
788
- * Update an existing waypoint.
789
- * PATCH /v1/itineraries/{itinerary_id}/waypoints/{waypoint_id}
790
- * Requires a publishable key with the `studio-embedded` scope.
791
- * Acts as the user its session token was minted for, so the token must name one.
792
- */
793
- declare const patchItineraryWaypoint: (transport: MountayaTransport, args: {
794
- readonly "itinerary_id": string;
795
- readonly "waypoint_id": string;
796
- readonly body: operations["patchItineraryWaypoint"]["requestBody"] extends {
797
- content: {
798
- "application/json": infer B;
799
- };
800
- } ? B : never;
801
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
802
- readonly idempotencyKey?: string | undefined;
803
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
804
- readonly ifMatch?: string | undefined;
805
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchItineraryWaypoint"]>>;
806
- /**
807
- * Turn the acting user's notification emails for an organization on or off.
808
- * PATCH /v1/me/organizations/{organization_id}/notification-preferences
809
- * Requires a publishable key with the `studio-embedded` scope.
810
- * Acts as the user its session token was minted for, so the token must name one.
811
- */
812
- declare const patchMyOrganizationNotificationPreferences: (transport: MountayaTransport, args: {
813
- readonly "organization_id": string;
814
- readonly body: operations["patchMyOrganizationNotificationPreferences"]["requestBody"] extends {
815
- content: {
816
- "application/json": infer B;
817
- };
818
- } ? B : never;
819
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
820
- readonly idempotencyKey?: string | undefined;
821
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchMyOrganizationNotificationPreferences"]>>;
822
- /**
823
- * Update the acting user's display preferences.
824
- * PATCH /v1/me/preferences
825
- * Requires a publishable key with the `studio-embedded` scope.
826
- * Acts as the user its session token was minted for, so the token must name one.
827
- */
828
- declare const patchMyPreferences: (transport: MountayaTransport, args: {
829
- readonly body: operations["patchMyPreferences"]["requestBody"] extends {
830
- content: {
831
- "application/json": infer B;
832
- };
833
- } ? B : never;
834
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
835
- readonly idempotencyKey?: string | undefined;
836
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchMyPreferences"]>>;
837
- /**
838
- * Update an organization.
839
- * PATCH /v1/organizations/{organization_id}
840
- * Requires a publishable key with the `management` scope.
841
- * Acts as the user its session token was minted for, so the token must name one.
842
- */
843
- declare const patchOrganization: (transport: MountayaTransport, args: {
844
- readonly "organization_id": string;
845
- readonly body: operations["patchOrganization"]["requestBody"] extends {
846
- content: {
847
- "application/json": infer B;
848
- };
849
- } ? B : never;
850
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
851
- readonly idempotencyKey?: string | undefined;
852
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
853
- readonly ifMatch?: string | undefined;
854
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganization"]>>;
855
- /**
856
- * Update an organization's AI provider configuration.
857
- * PATCH /v1/organizations/{organization_id}/ai-provider-config
858
- * Requires a publishable key with the `management` scope.
859
- * Acts as the user its session token was minted for, so the token must name one.
860
- */
861
- declare const patchOrganizationAiProviderConfig: (transport: MountayaTransport, args: {
862
- readonly "organization_id": string;
863
- readonly body: operations["patchOrganizationAiProviderConfig"]["requestBody"] extends {
864
- content: {
865
- "application/json": infer B;
866
- };
867
- } ? B : never;
868
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
869
- readonly idempotencyKey?: string | undefined;
870
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
871
- readonly ifMatch?: string | undefined;
872
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganizationAiProviderConfig"]>>;
873
- /**
874
- * Update an organization's billing information.
875
- * PATCH /v1/organizations/{organization_id}/billing/info
876
- * Requires a publishable key with the `management` scope.
877
- * Acts as the user its session token was minted for, so the token must name one.
878
- */
879
- declare const patchOrganizationBillingInfo: (transport: MountayaTransport, args: {
880
- readonly "organization_id": string;
881
- readonly body: operations["patchOrganizationBillingInfo"]["requestBody"] extends {
882
- content: {
883
- "application/json": infer B;
884
- };
885
- } ? B : never;
886
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
887
- readonly idempotencyKey?: string | undefined;
888
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganizationBillingInfo"]>>;
889
- /**
890
- * Change a member's role.
891
- * PATCH /v1/organizations/{organization_id}/members/{user_id}
892
- * Requires a publishable key with the `management` scope.
893
- * Acts as the user its session token was minted for, so the token must name one.
894
- */
895
- declare const patchOrganizationMember: (transport: MountayaTransport, args: {
896
- readonly "organization_id": string;
897
- readonly "user_id": string;
898
- readonly body: operations["patchOrganizationMember"]["requestBody"] extends {
899
- content: {
900
- "application/json": infer B;
901
- };
902
- } ? B : never;
903
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
904
- readonly idempotencyKey?: string | undefined;
905
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganizationMember"]>>;
906
- /**
907
- * Update a publishable key's name or scopes.
908
- * PATCH /v1/organizations/{organization_id}/publishable-keys/{key_id}
909
- * Requires a publishable key with the `management` scope.
910
- * Acts as the user its session token was minted for, so the token must name one.
911
- */
912
- declare const patchOrganizationPublishableKey: (transport: MountayaTransport, args: {
913
- readonly "organization_id": string;
914
- readonly "key_id": string;
915
- readonly body: operations["patchOrganizationPublishableKey"]["requestBody"] extends {
916
- content: {
917
- "application/json": infer B;
918
- };
919
- } ? B : never;
920
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
921
- readonly idempotencyKey?: string | undefined;
922
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
923
- readonly ifMatch?: string | undefined;
924
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganizationPublishableKey"]>>;
925
- /**
926
- * Update an organization's Map Publishing settings.
927
- * PATCH /v1/organizations/{organization_id}/settings
928
- * Requires a publishable key with the `management` scope.
929
- * Acts as the user its session token was minted for, so the token must name one.
930
- */
931
- declare const patchOrganizationSettings: (transport: MountayaTransport, args: {
932
- readonly "organization_id": string;
933
- readonly body: operations["patchOrganizationSettings"]["requestBody"] extends {
934
- content: {
935
- "application/json": infer B;
936
- };
937
- } ? B : never;
938
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
939
- readonly idempotencyKey?: string | undefined;
940
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
941
- readonly ifMatch?: string | undefined;
942
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganizationSettings"]>>;
943
- /**
944
- * Update a webhook endpoint.
945
- * PATCH /v1/organizations/{organization_id}/webhook-endpoints/{webhook_endpoint_id}
946
- * Requires a publishable key with the `management` scope.
947
- * Acts as the user its session token was minted for, so the token must name one.
948
- */
949
- declare const patchOrganizationWebhookEndpoint: (transport: MountayaTransport, args: {
950
- readonly "organization_id": string;
951
- readonly "webhook_endpoint_id": string;
952
- readonly body: operations["patchOrganizationWebhookEndpoint"]["requestBody"] extends {
953
- content: {
954
- "application/json": infer B;
955
- };
956
- } ? B : never;
957
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
958
- readonly idempotencyKey?: string | undefined;
959
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
960
- readonly ifMatch?: string | undefined;
961
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchOrganizationWebhookEndpoint"]>>;
962
- /**
963
- * Update an existing zone.
964
- * PATCH /v1/zones/{zone_id}
965
- * Requires a publishable key with the `studio-embedded` scope.
966
- * Acts as the user its session token was minted for, so the token must name one.
967
- */
968
- declare const patchZone: (transport: MountayaTransport, args: {
969
- readonly "zone_id": string;
970
- readonly body: operations["patchZone"]["requestBody"] extends {
971
- content: {
972
- "application/json": infer B;
973
- };
974
- } ? B : never;
975
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
976
- readonly idempotencyKey?: string | undefined;
977
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
978
- readonly ifMatch?: string | undefined;
979
- }, options?: RequestOptions) => Promise<SuccessBody<operations["patchZone"]>>;
980
- /**
981
- * Start a new agent run.
982
- * POST /v1/agent/runs
983
- * Requires a publishable key with the `studio-embedded` scope.
984
- * Acts as the user its session token was minted for, so the token must name one.
985
- */
986
- declare const postAgentRun: (transport: MountayaTransport, args: {
987
- readonly body: operations["postAgentRun"]["requestBody"] extends {
988
- content: {
989
- "application/json": infer B;
990
- };
991
- } ? B : never;
992
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
993
- readonly idempotencyKey?: string | undefined;
994
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postAgentRun"]>>;
995
- /**
996
- * Record the user's rating of one assistant message in a run.
997
- * POST /v1/agent/runs/{run_id}/feedback
998
- * Requires a publishable key with the `studio-embedded` scope.
999
- * Acts as the user its session token was minted for, so the token must name one.
1000
- */
1001
- declare const postAgentRunFeedback: (transport: MountayaTransport, args: {
1002
- readonly "run_id": string;
1003
- readonly body: operations["postAgentRunFeedback"]["requestBody"] extends {
1004
- content: {
1005
- "application/json": infer B;
1006
- };
1007
- } ? B : never;
1008
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1009
- readonly idempotencyKey?: string | undefined;
1010
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postAgentRunFeedback"]>>;
1011
- /**
1012
- * Send an input signal into a running agent run.
1013
- * POST /v1/agent/runs/{run_id}/input
1014
- * Requires a publishable key with the `studio-embedded` scope.
1015
- * Acts as the user its session token was minted for, so the token must name one.
1016
- */
1017
- declare const postAgentRunInput: (transport: MountayaTransport, args: {
1018
- readonly "run_id": string;
1019
- readonly body: operations["postAgentRunInput"]["requestBody"] extends {
1020
- content: {
1021
- "application/json": infer B;
1022
- };
1023
- } ? B : never;
1024
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1025
- readonly idempotencyKey?: string | undefined;
1026
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postAgentRunInput"]>>;
1027
- /**
1028
- * Create a new collection.
1029
- * POST /v1/collections
1030
- * Requires a publishable key with the `studio-embedded` scope.
1031
- * Acts as the user its session token was minted for, so the token must name one.
1032
- */
1033
- declare const postCollection: (transport: MountayaTransport, args: {
1034
- readonly body: operations["postCollection"]["requestBody"] extends {
1035
- content: {
1036
- "application/json": infer B;
1037
- };
1038
- } ? B : never;
1039
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1040
- readonly idempotencyKey?: string | undefined;
1041
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postCollection"]>>;
1042
- /**
1043
- * Add itineraries to a collection.
1044
- * POST /v1/collections/{collection_id}/itineraries
1045
- * Requires a publishable key with the `studio-embedded` scope.
1046
- * Acts as the user its session token was minted for, so the token must name one.
1047
- */
1048
- declare const postCollectionItineraries: (transport: MountayaTransport, args: {
1049
- readonly "collection_id": string;
1050
- readonly body: operations["postCollectionItineraries"]["requestBody"] extends {
1051
- content: {
1052
- "application/json": infer B;
1053
- };
1054
- } ? B : never;
1055
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1056
- readonly idempotencyKey?: string | undefined;
1057
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1058
- readonly ifMatch?: string | undefined;
1059
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postCollectionItineraries"]>>;
1060
- /**
1061
- * Mint the collection's share link, or return the one it has.
1062
- * POST /v1/collections/{collection_id}/share-link
1063
- * Requires a publishable key with the `studio-embedded` scope.
1064
- * Acts as the user its session token was minted for, so the token must name one.
1065
- */
1066
- declare const postCollectionShareLink: (transport: MountayaTransport, args: {
1067
- readonly "collection_id": string;
1068
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1069
- readonly idempotencyKey?: string | undefined;
1070
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postCollectionShareLink"]>>;
1071
- /**
1072
- * Rotate the collection's share link.
1073
- * POST /v1/collections/{collection_id}/share-link/rotate
1074
- * Requires a publishable key with the `studio-embedded` scope.
1075
- * Acts as the user its session token was minted for, so the token must name one.
1076
- */
1077
- declare const postCollectionShareLinkRotate: (transport: MountayaTransport, args: {
1078
- readonly "collection_id": string;
1079
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1080
- readonly idempotencyKey?: string | undefined;
1081
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postCollectionShareLinkRotate"]>>;
1082
- /**
1083
- * Add zones to a collection.
1084
- * POST /v1/collections/{collection_id}/zones
1085
- * Requires a publishable key with the `studio-embedded` scope.
1086
- * Acts as the user its session token was minted for, so the token must name one.
1087
- */
1088
- declare const postCollectionZones: (transport: MountayaTransport, args: {
1089
- readonly "collection_id": string;
1090
- readonly body: operations["postCollectionZones"]["requestBody"] extends {
1091
- content: {
1092
- "application/json": infer B;
1093
- };
1094
- } ? B : never;
1095
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1096
- readonly idempotencyKey?: string | undefined;
1097
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1098
- readonly ifMatch?: string | undefined;
1099
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postCollectionZones"]>>;
1100
- /**
1101
- * Create a new itinerary.
1102
- * POST /v1/itineraries
1103
- * Requires a publishable key with the `studio-embedded` scope.
1104
- * Acts as the user its session token was minted for, so the token must name one.
1105
- */
1106
- declare const postItinerary: (transport: MountayaTransport, args: {
1107
- readonly body: operations["postItinerary"]["requestBody"] extends {
1108
- content: {
1109
- "application/json": infer B;
1110
- };
1111
- } ? B : never;
1112
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1113
- readonly idempotencyKey?: string | undefined;
1114
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItinerary"]>>;
1115
- /**
1116
- * Send a collaboration signal into an itinerary's session.
1117
- * POST /v1/itineraries/{itinerary_id}/collab
1118
- * Requires a publishable key with the `studio-embedded` scope.
1119
- * Acts as the user its session token was minted for, so the token must name one.
1120
- */
1121
- declare const postItineraryCollab: (transport: MountayaTransport, args: {
1122
- readonly "itinerary_id": string;
1123
- readonly body: operations["postItineraryCollab"]["requestBody"] extends {
1124
- content: {
1125
- "application/json": infer B;
1126
- };
1127
- } ? B : never;
1128
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryCollab"]>>;
1129
- /**
1130
- * Duplicate an itinerary into the key's organization.
1131
- * POST /v1/itineraries/{itinerary_id}/duplicate
1132
- * Requires a publishable key with the `studio-embedded` scope.
1133
- * Acts as the user its session token was minted for, so the token must name one.
1134
- */
1135
- declare const postItineraryDuplicate: (transport: MountayaTransport, args: {
1136
- readonly "itinerary_id": string;
1137
- readonly query?: NonNullable<operations["postItineraryDuplicate"]["parameters"]["query"]> | undefined;
1138
- readonly body: operations["postItineraryDuplicate"]["requestBody"] extends {
1139
- content: {
1140
- "application/json": infer B;
1141
- };
1142
- } ? B : never;
1143
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1144
- readonly idempotencyKey?: string | undefined;
1145
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryDuplicate"]>>;
1146
- /**
1147
- * Confirm an itinerary import, persisting the reviewed draft.
1148
- * POST /v1/itineraries/import
1149
- * Requires a publishable key with the `studio-embedded` scope.
1150
- * Acts as the user its session token was minted for, so the token must name one.
1151
- */
1152
- declare const postItineraryImport: (transport: MountayaTransport, args: {
1153
- readonly body: operations["postItineraryImport"]["requestBody"] extends {
1154
- content: {
1155
- "application/json": infer B;
1156
- };
1157
- } ? B : never;
1158
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1159
- readonly idempotencyKey?: string | undefined;
1160
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryImport"]>>;
1161
- /**
1162
- * Preview an itinerary import without persisting it.
1163
- * POST /v1/itineraries/preview
1164
- * Requires a publishable key with the `studio-embedded` scope.
1165
- * Acts as the user its session token was minted for, so the token must name one.
1166
- */
1167
- declare const postItineraryPreview: (transport: MountayaTransport, args: {
1168
- readonly body: FormData;
1169
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1170
- readonly idempotencyKey?: string | undefined;
1171
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryPreview"]>>;
1172
- /**
1173
- * Publish the itinerary's current draft.
1174
- * POST /v1/itineraries/{itinerary_id}/publication
1175
- * Requires a publishable key with the `studio-embedded` scope.
1176
- * Acts as the user its session token was minted for, so the token must name one.
1177
- */
1178
- declare const postItineraryPublication: (transport: MountayaTransport, args: {
1179
- readonly "itinerary_id": string;
1180
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1181
- readonly idempotencyKey?: string | undefined;
1182
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1183
- readonly ifMatch?: string | undefined;
1184
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryPublication"]>>;
1185
- /**
1186
- * Create a segment, at the end of the chain or before another.
1187
- * POST /v1/itineraries/{itinerary_id}/segments
1188
- * Requires a publishable key with the `studio-embedded` scope.
1189
- * Acts as the user its session token was minted for, so the token must name one.
1190
- */
1191
- declare const postItinerarySegment: (transport: MountayaTransport, args: {
1192
- readonly "itinerary_id": string;
1193
- readonly body: operations["postItinerarySegment"]["requestBody"] extends {
1194
- content: {
1195
- "application/json": infer B;
1196
- };
1197
- } ? B : never;
1198
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1199
- readonly idempotencyKey?: string | undefined;
1200
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1201
- readonly ifMatch?: string | undefined;
1202
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItinerarySegment"]>>;
1203
- /**
1204
- * Convert a segment between routed and freehand.
1205
- * POST /v1/itineraries/{itinerary_id}/segments/{segment_id}/convert
1206
- * Requires a publishable key with the `studio-embedded` scope.
1207
- * Acts as the user its session token was minted for, so the token must name one.
1208
- */
1209
- declare const postItinerarySegmentConvert: (transport: MountayaTransport, args: {
1210
- readonly "itinerary_id": string;
1211
- readonly "segment_id": string;
1212
- readonly body: operations["postItinerarySegmentConvert"]["requestBody"] extends {
1213
- content: {
1214
- "application/json": infer B;
1215
- };
1216
- } ? B : never;
1217
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1218
- readonly idempotencyKey?: string | undefined;
1219
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1220
- readonly ifMatch?: string | undefined;
1221
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItinerarySegmentConvert"]>>;
1222
- /**
1223
- * Group a contiguous run of an itinerary's segments.
1224
- * POST /v1/itineraries/{itinerary_id}/segment-groups
1225
- * Requires a publishable key with the `studio-embedded` scope.
1226
- * Acts as the user its session token was minted for, so the token must name one.
1227
- */
1228
- declare const postItinerarySegmentGroup: (transport: MountayaTransport, args: {
1229
- readonly "itinerary_id": string;
1230
- readonly body: operations["postItinerarySegmentGroup"]["requestBody"] extends {
1231
- content: {
1232
- "application/json": infer B;
1233
- };
1234
- } ? B : never;
1235
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1236
- readonly idempotencyKey?: string | undefined;
1237
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1238
- readonly ifMatch?: string | undefined;
1239
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItinerarySegmentGroup"]>>;
1240
- /**
1241
- * Merge a segment with the one that follows it.
1242
- * POST /v1/itineraries/{itinerary_id}/segments/{segment_id}/merge
1243
- * Requires a publishable key with the `studio-embedded` scope.
1244
- * Acts as the user its session token was minted for, so the token must name one.
1245
- */
1246
- declare const postItinerarySegmentMerge: (transport: MountayaTransport, args: {
1247
- readonly "itinerary_id": string;
1248
- readonly "segment_id": string;
1249
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1250
- readonly idempotencyKey?: string | undefined;
1251
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1252
- readonly ifMatch?: string | undefined;
1253
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItinerarySegmentMerge"]>>;
1254
- /**
1255
- * Split a segment in two at a fraction of its length.
1256
- * POST /v1/itineraries/{itinerary_id}/segments/{segment_id}/split
1257
- * Requires a publishable key with the `studio-embedded` scope.
1258
- * Acts as the user its session token was minted for, so the token must name one.
1259
- */
1260
- declare const postItinerarySegmentSplit: (transport: MountayaTransport, args: {
1261
- readonly "itinerary_id": string;
1262
- readonly "segment_id": string;
1263
- readonly body: operations["postItinerarySegmentSplit"]["requestBody"] extends {
1264
- content: {
1265
- "application/json": infer B;
1266
- };
1267
- } ? B : never;
1268
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1269
- readonly idempotencyKey?: string | undefined;
1270
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1271
- readonly ifMatch?: string | undefined;
1272
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItinerarySegmentSplit"]>>;
1273
- /**
1274
- * Mint the itinerary's share link, or return the one it has.
1275
- * POST /v1/itineraries/{itinerary_id}/share-link
1276
- * Requires a publishable key with the `studio-embedded` scope.
1277
- * Acts as the user its session token was minted for, so the token must name one.
1278
- */
1279
- declare const postItineraryShareLink: (transport: MountayaTransport, args: {
1280
- readonly "itinerary_id": string;
1281
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1282
- readonly idempotencyKey?: string | undefined;
1283
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryShareLink"]>>;
1284
- /**
1285
- * Rotate the itinerary's share link.
1286
- * POST /v1/itineraries/{itinerary_id}/share-link/rotate
1287
- * Requires a publishable key with the `studio-embedded` scope.
1288
- * Acts as the user its session token was minted for, so the token must name one.
1289
- */
1290
- declare const postItineraryShareLinkRotate: (transport: MountayaTransport, args: {
1291
- readonly "itinerary_id": string;
1292
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1293
- readonly idempotencyKey?: string | undefined;
1294
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryShareLinkRotate"]>>;
1295
- /**
1296
- * Create a new waypoint within an itinerary.
1297
- * POST /v1/itineraries/{itinerary_id}/waypoints
1298
- * Requires a publishable key with the `studio-embedded` scope.
1299
- * Acts as the user its session token was minted for, so the token must name one.
1300
- */
1301
- declare const postItineraryWaypoint: (transport: MountayaTransport, args: {
1302
- readonly "itinerary_id": string;
1303
- readonly body: operations["postItineraryWaypoint"]["requestBody"] extends {
1304
- content: {
1305
- "application/json": infer B;
1306
- };
1307
- } ? B : never;
1308
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1309
- readonly idempotencyKey?: string | undefined;
1310
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1311
- readonly ifMatch?: string | undefined;
1312
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postItineraryWaypoint"]>>;
1313
- /**
1314
- * Accept an invitation.
1315
- * POST /v1/me/invitations/{invitation_id}/accept
1316
- * Requires a publishable key with the `studio-embedded` scope.
1317
- * Acts as the user its session token was minted for, so the token must name one.
1318
- */
1319
- declare const postMyInvitationAccept: (transport: MountayaTransport, args: {
1320
- readonly "invitation_id": string;
1321
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1322
- readonly idempotencyKey?: string | undefined;
1323
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postMyInvitationAccept"]>>;
1324
- /**
1325
- * Create an organization.
1326
- * POST /v1/organizations
1327
- * Requires a publishable key with the `management` scope.
1328
- * Acts as the user its session token was minted for, so the token must name one.
1329
- */
1330
- declare const postOrganization: (transport: MountayaTransport, args: {
1331
- readonly body: operations["postOrganization"]["requestBody"] extends {
1332
- content: {
1333
- "application/json": infer B;
1334
- };
1335
- } ? B : never;
1336
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1337
- readonly idempotencyKey?: string | undefined;
1338
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganization"]>>;
1339
- /**
1340
- * Configure an organization's AI provider.
1341
- * POST /v1/organizations/{organization_id}/ai-provider-config
1342
- * Requires a publishable key with the `management` scope.
1343
- * Acts as the user its session token was minted for, so the token must name one.
1344
- */
1345
- declare const postOrganizationAiProviderConfig: (transport: MountayaTransport, args: {
1346
- readonly "organization_id": string;
1347
- readonly body: operations["postOrganizationAiProviderConfig"]["requestBody"] extends {
1348
- content: {
1349
- "application/json": infer B;
1350
- };
1351
- } ? B : never;
1352
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1353
- readonly idempotencyKey?: string | undefined;
1354
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationAiProviderConfig"]>>;
1355
- /**
1356
- * Save a confirmed card against an organization.
1357
- * POST /v1/organizations/{organization_id}/billing/payment-methods
1358
- * Requires a publishable key with the `management` scope.
1359
- * Acts as the user its session token was minted for, so the token must name one.
1360
- */
1361
- declare const postOrganizationBillingPaymentMethod: (transport: MountayaTransport, args: {
1362
- readonly "organization_id": string;
1363
- readonly body: operations["postOrganizationBillingPaymentMethod"]["requestBody"] extends {
1364
- content: {
1365
- "application/json": infer B;
1366
- };
1367
- } ? B : never;
1368
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1369
- readonly idempotencyKey?: string | undefined;
1370
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationBillingPaymentMethod"]>>;
1371
- /**
1372
- * Choose which payment method an organization is charged on.
1373
- * POST /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/set-default
1374
- * Requires a publishable key with the `management` scope.
1375
- * Acts as the user its session token was minted for, so the token must name one.
1376
- */
1377
- declare const postOrganizationBillingPaymentMethodSetDefault: (transport: MountayaTransport, args: {
1378
- readonly "organization_id": string;
1379
- readonly "payment_method_id": string;
1380
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1381
- readonly idempotencyKey?: string | undefined;
1382
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationBillingPaymentMethodSetDefault"]>>;
1383
- /**
1384
- * Start collecting a card for an organization.
1385
- * POST /v1/organizations/{organization_id}/billing/payment-methods/setup
1386
- * Requires a publishable key with the `management` scope.
1387
- * Acts as the user its session token was minted for, so the token must name one.
1388
- */
1389
- declare const postOrganizationBillingPaymentMethodSetup: (transport: MountayaTransport, args: {
1390
- readonly "organization_id": string;
1391
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1392
- readonly idempotencyKey?: string | undefined;
1393
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationBillingPaymentMethodSetup"]>>;
1394
- /**
1395
- * Open an organization's billing.
1396
- * POST /v1/organizations/{organization_id}/billing/provision
1397
- * Requires a publishable key with the `management` scope.
1398
- * Acts as the user its session token was minted for, so the token must name one.
1399
- */
1400
- declare const postOrganizationBillingProvision: (transport: MountayaTransport, args: {
1401
- readonly "organization_id": string;
1402
- readonly body: operations["postOrganizationBillingProvision"]["requestBody"] extends {
1403
- content: {
1404
- "application/json": infer B;
1405
- };
1406
- } ? B : never;
1407
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1408
- readonly idempotencyKey?: string | undefined;
1409
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationBillingProvision"]>>;
1410
- /**
1411
- * Run an organization's Data API subscription.
1412
- * POST /v1/organizations/{organization_id}/billing/subscription
1413
- * Requires a publishable key with the `management` scope.
1414
- * Acts as the user its session token was minted for, so the token must name one.
1415
- */
1416
- declare const postOrganizationBillingSubscription: (transport: MountayaTransport, args: {
1417
- readonly "organization_id": string;
1418
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1419
- readonly idempotencyKey?: string | undefined;
1420
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationBillingSubscription"]>>;
1421
- /**
1422
- * Invite somebody to an organization by email.
1423
- * POST /v1/organizations/{organization_id}/invitations
1424
- * Requires a publishable key with the `management` scope.
1425
- * Acts as the user its session token was minted for, so the token must name one.
1426
- */
1427
- declare const postOrganizationInvitation: (transport: MountayaTransport, args: {
1428
- readonly "organization_id": string;
1429
- readonly body: operations["postOrganizationInvitation"]["requestBody"] extends {
1430
- content: {
1431
- "application/json": infer B;
1432
- };
1433
- } ? B : never;
1434
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1435
- readonly idempotencyKey?: string | undefined;
1436
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationInvitation"]>>;
1437
- /**
1438
- * Resolve the organization a publishable key belongs to.
1439
- * POST /v1/organizations/lookup
1440
- * Takes no credential.
1441
- */
1442
- declare const postOrganizationLookup: (transport: MountayaTransport, args: {
1443
- readonly body: operations["postOrganizationLookup"]["requestBody"] extends {
1444
- content: {
1445
- "application/json": infer B;
1446
- };
1447
- } ? B : never;
1448
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationLookup"]>>;
1449
- /**
1450
- * Create a publishable key.
1451
- * POST /v1/organizations/{organization_id}/publishable-keys
1452
- * Requires a publishable key with the `management` scope.
1453
- * Acts as the user its session token was minted for, so the token must name one.
1454
- */
1455
- declare const postOrganizationPublishableKey: (transport: MountayaTransport, args: {
1456
- readonly "organization_id": string;
1457
- readonly body: operations["postOrganizationPublishableKey"]["requestBody"] extends {
1458
- content: {
1459
- "application/json": infer B;
1460
- };
1461
- } ? B : never;
1462
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1463
- readonly idempotencyKey?: string | undefined;
1464
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationPublishableKey"]>>;
1465
- /**
1466
- * Resend an event, send a test event, or redeliver an endpoint's events.
1467
- * POST /v1/organizations/{organization_id}/webhook-deliveries
1468
- * Requires a publishable key with the `management` scope.
1469
- * Acts as the user its session token was minted for, so the token must name one.
1470
- */
1471
- declare const postOrganizationWebhookDelivery: (transport: MountayaTransport, args: {
1472
- readonly "organization_id": string;
1473
- readonly body: operations["postOrganizationWebhookDelivery"]["requestBody"] extends {
1474
- content: {
1475
- "application/json": infer B;
1476
- };
1477
- } ? B : never;
1478
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1479
- readonly idempotencyKey?: string | undefined;
1480
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationWebhookDelivery"]>>;
1481
- /**
1482
- * Create a webhook endpoint.
1483
- * POST /v1/organizations/{organization_id}/webhook-endpoints
1484
- * Requires a publishable key with the `management` scope.
1485
- * Acts as the user its session token was minted for, so the token must name one.
1486
- */
1487
- declare const postOrganizationWebhookEndpoint: (transport: MountayaTransport, args: {
1488
- readonly "organization_id": string;
1489
- readonly body: operations["postOrganizationWebhookEndpoint"]["requestBody"] extends {
1490
- content: {
1491
- "application/json": infer B;
1492
- };
1493
- } ? B : never;
1494
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1495
- readonly idempotencyKey?: string | undefined;
1496
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postOrganizationWebhookEndpoint"]>>;
1497
- /**
1498
- * Create a session token using a secret key.
1499
- * POST /v1/sessions
1500
- * Requires a secret key, and takes no other credential.
1501
- */
1502
- declare const postSession: (transport: MountayaTransport, args: {
1503
- readonly body: operations["postSession"]["requestBody"] extends {
1504
- content: {
1505
- "application/json": infer B;
1506
- };
1507
- } ? B : never;
1508
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postSession"]>>;
1509
- /**
1510
- * Create a new zone.
1511
- * POST /v1/zones
1512
- * Requires a publishable key with the `studio-embedded` scope.
1513
- * Acts as the user its session token was minted for, so the token must name one.
1514
- */
1515
- declare const postZone: (transport: MountayaTransport, args: {
1516
- readonly body: operations["postZone"]["requestBody"] extends {
1517
- content: {
1518
- "application/json": infer B;
1519
- };
1520
- } ? B : never;
1521
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1522
- readonly idempotencyKey?: string | undefined;
1523
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postZone"]>>;
1524
- /**
1525
- * Send a collaboration signal into a zone's session.
1526
- * POST /v1/zones/{zone_id}/collab
1527
- * Requires a publishable key with the `studio-embedded` scope.
1528
- * Acts as the user its session token was minted for, so the token must name one.
1529
- */
1530
- declare const postZoneCollab: (transport: MountayaTransport, args: {
1531
- readonly "zone_id": string;
1532
- readonly body: operations["postZoneCollab"]["requestBody"] extends {
1533
- content: {
1534
- "application/json": infer B;
1535
- };
1536
- } ? B : never;
1537
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postZoneCollab"]>>;
1538
- /**
1539
- * Publish the zone's current draft.
1540
- * POST /v1/zones/{zone_id}/publication
1541
- * Requires a publishable key with the `studio-embedded` scope.
1542
- * Acts as the user its session token was minted for, so the token must name one.
1543
- */
1544
- declare const postZonePublication: (transport: MountayaTransport, args: {
1545
- readonly "zone_id": string;
1546
- /** The `Idempotency-Key` every attempt sends; left out, the client draws one for the call. */
1547
- readonly idempotencyKey?: string | undefined;
1548
- /** The `etag` the resource was read under, sent as `If-Match`; left out, the write is unconditional. */
1549
- readonly ifMatch?: string | undefined;
1550
- }, options?: RequestOptions) => Promise<SuccessBody<operations["postZonePublication"]>>;
1551
- /**
1552
- * bind returns every 'api' operation with the transport applied.
1553
- */
1554
- declare const bind: (transport: MountayaTransport) => {
1555
- admin: {
1556
- billing: {
1557
- /**
1558
- * Detach a payment method from an organization.
1559
- * DELETE /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}
1560
- * Requires a publishable key with the `management` scope.
1561
- * Acts as the user its session token was minted for, so the token must name one.
1562
- * @see {@link deleteOrganizationBillingPaymentMethod}
1563
- */
1564
- deleteOrganizationBillingPaymentMethod: (args: Parameters<typeof deleteOrganizationBillingPaymentMethod>[1], options?: RequestOptions) => Promise<{
1565
- extensions?: ({
1566
- metadata?: {
1567
- [key: string]: unknown;
1568
- } | undefined;
1569
- } & {
1570
- [key: string]: unknown;
1571
- }) | undefined;
1572
- } & {
1573
- data: unknown;
1574
- } & {
1575
- data: null;
1576
- }>;
1577
- /**
1578
- * End an organization's Data API subscription at the end of its period.
1579
- * DELETE /v1/organizations/{organization_id}/billing/subscription
1580
- * Requires a publishable key with the `management` scope.
1581
- * Acts as the user its session token was minted for, so the token must name one.
1582
- * @see {@link deleteOrganizationBillingSubscription}
1583
- */
1584
- deleteOrganizationBillingSubscription: (args: Parameters<typeof deleteOrganizationBillingSubscription>[1], options?: RequestOptions) => Promise<{
1585
- extensions?: ({
1586
- metadata?: {
1587
- [key: string]: unknown;
1588
- } | undefined;
1589
- } & {
1590
- [key: string]: unknown;
1591
- }) | undefined;
1592
- } & {
1593
- data: unknown;
1594
- } & {
1595
- data: components["schemas"]["OrganizationSubscriptionSummary"] | null;
1596
- }>;
1597
- /**
1598
- * List the billing catalog.
1599
- * GET /v1/billing/products
1600
- * Requires a publishable key with the `management` scope.
1601
- * @see {@link getBillingProducts}
1602
- */
1603
- getBillingProducts: (options?: RequestOptions) => Promise<{
1604
- extensions?: ({
1605
- metadata?: {
1606
- [key: string]: unknown;
1607
- } | undefined;
1608
- } & {
1609
- [key: string]: unknown;
1610
- }) | undefined;
1611
- } & {
1612
- data: unknown;
1613
- } & {
1614
- data: components["schemas"]["BillingProduct"][];
1615
- }>;
1616
- /**
1617
- * Retrieve an organization's billing information.
1618
- * GET /v1/organizations/{organization_id}/billing/info
1619
- * Requires a publishable key with the `management` scope.
1620
- * @see {@link getOrganizationBillingInfo}
1621
- */
1622
- getOrganizationBillingInfo: (args: Parameters<typeof getOrganizationBillingInfo>[1], options?: RequestOptions) => Promise<{
1623
- extensions?: ({
1624
- metadata?: {
1625
- [key: string]: unknown;
1626
- } | undefined;
1627
- } & {
1628
- [key: string]: unknown;
1629
- }) | undefined;
1630
- } & {
1631
- data: unknown;
1632
- } & {
1633
- data: components["schemas"]["BillingInfo"] | null;
1634
- }>;
1635
- /**
1636
- * List an organization's invoices.
1637
- * GET /v1/organizations/{organization_id}/billing/invoices
1638
- * Requires a publishable key with the `management` scope.
1639
- * @see {@link getOrganizationBillingInvoices}
1640
- */
1641
- getOrganizationBillingInvoices: (args: Parameters<typeof getOrganizationBillingInvoices>[1], options?: RequestOptions) => Promise<{
1642
- extensions?: ({
1643
- metadata?: {
1644
- [key: string]: unknown;
1645
- } | undefined;
1646
- } & {
1647
- [key: string]: unknown;
1648
- }) | undefined;
1649
- } & {
1650
- data: unknown;
1651
- } & {
1652
- data: components["schemas"]["Invoice"][];
1653
- extensions: {
1654
- metadata: components["schemas"]["ListMetadata"];
1655
- };
1656
- }>;
1657
- /**
1658
- * List an organization's saved payment methods.
1659
- * GET /v1/organizations/{organization_id}/billing/payment-methods
1660
- * Requires a publishable key with the `management` scope.
1661
- * @see {@link getOrganizationBillingPaymentMethods}
1662
- */
1663
- getOrganizationBillingPaymentMethods: (args: Parameters<typeof getOrganizationBillingPaymentMethods>[1], options?: RequestOptions) => Promise<{
1664
- extensions?: ({
1665
- metadata?: {
1666
- [key: string]: unknown;
1667
- } | undefined;
1668
- } & {
1669
- [key: string]: unknown;
1670
- }) | undefined;
1671
- } & {
1672
- data: unknown;
1673
- } & {
1674
- data: components["schemas"]["PaymentMethod"][];
1675
- extensions: {
1676
- metadata: components["schemas"]["ListMetadata"];
1677
- };
1678
- }>;
1679
- /**
1680
- * Check what a promotion code is worth to an organization.
1681
- * GET /v1/organizations/{organization_id}/billing/promotion-codes/{code}
1682
- * Requires a publishable key with the `management` scope.
1683
- * @see {@link getOrganizationBillingPromotionCode}
1684
- */
1685
- getOrganizationBillingPromotionCode: (args: Parameters<typeof getOrganizationBillingPromotionCode>[1], options?: RequestOptions) => Promise<{
1686
- extensions?: ({
1687
- metadata?: {
1688
- [key: string]: unknown;
1689
- } | undefined;
1690
- } & {
1691
- [key: string]: unknown;
1692
- }) | undefined;
1693
- } & {
1694
- data: unknown;
1695
- } & {
1696
- data: components["schemas"]["PromotionCodePreview"];
1697
- }>;
1698
- /**
1699
- * Retrieve an organization's subscription.
1700
- * GET /v1/organizations/{organization_id}/billing/subscription
1701
- * Requires a publishable key with the `management` scope.
1702
- * @see {@link getOrganizationBillingSubscription}
1703
- */
1704
- getOrganizationBillingSubscription: (args: Parameters<typeof getOrganizationBillingSubscription>[1], options?: RequestOptions) => Promise<{
1705
- extensions?: ({
1706
- metadata?: {
1707
- [key: string]: unknown;
1708
- } | undefined;
1709
- } & {
1710
- [key: string]: unknown;
1711
- }) | undefined;
1712
- } & {
1713
- data: unknown;
1714
- } & {
1715
- data: components["schemas"]["OrganizationSubscriptionSummary"] | null;
1716
- }>;
1717
- /**
1718
- * Update an organization's billing information.
1719
- * PATCH /v1/organizations/{organization_id}/billing/info
1720
- * Requires a publishable key with the `management` scope.
1721
- * Acts as the user its session token was minted for, so the token must name one.
1722
- * @see {@link patchOrganizationBillingInfo}
1723
- */
1724
- patchOrganizationBillingInfo: (args: Parameters<typeof patchOrganizationBillingInfo>[1], options?: RequestOptions) => Promise<{
1725
- extensions?: ({
1726
- metadata?: {
1727
- [key: string]: unknown;
1728
- } | undefined;
1729
- } & {
1730
- [key: string]: unknown;
1731
- }) | undefined;
1732
- } & {
1733
- data: unknown;
1734
- } & {
1735
- data: components["schemas"]["BillingInfo"];
1736
- }>;
1737
- /**
1738
- * Save a confirmed card against an organization.
1739
- * POST /v1/organizations/{organization_id}/billing/payment-methods
1740
- * Requires a publishable key with the `management` scope.
1741
- * Acts as the user its session token was minted for, so the token must name one.
1742
- * @see {@link postOrganizationBillingPaymentMethod}
1743
- */
1744
- postOrganizationBillingPaymentMethod: (args: Parameters<typeof postOrganizationBillingPaymentMethod>[1], options?: RequestOptions) => Promise<{
1745
- extensions?: ({
1746
- metadata?: {
1747
- [key: string]: unknown;
1748
- } | undefined;
1749
- } & {
1750
- [key: string]: unknown;
1751
- }) | undefined;
1752
- } & {
1753
- data: unknown;
1754
- } & {
1755
- data: components["schemas"]["PaymentMethod"];
1756
- }>;
1757
- /**
1758
- * Choose which payment method an organization is charged on.
1759
- * POST /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/set-default
1760
- * Requires a publishable key with the `management` scope.
1761
- * Acts as the user its session token was minted for, so the token must name one.
1762
- * @see {@link postOrganizationBillingPaymentMethodSetDefault}
1763
- */
1764
- postOrganizationBillingPaymentMethodSetDefault: (args: Parameters<typeof postOrganizationBillingPaymentMethodSetDefault>[1], options?: RequestOptions) => Promise<{
1765
- extensions?: ({
1766
- metadata?: {
1767
- [key: string]: unknown;
1768
- } | undefined;
1769
- } & {
1770
- [key: string]: unknown;
1771
- }) | undefined;
1772
- } & {
1773
- data: unknown;
1774
- } & {
1775
- data: components["schemas"]["PaymentMethod"];
1776
- }>;
1777
- /**
1778
- * Start collecting a card for an organization.
1779
- * POST /v1/organizations/{organization_id}/billing/payment-methods/setup
1780
- * Requires a publishable key with the `management` scope.
1781
- * Acts as the user its session token was minted for, so the token must name one.
1782
- * @see {@link postOrganizationBillingPaymentMethodSetup}
1783
- */
1784
- postOrganizationBillingPaymentMethodSetup: (args: Parameters<typeof postOrganizationBillingPaymentMethodSetup>[1], options?: RequestOptions) => Promise<{
1785
- extensions?: ({
1786
- metadata?: {
1787
- [key: string]: unknown;
1788
- } | undefined;
1789
- } & {
1790
- [key: string]: unknown;
1791
- }) | undefined;
1792
- } & {
1793
- data: unknown;
1794
- } & {
1795
- data: components["schemas"]["SetupIntentSession"];
1796
- }>;
1797
- /**
1798
- * Open an organization's billing.
1799
- * POST /v1/organizations/{organization_id}/billing/provision
1800
- * Requires a publishable key with the `management` scope.
1801
- * Acts as the user its session token was minted for, so the token must name one.
1802
- * @see {@link postOrganizationBillingProvision}
1803
- */
1804
- postOrganizationBillingProvision: (args: Parameters<typeof postOrganizationBillingProvision>[1], options?: RequestOptions) => Promise<{
1805
- extensions?: ({
1806
- metadata?: {
1807
- [key: string]: unknown;
1808
- } | undefined;
1809
- } & {
1810
- [key: string]: unknown;
1811
- }) | undefined;
1812
- } & {
1813
- data: unknown;
1814
- } & {
1815
- data: components["schemas"]["BillingInfo"];
1816
- }>;
1817
- /**
1818
- * Run an organization's Data API subscription.
1819
- * POST /v1/organizations/{organization_id}/billing/subscription
1820
- * Requires a publishable key with the `management` scope.
1821
- * Acts as the user its session token was minted for, so the token must name one.
1822
- * @see {@link postOrganizationBillingSubscription}
1823
- */
1824
- postOrganizationBillingSubscription: (args: Parameters<typeof postOrganizationBillingSubscription>[1], options?: RequestOptions) => Promise<{
1825
- extensions?: ({
1826
- metadata?: {
1827
- [key: string]: unknown;
1828
- } | undefined;
1829
- } & {
1830
- [key: string]: unknown;
1831
- }) | undefined;
1832
- } & {
1833
- data: unknown;
1834
- } & {
1835
- data: components["schemas"]["OrganizationSubscriptionSummary"];
1836
- }>;
1837
- };
1838
- invitations: {
1839
- /**
1840
- * Withdraw a pending invitation.
1841
- * DELETE /v1/organizations/{organization_id}/invitations/{invitation_id}
1842
- * Requires a publishable key with the `management` scope.
1843
- * Acts as the user its session token was minted for, so the token must name one.
1844
- * @see {@link deleteOrganizationInvitation}
1845
- */
1846
- deleteOrganizationInvitation: (args: Parameters<typeof deleteOrganizationInvitation>[1], options?: RequestOptions) => Promise<{
1847
- extensions?: ({
1848
- metadata?: {
1849
- [key: string]: unknown;
1850
- } | undefined;
1851
- } & {
1852
- [key: string]: unknown;
1853
- }) | undefined;
1854
- } & {
1855
- data: unknown;
1856
- } & {
1857
- data: null;
1858
- }>;
1859
- /**
1860
- * Retrieve a pending invitation.
1861
- * GET /v1/organizations/{organization_id}/invitations/{invitation_id}
1862
- * Requires a publishable key with the `management` scope.
1863
- * @see {@link getOrganizationInvitation}
1864
- */
1865
- getOrganizationInvitation: (args: Parameters<typeof getOrganizationInvitation>[1], options?: RequestOptions) => Promise<{
1866
- extensions?: ({
1867
- metadata?: {
1868
- [key: string]: unknown;
1869
- } | undefined;
1870
- } & {
1871
- [key: string]: unknown;
1872
- }) | undefined;
1873
- } & {
1874
- data: unknown;
1875
- } & {
1876
- data: components["schemas"]["OrganizationInvitation"];
1877
- }>;
1878
- /**
1879
- * List an organization's pending invitations.
1880
- * GET /v1/organizations/{organization_id}/invitations
1881
- * Requires a publishable key with the `management` scope.
1882
- * @see {@link getOrganizationInvitations}
1883
- */
1884
- getOrganizationInvitations: (args: Parameters<typeof getOrganizationInvitations>[1], options?: RequestOptions) => Promise<{
1885
- extensions?: ({
1886
- metadata?: {
1887
- [key: string]: unknown;
1888
- } | undefined;
1889
- } & {
1890
- [key: string]: unknown;
1891
- }) | undefined;
1892
- } & {
1893
- data: unknown;
1894
- } & {
1895
- data: components["schemas"]["OrganizationInvitation"][];
1896
- extensions: {
1897
- metadata: components["schemas"]["ListMetadata"];
1898
- };
1899
- }>;
1900
- /**
1901
- * Invite somebody to an organization by email.
1902
- * POST /v1/organizations/{organization_id}/invitations
1903
- * Requires a publishable key with the `management` scope.
1904
- * Acts as the user its session token was minted for, so the token must name one.
1905
- * @see {@link postOrganizationInvitation}
1906
- */
1907
- postOrganizationInvitation: (args: Parameters<typeof postOrganizationInvitation>[1], options?: RequestOptions) => Promise<{
1908
- extensions?: ({
1909
- metadata?: {
1910
- [key: string]: unknown;
1911
- } | undefined;
1912
- } & {
1913
- [key: string]: unknown;
1914
- }) | undefined;
1915
- } & {
1916
- data: unknown;
1917
- } & {
1918
- data: components["schemas"]["OrganizationInvitation"];
1919
- }>;
1920
- };
1921
- keys: {
1922
- /**
1923
- * Revoke a publishable key.
1924
- * DELETE /v1/organizations/{organization_id}/publishable-keys/{key_id}
1925
- * Requires a publishable key with the `management` scope.
1926
- * Acts as the user its session token was minted for, so the token must name one.
1927
- * @see {@link deleteOrganizationPublishableKey}
1928
- */
1929
- deleteOrganizationPublishableKey: (args: Parameters<typeof deleteOrganizationPublishableKey>[1], options?: RequestOptions) => Promise<{
1930
- extensions?: ({
1931
- metadata?: {
1932
- [key: string]: unknown;
1933
- } | undefined;
1934
- } & {
1935
- [key: string]: unknown;
1936
- }) | undefined;
1937
- } & {
1938
- data: unknown;
1939
- } & {
1940
- data: components["schemas"]["PublishableKey"];
1941
- }>;
1942
- /**
1943
- * Retrieve a publishable key.
1944
- * GET /v1/organizations/{organization_id}/publishable-keys/{key_id}
1945
- * Requires a publishable key with the `management` scope.
1946
- * @see {@link getOrganizationPublishableKey}
1947
- */
1948
- getOrganizationPublishableKey: (args: Parameters<typeof getOrganizationPublishableKey>[1], options?: RequestOptions) => Promise<{
1949
- extensions?: ({
1950
- metadata?: {
1951
- [key: string]: unknown;
1952
- } | undefined;
1953
- } & {
1954
- [key: string]: unknown;
1955
- }) | undefined;
1956
- } & {
1957
- data: unknown;
1958
- } & {
1959
- data: components["schemas"]["PublishableKey"];
1960
- }>;
1961
- /**
1962
- * List an organization's publishable keys.
1963
- * GET /v1/organizations/{organization_id}/publishable-keys
1964
- * Requires a publishable key with the `management` scope.
1965
- * @see {@link getOrganizationPublishableKeys}
1966
- */
1967
- getOrganizationPublishableKeys: (args: Parameters<typeof getOrganizationPublishableKeys>[1], options?: RequestOptions) => Promise<{
1968
- extensions?: ({
1969
- metadata?: {
1970
- [key: string]: unknown;
1971
- } | undefined;
1972
- } & {
1973
- [key: string]: unknown;
1974
- }) | undefined;
1975
- } & {
1976
- data: unknown;
1977
- } & {
1978
- data: components["schemas"]["PublishableKey"][];
1979
- extensions: {
1980
- metadata: components["schemas"]["ListMetadata"];
1981
- };
1982
- }>;
1983
- /**
1984
- * Update a publishable key's name or scopes.
1985
- * PATCH /v1/organizations/{organization_id}/publishable-keys/{key_id}
1986
- * Requires a publishable key with the `management` scope.
1987
- * Acts as the user its session token was minted for, so the token must name one.
1988
- * @see {@link patchOrganizationPublishableKey}
1989
- */
1990
- patchOrganizationPublishableKey: (args: Parameters<typeof patchOrganizationPublishableKey>[1], options?: RequestOptions) => Promise<{
1991
- extensions?: ({
1992
- metadata?: {
1993
- [key: string]: unknown;
1994
- } | undefined;
1995
- } & {
1996
- [key: string]: unknown;
1997
- }) | undefined;
1998
- } & {
1999
- data: unknown;
2000
- } & {
2001
- data: components["schemas"]["PublishableKey"];
2002
- }>;
2003
- /**
2004
- * Create a publishable key.
2005
- * POST /v1/organizations/{organization_id}/publishable-keys
2006
- * Requires a publishable key with the `management` scope.
2007
- * Acts as the user its session token was minted for, so the token must name one.
2008
- * @see {@link postOrganizationPublishableKey}
2009
- */
2010
- postOrganizationPublishableKey: (args: Parameters<typeof postOrganizationPublishableKey>[1], options?: RequestOptions) => Promise<{
2011
- extensions?: ({
2012
- metadata?: {
2013
- [key: string]: unknown;
2014
- } | undefined;
2015
- } & {
2016
- [key: string]: unknown;
2017
- }) | undefined;
2018
- } & {
2019
- data: unknown;
2020
- } & {
2021
- data: components["schemas"]["PublishableKey"];
2022
- }>;
2023
- };
2024
- members: {
2025
- /**
2026
- * Remove a member from an organization, or leave it.
2027
- * DELETE /v1/organizations/{organization_id}/members/{user_id}
2028
- * Requires a publishable key with the `management` scope.
2029
- * Acts as the user its session token was minted for, so the token must name one.
2030
- * @see {@link deleteOrganizationMember}
2031
- */
2032
- deleteOrganizationMember: (args: Parameters<typeof deleteOrganizationMember>[1], options?: RequestOptions) => Promise<{
2033
- extensions?: ({
2034
- metadata?: {
2035
- [key: string]: unknown;
2036
- } | undefined;
2037
- } & {
2038
- [key: string]: unknown;
2039
- }) | undefined;
2040
- } & {
2041
- data: unknown;
2042
- } & {
2043
- data: null;
2044
- }>;
2045
- /**
2046
- * List an organization's members.
2047
- * GET /v1/organizations/{organization_id}/members
2048
- * Requires a publishable key with the `management` scope.
2049
- * @see {@link getOrganizationMembers}
2050
- */
2051
- getOrganizationMembers: (args: Parameters<typeof getOrganizationMembers>[1], options?: RequestOptions) => Promise<{
2052
- extensions?: ({
2053
- metadata?: {
2054
- [key: string]: unknown;
2055
- } | undefined;
2056
- } & {
2057
- [key: string]: unknown;
2058
- }) | undefined;
2059
- } & {
2060
- data: unknown;
2061
- } & {
2062
- data: components["schemas"]["OrganizationMember"][];
2063
- extensions: {
2064
- metadata: components["schemas"]["ListMetadata"];
2065
- };
2066
- }>;
2067
- /**
2068
- * Change a member's role.
2069
- * PATCH /v1/organizations/{organization_id}/members/{user_id}
2070
- * Requires a publishable key with the `management` scope.
2071
- * Acts as the user its session token was minted for, so the token must name one.
2072
- * @see {@link patchOrganizationMember}
2073
- */
2074
- patchOrganizationMember: (args: Parameters<typeof patchOrganizationMember>[1], options?: RequestOptions) => Promise<{
2075
- extensions?: ({
2076
- metadata?: {
2077
- [key: string]: unknown;
2078
- } | undefined;
2079
- } & {
2080
- [key: string]: unknown;
2081
- }) | undefined;
2082
- } & {
2083
- data: unknown;
2084
- } & {
2085
- data: components["schemas"]["OrganizationMember"];
2086
- }>;
2087
- };
2088
- organizations: {
2089
- /**
2090
- * Delete an organization's AI provider configuration.
2091
- * DELETE /v1/organizations/{organization_id}/ai-provider-config
2092
- * Requires a publishable key with the `management` scope.
2093
- * Acts as the user its session token was minted for, so the token must name one.
2094
- * @see {@link deleteOrganizationAiProviderConfig}
2095
- */
2096
- deleteOrganizationAiProviderConfig: (args: Parameters<typeof deleteOrganizationAiProviderConfig>[1], options?: RequestOptions) => Promise<{
2097
- extensions?: ({
2098
- metadata?: {
2099
- [key: string]: unknown;
2100
- } | undefined;
2101
- } & {
2102
- [key: string]: unknown;
2103
- }) | undefined;
2104
- } & {
2105
- data: unknown;
2106
- } & {
2107
- data: null;
2108
- }>;
2109
- /**
2110
- * List the AI provider catalog.
2111
- * GET /v1/ai-providers
2112
- * Requires a publishable key with the `management` scope.
2113
- * @see {@link getAiProviders}
2114
- */
2115
- getAiProviders: (options?: RequestOptions) => Promise<{
2116
- extensions?: ({
2117
- metadata?: {
2118
- [key: string]: unknown;
2119
- } | undefined;
2120
- } & {
2121
- [key: string]: unknown;
2122
- }) | undefined;
2123
- } & {
2124
- data: unknown;
2125
- } & {
2126
- data: components["schemas"]["AiProviderCatalog"][];
2127
- }>;
2128
- /**
2129
- * Retrieve an organization.
2130
- * GET /v1/organizations/{organization_id}
2131
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
2132
- * @see {@link getOrganization}
2133
- */
2134
- getOrganization: (args: Parameters<typeof getOrganization>[1], options?: RequestOptions) => Promise<{
2135
- extensions?: ({
2136
- metadata?: {
2137
- [key: string]: unknown;
2138
- } | undefined;
2139
- } & {
2140
- [key: string]: unknown;
2141
- }) | undefined;
2142
- } & {
2143
- data: unknown;
2144
- } & {
2145
- data: components["schemas"]["Organization"];
2146
- }>;
2147
- /**
2148
- * Retrieve an organization's AI provider configuration.
2149
- * GET /v1/organizations/{organization_id}/ai-provider-config
2150
- * Requires a publishable key with the `management` scope.
2151
- * @see {@link getOrganizationAiProviderConfig}
2152
- */
2153
- getOrganizationAiProviderConfig: (args: Parameters<typeof getOrganizationAiProviderConfig>[1], options?: RequestOptions) => Promise<{
2154
- extensions?: ({
2155
- metadata?: {
2156
- [key: string]: unknown;
2157
- } | undefined;
2158
- } & {
2159
- [key: string]: unknown;
2160
- }) | undefined;
2161
- } & {
2162
- data: unknown;
2163
- } & {
2164
- data: components["schemas"]["AiProviderConfig"] | null;
2165
- }>;
2166
- /**
2167
- * Retrieve an organization's Map Publishing settings.
2168
- * GET /v1/organizations/{organization_id}/settings
2169
- * Requires a publishable key with the `management` scope.
2170
- * @see {@link getOrganizationSettings}
2171
- */
2172
- getOrganizationSettings: (args: Parameters<typeof getOrganizationSettings>[1], options?: RequestOptions) => Promise<{
2173
- extensions?: ({
2174
- metadata?: {
2175
- [key: string]: unknown;
2176
- } | undefined;
2177
- } & {
2178
- [key: string]: unknown;
2179
- }) | undefined;
2180
- } & {
2181
- data: unknown;
2182
- } & {
2183
- data: components["schemas"]["OrganizationSettings"];
2184
- }>;
2185
- /**
2186
- * Retrieve an organization's data usage.
2187
- * GET /v1/organizations/{organization_id}/usage/data
2188
- * Requires a publishable key with the `management` scope.
2189
- * @see {@link getOrganizationUsageData}
2190
- */
2191
- getOrganizationUsageData: (args: Parameters<typeof getOrganizationUsageData>[1], options?: RequestOptions) => Promise<{
2192
- extensions?: ({
2193
- metadata?: {
2194
- [key: string]: unknown;
2195
- } | undefined;
2196
- } & {
2197
- [key: string]: unknown;
2198
- }) | undefined;
2199
- } & {
2200
- data: unknown;
2201
- } & {
2202
- data: components["schemas"]["UsageDataPoint"][];
2203
- }>;
2204
- /**
2205
- * Retrieve an organization's Tile API usage.
2206
- * GET /v1/organizations/{organization_id}/usage/tiles
2207
- * Requires a publishable key with the `management` scope.
2208
- * @see {@link getOrganizationUsageTiles}
2209
- */
2210
- getOrganizationUsageTiles: (args: Parameters<typeof getOrganizationUsageTiles>[1], options?: RequestOptions) => Promise<{
2211
- extensions?: ({
2212
- metadata?: {
2213
- [key: string]: unknown;
2214
- } | undefined;
2215
- } & {
2216
- [key: string]: unknown;
2217
- }) | undefined;
2218
- } & {
2219
- data: unknown;
2220
- } & {
2221
- data: components["schemas"]["UsageTilePoint"][];
2222
- }>;
2223
- /**
2224
- * Update an organization.
2225
- * PATCH /v1/organizations/{organization_id}
2226
- * Requires a publishable key with the `management` scope.
2227
- * Acts as the user its session token was minted for, so the token must name one.
2228
- * @see {@link patchOrganization}
2229
- */
2230
- patchOrganization: (args: Parameters<typeof patchOrganization>[1], options?: RequestOptions) => Promise<{
2231
- extensions?: ({
2232
- metadata?: {
2233
- [key: string]: unknown;
2234
- } | undefined;
2235
- } & {
2236
- [key: string]: unknown;
2237
- }) | undefined;
2238
- } & {
2239
- data: unknown;
2240
- } & {
2241
- data: components["schemas"]["Organization"];
2242
- }>;
2243
- /**
2244
- * Update an organization's AI provider configuration.
2245
- * PATCH /v1/organizations/{organization_id}/ai-provider-config
2246
- * Requires a publishable key with the `management` scope.
2247
- * Acts as the user its session token was minted for, so the token must name one.
2248
- * @see {@link patchOrganizationAiProviderConfig}
2249
- */
2250
- patchOrganizationAiProviderConfig: (args: Parameters<typeof patchOrganizationAiProviderConfig>[1], options?: RequestOptions) => Promise<{
2251
- extensions?: ({
2252
- metadata?: {
2253
- [key: string]: unknown;
2254
- } | undefined;
2255
- } & {
2256
- [key: string]: unknown;
2257
- }) | undefined;
2258
- } & {
2259
- data: unknown;
2260
- } & {
2261
- data: components["schemas"]["AiProviderConfig"];
2262
- }>;
2263
- /**
2264
- * Update an organization's Map Publishing settings.
2265
- * PATCH /v1/organizations/{organization_id}/settings
2266
- * Requires a publishable key with the `management` scope.
2267
- * Acts as the user its session token was minted for, so the token must name one.
2268
- * @see {@link patchOrganizationSettings}
2269
- */
2270
- patchOrganizationSettings: (args: Parameters<typeof patchOrganizationSettings>[1], options?: RequestOptions) => Promise<{
2271
- extensions?: ({
2272
- metadata?: {
2273
- [key: string]: unknown;
2274
- } | undefined;
2275
- } & {
2276
- [key: string]: unknown;
2277
- }) | undefined;
2278
- } & {
2279
- data: unknown;
2280
- } & {
2281
- data: components["schemas"]["OrganizationSettings"];
2282
- }>;
2283
- /**
2284
- * Create an organization.
2285
- * POST /v1/organizations
2286
- * Requires a publishable key with the `management` scope.
2287
- * Acts as the user its session token was minted for, so the token must name one.
2288
- * @see {@link postOrganization}
2289
- */
2290
- postOrganization: (args: Parameters<typeof postOrganization>[1], options?: RequestOptions) => Promise<{
2291
- extensions?: ({
2292
- metadata?: {
2293
- [key: string]: unknown;
2294
- } | undefined;
2295
- } & {
2296
- [key: string]: unknown;
2297
- }) | undefined;
2298
- } & {
2299
- data: unknown;
2300
- } & {
2301
- data: components["schemas"]["Organization"];
2302
- }>;
2303
- /**
2304
- * Configure an organization's AI provider.
2305
- * POST /v1/organizations/{organization_id}/ai-provider-config
2306
- * Requires a publishable key with the `management` scope.
2307
- * Acts as the user its session token was minted for, so the token must name one.
2308
- * @see {@link postOrganizationAiProviderConfig}
2309
- */
2310
- postOrganizationAiProviderConfig: (args: Parameters<typeof postOrganizationAiProviderConfig>[1], options?: RequestOptions) => Promise<{
2311
- extensions?: ({
2312
- metadata?: {
2313
- [key: string]: unknown;
2314
- } | undefined;
2315
- } & {
2316
- [key: string]: unknown;
2317
- }) | undefined;
2318
- } & {
2319
- data: unknown;
2320
- } & {
2321
- data: components["schemas"]["AiProviderConfig"];
2322
- }>;
2323
- };
2324
- sessions: {
2325
- /**
2326
- * Create a session token using a secret key.
2327
- * POST /v1/sessions
2328
- * Requires a secret key, and takes no other credential.
2329
- * @see {@link postSession}
2330
- */
2331
- postSession: (args: Parameters<typeof postSession>[1], options?: RequestOptions) => Promise<{
2332
- extensions?: ({
2333
- metadata?: {
2334
- [key: string]: unknown;
2335
- } | undefined;
2336
- } & {
2337
- [key: string]: unknown;
2338
- }) | undefined;
2339
- } & {
2340
- data: unknown;
2341
- } & {
2342
- data: components["schemas"]["Session"];
2343
- }>;
2344
- };
2345
- users: {
2346
- /**
2347
- * Decline an invitation.
2348
- * DELETE /v1/me/invitations/{invitation_id}
2349
- * Requires a publishable key with the `studio-embedded` scope.
2350
- * Acts as the user its session token was minted for, so the token must name one.
2351
- * @see {@link deleteMyInvitation}
2352
- */
2353
- deleteMyInvitation: (args: Parameters<typeof deleteMyInvitation>[1], options?: RequestOptions) => Promise<{
2354
- extensions?: ({
2355
- metadata?: {
2356
- [key: string]: unknown;
2357
- } | undefined;
2358
- } & {
2359
- [key: string]: unknown;
2360
- }) | undefined;
2361
- } & {
2362
- data: unknown;
2363
- } & {
2364
- data: null;
2365
- }>;
2366
- /**
2367
- * List the invitations waiting for the acting user.
2368
- * GET /v1/me/invitations
2369
- * Requires a publishable key with the `studio-embedded` scope.
2370
- * Acts as the user its session token was minted for, so the token must name one.
2371
- * @see {@link getMyInvitations}
2372
- */
2373
- getMyInvitations: (args?: Parameters<typeof getMyInvitations>[1], options?: RequestOptions) => Promise<{
2374
- extensions?: ({
2375
- metadata?: {
2376
- [key: string]: unknown;
2377
- } | undefined;
2378
- } & {
2379
- [key: string]: unknown;
2380
- }) | undefined;
2381
- } & {
2382
- data: unknown;
2383
- } & {
2384
- data: components["schemas"]["UserInvitation"][];
2385
- extensions: {
2386
- metadata: components["schemas"]["ListMetadata"];
2387
- };
2388
- }>;
2389
- /**
2390
- * Retrieve the acting user's notification emails for an organization.
2391
- * GET /v1/me/organizations/{organization_id}/notification-preferences
2392
- * Requires a publishable key with the `studio-embedded` scope.
2393
- * Acts as the user its session token was minted for, so the token must name one.
2394
- * @see {@link getMyOrganizationNotificationPreferences}
2395
- */
2396
- getMyOrganizationNotificationPreferences: (args: Parameters<typeof getMyOrganizationNotificationPreferences>[1], options?: RequestOptions) => Promise<{
2397
- extensions?: ({
2398
- metadata?: {
2399
- [key: string]: unknown;
2400
- } | undefined;
2401
- } & {
2402
- [key: string]: unknown;
2403
- }) | undefined;
2404
- } & {
2405
- data: unknown;
2406
- } & {
2407
- data: components["schemas"]["NotificationPreferences"];
2408
- }>;
2409
- /**
2410
- * List the acting user's memberships.
2411
- * GET /v1/me/organizations
2412
- * Requires a publishable key with the `studio-embedded` scope.
2413
- * Acts as the user its session token was minted for, so the token must name one.
2414
- * @see {@link getMyOrganizations}
2415
- */
2416
- getMyOrganizations: (args?: Parameters<typeof getMyOrganizations>[1], options?: RequestOptions) => Promise<{
2417
- extensions?: ({
2418
- metadata?: {
2419
- [key: string]: unknown;
2420
- } | undefined;
2421
- } & {
2422
- [key: string]: unknown;
2423
- }) | undefined;
2424
- } & {
2425
- data: unknown;
2426
- } & {
2427
- data: components["schemas"]["Membership"][];
2428
- extensions: {
2429
- metadata: components["schemas"]["ListMetadata"];
2430
- };
2431
- }>;
2432
- /**
2433
- * Retrieve the acting user's display preferences.
2434
- * GET /v1/me/preferences
2435
- * Requires a publishable key with the `studio-embedded` scope.
2436
- * Acts as the user its session token was minted for, so the token must name one.
2437
- * @see {@link getMyPreferences}
2438
- */
2439
- getMyPreferences: (options?: RequestOptions) => Promise<{
2440
- extensions?: ({
2441
- metadata?: {
2442
- [key: string]: unknown;
2443
- } | undefined;
2444
- } & {
2445
- [key: string]: unknown;
2446
- }) | undefined;
2447
- } & {
2448
- data: unknown;
2449
- } & {
2450
- data: components["schemas"]["Preferences"];
2451
- }>;
2452
- /**
2453
- * Turn the acting user's notification emails for an organization on or off.
2454
- * PATCH /v1/me/organizations/{organization_id}/notification-preferences
2455
- * Requires a publishable key with the `studio-embedded` scope.
2456
- * Acts as the user its session token was minted for, so the token must name one.
2457
- * @see {@link patchMyOrganizationNotificationPreferences}
2458
- */
2459
- patchMyOrganizationNotificationPreferences: (args: Parameters<typeof patchMyOrganizationNotificationPreferences>[1], options?: RequestOptions) => Promise<{
2460
- extensions?: ({
2461
- metadata?: {
2462
- [key: string]: unknown;
2463
- } | undefined;
2464
- } & {
2465
- [key: string]: unknown;
2466
- }) | undefined;
2467
- } & {
2468
- data: unknown;
2469
- } & {
2470
- data: components["schemas"]["NotificationPreferences"];
2471
- }>;
2472
- /**
2473
- * Update the acting user's display preferences.
2474
- * PATCH /v1/me/preferences
2475
- * Requires a publishable key with the `studio-embedded` scope.
2476
- * Acts as the user its session token was minted for, so the token must name one.
2477
- * @see {@link patchMyPreferences}
2478
- */
2479
- patchMyPreferences: (args: Parameters<typeof patchMyPreferences>[1], options?: RequestOptions) => Promise<{
2480
- extensions?: ({
2481
- metadata?: {
2482
- [key: string]: unknown;
2483
- } | undefined;
2484
- } & {
2485
- [key: string]: unknown;
2486
- }) | undefined;
2487
- } & {
2488
- data: unknown;
2489
- } & {
2490
- data: components["schemas"]["Preferences"];
2491
- }>;
2492
- /**
2493
- * Accept an invitation.
2494
- * POST /v1/me/invitations/{invitation_id}/accept
2495
- * Requires a publishable key with the `studio-embedded` scope.
2496
- * Acts as the user its session token was minted for, so the token must name one.
2497
- * @see {@link postMyInvitationAccept}
2498
- */
2499
- postMyInvitationAccept: (args: Parameters<typeof postMyInvitationAccept>[1], options?: RequestOptions) => Promise<{
2500
- extensions?: ({
2501
- metadata?: {
2502
- [key: string]: unknown;
2503
- } | undefined;
2504
- } & {
2505
- [key: string]: unknown;
2506
- }) | undefined;
2507
- } & {
2508
- data: unknown;
2509
- } & {
2510
- data: components["schemas"]["Membership"];
2511
- }>;
2512
- };
2513
- webhooks: {
2514
- /**
2515
- * Delete a webhook endpoint.
2516
- * DELETE /v1/organizations/{organization_id}/webhook-endpoints/{webhook_endpoint_id}
2517
- * Requires a publishable key with the `management` scope.
2518
- * Acts as the user its session token was minted for, so the token must name one.
2519
- * @see {@link deleteOrganizationWebhookEndpoint}
2520
- */
2521
- deleteOrganizationWebhookEndpoint: (args: Parameters<typeof deleteOrganizationWebhookEndpoint>[1], options?: RequestOptions) => Promise<{
2522
- extensions?: ({
2523
- metadata?: {
2524
- [key: string]: unknown;
2525
- } | undefined;
2526
- } & {
2527
- [key: string]: unknown;
2528
- }) | undefined;
2529
- } & {
2530
- data: unknown;
2531
- } & {
2532
- data: null;
2533
- }>;
2534
- /**
2535
- * List an organization's webhook deliveries.
2536
- * GET /v1/organizations/{organization_id}/webhook-deliveries
2537
- * Requires a publishable key with the `management` scope.
2538
- * @see {@link getOrganizationWebhookDeliveries}
2539
- */
2540
- getOrganizationWebhookDeliveries: (args: Parameters<typeof getOrganizationWebhookDeliveries>[1], options?: RequestOptions) => Promise<{
2541
- extensions?: ({
2542
- metadata?: {
2543
- [key: string]: unknown;
2544
- } | undefined;
2545
- } & {
2546
- [key: string]: unknown;
2547
- }) | undefined;
2548
- } & {
2549
- data: unknown;
2550
- } & {
2551
- data: components["schemas"]["WebhookDelivery"][];
2552
- extensions: {
2553
- metadata: components["schemas"]["ListMetadata"];
2554
- };
2555
- }>;
2556
- /**
2557
- * Retrieve a webhook delivery with its attempts.
2558
- * GET /v1/organizations/{organization_id}/webhook-deliveries/{delivery_id}
2559
- * Requires a publishable key with the `management` scope.
2560
- * @see {@link getOrganizationWebhookDelivery}
2561
- */
2562
- getOrganizationWebhookDelivery: (args: Parameters<typeof getOrganizationWebhookDelivery>[1], options?: RequestOptions) => Promise<{
2563
- extensions?: ({
2564
- metadata?: {
2565
- [key: string]: unknown;
2566
- } | undefined;
2567
- } & {
2568
- [key: string]: unknown;
2569
- }) | undefined;
2570
- } & {
2571
- data: unknown;
2572
- } & {
2573
- data: components["schemas"]["WebhookDeliveryWithAttempts"];
2574
- }>;
2575
- /**
2576
- * Retrieve a webhook endpoint.
2577
- * GET /v1/organizations/{organization_id}/webhook-endpoints/{webhook_endpoint_id}
2578
- * Requires a publishable key with the `management` scope.
2579
- * @see {@link getOrganizationWebhookEndpoint}
2580
- */
2581
- getOrganizationWebhookEndpoint: (args: Parameters<typeof getOrganizationWebhookEndpoint>[1], options?: RequestOptions) => Promise<{
2582
- extensions?: ({
2583
- metadata?: {
2584
- [key: string]: unknown;
2585
- } | undefined;
2586
- } & {
2587
- [key: string]: unknown;
2588
- }) | undefined;
2589
- } & {
2590
- data: unknown;
2591
- } & {
2592
- data: components["schemas"]["WebhookEndpoint"];
2593
- }>;
2594
- /**
2595
- * List an organization's webhook endpoints.
2596
- * GET /v1/organizations/{organization_id}/webhook-endpoints
2597
- * Requires a publishable key with the `management` scope.
2598
- * @see {@link getOrganizationWebhookEndpoints}
2599
- */
2600
- getOrganizationWebhookEndpoints: (args: Parameters<typeof getOrganizationWebhookEndpoints>[1], options?: RequestOptions) => Promise<{
2601
- extensions?: ({
2602
- metadata?: {
2603
- [key: string]: unknown;
2604
- } | undefined;
2605
- } & {
2606
- [key: string]: unknown;
2607
- }) | undefined;
2608
- } & {
2609
- data: unknown;
2610
- } & {
2611
- data: components["schemas"]["WebhookEndpoint"][];
2612
- extensions: {
2613
- metadata: components["schemas"]["ListMetadata"];
2614
- };
2615
- }>;
2616
- /**
2617
- * Retrieve a webhook event with its deliveries.
2618
- * GET /v1/organizations/{organization_id}/webhook-events/{event_id}
2619
- * Requires a publishable key with the `management` scope.
2620
- * @see {@link getOrganizationWebhookEvent}
2621
- */
2622
- getOrganizationWebhookEvent: (args: Parameters<typeof getOrganizationWebhookEvent>[1], options?: RequestOptions) => Promise<{
2623
- extensions?: ({
2624
- metadata?: {
2625
- [key: string]: unknown;
2626
- } | undefined;
2627
- } & {
2628
- [key: string]: unknown;
2629
- }) | undefined;
2630
- } & {
2631
- data: unknown;
2632
- } & {
2633
- data: components["schemas"]["WebhookEventWithDeliveries"];
2634
- }>;
2635
- /**
2636
- * List an organization's webhook events.
2637
- * GET /v1/organizations/{organization_id}/webhook-events
2638
- * Requires a publishable key with the `management` scope.
2639
- * @see {@link getOrganizationWebhookEvents}
2640
- */
2641
- getOrganizationWebhookEvents: (args: Parameters<typeof getOrganizationWebhookEvents>[1], options?: RequestOptions) => Promise<{
2642
- extensions?: ({
2643
- metadata?: {
2644
- [key: string]: unknown;
2645
- } | undefined;
2646
- } & {
2647
- [key: string]: unknown;
2648
- }) | undefined;
2649
- } & {
2650
- data: unknown;
2651
- } & {
2652
- data: components["schemas"]["WebhookEvent"][];
2653
- extensions: {
2654
- metadata: components["schemas"]["ListMetadata"];
2655
- };
2656
- }>;
2657
- /**
2658
- * Retrieve the reliability of an organization's webhooks.
2659
- * GET /v1/organizations/{organization_id}/webhook-health
2660
- * Requires a publishable key with the `management` scope.
2661
- * @see {@link getOrganizationWebhookHealth}
2662
- */
2663
- getOrganizationWebhookHealth: (args: Parameters<typeof getOrganizationWebhookHealth>[1], options?: RequestOptions) => Promise<{
2664
- extensions?: ({
2665
- metadata?: {
2666
- [key: string]: unknown;
2667
- } | undefined;
2668
- } & {
2669
- [key: string]: unknown;
2670
- }) | undefined;
2671
- } & {
2672
- data: unknown;
2673
- } & {
2674
- data: components["schemas"]["WebhookHealth"];
2675
- }>;
2676
- /**
2677
- * List the public webhook event types.
2678
- * GET /v1/webhook-event-types
2679
- * Requires a publishable key with the `management` scope.
2680
- * @see {@link getWebhookEventTypes}
2681
- */
2682
- getWebhookEventTypes: (options?: RequestOptions) => Promise<{
2683
- extensions?: ({
2684
- metadata?: {
2685
- [key: string]: unknown;
2686
- } | undefined;
2687
- } & {
2688
- [key: string]: unknown;
2689
- }) | undefined;
2690
- } & {
2691
- data: unknown;
2692
- } & {
2693
- data: components["schemas"]["WebhookEventCatalogEntry"][];
2694
- }>;
2695
- /**
2696
- * Update a webhook endpoint.
2697
- * PATCH /v1/organizations/{organization_id}/webhook-endpoints/{webhook_endpoint_id}
2698
- * Requires a publishable key with the `management` scope.
2699
- * Acts as the user its session token was minted for, so the token must name one.
2700
- * @see {@link patchOrganizationWebhookEndpoint}
2701
- */
2702
- patchOrganizationWebhookEndpoint: (args: Parameters<typeof patchOrganizationWebhookEndpoint>[1], options?: RequestOptions) => Promise<{
2703
- extensions?: ({
2704
- metadata?: {
2705
- [key: string]: unknown;
2706
- } | undefined;
2707
- } & {
2708
- [key: string]: unknown;
2709
- }) | undefined;
2710
- } & {
2711
- data: unknown;
2712
- } & {
2713
- data: components["schemas"]["WebhookEndpoint"];
2714
- }>;
2715
- /**
2716
- * Resend an event, send a test event, or redeliver an endpoint's events.
2717
- * POST /v1/organizations/{organization_id}/webhook-deliveries
2718
- * Requires a publishable key with the `management` scope.
2719
- * Acts as the user its session token was minted for, so the token must name one.
2720
- * @see {@link postOrganizationWebhookDelivery}
2721
- */
2722
- postOrganizationWebhookDelivery: (args: Parameters<typeof postOrganizationWebhookDelivery>[1], options?: RequestOptions) => Promise<{
2723
- extensions?: ({
2724
- metadata?: {
2725
- [key: string]: unknown;
2726
- } | undefined;
2727
- } & {
2728
- [key: string]: unknown;
2729
- }) | undefined;
2730
- } & {
2731
- data: unknown;
2732
- } & {
2733
- data: components["schemas"]["WebhookDeliveryTrigger"];
2734
- }>;
2735
- /**
2736
- * Create a webhook endpoint.
2737
- * POST /v1/organizations/{organization_id}/webhook-endpoints
2738
- * Requires a publishable key with the `management` scope.
2739
- * Acts as the user its session token was minted for, so the token must name one.
2740
- * @see {@link postOrganizationWebhookEndpoint}
2741
- */
2742
- postOrganizationWebhookEndpoint: (args: Parameters<typeof postOrganizationWebhookEndpoint>[1], options?: RequestOptions) => Promise<{
2743
- extensions?: ({
2744
- metadata?: {
2745
- [key: string]: unknown;
2746
- } | undefined;
2747
- } & {
2748
- [key: string]: unknown;
2749
- }) | undefined;
2750
- } & {
2751
- data: unknown;
2752
- } & {
2753
- data: components["schemas"]["WebhookEndpointWithSecret"];
2754
- }>;
2755
- };
2756
- };
2757
- agent: {
2758
- runs: {
2759
- /**
2760
- * Stream an agent run's events over Server-Sent Events.
2761
- * GET /v1/agent/runs/{run_id}/events
2762
- * Requires a publishable key with the `studio-embedded` scope.
2763
- * Acts as the user its session token was minted for, so the token must name one.
2764
- * @see {@link getAgentRunEvents}
2765
- */
2766
- getAgentRunEvents: (args: Parameters<typeof getAgentRunEvents>[1], options?: RequestOptions) => Promise<BinaryBody>;
2767
- /**
2768
- * Start a new agent run.
2769
- * POST /v1/agent/runs
2770
- * Requires a publishable key with the `studio-embedded` scope.
2771
- * Acts as the user its session token was minted for, so the token must name one.
2772
- * @see {@link postAgentRun}
2773
- */
2774
- postAgentRun: (args: Parameters<typeof postAgentRun>[1], options?: RequestOptions) => Promise<{
2775
- extensions?: ({
2776
- metadata?: {
2777
- [key: string]: unknown;
2778
- } | undefined;
2779
- } & {
2780
- [key: string]: unknown;
2781
- }) | undefined;
2782
- } & {
2783
- data: unknown;
2784
- } & {
2785
- data: components["schemas"]["AgentRun"];
2786
- }>;
2787
- /**
2788
- * Record the user's rating of one assistant message in a run.
2789
- * POST /v1/agent/runs/{run_id}/feedback
2790
- * Requires a publishable key with the `studio-embedded` scope.
2791
- * Acts as the user its session token was minted for, so the token must name one.
2792
- * @see {@link postAgentRunFeedback}
2793
- */
2794
- postAgentRunFeedback: (args: Parameters<typeof postAgentRunFeedback>[1], options?: RequestOptions) => Promise<{
2795
- extensions?: ({
2796
- metadata?: {
2797
- [key: string]: unknown;
2798
- } | undefined;
2799
- } & {
2800
- [key: string]: unknown;
2801
- }) | undefined;
2802
- } & {
2803
- data: unknown;
2804
- } & {
2805
- data: null;
2806
- }>;
2807
- /**
2808
- * Send an input signal into a running agent run.
2809
- * POST /v1/agent/runs/{run_id}/input
2810
- * Requires a publishable key with the `studio-embedded` scope.
2811
- * Acts as the user its session token was minted for, so the token must name one.
2812
- * @see {@link postAgentRunInput}
2813
- */
2814
- postAgentRunInput: (args: Parameters<typeof postAgentRunInput>[1], options?: RequestOptions) => Promise<{
2815
- extensions?: ({
2816
- metadata?: {
2817
- [key: string]: unknown;
2818
- } | undefined;
2819
- } & {
2820
- [key: string]: unknown;
2821
- }) | undefined;
2822
- } & {
2823
- data: unknown;
2824
- } & {
2825
- data: null;
2826
- }>;
2827
- };
2828
- };
2829
- studio: {
2830
- activities: {
2831
- /**
2832
- * List all activity categories and their activities.
2833
- * GET /v1/activities
2834
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
2835
- * @see {@link getActivities}
2836
- */
2837
- getActivities: (options?: RequestOptions) => Promise<{
2838
- extensions?: ({
2839
- metadata?: {
2840
- [key: string]: unknown;
2841
- } | undefined;
2842
- } & {
2843
- [key: string]: unknown;
2844
- }) | undefined;
2845
- } & {
2846
- data: unknown;
2847
- } & {
2848
- data: components["schemas"]["CategoryActivities"][];
2849
- }>;
2850
- };
2851
- collab: {
2852
- /**
2853
- * Stream one itinerary's collaboration session over SSE.
2854
- * GET /v1/itineraries/{itinerary_id}/events
2855
- * Requires a publishable key with the `studio-embedded` scope.
2856
- * Acts as the user its session token was minted for, so the token must name one.
2857
- * @see {@link getItineraryEvents}
2858
- */
2859
- getItineraryEvents: (args: Parameters<typeof getItineraryEvents>[1], options?: RequestOptions) => Promise<BinaryBody>;
2860
- /**
2861
- * Stream an organization's list events over SSE.
2862
- * GET /v1/organizations/{organization_id}/events
2863
- * Requires a publishable key with the `studio-embedded` scope.
2864
- * Acts as the user its session token was minted for, so the token must name one.
2865
- * @see {@link getOrganizationEvents}
2866
- */
2867
- getOrganizationEvents: (args: Parameters<typeof getOrganizationEvents>[1], options?: RequestOptions) => Promise<BinaryBody>;
2868
- /**
2869
- * Stream one zone's collaboration session over SSE.
2870
- * GET /v1/zones/{zone_id}/events
2871
- * Requires a publishable key with the `studio-embedded` scope.
2872
- * Acts as the user its session token was minted for, so the token must name one.
2873
- * @see {@link getZoneEvents}
2874
- */
2875
- getZoneEvents: (args: Parameters<typeof getZoneEvents>[1], options?: RequestOptions) => Promise<BinaryBody>;
2876
- /**
2877
- * Send a collaboration signal into an itinerary's session.
2878
- * POST /v1/itineraries/{itinerary_id}/collab
2879
- * Requires a publishable key with the `studio-embedded` scope.
2880
- * Acts as the user its session token was minted for, so the token must name one.
2881
- * @see {@link postItineraryCollab}
2882
- */
2883
- postItineraryCollab: (args: Parameters<typeof postItineraryCollab>[1], options?: RequestOptions) => Promise<{
2884
- extensions?: ({
2885
- metadata?: {
2886
- [key: string]: unknown;
2887
- } | undefined;
2888
- } & {
2889
- [key: string]: unknown;
2890
- }) | undefined;
2891
- } & {
2892
- data: unknown;
2893
- } & {
2894
- data: null;
2895
- }>;
2896
- /**
2897
- * Send a collaboration signal into a zone's session.
2898
- * POST /v1/zones/{zone_id}/collab
2899
- * Requires a publishable key with the `studio-embedded` scope.
2900
- * Acts as the user its session token was minted for, so the token must name one.
2901
- * @see {@link postZoneCollab}
2902
- */
2903
- postZoneCollab: (args: Parameters<typeof postZoneCollab>[1], options?: RequestOptions) => Promise<{
2904
- extensions?: ({
2905
- metadata?: {
2906
- [key: string]: unknown;
2907
- } | undefined;
2908
- } & {
2909
- [key: string]: unknown;
2910
- }) | undefined;
2911
- } & {
2912
- data: unknown;
2913
- } & {
2914
- data: null;
2915
- }>;
2916
- };
2917
- collections: {
2918
- /**
2919
- * Delete a collection.
2920
- * DELETE /v1/collections/{collection_id}
2921
- * Requires a publishable key with the `studio-embedded` scope.
2922
- * Acts as the user its session token was minted for, so the token must name one.
2923
- * @see {@link deleteCollection}
2924
- */
2925
- deleteCollection: (args: Parameters<typeof deleteCollection>[1], options?: RequestOptions) => Promise<{
2926
- extensions?: ({
2927
- metadata?: {
2928
- [key: string]: unknown;
2929
- } | undefined;
2930
- } & {
2931
- [key: string]: unknown;
2932
- }) | undefined;
2933
- } & {
2934
- data: unknown;
2935
- } & {
2936
- data: null;
2937
- }>;
2938
- /**
2939
- * Remove an itinerary from a collection.
2940
- * DELETE /v1/collections/{collection_id}/itineraries/{itinerary_id}
2941
- * Requires a publishable key with the `studio-embedded` scope.
2942
- * Acts as the user its session token was minted for, so the token must name one.
2943
- * @see {@link deleteCollectionItinerary}
2944
- */
2945
- deleteCollectionItinerary: (args: Parameters<typeof deleteCollectionItinerary>[1], options?: RequestOptions) => Promise<{
2946
- extensions?: ({
2947
- metadata?: {
2948
- [key: string]: unknown;
2949
- } | undefined;
2950
- } & {
2951
- [key: string]: unknown;
2952
- }) | undefined;
2953
- } & {
2954
- data: unknown;
2955
- } & {
2956
- data: components["schemas"]["Collection"];
2957
- }>;
2958
- /**
2959
- * Remove the collection's share link.
2960
- * DELETE /v1/collections/{collection_id}/share-link
2961
- * Requires a publishable key with the `studio-embedded` scope.
2962
- * Acts as the user its session token was minted for, so the token must name one.
2963
- * @see {@link deleteCollectionShareLink}
2964
- */
2965
- deleteCollectionShareLink: (args: Parameters<typeof deleteCollectionShareLink>[1], options?: RequestOptions) => Promise<{
2966
- extensions?: ({
2967
- metadata?: {
2968
- [key: string]: unknown;
2969
- } | undefined;
2970
- } & {
2971
- [key: string]: unknown;
2972
- }) | undefined;
2973
- } & {
2974
- data: unknown;
2975
- } & {
2976
- data: null;
2977
- }>;
2978
- /**
2979
- * Remove a zone from a collection.
2980
- * DELETE /v1/collections/{collection_id}/zones/{zone_id}
2981
- * Requires a publishable key with the `studio-embedded` scope.
2982
- * Acts as the user its session token was minted for, so the token must name one.
2983
- * @see {@link deleteCollectionZone}
2984
- */
2985
- deleteCollectionZone: (args: Parameters<typeof deleteCollectionZone>[1], options?: RequestOptions) => Promise<{
2986
- extensions?: ({
2987
- metadata?: {
2988
- [key: string]: unknown;
2989
- } | undefined;
2990
- } & {
2991
- [key: string]: unknown;
2992
- }) | undefined;
2993
- } & {
2994
- data: unknown;
2995
- } & {
2996
- data: components["schemas"]["Collection"];
2997
- }>;
2998
- /**
2999
- * Retrieve a single collection with its itineraries and zones.
3000
- * GET /v1/collections/{collection_id}
3001
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3002
- * @see {@link getCollection}
3003
- */
3004
- getCollection: (args: Parameters<typeof getCollection>[1], options?: RequestOptions) => Promise<{
3005
- extensions?: ({
3006
- metadata?: {
3007
- [key: string]: unknown;
3008
- } | undefined;
3009
- } & {
3010
- [key: string]: unknown;
3011
- }) | undefined;
3012
- } & {
3013
- data: unknown;
3014
- } & {
3015
- data: components["schemas"]["Collection"];
3016
- }>;
3017
- /**
3018
- * List the itineraries a collection contains.
3019
- * GET /v1/collections/{collection_id}/itineraries
3020
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3021
- * @see {@link getCollectionItineraries}
3022
- */
3023
- getCollectionItineraries: (args: Parameters<typeof getCollectionItineraries>[1], options?: RequestOptions) => Promise<{
3024
- extensions?: ({
3025
- metadata?: {
3026
- [key: string]: unknown;
3027
- } | undefined;
3028
- } & {
3029
- [key: string]: unknown;
3030
- }) | undefined;
3031
- } & {
3032
- data: unknown;
3033
- } & {
3034
- data: components["schemas"]["Itinerary"][];
3035
- extensions: {
3036
- metadata: components["schemas"]["ListMetadata"];
3037
- };
3038
- }>;
3039
- /**
3040
- * List collections.
3041
- * GET /v1/collections
3042
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3043
- * @see {@link getCollections}
3044
- */
3045
- getCollections: (args?: Parameters<typeof getCollections>[1], options?: RequestOptions) => Promise<{
3046
- extensions?: ({
3047
- metadata?: {
3048
- [key: string]: unknown;
3049
- } | undefined;
3050
- } & {
3051
- [key: string]: unknown;
3052
- }) | undefined;
3053
- } & {
3054
- data: unknown;
3055
- } & {
3056
- data: components["schemas"]["Collection"][];
3057
- extensions: {
3058
- metadata: components["schemas"]["ListMetadata"];
3059
- };
3060
- }>;
3061
- /**
3062
- * Read the collection's share link.
3063
- * GET /v1/collections/{collection_id}/share-link
3064
- * Requires a publishable key with the `studio-embedded` scope.
3065
- * Acts as the user its session token was minted for, so the token must name one.
3066
- * @see {@link getCollectionShareLink}
3067
- */
3068
- getCollectionShareLink: (args: Parameters<typeof getCollectionShareLink>[1], options?: RequestOptions) => Promise<{
3069
- extensions?: ({
3070
- metadata?: {
3071
- [key: string]: unknown;
3072
- } | undefined;
3073
- } & {
3074
- [key: string]: unknown;
3075
- }) | undefined;
3076
- } & {
3077
- data: unknown;
3078
- } & {
3079
- data: components["schemas"]["ShareLink"] | null;
3080
- }>;
3081
- /**
3082
- * List the zones a collection contains.
3083
- * GET /v1/collections/{collection_id}/zones
3084
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3085
- * @see {@link getCollectionZones}
3086
- */
3087
- getCollectionZones: (args: Parameters<typeof getCollectionZones>[1], options?: RequestOptions) => Promise<{
3088
- extensions?: ({
3089
- metadata?: {
3090
- [key: string]: unknown;
3091
- } | undefined;
3092
- } & {
3093
- [key: string]: unknown;
3094
- }) | undefined;
3095
- } & {
3096
- data: unknown;
3097
- } & {
3098
- data: components["schemas"]["Zone"][];
3099
- extensions: {
3100
- metadata: components["schemas"]["ListMetadata"];
3101
- };
3102
- }>;
3103
- /**
3104
- * Update an existing collection.
3105
- * PATCH /v1/collections/{collection_id}
3106
- * Requires a publishable key with the `studio-embedded` scope.
3107
- * Acts as the user its session token was minted for, so the token must name one.
3108
- * @see {@link patchCollection}
3109
- */
3110
- patchCollection: (args: Parameters<typeof patchCollection>[1], options?: RequestOptions) => Promise<{
3111
- extensions?: ({
3112
- metadata?: {
3113
- [key: string]: unknown;
3114
- } | undefined;
3115
- } & {
3116
- [key: string]: unknown;
3117
- }) | undefined;
3118
- } & {
3119
- data: unknown;
3120
- } & {
3121
- data: components["schemas"]["Collection"];
3122
- }>;
3123
- /**
3124
- * Set an itinerary's position within a collection.
3125
- * PATCH /v1/collections/{collection_id}/itineraries/{itinerary_id}
3126
- * Requires a publishable key with the `studio-embedded` scope.
3127
- * Acts as the user its session token was minted for, so the token must name one.
3128
- * @see {@link patchCollectionItinerary}
3129
- */
3130
- patchCollectionItinerary: (args: Parameters<typeof patchCollectionItinerary>[1], options?: RequestOptions) => Promise<{
3131
- extensions?: ({
3132
- metadata?: {
3133
- [key: string]: unknown;
3134
- } | undefined;
3135
- } & {
3136
- [key: string]: unknown;
3137
- }) | undefined;
3138
- } & {
3139
- data: unknown;
3140
- } & {
3141
- data: components["schemas"]["Collection"];
3142
- }>;
3143
- /**
3144
- * Create a new collection.
3145
- * POST /v1/collections
3146
- * Requires a publishable key with the `studio-embedded` scope.
3147
- * Acts as the user its session token was minted for, so the token must name one.
3148
- * @see {@link postCollection}
3149
- */
3150
- postCollection: (args: Parameters<typeof postCollection>[1], options?: RequestOptions) => Promise<{
3151
- extensions?: ({
3152
- metadata?: {
3153
- [key: string]: unknown;
3154
- } | undefined;
3155
- } & {
3156
- [key: string]: unknown;
3157
- }) | undefined;
3158
- } & {
3159
- data: unknown;
3160
- } & {
3161
- data: components["schemas"]["Collection"];
3162
- }>;
3163
- /**
3164
- * Add itineraries to a collection.
3165
- * POST /v1/collections/{collection_id}/itineraries
3166
- * Requires a publishable key with the `studio-embedded` scope.
3167
- * Acts as the user its session token was minted for, so the token must name one.
3168
- * @see {@link postCollectionItineraries}
3169
- */
3170
- postCollectionItineraries: (args: Parameters<typeof postCollectionItineraries>[1], options?: RequestOptions) => Promise<{
3171
- extensions?: ({
3172
- metadata?: {
3173
- [key: string]: unknown;
3174
- } | undefined;
3175
- } & {
3176
- [key: string]: unknown;
3177
- }) | undefined;
3178
- } & {
3179
- data: unknown;
3180
- } & {
3181
- data: components["schemas"]["Collection"];
3182
- }>;
3183
- /**
3184
- * Mint the collection's share link, or return the one it has.
3185
- * POST /v1/collections/{collection_id}/share-link
3186
- * Requires a publishable key with the `studio-embedded` scope.
3187
- * Acts as the user its session token was minted for, so the token must name one.
3188
- * @see {@link postCollectionShareLink}
3189
- */
3190
- postCollectionShareLink: (args: Parameters<typeof postCollectionShareLink>[1], options?: RequestOptions) => Promise<{
3191
- extensions?: ({
3192
- metadata?: {
3193
- [key: string]: unknown;
3194
- } | undefined;
3195
- } & {
3196
- [key: string]: unknown;
3197
- }) | undefined;
3198
- } & {
3199
- data: unknown;
3200
- } & {
3201
- data: components["schemas"]["ShareLink"];
3202
- }>;
3203
- /**
3204
- * Rotate the collection's share link.
3205
- * POST /v1/collections/{collection_id}/share-link/rotate
3206
- * Requires a publishable key with the `studio-embedded` scope.
3207
- * Acts as the user its session token was minted for, so the token must name one.
3208
- * @see {@link postCollectionShareLinkRotate}
3209
- */
3210
- postCollectionShareLinkRotate: (args: Parameters<typeof postCollectionShareLinkRotate>[1], options?: RequestOptions) => Promise<{
3211
- extensions?: ({
3212
- metadata?: {
3213
- [key: string]: unknown;
3214
- } | undefined;
3215
- } & {
3216
- [key: string]: unknown;
3217
- }) | undefined;
3218
- } & {
3219
- data: unknown;
3220
- } & {
3221
- data: components["schemas"]["ShareLink"];
3222
- }>;
3223
- /**
3224
- * Add zones to a collection.
3225
- * POST /v1/collections/{collection_id}/zones
3226
- * Requires a publishable key with the `studio-embedded` scope.
3227
- * Acts as the user its session token was minted for, so the token must name one.
3228
- * @see {@link postCollectionZones}
3229
- */
3230
- postCollectionZones: (args: Parameters<typeof postCollectionZones>[1], options?: RequestOptions) => Promise<{
3231
- extensions?: ({
3232
- metadata?: {
3233
- [key: string]: unknown;
3234
- } | undefined;
3235
- } & {
3236
- [key: string]: unknown;
3237
- }) | undefined;
3238
- } & {
3239
- data: unknown;
3240
- } & {
3241
- data: components["schemas"]["Collection"];
3242
- }>;
3243
- };
3244
- itineraries: {
3245
- /**
3246
- * Delete an itinerary.
3247
- * DELETE /v1/itineraries/{itinerary_id}
3248
- * Requires a publishable key with the `studio-embedded` scope.
3249
- * Acts as the user its session token was minted for, so the token must name one.
3250
- * @see {@link deleteItinerary}
3251
- */
3252
- deleteItinerary: (args: Parameters<typeof deleteItinerary>[1], options?: RequestOptions) => Promise<{
3253
- extensions?: ({
3254
- metadata?: {
3255
- [key: string]: unknown;
3256
- } | undefined;
3257
- } & {
3258
- [key: string]: unknown;
3259
- }) | undefined;
3260
- } & {
3261
- data: unknown;
3262
- } & {
3263
- data: null;
3264
- }>;
3265
- /**
3266
- * Take the itinerary's publication down.
3267
- * DELETE /v1/itineraries/{itinerary_id}/publication
3268
- * Requires a publishable key with the `studio-embedded` scope.
3269
- * Acts as the user its session token was minted for, so the token must name one.
3270
- * @see {@link deleteItineraryPublication}
3271
- */
3272
- deleteItineraryPublication: (args: Parameters<typeof deleteItineraryPublication>[1], options?: RequestOptions) => Promise<{
3273
- extensions?: ({
3274
- metadata?: {
3275
- [key: string]: unknown;
3276
- } | undefined;
3277
- } & {
3278
- [key: string]: unknown;
3279
- }) | undefined;
3280
- } & {
3281
- data: unknown;
3282
- } & {
3283
- data: components["schemas"]["ItineraryWithDetails"];
3284
- }>;
3285
- /**
3286
- * Delete a segment from an itinerary.
3287
- * DELETE /v1/itineraries/{itinerary_id}/segments/{segment_id}
3288
- * Requires a publishable key with the `studio-embedded` scope.
3289
- * Acts as the user its session token was minted for, so the token must name one.
3290
- * @see {@link deleteItinerarySegment}
3291
- */
3292
- deleteItinerarySegment: (args: Parameters<typeof deleteItinerarySegment>[1], options?: RequestOptions) => Promise<{
3293
- extensions?: ({
3294
- metadata?: {
3295
- [key: string]: unknown;
3296
- } | undefined;
3297
- } & {
3298
- [key: string]: unknown;
3299
- }) | undefined;
3300
- } & {
3301
- data: unknown;
3302
- } & {
3303
- data: components["schemas"]["ItineraryWithDetails"];
3304
- }>;
3305
- /**
3306
- * Delete a segment group.
3307
- * DELETE /v1/itineraries/{itinerary_id}/segment-groups/{group_id}
3308
- * Requires a publishable key with the `studio-embedded` scope.
3309
- * Acts as the user its session token was minted for, so the token must name one.
3310
- * @see {@link deleteItinerarySegmentGroup}
3311
- */
3312
- deleteItinerarySegmentGroup: (args: Parameters<typeof deleteItinerarySegmentGroup>[1], options?: RequestOptions) => Promise<{
3313
- extensions?: ({
3314
- metadata?: {
3315
- [key: string]: unknown;
3316
- } | undefined;
3317
- } & {
3318
- [key: string]: unknown;
3319
- }) | undefined;
3320
- } & {
3321
- data: unknown;
3322
- } & {
3323
- data: components["schemas"]["ItineraryWithDetails"];
3324
- }>;
3325
- /**
3326
- * Remove the itinerary's share link.
3327
- * DELETE /v1/itineraries/{itinerary_id}/share-link
3328
- * Requires a publishable key with the `studio-embedded` scope.
3329
- * Acts as the user its session token was minted for, so the token must name one.
3330
- * @see {@link deleteItineraryShareLink}
3331
- */
3332
- deleteItineraryShareLink: (args: Parameters<typeof deleteItineraryShareLink>[1], options?: RequestOptions) => Promise<{
3333
- extensions?: ({
3334
- metadata?: {
3335
- [key: string]: unknown;
3336
- } | undefined;
3337
- } & {
3338
- [key: string]: unknown;
3339
- }) | undefined;
3340
- } & {
3341
- data: unknown;
3342
- } & {
3343
- data: null;
3344
- }>;
3345
- /**
3346
- * Delete a waypoint from an itinerary.
3347
- * DELETE /v1/itineraries/{itinerary_id}/waypoints/{waypoint_id}
3348
- * Requires a publishable key with the `studio-embedded` scope.
3349
- * Acts as the user its session token was minted for, so the token must name one.
3350
- * @see {@link deleteItineraryWaypoint}
3351
- */
3352
- deleteItineraryWaypoint: (args: Parameters<typeof deleteItineraryWaypoint>[1], options?: RequestOptions) => Promise<{
3353
- extensions?: ({
3354
- metadata?: {
3355
- [key: string]: unknown;
3356
- } | undefined;
3357
- } & {
3358
- [key: string]: unknown;
3359
- }) | undefined;
3360
- } & {
3361
- data: unknown;
3362
- } & {
3363
- data: components["schemas"]["ItineraryWithDetails"];
3364
- }>;
3365
- /**
3366
- * List the itineraries the credential reaches.
3367
- * GET /v1/itineraries
3368
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3369
- * @see {@link getItineraries}
3370
- */
3371
- getItineraries: (args?: Parameters<typeof getItineraries>[1], options?: RequestOptions) => Promise<{
3372
- extensions?: ({
3373
- metadata?: {
3374
- [key: string]: unknown;
3375
- } | undefined;
3376
- } & {
3377
- [key: string]: unknown;
3378
- }) | undefined;
3379
- } & {
3380
- data: unknown;
3381
- } & {
3382
- data: components["schemas"]["Itinerary"][];
3383
- extensions: {
3384
- metadata: components["schemas"]["ListMetadata"];
3385
- };
3386
- }>;
3387
- /**
3388
- * Retrieve a single itinerary with its segments and waypoints.
3389
- * GET /v1/itineraries/{itinerary_id}
3390
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3391
- * @see {@link getItinerary}
3392
- */
3393
- getItinerary: (args: Parameters<typeof getItinerary>[1], options?: RequestOptions) => Promise<{
3394
- extensions?: ({
3395
- metadata?: {
3396
- [key: string]: unknown;
3397
- } | undefined;
3398
- } & {
3399
- [key: string]: unknown;
3400
- }) | undefined;
3401
- } & {
3402
- data: unknown;
3403
- } & {
3404
- data: components["schemas"]["ItineraryWithDetails"];
3405
- }>;
3406
- /**
3407
- * Export an itinerary as a downloadable file.
3408
- * GET /v1/itineraries/{itinerary_id}/export
3409
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3410
- * @see {@link getItineraryExport}
3411
- */
3412
- getItineraryExport: (args: Parameters<typeof getItineraryExport>[1], options?: RequestOptions) => Promise<BinaryBody>;
3413
- /**
3414
- * Re-time an itinerary at a travel pace the caller names.
3415
- * GET /v1/itineraries/{itinerary_id}/pace
3416
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3417
- * @see {@link getItineraryPace}
3418
- */
3419
- getItineraryPace: (args: Parameters<typeof getItineraryPace>[1], options?: RequestOptions) => Promise<{
3420
- extensions?: ({
3421
- metadata?: {
3422
- [key: string]: unknown;
3423
- } | undefined;
3424
- } & {
3425
- [key: string]: unknown;
3426
- }) | undefined;
3427
- } & {
3428
- data: unknown;
3429
- } & {
3430
- data: components["schemas"]["ItineraryPace"];
3431
- }>;
3432
- /**
3433
- * Read the itinerary's share link.
3434
- * GET /v1/itineraries/{itinerary_id}/share-link
3435
- * Requires a publishable key with the `studio-embedded` scope.
3436
- * Acts as the user its session token was minted for, so the token must name one.
3437
- * @see {@link getItineraryShareLink}
3438
- */
3439
- getItineraryShareLink: (args: Parameters<typeof getItineraryShareLink>[1], options?: RequestOptions) => Promise<{
3440
- extensions?: ({
3441
- metadata?: {
3442
- [key: string]: unknown;
3443
- } | undefined;
3444
- } & {
3445
- [key: string]: unknown;
3446
- }) | undefined;
3447
- } & {
3448
- data: unknown;
3449
- } & {
3450
- data: components["schemas"]["ShareLink"] | null;
3451
- }>;
3452
- /**
3453
- * Update an existing itinerary.
3454
- * PATCH /v1/itineraries/{itinerary_id}
3455
- * Requires a publishable key with the `studio-embedded` scope.
3456
- * Acts as the user its session token was minted for, so the token must name one.
3457
- * @see {@link patchItinerary}
3458
- */
3459
- patchItinerary: (args: Parameters<typeof patchItinerary>[1], options?: RequestOptions) => Promise<{
3460
- extensions?: ({
3461
- metadata?: {
3462
- [key: string]: unknown;
3463
- } | undefined;
3464
- } & {
3465
- [key: string]: unknown;
3466
- }) | undefined;
3467
- } & {
3468
- data: unknown;
3469
- } & {
3470
- data: components["schemas"]["ItineraryWithDetails"];
3471
- }>;
3472
- /**
3473
- * Update an existing segment.
3474
- * PATCH /v1/itineraries/{itinerary_id}/segments/{segment_id}
3475
- * Requires a publishable key with the `studio-embedded` scope.
3476
- * Acts as the user its session token was minted for, so the token must name one.
3477
- * @see {@link patchItinerarySegment}
3478
- */
3479
- patchItinerarySegment: (args: Parameters<typeof patchItinerarySegment>[1], options?: RequestOptions) => Promise<{
3480
- extensions?: ({
3481
- metadata?: {
3482
- [key: string]: unknown;
3483
- } | undefined;
3484
- } & {
3485
- [key: string]: unknown;
3486
- }) | undefined;
3487
- } & {
3488
- data: unknown;
3489
- } & {
3490
- data: components["schemas"]["ItineraryWithDetails"];
3491
- }>;
3492
- /**
3493
- * Update a segment group.
3494
- * PATCH /v1/itineraries/{itinerary_id}/segment-groups/{group_id}
3495
- * Requires a publishable key with the `studio-embedded` scope.
3496
- * Acts as the user its session token was minted for, so the token must name one.
3497
- * @see {@link patchItinerarySegmentGroup}
3498
- */
3499
- patchItinerarySegmentGroup: (args: Parameters<typeof patchItinerarySegmentGroup>[1], options?: RequestOptions) => Promise<{
3500
- extensions?: ({
3501
- metadata?: {
3502
- [key: string]: unknown;
3503
- } | undefined;
3504
- } & {
3505
- [key: string]: unknown;
3506
- }) | undefined;
3507
- } & {
3508
- data: unknown;
3509
- } & {
3510
- data: components["schemas"]["ItineraryWithDetails"];
3511
- }>;
3512
- /**
3513
- * Update an existing waypoint.
3514
- * PATCH /v1/itineraries/{itinerary_id}/waypoints/{waypoint_id}
3515
- * Requires a publishable key with the `studio-embedded` scope.
3516
- * Acts as the user its session token was minted for, so the token must name one.
3517
- * @see {@link patchItineraryWaypoint}
3518
- */
3519
- patchItineraryWaypoint: (args: Parameters<typeof patchItineraryWaypoint>[1], options?: RequestOptions) => Promise<{
3520
- extensions?: ({
3521
- metadata?: {
3522
- [key: string]: unknown;
3523
- } | undefined;
3524
- } & {
3525
- [key: string]: unknown;
3526
- }) | undefined;
3527
- } & {
3528
- data: unknown;
3529
- } & {
3530
- data: components["schemas"]["ItineraryWithDetails"];
3531
- }>;
3532
- /**
3533
- * Create a new itinerary.
3534
- * POST /v1/itineraries
3535
- * Requires a publishable key with the `studio-embedded` scope.
3536
- * Acts as the user its session token was minted for, so the token must name one.
3537
- * @see {@link postItinerary}
3538
- */
3539
- postItinerary: (args: Parameters<typeof postItinerary>[1], options?: RequestOptions) => Promise<{
3540
- extensions?: ({
3541
- metadata?: {
3542
- [key: string]: unknown;
3543
- } | undefined;
3544
- } & {
3545
- [key: string]: unknown;
3546
- }) | undefined;
3547
- } & {
3548
- data: unknown;
3549
- } & {
3550
- data: components["schemas"]["ItineraryWithDetails"];
3551
- }>;
3552
- /**
3553
- * Duplicate an itinerary into the key's organization.
3554
- * POST /v1/itineraries/{itinerary_id}/duplicate
3555
- * Requires a publishable key with the `studio-embedded` scope.
3556
- * Acts as the user its session token was minted for, so the token must name one.
3557
- * @see {@link postItineraryDuplicate}
3558
- */
3559
- postItineraryDuplicate: (args: Parameters<typeof postItineraryDuplicate>[1], options?: RequestOptions) => Promise<{
3560
- extensions?: ({
3561
- metadata?: {
3562
- [key: string]: unknown;
3563
- } | undefined;
3564
- } & {
3565
- [key: string]: unknown;
3566
- }) | undefined;
3567
- } & {
3568
- data: unknown;
3569
- } & {
3570
- data: components["schemas"]["ItineraryWithDetails"];
3571
- }>;
3572
- /**
3573
- * Confirm an itinerary import, persisting the reviewed draft.
3574
- * POST /v1/itineraries/import
3575
- * Requires a publishable key with the `studio-embedded` scope.
3576
- * Acts as the user its session token was minted for, so the token must name one.
3577
- * @see {@link postItineraryImport}
3578
- */
3579
- postItineraryImport: (args: Parameters<typeof postItineraryImport>[1], options?: RequestOptions) => Promise<{
3580
- extensions?: ({
3581
- metadata?: {
3582
- [key: string]: unknown;
3583
- } | undefined;
3584
- } & {
3585
- [key: string]: unknown;
3586
- }) | undefined;
3587
- } & {
3588
- data: unknown;
3589
- } & {
3590
- data: components["schemas"]["ItineraryWithDetails"];
3591
- }>;
3592
- /**
3593
- * Preview an itinerary import without persisting it.
3594
- * POST /v1/itineraries/preview
3595
- * Requires a publishable key with the `studio-embedded` scope.
3596
- * Acts as the user its session token was minted for, so the token must name one.
3597
- * @see {@link postItineraryPreview}
3598
- */
3599
- postItineraryPreview: (args: Parameters<typeof postItineraryPreview>[1], options?: RequestOptions) => Promise<{
3600
- extensions?: ({
3601
- metadata?: {
3602
- [key: string]: unknown;
3603
- } | undefined;
3604
- } & {
3605
- [key: string]: unknown;
3606
- }) | undefined;
3607
- } & {
3608
- data: unknown;
3609
- } & {
3610
- data: components["schemas"]["ItineraryImportPreview"];
3611
- }>;
3612
- /**
3613
- * Publish the itinerary's current draft.
3614
- * POST /v1/itineraries/{itinerary_id}/publication
3615
- * Requires a publishable key with the `studio-embedded` scope.
3616
- * Acts as the user its session token was minted for, so the token must name one.
3617
- * @see {@link postItineraryPublication}
3618
- */
3619
- postItineraryPublication: (args: Parameters<typeof postItineraryPublication>[1], options?: RequestOptions) => Promise<{
3620
- extensions?: ({
3621
- metadata?: {
3622
- [key: string]: unknown;
3623
- } | undefined;
3624
- } & {
3625
- [key: string]: unknown;
3626
- }) | undefined;
3627
- } & {
3628
- data: unknown;
3629
- } & {
3630
- data: components["schemas"]["ItineraryWithDetails"];
3631
- }>;
3632
- /**
3633
- * Create a segment, at the end of the chain or before another.
3634
- * POST /v1/itineraries/{itinerary_id}/segments
3635
- * Requires a publishable key with the `studio-embedded` scope.
3636
- * Acts as the user its session token was minted for, so the token must name one.
3637
- * @see {@link postItinerarySegment}
3638
- */
3639
- postItinerarySegment: (args: Parameters<typeof postItinerarySegment>[1], options?: RequestOptions) => Promise<{
3640
- extensions?: ({
3641
- metadata?: {
3642
- [key: string]: unknown;
3643
- } | undefined;
3644
- } & {
3645
- [key: string]: unknown;
3646
- }) | undefined;
3647
- } & {
3648
- data: unknown;
3649
- } & {
3650
- data: components["schemas"]["ItineraryWithDetails"];
3651
- extensions: {
3652
- metadata: components["schemas"]["ResponseMetadataCreatedPart"];
3653
- };
3654
- }>;
3655
- /**
3656
- * Convert a segment between routed and freehand.
3657
- * POST /v1/itineraries/{itinerary_id}/segments/{segment_id}/convert
3658
- * Requires a publishable key with the `studio-embedded` scope.
3659
- * Acts as the user its session token was minted for, so the token must name one.
3660
- * @see {@link postItinerarySegmentConvert}
3661
- */
3662
- postItinerarySegmentConvert: (args: Parameters<typeof postItinerarySegmentConvert>[1], options?: RequestOptions) => Promise<{
3663
- extensions?: ({
3664
- metadata?: {
3665
- [key: string]: unknown;
3666
- } | undefined;
3667
- } & {
3668
- [key: string]: unknown;
3669
- }) | undefined;
3670
- } & {
3671
- data: unknown;
3672
- } & {
3673
- data: components["schemas"]["ItineraryWithDetails"];
3674
- }>;
3675
- /**
3676
- * Group a contiguous run of an itinerary's segments.
3677
- * POST /v1/itineraries/{itinerary_id}/segment-groups
3678
- * Requires a publishable key with the `studio-embedded` scope.
3679
- * Acts as the user its session token was minted for, so the token must name one.
3680
- * @see {@link postItinerarySegmentGroup}
3681
- */
3682
- postItinerarySegmentGroup: (args: Parameters<typeof postItinerarySegmentGroup>[1], options?: RequestOptions) => Promise<{
3683
- extensions?: ({
3684
- metadata?: {
3685
- [key: string]: unknown;
3686
- } | undefined;
3687
- } & {
3688
- [key: string]: unknown;
3689
- }) | undefined;
3690
- } & {
3691
- data: unknown;
3692
- } & {
3693
- data: components["schemas"]["ItineraryWithDetails"];
3694
- extensions: {
3695
- metadata: components["schemas"]["ResponseMetadataCreatedPart"];
3696
- };
3697
- }>;
3698
- /**
3699
- * Merge a segment with the one that follows it.
3700
- * POST /v1/itineraries/{itinerary_id}/segments/{segment_id}/merge
3701
- * Requires a publishable key with the `studio-embedded` scope.
3702
- * Acts as the user its session token was minted for, so the token must name one.
3703
- * @see {@link postItinerarySegmentMerge}
3704
- */
3705
- postItinerarySegmentMerge: (args: Parameters<typeof postItinerarySegmentMerge>[1], options?: RequestOptions) => Promise<{
3706
- extensions?: ({
3707
- metadata?: {
3708
- [key: string]: unknown;
3709
- } | undefined;
3710
- } & {
3711
- [key: string]: unknown;
3712
- }) | undefined;
3713
- } & {
3714
- data: unknown;
3715
- } & {
3716
- data: components["schemas"]["ItineraryWithDetails"];
3717
- }>;
3718
- /**
3719
- * Split a segment in two at a fraction of its length.
3720
- * POST /v1/itineraries/{itinerary_id}/segments/{segment_id}/split
3721
- * Requires a publishable key with the `studio-embedded` scope.
3722
- * Acts as the user its session token was minted for, so the token must name one.
3723
- * @see {@link postItinerarySegmentSplit}
3724
- */
3725
- postItinerarySegmentSplit: (args: Parameters<typeof postItinerarySegmentSplit>[1], options?: RequestOptions) => Promise<{
3726
- extensions?: ({
3727
- metadata?: {
3728
- [key: string]: unknown;
3729
- } | undefined;
3730
- } & {
3731
- [key: string]: unknown;
3732
- }) | undefined;
3733
- } & {
3734
- data: unknown;
3735
- } & {
3736
- data: components["schemas"]["ItineraryWithDetails"];
3737
- extensions: {
3738
- metadata: components["schemas"]["ResponseMetadataCreatedPart"];
3739
- };
3740
- }>;
3741
- /**
3742
- * Mint the itinerary's share link, or return the one it has.
3743
- * POST /v1/itineraries/{itinerary_id}/share-link
3744
- * Requires a publishable key with the `studio-embedded` scope.
3745
- * Acts as the user its session token was minted for, so the token must name one.
3746
- * @see {@link postItineraryShareLink}
3747
- */
3748
- postItineraryShareLink: (args: Parameters<typeof postItineraryShareLink>[1], options?: RequestOptions) => Promise<{
3749
- extensions?: ({
3750
- metadata?: {
3751
- [key: string]: unknown;
3752
- } | undefined;
3753
- } & {
3754
- [key: string]: unknown;
3755
- }) | undefined;
3756
- } & {
3757
- data: unknown;
3758
- } & {
3759
- data: components["schemas"]["ShareLink"];
3760
- }>;
3761
- /**
3762
- * Rotate the itinerary's share link.
3763
- * POST /v1/itineraries/{itinerary_id}/share-link/rotate
3764
- * Requires a publishable key with the `studio-embedded` scope.
3765
- * Acts as the user its session token was minted for, so the token must name one.
3766
- * @see {@link postItineraryShareLinkRotate}
3767
- */
3768
- postItineraryShareLinkRotate: (args: Parameters<typeof postItineraryShareLinkRotate>[1], options?: RequestOptions) => Promise<{
3769
- extensions?: ({
3770
- metadata?: {
3771
- [key: string]: unknown;
3772
- } | undefined;
3773
- } & {
3774
- [key: string]: unknown;
3775
- }) | undefined;
3776
- } & {
3777
- data: unknown;
3778
- } & {
3779
- data: components["schemas"]["ShareLink"];
3780
- }>;
3781
- /**
3782
- * Create a new waypoint within an itinerary.
3783
- * POST /v1/itineraries/{itinerary_id}/waypoints
3784
- * Requires a publishable key with the `studio-embedded` scope.
3785
- * Acts as the user its session token was minted for, so the token must name one.
3786
- * @see {@link postItineraryWaypoint}
3787
- */
3788
- postItineraryWaypoint: (args: Parameters<typeof postItineraryWaypoint>[1], options?: RequestOptions) => Promise<{
3789
- extensions?: ({
3790
- metadata?: {
3791
- [key: string]: unknown;
3792
- } | undefined;
3793
- } & {
3794
- [key: string]: unknown;
3795
- }) | undefined;
3796
- } & {
3797
- data: unknown;
3798
- } & {
3799
- data: components["schemas"]["ItineraryWithDetails"];
3800
- extensions: {
3801
- metadata: components["schemas"]["ResponseMetadataCreatedPart"];
3802
- };
3803
- }>;
3804
- };
3805
- layers: {
3806
- /**
3807
- * List terrains, overlays, and the zone layer.
3808
- * GET /v1/layers
3809
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3810
- * @see {@link getLayers}
3811
- */
3812
- getLayers: (args?: Parameters<typeof getLayers>[1], options?: RequestOptions) => Promise<{
3813
- extensions?: ({
3814
- metadata?: {
3815
- [key: string]: unknown;
3816
- } | undefined;
3817
- } & {
3818
- [key: string]: unknown;
3819
- }) | undefined;
3820
- } & {
3821
- data: unknown;
3822
- } & {
3823
- data: components["schemas"]["Layers"];
3824
- }>;
3825
- };
3826
- organizations: {
3827
- /**
3828
- * Resolve the organization a publishable key belongs to.
3829
- * POST /v1/organizations/lookup
3830
- * Takes no credential.
3831
- * @see {@link postOrganizationLookup}
3832
- */
3833
- postOrganizationLookup: (args: Parameters<typeof postOrganizationLookup>[1], options?: RequestOptions) => Promise<{
3834
- extensions?: ({
3835
- metadata?: {
3836
- [key: string]: unknown;
3837
- } | undefined;
3838
- } & {
3839
- [key: string]: unknown;
3840
- }) | undefined;
3841
- } & {
3842
- data: unknown;
3843
- } & {
3844
- data: components["schemas"]["Organization"];
3845
- }>;
3846
- };
3847
- zones: {
3848
- /**
3849
- * Delete a zone.
3850
- * DELETE /v1/zones/{zone_id}
3851
- * Requires a publishable key with the `studio-embedded` scope.
3852
- * Acts as the user its session token was minted for, so the token must name one.
3853
- * @see {@link deleteZone}
3854
- */
3855
- deleteZone: (args: Parameters<typeof deleteZone>[1], options?: RequestOptions) => Promise<{
3856
- extensions?: ({
3857
- metadata?: {
3858
- [key: string]: unknown;
3859
- } | undefined;
3860
- } & {
3861
- [key: string]: unknown;
3862
- }) | undefined;
3863
- } & {
3864
- data: unknown;
3865
- } & {
3866
- data: null;
3867
- }>;
3868
- /**
3869
- * Take the zone's publication down.
3870
- * DELETE /v1/zones/{zone_id}/publication
3871
- * Requires a publishable key with the `studio-embedded` scope.
3872
- * Acts as the user its session token was minted for, so the token must name one.
3873
- * @see {@link deleteZonePublication}
3874
- */
3875
- deleteZonePublication: (args: Parameters<typeof deleteZonePublication>[1], options?: RequestOptions) => Promise<{
3876
- extensions?: ({
3877
- metadata?: {
3878
- [key: string]: unknown;
3879
- } | undefined;
3880
- } & {
3881
- [key: string]: unknown;
3882
- }) | undefined;
3883
- } & {
3884
- data: unknown;
3885
- } & {
3886
- data: components["schemas"]["Zone"];
3887
- }>;
3888
- /**
3889
- * Retrieve a single zone with its geometry.
3890
- * GET /v1/zones/{zone_id}
3891
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3892
- * @see {@link getZone}
3893
- */
3894
- getZone: (args: Parameters<typeof getZone>[1], options?: RequestOptions) => Promise<{
3895
- extensions?: ({
3896
- metadata?: {
3897
- [key: string]: unknown;
3898
- } | undefined;
3899
- } & {
3900
- [key: string]: unknown;
3901
- }) | undefined;
3902
- } & {
3903
- data: unknown;
3904
- } & {
3905
- data: components["schemas"]["Zone"];
3906
- }>;
3907
- /**
3908
- * List zones.
3909
- * GET /v1/zones
3910
- * Requires a publishable key with the `publishing` scope, or the `studio-embedded` scope that includes it.
3911
- * @see {@link getZones}
3912
- */
3913
- getZones: (args?: Parameters<typeof getZones>[1], options?: RequestOptions) => Promise<{
3914
- extensions?: ({
3915
- metadata?: {
3916
- [key: string]: unknown;
3917
- } | undefined;
3918
- } & {
3919
- [key: string]: unknown;
3920
- }) | undefined;
3921
- } & {
3922
- data: unknown;
3923
- } & {
3924
- data: components["schemas"]["Zone"][];
3925
- extensions: {
3926
- metadata: components["schemas"]["ListMetadata"];
3927
- };
3928
- }>;
3929
- /**
3930
- * Update an existing zone.
3931
- * PATCH /v1/zones/{zone_id}
3932
- * Requires a publishable key with the `studio-embedded` scope.
3933
- * Acts as the user its session token was minted for, so the token must name one.
3934
- * @see {@link patchZone}
3935
- */
3936
- patchZone: (args: Parameters<typeof patchZone>[1], options?: RequestOptions) => Promise<{
3937
- extensions?: ({
3938
- metadata?: {
3939
- [key: string]: unknown;
3940
- } | undefined;
3941
- } & {
3942
- [key: string]: unknown;
3943
- }) | undefined;
3944
- } & {
3945
- data: unknown;
3946
- } & {
3947
- data: components["schemas"]["Zone"];
3948
- }>;
3949
- /**
3950
- * Create a new zone.
3951
- * POST /v1/zones
3952
- * Requires a publishable key with the `studio-embedded` scope.
3953
- * Acts as the user its session token was minted for, so the token must name one.
3954
- * @see {@link postZone}
3955
- */
3956
- postZone: (args: Parameters<typeof postZone>[1], options?: RequestOptions) => Promise<{
3957
- extensions?: ({
3958
- metadata?: {
3959
- [key: string]: unknown;
3960
- } | undefined;
3961
- } & {
3962
- [key: string]: unknown;
3963
- }) | undefined;
3964
- } & {
3965
- data: unknown;
3966
- } & {
3967
- data: components["schemas"]["Zone"];
3968
- }>;
3969
- /**
3970
- * Publish the zone's current draft.
3971
- * POST /v1/zones/{zone_id}/publication
3972
- * Requires a publishable key with the `studio-embedded` scope.
3973
- * Acts as the user its session token was minted for, so the token must name one.
3974
- * @see {@link postZonePublication}
3975
- */
3976
- postZonePublication: (args: Parameters<typeof postZonePublication>[1], options?: RequestOptions) => Promise<{
3977
- extensions?: ({
3978
- metadata?: {
3979
- [key: string]: unknown;
3980
- } | undefined;
3981
- } & {
3982
- [key: string]: unknown;
3983
- }) | undefined;
3984
- } & {
3985
- data: unknown;
3986
- } & {
3987
- data: components["schemas"]["Zone"];
3988
- }>;
3989
- };
3990
- };
3991
- };
3992
-
3993
- export { postOrganizationBillingSubscription as $, getOrganizationSettings as A, getOrganizationUsageData as B, getOrganizationUsageTiles as C, getOrganizationWebhookDeliveries as D, getOrganizationWebhookDelivery as E, getOrganizationWebhookEndpoint as F, getOrganizationWebhookEndpoints as G, getOrganizationWebhookEvent as H, getOrganizationWebhookEvents as I, getOrganizationWebhookHealth as J, getWebhookEventTypes as K, patchMyOrganizationNotificationPreferences as L, patchMyPreferences as M, patchOrganization as N, patchOrganizationAiProviderConfig as O, patchOrganizationBillingInfo as P, patchOrganizationMember as Q, patchOrganizationPublishableKey as R, patchOrganizationSettings as S, patchOrganizationWebhookEndpoint as T, postMyInvitationAccept as U, postOrganization as V, postOrganizationAiProviderConfig as W, postOrganizationBillingPaymentMethod as X, postOrganizationBillingPaymentMethodSetDefault as Y, postOrganizationBillingPaymentMethodSetup as Z, postOrganizationBillingProvision as _, deleteOrganizationAiProviderConfig as a, postItineraryShareLinkRotate as a$, postOrganizationInvitation as a0, postOrganizationPublishableKey as a1, postOrganizationWebhookDelivery as a2, postOrganizationWebhookEndpoint as a3, postSession as a4, bind as a5, deleteCollection as a6, deleteCollectionItinerary as a7, deleteCollectionShareLink as a8, deleteCollectionZone as a9, patchCollection as aA, patchCollectionItinerary as aB, patchItinerary as aC, patchItinerarySegment as aD, patchItinerarySegmentGroup as aE, patchItineraryWaypoint as aF, patchZone as aG, postAgentRun as aH, postAgentRunFeedback as aI, postAgentRunInput as aJ, postCollection as aK, postCollectionItineraries as aL, postCollectionShareLink as aM, postCollectionShareLinkRotate as aN, postCollectionZones as aO, postItinerary as aP, postItineraryCollab as aQ, postItineraryDuplicate as aR, postItineraryImport as aS, postItineraryPreview as aT, postItineraryPublication as aU, postItinerarySegment as aV, postItinerarySegmentConvert as aW, postItinerarySegmentGroup as aX, postItinerarySegmentMerge as aY, postItinerarySegmentSplit as aZ, postItineraryShareLink as a_, deleteItinerary as aa, deleteItineraryPublication as ab, deleteItinerarySegment as ac, deleteItinerarySegmentGroup as ad, deleteItineraryShareLink as ae, deleteItineraryWaypoint as af, deleteZone as ag, deleteZonePublication as ah, getActivities as ai, getAgentRunEvents as aj, getCollection as ak, getCollectionItineraries as al, getCollectionShareLink as am, getCollectionZones as an, getCollections as ao, getItineraries as ap, getItinerary as aq, getItineraryEvents as ar, getItineraryExport as as, getItineraryPace as at, getItineraryShareLink as au, getLayers as av, getOrganizationEvents as aw, getZone as ax, getZoneEvents as ay, getZones as az, deleteOrganizationBillingPaymentMethod as b, postItineraryWaypoint as b0, postOrganizationLookup as b1, postZone as b2, postZoneCollab as b3, postZonePublication as b4, deleteOrganizationBillingSubscription as c, deleteMyInvitation as d, deleteOrganizationInvitation as e, deleteOrganizationMember as f, deleteOrganizationPublishableKey as g, deleteOrganizationWebhookEndpoint as h, getAiProviders as i, getBillingProducts as j, getMyInvitations as k, getMyOrganizationNotificationPreferences as l, getMyOrganizations as m, getMyPreferences as n, getOrganization as o, getOrganizationAiProviderConfig as p, getOrganizationBillingInfo as q, getOrganizationBillingInvoices as r, getOrganizationBillingPaymentMethods as s, getOrganizationBillingPromotionCode as t, getOrganizationBillingSubscription as u, getOrganizationInvitation as v, getOrganizationInvitations as w, getOrganizationMembers as x, getOrganizationPublishableKey as y, getOrganizationPublishableKeys as z };