@archastro/sdk 0.13.0 → 0.14.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 (105) hide show
  1. package/dist/channels/api_chat_channel.d.ts +11 -2
  2. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  3. package/dist/channels/api_chat_channel.js +3 -3
  4. package/dist/channels/api_chat_channel.js.map +1 -1
  5. package/dist/client.d.ts +4 -0
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +5 -1
  8. package/dist/client.js.map +1 -1
  9. package/dist/types/artifacts.d.ts +35 -35
  10. package/dist/types/automations.d.ts +4 -4
  11. package/dist/types/automations.d.ts.map +1 -1
  12. package/dist/types/automations.js +2 -2
  13. package/dist/types/automations.js.map +1 -1
  14. package/dist/types/chat.d.ts +21037 -18931
  15. package/dist/types/chat.d.ts.map +1 -1
  16. package/dist/types/chat.js +12 -1
  17. package/dist/types/chat.js.map +1 -1
  18. package/dist/types/common.d.ts +10417 -9130
  19. package/dist/types/common.d.ts.map +1 -1
  20. package/dist/types/common.js +246 -143
  21. package/dist/types/common.js.map +1 -1
  22. package/dist/types/extractions.d.ts +112 -112
  23. package/dist/types/image.d.ts +28 -28
  24. package/dist/types/image.d.ts.map +1 -1
  25. package/dist/types/image.js +8 -8
  26. package/dist/types/image.js.map +1 -1
  27. package/dist/types/invites.d.ts +35 -35
  28. package/dist/types/oauth.d.ts +80 -55
  29. package/dist/types/oauth.d.ts.map +1 -1
  30. package/dist/types/status.d.ts +85 -60
  31. package/dist/types/status.d.ts.map +1 -1
  32. package/dist/types/status.js +2 -2
  33. package/dist/types/status.js.map +1 -1
  34. package/dist/types/system.d.ts +52 -22
  35. package/dist/types/system.d.ts.map +1 -1
  36. package/dist/types/system.js +17 -7
  37. package/dist/types/system.js.map +1 -1
  38. package/dist/types/tasks.d.ts +305 -281
  39. package/dist/types/tasks.d.ts.map +1 -1
  40. package/dist/types/tasks.js +26 -18
  41. package/dist/types/tasks.js.map +1 -1
  42. package/dist/types/teams.d.ts +2300 -2240
  43. package/dist/types/teams.d.ts.map +1 -1
  44. package/dist/types/teams.js +13 -13
  45. package/dist/types/teams.js.map +1 -1
  46. package/dist/types/threads.d.ts +1981 -1786
  47. package/dist/types/threads.d.ts.map +1 -1
  48. package/dist/types/threads.js +26 -26
  49. package/dist/types/threads.js.map +1 -1
  50. package/dist/types/users.d.ts +123 -93
  51. package/dist/types/users.d.ts.map +1 -1
  52. package/dist/types/users.js +22 -12
  53. package/dist/types/users.js.map +1 -1
  54. package/dist/v1/resources/activity_feed.d.ts +107 -102
  55. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  56. package/dist/v1/resources/activity_feed.js +1 -1
  57. package/dist/v1/resources/agents.d.ts +2 -1
  58. package/dist/v1/resources/agents.d.ts.map +1 -1
  59. package/dist/v1/resources/agents.js +1 -1
  60. package/dist/v1/resources/agents.js.map +1 -1
  61. package/dist/v1/resources/event_subscription_deliveries.d.ts +17 -0
  62. package/dist/v1/resources/event_subscription_deliveries.d.ts.map +1 -0
  63. package/dist/v1/resources/event_subscription_deliveries.js +21 -0
  64. package/dist/v1/resources/event_subscription_deliveries.js.map +1 -0
  65. package/dist/v1/resources/event_subscriptions.d.ts +110 -0
  66. package/dist/v1/resources/event_subscriptions.d.ts.map +1 -0
  67. package/dist/v1/resources/event_subscriptions.js +119 -0
  68. package/dist/v1/resources/event_subscriptions.js.map +1 -0
  69. package/dist/v1/resources/index.d.ts +2 -0
  70. package/dist/v1/resources/index.d.ts.map +1 -1
  71. package/dist/v1/resources/index.js +3 -1
  72. package/dist/v1/resources/index.js.map +1 -1
  73. package/dist/v1/resources/private_service_definitions.d.ts +4 -1
  74. package/dist/v1/resources/private_service_definitions.d.ts.map +1 -1
  75. package/dist/v1/resources/private_service_definitions.js +2 -2
  76. package/dist/v1/resources/private_service_definitions.js.map +1 -1
  77. package/dist/v1/resources/solutions.d.ts +11 -1
  78. package/dist/v1/resources/solutions.d.ts.map +1 -1
  79. package/dist/v1/resources/solutions.js +13 -1
  80. package/dist/v1/resources/solutions.js.map +1 -1
  81. package/dist/v1/resources/tasks.d.ts +146 -126
  82. package/dist/v1/resources/tasks.d.ts.map +1 -1
  83. package/dist/v1/resources/tasks.js +5 -1
  84. package/dist/v1/resources/tasks.js.map +1 -1
  85. package/dist/v1/resources/teams.d.ts +574 -491
  86. package/dist/v1/resources/teams.d.ts.map +1 -1
  87. package/dist/v1/resources/teams.js +53 -2
  88. package/dist/v1/resources/teams.js.map +1 -1
  89. package/dist/v1/resources/threads.d.ts +98 -77
  90. package/dist/v1/resources/threads.d.ts.map +1 -1
  91. package/dist/v1/resources/threads.js +3 -2
  92. package/dist/v1/resources/threads.js.map +1 -1
  93. package/dist/v1/resources/trajectories.d.ts +4 -1
  94. package/dist/v1/resources/trajectories.d.ts.map +1 -1
  95. package/dist/v1/resources/trajectories.js +2 -2
  96. package/dist/v1/resources/trajectories.js.map +1 -1
  97. package/dist/v1/resources/users.d.ts +443 -376
  98. package/dist/v1/resources/users.d.ts.map +1 -1
  99. package/dist/v1/resources/users.js +49 -1
  100. package/dist/v1/resources/users.js.map +1 -1
  101. package/dist/v1.d.ts +4 -0
  102. package/dist/v1.d.ts.map +1 -1
  103. package/dist/v1.js +7 -1
  104. package/dist/v1.js.map +1 -1
  105. package/package.json +2 -2
@@ -29,27 +29,29 @@ export declare const taskSessionLeaseSummarySchema: z.ZodObject<{
29
29
  /** A task representing a unit of work, optionally assignable to a user or agent. */
30
30
  export interface Task {
31
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;
32
+ agent?: string | null | undefined;
33
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
34
  blocked_by_count?: number | undefined;
35
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;
36
+ closed_at?: string | null | undefined;
37
37
  /** Total number of comments posted on this task. */
38
38
  comments_count?: number | undefined;
39
39
  /** When the task was created (ISO 8601). */
40
40
  created_at?: string | undefined;
41
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;
42
+ created_by_actor?: Actor | null | undefined;
43
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;
44
+ created_by_agent?: string | null | undefined;
45
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;
46
+ created_by_user?: string | null | undefined;
47
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;
48
+ current_lease?: TaskSessionLeaseSummary | null | undefined;
49
49
  /** Long-form description or notes for the task. `null` if no description has been provided. */
50
- description?: string | undefined;
50
+ description?: string | null | undefined;
51
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;
52
+ due_date?: string | null | undefined;
53
+ /** Free-form grouping label. `null` when the task is not in an epic. */
54
+ epic?: string | null | undefined;
53
55
  /** Task ID (`tsk_...`). */
54
56
  id: string;
55
57
  /** `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. */
@@ -61,19 +63,25 @@ export interface Task {
61
63
  /** Human-readable title of the task. */
62
64
  name: string;
63
65
  /** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
64
- org?: string | undefined;
66
+ org?: string | null | undefined;
65
67
  /** 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;
68
+ owner_actor?: Actor | null | undefined;
67
69
  /** 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;
70
+ owner_agent?: string | null | undefined;
69
71
  /** 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;
72
+ owner_user?: string | null | undefined;
71
73
  /** 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;
74
+ parent?: string | null | undefined;
73
75
  /** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
74
76
  priority?: number | undefined;
75
77
  /** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
76
- sandbox?: string | undefined;
78
+ sandbox?: string | null | undefined;
79
+ /** Source object identity (for example `ArchAstro/firstlanding`). `null` when the task has no source. */
80
+ source_id?: string | null | undefined;
81
+ /** 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`. */
82
+ source_scope?: string | null | undefined;
83
+ /** Kind of source object (for example `repository`). `null` when the task has no source. */
84
+ source_type?: string | null | undefined;
77
85
  /** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
78
86
  status: string;
79
87
  /** 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. */
@@ -81,89 +89,89 @@ export interface Task {
81
89
  /** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
82
90
  tags?: string[] | undefined;
83
91
  /** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
84
- team?: string | undefined;
92
+ team?: string | null | undefined;
85
93
  /** 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;
94
+ thread?: string | null | undefined;
87
95
  /** When the task was last modified (ISO 8601). */
88
96
  updated_at?: string | undefined;
89
97
  /** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
90
- user?: string | undefined;
98
+ user?: string | null | undefined;
91
99
  }
92
100
  /** Runtime validator for {@link Task}. */
93
101
  export declare const taskSchema: z.ZodObject<{
94
102
  /** 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>;
103
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
104
  /** 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
105
  blocked_by_count: z.ZodOptional<z.ZodNumber>;
98
106
  /** 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>;
107
+ closed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
108
  /** Total number of comments posted on this task. */
101
109
  comments_count: z.ZodOptional<z.ZodNumber>;
102
110
  /** When the task was created (ISO 8601). */
103
111
  created_at: z.ZodOptional<z.ZodString>;
104
112
  /** 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>;
113
+ created_by_actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
114
+ alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ profile_picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
118
+ file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
120
+ media: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ refresh_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
125
  }, "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;
126
+ mime_type?: string | null | undefined;
127
+ file?: string | null | undefined;
128
+ height?: number | null | undefined;
129
+ media?: string | null | undefined;
130
+ refresh_url?: string | null | undefined;
131
+ url?: string | null | undefined;
132
+ width?: number | null | undefined;
125
133
  }, {
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
+ mime_type?: string | null | undefined;
135
+ file?: string | null | undefined;
136
+ height?: number | null | undefined;
137
+ media?: string | null | undefined;
138
+ refresh_url?: string | null | undefined;
139
+ url?: string | null | undefined;
140
+ width?: number | null | undefined;
141
+ }>>>;
134
142
  }, "strip", z.ZodTypeAny, {
135
- alias?: string | undefined;
136
- name?: string | undefined;
137
- id?: string | undefined;
143
+ alias?: string | null | undefined;
144
+ name?: string | null | undefined;
145
+ id?: string | null | undefined;
138
146
  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
+ mime_type?: string | null | undefined;
148
+ file?: string | null | undefined;
149
+ height?: number | null | undefined;
150
+ media?: string | null | undefined;
151
+ refresh_url?: string | null | undefined;
152
+ url?: string | null | undefined;
153
+ width?: number | null | undefined;
154
+ } | null | undefined;
147
155
  }, {
148
- alias?: string | undefined;
149
- name?: string | undefined;
150
- id?: string | undefined;
156
+ alias?: string | null | undefined;
157
+ name?: string | null | undefined;
158
+ id?: string | null | undefined;
151
159
  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
- }>>;
160
+ mime_type?: string | null | undefined;
161
+ file?: string | null | undefined;
162
+ height?: number | null | undefined;
163
+ media?: string | null | undefined;
164
+ refresh_url?: string | null | undefined;
165
+ url?: string | null | undefined;
166
+ width?: number | null | undefined;
167
+ } | null | undefined;
168
+ }>>>;
161
169
  /** 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>;
170
+ created_by_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
171
  /** 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>;
172
+ created_by_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
173
  /** 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<{
174
+ current_lease: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
175
  /** Server-calculated lease expiry in ISO 8601 format. */
168
176
  expires_at: z.ZodString;
169
177
  /** Bounded harness identifier for the coding session. */
@@ -178,11 +186,13 @@ export declare const taskSchema: z.ZodObject<{
178
186
  expires_at: string;
179
187
  harness: string;
180
188
  session_name: string;
181
- }>>;
189
+ }>>>;
182
190
  /** Long-form description or notes for the task. `null` if no description has been provided. */
183
- description: z.ZodOptional<z.ZodString>;
191
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
192
  /** 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>;
193
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ /** Free-form grouping label. `null` when the task is not in an epic. */
195
+ epic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
196
  /** Task ID (`tsk_...`). */
187
197
  id: z.ZodString;
188
198
  /** `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. */
@@ -194,74 +204,80 @@ export declare const taskSchema: z.ZodObject<{
194
204
  /** Human-readable title of the task. */
195
205
  name: z.ZodString;
196
206
  /** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
197
- org: z.ZodOptional<z.ZodString>;
207
+ org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
208
  /** 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>;
209
+ owner_actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
210
+ alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ profile_picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
214
+ file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
216
+ media: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ refresh_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
211
221
  }, "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;
222
+ mime_type?: string | null | undefined;
223
+ file?: string | null | undefined;
224
+ height?: number | null | undefined;
225
+ media?: string | null | undefined;
226
+ refresh_url?: string | null | undefined;
227
+ url?: string | null | undefined;
228
+ width?: number | null | undefined;
219
229
  }, {
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
- }>>;
230
+ mime_type?: string | null | undefined;
231
+ file?: string | null | undefined;
232
+ height?: number | null | undefined;
233
+ media?: string | null | undefined;
234
+ refresh_url?: string | null | undefined;
235
+ url?: string | null | undefined;
236
+ width?: number | null | undefined;
237
+ }>>>;
228
238
  }, "strip", z.ZodTypeAny, {
229
- alias?: string | undefined;
230
- name?: string | undefined;
231
- id?: string | undefined;
239
+ alias?: string | null | undefined;
240
+ name?: string | null | undefined;
241
+ id?: string | null | undefined;
232
242
  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;
243
+ mime_type?: string | null | undefined;
244
+ file?: string | null | undefined;
245
+ height?: number | null | undefined;
246
+ media?: string | null | undefined;
247
+ refresh_url?: string | null | undefined;
248
+ url?: string | null | undefined;
249
+ width?: number | null | undefined;
250
+ } | null | undefined;
241
251
  }, {
242
- alias?: string | undefined;
243
- name?: string | undefined;
244
- id?: string | undefined;
252
+ alias?: string | null | undefined;
253
+ name?: string | null | undefined;
254
+ id?: string | null | undefined;
245
255
  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
- }>>;
256
+ mime_type?: string | null | undefined;
257
+ file?: string | null | undefined;
258
+ height?: number | null | undefined;
259
+ media?: string | null | undefined;
260
+ refresh_url?: string | null | undefined;
261
+ url?: string | null | undefined;
262
+ width?: number | null | undefined;
263
+ } | null | undefined;
264
+ }>>>;
255
265
  /** 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>;
266
+ owner_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
267
  /** 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>;
268
+ owner_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
269
  /** 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>;
270
+ parent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
271
  /** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
262
272
  priority: z.ZodOptional<z.ZodNumber>;
263
273
  /** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
264
- sandbox: z.ZodOptional<z.ZodString>;
274
+ sandbox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ /** Source object identity (for example `ArchAstro/firstlanding`). `null` when the task has no source. */
276
+ source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ /** 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`. */
278
+ source_scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ /** Kind of source object (for example `repository`). `null` when the task has no source. */
280
+ source_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
281
  /** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
266
282
  status: z.ZodString;
267
283
  /** 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. */
@@ -269,134 +285,142 @@ export declare const taskSchema: z.ZodObject<{
269
285
  /** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
270
286
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
287
  /** 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>;
288
+ team: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
289
  /** 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>;
290
+ thread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
291
  /** When the task was last modified (ISO 8601). */
276
292
  updated_at: z.ZodOptional<z.ZodString>;
277
293
  /** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
278
- user: z.ZodOptional<z.ZodString>;
294
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
295
  }, "strip", z.ZodTypeAny, {
280
296
  name: string;
281
297
  status: string;
282
298
  id: string;
283
- agent?: string | undefined;
284
- thread?: string | undefined;
285
- team?: string | undefined;
286
- org?: string | undefined;
287
- description?: string | undefined;
299
+ agent?: string | null | undefined;
300
+ thread?: string | null | undefined;
301
+ team?: string | null | undefined;
302
+ org?: string | null | undefined;
303
+ description?: string | null | undefined;
288
304
  created_at?: string | undefined;
289
305
  updated_at?: string | undefined;
290
- user?: string | undefined;
291
- sandbox?: string | undefined;
292
- parent?: string | undefined;
306
+ user?: string | null | undefined;
307
+ sandbox?: string | null | undefined;
308
+ parent?: string | null | undefined;
309
+ created_by_user?: string | null | undefined;
293
310
  metadata?: Record<string, unknown> | undefined;
294
311
  tags?: string[] | undefined;
295
312
  blocked_by_count?: number | undefined;
296
- closed_at?: string | undefined;
313
+ closed_at?: string | null | undefined;
297
314
  comments_count?: number | undefined;
298
315
  created_by_actor?: {
299
- alias?: string | undefined;
300
- name?: string | undefined;
301
- id?: string | undefined;
316
+ alias?: string | null | undefined;
317
+ name?: string | null | undefined;
318
+ id?: string | null | undefined;
302
319
  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;
320
+ mime_type?: string | null | undefined;
321
+ file?: string | null | undefined;
322
+ height?: number | null | undefined;
323
+ media?: string | null | undefined;
324
+ refresh_url?: string | null | undefined;
325
+ url?: string | null | undefined;
326
+ width?: number | null | undefined;
327
+ } | null | undefined;
328
+ } | null | undefined;
329
+ created_by_agent?: string | null | undefined;
314
330
  current_lease?: {
315
331
  expires_at: string;
316
332
  harness: string;
317
333
  session_name: string;
318
- } | undefined;
319
- due_date?: string | undefined;
334
+ } | null | undefined;
335
+ due_date?: string | null | undefined;
336
+ epic?: string | null | undefined;
320
337
  is_blocked?: boolean | undefined;
321
338
  links?: Record<string, unknown> | undefined;
322
339
  owner_actor?: {
323
- alias?: string | undefined;
324
- name?: string | undefined;
325
- id?: string | undefined;
340
+ alias?: string | null | undefined;
341
+ name?: string | null | undefined;
342
+ id?: string | null | undefined;
326
343
  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;
344
+ mime_type?: string | null | undefined;
345
+ file?: string | null | undefined;
346
+ height?: number | null | undefined;
347
+ media?: string | null | undefined;
348
+ refresh_url?: string | null | undefined;
349
+ url?: string | null | undefined;
350
+ width?: number | null | undefined;
351
+ } | null | undefined;
352
+ } | null | undefined;
353
+ owner_agent?: string | null | undefined;
354
+ owner_user?: string | null | undefined;
338
355
  priority?: number | undefined;
356
+ source_id?: string | null | undefined;
357
+ source_scope?: string | null | undefined;
358
+ source_type?: string | null | undefined;
339
359
  subtasks_count?: number | undefined;
340
360
  }, {
341
361
  name: string;
342
362
  status: string;
343
363
  id: string;
344
- agent?: string | undefined;
345
- thread?: string | undefined;
346
- team?: string | undefined;
347
- org?: string | undefined;
348
- description?: string | undefined;
364
+ agent?: string | null | undefined;
365
+ thread?: string | null | undefined;
366
+ team?: string | null | undefined;
367
+ org?: string | null | undefined;
368
+ description?: string | null | undefined;
349
369
  created_at?: string | undefined;
350
370
  updated_at?: string | undefined;
351
- user?: string | undefined;
352
- sandbox?: string | undefined;
353
- parent?: string | undefined;
371
+ user?: string | null | undefined;
372
+ sandbox?: string | null | undefined;
373
+ parent?: string | null | undefined;
374
+ created_by_user?: string | null | undefined;
354
375
  metadata?: Record<string, unknown> | undefined;
355
376
  tags?: string[] | undefined;
356
377
  blocked_by_count?: number | undefined;
357
- closed_at?: string | undefined;
378
+ closed_at?: string | null | undefined;
358
379
  comments_count?: number | undefined;
359
380
  created_by_actor?: {
360
- alias?: string | undefined;
361
- name?: string | undefined;
362
- id?: string | undefined;
381
+ alias?: string | null | undefined;
382
+ name?: string | null | undefined;
383
+ id?: string | null | undefined;
363
384
  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;
385
+ mime_type?: string | null | undefined;
386
+ file?: string | null | undefined;
387
+ height?: number | null | undefined;
388
+ media?: string | null | undefined;
389
+ refresh_url?: string | null | undefined;
390
+ url?: string | null | undefined;
391
+ width?: number | null | undefined;
392
+ } | null | undefined;
393
+ } | null | undefined;
394
+ created_by_agent?: string | null | undefined;
375
395
  current_lease?: {
376
396
  expires_at: string;
377
397
  harness: string;
378
398
  session_name: string;
379
- } | undefined;
380
- due_date?: string | undefined;
399
+ } | null | undefined;
400
+ due_date?: string | null | undefined;
401
+ epic?: string | null | undefined;
381
402
  is_blocked?: boolean | undefined;
382
403
  links?: Record<string, unknown> | undefined;
383
404
  owner_actor?: {
384
- alias?: string | undefined;
385
- name?: string | undefined;
386
- id?: string | undefined;
405
+ alias?: string | null | undefined;
406
+ name?: string | null | undefined;
407
+ id?: string | null | undefined;
387
408
  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;
409
+ mime_type?: string | null | undefined;
410
+ file?: string | null | undefined;
411
+ height?: number | null | undefined;
412
+ media?: string | null | undefined;
413
+ refresh_url?: string | null | undefined;
414
+ url?: string | null | undefined;
415
+ width?: number | null | undefined;
416
+ } | null | undefined;
417
+ } | null | undefined;
418
+ owner_agent?: string | null | undefined;
419
+ owner_user?: string | null | undefined;
399
420
  priority?: number | undefined;
421
+ source_id?: string | null | undefined;
422
+ source_scope?: string | null | undefined;
423
+ source_type?: string | null | undefined;
400
424
  subtasks_count?: number | undefined;
401
425
  }>;
402
426
  /** A comment posted on a task by a user or an agent, including resolved author information. */
@@ -428,60 +452,60 @@ export interface TaskComment {
428
452
  export declare const taskCommentSchema: z.ZodObject<{
429
453
  /** 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
454
  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>;
455
+ alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ profile_picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
459
+ file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
461
+ media: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ refresh_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
442
466
  }, "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;
467
+ mime_type?: string | null | undefined;
468
+ file?: string | null | undefined;
469
+ height?: number | null | undefined;
470
+ media?: string | null | undefined;
471
+ refresh_url?: string | null | undefined;
472
+ url?: string | null | undefined;
473
+ width?: number | null | undefined;
450
474
  }, {
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
- }>>;
475
+ mime_type?: string | null | undefined;
476
+ file?: string | null | undefined;
477
+ height?: number | null | undefined;
478
+ media?: string | null | undefined;
479
+ refresh_url?: string | null | undefined;
480
+ url?: string | null | undefined;
481
+ width?: number | null | undefined;
482
+ }>>>;
459
483
  }, "strip", z.ZodTypeAny, {
460
- alias?: string | undefined;
461
- name?: string | undefined;
462
- id?: string | undefined;
484
+ alias?: string | null | undefined;
485
+ name?: string | null | undefined;
486
+ id?: string | null | undefined;
463
487
  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;
488
+ mime_type?: string | null | undefined;
489
+ file?: string | null | undefined;
490
+ height?: number | null | undefined;
491
+ media?: string | null | undefined;
492
+ refresh_url?: string | null | undefined;
493
+ url?: string | null | undefined;
494
+ width?: number | null | undefined;
495
+ } | null | undefined;
472
496
  }, {
473
- alias?: string | undefined;
474
- name?: string | undefined;
475
- id?: string | undefined;
497
+ alias?: string | null | undefined;
498
+ name?: string | null | undefined;
499
+ id?: string | null | undefined;
476
500
  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;
501
+ mime_type?: string | null | undefined;
502
+ file?: string | null | undefined;
503
+ height?: number | null | undefined;
504
+ media?: string | null | undefined;
505
+ refresh_url?: string | null | undefined;
506
+ url?: string | null | undefined;
507
+ width?: number | null | undefined;
508
+ } | null | undefined;
485
509
  }>>;
486
510
  /** 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
511
  author_agent: z.ZodOptional<z.ZodString>;
@@ -512,18 +536,18 @@ export declare const taskCommentSchema: z.ZodObject<{
512
536
  updated_at?: string | undefined;
513
537
  sandbox?: string | undefined;
514
538
  author_actor?: {
515
- alias?: string | undefined;
516
- name?: string | undefined;
517
- id?: string | undefined;
539
+ alias?: string | null | undefined;
540
+ name?: string | null | undefined;
541
+ id?: string | null | undefined;
518
542
  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;
543
+ mime_type?: string | null | undefined;
544
+ file?: string | null | undefined;
545
+ height?: number | null | undefined;
546
+ media?: string | null | undefined;
547
+ refresh_url?: string | null | undefined;
548
+ url?: string | null | undefined;
549
+ width?: number | null | undefined;
550
+ } | null | undefined;
527
551
  } | undefined;
528
552
  author_agent?: string | undefined;
529
553
  author_user?: string | undefined;
@@ -537,18 +561,18 @@ export declare const taskCommentSchema: z.ZodObject<{
537
561
  updated_at?: string | undefined;
538
562
  sandbox?: string | undefined;
539
563
  author_actor?: {
540
- alias?: string | undefined;
541
- name?: string | undefined;
542
- id?: string | undefined;
564
+ alias?: string | null | undefined;
565
+ name?: string | null | undefined;
566
+ id?: string | null | undefined;
543
567
  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;
568
+ mime_type?: string | null | undefined;
569
+ file?: string | null | undefined;
570
+ height?: number | null | undefined;
571
+ media?: string | null | undefined;
572
+ refresh_url?: string | null | undefined;
573
+ url?: string | null | undefined;
574
+ width?: number | null | undefined;
575
+ } | null | undefined;
552
576
  } | undefined;
553
577
  author_agent?: string | undefined;
554
578
  author_user?: string | undefined;