@agentuity/server 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.ts +1 -227
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/api.js +1 -637
- package/dist/api/api.js.map +1 -1
- package/dist/api/index.d.ts +1 -17
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -17
- package/dist/api/index.js.map +1 -1
- package/dist/api/org/env-delete.d.ts +1 -22
- package/dist/api/org/env-delete.d.ts.map +1 -1
- package/dist/api/org/env-delete.js +1 -24
- package/dist/api/org/env-delete.js.map +1 -1
- package/dist/api/org/env-get.d.ts +1 -32
- package/dist/api/org/env-get.d.ts.map +1 -1
- package/dist/api/org/env-get.js +1 -25
- package/dist/api/org/env-get.js.map +1 -1
- package/dist/api/org/env-update.d.ts +1 -23
- package/dist/api/org/env-update.d.ts.map +1 -1
- package/dist/api/org/env-update.js +1 -25
- package/dist/api/org/env-update.js.map +1 -1
- package/dist/api/project/get.d.ts +1 -42
- package/dist/api/project/get.d.ts.map +1 -1
- package/dist/api/project/get.js +1 -35
- package/dist/api/project/get.js.map +1 -1
- package/dist/api/project/list.d.ts +1 -47
- package/dist/api/project/list.d.ts.map +1 -1
- package/dist/api/project/list.js +1 -37
- package/dist/api/project/list.js.map +1 -1
- package/dist/api/project/malware.d.ts +1 -70
- package/dist/api/project/malware.d.ts.map +1 -1
- package/dist/api/project/malware.js +1 -41
- package/dist/api/project/malware.js.map +1 -1
- package/dist/api/region/create.d.ts +1 -80
- package/dist/api/region/create.d.ts.map +1 -1
- package/dist/api/region/create.js +1 -176
- package/dist/api/region/create.js.map +1 -1
- package/dist/api/sandbox/client.d.ts +1 -190
- package/dist/api/sandbox/client.d.ts.map +1 -1
- package/dist/api/sandbox/client.js +1 -260
- package/dist/api/sandbox/client.js.map +1 -1
- package/dist/api/sandbox/pause.d.ts +1 -21
- package/dist/api/sandbox/pause.d.ts.map +1 -1
- package/dist/api/sandbox/pause.js +1 -24
- package/dist/api/sandbox/pause.js.map +1 -1
- package/dist/api/sandbox/resume.d.ts +1 -21
- package/dist/api/sandbox/resume.d.ts.map +1 -1
- package/dist/api/sandbox/resume.js +1 -24
- package/dist/api/sandbox/resume.js.map +1 -1
- package/dist/api/sandbox/util.d.ts +1 -284
- package/dist/api/sandbox/util.d.ts.map +1 -1
- package/dist/api/sandbox/util.js +1 -210
- package/dist/api/sandbox/util.js.map +1 -1
- package/dist/api/user/whoami.d.ts +1 -38
- package/dist/api/user/whoami.d.ts.map +1 -1
- package/dist/api/user/whoami.js +1 -26
- package/dist/api/user/whoami.js.map +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/api/api.ts +1 -936
- package/src/api/index.ts +1 -17
- package/src/api/org/env-delete.ts +1 -37
- package/src/api/org/env-get.ts +1 -43
- package/src/api/org/env-update.ts +1 -38
- package/src/api/project/get.ts +1 -49
- package/src/api/project/list.ts +1 -54
- package/src/api/project/malware.ts +1 -68
- package/src/api/region/create.ts +1 -207
- package/src/api/sandbox/client.ts +1 -460
- package/src/api/sandbox/pause.ts +1 -39
- package/src/api/sandbox/resume.ts +1 -39
- package/src/api/sandbox/util.ts +1 -276
- package/src/api/user/whoami.ts +1 -32
- package/src/index.ts +3 -30
- package/dist/api/apikey/create.d.ts +0 -33
- package/dist/api/apikey/create.d.ts.map +0 -1
- package/dist/api/apikey/create.js +0 -23
- package/dist/api/apikey/create.js.map +0 -1
- package/dist/api/apikey/delete.d.ts +0 -19
- package/dist/api/apikey/delete.d.ts.map +0 -1
- package/dist/api/apikey/delete.js +0 -19
- package/dist/api/apikey/delete.js.map +0 -1
- package/dist/api/apikey/get.d.ts +0 -45
- package/dist/api/apikey/get.d.ts.map +0 -1
- package/dist/api/apikey/get.js +0 -36
- package/dist/api/apikey/get.js.map +0 -1
- package/dist/api/apikey/index.d.ts +0 -6
- package/dist/api/apikey/index.d.ts.map +0 -1
- package/dist/api/apikey/index.js +0 -6
- package/dist/api/apikey/index.js.map +0 -1
- package/dist/api/apikey/list.d.ts +0 -64
- package/dist/api/apikey/list.d.ts.map +0 -1
- package/dist/api/apikey/list.js +0 -46
- package/dist/api/apikey/list.js.map +0 -1
- package/dist/api/apikey/util.d.ts +0 -23
- package/dist/api/apikey/util.d.ts.map +0 -1
- package/dist/api/apikey/util.js +0 -3
- package/dist/api/apikey/util.js.map +0 -1
- package/dist/api/db/index.d.ts +0 -5
- package/dist/api/db/index.d.ts.map +0 -1
- package/dist/api/db/index.js +0 -5
- package/dist/api/db/index.js.map +0 -1
- package/dist/api/db/logs.d.ts +0 -70
- package/dist/api/db/logs.d.ts.map +0 -1
- package/dist/api/db/logs.js +0 -59
- package/dist/api/db/logs.js.map +0 -1
- package/dist/api/db/query.d.ts +0 -39
- package/dist/api/db/query.d.ts.map +0 -1
- package/dist/api/db/query.js +0 -49
- package/dist/api/db/query.js.map +0 -1
- package/dist/api/db/tables.d.ts +0 -49
- package/dist/api/db/tables.d.ts.map +0 -1
- package/dist/api/db/tables.js +0 -59
- package/dist/api/db/tables.js.map +0 -1
- package/dist/api/db/util.d.ts +0 -31
- package/dist/api/db/util.d.ts.map +0 -1
- package/dist/api/db/util.js +0 -4
- package/dist/api/db/util.js.map +0 -1
- package/dist/api/eval/get.d.ts +0 -36
- package/dist/api/eval/get.d.ts.map +0 -1
- package/dist/api/eval/get.js +0 -23
- package/dist/api/eval/get.js.map +0 -1
- package/dist/api/eval/index.d.ts +0 -5
- package/dist/api/eval/index.d.ts.map +0 -1
- package/dist/api/eval/index.js +0 -5
- package/dist/api/eval/index.js.map +0 -1
- package/dist/api/eval/list.d.ts +0 -50
- package/dist/api/eval/list.d.ts.map +0 -1
- package/dist/api/eval/list.js +0 -32
- package/dist/api/eval/list.js.map +0 -1
- package/dist/api/eval/run-get.d.ts +0 -48
- package/dist/api/eval/run-get.d.ts.map +0 -1
- package/dist/api/eval/run-get.js +0 -29
- package/dist/api/eval/run-get.js.map +0 -1
- package/dist/api/eval/run-list.d.ts +0 -70
- package/dist/api/eval/run-list.d.ts.map +0 -1
- package/dist/api/eval/run-list.js +0 -42
- package/dist/api/eval/run-list.js.map +0 -1
- package/dist/api/machine/index.d.ts +0 -3
- package/dist/api/machine/index.d.ts.map +0 -1
- package/dist/api/machine/index.js +0 -3
- package/dist/api/machine/index.js.map +0 -1
- package/dist/api/machine/machine.d.ts +0 -192
- package/dist/api/machine/machine.d.ts.map +0 -1
- package/dist/api/machine/machine.js +0 -109
- package/dist/api/machine/machine.js.map +0 -1
- package/dist/api/machine/util.d.ts +0 -14
- package/dist/api/machine/util.d.ts.map +0 -1
- package/dist/api/machine/util.js +0 -3
- package/dist/api/machine/util.js.map +0 -1
- package/dist/api/org/index.d.ts +0 -7
- package/dist/api/org/index.d.ts.map +0 -1
- package/dist/api/org/index.js +0 -7
- package/dist/api/org/index.js.map +0 -1
- package/dist/api/org/list.d.ts +0 -27
- package/dist/api/org/list.d.ts.map +0 -1
- package/dist/api/org/list.js +0 -22
- package/dist/api/org/list.js.map +0 -1
- package/dist/api/org/resources.d.ts +0 -141
- package/dist/api/org/resources.d.ts.map +0 -1
- package/dist/api/org/resources.js +0 -97
- package/dist/api/org/resources.js.map +0 -1
- package/dist/api/org/util.d.ts +0 -45
- package/dist/api/org/util.d.ts.map +0 -1
- package/dist/api/org/util.js +0 -4
- package/dist/api/org/util.js.map +0 -1
- package/dist/api/project/agent.d.ts +0 -89
- package/dist/api/project/agent.d.ts.map +0 -1
- package/dist/api/project/agent.js +0 -60
- package/dist/api/project/agent.js.map +0 -1
- package/dist/api/project/create.d.ts +0 -37
- package/dist/api/project/create.d.ts.map +0 -1
- package/dist/api/project/create.js +0 -31
- package/dist/api/project/create.js.map +0 -1
- package/dist/api/project/delete.d.ts +0 -15
- package/dist/api/project/delete.d.ts.map +0 -1
- package/dist/api/project/delete.js +0 -13
- package/dist/api/project/delete.js.map +0 -1
- package/dist/api/project/deploy.d.ts +0 -490
- package/dist/api/project/deploy.d.ts.map +0 -1
- package/dist/api/project/deploy.js +0 -313
- package/dist/api/project/deploy.js.map +0 -1
- package/dist/api/project/deployment.d.ts +0 -237
- package/dist/api/project/deployment.d.ts.map +0 -1
- package/dist/api/project/deployment.js +0 -127
- package/dist/api/project/deployment.js.map +0 -1
- package/dist/api/project/env-delete.d.ts +0 -22
- package/dist/api/project/env-delete.d.ts.map +0 -1
- package/dist/api/project/env-delete.js +0 -29
- package/dist/api/project/env-delete.js.map +0 -1
- package/dist/api/project/env-update.d.ts +0 -31
- package/dist/api/project/env-update.d.ts.map +0 -1
- package/dist/api/project/env-update.js +0 -36
- package/dist/api/project/env-update.js.map +0 -1
- package/dist/api/project/exists.d.ts +0 -25
- package/dist/api/project/exists.d.ts.map +0 -1
- package/dist/api/project/exists.js +0 -45
- package/dist/api/project/exists.js.map +0 -1
- package/dist/api/project/hostname.d.ts +0 -25
- package/dist/api/project/hostname.d.ts.map +0 -1
- package/dist/api/project/hostname.js +0 -37
- package/dist/api/project/hostname.js.map +0 -1
- package/dist/api/project/index.d.ts +0 -14
- package/dist/api/project/index.d.ts.map +0 -1
- package/dist/api/project/index.js +0 -14
- package/dist/api/project/index.js.map +0 -1
- package/dist/api/project/update-region.d.ts +0 -27
- package/dist/api/project/update-region.d.ts.map +0 -1
- package/dist/api/project/update-region.js +0 -25
- package/dist/api/project/update-region.js.map +0 -1
- package/dist/api/project/util.d.ts +0 -62
- package/dist/api/project/util.d.ts.map +0 -1
- package/dist/api/project/util.js +0 -6
- package/dist/api/project/util.js.map +0 -1
- package/dist/api/queue/analytics.d.ts +0 -250
- package/dist/api/queue/analytics.d.ts.map +0 -1
- package/dist/api/queue/analytics.js +0 -233
- package/dist/api/queue/analytics.js.map +0 -1
- package/dist/api/queue/destinations.d.ts +0 -202
- package/dist/api/queue/destinations.d.ts.map +0 -1
- package/dist/api/queue/destinations.js +0 -168
- package/dist/api/queue/destinations.js.map +0 -1
- package/dist/api/queue/dlq.d.ts +0 -168
- package/dist/api/queue/dlq.d.ts.map +0 -1
- package/dist/api/queue/dlq.js +0 -166
- package/dist/api/queue/dlq.js.map +0 -1
- package/dist/api/queue/index.d.ts +0 -56
- package/dist/api/queue/index.d.ts.map +0 -1
- package/dist/api/queue/index.js +0 -90
- package/dist/api/queue/index.js.map +0 -1
- package/dist/api/queue/messages.d.ts +0 -503
- package/dist/api/queue/messages.d.ts.map +0 -1
- package/dist/api/queue/messages.js +0 -549
- package/dist/api/queue/messages.js.map +0 -1
- package/dist/api/queue/queues.d.ts +0 -226
- package/dist/api/queue/queues.d.ts.map +0 -1
- package/dist/api/queue/queues.js +0 -321
- package/dist/api/queue/queues.js.map +0 -1
- package/dist/api/queue/sources.d.ts +0 -202
- package/dist/api/queue/sources.d.ts.map +0 -1
- package/dist/api/queue/sources.js +0 -202
- package/dist/api/queue/sources.js.map +0 -1
- package/dist/api/queue/types.d.ts +0 -1218
- package/dist/api/queue/types.d.ts.map +0 -1
- package/dist/api/queue/types.js +0 -1002
- package/dist/api/queue/types.js.map +0 -1
- package/dist/api/queue/util.d.ts +0 -278
- package/dist/api/queue/util.d.ts.map +0 -1
- package/dist/api/queue/util.js +0 -235
- package/dist/api/queue/util.js.map +0 -1
- package/dist/api/queue/validation.d.ts +0 -247
- package/dist/api/queue/validation.d.ts.map +0 -1
- package/dist/api/queue/validation.js +0 -513
- package/dist/api/queue/validation.js.map +0 -1
- package/dist/api/queue/websocket.d.ts +0 -168
- package/dist/api/queue/websocket.d.ts.map +0 -1
- package/dist/api/queue/websocket.js +0 -394
- package/dist/api/queue/websocket.js.map +0 -1
- package/dist/api/region/delete.d.ts +0 -62
- package/dist/api/region/delete.d.ts.map +0 -1
- package/dist/api/region/delete.js +0 -37
- package/dist/api/region/delete.js.map +0 -1
- package/dist/api/region/index.d.ts +0 -5
- package/dist/api/region/index.d.ts.map +0 -1
- package/dist/api/region/index.js +0 -5
- package/dist/api/region/index.js.map +0 -1
- package/dist/api/region/list.d.ts +0 -27
- package/dist/api/region/list.d.ts.map +0 -1
- package/dist/api/region/list.js +0 -22
- package/dist/api/region/list.js.map +0 -1
- package/dist/api/region/resources.d.ts +0 -71
- package/dist/api/region/resources.d.ts.map +0 -1
- package/dist/api/region/resources.js +0 -53
- package/dist/api/region/resources.js.map +0 -1
- package/dist/api/region/util.d.ts +0 -23
- package/dist/api/region/util.d.ts.map +0 -1
- package/dist/api/region/util.js +0 -3
- package/dist/api/region/util.js.map +0 -1
- package/dist/api/sandbox/cli-list.d.ts +0 -114
- package/dist/api/sandbox/cli-list.d.ts.map +0 -1
- package/dist/api/sandbox/cli-list.js +0 -71
- package/dist/api/sandbox/cli-list.js.map +0 -1
- package/dist/api/sandbox/create.d.ts +0 -118
- package/dist/api/sandbox/create.d.ts.map +0 -1
- package/dist/api/sandbox/create.js +0 -211
- package/dist/api/sandbox/create.js.map +0 -1
- package/dist/api/sandbox/destroy.d.ts +0 -22
- package/dist/api/sandbox/destroy.d.ts.map +0 -1
- package/dist/api/sandbox/destroy.js +0 -25
- package/dist/api/sandbox/destroy.js.map +0 -1
- package/dist/api/sandbox/disk-checkpoint.d.ts +0 -104
- package/dist/api/sandbox/disk-checkpoint.d.ts.map +0 -1
- package/dist/api/sandbox/disk-checkpoint.js +0 -104
- package/dist/api/sandbox/disk-checkpoint.js.map +0 -1
- package/dist/api/sandbox/execute.d.ts +0 -69
- package/dist/api/sandbox/execute.d.ts.map +0 -1
- package/dist/api/sandbox/execute.js +0 -103
- package/dist/api/sandbox/execute.js.map +0 -1
- package/dist/api/sandbox/execution.d.ts +0 -169
- package/dist/api/sandbox/execution.d.ts.map +0 -1
- package/dist/api/sandbox/execution.js +0 -118
- package/dist/api/sandbox/execution.js.map +0 -1
- package/dist/api/sandbox/files.d.ts +0 -261
- package/dist/api/sandbox/files.d.ts.map +0 -1
- package/dist/api/sandbox/files.js +0 -386
- package/dist/api/sandbox/files.js.map +0 -1
- package/dist/api/sandbox/get.d.ts +0 -283
- package/dist/api/sandbox/get.d.ts.map +0 -1
- package/dist/api/sandbox/get.js +0 -215
- package/dist/api/sandbox/get.js.map +0 -1
- package/dist/api/sandbox/getStatus.d.ts +0 -16
- package/dist/api/sandbox/getStatus.d.ts.map +0 -1
- package/dist/api/sandbox/getStatus.js +0 -32
- package/dist/api/sandbox/getStatus.js.map +0 -1
- package/dist/api/sandbox/index.d.ts +0 -39
- package/dist/api/sandbox/index.d.ts.map +0 -1
- package/dist/api/sandbox/index.js +0 -20
- package/dist/api/sandbox/index.js.map +0 -1
- package/dist/api/sandbox/list.d.ts +0 -293
- package/dist/api/sandbox/list.d.ts.map +0 -1
- package/dist/api/sandbox/list.js +0 -191
- package/dist/api/sandbox/list.js.map +0 -1
- package/dist/api/sandbox/resolve.d.ts +0 -82
- package/dist/api/sandbox/resolve.d.ts.map +0 -1
- package/dist/api/sandbox/resolve.js +0 -71
- package/dist/api/sandbox/resolve.js.map +0 -1
- package/dist/api/sandbox/run.d.ts +0 -28
- package/dist/api/sandbox/run.d.ts.map +0 -1
- package/dist/api/sandbox/run.js +0 -342
- package/dist/api/sandbox/run.js.map +0 -1
- package/dist/api/sandbox/runtime.d.ts +0 -83
- package/dist/api/sandbox/runtime.d.ts.map +0 -1
- package/dist/api/sandbox/runtime.js +0 -78
- package/dist/api/sandbox/runtime.js.map +0 -1
- package/dist/api/sandbox/snapshot-build.d.ts +0 -48
- package/dist/api/sandbox/snapshot-build.d.ts.map +0 -1
- package/dist/api/sandbox/snapshot-build.js +0 -74
- package/dist/api/sandbox/snapshot-build.js.map +0 -1
- package/dist/api/sandbox/snapshot.d.ts +0 -595
- package/dist/api/sandbox/snapshot.d.ts.map +0 -1
- package/dist/api/sandbox/snapshot.js +0 -598
- package/dist/api/sandbox/snapshot.js.map +0 -1
- package/dist/api/services/index.d.ts +0 -2
- package/dist/api/services/index.d.ts.map +0 -1
- package/dist/api/services/index.js +0 -2
- package/dist/api/services/index.js.map +0 -1
- package/dist/api/services/stats.d.ts +0 -263
- package/dist/api/services/stats.d.ts.map +0 -1
- package/dist/api/services/stats.js +0 -144
- package/dist/api/services/stats.js.map +0 -1
- package/dist/api/session/get.d.ts +0 -169
- package/dist/api/session/get.d.ts.map +0 -1
- package/dist/api/session/get.js +0 -56
- package/dist/api/session/get.js.map +0 -1
- package/dist/api/session/index.d.ts +0 -4
- package/dist/api/session/index.d.ts.map +0 -1
- package/dist/api/session/index.js +0 -4
- package/dist/api/session/index.js.map +0 -1
- package/dist/api/session/list.d.ts +0 -143
- package/dist/api/session/list.d.ts.map +0 -1
- package/dist/api/session/list.js +0 -91
- package/dist/api/session/list.js.map +0 -1
- package/dist/api/session/logs.d.ts +0 -40
- package/dist/api/session/logs.d.ts.map +0 -1
- package/dist/api/session/logs.js +0 -28
- package/dist/api/session/logs.js.map +0 -1
- package/dist/api/session/util.d.ts +0 -23
- package/dist/api/session/util.d.ts.map +0 -1
- package/dist/api/session/util.js +0 -3
- package/dist/api/session/util.js.map +0 -1
- package/dist/api/storage/config.d.ts +0 -99
- package/dist/api/storage/config.d.ts.map +0 -1
- package/dist/api/storage/config.js +0 -61
- package/dist/api/storage/config.js.map +0 -1
- package/dist/api/storage/index.d.ts +0 -5
- package/dist/api/storage/index.d.ts.map +0 -1
- package/dist/api/storage/index.js +0 -5
- package/dist/api/storage/index.js.map +0 -1
- package/dist/api/storage/objects.d.ts +0 -155
- package/dist/api/storage/objects.d.ts.map +0 -1
- package/dist/api/storage/objects.js +0 -148
- package/dist/api/storage/objects.js.map +0 -1
- package/dist/api/storage/types.d.ts +0 -161
- package/dist/api/storage/types.d.ts.map +0 -1
- package/dist/api/storage/types.js +0 -141
- package/dist/api/storage/types.js.map +0 -1
- package/dist/api/storage/util.d.ts +0 -48
- package/dist/api/storage/util.d.ts.map +0 -1
- package/dist/api/storage/util.js +0 -8
- package/dist/api/storage/util.js.map +0 -1
- package/dist/api/stream/get.d.ts +0 -58
- package/dist/api/stream/get.d.ts.map +0 -1
- package/dist/api/stream/get.js +0 -40
- package/dist/api/stream/get.js.map +0 -1
- package/dist/api/stream/index.d.ts +0 -4
- package/dist/api/stream/index.d.ts.map +0 -1
- package/dist/api/stream/index.js +0 -4
- package/dist/api/stream/index.js.map +0 -1
- package/dist/api/stream/list.d.ts +0 -120
- package/dist/api/stream/list.d.ts.map +0 -1
- package/dist/api/stream/list.js +0 -77
- package/dist/api/stream/list.js.map +0 -1
- package/dist/api/stream/util.d.ts +0 -23
- package/dist/api/stream/util.d.ts.map +0 -1
- package/dist/api/stream/util.js +0 -3
- package/dist/api/stream/util.js.map +0 -1
- package/dist/api/thread/delete.d.ts +0 -23
- package/dist/api/thread/delete.d.ts.map +0 -1
- package/dist/api/thread/delete.js +0 -21
- package/dist/api/thread/delete.js.map +0 -1
- package/dist/api/thread/get.d.ts +0 -36
- package/dist/api/thread/get.d.ts.map +0 -1
- package/dist/api/thread/get.js +0 -23
- package/dist/api/thread/get.js.map +0 -1
- package/dist/api/thread/index.d.ts +0 -5
- package/dist/api/thread/index.d.ts.map +0 -1
- package/dist/api/thread/index.js +0 -5
- package/dist/api/thread/index.js.map +0 -1
- package/dist/api/thread/list.d.ts +0 -69
- package/dist/api/thread/list.d.ts.map +0 -1
- package/dist/api/thread/list.js +0 -51
- package/dist/api/thread/list.js.map +0 -1
- package/dist/api/thread/util.d.ts +0 -23
- package/dist/api/thread/util.d.ts.map +0 -1
- package/dist/api/thread/util.js +0 -3
- package/dist/api/thread/util.js.map +0 -1
- package/dist/api/user/index.d.ts +0 -2
- package/dist/api/user/index.d.ts.map +0 -1
- package/dist/api/user/index.js +0 -2
- package/dist/api/user/index.js.map +0 -1
- package/dist/api/user/util.d.ts +0 -23
- package/dist/api/user/util.d.ts.map +0 -1
- package/dist/api/user/util.js +0 -3
- package/dist/api/user/util.js.map +0 -1
- package/dist/api/webhook/deliveries.d.ts +0 -94
- package/dist/api/webhook/deliveries.d.ts.map +0 -1
- package/dist/api/webhook/deliveries.js +0 -79
- package/dist/api/webhook/deliveries.js.map +0 -1
- package/dist/api/webhook/destinations.d.ts +0 -136
- package/dist/api/webhook/destinations.d.ts.map +0 -1
- package/dist/api/webhook/destinations.js +0 -137
- package/dist/api/webhook/destinations.js.map +0 -1
- package/dist/api/webhook/index.d.ts +0 -41
- package/dist/api/webhook/index.d.ts.map +0 -1
- package/dist/api/webhook/index.js +0 -59
- package/dist/api/webhook/index.js.map +0 -1
- package/dist/api/webhook/receipts.d.ts +0 -77
- package/dist/api/webhook/receipts.d.ts.map +0 -1
- package/dist/api/webhook/receipts.js +0 -78
- package/dist/api/webhook/receipts.js.map +0 -1
- package/dist/api/webhook/types.d.ts +0 -249
- package/dist/api/webhook/types.d.ts.map +0 -1
- package/dist/api/webhook/types.js +0 -221
- package/dist/api/webhook/types.js.map +0 -1
- package/dist/api/webhook/util.d.ts +0 -202
- package/dist/api/webhook/util.d.ts.map +0 -1
- package/dist/api/webhook/util.js +0 -201
- package/dist/api/webhook/util.js.map +0 -1
- package/dist/api/webhook/webhooks.d.ts +0 -146
- package/dist/api/webhook/webhooks.d.ts.map +0 -1
- package/dist/api/webhook/webhooks.js +0 -165
- package/dist/api/webhook/webhooks.js.map +0 -1
- package/src/api/api-example.md +0 -164
- package/src/api/apikey/create.ts +0 -41
- package/src/api/apikey/delete.ts +0 -30
- package/src/api/apikey/get.ts +0 -48
- package/src/api/apikey/index.ts +0 -5
- package/src/api/apikey/list.ts +0 -64
- package/src/api/apikey/util.ts +0 -3
- package/src/api/db/index.ts +0 -27
- package/src/api/db/logs.ts +0 -75
- package/src/api/db/query.ts +0 -67
- package/src/api/db/tables.ts +0 -92
- package/src/api/db/util.ts +0 -9
- package/src/api/eval/get.ts +0 -33
- package/src/api/eval/index.ts +0 -28
- package/src/api/eval/list.ts +0 -49
- package/src/api/eval/run-get.ts +0 -39
- package/src/api/eval/run-list.ts +0 -59
- package/src/api/machine/index.ts +0 -2
- package/src/api/machine/machine.ts +0 -160
- package/src/api/machine/util.ts +0 -5
- package/src/api/org/index.ts +0 -6
- package/src/api/org/list.ts +0 -28
- package/src/api/org/resources.ts +0 -140
- package/src/api/org/util.ts +0 -4
- package/src/api/project/agent.ts +0 -86
- package/src/api/project/create.ts +0 -47
- package/src/api/project/delete.ts +0 -25
- package/src/api/project/deploy.ts +0 -458
- package/src/api/project/deployment.ts +0 -195
- package/src/api/project/env-delete.ts +0 -45
- package/src/api/project/env-update.ts +0 -55
- package/src/api/project/exists.ts +0 -58
- package/src/api/project/hostname.ts +0 -73
- package/src/api/project/index.ts +0 -13
- package/src/api/project/update-region.ts +0 -44
- package/src/api/project/util.ts +0 -8
- package/src/api/queue/analytics.ts +0 -311
- package/src/api/queue/destinations.ts +0 -259
- package/src/api/queue/dlq.ts +0 -243
- package/src/api/queue/index.ts +0 -308
- package/src/api/queue/messages.ts +0 -784
- package/src/api/queue/queues.ts +0 -460
- package/src/api/queue/sources.ts +0 -294
- package/src/api/queue/types.ts +0 -1325
- package/src/api/queue/util.ts +0 -278
- package/src/api/queue/validation.ts +0 -560
- package/src/api/queue/websocket.ts +0 -514
- package/src/api/region/delete.ts +0 -57
- package/src/api/region/index.ts +0 -4
- package/src/api/region/list.ts +0 -32
- package/src/api/region/resources.ts +0 -69
- package/src/api/region/util.ts +0 -3
- package/src/api/sandbox/cli-list.ts +0 -127
- package/src/api/sandbox/create.ts +0 -256
- package/src/api/sandbox/destroy.ts +0 -41
- package/src/api/sandbox/disk-checkpoint.ts +0 -179
- package/src/api/sandbox/execute.ts +0 -132
- package/src/api/sandbox/execution.ts +0 -183
- package/src/api/sandbox/files.ts +0 -596
- package/src/api/sandbox/get.ts +0 -249
- package/src/api/sandbox/getStatus.ts +0 -54
- package/src/api/sandbox/index.ts +0 -211
- package/src/api/sandbox/list.ts +0 -224
- package/src/api/sandbox/resolve.ts +0 -98
- package/src/api/sandbox/run.ts +0 -439
- package/src/api/sandbox/runtime.ts +0 -100
- package/src/api/sandbox/snapshot-build.ts +0 -98
- package/src/api/sandbox/snapshot.ts +0 -781
- package/src/api/services/index.ts +0 -1
- package/src/api/services/stats.ts +0 -213
- package/src/api/session/get.ts +0 -106
- package/src/api/session/index.ts +0 -3
- package/src/api/session/list.ts +0 -136
- package/src/api/session/logs.ts +0 -47
- package/src/api/session/util.ts +0 -3
- package/src/api/storage/config.ts +0 -111
- package/src/api/storage/index.ts +0 -4
- package/src/api/storage/objects.ts +0 -250
- package/src/api/storage/types.ts +0 -174
- package/src/api/storage/util.ts +0 -10
- package/src/api/stream/get.ts +0 -51
- package/src/api/stream/index.ts +0 -3
- package/src/api/stream/list.ts +0 -127
- package/src/api/stream/util.ts +0 -3
- package/src/api/thread/delete.ts +0 -31
- package/src/api/thread/get.ts +0 -34
- package/src/api/thread/index.ts +0 -4
- package/src/api/thread/list.ts +0 -76
- package/src/api/thread/util.ts +0 -3
- package/src/api/user/index.ts +0 -1
- package/src/api/user/util.ts +0 -3
- package/src/api/webhook/deliveries.ts +0 -129
- package/src/api/webhook/destinations.ts +0 -224
- package/src/api/webhook/index.ts +0 -133
- package/src/api/webhook/receipts.ts +0 -124
- package/src/api/webhook/types.ts +0 -309
- package/src/api/webhook/util.ts +0 -237
- package/src/api/webhook/webhooks.ts +0 -260
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { SortDirection } from '@agentuity/core';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { APIClient } from '../api.ts';
|
|
4
|
-
export declare const ThreadSchema: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
created_at: z.ZodString;
|
|
7
|
-
updated_at: z.ZodString;
|
|
8
|
-
deleted: z.ZodBoolean;
|
|
9
|
-
deleted_at: z.ZodNullable<z.ZodString>;
|
|
10
|
-
deleted_by: z.ZodNullable<z.ZodString>;
|
|
11
|
-
org_id: z.ZodString;
|
|
12
|
-
project_id: z.ZodString;
|
|
13
|
-
user_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const ThreadListResponseData: z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
created_at: z.ZodString;
|
|
19
|
-
updated_at: z.ZodString;
|
|
20
|
-
deleted: z.ZodBoolean;
|
|
21
|
-
deleted_at: z.ZodNullable<z.ZodString>;
|
|
22
|
-
deleted_by: z.ZodNullable<z.ZodString>;
|
|
23
|
-
org_id: z.ZodString;
|
|
24
|
-
project_id: z.ZodString;
|
|
25
|
-
user_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
export declare const ThreadListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
-
success: z.ZodLiteral<false>;
|
|
30
|
-
message: z.ZodString;
|
|
31
|
-
code: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
success: z.ZodLiteral<true>;
|
|
34
|
-
data: z.ZodArray<z.ZodObject<{
|
|
35
|
-
id: z.ZodString;
|
|
36
|
-
created_at: z.ZodString;
|
|
37
|
-
updated_at: z.ZodString;
|
|
38
|
-
deleted: z.ZodBoolean;
|
|
39
|
-
deleted_at: z.ZodNullable<z.ZodString>;
|
|
40
|
-
deleted_by: z.ZodNullable<z.ZodString>;
|
|
41
|
-
org_id: z.ZodString;
|
|
42
|
-
project_id: z.ZodString;
|
|
43
|
-
user_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
|
-
}, z.core.$strip>>;
|
|
46
|
-
}, z.core.$strip>], "success">;
|
|
47
|
-
export type ThreadListResponse = z.infer<typeof ThreadListResponseSchema>;
|
|
48
|
-
export type ThreadList = z.infer<typeof ThreadListResponseData>;
|
|
49
|
-
export type Thread = z.infer<typeof ThreadSchema>;
|
|
50
|
-
export type ThreadSortField = 'created' | 'updated';
|
|
51
|
-
export interface ThreadListOptions {
|
|
52
|
-
count?: number;
|
|
53
|
-
limit?: number;
|
|
54
|
-
offset?: number;
|
|
55
|
-
sort?: ThreadSortField;
|
|
56
|
-
direction?: SortDirection;
|
|
57
|
-
orgId?: string;
|
|
58
|
-
projectId?: string;
|
|
59
|
-
metadata?: Record<string, unknown>;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* List threads
|
|
63
|
-
*
|
|
64
|
-
* @param client
|
|
65
|
-
* @param options filtering and pagination options
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
export declare function threadList(client: APIClient, options?: ThreadListOptions): Promise<ThreadList>;
|
|
69
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/thread/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,YAAY;;;;;;;;;;;iBAevB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;kBAAwB,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;8BAA4C,CAAC;AAElF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAC/B,MAAM,EAAE,SAAS,EACjB,OAAO,GAAE,iBAAsB,GAC7B,OAAO,CAAC,UAAU,CAAC,CAsBrB"}
|
package/dist/api/thread/list.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { ThreadResponseError } from "./util.js";
|
|
4
|
-
export const ThreadSchema = z.object({
|
|
5
|
-
id: z.string().describe('the thread id'),
|
|
6
|
-
created_at: z.string().describe('the creation timestamp'),
|
|
7
|
-
updated_at: z.string().describe('the last update timestamp'),
|
|
8
|
-
deleted: z.boolean().describe('whether the thread is deleted'),
|
|
9
|
-
deleted_at: z.string().nullable().describe('the deletion timestamp'),
|
|
10
|
-
deleted_by: z.string().nullable().describe('who deleted the thread'),
|
|
11
|
-
org_id: z.string().describe('the organization id'),
|
|
12
|
-
project_id: z.string().describe('the project id'),
|
|
13
|
-
user_data: z.string().nullable().optional().describe('the user data as JSON'),
|
|
14
|
-
metadata: z
|
|
15
|
-
.record(z.string(), z.unknown())
|
|
16
|
-
.nullable()
|
|
17
|
-
.optional()
|
|
18
|
-
.describe('unencrypted key-value metadata'),
|
|
19
|
-
});
|
|
20
|
-
export const ThreadListResponseData = z.array(ThreadSchema);
|
|
21
|
-
export const ThreadListResponseSchema = APIResponseSchema(ThreadListResponseData);
|
|
22
|
-
/**
|
|
23
|
-
* List threads
|
|
24
|
-
*
|
|
25
|
-
* @param client
|
|
26
|
-
* @param options filtering and pagination options
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
export async function threadList(client, options = {}) {
|
|
30
|
-
const { limit, count, offset, sort, direction, orgId, projectId, metadata } = options;
|
|
31
|
-
const resolvedLimit = limit ?? count ?? 10;
|
|
32
|
-
const params = new URLSearchParams({ limit: resolvedLimit.toString() });
|
|
33
|
-
if (orgId)
|
|
34
|
-
params.set('orgId', orgId);
|
|
35
|
-
if (projectId)
|
|
36
|
-
params.set('projectId', projectId);
|
|
37
|
-
if (offset !== undefined)
|
|
38
|
-
params.set('offset', offset.toString());
|
|
39
|
-
if (sort)
|
|
40
|
-
params.set('sort', sort);
|
|
41
|
-
if (direction)
|
|
42
|
-
params.set('direction', direction);
|
|
43
|
-
if (metadata)
|
|
44
|
-
params.set('metadata', JSON.stringify(metadata));
|
|
45
|
-
const resp = await client.request('GET', `/thread/2025-03-17?${params.toString()}`, ThreadListResponseSchema);
|
|
46
|
-
if (resp.success) {
|
|
47
|
-
return resp.data;
|
|
48
|
-
}
|
|
49
|
-
throw new ThreadResponseError({ message: resp.message });
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/thread/list.ts"],"names":[],"mappings":"AACA,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,M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@agentuity/core").RichError & {
|
|
6
|
-
readonly _tag: "ThreadResponseError";
|
|
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: "ThreadResponseError";
|
|
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/thread/util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC"}
|
package/dist/api/thread/util.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/thread/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/user/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/api/user/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/api/user/util.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const UserResponseError: {
|
|
2
|
-
new (args?: {
|
|
3
|
-
message?: string;
|
|
4
|
-
cause?: unknown;
|
|
5
|
-
} | undefined): import("@agentuity/core").RichError & {
|
|
6
|
-
readonly _tag: "UserResponseError";
|
|
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: "UserResponseError";
|
|
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/user/util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAC"}
|
package/dist/api/user/util.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/user/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
import { type ListWebhookDeliveriesRequest, type WebhookApiOptions, type WebhookDelivery } from './types.ts';
|
|
4
|
-
export declare const WebhookDeliveryResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
-
success: z.ZodLiteral<false>;
|
|
6
|
-
message: z.ZodString;
|
|
7
|
-
code: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
success: z.ZodLiteral<true>;
|
|
10
|
-
data: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
date: z.ZodString;
|
|
13
|
-
webhook_id: z.ZodString;
|
|
14
|
-
webhook_destination_id: z.ZodString;
|
|
15
|
-
webhook_receipt_id: z.ZodString;
|
|
16
|
-
status: z.ZodEnum<{
|
|
17
|
-
success: "success";
|
|
18
|
-
pending: "pending";
|
|
19
|
-
failed: "failed";
|
|
20
|
-
}>;
|
|
21
|
-
retries: z.ZodNumber;
|
|
22
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
response: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
}, z.core.$strip>], "success">;
|
|
26
|
-
export declare const WebhookDeliveriesListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
-
success: z.ZodLiteral<false>;
|
|
28
|
-
message: z.ZodString;
|
|
29
|
-
code: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
success: z.ZodLiteral<true>;
|
|
32
|
-
data: z.ZodArray<z.ZodObject<{
|
|
33
|
-
id: z.ZodString;
|
|
34
|
-
date: z.ZodString;
|
|
35
|
-
webhook_id: z.ZodString;
|
|
36
|
-
webhook_destination_id: z.ZodString;
|
|
37
|
-
webhook_receipt_id: z.ZodString;
|
|
38
|
-
status: z.ZodEnum<{
|
|
39
|
-
success: "success";
|
|
40
|
-
pending: "pending";
|
|
41
|
-
failed: "failed";
|
|
42
|
-
}>;
|
|
43
|
-
retries: z.ZodNumber;
|
|
44
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
response: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
}, z.core.$strip>], "success">;
|
|
48
|
-
/**
|
|
49
|
-
* List deliveries for a webhook with optional pagination.
|
|
50
|
-
*
|
|
51
|
-
* Deliveries represent attempts to forward a received webhook payload to a destination.
|
|
52
|
-
*
|
|
53
|
-
* @param client - The API client instance
|
|
54
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
55
|
-
* @param params - Optional pagination parameters
|
|
56
|
-
* @param options - Optional API options (e.g., orgId)
|
|
57
|
-
* @returns Object containing the list of deliveries
|
|
58
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
59
|
-
* @throws {WebhookError} If the API request fails
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```typescript
|
|
63
|
-
* const { deliveries } = await listWebhookDeliveries(client, 'wh_abc123', { limit: 10 });
|
|
64
|
-
* for (const delivery of deliveries) {
|
|
65
|
-
* console.log(`Delivery ${delivery.id}: ${delivery.status}`);
|
|
66
|
-
* }
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export declare function listWebhookDeliveries(client: APIClient, webhookId: string, params?: ListWebhookDeliveriesRequest, options?: WebhookApiOptions): Promise<{
|
|
70
|
-
deliveries: WebhookDelivery[];
|
|
71
|
-
}>;
|
|
72
|
-
/**
|
|
73
|
-
* Retry a failed webhook delivery.
|
|
74
|
-
*
|
|
75
|
-
* Re-attempts delivery of a webhook payload to the destination. This creates
|
|
76
|
-
* a new delivery attempt for the same receipt and destination.
|
|
77
|
-
*
|
|
78
|
-
* @param client - The API client instance
|
|
79
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
80
|
-
* @param deliveryId - The delivery ID to retry (prefixed with whdv_)
|
|
81
|
-
* @param options - Optional API options (e.g., orgId)
|
|
82
|
-
* @returns The new delivery attempt
|
|
83
|
-
* @throws {WebhookDeliveryNotFoundError} If the delivery does not exist
|
|
84
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
85
|
-
* @throws {WebhookError} If the API request fails
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```typescript
|
|
89
|
-
* const delivery = await retryWebhookDelivery(client, 'wh_abc123', 'whdv_def456');
|
|
90
|
-
* console.log(`Retry delivery ${delivery.id}: ${delivery.status}`);
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
export declare function retryWebhookDelivery(client: APIClient, webhookId: string, deliveryId: string, options?: WebhookApiOptions): Promise<WebhookDelivery>;
|
|
94
|
-
//# sourceMappingURL=deliveries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deliveries.d.ts","sourceRoot":"","sources":["../../../src/api/webhook/deliveries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,WAAW,CAAC;AAC9D,OAAO,EACN,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,eAAe,EAEpB,MAAM,YAAY,CAAC;AASpB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;8BAA2C,CAAC;AACtF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;8BAE/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,iBAAiB,GACzB,OAAO,CAAC;IAAE,UAAU,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC,CA8B5C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,iBAAiB,GACzB,OAAO,CAAC,eAAe,CAAC,CAuB1B"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIResponseSchema } from "../api.js";
|
|
3
|
-
import { WebhookDeliverySchema, } from "./types.js";
|
|
4
|
-
import { buildWebhookHeaders, WebhookError, webhookApiPath, webhookApiPathWithQuery, withWebhookErrorHandling, } from "./util.js";
|
|
5
|
-
export const WebhookDeliveryResponseSchema = APIResponseSchema(WebhookDeliverySchema);
|
|
6
|
-
export const WebhookDeliveriesListResponseSchema = APIResponseSchema(z.array(WebhookDeliverySchema));
|
|
7
|
-
/**
|
|
8
|
-
* List deliveries for a webhook with optional pagination.
|
|
9
|
-
*
|
|
10
|
-
* Deliveries represent attempts to forward a received webhook payload to a destination.
|
|
11
|
-
*
|
|
12
|
-
* @param client - The API client instance
|
|
13
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
14
|
-
* @param params - Optional pagination parameters
|
|
15
|
-
* @param options - Optional API options (e.g., orgId)
|
|
16
|
-
* @returns Object containing the list of deliveries
|
|
17
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
18
|
-
* @throws {WebhookError} If the API request fails
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const { deliveries } = await listWebhookDeliveries(client, 'wh_abc123', { limit: 10 });
|
|
23
|
-
* for (const delivery of deliveries) {
|
|
24
|
-
* console.log(`Delivery ${delivery.id}: ${delivery.status}`);
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export async function listWebhookDeliveries(client, webhookId, params, options) {
|
|
29
|
-
const searchParams = new URLSearchParams();
|
|
30
|
-
if (params?.limit !== undefined) {
|
|
31
|
-
searchParams.set('limit', String(params.limit));
|
|
32
|
-
}
|
|
33
|
-
if (params?.offset !== undefined) {
|
|
34
|
-
searchParams.set('offset', String(params.offset));
|
|
35
|
-
}
|
|
36
|
-
const queryString = searchParams.toString();
|
|
37
|
-
const url = webhookApiPathWithQuery('delivery-list', queryString || undefined, webhookId);
|
|
38
|
-
const resp = await withWebhookErrorHandling(() => client.get(url, WebhookDeliveriesListResponseSchema, undefined, buildWebhookHeaders(options?.orgId)), { webhookId });
|
|
39
|
-
if (resp.success) {
|
|
40
|
-
return { deliveries: resp.data };
|
|
41
|
-
}
|
|
42
|
-
throw new WebhookError({
|
|
43
|
-
webhookId,
|
|
44
|
-
message: resp.message || 'Failed to list webhook deliveries',
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Retry a failed webhook delivery.
|
|
49
|
-
*
|
|
50
|
-
* Re-attempts delivery of a webhook payload to the destination. This creates
|
|
51
|
-
* a new delivery attempt for the same receipt and destination.
|
|
52
|
-
*
|
|
53
|
-
* @param client - The API client instance
|
|
54
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
55
|
-
* @param deliveryId - The delivery ID to retry (prefixed with whdv_)
|
|
56
|
-
* @param options - Optional API options (e.g., orgId)
|
|
57
|
-
* @returns The new delivery attempt
|
|
58
|
-
* @throws {WebhookDeliveryNotFoundError} If the delivery does not exist
|
|
59
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
60
|
-
* @throws {WebhookError} If the API request fails
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* const delivery = await retryWebhookDelivery(client, 'wh_abc123', 'whdv_def456');
|
|
65
|
-
* console.log(`Retry delivery ${delivery.id}: ${delivery.status}`);
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
export async function retryWebhookDelivery(client, webhookId, deliveryId, options) {
|
|
69
|
-
const url = webhookApiPath('delivery-retry', webhookId, deliveryId);
|
|
70
|
-
const resp = await withWebhookErrorHandling(() => client.post(url, {}, WebhookDeliveryResponseSchema, z.object({}), undefined, buildWebhookHeaders(options?.orgId)), { webhookId, deliveryId });
|
|
71
|
-
if (resp.success) {
|
|
72
|
-
return resp.data;
|
|
73
|
-
}
|
|
74
|
-
throw new WebhookError({
|
|
75
|
-
webhookId,
|
|
76
|
-
message: resp.message || 'Failed to retry webhook delivery',
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=deliveries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deliveries.js","sourceRoot":"","sources":["../../../src/api/webhook/deliveries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAIN,qBAAqB,GACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,wBAAwB,GACxB,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,6BAA6B,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CACnE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAC1C,MAAiB,EACjB,SAAiB,EACjB,MAAqC,EACrC,OAA2B;IAE3B,MAAM,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;IAC3C,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;QACjC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,IAAI,MAAM,EAAE,MAAM,KAAK,SA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O,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,YAAY,CAAC;QACtB,SAAS;QACT,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,kCAAkC;KAC3D,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type APIClient } from '../api.ts';
|
|
3
|
-
import { type CreateWebhookDestinationRequest, type UpdateWebhookDestinationRequest, type WebhookApiOptions, type WebhookDestination } from './types.ts';
|
|
4
|
-
export declare const WebhookDestinationResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
-
success: z.ZodLiteral<false>;
|
|
6
|
-
message: z.ZodString;
|
|
7
|
-
code: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
success: z.ZodLiteral<true>;
|
|
10
|
-
data: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
created_at: z.ZodString;
|
|
13
|
-
updated_at: z.ZodString;
|
|
14
|
-
created_by: z.ZodString;
|
|
15
|
-
webhook_id: z.ZodString;
|
|
16
|
-
type: z.ZodEnum<{
|
|
17
|
-
url: "url";
|
|
18
|
-
}>;
|
|
19
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
}, z.core.$strip>], "success">;
|
|
22
|
-
export declare const WebhookDestinationsListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
-
success: z.ZodLiteral<false>;
|
|
24
|
-
message: z.ZodString;
|
|
25
|
-
code: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
success: z.ZodLiteral<true>;
|
|
28
|
-
data: z.ZodArray<z.ZodObject<{
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
created_at: z.ZodString;
|
|
31
|
-
updated_at: z.ZodString;
|
|
32
|
-
created_by: z.ZodString;
|
|
33
|
-
webhook_id: z.ZodString;
|
|
34
|
-
type: z.ZodEnum<{
|
|
35
|
-
url: "url";
|
|
36
|
-
}>;
|
|
37
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
}, z.core.$strip>], "success">;
|
|
40
|
-
export declare const DeleteWebhookDestinationResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
-
success: z.ZodLiteral<false>;
|
|
42
|
-
message: z.ZodString;
|
|
43
|
-
code: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
success: z.ZodLiteral<true>;
|
|
46
|
-
}, z.core.$strip>], "success">;
|
|
47
|
-
/**
|
|
48
|
-
* Create a destination for a webhook.
|
|
49
|
-
*
|
|
50
|
-
* Destinations define where incoming webhook payloads are forwarded to.
|
|
51
|
-
* When a webhook receives a payload, it will be delivered to all configured destinations.
|
|
52
|
-
*
|
|
53
|
-
* @param client - The API client instance
|
|
54
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
55
|
-
* @param params - Destination configuration including type and config
|
|
56
|
-
* @param options - Optional API options (e.g., orgId)
|
|
57
|
-
* @returns The created destination
|
|
58
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
59
|
-
* @throws {WebhookError} If the API request fails
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```typescript
|
|
63
|
-
* const destination = await createWebhookDestination(client, 'wh_abc123', {
|
|
64
|
-
* type: 'url',
|
|
65
|
-
* config: { url: 'https://api.example.com/webhook' },
|
|
66
|
-
* });
|
|
67
|
-
* console.log(`Created destination ${destination.id}`);
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export declare function createWebhookDestination(client: APIClient, webhookId: string, params: CreateWebhookDestinationRequest, options?: WebhookApiOptions): Promise<WebhookDestination>;
|
|
71
|
-
/**
|
|
72
|
-
* List all destinations for a webhook.
|
|
73
|
-
*
|
|
74
|
-
* Retrieves all destinations configured for a webhook.
|
|
75
|
-
*
|
|
76
|
-
* @param client - The API client instance
|
|
77
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
78
|
-
* @param options - Optional API options (e.g., orgId)
|
|
79
|
-
* @returns Array of destinations configured for the webhook
|
|
80
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
81
|
-
* @throws {WebhookError} If the API request fails
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```typescript
|
|
85
|
-
* const destinations = await listWebhookDestinations(client, 'wh_abc123');
|
|
86
|
-
* for (const dest of destinations) {
|
|
87
|
-
* console.log(`Destination ${dest.id}: type=${dest.type}`);
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
export declare function listWebhookDestinations(client: APIClient, webhookId: string, options?: WebhookApiOptions): Promise<WebhookDestination[]>;
|
|
92
|
-
/**
|
|
93
|
-
* Update a webhook destination's configuration.
|
|
94
|
-
*
|
|
95
|
-
* Modifies an existing destination's config. Only the fields provided in params will be updated.
|
|
96
|
-
*
|
|
97
|
-
* @param client - The API client instance
|
|
98
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
99
|
-
* @param destinationId - The destination ID to update (prefixed with whds_)
|
|
100
|
-
* @param params - Fields to update
|
|
101
|
-
* @param options - Optional API options (e.g., orgId)
|
|
102
|
-
* @returns The updated destination
|
|
103
|
-
* @throws {WebhookDestinationNotFoundError} If the destination does not exist
|
|
104
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
105
|
-
* @throws {WebhookError} If the API request fails
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```typescript
|
|
109
|
-
* const updated = await updateWebhookDestination(client, 'wh_abc123', 'whds_def456', {
|
|
110
|
-
* config: { url: 'https://api.example.com/webhook/v2' },
|
|
111
|
-
* });
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
export declare function updateWebhookDestination(client: APIClient, webhookId: string, destinationId: string, params: UpdateWebhookDestinationRequest, options?: WebhookApiOptions): Promise<WebhookDestination>;
|
|
115
|
-
/**
|
|
116
|
-
* Delete a webhook destination.
|
|
117
|
-
*
|
|
118
|
-
* Permanently removes a destination. Webhook payloads will no longer be
|
|
119
|
-
* forwarded to this endpoint. This action cannot be undone.
|
|
120
|
-
*
|
|
121
|
-
* @param client - The API client instance
|
|
122
|
-
* @param webhookId - The webhook ID (prefixed with wh_)
|
|
123
|
-
* @param destinationId - The destination ID to delete (prefixed with whds_)
|
|
124
|
-
* @param options - Optional API options (e.g., orgId)
|
|
125
|
-
* @throws {WebhookDestinationNotFoundError} If the destination does not exist
|
|
126
|
-
* @throws {WebhookNotFoundError} If the webhook does not exist
|
|
127
|
-
* @throws {WebhookError} If the API request fails
|
|
128
|
-
*
|
|
129
|
-
* @example
|
|
130
|
-
* ```typescript
|
|
131
|
-
* await deleteWebhookDestination(client, 'wh_abc123', 'whds_def456');
|
|
132
|
-
* console.log('Destination deleted');
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
|
-
export declare function deleteWebhookDestination(client: APIClient, webhookId: string, destinationId: string, options?: WebhookApiOptions): Promise<void>;
|
|
136
|
-
//# sourceMappingURL=destinations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../../src/api/webhook/destinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAA8C,MAAM,WAAW,CAAC;AACvF,OAAO,EACN,KAAK,+BAA+B,EAEpC,KAAK,+BAA+B,EAEpC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAEvB,MAAM,YAAY,CAAC;AAQpB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;8BAA8C,CAAC;A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