@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
package/src/api/sandbox/util.ts
CHANGED
|
@@ -1,276 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { EventEmitter } from 'node:events';
|
|
3
|
-
|
|
4
|
-
interface WritableWithDrain extends EventEmitter {
|
|
5
|
-
write(chunk: Uint8Array): boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Machine-readable error codes for sandbox operations.
|
|
10
|
-
* These codes allow programmatic error handling without fragile string matching.
|
|
11
|
-
*/
|
|
12
|
-
export type SandboxErrorCode =
|
|
13
|
-
| 'SANDBOX_NOT_FOUND'
|
|
14
|
-
| 'SANDBOX_TERMINATED'
|
|
15
|
-
| 'SANDBOX_BUSY'
|
|
16
|
-
| 'EXECUTION_NOT_FOUND'
|
|
17
|
-
| 'EXECUTION_TIMEOUT'
|
|
18
|
-
| 'EXECUTION_CANCELLED'
|
|
19
|
-
| 'SNAPSHOT_NOT_FOUND';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Error thrown when a sandbox API request fails.
|
|
23
|
-
*
|
|
24
|
-
* Includes optional context about which sandbox or execution caused the error.
|
|
25
|
-
*/
|
|
26
|
-
export const SandboxResponseError = StructuredError('SandboxResponseError')<{
|
|
27
|
-
/** The sandbox ID associated with the error, if applicable */
|
|
28
|
-
sandboxId?: string;
|
|
29
|
-
/** The execution ID associated with the error, if applicable */
|
|
30
|
-
executionId?: string;
|
|
31
|
-
/** The session ID (trace ID) from the x-session-id response header for OTel correlation */
|
|
32
|
-
sessionId?: string | null;
|
|
33
|
-
/** Machine-readable error code for programmatic error handling */
|
|
34
|
-
code?: SandboxErrorCode;
|
|
35
|
-
}>();
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Error thrown when a sandbox is not found.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```typescript
|
|
42
|
-
* try {
|
|
43
|
-
* await sandboxGet(client, { sandboxId: 'non-existent' });
|
|
44
|
-
* } catch (error) {
|
|
45
|
-
* if (error._tag === 'SandboxNotFoundError') {
|
|
46
|
-
* console.error(`Sandbox not found: ${error.sandboxId}`);
|
|
47
|
-
* }
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export const SandboxNotFoundError = StructuredError('SandboxNotFoundError')<{
|
|
52
|
-
sandboxId: string;
|
|
53
|
-
}>();
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Error thrown when a sandbox has already terminated.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```typescript
|
|
60
|
-
* try {
|
|
61
|
-
* await sandboxExecute(client, { sandboxId: 'terminated-sandbox', command: ['ls'] });
|
|
62
|
-
* } catch (error) {
|
|
63
|
-
* if (error._tag === 'SandboxTerminatedError') {
|
|
64
|
-
* console.error(`Sandbox terminated: ${error.sandboxId}`);
|
|
65
|
-
* }
|
|
66
|
-
* }
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export const SandboxTerminatedError = StructuredError('SandboxTerminatedError')<{
|
|
70
|
-
sandboxId: string;
|
|
71
|
-
}>();
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Error thrown when a sandbox is currently busy executing another command.
|
|
75
|
-
*
|
|
76
|
-
* This typically occurs when a second execute request is sent before the
|
|
77
|
-
* previous execution has completed. Sandbox executions are serialized -
|
|
78
|
-
* wait for the current execution to complete before sending a new one.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```typescript
|
|
82
|
-
* try {
|
|
83
|
-
* await sandbox.execute({ command: ['ls'] });
|
|
84
|
-
* } catch (error) {
|
|
85
|
-
* if (error._tag === 'SandboxBusyError') {
|
|
86
|
-
* console.error('Sandbox is busy, waiting for current execution to finish');
|
|
87
|
-
* // Wait and retry, or use executionGet with long-polling to wait for completion
|
|
88
|
-
* }
|
|
89
|
-
* }
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export const SandboxBusyError = StructuredError('SandboxBusyError')<{
|
|
93
|
-
sandboxId?: string;
|
|
94
|
-
}>();
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Error thrown when an execution is not found.
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* ```typescript
|
|
101
|
-
* try {
|
|
102
|
-
* await executionGet(client, { executionId: 'non-existent' });
|
|
103
|
-
* } catch (error) {
|
|
104
|
-
* if (error._tag === 'ExecutionNotFoundError') {
|
|
105
|
-
* console.error(`Execution not found: ${error.executionId}`);
|
|
106
|
-
* }
|
|
107
|
-
* }
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
export const ExecutionNotFoundError = StructuredError('ExecutionNotFoundError')<{
|
|
111
|
-
executionId: string;
|
|
112
|
-
sandboxId?: string;
|
|
113
|
-
}>();
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Error thrown when an execution times out.
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* ```typescript
|
|
120
|
-
* try {
|
|
121
|
-
* await sandboxExecute(client, { sandboxId, command: ['long-running'], timeout: '30s' });
|
|
122
|
-
* } catch (error) {
|
|
123
|
-
* if (error._tag === 'ExecutionTimeoutError') {
|
|
124
|
-
* console.error('Execution timed out');
|
|
125
|
-
* }
|
|
126
|
-
* }
|
|
127
|
-
* ```
|
|
128
|
-
*/
|
|
129
|
-
export const ExecutionTimeoutError = StructuredError('ExecutionTimeoutError')<{
|
|
130
|
-
executionId?: string;
|
|
131
|
-
sandboxId?: string;
|
|
132
|
-
}>();
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Error thrown when an execution is cancelled.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```typescript
|
|
139
|
-
* try {
|
|
140
|
-
* await sandboxRun(client, params, { signal: controller.signal });
|
|
141
|
-
* } catch (error) {
|
|
142
|
-
* if (error._tag === 'ExecutionCancelledError') {
|
|
143
|
-
* console.error('Execution was cancelled');
|
|
144
|
-
* }
|
|
145
|
-
* }
|
|
146
|
-
* ```
|
|
147
|
-
*/
|
|
148
|
-
export const ExecutionCancelledError = StructuredError('ExecutionCancelledError')<{
|
|
149
|
-
sandboxId?: string;
|
|
150
|
-
}>();
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Error thrown when a snapshot is not found.
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```typescript
|
|
157
|
-
* try {
|
|
158
|
-
* await snapshotGet(client, { snapshotId: 'non-existent' });
|
|
159
|
-
* } catch (error) {
|
|
160
|
-
* if (error._tag === 'SnapshotNotFoundError') {
|
|
161
|
-
* console.error(`Snapshot not found: ${error.snapshotId}`);
|
|
162
|
-
* }
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
export const SnapshotNotFoundError = StructuredError('SnapshotNotFoundError')<{
|
|
167
|
-
snapshotId?: string;
|
|
168
|
-
}>();
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Context for throwing sandbox errors.
|
|
172
|
-
*/
|
|
173
|
-
export interface SandboxErrorContext {
|
|
174
|
-
sandboxId?: string;
|
|
175
|
-
executionId?: string;
|
|
176
|
-
sessionId?: string | null;
|
|
177
|
-
snapshotId?: string;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Throws the appropriate sandbox error based on the response code.
|
|
182
|
-
*
|
|
183
|
-
* This helper centralizes error mapping logic, throwing specific error types
|
|
184
|
-
* when the backend returns a known error code, and falling back to
|
|
185
|
-
* SandboxResponseError for unknown codes.
|
|
186
|
-
*
|
|
187
|
-
* Note: Pause and resume operations use standard error codes. The backend
|
|
188
|
-
* returns SANDBOX_NOT_FOUND when the sandbox doesn't exist, and HTTP 409
|
|
189
|
-
* Conflict (handled by APIClient retries) for invalid state transitions
|
|
190
|
-
* (e.g. pausing a non-running sandbox, resuming a non-suspended sandbox).
|
|
191
|
-
* No additional error codes are needed for pause/resume.
|
|
192
|
-
*
|
|
193
|
-
* @param resp - The API response containing message and optional code
|
|
194
|
-
* @param context - Context about the operation (sandbox ID, execution ID, etc.)
|
|
195
|
-
* @throws {SandboxNotFoundError} When code is 'SANDBOX_NOT_FOUND'
|
|
196
|
-
* @throws {SandboxTerminatedError} When code is 'SANDBOX_TERMINATED'
|
|
197
|
-
* @throws {SandboxBusyError} When code is 'SANDBOX_BUSY'
|
|
198
|
-
* @throws {ExecutionNotFoundError} When code is 'EXECUTION_NOT_FOUND'
|
|
199
|
-
* @throws {ExecutionTimeoutError} When code is 'EXECUTION_TIMEOUT'
|
|
200
|
-
* @throws {ExecutionCancelledError} When code is 'EXECUTION_CANCELLED'
|
|
201
|
-
* @throws {SnapshotNotFoundError} When code is 'SNAPSHOT_NOT_FOUND'
|
|
202
|
-
* @throws {SandboxResponseError} For unknown codes or when no code is provided
|
|
203
|
-
*/
|
|
204
|
-
export function throwSandboxError(
|
|
205
|
-
resp: { message?: string; code?: string },
|
|
206
|
-
context: SandboxErrorContext
|
|
207
|
-
): never {
|
|
208
|
-
const { sandboxId, executionId, sessionId, snapshotId } = context;
|
|
209
|
-
const code = resp.code as SandboxErrorCode | undefined;
|
|
210
|
-
|
|
211
|
-
switch (code) {
|
|
212
|
-
case 'SANDBOX_NOT_FOUND':
|
|
213
|
-
throw new SandboxNotFoundError({ message: resp.message, sandboxId: sandboxId ?? '' });
|
|
214
|
-
case 'SANDBOX_TERMINATED':
|
|
215
|
-
throw new SandboxTerminatedError({ message: resp.message, sandboxId: sandboxId ?? '' });
|
|
216
|
-
case 'SANDBOX_BUSY':
|
|
217
|
-
throw new SandboxBusyError({ message: resp.message, sandboxId });
|
|
218
|
-
case 'EXECUTION_NOT_FOUND':
|
|
219
|
-
throw new ExecutionNotFoundError({
|
|
220
|
-
message: resp.message,
|
|
221
|
-
executionId: executionId ?? '',
|
|
222
|
-
sandboxId,
|
|
223
|
-
});
|
|
224
|
-
case 'EXECUTION_TIMEOUT':
|
|
225
|
-
throw new ExecutionTimeoutError({ message: resp.message, executionId, sandboxId });
|
|
226
|
-
case 'EXECUTION_CANCELLED':
|
|
227
|
-
throw new ExecutionCancelledError({ message: resp.message, sandboxId });
|
|
228
|
-
case 'SNAPSHOT_NOT_FOUND':
|
|
229
|
-
throw new SnapshotNotFoundError({ message: resp.message, snapshotId });
|
|
230
|
-
default:
|
|
231
|
-
throw new SandboxResponseError({
|
|
232
|
-
message: resp.message,
|
|
233
|
-
sandboxId,
|
|
234
|
-
executionId,
|
|
235
|
-
sessionId,
|
|
236
|
-
code,
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/** Current sandbox API version */
|
|
242
|
-
export const API_VERSION = '2025-03-17';
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Write a chunk to a writable stream and wait for it to drain if necessary.
|
|
246
|
-
* Properly cleans up event listeners to avoid memory leaks.
|
|
247
|
-
*/
|
|
248
|
-
export function writeAndDrain(writable: WritableWithDrain, chunk: Uint8Array): Promise<void> {
|
|
249
|
-
return new Promise((resolve, reject) => {
|
|
250
|
-
let needsDrain: boolean;
|
|
251
|
-
try {
|
|
252
|
-
needsDrain = !writable.write(chunk);
|
|
253
|
-
} catch (err) {
|
|
254
|
-
reject(err);
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
if (needsDrain) {
|
|
258
|
-
const cleanup = () => {
|
|
259
|
-
writable.removeListener('drain', onDrain);
|
|
260
|
-
writable.removeListener('error', onError);
|
|
261
|
-
};
|
|
262
|
-
const onDrain = () => {
|
|
263
|
-
cleanup();
|
|
264
|
-
resolve();
|
|
265
|
-
};
|
|
266
|
-
const onError = (err: Error) => {
|
|
267
|
-
cleanup();
|
|
268
|
-
reject(err);
|
|
269
|
-
};
|
|
270
|
-
writable.once('drain', onDrain);
|
|
271
|
-
writable.once('error', onError);
|
|
272
|
-
} else {
|
|
273
|
-
resolve();
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
}
|
|
1
|
+
export * from '@agentuity/core';
|
package/src/api/user/whoami.ts
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { APIResponseSchema, APIClient } from '../api.ts';
|
|
3
|
-
import { UserResponseError } from './util.ts';
|
|
4
|
-
|
|
5
|
-
export const OrganizationSchema = z.object({
|
|
6
|
-
id: z.string().describe('the unique id for the organization'),
|
|
7
|
-
name: z.string().describe('the name of the organization'),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export const WhoamiResponse = z.object({
|
|
11
|
-
firstName: z.string().describe('the first name of the user'),
|
|
12
|
-
lastName: z.string().describe('the last name of the user'),
|
|
13
|
-
organizations: z.array(OrganizationSchema).describe('the organizations the user is a member of'),
|
|
14
|
-
});
|
|
15
|
-
export const WhoamiResponseSchema = APIResponseSchema(WhoamiResponse);
|
|
16
|
-
|
|
17
|
-
export type WhoamiResponse = z.infer<typeof WhoamiResponseSchema>;
|
|
18
|
-
export type User = z.infer<typeof WhoamiResponse>;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Get the current authenticated user information
|
|
22
|
-
*
|
|
23
|
-
* @param client
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
export async function whoami(client: APIClient): Promise<User> {
|
|
27
|
-
const resp = await client.get<WhoamiResponse>('/cli/auth/user', WhoamiResponseSchema);
|
|
28
|
-
if (resp.success) {
|
|
29
|
-
return resp.data;
|
|
30
|
-
}
|
|
31
|
-
throw new UserResponseError({ message: resp.message });
|
|
32
|
-
}
|
|
1
|
+
export * from '@agentuity/core';
|
package/src/index.ts
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
export * from '
|
|
1
|
+
// Re-export ALL API modules from core (moved there for browser compatibility)
|
|
2
|
+
export * from '@agentuity/core';
|
|
3
3
|
|
|
4
|
-
//
|
|
5
|
-
export { type ServiceUrls, getServiceUrls, resolveRegion } from './config.ts';
|
|
6
|
-
|
|
7
|
-
// logger.ts exports
|
|
4
|
+
// Server-specific exports (these remain in @agentuity/server only)
|
|
8
5
|
export { type ColorScheme, ConsoleLogger, createLogger } from './logger.ts';
|
|
9
|
-
|
|
10
|
-
// server.ts exports
|
|
11
6
|
export { createServerFetchAdapter } from './server.ts';
|
|
12
|
-
|
|
13
|
-
// schema.ts exports
|
|
14
7
|
export { toJSONSchema } from './schema.ts';
|
|
15
|
-
|
|
16
|
-
// util/mime.ts exports
|
|
17
8
|
export { getContentType, mimeTypes } from './util/mime.ts';
|
|
18
|
-
|
|
19
|
-
// util/resources.ts exports
|
|
20
9
|
export {
|
|
21
10
|
validateCPUSpec,
|
|
22
11
|
validateMemorySpec,
|
|
@@ -25,21 +14,5 @@ export {
|
|
|
25
14
|
type ResourcesConfig,
|
|
26
15
|
type ValidatedResources,
|
|
27
16
|
} from './util/resources.ts';
|
|
28
|
-
|
|
29
|
-
// runtime-bootstrap.ts exports
|
|
30
17
|
export { bootstrapRuntimeEnv, type RuntimeBootstrapOptions } from './runtime-bootstrap.ts';
|
|
31
|
-
|
|
32
|
-
// zod re-export
|
|
33
18
|
export { z } from 'zod';
|
|
34
|
-
|
|
35
|
-
// @agentuity/core re-exports
|
|
36
|
-
export type {
|
|
37
|
-
FetchAdapter,
|
|
38
|
-
FetchRequest,
|
|
39
|
-
FetchResponse,
|
|
40
|
-
FetchSuccessResponse,
|
|
41
|
-
FetchErrorResponse,
|
|
42
|
-
Body,
|
|
43
|
-
ServiceException,
|
|
44
|
-
} from '@agentuity/core';
|
|
45
|
-
export { buildUrl, toServiceException, toPayload, fromResponse } from '@agentuity/core';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient } from '../api.ts';
|
|
3
|
-
export declare const APIKeyCreateResponseSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
value: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare const APIKeyCreateFullResponseSchema: 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.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
value: z.ZodString;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
}, z.core.$strip>], "success">;
|
|
18
|
-
export type APIKeyCreateResponse = z.infer<typeof APIKeyCreateResponseSchema>;
|
|
19
|
-
export interface APIKeyCreateRequest {
|
|
20
|
-
name: string;
|
|
21
|
-
expiresAt: string;
|
|
22
|
-
projectId?: string | null;
|
|
23
|
-
orgId?: string | null;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Create a new API key
|
|
27
|
-
*
|
|
28
|
-
* @param client
|
|
29
|
-
* @param request the API key creation request
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export declare function apikeyCreate(client: APIClient, request: APIKeyCreateRequest): Promise<APIKeyCreateResponse>;
|
|
33
|
-
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/api/apikey/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;8BAAgD,CAAC;AAI5F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CACjC,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAQ/B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { APIKeyResponseError } from "./util.js";
|
|
4
|
-
export const APIKeyCreateResponseSchema = z.object({
|
|
5
|
-
id: z.string().describe('the API key id'),
|
|
6
|
-
value: z.string().describe('the API key value'),
|
|
7
|
-
});
|
|
8
|
-
export const APIKeyCreateFullResponseSchema = APIResponseSchema(APIKeyCreateResponseSchema);
|
|
9
|
-
/**
|
|
10
|
-
* Create a new API key
|
|
11
|
-
*
|
|
12
|
-
* @param client
|
|
13
|
-
* @param request the API key creation request
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export async function apikeyCreate(client, request) {
|
|
17
|
-
const resp = await client.post('/cli/apikey', request, APIKeyCreateFullResponseSchema);
|
|
18
|
-
if (resp.success) {
|
|
19
|
-
return resp.data;
|
|
20
|
-
}
|
|
21
|
-
throw new APIKeyResponseError({ message: resp.message });
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/api/apikey/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;AAa5F;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CACjC,MAAiB,EACjB,OAA4B;IAE5B,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,8BAA8B,CAAC,CAAC;IAEvF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient } from '../api.ts';
|
|
3
|
-
export declare const APIKeyDeleteResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
-
success: z.ZodLiteral<false>;
|
|
5
|
-
message: z.ZodString;
|
|
6
|
-
code: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
success: z.ZodLiteral<true>;
|
|
9
|
-
data: z.ZodNumber;
|
|
10
|
-
}, z.core.$strip>], "success">;
|
|
11
|
-
/**
|
|
12
|
-
* Delete an API key (soft delete)
|
|
13
|
-
*
|
|
14
|
-
* @param client
|
|
15
|
-
* @param id the API key id to delete
|
|
16
|
-
* @returns number of rows affected
|
|
17
|
-
*/
|
|
18
|
-
export declare function apikeyDelete(client: APIClient, id: string): Promise<number>;
|
|
19
|
-
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/api/apikey/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,0BAA0B;;;;;;;8BAEtC,CAAC;AAIF;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAYjF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { APIKeyResponseError } from "./util.js";
|
|
4
|
-
export const APIKeyDeleteResponseSchema = APIResponseSchema(z.number().describe('number of rows affected'));
|
|
5
|
-
/**
|
|
6
|
-
* Delete an API key (soft delete)
|
|
7
|
-
*
|
|
8
|
-
* @param client
|
|
9
|
-
* @param id the API key id to delete
|
|
10
|
-
* @returns number of rows affected
|
|
11
|
-
*/
|
|
12
|
-
export async function apikeyDelete(client, id) {
|
|
13
|
-
const resp = await client.request('DELETE', `/cli/apikey/${id}`, APIKeyDeleteResponseSchema);
|
|
14
|
-
if (resp.success) {
|
|
15
|
-
return resp.data;
|
|
16
|
-
}
|
|
17
|
-
throw new APIKeyResponseError({ message: resp.message });
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=delete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/api/apikey/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAC1D,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAC9C,CAAC;AAIF;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAAiB,EAAE,EAAU;IAC/D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAChC,QAAQ,EACR,eAAe,EAAE,EAAE,EACnB,0BAA0B,CAC1B,CAAC;IAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
package/dist/api/apikey/get.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient } from '../api.ts';
|
|
3
|
-
export declare const APIKeyDetailSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
orgId: z.ZodString;
|
|
7
|
-
type: z.ZodString;
|
|
8
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
9
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
createdAt: z.ZodString;
|
|
11
|
-
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const APIKeyGetResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
|
-
success: z.ZodLiteral<false>;
|
|
18
|
-
message: z.ZodString;
|
|
19
|
-
code: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
success: z.ZodLiteral<true>;
|
|
22
|
-
data: z.ZodObject<{
|
|
23
|
-
id: z.ZodString;
|
|
24
|
-
name: z.ZodString;
|
|
25
|
-
orgId: z.ZodString;
|
|
26
|
-
type: z.ZodString;
|
|
27
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
28
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
-
createdAt: z.ZodString;
|
|
30
|
-
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
-
id: z.ZodString;
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
}, z.core.$strip>], "success">;
|
|
36
|
-
export type APIKeyDetail = z.infer<typeof APIKeyDetailSchema>;
|
|
37
|
-
/**
|
|
38
|
-
* Get a specific API key by id
|
|
39
|
-
*
|
|
40
|
-
* @param client
|
|
41
|
-
* @param id the API key id
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
export declare function apikeyGet(client: APIClient, id: string): Promise<APIKeyDetail>;
|
|
45
|
-
//# sourceMappingURL=get.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/api/apikey/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAgB7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;8BAAwC,CAAC;AAI7E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;GAMG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAYpF"}
|
package/dist/api/apikey/get.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { APIKeyResponseError } from "./util.js";
|
|
4
|
-
export const APIKeyDetailSchema = z.object({
|
|
5
|
-
id: z.string().describe('the API key id'),
|
|
6
|
-
name: z.string().describe('the API key name'),
|
|
7
|
-
orgId: z.string().describe('the organization id'),
|
|
8
|
-
type: z.string().describe('the API key type'),
|
|
9
|
-
expiresAt: z.string().datetime().nullable().describe('the expiration date'),
|
|
10
|
-
lastUsedAt: z.string().datetime().nullable().optional().describe('the last used date'),
|
|
11
|
-
createdAt: z.string().datetime().describe('the creation date'),
|
|
12
|
-
project: z
|
|
13
|
-
.object({
|
|
14
|
-
id: z.string().describe('the project id'),
|
|
15
|
-
name: z.string().describe('the project name'),
|
|
16
|
-
})
|
|
17
|
-
.nullable()
|
|
18
|
-
.optional()
|
|
19
|
-
.describe('the associated project'),
|
|
20
|
-
});
|
|
21
|
-
export const APIKeyGetResponseSchema = APIResponseSchema(APIKeyDetailSchema);
|
|
22
|
-
/**
|
|
23
|
-
* Get a specific API key by id
|
|
24
|
-
*
|
|
25
|
-
* @param client
|
|
26
|
-
* @param id the API key id
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
export async function apikeyGet(client, id) {
|
|
30
|
-
const resp = await client.request('GET', `/cli/apikey/${id}`, APIKeyGetResponseSchema);
|
|
31
|
-
if (resp.success) {
|
|
32
|
-
return resp.data;
|
|
33
|
-
}
|
|
34
|
-
throw new APIKeyResponseError({ message: resp.message });
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=get.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/api/apikey/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC3E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACtF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC9D,OAAO,EAAE,CAAC;SACR,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;KAC7C,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,wBAAwB,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAM7E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAiB,EAAE,EAAU;IAC5D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAChC,KAAK,EACL,eAAe,EAAE,EAAE,EACnB,uBAAuB,CACvB,CAAC;IAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/apikey/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
package/dist/api/apikey/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/apikey/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient } from '../api.ts';
|
|
3
|
-
export declare const APIKeySchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
orgId: z.ZodString;
|
|
7
|
-
type: z.ZodString;
|
|
8
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
9
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
createdAt: z.ZodString;
|
|
11
|
-
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const APIKeyListResponseArray: z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
orgId: z.ZodString;
|
|
20
|
-
type: z.ZodString;
|
|
21
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
22
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
createdAt: z.ZodString;
|
|
24
|
-
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>>;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
export declare const APIKeyListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
-
success: z.ZodLiteral<false>;
|
|
31
|
-
message: z.ZodString;
|
|
32
|
-
code: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
success: z.ZodLiteral<true>;
|
|
35
|
-
data: z.ZodArray<z.ZodObject<{
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
orgId: z.ZodString;
|
|
39
|
-
type: z.ZodString;
|
|
40
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
41
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
createdAt: z.ZodString;
|
|
43
|
-
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
|
-
id: z.ZodString;
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip>], "success">;
|
|
49
|
-
export type APIKeyListResponse = z.infer<typeof APIKeyListResponseSchema>;
|
|
50
|
-
export type APIKeyList = z.infer<typeof APIKeyListResponseArray>;
|
|
51
|
-
export type APIKey = z.infer<typeof APIKeySchema>;
|
|
52
|
-
export interface APIKeyListRequest {
|
|
53
|
-
orgId?: string;
|
|
54
|
-
projectId?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* List all API keys
|
|
58
|
-
*
|
|
59
|
-
* @param client
|
|
60
|
-
* @param request optional filters for orgId and projectId
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
export declare function apikeyList(client: APIClient, request?: APIKeyListRequest): Promise<APIKeyList>;
|
|
64
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/apikey/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,YAAY;;;;;;;;;;;;iBAgBvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;kBAAwB,CAAC;AAE7D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;8BAA6C,CAAC;AAEnF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAC/B,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE,iBAAiB,GACzB,OAAO,CAAC,UAAU,CAAC,CAkBrB"}
|