@archastro/sdk 0.21.0 → 0.22.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 (114) hide show
  1. package/dist/channels/api_chat_channel.d.ts +3 -1
  2. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  3. package/dist/channels/api_chat_channel.js +6 -2
  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 +97 -0
  10. package/dist/types/artifacts.d.ts.map +1 -1
  11. package/dist/types/automations.d.ts +4 -4
  12. package/dist/types/automations.d.ts.map +1 -1
  13. package/dist/types/automations.js +5 -5
  14. package/dist/types/automations.js.map +1 -1
  15. package/dist/types/chat.d.ts +3762 -0
  16. package/dist/types/chat.d.ts.map +1 -1
  17. package/dist/types/common.d.ts +2585 -152
  18. package/dist/types/common.d.ts.map +1 -1
  19. package/dist/types/common.js +48 -12
  20. package/dist/types/common.js.map +1 -1
  21. package/dist/types/computers.d.ts +20 -0
  22. package/dist/types/computers.d.ts.map +1 -1
  23. package/dist/types/computers.js +8 -1
  24. package/dist/types/computers.js.map +1 -1
  25. package/dist/types/tasks.d.ts +244 -3
  26. package/dist/types/tasks.d.ts.map +1 -1
  27. package/dist/types/tasks.js +46 -4
  28. package/dist/types/tasks.js.map +1 -1
  29. package/dist/types/teams.d.ts +381 -0
  30. package/dist/types/teams.d.ts.map +1 -1
  31. package/dist/types/threads.d.ts +357 -0
  32. package/dist/types/threads.d.ts.map +1 -1
  33. package/dist/types/threads.js +3 -1
  34. package/dist/types/threads.js.map +1 -1
  35. package/dist/v1/resources/activity_feed.d.ts +15 -0
  36. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  37. package/dist/v1/resources/activity_feed.js +1 -1
  38. package/dist/v1/resources/agent_computers.d.ts +15 -0
  39. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  40. package/dist/v1/resources/agent_computers.js +1 -1
  41. package/dist/v1/resources/agent_computers.js.map +1 -1
  42. package/dist/v1/resources/agent_requests.d.ts +8 -0
  43. package/dist/v1/resources/agent_requests.d.ts.map +1 -1
  44. package/dist/v1/resources/agent_requests.js +9 -1
  45. package/dist/v1/resources/agent_requests.js.map +1 -1
  46. package/dist/v1/resources/agent_routines.d.ts +15 -0
  47. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  48. package/dist/v1/resources/agent_routines.js +1 -1
  49. package/dist/v1/resources/agent_routines.js.map +1 -1
  50. package/dist/v1/resources/agents.d.ts +65 -0
  51. package/dist/v1/resources/agents.d.ts.map +1 -1
  52. package/dist/v1/resources/agents.js +2 -1
  53. package/dist/v1/resources/agents.js.map +1 -1
  54. package/dist/v1/resources/artifacts.d.ts +30 -0
  55. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  56. package/dist/v1/resources/artifacts.js +1 -1
  57. package/dist/v1/resources/artifacts.js.map +1 -1
  58. package/dist/v1/resources/automation_runs.d.ts +6 -2
  59. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  60. package/dist/v1/resources/automation_runs.js +10 -4
  61. package/dist/v1/resources/automation_runs.js.map +1 -1
  62. package/dist/v1/resources/computers.d.ts +113 -0
  63. package/dist/v1/resources/computers.d.ts.map +1 -0
  64. package/dist/v1/resources/computers.js +113 -0
  65. package/dist/v1/resources/computers.js.map +1 -0
  66. package/dist/v1/resources/custom_objects.d.ts +60 -0
  67. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  68. package/dist/v1/resources/custom_objects.js +1 -1
  69. package/dist/v1/resources/custom_objects.js.map +1 -1
  70. package/dist/v1/resources/files.d.ts +24 -0
  71. package/dist/v1/resources/files.d.ts.map +1 -1
  72. package/dist/v1/resources/files.js +8 -1
  73. package/dist/v1/resources/files.js.map +1 -1
  74. package/dist/v1/resources/index.d.ts +2 -0
  75. package/dist/v1/resources/index.d.ts.map +1 -1
  76. package/dist/v1/resources/index.js +3 -1
  77. package/dist/v1/resources/index.js.map +1 -1
  78. package/dist/v1/resources/orgs.d.ts +317 -40
  79. package/dist/v1/resources/orgs.d.ts.map +1 -1
  80. package/dist/v1/resources/orgs.js +151 -31
  81. package/dist/v1/resources/orgs.js.map +1 -1
  82. package/dist/v1/resources/solutions.d.ts +15 -0
  83. package/dist/v1/resources/solutions.d.ts.map +1 -1
  84. package/dist/v1/resources/solutions.js +1 -1
  85. package/dist/v1/resources/solutions.js.map +1 -1
  86. package/dist/v1/resources/task_epics.d.ts +85 -0
  87. package/dist/v1/resources/task_epics.d.ts.map +1 -0
  88. package/dist/v1/resources/task_epics.js +71 -0
  89. package/dist/v1/resources/task_epics.js.map +1 -0
  90. package/dist/v1/resources/tasks.d.ts +61 -1
  91. package/dist/v1/resources/tasks.d.ts.map +1 -1
  92. package/dist/v1/resources/tasks.js +40 -2
  93. package/dist/v1/resources/tasks.js.map +1 -1
  94. package/dist/v1/resources/teams.d.ts +337 -51
  95. package/dist/v1/resources/teams.d.ts.map +1 -1
  96. package/dist/v1/resources/teams.js +111 -45
  97. package/dist/v1/resources/teams.js.map +1 -1
  98. package/dist/v1/resources/thread_messages.d.ts +15 -0
  99. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  100. package/dist/v1/resources/thread_messages.js +1 -1
  101. package/dist/v1/resources/thread_messages.js.map +1 -1
  102. package/dist/v1/resources/threads.d.ts +53 -3
  103. package/dist/v1/resources/threads.d.ts.map +1 -1
  104. package/dist/v1/resources/threads.js +5 -4
  105. package/dist/v1/resources/threads.js.map +1 -1
  106. package/dist/v1/resources/users.d.ts +294 -51
  107. package/dist/v1/resources/users.d.ts.map +1 -1
  108. package/dist/v1/resources/users.js +139 -45
  109. package/dist/v1/resources/users.js.map +1 -1
  110. package/dist/v1.d.ts +4 -0
  111. package/dist/v1.d.ts.map +1 -1
  112. package/dist/v1.js +7 -1
  113. package/dist/v1.js.map +1 -1
  114. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from "../../runtime/http-client.js";
2
2
  import type { CurrentUser } from "../../types/common.js";
3
3
  import type { SystemAccessToken } from "../../types/system.js";
4
- import type { Task, TaskEnsureResult } from "../../types/tasks.js";
4
+ import type { Task, TaskEnsureResult, TaskEpicEntity, TaskEpicEntityCollection } from "../../types/tasks.js";
5
5
  import type { Thread } from "../../types/threads.js";
6
6
  import type { User, UserInvite, UserSSHKey } from "../../types/users.js";
7
7
  export declare class IntegrationResource {
@@ -76,6 +76,98 @@ export declare class UserSshKeyResource {
76
76
  public_key: string;
77
77
  }): Promise<UserSSHKey>;
78
78
  }
79
+ export declare class UserTaskEpicResource {
80
+ private http;
81
+ constructor(http: HttpClient);
82
+ /**
83
+ * List an owner's epic summaries
84
+ * Groups tasks by their exact epic label, ordered by label. Closed tasks include cancelled tasks, but cancelled prerequisites still block. Source filters select the tasks summarized; blockers outside that selection still affect readiness. Root ranking is capped per epic and root_blockers_partial is true when that graph is truncated. No epic entity is created.
85
+ * @param params - Query parameters.
86
+ * @param params.representation - labels (default) or entities.
87
+ * @param params.name - Exact entity name; only used for entities.
88
+ * @param params.sourceScope - Exact source scope; supply all three source fields.
89
+ * @param params.sourceType - Exact source type.
90
+ * @param params.sourceId - Exact source ID.
91
+ * @param params.topPriority - Exact highest open priority, from 0 to 4.
92
+ * @param params.owner - Keep only epics with at least one non-closed task owned by this user: `me` or a user public ID (`usr_...`).
93
+ * @param params.includeClosed - Include epics with no non-closed tasks; defaults to false.
94
+ * @param params.limit - Maximum epics; defaults to 50, capped at 100.
95
+ * @param params.afterCursor - Opaque forward cursor from the preceding page.
96
+ * @returns Successful response
97
+ */
98
+ list(user: string, params?: {
99
+ representation?: string;
100
+ name?: string;
101
+ team?: string;
102
+ org?: string;
103
+ sourceScope?: string;
104
+ sourceType?: string;
105
+ sourceId?: string;
106
+ topPriority?: number;
107
+ owner?: string;
108
+ includeClosed?: boolean;
109
+ limit?: number;
110
+ afterCursor?: string;
111
+ }): Promise<{
112
+ after_cursor?: string | null | undefined;
113
+ before_cursor?: string | null | undefined;
114
+ data: {
115
+ blocked_count: number;
116
+ counts: Record<string, unknown>;
117
+ epic: string;
118
+ next_ready: {
119
+ id: string;
120
+ name: string;
121
+ priority: number;
122
+ status: string;
123
+ }[];
124
+ owner?: {
125
+ alias?: string | null | undefined;
126
+ id?: string | null | undefined;
127
+ name?: string | null | undefined;
128
+ profile_picture?: {
129
+ file?: string | null | undefined;
130
+ height?: number | null | undefined;
131
+ media?: string | null | undefined;
132
+ mime_type?: string | null | undefined;
133
+ refresh_url?: string | null | undefined;
134
+ url?: string | null | undefined;
135
+ width?: number | null | undefined;
136
+ } | null | undefined;
137
+ } | null | undefined;
138
+ primary_task?: {
139
+ id: string;
140
+ name: string;
141
+ priority: number;
142
+ status: string;
143
+ } | null | undefined;
144
+ root_blockers: {
145
+ downstream_count: number;
146
+ id: string;
147
+ name: string;
148
+ priority: number;
149
+ status: string;
150
+ }[];
151
+ root_blockers_partial: boolean;
152
+ top_open_priority?: number | null | undefined;
153
+ updated_at: string;
154
+ }[];
155
+ has_more: boolean;
156
+ no_epic_open_count: number;
157
+ } | TaskEpicEntityCollection>;
158
+ /**
159
+ * Create a task Epic
160
+ * @param input - Request body.
161
+ * @returns Successful response
162
+ */
163
+ create(user: string, input: {
164
+ description?: string | undefined;
165
+ metadata?: Record<string, unknown> | undefined;
166
+ name: string;
167
+ state?: string | undefined;
168
+ team?: string | undefined;
169
+ }): Promise<TaskEpicEntity>;
170
+ }
79
171
  export declare class UserTaskResource {
80
172
  private http;
81
173
  constructor(http: HttpClient);
@@ -96,6 +188,9 @@ export declare class UserTaskResource {
96
188
  * @param params.status - Filter tasks by status. One of `"open"`, `"in_progress"`, `"in_review"`, or `"done"`. Omit to return tasks in all statuses.
97
189
  * @param params.ownerUser - Filter tasks assigned to a specific user. Provide the user's public ID (`usr_...`).
98
190
  * @param params.ownerAgent - Filter tasks assigned to a specific agent. Provide the agent's public ID (`agi_...`).
191
+ * @param params.owner - Return only tasks owned by this user: `me` or a user public ID (`usr_...`).
192
+ * @param params.involving - Return only tasks owned or created by this user: `me` or a user public ID (`usr_...`). The "My work" predicate.
193
+ * @param params.summary - When true, omit `description` from every task. Use for list views.
99
194
  * @param params.priority - Filter tasks by priority, from 0 (highest) to 4 (lowest).
100
195
  * @param params.tag - Return only tasks carrying this tag (matched against the canonical lowercase form).
101
196
  * @param params.parent - Return only subtasks of the given task (`tsk_...`), or pass `none` to return only top-level tasks.
@@ -121,6 +216,9 @@ export declare class UserTaskResource {
121
216
  status?: string;
122
217
  ownerUser?: string;
123
218
  ownerAgent?: string;
219
+ owner?: string;
220
+ involving?: string;
221
+ summary?: boolean;
124
222
  priority?: number;
125
223
  tag?: string;
126
224
  parent?: string;
@@ -145,6 +243,7 @@ export declare class UserTaskResource {
145
243
  agent?: string | null | undefined;
146
244
  aggregate_version?: number | null | undefined;
147
245
  blocked_by_count?: number | undefined;
246
+ blockers?: string[] | undefined;
148
247
  closed_at?: string | null | undefined;
149
248
  comments_count?: number | undefined;
150
249
  created_at?: string | undefined;
@@ -172,10 +271,12 @@ export declare class UserTaskResource {
172
271
  description?: string | null | undefined;
173
272
  due_date?: string | null | undefined;
174
273
  epic?: string | null | undefined;
274
+ human_answer_receipts?: Record<string, unknown> | undefined;
175
275
  id: string;
176
276
  is_blocked?: boolean | undefined;
177
277
  is_stalled?: boolean | undefined;
178
278
  links?: Record<string, unknown> | undefined;
279
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
179
280
  metadata?: Record<string, unknown> | undefined;
180
281
  name: string;
181
282
  org?: string | null | undefined;
@@ -208,6 +309,7 @@ export declare class UserTaskResource {
208
309
  tags?: string[] | undefined;
209
310
  target_binary?: string | null | undefined;
210
311
  target_version?: string | null | undefined;
312
+ task_epic?: string | null | undefined;
211
313
  team?: string | null | undefined;
212
314
  thread?: string | null | undefined;
213
315
  updated_at?: string | undefined;
@@ -236,9 +338,11 @@ export declare class UserTaskResource {
236
338
  agent?: string | undefined;
237
339
  org?: string | undefined;
238
340
  task: {
341
+ blockers?: string[] | undefined;
239
342
  description?: string | undefined;
240
343
  due_date?: string | undefined;
241
344
  epic?: string | undefined;
345
+ epic_id?: string | undefined;
242
346
  id?: string | undefined;
243
347
  links?: Record<string, unknown> | undefined;
244
348
  metadata?: Record<string, unknown> | undefined;
@@ -287,6 +391,7 @@ export declare class UserTaskResource {
287
391
  agent?: string | null | undefined;
288
392
  aggregate_version?: number | null | undefined;
289
393
  blocked_by_count?: number | undefined;
394
+ blockers?: string[] | undefined;
290
395
  closed_at?: string | null | undefined;
291
396
  comments_count?: number | undefined;
292
397
  created_at?: string | undefined;
@@ -314,10 +419,12 @@ export declare class UserTaskResource {
314
419
  description?: string | null | undefined;
315
420
  due_date?: string | null | undefined;
316
421
  epic?: string | null | undefined;
422
+ human_answer_receipts?: Record<string, unknown> | undefined;
317
423
  id: string;
318
424
  is_blocked?: boolean | undefined;
319
425
  is_stalled?: boolean | undefined;
320
426
  links?: Record<string, unknown> | undefined;
427
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
321
428
  metadata?: Record<string, unknown> | undefined;
322
429
  name: string;
323
430
  org?: string | null | undefined;
@@ -350,6 +457,7 @@ export declare class UserTaskResource {
350
457
  tags?: string[] | undefined;
351
458
  target_binary?: string | null | undefined;
352
459
  target_version?: string | null | undefined;
460
+ task_epic?: string | null | undefined;
353
461
  team?: string | null | undefined;
354
462
  thread?: string | null | undefined;
355
463
  updated_at?: string | undefined;
@@ -358,6 +466,102 @@ export declare class UserTaskResource {
358
466
  }[];
359
467
  has_more: boolean;
360
468
  }>;
469
+ /**
470
+ * Find an owner's tasks by external reference
471
+ * Returns all exact external-reference matches owned by the requested principal. Multiple matches remain explicit; callers must not choose an arbitrary task.
472
+ * @param user - User ID (`usr_...`) for user-scoped tasks.
473
+ * @param params - Query parameters.
474
+ * @param params.team - Team owner.
475
+ * @param params.org - Organization consistency check.
476
+ * @param params.externalScope - External host.
477
+ * @param params.objectType - External object type.
478
+ * @param params.objectId - External object identity.
479
+ * @returns Successful response
480
+ */
481
+ byExternalReference(user: string, params?: {
482
+ team?: string;
483
+ org?: string;
484
+ externalScope?: string;
485
+ objectType?: string;
486
+ objectId?: string;
487
+ }): Promise<{
488
+ data: {
489
+ agent?: string | null | undefined;
490
+ aggregate_version?: number | null | undefined;
491
+ blocked_by_count?: number | undefined;
492
+ blockers?: string[] | undefined;
493
+ closed_at?: string | null | undefined;
494
+ comments_count?: number | undefined;
495
+ created_at?: string | undefined;
496
+ created_by_actor?: {
497
+ alias?: string | null | undefined;
498
+ id?: string | null | undefined;
499
+ name?: string | null | undefined;
500
+ profile_picture?: {
501
+ file?: string | null | undefined;
502
+ height?: number | null | undefined;
503
+ media?: string | null | undefined;
504
+ mime_type?: string | null | undefined;
505
+ refresh_url?: string | null | undefined;
506
+ url?: string | null | undefined;
507
+ width?: number | null | undefined;
508
+ } | null | undefined;
509
+ } | null | undefined;
510
+ created_by_agent?: string | null | undefined;
511
+ created_by_user?: string | null | undefined;
512
+ current_lease?: {
513
+ expires_at: string;
514
+ harness: string;
515
+ session_name: string;
516
+ } | null | undefined;
517
+ description?: string | null | undefined;
518
+ due_date?: string | null | undefined;
519
+ epic?: string | null | undefined;
520
+ human_answer_receipts?: Record<string, unknown> | undefined;
521
+ id: string;
522
+ is_blocked?: boolean | undefined;
523
+ is_stalled?: boolean | undefined;
524
+ links?: Record<string, unknown> | undefined;
525
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
526
+ metadata?: Record<string, unknown> | undefined;
527
+ name: string;
528
+ org?: string | null | undefined;
529
+ owner_actor?: {
530
+ alias?: string | null | undefined;
531
+ id?: string | null | undefined;
532
+ name?: string | null | undefined;
533
+ profile_picture?: {
534
+ file?: string | null | undefined;
535
+ height?: number | null | undefined;
536
+ media?: string | null | undefined;
537
+ mime_type?: string | null | undefined;
538
+ refresh_url?: string | null | undefined;
539
+ url?: string | null | undefined;
540
+ width?: number | null | undefined;
541
+ } | null | undefined;
542
+ } | null | undefined;
543
+ owner_agent?: string | null | undefined;
544
+ owner_user?: string | null | undefined;
545
+ parent?: string | null | undefined;
546
+ priority?: number | undefined;
547
+ project_id?: string | null | undefined;
548
+ sandbox?: string | null | undefined;
549
+ source_id?: string | null | undefined;
550
+ source_scope?: string | null | undefined;
551
+ source_type?: string | null | undefined;
552
+ stalled_since?: string | null | undefined;
553
+ status: string;
554
+ subtasks_count?: number | undefined;
555
+ tags?: string[] | undefined;
556
+ target_binary?: string | null | undefined;
557
+ target_version?: string | null | undefined;
558
+ task_epic?: string | null | undefined;
559
+ team?: string | null | undefined;
560
+ thread?: string | null | undefined;
561
+ updated_at?: string | undefined;
562
+ user?: string | null | undefined;
563
+ }[];
564
+ }>;
361
565
  /**
362
566
  * Find or create a task by source
363
567
  * Atomically creates one task per owner, tenant and source. Retries return the current task without updating it. Historical tasks created through ordinary create are not adopted.
@@ -368,6 +572,7 @@ export declare class UserTaskResource {
368
572
  * @param input.epic - Initial epic grouping.
369
573
  * @param input.name - Initial task name.
370
574
  * @param input.org - Explicit organization for privileged callers.
575
+ * @param input.owner_user - Initial assigned user; immutable on retries.
371
576
  * @param input.source_id - Source identity, for example owner/repo#123.
372
577
  * @param input.source_scope - Source scope, for example github.
373
578
  * @param input.source_type - Source type, for example pull_request.
@@ -381,6 +586,7 @@ export declare class UserTaskResource {
381
586
  epic?: string | undefined;
382
587
  name: string;
383
588
  org?: string | undefined;
589
+ owner_user?: string | undefined;
384
590
  source_id: string;
385
591
  source_scope: string;
386
592
  source_type: string;
@@ -431,6 +637,7 @@ export declare class UserTaskResource {
431
637
  agent?: string | null | undefined;
432
638
  aggregate_version?: number | null | undefined;
433
639
  blocked_by_count?: number | undefined;
640
+ blockers?: string[] | undefined;
434
641
  closed_at?: string | null | undefined;
435
642
  comments_count?: number | undefined;
436
643
  created_at?: string | undefined;
@@ -458,10 +665,12 @@ export declare class UserTaskResource {
458
665
  description?: string | null | undefined;
459
666
  due_date?: string | null | undefined;
460
667
  epic?: string | null | undefined;
668
+ human_answer_receipts?: Record<string, unknown> | undefined;
461
669
  id: string;
462
670
  is_blocked?: boolean | undefined;
463
671
  is_stalled?: boolean | undefined;
464
672
  links?: Record<string, unknown> | undefined;
673
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
465
674
  metadata?: Record<string, unknown> | undefined;
466
675
  name: string;
467
676
  org?: string | null | undefined;
@@ -494,6 +703,7 @@ export declare class UserTaskResource {
494
703
  tags?: string[] | undefined;
495
704
  target_binary?: string | null | undefined;
496
705
  target_version?: string | null | undefined;
706
+ task_epic?: string | null | undefined;
497
707
  team?: string | null | undefined;
498
708
  thread?: string | null | undefined;
499
709
  updated_at?: string | undefined;
@@ -556,6 +766,7 @@ export declare class UserTaskResource {
556
766
  agent?: string | null | undefined;
557
767
  aggregate_version?: number | null | undefined;
558
768
  blocked_by_count?: number | undefined;
769
+ blockers?: string[] | undefined;
559
770
  closed_at?: string | null | undefined;
560
771
  comments_count?: number | undefined;
561
772
  created_at?: string | undefined;
@@ -583,10 +794,12 @@ export declare class UserTaskResource {
583
794
  description?: string | null | undefined;
584
795
  due_date?: string | null | undefined;
585
796
  epic?: string | null | undefined;
797
+ human_answer_receipts?: Record<string, unknown> | undefined;
586
798
  id: string;
587
799
  is_blocked?: boolean | undefined;
588
800
  is_stalled?: boolean | undefined;
589
801
  links?: Record<string, unknown> | undefined;
802
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
590
803
  metadata?: Record<string, unknown> | undefined;
591
804
  name: string;
592
805
  org?: string | null | undefined;
@@ -619,6 +832,7 @@ export declare class UserTaskResource {
619
832
  tags?: string[] | undefined;
620
833
  target_binary?: string | null | undefined;
621
834
  target_version?: string | null | undefined;
835
+ task_epic?: string | null | undefined;
622
836
  team?: string | null | undefined;
623
837
  thread?: string | null | undefined;
624
838
  updated_at?: string | undefined;
@@ -702,15 +916,30 @@ export declare class UserThreadResource {
702
916
  principal?: string | undefined;
703
917
  principal_type: string;
704
918
  }[] | undefined;
919
+ add_denies?: {
920
+ actions: string[];
921
+ principal?: string | undefined;
922
+ principal_type: string;
923
+ }[] | undefined;
924
+ denies?: {
925
+ actions: string[];
926
+ principal?: string | undefined;
927
+ principal_type: string;
928
+ }[] | undefined;
705
929
  grants?: {
706
930
  actions: string[];
707
931
  principal?: string | undefined;
708
932
  principal_type: string;
709
933
  }[] | undefined;
934
+ preserve_denies?: boolean | undefined;
710
935
  remove?: {
711
936
  principal?: string | undefined;
712
937
  principal_type: string;
713
938
  }[] | undefined;
939
+ remove_denies?: {
940
+ principal?: string | undefined;
941
+ principal_type: string;
942
+ }[] | undefined;
714
943
  } | null | undefined;
715
944
  actors?: {
716
945
  alias?: string | null | undefined;
@@ -866,15 +1095,30 @@ export declare class UserThreadResource {
866
1095
  principal?: string | undefined;
867
1096
  principal_type: string;
868
1097
  }[] | undefined;
1098
+ add_denies?: {
1099
+ actions: string[];
1100
+ principal?: string | undefined;
1101
+ principal_type: string;
1102
+ }[] | undefined;
1103
+ denies?: {
1104
+ actions: string[];
1105
+ principal?: string | undefined;
1106
+ principal_type: string;
1107
+ }[] | undefined;
869
1108
  grants?: {
870
1109
  actions: string[];
871
1110
  principal?: string | undefined;
872
1111
  principal_type: string;
873
1112
  }[] | undefined;
1113
+ preserve_denies?: boolean | undefined;
874
1114
  remove?: {
875
1115
  principal?: string | undefined;
876
1116
  principal_type: string;
877
1117
  }[] | undefined;
1118
+ remove_denies?: {
1119
+ principal?: string | undefined;
1120
+ principal_type: string;
1121
+ }[] | undefined;
878
1122
  } | null | undefined;
879
1123
  app?: string | undefined;
880
1124
  created_at?: string | undefined;
@@ -1047,6 +1291,7 @@ export declare class UserThreadResource {
1047
1291
  sub_threads?: Record<string, unknown>[] | null | undefined;
1048
1292
  tags?: string[] | undefined;
1049
1293
  team?: string | null | undefined;
1294
+ thread_template_key?: string | null | undefined;
1050
1295
  title?: string | null | undefined;
1051
1296
  ttl?: string | null | undefined;
1052
1297
  unread_count?: number | null | undefined;
@@ -1096,6 +1341,38 @@ export declare class UserThreadResource {
1096
1341
  visibility?: "team" | "restricted" | "private" | "org" | undefined;
1097
1342
  };
1098
1343
  }): Promise<Thread>;
1344
+ /**
1345
+ * Create a private thread from a template
1346
+ * Creates a private personal thread, installs the template's agent once per user,
1347
+ * and atomically adds its members and a dedicated E2B computer. Requires
1348
+ * `devbox_access`. The computer starts pending and provisions asynchronously.
1349
+ * `key` is prefixed by the template namespace and is unique for the user. Replays return
1350
+ * 200 and never provision another computer or resend the first message; creation
1351
+ * returns 201. Initial-message delivery occurs after commit; a delivery failure
1352
+ * is returned as `first_message_error` so the caller can resend it.
1353
+ * `computer` is optional and applies on creation only: a replay with the same
1354
+ * `key` returns the original thread and computer, ignoring any different
1355
+ * `computer`, exactly like `title` and `first_message`. Invalid `computer`
1356
+ * input returns 422 `invalid_parameters` before anything is created; a provider
1357
+ * this deployment has no credentials for returns 422 `provider_unavailable`.
1358
+ * Unknown templates return 422 `unknown_thread_template`; installation failures
1359
+ * return 502 `agent_install_failed`. Computer config and credentials are never returned.
1360
+ * @param user - User ID (`usr_...`) whose threads should be listed.
1361
+ * @param input - Request body.
1362
+ * @param input.computer - Optional computer choice, applied on creation only: `provider` (`sprites`, `vercel`, `e2b` or `devbox`; defaults to the template's) and `repositories` (0 to 16 `{repository: owner/name, ref: optional}`; the first is the primary working directory).
1363
+ * @param input.first_message - Optional first user message, posted only on creation.
1364
+ * @param input.key - Required nonempty client idempotency key.
1365
+ * @param input.template - Thread template lookup key.
1366
+ * @param input.title - Title for the new thread.
1367
+ * @returns Thread fields plus agent and computers summaries, and optional first_message_error.
1368
+ */
1369
+ fromTemplate(user: string, input: {
1370
+ computer?: Record<string, unknown> | undefined;
1371
+ first_message?: string | undefined;
1372
+ key?: string | undefined;
1373
+ template: string;
1374
+ title?: string | undefined;
1375
+ }): Promise<Record<string, unknown>>;
1099
1376
  }
1100
1377
  export declare class TokenResource {
1101
1378
  private http;
@@ -1172,6 +1449,7 @@ export declare class UserResource {
1172
1449
  private http;
1173
1450
  readonly integrations: IntegrationResource;
1174
1451
  readonly ssh_keys: UserSshKeyResource;
1452
+ readonly task_epics: UserTaskEpicResource;
1175
1453
  readonly tasks: UserTaskResource;
1176
1454
  readonly threads: UserThreadResource;
1177
1455
  readonly tokens: TokenResource;
@@ -1232,15 +1510,30 @@ export declare class UserResource {
1232
1510
  principal?: string | undefined;
1233
1511
  principal_type: string;
1234
1512
  }[] | undefined;
1513
+ add_denies?: {
1514
+ actions: string[];
1515
+ principal?: string | undefined;
1516
+ principal_type: string;
1517
+ }[] | undefined;
1518
+ denies?: {
1519
+ actions: string[];
1520
+ principal?: string | undefined;
1521
+ principal_type: string;
1522
+ }[] | undefined;
1235
1523
  grants?: {
1236
1524
  actions: string[];
1237
1525
  principal?: string | undefined;
1238
1526
  principal_type: string;
1239
1527
  }[] | undefined;
1528
+ preserve_denies?: boolean | undefined;
1240
1529
  remove?: {
1241
1530
  principal?: string | undefined;
1242
1531
  principal_type: string;
1243
1532
  }[] | undefined;
1533
+ remove_denies?: {
1534
+ principal?: string | undefined;
1535
+ principal_type: string;
1536
+ }[] | undefined;
1244
1537
  } | null | undefined;
1245
1538
  agent?: string | undefined;
1246
1539
  content_type?: string | undefined;
@@ -1357,55 +1650,5 @@ export declare class UserResource {
1357
1650
  mime_type?: string | undefined;
1358
1651
  } | null | undefined;
1359
1652
  }): Promise<User>;
1360
- /**
1361
- * List an owner's epic summaries
1362
- * Groups tasks by their exact epic label, ordered by label. Closed tasks include cancelled tasks, but cancelled prerequisites still block. Source filters select the tasks summarized; blockers outside that selection still affect readiness. Root ranking is capped per epic and root_blockers_partial is true when that graph is truncated. No epic entity is created.
1363
- * @param params - Query parameters.
1364
- * @param params.sourceScope - Exact source scope; supply all three source fields.
1365
- * @param params.sourceType - Exact source type.
1366
- * @param params.sourceId - Exact source ID.
1367
- * @param params.topPriority - Exact highest open priority, from 0 to 4.
1368
- * @param params.includeClosed - Include epics with no non-closed tasks; defaults to false.
1369
- * @param params.limit - Maximum epics; defaults to 50, capped at 100.
1370
- * @param params.afterCursor - Opaque forward cursor from the preceding page.
1371
- * @returns Successful response
1372
- */
1373
- taskEpics(user: string, params?: {
1374
- team?: string;
1375
- org?: string;
1376
- sourceScope?: string;
1377
- sourceType?: string;
1378
- sourceId?: string;
1379
- topPriority?: number;
1380
- includeClosed?: boolean;
1381
- limit?: number;
1382
- afterCursor?: string;
1383
- }): Promise<{
1384
- after_cursor?: string | null | undefined;
1385
- before_cursor?: string | null | undefined;
1386
- data: {
1387
- blocked_count: number;
1388
- counts: Record<string, unknown>;
1389
- epic: string;
1390
- next_ready: {
1391
- id: string;
1392
- name: string;
1393
- priority: number;
1394
- status: string;
1395
- }[];
1396
- root_blockers: {
1397
- downstream_count: number;
1398
- id: string;
1399
- name: string;
1400
- priority: number;
1401
- status: string;
1402
- }[];
1403
- root_blockers_partial: boolean;
1404
- top_open_priority?: number | null | undefined;
1405
- updated_at: string;
1406
- }[];
1407
- has_more: boolean;
1408
- no_epic_open_count: number;
1409
- }>;
1410
1653
  }
1411
1654
  //# sourceMappingURL=users.d.ts.map