@modelrelay/sdk 1.36.0 → 1.42.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/dist/api-Bb7sw9L4.d.cts +4842 -0
- package/dist/api-Bb7sw9L4.d.ts +4842 -0
- package/dist/api-Ct5bpI3U.d.cts +4772 -0
- package/dist/api-Ct5bpI3U.d.ts +4772 -0
- package/dist/api-DWUVls-S.d.cts +4762 -0
- package/dist/api-DWUVls-S.d.ts +4762 -0
- package/dist/billing/index.d.cts +1 -1
- package/dist/billing/index.d.ts +1 -1
- package/dist/{chunk-ADQ74R7T.js → chunk-4FXUTSRZ.js} +1 -1
- package/dist/{chunk-EMQKOEF3.js → chunk-BP5HUQ4M.js} +8 -10
- package/dist/{chunk-CV3DTA6P.js → chunk-CXJZB6MA.js} +1 -1
- package/dist/chunk-PLZWDUOP.js +1194 -0
- package/dist/chunk-SXNP5Y5L.js +1194 -0
- package/dist/chunk-VOFLESGQ.js +1194 -0
- package/dist/index.cjs +147 -1
- package/dist/index.d.cts +137 -4
- package/dist/index.d.ts +137 -4
- package/dist/index.js +145 -1
- package/dist/node.cjs +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1 -1
- package/dist/{tools-DAqAFZ8F.d.ts → tools-B7444ZtV.d.cts} +13 -11
- package/dist/{tools-DAqAFZ8F.d.cts → tools-B7444ZtV.d.ts} +13 -11
- package/dist/tools-CWEBFsql.d.cts +1192 -0
- package/dist/tools-CWEBFsql.d.ts +1192 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4842 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
interface paths {
|
|
6
|
+
"/schemas/workflow_v0.schema.json": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Get JSON Schema for workflow.v0
|
|
15
|
+
* @description Returns the canonical JSON Schema (draft-07) for `workflow.v0`.
|
|
16
|
+
*/
|
|
17
|
+
get: operations["getWorkflowV0Schema"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/schemas/workflow_v1.schema.json": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Get JSON Schema for workflow.v1
|
|
35
|
+
* @description Returns the canonical JSON Schema (draft-07) for `workflow.v1`.
|
|
36
|
+
*/
|
|
37
|
+
get: operations["getWorkflowV1Schema"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
"/schemas/run_event_v0.schema.json": {
|
|
47
|
+
parameters: {
|
|
48
|
+
query?: never;
|
|
49
|
+
header?: never;
|
|
50
|
+
path?: never;
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Get JSON Schema for run_event.v0
|
|
55
|
+
* @description Returns the canonical JSON Schema (draft-07) for `run_event.v0` (workflow run history events).
|
|
56
|
+
*/
|
|
57
|
+
get: operations["getRunEventV0Schema"];
|
|
58
|
+
put?: never;
|
|
59
|
+
post?: never;
|
|
60
|
+
delete?: never;
|
|
61
|
+
options?: never;
|
|
62
|
+
head?: never;
|
|
63
|
+
patch?: never;
|
|
64
|
+
trace?: never;
|
|
65
|
+
};
|
|
66
|
+
"/auth/register": {
|
|
67
|
+
parameters: {
|
|
68
|
+
query?: never;
|
|
69
|
+
header?: never;
|
|
70
|
+
path?: never;
|
|
71
|
+
cookie?: never;
|
|
72
|
+
};
|
|
73
|
+
get?: never;
|
|
74
|
+
put?: never;
|
|
75
|
+
/** Register a new owner account */
|
|
76
|
+
post: operations["registerOwner"];
|
|
77
|
+
delete?: never;
|
|
78
|
+
options?: never;
|
|
79
|
+
head?: never;
|
|
80
|
+
patch?: never;
|
|
81
|
+
trace?: never;
|
|
82
|
+
};
|
|
83
|
+
"/auth/login": {
|
|
84
|
+
parameters: {
|
|
85
|
+
query?: never;
|
|
86
|
+
header?: never;
|
|
87
|
+
path?: never;
|
|
88
|
+
cookie?: never;
|
|
89
|
+
};
|
|
90
|
+
get?: never;
|
|
91
|
+
put?: never;
|
|
92
|
+
/** Exchange credentials for tokens */
|
|
93
|
+
post: operations["login"];
|
|
94
|
+
delete?: never;
|
|
95
|
+
options?: never;
|
|
96
|
+
head?: never;
|
|
97
|
+
patch?: never;
|
|
98
|
+
trace?: never;
|
|
99
|
+
};
|
|
100
|
+
"/auth/refresh": {
|
|
101
|
+
parameters: {
|
|
102
|
+
query?: never;
|
|
103
|
+
header?: never;
|
|
104
|
+
path?: never;
|
|
105
|
+
cookie?: never;
|
|
106
|
+
};
|
|
107
|
+
get?: never;
|
|
108
|
+
put?: never;
|
|
109
|
+
/** Refresh an access token */
|
|
110
|
+
post: operations["refreshToken"];
|
|
111
|
+
delete?: never;
|
|
112
|
+
options?: never;
|
|
113
|
+
head?: never;
|
|
114
|
+
patch?: never;
|
|
115
|
+
trace?: never;
|
|
116
|
+
};
|
|
117
|
+
"/auth/logout": {
|
|
118
|
+
parameters: {
|
|
119
|
+
query?: never;
|
|
120
|
+
header?: never;
|
|
121
|
+
path?: never;
|
|
122
|
+
cookie?: never;
|
|
123
|
+
};
|
|
124
|
+
get?: never;
|
|
125
|
+
put?: never;
|
|
126
|
+
/** Revoke a refresh token */
|
|
127
|
+
post: operations["logout"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
patch?: never;
|
|
132
|
+
trace?: never;
|
|
133
|
+
};
|
|
134
|
+
"/auth/me": {
|
|
135
|
+
parameters: {
|
|
136
|
+
query?: never;
|
|
137
|
+
header?: never;
|
|
138
|
+
path?: never;
|
|
139
|
+
cookie?: never;
|
|
140
|
+
};
|
|
141
|
+
/** Fetch the authenticated user profile */
|
|
142
|
+
get: operations["getAuthenticatedUser"];
|
|
143
|
+
put?: never;
|
|
144
|
+
post?: never;
|
|
145
|
+
delete?: never;
|
|
146
|
+
options?: never;
|
|
147
|
+
head?: never;
|
|
148
|
+
patch?: never;
|
|
149
|
+
trace?: never;
|
|
150
|
+
};
|
|
151
|
+
"/auth/customer-token": {
|
|
152
|
+
parameters: {
|
|
153
|
+
query?: never;
|
|
154
|
+
header?: never;
|
|
155
|
+
path?: never;
|
|
156
|
+
cookie?: never;
|
|
157
|
+
};
|
|
158
|
+
get?: never;
|
|
159
|
+
put?: never;
|
|
160
|
+
/**
|
|
161
|
+
* Mint a customer-scoped bearer token
|
|
162
|
+
* @description Used by trusted backends to mint short-lived customer-scoped bearer tokens
|
|
163
|
+
* for data-plane access (/responses, /runs). Requires a secret API key (mr_sk_*).
|
|
164
|
+
* The customer must already exist; use /customers endpoints to create customers first.
|
|
165
|
+
*/
|
|
166
|
+
post: operations["mintCustomerToken"];
|
|
167
|
+
delete?: never;
|
|
168
|
+
options?: never;
|
|
169
|
+
head?: never;
|
|
170
|
+
patch?: never;
|
|
171
|
+
trace?: never;
|
|
172
|
+
};
|
|
173
|
+
"/auth/device/start": {
|
|
174
|
+
parameters: {
|
|
175
|
+
query?: never;
|
|
176
|
+
header?: never;
|
|
177
|
+
path?: never;
|
|
178
|
+
cookie?: never;
|
|
179
|
+
};
|
|
180
|
+
get?: never;
|
|
181
|
+
put?: never;
|
|
182
|
+
/**
|
|
183
|
+
* Start a device authorization session
|
|
184
|
+
* @description Starts an OAuth 2.0 device authorization session so constrained clients (TUIs)
|
|
185
|
+
* can obtain a customer-scoped bearer token without running a local web server.
|
|
186
|
+
* Requires a project-scoped API key (publishable or secret).
|
|
187
|
+
*/
|
|
188
|
+
post: operations["startDeviceAuthorization"];
|
|
189
|
+
delete?: never;
|
|
190
|
+
options?: never;
|
|
191
|
+
head?: never;
|
|
192
|
+
patch?: never;
|
|
193
|
+
trace?: never;
|
|
194
|
+
};
|
|
195
|
+
"/auth/device/token": {
|
|
196
|
+
parameters: {
|
|
197
|
+
query?: never;
|
|
198
|
+
header?: never;
|
|
199
|
+
path?: never;
|
|
200
|
+
cookie?: never;
|
|
201
|
+
};
|
|
202
|
+
get?: never;
|
|
203
|
+
put?: never;
|
|
204
|
+
/**
|
|
205
|
+
* Poll a device authorization session
|
|
206
|
+
* @description Polls a device authorization session by `device_code`. Returns a customer-scoped bearer token
|
|
207
|
+
* once the user completes authorization in the browser.
|
|
208
|
+
*/
|
|
209
|
+
post: operations["pollDeviceToken"];
|
|
210
|
+
delete?: never;
|
|
211
|
+
options?: never;
|
|
212
|
+
head?: never;
|
|
213
|
+
patch?: never;
|
|
214
|
+
trace?: never;
|
|
215
|
+
};
|
|
216
|
+
"/auth/oidc/exchange": {
|
|
217
|
+
parameters: {
|
|
218
|
+
query?: never;
|
|
219
|
+
header?: never;
|
|
220
|
+
path?: never;
|
|
221
|
+
cookie?: never;
|
|
222
|
+
};
|
|
223
|
+
get?: never;
|
|
224
|
+
put?: never;
|
|
225
|
+
/**
|
|
226
|
+
* Exchange an OIDC id_token for a customer bearer token
|
|
227
|
+
* @description Verifies a provided OIDC `id_token` using the project's configured OIDC settings,
|
|
228
|
+
* resolves (provider, subject) to a customer via customer_identities, and returns
|
|
229
|
+
* a short-lived customer-scoped bearer token for data-plane access.
|
|
230
|
+
*/
|
|
231
|
+
post: operations["exchangeOidcToken"];
|
|
232
|
+
delete?: never;
|
|
233
|
+
options?: never;
|
|
234
|
+
head?: never;
|
|
235
|
+
patch?: never;
|
|
236
|
+
trace?: never;
|
|
237
|
+
};
|
|
238
|
+
"/customers/claim": {
|
|
239
|
+
parameters: {
|
|
240
|
+
query?: never;
|
|
241
|
+
header?: never;
|
|
242
|
+
path?: never;
|
|
243
|
+
cookie?: never;
|
|
244
|
+
};
|
|
245
|
+
get?: never;
|
|
246
|
+
put?: never;
|
|
247
|
+
/**
|
|
248
|
+
* Link a customer identity to a customer by email
|
|
249
|
+
* @description Used when a customer subscribes via Stripe Checkout (email only) and later authenticates to the app.
|
|
250
|
+
* Links (provider, subject) to the existing customer record found by email.
|
|
251
|
+
*/
|
|
252
|
+
post: operations["claimCustomer"];
|
|
253
|
+
delete?: never;
|
|
254
|
+
options?: never;
|
|
255
|
+
head?: never;
|
|
256
|
+
patch?: never;
|
|
257
|
+
trace?: never;
|
|
258
|
+
};
|
|
259
|
+
"/customers": {
|
|
260
|
+
parameters: {
|
|
261
|
+
query?: never;
|
|
262
|
+
header?: never;
|
|
263
|
+
path?: never;
|
|
264
|
+
cookie?: never;
|
|
265
|
+
};
|
|
266
|
+
/** List customers */
|
|
267
|
+
get: operations["listCustomers"];
|
|
268
|
+
/** Upsert a customer by external_id */
|
|
269
|
+
put: operations["upsertCustomer"];
|
|
270
|
+
/** Create a customer */
|
|
271
|
+
post: operations["createProjectCustomer"];
|
|
272
|
+
delete?: never;
|
|
273
|
+
options?: never;
|
|
274
|
+
head?: never;
|
|
275
|
+
patch?: never;
|
|
276
|
+
trace?: never;
|
|
277
|
+
};
|
|
278
|
+
"/customers/{customer_id}": {
|
|
279
|
+
parameters: {
|
|
280
|
+
query?: never;
|
|
281
|
+
header?: never;
|
|
282
|
+
path: {
|
|
283
|
+
customer_id: string;
|
|
284
|
+
};
|
|
285
|
+
cookie?: never;
|
|
286
|
+
};
|
|
287
|
+
/** Get a customer */
|
|
288
|
+
get: operations["getCustomer"];
|
|
289
|
+
put?: never;
|
|
290
|
+
post?: never;
|
|
291
|
+
/** Delete a customer */
|
|
292
|
+
delete: operations["deleteProjectCustomer"];
|
|
293
|
+
options?: never;
|
|
294
|
+
head?: never;
|
|
295
|
+
patch?: never;
|
|
296
|
+
trace?: never;
|
|
297
|
+
};
|
|
298
|
+
"/customers/{customer_id}/subscribe": {
|
|
299
|
+
parameters: {
|
|
300
|
+
query?: never;
|
|
301
|
+
header?: never;
|
|
302
|
+
path: {
|
|
303
|
+
customer_id: string;
|
|
304
|
+
};
|
|
305
|
+
cookie?: never;
|
|
306
|
+
};
|
|
307
|
+
get?: never;
|
|
308
|
+
put?: never;
|
|
309
|
+
/** Create a customer subscription checkout session */
|
|
310
|
+
post: operations["subscribeCustomer"];
|
|
311
|
+
delete?: never;
|
|
312
|
+
options?: never;
|
|
313
|
+
head?: never;
|
|
314
|
+
patch?: never;
|
|
315
|
+
trace?: never;
|
|
316
|
+
};
|
|
317
|
+
"/customers/{customer_id}/subscription": {
|
|
318
|
+
parameters: {
|
|
319
|
+
query?: never;
|
|
320
|
+
header?: never;
|
|
321
|
+
path: {
|
|
322
|
+
customer_id: string;
|
|
323
|
+
};
|
|
324
|
+
cookie?: never;
|
|
325
|
+
};
|
|
326
|
+
/** Get a customer's subscription */
|
|
327
|
+
get: operations["getCustomerSubscription"];
|
|
328
|
+
put?: never;
|
|
329
|
+
post?: never;
|
|
330
|
+
/** Cancel a customer's subscription */
|
|
331
|
+
delete: operations["cancelCustomerSubscription"];
|
|
332
|
+
options?: never;
|
|
333
|
+
head?: never;
|
|
334
|
+
patch?: never;
|
|
335
|
+
trace?: never;
|
|
336
|
+
};
|
|
337
|
+
"/customers/{customer_id}/balance": {
|
|
338
|
+
parameters: {
|
|
339
|
+
query?: never;
|
|
340
|
+
header?: never;
|
|
341
|
+
path: {
|
|
342
|
+
customer_id: string;
|
|
343
|
+
};
|
|
344
|
+
cookie?: never;
|
|
345
|
+
};
|
|
346
|
+
/** Get a customer's PAYGO balance */
|
|
347
|
+
get: operations["getCustomerBalance"];
|
|
348
|
+
put?: never;
|
|
349
|
+
post?: never;
|
|
350
|
+
delete?: never;
|
|
351
|
+
options?: never;
|
|
352
|
+
head?: never;
|
|
353
|
+
patch?: never;
|
|
354
|
+
trace?: never;
|
|
355
|
+
};
|
|
356
|
+
"/customers/{customer_id}/balance/history": {
|
|
357
|
+
parameters: {
|
|
358
|
+
query?: never;
|
|
359
|
+
header?: never;
|
|
360
|
+
path: {
|
|
361
|
+
customer_id: string;
|
|
362
|
+
};
|
|
363
|
+
cookie?: never;
|
|
364
|
+
};
|
|
365
|
+
/** Get a customer's PAYGO ledger history */
|
|
366
|
+
get: operations["getCustomerBalanceHistory"];
|
|
367
|
+
put?: never;
|
|
368
|
+
post?: never;
|
|
369
|
+
delete?: never;
|
|
370
|
+
options?: never;
|
|
371
|
+
head?: never;
|
|
372
|
+
patch?: never;
|
|
373
|
+
trace?: never;
|
|
374
|
+
};
|
|
375
|
+
"/customers/{customer_id}/topup": {
|
|
376
|
+
parameters: {
|
|
377
|
+
query?: never;
|
|
378
|
+
header?: never;
|
|
379
|
+
path: {
|
|
380
|
+
customer_id: string;
|
|
381
|
+
};
|
|
382
|
+
cookie?: never;
|
|
383
|
+
};
|
|
384
|
+
get?: never;
|
|
385
|
+
put?: never;
|
|
386
|
+
/** Create a PAYGO top-up checkout session for a customer */
|
|
387
|
+
post: operations["createCustomerTopup"];
|
|
388
|
+
delete?: never;
|
|
389
|
+
options?: never;
|
|
390
|
+
head?: never;
|
|
391
|
+
patch?: never;
|
|
392
|
+
trace?: never;
|
|
393
|
+
};
|
|
394
|
+
"/customers/me": {
|
|
395
|
+
parameters: {
|
|
396
|
+
query?: never;
|
|
397
|
+
header?: never;
|
|
398
|
+
path?: never;
|
|
399
|
+
cookie?: never;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* Get the authenticated customer
|
|
403
|
+
* @description Returns the current customer associated with the provided customer-scoped bearer token.
|
|
404
|
+
* Includes the customer's subscription and tier when available.
|
|
405
|
+
*/
|
|
406
|
+
get: operations["getCustomerMe"];
|
|
407
|
+
put?: never;
|
|
408
|
+
post?: never;
|
|
409
|
+
delete?: never;
|
|
410
|
+
options?: never;
|
|
411
|
+
head?: never;
|
|
412
|
+
patch?: never;
|
|
413
|
+
trace?: never;
|
|
414
|
+
};
|
|
415
|
+
"/customers/me/usage": {
|
|
416
|
+
parameters: {
|
|
417
|
+
query?: never;
|
|
418
|
+
header?: never;
|
|
419
|
+
path?: never;
|
|
420
|
+
cookie?: never;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Get the authenticated customer's usage
|
|
424
|
+
* @description Returns customer-visible usage metrics for the current billing window.
|
|
425
|
+
* Includes request/token counts and (for paid tiers) remaining subscription credits.
|
|
426
|
+
* Does not include any developer-private budgets (e.g., internal tier spend caps).
|
|
427
|
+
*/
|
|
428
|
+
get: operations["getCustomerMeUsage"];
|
|
429
|
+
put?: never;
|
|
430
|
+
post?: never;
|
|
431
|
+
delete?: never;
|
|
432
|
+
options?: never;
|
|
433
|
+
head?: never;
|
|
434
|
+
patch?: never;
|
|
435
|
+
trace?: never;
|
|
436
|
+
};
|
|
437
|
+
"/customers/me/subscription": {
|
|
438
|
+
parameters: {
|
|
439
|
+
query?: never;
|
|
440
|
+
header?: never;
|
|
441
|
+
path?: never;
|
|
442
|
+
cookie?: never;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Get the authenticated customer's subscription
|
|
446
|
+
* @description Returns customer-visible subscription details for the authenticated customer bearer token.
|
|
447
|
+
* Includes tier name and subscription price; does not include developer-private usage cost accounting.
|
|
448
|
+
*/
|
|
449
|
+
get: operations["getCustomerMeSubscription"];
|
|
450
|
+
put?: never;
|
|
451
|
+
post?: never;
|
|
452
|
+
delete?: never;
|
|
453
|
+
options?: never;
|
|
454
|
+
head?: never;
|
|
455
|
+
patch?: never;
|
|
456
|
+
trace?: never;
|
|
457
|
+
};
|
|
458
|
+
"/customers/me/balance": {
|
|
459
|
+
parameters: {
|
|
460
|
+
query?: never;
|
|
461
|
+
header?: never;
|
|
462
|
+
path?: never;
|
|
463
|
+
cookie?: never;
|
|
464
|
+
};
|
|
465
|
+
/** Get the authenticated customer's PAYGO balance */
|
|
466
|
+
get: operations["getCustomerMeBalance"];
|
|
467
|
+
put?: never;
|
|
468
|
+
post?: never;
|
|
469
|
+
delete?: never;
|
|
470
|
+
options?: never;
|
|
471
|
+
head?: never;
|
|
472
|
+
patch?: never;
|
|
473
|
+
trace?: never;
|
|
474
|
+
};
|
|
475
|
+
"/customers/me/balance/history": {
|
|
476
|
+
parameters: {
|
|
477
|
+
query?: never;
|
|
478
|
+
header?: never;
|
|
479
|
+
path?: never;
|
|
480
|
+
cookie?: never;
|
|
481
|
+
};
|
|
482
|
+
/** Get the authenticated customer's PAYGO ledger history */
|
|
483
|
+
get: operations["getCustomerMeBalanceHistory"];
|
|
484
|
+
put?: never;
|
|
485
|
+
post?: never;
|
|
486
|
+
delete?: never;
|
|
487
|
+
options?: never;
|
|
488
|
+
head?: never;
|
|
489
|
+
patch?: never;
|
|
490
|
+
trace?: never;
|
|
491
|
+
};
|
|
492
|
+
"/customers/me/topup": {
|
|
493
|
+
parameters: {
|
|
494
|
+
query?: never;
|
|
495
|
+
header?: never;
|
|
496
|
+
path?: never;
|
|
497
|
+
cookie?: never;
|
|
498
|
+
};
|
|
499
|
+
get?: never;
|
|
500
|
+
put?: never;
|
|
501
|
+
/** Create a PAYGO top-up checkout session for the authenticated customer */
|
|
502
|
+
post: operations["createCustomerMeTopup"];
|
|
503
|
+
delete?: never;
|
|
504
|
+
options?: never;
|
|
505
|
+
head?: never;
|
|
506
|
+
patch?: never;
|
|
507
|
+
trace?: never;
|
|
508
|
+
};
|
|
509
|
+
"/customers/me/change-tier": {
|
|
510
|
+
parameters: {
|
|
511
|
+
query?: never;
|
|
512
|
+
header?: never;
|
|
513
|
+
path?: never;
|
|
514
|
+
cookie?: never;
|
|
515
|
+
};
|
|
516
|
+
get?: never;
|
|
517
|
+
put?: never;
|
|
518
|
+
/**
|
|
519
|
+
* Change the authenticated customer's subscription tier
|
|
520
|
+
* @description Allows customers to upgrade or downgrade their subscription tier. Supports paid-to-paid (with proration), free-to-paid (requires payment method on file), paid-to-free (cancels at period end), and free-to-free transitions.
|
|
521
|
+
*/
|
|
522
|
+
post: operations["changeCustomerMeTier"];
|
|
523
|
+
delete?: never;
|
|
524
|
+
options?: never;
|
|
525
|
+
head?: never;
|
|
526
|
+
patch?: never;
|
|
527
|
+
trace?: never;
|
|
528
|
+
};
|
|
529
|
+
"/customers/me/checkout": {
|
|
530
|
+
parameters: {
|
|
531
|
+
query?: never;
|
|
532
|
+
header?: never;
|
|
533
|
+
path?: never;
|
|
534
|
+
cookie?: never;
|
|
535
|
+
};
|
|
536
|
+
get?: never;
|
|
537
|
+
put?: never;
|
|
538
|
+
/**
|
|
539
|
+
* Create a checkout session for the authenticated customer
|
|
540
|
+
* @description Creates a Stripe checkout session using the customer-first flow. A Stripe Customer is created with the verified OAuth email before checkout, preventing email spoofing. The email field in the Stripe checkout will be locked to the authenticated user's email.
|
|
541
|
+
*/
|
|
542
|
+
post: operations["createCustomerMeCheckout"];
|
|
543
|
+
delete?: never;
|
|
544
|
+
options?: never;
|
|
545
|
+
head?: never;
|
|
546
|
+
patch?: never;
|
|
547
|
+
trace?: never;
|
|
548
|
+
};
|
|
549
|
+
"/models": {
|
|
550
|
+
parameters: {
|
|
551
|
+
query?: never;
|
|
552
|
+
header?: never;
|
|
553
|
+
path?: never;
|
|
554
|
+
cookie?: never;
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* List active models
|
|
558
|
+
* @description Returns all active models with rich metadata for building model selectors.
|
|
559
|
+
*/
|
|
560
|
+
get: operations["listModels"];
|
|
561
|
+
put?: never;
|
|
562
|
+
post?: never;
|
|
563
|
+
delete?: never;
|
|
564
|
+
options?: never;
|
|
565
|
+
head?: never;
|
|
566
|
+
patch?: never;
|
|
567
|
+
trace?: never;
|
|
568
|
+
};
|
|
569
|
+
"/projects": {
|
|
570
|
+
parameters: {
|
|
571
|
+
query?: never;
|
|
572
|
+
header?: never;
|
|
573
|
+
path?: never;
|
|
574
|
+
cookie?: never;
|
|
575
|
+
};
|
|
576
|
+
/** List projects for the authenticated owner */
|
|
577
|
+
get: operations["listProjects"];
|
|
578
|
+
put?: never;
|
|
579
|
+
/** Create a project */
|
|
580
|
+
post: operations["createProject"];
|
|
581
|
+
delete?: never;
|
|
582
|
+
options?: never;
|
|
583
|
+
head?: never;
|
|
584
|
+
patch?: never;
|
|
585
|
+
trace?: never;
|
|
586
|
+
};
|
|
587
|
+
"/projects/{id}": {
|
|
588
|
+
parameters: {
|
|
589
|
+
query?: never;
|
|
590
|
+
header?: never;
|
|
591
|
+
path: {
|
|
592
|
+
id: components["parameters"]["ProjectID"];
|
|
593
|
+
};
|
|
594
|
+
cookie?: never;
|
|
595
|
+
};
|
|
596
|
+
/** Get a project */
|
|
597
|
+
get: operations["getProject"];
|
|
598
|
+
/** Update a project */
|
|
599
|
+
put: operations["updateProject"];
|
|
600
|
+
post?: never;
|
|
601
|
+
/** Delete a project */
|
|
602
|
+
delete: operations["deleteProject"];
|
|
603
|
+
options?: never;
|
|
604
|
+
head?: never;
|
|
605
|
+
patch?: never;
|
|
606
|
+
trace?: never;
|
|
607
|
+
};
|
|
608
|
+
"/projects/{id}/tiers": {
|
|
609
|
+
parameters: {
|
|
610
|
+
query?: never;
|
|
611
|
+
header?: never;
|
|
612
|
+
path: {
|
|
613
|
+
id: components["parameters"]["ProjectID"];
|
|
614
|
+
};
|
|
615
|
+
cookie?: never;
|
|
616
|
+
};
|
|
617
|
+
/** List tiers for a project */
|
|
618
|
+
get: operations["listProjectTiers"];
|
|
619
|
+
put?: never;
|
|
620
|
+
/** Create a tier */
|
|
621
|
+
post: operations["createTier"];
|
|
622
|
+
delete?: never;
|
|
623
|
+
options?: never;
|
|
624
|
+
head?: never;
|
|
625
|
+
patch?: never;
|
|
626
|
+
trace?: never;
|
|
627
|
+
};
|
|
628
|
+
"/projects/{id}/tiers/{tier_id}": {
|
|
629
|
+
parameters: {
|
|
630
|
+
query?: never;
|
|
631
|
+
header?: never;
|
|
632
|
+
path: {
|
|
633
|
+
id: components["parameters"]["ProjectID"];
|
|
634
|
+
tier_id: string;
|
|
635
|
+
};
|
|
636
|
+
cookie?: never;
|
|
637
|
+
};
|
|
638
|
+
get?: never;
|
|
639
|
+
/** Update a tier */
|
|
640
|
+
put: operations["updateTier"];
|
|
641
|
+
post?: never;
|
|
642
|
+
/** Delete a tier */
|
|
643
|
+
delete: operations["deleteTier"];
|
|
644
|
+
options?: never;
|
|
645
|
+
head?: never;
|
|
646
|
+
patch?: never;
|
|
647
|
+
trace?: never;
|
|
648
|
+
};
|
|
649
|
+
"/projects/{id}/customers": {
|
|
650
|
+
parameters: {
|
|
651
|
+
query?: never;
|
|
652
|
+
header?: never;
|
|
653
|
+
path: {
|
|
654
|
+
id: components["parameters"]["ProjectID"];
|
|
655
|
+
};
|
|
656
|
+
cookie?: never;
|
|
657
|
+
};
|
|
658
|
+
/** List customers for a project */
|
|
659
|
+
get: operations["listProjectCustomers"];
|
|
660
|
+
put?: never;
|
|
661
|
+
/** Create a customer */
|
|
662
|
+
post: operations["createCustomer"];
|
|
663
|
+
delete?: never;
|
|
664
|
+
options?: never;
|
|
665
|
+
head?: never;
|
|
666
|
+
patch?: never;
|
|
667
|
+
trace?: never;
|
|
668
|
+
};
|
|
669
|
+
"/projects/{id}/customers/{customer_id}": {
|
|
670
|
+
parameters: {
|
|
671
|
+
query?: never;
|
|
672
|
+
header?: never;
|
|
673
|
+
path: {
|
|
674
|
+
id: components["parameters"]["ProjectID"];
|
|
675
|
+
customer_id: string;
|
|
676
|
+
};
|
|
677
|
+
cookie?: never;
|
|
678
|
+
};
|
|
679
|
+
get?: never;
|
|
680
|
+
put?: never;
|
|
681
|
+
post?: never;
|
|
682
|
+
/** Delete a customer */
|
|
683
|
+
delete: operations["deleteCustomer"];
|
|
684
|
+
options?: never;
|
|
685
|
+
head?: never;
|
|
686
|
+
patch?: never;
|
|
687
|
+
trace?: never;
|
|
688
|
+
};
|
|
689
|
+
"/projects/{id}/webhooks": {
|
|
690
|
+
parameters: {
|
|
691
|
+
query?: never;
|
|
692
|
+
header?: never;
|
|
693
|
+
path: {
|
|
694
|
+
id: components["parameters"]["ProjectID"];
|
|
695
|
+
};
|
|
696
|
+
cookie?: never;
|
|
697
|
+
};
|
|
698
|
+
/** List project webhooks */
|
|
699
|
+
get: operations["listProjectWebhooks"];
|
|
700
|
+
put?: never;
|
|
701
|
+
/** Create a project webhook */
|
|
702
|
+
post: operations["createProjectWebhook"];
|
|
703
|
+
delete?: never;
|
|
704
|
+
options?: never;
|
|
705
|
+
head?: never;
|
|
706
|
+
patch?: never;
|
|
707
|
+
trace?: never;
|
|
708
|
+
};
|
|
709
|
+
"/projects/{id}/webhooks/{webhook_id}": {
|
|
710
|
+
parameters: {
|
|
711
|
+
query?: never;
|
|
712
|
+
header?: never;
|
|
713
|
+
path: {
|
|
714
|
+
id: components["parameters"]["ProjectID"];
|
|
715
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
716
|
+
};
|
|
717
|
+
cookie?: never;
|
|
718
|
+
};
|
|
719
|
+
/** Get a project webhook */
|
|
720
|
+
get: operations["getProjectWebhook"];
|
|
721
|
+
/** Update a project webhook */
|
|
722
|
+
put: operations["updateProjectWebhook"];
|
|
723
|
+
post?: never;
|
|
724
|
+
/** Delete a project webhook */
|
|
725
|
+
delete: operations["deleteProjectWebhook"];
|
|
726
|
+
options?: never;
|
|
727
|
+
head?: never;
|
|
728
|
+
patch?: never;
|
|
729
|
+
trace?: never;
|
|
730
|
+
};
|
|
731
|
+
"/projects/{id}/webhooks/{webhook_id}/test": {
|
|
732
|
+
parameters: {
|
|
733
|
+
query?: never;
|
|
734
|
+
header?: never;
|
|
735
|
+
path: {
|
|
736
|
+
id: components["parameters"]["ProjectID"];
|
|
737
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
738
|
+
};
|
|
739
|
+
cookie?: never;
|
|
740
|
+
};
|
|
741
|
+
get?: never;
|
|
742
|
+
put?: never;
|
|
743
|
+
/** Test a webhook */
|
|
744
|
+
post: operations["testProjectWebhook"];
|
|
745
|
+
delete?: never;
|
|
746
|
+
options?: never;
|
|
747
|
+
head?: never;
|
|
748
|
+
patch?: never;
|
|
749
|
+
trace?: never;
|
|
750
|
+
};
|
|
751
|
+
"/projects/{id}/webhooks/{webhook_id}/events": {
|
|
752
|
+
parameters: {
|
|
753
|
+
query?: never;
|
|
754
|
+
header?: never;
|
|
755
|
+
path: {
|
|
756
|
+
id: components["parameters"]["ProjectID"];
|
|
757
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
758
|
+
};
|
|
759
|
+
cookie?: never;
|
|
760
|
+
};
|
|
761
|
+
/** List webhook delivery events */
|
|
762
|
+
get: operations["listProjectWebhookEvents"];
|
|
763
|
+
put?: never;
|
|
764
|
+
post?: never;
|
|
765
|
+
delete?: never;
|
|
766
|
+
options?: never;
|
|
767
|
+
head?: never;
|
|
768
|
+
patch?: never;
|
|
769
|
+
trace?: never;
|
|
770
|
+
};
|
|
771
|
+
"/responses": {
|
|
772
|
+
parameters: {
|
|
773
|
+
query?: never;
|
|
774
|
+
header?: never;
|
|
775
|
+
path?: never;
|
|
776
|
+
cookie?: never;
|
|
777
|
+
};
|
|
778
|
+
get?: never;
|
|
779
|
+
put?: never;
|
|
780
|
+
/**
|
|
781
|
+
* Create a response via the provider-agnostic API
|
|
782
|
+
* @description Creates a model response. Auth accepts secret API keys or bearer tokens. Bearer tokens may be owner session tokens (dashboard/server) or end-user tokens; publishable keys are not allowed.
|
|
783
|
+
*/
|
|
784
|
+
post: operations["createResponse"];
|
|
785
|
+
delete?: never;
|
|
786
|
+
options?: never;
|
|
787
|
+
head?: never;
|
|
788
|
+
patch?: never;
|
|
789
|
+
trace?: never;
|
|
790
|
+
};
|
|
791
|
+
"/responses:batch": {
|
|
792
|
+
parameters: {
|
|
793
|
+
query?: never;
|
|
794
|
+
header?: never;
|
|
795
|
+
path?: never;
|
|
796
|
+
cookie?: never;
|
|
797
|
+
};
|
|
798
|
+
get?: never;
|
|
799
|
+
put?: never;
|
|
800
|
+
/** Create multiple responses concurrently (batch) */
|
|
801
|
+
post: operations["createResponsesBatch"];
|
|
802
|
+
delete?: never;
|
|
803
|
+
options?: never;
|
|
804
|
+
head?: never;
|
|
805
|
+
patch?: never;
|
|
806
|
+
trace?: never;
|
|
807
|
+
};
|
|
808
|
+
"/images/generate": {
|
|
809
|
+
parameters: {
|
|
810
|
+
query?: never;
|
|
811
|
+
header?: never;
|
|
812
|
+
path?: never;
|
|
813
|
+
cookie?: never;
|
|
814
|
+
};
|
|
815
|
+
get?: never;
|
|
816
|
+
put?: never;
|
|
817
|
+
/**
|
|
818
|
+
* Generate images from a text prompt
|
|
819
|
+
* @description Generate images using AI models. Returns URLs by default (requires storage configuration) or base64-encoded data when response_format is 'b64_json'.
|
|
820
|
+
*/
|
|
821
|
+
post: operations["generateImage"];
|
|
822
|
+
delete?: never;
|
|
823
|
+
options?: never;
|
|
824
|
+
head?: never;
|
|
825
|
+
patch?: never;
|
|
826
|
+
trace?: never;
|
|
827
|
+
};
|
|
828
|
+
"/images/{image_id}": {
|
|
829
|
+
parameters: {
|
|
830
|
+
query?: never;
|
|
831
|
+
header?: never;
|
|
832
|
+
path: {
|
|
833
|
+
/** @description Image ID */
|
|
834
|
+
image_id: string;
|
|
835
|
+
};
|
|
836
|
+
cookie?: never;
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
* Get image details
|
|
840
|
+
* @description Retrieve information about a specific image, including its pinned status and URL.
|
|
841
|
+
*/
|
|
842
|
+
get: operations["getImage"];
|
|
843
|
+
put?: never;
|
|
844
|
+
post?: never;
|
|
845
|
+
delete?: never;
|
|
846
|
+
options?: never;
|
|
847
|
+
head?: never;
|
|
848
|
+
patch?: never;
|
|
849
|
+
trace?: never;
|
|
850
|
+
};
|
|
851
|
+
"/images/{image_id}/pin": {
|
|
852
|
+
parameters: {
|
|
853
|
+
query?: never;
|
|
854
|
+
header?: never;
|
|
855
|
+
path: {
|
|
856
|
+
/** @description Image ID */
|
|
857
|
+
image_id: string;
|
|
858
|
+
};
|
|
859
|
+
cookie?: never;
|
|
860
|
+
};
|
|
861
|
+
get?: never;
|
|
862
|
+
put?: never;
|
|
863
|
+
/**
|
|
864
|
+
* Pin an image
|
|
865
|
+
* @description Pin an image to prevent it from expiring. Pinned images remain accessible permanently (subject to tier limits).
|
|
866
|
+
*/
|
|
867
|
+
post: operations["pinImage"];
|
|
868
|
+
/**
|
|
869
|
+
* Unpin an image
|
|
870
|
+
* @description Unpin an image, setting it to expire after the default ephemeral period (7 days).
|
|
871
|
+
*/
|
|
872
|
+
delete: operations["unpinImage"];
|
|
873
|
+
options?: never;
|
|
874
|
+
head?: never;
|
|
875
|
+
patch?: never;
|
|
876
|
+
trace?: never;
|
|
877
|
+
};
|
|
878
|
+
"/runs": {
|
|
879
|
+
parameters: {
|
|
880
|
+
query?: never;
|
|
881
|
+
header?: never;
|
|
882
|
+
path?: never;
|
|
883
|
+
cookie?: never;
|
|
884
|
+
};
|
|
885
|
+
get?: never;
|
|
886
|
+
put?: never;
|
|
887
|
+
/**
|
|
888
|
+
* Start a workflow run (workflow.v0 or workflow.v1)
|
|
889
|
+
* @description Starts a run for a `workflow.v0` or `workflow.v1` spec and returns a `run_id`. Auth matches `/responses` (API key or frontend bearer token). Session owner tokens from `/auth/login` are not accepted. Provide `session_id` to link the run to a session; when linked, assistant messages are appended to the session on completion.
|
|
890
|
+
*/
|
|
891
|
+
post: operations["createRun"];
|
|
892
|
+
delete?: never;
|
|
893
|
+
options?: never;
|
|
894
|
+
head?: never;
|
|
895
|
+
patch?: never;
|
|
896
|
+
trace?: never;
|
|
897
|
+
};
|
|
898
|
+
"/runs/{run_id}": {
|
|
899
|
+
parameters: {
|
|
900
|
+
query?: never;
|
|
901
|
+
header?: never;
|
|
902
|
+
path: {
|
|
903
|
+
run_id: string;
|
|
904
|
+
};
|
|
905
|
+
cookie?: never;
|
|
906
|
+
};
|
|
907
|
+
/**
|
|
908
|
+
* Get a derived run snapshot
|
|
909
|
+
* @description Returns a derived snapshot state for the run (folded from event history + artifacts), including outputs and an aggregated cost summary when available.
|
|
910
|
+
*/
|
|
911
|
+
get: operations["getRun"];
|
|
912
|
+
put?: never;
|
|
913
|
+
post?: never;
|
|
914
|
+
delete?: never;
|
|
915
|
+
options?: never;
|
|
916
|
+
head?: never;
|
|
917
|
+
patch?: never;
|
|
918
|
+
trace?: never;
|
|
919
|
+
};
|
|
920
|
+
"/runs/{run_id}/events": {
|
|
921
|
+
parameters: {
|
|
922
|
+
query?: {
|
|
923
|
+
/** @description Returns events where `seq > after_seq`. */
|
|
924
|
+
after_seq?: number;
|
|
925
|
+
/** @description When false, returns currently available events then closes. */
|
|
926
|
+
wait?: boolean;
|
|
927
|
+
/** @description Maximum number of events to send before closing. */
|
|
928
|
+
limit?: number;
|
|
929
|
+
};
|
|
930
|
+
header?: never;
|
|
931
|
+
path: {
|
|
932
|
+
run_id: string;
|
|
933
|
+
};
|
|
934
|
+
cookie?: never;
|
|
935
|
+
};
|
|
936
|
+
/**
|
|
937
|
+
* Stream run events (append-only)
|
|
938
|
+
* @description Streams an append-only, totally ordered history for the run. The wire format is negotiated via `Accept`: NDJSON (`application/x-ndjson`) or Server-Sent Events (`text/event-stream`). Each line/event is a `run_event.v0` envelope; see `/schemas/run_event_v0.schema.json` for the canonical schema.
|
|
939
|
+
*/
|
|
940
|
+
get: operations["streamRunEvents"];
|
|
941
|
+
put?: never;
|
|
942
|
+
post?: never;
|
|
943
|
+
delete?: never;
|
|
944
|
+
options?: never;
|
|
945
|
+
head?: never;
|
|
946
|
+
patch?: never;
|
|
947
|
+
trace?: never;
|
|
948
|
+
};
|
|
949
|
+
"/sessions": {
|
|
950
|
+
parameters: {
|
|
951
|
+
query?: never;
|
|
952
|
+
header?: never;
|
|
953
|
+
path?: never;
|
|
954
|
+
cookie?: never;
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* List sessions
|
|
958
|
+
* @description Returns a paginated list of sessions for the project.
|
|
959
|
+
*/
|
|
960
|
+
get: operations["listSessions"];
|
|
961
|
+
put?: never;
|
|
962
|
+
/**
|
|
963
|
+
* Create a new session
|
|
964
|
+
* @description Creates a new session for multi-turn conversation management. Sessions persist message history on the server for cross-device continuity.
|
|
965
|
+
*/
|
|
966
|
+
post: operations["createSession"];
|
|
967
|
+
delete?: never;
|
|
968
|
+
options?: never;
|
|
969
|
+
head?: never;
|
|
970
|
+
patch?: never;
|
|
971
|
+
trace?: never;
|
|
972
|
+
};
|
|
973
|
+
"/sessions/{session_id}": {
|
|
974
|
+
parameters: {
|
|
975
|
+
query?: never;
|
|
976
|
+
header?: never;
|
|
977
|
+
path: {
|
|
978
|
+
session_id: string;
|
|
979
|
+
};
|
|
980
|
+
cookie?: never;
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
* Get session with messages
|
|
984
|
+
* @description Returns a session including its full message history.
|
|
985
|
+
*/
|
|
986
|
+
get: operations["getSession"];
|
|
987
|
+
put?: never;
|
|
988
|
+
post?: never;
|
|
989
|
+
/**
|
|
990
|
+
* Delete a session
|
|
991
|
+
* @description Deletes a session and all its messages. Requires a secret API key (mr_sk_*).
|
|
992
|
+
*/
|
|
993
|
+
delete: operations["deleteSession"];
|
|
994
|
+
options?: never;
|
|
995
|
+
head?: never;
|
|
996
|
+
/**
|
|
997
|
+
* Update session metadata
|
|
998
|
+
* @description Updates session metadata. Keys with null values are removed.
|
|
999
|
+
*/
|
|
1000
|
+
patch: operations["updateSession"];
|
|
1001
|
+
trace?: never;
|
|
1002
|
+
};
|
|
1003
|
+
"/sessions/{session_id}/messages": {
|
|
1004
|
+
parameters: {
|
|
1005
|
+
query?: never;
|
|
1006
|
+
header?: never;
|
|
1007
|
+
path: {
|
|
1008
|
+
session_id: string;
|
|
1009
|
+
};
|
|
1010
|
+
cookie?: never;
|
|
1011
|
+
};
|
|
1012
|
+
get?: never;
|
|
1013
|
+
put?: never;
|
|
1014
|
+
/**
|
|
1015
|
+
* Append a session message
|
|
1016
|
+
* @description Appends a message to an existing session.
|
|
1017
|
+
*/
|
|
1018
|
+
post: operations["addSessionMessage"];
|
|
1019
|
+
delete?: never;
|
|
1020
|
+
options?: never;
|
|
1021
|
+
head?: never;
|
|
1022
|
+
patch?: never;
|
|
1023
|
+
trace?: never;
|
|
1024
|
+
};
|
|
1025
|
+
"/projects/{id}/tool-hooks": {
|
|
1026
|
+
parameters: {
|
|
1027
|
+
query?: never;
|
|
1028
|
+
header?: never;
|
|
1029
|
+
path: {
|
|
1030
|
+
id: components["parameters"]["ProjectID"];
|
|
1031
|
+
};
|
|
1032
|
+
cookie?: never;
|
|
1033
|
+
};
|
|
1034
|
+
/** List project tool hooks */
|
|
1035
|
+
get: operations["listProjectToolHooks"];
|
|
1036
|
+
put?: never;
|
|
1037
|
+
/** Create a project tool hook */
|
|
1038
|
+
post: operations["createProjectToolHook"];
|
|
1039
|
+
delete?: never;
|
|
1040
|
+
options?: never;
|
|
1041
|
+
head?: never;
|
|
1042
|
+
patch?: never;
|
|
1043
|
+
trace?: never;
|
|
1044
|
+
};
|
|
1045
|
+
"/projects/{id}/tool-hooks/{hook_id}": {
|
|
1046
|
+
parameters: {
|
|
1047
|
+
query?: never;
|
|
1048
|
+
header?: never;
|
|
1049
|
+
path: {
|
|
1050
|
+
id: components["parameters"]["ProjectID"];
|
|
1051
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
1052
|
+
};
|
|
1053
|
+
cookie?: never;
|
|
1054
|
+
};
|
|
1055
|
+
/** Get a project tool hook */
|
|
1056
|
+
get: operations["getProjectToolHook"];
|
|
1057
|
+
/** Update a project tool hook */
|
|
1058
|
+
put: operations["updateProjectToolHook"];
|
|
1059
|
+
post?: never;
|
|
1060
|
+
/** Delete a project tool hook */
|
|
1061
|
+
delete: operations["deleteProjectToolHook"];
|
|
1062
|
+
options?: never;
|
|
1063
|
+
head?: never;
|
|
1064
|
+
patch?: never;
|
|
1065
|
+
trace?: never;
|
|
1066
|
+
};
|
|
1067
|
+
"/projects/{id}/tool-hooks/{hook_id}/events": {
|
|
1068
|
+
parameters: {
|
|
1069
|
+
query?: never;
|
|
1070
|
+
header?: never;
|
|
1071
|
+
path: {
|
|
1072
|
+
id: components["parameters"]["ProjectID"];
|
|
1073
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
1074
|
+
};
|
|
1075
|
+
cookie?: never;
|
|
1076
|
+
};
|
|
1077
|
+
/** List tool hook delivery events */
|
|
1078
|
+
get: operations["listProjectToolHookEvents"];
|
|
1079
|
+
put?: never;
|
|
1080
|
+
post?: never;
|
|
1081
|
+
delete?: never;
|
|
1082
|
+
options?: never;
|
|
1083
|
+
head?: never;
|
|
1084
|
+
patch?: never;
|
|
1085
|
+
trace?: never;
|
|
1086
|
+
};
|
|
1087
|
+
"/projects/{id}/tool-hooks/{hook_id}/test": {
|
|
1088
|
+
parameters: {
|
|
1089
|
+
query?: never;
|
|
1090
|
+
header?: never;
|
|
1091
|
+
path: {
|
|
1092
|
+
id: components["parameters"]["ProjectID"];
|
|
1093
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
1094
|
+
};
|
|
1095
|
+
cookie?: never;
|
|
1096
|
+
};
|
|
1097
|
+
get?: never;
|
|
1098
|
+
put?: never;
|
|
1099
|
+
/** Test a tool hook */
|
|
1100
|
+
post: operations["testProjectToolHook"];
|
|
1101
|
+
delete?: never;
|
|
1102
|
+
options?: never;
|
|
1103
|
+
head?: never;
|
|
1104
|
+
patch?: never;
|
|
1105
|
+
trace?: never;
|
|
1106
|
+
};
|
|
1107
|
+
"/sessions/{session_id}/clear": {
|
|
1108
|
+
parameters: {
|
|
1109
|
+
query?: never;
|
|
1110
|
+
header?: never;
|
|
1111
|
+
path: {
|
|
1112
|
+
session_id: string;
|
|
1113
|
+
};
|
|
1114
|
+
cookie?: never;
|
|
1115
|
+
};
|
|
1116
|
+
get?: never;
|
|
1117
|
+
put?: never;
|
|
1118
|
+
/**
|
|
1119
|
+
* Clear session messages
|
|
1120
|
+
* @description Deletes all messages in the session and returns the updated session.
|
|
1121
|
+
*/
|
|
1122
|
+
post: operations["clearSession"];
|
|
1123
|
+
delete?: never;
|
|
1124
|
+
options?: never;
|
|
1125
|
+
head?: never;
|
|
1126
|
+
patch?: never;
|
|
1127
|
+
trace?: never;
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
type webhooks = Record<string, never>;
|
|
1131
|
+
interface components {
|
|
1132
|
+
schemas: {
|
|
1133
|
+
/**
|
|
1134
|
+
* @description Billing mode for a project. 'managed' uses ModelRelay billing with tiers and subscriptions. 'byob' (Bring Your Own Billing) allows external billing.
|
|
1135
|
+
* @enum {string}
|
|
1136
|
+
*/
|
|
1137
|
+
BillingMode: "managed" | "byob";
|
|
1138
|
+
/**
|
|
1139
|
+
* @description Billing mode for a tier. 'subscription' uses monthly spend limits; 'paygo' uses prepaid balances.
|
|
1140
|
+
* @enum {string}
|
|
1141
|
+
*/
|
|
1142
|
+
TierBillingMode: "subscription" | "paygo";
|
|
1143
|
+
AuthTokens: {
|
|
1144
|
+
access_token?: string;
|
|
1145
|
+
refresh_token?: string;
|
|
1146
|
+
/** Format: date-time */
|
|
1147
|
+
expires_at?: string;
|
|
1148
|
+
};
|
|
1149
|
+
AuthResponse: {
|
|
1150
|
+
user?: components["schemas"]["User"];
|
|
1151
|
+
tokens?: components["schemas"]["AuthTokens"];
|
|
1152
|
+
access_token?: string;
|
|
1153
|
+
refresh_token?: string;
|
|
1154
|
+
};
|
|
1155
|
+
User: {
|
|
1156
|
+
/** Format: uuid */
|
|
1157
|
+
id?: string;
|
|
1158
|
+
/** Format: email */
|
|
1159
|
+
email?: string;
|
|
1160
|
+
/** Format: uuid */
|
|
1161
|
+
project_id?: string;
|
|
1162
|
+
};
|
|
1163
|
+
Project: {
|
|
1164
|
+
/** Format: uuid */
|
|
1165
|
+
id?: string;
|
|
1166
|
+
/** Format: uuid */
|
|
1167
|
+
owner_id?: string;
|
|
1168
|
+
name?: string;
|
|
1169
|
+
description?: string;
|
|
1170
|
+
markup_percentage?: number;
|
|
1171
|
+
billing_mode?: components["schemas"]["BillingMode"];
|
|
1172
|
+
/** Format: uuid */
|
|
1173
|
+
customer_auto_provision_tier_id?: string;
|
|
1174
|
+
customer_oauth_providers?: ("github" | "google")[];
|
|
1175
|
+
oidc_enabled?: boolean;
|
|
1176
|
+
oidc_issuer?: string;
|
|
1177
|
+
oidc_audiences?: string[];
|
|
1178
|
+
oidc_jwks_url?: string;
|
|
1179
|
+
oidc_subject_claim?: string;
|
|
1180
|
+
/** Format: date-time */
|
|
1181
|
+
created_at?: string;
|
|
1182
|
+
/** Format: date-time */
|
|
1183
|
+
updated_at?: string;
|
|
1184
|
+
};
|
|
1185
|
+
/**
|
|
1186
|
+
* @description Billing interval for a tier.
|
|
1187
|
+
* @enum {string}
|
|
1188
|
+
*/
|
|
1189
|
+
PriceInterval: "month" | "year";
|
|
1190
|
+
TierModel: {
|
|
1191
|
+
/** Format: uuid */
|
|
1192
|
+
id: string;
|
|
1193
|
+
/** Format: uuid */
|
|
1194
|
+
tier_id: string;
|
|
1195
|
+
model_id: components["schemas"]["ModelId"];
|
|
1196
|
+
/** @description Human-friendly model name resolved from pricing (e.g., 'GPT-4o Mini') */
|
|
1197
|
+
model_display_name: string;
|
|
1198
|
+
/** @description Human-friendly description of what the model is good at */
|
|
1199
|
+
description: string;
|
|
1200
|
+
/** @description Workflow-critical capability flags for the model */
|
|
1201
|
+
capabilities: components["schemas"]["ModelCapability"][];
|
|
1202
|
+
/**
|
|
1203
|
+
* Format: int32
|
|
1204
|
+
* @description Maximum supported context window in tokens (if known)
|
|
1205
|
+
*/
|
|
1206
|
+
context_window: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* Format: int32
|
|
1209
|
+
* @description Maximum supported output tokens (if known)
|
|
1210
|
+
*/
|
|
1211
|
+
max_output_tokens: number;
|
|
1212
|
+
/** @description Whether the model is deprecated */
|
|
1213
|
+
deprecated: boolean;
|
|
1214
|
+
/**
|
|
1215
|
+
* Format: int64
|
|
1216
|
+
* @description Provider input cost in cents per million tokens. Customer price is derived as cost * (1 + platformFeePercent/100).
|
|
1217
|
+
*/
|
|
1218
|
+
model_input_cost_cents: number;
|
|
1219
|
+
/**
|
|
1220
|
+
* Format: int64
|
|
1221
|
+
* @description Provider output cost in cents per million tokens. Customer price is derived as cost * (1 + platformFeePercent/100).
|
|
1222
|
+
*/
|
|
1223
|
+
model_output_cost_cents: number;
|
|
1224
|
+
/** @description Whether this is the default model for the tier */
|
|
1225
|
+
is_default: boolean;
|
|
1226
|
+
/** Format: date-time */
|
|
1227
|
+
created_at: string;
|
|
1228
|
+
/** Format: date-time */
|
|
1229
|
+
updated_at: string;
|
|
1230
|
+
};
|
|
1231
|
+
/** @description Model to add to a tier. Pricing is derived from the model_pricing table. */
|
|
1232
|
+
TierModelCreate: {
|
|
1233
|
+
model_id: components["schemas"]["ModelId"];
|
|
1234
|
+
/** @default false */
|
|
1235
|
+
is_default: boolean;
|
|
1236
|
+
};
|
|
1237
|
+
Tier: {
|
|
1238
|
+
/** Format: uuid */
|
|
1239
|
+
id?: string;
|
|
1240
|
+
/** Format: uuid */
|
|
1241
|
+
project_id?: string;
|
|
1242
|
+
tier_code?: components["schemas"]["TierCode"];
|
|
1243
|
+
/** @description Human-readable tier name */
|
|
1244
|
+
display_name?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* Format: uint64
|
|
1247
|
+
* @description Monthly spend limit in cents (e.g., 2000 = $20/month). Must be non-negative.
|
|
1248
|
+
*/
|
|
1249
|
+
spend_limit_cents?: number;
|
|
1250
|
+
billing_mode?: components["schemas"]["TierBillingMode"];
|
|
1251
|
+
models?: components["schemas"]["TierModel"][];
|
|
1252
|
+
billing_provider?: components["schemas"]["BillingProvider"];
|
|
1253
|
+
/** @description Billing provider price reference for this tier */
|
|
1254
|
+
billing_price_ref?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* Format: uint64
|
|
1257
|
+
* @description Subscription price amount in cents
|
|
1258
|
+
*/
|
|
1259
|
+
price_amount_cents?: number;
|
|
1260
|
+
/** @description Currency code for the price (e.g., 'usd') */
|
|
1261
|
+
price_currency?: string;
|
|
1262
|
+
price_interval?: components["schemas"]["PriceInterval"];
|
|
1263
|
+
/**
|
|
1264
|
+
* Format: uint32
|
|
1265
|
+
* @description Number of trial days for new subscriptions
|
|
1266
|
+
*/
|
|
1267
|
+
trial_days?: number;
|
|
1268
|
+
/** Format: date-time */
|
|
1269
|
+
created_at?: string;
|
|
1270
|
+
/** Format: date-time */
|
|
1271
|
+
updated_at?: string;
|
|
1272
|
+
};
|
|
1273
|
+
TierCreate: {
|
|
1274
|
+
tier_code: components["schemas"]["TierCode"];
|
|
1275
|
+
/** @description Human-readable tier name */
|
|
1276
|
+
display_name: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* Format: uint64
|
|
1279
|
+
* @description Monthly spend limit in cents (e.g., 2000 = $20/month). Must be non-negative.
|
|
1280
|
+
*/
|
|
1281
|
+
spend_limit_cents: number;
|
|
1282
|
+
billing_mode?: components["schemas"]["TierBillingMode"];
|
|
1283
|
+
models: components["schemas"]["TierModelCreate"][];
|
|
1284
|
+
billing_provider?: components["schemas"]["BillingProvider"];
|
|
1285
|
+
/**
|
|
1286
|
+
* Format: uint64
|
|
1287
|
+
* @description Subscription price amount in cents (paid tiers)
|
|
1288
|
+
*/
|
|
1289
|
+
price_amount_cents?: number;
|
|
1290
|
+
price_interval?: components["schemas"]["PriceInterval"];
|
|
1291
|
+
/**
|
|
1292
|
+
* Format: uint32
|
|
1293
|
+
* @description Number of trial days for new subscriptions (paid tiers)
|
|
1294
|
+
*/
|
|
1295
|
+
trial_days?: number;
|
|
1296
|
+
};
|
|
1297
|
+
TierUpdate: {
|
|
1298
|
+
tier_code: components["schemas"]["TierCode"];
|
|
1299
|
+
/** @description Human-readable tier name */
|
|
1300
|
+
display_name: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Format: uint64
|
|
1303
|
+
* @description Monthly spend limit in cents (e.g., 2000 = $20/month). Must be non-negative.
|
|
1304
|
+
*/
|
|
1305
|
+
spend_limit_cents: number;
|
|
1306
|
+
models?: components["schemas"]["TierModelCreate"][];
|
|
1307
|
+
billing_provider?: components["schemas"]["BillingProvider"];
|
|
1308
|
+
/**
|
|
1309
|
+
* Format: uint64
|
|
1310
|
+
* @description Subscription price amount in cents (paid tiers)
|
|
1311
|
+
*/
|
|
1312
|
+
price_amount_cents?: number;
|
|
1313
|
+
price_interval?: components["schemas"]["PriceInterval"];
|
|
1314
|
+
/**
|
|
1315
|
+
* Format: uint32
|
|
1316
|
+
* @description Number of trial days for new subscriptions (paid tiers)
|
|
1317
|
+
*/
|
|
1318
|
+
trial_days?: number;
|
|
1319
|
+
};
|
|
1320
|
+
/** @description Arbitrary customer metadata (max 10KB). Keys are limited to 40 characters. Values can be any JSON type. Nesting depth limited to 5 levels. */
|
|
1321
|
+
CustomerMetadata: {
|
|
1322
|
+
[key: string]: unknown;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* @description Subscription status (active, past_due, canceled, etc.)
|
|
1326
|
+
* @enum {string}
|
|
1327
|
+
*/
|
|
1328
|
+
SubscriptionStatusKind: "active" | "trialing" | "past_due" | "canceled" | "unpaid" | "incomplete" | "incomplete_expired" | "paused";
|
|
1329
|
+
/**
|
|
1330
|
+
* @description Billing provider backing the subscription or tier.
|
|
1331
|
+
* @enum {string}
|
|
1332
|
+
*/
|
|
1333
|
+
BillingProvider: "stripe" | "crypto" | "app_store" | "external";
|
|
1334
|
+
Customer: {
|
|
1335
|
+
/** Format: uuid */
|
|
1336
|
+
id?: string;
|
|
1337
|
+
/** Format: uuid */
|
|
1338
|
+
project_id?: string;
|
|
1339
|
+
/** @description External customer identifier from your system */
|
|
1340
|
+
external_id?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Format: email
|
|
1343
|
+
* @description Customer email address
|
|
1344
|
+
*/
|
|
1345
|
+
email?: string;
|
|
1346
|
+
metadata?: components["schemas"]["CustomerMetadata"];
|
|
1347
|
+
/** Format: date-time */
|
|
1348
|
+
created_at?: string;
|
|
1349
|
+
/** Format: date-time */
|
|
1350
|
+
updated_at?: string;
|
|
1351
|
+
};
|
|
1352
|
+
Subscription: {
|
|
1353
|
+
/** Format: uuid */
|
|
1354
|
+
id?: string;
|
|
1355
|
+
/** Format: uuid */
|
|
1356
|
+
project_id?: string;
|
|
1357
|
+
/** Format: uuid */
|
|
1358
|
+
customer_id?: string;
|
|
1359
|
+
/** Format: uuid */
|
|
1360
|
+
tier_id?: string;
|
|
1361
|
+
tier_code?: components["schemas"]["TierCode"];
|
|
1362
|
+
billing_provider?: components["schemas"]["BillingProvider"];
|
|
1363
|
+
/** @description Billing subscription ID from the provider */
|
|
1364
|
+
billing_subscription_id?: string;
|
|
1365
|
+
subscription_status?: components["schemas"]["SubscriptionStatusKind"];
|
|
1366
|
+
/**
|
|
1367
|
+
* Format: date-time
|
|
1368
|
+
* @description Start of the current billing period
|
|
1369
|
+
*/
|
|
1370
|
+
current_period_start?: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* Format: date-time
|
|
1373
|
+
* @description End of the current billing period
|
|
1374
|
+
*/
|
|
1375
|
+
current_period_end?: string;
|
|
1376
|
+
/** Format: date-time */
|
|
1377
|
+
created_at?: string;
|
|
1378
|
+
/** Format: date-time */
|
|
1379
|
+
updated_at?: string;
|
|
1380
|
+
};
|
|
1381
|
+
CustomerWithSubscription: {
|
|
1382
|
+
customer: components["schemas"]["Customer"];
|
|
1383
|
+
subscription?: components["schemas"]["Subscription"];
|
|
1384
|
+
/** @description Billing provider customer ID (e.g., Stripe customer ID) */
|
|
1385
|
+
billing_customer_id?: string;
|
|
1386
|
+
};
|
|
1387
|
+
CustomerMe: {
|
|
1388
|
+
customer: components["schemas"]["Customer"];
|
|
1389
|
+
subscription?: components["schemas"]["Subscription"];
|
|
1390
|
+
tier?: components["schemas"]["Tier"];
|
|
1391
|
+
};
|
|
1392
|
+
CustomerMeResponse: {
|
|
1393
|
+
customer: components["schemas"]["CustomerMe"];
|
|
1394
|
+
};
|
|
1395
|
+
CustomerUsagePoint: {
|
|
1396
|
+
/**
|
|
1397
|
+
* Format: date-time
|
|
1398
|
+
* @description UTC day bucket
|
|
1399
|
+
*/
|
|
1400
|
+
day: string;
|
|
1401
|
+
/** Format: int64 */
|
|
1402
|
+
requests: number;
|
|
1403
|
+
/** Format: int64 */
|
|
1404
|
+
tokens: number;
|
|
1405
|
+
/** Format: int64 */
|
|
1406
|
+
images?: number;
|
|
1407
|
+
/**
|
|
1408
|
+
* Format: int64
|
|
1409
|
+
* @description Credits used in this day bucket (only for paid tiers)
|
|
1410
|
+
*/
|
|
1411
|
+
credits_used_cents?: number;
|
|
1412
|
+
};
|
|
1413
|
+
/** @description Customer-visible usage metrics for the current billing window. */
|
|
1414
|
+
CustomerMeUsage: {
|
|
1415
|
+
/**
|
|
1416
|
+
* Format: date-time
|
|
1417
|
+
* @description Start of the current billing window
|
|
1418
|
+
*/
|
|
1419
|
+
window_start: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Format: date-time
|
|
1422
|
+
* @description End of the current billing window
|
|
1423
|
+
*/
|
|
1424
|
+
window_end: string;
|
|
1425
|
+
/** Format: int64 */
|
|
1426
|
+
requests: number;
|
|
1427
|
+
/** Format: int64 */
|
|
1428
|
+
tokens: number;
|
|
1429
|
+
/** Format: int64 */
|
|
1430
|
+
images: number;
|
|
1431
|
+
/**
|
|
1432
|
+
* Format: int64
|
|
1433
|
+
* @description Credits granted for this billing window (only for paid tiers)
|
|
1434
|
+
*/
|
|
1435
|
+
credits_granted_cents?: number;
|
|
1436
|
+
/**
|
|
1437
|
+
* Format: int64
|
|
1438
|
+
* @description Credits used so far in this billing window (only for paid tiers)
|
|
1439
|
+
*/
|
|
1440
|
+
credits_used_cents?: number;
|
|
1441
|
+
/**
|
|
1442
|
+
* Format: int64
|
|
1443
|
+
* @description Credits remaining in this billing window (only for paid tiers)
|
|
1444
|
+
*/
|
|
1445
|
+
credits_remaining_cents?: number;
|
|
1446
|
+
/**
|
|
1447
|
+
* Format: float
|
|
1448
|
+
* @description Percentage of granted credits used (only for paid tiers)
|
|
1449
|
+
*/
|
|
1450
|
+
percentage_used?: number;
|
|
1451
|
+
/** @description Whether remaining credits are low (only for paid tiers) */
|
|
1452
|
+
low?: boolean;
|
|
1453
|
+
/**
|
|
1454
|
+
* Format: int64
|
|
1455
|
+
* @description PAYGO wallet balance in cents (available when PAYGO wallet is enabled)
|
|
1456
|
+
*/
|
|
1457
|
+
wallet_balance_cents?: number;
|
|
1458
|
+
/**
|
|
1459
|
+
* Format: int64
|
|
1460
|
+
* @description PAYGO wallet reserved amount in cents
|
|
1461
|
+
*/
|
|
1462
|
+
wallet_reserved_cents?: number;
|
|
1463
|
+
/** @description True when PAYGO wallet can cover subscription overages */
|
|
1464
|
+
overage_enabled?: boolean;
|
|
1465
|
+
daily: components["schemas"]["CustomerUsagePoint"][];
|
|
1466
|
+
};
|
|
1467
|
+
CustomerMeUsageResponse: {
|
|
1468
|
+
usage: components["schemas"]["CustomerMeUsage"];
|
|
1469
|
+
};
|
|
1470
|
+
/** @description Customer-visible subscription details for the current tier. */
|
|
1471
|
+
CustomerMeSubscription: {
|
|
1472
|
+
tier_code: components["schemas"]["TierCode"];
|
|
1473
|
+
/** @description Human-readable tier name */
|
|
1474
|
+
tier_display_name: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* Format: int64
|
|
1477
|
+
* @description Subscription price amount in cents (omitted for free tiers)
|
|
1478
|
+
*/
|
|
1479
|
+
price_amount_cents?: number;
|
|
1480
|
+
/** @description Currency code for the price (e.g., 'usd') */
|
|
1481
|
+
price_currency?: string;
|
|
1482
|
+
price_interval?: components["schemas"]["PriceInterval"];
|
|
1483
|
+
subscription_status?: components["schemas"]["SubscriptionStatusKind"];
|
|
1484
|
+
/**
|
|
1485
|
+
* Format: date-time
|
|
1486
|
+
* @description Start of the current billing period
|
|
1487
|
+
*/
|
|
1488
|
+
current_period_start?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Format: date-time
|
|
1491
|
+
* @description End of the current billing period
|
|
1492
|
+
*/
|
|
1493
|
+
current_period_end?: string;
|
|
1494
|
+
};
|
|
1495
|
+
CustomerMeSubscriptionResponse: {
|
|
1496
|
+
subscription: components["schemas"]["CustomerMeSubscription"];
|
|
1497
|
+
};
|
|
1498
|
+
CustomerBalanceResponse: {
|
|
1499
|
+
/** Format: uuid */
|
|
1500
|
+
customer_id: string;
|
|
1501
|
+
/** Format: int64 */
|
|
1502
|
+
balance_cents: number;
|
|
1503
|
+
/** Format: int64 */
|
|
1504
|
+
reserved_cents: number;
|
|
1505
|
+
currency: string;
|
|
1506
|
+
};
|
|
1507
|
+
CustomerLedgerEntry: {
|
|
1508
|
+
/** Format: uuid */
|
|
1509
|
+
id: string;
|
|
1510
|
+
direction: string;
|
|
1511
|
+
reason: string;
|
|
1512
|
+
/** Format: int64 */
|
|
1513
|
+
amount_cents: number;
|
|
1514
|
+
/** Format: int64 */
|
|
1515
|
+
balance_after_cents?: number;
|
|
1516
|
+
description: string;
|
|
1517
|
+
stripe_payment_intent_id?: string;
|
|
1518
|
+
stripe_invoice_id?: string;
|
|
1519
|
+
stripe_checkout_session_id?: string;
|
|
1520
|
+
/** Format: int64 */
|
|
1521
|
+
gross_amount_cents?: number;
|
|
1522
|
+
/** Format: int64 */
|
|
1523
|
+
credit_amount_cents?: number;
|
|
1524
|
+
/** Format: int64 */
|
|
1525
|
+
owner_revenue_cents?: number;
|
|
1526
|
+
/** Format: int64 */
|
|
1527
|
+
platform_fee_cents?: number;
|
|
1528
|
+
model_id?: components["schemas"]["ModelId"];
|
|
1529
|
+
/** Format: int64 */
|
|
1530
|
+
input_tokens?: number;
|
|
1531
|
+
/** Format: int64 */
|
|
1532
|
+
output_tokens?: number;
|
|
1533
|
+
/** Format: uuid */
|
|
1534
|
+
request_id?: string;
|
|
1535
|
+
/** Format: date-time */
|
|
1536
|
+
occurred_at: string;
|
|
1537
|
+
};
|
|
1538
|
+
CustomerLedgerResponse: {
|
|
1539
|
+
entries: components["schemas"]["CustomerLedgerEntry"][];
|
|
1540
|
+
};
|
|
1541
|
+
ChangeTierRequest: {
|
|
1542
|
+
/** @description The tier code to switch to */
|
|
1543
|
+
tier_code: string;
|
|
1544
|
+
};
|
|
1545
|
+
CustomerMeCheckoutRequest: {
|
|
1546
|
+
/** @description The tier code to subscribe to */
|
|
1547
|
+
tier_code: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Format: uri
|
|
1550
|
+
* @description URL to redirect to after successful checkout
|
|
1551
|
+
*/
|
|
1552
|
+
success_url: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* Format: uri
|
|
1555
|
+
* @description URL to redirect to if checkout is cancelled
|
|
1556
|
+
*/
|
|
1557
|
+
cancel_url: string;
|
|
1558
|
+
};
|
|
1559
|
+
CustomerTopupRequest: {
|
|
1560
|
+
/** Format: int64 */
|
|
1561
|
+
credit_amount_cents: number;
|
|
1562
|
+
/** Format: uri */
|
|
1563
|
+
success_url: string;
|
|
1564
|
+
/** Format: uri */
|
|
1565
|
+
cancel_url: string;
|
|
1566
|
+
};
|
|
1567
|
+
CustomerTopupResponse: {
|
|
1568
|
+
session_id: string;
|
|
1569
|
+
/** Format: uri */
|
|
1570
|
+
checkout_url: string;
|
|
1571
|
+
/** Format: int64 */
|
|
1572
|
+
gross_amount_cents: number;
|
|
1573
|
+
/** Format: int64 */
|
|
1574
|
+
credit_amount_cents: number;
|
|
1575
|
+
/** Format: int64 */
|
|
1576
|
+
owner_revenue_cents: number;
|
|
1577
|
+
/** Format: int64 */
|
|
1578
|
+
platform_fee_cents: number;
|
|
1579
|
+
status: string;
|
|
1580
|
+
};
|
|
1581
|
+
CustomerCreate: {
|
|
1582
|
+
/** @description External customer identifier from your system */
|
|
1583
|
+
external_id: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* Format: email
|
|
1586
|
+
* @description Customer email address
|
|
1587
|
+
*/
|
|
1588
|
+
email: string;
|
|
1589
|
+
metadata?: components["schemas"]["CustomerMetadata"];
|
|
1590
|
+
};
|
|
1591
|
+
/** @enum {string} */
|
|
1592
|
+
MessageRole: "system" | "user" | "assistant" | "tool";
|
|
1593
|
+
ContentPart: {
|
|
1594
|
+
/** @enum {string} */
|
|
1595
|
+
type: "text";
|
|
1596
|
+
text?: string;
|
|
1597
|
+
};
|
|
1598
|
+
InputItem: {
|
|
1599
|
+
/** @enum {string} */
|
|
1600
|
+
type: "message";
|
|
1601
|
+
role?: components["schemas"]["MessageRole"];
|
|
1602
|
+
content?: components["schemas"]["ContentPart"][];
|
|
1603
|
+
tool_calls?: components["schemas"]["ToolCall"][];
|
|
1604
|
+
tool_call_id?: components["schemas"]["ToolCallId"];
|
|
1605
|
+
};
|
|
1606
|
+
OutputItem: {
|
|
1607
|
+
/** @enum {string} */
|
|
1608
|
+
type: "message";
|
|
1609
|
+
role?: components["schemas"]["MessageRole"];
|
|
1610
|
+
content?: components["schemas"]["ContentPart"][];
|
|
1611
|
+
tool_calls?: components["schemas"]["ToolCall"][];
|
|
1612
|
+
};
|
|
1613
|
+
JSONSchemaFormat: {
|
|
1614
|
+
name: string;
|
|
1615
|
+
description?: string;
|
|
1616
|
+
schema?: {
|
|
1617
|
+
[key: string]: unknown;
|
|
1618
|
+
};
|
|
1619
|
+
strict?: boolean;
|
|
1620
|
+
};
|
|
1621
|
+
OutputFormat: {
|
|
1622
|
+
/** @enum {string} */
|
|
1623
|
+
type: "text" | "json_schema";
|
|
1624
|
+
json_schema?: components["schemas"]["JSONSchemaFormat"];
|
|
1625
|
+
};
|
|
1626
|
+
Tool: {
|
|
1627
|
+
/** @enum {string} */
|
|
1628
|
+
type: "function" | "web" | "x_search" | "code_execution" | "image_generation";
|
|
1629
|
+
function?: {
|
|
1630
|
+
name?: components["schemas"]["ToolName"];
|
|
1631
|
+
description?: string;
|
|
1632
|
+
parameters?: {
|
|
1633
|
+
[key: string]: unknown;
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
web?: {
|
|
1637
|
+
[key: string]: unknown;
|
|
1638
|
+
};
|
|
1639
|
+
x_search?: {
|
|
1640
|
+
[key: string]: unknown;
|
|
1641
|
+
};
|
|
1642
|
+
code_execution?: {
|
|
1643
|
+
[key: string]: unknown;
|
|
1644
|
+
};
|
|
1645
|
+
/** @description Configuration for server-side image generation tool */
|
|
1646
|
+
image_generation?: {
|
|
1647
|
+
/** @description Image generation model ID (e.g., gemini-2.5-flash-image) */
|
|
1648
|
+
model: string;
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
ToolChoice: {
|
|
1652
|
+
/** @enum {string} */
|
|
1653
|
+
type: "auto" | "required" | "none";
|
|
1654
|
+
function?: components["schemas"]["ToolName"];
|
|
1655
|
+
};
|
|
1656
|
+
ResponsesRequest: {
|
|
1657
|
+
provider?: components["schemas"]["ProviderId"];
|
|
1658
|
+
model?: components["schemas"]["ModelId"];
|
|
1659
|
+
input: components["schemas"]["InputItem"][];
|
|
1660
|
+
output_format?: components["schemas"]["OutputFormat"];
|
|
1661
|
+
/** Format: uint32 */
|
|
1662
|
+
max_output_tokens?: number;
|
|
1663
|
+
temperature?: number;
|
|
1664
|
+
stop?: string[];
|
|
1665
|
+
tools?: components["schemas"]["Tool"][];
|
|
1666
|
+
tool_choice?: components["schemas"]["ToolChoice"];
|
|
1667
|
+
};
|
|
1668
|
+
ResponsesResponse: {
|
|
1669
|
+
/** @description Response identifier from the provider */
|
|
1670
|
+
id: string;
|
|
1671
|
+
output: components["schemas"]["OutputItem"][];
|
|
1672
|
+
model: components["schemas"]["ModelId"];
|
|
1673
|
+
provider?: components["schemas"]["ProviderId"];
|
|
1674
|
+
/** @description Why generation stopped (stop, max_tokens, tool_use, etc.) */
|
|
1675
|
+
stop_reason?: string;
|
|
1676
|
+
usage: components["schemas"]["Usage"];
|
|
1677
|
+
/** @description Sources from web search results */
|
|
1678
|
+
citations?: components["schemas"]["Citation"][];
|
|
1679
|
+
};
|
|
1680
|
+
JSONPatchOperation: {
|
|
1681
|
+
/** @enum {string} */
|
|
1682
|
+
op: "add" | "remove" | "replace" | "move" | "copy" | "test";
|
|
1683
|
+
path: string;
|
|
1684
|
+
from?: string;
|
|
1685
|
+
value?: {
|
|
1686
|
+
[key: string]: unknown;
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
ResponsesStreamEnvelope: {
|
|
1690
|
+
/** @enum {string} */
|
|
1691
|
+
type: "start" | "update" | "completion" | "error" | "keepalive" | "tool_use_start" | "tool_use_delta" | "tool_use_stop";
|
|
1692
|
+
/** @enum {string} */
|
|
1693
|
+
stream_mode?: "text-delta" | "structured-patch";
|
|
1694
|
+
/** @enum {string} */
|
|
1695
|
+
stream_version?: "v2";
|
|
1696
|
+
delta?: string;
|
|
1697
|
+
content?: string;
|
|
1698
|
+
patch?: components["schemas"]["JSONPatchOperation"][];
|
|
1699
|
+
payload?: {
|
|
1700
|
+
[key: string]: unknown;
|
|
1701
|
+
};
|
|
1702
|
+
complete_fields?: string[];
|
|
1703
|
+
code?: string;
|
|
1704
|
+
message?: string;
|
|
1705
|
+
status?: number;
|
|
1706
|
+
request_id?: string;
|
|
1707
|
+
provider?: components["schemas"]["ProviderId"];
|
|
1708
|
+
model?: components["schemas"]["ModelId"];
|
|
1709
|
+
stop_reason?: string;
|
|
1710
|
+
usage?: components["schemas"]["Usage"];
|
|
1711
|
+
};
|
|
1712
|
+
ResponsesBatchRequest: {
|
|
1713
|
+
requests: components["schemas"]["ResponsesRequest"][];
|
|
1714
|
+
options?: {
|
|
1715
|
+
/** Format: uint32 */
|
|
1716
|
+
max_parallelism?: number;
|
|
1717
|
+
abort_on_error?: boolean;
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
ResponsesBatchError: {
|
|
1721
|
+
status: number;
|
|
1722
|
+
message: string;
|
|
1723
|
+
/** @description Raw error details from the provider */
|
|
1724
|
+
detail?: string;
|
|
1725
|
+
code?: string;
|
|
1726
|
+
};
|
|
1727
|
+
ResponsesBatchResult: {
|
|
1728
|
+
/** Format: uint32 */
|
|
1729
|
+
index: number;
|
|
1730
|
+
ok: boolean;
|
|
1731
|
+
response?: components["schemas"]["ResponsesResponse"];
|
|
1732
|
+
error?: components["schemas"]["ResponsesBatchError"];
|
|
1733
|
+
};
|
|
1734
|
+
ResponsesBatchResponse: {
|
|
1735
|
+
results: components["schemas"]["ResponsesBatchResult"][];
|
|
1736
|
+
request_id?: string;
|
|
1737
|
+
};
|
|
1738
|
+
/** @description A `workflow.v0` spec. The canonical JSON Schema is available at `/schemas/workflow_v0.schema.json`. */
|
|
1739
|
+
WorkflowSpecV0: {
|
|
1740
|
+
[key: string]: unknown;
|
|
1741
|
+
};
|
|
1742
|
+
/** @description A `workflow.v1` spec. The canonical JSON Schema is available at `/schemas/workflow_v1.schema.json`. */
|
|
1743
|
+
WorkflowSpecV1: {
|
|
1744
|
+
[key: string]: unknown;
|
|
1745
|
+
};
|
|
1746
|
+
RunsCreateOptionsV0: {
|
|
1747
|
+
idempotency_key?: string;
|
|
1748
|
+
};
|
|
1749
|
+
RunsCreateRequest: {
|
|
1750
|
+
spec: components["schemas"]["WorkflowSpecV0"] | components["schemas"]["WorkflowSpecV1"];
|
|
1751
|
+
/**
|
|
1752
|
+
* Format: uuid
|
|
1753
|
+
* @description Optional session ID to link this run to a session.
|
|
1754
|
+
*/
|
|
1755
|
+
session_id?: string;
|
|
1756
|
+
/** @description Runtime inputs for the workflow. Required when the spec uses from_input references (e.g., map.fanout with items.from_input). Each key is the input name, and the value is the JSON data to provide. */
|
|
1757
|
+
input?: {
|
|
1758
|
+
[key: string]: unknown;
|
|
1759
|
+
};
|
|
1760
|
+
options?: components["schemas"]["RunsCreateOptionsV0"];
|
|
1761
|
+
};
|
|
1762
|
+
/** @enum {string} */
|
|
1763
|
+
RunStatusV0: "running" | "waiting" | "succeeded" | "failed" | "canceled";
|
|
1764
|
+
RunsCreateResponse: {
|
|
1765
|
+
run_id: components["schemas"]["RunId"];
|
|
1766
|
+
status: components["schemas"]["RunStatusV0"];
|
|
1767
|
+
plan_hash: components["schemas"]["PlanHash"];
|
|
1768
|
+
};
|
|
1769
|
+
/** @enum {string} */
|
|
1770
|
+
NodeStatusV0: "pending" | "running" | "waiting" | "succeeded" | "failed" | "canceled";
|
|
1771
|
+
NodeErrorV0: {
|
|
1772
|
+
code?: string;
|
|
1773
|
+
message: string;
|
|
1774
|
+
/** @description Raw error details from the provider */
|
|
1775
|
+
detail?: string;
|
|
1776
|
+
};
|
|
1777
|
+
NodeResultV0: {
|
|
1778
|
+
id: components["schemas"]["NodeId"];
|
|
1779
|
+
type: components["schemas"]["NodeTypeV0"];
|
|
1780
|
+
status: components["schemas"]["NodeStatusV0"];
|
|
1781
|
+
/** Format: date-time */
|
|
1782
|
+
started_at?: string;
|
|
1783
|
+
/** Format: date-time */
|
|
1784
|
+
ended_at?: string;
|
|
1785
|
+
output?: {
|
|
1786
|
+
[key: string]: unknown;
|
|
1787
|
+
};
|
|
1788
|
+
error?: components["schemas"]["NodeErrorV0"];
|
|
1789
|
+
};
|
|
1790
|
+
RunCostLineItemV0: {
|
|
1791
|
+
provider_id: components["schemas"]["ProviderId"];
|
|
1792
|
+
model: components["schemas"]["ModelId"];
|
|
1793
|
+
/** Format: uint64 */
|
|
1794
|
+
requests: number;
|
|
1795
|
+
/** Format: uint64 */
|
|
1796
|
+
input_tokens: number;
|
|
1797
|
+
/** Format: uint64 */
|
|
1798
|
+
output_tokens: number;
|
|
1799
|
+
/** Format: uint64 */
|
|
1800
|
+
usd_cents: number;
|
|
1801
|
+
};
|
|
1802
|
+
RunCostSummaryV0: {
|
|
1803
|
+
/** Format: uint64 */
|
|
1804
|
+
total_usd_cents: number;
|
|
1805
|
+
line_items?: components["schemas"]["RunCostLineItemV0"][];
|
|
1806
|
+
};
|
|
1807
|
+
RunsGetResponse: {
|
|
1808
|
+
run_id: components["schemas"]["RunId"];
|
|
1809
|
+
status: components["schemas"]["RunStatusV0"];
|
|
1810
|
+
plan_hash: components["schemas"]["PlanHash"];
|
|
1811
|
+
cost_summary: components["schemas"]["RunCostSummaryV0"];
|
|
1812
|
+
nodes?: components["schemas"]["NodeResultV0"][];
|
|
1813
|
+
outputs?: {
|
|
1814
|
+
[key: string]: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
/** @description Token usage statistics. All fields default to 0 if not present. */
|
|
1818
|
+
Usage: {
|
|
1819
|
+
/**
|
|
1820
|
+
* Format: uint64
|
|
1821
|
+
* @default 0
|
|
1822
|
+
*/
|
|
1823
|
+
input_tokens: number;
|
|
1824
|
+
/**
|
|
1825
|
+
* Format: uint64
|
|
1826
|
+
* @default 0
|
|
1827
|
+
*/
|
|
1828
|
+
output_tokens: number;
|
|
1829
|
+
/**
|
|
1830
|
+
* Format: uint64
|
|
1831
|
+
* @default 0
|
|
1832
|
+
*/
|
|
1833
|
+
total_tokens: number;
|
|
1834
|
+
};
|
|
1835
|
+
/** @description Unique identifier for a tool call. Treated as an opaque string and must be preserved exactly. */
|
|
1836
|
+
ToolCallId: string;
|
|
1837
|
+
/** @description Tool identifier. For tools.v0 client tools, use dot-separated lowercase segments (e.g. fs.search). */
|
|
1838
|
+
ToolName: string;
|
|
1839
|
+
ToolCall: {
|
|
1840
|
+
id: components["schemas"]["ToolCallId"];
|
|
1841
|
+
/** @enum {string} */
|
|
1842
|
+
type: "function" | "web" | "x_search" | "code_execution" | "image_generation";
|
|
1843
|
+
function?: {
|
|
1844
|
+
name?: components["schemas"]["ToolName"];
|
|
1845
|
+
/** @description JSON string of function arguments */
|
|
1846
|
+
arguments?: string;
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
Citation: {
|
|
1850
|
+
url?: string;
|
|
1851
|
+
title?: string;
|
|
1852
|
+
};
|
|
1853
|
+
CustomerTokenResponse: {
|
|
1854
|
+
/** @description The customer bearer token */
|
|
1855
|
+
token: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* Format: date-time
|
|
1858
|
+
* @description Token expiration timestamp
|
|
1859
|
+
*/
|
|
1860
|
+
expires_at: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* Format: uint32
|
|
1863
|
+
* @description Seconds until token expires
|
|
1864
|
+
*/
|
|
1865
|
+
expires_in: number;
|
|
1866
|
+
/**
|
|
1867
|
+
* Format: uuid
|
|
1868
|
+
* @description Project the token is scoped to
|
|
1869
|
+
*/
|
|
1870
|
+
project_id: string;
|
|
1871
|
+
/**
|
|
1872
|
+
* Format: uuid
|
|
1873
|
+
* @description Internal customer UUID. Only present for managed billing projects; BYOB projects have end-users but not customers.
|
|
1874
|
+
*/
|
|
1875
|
+
customer_id?: string;
|
|
1876
|
+
/** @description External customer identifier */
|
|
1877
|
+
customer_external_id: string;
|
|
1878
|
+
tier_code?: components["schemas"]["TierCode"];
|
|
1879
|
+
};
|
|
1880
|
+
CheckoutSessionResponse: {
|
|
1881
|
+
/** @description Stripe checkout session ID */
|
|
1882
|
+
session_id: string;
|
|
1883
|
+
/**
|
|
1884
|
+
* Format: uri
|
|
1885
|
+
* @description Checkout URL
|
|
1886
|
+
*/
|
|
1887
|
+
url: string;
|
|
1888
|
+
};
|
|
1889
|
+
DeviceStartResponse: {
|
|
1890
|
+
/** @description Device code used for polling /auth/device/token */
|
|
1891
|
+
device_code: string;
|
|
1892
|
+
/** @description Human-enterable code shown to the user */
|
|
1893
|
+
user_code: string;
|
|
1894
|
+
/** @description URL where the user enters the code and completes authorization */
|
|
1895
|
+
verification_uri: string;
|
|
1896
|
+
/** @description Convenience URL that pre-fills the user_code (optional) */
|
|
1897
|
+
verification_uri_complete?: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* Format: uint32
|
|
1900
|
+
* @description Seconds until the device code expires
|
|
1901
|
+
*/
|
|
1902
|
+
expires_in: number;
|
|
1903
|
+
/**
|
|
1904
|
+
* Format: uint32
|
|
1905
|
+
* @description Minimum polling interval in seconds
|
|
1906
|
+
*/
|
|
1907
|
+
interval: number;
|
|
1908
|
+
};
|
|
1909
|
+
DeviceTokenError: {
|
|
1910
|
+
/** @description OAuth device flow error code */
|
|
1911
|
+
error: string;
|
|
1912
|
+
/** @description Optional human-readable error message */
|
|
1913
|
+
error_description?: string;
|
|
1914
|
+
/**
|
|
1915
|
+
* Format: uint32
|
|
1916
|
+
* @description Updated recommended polling interval in seconds (when error is slow_down)
|
|
1917
|
+
*/
|
|
1918
|
+
interval?: number;
|
|
1919
|
+
};
|
|
1920
|
+
APIError: {
|
|
1921
|
+
error: string;
|
|
1922
|
+
code: string;
|
|
1923
|
+
message: string;
|
|
1924
|
+
};
|
|
1925
|
+
/** @description Subscription status for a customer. */
|
|
1926
|
+
SubscriptionStatus: {
|
|
1927
|
+
/** @description Whether the subscription is currently active */
|
|
1928
|
+
active: boolean;
|
|
1929
|
+
/** @description Stripe subscription ID */
|
|
1930
|
+
subscription_id?: string;
|
|
1931
|
+
status?: components["schemas"]["SubscriptionStatusKind"];
|
|
1932
|
+
/**
|
|
1933
|
+
* Format: date-time
|
|
1934
|
+
* @description Start of the current billing period
|
|
1935
|
+
*/
|
|
1936
|
+
current_period_start?: string;
|
|
1937
|
+
/**
|
|
1938
|
+
* Format: date-time
|
|
1939
|
+
* @description End of the current billing period
|
|
1940
|
+
*/
|
|
1941
|
+
current_period_end?: string;
|
|
1942
|
+
};
|
|
1943
|
+
/** @description Response containing pending tool calls for a workflow run. */
|
|
1944
|
+
RunsPendingToolsResponse: {
|
|
1945
|
+
run_id: components["schemas"]["RunId"];
|
|
1946
|
+
pending?: components["schemas"]["RunsPendingToolsNodeV0"][];
|
|
1947
|
+
};
|
|
1948
|
+
/** @description A node with pending tool calls. */
|
|
1949
|
+
RunsPendingToolsNodeV0: {
|
|
1950
|
+
node_id: components["schemas"]["NodeId"];
|
|
1951
|
+
/**
|
|
1952
|
+
* Format: uint64
|
|
1953
|
+
* @description The step number within the node execution
|
|
1954
|
+
*/
|
|
1955
|
+
step: number;
|
|
1956
|
+
request_id: components["schemas"]["RequestId"];
|
|
1957
|
+
tool_calls?: components["schemas"]["RunsPendingToolCallV0"][];
|
|
1958
|
+
};
|
|
1959
|
+
/** @description A pending tool call waiting for a result. */
|
|
1960
|
+
RunsPendingToolCallV0: {
|
|
1961
|
+
/** @description Unique identifier for this tool call */
|
|
1962
|
+
tool_call_id: components["schemas"]["ToolCallId"];
|
|
1963
|
+
/** @description Name of the tool to be called */
|
|
1964
|
+
name: components["schemas"]["ToolName"];
|
|
1965
|
+
/** @description JSON-encoded arguments for the tool call */
|
|
1966
|
+
arguments: string;
|
|
1967
|
+
};
|
|
1968
|
+
/**
|
|
1969
|
+
* @description Events sent during streaming responses (application/x-ndjson).
|
|
1970
|
+
* Each line is a JSON object with an "event" field indicating the type.
|
|
1971
|
+
*/
|
|
1972
|
+
NDJSONStreamEvent: {
|
|
1973
|
+
/**
|
|
1974
|
+
* @description Event type
|
|
1975
|
+
* @enum {string}
|
|
1976
|
+
*/
|
|
1977
|
+
event: "message_start" | "message_delta" | "message_stop" | "tool_use_start" | "tool_use_delta" | "tool_use_stop" | "ping" | "keepalive";
|
|
1978
|
+
/** @description Response identifier (message_start) */
|
|
1979
|
+
response_id?: string;
|
|
1980
|
+
model?: components["schemas"]["ModelId"];
|
|
1981
|
+
/** @description Text content fragment (message_delta) */
|
|
1982
|
+
text_delta?: string;
|
|
1983
|
+
/** @description Why generation stopped (message_stop) */
|
|
1984
|
+
stop_reason?: string;
|
|
1985
|
+
usage?: components["schemas"]["Usage"];
|
|
1986
|
+
/** @description Completed tool calls (tool_use_stop, message_stop) */
|
|
1987
|
+
tool_calls?: components["schemas"]["ToolCall"][];
|
|
1988
|
+
tool_call_delta?: components["schemas"]["ToolCallDelta"];
|
|
1989
|
+
};
|
|
1990
|
+
/** @description Incremental tool call data during streaming */
|
|
1991
|
+
ToolCallDelta: {
|
|
1992
|
+
/** Format: uint32 */
|
|
1993
|
+
index?: number;
|
|
1994
|
+
id?: components["schemas"]["ToolCallId"];
|
|
1995
|
+
type?: string;
|
|
1996
|
+
function?: {
|
|
1997
|
+
name?: components["schemas"]["ToolName"];
|
|
1998
|
+
/** @description Partial JSON string */
|
|
1999
|
+
arguments?: string;
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
/** @description Workflow node identifier. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. */
|
|
2003
|
+
NodeId: string;
|
|
2004
|
+
/** @description LLM model identifier (e.g., claude-sonnet-4-20250514, gpt-4o). */
|
|
2005
|
+
ModelId: string;
|
|
2006
|
+
/**
|
|
2007
|
+
* @description Workflow-critical model capability identifier.
|
|
2008
|
+
* @enum {string}
|
|
2009
|
+
*/
|
|
2010
|
+
ModelCapability: "text_generation" | "tools" | "vision" | "web_search" | "web_fetch" | "computer_use" | "code_execution" | "image_generation";
|
|
2011
|
+
Model: {
|
|
2012
|
+
model_id: components["schemas"]["ModelId"];
|
|
2013
|
+
provider: components["schemas"]["ProviderId"];
|
|
2014
|
+
display_name: string;
|
|
2015
|
+
description: string;
|
|
2016
|
+
capabilities: components["schemas"]["ModelCapability"][];
|
|
2017
|
+
/** Format: int32 */
|
|
2018
|
+
context_window: number;
|
|
2019
|
+
/** Format: int32 */
|
|
2020
|
+
max_output_tokens: number;
|
|
2021
|
+
/** @description Training cutoff in YYYY-MM format */
|
|
2022
|
+
training_cutoff: string;
|
|
2023
|
+
deprecated: boolean;
|
|
2024
|
+
deprecation_message: string;
|
|
2025
|
+
/** Format: uint64 */
|
|
2026
|
+
input_cost_per_million_cents: number;
|
|
2027
|
+
/** Format: uint64 */
|
|
2028
|
+
output_cost_per_million_cents: number;
|
|
2029
|
+
};
|
|
2030
|
+
ModelsResponse: {
|
|
2031
|
+
models: components["schemas"]["Model"][];
|
|
2032
|
+
};
|
|
2033
|
+
/**
|
|
2034
|
+
* Format: uuid
|
|
2035
|
+
* @description Unique identifier for a workflow run.
|
|
2036
|
+
*/
|
|
2037
|
+
RunId: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* Format: uuid
|
|
2040
|
+
* @description Unique identifier for an LLM request within a workflow run.
|
|
2041
|
+
*/
|
|
2042
|
+
RequestId: string;
|
|
2043
|
+
/** @description SHA-256 hash of the compiled workflow plan (64 hex characters). */
|
|
2044
|
+
PlanHash: string;
|
|
2045
|
+
/** @description SHA-256 hash (64 hex characters). */
|
|
2046
|
+
Sha256Hash: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* @description LLM provider identifier.
|
|
2049
|
+
* @enum {string}
|
|
2050
|
+
*/
|
|
2051
|
+
ProviderId: "anthropic" | "openai" | "xai" | "google-ai-studio";
|
|
2052
|
+
PluginManifestV0: {
|
|
2053
|
+
name?: string;
|
|
2054
|
+
description?: string;
|
|
2055
|
+
version?: string;
|
|
2056
|
+
commands?: string[];
|
|
2057
|
+
agents?: string[];
|
|
2058
|
+
};
|
|
2059
|
+
PluginGitHubRefV0: {
|
|
2060
|
+
owner?: string;
|
|
2061
|
+
repo?: string;
|
|
2062
|
+
ref?: string;
|
|
2063
|
+
path?: string;
|
|
2064
|
+
};
|
|
2065
|
+
PluginCommandV0: {
|
|
2066
|
+
name: string;
|
|
2067
|
+
prompt: string;
|
|
2068
|
+
agent_refs?: string[];
|
|
2069
|
+
};
|
|
2070
|
+
PluginAgentV0: {
|
|
2071
|
+
name: string;
|
|
2072
|
+
system_prompt: string;
|
|
2073
|
+
};
|
|
2074
|
+
WebhookConfig: {
|
|
2075
|
+
/** Format: uuid */
|
|
2076
|
+
id?: string;
|
|
2077
|
+
/** Format: uuid */
|
|
2078
|
+
project_id?: string;
|
|
2079
|
+
/** Format: uri */
|
|
2080
|
+
endpoint_url?: string;
|
|
2081
|
+
signing_secret?: string;
|
|
2082
|
+
enabled?: boolean;
|
|
2083
|
+
events?: ("customer.created" | "customer.updated" | "customer.deleted" | "usage.threshold_exceeded" | "request.completed" | "billing.subscription_changed")[];
|
|
2084
|
+
/** Format: date-time */
|
|
2085
|
+
created_at?: string;
|
|
2086
|
+
/** Format: date-time */
|
|
2087
|
+
updated_at?: string;
|
|
2088
|
+
};
|
|
2089
|
+
WebhookConfigInput: {
|
|
2090
|
+
/** Format: uri */
|
|
2091
|
+
endpoint_url: string;
|
|
2092
|
+
enabled?: boolean;
|
|
2093
|
+
events: ("customer.created" | "customer.updated" | "customer.deleted" | "usage.threshold_exceeded" | "request.completed" | "billing.subscription_changed")[];
|
|
2094
|
+
};
|
|
2095
|
+
WebhookConfigUpdate: {
|
|
2096
|
+
/** Format: uri */
|
|
2097
|
+
endpoint_url: string;
|
|
2098
|
+
enabled?: boolean;
|
|
2099
|
+
events: ("customer.created" | "customer.updated" | "customer.deleted" | "usage.threshold_exceeded" | "request.completed" | "billing.subscription_changed")[];
|
|
2100
|
+
rotate_secret?: boolean;
|
|
2101
|
+
};
|
|
2102
|
+
OutboundWebhookEvent: {
|
|
2103
|
+
/** Format: uuid */
|
|
2104
|
+
id?: string;
|
|
2105
|
+
/** Format: uuid */
|
|
2106
|
+
webhook_config_id?: string;
|
|
2107
|
+
event_type?: string;
|
|
2108
|
+
event_id?: string;
|
|
2109
|
+
payload?: Record<string, never>;
|
|
2110
|
+
status?: string;
|
|
2111
|
+
/** Format: int32 */
|
|
2112
|
+
attempt_count?: number;
|
|
2113
|
+
/** Format: date-time */
|
|
2114
|
+
next_attempt_at?: string;
|
|
2115
|
+
/** Format: date-time */
|
|
2116
|
+
last_attempt_at?: string;
|
|
2117
|
+
/** Format: int32 */
|
|
2118
|
+
response_status?: number;
|
|
2119
|
+
response_body?: string;
|
|
2120
|
+
/** Format: int32 */
|
|
2121
|
+
latency_ms?: number;
|
|
2122
|
+
error?: string;
|
|
2123
|
+
/** Format: date-time */
|
|
2124
|
+
created_at?: string;
|
|
2125
|
+
/** Format: date-time */
|
|
2126
|
+
updated_at?: string;
|
|
2127
|
+
};
|
|
2128
|
+
/**
|
|
2129
|
+
* @description Type of workflow node.
|
|
2130
|
+
* @enum {string}
|
|
2131
|
+
*/
|
|
2132
|
+
NodeTypeV0: "llm.responses" | "route.switch" | "join.all" | "join.any" | "join.collect" | "map.fanout" | "transform.json";
|
|
2133
|
+
/** @description Tier code identifier (e.g., free, pro, enterprise). */
|
|
2134
|
+
TierCode: string;
|
|
2135
|
+
/** @description Request to generate images from a text prompt. */
|
|
2136
|
+
ImageRequest: {
|
|
2137
|
+
/** @description Image generation model ID (e.g., gemini-2.5-flash-image). Optional when using a customer token with a tier that defines a default model. */
|
|
2138
|
+
model?: string;
|
|
2139
|
+
/** @description Text description of the image to generate */
|
|
2140
|
+
prompt: string;
|
|
2141
|
+
/**
|
|
2142
|
+
* @description Number of images to generate (1-10, default 1)
|
|
2143
|
+
* @default 1
|
|
2144
|
+
*/
|
|
2145
|
+
n: number;
|
|
2146
|
+
response_format?: components["schemas"]["ImageResponseFormat"];
|
|
2147
|
+
};
|
|
2148
|
+
/**
|
|
2149
|
+
* @description Output format for generated images.
|
|
2150
|
+
* @default url
|
|
2151
|
+
* @enum {string}
|
|
2152
|
+
*/
|
|
2153
|
+
ImageResponseFormat: "url" | "b64_json";
|
|
2154
|
+
/** @description Response containing generated images. */
|
|
2155
|
+
ImageResponse: {
|
|
2156
|
+
/** @description Unique identifier for this generation request */
|
|
2157
|
+
id: string;
|
|
2158
|
+
/** @description Model used for generation */
|
|
2159
|
+
model: string;
|
|
2160
|
+
/** @description Generated images */
|
|
2161
|
+
data: components["schemas"]["ImageData"][];
|
|
2162
|
+
usage: components["schemas"]["ImageUsage"];
|
|
2163
|
+
};
|
|
2164
|
+
/** @description A single generated image. */
|
|
2165
|
+
ImageData: {
|
|
2166
|
+
/** @description URL of the generated image (when response_format is 'url') */
|
|
2167
|
+
url?: string;
|
|
2168
|
+
/** @description Base64-encoded image data (when response_format is 'b64_json') */
|
|
2169
|
+
b64_json?: string;
|
|
2170
|
+
/** @description MIME type of the image (e.g., 'image/png', 'image/webp') */
|
|
2171
|
+
mime_type?: string;
|
|
2172
|
+
/** @description Unique identifier for the image (used for pinning) */
|
|
2173
|
+
image_id?: string;
|
|
2174
|
+
/**
|
|
2175
|
+
* Format: date-time
|
|
2176
|
+
* @description When the image URL expires (null if pinned)
|
|
2177
|
+
*/
|
|
2178
|
+
expires_at?: string;
|
|
2179
|
+
/** @description URL to pin this image for permanent storage */
|
|
2180
|
+
pin_url?: string;
|
|
2181
|
+
};
|
|
2182
|
+
/** @description Usage statistics for image generation. */
|
|
2183
|
+
ImageUsage: {
|
|
2184
|
+
/**
|
|
2185
|
+
* Format: int32
|
|
2186
|
+
* @description Number of images generated
|
|
2187
|
+
*/
|
|
2188
|
+
images: number;
|
|
2189
|
+
};
|
|
2190
|
+
/** @description Response from pin/unpin operations. */
|
|
2191
|
+
ImagePinResponse: {
|
|
2192
|
+
/** @description Image ID */
|
|
2193
|
+
id: string;
|
|
2194
|
+
/** @description Whether the image is currently pinned */
|
|
2195
|
+
pinned: boolean;
|
|
2196
|
+
/**
|
|
2197
|
+
* Format: date-time
|
|
2198
|
+
* @description When the image expires (null if pinned)
|
|
2199
|
+
*/
|
|
2200
|
+
expires_at?: string;
|
|
2201
|
+
/** @description URL of the image */
|
|
2202
|
+
url: string;
|
|
2203
|
+
};
|
|
2204
|
+
/** @description Request body for creating a session. */
|
|
2205
|
+
SessionCreateRequest: {
|
|
2206
|
+
/**
|
|
2207
|
+
* Format: uuid
|
|
2208
|
+
* @description Optional end user ID to associate with the session
|
|
2209
|
+
*/
|
|
2210
|
+
end_user_id?: string;
|
|
2211
|
+
/** @description Optional metadata for the session */
|
|
2212
|
+
metadata?: {
|
|
2213
|
+
[key: string]: unknown;
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
/** @description A session resource. */
|
|
2217
|
+
SessionResponse: {
|
|
2218
|
+
/**
|
|
2219
|
+
* Format: uuid
|
|
2220
|
+
* @description Session unique identifier
|
|
2221
|
+
*/
|
|
2222
|
+
id: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Format: uuid
|
|
2225
|
+
* @description Project the session belongs to
|
|
2226
|
+
*/
|
|
2227
|
+
project_id: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Format: uuid
|
|
2230
|
+
* @description End user associated with the session (if any)
|
|
2231
|
+
*/
|
|
2232
|
+
end_user_id?: string;
|
|
2233
|
+
/** @description Session metadata */
|
|
2234
|
+
metadata: {
|
|
2235
|
+
[key: string]: unknown;
|
|
2236
|
+
};
|
|
2237
|
+
/**
|
|
2238
|
+
* Format: int64
|
|
2239
|
+
* @description Number of messages in the session
|
|
2240
|
+
*/
|
|
2241
|
+
message_count: number;
|
|
2242
|
+
/**
|
|
2243
|
+
* Format: date-time
|
|
2244
|
+
* @description Session creation timestamp
|
|
2245
|
+
*/
|
|
2246
|
+
created_at: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Format: date-time
|
|
2249
|
+
* @description Session last update timestamp
|
|
2250
|
+
*/
|
|
2251
|
+
updated_at: string;
|
|
2252
|
+
};
|
|
2253
|
+
/** @description A message within a session. */
|
|
2254
|
+
SessionMessageResponse: {
|
|
2255
|
+
/**
|
|
2256
|
+
* Format: uuid
|
|
2257
|
+
* @description Message unique identifier
|
|
2258
|
+
*/
|
|
2259
|
+
id: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* Format: int32
|
|
2262
|
+
* @description Sequence number within the session
|
|
2263
|
+
*/
|
|
2264
|
+
seq: number;
|
|
2265
|
+
/** @description Message role (user, assistant, tool) */
|
|
2266
|
+
role: string;
|
|
2267
|
+
/** @description Message content parts */
|
|
2268
|
+
content: {
|
|
2269
|
+
[key: string]: unknown;
|
|
2270
|
+
}[];
|
|
2271
|
+
/**
|
|
2272
|
+
* Format: uuid
|
|
2273
|
+
* @description Run ID that generated this message (for assistant messages)
|
|
2274
|
+
*/
|
|
2275
|
+
run_id?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Format: date-time
|
|
2278
|
+
* @description Message creation timestamp
|
|
2279
|
+
*/
|
|
2280
|
+
created_at: string;
|
|
2281
|
+
};
|
|
2282
|
+
/** @description A session with its full message history. */
|
|
2283
|
+
SessionWithMessagesResponse: components["schemas"]["SessionResponse"] & {
|
|
2284
|
+
/** @description All messages in the session */
|
|
2285
|
+
messages: components["schemas"]["SessionMessageResponse"][];
|
|
2286
|
+
};
|
|
2287
|
+
/** @description Paginated list of sessions. */
|
|
2288
|
+
SessionListResponse: {
|
|
2289
|
+
/** @description List of sessions */
|
|
2290
|
+
sessions: components["schemas"]["SessionResponse"][];
|
|
2291
|
+
/** @description Cursor for fetching the next page (if more results exist) */
|
|
2292
|
+
next_cursor?: string;
|
|
2293
|
+
};
|
|
2294
|
+
/** @description Request body for appending a message to a session. */
|
|
2295
|
+
SessionMessageCreateRequest: {
|
|
2296
|
+
/** @description Message role (user, assistant, tool) */
|
|
2297
|
+
role: string;
|
|
2298
|
+
/** @description Message content parts */
|
|
2299
|
+
content: {
|
|
2300
|
+
[key: string]: unknown;
|
|
2301
|
+
}[];
|
|
2302
|
+
/**
|
|
2303
|
+
* Format: uuid
|
|
2304
|
+
* @description Run ID that generated this message (for assistant messages)
|
|
2305
|
+
*/
|
|
2306
|
+
run_id?: string;
|
|
2307
|
+
};
|
|
2308
|
+
ToolHookConfig: {
|
|
2309
|
+
/** Format: uuid */
|
|
2310
|
+
id?: string;
|
|
2311
|
+
/** Format: uuid */
|
|
2312
|
+
project_id?: string;
|
|
2313
|
+
/** @enum {string} */
|
|
2314
|
+
hook_type?: "pre_tool_use" | "post_tool_use" | "tool_execute";
|
|
2315
|
+
/** Format: uri */
|
|
2316
|
+
endpoint_url?: string;
|
|
2317
|
+
enabled?: boolean;
|
|
2318
|
+
/** Format: int32 */
|
|
2319
|
+
timeout_ms?: number;
|
|
2320
|
+
/** @enum {string} */
|
|
2321
|
+
fail_behavior?: "fail_closed" | "fail_open";
|
|
2322
|
+
tools_allowlist?: string[];
|
|
2323
|
+
allow_mutation?: boolean;
|
|
2324
|
+
/** Format: date-time */
|
|
2325
|
+
created_at?: string;
|
|
2326
|
+
/** Format: date-time */
|
|
2327
|
+
updated_at?: string;
|
|
2328
|
+
};
|
|
2329
|
+
ToolHookConfigInput: {
|
|
2330
|
+
/** @enum {string} */
|
|
2331
|
+
hook_type: "pre_tool_use" | "post_tool_use" | "tool_execute";
|
|
2332
|
+
/** Format: uri */
|
|
2333
|
+
endpoint_url: string;
|
|
2334
|
+
enabled?: boolean;
|
|
2335
|
+
/** Format: int32 */
|
|
2336
|
+
timeout_ms?: number;
|
|
2337
|
+
/** @enum {string} */
|
|
2338
|
+
fail_behavior?: "fail_closed" | "fail_open";
|
|
2339
|
+
tools_allowlist?: string[];
|
|
2340
|
+
allow_mutation?: boolean;
|
|
2341
|
+
};
|
|
2342
|
+
ToolHookConfigUpdate: {
|
|
2343
|
+
/** Format: uri */
|
|
2344
|
+
endpoint_url?: string;
|
|
2345
|
+
enabled?: boolean;
|
|
2346
|
+
/** Format: int32 */
|
|
2347
|
+
timeout_ms?: number;
|
|
2348
|
+
/** @enum {string} */
|
|
2349
|
+
fail_behavior?: "fail_closed" | "fail_open";
|
|
2350
|
+
tools_allowlist?: string[];
|
|
2351
|
+
allow_mutation?: boolean;
|
|
2352
|
+
rotate_secret?: boolean;
|
|
2353
|
+
};
|
|
2354
|
+
ToolHookEvent: {
|
|
2355
|
+
/** Format: uuid */
|
|
2356
|
+
id?: string;
|
|
2357
|
+
/** Format: uuid */
|
|
2358
|
+
hook_config_id?: string;
|
|
2359
|
+
request_id?: string;
|
|
2360
|
+
tool_call_id?: string;
|
|
2361
|
+
/** @enum {string} */
|
|
2362
|
+
status?: "success" | "blocked" | "timeout" | "error";
|
|
2363
|
+
/** Format: int32 */
|
|
2364
|
+
response_status?: number;
|
|
2365
|
+
response_body?: string;
|
|
2366
|
+
/** Format: int32 */
|
|
2367
|
+
latency_ms?: number;
|
|
2368
|
+
error?: string;
|
|
2369
|
+
/** Format: date-time */
|
|
2370
|
+
created_at?: string;
|
|
2371
|
+
};
|
|
2372
|
+
ToolHookTestResult: {
|
|
2373
|
+
/** @enum {string} */
|
|
2374
|
+
status?: "success" | "blocked" | "timeout" | "error";
|
|
2375
|
+
/** Format: int32 */
|
|
2376
|
+
response_status?: number;
|
|
2377
|
+
response_body?: string;
|
|
2378
|
+
/** Format: int32 */
|
|
2379
|
+
latency_ms?: number;
|
|
2380
|
+
error?: string;
|
|
2381
|
+
};
|
|
2382
|
+
WebhookTestResult: {
|
|
2383
|
+
/** @enum {string} */
|
|
2384
|
+
status?: "delivered" | "failed";
|
|
2385
|
+
/** Format: int32 */
|
|
2386
|
+
response_status?: number;
|
|
2387
|
+
response_body?: string;
|
|
2388
|
+
/** Format: int32 */
|
|
2389
|
+
latency_ms?: number;
|
|
2390
|
+
error?: string;
|
|
2391
|
+
};
|
|
2392
|
+
/** @description Request body for updating session metadata. Null values remove keys. */
|
|
2393
|
+
SessionUpdateRequest: {
|
|
2394
|
+
/** @description Metadata fields to set or remove */
|
|
2395
|
+
metadata: {
|
|
2396
|
+
[key: string]: unknown;
|
|
2397
|
+
};
|
|
2398
|
+
};
|
|
2399
|
+
};
|
|
2400
|
+
responses: never;
|
|
2401
|
+
parameters: {
|
|
2402
|
+
ProjectID: string;
|
|
2403
|
+
WebhookID: string;
|
|
2404
|
+
ToolHookID: string;
|
|
2405
|
+
};
|
|
2406
|
+
requestBodies: never;
|
|
2407
|
+
headers: never;
|
|
2408
|
+
pathItems: never;
|
|
2409
|
+
}
|
|
2410
|
+
type $defs = Record<string, never>;
|
|
2411
|
+
interface operations {
|
|
2412
|
+
getWorkflowV0Schema: {
|
|
2413
|
+
parameters: {
|
|
2414
|
+
query?: never;
|
|
2415
|
+
header?: never;
|
|
2416
|
+
path?: never;
|
|
2417
|
+
cookie?: never;
|
|
2418
|
+
};
|
|
2419
|
+
requestBody?: never;
|
|
2420
|
+
responses: {
|
|
2421
|
+
/** @description Schema document */
|
|
2422
|
+
200: {
|
|
2423
|
+
headers: {
|
|
2424
|
+
[name: string]: unknown;
|
|
2425
|
+
};
|
|
2426
|
+
content: {
|
|
2427
|
+
"application/schema+json": Record<string, never>;
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
getWorkflowV1Schema: {
|
|
2433
|
+
parameters: {
|
|
2434
|
+
query?: never;
|
|
2435
|
+
header?: never;
|
|
2436
|
+
path?: never;
|
|
2437
|
+
cookie?: never;
|
|
2438
|
+
};
|
|
2439
|
+
requestBody?: never;
|
|
2440
|
+
responses: {
|
|
2441
|
+
/** @description Schema document */
|
|
2442
|
+
200: {
|
|
2443
|
+
headers: {
|
|
2444
|
+
[name: string]: unknown;
|
|
2445
|
+
};
|
|
2446
|
+
content: {
|
|
2447
|
+
"application/schema+json": Record<string, never>;
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
getRunEventV0Schema: {
|
|
2453
|
+
parameters: {
|
|
2454
|
+
query?: never;
|
|
2455
|
+
header?: never;
|
|
2456
|
+
path?: never;
|
|
2457
|
+
cookie?: never;
|
|
2458
|
+
};
|
|
2459
|
+
requestBody?: never;
|
|
2460
|
+
responses: {
|
|
2461
|
+
/** @description Schema document */
|
|
2462
|
+
200: {
|
|
2463
|
+
headers: {
|
|
2464
|
+
[name: string]: unknown;
|
|
2465
|
+
};
|
|
2466
|
+
content: {
|
|
2467
|
+
"application/schema+json": Record<string, never>;
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
registerOwner: {
|
|
2473
|
+
parameters: {
|
|
2474
|
+
query?: never;
|
|
2475
|
+
header?: never;
|
|
2476
|
+
path?: never;
|
|
2477
|
+
cookie?: never;
|
|
2478
|
+
};
|
|
2479
|
+
requestBody: {
|
|
2480
|
+
content: {
|
|
2481
|
+
"application/json": {
|
|
2482
|
+
/** Format: email */
|
|
2483
|
+
email?: string;
|
|
2484
|
+
password?: string;
|
|
2485
|
+
billing_provider?: components["schemas"]["BillingProvider"];
|
|
2486
|
+
};
|
|
2487
|
+
};
|
|
2488
|
+
};
|
|
2489
|
+
responses: {
|
|
2490
|
+
/** @description User created */
|
|
2491
|
+
201: {
|
|
2492
|
+
headers: {
|
|
2493
|
+
[name: string]: unknown;
|
|
2494
|
+
};
|
|
2495
|
+
content: {
|
|
2496
|
+
"application/json": components["schemas"]["AuthResponse"];
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
login: {
|
|
2502
|
+
parameters: {
|
|
2503
|
+
query?: never;
|
|
2504
|
+
header?: never;
|
|
2505
|
+
path?: never;
|
|
2506
|
+
cookie?: never;
|
|
2507
|
+
};
|
|
2508
|
+
requestBody: {
|
|
2509
|
+
content: {
|
|
2510
|
+
"application/json": {
|
|
2511
|
+
/** Format: email */
|
|
2512
|
+
email?: string;
|
|
2513
|
+
password?: string;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
responses: {
|
|
2518
|
+
/** @description Tokens issued */
|
|
2519
|
+
200: {
|
|
2520
|
+
headers: {
|
|
2521
|
+
[name: string]: unknown;
|
|
2522
|
+
};
|
|
2523
|
+
content: {
|
|
2524
|
+
"application/json": components["schemas"]["AuthResponse"];
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
2527
|
+
};
|
|
2528
|
+
};
|
|
2529
|
+
refreshToken: {
|
|
2530
|
+
parameters: {
|
|
2531
|
+
query?: never;
|
|
2532
|
+
header?: never;
|
|
2533
|
+
path?: never;
|
|
2534
|
+
cookie?: never;
|
|
2535
|
+
};
|
|
2536
|
+
requestBody: {
|
|
2537
|
+
content: {
|
|
2538
|
+
"application/json": {
|
|
2539
|
+
refresh_token?: string;
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
responses: {
|
|
2544
|
+
/** @description Tokens refreshed */
|
|
2545
|
+
200: {
|
|
2546
|
+
headers: {
|
|
2547
|
+
[name: string]: unknown;
|
|
2548
|
+
};
|
|
2549
|
+
content: {
|
|
2550
|
+
"application/json": components["schemas"]["AuthTokens"];
|
|
2551
|
+
};
|
|
2552
|
+
};
|
|
2553
|
+
};
|
|
2554
|
+
};
|
|
2555
|
+
logout: {
|
|
2556
|
+
parameters: {
|
|
2557
|
+
query?: never;
|
|
2558
|
+
header?: never;
|
|
2559
|
+
path?: never;
|
|
2560
|
+
cookie?: never;
|
|
2561
|
+
};
|
|
2562
|
+
requestBody: {
|
|
2563
|
+
content: {
|
|
2564
|
+
"application/json": {
|
|
2565
|
+
refresh_token?: string;
|
|
2566
|
+
};
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
responses: {
|
|
2570
|
+
/** @description Session revoked */
|
|
2571
|
+
204: {
|
|
2572
|
+
headers: {
|
|
2573
|
+
[name: string]: unknown;
|
|
2574
|
+
};
|
|
2575
|
+
content?: never;
|
|
2576
|
+
};
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2579
|
+
getAuthenticatedUser: {
|
|
2580
|
+
parameters: {
|
|
2581
|
+
query?: never;
|
|
2582
|
+
header?: never;
|
|
2583
|
+
path?: never;
|
|
2584
|
+
cookie?: never;
|
|
2585
|
+
};
|
|
2586
|
+
requestBody?: never;
|
|
2587
|
+
responses: {
|
|
2588
|
+
/** @description Current user */
|
|
2589
|
+
200: {
|
|
2590
|
+
headers: {
|
|
2591
|
+
[name: string]: unknown;
|
|
2592
|
+
};
|
|
2593
|
+
content: {
|
|
2594
|
+
"application/json": {
|
|
2595
|
+
user?: components["schemas"]["User"];
|
|
2596
|
+
};
|
|
2597
|
+
};
|
|
2598
|
+
};
|
|
2599
|
+
};
|
|
2600
|
+
};
|
|
2601
|
+
mintCustomerToken: {
|
|
2602
|
+
parameters: {
|
|
2603
|
+
query?: never;
|
|
2604
|
+
header?: never;
|
|
2605
|
+
path?: never;
|
|
2606
|
+
cookie?: never;
|
|
2607
|
+
};
|
|
2608
|
+
requestBody: {
|
|
2609
|
+
content: {
|
|
2610
|
+
"application/json": {
|
|
2611
|
+
/**
|
|
2612
|
+
* Format: uuid
|
|
2613
|
+
* @description Internal customer UUID (provide exactly one of customer_id or customer_external_id)
|
|
2614
|
+
*/
|
|
2615
|
+
customer_id?: string;
|
|
2616
|
+
/** @description External customer identifier (provide exactly one of customer_id or customer_external_id) */
|
|
2617
|
+
customer_external_id?: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* Format: uint32
|
|
2620
|
+
* @description Requested token TTL in seconds (server may cap this)
|
|
2621
|
+
*/
|
|
2622
|
+
ttl_seconds?: number;
|
|
2623
|
+
};
|
|
2624
|
+
};
|
|
2625
|
+
};
|
|
2626
|
+
responses: {
|
|
2627
|
+
/** @description Customer token issued */
|
|
2628
|
+
200: {
|
|
2629
|
+
headers: {
|
|
2630
|
+
[name: string]: unknown;
|
|
2631
|
+
};
|
|
2632
|
+
content: {
|
|
2633
|
+
"application/json": components["schemas"]["CustomerTokenResponse"];
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
/** @description Invalid request (missing or invalid customer selector) */
|
|
2637
|
+
400: {
|
|
2638
|
+
headers: {
|
|
2639
|
+
[name: string]: unknown;
|
|
2640
|
+
};
|
|
2641
|
+
content?: never;
|
|
2642
|
+
};
|
|
2643
|
+
/** @description Invalid or missing secret key */
|
|
2644
|
+
401: {
|
|
2645
|
+
headers: {
|
|
2646
|
+
[name: string]: unknown;
|
|
2647
|
+
};
|
|
2648
|
+
content?: never;
|
|
2649
|
+
};
|
|
2650
|
+
/** @description Customer not found */
|
|
2651
|
+
404: {
|
|
2652
|
+
headers: {
|
|
2653
|
+
[name: string]: unknown;
|
|
2654
|
+
};
|
|
2655
|
+
content?: never;
|
|
2656
|
+
};
|
|
2657
|
+
};
|
|
2658
|
+
};
|
|
2659
|
+
startDeviceAuthorization: {
|
|
2660
|
+
parameters: {
|
|
2661
|
+
query?: never;
|
|
2662
|
+
header?: never;
|
|
2663
|
+
path?: never;
|
|
2664
|
+
cookie?: never;
|
|
2665
|
+
};
|
|
2666
|
+
requestBody?: never;
|
|
2667
|
+
responses: {
|
|
2668
|
+
/** @description Device authorization session started */
|
|
2669
|
+
201: {
|
|
2670
|
+
headers: {
|
|
2671
|
+
[name: string]: unknown;
|
|
2672
|
+
};
|
|
2673
|
+
content: {
|
|
2674
|
+
"application/json": components["schemas"]["DeviceStartResponse"];
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2677
|
+
/** @description Invalid request (e.g., missing project-scoped API key) */
|
|
2678
|
+
400: {
|
|
2679
|
+
headers: {
|
|
2680
|
+
[name: string]: unknown;
|
|
2681
|
+
};
|
|
2682
|
+
content?: never;
|
|
2683
|
+
};
|
|
2684
|
+
/** @description Missing or invalid API key */
|
|
2685
|
+
401: {
|
|
2686
|
+
headers: {
|
|
2687
|
+
[name: string]: unknown;
|
|
2688
|
+
};
|
|
2689
|
+
content?: never;
|
|
2690
|
+
};
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
pollDeviceToken: {
|
|
2694
|
+
parameters: {
|
|
2695
|
+
query?: never;
|
|
2696
|
+
header?: never;
|
|
2697
|
+
path?: never;
|
|
2698
|
+
cookie?: never;
|
|
2699
|
+
};
|
|
2700
|
+
requestBody: {
|
|
2701
|
+
content: {
|
|
2702
|
+
"application/json": {
|
|
2703
|
+
/** @description Opaque device code returned by /auth/device/start */
|
|
2704
|
+
device_code: string;
|
|
2705
|
+
};
|
|
2706
|
+
};
|
|
2707
|
+
};
|
|
2708
|
+
responses: {
|
|
2709
|
+
/** @description Customer token issued */
|
|
2710
|
+
200: {
|
|
2711
|
+
headers: {
|
|
2712
|
+
[name: string]: unknown;
|
|
2713
|
+
};
|
|
2714
|
+
content: {
|
|
2715
|
+
"application/json": components["schemas"]["CustomerTokenResponse"];
|
|
2716
|
+
};
|
|
2717
|
+
};
|
|
2718
|
+
/** @description OAuth device flow error (authorization_pending, slow_down, expired_token, invalid_grant, access_denied) */
|
|
2719
|
+
400: {
|
|
2720
|
+
headers: {
|
|
2721
|
+
[name: string]: unknown;
|
|
2722
|
+
};
|
|
2723
|
+
content: {
|
|
2724
|
+
"application/json": components["schemas"]["DeviceTokenError"];
|
|
2725
|
+
};
|
|
2726
|
+
};
|
|
2727
|
+
/** @description Missing or invalid API key */
|
|
2728
|
+
401: {
|
|
2729
|
+
headers: {
|
|
2730
|
+
[name: string]: unknown;
|
|
2731
|
+
};
|
|
2732
|
+
content?: never;
|
|
2733
|
+
};
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
exchangeOidcToken: {
|
|
2737
|
+
parameters: {
|
|
2738
|
+
query?: never;
|
|
2739
|
+
header?: never;
|
|
2740
|
+
path?: never;
|
|
2741
|
+
cookie?: never;
|
|
2742
|
+
};
|
|
2743
|
+
requestBody: {
|
|
2744
|
+
content: {
|
|
2745
|
+
"application/json": {
|
|
2746
|
+
/** @description OIDC id_token JWT to verify and exchange */
|
|
2747
|
+
id_token: string;
|
|
2748
|
+
/**
|
|
2749
|
+
* Format: uuid
|
|
2750
|
+
* @description Optional; must match the API key's project_id if provided
|
|
2751
|
+
*/
|
|
2752
|
+
project_id?: string;
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
};
|
|
2756
|
+
responses: {
|
|
2757
|
+
/** @description Customer token issued */
|
|
2758
|
+
200: {
|
|
2759
|
+
headers: {
|
|
2760
|
+
[name: string]: unknown;
|
|
2761
|
+
};
|
|
2762
|
+
content: {
|
|
2763
|
+
"application/json": components["schemas"]["CustomerTokenResponse"];
|
|
2764
|
+
};
|
|
2765
|
+
};
|
|
2766
|
+
/** @description Invalid request or token contents */
|
|
2767
|
+
400: {
|
|
2768
|
+
headers: {
|
|
2769
|
+
[name: string]: unknown;
|
|
2770
|
+
};
|
|
2771
|
+
content: {
|
|
2772
|
+
"application/json": components["schemas"]["APIError"];
|
|
2773
|
+
};
|
|
2774
|
+
};
|
|
2775
|
+
/** @description Invalid id_token */
|
|
2776
|
+
401: {
|
|
2777
|
+
headers: {
|
|
2778
|
+
[name: string]: unknown;
|
|
2779
|
+
};
|
|
2780
|
+
content?: never;
|
|
2781
|
+
};
|
|
2782
|
+
/** @description Identity unknown and auto-provision disabled */
|
|
2783
|
+
403: {
|
|
2784
|
+
headers: {
|
|
2785
|
+
[name: string]: unknown;
|
|
2786
|
+
};
|
|
2787
|
+
content: {
|
|
2788
|
+
"application/json": components["schemas"]["APIError"];
|
|
2789
|
+
};
|
|
2790
|
+
};
|
|
2791
|
+
/** @description Identity already linked to a different customer */
|
|
2792
|
+
409: {
|
|
2793
|
+
headers: {
|
|
2794
|
+
[name: string]: unknown;
|
|
2795
|
+
};
|
|
2796
|
+
content?: never;
|
|
2797
|
+
};
|
|
2798
|
+
};
|
|
2799
|
+
};
|
|
2800
|
+
claimCustomer: {
|
|
2801
|
+
parameters: {
|
|
2802
|
+
query?: never;
|
|
2803
|
+
header?: never;
|
|
2804
|
+
path?: never;
|
|
2805
|
+
cookie?: never;
|
|
2806
|
+
};
|
|
2807
|
+
requestBody: {
|
|
2808
|
+
content: {
|
|
2809
|
+
"application/json": {
|
|
2810
|
+
/** Format: email */
|
|
2811
|
+
email: string;
|
|
2812
|
+
/**
|
|
2813
|
+
* @description Identity provider (must match project's enabled providers)
|
|
2814
|
+
* @enum {string}
|
|
2815
|
+
*/
|
|
2816
|
+
provider: "github" | "google" | "oidc";
|
|
2817
|
+
/** @description OAuth/OIDC subject claim from the identity provider */
|
|
2818
|
+
subject: string;
|
|
2819
|
+
};
|
|
2820
|
+
};
|
|
2821
|
+
};
|
|
2822
|
+
responses: {
|
|
2823
|
+
/** @description Customer identity linked */
|
|
2824
|
+
200: {
|
|
2825
|
+
headers: {
|
|
2826
|
+
[name: string]: unknown;
|
|
2827
|
+
};
|
|
2828
|
+
content?: never;
|
|
2829
|
+
};
|
|
2830
|
+
/** @description Customer not found */
|
|
2831
|
+
404: {
|
|
2832
|
+
headers: {
|
|
2833
|
+
[name: string]: unknown;
|
|
2834
|
+
};
|
|
2835
|
+
content?: never;
|
|
2836
|
+
};
|
|
2837
|
+
/** @description Identity already linked to a different customer */
|
|
2838
|
+
409: {
|
|
2839
|
+
headers: {
|
|
2840
|
+
[name: string]: unknown;
|
|
2841
|
+
};
|
|
2842
|
+
content?: never;
|
|
2843
|
+
};
|
|
2844
|
+
};
|
|
2845
|
+
};
|
|
2846
|
+
listCustomers: {
|
|
2847
|
+
parameters: {
|
|
2848
|
+
query?: never;
|
|
2849
|
+
header?: never;
|
|
2850
|
+
path?: never;
|
|
2851
|
+
cookie?: never;
|
|
2852
|
+
};
|
|
2853
|
+
requestBody?: never;
|
|
2854
|
+
responses: {
|
|
2855
|
+
/** @description Customer list */
|
|
2856
|
+
200: {
|
|
2857
|
+
headers: {
|
|
2858
|
+
[name: string]: unknown;
|
|
2859
|
+
};
|
|
2860
|
+
content: {
|
|
2861
|
+
"application/json": {
|
|
2862
|
+
customers?: components["schemas"]["CustomerWithSubscription"][];
|
|
2863
|
+
};
|
|
2864
|
+
};
|
|
2865
|
+
};
|
|
2866
|
+
};
|
|
2867
|
+
};
|
|
2868
|
+
upsertCustomer: {
|
|
2869
|
+
parameters: {
|
|
2870
|
+
query?: never;
|
|
2871
|
+
header?: never;
|
|
2872
|
+
path?: never;
|
|
2873
|
+
cookie?: never;
|
|
2874
|
+
};
|
|
2875
|
+
requestBody: {
|
|
2876
|
+
content: {
|
|
2877
|
+
"application/json": components["schemas"]["CustomerCreate"];
|
|
2878
|
+
};
|
|
2879
|
+
};
|
|
2880
|
+
responses: {
|
|
2881
|
+
/** @description Customer updated */
|
|
2882
|
+
200: {
|
|
2883
|
+
headers: {
|
|
2884
|
+
[name: string]: unknown;
|
|
2885
|
+
};
|
|
2886
|
+
content: {
|
|
2887
|
+
"application/json": {
|
|
2888
|
+
customer?: components["schemas"]["CustomerWithSubscription"];
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
};
|
|
2892
|
+
/** @description Customer created */
|
|
2893
|
+
201: {
|
|
2894
|
+
headers: {
|
|
2895
|
+
[name: string]: unknown;
|
|
2896
|
+
};
|
|
2897
|
+
content: {
|
|
2898
|
+
"application/json": {
|
|
2899
|
+
customer?: components["schemas"]["CustomerWithSubscription"];
|
|
2900
|
+
};
|
|
2901
|
+
};
|
|
2902
|
+
};
|
|
2903
|
+
};
|
|
2904
|
+
};
|
|
2905
|
+
createProjectCustomer: {
|
|
2906
|
+
parameters: {
|
|
2907
|
+
query?: never;
|
|
2908
|
+
header?: never;
|
|
2909
|
+
path?: never;
|
|
2910
|
+
cookie?: never;
|
|
2911
|
+
};
|
|
2912
|
+
requestBody: {
|
|
2913
|
+
content: {
|
|
2914
|
+
"application/json": components["schemas"]["CustomerCreate"];
|
|
2915
|
+
};
|
|
2916
|
+
};
|
|
2917
|
+
responses: {
|
|
2918
|
+
/** @description Customer created */
|
|
2919
|
+
201: {
|
|
2920
|
+
headers: {
|
|
2921
|
+
[name: string]: unknown;
|
|
2922
|
+
};
|
|
2923
|
+
content: {
|
|
2924
|
+
"application/json": {
|
|
2925
|
+
customer?: components["schemas"]["CustomerWithSubscription"];
|
|
2926
|
+
};
|
|
2927
|
+
};
|
|
2928
|
+
};
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2931
|
+
getCustomer: {
|
|
2932
|
+
parameters: {
|
|
2933
|
+
query?: never;
|
|
2934
|
+
header?: never;
|
|
2935
|
+
path: {
|
|
2936
|
+
customer_id: string;
|
|
2937
|
+
};
|
|
2938
|
+
cookie?: never;
|
|
2939
|
+
};
|
|
2940
|
+
requestBody?: never;
|
|
2941
|
+
responses: {
|
|
2942
|
+
/** @description Customer */
|
|
2943
|
+
200: {
|
|
2944
|
+
headers: {
|
|
2945
|
+
[name: string]: unknown;
|
|
2946
|
+
};
|
|
2947
|
+
content: {
|
|
2948
|
+
"application/json": {
|
|
2949
|
+
customer?: components["schemas"]["CustomerWithSubscription"];
|
|
2950
|
+
};
|
|
2951
|
+
};
|
|
2952
|
+
};
|
|
2953
|
+
/** @description Customer not found */
|
|
2954
|
+
404: {
|
|
2955
|
+
headers: {
|
|
2956
|
+
[name: string]: unknown;
|
|
2957
|
+
};
|
|
2958
|
+
content?: never;
|
|
2959
|
+
};
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
deleteProjectCustomer: {
|
|
2963
|
+
parameters: {
|
|
2964
|
+
query?: never;
|
|
2965
|
+
header?: never;
|
|
2966
|
+
path: {
|
|
2967
|
+
customer_id: string;
|
|
2968
|
+
};
|
|
2969
|
+
cookie?: never;
|
|
2970
|
+
};
|
|
2971
|
+
requestBody?: never;
|
|
2972
|
+
responses: {
|
|
2973
|
+
/** @description Customer deleted */
|
|
2974
|
+
204: {
|
|
2975
|
+
headers: {
|
|
2976
|
+
[name: string]: unknown;
|
|
2977
|
+
};
|
|
2978
|
+
content?: never;
|
|
2979
|
+
};
|
|
2980
|
+
/** @description Customer not found */
|
|
2981
|
+
404: {
|
|
2982
|
+
headers: {
|
|
2983
|
+
[name: string]: unknown;
|
|
2984
|
+
};
|
|
2985
|
+
content?: never;
|
|
2986
|
+
};
|
|
2987
|
+
};
|
|
2988
|
+
};
|
|
2989
|
+
subscribeCustomer: {
|
|
2990
|
+
parameters: {
|
|
2991
|
+
query?: never;
|
|
2992
|
+
header?: never;
|
|
2993
|
+
path: {
|
|
2994
|
+
customer_id: string;
|
|
2995
|
+
};
|
|
2996
|
+
cookie?: never;
|
|
2997
|
+
};
|
|
2998
|
+
requestBody: {
|
|
2999
|
+
content: {
|
|
3000
|
+
"application/json": {
|
|
3001
|
+
/** Format: uuid */
|
|
3002
|
+
tier_id: string;
|
|
3003
|
+
/** Format: uri */
|
|
3004
|
+
success_url: string;
|
|
3005
|
+
/** Format: uri */
|
|
3006
|
+
cancel_url: string;
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
};
|
|
3010
|
+
responses: {
|
|
3011
|
+
/** @description Checkout session created */
|
|
3012
|
+
201: {
|
|
3013
|
+
headers: {
|
|
3014
|
+
[name: string]: unknown;
|
|
3015
|
+
};
|
|
3016
|
+
content: {
|
|
3017
|
+
"application/json": components["schemas"]["CheckoutSessionResponse"];
|
|
3018
|
+
};
|
|
3019
|
+
};
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
getCustomerSubscription: {
|
|
3023
|
+
parameters: {
|
|
3024
|
+
query?: never;
|
|
3025
|
+
header?: never;
|
|
3026
|
+
path: {
|
|
3027
|
+
customer_id: string;
|
|
3028
|
+
};
|
|
3029
|
+
cookie?: never;
|
|
3030
|
+
};
|
|
3031
|
+
requestBody?: never;
|
|
3032
|
+
responses: {
|
|
3033
|
+
/** @description Subscription details */
|
|
3034
|
+
200: {
|
|
3035
|
+
headers: {
|
|
3036
|
+
[name: string]: unknown;
|
|
3037
|
+
};
|
|
3038
|
+
content: {
|
|
3039
|
+
"application/json": {
|
|
3040
|
+
subscription?: components["schemas"]["Subscription"];
|
|
3041
|
+
};
|
|
3042
|
+
};
|
|
3043
|
+
};
|
|
3044
|
+
/** @description Subscription not found */
|
|
3045
|
+
404: {
|
|
3046
|
+
headers: {
|
|
3047
|
+
[name: string]: unknown;
|
|
3048
|
+
};
|
|
3049
|
+
content?: never;
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
};
|
|
3053
|
+
cancelCustomerSubscription: {
|
|
3054
|
+
parameters: {
|
|
3055
|
+
query?: never;
|
|
3056
|
+
header?: never;
|
|
3057
|
+
path: {
|
|
3058
|
+
customer_id: string;
|
|
3059
|
+
};
|
|
3060
|
+
cookie?: never;
|
|
3061
|
+
};
|
|
3062
|
+
requestBody?: never;
|
|
3063
|
+
responses: {
|
|
3064
|
+
/** @description Subscription canceled */
|
|
3065
|
+
204: {
|
|
3066
|
+
headers: {
|
|
3067
|
+
[name: string]: unknown;
|
|
3068
|
+
};
|
|
3069
|
+
content?: never;
|
|
3070
|
+
};
|
|
3071
|
+
};
|
|
3072
|
+
};
|
|
3073
|
+
getCustomerBalance: {
|
|
3074
|
+
parameters: {
|
|
3075
|
+
query?: never;
|
|
3076
|
+
header?: never;
|
|
3077
|
+
path: {
|
|
3078
|
+
customer_id: string;
|
|
3079
|
+
};
|
|
3080
|
+
cookie?: never;
|
|
3081
|
+
};
|
|
3082
|
+
requestBody?: never;
|
|
3083
|
+
responses: {
|
|
3084
|
+
/** @description PAYGO balance */
|
|
3085
|
+
200: {
|
|
3086
|
+
headers: {
|
|
3087
|
+
[name: string]: unknown;
|
|
3088
|
+
};
|
|
3089
|
+
content: {
|
|
3090
|
+
"application/json": components["schemas"]["CustomerBalanceResponse"];
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
3093
|
+
/** @description Subscription is not PAYGO */
|
|
3094
|
+
400: {
|
|
3095
|
+
headers: {
|
|
3096
|
+
[name: string]: unknown;
|
|
3097
|
+
};
|
|
3098
|
+
content?: never;
|
|
3099
|
+
};
|
|
3100
|
+
/** @description Customer or subscription not found */
|
|
3101
|
+
404: {
|
|
3102
|
+
headers: {
|
|
3103
|
+
[name: string]: unknown;
|
|
3104
|
+
};
|
|
3105
|
+
content?: never;
|
|
3106
|
+
};
|
|
3107
|
+
/** @description Service unavailable */
|
|
3108
|
+
503: {
|
|
3109
|
+
headers: {
|
|
3110
|
+
[name: string]: unknown;
|
|
3111
|
+
};
|
|
3112
|
+
content?: never;
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3115
|
+
};
|
|
3116
|
+
getCustomerBalanceHistory: {
|
|
3117
|
+
parameters: {
|
|
3118
|
+
query?: {
|
|
3119
|
+
limit?: number;
|
|
3120
|
+
offset?: number;
|
|
3121
|
+
};
|
|
3122
|
+
header?: never;
|
|
3123
|
+
path: {
|
|
3124
|
+
customer_id: string;
|
|
3125
|
+
};
|
|
3126
|
+
cookie?: never;
|
|
3127
|
+
};
|
|
3128
|
+
requestBody?: never;
|
|
3129
|
+
responses: {
|
|
3130
|
+
/** @description Ledger entries */
|
|
3131
|
+
200: {
|
|
3132
|
+
headers: {
|
|
3133
|
+
[name: string]: unknown;
|
|
3134
|
+
};
|
|
3135
|
+
content: {
|
|
3136
|
+
"application/json": components["schemas"]["CustomerLedgerResponse"];
|
|
3137
|
+
};
|
|
3138
|
+
};
|
|
3139
|
+
/** @description Customer not found */
|
|
3140
|
+
404: {
|
|
3141
|
+
headers: {
|
|
3142
|
+
[name: string]: unknown;
|
|
3143
|
+
};
|
|
3144
|
+
content?: never;
|
|
3145
|
+
};
|
|
3146
|
+
/** @description Service unavailable */
|
|
3147
|
+
503: {
|
|
3148
|
+
headers: {
|
|
3149
|
+
[name: string]: unknown;
|
|
3150
|
+
};
|
|
3151
|
+
content?: never;
|
|
3152
|
+
};
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
createCustomerTopup: {
|
|
3156
|
+
parameters: {
|
|
3157
|
+
query?: never;
|
|
3158
|
+
header?: never;
|
|
3159
|
+
path: {
|
|
3160
|
+
customer_id: string;
|
|
3161
|
+
};
|
|
3162
|
+
cookie?: never;
|
|
3163
|
+
};
|
|
3164
|
+
requestBody: {
|
|
3165
|
+
content: {
|
|
3166
|
+
"application/json": components["schemas"]["CustomerTopupRequest"];
|
|
3167
|
+
};
|
|
3168
|
+
};
|
|
3169
|
+
responses: {
|
|
3170
|
+
/** @description Checkout session created */
|
|
3171
|
+
201: {
|
|
3172
|
+
headers: {
|
|
3173
|
+
[name: string]: unknown;
|
|
3174
|
+
};
|
|
3175
|
+
content: {
|
|
3176
|
+
"application/json": components["schemas"]["CustomerTopupResponse"];
|
|
3177
|
+
};
|
|
3178
|
+
};
|
|
3179
|
+
/** @description Invalid request */
|
|
3180
|
+
400: {
|
|
3181
|
+
headers: {
|
|
3182
|
+
[name: string]: unknown;
|
|
3183
|
+
};
|
|
3184
|
+
content?: never;
|
|
3185
|
+
};
|
|
3186
|
+
/** @description Customer not found */
|
|
3187
|
+
404: {
|
|
3188
|
+
headers: {
|
|
3189
|
+
[name: string]: unknown;
|
|
3190
|
+
};
|
|
3191
|
+
content?: never;
|
|
3192
|
+
};
|
|
3193
|
+
/** @description Service unavailable */
|
|
3194
|
+
503: {
|
|
3195
|
+
headers: {
|
|
3196
|
+
[name: string]: unknown;
|
|
3197
|
+
};
|
|
3198
|
+
content?: never;
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
getCustomerMe: {
|
|
3203
|
+
parameters: {
|
|
3204
|
+
query?: never;
|
|
3205
|
+
header?: never;
|
|
3206
|
+
path?: never;
|
|
3207
|
+
cookie?: never;
|
|
3208
|
+
};
|
|
3209
|
+
requestBody?: never;
|
|
3210
|
+
responses: {
|
|
3211
|
+
/** @description Customer details */
|
|
3212
|
+
200: {
|
|
3213
|
+
headers: {
|
|
3214
|
+
[name: string]: unknown;
|
|
3215
|
+
};
|
|
3216
|
+
content: {
|
|
3217
|
+
"application/json": components["schemas"]["CustomerMeResponse"];
|
|
3218
|
+
};
|
|
3219
|
+
};
|
|
3220
|
+
/** @description Unauthorized */
|
|
3221
|
+
401: {
|
|
3222
|
+
headers: {
|
|
3223
|
+
[name: string]: unknown;
|
|
3224
|
+
};
|
|
3225
|
+
content?: never;
|
|
3226
|
+
};
|
|
3227
|
+
};
|
|
3228
|
+
};
|
|
3229
|
+
getCustomerMeUsage: {
|
|
3230
|
+
parameters: {
|
|
3231
|
+
query?: never;
|
|
3232
|
+
header?: never;
|
|
3233
|
+
path?: never;
|
|
3234
|
+
cookie?: never;
|
|
3235
|
+
};
|
|
3236
|
+
requestBody?: never;
|
|
3237
|
+
responses: {
|
|
3238
|
+
/** @description Usage summary */
|
|
3239
|
+
200: {
|
|
3240
|
+
headers: {
|
|
3241
|
+
[name: string]: unknown;
|
|
3242
|
+
};
|
|
3243
|
+
content: {
|
|
3244
|
+
"application/json": components["schemas"]["CustomerMeUsageResponse"];
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
/** @description Unauthorized */
|
|
3248
|
+
401: {
|
|
3249
|
+
headers: {
|
|
3250
|
+
[name: string]: unknown;
|
|
3251
|
+
};
|
|
3252
|
+
content?: never;
|
|
3253
|
+
};
|
|
3254
|
+
/** @description Customer not found */
|
|
3255
|
+
404: {
|
|
3256
|
+
headers: {
|
|
3257
|
+
[name: string]: unknown;
|
|
3258
|
+
};
|
|
3259
|
+
content?: never;
|
|
3260
|
+
};
|
|
3261
|
+
/** @description Failed to calculate usage */
|
|
3262
|
+
500: {
|
|
3263
|
+
headers: {
|
|
3264
|
+
[name: string]: unknown;
|
|
3265
|
+
};
|
|
3266
|
+
content?: never;
|
|
3267
|
+
};
|
|
3268
|
+
/** @description Service unavailable */
|
|
3269
|
+
503: {
|
|
3270
|
+
headers: {
|
|
3271
|
+
[name: string]: unknown;
|
|
3272
|
+
};
|
|
3273
|
+
content?: never;
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
};
|
|
3277
|
+
getCustomerMeSubscription: {
|
|
3278
|
+
parameters: {
|
|
3279
|
+
query?: never;
|
|
3280
|
+
header?: never;
|
|
3281
|
+
path?: never;
|
|
3282
|
+
cookie?: never;
|
|
3283
|
+
};
|
|
3284
|
+
requestBody?: never;
|
|
3285
|
+
responses: {
|
|
3286
|
+
/** @description Subscription details */
|
|
3287
|
+
200: {
|
|
3288
|
+
headers: {
|
|
3289
|
+
[name: string]: unknown;
|
|
3290
|
+
};
|
|
3291
|
+
content: {
|
|
3292
|
+
"application/json": components["schemas"]["CustomerMeSubscriptionResponse"];
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
/** @description Unauthorized */
|
|
3296
|
+
401: {
|
|
3297
|
+
headers: {
|
|
3298
|
+
[name: string]: unknown;
|
|
3299
|
+
};
|
|
3300
|
+
content?: never;
|
|
3301
|
+
};
|
|
3302
|
+
/** @description Customer or tier not found */
|
|
3303
|
+
404: {
|
|
3304
|
+
headers: {
|
|
3305
|
+
[name: string]: unknown;
|
|
3306
|
+
};
|
|
3307
|
+
content?: never;
|
|
3308
|
+
};
|
|
3309
|
+
/** @description Internal server error */
|
|
3310
|
+
500: {
|
|
3311
|
+
headers: {
|
|
3312
|
+
[name: string]: unknown;
|
|
3313
|
+
};
|
|
3314
|
+
content?: never;
|
|
3315
|
+
};
|
|
3316
|
+
/** @description Service unavailable */
|
|
3317
|
+
503: {
|
|
3318
|
+
headers: {
|
|
3319
|
+
[name: string]: unknown;
|
|
3320
|
+
};
|
|
3321
|
+
content?: never;
|
|
3322
|
+
};
|
|
3323
|
+
};
|
|
3324
|
+
};
|
|
3325
|
+
getCustomerMeBalance: {
|
|
3326
|
+
parameters: {
|
|
3327
|
+
query?: never;
|
|
3328
|
+
header?: never;
|
|
3329
|
+
path?: never;
|
|
3330
|
+
cookie?: never;
|
|
3331
|
+
};
|
|
3332
|
+
requestBody?: never;
|
|
3333
|
+
responses: {
|
|
3334
|
+
/** @description PAYGO balance */
|
|
3335
|
+
200: {
|
|
3336
|
+
headers: {
|
|
3337
|
+
[name: string]: unknown;
|
|
3338
|
+
};
|
|
3339
|
+
content: {
|
|
3340
|
+
"application/json": components["schemas"]["CustomerBalanceResponse"];
|
|
3341
|
+
};
|
|
3342
|
+
};
|
|
3343
|
+
/** @description Subscription is not PAYGO */
|
|
3344
|
+
400: {
|
|
3345
|
+
headers: {
|
|
3346
|
+
[name: string]: unknown;
|
|
3347
|
+
};
|
|
3348
|
+
content?: never;
|
|
3349
|
+
};
|
|
3350
|
+
/** @description Unauthorized */
|
|
3351
|
+
401: {
|
|
3352
|
+
headers: {
|
|
3353
|
+
[name: string]: unknown;
|
|
3354
|
+
};
|
|
3355
|
+
content?: never;
|
|
3356
|
+
};
|
|
3357
|
+
/** @description Customer or subscription not found */
|
|
3358
|
+
404: {
|
|
3359
|
+
headers: {
|
|
3360
|
+
[name: string]: unknown;
|
|
3361
|
+
};
|
|
3362
|
+
content?: never;
|
|
3363
|
+
};
|
|
3364
|
+
/** @description Service unavailable */
|
|
3365
|
+
503: {
|
|
3366
|
+
headers: {
|
|
3367
|
+
[name: string]: unknown;
|
|
3368
|
+
};
|
|
3369
|
+
content?: never;
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3372
|
+
};
|
|
3373
|
+
getCustomerMeBalanceHistory: {
|
|
3374
|
+
parameters: {
|
|
3375
|
+
query?: {
|
|
3376
|
+
limit?: number;
|
|
3377
|
+
offset?: number;
|
|
3378
|
+
};
|
|
3379
|
+
header?: never;
|
|
3380
|
+
path?: never;
|
|
3381
|
+
cookie?: never;
|
|
3382
|
+
};
|
|
3383
|
+
requestBody?: never;
|
|
3384
|
+
responses: {
|
|
3385
|
+
/** @description Ledger entries */
|
|
3386
|
+
200: {
|
|
3387
|
+
headers: {
|
|
3388
|
+
[name: string]: unknown;
|
|
3389
|
+
};
|
|
3390
|
+
content: {
|
|
3391
|
+
"application/json": components["schemas"]["CustomerLedgerResponse"];
|
|
3392
|
+
};
|
|
3393
|
+
};
|
|
3394
|
+
/** @description Unauthorized */
|
|
3395
|
+
401: {
|
|
3396
|
+
headers: {
|
|
3397
|
+
[name: string]: unknown;
|
|
3398
|
+
};
|
|
3399
|
+
content?: never;
|
|
3400
|
+
};
|
|
3401
|
+
/** @description Customer not found */
|
|
3402
|
+
404: {
|
|
3403
|
+
headers: {
|
|
3404
|
+
[name: string]: unknown;
|
|
3405
|
+
};
|
|
3406
|
+
content?: never;
|
|
3407
|
+
};
|
|
3408
|
+
/** @description Service unavailable */
|
|
3409
|
+
503: {
|
|
3410
|
+
headers: {
|
|
3411
|
+
[name: string]: unknown;
|
|
3412
|
+
};
|
|
3413
|
+
content?: never;
|
|
3414
|
+
};
|
|
3415
|
+
};
|
|
3416
|
+
};
|
|
3417
|
+
createCustomerMeTopup: {
|
|
3418
|
+
parameters: {
|
|
3419
|
+
query?: never;
|
|
3420
|
+
header?: never;
|
|
3421
|
+
path?: never;
|
|
3422
|
+
cookie?: never;
|
|
3423
|
+
};
|
|
3424
|
+
requestBody: {
|
|
3425
|
+
content: {
|
|
3426
|
+
"application/json": components["schemas"]["CustomerTopupRequest"];
|
|
3427
|
+
};
|
|
3428
|
+
};
|
|
3429
|
+
responses: {
|
|
3430
|
+
/** @description Checkout session created */
|
|
3431
|
+
201: {
|
|
3432
|
+
headers: {
|
|
3433
|
+
[name: string]: unknown;
|
|
3434
|
+
};
|
|
3435
|
+
content: {
|
|
3436
|
+
"application/json": components["schemas"]["CustomerTopupResponse"];
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
3439
|
+
/** @description Invalid request */
|
|
3440
|
+
400: {
|
|
3441
|
+
headers: {
|
|
3442
|
+
[name: string]: unknown;
|
|
3443
|
+
};
|
|
3444
|
+
content?: never;
|
|
3445
|
+
};
|
|
3446
|
+
/** @description Unauthorized */
|
|
3447
|
+
401: {
|
|
3448
|
+
headers: {
|
|
3449
|
+
[name: string]: unknown;
|
|
3450
|
+
};
|
|
3451
|
+
content?: never;
|
|
3452
|
+
};
|
|
3453
|
+
/** @description Customer not found */
|
|
3454
|
+
404: {
|
|
3455
|
+
headers: {
|
|
3456
|
+
[name: string]: unknown;
|
|
3457
|
+
};
|
|
3458
|
+
content?: never;
|
|
3459
|
+
};
|
|
3460
|
+
/** @description Service unavailable */
|
|
3461
|
+
503: {
|
|
3462
|
+
headers: {
|
|
3463
|
+
[name: string]: unknown;
|
|
3464
|
+
};
|
|
3465
|
+
content?: never;
|
|
3466
|
+
};
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
changeCustomerMeTier: {
|
|
3470
|
+
parameters: {
|
|
3471
|
+
query?: never;
|
|
3472
|
+
header?: never;
|
|
3473
|
+
path?: never;
|
|
3474
|
+
cookie?: never;
|
|
3475
|
+
};
|
|
3476
|
+
requestBody: {
|
|
3477
|
+
content: {
|
|
3478
|
+
"application/json": components["schemas"]["ChangeTierRequest"];
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
responses: {
|
|
3482
|
+
/** @description Tier changed successfully */
|
|
3483
|
+
200: {
|
|
3484
|
+
headers: {
|
|
3485
|
+
[name: string]: unknown;
|
|
3486
|
+
};
|
|
3487
|
+
content: {
|
|
3488
|
+
"application/json": components["schemas"]["CustomerMeSubscriptionResponse"];
|
|
3489
|
+
};
|
|
3490
|
+
};
|
|
3491
|
+
/** @description Invalid request (missing tier_code, same tier, or PAYGO subscription) */
|
|
3492
|
+
400: {
|
|
3493
|
+
headers: {
|
|
3494
|
+
[name: string]: unknown;
|
|
3495
|
+
};
|
|
3496
|
+
content?: never;
|
|
3497
|
+
};
|
|
3498
|
+
/** @description Unauthorized */
|
|
3499
|
+
401: {
|
|
3500
|
+
headers: {
|
|
3501
|
+
[name: string]: unknown;
|
|
3502
|
+
};
|
|
3503
|
+
content?: never;
|
|
3504
|
+
};
|
|
3505
|
+
/** @description No payment method on file (required for free-to-paid upgrade) */
|
|
3506
|
+
402: {
|
|
3507
|
+
headers: {
|
|
3508
|
+
[name: string]: unknown;
|
|
3509
|
+
};
|
|
3510
|
+
content?: never;
|
|
3511
|
+
};
|
|
3512
|
+
/** @description Customer or tier not found */
|
|
3513
|
+
404: {
|
|
3514
|
+
headers: {
|
|
3515
|
+
[name: string]: unknown;
|
|
3516
|
+
};
|
|
3517
|
+
content?: never;
|
|
3518
|
+
};
|
|
3519
|
+
/** @description Billing provider mismatch */
|
|
3520
|
+
409: {
|
|
3521
|
+
headers: {
|
|
3522
|
+
[name: string]: unknown;
|
|
3523
|
+
};
|
|
3524
|
+
content?: never;
|
|
3525
|
+
};
|
|
3526
|
+
/** @description Service unavailable */
|
|
3527
|
+
503: {
|
|
3528
|
+
headers: {
|
|
3529
|
+
[name: string]: unknown;
|
|
3530
|
+
};
|
|
3531
|
+
content?: never;
|
|
3532
|
+
};
|
|
3533
|
+
};
|
|
3534
|
+
};
|
|
3535
|
+
createCustomerMeCheckout: {
|
|
3536
|
+
parameters: {
|
|
3537
|
+
query?: never;
|
|
3538
|
+
header?: never;
|
|
3539
|
+
path?: never;
|
|
3540
|
+
cookie?: never;
|
|
3541
|
+
};
|
|
3542
|
+
requestBody: {
|
|
3543
|
+
content: {
|
|
3544
|
+
"application/json": components["schemas"]["CustomerMeCheckoutRequest"];
|
|
3545
|
+
};
|
|
3546
|
+
};
|
|
3547
|
+
responses: {
|
|
3548
|
+
/** @description Checkout session created successfully */
|
|
3549
|
+
200: {
|
|
3550
|
+
headers: {
|
|
3551
|
+
[name: string]: unknown;
|
|
3552
|
+
};
|
|
3553
|
+
content: {
|
|
3554
|
+
"application/json": components["schemas"]["CheckoutSessionResponse"];
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
3557
|
+
/** @description Invalid request (missing or invalid tier_code, success_url, or cancel_url) */
|
|
3558
|
+
400: {
|
|
3559
|
+
headers: {
|
|
3560
|
+
[name: string]: unknown;
|
|
3561
|
+
};
|
|
3562
|
+
content?: never;
|
|
3563
|
+
};
|
|
3564
|
+
/** @description Unauthorized */
|
|
3565
|
+
401: {
|
|
3566
|
+
headers: {
|
|
3567
|
+
[name: string]: unknown;
|
|
3568
|
+
};
|
|
3569
|
+
content?: never;
|
|
3570
|
+
};
|
|
3571
|
+
/** @description Customer or tier not found */
|
|
3572
|
+
404: {
|
|
3573
|
+
headers: {
|
|
3574
|
+
[name: string]: unknown;
|
|
3575
|
+
};
|
|
3576
|
+
content?: never;
|
|
3577
|
+
};
|
|
3578
|
+
/** @description Tier has no billing pricing configured */
|
|
3579
|
+
409: {
|
|
3580
|
+
headers: {
|
|
3581
|
+
[name: string]: unknown;
|
|
3582
|
+
};
|
|
3583
|
+
content?: never;
|
|
3584
|
+
};
|
|
3585
|
+
/** @description Billing not configured */
|
|
3586
|
+
503: {
|
|
3587
|
+
headers: {
|
|
3588
|
+
[name: string]: unknown;
|
|
3589
|
+
};
|
|
3590
|
+
content?: never;
|
|
3591
|
+
};
|
|
3592
|
+
};
|
|
3593
|
+
};
|
|
3594
|
+
listModels: {
|
|
3595
|
+
parameters: {
|
|
3596
|
+
query?: {
|
|
3597
|
+
/** @description Filter results to a specific provider */
|
|
3598
|
+
provider?: components["schemas"]["ProviderId"];
|
|
3599
|
+
/** @description Filter results to models that support a capability */
|
|
3600
|
+
capability?: components["schemas"]["ModelCapability"];
|
|
3601
|
+
};
|
|
3602
|
+
header?: never;
|
|
3603
|
+
path?: never;
|
|
3604
|
+
cookie?: never;
|
|
3605
|
+
};
|
|
3606
|
+
requestBody?: never;
|
|
3607
|
+
responses: {
|
|
3608
|
+
/** @description Models list */
|
|
3609
|
+
200: {
|
|
3610
|
+
headers: {
|
|
3611
|
+
[name: string]: unknown;
|
|
3612
|
+
};
|
|
3613
|
+
content: {
|
|
3614
|
+
"application/json": components["schemas"]["ModelsResponse"];
|
|
3615
|
+
};
|
|
3616
|
+
};
|
|
3617
|
+
};
|
|
3618
|
+
};
|
|
3619
|
+
listProjects: {
|
|
3620
|
+
parameters: {
|
|
3621
|
+
query?: never;
|
|
3622
|
+
header?: never;
|
|
3623
|
+
path?: never;
|
|
3624
|
+
cookie?: never;
|
|
3625
|
+
};
|
|
3626
|
+
requestBody?: never;
|
|
3627
|
+
responses: {
|
|
3628
|
+
/** @description Project list */
|
|
3629
|
+
200: {
|
|
3630
|
+
headers: {
|
|
3631
|
+
[name: string]: unknown;
|
|
3632
|
+
};
|
|
3633
|
+
content: {
|
|
3634
|
+
"application/json": {
|
|
3635
|
+
projects?: components["schemas"]["Project"][];
|
|
3636
|
+
};
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3639
|
+
};
|
|
3640
|
+
};
|
|
3641
|
+
createProject: {
|
|
3642
|
+
parameters: {
|
|
3643
|
+
query?: never;
|
|
3644
|
+
header?: never;
|
|
3645
|
+
path?: never;
|
|
3646
|
+
cookie?: never;
|
|
3647
|
+
};
|
|
3648
|
+
requestBody: {
|
|
3649
|
+
content: {
|
|
3650
|
+
"application/json": {
|
|
3651
|
+
name?: string;
|
|
3652
|
+
description?: string;
|
|
3653
|
+
markup_percentage?: number;
|
|
3654
|
+
};
|
|
3655
|
+
};
|
|
3656
|
+
};
|
|
3657
|
+
responses: {
|
|
3658
|
+
/** @description Project created */
|
|
3659
|
+
201: {
|
|
3660
|
+
headers: {
|
|
3661
|
+
[name: string]: unknown;
|
|
3662
|
+
};
|
|
3663
|
+
content: {
|
|
3664
|
+
"application/json": {
|
|
3665
|
+
project?: components["schemas"]["Project"];
|
|
3666
|
+
};
|
|
3667
|
+
};
|
|
3668
|
+
};
|
|
3669
|
+
};
|
|
3670
|
+
};
|
|
3671
|
+
getProject: {
|
|
3672
|
+
parameters: {
|
|
3673
|
+
query?: never;
|
|
3674
|
+
header?: never;
|
|
3675
|
+
path: {
|
|
3676
|
+
id: components["parameters"]["ProjectID"];
|
|
3677
|
+
};
|
|
3678
|
+
cookie?: never;
|
|
3679
|
+
};
|
|
3680
|
+
requestBody?: never;
|
|
3681
|
+
responses: {
|
|
3682
|
+
/** @description Project found */
|
|
3683
|
+
200: {
|
|
3684
|
+
headers: {
|
|
3685
|
+
[name: string]: unknown;
|
|
3686
|
+
};
|
|
3687
|
+
content: {
|
|
3688
|
+
"application/json": {
|
|
3689
|
+
project?: components["schemas"]["Project"];
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
updateProject: {
|
|
3696
|
+
parameters: {
|
|
3697
|
+
query?: never;
|
|
3698
|
+
header?: never;
|
|
3699
|
+
path: {
|
|
3700
|
+
id: components["parameters"]["ProjectID"];
|
|
3701
|
+
};
|
|
3702
|
+
cookie?: never;
|
|
3703
|
+
};
|
|
3704
|
+
requestBody: {
|
|
3705
|
+
content: {
|
|
3706
|
+
"application/json": {
|
|
3707
|
+
name?: string;
|
|
3708
|
+
description?: string;
|
|
3709
|
+
markup_percentage?: number;
|
|
3710
|
+
billing_mode?: components["schemas"]["BillingMode"];
|
|
3711
|
+
/** Format: uuid */
|
|
3712
|
+
customer_auto_provision_tier_id?: string;
|
|
3713
|
+
customer_oauth_providers?: ("github" | "google")[];
|
|
3714
|
+
oidc_enabled?: boolean;
|
|
3715
|
+
oidc_issuer?: string;
|
|
3716
|
+
oidc_audiences?: string[];
|
|
3717
|
+
oidc_jwks_url?: string;
|
|
3718
|
+
oidc_subject_claim?: string;
|
|
3719
|
+
};
|
|
3720
|
+
};
|
|
3721
|
+
};
|
|
3722
|
+
responses: {
|
|
3723
|
+
/** @description Project updated */
|
|
3724
|
+
200: {
|
|
3725
|
+
headers: {
|
|
3726
|
+
[name: string]: unknown;
|
|
3727
|
+
};
|
|
3728
|
+
content: {
|
|
3729
|
+
"application/json": {
|
|
3730
|
+
project?: components["schemas"]["Project"];
|
|
3731
|
+
};
|
|
3732
|
+
};
|
|
3733
|
+
};
|
|
3734
|
+
};
|
|
3735
|
+
};
|
|
3736
|
+
deleteProject: {
|
|
3737
|
+
parameters: {
|
|
3738
|
+
query?: never;
|
|
3739
|
+
header?: never;
|
|
3740
|
+
path: {
|
|
3741
|
+
id: components["parameters"]["ProjectID"];
|
|
3742
|
+
};
|
|
3743
|
+
cookie?: never;
|
|
3744
|
+
};
|
|
3745
|
+
requestBody?: never;
|
|
3746
|
+
responses: {
|
|
3747
|
+
/** @description Project deleted */
|
|
3748
|
+
204: {
|
|
3749
|
+
headers: {
|
|
3750
|
+
[name: string]: unknown;
|
|
3751
|
+
};
|
|
3752
|
+
content?: never;
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
};
|
|
3756
|
+
listProjectTiers: {
|
|
3757
|
+
parameters: {
|
|
3758
|
+
query?: never;
|
|
3759
|
+
header?: never;
|
|
3760
|
+
path: {
|
|
3761
|
+
id: components["parameters"]["ProjectID"];
|
|
3762
|
+
};
|
|
3763
|
+
cookie?: never;
|
|
3764
|
+
};
|
|
3765
|
+
requestBody?: never;
|
|
3766
|
+
responses: {
|
|
3767
|
+
/** @description Tier list */
|
|
3768
|
+
200: {
|
|
3769
|
+
headers: {
|
|
3770
|
+
[name: string]: unknown;
|
|
3771
|
+
};
|
|
3772
|
+
content: {
|
|
3773
|
+
"application/json": {
|
|
3774
|
+
tiers?: components["schemas"]["Tier"][];
|
|
3775
|
+
};
|
|
3776
|
+
};
|
|
3777
|
+
};
|
|
3778
|
+
};
|
|
3779
|
+
};
|
|
3780
|
+
createTier: {
|
|
3781
|
+
parameters: {
|
|
3782
|
+
query?: never;
|
|
3783
|
+
header?: never;
|
|
3784
|
+
path: {
|
|
3785
|
+
id: components["parameters"]["ProjectID"];
|
|
3786
|
+
};
|
|
3787
|
+
cookie?: never;
|
|
3788
|
+
};
|
|
3789
|
+
requestBody: {
|
|
3790
|
+
content: {
|
|
3791
|
+
"application/json": components["schemas"]["TierCreate"];
|
|
3792
|
+
};
|
|
3793
|
+
};
|
|
3794
|
+
responses: {
|
|
3795
|
+
/** @description Tier created */
|
|
3796
|
+
201: {
|
|
3797
|
+
headers: {
|
|
3798
|
+
[name: string]: unknown;
|
|
3799
|
+
};
|
|
3800
|
+
content: {
|
|
3801
|
+
"application/json": {
|
|
3802
|
+
tier?: components["schemas"]["Tier"];
|
|
3803
|
+
};
|
|
3804
|
+
};
|
|
3805
|
+
};
|
|
3806
|
+
};
|
|
3807
|
+
};
|
|
3808
|
+
updateTier: {
|
|
3809
|
+
parameters: {
|
|
3810
|
+
query?: never;
|
|
3811
|
+
header?: never;
|
|
3812
|
+
path: {
|
|
3813
|
+
id: components["parameters"]["ProjectID"];
|
|
3814
|
+
tier_id: string;
|
|
3815
|
+
};
|
|
3816
|
+
cookie?: never;
|
|
3817
|
+
};
|
|
3818
|
+
requestBody: {
|
|
3819
|
+
content: {
|
|
3820
|
+
"application/json": components["schemas"]["TierUpdate"];
|
|
3821
|
+
};
|
|
3822
|
+
};
|
|
3823
|
+
responses: {
|
|
3824
|
+
/** @description Tier updated */
|
|
3825
|
+
200: {
|
|
3826
|
+
headers: {
|
|
3827
|
+
[name: string]: unknown;
|
|
3828
|
+
};
|
|
3829
|
+
content?: never;
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
|
+
deleteTier: {
|
|
3834
|
+
parameters: {
|
|
3835
|
+
query?: never;
|
|
3836
|
+
header?: never;
|
|
3837
|
+
path: {
|
|
3838
|
+
id: components["parameters"]["ProjectID"];
|
|
3839
|
+
tier_id: string;
|
|
3840
|
+
};
|
|
3841
|
+
cookie?: never;
|
|
3842
|
+
};
|
|
3843
|
+
requestBody?: never;
|
|
3844
|
+
responses: {
|
|
3845
|
+
/** @description Tier deleted */
|
|
3846
|
+
204: {
|
|
3847
|
+
headers: {
|
|
3848
|
+
[name: string]: unknown;
|
|
3849
|
+
};
|
|
3850
|
+
content?: never;
|
|
3851
|
+
};
|
|
3852
|
+
};
|
|
3853
|
+
};
|
|
3854
|
+
listProjectCustomers: {
|
|
3855
|
+
parameters: {
|
|
3856
|
+
query?: never;
|
|
3857
|
+
header?: never;
|
|
3858
|
+
path: {
|
|
3859
|
+
id: components["parameters"]["ProjectID"];
|
|
3860
|
+
};
|
|
3861
|
+
cookie?: never;
|
|
3862
|
+
};
|
|
3863
|
+
requestBody?: never;
|
|
3864
|
+
responses: {
|
|
3865
|
+
/** @description Customer list */
|
|
3866
|
+
200: {
|
|
3867
|
+
headers: {
|
|
3868
|
+
[name: string]: unknown;
|
|
3869
|
+
};
|
|
3870
|
+
content: {
|
|
3871
|
+
"application/json": {
|
|
3872
|
+
customers?: components["schemas"]["CustomerWithSubscription"][];
|
|
3873
|
+
};
|
|
3874
|
+
};
|
|
3875
|
+
};
|
|
3876
|
+
};
|
|
3877
|
+
};
|
|
3878
|
+
createCustomer: {
|
|
3879
|
+
parameters: {
|
|
3880
|
+
query?: never;
|
|
3881
|
+
header?: never;
|
|
3882
|
+
path: {
|
|
3883
|
+
id: components["parameters"]["ProjectID"];
|
|
3884
|
+
};
|
|
3885
|
+
cookie?: never;
|
|
3886
|
+
};
|
|
3887
|
+
requestBody: {
|
|
3888
|
+
content: {
|
|
3889
|
+
"application/json": components["schemas"]["CustomerCreate"];
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
responses: {
|
|
3893
|
+
/** @description Customer created */
|
|
3894
|
+
201: {
|
|
3895
|
+
headers: {
|
|
3896
|
+
[name: string]: unknown;
|
|
3897
|
+
};
|
|
3898
|
+
content: {
|
|
3899
|
+
"application/json": {
|
|
3900
|
+
customer?: components["schemas"]["CustomerWithSubscription"];
|
|
3901
|
+
};
|
|
3902
|
+
};
|
|
3903
|
+
};
|
|
3904
|
+
};
|
|
3905
|
+
};
|
|
3906
|
+
deleteCustomer: {
|
|
3907
|
+
parameters: {
|
|
3908
|
+
query?: never;
|
|
3909
|
+
header?: never;
|
|
3910
|
+
path: {
|
|
3911
|
+
id: components["parameters"]["ProjectID"];
|
|
3912
|
+
customer_id: string;
|
|
3913
|
+
};
|
|
3914
|
+
cookie?: never;
|
|
3915
|
+
};
|
|
3916
|
+
requestBody?: never;
|
|
3917
|
+
responses: {
|
|
3918
|
+
/** @description Customer deleted */
|
|
3919
|
+
204: {
|
|
3920
|
+
headers: {
|
|
3921
|
+
[name: string]: unknown;
|
|
3922
|
+
};
|
|
3923
|
+
content?: never;
|
|
3924
|
+
};
|
|
3925
|
+
};
|
|
3926
|
+
};
|
|
3927
|
+
listProjectWebhooks: {
|
|
3928
|
+
parameters: {
|
|
3929
|
+
query?: never;
|
|
3930
|
+
header?: never;
|
|
3931
|
+
path: {
|
|
3932
|
+
id: components["parameters"]["ProjectID"];
|
|
3933
|
+
};
|
|
3934
|
+
cookie?: never;
|
|
3935
|
+
};
|
|
3936
|
+
requestBody?: never;
|
|
3937
|
+
responses: {
|
|
3938
|
+
/** @description Webhook list */
|
|
3939
|
+
200: {
|
|
3940
|
+
headers: {
|
|
3941
|
+
[name: string]: unknown;
|
|
3942
|
+
};
|
|
3943
|
+
content: {
|
|
3944
|
+
"application/json": {
|
|
3945
|
+
webhooks?: components["schemas"]["WebhookConfig"][];
|
|
3946
|
+
};
|
|
3947
|
+
};
|
|
3948
|
+
};
|
|
3949
|
+
};
|
|
3950
|
+
};
|
|
3951
|
+
createProjectWebhook: {
|
|
3952
|
+
parameters: {
|
|
3953
|
+
query?: never;
|
|
3954
|
+
header?: never;
|
|
3955
|
+
path: {
|
|
3956
|
+
id: components["parameters"]["ProjectID"];
|
|
3957
|
+
};
|
|
3958
|
+
cookie?: never;
|
|
3959
|
+
};
|
|
3960
|
+
requestBody: {
|
|
3961
|
+
content: {
|
|
3962
|
+
"application/json": components["schemas"]["WebhookConfigInput"];
|
|
3963
|
+
};
|
|
3964
|
+
};
|
|
3965
|
+
responses: {
|
|
3966
|
+
/** @description Webhook created */
|
|
3967
|
+
201: {
|
|
3968
|
+
headers: {
|
|
3969
|
+
[name: string]: unknown;
|
|
3970
|
+
};
|
|
3971
|
+
content: {
|
|
3972
|
+
"application/json": {
|
|
3973
|
+
webhook?: components["schemas"]["WebhookConfig"];
|
|
3974
|
+
};
|
|
3975
|
+
};
|
|
3976
|
+
};
|
|
3977
|
+
};
|
|
3978
|
+
};
|
|
3979
|
+
getProjectWebhook: {
|
|
3980
|
+
parameters: {
|
|
3981
|
+
query?: never;
|
|
3982
|
+
header?: never;
|
|
3983
|
+
path: {
|
|
3984
|
+
id: components["parameters"]["ProjectID"];
|
|
3985
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
3986
|
+
};
|
|
3987
|
+
cookie?: never;
|
|
3988
|
+
};
|
|
3989
|
+
requestBody?: never;
|
|
3990
|
+
responses: {
|
|
3991
|
+
/** @description Webhook details */
|
|
3992
|
+
200: {
|
|
3993
|
+
headers: {
|
|
3994
|
+
[name: string]: unknown;
|
|
3995
|
+
};
|
|
3996
|
+
content: {
|
|
3997
|
+
"application/json": {
|
|
3998
|
+
webhook?: components["schemas"]["WebhookConfig"];
|
|
3999
|
+
};
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
4003
|
+
};
|
|
4004
|
+
updateProjectWebhook: {
|
|
4005
|
+
parameters: {
|
|
4006
|
+
query?: never;
|
|
4007
|
+
header?: never;
|
|
4008
|
+
path: {
|
|
4009
|
+
id: components["parameters"]["ProjectID"];
|
|
4010
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
4011
|
+
};
|
|
4012
|
+
cookie?: never;
|
|
4013
|
+
};
|
|
4014
|
+
requestBody: {
|
|
4015
|
+
content: {
|
|
4016
|
+
"application/json": components["schemas"]["WebhookConfigUpdate"];
|
|
4017
|
+
};
|
|
4018
|
+
};
|
|
4019
|
+
responses: {
|
|
4020
|
+
/** @description Webhook updated */
|
|
4021
|
+
200: {
|
|
4022
|
+
headers: {
|
|
4023
|
+
[name: string]: unknown;
|
|
4024
|
+
};
|
|
4025
|
+
content: {
|
|
4026
|
+
"application/json": {
|
|
4027
|
+
webhook?: components["schemas"]["WebhookConfig"];
|
|
4028
|
+
};
|
|
4029
|
+
};
|
|
4030
|
+
};
|
|
4031
|
+
};
|
|
4032
|
+
};
|
|
4033
|
+
deleteProjectWebhook: {
|
|
4034
|
+
parameters: {
|
|
4035
|
+
query?: never;
|
|
4036
|
+
header?: never;
|
|
4037
|
+
path: {
|
|
4038
|
+
id: components["parameters"]["ProjectID"];
|
|
4039
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
4040
|
+
};
|
|
4041
|
+
cookie?: never;
|
|
4042
|
+
};
|
|
4043
|
+
requestBody?: never;
|
|
4044
|
+
responses: {
|
|
4045
|
+
/** @description Webhook deleted */
|
|
4046
|
+
204: {
|
|
4047
|
+
headers: {
|
|
4048
|
+
[name: string]: unknown;
|
|
4049
|
+
};
|
|
4050
|
+
content?: never;
|
|
4051
|
+
};
|
|
4052
|
+
};
|
|
4053
|
+
};
|
|
4054
|
+
testProjectWebhook: {
|
|
4055
|
+
parameters: {
|
|
4056
|
+
query?: never;
|
|
4057
|
+
header?: never;
|
|
4058
|
+
path: {
|
|
4059
|
+
id: components["parameters"]["ProjectID"];
|
|
4060
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
4061
|
+
};
|
|
4062
|
+
cookie?: never;
|
|
4063
|
+
};
|
|
4064
|
+
requestBody?: {
|
|
4065
|
+
content: {
|
|
4066
|
+
"application/json": {
|
|
4067
|
+
event_type?: string;
|
|
4068
|
+
};
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4071
|
+
responses: {
|
|
4072
|
+
/** @description Webhook test result */
|
|
4073
|
+
200: {
|
|
4074
|
+
headers: {
|
|
4075
|
+
[name: string]: unknown;
|
|
4076
|
+
};
|
|
4077
|
+
content: {
|
|
4078
|
+
"application/json": components["schemas"]["WebhookTestResult"];
|
|
4079
|
+
};
|
|
4080
|
+
};
|
|
4081
|
+
/** @description Webhook test failed */
|
|
4082
|
+
502: {
|
|
4083
|
+
headers: {
|
|
4084
|
+
[name: string]: unknown;
|
|
4085
|
+
};
|
|
4086
|
+
content?: never;
|
|
4087
|
+
};
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
listProjectWebhookEvents: {
|
|
4091
|
+
parameters: {
|
|
4092
|
+
query?: {
|
|
4093
|
+
limit?: number;
|
|
4094
|
+
offset?: number;
|
|
4095
|
+
event_type?: string;
|
|
4096
|
+
status?: string;
|
|
4097
|
+
};
|
|
4098
|
+
header?: never;
|
|
4099
|
+
path: {
|
|
4100
|
+
id: components["parameters"]["ProjectID"];
|
|
4101
|
+
webhook_id: components["parameters"]["WebhookID"];
|
|
4102
|
+
};
|
|
4103
|
+
cookie?: never;
|
|
4104
|
+
};
|
|
4105
|
+
requestBody?: never;
|
|
4106
|
+
responses: {
|
|
4107
|
+
/** @description Webhook events */
|
|
4108
|
+
200: {
|
|
4109
|
+
headers: {
|
|
4110
|
+
[name: string]: unknown;
|
|
4111
|
+
};
|
|
4112
|
+
content: {
|
|
4113
|
+
"application/json": {
|
|
4114
|
+
events?: components["schemas"]["OutboundWebhookEvent"][];
|
|
4115
|
+
next_cursor?: string;
|
|
4116
|
+
};
|
|
4117
|
+
};
|
|
4118
|
+
};
|
|
4119
|
+
};
|
|
4120
|
+
};
|
|
4121
|
+
createResponse: {
|
|
4122
|
+
parameters: {
|
|
4123
|
+
query?: never;
|
|
4124
|
+
header?: never;
|
|
4125
|
+
path?: never;
|
|
4126
|
+
cookie?: never;
|
|
4127
|
+
};
|
|
4128
|
+
requestBody: {
|
|
4129
|
+
content: {
|
|
4130
|
+
"application/json": components["schemas"]["ResponsesRequest"];
|
|
4131
|
+
};
|
|
4132
|
+
};
|
|
4133
|
+
responses: {
|
|
4134
|
+
/** @description Response */
|
|
4135
|
+
200: {
|
|
4136
|
+
headers: {
|
|
4137
|
+
[name: string]: unknown;
|
|
4138
|
+
};
|
|
4139
|
+
content: {
|
|
4140
|
+
"application/json": components["schemas"]["ResponsesResponse"];
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
};
|
|
4144
|
+
};
|
|
4145
|
+
createResponsesBatch: {
|
|
4146
|
+
parameters: {
|
|
4147
|
+
query?: never;
|
|
4148
|
+
header?: never;
|
|
4149
|
+
path?: never;
|
|
4150
|
+
cookie?: never;
|
|
4151
|
+
};
|
|
4152
|
+
requestBody: {
|
|
4153
|
+
content: {
|
|
4154
|
+
"application/json": components["schemas"]["ResponsesBatchRequest"];
|
|
4155
|
+
};
|
|
4156
|
+
};
|
|
4157
|
+
responses: {
|
|
4158
|
+
/** @description Batch response results */
|
|
4159
|
+
200: {
|
|
4160
|
+
headers: {
|
|
4161
|
+
[name: string]: unknown;
|
|
4162
|
+
};
|
|
4163
|
+
content: {
|
|
4164
|
+
"application/json": components["schemas"]["ResponsesBatchResponse"];
|
|
4165
|
+
};
|
|
4166
|
+
};
|
|
4167
|
+
};
|
|
4168
|
+
};
|
|
4169
|
+
generateImage: {
|
|
4170
|
+
parameters: {
|
|
4171
|
+
query?: never;
|
|
4172
|
+
header?: never;
|
|
4173
|
+
path?: never;
|
|
4174
|
+
cookie?: never;
|
|
4175
|
+
};
|
|
4176
|
+
requestBody: {
|
|
4177
|
+
content: {
|
|
4178
|
+
"application/json": components["schemas"]["ImageRequest"];
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
responses: {
|
|
4182
|
+
/** @description Generated images */
|
|
4183
|
+
200: {
|
|
4184
|
+
headers: {
|
|
4185
|
+
[name: string]: unknown;
|
|
4186
|
+
};
|
|
4187
|
+
content: {
|
|
4188
|
+
"application/json": components["schemas"]["ImageResponse"];
|
|
4189
|
+
};
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
};
|
|
4193
|
+
getImage: {
|
|
4194
|
+
parameters: {
|
|
4195
|
+
query?: never;
|
|
4196
|
+
header?: never;
|
|
4197
|
+
path: {
|
|
4198
|
+
/** @description Image ID */
|
|
4199
|
+
image_id: string;
|
|
4200
|
+
};
|
|
4201
|
+
cookie?: never;
|
|
4202
|
+
};
|
|
4203
|
+
requestBody?: never;
|
|
4204
|
+
responses: {
|
|
4205
|
+
/** @description Image details */
|
|
4206
|
+
200: {
|
|
4207
|
+
headers: {
|
|
4208
|
+
[name: string]: unknown;
|
|
4209
|
+
};
|
|
4210
|
+
content: {
|
|
4211
|
+
"application/json": components["schemas"]["ImagePinResponse"];
|
|
4212
|
+
};
|
|
4213
|
+
};
|
|
4214
|
+
/** @description Image not found */
|
|
4215
|
+
404: {
|
|
4216
|
+
headers: {
|
|
4217
|
+
[name: string]: unknown;
|
|
4218
|
+
};
|
|
4219
|
+
content?: never;
|
|
4220
|
+
};
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
4223
|
+
pinImage: {
|
|
4224
|
+
parameters: {
|
|
4225
|
+
query?: never;
|
|
4226
|
+
header?: never;
|
|
4227
|
+
path: {
|
|
4228
|
+
/** @description Image ID */
|
|
4229
|
+
image_id: string;
|
|
4230
|
+
};
|
|
4231
|
+
cookie?: never;
|
|
4232
|
+
};
|
|
4233
|
+
requestBody?: never;
|
|
4234
|
+
responses: {
|
|
4235
|
+
/** @description Image pinned successfully */
|
|
4236
|
+
200: {
|
|
4237
|
+
headers: {
|
|
4238
|
+
[name: string]: unknown;
|
|
4239
|
+
};
|
|
4240
|
+
content: {
|
|
4241
|
+
"application/json": components["schemas"]["ImagePinResponse"];
|
|
4242
|
+
};
|
|
4243
|
+
};
|
|
4244
|
+
/** @description Quota exceeded */
|
|
4245
|
+
403: {
|
|
4246
|
+
headers: {
|
|
4247
|
+
[name: string]: unknown;
|
|
4248
|
+
};
|
|
4249
|
+
content?: never;
|
|
4250
|
+
};
|
|
4251
|
+
/** @description Image not found */
|
|
4252
|
+
404: {
|
|
4253
|
+
headers: {
|
|
4254
|
+
[name: string]: unknown;
|
|
4255
|
+
};
|
|
4256
|
+
content?: never;
|
|
4257
|
+
};
|
|
4258
|
+
/** @description Image has expired */
|
|
4259
|
+
410: {
|
|
4260
|
+
headers: {
|
|
4261
|
+
[name: string]: unknown;
|
|
4262
|
+
};
|
|
4263
|
+
content?: never;
|
|
4264
|
+
};
|
|
4265
|
+
};
|
|
4266
|
+
};
|
|
4267
|
+
unpinImage: {
|
|
4268
|
+
parameters: {
|
|
4269
|
+
query?: never;
|
|
4270
|
+
header?: never;
|
|
4271
|
+
path: {
|
|
4272
|
+
/** @description Image ID */
|
|
4273
|
+
image_id: string;
|
|
4274
|
+
};
|
|
4275
|
+
cookie?: never;
|
|
4276
|
+
};
|
|
4277
|
+
requestBody?: never;
|
|
4278
|
+
responses: {
|
|
4279
|
+
/** @description Image unpinned successfully */
|
|
4280
|
+
200: {
|
|
4281
|
+
headers: {
|
|
4282
|
+
[name: string]: unknown;
|
|
4283
|
+
};
|
|
4284
|
+
content: {
|
|
4285
|
+
"application/json": components["schemas"]["ImagePinResponse"];
|
|
4286
|
+
};
|
|
4287
|
+
};
|
|
4288
|
+
/** @description Image not found */
|
|
4289
|
+
404: {
|
|
4290
|
+
headers: {
|
|
4291
|
+
[name: string]: unknown;
|
|
4292
|
+
};
|
|
4293
|
+
content?: never;
|
|
4294
|
+
};
|
|
4295
|
+
};
|
|
4296
|
+
};
|
|
4297
|
+
createRun: {
|
|
4298
|
+
parameters: {
|
|
4299
|
+
query?: never;
|
|
4300
|
+
header?: never;
|
|
4301
|
+
path?: never;
|
|
4302
|
+
cookie?: never;
|
|
4303
|
+
};
|
|
4304
|
+
requestBody: {
|
|
4305
|
+
content: {
|
|
4306
|
+
"application/json": components["schemas"]["RunsCreateRequest"];
|
|
4307
|
+
};
|
|
4308
|
+
};
|
|
4309
|
+
responses: {
|
|
4310
|
+
/** @description Run created (or idempotent replay) */
|
|
4311
|
+
200: {
|
|
4312
|
+
headers: {
|
|
4313
|
+
[name: string]: unknown;
|
|
4314
|
+
};
|
|
4315
|
+
content: {
|
|
4316
|
+
"application/json": components["schemas"]["RunsCreateResponse"];
|
|
4317
|
+
};
|
|
4318
|
+
};
|
|
4319
|
+
};
|
|
4320
|
+
};
|
|
4321
|
+
getRun: {
|
|
4322
|
+
parameters: {
|
|
4323
|
+
query?: never;
|
|
4324
|
+
header?: never;
|
|
4325
|
+
path: {
|
|
4326
|
+
run_id: string;
|
|
4327
|
+
};
|
|
4328
|
+
cookie?: never;
|
|
4329
|
+
};
|
|
4330
|
+
requestBody?: never;
|
|
4331
|
+
responses: {
|
|
4332
|
+
/** @description Run snapshot */
|
|
4333
|
+
200: {
|
|
4334
|
+
headers: {
|
|
4335
|
+
[name: string]: unknown;
|
|
4336
|
+
};
|
|
4337
|
+
content: {
|
|
4338
|
+
"application/json": components["schemas"]["RunsGetResponse"];
|
|
4339
|
+
};
|
|
4340
|
+
};
|
|
4341
|
+
/** @description Run not found */
|
|
4342
|
+
404: {
|
|
4343
|
+
headers: {
|
|
4344
|
+
[name: string]: unknown;
|
|
4345
|
+
};
|
|
4346
|
+
content?: never;
|
|
4347
|
+
};
|
|
4348
|
+
};
|
|
4349
|
+
};
|
|
4350
|
+
streamRunEvents: {
|
|
4351
|
+
parameters: {
|
|
4352
|
+
query?: {
|
|
4353
|
+
/** @description Returns events where `seq > after_seq`. */
|
|
4354
|
+
after_seq?: number;
|
|
4355
|
+
/** @description When false, returns currently available events then closes. */
|
|
4356
|
+
wait?: boolean;
|
|
4357
|
+
/** @description Maximum number of events to send before closing. */
|
|
4358
|
+
limit?: number;
|
|
4359
|
+
};
|
|
4360
|
+
header?: never;
|
|
4361
|
+
path: {
|
|
4362
|
+
run_id: string;
|
|
4363
|
+
};
|
|
4364
|
+
cookie?: never;
|
|
4365
|
+
};
|
|
4366
|
+
requestBody?: never;
|
|
4367
|
+
responses: {
|
|
4368
|
+
/** @description Event stream (NDJSON or SSE) */
|
|
4369
|
+
200: {
|
|
4370
|
+
headers: {
|
|
4371
|
+
[name: string]: unknown;
|
|
4372
|
+
};
|
|
4373
|
+
content: {
|
|
4374
|
+
/**
|
|
4375
|
+
* @example {"envelope_version":"v0","seq":1,"type":"run_compiled",...}
|
|
4376
|
+
* {"envelope_version":"v0","seq":2,"type":"run_started",...}
|
|
4377
|
+
*/
|
|
4378
|
+
"application/x-ndjson": string;
|
|
4379
|
+
/**
|
|
4380
|
+
* @example event: run_started
|
|
4381
|
+
* id: 2
|
|
4382
|
+
* data: {"envelope_version":"v0","seq":2,"type":"run_started",...}
|
|
4383
|
+
*/
|
|
4384
|
+
"text/event-stream": string;
|
|
4385
|
+
};
|
|
4386
|
+
};
|
|
4387
|
+
};
|
|
4388
|
+
};
|
|
4389
|
+
listSessions: {
|
|
4390
|
+
parameters: {
|
|
4391
|
+
query?: {
|
|
4392
|
+
/** @description Maximum number of sessions to return */
|
|
4393
|
+
limit?: number;
|
|
4394
|
+
/** @description Number of sessions to skip */
|
|
4395
|
+
offset?: number;
|
|
4396
|
+
/** @description Filter sessions by end user ID */
|
|
4397
|
+
end_user_id?: string;
|
|
4398
|
+
};
|
|
4399
|
+
header?: never;
|
|
4400
|
+
path?: never;
|
|
4401
|
+
cookie?: never;
|
|
4402
|
+
};
|
|
4403
|
+
requestBody?: never;
|
|
4404
|
+
responses: {
|
|
4405
|
+
/** @description Session list */
|
|
4406
|
+
200: {
|
|
4407
|
+
headers: {
|
|
4408
|
+
[name: string]: unknown;
|
|
4409
|
+
};
|
|
4410
|
+
content: {
|
|
4411
|
+
"application/json": components["schemas"]["SessionListResponse"];
|
|
4412
|
+
};
|
|
4413
|
+
};
|
|
4414
|
+
/** @description API key required */
|
|
4415
|
+
401: {
|
|
4416
|
+
headers: {
|
|
4417
|
+
[name: string]: unknown;
|
|
4418
|
+
};
|
|
4419
|
+
content?: never;
|
|
4420
|
+
};
|
|
4421
|
+
};
|
|
4422
|
+
};
|
|
4423
|
+
createSession: {
|
|
4424
|
+
parameters: {
|
|
4425
|
+
query?: never;
|
|
4426
|
+
header?: never;
|
|
4427
|
+
path?: never;
|
|
4428
|
+
cookie?: never;
|
|
4429
|
+
};
|
|
4430
|
+
requestBody: {
|
|
4431
|
+
content: {
|
|
4432
|
+
"application/json": components["schemas"]["SessionCreateRequest"];
|
|
4433
|
+
};
|
|
4434
|
+
};
|
|
4435
|
+
responses: {
|
|
4436
|
+
/** @description Session created */
|
|
4437
|
+
201: {
|
|
4438
|
+
headers: {
|
|
4439
|
+
[name: string]: unknown;
|
|
4440
|
+
};
|
|
4441
|
+
content: {
|
|
4442
|
+
"application/json": components["schemas"]["SessionResponse"];
|
|
4443
|
+
};
|
|
4444
|
+
};
|
|
4445
|
+
/** @description Invalid request */
|
|
4446
|
+
400: {
|
|
4447
|
+
headers: {
|
|
4448
|
+
[name: string]: unknown;
|
|
4449
|
+
};
|
|
4450
|
+
content?: never;
|
|
4451
|
+
};
|
|
4452
|
+
/** @description API key required */
|
|
4453
|
+
401: {
|
|
4454
|
+
headers: {
|
|
4455
|
+
[name: string]: unknown;
|
|
4456
|
+
};
|
|
4457
|
+
content?: never;
|
|
4458
|
+
};
|
|
4459
|
+
};
|
|
4460
|
+
};
|
|
4461
|
+
getSession: {
|
|
4462
|
+
parameters: {
|
|
4463
|
+
query?: never;
|
|
4464
|
+
header?: never;
|
|
4465
|
+
path: {
|
|
4466
|
+
session_id: string;
|
|
4467
|
+
};
|
|
4468
|
+
cookie?: never;
|
|
4469
|
+
};
|
|
4470
|
+
requestBody?: never;
|
|
4471
|
+
responses: {
|
|
4472
|
+
/** @description Session with messages */
|
|
4473
|
+
200: {
|
|
4474
|
+
headers: {
|
|
4475
|
+
[name: string]: unknown;
|
|
4476
|
+
};
|
|
4477
|
+
content: {
|
|
4478
|
+
"application/json": components["schemas"]["SessionWithMessagesResponse"];
|
|
4479
|
+
};
|
|
4480
|
+
};
|
|
4481
|
+
/** @description Session not found */
|
|
4482
|
+
404: {
|
|
4483
|
+
headers: {
|
|
4484
|
+
[name: string]: unknown;
|
|
4485
|
+
};
|
|
4486
|
+
content?: never;
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
4489
|
+
};
|
|
4490
|
+
deleteSession: {
|
|
4491
|
+
parameters: {
|
|
4492
|
+
query?: never;
|
|
4493
|
+
header?: never;
|
|
4494
|
+
path: {
|
|
4495
|
+
session_id: string;
|
|
4496
|
+
};
|
|
4497
|
+
cookie?: never;
|
|
4498
|
+
};
|
|
4499
|
+
requestBody?: never;
|
|
4500
|
+
responses: {
|
|
4501
|
+
/** @description Session deleted */
|
|
4502
|
+
204: {
|
|
4503
|
+
headers: {
|
|
4504
|
+
[name: string]: unknown;
|
|
4505
|
+
};
|
|
4506
|
+
content?: never;
|
|
4507
|
+
};
|
|
4508
|
+
/** @description Secret key required for deletion */
|
|
4509
|
+
403: {
|
|
4510
|
+
headers: {
|
|
4511
|
+
[name: string]: unknown;
|
|
4512
|
+
};
|
|
4513
|
+
content?: never;
|
|
4514
|
+
};
|
|
4515
|
+
/** @description Session not found */
|
|
4516
|
+
404: {
|
|
4517
|
+
headers: {
|
|
4518
|
+
[name: string]: unknown;
|
|
4519
|
+
};
|
|
4520
|
+
content?: never;
|
|
4521
|
+
};
|
|
4522
|
+
};
|
|
4523
|
+
};
|
|
4524
|
+
updateSession: {
|
|
4525
|
+
parameters: {
|
|
4526
|
+
query?: never;
|
|
4527
|
+
header?: never;
|
|
4528
|
+
path: {
|
|
4529
|
+
session_id: string;
|
|
4530
|
+
};
|
|
4531
|
+
cookie?: never;
|
|
4532
|
+
};
|
|
4533
|
+
requestBody: {
|
|
4534
|
+
content: {
|
|
4535
|
+
"application/json": components["schemas"]["SessionUpdateRequest"];
|
|
4536
|
+
};
|
|
4537
|
+
};
|
|
4538
|
+
responses: {
|
|
4539
|
+
/** @description Session updated */
|
|
4540
|
+
200: {
|
|
4541
|
+
headers: {
|
|
4542
|
+
[name: string]: unknown;
|
|
4543
|
+
};
|
|
4544
|
+
content: {
|
|
4545
|
+
"application/json": components["schemas"]["SessionResponse"];
|
|
4546
|
+
};
|
|
4547
|
+
};
|
|
4548
|
+
/** @description Invalid request */
|
|
4549
|
+
400: {
|
|
4550
|
+
headers: {
|
|
4551
|
+
[name: string]: unknown;
|
|
4552
|
+
};
|
|
4553
|
+
content?: never;
|
|
4554
|
+
};
|
|
4555
|
+
/** @description API key required */
|
|
4556
|
+
401: {
|
|
4557
|
+
headers: {
|
|
4558
|
+
[name: string]: unknown;
|
|
4559
|
+
};
|
|
4560
|
+
content?: never;
|
|
4561
|
+
};
|
|
4562
|
+
/** @description Session not found */
|
|
4563
|
+
404: {
|
|
4564
|
+
headers: {
|
|
4565
|
+
[name: string]: unknown;
|
|
4566
|
+
};
|
|
4567
|
+
content?: never;
|
|
4568
|
+
};
|
|
4569
|
+
};
|
|
4570
|
+
};
|
|
4571
|
+
addSessionMessage: {
|
|
4572
|
+
parameters: {
|
|
4573
|
+
query?: never;
|
|
4574
|
+
header?: never;
|
|
4575
|
+
path: {
|
|
4576
|
+
session_id: string;
|
|
4577
|
+
};
|
|
4578
|
+
cookie?: never;
|
|
4579
|
+
};
|
|
4580
|
+
requestBody: {
|
|
4581
|
+
content: {
|
|
4582
|
+
"application/json": components["schemas"]["SessionMessageCreateRequest"];
|
|
4583
|
+
};
|
|
4584
|
+
};
|
|
4585
|
+
responses: {
|
|
4586
|
+
/** @description Message appended */
|
|
4587
|
+
201: {
|
|
4588
|
+
headers: {
|
|
4589
|
+
[name: string]: unknown;
|
|
4590
|
+
};
|
|
4591
|
+
content: {
|
|
4592
|
+
"application/json": components["schemas"]["SessionMessageResponse"];
|
|
4593
|
+
};
|
|
4594
|
+
};
|
|
4595
|
+
/** @description Invalid request */
|
|
4596
|
+
400: {
|
|
4597
|
+
headers: {
|
|
4598
|
+
[name: string]: unknown;
|
|
4599
|
+
};
|
|
4600
|
+
content?: never;
|
|
4601
|
+
};
|
|
4602
|
+
/** @description API key required */
|
|
4603
|
+
401: {
|
|
4604
|
+
headers: {
|
|
4605
|
+
[name: string]: unknown;
|
|
4606
|
+
};
|
|
4607
|
+
content?: never;
|
|
4608
|
+
};
|
|
4609
|
+
/** @description Session not found */
|
|
4610
|
+
404: {
|
|
4611
|
+
headers: {
|
|
4612
|
+
[name: string]: unknown;
|
|
4613
|
+
};
|
|
4614
|
+
content?: never;
|
|
4615
|
+
};
|
|
4616
|
+
};
|
|
4617
|
+
};
|
|
4618
|
+
listProjectToolHooks: {
|
|
4619
|
+
parameters: {
|
|
4620
|
+
query?: never;
|
|
4621
|
+
header?: never;
|
|
4622
|
+
path: {
|
|
4623
|
+
id: components["parameters"]["ProjectID"];
|
|
4624
|
+
};
|
|
4625
|
+
cookie?: never;
|
|
4626
|
+
};
|
|
4627
|
+
requestBody?: never;
|
|
4628
|
+
responses: {
|
|
4629
|
+
/** @description Tool hook list */
|
|
4630
|
+
200: {
|
|
4631
|
+
headers: {
|
|
4632
|
+
[name: string]: unknown;
|
|
4633
|
+
};
|
|
4634
|
+
content: {
|
|
4635
|
+
"application/json": {
|
|
4636
|
+
hooks?: components["schemas"]["ToolHookConfig"][];
|
|
4637
|
+
};
|
|
4638
|
+
};
|
|
4639
|
+
};
|
|
4640
|
+
};
|
|
4641
|
+
};
|
|
4642
|
+
createProjectToolHook: {
|
|
4643
|
+
parameters: {
|
|
4644
|
+
query?: never;
|
|
4645
|
+
header?: never;
|
|
4646
|
+
path: {
|
|
4647
|
+
id: components["parameters"]["ProjectID"];
|
|
4648
|
+
};
|
|
4649
|
+
cookie?: never;
|
|
4650
|
+
};
|
|
4651
|
+
requestBody: {
|
|
4652
|
+
content: {
|
|
4653
|
+
"application/json": components["schemas"]["ToolHookConfigInput"];
|
|
4654
|
+
};
|
|
4655
|
+
};
|
|
4656
|
+
responses: {
|
|
4657
|
+
/** @description Tool hook created */
|
|
4658
|
+
201: {
|
|
4659
|
+
headers: {
|
|
4660
|
+
[name: string]: unknown;
|
|
4661
|
+
};
|
|
4662
|
+
content: {
|
|
4663
|
+
"application/json": {
|
|
4664
|
+
hook?: components["schemas"]["ToolHookConfig"];
|
|
4665
|
+
signing_secret?: string;
|
|
4666
|
+
};
|
|
4667
|
+
};
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4670
|
+
};
|
|
4671
|
+
getProjectToolHook: {
|
|
4672
|
+
parameters: {
|
|
4673
|
+
query?: never;
|
|
4674
|
+
header?: never;
|
|
4675
|
+
path: {
|
|
4676
|
+
id: components["parameters"]["ProjectID"];
|
|
4677
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
4678
|
+
};
|
|
4679
|
+
cookie?: never;
|
|
4680
|
+
};
|
|
4681
|
+
requestBody?: never;
|
|
4682
|
+
responses: {
|
|
4683
|
+
/** @description Tool hook details */
|
|
4684
|
+
200: {
|
|
4685
|
+
headers: {
|
|
4686
|
+
[name: string]: unknown;
|
|
4687
|
+
};
|
|
4688
|
+
content: {
|
|
4689
|
+
"application/json": {
|
|
4690
|
+
hook?: components["schemas"]["ToolHookConfig"];
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4694
|
+
};
|
|
4695
|
+
};
|
|
4696
|
+
updateProjectToolHook: {
|
|
4697
|
+
parameters: {
|
|
4698
|
+
query?: never;
|
|
4699
|
+
header?: never;
|
|
4700
|
+
path: {
|
|
4701
|
+
id: components["parameters"]["ProjectID"];
|
|
4702
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
4703
|
+
};
|
|
4704
|
+
cookie?: never;
|
|
4705
|
+
};
|
|
4706
|
+
requestBody: {
|
|
4707
|
+
content: {
|
|
4708
|
+
"application/json": components["schemas"]["ToolHookConfigUpdate"];
|
|
4709
|
+
};
|
|
4710
|
+
};
|
|
4711
|
+
responses: {
|
|
4712
|
+
/** @description Tool hook updated */
|
|
4713
|
+
200: {
|
|
4714
|
+
headers: {
|
|
4715
|
+
[name: string]: unknown;
|
|
4716
|
+
};
|
|
4717
|
+
content: {
|
|
4718
|
+
"application/json": {
|
|
4719
|
+
hook?: components["schemas"]["ToolHookConfig"];
|
|
4720
|
+
signing_secret?: string;
|
|
4721
|
+
};
|
|
4722
|
+
};
|
|
4723
|
+
};
|
|
4724
|
+
};
|
|
4725
|
+
};
|
|
4726
|
+
deleteProjectToolHook: {
|
|
4727
|
+
parameters: {
|
|
4728
|
+
query?: never;
|
|
4729
|
+
header?: never;
|
|
4730
|
+
path: {
|
|
4731
|
+
id: components["parameters"]["ProjectID"];
|
|
4732
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
4733
|
+
};
|
|
4734
|
+
cookie?: never;
|
|
4735
|
+
};
|
|
4736
|
+
requestBody?: never;
|
|
4737
|
+
responses: {
|
|
4738
|
+
/** @description Tool hook deleted */
|
|
4739
|
+
204: {
|
|
4740
|
+
headers: {
|
|
4741
|
+
[name: string]: unknown;
|
|
4742
|
+
};
|
|
4743
|
+
content?: never;
|
|
4744
|
+
};
|
|
4745
|
+
};
|
|
4746
|
+
};
|
|
4747
|
+
listProjectToolHookEvents: {
|
|
4748
|
+
parameters: {
|
|
4749
|
+
query?: {
|
|
4750
|
+
limit?: number;
|
|
4751
|
+
};
|
|
4752
|
+
header?: never;
|
|
4753
|
+
path: {
|
|
4754
|
+
id: components["parameters"]["ProjectID"];
|
|
4755
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
4756
|
+
};
|
|
4757
|
+
cookie?: never;
|
|
4758
|
+
};
|
|
4759
|
+
requestBody?: never;
|
|
4760
|
+
responses: {
|
|
4761
|
+
/** @description Tool hook events */
|
|
4762
|
+
200: {
|
|
4763
|
+
headers: {
|
|
4764
|
+
[name: string]: unknown;
|
|
4765
|
+
};
|
|
4766
|
+
content: {
|
|
4767
|
+
"application/json": {
|
|
4768
|
+
events?: components["schemas"]["ToolHookEvent"][];
|
|
4769
|
+
};
|
|
4770
|
+
};
|
|
4771
|
+
};
|
|
4772
|
+
};
|
|
4773
|
+
};
|
|
4774
|
+
testProjectToolHook: {
|
|
4775
|
+
parameters: {
|
|
4776
|
+
query?: never;
|
|
4777
|
+
header?: never;
|
|
4778
|
+
path: {
|
|
4779
|
+
id: components["parameters"]["ProjectID"];
|
|
4780
|
+
hook_id: components["parameters"]["ToolHookID"];
|
|
4781
|
+
};
|
|
4782
|
+
cookie?: never;
|
|
4783
|
+
};
|
|
4784
|
+
requestBody?: never;
|
|
4785
|
+
responses: {
|
|
4786
|
+
/** @description Tool hook test result */
|
|
4787
|
+
200: {
|
|
4788
|
+
headers: {
|
|
4789
|
+
[name: string]: unknown;
|
|
4790
|
+
};
|
|
4791
|
+
content: {
|
|
4792
|
+
"application/json": components["schemas"]["ToolHookTestResult"];
|
|
4793
|
+
};
|
|
4794
|
+
};
|
|
4795
|
+
/** @description Tool hook test failed */
|
|
4796
|
+
502: {
|
|
4797
|
+
headers: {
|
|
4798
|
+
[name: string]: unknown;
|
|
4799
|
+
};
|
|
4800
|
+
content?: never;
|
|
4801
|
+
};
|
|
4802
|
+
};
|
|
4803
|
+
};
|
|
4804
|
+
clearSession: {
|
|
4805
|
+
parameters: {
|
|
4806
|
+
query?: never;
|
|
4807
|
+
header?: never;
|
|
4808
|
+
path: {
|
|
4809
|
+
session_id: string;
|
|
4810
|
+
};
|
|
4811
|
+
cookie?: never;
|
|
4812
|
+
};
|
|
4813
|
+
requestBody?: never;
|
|
4814
|
+
responses: {
|
|
4815
|
+
/** @description Session cleared */
|
|
4816
|
+
200: {
|
|
4817
|
+
headers: {
|
|
4818
|
+
[name: string]: unknown;
|
|
4819
|
+
};
|
|
4820
|
+
content: {
|
|
4821
|
+
"application/json": components["schemas"]["SessionResponse"];
|
|
4822
|
+
};
|
|
4823
|
+
};
|
|
4824
|
+
/** @description API key required */
|
|
4825
|
+
401: {
|
|
4826
|
+
headers: {
|
|
4827
|
+
[name: string]: unknown;
|
|
4828
|
+
};
|
|
4829
|
+
content?: never;
|
|
4830
|
+
};
|
|
4831
|
+
/** @description Session not found */
|
|
4832
|
+
404: {
|
|
4833
|
+
headers: {
|
|
4834
|
+
[name: string]: unknown;
|
|
4835
|
+
};
|
|
4836
|
+
content?: never;
|
|
4837
|
+
};
|
|
4838
|
+
};
|
|
4839
|
+
};
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4842
|
+
export type { $defs as $, components as c, operations as o, paths as p, webhooks as w };
|