@blaxel/core 0.2.49-dev.213 → 0.2.49-dev1
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/agents/index.d.ts +15 -0
- package/dist/agents/index.js +109 -0
- package/dist/authentication/apikey.d.ts +10 -0
- package/dist/authentication/apikey.js +24 -0
- package/dist/authentication/clientcredentials.d.ts +17 -0
- package/dist/authentication/clientcredentials.js +85 -0
- package/dist/authentication/credentials.d.ts +6 -0
- package/dist/authentication/credentials.js +17 -0
- package/dist/authentication/deviceMode.d.ts +15 -0
- package/dist/authentication/deviceMode.js +70 -0
- package/dist/authentication/index.d.ts +3 -0
- package/dist/authentication/index.js +62 -0
- package/dist/authentication/types.d.ts +9 -0
- package/dist/authentication/types.js +2 -0
- package/dist/cache/index.d.ts +1 -0
- package/dist/cache/index.js +26 -0
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/agents/index.js +2 -2
- package/dist/cjs/authentication/clientcredentials.js +1 -4
- package/dist/cjs/client/responseInterceptor.js +53 -0
- package/dist/cjs/client/sdk.gen.js +143 -3
- package/dist/cjs/common/autoload.js +7 -0
- package/dist/cjs/common/env.js +3 -0
- package/dist/cjs/common/internal.js +0 -40
- package/dist/cjs/common/settings.js +2 -5
- package/dist/cjs/common/version.js +6 -0
- package/dist/cjs/common/webhook.js +101 -0
- package/dist/cjs/jobs/executions.js +119 -0
- package/dist/cjs/jobs/jobs.js +2 -2
- package/dist/cjs/sandbox/action.js +2 -1
- package/dist/cjs/sandbox/index.js +1 -0
- package/dist/cjs/sandbox/interpreter.js +400 -0
- package/dist/cjs/sandbox/sandbox.js +10 -67
- package/dist/cjs/tools/mcpTool.js +2 -6
- package/dist/cjs/types/client/responseInterceptor.d.ts +12 -0
- package/dist/cjs/types/client/sdk.gen.d.ts +41 -1
- package/dist/cjs/types/client/types.gen.d.ts +599 -16
- package/dist/cjs/types/common/internal.d.ts +0 -2
- package/dist/cjs/types/common/settings.d.ts +0 -1
- package/dist/cjs/types/common/version.d.ts +2 -0
- package/dist/cjs/types/common/webhook.d.ts +89 -0
- package/dist/cjs/types/jobs/executions.d.ts +42 -0
- package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +1 -1
- package/dist/cjs/types/sandbox/index.d.ts +1 -0
- package/dist/cjs/types/sandbox/interpreter.d.ts +71 -0
- package/dist/cjs/types/sandbox/sandbox.d.ts +6 -12
- package/dist/cjs/types/sandbox/types.d.ts +0 -3
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/agents/index.js +2 -2
- package/dist/cjs-browser/authentication/clientcredentials.js +1 -4
- package/dist/cjs-browser/client/responseInterceptor.js +53 -0
- package/dist/cjs-browser/client/sdk.gen.js +143 -3
- package/dist/cjs-browser/common/autoload.js +7 -0
- package/dist/cjs-browser/common/env.js +3 -0
- package/dist/cjs-browser/common/internal.js +0 -40
- package/dist/cjs-browser/common/settings.js +2 -5
- package/dist/cjs-browser/common/version.js +6 -0
- package/dist/cjs-browser/common/webhook.js +101 -0
- package/dist/cjs-browser/jobs/executions.js +119 -0
- package/dist/cjs-browser/jobs/jobs.js +2 -2
- package/dist/cjs-browser/sandbox/action.js +2 -1
- package/dist/cjs-browser/sandbox/index.js +1 -0
- package/dist/cjs-browser/sandbox/interpreter.js +400 -0
- package/dist/cjs-browser/sandbox/sandbox.js +10 -67
- package/dist/cjs-browser/tools/mcpTool.js +2 -6
- package/dist/cjs-browser/types/client/responseInterceptor.d.ts +12 -0
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +41 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +599 -16
- package/dist/cjs-browser/types/common/internal.d.ts +0 -2
- package/dist/cjs-browser/types/common/settings.d.ts +0 -1
- package/dist/cjs-browser/types/common/version.d.ts +2 -0
- package/dist/cjs-browser/types/common/webhook.d.ts +89 -0
- package/dist/cjs-browser/types/jobs/executions.d.ts +42 -0
- package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +1 -1
- package/dist/cjs-browser/types/sandbox/index.d.ts +1 -0
- package/dist/cjs-browser/types/sandbox/interpreter.d.ts +71 -0
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +6 -12
- package/dist/cjs-browser/types/sandbox/types.d.ts +0 -3
- package/dist/client/authentication.d.ts +25 -0
- package/dist/client/authentication.js +15 -0
- package/dist/client/client.d.ts +2 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/{cjs/sandbox/websocket/index.js → client/client.js} +1 -1
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +19 -0
- package/dist/client/interceptors.d.ts +3 -0
- package/dist/client/interceptors.js +17 -0
- package/dist/client/sdk.gen.d.ts +499 -0
- package/dist/client/sdk.gen.js +1751 -0
- package/dist/client/types.gen.d.ts +4546 -0
- package/dist/client/types.gen.js +4 -0
- package/dist/common/autoload.d.ts +3 -0
- package/dist/common/autoload.js +27 -0
- package/dist/common/env.d.ts +5 -0
- package/dist/common/env.js +42 -0
- package/dist/common/errors.d.ts +1 -0
- package/dist/common/errors.js +17 -0
- package/dist/common/internal.d.ts +4 -0
- package/dist/common/internal.js +188 -0
- package/dist/common/internal.test.d.ts +1 -0
- package/dist/common/internal.test.js +39 -0
- package/dist/common/logger.d.ts +25 -0
- package/dist/common/logger.js +69 -0
- package/dist/common/node.d.ts +5 -0
- package/dist/common/node.js +26 -0
- package/dist/common/settings.d.ts +31 -0
- package/dist/common/settings.js +170 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/agents/index.js +3 -3
- package/dist/esm/authentication/clientcredentials.js +1 -4
- package/dist/esm/client/responseInterceptor.js +49 -0
- package/dist/esm/client/sdk.gen.js +132 -0
- package/dist/esm/common/autoload.js +7 -0
- package/dist/esm/common/env.js +3 -0
- package/dist/esm/common/internal.js +0 -38
- package/dist/esm/common/settings.js +2 -5
- package/dist/esm/common/version.js +3 -0
- package/dist/esm/common/webhook.js +97 -0
- package/dist/esm/jobs/executions.js +114 -0
- package/dist/esm/jobs/jobs.js +3 -3
- package/dist/esm/sandbox/action.js +3 -2
- package/dist/esm/sandbox/index.js +1 -0
- package/dist/esm/sandbox/interpreter.js +396 -0
- package/dist/esm/sandbox/sandbox.js +10 -67
- package/dist/esm/tools/mcpTool.js +3 -7
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/agents/index.js +3 -3
- package/dist/esm-browser/authentication/clientcredentials.js +1 -4
- package/dist/esm-browser/client/responseInterceptor.js +49 -0
- package/dist/esm-browser/client/sdk.gen.js +132 -0
- package/dist/esm-browser/common/autoload.js +7 -0
- package/dist/esm-browser/common/env.js +3 -0
- package/dist/esm-browser/common/internal.js +0 -38
- package/dist/esm-browser/common/settings.js +2 -5
- package/dist/esm-browser/common/version.js +3 -0
- package/dist/esm-browser/common/webhook.js +97 -0
- package/dist/esm-browser/jobs/executions.js +114 -0
- package/dist/esm-browser/jobs/jobs.js +3 -3
- package/dist/esm-browser/sandbox/action.js +3 -2
- package/dist/esm-browser/sandbox/index.js +1 -0
- package/dist/esm-browser/sandbox/interpreter.js +396 -0
- package/dist/esm-browser/sandbox/sandbox.js +10 -67
- package/dist/esm-browser/tools/mcpTool.js +3 -7
- package/dist/index.browser.test.d.ts +1 -0
- package/dist/index.browser.test.js +45 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +33 -0
- package/dist/jobs/index.d.ts +3 -0
- package/dist/jobs/index.js +19 -0
- package/dist/jobs/jobs.d.ts +13 -0
- package/dist/jobs/jobs.js +90 -0
- package/dist/jobs/start.d.ts +1 -0
- package/dist/jobs/start.js +66 -0
- package/dist/jobs/types.d.ts +3 -0
- package/dist/jobs/types.js +2 -0
- package/dist/mcp/client.d.ts +28 -0
- package/dist/mcp/client.js +247 -0
- package/dist/{cjs-browser/types/sandbox/websocket → mcp}/index.d.ts +1 -0
- package/dist/{cjs-browser/sandbox/websocket → mcp}/index.js +1 -0
- package/dist/mcp/server.d.ts +24 -0
- package/dist/mcp/server.js +213 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +31 -0
- package/dist/sandbox/action.d.ts +19 -0
- package/dist/sandbox/action.js +84 -0
- package/dist/sandbox/client/client.gen.d.ts +12 -0
- package/dist/sandbox/client/client.gen.js +6 -0
- package/dist/sandbox/client/index.d.ts +2 -0
- package/dist/sandbox/client/index.js +19 -0
- package/dist/sandbox/client/sdk.gen.d.ts +101 -0
- package/dist/sandbox/client/sdk.gen.js +289 -0
- package/dist/sandbox/client/types.gen.d.ts +578 -0
- package/dist/sandbox/client/types.gen.js +3 -0
- package/dist/{cjs/types/sandbox/filesystem/filesystem-ws.d.ts → sandbox/filesystem/filesystem.d.ts} +6 -18
- package/dist/sandbox/filesystem/filesystem.js +276 -0
- package/dist/sandbox/filesystem/index.d.ts +2 -0
- package/dist/sandbox/filesystem/index.js +18 -0
- package/dist/sandbox/filesystem/types.d.ts +15 -0
- package/dist/sandbox/filesystem/types.js +2 -0
- package/dist/sandbox/index.d.ts +4 -0
- package/dist/sandbox/index.js +36 -0
- package/dist/sandbox/network/index.d.ts +1 -0
- package/dist/sandbox/network/index.js +17 -0
- package/dist/sandbox/network/network.d.ts +5 -0
- package/dist/sandbox/network/network.js +10 -0
- package/dist/sandbox/preview.d.ts +37 -0
- package/dist/sandbox/preview.js +148 -0
- package/dist/sandbox/process/index.d.ts +1 -0
- package/dist/sandbox/process/index.js +17 -0
- package/dist/sandbox/process/process.d.ts +24 -0
- package/dist/sandbox/process/process.js +189 -0
- package/dist/sandbox/sandbox.d.ts +33 -0
- package/dist/sandbox/sandbox.js +178 -0
- package/dist/sandbox/session.d.ts +27 -0
- package/dist/sandbox/session.js +123 -0
- package/dist/sandbox/types.d.ts +51 -0
- package/dist/sandbox/types.js +81 -0
- package/dist/telemetry/telemetry.d.ts +62 -0
- package/dist/telemetry/telemetry.js +80 -0
- package/dist/tools/index.d.ts +11 -0
- package/dist/tools/index.js +52 -0
- package/dist/tools/mcpTool.d.ts +28 -0
- package/dist/tools/mcpTool.js +218 -0
- package/dist/tools/types.d.ts +8 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/zodSchema.d.ts +9 -0
- package/dist/tools/zodSchema.js +50 -0
- package/dist/volume/index.d.ts +23 -0
- package/dist/volume/index.js +113 -0
- package/package.json +2 -2
- package/dist/cjs/sandbox/codegen/codegen-ws.js +0 -30
- package/dist/cjs/sandbox/filesystem/filesystem-ws.js +0 -106
- package/dist/cjs/sandbox/network/network-ws.js +0 -12
- package/dist/cjs/sandbox/process/process-ws.js +0 -139
- package/dist/cjs/sandbox/websocket/client.js +0 -269
- package/dist/cjs/types/sandbox/codegen/codegen-ws.d.ts +0 -10
- package/dist/cjs/types/sandbox/network/network-ws.d.ts +0 -7
- package/dist/cjs/types/sandbox/process/process-ws.d.ts +0 -27
- package/dist/cjs/types/sandbox/websocket/client.d.ts +0 -48
- package/dist/cjs/types/sandbox/websocket/index.d.ts +0 -1
- package/dist/cjs-browser/sandbox/codegen/codegen-ws.js +0 -30
- package/dist/cjs-browser/sandbox/filesystem/filesystem-ws.js +0 -106
- package/dist/cjs-browser/sandbox/network/network-ws.js +0 -12
- package/dist/cjs-browser/sandbox/process/process-ws.js +0 -139
- package/dist/cjs-browser/sandbox/websocket/client.js +0 -269
- package/dist/cjs-browser/types/sandbox/codegen/codegen-ws.d.ts +0 -10
- package/dist/cjs-browser/types/sandbox/filesystem/filesystem-ws.d.ts +0 -35
- package/dist/cjs-browser/types/sandbox/network/network-ws.d.ts +0 -7
- package/dist/cjs-browser/types/sandbox/process/process-ws.d.ts +0 -27
- package/dist/cjs-browser/types/sandbox/websocket/client.d.ts +0 -48
- package/dist/esm/sandbox/codegen/codegen-ws.js +0 -26
- package/dist/esm/sandbox/filesystem/filesystem-ws.js +0 -102
- package/dist/esm/sandbox/network/network-ws.js +0 -8
- package/dist/esm/sandbox/process/process-ws.js +0 -135
- package/dist/esm/sandbox/websocket/client.js +0 -265
- package/dist/esm/sandbox/websocket/index.js +0 -1
- package/dist/esm-browser/sandbox/codegen/codegen-ws.js +0 -26
- package/dist/esm-browser/sandbox/filesystem/filesystem-ws.js +0 -102
- package/dist/esm-browser/sandbox/network/network-ws.js +0 -8
- package/dist/esm-browser/sandbox/process/process-ws.js +0 -135
- package/dist/esm-browser/sandbox/websocket/client.js +0 -265
- package/dist/esm-browser/sandbox/websocket/index.js +0 -1
|
@@ -201,6 +201,60 @@ export type Country = {
|
|
|
201
201
|
*/
|
|
202
202
|
name?: string;
|
|
203
203
|
};
|
|
204
|
+
/**
|
|
205
|
+
* Request to create a job execution
|
|
206
|
+
*/
|
|
207
|
+
export type CreateJobExecutionRequest = {
|
|
208
|
+
/**
|
|
209
|
+
* Execution ID (optional, will be generated if not provided)
|
|
210
|
+
*/
|
|
211
|
+
executionId?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Unique message ID
|
|
214
|
+
*/
|
|
215
|
+
id?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Job ID
|
|
218
|
+
*/
|
|
219
|
+
jobId?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Array of task parameters for parallel execution
|
|
222
|
+
*/
|
|
223
|
+
tasks?: Array<{
|
|
224
|
+
[key: string]: unknown;
|
|
225
|
+
}>;
|
|
226
|
+
/**
|
|
227
|
+
* Workspace ID
|
|
228
|
+
*/
|
|
229
|
+
workspaceId?: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Response for creating a job execution
|
|
233
|
+
*/
|
|
234
|
+
export type CreateJobExecutionResponse = {
|
|
235
|
+
/**
|
|
236
|
+
* Execution ID
|
|
237
|
+
*/
|
|
238
|
+
executionId?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Unique message ID
|
|
241
|
+
*/
|
|
242
|
+
id?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Job ID
|
|
245
|
+
*/
|
|
246
|
+
jobId?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Array of task parameters for parallel execution
|
|
249
|
+
*/
|
|
250
|
+
tasks?: Array<{
|
|
251
|
+
[key: string]: unknown;
|
|
252
|
+
}>;
|
|
253
|
+
/**
|
|
254
|
+
* Workspace ID
|
|
255
|
+
*/
|
|
256
|
+
workspaceId?: string;
|
|
257
|
+
};
|
|
204
258
|
/**
|
|
205
259
|
* Custom domain for preview deployments
|
|
206
260
|
* The custom domain represents a base domain (e.g., example.com) that will be used
|
|
@@ -360,10 +414,6 @@ export type FunctionSpec = CoreSpec & {
|
|
|
360
414
|
* Function description, very important for the agent function to work with an LLM
|
|
361
415
|
*/
|
|
362
416
|
description?: string;
|
|
363
|
-
/**
|
|
364
|
-
* Transport compatibility for the MCP, can be "websocket" or "http-stream"
|
|
365
|
-
*/
|
|
366
|
-
transport?: string;
|
|
367
417
|
triggers?: Triggers;
|
|
368
418
|
};
|
|
369
419
|
/**
|
|
@@ -404,6 +454,68 @@ export type HistogramStats = {
|
|
|
404
454
|
*/
|
|
405
455
|
p99?: number;
|
|
406
456
|
};
|
|
457
|
+
export type Image = {
|
|
458
|
+
metadata?: ImageMetadata;
|
|
459
|
+
spec?: ImageSpec;
|
|
460
|
+
};
|
|
461
|
+
export type ImageMetadata = {
|
|
462
|
+
/**
|
|
463
|
+
* The date and time when the image was created.
|
|
464
|
+
*/
|
|
465
|
+
createdAt?: string;
|
|
466
|
+
/**
|
|
467
|
+
* The display name of the image (registry/workspace/repository).
|
|
468
|
+
*/
|
|
469
|
+
displayName?: string;
|
|
470
|
+
/**
|
|
471
|
+
* The date and time when the image was last deployed (most recent across all tags).
|
|
472
|
+
*/
|
|
473
|
+
lastDeployedAt?: string;
|
|
474
|
+
/**
|
|
475
|
+
* The name of the image (repository name).
|
|
476
|
+
*/
|
|
477
|
+
name?: string;
|
|
478
|
+
/**
|
|
479
|
+
* The resource type of the image.
|
|
480
|
+
*/
|
|
481
|
+
resourceType?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The date and time when the image was last updated.
|
|
484
|
+
*/
|
|
485
|
+
updatedAt?: string;
|
|
486
|
+
/**
|
|
487
|
+
* The workspace of the image.
|
|
488
|
+
*/
|
|
489
|
+
workspace?: string;
|
|
490
|
+
};
|
|
491
|
+
export type ImageSpec = {
|
|
492
|
+
/**
|
|
493
|
+
* The size of the image in bytes.
|
|
494
|
+
*/
|
|
495
|
+
size?: number;
|
|
496
|
+
/**
|
|
497
|
+
* List of tags available for this image.
|
|
498
|
+
*/
|
|
499
|
+
tags?: Array<ImageTag>;
|
|
500
|
+
};
|
|
501
|
+
export type ImageTag = {
|
|
502
|
+
/**
|
|
503
|
+
* The date and time when the tag was created.
|
|
504
|
+
*/
|
|
505
|
+
createdAt?: string;
|
|
506
|
+
/**
|
|
507
|
+
* The name of the tag.
|
|
508
|
+
*/
|
|
509
|
+
name?: string;
|
|
510
|
+
/**
|
|
511
|
+
* The size of the image in bytes.
|
|
512
|
+
*/
|
|
513
|
+
size?: number;
|
|
514
|
+
/**
|
|
515
|
+
* The date and time when the tag was last updated.
|
|
516
|
+
*/
|
|
517
|
+
updatedAt?: string;
|
|
518
|
+
};
|
|
407
519
|
/**
|
|
408
520
|
* Integration
|
|
409
521
|
*/
|
|
@@ -636,6 +748,19 @@ export type Job = {
|
|
|
636
748
|
*/
|
|
637
749
|
status?: string;
|
|
638
750
|
};
|
|
751
|
+
/**
|
|
752
|
+
* Job execution
|
|
753
|
+
*/
|
|
754
|
+
export type JobExecution = {
|
|
755
|
+
metadata?: JobExecutionMetadata;
|
|
756
|
+
spec?: JobExecutionSpec;
|
|
757
|
+
stats?: JobExecutionStats;
|
|
758
|
+
status?: JobExecutionStatus;
|
|
759
|
+
/**
|
|
760
|
+
* List of execution tasks
|
|
761
|
+
*/
|
|
762
|
+
tasks?: Array<JobExecutionTask>;
|
|
763
|
+
};
|
|
639
764
|
/**
|
|
640
765
|
* Configuration for a job execution
|
|
641
766
|
*/
|
|
@@ -653,6 +778,188 @@ export type JobExecutionConfig = {
|
|
|
653
778
|
*/
|
|
654
779
|
timeout?: number;
|
|
655
780
|
};
|
|
781
|
+
/**
|
|
782
|
+
* Job execution metadata
|
|
783
|
+
*/
|
|
784
|
+
export type JobExecutionMetadata = {
|
|
785
|
+
/**
|
|
786
|
+
* Cluster ID
|
|
787
|
+
*/
|
|
788
|
+
cluster?: string;
|
|
789
|
+
/**
|
|
790
|
+
* Completion timestamp
|
|
791
|
+
*/
|
|
792
|
+
completedAt?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Creation timestamp
|
|
795
|
+
*/
|
|
796
|
+
createdAt?: string;
|
|
797
|
+
/**
|
|
798
|
+
* Deletion timestamp
|
|
799
|
+
*/
|
|
800
|
+
deletedAt?: string;
|
|
801
|
+
/**
|
|
802
|
+
* Expiration timestamp
|
|
803
|
+
*/
|
|
804
|
+
expiredAt?: string;
|
|
805
|
+
/**
|
|
806
|
+
* Execution ID
|
|
807
|
+
*/
|
|
808
|
+
id?: string;
|
|
809
|
+
/**
|
|
810
|
+
* Job name
|
|
811
|
+
*/
|
|
812
|
+
job?: string;
|
|
813
|
+
/**
|
|
814
|
+
* Start timestamp
|
|
815
|
+
*/
|
|
816
|
+
startedAt?: string;
|
|
817
|
+
/**
|
|
818
|
+
* Last update timestamp
|
|
819
|
+
*/
|
|
820
|
+
updatedAt?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Workspace ID
|
|
823
|
+
*/
|
|
824
|
+
workspace?: string;
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* Job execution specification
|
|
828
|
+
*/
|
|
829
|
+
export type JobExecutionSpec = {
|
|
830
|
+
/**
|
|
831
|
+
* Number of parallel tasks
|
|
832
|
+
*/
|
|
833
|
+
parallelism?: number;
|
|
834
|
+
/**
|
|
835
|
+
* List of execution tasks
|
|
836
|
+
*/
|
|
837
|
+
tasks?: Array<JobExecutionTask>;
|
|
838
|
+
/**
|
|
839
|
+
* Job timeout in seconds (captured at execution creation time)
|
|
840
|
+
*/
|
|
841
|
+
timeout?: number;
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Job execution statistics
|
|
845
|
+
*/
|
|
846
|
+
export type JobExecutionStats = {
|
|
847
|
+
/**
|
|
848
|
+
* Number of cancelled tasks
|
|
849
|
+
*/
|
|
850
|
+
cancelled?: number;
|
|
851
|
+
/**
|
|
852
|
+
* Number of failed tasks
|
|
853
|
+
*/
|
|
854
|
+
failure?: number;
|
|
855
|
+
/**
|
|
856
|
+
* Number of retried tasks
|
|
857
|
+
*/
|
|
858
|
+
retried?: number;
|
|
859
|
+
/**
|
|
860
|
+
* Number of running tasks
|
|
861
|
+
*/
|
|
862
|
+
running?: number;
|
|
863
|
+
/**
|
|
864
|
+
* Number of successful tasks
|
|
865
|
+
*/
|
|
866
|
+
success?: number;
|
|
867
|
+
/**
|
|
868
|
+
* Total number of tasks
|
|
869
|
+
*/
|
|
870
|
+
total?: number;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* Job execution status
|
|
874
|
+
*/
|
|
875
|
+
export type JobExecutionStatus = string;
|
|
876
|
+
/**
|
|
877
|
+
* Job execution task
|
|
878
|
+
*/
|
|
879
|
+
export type JobExecutionTask = {
|
|
880
|
+
/**
|
|
881
|
+
* Task conditions
|
|
882
|
+
*/
|
|
883
|
+
conditions?: Array<JobExecutionTaskCondition>;
|
|
884
|
+
metadata?: JobExecutionTaskMetadata;
|
|
885
|
+
spec?: JobExecutionTaskSpec;
|
|
886
|
+
status?: JobExecutionTaskStatus;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* Job execution task condition
|
|
890
|
+
*/
|
|
891
|
+
export type JobExecutionTaskCondition = {
|
|
892
|
+
/**
|
|
893
|
+
* Execution reason
|
|
894
|
+
*/
|
|
895
|
+
executionReason?: string;
|
|
896
|
+
/**
|
|
897
|
+
* Condition message
|
|
898
|
+
*/
|
|
899
|
+
message?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Condition reason
|
|
902
|
+
*/
|
|
903
|
+
reason?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Condition severity
|
|
906
|
+
*/
|
|
907
|
+
severity?: string;
|
|
908
|
+
/**
|
|
909
|
+
* Condition state
|
|
910
|
+
*/
|
|
911
|
+
state?: string;
|
|
912
|
+
/**
|
|
913
|
+
* Condition type
|
|
914
|
+
*/
|
|
915
|
+
type?: string;
|
|
916
|
+
};
|
|
917
|
+
/**
|
|
918
|
+
* Job execution task metadata
|
|
919
|
+
*/
|
|
920
|
+
export type JobExecutionTaskMetadata = {
|
|
921
|
+
/**
|
|
922
|
+
* Completion timestamp
|
|
923
|
+
*/
|
|
924
|
+
completedAt?: string;
|
|
925
|
+
/**
|
|
926
|
+
* Creation timestamp
|
|
927
|
+
*/
|
|
928
|
+
createdAt?: string;
|
|
929
|
+
/**
|
|
930
|
+
* Task name
|
|
931
|
+
*/
|
|
932
|
+
name?: string;
|
|
933
|
+
/**
|
|
934
|
+
* Scheduled timestamp
|
|
935
|
+
*/
|
|
936
|
+
scheduledAt?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Start timestamp
|
|
939
|
+
*/
|
|
940
|
+
startedAt?: string;
|
|
941
|
+
/**
|
|
942
|
+
* Last update timestamp
|
|
943
|
+
*/
|
|
944
|
+
updatedAt?: string;
|
|
945
|
+
};
|
|
946
|
+
/**
|
|
947
|
+
* Job execution task specification
|
|
948
|
+
*/
|
|
949
|
+
export type JobExecutionTaskSpec = {
|
|
950
|
+
/**
|
|
951
|
+
* Maximum number of retries
|
|
952
|
+
*/
|
|
953
|
+
maxRetries?: number;
|
|
954
|
+
/**
|
|
955
|
+
* Task timeout duration
|
|
956
|
+
*/
|
|
957
|
+
timeout?: string;
|
|
958
|
+
};
|
|
959
|
+
/**
|
|
960
|
+
* Job execution task status
|
|
961
|
+
*/
|
|
962
|
+
export type JobExecutionTaskStatus = string;
|
|
656
963
|
/**
|
|
657
964
|
* Metrics for job
|
|
658
965
|
*/
|
|
@@ -702,6 +1009,10 @@ export type JobMetrics = {
|
|
|
702
1009
|
* Job specification
|
|
703
1010
|
*/
|
|
704
1011
|
export type JobSpec = CoreSpec & {
|
|
1012
|
+
/**
|
|
1013
|
+
* Region where the job should be created (e.g. us-was-1, eu-lon-1)
|
|
1014
|
+
*/
|
|
1015
|
+
region?: string;
|
|
705
1016
|
triggers?: Triggers;
|
|
706
1017
|
};
|
|
707
1018
|
/**
|
|
@@ -751,10 +1062,6 @@ export type JobsTotal = {
|
|
|
751
1062
|
* Failed executions
|
|
752
1063
|
*/
|
|
753
1064
|
failed?: number;
|
|
754
|
-
/**
|
|
755
|
-
* Retried executions
|
|
756
|
-
*/
|
|
757
|
-
retried?: number;
|
|
758
1065
|
/**
|
|
759
1066
|
* Running executions
|
|
760
1067
|
*/
|
|
@@ -904,6 +1211,10 @@ export type McpDefinition = TimeFields & {
|
|
|
904
1211
|
form?: {
|
|
905
1212
|
[key: string]: unknown;
|
|
906
1213
|
};
|
|
1214
|
+
/**
|
|
1215
|
+
* If the artifact is hidden
|
|
1216
|
+
*/
|
|
1217
|
+
hidden?: boolean;
|
|
907
1218
|
/**
|
|
908
1219
|
* Hidden secrets of the artifact
|
|
909
1220
|
*/
|
|
@@ -2007,10 +2318,6 @@ export type Runtime = {
|
|
|
2007
2318
|
*/
|
|
2008
2319
|
organization?: string;
|
|
2009
2320
|
ports?: Ports;
|
|
2010
|
-
/**
|
|
2011
|
-
* Enable snapshot feature on your deployment, default to true
|
|
2012
|
-
*/
|
|
2013
|
-
snapshotEnabled?: boolean;
|
|
2014
2321
|
/**
|
|
2015
2322
|
* The readiness probe. Should be a Kubernetes Probe type
|
|
2016
2323
|
*/
|
|
@@ -2021,6 +2328,10 @@ export type Runtime = {
|
|
|
2021
2328
|
* The timeout for the deployment in seconds
|
|
2022
2329
|
*/
|
|
2023
2330
|
timeout?: number;
|
|
2331
|
+
/**
|
|
2332
|
+
* The transport for the deployment, used by MCPs: "websocket" or "http-stream"
|
|
2333
|
+
*/
|
|
2334
|
+
transport?: string;
|
|
2024
2335
|
/**
|
|
2025
2336
|
* The TTL for the deployment in seconds - 30m, 24h, 7d
|
|
2026
2337
|
*/
|
|
@@ -2074,6 +2385,10 @@ export type SandboxDefinition = {
|
|
|
2074
2385
|
* If the definition is enterprise
|
|
2075
2386
|
*/
|
|
2076
2387
|
enterprise?: boolean;
|
|
2388
|
+
/**
|
|
2389
|
+
* If the definition is hidden
|
|
2390
|
+
*/
|
|
2391
|
+
hidden?: boolean;
|
|
2077
2392
|
/**
|
|
2078
2393
|
* Icon of the definition
|
|
2079
2394
|
*/
|
|
@@ -2095,6 +2410,10 @@ export type SandboxDefinition = {
|
|
|
2095
2410
|
*/
|
|
2096
2411
|
name?: string;
|
|
2097
2412
|
ports?: Ports;
|
|
2413
|
+
/**
|
|
2414
|
+
* Tags of the definition
|
|
2415
|
+
*/
|
|
2416
|
+
tags?: string;
|
|
2098
2417
|
/**
|
|
2099
2418
|
* URL of the definition
|
|
2100
2419
|
*/
|
|
@@ -2572,6 +2891,10 @@ export type VolumeAttachments = Array<VolumeAttachment>;
|
|
|
2572
2891
|
* Volume specification - immutable configuration
|
|
2573
2892
|
*/
|
|
2574
2893
|
export type VolumeSpec = {
|
|
2894
|
+
/**
|
|
2895
|
+
* The internal infrastructure resource identifier for this volume
|
|
2896
|
+
*/
|
|
2897
|
+
infrastructureId?: string;
|
|
2575
2898
|
/**
|
|
2576
2899
|
* Region where the volume should be created (e.g. us-pdx-1, eu-lon-1)
|
|
2577
2900
|
*/
|
|
@@ -2845,7 +3168,12 @@ export type GetAgentData = {
|
|
|
2845
3168
|
*/
|
|
2846
3169
|
agentName: string;
|
|
2847
3170
|
};
|
|
2848
|
-
query?:
|
|
3171
|
+
query?: {
|
|
3172
|
+
/**
|
|
3173
|
+
* Show secret values (admin only)
|
|
3174
|
+
*/
|
|
3175
|
+
show_secrets?: boolean;
|
|
3176
|
+
};
|
|
2849
3177
|
url: '/agents/{agentName}';
|
|
2850
3178
|
};
|
|
2851
3179
|
export type GetAgentResponses = {
|
|
@@ -3054,7 +3382,12 @@ export type GetFunctionData = {
|
|
|
3054
3382
|
*/
|
|
3055
3383
|
functionName: string;
|
|
3056
3384
|
};
|
|
3057
|
-
query?:
|
|
3385
|
+
query?: {
|
|
3386
|
+
/**
|
|
3387
|
+
* Show secret values (admin only)
|
|
3388
|
+
*/
|
|
3389
|
+
show_secrets?: boolean;
|
|
3390
|
+
};
|
|
3058
3391
|
url: '/functions/{functionName}';
|
|
3059
3392
|
};
|
|
3060
3393
|
export type GetFunctionResponses = {
|
|
@@ -3100,6 +3433,109 @@ export type ListFunctionRevisionsResponses = {
|
|
|
3100
3433
|
200: Array<RevisionMetadata>;
|
|
3101
3434
|
};
|
|
3102
3435
|
export type ListFunctionRevisionsResponse = ListFunctionRevisionsResponses[keyof ListFunctionRevisionsResponses];
|
|
3436
|
+
export type ListImagesData = {
|
|
3437
|
+
body?: never;
|
|
3438
|
+
path?: never;
|
|
3439
|
+
query?: never;
|
|
3440
|
+
url: '/images';
|
|
3441
|
+
};
|
|
3442
|
+
export type ListImagesResponses = {
|
|
3443
|
+
/**
|
|
3444
|
+
* successful operation
|
|
3445
|
+
*/
|
|
3446
|
+
200: Array<Image>;
|
|
3447
|
+
};
|
|
3448
|
+
export type ListImagesResponse = ListImagesResponses[keyof ListImagesResponses];
|
|
3449
|
+
export type DeleteImageData = {
|
|
3450
|
+
body?: never;
|
|
3451
|
+
path: {
|
|
3452
|
+
/**
|
|
3453
|
+
* Resource type of the image
|
|
3454
|
+
*/
|
|
3455
|
+
resourceType: string;
|
|
3456
|
+
/**
|
|
3457
|
+
* Name of the image
|
|
3458
|
+
*/
|
|
3459
|
+
imageName: string;
|
|
3460
|
+
};
|
|
3461
|
+
query?: never;
|
|
3462
|
+
url: '/images/{resourceType}/{imageName}';
|
|
3463
|
+
};
|
|
3464
|
+
export type DeleteImageErrors = {
|
|
3465
|
+
/**
|
|
3466
|
+
* image used
|
|
3467
|
+
*/
|
|
3468
|
+
400: unknown;
|
|
3469
|
+
/**
|
|
3470
|
+
* image not found
|
|
3471
|
+
*/
|
|
3472
|
+
404: unknown;
|
|
3473
|
+
};
|
|
3474
|
+
export type DeleteImageResponses = {
|
|
3475
|
+
/**
|
|
3476
|
+
* successful operation
|
|
3477
|
+
*/
|
|
3478
|
+
200: Image;
|
|
3479
|
+
};
|
|
3480
|
+
export type DeleteImageResponse = DeleteImageResponses[keyof DeleteImageResponses];
|
|
3481
|
+
export type GetImageData = {
|
|
3482
|
+
body?: never;
|
|
3483
|
+
path: {
|
|
3484
|
+
/**
|
|
3485
|
+
* Resource type of the image
|
|
3486
|
+
*/
|
|
3487
|
+
resourceType: string;
|
|
3488
|
+
/**
|
|
3489
|
+
* Name of the image
|
|
3490
|
+
*/
|
|
3491
|
+
imageName: string;
|
|
3492
|
+
};
|
|
3493
|
+
query?: never;
|
|
3494
|
+
url: '/images/{resourceType}/{imageName}';
|
|
3495
|
+
};
|
|
3496
|
+
export type GetImageResponses = {
|
|
3497
|
+
/**
|
|
3498
|
+
* successful operation
|
|
3499
|
+
*/
|
|
3500
|
+
200: Image;
|
|
3501
|
+
};
|
|
3502
|
+
export type GetImageResponse = GetImageResponses[keyof GetImageResponses];
|
|
3503
|
+
export type DeleteImageTagData = {
|
|
3504
|
+
body?: never;
|
|
3505
|
+
path: {
|
|
3506
|
+
/**
|
|
3507
|
+
* Resource type of the image
|
|
3508
|
+
*/
|
|
3509
|
+
resourceType: string;
|
|
3510
|
+
/**
|
|
3511
|
+
* Name of the image
|
|
3512
|
+
*/
|
|
3513
|
+
imageName: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* Name of the tag to delete
|
|
3516
|
+
*/
|
|
3517
|
+
tagName: string;
|
|
3518
|
+
};
|
|
3519
|
+
query?: never;
|
|
3520
|
+
url: '/images/{resourceType}/{imageName}/tags/{tagName}';
|
|
3521
|
+
};
|
|
3522
|
+
export type DeleteImageTagErrors = {
|
|
3523
|
+
/**
|
|
3524
|
+
* tag is in use
|
|
3525
|
+
*/
|
|
3526
|
+
400: unknown;
|
|
3527
|
+
/**
|
|
3528
|
+
* image or tag not found
|
|
3529
|
+
*/
|
|
3530
|
+
404: unknown;
|
|
3531
|
+
};
|
|
3532
|
+
export type DeleteImageTagResponses = {
|
|
3533
|
+
/**
|
|
3534
|
+
* successful operation
|
|
3535
|
+
*/
|
|
3536
|
+
200: Image;
|
|
3537
|
+
};
|
|
3538
|
+
export type DeleteImageTagResponse = DeleteImageTagResponses[keyof DeleteImageTagResponses];
|
|
3103
3539
|
export type GetIntegrationData = {
|
|
3104
3540
|
body?: never;
|
|
3105
3541
|
path: {
|
|
@@ -3305,7 +3741,12 @@ export type GetJobData = {
|
|
|
3305
3741
|
*/
|
|
3306
3742
|
jobId: string;
|
|
3307
3743
|
};
|
|
3308
|
-
query?:
|
|
3744
|
+
query?: {
|
|
3745
|
+
/**
|
|
3746
|
+
* Show secret values (admin only)
|
|
3747
|
+
*/
|
|
3748
|
+
show_secrets?: boolean;
|
|
3749
|
+
};
|
|
3309
3750
|
url: '/jobs/{jobId}';
|
|
3310
3751
|
};
|
|
3311
3752
|
export type GetJobResponses = {
|
|
@@ -3333,6 +3774,143 @@ export type UpdateJobResponses = {
|
|
|
3333
3774
|
200: Job;
|
|
3334
3775
|
};
|
|
3335
3776
|
export type UpdateJobResponse = UpdateJobResponses[keyof UpdateJobResponses];
|
|
3777
|
+
export type ListJobExecutionsData = {
|
|
3778
|
+
body?: never;
|
|
3779
|
+
path: {
|
|
3780
|
+
/**
|
|
3781
|
+
* Name of the job
|
|
3782
|
+
*/
|
|
3783
|
+
jobId: string;
|
|
3784
|
+
};
|
|
3785
|
+
query?: {
|
|
3786
|
+
/**
|
|
3787
|
+
* Number of items per page
|
|
3788
|
+
*/
|
|
3789
|
+
limit?: number;
|
|
3790
|
+
/**
|
|
3791
|
+
* Page offset
|
|
3792
|
+
*/
|
|
3793
|
+
offset?: number;
|
|
3794
|
+
};
|
|
3795
|
+
url: '/jobs/{jobId}/executions';
|
|
3796
|
+
};
|
|
3797
|
+
export type ListJobExecutionsErrors = {
|
|
3798
|
+
/**
|
|
3799
|
+
* bad request
|
|
3800
|
+
*/
|
|
3801
|
+
400: unknown;
|
|
3802
|
+
/**
|
|
3803
|
+
* internal server error
|
|
3804
|
+
*/
|
|
3805
|
+
500: unknown;
|
|
3806
|
+
};
|
|
3807
|
+
export type ListJobExecutionsResponses = {
|
|
3808
|
+
/**
|
|
3809
|
+
* successful operation
|
|
3810
|
+
*/
|
|
3811
|
+
200: Array<JobExecution>;
|
|
3812
|
+
};
|
|
3813
|
+
export type ListJobExecutionsResponse = ListJobExecutionsResponses[keyof ListJobExecutionsResponses];
|
|
3814
|
+
export type CreateJobExecutionData = {
|
|
3815
|
+
body: CreateJobExecutionRequest;
|
|
3816
|
+
path: {
|
|
3817
|
+
/**
|
|
3818
|
+
* Name of the job
|
|
3819
|
+
*/
|
|
3820
|
+
jobId: string;
|
|
3821
|
+
};
|
|
3822
|
+
query?: never;
|
|
3823
|
+
url: '/jobs/{jobId}/executions';
|
|
3824
|
+
};
|
|
3825
|
+
export type CreateJobExecutionErrors = {
|
|
3826
|
+
/**
|
|
3827
|
+
* bad request
|
|
3828
|
+
*/
|
|
3829
|
+
400: unknown;
|
|
3830
|
+
/**
|
|
3831
|
+
* internal server error
|
|
3832
|
+
*/
|
|
3833
|
+
500: unknown;
|
|
3834
|
+
};
|
|
3835
|
+
export type CreateJobExecutionResponses = {
|
|
3836
|
+
/**
|
|
3837
|
+
* successful operation
|
|
3838
|
+
*/
|
|
3839
|
+
200: JobExecution;
|
|
3840
|
+
};
|
|
3841
|
+
export type CreateJobExecutionResponse2 = CreateJobExecutionResponses[keyof CreateJobExecutionResponses];
|
|
3842
|
+
export type DeleteJobExecutionData = {
|
|
3843
|
+
body?: never;
|
|
3844
|
+
path: {
|
|
3845
|
+
/**
|
|
3846
|
+
* Name of the job
|
|
3847
|
+
*/
|
|
3848
|
+
jobId: string;
|
|
3849
|
+
/**
|
|
3850
|
+
* Id of the execution
|
|
3851
|
+
*/
|
|
3852
|
+
executionId: string;
|
|
3853
|
+
};
|
|
3854
|
+
query?: never;
|
|
3855
|
+
url: '/jobs/{jobId}/executions/{executionId}';
|
|
3856
|
+
};
|
|
3857
|
+
export type DeleteJobExecutionErrors = {
|
|
3858
|
+
/**
|
|
3859
|
+
* bad request
|
|
3860
|
+
*/
|
|
3861
|
+
400: unknown;
|
|
3862
|
+
/**
|
|
3863
|
+
* execution not found
|
|
3864
|
+
*/
|
|
3865
|
+
404: unknown;
|
|
3866
|
+
/**
|
|
3867
|
+
* internal server error
|
|
3868
|
+
*/
|
|
3869
|
+
500: unknown;
|
|
3870
|
+
};
|
|
3871
|
+
export type DeleteJobExecutionResponses = {
|
|
3872
|
+
/**
|
|
3873
|
+
* successful operation
|
|
3874
|
+
*/
|
|
3875
|
+
200: JobExecution;
|
|
3876
|
+
};
|
|
3877
|
+
export type DeleteJobExecutionResponse = DeleteJobExecutionResponses[keyof DeleteJobExecutionResponses];
|
|
3878
|
+
export type GetJobExecutionData = {
|
|
3879
|
+
body?: never;
|
|
3880
|
+
path: {
|
|
3881
|
+
/**
|
|
3882
|
+
* Name of the job
|
|
3883
|
+
*/
|
|
3884
|
+
jobId: string;
|
|
3885
|
+
/**
|
|
3886
|
+
* Id of the execution
|
|
3887
|
+
*/
|
|
3888
|
+
executionId: string;
|
|
3889
|
+
};
|
|
3890
|
+
query?: never;
|
|
3891
|
+
url: '/jobs/{jobId}/executions/{executionId}';
|
|
3892
|
+
};
|
|
3893
|
+
export type GetJobExecutionErrors = {
|
|
3894
|
+
/**
|
|
3895
|
+
* bad request
|
|
3896
|
+
*/
|
|
3897
|
+
400: unknown;
|
|
3898
|
+
/**
|
|
3899
|
+
* execution not found
|
|
3900
|
+
*/
|
|
3901
|
+
404: unknown;
|
|
3902
|
+
/**
|
|
3903
|
+
* internal server error
|
|
3904
|
+
*/
|
|
3905
|
+
500: unknown;
|
|
3906
|
+
};
|
|
3907
|
+
export type GetJobExecutionResponses = {
|
|
3908
|
+
/**
|
|
3909
|
+
* successful operation
|
|
3910
|
+
*/
|
|
3911
|
+
200: JobExecution;
|
|
3912
|
+
};
|
|
3913
|
+
export type GetJobExecutionResponse = GetJobExecutionResponses[keyof GetJobExecutionResponses];
|
|
3336
3914
|
export type ListJobRevisionsData = {
|
|
3337
3915
|
body?: never;
|
|
3338
3916
|
path: {
|
|
@@ -3844,7 +4422,12 @@ export type GetSandboxData = {
|
|
|
3844
4422
|
*/
|
|
3845
4423
|
sandboxName: string;
|
|
3846
4424
|
};
|
|
3847
|
-
query?:
|
|
4425
|
+
query?: {
|
|
4426
|
+
/**
|
|
4427
|
+
* Show secret values (admin only)
|
|
4428
|
+
*/
|
|
4429
|
+
show_secrets?: boolean;
|
|
4430
|
+
};
|
|
3848
4431
|
url: '/sandboxes/{sandboxName}';
|
|
3849
4432
|
};
|
|
3850
4433
|
export type GetSandboxResponses = {
|