@scarn/sdk 0.8.3 → 0.8.5

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.
@@ -936,6 +936,7 @@ export type PostApiProjectsData = {
936
936
  apiToken: string;
937
937
  };
938
938
  firstSyncHorizonDays?: number;
939
+ autoSync?: boolean;
939
940
  } | {
940
941
  type: string;
941
942
  credential: {
@@ -966,6 +967,7 @@ export type PostApiProjectsData = {
966
967
  apiToken: string;
967
968
  };
968
969
  firstSyncHorizonDays?: number;
970
+ autoSync?: boolean;
969
971
  };
970
972
  };
971
973
  path?: never;
@@ -1498,7 +1500,37 @@ export type GetApiStepDefinitionsResponses = {
1498
1500
  on: Array<string>;
1499
1501
  maxAttempts: number;
1500
1502
  }>;
1501
- workItemPermissions: Array<'self' | 'children'>;
1503
+ grants: Array<{
1504
+ resource: string;
1505
+ action: string;
1506
+ scope: 'self' | 'children';
1507
+ } | {
1508
+ resource: string;
1509
+ action: string;
1510
+ scope: 'self' | 'children';
1511
+ } | {
1512
+ resource: string;
1513
+ action: string;
1514
+ scope: 'self' | 'children';
1515
+ } | {
1516
+ resource: string;
1517
+ action: string;
1518
+ scope: 'self' | 'children';
1519
+ labels: Array<string>;
1520
+ } | {
1521
+ resource: string;
1522
+ action: string;
1523
+ scope: 'self' | 'children';
1524
+ } | {
1525
+ resource: string;
1526
+ action: string;
1527
+ scope: 'self' | 'children';
1528
+ } | {
1529
+ resource: string;
1530
+ action: string;
1531
+ scope: string;
1532
+ labels: Array<string>;
1533
+ }>;
1502
1534
  maxTurns: number | unknown;
1503
1535
  concurrency: {
1504
1536
  max: number;
@@ -1632,7 +1664,37 @@ export type PostApiStepDefinitionsData = {
1632
1664
  on: Array<string>;
1633
1665
  maxAttempts: number;
1634
1666
  }>;
1635
- workItemPermissions?: Array<'self' | 'children'>;
1667
+ grants?: Array<{
1668
+ resource: string;
1669
+ action: string;
1670
+ scope: 'self' | 'children';
1671
+ } | {
1672
+ resource: string;
1673
+ action: string;
1674
+ scope: 'self' | 'children';
1675
+ } | {
1676
+ resource: string;
1677
+ action: string;
1678
+ scope: 'self' | 'children';
1679
+ } | {
1680
+ resource: string;
1681
+ action: string;
1682
+ scope: 'self' | 'children';
1683
+ labels: Array<string>;
1684
+ } | {
1685
+ resource: string;
1686
+ action: string;
1687
+ scope: 'self' | 'children';
1688
+ } | {
1689
+ resource: string;
1690
+ action: string;
1691
+ scope: 'self' | 'children';
1692
+ } | {
1693
+ resource: string;
1694
+ action: string;
1695
+ scope: string;
1696
+ labels: Array<string>;
1697
+ }>;
1636
1698
  maxTurns?: number | unknown;
1637
1699
  concurrency?: {
1638
1700
  max: number;
@@ -1906,7 +1968,37 @@ export type PostApiStepDefinitionsResponses = {
1906
1968
  on: Array<string>;
1907
1969
  maxAttempts: number;
1908
1970
  }>;
1909
- workItemPermissions: Array<'self' | 'children'>;
1971
+ grants: Array<{
1972
+ resource: string;
1973
+ action: string;
1974
+ scope: 'self' | 'children';
1975
+ } | {
1976
+ resource: string;
1977
+ action: string;
1978
+ scope: 'self' | 'children';
1979
+ } | {
1980
+ resource: string;
1981
+ action: string;
1982
+ scope: 'self' | 'children';
1983
+ } | {
1984
+ resource: string;
1985
+ action: string;
1986
+ scope: 'self' | 'children';
1987
+ labels: Array<string>;
1988
+ } | {
1989
+ resource: string;
1990
+ action: string;
1991
+ scope: 'self' | 'children';
1992
+ } | {
1993
+ resource: string;
1994
+ action: string;
1995
+ scope: 'self' | 'children';
1996
+ } | {
1997
+ resource: string;
1998
+ action: string;
1999
+ scope: string;
2000
+ labels: Array<string>;
2001
+ }>;
1910
2002
  maxTurns: number | unknown;
1911
2003
  concurrency: {
1912
2004
  max: number;
@@ -2040,7 +2132,37 @@ export type PutApiStepDefinitionsData = {
2040
2132
  on: Array<string>;
2041
2133
  maxAttempts: number;
2042
2134
  }>;
2043
- workItemPermissions?: Array<'self' | 'children'>;
2135
+ grants?: Array<{
2136
+ resource: string;
2137
+ action: string;
2138
+ scope: 'self' | 'children';
2139
+ } | {
2140
+ resource: string;
2141
+ action: string;
2142
+ scope: 'self' | 'children';
2143
+ } | {
2144
+ resource: string;
2145
+ action: string;
2146
+ scope: 'self' | 'children';
2147
+ } | {
2148
+ resource: string;
2149
+ action: string;
2150
+ scope: 'self' | 'children';
2151
+ labels: Array<string>;
2152
+ } | {
2153
+ resource: string;
2154
+ action: string;
2155
+ scope: 'self' | 'children';
2156
+ } | {
2157
+ resource: string;
2158
+ action: string;
2159
+ scope: 'self' | 'children';
2160
+ } | {
2161
+ resource: string;
2162
+ action: string;
2163
+ scope: string;
2164
+ labels: Array<string>;
2165
+ }>;
2044
2166
  maxTurns?: number | unknown;
2045
2167
  concurrency?: {
2046
2168
  max: number;
@@ -2276,7 +2398,37 @@ export type PutApiStepDefinitionsResponses = {
2276
2398
  on: Array<string>;
2277
2399
  maxAttempts: number;
2278
2400
  }>;
2279
- workItemPermissions: Array<'self' | 'children'>;
2401
+ grants: Array<{
2402
+ resource: string;
2403
+ action: string;
2404
+ scope: 'self' | 'children';
2405
+ } | {
2406
+ resource: string;
2407
+ action: string;
2408
+ scope: 'self' | 'children';
2409
+ } | {
2410
+ resource: string;
2411
+ action: string;
2412
+ scope: 'self' | 'children';
2413
+ } | {
2414
+ resource: string;
2415
+ action: string;
2416
+ scope: 'self' | 'children';
2417
+ labels: Array<string>;
2418
+ } | {
2419
+ resource: string;
2420
+ action: string;
2421
+ scope: 'self' | 'children';
2422
+ } | {
2423
+ resource: string;
2424
+ action: string;
2425
+ scope: 'self' | 'children';
2426
+ } | {
2427
+ resource: string;
2428
+ action: string;
2429
+ scope: string;
2430
+ labels: Array<string>;
2431
+ }>;
2280
2432
  maxTurns: number | unknown;
2281
2433
  concurrency: {
2282
2434
  max: number;
@@ -2520,7 +2672,37 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
2520
2672
  on: Array<string>;
2521
2673
  maxAttempts: number;
2522
2674
  }>;
2523
- workItemPermissions: Array<'self' | 'children'>;
2675
+ grants: Array<{
2676
+ resource: string;
2677
+ action: string;
2678
+ scope: 'self' | 'children';
2679
+ } | {
2680
+ resource: string;
2681
+ action: string;
2682
+ scope: 'self' | 'children';
2683
+ } | {
2684
+ resource: string;
2685
+ action: string;
2686
+ scope: 'self' | 'children';
2687
+ } | {
2688
+ resource: string;
2689
+ action: string;
2690
+ scope: 'self' | 'children';
2691
+ labels: Array<string>;
2692
+ } | {
2693
+ resource: string;
2694
+ action: string;
2695
+ scope: 'self' | 'children';
2696
+ } | {
2697
+ resource: string;
2698
+ action: string;
2699
+ scope: 'self' | 'children';
2700
+ } | {
2701
+ resource: string;
2702
+ action: string;
2703
+ scope: string;
2704
+ labels: Array<string>;
2705
+ }>;
2524
2706
  maxTurns: number | unknown;
2525
2707
  concurrency: {
2526
2708
  max: number;
@@ -2764,7 +2946,37 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
2764
2946
  on: Array<string>;
2765
2947
  maxAttempts: number;
2766
2948
  }>;
2767
- workItemPermissions: Array<'self' | 'children'>;
2949
+ grants: Array<{
2950
+ resource: string;
2951
+ action: string;
2952
+ scope: 'self' | 'children';
2953
+ } | {
2954
+ resource: string;
2955
+ action: string;
2956
+ scope: 'self' | 'children';
2957
+ } | {
2958
+ resource: string;
2959
+ action: string;
2960
+ scope: 'self' | 'children';
2961
+ } | {
2962
+ resource: string;
2963
+ action: string;
2964
+ scope: 'self' | 'children';
2965
+ labels: Array<string>;
2966
+ } | {
2967
+ resource: string;
2968
+ action: string;
2969
+ scope: 'self' | 'children';
2970
+ } | {
2971
+ resource: string;
2972
+ action: string;
2973
+ scope: 'self' | 'children';
2974
+ } | {
2975
+ resource: string;
2976
+ action: string;
2977
+ scope: string;
2978
+ labels: Array<string>;
2979
+ }>;
2768
2980
  maxTurns: number | unknown;
2769
2981
  concurrency: {
2770
2982
  max: number;
@@ -3044,7 +3256,37 @@ export type PostApiTasksResponses = {
3044
3256
  taskExecutionConfigId: string | unknown;
3045
3257
  inputJson: unknown;
3046
3258
  retryJson: unknown;
3047
- workItemPermissions: Array<'self' | 'children'>;
3259
+ grants: Array<{
3260
+ resource: string;
3261
+ action: string;
3262
+ scope: 'self' | 'children';
3263
+ } | {
3264
+ resource: string;
3265
+ action: string;
3266
+ scope: 'self' | 'children';
3267
+ } | {
3268
+ resource: string;
3269
+ action: string;
3270
+ scope: 'self' | 'children';
3271
+ } | {
3272
+ resource: string;
3273
+ action: string;
3274
+ scope: 'self' | 'children';
3275
+ labels: Array<string>;
3276
+ } | {
3277
+ resource: string;
3278
+ action: string;
3279
+ scope: 'self' | 'children';
3280
+ } | {
3281
+ resource: string;
3282
+ action: string;
3283
+ scope: 'self' | 'children';
3284
+ } | {
3285
+ resource: string;
3286
+ action: string;
3287
+ scope: string;
3288
+ labels: Array<string>;
3289
+ }>;
3048
3290
  maxTurns: number | unknown;
3049
3291
  heartbeatSeconds: number | unknown;
3050
3292
  executionTimeoutSeconds: number | unknown;
@@ -3325,7 +3567,37 @@ export type GetApiTasksByTaskIdResponses = {
3325
3567
  taskExecutionConfigId: string | unknown;
3326
3568
  inputJson: unknown;
3327
3569
  retryJson: unknown;
3328
- workItemPermissions: Array<'self' | 'children'>;
3570
+ grants: Array<{
3571
+ resource: string;
3572
+ action: string;
3573
+ scope: 'self' | 'children';
3574
+ } | {
3575
+ resource: string;
3576
+ action: string;
3577
+ scope: 'self' | 'children';
3578
+ } | {
3579
+ resource: string;
3580
+ action: string;
3581
+ scope: 'self' | 'children';
3582
+ } | {
3583
+ resource: string;
3584
+ action: string;
3585
+ scope: 'self' | 'children';
3586
+ labels: Array<string>;
3587
+ } | {
3588
+ resource: string;
3589
+ action: string;
3590
+ scope: 'self' | 'children';
3591
+ } | {
3592
+ resource: string;
3593
+ action: string;
3594
+ scope: 'self' | 'children';
3595
+ } | {
3596
+ resource: string;
3597
+ action: string;
3598
+ scope: string;
3599
+ labels: Array<string>;
3600
+ }>;
3329
3601
  maxTurns: number | unknown;
3330
3602
  heartbeatSeconds: number | unknown;
3331
3603
  executionTimeoutSeconds: number | unknown;
@@ -4179,7 +4451,37 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
4179
4451
  } | unknown;
4180
4452
  turnsRemaining: number | unknown;
4181
4453
  workItemId: string;
4182
- workItemPermissions: Array<'self' | 'children'>;
4454
+ grants: Array<{
4455
+ resource: string;
4456
+ action: string;
4457
+ scope: 'self' | 'children';
4458
+ } | {
4459
+ resource: string;
4460
+ action: string;
4461
+ scope: 'self' | 'children';
4462
+ } | {
4463
+ resource: string;
4464
+ action: string;
4465
+ scope: 'self' | 'children';
4466
+ } | {
4467
+ resource: string;
4468
+ action: string;
4469
+ scope: 'self' | 'children';
4470
+ labels: Array<string>;
4471
+ } | {
4472
+ resource: string;
4473
+ action: string;
4474
+ scope: 'self' | 'children';
4475
+ } | {
4476
+ resource: string;
4477
+ action: string;
4478
+ scope: 'self' | 'children';
4479
+ } | {
4480
+ resource: string;
4481
+ action: string;
4482
+ scope: string;
4483
+ labels: Array<string>;
4484
+ }>;
4183
4485
  };
4184
4486
  runtime: {
4185
4487
  executionMode: 'workspace' | 'no_workspace';
@@ -4344,10 +4646,6 @@ export type PostApiTaskRunsByTaskRunIdCompletionsData = {
4344
4646
  workItemId: string;
4345
4647
  reason: 'completed' | 'out_of_scope' | 'superseded';
4346
4648
  resolution?: string | unknown;
4347
- } | {
4348
- kind: string;
4349
- workItemId: string;
4350
- stepKey: string;
4351
4649
  }>;
4352
4650
  };
4353
4651
  path: {
@@ -4513,51 +4811,11 @@ export type PostApiTaskRunsByTaskRunIdCompletionsResponse = PostApiTaskRunsByTas
4513
4811
  export type PostApiTaskRunsByTaskRunIdYieldsData = {
4514
4812
  body: {
4515
4813
  claimToken: string;
4516
- kind?: 'hand_over' | 'wait_for_work';
4517
- message?: string;
4814
+ message: string;
4518
4815
  workBranch?: string | unknown;
4519
4816
  createdFromBranch?: string | unknown;
4520
4817
  sessionObjectKey?: string | unknown;
4521
4818
  sessionRestored?: boolean | unknown;
4522
- workItemChanges?: Array<{
4523
- kind: string;
4524
- workItemId: string;
4525
- title: string;
4526
- description: string;
4527
- fields?: {
4528
- [key: string]: unknown;
4529
- };
4530
- labels?: Array<string>;
4531
- blockedBy?: Array<string>;
4532
- } | {
4533
- kind: string;
4534
- workItemId: string;
4535
- add?: Array<string>;
4536
- remove?: Array<string>;
4537
- } | {
4538
- kind: string;
4539
- blockedWorkItemId: string;
4540
- blockingWorkItemId: string;
4541
- remove?: boolean;
4542
- } | {
4543
- kind: string;
4544
- workItemId: string;
4545
- description: string;
4546
- descriptionVersion: number;
4547
- } | {
4548
- kind: string;
4549
- workItemId: string;
4550
- body: string;
4551
- } | {
4552
- kind: string;
4553
- workItemId: string;
4554
- reason: 'completed' | 'out_of_scope' | 'superseded';
4555
- resolution?: string | unknown;
4556
- } | {
4557
- kind: string;
4558
- workItemId: string;
4559
- stepKey: string;
4560
- }>;
4561
4819
  };
4562
4820
  path: {
4563
4821
  taskRunId: string;
@@ -15274,7 +15532,7 @@ export type GetApiWorkItemCommentDraftsResponses = {
15274
15532
  taskId: string | unknown;
15275
15533
  agentSessionId: string | unknown;
15276
15534
  recipientUserId: string | unknown;
15277
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
15535
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
15278
15536
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
15279
15537
  title: string;
15280
15538
  body: string;
@@ -15674,7 +15932,7 @@ export type PostApiWorkItemCommentDraftsByNotificationIdRejectResponses = {
15674
15932
  taskId: string | unknown;
15675
15933
  agentSessionId: string | unknown;
15676
15934
  recipientUserId: string | unknown;
15677
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
15935
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
15678
15936
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
15679
15937
  title: string;
15680
15938
  body: string;
@@ -16696,7 +16954,7 @@ export type GetApiProjectsByProjectIdNotificationsResponses = {
16696
16954
  taskId: string | unknown;
16697
16955
  agentSessionId: string | unknown;
16698
16956
  recipientUserId: string | unknown;
16699
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
16957
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
16700
16958
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
16701
16959
  title: string;
16702
16960
  body: string;
@@ -16830,7 +17088,7 @@ export type GetApiProjectsByProjectIdNotificationsByNotificationIdResponses = {
16830
17088
  taskId: string | unknown;
16831
17089
  agentSessionId: string | unknown;
16832
17090
  recipientUserId: string | unknown;
16833
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17091
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
16834
17092
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
16835
17093
  title: string;
16836
17094
  body: string;
@@ -17090,7 +17348,7 @@ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondRespon
17090
17348
  taskId: string | unknown;
17091
17349
  agentSessionId: string | unknown;
17092
17350
  recipientUserId: string | unknown;
17093
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17351
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17094
17352
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
17095
17353
  title: string;
17096
17354
  body: string;
@@ -17509,7 +17767,7 @@ export type GetApiProjectsByProjectIdNotificationRulesResponses = {
17509
17767
  200: Array<{
17510
17768
  id: string;
17511
17769
  projectId: string;
17512
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17770
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17513
17771
  channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
17514
17772
  enabled: boolean;
17515
17773
  minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
@@ -17523,7 +17781,7 @@ export type GetApiProjectsByProjectIdNotificationRulesResponses = {
17523
17781
  export type GetApiProjectsByProjectIdNotificationRulesResponse = GetApiProjectsByProjectIdNotificationRulesResponses[keyof GetApiProjectsByProjectIdNotificationRulesResponses];
17524
17782
  export type PutApiProjectsByProjectIdNotificationRulesData = {
17525
17783
  body: {
17526
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17784
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17527
17785
  channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
17528
17786
  enabled: boolean;
17529
17787
  minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
@@ -17642,7 +17900,7 @@ export type PutApiProjectsByProjectIdNotificationRulesResponses = {
17642
17900
  200: {
17643
17901
  id: string;
17644
17902
  projectId: string;
17645
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17903
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17646
17904
  channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
17647
17905
  enabled: boolean;
17648
17906
  minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
@@ -17768,6 +18026,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
17768
18026
  id: string;
17769
18027
  projectId: string;
17770
18028
  status: 'active' | 'paused' | 'error';
18029
+ autoSync: {
18030
+ supported: boolean;
18031
+ state: 'off' | 'on' | 'paused';
18032
+ syncsAs: {
18033
+ userId: string;
18034
+ displayName: string | unknown;
18035
+ secretName: string;
18036
+ } | unknown;
18037
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18038
+ pausedDetail: string | unknown;
18039
+ pausedAt: string | unknown;
18040
+ };
17771
18041
  lastSyncedAt: string | unknown;
17772
18042
  lastError: string | unknown;
17773
18043
  firstSyncHorizonDays: number | unknown;
@@ -17787,6 +18057,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
17787
18057
  id: string;
17788
18058
  projectId: string;
17789
18059
  status: 'active' | 'paused' | 'error';
18060
+ autoSync: {
18061
+ supported: boolean;
18062
+ state: 'off' | 'on' | 'paused';
18063
+ syncsAs: {
18064
+ userId: string;
18065
+ displayName: string | unknown;
18066
+ secretName: string;
18067
+ } | unknown;
18068
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18069
+ pausedDetail: string | unknown;
18070
+ pausedAt: string | unknown;
18071
+ };
17790
18072
  lastSyncedAt: string | unknown;
17791
18073
  lastError: string | unknown;
17792
18074
  firstSyncHorizonDays: number | unknown;
@@ -17805,6 +18087,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
17805
18087
  id: string;
17806
18088
  projectId: string;
17807
18089
  status: 'active' | 'paused' | 'error';
18090
+ autoSync: {
18091
+ supported: boolean;
18092
+ state: 'off' | 'on' | 'paused';
18093
+ syncsAs: {
18094
+ userId: string;
18095
+ displayName: string | unknown;
18096
+ secretName: string;
18097
+ } | unknown;
18098
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18099
+ pausedDetail: string | unknown;
18100
+ pausedAt: string | unknown;
18101
+ };
17808
18102
  lastSyncedAt: string | unknown;
17809
18103
  lastError: string | unknown;
17810
18104
  firstSyncHorizonDays: number | unknown;
@@ -17824,6 +18118,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
17824
18118
  id: string;
17825
18119
  projectId: string;
17826
18120
  status: 'active' | 'paused' | 'error';
18121
+ autoSync: {
18122
+ supported: boolean;
18123
+ state: 'off' | 'on' | 'paused';
18124
+ syncsAs: {
18125
+ userId: string;
18126
+ displayName: string | unknown;
18127
+ secretName: string;
18128
+ } | unknown;
18129
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18130
+ pausedDetail: string | unknown;
18131
+ pausedAt: string | unknown;
18132
+ };
17827
18133
  lastSyncedAt: string | unknown;
17828
18134
  lastError: string | unknown;
17829
18135
  firstSyncHorizonDays: number | unknown;
@@ -17972,6 +18278,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
17972
18278
  id: string;
17973
18279
  projectId: string;
17974
18280
  status: 'active' | 'paused' | 'error';
18281
+ autoSync: {
18282
+ supported: boolean;
18283
+ state: 'off' | 'on' | 'paused';
18284
+ syncsAs: {
18285
+ userId: string;
18286
+ displayName: string | unknown;
18287
+ secretName: string;
18288
+ } | unknown;
18289
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18290
+ pausedDetail: string | unknown;
18291
+ pausedAt: string | unknown;
18292
+ };
17975
18293
  lastSyncedAt: string | unknown;
17976
18294
  lastError: string | unknown;
17977
18295
  firstSyncHorizonDays: number | unknown;
@@ -17991,6 +18309,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
17991
18309
  id: string;
17992
18310
  projectId: string;
17993
18311
  status: 'active' | 'paused' | 'error';
18312
+ autoSync: {
18313
+ supported: boolean;
18314
+ state: 'off' | 'on' | 'paused';
18315
+ syncsAs: {
18316
+ userId: string;
18317
+ displayName: string | unknown;
18318
+ secretName: string;
18319
+ } | unknown;
18320
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18321
+ pausedDetail: string | unknown;
18322
+ pausedAt: string | unknown;
18323
+ };
17994
18324
  lastSyncedAt: string | unknown;
17995
18325
  lastError: string | unknown;
17996
18326
  firstSyncHorizonDays: number | unknown;
@@ -18009,6 +18339,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
18009
18339
  id: string;
18010
18340
  projectId: string;
18011
18341
  status: 'active' | 'paused' | 'error';
18342
+ autoSync: {
18343
+ supported: boolean;
18344
+ state: 'off' | 'on' | 'paused';
18345
+ syncsAs: {
18346
+ userId: string;
18347
+ displayName: string | unknown;
18348
+ secretName: string;
18349
+ } | unknown;
18350
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18351
+ pausedDetail: string | unknown;
18352
+ pausedAt: string | unknown;
18353
+ };
18012
18354
  lastSyncedAt: string | unknown;
18013
18355
  lastError: string | unknown;
18014
18356
  firstSyncHorizonDays: number | unknown;
@@ -18028,6 +18370,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
18028
18370
  id: string;
18029
18371
  projectId: string;
18030
18372
  status: 'active' | 'paused' | 'error';
18373
+ autoSync: {
18374
+ supported: boolean;
18375
+ state: 'off' | 'on' | 'paused';
18376
+ syncsAs: {
18377
+ userId: string;
18378
+ displayName: string | unknown;
18379
+ secretName: string;
18380
+ } | unknown;
18381
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18382
+ pausedDetail: string | unknown;
18383
+ pausedAt: string | unknown;
18384
+ };
18031
18385
  lastSyncedAt: string | unknown;
18032
18386
  lastError: string | unknown;
18033
18387
  firstSyncHorizonDays: number | unknown;
@@ -18329,31 +18683,16 @@ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdResponses = {
18329
18683
  */
18330
18684
  200: unknown;
18331
18685
  };
18332
- export type GetApiIntegrationsGithubInstallData = {
18333
- body?: never;
18334
- path?: never;
18335
- query?: never;
18336
- url: '/api/integrations/github/install';
18337
- };
18338
- export type GetApiIntegrationsGithubCallbackData = {
18339
- body?: never;
18340
- path?: never;
18341
- query?: never;
18342
- url: '/api/integrations/github/callback';
18343
- };
18344
- export type PostApiIntegrationsGithubWebhookData = {
18345
- body?: never;
18346
- path?: never;
18347
- query?: never;
18348
- url: '/api/integrations/github/webhook';
18349
- };
18350
- export type GetApiIntegrationsGithubReposData = {
18686
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncData = {
18351
18687
  body?: never;
18352
- path?: never;
18688
+ path: {
18689
+ projectId: string;
18690
+ integrationId: string;
18691
+ };
18353
18692
  query?: never;
18354
- url: '/api/integrations/github/repos';
18693
+ url: '/api/projects/{projectId}/integrations/{integrationId}/auto-sync';
18355
18694
  };
18356
- export type GetApiIntegrationsGithubReposErrors = {
18695
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors = {
18357
18696
  /**
18358
18697
  * Response for status 400
18359
18698
  */
@@ -18393,9 +18732,9 @@ export type GetApiIntegrationsGithubReposErrors = {
18393
18732
  };
18394
18733
  };
18395
18734
  /**
18396
- * Response for status 500
18735
+ * Response for status 403
18397
18736
  */
18398
- 500: {
18737
+ 403: {
18399
18738
  type: string;
18400
18739
  title: string;
18401
18740
  status: number;
@@ -18411,35 +18750,10 @@ export type GetApiIntegrationsGithubReposErrors = {
18411
18750
  [key: string]: unknown;
18412
18751
  };
18413
18752
  };
18414
- };
18415
- export type GetApiIntegrationsGithubReposError = GetApiIntegrationsGithubReposErrors[keyof GetApiIntegrationsGithubReposErrors];
18416
- export type GetApiIntegrationsGithubReposResponses = {
18417
- /**
18418
- * Response for status 200
18419
- */
18420
- 200: Array<{
18421
- installationId: string;
18422
- accountLogin: string | unknown;
18423
- repos: Array<{
18424
- id: number;
18425
- fullName: string;
18426
- }>;
18427
- }>;
18428
- };
18429
- export type GetApiIntegrationsGithubReposResponse = GetApiIntegrationsGithubReposResponses[keyof GetApiIntegrationsGithubReposResponses];
18430
- export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshData = {
18431
- body?: never;
18432
- path: {
18433
- installationId: string;
18434
- };
18435
- query?: never;
18436
- url: '/api/integrations/github/installations/{installationId}/refresh';
18437
- };
18438
- export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors = {
18439
18753
  /**
18440
- * Response for status 400
18754
+ * Response for status 404
18441
18755
  */
18442
- 400: {
18756
+ 404: {
18443
18757
  type: string;
18444
18758
  title: string;
18445
18759
  status: number;
@@ -18456,9 +18770,9 @@ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors
18456
18770
  };
18457
18771
  };
18458
18772
  /**
18459
- * Response for status 401
18773
+ * Response for status 422
18460
18774
  */
18461
- 401: {
18775
+ 422: {
18462
18776
  type: string;
18463
18777
  title: string;
18464
18778
  status: number;
@@ -18475,9 +18789,9 @@ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors
18475
18789
  };
18476
18790
  };
18477
18791
  /**
18478
- * Response for status 403
18792
+ * Response for status 500
18479
18793
  */
18480
- 403: {
18794
+ 500: {
18481
18795
  type: string;
18482
18796
  title: string;
18483
18797
  status: number;
@@ -18494,9 +18808,9 @@ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors
18494
18808
  };
18495
18809
  };
18496
18810
  /**
18497
- * Response for status 500
18811
+ * Response for status 502
18498
18812
  */
18499
- 500: {
18813
+ 502: {
18500
18814
  type: string;
18501
18815
  title: string;
18502
18816
  status: number;
@@ -18513,28 +18827,614 @@ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors
18513
18827
  };
18514
18828
  };
18515
18829
  };
18516
- export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshError = PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors[keyof PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors];
18517
- export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponses = {
18830
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncError = DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors[keyof DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors];
18831
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses = {
18518
18832
  /**
18519
18833
  * Response for status 200
18520
18834
  */
18521
18835
  200: {
18836
+ id: string;
18837
+ projectId: string;
18838
+ status: 'active' | 'paused' | 'error';
18839
+ autoSync: {
18840
+ supported: boolean;
18841
+ state: 'off' | 'on' | 'paused';
18842
+ syncsAs: {
18843
+ userId: string;
18844
+ displayName: string | unknown;
18845
+ secretName: string;
18846
+ } | unknown;
18847
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18848
+ pausedDetail: string | unknown;
18849
+ pausedAt: string | unknown;
18850
+ };
18851
+ lastSyncedAt: string | unknown;
18852
+ lastError: string | unknown;
18853
+ firstSyncHorizonDays: number | unknown;
18854
+ createdAt: string;
18855
+ updatedAt: string;
18856
+ kind: string;
18857
+ platform: string;
18858
+ authMode: string;
18522
18859
  installationId: string;
18523
- accountLogin: string | unknown;
18524
- repos: Array<{
18525
- id: number;
18526
- fullName: string;
18527
- }>;
18528
- };
18529
- };
18530
- export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponse = PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponses[keyof PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponses];
18531
- export type PostApiProjectsRepoCheckData = {
18532
- body: {
18533
- gitUrl: string;
18534
- };
18535
- path?: never;
18536
- query?: never;
18537
- url: '/api/projects/repo-check';
18860
+ externalScope: {
18861
+ repos: Array<{
18862
+ id: number;
18863
+ fullName: string;
18864
+ }>;
18865
+ };
18866
+ } | {
18867
+ id: string;
18868
+ projectId: string;
18869
+ status: 'active' | 'paused' | 'error';
18870
+ autoSync: {
18871
+ supported: boolean;
18872
+ state: 'off' | 'on' | 'paused';
18873
+ syncsAs: {
18874
+ userId: string;
18875
+ displayName: string | unknown;
18876
+ secretName: string;
18877
+ } | unknown;
18878
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18879
+ pausedDetail: string | unknown;
18880
+ pausedAt: string | unknown;
18881
+ };
18882
+ lastSyncedAt: string | unknown;
18883
+ lastError: string | unknown;
18884
+ firstSyncHorizonDays: number | unknown;
18885
+ createdAt: string;
18886
+ updatedAt: string;
18887
+ kind: string;
18888
+ platform: string;
18889
+ authMode: string;
18890
+ externalScope: {
18891
+ repos: Array<{
18892
+ id: number;
18893
+ fullName: string;
18894
+ }>;
18895
+ };
18896
+ } | {
18897
+ id: string;
18898
+ projectId: string;
18899
+ status: 'active' | 'paused' | 'error';
18900
+ autoSync: {
18901
+ supported: boolean;
18902
+ state: 'off' | 'on' | 'paused';
18903
+ syncsAs: {
18904
+ userId: string;
18905
+ displayName: string | unknown;
18906
+ secretName: string;
18907
+ } | unknown;
18908
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18909
+ pausedDetail: string | unknown;
18910
+ pausedAt: string | unknown;
18911
+ };
18912
+ lastSyncedAt: string | unknown;
18913
+ lastError: string | unknown;
18914
+ firstSyncHorizonDays: number | unknown;
18915
+ createdAt: string;
18916
+ updatedAt: string;
18917
+ kind: string;
18918
+ platform: string;
18919
+ authMode: string;
18920
+ externalScope: {
18921
+ repos: Array<{
18922
+ workspace: string;
18923
+ slug: string;
18924
+ fullName: string;
18925
+ }>;
18926
+ };
18927
+ } | {
18928
+ id: string;
18929
+ projectId: string;
18930
+ status: 'active' | 'paused' | 'error';
18931
+ autoSync: {
18932
+ supported: boolean;
18933
+ state: 'off' | 'on' | 'paused';
18934
+ syncsAs: {
18935
+ userId: string;
18936
+ displayName: string | unknown;
18937
+ secretName: string;
18938
+ } | unknown;
18939
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
18940
+ pausedDetail: string | unknown;
18941
+ pausedAt: string | unknown;
18942
+ };
18943
+ lastSyncedAt: string | unknown;
18944
+ lastError: string | unknown;
18945
+ firstSyncHorizonDays: number | unknown;
18946
+ createdAt: string;
18947
+ updatedAt: string;
18948
+ kind: string;
18949
+ platform: string;
18950
+ authMode: string;
18951
+ externalScope: {
18952
+ baseUrl: string;
18953
+ projectKeys: Array<string>;
18954
+ };
18955
+ };
18956
+ };
18957
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponse = DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses[keyof DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses];
18958
+ export type PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncData = {
18959
+ body: {
18960
+ secretId: string;
18961
+ };
18962
+ path: {
18963
+ projectId: string;
18964
+ integrationId: string;
18965
+ };
18966
+ query?: never;
18967
+ url: '/api/projects/{projectId}/integrations/{integrationId}/auto-sync';
18968
+ };
18969
+ export type PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors = {
18970
+ /**
18971
+ * Response for status 400
18972
+ */
18973
+ 400: {
18974
+ type: string;
18975
+ title: string;
18976
+ status: number;
18977
+ detail?: string;
18978
+ instance?: string;
18979
+ code?: string;
18980
+ errors?: Array<{
18981
+ path: string;
18982
+ message: string;
18983
+ summary?: string;
18984
+ }>;
18985
+ meta?: {
18986
+ [key: string]: unknown;
18987
+ };
18988
+ };
18989
+ /**
18990
+ * Response for status 401
18991
+ */
18992
+ 401: {
18993
+ type: string;
18994
+ title: string;
18995
+ status: number;
18996
+ detail?: string;
18997
+ instance?: string;
18998
+ code?: string;
18999
+ errors?: Array<{
19000
+ path: string;
19001
+ message: string;
19002
+ summary?: string;
19003
+ }>;
19004
+ meta?: {
19005
+ [key: string]: unknown;
19006
+ };
19007
+ };
19008
+ /**
19009
+ * Response for status 403
19010
+ */
19011
+ 403: {
19012
+ type: string;
19013
+ title: string;
19014
+ status: number;
19015
+ detail?: string;
19016
+ instance?: string;
19017
+ code?: string;
19018
+ errors?: Array<{
19019
+ path: string;
19020
+ message: string;
19021
+ summary?: string;
19022
+ }>;
19023
+ meta?: {
19024
+ [key: string]: unknown;
19025
+ };
19026
+ };
19027
+ /**
19028
+ * Response for status 404
19029
+ */
19030
+ 404: {
19031
+ type: string;
19032
+ title: string;
19033
+ status: number;
19034
+ detail?: string;
19035
+ instance?: string;
19036
+ code?: string;
19037
+ errors?: Array<{
19038
+ path: string;
19039
+ message: string;
19040
+ summary?: string;
19041
+ }>;
19042
+ meta?: {
19043
+ [key: string]: unknown;
19044
+ };
19045
+ };
19046
+ /**
19047
+ * Response for status 422
19048
+ */
19049
+ 422: {
19050
+ type: string;
19051
+ title: string;
19052
+ status: number;
19053
+ detail?: string;
19054
+ instance?: string;
19055
+ code?: string;
19056
+ errors?: Array<{
19057
+ path: string;
19058
+ message: string;
19059
+ summary?: string;
19060
+ }>;
19061
+ meta?: {
19062
+ [key: string]: unknown;
19063
+ };
19064
+ };
19065
+ /**
19066
+ * Response for status 500
19067
+ */
19068
+ 500: {
19069
+ type: string;
19070
+ title: string;
19071
+ status: number;
19072
+ detail?: string;
19073
+ instance?: string;
19074
+ code?: string;
19075
+ errors?: Array<{
19076
+ path: string;
19077
+ message: string;
19078
+ summary?: string;
19079
+ }>;
19080
+ meta?: {
19081
+ [key: string]: unknown;
19082
+ };
19083
+ };
19084
+ /**
19085
+ * Response for status 502
19086
+ */
19087
+ 502: {
19088
+ type: string;
19089
+ title: string;
19090
+ status: number;
19091
+ detail?: string;
19092
+ instance?: string;
19093
+ code?: string;
19094
+ errors?: Array<{
19095
+ path: string;
19096
+ message: string;
19097
+ summary?: string;
19098
+ }>;
19099
+ meta?: {
19100
+ [key: string]: unknown;
19101
+ };
19102
+ };
19103
+ };
19104
+ export type PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncError = PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors[keyof PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors];
19105
+ export type PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses = {
19106
+ /**
19107
+ * Response for status 200
19108
+ */
19109
+ 200: {
19110
+ id: string;
19111
+ projectId: string;
19112
+ status: 'active' | 'paused' | 'error';
19113
+ autoSync: {
19114
+ supported: boolean;
19115
+ state: 'off' | 'on' | 'paused';
19116
+ syncsAs: {
19117
+ userId: string;
19118
+ displayName: string | unknown;
19119
+ secretName: string;
19120
+ } | unknown;
19121
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
19122
+ pausedDetail: string | unknown;
19123
+ pausedAt: string | unknown;
19124
+ };
19125
+ lastSyncedAt: string | unknown;
19126
+ lastError: string | unknown;
19127
+ firstSyncHorizonDays: number | unknown;
19128
+ createdAt: string;
19129
+ updatedAt: string;
19130
+ kind: string;
19131
+ platform: string;
19132
+ authMode: string;
19133
+ installationId: string;
19134
+ externalScope: {
19135
+ repos: Array<{
19136
+ id: number;
19137
+ fullName: string;
19138
+ }>;
19139
+ };
19140
+ } | {
19141
+ id: string;
19142
+ projectId: string;
19143
+ status: 'active' | 'paused' | 'error';
19144
+ autoSync: {
19145
+ supported: boolean;
19146
+ state: 'off' | 'on' | 'paused';
19147
+ syncsAs: {
19148
+ userId: string;
19149
+ displayName: string | unknown;
19150
+ secretName: string;
19151
+ } | unknown;
19152
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
19153
+ pausedDetail: string | unknown;
19154
+ pausedAt: string | unknown;
19155
+ };
19156
+ lastSyncedAt: string | unknown;
19157
+ lastError: string | unknown;
19158
+ firstSyncHorizonDays: number | unknown;
19159
+ createdAt: string;
19160
+ updatedAt: string;
19161
+ kind: string;
19162
+ platform: string;
19163
+ authMode: string;
19164
+ externalScope: {
19165
+ repos: Array<{
19166
+ id: number;
19167
+ fullName: string;
19168
+ }>;
19169
+ };
19170
+ } | {
19171
+ id: string;
19172
+ projectId: string;
19173
+ status: 'active' | 'paused' | 'error';
19174
+ autoSync: {
19175
+ supported: boolean;
19176
+ state: 'off' | 'on' | 'paused';
19177
+ syncsAs: {
19178
+ userId: string;
19179
+ displayName: string | unknown;
19180
+ secretName: string;
19181
+ } | unknown;
19182
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
19183
+ pausedDetail: string | unknown;
19184
+ pausedAt: string | unknown;
19185
+ };
19186
+ lastSyncedAt: string | unknown;
19187
+ lastError: string | unknown;
19188
+ firstSyncHorizonDays: number | unknown;
19189
+ createdAt: string;
19190
+ updatedAt: string;
19191
+ kind: string;
19192
+ platform: string;
19193
+ authMode: string;
19194
+ externalScope: {
19195
+ repos: Array<{
19196
+ workspace: string;
19197
+ slug: string;
19198
+ fullName: string;
19199
+ }>;
19200
+ };
19201
+ } | {
19202
+ id: string;
19203
+ projectId: string;
19204
+ status: 'active' | 'paused' | 'error';
19205
+ autoSync: {
19206
+ supported: boolean;
19207
+ state: 'off' | 'on' | 'paused';
19208
+ syncsAs: {
19209
+ userId: string;
19210
+ displayName: string | unknown;
19211
+ secretName: string;
19212
+ } | unknown;
19213
+ pausedReason: 'key_removed' | 'key_rejected' | 'key_expired' | 'owner_left_project' | 'access_lost' | unknown;
19214
+ pausedDetail: string | unknown;
19215
+ pausedAt: string | unknown;
19216
+ };
19217
+ lastSyncedAt: string | unknown;
19218
+ lastError: string | unknown;
19219
+ firstSyncHorizonDays: number | unknown;
19220
+ createdAt: string;
19221
+ updatedAt: string;
19222
+ kind: string;
19223
+ platform: string;
19224
+ authMode: string;
19225
+ externalScope: {
19226
+ baseUrl: string;
19227
+ projectKeys: Array<string>;
19228
+ };
19229
+ };
19230
+ };
19231
+ export type PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponse = PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses[keyof PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses];
19232
+ export type GetApiIntegrationsGithubInstallData = {
19233
+ body?: never;
19234
+ path?: never;
19235
+ query?: never;
19236
+ url: '/api/integrations/github/install';
19237
+ };
19238
+ export type GetApiIntegrationsGithubCallbackData = {
19239
+ body?: never;
19240
+ path?: never;
19241
+ query?: never;
19242
+ url: '/api/integrations/github/callback';
19243
+ };
19244
+ export type PostApiIntegrationsGithubWebhookData = {
19245
+ body?: never;
19246
+ path?: never;
19247
+ query?: never;
19248
+ url: '/api/integrations/github/webhook';
19249
+ };
19250
+ export type GetApiIntegrationsGithubReposData = {
19251
+ body?: never;
19252
+ path?: never;
19253
+ query?: never;
19254
+ url: '/api/integrations/github/repos';
19255
+ };
19256
+ export type GetApiIntegrationsGithubReposErrors = {
19257
+ /**
19258
+ * Response for status 400
19259
+ */
19260
+ 400: {
19261
+ type: string;
19262
+ title: string;
19263
+ status: number;
19264
+ detail?: string;
19265
+ instance?: string;
19266
+ code?: string;
19267
+ errors?: Array<{
19268
+ path: string;
19269
+ message: string;
19270
+ summary?: string;
19271
+ }>;
19272
+ meta?: {
19273
+ [key: string]: unknown;
19274
+ };
19275
+ };
19276
+ /**
19277
+ * Response for status 401
19278
+ */
19279
+ 401: {
19280
+ type: string;
19281
+ title: string;
19282
+ status: number;
19283
+ detail?: string;
19284
+ instance?: string;
19285
+ code?: string;
19286
+ errors?: Array<{
19287
+ path: string;
19288
+ message: string;
19289
+ summary?: string;
19290
+ }>;
19291
+ meta?: {
19292
+ [key: string]: unknown;
19293
+ };
19294
+ };
19295
+ /**
19296
+ * Response for status 500
19297
+ */
19298
+ 500: {
19299
+ type: string;
19300
+ title: string;
19301
+ status: number;
19302
+ detail?: string;
19303
+ instance?: string;
19304
+ code?: string;
19305
+ errors?: Array<{
19306
+ path: string;
19307
+ message: string;
19308
+ summary?: string;
19309
+ }>;
19310
+ meta?: {
19311
+ [key: string]: unknown;
19312
+ };
19313
+ };
19314
+ };
19315
+ export type GetApiIntegrationsGithubReposError = GetApiIntegrationsGithubReposErrors[keyof GetApiIntegrationsGithubReposErrors];
19316
+ export type GetApiIntegrationsGithubReposResponses = {
19317
+ /**
19318
+ * Response for status 200
19319
+ */
19320
+ 200: Array<{
19321
+ installationId: string;
19322
+ accountLogin: string | unknown;
19323
+ repos: Array<{
19324
+ id: number;
19325
+ fullName: string;
19326
+ }>;
19327
+ }>;
19328
+ };
19329
+ export type GetApiIntegrationsGithubReposResponse = GetApiIntegrationsGithubReposResponses[keyof GetApiIntegrationsGithubReposResponses];
19330
+ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshData = {
19331
+ body?: never;
19332
+ path: {
19333
+ installationId: string;
19334
+ };
19335
+ query?: never;
19336
+ url: '/api/integrations/github/installations/{installationId}/refresh';
19337
+ };
19338
+ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors = {
19339
+ /**
19340
+ * Response for status 400
19341
+ */
19342
+ 400: {
19343
+ type: string;
19344
+ title: string;
19345
+ status: number;
19346
+ detail?: string;
19347
+ instance?: string;
19348
+ code?: string;
19349
+ errors?: Array<{
19350
+ path: string;
19351
+ message: string;
19352
+ summary?: string;
19353
+ }>;
19354
+ meta?: {
19355
+ [key: string]: unknown;
19356
+ };
19357
+ };
19358
+ /**
19359
+ * Response for status 401
19360
+ */
19361
+ 401: {
19362
+ type: string;
19363
+ title: string;
19364
+ status: number;
19365
+ detail?: string;
19366
+ instance?: string;
19367
+ code?: string;
19368
+ errors?: Array<{
19369
+ path: string;
19370
+ message: string;
19371
+ summary?: string;
19372
+ }>;
19373
+ meta?: {
19374
+ [key: string]: unknown;
19375
+ };
19376
+ };
19377
+ /**
19378
+ * Response for status 403
19379
+ */
19380
+ 403: {
19381
+ type: string;
19382
+ title: string;
19383
+ status: number;
19384
+ detail?: string;
19385
+ instance?: string;
19386
+ code?: string;
19387
+ errors?: Array<{
19388
+ path: string;
19389
+ message: string;
19390
+ summary?: string;
19391
+ }>;
19392
+ meta?: {
19393
+ [key: string]: unknown;
19394
+ };
19395
+ };
19396
+ /**
19397
+ * Response for status 500
19398
+ */
19399
+ 500: {
19400
+ type: string;
19401
+ title: string;
19402
+ status: number;
19403
+ detail?: string;
19404
+ instance?: string;
19405
+ code?: string;
19406
+ errors?: Array<{
19407
+ path: string;
19408
+ message: string;
19409
+ summary?: string;
19410
+ }>;
19411
+ meta?: {
19412
+ [key: string]: unknown;
19413
+ };
19414
+ };
19415
+ };
19416
+ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshError = PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors[keyof PostApiIntegrationsGithubInstallationsByInstallationIdRefreshErrors];
19417
+ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponses = {
19418
+ /**
19419
+ * Response for status 200
19420
+ */
19421
+ 200: {
19422
+ installationId: string;
19423
+ accountLogin: string | unknown;
19424
+ repos: Array<{
19425
+ id: number;
19426
+ fullName: string;
19427
+ }>;
19428
+ };
19429
+ };
19430
+ export type PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponse = PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponses[keyof PostApiIntegrationsGithubInstallationsByInstallationIdRefreshResponses];
19431
+ export type PostApiProjectsRepoCheckData = {
19432
+ body: {
19433
+ gitUrl: string;
19434
+ };
19435
+ path?: never;
19436
+ query?: never;
19437
+ url: '/api/projects/repo-check';
18538
19438
  };
18539
19439
  export type PostApiProjectsRepoCheckErrors = {
18540
19440
  /**
@@ -19913,6 +20813,12 @@ export type GetApiMeSecretsResponses = {
19913
20813
  status: 'active' | 'expiring_soon' | 'expired';
19914
20814
  createdAt: string;
19915
20815
  updatedAt: string;
20816
+ usedBy: Array<{
20817
+ projectId: string;
20818
+ projectName: string;
20819
+ integrationId: string;
20820
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
20821
+ }>;
19916
20822
  } | {
19917
20823
  id: string;
19918
20824
  kind: string;
@@ -19926,6 +20832,12 @@ export type GetApiMeSecretsResponses = {
19926
20832
  status: 'active' | 'expiring_soon' | 'expired';
19927
20833
  createdAt: string;
19928
20834
  updatedAt: string;
20835
+ usedBy: Array<{
20836
+ projectId: string;
20837
+ projectName: string;
20838
+ integrationId: string;
20839
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
20840
+ }>;
19929
20841
  } | {
19930
20842
  id: string;
19931
20843
  kind: string;
@@ -19939,6 +20851,12 @@ export type GetApiMeSecretsResponses = {
19939
20851
  status: 'active' | 'expiring_soon' | 'expired';
19940
20852
  createdAt: string;
19941
20853
  updatedAt: string;
20854
+ usedBy: Array<{
20855
+ projectId: string;
20856
+ projectName: string;
20857
+ integrationId: string;
20858
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
20859
+ }>;
19942
20860
  }>;
19943
20861
  };
19944
20862
  export type GetApiMeSecretsResponse = GetApiMeSecretsResponses[keyof GetApiMeSecretsResponses];
@@ -20081,6 +20999,12 @@ export type PostApiMeSecretsResponses = {
20081
20999
  status: 'active' | 'expiring_soon' | 'expired';
20082
21000
  createdAt: string;
20083
21001
  updatedAt: string;
21002
+ usedBy: Array<{
21003
+ projectId: string;
21004
+ projectName: string;
21005
+ integrationId: string;
21006
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21007
+ }>;
20084
21008
  } | {
20085
21009
  id: string;
20086
21010
  kind: string;
@@ -20094,6 +21018,12 @@ export type PostApiMeSecretsResponses = {
20094
21018
  status: 'active' | 'expiring_soon' | 'expired';
20095
21019
  createdAt: string;
20096
21020
  updatedAt: string;
21021
+ usedBy: Array<{
21022
+ projectId: string;
21023
+ projectName: string;
21024
+ integrationId: string;
21025
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21026
+ }>;
20097
21027
  } | {
20098
21028
  id: string;
20099
21029
  kind: string;
@@ -20107,6 +21037,12 @@ export type PostApiMeSecretsResponses = {
20107
21037
  status: 'active' | 'expiring_soon' | 'expired';
20108
21038
  createdAt: string;
20109
21039
  updatedAt: string;
21040
+ usedBy: Array<{
21041
+ projectId: string;
21042
+ projectName: string;
21043
+ integrationId: string;
21044
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21045
+ }>;
20110
21046
  };
20111
21047
  };
20112
21048
  export type PostApiMeSecretsResponse = PostApiMeSecretsResponses[keyof PostApiMeSecretsResponses];
@@ -20369,6 +21305,12 @@ export type PatchApiMeSecretsBySecretIdResponses = {
20369
21305
  status: 'active' | 'expiring_soon' | 'expired';
20370
21306
  createdAt: string;
20371
21307
  updatedAt: string;
21308
+ usedBy: Array<{
21309
+ projectId: string;
21310
+ projectName: string;
21311
+ integrationId: string;
21312
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21313
+ }>;
20372
21314
  } | {
20373
21315
  id: string;
20374
21316
  kind: string;
@@ -20382,6 +21324,12 @@ export type PatchApiMeSecretsBySecretIdResponses = {
20382
21324
  status: 'active' | 'expiring_soon' | 'expired';
20383
21325
  createdAt: string;
20384
21326
  updatedAt: string;
21327
+ usedBy: Array<{
21328
+ projectId: string;
21329
+ projectName: string;
21330
+ integrationId: string;
21331
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21332
+ }>;
20385
21333
  } | {
20386
21334
  id: string;
20387
21335
  kind: string;
@@ -20395,6 +21343,183 @@ export type PatchApiMeSecretsBySecretIdResponses = {
20395
21343
  status: 'active' | 'expiring_soon' | 'expired';
20396
21344
  createdAt: string;
20397
21345
  updatedAt: string;
21346
+ usedBy: Array<{
21347
+ projectId: string;
21348
+ projectName: string;
21349
+ integrationId: string;
21350
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21351
+ }>;
20398
21352
  };
20399
21353
  };
20400
21354
  export type PatchApiMeSecretsBySecretIdResponse = PatchApiMeSecretsBySecretIdResponses[keyof PatchApiMeSecretsBySecretIdResponses];
21355
+ export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdData = {
21356
+ body?: never;
21357
+ path: {
21358
+ secretId: string;
21359
+ integrationId: string;
21360
+ };
21361
+ query?: never;
21362
+ url: '/api/me/secrets/{secretId}/uses/{integrationId}';
21363
+ };
21364
+ export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdErrors = {
21365
+ /**
21366
+ * Response for status 401
21367
+ */
21368
+ 401: {
21369
+ type: string;
21370
+ title: string;
21371
+ status: number;
21372
+ detail?: string;
21373
+ instance?: string;
21374
+ code?: string;
21375
+ errors?: Array<{
21376
+ path: string;
21377
+ message: string;
21378
+ summary?: string;
21379
+ }>;
21380
+ meta?: {
21381
+ [key: string]: unknown;
21382
+ };
21383
+ };
21384
+ /**
21385
+ * Response for status 403
21386
+ */
21387
+ 403: {
21388
+ type: string;
21389
+ title: string;
21390
+ status: number;
21391
+ detail?: string;
21392
+ instance?: string;
21393
+ code?: string;
21394
+ errors?: Array<{
21395
+ path: string;
21396
+ message: string;
21397
+ summary?: string;
21398
+ }>;
21399
+ meta?: {
21400
+ [key: string]: unknown;
21401
+ };
21402
+ };
21403
+ /**
21404
+ * Response for status 404
21405
+ */
21406
+ 404: {
21407
+ type: string;
21408
+ title: string;
21409
+ status: number;
21410
+ detail?: string;
21411
+ instance?: string;
21412
+ code?: string;
21413
+ errors?: Array<{
21414
+ path: string;
21415
+ message: string;
21416
+ summary?: string;
21417
+ }>;
21418
+ meta?: {
21419
+ [key: string]: unknown;
21420
+ };
21421
+ };
21422
+ /**
21423
+ * Response for status 422
21424
+ */
21425
+ 422: {
21426
+ type: string;
21427
+ title: string;
21428
+ status: number;
21429
+ detail?: string;
21430
+ instance?: string;
21431
+ code?: string;
21432
+ errors?: Array<{
21433
+ path: string;
21434
+ message: string;
21435
+ summary?: string;
21436
+ }>;
21437
+ meta?: {
21438
+ [key: string]: unknown;
21439
+ };
21440
+ };
21441
+ /**
21442
+ * Response for status 500
21443
+ */
21444
+ 500: {
21445
+ type: string;
21446
+ title: string;
21447
+ status: number;
21448
+ detail?: string;
21449
+ instance?: string;
21450
+ code?: string;
21451
+ errors?: Array<{
21452
+ path: string;
21453
+ message: string;
21454
+ summary?: string;
21455
+ }>;
21456
+ meta?: {
21457
+ [key: string]: unknown;
21458
+ };
21459
+ };
21460
+ };
21461
+ export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdError = DeleteApiMeSecretsBySecretIdUsesByIntegrationIdErrors[keyof DeleteApiMeSecretsBySecretIdUsesByIntegrationIdErrors];
21462
+ export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponses = {
21463
+ /**
21464
+ * Response for status 200
21465
+ */
21466
+ 200: {
21467
+ id: string;
21468
+ kind: string;
21469
+ name: string;
21470
+ metadata: {
21471
+ email: string;
21472
+ };
21473
+ lastFour: string;
21474
+ expiresAt: string;
21475
+ lastUsedAt: string | unknown;
21476
+ status: 'active' | 'expiring_soon' | 'expired';
21477
+ createdAt: string;
21478
+ updatedAt: string;
21479
+ usedBy: Array<{
21480
+ projectId: string;
21481
+ projectName: string;
21482
+ integrationId: string;
21483
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21484
+ }>;
21485
+ } | {
21486
+ id: string;
21487
+ kind: string;
21488
+ name: string;
21489
+ metadata: {
21490
+ login: string | unknown;
21491
+ };
21492
+ lastFour: string;
21493
+ expiresAt: string | unknown;
21494
+ lastUsedAt: string | unknown;
21495
+ status: 'active' | 'expiring_soon' | 'expired';
21496
+ createdAt: string;
21497
+ updatedAt: string;
21498
+ usedBy: Array<{
21499
+ projectId: string;
21500
+ projectName: string;
21501
+ integrationId: string;
21502
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21503
+ }>;
21504
+ } | {
21505
+ id: string;
21506
+ kind: string;
21507
+ name: string;
21508
+ metadata: {
21509
+ email: string;
21510
+ };
21511
+ lastFour: string;
21512
+ expiresAt: string;
21513
+ lastUsedAt: string | unknown;
21514
+ status: 'active' | 'expiring_soon' | 'expired';
21515
+ createdAt: string;
21516
+ updatedAt: string;
21517
+ usedBy: Array<{
21518
+ projectId: string;
21519
+ projectName: string;
21520
+ integrationId: string;
21521
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21522
+ }>;
21523
+ };
21524
+ };
21525
+ export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponse = DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponses[keyof DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponses];