@agentuity/core 1.0.33 → 1.0.35
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/index.d.ts +2 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/services/adapter.d.ts +57 -22
- package/dist/services/adapter.d.ts.map +1 -1
- package/dist/services/adapter.js +52 -1
- package/dist/services/adapter.js.map +1 -1
- package/dist/services/api.d.ts +222 -0
- package/dist/services/api.d.ts.map +1 -0
- package/dist/services/api.js +662 -0
- package/dist/services/api.js.map +1 -0
- package/dist/services/apikey/create.d.ts +34 -0
- package/dist/services/apikey/create.d.ts.map +1 -0
- package/dist/services/apikey/create.js +29 -0
- package/dist/services/apikey/create.js.map +1 -0
- package/dist/services/apikey/delete.d.ts.map +1 -0
- package/dist/services/apikey/delete.js.map +1 -0
- package/dist/services/apikey/get.d.ts.map +1 -0
- package/dist/services/apikey/get.js.map +1 -0
- package/dist/services/apikey/index.d.ts.map +1 -0
- package/dist/services/apikey/index.js.map +1 -0
- package/dist/services/apikey/list.d.ts +65 -0
- package/dist/services/apikey/list.d.ts.map +1 -0
- package/dist/services/apikey/list.js +50 -0
- package/dist/services/apikey/list.js.map +1 -0
- package/dist/services/apikey/util.d.ts.map +1 -0
- package/dist/services/apikey/util.js.map +1 -0
- package/dist/services/config.d.ts +22 -0
- package/dist/services/config.d.ts.map +1 -0
- package/dist/services/config.js +55 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/db/index.d.ts +6 -0
- package/dist/services/db/index.d.ts.map +1 -0
- package/dist/services/db/index.js +6 -0
- package/dist/services/db/index.js.map +1 -0
- package/dist/services/db/logs.d.ts.map +1 -0
- package/dist/services/db/logs.js.map +1 -0
- package/dist/services/db/query.d.ts +40 -0
- package/dist/services/db/query.d.ts.map +1 -0
- package/dist/services/db/query.js +55 -0
- package/dist/services/db/query.js.map +1 -0
- package/dist/services/db/stats.d.ts +146 -0
- package/dist/services/db/stats.d.ts.map +1 -0
- package/dist/services/db/stats.js +94 -0
- package/dist/services/db/stats.js.map +1 -0
- package/dist/services/db/tables.d.ts +50 -0
- package/dist/services/db/tables.d.ts.map +1 -0
- package/dist/services/db/tables.js +64 -0
- package/dist/services/db/tables.js.map +1 -0
- package/dist/services/db/util.d.ts.map +1 -0
- package/dist/services/db/util.js.map +1 -0
- package/dist/services/email/index.d.ts +2 -0
- package/dist/services/email/index.d.ts.map +1 -0
- package/dist/services/email/index.js +2 -0
- package/dist/services/email/index.js.map +1 -0
- package/dist/services/email/service.d.ts +742 -0
- package/dist/services/email/service.d.ts.map +1 -0
- package/dist/services/email/service.js +1107 -0
- package/dist/services/email/service.js.map +1 -0
- package/dist/services/env.d.ts.map +1 -0
- package/dist/services/env.js.map +1 -0
- package/dist/services/eval/events.d.ts +93 -0
- package/dist/services/eval/events.d.ts.map +1 -0
- package/dist/services/eval/events.js +24 -0
- package/dist/services/eval/events.js.map +1 -0
- package/dist/services/eval/get.d.ts.map +1 -0
- package/dist/services/eval/get.js.map +1 -0
- package/dist/services/eval/index.d.ts +6 -0
- package/dist/services/eval/index.d.ts.map +1 -0
- package/dist/services/eval/index.js +6 -0
- package/dist/services/eval/index.js.map +1 -0
- package/dist/services/eval/list.d.ts.map +1 -0
- package/dist/services/eval/list.js.map +1 -0
- package/dist/services/eval/run-get.d.ts.map +1 -0
- package/dist/services/eval/run-get.js.map +1 -0
- package/dist/services/eval/run-list.d.ts.map +1 -0
- package/dist/services/eval/run-list.js.map +1 -0
- package/dist/services/exception.d.ts +28 -9
- package/dist/services/exception.d.ts.map +1 -1
- package/dist/services/exception.js +14 -0
- package/dist/services/exception.js.map +1 -1
- package/dist/services/index.d.ts +26 -12
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +26 -11
- package/dist/services/index.js.map +1 -1
- package/dist/services/keyvalue/index.d.ts +2 -0
- package/dist/services/keyvalue/index.d.ts.map +1 -0
- package/dist/services/keyvalue/index.js +2 -0
- package/dist/services/keyvalue/index.js.map +1 -0
- package/dist/services/keyvalue/service.d.ts +261 -0
- package/dist/services/keyvalue/service.d.ts.map +1 -0
- package/dist/services/keyvalue/service.js +475 -0
- package/dist/services/keyvalue/service.js.map +1 -0
- package/dist/services/logger.d.ts.map +1 -0
- package/dist/services/logger.js.map +1 -0
- package/dist/services/machine/index.d.ts.map +1 -0
- package/dist/services/machine/index.js.map +1 -0
- package/dist/services/machine/machine.d.ts.map +1 -0
- package/dist/services/machine/machine.js +177 -0
- package/dist/services/machine/machine.js.map +1 -0
- package/dist/services/machine/util.d.ts.map +1 -0
- package/dist/services/machine/util.js.map +1 -0
- package/dist/services/org/env-delete.d.ts.map +1 -0
- package/dist/services/org/env-delete.js.map +1 -0
- package/dist/services/org/env-get.d.ts +33 -0
- package/dist/services/org/env-get.d.ts.map +1 -0
- package/dist/services/org/env-get.js +33 -0
- package/dist/services/org/env-get.js.map +1 -0
- package/dist/services/org/env-update.d.ts.map +1 -0
- package/dist/services/org/env-update.js.map +1 -0
- package/dist/services/org/index.d.ts.map +1 -0
- package/dist/services/org/index.js.map +1 -0
- package/dist/services/org/list.d.ts.map +1 -0
- package/dist/services/org/list.js.map +1 -0
- package/dist/services/org/resources.d.ts +150 -0
- package/dist/services/org/resources.d.ts.map +1 -0
- package/dist/services/org/resources.js +111 -0
- package/dist/services/org/resources.js.map +1 -0
- package/dist/services/org/util.d.ts.map +1 -0
- package/dist/services/org/util.js.map +1 -0
- package/dist/services/pagination.d.ts +38 -11
- package/dist/services/pagination.d.ts.map +1 -1
- package/dist/services/pagination.js +30 -1
- package/dist/services/pagination.js.map +1 -1
- package/dist/services/project/agent.d.ts.map +1 -0
- package/dist/services/project/agent.js.map +1 -0
- package/dist/services/project/create.d.ts.map +1 -0
- package/dist/services/project/create.js.map +1 -0
- package/dist/services/project/delete.d.ts.map +1 -0
- package/dist/services/project/delete.js +15 -0
- package/dist/services/project/delete.js.map +1 -0
- package/dist/services/project/deploy.d.ts +468 -0
- package/dist/services/project/deploy.d.ts.map +1 -0
- package/dist/services/project/deploy.js.map +1 -0
- package/dist/services/project/deployment.d.ts.map +1 -0
- package/dist/services/project/deployment.js +180 -0
- package/dist/services/project/deployment.js.map +1 -0
- package/dist/services/project/env-delete.d.ts.map +1 -0
- package/dist/services/project/env-delete.js.map +1 -0
- package/dist/services/project/env-update.d.ts.map +1 -0
- package/dist/services/project/env-update.js.map +1 -0
- package/dist/services/project/exists.d.ts.map +1 -0
- package/dist/services/project/exists.js.map +1 -0
- package/dist/services/project/get.d.ts.map +1 -0
- package/dist/services/project/get.js.map +1 -0
- package/dist/services/project/hostname.d.ts.map +1 -0
- package/dist/services/project/hostname.js +43 -0
- package/dist/services/project/hostname.js.map +1 -0
- package/dist/services/project/index.d.ts.map +1 -0
- package/dist/services/project/index.js.map +1 -0
- package/dist/services/project/list.d.ts.map +1 -0
- package/dist/services/project/list.js.map +1 -0
- package/dist/services/project/malware.d.ts.map +1 -0
- package/dist/services/project/malware.js +57 -0
- package/dist/services/project/malware.js.map +1 -0
- package/dist/services/project/update-region.d.ts.map +1 -0
- package/dist/services/project/update-region.js.map +1 -0
- package/dist/services/project/util.d.ts.map +1 -0
- package/dist/services/project/util.js.map +1 -0
- package/dist/services/queue/analytics.d.ts +261 -0
- package/dist/services/queue/analytics.d.ts.map +1 -0
- package/dist/services/queue/analytics.js +254 -0
- package/dist/services/queue/analytics.js.map +1 -0
- package/dist/services/queue/consumers.d.ts +48 -0
- package/dist/services/queue/consumers.d.ts.map +1 -0
- package/dist/services/queue/consumers.js +43 -0
- package/dist/services/queue/consumers.js.map +1 -0
- package/dist/services/queue/destinations.d.ts +269 -0
- package/dist/services/queue/destinations.d.ts.map +1 -0
- package/dist/services/queue/destinations.js +215 -0
- package/dist/services/queue/destinations.js.map +1 -0
- package/dist/services/queue/dlq.d.ts +170 -0
- package/dist/services/queue/dlq.d.ts.map +1 -0
- package/dist/services/queue/dlq.js.map +1 -0
- package/dist/services/queue/index.d.ts +58 -0
- package/dist/services/queue/index.d.ts.map +1 -0
- package/dist/services/queue/index.js +98 -0
- package/dist/services/queue/index.js.map +1 -0
- package/dist/services/queue/messages.d.ts +511 -0
- package/dist/services/queue/messages.d.ts.map +1 -0
- package/dist/services/queue/messages.js.map +1 -0
- package/dist/services/queue/queues.d.ts +228 -0
- package/dist/services/queue/queues.d.ts.map +1 -0
- package/dist/services/queue/queues.js.map +1 -0
- package/dist/services/queue/service.d.ts +309 -0
- package/dist/services/queue/service.d.ts.map +1 -0
- package/dist/services/queue/service.js +456 -0
- package/dist/services/queue/service.js.map +1 -0
- package/dist/services/queue/sources.d.ts +252 -0
- package/dist/services/queue/sources.d.ts.map +1 -0
- package/dist/services/queue/sources.js +249 -0
- package/dist/services/queue/sources.js.map +1 -0
- package/dist/services/queue/types.d.ts +1335 -0
- package/dist/services/queue/types.d.ts.map +1 -0
- package/dist/services/queue/types.js +1382 -0
- package/dist/services/queue/types.js.map +1 -0
- package/dist/services/queue/util.d.ts +278 -0
- package/dist/services/queue/util.d.ts.map +1 -0
- package/dist/services/queue/util.js +233 -0
- package/dist/services/queue/util.js.map +1 -0
- package/dist/services/queue/validation.d.ts +218 -0
- package/dist/services/queue/validation.d.ts.map +1 -0
- package/dist/services/queue/validation.js +498 -0
- package/dist/services/queue/validation.js.map +1 -0
- package/dist/services/queue/websocket.d.ts +154 -0
- package/dist/services/queue/websocket.d.ts.map +1 -0
- package/dist/services/queue/websocket.js +491 -0
- package/dist/services/queue/websocket.js.map +1 -0
- package/dist/services/region/create.d.ts.map +1 -0
- package/dist/services/region/create.js.map +1 -0
- package/dist/services/region/delete.d.ts.map +1 -0
- package/dist/services/region/delete.js.map +1 -0
- package/dist/services/region/index.d.ts.map +1 -0
- package/dist/services/region/index.js.map +1 -0
- package/dist/services/region/list.d.ts.map +1 -0
- package/dist/services/region/list.js.map +1 -0
- package/dist/services/region/resources.d.ts.map +1 -0
- package/dist/services/region/resources.js.map +1 -0
- package/dist/services/region/util.d.ts.map +1 -0
- package/dist/services/region/util.js.map +1 -0
- package/dist/services/sandbox/cli-list.d.ts +103 -0
- package/dist/services/sandbox/cli-list.d.ts.map +1 -0
- package/dist/services/sandbox/cli-list.js +106 -0
- package/dist/services/sandbox/cli-list.js.map +1 -0
- package/dist/services/sandbox/client.d.ts +173 -0
- package/dist/services/sandbox/client.d.ts.map +1 -0
- package/dist/services/sandbox/client.js +302 -0
- package/dist/services/sandbox/client.js.map +1 -0
- package/dist/services/sandbox/create.d.ts +193 -0
- package/dist/services/sandbox/create.d.ts.map +1 -0
- package/dist/services/sandbox/create.js +215 -0
- package/dist/services/sandbox/create.js.map +1 -0
- package/dist/services/sandbox/destroy.d.ts +23 -0
- package/dist/services/sandbox/destroy.d.ts.map +1 -0
- package/dist/services/sandbox/destroy.js +30 -0
- package/dist/services/sandbox/destroy.js.map +1 -0
- package/dist/services/sandbox/disk-checkpoint.d.ts +108 -0
- package/dist/services/sandbox/disk-checkpoint.d.ts.map +1 -0
- package/dist/services/sandbox/disk-checkpoint.js +124 -0
- package/dist/services/sandbox/disk-checkpoint.js.map +1 -0
- package/dist/services/sandbox/execute.d.ts +96 -0
- package/dist/services/sandbox/execute.d.ts.map +1 -0
- package/dist/services/sandbox/execute.js +109 -0
- package/dist/services/sandbox/execute.js.map +1 -0
- package/dist/services/sandbox/execution.d.ts +145 -0
- package/dist/services/sandbox/execution.d.ts.map +1 -0
- package/dist/services/sandbox/execution.js +113 -0
- package/dist/services/sandbox/execution.js.map +1 -0
- package/dist/services/sandbox/files.d.ts +269 -0
- package/dist/services/sandbox/files.d.ts.map +1 -0
- package/dist/services/sandbox/files.js +454 -0
- package/dist/services/sandbox/files.js.map +1 -0
- package/dist/services/sandbox/get.d.ts +284 -0
- package/dist/services/sandbox/get.d.ts.map +1 -0
- package/dist/services/sandbox/get.js +231 -0
- package/dist/services/sandbox/get.js.map +1 -0
- package/dist/services/sandbox/getStatus.d.ts +20 -0
- package/dist/services/sandbox/getStatus.d.ts.map +1 -0
- package/dist/services/sandbox/getStatus.js +36 -0
- package/dist/services/sandbox/getStatus.js.map +1 -0
- package/dist/services/sandbox/index.d.ts +40 -0
- package/dist/services/sandbox/index.d.ts.map +1 -0
- package/dist/services/sandbox/index.js +21 -0
- package/dist/services/sandbox/index.js.map +1 -0
- package/dist/services/sandbox/list.d.ts +327 -0
- package/dist/services/sandbox/list.d.ts.map +1 -0
- package/dist/services/sandbox/list.js +204 -0
- package/dist/services/sandbox/list.js.map +1 -0
- package/dist/services/sandbox/pause.d.ts +23 -0
- package/dist/services/sandbox/pause.d.ts.map +1 -0
- package/dist/services/sandbox/pause.js +30 -0
- package/dist/services/sandbox/pause.js.map +1 -0
- package/dist/services/sandbox/resolve.d.ts +75 -0
- package/dist/services/sandbox/resolve.d.ts.map +1 -0
- package/dist/services/sandbox/resolve.js +76 -0
- package/dist/services/sandbox/resolve.js.map +1 -0
- package/dist/services/sandbox/resume.d.ts +23 -0
- package/dist/services/sandbox/resume.d.ts.map +1 -0
- package/dist/services/sandbox/resume.js +30 -0
- package/dist/services/sandbox/resume.js.map +1 -0
- package/dist/services/sandbox/run.d.ts +71 -0
- package/dist/services/sandbox/run.d.ts.map +1 -0
- package/dist/services/sandbox/run.js +355 -0
- package/dist/services/sandbox/run.js.map +1 -0
- package/dist/services/sandbox/runtime.d.ts +94 -0
- package/dist/services/sandbox/runtime.d.ts.map +1 -0
- package/dist/services/sandbox/runtime.js +82 -0
- package/dist/services/sandbox/runtime.js.map +1 -0
- package/dist/services/sandbox/snapshot-build.d.ts.map +1 -0
- package/dist/services/sandbox/snapshot-build.js.map +1 -0
- package/dist/services/sandbox/snapshot.d.ts +596 -0
- package/dist/services/sandbox/snapshot.d.ts.map +1 -0
- package/dist/services/sandbox/snapshot.js +612 -0
- package/dist/services/sandbox/snapshot.js.map +1 -0
- package/dist/services/sandbox/types.d.ts +851 -0
- package/dist/services/sandbox/types.d.ts.map +1 -0
- package/dist/services/sandbox/types.js +674 -0
- package/dist/services/sandbox/types.js.map +1 -0
- package/dist/services/sandbox/util.d.ts +295 -0
- package/dist/services/sandbox/util.d.ts.map +1 -0
- package/dist/services/sandbox/util.js +233 -0
- package/dist/services/sandbox/util.js.map +1 -0
- package/dist/services/schedule/index.d.ts +2 -0
- package/dist/services/schedule/index.d.ts.map +1 -0
- package/dist/services/schedule/index.js +2 -0
- package/dist/services/schedule/index.js.map +1 -0
- package/dist/services/schedule/service.d.ts +439 -0
- package/dist/services/schedule/service.d.ts.map +1 -0
- package/dist/services/schedule/service.js +701 -0
- package/dist/services/schedule/service.js.map +1 -0
- package/dist/services/session/events.d.ts +127 -0
- package/dist/services/session/events.d.ts.map +1 -0
- package/dist/services/session/events.js +42 -0
- package/dist/services/session/events.js.map +1 -0
- package/dist/services/session/get.d.ts +170 -0
- package/dist/services/session/get.d.ts.map +1 -0
- package/dist/services/session/get.js.map +1 -0
- package/dist/services/session/index.d.ts +5 -0
- package/dist/services/session/index.d.ts.map +1 -0
- package/dist/services/session/index.js +5 -0
- package/dist/services/session/index.js.map +1 -0
- package/dist/services/session/list.d.ts +150 -0
- package/dist/services/session/list.d.ts.map +1 -0
- package/dist/services/session/list.js +117 -0
- package/dist/services/session/list.js.map +1 -0
- package/dist/services/session/logs.d.ts.map +1 -0
- package/dist/services/session/logs.js.map +1 -0
- package/dist/services/session/util.d.ts.map +1 -0
- package/dist/services/session/util.js.map +1 -0
- package/dist/services/stats.d.ts +261 -0
- package/dist/services/stats.d.ts.map +1 -0
- package/dist/services/stats.js +181 -0
- package/dist/services/stats.js.map +1 -0
- package/dist/services/storage/config.d.ts.map +1 -0
- package/dist/services/storage/config.js.map +1 -0
- package/dist/services/storage/index.d.ts.map +1 -0
- package/dist/services/storage/index.js.map +1 -0
- package/dist/services/storage/objects.d.ts +158 -0
- package/dist/services/storage/objects.d.ts.map +1 -0
- package/dist/services/storage/objects.js +161 -0
- package/dist/services/storage/objects.js.map +1 -0
- package/dist/services/storage/types.d.ts.map +1 -0
- package/dist/services/storage/types.js.map +1 -0
- package/dist/services/storage/util.d.ts.map +1 -0
- package/dist/services/storage/util.js.map +1 -0
- package/dist/services/stream/get.d.ts.map +1 -0
- package/dist/services/stream/get.js.map +1 -0
- package/dist/services/stream/index.d.ts +5 -0
- package/dist/services/stream/index.d.ts.map +1 -0
- package/dist/services/stream/index.js +5 -0
- package/dist/services/stream/index.js.map +1 -0
- package/dist/services/stream/list.d.ts +96 -0
- package/dist/services/stream/list.d.ts.map +1 -0
- package/dist/services/stream/list.js +92 -0
- package/dist/services/stream/list.js.map +1 -0
- package/dist/services/stream/service.d.ts +264 -0
- package/dist/services/stream/service.d.ts.map +1 -0
- package/dist/services/stream/service.js +631 -0
- package/dist/services/stream/service.js.map +1 -0
- package/dist/services/stream/util.d.ts.map +1 -0
- package/dist/services/stream/util.js.map +1 -0
- package/dist/services/task/index.d.ts +2 -0
- package/dist/services/task/index.d.ts.map +1 -0
- package/dist/services/task/index.js +2 -0
- package/dist/services/task/index.js.map +1 -0
- package/dist/services/task/service.d.ts +1491 -0
- package/dist/services/task/service.d.ts.map +1 -0
- package/dist/services/task/service.js +1887 -0
- package/dist/services/task/service.js.map +1 -0
- package/dist/services/thread/delete.d.ts.map +1 -0
- package/dist/services/thread/delete.js.map +1 -0
- package/dist/services/thread/get.d.ts.map +1 -0
- package/dist/services/thread/get.js.map +1 -0
- package/dist/services/thread/index.d.ts.map +1 -0
- package/dist/services/thread/index.js.map +1 -0
- package/dist/services/thread/list.d.ts +75 -0
- package/dist/services/thread/list.d.ts.map +1 -0
- package/dist/services/thread/list.js +65 -0
- package/dist/services/thread/list.js.map +1 -0
- package/dist/services/thread/util.d.ts.map +1 -0
- package/dist/services/thread/util.js.map +1 -0
- package/dist/services/user/index.d.ts.map +1 -0
- package/dist/services/user/index.js.map +1 -0
- package/dist/services/user/util.d.ts.map +1 -0
- package/dist/services/user/util.js.map +1 -0
- package/dist/services/user/whoami.d.ts.map +1 -0
- package/dist/services/user/whoami.js.map +1 -0
- package/dist/services/vector/index.d.ts +2 -0
- package/dist/services/vector/index.d.ts.map +1 -0
- package/dist/services/vector/index.js +2 -0
- package/dist/services/vector/index.js.map +1 -0
- package/dist/services/vector/service.d.ts +459 -0
- package/dist/services/vector/service.d.ts.map +1 -0
- package/dist/services/vector/service.js +707 -0
- package/dist/services/vector/service.js.map +1 -0
- package/dist/services/webhook/analytics.d.ts +77 -0
- package/dist/services/webhook/analytics.d.ts.map +1 -0
- package/dist/services/webhook/analytics.js +56 -0
- package/dist/services/webhook/analytics.js.map +1 -0
- package/dist/services/webhook/deliveries.d.ts +94 -0
- package/dist/services/webhook/deliveries.d.ts.map +1 -0
- package/dist/services/webhook/deliveries.js.map +1 -0
- package/dist/services/webhook/destinations.d.ts +140 -0
- package/dist/services/webhook/destinations.d.ts.map +1 -0
- package/dist/services/webhook/destinations.js.map +1 -0
- package/dist/services/webhook/index.d.ts +43 -0
- package/dist/services/webhook/index.d.ts.map +1 -0
- package/dist/services/webhook/index.js +64 -0
- package/dist/services/webhook/index.js.map +1 -0
- package/dist/services/webhook/receipts.d.ts.map +1 -0
- package/dist/services/webhook/receipts.js.map +1 -0
- package/dist/services/webhook/service.d.ts +374 -0
- package/dist/services/webhook/service.d.ts.map +1 -0
- package/dist/services/webhook/service.js +663 -0
- package/dist/services/webhook/service.js.map +1 -0
- package/dist/services/webhook/types.d.ts +182 -0
- package/dist/services/webhook/types.d.ts.map +1 -0
- package/dist/services/webhook/types.js +188 -0
- package/dist/services/webhook/types.js.map +1 -0
- package/dist/services/webhook/util.d.ts.map +1 -0
- package/dist/services/webhook/util.js.map +1 -0
- package/dist/services/webhook/webhooks.d.ts +150 -0
- package/dist/services/webhook/webhooks.d.ts.map +1 -0
- package/dist/services/webhook/webhooks.js.map +1 -0
- package/package.json +59 -7
- package/src/index.ts +6 -247
- package/src/services/adapter.ts +69 -24
- package/src/services/api.ts +951 -0
- package/src/services/apikey/create.ts +48 -0
- package/src/services/apikey/list.ts +66 -0
- package/src/services/config.ts +65 -0
- package/src/services/db/index.ts +42 -0
- package/src/services/db/query.ts +69 -0
- package/src/services/db/stats.ts +121 -0
- package/src/services/db/tables.ts +94 -0
- package/src/services/email/index.ts +1 -0
- package/src/services/email/service.ts +1476 -0
- package/src/services/eval/index.ts +29 -0
- package/src/services/exception.ts +16 -7
- package/src/services/index.ts +29 -28
- package/src/services/keyvalue/index.ts +1 -0
- package/src/services/keyvalue/service.ts +677 -0
- package/src/services/machine/machine.ts +228 -0
- package/src/services/org/env-get.ts +48 -0
- package/src/services/org/resources.ts +140 -0
- package/src/services/pagination.ts +40 -11
- package/src/services/project/delete.ts +27 -0
- package/src/services/project/deploy.ts +433 -0
- package/src/services/project/deployment.ts +250 -0
- package/src/services/project/hostname.ts +79 -0
- package/src/services/project/malware.ts +85 -0
- package/src/services/queue/analytics.ts +343 -0
- package/src/services/queue/consumers.ts +56 -0
- package/src/services/queue/destinations.ts +329 -0
- package/src/services/queue/index.ts +339 -0
- package/src/services/queue/service.ts +634 -0
- package/src/services/queue/sources.ts +364 -0
- package/src/services/queue/types.ts +1666 -0
- package/src/services/queue/util.ts +275 -0
- package/src/services/queue/validation.ts +541 -0
- package/src/services/queue/websocket.ts +578 -0
- package/src/services/sandbox/cli-list.ts +117 -0
- package/src/services/sandbox/client.ts +435 -0
- package/src/services/sandbox/create.ts +249 -0
- package/src/services/sandbox/destroy.ts +43 -0
- package/src/services/sandbox/disk-checkpoint.ts +184 -0
- package/src/services/sandbox/execute.ts +134 -0
- package/src/services/sandbox/execution.ts +144 -0
- package/src/services/sandbox/files.ts +608 -0
- package/src/services/sandbox/get.ts +262 -0
- package/src/services/sandbox/getStatus.ts +51 -0
- package/src/services/sandbox/index.ts +230 -0
- package/src/services/sandbox/list.ts +234 -0
- package/src/services/sandbox/pause.ts +41 -0
- package/src/services/sandbox/resolve.ts +96 -0
- package/src/services/sandbox/resume.ts +41 -0
- package/src/services/sandbox/run.ts +441 -0
- package/src/services/sandbox/runtime.ts +106 -0
- package/src/services/sandbox/snapshot.ts +791 -0
- package/src/services/sandbox/types.ts +798 -0
- package/src/services/sandbox/util.ts +279 -0
- package/src/services/schedule/index.ts +1 -0
- package/src/services/schedule/service.ts +814 -0
- package/src/services/session/get.ts +108 -0
- package/src/services/session/index.ts +4 -0
- package/src/services/session/list.ts +143 -0
- package/src/services/stats.ts +232 -0
- package/src/services/storage/objects.ts +256 -0
- package/src/services/stream/index.ts +14 -0
- package/src/services/stream/list.ts +105 -0
- package/src/services/stream/service.ts +929 -0
- package/src/services/task/index.ts +1 -0
- package/src/services/task/service.ts +2573 -0
- package/src/services/thread/list.ts +81 -0
- package/src/services/vector/index.ts +1 -0
- package/src/services/vector/service.ts +1242 -0
- package/src/services/webhook/analytics.ts +80 -0
- package/src/services/webhook/index.ts +160 -0
- package/src/services/webhook/service.ts +900 -0
- package/src/services/webhook/types.ts +277 -0
- package/dist/api/api.d.ts +0 -226
- package/dist/api/api.d.ts.map +0 -1
- package/dist/api/api.js +0 -635
- package/dist/api/api.js.map +0 -1
- 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.map +0 -1
- package/dist/api/apikey/delete.js.map +0 -1
- package/dist/api/apikey/get.d.ts.map +0 -1
- package/dist/api/apikey/get.js.map +0 -1
- package/dist/api/apikey/index.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/api/apikey/util.js.map +0 -1
- package/dist/api/config.d.ts +0 -20
- package/dist/api/config.d.ts.map +0 -1
- package/dist/api/config.js +0 -43
- package/dist/api/config.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.map +0 -1
- 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.map +0 -1
- package/dist/api/db/util.js.map +0 -1
- package/dist/api/env.d.ts.map +0 -1
- package/dist/api/env.js.map +0 -1
- package/dist/api/eval/get.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/api/eval/list.js.map +0 -1
- package/dist/api/eval/run-get.d.ts.map +0 -1
- package/dist/api/eval/run-get.js.map +0 -1
- package/dist/api/eval/run-list.d.ts.map +0 -1
- package/dist/api/eval/run-list.js.map +0 -1
- package/dist/api/index.d.ts +0 -21
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -21
- package/dist/api/index.js.map +0 -1
- package/dist/api/logger.d.ts.map +0 -1
- package/dist/api/logger.js.map +0 -1
- package/dist/api/machine/index.d.ts.map +0 -1
- package/dist/api/machine/index.js.map +0 -1
- 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.map +0 -1
- package/dist/api/machine/util.js.map +0 -1
- package/dist/api/org/env-delete.d.ts.map +0 -1
- package/dist/api/org/env-delete.js.map +0 -1
- package/dist/api/org/env-get.d.ts +0 -33
- package/dist/api/org/env-get.d.ts.map +0 -1
- package/dist/api/org/env-get.js +0 -26
- package/dist/api/org/env-get.js.map +0 -1
- package/dist/api/org/env-update.d.ts.map +0 -1
- package/dist/api/org/env-update.js.map +0 -1
- package/dist/api/org/index.d.ts.map +0 -1
- package/dist/api/org/index.js.map +0 -1
- package/dist/api/org/list.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/api/org/util.js.map +0 -1
- package/dist/api/project/agent.d.ts.map +0 -1
- package/dist/api/project/agent.js.map +0 -1
- package/dist/api/project/create.d.ts.map +0 -1
- package/dist/api/project/create.js.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/api/project/env-delete.js.map +0 -1
- package/dist/api/project/env-update.d.ts.map +0 -1
- package/dist/api/project/env-update.js.map +0 -1
- package/dist/api/project/exists.d.ts.map +0 -1
- package/dist/api/project/exists.js.map +0 -1
- package/dist/api/project/get.d.ts.map +0 -1
- package/dist/api/project/get.js.map +0 -1
- 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.map +0 -1
- package/dist/api/project/index.js.map +0 -1
- package/dist/api/project/list.d.ts.map +0 -1
- package/dist/api/project/list.js.map +0 -1
- package/dist/api/project/malware.d.ts.map +0 -1
- package/dist/api/project/malware.js +0 -42
- package/dist/api/project/malware.js.map +0 -1
- package/dist/api/project/update-region.d.ts.map +0 -1
- package/dist/api/project/update-region.js.map +0 -1
- package/dist/api/project/util.d.ts.map +0 -1
- 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.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.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.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 -233
- 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 -172
- package/dist/api/queue/websocket.d.ts.map +0 -1
- package/dist/api/queue/websocket.js +0 -396
- package/dist/api/queue/websocket.js.map +0 -1
- package/dist/api/region/create.d.ts.map +0 -1
- package/dist/api/region/create.js.map +0 -1
- package/dist/api/region/delete.d.ts.map +0 -1
- package/dist/api/region/delete.js.map +0 -1
- package/dist/api/region/index.d.ts.map +0 -1
- package/dist/api/region/index.js.map +0 -1
- package/dist/api/region/list.d.ts.map +0 -1
- package/dist/api/region/list.js.map +0 -1
- package/dist/api/region/resources.d.ts.map +0 -1
- package/dist/api/region/resources.js.map +0 -1
- package/dist/api/region/util.d.ts.map +0 -1
- 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/client.d.ts +0 -192
- package/dist/api/sandbox/client.d.ts.map +0 -1
- package/dist/api/sandbox/client.js +0 -262
- package/dist/api/sandbox/client.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/pause.d.ts +0 -22
- package/dist/api/sandbox/pause.d.ts.map +0 -1
- package/dist/api/sandbox/pause.js +0 -25
- package/dist/api/sandbox/pause.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/resume.d.ts +0 -22
- package/dist/api/sandbox/resume.d.ts.map +0 -1
- package/dist/api/sandbox/resume.js +0 -25
- package/dist/api/sandbox/resume.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.map +0 -1
- 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/sandbox/util.d.ts +0 -284
- package/dist/api/sandbox/util.d.ts.map +0 -1
- package/dist/api/sandbox/util.js +0 -210
- package/dist/api/sandbox/util.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.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.map +0 -1
- package/dist/api/session/logs.js.map +0 -1
- package/dist/api/session/util.d.ts.map +0 -1
- package/dist/api/session/util.js.map +0 -1
- package/dist/api/storage/config.d.ts.map +0 -1
- package/dist/api/storage/config.js.map +0 -1
- package/dist/api/storage/index.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/api/storage/types.js.map +0 -1
- package/dist/api/storage/util.d.ts.map +0 -1
- package/dist/api/storage/util.js.map +0 -1
- package/dist/api/stream/get.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/api/stream/util.js.map +0 -1
- package/dist/api/thread/delete.d.ts.map +0 -1
- package/dist/api/thread/delete.js.map +0 -1
- package/dist/api/thread/get.d.ts.map +0 -1
- package/dist/api/thread/get.js.map +0 -1
- package/dist/api/thread/index.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/api/thread/util.js.map +0 -1
- package/dist/api/user/index.d.ts.map +0 -1
- package/dist/api/user/index.js.map +0 -1
- package/dist/api/user/util.d.ts.map +0 -1
- package/dist/api/user/util.js.map +0 -1
- package/dist/api/user/whoami.d.ts.map +0 -1
- package/dist/api/user/whoami.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.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.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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/services/email.d.ts +0 -901
- package/dist/services/email.d.ts.map +0 -1
- package/dist/services/email.js +0 -722
- package/dist/services/email.js.map +0 -1
- package/dist/services/evalrun.d.ts +0 -93
- package/dist/services/evalrun.d.ts.map +0 -1
- package/dist/services/evalrun.js +0 -24
- package/dist/services/evalrun.js.map +0 -1
- package/dist/services/keyvalue.d.ts +0 -283
- package/dist/services/keyvalue.d.ts.map +0 -1
- package/dist/services/keyvalue.js +0 -305
- package/dist/services/keyvalue.js.map +0 -1
- package/dist/services/queue.d.ts +0 -361
- package/dist/services/queue.d.ts.map +0 -1
- package/dist/services/queue.js +0 -308
- package/dist/services/queue.js.map +0 -1
- package/dist/services/sandbox.d.ts +0 -1241
- package/dist/services/sandbox.d.ts.map +0 -1
- package/dist/services/sandbox.js +0 -6
- package/dist/services/sandbox.js.map +0 -1
- package/dist/services/schedule.d.ts +0 -501
- package/dist/services/schedule.d.ts.map +0 -1
- package/dist/services/schedule.js +0 -425
- package/dist/services/schedule.js.map +0 -1
- package/dist/services/session.d.ts +0 -127
- package/dist/services/session.d.ts.map +0 -1
- package/dist/services/session.js +0 -42
- package/dist/services/session.js.map +0 -1
- package/dist/services/stream.d.ts +0 -293
- package/dist/services/stream.d.ts.map +0 -1
- package/dist/services/stream.js +0 -500
- package/dist/services/stream.js.map +0 -1
- package/dist/services/task.d.ts +0 -1337
- package/dist/services/task.d.ts.map +0 -1
- package/dist/services/task.js +0 -1397
- package/dist/services/task.js.map +0 -1
- package/dist/services/vector.d.ts +0 -498
- package/dist/services/vector.d.ts.map +0 -1
- package/dist/services/vector.js +0 -381
- package/dist/services/vector.js.map +0 -1
- package/dist/services/webhook.d.ts +0 -454
- package/dist/services/webhook.d.ts.map +0 -1
- package/dist/services/webhook.js +0 -589
- package/dist/services/webhook.js.map +0 -1
- package/src/api/api.ts +0 -931
- package/src/api/apikey/create.ts +0 -41
- package/src/api/apikey/list.ts +0 -64
- package/src/api/config.ts +0 -60
- package/src/api/db/index.ts +0 -27
- package/src/api/db/query.ts +0 -67
- package/src/api/db/tables.ts +0 -92
- package/src/api/eval/index.ts +0 -28
- package/src/api/index.ts +0 -20
- package/src/api/machine/machine.ts +0 -160
- package/src/api/org/env-get.ts +0 -43
- package/src/api/org/resources.ts +0 -140
- 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/hostname.ts +0 -73
- package/src/api/project/malware.ts +0 -68
- package/src/api/queue/analytics.ts +0 -311
- package/src/api/queue/destinations.ts +0 -259
- package/src/api/queue/index.ts +0 -308
- package/src/api/queue/sources.ts +0 -294
- package/src/api/queue/types.ts +0 -1325
- package/src/api/queue/util.ts +0 -275
- package/src/api/queue/validation.ts +0 -560
- package/src/api/queue/websocket.ts +0 -521
- package/src/api/sandbox/cli-list.ts +0 -127
- package/src/api/sandbox/client.ts +0 -460
- 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/pause.ts +0 -39
- package/src/api/sandbox/resolve.ts +0 -98
- package/src/api/sandbox/resume.ts +0 -39
- package/src/api/sandbox/run.ts +0 -439
- package/src/api/sandbox/runtime.ts +0 -104
- package/src/api/sandbox/snapshot.ts +0 -781
- package/src/api/sandbox/util.ts +0 -275
- 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/storage/objects.ts +0 -250
- package/src/api/stream/index.ts +0 -3
- package/src/api/stream/list.ts +0 -127
- package/src/api/thread/list.ts +0 -76
- package/src/api/webhook/index.ts +0 -133
- package/src/api/webhook/types.ts +0 -309
- package/src/services/email.ts +0 -1410
- package/src/services/keyvalue.ts +0 -620
- package/src/services/queue.ts +0 -603
- package/src/services/sandbox.ts +0 -1466
- package/src/services/schedule.ts +0 -763
- package/src/services/stream.ts +0 -886
- package/src/services/task.ts +0 -2611
- package/src/services/vector.ts +0 -1119
- package/src/services/webhook.ts +0 -921
- /package/dist/{api → services}/apikey/delete.d.ts +0 -0
- /package/dist/{api → services}/apikey/delete.js +0 -0
- /package/dist/{api → services}/apikey/get.d.ts +0 -0
- /package/dist/{api → services}/apikey/get.js +0 -0
- /package/dist/{api → services}/apikey/index.d.ts +0 -0
- /package/dist/{api → services}/apikey/index.js +0 -0
- /package/dist/{api → services}/apikey/util.d.ts +0 -0
- /package/dist/{api → services}/apikey/util.js +0 -0
- /package/dist/{api → services}/db/logs.d.ts +0 -0
- /package/dist/{api → services}/db/logs.js +0 -0
- /package/dist/{api → services}/db/util.d.ts +0 -0
- /package/dist/{api → services}/db/util.js +0 -0
- /package/dist/{api → services}/env.d.ts +0 -0
- /package/dist/{api → services}/env.js +0 -0
- /package/dist/{api → services}/eval/get.d.ts +0 -0
- /package/dist/{api → services}/eval/get.js +0 -0
- /package/dist/{api → services}/eval/list.d.ts +0 -0
- /package/dist/{api → services}/eval/list.js +0 -0
- /package/dist/{api → services}/eval/run-get.d.ts +0 -0
- /package/dist/{api → services}/eval/run-get.js +0 -0
- /package/dist/{api → services}/eval/run-list.d.ts +0 -0
- /package/dist/{api → services}/eval/run-list.js +0 -0
- /package/dist/{api → services}/logger.d.ts +0 -0
- /package/dist/{api → services}/logger.js +0 -0
- /package/dist/{api → services}/machine/index.d.ts +0 -0
- /package/dist/{api → services}/machine/index.js +0 -0
- /package/dist/{api → services}/machine/machine.d.ts +0 -0
- /package/dist/{api → services}/machine/util.d.ts +0 -0
- /package/dist/{api → services}/machine/util.js +0 -0
- /package/dist/{api → services}/org/env-delete.d.ts +0 -0
- /package/dist/{api → services}/org/env-delete.js +0 -0
- /package/dist/{api → services}/org/env-update.d.ts +0 -0
- /package/dist/{api → services}/org/env-update.js +0 -0
- /package/dist/{api → services}/org/index.d.ts +0 -0
- /package/dist/{api → services}/org/index.js +0 -0
- /package/dist/{api → services}/org/list.d.ts +0 -0
- /package/dist/{api → services}/org/list.js +0 -0
- /package/dist/{api → services}/org/util.d.ts +0 -0
- /package/dist/{api → services}/org/util.js +0 -0
- /package/dist/{api → services}/project/agent.d.ts +0 -0
- /package/dist/{api → services}/project/agent.js +0 -0
- /package/dist/{api → services}/project/create.d.ts +0 -0
- /package/dist/{api → services}/project/create.js +0 -0
- /package/dist/{api → services}/project/delete.d.ts +0 -0
- /package/dist/{api → services}/project/deploy.js +0 -0
- /package/dist/{api → services}/project/deployment.d.ts +0 -0
- /package/dist/{api → services}/project/env-delete.d.ts +0 -0
- /package/dist/{api → services}/project/env-delete.js +0 -0
- /package/dist/{api → services}/project/env-update.d.ts +0 -0
- /package/dist/{api → services}/project/env-update.js +0 -0
- /package/dist/{api → services}/project/exists.d.ts +0 -0
- /package/dist/{api → services}/project/exists.js +0 -0
- /package/dist/{api → services}/project/get.d.ts +0 -0
- /package/dist/{api → services}/project/get.js +0 -0
- /package/dist/{api → services}/project/hostname.d.ts +0 -0
- /package/dist/{api → services}/project/index.d.ts +0 -0
- /package/dist/{api → services}/project/index.js +0 -0
- /package/dist/{api → services}/project/list.d.ts +0 -0
- /package/dist/{api → services}/project/list.js +0 -0
- /package/dist/{api → services}/project/malware.d.ts +0 -0
- /package/dist/{api → services}/project/update-region.d.ts +0 -0
- /package/dist/{api → services}/project/update-region.js +0 -0
- /package/dist/{api → services}/project/util.d.ts +0 -0
- /package/dist/{api → services}/project/util.js +0 -0
- /package/dist/{api → services}/queue/dlq.js +0 -0
- /package/dist/{api → services}/queue/messages.js +0 -0
- /package/dist/{api → services}/queue/queues.js +0 -0
- /package/dist/{api → services}/region/create.d.ts +0 -0
- /package/dist/{api → services}/region/create.js +0 -0
- /package/dist/{api → services}/region/delete.d.ts +0 -0
- /package/dist/{api → services}/region/delete.js +0 -0
- /package/dist/{api → services}/region/index.d.ts +0 -0
- /package/dist/{api → services}/region/index.js +0 -0
- /package/dist/{api → services}/region/list.d.ts +0 -0
- /package/dist/{api → services}/region/list.js +0 -0
- /package/dist/{api → services}/region/resources.d.ts +0 -0
- /package/dist/{api → services}/region/resources.js +0 -0
- /package/dist/{api → services}/region/util.d.ts +0 -0
- /package/dist/{api → services}/region/util.js +0 -0
- /package/dist/{api → services}/sandbox/snapshot-build.d.ts +0 -0
- /package/dist/{api → services}/sandbox/snapshot-build.js +0 -0
- /package/dist/{api → services}/session/get.js +0 -0
- /package/dist/{api → services}/session/logs.d.ts +0 -0
- /package/dist/{api → services}/session/logs.js +0 -0
- /package/dist/{api → services}/session/util.d.ts +0 -0
- /package/dist/{api → services}/session/util.js +0 -0
- /package/dist/{api → services}/storage/config.d.ts +0 -0
- /package/dist/{api → services}/storage/config.js +0 -0
- /package/dist/{api → services}/storage/index.d.ts +0 -0
- /package/dist/{api → services}/storage/index.js +0 -0
- /package/dist/{api → services}/storage/types.d.ts +0 -0
- /package/dist/{api → services}/storage/types.js +0 -0
- /package/dist/{api → services}/storage/util.d.ts +0 -0
- /package/dist/{api → services}/storage/util.js +0 -0
- /package/dist/{api → services}/stream/get.d.ts +0 -0
- /package/dist/{api → services}/stream/get.js +0 -0
- /package/dist/{api → services}/stream/util.d.ts +0 -0
- /package/dist/{api → services}/stream/util.js +0 -0
- /package/dist/{api → services}/thread/delete.d.ts +0 -0
- /package/dist/{api → services}/thread/delete.js +0 -0
- /package/dist/{api → services}/thread/get.d.ts +0 -0
- /package/dist/{api → services}/thread/get.js +0 -0
- /package/dist/{api → services}/thread/index.d.ts +0 -0
- /package/dist/{api → services}/thread/index.js +0 -0
- /package/dist/{api → services}/thread/util.d.ts +0 -0
- /package/dist/{api → services}/thread/util.js +0 -0
- /package/dist/{api → services}/user/index.d.ts +0 -0
- /package/dist/{api → services}/user/index.js +0 -0
- /package/dist/{api → services}/user/util.d.ts +0 -0
- /package/dist/{api → services}/user/util.js +0 -0
- /package/dist/{api → services}/user/whoami.d.ts +0 -0
- /package/dist/{api → services}/user/whoami.js +0 -0
- /package/dist/{api → services}/webhook/deliveries.js +0 -0
- /package/dist/{api → services}/webhook/destinations.js +0 -0
- /package/dist/{api → services}/webhook/receipts.d.ts +0 -0
- /package/dist/{api → services}/webhook/receipts.js +0 -0
- /package/dist/{api → services}/webhook/util.d.ts +0 -0
- /package/dist/{api → services}/webhook/util.js +0 -0
- /package/dist/{api → services}/webhook/webhooks.js +0 -0
- /package/src/{api → services}/api-example.md +0 -0
- /package/src/{api → services}/apikey/delete.ts +0 -0
- /package/src/{api → services}/apikey/get.ts +0 -0
- /package/src/{api → services}/apikey/index.ts +0 -0
- /package/src/{api → services}/apikey/util.ts +0 -0
- /package/src/{api → services}/db/logs.ts +0 -0
- /package/src/{api → services}/db/util.ts +0 -0
- /package/src/{api → services}/env.ts +0 -0
- /package/src/services/{evalrun.ts → eval/events.ts} +0 -0
- /package/src/{api → services}/eval/get.ts +0 -0
- /package/src/{api → services}/eval/list.ts +0 -0
- /package/src/{api → services}/eval/run-get.ts +0 -0
- /package/src/{api → services}/eval/run-list.ts +0 -0
- /package/src/{api → services}/logger.ts +0 -0
- /package/src/{api → services}/machine/index.ts +0 -0
- /package/src/{api → services}/machine/util.ts +0 -0
- /package/src/{api → services}/org/env-delete.ts +0 -0
- /package/src/{api → services}/org/env-update.ts +0 -0
- /package/src/{api → services}/org/index.ts +0 -0
- /package/src/{api → services}/org/list.ts +0 -0
- /package/src/{api → services}/org/util.ts +0 -0
- /package/src/{api → services}/project/agent.ts +0 -0
- /package/src/{api → services}/project/create.ts +0 -0
- /package/src/{api → services}/project/env-delete.ts +0 -0
- /package/src/{api → services}/project/env-update.ts +0 -0
- /package/src/{api → services}/project/exists.ts +0 -0
- /package/src/{api → services}/project/get.ts +0 -0
- /package/src/{api → services}/project/index.ts +0 -0
- /package/src/{api → services}/project/list.ts +0 -0
- /package/src/{api → services}/project/update-region.ts +0 -0
- /package/src/{api → services}/project/util.ts +0 -0
- /package/src/{api → services}/queue/dlq.ts +0 -0
- /package/src/{api → services}/queue/messages.ts +0 -0
- /package/src/{api → services}/queue/queues.ts +0 -0
- /package/src/{api → services}/region/create.ts +0 -0
- /package/src/{api → services}/region/delete.ts +0 -0
- /package/src/{api → services}/region/index.ts +0 -0
- /package/src/{api → services}/region/list.ts +0 -0
- /package/src/{api → services}/region/resources.ts +0 -0
- /package/src/{api → services}/region/util.ts +0 -0
- /package/src/{api → services}/sandbox/snapshot-build.ts +0 -0
- /package/src/services/{session.ts → session/events.ts} +0 -0
- /package/src/{api → services}/session/logs.ts +0 -0
- /package/src/{api → services}/session/util.ts +0 -0
- /package/src/{api → services}/storage/config.ts +0 -0
- /package/src/{api → services}/storage/index.ts +0 -0
- /package/src/{api → services}/storage/types.ts +0 -0
- /package/src/{api → services}/storage/util.ts +0 -0
- /package/src/{api → services}/stream/get.ts +0 -0
- /package/src/{api → services}/stream/util.ts +0 -0
- /package/src/{api → services}/thread/delete.ts +0 -0
- /package/src/{api → services}/thread/get.ts +0 -0
- /package/src/{api → services}/thread/index.ts +0 -0
- /package/src/{api → services}/thread/util.ts +0 -0
- /package/src/{api → services}/user/index.ts +0 -0
- /package/src/{api → services}/user/util.ts +0 -0
- /package/src/{api → services}/user/whoami.ts +0 -0
- /package/src/{api → services}/webhook/deliveries.ts +0 -0
- /package/src/{api → services}/webhook/destinations.ts +0 -0
- /package/src/{api → services}/webhook/receipts.ts +0 -0
- /package/src/{api → services}/webhook/util.ts +0 -0
- /package/src/{api → services}/webhook/webhooks.ts +0 -0
|
@@ -0,0 +1,1491 @@
|
|
|
1
|
+
import { FetchAdapter } from '../adapter.ts';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* Priority level for a task, from highest (`'high'`) to no priority (`'none'`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const TaskPrioritySchema: z.ZodEnum<{
|
|
7
|
+
high: "high";
|
|
8
|
+
medium: "medium";
|
|
9
|
+
low: "low";
|
|
10
|
+
none: "none";
|
|
11
|
+
}>;
|
|
12
|
+
export type TaskPriority = z.infer<typeof TaskPrioritySchema>;
|
|
13
|
+
/**
|
|
14
|
+
* The classification of a task.
|
|
15
|
+
*
|
|
16
|
+
* - `'epic'` — Large initiatives that span multiple features or tasks.
|
|
17
|
+
* - `'feature'` — New capabilities to be built.
|
|
18
|
+
* - `'enhancement'` — Improvements to existing features.
|
|
19
|
+
* - `'bug'` — Defects to be fixed.
|
|
20
|
+
* - `'task'` — General work items.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TaskTypeSchema: z.ZodEnum<{
|
|
23
|
+
epic: "epic";
|
|
24
|
+
feature: "feature";
|
|
25
|
+
enhancement: "enhancement";
|
|
26
|
+
bug: "bug";
|
|
27
|
+
task: "task";
|
|
28
|
+
}>;
|
|
29
|
+
export type TaskType = z.infer<typeof TaskTypeSchema>;
|
|
30
|
+
/**
|
|
31
|
+
* The lifecycle status of a task.
|
|
32
|
+
*
|
|
33
|
+
* - `'open'` — Created, not yet started.
|
|
34
|
+
* - `'in_progress'` — Actively being worked on.
|
|
35
|
+
* - `'done'` — Work completed.
|
|
36
|
+
* - `'closed'` — Resolved and closed.
|
|
37
|
+
* - `'cancelled'` — Abandoned.
|
|
38
|
+
*/
|
|
39
|
+
export declare const TaskStatusSchema: z.ZodEnum<{
|
|
40
|
+
open: "open";
|
|
41
|
+
in_progress: "in_progress";
|
|
42
|
+
closed: "closed";
|
|
43
|
+
done: "done";
|
|
44
|
+
cancelled: "cancelled";
|
|
45
|
+
}>;
|
|
46
|
+
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
47
|
+
/**
|
|
48
|
+
* A lightweight reference to a user or project entity, containing just the ID
|
|
49
|
+
* and display name. Used for creator, assignee, closer, and project associations.
|
|
50
|
+
*/
|
|
51
|
+
export declare const EntityRefSchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type EntityRef = z.infer<typeof EntityRefSchema>;
|
|
56
|
+
/**
|
|
57
|
+
* The type of user entity.
|
|
58
|
+
*
|
|
59
|
+
* - `'human'` — A human user.
|
|
60
|
+
* - `'agent'` — An AI agent.
|
|
61
|
+
*/
|
|
62
|
+
export declare const UserTypeSchema: z.ZodEnum<{
|
|
63
|
+
human: "human";
|
|
64
|
+
agent: "agent";
|
|
65
|
+
}>;
|
|
66
|
+
export type UserType = z.infer<typeof UserTypeSchema>;
|
|
67
|
+
/**
|
|
68
|
+
* A reference to a user entity with type discrimination.
|
|
69
|
+
* Extends {@link EntityRef} with a {@link UserEntityRef.type | type} field
|
|
70
|
+
* to distinguish between human users and AI agents.
|
|
71
|
+
*/
|
|
72
|
+
export declare const UserEntityRefSchema: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
human: "human";
|
|
77
|
+
agent: "agent";
|
|
78
|
+
}>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type UserEntityRef = z.infer<typeof UserEntityRefSchema>;
|
|
81
|
+
/**
|
|
82
|
+
* A work item in the task management system.
|
|
83
|
+
*
|
|
84
|
+
* Tasks can represent epics, features, bugs, enhancements, or generic tasks.
|
|
85
|
+
* They support hierarchical organization via {@link Task.parent_id | parent_id},
|
|
86
|
+
* assignment tracking, and lifecycle management through status transitions.
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Status transitions are tracked automatically — when a task moves to a new status,
|
|
90
|
+
* the corresponding date field (e.g., {@link Task.open_date | open_date},
|
|
91
|
+
* {@link Task.in_progress_date | in_progress_date}) is set by the server.
|
|
92
|
+
*/
|
|
93
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
created_at: z.ZodString;
|
|
96
|
+
updated_at: z.ZodString;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
description: z.ZodOptional<z.ZodString>;
|
|
99
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
100
|
+
priority: z.ZodEnum<{
|
|
101
|
+
high: "high";
|
|
102
|
+
medium: "medium";
|
|
103
|
+
low: "low";
|
|
104
|
+
none: "none";
|
|
105
|
+
}>;
|
|
106
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
107
|
+
type: z.ZodEnum<{
|
|
108
|
+
epic: "epic";
|
|
109
|
+
feature: "feature";
|
|
110
|
+
enhancement: "enhancement";
|
|
111
|
+
bug: "bug";
|
|
112
|
+
task: "task";
|
|
113
|
+
}>;
|
|
114
|
+
status: z.ZodEnum<{
|
|
115
|
+
open: "open";
|
|
116
|
+
in_progress: "in_progress";
|
|
117
|
+
closed: "closed";
|
|
118
|
+
done: "done";
|
|
119
|
+
cancelled: "cancelled";
|
|
120
|
+
}>;
|
|
121
|
+
open_date: z.ZodOptional<z.ZodString>;
|
|
122
|
+
in_progress_date: z.ZodOptional<z.ZodString>;
|
|
123
|
+
closed_date: z.ZodOptional<z.ZodString>;
|
|
124
|
+
created_id: z.ZodString;
|
|
125
|
+
assigned_id: z.ZodOptional<z.ZodString>;
|
|
126
|
+
closed_id: z.ZodOptional<z.ZodString>;
|
|
127
|
+
creator: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
human: "human";
|
|
132
|
+
agent: "agent";
|
|
133
|
+
}>>;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
135
|
+
assignee: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
139
|
+
human: "human";
|
|
140
|
+
agent: "agent";
|
|
141
|
+
}>>;
|
|
142
|
+
}, z.core.$strip>>>;
|
|
143
|
+
closer: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
human: "human";
|
|
148
|
+
agent: "agent";
|
|
149
|
+
}>>;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
cancelled_date: z.ZodOptional<z.ZodString>;
|
|
156
|
+
tags: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
created_at: z.ZodString;
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
color: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>>>;
|
|
162
|
+
comments: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
created_at: z.ZodString;
|
|
165
|
+
updated_at: z.ZodString;
|
|
166
|
+
task_id: z.ZodString;
|
|
167
|
+
user_id: z.ZodString;
|
|
168
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
human: "human";
|
|
173
|
+
agent: "agent";
|
|
174
|
+
}>>;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
body: z.ZodString;
|
|
177
|
+
}, z.core.$strip>>>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type Task = z.infer<typeof TaskSchema>;
|
|
180
|
+
/**
|
|
181
|
+
* A comment on a task, supporting threaded discussion.
|
|
182
|
+
*/
|
|
183
|
+
export declare const CommentSchema: z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
created_at: z.ZodString;
|
|
186
|
+
updated_at: z.ZodString;
|
|
187
|
+
task_id: z.ZodString;
|
|
188
|
+
user_id: z.ZodString;
|
|
189
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
human: "human";
|
|
194
|
+
agent: "agent";
|
|
195
|
+
}>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
body: z.ZodString;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export type Comment = z.infer<typeof CommentSchema>;
|
|
200
|
+
/**
|
|
201
|
+
* A label that can be applied to tasks for categorization and filtering.
|
|
202
|
+
*/
|
|
203
|
+
export declare const TagSchema: z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
created_at: z.ZodString;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
color: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
export type Tag = z.infer<typeof TagSchema>;
|
|
210
|
+
/**
|
|
211
|
+
* A record of a single field change on a task, providing an audit trail.
|
|
212
|
+
*/
|
|
213
|
+
export declare const TaskChangelogEntrySchema: z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
created_at: z.ZodString;
|
|
216
|
+
task_id: z.ZodString;
|
|
217
|
+
field: z.ZodString;
|
|
218
|
+
old_value: z.ZodOptional<z.ZodString>;
|
|
219
|
+
new_value: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export type TaskChangelogEntry = z.infer<typeof TaskChangelogEntrySchema>;
|
|
222
|
+
/**
|
|
223
|
+
* Parameters for creating a new task.
|
|
224
|
+
*/
|
|
225
|
+
export declare const CreateTaskParamsSchema: z.ZodObject<{
|
|
226
|
+
title: z.ZodString;
|
|
227
|
+
description: z.ZodOptional<z.ZodString>;
|
|
228
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
229
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
high: "high";
|
|
231
|
+
medium: "medium";
|
|
232
|
+
low: "low";
|
|
233
|
+
none: "none";
|
|
234
|
+
}>>;
|
|
235
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
236
|
+
type: z.ZodEnum<{
|
|
237
|
+
epic: "epic";
|
|
238
|
+
feature: "feature";
|
|
239
|
+
enhancement: "enhancement";
|
|
240
|
+
bug: "bug";
|
|
241
|
+
task: "task";
|
|
242
|
+
}>;
|
|
243
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
open: "open";
|
|
245
|
+
in_progress: "in_progress";
|
|
246
|
+
closed: "closed";
|
|
247
|
+
done: "done";
|
|
248
|
+
cancelled: "cancelled";
|
|
249
|
+
}>>;
|
|
250
|
+
created_id: z.ZodString;
|
|
251
|
+
assigned_id: z.ZodOptional<z.ZodString>;
|
|
252
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
id: z.ZodString;
|
|
254
|
+
name: z.ZodString;
|
|
255
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
human: "human";
|
|
257
|
+
agent: "agent";
|
|
258
|
+
}>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
id: z.ZodString;
|
|
262
|
+
name: z.ZodString;
|
|
263
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
human: "human";
|
|
265
|
+
agent: "agent";
|
|
266
|
+
}>>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
id: z.ZodString;
|
|
270
|
+
name: z.ZodString;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export type CreateTaskParams = z.infer<typeof CreateTaskParamsSchema>;
|
|
275
|
+
/**
|
|
276
|
+
* Parameters for partially updating an existing task.
|
|
277
|
+
*
|
|
278
|
+
* @remarks Only provided fields are modified; omitted fields remain unchanged.
|
|
279
|
+
*/
|
|
280
|
+
export declare const UpdateTaskParamsSchema: z.ZodObject<{
|
|
281
|
+
title: z.ZodOptional<z.ZodString>;
|
|
282
|
+
description: z.ZodOptional<z.ZodString>;
|
|
283
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
284
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
285
|
+
high: "high";
|
|
286
|
+
medium: "medium";
|
|
287
|
+
low: "low";
|
|
288
|
+
none: "none";
|
|
289
|
+
}>>;
|
|
290
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
291
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
epic: "epic";
|
|
293
|
+
feature: "feature";
|
|
294
|
+
enhancement: "enhancement";
|
|
295
|
+
bug: "bug";
|
|
296
|
+
task: "task";
|
|
297
|
+
}>>;
|
|
298
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
299
|
+
open: "open";
|
|
300
|
+
in_progress: "in_progress";
|
|
301
|
+
closed: "closed";
|
|
302
|
+
done: "done";
|
|
303
|
+
cancelled: "cancelled";
|
|
304
|
+
}>>;
|
|
305
|
+
assigned_id: z.ZodOptional<z.ZodString>;
|
|
306
|
+
closed_id: z.ZodOptional<z.ZodString>;
|
|
307
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
id: z.ZodString;
|
|
309
|
+
name: z.ZodString;
|
|
310
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
311
|
+
human: "human";
|
|
312
|
+
agent: "agent";
|
|
313
|
+
}>>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
closer: z.ZodOptional<z.ZodObject<{
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
name: z.ZodString;
|
|
318
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
human: "human";
|
|
320
|
+
agent: "agent";
|
|
321
|
+
}>>;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
}, z.core.$strip>>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
export type UpdateTaskParams = z.infer<typeof UpdateTaskParamsSchema>;
|
|
329
|
+
/**
|
|
330
|
+
* Parameters for filtering and paginating the task list.
|
|
331
|
+
*/
|
|
332
|
+
export declare const ListTasksParamsSchema: z.ZodObject<{
|
|
333
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
334
|
+
open: "open";
|
|
335
|
+
in_progress: "in_progress";
|
|
336
|
+
closed: "closed";
|
|
337
|
+
done: "done";
|
|
338
|
+
cancelled: "cancelled";
|
|
339
|
+
}>>;
|
|
340
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
341
|
+
epic: "epic";
|
|
342
|
+
feature: "feature";
|
|
343
|
+
enhancement: "enhancement";
|
|
344
|
+
bug: "bug";
|
|
345
|
+
task: "task";
|
|
346
|
+
}>>;
|
|
347
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
348
|
+
high: "high";
|
|
349
|
+
medium: "medium";
|
|
350
|
+
low: "low";
|
|
351
|
+
none: "none";
|
|
352
|
+
}>>;
|
|
353
|
+
assigned_id: z.ZodOptional<z.ZodString>;
|
|
354
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
355
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
356
|
+
tag_id: z.ZodOptional<z.ZodString>;
|
|
357
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
359
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
asc: "asc";
|
|
361
|
+
desc: "desc";
|
|
362
|
+
}>>;
|
|
363
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
364
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
export type ListTasksParams = z.infer<typeof ListTasksParamsSchema>;
|
|
367
|
+
/**
|
|
368
|
+
* Paginated list of tasks with total count.
|
|
369
|
+
*/
|
|
370
|
+
export declare const ListTasksResultSchema: z.ZodObject<{
|
|
371
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
372
|
+
id: z.ZodString;
|
|
373
|
+
created_at: z.ZodString;
|
|
374
|
+
updated_at: z.ZodString;
|
|
375
|
+
title: z.ZodString;
|
|
376
|
+
description: z.ZodOptional<z.ZodString>;
|
|
377
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
|
+
priority: z.ZodEnum<{
|
|
379
|
+
high: "high";
|
|
380
|
+
medium: "medium";
|
|
381
|
+
low: "low";
|
|
382
|
+
none: "none";
|
|
383
|
+
}>;
|
|
384
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
385
|
+
type: z.ZodEnum<{
|
|
386
|
+
epic: "epic";
|
|
387
|
+
feature: "feature";
|
|
388
|
+
enhancement: "enhancement";
|
|
389
|
+
bug: "bug";
|
|
390
|
+
task: "task";
|
|
391
|
+
}>;
|
|
392
|
+
status: z.ZodEnum<{
|
|
393
|
+
open: "open";
|
|
394
|
+
in_progress: "in_progress";
|
|
395
|
+
closed: "closed";
|
|
396
|
+
done: "done";
|
|
397
|
+
cancelled: "cancelled";
|
|
398
|
+
}>;
|
|
399
|
+
open_date: z.ZodOptional<z.ZodString>;
|
|
400
|
+
in_progress_date: z.ZodOptional<z.ZodString>;
|
|
401
|
+
closed_date: z.ZodOptional<z.ZodString>;
|
|
402
|
+
created_id: z.ZodString;
|
|
403
|
+
assigned_id: z.ZodOptional<z.ZodString>;
|
|
404
|
+
closed_id: z.ZodOptional<z.ZodString>;
|
|
405
|
+
creator: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
human: "human";
|
|
410
|
+
agent: "agent";
|
|
411
|
+
}>>;
|
|
412
|
+
}, z.core.$strip>>>;
|
|
413
|
+
assignee: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
417
|
+
human: "human";
|
|
418
|
+
agent: "agent";
|
|
419
|
+
}>>;
|
|
420
|
+
}, z.core.$strip>>>;
|
|
421
|
+
closer: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
425
|
+
human: "human";
|
|
426
|
+
agent: "agent";
|
|
427
|
+
}>>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
id: z.ZodString;
|
|
431
|
+
name: z.ZodString;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
cancelled_date: z.ZodOptional<z.ZodString>;
|
|
434
|
+
tags: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
created_at: z.ZodString;
|
|
437
|
+
name: z.ZodString;
|
|
438
|
+
color: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>>>>;
|
|
440
|
+
comments: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
441
|
+
id: z.ZodString;
|
|
442
|
+
created_at: z.ZodString;
|
|
443
|
+
updated_at: z.ZodString;
|
|
444
|
+
task_id: z.ZodString;
|
|
445
|
+
user_id: z.ZodString;
|
|
446
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
447
|
+
id: z.ZodString;
|
|
448
|
+
name: z.ZodString;
|
|
449
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
450
|
+
human: "human";
|
|
451
|
+
agent: "agent";
|
|
452
|
+
}>>;
|
|
453
|
+
}, z.core.$strip>>;
|
|
454
|
+
body: z.ZodString;
|
|
455
|
+
}, z.core.$strip>>>>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
total: z.ZodNumber;
|
|
458
|
+
limit: z.ZodNumber;
|
|
459
|
+
offset: z.ZodNumber;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
export type ListTasksResult = z.infer<typeof ListTasksResultSchema>;
|
|
462
|
+
/**
|
|
463
|
+
* Parameters for batch-deleting tasks by filter.
|
|
464
|
+
* At least one filter must be provided.
|
|
465
|
+
*/
|
|
466
|
+
export declare const BatchDeleteTasksParamsSchema: z.ZodObject<{
|
|
467
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
open: "open";
|
|
469
|
+
in_progress: "in_progress";
|
|
470
|
+
closed: "closed";
|
|
471
|
+
done: "done";
|
|
472
|
+
cancelled: "cancelled";
|
|
473
|
+
}>>;
|
|
474
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
epic: "epic";
|
|
476
|
+
feature: "feature";
|
|
477
|
+
enhancement: "enhancement";
|
|
478
|
+
bug: "bug";
|
|
479
|
+
task: "task";
|
|
480
|
+
}>>;
|
|
481
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
high: "high";
|
|
483
|
+
medium: "medium";
|
|
484
|
+
low: "low";
|
|
485
|
+
none: "none";
|
|
486
|
+
}>>;
|
|
487
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
488
|
+
created_id: z.ZodOptional<z.ZodString>;
|
|
489
|
+
older_than: z.ZodOptional<z.ZodString>;
|
|
490
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
export type BatchDeleteTasksParams = z.infer<typeof BatchDeleteTasksParamsSchema>;
|
|
493
|
+
/**
|
|
494
|
+
* A single task that was deleted in a batch operation.
|
|
495
|
+
*/
|
|
496
|
+
export declare const BatchDeletedTaskSchema: z.ZodObject<{
|
|
497
|
+
id: z.ZodString;
|
|
498
|
+
title: z.ZodString;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
export type BatchDeletedTask = z.infer<typeof BatchDeletedTaskSchema>;
|
|
501
|
+
/**
|
|
502
|
+
* Result of a batch delete operation.
|
|
503
|
+
*/
|
|
504
|
+
export declare const BatchDeleteTasksResultSchema: z.ZodObject<{
|
|
505
|
+
deleted: z.ZodArray<z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
title: z.ZodString;
|
|
508
|
+
}, z.core.$strip>>;
|
|
509
|
+
count: z.ZodNumber;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
export type BatchDeleteTasksResult = z.infer<typeof BatchDeleteTasksResultSchema>;
|
|
512
|
+
/**
|
|
513
|
+
* Paginated list of changelog entries for a task.
|
|
514
|
+
*/
|
|
515
|
+
export declare const TaskChangelogResultSchema: z.ZodObject<{
|
|
516
|
+
changelog: z.ZodArray<z.ZodObject<{
|
|
517
|
+
id: z.ZodString;
|
|
518
|
+
created_at: z.ZodString;
|
|
519
|
+
task_id: z.ZodString;
|
|
520
|
+
field: z.ZodString;
|
|
521
|
+
old_value: z.ZodOptional<z.ZodString>;
|
|
522
|
+
new_value: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>>;
|
|
524
|
+
total: z.ZodNumber;
|
|
525
|
+
limit: z.ZodNumber;
|
|
526
|
+
offset: z.ZodNumber;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
export type TaskChangelogResult = z.infer<typeof TaskChangelogResultSchema>;
|
|
529
|
+
/**
|
|
530
|
+
* Paginated list of comments on a task.
|
|
531
|
+
*/
|
|
532
|
+
export declare const ListCommentsResultSchema: z.ZodObject<{
|
|
533
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
534
|
+
id: z.ZodString;
|
|
535
|
+
created_at: z.ZodString;
|
|
536
|
+
updated_at: z.ZodString;
|
|
537
|
+
task_id: z.ZodString;
|
|
538
|
+
user_id: z.ZodString;
|
|
539
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
540
|
+
id: z.ZodString;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
human: "human";
|
|
544
|
+
agent: "agent";
|
|
545
|
+
}>>;
|
|
546
|
+
}, z.core.$strip>>;
|
|
547
|
+
body: z.ZodString;
|
|
548
|
+
}, z.core.$strip>>;
|
|
549
|
+
total: z.ZodNumber;
|
|
550
|
+
limit: z.ZodNumber;
|
|
551
|
+
offset: z.ZodNumber;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
export type ListCommentsResult = z.infer<typeof ListCommentsResultSchema>;
|
|
554
|
+
/**
|
|
555
|
+
* List of all tags in the organization.
|
|
556
|
+
*/
|
|
557
|
+
export declare const ListTagsResultSchema: z.ZodObject<{
|
|
558
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
559
|
+
id: z.ZodString;
|
|
560
|
+
created_at: z.ZodString;
|
|
561
|
+
name: z.ZodString;
|
|
562
|
+
color: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
}, z.core.$strip>;
|
|
565
|
+
export type ListTagsResult = z.infer<typeof ListTagsResultSchema>;
|
|
566
|
+
/**
|
|
567
|
+
* A file attachment on a task. Attachments are stored in S3 and accessed via presigned URLs.
|
|
568
|
+
*/
|
|
569
|
+
export declare const AttachmentSchema: z.ZodObject<{
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
created_at: z.ZodString;
|
|
572
|
+
task_id: z.ZodString;
|
|
573
|
+
user_id: z.ZodString;
|
|
574
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
575
|
+
id: z.ZodString;
|
|
576
|
+
name: z.ZodString;
|
|
577
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
578
|
+
human: "human";
|
|
579
|
+
agent: "agent";
|
|
580
|
+
}>>;
|
|
581
|
+
}, z.core.$strip>>;
|
|
582
|
+
filename: z.ZodString;
|
|
583
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
584
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
}, z.core.$strip>;
|
|
586
|
+
export type Attachment = z.infer<typeof AttachmentSchema>;
|
|
587
|
+
/**
|
|
588
|
+
* Parameters for initiating a file upload to a task.
|
|
589
|
+
*/
|
|
590
|
+
export declare const CreateAttachmentParamsSchema: z.ZodObject<{
|
|
591
|
+
filename: z.ZodString;
|
|
592
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
593
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
export type CreateAttachmentParams = z.infer<typeof CreateAttachmentParamsSchema>;
|
|
596
|
+
/**
|
|
597
|
+
* Response from initiating an attachment upload. Contains a presigned S3 URL for direct upload.
|
|
598
|
+
*/
|
|
599
|
+
export declare const PresignUploadResponseSchema: z.ZodObject<{
|
|
600
|
+
attachment: z.ZodObject<{
|
|
601
|
+
id: z.ZodString;
|
|
602
|
+
created_at: z.ZodString;
|
|
603
|
+
task_id: z.ZodString;
|
|
604
|
+
user_id: z.ZodString;
|
|
605
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
606
|
+
id: z.ZodString;
|
|
607
|
+
name: z.ZodString;
|
|
608
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
609
|
+
human: "human";
|
|
610
|
+
agent: "agent";
|
|
611
|
+
}>>;
|
|
612
|
+
}, z.core.$strip>>;
|
|
613
|
+
filename: z.ZodString;
|
|
614
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
615
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
}, z.core.$strip>;
|
|
617
|
+
presigned_url: z.ZodString;
|
|
618
|
+
expiry_seconds: z.ZodNumber;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
export type PresignUploadResponse = z.infer<typeof PresignUploadResponseSchema>;
|
|
621
|
+
/**
|
|
622
|
+
* Response containing a presigned S3 URL for downloading an attachment.
|
|
623
|
+
*/
|
|
624
|
+
export declare const PresignDownloadResponseSchema: z.ZodObject<{
|
|
625
|
+
presigned_url: z.ZodString;
|
|
626
|
+
expiry_seconds: z.ZodNumber;
|
|
627
|
+
}, z.core.$strip>;
|
|
628
|
+
export type PresignDownloadResponse = z.infer<typeof PresignDownloadResponseSchema>;
|
|
629
|
+
/**
|
|
630
|
+
* List of attachments on a task.
|
|
631
|
+
*/
|
|
632
|
+
export declare const ListAttachmentsResultSchema: z.ZodObject<{
|
|
633
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
634
|
+
id: z.ZodString;
|
|
635
|
+
created_at: z.ZodString;
|
|
636
|
+
task_id: z.ZodString;
|
|
637
|
+
user_id: z.ZodString;
|
|
638
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
639
|
+
id: z.ZodString;
|
|
640
|
+
name: z.ZodString;
|
|
641
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
642
|
+
human: "human";
|
|
643
|
+
agent: "agent";
|
|
644
|
+
}>>;
|
|
645
|
+
}, z.core.$strip>>;
|
|
646
|
+
filename: z.ZodString;
|
|
647
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
648
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
}, z.core.$strip>>;
|
|
650
|
+
total: z.ZodNumber;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
export type ListAttachmentsResult = z.infer<typeof ListAttachmentsResultSchema>;
|
|
653
|
+
/**
|
|
654
|
+
* List of all users who have been referenced in tasks (as creators, assignees, or closers).
|
|
655
|
+
*/
|
|
656
|
+
export declare const ListUsersResultSchema: z.ZodObject<{
|
|
657
|
+
users: z.ZodArray<z.ZodObject<{
|
|
658
|
+
id: z.ZodString;
|
|
659
|
+
name: z.ZodString;
|
|
660
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
human: "human";
|
|
662
|
+
agent: "agent";
|
|
663
|
+
}>>;
|
|
664
|
+
}, z.core.$strip>>;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
export type ListUsersResult = z.infer<typeof ListUsersResultSchema>;
|
|
667
|
+
/**
|
|
668
|
+
* List of all projects that have been referenced in tasks.
|
|
669
|
+
*/
|
|
670
|
+
export declare const ListProjectsResultSchema: z.ZodObject<{
|
|
671
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
672
|
+
id: z.ZodString;
|
|
673
|
+
name: z.ZodString;
|
|
674
|
+
}, z.core.$strip>>;
|
|
675
|
+
}, z.core.$strip>;
|
|
676
|
+
export type ListProjectsResult = z.infer<typeof ListProjectsResultSchema>;
|
|
677
|
+
/**
|
|
678
|
+
* Parameters for querying task activity time-series data.
|
|
679
|
+
*/
|
|
680
|
+
export declare const TaskActivityParamsSchema: z.ZodObject<{
|
|
681
|
+
days: z.ZodOptional<z.ZodNumber>;
|
|
682
|
+
}, z.core.$strip>;
|
|
683
|
+
export type TaskActivityParams = z.infer<typeof TaskActivityParamsSchema>;
|
|
684
|
+
/**
|
|
685
|
+
* A single day's snapshot of task counts by status.
|
|
686
|
+
*/
|
|
687
|
+
export declare const TaskActivityDataPointSchema: z.ZodObject<{
|
|
688
|
+
date: z.ZodString;
|
|
689
|
+
open: z.ZodNumber;
|
|
690
|
+
inProgress: z.ZodNumber;
|
|
691
|
+
done: z.ZodNumber;
|
|
692
|
+
closed: z.ZodNumber;
|
|
693
|
+
cancelled: z.ZodNumber;
|
|
694
|
+
}, z.core.$strip>;
|
|
695
|
+
export type TaskActivityDataPoint = z.infer<typeof TaskActivityDataPointSchema>;
|
|
696
|
+
/**
|
|
697
|
+
* Task activity time-series data.
|
|
698
|
+
*/
|
|
699
|
+
export declare const TaskActivityResultSchema: z.ZodObject<{
|
|
700
|
+
activity: z.ZodArray<z.ZodObject<{
|
|
701
|
+
date: z.ZodString;
|
|
702
|
+
open: z.ZodNumber;
|
|
703
|
+
inProgress: z.ZodNumber;
|
|
704
|
+
done: z.ZodNumber;
|
|
705
|
+
closed: z.ZodNumber;
|
|
706
|
+
cancelled: z.ZodNumber;
|
|
707
|
+
}, z.core.$strip>>;
|
|
708
|
+
days: z.ZodNumber;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
export type TaskActivityResult = z.infer<typeof TaskActivityResultSchema>;
|
|
711
|
+
/**
|
|
712
|
+
* Interface defining the contract for task storage operations.
|
|
713
|
+
*
|
|
714
|
+
* Implemented by {@link TaskStorageService}.
|
|
715
|
+
*/
|
|
716
|
+
export interface TaskStorage {
|
|
717
|
+
/**
|
|
718
|
+
* Create a new task.
|
|
719
|
+
*
|
|
720
|
+
* @param params - The task creation parameters
|
|
721
|
+
* @returns The newly created task
|
|
722
|
+
*/
|
|
723
|
+
create(params: CreateTaskParams): Promise<Task>;
|
|
724
|
+
/**
|
|
725
|
+
* Get a task by its ID.
|
|
726
|
+
*
|
|
727
|
+
* @param id - The unique task identifier
|
|
728
|
+
* @returns The task if found, or `null` if not found
|
|
729
|
+
*/
|
|
730
|
+
get(id: string): Promise<Task | null>;
|
|
731
|
+
/**
|
|
732
|
+
* List tasks with optional filtering and pagination.
|
|
733
|
+
*
|
|
734
|
+
* @param params - Optional filter and pagination parameters
|
|
735
|
+
* @returns Paginated list of matching tasks
|
|
736
|
+
*/
|
|
737
|
+
list(params?: ListTasksParams): Promise<ListTasksResult>;
|
|
738
|
+
/**
|
|
739
|
+
* Partially update an existing task.
|
|
740
|
+
*
|
|
741
|
+
* @param id - The unique task identifier
|
|
742
|
+
* @param params - Fields to update (only provided fields are changed)
|
|
743
|
+
* @returns The updated task
|
|
744
|
+
*/
|
|
745
|
+
update(id: string, params: UpdateTaskParams): Promise<Task>;
|
|
746
|
+
/**
|
|
747
|
+
* Close a task by setting its status to closed.
|
|
748
|
+
*
|
|
749
|
+
* @param id - The unique task identifier
|
|
750
|
+
* @returns The closed task
|
|
751
|
+
*/
|
|
752
|
+
close(id: string): Promise<Task>;
|
|
753
|
+
/**
|
|
754
|
+
* Soft-delete a task, marking it as deleted without permanent removal.
|
|
755
|
+
*
|
|
756
|
+
* @param id - The unique task identifier
|
|
757
|
+
* @returns The soft-deleted task
|
|
758
|
+
*/
|
|
759
|
+
softDelete(id: string): Promise<Task>;
|
|
760
|
+
/**
|
|
761
|
+
* Batch soft-delete tasks matching the given filters.
|
|
762
|
+
* At least one filter must be provided.
|
|
763
|
+
*
|
|
764
|
+
* @param params - Filters to select which tasks to delete
|
|
765
|
+
* @returns The list of deleted tasks and count
|
|
766
|
+
*/
|
|
767
|
+
batchDelete(params: BatchDeleteTasksParams): Promise<BatchDeleteTasksResult>;
|
|
768
|
+
/**
|
|
769
|
+
* Get the changelog (audit trail) for a task.
|
|
770
|
+
*
|
|
771
|
+
* @param id - The unique task identifier
|
|
772
|
+
* @param params - Optional pagination parameters
|
|
773
|
+
* @returns Paginated list of changelog entries
|
|
774
|
+
*/
|
|
775
|
+
changelog(id: string, params?: {
|
|
776
|
+
limit?: number;
|
|
777
|
+
offset?: number;
|
|
778
|
+
}): Promise<TaskChangelogResult>;
|
|
779
|
+
/**
|
|
780
|
+
* Create a comment on a task.
|
|
781
|
+
*
|
|
782
|
+
* @param taskId - The ID of the task to comment on
|
|
783
|
+
* @param body - The comment text content
|
|
784
|
+
* @param userId - The ID of the user authoring the comment
|
|
785
|
+
* @param author - Optional entity reference with display name
|
|
786
|
+
* @returns The newly created comment
|
|
787
|
+
*/
|
|
788
|
+
createComment(taskId: string, body: string, userId: string, author?: EntityRef): Promise<Comment>;
|
|
789
|
+
/**
|
|
790
|
+
* Get a comment by its ID.
|
|
791
|
+
*
|
|
792
|
+
* @param commentId - The unique comment identifier
|
|
793
|
+
* @returns The comment
|
|
794
|
+
*/
|
|
795
|
+
getComment(commentId: string): Promise<Comment>;
|
|
796
|
+
/**
|
|
797
|
+
* Update a comment's body text.
|
|
798
|
+
*
|
|
799
|
+
* @param commentId - The unique comment identifier
|
|
800
|
+
* @param body - The new comment text
|
|
801
|
+
* @returns The updated comment
|
|
802
|
+
*/
|
|
803
|
+
updateComment(commentId: string, body: string): Promise<Comment>;
|
|
804
|
+
/**
|
|
805
|
+
* Delete a comment.
|
|
806
|
+
*
|
|
807
|
+
* @param commentId - The unique comment identifier
|
|
808
|
+
*/
|
|
809
|
+
deleteComment(commentId: string): Promise<void>;
|
|
810
|
+
/**
|
|
811
|
+
* List comments on a task with optional pagination.
|
|
812
|
+
*
|
|
813
|
+
* @param taskId - The ID of the task
|
|
814
|
+
* @param params - Optional pagination parameters
|
|
815
|
+
* @returns Paginated list of comments
|
|
816
|
+
*/
|
|
817
|
+
listComments(taskId: string, params?: {
|
|
818
|
+
limit?: number;
|
|
819
|
+
offset?: number;
|
|
820
|
+
}): Promise<ListCommentsResult>;
|
|
821
|
+
/**
|
|
822
|
+
* Create a new tag.
|
|
823
|
+
*
|
|
824
|
+
* @param name - The tag display name
|
|
825
|
+
* @param color - Optional hex color code (e.g., `'#ff0000'`)
|
|
826
|
+
* @returns The newly created tag
|
|
827
|
+
*/
|
|
828
|
+
createTag(name: string, color?: string): Promise<Tag>;
|
|
829
|
+
/**
|
|
830
|
+
* Get a tag by its ID.
|
|
831
|
+
*
|
|
832
|
+
* @param tagId - The unique tag identifier
|
|
833
|
+
* @returns The tag
|
|
834
|
+
*/
|
|
835
|
+
getTag(tagId: string): Promise<Tag>;
|
|
836
|
+
/**
|
|
837
|
+
* Update a tag's name and optionally its color.
|
|
838
|
+
*
|
|
839
|
+
* @param tagId - The unique tag identifier
|
|
840
|
+
* @param name - The new tag name
|
|
841
|
+
* @param color - Optional new hex color code
|
|
842
|
+
* @returns The updated tag
|
|
843
|
+
*/
|
|
844
|
+
updateTag(tagId: string, name: string, color?: string): Promise<Tag>;
|
|
845
|
+
/**
|
|
846
|
+
* Delete a tag.
|
|
847
|
+
*
|
|
848
|
+
* @param tagId - The unique tag identifier
|
|
849
|
+
*/
|
|
850
|
+
deleteTag(tagId: string): Promise<void>;
|
|
851
|
+
/**
|
|
852
|
+
* List all tags in the organization.
|
|
853
|
+
*
|
|
854
|
+
* @returns List of all tags
|
|
855
|
+
*/
|
|
856
|
+
listTags(): Promise<ListTagsResult>;
|
|
857
|
+
/**
|
|
858
|
+
* Associate a tag with a task.
|
|
859
|
+
*
|
|
860
|
+
* @param taskId - The ID of the task
|
|
861
|
+
* @param tagId - The ID of the tag to add
|
|
862
|
+
*/
|
|
863
|
+
addTagToTask(taskId: string, tagId: string): Promise<void>;
|
|
864
|
+
/**
|
|
865
|
+
* Remove a tag association from a task.
|
|
866
|
+
*
|
|
867
|
+
* @param taskId - The ID of the task
|
|
868
|
+
* @param tagId - The ID of the tag to remove
|
|
869
|
+
*/
|
|
870
|
+
removeTagFromTask(taskId: string, tagId: string): Promise<void>;
|
|
871
|
+
/**
|
|
872
|
+
* List all tags associated with a specific task.
|
|
873
|
+
*
|
|
874
|
+
* @param taskId - The ID of the task
|
|
875
|
+
* @returns Array of tags on the task
|
|
876
|
+
*/
|
|
877
|
+
listTagsForTask(taskId: string): Promise<Tag[]>;
|
|
878
|
+
/**
|
|
879
|
+
* Initiate a file upload to a task. Returns a presigned S3 URL for direct upload.
|
|
880
|
+
*
|
|
881
|
+
* @param taskId - The ID of the task to attach the file to
|
|
882
|
+
* @param params - Attachment metadata (filename, content type, size)
|
|
883
|
+
* @returns The attachment record and a presigned upload URL
|
|
884
|
+
*/
|
|
885
|
+
uploadAttachment(taskId: string, params: CreateAttachmentParams): Promise<PresignUploadResponse>;
|
|
886
|
+
/**
|
|
887
|
+
* Confirm that a file upload has completed successfully.
|
|
888
|
+
*
|
|
889
|
+
* @param attachmentId - The unique attachment identifier
|
|
890
|
+
* @returns The confirmed attachment record
|
|
891
|
+
*/
|
|
892
|
+
confirmAttachment(attachmentId: string): Promise<Attachment>;
|
|
893
|
+
/**
|
|
894
|
+
* Get a presigned S3 URL for downloading an attachment.
|
|
895
|
+
*
|
|
896
|
+
* @param attachmentId - The unique attachment identifier
|
|
897
|
+
* @returns A presigned download URL
|
|
898
|
+
*/
|
|
899
|
+
downloadAttachment(attachmentId: string): Promise<PresignDownloadResponse>;
|
|
900
|
+
/**
|
|
901
|
+
* List all attachments on a task.
|
|
902
|
+
*
|
|
903
|
+
* @param taskId - The ID of the task
|
|
904
|
+
* @returns List of attachments with total count
|
|
905
|
+
*/
|
|
906
|
+
listAttachments(taskId: string): Promise<ListAttachmentsResult>;
|
|
907
|
+
/**
|
|
908
|
+
* Delete an attachment.
|
|
909
|
+
*
|
|
910
|
+
* @param attachmentId - The unique attachment identifier
|
|
911
|
+
*/
|
|
912
|
+
deleteAttachment(attachmentId: string): Promise<void>;
|
|
913
|
+
/**
|
|
914
|
+
* List all users who have been referenced in tasks.
|
|
915
|
+
*
|
|
916
|
+
* @returns List of user entity references
|
|
917
|
+
*/
|
|
918
|
+
listUsers(): Promise<ListUsersResult>;
|
|
919
|
+
/**
|
|
920
|
+
* List all projects that have been referenced in tasks.
|
|
921
|
+
*
|
|
922
|
+
* @returns List of project entity references
|
|
923
|
+
*/
|
|
924
|
+
listProjects(): Promise<ListProjectsResult>;
|
|
925
|
+
/**
|
|
926
|
+
* Get task activity time-series data showing daily status counts.
|
|
927
|
+
*
|
|
928
|
+
* @param params - Optional parameters controlling the number of days to retrieve
|
|
929
|
+
* @returns Time-series activity data
|
|
930
|
+
*/
|
|
931
|
+
getActivity(params?: TaskActivityParams): Promise<TaskActivityResult>;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Client for the Agentuity Task management service.
|
|
935
|
+
*
|
|
936
|
+
* Provides a full-featured project management API including task CRUD, hierarchical
|
|
937
|
+
* organization (epics → features → tasks), comments, tags, file attachments via
|
|
938
|
+
* presigned S3 URLs, changelog tracking, and activity analytics.
|
|
939
|
+
*
|
|
940
|
+
* Tasks support lifecycle management through status transitions (`open` → `in_progress`
|
|
941
|
+
* → `done`/`closed`/`cancelled`) with automatic date tracking for each transition.
|
|
942
|
+
*
|
|
943
|
+
* All methods validate inputs client-side and throw structured errors for invalid
|
|
944
|
+
* parameters. API errors throw {@link ServiceException}.
|
|
945
|
+
*
|
|
946
|
+
* @example
|
|
947
|
+
* ```typescript
|
|
948
|
+
* const tasks = new TaskStorageService(baseUrl, adapter);
|
|
949
|
+
*
|
|
950
|
+
* // Create a task
|
|
951
|
+
* const task = await tasks.create({
|
|
952
|
+
* title: 'Implement login flow',
|
|
953
|
+
* type: 'feature',
|
|
954
|
+
* created_id: 'user_123',
|
|
955
|
+
* creator: { id: 'user_123', name: 'Alice' },
|
|
956
|
+
* priority: 'high',
|
|
957
|
+
* });
|
|
958
|
+
*
|
|
959
|
+
* // Add a comment
|
|
960
|
+
* await tasks.createComment(task.id, 'Started working on this', 'user_123');
|
|
961
|
+
*
|
|
962
|
+
* // List open tasks
|
|
963
|
+
* const { tasks: openTasks } = await tasks.list({ status: 'open' });
|
|
964
|
+
* ```
|
|
965
|
+
*/
|
|
966
|
+
export declare class TaskStorageService implements TaskStorage {
|
|
967
|
+
#private;
|
|
968
|
+
/**
|
|
969
|
+
* Creates a new TaskStorageService instance.
|
|
970
|
+
*
|
|
971
|
+
* @param baseUrl - The base URL of the task management API
|
|
972
|
+
* @param adapter - The HTTP fetch adapter used for making API requests
|
|
973
|
+
*/
|
|
974
|
+
constructor(baseUrl: string, adapter: FetchAdapter);
|
|
975
|
+
/**
|
|
976
|
+
* Create a new task.
|
|
977
|
+
*
|
|
978
|
+
* @param params - The task creation parameters including title, type, and optional fields
|
|
979
|
+
* @returns The newly created task
|
|
980
|
+
* @throws {@link TaskTitleRequiredError} if the title is empty or not a string
|
|
981
|
+
* @throws {@link ServiceException} if the API request fails
|
|
982
|
+
*
|
|
983
|
+
* @example
|
|
984
|
+
* ```typescript
|
|
985
|
+
* const task = await tasks.create({
|
|
986
|
+
* title: 'Fix login bug',
|
|
987
|
+
* type: 'bug',
|
|
988
|
+
* created_id: 'user_123',
|
|
989
|
+
* priority: 'high',
|
|
990
|
+
* creator: { id: 'user_123', name: 'Alice' },
|
|
991
|
+
* project: { id: 'proj_456', name: 'Auth Service' },
|
|
992
|
+
* });
|
|
993
|
+
* console.log('Created:', task.id);
|
|
994
|
+
* ```
|
|
995
|
+
*/
|
|
996
|
+
create(params: CreateTaskParams): Promise<Task>;
|
|
997
|
+
/**
|
|
998
|
+
* Get a task by its ID.
|
|
999
|
+
*
|
|
1000
|
+
* @param id - The unique task identifier
|
|
1001
|
+
* @returns The task if found, or `null` if the task does not exist
|
|
1002
|
+
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
1003
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1004
|
+
*
|
|
1005
|
+
* @example
|
|
1006
|
+
* ```typescript
|
|
1007
|
+
* const task = await tasks.get('task_abc123');
|
|
1008
|
+
* if (task) {
|
|
1009
|
+
* console.log(task.title, task.status);
|
|
1010
|
+
* } else {
|
|
1011
|
+
* console.log('Task not found');
|
|
1012
|
+
* }
|
|
1013
|
+
* ```
|
|
1014
|
+
*/
|
|
1015
|
+
get(id: string): Promise<Task | null>;
|
|
1016
|
+
/**
|
|
1017
|
+
* List tasks with optional filtering and pagination.
|
|
1018
|
+
*
|
|
1019
|
+
* @param params - Optional filter and pagination parameters
|
|
1020
|
+
* @returns Paginated list of tasks matching the filters
|
|
1021
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1022
|
+
*
|
|
1023
|
+
* @example
|
|
1024
|
+
* ```typescript
|
|
1025
|
+
* // List all open high-priority bugs
|
|
1026
|
+
* const result = await tasks.list({
|
|
1027
|
+
* status: 'open',
|
|
1028
|
+
* type: 'bug',
|
|
1029
|
+
* priority: 'high',
|
|
1030
|
+
* sort: '-created_at',
|
|
1031
|
+
* limit: 20,
|
|
1032
|
+
* });
|
|
1033
|
+
* console.log(`Found ${result.total} bugs, showing ${result.tasks.length}`);
|
|
1034
|
+
* ```
|
|
1035
|
+
*/
|
|
1036
|
+
list(params?: ListTasksParams): Promise<ListTasksResult>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Partially update an existing task.
|
|
1039
|
+
*
|
|
1040
|
+
* @param id - The unique task identifier
|
|
1041
|
+
* @param params - Fields to update; only provided fields are changed
|
|
1042
|
+
* @returns The updated task
|
|
1043
|
+
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
1044
|
+
* @throws {@link TaskTitleRequiredError} if a title is provided but is empty
|
|
1045
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1046
|
+
*
|
|
1047
|
+
* @example
|
|
1048
|
+
* ```typescript
|
|
1049
|
+
* const updated = await tasks.update('task_abc123', {
|
|
1050
|
+
* status: 'in_progress',
|
|
1051
|
+
* priority: 'high',
|
|
1052
|
+
* assignee: { id: 'user_456', name: 'Bob' },
|
|
1053
|
+
* });
|
|
1054
|
+
* console.log('Updated status:', updated.status);
|
|
1055
|
+
* ```
|
|
1056
|
+
*/
|
|
1057
|
+
update(id: string, params: UpdateTaskParams): Promise<Task>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Close a task by setting its status to closed.
|
|
1060
|
+
*
|
|
1061
|
+
* @param id - The unique task identifier
|
|
1062
|
+
* @returns The closed task with updated `closed_date`
|
|
1063
|
+
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
1064
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1065
|
+
*
|
|
1066
|
+
* @example
|
|
1067
|
+
* ```typescript
|
|
1068
|
+
* const closed = await tasks.close('task_abc123');
|
|
1069
|
+
* console.log('Closed at:', closed.closed_date);
|
|
1070
|
+
* ```
|
|
1071
|
+
*/
|
|
1072
|
+
close(id: string): Promise<Task>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Get the changelog (audit trail) for a task, showing all field changes over time.
|
|
1075
|
+
*
|
|
1076
|
+
* @param id - The unique task identifier
|
|
1077
|
+
* @param params - Optional pagination parameters
|
|
1078
|
+
* @returns Paginated list of changelog entries ordered by most recent first
|
|
1079
|
+
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
1080
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1081
|
+
*
|
|
1082
|
+
* @example
|
|
1083
|
+
* ```typescript
|
|
1084
|
+
* const { changelog, total } = await tasks.changelog('task_abc123', {
|
|
1085
|
+
* limit: 10,
|
|
1086
|
+
* offset: 0,
|
|
1087
|
+
* });
|
|
1088
|
+
* for (const entry of changelog) {
|
|
1089
|
+
* console.log(`${entry.field}: ${entry.old_value} → ${entry.new_value}`);
|
|
1090
|
+
* }
|
|
1091
|
+
* ```
|
|
1092
|
+
*/
|
|
1093
|
+
changelog(id: string, params?: {
|
|
1094
|
+
limit?: number;
|
|
1095
|
+
offset?: number;
|
|
1096
|
+
}): Promise<TaskChangelogResult>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Soft-delete a task, marking it as deleted without permanent removal.
|
|
1099
|
+
*
|
|
1100
|
+
* @param id - The unique task identifier
|
|
1101
|
+
* @returns The soft-deleted task
|
|
1102
|
+
* @throws {@link TaskIdRequiredError} if the ID is empty or not a string
|
|
1103
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1104
|
+
*
|
|
1105
|
+
* @example
|
|
1106
|
+
* ```typescript
|
|
1107
|
+
* const deleted = await tasks.softDelete('task_abc123');
|
|
1108
|
+
* console.log('Soft-deleted task:', deleted.id);
|
|
1109
|
+
* ```
|
|
1110
|
+
*/
|
|
1111
|
+
softDelete(id: string): Promise<Task>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Batch soft-delete tasks matching the given filters.
|
|
1114
|
+
* At least one filter must be provided. The server caps the limit at 200.
|
|
1115
|
+
*
|
|
1116
|
+
* @param params - Filters to select which tasks to delete
|
|
1117
|
+
* @returns The list of deleted tasks and count
|
|
1118
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1119
|
+
*
|
|
1120
|
+
* @example
|
|
1121
|
+
* ```typescript
|
|
1122
|
+
* const result = await tasks.batchDelete({ status: 'closed', older_than: '7d', limit: 50 });
|
|
1123
|
+
* console.log(`Deleted ${result.count} tasks`);
|
|
1124
|
+
* ```
|
|
1125
|
+
*/
|
|
1126
|
+
batchDelete(params: BatchDeleteTasksParams): Promise<BatchDeleteTasksResult>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Create a comment on a task.
|
|
1129
|
+
*
|
|
1130
|
+
* @param taskId - The ID of the task to comment on
|
|
1131
|
+
* @param body - The comment text content (must be non-empty)
|
|
1132
|
+
* @param userId - The ID of the user authoring the comment
|
|
1133
|
+
* @param author - Optional entity reference with the author's display name
|
|
1134
|
+
* @returns The newly created comment
|
|
1135
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1136
|
+
* @throws {@link CommentBodyRequiredError} if the body is empty or not a string
|
|
1137
|
+
* @throws {@link UserIdRequiredError} if the user ID is empty or not a string
|
|
1138
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1139
|
+
*
|
|
1140
|
+
* @example
|
|
1141
|
+
* ```typescript
|
|
1142
|
+
* const comment = await tasks.createComment(
|
|
1143
|
+
* 'task_abc123',
|
|
1144
|
+
* 'This is ready for review.',
|
|
1145
|
+
* 'user_456',
|
|
1146
|
+
* { id: 'user_456', name: 'Bob' },
|
|
1147
|
+
* );
|
|
1148
|
+
* console.log('Comment created:', comment.id);
|
|
1149
|
+
* ```
|
|
1150
|
+
*/
|
|
1151
|
+
createComment(taskId: string, body: string, userId: string, author?: EntityRef): Promise<Comment>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Get a comment by its ID.
|
|
1154
|
+
*
|
|
1155
|
+
* @param commentId - The unique comment identifier
|
|
1156
|
+
* @returns The comment
|
|
1157
|
+
* @throws {@link CommentIdRequiredError} if the comment ID is empty or not a string
|
|
1158
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1159
|
+
*
|
|
1160
|
+
* @example
|
|
1161
|
+
* ```typescript
|
|
1162
|
+
* const comment = await tasks.getComment('comment_xyz789');
|
|
1163
|
+
* console.log(`${comment.author?.name}: ${comment.body}`);
|
|
1164
|
+
* ```
|
|
1165
|
+
*/
|
|
1166
|
+
getComment(commentId: string): Promise<Comment>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Update a comment's body text.
|
|
1169
|
+
*
|
|
1170
|
+
* @param commentId - The unique comment identifier
|
|
1171
|
+
* @param body - The new comment text (must be non-empty)
|
|
1172
|
+
* @returns The updated comment
|
|
1173
|
+
* @throws {@link CommentIdRequiredError} if the comment ID is empty or not a string
|
|
1174
|
+
* @throws {@link CommentBodyRequiredError} if the body is empty or not a string
|
|
1175
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1176
|
+
*
|
|
1177
|
+
* @example
|
|
1178
|
+
* ```typescript
|
|
1179
|
+
* const updated = await tasks.updateComment(
|
|
1180
|
+
* 'comment_xyz789',
|
|
1181
|
+
* 'Updated: This is now ready for final review.',
|
|
1182
|
+
* );
|
|
1183
|
+
* console.log('Updated at:', updated.updated_at);
|
|
1184
|
+
* ```
|
|
1185
|
+
*/
|
|
1186
|
+
updateComment(commentId: string, body: string): Promise<Comment>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Delete a comment permanently.
|
|
1189
|
+
*
|
|
1190
|
+
* @param commentId - The unique comment identifier
|
|
1191
|
+
* @throws {@link CommentIdRequiredError} if the comment ID is empty or not a string
|
|
1192
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1193
|
+
*
|
|
1194
|
+
* @example
|
|
1195
|
+
* ```typescript
|
|
1196
|
+
* await tasks.deleteComment('comment_xyz789');
|
|
1197
|
+
* console.log('Comment deleted');
|
|
1198
|
+
* ```
|
|
1199
|
+
*/
|
|
1200
|
+
deleteComment(commentId: string): Promise<void>;
|
|
1201
|
+
/**
|
|
1202
|
+
* List comments on a task with optional pagination.
|
|
1203
|
+
*
|
|
1204
|
+
* @param taskId - The ID of the task whose comments to list
|
|
1205
|
+
* @param params - Optional pagination parameters
|
|
1206
|
+
* @returns Paginated list of comments
|
|
1207
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1208
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1209
|
+
*
|
|
1210
|
+
* @example
|
|
1211
|
+
* ```typescript
|
|
1212
|
+
* const { comments, total } = await tasks.listComments('task_abc123', {
|
|
1213
|
+
* limit: 25,
|
|
1214
|
+
* offset: 0,
|
|
1215
|
+
* });
|
|
1216
|
+
* for (const c of comments) {
|
|
1217
|
+
* console.log(`${c.author?.name}: ${c.body}`);
|
|
1218
|
+
* }
|
|
1219
|
+
* ```
|
|
1220
|
+
*/
|
|
1221
|
+
listComments(taskId: string, params?: {
|
|
1222
|
+
limit?: number;
|
|
1223
|
+
offset?: number;
|
|
1224
|
+
}): Promise<ListCommentsResult>;
|
|
1225
|
+
/**
|
|
1226
|
+
* Create a new tag for categorizing tasks.
|
|
1227
|
+
*
|
|
1228
|
+
* @param name - The tag display name (must be non-empty)
|
|
1229
|
+
* @param color - Optional hex color code (e.g., `'#ff0000'`)
|
|
1230
|
+
* @returns The newly created tag
|
|
1231
|
+
* @throws {@link TagNameRequiredError} if the name is empty or not a string
|
|
1232
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1233
|
+
*
|
|
1234
|
+
* @example
|
|
1235
|
+
* ```typescript
|
|
1236
|
+
* const tag = await tasks.createTag('urgent', '#ff0000');
|
|
1237
|
+
* console.log('Created tag:', tag.id, tag.name);
|
|
1238
|
+
* ```
|
|
1239
|
+
*/
|
|
1240
|
+
createTag(name: string, color?: string): Promise<Tag>;
|
|
1241
|
+
/**
|
|
1242
|
+
* Get a tag by its ID.
|
|
1243
|
+
*
|
|
1244
|
+
* @param tagId - The unique tag identifier
|
|
1245
|
+
* @returns The tag
|
|
1246
|
+
* @throws {@link TagIdRequiredError} if the tag ID is empty or not a string
|
|
1247
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1248
|
+
*
|
|
1249
|
+
* @example
|
|
1250
|
+
* ```typescript
|
|
1251
|
+
* const tag = await tasks.getTag('tag_def456');
|
|
1252
|
+
* console.log(`${tag.name} (${tag.color})`);
|
|
1253
|
+
* ```
|
|
1254
|
+
*/
|
|
1255
|
+
getTag(tagId: string): Promise<Tag>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Update a tag's name and optionally its color.
|
|
1258
|
+
*
|
|
1259
|
+
* @param tagId - The unique tag identifier
|
|
1260
|
+
* @param name - The new tag name (must be non-empty)
|
|
1261
|
+
* @param color - Optional new hex color code
|
|
1262
|
+
* @returns The updated tag
|
|
1263
|
+
* @throws {@link TagIdRequiredError} if the tag ID is empty or not a string
|
|
1264
|
+
* @throws {@link TagNameRequiredError} if the name is empty or not a string
|
|
1265
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1266
|
+
*
|
|
1267
|
+
* @example
|
|
1268
|
+
* ```typescript
|
|
1269
|
+
* const updated = await tasks.updateTag('tag_def456', 'critical', '#cc0000');
|
|
1270
|
+
* console.log('Updated:', updated.name);
|
|
1271
|
+
* ```
|
|
1272
|
+
*/
|
|
1273
|
+
updateTag(tagId: string, name: string, color?: string): Promise<Tag>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Delete a tag permanently.
|
|
1276
|
+
*
|
|
1277
|
+
* @param tagId - The unique tag identifier
|
|
1278
|
+
* @throws {@link TagIdRequiredError} if the tag ID is empty or not a string
|
|
1279
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1280
|
+
*
|
|
1281
|
+
* @example
|
|
1282
|
+
* ```typescript
|
|
1283
|
+
* await tasks.deleteTag('tag_def456');
|
|
1284
|
+
* console.log('Tag deleted');
|
|
1285
|
+
* ```
|
|
1286
|
+
*/
|
|
1287
|
+
deleteTag(tagId: string): Promise<void>;
|
|
1288
|
+
/**
|
|
1289
|
+
* List all tags in the organization.
|
|
1290
|
+
*
|
|
1291
|
+
* @returns List of all tags
|
|
1292
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1293
|
+
*
|
|
1294
|
+
* @example
|
|
1295
|
+
* ```typescript
|
|
1296
|
+
* const { tags } = await tasks.listTags();
|
|
1297
|
+
* for (const tag of tags) {
|
|
1298
|
+
* console.log(`${tag.name} (${tag.color ?? 'no color'})`);
|
|
1299
|
+
* }
|
|
1300
|
+
* ```
|
|
1301
|
+
*/
|
|
1302
|
+
listTags(): Promise<ListTagsResult>;
|
|
1303
|
+
/**
|
|
1304
|
+
* Associate a tag with a task.
|
|
1305
|
+
*
|
|
1306
|
+
* @param taskId - The ID of the task
|
|
1307
|
+
* @param tagId - The ID of the tag to add
|
|
1308
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1309
|
+
* @throws {@link TagIdRequiredError} if the tag ID is empty or not a string
|
|
1310
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1311
|
+
*
|
|
1312
|
+
* @example
|
|
1313
|
+
* ```typescript
|
|
1314
|
+
* await tasks.addTagToTask('task_abc123', 'tag_def456');
|
|
1315
|
+
* console.log('Tag added to task');
|
|
1316
|
+
* ```
|
|
1317
|
+
*/
|
|
1318
|
+
addTagToTask(taskId: string, tagId: string): Promise<void>;
|
|
1319
|
+
/**
|
|
1320
|
+
* Remove a tag association from a task.
|
|
1321
|
+
*
|
|
1322
|
+
* @param taskId - The ID of the task
|
|
1323
|
+
* @param tagId - The ID of the tag to remove
|
|
1324
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1325
|
+
* @throws {@link TagIdRequiredError} if the tag ID is empty or not a string
|
|
1326
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1327
|
+
*
|
|
1328
|
+
* @example
|
|
1329
|
+
* ```typescript
|
|
1330
|
+
* await tasks.removeTagFromTask('task_abc123', 'tag_def456');
|
|
1331
|
+
* console.log('Tag removed from task');
|
|
1332
|
+
* ```
|
|
1333
|
+
*/
|
|
1334
|
+
removeTagFromTask(taskId: string, tagId: string): Promise<void>;
|
|
1335
|
+
/**
|
|
1336
|
+
* List all tags associated with a specific task.
|
|
1337
|
+
*
|
|
1338
|
+
* @param taskId - The ID of the task
|
|
1339
|
+
* @returns Array of tags on the task
|
|
1340
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1341
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1342
|
+
*
|
|
1343
|
+
* @example
|
|
1344
|
+
* ```typescript
|
|
1345
|
+
* const tags = await tasks.listTagsForTask('task_abc123');
|
|
1346
|
+
* console.log('Tags:', tags.map((t) => t.name).join(', '));
|
|
1347
|
+
* ```
|
|
1348
|
+
*/
|
|
1349
|
+
listTagsForTask(taskId: string): Promise<Tag[]>;
|
|
1350
|
+
/**
|
|
1351
|
+
* Initiate a file upload to a task. Returns a presigned S3 URL for direct upload.
|
|
1352
|
+
*
|
|
1353
|
+
* @remarks
|
|
1354
|
+
* After receiving the presigned URL, upload the file content via HTTP PUT to that URL.
|
|
1355
|
+
* Then call {@link TaskStorageService.confirmAttachment | confirmAttachment} to finalize.
|
|
1356
|
+
*
|
|
1357
|
+
* @param taskId - The ID of the task to attach the file to
|
|
1358
|
+
* @param params - Attachment metadata including filename, content type, and size
|
|
1359
|
+
* @returns The created attachment record and a presigned upload URL
|
|
1360
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1361
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1362
|
+
*
|
|
1363
|
+
* @example
|
|
1364
|
+
* ```typescript
|
|
1365
|
+
* const { attachment, presigned_url } = await tasks.uploadAttachment(
|
|
1366
|
+
* 'task_abc123',
|
|
1367
|
+
* { filename: 'report.pdf', content_type: 'application/pdf', size: 102400 },
|
|
1368
|
+
* );
|
|
1369
|
+
*
|
|
1370
|
+
* // Upload the file to S3
|
|
1371
|
+
* await fetch(presigned_url, { method: 'PUT', body: fileContent });
|
|
1372
|
+
*
|
|
1373
|
+
* // Confirm the upload
|
|
1374
|
+
* await tasks.confirmAttachment(attachment.id);
|
|
1375
|
+
* ```
|
|
1376
|
+
*/
|
|
1377
|
+
uploadAttachment(taskId: string, params: CreateAttachmentParams): Promise<PresignUploadResponse>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Confirm that a file upload has completed successfully.
|
|
1380
|
+
*
|
|
1381
|
+
* @remarks
|
|
1382
|
+
* Call this after successfully uploading the file to the presigned URL
|
|
1383
|
+
* returned by {@link TaskStorageService.uploadAttachment | uploadAttachment}.
|
|
1384
|
+
*
|
|
1385
|
+
* @param attachmentId - The unique attachment identifier
|
|
1386
|
+
* @returns The confirmed attachment record
|
|
1387
|
+
* @throws {@link AttachmentIdRequiredError} if the attachment ID is empty or not a string
|
|
1388
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1389
|
+
*
|
|
1390
|
+
* @example
|
|
1391
|
+
* ```typescript
|
|
1392
|
+
* const confirmed = await tasks.confirmAttachment('att_ghi789');
|
|
1393
|
+
* console.log('Confirmed:', confirmed.filename);
|
|
1394
|
+
* ```
|
|
1395
|
+
*/
|
|
1396
|
+
confirmAttachment(attachmentId: string): Promise<Attachment>;
|
|
1397
|
+
/**
|
|
1398
|
+
* Get a presigned S3 URL for downloading an attachment.
|
|
1399
|
+
*
|
|
1400
|
+
* @param attachmentId - The unique attachment identifier
|
|
1401
|
+
* @returns A presigned download URL with expiry information
|
|
1402
|
+
* @throws {@link AttachmentIdRequiredError} if the attachment ID is empty or not a string
|
|
1403
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1404
|
+
*
|
|
1405
|
+
* @example
|
|
1406
|
+
* ```typescript
|
|
1407
|
+
* const { presigned_url, expiry_seconds } = await tasks.downloadAttachment('att_ghi789');
|
|
1408
|
+
* console.log(`Download URL (expires in ${expiry_seconds}s):`, presigned_url);
|
|
1409
|
+
* ```
|
|
1410
|
+
*/
|
|
1411
|
+
downloadAttachment(attachmentId: string): Promise<PresignDownloadResponse>;
|
|
1412
|
+
/**
|
|
1413
|
+
* List all attachments on a task.
|
|
1414
|
+
*
|
|
1415
|
+
* @param taskId - The ID of the task
|
|
1416
|
+
* @returns List of attachments with total count
|
|
1417
|
+
* @throws {@link TaskIdRequiredError} if the task ID is empty or not a string
|
|
1418
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1419
|
+
*
|
|
1420
|
+
* @example
|
|
1421
|
+
* ```typescript
|
|
1422
|
+
* const { attachments, total } = await tasks.listAttachments('task_abc123');
|
|
1423
|
+
* for (const att of attachments) {
|
|
1424
|
+
* console.log(`${att.filename} (${att.content_type}, ${att.size} bytes)`);
|
|
1425
|
+
* }
|
|
1426
|
+
* ```
|
|
1427
|
+
*/
|
|
1428
|
+
listAttachments(taskId: string): Promise<ListAttachmentsResult>;
|
|
1429
|
+
/**
|
|
1430
|
+
* Delete an attachment permanently.
|
|
1431
|
+
*
|
|
1432
|
+
* @param attachmentId - The unique attachment identifier
|
|
1433
|
+
* @throws {@link AttachmentIdRequiredError} if the attachment ID is empty or not a string
|
|
1434
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1435
|
+
*
|
|
1436
|
+
* @example
|
|
1437
|
+
* ```typescript
|
|
1438
|
+
* await tasks.deleteAttachment('att_ghi789');
|
|
1439
|
+
* console.log('Attachment deleted');
|
|
1440
|
+
* ```
|
|
1441
|
+
*/
|
|
1442
|
+
deleteAttachment(attachmentId: string): Promise<void>;
|
|
1443
|
+
/**
|
|
1444
|
+
* List all users who have been referenced in tasks (as creators, assignees, or closers).
|
|
1445
|
+
*
|
|
1446
|
+
* @returns List of user entity references
|
|
1447
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1448
|
+
*
|
|
1449
|
+
* @example
|
|
1450
|
+
* ```typescript
|
|
1451
|
+
* const { users } = await tasks.listUsers();
|
|
1452
|
+
* for (const user of users) {
|
|
1453
|
+
* console.log(`${user.name} (${user.id})`);
|
|
1454
|
+
* }
|
|
1455
|
+
* ```
|
|
1456
|
+
*/
|
|
1457
|
+
listUsers(): Promise<ListUsersResult>;
|
|
1458
|
+
/**
|
|
1459
|
+
* List all projects that have been referenced in tasks.
|
|
1460
|
+
*
|
|
1461
|
+
* @returns List of project entity references
|
|
1462
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1463
|
+
*
|
|
1464
|
+
* @example
|
|
1465
|
+
* ```typescript
|
|
1466
|
+
* const { projects } = await tasks.listProjects();
|
|
1467
|
+
* for (const project of projects) {
|
|
1468
|
+
* console.log(`${project.name} (${project.id})`);
|
|
1469
|
+
* }
|
|
1470
|
+
* ```
|
|
1471
|
+
*/
|
|
1472
|
+
listProjects(): Promise<ListProjectsResult>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Get task activity time-series data showing daily task counts by status.
|
|
1475
|
+
*
|
|
1476
|
+
* @param params - Optional parameters controlling the number of days to retrieve
|
|
1477
|
+
* @returns Time-series activity data with daily snapshots
|
|
1478
|
+
* @throws {@link ServiceException} if the API request fails
|
|
1479
|
+
*
|
|
1480
|
+
* @example
|
|
1481
|
+
* ```typescript
|
|
1482
|
+
* const { activity, days } = await tasks.getActivity({ days: 30 });
|
|
1483
|
+
* console.log(`Activity over ${days} days:`);
|
|
1484
|
+
* for (const point of activity) {
|
|
1485
|
+
* console.log(`${point.date}: ${point.open} open, ${point.inProgress} in progress`);
|
|
1486
|
+
* }
|
|
1487
|
+
* ```
|
|
1488
|
+
*/
|
|
1489
|
+
getActivity(params?: TaskActivityParams): Promise<TaskActivityResult>;
|
|
1490
|
+
}
|
|
1491
|
+
//# sourceMappingURL=service.d.ts.map
|