@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/dist/api/apikey/list.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { APIKeyResponseError } from "./util.js";
|
|
4
|
-
export const APIKeySchema = 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 APIKeyListResponseArray = z.array(APIKeySchema);
|
|
22
|
-
export const APIKeyListResponseSchema = APIResponseSchema(APIKeyListResponseArray);
|
|
23
|
-
/**
|
|
24
|
-
* List all API keys
|
|
25
|
-
*
|
|
26
|
-
* @param client
|
|
27
|
-
* @param request optional filters for orgId and projectId
|
|
28
|
-
* @returns
|
|
29
|
-
*/
|
|
30
|
-
export async function apikeyList(client, request) {
|
|
31
|
-
const params = new URLSearchParams();
|
|
32
|
-
if (request?.orgId) {
|
|
33
|
-
params.set('orgId', request.orgId);
|
|
34
|
-
}
|
|
35
|
-
if (request?.projectId) {
|
|
36
|
-
params.set('projectId', request.projectId);
|
|
37
|
-
}
|
|
38
|
-
const queryString = params.toString();
|
|
39
|
-
const endpoint = `/cli/apikey${queryString ? `?${queryString}` : ''}`;
|
|
40
|
-
const resp = await client.get(endpoint, APIKeyListResponseSchema);
|
|
41
|
-
if (resp.success) {
|
|
42
|
-
return resp.data;
|
|
43
|
-
}
|
|
44
|
-
throw new APIKeyResponseError({ message: resp.message });
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/apikey/list.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,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;I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AE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;QACxB,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IACtC,MAAM,QAAQ,GAAG,cAAc,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAEtE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAqB,QAAQ,EAAE,wBAAwB,CAAC,CAAC;IAEtF,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,23 +0,0 @@
|
|
|
1
|
-
export declare const APIKeyResponseError: {
|
|
2
|
-
new (args?: {
|
|
3
|
-
message?: string;
|
|
4
|
-
cause?: unknown;
|
|
5
|
-
} | undefined): import("@agentuity/core").RichError & {
|
|
6
|
-
readonly _tag: "APIKeyResponseError";
|
|
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: "APIKeyResponseError";
|
|
20
|
-
} & Readonly<Shape>;
|
|
21
|
-
readonly defaultMessage?: string;
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/api/apikey/util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC"}
|
package/dist/api/apikey/util.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/apikey/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC"}
|
package/dist/api/db/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DbLogsAPIResponseSchema, DbLogsRequestSchema, DbLogsResponseSchema, type DbQueryLog, DbQueryLogSchema, type DbQueryLogs, dbLogs, } from './logs.ts';
|
|
2
|
-
export { dbQuery, type QueryColumn, QueryColumnSchema, QueryResponseSchema, type QueryResult, QueryResultSchema, } from './query.ts';
|
|
3
|
-
export { dbTables, generateCreateTableSQL, type TableColumn, TableColumnSchema, type TableSchema, TableSchemaSchema, TablesResponseSchema, } from './tables.ts';
|
|
4
|
-
export { DbInvalidArgumentError, DbResponseError } from './util.ts';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,UAAU,EACf,gBAAgB,EAChB,KAAK,WAAW,EAChB,MAAM,GACN,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,OAAO,EACP,KAAK,WAAW,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,KAAK,WAAW,EAChB,iBAAiB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,QAAQ,EACR,sBAAsB,EACtB,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,WAAW,EAChB,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/api/db/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DbLogsAPIResponseSchema, DbLogsRequestSchema, DbLogsResponseSchema, DbQueryLogSchema, dbLogs, } from "./logs.js";
|
|
2
|
-
export { dbQuery, QueryColumnSchema, QueryResponseSchema, QueryResultSchema, } from "./query.js";
|
|
3
|
-
export { dbTables, generateCreateTableSQL, TableColumnSchema, TableSchemaSchema, TablesResponseSchema, } from "./tables.js";
|
|
4
|
-
export { DbInvalidArgumentError, DbResponseError } from "./util.js";
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/api/db/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EAEpB,gBAAgB,EAEhB,MAAM,GACN,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,OAAO,EAEP,iBAAiB,EACjB,mBAAmB,EAEnB,iBAAiB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,QAAQ,EACR,sBAAsB,EAEtB,iBAAiB,EAEjB,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/api/db/logs.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
export declare const DbLogsRequestSchema: z.ZodObject<{
|
|
4
|
-
database: z.ZodString;
|
|
5
|
-
orgId: z.ZodString;
|
|
6
|
-
region: z.ZodString;
|
|
7
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
8
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
9
|
-
username: z.ZodOptional<z.ZodString>;
|
|
10
|
-
command: z.ZodOptional<z.ZodString>;
|
|
11
|
-
hasError: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const DbQueryLogSchema: z.ZodObject<{
|
|
16
|
-
timestamp: z.ZodString;
|
|
17
|
-
username: z.ZodString;
|
|
18
|
-
database: z.ZodString;
|
|
19
|
-
duration: z.ZodNumber;
|
|
20
|
-
txStatus: z.ZodString;
|
|
21
|
-
command: z.ZodString;
|
|
22
|
-
rowCount: z.ZodNumber;
|
|
23
|
-
sql: z.ZodString;
|
|
24
|
-
error: z.ZodOptional<z.ZodString>;
|
|
25
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export declare const DbLogsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
28
|
-
timestamp: z.ZodString;
|
|
29
|
-
username: z.ZodString;
|
|
30
|
-
database: z.ZodString;
|
|
31
|
-
duration: z.ZodNumber;
|
|
32
|
-
txStatus: z.ZodString;
|
|
33
|
-
command: z.ZodString;
|
|
34
|
-
rowCount: z.ZodNumber;
|
|
35
|
-
sql: z.ZodString;
|
|
36
|
-
error: z.ZodOptional<z.ZodString>;
|
|
37
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
export declare const DbLogsAPIResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
|
-
success: z.ZodLiteral<false>;
|
|
41
|
-
message: z.ZodString;
|
|
42
|
-
code: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
success: z.ZodLiteral<true>;
|
|
45
|
-
data: z.ZodArray<z.ZodObject<{
|
|
46
|
-
timestamp: z.ZodString;
|
|
47
|
-
username: z.ZodString;
|
|
48
|
-
database: z.ZodString;
|
|
49
|
-
duration: z.ZodNumber;
|
|
50
|
-
txStatus: z.ZodString;
|
|
51
|
-
command: z.ZodString;
|
|
52
|
-
rowCount: z.ZodNumber;
|
|
53
|
-
sql: z.ZodString;
|
|
54
|
-
error: z.ZodOptional<z.ZodString>;
|
|
55
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>>;
|
|
57
|
-
}, z.core.$strip>], "success">;
|
|
58
|
-
type DbLogsRequest = z.infer<typeof DbLogsRequestSchema>;
|
|
59
|
-
export type DbQueryLog = z.infer<typeof DbQueryLogSchema>;
|
|
60
|
-
export type DbQueryLogs = DbQueryLog[];
|
|
61
|
-
/**
|
|
62
|
-
* Get query logs for a database from the App API
|
|
63
|
-
*
|
|
64
|
-
* @param client APIClient configured for the App API base URL
|
|
65
|
-
* @param request
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
export declare function dbLogs(client: APIClient, request: DbLogsRequest): Promise<DbQueryLogs>;
|
|
69
|
-
export {};
|
|
70
|
-
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/api/db/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,WAAW,CAAC;AAG9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;iBAW9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAW3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;kBAA4B,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;8BAA0C,CAAC;AAE/E,KAAK,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGzD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,UAAU,EAAE,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAsB,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CA2B5F"}
|
package/dist/api/db/logs.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { DbInvalidArgumentError, DbResponseError } from "./util.js";
|
|
4
|
-
export const DbLogsRequestSchema = z.object({
|
|
5
|
-
database: z.string().describe('the database name'),
|
|
6
|
-
orgId: z.string().describe('the organization ID'),
|
|
7
|
-
region: z.string().describe('the region'),
|
|
8
|
-
startDate: z.string().optional().describe('start date filter'),
|
|
9
|
-
endDate: z.string().optional().describe('end date filter'),
|
|
10
|
-
username: z.string().optional().describe('username filter'),
|
|
11
|
-
command: z.string().optional().describe('command filter'),
|
|
12
|
-
hasError: z.boolean().optional().describe('filter by error status'),
|
|
13
|
-
sessionId: z.string().optional().describe('filter by session ID (trace ID)'),
|
|
14
|
-
limit: z.number().optional().describe('maximum number of logs to return'),
|
|
15
|
-
});
|
|
16
|
-
export const DbQueryLogSchema = z.object({
|
|
17
|
-
timestamp: z.string().describe('log timestamp'),
|
|
18
|
-
username: z.string().describe('username'),
|
|
19
|
-
database: z.string().describe('database name'),
|
|
20
|
-
duration: z.number().describe('query duration in milliseconds'),
|
|
21
|
-
txStatus: z.string().describe('transaction status'),
|
|
22
|
-
command: z.string().describe('SQL command type'),
|
|
23
|
-
rowCount: z.number().describe('number of rows affected'),
|
|
24
|
-
sql: z.string().describe('SQL query'),
|
|
25
|
-
error: z.string().optional().describe('error message if any'),
|
|
26
|
-
sessionId: z.string().optional().describe('session ID with sess_ prefix'),
|
|
27
|
-
});
|
|
28
|
-
export const DbLogsResponseSchema = z.array(DbQueryLogSchema);
|
|
29
|
-
export const DbLogsAPIResponseSchema = APIResponseSchema(DbLogsResponseSchema);
|
|
30
|
-
/**
|
|
31
|
-
* Get query logs for a database from the App API
|
|
32
|
-
*
|
|
33
|
-
* @param client APIClient configured for the App API base URL
|
|
34
|
-
* @param request
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
export async function dbLogs(client, request) {
|
|
38
|
-
const { database, orgId, region, ...filters } = request;
|
|
39
|
-
if (!orgId || !region) {
|
|
40
|
-
throw new DbInvalidArgumentError({ message: 'orgId and region are required', orgId, region });
|
|
41
|
-
}
|
|
42
|
-
const params = new URLSearchParams();
|
|
43
|
-
Object.entries(filters).forEach(([key, value]) => {
|
|
44
|
-
if (value !== undefined) {
|
|
45
|
-
params.append(key, String(value));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const queryString = params.toString();
|
|
49
|
-
const url = `/resource/2025-03-17/${orgId}/${region}/${database}/logs${queryString ? `?${queryString}` : ''}`;
|
|
50
|
-
const resp = await client.get(url, DbLogsAPIResponseSchema);
|
|
51
|
-
if (resp.success) {
|
|
52
|
-
return resp.data;
|
|
53
|
-
}
|
|
54
|
-
throw new DbResponseError({
|
|
55
|
-
database,
|
|
56
|
-
message: resp.message || 'Failed to fetch database logs',
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=logs.js.map
|
package/dist/api/db/logs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../src/api/db/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM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AAC,CAAC;IAC/F,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAChD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACnC,CAAC;IACF,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,wBAAwB,KAAK,IAAI,MAAM,IAAI,QAAQ,QAAQ,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAE9G,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAoB,GAAG,EAAE,uBAAuB,CAAC,CAAC;IAE/E,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,eAAe,CAAC;QACzB,QAAQ;QACR,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,+BAA+B;KACxD,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/api/db/query.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient } from '../api.ts';
|
|
3
|
-
export declare const QueryColumnSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
type: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare const QueryResultSchema: z.ZodObject<{
|
|
8
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
type: z.ZodString;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
13
|
-
rowCount: z.ZodNumber;
|
|
14
|
-
truncated: z.ZodBoolean;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const QueryResponseSchema: z.ZodObject<{
|
|
17
|
-
success: z.ZodBoolean;
|
|
18
|
-
message: z.ZodOptional<z.ZodString>;
|
|
19
|
-
data: z.ZodOptional<z.ZodObject<{
|
|
20
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
type: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
25
|
-
rowCount: z.ZodNumber;
|
|
26
|
-
truncated: z.ZodBoolean;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type QueryColumn = z.infer<typeof QueryColumnSchema>;
|
|
30
|
-
export type QueryResult = z.infer<typeof QueryResultSchema>;
|
|
31
|
-
interface DbQueryRequest {
|
|
32
|
-
database: string;
|
|
33
|
-
query: string;
|
|
34
|
-
orgId: string;
|
|
35
|
-
region: string;
|
|
36
|
-
}
|
|
37
|
-
export declare function dbQuery(client: APIClient, request: DbQueryRequest): Promise<QueryResult>;
|
|
38
|
-
export {};
|
|
39
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/api/db/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAY,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,UAAU,cAAc;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CAkC9F"}
|
package/dist/api/db/query.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIError } from "../api.js";
|
|
3
|
-
import { DbInvalidArgumentError, DbResponseError } from "./util.js";
|
|
4
|
-
export const QueryColumnSchema = z.object({
|
|
5
|
-
name: z.string().describe('column name'),
|
|
6
|
-
type: z.string().describe('PostgreSQL data type OID'),
|
|
7
|
-
});
|
|
8
|
-
export const QueryResultSchema = z.object({
|
|
9
|
-
columns: z.array(QueryColumnSchema).describe('column metadata'),
|
|
10
|
-
rows: z.array(z.record(z.string(), z.any())).describe('query result rows'),
|
|
11
|
-
rowCount: z.number().describe('number of rows returned'),
|
|
12
|
-
truncated: z.boolean().describe('whether results were truncated (max 1000 rows)'),
|
|
13
|
-
});
|
|
14
|
-
export const QueryResponseSchema = z.object({
|
|
15
|
-
success: z.boolean(),
|
|
16
|
-
message: z.string().optional(),
|
|
17
|
-
data: QueryResultSchema.optional(),
|
|
18
|
-
});
|
|
19
|
-
export async function dbQuery(client, request) {
|
|
20
|
-
const { database, query, orgId, region } = request;
|
|
21
|
-
if (!orgId || !region) {
|
|
22
|
-
throw new DbInvalidArgumentError({ message: 'orgId and region are required', orgId, region });
|
|
23
|
-
}
|
|
24
|
-
if (!query) {
|
|
25
|
-
throw new DbInvalidArgumentError({ message: 'query is required', query });
|
|
26
|
-
}
|
|
27
|
-
const url = `/resource/2025-03-17/${orgId}/${region}/${database}/query`;
|
|
28
|
-
try {
|
|
29
|
-
const resp = await client.post(url, { query }, QueryResponseSchema);
|
|
30
|
-
if (resp.success && resp.data) {
|
|
31
|
-
return resp.data;
|
|
32
|
-
}
|
|
33
|
-
throw new DbResponseError({
|
|
34
|
-
database,
|
|
35
|
-
message: resp.message ?? 'Failed to execute database query',
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
catch (ex) {
|
|
39
|
-
if (ex instanceof APIError) {
|
|
40
|
-
let message = ex.message;
|
|
41
|
-
if (message?.startsWith('failed to execute query: ')) {
|
|
42
|
-
message = message.substring(25);
|
|
43
|
-
}
|
|
44
|
-
throw new DbResponseError({ database, message });
|
|
45
|
-
}
|
|
46
|
-
throw ex;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=query.js.map
|
package/dist/api/db/query.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/api/db/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,QAAQ,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,Q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AAE,mBAAmB,CAAC,CAAC;QAEpE,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC,IAAI,CAAC;QAClB,CAAC;QAED,MAAM,IAAI,eAAe,CAAC;YACzB,QAAQ;YACR,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,kCAAkC;SAC3D,CAAC,CAAC;IACJ,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;QACb,IAAI,EAAE,YAAY,QAAQ,EAAE,CAAC;YAC5B,IAAI,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;YACzB,IAAI,OAAO,EAAE,UAAU,CAAC,2BAA2B,CAAC,EAAE,CAAC;gBACtD,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YACjC,CAAC;YACD,MAAM,IAAI,eAAe,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,EAAE,CAAC;IACV,CAAC;AACF,CAAC"}
|
package/dist/api/db/tables.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
export declare const TableColumnSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
data_type: z.ZodString;
|
|
6
|
-
is_nullable: z.ZodBoolean;
|
|
7
|
-
default_value: z.ZodOptional<z.ZodString>;
|
|
8
|
-
is_primary_key: z.ZodBoolean;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const TableSchemaSchema: z.ZodObject<{
|
|
11
|
-
table_name: z.ZodString;
|
|
12
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
data_type: z.ZodString;
|
|
15
|
-
is_nullable: z.ZodBoolean;
|
|
16
|
-
default_value: z.ZodOptional<z.ZodString>;
|
|
17
|
-
is_primary_key: z.ZodBoolean;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export declare const TablesResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
-
success: z.ZodLiteral<false>;
|
|
22
|
-
message: z.ZodString;
|
|
23
|
-
code: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
success: z.ZodLiteral<true>;
|
|
26
|
-
data: z.ZodObject<{
|
|
27
|
-
tables: z.ZodArray<z.ZodObject<{
|
|
28
|
-
table_name: z.ZodString;
|
|
29
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
data_type: z.ZodString;
|
|
32
|
-
is_nullable: z.ZodBoolean;
|
|
33
|
-
default_value: z.ZodOptional<z.ZodString>;
|
|
34
|
-
is_primary_key: z.ZodBoolean;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
}, z.core.$strip>], "success">;
|
|
39
|
-
export type TableColumn = z.infer<typeof TableColumnSchema>;
|
|
40
|
-
export type TableSchema = z.infer<typeof TableSchemaSchema>;
|
|
41
|
-
interface DbTablesRequest {
|
|
42
|
-
database: string;
|
|
43
|
-
orgId: string;
|
|
44
|
-
region: string;
|
|
45
|
-
}
|
|
46
|
-
export declare function dbTables(client: APIClient, request: DbTablesRequest): Promise<TableSchema[]>;
|
|
47
|
-
export declare function generateCreateTableSQL(table: TableSchema): string;
|
|
48
|
-
export {};
|
|
49
|
-
//# sourceMappingURL=tables.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../../src/api/db/tables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,WAAW,CAAC;AAG9D,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;8BAIhC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,UAAU,eAAe;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,QAAQ,CAC7B,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAmBxB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAmCjE"}
|
package/dist/api/db/tables.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { DbInvalidArgumentError, DbResponseError } from "./util.js";
|
|
4
|
-
export const TableColumnSchema = z.object({
|
|
5
|
-
name: z.string().describe('column name'),
|
|
6
|
-
data_type: z.string().describe('PostgreSQL data type'),
|
|
7
|
-
is_nullable: z.boolean().describe('whether the column is nullable'),
|
|
8
|
-
default_value: z.string().optional().describe('default value'),
|
|
9
|
-
is_primary_key: z.boolean().describe('whether this column is part of the primary key'),
|
|
10
|
-
});
|
|
11
|
-
export const TableSchemaSchema = z.object({
|
|
12
|
-
table_name: z.string().describe('table name'),
|
|
13
|
-
columns: z.array(TableColumnSchema).describe('table columns'),
|
|
14
|
-
});
|
|
15
|
-
export const TablesResponseSchema = APIResponseSchema(z.object({
|
|
16
|
-
tables: z.array(TableSchemaSchema),
|
|
17
|
-
}));
|
|
18
|
-
export async function dbTables(client, request) {
|
|
19
|
-
const { database, orgId, region } = request;
|
|
20
|
-
if (!orgId || !region) {
|
|
21
|
-
throw new DbInvalidArgumentError({ message: 'orgId and region are required', orgId, region });
|
|
22
|
-
}
|
|
23
|
-
const url = `/resource/2025-03-17/${orgId}/${region}/${database}/tables`;
|
|
24
|
-
const resp = await client.get(url, TablesResponseSchema);
|
|
25
|
-
if (resp.success) {
|
|
26
|
-
return resp.data.tables;
|
|
27
|
-
}
|
|
28
|
-
throw new DbResponseError({
|
|
29
|
-
database,
|
|
30
|
-
message: resp.message || 'Failed to fetch database tables',
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
export function generateCreateTableSQL(table) {
|
|
34
|
-
const lines = [`CREATE TABLE ${table.table_name} (`];
|
|
35
|
-
// Collect primary key columns
|
|
36
|
-
const primaryKeyColumns = [];
|
|
37
|
-
const columnDefs = table.columns.map((col) => {
|
|
38
|
-
let def = ` ${col.name} ${col.data_type}`;
|
|
39
|
-
if (!col.is_nullable) {
|
|
40
|
-
def += ' NOT NULL';
|
|
41
|
-
}
|
|
42
|
-
if (col.default_value) {
|
|
43
|
-
def += ` DEFAULT ${col.default_value}`;
|
|
44
|
-
}
|
|
45
|
-
if (col.is_primary_key) {
|
|
46
|
-
primaryKeyColumns.push(col.name);
|
|
47
|
-
}
|
|
48
|
-
return def;
|
|
49
|
-
});
|
|
50
|
-
lines.push(columnDefs.join(',\n'));
|
|
51
|
-
// Add table-level PRIMARY KEY constraint if any columns are marked as primary keys
|
|
52
|
-
if (primaryKeyColumns.length > 0) {
|
|
53
|
-
lines.push(',');
|
|
54
|
-
lines.push(` PRIMARY KEY (${primaryKeyColumns.join(', ')})`);
|
|
55
|
-
}
|
|
56
|
-
lines.push(');');
|
|
57
|
-
return lines.join('\n');
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=tables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tables.js","sour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CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAEnC,mFAAmF;IACnF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,KAAK,CAAC,IAAI,CAAC,oBAAoB,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEjB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC"}
|
package/dist/api/db/util.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const DbResponseError: {
|
|
2
|
-
new (args?: ({
|
|
3
|
-
database: string;
|
|
4
|
-
} & {
|
|
5
|
-
message?: string;
|
|
6
|
-
cause?: unknown;
|
|
7
|
-
}) | undefined): import("@agentuity/core").RichError & {
|
|
8
|
-
readonly _tag: "DbResponseError";
|
|
9
|
-
} & Readonly<{
|
|
10
|
-
database: string;
|
|
11
|
-
}>;
|
|
12
|
-
readonly defaultMessage?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const DbInvalidArgumentError: {
|
|
15
|
-
new (args?: ({
|
|
16
|
-
orgId?: string;
|
|
17
|
-
region?: string;
|
|
18
|
-
query?: string;
|
|
19
|
-
} & {
|
|
20
|
-
message?: string;
|
|
21
|
-
cause?: unknown;
|
|
22
|
-
}) | undefined): import("@agentuity/core").RichError & {
|
|
23
|
-
readonly _tag: "DbInvalidArgumentError";
|
|
24
|
-
} & Readonly<{
|
|
25
|
-
orgId?: string;
|
|
26
|
-
region?: string;
|
|
27
|
-
query?: string;
|
|
28
|
-
}>;
|
|
29
|
-
readonly defaultMessage?: string;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/api/db/util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;kBAAkD,MAAM;;;;;;;kBAAN,MAAM;;;CAAK,CAAC;AAE1F,eAAO,MAAM,sBAAsB;;gBAC1B,MAAM;iBACL,MAAM;gBACP,MAAM;;;;;;;gBAFN,MAAM;iBACL,MAAM;gBACP,MAAM;;;CACX,CAAC"}
|
package/dist/api/db/util.js
DELETED
package/dist/api/db/util.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/db/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC,EAAwB,CAAC;AAE1F,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,wBAAwB,CAAC,EAI3E,CAAC"}
|
package/dist/api/eval/get.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
export declare const EvaluationDetailSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
description: z.ZodNullable<z.ZodString>;
|
|
7
|
-
identifier: z.ZodNullable<z.ZodString>;
|
|
8
|
-
agentIdentifier: z.ZodString;
|
|
9
|
-
projectId: z.ZodString;
|
|
10
|
-
orgId: z.ZodString;
|
|
11
|
-
devmode: z.ZodBoolean;
|
|
12
|
-
createdAt: z.ZodString;
|
|
13
|
-
updatedAt: z.ZodString;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const EvalGetResponseSchema: 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
|
-
name: z.ZodString;
|
|
24
|
-
description: z.ZodNullable<z.ZodString>;
|
|
25
|
-
identifier: z.ZodNullable<z.ZodString>;
|
|
26
|
-
agentIdentifier: z.ZodString;
|
|
27
|
-
projectId: z.ZodString;
|
|
28
|
-
orgId: z.ZodString;
|
|
29
|
-
devmode: z.ZodBoolean;
|
|
30
|
-
createdAt: z.ZodString;
|
|
31
|
-
updatedAt: z.ZodString;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
}, z.core.$strip>], "success">;
|
|
34
|
-
export type EvaluationDetail = z.infer<typeof EvaluationDetailSchema>;
|
|
35
|
-
export declare function evalGet(client: APIClient, id: string): Promise<EvaluationDetail>;
|
|
36
|
-
//# sourceMappingURL=get.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/api/eval/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,WAAW,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBAWjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;8BAA4C,CAAC;AAE/E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wBAAsB,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAYtF"}
|
package/dist/api/eval/get.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
export const EvaluationDetailSchema = z.object({
|
|
4
|
-
id: z.string().describe('Evaluation ID'),
|
|
5
|
-
name: z.string().describe('Evaluation name'),
|
|
6
|
-
description: z.string().nullable().describe('Evaluation description'),
|
|
7
|
-
identifier: z.string().nullable().describe('Stable evaluation identifier'),
|
|
8
|
-
agentIdentifier: z.string().describe('Agent identifier'),
|
|
9
|
-
projectId: z.string().describe('Project ID'),
|
|
10
|
-
orgId: z.string().describe('Organization ID'),
|
|
11
|
-
devmode: z.boolean().describe('Whether this is a devmode evaluation'),
|
|
12
|
-
createdAt: z.string().describe('Creation timestamp'),
|
|
13
|
-
updatedAt: z.string().describe('Last updated timestamp'),
|
|
14
|
-
});
|
|
15
|
-
export const EvalGetResponseSchema = APIResponseSchema(EvaluationDetailSchema);
|
|
16
|
-
export async function evalGet(client, id) {
|
|
17
|
-
const resp = await client.request('GET', `/cli/eval/${encodeURIComponent(id)}`, EvalGetResponseSchema);
|
|
18
|
-
if (resp.success) {
|
|
19
|
-
return resp.data;
|
|
20
|
-
}
|
|
21
|
-
throw new Error(resp.message || 'Failed to get evaluation');
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=get.js.map
|
package/dist/api/eval/get.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/api/eval/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAC5C,WAAW,EAAE,CAA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ListResponseData, EvalListResponseSchema, type Evaluation, type EvaluationListRequest, EvaluationSchema, evalList, } from './list.ts';
|
|
3
|
-
export { type EvalRunDetail, EvalRunDetailSchema, EvalRunGetResponseSchema, evalRunGet, } from './run-get.ts';
|
|
4
|
-
export { type EvalRunListItem, type EvalRunListRequest, EvalRunListResponseData, EvalRunListResponseSchema, EvalRunSchema, evalRunList, } from './run-list.ts';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/eval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,OAAO,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,gBAAgB,EAChB,QAAQ,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,KAAK,aAAa,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,UAAU,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,aAAa,EACb,WAAW,GACX,MAAM,eAAe,CAAC"}
|
package/dist/api/eval/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { EvalGetResponseSchema, EvaluationDetailSchema, evalGet, } from "./get.js";
|
|
2
|
-
export { EvalListResponseData, EvalListResponseSchema, EvaluationSchema, evalList, } from "./list.js";
|
|
3
|
-
export { EvalRunDetailSchema, EvalRunGetResponseSchema, evalRunGet, } from "./run-get.js";
|
|
4
|
-
export { EvalRunListResponseData, EvalRunListResponseSchema, EvalRunSchema, evalRunList, } from "./run-list.js";
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/eval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,sBAAsB,EACtB,OAAO,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EAGtB,gBAAgB,EAChB,QAAQ,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,EAEN,mBAAmB,EACnB,wBAAwB,EACxB,UAAU,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAGN,uBAAuB,EACvB,yBAAyB,EACzB,aAAa,EACb,WAAW,GACX,MAAM,eAAe,CAAC"}
|