@scarn/sdk 0.8.1 → 0.8.2

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.
@@ -176,7 +176,57 @@ export type GetApiProjectsResolveResponses = {
176
176
  updatedAt: string;
177
177
  }>;
178
178
  defaultPipelineAssignment: {
179
+ rulesJson: {
180
+ rules: Array<{
181
+ conditions: {
182
+ [key: string]: unknown;
183
+ };
184
+ event: {
185
+ type: string;
186
+ params?: {
187
+ [key: string]: unknown;
188
+ };
189
+ };
190
+ name?: string;
191
+ priority?: number;
192
+ [key: string]: unknown | {
193
+ [key: string]: unknown;
194
+ } | {
195
+ type: string;
196
+ params?: {
197
+ [key: string]: unknown;
198
+ };
199
+ } | string | number | undefined;
200
+ }>;
201
+ [key: string]: unknown | Array<{
202
+ conditions: {
203
+ [key: string]: unknown;
204
+ };
205
+ event: {
206
+ type: string;
207
+ params?: {
208
+ [key: string]: unknown;
209
+ };
210
+ };
211
+ name?: string;
212
+ priority?: number;
213
+ [key: string]: unknown | {
214
+ [key: string]: unknown;
215
+ } | {
216
+ type: string;
217
+ params?: {
218
+ [key: string]: unknown;
219
+ };
220
+ } | string | number | undefined;
221
+ }>;
222
+ };
223
+ defaultEventType: 'assign' | 'skip';
224
+ defaultEventParamsJson: {
225
+ [key: string]: unknown;
226
+ } | unknown;
227
+ allowedEventTypes: Array<'assign' | 'skip'>;
179
228
  pipelineDefinitionId: string;
229
+ } | {
180
230
  rulesJson: {
181
231
  rules: Array<{
182
232
  conditions: {
@@ -226,6 +276,7 @@ export type GetApiProjectsResolveResponses = {
226
276
  [key: string]: unknown;
227
277
  } | unknown;
228
278
  allowedEventTypes: Array<'assign' | 'skip'>;
279
+ stepDefinitionKey: string;
229
280
  } | unknown;
230
281
  visibility: 'private' | 'public';
231
282
  createdAt: string;
@@ -245,6 +296,10 @@ export type GetApiProjectsByProjectIdWorkItemsData = {
245
296
  updatedAfter?: string;
246
297
  updatedBefore?: string;
247
298
  awaitingApproval?: string;
299
+ assignee?: string;
300
+ agent?: string;
301
+ status?: string;
302
+ platform?: string;
248
303
  sort?: string;
249
304
  };
250
305
  url: '/api/projects/{projectId}/work-items';
@@ -369,14 +424,32 @@ export type GetApiProjectsByProjectIdWorkItemsResponses = {
369
424
  createdByUserId: string | unknown;
370
425
  createdByUsername: string | unknown;
371
426
  createdByImage: string | unknown;
427
+ assigneeUserId: string | unknown;
372
428
  parentWorkItemId: string | unknown;
373
429
  state: 'open' | 'closed';
430
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
431
+ resolution: string | unknown;
432
+ closedAt: string | unknown;
433
+ closedByUserId: string | unknown;
434
+ closedByTaskId: string | unknown;
374
435
  spawnedByTaskId: string | unknown;
375
436
  createdAt: string;
376
437
  updatedAt: string;
377
438
  signalScore: number | unknown;
378
439
  latestExecutionStatus: string | unknown;
379
440
  awaitingApprovalCount: number;
441
+ assignee: {
442
+ userId: string;
443
+ username: string | unknown;
444
+ image: string | unknown;
445
+ } | unknown;
446
+ taskStatusCounts: {
447
+ running: number;
448
+ waitingForPerson: number;
449
+ waitingOnYou: number;
450
+ waitingForWork: number;
451
+ failed: number;
452
+ };
380
453
  }>;
381
454
  pagination: {
382
455
  page: number;
@@ -629,7 +702,57 @@ export type GetApiProjectsByProjectIdResponses = {
629
702
  updatedAt: string;
630
703
  }>;
631
704
  defaultPipelineAssignment: {
705
+ rulesJson: {
706
+ rules: Array<{
707
+ conditions: {
708
+ [key: string]: unknown;
709
+ };
710
+ event: {
711
+ type: string;
712
+ params?: {
713
+ [key: string]: unknown;
714
+ };
715
+ };
716
+ name?: string;
717
+ priority?: number;
718
+ [key: string]: unknown | {
719
+ [key: string]: unknown;
720
+ } | {
721
+ type: string;
722
+ params?: {
723
+ [key: string]: unknown;
724
+ };
725
+ } | string | number | undefined;
726
+ }>;
727
+ [key: string]: unknown | Array<{
728
+ conditions: {
729
+ [key: string]: unknown;
730
+ };
731
+ event: {
732
+ type: string;
733
+ params?: {
734
+ [key: string]: unknown;
735
+ };
736
+ };
737
+ name?: string;
738
+ priority?: number;
739
+ [key: string]: unknown | {
740
+ [key: string]: unknown;
741
+ } | {
742
+ type: string;
743
+ params?: {
744
+ [key: string]: unknown;
745
+ };
746
+ } | string | number | undefined;
747
+ }>;
748
+ };
749
+ defaultEventType: 'assign' | 'skip';
750
+ defaultEventParamsJson: {
751
+ [key: string]: unknown;
752
+ } | unknown;
753
+ allowedEventTypes: Array<'assign' | 'skip'>;
632
754
  pipelineDefinitionId: string;
755
+ } | {
633
756
  rulesJson: {
634
757
  rules: Array<{
635
758
  conditions: {
@@ -679,6 +802,7 @@ export type GetApiProjectsByProjectIdResponses = {
679
802
  [key: string]: unknown;
680
803
  } | unknown;
681
804
  allowedEventTypes: Array<'assign' | 'skip'>;
805
+ stepDefinitionKey: string;
682
806
  } | unknown;
683
807
  visibility: 'private' | 'public';
684
808
  createdAt: string;
@@ -753,7 +877,57 @@ export type GetApiProjectsResponses = {
753
877
  updatedAt: string;
754
878
  }>;
755
879
  defaultPipelineAssignment: {
880
+ rulesJson: {
881
+ rules: Array<{
882
+ conditions: {
883
+ [key: string]: unknown;
884
+ };
885
+ event: {
886
+ type: string;
887
+ params?: {
888
+ [key: string]: unknown;
889
+ };
890
+ };
891
+ name?: string;
892
+ priority?: number;
893
+ [key: string]: unknown | {
894
+ [key: string]: unknown;
895
+ } | {
896
+ type: string;
897
+ params?: {
898
+ [key: string]: unknown;
899
+ };
900
+ } | string | number | undefined;
901
+ }>;
902
+ [key: string]: unknown | Array<{
903
+ conditions: {
904
+ [key: string]: unknown;
905
+ };
906
+ event: {
907
+ type: string;
908
+ params?: {
909
+ [key: string]: unknown;
910
+ };
911
+ };
912
+ name?: string;
913
+ priority?: number;
914
+ [key: string]: unknown | {
915
+ [key: string]: unknown;
916
+ } | {
917
+ type: string;
918
+ params?: {
919
+ [key: string]: unknown;
920
+ };
921
+ } | string | number | undefined;
922
+ }>;
923
+ };
924
+ defaultEventType: 'assign' | 'skip';
925
+ defaultEventParamsJson: {
926
+ [key: string]: unknown;
927
+ } | unknown;
928
+ allowedEventTypes: Array<'assign' | 'skip'>;
756
929
  pipelineDefinitionId: string;
930
+ } | {
757
931
  rulesJson: {
758
932
  rules: Array<{
759
933
  conditions: {
@@ -803,6 +977,7 @@ export type GetApiProjectsResponses = {
803
977
  [key: string]: unknown;
804
978
  } | unknown;
805
979
  allowedEventTypes: Array<'assign' | 'skip'>;
980
+ stepDefinitionKey: string;
806
981
  } | unknown;
807
982
  visibility: 'private' | 'public';
808
983
  createdAt: string;
@@ -1026,7 +1201,6 @@ export type PostApiProjectsResponses = {
1026
1201
  updatedAt: string;
1027
1202
  }>;
1028
1203
  defaultPipelineAssignment: {
1029
- pipelineDefinitionId: string;
1030
1204
  rulesJson: {
1031
1205
  rules: Array<{
1032
1206
  conditions: {
@@ -1076,18 +1250,8 @@ export type PostApiProjectsResponses = {
1076
1250
  [key: string]: unknown;
1077
1251
  } | unknown;
1078
1252
  allowedEventTypes: Array<'assign' | 'skip'>;
1079
- } | unknown;
1080
- visibility: 'private' | 'public';
1081
- createdAt: string;
1082
- updatedAt: string;
1083
- initialSyncFailed: boolean;
1084
- };
1085
- };
1086
- export type PostApiProjectsResponse = PostApiProjectsResponses[keyof PostApiProjectsResponses];
1087
- export type PutApiProjectsByProjectIdDefaultPipelineAssignmentData = {
1088
- body: {
1089
- defaultPipelineAssignment: {
1090
1253
  pipelineDefinitionId: string;
1254
+ } | {
1091
1255
  rulesJson: {
1092
1256
  rules: Array<{
1093
1257
  conditions: {
@@ -1137,15 +1301,24 @@ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentData = {
1137
1301
  [key: string]: unknown;
1138
1302
  } | unknown;
1139
1303
  allowedEventTypes: Array<'assign' | 'skip'>;
1304
+ stepDefinitionKey: string;
1140
1305
  } | unknown;
1306
+ visibility: 'private' | 'public';
1307
+ createdAt: string;
1308
+ updatedAt: string;
1309
+ initialSyncFailed: boolean;
1141
1310
  };
1311
+ };
1312
+ export type PostApiProjectsResponse = PostApiProjectsResponses[keyof PostApiProjectsResponses];
1313
+ export type GetApiProjectsByProjectIdMembersData = {
1314
+ body?: never;
1142
1315
  path: {
1143
1316
  projectId: string;
1144
1317
  };
1145
1318
  query?: never;
1146
- url: '/api/projects/{projectId}/default-pipeline-assignment';
1319
+ url: '/api/projects/{projectId}/members';
1147
1320
  };
1148
- export type PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors = {
1321
+ export type GetApiProjectsByProjectIdMembersErrors = {
1149
1322
  /**
1150
1323
  * Response for status 401
1151
1324
  */
@@ -1242,28 +1415,72 @@ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors = {
1242
1415
  };
1243
1416
  };
1244
1417
  };
1245
- export type PutApiProjectsByProjectIdDefaultPipelineAssignmentError = PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors[keyof PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors];
1246
- export type PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses = {
1418
+ export type GetApiProjectsByProjectIdMembersError = GetApiProjectsByProjectIdMembersErrors[keyof GetApiProjectsByProjectIdMembersErrors];
1419
+ export type GetApiProjectsByProjectIdMembersResponses = {
1247
1420
  /**
1248
1421
  * Response for status 200
1249
1422
  */
1250
- 200: {
1251
- id: string;
1252
- name: string;
1253
- slug: string;
1254
- description: string | unknown;
1255
- gitUrl: string;
1256
- createdByUserId: string;
1257
- orgId: string;
1258
- ownerUsername: string | unknown;
1259
- memberships: Array<{
1260
- userId: string;
1261
- permissions: Array<string>;
1262
- createdAt: string;
1263
- updatedAt: string;
1264
- }>;
1423
+ 200: Array<{
1424
+ userId: string;
1425
+ username: string | unknown;
1426
+ image: string | unknown;
1427
+ }>;
1428
+ };
1429
+ export type GetApiProjectsByProjectIdMembersResponse = GetApiProjectsByProjectIdMembersResponses[keyof GetApiProjectsByProjectIdMembersResponses];
1430
+ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentData = {
1431
+ body: {
1265
1432
  defaultPipelineAssignment: {
1433
+ rulesJson: {
1434
+ rules: Array<{
1435
+ conditions: {
1436
+ [key: string]: unknown;
1437
+ };
1438
+ event: {
1439
+ type: string;
1440
+ params?: {
1441
+ [key: string]: unknown;
1442
+ };
1443
+ };
1444
+ name?: string;
1445
+ priority?: number;
1446
+ [key: string]: unknown | {
1447
+ [key: string]: unknown;
1448
+ } | {
1449
+ type: string;
1450
+ params?: {
1451
+ [key: string]: unknown;
1452
+ };
1453
+ } | string | number | undefined;
1454
+ }>;
1455
+ [key: string]: unknown | Array<{
1456
+ conditions: {
1457
+ [key: string]: unknown;
1458
+ };
1459
+ event: {
1460
+ type: string;
1461
+ params?: {
1462
+ [key: string]: unknown;
1463
+ };
1464
+ };
1465
+ name?: string;
1466
+ priority?: number;
1467
+ [key: string]: unknown | {
1468
+ [key: string]: unknown;
1469
+ } | {
1470
+ type: string;
1471
+ params?: {
1472
+ [key: string]: unknown;
1473
+ };
1474
+ } | string | number | undefined;
1475
+ }>;
1476
+ };
1477
+ defaultEventType: 'assign' | 'skip';
1478
+ defaultEventParamsJson: {
1479
+ [key: string]: unknown;
1480
+ } | unknown;
1481
+ allowedEventTypes: Array<'assign' | 'skip'>;
1266
1482
  pipelineDefinitionId: string;
1483
+ } | {
1267
1484
  rulesJson: {
1268
1485
  rules: Array<{
1269
1486
  conditions: {
@@ -1313,23 +1530,16 @@ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses = {
1313
1530
  [key: string]: unknown;
1314
1531
  } | unknown;
1315
1532
  allowedEventTypes: Array<'assign' | 'skip'>;
1533
+ stepDefinitionKey: string;
1316
1534
  } | unknown;
1317
- visibility: 'private' | 'public';
1318
- createdAt: string;
1319
- updatedAt: string;
1320
1535
  };
1321
- };
1322
- export type PutApiProjectsByProjectIdDefaultPipelineAssignmentResponse = PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses[keyof PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses];
1323
- export type PutApiProjectsByProjectIdMembersByUserIdPermissionsData = {
1324
- body?: never;
1325
1536
  path: {
1326
1537
  projectId: string;
1327
- userId: string;
1328
1538
  };
1329
1539
  query?: never;
1330
- url: '/api/projects/{projectId}/members/{userId}/permissions';
1540
+ url: '/api/projects/{projectId}/default-pipeline-assignment';
1331
1541
  };
1332
- export type PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors = {
1542
+ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors = {
1333
1543
  /**
1334
1544
  * Response for status 401
1335
1545
  */
@@ -1426,8 +1636,8 @@ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors = {
1426
1636
  };
1427
1637
  };
1428
1638
  };
1429
- export type PutApiProjectsByProjectIdMembersByUserIdPermissionsError = PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors[keyof PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors];
1430
- export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses = {
1639
+ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentError = PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors[keyof PutApiProjectsByProjectIdDefaultPipelineAssignmentErrors];
1640
+ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses = {
1431
1641
  /**
1432
1642
  * Response for status 200
1433
1643
  */
@@ -1447,7 +1657,57 @@ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses = {
1447
1657
  updatedAt: string;
1448
1658
  }>;
1449
1659
  defaultPipelineAssignment: {
1660
+ rulesJson: {
1661
+ rules: Array<{
1662
+ conditions: {
1663
+ [key: string]: unknown;
1664
+ };
1665
+ event: {
1666
+ type: string;
1667
+ params?: {
1668
+ [key: string]: unknown;
1669
+ };
1670
+ };
1671
+ name?: string;
1672
+ priority?: number;
1673
+ [key: string]: unknown | {
1674
+ [key: string]: unknown;
1675
+ } | {
1676
+ type: string;
1677
+ params?: {
1678
+ [key: string]: unknown;
1679
+ };
1680
+ } | string | number | undefined;
1681
+ }>;
1682
+ [key: string]: unknown | Array<{
1683
+ conditions: {
1684
+ [key: string]: unknown;
1685
+ };
1686
+ event: {
1687
+ type: string;
1688
+ params?: {
1689
+ [key: string]: unknown;
1690
+ };
1691
+ };
1692
+ name?: string;
1693
+ priority?: number;
1694
+ [key: string]: unknown | {
1695
+ [key: string]: unknown;
1696
+ } | {
1697
+ type: string;
1698
+ params?: {
1699
+ [key: string]: unknown;
1700
+ };
1701
+ } | string | number | undefined;
1702
+ }>;
1703
+ };
1704
+ defaultEventType: 'assign' | 'skip';
1705
+ defaultEventParamsJson: {
1706
+ [key: string]: unknown;
1707
+ } | unknown;
1708
+ allowedEventTypes: Array<'assign' | 'skip'>;
1450
1709
  pipelineDefinitionId: string;
1710
+ } | {
1451
1711
  rulesJson: {
1452
1712
  rules: Array<{
1453
1713
  conditions: {
@@ -1497,22 +1757,24 @@ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses = {
1497
1757
  [key: string]: unknown;
1498
1758
  } | unknown;
1499
1759
  allowedEventTypes: Array<'assign' | 'skip'>;
1760
+ stepDefinitionKey: string;
1500
1761
  } | unknown;
1501
1762
  visibility: 'private' | 'public';
1502
1763
  createdAt: string;
1503
1764
  updatedAt: string;
1504
1765
  };
1505
1766
  };
1506
- export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponse = PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses[keyof PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses];
1507
- export type GetApiStepDefinitionsData = {
1767
+ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentResponse = PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses[keyof PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses];
1768
+ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsData = {
1508
1769
  body?: never;
1509
- path?: never;
1510
- query: {
1770
+ path: {
1511
1771
  projectId: string;
1772
+ userId: string;
1512
1773
  };
1513
- url: '/api/step-definitions';
1774
+ query?: never;
1775
+ url: '/api/projects/{projectId}/members/{userId}/permissions';
1514
1776
  };
1515
- export type GetApiStepDefinitionsErrors = {
1777
+ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors = {
1516
1778
  /**
1517
1779
  * Response for status 401
1518
1780
  */
@@ -1551,6 +1813,25 @@ export type GetApiStepDefinitionsErrors = {
1551
1813
  [key: string]: unknown;
1552
1814
  };
1553
1815
  };
1816
+ /**
1817
+ * Response for status 404
1818
+ */
1819
+ 404: {
1820
+ type: string;
1821
+ title: string;
1822
+ status: number;
1823
+ detail?: string;
1824
+ instance?: string;
1825
+ code?: string;
1826
+ errors?: Array<{
1827
+ path: string;
1828
+ message: string;
1829
+ summary?: string;
1830
+ }>;
1831
+ meta?: {
1832
+ [key: string]: unknown;
1833
+ };
1834
+ };
1554
1835
  /**
1555
1836
  * Response for status 422
1556
1837
  */
@@ -1590,119 +1871,336 @@ export type GetApiStepDefinitionsErrors = {
1590
1871
  };
1591
1872
  };
1592
1873
  };
1593
- export type GetApiStepDefinitionsError = GetApiStepDefinitionsErrors[keyof GetApiStepDefinitionsErrors];
1594
- export type GetApiStepDefinitionsResponses = {
1874
+ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsError = PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors[keyof PutApiProjectsByProjectIdMembersByUserIdPermissionsErrors];
1875
+ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses = {
1595
1876
  /**
1596
1877
  * Response for status 200
1597
1878
  */
1598
- 200: Array<{
1879
+ 200: {
1599
1880
  id: string;
1600
- projectId: string;
1601
- key: string;
1602
1881
  name: string;
1882
+ slug: string;
1603
1883
  description: string | unknown;
1604
- prompt: string | unknown;
1605
- version: number;
1606
- kind: 'built_in' | 'user_defined' | 'code';
1607
- entrypointJson: {
1608
- sourceFile: string;
1609
- } | unknown;
1610
- executionMode: 'workspace' | 'no_workspace';
1611
- inputSchemaJson: {
1612
- [key: string]: unknown;
1613
- };
1614
- resultSchemaJson: {
1615
- [key: string]: unknown;
1616
- } | unknown;
1617
- errors: Array<string>;
1618
- retry: Array<{
1619
- on: Array<string>;
1620
- maxAttempts: number;
1884
+ gitUrl: string;
1885
+ createdByUserId: string;
1886
+ orgId: string;
1887
+ ownerUsername: string | unknown;
1888
+ memberships: Array<{
1889
+ userId: string;
1890
+ permissions: Array<string>;
1891
+ createdAt: string;
1892
+ updatedAt: string;
1621
1893
  }>;
1622
- opencodeMcpJson: {
1623
- [key: string]: {
1624
- type: string;
1625
- command: Array<string>;
1626
- cwd?: string;
1627
- environment?: {
1628
- [key: string]: string;
1629
- };
1630
- disabled?: boolean;
1631
- codemode?: boolean;
1632
- timeout?: {
1633
- startup?: number;
1634
- catalog?: number;
1635
- execution?: number;
1636
- };
1637
- protocol?: 'legacy' | 'auto' | '2026-07-28';
1638
- } | {
1639
- type: string;
1640
- url: string;
1641
- headers?: {
1642
- [key: string]: string;
1643
- };
1644
- oauth?: {
1645
- client_id?: string;
1646
- client_secret?: string;
1647
- scope?: string;
1648
- callback_port?: number;
1649
- redirect_uri?: string;
1650
- auth_server_metadata_url?: string;
1651
- } | boolean;
1652
- disabled?: boolean;
1653
- codemode?: boolean;
1654
- timeout?: {
1655
- startup?: number;
1656
- catalog?: number;
1657
- execution?: number;
1658
- };
1659
- protocol?: 'legacy' | 'auto' | '2026-07-28';
1660
- } | {
1661
- type: string;
1662
- name?: string;
1663
- disabled?: boolean;
1664
- codemode?: boolean;
1665
- timeout?: {
1666
- startup?: number;
1667
- catalog?: number;
1668
- execution?: number;
1669
- };
1670
- protocol?: 'legacy' | 'auto' | '2026-07-28';
1894
+ defaultPipelineAssignment: {
1895
+ rulesJson: {
1896
+ rules: Array<{
1897
+ conditions: {
1898
+ [key: string]: unknown;
1899
+ };
1900
+ event: {
1901
+ type: string;
1902
+ params?: {
1903
+ [key: string]: unknown;
1904
+ };
1905
+ };
1906
+ name?: string;
1907
+ priority?: number;
1908
+ [key: string]: unknown | {
1909
+ [key: string]: unknown;
1910
+ } | {
1911
+ type: string;
1912
+ params?: {
1913
+ [key: string]: unknown;
1914
+ };
1915
+ } | string | number | undefined;
1916
+ }>;
1917
+ [key: string]: unknown | Array<{
1918
+ conditions: {
1919
+ [key: string]: unknown;
1920
+ };
1921
+ event: {
1922
+ type: string;
1923
+ params?: {
1924
+ [key: string]: unknown;
1925
+ };
1926
+ };
1927
+ name?: string;
1928
+ priority?: number;
1929
+ [key: string]: unknown | {
1930
+ [key: string]: unknown;
1931
+ } | {
1932
+ type: string;
1933
+ params?: {
1934
+ [key: string]: unknown;
1935
+ };
1936
+ } | string | number | undefined;
1937
+ }>;
1671
1938
  };
1672
- } | unknown;
1673
- healthChecksJson: Array<{
1674
- name?: string;
1675
- severity: 'required' | 'warn';
1676
- timeoutSeconds: number;
1677
- serialGroup?: string;
1678
- kind: string;
1679
- tool: string;
1680
- mcp?: string;
1681
- args?: {
1939
+ defaultEventType: 'assign' | 'skip';
1940
+ defaultEventParamsJson: {
1682
1941
  [key: string]: unknown;
1683
- };
1684
- } | {
1685
- name?: string;
1686
- severity: 'required' | 'warn';
1687
- timeoutSeconds: number;
1688
- serialGroup?: string;
1689
- kind: string;
1690
- command: Array<string>;
1691
- expectExitCode: number;
1692
- }> | unknown;
1693
- envJson: Array<{
1694
- name: string;
1695
- source: string;
1696
- value: string;
1697
- secret: boolean;
1698
- applies: 'agent' | 'setup' | 'both';
1942
+ } | unknown;
1943
+ allowedEventTypes: Array<'assign' | 'skip'>;
1944
+ pipelineDefinitionId: string;
1699
1945
  } | {
1700
- name: string;
1701
- source: string;
1702
- from: string;
1703
- secret: boolean;
1704
- optional: boolean;
1705
- default?: string;
1946
+ rulesJson: {
1947
+ rules: Array<{
1948
+ conditions: {
1949
+ [key: string]: unknown;
1950
+ };
1951
+ event: {
1952
+ type: string;
1953
+ params?: {
1954
+ [key: string]: unknown;
1955
+ };
1956
+ };
1957
+ name?: string;
1958
+ priority?: number;
1959
+ [key: string]: unknown | {
1960
+ [key: string]: unknown;
1961
+ } | {
1962
+ type: string;
1963
+ params?: {
1964
+ [key: string]: unknown;
1965
+ };
1966
+ } | string | number | undefined;
1967
+ }>;
1968
+ [key: string]: unknown | Array<{
1969
+ conditions: {
1970
+ [key: string]: unknown;
1971
+ };
1972
+ event: {
1973
+ type: string;
1974
+ params?: {
1975
+ [key: string]: unknown;
1976
+ };
1977
+ };
1978
+ name?: string;
1979
+ priority?: number;
1980
+ [key: string]: unknown | {
1981
+ [key: string]: unknown;
1982
+ } | {
1983
+ type: string;
1984
+ params?: {
1985
+ [key: string]: unknown;
1986
+ };
1987
+ } | string | number | undefined;
1988
+ }>;
1989
+ };
1990
+ defaultEventType: 'assign' | 'skip';
1991
+ defaultEventParamsJson: {
1992
+ [key: string]: unknown;
1993
+ } | unknown;
1994
+ allowedEventTypes: Array<'assign' | 'skip'>;
1995
+ stepDefinitionKey: string;
1996
+ } | unknown;
1997
+ visibility: 'private' | 'public';
1998
+ createdAt: string;
1999
+ updatedAt: string;
2000
+ };
2001
+ };
2002
+ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponse = PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses[keyof PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses];
2003
+ export type GetApiStepDefinitionsData = {
2004
+ body?: never;
2005
+ path?: never;
2006
+ query: {
2007
+ projectId: string;
2008
+ };
2009
+ url: '/api/step-definitions';
2010
+ };
2011
+ export type GetApiStepDefinitionsErrors = {
2012
+ /**
2013
+ * Response for status 401
2014
+ */
2015
+ 401: {
2016
+ type: string;
2017
+ title: string;
2018
+ status: number;
2019
+ detail?: string;
2020
+ instance?: string;
2021
+ code?: string;
2022
+ errors?: Array<{
2023
+ path: string;
2024
+ message: string;
2025
+ summary?: string;
2026
+ }>;
2027
+ meta?: {
2028
+ [key: string]: unknown;
2029
+ };
2030
+ };
2031
+ /**
2032
+ * Response for status 403
2033
+ */
2034
+ 403: {
2035
+ type: string;
2036
+ title: string;
2037
+ status: number;
2038
+ detail?: string;
2039
+ instance?: string;
2040
+ code?: string;
2041
+ errors?: Array<{
2042
+ path: string;
2043
+ message: string;
2044
+ summary?: string;
2045
+ }>;
2046
+ meta?: {
2047
+ [key: string]: unknown;
2048
+ };
2049
+ };
2050
+ /**
2051
+ * Response for status 422
2052
+ */
2053
+ 422: {
2054
+ type: string;
2055
+ title: string;
2056
+ status: number;
2057
+ detail?: string;
2058
+ instance?: string;
2059
+ code?: string;
2060
+ errors?: Array<{
2061
+ path: string;
2062
+ message: string;
2063
+ summary?: string;
2064
+ }>;
2065
+ meta?: {
2066
+ [key: string]: unknown;
2067
+ };
2068
+ };
2069
+ /**
2070
+ * Response for status 500
2071
+ */
2072
+ 500: {
2073
+ type: string;
2074
+ title: string;
2075
+ status: number;
2076
+ detail?: string;
2077
+ instance?: string;
2078
+ code?: string;
2079
+ errors?: Array<{
2080
+ path: string;
2081
+ message: string;
2082
+ summary?: string;
2083
+ }>;
2084
+ meta?: {
2085
+ [key: string]: unknown;
2086
+ };
2087
+ };
2088
+ };
2089
+ export type GetApiStepDefinitionsError = GetApiStepDefinitionsErrors[keyof GetApiStepDefinitionsErrors];
2090
+ export type GetApiStepDefinitionsResponses = {
2091
+ /**
2092
+ * Response for status 200
2093
+ */
2094
+ 200: Array<{
2095
+ id: string;
2096
+ projectId: string;
2097
+ key: string;
2098
+ name: string;
2099
+ description: string | unknown;
2100
+ prompt: string | unknown;
2101
+ version: number;
2102
+ kind: 'built_in' | 'user_defined' | 'code';
2103
+ entrypointJson: {
2104
+ sourceFile: string;
2105
+ } | unknown;
2106
+ executionMode: 'workspace' | 'no_workspace';
2107
+ inputSchemaJson: {
2108
+ [key: string]: unknown;
2109
+ };
2110
+ resultSchemaJson: {
2111
+ [key: string]: unknown;
2112
+ } | unknown;
2113
+ errors: Array<string>;
2114
+ retry: Array<{
2115
+ on: Array<string>;
2116
+ maxAttempts: number;
2117
+ }>;
2118
+ workItemPermissions: Array<'self' | 'children'>;
2119
+ maxTurns: number | unknown;
2120
+ opencodeMcpJson: {
2121
+ [key: string]: {
2122
+ type: string;
2123
+ command: Array<string>;
2124
+ cwd?: string;
2125
+ environment?: {
2126
+ [key: string]: string;
2127
+ };
2128
+ disabled?: boolean;
2129
+ codemode?: boolean;
2130
+ timeout?: {
2131
+ startup?: number;
2132
+ catalog?: number;
2133
+ execution?: number;
2134
+ };
2135
+ protocol?: 'legacy' | 'auto' | '2026-07-28';
2136
+ } | {
2137
+ type: string;
2138
+ url: string;
2139
+ headers?: {
2140
+ [key: string]: string;
2141
+ };
2142
+ oauth?: {
2143
+ client_id?: string;
2144
+ client_secret?: string;
2145
+ scope?: string;
2146
+ callback_port?: number;
2147
+ redirect_uri?: string;
2148
+ auth_server_metadata_url?: string;
2149
+ } | boolean;
2150
+ disabled?: boolean;
2151
+ codemode?: boolean;
2152
+ timeout?: {
2153
+ startup?: number;
2154
+ catalog?: number;
2155
+ execution?: number;
2156
+ };
2157
+ protocol?: 'legacy' | 'auto' | '2026-07-28';
2158
+ } | {
2159
+ type: string;
2160
+ name?: string;
2161
+ disabled?: boolean;
2162
+ codemode?: boolean;
2163
+ timeout?: {
2164
+ startup?: number;
2165
+ catalog?: number;
2166
+ execution?: number;
2167
+ };
2168
+ protocol?: 'legacy' | 'auto' | '2026-07-28';
2169
+ };
2170
+ } | unknown;
2171
+ healthChecksJson: Array<{
2172
+ name?: string;
2173
+ severity: 'required' | 'warn';
2174
+ timeoutSeconds: number;
2175
+ serialGroup?: string;
2176
+ kind: string;
2177
+ tool: string;
2178
+ mcp?: string;
2179
+ args?: {
2180
+ [key: string]: unknown;
2181
+ };
2182
+ } | {
2183
+ name?: string;
2184
+ severity: 'required' | 'warn';
2185
+ timeoutSeconds: number;
2186
+ serialGroup?: string;
2187
+ kind: string;
2188
+ command: Array<string>;
2189
+ expectExitCode: number;
2190
+ }> | unknown;
2191
+ envJson: Array<{
2192
+ name: string;
2193
+ source: string;
2194
+ value: string;
2195
+ secret: boolean;
2196
+ applies: 'agent' | 'setup' | 'both';
2197
+ } | {
2198
+ name: string;
2199
+ source: string;
2200
+ from: string;
2201
+ secret: boolean;
2202
+ optional: boolean;
2203
+ default?: string;
1706
2204
  mcp?: string;
1707
2205
  applies: 'agent' | 'setup' | 'both';
1708
2206
  }> | unknown;
@@ -1747,6 +2245,8 @@ export type PostApiStepDefinitionsData = {
1747
2245
  on: Array<string>;
1748
2246
  maxAttempts: number;
1749
2247
  }>;
2248
+ workItemPermissions?: Array<'self' | 'children'>;
2249
+ maxTurns?: number | unknown;
1750
2250
  opencodeMcpJson?: {
1751
2251
  [key: string]: {
1752
2252
  type: string;
@@ -2015,6 +2515,8 @@ export type PostApiStepDefinitionsResponses = {
2015
2515
  on: Array<string>;
2016
2516
  maxAttempts: number;
2017
2517
  }>;
2518
+ workItemPermissions: Array<'self' | 'children'>;
2519
+ maxTurns: number | unknown;
2018
2520
  opencodeMcpJson: {
2019
2521
  [key: string]: {
2020
2522
  type: string;
@@ -2143,6 +2645,8 @@ export type PutApiStepDefinitionsData = {
2143
2645
  on: Array<string>;
2144
2646
  maxAttempts: number;
2145
2647
  }>;
2648
+ workItemPermissions?: Array<'self' | 'children'>;
2649
+ maxTurns?: number | unknown;
2146
2650
  opencodeMcpJson?: {
2147
2651
  [key: string]: {
2148
2652
  type: string;
@@ -2373,6 +2877,8 @@ export type PutApiStepDefinitionsResponses = {
2373
2877
  on: Array<string>;
2374
2878
  maxAttempts: number;
2375
2879
  }>;
2880
+ workItemPermissions: Array<'self' | 'children'>;
2881
+ maxTurns: number | unknown;
2376
2882
  opencodeMcpJson: {
2377
2883
  [key: string]: {
2378
2884
  type: string;
@@ -2611,6 +3117,8 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
2611
3117
  on: Array<string>;
2612
3118
  maxAttempts: number;
2613
3119
  }>;
3120
+ workItemPermissions: Array<'self' | 'children'>;
3121
+ maxTurns: number | unknown;
2614
3122
  opencodeMcpJson: {
2615
3123
  [key: string]: {
2616
3124
  type: string;
@@ -2849,6 +3357,8 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
2849
3357
  on: Array<string>;
2850
3358
  maxAttempts: number;
2851
3359
  }>;
3360
+ workItemPermissions: Array<'self' | 'children'>;
3361
+ maxTurns: number | unknown;
2852
3362
  opencodeMcpJson: {
2853
3363
  [key: string]: {
2854
3364
  type: string;
@@ -2957,10 +3467,16 @@ export type PostApiTasksData = {
2957
3467
  body: {
2958
3468
  projectId: string;
2959
3469
  workItemId: string;
3470
+ inputJson?: unknown;
3471
+ executionTimeoutSeconds?: number | unknown;
2960
3472
  stepDefinitionId: string;
2961
3473
  stepDefinitionVersion: number;
3474
+ } | {
3475
+ projectId: string;
3476
+ workItemId: string;
2962
3477
  inputJson?: unknown;
2963
3478
  executionTimeoutSeconds?: number | unknown;
3479
+ prompt: string;
2964
3480
  };
2965
3481
  path?: never;
2966
3482
  query?: never;
@@ -3117,10 +3633,11 @@ export type PostApiTasksResponses = {
3117
3633
  taskExecutionConfigId: string | unknown;
3118
3634
  inputJson: unknown;
3119
3635
  retryJson: unknown;
3636
+ workItemPermissions: Array<'self' | 'children'>;
3120
3637
  maxTurns: number | unknown;
3121
3638
  heartbeatSeconds: number | unknown;
3122
3639
  executionTimeoutSeconds: number | unknown;
3123
- status: 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled';
3640
+ status: 'waiting_for_work' | 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled';
3124
3641
  resultJson: unknown;
3125
3642
  errorJson: unknown;
3126
3643
  startedByUserId: string | unknown;
@@ -3158,10 +3675,125 @@ export type PostApiTasksResponses = {
3158
3675
  sessionRestored: boolean | unknown;
3159
3676
  createdAt: string;
3160
3677
  updatedAt: string;
3161
- };
3678
+ } | unknown;
3162
3679
  };
3163
3680
  };
3164
3681
  export type PostApiTasksResponse = PostApiTasksResponses[keyof PostApiTasksResponses];
3682
+ export type PostApiTasksByTaskIdCancelData = {
3683
+ body?: never;
3684
+ path: {
3685
+ taskId: string;
3686
+ };
3687
+ query?: never;
3688
+ url: '/api/tasks/{taskId}/cancel';
3689
+ };
3690
+ export type PostApiTasksByTaskIdCancelErrors = {
3691
+ /**
3692
+ * Response for status 401
3693
+ */
3694
+ 401: {
3695
+ type: string;
3696
+ title: string;
3697
+ status: number;
3698
+ detail?: string;
3699
+ instance?: string;
3700
+ code?: string;
3701
+ errors?: Array<{
3702
+ path: string;
3703
+ message: string;
3704
+ summary?: string;
3705
+ }>;
3706
+ meta?: {
3707
+ [key: string]: unknown;
3708
+ };
3709
+ };
3710
+ /**
3711
+ * Response for status 403
3712
+ */
3713
+ 403: {
3714
+ type: string;
3715
+ title: string;
3716
+ status: number;
3717
+ detail?: string;
3718
+ instance?: string;
3719
+ code?: string;
3720
+ errors?: Array<{
3721
+ path: string;
3722
+ message: string;
3723
+ summary?: string;
3724
+ }>;
3725
+ meta?: {
3726
+ [key: string]: unknown;
3727
+ };
3728
+ };
3729
+ /**
3730
+ * Response for status 404
3731
+ */
3732
+ 404: {
3733
+ type: string;
3734
+ title: string;
3735
+ status: number;
3736
+ detail?: string;
3737
+ instance?: string;
3738
+ code?: string;
3739
+ errors?: Array<{
3740
+ path: string;
3741
+ message: string;
3742
+ summary?: string;
3743
+ }>;
3744
+ meta?: {
3745
+ [key: string]: unknown;
3746
+ };
3747
+ };
3748
+ /**
3749
+ * Response for status 422
3750
+ */
3751
+ 422: {
3752
+ type: string;
3753
+ title: string;
3754
+ status: number;
3755
+ detail?: string;
3756
+ instance?: string;
3757
+ code?: string;
3758
+ errors?: Array<{
3759
+ path: string;
3760
+ message: string;
3761
+ summary?: string;
3762
+ }>;
3763
+ meta?: {
3764
+ [key: string]: unknown;
3765
+ };
3766
+ };
3767
+ /**
3768
+ * Response for status 500
3769
+ */
3770
+ 500: {
3771
+ type: string;
3772
+ title: string;
3773
+ status: number;
3774
+ detail?: string;
3775
+ instance?: string;
3776
+ code?: string;
3777
+ errors?: Array<{
3778
+ path: string;
3779
+ message: string;
3780
+ summary?: string;
3781
+ }>;
3782
+ meta?: {
3783
+ [key: string]: unknown;
3784
+ };
3785
+ };
3786
+ };
3787
+ export type PostApiTasksByTaskIdCancelError = PostApiTasksByTaskIdCancelErrors[keyof PostApiTasksByTaskIdCancelErrors];
3788
+ export type PostApiTasksByTaskIdCancelResponses = {
3789
+ /**
3790
+ * Response for status 200
3791
+ */
3792
+ 200: {
3793
+ taskId: string;
3794
+ };
3795
+ };
3796
+ export type PostApiTasksByTaskIdCancelResponse = PostApiTasksByTaskIdCancelResponses[keyof PostApiTasksByTaskIdCancelResponses];
3165
3797
  export type GetApiTasksByTaskIdData = {
3166
3798
  body?: never;
3167
3799
  path: {
@@ -3282,16 +3914,48 @@ export type GetApiTasksByTaskIdResponses = {
3282
3914
  taskExecutionConfigId: string | unknown;
3283
3915
  inputJson: unknown;
3284
3916
  retryJson: unknown;
3917
+ workItemPermissions: Array<'self' | 'children'>;
3285
3918
  maxTurns: number | unknown;
3286
3919
  heartbeatSeconds: number | unknown;
3287
3920
  executionTimeoutSeconds: number | unknown;
3288
- status: 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled';
3921
+ status: 'waiting_for_work' | 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled';
3289
3922
  resultJson: unknown;
3290
3923
  errorJson: unknown;
3291
3924
  startedByUserId: string | unknown;
3292
3925
  previousTaskId: string | unknown;
3293
3926
  createdAt: string;
3294
3927
  updatedAt: string;
3928
+ waitingOnYou: boolean;
3929
+ waitingOn: Array<{
3930
+ userId: string;
3931
+ username: string | unknown;
3932
+ }>;
3933
+ conversationId: string | unknown;
3934
+ workItem: {
3935
+ id: string;
3936
+ platformKey: string;
3937
+ title: string;
3938
+ };
3939
+ startedBy: {
3940
+ userId: string;
3941
+ username: string | unknown;
3942
+ image: string | unknown;
3943
+ } | unknown;
3944
+ source: {
3945
+ kind: string;
3946
+ stepDefinitionId: string;
3947
+ key: string;
3948
+ name: string;
3949
+ version: number;
3950
+ } | {
3951
+ kind: string;
3952
+ promptPreview: string;
3953
+ } | {
3954
+ kind: string;
3955
+ name: string | unknown;
3956
+ };
3957
+ pipelineRunId: string | unknown;
3958
+ nodeId: string | unknown;
3295
3959
  };
3296
3960
  };
3297
3961
  export type GetApiTasksByTaskIdResponse = GetApiTasksByTaskIdResponses[keyof GetApiTasksByTaskIdResponses];
@@ -3438,23 +4102,28 @@ export type GetApiTasksByTaskIdRunsResponses = {
3438
4102
  }>;
3439
4103
  };
3440
4104
  export type GetApiTasksByTaskIdRunsResponse = GetApiTasksByTaskIdRunsResponses[keyof GetApiTasksByTaskIdRunsResponses];
3441
- export type PostApiTaskRunsClaimsData = {
3442
- body: {
4105
+ export type GetApiProjectsByProjectIdTasksData = {
4106
+ body?: never;
4107
+ path: {
3443
4108
  projectId: string;
3444
- workerId: string;
3445
- batchSize: number;
3446
- leaseDurationSeconds: number;
3447
- workItemId?: string;
3448
4109
  };
3449
- path?: never;
3450
- query?: never;
3451
- url: '/api/task-runs/claims';
4110
+ query?: {
4111
+ status?: 'waiting_for_work' | 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled' | Array<'waiting_for_work' | 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled'>;
4112
+ kind?: 'agent' | 'code';
4113
+ waitingOnMe?: boolean;
4114
+ startedByMe?: boolean;
4115
+ workItemId?: string | Array<string>;
4116
+ latestPerWorkItem?: boolean;
4117
+ limit?: number;
4118
+ before?: string;
4119
+ };
4120
+ url: '/api/projects/{projectId}/tasks';
3452
4121
  };
3453
- export type PostApiTaskRunsClaimsErrors = {
4122
+ export type GetApiProjectsByProjectIdTasksErrors = {
3454
4123
  /**
3455
- * Response for status 400
4124
+ * Response for status 401
3456
4125
  */
3457
- 400: {
4126
+ 401: {
3458
4127
  type: string;
3459
4128
  title: string;
3460
4129
  status: number;
@@ -3471,9 +4140,9 @@ export type PostApiTaskRunsClaimsErrors = {
3471
4140
  };
3472
4141
  };
3473
4142
  /**
3474
- * Response for status 401
4143
+ * Response for status 403
3475
4144
  */
3476
- 401: {
4145
+ 403: {
3477
4146
  type: string;
3478
4147
  title: string;
3479
4148
  status: number;
@@ -3490,9 +4159,9 @@ export type PostApiTaskRunsClaimsErrors = {
3490
4159
  };
3491
4160
  };
3492
4161
  /**
3493
- * Response for status 403
4162
+ * Response for status 404
3494
4163
  */
3495
- 403: {
4164
+ 404: {
3496
4165
  type: string;
3497
4166
  title: string;
3498
4167
  status: number;
@@ -3547,63 +4216,86 @@ export type PostApiTaskRunsClaimsErrors = {
3547
4216
  };
3548
4217
  };
3549
4218
  };
3550
- export type PostApiTaskRunsClaimsError = PostApiTaskRunsClaimsErrors[keyof PostApiTaskRunsClaimsErrors];
3551
- export type PostApiTaskRunsClaimsResponses = {
4219
+ export type GetApiProjectsByProjectIdTasksError = GetApiProjectsByProjectIdTasksErrors[keyof GetApiProjectsByProjectIdTasksErrors];
4220
+ export type GetApiProjectsByProjectIdTasksResponses = {
3552
4221
  /**
3553
4222
  * Response for status 200
3554
4223
  */
3555
- 200: Array<{
3556
- task: {
4224
+ 200: {
4225
+ tasks: Array<{
3557
4226
  id: string;
3558
- taskId: string;
3559
- number: number;
3560
- reason: 'initial' | 'retry' | 'continuation';
3561
4227
  projectId: string;
3562
- workItemId: string;
3563
- taskExecutionConfigId: string | unknown;
3564
- name: string | unknown;
3565
4228
  kind: 'agent' | 'code';
3566
- previousTaskRunId: string | unknown;
3567
- baseBranch: string | unknown;
3568
- heartbeatSeconds: number | unknown;
3569
- status: 'pending' | 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped' | 'yielded';
3570
- inputJson: unknown;
3571
- claimedBy: string | unknown;
3572
- claimedAt: string | unknown;
3573
- lastHeartbeatAt: string | unknown;
3574
- leaseExpiresAt: string | unknown;
3575
- executionTimeoutSeconds: number | unknown;
3576
- executionDeadlineAt: string | unknown;
3577
- startedAt: string | unknown;
3578
- completedAt: string | unknown;
3579
- resultJson: unknown;
3580
- errorJson: unknown;
3581
- workBranch: string | unknown;
3582
- createdFromBranch: string | unknown;
3583
- sessionRestored: boolean | unknown;
4229
+ name: string | unknown;
4230
+ status: 'waiting_for_work' | 'queued' | 'running' | 'waiting_for_person' | 'succeeded' | 'failed' | 'cancelled';
3584
4231
  createdAt: string;
3585
4232
  updatedAt: string;
4233
+ runNumber: number | unknown;
4234
+ durationMs: number | unknown;
4235
+ latest: {
4236
+ kind: 'error' | 'message' | 'log';
4237
+ text: string;
4238
+ } | unknown;
4239
+ pipelineRun: {
4240
+ name: string;
4241
+ number: number;
4242
+ } | unknown;
4243
+ waitingOnYou: boolean;
4244
+ waitingOn: Array<{
4245
+ userId: string;
4246
+ username: string | unknown;
4247
+ }>;
4248
+ conversationId: string | unknown;
4249
+ workItem: {
4250
+ id: string;
4251
+ platformKey: string;
4252
+ title: string;
4253
+ };
4254
+ startedBy: {
4255
+ userId: string;
4256
+ username: string | unknown;
4257
+ image: string | unknown;
4258
+ } | unknown;
4259
+ source: {
4260
+ kind: string;
4261
+ stepDefinitionId: string;
4262
+ key: string;
4263
+ name: string;
4264
+ version: number;
4265
+ } | {
4266
+ kind: string;
4267
+ promptPreview: string;
4268
+ } | {
4269
+ kind: string;
4270
+ name: string | unknown;
4271
+ };
4272
+ pipelineRunId: string | unknown;
4273
+ nodeId: string | unknown;
4274
+ }>;
4275
+ nextCursor: string | unknown;
4276
+ counts: {
4277
+ [key: string]: number;
3586
4278
  };
3587
- claimToken: string;
3588
- }>;
4279
+ };
3589
4280
  };
3590
- export type PostApiTaskRunsClaimsResponse = PostApiTaskRunsClaimsResponses[keyof PostApiTaskRunsClaimsResponses];
3591
- export type PutApiTaskRunsByTaskRunIdHeartbeatData = {
4281
+ export type GetApiProjectsByProjectIdTasksResponse = GetApiProjectsByProjectIdTasksResponses[keyof GetApiProjectsByProjectIdTasksResponses];
4282
+ export type PostApiTaskRunsClaimsData = {
3592
4283
  body: {
3593
- claimToken: string;
4284
+ projectId: string;
4285
+ workerId: string;
4286
+ batchSize: number;
3594
4287
  leaseDurationSeconds: number;
4288
+ workItemId?: string;
3595
4289
  };
3596
- path: {
3597
- taskRunId: string;
3598
- };
4290
+ path?: never;
3599
4291
  query?: never;
3600
- url: '/api/task-runs/{taskRunId}/heartbeat';
4292
+ url: '/api/task-runs/claims';
3601
4293
  };
3602
- export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
4294
+ export type PostApiTaskRunsClaimsErrors = {
3603
4295
  /**
3604
- * Response for status 401
4296
+ * Response for status 400
3605
4297
  */
3606
- 401: {
4298
+ 400: {
3607
4299
  type: string;
3608
4300
  title: string;
3609
4301
  status: number;
@@ -3620,9 +4312,9 @@ export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
3620
4312
  };
3621
4313
  };
3622
4314
  /**
3623
- * Response for status 403
4315
+ * Response for status 401
3624
4316
  */
3625
- 403: {
4317
+ 401: {
3626
4318
  type: string;
3627
4319
  title: string;
3628
4320
  status: number;
@@ -3639,9 +4331,9 @@ export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
3639
4331
  };
3640
4332
  };
3641
4333
  /**
3642
- * Response for status 404
4334
+ * Response for status 403
3643
4335
  */
3644
- 404: {
4336
+ 403: {
3645
4337
  type: string;
3646
4338
  title: string;
3647
4339
  status: number;
@@ -3658,9 +4350,9 @@ export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
3658
4350
  };
3659
4351
  };
3660
4352
  /**
3661
- * Response for status 409
4353
+ * Response for status 422
3662
4354
  */
3663
- 409: {
4355
+ 422: {
3664
4356
  type: string;
3665
4357
  title: string;
3666
4358
  status: number;
@@ -3677,9 +4369,9 @@ export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
3677
4369
  };
3678
4370
  };
3679
4371
  /**
3680
- * Response for status 422
4372
+ * Response for status 500
3681
4373
  */
3682
- 422: {
4374
+ 500: {
3683
4375
  type: string;
3684
4376
  title: string;
3685
4377
  status: number;
@@ -3695,7 +4387,156 @@ export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
3695
4387
  [key: string]: unknown;
3696
4388
  };
3697
4389
  };
3698
- /**
4390
+ };
4391
+ export type PostApiTaskRunsClaimsError = PostApiTaskRunsClaimsErrors[keyof PostApiTaskRunsClaimsErrors];
4392
+ export type PostApiTaskRunsClaimsResponses = {
4393
+ /**
4394
+ * Response for status 200
4395
+ */
4396
+ 200: Array<{
4397
+ task: {
4398
+ id: string;
4399
+ taskId: string;
4400
+ number: number;
4401
+ reason: 'initial' | 'retry' | 'continuation';
4402
+ projectId: string;
4403
+ workItemId: string;
4404
+ taskExecutionConfigId: string | unknown;
4405
+ name: string | unknown;
4406
+ kind: 'agent' | 'code';
4407
+ previousTaskRunId: string | unknown;
4408
+ baseBranch: string | unknown;
4409
+ heartbeatSeconds: number | unknown;
4410
+ status: 'pending' | 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped' | 'yielded';
4411
+ inputJson: unknown;
4412
+ claimedBy: string | unknown;
4413
+ claimedAt: string | unknown;
4414
+ lastHeartbeatAt: string | unknown;
4415
+ leaseExpiresAt: string | unknown;
4416
+ executionTimeoutSeconds: number | unknown;
4417
+ executionDeadlineAt: string | unknown;
4418
+ startedAt: string | unknown;
4419
+ completedAt: string | unknown;
4420
+ resultJson: unknown;
4421
+ errorJson: unknown;
4422
+ workBranch: string | unknown;
4423
+ createdFromBranch: string | unknown;
4424
+ sessionRestored: boolean | unknown;
4425
+ createdAt: string;
4426
+ updatedAt: string;
4427
+ };
4428
+ claimToken: string;
4429
+ }>;
4430
+ };
4431
+ export type PostApiTaskRunsClaimsResponse = PostApiTaskRunsClaimsResponses[keyof PostApiTaskRunsClaimsResponses];
4432
+ export type PutApiTaskRunsByTaskRunIdHeartbeatData = {
4433
+ body: {
4434
+ claimToken: string;
4435
+ leaseDurationSeconds: number;
4436
+ };
4437
+ path: {
4438
+ taskRunId: string;
4439
+ };
4440
+ query?: never;
4441
+ url: '/api/task-runs/{taskRunId}/heartbeat';
4442
+ };
4443
+ export type PutApiTaskRunsByTaskRunIdHeartbeatErrors = {
4444
+ /**
4445
+ * Response for status 401
4446
+ */
4447
+ 401: {
4448
+ type: string;
4449
+ title: string;
4450
+ status: number;
4451
+ detail?: string;
4452
+ instance?: string;
4453
+ code?: string;
4454
+ errors?: Array<{
4455
+ path: string;
4456
+ message: string;
4457
+ summary?: string;
4458
+ }>;
4459
+ meta?: {
4460
+ [key: string]: unknown;
4461
+ };
4462
+ };
4463
+ /**
4464
+ * Response for status 403
4465
+ */
4466
+ 403: {
4467
+ type: string;
4468
+ title: string;
4469
+ status: number;
4470
+ detail?: string;
4471
+ instance?: string;
4472
+ code?: string;
4473
+ errors?: Array<{
4474
+ path: string;
4475
+ message: string;
4476
+ summary?: string;
4477
+ }>;
4478
+ meta?: {
4479
+ [key: string]: unknown;
4480
+ };
4481
+ };
4482
+ /**
4483
+ * Response for status 404
4484
+ */
4485
+ 404: {
4486
+ type: string;
4487
+ title: string;
4488
+ status: number;
4489
+ detail?: string;
4490
+ instance?: string;
4491
+ code?: string;
4492
+ errors?: Array<{
4493
+ path: string;
4494
+ message: string;
4495
+ summary?: string;
4496
+ }>;
4497
+ meta?: {
4498
+ [key: string]: unknown;
4499
+ };
4500
+ };
4501
+ /**
4502
+ * Response for status 409
4503
+ */
4504
+ 409: {
4505
+ type: string;
4506
+ title: string;
4507
+ status: number;
4508
+ detail?: string;
4509
+ instance?: string;
4510
+ code?: string;
4511
+ errors?: Array<{
4512
+ path: string;
4513
+ message: string;
4514
+ summary?: string;
4515
+ }>;
4516
+ meta?: {
4517
+ [key: string]: unknown;
4518
+ };
4519
+ };
4520
+ /**
4521
+ * Response for status 422
4522
+ */
4523
+ 422: {
4524
+ type: string;
4525
+ title: string;
4526
+ status: number;
4527
+ detail?: string;
4528
+ instance?: string;
4529
+ code?: string;
4530
+ errors?: Array<{
4531
+ path: string;
4532
+ message: string;
4533
+ summary?: string;
4534
+ }>;
4535
+ meta?: {
4536
+ [key: string]: unknown;
4537
+ };
4538
+ };
4539
+ /**
3699
4540
  * Response for status 500
3700
4541
  */
3701
4542
  500: {
@@ -3925,6 +4766,8 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
3925
4766
  [key: string]: unknown;
3926
4767
  } | unknown;
3927
4768
  turnsRemaining: number | unknown;
4769
+ workItemId: string;
4770
+ workItemPermissions: Array<'self' | 'children'>;
3928
4771
  };
3929
4772
  runtime: {
3930
4773
  executionMode: 'workspace' | 'no_workspace';
@@ -4055,6 +4898,39 @@ export type PostApiTaskRunsByTaskRunIdCompletionsData = {
4055
4898
  workBranch?: string | unknown;
4056
4899
  createdFromBranch?: string | unknown;
4057
4900
  sessionRestored?: boolean | unknown;
4901
+ workItemChanges?: Array<{
4902
+ kind: string;
4903
+ workItemId: string;
4904
+ title: string;
4905
+ description: string;
4906
+ fields?: {
4907
+ [key: string]: unknown;
4908
+ };
4909
+ blockedBy?: Array<string>;
4910
+ } | {
4911
+ kind: string;
4912
+ blockedWorkItemId: string;
4913
+ blockingWorkItemId: string;
4914
+ remove?: boolean;
4915
+ } | {
4916
+ kind: string;
4917
+ workItemId: string;
4918
+ description: string;
4919
+ descriptionVersion: number;
4920
+ } | {
4921
+ kind: string;
4922
+ workItemId: string;
4923
+ body: string;
4924
+ } | {
4925
+ kind: string;
4926
+ workItemId: string;
4927
+ reason: 'completed' | 'out_of_scope' | 'superseded';
4928
+ resolution?: string | unknown;
4929
+ } | {
4930
+ kind: string;
4931
+ workItemId: string;
4932
+ stepKey: string;
4933
+ }>;
4058
4934
  };
4059
4935
  path: {
4060
4936
  taskRunId: string;
@@ -4219,11 +5095,45 @@ export type PostApiTaskRunsByTaskRunIdCompletionsResponse = PostApiTaskRunsByTas
4219
5095
  export type PostApiTaskRunsByTaskRunIdYieldsData = {
4220
5096
  body: {
4221
5097
  claimToken: string;
4222
- message: string;
5098
+ kind?: 'hand_over' | 'wait_for_work';
5099
+ message?: string;
4223
5100
  workBranch?: string | unknown;
4224
5101
  createdFromBranch?: string | unknown;
4225
5102
  sessionObjectKey?: string | unknown;
4226
5103
  sessionRestored?: boolean | unknown;
5104
+ workItemChanges?: Array<{
5105
+ kind: string;
5106
+ workItemId: string;
5107
+ title: string;
5108
+ description: string;
5109
+ fields?: {
5110
+ [key: string]: unknown;
5111
+ };
5112
+ blockedBy?: Array<string>;
5113
+ } | {
5114
+ kind: string;
5115
+ blockedWorkItemId: string;
5116
+ blockingWorkItemId: string;
5117
+ remove?: boolean;
5118
+ } | {
5119
+ kind: string;
5120
+ workItemId: string;
5121
+ description: string;
5122
+ descriptionVersion: number;
5123
+ } | {
5124
+ kind: string;
5125
+ workItemId: string;
5126
+ body: string;
5127
+ } | {
5128
+ kind: string;
5129
+ workItemId: string;
5130
+ reason: 'completed' | 'out_of_scope' | 'superseded';
5131
+ resolution?: string | unknown;
5132
+ } | {
5133
+ kind: string;
5134
+ workItemId: string;
5135
+ stepKey: string;
5136
+ }>;
4227
5137
  };
4228
5138
  path: {
4229
5139
  taskRunId: string;
@@ -5357,20 +6267,18 @@ export type PostApiTaskRunsByTaskRunIdSessionUploadUrlResponses = {
5357
6267
  };
5358
6268
  };
5359
6269
  export type PostApiTaskRunsByTaskRunIdSessionUploadUrlResponse = PostApiTaskRunsByTaskRunIdSessionUploadUrlResponses[keyof PostApiTaskRunsByTaskRunIdSessionUploadUrlResponses];
5360
- export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlData = {
6270
+ export type PostApiTaskRunsByTaskRunIdWorkItemReadsData = {
5361
6271
  body: {
5362
6272
  claimToken: string;
5363
- relativeStorePath: string;
5364
- contentType?: string;
5365
- sizeBytes?: number;
6273
+ workItemId: string;
5366
6274
  };
5367
6275
  path: {
5368
6276
  taskRunId: string;
5369
6277
  };
5370
6278
  query?: never;
5371
- url: '/api/task-runs/{taskRunId}/artifact-upload-url';
6279
+ url: '/api/task-runs/{taskRunId}/work-item-reads';
5372
6280
  };
5373
- export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors = {
6281
+ export type PostApiTaskRunsByTaskRunIdWorkItemReadsErrors = {
5374
6282
  /**
5375
6283
  * Response for status 401
5376
6284
  */
@@ -5390,25 +6298,6 @@ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors = {
5390
6298
  [key: string]: unknown;
5391
6299
  };
5392
6300
  };
5393
- /**
5394
- * Response for status 402
5395
- */
5396
- 402: {
5397
- type: string;
5398
- title: string;
5399
- status: number;
5400
- detail?: string;
5401
- instance?: string;
5402
- code?: string;
5403
- errors?: Array<{
5404
- path: string;
5405
- message: string;
5406
- summary?: string;
5407
- }>;
5408
- meta?: {
5409
- [key: string]: unknown;
5410
- };
5411
- };
5412
6301
  /**
5413
6302
  * Response for status 403
5414
6303
  */
@@ -5505,21 +6394,201 @@ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors = {
5505
6394
  };
5506
6395
  };
5507
6396
  };
5508
- export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlError = PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors[keyof PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors];
5509
- export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponses = {
6397
+ export type PostApiTaskRunsByTaskRunIdWorkItemReadsError = PostApiTaskRunsByTaskRunIdWorkItemReadsErrors[keyof PostApiTaskRunsByTaskRunIdWorkItemReadsErrors];
6398
+ export type PostApiTaskRunsByTaskRunIdWorkItemReadsResponses = {
5510
6399
  /**
5511
6400
  * Response for status 200
5512
6401
  */
5513
6402
  200: {
5514
- uploadUrl: string;
5515
- storeRef: string;
5516
- objectKey: string;
5517
- expiresInSeconds: number;
6403
+ id: string;
6404
+ title: string;
6405
+ description: string | unknown;
6406
+ descriptionVersion: number;
6407
+ fields: {
6408
+ [key: string]: unknown;
6409
+ };
6410
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
6411
+ platformKey: string;
6412
+ parentWorkItemId: string | unknown;
6413
+ state: 'open' | 'closed';
6414
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
6415
+ resolution: string | unknown;
6416
+ blockers: Array<{
6417
+ id: string;
6418
+ title: string;
6419
+ state: 'open' | 'closed';
6420
+ }>;
6421
+ children: Array<{
6422
+ id: string;
6423
+ title: string;
6424
+ state: 'open' | 'closed';
6425
+ }>;
5518
6426
  };
5519
6427
  };
5520
- export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponse = PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponses[keyof PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponses];
5521
- export type GetApiTaskRunsByTaskRunIdArtifactsData = {
5522
- body?: never;
6428
+ export type PostApiTaskRunsByTaskRunIdWorkItemReadsResponse = PostApiTaskRunsByTaskRunIdWorkItemReadsResponses[keyof PostApiTaskRunsByTaskRunIdWorkItemReadsResponses];
6429
+ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlData = {
6430
+ body: {
6431
+ claimToken: string;
6432
+ relativeStorePath: string;
6433
+ contentType?: string;
6434
+ sizeBytes?: number;
6435
+ };
6436
+ path: {
6437
+ taskRunId: string;
6438
+ };
6439
+ query?: never;
6440
+ url: '/api/task-runs/{taskRunId}/artifact-upload-url';
6441
+ };
6442
+ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors = {
6443
+ /**
6444
+ * Response for status 401
6445
+ */
6446
+ 401: {
6447
+ type: string;
6448
+ title: string;
6449
+ status: number;
6450
+ detail?: string;
6451
+ instance?: string;
6452
+ code?: string;
6453
+ errors?: Array<{
6454
+ path: string;
6455
+ message: string;
6456
+ summary?: string;
6457
+ }>;
6458
+ meta?: {
6459
+ [key: string]: unknown;
6460
+ };
6461
+ };
6462
+ /**
6463
+ * Response for status 402
6464
+ */
6465
+ 402: {
6466
+ type: string;
6467
+ title: string;
6468
+ status: number;
6469
+ detail?: string;
6470
+ instance?: string;
6471
+ code?: string;
6472
+ errors?: Array<{
6473
+ path: string;
6474
+ message: string;
6475
+ summary?: string;
6476
+ }>;
6477
+ meta?: {
6478
+ [key: string]: unknown;
6479
+ };
6480
+ };
6481
+ /**
6482
+ * Response for status 403
6483
+ */
6484
+ 403: {
6485
+ type: string;
6486
+ title: string;
6487
+ status: number;
6488
+ detail?: string;
6489
+ instance?: string;
6490
+ code?: string;
6491
+ errors?: Array<{
6492
+ path: string;
6493
+ message: string;
6494
+ summary?: string;
6495
+ }>;
6496
+ meta?: {
6497
+ [key: string]: unknown;
6498
+ };
6499
+ };
6500
+ /**
6501
+ * Response for status 404
6502
+ */
6503
+ 404: {
6504
+ type: string;
6505
+ title: string;
6506
+ status: number;
6507
+ detail?: string;
6508
+ instance?: string;
6509
+ code?: string;
6510
+ errors?: Array<{
6511
+ path: string;
6512
+ message: string;
6513
+ summary?: string;
6514
+ }>;
6515
+ meta?: {
6516
+ [key: string]: unknown;
6517
+ };
6518
+ };
6519
+ /**
6520
+ * Response for status 409
6521
+ */
6522
+ 409: {
6523
+ type: string;
6524
+ title: string;
6525
+ status: number;
6526
+ detail?: string;
6527
+ instance?: string;
6528
+ code?: string;
6529
+ errors?: Array<{
6530
+ path: string;
6531
+ message: string;
6532
+ summary?: string;
6533
+ }>;
6534
+ meta?: {
6535
+ [key: string]: unknown;
6536
+ };
6537
+ };
6538
+ /**
6539
+ * Response for status 422
6540
+ */
6541
+ 422: {
6542
+ type: string;
6543
+ title: string;
6544
+ status: number;
6545
+ detail?: string;
6546
+ instance?: string;
6547
+ code?: string;
6548
+ errors?: Array<{
6549
+ path: string;
6550
+ message: string;
6551
+ summary?: string;
6552
+ }>;
6553
+ meta?: {
6554
+ [key: string]: unknown;
6555
+ };
6556
+ };
6557
+ /**
6558
+ * Response for status 500
6559
+ */
6560
+ 500: {
6561
+ type: string;
6562
+ title: string;
6563
+ status: number;
6564
+ detail?: string;
6565
+ instance?: string;
6566
+ code?: string;
6567
+ errors?: Array<{
6568
+ path: string;
6569
+ message: string;
6570
+ summary?: string;
6571
+ }>;
6572
+ meta?: {
6573
+ [key: string]: unknown;
6574
+ };
6575
+ };
6576
+ };
6577
+ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlError = PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors[keyof PostApiTaskRunsByTaskRunIdArtifactUploadUrlErrors];
6578
+ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponses = {
6579
+ /**
6580
+ * Response for status 200
6581
+ */
6582
+ 200: {
6583
+ uploadUrl: string;
6584
+ storeRef: string;
6585
+ objectKey: string;
6586
+ expiresInSeconds: number;
6587
+ };
6588
+ };
6589
+ export type PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponse = PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponses[keyof PostApiTaskRunsByTaskRunIdArtifactUploadUrlResponses];
6590
+ export type GetApiTaskRunsByTaskRunIdArtifactsData = {
6591
+ body?: never;
5523
6592
  path: {
5524
6593
  taskRunId: string;
5525
6594
  };
@@ -8142,16 +9211,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunRe
8142
9211
  };
8143
9212
  };
8144
9213
  export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunResponse = PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunResponses[keyof PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunResponses];
8145
- export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueData = {
8146
- body?: never;
9214
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerData = {
9215
+ body: {
9216
+ body: string;
9217
+ };
8147
9218
  path: {
8148
9219
  pipelineExecutionId: string;
8149
9220
  questionId: string;
8150
9221
  };
8151
9222
  query?: never;
8152
- url: '/api/pipeline-executions/{pipelineExecutionId}/questions/{questionId}/continue';
9223
+ url: '/api/pipeline-executions/{pipelineExecutionId}/questions/{questionId}/answer';
8153
9224
  };
8154
- export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueErrors = {
9225
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerErrors = {
8155
9226
  /**
8156
9227
  * Response for status 401
8157
9228
  */
@@ -8267,8 +9338,8 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdC
8267
9338
  };
8268
9339
  };
8269
9340
  };
8270
- export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueError = PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueErrors[keyof PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueErrors];
8271
- export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueResponses = {
9341
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerError = PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerErrors[keyof PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerErrors];
9342
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerResponses = {
8272
9343
  /**
8273
9344
  * Response for status 200
8274
9345
  */
@@ -8276,81 +9347,233 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdC
8276
9347
  id: string;
8277
9348
  projectId: string;
8278
9349
  workItemId: string;
8279
- workItemTitle: string;
8280
- pipelineDefinitionId: string;
8281
- pipelineDefinitionVersionId: string;
8282
- runStatus: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
8283
- status: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
8284
- waitingFor: 'decision' | 'reply' | unknown;
8285
- endNodeId: string | unknown;
8286
- error: {
8287
- name: string;
8288
- message: string;
8289
- cause?: unknown;
8290
- } | unknown;
8291
- triggeredByUserId: string | unknown;
8292
- cancelledByUserId: string | unknown;
8293
- startedAt: string | unknown;
8294
- completedAt: string | unknown;
9350
+ authorUserId: string | unknown;
9351
+ authorKind: 'user' | 'agent';
9352
+ agentSessionId: string | unknown;
9353
+ sourceNotificationId: string | unknown;
9354
+ externalCommentId: string | unknown;
9355
+ externalCommentUrl: string | unknown;
9356
+ authoredByTaskId: string | unknown;
9357
+ authorName: string | unknown;
9358
+ parentCommentId: string | unknown;
9359
+ authorUsername: string | unknown;
9360
+ authorImage: string | unknown;
9361
+ body: string;
9362
+ isPinned: boolean;
8295
9363
  createdAt: string;
8296
9364
  updatedAt: string;
8297
- visits: Array<{
8298
- id: string;
8299
- nodeId: string;
8300
- nodeKind: 'step' | 'wait' | 'succeed' | 'fail';
8301
- laneId: string | unknown;
8302
- fromVisitId: string | unknown;
8303
- fromLaneGroupId: string | unknown;
8304
- transition: {
8305
- kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
8306
- index: number;
8307
- };
8308
- routing: {
8309
- [key: string]: unknown;
8310
- } | unknown;
8311
- status: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled' | 'superseded';
8312
- waitFor: 'decision' | 'reply' | unknown;
8313
- actions: Array<{
8314
- key: string;
8315
- label: string;
8316
- body: 'optional' | 'required';
8317
- }> | unknown;
8318
- input: {
8319
- [key: string]: unknown;
8320
- };
8321
- result: unknown;
8322
- resultTaskId: string | unknown;
8323
- error: {
8324
- name: string;
8325
- message: string;
8326
- cause?: unknown;
8327
- } | unknown;
8328
- tasks: Array<{
8329
- taskId: string;
8330
- attemptNumber: number;
8331
- status: 'pending' | 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped' | 'yielded';
8332
- startedAt: string | unknown;
8333
- completedAt: string | unknown;
8334
- workBranch: string | unknown;
8335
- }>;
8336
- questions: Array<{
8337
- questionId: string;
8338
- commentId: string;
8339
- status: 'open' | 'answered' | 'not_needed';
8340
- }>;
8341
- conversationId: string | unknown;
8342
- createdByUserId: string | unknown;
8343
- resolvedByUserId: string | unknown;
8344
- resolvedAt: string | unknown;
8345
- createdAt: string;
8346
- completedAt: string | unknown;
8347
- }>;
8348
- laneGroups: Array<{
8349
- id: string;
8350
- parentLaneId: string | unknown;
8351
- spawnedByVisitId: string;
8352
- kind: 'each' | 'all';
8353
- laneCount: number;
9365
+ };
9366
+ };
9367
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerResponse = PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerResponses[keyof PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerResponses];
9368
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueData = {
9369
+ body?: never;
9370
+ path: {
9371
+ pipelineExecutionId: string;
9372
+ questionId: string;
9373
+ };
9374
+ query?: never;
9375
+ url: '/api/pipeline-executions/{pipelineExecutionId}/questions/{questionId}/continue';
9376
+ };
9377
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueErrors = {
9378
+ /**
9379
+ * Response for status 401
9380
+ */
9381
+ 401: {
9382
+ type: string;
9383
+ title: string;
9384
+ status: number;
9385
+ detail?: string;
9386
+ instance?: string;
9387
+ code?: string;
9388
+ errors?: Array<{
9389
+ path: string;
9390
+ message: string;
9391
+ summary?: string;
9392
+ }>;
9393
+ meta?: {
9394
+ [key: string]: unknown;
9395
+ };
9396
+ };
9397
+ /**
9398
+ * Response for status 403
9399
+ */
9400
+ 403: {
9401
+ type: string;
9402
+ title: string;
9403
+ status: number;
9404
+ detail?: string;
9405
+ instance?: string;
9406
+ code?: string;
9407
+ errors?: Array<{
9408
+ path: string;
9409
+ message: string;
9410
+ summary?: string;
9411
+ }>;
9412
+ meta?: {
9413
+ [key: string]: unknown;
9414
+ };
9415
+ };
9416
+ /**
9417
+ * Response for status 404
9418
+ */
9419
+ 404: {
9420
+ type: string;
9421
+ title: string;
9422
+ status: number;
9423
+ detail?: string;
9424
+ instance?: string;
9425
+ code?: string;
9426
+ errors?: Array<{
9427
+ path: string;
9428
+ message: string;
9429
+ summary?: string;
9430
+ }>;
9431
+ meta?: {
9432
+ [key: string]: unknown;
9433
+ };
9434
+ };
9435
+ /**
9436
+ * Response for status 409
9437
+ */
9438
+ 409: {
9439
+ type: string;
9440
+ title: string;
9441
+ status: number;
9442
+ detail?: string;
9443
+ instance?: string;
9444
+ code?: string;
9445
+ errors?: Array<{
9446
+ path: string;
9447
+ message: string;
9448
+ summary?: string;
9449
+ }>;
9450
+ meta?: {
9451
+ [key: string]: unknown;
9452
+ };
9453
+ };
9454
+ /**
9455
+ * Response for status 422
9456
+ */
9457
+ 422: {
9458
+ type: string;
9459
+ title: string;
9460
+ status: number;
9461
+ detail?: string;
9462
+ instance?: string;
9463
+ code?: string;
9464
+ errors?: Array<{
9465
+ path: string;
9466
+ message: string;
9467
+ summary?: string;
9468
+ }>;
9469
+ meta?: {
9470
+ [key: string]: unknown;
9471
+ };
9472
+ };
9473
+ /**
9474
+ * Response for status 500
9475
+ */
9476
+ 500: {
9477
+ type: string;
9478
+ title: string;
9479
+ status: number;
9480
+ detail?: string;
9481
+ instance?: string;
9482
+ code?: string;
9483
+ errors?: Array<{
9484
+ path: string;
9485
+ message: string;
9486
+ summary?: string;
9487
+ }>;
9488
+ meta?: {
9489
+ [key: string]: unknown;
9490
+ };
9491
+ };
9492
+ };
9493
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueError = PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueErrors[keyof PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueErrors];
9494
+ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdContinueResponses = {
9495
+ /**
9496
+ * Response for status 200
9497
+ */
9498
+ 200: {
9499
+ id: string;
9500
+ projectId: string;
9501
+ workItemId: string;
9502
+ workItemTitle: string;
9503
+ pipelineDefinitionId: string;
9504
+ pipelineDefinitionVersionId: string;
9505
+ runStatus: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
9506
+ status: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
9507
+ waitingFor: 'decision' | 'reply' | unknown;
9508
+ endNodeId: string | unknown;
9509
+ error: {
9510
+ name: string;
9511
+ message: string;
9512
+ cause?: unknown;
9513
+ } | unknown;
9514
+ triggeredByUserId: string | unknown;
9515
+ cancelledByUserId: string | unknown;
9516
+ startedAt: string | unknown;
9517
+ completedAt: string | unknown;
9518
+ createdAt: string;
9519
+ updatedAt: string;
9520
+ visits: Array<{
9521
+ id: string;
9522
+ nodeId: string;
9523
+ nodeKind: 'step' | 'wait' | 'succeed' | 'fail';
9524
+ laneId: string | unknown;
9525
+ fromVisitId: string | unknown;
9526
+ fromLaneGroupId: string | unknown;
9527
+ transition: {
9528
+ kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
9529
+ index: number;
9530
+ };
9531
+ routing: {
9532
+ [key: string]: unknown;
9533
+ } | unknown;
9534
+ status: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled' | 'superseded';
9535
+ waitFor: 'decision' | 'reply' | unknown;
9536
+ actions: Array<{
9537
+ key: string;
9538
+ label: string;
9539
+ body: 'optional' | 'required';
9540
+ }> | unknown;
9541
+ input: {
9542
+ [key: string]: unknown;
9543
+ };
9544
+ result: unknown;
9545
+ resultTaskId: string | unknown;
9546
+ error: {
9547
+ name: string;
9548
+ message: string;
9549
+ cause?: unknown;
9550
+ } | unknown;
9551
+ tasks: Array<{
9552
+ taskId: string;
9553
+ attemptNumber: number;
9554
+ status: 'pending' | 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped' | 'yielded';
9555
+ startedAt: string | unknown;
9556
+ completedAt: string | unknown;
9557
+ workBranch: string | unknown;
9558
+ }>;
9559
+ questions: Array<{
9560
+ questionId: string;
9561
+ commentId: string;
9562
+ status: 'open' | 'answered' | 'not_needed';
9563
+ }>;
9564
+ conversationId: string | unknown;
9565
+ createdByUserId: string | unknown;
9566
+ resolvedByUserId: string | unknown;
9567
+ resolvedAt: string | unknown;
9568
+ createdAt: string;
9569
+ completedAt: string | unknown;
9570
+ }>;
9571
+ laneGroups: Array<{
9572
+ id: string;
9573
+ parentLaneId: string | unknown;
9574
+ spawnedByVisitId: string;
9575
+ kind: 'each' | 'all';
9576
+ laneCount: number;
8354
9577
  maxConcurrency: number | unknown;
8355
9578
  toleratedFailures: {
8356
9579
  count: number;
@@ -9808,6 +11031,13 @@ export type GetApiWorkItemsByWorkItemIdQuestionsResponses = {
9808
11031
  status: 'open' | 'answered' | 'not_needed';
9809
11032
  visitId: string;
9810
11033
  pipelineExecutionId: string;
11034
+ body: string;
11035
+ askedAt: string;
11036
+ waitingOnYou: boolean;
11037
+ waitingOn: Array<{
11038
+ userId: string;
11039
+ username: string | unknown;
11040
+ }>;
9811
11041
  }>;
9812
11042
  };
9813
11043
  export type GetApiWorkItemsByWorkItemIdQuestionsResponse = GetApiWorkItemsByWorkItemIdQuestionsResponses[keyof GetApiWorkItemsByWorkItemIdQuestionsResponses];
@@ -10100,6 +11330,14 @@ export type GetApiWorkItemsByWorkItemIdConversationsResponses = {
10100
11330
  pipelineExecutionId: string | unknown;
10101
11331
  visitId: string | unknown;
10102
11332
  lastMessageAt: string | unknown;
11333
+ messages: Array<{
11334
+ id: string;
11335
+ authorKind: 'agent' | 'person' | 'system';
11336
+ authorName: string | unknown;
11337
+ taskRunId: string | unknown;
11338
+ body: string;
11339
+ createdAt: string;
11340
+ }>;
10103
11341
  createdAt: string;
10104
11342
  }>;
10105
11343
  };
@@ -10805,8 +12043,14 @@ export type GetApiWorkItemsByWorkItemIdResponses = {
10805
12043
  createdByUserId: string | unknown;
10806
12044
  createdByUsername: string | unknown;
10807
12045
  createdByImage: string | unknown;
12046
+ assigneeUserId: string | unknown;
10808
12047
  parentWorkItemId: string | unknown;
10809
12048
  state: 'open' | 'closed';
12049
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
12050
+ resolution: string | unknown;
12051
+ closedAt: string | unknown;
12052
+ closedByUserId: string | unknown;
12053
+ closedByTaskId: string | unknown;
10810
12054
  spawnedByTaskId: string | unknown;
10811
12055
  createdAt: string;
10812
12056
  updatedAt: string;
@@ -10815,8 +12059,9 @@ export type GetApiWorkItemsByWorkItemIdResponses = {
10815
12059
  export type GetApiWorkItemsByWorkItemIdResponse = GetApiWorkItemsByWorkItemIdResponses[keyof GetApiWorkItemsByWorkItemIdResponses];
10816
12060
  export type PatchApiWorkItemsByWorkItemIdData = {
10817
12061
  body: {
10818
- title: string;
10819
- description: string;
12062
+ title?: string;
12063
+ description?: string;
12064
+ assigneeUserId?: string | unknown;
10820
12065
  };
10821
12066
  path: {
10822
12067
  workItemId: string;
@@ -10962,8 +12207,14 @@ export type PatchApiWorkItemsByWorkItemIdResponses = {
10962
12207
  createdByUserId: string | unknown;
10963
12208
  createdByUsername: string | unknown;
10964
12209
  createdByImage: string | unknown;
12210
+ assigneeUserId: string | unknown;
10965
12211
  parentWorkItemId: string | unknown;
10966
12212
  state: 'open' | 'closed';
12213
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
12214
+ resolution: string | unknown;
12215
+ closedAt: string | unknown;
12216
+ closedByUserId: string | unknown;
12217
+ closedByTaskId: string | unknown;
10967
12218
  spawnedByTaskId: string | unknown;
10968
12219
  createdAt: string;
10969
12220
  updatedAt: string;
@@ -11097,8 +12348,14 @@ export type GetApiWorkItemsByWorkItemIdChildrenResponses = {
11097
12348
  createdByUserId: string | unknown;
11098
12349
  createdByUsername: string | unknown;
11099
12350
  createdByImage: string | unknown;
12351
+ assigneeUserId: string | unknown;
11100
12352
  parentWorkItemId: string | unknown;
11101
12353
  state: 'open' | 'closed';
12354
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
12355
+ resolution: string | unknown;
12356
+ closedAt: string | unknown;
12357
+ closedByUserId: string | unknown;
12358
+ closedByTaskId: string | unknown;
11102
12359
  spawnedByTaskId: string | unknown;
11103
12360
  createdAt: string;
11104
12361
  updatedAt: string;
@@ -11282,8 +12539,14 @@ export type PostApiWorkItemsResponses = {
11282
12539
  createdByUserId: string | unknown;
11283
12540
  createdByUsername: string | unknown;
11284
12541
  createdByImage: string | unknown;
12542
+ assigneeUserId: string | unknown;
11285
12543
  parentWorkItemId: string | unknown;
11286
12544
  state: 'open' | 'closed';
12545
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
12546
+ resolution: string | unknown;
12547
+ closedAt: string | unknown;
12548
+ closedByUserId: string | unknown;
12549
+ closedByTaskId: string | unknown;
11287
12550
  spawnedByTaskId: string | unknown;
11288
12551
  createdAt: string;
11289
12552
  updatedAt: string;
@@ -11448,8 +12711,14 @@ export type PutApiWorkItemsResponses = {
11448
12711
  createdByUserId: string | unknown;
11449
12712
  createdByUsername: string | unknown;
11450
12713
  createdByImage: string | unknown;
12714
+ assigneeUserId: string | unknown;
11451
12715
  parentWorkItemId: string | unknown;
11452
12716
  state: 'open' | 'closed';
12717
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
12718
+ resolution: string | unknown;
12719
+ closedAt: string | unknown;
12720
+ closedByUserId: string | unknown;
12721
+ closedByTaskId: string | unknown;
11453
12722
  spawnedByTaskId: string | unknown;
11454
12723
  createdAt: string;
11455
12724
  updatedAt: string;
@@ -11746,8 +13015,14 @@ export type PostApiWorkItemsBatchResponses = {
11746
13015
  createdByUserId: string | unknown;
11747
13016
  createdByUsername: string | unknown;
11748
13017
  createdByImage: string | unknown;
13018
+ assigneeUserId: string | unknown;
11749
13019
  parentWorkItemId: string | unknown;
11750
13020
  state: 'open' | 'closed';
13021
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
13022
+ resolution: string | unknown;
13023
+ closedAt: string | unknown;
13024
+ closedByUserId: string | unknown;
13025
+ closedByTaskId: string | unknown;
11751
13026
  spawnedByTaskId: string | unknown;
11752
13027
  createdAt: string;
11753
13028
  updatedAt: string;
@@ -11912,8 +13187,14 @@ export type PutApiWorkItemsBatchResponses = {
11912
13187
  createdByUserId: string | unknown;
11913
13188
  createdByUsername: string | unknown;
11914
13189
  createdByImage: string | unknown;
13190
+ assigneeUserId: string | unknown;
11915
13191
  parentWorkItemId: string | unknown;
11916
13192
  state: 'open' | 'closed';
13193
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
13194
+ resolution: string | unknown;
13195
+ closedAt: string | unknown;
13196
+ closedByUserId: string | unknown;
13197
+ closedByTaskId: string | unknown;
11917
13198
  spawnedByTaskId: string | unknown;
11918
13199
  createdAt: string;
11919
13200
  updatedAt: string;
@@ -12068,23 +13349,35 @@ export type PatchApiWorkItemsByWorkItemIdParentResponses = {
12068
13349
  createdByUserId: string | unknown;
12069
13350
  createdByUsername: string | unknown;
12070
13351
  createdByImage: string | unknown;
13352
+ assigneeUserId: string | unknown;
12071
13353
  parentWorkItemId: string | unknown;
12072
13354
  state: 'open' | 'closed';
13355
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
13356
+ resolution: string | unknown;
13357
+ closedAt: string | unknown;
13358
+ closedByUserId: string | unknown;
13359
+ closedByTaskId: string | unknown;
12073
13360
  spawnedByTaskId: string | unknown;
12074
13361
  createdAt: string;
12075
13362
  updatedAt: string;
12076
13363
  };
12077
13364
  };
12078
13365
  export type PatchApiWorkItemsByWorkItemIdParentResponse = PatchApiWorkItemsByWorkItemIdParentResponses[keyof PatchApiWorkItemsByWorkItemIdParentResponses];
12079
- export type GetApiWorkItemCommentsData = {
12080
- body?: never;
12081
- path?: never;
12082
- query: {
13366
+ export type PutApiWorkItemsByWorkItemIdStateData = {
13367
+ body: {
13368
+ state: string;
13369
+ reason: 'completed' | 'out_of_scope' | 'superseded';
13370
+ resolution?: string | unknown;
13371
+ } | {
13372
+ state: string;
13373
+ };
13374
+ path: {
12083
13375
  workItemId: string;
12084
13376
  };
12085
- url: '/api/work-item-comments';
13377
+ query?: never;
13378
+ url: '/api/work-items/{workItemId}/state';
12086
13379
  };
12087
- export type GetApiWorkItemCommentsErrors = {
13380
+ export type PutApiWorkItemsByWorkItemIdStateErrors = {
12088
13381
  /**
12089
13382
  * Response for status 400
12090
13383
  */
@@ -12162,9 +13455,9 @@ export type GetApiWorkItemCommentsErrors = {
12162
13455
  };
12163
13456
  };
12164
13457
  /**
12165
- * Response for status 422
13458
+ * Response for status 409
12166
13459
  */
12167
- 422: {
13460
+ 409: {
12168
13461
  type: string;
12169
13462
  title: string;
12170
13463
  status: number;
@@ -12181,9 +13474,9 @@ export type GetApiWorkItemCommentsErrors = {
12181
13474
  };
12182
13475
  };
12183
13476
  /**
12184
- * Response for status 500
13477
+ * Response for status 422
12185
13478
  */
12186
- 500: {
13479
+ 422: {
12187
13480
  type: string;
12188
13481
  title: string;
12189
13482
  status: number;
@@ -12199,11 +13492,190 @@ export type GetApiWorkItemCommentsErrors = {
12199
13492
  [key: string]: unknown;
12200
13493
  };
12201
13494
  };
12202
- };
12203
- export type GetApiWorkItemCommentsError = GetApiWorkItemCommentsErrors[keyof GetApiWorkItemCommentsErrors];
12204
- export type GetApiWorkItemCommentsResponses = {
12205
13495
  /**
12206
- * Response for status 200
13496
+ * Response for status 500
13497
+ */
13498
+ 500: {
13499
+ type: string;
13500
+ title: string;
13501
+ status: number;
13502
+ detail?: string;
13503
+ instance?: string;
13504
+ code?: string;
13505
+ errors?: Array<{
13506
+ path: string;
13507
+ message: string;
13508
+ summary?: string;
13509
+ }>;
13510
+ meta?: {
13511
+ [key: string]: unknown;
13512
+ };
13513
+ };
13514
+ };
13515
+ export type PutApiWorkItemsByWorkItemIdStateError = PutApiWorkItemsByWorkItemIdStateErrors[keyof PutApiWorkItemsByWorkItemIdStateErrors];
13516
+ export type PutApiWorkItemsByWorkItemIdStateResponses = {
13517
+ /**
13518
+ * Response for status 200
13519
+ */
13520
+ 200: {
13521
+ id: string;
13522
+ projectId: string;
13523
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
13524
+ platformId?: string | unknown;
13525
+ platformKey: string;
13526
+ url?: string | unknown;
13527
+ title: string;
13528
+ description: string;
13529
+ sourceCreatedAt: string | unknown;
13530
+ sourceUpdatedAt: string | unknown;
13531
+ fields: {
13532
+ [key: string]: unknown;
13533
+ } | unknown;
13534
+ createdByUserId: string | unknown;
13535
+ createdByUsername: string | unknown;
13536
+ createdByImage: string | unknown;
13537
+ assigneeUserId: string | unknown;
13538
+ parentWorkItemId: string | unknown;
13539
+ state: 'open' | 'closed';
13540
+ closeReason: 'completed' | 'out_of_scope' | 'superseded' | unknown;
13541
+ resolution: string | unknown;
13542
+ closedAt: string | unknown;
13543
+ closedByUserId: string | unknown;
13544
+ closedByTaskId: string | unknown;
13545
+ spawnedByTaskId: string | unknown;
13546
+ createdAt: string;
13547
+ updatedAt: string;
13548
+ };
13549
+ };
13550
+ export type PutApiWorkItemsByWorkItemIdStateResponse = PutApiWorkItemsByWorkItemIdStateResponses[keyof PutApiWorkItemsByWorkItemIdStateResponses];
13551
+ export type GetApiWorkItemCommentsData = {
13552
+ body?: never;
13553
+ path?: never;
13554
+ query: {
13555
+ workItemId: string;
13556
+ };
13557
+ url: '/api/work-item-comments';
13558
+ };
13559
+ export type GetApiWorkItemCommentsErrors = {
13560
+ /**
13561
+ * Response for status 400
13562
+ */
13563
+ 400: {
13564
+ type: string;
13565
+ title: string;
13566
+ status: number;
13567
+ detail?: string;
13568
+ instance?: string;
13569
+ code?: string;
13570
+ errors?: Array<{
13571
+ path: string;
13572
+ message: string;
13573
+ summary?: string;
13574
+ }>;
13575
+ meta?: {
13576
+ [key: string]: unknown;
13577
+ };
13578
+ };
13579
+ /**
13580
+ * Response for status 401
13581
+ */
13582
+ 401: {
13583
+ type: string;
13584
+ title: string;
13585
+ status: number;
13586
+ detail?: string;
13587
+ instance?: string;
13588
+ code?: string;
13589
+ errors?: Array<{
13590
+ path: string;
13591
+ message: string;
13592
+ summary?: string;
13593
+ }>;
13594
+ meta?: {
13595
+ [key: string]: unknown;
13596
+ };
13597
+ };
13598
+ /**
13599
+ * Response for status 403
13600
+ */
13601
+ 403: {
13602
+ type: string;
13603
+ title: string;
13604
+ status: number;
13605
+ detail?: string;
13606
+ instance?: string;
13607
+ code?: string;
13608
+ errors?: Array<{
13609
+ path: string;
13610
+ message: string;
13611
+ summary?: string;
13612
+ }>;
13613
+ meta?: {
13614
+ [key: string]: unknown;
13615
+ };
13616
+ };
13617
+ /**
13618
+ * Response for status 404
13619
+ */
13620
+ 404: {
13621
+ type: string;
13622
+ title: string;
13623
+ status: number;
13624
+ detail?: string;
13625
+ instance?: string;
13626
+ code?: string;
13627
+ errors?: Array<{
13628
+ path: string;
13629
+ message: string;
13630
+ summary?: string;
13631
+ }>;
13632
+ meta?: {
13633
+ [key: string]: unknown;
13634
+ };
13635
+ };
13636
+ /**
13637
+ * Response for status 422
13638
+ */
13639
+ 422: {
13640
+ type: string;
13641
+ title: string;
13642
+ status: number;
13643
+ detail?: string;
13644
+ instance?: string;
13645
+ code?: string;
13646
+ errors?: Array<{
13647
+ path: string;
13648
+ message: string;
13649
+ summary?: string;
13650
+ }>;
13651
+ meta?: {
13652
+ [key: string]: unknown;
13653
+ };
13654
+ };
13655
+ /**
13656
+ * Response for status 500
13657
+ */
13658
+ 500: {
13659
+ type: string;
13660
+ title: string;
13661
+ status: number;
13662
+ detail?: string;
13663
+ instance?: string;
13664
+ code?: string;
13665
+ errors?: Array<{
13666
+ path: string;
13667
+ message: string;
13668
+ summary?: string;
13669
+ }>;
13670
+ meta?: {
13671
+ [key: string]: unknown;
13672
+ };
13673
+ };
13674
+ };
13675
+ export type GetApiWorkItemCommentsError = GetApiWorkItemCommentsErrors[keyof GetApiWorkItemCommentsErrors];
13676
+ export type GetApiWorkItemCommentsResponses = {
13677
+ /**
13678
+ * Response for status 200
12207
13679
  */
12208
13680
  200: Array<{
12209
13681
  id: string;
@@ -12215,6 +13687,8 @@ export type GetApiWorkItemCommentsResponses = {
12215
13687
  sourceNotificationId: string | unknown;
12216
13688
  externalCommentId: string | unknown;
12217
13689
  externalCommentUrl: string | unknown;
13690
+ authoredByTaskId: string | unknown;
13691
+ authorName: string | unknown;
12218
13692
  parentCommentId: string | unknown;
12219
13693
  authorUsername: string | unknown;
12220
13694
  authorImage: string | unknown;
@@ -12366,6 +13840,8 @@ export type PostApiWorkItemCommentsResponses = {
12366
13840
  sourceNotificationId: string | unknown;
12367
13841
  externalCommentId: string | unknown;
12368
13842
  externalCommentUrl: string | unknown;
13843
+ authoredByTaskId: string | unknown;
13844
+ authorName: string | unknown;
12369
13845
  parentCommentId: string | unknown;
12370
13846
  authorUsername: string | unknown;
12371
13847
  authorImage: string | unknown;
@@ -12649,6 +14125,8 @@ export type PatchApiWorkItemCommentsByCommentIdResponses = {
12649
14125
  sourceNotificationId: string | unknown;
12650
14126
  externalCommentId: string | unknown;
12651
14127
  externalCommentUrl: string | unknown;
14128
+ authoredByTaskId: string | unknown;
14129
+ authorName: string | unknown;
12652
14130
  parentCommentId: string | unknown;
12653
14131
  authorUsername: string | unknown;
12654
14132
  authorImage: string | unknown;
@@ -12800,6 +14278,8 @@ export type PostApiWorkItemCommentsByCommentIdPinResponses = {
12800
14278
  sourceNotificationId: string | unknown;
12801
14279
  externalCommentId: string | unknown;
12802
14280
  externalCommentUrl: string | unknown;
14281
+ authoredByTaskId: string | unknown;
14282
+ authorName: string | unknown;
12803
14283
  parentCommentId: string | unknown;
12804
14284
  authorUsername: string | unknown;
12805
14285
  authorImage: string | unknown;
@@ -12928,6 +14408,7 @@ export type GetApiWorkItemCommentDraftsResponses = {
12928
14408
  pipelineExecutionId: string | unknown;
12929
14409
  taskId: string | unknown;
12930
14410
  agentSessionId: string | unknown;
14411
+ recipientUserId: string | unknown;
12931
14412
  kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
12932
14413
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
12933
14414
  title: string;
@@ -13179,6 +14660,8 @@ export type PostApiWorkItemCommentDraftsByNotificationIdApproveResponses = {
13179
14660
  sourceNotificationId: string | unknown;
13180
14661
  externalCommentId: string | unknown;
13181
14662
  externalCommentUrl: string | unknown;
14663
+ authoredByTaskId: string | unknown;
14664
+ authorName: string | unknown;
13182
14665
  parentCommentId: string | unknown;
13183
14666
  authorUsername: string | unknown;
13184
14667
  authorImage: string | unknown;
@@ -13325,6 +14808,7 @@ export type PostApiWorkItemCommentDraftsByNotificationIdRejectResponses = {
13325
14808
  pipelineExecutionId: string | unknown;
13326
14809
  taskId: string | unknown;
13327
14810
  agentSessionId: string | unknown;
14811
+ recipientUserId: string | unknown;
13328
14812
  kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
13329
14813
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
13330
14814
  title: string;
@@ -14346,6 +15830,7 @@ export type GetApiProjectsByProjectIdNotificationsResponses = {
14346
15830
  pipelineExecutionId: string | unknown;
14347
15831
  taskId: string | unknown;
14348
15832
  agentSessionId: string | unknown;
15833
+ recipientUserId: string | unknown;
14349
15834
  kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
14350
15835
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
14351
15836
  title: string;
@@ -14479,6 +15964,7 @@ export type GetApiProjectsByProjectIdNotificationsByNotificationIdResponses = {
14479
15964
  pipelineExecutionId: string | unknown;
14480
15965
  taskId: string | unknown;
14481
15966
  agentSessionId: string | unknown;
15967
+ recipientUserId: string | unknown;
14482
15968
  kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
14483
15969
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
14484
15970
  title: string;
@@ -14738,6 +16224,7 @@ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondRespon
14738
16224
  pipelineExecutionId: string | unknown;
14739
16225
  taskId: string | unknown;
14740
16226
  agentSessionId: string | unknown;
16227
+ recipientUserId: string | unknown;
14741
16228
  kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
14742
16229
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
14743
16230
  title: string;
@@ -14753,15 +16240,15 @@ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondRespon
14753
16240
  };
14754
16241
  };
14755
16242
  export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponse = PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponses[keyof PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponses];
14756
- export type GetApiProjectsByProjectIdNotificationRulesData = {
16243
+ export type GetApiProjectsByProjectIdInboxWaitsData = {
14757
16244
  body?: never;
14758
16245
  path: {
14759
16246
  projectId: string;
14760
16247
  };
14761
16248
  query?: never;
14762
- url: '/api/projects/{projectId}/notification-rules';
16249
+ url: '/api/projects/{projectId}/inbox/waits';
14763
16250
  };
14764
- export type GetApiProjectsByProjectIdNotificationRulesErrors = {
16251
+ export type GetApiProjectsByProjectIdInboxWaitsErrors = {
14765
16252
  /**
14766
16253
  * Response for status 401
14767
16254
  */
@@ -14858,43 +16345,66 @@ export type GetApiProjectsByProjectIdNotificationRulesErrors = {
14858
16345
  };
14859
16346
  };
14860
16347
  };
14861
- export type GetApiProjectsByProjectIdNotificationRulesError = GetApiProjectsByProjectIdNotificationRulesErrors[keyof GetApiProjectsByProjectIdNotificationRulesErrors];
14862
- export type GetApiProjectsByProjectIdNotificationRulesResponses = {
16348
+ export type GetApiProjectsByProjectIdInboxWaitsError = GetApiProjectsByProjectIdInboxWaitsErrors[keyof GetApiProjectsByProjectIdInboxWaitsErrors];
16349
+ export type GetApiProjectsByProjectIdInboxWaitsResponses = {
14863
16350
  /**
14864
16351
  * Response for status 200
14865
16352
  */
14866
- 200: Array<{
14867
- id: string;
14868
- projectId: string;
14869
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
14870
- channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
14871
- enabled: boolean;
14872
- minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
14873
- conditionsJson: {
14874
- [key: string]: unknown;
14875
- } | unknown;
14876
- createdAt: string;
14877
- updatedAt: string;
14878
- }>;
14879
- };
14880
- export type GetApiProjectsByProjectIdNotificationRulesResponse = GetApiProjectsByProjectIdNotificationRulesResponses[keyof GetApiProjectsByProjectIdNotificationRulesResponses];
14881
- export type PutApiProjectsByProjectIdNotificationRulesData = {
14882
- body: {
14883
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
14884
- channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
14885
- enabled: boolean;
14886
- minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
14887
- conditionsJson: {
14888
- [key: string]: unknown;
14889
- } | unknown;
16353
+ 200: {
16354
+ waits: Array<{
16355
+ pipelineExecutionId: string;
16356
+ visitId: string;
16357
+ nodeId: string;
16358
+ pipelineName: string;
16359
+ workItem: {
16360
+ id: string;
16361
+ platformKey: string;
16362
+ title: string;
16363
+ };
16364
+ askedAt: string;
16365
+ waitingOn: Array<{
16366
+ userId: string;
16367
+ username: string | unknown;
16368
+ }>;
16369
+ kind: string;
16370
+ questionId: string;
16371
+ commentId: string;
16372
+ body: string;
16373
+ } | {
16374
+ pipelineExecutionId: string;
16375
+ visitId: string;
16376
+ nodeId: string;
16377
+ pipelineName: string;
16378
+ workItem: {
16379
+ id: string;
16380
+ platformKey: string;
16381
+ title: string;
16382
+ };
16383
+ askedAt: string;
16384
+ waitingOn: Array<{
16385
+ userId: string;
16386
+ username: string | unknown;
16387
+ }>;
16388
+ kind: string;
16389
+ title: string | unknown;
16390
+ actions: Array<{
16391
+ key: string;
16392
+ label: string;
16393
+ body: 'optional' | 'required';
16394
+ }>;
16395
+ }>;
14890
16396
  };
16397
+ };
16398
+ export type GetApiProjectsByProjectIdInboxWaitsResponse = GetApiProjectsByProjectIdInboxWaitsResponses[keyof GetApiProjectsByProjectIdInboxWaitsResponses];
16399
+ export type GetApiProjectsByProjectIdInboxSummaryData = {
16400
+ body?: never;
14891
16401
  path: {
14892
16402
  projectId: string;
14893
16403
  };
14894
16404
  query?: never;
14895
- url: '/api/projects/{projectId}/notification-rules';
16405
+ url: '/api/projects/{projectId}/inbox/summary';
14896
16406
  };
14897
- export type PutApiProjectsByProjectIdNotificationRulesErrors = {
16407
+ export type GetApiProjectsByProjectIdInboxSummaryErrors = {
14898
16408
  /**
14899
16409
  * Response for status 401
14900
16410
  */
@@ -14991,33 +16501,29 @@ export type PutApiProjectsByProjectIdNotificationRulesErrors = {
14991
16501
  };
14992
16502
  };
14993
16503
  };
14994
- export type PutApiProjectsByProjectIdNotificationRulesError = PutApiProjectsByProjectIdNotificationRulesErrors[keyof PutApiProjectsByProjectIdNotificationRulesErrors];
14995
- export type PutApiProjectsByProjectIdNotificationRulesResponses = {
16504
+ export type GetApiProjectsByProjectIdInboxSummaryError = GetApiProjectsByProjectIdInboxSummaryErrors[keyof GetApiProjectsByProjectIdInboxSummaryErrors];
16505
+ export type GetApiProjectsByProjectIdInboxSummaryResponses = {
14996
16506
  /**
14997
16507
  * Response for status 200
14998
16508
  */
14999
16509
  200: {
15000
- id: string;
15001
- projectId: string;
15002
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
15003
- channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
15004
- enabled: boolean;
15005
- minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
15006
- conditionsJson: {
15007
- [key: string]: unknown;
15008
- } | unknown;
15009
- createdAt: string;
15010
- updatedAt: string;
16510
+ waitingOnMe: number;
16511
+ failedStartedByMe: number;
16512
+ pipelineWaitsOnMe: number;
16513
+ badgeCount: number;
16514
+ waitingOnOthers: number;
15011
16515
  };
15012
16516
  };
15013
- export type PutApiProjectsByProjectIdNotificationRulesResponse = PutApiProjectsByProjectIdNotificationRulesResponses[keyof PutApiProjectsByProjectIdNotificationRulesResponses];
15014
- export type GetApiStepDefinitionTemplatesData = {
16517
+ export type GetApiProjectsByProjectIdInboxSummaryResponse = GetApiProjectsByProjectIdInboxSummaryResponses[keyof GetApiProjectsByProjectIdInboxSummaryResponses];
16518
+ export type GetApiProjectsByProjectIdNotificationRulesData = {
15015
16519
  body?: never;
15016
- path?: never;
16520
+ path: {
16521
+ projectId: string;
16522
+ };
15017
16523
  query?: never;
15018
- url: '/api/step-definition-templates';
16524
+ url: '/api/projects/{projectId}/notification-rules';
15019
16525
  };
15020
- export type GetApiStepDefinitionTemplatesErrors = {
16526
+ export type GetApiProjectsByProjectIdNotificationRulesErrors = {
15021
16527
  /**
15022
16528
  * Response for status 401
15023
16529
  */
@@ -15038,140 +16544,9 @@ export type GetApiStepDefinitionTemplatesErrors = {
15038
16544
  };
15039
16545
  };
15040
16546
  /**
15041
- * Response for status 500
16547
+ * Response for status 403
15042
16548
  */
15043
- 500: {
15044
- type: string;
15045
- title: string;
15046
- status: number;
15047
- detail?: string;
15048
- instance?: string;
15049
- code?: string;
15050
- errors?: Array<{
15051
- path: string;
15052
- message: string;
15053
- summary?: string;
15054
- }>;
15055
- meta?: {
15056
- [key: string]: unknown;
15057
- };
15058
- };
15059
- };
15060
- export type GetApiStepDefinitionTemplatesError = GetApiStepDefinitionTemplatesErrors[keyof GetApiStepDefinitionTemplatesErrors];
15061
- export type GetApiStepDefinitionTemplatesResponses = {
15062
- /**
15063
- * Response for status 200
15064
- */
15065
- 200: Array<{
15066
- id: string;
15067
- key: string;
15068
- name: string;
15069
- description: string | unknown;
15070
- promptTemplate: string | unknown;
15071
- inputSchemaJson: {
15072
- [key: string]: unknown;
15073
- } | unknown;
15074
- resultSchemaJson: {
15075
- [key: string]: unknown;
15076
- } | unknown;
15077
- opencodeMcpJson: {
15078
- [key: string]: {
15079
- type: string;
15080
- command: Array<string>;
15081
- cwd?: string;
15082
- environment?: {
15083
- [key: string]: string;
15084
- };
15085
- disabled?: boolean;
15086
- codemode?: boolean;
15087
- timeout?: {
15088
- startup?: number;
15089
- catalog?: number;
15090
- execution?: number;
15091
- };
15092
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15093
- } | {
15094
- type: string;
15095
- url: string;
15096
- headers?: {
15097
- [key: string]: string;
15098
- };
15099
- oauth?: {
15100
- client_id?: string;
15101
- client_secret?: string;
15102
- scope?: string;
15103
- callback_port?: number;
15104
- redirect_uri?: string;
15105
- auth_server_metadata_url?: string;
15106
- } | boolean;
15107
- disabled?: boolean;
15108
- codemode?: boolean;
15109
- timeout?: {
15110
- startup?: number;
15111
- catalog?: number;
15112
- execution?: number;
15113
- };
15114
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15115
- } | {
15116
- type: string;
15117
- name?: string;
15118
- disabled?: boolean;
15119
- codemode?: boolean;
15120
- timeout?: {
15121
- startup?: number;
15122
- catalog?: number;
15123
- execution?: number;
15124
- };
15125
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15126
- };
15127
- } | unknown;
15128
- healthChecksJson: Array<{
15129
- name?: string;
15130
- severity: 'required' | 'warn';
15131
- timeoutSeconds: number;
15132
- serialGroup?: string;
15133
- kind: string;
15134
- tool: string;
15135
- mcp?: string;
15136
- args?: {
15137
- [key: string]: unknown;
15138
- };
15139
- } | {
15140
- name?: string;
15141
- severity: 'required' | 'warn';
15142
- timeoutSeconds: number;
15143
- serialGroup?: string;
15144
- kind: string;
15145
- command: Array<string>;
15146
- expectExitCode: number;
15147
- }> | unknown;
15148
- parameters: Array<{
15149
- key: string;
15150
- label: string;
15151
- description?: string | unknown;
15152
- type: 'text' | 'textarea';
15153
- required: boolean;
15154
- placeholder?: string | unknown;
15155
- }>;
15156
- status: 'active' | 'archived';
15157
- createdAt: string;
15158
- updatedAt: string;
15159
- }>;
15160
- };
15161
- export type GetApiStepDefinitionTemplatesResponse = GetApiStepDefinitionTemplatesResponses[keyof GetApiStepDefinitionTemplatesResponses];
15162
- export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdData = {
15163
- body?: never;
15164
- path: {
15165
- stepDefinitionTemplateId: string;
15166
- };
15167
- query?: never;
15168
- url: '/api/step-definition-templates/{stepDefinitionTemplateId}';
15169
- };
15170
- export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdErrors = {
15171
- /**
15172
- * Response for status 401
15173
- */
15174
- 401: {
16549
+ 403: {
15175
16550
  type: string;
15176
16551
  title: string;
15177
16552
  status: number;
@@ -15245,142 +16620,43 @@ export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdErrors = {
15245
16620
  };
15246
16621
  };
15247
16622
  };
15248
- export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdError = GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdErrors[keyof GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdErrors];
15249
- export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdResponses = {
16623
+ export type GetApiProjectsByProjectIdNotificationRulesError = GetApiProjectsByProjectIdNotificationRulesErrors[keyof GetApiProjectsByProjectIdNotificationRulesErrors];
16624
+ export type GetApiProjectsByProjectIdNotificationRulesResponses = {
15250
16625
  /**
15251
16626
  * Response for status 200
15252
16627
  */
15253
- 200: {
16628
+ 200: Array<{
15254
16629
  id: string;
15255
- key: string;
15256
- name: string;
15257
- description: string | unknown;
15258
- promptTemplate: string | unknown;
15259
- inputSchemaJson: {
15260
- [key: string]: unknown;
15261
- } | unknown;
15262
- resultSchemaJson: {
16630
+ projectId: string;
16631
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
16632
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
16633
+ enabled: boolean;
16634
+ minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
16635
+ conditionsJson: {
15263
16636
  [key: string]: unknown;
15264
16637
  } | unknown;
15265
- opencodeMcpJson: {
15266
- [key: string]: {
15267
- type: string;
15268
- command: Array<string>;
15269
- cwd?: string;
15270
- environment?: {
15271
- [key: string]: string;
15272
- };
15273
- disabled?: boolean;
15274
- codemode?: boolean;
15275
- timeout?: {
15276
- startup?: number;
15277
- catalog?: number;
15278
- execution?: number;
15279
- };
15280
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15281
- } | {
15282
- type: string;
15283
- url: string;
15284
- headers?: {
15285
- [key: string]: string;
15286
- };
15287
- oauth?: {
15288
- client_id?: string;
15289
- client_secret?: string;
15290
- scope?: string;
15291
- callback_port?: number;
15292
- redirect_uri?: string;
15293
- auth_server_metadata_url?: string;
15294
- } | boolean;
15295
- disabled?: boolean;
15296
- codemode?: boolean;
15297
- timeout?: {
15298
- startup?: number;
15299
- catalog?: number;
15300
- execution?: number;
15301
- };
15302
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15303
- } | {
15304
- type: string;
15305
- name?: string;
15306
- disabled?: boolean;
15307
- codemode?: boolean;
15308
- timeout?: {
15309
- startup?: number;
15310
- catalog?: number;
15311
- execution?: number;
15312
- };
15313
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15314
- };
15315
- } | unknown;
15316
- healthChecksJson: Array<{
15317
- name?: string;
15318
- severity: 'required' | 'warn';
15319
- timeoutSeconds: number;
15320
- serialGroup?: string;
15321
- kind: string;
15322
- tool: string;
15323
- mcp?: string;
15324
- args?: {
15325
- [key: string]: unknown;
15326
- };
15327
- } | {
15328
- name?: string;
15329
- severity: 'required' | 'warn';
15330
- timeoutSeconds: number;
15331
- serialGroup?: string;
15332
- kind: string;
15333
- command: Array<string>;
15334
- expectExitCode: number;
15335
- }> | unknown;
15336
- parameters: Array<{
15337
- key: string;
15338
- label: string;
15339
- description?: string | unknown;
15340
- type: 'text' | 'textarea';
15341
- required: boolean;
15342
- placeholder?: string | unknown;
15343
- }>;
15344
- status: 'active' | 'archived';
15345
16638
  createdAt: string;
15346
16639
  updatedAt: string;
15347
- };
16640
+ }>;
15348
16641
  };
15349
- export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdResponse = GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdResponses[keyof GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdResponses];
15350
- export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateData = {
16642
+ export type GetApiProjectsByProjectIdNotificationRulesResponse = GetApiProjectsByProjectIdNotificationRulesResponses[keyof GetApiProjectsByProjectIdNotificationRulesResponses];
16643
+ export type PutApiProjectsByProjectIdNotificationRulesData = {
15351
16644
  body: {
15352
- projectId: string;
15353
- name: string;
15354
- parameterValues: {
15355
- [key: string]: string;
15356
- };
16645
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
16646
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
16647
+ enabled: boolean;
16648
+ minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
16649
+ conditionsJson: {
16650
+ [key: string]: unknown;
16651
+ } | unknown;
15357
16652
  };
15358
16653
  path: {
15359
- stepDefinitionTemplateId: string;
16654
+ projectId: string;
15360
16655
  };
15361
16656
  query?: never;
15362
- url: '/api/step-definition-templates/{stepDefinitionTemplateId}/instantiate';
16657
+ url: '/api/projects/{projectId}/notification-rules';
15363
16658
  };
15364
- export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateErrors = {
15365
- /**
15366
- * Response for status 400
15367
- */
15368
- 400: {
15369
- type: string;
15370
- title: string;
15371
- status: number;
15372
- detail?: string;
15373
- instance?: string;
15374
- code?: string;
15375
- errors?: Array<{
15376
- path: string;
15377
- message: string;
15378
- summary?: string;
15379
- }>;
15380
- meta?: {
15381
- [key: string]: unknown;
15382
- };
15383
- };
16659
+ export type PutApiProjectsByProjectIdNotificationRulesErrors = {
15384
16660
  /**
15385
16661
  * Response for status 401
15386
16662
  */
@@ -15438,25 +16714,6 @@ export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateE
15438
16714
  [key: string]: unknown;
15439
16715
  };
15440
16716
  };
15441
- /**
15442
- * Response for status 409
15443
- */
15444
- 409: {
15445
- type: string;
15446
- title: string;
15447
- status: number;
15448
- detail?: string;
15449
- instance?: string;
15450
- code?: string;
15451
- errors?: Array<{
15452
- path: string;
15453
- message: string;
15454
- summary?: string;
15455
- }>;
15456
- meta?: {
15457
- [key: string]: unknown;
15458
- };
15459
- };
15460
16717
  /**
15461
16718
  * Response for status 422
15462
16719
  */
@@ -15496,139 +16753,26 @@ export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateE
15496
16753
  };
15497
16754
  };
15498
16755
  };
15499
- export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateError = PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateErrors[keyof PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateErrors];
15500
- export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponses = {
16756
+ export type PutApiProjectsByProjectIdNotificationRulesError = PutApiProjectsByProjectIdNotificationRulesErrors[keyof PutApiProjectsByProjectIdNotificationRulesErrors];
16757
+ export type PutApiProjectsByProjectIdNotificationRulesResponses = {
15501
16758
  /**
15502
16759
  * Response for status 200
15503
16760
  */
15504
16761
  200: {
15505
16762
  id: string;
15506
16763
  projectId: string;
15507
- key: string;
15508
- name: string;
15509
- description: string | unknown;
15510
- prompt: string | unknown;
15511
- version: number;
15512
- kind: 'built_in' | 'user_defined' | 'code';
15513
- entrypointJson: {
15514
- sourceFile: string;
15515
- } | unknown;
15516
- executionMode: 'workspace' | 'no_workspace';
15517
- inputSchemaJson: {
15518
- [key: string]: unknown;
15519
- };
15520
- resultSchemaJson: {
16764
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
16765
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
16766
+ enabled: boolean;
16767
+ minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
16768
+ conditionsJson: {
15521
16769
  [key: string]: unknown;
15522
16770
  } | unknown;
15523
- errors: Array<string>;
15524
- retry: Array<{
15525
- on: Array<string>;
15526
- maxAttempts: number;
15527
- }>;
15528
- opencodeMcpJson: {
15529
- [key: string]: {
15530
- type: string;
15531
- command: Array<string>;
15532
- cwd?: string;
15533
- environment?: {
15534
- [key: string]: string;
15535
- };
15536
- disabled?: boolean;
15537
- codemode?: boolean;
15538
- timeout?: {
15539
- startup?: number;
15540
- catalog?: number;
15541
- execution?: number;
15542
- };
15543
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15544
- } | {
15545
- type: string;
15546
- url: string;
15547
- headers?: {
15548
- [key: string]: string;
15549
- };
15550
- oauth?: {
15551
- client_id?: string;
15552
- client_secret?: string;
15553
- scope?: string;
15554
- callback_port?: number;
15555
- redirect_uri?: string;
15556
- auth_server_metadata_url?: string;
15557
- } | boolean;
15558
- disabled?: boolean;
15559
- codemode?: boolean;
15560
- timeout?: {
15561
- startup?: number;
15562
- catalog?: number;
15563
- execution?: number;
15564
- };
15565
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15566
- } | {
15567
- type: string;
15568
- name?: string;
15569
- disabled?: boolean;
15570
- codemode?: boolean;
15571
- timeout?: {
15572
- startup?: number;
15573
- catalog?: number;
15574
- execution?: number;
15575
- };
15576
- protocol?: 'legacy' | 'auto' | '2026-07-28';
15577
- };
15578
- } | unknown;
15579
- healthChecksJson: Array<{
15580
- name?: string;
15581
- severity: 'required' | 'warn';
15582
- timeoutSeconds: number;
15583
- serialGroup?: string;
15584
- kind: string;
15585
- tool: string;
15586
- mcp?: string;
15587
- args?: {
15588
- [key: string]: unknown;
15589
- };
15590
- } | {
15591
- name?: string;
15592
- severity: 'required' | 'warn';
15593
- timeoutSeconds: number;
15594
- serialGroup?: string;
15595
- kind: string;
15596
- command: Array<string>;
15597
- expectExitCode: number;
15598
- }> | unknown;
15599
- envJson: Array<{
15600
- name: string;
15601
- source: string;
15602
- value: string;
15603
- secret: boolean;
15604
- applies: 'agent' | 'setup' | 'both';
15605
- } | {
15606
- name: string;
15607
- source: string;
15608
- from: string;
15609
- secret: boolean;
15610
- optional: boolean;
15611
- default?: string;
15612
- mcp?: string;
15613
- applies: 'agent' | 'setup' | 'both';
15614
- }> | unknown;
15615
- devcontainerConfigPath: string | unknown;
15616
- managedRuntime: 'bun1' | 'node24' | unknown;
15617
- repo: {
15618
- mode: string;
15619
- } | {
15620
- mode: string;
15621
- } | {
15622
- mode: string;
15623
- message: string | unknown;
15624
- onPushFailure: 'fail' | 'warn';
15625
- };
15626
- status: 'draft' | 'active' | 'archived';
15627
16771
  createdAt: string;
15628
16772
  updatedAt: string;
15629
16773
  };
15630
16774
  };
15631
- export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponse = PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponses[keyof PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponses];
16775
+ export type PutApiProjectsByProjectIdNotificationRulesResponse = PutApiProjectsByProjectIdNotificationRulesResponses[keyof PutApiProjectsByProjectIdNotificationRulesResponses];
15632
16776
  export type GetApiProjectsByProjectIdIntegrationsData = {
15633
16777
  body?: never;
15634
16778
  path: {