@nosana/api 0.1.9 → 0.1.11
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/client/deployment-manager-schema.d.ts +2100 -0
- package/dist/client/deployment-manager-schema.js +6 -0
- package/dist/client/deployment-manager-schema.js.map +1 -0
- package/dist/client/index.js +4 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/schema.d.ts +226 -36
- package/dist/routes/deployments/deployment/actions/deploymentCreateNewRevision.js +0 -1
- package/dist/routes/deployments/deployment/actions/deploymentCreateNewRevision.js.map +1 -1
- package/dist/routes/deployments/deployment/actions/deploymentGetEvents.d.ts +13 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetEvents.js +19 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetEvents.js.map +1 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetJobs.d.ts +13 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetJobs.js +19 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetJobs.js.map +1 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetRevisions.d.ts +13 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetRevisions.js +19 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetRevisions.js.map +1 -0
- package/dist/routes/deployments/deployment/actions/index.d.ts +3 -0
- package/dist/routes/deployments/deployment/actions/index.js +3 -0
- package/dist/routes/deployments/deployment/actions/index.js.map +1 -1
- package/dist/routes/deployments/deployment/createDeployment.d.ts +3 -1
- package/dist/routes/deployments/deployment/createDeployment.js +37 -1
- package/dist/routes/deployments/deployment/createDeployment.js.map +1 -1
- package/dist/routes/deployments/index.js.map +1 -1
- package/dist/routes/deployments/types.d.ts +8 -2
- package/package.json +2 -2
|
@@ -0,0 +1,2100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/api/deployments": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/** @description List all user deployments. */
|
|
14
|
+
get: {
|
|
15
|
+
parameters: {
|
|
16
|
+
query?: never;
|
|
17
|
+
header: {
|
|
18
|
+
"x-user-id": string;
|
|
19
|
+
/** @description Signed authentication message, */
|
|
20
|
+
authorization: string;
|
|
21
|
+
};
|
|
22
|
+
path?: never;
|
|
23
|
+
cookie?: never;
|
|
24
|
+
};
|
|
25
|
+
requestBody?: never;
|
|
26
|
+
responses: {
|
|
27
|
+
/** @description List of deployments. */
|
|
28
|
+
200: {
|
|
29
|
+
headers: {
|
|
30
|
+
[name: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
content: {
|
|
33
|
+
"application/json": components["schemas"]["Deployments"];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
37
|
+
401: {
|
|
38
|
+
headers: {
|
|
39
|
+
[name: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
content: {
|
|
42
|
+
"application/json": "Unauthorized";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/** @description Internal Server Error. */
|
|
46
|
+
500: {
|
|
47
|
+
headers: {
|
|
48
|
+
[name: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
content: {
|
|
51
|
+
"application/json": components["schemas"]["Error"];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
put?: never;
|
|
57
|
+
post?: never;
|
|
58
|
+
delete?: never;
|
|
59
|
+
options?: never;
|
|
60
|
+
head?: never;
|
|
61
|
+
patch?: never;
|
|
62
|
+
trace?: never;
|
|
63
|
+
};
|
|
64
|
+
"/api/deployments/{deployment}": {
|
|
65
|
+
parameters: {
|
|
66
|
+
query?: never;
|
|
67
|
+
header?: never;
|
|
68
|
+
path?: never;
|
|
69
|
+
cookie?: never;
|
|
70
|
+
};
|
|
71
|
+
/** @description Get a specific deployment by ID. */
|
|
72
|
+
get: {
|
|
73
|
+
parameters: {
|
|
74
|
+
query?: never;
|
|
75
|
+
header: {
|
|
76
|
+
"x-user-id": string;
|
|
77
|
+
/** @description Signed authentication message, */
|
|
78
|
+
authorization: string;
|
|
79
|
+
};
|
|
80
|
+
path: {
|
|
81
|
+
deployment: components["schemas"]["PublicKey"];
|
|
82
|
+
};
|
|
83
|
+
cookie?: never;
|
|
84
|
+
};
|
|
85
|
+
requestBody?: never;
|
|
86
|
+
responses: {
|
|
87
|
+
/** @description Gets a deployment by ID. */
|
|
88
|
+
200: {
|
|
89
|
+
headers: {
|
|
90
|
+
[name: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
content: {
|
|
93
|
+
"application/json": components["schemas"]["Deployment"];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
97
|
+
401: {
|
|
98
|
+
headers: {
|
|
99
|
+
[name: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
content: {
|
|
102
|
+
"application/json": "Unauthorized";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/** @description Deployment not found. */
|
|
106
|
+
404: {
|
|
107
|
+
headers: {
|
|
108
|
+
[name: string]: unknown;
|
|
109
|
+
};
|
|
110
|
+
content: {
|
|
111
|
+
"application/json": components["schemas"]["Error"];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
/** @description Internal Server Error. */
|
|
115
|
+
500: {
|
|
116
|
+
headers: {
|
|
117
|
+
[name: string]: unknown;
|
|
118
|
+
};
|
|
119
|
+
content: {
|
|
120
|
+
"application/json": components["schemas"]["Error"];
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
put?: never;
|
|
126
|
+
post?: never;
|
|
127
|
+
/** @description Delete a deployment permanently */
|
|
128
|
+
delete: {
|
|
129
|
+
parameters: {
|
|
130
|
+
query?: never;
|
|
131
|
+
header: {
|
|
132
|
+
"x-user-id": string;
|
|
133
|
+
/** @description Signed authentication message, */
|
|
134
|
+
authorization: string;
|
|
135
|
+
};
|
|
136
|
+
path: {
|
|
137
|
+
deployment: components["schemas"]["PublicKey"];
|
|
138
|
+
};
|
|
139
|
+
cookie?: never;
|
|
140
|
+
};
|
|
141
|
+
requestBody?: never;
|
|
142
|
+
responses: {
|
|
143
|
+
/** @description Deployment deleted successfully. */
|
|
144
|
+
204: {
|
|
145
|
+
headers: {
|
|
146
|
+
[name: string]: unknown;
|
|
147
|
+
};
|
|
148
|
+
content: {
|
|
149
|
+
"application/json": unknown;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
153
|
+
401: {
|
|
154
|
+
headers: {
|
|
155
|
+
[name: string]: unknown;
|
|
156
|
+
};
|
|
157
|
+
content: {
|
|
158
|
+
"application/json": "Unauthorized";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/** @description Deployment not found. */
|
|
162
|
+
404: {
|
|
163
|
+
headers: {
|
|
164
|
+
[name: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
content: {
|
|
167
|
+
"application/json": components["schemas"]["Error"];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
/** @description Internal Server Error. */
|
|
171
|
+
500: {
|
|
172
|
+
headers: {
|
|
173
|
+
[name: string]: unknown;
|
|
174
|
+
};
|
|
175
|
+
content: {
|
|
176
|
+
"application/json": components["schemas"]["Error"];
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
options?: never;
|
|
182
|
+
head?: never;
|
|
183
|
+
patch?: never;
|
|
184
|
+
trace?: never;
|
|
185
|
+
};
|
|
186
|
+
"/api/deployments/{deployment}/tasks": {
|
|
187
|
+
parameters: {
|
|
188
|
+
query?: never;
|
|
189
|
+
header?: never;
|
|
190
|
+
path?: never;
|
|
191
|
+
cookie?: never;
|
|
192
|
+
};
|
|
193
|
+
/** @description Get scheduled tasks for a specific deployment. */
|
|
194
|
+
get: {
|
|
195
|
+
parameters: {
|
|
196
|
+
query?: never;
|
|
197
|
+
header: {
|
|
198
|
+
"x-user-id": string;
|
|
199
|
+
/** @description Signed authentication message, */
|
|
200
|
+
authorization: string;
|
|
201
|
+
};
|
|
202
|
+
path: {
|
|
203
|
+
deployment: components["schemas"]["PublicKey"];
|
|
204
|
+
};
|
|
205
|
+
cookie?: never;
|
|
206
|
+
};
|
|
207
|
+
requestBody?: never;
|
|
208
|
+
responses: {
|
|
209
|
+
/** @description List of scheduled tasks for the deployment. */
|
|
210
|
+
200: {
|
|
211
|
+
headers: {
|
|
212
|
+
[name: string]: unknown;
|
|
213
|
+
};
|
|
214
|
+
content: {
|
|
215
|
+
"application/json": components["schemas"]["Task"][];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
219
|
+
401: {
|
|
220
|
+
headers: {
|
|
221
|
+
[name: string]: unknown;
|
|
222
|
+
};
|
|
223
|
+
content: {
|
|
224
|
+
"application/json": "Unauthorized";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
/** @description Deployment not found. */
|
|
228
|
+
404: {
|
|
229
|
+
headers: {
|
|
230
|
+
[name: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
content: {
|
|
233
|
+
"application/json": components["schemas"]["Error"];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/** @description Internal Server Error. */
|
|
237
|
+
500: {
|
|
238
|
+
headers: {
|
|
239
|
+
[name: string]: unknown;
|
|
240
|
+
};
|
|
241
|
+
content: {
|
|
242
|
+
"application/json": components["schemas"]["Error"];
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
put?: never;
|
|
248
|
+
post?: never;
|
|
249
|
+
delete?: never;
|
|
250
|
+
options?: never;
|
|
251
|
+
head?: never;
|
|
252
|
+
patch?: never;
|
|
253
|
+
trace?: never;
|
|
254
|
+
};
|
|
255
|
+
"/api/deployments/{deployment}/header": {
|
|
256
|
+
parameters: {
|
|
257
|
+
query?: never;
|
|
258
|
+
header?: never;
|
|
259
|
+
path?: never;
|
|
260
|
+
cookie?: never;
|
|
261
|
+
};
|
|
262
|
+
/** @description Get header for a specific deployment. */
|
|
263
|
+
get: {
|
|
264
|
+
parameters: {
|
|
265
|
+
query?: never;
|
|
266
|
+
header: {
|
|
267
|
+
"x-user-id": string;
|
|
268
|
+
/** @description Signed authentication message, */
|
|
269
|
+
authorization: string;
|
|
270
|
+
};
|
|
271
|
+
path: {
|
|
272
|
+
deployment: components["schemas"]["PublicKey"];
|
|
273
|
+
};
|
|
274
|
+
cookie?: never;
|
|
275
|
+
};
|
|
276
|
+
requestBody?: never;
|
|
277
|
+
responses: {
|
|
278
|
+
/** @description Returns authorization header to interact with the vaults jobs. */
|
|
279
|
+
200: {
|
|
280
|
+
headers: {
|
|
281
|
+
[name: string]: unknown;
|
|
282
|
+
};
|
|
283
|
+
content: {
|
|
284
|
+
"application/json": {
|
|
285
|
+
header: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
290
|
+
401: {
|
|
291
|
+
headers: {
|
|
292
|
+
[name: string]: unknown;
|
|
293
|
+
};
|
|
294
|
+
content: {
|
|
295
|
+
"application/json": "Unauthorized";
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
/** @description Deployment not found. */
|
|
299
|
+
404: {
|
|
300
|
+
headers: {
|
|
301
|
+
[name: string]: unknown;
|
|
302
|
+
};
|
|
303
|
+
content: {
|
|
304
|
+
"application/json": components["schemas"]["Error"];
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/** @description Internal Server Error. */
|
|
308
|
+
500: {
|
|
309
|
+
headers: {
|
|
310
|
+
[name: string]: unknown;
|
|
311
|
+
};
|
|
312
|
+
content: {
|
|
313
|
+
"application/json": components["schemas"]["Error"];
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
put?: never;
|
|
319
|
+
post?: never;
|
|
320
|
+
delete?: never;
|
|
321
|
+
options?: never;
|
|
322
|
+
head?: never;
|
|
323
|
+
patch?: never;
|
|
324
|
+
trace?: never;
|
|
325
|
+
};
|
|
326
|
+
"/api/deployments/{deployment}/jobs/{job}": {
|
|
327
|
+
parameters: {
|
|
328
|
+
query?: never;
|
|
329
|
+
header?: never;
|
|
330
|
+
path?: never;
|
|
331
|
+
cookie?: never;
|
|
332
|
+
};
|
|
333
|
+
/** @description Get a specific deployment job by ID. */
|
|
334
|
+
get: {
|
|
335
|
+
parameters: {
|
|
336
|
+
query?: never;
|
|
337
|
+
header: {
|
|
338
|
+
"x-user-id": string;
|
|
339
|
+
/** @description Signed authentication message, */
|
|
340
|
+
authorization: string;
|
|
341
|
+
};
|
|
342
|
+
path: {
|
|
343
|
+
deployment: components["schemas"]["PublicKey"];
|
|
344
|
+
job: components["schemas"]["PublicKey"];
|
|
345
|
+
};
|
|
346
|
+
cookie?: never;
|
|
347
|
+
};
|
|
348
|
+
requestBody?: never;
|
|
349
|
+
responses: {
|
|
350
|
+
/** @description Gets a deployment job by ID. */
|
|
351
|
+
200: {
|
|
352
|
+
headers: {
|
|
353
|
+
[name: string]: unknown;
|
|
354
|
+
};
|
|
355
|
+
content: {
|
|
356
|
+
"application/json": {
|
|
357
|
+
confidential: boolean;
|
|
358
|
+
revision: number;
|
|
359
|
+
market: string;
|
|
360
|
+
node: string;
|
|
361
|
+
state: string | number;
|
|
362
|
+
jobStatus: string | null;
|
|
363
|
+
jobDefinition: components["schemas"]["JobDefinition"];
|
|
364
|
+
jobResult: components["schemas"]["JobResults"] | null;
|
|
365
|
+
timeStart: number;
|
|
366
|
+
timeEnd: number;
|
|
367
|
+
listedAt: number;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
372
|
+
401: {
|
|
373
|
+
headers: {
|
|
374
|
+
[name: string]: unknown;
|
|
375
|
+
};
|
|
376
|
+
content: {
|
|
377
|
+
"application/json": "Unauthorized";
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
/** @description Deployment not found. */
|
|
381
|
+
404: {
|
|
382
|
+
headers: {
|
|
383
|
+
[name: string]: unknown;
|
|
384
|
+
};
|
|
385
|
+
content: {
|
|
386
|
+
"application/json": components["schemas"]["Error"];
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
/** @description Internal Server Error. */
|
|
390
|
+
500: {
|
|
391
|
+
headers: {
|
|
392
|
+
[name: string]: unknown;
|
|
393
|
+
};
|
|
394
|
+
content: {
|
|
395
|
+
"application/json": components["schemas"]["Error"];
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
put?: never;
|
|
401
|
+
post?: never;
|
|
402
|
+
delete?: never;
|
|
403
|
+
options?: never;
|
|
404
|
+
head?: never;
|
|
405
|
+
patch?: never;
|
|
406
|
+
trace?: never;
|
|
407
|
+
};
|
|
408
|
+
"/api/deployments/{deployment}/jobs": {
|
|
409
|
+
parameters: {
|
|
410
|
+
query?: never;
|
|
411
|
+
header?: never;
|
|
412
|
+
path?: never;
|
|
413
|
+
cookie?: never;
|
|
414
|
+
};
|
|
415
|
+
/** @description Get jobs for a specific deployment. */
|
|
416
|
+
get: {
|
|
417
|
+
parameters: {
|
|
418
|
+
query?: never;
|
|
419
|
+
header: {
|
|
420
|
+
"x-user-id": string;
|
|
421
|
+
/** @description Signed authentication message, */
|
|
422
|
+
authorization: string;
|
|
423
|
+
};
|
|
424
|
+
path: {
|
|
425
|
+
deployment: components["schemas"]["PublicKey"];
|
|
426
|
+
};
|
|
427
|
+
cookie?: never;
|
|
428
|
+
};
|
|
429
|
+
requestBody?: never;
|
|
430
|
+
responses: {
|
|
431
|
+
/** @description List of jobs for the deployment. */
|
|
432
|
+
200: {
|
|
433
|
+
headers: {
|
|
434
|
+
[name: string]: unknown;
|
|
435
|
+
};
|
|
436
|
+
content: {
|
|
437
|
+
"application/json": components["schemas"]["Job"][];
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
441
|
+
401: {
|
|
442
|
+
headers: {
|
|
443
|
+
[name: string]: unknown;
|
|
444
|
+
};
|
|
445
|
+
content: {
|
|
446
|
+
"application/json": "Unauthorized";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
/** @description Deployment not found. */
|
|
450
|
+
404: {
|
|
451
|
+
headers: {
|
|
452
|
+
[name: string]: unknown;
|
|
453
|
+
};
|
|
454
|
+
content: {
|
|
455
|
+
"application/json": components["schemas"]["Error"];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
/** @description Internal Server Error. */
|
|
459
|
+
500: {
|
|
460
|
+
headers: {
|
|
461
|
+
[name: string]: unknown;
|
|
462
|
+
};
|
|
463
|
+
content: {
|
|
464
|
+
"application/json": components["schemas"]["Error"];
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
put?: never;
|
|
470
|
+
post?: never;
|
|
471
|
+
delete?: never;
|
|
472
|
+
options?: never;
|
|
473
|
+
head?: never;
|
|
474
|
+
patch?: never;
|
|
475
|
+
trace?: never;
|
|
476
|
+
};
|
|
477
|
+
"/api/deployments/{deployment}/revisions": {
|
|
478
|
+
parameters: {
|
|
479
|
+
query?: never;
|
|
480
|
+
header?: never;
|
|
481
|
+
path?: never;
|
|
482
|
+
cookie?: never;
|
|
483
|
+
};
|
|
484
|
+
/** @description Get revisions for a specific deployment. */
|
|
485
|
+
get: {
|
|
486
|
+
parameters: {
|
|
487
|
+
query?: never;
|
|
488
|
+
header: {
|
|
489
|
+
"x-user-id": string;
|
|
490
|
+
/** @description Signed authentication message, */
|
|
491
|
+
authorization: string;
|
|
492
|
+
};
|
|
493
|
+
path: {
|
|
494
|
+
deployment: components["schemas"]["PublicKey"];
|
|
495
|
+
};
|
|
496
|
+
cookie?: never;
|
|
497
|
+
};
|
|
498
|
+
requestBody?: never;
|
|
499
|
+
responses: {
|
|
500
|
+
/** @description List of revisions for the deployment. */
|
|
501
|
+
200: {
|
|
502
|
+
headers: {
|
|
503
|
+
[name: string]: unknown;
|
|
504
|
+
};
|
|
505
|
+
content: {
|
|
506
|
+
"application/json": components["schemas"]["Revision"][];
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
510
|
+
401: {
|
|
511
|
+
headers: {
|
|
512
|
+
[name: string]: unknown;
|
|
513
|
+
};
|
|
514
|
+
content: {
|
|
515
|
+
"application/json": "Unauthorized";
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
/** @description Deployment not found. */
|
|
519
|
+
404: {
|
|
520
|
+
headers: {
|
|
521
|
+
[name: string]: unknown;
|
|
522
|
+
};
|
|
523
|
+
content: {
|
|
524
|
+
"application/json": components["schemas"]["Error"];
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
/** @description Internal Server Error. */
|
|
528
|
+
500: {
|
|
529
|
+
headers: {
|
|
530
|
+
[name: string]: unknown;
|
|
531
|
+
};
|
|
532
|
+
content: {
|
|
533
|
+
"application/json": components["schemas"]["Error"];
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
put?: never;
|
|
539
|
+
post?: never;
|
|
540
|
+
delete?: never;
|
|
541
|
+
options?: never;
|
|
542
|
+
head?: never;
|
|
543
|
+
patch?: never;
|
|
544
|
+
trace?: never;
|
|
545
|
+
};
|
|
546
|
+
"/api/deployments/{deployment}/events": {
|
|
547
|
+
parameters: {
|
|
548
|
+
query?: never;
|
|
549
|
+
header?: never;
|
|
550
|
+
path?: never;
|
|
551
|
+
cookie?: never;
|
|
552
|
+
};
|
|
553
|
+
/** @description Get events for a specific deployment. */
|
|
554
|
+
get: {
|
|
555
|
+
parameters: {
|
|
556
|
+
query?: never;
|
|
557
|
+
header: {
|
|
558
|
+
"x-user-id": string;
|
|
559
|
+
/** @description Signed authentication message, */
|
|
560
|
+
authorization: string;
|
|
561
|
+
};
|
|
562
|
+
path: {
|
|
563
|
+
deployment: components["schemas"]["PublicKey"];
|
|
564
|
+
};
|
|
565
|
+
cookie?: never;
|
|
566
|
+
};
|
|
567
|
+
requestBody?: never;
|
|
568
|
+
responses: {
|
|
569
|
+
/** @description List of events for the deployment. */
|
|
570
|
+
200: {
|
|
571
|
+
headers: {
|
|
572
|
+
[name: string]: unknown;
|
|
573
|
+
};
|
|
574
|
+
content: {
|
|
575
|
+
"application/json": components["schemas"]["Event"][];
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
579
|
+
401: {
|
|
580
|
+
headers: {
|
|
581
|
+
[name: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
content: {
|
|
584
|
+
"application/json": "Unauthorized";
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
/** @description Deployment not found. */
|
|
588
|
+
404: {
|
|
589
|
+
headers: {
|
|
590
|
+
[name: string]: unknown;
|
|
591
|
+
};
|
|
592
|
+
content: {
|
|
593
|
+
"application/json": components["schemas"]["Error"];
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
/** @description Internal Server Error. */
|
|
597
|
+
500: {
|
|
598
|
+
headers: {
|
|
599
|
+
[name: string]: unknown;
|
|
600
|
+
};
|
|
601
|
+
content: {
|
|
602
|
+
"application/json": components["schemas"]["Error"];
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
put?: never;
|
|
608
|
+
post?: never;
|
|
609
|
+
delete?: never;
|
|
610
|
+
options?: never;
|
|
611
|
+
head?: never;
|
|
612
|
+
patch?: never;
|
|
613
|
+
trace?: never;
|
|
614
|
+
};
|
|
615
|
+
"/api/deployments/create": {
|
|
616
|
+
parameters: {
|
|
617
|
+
query?: never;
|
|
618
|
+
header?: never;
|
|
619
|
+
path?: never;
|
|
620
|
+
cookie?: never;
|
|
621
|
+
};
|
|
622
|
+
get?: never;
|
|
623
|
+
put?: never;
|
|
624
|
+
/** @description Create a new deployment. */
|
|
625
|
+
post: {
|
|
626
|
+
parameters: {
|
|
627
|
+
query?: never;
|
|
628
|
+
header: {
|
|
629
|
+
"x-user-id": string;
|
|
630
|
+
/** @description Signed authentication message, */
|
|
631
|
+
authorization: string;
|
|
632
|
+
};
|
|
633
|
+
path?: never;
|
|
634
|
+
cookie?: never;
|
|
635
|
+
};
|
|
636
|
+
requestBody?: {
|
|
637
|
+
content: {
|
|
638
|
+
"application/json": components["schemas"]["DeploymentCreateBody"];
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
responses: {
|
|
642
|
+
/** @description Deployment created successfully. */
|
|
643
|
+
200: {
|
|
644
|
+
headers: {
|
|
645
|
+
[name: string]: unknown;
|
|
646
|
+
};
|
|
647
|
+
content: {
|
|
648
|
+
"application/json": components["schemas"]["Deployment"];
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
/** @description Invalid request body. */
|
|
652
|
+
400: {
|
|
653
|
+
headers: {
|
|
654
|
+
[name: string]: unknown;
|
|
655
|
+
};
|
|
656
|
+
content: {
|
|
657
|
+
"application/json": components["schemas"]["Error"];
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
661
|
+
401: {
|
|
662
|
+
headers: {
|
|
663
|
+
[name: string]: unknown;
|
|
664
|
+
};
|
|
665
|
+
content: {
|
|
666
|
+
"application/json": "Unauthorized";
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
/** @description Internal Server Error. */
|
|
670
|
+
500: {
|
|
671
|
+
headers: {
|
|
672
|
+
[name: string]: unknown;
|
|
673
|
+
};
|
|
674
|
+
content: {
|
|
675
|
+
"application/json": components["schemas"]["Error"];
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
delete?: never;
|
|
681
|
+
options?: never;
|
|
682
|
+
head?: never;
|
|
683
|
+
patch?: never;
|
|
684
|
+
trace?: never;
|
|
685
|
+
};
|
|
686
|
+
"/api/deployments/{deployment}/create-revision": {
|
|
687
|
+
parameters: {
|
|
688
|
+
query?: never;
|
|
689
|
+
header?: never;
|
|
690
|
+
path?: never;
|
|
691
|
+
cookie?: never;
|
|
692
|
+
};
|
|
693
|
+
get?: never;
|
|
694
|
+
put?: never;
|
|
695
|
+
/** @description Create a new deployment revision. */
|
|
696
|
+
post: {
|
|
697
|
+
parameters: {
|
|
698
|
+
query?: never;
|
|
699
|
+
header: {
|
|
700
|
+
"x-user-id": string;
|
|
701
|
+
/** @description Signed authentication message, */
|
|
702
|
+
authorization: string;
|
|
703
|
+
};
|
|
704
|
+
path: {
|
|
705
|
+
deployment: components["schemas"]["PublicKey"];
|
|
706
|
+
};
|
|
707
|
+
cookie?: never;
|
|
708
|
+
};
|
|
709
|
+
requestBody?: {
|
|
710
|
+
content: {
|
|
711
|
+
"application/json": components["schemas"]["JobDefinition"];
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
responses: {
|
|
715
|
+
/** @description Deployment CreateRevisioned successfully. */
|
|
716
|
+
200: {
|
|
717
|
+
headers: {
|
|
718
|
+
[name: string]: unknown;
|
|
719
|
+
};
|
|
720
|
+
content: {
|
|
721
|
+
"application/json": {
|
|
722
|
+
active_revision: number;
|
|
723
|
+
endpoints: {
|
|
724
|
+
opId: string;
|
|
725
|
+
port: number | string;
|
|
726
|
+
url: string;
|
|
727
|
+
}[];
|
|
728
|
+
revisions: {
|
|
729
|
+
revision: number;
|
|
730
|
+
deployment: string;
|
|
731
|
+
ipfs_definition_hash: string;
|
|
732
|
+
job_definition: components["schemas"]["JobDefinition"];
|
|
733
|
+
/** Format: date-time */
|
|
734
|
+
created_at: string;
|
|
735
|
+
}[];
|
|
736
|
+
/** Format: date-time */
|
|
737
|
+
updated_at: string;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
742
|
+
401: {
|
|
743
|
+
headers: {
|
|
744
|
+
[name: string]: unknown;
|
|
745
|
+
};
|
|
746
|
+
content: {
|
|
747
|
+
"application/json": "Unauthorized";
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
/** @description Deployment not found. */
|
|
751
|
+
404: {
|
|
752
|
+
headers: {
|
|
753
|
+
[name: string]: unknown;
|
|
754
|
+
};
|
|
755
|
+
content: {
|
|
756
|
+
"application/json": components["schemas"]["Error"];
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
/** @description Internal Server Error. */
|
|
760
|
+
500: {
|
|
761
|
+
headers: {
|
|
762
|
+
[name: string]: unknown;
|
|
763
|
+
};
|
|
764
|
+
content: {
|
|
765
|
+
"application/json": components["schemas"]["Error"];
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
delete?: never;
|
|
771
|
+
options?: never;
|
|
772
|
+
head?: never;
|
|
773
|
+
patch?: never;
|
|
774
|
+
trace?: never;
|
|
775
|
+
};
|
|
776
|
+
"/api/deployments/{deployment}/start": {
|
|
777
|
+
parameters: {
|
|
778
|
+
query?: never;
|
|
779
|
+
header?: never;
|
|
780
|
+
path?: never;
|
|
781
|
+
cookie?: never;
|
|
782
|
+
};
|
|
783
|
+
get?: never;
|
|
784
|
+
put?: never;
|
|
785
|
+
/** @description Start an existing deployment. */
|
|
786
|
+
post: {
|
|
787
|
+
parameters: {
|
|
788
|
+
query?: never;
|
|
789
|
+
header: {
|
|
790
|
+
"x-user-id": string;
|
|
791
|
+
/** @description Signed authentication message, */
|
|
792
|
+
authorization: string;
|
|
793
|
+
};
|
|
794
|
+
path: {
|
|
795
|
+
deployment: components["schemas"]["PublicKey"];
|
|
796
|
+
};
|
|
797
|
+
cookie?: never;
|
|
798
|
+
};
|
|
799
|
+
requestBody?: never;
|
|
800
|
+
responses: {
|
|
801
|
+
/** @description Deployment started successfully. */
|
|
802
|
+
200: {
|
|
803
|
+
headers: {
|
|
804
|
+
[name: string]: unknown;
|
|
805
|
+
};
|
|
806
|
+
content: {
|
|
807
|
+
"application/json": {
|
|
808
|
+
/** @enum {string} */
|
|
809
|
+
status: "STARTING";
|
|
810
|
+
/** Format: date-time */
|
|
811
|
+
updated_at: string;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
816
|
+
401: {
|
|
817
|
+
headers: {
|
|
818
|
+
[name: string]: unknown;
|
|
819
|
+
};
|
|
820
|
+
content: {
|
|
821
|
+
"application/json": "Unauthorized";
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
/** @description Deployment not found. */
|
|
825
|
+
404: {
|
|
826
|
+
headers: {
|
|
827
|
+
[name: string]: unknown;
|
|
828
|
+
};
|
|
829
|
+
content: {
|
|
830
|
+
"application/json": components["schemas"]["Error"];
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
/** @description Internal Server Error. */
|
|
834
|
+
500: {
|
|
835
|
+
headers: {
|
|
836
|
+
[name: string]: unknown;
|
|
837
|
+
};
|
|
838
|
+
content: {
|
|
839
|
+
"application/json": components["schemas"]["Error"];
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
delete?: never;
|
|
845
|
+
options?: never;
|
|
846
|
+
head?: never;
|
|
847
|
+
patch?: never;
|
|
848
|
+
trace?: never;
|
|
849
|
+
};
|
|
850
|
+
"/api/deployments/{deployment}/stop": {
|
|
851
|
+
parameters: {
|
|
852
|
+
query?: never;
|
|
853
|
+
header?: never;
|
|
854
|
+
path?: never;
|
|
855
|
+
cookie?: never;
|
|
856
|
+
};
|
|
857
|
+
get?: never;
|
|
858
|
+
put?: never;
|
|
859
|
+
/** @description Stop a deployment */
|
|
860
|
+
post: {
|
|
861
|
+
parameters: {
|
|
862
|
+
query?: never;
|
|
863
|
+
header: {
|
|
864
|
+
"x-user-id": string;
|
|
865
|
+
/** @description Signed authentication message, */
|
|
866
|
+
authorization: string;
|
|
867
|
+
};
|
|
868
|
+
path: {
|
|
869
|
+
deployment: components["schemas"]["PublicKey"];
|
|
870
|
+
};
|
|
871
|
+
cookie?: never;
|
|
872
|
+
};
|
|
873
|
+
requestBody?: never;
|
|
874
|
+
responses: {
|
|
875
|
+
/** @description Deployment stopped successfully. */
|
|
876
|
+
200: {
|
|
877
|
+
headers: {
|
|
878
|
+
[name: string]: unknown;
|
|
879
|
+
};
|
|
880
|
+
content: {
|
|
881
|
+
"application/json": {
|
|
882
|
+
/** @enum {string} */
|
|
883
|
+
status: "STOPPING";
|
|
884
|
+
/** Format: date-time */
|
|
885
|
+
updated_at: string;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
890
|
+
401: {
|
|
891
|
+
headers: {
|
|
892
|
+
[name: string]: unknown;
|
|
893
|
+
};
|
|
894
|
+
content: {
|
|
895
|
+
"application/json": "Unauthorized";
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
/** @description Deployment not found. */
|
|
899
|
+
404: {
|
|
900
|
+
headers: {
|
|
901
|
+
[name: string]: unknown;
|
|
902
|
+
};
|
|
903
|
+
content: {
|
|
904
|
+
"application/json": components["schemas"]["Error"];
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
/** @description Internal Server Error. */
|
|
908
|
+
500: {
|
|
909
|
+
headers: {
|
|
910
|
+
[name: string]: unknown;
|
|
911
|
+
};
|
|
912
|
+
content: {
|
|
913
|
+
"application/json": components["schemas"]["Error"];
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
delete?: never;
|
|
919
|
+
options?: never;
|
|
920
|
+
head?: never;
|
|
921
|
+
patch?: never;
|
|
922
|
+
trace?: never;
|
|
923
|
+
};
|
|
924
|
+
"/api/deployments/{deployment}/archive": {
|
|
925
|
+
parameters: {
|
|
926
|
+
query?: never;
|
|
927
|
+
header?: never;
|
|
928
|
+
path?: never;
|
|
929
|
+
cookie?: never;
|
|
930
|
+
};
|
|
931
|
+
get?: never;
|
|
932
|
+
put?: never;
|
|
933
|
+
/** @description Archive a deployment */
|
|
934
|
+
post: {
|
|
935
|
+
parameters: {
|
|
936
|
+
query?: never;
|
|
937
|
+
header: {
|
|
938
|
+
"x-user-id": string;
|
|
939
|
+
/** @description Signed authentication message, */
|
|
940
|
+
authorization: string;
|
|
941
|
+
};
|
|
942
|
+
path: {
|
|
943
|
+
deployment: components["schemas"]["PublicKey"];
|
|
944
|
+
};
|
|
945
|
+
cookie?: never;
|
|
946
|
+
};
|
|
947
|
+
requestBody?: never;
|
|
948
|
+
responses: {
|
|
949
|
+
/** @description Deployment archived successfully. */
|
|
950
|
+
200: {
|
|
951
|
+
headers: {
|
|
952
|
+
[name: string]: unknown;
|
|
953
|
+
};
|
|
954
|
+
content: {
|
|
955
|
+
"application/json": {
|
|
956
|
+
/** @enum {string} */
|
|
957
|
+
status: "ARCHIVED";
|
|
958
|
+
/** Format: date-time */
|
|
959
|
+
updated_at: string;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
964
|
+
401: {
|
|
965
|
+
headers: {
|
|
966
|
+
[name: string]: unknown;
|
|
967
|
+
};
|
|
968
|
+
content: {
|
|
969
|
+
"application/json": "Unauthorized";
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
/** @description Deployment not found. */
|
|
973
|
+
404: {
|
|
974
|
+
headers: {
|
|
975
|
+
[name: string]: unknown;
|
|
976
|
+
};
|
|
977
|
+
content: {
|
|
978
|
+
"application/json": components["schemas"]["Error"];
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
/** @description Internal Server Error. */
|
|
982
|
+
500: {
|
|
983
|
+
headers: {
|
|
984
|
+
[name: string]: unknown;
|
|
985
|
+
};
|
|
986
|
+
content: {
|
|
987
|
+
"application/json": components["schemas"]["Error"];
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
delete?: never;
|
|
993
|
+
options?: never;
|
|
994
|
+
head?: never;
|
|
995
|
+
patch?: never;
|
|
996
|
+
trace?: never;
|
|
997
|
+
};
|
|
998
|
+
"/api/deployments/{deployment}/update-active-revision": {
|
|
999
|
+
parameters: {
|
|
1000
|
+
query?: never;
|
|
1001
|
+
header?: never;
|
|
1002
|
+
path?: never;
|
|
1003
|
+
cookie?: never;
|
|
1004
|
+
};
|
|
1005
|
+
get?: never;
|
|
1006
|
+
put?: never;
|
|
1007
|
+
post?: never;
|
|
1008
|
+
delete?: never;
|
|
1009
|
+
options?: never;
|
|
1010
|
+
head?: never;
|
|
1011
|
+
/** @description Update deployment active revision. */
|
|
1012
|
+
patch: {
|
|
1013
|
+
parameters: {
|
|
1014
|
+
query?: never;
|
|
1015
|
+
header: {
|
|
1016
|
+
"x-user-id": string;
|
|
1017
|
+
/** @description Signed authentication message, */
|
|
1018
|
+
authorization: string;
|
|
1019
|
+
};
|
|
1020
|
+
path: {
|
|
1021
|
+
deployment: components["schemas"]["PublicKey"];
|
|
1022
|
+
};
|
|
1023
|
+
cookie?: never;
|
|
1024
|
+
};
|
|
1025
|
+
requestBody: {
|
|
1026
|
+
content: {
|
|
1027
|
+
"application/json": {
|
|
1028
|
+
active_revision: number;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
responses: {
|
|
1033
|
+
/** @description Deployment active revision updated successfully. */
|
|
1034
|
+
200: {
|
|
1035
|
+
headers: {
|
|
1036
|
+
[name: string]: unknown;
|
|
1037
|
+
};
|
|
1038
|
+
content: {
|
|
1039
|
+
"application/json": {
|
|
1040
|
+
active_revision: number;
|
|
1041
|
+
endpoints: components["schemas"]["Endpoint"][];
|
|
1042
|
+
updated_at: string;
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
/** @description Bad Request. Invalid input data. */
|
|
1047
|
+
400: {
|
|
1048
|
+
headers: {
|
|
1049
|
+
[name: string]: unknown;
|
|
1050
|
+
};
|
|
1051
|
+
content: {
|
|
1052
|
+
"application/json": components["schemas"]["Error"];
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
/** @description Deployment not found. */
|
|
1056
|
+
404: {
|
|
1057
|
+
headers: {
|
|
1058
|
+
[name: string]: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
content: {
|
|
1061
|
+
"application/json": components["schemas"]["Error"];
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
/** @description Internal Server Error. */
|
|
1065
|
+
500: {
|
|
1066
|
+
headers: {
|
|
1067
|
+
[name: string]: unknown;
|
|
1068
|
+
};
|
|
1069
|
+
content: {
|
|
1070
|
+
"application/json": components["schemas"]["Error"];
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
trace?: never;
|
|
1076
|
+
};
|
|
1077
|
+
"/api/deployments/{deployment}/update-replica-count": {
|
|
1078
|
+
parameters: {
|
|
1079
|
+
query?: never;
|
|
1080
|
+
header?: never;
|
|
1081
|
+
path?: never;
|
|
1082
|
+
cookie?: never;
|
|
1083
|
+
};
|
|
1084
|
+
get?: never;
|
|
1085
|
+
put?: never;
|
|
1086
|
+
post?: never;
|
|
1087
|
+
delete?: never;
|
|
1088
|
+
options?: never;
|
|
1089
|
+
head?: never;
|
|
1090
|
+
/** @description Update the replica count of a deployment */
|
|
1091
|
+
patch: {
|
|
1092
|
+
parameters: {
|
|
1093
|
+
query?: never;
|
|
1094
|
+
header: {
|
|
1095
|
+
"x-user-id": string;
|
|
1096
|
+
/** @description Signed authentication message, */
|
|
1097
|
+
authorization: string;
|
|
1098
|
+
};
|
|
1099
|
+
path: {
|
|
1100
|
+
deployment: components["schemas"]["PublicKey"];
|
|
1101
|
+
};
|
|
1102
|
+
cookie?: never;
|
|
1103
|
+
};
|
|
1104
|
+
requestBody: {
|
|
1105
|
+
content: {
|
|
1106
|
+
"application/json": {
|
|
1107
|
+
replicas: number;
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
responses: {
|
|
1112
|
+
/** @description Deployment replica count updated successfully. */
|
|
1113
|
+
200: {
|
|
1114
|
+
headers: {
|
|
1115
|
+
[name: string]: unknown;
|
|
1116
|
+
};
|
|
1117
|
+
content: {
|
|
1118
|
+
"application/json": {
|
|
1119
|
+
replicas: number;
|
|
1120
|
+
/** Format: date-time */
|
|
1121
|
+
updated_at: string;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1126
|
+
401: {
|
|
1127
|
+
headers: {
|
|
1128
|
+
[name: string]: unknown;
|
|
1129
|
+
};
|
|
1130
|
+
content: {
|
|
1131
|
+
"application/json": "Unauthorized";
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
/** @description Deployment not found. */
|
|
1135
|
+
404: {
|
|
1136
|
+
headers: {
|
|
1137
|
+
[name: string]: unknown;
|
|
1138
|
+
};
|
|
1139
|
+
content: {
|
|
1140
|
+
"application/json": components["schemas"]["Error"];
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
/** @description Internal Server Error. */
|
|
1144
|
+
500: {
|
|
1145
|
+
headers: {
|
|
1146
|
+
[name: string]: unknown;
|
|
1147
|
+
};
|
|
1148
|
+
content: {
|
|
1149
|
+
"application/json": components["schemas"]["Error"];
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
trace?: never;
|
|
1155
|
+
};
|
|
1156
|
+
"/api/deployments/{deployment}/update-schedule": {
|
|
1157
|
+
parameters: {
|
|
1158
|
+
query?: never;
|
|
1159
|
+
header?: never;
|
|
1160
|
+
path?: never;
|
|
1161
|
+
cookie?: never;
|
|
1162
|
+
};
|
|
1163
|
+
get?: never;
|
|
1164
|
+
put?: never;
|
|
1165
|
+
post?: never;
|
|
1166
|
+
delete?: never;
|
|
1167
|
+
options?: never;
|
|
1168
|
+
head?: never;
|
|
1169
|
+
/** @description Update deployment schedule. */
|
|
1170
|
+
patch: {
|
|
1171
|
+
parameters: {
|
|
1172
|
+
query?: never;
|
|
1173
|
+
header: {
|
|
1174
|
+
"x-user-id": string;
|
|
1175
|
+
/** @description Signed authentication message, */
|
|
1176
|
+
authorization: string;
|
|
1177
|
+
};
|
|
1178
|
+
path: {
|
|
1179
|
+
deployment: components["schemas"]["PublicKey"];
|
|
1180
|
+
};
|
|
1181
|
+
cookie?: never;
|
|
1182
|
+
};
|
|
1183
|
+
requestBody: {
|
|
1184
|
+
content: {
|
|
1185
|
+
"application/json": {
|
|
1186
|
+
/** @description Cron expression for scheduled deployments */
|
|
1187
|
+
schedule: string;
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
responses: {
|
|
1192
|
+
/** @description Deployment schedule updated successfully. */
|
|
1193
|
+
200: {
|
|
1194
|
+
headers: {
|
|
1195
|
+
[name: string]: unknown;
|
|
1196
|
+
};
|
|
1197
|
+
content: {
|
|
1198
|
+
"application/json": {
|
|
1199
|
+
/** @description Cron expression for scheduled deployments */
|
|
1200
|
+
schedule: string;
|
|
1201
|
+
updated_at: string;
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
/** @description Bad Request. Invalid input data. */
|
|
1206
|
+
400: {
|
|
1207
|
+
headers: {
|
|
1208
|
+
[name: string]: unknown;
|
|
1209
|
+
};
|
|
1210
|
+
content: {
|
|
1211
|
+
"application/json": components["schemas"]["Error"];
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
/** @description Deployment not found. */
|
|
1215
|
+
404: {
|
|
1216
|
+
headers: {
|
|
1217
|
+
[name: string]: unknown;
|
|
1218
|
+
};
|
|
1219
|
+
content: {
|
|
1220
|
+
"application/json": components["schemas"]["Error"];
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
/** @description Internal Server Error. */
|
|
1224
|
+
500: {
|
|
1225
|
+
headers: {
|
|
1226
|
+
[name: string]: unknown;
|
|
1227
|
+
};
|
|
1228
|
+
content: {
|
|
1229
|
+
"application/json": components["schemas"]["Error"];
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
trace?: never;
|
|
1235
|
+
};
|
|
1236
|
+
"/api/deployments/{deployment}/update-timeout": {
|
|
1237
|
+
parameters: {
|
|
1238
|
+
query?: never;
|
|
1239
|
+
header?: never;
|
|
1240
|
+
path?: never;
|
|
1241
|
+
cookie?: never;
|
|
1242
|
+
};
|
|
1243
|
+
get?: never;
|
|
1244
|
+
put?: never;
|
|
1245
|
+
post?: never;
|
|
1246
|
+
delete?: never;
|
|
1247
|
+
options?: never;
|
|
1248
|
+
head?: never;
|
|
1249
|
+
/** @description Update deployment timeout */
|
|
1250
|
+
patch: {
|
|
1251
|
+
parameters: {
|
|
1252
|
+
query?: never;
|
|
1253
|
+
header: {
|
|
1254
|
+
"x-user-id": string;
|
|
1255
|
+
/** @description Signed authentication message, */
|
|
1256
|
+
authorization: string;
|
|
1257
|
+
};
|
|
1258
|
+
path: {
|
|
1259
|
+
deployment: components["schemas"]["PublicKey"];
|
|
1260
|
+
};
|
|
1261
|
+
cookie?: never;
|
|
1262
|
+
};
|
|
1263
|
+
requestBody: {
|
|
1264
|
+
content: {
|
|
1265
|
+
"application/json": {
|
|
1266
|
+
timeout: number;
|
|
1267
|
+
};
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
responses: {
|
|
1271
|
+
/** @description Deployment timeout updated successfully. */
|
|
1272
|
+
200: {
|
|
1273
|
+
headers: {
|
|
1274
|
+
[name: string]: unknown;
|
|
1275
|
+
};
|
|
1276
|
+
content: {
|
|
1277
|
+
"application/json": {
|
|
1278
|
+
timeout: number;
|
|
1279
|
+
updated_at: string;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1284
|
+
401: {
|
|
1285
|
+
headers: {
|
|
1286
|
+
[name: string]: unknown;
|
|
1287
|
+
};
|
|
1288
|
+
content: {
|
|
1289
|
+
"application/json": "Unauthorized";
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
/** @description Deployment not found. */
|
|
1293
|
+
404: {
|
|
1294
|
+
headers: {
|
|
1295
|
+
[name: string]: unknown;
|
|
1296
|
+
};
|
|
1297
|
+
content: {
|
|
1298
|
+
"application/json": components["schemas"]["Error"];
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
/** @description Internal Server Error. */
|
|
1302
|
+
500: {
|
|
1303
|
+
headers: {
|
|
1304
|
+
[name: string]: unknown;
|
|
1305
|
+
};
|
|
1306
|
+
content: {
|
|
1307
|
+
"application/json": components["schemas"]["Error"];
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
trace?: never;
|
|
1313
|
+
};
|
|
1314
|
+
"/api/deployments/jobs/{job}/job-definition": {
|
|
1315
|
+
parameters: {
|
|
1316
|
+
query?: never;
|
|
1317
|
+
header?: never;
|
|
1318
|
+
path?: never;
|
|
1319
|
+
cookie?: never;
|
|
1320
|
+
};
|
|
1321
|
+
/** @description Returns the job definition for a job. */
|
|
1322
|
+
get: {
|
|
1323
|
+
parameters: {
|
|
1324
|
+
query?: never;
|
|
1325
|
+
header: {
|
|
1326
|
+
/** @description Signed authentication message, */
|
|
1327
|
+
authorization: string;
|
|
1328
|
+
};
|
|
1329
|
+
path: {
|
|
1330
|
+
job: string;
|
|
1331
|
+
};
|
|
1332
|
+
cookie?: never;
|
|
1333
|
+
};
|
|
1334
|
+
requestBody?: never;
|
|
1335
|
+
responses: {
|
|
1336
|
+
/** @description Job definition details. */
|
|
1337
|
+
200: {
|
|
1338
|
+
headers: {
|
|
1339
|
+
[name: string]: unknown;
|
|
1340
|
+
};
|
|
1341
|
+
content: {
|
|
1342
|
+
"application/json": components["schemas"]["JobDefinition"];
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1346
|
+
401: {
|
|
1347
|
+
headers: {
|
|
1348
|
+
[name: string]: unknown;
|
|
1349
|
+
};
|
|
1350
|
+
content: {
|
|
1351
|
+
"application/json": "Unauthorized";
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
/** @description Internal Server Error. */
|
|
1355
|
+
500: {
|
|
1356
|
+
headers: {
|
|
1357
|
+
[name: string]: unknown;
|
|
1358
|
+
};
|
|
1359
|
+
content: {
|
|
1360
|
+
"application/json": components["schemas"]["Error"];
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
put?: never;
|
|
1366
|
+
post?: never;
|
|
1367
|
+
delete?: never;
|
|
1368
|
+
options?: never;
|
|
1369
|
+
head?: never;
|
|
1370
|
+
patch?: never;
|
|
1371
|
+
trace?: never;
|
|
1372
|
+
};
|
|
1373
|
+
"/api/deployments/jobs/{job}/results": {
|
|
1374
|
+
parameters: {
|
|
1375
|
+
query?: never;
|
|
1376
|
+
header?: never;
|
|
1377
|
+
path?: never;
|
|
1378
|
+
cookie?: never;
|
|
1379
|
+
};
|
|
1380
|
+
get?: never;
|
|
1381
|
+
put?: never;
|
|
1382
|
+
/** @description Post results for your running job. */
|
|
1383
|
+
post: {
|
|
1384
|
+
parameters: {
|
|
1385
|
+
query?: never;
|
|
1386
|
+
header: {
|
|
1387
|
+
/** @description Signed authentication message, */
|
|
1388
|
+
authorization: string;
|
|
1389
|
+
};
|
|
1390
|
+
path: {
|
|
1391
|
+
job: string;
|
|
1392
|
+
};
|
|
1393
|
+
cookie?: never;
|
|
1394
|
+
};
|
|
1395
|
+
requestBody?: {
|
|
1396
|
+
content: {
|
|
1397
|
+
"application/json": components["schemas"]["JobResults"];
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
responses: {
|
|
1401
|
+
/** @description Job results details. */
|
|
1402
|
+
200: {
|
|
1403
|
+
headers: {
|
|
1404
|
+
[name: string]: unknown;
|
|
1405
|
+
};
|
|
1406
|
+
content: {
|
|
1407
|
+
"application/json": {
|
|
1408
|
+
/** @enum {string} */
|
|
1409
|
+
message: "Success";
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1414
|
+
401: {
|
|
1415
|
+
headers: {
|
|
1416
|
+
[name: string]: unknown;
|
|
1417
|
+
};
|
|
1418
|
+
content: {
|
|
1419
|
+
"application/json": "Unauthorized";
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
/** @description Internal Server Error. */
|
|
1423
|
+
500: {
|
|
1424
|
+
headers: {
|
|
1425
|
+
[name: string]: unknown;
|
|
1426
|
+
};
|
|
1427
|
+
content: {
|
|
1428
|
+
"application/json": components["schemas"]["Error"];
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1433
|
+
delete?: never;
|
|
1434
|
+
options?: never;
|
|
1435
|
+
head?: never;
|
|
1436
|
+
patch?: never;
|
|
1437
|
+
trace?: never;
|
|
1438
|
+
};
|
|
1439
|
+
"/api/deployments/vaults": {
|
|
1440
|
+
parameters: {
|
|
1441
|
+
query?: never;
|
|
1442
|
+
header?: never;
|
|
1443
|
+
path?: never;
|
|
1444
|
+
cookie?: never;
|
|
1445
|
+
};
|
|
1446
|
+
/** @description List all user vaults. */
|
|
1447
|
+
get: {
|
|
1448
|
+
parameters: {
|
|
1449
|
+
query?: never;
|
|
1450
|
+
header: {
|
|
1451
|
+
"x-user-id": string;
|
|
1452
|
+
/** @description Signed authentication message, */
|
|
1453
|
+
authorization: string;
|
|
1454
|
+
};
|
|
1455
|
+
path?: never;
|
|
1456
|
+
cookie?: never;
|
|
1457
|
+
};
|
|
1458
|
+
requestBody?: never;
|
|
1459
|
+
responses: {
|
|
1460
|
+
/** @description List of vaults. */
|
|
1461
|
+
200: {
|
|
1462
|
+
headers: {
|
|
1463
|
+
[name: string]: unknown;
|
|
1464
|
+
};
|
|
1465
|
+
content: {
|
|
1466
|
+
"application/json": components["schemas"]["Vaults"];
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1470
|
+
401: {
|
|
1471
|
+
headers: {
|
|
1472
|
+
[name: string]: unknown;
|
|
1473
|
+
};
|
|
1474
|
+
content: {
|
|
1475
|
+
"application/json": "Unauthorized";
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
/** @description Internal Server Error. */
|
|
1479
|
+
500: {
|
|
1480
|
+
headers: {
|
|
1481
|
+
[name: string]: unknown;
|
|
1482
|
+
};
|
|
1483
|
+
content: {
|
|
1484
|
+
"application/json": components["schemas"]["Error"];
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
};
|
|
1489
|
+
put?: never;
|
|
1490
|
+
post?: never;
|
|
1491
|
+
delete?: never;
|
|
1492
|
+
options?: never;
|
|
1493
|
+
head?: never;
|
|
1494
|
+
patch?: never;
|
|
1495
|
+
trace?: never;
|
|
1496
|
+
};
|
|
1497
|
+
"/api/deployments/vaults/create": {
|
|
1498
|
+
parameters: {
|
|
1499
|
+
query?: never;
|
|
1500
|
+
header?: never;
|
|
1501
|
+
path?: never;
|
|
1502
|
+
cookie?: never;
|
|
1503
|
+
};
|
|
1504
|
+
get?: never;
|
|
1505
|
+
put?: never;
|
|
1506
|
+
/** @description Create a shared vault. */
|
|
1507
|
+
post: {
|
|
1508
|
+
parameters: {
|
|
1509
|
+
query?: never;
|
|
1510
|
+
header: {
|
|
1511
|
+
"x-user-id": string;
|
|
1512
|
+
/** @description Signed authentication message, */
|
|
1513
|
+
authorization: string;
|
|
1514
|
+
};
|
|
1515
|
+
path?: never;
|
|
1516
|
+
cookie?: never;
|
|
1517
|
+
};
|
|
1518
|
+
requestBody?: never;
|
|
1519
|
+
responses: {
|
|
1520
|
+
/** @description Vault created successfully. */
|
|
1521
|
+
200: {
|
|
1522
|
+
headers: {
|
|
1523
|
+
[name: string]: unknown;
|
|
1524
|
+
};
|
|
1525
|
+
content: {
|
|
1526
|
+
"application/json": components["schemas"]["Vault"];
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1530
|
+
401: {
|
|
1531
|
+
headers: {
|
|
1532
|
+
[name: string]: unknown;
|
|
1533
|
+
};
|
|
1534
|
+
content: {
|
|
1535
|
+
"application/json": "Unauthorized";
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
/** @description Internal Server Error. */
|
|
1539
|
+
500: {
|
|
1540
|
+
headers: {
|
|
1541
|
+
[name: string]: unknown;
|
|
1542
|
+
};
|
|
1543
|
+
content: {
|
|
1544
|
+
"application/json": components["schemas"]["Error"];
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
delete?: never;
|
|
1550
|
+
options?: never;
|
|
1551
|
+
head?: never;
|
|
1552
|
+
patch?: never;
|
|
1553
|
+
trace?: never;
|
|
1554
|
+
};
|
|
1555
|
+
"/api/deployments/vaults/{vault}/withdraw": {
|
|
1556
|
+
parameters: {
|
|
1557
|
+
query?: never;
|
|
1558
|
+
header?: never;
|
|
1559
|
+
path?: never;
|
|
1560
|
+
cookie?: never;
|
|
1561
|
+
};
|
|
1562
|
+
get?: never;
|
|
1563
|
+
put?: never;
|
|
1564
|
+
/** @description Withdraw from a vault. */
|
|
1565
|
+
post: {
|
|
1566
|
+
parameters: {
|
|
1567
|
+
query?: never;
|
|
1568
|
+
header: {
|
|
1569
|
+
"x-user-id": string;
|
|
1570
|
+
/** @description Signed authentication message, */
|
|
1571
|
+
authorization: string;
|
|
1572
|
+
};
|
|
1573
|
+
path: {
|
|
1574
|
+
vault: components["schemas"]["PublicKey"];
|
|
1575
|
+
};
|
|
1576
|
+
cookie?: never;
|
|
1577
|
+
};
|
|
1578
|
+
requestBody?: {
|
|
1579
|
+
content: {
|
|
1580
|
+
"application/json": {
|
|
1581
|
+
SOL?: number;
|
|
1582
|
+
NOS?: number;
|
|
1583
|
+
};
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
responses: {
|
|
1587
|
+
/** @description Withdrawal successful. */
|
|
1588
|
+
200: {
|
|
1589
|
+
headers: {
|
|
1590
|
+
[name: string]: unknown;
|
|
1591
|
+
};
|
|
1592
|
+
content: {
|
|
1593
|
+
"application/json": {
|
|
1594
|
+
transaction: string;
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
/** @description Invalid request body. */
|
|
1599
|
+
400: {
|
|
1600
|
+
headers: {
|
|
1601
|
+
[name: string]: unknown;
|
|
1602
|
+
};
|
|
1603
|
+
content: {
|
|
1604
|
+
"application/json": components["schemas"]["Error"];
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
/** @description Unauthorized. Invalid or missing authentication. */
|
|
1608
|
+
401: {
|
|
1609
|
+
headers: {
|
|
1610
|
+
[name: string]: unknown;
|
|
1611
|
+
};
|
|
1612
|
+
content: {
|
|
1613
|
+
"application/json": "Unauthorized";
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
/** @description Vault not found. */
|
|
1617
|
+
404: {
|
|
1618
|
+
headers: {
|
|
1619
|
+
[name: string]: unknown;
|
|
1620
|
+
};
|
|
1621
|
+
content: {
|
|
1622
|
+
"application/json": components["schemas"]["Error"];
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1625
|
+
/** @description Internal Server Error. */
|
|
1626
|
+
500: {
|
|
1627
|
+
headers: {
|
|
1628
|
+
[name: string]: unknown;
|
|
1629
|
+
};
|
|
1630
|
+
content: {
|
|
1631
|
+
"application/json": components["schemas"]["Error"];
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
delete?: never;
|
|
1637
|
+
options?: never;
|
|
1638
|
+
head?: never;
|
|
1639
|
+
patch?: never;
|
|
1640
|
+
trace?: never;
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
export type webhooks = Record<string, never>;
|
|
1644
|
+
export interface components {
|
|
1645
|
+
schemas: {
|
|
1646
|
+
/**
|
|
1647
|
+
* Headers
|
|
1648
|
+
* @description Headers for deployment routes
|
|
1649
|
+
*/
|
|
1650
|
+
Headers: {
|
|
1651
|
+
"x-user-id": string;
|
|
1652
|
+
/** @description Signed authentication message, */
|
|
1653
|
+
authorization: string;
|
|
1654
|
+
};
|
|
1655
|
+
/**
|
|
1656
|
+
* HostHeaders
|
|
1657
|
+
* @description Headers for deployment routes
|
|
1658
|
+
*/
|
|
1659
|
+
HostHeaders: {
|
|
1660
|
+
/** @description Signed authentication message, */
|
|
1661
|
+
authorization: string;
|
|
1662
|
+
};
|
|
1663
|
+
/** Deployment */
|
|
1664
|
+
Deployment: {
|
|
1665
|
+
id: string;
|
|
1666
|
+
name: string;
|
|
1667
|
+
vault: string;
|
|
1668
|
+
market: string;
|
|
1669
|
+
owner: string;
|
|
1670
|
+
status: "DRAFT" | "ERROR" | "STARTING" | "RUNNING" | "STOPPING" | "STOPPED" | "INSUFFICIENT_FUNDS" | "ARCHIVED";
|
|
1671
|
+
replicas: number;
|
|
1672
|
+
timeout: number;
|
|
1673
|
+
endpoints: {
|
|
1674
|
+
opId: string;
|
|
1675
|
+
port: number | string;
|
|
1676
|
+
url: string;
|
|
1677
|
+
}[];
|
|
1678
|
+
confidential: boolean;
|
|
1679
|
+
active_revision: number;
|
|
1680
|
+
active_jobs: number;
|
|
1681
|
+
/** Format: date-time */
|
|
1682
|
+
created_at: string;
|
|
1683
|
+
/** Format: date-time */
|
|
1684
|
+
updated_at: string;
|
|
1685
|
+
} & ({
|
|
1686
|
+
strategy: "SIMPLE" | "SIMPLE-EXTEND";
|
|
1687
|
+
} | {
|
|
1688
|
+
/** @enum {string} */
|
|
1689
|
+
strategy: "SCHEDULED";
|
|
1690
|
+
/** @description Cron expression for scheduled deployments */
|
|
1691
|
+
schedule: string;
|
|
1692
|
+
} | {
|
|
1693
|
+
timeout: number;
|
|
1694
|
+
/** @enum {string} */
|
|
1695
|
+
strategy: "INFINITE";
|
|
1696
|
+
rotation_time: number;
|
|
1697
|
+
});
|
|
1698
|
+
/** Deployments */
|
|
1699
|
+
Deployments: components["schemas"]["Deployment"][];
|
|
1700
|
+
/** DeploymentStatus */
|
|
1701
|
+
DeploymentStatus: "DRAFT" | "ERROR" | "STARTING" | "RUNNING" | "STOPPING" | "STOPPED" | "INSUFFICIENT_FUNDS" | "ARCHIVED";
|
|
1702
|
+
/** DeploymentStrategy */
|
|
1703
|
+
DeploymentStrategy: "SIMPLE" | "SIMPLE-EXTEND" | "SCHEDULED" | "INFINITE";
|
|
1704
|
+
/** DeploymentCreateBody */
|
|
1705
|
+
DeploymentCreateBody: {
|
|
1706
|
+
name: string;
|
|
1707
|
+
market: string;
|
|
1708
|
+
replicas: number;
|
|
1709
|
+
/** @description Timeout in minutes, must be at least 1 minute. */
|
|
1710
|
+
timeout: number;
|
|
1711
|
+
vault?: string;
|
|
1712
|
+
confidential?: boolean;
|
|
1713
|
+
job_definition: components["schemas"]["JobDefinition"];
|
|
1714
|
+
} & ({
|
|
1715
|
+
strategy: "SIMPLE" | "SIMPLE-EXTEND";
|
|
1716
|
+
} | {
|
|
1717
|
+
/** @enum {string} */
|
|
1718
|
+
strategy: "SCHEDULED";
|
|
1719
|
+
/** @description Cron expression for scheduled deployments */
|
|
1720
|
+
schedule: string;
|
|
1721
|
+
} | {
|
|
1722
|
+
/** @description Timeout in minutes, must be at least 60 minute. */
|
|
1723
|
+
timeout: number;
|
|
1724
|
+
/** @enum {string} */
|
|
1725
|
+
strategy: "INFINITE";
|
|
1726
|
+
/** @description Rotation time in seconds. Must be at least 10 minutes less than timeout to allow for proper rotation. */
|
|
1727
|
+
rotation_time?: number;
|
|
1728
|
+
});
|
|
1729
|
+
/** Endpoint */
|
|
1730
|
+
Endpoint: {
|
|
1731
|
+
opId: string;
|
|
1732
|
+
port: number | string;
|
|
1733
|
+
url: string;
|
|
1734
|
+
};
|
|
1735
|
+
/** Error */
|
|
1736
|
+
Error: {
|
|
1737
|
+
error: string;
|
|
1738
|
+
};
|
|
1739
|
+
/** Event */
|
|
1740
|
+
Event: {
|
|
1741
|
+
category: "Deployment" | "Event";
|
|
1742
|
+
deploymentId: string;
|
|
1743
|
+
type: string;
|
|
1744
|
+
message: string;
|
|
1745
|
+
tx?: string;
|
|
1746
|
+
/** Format: date-time */
|
|
1747
|
+
created_at: string;
|
|
1748
|
+
};
|
|
1749
|
+
/** Job */
|
|
1750
|
+
Job: {
|
|
1751
|
+
tx: string;
|
|
1752
|
+
job: string;
|
|
1753
|
+
deployment: string;
|
|
1754
|
+
market: string;
|
|
1755
|
+
revision: number;
|
|
1756
|
+
state: "QUEUED" | "RUNNING" | "COMPLETED" | "STOPPED";
|
|
1757
|
+
time_start: number;
|
|
1758
|
+
/** Format: date-time */
|
|
1759
|
+
created_at: string;
|
|
1760
|
+
/** Format: date-time */
|
|
1761
|
+
updated_at: string;
|
|
1762
|
+
};
|
|
1763
|
+
/** PublicKey */
|
|
1764
|
+
PublicKey: string;
|
|
1765
|
+
/** Task */
|
|
1766
|
+
Task: {
|
|
1767
|
+
task: "LIST" | "EXTEND" | "STOP";
|
|
1768
|
+
deploymentId: string;
|
|
1769
|
+
tx?: string;
|
|
1770
|
+
job?: string;
|
|
1771
|
+
limit?: number;
|
|
1772
|
+
active_revision?: number;
|
|
1773
|
+
/** Format: date-time */
|
|
1774
|
+
due_at: string;
|
|
1775
|
+
/** Format: date-time */
|
|
1776
|
+
created_at: string;
|
|
1777
|
+
};
|
|
1778
|
+
/** Vault */
|
|
1779
|
+
Vault: {
|
|
1780
|
+
vault: string;
|
|
1781
|
+
owner: string;
|
|
1782
|
+
/** Format: date-time */
|
|
1783
|
+
created_at: string;
|
|
1784
|
+
};
|
|
1785
|
+
/** Vaults */
|
|
1786
|
+
Vaults: {
|
|
1787
|
+
vault: string;
|
|
1788
|
+
owner: string;
|
|
1789
|
+
/** Format: date-time */
|
|
1790
|
+
created_at: string;
|
|
1791
|
+
}[];
|
|
1792
|
+
/** Revision */
|
|
1793
|
+
Revision: {
|
|
1794
|
+
revision: number;
|
|
1795
|
+
deployment: string;
|
|
1796
|
+
ipfs_definition_hash: string;
|
|
1797
|
+
job_definition: components["schemas"]["JobDefinition"];
|
|
1798
|
+
/** Format: date-time */
|
|
1799
|
+
created_at: string;
|
|
1800
|
+
};
|
|
1801
|
+
/** JobDefinition */
|
|
1802
|
+
JobDefinition: {
|
|
1803
|
+
/** @enum {string} */
|
|
1804
|
+
version: "0.1";
|
|
1805
|
+
/** @enum {string} */
|
|
1806
|
+
type: "container";
|
|
1807
|
+
logistics?: {
|
|
1808
|
+
send: {
|
|
1809
|
+
/**
|
|
1810
|
+
* @description api - we receive and send via an endpoint endpoint
|
|
1811
|
+
* api-listen - we create an endpoint to listen for incoming requests
|
|
1812
|
+
* @enum {string}
|
|
1813
|
+
*/
|
|
1814
|
+
type: "api" | "api-listen";
|
|
1815
|
+
/** @description Make all properties in T optional */
|
|
1816
|
+
args: {
|
|
1817
|
+
endpoint?: string;
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
receive: {
|
|
1821
|
+
/**
|
|
1822
|
+
* @description api - we receive and send via an endpoint endpoint
|
|
1823
|
+
* api-listen - we create an endpoint to listen for incoming requests
|
|
1824
|
+
* @enum {string}
|
|
1825
|
+
*/
|
|
1826
|
+
type: "api" | "api-listen";
|
|
1827
|
+
/** @description Make all properties in T optional */
|
|
1828
|
+
args: {
|
|
1829
|
+
endpoint?: string;
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
deployment_id?: string;
|
|
1834
|
+
meta?: {
|
|
1835
|
+
trigger?: string;
|
|
1836
|
+
/** @description Construct a type with a set of properties K of type T */
|
|
1837
|
+
system_resources?: {
|
|
1838
|
+
[key: string]: string | number;
|
|
1839
|
+
};
|
|
1840
|
+
} & {
|
|
1841
|
+
[key: string]: string | number | (string | number)[] | {
|
|
1842
|
+
[key: string]: string | number | (string | number)[];
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
global?: {
|
|
1846
|
+
image?: string;
|
|
1847
|
+
gpu?: boolean;
|
|
1848
|
+
entrypoint?: string | string[];
|
|
1849
|
+
env?: {
|
|
1850
|
+
[key: string]: string;
|
|
1851
|
+
};
|
|
1852
|
+
work_dir?: string;
|
|
1853
|
+
variables?: {
|
|
1854
|
+
[key: string]: string;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
ops: {
|
|
1858
|
+
/** @enum {string} */
|
|
1859
|
+
type: "container/run" | "container/create-volume";
|
|
1860
|
+
id: string;
|
|
1861
|
+
args: {
|
|
1862
|
+
image: string;
|
|
1863
|
+
aliases?: string | string[];
|
|
1864
|
+
cmd?: string | string[];
|
|
1865
|
+
volumes?: {
|
|
1866
|
+
name: string;
|
|
1867
|
+
dest: string;
|
|
1868
|
+
}[];
|
|
1869
|
+
expose?: number | string | {
|
|
1870
|
+
__spread__: string;
|
|
1871
|
+
chunked?: boolean;
|
|
1872
|
+
} | {
|
|
1873
|
+
port: number;
|
|
1874
|
+
/** @enum {string} */
|
|
1875
|
+
type?: "api" | "web" | "websocket" | "webapi" | "none";
|
|
1876
|
+
health_checks?: ({
|
|
1877
|
+
/** @enum {string} */
|
|
1878
|
+
type: "http";
|
|
1879
|
+
path: string;
|
|
1880
|
+
/** @enum {string} */
|
|
1881
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1882
|
+
expected_status: number;
|
|
1883
|
+
/** @description Construct a type with a set of properties K of type T */
|
|
1884
|
+
headers?: {
|
|
1885
|
+
[key: string]: string;
|
|
1886
|
+
};
|
|
1887
|
+
body?: unknown;
|
|
1888
|
+
continuous: boolean;
|
|
1889
|
+
} | {
|
|
1890
|
+
/** @enum {string} */
|
|
1891
|
+
type: "websocket";
|
|
1892
|
+
expected_response: string;
|
|
1893
|
+
continuous: boolean;
|
|
1894
|
+
})[];
|
|
1895
|
+
} | (number | string | {
|
|
1896
|
+
__spread__: string;
|
|
1897
|
+
chunked?: boolean;
|
|
1898
|
+
} | {
|
|
1899
|
+
port: number;
|
|
1900
|
+
/** @enum {string} */
|
|
1901
|
+
type?: "api" | "web" | "websocket" | "webapi" | "none";
|
|
1902
|
+
health_checks?: ({
|
|
1903
|
+
/** @enum {string} */
|
|
1904
|
+
type: "http";
|
|
1905
|
+
path: string;
|
|
1906
|
+
/** @enum {string} */
|
|
1907
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1908
|
+
expected_status: number;
|
|
1909
|
+
/** @description Construct a type with a set of properties K of type T */
|
|
1910
|
+
headers?: {
|
|
1911
|
+
[key: string]: string;
|
|
1912
|
+
};
|
|
1913
|
+
body?: unknown;
|
|
1914
|
+
continuous: boolean;
|
|
1915
|
+
} | {
|
|
1916
|
+
/** @enum {string} */
|
|
1917
|
+
type: "websocket";
|
|
1918
|
+
expected_response: string;
|
|
1919
|
+
continuous: boolean;
|
|
1920
|
+
})[];
|
|
1921
|
+
})[];
|
|
1922
|
+
gpu?: boolean;
|
|
1923
|
+
work_dir?: string;
|
|
1924
|
+
entrypoint?: string | string[];
|
|
1925
|
+
env?: {
|
|
1926
|
+
[key: string]: string;
|
|
1927
|
+
};
|
|
1928
|
+
restart_policy?: {
|
|
1929
|
+
/** @enum {string} */
|
|
1930
|
+
policy: "on-failure";
|
|
1931
|
+
restart_tries?: number;
|
|
1932
|
+
} | ("on-failure" | "no" | "always" | "unless-stopped");
|
|
1933
|
+
private?: boolean;
|
|
1934
|
+
resources?: ({
|
|
1935
|
+
__spread__: string;
|
|
1936
|
+
chunked?: boolean;
|
|
1937
|
+
} | {
|
|
1938
|
+
/** @enum {string} */
|
|
1939
|
+
type: "S3";
|
|
1940
|
+
target: string;
|
|
1941
|
+
url?: string;
|
|
1942
|
+
allowWrite?: boolean;
|
|
1943
|
+
files?: string[];
|
|
1944
|
+
IAM?: {
|
|
1945
|
+
REGION: string;
|
|
1946
|
+
ACCESS_KEY_ID: string;
|
|
1947
|
+
SECRET_ACCESS_KEY: string;
|
|
1948
|
+
};
|
|
1949
|
+
} | {
|
|
1950
|
+
/** @enum {string} */
|
|
1951
|
+
type: "S3";
|
|
1952
|
+
target: string;
|
|
1953
|
+
bucket: string;
|
|
1954
|
+
url?: string;
|
|
1955
|
+
allowWrite?: boolean;
|
|
1956
|
+
IAM?: {
|
|
1957
|
+
REGION: string;
|
|
1958
|
+
ACCESS_KEY_ID: string;
|
|
1959
|
+
SECRET_ACCESS_KEY: string;
|
|
1960
|
+
};
|
|
1961
|
+
} | {
|
|
1962
|
+
/** @enum {string} */
|
|
1963
|
+
type: "S3";
|
|
1964
|
+
target: string;
|
|
1965
|
+
buckets: {
|
|
1966
|
+
url: string;
|
|
1967
|
+
files?: string[];
|
|
1968
|
+
}[];
|
|
1969
|
+
url?: string;
|
|
1970
|
+
allowWrite?: boolean;
|
|
1971
|
+
IAM?: {
|
|
1972
|
+
REGION: string;
|
|
1973
|
+
ACCESS_KEY_ID: string;
|
|
1974
|
+
SECRET_ACCESS_KEY: string;
|
|
1975
|
+
};
|
|
1976
|
+
} | {
|
|
1977
|
+
/** @enum {string} */
|
|
1978
|
+
type: "HF";
|
|
1979
|
+
target: string;
|
|
1980
|
+
repo: string;
|
|
1981
|
+
revision?: string;
|
|
1982
|
+
files?: string[];
|
|
1983
|
+
accessToken?: string;
|
|
1984
|
+
} | {
|
|
1985
|
+
/** @enum {string} */
|
|
1986
|
+
type: "Ollama";
|
|
1987
|
+
model: string;
|
|
1988
|
+
target?: string;
|
|
1989
|
+
} | "__remove-if-empty__")[];
|
|
1990
|
+
authentication?: {
|
|
1991
|
+
docker?: {
|
|
1992
|
+
username?: string;
|
|
1993
|
+
password?: string;
|
|
1994
|
+
email?: string;
|
|
1995
|
+
server?: string;
|
|
1996
|
+
};
|
|
1997
|
+
};
|
|
1998
|
+
} | {
|
|
1999
|
+
name: string;
|
|
2000
|
+
};
|
|
2001
|
+
results?: {
|
|
2002
|
+
[key: string]: string | {
|
|
2003
|
+
regex: string;
|
|
2004
|
+
logType: ("stdin" | "stdout" | "stderr" | "nodeerr")[];
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
2007
|
+
execution?: {
|
|
2008
|
+
group?: string;
|
|
2009
|
+
depends_on: string[];
|
|
2010
|
+
stop_if_dependent_stops?: boolean;
|
|
2011
|
+
} | {
|
|
2012
|
+
group?: string;
|
|
2013
|
+
};
|
|
2014
|
+
}[];
|
|
2015
|
+
};
|
|
2016
|
+
/** JobResults */
|
|
2017
|
+
JobResults: {
|
|
2018
|
+
status: string;
|
|
2019
|
+
startTime: number;
|
|
2020
|
+
endTime: number | null;
|
|
2021
|
+
errors?: unknown[];
|
|
2022
|
+
opStates: {
|
|
2023
|
+
providerId: string | null;
|
|
2024
|
+
operationId: string | null;
|
|
2025
|
+
group: string | null;
|
|
2026
|
+
status: string | null;
|
|
2027
|
+
startTime: number | null;
|
|
2028
|
+
endTime: number | null;
|
|
2029
|
+
exitCode: number | null;
|
|
2030
|
+
logs: {
|
|
2031
|
+
/** @enum {string} */
|
|
2032
|
+
type: "stdin" | "stdout" | "stderr" | "nodeerr";
|
|
2033
|
+
log?: string;
|
|
2034
|
+
timestamp?: string;
|
|
2035
|
+
}[];
|
|
2036
|
+
results?: {
|
|
2037
|
+
[key: string]: string | string[];
|
|
2038
|
+
};
|
|
2039
|
+
error?: {
|
|
2040
|
+
event: string;
|
|
2041
|
+
message: string;
|
|
2042
|
+
code?: number;
|
|
2043
|
+
};
|
|
2044
|
+
diagnostics: {
|
|
2045
|
+
reason: {
|
|
2046
|
+
hostShutDown: boolean;
|
|
2047
|
+
jobStopped: boolean;
|
|
2048
|
+
jobExpired: boolean;
|
|
2049
|
+
reason?: string;
|
|
2050
|
+
};
|
|
2051
|
+
state?: {
|
|
2052
|
+
Status: string;
|
|
2053
|
+
Running: boolean;
|
|
2054
|
+
Paused: boolean;
|
|
2055
|
+
Restarting: boolean;
|
|
2056
|
+
OOMKilled: boolean;
|
|
2057
|
+
Dead: boolean;
|
|
2058
|
+
Pid: number;
|
|
2059
|
+
ExitCode: number;
|
|
2060
|
+
Error: string;
|
|
2061
|
+
StartedAt: string;
|
|
2062
|
+
FinishedAt: string;
|
|
2063
|
+
Health?: {
|
|
2064
|
+
Status: string;
|
|
2065
|
+
FailingStreak: number;
|
|
2066
|
+
Log: {
|
|
2067
|
+
Start: string;
|
|
2068
|
+
End: string;
|
|
2069
|
+
ExitCode: number;
|
|
2070
|
+
Output: string;
|
|
2071
|
+
}[] | null;
|
|
2072
|
+
};
|
|
2073
|
+
RestartCount: number;
|
|
2074
|
+
};
|
|
2075
|
+
};
|
|
2076
|
+
}[];
|
|
2077
|
+
secrets?: {
|
|
2078
|
+
/** @enum {string} */
|
|
2079
|
+
urlmode?: "private" | "public";
|
|
2080
|
+
} & {
|
|
2081
|
+
[key: string]: {
|
|
2082
|
+
[key: string]: {
|
|
2083
|
+
opID: string;
|
|
2084
|
+
port: string | number;
|
|
2085
|
+
url: string;
|
|
2086
|
+
/** @enum {string} */
|
|
2087
|
+
status: "ONLINE" | "OFFLINE" | "UNKNOWN";
|
|
2088
|
+
};
|
|
2089
|
+
} | ("private" | "public");
|
|
2090
|
+
};
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
2093
|
+
responses: never;
|
|
2094
|
+
parameters: never;
|
|
2095
|
+
requestBodies: never;
|
|
2096
|
+
headers: never;
|
|
2097
|
+
pathItems: never;
|
|
2098
|
+
}
|
|
2099
|
+
export type $defs = Record<string, never>;
|
|
2100
|
+
export type operations = Record<string, never>;
|