@archastro/sdk 0.20.0 → 0.21.0
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/channels/api_artifact_channel.d.ts +48 -0
- package/dist/channels/api_artifact_channel.d.ts.map +1 -0
- package/dist/channels/api_artifact_channel.js +85 -0
- package/dist/channels/api_artifact_channel.js.map +1 -0
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +124 -10
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +27 -7
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +351 -0
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +65 -1
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +22 -22
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +7 -7
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +388 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +1132 -287
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +146 -28
- package/dist/types/common.js.map +1 -1
- package/dist/types/computers.d.ts +22 -0
- package/dist/types/computers.d.ts.map +1 -0
- package/dist/types/computers.js +12 -0
- package/dist/types/computers.js.map +1 -0
- package/dist/types/events.d.ts +34 -16
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/events.js +3 -1
- package/dist/types/events.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/relays.d.ts +22 -0
- package/dist/types/relays.d.ts.map +1 -0
- package/dist/types/relays.js +12 -0
- package/dist/types/relays.js.map +1 -0
- package/dist/types/tasks.d.ts +598 -14
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +43 -11
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/threads.d.ts +64 -0
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.d.ts +33 -1
- package/dist/v1/resources/agent_computers.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.js +17 -1
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_requests.d.ts +54 -0
- package/dist/v1/resources/agent_requests.d.ts.map +1 -0
- package/dist/v1/resources/agent_requests.js +71 -0
- package/dist/v1/resources/agent_requests.js.map +1 -0
- package/dist/v1/resources/agent_sessions.d.ts +23 -1
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +26 -1
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +31 -1
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +12 -2
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +55 -4
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +44 -4
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +34 -2
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +3 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/custom_objects.d.ts +94 -0
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +60 -1
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/event_subscriptions.d.ts +12 -0
- package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
- package/dist/v1/resources/event_subscriptions.js +7 -1
- package/dist/v1/resources/event_subscriptions.js.map +1 -1
- package/dist/v1/resources/files.d.ts +32 -10
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +32 -11
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +3 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +4 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/knowledge_sources.d.ts +4 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +1 -1
- package/dist/v1/resources/kv.d.ts +75 -31
- package/dist/v1/resources/kv.d.ts.map +1 -1
- package/dist/v1/resources/kv.js +79 -32
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notifications.d.ts +14 -0
- package/dist/v1/resources/notifications.d.ts.map +1 -1
- package/dist/v1/resources/notifications.js +13 -1
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +2 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -1
- package/dist/v1/resources/oauth.js +2 -1
- package/dist/v1/resources/oauth.js.map +1 -1
- package/dist/v1/resources/orgs.d.ts +630 -1
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +351 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
- package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
- package/dist/v1/resources/private_service_enrollments.js +10 -1
- package/dist/v1/resources/private_service_enrollments.js.map +1 -1
- package/dist/v1/resources/relays.d.ts +38 -0
- package/dist/v1/resources/relays.d.ts.map +1 -0
- package/dist/v1/resources/relays.js +44 -0
- package/dist/v1/resources/relays.js.map +1 -0
- package/dist/v1/resources/scripts.d.ts +20 -9
- package/dist/v1/resources/scripts.d.ts.map +1 -1
- package/dist/v1/resources/scripts.js +18 -10
- package/dist/v1/resources/scripts.js.map +1 -1
- package/dist/v1/resources/task_ownership_conversions.d.ts +14 -0
- package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
- package/dist/v1/resources/task_ownership_conversions.js +19 -0
- package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +62 -1
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +35 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +129 -1
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +71 -1
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +76 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +42 -1
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +129 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +73 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/workflows.d.ts +5 -1
- package/dist/v1/resources/workflows.d.ts.map +1 -1
- package/dist/v1/resources/workflows.js +6 -2
- package/dist/v1/resources/workflows.js.map +1 -1
- package/dist/v1.d.ts +6 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +10 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
package/dist/types/tasks.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface Task {
|
|
|
32
32
|
agent?: string | null | undefined;
|
|
33
33
|
/** Event-stream version for optimistic update fencing. Pass this value as `expected_version` on an update to reject concurrent writes. */
|
|
34
34
|
aggregate_version?: number | null | undefined;
|
|
35
|
-
/** Number of tasks marked as blocking this task, whether or not they are done (see `GET /tasks/{task}/blockers`). Computed on list/show reads; create/update responses may lag one read behind. */
|
|
35
|
+
/** Number of readable tasks marked as blocking this task, whether or not they are done (see `GET /tasks/{task}/blockers`). Computed on list/show reads; create/update responses may lag one read behind. */
|
|
36
36
|
blocked_by_count?: number | undefined;
|
|
37
37
|
/** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
|
|
38
38
|
closed_at?: string | null | undefined;
|
|
@@ -56,8 +56,10 @@ export interface Task {
|
|
|
56
56
|
epic?: string | null | undefined;
|
|
57
57
|
/** Task ID (`tsk_...`). */
|
|
58
58
|
id: string;
|
|
59
|
-
/** `true` while at least one blocking task is not yet done. Informational only
|
|
59
|
+
/** `true` while at least one blocking task is not yet done. Informational only - a blocked task can still change status - and derived at read time, so the task un-blocks automatically when its last open blocker completes. Computed on reads, including mutation responses. */
|
|
60
60
|
is_blocked?: boolean | undefined;
|
|
61
|
+
/** True exactly when status is in_progress and the task has no lease or its lease expiry is in the past. Derived at read time from status and lease expiry, including on unannotated reads. */
|
|
62
|
+
is_stalled?: boolean | undefined;
|
|
61
63
|
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
62
64
|
links?: Record<string, unknown> | undefined;
|
|
63
65
|
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
@@ -72,10 +74,12 @@ export interface Task {
|
|
|
72
74
|
owner_agent?: string | null | undefined;
|
|
73
75
|
/** ID of the user assigned as owner (`usr_...`). `null` if the owner is an agent, the task is unassigned, or the assigned agent was deleted. */
|
|
74
76
|
owner_user?: string | null | undefined;
|
|
75
|
-
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
|
|
77
|
+
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks or when the parent is not readable. Subtasks nest exactly one level. */
|
|
76
78
|
parent?: string | null | undefined;
|
|
77
79
|
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
78
80
|
priority?: number | undefined;
|
|
81
|
+
/** Optional project ID (`prj_...`). Membership does not change task visibility. */
|
|
82
|
+
project_id?: string | null | undefined;
|
|
79
83
|
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
80
84
|
sandbox?: string | null | undefined;
|
|
81
85
|
/** Source object identity (for example `ArchAstro/firstlanding`). `null` when the task has no source. */
|
|
@@ -84,15 +88,21 @@ export interface Task {
|
|
|
84
88
|
source_scope?: string | null | undefined;
|
|
85
89
|
/** Kind of source object (for example `repository`). `null` when the task has no source. */
|
|
86
90
|
source_type?: string | null | undefined;
|
|
91
|
+
/** Lease expiry for a stalled task, or its last update when no lease expiry exists. Null when not stalled. */
|
|
92
|
+
stalled_since?: string | null | undefined;
|
|
87
93
|
/** Current status of the task. One of `"open"`, `"in_progress"`, `"in_review"`, `"paused"`, `"failed"`, `"superseding"`, `"done"`, or `"cancelled"`. */
|
|
88
94
|
status: string;
|
|
89
|
-
/** Number of subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks. */
|
|
95
|
+
/** Number of readable subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks. */
|
|
90
96
|
subtasks_count?: number | undefined;
|
|
91
97
|
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
92
98
|
tags?: string[] | undefined;
|
|
99
|
+
/** Binary that must run this work (for example `my-cli`). A worker should take the task only when its own `target_binary` build is at least `target_version`. `null` when the task has no target. Set together with `target_version`. */
|
|
100
|
+
target_binary?: string | null | undefined;
|
|
101
|
+
/** Minimum semantic version of `target_binary` that can run this work (for example `0.48.9`), in canonical `MAJOR.MINOR.PATCH[-prerelease][+build]` form. `null` when the task has no target. */
|
|
102
|
+
target_version?: string | null | undefined;
|
|
93
103
|
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
94
104
|
team?: string | null | undefined;
|
|
95
|
-
/** ID of the thread this task is bound to (`thr_...`)
|
|
105
|
+
/** ID of the thread this task is bound to (`thr_...`) - the conversation it was filed from, or the thread passed at creation. `null` for tasks not tied to a thread. */
|
|
96
106
|
thread?: string | null | undefined;
|
|
97
107
|
/** When the task was last modified (ISO 8601). */
|
|
98
108
|
updated_at?: string | undefined;
|
|
@@ -105,7 +115,7 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
105
115
|
agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
116
|
/** Event-stream version for optimistic update fencing. Pass this value as `expected_version` on an update to reject concurrent writes. */
|
|
107
117
|
aggregate_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
108
|
-
/** Number of tasks marked as blocking this task, whether or not they are done (see `GET /tasks/{task}/blockers`). Computed on list/show reads; create/update responses may lag one read behind. */
|
|
118
|
+
/** Number of readable tasks marked as blocking this task, whether or not they are done (see `GET /tasks/{task}/blockers`). Computed on list/show reads; create/update responses may lag one read behind. */
|
|
109
119
|
blocked_by_count: z.ZodOptional<z.ZodNumber>;
|
|
110
120
|
/** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
|
|
111
121
|
closed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -199,8 +209,10 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
199
209
|
epic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
210
|
/** Task ID (`tsk_...`). */
|
|
201
211
|
id: z.ZodString;
|
|
202
|
-
/** `true` while at least one blocking task is not yet done. Informational only
|
|
212
|
+
/** `true` while at least one blocking task is not yet done. Informational only - a blocked task can still change status - and derived at read time, so the task un-blocks automatically when its last open blocker completes. Computed on reads, including mutation responses. */
|
|
203
213
|
is_blocked: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
/** True exactly when status is in_progress and the task has no lease or its lease expiry is in the past. Derived at read time from status and lease expiry, including on unannotated reads. */
|
|
215
|
+
is_stalled: z.ZodOptional<z.ZodBoolean>;
|
|
204
216
|
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
205
217
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
206
218
|
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
@@ -270,10 +282,12 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
270
282
|
owner_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
283
|
/** ID of the user assigned as owner (`usr_...`). `null` if the owner is an agent, the task is unassigned, or the assigned agent was deleted. */
|
|
272
284
|
owner_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
|
|
285
|
+
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks or when the parent is not readable. Subtasks nest exactly one level. */
|
|
274
286
|
parent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
287
|
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
276
288
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
/** Optional project ID (`prj_...`). Membership does not change task visibility. */
|
|
290
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
291
|
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
278
292
|
sandbox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
293
|
/** Source object identity (for example `ArchAstro/firstlanding`). `null` when the task has no source. */
|
|
@@ -282,15 +296,21 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
282
296
|
source_scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
297
|
/** Kind of source object (for example `repository`). `null` when the task has no source. */
|
|
284
298
|
source_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
/** Lease expiry for a stalled task, or its last update when no lease expiry exists. Null when not stalled. */
|
|
300
|
+
stalled_since: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
301
|
/** Current status of the task. One of `"open"`, `"in_progress"`, `"in_review"`, `"paused"`, `"failed"`, `"superseding"`, `"done"`, or `"cancelled"`. */
|
|
286
302
|
status: z.ZodString;
|
|
287
|
-
/** Number of subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks. */
|
|
303
|
+
/** Number of readable subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks. */
|
|
288
304
|
subtasks_count: z.ZodOptional<z.ZodNumber>;
|
|
289
305
|
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
290
306
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
307
|
+
/** Binary that must run this work (for example `my-cli`). A worker should take the task only when its own `target_binary` build is at least `target_version`. `null` when the task has no target. Set together with `target_version`. */
|
|
308
|
+
target_binary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
/** Minimum semantic version of `target_binary` that can run this work (for example `0.48.9`), in canonical `MAJOR.MINOR.PATCH[-prerelease][+build]` form. `null` when the task has no target. */
|
|
310
|
+
target_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
311
|
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
292
312
|
team: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
|
-
/** ID of the thread this task is bound to (`thr_...`)
|
|
313
|
+
/** ID of the thread this task is bound to (`thr_...`) - the conversation it was filed from, or the thread passed at creation. `null` for tasks not tied to a thread. */
|
|
294
314
|
thread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
315
|
/** When the task was last modified (ISO 8601). */
|
|
296
316
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
@@ -340,6 +360,7 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
340
360
|
due_date?: string | null | undefined;
|
|
341
361
|
epic?: string | null | undefined;
|
|
342
362
|
is_blocked?: boolean | undefined;
|
|
363
|
+
is_stalled?: boolean | undefined;
|
|
343
364
|
links?: Record<string, {} | null> | undefined;
|
|
344
365
|
owner_actor?: {
|
|
345
366
|
name?: string | null | undefined;
|
|
@@ -358,10 +379,14 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
358
379
|
owner_agent?: string | null | undefined;
|
|
359
380
|
owner_user?: string | null | undefined;
|
|
360
381
|
priority?: number | undefined;
|
|
382
|
+
project_id?: string | null | undefined;
|
|
361
383
|
source_id?: string | null | undefined;
|
|
362
384
|
source_scope?: string | null | undefined;
|
|
363
385
|
source_type?: string | null | undefined;
|
|
386
|
+
stalled_since?: string | null | undefined;
|
|
364
387
|
subtasks_count?: number | undefined;
|
|
388
|
+
target_binary?: string | null | undefined;
|
|
389
|
+
target_version?: string | null | undefined;
|
|
365
390
|
}, {
|
|
366
391
|
name: string;
|
|
367
392
|
status: string;
|
|
@@ -406,6 +431,7 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
406
431
|
due_date?: string | null | undefined;
|
|
407
432
|
epic?: string | null | undefined;
|
|
408
433
|
is_blocked?: boolean | undefined;
|
|
434
|
+
is_stalled?: boolean | undefined;
|
|
409
435
|
links?: Record<string, {} | null> | undefined;
|
|
410
436
|
owner_actor?: {
|
|
411
437
|
name?: string | null | undefined;
|
|
@@ -424,10 +450,14 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
424
450
|
owner_agent?: string | null | undefined;
|
|
425
451
|
owner_user?: string | null | undefined;
|
|
426
452
|
priority?: number | undefined;
|
|
453
|
+
project_id?: string | null | undefined;
|
|
427
454
|
source_id?: string | null | undefined;
|
|
428
455
|
source_scope?: string | null | undefined;
|
|
429
456
|
source_type?: string | null | undefined;
|
|
457
|
+
stalled_since?: string | null | undefined;
|
|
430
458
|
subtasks_count?: number | undefined;
|
|
459
|
+
target_binary?: string | null | undefined;
|
|
460
|
+
target_version?: string | null | undefined;
|
|
431
461
|
}>;
|
|
432
462
|
/** A comment posted on a task by a user or an agent, including resolved author information. */
|
|
433
463
|
export interface TaskComment {
|
|
@@ -541,6 +571,7 @@ export declare const taskCommentSchema: z.ZodObject<{
|
|
|
541
571
|
created_at?: string | undefined;
|
|
542
572
|
updated_at?: string | undefined;
|
|
543
573
|
sandbox?: string | undefined;
|
|
574
|
+
task?: string | undefined;
|
|
544
575
|
author_actor?: {
|
|
545
576
|
name?: string | null | undefined;
|
|
546
577
|
alias?: string | null | undefined;
|
|
@@ -557,7 +588,6 @@ export declare const taskCommentSchema: z.ZodObject<{
|
|
|
557
588
|
} | undefined;
|
|
558
589
|
author_agent?: string | undefined;
|
|
559
590
|
author_user?: string | undefined;
|
|
560
|
-
task?: string | undefined;
|
|
561
591
|
}, {
|
|
562
592
|
body: string;
|
|
563
593
|
id: string;
|
|
@@ -566,6 +596,7 @@ export declare const taskCommentSchema: z.ZodObject<{
|
|
|
566
596
|
created_at?: string | undefined;
|
|
567
597
|
updated_at?: string | undefined;
|
|
568
598
|
sandbox?: string | undefined;
|
|
599
|
+
task?: string | undefined;
|
|
569
600
|
author_actor?: {
|
|
570
601
|
name?: string | null | undefined;
|
|
571
602
|
alias?: string | null | undefined;
|
|
@@ -582,7 +613,516 @@ export declare const taskCommentSchema: z.ZodObject<{
|
|
|
582
613
|
} | undefined;
|
|
583
614
|
author_agent?: string | undefined;
|
|
584
615
|
author_user?: string | undefined;
|
|
585
|
-
|
|
616
|
+
}>;
|
|
617
|
+
/** The current source task and whether this request created it. */
|
|
618
|
+
export interface TaskEnsureResult {
|
|
619
|
+
/** Whether this request created the task. */
|
|
620
|
+
created: boolean;
|
|
621
|
+
/** The current task. */
|
|
622
|
+
task: Task;
|
|
623
|
+
}
|
|
624
|
+
/** Runtime validator for {@link TaskEnsureResult}. */
|
|
625
|
+
export declare const taskEnsureResultSchema: z.ZodObject<{
|
|
626
|
+
/** Whether this request created the task. */
|
|
627
|
+
created: z.ZodBoolean;
|
|
628
|
+
/** The current task. */
|
|
629
|
+
task: z.ZodObject<{
|
|
630
|
+
/** ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user. */
|
|
631
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
632
|
+
/** Event-stream version for optimistic update fencing. Pass this value as `expected_version` on an update to reject concurrent writes. */
|
|
633
|
+
aggregate_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
634
|
+
/** Number of readable tasks marked as blocking this task, whether or not they are done (see `GET /tasks/{task}/blockers`). Computed on list/show reads; create/update responses may lag one read behind. */
|
|
635
|
+
blocked_by_count: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
/** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
|
|
637
|
+
closed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
/** Total number of comments posted on this task. */
|
|
639
|
+
comments_count: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
/** When the task was created (ISO 8601). */
|
|
641
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
642
|
+
/** Resolved creator details including `id`, `name`, `alias`, and `profile_picture`. `null` if no creator is set or the creator cannot be resolved (e.g. creating agent was deleted). */
|
|
643
|
+
created_by_actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
644
|
+
alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
|
+
profile_picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
648
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
649
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
650
|
+
media: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
651
|
+
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
|
+
refresh_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
656
|
+
mime_type?: string | null | undefined;
|
|
657
|
+
file?: string | null | undefined;
|
|
658
|
+
height?: number | null | undefined;
|
|
659
|
+
media?: string | null | undefined;
|
|
660
|
+
refresh_url?: string | null | undefined;
|
|
661
|
+
url?: string | null | undefined;
|
|
662
|
+
width?: number | null | undefined;
|
|
663
|
+
}, {
|
|
664
|
+
mime_type?: string | null | undefined;
|
|
665
|
+
file?: string | null | undefined;
|
|
666
|
+
height?: number | null | undefined;
|
|
667
|
+
media?: string | null | undefined;
|
|
668
|
+
refresh_url?: string | null | undefined;
|
|
669
|
+
url?: string | null | undefined;
|
|
670
|
+
width?: number | null | undefined;
|
|
671
|
+
}>>>;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
name?: string | null | undefined;
|
|
674
|
+
alias?: string | null | undefined;
|
|
675
|
+
id?: string | null | undefined;
|
|
676
|
+
profile_picture?: {
|
|
677
|
+
mime_type?: string | null | undefined;
|
|
678
|
+
file?: string | null | undefined;
|
|
679
|
+
height?: number | null | undefined;
|
|
680
|
+
media?: string | null | undefined;
|
|
681
|
+
refresh_url?: string | null | undefined;
|
|
682
|
+
url?: string | null | undefined;
|
|
683
|
+
width?: number | null | undefined;
|
|
684
|
+
} | null | undefined;
|
|
685
|
+
}, {
|
|
686
|
+
name?: string | null | undefined;
|
|
687
|
+
alias?: string | null | undefined;
|
|
688
|
+
id?: string | null | undefined;
|
|
689
|
+
profile_picture?: {
|
|
690
|
+
mime_type?: string | null | undefined;
|
|
691
|
+
file?: string | null | undefined;
|
|
692
|
+
height?: number | null | undefined;
|
|
693
|
+
media?: string | null | undefined;
|
|
694
|
+
refresh_url?: string | null | undefined;
|
|
695
|
+
url?: string | null | undefined;
|
|
696
|
+
width?: number | null | undefined;
|
|
697
|
+
} | null | undefined;
|
|
698
|
+
}>>>;
|
|
699
|
+
/** ID of the agent that created this task (`agi_...`). `null` if the task was created by a human user, or if the creating agent was later deleted. */
|
|
700
|
+
created_by_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
701
|
+
/** ID of the user who created this task (`usr_...`). `null` if the task was created by an agent, or if creator provenance was cleared after the creator was deleted. */
|
|
702
|
+
created_by_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
703
|
+
/** Viewer-safe live coding-session lease summary. `null` when the task is unleased or the projected lease has expired. Fencing identifiers are never included. */
|
|
704
|
+
current_lease: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
705
|
+
/** Server-calculated lease expiry in ISO 8601 format. */
|
|
706
|
+
expires_at: z.ZodString;
|
|
707
|
+
/** Bounded harness identifier for the coding session. */
|
|
708
|
+
harness: z.ZodString;
|
|
709
|
+
/** Display name supplied by the coding session that holds the lease. */
|
|
710
|
+
session_name: z.ZodString;
|
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
|
712
|
+
expires_at: string;
|
|
713
|
+
harness: string;
|
|
714
|
+
session_name: string;
|
|
715
|
+
}, {
|
|
716
|
+
expires_at: string;
|
|
717
|
+
harness: string;
|
|
718
|
+
session_name: string;
|
|
719
|
+
}>>>;
|
|
720
|
+
/** Long-form description or notes for the task. `null` if no description has been provided. */
|
|
721
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
722
|
+
/** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
|
|
723
|
+
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
724
|
+
/** Free-form grouping label. `null` when the task is not in an epic. */
|
|
725
|
+
epic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
726
|
+
/** Task ID (`tsk_...`). */
|
|
727
|
+
id: z.ZodString;
|
|
728
|
+
/** `true` while at least one blocking task is not yet done. Informational only - a blocked task can still change status - and derived at read time, so the task un-blocks automatically when its last open blocker completes. Computed on reads, including mutation responses. */
|
|
729
|
+
is_blocked: z.ZodOptional<z.ZodBoolean>;
|
|
730
|
+
/** True exactly when status is in_progress and the task has no lease or its lease expiry is in the past. Derived at read time from status and lease expiry, including on unannotated reads. */
|
|
731
|
+
is_stalled: z.ZodOptional<z.ZodBoolean>;
|
|
732
|
+
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
733
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
734
|
+
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
735
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
736
|
+
/** Human-readable title of the task. */
|
|
737
|
+
name: z.ZodString;
|
|
738
|
+
/** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
|
|
739
|
+
org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
740
|
+
/** Resolved owner details including `id`, `name`, `alias`, and `profile_picture`. `null` if the task is unassigned or the owner cannot be resolved (e.g. assigned agent was deleted). */
|
|
741
|
+
owner_actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
742
|
+
alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
745
|
+
profile_picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
746
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
748
|
+
media: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
749
|
+
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
750
|
+
refresh_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
752
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
753
|
+
}, "strip", z.ZodTypeAny, {
|
|
754
|
+
mime_type?: string | null | undefined;
|
|
755
|
+
file?: string | null | undefined;
|
|
756
|
+
height?: number | null | undefined;
|
|
757
|
+
media?: string | null | undefined;
|
|
758
|
+
refresh_url?: string | null | undefined;
|
|
759
|
+
url?: string | null | undefined;
|
|
760
|
+
width?: number | null | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
mime_type?: string | null | undefined;
|
|
763
|
+
file?: string | null | undefined;
|
|
764
|
+
height?: number | null | undefined;
|
|
765
|
+
media?: string | null | undefined;
|
|
766
|
+
refresh_url?: string | null | undefined;
|
|
767
|
+
url?: string | null | undefined;
|
|
768
|
+
width?: number | null | undefined;
|
|
769
|
+
}>>>;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
name?: string | null | undefined;
|
|
772
|
+
alias?: string | null | undefined;
|
|
773
|
+
id?: string | null | undefined;
|
|
774
|
+
profile_picture?: {
|
|
775
|
+
mime_type?: string | null | undefined;
|
|
776
|
+
file?: string | null | undefined;
|
|
777
|
+
height?: number | null | undefined;
|
|
778
|
+
media?: string | null | undefined;
|
|
779
|
+
refresh_url?: string | null | undefined;
|
|
780
|
+
url?: string | null | undefined;
|
|
781
|
+
width?: number | null | undefined;
|
|
782
|
+
} | null | undefined;
|
|
783
|
+
}, {
|
|
784
|
+
name?: string | null | undefined;
|
|
785
|
+
alias?: string | null | undefined;
|
|
786
|
+
id?: string | null | undefined;
|
|
787
|
+
profile_picture?: {
|
|
788
|
+
mime_type?: string | null | undefined;
|
|
789
|
+
file?: string | null | undefined;
|
|
790
|
+
height?: number | null | undefined;
|
|
791
|
+
media?: string | null | undefined;
|
|
792
|
+
refresh_url?: string | null | undefined;
|
|
793
|
+
url?: string | null | undefined;
|
|
794
|
+
width?: number | null | undefined;
|
|
795
|
+
} | null | undefined;
|
|
796
|
+
}>>>;
|
|
797
|
+
/** ID of the agent assigned as owner (`agi_...`). `null` if the owner is a human user, the task is unassigned, or the assigned agent was deleted. */
|
|
798
|
+
owner_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
799
|
+
/** ID of the user assigned as owner (`usr_...`). `null` if the owner is an agent, the task is unassigned, or the assigned agent was deleted. */
|
|
800
|
+
owner_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
+
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks or when the parent is not readable. Subtasks nest exactly one level. */
|
|
802
|
+
parent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
803
|
+
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
804
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
805
|
+
/** Optional project ID (`prj_...`). Membership does not change task visibility. */
|
|
806
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
|
+
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
808
|
+
sandbox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
|
+
/** Source object identity (for example `ArchAstro/firstlanding`). `null` when the task has no source. */
|
|
810
|
+
source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
|
+
/** Container of the work this task is about (for example `github.com`). `null` when the task has no source. Set together with `source_type` and `source_id`. */
|
|
812
|
+
source_scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
|
+
/** Kind of source object (for example `repository`). `null` when the task has no source. */
|
|
814
|
+
source_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
+
/** Lease expiry for a stalled task, or its last update when no lease expiry exists. Null when not stalled. */
|
|
816
|
+
stalled_since: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
|
+
/** Current status of the task. One of `"open"`, `"in_progress"`, `"in_review"`, `"paused"`, `"failed"`, `"superseding"`, `"done"`, or `"cancelled"`. */
|
|
818
|
+
status: z.ZodString;
|
|
819
|
+
/** Number of readable subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks. */
|
|
820
|
+
subtasks_count: z.ZodOptional<z.ZodNumber>;
|
|
821
|
+
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
822
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
823
|
+
/** Binary that must run this work (for example `my-cli`). A worker should take the task only when its own `target_binary` build is at least `target_version`. `null` when the task has no target. Set together with `target_version`. */
|
|
824
|
+
target_binary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
825
|
+
/** Minimum semantic version of `target_binary` that can run this work (for example `0.48.9`), in canonical `MAJOR.MINOR.PATCH[-prerelease][+build]` form. `null` when the task has no target. */
|
|
826
|
+
target_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
827
|
+
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
828
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
829
|
+
/** ID of the thread this task is bound to (`thr_...`) - the conversation it was filed from, or the thread passed at creation. `null` for tasks not tied to a thread. */
|
|
830
|
+
thread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
831
|
+
/** When the task was last modified (ISO 8601). */
|
|
832
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
833
|
+
/** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
|
|
834
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
|
+
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
name: string;
|
|
837
|
+
status: string;
|
|
838
|
+
id: string;
|
|
839
|
+
user?: string | null | undefined;
|
|
840
|
+
org?: string | null | undefined;
|
|
841
|
+
agent?: string | null | undefined;
|
|
842
|
+
thread?: string | null | undefined;
|
|
843
|
+
team?: string | null | undefined;
|
|
844
|
+
description?: string | null | undefined;
|
|
845
|
+
created_at?: string | undefined;
|
|
846
|
+
updated_at?: string | undefined;
|
|
847
|
+
sandbox?: string | null | undefined;
|
|
848
|
+
parent?: string | null | undefined;
|
|
849
|
+
created_by_user?: string | null | undefined;
|
|
850
|
+
metadata?: Record<string, {} | null> | undefined;
|
|
851
|
+
tags?: string[] | undefined;
|
|
852
|
+
aggregate_version?: number | null | undefined;
|
|
853
|
+
blocked_by_count?: number | undefined;
|
|
854
|
+
closed_at?: string | null | undefined;
|
|
855
|
+
comments_count?: number | undefined;
|
|
856
|
+
created_by_actor?: {
|
|
857
|
+
name?: string | null | undefined;
|
|
858
|
+
alias?: string | null | undefined;
|
|
859
|
+
id?: string | null | undefined;
|
|
860
|
+
profile_picture?: {
|
|
861
|
+
mime_type?: string | null | undefined;
|
|
862
|
+
file?: string | null | undefined;
|
|
863
|
+
height?: number | null | undefined;
|
|
864
|
+
media?: string | null | undefined;
|
|
865
|
+
refresh_url?: string | null | undefined;
|
|
866
|
+
url?: string | null | undefined;
|
|
867
|
+
width?: number | null | undefined;
|
|
868
|
+
} | null | undefined;
|
|
869
|
+
} | null | undefined;
|
|
870
|
+
created_by_agent?: string | null | undefined;
|
|
871
|
+
current_lease?: {
|
|
872
|
+
expires_at: string;
|
|
873
|
+
harness: string;
|
|
874
|
+
session_name: string;
|
|
875
|
+
} | null | undefined;
|
|
876
|
+
due_date?: string | null | undefined;
|
|
877
|
+
epic?: string | null | undefined;
|
|
878
|
+
is_blocked?: boolean | undefined;
|
|
879
|
+
is_stalled?: boolean | undefined;
|
|
880
|
+
links?: Record<string, {} | null> | undefined;
|
|
881
|
+
owner_actor?: {
|
|
882
|
+
name?: string | null | undefined;
|
|
883
|
+
alias?: string | null | undefined;
|
|
884
|
+
id?: string | null | undefined;
|
|
885
|
+
profile_picture?: {
|
|
886
|
+
mime_type?: string | null | undefined;
|
|
887
|
+
file?: string | null | undefined;
|
|
888
|
+
height?: number | null | undefined;
|
|
889
|
+
media?: string | null | undefined;
|
|
890
|
+
refresh_url?: string | null | undefined;
|
|
891
|
+
url?: string | null | undefined;
|
|
892
|
+
width?: number | null | undefined;
|
|
893
|
+
} | null | undefined;
|
|
894
|
+
} | null | undefined;
|
|
895
|
+
owner_agent?: string | null | undefined;
|
|
896
|
+
owner_user?: string | null | undefined;
|
|
897
|
+
priority?: number | undefined;
|
|
898
|
+
project_id?: string | null | undefined;
|
|
899
|
+
source_id?: string | null | undefined;
|
|
900
|
+
source_scope?: string | null | undefined;
|
|
901
|
+
source_type?: string | null | undefined;
|
|
902
|
+
stalled_since?: string | null | undefined;
|
|
903
|
+
subtasks_count?: number | undefined;
|
|
904
|
+
target_binary?: string | null | undefined;
|
|
905
|
+
target_version?: string | null | undefined;
|
|
906
|
+
}, {
|
|
907
|
+
name: string;
|
|
908
|
+
status: string;
|
|
909
|
+
id: string;
|
|
910
|
+
user?: string | null | undefined;
|
|
911
|
+
org?: string | null | undefined;
|
|
912
|
+
agent?: string | null | undefined;
|
|
913
|
+
thread?: string | null | undefined;
|
|
914
|
+
team?: string | null | undefined;
|
|
915
|
+
description?: string | null | undefined;
|
|
916
|
+
created_at?: string | undefined;
|
|
917
|
+
updated_at?: string | undefined;
|
|
918
|
+
sandbox?: string | null | undefined;
|
|
919
|
+
parent?: string | null | undefined;
|
|
920
|
+
created_by_user?: string | null | undefined;
|
|
921
|
+
metadata?: Record<string, {} | null> | undefined;
|
|
922
|
+
tags?: string[] | undefined;
|
|
923
|
+
aggregate_version?: number | null | undefined;
|
|
924
|
+
blocked_by_count?: number | undefined;
|
|
925
|
+
closed_at?: string | null | undefined;
|
|
926
|
+
comments_count?: number | undefined;
|
|
927
|
+
created_by_actor?: {
|
|
928
|
+
name?: string | null | undefined;
|
|
929
|
+
alias?: string | null | undefined;
|
|
930
|
+
id?: string | null | undefined;
|
|
931
|
+
profile_picture?: {
|
|
932
|
+
mime_type?: string | null | undefined;
|
|
933
|
+
file?: string | null | undefined;
|
|
934
|
+
height?: number | null | undefined;
|
|
935
|
+
media?: string | null | undefined;
|
|
936
|
+
refresh_url?: string | null | undefined;
|
|
937
|
+
url?: string | null | undefined;
|
|
938
|
+
width?: number | null | undefined;
|
|
939
|
+
} | null | undefined;
|
|
940
|
+
} | null | undefined;
|
|
941
|
+
created_by_agent?: string | null | undefined;
|
|
942
|
+
current_lease?: {
|
|
943
|
+
expires_at: string;
|
|
944
|
+
harness: string;
|
|
945
|
+
session_name: string;
|
|
946
|
+
} | null | undefined;
|
|
947
|
+
due_date?: string | null | undefined;
|
|
948
|
+
epic?: string | null | undefined;
|
|
949
|
+
is_blocked?: boolean | undefined;
|
|
950
|
+
is_stalled?: boolean | undefined;
|
|
951
|
+
links?: Record<string, {} | null> | undefined;
|
|
952
|
+
owner_actor?: {
|
|
953
|
+
name?: string | null | undefined;
|
|
954
|
+
alias?: string | null | undefined;
|
|
955
|
+
id?: string | null | undefined;
|
|
956
|
+
profile_picture?: {
|
|
957
|
+
mime_type?: string | null | undefined;
|
|
958
|
+
file?: string | null | undefined;
|
|
959
|
+
height?: number | null | undefined;
|
|
960
|
+
media?: string | null | undefined;
|
|
961
|
+
refresh_url?: string | null | undefined;
|
|
962
|
+
url?: string | null | undefined;
|
|
963
|
+
width?: number | null | undefined;
|
|
964
|
+
} | null | undefined;
|
|
965
|
+
} | null | undefined;
|
|
966
|
+
owner_agent?: string | null | undefined;
|
|
967
|
+
owner_user?: string | null | undefined;
|
|
968
|
+
priority?: number | undefined;
|
|
969
|
+
project_id?: string | null | undefined;
|
|
970
|
+
source_id?: string | null | undefined;
|
|
971
|
+
source_scope?: string | null | undefined;
|
|
972
|
+
source_type?: string | null | undefined;
|
|
973
|
+
stalled_since?: string | null | undefined;
|
|
974
|
+
subtasks_count?: number | undefined;
|
|
975
|
+
target_binary?: string | null | undefined;
|
|
976
|
+
target_version?: string | null | undefined;
|
|
977
|
+
}>;
|
|
978
|
+
}, "strip", z.ZodTypeAny, {
|
|
979
|
+
task: {
|
|
980
|
+
name: string;
|
|
981
|
+
status: string;
|
|
982
|
+
id: string;
|
|
983
|
+
user?: string | null | undefined;
|
|
984
|
+
org?: string | null | undefined;
|
|
985
|
+
agent?: string | null | undefined;
|
|
986
|
+
thread?: string | null | undefined;
|
|
987
|
+
team?: string | null | undefined;
|
|
988
|
+
description?: string | null | undefined;
|
|
989
|
+
created_at?: string | undefined;
|
|
990
|
+
updated_at?: string | undefined;
|
|
991
|
+
sandbox?: string | null | undefined;
|
|
992
|
+
parent?: string | null | undefined;
|
|
993
|
+
created_by_user?: string | null | undefined;
|
|
994
|
+
metadata?: Record<string, {} | null> | undefined;
|
|
995
|
+
tags?: string[] | undefined;
|
|
996
|
+
aggregate_version?: number | null | undefined;
|
|
997
|
+
blocked_by_count?: number | undefined;
|
|
998
|
+
closed_at?: string | null | undefined;
|
|
999
|
+
comments_count?: number | undefined;
|
|
1000
|
+
created_by_actor?: {
|
|
1001
|
+
name?: string | null | undefined;
|
|
1002
|
+
alias?: string | null | undefined;
|
|
1003
|
+
id?: string | null | undefined;
|
|
1004
|
+
profile_picture?: {
|
|
1005
|
+
mime_type?: string | null | undefined;
|
|
1006
|
+
file?: string | null | undefined;
|
|
1007
|
+
height?: number | null | undefined;
|
|
1008
|
+
media?: string | null | undefined;
|
|
1009
|
+
refresh_url?: string | null | undefined;
|
|
1010
|
+
url?: string | null | undefined;
|
|
1011
|
+
width?: number | null | undefined;
|
|
1012
|
+
} | null | undefined;
|
|
1013
|
+
} | null | undefined;
|
|
1014
|
+
created_by_agent?: string | null | undefined;
|
|
1015
|
+
current_lease?: {
|
|
1016
|
+
expires_at: string;
|
|
1017
|
+
harness: string;
|
|
1018
|
+
session_name: string;
|
|
1019
|
+
} | null | undefined;
|
|
1020
|
+
due_date?: string | null | undefined;
|
|
1021
|
+
epic?: string | null | undefined;
|
|
1022
|
+
is_blocked?: boolean | undefined;
|
|
1023
|
+
is_stalled?: boolean | undefined;
|
|
1024
|
+
links?: Record<string, {} | null> | undefined;
|
|
1025
|
+
owner_actor?: {
|
|
1026
|
+
name?: string | null | undefined;
|
|
1027
|
+
alias?: string | null | undefined;
|
|
1028
|
+
id?: string | null | undefined;
|
|
1029
|
+
profile_picture?: {
|
|
1030
|
+
mime_type?: string | null | undefined;
|
|
1031
|
+
file?: string | null | undefined;
|
|
1032
|
+
height?: number | null | undefined;
|
|
1033
|
+
media?: string | null | undefined;
|
|
1034
|
+
refresh_url?: string | null | undefined;
|
|
1035
|
+
url?: string | null | undefined;
|
|
1036
|
+
width?: number | null | undefined;
|
|
1037
|
+
} | null | undefined;
|
|
1038
|
+
} | null | undefined;
|
|
1039
|
+
owner_agent?: string | null | undefined;
|
|
1040
|
+
owner_user?: string | null | undefined;
|
|
1041
|
+
priority?: number | undefined;
|
|
1042
|
+
project_id?: string | null | undefined;
|
|
1043
|
+
source_id?: string | null | undefined;
|
|
1044
|
+
source_scope?: string | null | undefined;
|
|
1045
|
+
source_type?: string | null | undefined;
|
|
1046
|
+
stalled_since?: string | null | undefined;
|
|
1047
|
+
subtasks_count?: number | undefined;
|
|
1048
|
+
target_binary?: string | null | undefined;
|
|
1049
|
+
target_version?: string | null | undefined;
|
|
1050
|
+
};
|
|
1051
|
+
created: boolean;
|
|
1052
|
+
}, {
|
|
1053
|
+
task: {
|
|
1054
|
+
name: string;
|
|
1055
|
+
status: string;
|
|
1056
|
+
id: string;
|
|
1057
|
+
user?: string | null | undefined;
|
|
1058
|
+
org?: string | null | undefined;
|
|
1059
|
+
agent?: string | null | undefined;
|
|
1060
|
+
thread?: string | null | undefined;
|
|
1061
|
+
team?: string | null | undefined;
|
|
1062
|
+
description?: string | null | undefined;
|
|
1063
|
+
created_at?: string | undefined;
|
|
1064
|
+
updated_at?: string | undefined;
|
|
1065
|
+
sandbox?: string | null | undefined;
|
|
1066
|
+
parent?: string | null | undefined;
|
|
1067
|
+
created_by_user?: string | null | undefined;
|
|
1068
|
+
metadata?: Record<string, {} | null> | undefined;
|
|
1069
|
+
tags?: string[] | undefined;
|
|
1070
|
+
aggregate_version?: number | null | undefined;
|
|
1071
|
+
blocked_by_count?: number | undefined;
|
|
1072
|
+
closed_at?: string | null | undefined;
|
|
1073
|
+
comments_count?: number | undefined;
|
|
1074
|
+
created_by_actor?: {
|
|
1075
|
+
name?: string | null | undefined;
|
|
1076
|
+
alias?: string | null | undefined;
|
|
1077
|
+
id?: string | null | undefined;
|
|
1078
|
+
profile_picture?: {
|
|
1079
|
+
mime_type?: string | null | undefined;
|
|
1080
|
+
file?: string | null | undefined;
|
|
1081
|
+
height?: number | null | undefined;
|
|
1082
|
+
media?: string | null | undefined;
|
|
1083
|
+
refresh_url?: string | null | undefined;
|
|
1084
|
+
url?: string | null | undefined;
|
|
1085
|
+
width?: number | null | undefined;
|
|
1086
|
+
} | null | undefined;
|
|
1087
|
+
} | null | undefined;
|
|
1088
|
+
created_by_agent?: string | null | undefined;
|
|
1089
|
+
current_lease?: {
|
|
1090
|
+
expires_at: string;
|
|
1091
|
+
harness: string;
|
|
1092
|
+
session_name: string;
|
|
1093
|
+
} | null | undefined;
|
|
1094
|
+
due_date?: string | null | undefined;
|
|
1095
|
+
epic?: string | null | undefined;
|
|
1096
|
+
is_blocked?: boolean | undefined;
|
|
1097
|
+
is_stalled?: boolean | undefined;
|
|
1098
|
+
links?: Record<string, {} | null> | undefined;
|
|
1099
|
+
owner_actor?: {
|
|
1100
|
+
name?: string | null | undefined;
|
|
1101
|
+
alias?: string | null | undefined;
|
|
1102
|
+
id?: string | null | undefined;
|
|
1103
|
+
profile_picture?: {
|
|
1104
|
+
mime_type?: string | null | undefined;
|
|
1105
|
+
file?: string | null | undefined;
|
|
1106
|
+
height?: number | null | undefined;
|
|
1107
|
+
media?: string | null | undefined;
|
|
1108
|
+
refresh_url?: string | null | undefined;
|
|
1109
|
+
url?: string | null | undefined;
|
|
1110
|
+
width?: number | null | undefined;
|
|
1111
|
+
} | null | undefined;
|
|
1112
|
+
} | null | undefined;
|
|
1113
|
+
owner_agent?: string | null | undefined;
|
|
1114
|
+
owner_user?: string | null | undefined;
|
|
1115
|
+
priority?: number | undefined;
|
|
1116
|
+
project_id?: string | null | undefined;
|
|
1117
|
+
source_id?: string | null | undefined;
|
|
1118
|
+
source_scope?: string | null | undefined;
|
|
1119
|
+
source_type?: string | null | undefined;
|
|
1120
|
+
stalled_since?: string | null | undefined;
|
|
1121
|
+
subtasks_count?: number | undefined;
|
|
1122
|
+
target_binary?: string | null | undefined;
|
|
1123
|
+
target_version?: string | null | undefined;
|
|
1124
|
+
};
|
|
1125
|
+
created: boolean;
|
|
586
1126
|
}>;
|
|
587
1127
|
/** An indexed external object linked to a task. */
|
|
588
1128
|
export interface TaskExternalLink {
|
|
@@ -610,6 +1150,32 @@ export declare const taskExternalLinkSchema: z.ZodObject<{
|
|
|
610
1150
|
object_id: string;
|
|
611
1151
|
object_type: string;
|
|
612
1152
|
}>;
|
|
1153
|
+
/** The background job accepted for a task ownership conversion. */
|
|
1154
|
+
export interface TaskOwnershipJob {
|
|
1155
|
+
/** Background job ID. */
|
|
1156
|
+
job_id: number;
|
|
1157
|
+
/** Completed transfers are still reaching task read models. */
|
|
1158
|
+
projection_pending?: boolean | undefined;
|
|
1159
|
+
/** Current background job state. */
|
|
1160
|
+
status: string;
|
|
1161
|
+
}
|
|
1162
|
+
/** Runtime validator for {@link TaskOwnershipJob}. */
|
|
1163
|
+
export declare const taskOwnershipJobSchema: z.ZodObject<{
|
|
1164
|
+
/** Background job ID. */
|
|
1165
|
+
job_id: z.ZodNumber;
|
|
1166
|
+
/** Completed transfers are still reaching task read models. */
|
|
1167
|
+
projection_pending: z.ZodOptional<z.ZodBoolean>;
|
|
1168
|
+
/** Current background job state. */
|
|
1169
|
+
status: z.ZodString;
|
|
1170
|
+
}, "strip", z.ZodTypeAny, {
|
|
1171
|
+
status: string;
|
|
1172
|
+
job_id: number;
|
|
1173
|
+
projection_pending?: boolean | undefined;
|
|
1174
|
+
}, {
|
|
1175
|
+
status: string;
|
|
1176
|
+
job_id: number;
|
|
1177
|
+
projection_pending?: boolean | undefined;
|
|
1178
|
+
}>;
|
|
613
1179
|
/** A task-session lease returned only to its matching holder. */
|
|
614
1180
|
export interface TaskSessionLease {
|
|
615
1181
|
/** Server-calculated lease expiry in ISO 8601 format. */
|
|
@@ -618,12 +1184,18 @@ export interface TaskSessionLease {
|
|
|
618
1184
|
harness: string;
|
|
619
1185
|
/** Caller-generated fencing token required for renewal and release. */
|
|
620
1186
|
lease_id: string;
|
|
1187
|
+
/** Milliseconds of lease left when the response was built, clamped at zero. A renewal made while more than half the lease remains appends no event and leaves the expiry unchanged, so clients derive their deadline from this value. */
|
|
1188
|
+
lease_remaining_ms: number;
|
|
621
1189
|
/** Server timestamp for the most recent claim, reclaim, or renewal. */
|
|
622
1190
|
renewed_at: string;
|
|
623
1191
|
/** Opaque caller-generated coding-session identifier. */
|
|
624
1192
|
session_id: string;
|
|
625
1193
|
/** Display name supplied by the matching coding session. */
|
|
626
1194
|
session_name: string;
|
|
1195
|
+
/** Task aggregate version including the claim, reclaim, or renewal event. */
|
|
1196
|
+
task_aggregate_version: number;
|
|
1197
|
+
/** Native task status after the lease event. */
|
|
1198
|
+
task_status: string;
|
|
627
1199
|
}
|
|
628
1200
|
/** Runtime validator for {@link TaskSessionLease}. */
|
|
629
1201
|
export declare const taskSessionLeaseSchema: z.ZodObject<{
|
|
@@ -633,25 +1205,37 @@ export declare const taskSessionLeaseSchema: z.ZodObject<{
|
|
|
633
1205
|
harness: z.ZodString;
|
|
634
1206
|
/** Caller-generated fencing token required for renewal and release. */
|
|
635
1207
|
lease_id: z.ZodString;
|
|
1208
|
+
/** Milliseconds of lease left when the response was built, clamped at zero. A renewal made while more than half the lease remains appends no event and leaves the expiry unchanged, so clients derive their deadline from this value. */
|
|
1209
|
+
lease_remaining_ms: z.ZodNumber;
|
|
636
1210
|
/** Server timestamp for the most recent claim, reclaim, or renewal. */
|
|
637
1211
|
renewed_at: z.ZodString;
|
|
638
1212
|
/** Opaque caller-generated coding-session identifier. */
|
|
639
1213
|
session_id: z.ZodString;
|
|
640
1214
|
/** Display name supplied by the matching coding session. */
|
|
641
1215
|
session_name: z.ZodString;
|
|
1216
|
+
/** Task aggregate version including the claim, reclaim, or renewal event. */
|
|
1217
|
+
task_aggregate_version: z.ZodNumber;
|
|
1218
|
+
/** Native task status after the lease event. */
|
|
1219
|
+
task_status: z.ZodString;
|
|
642
1220
|
}, "strip", z.ZodTypeAny, {
|
|
643
|
-
expires_at: string;
|
|
644
1221
|
session_id: string;
|
|
1222
|
+
expires_at: string;
|
|
645
1223
|
harness: string;
|
|
646
1224
|
session_name: string;
|
|
647
1225
|
lease_id: string;
|
|
1226
|
+
lease_remaining_ms: number;
|
|
648
1227
|
renewed_at: string;
|
|
1228
|
+
task_aggregate_version: number;
|
|
1229
|
+
task_status: string;
|
|
649
1230
|
}, {
|
|
650
|
-
expires_at: string;
|
|
651
1231
|
session_id: string;
|
|
1232
|
+
expires_at: string;
|
|
652
1233
|
harness: string;
|
|
653
1234
|
session_name: string;
|
|
654
1235
|
lease_id: string;
|
|
1236
|
+
lease_remaining_ms: number;
|
|
655
1237
|
renewed_at: string;
|
|
1238
|
+
task_aggregate_version: number;
|
|
1239
|
+
task_status: string;
|
|
656
1240
|
}>;
|
|
657
1241
|
//# sourceMappingURL=tasks.d.ts.map
|