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