@archastro/sdk 0.9.0 → 0.10.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/types/chat.d.ts +81 -20
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +367 -364
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +20 -62
- package/dist/types/common.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/tasks.d.ts +347 -0
- package/dist/types/tasks.d.ts.map +1 -0
- package/dist/types/tasks.js +67 -0
- package/dist/types/tasks.js.map +1 -0
- package/dist/types/threads.d.ts +540 -3
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +45 -2
- package/dist/types/threads.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +2 -2
- package/dist/v1/resources/agents.js +3 -3
- package/dist/v1/resources/custom_objects.d.ts +55 -4
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +7 -4
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +37 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +31 -1
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +2 -0
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +2 -1
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +76 -0
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +58 -1
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +19 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +21 -1
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +1 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +1 -1
- package/dist/v1/resources/users.d.ts +1 -0
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Actor } from "./common.js";
|
|
3
|
+
/** A task representing a unit of work, optionally assignable to a user or agent. */
|
|
4
|
+
export interface Task {
|
|
5
|
+
/** ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user. */
|
|
6
|
+
agent?: string | undefined;
|
|
7
|
+
/** 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. */
|
|
8
|
+
blocked_by_count?: number | undefined;
|
|
9
|
+
/** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
|
|
10
|
+
closed_at?: string | undefined;
|
|
11
|
+
/** Total number of comments posted on this task. */
|
|
12
|
+
comments_count?: number | undefined;
|
|
13
|
+
/** When the task was created (ISO 8601). */
|
|
14
|
+
created_at?: string | undefined;
|
|
15
|
+
/** 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). */
|
|
16
|
+
created_by_actor?: Actor | undefined;
|
|
17
|
+
/** 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. */
|
|
18
|
+
created_by_agent?: string | undefined;
|
|
19
|
+
/** 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. */
|
|
20
|
+
created_by_user?: string | undefined;
|
|
21
|
+
/** Long-form description or notes for the task. `null` if no description has been provided. */
|
|
22
|
+
description?: string | undefined;
|
|
23
|
+
/** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
|
|
24
|
+
due_date?: string | undefined;
|
|
25
|
+
/** Task ID (`tsk_...`). */
|
|
26
|
+
id: string;
|
|
27
|
+
/** `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 list/show reads; create/update responses report `false` until the next read. */
|
|
28
|
+
is_blocked?: boolean | undefined;
|
|
29
|
+
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
30
|
+
links?: Record<string, unknown> | undefined;
|
|
31
|
+
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
32
|
+
metadata?: Record<string, unknown> | undefined;
|
|
33
|
+
/** Human-readable title of the task. */
|
|
34
|
+
name: string;
|
|
35
|
+
/** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
|
|
36
|
+
org?: string | undefined;
|
|
37
|
+
/** 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). */
|
|
38
|
+
owner_actor?: Actor | undefined;
|
|
39
|
+
/** 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. */
|
|
40
|
+
owner_agent?: string | undefined;
|
|
41
|
+
/** 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. */
|
|
42
|
+
owner_user?: string | undefined;
|
|
43
|
+
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
|
|
44
|
+
parent?: string | undefined;
|
|
45
|
+
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
46
|
+
priority?: number | undefined;
|
|
47
|
+
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
48
|
+
sandbox?: string | undefined;
|
|
49
|
+
/** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
|
|
50
|
+
status: string;
|
|
51
|
+
/** 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. */
|
|
52
|
+
subtasks_count?: number | undefined;
|
|
53
|
+
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
54
|
+
tags?: string[] | undefined;
|
|
55
|
+
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
56
|
+
team?: string | undefined;
|
|
57
|
+
/** 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. */
|
|
58
|
+
thread?: string | undefined;
|
|
59
|
+
/** When the task was last modified (ISO 8601). */
|
|
60
|
+
updated_at?: string | undefined;
|
|
61
|
+
/** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
|
|
62
|
+
user?: string | undefined;
|
|
63
|
+
}
|
|
64
|
+
/** Runtime validator for {@link Task}. */
|
|
65
|
+
export declare const taskSchema: z.ZodObject<{
|
|
66
|
+
/** ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user. */
|
|
67
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
68
|
+
/** 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. */
|
|
69
|
+
blocked_by_count: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
/** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
|
|
71
|
+
closed_at: z.ZodOptional<z.ZodString>;
|
|
72
|
+
/** Total number of comments posted on this task. */
|
|
73
|
+
comments_count: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
/** When the task was created (ISO 8601). */
|
|
75
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
76
|
+
/** 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). */
|
|
77
|
+
created_by_actor: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
79
|
+
id: z.ZodOptional<z.ZodString>;
|
|
80
|
+
name: z.ZodOptional<z.ZodString>;
|
|
81
|
+
profile_picture: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
file: z.ZodOptional<z.ZodString>;
|
|
83
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
media: z.ZodOptional<z.ZodString>;
|
|
85
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
86
|
+
refresh_url: z.ZodOptional<z.ZodString>;
|
|
87
|
+
url: z.ZodOptional<z.ZodString>;
|
|
88
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
mime_type?: string | undefined;
|
|
91
|
+
file?: string | undefined;
|
|
92
|
+
height?: number | undefined;
|
|
93
|
+
media?: string | undefined;
|
|
94
|
+
refresh_url?: string | undefined;
|
|
95
|
+
url?: string | undefined;
|
|
96
|
+
width?: number | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
mime_type?: string | undefined;
|
|
99
|
+
file?: string | undefined;
|
|
100
|
+
height?: number | undefined;
|
|
101
|
+
media?: string | undefined;
|
|
102
|
+
refresh_url?: string | undefined;
|
|
103
|
+
url?: string | undefined;
|
|
104
|
+
width?: number | undefined;
|
|
105
|
+
}>>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
alias?: string | undefined;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
id?: string | undefined;
|
|
110
|
+
profile_picture?: {
|
|
111
|
+
mime_type?: string | undefined;
|
|
112
|
+
file?: string | undefined;
|
|
113
|
+
height?: number | undefined;
|
|
114
|
+
media?: string | undefined;
|
|
115
|
+
refresh_url?: string | undefined;
|
|
116
|
+
url?: string | undefined;
|
|
117
|
+
width?: number | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
alias?: string | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
id?: string | undefined;
|
|
123
|
+
profile_picture?: {
|
|
124
|
+
mime_type?: string | undefined;
|
|
125
|
+
file?: string | undefined;
|
|
126
|
+
height?: number | undefined;
|
|
127
|
+
media?: string | undefined;
|
|
128
|
+
refresh_url?: string | undefined;
|
|
129
|
+
url?: string | undefined;
|
|
130
|
+
width?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
}>>;
|
|
133
|
+
/** 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. */
|
|
134
|
+
created_by_agent: z.ZodOptional<z.ZodString>;
|
|
135
|
+
/** 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. */
|
|
136
|
+
created_by_user: z.ZodOptional<z.ZodString>;
|
|
137
|
+
/** Long-form description or notes for the task. `null` if no description has been provided. */
|
|
138
|
+
description: z.ZodOptional<z.ZodString>;
|
|
139
|
+
/** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
|
|
140
|
+
due_date: z.ZodOptional<z.ZodString>;
|
|
141
|
+
/** Task ID (`tsk_...`). */
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
/** `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 list/show reads; create/update responses report `false` until the next read. */
|
|
144
|
+
is_blocked: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
146
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
+
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
148
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
149
|
+
/** Human-readable title of the task. */
|
|
150
|
+
name: z.ZodString;
|
|
151
|
+
/** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
|
|
152
|
+
org: z.ZodOptional<z.ZodString>;
|
|
153
|
+
/** 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). */
|
|
154
|
+
owner_actor: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
156
|
+
id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
name: z.ZodOptional<z.ZodString>;
|
|
158
|
+
profile_picture: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
file: z.ZodOptional<z.ZodString>;
|
|
160
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
media: z.ZodOptional<z.ZodString>;
|
|
162
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
163
|
+
refresh_url: z.ZodOptional<z.ZodString>;
|
|
164
|
+
url: z.ZodOptional<z.ZodString>;
|
|
165
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
mime_type?: string | undefined;
|
|
168
|
+
file?: string | undefined;
|
|
169
|
+
height?: number | undefined;
|
|
170
|
+
media?: string | undefined;
|
|
171
|
+
refresh_url?: string | undefined;
|
|
172
|
+
url?: string | undefined;
|
|
173
|
+
width?: number | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
mime_type?: string | undefined;
|
|
176
|
+
file?: string | undefined;
|
|
177
|
+
height?: number | undefined;
|
|
178
|
+
media?: string | undefined;
|
|
179
|
+
refresh_url?: string | undefined;
|
|
180
|
+
url?: string | undefined;
|
|
181
|
+
width?: number | undefined;
|
|
182
|
+
}>>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
alias?: string | undefined;
|
|
185
|
+
name?: string | undefined;
|
|
186
|
+
id?: string | undefined;
|
|
187
|
+
profile_picture?: {
|
|
188
|
+
mime_type?: string | undefined;
|
|
189
|
+
file?: string | undefined;
|
|
190
|
+
height?: number | undefined;
|
|
191
|
+
media?: string | undefined;
|
|
192
|
+
refresh_url?: string | undefined;
|
|
193
|
+
url?: string | undefined;
|
|
194
|
+
width?: number | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
alias?: string | undefined;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
id?: string | undefined;
|
|
200
|
+
profile_picture?: {
|
|
201
|
+
mime_type?: string | undefined;
|
|
202
|
+
file?: string | undefined;
|
|
203
|
+
height?: number | undefined;
|
|
204
|
+
media?: string | undefined;
|
|
205
|
+
refresh_url?: string | undefined;
|
|
206
|
+
url?: string | undefined;
|
|
207
|
+
width?: number | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
}>>;
|
|
210
|
+
/** 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. */
|
|
211
|
+
owner_agent: z.ZodOptional<z.ZodString>;
|
|
212
|
+
/** 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. */
|
|
213
|
+
owner_user: z.ZodOptional<z.ZodString>;
|
|
214
|
+
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
|
|
215
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
216
|
+
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
217
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
219
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
220
|
+
/** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
|
|
221
|
+
status: z.ZodString;
|
|
222
|
+
/** 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. */
|
|
223
|
+
subtasks_count: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
225
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
226
|
+
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
227
|
+
team: z.ZodOptional<z.ZodString>;
|
|
228
|
+
/** 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. */
|
|
229
|
+
thread: z.ZodOptional<z.ZodString>;
|
|
230
|
+
/** When the task was last modified (ISO 8601). */
|
|
231
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
232
|
+
/** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
|
|
233
|
+
user: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
name: string;
|
|
236
|
+
status: string;
|
|
237
|
+
id: string;
|
|
238
|
+
agent?: string | undefined;
|
|
239
|
+
thread?: string | undefined;
|
|
240
|
+
team?: string | undefined;
|
|
241
|
+
org?: string | undefined;
|
|
242
|
+
description?: string | undefined;
|
|
243
|
+
created_at?: string | undefined;
|
|
244
|
+
updated_at?: string | undefined;
|
|
245
|
+
user?: string | undefined;
|
|
246
|
+
sandbox?: string | undefined;
|
|
247
|
+
parent?: string | undefined;
|
|
248
|
+
metadata?: Record<string, unknown> | undefined;
|
|
249
|
+
tags?: string[] | undefined;
|
|
250
|
+
blocked_by_count?: number | undefined;
|
|
251
|
+
closed_at?: string | undefined;
|
|
252
|
+
comments_count?: number | undefined;
|
|
253
|
+
created_by_actor?: {
|
|
254
|
+
alias?: string | undefined;
|
|
255
|
+
name?: string | undefined;
|
|
256
|
+
id?: string | undefined;
|
|
257
|
+
profile_picture?: {
|
|
258
|
+
mime_type?: string | undefined;
|
|
259
|
+
file?: string | undefined;
|
|
260
|
+
height?: number | undefined;
|
|
261
|
+
media?: string | undefined;
|
|
262
|
+
refresh_url?: string | undefined;
|
|
263
|
+
url?: string | undefined;
|
|
264
|
+
width?: number | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
created_by_agent?: string | undefined;
|
|
268
|
+
created_by_user?: string | undefined;
|
|
269
|
+
due_date?: string | undefined;
|
|
270
|
+
is_blocked?: boolean | undefined;
|
|
271
|
+
links?: Record<string, unknown> | undefined;
|
|
272
|
+
owner_actor?: {
|
|
273
|
+
alias?: string | undefined;
|
|
274
|
+
name?: string | undefined;
|
|
275
|
+
id?: string | undefined;
|
|
276
|
+
profile_picture?: {
|
|
277
|
+
mime_type?: string | undefined;
|
|
278
|
+
file?: string | undefined;
|
|
279
|
+
height?: number | undefined;
|
|
280
|
+
media?: string | undefined;
|
|
281
|
+
refresh_url?: string | undefined;
|
|
282
|
+
url?: string | undefined;
|
|
283
|
+
width?: number | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
owner_agent?: string | undefined;
|
|
287
|
+
owner_user?: string | undefined;
|
|
288
|
+
priority?: number | undefined;
|
|
289
|
+
subtasks_count?: number | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
name: string;
|
|
292
|
+
status: string;
|
|
293
|
+
id: string;
|
|
294
|
+
agent?: string | undefined;
|
|
295
|
+
thread?: string | undefined;
|
|
296
|
+
team?: string | undefined;
|
|
297
|
+
org?: string | undefined;
|
|
298
|
+
description?: string | undefined;
|
|
299
|
+
created_at?: string | undefined;
|
|
300
|
+
updated_at?: string | undefined;
|
|
301
|
+
user?: string | undefined;
|
|
302
|
+
sandbox?: string | undefined;
|
|
303
|
+
parent?: string | undefined;
|
|
304
|
+
metadata?: Record<string, unknown> | undefined;
|
|
305
|
+
tags?: string[] | undefined;
|
|
306
|
+
blocked_by_count?: number | undefined;
|
|
307
|
+
closed_at?: string | undefined;
|
|
308
|
+
comments_count?: number | undefined;
|
|
309
|
+
created_by_actor?: {
|
|
310
|
+
alias?: string | undefined;
|
|
311
|
+
name?: string | undefined;
|
|
312
|
+
id?: string | undefined;
|
|
313
|
+
profile_picture?: {
|
|
314
|
+
mime_type?: string | undefined;
|
|
315
|
+
file?: string | undefined;
|
|
316
|
+
height?: number | undefined;
|
|
317
|
+
media?: string | undefined;
|
|
318
|
+
refresh_url?: string | undefined;
|
|
319
|
+
url?: string | undefined;
|
|
320
|
+
width?: number | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
} | undefined;
|
|
323
|
+
created_by_agent?: string | undefined;
|
|
324
|
+
created_by_user?: string | undefined;
|
|
325
|
+
due_date?: string | undefined;
|
|
326
|
+
is_blocked?: boolean | undefined;
|
|
327
|
+
links?: Record<string, unknown> | undefined;
|
|
328
|
+
owner_actor?: {
|
|
329
|
+
alias?: string | undefined;
|
|
330
|
+
name?: string | undefined;
|
|
331
|
+
id?: string | undefined;
|
|
332
|
+
profile_picture?: {
|
|
333
|
+
mime_type?: string | undefined;
|
|
334
|
+
file?: string | undefined;
|
|
335
|
+
height?: number | undefined;
|
|
336
|
+
media?: string | undefined;
|
|
337
|
+
refresh_url?: string | undefined;
|
|
338
|
+
url?: string | undefined;
|
|
339
|
+
width?: number | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
owner_agent?: string | undefined;
|
|
343
|
+
owner_user?: string | undefined;
|
|
344
|
+
priority?: number | undefined;
|
|
345
|
+
subtasks_count?: number | undefined;
|
|
346
|
+
}>;
|
|
347
|
+
//# sourceMappingURL=tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/types/tasks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,oFAAoF;AACpF,MAAM,WAAW,IAAI;IACnB,uGAAuG;IACvG,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,mMAAm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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEsB,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 464e8cfe5ee1
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { actorSchema } from "./common.js";
|
|
6
|
+
/** Runtime validator for {@link Task}. */
|
|
7
|
+
export const taskSchema = z.object({
|
|
8
|
+
/** ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user. */
|
|
9
|
+
agent: z.string().optional().describe("ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user."),
|
|
10
|
+
/** 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. */
|
|
11
|
+
blocked_by_count: z.number().int().optional().describe("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."),
|
|
12
|
+
/** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
|
|
13
|
+
closed_at: z.string().optional().describe("When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open."),
|
|
14
|
+
/** Total number of comments posted on this task. */
|
|
15
|
+
comments_count: z.number().int().optional().describe("Total number of comments posted on this task."),
|
|
16
|
+
/** When the task was created (ISO 8601). */
|
|
17
|
+
created_at: z.string().optional().describe("When the task was created (ISO 8601)."),
|
|
18
|
+
/** 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). */
|
|
19
|
+
created_by_actor: actorSchema.optional().describe("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)."),
|
|
20
|
+
/** 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. */
|
|
21
|
+
created_by_agent: z.string().optional().describe("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."),
|
|
22
|
+
/** 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. */
|
|
23
|
+
created_by_user: z.string().optional().describe("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."),
|
|
24
|
+
/** Long-form description or notes for the task. `null` if no description has been provided. */
|
|
25
|
+
description: z.string().optional().describe("Long-form description or notes for the task. `null` if no description has been provided."),
|
|
26
|
+
/** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
|
|
27
|
+
due_date: z.string().optional().describe("Date and time by which the task should be completed (ISO 8601). `null` if no due date is set."),
|
|
28
|
+
/** Task ID (`tsk_...`). */
|
|
29
|
+
id: z.string().describe("Task ID (`tsk_...`)."),
|
|
30
|
+
/** `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 list/show reads; create/update responses report `false` until the next read. */
|
|
31
|
+
is_blocked: z.boolean().optional().describe("`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 list/show reads; create/update responses report `false` until the next read."),
|
|
32
|
+
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
33
|
+
links: z.record(z.unknown()).optional().describe("Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set."),
|
|
34
|
+
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
35
|
+
metadata: z.record(z.unknown()).optional().describe("Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set."),
|
|
36
|
+
/** Human-readable title of the task. */
|
|
37
|
+
name: z.string().describe("Human-readable title of the task."),
|
|
38
|
+
/** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
|
|
39
|
+
org: z.string().optional().describe("ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context."),
|
|
40
|
+
/** 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). */
|
|
41
|
+
owner_actor: actorSchema.optional().describe("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)."),
|
|
42
|
+
/** 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. */
|
|
43
|
+
owner_agent: z.string().optional().describe("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."),
|
|
44
|
+
/** 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. */
|
|
45
|
+
owner_user: z.string().optional().describe("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."),
|
|
46
|
+
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
|
|
47
|
+
parent: z.string().optional().describe("ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level."),
|
|
48
|
+
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
49
|
+
priority: z.number().int().optional().describe("Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set."),
|
|
50
|
+
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
51
|
+
sandbox: z.string().optional().describe("ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment."),
|
|
52
|
+
/** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
|
|
53
|
+
status: z.string().describe("Current status of the task. One of `\"open\"`, `\"in_progress\"`, or `\"done\"`."),
|
|
54
|
+
/** 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. */
|
|
55
|
+
subtasks_count: z.number().int().optional().describe("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."),
|
|
56
|
+
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
57
|
+
tags: z.array(z.string()).optional().describe("Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged."),
|
|
58
|
+
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
59
|
+
team: z.string().optional().describe("ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team."),
|
|
60
|
+
/** 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. */
|
|
61
|
+
thread: z.string().optional().describe("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."),
|
|
62
|
+
/** When the task was last modified (ISO 8601). */
|
|
63
|
+
updated_at: z.string().optional().describe("When the task was last modified (ISO 8601)."),
|
|
64
|
+
/** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
|
|
65
|
+
user: z.string().optional().describe("ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team."),
|
|
66
|
+
}).describe("A task representing a unit of work, optionally assignable to a user or agent.");
|
|
67
|
+
//# sourceMappingURL=tasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/types/tasks.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAiE1C,0CAA0C;AA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