@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,6 +1,6 @@
1
1
  import { HttpClient } from "../../runtime/http-client.js";
2
2
  import type { CustomObject } from "../../types/common.js";
3
- import type { Task, TaskEnsureResult } from "../../types/tasks.js";
3
+ import type { Task, TaskEnsureResult, TaskEpicEntity, TaskEpicEntityCollection } from "../../types/tasks.js";
4
4
  import type { Team, TeamDeleteImpactResponse, TeamInvite, TeamMembership } from "../../types/teams.js";
5
5
  import type { Thread } from "../../types/threads.js";
6
6
  export declare class TeamCustomObjectResource {
@@ -44,15 +44,30 @@ export declare class TeamCustomObjectResource {
44
44
  principal?: string | undefined;
45
45
  principal_type: string;
46
46
  }[] | undefined;
47
+ add_denies?: {
48
+ actions: string[];
49
+ principal?: string | undefined;
50
+ principal_type: string;
51
+ }[] | undefined;
52
+ denies?: {
53
+ actions: string[];
54
+ principal?: string | undefined;
55
+ principal_type: string;
56
+ }[] | undefined;
47
57
  grants?: {
48
58
  actions: string[];
49
59
  principal?: string | undefined;
50
60
  principal_type: string;
51
61
  }[] | undefined;
62
+ preserve_denies?: boolean | undefined;
52
63
  remove?: {
53
64
  principal?: string | undefined;
54
65
  principal_type: string;
55
66
  }[] | undefined;
67
+ remove_denies?: {
68
+ principal?: string | undefined;
69
+ principal_type: string;
70
+ }[] | undefined;
56
71
  } | undefined;
57
72
  agent?: string | undefined;
58
73
  created_at?: string | undefined;
@@ -162,15 +177,30 @@ export declare class MemberResource {
162
177
  principal?: string | undefined;
163
178
  principal_type: string;
164
179
  }[] | undefined;
180
+ add_denies?: {
181
+ actions: string[];
182
+ principal?: string | undefined;
183
+ principal_type: string;
184
+ }[] | undefined;
185
+ denies?: {
186
+ actions: string[];
187
+ principal?: string | undefined;
188
+ principal_type: string;
189
+ }[] | undefined;
165
190
  grants?: {
166
191
  actions: string[];
167
192
  principal?: string | undefined;
168
193
  principal_type: string;
169
194
  }[] | undefined;
195
+ preserve_denies?: boolean | undefined;
170
196
  remove?: {
171
197
  principal?: string | undefined;
172
198
  principal_type: string;
173
199
  }[] | undefined;
200
+ remove_denies?: {
201
+ principal?: string | undefined;
202
+ principal_type: string;
203
+ }[] | undefined;
174
204
  } | null | undefined;
175
205
  app?: string | undefined;
176
206
  created_at?: string | undefined;
@@ -419,6 +449,98 @@ export declare class MemberResource {
419
449
  role: string;
420
450
  }): Promise<TeamMembership>;
421
451
  }
452
+ export declare class TeamTaskEpicResource {
453
+ private http;
454
+ constructor(http: HttpClient);
455
+ /**
456
+ * List an owner's epic summaries
457
+ * 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.
458
+ * @param params - Query parameters.
459
+ * @param params.representation - labels (default) or entities.
460
+ * @param params.name - Exact entity name; only used for entities.
461
+ * @param params.sourceScope - Exact source scope; supply all three source fields.
462
+ * @param params.sourceType - Exact source type.
463
+ * @param params.sourceId - Exact source ID.
464
+ * @param params.topPriority - Exact highest open priority, from 0 to 4.
465
+ * @param params.owner - Keep only epics with at least one non-closed task owned by this user: `me` or a user public ID (`usr_...`).
466
+ * @param params.includeClosed - Include epics with no non-closed tasks; defaults to false.
467
+ * @param params.limit - Maximum epics; defaults to 50, capped at 100.
468
+ * @param params.afterCursor - Opaque forward cursor from the preceding page.
469
+ * @returns Successful response
470
+ */
471
+ list(team: string, params?: {
472
+ representation?: string;
473
+ name?: string;
474
+ user?: string;
475
+ org?: string;
476
+ sourceScope?: string;
477
+ sourceType?: string;
478
+ sourceId?: string;
479
+ topPriority?: number;
480
+ owner?: string;
481
+ includeClosed?: boolean;
482
+ limit?: number;
483
+ afterCursor?: string;
484
+ }): Promise<{
485
+ after_cursor?: string | null | undefined;
486
+ before_cursor?: string | null | undefined;
487
+ data: {
488
+ blocked_count: number;
489
+ counts: Record<string, unknown>;
490
+ epic: string;
491
+ next_ready: {
492
+ id: string;
493
+ name: string;
494
+ priority: number;
495
+ status: string;
496
+ }[];
497
+ owner?: {
498
+ alias?: string | null | undefined;
499
+ id?: string | null | undefined;
500
+ name?: string | null | undefined;
501
+ profile_picture?: {
502
+ file?: string | null | undefined;
503
+ height?: number | null | undefined;
504
+ media?: string | null | undefined;
505
+ mime_type?: string | null | undefined;
506
+ refresh_url?: string | null | undefined;
507
+ url?: string | null | undefined;
508
+ width?: number | null | undefined;
509
+ } | null | undefined;
510
+ } | null | undefined;
511
+ primary_task?: {
512
+ id: string;
513
+ name: string;
514
+ priority: number;
515
+ status: string;
516
+ } | null | undefined;
517
+ root_blockers: {
518
+ downstream_count: number;
519
+ id: string;
520
+ name: string;
521
+ priority: number;
522
+ status: string;
523
+ }[];
524
+ root_blockers_partial: boolean;
525
+ top_open_priority?: number | null | undefined;
526
+ updated_at: string;
527
+ }[];
528
+ has_more: boolean;
529
+ no_epic_open_count: number;
530
+ } | TaskEpicEntityCollection>;
531
+ /**
532
+ * Create a task Epic
533
+ * @param input - Request body.
534
+ * @returns Successful response
535
+ */
536
+ create(team: string, input: {
537
+ description?: string | undefined;
538
+ metadata?: Record<string, unknown> | undefined;
539
+ name: string;
540
+ state?: string | undefined;
541
+ user?: string | undefined;
542
+ }): Promise<TaskEpicEntity>;
543
+ }
422
544
  export declare class TeamTaskResource {
423
545
  private http;
424
546
  constructor(http: HttpClient);
@@ -439,6 +561,9 @@ export declare class TeamTaskResource {
439
561
  * @param params.status - Filter tasks by status. One of `"open"`, `"in_progress"`, `"in_review"`, or `"done"`. Omit to return tasks in all statuses.
440
562
  * @param params.ownerUser - Filter tasks assigned to a specific user. Provide the user's public ID (`usr_...`).
441
563
  * @param params.ownerAgent - Filter tasks assigned to a specific agent. Provide the agent's public ID (`agi_...`).
564
+ * @param params.owner - Return only tasks owned by this user: `me` or a user public ID (`usr_...`).
565
+ * @param params.involving - Return only tasks owned or created by this user: `me` or a user public ID (`usr_...`). The "My work" predicate.
566
+ * @param params.summary - When true, omit `description` from every task. Use for list views.
442
567
  * @param params.priority - Filter tasks by priority, from 0 (highest) to 4 (lowest).
443
568
  * @param params.tag - Return only tasks carrying this tag (matched against the canonical lowercase form).
444
569
  * @param params.parent - Return only subtasks of the given task (`tsk_...`), or pass `none` to return only top-level tasks.
@@ -464,6 +589,9 @@ export declare class TeamTaskResource {
464
589
  status?: string;
465
590
  ownerUser?: string;
466
591
  ownerAgent?: string;
592
+ owner?: string;
593
+ involving?: string;
594
+ summary?: boolean;
467
595
  priority?: number;
468
596
  tag?: string;
469
597
  parent?: string;
@@ -488,6 +616,7 @@ export declare class TeamTaskResource {
488
616
  agent?: string | null | undefined;
489
617
  aggregate_version?: number | null | undefined;
490
618
  blocked_by_count?: number | undefined;
619
+ blockers?: string[] | undefined;
491
620
  closed_at?: string | null | undefined;
492
621
  comments_count?: number | undefined;
493
622
  created_at?: string | undefined;
@@ -515,10 +644,12 @@ export declare class TeamTaskResource {
515
644
  description?: string | null | undefined;
516
645
  due_date?: string | null | undefined;
517
646
  epic?: string | null | undefined;
647
+ human_answer_receipts?: Record<string, unknown> | undefined;
518
648
  id: string;
519
649
  is_blocked?: boolean | undefined;
520
650
  is_stalled?: boolean | undefined;
521
651
  links?: Record<string, unknown> | undefined;
652
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
522
653
  metadata?: Record<string, unknown> | undefined;
523
654
  name: string;
524
655
  org?: string | null | undefined;
@@ -551,6 +682,7 @@ export declare class TeamTaskResource {
551
682
  tags?: string[] | undefined;
552
683
  target_binary?: string | null | undefined;
553
684
  target_version?: string | null | undefined;
685
+ task_epic?: string | null | undefined;
554
686
  team?: string | null | undefined;
555
687
  thread?: string | null | undefined;
556
688
  updated_at?: string | undefined;
@@ -579,9 +711,11 @@ export declare class TeamTaskResource {
579
711
  agent?: string | undefined;
580
712
  org?: string | undefined;
581
713
  task: {
714
+ blockers?: string[] | undefined;
582
715
  description?: string | undefined;
583
716
  due_date?: string | undefined;
584
717
  epic?: string | undefined;
718
+ epic_id?: string | undefined;
585
719
  id?: string | undefined;
586
720
  links?: Record<string, unknown> | undefined;
587
721
  metadata?: Record<string, unknown> | undefined;
@@ -630,6 +764,7 @@ export declare class TeamTaskResource {
630
764
  agent?: string | null | undefined;
631
765
  aggregate_version?: number | null | undefined;
632
766
  blocked_by_count?: number | undefined;
767
+ blockers?: string[] | undefined;
633
768
  closed_at?: string | null | undefined;
634
769
  comments_count?: number | undefined;
635
770
  created_at?: string | undefined;
@@ -657,10 +792,12 @@ export declare class TeamTaskResource {
657
792
  description?: string | null | undefined;
658
793
  due_date?: string | null | undefined;
659
794
  epic?: string | null | undefined;
795
+ human_answer_receipts?: Record<string, unknown> | undefined;
660
796
  id: string;
661
797
  is_blocked?: boolean | undefined;
662
798
  is_stalled?: boolean | undefined;
663
799
  links?: Record<string, unknown> | undefined;
800
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
664
801
  metadata?: Record<string, unknown> | undefined;
665
802
  name: string;
666
803
  org?: string | null | undefined;
@@ -693,6 +830,7 @@ export declare class TeamTaskResource {
693
830
  tags?: string[] | undefined;
694
831
  target_binary?: string | null | undefined;
695
832
  target_version?: string | null | undefined;
833
+ task_epic?: string | null | undefined;
696
834
  team?: string | null | undefined;
697
835
  thread?: string | null | undefined;
698
836
  updated_at?: string | undefined;
@@ -701,6 +839,102 @@ export declare class TeamTaskResource {
701
839
  }[];
702
840
  has_more: boolean;
703
841
  }>;
842
+ /**
843
+ * Find an owner's tasks by external reference
844
+ * Returns all exact external-reference matches owned by the requested principal. Multiple matches remain explicit; callers must not choose an arbitrary task.
845
+ * @param team - Team ID (`tem_...`). Only tasks belonging to this team are returned.
846
+ * @param params - Query parameters.
847
+ * @param params.user - User owner.
848
+ * @param params.org - Organization consistency check.
849
+ * @param params.externalScope - External host.
850
+ * @param params.objectType - External object type.
851
+ * @param params.objectId - External object identity.
852
+ * @returns Successful response
853
+ */
854
+ byExternalReference(team: string, params?: {
855
+ user?: string;
856
+ org?: string;
857
+ externalScope?: string;
858
+ objectType?: string;
859
+ objectId?: string;
860
+ }): Promise<{
861
+ data: {
862
+ agent?: string | null | undefined;
863
+ aggregate_version?: number | null | undefined;
864
+ blocked_by_count?: number | undefined;
865
+ blockers?: string[] | undefined;
866
+ closed_at?: string | null | undefined;
867
+ comments_count?: number | undefined;
868
+ created_at?: string | undefined;
869
+ created_by_actor?: {
870
+ alias?: string | null | undefined;
871
+ id?: string | null | undefined;
872
+ name?: string | null | undefined;
873
+ profile_picture?: {
874
+ file?: string | null | undefined;
875
+ height?: number | null | undefined;
876
+ media?: string | null | undefined;
877
+ mime_type?: string | null | undefined;
878
+ refresh_url?: string | null | undefined;
879
+ url?: string | null | undefined;
880
+ width?: number | null | undefined;
881
+ } | null | undefined;
882
+ } | null | undefined;
883
+ created_by_agent?: string | null | undefined;
884
+ created_by_user?: string | null | undefined;
885
+ current_lease?: {
886
+ expires_at: string;
887
+ harness: string;
888
+ session_name: string;
889
+ } | null | undefined;
890
+ description?: string | null | undefined;
891
+ due_date?: string | null | undefined;
892
+ epic?: string | null | undefined;
893
+ human_answer_receipts?: Record<string, unknown> | undefined;
894
+ id: string;
895
+ is_blocked?: boolean | undefined;
896
+ is_stalled?: boolean | undefined;
897
+ links?: Record<string, unknown> | undefined;
898
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
899
+ metadata?: Record<string, unknown> | undefined;
900
+ name: string;
901
+ org?: string | null | undefined;
902
+ owner_actor?: {
903
+ alias?: string | null | undefined;
904
+ id?: string | null | undefined;
905
+ name?: string | null | undefined;
906
+ profile_picture?: {
907
+ file?: string | null | undefined;
908
+ height?: number | null | undefined;
909
+ media?: string | null | undefined;
910
+ mime_type?: string | null | undefined;
911
+ refresh_url?: string | null | undefined;
912
+ url?: string | null | undefined;
913
+ width?: number | null | undefined;
914
+ } | null | undefined;
915
+ } | null | undefined;
916
+ owner_agent?: string | null | undefined;
917
+ owner_user?: string | null | undefined;
918
+ parent?: string | null | undefined;
919
+ priority?: number | undefined;
920
+ project_id?: string | null | undefined;
921
+ sandbox?: string | null | undefined;
922
+ source_id?: string | null | undefined;
923
+ source_scope?: string | null | undefined;
924
+ source_type?: string | null | undefined;
925
+ stalled_since?: string | null | undefined;
926
+ status: string;
927
+ subtasks_count?: number | undefined;
928
+ tags?: string[] | undefined;
929
+ target_binary?: string | null | undefined;
930
+ target_version?: string | null | undefined;
931
+ task_epic?: string | null | undefined;
932
+ team?: string | null | undefined;
933
+ thread?: string | null | undefined;
934
+ updated_at?: string | undefined;
935
+ user?: string | null | undefined;
936
+ }[];
937
+ }>;
704
938
  /**
705
939
  * Find or create a task by source
706
940
  * 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.
@@ -711,6 +945,7 @@ export declare class TeamTaskResource {
711
945
  * @param input.epic - Initial epic grouping.
712
946
  * @param input.name - Initial task name.
713
947
  * @param input.org - Explicit organization for privileged callers.
948
+ * @param input.owner_user - Initial assigned user; immutable on retries.
714
949
  * @param input.source_id - Source identity, for example owner/repo#123.
715
950
  * @param input.source_scope - Source scope, for example github.
716
951
  * @param input.source_type - Source type, for example pull_request.
@@ -724,6 +959,7 @@ export declare class TeamTaskResource {
724
959
  epic?: string | undefined;
725
960
  name: string;
726
961
  org?: string | undefined;
962
+ owner_user?: string | undefined;
727
963
  source_id: string;
728
964
  source_scope: string;
729
965
  source_type: string;
@@ -802,6 +1038,7 @@ export declare class TeamTaskResource {
802
1038
  agent?: string | null | undefined;
803
1039
  aggregate_version?: number | null | undefined;
804
1040
  blocked_by_count?: number | undefined;
1041
+ blockers?: string[] | undefined;
805
1042
  closed_at?: string | null | undefined;
806
1043
  comments_count?: number | undefined;
807
1044
  created_at?: string | undefined;
@@ -829,10 +1066,12 @@ export declare class TeamTaskResource {
829
1066
  description?: string | null | undefined;
830
1067
  due_date?: string | null | undefined;
831
1068
  epic?: string | null | undefined;
1069
+ human_answer_receipts?: Record<string, unknown> | undefined;
832
1070
  id: string;
833
1071
  is_blocked?: boolean | undefined;
834
1072
  is_stalled?: boolean | undefined;
835
1073
  links?: Record<string, unknown> | undefined;
1074
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
836
1075
  metadata?: Record<string, unknown> | undefined;
837
1076
  name: string;
838
1077
  org?: string | null | undefined;
@@ -865,6 +1104,7 @@ export declare class TeamTaskResource {
865
1104
  tags?: string[] | undefined;
866
1105
  target_binary?: string | null | undefined;
867
1106
  target_version?: string | null | undefined;
1107
+ task_epic?: string | null | undefined;
868
1108
  team?: string | null | undefined;
869
1109
  thread?: string | null | undefined;
870
1110
  updated_at?: string | undefined;
@@ -927,6 +1167,7 @@ export declare class TeamTaskResource {
927
1167
  agent?: string | null | undefined;
928
1168
  aggregate_version?: number | null | undefined;
929
1169
  blocked_by_count?: number | undefined;
1170
+ blockers?: string[] | undefined;
930
1171
  closed_at?: string | null | undefined;
931
1172
  comments_count?: number | undefined;
932
1173
  created_at?: string | undefined;
@@ -954,10 +1195,12 @@ export declare class TeamTaskResource {
954
1195
  description?: string | null | undefined;
955
1196
  due_date?: string | null | undefined;
956
1197
  epic?: string | null | undefined;
1198
+ human_answer_receipts?: Record<string, unknown> | undefined;
957
1199
  id: string;
958
1200
  is_blocked?: boolean | undefined;
959
1201
  is_stalled?: boolean | undefined;
960
1202
  links?: Record<string, unknown> | undefined;
1203
+ machine_rescope_receipts?: Record<string, unknown> | undefined;
961
1204
  metadata?: Record<string, unknown> | undefined;
962
1205
  name: string;
963
1206
  org?: string | null | undefined;
@@ -990,6 +1233,7 @@ export declare class TeamTaskResource {
990
1233
  tags?: string[] | undefined;
991
1234
  target_binary?: string | null | undefined;
992
1235
  target_version?: string | null | undefined;
1236
+ task_epic?: string | null | undefined;
993
1237
  team?: string | null | undefined;
994
1238
  thread?: string | null | undefined;
995
1239
  updated_at?: string | undefined;
@@ -1066,15 +1310,30 @@ export declare class TeamThreadResource {
1066
1310
  principal?: string | undefined;
1067
1311
  principal_type: string;
1068
1312
  }[] | undefined;
1313
+ add_denies?: {
1314
+ actions: string[];
1315
+ principal?: string | undefined;
1316
+ principal_type: string;
1317
+ }[] | undefined;
1318
+ denies?: {
1319
+ actions: string[];
1320
+ principal?: string | undefined;
1321
+ principal_type: string;
1322
+ }[] | undefined;
1069
1323
  grants?: {
1070
1324
  actions: string[];
1071
1325
  principal?: string | undefined;
1072
1326
  principal_type: string;
1073
1327
  }[] | undefined;
1328
+ preserve_denies?: boolean | undefined;
1074
1329
  remove?: {
1075
1330
  principal?: string | undefined;
1076
1331
  principal_type: string;
1077
1332
  }[] | undefined;
1333
+ remove_denies?: {
1334
+ principal?: string | undefined;
1335
+ principal_type: string;
1336
+ }[] | undefined;
1078
1337
  } | null | undefined;
1079
1338
  actors?: {
1080
1339
  alias?: string | null | undefined;
@@ -1230,15 +1489,30 @@ export declare class TeamThreadResource {
1230
1489
  principal?: string | undefined;
1231
1490
  principal_type: string;
1232
1491
  }[] | undefined;
1492
+ add_denies?: {
1493
+ actions: string[];
1494
+ principal?: string | undefined;
1495
+ principal_type: string;
1496
+ }[] | undefined;
1497
+ denies?: {
1498
+ actions: string[];
1499
+ principal?: string | undefined;
1500
+ principal_type: string;
1501
+ }[] | undefined;
1233
1502
  grants?: {
1234
1503
  actions: string[];
1235
1504
  principal?: string | undefined;
1236
1505
  principal_type: string;
1237
1506
  }[] | undefined;
1507
+ preserve_denies?: boolean | undefined;
1238
1508
  remove?: {
1239
1509
  principal?: string | undefined;
1240
1510
  principal_type: string;
1241
1511
  }[] | undefined;
1512
+ remove_denies?: {
1513
+ principal?: string | undefined;
1514
+ principal_type: string;
1515
+ }[] | undefined;
1242
1516
  } | null | undefined;
1243
1517
  app?: string | undefined;
1244
1518
  created_at?: string | undefined;
@@ -1411,6 +1685,7 @@ export declare class TeamThreadResource {
1411
1685
  sub_threads?: Record<string, unknown>[] | null | undefined;
1412
1686
  tags?: string[] | undefined;
1413
1687
  team?: string | null | undefined;
1688
+ thread_template_key?: string | null | undefined;
1414
1689
  title?: string | null | undefined;
1415
1690
  ttl?: string | null | undefined;
1416
1691
  unread_count?: number | null | undefined;
@@ -1496,6 +1771,7 @@ export declare class TeamResource {
1496
1771
  readonly custom_objects: TeamCustomObjectResource;
1497
1772
  readonly invite: TeamInviteResource;
1498
1773
  readonly members: MemberResource;
1774
+ readonly task_epics: TeamTaskEpicResource;
1499
1775
  readonly tasks: TeamTaskResource;
1500
1776
  readonly threads: TeamThreadResource;
1501
1777
  constructor(http: HttpClient);
@@ -1538,15 +1814,30 @@ export declare class TeamResource {
1538
1814
  principal?: string | undefined;
1539
1815
  principal_type: string;
1540
1816
  }[] | undefined;
1817
+ add_denies?: {
1818
+ actions: string[];
1819
+ principal?: string | undefined;
1820
+ principal_type: string;
1821
+ }[] | undefined;
1822
+ denies?: {
1823
+ actions: string[];
1824
+ principal?: string | undefined;
1825
+ principal_type: string;
1826
+ }[] | undefined;
1541
1827
  grants?: {
1542
1828
  actions: string[];
1543
1829
  principal?: string | undefined;
1544
1830
  principal_type: string;
1545
1831
  }[] | undefined;
1832
+ preserve_denies?: boolean | undefined;
1546
1833
  remove?: {
1547
1834
  principal?: string | undefined;
1548
1835
  principal_type: string;
1549
1836
  }[] | undefined;
1837
+ remove_denies?: {
1838
+ principal?: string | undefined;
1839
+ principal_type: string;
1840
+ }[] | undefined;
1550
1841
  } | null | undefined;
1551
1842
  app?: string | undefined;
1552
1843
  badges?: Record<string, unknown> | null | undefined;
@@ -1592,15 +1883,30 @@ export declare class TeamResource {
1592
1883
  principal?: string | undefined;
1593
1884
  principal_type: string;
1594
1885
  }[] | undefined;
1886
+ add_denies?: {
1887
+ actions: string[];
1888
+ principal?: string | undefined;
1889
+ principal_type: string;
1890
+ }[] | undefined;
1891
+ denies?: {
1892
+ actions: string[];
1893
+ principal?: string | undefined;
1894
+ principal_type: string;
1895
+ }[] | undefined;
1595
1896
  grants?: {
1596
1897
  actions: string[];
1597
1898
  principal?: string | undefined;
1598
1899
  principal_type: string;
1599
1900
  }[] | undefined;
1901
+ preserve_denies?: boolean | undefined;
1600
1902
  remove?: {
1601
1903
  principal?: string | undefined;
1602
1904
  principal_type: string;
1603
1905
  }[] | undefined;
1906
+ remove_denies?: {
1907
+ principal?: string | undefined;
1908
+ principal_type: string;
1909
+ }[] | undefined;
1604
1910
  } | undefined;
1605
1911
  description?: string | undefined;
1606
1912
  idempotency_key?: string | undefined;
@@ -1679,15 +1985,30 @@ export declare class TeamResource {
1679
1985
  principal?: string | undefined;
1680
1986
  principal_type: string;
1681
1987
  }[] | undefined;
1988
+ add_denies?: {
1989
+ actions: string[];
1990
+ principal?: string | undefined;
1991
+ principal_type: string;
1992
+ }[] | undefined;
1993
+ denies?: {
1994
+ actions: string[];
1995
+ principal?: string | undefined;
1996
+ principal_type: string;
1997
+ }[] | undefined;
1682
1998
  grants?: {
1683
1999
  actions: string[];
1684
2000
  principal?: string | undefined;
1685
2001
  principal_type: string;
1686
2002
  }[] | undefined;
2003
+ preserve_denies?: boolean | undefined;
1687
2004
  remove?: {
1688
2005
  principal?: string | undefined;
1689
2006
  principal_type: string;
1690
2007
  }[] | undefined;
2008
+ remove_denies?: {
2009
+ principal?: string | undefined;
2010
+ principal_type: string;
2011
+ }[] | undefined;
1691
2012
  } | undefined;
1692
2013
  description?: string | undefined;
1693
2014
  metadata?: Record<string, unknown> | undefined;
@@ -1726,15 +2047,30 @@ export declare class TeamResource {
1726
2047
  principal?: string | undefined;
1727
2048
  principal_type: string;
1728
2049
  }[] | undefined;
2050
+ add_denies?: {
2051
+ actions: string[];
2052
+ principal?: string | undefined;
2053
+ principal_type: string;
2054
+ }[] | undefined;
2055
+ denies?: {
2056
+ actions: string[];
2057
+ principal?: string | undefined;
2058
+ principal_type: string;
2059
+ }[] | undefined;
1729
2060
  grants?: {
1730
2061
  actions: string[];
1731
2062
  principal?: string | undefined;
1732
2063
  principal_type: string;
1733
2064
  }[] | undefined;
2065
+ preserve_denies?: boolean | undefined;
1734
2066
  remove?: {
1735
2067
  principal?: string | undefined;
1736
2068
  principal_type: string;
1737
2069
  }[] | undefined;
2070
+ remove_denies?: {
2071
+ principal?: string | undefined;
2072
+ principal_type: string;
2073
+ }[] | undefined;
1738
2074
  } | null | undefined;
1739
2075
  agent?: string | undefined;
1740
2076
  content_type?: string | undefined;
@@ -1864,55 +2200,5 @@ export declare class TeamResource {
1864
2200
  type: "user" | "agent";
1865
2201
  }[];
1866
2202
  }>;
1867
- /**
1868
- * List an owner's epic summaries
1869
- * 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.
1870
- * @param params - Query parameters.
1871
- * @param params.sourceScope - Exact source scope; supply all three source fields.
1872
- * @param params.sourceType - Exact source type.
1873
- * @param params.sourceId - Exact source ID.
1874
- * @param params.topPriority - Exact highest open priority, from 0 to 4.
1875
- * @param params.includeClosed - Include epics with no non-closed tasks; defaults to false.
1876
- * @param params.limit - Maximum epics; defaults to 50, capped at 100.
1877
- * @param params.afterCursor - Opaque forward cursor from the preceding page.
1878
- * @returns Successful response
1879
- */
1880
- taskEpics(team: string, params?: {
1881
- user?: string;
1882
- org?: string;
1883
- sourceScope?: string;
1884
- sourceType?: string;
1885
- sourceId?: string;
1886
- topPriority?: number;
1887
- includeClosed?: boolean;
1888
- limit?: number;
1889
- afterCursor?: string;
1890
- }): Promise<{
1891
- after_cursor?: string | null | undefined;
1892
- before_cursor?: string | null | undefined;
1893
- data: {
1894
- blocked_count: number;
1895
- counts: Record<string, unknown>;
1896
- epic: string;
1897
- next_ready: {
1898
- id: string;
1899
- name: string;
1900
- priority: number;
1901
- status: string;
1902
- }[];
1903
- root_blockers: {
1904
- downstream_count: number;
1905
- id: string;
1906
- name: string;
1907
- priority: number;
1908
- status: string;
1909
- }[];
1910
- root_blockers_partial: boolean;
1911
- top_open_priority?: number | null | undefined;
1912
- updated_at: string;
1913
- }[];
1914
- has_more: boolean;
1915
- no_epic_open_count: number;
1916
- }>;
1917
2203
  }
1918
2204
  //# sourceMappingURL=teams.d.ts.map