@agentuity/core 1.0.32 → 1.0.33
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/api.d.ts +226 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/api.js +635 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/apikey/create.d.ts +33 -0
- package/dist/api/apikey/create.d.ts.map +1 -0
- package/dist/api/apikey/create.js +23 -0
- package/dist/api/apikey/create.js.map +1 -0
- package/dist/api/apikey/delete.d.ts +19 -0
- package/dist/api/apikey/delete.d.ts.map +1 -0
- package/dist/api/apikey/delete.js +19 -0
- package/dist/api/apikey/delete.js.map +1 -0
- package/dist/api/apikey/get.d.ts +45 -0
- package/dist/api/apikey/get.d.ts.map +1 -0
- package/dist/api/apikey/get.js +36 -0
- package/dist/api/apikey/get.js.map +1 -0
- package/dist/api/apikey/index.d.ts +6 -0
- package/dist/api/apikey/index.d.ts.map +1 -0
- package/dist/api/apikey/index.js +6 -0
- package/dist/api/apikey/index.js.map +1 -0
- package/dist/api/apikey/list.d.ts +64 -0
- package/dist/api/apikey/list.d.ts.map +1 -0
- package/dist/api/apikey/list.js +46 -0
- package/dist/api/apikey/list.js.map +1 -0
- package/dist/api/apikey/util.d.ts +23 -0
- package/dist/api/apikey/util.d.ts.map +1 -0
- package/dist/api/apikey/util.js +3 -0
- package/dist/api/apikey/util.js.map +1 -0
- package/dist/api/config.d.ts +20 -0
- package/dist/api/config.d.ts.map +1 -0
- package/dist/api/config.js +43 -0
- package/dist/api/config.js.map +1 -0
- package/dist/api/db/index.d.ts +5 -0
- package/dist/api/db/index.d.ts.map +1 -0
- package/dist/api/db/index.js +5 -0
- package/dist/api/db/index.js.map +1 -0
- package/dist/api/db/logs.d.ts +70 -0
- package/dist/api/db/logs.d.ts.map +1 -0
- package/dist/api/db/logs.js +59 -0
- package/dist/api/db/logs.js.map +1 -0
- package/dist/api/db/query.d.ts +39 -0
- package/dist/api/db/query.d.ts.map +1 -0
- package/dist/api/db/query.js +49 -0
- package/dist/api/db/query.js.map +1 -0
- package/dist/api/db/tables.d.ts +49 -0
- package/dist/api/db/tables.d.ts.map +1 -0
- package/dist/api/db/tables.js +59 -0
- package/dist/api/db/tables.js.map +1 -0
- package/dist/api/db/util.d.ts +31 -0
- package/dist/api/db/util.d.ts.map +1 -0
- package/dist/api/db/util.js +4 -0
- package/dist/api/db/util.js.map +1 -0
- package/dist/api/env.d.ts +5 -0
- package/dist/api/env.d.ts.map +1 -0
- package/dist/api/env.js +10 -0
- package/dist/api/env.js.map +1 -0
- package/dist/api/eval/get.d.ts +36 -0
- package/dist/api/eval/get.d.ts.map +1 -0
- package/dist/api/eval/get.js +23 -0
- package/dist/api/eval/get.js.map +1 -0
- package/dist/api/eval/index.d.ts +5 -0
- package/dist/api/eval/index.d.ts.map +1 -0
- package/dist/api/eval/index.js +5 -0
- package/dist/api/eval/index.js.map +1 -0
- package/dist/api/eval/list.d.ts +50 -0
- package/dist/api/eval/list.d.ts.map +1 -0
- package/dist/api/eval/list.js +32 -0
- package/dist/api/eval/list.js.map +1 -0
- package/dist/api/eval/run-get.d.ts +48 -0
- package/dist/api/eval/run-get.d.ts.map +1 -0
- package/dist/api/eval/run-get.js +29 -0
- package/dist/api/eval/run-get.js.map +1 -0
- package/dist/api/eval/run-list.d.ts +70 -0
- package/dist/api/eval/run-list.d.ts.map +1 -0
- package/dist/api/eval/run-list.js +42 -0
- package/dist/api/eval/run-list.js.map +1 -0
- package/dist/api/index.d.ts +21 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +21 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/logger.d.ts +7 -0
- package/dist/api/logger.d.ts.map +1 -0
- package/dist/api/logger.js +23 -0
- package/dist/api/logger.js.map +1 -0
- package/dist/api/machine/index.d.ts +3 -0
- package/dist/api/machine/index.d.ts.map +1 -0
- package/dist/api/machine/index.js +3 -0
- package/dist/api/machine/index.js.map +1 -0
- package/dist/api/machine/machine.d.ts +192 -0
- package/dist/api/machine/machine.d.ts.map +1 -0
- package/dist/api/machine/machine.js +109 -0
- package/dist/api/machine/machine.js.map +1 -0
- package/dist/api/machine/util.d.ts +14 -0
- package/dist/api/machine/util.d.ts.map +1 -0
- package/dist/api/machine/util.js +3 -0
- package/dist/api/machine/util.js.map +1 -0
- package/dist/api/org/env-delete.d.ts +23 -0
- package/dist/api/org/env-delete.d.ts.map +1 -0
- package/dist/api/org/env-delete.js +25 -0
- package/dist/api/org/env-delete.js.map +1 -0
- package/dist/api/org/env-get.d.ts +33 -0
- package/dist/api/org/env-get.d.ts.map +1 -0
- package/dist/api/org/env-get.js +26 -0
- package/dist/api/org/env-get.js.map +1 -0
- package/dist/api/org/env-update.d.ts +24 -0
- package/dist/api/org/env-update.d.ts.map +1 -0
- package/dist/api/org/env-update.js +26 -0
- package/dist/api/org/env-update.js.map +1 -0
- package/dist/api/org/index.d.ts +7 -0
- package/dist/api/org/index.d.ts.map +1 -0
- package/dist/api/org/index.js +7 -0
- package/dist/api/org/index.js.map +1 -0
- package/dist/api/org/list.d.ts +27 -0
- package/dist/api/org/list.d.ts.map +1 -0
- package/dist/api/org/list.js +22 -0
- package/dist/api/org/list.js.map +1 -0
- package/dist/api/org/resources.d.ts +141 -0
- package/dist/api/org/resources.d.ts.map +1 -0
- package/dist/api/org/resources.js +97 -0
- package/dist/api/org/resources.js.map +1 -0
- package/dist/api/org/util.d.ts +45 -0
- package/dist/api/org/util.d.ts.map +1 -0
- package/dist/api/org/util.js +4 -0
- package/dist/api/org/util.js.map +1 -0
- package/dist/api/project/agent.d.ts +89 -0
- package/dist/api/project/agent.d.ts.map +1 -0
- package/dist/api/project/agent.js +60 -0
- package/dist/api/project/agent.js.map +1 -0
- package/dist/api/project/create.d.ts +37 -0
- package/dist/api/project/create.d.ts.map +1 -0
- package/dist/api/project/create.js +31 -0
- package/dist/api/project/create.js.map +1 -0
- package/dist/api/project/delete.d.ts +15 -0
- package/dist/api/project/delete.d.ts.map +1 -0
- package/dist/api/project/delete.js +13 -0
- package/dist/api/project/delete.js.map +1 -0
- package/dist/api/project/deploy.d.ts +490 -0
- package/dist/api/project/deploy.d.ts.map +1 -0
- package/dist/api/project/deploy.js +313 -0
- package/dist/api/project/deploy.js.map +1 -0
- package/dist/api/project/deployment.d.ts +237 -0
- package/dist/api/project/deployment.d.ts.map +1 -0
- package/dist/api/project/deployment.js +127 -0
- package/dist/api/project/deployment.js.map +1 -0
- package/dist/api/project/env-delete.d.ts +22 -0
- package/dist/api/project/env-delete.d.ts.map +1 -0
- package/dist/api/project/env-delete.js +29 -0
- package/dist/api/project/env-delete.js.map +1 -0
- package/dist/api/project/env-update.d.ts +31 -0
- package/dist/api/project/env-update.d.ts.map +1 -0
- package/dist/api/project/env-update.js +36 -0
- package/dist/api/project/env-update.js.map +1 -0
- package/dist/api/project/exists.d.ts +25 -0
- package/dist/api/project/exists.d.ts.map +1 -0
- package/dist/api/project/exists.js +45 -0
- package/dist/api/project/exists.js.map +1 -0
- package/dist/api/project/get.d.ts +43 -0
- package/dist/api/project/get.d.ts.map +1 -0
- package/dist/api/project/get.js +36 -0
- package/dist/api/project/get.js.map +1 -0
- package/dist/api/project/hostname.d.ts +25 -0
- package/dist/api/project/hostname.d.ts.map +1 -0
- package/dist/api/project/hostname.js +37 -0
- package/dist/api/project/hostname.js.map +1 -0
- package/dist/api/project/index.d.ts +14 -0
- package/dist/api/project/index.d.ts.map +1 -0
- package/dist/api/project/index.js +14 -0
- package/dist/api/project/index.js.map +1 -0
- package/dist/api/project/list.d.ts +48 -0
- package/dist/api/project/list.d.ts.map +1 -0
- package/dist/api/project/list.js +38 -0
- package/dist/api/project/list.js.map +1 -0
- package/dist/api/project/malware.d.ts +71 -0
- package/dist/api/project/malware.d.ts.map +1 -0
- package/dist/api/project/malware.js +42 -0
- package/dist/api/project/malware.js.map +1 -0
- package/dist/api/project/update-region.d.ts +27 -0
- package/dist/api/project/update-region.d.ts.map +1 -0
- package/dist/api/project/update-region.js +25 -0
- package/dist/api/project/update-region.js.map +1 -0
- package/dist/api/project/util.d.ts +62 -0
- package/dist/api/project/util.d.ts.map +1 -0
- package/dist/api/project/util.js +6 -0
- package/dist/api/project/util.js.map +1 -0
- package/dist/api/queue/analytics.d.ts +250 -0
- package/dist/api/queue/analytics.d.ts.map +1 -0
- package/dist/api/queue/analytics.js +233 -0
- package/dist/api/queue/analytics.js.map +1 -0
- package/dist/api/queue/destinations.d.ts +202 -0
- package/dist/api/queue/destinations.d.ts.map +1 -0
- package/dist/api/queue/destinations.js +168 -0
- package/dist/api/queue/destinations.js.map +1 -0
- package/dist/api/queue/dlq.d.ts +168 -0
- package/dist/api/queue/dlq.d.ts.map +1 -0
- package/dist/api/queue/dlq.js +166 -0
- package/dist/api/queue/dlq.js.map +1 -0
- package/dist/api/queue/index.d.ts +56 -0
- package/dist/api/queue/index.d.ts.map +1 -0
- package/dist/api/queue/index.js +90 -0
- package/dist/api/queue/index.js.map +1 -0
- package/dist/api/queue/messages.d.ts +503 -0
- package/dist/api/queue/messages.d.ts.map +1 -0
- package/dist/api/queue/messages.js +549 -0
- package/dist/api/queue/messages.js.map +1 -0
- package/dist/api/queue/queues.d.ts +226 -0
- package/dist/api/queue/queues.d.ts.map +1 -0
- package/dist/api/queue/queues.js +321 -0
- package/dist/api/queue/queues.js.map +1 -0
- package/dist/api/queue/sources.d.ts +202 -0
- package/dist/api/queue/sources.d.ts.map +1 -0
- package/dist/api/queue/sources.js +202 -0
- package/dist/api/queue/sources.js.map +1 -0
- package/dist/api/queue/types.d.ts +1218 -0
- package/dist/api/queue/types.d.ts.map +1 -0
- package/dist/api/queue/types.js +1002 -0
- package/dist/api/queue/types.js.map +1 -0
- package/dist/api/queue/util.d.ts +278 -0
- package/dist/api/queue/util.d.ts.map +1 -0
- package/dist/api/queue/util.js +233 -0
- package/dist/api/queue/util.js.map +1 -0
- package/dist/api/queue/validation.d.ts +247 -0
- package/dist/api/queue/validation.d.ts.map +1 -0
- package/dist/api/queue/validation.js +513 -0
- package/dist/api/queue/validation.js.map +1 -0
- package/dist/api/queue/websocket.d.ts +172 -0
- package/dist/api/queue/websocket.d.ts.map +1 -0
- package/dist/api/queue/websocket.js +396 -0
- package/dist/api/queue/websocket.js.map +1 -0
- package/dist/api/region/create.d.ts +81 -0
- package/dist/api/region/create.d.ts.map +1 -0
- package/dist/api/region/create.js +177 -0
- package/dist/api/region/create.js.map +1 -0
- package/dist/api/region/delete.d.ts +62 -0
- package/dist/api/region/delete.d.ts.map +1 -0
- package/dist/api/region/delete.js +37 -0
- package/dist/api/region/delete.js.map +1 -0
- package/dist/api/region/index.d.ts +5 -0
- package/dist/api/region/index.d.ts.map +1 -0
- package/dist/api/region/index.js +5 -0
- package/dist/api/region/index.js.map +1 -0
- package/dist/api/region/list.d.ts +27 -0
- package/dist/api/region/list.d.ts.map +1 -0
- package/dist/api/region/list.js +22 -0
- package/dist/api/region/list.js.map +1 -0
- package/dist/api/region/resources.d.ts +71 -0
- package/dist/api/region/resources.d.ts.map +1 -0
- package/dist/api/region/resources.js +53 -0
- package/dist/api/region/resources.js.map +1 -0
- package/dist/api/region/util.d.ts +23 -0
- package/dist/api/region/util.d.ts.map +1 -0
- package/dist/api/region/util.js +3 -0
- package/dist/api/region/util.js.map +1 -0
- package/dist/api/sandbox/cli-list.d.ts +114 -0
- package/dist/api/sandbox/cli-list.d.ts.map +1 -0
- package/dist/api/sandbox/cli-list.js +71 -0
- package/dist/api/sandbox/cli-list.js.map +1 -0
- package/dist/api/sandbox/client.d.ts +192 -0
- package/dist/api/sandbox/client.d.ts.map +1 -0
- package/dist/api/sandbox/client.js +262 -0
- package/dist/api/sandbox/client.js.map +1 -0
- package/dist/api/sandbox/create.d.ts +118 -0
- package/dist/api/sandbox/create.d.ts.map +1 -0
- package/dist/api/sandbox/create.js +211 -0
- package/dist/api/sandbox/create.js.map +1 -0
- package/dist/api/sandbox/destroy.d.ts +22 -0
- package/dist/api/sandbox/destroy.d.ts.map +1 -0
- package/dist/api/sandbox/destroy.js +25 -0
- package/dist/api/sandbox/destroy.js.map +1 -0
- package/dist/api/sandbox/disk-checkpoint.d.ts +104 -0
- package/dist/api/sandbox/disk-checkpoint.d.ts.map +1 -0
- package/dist/api/sandbox/disk-checkpoint.js +104 -0
- package/dist/api/sandbox/disk-checkpoint.js.map +1 -0
- package/dist/api/sandbox/execute.d.ts +69 -0
- package/dist/api/sandbox/execute.d.ts.map +1 -0
- package/dist/api/sandbox/execute.js +103 -0
- package/dist/api/sandbox/execute.js.map +1 -0
- package/dist/api/sandbox/execution.d.ts +169 -0
- package/dist/api/sandbox/execution.d.ts.map +1 -0
- package/dist/api/sandbox/execution.js +118 -0
- package/dist/api/sandbox/execution.js.map +1 -0
- package/dist/api/sandbox/files.d.ts +261 -0
- package/dist/api/sandbox/files.d.ts.map +1 -0
- package/dist/api/sandbox/files.js +386 -0
- package/dist/api/sandbox/files.js.map +1 -0
- package/dist/api/sandbox/get.d.ts +283 -0
- package/dist/api/sandbox/get.d.ts.map +1 -0
- package/dist/api/sandbox/get.js +215 -0
- package/dist/api/sandbox/get.js.map +1 -0
- package/dist/api/sandbox/getStatus.d.ts +16 -0
- package/dist/api/sandbox/getStatus.d.ts.map +1 -0
- package/dist/api/sandbox/getStatus.js +32 -0
- package/dist/api/sandbox/getStatus.js.map +1 -0
- package/dist/api/sandbox/index.d.ts +39 -0
- package/dist/api/sandbox/index.d.ts.map +1 -0
- package/dist/api/sandbox/index.js +20 -0
- package/dist/api/sandbox/index.js.map +1 -0
- package/dist/api/sandbox/list.d.ts +293 -0
- package/dist/api/sandbox/list.d.ts.map +1 -0
- package/dist/api/sandbox/list.js +191 -0
- package/dist/api/sandbox/list.js.map +1 -0
- package/dist/api/sandbox/pause.d.ts +22 -0
- package/dist/api/sandbox/pause.d.ts.map +1 -0
- package/dist/api/sandbox/pause.js +25 -0
- package/dist/api/sandbox/pause.js.map +1 -0
- package/dist/api/sandbox/resolve.d.ts +82 -0
- package/dist/api/sandbox/resolve.d.ts.map +1 -0
- package/dist/api/sandbox/resolve.js +71 -0
- package/dist/api/sandbox/resolve.js.map +1 -0
- package/dist/api/sandbox/resume.d.ts +22 -0
- package/dist/api/sandbox/resume.d.ts.map +1 -0
- package/dist/api/sandbox/resume.js +25 -0
- package/dist/api/sandbox/resume.js.map +1 -0
- package/dist/api/sandbox/run.d.ts +28 -0
- package/dist/api/sandbox/run.d.ts.map +1 -0
- package/dist/api/sandbox/run.js +342 -0
- package/dist/api/sandbox/run.js.map +1 -0
- package/dist/api/sandbox/runtime.d.ts +83 -0
- package/dist/api/sandbox/runtime.d.ts.map +1 -0
- package/dist/api/sandbox/runtime.js +78 -0
- package/dist/api/sandbox/runtime.js.map +1 -0
- package/dist/api/sandbox/snapshot-build.d.ts +48 -0
- package/dist/api/sandbox/snapshot-build.d.ts.map +1 -0
- package/dist/api/sandbox/snapshot-build.js +72 -0
- package/dist/api/sandbox/snapshot-build.js.map +1 -0
- package/dist/api/sandbox/snapshot.d.ts +595 -0
- package/dist/api/sandbox/snapshot.d.ts.map +1 -0
- package/dist/api/sandbox/snapshot.js +598 -0
- package/dist/api/sandbox/snapshot.js.map +1 -0
- package/dist/api/sandbox/util.d.ts +284 -0
- package/dist/api/sandbox/util.d.ts.map +1 -0
- package/dist/api/sandbox/util.js +210 -0
- package/dist/api/sandbox/util.js.map +1 -0
- package/dist/api/services/index.d.ts +2 -0
- package/dist/api/services/index.d.ts.map +1 -0
- package/dist/api/services/index.js +2 -0
- package/dist/api/services/index.js.map +1 -0
- package/dist/api/services/stats.d.ts +263 -0
- package/dist/api/services/stats.d.ts.map +1 -0
- package/dist/api/services/stats.js +144 -0
- package/dist/api/services/stats.js.map +1 -0
- package/dist/api/session/get.d.ts +169 -0
- package/dist/api/session/get.d.ts.map +1 -0
- package/dist/api/session/get.js +56 -0
- package/dist/api/session/get.js.map +1 -0
- package/dist/api/session/index.d.ts +4 -0
- package/dist/api/session/index.d.ts.map +1 -0
- package/dist/api/session/index.js +4 -0
- package/dist/api/session/index.js.map +1 -0
- package/dist/api/session/list.d.ts +143 -0
- package/dist/api/session/list.d.ts.map +1 -0
- package/dist/api/session/list.js +91 -0
- package/dist/api/session/list.js.map +1 -0
- package/dist/api/session/logs.d.ts +40 -0
- package/dist/api/session/logs.d.ts.map +1 -0
- package/dist/api/session/logs.js +28 -0
- package/dist/api/session/logs.js.map +1 -0
- package/dist/api/session/util.d.ts +23 -0
- package/dist/api/session/util.d.ts.map +1 -0
- package/dist/api/session/util.js +3 -0
- package/dist/api/session/util.js.map +1 -0
- package/dist/api/storage/config.d.ts +99 -0
- package/dist/api/storage/config.d.ts.map +1 -0
- package/dist/api/storage/config.js +61 -0
- package/dist/api/storage/config.js.map +1 -0
- package/dist/api/storage/index.d.ts +5 -0
- package/dist/api/storage/index.d.ts.map +1 -0
- package/dist/api/storage/index.js +5 -0
- package/dist/api/storage/index.js.map +1 -0
- package/dist/api/storage/objects.d.ts +155 -0
- package/dist/api/storage/objects.d.ts.map +1 -0
- package/dist/api/storage/objects.js +148 -0
- package/dist/api/storage/objects.js.map +1 -0
- package/dist/api/storage/types.d.ts +161 -0
- package/dist/api/storage/types.d.ts.map +1 -0
- package/dist/api/storage/types.js +141 -0
- package/dist/api/storage/types.js.map +1 -0
- package/dist/api/storage/util.d.ts +45 -0
- package/dist/api/storage/util.d.ts.map +1 -0
- package/dist/api/storage/util.js +4 -0
- package/dist/api/storage/util.js.map +1 -0
- package/dist/api/stream/get.d.ts +58 -0
- package/dist/api/stream/get.d.ts.map +1 -0
- package/dist/api/stream/get.js +40 -0
- package/dist/api/stream/get.js.map +1 -0
- package/dist/api/stream/index.d.ts +4 -0
- package/dist/api/stream/index.d.ts.map +1 -0
- package/dist/api/stream/index.js +4 -0
- package/dist/api/stream/index.js.map +1 -0
- package/dist/api/stream/list.d.ts +120 -0
- package/dist/api/stream/list.d.ts.map +1 -0
- package/dist/api/stream/list.js +77 -0
- package/dist/api/stream/list.js.map +1 -0
- package/dist/api/stream/util.d.ts +23 -0
- package/dist/api/stream/util.d.ts.map +1 -0
- package/dist/api/stream/util.js +3 -0
- package/dist/api/stream/util.js.map +1 -0
- package/dist/api/thread/delete.d.ts +23 -0
- package/dist/api/thread/delete.d.ts.map +1 -0
- package/dist/api/thread/delete.js +21 -0
- package/dist/api/thread/delete.js.map +1 -0
- package/dist/api/thread/get.d.ts +36 -0
- package/dist/api/thread/get.d.ts.map +1 -0
- package/dist/api/thread/get.js +23 -0
- package/dist/api/thread/get.js.map +1 -0
- package/dist/api/thread/index.d.ts +5 -0
- package/dist/api/thread/index.d.ts.map +1 -0
- package/dist/api/thread/index.js +5 -0
- package/dist/api/thread/index.js.map +1 -0
- package/dist/api/thread/list.d.ts +69 -0
- package/dist/api/thread/list.d.ts.map +1 -0
- package/dist/api/thread/list.js +51 -0
- package/dist/api/thread/list.js.map +1 -0
- package/dist/api/thread/util.d.ts +23 -0
- package/dist/api/thread/util.d.ts.map +1 -0
- package/dist/api/thread/util.js +3 -0
- package/dist/api/thread/util.js.map +1 -0
- package/dist/api/user/index.d.ts +2 -0
- package/dist/api/user/index.d.ts.map +1 -0
- package/dist/api/user/index.js +2 -0
- package/dist/api/user/index.js.map +1 -0
- package/dist/api/user/util.d.ts +23 -0
- package/dist/api/user/util.d.ts.map +1 -0
- package/dist/api/user/util.js +3 -0
- package/dist/api/user/util.js.map +1 -0
- package/dist/api/user/whoami.d.ts +39 -0
- package/dist/api/user/whoami.d.ts.map +1 -0
- package/dist/api/user/whoami.js +27 -0
- package/dist/api/user/whoami.js.map +1 -0
- package/dist/api/webhook/deliveries.d.ts +94 -0
- package/dist/api/webhook/deliveries.d.ts.map +1 -0
- package/dist/api/webhook/deliveries.js +79 -0
- package/dist/api/webhook/deliveries.js.map +1 -0
- package/dist/api/webhook/destinations.d.ts +136 -0
- package/dist/api/webhook/destinations.d.ts.map +1 -0
- package/dist/api/webhook/destinations.js +137 -0
- package/dist/api/webhook/destinations.js.map +1 -0
- package/dist/api/webhook/index.d.ts +41 -0
- package/dist/api/webhook/index.d.ts.map +1 -0
- package/dist/api/webhook/index.js +59 -0
- package/dist/api/webhook/index.js.map +1 -0
- package/dist/api/webhook/receipts.d.ts +77 -0
- package/dist/api/webhook/receipts.d.ts.map +1 -0
- package/dist/api/webhook/receipts.js +78 -0
- package/dist/api/webhook/receipts.js.map +1 -0
- package/dist/api/webhook/types.d.ts +249 -0
- package/dist/api/webhook/types.d.ts.map +1 -0
- package/dist/api/webhook/types.js +221 -0
- package/dist/api/webhook/types.js.map +1 -0
- package/dist/api/webhook/util.d.ts +202 -0
- package/dist/api/webhook/util.d.ts.map +1 -0
- package/dist/api/webhook/util.js +199 -0
- package/dist/api/webhook/util.js.map +1 -0
- package/dist/api/webhook/webhooks.d.ts +146 -0
- package/dist/api/webhook/webhooks.d.ts.map +1 -0
- package/dist/api/webhook/webhooks.js +165 -0
- package/dist/api/webhook/webhooks.js.map +1 -0
- package/dist/env-example.d.ts +11 -0
- package/dist/env-example.d.ts.map +1 -0
- package/dist/env-example.js +70 -0
- package/dist/env-example.js.map +1 -0
- package/dist/index.d.ts +20 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -12
- package/dist/index.js.map +1 -1
- package/dist/services/email.d.ts.map +1 -1
- package/dist/services/email.js +15 -15
- package/dist/services/email.js.map +1 -1
- package/dist/services/keyvalue.d.ts.map +1 -1
- package/dist/services/keyvalue.js +10 -10
- package/dist/services/keyvalue.js.map +1 -1
- package/dist/services/queue.d.ts.map +1 -1
- package/dist/services/queue.js +3 -3
- package/dist/services/queue.js.map +1 -1
- package/dist/services/schedule.d.ts.map +1 -1
- package/dist/services/schedule.js +8 -10
- package/dist/services/schedule.js.map +1 -1
- package/dist/services/stream.d.ts +2 -2
- package/dist/services/stream.d.ts.map +1 -1
- package/dist/services/stream.js +2 -2
- package/dist/services/stream.js.map +1 -1
- package/dist/services/vector.d.ts.map +1 -1
- package/dist/services/vector.js +9 -9
- package/dist/services/vector.js.map +1 -1
- package/dist/services/webhook.d.ts +2 -1
- package/dist/services/webhook.d.ts.map +1 -1
- package/dist/services/webhook.js +12 -14
- package/dist/services/webhook.js.map +1 -1
- package/package.json +2 -2
- package/src/api/api-example.md +164 -0
- package/src/api/api.ts +931 -0
- package/src/api/apikey/create.ts +41 -0
- package/src/api/apikey/delete.ts +30 -0
- package/src/api/apikey/get.ts +48 -0
- package/src/api/apikey/index.ts +5 -0
- package/src/api/apikey/list.ts +64 -0
- package/src/api/apikey/util.ts +3 -0
- package/src/api/config.ts +60 -0
- package/src/api/db/index.ts +27 -0
- package/src/api/db/logs.ts +75 -0
- package/src/api/db/query.ts +67 -0
- package/src/api/db/tables.ts +92 -0
- package/src/api/db/util.ts +9 -0
- package/src/api/env.ts +9 -0
- package/src/api/eval/get.ts +33 -0
- package/src/api/eval/index.ts +28 -0
- package/src/api/eval/list.ts +49 -0
- package/src/api/eval/run-get.ts +39 -0
- package/src/api/eval/run-list.ts +59 -0
- package/src/api/index.ts +20 -0
- package/src/api/logger.ts +24 -0
- package/src/api/machine/index.ts +2 -0
- package/src/api/machine/machine.ts +160 -0
- package/src/api/machine/util.ts +5 -0
- package/src/api/org/env-delete.ts +37 -0
- package/src/api/org/env-get.ts +43 -0
- package/src/api/org/env-update.ts +38 -0
- package/src/api/org/index.ts +6 -0
- package/src/api/org/list.ts +28 -0
- package/src/api/org/resources.ts +140 -0
- package/src/api/org/util.ts +4 -0
- package/src/api/project/agent.ts +86 -0
- package/src/api/project/create.ts +47 -0
- package/src/api/project/delete.ts +25 -0
- package/src/api/project/deploy.ts +458 -0
- package/src/api/project/deployment.ts +195 -0
- package/src/api/project/env-delete.ts +45 -0
- package/src/api/project/env-update.ts +55 -0
- package/src/api/project/exists.ts +58 -0
- package/src/api/project/get.ts +49 -0
- package/src/api/project/hostname.ts +73 -0
- package/src/api/project/index.ts +13 -0
- package/src/api/project/list.ts +54 -0
- package/src/api/project/malware.ts +68 -0
- package/src/api/project/update-region.ts +44 -0
- package/src/api/project/util.ts +8 -0
- package/src/api/queue/analytics.ts +311 -0
- package/src/api/queue/destinations.ts +259 -0
- package/src/api/queue/dlq.ts +243 -0
- package/src/api/queue/index.ts +308 -0
- package/src/api/queue/messages.ts +784 -0
- package/src/api/queue/queues.ts +460 -0
- package/src/api/queue/sources.ts +294 -0
- package/src/api/queue/types.ts +1325 -0
- package/src/api/queue/util.ts +275 -0
- package/src/api/queue/validation.ts +560 -0
- package/src/api/queue/websocket.ts +521 -0
- package/src/api/region/create.ts +207 -0
- package/src/api/region/delete.ts +57 -0
- package/src/api/region/index.ts +4 -0
- package/src/api/region/list.ts +32 -0
- package/src/api/region/resources.ts +69 -0
- package/src/api/region/util.ts +3 -0
- package/src/api/sandbox/cli-list.ts +127 -0
- package/src/api/sandbox/client.ts +460 -0
- package/src/api/sandbox/create.ts +256 -0
- package/src/api/sandbox/destroy.ts +41 -0
- package/src/api/sandbox/disk-checkpoint.ts +179 -0
- package/src/api/sandbox/execute.ts +132 -0
- package/src/api/sandbox/execution.ts +183 -0
- package/src/api/sandbox/files.ts +596 -0
- package/src/api/sandbox/get.ts +249 -0
- package/src/api/sandbox/getStatus.ts +54 -0
- package/src/api/sandbox/index.ts +211 -0
- package/src/api/sandbox/list.ts +224 -0
- package/src/api/sandbox/pause.ts +39 -0
- package/src/api/sandbox/resolve.ts +98 -0
- package/src/api/sandbox/resume.ts +39 -0
- package/src/api/sandbox/run.ts +439 -0
- package/src/api/sandbox/runtime.ts +104 -0
- package/src/api/sandbox/snapshot-build.ts +94 -0
- package/src/api/sandbox/snapshot.ts +781 -0
- package/src/api/sandbox/util.ts +275 -0
- package/src/api/services/index.ts +1 -0
- package/src/api/services/stats.ts +213 -0
- package/src/api/session/get.ts +106 -0
- package/src/api/session/index.ts +3 -0
- package/src/api/session/list.ts +136 -0
- package/src/api/session/logs.ts +47 -0
- package/src/api/session/util.ts +3 -0
- package/src/api/storage/config.ts +111 -0
- package/src/api/storage/index.ts +4 -0
- package/src/api/storage/objects.ts +250 -0
- package/src/api/storage/types.ts +174 -0
- package/src/api/storage/util.ts +4 -0
- package/src/api/stream/get.ts +51 -0
- package/src/api/stream/index.ts +3 -0
- package/src/api/stream/list.ts +127 -0
- package/src/api/stream/util.ts +3 -0
- package/src/api/thread/delete.ts +31 -0
- package/src/api/thread/get.ts +34 -0
- package/src/api/thread/index.ts +4 -0
- package/src/api/thread/list.ts +76 -0
- package/src/api/thread/util.ts +3 -0
- package/src/api/user/index.ts +1 -0
- package/src/api/user/util.ts +3 -0
- package/src/api/user/whoami.ts +32 -0
- package/src/api/webhook/deliveries.ts +129 -0
- package/src/api/webhook/destinations.ts +224 -0
- package/src/api/webhook/index.ts +133 -0
- package/src/api/webhook/receipts.ts +124 -0
- package/src/api/webhook/types.ts +309 -0
- package/src/api/webhook/util.ts +234 -0
- package/src/api/webhook/webhooks.ts +260 -0
- package/src/env-example.ts +90 -0
- package/src/index.ts +209 -206
- package/src/services/email.ts +15 -24
- package/src/services/keyvalue.ts +10 -13
- package/src/services/queue.ts +3 -6
- package/src/services/schedule.ts +8 -19
- package/src/services/stream.ts +4 -4
- package/src/services/vector.ts +9 -12
- package/src/services/webhook.ts +14 -24
|
@@ -0,0 +1 @@
|
|
|
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,eAAe,CAAC;AAOjG,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EACN,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,aAAa,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAQrE,OAAO,EACN,wBAAwB,EACxB,kCAAkC,EAClC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,oB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,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EACN,sBAAsB,EACtB,0BAA0B,EAC1B,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,GACX,MAAM,cAAc,CAAC;AAsBtB,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,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAExF,OAAO,EACN,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,GACb,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import type { ListSandboxesParams, ListSandboxesResponse } from '../../services/sandbox.ts';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type APIClient } from '../api.ts';
|
|
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
|
+
creating: "creating";
|
|
55
|
+
idle: "idle";
|
|
56
|
+
running: "running";
|
|
57
|
+
paused: "paused";
|
|
58
|
+
stopping: "stopping";
|
|
59
|
+
suspended: "suspended";
|
|
60
|
+
terminated: "terminated";
|
|
61
|
+
failed: "failed";
|
|
62
|
+
deleted: "deleted";
|
|
63
|
+
}>;
|
|
64
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
65
|
+
createdAt: z.ZodString;
|
|
66
|
+
region: z.ZodOptional<z.ZodString>;
|
|
67
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
71
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
72
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
snapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
name: z.ZodOptional<z.ZodString>;
|
|
77
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
78
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
79
|
+
public: z.ZodLiteral<true>;
|
|
80
|
+
org: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
name: z.ZodOptional<z.ZodString>;
|
|
88
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
89
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
90
|
+
public: z.ZodLiteral<false>;
|
|
91
|
+
user: z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
94
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
}, z.core.$strip>]>>;
|
|
97
|
+
executions: z.ZodNumber;
|
|
98
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
99
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
100
|
+
auditStreamId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
auditStreamUrl: z.ZodOptional<z.ZodString>;
|
|
102
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
url: z.ZodOptional<z.ZodString>;
|
|
105
|
+
org: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
111
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
exec: z.ZodArray<z.ZodString>;
|
|
115
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
oneshot: "oneshot";
|
|
117
|
+
interactive: "interactive";
|
|
118
|
+
}>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export declare const ListSandboxesDataSchema: z.ZodObject<{
|
|
122
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
123
|
+
sandboxId: z.ZodString;
|
|
124
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
|
+
description: z.ZodOptional<z.ZodString>;
|
|
127
|
+
status: z.ZodEnum<{
|
|
128
|
+
creating: "creating";
|
|
129
|
+
idle: "idle";
|
|
130
|
+
running: "running";
|
|
131
|
+
paused: "paused";
|
|
132
|
+
stopping: "stopping";
|
|
133
|
+
suspended: "suspended";
|
|
134
|
+
terminated: "terminated";
|
|
135
|
+
failed: "failed";
|
|
136
|
+
deleted: "deleted";
|
|
137
|
+
}>;
|
|
138
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
139
|
+
createdAt: z.ZodString;
|
|
140
|
+
region: z.ZodOptional<z.ZodString>;
|
|
141
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
name: z.ZodString;
|
|
144
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
145
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
146
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
snapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
name: z.ZodOptional<z.ZodString>;
|
|
151
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
152
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
153
|
+
public: z.ZodLiteral<true>;
|
|
154
|
+
org: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
name: z.ZodOptional<z.ZodString>;
|
|
162
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
163
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
164
|
+
public: z.ZodLiteral<false>;
|
|
165
|
+
user: z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
168
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
}, z.core.$strip>]>>;
|
|
171
|
+
executions: z.ZodNumber;
|
|
172
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
173
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
174
|
+
auditStreamId: z.ZodOptional<z.ZodString>;
|
|
175
|
+
auditStreamUrl: z.ZodOptional<z.ZodString>;
|
|
176
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
url: z.ZodOptional<z.ZodString>;
|
|
179
|
+
org: z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
185
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
exec: z.ZodArray<z.ZodString>;
|
|
189
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
oneshot: "oneshot";
|
|
191
|
+
interactive: "interactive";
|
|
192
|
+
}>>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
total: z.ZodNumber;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
export declare const ListSandboxesResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
|
+
success: z.ZodLiteral<false>;
|
|
199
|
+
message: z.ZodString;
|
|
200
|
+
code: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
+
success: z.ZodLiteral<true>;
|
|
203
|
+
data: z.ZodObject<{
|
|
204
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
205
|
+
sandboxId: z.ZodString;
|
|
206
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
207
|
+
name: z.ZodOptional<z.ZodString>;
|
|
208
|
+
description: z.ZodOptional<z.ZodString>;
|
|
209
|
+
status: z.ZodEnum<{
|
|
210
|
+
creating: "creating";
|
|
211
|
+
idle: "idle";
|
|
212
|
+
running: "running";
|
|
213
|
+
paused: "paused";
|
|
214
|
+
stopping: "stopping";
|
|
215
|
+
suspended: "suspended";
|
|
216
|
+
terminated: "terminated";
|
|
217
|
+
failed: "failed";
|
|
218
|
+
deleted: "deleted";
|
|
219
|
+
}>;
|
|
220
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
221
|
+
createdAt: z.ZodString;
|
|
222
|
+
region: z.ZodOptional<z.ZodString>;
|
|
223
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
227
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
228
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
snapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
name: z.ZodOptional<z.ZodString>;
|
|
233
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
234
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
235
|
+
public: z.ZodLiteral<true>;
|
|
236
|
+
org: z.ZodObject<{
|
|
237
|
+
id: z.ZodString;
|
|
238
|
+
name: z.ZodString;
|
|
239
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
name: z.ZodOptional<z.ZodString>;
|
|
244
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
245
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
246
|
+
public: z.ZodLiteral<false>;
|
|
247
|
+
user: z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
250
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
}, z.core.$strip>]>>;
|
|
253
|
+
executions: z.ZodNumber;
|
|
254
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
255
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
256
|
+
auditStreamId: z.ZodOptional<z.ZodString>;
|
|
257
|
+
auditStreamUrl: z.ZodOptional<z.ZodString>;
|
|
258
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
url: z.ZodOptional<z.ZodString>;
|
|
261
|
+
org: z.ZodObject<{
|
|
262
|
+
id: z.ZodString;
|
|
263
|
+
name: z.ZodString;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
267
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
exec: z.ZodArray<z.ZodString>;
|
|
271
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
272
|
+
oneshot: "oneshot";
|
|
273
|
+
interactive: "interactive";
|
|
274
|
+
}>>;
|
|
275
|
+
}, z.core.$strip>>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
|
+
total: z.ZodNumber;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
}, z.core.$strip>], "success">;
|
|
280
|
+
export interface SandboxListParams extends ListSandboxesParams {
|
|
281
|
+
orgId?: string;
|
|
282
|
+
deletedOnly?: boolean;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Lists sandboxes with optional filtering and pagination.
|
|
286
|
+
*
|
|
287
|
+
* @param client - The API client to use for the request
|
|
288
|
+
* @param params - Optional parameters for filtering by project, status, and pagination
|
|
289
|
+
* @returns Paginated list of sandboxes with total count
|
|
290
|
+
* @throws {SandboxResponseError} If the request fails
|
|
291
|
+
*/
|
|
292
|
+
export declare function sandboxList(client: APIClient, params?: SandboxListParams): Promise<ListSandboxesResponse>;
|
|
293
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,2BAA2B,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,WAAW,CAAC;AAG9D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiDmB,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,CA4EhC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIResponseSchema } from "../api.js";
|
|
3
|
+
import { throwSandboxError } from "./util.js";
|
|
4
|
+
export const SandboxOrgInfoSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
id: z.string().describe('Organization ID'),
|
|
7
|
+
name: z.string().describe('Organization name'),
|
|
8
|
+
})
|
|
9
|
+
.describe('Organization associated with the sandbox');
|
|
10
|
+
export const SandboxRuntimeInfoSchema = z
|
|
11
|
+
.object({
|
|
12
|
+
id: z.string().describe('Runtime ID'),
|
|
13
|
+
name: z.string().describe('Runtime name (e.g., "bun:1")'),
|
|
14
|
+
iconUrl: z.string().optional().describe('URL for runtime icon'),
|
|
15
|
+
brandColor: z.string().optional().describe('Brand color for the runtime (hex color code)'),
|
|
16
|
+
tags: z.array(z.string()).optional().describe('Optional tags for categorization'),
|
|
17
|
+
})
|
|
18
|
+
.describe('Runtime information');
|
|
19
|
+
export const SandboxSnapshotUserInfoSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
id: z.string().describe('User ID'),
|
|
22
|
+
firstName: z.string().optional().describe("User's first name"),
|
|
23
|
+
lastName: z.string().optional().describe("User's last name"),
|
|
24
|
+
})
|
|
25
|
+
.describe('Snapshot user information');
|
|
26
|
+
export const SandboxSnapshotOrgInfoSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
id: z.string().describe('Organization ID'),
|
|
29
|
+
name: z.string().describe('Organization name'),
|
|
30
|
+
slug: z.string().optional().describe('Organization slug'),
|
|
31
|
+
})
|
|
32
|
+
.describe('Snapshot organization information');
|
|
33
|
+
export const SandboxSnapshotInfoSchema = z
|
|
34
|
+
.union([
|
|
35
|
+
z
|
|
36
|
+
.object({
|
|
37
|
+
id: z.string().describe('Snapshot ID'),
|
|
38
|
+
name: z.string().optional().describe('Snapshot name'),
|
|
39
|
+
tag: z.string().optional().describe('Snapshot tag'),
|
|
40
|
+
fullName: z.string().optional().describe('Full name with org slug (@slug/name:tag)'),
|
|
41
|
+
public: z.literal(true).describe('Public snapshot'),
|
|
42
|
+
org: SandboxSnapshotOrgInfoSchema.describe('Organization that owns the public snapshot'),
|
|
43
|
+
})
|
|
44
|
+
.describe('Public snapshot'),
|
|
45
|
+
z
|
|
46
|
+
.object({
|
|
47
|
+
id: z.string().describe('Snapshot ID'),
|
|
48
|
+
name: z.string().optional().describe('Snapshot name'),
|
|
49
|
+
tag: z.string().optional().describe('Snapshot tag'),
|
|
50
|
+
fullName: z.string().optional().describe('Full name with org slug (@slug/name:tag)'),
|
|
51
|
+
public: z.literal(false).describe('Private snapshot'),
|
|
52
|
+
user: SandboxSnapshotUserInfoSchema.describe('User who created the private snapshot'),
|
|
53
|
+
})
|
|
54
|
+
.describe('Private snapshot'),
|
|
55
|
+
])
|
|
56
|
+
.describe('Snapshot information (discriminated union)');
|
|
57
|
+
export const SandboxInfoSchema = z
|
|
58
|
+
.object({
|
|
59
|
+
sandboxId: z.string().describe('Unique identifier for the sandbox'),
|
|
60
|
+
identifier: z.string().optional().describe('Short identifier for DNS hostname'),
|
|
61
|
+
name: z.string().optional().describe('Sandbox name'),
|
|
62
|
+
description: z.string().optional().describe('Sandbox description'),
|
|
63
|
+
status: z
|
|
64
|
+
.enum([
|
|
65
|
+
'creating',
|
|
66
|
+
'idle',
|
|
67
|
+
'running',
|
|
68
|
+
'paused',
|
|
69
|
+
'stopping',
|
|
70
|
+
'suspended',
|
|
71
|
+
'terminated',
|
|
72
|
+
'failed',
|
|
73
|
+
'deleted',
|
|
74
|
+
])
|
|
75
|
+
.describe('Current status of the sandbox'),
|
|
76
|
+
mode: z.string().optional().describe('Sandbox mode (interactive or oneshot)'),
|
|
77
|
+
createdAt: z.string().describe('ISO timestamp when the sandbox was created'),
|
|
78
|
+
region: z.string().optional().describe('Region where the sandbox is running'),
|
|
79
|
+
runtime: SandboxRuntimeInfoSchema.optional().describe('Runtime information'),
|
|
80
|
+
snapshot: SandboxSnapshotInfoSchema.optional().describe('Snapshot information'),
|
|
81
|
+
executions: z.number().describe('Total number of executions in this sandbox'),
|
|
82
|
+
stdoutStreamUrl: z.string().optional().describe('URL for streaming stdout output'),
|
|
83
|
+
stderrStreamUrl: z.string().optional().describe('URL for streaming stderr output'),
|
|
84
|
+
auditStreamId: z.string().optional().describe('ID of the audit event stream'),
|
|
85
|
+
auditStreamUrl: z.string().optional().describe('URL for streaming audit events'),
|
|
86
|
+
networkEnabled: z.boolean().optional().describe('Whether network access is enabled'),
|
|
87
|
+
networkPort: z.number().optional().describe('Network port exposed from the sandbox'),
|
|
88
|
+
url: z
|
|
89
|
+
.string()
|
|
90
|
+
.optional()
|
|
91
|
+
.describe('Public URL for the sandbox (only set if networkPort is configured)'),
|
|
92
|
+
org: SandboxOrgInfoSchema.describe('Organization associated with the sandbox'),
|
|
93
|
+
timeout: z
|
|
94
|
+
.object({
|
|
95
|
+
idle: z.string().optional(),
|
|
96
|
+
execution: z.string().optional(),
|
|
97
|
+
})
|
|
98
|
+
.optional(),
|
|
99
|
+
command: z
|
|
100
|
+
.object({
|
|
101
|
+
exec: z.array(z.string()),
|
|
102
|
+
mode: z.enum(['oneshot', 'interactive']).optional(),
|
|
103
|
+
})
|
|
104
|
+
.optional(),
|
|
105
|
+
})
|
|
106
|
+
.describe('Summary information about a sandbox');
|
|
107
|
+
export const ListSandboxesDataSchema = z
|
|
108
|
+
.object({
|
|
109
|
+
sandboxes: z.array(SandboxInfoSchema).describe('List of sandbox entries'),
|
|
110
|
+
total: z.number().describe('Total number of sandboxes matching the query'),
|
|
111
|
+
})
|
|
112
|
+
.describe('Paginated list of sandboxes');
|
|
113
|
+
export const ListSandboxesResponseSchema = APIResponseSchema(ListSandboxesDataSchema);
|
|
114
|
+
/**
|
|
115
|
+
* Lists sandboxes with optional filtering and pagination.
|
|
116
|
+
*
|
|
117
|
+
* @param client - The API client to use for the request
|
|
118
|
+
* @param params - Optional parameters for filtering by project, status, and pagination
|
|
119
|
+
* @returns Paginated list of sandboxes with total count
|
|
120
|
+
* @throws {SandboxResponseError} If the request fails
|
|
121
|
+
*/
|
|
122
|
+
export async function sandboxList(client, params) {
|
|
123
|
+
const queryParams = new URLSearchParams();
|
|
124
|
+
if (params?.orgId) {
|
|
125
|
+
queryParams.set('orgId', params.orgId);
|
|
126
|
+
}
|
|
127
|
+
if (params?.name) {
|
|
128
|
+
queryParams.set('name', params.name);
|
|
129
|
+
}
|
|
130
|
+
if (params?.mode) {
|
|
131
|
+
queryParams.set('mode', params.mode);
|
|
132
|
+
}
|
|
133
|
+
if (params?.projectId) {
|
|
134
|
+
queryParams.set('projectId', params.projectId);
|
|
135
|
+
}
|
|
136
|
+
if (params?.snapshotId) {
|
|
137
|
+
queryParams.set('snapshotId', params.snapshotId);
|
|
138
|
+
}
|
|
139
|
+
if (params?.status) {
|
|
140
|
+
queryParams.set('status', params.status);
|
|
141
|
+
}
|
|
142
|
+
if (params?.live !== undefined) {
|
|
143
|
+
queryParams.set('live', params.live.toString());
|
|
144
|
+
}
|
|
145
|
+
if (params?.limit !== undefined) {
|
|
146
|
+
queryParams.set('limit', params.limit.toString());
|
|
147
|
+
}
|
|
148
|
+
if (params?.offset !== undefined) {
|
|
149
|
+
queryParams.set('offset', params.offset.toString());
|
|
150
|
+
}
|
|
151
|
+
if (params?.sort) {
|
|
152
|
+
queryParams.set('sort', params.sort);
|
|
153
|
+
}
|
|
154
|
+
if (params?.direction) {
|
|
155
|
+
queryParams.set('direction', params.direction);
|
|
156
|
+
}
|
|
157
|
+
if (params?.deletedOnly) {
|
|
158
|
+
queryParams.set('deletedOnly', 'true');
|
|
159
|
+
}
|
|
160
|
+
const queryString = queryParams.toString();
|
|
161
|
+
const url = `/sandbox${queryString ? `?${queryString}` : ''}`;
|
|
162
|
+
const resp = await client.get(url, ListSandboxesResponseSchema);
|
|
163
|
+
if (resp.success) {
|
|
164
|
+
return {
|
|
165
|
+
sandboxes: resp.data.sandboxes.map((s) => ({
|
|
166
|
+
sandboxId: s.sandboxId,
|
|
167
|
+
identifier: s.identifier,
|
|
168
|
+
name: s.name,
|
|
169
|
+
description: s.description,
|
|
170
|
+
status: s.status,
|
|
171
|
+
mode: s.mode,
|
|
172
|
+
createdAt: s.createdAt,
|
|
173
|
+
region: s.region,
|
|
174
|
+
runtime: s.runtime,
|
|
175
|
+
snapshot: s.snapshot,
|
|
176
|
+
executions: s.executions,
|
|
177
|
+
stdoutStreamUrl: s.stdoutStreamUrl,
|
|
178
|
+
stderrStreamUrl: s.stderrStreamUrl,
|
|
179
|
+
auditStreamId: s.auditStreamId,
|
|
180
|
+
auditStreamUrl: s.auditStreamUrl,
|
|
181
|
+
networkEnabled: s.networkEnabled,
|
|
182
|
+
networkPort: s.networkPort,
|
|
183
|
+
url: s.url,
|
|
184
|
+
org: s.org,
|
|
185
|
+
})),
|
|
186
|
+
total: resp.data.total,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
throwSandboxError(resp, {});
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,WAAW,CAAC;AAC9D,OAAO,EAAE,iBAAiB,E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APIClient } from '../api.ts';
|
|
3
|
+
export declare const PauseResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
success: z.ZodLiteral<false>;
|
|
5
|
+
message: z.ZodString;
|
|
6
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
+
success: z.ZodLiteral<true>;
|
|
9
|
+
}, z.core.$strip>], "success">;
|
|
10
|
+
export interface SandboxPauseParams {
|
|
11
|
+
sandboxId: string;
|
|
12
|
+
orgId?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Pauses a running sandbox, creating a checkpoint of its current state.
|
|
16
|
+
*
|
|
17
|
+
* @param client - The API client to use for the request
|
|
18
|
+
* @param params - Parameters including the sandbox ID to pause
|
|
19
|
+
* @throws {SandboxResponseError} If the sandbox is not found or pause fails
|
|
20
|
+
*/
|
|
21
|
+
export declare function sandboxPause(client: APIClient, params: SandboxPauseParams): Promise<void>;
|
|
22
|
+
//# sourceMappingURL=pause.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/api/sandbox/pause.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,WAAW,CAAC;AAGpE,eAAO,MAAM,mBAAmB;;;;;;8BAA4B,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoB/F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { APIResponseSchemaNoData } from "../api.js";
|
|
2
|
+
import { throwSandboxError } from "./util.js";
|
|
3
|
+
export const PauseResponseSchema = APIResponseSchemaNoData();
|
|
4
|
+
/**
|
|
5
|
+
* Pauses a running sandbox, creating a checkpoint of its current state.
|
|
6
|
+
*
|
|
7
|
+
* @param client - The API client to use for the request
|
|
8
|
+
* @param params - Parameters including the sandbox ID to pause
|
|
9
|
+
* @throws {SandboxResponseError} If the sandbox is not found or pause fails
|
|
10
|
+
*/
|
|
11
|
+
export async function sandboxPause(client, params) {
|
|
12
|
+
const { sandboxId, orgId } = params;
|
|
13
|
+
const queryParams = new URLSearchParams();
|
|
14
|
+
if (orgId) {
|
|
15
|
+
queryParams.set('orgId', orgId);
|
|
16
|
+
}
|
|
17
|
+
const queryString = queryParams.toString();
|
|
18
|
+
const url = `/sandbox/${sandboxId}/pause${queryString ? `?${queryString}` : ''}`;
|
|
19
|
+
const resp = await client.post(url, undefined, PauseResponseSchema);
|
|
20
|
+
if (resp.success) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
throwSandboxError(resp, { sandboxId });
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=pause.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause.js","sourceRoot":"","sources":["../../../src/api/sandbox/pause.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,EAAE,CAAC;AAO7D;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAAiB,EAAE,MAA0B;IAC/E,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACpC,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;IAC1C,IAAI,KAAK,EAAE,CAAC;QACX,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,WAAW,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;IAC3C,MAAM,GAAG,GAAG,YAAY,SAAS,SAAS,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAEjF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAC7B,GAAG,EACH,SAAS,EACT,mBAAmB,CACnB,CAAC;IAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO;IACR,CAAC;IAED,iBAAiB,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type APIClient } from '../api.ts';
|
|
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">;
|
|
32
|
+
/**
|
|
33
|
+
* Resolved sandbox info returned from the CLI API
|
|
34
|
+
*/
|
|
35
|
+
export interface ResolvedSandboxInfo {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string | null;
|
|
38
|
+
region: string;
|
|
39
|
+
status: string;
|
|
40
|
+
orgId: string;
|
|
41
|
+
projectId: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Error thrown when sandbox resolution fails.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* try {
|
|
49
|
+
* await sandboxResolve(client, 'sbx_123');
|
|
50
|
+
* } catch (error) {
|
|
51
|
+
* if (error._tag === 'SandboxResolveError') {
|
|
52
|
+
* console.error(`Sandbox not found: ${error.sandboxId}`);
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare const SandboxResolveError: {
|
|
58
|
+
new (args?: ({
|
|
59
|
+
sandboxId?: string;
|
|
60
|
+
statusCode?: number;
|
|
61
|
+
} & {
|
|
62
|
+
message?: string;
|
|
63
|
+
cause?: unknown;
|
|
64
|
+
}) | undefined): import("../../error.ts").RichError & {
|
|
65
|
+
readonly _tag: "SandboxResolveError";
|
|
66
|
+
} & Readonly<{
|
|
67
|
+
sandboxId?: string;
|
|
68
|
+
statusCode?: number;
|
|
69
|
+
}>;
|
|
70
|
+
readonly defaultMessage?: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Resolve a sandbox by ID across all organizations the user has access to.
|
|
74
|
+
* Uses the CLI API endpoint which searches across all user's orgs.
|
|
75
|
+
*
|
|
76
|
+
* @param client - API client configured for CLI endpoints
|
|
77
|
+
* @param sandboxId - The sandbox ID to resolve
|
|
78
|
+
* @returns Resolved sandbox info including region and orgId
|
|
79
|
+
* @throws {SandboxResolveError} If sandbox not found or request fails
|
|
80
|
+
*/
|
|
81
|
+
export declare function sandboxResolve(client: APIClient, sandboxId: string): Promise<ResolvedSandboxInfo>;
|
|
82
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,WAAW,CAAC;AAE1E;;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"}
|