@scarn/sdk 0.8.14 → 0.8.15

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.
@@ -3778,10 +3778,17 @@ export type GetApiTasksByTaskIdResponses = {
3778
3778
  title: string;
3779
3779
  } | null;
3780
3780
  startedBy: {
3781
+ kind: 'user';
3781
3782
  userId: string;
3782
3783
  username: string | null;
3783
- image: string | null;
3784
- } | null;
3784
+ } | {
3785
+ kind: 'automation';
3786
+ automationId: string;
3787
+ key: string;
3788
+ title: string | null;
3789
+ } | {
3790
+ kind: 'system';
3791
+ };
3785
3792
  source: {
3786
3793
  kind: 'step_definition';
3787
3794
  stepDefinitionId: string;
@@ -4099,10 +4106,17 @@ export type GetApiProjectsByProjectIdTasksResponses = {
4099
4106
  title: string;
4100
4107
  } | null;
4101
4108
  startedBy: {
4109
+ kind: 'user';
4102
4110
  userId: string;
4103
4111
  username: string | null;
4104
- image: string | null;
4105
- } | null;
4112
+ } | {
4113
+ kind: 'automation';
4114
+ automationId: string;
4115
+ key: string;
4116
+ title: string | null;
4117
+ } | {
4118
+ kind: 'system';
4119
+ };
4106
4120
  source: {
4107
4121
  kind: 'step_definition';
4108
4122
  stepDefinitionId: string;
@@ -9944,6 +9958,18 @@ export type GetApiPipelineExecutionsResponses = {
9944
9958
  cause?: unknown;
9945
9959
  } | null;
9946
9960
  triggeredByUserId: string | null;
9961
+ startedBy: {
9962
+ kind: 'user';
9963
+ userId: string;
9964
+ username: string | null;
9965
+ } | {
9966
+ kind: 'automation';
9967
+ automationId: string;
9968
+ key: string;
9969
+ title: string | null;
9970
+ } | {
9971
+ kind: 'system';
9972
+ };
9947
9973
  cancelledByUserId: string | null;
9948
9974
  startedAt: string | null;
9949
9975
  completedAt: string | null;
@@ -10127,6 +10153,18 @@ export type PostApiPipelineExecutionsResponses = {
10127
10153
  cause?: unknown;
10128
10154
  } | null;
10129
10155
  triggeredByUserId: string | null;
10156
+ startedBy: {
10157
+ kind: 'user';
10158
+ userId: string;
10159
+ username: string | null;
10160
+ } | {
10161
+ kind: 'automation';
10162
+ automationId: string;
10163
+ key: string;
10164
+ title: string | null;
10165
+ } | {
10166
+ kind: 'system';
10167
+ };
10130
10168
  cancelledByUserId: string | null;
10131
10169
  startedAt: string | null;
10132
10170
  completedAt: string | null;
@@ -10369,6 +10407,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunRe
10369
10407
  cause?: unknown;
10370
10408
  } | null;
10371
10409
  triggeredByUserId: string | null;
10410
+ startedBy: {
10411
+ kind: 'user';
10412
+ userId: string;
10413
+ username: string | null;
10414
+ } | {
10415
+ kind: 'automation';
10416
+ automationId: string;
10417
+ key: string;
10418
+ title: string | null;
10419
+ } | {
10420
+ kind: 'system';
10421
+ };
10372
10422
  cancelledByUserId: string | null;
10373
10423
  startedAt: string | null;
10374
10424
  completedAt: string | null;
@@ -10765,6 +10815,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdC
10765
10815
  cause?: unknown;
10766
10816
  } | null;
10767
10817
  triggeredByUserId: string | null;
10818
+ startedBy: {
10819
+ kind: 'user';
10820
+ userId: string;
10821
+ username: string | null;
10822
+ } | {
10823
+ kind: 'automation';
10824
+ automationId: string;
10825
+ key: string;
10826
+ title: string | null;
10827
+ } | {
10828
+ kind: 'system';
10829
+ };
10768
10830
  cancelledByUserId: string | null;
10769
10831
  startedAt: string | null;
10770
10832
  completedAt: string | null;
@@ -11006,6 +11068,18 @@ export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses = {
11006
11068
  cause?: unknown;
11007
11069
  } | null;
11008
11070
  triggeredByUserId: string | null;
11071
+ startedBy: {
11072
+ kind: 'user';
11073
+ userId: string;
11074
+ username: string | null;
11075
+ } | {
11076
+ kind: 'automation';
11077
+ automationId: string;
11078
+ key: string;
11079
+ title: string | null;
11080
+ } | {
11081
+ kind: 'system';
11082
+ };
11009
11083
  cancelledByUserId: string | null;
11010
11084
  startedAt: string | null;
11011
11085
  completedAt: string | null;
@@ -11101,17 +11175,24 @@ export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses = {
11101
11175
  };
11102
11176
  };
11103
11177
  export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponse = PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses[keyof PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses];
11104
- export type PostApiProjectsByProjectIdWorkSignalTokenData = {
11105
- body: {
11106
- workerId?: string;
11107
- };
11178
+ export type GetApiProjectsByProjectIdRunsData = {
11179
+ body?: never;
11108
11180
  path: {
11109
11181
  projectId: string;
11110
11182
  };
11111
- query?: never;
11112
- url: '/api/projects/{projectId}/work-signal-token';
11183
+ query?: {
11184
+ status?: 'needs-you' | 'open' | 'finished' | 'all' | 'needs-you' | 'waiting' | 'running' | 'queued' | 'done' | 'ended' | 'failed' | 'cancelled';
11185
+ whatRan?: string | 'task';
11186
+ startedBy?: string | 'me';
11187
+ workItemId?: string;
11188
+ atNode?: string;
11189
+ q?: string;
11190
+ before?: string;
11191
+ limit?: number;
11192
+ };
11193
+ url: '/api/projects/{projectId}/runs';
11113
11194
  };
11114
- export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11195
+ export type GetApiProjectsByProjectIdRunsErrors = {
11115
11196
  /**
11116
11197
  * Response for status 401
11117
11198
  */
@@ -11208,27 +11289,110 @@ export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11208
11289
  };
11209
11290
  };
11210
11291
  };
11211
- export type PostApiProjectsByProjectIdWorkSignalTokenError = PostApiProjectsByProjectIdWorkSignalTokenErrors[keyof PostApiProjectsByProjectIdWorkSignalTokenErrors];
11212
- export type PostApiProjectsByProjectIdWorkSignalTokenResponses = {
11292
+ export type GetApiProjectsByProjectIdRunsError = GetApiProjectsByProjectIdRunsErrors[keyof GetApiProjectsByProjectIdRunsErrors];
11293
+ export type GetApiProjectsByProjectIdRunsResponses = {
11213
11294
  /**
11214
11295
  * Response for status 200
11215
11296
  */
11216
11297
  200: {
11217
- url: string;
11218
- token: string;
11219
- expiresAt: string;
11298
+ runs: Array<{
11299
+ type: 'pipeline' | 'step' | 'task';
11300
+ id: string;
11301
+ href: string;
11302
+ title: string;
11303
+ whatRan: {
11304
+ kind: 'pipeline';
11305
+ id: string;
11306
+ name: string;
11307
+ } | {
11308
+ kind: 'step';
11309
+ id: string;
11310
+ name: string;
11311
+ } | {
11312
+ kind: 'task';
11313
+ name: string;
11314
+ };
11315
+ workItem: {
11316
+ id: string;
11317
+ platformKey: string;
11318
+ title: string;
11319
+ parent: {
11320
+ id: string;
11321
+ platformKey: string;
11322
+ title: string;
11323
+ } | null;
11324
+ } | null;
11325
+ status: 'needs-you' | 'waiting' | 'running' | 'queued' | 'done' | 'ended' | 'failed' | 'cancelled';
11326
+ statusLine: string;
11327
+ outcome: string | null;
11328
+ openNodeIds: Array<string>;
11329
+ waitingOnYou: boolean;
11330
+ waitingOn: Array<{
11331
+ userId: string;
11332
+ username: string | null;
11333
+ }>;
11334
+ startedBy: {
11335
+ kind: 'user';
11336
+ userId: string;
11337
+ username: string | null;
11338
+ } | {
11339
+ kind: 'automation';
11340
+ automationId: string;
11341
+ key: string;
11342
+ title: string | null;
11343
+ } | {
11344
+ kind: 'system';
11345
+ };
11346
+ createdAt: string;
11347
+ updatedAt: string;
11348
+ }>;
11349
+ nextCursor: string | null;
11350
+ counts: {
11351
+ tabs: {
11352
+ [key: string]: number;
11353
+ };
11354
+ overall: {
11355
+ inProgress: number;
11356
+ needsYou: boolean;
11357
+ };
11358
+ startedBy: Array<{
11359
+ inProgress: number;
11360
+ needsYou: boolean;
11361
+ filter: string | 'me';
11362
+ label: string;
11363
+ }>;
11364
+ whatRan: Array<{
11365
+ inProgress: number;
11366
+ needsYou: boolean;
11367
+ filter: string | 'task';
11368
+ whatRan: {
11369
+ kind: 'pipeline';
11370
+ id: string;
11371
+ name: string;
11372
+ } | {
11373
+ kind: 'step';
11374
+ id: string;
11375
+ name: string;
11376
+ } | {
11377
+ kind: 'task';
11378
+ name: string;
11379
+ };
11380
+ }>;
11381
+ };
11220
11382
  };
11221
11383
  };
11222
- export type PostApiProjectsByProjectIdWorkSignalTokenResponse = PostApiProjectsByProjectIdWorkSignalTokenResponses[keyof PostApiProjectsByProjectIdWorkSignalTokenResponses];
11223
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenData = {
11384
+ export type GetApiProjectsByProjectIdRunsResponse = GetApiProjectsByProjectIdRunsResponses[keyof GetApiProjectsByProjectIdRunsResponses];
11385
+ export type GetApiProjectsByProjectIdRunsByTypeByIdData = {
11224
11386
  body?: never;
11225
11387
  path: {
11226
- taskRunId: string;
11388
+ projectId: string;
11389
+ type: 'pipeline' | 'task';
11390
+ id: string;
11227
11391
  };
11228
11392
  query?: never;
11229
- url: '/api/task-runs/{taskRunId}/log-feed-token';
11393
+ url: '/api/projects/{projectId}/runs/{type}/{id}';
11230
11394
  };
11231
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11395
+ export type GetApiProjectsByProjectIdRunsByTypeByIdErrors = {
11232
11396
  /**
11233
11397
  * Response for status 401
11234
11398
  */
@@ -11325,29 +11489,73 @@ export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11325
11489
  };
11326
11490
  };
11327
11491
  };
11328
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenError = GetApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11329
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11492
+ export type GetApiProjectsByProjectIdRunsByTypeByIdError = GetApiProjectsByProjectIdRunsByTypeByIdErrors[keyof GetApiProjectsByProjectIdRunsByTypeByIdErrors];
11493
+ export type GetApiProjectsByProjectIdRunsByTypeByIdResponses = {
11330
11494
  /**
11331
11495
  * Response for status 200
11332
11496
  */
11333
11497
  200: {
11334
- url: string;
11335
- token: string;
11336
- expiresAt: string;
11498
+ type: 'pipeline' | 'step' | 'task';
11499
+ id: string;
11500
+ href: string;
11501
+ title: string;
11502
+ whatRan: {
11503
+ kind: 'pipeline';
11504
+ id: string;
11505
+ name: string;
11506
+ } | {
11507
+ kind: 'step';
11508
+ id: string;
11509
+ name: string;
11510
+ } | {
11511
+ kind: 'task';
11512
+ name: string;
11513
+ };
11514
+ workItem: {
11515
+ id: string;
11516
+ platformKey: string;
11517
+ title: string;
11518
+ parent: {
11519
+ id: string;
11520
+ platformKey: string;
11521
+ title: string;
11522
+ } | null;
11523
+ } | null;
11524
+ status: 'needs-you' | 'waiting' | 'running' | 'queued' | 'done' | 'ended' | 'failed' | 'cancelled';
11525
+ statusLine: string;
11526
+ outcome: string | null;
11527
+ openNodeIds: Array<string>;
11528
+ waitingOnYou: boolean;
11529
+ waitingOn: Array<{
11530
+ userId: string;
11531
+ username: string | null;
11532
+ }>;
11533
+ startedBy: {
11534
+ kind: 'user';
11535
+ userId: string;
11536
+ username: string | null;
11537
+ } | {
11538
+ kind: 'automation';
11539
+ automationId: string;
11540
+ key: string;
11541
+ title: string | null;
11542
+ } | {
11543
+ kind: 'system';
11544
+ };
11545
+ createdAt: string;
11546
+ updatedAt: string;
11337
11547
  };
11338
11548
  };
11339
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponse = GetApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenResponses];
11340
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenData = {
11341
- body: {
11342
- claimToken: string;
11343
- };
11549
+ export type GetApiProjectsByProjectIdRunsByTypeByIdResponse = GetApiProjectsByProjectIdRunsByTypeByIdResponses[keyof GetApiProjectsByProjectIdRunsByTypeByIdResponses];
11550
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsData = {
11551
+ body?: never;
11344
11552
  path: {
11345
- taskRunId: string;
11553
+ projectId: string;
11346
11554
  };
11347
11555
  query?: never;
11348
- url: '/api/task-runs/{taskRunId}/log-feed-token';
11556
+ url: '/api/projects/{projectId}/pipeline-definitions/live-counts';
11349
11557
  };
11350
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11558
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors = {
11351
11559
  /**
11352
11560
  * Response for status 401
11353
11561
  */
@@ -11405,25 +11613,6 @@ export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11405
11613
  [key: string]: unknown;
11406
11614
  };
11407
11615
  };
11408
- /**
11409
- * Response for status 409
11410
- */
11411
- 409: {
11412
- type: string;
11413
- title: string;
11414
- status: number;
11415
- detail?: string;
11416
- instance?: string;
11417
- code?: string;
11418
- errors?: Array<{
11419
- path: string;
11420
- message: string;
11421
- summary?: string;
11422
- }>;
11423
- meta?: {
11424
- [key: string]: unknown;
11425
- };
11426
- };
11427
11616
  /**
11428
11617
  * Response for status 422
11429
11618
  */
@@ -11463,27 +11652,39 @@ export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11463
11652
  };
11464
11653
  };
11465
11654
  };
11466
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenError = PostApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11467
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11655
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsError = GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors[keyof GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors];
11656
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses = {
11468
11657
  /**
11469
11658
  * Response for status 200
11470
11659
  */
11471
11660
  200: {
11472
- url: string;
11473
- token: string;
11474
- expiresAt: string;
11661
+ pipelines: Array<{
11662
+ pipelineDefinitionId: string;
11663
+ inProgress: number;
11664
+ doneThisWeek: number;
11665
+ nodes: {
11666
+ [key: string]: {
11667
+ running: number;
11668
+ waiting: number;
11669
+ failed: number;
11670
+ lanes: number;
11671
+ };
11672
+ };
11673
+ }>;
11475
11674
  };
11476
11675
  };
11477
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponse = PostApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenResponses];
11478
- export type PutApiPipelineExecutionsBatchCancelData = {
11676
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponse = GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses[keyof GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses];
11677
+ export type PostApiProjectsByProjectIdWorkSignalTokenData = {
11479
11678
  body: {
11480
- input: Array<string>;
11679
+ workerId?: string;
11680
+ };
11681
+ path: {
11682
+ projectId: string;
11481
11683
  };
11482
- path?: never;
11483
11684
  query?: never;
11484
- url: '/api/pipeline-executions/batch/cancel';
11685
+ url: '/api/projects/{projectId}/work-signal-token';
11485
11686
  };
11486
- export type PutApiPipelineExecutionsBatchCancelErrors = {
11687
+ export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11487
11688
  /**
11488
11689
  * Response for status 401
11489
11690
  */
@@ -11580,30 +11781,27 @@ export type PutApiPipelineExecutionsBatchCancelErrors = {
11580
11781
  };
11581
11782
  };
11582
11783
  };
11583
- export type PutApiPipelineExecutionsBatchCancelError = PutApiPipelineExecutionsBatchCancelErrors[keyof PutApiPipelineExecutionsBatchCancelErrors];
11584
- export type PutApiPipelineExecutionsBatchCancelResponses = {
11784
+ export type PostApiProjectsByProjectIdWorkSignalTokenError = PostApiProjectsByProjectIdWorkSignalTokenErrors[keyof PostApiProjectsByProjectIdWorkSignalTokenErrors];
11785
+ export type PostApiProjectsByProjectIdWorkSignalTokenResponses = {
11585
11786
  /**
11586
11787
  * Response for status 200
11587
11788
  */
11588
11789
  200: {
11589
- cancelledIds: Array<string>;
11590
- skippedIds: Array<string>;
11790
+ url: string;
11791
+ token: string;
11792
+ expiresAt: string;
11591
11793
  };
11592
11794
  };
11593
- export type PutApiPipelineExecutionsBatchCancelResponse = PutApiPipelineExecutionsBatchCancelResponses[keyof PutApiPipelineExecutionsBatchCancelResponses];
11594
- export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesData = {
11595
- body: {
11596
- body: string;
11597
- quoteText?: string;
11598
- };
11795
+ export type PostApiProjectsByProjectIdWorkSignalTokenResponse = PostApiProjectsByProjectIdWorkSignalTokenResponses[keyof PostApiProjectsByProjectIdWorkSignalTokenResponses];
11796
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenData = {
11797
+ body?: never;
11599
11798
  path: {
11600
- pipelineExecutionId: string;
11601
- visitId: string;
11799
+ taskRunId: string;
11602
11800
  };
11603
11801
  query?: never;
11604
- url: '/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/messages';
11802
+ url: '/api/task-runs/{taskRunId}/log-feed-token';
11605
11803
  };
11606
- export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors = {
11804
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11607
11805
  /**
11608
11806
  * Response for status 401
11609
11807
  */
@@ -11662,9 +11860,9 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11662
11860
  };
11663
11861
  };
11664
11862
  /**
11665
- * Response for status 409
11863
+ * Response for status 422
11666
11864
  */
11667
- 409: {
11865
+ 422: {
11668
11866
  type: string;
11669
11867
  title: string;
11670
11868
  status: number;
@@ -11681,9 +11879,9 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11681
11879
  };
11682
11880
  };
11683
11881
  /**
11684
- * Response for status 422
11882
+ * Response for status 500
11685
11883
  */
11686
- 422: {
11884
+ 500: {
11687
11885
  type: string;
11688
11886
  title: string;
11689
11887
  status: number;
@@ -11699,10 +11897,385 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11699
11897
  [key: string]: unknown;
11700
11898
  };
11701
11899
  };
11900
+ };
11901
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenError = GetApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11902
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11702
11903
  /**
11703
- * Response for status 500
11904
+ * Response for status 200
11704
11905
  */
11705
- 500: {
11906
+ 200: {
11907
+ url: string;
11908
+ token: string;
11909
+ expiresAt: string;
11910
+ };
11911
+ };
11912
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponse = GetApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenResponses];
11913
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenData = {
11914
+ body: {
11915
+ claimToken: string;
11916
+ };
11917
+ path: {
11918
+ taskRunId: string;
11919
+ };
11920
+ query?: never;
11921
+ url: '/api/task-runs/{taskRunId}/log-feed-token';
11922
+ };
11923
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11924
+ /**
11925
+ * Response for status 401
11926
+ */
11927
+ 401: {
11928
+ type: string;
11929
+ title: string;
11930
+ status: number;
11931
+ detail?: string;
11932
+ instance?: string;
11933
+ code?: string;
11934
+ errors?: Array<{
11935
+ path: string;
11936
+ message: string;
11937
+ summary?: string;
11938
+ }>;
11939
+ meta?: {
11940
+ [key: string]: unknown;
11941
+ };
11942
+ };
11943
+ /**
11944
+ * Response for status 403
11945
+ */
11946
+ 403: {
11947
+ type: string;
11948
+ title: string;
11949
+ status: number;
11950
+ detail?: string;
11951
+ instance?: string;
11952
+ code?: string;
11953
+ errors?: Array<{
11954
+ path: string;
11955
+ message: string;
11956
+ summary?: string;
11957
+ }>;
11958
+ meta?: {
11959
+ [key: string]: unknown;
11960
+ };
11961
+ };
11962
+ /**
11963
+ * Response for status 404
11964
+ */
11965
+ 404: {
11966
+ type: string;
11967
+ title: string;
11968
+ status: number;
11969
+ detail?: string;
11970
+ instance?: string;
11971
+ code?: string;
11972
+ errors?: Array<{
11973
+ path: string;
11974
+ message: string;
11975
+ summary?: string;
11976
+ }>;
11977
+ meta?: {
11978
+ [key: string]: unknown;
11979
+ };
11980
+ };
11981
+ /**
11982
+ * Response for status 409
11983
+ */
11984
+ 409: {
11985
+ type: string;
11986
+ title: string;
11987
+ status: number;
11988
+ detail?: string;
11989
+ instance?: string;
11990
+ code?: string;
11991
+ errors?: Array<{
11992
+ path: string;
11993
+ message: string;
11994
+ summary?: string;
11995
+ }>;
11996
+ meta?: {
11997
+ [key: string]: unknown;
11998
+ };
11999
+ };
12000
+ /**
12001
+ * Response for status 422
12002
+ */
12003
+ 422: {
12004
+ type: string;
12005
+ title: string;
12006
+ status: number;
12007
+ detail?: string;
12008
+ instance?: string;
12009
+ code?: string;
12010
+ errors?: Array<{
12011
+ path: string;
12012
+ message: string;
12013
+ summary?: string;
12014
+ }>;
12015
+ meta?: {
12016
+ [key: string]: unknown;
12017
+ };
12018
+ };
12019
+ /**
12020
+ * Response for status 500
12021
+ */
12022
+ 500: {
12023
+ type: string;
12024
+ title: string;
12025
+ status: number;
12026
+ detail?: string;
12027
+ instance?: string;
12028
+ code?: string;
12029
+ errors?: Array<{
12030
+ path: string;
12031
+ message: string;
12032
+ summary?: string;
12033
+ }>;
12034
+ meta?: {
12035
+ [key: string]: unknown;
12036
+ };
12037
+ };
12038
+ };
12039
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenError = PostApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenErrors];
12040
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
12041
+ /**
12042
+ * Response for status 200
12043
+ */
12044
+ 200: {
12045
+ url: string;
12046
+ token: string;
12047
+ expiresAt: string;
12048
+ };
12049
+ };
12050
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponse = PostApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenResponses];
12051
+ export type PutApiPipelineExecutionsBatchCancelData = {
12052
+ body: {
12053
+ input: Array<string>;
12054
+ };
12055
+ path?: never;
12056
+ query?: never;
12057
+ url: '/api/pipeline-executions/batch/cancel';
12058
+ };
12059
+ export type PutApiPipelineExecutionsBatchCancelErrors = {
12060
+ /**
12061
+ * Response for status 401
12062
+ */
12063
+ 401: {
12064
+ type: string;
12065
+ title: string;
12066
+ status: number;
12067
+ detail?: string;
12068
+ instance?: string;
12069
+ code?: string;
12070
+ errors?: Array<{
12071
+ path: string;
12072
+ message: string;
12073
+ summary?: string;
12074
+ }>;
12075
+ meta?: {
12076
+ [key: string]: unknown;
12077
+ };
12078
+ };
12079
+ /**
12080
+ * Response for status 403
12081
+ */
12082
+ 403: {
12083
+ type: string;
12084
+ title: string;
12085
+ status: number;
12086
+ detail?: string;
12087
+ instance?: string;
12088
+ code?: string;
12089
+ errors?: Array<{
12090
+ path: string;
12091
+ message: string;
12092
+ summary?: string;
12093
+ }>;
12094
+ meta?: {
12095
+ [key: string]: unknown;
12096
+ };
12097
+ };
12098
+ /**
12099
+ * Response for status 404
12100
+ */
12101
+ 404: {
12102
+ type: string;
12103
+ title: string;
12104
+ status: number;
12105
+ detail?: string;
12106
+ instance?: string;
12107
+ code?: string;
12108
+ errors?: Array<{
12109
+ path: string;
12110
+ message: string;
12111
+ summary?: string;
12112
+ }>;
12113
+ meta?: {
12114
+ [key: string]: unknown;
12115
+ };
12116
+ };
12117
+ /**
12118
+ * Response for status 422
12119
+ */
12120
+ 422: {
12121
+ type: string;
12122
+ title: string;
12123
+ status: number;
12124
+ detail?: string;
12125
+ instance?: string;
12126
+ code?: string;
12127
+ errors?: Array<{
12128
+ path: string;
12129
+ message: string;
12130
+ summary?: string;
12131
+ }>;
12132
+ meta?: {
12133
+ [key: string]: unknown;
12134
+ };
12135
+ };
12136
+ /**
12137
+ * Response for status 500
12138
+ */
12139
+ 500: {
12140
+ type: string;
12141
+ title: string;
12142
+ status: number;
12143
+ detail?: string;
12144
+ instance?: string;
12145
+ code?: string;
12146
+ errors?: Array<{
12147
+ path: string;
12148
+ message: string;
12149
+ summary?: string;
12150
+ }>;
12151
+ meta?: {
12152
+ [key: string]: unknown;
12153
+ };
12154
+ };
12155
+ };
12156
+ export type PutApiPipelineExecutionsBatchCancelError = PutApiPipelineExecutionsBatchCancelErrors[keyof PutApiPipelineExecutionsBatchCancelErrors];
12157
+ export type PutApiPipelineExecutionsBatchCancelResponses = {
12158
+ /**
12159
+ * Response for status 200
12160
+ */
12161
+ 200: {
12162
+ cancelledIds: Array<string>;
12163
+ skippedIds: Array<string>;
12164
+ };
12165
+ };
12166
+ export type PutApiPipelineExecutionsBatchCancelResponse = PutApiPipelineExecutionsBatchCancelResponses[keyof PutApiPipelineExecutionsBatchCancelResponses];
12167
+ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesData = {
12168
+ body: {
12169
+ body: string;
12170
+ quoteText?: string;
12171
+ };
12172
+ path: {
12173
+ pipelineExecutionId: string;
12174
+ visitId: string;
12175
+ };
12176
+ query?: never;
12177
+ url: '/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/messages';
12178
+ };
12179
+ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors = {
12180
+ /**
12181
+ * Response for status 401
12182
+ */
12183
+ 401: {
12184
+ type: string;
12185
+ title: string;
12186
+ status: number;
12187
+ detail?: string;
12188
+ instance?: string;
12189
+ code?: string;
12190
+ errors?: Array<{
12191
+ path: string;
12192
+ message: string;
12193
+ summary?: string;
12194
+ }>;
12195
+ meta?: {
12196
+ [key: string]: unknown;
12197
+ };
12198
+ };
12199
+ /**
12200
+ * Response for status 403
12201
+ */
12202
+ 403: {
12203
+ type: string;
12204
+ title: string;
12205
+ status: number;
12206
+ detail?: string;
12207
+ instance?: string;
12208
+ code?: string;
12209
+ errors?: Array<{
12210
+ path: string;
12211
+ message: string;
12212
+ summary?: string;
12213
+ }>;
12214
+ meta?: {
12215
+ [key: string]: unknown;
12216
+ };
12217
+ };
12218
+ /**
12219
+ * Response for status 404
12220
+ */
12221
+ 404: {
12222
+ type: string;
12223
+ title: string;
12224
+ status: number;
12225
+ detail?: string;
12226
+ instance?: string;
12227
+ code?: string;
12228
+ errors?: Array<{
12229
+ path: string;
12230
+ message: string;
12231
+ summary?: string;
12232
+ }>;
12233
+ meta?: {
12234
+ [key: string]: unknown;
12235
+ };
12236
+ };
12237
+ /**
12238
+ * Response for status 409
12239
+ */
12240
+ 409: {
12241
+ type: string;
12242
+ title: string;
12243
+ status: number;
12244
+ detail?: string;
12245
+ instance?: string;
12246
+ code?: string;
12247
+ errors?: Array<{
12248
+ path: string;
12249
+ message: string;
12250
+ summary?: string;
12251
+ }>;
12252
+ meta?: {
12253
+ [key: string]: unknown;
12254
+ };
12255
+ };
12256
+ /**
12257
+ * Response for status 422
12258
+ */
12259
+ 422: {
12260
+ type: string;
12261
+ title: string;
12262
+ status: number;
12263
+ detail?: string;
12264
+ instance?: string;
12265
+ code?: string;
12266
+ errors?: Array<{
12267
+ path: string;
12268
+ message: string;
12269
+ summary?: string;
12270
+ }>;
12271
+ meta?: {
12272
+ [key: string]: unknown;
12273
+ };
12274
+ };
12275
+ /**
12276
+ * Response for status 500
12277
+ */
12278
+ 500: {
11706
12279
  type: string;
11707
12280
  title: string;
11708
12281
  status: number;
@@ -11750,6 +12323,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11750
12323
  cause?: unknown;
11751
12324
  } | null;
11752
12325
  triggeredByUserId: string | null;
12326
+ startedBy: {
12327
+ kind: 'user';
12328
+ userId: string;
12329
+ username: string | null;
12330
+ } | {
12331
+ kind: 'automation';
12332
+ automationId: string;
12333
+ key: string;
12334
+ title: string | null;
12335
+ } | {
12336
+ kind: 'system';
12337
+ };
11753
12338
  cancelledByUserId: string | null;
11754
12339
  startedAt: string | null;
11755
12340
  completedAt: string | null;
@@ -11996,6 +12581,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdDecisio
11996
12581
  cause?: unknown;
11997
12582
  } | null;
11998
12583
  triggeredByUserId: string | null;
12584
+ startedBy: {
12585
+ kind: 'user';
12586
+ userId: string;
12587
+ username: string | null;
12588
+ } | {
12589
+ kind: 'automation';
12590
+ automationId: string;
12591
+ key: string;
12592
+ title: string | null;
12593
+ } | {
12594
+ kind: 'system';
12595
+ };
11999
12596
  cancelledByUserId: string | null;
12000
12597
  startedAt: string | null;
12001
12598
  completedAt: string | null;
@@ -12218,6 +12815,18 @@ export type GetApiPipelineExecutionsByPipelineExecutionIdResponses = {
12218
12815
  cause?: unknown;
12219
12816
  } | null;
12220
12817
  triggeredByUserId: string | null;
12818
+ startedBy: {
12819
+ kind: 'user';
12820
+ userId: string;
12821
+ username: string | null;
12822
+ } | {
12823
+ kind: 'automation';
12824
+ automationId: string;
12825
+ key: string;
12826
+ title: string | null;
12827
+ } | {
12828
+ kind: 'system';
12829
+ };
12221
12830
  cancelledByUserId: string | null;
12222
12831
  startedAt: string | null;
12223
12832
  completedAt: string | null;
@@ -12445,103 +13054,6 @@ export type GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadRe
12445
13054
  };
12446
13055
  };
12447
13056
  export type GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponse = GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponses[keyof GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponses];
12448
- export type GetApiPipelineExecutionsCountsByPipelineData = {
12449
- body?: never;
12450
- path?: never;
12451
- query: {
12452
- projectId: string;
12453
- };
12454
- url: '/api/pipeline-executions/counts/by-pipeline';
12455
- };
12456
- export type GetApiPipelineExecutionsCountsByPipelineErrors = {
12457
- /**
12458
- * Response for status 401
12459
- */
12460
- 401: {
12461
- type: string;
12462
- title: string;
12463
- status: number;
12464
- detail?: string;
12465
- instance?: string;
12466
- code?: string;
12467
- errors?: Array<{
12468
- path: string;
12469
- message: string;
12470
- summary?: string;
12471
- }>;
12472
- meta?: {
12473
- [key: string]: unknown;
12474
- };
12475
- };
12476
- /**
12477
- * Response for status 403
12478
- */
12479
- 403: {
12480
- type: string;
12481
- title: string;
12482
- status: number;
12483
- detail?: string;
12484
- instance?: string;
12485
- code?: string;
12486
- errors?: Array<{
12487
- path: string;
12488
- message: string;
12489
- summary?: string;
12490
- }>;
12491
- meta?: {
12492
- [key: string]: unknown;
12493
- };
12494
- };
12495
- /**
12496
- * Response for status 422
12497
- */
12498
- 422: {
12499
- type: string;
12500
- title: string;
12501
- status: number;
12502
- detail?: string;
12503
- instance?: string;
12504
- code?: string;
12505
- errors?: Array<{
12506
- path: string;
12507
- message: string;
12508
- summary?: string;
12509
- }>;
12510
- meta?: {
12511
- [key: string]: unknown;
12512
- };
12513
- };
12514
- /**
12515
- * Response for status 500
12516
- */
12517
- 500: {
12518
- type: string;
12519
- title: string;
12520
- status: number;
12521
- detail?: string;
12522
- instance?: string;
12523
- code?: string;
12524
- errors?: Array<{
12525
- path: string;
12526
- message: string;
12527
- summary?: string;
12528
- }>;
12529
- meta?: {
12530
- [key: string]: unknown;
12531
- };
12532
- };
12533
- };
12534
- export type GetApiPipelineExecutionsCountsByPipelineError = GetApiPipelineExecutionsCountsByPipelineErrors[keyof GetApiPipelineExecutionsCountsByPipelineErrors];
12535
- export type GetApiPipelineExecutionsCountsByPipelineResponses = {
12536
- /**
12537
- * Response for status 200
12538
- */
12539
- 200: Array<{
12540
- pipelineDefinitionId: string;
12541
- count: number;
12542
- }>;
12543
- };
12544
- export type GetApiPipelineExecutionsCountsByPipelineResponse = GetApiPipelineExecutionsCountsByPipelineResponses[keyof GetApiPipelineExecutionsCountsByPipelineResponses];
12545
13057
  export type GetApiWorkItemsByWorkItemIdQuestionsData = {
12546
13058
  body?: never;
12547
13059
  path: {