@boboddy/sdk 0.1.11-alpha → 0.1.12-alpha

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.
@@ -1526,10 +1526,9 @@ export type PostApiStepExecutionsClaimsResponses = {
1526
1526
  executionDeadlineAt: string | unknown;
1527
1527
  startedAt: string | unknown;
1528
1528
  completedAt: string | unknown;
1529
- results: Array<{
1529
+ result: {
1530
1530
  id: string;
1531
1531
  stepExecutionId: string;
1532
- attempt: number;
1533
1532
  status: 'succeeded' | 'failed';
1534
1533
  resultJson: unknown;
1535
1534
  errorJson: unknown;
@@ -1545,7 +1544,7 @@ export type PostApiStepExecutionsClaimsResponses = {
1545
1544
  createdAt: string;
1546
1545
  }>;
1547
1546
  createdAt: string;
1548
- }>;
1547
+ } | unknown;
1549
1548
  createdAt: string;
1550
1549
  updatedAt: string;
1551
1550
  };
@@ -1647,10 +1646,9 @@ export type GetApiStepExecutionsResponses = {
1647
1646
  executionDeadlineAt: string | unknown;
1648
1647
  startedAt: string | unknown;
1649
1648
  completedAt: string | unknown;
1650
- results: Array<{
1649
+ result: {
1651
1650
  id: string;
1652
1651
  stepExecutionId: string;
1653
- attempt: number;
1654
1652
  status: 'succeeded' | 'failed';
1655
1653
  resultJson: unknown;
1656
1654
  errorJson: unknown;
@@ -1666,7 +1664,7 @@ export type GetApiStepExecutionsResponses = {
1666
1664
  createdAt: string;
1667
1665
  }>;
1668
1666
  createdAt: string;
1669
- }>;
1667
+ } | unknown;
1670
1668
  createdAt: string;
1671
1669
  updatedAt: string;
1672
1670
  }>;
@@ -1819,10 +1817,9 @@ export type PostApiStepExecutionsResponses = {
1819
1817
  executionDeadlineAt: string | unknown;
1820
1818
  startedAt: string | unknown;
1821
1819
  completedAt: string | unknown;
1822
- results: Array<{
1820
+ result: {
1823
1821
  id: string;
1824
1822
  stepExecutionId: string;
1825
- attempt: number;
1826
1823
  status: 'succeeded' | 'failed';
1827
1824
  resultJson: unknown;
1828
1825
  errorJson: unknown;
@@ -1838,7 +1835,7 @@ export type PostApiStepExecutionsResponses = {
1838
1835
  createdAt: string;
1839
1836
  }>;
1840
1837
  createdAt: string;
1841
- }>;
1838
+ } | unknown;
1842
1839
  createdAt: string;
1843
1840
  updatedAt: string;
1844
1841
  };
@@ -1973,10 +1970,9 @@ export type PutApiStepExecutionsByStepExecutionIdHeartbeatResponses = {
1973
1970
  executionDeadlineAt: string | unknown;
1974
1971
  startedAt: string | unknown;
1975
1972
  completedAt: string | unknown;
1976
- results: Array<{
1973
+ result: {
1977
1974
  id: string;
1978
1975
  stepExecutionId: string;
1979
- attempt: number;
1980
1976
  status: 'succeeded' | 'failed';
1981
1977
  resultJson: unknown;
1982
1978
  errorJson: unknown;
@@ -1992,7 +1988,7 @@ export type PutApiStepExecutionsByStepExecutionIdHeartbeatResponses = {
1992
1988
  createdAt: string;
1993
1989
  }>;
1994
1990
  createdAt: string;
1995
- }>;
1991
+ } | unknown;
1996
1992
  createdAt: string;
1997
1993
  updatedAt: string;
1998
1994
  };
@@ -2321,10 +2317,9 @@ export type PostApiStepExecutionsByStepExecutionIdCompletionsResponses = {
2321
2317
  executionDeadlineAt: string | unknown;
2322
2318
  startedAt: string | unknown;
2323
2319
  completedAt: string | unknown;
2324
- results: Array<{
2320
+ result: {
2325
2321
  id: string;
2326
2322
  stepExecutionId: string;
2327
- attempt: number;
2328
2323
  status: 'succeeded' | 'failed';
2329
2324
  resultJson: unknown;
2330
2325
  errorJson: unknown;
@@ -2340,7 +2335,7 @@ export type PostApiStepExecutionsByStepExecutionIdCompletionsResponses = {
2340
2335
  createdAt: string;
2341
2336
  }>;
2342
2337
  createdAt: string;
2343
- }>;
2338
+ } | unknown;
2344
2339
  createdAt: string;
2345
2340
  updatedAt: string;
2346
2341
  };
@@ -2456,10 +2451,9 @@ export type PutApiStepExecutionsByStepExecutionIdRunningResponses = {
2456
2451
  executionDeadlineAt: string | unknown;
2457
2452
  startedAt: string | unknown;
2458
2453
  completedAt: string | unknown;
2459
- results: Array<{
2454
+ result: {
2460
2455
  id: string;
2461
2456
  stepExecutionId: string;
2462
- attempt: number;
2463
2457
  status: 'succeeded' | 'failed';
2464
2458
  resultJson: unknown;
2465
2459
  errorJson: unknown;
@@ -2475,7 +2469,7 @@ export type PutApiStepExecutionsByStepExecutionIdRunningResponses = {
2475
2469
  createdAt: string;
2476
2470
  }>;
2477
2471
  createdAt: string;
2478
- }>;
2472
+ } | unknown;
2479
2473
  createdAt: string;
2480
2474
  updatedAt: string;
2481
2475
  };
@@ -2484,7 +2478,6 @@ export type PutApiStepExecutionsByStepExecutionIdRunningResponse = PutApiStepExe
2484
2478
  export type PostApiStepExecutionResultsData = {
2485
2479
  body: {
2486
2480
  stepExecutionId: string;
2487
- attempt: number;
2488
2481
  status: 'succeeded' | 'failed';
2489
2482
  resultJson: unknown;
2490
2483
  errorJson: unknown;
@@ -2599,7 +2592,6 @@ export type PostApiStepExecutionResultsResponses = {
2599
2592
  200: {
2600
2593
  id: string;
2601
2594
  stepExecutionId: string;
2602
- attempt: number;
2603
2595
  status: 'succeeded' | 'failed';
2604
2596
  resultJson: unknown;
2605
2597
  errorJson: unknown;
@@ -2836,10 +2828,9 @@ export type GetApiStepExecutionsByStepExecutionIdResponses = {
2836
2828
  executionDeadlineAt: string | unknown;
2837
2829
  startedAt: string | unknown;
2838
2830
  completedAt: string | unknown;
2839
- results: Array<{
2831
+ result: {
2840
2832
  id: string;
2841
2833
  stepExecutionId: string;
2842
- attempt: number;
2843
2834
  status: 'succeeded' | 'failed';
2844
2835
  resultJson: unknown;
2845
2836
  errorJson: unknown;
@@ -2855,7 +2846,7 @@ export type GetApiStepExecutionsByStepExecutionIdResponses = {
2855
2846
  createdAt: string;
2856
2847
  }>;
2857
2848
  createdAt: string;
2858
- }>;
2849
+ } | unknown;
2859
2850
  createdAt: string;
2860
2851
  updatedAt: string;
2861
2852
  };
@@ -2946,7 +2937,6 @@ export type GetApiLinearPipelineDefinitionsResponses = {
2946
2937
  key: string;
2947
2938
  name: string;
2948
2939
  description: string | unknown;
2949
- version: number;
2950
2940
  status: 'draft' | 'active' | 'archived';
2951
2941
  stepDefinitions: Array<{
2952
2942
  id: string;
@@ -3025,11 +3015,11 @@ export type GetApiLinearPipelineDefinitionsResponses = {
3025
3015
  } | string | number | undefined;
3026
3016
  }>;
3027
3017
  };
3028
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3018
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3029
3019
  defaultEventParamsJson: {
3030
3020
  [key: string]: unknown;
3031
3021
  } | unknown;
3032
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3022
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3033
3023
  createdAt: string;
3034
3024
  updatedAt: string;
3035
3025
  };
@@ -3059,7 +3049,6 @@ export type PostApiLinearPipelineDefinitionsData = {
3059
3049
  key: string;
3060
3050
  name: string;
3061
3051
  description: string | unknown;
3062
- version: number;
3063
3052
  status: 'draft' | 'active' | 'archived';
3064
3053
  stepDefinitions: Array<{
3065
3054
  stepDefinitionId: string;
@@ -3134,11 +3123,11 @@ export type PostApiLinearPipelineDefinitionsData = {
3134
3123
  } | string | number | undefined;
3135
3124
  }>;
3136
3125
  };
3137
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3126
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3138
3127
  defaultEventParamsJson: {
3139
3128
  [key: string]: unknown;
3140
3129
  } | unknown;
3141
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3130
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3142
3131
  };
3143
3132
  computedSignalDefinitions: Array<{
3144
3133
  key: string;
@@ -3280,7 +3269,6 @@ export type PostApiLinearPipelineDefinitionsResponses = {
3280
3269
  key: string;
3281
3270
  name: string;
3282
3271
  description: string | unknown;
3283
- version: number;
3284
3272
  status: 'draft' | 'active' | 'archived';
3285
3273
  stepDefinitions: Array<{
3286
3274
  id: string;
@@ -3359,11 +3347,11 @@ export type PostApiLinearPipelineDefinitionsResponses = {
3359
3347
  } | string | number | undefined;
3360
3348
  }>;
3361
3349
  };
3362
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3350
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3363
3351
  defaultEventParamsJson: {
3364
3352
  [key: string]: unknown;
3365
3353
  } | unknown;
3366
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3354
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3367
3355
  createdAt: string;
3368
3356
  updatedAt: string;
3369
3357
  };
@@ -3393,7 +3381,6 @@ export type PutApiLinearPipelineDefinitionsData = {
3393
3381
  key: string;
3394
3382
  name: string;
3395
3383
  description: string | unknown;
3396
- version: number;
3397
3384
  status: 'draft' | 'active' | 'archived';
3398
3385
  stepDefinitions: Array<{
3399
3386
  stepDefinitionId: string;
@@ -3468,11 +3455,11 @@ export type PutApiLinearPipelineDefinitionsData = {
3468
3455
  } | string | number | undefined;
3469
3456
  }>;
3470
3457
  };
3471
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3458
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3472
3459
  defaultEventParamsJson: {
3473
3460
  [key: string]: unknown;
3474
3461
  } | unknown;
3475
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3462
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3476
3463
  };
3477
3464
  computedSignalDefinitions: Array<{
3478
3465
  key: string;
@@ -3566,7 +3553,6 @@ export type PutApiLinearPipelineDefinitionsResponses = {
3566
3553
  key: string;
3567
3554
  name: string;
3568
3555
  description: string | unknown;
3569
- version: number;
3570
3556
  status: 'draft' | 'active' | 'archived';
3571
3557
  stepDefinitions: Array<{
3572
3558
  id: string;
@@ -3645,11 +3631,11 @@ export type PutApiLinearPipelineDefinitionsResponses = {
3645
3631
  } | string | number | undefined;
3646
3632
  }>;
3647
3633
  };
3648
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3634
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3649
3635
  defaultEventParamsJson: {
3650
3636
  [key: string]: unknown;
3651
3637
  } | unknown;
3652
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3638
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3653
3639
  createdAt: string;
3654
3640
  updatedAt: string;
3655
3641
  };
@@ -3790,7 +3776,6 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses
3790
3776
  key: string;
3791
3777
  name: string;
3792
3778
  description: string | unknown;
3793
- version: number;
3794
3779
  status: 'draft' | 'active' | 'archived';
3795
3780
  stepDefinitions: Array<{
3796
3781
  id: string;
@@ -3869,11 +3854,11 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses
3869
3854
  } | string | number | undefined;
3870
3855
  }>;
3871
3856
  };
3872
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3857
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3873
3858
  defaultEventParamsJson: {
3874
3859
  [key: string]: unknown;
3875
3860
  } | unknown;
3876
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3861
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3877
3862
  createdAt: string;
3878
3863
  updatedAt: string;
3879
3864
  };
@@ -3998,7 +3983,6 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveRe
3998
3983
  key: string;
3999
3984
  name: string;
4000
3985
  description: string | unknown;
4001
- version: number;
4002
3986
  status: 'draft' | 'active' | 'archived';
4003
3987
  stepDefinitions: Array<{
4004
3988
  id: string;
@@ -4077,11 +4061,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveRe
4077
4061
  } | string | number | undefined;
4078
4062
  }>;
4079
4063
  };
4080
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4064
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4081
4065
  defaultEventParamsJson: {
4082
4066
  [key: string]: unknown;
4083
4067
  } | unknown;
4084
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4068
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4085
4069
  createdAt: string;
4086
4070
  updatedAt: string;
4087
4071
  };
@@ -4179,11 +4163,11 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsDat
4179
4163
  } | string | number | undefined;
4180
4164
  }>;
4181
4165
  };
4182
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4166
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4183
4167
  defaultEventParamsJson: {
4184
4168
  [key: string]: unknown;
4185
4169
  } | unknown;
4186
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4170
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4187
4171
  };
4188
4172
  computedSignalDefinitions: Array<{
4189
4173
  key: string;
@@ -4294,7 +4278,6 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsRes
4294
4278
  key: string;
4295
4279
  name: string;
4296
4280
  description: string | unknown;
4297
- version: number;
4298
4281
  status: 'draft' | 'active' | 'archived';
4299
4282
  stepDefinitions: Array<{
4300
4283
  id: string;
@@ -4373,11 +4356,11 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsRes
4373
4356
  } | string | number | undefined;
4374
4357
  }>;
4375
4358
  };
4376
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4359
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4377
4360
  defaultEventParamsJson: {
4378
4361
  [key: string]: unknown;
4379
4362
  } | unknown;
4380
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4363
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4381
4364
  createdAt: string;
4382
4365
  updatedAt: string;
4383
4366
  };
@@ -4503,7 +4486,6 @@ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsB
4503
4486
  key: string;
4504
4487
  name: string;
4505
4488
  description: string | unknown;
4506
- version: number;
4507
4489
  status: 'draft' | 'active' | 'archived';
4508
4490
  stepDefinitions: Array<{
4509
4491
  id: string;
@@ -4582,11 +4564,11 @@ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsB
4582
4564
  } | string | number | undefined;
4583
4565
  }>;
4584
4566
  };
4585
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4567
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4586
4568
  defaultEventParamsJson: {
4587
4569
  [key: string]: unknown;
4588
4570
  } | unknown;
4589
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4571
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4590
4572
  createdAt: string;
4591
4573
  updatedAt: string;
4592
4574
  };
@@ -4684,11 +4666,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4684
4666
  } | string | number | undefined;
4685
4667
  }>;
4686
4668
  };
4687
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4669
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4688
4670
  defaultEventParamsJson: {
4689
4671
  [key: string]: unknown;
4690
4672
  } | unknown;
4691
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4673
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4692
4674
  };
4693
4675
  computedSignalDefinitions: Array<{
4694
4676
  key: string;
@@ -4800,7 +4782,6 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4800
4782
  key: string;
4801
4783
  name: string;
4802
4784
  description: string | unknown;
4803
- version: number;
4804
4785
  status: 'draft' | 'active' | 'archived';
4805
4786
  stepDefinitions: Array<{
4806
4787
  id: string;
@@ -4879,11 +4860,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4879
4860
  } | string | number | undefined;
4880
4861
  }>;
4881
4862
  };
4882
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4863
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4883
4864
  defaultEventParamsJson: {
4884
4865
  [key: string]: unknown;
4885
4866
  } | unknown;
4886
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4867
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4887
4868
  createdAt: string;
4888
4869
  updatedAt: string;
4889
4870
  };
@@ -4953,9 +4934,9 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4953
4934
  } | string | number | undefined;
4954
4935
  }>;
4955
4936
  };
4956
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4937
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4957
4938
  defaultEventParamsJson: unknown;
4958
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4939
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4959
4940
  };
4960
4941
  path: {
4961
4942
  linearPipelineDefinitionId: string;
@@ -5057,7 +5038,6 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5057
5038
  key: string;
5058
5039
  name: string;
5059
5040
  description: string | unknown;
5060
- version: number;
5061
5041
  status: 'draft' | 'active' | 'archived';
5062
5042
  stepDefinitions: Array<{
5063
5043
  id: string;
@@ -5136,11 +5116,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5136
5116
  } | string | number | undefined;
5137
5117
  }>;
5138
5118
  };
5139
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
5119
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5140
5120
  defaultEventParamsJson: {
5141
5121
  [key: string]: unknown;
5142
5122
  } | unknown;
5143
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
5123
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
5144
5124
  createdAt: string;
5145
5125
  updatedAt: string;
5146
5126
  };
@@ -5246,56 +5226,66 @@ export type GetApiLinearPipelineExecutionsResponses = {
5246
5226
  200: Array<{
5247
5227
  id: string;
5248
5228
  projectId: string;
5229
+ workItemId: string;
5249
5230
  linearPipelineDefinitionId: string;
5250
- linearPipelineDefinitionVersion: number;
5251
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5252
- currentStepKey: string | unknown;
5231
+ linearPipelineDefinitionVersionId: string;
5232
+ definitionStepCount: number;
5253
5233
  inputJson: unknown;
5254
- stepRuns: Array<{
5234
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5235
+ attempts: Array<{
5255
5236
  id: string;
5256
5237
  linearPipelineExecutionId: string;
5257
- linearPipelineStepDefinitionId: string;
5258
- stepDefinitionId: string;
5259
- stepDefinitionVersion: number;
5260
- stepKey: string;
5261
- position: number;
5262
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
5263
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5264
- selectedStepExecutionId: string | unknown;
5265
- selectedStepExecutionResultId: string | unknown;
5266
- acceptedByUserId: string | unknown;
5267
- acceptedAt: string | unknown;
5268
- acceptanceReason: string | unknown;
5269
- attemptCount: number;
5270
- lastAttemptedAt: string | unknown;
5271
- inputJson: unknown;
5272
- outputJson: unknown;
5273
- attempts: Array<{
5238
+ attemptNumber: number;
5239
+ currentStepKey: string | unknown;
5240
+ startedAt: string | unknown;
5241
+ completedAt: string | unknown;
5242
+ routedToPipelineExecutionId: string | unknown;
5243
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5244
+ stepRuns: Array<{
5274
5245
  id: string;
5275
- linearPipelineStepRunId: string;
5246
+ linearPipelineExecutionAttemptId: string;
5247
+ linearPipelineStepDefinitionId: string;
5248
+ stepDefinitionId: string;
5249
+ stepDefinitionVersion: number;
5250
+ stepKey: string;
5251
+ position: number;
5252
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5253
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5276
5254
  stepExecutionId: string;
5277
- attemptNumber: number;
5278
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5279
- evaluationId: string | unknown;
5255
+ stepExecutionResultId: string | unknown;
5256
+ inheritedFromStepRunId: string | unknown;
5257
+ acceptedByUserId: string | unknown;
5258
+ acceptedAt: string | unknown;
5259
+ acceptanceReason: string | unknown;
5260
+ inputJson: unknown;
5261
+ outputJson: unknown;
5262
+ evaluation: {
5263
+ id: string;
5264
+ linearPipelineExecutionAttemptId: string;
5265
+ linearPipelineStepRunId: string;
5266
+ stepExecutionId: string;
5267
+ stepExecutionResultId: string;
5268
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5269
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5270
+ factsSnapshotJson: {
5271
+ [key: string]: unknown;
5272
+ };
5273
+ ruleResultsJson: unknown;
5274
+ finalStatus: 'pass' | 'fail';
5275
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5276
+ finalPayloadJson: {
5277
+ [key: string]: unknown;
5278
+ } | unknown;
5279
+ createdAt: string;
5280
+ } | unknown;
5280
5281
  createdAt: string;
5281
- completedAt: string | unknown;
5282
+ updatedAt: string;
5282
5283
  }>;
5283
- evaluations: Array<{
5284
+ events: Array<{
5284
5285
  id: string;
5285
- linearPipelineExecutionId: string;
5286
- linearPipelineStepRunId: string;
5287
- linearPipelineStepRunAttemptId: string;
5288
- stepExecutionId: string;
5289
- stepExecutionResultId: string;
5290
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5291
- linearPipelineStepAdvancementPolicyDefinitionId: string;
5292
- factsSnapshotJson: {
5293
- [key: string]: unknown;
5294
- };
5295
- ruleResultsJson: unknown;
5296
- finalStatus: 'pass' | 'fail';
5297
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
5298
- finalPayloadJson: {
5286
+ linearPipelineExecutionAttemptId: string;
5287
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
5288
+ payloadJson: {
5299
5289
  [key: string]: unknown;
5300
5290
  } | unknown;
5301
5291
  createdAt: string;
@@ -5303,17 +5293,6 @@ export type GetApiLinearPipelineExecutionsResponses = {
5303
5293
  createdAt: string;
5304
5294
  updatedAt: string;
5305
5295
  }>;
5306
- events: Array<{
5307
- id: string;
5308
- linearPipelineExecutionId: string;
5309
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
5310
- payloadJson: {
5311
- [key: string]: unknown;
5312
- } | unknown;
5313
- createdAt: string;
5314
- }>;
5315
- startedAt: string | unknown;
5316
- completedAt: string | unknown;
5317
5296
  createdAt: string;
5318
5297
  updatedAt: string;
5319
5298
  }>;
@@ -5322,6 +5301,7 @@ export type GetApiLinearPipelineExecutionsResponse = GetApiLinearPipelineExecuti
5322
5301
  export type PostApiLinearPipelineExecutionsData = {
5323
5302
  body: {
5324
5303
  projectId: string;
5304
+ workItemId: string;
5325
5305
  linearPipelineDefinitionId: string;
5326
5306
  inputJson?: unknown;
5327
5307
  };
@@ -5451,56 +5431,66 @@ export type PostApiLinearPipelineExecutionsResponses = {
5451
5431
  200: {
5452
5432
  id: string;
5453
5433
  projectId: string;
5434
+ workItemId: string;
5454
5435
  linearPipelineDefinitionId: string;
5455
- linearPipelineDefinitionVersion: number;
5456
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5457
- currentStepKey: string | unknown;
5436
+ linearPipelineDefinitionVersionId: string;
5437
+ definitionStepCount: number;
5458
5438
  inputJson: unknown;
5459
- stepRuns: Array<{
5439
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5440
+ attempts: Array<{
5460
5441
  id: string;
5461
5442
  linearPipelineExecutionId: string;
5462
- linearPipelineStepDefinitionId: string;
5463
- stepDefinitionId: string;
5464
- stepDefinitionVersion: number;
5465
- stepKey: string;
5466
- position: number;
5467
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
5468
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5469
- selectedStepExecutionId: string | unknown;
5470
- selectedStepExecutionResultId: string | unknown;
5471
- acceptedByUserId: string | unknown;
5472
- acceptedAt: string | unknown;
5473
- acceptanceReason: string | unknown;
5474
- attemptCount: number;
5475
- lastAttemptedAt: string | unknown;
5476
- inputJson: unknown;
5477
- outputJson: unknown;
5478
- attempts: Array<{
5443
+ attemptNumber: number;
5444
+ currentStepKey: string | unknown;
5445
+ startedAt: string | unknown;
5446
+ completedAt: string | unknown;
5447
+ routedToPipelineExecutionId: string | unknown;
5448
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5449
+ stepRuns: Array<{
5479
5450
  id: string;
5480
- linearPipelineStepRunId: string;
5451
+ linearPipelineExecutionAttemptId: string;
5452
+ linearPipelineStepDefinitionId: string;
5453
+ stepDefinitionId: string;
5454
+ stepDefinitionVersion: number;
5455
+ stepKey: string;
5456
+ position: number;
5457
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5458
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5481
5459
  stepExecutionId: string;
5482
- attemptNumber: number;
5483
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5484
- evaluationId: string | unknown;
5460
+ stepExecutionResultId: string | unknown;
5461
+ inheritedFromStepRunId: string | unknown;
5462
+ acceptedByUserId: string | unknown;
5463
+ acceptedAt: string | unknown;
5464
+ acceptanceReason: string | unknown;
5465
+ inputJson: unknown;
5466
+ outputJson: unknown;
5467
+ evaluation: {
5468
+ id: string;
5469
+ linearPipelineExecutionAttemptId: string;
5470
+ linearPipelineStepRunId: string;
5471
+ stepExecutionId: string;
5472
+ stepExecutionResultId: string;
5473
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5474
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5475
+ factsSnapshotJson: {
5476
+ [key: string]: unknown;
5477
+ };
5478
+ ruleResultsJson: unknown;
5479
+ finalStatus: 'pass' | 'fail';
5480
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5481
+ finalPayloadJson: {
5482
+ [key: string]: unknown;
5483
+ } | unknown;
5484
+ createdAt: string;
5485
+ } | unknown;
5485
5486
  createdAt: string;
5486
- completedAt: string | unknown;
5487
+ updatedAt: string;
5487
5488
  }>;
5488
- evaluations: Array<{
5489
+ events: Array<{
5489
5490
  id: string;
5490
- linearPipelineExecutionId: string;
5491
- linearPipelineStepRunId: string;
5492
- linearPipelineStepRunAttemptId: string;
5493
- stepExecutionId: string;
5494
- stepExecutionResultId: string;
5495
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5496
- linearPipelineStepAdvancementPolicyDefinitionId: string;
5497
- factsSnapshotJson: {
5498
- [key: string]: unknown;
5499
- };
5500
- ruleResultsJson: unknown;
5501
- finalStatus: 'pass' | 'fail';
5502
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
5503
- finalPayloadJson: {
5491
+ linearPipelineExecutionAttemptId: string;
5492
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
5493
+ payloadJson: {
5504
5494
  [key: string]: unknown;
5505
5495
  } | unknown;
5506
5496
  createdAt: string;
@@ -5508,17 +5498,6 @@ export type PostApiLinearPipelineExecutionsResponses = {
5508
5498
  createdAt: string;
5509
5499
  updatedAt: string;
5510
5500
  }>;
5511
- events: Array<{
5512
- id: string;
5513
- linearPipelineExecutionId: string;
5514
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
5515
- payloadJson: {
5516
- [key: string]: unknown;
5517
- } | unknown;
5518
- createdAt: string;
5519
- }>;
5520
- startedAt: string | unknown;
5521
- completedAt: string | unknown;
5522
5501
  createdAt: string;
5523
5502
  updatedAt: string;
5524
5503
  };
@@ -5622,56 +5601,66 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartRespon
5622
5601
  200: {
5623
5602
  id: string;
5624
5603
  projectId: string;
5604
+ workItemId: string;
5625
5605
  linearPipelineDefinitionId: string;
5626
- linearPipelineDefinitionVersion: number;
5627
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5628
- currentStepKey: string | unknown;
5606
+ linearPipelineDefinitionVersionId: string;
5607
+ definitionStepCount: number;
5629
5608
  inputJson: unknown;
5630
- stepRuns: Array<{
5609
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5610
+ attempts: Array<{
5631
5611
  id: string;
5632
5612
  linearPipelineExecutionId: string;
5633
- linearPipelineStepDefinitionId: string;
5634
- stepDefinitionId: string;
5635
- stepDefinitionVersion: number;
5636
- stepKey: string;
5637
- position: number;
5638
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
5639
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5640
- selectedStepExecutionId: string | unknown;
5641
- selectedStepExecutionResultId: string | unknown;
5642
- acceptedByUserId: string | unknown;
5643
- acceptedAt: string | unknown;
5644
- acceptanceReason: string | unknown;
5645
- attemptCount: number;
5646
- lastAttemptedAt: string | unknown;
5647
- inputJson: unknown;
5648
- outputJson: unknown;
5649
- attempts: Array<{
5613
+ attemptNumber: number;
5614
+ currentStepKey: string | unknown;
5615
+ startedAt: string | unknown;
5616
+ completedAt: string | unknown;
5617
+ routedToPipelineExecutionId: string | unknown;
5618
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5619
+ stepRuns: Array<{
5650
5620
  id: string;
5651
- linearPipelineStepRunId: string;
5621
+ linearPipelineExecutionAttemptId: string;
5622
+ linearPipelineStepDefinitionId: string;
5623
+ stepDefinitionId: string;
5624
+ stepDefinitionVersion: number;
5625
+ stepKey: string;
5626
+ position: number;
5627
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5628
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5652
5629
  stepExecutionId: string;
5653
- attemptNumber: number;
5654
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5655
- evaluationId: string | unknown;
5630
+ stepExecutionResultId: string | unknown;
5631
+ inheritedFromStepRunId: string | unknown;
5632
+ acceptedByUserId: string | unknown;
5633
+ acceptedAt: string | unknown;
5634
+ acceptanceReason: string | unknown;
5635
+ inputJson: unknown;
5636
+ outputJson: unknown;
5637
+ evaluation: {
5638
+ id: string;
5639
+ linearPipelineExecutionAttemptId: string;
5640
+ linearPipelineStepRunId: string;
5641
+ stepExecutionId: string;
5642
+ stepExecutionResultId: string;
5643
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5644
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5645
+ factsSnapshotJson: {
5646
+ [key: string]: unknown;
5647
+ };
5648
+ ruleResultsJson: unknown;
5649
+ finalStatus: 'pass' | 'fail';
5650
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5651
+ finalPayloadJson: {
5652
+ [key: string]: unknown;
5653
+ } | unknown;
5654
+ createdAt: string;
5655
+ } | unknown;
5656
5656
  createdAt: string;
5657
- completedAt: string | unknown;
5657
+ updatedAt: string;
5658
5658
  }>;
5659
- evaluations: Array<{
5659
+ events: Array<{
5660
5660
  id: string;
5661
- linearPipelineExecutionId: string;
5662
- linearPipelineStepRunId: string;
5663
- linearPipelineStepRunAttemptId: string;
5664
- stepExecutionId: string;
5665
- stepExecutionResultId: string;
5666
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5667
- linearPipelineStepAdvancementPolicyDefinitionId: string;
5668
- factsSnapshotJson: {
5669
- [key: string]: unknown;
5670
- };
5671
- ruleResultsJson: unknown;
5672
- finalStatus: 'pass' | 'fail';
5673
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
5674
- finalPayloadJson: {
5661
+ linearPipelineExecutionAttemptId: string;
5662
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
5663
+ payloadJson: {
5675
5664
  [key: string]: unknown;
5676
5665
  } | unknown;
5677
5666
  createdAt: string;
@@ -5679,17 +5668,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartRespon
5679
5668
  createdAt: string;
5680
5669
  updatedAt: string;
5681
5670
  }>;
5682
- events: Array<{
5683
- id: string;
5684
- linearPipelineExecutionId: string;
5685
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
5686
- payloadJson: {
5687
- [key: string]: unknown;
5688
- } | unknown;
5689
- createdAt: string;
5690
- }>;
5691
- startedAt: string | unknown;
5692
- completedAt: string | unknown;
5693
5671
  createdAt: string;
5694
5672
  updatedAt: string;
5695
5673
  };
@@ -5793,56 +5771,66 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
5793
5771
  200: {
5794
5772
  id: string;
5795
5773
  projectId: string;
5774
+ workItemId: string;
5796
5775
  linearPipelineDefinitionId: string;
5797
- linearPipelineDefinitionVersion: number;
5798
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5799
- currentStepKey: string | unknown;
5776
+ linearPipelineDefinitionVersionId: string;
5777
+ definitionStepCount: number;
5800
5778
  inputJson: unknown;
5801
- stepRuns: Array<{
5779
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5780
+ attempts: Array<{
5802
5781
  id: string;
5803
5782
  linearPipelineExecutionId: string;
5804
- linearPipelineStepDefinitionId: string;
5805
- stepDefinitionId: string;
5806
- stepDefinitionVersion: number;
5807
- stepKey: string;
5808
- position: number;
5809
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
5810
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5811
- selectedStepExecutionId: string | unknown;
5812
- selectedStepExecutionResultId: string | unknown;
5813
- acceptedByUserId: string | unknown;
5814
- acceptedAt: string | unknown;
5815
- acceptanceReason: string | unknown;
5816
- attemptCount: number;
5817
- lastAttemptedAt: string | unknown;
5818
- inputJson: unknown;
5819
- outputJson: unknown;
5820
- attempts: Array<{
5783
+ attemptNumber: number;
5784
+ currentStepKey: string | unknown;
5785
+ startedAt: string | unknown;
5786
+ completedAt: string | unknown;
5787
+ routedToPipelineExecutionId: string | unknown;
5788
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5789
+ stepRuns: Array<{
5821
5790
  id: string;
5822
- linearPipelineStepRunId: string;
5791
+ linearPipelineExecutionAttemptId: string;
5792
+ linearPipelineStepDefinitionId: string;
5793
+ stepDefinitionId: string;
5794
+ stepDefinitionVersion: number;
5795
+ stepKey: string;
5796
+ position: number;
5797
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5798
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5823
5799
  stepExecutionId: string;
5824
- attemptNumber: number;
5825
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5826
- evaluationId: string | unknown;
5800
+ stepExecutionResultId: string | unknown;
5801
+ inheritedFromStepRunId: string | unknown;
5802
+ acceptedByUserId: string | unknown;
5803
+ acceptedAt: string | unknown;
5804
+ acceptanceReason: string | unknown;
5805
+ inputJson: unknown;
5806
+ outputJson: unknown;
5807
+ evaluation: {
5808
+ id: string;
5809
+ linearPipelineExecutionAttemptId: string;
5810
+ linearPipelineStepRunId: string;
5811
+ stepExecutionId: string;
5812
+ stepExecutionResultId: string;
5813
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5814
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5815
+ factsSnapshotJson: {
5816
+ [key: string]: unknown;
5817
+ };
5818
+ ruleResultsJson: unknown;
5819
+ finalStatus: 'pass' | 'fail';
5820
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5821
+ finalPayloadJson: {
5822
+ [key: string]: unknown;
5823
+ } | unknown;
5824
+ createdAt: string;
5825
+ } | unknown;
5827
5826
  createdAt: string;
5828
- completedAt: string | unknown;
5827
+ updatedAt: string;
5829
5828
  }>;
5830
- evaluations: Array<{
5829
+ events: Array<{
5831
5830
  id: string;
5832
- linearPipelineExecutionId: string;
5833
- linearPipelineStepRunId: string;
5834
- linearPipelineStepRunAttemptId: string;
5835
- stepExecutionId: string;
5836
- stepExecutionResultId: string;
5837
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5838
- linearPipelineStepAdvancementPolicyDefinitionId: string;
5839
- factsSnapshotJson: {
5840
- [key: string]: unknown;
5841
- };
5842
- ruleResultsJson: unknown;
5843
- finalStatus: 'pass' | 'fail';
5844
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
5845
- finalPayloadJson: {
5831
+ linearPipelineExecutionAttemptId: string;
5832
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
5833
+ payloadJson: {
5846
5834
  [key: string]: unknown;
5847
5835
  } | unknown;
5848
5836
  createdAt: string;
@@ -5850,32 +5838,21 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
5850
5838
  createdAt: string;
5851
5839
  updatedAt: string;
5852
5840
  }>;
5853
- events: Array<{
5854
- id: string;
5855
- linearPipelineExecutionId: string;
5856
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
5857
- payloadJson: {
5858
- [key: string]: unknown;
5859
- } | unknown;
5860
- createdAt: string;
5861
- }>;
5862
- startedAt: string | unknown;
5863
- completedAt: string | unknown;
5864
5841
  createdAt: string;
5865
5842
  updatedAt: string;
5866
5843
  };
5867
5844
  };
5868
5845
  export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses];
5869
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsData = {
5846
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningData = {
5870
5847
  body?: never;
5871
5848
  path: {
5872
5849
  linearPipelineExecutionId: string;
5873
5850
  linearPipelineStepRunId: string;
5874
5851
  };
5875
5852
  query?: never;
5876
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts';
5853
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/running';
5877
5854
  };
5878
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsErrors = {
5855
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors = {
5879
5856
  /**
5880
5857
  * Response for status 401
5881
5858
  */
@@ -5957,237 +5934,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
5957
5934
  }>;
5958
5935
  };
5959
5936
  };
5960
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsErrors];
5961
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponses = {
5937
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors];
5938
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses = {
5962
5939
  /**
5963
5940
  * Response for status 200
5964
5941
  */
5965
5942
  200: {
5966
5943
  id: string;
5967
5944
  projectId: string;
5945
+ workItemId: string;
5968
5946
  linearPipelineDefinitionId: string;
5969
- linearPipelineDefinitionVersion: number;
5970
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5971
- currentStepKey: string | unknown;
5947
+ linearPipelineDefinitionVersionId: string;
5948
+ definitionStepCount: number;
5972
5949
  inputJson: unknown;
5973
- stepRuns: Array<{
5950
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5951
+ attempts: Array<{
5974
5952
  id: string;
5975
5953
  linearPipelineExecutionId: string;
5976
- linearPipelineStepDefinitionId: string;
5977
- stepDefinitionId: string;
5978
- stepDefinitionVersion: number;
5979
- stepKey: string;
5980
- position: number;
5981
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
5982
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5983
- selectedStepExecutionId: string | unknown;
5984
- selectedStepExecutionResultId: string | unknown;
5985
- acceptedByUserId: string | unknown;
5986
- acceptedAt: string | unknown;
5987
- acceptanceReason: string | unknown;
5988
- attemptCount: number;
5989
- lastAttemptedAt: string | unknown;
5990
- inputJson: unknown;
5991
- outputJson: unknown;
5992
- attempts: Array<{
5993
- id: string;
5994
- linearPipelineStepRunId: string;
5995
- stepExecutionId: string;
5996
- attemptNumber: number;
5997
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5998
- evaluationId: string | unknown;
5999
- createdAt: string;
6000
- completedAt: string | unknown;
6001
- }>;
6002
- evaluations: Array<{
5954
+ attemptNumber: number;
5955
+ currentStepKey: string | unknown;
5956
+ startedAt: string | unknown;
5957
+ completedAt: string | unknown;
5958
+ routedToPipelineExecutionId: string | unknown;
5959
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5960
+ stepRuns: Array<{
6003
5961
  id: string;
6004
- linearPipelineExecutionId: string;
6005
- linearPipelineStepRunId: string;
6006
- linearPipelineStepRunAttemptId: string;
5962
+ linearPipelineExecutionAttemptId: string;
5963
+ linearPipelineStepDefinitionId: string;
5964
+ stepDefinitionId: string;
5965
+ stepDefinitionVersion: number;
5966
+ stepKey: string;
5967
+ position: number;
5968
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5969
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6007
5970
  stepExecutionId: string;
6008
- stepExecutionResultId: string;
6009
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6010
- linearPipelineStepAdvancementPolicyDefinitionId: string;
6011
- factsSnapshotJson: {
6012
- [key: string]: unknown;
6013
- };
6014
- ruleResultsJson: unknown;
6015
- finalStatus: 'pass' | 'fail';
6016
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
6017
- finalPayloadJson: {
6018
- [key: string]: unknown;
5971
+ stepExecutionResultId: string | unknown;
5972
+ inheritedFromStepRunId: string | unknown;
5973
+ acceptedByUserId: string | unknown;
5974
+ acceptedAt: string | unknown;
5975
+ acceptanceReason: string | unknown;
5976
+ inputJson: unknown;
5977
+ outputJson: unknown;
5978
+ evaluation: {
5979
+ id: string;
5980
+ linearPipelineExecutionAttemptId: string;
5981
+ linearPipelineStepRunId: string;
5982
+ stepExecutionId: string;
5983
+ stepExecutionResultId: string;
5984
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5985
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5986
+ factsSnapshotJson: {
5987
+ [key: string]: unknown;
5988
+ };
5989
+ ruleResultsJson: unknown;
5990
+ finalStatus: 'pass' | 'fail';
5991
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5992
+ finalPayloadJson: {
5993
+ [key: string]: unknown;
5994
+ } | unknown;
5995
+ createdAt: string;
6019
5996
  } | unknown;
6020
5997
  createdAt: string;
5998
+ updatedAt: string;
6021
5999
  }>;
6022
- createdAt: string;
6023
- updatedAt: string;
6024
- }>;
6025
- events: Array<{
6026
- id: string;
6027
- linearPipelineExecutionId: string;
6028
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
6029
- payloadJson: {
6030
- [key: string]: unknown;
6031
- } | unknown;
6032
- createdAt: string;
6033
- }>;
6034
- startedAt: string | unknown;
6035
- completedAt: string | unknown;
6036
- createdAt: string;
6037
- updatedAt: string;
6038
- };
6039
- };
6040
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponses];
6041
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningData = {
6042
- body?: never;
6043
- path: {
6044
- linearPipelineExecutionId: string;
6045
- linearPipelineStepRunId: string;
6046
- linearPipelineStepRunAttemptId: string;
6047
- };
6048
- query?: never;
6049
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/running';
6050
- };
6051
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningErrors = {
6052
- /**
6053
- * Response for status 401
6054
- */
6055
- 401: {
6056
- type: string;
6057
- title: string;
6058
- status: number;
6059
- detail?: string;
6060
- instance?: string;
6061
- code?: string;
6062
- errors?: Array<{
6063
- path: string;
6064
- message: string;
6065
- summary?: string;
6066
- }>;
6067
- };
6068
- /**
6069
- * Response for status 403
6070
- */
6071
- 403: {
6072
- type: string;
6073
- title: string;
6074
- status: number;
6075
- detail?: string;
6076
- instance?: string;
6077
- code?: string;
6078
- errors?: Array<{
6079
- path: string;
6080
- message: string;
6081
- summary?: string;
6082
- }>;
6083
- };
6084
- /**
6085
- * Response for status 404
6086
- */
6087
- 404: {
6088
- type: string;
6089
- title: string;
6090
- status: number;
6091
- detail?: string;
6092
- instance?: string;
6093
- code?: string;
6094
- errors?: Array<{
6095
- path: string;
6096
- message: string;
6097
- summary?: string;
6098
- }>;
6099
- };
6100
- /**
6101
- * Response for status 422
6102
- */
6103
- 422: {
6104
- type: string;
6105
- title: string;
6106
- status: number;
6107
- detail?: string;
6108
- instance?: string;
6109
- code?: string;
6110
- errors?: Array<{
6111
- path: string;
6112
- message: string;
6113
- summary?: string;
6114
- }>;
6115
- };
6116
- /**
6117
- * Response for status 500
6118
- */
6119
- 500: {
6120
- type: string;
6121
- title: string;
6122
- status: number;
6123
- detail?: string;
6124
- instance?: string;
6125
- code?: string;
6126
- errors?: Array<{
6127
- path: string;
6128
- message: string;
6129
- summary?: string;
6130
- }>;
6131
- };
6132
- };
6133
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningErrors];
6134
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponses = {
6135
- /**
6136
- * Response for status 200
6137
- */
6138
- 200: {
6139
- id: string;
6140
- projectId: string;
6141
- linearPipelineDefinitionId: string;
6142
- linearPipelineDefinitionVersion: number;
6143
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6144
- currentStepKey: string | unknown;
6145
- inputJson: unknown;
6146
- stepRuns: Array<{
6147
- id: string;
6148
- linearPipelineExecutionId: string;
6149
- linearPipelineStepDefinitionId: string;
6150
- stepDefinitionId: string;
6151
- stepDefinitionVersion: number;
6152
- stepKey: string;
6153
- position: number;
6154
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
6155
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6156
- selectedStepExecutionId: string | unknown;
6157
- selectedStepExecutionResultId: string | unknown;
6158
- acceptedByUserId: string | unknown;
6159
- acceptedAt: string | unknown;
6160
- acceptanceReason: string | unknown;
6161
- attemptCount: number;
6162
- lastAttemptedAt: string | unknown;
6163
- inputJson: unknown;
6164
- outputJson: unknown;
6165
- attempts: Array<{
6166
- id: string;
6167
- linearPipelineStepRunId: string;
6168
- stepExecutionId: string;
6169
- attemptNumber: number;
6170
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6171
- evaluationId: string | unknown;
6172
- createdAt: string;
6173
- completedAt: string | unknown;
6174
- }>;
6175
- evaluations: Array<{
6000
+ events: Array<{
6176
6001
  id: string;
6177
- linearPipelineExecutionId: string;
6178
- linearPipelineStepRunId: string;
6179
- linearPipelineStepRunAttemptId: string;
6180
- stepExecutionId: string;
6181
- stepExecutionResultId: string;
6182
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6183
- linearPipelineStepAdvancementPolicyDefinitionId: string;
6184
- factsSnapshotJson: {
6185
- [key: string]: unknown;
6186
- };
6187
- ruleResultsJson: unknown;
6188
- finalStatus: 'pass' | 'fail';
6189
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
6190
- finalPayloadJson: {
6002
+ linearPipelineExecutionAttemptId: string;
6003
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
6004
+ payloadJson: {
6191
6005
  [key: string]: unknown;
6192
6006
  } | unknown;
6193
6007
  createdAt: string;
@@ -6195,23 +6009,12 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByL
6195
6009
  createdAt: string;
6196
6010
  updatedAt: string;
6197
6011
  }>;
6198
- events: Array<{
6199
- id: string;
6200
- linearPipelineExecutionId: string;
6201
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
6202
- payloadJson: {
6203
- [key: string]: unknown;
6204
- } | unknown;
6205
- createdAt: string;
6206
- }>;
6207
- startedAt: string | unknown;
6208
- completedAt: string | unknown;
6209
6012
  createdAt: string;
6210
6013
  updatedAt: string;
6211
6014
  };
6212
6015
  };
6213
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponses];
6214
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsData = {
6016
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses];
6017
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsData = {
6215
6018
  body: {
6216
6019
  status: 'succeeded' | 'failed';
6217
6020
  resultJson: unknown;
@@ -6220,12 +6023,11 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6220
6023
  path: {
6221
6024
  linearPipelineExecutionId: string;
6222
6025
  linearPipelineStepRunId: string;
6223
- linearPipelineStepRunAttemptId: string;
6224
6026
  };
6225
6027
  query?: never;
6226
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/results';
6028
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/results';
6227
6029
  };
6228
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsErrors = {
6030
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors = {
6229
6031
  /**
6230
6032
  * Response for status 401
6231
6033
  */
@@ -6307,64 +6109,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6307
6109
  }>;
6308
6110
  };
6309
6111
  };
6310
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsErrors];
6311
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponses = {
6112
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors];
6113
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses = {
6312
6114
  /**
6313
6115
  * Response for status 200
6314
6116
  */
6315
6117
  200: {
6316
6118
  id: string;
6317
6119
  projectId: string;
6120
+ workItemId: string;
6318
6121
  linearPipelineDefinitionId: string;
6319
- linearPipelineDefinitionVersion: number;
6320
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6321
- currentStepKey: string | unknown;
6122
+ linearPipelineDefinitionVersionId: string;
6123
+ definitionStepCount: number;
6322
6124
  inputJson: unknown;
6323
- stepRuns: Array<{
6125
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6126
+ attempts: Array<{
6324
6127
  id: string;
6325
6128
  linearPipelineExecutionId: string;
6326
- linearPipelineStepDefinitionId: string;
6327
- stepDefinitionId: string;
6328
- stepDefinitionVersion: number;
6329
- stepKey: string;
6330
- position: number;
6331
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
6332
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6333
- selectedStepExecutionId: string | unknown;
6334
- selectedStepExecutionResultId: string | unknown;
6335
- acceptedByUserId: string | unknown;
6336
- acceptedAt: string | unknown;
6337
- acceptanceReason: string | unknown;
6338
- attemptCount: number;
6339
- lastAttemptedAt: string | unknown;
6340
- inputJson: unknown;
6341
- outputJson: unknown;
6342
- attempts: Array<{
6129
+ attemptNumber: number;
6130
+ currentStepKey: string | unknown;
6131
+ startedAt: string | unknown;
6132
+ completedAt: string | unknown;
6133
+ routedToPipelineExecutionId: string | unknown;
6134
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6135
+ stepRuns: Array<{
6343
6136
  id: string;
6344
- linearPipelineStepRunId: string;
6137
+ linearPipelineExecutionAttemptId: string;
6138
+ linearPipelineStepDefinitionId: string;
6139
+ stepDefinitionId: string;
6140
+ stepDefinitionVersion: number;
6141
+ stepKey: string;
6142
+ position: number;
6143
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6144
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6345
6145
  stepExecutionId: string;
6346
- attemptNumber: number;
6347
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6348
- evaluationId: string | unknown;
6146
+ stepExecutionResultId: string | unknown;
6147
+ inheritedFromStepRunId: string | unknown;
6148
+ acceptedByUserId: string | unknown;
6149
+ acceptedAt: string | unknown;
6150
+ acceptanceReason: string | unknown;
6151
+ inputJson: unknown;
6152
+ outputJson: unknown;
6153
+ evaluation: {
6154
+ id: string;
6155
+ linearPipelineExecutionAttemptId: string;
6156
+ linearPipelineStepRunId: string;
6157
+ stepExecutionId: string;
6158
+ stepExecutionResultId: string;
6159
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6160
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6161
+ factsSnapshotJson: {
6162
+ [key: string]: unknown;
6163
+ };
6164
+ ruleResultsJson: unknown;
6165
+ finalStatus: 'pass' | 'fail';
6166
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6167
+ finalPayloadJson: {
6168
+ [key: string]: unknown;
6169
+ } | unknown;
6170
+ createdAt: string;
6171
+ } | unknown;
6349
6172
  createdAt: string;
6350
- completedAt: string | unknown;
6173
+ updatedAt: string;
6351
6174
  }>;
6352
- evaluations: Array<{
6175
+ events: Array<{
6353
6176
  id: string;
6354
- linearPipelineExecutionId: string;
6355
- linearPipelineStepRunId: string;
6356
- linearPipelineStepRunAttemptId: string;
6357
- stepExecutionId: string;
6358
- stepExecutionResultId: string;
6359
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6360
- linearPipelineStepAdvancementPolicyDefinitionId: string;
6361
- factsSnapshotJson: {
6362
- [key: string]: unknown;
6363
- };
6364
- ruleResultsJson: unknown;
6365
- finalStatus: 'pass' | 'fail';
6366
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
6367
- finalPayloadJson: {
6177
+ linearPipelineExecutionAttemptId: string;
6178
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
6179
+ payloadJson: {
6368
6180
  [key: string]: unknown;
6369
6181
  } | unknown;
6370
6182
  createdAt: string;
@@ -6372,22 +6184,11 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6372
6184
  createdAt: string;
6373
6185
  updatedAt: string;
6374
6186
  }>;
6375
- events: Array<{
6376
- id: string;
6377
- linearPipelineExecutionId: string;
6378
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
6379
- payloadJson: {
6380
- [key: string]: unknown;
6381
- } | unknown;
6382
- createdAt: string;
6383
- }>;
6384
- startedAt: string | unknown;
6385
- completedAt: string | unknown;
6386
6187
  createdAt: string;
6387
6188
  updatedAt: string;
6388
6189
  };
6389
6190
  };
6390
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponses];
6191
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses];
6391
6192
  export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptData = {
6392
6193
  body: {
6393
6194
  projectId: string;
@@ -6493,56 +6294,66 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6493
6294
  200: {
6494
6295
  id: string;
6495
6296
  projectId: string;
6297
+ workItemId: string;
6496
6298
  linearPipelineDefinitionId: string;
6497
- linearPipelineDefinitionVersion: number;
6498
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6499
- currentStepKey: string | unknown;
6299
+ linearPipelineDefinitionVersionId: string;
6300
+ definitionStepCount: number;
6500
6301
  inputJson: unknown;
6501
- stepRuns: Array<{
6302
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6303
+ attempts: Array<{
6502
6304
  id: string;
6503
6305
  linearPipelineExecutionId: string;
6504
- linearPipelineStepDefinitionId: string;
6505
- stepDefinitionId: string;
6506
- stepDefinitionVersion: number;
6507
- stepKey: string;
6508
- position: number;
6509
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
6510
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6511
- selectedStepExecutionId: string | unknown;
6512
- selectedStepExecutionResultId: string | unknown;
6513
- acceptedByUserId: string | unknown;
6514
- acceptedAt: string | unknown;
6515
- acceptanceReason: string | unknown;
6516
- attemptCount: number;
6517
- lastAttemptedAt: string | unknown;
6518
- inputJson: unknown;
6519
- outputJson: unknown;
6520
- attempts: Array<{
6306
+ attemptNumber: number;
6307
+ currentStepKey: string | unknown;
6308
+ startedAt: string | unknown;
6309
+ completedAt: string | unknown;
6310
+ routedToPipelineExecutionId: string | unknown;
6311
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6312
+ stepRuns: Array<{
6521
6313
  id: string;
6522
- linearPipelineStepRunId: string;
6314
+ linearPipelineExecutionAttemptId: string;
6315
+ linearPipelineStepDefinitionId: string;
6316
+ stepDefinitionId: string;
6317
+ stepDefinitionVersion: number;
6318
+ stepKey: string;
6319
+ position: number;
6320
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6321
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6523
6322
  stepExecutionId: string;
6524
- attemptNumber: number;
6525
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6526
- evaluationId: string | unknown;
6323
+ stepExecutionResultId: string | unknown;
6324
+ inheritedFromStepRunId: string | unknown;
6325
+ acceptedByUserId: string | unknown;
6326
+ acceptedAt: string | unknown;
6327
+ acceptanceReason: string | unknown;
6328
+ inputJson: unknown;
6329
+ outputJson: unknown;
6330
+ evaluation: {
6331
+ id: string;
6332
+ linearPipelineExecutionAttemptId: string;
6333
+ linearPipelineStepRunId: string;
6334
+ stepExecutionId: string;
6335
+ stepExecutionResultId: string;
6336
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6337
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6338
+ factsSnapshotJson: {
6339
+ [key: string]: unknown;
6340
+ };
6341
+ ruleResultsJson: unknown;
6342
+ finalStatus: 'pass' | 'fail';
6343
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6344
+ finalPayloadJson: {
6345
+ [key: string]: unknown;
6346
+ } | unknown;
6347
+ createdAt: string;
6348
+ } | unknown;
6527
6349
  createdAt: string;
6528
- completedAt: string | unknown;
6350
+ updatedAt: string;
6529
6351
  }>;
6530
- evaluations: Array<{
6352
+ events: Array<{
6531
6353
  id: string;
6532
- linearPipelineExecutionId: string;
6533
- linearPipelineStepRunId: string;
6534
- linearPipelineStepRunAttemptId: string;
6535
- stepExecutionId: string;
6536
- stepExecutionResultId: string;
6537
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6538
- linearPipelineStepAdvancementPolicyDefinitionId: string;
6539
- factsSnapshotJson: {
6540
- [key: string]: unknown;
6541
- };
6542
- ruleResultsJson: unknown;
6543
- finalStatus: 'pass' | 'fail';
6544
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
6545
- finalPayloadJson: {
6354
+ linearPipelineExecutionAttemptId: string;
6355
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
6356
+ payloadJson: {
6546
6357
  [key: string]: unknown;
6547
6358
  } | unknown;
6548
6359
  createdAt: string;
@@ -6550,34 +6361,22 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6550
6361
  createdAt: string;
6551
6362
  updatedAt: string;
6552
6363
  }>;
6553
- events: Array<{
6554
- id: string;
6555
- linearPipelineExecutionId: string;
6556
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
6557
- payloadJson: {
6558
- [key: string]: unknown;
6559
- } | unknown;
6560
- createdAt: string;
6561
- }>;
6562
- startedAt: string | unknown;
6563
- completedAt: string | unknown;
6564
6364
  createdAt: string;
6565
6365
  updatedAt: string;
6566
6366
  };
6567
6367
  };
6568
6368
  export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses];
6569
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerData = {
6369
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunData = {
6570
6370
  body: {
6571
- projectId: string;
6371
+ fromStepKey?: string;
6572
6372
  };
6573
6373
  path: {
6574
6374
  linearPipelineExecutionId: string;
6575
- linearPipelineStepRunId: string;
6576
6375
  };
6577
6376
  query?: never;
6578
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/retrigger';
6377
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/rerun';
6579
6378
  };
6580
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerErrors = {
6379
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors = {
6581
6380
  /**
6582
6381
  * Response for status 401
6583
6382
  */
@@ -6659,64 +6458,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6659
6458
  }>;
6660
6459
  };
6661
6460
  };
6662
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerErrors];
6663
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponses = {
6461
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors];
6462
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses = {
6664
6463
  /**
6665
6464
  * Response for status 200
6666
6465
  */
6667
6466
  200: {
6668
6467
  id: string;
6669
6468
  projectId: string;
6469
+ workItemId: string;
6670
6470
  linearPipelineDefinitionId: string;
6671
- linearPipelineDefinitionVersion: number;
6672
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6673
- currentStepKey: string | unknown;
6471
+ linearPipelineDefinitionVersionId: string;
6472
+ definitionStepCount: number;
6674
6473
  inputJson: unknown;
6675
- stepRuns: Array<{
6474
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6475
+ attempts: Array<{
6676
6476
  id: string;
6677
6477
  linearPipelineExecutionId: string;
6678
- linearPipelineStepDefinitionId: string;
6679
- stepDefinitionId: string;
6680
- stepDefinitionVersion: number;
6681
- stepKey: string;
6682
- position: number;
6683
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
6684
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6685
- selectedStepExecutionId: string | unknown;
6686
- selectedStepExecutionResultId: string | unknown;
6687
- acceptedByUserId: string | unknown;
6688
- acceptedAt: string | unknown;
6689
- acceptanceReason: string | unknown;
6690
- attemptCount: number;
6691
- lastAttemptedAt: string | unknown;
6692
- inputJson: unknown;
6693
- outputJson: unknown;
6694
- attempts: Array<{
6478
+ attemptNumber: number;
6479
+ currentStepKey: string | unknown;
6480
+ startedAt: string | unknown;
6481
+ completedAt: string | unknown;
6482
+ routedToPipelineExecutionId: string | unknown;
6483
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6484
+ stepRuns: Array<{
6695
6485
  id: string;
6696
- linearPipelineStepRunId: string;
6486
+ linearPipelineExecutionAttemptId: string;
6487
+ linearPipelineStepDefinitionId: string;
6488
+ stepDefinitionId: string;
6489
+ stepDefinitionVersion: number;
6490
+ stepKey: string;
6491
+ position: number;
6492
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6493
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6697
6494
  stepExecutionId: string;
6698
- attemptNumber: number;
6699
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6700
- evaluationId: string | unknown;
6495
+ stepExecutionResultId: string | unknown;
6496
+ inheritedFromStepRunId: string | unknown;
6497
+ acceptedByUserId: string | unknown;
6498
+ acceptedAt: string | unknown;
6499
+ acceptanceReason: string | unknown;
6500
+ inputJson: unknown;
6501
+ outputJson: unknown;
6502
+ evaluation: {
6503
+ id: string;
6504
+ linearPipelineExecutionAttemptId: string;
6505
+ linearPipelineStepRunId: string;
6506
+ stepExecutionId: string;
6507
+ stepExecutionResultId: string;
6508
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6509
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6510
+ factsSnapshotJson: {
6511
+ [key: string]: unknown;
6512
+ };
6513
+ ruleResultsJson: unknown;
6514
+ finalStatus: 'pass' | 'fail';
6515
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6516
+ finalPayloadJson: {
6517
+ [key: string]: unknown;
6518
+ } | unknown;
6519
+ createdAt: string;
6520
+ } | unknown;
6701
6521
  createdAt: string;
6702
- completedAt: string | unknown;
6522
+ updatedAt: string;
6703
6523
  }>;
6704
- evaluations: Array<{
6524
+ events: Array<{
6705
6525
  id: string;
6706
- linearPipelineExecutionId: string;
6707
- linearPipelineStepRunId: string;
6708
- linearPipelineStepRunAttemptId: string;
6709
- stepExecutionId: string;
6710
- stepExecutionResultId: string;
6711
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6712
- linearPipelineStepAdvancementPolicyDefinitionId: string;
6713
- factsSnapshotJson: {
6714
- [key: string]: unknown;
6715
- };
6716
- ruleResultsJson: unknown;
6717
- finalStatus: 'pass' | 'fail';
6718
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
6719
- finalPayloadJson: {
6526
+ linearPipelineExecutionAttemptId: string;
6527
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
6528
+ payloadJson: {
6720
6529
  [key: string]: unknown;
6721
6530
  } | unknown;
6722
6531
  createdAt: string;
@@ -6724,22 +6533,11 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6724
6533
  createdAt: string;
6725
6534
  updatedAt: string;
6726
6535
  }>;
6727
- events: Array<{
6728
- id: string;
6729
- linearPipelineExecutionId: string;
6730
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
6731
- payloadJson: {
6732
- [key: string]: unknown;
6733
- } | unknown;
6734
- createdAt: string;
6735
- }>;
6736
- startedAt: string | unknown;
6737
- completedAt: string | unknown;
6738
6536
  createdAt: string;
6739
6537
  updatedAt: string;
6740
6538
  };
6741
6539
  };
6742
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponses];
6540
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses];
6743
6541
  export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelData = {
6744
6542
  body?: never;
6745
6543
  path: {
@@ -6838,56 +6636,66 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelRespo
6838
6636
  200: {
6839
6637
  id: string;
6840
6638
  projectId: string;
6639
+ workItemId: string;
6841
6640
  linearPipelineDefinitionId: string;
6842
- linearPipelineDefinitionVersion: number;
6843
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6844
- currentStepKey: string | unknown;
6641
+ linearPipelineDefinitionVersionId: string;
6642
+ definitionStepCount: number;
6845
6643
  inputJson: unknown;
6846
- stepRuns: Array<{
6644
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6645
+ attempts: Array<{
6847
6646
  id: string;
6848
6647
  linearPipelineExecutionId: string;
6849
- linearPipelineStepDefinitionId: string;
6850
- stepDefinitionId: string;
6851
- stepDefinitionVersion: number;
6852
- stepKey: string;
6853
- position: number;
6854
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
6855
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6856
- selectedStepExecutionId: string | unknown;
6857
- selectedStepExecutionResultId: string | unknown;
6858
- acceptedByUserId: string | unknown;
6859
- acceptedAt: string | unknown;
6860
- acceptanceReason: string | unknown;
6861
- attemptCount: number;
6862
- lastAttemptedAt: string | unknown;
6863
- inputJson: unknown;
6864
- outputJson: unknown;
6865
- attempts: Array<{
6648
+ attemptNumber: number;
6649
+ currentStepKey: string | unknown;
6650
+ startedAt: string | unknown;
6651
+ completedAt: string | unknown;
6652
+ routedToPipelineExecutionId: string | unknown;
6653
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6654
+ stepRuns: Array<{
6866
6655
  id: string;
6867
- linearPipelineStepRunId: string;
6656
+ linearPipelineExecutionAttemptId: string;
6657
+ linearPipelineStepDefinitionId: string;
6658
+ stepDefinitionId: string;
6659
+ stepDefinitionVersion: number;
6660
+ stepKey: string;
6661
+ position: number;
6662
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6663
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6868
6664
  stepExecutionId: string;
6869
- attemptNumber: number;
6870
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6871
- evaluationId: string | unknown;
6665
+ stepExecutionResultId: string | unknown;
6666
+ inheritedFromStepRunId: string | unknown;
6667
+ acceptedByUserId: string | unknown;
6668
+ acceptedAt: string | unknown;
6669
+ acceptanceReason: string | unknown;
6670
+ inputJson: unknown;
6671
+ outputJson: unknown;
6672
+ evaluation: {
6673
+ id: string;
6674
+ linearPipelineExecutionAttemptId: string;
6675
+ linearPipelineStepRunId: string;
6676
+ stepExecutionId: string;
6677
+ stepExecutionResultId: string;
6678
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6679
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6680
+ factsSnapshotJson: {
6681
+ [key: string]: unknown;
6682
+ };
6683
+ ruleResultsJson: unknown;
6684
+ finalStatus: 'pass' | 'fail';
6685
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6686
+ finalPayloadJson: {
6687
+ [key: string]: unknown;
6688
+ } | unknown;
6689
+ createdAt: string;
6690
+ } | unknown;
6872
6691
  createdAt: string;
6873
- completedAt: string | unknown;
6692
+ updatedAt: string;
6874
6693
  }>;
6875
- evaluations: Array<{
6694
+ events: Array<{
6876
6695
  id: string;
6877
- linearPipelineExecutionId: string;
6878
- linearPipelineStepRunId: string;
6879
- linearPipelineStepRunAttemptId: string;
6880
- stepExecutionId: string;
6881
- stepExecutionResultId: string;
6882
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6883
- linearPipelineStepAdvancementPolicyDefinitionId: string;
6884
- factsSnapshotJson: {
6885
- [key: string]: unknown;
6886
- };
6887
- ruleResultsJson: unknown;
6888
- finalStatus: 'pass' | 'fail';
6889
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
6890
- finalPayloadJson: {
6696
+ linearPipelineExecutionAttemptId: string;
6697
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
6698
+ payloadJson: {
6891
6699
  [key: string]: unknown;
6892
6700
  } | unknown;
6893
6701
  createdAt: string;
@@ -6895,17 +6703,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelRespo
6895
6703
  createdAt: string;
6896
6704
  updatedAt: string;
6897
6705
  }>;
6898
- events: Array<{
6899
- id: string;
6900
- linearPipelineExecutionId: string;
6901
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
6902
- payloadJson: {
6903
- [key: string]: unknown;
6904
- } | unknown;
6905
- createdAt: string;
6906
- }>;
6907
- startedAt: string | unknown;
6908
- completedAt: string | unknown;
6909
6706
  createdAt: string;
6910
6707
  updatedAt: string;
6911
6708
  };
@@ -7009,56 +6806,66 @@ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses =
7009
6806
  200: {
7010
6807
  id: string;
7011
6808
  projectId: string;
6809
+ workItemId: string;
7012
6810
  linearPipelineDefinitionId: string;
7013
- linearPipelineDefinitionVersion: number;
7014
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
7015
- currentStepKey: string | unknown;
6811
+ linearPipelineDefinitionVersionId: string;
6812
+ definitionStepCount: number;
7016
6813
  inputJson: unknown;
7017
- stepRuns: Array<{
6814
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6815
+ attempts: Array<{
7018
6816
  id: string;
7019
6817
  linearPipelineExecutionId: string;
7020
- linearPipelineStepDefinitionId: string;
7021
- stepDefinitionId: string;
7022
- stepDefinitionVersion: number;
7023
- stepKey: string;
7024
- position: number;
7025
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
7026
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7027
- selectedStepExecutionId: string | unknown;
7028
- selectedStepExecutionResultId: string | unknown;
7029
- acceptedByUserId: string | unknown;
7030
- acceptedAt: string | unknown;
7031
- acceptanceReason: string | unknown;
7032
- attemptCount: number;
7033
- lastAttemptedAt: string | unknown;
7034
- inputJson: unknown;
7035
- outputJson: unknown;
7036
- attempts: Array<{
6818
+ attemptNumber: number;
6819
+ currentStepKey: string | unknown;
6820
+ startedAt: string | unknown;
6821
+ completedAt: string | unknown;
6822
+ routedToPipelineExecutionId: string | unknown;
6823
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6824
+ stepRuns: Array<{
7037
6825
  id: string;
7038
- linearPipelineStepRunId: string;
6826
+ linearPipelineExecutionAttemptId: string;
6827
+ linearPipelineStepDefinitionId: string;
6828
+ stepDefinitionId: string;
6829
+ stepDefinitionVersion: number;
6830
+ stepKey: string;
6831
+ position: number;
6832
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6833
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7039
6834
  stepExecutionId: string;
7040
- attemptNumber: number;
7041
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
7042
- evaluationId: string | unknown;
6835
+ stepExecutionResultId: string | unknown;
6836
+ inheritedFromStepRunId: string | unknown;
6837
+ acceptedByUserId: string | unknown;
6838
+ acceptedAt: string | unknown;
6839
+ acceptanceReason: string | unknown;
6840
+ inputJson: unknown;
6841
+ outputJson: unknown;
6842
+ evaluation: {
6843
+ id: string;
6844
+ linearPipelineExecutionAttemptId: string;
6845
+ linearPipelineStepRunId: string;
6846
+ stepExecutionId: string;
6847
+ stepExecutionResultId: string;
6848
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6849
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6850
+ factsSnapshotJson: {
6851
+ [key: string]: unknown;
6852
+ };
6853
+ ruleResultsJson: unknown;
6854
+ finalStatus: 'pass' | 'fail';
6855
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6856
+ finalPayloadJson: {
6857
+ [key: string]: unknown;
6858
+ } | unknown;
6859
+ createdAt: string;
6860
+ } | unknown;
7043
6861
  createdAt: string;
7044
- completedAt: string | unknown;
6862
+ updatedAt: string;
7045
6863
  }>;
7046
- evaluations: Array<{
6864
+ events: Array<{
7047
6865
  id: string;
7048
- linearPipelineExecutionId: string;
7049
- linearPipelineStepRunId: string;
7050
- linearPipelineStepRunAttemptId: string;
7051
- stepExecutionId: string;
7052
- stepExecutionResultId: string;
7053
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7054
- linearPipelineStepAdvancementPolicyDefinitionId: string;
7055
- factsSnapshotJson: {
7056
- [key: string]: unknown;
7057
- };
7058
- ruleResultsJson: unknown;
7059
- finalStatus: 'pass' | 'fail';
7060
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
7061
- finalPayloadJson: {
6866
+ linearPipelineExecutionAttemptId: string;
6867
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
6868
+ payloadJson: {
7062
6869
  [key: string]: unknown;
7063
6870
  } | unknown;
7064
6871
  createdAt: string;
@@ -7066,17 +6873,6 @@ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses =
7066
6873
  createdAt: string;
7067
6874
  updatedAt: string;
7068
6875
  }>;
7069
- events: Array<{
7070
- id: string;
7071
- linearPipelineExecutionId: string;
7072
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
7073
- payloadJson: {
7074
- [key: string]: unknown;
7075
- } | unknown;
7076
- createdAt: string;
7077
- }>;
7078
- startedAt: string | unknown;
7079
- completedAt: string | unknown;
7080
6876
  createdAt: string;
7081
6877
  updatedAt: string;
7082
6878
  };
@@ -7180,56 +6976,66 @@ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinition
7180
6976
  200: Array<{
7181
6977
  id: string;
7182
6978
  projectId: string;
6979
+ workItemId: string;
7183
6980
  linearPipelineDefinitionId: string;
7184
- linearPipelineDefinitionVersion: number;
7185
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
7186
- currentStepKey: string | unknown;
6981
+ linearPipelineDefinitionVersionId: string;
6982
+ definitionStepCount: number;
7187
6983
  inputJson: unknown;
7188
- stepRuns: Array<{
6984
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6985
+ attempts: Array<{
7189
6986
  id: string;
7190
6987
  linearPipelineExecutionId: string;
7191
- linearPipelineStepDefinitionId: string;
7192
- stepDefinitionId: string;
7193
- stepDefinitionVersion: number;
7194
- stepKey: string;
7195
- position: number;
7196
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'needs_review' | 'skipped' | 'cancelled';
7197
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7198
- selectedStepExecutionId: string | unknown;
7199
- selectedStepExecutionResultId: string | unknown;
7200
- acceptedByUserId: string | unknown;
7201
- acceptedAt: string | unknown;
7202
- acceptanceReason: string | unknown;
7203
- attemptCount: number;
7204
- lastAttemptedAt: string | unknown;
7205
- inputJson: unknown;
7206
- outputJson: unknown;
7207
- attempts: Array<{
6988
+ attemptNumber: number;
6989
+ currentStepKey: string | unknown;
6990
+ startedAt: string | unknown;
6991
+ completedAt: string | unknown;
6992
+ routedToPipelineExecutionId: string | unknown;
6993
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6994
+ stepRuns: Array<{
7208
6995
  id: string;
7209
- linearPipelineStepRunId: string;
6996
+ linearPipelineExecutionAttemptId: string;
6997
+ linearPipelineStepDefinitionId: string;
6998
+ stepDefinitionId: string;
6999
+ stepDefinitionVersion: number;
7000
+ stepKey: string;
7001
+ position: number;
7002
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
7003
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7210
7004
  stepExecutionId: string;
7211
- attemptNumber: number;
7212
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
7213
- evaluationId: string | unknown;
7005
+ stepExecutionResultId: string | unknown;
7006
+ inheritedFromStepRunId: string | unknown;
7007
+ acceptedByUserId: string | unknown;
7008
+ acceptedAt: string | unknown;
7009
+ acceptanceReason: string | unknown;
7010
+ inputJson: unknown;
7011
+ outputJson: unknown;
7012
+ evaluation: {
7013
+ id: string;
7014
+ linearPipelineExecutionAttemptId: string;
7015
+ linearPipelineStepRunId: string;
7016
+ stepExecutionId: string;
7017
+ stepExecutionResultId: string;
7018
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7019
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
7020
+ factsSnapshotJson: {
7021
+ [key: string]: unknown;
7022
+ };
7023
+ ruleResultsJson: unknown;
7024
+ finalStatus: 'pass' | 'fail';
7025
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
7026
+ finalPayloadJson: {
7027
+ [key: string]: unknown;
7028
+ } | unknown;
7029
+ createdAt: string;
7030
+ } | unknown;
7214
7031
  createdAt: string;
7215
- completedAt: string | unknown;
7032
+ updatedAt: string;
7216
7033
  }>;
7217
- evaluations: Array<{
7034
+ events: Array<{
7218
7035
  id: string;
7219
- linearPipelineExecutionId: string;
7220
- linearPipelineStepRunId: string;
7221
- linearPipelineStepRunAttemptId: string;
7222
- stepExecutionId: string;
7223
- stepExecutionResultId: string;
7224
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7225
- linearPipelineStepAdvancementPolicyDefinitionId: string;
7226
- factsSnapshotJson: {
7227
- [key: string]: unknown;
7228
- };
7229
- ruleResultsJson: unknown;
7230
- finalStatus: 'pass' | 'fail';
7231
- finalAction: 'continue' | 'block' | 'needs_review' | 'complete';
7232
- finalPayloadJson: {
7036
+ linearPipelineExecutionAttemptId: string;
7037
+ type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_routed' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_routed' | 'pipeline_cancelled';
7038
+ payloadJson: {
7233
7039
  [key: string]: unknown;
7234
7040
  } | unknown;
7235
7041
  createdAt: string;
@@ -7237,17 +7043,6 @@ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinition
7237
7043
  createdAt: string;
7238
7044
  updatedAt: string;
7239
7045
  }>;
7240
- events: Array<{
7241
- id: string;
7242
- linearPipelineExecutionId: string;
7243
- type: 'pipeline_queued' | 'pipeline_started' | 'step_run_created' | 'step_attempt_queued' | 'step_attempt_started' | 'step_attempt_succeeded' | 'step_attempt_failed' | 'step_evaluated' | 'step_satisfied_by_policy' | 'step_satisfied_by_user' | 'step_unsatisfied_by_policy' | 'step_retriggered' | 'step_blocked' | 'step_needs_review' | 'pipeline_succeeded' | 'pipeline_failed' | 'pipeline_blocked' | 'pipeline_needs_review' | 'pipeline_cancelled';
7244
- payloadJson: {
7245
- [key: string]: unknown;
7246
- } | unknown;
7247
- createdAt: string;
7248
- }>;
7249
- startedAt: string | unknown;
7250
- completedAt: string | unknown;
7251
7046
  createdAt: string;
7252
7047
  updatedAt: string;
7253
7048
  }>;