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