@agentuity/server 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/db/index.d.ts +4 -4
- package/dist/api/db/index.d.ts.map +1 -1
- package/dist/api/db/index.js +3 -3
- package/dist/api/db/index.js.map +1 -1
- package/dist/api/db/logs.d.ts +20 -1
- package/dist/api/db/logs.d.ts.map +1 -1
- package/dist/api/db/logs.js +1 -1
- package/dist/api/db/logs.js.map +1 -1
- package/dist/api/db/tables.d.ts +20 -1
- package/dist/api/db/tables.d.ts.map +1 -1
- package/dist/api/db/tables.js +1 -1
- package/dist/api/db/tables.js.map +1 -1
- package/dist/api/eval/get.d.ts +20 -1
- package/dist/api/eval/get.d.ts.map +1 -1
- package/dist/api/eval/get.js +1 -1
- package/dist/api/eval/get.js.map +1 -1
- package/dist/api/eval/index.d.ts +4 -4
- package/dist/api/eval/index.d.ts.map +1 -1
- package/dist/api/eval/index.js +4 -4
- package/dist/api/eval/index.js.map +1 -1
- package/dist/api/eval/list.d.ts +19 -1
- package/dist/api/eval/list.d.ts.map +1 -1
- package/dist/api/eval/list.js +1 -1
- package/dist/api/eval/list.js.map +1 -1
- package/dist/api/eval/run-get.d.ts +26 -1
- package/dist/api/eval/run-get.d.ts.map +1 -1
- package/dist/api/eval/run-get.js +1 -1
- package/dist/api/eval/run-get.js.map +1 -1
- package/dist/api/eval/run-list.d.ts +25 -1
- package/dist/api/eval/run-list.d.ts.map +1 -1
- package/dist/api/eval/run-list.js +1 -1
- package/dist/api/eval/run-list.js.map +1 -1
- package/dist/api/project/agent.d.ts +54 -0
- package/dist/api/project/agent.d.ts.map +1 -1
- package/dist/api/project/agent.js +2 -2
- package/dist/api/project/agent.js.map +1 -1
- package/dist/api/project/create.d.ts +2 -3
- package/dist/api/project/create.d.ts.map +1 -1
- package/dist/api/project/create.js +1 -1
- package/dist/api/project/create.js.map +1 -1
- package/dist/api/project/delete.d.ts +9 -1
- package/dist/api/project/delete.d.ts.map +1 -1
- package/dist/api/project/delete.js +1 -1
- package/dist/api/project/delete.js.map +1 -1
- package/dist/api/project/deploy.d.ts +65 -0
- package/dist/api/project/deploy.d.ts.map +1 -1
- package/dist/api/project/deploy.js +5 -5
- package/dist/api/project/deploy.js.map +1 -1
- package/dist/api/project/deployment.d.ts +136 -0
- package/dist/api/project/deployment.d.ts.map +1 -1
- package/dist/api/project/deployment.js +5 -5
- package/dist/api/project/deployment.js.map +1 -1
- package/dist/api/project/env-delete.d.ts +8 -1
- package/dist/api/project/env-delete.d.ts.map +1 -1
- package/dist/api/project/env-delete.js +1 -1
- package/dist/api/project/env-delete.js.map +1 -1
- package/dist/api/project/env-update.d.ts +15 -1
- package/dist/api/project/env-update.d.ts.map +1 -1
- package/dist/api/project/env-update.js +1 -1
- package/dist/api/project/env-update.js.map +1 -1
- package/dist/api/project/exists.d.ts +2 -3
- package/dist/api/project/exists.d.ts.map +1 -1
- package/dist/api/project/exists.js +2 -2
- package/dist/api/project/exists.js.map +1 -1
- package/dist/api/project/get.d.ts +19 -1
- package/dist/api/project/get.d.ts.map +1 -1
- package/dist/api/project/get.js +1 -1
- package/dist/api/project/get.js.map +1 -1
- package/dist/api/project/list.d.ts +2 -3
- package/dist/api/project/list.d.ts.map +1 -1
- package/dist/api/project/list.js +1 -1
- package/dist/api/project/list.js.map +1 -1
- package/dist/api/project/malware.d.ts +27 -0
- package/dist/api/project/malware.d.ts.map +1 -1
- package/dist/api/project/malware.js +1 -1
- package/dist/api/project/malware.js.map +1 -1
- package/dist/api/project/update-region.d.ts +11 -1
- package/dist/api/project/update-region.d.ts.map +1 -1
- package/dist/api/project/update-region.js +1 -1
- package/dist/api/project/update-region.js.map +1 -1
- package/dist/api/queue/analytics.d.ts +144 -2
- package/dist/api/queue/analytics.d.ts.map +1 -1
- package/dist/api/queue/analytics.js +5 -5
- package/dist/api/queue/analytics.js.map +1 -1
- package/dist/api/queue/destinations.d.ts +96 -2
- package/dist/api/queue/destinations.d.ts.map +1 -1
- package/dist/api/queue/destinations.js +7 -7
- package/dist/api/queue/destinations.js.map +1 -1
- package/dist/api/queue/dlq.d.ts +70 -2
- package/dist/api/queue/dlq.d.ts.map +1 -1
- package/dist/api/queue/dlq.js +5 -5
- package/dist/api/queue/dlq.js.map +1 -1
- package/dist/api/queue/index.d.ts +9 -9
- package/dist/api/queue/index.d.ts.map +1 -1
- package/dist/api/queue/index.js +11 -11
- package/dist/api/queue/index.js.map +1 -1
- package/dist/api/queue/messages.d.ts +173 -2
- package/dist/api/queue/messages.d.ts.map +1 -1
- package/dist/api/queue/messages.js +10 -10
- package/dist/api/queue/messages.js.map +1 -1
- package/dist/api/queue/queues.d.ts +75 -2
- package/dist/api/queue/queues.d.ts.map +1 -1
- package/dist/api/queue/queues.js +6 -6
- package/dist/api/queue/queues.js.map +1 -1
- package/dist/api/queue/sources.d.ts +72 -2
- package/dist/api/queue/sources.d.ts.map +1 -1
- package/dist/api/queue/sources.js +6 -6
- package/dist/api/queue/sources.js.map +1 -1
- package/dist/api/sandbox/cli-list.d.ts +4 -5
- package/dist/api/sandbox/cli-list.d.ts.map +1 -1
- package/dist/api/sandbox/cli-list.js +3 -3
- package/dist/api/sandbox/cli-list.js.map +1 -1
- package/dist/api/sandbox/create.d.ts +82 -1
- package/dist/api/sandbox/create.d.ts.map +1 -1
- package/dist/api/sandbox/create.js +14 -10
- package/dist/api/sandbox/create.js.map +1 -1
- package/dist/api/sandbox/destroy.d.ts +9 -1
- package/dist/api/sandbox/destroy.d.ts.map +1 -1
- package/dist/api/sandbox/destroy.js +2 -2
- package/dist/api/sandbox/destroy.js.map +1 -1
- package/dist/api/sandbox/execute.d.ts +49 -1
- package/dist/api/sandbox/execute.d.ts.map +1 -1
- package/dist/api/sandbox/execute.js +4 -4
- package/dist/api/sandbox/execute.js.map +1 -1
- package/dist/api/sandbox/execution.d.ts +104 -1
- package/dist/api/sandbox/execution.d.ts.map +1 -1
- package/dist/api/sandbox/execution.js +5 -5
- package/dist/api/sandbox/execution.js.map +1 -1
- package/dist/api/sandbox/get.d.ts +233 -1
- package/dist/api/sandbox/get.d.ts.map +1 -1
- package/dist/api/sandbox/get.js +12 -12
- package/dist/api/sandbox/get.js.map +1 -1
- package/dist/api/sandbox/index.d.ts +25 -25
- package/dist/api/sandbox/index.d.ts.map +1 -1
- package/dist/api/sandbox/index.js +13 -13
- package/dist/api/sandbox/index.js.map +1 -1
- package/dist/api/sandbox/list.d.ts +230 -1
- package/dist/api/sandbox/list.d.ts.map +1 -1
- package/dist/api/sandbox/list.js +9 -9
- package/dist/api/sandbox/list.js.map +1 -1
- package/dist/api/sandbox/resolve.d.ts +30 -0
- package/dist/api/sandbox/resolve.d.ts.map +1 -1
- package/dist/api/sandbox/resolve.js +3 -3
- package/dist/api/sandbox/resolve.js.map +1 -1
- package/dist/api/sandbox/runtime.d.ts +69 -1
- package/dist/api/sandbox/runtime.d.ts.map +1 -1
- package/dist/api/sandbox/runtime.js +5 -5
- package/dist/api/sandbox/runtime.js.map +1 -1
- package/dist/api/sandbox/snapshot.d.ts +202 -9
- package/dist/api/sandbox/snapshot.d.ts.map +1 -1
- package/dist/api/sandbox/snapshot.js +17 -17
- package/dist/api/sandbox/snapshot.js.map +1 -1
- package/dist/api/stream/get.d.ts +3 -4
- package/dist/api/stream/get.d.ts.map +1 -1
- package/dist/api/stream/get.js +2 -2
- package/dist/api/stream/get.js.map +1 -1
- package/dist/api/stream/list.d.ts +4 -5
- package/dist/api/stream/list.d.ts.map +1 -1
- package/dist/api/stream/list.js +3 -3
- package/dist/api/stream/list.js.map +1 -1
- package/package.json +4 -4
- package/src/api/db/index.ts +15 -13
- package/src/api/db/logs.ts +2 -2
- package/src/api/db/tables.ts +2 -2
- package/src/api/eval/get.ts +2 -2
- package/src/api/eval/index.ts +19 -7
- package/src/api/eval/list.ts +2 -2
- package/src/api/eval/run-get.ts +2 -2
- package/src/api/eval/run-list.ts +2 -2
- package/src/api/project/agent.ts +2 -2
- package/src/api/project/create.ts +2 -2
- package/src/api/project/delete.ts +2 -2
- package/src/api/project/deploy.ts +7 -5
- package/src/api/project/deployment.ts +5 -5
- package/src/api/project/env-delete.ts +2 -2
- package/src/api/project/env-update.ts +2 -2
- package/src/api/project/exists.ts +2 -2
- package/src/api/project/get.ts +2 -2
- package/src/api/project/list.ts +2 -2
- package/src/api/project/malware.ts +1 -1
- package/src/api/project/update-region.ts +2 -2
- package/src/api/queue/analytics.ts +15 -11
- package/src/api/queue/destinations.ts +14 -12
- package/src/api/queue/dlq.ts +10 -10
- package/src/api/queue/index.ts +136 -108
- package/src/api/queue/messages.ts +22 -22
- package/src/api/queue/queues.ts +14 -14
- package/src/api/queue/sources.ts +11 -11
- package/src/api/sandbox/cli-list.ts +4 -4
- package/src/api/sandbox/create.ts +18 -14
- package/src/api/sandbox/destroy.ts +4 -4
- package/src/api/sandbox/execute.ts +6 -6
- package/src/api/sandbox/execution.ts +7 -7
- package/src/api/sandbox/get.ts +15 -15
- package/src/api/sandbox/index.ts +155 -93
- package/src/api/sandbox/list.ts +12 -12
- package/src/api/sandbox/resolve.ts +4 -4
- package/src/api/sandbox/runtime.ts +7 -7
- package/src/api/sandbox/snapshot.ts +20 -18
- package/src/api/stream/get.ts +3 -3
- package/src/api/stream/list.ts +4 -4
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
1
|
+
export type { CLISandboxInfo, CLISandboxListData, CLISandboxListOptions } from './cli-list';
|
|
2
|
+
export { cliSandboxList, SandboxListDataSchema, SandboxListResponseSchema } from './cli-list';
|
|
3
|
+
export type { ExecuteOptions, SandboxClientOptions, SandboxClientRunIO, SandboxInstance, } from './client';
|
|
4
|
+
export { SandboxClient } from './client';
|
|
5
|
+
export type { SandboxCreateParams, SandboxCreateResponse } from './create';
|
|
6
|
+
export { SandboxCreateDataSchema, SandboxCreateRequestSchema, SandboxCreateResponseSchema, sandboxCreate, } from './create';
|
|
7
|
+
export type { SandboxDestroyParams } from './destroy';
|
|
8
|
+
export { DestroyResponseSchema, sandboxDestroy } from './destroy';
|
|
4
9
|
export type { SandboxExecuteParams } from './execute';
|
|
5
|
-
export {
|
|
10
|
+
export { ExecuteDataSchema, ExecuteRequestSchema, ExecuteResponseSchema, sandboxExecute, } from './execute';
|
|
11
|
+
export type { ExecutionGetParams, ExecutionInfo, ExecutionListParams, ExecutionListResponse, } from './execution';
|
|
12
|
+
export { ExecutionGetResponseSchema, ExecutionInfoSchema, ExecutionListDataSchema, ExecutionListResponseSchema, executionGet, executionList, } from './execution';
|
|
13
|
+
export type { ArchiveFormat, DownloadArchiveParams, FileInfo, ListFilesParams, ListFilesResult, MkDirParams, ReadFileParams, RmDirParams, RmFileParams, SetEnvParams, SetEnvResult, UploadArchiveParams, WriteFilesParams, WriteFilesResult, } from './files';
|
|
14
|
+
export { FileInfoSchema, FileToWriteSchema, ListFilesDataSchema, ListFilesResponseSchema, MkDirRequestSchema, MkDirResponseSchema, RmDirRequestSchema, RmDirResponseSchema, RmFileRequestSchema, RmFileResponseSchema, SetEnvDataSchema, SetEnvRequestSchema, SetEnvResponseSchema, sandboxDownloadArchive, sandboxListFiles, sandboxMkDir, sandboxReadFile, sandboxRmDir, sandboxRmFile, sandboxSetEnv, sandboxUploadArchive, sandboxWriteFiles, UploadArchiveResponseSchema, WriteFilesDataSchema, WriteFilesRequestSchema, WriteFilesResponseSchema, } from './files';
|
|
6
15
|
export type { SandboxGetParams } from './get';
|
|
7
|
-
export {
|
|
8
|
-
export type { ResolvedSandboxInfo } from './resolve';
|
|
9
|
-
export { sandboxList } from './list';
|
|
16
|
+
export { SandboxAgentInfoSchema, SandboxGetResponseSchema, SandboxInfoDataSchema, SandboxProjectInfoSchema, SandboxResourcesSchema, SandboxUserInfoSchema, sandboxGet, } from './get';
|
|
10
17
|
export type { SandboxListParams } from './list';
|
|
11
|
-
export {
|
|
12
|
-
export type {
|
|
13
|
-
export {
|
|
14
|
-
export type { RuntimeListParams } from './runtime';
|
|
15
|
-
export { sandboxDestroy } from './destroy';
|
|
16
|
-
export type { SandboxDestroyParams } from './destroy';
|
|
17
|
-
export { sandboxRun } from './run';
|
|
18
|
+
export { ListSandboxesDataSchema, ListSandboxesResponseSchema, SandboxInfoSchema, SandboxOrgInfoSchema, SandboxRuntimeInfoSchema, SandboxSnapshotInfoSchema, SandboxSnapshotOrgInfoSchema, SandboxSnapshotUserInfoSchema, sandboxList, } from './list';
|
|
19
|
+
export type { ResolvedSandboxInfo } from './resolve';
|
|
20
|
+
export { SandboxResolveDataSchema, SandboxResolveError, SandboxResolveResponseSchema, sandboxResolve, } from './resolve';
|
|
18
21
|
export type { SandboxRunParams } from './run';
|
|
19
|
-
export {
|
|
20
|
-
export type {
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
23
|
-
export {
|
|
24
|
-
export type { SandboxClientOptions, SandboxClientRunIO, SandboxInstance, ExecuteOptions, } from './client';
|
|
25
|
-
export { sandboxWriteFiles, sandboxReadFile, sandboxMkDir, sandboxRmDir, sandboxRmFile, sandboxListFiles, sandboxDownloadArchive, sandboxUploadArchive, sandboxSetEnv, FileToWriteSchema, WriteFilesRequestSchema, WriteFilesDataSchema, WriteFilesResponseSchema, MkDirRequestSchema, MkDirResponseSchema, RmDirRequestSchema, RmDirResponseSchema, RmFileRequestSchema, RmFileResponseSchema, FileInfoSchema, ListFilesDataSchema, ListFilesResponseSchema, UploadArchiveResponseSchema, SetEnvRequestSchema, SetEnvDataSchema, SetEnvResponseSchema, } from './files';
|
|
26
|
-
export type { WriteFilesParams, WriteFilesResult, ReadFileParams, MkDirParams, RmDirParams, RmFileParams, ListFilesParams, ListFilesResult, FileInfo, ArchiveFormat, DownloadArchiveParams, UploadArchiveParams, SetEnvParams, SetEnvResult, } from './files';
|
|
27
|
-
export { snapshotCreate, snapshotGet, snapshotList, snapshotDelete, snapshotTag, snapshotLineage, snapshotPublicGet, snapshotPublicList, snapshotBuildInit, snapshotBuildFinalize, snapshotUpload, } from './snapshot';
|
|
28
|
-
export type { SnapshotInfo, SnapshotFileInfo, SnapshotCreateParams, SnapshotGetParams, SnapshotListParams, SnapshotListResponse, SnapshotDeleteParams, SnapshotTagParams, SnapshotLineageParams, SnapshotLineageEntry, SnapshotLineageResponse, SnapshotPublicGetParams, SnapshotPublicListParams, SnapshotBuildGitInfo, SnapshotBuildInitParams, SnapshotBuildInitResponse, SnapshotBuildFinalizeParams, SnapshotUploadParams, SnapshotUploadResponse, } from './snapshot';
|
|
29
|
-
export { SnapshotBuildFileSchema } from './snapshot-build';
|
|
22
|
+
export { sandboxRun } from './run';
|
|
23
|
+
export type { RuntimeListParams } from './runtime';
|
|
24
|
+
export { ListRuntimesDataSchema, ListRuntimesResponseSchema, RuntimeInfoSchema, RuntimeRequirementsSchema, runtimeList, } from './runtime';
|
|
25
|
+
export type { SnapshotBuildFinalizeParams, SnapshotBuildGitInfo, SnapshotBuildInitParams, SnapshotBuildInitResponse, SnapshotCreateParams, SnapshotDeleteParams, SnapshotFileInfo, SnapshotGetParams, SnapshotInfo, SnapshotLineageEntry, SnapshotLineageParams, SnapshotLineageResponse, SnapshotListParams, SnapshotListResponse, SnapshotPublicGetParams, SnapshotPublicListParams, SnapshotTagParams, SnapshotUploadParams, SnapshotUploadResponse, } from './snapshot';
|
|
26
|
+
export { SnapshotBuildGitInfoSchema, SnapshotBuildInitAPIResponseSchema, SnapshotBuildInitResponseSchema, SnapshotCreateResponseSchema, SnapshotDeleteResponseSchema, SnapshotFileInfoSchema, SnapshotGetResponseSchema, SnapshotInfoSchema, SnapshotLineageDataSchema, SnapshotLineageEntrySchema, SnapshotLineageResponseSchema, SnapshotListDataSchema, SnapshotListResponseSchema, SnapshotOrgInfoSchema, SnapshotUploadResponseSchema, SnapshotUserInfoSchema, snapshotBuildFinalize, snapshotBuildInit, snapshotCreate, snapshotDelete, snapshotGet, snapshotLineage, snapshotList, snapshotPublicGet, snapshotPublicList, snapshotTag, snapshotUpload, } from './snapshot';
|
|
30
27
|
export type { SnapshotBuildFile } from './snapshot-build';
|
|
28
|
+
export { SnapshotBuildFileSchema } from './snapshot-build';
|
|
29
|
+
export type { SandboxErrorCode, SandboxErrorContext } from './util';
|
|
30
|
+
export { ExecutionCancelledError, ExecutionNotFoundError, ExecutionTimeoutError, SandboxNotFoundError, SandboxResponseError, SandboxTerminatedError, SnapshotNotFoundError, throwSandboxError, writeAndDrain, } from './util';
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAC9F,YAAY,EACX,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,GACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EACN,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,aAAa,GACb,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EACN,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACd,MAAM,WAAW,CAAC;AACnB,YAAY,EACX,kBAAkB,EAClB,aAAa,EACb,mBAAm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BAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,GACb,MAAM,QAAQ,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { sandboxExecute } from './execute';
|
|
3
|
-
export { sandboxGet } from './get';
|
|
4
|
-
export { sandboxResolve, SandboxResolveError } from './resolve';
|
|
5
|
-
export { sandboxList } from './list';
|
|
6
|
-
export { cliSandboxList } from './cli-list';
|
|
7
|
-
export { runtimeList } from './runtime';
|
|
8
|
-
export { sandboxDestroy } from './destroy';
|
|
9
|
-
export { sandboxRun } from './run';
|
|
10
|
-
export { executionGet, executionList } from './execution';
|
|
11
|
-
export { SandboxResponseError, SandboxNotFoundError, SandboxTerminatedError, ExecutionNotFoundError, ExecutionTimeoutError, ExecutionCancelledError, SnapshotNotFoundError, throwSandboxError, writeAndDrain, } from './util';
|
|
1
|
+
export { cliSandboxList, SandboxListDataSchema, SandboxListResponseSchema } from './cli-list';
|
|
12
2
|
export { SandboxClient } from './client';
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
3
|
+
export { SandboxCreateDataSchema, SandboxCreateRequestSchema, SandboxCreateResponseSchema, sandboxCreate, } from './create';
|
|
4
|
+
export { DestroyResponseSchema, sandboxDestroy } from './destroy';
|
|
5
|
+
export { ExecuteDataSchema, ExecuteRequestSchema, ExecuteResponseSchema, sandboxExecute, } from './execute';
|
|
6
|
+
export { ExecutionGetResponseSchema, ExecutionInfoSchema, ExecutionListDataSchema, ExecutionListResponseSchema, executionGet, executionList, } from './execution';
|
|
7
|
+
export { FileInfoSchema, FileToWriteSchema, ListFilesDataSchema, ListFilesResponseSchema, MkDirRequestSchema, MkDirResponseSchema, RmDirRequestSchema, RmDirResponseSchema, RmFileRequestSchema, RmFileResponseSchema, SetEnvDataSchema, SetEnvRequestSchema, SetEnvResponseSchema, sandboxDownloadArchive, sandboxListFiles, sandboxMkDir, sandboxReadFile, sandboxRmDir, sandboxRmFile, sandboxSetEnv, sandboxUploadArchive, sandboxWriteFiles, UploadArchiveResponseSchema, WriteFilesDataSchema, WriteFilesRequestSchema, WriteFilesResponseSchema, } from './files';
|
|
8
|
+
export { SandboxAgentInfoSchema, SandboxGetResponseSchema, SandboxInfoDataSchema, SandboxProjectInfoSchema, SandboxResourcesSchema, SandboxUserInfoSchema, sandboxGet, } from './get';
|
|
9
|
+
export { ListSandboxesDataSchema, ListSandboxesResponseSchema, SandboxInfoSchema, SandboxOrgInfoSchema, SandboxRuntimeInfoSchema, SandboxSnapshotInfoSchema, SandboxSnapshotOrgInfoSchema, SandboxSnapshotUserInfoSchema, sandboxList, } from './list';
|
|
10
|
+
export { SandboxResolveDataSchema, SandboxResolveError, SandboxResolveResponseSchema, sandboxResolve, } from './resolve';
|
|
11
|
+
export { sandboxRun } from './run';
|
|
12
|
+
export { ListRuntimesDataSchema, ListRuntimesResponseSchema, RuntimeInfoSchema, RuntimeRequirementsSchema, runtimeList, } from './runtime';
|
|
13
|
+
export { SnapshotBuildGitInfoSchema, SnapshotBuildInitAPIResponseSchema, SnapshotBuildInitResponseSchema, SnapshotCreateResponseSchema, SnapshotDeleteResponseSchema, SnapshotFileInfoSchema, SnapshotGetResponseSchema, SnapshotInfoSchema, SnapshotLineageDataSchema, SnapshotLineageEntrySchema, SnapshotLineageResponseSchema, SnapshotListDataSchema, SnapshotListResponseSchema, SnapshotOrgInfoSchema, SnapshotUploadResponseSchema, SnapshotUserInfoSchema, snapshotBuildFinalize, snapshotBuildInit, snapshotCreate, snapshotDelete, snapshotGet, snapshotLineage, snapshotList, snapshotPublicGet, snapshotPublicList, snapshotTag, snapshotUpload, } from './snapshot';
|
|
15
14
|
export { SnapshotBuildFileSchema } from './snapshot-build';
|
|
15
|
+
export { ExecutionCancelledError, ExecutionNotFoundError, ExecutionTimeoutError, SandboxNotFoundError, SandboxResponseError, SandboxTerminatedError, SnapshotNotFoundError, throwSandboxError, writeAndDrain, } from './util';
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/sandbox/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/sandbox/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAO9F,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACN,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,aAAa,GACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAElE,OAAO,EACN,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACd,MAAM,WAAW,CAAC;AAOnB,OAAO,EACN,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,EACZ,aAAa,GACb,MAAM,aAAa,CAAC;AAiBrB,OAAO,EACN,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,GACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,UAAU,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EACN,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC5B,6BAA6B,EAC7B,WAAW,GACX,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACN,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC5B,cAAc,GACd,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EACN,sBAAsB,EACtB,0BAA0B,EAC1B,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,GACX,MAAM,WAAW,CAAC;AAsBnB,OAAO,EACN,0BAA0B,EAC1B,kCAAkC,EAClC,+BAA+B,EAC/B,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,cAAc,GACd,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EACN,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,GACb,MAAM,QAAQ,CAAC"}
|
|
@@ -1,5 +1,234 @@
|
|
|
1
|
-
import { APIClient } from '../api';
|
|
2
1
|
import type { ListSandboxesParams, ListSandboxesResponse } from '@agentuity/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type APIClient } from '../api';
|
|
4
|
+
export declare const SandboxOrgInfoSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const SandboxRuntimeInfoSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
12
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
13
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const SandboxSnapshotUserInfoSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
18
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const SandboxSnapshotOrgInfoSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const SandboxSnapshotInfoSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
29
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
30
|
+
public: z.ZodLiteral<true>;
|
|
31
|
+
org: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
40
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
41
|
+
public: z.ZodLiteral<false>;
|
|
42
|
+
user: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
45
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>]>;
|
|
48
|
+
export declare const SandboxInfoSchema: z.ZodObject<{
|
|
49
|
+
sandboxId: z.ZodString;
|
|
50
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
51
|
+
name: z.ZodOptional<z.ZodString>;
|
|
52
|
+
description: z.ZodOptional<z.ZodString>;
|
|
53
|
+
status: z.ZodEnum<{
|
|
54
|
+
idle: "idle";
|
|
55
|
+
failed: "failed";
|
|
56
|
+
deleted: "deleted";
|
|
57
|
+
creating: "creating";
|
|
58
|
+
running: "running";
|
|
59
|
+
terminated: "terminated";
|
|
60
|
+
}>;
|
|
61
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
62
|
+
createdAt: z.ZodString;
|
|
63
|
+
region: z.ZodOptional<z.ZodString>;
|
|
64
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
68
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
69
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
snapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodOptional<z.ZodString>;
|
|
74
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
75
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
76
|
+
public: z.ZodLiteral<true>;
|
|
77
|
+
org: z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
name: z.ZodOptional<z.ZodString>;
|
|
85
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
86
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
87
|
+
public: z.ZodLiteral<false>;
|
|
88
|
+
user: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
91
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>]>>;
|
|
94
|
+
executions: z.ZodNumber;
|
|
95
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
96
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
97
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
url: z.ZodOptional<z.ZodString>;
|
|
100
|
+
org: z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export declare const ListSandboxesDataSchema: z.ZodObject<{
|
|
106
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
107
|
+
sandboxId: z.ZodString;
|
|
108
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
110
|
+
description: z.ZodOptional<z.ZodString>;
|
|
111
|
+
status: z.ZodEnum<{
|
|
112
|
+
idle: "idle";
|
|
113
|
+
failed: "failed";
|
|
114
|
+
deleted: "deleted";
|
|
115
|
+
creating: "creating";
|
|
116
|
+
running: "running";
|
|
117
|
+
terminated: "terminated";
|
|
118
|
+
}>;
|
|
119
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
120
|
+
createdAt: z.ZodString;
|
|
121
|
+
region: z.ZodOptional<z.ZodString>;
|
|
122
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
126
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
127
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
snapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
name: z.ZodOptional<z.ZodString>;
|
|
132
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
133
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
134
|
+
public: z.ZodLiteral<true>;
|
|
135
|
+
org: z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
name: z.ZodOptional<z.ZodString>;
|
|
143
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
144
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
145
|
+
public: z.ZodLiteral<false>;
|
|
146
|
+
user: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
149
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
}, z.core.$strip>]>>;
|
|
152
|
+
executions: z.ZodNumber;
|
|
153
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
154
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
155
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
url: z.ZodOptional<z.ZodString>;
|
|
158
|
+
org: z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
total: z.ZodNumber;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export declare const ListSandboxesResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
166
|
+
success: z.ZodLiteral<false>;
|
|
167
|
+
message: z.ZodString;
|
|
168
|
+
code: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
success: z.ZodLiteral<true>;
|
|
171
|
+
data: z.ZodObject<{
|
|
172
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
173
|
+
sandboxId: z.ZodString;
|
|
174
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
175
|
+
name: z.ZodOptional<z.ZodString>;
|
|
176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
177
|
+
status: z.ZodEnum<{
|
|
178
|
+
idle: "idle";
|
|
179
|
+
failed: "failed";
|
|
180
|
+
deleted: "deleted";
|
|
181
|
+
creating: "creating";
|
|
182
|
+
running: "running";
|
|
183
|
+
terminated: "terminated";
|
|
184
|
+
}>;
|
|
185
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
186
|
+
createdAt: z.ZodString;
|
|
187
|
+
region: z.ZodOptional<z.ZodString>;
|
|
188
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
192
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
193
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
snapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
name: z.ZodOptional<z.ZodString>;
|
|
198
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
199
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
200
|
+
public: z.ZodLiteral<true>;
|
|
201
|
+
org: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
name: z.ZodOptional<z.ZodString>;
|
|
209
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
210
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
211
|
+
public: z.ZodLiteral<false>;
|
|
212
|
+
user: z.ZodObject<{
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
215
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>]>>;
|
|
218
|
+
executions: z.ZodNumber;
|
|
219
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
220
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
221
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
223
|
+
url: z.ZodOptional<z.ZodString>;
|
|
224
|
+
org: z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
name: z.ZodString;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
total: z.ZodNumber;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
}, z.core.$strip>], "success">;
|
|
3
232
|
export interface SandboxListParams extends ListSandboxesParams {
|
|
4
233
|
orgId?: string;
|
|
5
234
|
deletedOnly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,qBAAqB,EAIrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,QAAQ,CAAC;AAG3D,eAAO,MAAM,oBAAoB;;;iBAKqB,CAAC;AAEvD,eAAO,MAAM,wBAAwB;;;;;;iBAQJ,CAAC;AAElC,eAAO,MAAM,6BAA6B;;;;iBAMH,CAAC;AAExC,eAAO,MAAM,4BAA4B;;;;iBAMM,CAAC;AAEhD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;mBAyBkB,CAAC;AAEzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBmB,CAAC;AAElD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKK,CAAC;AAE1C,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA6C,CAAC;AAEtF,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAChC,MAAM,EAAE,SAAS,EACjB,MAAM,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,qBAAqB,CAAC,CA8DhC"}
|
package/dist/api/sandbox/list.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIResponseSchema } from '../api';
|
|
3
|
-
import {
|
|
4
|
-
const SandboxOrgInfoSchema = z
|
|
3
|
+
import { API_VERSION, throwSandboxError } from './util';
|
|
4
|
+
export const SandboxOrgInfoSchema = z
|
|
5
5
|
.object({
|
|
6
6
|
id: z.string().describe('Organization ID'),
|
|
7
7
|
name: z.string().describe('Organization name'),
|
|
8
8
|
})
|
|
9
9
|
.describe('Organization associated with the sandbox');
|
|
10
|
-
const SandboxRuntimeInfoSchema = z
|
|
10
|
+
export const SandboxRuntimeInfoSchema = z
|
|
11
11
|
.object({
|
|
12
12
|
id: z.string().describe('Runtime ID'),
|
|
13
13
|
name: z.string().describe('Runtime name (e.g., "bun:1")'),
|
|
@@ -16,21 +16,21 @@ const SandboxRuntimeInfoSchema = z
|
|
|
16
16
|
tags: z.array(z.string()).optional().describe('Optional tags for categorization'),
|
|
17
17
|
})
|
|
18
18
|
.describe('Runtime information');
|
|
19
|
-
const SandboxSnapshotUserInfoSchema = z
|
|
19
|
+
export const SandboxSnapshotUserInfoSchema = z
|
|
20
20
|
.object({
|
|
21
21
|
id: z.string().describe('User ID'),
|
|
22
22
|
firstName: z.string().optional().describe("User's first name"),
|
|
23
23
|
lastName: z.string().optional().describe("User's last name"),
|
|
24
24
|
})
|
|
25
25
|
.describe('Snapshot user information');
|
|
26
|
-
const SandboxSnapshotOrgInfoSchema = z
|
|
26
|
+
export const SandboxSnapshotOrgInfoSchema = z
|
|
27
27
|
.object({
|
|
28
28
|
id: z.string().describe('Organization ID'),
|
|
29
29
|
name: z.string().describe('Organization name'),
|
|
30
30
|
slug: z.string().optional().describe('Organization slug'),
|
|
31
31
|
})
|
|
32
32
|
.describe('Snapshot organization information');
|
|
33
|
-
const SandboxSnapshotInfoSchema = z
|
|
33
|
+
export const SandboxSnapshotInfoSchema = z
|
|
34
34
|
.union([
|
|
35
35
|
z
|
|
36
36
|
.object({
|
|
@@ -54,7 +54,7 @@ const SandboxSnapshotInfoSchema = z
|
|
|
54
54
|
.describe('Private snapshot'),
|
|
55
55
|
])
|
|
56
56
|
.describe('Snapshot information (discriminated union)');
|
|
57
|
-
const SandboxInfoSchema = z
|
|
57
|
+
export const SandboxInfoSchema = z
|
|
58
58
|
.object({
|
|
59
59
|
sandboxId: z.string().describe('Unique identifier for the sandbox'),
|
|
60
60
|
identifier: z.string().optional().describe('Short identifier for DNS hostname'),
|
|
@@ -80,13 +80,13 @@ const SandboxInfoSchema = z
|
|
|
80
80
|
org: SandboxOrgInfoSchema.describe('Organization associated with the sandbox'),
|
|
81
81
|
})
|
|
82
82
|
.describe('Summary information about a sandbox');
|
|
83
|
-
const ListSandboxesDataSchema = z
|
|
83
|
+
export const ListSandboxesDataSchema = z
|
|
84
84
|
.object({
|
|
85
85
|
sandboxes: z.array(SandboxInfoSchema).describe('List of sandbox entries'),
|
|
86
86
|
total: z.number().describe('Total number of sandboxes matching the query'),
|
|
87
87
|
})
|
|
88
88
|
.describe('Paginated list of sandboxes');
|
|
89
|
-
const ListSandboxesResponseSchema = APIResponseSchema(ListSandboxesDataSchema);
|
|
89
|
+
export const ListSandboxesResponseSchema = APIResponseSchema(ListSandboxesDataSchema);
|
|
90
90
|
/**
|
|
91
91
|
* Lists sandboxes with optional filtering and pagination.
|
|
92
92
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/sandbox/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/sandbox/list.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3D,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,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { type APIClient } from '../api';
|
|
3
|
+
/**
|
|
4
|
+
* Data schema for sandbox resolve endpoint
|
|
5
|
+
*/
|
|
6
|
+
export declare const SandboxResolveDataSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
region: z.ZodString;
|
|
10
|
+
status: z.ZodString;
|
|
11
|
+
orgId: z.ZodString;
|
|
12
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
/**
|
|
15
|
+
* Response schema for sandbox resolve endpoint using standardized discriminated union
|
|
16
|
+
*/
|
|
17
|
+
export declare const SandboxResolveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
success: z.ZodLiteral<false>;
|
|
19
|
+
message: z.ZodString;
|
|
20
|
+
code: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
success: z.ZodLiteral<true>;
|
|
23
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodNullable<z.ZodString>;
|
|
26
|
+
region: z.ZodString;
|
|
27
|
+
status: z.ZodString;
|
|
28
|
+
orgId: z.ZodString;
|
|
29
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>], "success">;
|
|
2
32
|
/**
|
|
3
33
|
* Resolved sandbox info returned from the CLI API
|
|
4
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/resolve.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/resolve.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAiC,MAAM,QAAQ,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;8BAA0D,CAAC;AAEpG;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB;;oBACnB,MAAM;qBACL,MAAM;;;;;;;oBADP,MAAM;qBACL,MAAM;;;CAChB,CAAC;AAEL;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CACnC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC,CAiC9B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { StructuredError } from '@agentuity/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
import { APIResponseSchemaOptionalData } from '../api';
|
|
4
4
|
/**
|
|
5
5
|
* Data schema for sandbox resolve endpoint
|
|
6
6
|
*/
|
|
7
|
-
const SandboxResolveDataSchema = z.object({
|
|
7
|
+
export const SandboxResolveDataSchema = z.object({
|
|
8
8
|
id: z.string(),
|
|
9
9
|
name: z.string().nullable(),
|
|
10
10
|
region: z.string(),
|
|
@@ -15,7 +15,7 @@ const SandboxResolveDataSchema = z.object({
|
|
|
15
15
|
/**
|
|
16
16
|
* Response schema for sandbox resolve endpoint using standardized discriminated union
|
|
17
17
|
*/
|
|
18
|
-
const SandboxResolveResponseSchema = APIResponseSchemaOptionalData(SandboxResolveDataSchema);
|
|
18
|
+
export const SandboxResolveResponseSchema = APIResponseSchemaOptionalData(SandboxResolveDataSchema);
|
|
19
19
|
/**
|
|
20
20
|
* Error thrown when sandbox resolution fails.
|
|
21
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../../src/api/sandbox/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../../src/api/sandbox/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AAEvE;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,6BAA6B,CAAC,wBAAwB,CAAC,CAAC;AAcpG;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC,qBAAqB,CAAC,EAGrE,CAAC;AAEL;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,MAAiB,EACjB,SAAiB;IAEjB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAChC,gBAAgB,SAAS,EAAE,EAC3B,4BAA4B,CAC5B,CAAC;IAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACvB,4EAA4E;QAC5E,0CAA0C;QAC1C,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACnF,MAAM,IAAI,mBAAmB,CAAC;YAC7B,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,mBAAmB;YAChD,SAAS;YACT,UAAU;SACV,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACpB,MAAM,IAAI,mBAAmB,CAAC;YAC7B,OAAO,EAAE,mBAAmB;YAC5B,SAAS;YACT,UAAU,EAAE,GAAG;SACf,CAAC,CAAC;IACJ,CAAC;IAED,OAAO;QACN,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;QACpB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI;QACxB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK;QAC1B,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS;KAClC,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,73 @@
|
|
|
1
|
-
import { APIClient } from '../api';
|
|
2
1
|
import type { ListRuntimesParams, ListRuntimesResponse } from '@agentuity/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type APIClient } from '../api';
|
|
4
|
+
export declare const RuntimeRequirementsSchema: z.ZodObject<{
|
|
5
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
7
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
8
|
+
networkEnabled: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const RuntimeInfoSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
15
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
16
|
+
url: z.ZodOptional<z.ZodString>;
|
|
17
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
20
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
21
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
22
|
+
networkEnabled: z.ZodBoolean;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const ListRuntimesDataSchema: z.ZodObject<{
|
|
27
|
+
runtimes: z.ZodArray<z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
32
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
33
|
+
url: z.ZodOptional<z.ZodString>;
|
|
34
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
37
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
38
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
39
|
+
networkEnabled: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
total: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const ListRuntimesResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
success: z.ZodLiteral<false>;
|
|
47
|
+
message: z.ZodString;
|
|
48
|
+
code: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
success: z.ZodLiteral<true>;
|
|
51
|
+
data: z.ZodObject<{
|
|
52
|
+
runtimes: z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
57
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
58
|
+
url: z.ZodOptional<z.ZodString>;
|
|
59
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
62
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
63
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
64
|
+
networkEnabled: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
total: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
}, z.core.$strip>], "success">;
|
|
3
71
|
export interface RuntimeListParams extends ListRuntimesParams {
|
|
4
72
|
orgId?: string;
|
|
5
73
|
}
|