@agentuity/server 1.0.32 → 1.0.34
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 +1 -227
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/api.js +1 -637
- package/dist/api/api.js.map +1 -1
- package/dist/api/index.d.ts +1 -17
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -17
- package/dist/api/index.js.map +1 -1
- package/dist/api/org/env-delete.d.ts +1 -22
- package/dist/api/org/env-delete.d.ts.map +1 -1
- package/dist/api/org/env-delete.js +1 -24
- package/dist/api/org/env-delete.js.map +1 -1
- package/dist/api/org/env-get.d.ts +1 -32
- package/dist/api/org/env-get.d.ts.map +1 -1
- package/dist/api/org/env-get.js +1 -25
- package/dist/api/org/env-get.js.map +1 -1
- package/dist/api/org/env-update.d.ts +1 -23
- package/dist/api/org/env-update.d.ts.map +1 -1
- package/dist/api/org/env-update.js +1 -25
- package/dist/api/org/env-update.js.map +1 -1
- package/dist/api/project/get.d.ts +1 -42
- package/dist/api/project/get.d.ts.map +1 -1
- package/dist/api/project/get.js +1 -35
- package/dist/api/project/get.js.map +1 -1
- package/dist/api/project/list.d.ts +1 -47
- package/dist/api/project/list.d.ts.map +1 -1
- package/dist/api/project/list.js +1 -37
- package/dist/api/project/list.js.map +1 -1
- package/dist/api/project/malware.d.ts +1 -70
- package/dist/api/project/malware.d.ts.map +1 -1
- package/dist/api/project/malware.js +1 -41
- package/dist/api/project/malware.js.map +1 -1
- package/dist/api/region/create.d.ts +1 -80
- package/dist/api/region/create.d.ts.map +1 -1
- package/dist/api/region/create.js +1 -176
- package/dist/api/region/create.js.map +1 -1
- package/dist/api/sandbox/client.d.ts +1 -190
- package/dist/api/sandbox/client.d.ts.map +1 -1
- package/dist/api/sandbox/client.js +1 -260
- package/dist/api/sandbox/client.js.map +1 -1
- package/dist/api/sandbox/pause.d.ts +1 -21
- package/dist/api/sandbox/pause.d.ts.map +1 -1
- package/dist/api/sandbox/pause.js +1 -24
- package/dist/api/sandbox/pause.js.map +1 -1
- package/dist/api/sandbox/resume.d.ts +1 -21
- package/dist/api/sandbox/resume.d.ts.map +1 -1
- package/dist/api/sandbox/resume.js +1 -24
- package/dist/api/sandbox/resume.js.map +1 -1
- package/dist/api/sandbox/util.d.ts +1 -284
- package/dist/api/sandbox/util.d.ts.map +1 -1
- package/dist/api/sandbox/util.js +1 -210
- package/dist/api/sandbox/util.js.map +1 -1
- package/dist/api/user/whoami.d.ts +1 -38
- package/dist/api/user/whoami.d.ts.map +1 -1
- package/dist/api/user/whoami.js +1 -26
- package/dist/api/user/whoami.js.map +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/api/api.ts +1 -936
- package/src/api/index.ts +1 -17
- package/src/api/org/env-delete.ts +1 -37
- package/src/api/org/env-get.ts +1 -43
- package/src/api/org/env-update.ts +1 -38
- package/src/api/project/get.ts +1 -49
- package/src/api/project/list.ts +1 -54
- package/src/api/project/malware.ts +1 -68
- package/src/api/region/create.ts +1 -207
- package/src/api/sandbox/client.ts +1 -460
- package/src/api/sandbox/pause.ts +1 -39
- package/src/api/sandbox/resume.ts +1 -39
- package/src/api/sandbox/util.ts +1 -276
- package/src/api/user/whoami.ts +1 -32
- package/src/index.ts +3 -30
- package/dist/api/apikey/create.d.ts +0 -33
- package/dist/api/apikey/create.d.ts.map +0 -1
- package/dist/api/apikey/create.js +0 -23
- package/dist/api/apikey/create.js.map +0 -1
- package/dist/api/apikey/delete.d.ts +0 -19
- package/dist/api/apikey/delete.d.ts.map +0 -1
- package/dist/api/apikey/delete.js +0 -19
- package/dist/api/apikey/delete.js.map +0 -1
- package/dist/api/apikey/get.d.ts +0 -45
- package/dist/api/apikey/get.d.ts.map +0 -1
- package/dist/api/apikey/get.js +0 -36
- package/dist/api/apikey/get.js.map +0 -1
- package/dist/api/apikey/index.d.ts +0 -6
- package/dist/api/apikey/index.d.ts.map +0 -1
- package/dist/api/apikey/index.js +0 -6
- package/dist/api/apikey/index.js.map +0 -1
- package/dist/api/apikey/list.d.ts +0 -64
- package/dist/api/apikey/list.d.ts.map +0 -1
- package/dist/api/apikey/list.js +0 -46
- package/dist/api/apikey/list.js.map +0 -1
- package/dist/api/apikey/util.d.ts +0 -23
- package/dist/api/apikey/util.d.ts.map +0 -1
- package/dist/api/apikey/util.js +0 -3
- package/dist/api/apikey/util.js.map +0 -1
- package/dist/api/db/index.d.ts +0 -5
- package/dist/api/db/index.d.ts.map +0 -1
- package/dist/api/db/index.js +0 -5
- package/dist/api/db/index.js.map +0 -1
- package/dist/api/db/logs.d.ts +0 -70
- package/dist/api/db/logs.d.ts.map +0 -1
- package/dist/api/db/logs.js +0 -59
- package/dist/api/db/logs.js.map +0 -1
- package/dist/api/db/query.d.ts +0 -39
- package/dist/api/db/query.d.ts.map +0 -1
- package/dist/api/db/query.js +0 -49
- package/dist/api/db/query.js.map +0 -1
- package/dist/api/db/tables.d.ts +0 -49
- package/dist/api/db/tables.d.ts.map +0 -1
- package/dist/api/db/tables.js +0 -59
- package/dist/api/db/tables.js.map +0 -1
- package/dist/api/db/util.d.ts +0 -31
- package/dist/api/db/util.d.ts.map +0 -1
- package/dist/api/db/util.js +0 -4
- package/dist/api/db/util.js.map +0 -1
- package/dist/api/eval/get.d.ts +0 -36
- package/dist/api/eval/get.d.ts.map +0 -1
- package/dist/api/eval/get.js +0 -23
- package/dist/api/eval/get.js.map +0 -1
- package/dist/api/eval/index.d.ts +0 -5
- package/dist/api/eval/index.d.ts.map +0 -1
- package/dist/api/eval/index.js +0 -5
- package/dist/api/eval/index.js.map +0 -1
- package/dist/api/eval/list.d.ts +0 -50
- package/dist/api/eval/list.d.ts.map +0 -1
- package/dist/api/eval/list.js +0 -32
- package/dist/api/eval/list.js.map +0 -1
- package/dist/api/eval/run-get.d.ts +0 -48
- package/dist/api/eval/run-get.d.ts.map +0 -1
- package/dist/api/eval/run-get.js +0 -29
- package/dist/api/eval/run-get.js.map +0 -1
- package/dist/api/eval/run-list.d.ts +0 -70
- package/dist/api/eval/run-list.d.ts.map +0 -1
- package/dist/api/eval/run-list.js +0 -42
- package/dist/api/eval/run-list.js.map +0 -1
- package/dist/api/machine/index.d.ts +0 -3
- package/dist/api/machine/index.d.ts.map +0 -1
- package/dist/api/machine/index.js +0 -3
- package/dist/api/machine/index.js.map +0 -1
- package/dist/api/machine/machine.d.ts +0 -192
- package/dist/api/machine/machine.d.ts.map +0 -1
- package/dist/api/machine/machine.js +0 -109
- package/dist/api/machine/machine.js.map +0 -1
- package/dist/api/machine/util.d.ts +0 -14
- package/dist/api/machine/util.d.ts.map +0 -1
- package/dist/api/machine/util.js +0 -3
- package/dist/api/machine/util.js.map +0 -1
- package/dist/api/org/index.d.ts +0 -7
- package/dist/api/org/index.d.ts.map +0 -1
- package/dist/api/org/index.js +0 -7
- package/dist/api/org/index.js.map +0 -1
- package/dist/api/org/list.d.ts +0 -27
- package/dist/api/org/list.d.ts.map +0 -1
- package/dist/api/org/list.js +0 -22
- package/dist/api/org/list.js.map +0 -1
- package/dist/api/org/resources.d.ts +0 -141
- package/dist/api/org/resources.d.ts.map +0 -1
- package/dist/api/org/resources.js +0 -97
- package/dist/api/org/resources.js.map +0 -1
- package/dist/api/org/util.d.ts +0 -45
- package/dist/api/org/util.d.ts.map +0 -1
- package/dist/api/org/util.js +0 -4
- package/dist/api/org/util.js.map +0 -1
- package/dist/api/project/agent.d.ts +0 -89
- package/dist/api/project/agent.d.ts.map +0 -1
- package/dist/api/project/agent.js +0 -60
- package/dist/api/project/agent.js.map +0 -1
- package/dist/api/project/create.d.ts +0 -37
- package/dist/api/project/create.d.ts.map +0 -1
- package/dist/api/project/create.js +0 -31
- package/dist/api/project/create.js.map +0 -1
- package/dist/api/project/delete.d.ts +0 -15
- package/dist/api/project/delete.d.ts.map +0 -1
- package/dist/api/project/delete.js +0 -13
- package/dist/api/project/delete.js.map +0 -1
- package/dist/api/project/deploy.d.ts +0 -490
- package/dist/api/project/deploy.d.ts.map +0 -1
- package/dist/api/project/deploy.js +0 -313
- package/dist/api/project/deploy.js.map +0 -1
- package/dist/api/project/deployment.d.ts +0 -237
- package/dist/api/project/deployment.d.ts.map +0 -1
- package/dist/api/project/deployment.js +0 -127
- package/dist/api/project/deployment.js.map +0 -1
- package/dist/api/project/env-delete.d.ts +0 -22
- package/dist/api/project/env-delete.d.ts.map +0 -1
- package/dist/api/project/env-delete.js +0 -29
- package/dist/api/project/env-delete.js.map +0 -1
- package/dist/api/project/env-update.d.ts +0 -31
- package/dist/api/project/env-update.d.ts.map +0 -1
- package/dist/api/project/env-update.js +0 -36
- package/dist/api/project/env-update.js.map +0 -1
- package/dist/api/project/exists.d.ts +0 -25
- package/dist/api/project/exists.d.ts.map +0 -1
- package/dist/api/project/exists.js +0 -45
- package/dist/api/project/exists.js.map +0 -1
- package/dist/api/project/hostname.d.ts +0 -25
- package/dist/api/project/hostname.d.ts.map +0 -1
- package/dist/api/project/hostname.js +0 -37
- package/dist/api/project/hostname.js.map +0 -1
- package/dist/api/project/index.d.ts +0 -14
- package/dist/api/project/index.d.ts.map +0 -1
- package/dist/api/project/index.js +0 -14
- package/dist/api/project/index.js.map +0 -1
- package/dist/api/project/update-region.d.ts +0 -27
- package/dist/api/project/update-region.d.ts.map +0 -1
- package/dist/api/project/update-region.js +0 -25
- package/dist/api/project/update-region.js.map +0 -1
- package/dist/api/project/util.d.ts +0 -62
- package/dist/api/project/util.d.ts.map +0 -1
- package/dist/api/project/util.js +0 -6
- package/dist/api/project/util.js.map +0 -1
- package/dist/api/queue/analytics.d.ts +0 -250
- package/dist/api/queue/analytics.d.ts.map +0 -1
- package/dist/api/queue/analytics.js +0 -233
- package/dist/api/queue/analytics.js.map +0 -1
- package/dist/api/queue/destinations.d.ts +0 -202
- package/dist/api/queue/destinations.d.ts.map +0 -1
- package/dist/api/queue/destinations.js +0 -168
- package/dist/api/queue/destinations.js.map +0 -1
- package/dist/api/queue/dlq.d.ts +0 -168
- package/dist/api/queue/dlq.d.ts.map +0 -1
- package/dist/api/queue/dlq.js +0 -166
- package/dist/api/queue/dlq.js.map +0 -1
- package/dist/api/queue/index.d.ts +0 -56
- package/dist/api/queue/index.d.ts.map +0 -1
- package/dist/api/queue/index.js +0 -90
- package/dist/api/queue/index.js.map +0 -1
- package/dist/api/queue/messages.d.ts +0 -503
- package/dist/api/queue/messages.d.ts.map +0 -1
- package/dist/api/queue/messages.js +0 -549
- package/dist/api/queue/messages.js.map +0 -1
- package/dist/api/queue/queues.d.ts +0 -226
- package/dist/api/queue/queues.d.ts.map +0 -1
- package/dist/api/queue/queues.js +0 -321
- package/dist/api/queue/queues.js.map +0 -1
- package/dist/api/queue/sources.d.ts +0 -202
- package/dist/api/queue/sources.d.ts.map +0 -1
- package/dist/api/queue/sources.js +0 -202
- package/dist/api/queue/sources.js.map +0 -1
- package/dist/api/queue/types.d.ts +0 -1218
- package/dist/api/queue/types.d.ts.map +0 -1
- package/dist/api/queue/types.js +0 -1002
- package/dist/api/queue/types.js.map +0 -1
- package/dist/api/queue/util.d.ts +0 -278
- package/dist/api/queue/util.d.ts.map +0 -1
- package/dist/api/queue/util.js +0 -235
- package/dist/api/queue/util.js.map +0 -1
- package/dist/api/queue/validation.d.ts +0 -247
- package/dist/api/queue/validation.d.ts.map +0 -1
- package/dist/api/queue/validation.js +0 -513
- package/dist/api/queue/validation.js.map +0 -1
- package/dist/api/queue/websocket.d.ts +0 -168
- package/dist/api/queue/websocket.d.ts.map +0 -1
- package/dist/api/queue/websocket.js +0 -394
- package/dist/api/queue/websocket.js.map +0 -1
- package/dist/api/region/delete.d.ts +0 -62
- package/dist/api/region/delete.d.ts.map +0 -1
- package/dist/api/region/delete.js +0 -37
- package/dist/api/region/delete.js.map +0 -1
- package/dist/api/region/index.d.ts +0 -5
- package/dist/api/region/index.d.ts.map +0 -1
- package/dist/api/region/index.js +0 -5
- package/dist/api/region/index.js.map +0 -1
- package/dist/api/region/list.d.ts +0 -27
- package/dist/api/region/list.d.ts.map +0 -1
- package/dist/api/region/list.js +0 -22
- package/dist/api/region/list.js.map +0 -1
- package/dist/api/region/resources.d.ts +0 -71
- package/dist/api/region/resources.d.ts.map +0 -1
- package/dist/api/region/resources.js +0 -53
- package/dist/api/region/resources.js.map +0 -1
- package/dist/api/region/util.d.ts +0 -23
- package/dist/api/region/util.d.ts.map +0 -1
- package/dist/api/region/util.js +0 -3
- package/dist/api/region/util.js.map +0 -1
- package/dist/api/sandbox/cli-list.d.ts +0 -114
- package/dist/api/sandbox/cli-list.d.ts.map +0 -1
- package/dist/api/sandbox/cli-list.js +0 -71
- package/dist/api/sandbox/cli-list.js.map +0 -1
- package/dist/api/sandbox/create.d.ts +0 -118
- package/dist/api/sandbox/create.d.ts.map +0 -1
- package/dist/api/sandbox/create.js +0 -211
- package/dist/api/sandbox/create.js.map +0 -1
- package/dist/api/sandbox/destroy.d.ts +0 -22
- package/dist/api/sandbox/destroy.d.ts.map +0 -1
- package/dist/api/sandbox/destroy.js +0 -25
- package/dist/api/sandbox/destroy.js.map +0 -1
- package/dist/api/sandbox/disk-checkpoint.d.ts +0 -104
- package/dist/api/sandbox/disk-checkpoint.d.ts.map +0 -1
- package/dist/api/sandbox/disk-checkpoint.js +0 -104
- package/dist/api/sandbox/disk-checkpoint.js.map +0 -1
- package/dist/api/sandbox/execute.d.ts +0 -69
- package/dist/api/sandbox/execute.d.ts.map +0 -1
- package/dist/api/sandbox/execute.js +0 -103
- package/dist/api/sandbox/execute.js.map +0 -1
- package/dist/api/sandbox/execution.d.ts +0 -169
- package/dist/api/sandbox/execution.d.ts.map +0 -1
- package/dist/api/sandbox/execution.js +0 -118
- package/dist/api/sandbox/execution.js.map +0 -1
- package/dist/api/sandbox/files.d.ts +0 -261
- package/dist/api/sandbox/files.d.ts.map +0 -1
- package/dist/api/sandbox/files.js +0 -386
- package/dist/api/sandbox/files.js.map +0 -1
- package/dist/api/sandbox/get.d.ts +0 -283
- package/dist/api/sandbox/get.d.ts.map +0 -1
- package/dist/api/sandbox/get.js +0 -215
- package/dist/api/sandbox/get.js.map +0 -1
- package/dist/api/sandbox/getStatus.d.ts +0 -16
- package/dist/api/sandbox/getStatus.d.ts.map +0 -1
- package/dist/api/sandbox/getStatus.js +0 -32
- package/dist/api/sandbox/getStatus.js.map +0 -1
- package/dist/api/sandbox/index.d.ts +0 -39
- package/dist/api/sandbox/index.d.ts.map +0 -1
- package/dist/api/sandbox/index.js +0 -20
- package/dist/api/sandbox/index.js.map +0 -1
- package/dist/api/sandbox/list.d.ts +0 -293
- package/dist/api/sandbox/list.d.ts.map +0 -1
- package/dist/api/sandbox/list.js +0 -191
- package/dist/api/sandbox/list.js.map +0 -1
- package/dist/api/sandbox/resolve.d.ts +0 -82
- package/dist/api/sandbox/resolve.d.ts.map +0 -1
- package/dist/api/sandbox/resolve.js +0 -71
- package/dist/api/sandbox/resolve.js.map +0 -1
- package/dist/api/sandbox/run.d.ts +0 -28
- package/dist/api/sandbox/run.d.ts.map +0 -1
- package/dist/api/sandbox/run.js +0 -342
- package/dist/api/sandbox/run.js.map +0 -1
- package/dist/api/sandbox/runtime.d.ts +0 -83
- package/dist/api/sandbox/runtime.d.ts.map +0 -1
- package/dist/api/sandbox/runtime.js +0 -78
- package/dist/api/sandbox/runtime.js.map +0 -1
- package/dist/api/sandbox/snapshot-build.d.ts +0 -48
- package/dist/api/sandbox/snapshot-build.d.ts.map +0 -1
- package/dist/api/sandbox/snapshot-build.js +0 -74
- package/dist/api/sandbox/snapshot-build.js.map +0 -1
- package/dist/api/sandbox/snapshot.d.ts +0 -595
- package/dist/api/sandbox/snapshot.d.ts.map +0 -1
- package/dist/api/sandbox/snapshot.js +0 -598
- package/dist/api/sandbox/snapshot.js.map +0 -1
- package/dist/api/services/index.d.ts +0 -2
- package/dist/api/services/index.d.ts.map +0 -1
- package/dist/api/services/index.js +0 -2
- package/dist/api/services/index.js.map +0 -1
- package/dist/api/services/stats.d.ts +0 -263
- package/dist/api/services/stats.d.ts.map +0 -1
- package/dist/api/services/stats.js +0 -144
- package/dist/api/services/stats.js.map +0 -1
- package/dist/api/session/get.d.ts +0 -169
- package/dist/api/session/get.d.ts.map +0 -1
- package/dist/api/session/get.js +0 -56
- package/dist/api/session/get.js.map +0 -1
- package/dist/api/session/index.d.ts +0 -4
- package/dist/api/session/index.d.ts.map +0 -1
- package/dist/api/session/index.js +0 -4
- package/dist/api/session/index.js.map +0 -1
- package/dist/api/session/list.d.ts +0 -143
- package/dist/api/session/list.d.ts.map +0 -1
- package/dist/api/session/list.js +0 -91
- package/dist/api/session/list.js.map +0 -1
- package/dist/api/session/logs.d.ts +0 -40
- package/dist/api/session/logs.d.ts.map +0 -1
- package/dist/api/session/logs.js +0 -28
- package/dist/api/session/logs.js.map +0 -1
- package/dist/api/session/util.d.ts +0 -23
- package/dist/api/session/util.d.ts.map +0 -1
- package/dist/api/session/util.js +0 -3
- package/dist/api/session/util.js.map +0 -1
- package/dist/api/storage/config.d.ts +0 -99
- package/dist/api/storage/config.d.ts.map +0 -1
- package/dist/api/storage/config.js +0 -61
- package/dist/api/storage/config.js.map +0 -1
- package/dist/api/storage/index.d.ts +0 -5
- package/dist/api/storage/index.d.ts.map +0 -1
- package/dist/api/storage/index.js +0 -5
- package/dist/api/storage/index.js.map +0 -1
- package/dist/api/storage/objects.d.ts +0 -155
- package/dist/api/storage/objects.d.ts.map +0 -1
- package/dist/api/storage/objects.js +0 -148
- package/dist/api/storage/objects.js.map +0 -1
- package/dist/api/storage/types.d.ts +0 -161
- package/dist/api/storage/types.d.ts.map +0 -1
- package/dist/api/storage/types.js +0 -141
- package/dist/api/storage/types.js.map +0 -1
- package/dist/api/storage/util.d.ts +0 -48
- package/dist/api/storage/util.d.ts.map +0 -1
- package/dist/api/storage/util.js +0 -8
- package/dist/api/storage/util.js.map +0 -1
- package/dist/api/stream/get.d.ts +0 -58
- package/dist/api/stream/get.d.ts.map +0 -1
- package/dist/api/stream/get.js +0 -40
- package/dist/api/stream/get.js.map +0 -1
- package/dist/api/stream/index.d.ts +0 -4
- package/dist/api/stream/index.d.ts.map +0 -1
- package/dist/api/stream/index.js +0 -4
- package/dist/api/stream/index.js.map +0 -1
- package/dist/api/stream/list.d.ts +0 -120
- package/dist/api/stream/list.d.ts.map +0 -1
- package/dist/api/stream/list.js +0 -77
- package/dist/api/stream/list.js.map +0 -1
- package/dist/api/stream/util.d.ts +0 -23
- package/dist/api/stream/util.d.ts.map +0 -1
- package/dist/api/stream/util.js +0 -3
- package/dist/api/stream/util.js.map +0 -1
- package/dist/api/thread/delete.d.ts +0 -23
- package/dist/api/thread/delete.d.ts.map +0 -1
- package/dist/api/thread/delete.js +0 -21
- package/dist/api/thread/delete.js.map +0 -1
- package/dist/api/thread/get.d.ts +0 -36
- package/dist/api/thread/get.d.ts.map +0 -1
- package/dist/api/thread/get.js +0 -23
- package/dist/api/thread/get.js.map +0 -1
- package/dist/api/thread/index.d.ts +0 -5
- package/dist/api/thread/index.d.ts.map +0 -1
- package/dist/api/thread/index.js +0 -5
- package/dist/api/thread/index.js.map +0 -1
- package/dist/api/thread/list.d.ts +0 -69
- package/dist/api/thread/list.d.ts.map +0 -1
- package/dist/api/thread/list.js +0 -51
- package/dist/api/thread/list.js.map +0 -1
- package/dist/api/thread/util.d.ts +0 -23
- package/dist/api/thread/util.d.ts.map +0 -1
- package/dist/api/thread/util.js +0 -3
- package/dist/api/thread/util.js.map +0 -1
- package/dist/api/user/index.d.ts +0 -2
- package/dist/api/user/index.d.ts.map +0 -1
- package/dist/api/user/index.js +0 -2
- package/dist/api/user/index.js.map +0 -1
- package/dist/api/user/util.d.ts +0 -23
- package/dist/api/user/util.d.ts.map +0 -1
- package/dist/api/user/util.js +0 -3
- package/dist/api/user/util.js.map +0 -1
- package/dist/api/webhook/deliveries.d.ts +0 -94
- package/dist/api/webhook/deliveries.d.ts.map +0 -1
- package/dist/api/webhook/deliveries.js +0 -79
- package/dist/api/webhook/deliveries.js.map +0 -1
- package/dist/api/webhook/destinations.d.ts +0 -136
- package/dist/api/webhook/destinations.d.ts.map +0 -1
- package/dist/api/webhook/destinations.js +0 -137
- package/dist/api/webhook/destinations.js.map +0 -1
- package/dist/api/webhook/index.d.ts +0 -41
- package/dist/api/webhook/index.d.ts.map +0 -1
- package/dist/api/webhook/index.js +0 -59
- package/dist/api/webhook/index.js.map +0 -1
- package/dist/api/webhook/receipts.d.ts +0 -77
- package/dist/api/webhook/receipts.d.ts.map +0 -1
- package/dist/api/webhook/receipts.js +0 -78
- package/dist/api/webhook/receipts.js.map +0 -1
- package/dist/api/webhook/types.d.ts +0 -249
- package/dist/api/webhook/types.d.ts.map +0 -1
- package/dist/api/webhook/types.js +0 -221
- package/dist/api/webhook/types.js.map +0 -1
- package/dist/api/webhook/util.d.ts +0 -202
- package/dist/api/webhook/util.d.ts.map +0 -1
- package/dist/api/webhook/util.js +0 -201
- package/dist/api/webhook/util.js.map +0 -1
- package/dist/api/webhook/webhooks.d.ts +0 -146
- package/dist/api/webhook/webhooks.d.ts.map +0 -1
- package/dist/api/webhook/webhooks.js +0 -165
- package/dist/api/webhook/webhooks.js.map +0 -1
- package/src/api/api-example.md +0 -164
- package/src/api/apikey/create.ts +0 -41
- package/src/api/apikey/delete.ts +0 -30
- package/src/api/apikey/get.ts +0 -48
- package/src/api/apikey/index.ts +0 -5
- package/src/api/apikey/list.ts +0 -64
- package/src/api/apikey/util.ts +0 -3
- package/src/api/db/index.ts +0 -27
- package/src/api/db/logs.ts +0 -75
- package/src/api/db/query.ts +0 -67
- package/src/api/db/tables.ts +0 -92
- package/src/api/db/util.ts +0 -9
- package/src/api/eval/get.ts +0 -33
- package/src/api/eval/index.ts +0 -28
- package/src/api/eval/list.ts +0 -49
- package/src/api/eval/run-get.ts +0 -39
- package/src/api/eval/run-list.ts +0 -59
- package/src/api/machine/index.ts +0 -2
- package/src/api/machine/machine.ts +0 -160
- package/src/api/machine/util.ts +0 -5
- package/src/api/org/index.ts +0 -6
- package/src/api/org/list.ts +0 -28
- package/src/api/org/resources.ts +0 -140
- package/src/api/org/util.ts +0 -4
- package/src/api/project/agent.ts +0 -86
- package/src/api/project/create.ts +0 -47
- package/src/api/project/delete.ts +0 -25
- package/src/api/project/deploy.ts +0 -458
- package/src/api/project/deployment.ts +0 -195
- package/src/api/project/env-delete.ts +0 -45
- package/src/api/project/env-update.ts +0 -55
- package/src/api/project/exists.ts +0 -58
- package/src/api/project/hostname.ts +0 -73
- package/src/api/project/index.ts +0 -13
- package/src/api/project/update-region.ts +0 -44
- package/src/api/project/util.ts +0 -8
- package/src/api/queue/analytics.ts +0 -311
- package/src/api/queue/destinations.ts +0 -259
- package/src/api/queue/dlq.ts +0 -243
- package/src/api/queue/index.ts +0 -308
- package/src/api/queue/messages.ts +0 -784
- package/src/api/queue/queues.ts +0 -460
- package/src/api/queue/sources.ts +0 -294
- package/src/api/queue/types.ts +0 -1325
- package/src/api/queue/util.ts +0 -278
- package/src/api/queue/validation.ts +0 -560
- package/src/api/queue/websocket.ts +0 -514
- package/src/api/region/delete.ts +0 -57
- package/src/api/region/index.ts +0 -4
- package/src/api/region/list.ts +0 -32
- package/src/api/region/resources.ts +0 -69
- package/src/api/region/util.ts +0 -3
- package/src/api/sandbox/cli-list.ts +0 -127
- package/src/api/sandbox/create.ts +0 -256
- package/src/api/sandbox/destroy.ts +0 -41
- package/src/api/sandbox/disk-checkpoint.ts +0 -179
- package/src/api/sandbox/execute.ts +0 -132
- package/src/api/sandbox/execution.ts +0 -183
- package/src/api/sandbox/files.ts +0 -596
- package/src/api/sandbox/get.ts +0 -249
- package/src/api/sandbox/getStatus.ts +0 -54
- package/src/api/sandbox/index.ts +0 -211
- package/src/api/sandbox/list.ts +0 -224
- package/src/api/sandbox/resolve.ts +0 -98
- package/src/api/sandbox/run.ts +0 -439
- package/src/api/sandbox/runtime.ts +0 -100
- package/src/api/sandbox/snapshot-build.ts +0 -98
- package/src/api/sandbox/snapshot.ts +0 -781
- package/src/api/services/index.ts +0 -1
- package/src/api/services/stats.ts +0 -213
- package/src/api/session/get.ts +0 -106
- package/src/api/session/index.ts +0 -3
- package/src/api/session/list.ts +0 -136
- package/src/api/session/logs.ts +0 -47
- package/src/api/session/util.ts +0 -3
- package/src/api/storage/config.ts +0 -111
- package/src/api/storage/index.ts +0 -4
- package/src/api/storage/objects.ts +0 -250
- package/src/api/storage/types.ts +0 -174
- package/src/api/storage/util.ts +0 -10
- package/src/api/stream/get.ts +0 -51
- package/src/api/stream/index.ts +0 -3
- package/src/api/stream/list.ts +0 -127
- package/src/api/stream/util.ts +0 -3
- package/src/api/thread/delete.ts +0 -31
- package/src/api/thread/get.ts +0 -34
- package/src/api/thread/index.ts +0 -4
- package/src/api/thread/list.ts +0 -76
- package/src/api/thread/util.ts +0 -3
- package/src/api/user/index.ts +0 -1
- package/src/api/user/util.ts +0 -3
- package/src/api/webhook/deliveries.ts +0 -129
- package/src/api/webhook/destinations.ts +0 -224
- package/src/api/webhook/index.ts +0 -133
- package/src/api/webhook/receipts.ts +0 -124
- package/src/api/webhook/types.ts +0 -309
- package/src/api/webhook/util.ts +0 -237
- package/src/api/webhook/webhooks.ts +0 -260
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const MachineResponseError: {
|
|
2
|
-
new (args?: ({
|
|
3
|
-
message: string;
|
|
4
|
-
} & {
|
|
5
|
-
message?: string;
|
|
6
|
-
cause?: unknown;
|
|
7
|
-
}) | undefined): import("@agentuity/core").RichError & {
|
|
8
|
-
readonly _tag: "MachineResponseError";
|
|
9
|
-
} & Readonly<{
|
|
10
|
-
message: string;
|
|
11
|
-
}>;
|
|
12
|
-
readonly defaultMessage?: string;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/api/machine/util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;iBACvB,MAAM;;;;;;;iBAAN,MAAM;;;CACZ,CAAC"}
|
package/dist/api/machine/util.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/machine/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,sBAAsB,CAAC,EAEvE,CAAC"}
|
package/dist/api/org/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/api/org/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/api/org/list.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/api/org/list.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
package/dist/api/org/list.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import type { SortDirection } from '@agentuity/core';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/api/org/resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAqB,SAAS,EAAE,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;iBAoBxB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;iBAUxB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA6C,CAAC;AAExF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACvC,+CAA+C;IAC/C,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;IAC3B,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,uCAAuC;IACvC,SAAS,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,eAAe,CAAC,CA2C1B"}
|
|
@@ -1,97 +0,0 @@
|
|
|
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/2025-11-16${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
|
|
@@ -1 +0,0 @@
|
|
|
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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AS,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,uBAAuB,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAE9D,6CAA6C;IAC7C,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;QACpB,OAAO,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;IAC9C,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAChC,KAAK,EACL,GAAG,EACH,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"}
|
package/dist/api/org/util.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const OrgResponseError: {
|
|
2
|
-
new (args?: {
|
|
3
|
-
message?: string;
|
|
4
|
-
cause?: unknown;
|
|
5
|
-
} | undefined): import("@agentuity/core").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("@agentuity/core").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("@agentuity/core").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("@agentuity/core").RichError & {
|
|
41
|
-
readonly _tag: "OrgResourceResponseError";
|
|
42
|
-
} & Readonly<Shape>;
|
|
43
|
-
readonly defaultMessage?: string;
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/api/org/util.js
DELETED
package/dist/api/org/util.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/org/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { AgentNotFoundError, ProjectResponseError } from "./util.js";
|
|
4
|
-
export const AgentSchema = z.object({
|
|
5
|
-
id: z.string().describe('Agent ID (same as identifier)'),
|
|
6
|
-
name: z.string().describe('Agent name'),
|
|
7
|
-
description: z.string().nullable().describe('Agent description'),
|
|
8
|
-
identifier: z.string().describe('Agent identifier'),
|
|
9
|
-
deploymentId: z.string().nullable().describe('Deployment ID'),
|
|
10
|
-
devmode: z.boolean().describe('Whether agent is in development mode'),
|
|
11
|
-
metadata: z.record(z.string(), z.unknown()).nullable().describe('Agent metadata'),
|
|
12
|
-
createdAt: z.string().describe('Creation timestamp'),
|
|
13
|
-
updatedAt: z.string().describe('Last update timestamp'),
|
|
14
|
-
evals: z
|
|
15
|
-
.array(z.object({
|
|
16
|
-
id: z.string().describe('Evaluation ID'),
|
|
17
|
-
name: z.string().describe('Evaluation name'),
|
|
18
|
-
description: z.string().nullable().describe('Evaluation description'),
|
|
19
|
-
identifier: z.string().nullable().describe('Evaluation identifier'),
|
|
20
|
-
devmode: z.boolean().describe('Whether evaluation is in development mode'),
|
|
21
|
-
createdAt: z.string().describe('Creation timestamp'),
|
|
22
|
-
updatedAt: z.string().describe('Last update timestamp'),
|
|
23
|
-
}))
|
|
24
|
-
.describe('Associated evaluations'),
|
|
25
|
-
});
|
|
26
|
-
export const AgentListResponseSchema = APIResponseSchema(z.array(AgentSchema));
|
|
27
|
-
export const AgentGetResponseSchema = APIResponseSchema(z.array(AgentSchema));
|
|
28
|
-
/**
|
|
29
|
-
* List agents for a project
|
|
30
|
-
*/
|
|
31
|
-
export async function projectAgentList(client, projectId, options) {
|
|
32
|
-
const queryParams = new URLSearchParams();
|
|
33
|
-
if (options?.deploymentId) {
|
|
34
|
-
queryParams.set('deploymentId', options.deploymentId);
|
|
35
|
-
}
|
|
36
|
-
if (options?.orgId) {
|
|
37
|
-
queryParams.set('orgId', options.orgId);
|
|
38
|
-
}
|
|
39
|
-
const url = `/cli/agent/${projectId}${queryParams.toString() ? `?${queryParams.toString()}` : ''}`;
|
|
40
|
-
const resp = await client.get(url, AgentListResponseSchema);
|
|
41
|
-
if (resp.success) {
|
|
42
|
-
return resp.data;
|
|
43
|
-
}
|
|
44
|
-
throw new ProjectResponseError({ message: resp.message });
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Get a specific agent by identifier
|
|
48
|
-
*/
|
|
49
|
-
export async function projectAgentGet(client, projectId, agentId) {
|
|
50
|
-
const resp = await client.get(`/cli/agent/${projectId}?identifier=${agentId}`, AgentGetResponseSchema);
|
|
51
|
-
if (resp.success) {
|
|
52
|
-
const agent = resp.data[0];
|
|
53
|
-
if (resp.data.length === 0 || agent === undefined) {
|
|
54
|
-
throw new AgentNotFoundError({ id: agentId, message: `Agent not found: ${agentId}` });
|
|
55
|
-
}
|
|
56
|
-
return agent;
|
|
57
|
-
}
|
|
58
|
-
throw new ProjectResponseError({ message: resp.message });
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=agent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/api/project/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAErE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+B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AED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACpC,MAAiB,EACjB,SAAiB,EACjB,OAAe;IAEf,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAC5B,cAAc,SAAS,eAAe,OAAO,EAAE,EAC/C,sBAAsB,CACtB,CAAC;IAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACnD,MAAM,IAAI,kBAAkB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB,OAAO,EAAE,EAAE,CAAC,CAAC;QACvF,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACD,MAAM,IAAI,oBAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
export declare const CreateProjectRequestSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
-
orgId: z.ZodString;
|
|
8
|
-
cloudRegion: z.ZodString;
|
|
9
|
-
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export declare const NewProjectSchema: z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
sdkKey: z.ZodString;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const CreateProjectResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
-
success: z.ZodLiteral<false>;
|
|
17
|
-
message: z.ZodString;
|
|
18
|
-
code: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
success: z.ZodLiteral<true>;
|
|
21
|
-
data: z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
sdkKey: z.ZodString;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
}, z.core.$strip>], "success">;
|
|
26
|
-
export type CreateProjectRequest = z.infer<typeof CreateProjectRequestSchema>;
|
|
27
|
-
export type CreateProjectResponse = z.infer<typeof CreateProjectResponseSchema>;
|
|
28
|
-
export type NewProject = z.infer<typeof NewProjectSchema>;
|
|
29
|
-
/**
|
|
30
|
-
* Create a new Project
|
|
31
|
-
*
|
|
32
|
-
* @param client
|
|
33
|
-
* @param body
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
|
-
export declare function projectCreate(client: APIClient, body: CreateProjectRequest): Promise<NewProject>;
|
|
37
|
-
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/api/project/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,WAAW,CAAC;AAG9D,eAAO,MAAM,0BAA0B;;;;;;;iBAOrC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;8BAAsC,CAAC;AAE/E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAsB,aAAa,CAClC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,oBAAoB,GACxB,OAAO,CAAC,UAAU,CAAC,CAYrB"}
|