@archastro/sdk 0.9.0 → 0.11.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.
Files changed (102) hide show
  1. package/dist/client.d.ts +14 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +15 -1
  4. package/dist/client.js.map +1 -1
  5. package/dist/types/ai.d.ts +2 -2
  6. package/dist/types/chat.d.ts +111 -50
  7. package/dist/types/chat.d.ts.map +1 -1
  8. package/dist/types/common.d.ts +1096 -468
  9. package/dist/types/common.d.ts.map +1 -1
  10. package/dist/types/common.js +155 -62
  11. package/dist/types/common.js.map +1 -1
  12. package/dist/types/extractions.d.ts +36 -0
  13. package/dist/types/extractions.d.ts.map +1 -1
  14. package/dist/types/index.d.ts +2 -0
  15. package/dist/types/index.d.ts.map +1 -1
  16. package/dist/types/index.js +3 -1
  17. package/dist/types/index.js.map +1 -1
  18. package/dist/types/status.d.ts +121 -0
  19. package/dist/types/status.d.ts.map +1 -0
  20. package/dist/types/status.js +18 -0
  21. package/dist/types/status.js.map +1 -0
  22. package/dist/types/tasks.d.ts +601 -0
  23. package/dist/types/tasks.d.ts.map +1 -0
  24. package/dist/types/tasks.js +118 -0
  25. package/dist/types/tasks.js.map +1 -0
  26. package/dist/types/threads.d.ts +542 -5
  27. package/dist/types/threads.d.ts.map +1 -1
  28. package/dist/types/threads.js +45 -2
  29. package/dist/types/threads.js.map +1 -1
  30. package/dist/v1/resources/activity_feed.d.ts +1 -1
  31. package/dist/v1/resources/activity_feed.js +2 -2
  32. package/dist/v1/resources/agents.d.ts +2 -2
  33. package/dist/v1/resources/agents.js +3 -3
  34. package/dist/v1/resources/custom_objects.d.ts +86 -20
  35. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  36. package/dist/v1/resources/custom_objects.js +41 -19
  37. package/dist/v1/resources/custom_objects.js.map +1 -1
  38. package/dist/v1/resources/files.d.ts +19 -0
  39. package/dist/v1/resources/files.d.ts.map +1 -1
  40. package/dist/v1/resources/files.js +3 -1
  41. package/dist/v1/resources/files.js.map +1 -1
  42. package/dist/v1/resources/index.d.ts +7 -0
  43. package/dist/v1/resources/index.d.ts.map +1 -1
  44. package/dist/v1/resources/index.js +8 -1
  45. package/dist/v1/resources/index.js.map +1 -1
  46. package/dist/v1/resources/private_service_definitions.d.ts +12 -0
  47. package/dist/v1/resources/private_service_definitions.d.ts.map +1 -0
  48. package/dist/v1/resources/private_service_definitions.js +18 -0
  49. package/dist/v1/resources/private_service_definitions.js.map +1 -0
  50. package/dist/v1/resources/private_service_enrollments.d.ts +42 -0
  51. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -0
  52. package/dist/v1/resources/private_service_enrollments.js +56 -0
  53. package/dist/v1/resources/private_service_enrollments.js.map +1 -0
  54. package/dist/v1/resources/private_services.d.ts +46 -0
  55. package/dist/v1/resources/private_services.d.ts.map +1 -0
  56. package/dist/v1/resources/private_services.js +55 -0
  57. package/dist/v1/resources/private_services.js.map +1 -0
  58. package/dist/v1/resources/sandboxes.d.ts +81 -0
  59. package/dist/v1/resources/sandboxes.d.ts.map +1 -0
  60. package/dist/v1/resources/sandboxes.js +84 -0
  61. package/dist/v1/resources/sandboxes.js.map +1 -0
  62. package/dist/v1/resources/slack_channel_bindings.d.ts +37 -0
  63. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
  64. package/dist/v1/resources/slack_channel_bindings.js +31 -1
  65. package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
  66. package/dist/v1/resources/solutions.d.ts +2 -0
  67. package/dist/v1/resources/solutions.d.ts.map +1 -1
  68. package/dist/v1/resources/solutions.js +2 -1
  69. package/dist/v1/resources/solutions.js.map +1 -1
  70. package/dist/v1/resources/status.d.ts +22 -0
  71. package/dist/v1/resources/status.d.ts.map +1 -0
  72. package/dist/v1/resources/status.js +27 -0
  73. package/dist/v1/resources/status.js.map +1 -0
  74. package/dist/v1/resources/tasks.d.ts +599 -0
  75. package/dist/v1/resources/tasks.d.ts.map +1 -0
  76. package/dist/v1/resources/tasks.js +436 -0
  77. package/dist/v1/resources/tasks.js.map +1 -0
  78. package/dist/v1/resources/teams.d.ts +463 -0
  79. package/dist/v1/resources/teams.d.ts.map +1 -1
  80. package/dist/v1/resources/teams.js +281 -1
  81. package/dist/v1/resources/teams.js.map +1 -1
  82. package/dist/v1/resources/thread_messages.d.ts +25 -3
  83. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  84. package/dist/v1/resources/thread_messages.js +25 -4
  85. package/dist/v1/resources/thread_messages.js.map +1 -1
  86. package/dist/v1/resources/threads.d.ts +40 -0
  87. package/dist/v1/resources/threads.d.ts.map +1 -1
  88. package/dist/v1/resources/threads.js +36 -1
  89. package/dist/v1/resources/threads.js.map +1 -1
  90. package/dist/v1/resources/trajectories.d.ts +34 -0
  91. package/dist/v1/resources/trajectories.d.ts.map +1 -0
  92. package/dist/v1/resources/trajectories.js +41 -0
  93. package/dist/v1/resources/trajectories.js.map +1 -0
  94. package/dist/v1/resources/users.d.ts +353 -0
  95. package/dist/v1/resources/users.d.ts.map +1 -1
  96. package/dist/v1/resources/users.js +208 -1
  97. package/dist/v1/resources/users.js.map +1 -1
  98. package/dist/v1.d.ts +14 -0
  99. package/dist/v1.d.ts.map +1 -1
  100. package/dist/v1.js +22 -1
  101. package/dist/v1.js.map +1 -1
  102. package/package.json +1 -1
@@ -0,0 +1,601 @@
1
+ import { z } from "zod";
2
+ import type { Actor } from "./common.js";
3
+ /** Viewer-safe details about a task's current coding-session lease. */
4
+ export interface TaskSessionLeaseSummary {
5
+ /** Server-calculated lease expiry in ISO 8601 format. */
6
+ expires_at: string;
7
+ /** Bounded harness identifier for the coding session. */
8
+ harness: string;
9
+ /** Display name supplied by the coding session that holds the lease. */
10
+ session_name: string;
11
+ }
12
+ /** Runtime validator for {@link TaskSessionLeaseSummary}. */
13
+ export declare const taskSessionLeaseSummarySchema: z.ZodObject<{
14
+ /** Server-calculated lease expiry in ISO 8601 format. */
15
+ expires_at: z.ZodString;
16
+ /** Bounded harness identifier for the coding session. */
17
+ harness: z.ZodString;
18
+ /** Display name supplied by the coding session that holds the lease. */
19
+ session_name: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ expires_at: string;
22
+ harness: string;
23
+ session_name: string;
24
+ }, {
25
+ expires_at: string;
26
+ harness: string;
27
+ session_name: string;
28
+ }>;
29
+ /** A task representing a unit of work, optionally assignable to a user or agent. */
30
+ export interface Task {
31
+ /** ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user. */
32
+ agent?: string | undefined;
33
+ /** 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. */
34
+ blocked_by_count?: number | undefined;
35
+ /** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
36
+ closed_at?: string | undefined;
37
+ /** Total number of comments posted on this task. */
38
+ comments_count?: number | undefined;
39
+ /** When the task was created (ISO 8601). */
40
+ created_at?: string | undefined;
41
+ /** 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). */
42
+ created_by_actor?: Actor | undefined;
43
+ /** 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. */
44
+ created_by_agent?: string | undefined;
45
+ /** 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. */
46
+ created_by_user?: string | undefined;
47
+ /** Viewer-safe live coding-session lease summary. `null` when the task is unleased or the projected lease has expired. Fencing identifiers are never included. */
48
+ current_lease?: TaskSessionLeaseSummary | undefined;
49
+ /** Long-form description or notes for the task. `null` if no description has been provided. */
50
+ description?: string | undefined;
51
+ /** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
52
+ due_date?: string | undefined;
53
+ /** Task ID (`tsk_...`). */
54
+ id: string;
55
+ /** `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. */
56
+ is_blocked?: boolean | undefined;
57
+ /** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
58
+ links?: Record<string, unknown> | undefined;
59
+ /** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
60
+ metadata?: Record<string, unknown> | undefined;
61
+ /** Human-readable title of the task. */
62
+ name: string;
63
+ /** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
64
+ org?: string | undefined;
65
+ /** 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). */
66
+ owner_actor?: Actor | undefined;
67
+ /** 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. */
68
+ owner_agent?: string | undefined;
69
+ /** 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. */
70
+ owner_user?: string | undefined;
71
+ /** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
72
+ parent?: string | undefined;
73
+ /** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
74
+ priority?: number | undefined;
75
+ /** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
76
+ sandbox?: string | undefined;
77
+ /** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
78
+ status: string;
79
+ /** 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. */
80
+ subtasks_count?: number | undefined;
81
+ /** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
82
+ tags?: string[] | undefined;
83
+ /** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
84
+ team?: string | undefined;
85
+ /** 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. */
86
+ thread?: string | undefined;
87
+ /** When the task was last modified (ISO 8601). */
88
+ updated_at?: string | undefined;
89
+ /** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
90
+ user?: string | undefined;
91
+ }
92
+ /** Runtime validator for {@link Task}. */
93
+ export declare const taskSchema: z.ZodObject<{
94
+ /** ID of the agent that owns this task (`agi_...`). `null` if the task is scoped to a team or user. */
95
+ agent: z.ZodOptional<z.ZodString>;
96
+ /** 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. */
97
+ blocked_by_count: z.ZodOptional<z.ZodNumber>;
98
+ /** When the task was marked as done or otherwise closed (ISO 8601). `null` if the task is still open. */
99
+ closed_at: z.ZodOptional<z.ZodString>;
100
+ /** Total number of comments posted on this task. */
101
+ comments_count: z.ZodOptional<z.ZodNumber>;
102
+ /** When the task was created (ISO 8601). */
103
+ created_at: z.ZodOptional<z.ZodString>;
104
+ /** 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). */
105
+ created_by_actor: z.ZodOptional<z.ZodObject<{
106
+ alias: z.ZodOptional<z.ZodString>;
107
+ id: z.ZodOptional<z.ZodString>;
108
+ name: z.ZodOptional<z.ZodString>;
109
+ profile_picture: z.ZodOptional<z.ZodObject<{
110
+ file: z.ZodOptional<z.ZodString>;
111
+ height: z.ZodOptional<z.ZodNumber>;
112
+ media: z.ZodOptional<z.ZodString>;
113
+ mime_type: z.ZodOptional<z.ZodString>;
114
+ refresh_url: z.ZodOptional<z.ZodString>;
115
+ url: z.ZodOptional<z.ZodString>;
116
+ width: z.ZodOptional<z.ZodNumber>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ mime_type?: string | undefined;
119
+ file?: string | undefined;
120
+ height?: number | undefined;
121
+ media?: string | undefined;
122
+ refresh_url?: string | undefined;
123
+ url?: string | undefined;
124
+ width?: number | undefined;
125
+ }, {
126
+ mime_type?: string | undefined;
127
+ file?: string | undefined;
128
+ height?: number | undefined;
129
+ media?: string | undefined;
130
+ refresh_url?: string | undefined;
131
+ url?: string | undefined;
132
+ width?: number | undefined;
133
+ }>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ alias?: string | undefined;
136
+ name?: string | undefined;
137
+ id?: string | undefined;
138
+ profile_picture?: {
139
+ mime_type?: string | undefined;
140
+ file?: string | undefined;
141
+ height?: number | undefined;
142
+ media?: string | undefined;
143
+ refresh_url?: string | undefined;
144
+ url?: string | undefined;
145
+ width?: number | undefined;
146
+ } | undefined;
147
+ }, {
148
+ alias?: string | undefined;
149
+ name?: string | undefined;
150
+ id?: string | undefined;
151
+ profile_picture?: {
152
+ mime_type?: string | undefined;
153
+ file?: string | undefined;
154
+ height?: number | undefined;
155
+ media?: string | undefined;
156
+ refresh_url?: string | undefined;
157
+ url?: string | undefined;
158
+ width?: number | undefined;
159
+ } | undefined;
160
+ }>>;
161
+ /** 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. */
162
+ created_by_agent: z.ZodOptional<z.ZodString>;
163
+ /** 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. */
164
+ created_by_user: z.ZodOptional<z.ZodString>;
165
+ /** Viewer-safe live coding-session lease summary. `null` when the task is unleased or the projected lease has expired. Fencing identifiers are never included. */
166
+ current_lease: z.ZodOptional<z.ZodObject<{
167
+ /** Server-calculated lease expiry in ISO 8601 format. */
168
+ expires_at: z.ZodString;
169
+ /** Bounded harness identifier for the coding session. */
170
+ harness: z.ZodString;
171
+ /** Display name supplied by the coding session that holds the lease. */
172
+ session_name: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ expires_at: string;
175
+ harness: string;
176
+ session_name: string;
177
+ }, {
178
+ expires_at: string;
179
+ harness: string;
180
+ session_name: string;
181
+ }>>;
182
+ /** Long-form description or notes for the task. `null` if no description has been provided. */
183
+ description: z.ZodOptional<z.ZodString>;
184
+ /** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
185
+ due_date: z.ZodOptional<z.ZodString>;
186
+ /** Task ID (`tsk_...`). */
187
+ id: z.ZodString;
188
+ /** `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. */
189
+ is_blocked: z.ZodOptional<z.ZodBoolean>;
190
+ /** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
191
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
192
+ /** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
193
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
194
+ /** Human-readable title of the task. */
195
+ name: z.ZodString;
196
+ /** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
197
+ org: z.ZodOptional<z.ZodString>;
198
+ /** 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). */
199
+ owner_actor: z.ZodOptional<z.ZodObject<{
200
+ alias: z.ZodOptional<z.ZodString>;
201
+ id: z.ZodOptional<z.ZodString>;
202
+ name: z.ZodOptional<z.ZodString>;
203
+ profile_picture: z.ZodOptional<z.ZodObject<{
204
+ file: z.ZodOptional<z.ZodString>;
205
+ height: z.ZodOptional<z.ZodNumber>;
206
+ media: z.ZodOptional<z.ZodString>;
207
+ mime_type: z.ZodOptional<z.ZodString>;
208
+ refresh_url: z.ZodOptional<z.ZodString>;
209
+ url: z.ZodOptional<z.ZodString>;
210
+ width: z.ZodOptional<z.ZodNumber>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ mime_type?: string | undefined;
213
+ file?: string | undefined;
214
+ height?: number | undefined;
215
+ media?: string | undefined;
216
+ refresh_url?: string | undefined;
217
+ url?: string | undefined;
218
+ width?: number | undefined;
219
+ }, {
220
+ mime_type?: string | undefined;
221
+ file?: string | undefined;
222
+ height?: number | undefined;
223
+ media?: string | undefined;
224
+ refresh_url?: string | undefined;
225
+ url?: string | undefined;
226
+ width?: number | undefined;
227
+ }>>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ alias?: string | undefined;
230
+ name?: string | undefined;
231
+ id?: string | undefined;
232
+ profile_picture?: {
233
+ mime_type?: string | undefined;
234
+ file?: string | undefined;
235
+ height?: number | undefined;
236
+ media?: string | undefined;
237
+ refresh_url?: string | undefined;
238
+ url?: string | undefined;
239
+ width?: number | undefined;
240
+ } | undefined;
241
+ }, {
242
+ alias?: string | undefined;
243
+ name?: string | undefined;
244
+ id?: string | undefined;
245
+ profile_picture?: {
246
+ mime_type?: string | undefined;
247
+ file?: string | undefined;
248
+ height?: number | undefined;
249
+ media?: string | undefined;
250
+ refresh_url?: string | undefined;
251
+ url?: string | undefined;
252
+ width?: number | undefined;
253
+ } | undefined;
254
+ }>>;
255
+ /** 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. */
256
+ owner_agent: z.ZodOptional<z.ZodString>;
257
+ /** 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. */
258
+ owner_user: z.ZodOptional<z.ZodString>;
259
+ /** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
260
+ parent: z.ZodOptional<z.ZodString>;
261
+ /** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
262
+ priority: z.ZodOptional<z.ZodNumber>;
263
+ /** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
264
+ sandbox: z.ZodOptional<z.ZodString>;
265
+ /** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
266
+ status: z.ZodString;
267
+ /** 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. */
268
+ subtasks_count: z.ZodOptional<z.ZodNumber>;
269
+ /** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
270
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
+ /** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
272
+ team: z.ZodOptional<z.ZodString>;
273
+ /** 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. */
274
+ thread: z.ZodOptional<z.ZodString>;
275
+ /** When the task was last modified (ISO 8601). */
276
+ updated_at: z.ZodOptional<z.ZodString>;
277
+ /** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
278
+ user: z.ZodOptional<z.ZodString>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ name: string;
281
+ status: string;
282
+ id: string;
283
+ agent?: string | undefined;
284
+ thread?: string | undefined;
285
+ team?: string | undefined;
286
+ org?: string | undefined;
287
+ description?: string | undefined;
288
+ created_at?: string | undefined;
289
+ updated_at?: string | undefined;
290
+ user?: string | undefined;
291
+ sandbox?: string | undefined;
292
+ parent?: string | undefined;
293
+ metadata?: Record<string, unknown> | undefined;
294
+ tags?: string[] | undefined;
295
+ blocked_by_count?: number | undefined;
296
+ closed_at?: string | undefined;
297
+ comments_count?: number | undefined;
298
+ created_by_actor?: {
299
+ alias?: string | undefined;
300
+ name?: string | undefined;
301
+ id?: string | undefined;
302
+ profile_picture?: {
303
+ mime_type?: string | undefined;
304
+ file?: string | undefined;
305
+ height?: number | undefined;
306
+ media?: string | undefined;
307
+ refresh_url?: string | undefined;
308
+ url?: string | undefined;
309
+ width?: number | undefined;
310
+ } | undefined;
311
+ } | undefined;
312
+ created_by_agent?: string | undefined;
313
+ created_by_user?: string | undefined;
314
+ current_lease?: {
315
+ expires_at: string;
316
+ harness: string;
317
+ session_name: string;
318
+ } | undefined;
319
+ due_date?: string | undefined;
320
+ is_blocked?: boolean | undefined;
321
+ links?: Record<string, unknown> | undefined;
322
+ owner_actor?: {
323
+ alias?: string | undefined;
324
+ name?: string | undefined;
325
+ id?: string | undefined;
326
+ profile_picture?: {
327
+ mime_type?: string | undefined;
328
+ file?: string | undefined;
329
+ height?: number | undefined;
330
+ media?: string | undefined;
331
+ refresh_url?: string | undefined;
332
+ url?: string | undefined;
333
+ width?: number | undefined;
334
+ } | undefined;
335
+ } | undefined;
336
+ owner_agent?: string | undefined;
337
+ owner_user?: string | undefined;
338
+ priority?: number | undefined;
339
+ subtasks_count?: number | undefined;
340
+ }, {
341
+ name: string;
342
+ status: string;
343
+ id: string;
344
+ agent?: string | undefined;
345
+ thread?: string | undefined;
346
+ team?: string | undefined;
347
+ org?: string | undefined;
348
+ description?: string | undefined;
349
+ created_at?: string | undefined;
350
+ updated_at?: string | undefined;
351
+ user?: string | undefined;
352
+ sandbox?: string | undefined;
353
+ parent?: string | undefined;
354
+ metadata?: Record<string, unknown> | undefined;
355
+ tags?: string[] | undefined;
356
+ blocked_by_count?: number | undefined;
357
+ closed_at?: string | undefined;
358
+ comments_count?: number | undefined;
359
+ created_by_actor?: {
360
+ alias?: string | undefined;
361
+ name?: string | undefined;
362
+ id?: string | undefined;
363
+ profile_picture?: {
364
+ mime_type?: string | undefined;
365
+ file?: string | undefined;
366
+ height?: number | undefined;
367
+ media?: string | undefined;
368
+ refresh_url?: string | undefined;
369
+ url?: string | undefined;
370
+ width?: number | undefined;
371
+ } | undefined;
372
+ } | undefined;
373
+ created_by_agent?: string | undefined;
374
+ created_by_user?: string | undefined;
375
+ current_lease?: {
376
+ expires_at: string;
377
+ harness: string;
378
+ session_name: string;
379
+ } | undefined;
380
+ due_date?: string | undefined;
381
+ is_blocked?: boolean | undefined;
382
+ links?: Record<string, unknown> | undefined;
383
+ owner_actor?: {
384
+ alias?: string | undefined;
385
+ name?: string | undefined;
386
+ id?: string | undefined;
387
+ profile_picture?: {
388
+ mime_type?: string | undefined;
389
+ file?: string | undefined;
390
+ height?: number | undefined;
391
+ media?: string | undefined;
392
+ refresh_url?: string | undefined;
393
+ url?: string | undefined;
394
+ width?: number | undefined;
395
+ } | undefined;
396
+ } | undefined;
397
+ owner_agent?: string | undefined;
398
+ owner_user?: string | undefined;
399
+ priority?: number | undefined;
400
+ subtasks_count?: number | undefined;
401
+ }>;
402
+ /** A comment posted on a task by a user or an agent, including resolved author information. */
403
+ export interface TaskComment {
404
+ /** Resolved author details including `id`, `name`, `alias`, and `profile_picture`. `null` if no author is set or the author cannot be resolved (e.g. authoring agent was deleted). */
405
+ author_actor?: Actor | undefined;
406
+ /** ID of the agent that posted this comment (`agi_...`). `null` if the author is a human user, or if the authoring agent was later deleted. */
407
+ author_agent?: string | undefined;
408
+ /** ID of the user who posted this comment (`usr_...`). `null` if the author is an agent, or if author provenance was cleared after the authoring agent was deleted. */
409
+ author_user?: string | undefined;
410
+ /** Plain-text body of the comment. */
411
+ body: string;
412
+ /** When this comment was posted (ISO 8601). */
413
+ created_at?: string | undefined;
414
+ /** Comment ID (`tcmt_...`). */
415
+ id: string;
416
+ /** ID of the organization that owns this comment (`org_...`). */
417
+ org?: string | undefined;
418
+ /** Sandbox ID this comment is scoped to. `null` for comments outside a sandbox environment. */
419
+ sandbox?: string | undefined;
420
+ /** ID of the task this comment belongs to (`tsk_...`). */
421
+ task?: string | undefined;
422
+ /** ID of the team the task belongs to (`tem_...`). `null` if not scoped to a team. */
423
+ team?: string | undefined;
424
+ /** When this comment was last edited (ISO 8601). */
425
+ updated_at?: string | undefined;
426
+ }
427
+ /** Runtime validator for {@link TaskComment}. */
428
+ export declare const taskCommentSchema: z.ZodObject<{
429
+ /** Resolved author details including `id`, `name`, `alias`, and `profile_picture`. `null` if no author is set or the author cannot be resolved (e.g. authoring agent was deleted). */
430
+ author_actor: z.ZodOptional<z.ZodObject<{
431
+ alias: z.ZodOptional<z.ZodString>;
432
+ id: z.ZodOptional<z.ZodString>;
433
+ name: z.ZodOptional<z.ZodString>;
434
+ profile_picture: z.ZodOptional<z.ZodObject<{
435
+ file: z.ZodOptional<z.ZodString>;
436
+ height: z.ZodOptional<z.ZodNumber>;
437
+ media: z.ZodOptional<z.ZodString>;
438
+ mime_type: z.ZodOptional<z.ZodString>;
439
+ refresh_url: z.ZodOptional<z.ZodString>;
440
+ url: z.ZodOptional<z.ZodString>;
441
+ width: z.ZodOptional<z.ZodNumber>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ mime_type?: string | undefined;
444
+ file?: string | undefined;
445
+ height?: number | undefined;
446
+ media?: string | undefined;
447
+ refresh_url?: string | undefined;
448
+ url?: string | undefined;
449
+ width?: number | undefined;
450
+ }, {
451
+ mime_type?: string | undefined;
452
+ file?: string | undefined;
453
+ height?: number | undefined;
454
+ media?: string | undefined;
455
+ refresh_url?: string | undefined;
456
+ url?: string | undefined;
457
+ width?: number | undefined;
458
+ }>>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ alias?: string | undefined;
461
+ name?: string | undefined;
462
+ id?: string | undefined;
463
+ profile_picture?: {
464
+ mime_type?: string | undefined;
465
+ file?: string | undefined;
466
+ height?: number | undefined;
467
+ media?: string | undefined;
468
+ refresh_url?: string | undefined;
469
+ url?: string | undefined;
470
+ width?: number | undefined;
471
+ } | undefined;
472
+ }, {
473
+ alias?: string | undefined;
474
+ name?: string | undefined;
475
+ id?: string | undefined;
476
+ profile_picture?: {
477
+ mime_type?: string | undefined;
478
+ file?: string | undefined;
479
+ height?: number | undefined;
480
+ media?: string | undefined;
481
+ refresh_url?: string | undefined;
482
+ url?: string | undefined;
483
+ width?: number | undefined;
484
+ } | undefined;
485
+ }>>;
486
+ /** ID of the agent that posted this comment (`agi_...`). `null` if the author is a human user, or if the authoring agent was later deleted. */
487
+ author_agent: z.ZodOptional<z.ZodString>;
488
+ /** ID of the user who posted this comment (`usr_...`). `null` if the author is an agent, or if author provenance was cleared after the authoring agent was deleted. */
489
+ author_user: z.ZodOptional<z.ZodString>;
490
+ /** Plain-text body of the comment. */
491
+ body: z.ZodString;
492
+ /** When this comment was posted (ISO 8601). */
493
+ created_at: z.ZodOptional<z.ZodString>;
494
+ /** Comment ID (`tcmt_...`). */
495
+ id: z.ZodString;
496
+ /** ID of the organization that owns this comment (`org_...`). */
497
+ org: z.ZodOptional<z.ZodString>;
498
+ /** Sandbox ID this comment is scoped to. `null` for comments outside a sandbox environment. */
499
+ sandbox: z.ZodOptional<z.ZodString>;
500
+ /** ID of the task this comment belongs to (`tsk_...`). */
501
+ task: z.ZodOptional<z.ZodString>;
502
+ /** ID of the team the task belongs to (`tem_...`). `null` if not scoped to a team. */
503
+ team: z.ZodOptional<z.ZodString>;
504
+ /** When this comment was last edited (ISO 8601). */
505
+ updated_at: z.ZodOptional<z.ZodString>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ body: string;
508
+ id: string;
509
+ team?: string | undefined;
510
+ org?: string | undefined;
511
+ created_at?: string | undefined;
512
+ updated_at?: string | undefined;
513
+ sandbox?: string | undefined;
514
+ author_actor?: {
515
+ alias?: string | undefined;
516
+ name?: string | undefined;
517
+ id?: string | undefined;
518
+ profile_picture?: {
519
+ mime_type?: string | undefined;
520
+ file?: string | undefined;
521
+ height?: number | undefined;
522
+ media?: string | undefined;
523
+ refresh_url?: string | undefined;
524
+ url?: string | undefined;
525
+ width?: number | undefined;
526
+ } | undefined;
527
+ } | undefined;
528
+ author_agent?: string | undefined;
529
+ author_user?: string | undefined;
530
+ task?: string | undefined;
531
+ }, {
532
+ body: string;
533
+ id: string;
534
+ team?: string | undefined;
535
+ org?: string | undefined;
536
+ created_at?: string | undefined;
537
+ updated_at?: string | undefined;
538
+ sandbox?: string | undefined;
539
+ author_actor?: {
540
+ alias?: string | undefined;
541
+ name?: string | undefined;
542
+ id?: string | undefined;
543
+ profile_picture?: {
544
+ mime_type?: string | undefined;
545
+ file?: string | undefined;
546
+ height?: number | undefined;
547
+ media?: string | undefined;
548
+ refresh_url?: string | undefined;
549
+ url?: string | undefined;
550
+ width?: number | undefined;
551
+ } | undefined;
552
+ } | undefined;
553
+ author_agent?: string | undefined;
554
+ author_user?: string | undefined;
555
+ task?: string | undefined;
556
+ }>;
557
+ /** A task-session lease returned only to its matching holder. */
558
+ export interface TaskSessionLease {
559
+ /** Server-calculated lease expiry in ISO 8601 format. */
560
+ expires_at: string;
561
+ /** Bounded harness identifier for the matching coding session. */
562
+ harness: string;
563
+ /** Caller-generated fencing token required for renewal and release. */
564
+ lease_id: string;
565
+ /** Server timestamp for the most recent claim, reclaim, or renewal. */
566
+ renewed_at: string;
567
+ /** Opaque caller-generated coding-session identifier. */
568
+ session_id: string;
569
+ /** Display name supplied by the matching coding session. */
570
+ session_name: string;
571
+ }
572
+ /** Runtime validator for {@link TaskSessionLease}. */
573
+ export declare const taskSessionLeaseSchema: z.ZodObject<{
574
+ /** Server-calculated lease expiry in ISO 8601 format. */
575
+ expires_at: z.ZodString;
576
+ /** Bounded harness identifier for the matching coding session. */
577
+ harness: z.ZodString;
578
+ /** Caller-generated fencing token required for renewal and release. */
579
+ lease_id: z.ZodString;
580
+ /** Server timestamp for the most recent claim, reclaim, or renewal. */
581
+ renewed_at: z.ZodString;
582
+ /** Opaque caller-generated coding-session identifier. */
583
+ session_id: z.ZodString;
584
+ /** Display name supplied by the matching coding session. */
585
+ session_name: z.ZodString;
586
+ }, "strip", z.ZodTypeAny, {
587
+ expires_at: string;
588
+ harness: string;
589
+ session_name: string;
590
+ lease_id: string;
591
+ renewed_at: string;
592
+ session_id: string;
593
+ }, {
594
+ expires_at: string;
595
+ harness: string;
596
+ session_name: string;
597
+ lease_id: string;
598
+ renewed_at: string;
599
+ session_id: string;
600
+ }>;
601
+ //# 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,uEAAuE;AACvE,MAAM,W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