@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,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIClient } from '../api.ts';
|
|
3
|
+
export declare const OrgEnvDataSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const OrgEnvGetResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
success: z.ZodLiteral<false>;
|
|
10
|
+
message: z.ZodString;
|
|
11
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
success: z.ZodLiteral<true>;
|
|
14
|
+
data: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
17
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>], "success">;
|
|
20
|
+
interface OrgEnvGetRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
mask?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type OrgEnvGetResponse = z.infer<typeof OrgEnvGetResponseSchema>;
|
|
25
|
+
export type OrgEnv = z.infer<typeof OrgEnvDataSchema>;
|
|
26
|
+
/**
|
|
27
|
+
* Get environment variables and secrets for an organization.
|
|
28
|
+
* Secrets are masked by default unless mask=false is specified.
|
|
29
|
+
* Note: Unmasked values require admin/owner role.
|
|
30
|
+
*/
|
|
31
|
+
export declare function orgEnvGet(client: APIClient, request: OrgEnvGetRequest): Promise<OrgEnv>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=env-get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-get.d.ts","sourceRoot":"","sources":["../../../src/api/org/env-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;8BAAsC,CAAC;AAE3E,UAAU,gBAAgB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AACD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtD;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB7F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIResponseSchema } from "../api.js";
|
|
3
|
+
import { OrgResponseError } from "./util.js";
|
|
4
|
+
export const OrgEnvDataSchema = z.object({
|
|
5
|
+
id: z.string().describe('the organization id'),
|
|
6
|
+
env: z.record(z.string(), z.string()).optional().describe('environment variables'),
|
|
7
|
+
secrets: z.record(z.string(), z.string()).optional().describe('secrets (may be masked)'),
|
|
8
|
+
});
|
|
9
|
+
export const OrgEnvGetResponseSchema = APIResponseSchema(OrgEnvDataSchema);
|
|
10
|
+
/**
|
|
11
|
+
* Get environment variables and secrets for an organization.
|
|
12
|
+
* Secrets are masked by default unless mask=false is specified.
|
|
13
|
+
* Note: Unmasked values require admin/owner role.
|
|
14
|
+
*/
|
|
15
|
+
export async function orgEnvGet(client, request) {
|
|
16
|
+
const { id, mask = true } = request;
|
|
17
|
+
const resp = await client.get(`/cli/organization/${encodeURIComponent(id)}/env?mask=${mask}`, OrgEnvGetResponseSchema);
|
|
18
|
+
if (!resp.success) {
|
|
19
|
+
throw new OrgResponseError({ message: resp.message ?? 'failed to get org env' });
|
|
20
|
+
}
|
|
21
|
+
if (!resp.data) {
|
|
22
|
+
throw new OrgResponseError({ message: 'failed to get org env: no data returned' });
|
|
23
|
+
}
|
|
24
|
+
return resp.data;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=env-get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-get.js","sourceRoot":"","sources":["../../../src/api/org/env-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,E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,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIClient } from '../api.ts';
|
|
3
|
+
export declare const OrgEnvUpdateRequestSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const OrgEnvUpdateResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
success: z.ZodLiteral<false>;
|
|
10
|
+
message: z.ZodString;
|
|
11
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
success: z.ZodLiteral<true>;
|
|
14
|
+
}, z.core.$strip>], "success">;
|
|
15
|
+
export type OrgEnvUpdateRequest = z.infer<typeof OrgEnvUpdateRequestSchema>;
|
|
16
|
+
export type OrgEnvUpdateResponse = z.infer<typeof OrgEnvUpdateResponseSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* Update environment variables and/or secrets for an organization.
|
|
19
|
+
* This will merge the provided env/secrets with existing values.
|
|
20
|
+
* Requires admin/owner role.
|
|
21
|
+
* Keys starting with 'AGENTUITY_' (except AGENTUITY_PUBLIC_) are filtered out.
|
|
22
|
+
*/
|
|
23
|
+
export declare function orgEnvUpdate(client: APIClient, request: OrgEnvUpdateRequest): Promise<void>;
|
|
24
|
+
//# sourceMappingURL=env-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-update.d.ts","sourceRoot":"","sources":["../../../src/api/org/env-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAA2B,MAAM,WAAW,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;8BAA4B,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBjG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIResponseSchemaNoData } from "../api.js";
|
|
3
|
+
import { OrgResponseError } from "./util.js";
|
|
4
|
+
export const OrgEnvUpdateRequestSchema = z.object({
|
|
5
|
+
id: z.string().describe('the organization id'),
|
|
6
|
+
env: z.record(z.string(), z.string()).optional().describe('environment variables to set/update'),
|
|
7
|
+
secrets: z.record(z.string(), z.string()).optional().describe('secrets to set/update'),
|
|
8
|
+
});
|
|
9
|
+
export const OrgEnvUpdateResponseSchema = APIResponseSchemaNoData();
|
|
10
|
+
/**
|
|
11
|
+
* Update environment variables and/or secrets for an organization.
|
|
12
|
+
* This will merge the provided env/secrets with existing values.
|
|
13
|
+
* Requires admin/owner role.
|
|
14
|
+
* Keys starting with 'AGENTUITY_' (except AGENTUITY_PUBLIC_) are filtered out.
|
|
15
|
+
*/
|
|
16
|
+
export async function orgEnvUpdate(client, request) {
|
|
17
|
+
const { id, env, secrets } = request;
|
|
18
|
+
const resp = await client.request('PUT', `/cli/organization/${id}/env`, OrgEnvUpdateResponseSchema, {
|
|
19
|
+
env,
|
|
20
|
+
secrets,
|
|
21
|
+
});
|
|
22
|
+
if (!resp.success) {
|
|
23
|
+
throw new OrgResponseError({ message: resp.message ?? 'failed to update org env' });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=env-update.js.map
|
|
@@ -0,0 +1 @@
|
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/org/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/org/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIClient } from '../api.ts';
|
|
3
|
+
export declare const ListOrganizationsResponse: z.ZodArray<z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
}, z.core.$strip>>;
|
|
7
|
+
export declare const ListOrganizationsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
success: z.ZodLiteral<false>;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
code: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
success: z.ZodLiteral<true>;
|
|
13
|
+
data: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>], "success">;
|
|
18
|
+
export type ListOrganizationsResponse = z.infer<typeof ListOrganizationsResponseSchema>;
|
|
19
|
+
export type OrganizationList = z.infer<typeof ListOrganizationsResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* List all organizations
|
|
22
|
+
*
|
|
23
|
+
* @param client
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function listOrganizations(client: APIClient): Promise<OrganizationList>;
|
|
27
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/org/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAqB,SAAS,EAAE,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,yBAAyB;;;kBAKrC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;8BAA+C,CAAC;AAE5F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAMpF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIResponseSchema } from "../api.js";
|
|
3
|
+
import { OrgResponseError } from "./util.js";
|
|
4
|
+
export const ListOrganizationsResponse = z.array(z.object({
|
|
5
|
+
id: z.string().describe('the unique id for the organization'),
|
|
6
|
+
name: z.string().describe('the name of the organization'),
|
|
7
|
+
}));
|
|
8
|
+
export const ListOrganizationsResponseSchema = APIResponseSchema(ListOrganizationsResponse);
|
|
9
|
+
/**
|
|
10
|
+
* List all organizations
|
|
11
|
+
*
|
|
12
|
+
* @param client
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export async function listOrganizations(client) {
|
|
16
|
+
const resp = await client.get('/cli/organization', ListOrganizationsResponseSchema);
|
|
17
|
+
if (resp.success) {
|
|
18
|
+
return resp.data;
|
|
19
|
+
}
|
|
20
|
+
throw new OrgResponseError({ message: resp.message });
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/org/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAa,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC/C,CAAC,CAAC,MAAM,CAAC;IACR,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CACzD,CAAC,CACF,CAAC;AACF,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;AAK5F;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,MAAiB;IACxD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,+BAA+B,CAAC,CAAC;IACpF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { SortDirection } from '../../services/pagination.ts';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { APIClient } from '../api.ts';
|
|
4
|
+
export declare const OrgS3Resource: z.ZodObject<{
|
|
5
|
+
bucket_name: z.ZodString;
|
|
6
|
+
access_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
secret_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
cloud_region: z.ZodString;
|
|
11
|
+
org_id: z.ZodString;
|
|
12
|
+
org_name: z.ZodString;
|
|
13
|
+
bucket_type: z.ZodString;
|
|
14
|
+
internal: z.ZodBoolean;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
object_count: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
total_size: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
last_event_at: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const OrgDBResource: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
cloud_region: z.ZodString;
|
|
27
|
+
org_id: z.ZodString;
|
|
28
|
+
org_name: z.ZodString;
|
|
29
|
+
internal: z.ZodBoolean;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const OrgResourceListResponse: z.ZodObject<{
|
|
32
|
+
s3: z.ZodArray<z.ZodObject<{
|
|
33
|
+
bucket_name: z.ZodString;
|
|
34
|
+
access_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
secret_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
cloud_region: z.ZodString;
|
|
39
|
+
org_id: z.ZodString;
|
|
40
|
+
org_name: z.ZodString;
|
|
41
|
+
bucket_type: z.ZodString;
|
|
42
|
+
internal: z.ZodBoolean;
|
|
43
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
object_count: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
total_size: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
last_event_at: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
db: z.ZodArray<z.ZodObject<{
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
cloud_region: z.ZodString;
|
|
55
|
+
org_id: z.ZodString;
|
|
56
|
+
org_name: z.ZodString;
|
|
57
|
+
internal: z.ZodBoolean;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const OrgResourceListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
success: z.ZodLiteral<false>;
|
|
62
|
+
message: z.ZodString;
|
|
63
|
+
code: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
success: z.ZodLiteral<true>;
|
|
66
|
+
data: z.ZodObject<{
|
|
67
|
+
s3: z.ZodArray<z.ZodObject<{
|
|
68
|
+
bucket_name: z.ZodString;
|
|
69
|
+
access_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
secret_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
cloud_region: z.ZodString;
|
|
74
|
+
org_id: z.ZodString;
|
|
75
|
+
org_name: z.ZodString;
|
|
76
|
+
bucket_type: z.ZodString;
|
|
77
|
+
internal: z.ZodBoolean;
|
|
78
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
object_count: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
total_size: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
last_event_at: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
db: z.ZodArray<z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
cloud_region: z.ZodString;
|
|
90
|
+
org_id: z.ZodString;
|
|
91
|
+
org_name: z.ZodString;
|
|
92
|
+
internal: z.ZodBoolean;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>], "success">;
|
|
96
|
+
export type OrgResourceListResponse = z.infer<typeof OrgResourceListResponseSchema>;
|
|
97
|
+
export type OrgResourceList = z.infer<typeof OrgResourceListResponse>;
|
|
98
|
+
export type OrgS3Resource = z.infer<typeof OrgS3Resource>;
|
|
99
|
+
export type OrgDBResource = z.infer<typeof OrgDBResource>;
|
|
100
|
+
export type ResourceSortField = 'name' | 'created' | 'region';
|
|
101
|
+
export interface ListOrgResourcesOptions {
|
|
102
|
+
/** Filter by resource type (default: "all") */
|
|
103
|
+
type?: 'all' | 's3' | 'db';
|
|
104
|
+
/** Filter by resource name substring */
|
|
105
|
+
name?: string;
|
|
106
|
+
/** Organization ID (required for CLI auth, extracted from context for SDK auth) */
|
|
107
|
+
orgId?: string;
|
|
108
|
+
/** Maximum number of resources to return */
|
|
109
|
+
limit?: number;
|
|
110
|
+
/** Number of resources to skip for pagination */
|
|
111
|
+
offset?: number;
|
|
112
|
+
/** Field to sort by */
|
|
113
|
+
sort?: ResourceSortField;
|
|
114
|
+
/** Sort direction (default: 'desc') */
|
|
115
|
+
direction?: SortDirection;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* List all resources for the authenticated organization (across all regions)
|
|
119
|
+
*
|
|
120
|
+
* @param client - Catalyst API client (must be authenticated)
|
|
121
|
+
* @param options - Optional filters including orgId for CLI auth
|
|
122
|
+
* @returns List of S3 and DB resources with their cloud regions
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* // Get all resources (SDK auth - orgId from context)
|
|
126
|
+
* const all = await listOrgResources(client);
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* // Get all resources (CLI auth - orgId required)
|
|
130
|
+
* const all = await listOrgResources(client, { orgId: 'org_123' });
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* // Get only S3 buckets
|
|
134
|
+
* const s3Only = await listOrgResources(client, { type: 's3', orgId: 'org_123' });
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* // Get only DBs
|
|
138
|
+
* const dbsOnly = await listOrgResources(client, { type: 'db', orgId: 'org_123' });
|
|
139
|
+
*/
|
|
140
|
+
export declare function listOrgResources(client: APIClient, options?: ListOrgResourcesOptions): Promise<OrgResourceList>;
|
|
141
|
+
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/api/org/resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,CAA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B,OAAO,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,eAAe,CAAC,CA2C1B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { APIResponseSchema } from "../api.js";
|
|
3
|
+
import { OrgResourceResponseError } from "./util.js";
|
|
4
|
+
export const OrgS3Resource = z.object({
|
|
5
|
+
bucket_name: z.string().describe('the S3 bucket name'),
|
|
6
|
+
access_key: z.string().nullable().optional().describe('the S3 access key'),
|
|
7
|
+
secret_key: z.string().nullable().optional().describe('the S3 secret key'),
|
|
8
|
+
region: z.string().nullable().optional().describe('the S3 region'),
|
|
9
|
+
endpoint: z.string().nullable().optional().describe('the S3 endpoint'),
|
|
10
|
+
cloud_region: z.string().describe('the cloud region where this resource is provisioned'),
|
|
11
|
+
org_id: z.string().describe('the organization ID that owns this resource'),
|
|
12
|
+
org_name: z.string().describe('the organization name that owns this resource'),
|
|
13
|
+
bucket_type: z.string().describe('the bucket type (user or snapshots)'),
|
|
14
|
+
internal: z.boolean().describe('whether this is a system-managed bucket'),
|
|
15
|
+
description: z.string().nullable().optional().describe('optional description of the bucket'),
|
|
16
|
+
object_count: z
|
|
17
|
+
.number()
|
|
18
|
+
.int()
|
|
19
|
+
.nonnegative()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('number of objects in this bucket'),
|
|
22
|
+
total_size: z.number().int().nonnegative().optional().describe('total size of objects in bytes'),
|
|
23
|
+
last_event_at: z.string().optional().describe('last activity timestamp (ISO8601)'),
|
|
24
|
+
});
|
|
25
|
+
export const OrgDBResource = z.object({
|
|
26
|
+
name: z.string().describe('the database name'),
|
|
27
|
+
description: z.string().nullable().optional().describe('optional description of the database'),
|
|
28
|
+
username: z.string().nullable().optional().describe('the database username'),
|
|
29
|
+
password: z.string().nullable().optional().describe('the database password'),
|
|
30
|
+
url: z.string().nullable().optional().describe('the full database connection URL'),
|
|
31
|
+
cloud_region: z.string().describe('the cloud region where this resource is provisioned'),
|
|
32
|
+
org_id: z.string().describe('the organization ID that owns this resource'),
|
|
33
|
+
org_name: z.string().describe('the organization name that owns this resource'),
|
|
34
|
+
internal: z.boolean().describe('whether this is a system-managed database (KV/Vector/Queue)'),
|
|
35
|
+
});
|
|
36
|
+
export const OrgResourceListResponse = z.object({
|
|
37
|
+
s3: z.array(OrgS3Resource),
|
|
38
|
+
db: z.array(OrgDBResource),
|
|
39
|
+
});
|
|
40
|
+
export const OrgResourceListResponseSchema = APIResponseSchema(OrgResourceListResponse);
|
|
41
|
+
/**
|
|
42
|
+
* List all resources for the authenticated organization (across all regions)
|
|
43
|
+
*
|
|
44
|
+
* @param client - Catalyst API client (must be authenticated)
|
|
45
|
+
* @param options - Optional filters including orgId for CLI auth
|
|
46
|
+
* @returns List of S3 and DB resources with their cloud regions
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* // Get all resources (SDK auth - orgId from context)
|
|
50
|
+
* const all = await listOrgResources(client);
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* // Get all resources (CLI auth - orgId required)
|
|
54
|
+
* const all = await listOrgResources(client, { orgId: 'org_123' });
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* // Get only S3 buckets
|
|
58
|
+
* const s3Only = await listOrgResources(client, { type: 's3', orgId: 'org_123' });
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* // Get only DBs
|
|
62
|
+
* const dbsOnly = await listOrgResources(client, { type: 'db', orgId: 'org_123' });
|
|
63
|
+
*/
|
|
64
|
+
export async function listOrgResources(client, options) {
|
|
65
|
+
const params = new URLSearchParams();
|
|
66
|
+
if (options?.type && options.type !== 'all') {
|
|
67
|
+
params.set('type', options.type);
|
|
68
|
+
}
|
|
69
|
+
if (options?.name) {
|
|
70
|
+
params.set('name', options.name);
|
|
71
|
+
}
|
|
72
|
+
if (options?.limit !== undefined) {
|
|
73
|
+
params.set('limit', options.limit.toString());
|
|
74
|
+
}
|
|
75
|
+
if (options?.offset !== undefined) {
|
|
76
|
+
params.set('offset', options.offset.toString());
|
|
77
|
+
}
|
|
78
|
+
if (options?.sort) {
|
|
79
|
+
params.set('sort', options.sort);
|
|
80
|
+
}
|
|
81
|
+
if (options?.direction) {
|
|
82
|
+
params.set('direction', options.direction);
|
|
83
|
+
}
|
|
84
|
+
const query = params.toString();
|
|
85
|
+
const url = `/resource${query ? `?${query}` : ''}`;
|
|
86
|
+
// Build headers - include orgId for CLI auth
|
|
87
|
+
const headers = {};
|
|
88
|
+
if (options?.orgId) {
|
|
89
|
+
headers['x-agentuity-orgid'] = options.orgId;
|
|
90
|
+
}
|
|
91
|
+
const resp = await client.request('GET', url, OrgResourceListResponseSchema, undefined, undefined, undefined, headers);
|
|
92
|
+
if (resp.success) {
|
|
93
|
+
return resp.data;
|
|
94
|
+
}
|
|
95
|
+
throw new OrgResourceResponseError({ message: resp.message });
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/api/org/resources.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAa,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACtD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC1E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC1E,MAAM,E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,6BAA6B,EAC7B,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,CACP,CAAC;IACF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,wBAAwB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const OrgResponseError: {
|
|
2
|
+
new (args?: {
|
|
3
|
+
message?: string;
|
|
4
|
+
cause?: unknown;
|
|
5
|
+
} | undefined): import("../../error.ts").RichError & {
|
|
6
|
+
readonly _tag: "OrgResponseError";
|
|
7
|
+
} & Readonly<Record<string, never>>;
|
|
8
|
+
readonly defaultMessage?: string;
|
|
9
|
+
} & (<Shape extends {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
} = Record<string, never>>() => {
|
|
12
|
+
new (args?: (Shape extends Record<string, never> ? {
|
|
13
|
+
message?: string;
|
|
14
|
+
cause?: unknown;
|
|
15
|
+
} : Shape & {
|
|
16
|
+
message?: string;
|
|
17
|
+
cause?: unknown;
|
|
18
|
+
}) | undefined): import("../../error.ts").RichError & {
|
|
19
|
+
readonly _tag: "OrgResponseError";
|
|
20
|
+
} & Readonly<Shape>;
|
|
21
|
+
readonly defaultMessage?: string;
|
|
22
|
+
});
|
|
23
|
+
export declare const OrgResourceResponseError: {
|
|
24
|
+
new (args?: {
|
|
25
|
+
message?: string;
|
|
26
|
+
cause?: unknown;
|
|
27
|
+
} | undefined): import("../../error.ts").RichError & {
|
|
28
|
+
readonly _tag: "OrgResourceResponseError";
|
|
29
|
+
} & Readonly<Record<string, never>>;
|
|
30
|
+
readonly defaultMessage?: string;
|
|
31
|
+
} & (<Shape extends {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
} = Record<string, never>>() => {
|
|
34
|
+
new (args?: (Shape extends Record<string, never> ? {
|
|
35
|
+
message?: string;
|
|
36
|
+
cause?: unknown;
|
|
37
|
+
} : Shape & {
|
|
38
|
+
message?: string;
|
|
39
|
+
cause?: unknown;
|
|
40
|
+
}) | undefined): import("../../error.ts").RichError & {
|
|
41
|
+
readonly _tag: "OrgResourceResponseError";
|
|
42
|
+
} & Readonly<Shape>;
|
|
43
|
+
readonly defaultMessage?: string;
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/api/org/util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC;AACpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAA8C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/org/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { APIClient } from '../api.ts';
|
|
3
|
+
export declare const AgentSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodNullable<z.ZodString>;
|
|
7
|
+
identifier: z.ZodString;
|
|
8
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
9
|
+
devmode: z.ZodBoolean;
|
|
10
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
updatedAt: z.ZodString;
|
|
13
|
+
evals: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
description: z.ZodNullable<z.ZodString>;
|
|
17
|
+
identifier: z.ZodNullable<z.ZodString>;
|
|
18
|
+
devmode: z.ZodBoolean;
|
|
19
|
+
createdAt: z.ZodString;
|
|
20
|
+
updatedAt: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const AgentListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
success: z.ZodLiteral<false>;
|
|
25
|
+
message: z.ZodString;
|
|
26
|
+
code: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
success: z.ZodLiteral<true>;
|
|
29
|
+
data: z.ZodArray<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
description: z.ZodNullable<z.ZodString>;
|
|
33
|
+
identifier: z.ZodString;
|
|
34
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
devmode: z.ZodBoolean;
|
|
36
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
createdAt: z.ZodString;
|
|
38
|
+
updatedAt: z.ZodString;
|
|
39
|
+
evals: z.ZodArray<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
description: z.ZodNullable<z.ZodString>;
|
|
43
|
+
identifier: z.ZodNullable<z.ZodString>;
|
|
44
|
+
devmode: z.ZodBoolean;
|
|
45
|
+
createdAt: z.ZodString;
|
|
46
|
+
updatedAt: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>], "success">;
|
|
50
|
+
export declare const AgentGetResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
+
success: z.ZodLiteral<false>;
|
|
52
|
+
message: z.ZodString;
|
|
53
|
+
code: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
success: z.ZodLiteral<true>;
|
|
56
|
+
data: z.ZodArray<z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
description: z.ZodNullable<z.ZodString>;
|
|
60
|
+
identifier: z.ZodString;
|
|
61
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
devmode: z.ZodBoolean;
|
|
63
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
|
+
createdAt: z.ZodString;
|
|
65
|
+
updatedAt: z.ZodString;
|
|
66
|
+
evals: z.ZodArray<z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
description: z.ZodNullable<z.ZodString>;
|
|
70
|
+
identifier: z.ZodNullable<z.ZodString>;
|
|
71
|
+
devmode: z.ZodBoolean;
|
|
72
|
+
createdAt: z.ZodString;
|
|
73
|
+
updatedAt: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>], "success">;
|
|
77
|
+
export type Agent = z.infer<typeof AgentSchema>;
|
|
78
|
+
/**
|
|
79
|
+
* List agents for a project
|
|
80
|
+
*/
|
|
81
|
+
export declare function projectAgentList(client: APIClient, projectId: string, options?: {
|
|
82
|
+
deploymentId?: string;
|
|
83
|
+
orgId?: string;
|
|
84
|
+
}): Promise<Agent[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Get a specific agent by identifier
|
|
87
|
+
*/
|
|
88
|
+
export declare function projectAgentGet(client: APIClient, projectId: string, agentId: string): Promise<Agent>;
|
|
89
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/api/project/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAI3C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;iBAuBtB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA0C,CAAC;AAC/E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA0C,CAAC;AAE9E,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;GAEG;AACH,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IACT,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GACC,OAAO,CAAC,KAAK,EAAE,CAAC,CAiBlB;AAED;;GAEG;AACH,wBAAsB,eAAe,CACpC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,CAAC,CAchB"}
|