@agentuity/server 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -0
- 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/dist/util/resources.js +2 -2
- package/dist/util/resources.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/src/util/resources.ts +2 -2
- 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 -92
- 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 -103
- 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 -142
- 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 -101
- 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 -135
- 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 -103
- package/src/api/storage/index.ts +0 -4
- package/src/api/storage/objects.ts +0 -240
- package/src/api/storage/types.ts +0 -134
- package/src/api/storage/util.ts +0 -10
- package/src/api/stream/get.ts +0 -51
- package/src/api/stream/index.ts +0 -3
- package/src/api/stream/list.ts +0 -127
- package/src/api/stream/util.ts +0 -3
- package/src/api/thread/delete.ts +0 -31
- package/src/api/thread/get.ts +0 -34
- package/src/api/thread/index.ts +0 -4
- package/src/api/thread/list.ts +0 -76
- package/src/api/thread/util.ts +0 -3
- package/src/api/user/index.ts +0 -1
- package/src/api/user/util.ts +0 -3
- package/src/api/webhook/deliveries.ts +0 -129
- package/src/api/webhook/destinations.ts +0 -224
- package/src/api/webhook/index.ts +0 -133
- package/src/api/webhook/receipts.ts +0 -124
- package/src/api/webhook/types.ts +0 -309
- package/src/api/webhook/util.ts +0 -237
- package/src/api/webhook/webhooks.ts +0 -260
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Regex pattern for validating npm/bun package specifiers.
|
|
4
|
-
* Uses a blocklist approach: rejects shell injection characters while allowing
|
|
5
|
-
* all legitimate specifier formats (names, scoped packages, URLs, git refs, etc.).
|
|
6
|
-
*
|
|
7
|
-
* Valid examples: "typescript", "@types/node", "opencode-ai@1.2.3",
|
|
8
|
-
* "https://github.com/user/repo", "git+https://github.com/user/repo.git",
|
|
9
|
-
* "github:user/repo", "file:../local-pkg"
|
|
10
|
-
* Invalid examples: "foo bar", "pkg;rm -rf", "pkg|cat /etc/passwd", "$(evil)"
|
|
11
|
-
*/
|
|
12
|
-
export const NPM_PACKAGE_NAME_PATTERN = /^[^\s;`|$]+$/;
|
|
13
|
-
/**
|
|
14
|
-
* Base schema for snapshot build configuration file (agentuity-snapshot.yaml)
|
|
15
|
-
* This is the canonical schema - used for JSON Schema generation.
|
|
16
|
-
*/
|
|
17
|
-
export const SnapshotBuildFileBaseSchema = z
|
|
18
|
-
.object({
|
|
19
|
-
version: z.literal(1).describe('Schema version, must be 1'),
|
|
20
|
-
runtime: z
|
|
21
|
-
.string()
|
|
22
|
-
.describe('Runtime identifier (name:tag format, e.g., bun:1, node:20, python:3.12)'),
|
|
23
|
-
name: z
|
|
24
|
-
.string()
|
|
25
|
-
.regex(/^[a-zA-Z0-9_-]+$/)
|
|
26
|
-
.optional()
|
|
27
|
-
.describe('Snapshot name (alphanumeric, underscores, dashes only)'),
|
|
28
|
-
description: z.string().optional().describe('Human-readable description of the snapshot'),
|
|
29
|
-
dir: z
|
|
30
|
-
.string()
|
|
31
|
-
.optional()
|
|
32
|
-
.describe('Subdirectory to use as the build context for file resolution (relative to the CLI directory argument)'),
|
|
33
|
-
dependencies: z
|
|
34
|
-
.array(z.string())
|
|
35
|
-
.optional()
|
|
36
|
-
.describe('List of apt packages to install. Supports version pinning: package=version or package=version* for prefix matching'),
|
|
37
|
-
packages: z
|
|
38
|
-
.array(z
|
|
39
|
-
.string()
|
|
40
|
-
.regex(NPM_PACKAGE_NAME_PATTERN, 'Invalid npm/bun package specifier: must not contain whitespace, semicolons, backticks, pipes, or dollar signs'))
|
|
41
|
-
.optional()
|
|
42
|
-
.describe('List of npm/bun packages to install globally via bun install -g. Example: opencode-ai, typescript'),
|
|
43
|
-
files: z
|
|
44
|
-
.array(z.string())
|
|
45
|
-
.optional()
|
|
46
|
-
.describe('Glob patterns for files to include from the build context. Supports negative patterns with ! prefix for exclusions'),
|
|
47
|
-
env: z
|
|
48
|
-
.record(z.string(), z.string())
|
|
49
|
-
.optional()
|
|
50
|
-
.describe('Environment variables to set. Use ${VAR} syntax for build-time substitution via --env flag'),
|
|
51
|
-
metadata: z
|
|
52
|
-
.record(z.string(), z.string())
|
|
53
|
-
.optional()
|
|
54
|
-
.describe('User-defined metadata key-value pairs. Use ${VAR} syntax for build-time substitution via --metadata flag'),
|
|
55
|
-
public: z
|
|
56
|
-
.boolean()
|
|
57
|
-
.optional()
|
|
58
|
-
.describe('Whether to make the snapshot publicly accessible (default: false)'),
|
|
59
|
-
})
|
|
60
|
-
.describe('Agentuity Snapshot Build File - defines a reproducible sandbox environment');
|
|
61
|
-
/**
|
|
62
|
-
* Schema with validation refinement - use this for parsing/validation.
|
|
63
|
-
* Ensures at least one of dependencies, files, env, or packages is specified.
|
|
64
|
-
*/
|
|
65
|
-
export const SnapshotBuildFileSchema = SnapshotBuildFileBaseSchema.refine((data) => {
|
|
66
|
-
const hasDependencies = data.dependencies && data.dependencies.length > 0;
|
|
67
|
-
const hasFiles = data.files && data.files.length > 0;
|
|
68
|
-
const hasEnv = data.env && Object.keys(data.env).length > 0;
|
|
69
|
-
const hasPackages = data.packages && data.packages.length > 0;
|
|
70
|
-
return hasDependencies || hasFiles || hasEnv || hasPackages;
|
|
71
|
-
}, {
|
|
72
|
-
message: 'At least one of dependencies, files, env, or packages must be specified',
|
|
73
|
-
});
|
|
74
|
-
//# sourceMappingURL=snapshot-build.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-build.js","sourceRoot":"","sources":["../../../src/api/sandbox/snapshot-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC3D,OAAO,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,CAAC,yEAAyE,CAAC;IACrF,IAAI,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,CAAC,kBAAkB,CAAC;SACzB,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACpE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACzF,GAAG,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACR,uGAAuG,CACvG;IACF,YAAY,EAAE,CAAC;SACb,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACR,oHAAoH,CACpH;IACF,QAAQ,EAAE,CAAC;SACT,KAAK,CACL,CAAC;SACC,MAAM,EAAE;SACR,KAAK,CACL,wBAAwB,EACxB,+GAA+G,CAC/G,CACF;SACA,QAAQ,EAAE;SACV,QAAQ,CACR,mGAAmG,CACnG;IACF,KAAK,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACR,oHAAoH,CACpH;IACF,GAAG,EAAE,CAAC;SACJ,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SAC9B,QAAQ,EAAE;SACV,QAAQ,CACR,4FAA4F,CAC5F;IACF,QAAQ,EAAE,CAAC;SACT,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SAC9B,QAAQ,EAAE;SACV,QAAQ,CACR,0GAA0G,CAC1G;IACF,MAAM,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,mEAAmE,CAAC;CAC/E,CAAC;KACD,QAAQ,CAAC,4EAA4E,CAAC,CAAC;AAEzF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC,MAAM,CACxE,CAAC,IAAI,EAAE,EAAE;IACR,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;IAC1E,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAC9D,OAAO,eAAe,IAAI,QAAQ,IAAI,MAAM,IAAI,WAAW,CAAC;AAC7D,CAAC,EACD;IACC,OAAO,EAAE,yEAAyE;CAClF,CACD,CAAC"}
|
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
export declare const SnapshotFileInfoSchema: z.ZodObject<{
|
|
4
|
-
path: z.ZodString;
|
|
5
|
-
size: z.ZodNumber;
|
|
6
|
-
sha256: z.ZodString;
|
|
7
|
-
contentType: z.ZodString;
|
|
8
|
-
mode: z.ZodNumber;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const SnapshotOrgInfoSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
name: z.ZodString;
|
|
13
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const SnapshotUserInfoSchema: z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export declare const SnapshotInfoSchema: z.ZodObject<{
|
|
21
|
-
snapshotId: z.ZodString;
|
|
22
|
-
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
25
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
sizeBytes: z.ZodNumber;
|
|
29
|
-
fileCount: z.ZodNumber;
|
|
30
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
orgName: z.ZodOptional<z.ZodString>;
|
|
33
|
-
orgSlug: z.ZodOptional<z.ZodString>;
|
|
34
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
|
-
id: z.ZodString;
|
|
36
|
-
name: z.ZodString;
|
|
37
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
}, z.core.$strip>>>;
|
|
39
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$strip>>>;
|
|
44
|
-
createdAt: z.ZodString;
|
|
45
|
-
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
46
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
|
-
path: z.ZodString;
|
|
48
|
-
size: z.ZodNumber;
|
|
49
|
-
sha256: z.ZodString;
|
|
50
|
-
contentType: z.ZodString;
|
|
51
|
-
mode: z.ZodNumber;
|
|
52
|
-
}, z.core.$strip>>>>;
|
|
53
|
-
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export declare const SnapshotCreateResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
-
success: z.ZodLiteral<false>;
|
|
57
|
-
message: z.ZodString;
|
|
58
|
-
code: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
success: z.ZodLiteral<true>;
|
|
61
|
-
data: z.ZodObject<{
|
|
62
|
-
snapshotId: z.ZodString;
|
|
63
|
-
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
66
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
-
sizeBytes: z.ZodNumber;
|
|
70
|
-
fileCount: z.ZodNumber;
|
|
71
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
orgName: z.ZodOptional<z.ZodString>;
|
|
74
|
-
orgSlug: z.ZodOptional<z.ZodString>;
|
|
75
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
name: z.ZodString;
|
|
78
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
}, z.core.$strip>>>;
|
|
80
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
81
|
-
id: z.ZodString;
|
|
82
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
-
}, z.core.$strip>>>;
|
|
85
|
-
createdAt: z.ZodString;
|
|
86
|
-
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
87
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
88
|
-
path: z.ZodString;
|
|
89
|
-
size: z.ZodNumber;
|
|
90
|
-
sha256: z.ZodString;
|
|
91
|
-
contentType: z.ZodString;
|
|
92
|
-
mode: z.ZodNumber;
|
|
93
|
-
}, z.core.$strip>>>>;
|
|
94
|
-
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
95
|
-
}, z.core.$strip>;
|
|
96
|
-
}, z.core.$strip>], "success">;
|
|
97
|
-
export declare const SnapshotGetResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
98
|
-
success: z.ZodLiteral<false>;
|
|
99
|
-
message: z.ZodString;
|
|
100
|
-
code: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
success: z.ZodLiteral<true>;
|
|
103
|
-
data: z.ZodObject<{
|
|
104
|
-
snapshotId: z.ZodString;
|
|
105
|
-
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
-
name: z.ZodString;
|
|
107
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
108
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
-
sizeBytes: z.ZodNumber;
|
|
112
|
-
fileCount: z.ZodNumber;
|
|
113
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
-
orgName: z.ZodOptional<z.ZodString>;
|
|
116
|
-
orgSlug: z.ZodOptional<z.ZodString>;
|
|
117
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
118
|
-
id: z.ZodString;
|
|
119
|
-
name: z.ZodString;
|
|
120
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
}, z.core.$strip>>>;
|
|
122
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
123
|
-
id: z.ZodString;
|
|
124
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
-
}, z.core.$strip>>>;
|
|
127
|
-
createdAt: z.ZodString;
|
|
128
|
-
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
129
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
130
|
-
path: z.ZodString;
|
|
131
|
-
size: z.ZodNumber;
|
|
132
|
-
sha256: z.ZodString;
|
|
133
|
-
contentType: z.ZodString;
|
|
134
|
-
mode: z.ZodNumber;
|
|
135
|
-
}, z.core.$strip>>>>;
|
|
136
|
-
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
}, z.core.$strip>], "success">;
|
|
139
|
-
export declare const SnapshotListDataSchema: z.ZodObject<{
|
|
140
|
-
snapshots: z.ZodArray<z.ZodObject<{
|
|
141
|
-
snapshotId: z.ZodString;
|
|
142
|
-
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
-
name: z.ZodString;
|
|
144
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
145
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
-
sizeBytes: z.ZodNumber;
|
|
149
|
-
fileCount: z.ZodNumber;
|
|
150
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
-
orgName: z.ZodOptional<z.ZodString>;
|
|
153
|
-
orgSlug: z.ZodOptional<z.ZodString>;
|
|
154
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
155
|
-
id: z.ZodString;
|
|
156
|
-
name: z.ZodString;
|
|
157
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
-
}, z.core.$strip>>>;
|
|
159
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
160
|
-
id: z.ZodString;
|
|
161
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
-
}, z.core.$strip>>>;
|
|
164
|
-
createdAt: z.ZodString;
|
|
165
|
-
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
166
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
167
|
-
path: z.ZodString;
|
|
168
|
-
size: z.ZodNumber;
|
|
169
|
-
sha256: z.ZodString;
|
|
170
|
-
contentType: z.ZodString;
|
|
171
|
-
mode: z.ZodNumber;
|
|
172
|
-
}, z.core.$strip>>>>;
|
|
173
|
-
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
174
|
-
}, z.core.$strip>>;
|
|
175
|
-
total: z.ZodNumber;
|
|
176
|
-
}, z.core.$strip>;
|
|
177
|
-
export declare const SnapshotListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
|
-
success: z.ZodLiteral<false>;
|
|
179
|
-
message: z.ZodString;
|
|
180
|
-
code: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
182
|
-
success: z.ZodLiteral<true>;
|
|
183
|
-
data: z.ZodObject<{
|
|
184
|
-
snapshots: z.ZodArray<z.ZodObject<{
|
|
185
|
-
snapshotId: z.ZodString;
|
|
186
|
-
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
-
name: z.ZodString;
|
|
188
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
189
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
-
sizeBytes: z.ZodNumber;
|
|
193
|
-
fileCount: z.ZodNumber;
|
|
194
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
-
orgName: z.ZodOptional<z.ZodString>;
|
|
197
|
-
orgSlug: z.ZodOptional<z.ZodString>;
|
|
198
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
199
|
-
id: z.ZodString;
|
|
200
|
-
name: z.ZodString;
|
|
201
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
|
-
}, z.core.$strip>>>;
|
|
203
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
204
|
-
id: z.ZodString;
|
|
205
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
-
}, z.core.$strip>>>;
|
|
208
|
-
createdAt: z.ZodString;
|
|
209
|
-
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
210
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
211
|
-
path: z.ZodString;
|
|
212
|
-
size: z.ZodNumber;
|
|
213
|
-
sha256: z.ZodString;
|
|
214
|
-
contentType: z.ZodString;
|
|
215
|
-
mode: z.ZodNumber;
|
|
216
|
-
}, z.core.$strip>>>>;
|
|
217
|
-
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
218
|
-
}, z.core.$strip>>;
|
|
219
|
-
total: z.ZodNumber;
|
|
220
|
-
}, z.core.$strip>;
|
|
221
|
-
}, z.core.$strip>], "success">;
|
|
222
|
-
export declare const SnapshotDeleteResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
223
|
-
success: z.ZodLiteral<false>;
|
|
224
|
-
message: z.ZodString;
|
|
225
|
-
code: z.ZodOptional<z.ZodString>;
|
|
226
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
-
success: z.ZodLiteral<true>;
|
|
228
|
-
}, z.core.$strip>], "success">;
|
|
229
|
-
export declare const SnapshotLineageEntrySchema: z.ZodObject<{
|
|
230
|
-
snapshotId: z.ZodString;
|
|
231
|
-
name: z.ZodString;
|
|
232
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
233
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
-
public: z.ZodBoolean;
|
|
237
|
-
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
239
|
-
id: z.ZodString;
|
|
240
|
-
name: z.ZodString;
|
|
241
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
-
}, z.core.$strip>>>;
|
|
243
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
244
|
-
id: z.ZodString;
|
|
245
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
-
}, z.core.$strip>>>;
|
|
248
|
-
createdAt: z.ZodString;
|
|
249
|
-
}, z.core.$strip>;
|
|
250
|
-
export declare const SnapshotLineageDataSchema: z.ZodObject<{
|
|
251
|
-
lineage: z.ZodArray<z.ZodObject<{
|
|
252
|
-
snapshotId: z.ZodString;
|
|
253
|
-
name: z.ZodString;
|
|
254
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
255
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
-
public: z.ZodBoolean;
|
|
259
|
-
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
261
|
-
id: z.ZodString;
|
|
262
|
-
name: z.ZodString;
|
|
263
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
|
-
}, z.core.$strip>>>;
|
|
265
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
266
|
-
id: z.ZodString;
|
|
267
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
-
}, z.core.$strip>>>;
|
|
270
|
-
createdAt: z.ZodString;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
total: z.ZodNumber;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
export declare const SnapshotLineageResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
275
|
-
success: z.ZodLiteral<false>;
|
|
276
|
-
message: z.ZodString;
|
|
277
|
-
code: z.ZodOptional<z.ZodString>;
|
|
278
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
279
|
-
success: z.ZodLiteral<true>;
|
|
280
|
-
data: z.ZodObject<{
|
|
281
|
-
lineage: z.ZodArray<z.ZodObject<{
|
|
282
|
-
snapshotId: z.ZodString;
|
|
283
|
-
name: z.ZodString;
|
|
284
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
285
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
-
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
-
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
-
public: z.ZodBoolean;
|
|
289
|
-
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
-
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
291
|
-
id: z.ZodString;
|
|
292
|
-
name: z.ZodString;
|
|
293
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
-
}, z.core.$strip>>>;
|
|
295
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
296
|
-
id: z.ZodString;
|
|
297
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
-
}, z.core.$strip>>>;
|
|
300
|
-
createdAt: z.ZodString;
|
|
301
|
-
}, z.core.$strip>>;
|
|
302
|
-
total: z.ZodNumber;
|
|
303
|
-
}, z.core.$strip>;
|
|
304
|
-
}, z.core.$strip>], "success">;
|
|
305
|
-
export type SnapshotFileInfo = z.infer<typeof SnapshotFileInfoSchema>;
|
|
306
|
-
export type SnapshotInfo = z.infer<typeof SnapshotInfoSchema>;
|
|
307
|
-
export type SnapshotListResponse = z.infer<typeof SnapshotListDataSchema>;
|
|
308
|
-
export type SnapshotLineageEntry = z.infer<typeof SnapshotLineageEntrySchema>;
|
|
309
|
-
export type SnapshotLineageResponse = z.infer<typeof SnapshotLineageDataSchema>;
|
|
310
|
-
declare const _SnapshotCreateParamsSchema: z.ZodObject<{
|
|
311
|
-
sandboxId: z.ZodString;
|
|
312
|
-
name: z.ZodOptional<z.ZodString>;
|
|
313
|
-
description: z.ZodOptional<z.ZodString>;
|
|
314
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
315
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
317
|
-
}, z.core.$strip>;
|
|
318
|
-
declare const _SnapshotGetParamsSchema: z.ZodObject<{
|
|
319
|
-
snapshotId: z.ZodString;
|
|
320
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
321
|
-
}, z.core.$strip>;
|
|
322
|
-
declare const _SnapshotListParamsSchema: z.ZodObject<{
|
|
323
|
-
sandboxId: z.ZodOptional<z.ZodString>;
|
|
324
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
325
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
326
|
-
sort: z.ZodOptional<z.ZodString>;
|
|
327
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
328
|
-
asc: "asc";
|
|
329
|
-
desc: "desc";
|
|
330
|
-
}>>;
|
|
331
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.core.$strip>;
|
|
333
|
-
declare const _SnapshotDeleteParamsSchema: z.ZodObject<{
|
|
334
|
-
snapshotId: z.ZodString;
|
|
335
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
336
|
-
}, z.core.$strip>;
|
|
337
|
-
declare const _SnapshotTagParamsSchema: z.ZodObject<{
|
|
338
|
-
snapshotId: z.ZodString;
|
|
339
|
-
tag: z.ZodNullable<z.ZodString>;
|
|
340
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
341
|
-
}, z.core.$strip>;
|
|
342
|
-
declare const _SnapshotLineageParamsSchema: z.ZodObject<{
|
|
343
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
344
|
-
name: z.ZodOptional<z.ZodString>;
|
|
345
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
346
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
347
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
|
-
export type SnapshotCreateParams = z.infer<typeof _SnapshotCreateParamsSchema>;
|
|
350
|
-
export type SnapshotGetParams = z.infer<typeof _SnapshotGetParamsSchema>;
|
|
351
|
-
export type SnapshotListParams = z.infer<typeof _SnapshotListParamsSchema>;
|
|
352
|
-
export type SnapshotDeleteParams = z.infer<typeof _SnapshotDeleteParamsSchema>;
|
|
353
|
-
export type SnapshotTagParams = z.infer<typeof _SnapshotTagParamsSchema>;
|
|
354
|
-
export type SnapshotLineageParams = z.infer<typeof _SnapshotLineageParamsSchema>;
|
|
355
|
-
/**
|
|
356
|
-
* Creates a snapshot of a sandbox's current state.
|
|
357
|
-
*
|
|
358
|
-
* @param client - The API client to use for the request
|
|
359
|
-
* @param params - Parameters including sandbox ID and optional tag
|
|
360
|
-
* @returns The created snapshot information
|
|
361
|
-
* @throws {SandboxResponseError} If the snapshot creation fails
|
|
362
|
-
*/
|
|
363
|
-
export declare function snapshotCreate(client: APIClient, params: SnapshotCreateParams): Promise<SnapshotInfo>;
|
|
364
|
-
/**
|
|
365
|
-
* Retrieves detailed information about a specific snapshot.
|
|
366
|
-
*
|
|
367
|
-
* @param client - The API client to use for the request
|
|
368
|
-
* @param params - Parameters including the snapshot ID
|
|
369
|
-
* @returns Snapshot information including files and download URL
|
|
370
|
-
* @throws {SandboxResponseError} If the snapshot is not found or request fails
|
|
371
|
-
*/
|
|
372
|
-
export declare function snapshotGet(client: APIClient, params: SnapshotGetParams): Promise<SnapshotInfo>;
|
|
373
|
-
/**
|
|
374
|
-
* Lists snapshots with optional filtering and pagination.
|
|
375
|
-
*
|
|
376
|
-
* @param client - The API client to use for the request
|
|
377
|
-
* @param params - Optional parameters for filtering by sandbox and pagination
|
|
378
|
-
* @returns Paginated list of snapshots with total count
|
|
379
|
-
* @throws {SandboxResponseError} If the request fails
|
|
380
|
-
*/
|
|
381
|
-
export declare function snapshotList(client: APIClient, params?: SnapshotListParams): Promise<SnapshotListResponse>;
|
|
382
|
-
/**
|
|
383
|
-
* Deletes a snapshot and releases its storage.
|
|
384
|
-
*
|
|
385
|
-
* @param client - The API client to use for the request
|
|
386
|
-
* @param params - Parameters including the snapshot ID to delete
|
|
387
|
-
* @throws {SandboxResponseError} If the snapshot is not found or deletion fails
|
|
388
|
-
*/
|
|
389
|
-
export declare function snapshotDelete(client: APIClient, params: SnapshotDeleteParams): Promise<void>;
|
|
390
|
-
/**
|
|
391
|
-
* Updates or removes the tag on a snapshot.
|
|
392
|
-
*
|
|
393
|
-
* @param client - The API client to use for the request
|
|
394
|
-
* @param params - Parameters including snapshot ID and new tag (or null to remove)
|
|
395
|
-
* @returns Updated snapshot information
|
|
396
|
-
* @throws {SandboxResponseError} If the snapshot is not found or update fails
|
|
397
|
-
*/
|
|
398
|
-
export declare function snapshotTag(client: APIClient, params: SnapshotTagParams): Promise<SnapshotInfo>;
|
|
399
|
-
/**
|
|
400
|
-
* Gets the lineage (ancestry chain) of a snapshot.
|
|
401
|
-
*
|
|
402
|
-
* Returns an ordered list of snapshots from the specified snapshot (or latest by name)
|
|
403
|
-
* walking back through parentSnapshotId references to the root.
|
|
404
|
-
*
|
|
405
|
-
* @param client - The API client to use for the request
|
|
406
|
-
* @param params - Parameters specifying which snapshot to get lineage for
|
|
407
|
-
* @returns Ordered list of snapshots in the lineage (newest to oldest)
|
|
408
|
-
* @throws {SandboxResponseError} If the snapshot is not found or request fails
|
|
409
|
-
*
|
|
410
|
-
* @example
|
|
411
|
-
* // Get lineage starting from a specific snapshot ID
|
|
412
|
-
* const lineage = await snapshotLineage(client, { snapshot: 'snp_abc123' });
|
|
413
|
-
*
|
|
414
|
-
* @example
|
|
415
|
-
* // Get lineage starting from the latest snapshot with a given name
|
|
416
|
-
* const lineage = await snapshotLineage(client, { name: 'myapp' });
|
|
417
|
-
*
|
|
418
|
-
* @example
|
|
419
|
-
* // Get lineage starting from a specific name:tag
|
|
420
|
-
* const lineage = await snapshotLineage(client, { name: 'myapp', tag: 'v1.0.0' });
|
|
421
|
-
*/
|
|
422
|
-
export declare function snapshotLineage(client: APIClient, params: SnapshotLineageParams): Promise<SnapshotLineageResponse>;
|
|
423
|
-
declare const _SnapshotPublicListParamsSchema: z.ZodObject<{
|
|
424
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
425
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
426
|
-
}, z.core.$strip>;
|
|
427
|
-
export type SnapshotPublicListParams = z.infer<typeof _SnapshotPublicListParamsSchema>;
|
|
428
|
-
declare const _SnapshotPublicGetParamsSchema: z.ZodObject<{
|
|
429
|
-
snapshotRef: z.ZodString;
|
|
430
|
-
}, z.core.$strip>;
|
|
431
|
-
export type SnapshotPublicGetParams = z.infer<typeof _SnapshotPublicGetParamsSchema>;
|
|
432
|
-
/**
|
|
433
|
-
* Gets a public snapshot without requiring authentication.
|
|
434
|
-
*
|
|
435
|
-
* Supports multiple reference formats:
|
|
436
|
-
* - Snapshot ID: `snp_abc123`
|
|
437
|
-
* - Full name with org slug: `@myorg/myimage:latest`
|
|
438
|
-
* - Simple name:tag: `myimage:v1.0`
|
|
439
|
-
*
|
|
440
|
-
* @param client - The API client to use for the request
|
|
441
|
-
* @param params - Parameters including the snapshot reference
|
|
442
|
-
* @returns Snapshot information including files and download URL
|
|
443
|
-
* @throws {SandboxResponseError} If the snapshot is not found or is not public
|
|
444
|
-
*
|
|
445
|
-
* @example
|
|
446
|
-
* // Get by snapshot ID
|
|
447
|
-
* const snapshot = await snapshotPublicGet(client, { snapshotRef: 'snp_abc123' });
|
|
448
|
-
*
|
|
449
|
-
* @example
|
|
450
|
-
* // Get by full name with org slug
|
|
451
|
-
* const snapshot = await snapshotPublicGet(client, { snapshotRef: '@agentuity/bun:latest' });
|
|
452
|
-
*
|
|
453
|
-
* @example
|
|
454
|
-
* // Get by name:tag
|
|
455
|
-
* const snapshot = await snapshotPublicGet(client, { snapshotRef: 'bun:1.2' });
|
|
456
|
-
*/
|
|
457
|
-
export declare function snapshotPublicGet(client: APIClient, params: SnapshotPublicGetParams): Promise<SnapshotInfo>;
|
|
458
|
-
/**
|
|
459
|
-
* Lists all public snapshots across the platform.
|
|
460
|
-
*
|
|
461
|
-
* Returns paginated list of snapshots that have been marked as public,
|
|
462
|
-
* regardless of which organization owns them.
|
|
463
|
-
*
|
|
464
|
-
* @param client - The API client to use for the request
|
|
465
|
-
* @param params - Optional parameters for pagination
|
|
466
|
-
* @returns Paginated list of public snapshots with total count
|
|
467
|
-
* @throws {SandboxResponseError} If the request fails
|
|
468
|
-
*
|
|
469
|
-
* @example
|
|
470
|
-
* // List first page of public snapshots
|
|
471
|
-
* const result = await snapshotPublicList(client);
|
|
472
|
-
* console.log(result.snapshots);
|
|
473
|
-
*
|
|
474
|
-
* @example
|
|
475
|
-
* // List with pagination
|
|
476
|
-
* const result = await snapshotPublicList(client, { limit: 20, offset: 40 });
|
|
477
|
-
*/
|
|
478
|
-
export declare function snapshotPublicList(client: APIClient, params?: SnapshotPublicListParams): Promise<SnapshotListResponse>;
|
|
479
|
-
/**
|
|
480
|
-
* Git information for snapshot builds
|
|
481
|
-
*/
|
|
482
|
-
export declare const SnapshotBuildGitInfoSchema: z.ZodObject<{
|
|
483
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
484
|
-
commit: z.ZodOptional<z.ZodString>;
|
|
485
|
-
repo: z.ZodOptional<z.ZodString>;
|
|
486
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
487
|
-
commitUrl: z.ZodOptional<z.ZodString>;
|
|
488
|
-
}, z.core.$strip>;
|
|
489
|
-
declare const _SnapshotBuildInitParamsSchema: z.ZodObject<{
|
|
490
|
-
runtime: z.ZodString;
|
|
491
|
-
name: z.ZodOptional<z.ZodString>;
|
|
492
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
493
|
-
description: z.ZodOptional<z.ZodString>;
|
|
494
|
-
message: z.ZodOptional<z.ZodString>;
|
|
495
|
-
git: z.ZodOptional<z.ZodObject<{
|
|
496
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
497
|
-
commit: z.ZodOptional<z.ZodString>;
|
|
498
|
-
repo: z.ZodOptional<z.ZodString>;
|
|
499
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
500
|
-
commitUrl: z.ZodOptional<z.ZodString>;
|
|
501
|
-
}, z.core.$strip>>;
|
|
502
|
-
contentHash: z.ZodOptional<z.ZodString>;
|
|
503
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
-
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
507
|
-
}, z.core.$strip>;
|
|
508
|
-
export type SnapshotBuildGitInfo = z.infer<typeof SnapshotBuildGitInfoSchema>;
|
|
509
|
-
export declare const SnapshotBuildInitResponseSchema: z.ZodObject<{
|
|
510
|
-
snapshotId: z.ZodOptional<z.ZodString>;
|
|
511
|
-
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
512
|
-
publicKey: z.ZodOptional<z.ZodString>;
|
|
513
|
-
unchanged: z.ZodOptional<z.ZodBoolean>;
|
|
514
|
-
existingId: z.ZodOptional<z.ZodString>;
|
|
515
|
-
existingName: z.ZodOptional<z.ZodString>;
|
|
516
|
-
existingTag: z.ZodOptional<z.ZodString>;
|
|
517
|
-
}, z.core.$strip>;
|
|
518
|
-
export declare const SnapshotBuildInitAPIResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
519
|
-
success: z.ZodLiteral<false>;
|
|
520
|
-
message: z.ZodString;
|
|
521
|
-
code: z.ZodOptional<z.ZodString>;
|
|
522
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
523
|
-
success: z.ZodLiteral<true>;
|
|
524
|
-
data: z.ZodObject<{
|
|
525
|
-
snapshotId: z.ZodOptional<z.ZodString>;
|
|
526
|
-
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
527
|
-
publicKey: z.ZodOptional<z.ZodString>;
|
|
528
|
-
unchanged: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
-
existingId: z.ZodOptional<z.ZodString>;
|
|
530
|
-
existingName: z.ZodOptional<z.ZodString>;
|
|
531
|
-
existingTag: z.ZodOptional<z.ZodString>;
|
|
532
|
-
}, z.core.$strip>;
|
|
533
|
-
}, z.core.$strip>], "success">;
|
|
534
|
-
declare const _SnapshotBuildFinalizeParamsSchema: z.ZodObject<{
|
|
535
|
-
snapshotId: z.ZodString;
|
|
536
|
-
sizeBytes: z.ZodNumber;
|
|
537
|
-
fileCount: z.ZodNumber;
|
|
538
|
-
files: z.ZodArray<z.ZodObject<{
|
|
539
|
-
path: z.ZodString;
|
|
540
|
-
size: z.ZodNumber;
|
|
541
|
-
sha256: z.ZodString;
|
|
542
|
-
contentType: z.ZodString;
|
|
543
|
-
mode: z.ZodNumber;
|
|
544
|
-
}, z.core.$strip>>;
|
|
545
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
546
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
547
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
548
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
549
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
550
|
-
}, z.core.$strip>;
|
|
551
|
-
export type SnapshotBuildInitParams = z.infer<typeof _SnapshotBuildInitParamsSchema>;
|
|
552
|
-
export type SnapshotBuildInitResponse = z.infer<typeof SnapshotBuildInitResponseSchema>;
|
|
553
|
-
export type SnapshotBuildFinalizeParams = z.infer<typeof _SnapshotBuildFinalizeParamsSchema>;
|
|
554
|
-
/**
|
|
555
|
-
* Initialize a snapshot build by getting a presigned upload URL.
|
|
556
|
-
*
|
|
557
|
-
* @param client - The API client to use for the request
|
|
558
|
-
* @param params - Parameters including runtime and optional name/tag/description
|
|
559
|
-
* @returns Snapshot ID and presigned upload URL
|
|
560
|
-
* @throws {SandboxResponseError} If the initialization fails
|
|
561
|
-
*/
|
|
562
|
-
export declare function snapshotBuildInit(client: APIClient, params: SnapshotBuildInitParams): Promise<SnapshotBuildInitResponse>;
|
|
563
|
-
/**
|
|
564
|
-
* Finalize a snapshot build after uploading the archive.
|
|
565
|
-
*
|
|
566
|
-
* @param client - The API client to use for the request
|
|
567
|
-
* @param params - Parameters including snapshot details and file metadata
|
|
568
|
-
* @returns The created snapshot information
|
|
569
|
-
* @throws {SandboxResponseError} If the finalization fails
|
|
570
|
-
*/
|
|
571
|
-
export declare function snapshotBuildFinalize(client: APIClient, params: SnapshotBuildFinalizeParams): Promise<SnapshotInfo>;
|
|
572
|
-
export declare const SnapshotUploadResponseSchema: z.ZodObject<{
|
|
573
|
-
success: z.ZodBoolean;
|
|
574
|
-
scanned: z.ZodBoolean;
|
|
575
|
-
message: z.ZodOptional<z.ZodString>;
|
|
576
|
-
}, z.core.$strip>;
|
|
577
|
-
export type SnapshotUploadResponse = z.infer<typeof SnapshotUploadResponseSchema>;
|
|
578
|
-
export interface SnapshotUploadParams {
|
|
579
|
-
snapshotId: string;
|
|
580
|
-
body: Uint8Array | ArrayBuffer | ReadableStream<Uint8Array> | string | Blob;
|
|
581
|
-
contentLength: number;
|
|
582
|
-
orgId?: string;
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Upload a public snapshot archive via Catalyst (with virus scanning).
|
|
586
|
-
* This should only be used when snapshotBuildInit returns no uploadUrl.
|
|
587
|
-
*
|
|
588
|
-
* @param client - The API client to use for the request
|
|
589
|
-
* @param params - Parameters including snapshotId and the archive body
|
|
590
|
-
* @returns Upload result with scan status
|
|
591
|
-
* @throws {SandboxResponseError} If the upload fails or malware is detected
|
|
592
|
-
*/
|
|
593
|
-
export declare function snapshotUpload(client: APIClient, params: SnapshotUploadParams): Promise<SnapshotUploadResponse>;
|
|
594
|
-
export {};
|
|
595
|
-
//# sourceMappingURL=snapshot.d.ts.map
|