@scarn/sdk 0.8.12 → 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;
@@ -4274,6 +4288,11 @@ export type PostApiTaskRunsClaimsResponses = {
4274
4288
  updatedAt: string;
4275
4289
  };
4276
4290
  claimToken: string;
4291
+ logFeed: {
4292
+ url: string;
4293
+ token: string;
4294
+ expiresAt: string;
4295
+ } | null;
4277
4296
  }>;
4278
4297
  };
4279
4298
  export type PostApiTaskRunsClaimsResponse = PostApiTaskRunsClaimsResponses[keyof PostApiTaskRunsClaimsResponses];
@@ -9939,6 +9958,18 @@ export type GetApiPipelineExecutionsResponses = {
9939
9958
  cause?: unknown;
9940
9959
  } | null;
9941
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
+ };
9942
9973
  cancelledByUserId: string | null;
9943
9974
  startedAt: string | null;
9944
9975
  completedAt: string | null;
@@ -10122,6 +10153,18 @@ export type PostApiPipelineExecutionsResponses = {
10122
10153
  cause?: unknown;
10123
10154
  } | null;
10124
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
+ };
10125
10168
  cancelledByUserId: string | null;
10126
10169
  startedAt: string | null;
10127
10170
  completedAt: string | null;
@@ -10364,6 +10407,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunRe
10364
10407
  cause?: unknown;
10365
10408
  } | null;
10366
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
+ };
10367
10422
  cancelledByUserId: string | null;
10368
10423
  startedAt: string | null;
10369
10424
  completedAt: string | null;
@@ -10760,6 +10815,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdC
10760
10815
  cause?: unknown;
10761
10816
  } | null;
10762
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
+ };
10763
10830
  cancelledByUserId: string | null;
10764
10831
  startedAt: string | null;
10765
10832
  completedAt: string | null;
@@ -11001,6 +11068,18 @@ export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses = {
11001
11068
  cause?: unknown;
11002
11069
  } | null;
11003
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
+ };
11004
11083
  cancelledByUserId: string | null;
11005
11084
  startedAt: string | null;
11006
11085
  completedAt: string | null;
@@ -11096,17 +11175,24 @@ export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses = {
11096
11175
  };
11097
11176
  };
11098
11177
  export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponse = PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses[keyof PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses];
11099
- export type PostApiProjectsByProjectIdWorkSignalTokenData = {
11100
- body: {
11101
- workerId?: string;
11102
- };
11178
+ export type GetApiProjectsByProjectIdRunsData = {
11179
+ body?: never;
11103
11180
  path: {
11104
11181
  projectId: string;
11105
11182
  };
11106
- query?: never;
11107
- 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';
11108
11194
  };
11109
- export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11195
+ export type GetApiProjectsByProjectIdRunsErrors = {
11110
11196
  /**
11111
11197
  * Response for status 401
11112
11198
  */
@@ -11203,27 +11289,110 @@ export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11203
11289
  };
11204
11290
  };
11205
11291
  };
11206
- export type PostApiProjectsByProjectIdWorkSignalTokenError = PostApiProjectsByProjectIdWorkSignalTokenErrors[keyof PostApiProjectsByProjectIdWorkSignalTokenErrors];
11207
- export type PostApiProjectsByProjectIdWorkSignalTokenResponses = {
11292
+ export type GetApiProjectsByProjectIdRunsError = GetApiProjectsByProjectIdRunsErrors[keyof GetApiProjectsByProjectIdRunsErrors];
11293
+ export type GetApiProjectsByProjectIdRunsResponses = {
11208
11294
  /**
11209
11295
  * Response for status 200
11210
11296
  */
11211
11297
  200: {
11212
- url: string;
11213
- token: string;
11214
- 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
+ };
11215
11382
  };
11216
11383
  };
11217
- export type PostApiProjectsByProjectIdWorkSignalTokenResponse = PostApiProjectsByProjectIdWorkSignalTokenResponses[keyof PostApiProjectsByProjectIdWorkSignalTokenResponses];
11218
- export type PutApiPipelineExecutionsBatchCancelData = {
11219
- body: {
11220
- input: Array<string>;
11384
+ export type GetApiProjectsByProjectIdRunsResponse = GetApiProjectsByProjectIdRunsResponses[keyof GetApiProjectsByProjectIdRunsResponses];
11385
+ export type GetApiProjectsByProjectIdRunsByTypeByIdData = {
11386
+ body?: never;
11387
+ path: {
11388
+ projectId: string;
11389
+ type: 'pipeline' | 'task';
11390
+ id: string;
11221
11391
  };
11222
- path?: never;
11223
11392
  query?: never;
11224
- url: '/api/pipeline-executions/batch/cancel';
11393
+ url: '/api/projects/{projectId}/runs/{type}/{id}';
11225
11394
  };
11226
- export type PutApiPipelineExecutionsBatchCancelErrors = {
11395
+ export type GetApiProjectsByProjectIdRunsByTypeByIdErrors = {
11227
11396
  /**
11228
11397
  * Response for status 401
11229
11398
  */
@@ -11320,30 +11489,73 @@ export type PutApiPipelineExecutionsBatchCancelErrors = {
11320
11489
  };
11321
11490
  };
11322
11491
  };
11323
- export type PutApiPipelineExecutionsBatchCancelError = PutApiPipelineExecutionsBatchCancelErrors[keyof PutApiPipelineExecutionsBatchCancelErrors];
11324
- export type PutApiPipelineExecutionsBatchCancelResponses = {
11492
+ export type GetApiProjectsByProjectIdRunsByTypeByIdError = GetApiProjectsByProjectIdRunsByTypeByIdErrors[keyof GetApiProjectsByProjectIdRunsByTypeByIdErrors];
11493
+ export type GetApiProjectsByProjectIdRunsByTypeByIdResponses = {
11325
11494
  /**
11326
11495
  * Response for status 200
11327
11496
  */
11328
11497
  200: {
11329
- cancelledIds: Array<string>;
11330
- skippedIds: Array<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;
11331
11547
  };
11332
11548
  };
11333
- export type PutApiPipelineExecutionsBatchCancelResponse = PutApiPipelineExecutionsBatchCancelResponses[keyof PutApiPipelineExecutionsBatchCancelResponses];
11334
- export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesData = {
11335
- body: {
11336
- body: string;
11337
- quoteText?: string;
11338
- };
11549
+ export type GetApiProjectsByProjectIdRunsByTypeByIdResponse = GetApiProjectsByProjectIdRunsByTypeByIdResponses[keyof GetApiProjectsByProjectIdRunsByTypeByIdResponses];
11550
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsData = {
11551
+ body?: never;
11339
11552
  path: {
11340
- pipelineExecutionId: string;
11341
- visitId: string;
11553
+ projectId: string;
11342
11554
  };
11343
11555
  query?: never;
11344
- url: '/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/messages';
11556
+ url: '/api/projects/{projectId}/pipeline-definitions/live-counts';
11345
11557
  };
11346
- export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors = {
11558
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors = {
11347
11559
  /**
11348
11560
  * Response for status 401
11349
11561
  */
@@ -11402,9 +11614,9 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11402
11614
  };
11403
11615
  };
11404
11616
  /**
11405
- * Response for status 409
11617
+ * Response for status 422
11406
11618
  */
11407
- 409: {
11619
+ 422: {
11408
11620
  type: string;
11409
11621
  title: string;
11410
11622
  status: number;
@@ -11421,9 +11633,9 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11421
11633
  };
11422
11634
  };
11423
11635
  /**
11424
- * Response for status 422
11636
+ * Response for status 500
11425
11637
  */
11426
- 422: {
11638
+ 500: {
11427
11639
  type: string;
11428
11640
  title: string;
11429
11641
  status: number;
@@ -11439,10 +11651,44 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11439
11651
  [key: string]: unknown;
11440
11652
  };
11441
11653
  };
11654
+ };
11655
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsError = GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors[keyof GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors];
11656
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses = {
11657
+ /**
11658
+ * Response for status 200
11659
+ */
11660
+ 200: {
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
+ }>;
11674
+ };
11675
+ };
11676
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponse = GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses[keyof GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses];
11677
+ export type PostApiProjectsByProjectIdWorkSignalTokenData = {
11678
+ body: {
11679
+ workerId?: string;
11680
+ };
11681
+ path: {
11682
+ projectId: string;
11683
+ };
11684
+ query?: never;
11685
+ url: '/api/projects/{projectId}/work-signal-token';
11686
+ };
11687
+ export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11442
11688
  /**
11443
- * Response for status 500
11689
+ * Response for status 401
11444
11690
  */
11445
- 500: {
11691
+ 401: {
11446
11692
  type: string;
11447
11693
  title: string;
11448
11694
  status: number;
@@ -11458,38 +11704,637 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11458
11704
  [key: string]: unknown;
11459
11705
  };
11460
11706
  };
11461
- };
11462
- export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesError = PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors[keyof PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors];
11463
- export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesResponses = {
11464
11707
  /**
11465
- * Response for status 200
11708
+ * Response for status 403
11466
11709
  */
11467
- 200: {
11468
- message: {
11469
- id: string;
11470
- taskId: string;
11471
- authorUserId: string;
11472
- body: string;
11473
- quoteText: string | null;
11474
- createdAt: string;
11710
+ 403: {
11711
+ type: string;
11712
+ title: string;
11713
+ status: number;
11714
+ detail?: string;
11715
+ instance?: string;
11716
+ code?: string;
11717
+ errors?: Array<{
11718
+ path: string;
11719
+ message: string;
11720
+ summary?: string;
11721
+ }>;
11722
+ meta?: {
11723
+ [key: string]: unknown;
11475
11724
  };
11476
- pipelineExecution: {
11477
- id: string;
11478
- projectId: string;
11479
- workItemId: string;
11480
- workItemTitle: string;
11481
- pipelineDefinitionId: string;
11482
- pipelineDefinitionVersionId: string;
11483
- runStatus: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
11484
- status: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
11485
- waitingFor: 'decision' | 'reply' | null;
11486
- endNodeId: string | null;
11725
+ };
11726
+ /**
11727
+ * Response for status 404
11728
+ */
11729
+ 404: {
11730
+ type: string;
11731
+ title: string;
11732
+ status: number;
11733
+ detail?: string;
11734
+ instance?: string;
11735
+ code?: string;
11736
+ errors?: Array<{
11737
+ path: string;
11738
+ message: string;
11739
+ summary?: string;
11740
+ }>;
11741
+ meta?: {
11742
+ [key: string]: unknown;
11743
+ };
11744
+ };
11745
+ /**
11746
+ * Response for status 422
11747
+ */
11748
+ 422: {
11749
+ type: string;
11750
+ title: string;
11751
+ status: number;
11752
+ detail?: string;
11753
+ instance?: string;
11754
+ code?: string;
11755
+ errors?: Array<{
11756
+ path: string;
11757
+ message: string;
11758
+ summary?: string;
11759
+ }>;
11760
+ meta?: {
11761
+ [key: string]: unknown;
11762
+ };
11763
+ };
11764
+ /**
11765
+ * Response for status 500
11766
+ */
11767
+ 500: {
11768
+ type: string;
11769
+ title: string;
11770
+ status: number;
11771
+ detail?: string;
11772
+ instance?: string;
11773
+ code?: string;
11774
+ errors?: Array<{
11775
+ path: string;
11776
+ message: string;
11777
+ summary?: string;
11778
+ }>;
11779
+ meta?: {
11780
+ [key: string]: unknown;
11781
+ };
11782
+ };
11783
+ };
11784
+ export type PostApiProjectsByProjectIdWorkSignalTokenError = PostApiProjectsByProjectIdWorkSignalTokenErrors[keyof PostApiProjectsByProjectIdWorkSignalTokenErrors];
11785
+ export type PostApiProjectsByProjectIdWorkSignalTokenResponses = {
11786
+ /**
11787
+ * Response for status 200
11788
+ */
11789
+ 200: {
11790
+ url: string;
11791
+ token: string;
11792
+ expiresAt: string;
11793
+ };
11794
+ };
11795
+ export type PostApiProjectsByProjectIdWorkSignalTokenResponse = PostApiProjectsByProjectIdWorkSignalTokenResponses[keyof PostApiProjectsByProjectIdWorkSignalTokenResponses];
11796
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenData = {
11797
+ body?: never;
11798
+ path: {
11799
+ taskRunId: string;
11800
+ };
11801
+ query?: never;
11802
+ url: '/api/task-runs/{taskRunId}/log-feed-token';
11803
+ };
11804
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11805
+ /**
11806
+ * Response for status 401
11807
+ */
11808
+ 401: {
11809
+ type: string;
11810
+ title: string;
11811
+ status: number;
11812
+ detail?: string;
11813
+ instance?: string;
11814
+ code?: string;
11815
+ errors?: Array<{
11816
+ path: string;
11817
+ message: string;
11818
+ summary?: string;
11819
+ }>;
11820
+ meta?: {
11821
+ [key: string]: unknown;
11822
+ };
11823
+ };
11824
+ /**
11825
+ * Response for status 403
11826
+ */
11827
+ 403: {
11828
+ type: string;
11829
+ title: string;
11830
+ status: number;
11831
+ detail?: string;
11832
+ instance?: string;
11833
+ code?: string;
11834
+ errors?: Array<{
11835
+ path: string;
11836
+ message: string;
11837
+ summary?: string;
11838
+ }>;
11839
+ meta?: {
11840
+ [key: string]: unknown;
11841
+ };
11842
+ };
11843
+ /**
11844
+ * Response for status 404
11845
+ */
11846
+ 404: {
11847
+ type: string;
11848
+ title: string;
11849
+ status: number;
11850
+ detail?: string;
11851
+ instance?: string;
11852
+ code?: string;
11853
+ errors?: Array<{
11854
+ path: string;
11855
+ message: string;
11856
+ summary?: string;
11857
+ }>;
11858
+ meta?: {
11859
+ [key: string]: unknown;
11860
+ };
11861
+ };
11862
+ /**
11863
+ * Response for status 422
11864
+ */
11865
+ 422: {
11866
+ type: string;
11867
+ title: string;
11868
+ status: number;
11869
+ detail?: string;
11870
+ instance?: string;
11871
+ code?: string;
11872
+ errors?: Array<{
11873
+ path: string;
11874
+ message: string;
11875
+ summary?: string;
11876
+ }>;
11877
+ meta?: {
11878
+ [key: string]: unknown;
11879
+ };
11880
+ };
11881
+ /**
11882
+ * Response for status 500
11883
+ */
11884
+ 500: {
11885
+ type: string;
11886
+ title: string;
11887
+ status: number;
11888
+ detail?: string;
11889
+ instance?: string;
11890
+ code?: string;
11891
+ errors?: Array<{
11892
+ path: string;
11893
+ message: string;
11894
+ summary?: string;
11895
+ }>;
11896
+ meta?: {
11897
+ [key: string]: unknown;
11898
+ };
11899
+ };
11900
+ };
11901
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenError = GetApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11902
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11903
+ /**
11904
+ * Response for status 200
11905
+ */
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: {
12279
+ type: string;
12280
+ title: string;
12281
+ status: number;
12282
+ detail?: string;
12283
+ instance?: string;
12284
+ code?: string;
12285
+ errors?: Array<{
12286
+ path: string;
12287
+ message: string;
12288
+ summary?: string;
12289
+ }>;
12290
+ meta?: {
12291
+ [key: string]: unknown;
12292
+ };
12293
+ };
12294
+ };
12295
+ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesError = PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors[keyof PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesErrors];
12296
+ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessagesResponses = {
12297
+ /**
12298
+ * Response for status 200
12299
+ */
12300
+ 200: {
12301
+ message: {
12302
+ id: string;
12303
+ taskId: string;
12304
+ authorUserId: string;
12305
+ body: string;
12306
+ quoteText: string | null;
12307
+ createdAt: string;
12308
+ };
12309
+ pipelineExecution: {
12310
+ id: string;
12311
+ projectId: string;
12312
+ workItemId: string;
12313
+ workItemTitle: string;
12314
+ pipelineDefinitionId: string;
12315
+ pipelineDefinitionVersionId: string;
12316
+ runStatus: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
12317
+ status: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
12318
+ waitingFor: 'decision' | 'reply' | null;
12319
+ endNodeId: string | null;
11487
12320
  error: {
11488
12321
  name: string;
11489
12322
  message: string;
11490
12323
  cause?: unknown;
11491
12324
  } | null;
11492
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
+ };
11493
12338
  cancelledByUserId: string | null;
11494
12339
  startedAt: string | null;
11495
12340
  completedAt: string | null;
@@ -11736,6 +12581,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdDecisio
11736
12581
  cause?: unknown;
11737
12582
  } | null;
11738
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
+ };
11739
12596
  cancelledByUserId: string | null;
11740
12597
  startedAt: string | null;
11741
12598
  completedAt: string | null;
@@ -11958,6 +12815,18 @@ export type GetApiPipelineExecutionsByPipelineExecutionIdResponses = {
11958
12815
  cause?: unknown;
11959
12816
  } | null;
11960
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
+ };
11961
12830
  cancelledByUserId: string | null;
11962
12831
  startedAt: string | null;
11963
12832
  completedAt: string | null;
@@ -12185,103 +13054,6 @@ export type GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadRe
12185
13054
  };
12186
13055
  };
12187
13056
  export type GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponse = GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponses[keyof GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponses];
12188
- export type GetApiPipelineExecutionsCountsByPipelineData = {
12189
- body?: never;
12190
- path?: never;
12191
- query: {
12192
- projectId: string;
12193
- };
12194
- url: '/api/pipeline-executions/counts/by-pipeline';
12195
- };
12196
- export type GetApiPipelineExecutionsCountsByPipelineErrors = {
12197
- /**
12198
- * Response for status 401
12199
- */
12200
- 401: {
12201
- type: string;
12202
- title: string;
12203
- status: number;
12204
- detail?: string;
12205
- instance?: string;
12206
- code?: string;
12207
- errors?: Array<{
12208
- path: string;
12209
- message: string;
12210
- summary?: string;
12211
- }>;
12212
- meta?: {
12213
- [key: string]: unknown;
12214
- };
12215
- };
12216
- /**
12217
- * Response for status 403
12218
- */
12219
- 403: {
12220
- type: string;
12221
- title: string;
12222
- status: number;
12223
- detail?: string;
12224
- instance?: string;
12225
- code?: string;
12226
- errors?: Array<{
12227
- path: string;
12228
- message: string;
12229
- summary?: string;
12230
- }>;
12231
- meta?: {
12232
- [key: string]: unknown;
12233
- };
12234
- };
12235
- /**
12236
- * Response for status 422
12237
- */
12238
- 422: {
12239
- type: string;
12240
- title: string;
12241
- status: number;
12242
- detail?: string;
12243
- instance?: string;
12244
- code?: string;
12245
- errors?: Array<{
12246
- path: string;
12247
- message: string;
12248
- summary?: string;
12249
- }>;
12250
- meta?: {
12251
- [key: string]: unknown;
12252
- };
12253
- };
12254
- /**
12255
- * Response for status 500
12256
- */
12257
- 500: {
12258
- type: string;
12259
- title: string;
12260
- status: number;
12261
- detail?: string;
12262
- instance?: string;
12263
- code?: string;
12264
- errors?: Array<{
12265
- path: string;
12266
- message: string;
12267
- summary?: string;
12268
- }>;
12269
- meta?: {
12270
- [key: string]: unknown;
12271
- };
12272
- };
12273
- };
12274
- export type GetApiPipelineExecutionsCountsByPipelineError = GetApiPipelineExecutionsCountsByPipelineErrors[keyof GetApiPipelineExecutionsCountsByPipelineErrors];
12275
- export type GetApiPipelineExecutionsCountsByPipelineResponses = {
12276
- /**
12277
- * Response for status 200
12278
- */
12279
- 200: Array<{
12280
- pipelineDefinitionId: string;
12281
- count: number;
12282
- }>;
12283
- };
12284
- export type GetApiPipelineExecutionsCountsByPipelineResponse = GetApiPipelineExecutionsCountsByPipelineResponses[keyof GetApiPipelineExecutionsCountsByPipelineResponses];
12285
13057
  export type GetApiWorkItemsByWorkItemIdQuestionsData = {
12286
13058
  body?: never;
12287
13059
  path: {