@scarn/sdk 0.8.4 → 0.8.6

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;
@@ -15530,7 +15532,7 @@ export type GetApiWorkItemCommentDraftsResponses = {
15530
15532
  taskId: string | unknown;
15531
15533
  agentSessionId: string | unknown;
15532
15534
  recipientUserId: string | unknown;
15533
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
15535
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
15534
15536
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
15535
15537
  title: string;
15536
15538
  body: string;
@@ -15930,7 +15932,7 @@ export type PostApiWorkItemCommentDraftsByNotificationIdRejectResponses = {
15930
15932
  taskId: string | unknown;
15931
15933
  agentSessionId: string | unknown;
15932
15934
  recipientUserId: string | unknown;
15933
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
15935
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
15934
15936
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
15935
15937
  title: string;
15936
15938
  body: string;
@@ -16952,7 +16954,7 @@ export type GetApiProjectsByProjectIdNotificationsResponses = {
16952
16954
  taskId: string | unknown;
16953
16955
  agentSessionId: string | unknown;
16954
16956
  recipientUserId: string | unknown;
16955
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
16957
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
16956
16958
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
16957
16959
  title: string;
16958
16960
  body: string;
@@ -17086,7 +17088,7 @@ export type GetApiProjectsByProjectIdNotificationsByNotificationIdResponses = {
17086
17088
  taskId: string | unknown;
17087
17089
  agentSessionId: string | unknown;
17088
17090
  recipientUserId: string | unknown;
17089
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17091
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17090
17092
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
17091
17093
  title: string;
17092
17094
  body: string;
@@ -17346,7 +17348,7 @@ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondRespon
17346
17348
  taskId: string | unknown;
17347
17349
  agentSessionId: string | unknown;
17348
17350
  recipientUserId: string | unknown;
17349
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17351
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17350
17352
  audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
17351
17353
  title: string;
17352
17354
  body: string;
@@ -17765,7 +17767,7 @@ export type GetApiProjectsByProjectIdNotificationRulesResponses = {
17765
17767
  200: Array<{
17766
17768
  id: string;
17767
17769
  projectId: string;
17768
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17770
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17769
17771
  channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
17770
17772
  enabled: boolean;
17771
17773
  minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
@@ -17779,7 +17781,7 @@ export type GetApiProjectsByProjectIdNotificationRulesResponses = {
17779
17781
  export type GetApiProjectsByProjectIdNotificationRulesResponse = GetApiProjectsByProjectIdNotificationRulesResponses[keyof GetApiProjectsByProjectIdNotificationRulesResponses];
17780
17782
  export type PutApiProjectsByProjectIdNotificationRulesData = {
17781
17783
  body: {
17782
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17784
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17783
17785
  channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
17784
17786
  enabled: boolean;
17785
17787
  minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
@@ -17898,7 +17900,7 @@ export type PutApiProjectsByProjectIdNotificationRulesResponses = {
17898
17900
  200: {
17899
17901
  id: string;
17900
17902
  projectId: string;
17901
- kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
17903
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning' | 'integration_auto_sync_paused';
17902
17904
  channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
17903
17905
  enabled: boolean;
17904
17906
  minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
@@ -18024,6 +18026,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
18024
18026
  id: string;
18025
18027
  projectId: string;
18026
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
+ };
18027
18041
  lastSyncedAt: string | unknown;
18028
18042
  lastError: string | unknown;
18029
18043
  firstSyncHorizonDays: number | unknown;
@@ -18043,6 +18057,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
18043
18057
  id: string;
18044
18058
  projectId: string;
18045
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
+ };
18046
18072
  lastSyncedAt: string | unknown;
18047
18073
  lastError: string | unknown;
18048
18074
  firstSyncHorizonDays: number | unknown;
@@ -18061,6 +18087,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
18061
18087
  id: string;
18062
18088
  projectId: string;
18063
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
+ };
18064
18102
  lastSyncedAt: string | unknown;
18065
18103
  lastError: string | unknown;
18066
18104
  firstSyncHorizonDays: number | unknown;
@@ -18080,6 +18118,18 @@ export type GetApiProjectsByProjectIdIntegrationsResponses = {
18080
18118
  id: string;
18081
18119
  projectId: string;
18082
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
+ };
18083
18133
  lastSyncedAt: string | unknown;
18084
18134
  lastError: string | unknown;
18085
18135
  firstSyncHorizonDays: number | unknown;
@@ -18228,6 +18278,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
18228
18278
  id: string;
18229
18279
  projectId: string;
18230
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
+ };
18231
18293
  lastSyncedAt: string | unknown;
18232
18294
  lastError: string | unknown;
18233
18295
  firstSyncHorizonDays: number | unknown;
@@ -18247,6 +18309,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
18247
18309
  id: string;
18248
18310
  projectId: string;
18249
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
+ };
18250
18324
  lastSyncedAt: string | unknown;
18251
18325
  lastError: string | unknown;
18252
18326
  firstSyncHorizonDays: number | unknown;
@@ -18265,6 +18339,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
18265
18339
  id: string;
18266
18340
  projectId: string;
18267
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
+ };
18268
18354
  lastSyncedAt: string | unknown;
18269
18355
  lastError: string | unknown;
18270
18356
  firstSyncHorizonDays: number | unknown;
@@ -18284,6 +18370,18 @@ export type PostApiProjectsByProjectIdIntegrationsResponses = {
18284
18370
  id: string;
18285
18371
  projectId: string;
18286
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
+ };
18287
18385
  lastSyncedAt: string | unknown;
18288
18386
  lastError: string | unknown;
18289
18387
  firstSyncHorizonDays: number | unknown;
@@ -18538,53 +18636,599 @@ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors = {
18538
18636
  meta?: {
18539
18637
  [key: string]: unknown;
18540
18638
  };
18541
- };
18542
- /**
18543
- * Response for status 422
18544
- */
18545
- 422: {
18546
- type: string;
18547
- title: string;
18548
- status: number;
18549
- detail?: string;
18550
- instance?: string;
18551
- code?: string;
18552
- errors?: Array<{
18553
- path: string;
18554
- message: string;
18555
- summary?: string;
18556
- }>;
18557
- meta?: {
18558
- [key: string]: unknown;
18639
+ };
18640
+ /**
18641
+ * Response for status 422
18642
+ */
18643
+ 422: {
18644
+ type: string;
18645
+ title: string;
18646
+ status: number;
18647
+ detail?: string;
18648
+ instance?: string;
18649
+ code?: string;
18650
+ errors?: Array<{
18651
+ path: string;
18652
+ message: string;
18653
+ summary?: string;
18654
+ }>;
18655
+ meta?: {
18656
+ [key: string]: unknown;
18657
+ };
18658
+ };
18659
+ /**
18660
+ * Response for status 500
18661
+ */
18662
+ 500: {
18663
+ type: string;
18664
+ title: string;
18665
+ status: number;
18666
+ detail?: string;
18667
+ instance?: string;
18668
+ code?: string;
18669
+ errors?: Array<{
18670
+ path: string;
18671
+ message: string;
18672
+ summary?: string;
18673
+ }>;
18674
+ meta?: {
18675
+ [key: string]: unknown;
18676
+ };
18677
+ };
18678
+ };
18679
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdError = DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors[keyof DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors];
18680
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdResponses = {
18681
+ /**
18682
+ * Response for status 200
18683
+ */
18684
+ 200: unknown;
18685
+ };
18686
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncData = {
18687
+ body?: never;
18688
+ path: {
18689
+ projectId: string;
18690
+ integrationId: string;
18691
+ };
18692
+ query?: never;
18693
+ url: '/api/projects/{projectId}/integrations/{integrationId}/auto-sync';
18694
+ };
18695
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors = {
18696
+ /**
18697
+ * Response for status 400
18698
+ */
18699
+ 400: {
18700
+ type: string;
18701
+ title: string;
18702
+ status: number;
18703
+ detail?: string;
18704
+ instance?: string;
18705
+ code?: string;
18706
+ errors?: Array<{
18707
+ path: string;
18708
+ message: string;
18709
+ summary?: string;
18710
+ }>;
18711
+ meta?: {
18712
+ [key: string]: unknown;
18713
+ };
18714
+ };
18715
+ /**
18716
+ * Response for status 401
18717
+ */
18718
+ 401: {
18719
+ type: string;
18720
+ title: string;
18721
+ status: number;
18722
+ detail?: string;
18723
+ instance?: string;
18724
+ code?: string;
18725
+ errors?: Array<{
18726
+ path: string;
18727
+ message: string;
18728
+ summary?: string;
18729
+ }>;
18730
+ meta?: {
18731
+ [key: string]: unknown;
18732
+ };
18733
+ };
18734
+ /**
18735
+ * Response for status 403
18736
+ */
18737
+ 403: {
18738
+ type: string;
18739
+ title: string;
18740
+ status: number;
18741
+ detail?: string;
18742
+ instance?: string;
18743
+ code?: string;
18744
+ errors?: Array<{
18745
+ path: string;
18746
+ message: string;
18747
+ summary?: string;
18748
+ }>;
18749
+ meta?: {
18750
+ [key: string]: unknown;
18751
+ };
18752
+ };
18753
+ /**
18754
+ * Response for status 404
18755
+ */
18756
+ 404: {
18757
+ type: string;
18758
+ title: string;
18759
+ status: number;
18760
+ detail?: string;
18761
+ instance?: string;
18762
+ code?: string;
18763
+ errors?: Array<{
18764
+ path: string;
18765
+ message: string;
18766
+ summary?: string;
18767
+ }>;
18768
+ meta?: {
18769
+ [key: string]: unknown;
18770
+ };
18771
+ };
18772
+ /**
18773
+ * Response for status 422
18774
+ */
18775
+ 422: {
18776
+ type: string;
18777
+ title: string;
18778
+ status: number;
18779
+ detail?: string;
18780
+ instance?: string;
18781
+ code?: string;
18782
+ errors?: Array<{
18783
+ path: string;
18784
+ message: string;
18785
+ summary?: string;
18786
+ }>;
18787
+ meta?: {
18788
+ [key: string]: unknown;
18789
+ };
18790
+ };
18791
+ /**
18792
+ * Response for status 500
18793
+ */
18794
+ 500: {
18795
+ type: string;
18796
+ title: string;
18797
+ status: number;
18798
+ detail?: string;
18799
+ instance?: string;
18800
+ code?: string;
18801
+ errors?: Array<{
18802
+ path: string;
18803
+ message: string;
18804
+ summary?: string;
18805
+ }>;
18806
+ meta?: {
18807
+ [key: string]: unknown;
18808
+ };
18809
+ };
18810
+ /**
18811
+ * Response for status 502
18812
+ */
18813
+ 502: {
18814
+ type: string;
18815
+ title: string;
18816
+ status: number;
18817
+ detail?: string;
18818
+ instance?: string;
18819
+ code?: string;
18820
+ errors?: Array<{
18821
+ path: string;
18822
+ message: string;
18823
+ summary?: string;
18824
+ }>;
18825
+ meta?: {
18826
+ [key: string]: unknown;
18827
+ };
18828
+ };
18829
+ };
18830
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncError = DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors[keyof DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncErrors];
18831
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses = {
18832
+ /**
18833
+ * Response for status 200
18834
+ */
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;
18859
+ installationId: string;
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;
18559
19216
  };
18560
- };
18561
- /**
18562
- * Response for status 500
18563
- */
18564
- 500: {
18565
- type: string;
18566
- title: string;
18567
- status: number;
18568
- detail?: string;
18569
- instance?: string;
18570
- code?: string;
18571
- errors?: Array<{
18572
- path: string;
18573
- message: string;
18574
- summary?: string;
18575
- }>;
18576
- meta?: {
18577
- [key: string]: unknown;
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>;
18578
19228
  };
18579
19229
  };
18580
19230
  };
18581
- export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdError = DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors[keyof DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors];
18582
- export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdResponses = {
18583
- /**
18584
- * Response for status 200
18585
- */
18586
- 200: unknown;
18587
- };
19231
+ export type PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponse = PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses[keyof PutApiProjectsByProjectIdIntegrationsByIntegrationIdAutoSyncResponses];
18588
19232
  export type GetApiIntegrationsGithubInstallData = {
18589
19233
  body?: never;
18590
19234
  path?: never;
@@ -20169,6 +20813,12 @@ export type GetApiMeSecretsResponses = {
20169
20813
  status: 'active' | 'expiring_soon' | 'expired';
20170
20814
  createdAt: string;
20171
20815
  updatedAt: string;
20816
+ usedBy: Array<{
20817
+ projectId: string;
20818
+ projectName: string;
20819
+ integrationId: string;
20820
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
20821
+ }>;
20172
20822
  } | {
20173
20823
  id: string;
20174
20824
  kind: string;
@@ -20182,6 +20832,12 @@ export type GetApiMeSecretsResponses = {
20182
20832
  status: 'active' | 'expiring_soon' | 'expired';
20183
20833
  createdAt: string;
20184
20834
  updatedAt: string;
20835
+ usedBy: Array<{
20836
+ projectId: string;
20837
+ projectName: string;
20838
+ integrationId: string;
20839
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
20840
+ }>;
20185
20841
  } | {
20186
20842
  id: string;
20187
20843
  kind: string;
@@ -20195,6 +20851,12 @@ export type GetApiMeSecretsResponses = {
20195
20851
  status: 'active' | 'expiring_soon' | 'expired';
20196
20852
  createdAt: string;
20197
20853
  updatedAt: string;
20854
+ usedBy: Array<{
20855
+ projectId: string;
20856
+ projectName: string;
20857
+ integrationId: string;
20858
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
20859
+ }>;
20198
20860
  }>;
20199
20861
  };
20200
20862
  export type GetApiMeSecretsResponse = GetApiMeSecretsResponses[keyof GetApiMeSecretsResponses];
@@ -20337,6 +20999,12 @@ export type PostApiMeSecretsResponses = {
20337
20999
  status: 'active' | 'expiring_soon' | 'expired';
20338
21000
  createdAt: string;
20339
21001
  updatedAt: string;
21002
+ usedBy: Array<{
21003
+ projectId: string;
21004
+ projectName: string;
21005
+ integrationId: string;
21006
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21007
+ }>;
20340
21008
  } | {
20341
21009
  id: string;
20342
21010
  kind: string;
@@ -20350,6 +21018,12 @@ export type PostApiMeSecretsResponses = {
20350
21018
  status: 'active' | 'expiring_soon' | 'expired';
20351
21019
  createdAt: string;
20352
21020
  updatedAt: string;
21021
+ usedBy: Array<{
21022
+ projectId: string;
21023
+ projectName: string;
21024
+ integrationId: string;
21025
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21026
+ }>;
20353
21027
  } | {
20354
21028
  id: string;
20355
21029
  kind: string;
@@ -20363,6 +21037,12 @@ export type PostApiMeSecretsResponses = {
20363
21037
  status: 'active' | 'expiring_soon' | 'expired';
20364
21038
  createdAt: string;
20365
21039
  updatedAt: string;
21040
+ usedBy: Array<{
21041
+ projectId: string;
21042
+ projectName: string;
21043
+ integrationId: string;
21044
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21045
+ }>;
20366
21046
  };
20367
21047
  };
20368
21048
  export type PostApiMeSecretsResponse = PostApiMeSecretsResponses[keyof PostApiMeSecretsResponses];
@@ -20625,6 +21305,12 @@ export type PatchApiMeSecretsBySecretIdResponses = {
20625
21305
  status: 'active' | 'expiring_soon' | 'expired';
20626
21306
  createdAt: string;
20627
21307
  updatedAt: string;
21308
+ usedBy: Array<{
21309
+ projectId: string;
21310
+ projectName: string;
21311
+ integrationId: string;
21312
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21313
+ }>;
20628
21314
  } | {
20629
21315
  id: string;
20630
21316
  kind: string;
@@ -20638,6 +21324,12 @@ export type PatchApiMeSecretsBySecretIdResponses = {
20638
21324
  status: 'active' | 'expiring_soon' | 'expired';
20639
21325
  createdAt: string;
20640
21326
  updatedAt: string;
21327
+ usedBy: Array<{
21328
+ projectId: string;
21329
+ projectName: string;
21330
+ integrationId: string;
21331
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21332
+ }>;
20641
21333
  } | {
20642
21334
  id: string;
20643
21335
  kind: string;
@@ -20651,6 +21343,183 @@ export type PatchApiMeSecretsBySecretIdResponses = {
20651
21343
  status: 'active' | 'expiring_soon' | 'expired';
20652
21344
  createdAt: string;
20653
21345
  updatedAt: string;
21346
+ usedBy: Array<{
21347
+ projectId: string;
21348
+ projectName: string;
21349
+ integrationId: string;
21350
+ platform: 'jira' | 'github' | 'bitbucket' | 'linear' | 'scarn' | 'custom';
21351
+ }>;
20654
21352
  };
20655
21353
  };
20656
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];