@boboddy/sdk 0.1.11-alpha → 0.1.13-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.
@@ -1,53 +1,53 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
- export type DeleteApiApiAuth__Data = {
4
+ export type DeleteApiAuth__Data = {
5
5
  body?: never;
6
6
  path?: never;
7
7
  query?: never;
8
- url: '/api/api/auth/*';
8
+ url: '/api/auth/*';
9
9
  };
10
- export type GetApiApiAuth__Data = {
10
+ export type GetApiAuth__Data = {
11
11
  body?: never;
12
12
  path?: never;
13
13
  query?: never;
14
- url: '/api/api/auth/*';
14
+ url: '/api/auth/*';
15
15
  };
16
- export type HeadApiApiAuth__Data = {
16
+ export type HeadApiAuth__Data = {
17
17
  body?: never;
18
18
  path?: never;
19
19
  query?: never;
20
- url: '/api/api/auth/*';
20
+ url: '/api/auth/*';
21
21
  };
22
- export type OptionsApiApiAuth__Data = {
22
+ export type OptionsApiAuth__Data = {
23
23
  body?: never;
24
24
  path?: never;
25
25
  query?: never;
26
- url: '/api/api/auth/*';
26
+ url: '/api/auth/*';
27
27
  };
28
- export type PatchApiApiAuth__Data = {
28
+ export type PatchApiAuth__Data = {
29
29
  body?: never;
30
30
  path?: never;
31
31
  query?: never;
32
- url: '/api/api/auth/*';
32
+ url: '/api/auth/*';
33
33
  };
34
- export type PostApiApiAuth__Data = {
34
+ export type PostApiAuth__Data = {
35
35
  body?: never;
36
36
  path?: never;
37
37
  query?: never;
38
- url: '/api/api/auth/*';
38
+ url: '/api/auth/*';
39
39
  };
40
- export type PutApiApiAuth__Data = {
40
+ export type PutApiAuth__Data = {
41
41
  body?: never;
42
42
  path?: never;
43
43
  query?: never;
44
- url: '/api/api/auth/*';
44
+ url: '/api/auth/*';
45
45
  };
46
- export type TraceApiApiAuth__Data = {
46
+ export type TraceApiAuth__Data = {
47
47
  body?: never;
48
48
  path?: never;
49
49
  query?: never;
50
- url: '/api/api/auth/*';
50
+ url: '/api/auth/*';
51
51
  };
52
52
  export type GetApiProjectsData = {
53
53
  body?: never;
@@ -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
  };
@@ -2864,9 +2855,7 @@ export type GetApiStepExecutionsByStepExecutionIdResponse = GetApiStepExecutions
2864
2855
  export type GetApiLinearPipelineDefinitionsData = {
2865
2856
  body?: never;
2866
2857
  path?: never;
2867
- query: {
2868
- projectId: string;
2869
- };
2858
+ query?: never;
2870
2859
  url: '/api/linear-pipeline-definitions';
2871
2860
  };
2872
2861
  export type GetApiLinearPipelineDefinitionsErrors = {
@@ -2946,8 +2935,8 @@ export type GetApiLinearPipelineDefinitionsResponses = {
2946
2935
  key: string;
2947
2936
  name: string;
2948
2937
  description: string | unknown;
2949
- version: number;
2950
2938
  status: 'draft' | 'active' | 'archived';
2939
+ archivedAt: string | unknown;
2951
2940
  stepDefinitions: Array<{
2952
2941
  id: string;
2953
2942
  linearPipelineDefinitionId: string;
@@ -3025,11 +3014,11 @@ export type GetApiLinearPipelineDefinitionsResponses = {
3025
3014
  } | string | number | undefined;
3026
3015
  }>;
3027
3016
  };
3028
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3017
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3029
3018
  defaultEventParamsJson: {
3030
3019
  [key: string]: unknown;
3031
3020
  } | unknown;
3032
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3021
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3033
3022
  createdAt: string;
3034
3023
  updatedAt: string;
3035
3024
  };
@@ -3059,7 +3048,6 @@ export type PostApiLinearPipelineDefinitionsData = {
3059
3048
  key: string;
3060
3049
  name: string;
3061
3050
  description: string | unknown;
3062
- version: number;
3063
3051
  status: 'draft' | 'active' | 'archived';
3064
3052
  stepDefinitions: Array<{
3065
3053
  stepDefinitionId: string;
@@ -3134,11 +3122,11 @@ export type PostApiLinearPipelineDefinitionsData = {
3134
3122
  } | string | number | undefined;
3135
3123
  }>;
3136
3124
  };
3137
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3125
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3138
3126
  defaultEventParamsJson: {
3139
3127
  [key: string]: unknown;
3140
3128
  } | unknown;
3141
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3129
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3142
3130
  };
3143
3131
  computedSignalDefinitions: Array<{
3144
3132
  key: string;
@@ -3280,8 +3268,8 @@ export type PostApiLinearPipelineDefinitionsResponses = {
3280
3268
  key: string;
3281
3269
  name: string;
3282
3270
  description: string | unknown;
3283
- version: number;
3284
3271
  status: 'draft' | 'active' | 'archived';
3272
+ archivedAt: string | unknown;
3285
3273
  stepDefinitions: Array<{
3286
3274
  id: string;
3287
3275
  linearPipelineDefinitionId: 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,8 +3553,8 @@ 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';
3557
+ archivedAt: string | unknown;
3571
3558
  stepDefinitions: Array<{
3572
3559
  id: string;
3573
3560
  linearPipelineDefinitionId: string;
@@ -3645,11 +3632,11 @@ export type PutApiLinearPipelineDefinitionsResponses = {
3645
3632
  } | string | number | undefined;
3646
3633
  }>;
3647
3634
  };
3648
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3635
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3649
3636
  defaultEventParamsJson: {
3650
3637
  [key: string]: unknown;
3651
3638
  } | unknown;
3652
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3639
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3653
3640
  createdAt: string;
3654
3641
  updatedAt: string;
3655
3642
  };
@@ -3790,8 +3777,8 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses
3790
3777
  key: string;
3791
3778
  name: string;
3792
3779
  description: string | unknown;
3793
- version: number;
3794
3780
  status: 'draft' | 'active' | 'archived';
3781
+ archivedAt: string | unknown;
3795
3782
  stepDefinitions: Array<{
3796
3783
  id: string;
3797
3784
  linearPipelineDefinitionId: string;
@@ -3869,11 +3856,11 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses
3869
3856
  } | string | number | undefined;
3870
3857
  }>;
3871
3858
  };
3872
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
3859
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3873
3860
  defaultEventParamsJson: {
3874
3861
  [key: string]: unknown;
3875
3862
  } | unknown;
3876
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
3863
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3877
3864
  createdAt: string;
3878
3865
  updatedAt: string;
3879
3866
  };
@@ -3998,8 +3985,8 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveRe
3998
3985
  key: string;
3999
3986
  name: string;
4000
3987
  description: string | unknown;
4001
- version: number;
4002
3988
  status: 'draft' | 'active' | 'archived';
3989
+ archivedAt: string | unknown;
4003
3990
  stepDefinitions: Array<{
4004
3991
  id: string;
4005
3992
  linearPipelineDefinitionId: string;
@@ -4077,11 +4064,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveRe
4077
4064
  } | string | number | undefined;
4078
4065
  }>;
4079
4066
  };
4080
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4067
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4081
4068
  defaultEventParamsJson: {
4082
4069
  [key: string]: unknown;
4083
4070
  } | unknown;
4084
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4071
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4085
4072
  createdAt: string;
4086
4073
  updatedAt: string;
4087
4074
  };
@@ -4105,6 +4092,214 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveRe
4105
4092
  };
4106
4093
  };
4107
4094
  export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses];
4095
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveData = {
4096
+ body?: never;
4097
+ path: {
4098
+ linearPipelineDefinitionId: string;
4099
+ };
4100
+ query?: never;
4101
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/unarchive';
4102
+ };
4103
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors = {
4104
+ /**
4105
+ * Response for status 401
4106
+ */
4107
+ 401: {
4108
+ type: string;
4109
+ title: string;
4110
+ status: number;
4111
+ detail?: string;
4112
+ instance?: string;
4113
+ code?: string;
4114
+ errors?: Array<{
4115
+ path: string;
4116
+ message: string;
4117
+ summary?: string;
4118
+ }>;
4119
+ };
4120
+ /**
4121
+ * Response for status 403
4122
+ */
4123
+ 403: {
4124
+ type: string;
4125
+ title: string;
4126
+ status: number;
4127
+ detail?: string;
4128
+ instance?: string;
4129
+ code?: string;
4130
+ errors?: Array<{
4131
+ path: string;
4132
+ message: string;
4133
+ summary?: string;
4134
+ }>;
4135
+ };
4136
+ /**
4137
+ * Response for status 404
4138
+ */
4139
+ 404: {
4140
+ type: string;
4141
+ title: string;
4142
+ status: number;
4143
+ detail?: string;
4144
+ instance?: string;
4145
+ code?: string;
4146
+ errors?: Array<{
4147
+ path: string;
4148
+ message: string;
4149
+ summary?: string;
4150
+ }>;
4151
+ };
4152
+ /**
4153
+ * Response for status 422
4154
+ */
4155
+ 422: {
4156
+ type: string;
4157
+ title: string;
4158
+ status: number;
4159
+ detail?: string;
4160
+ instance?: string;
4161
+ code?: string;
4162
+ errors?: Array<{
4163
+ path: string;
4164
+ message: string;
4165
+ summary?: string;
4166
+ }>;
4167
+ };
4168
+ /**
4169
+ * Response for status 500
4170
+ */
4171
+ 500: {
4172
+ type: string;
4173
+ title: string;
4174
+ status: number;
4175
+ detail?: string;
4176
+ instance?: string;
4177
+ code?: string;
4178
+ errors?: Array<{
4179
+ path: string;
4180
+ message: string;
4181
+ summary?: string;
4182
+ }>;
4183
+ };
4184
+ };
4185
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors];
4186
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses = {
4187
+ /**
4188
+ * Response for status 200
4189
+ */
4190
+ 200: {
4191
+ id: string;
4192
+ projectId: string;
4193
+ key: string;
4194
+ name: string;
4195
+ description: string | unknown;
4196
+ status: 'draft' | 'active' | 'archived';
4197
+ archivedAt: string | unknown;
4198
+ stepDefinitions: Array<{
4199
+ id: string;
4200
+ linearPipelineDefinitionId: string;
4201
+ stepDefinitionId: string;
4202
+ stepDefinitionVersion: number;
4203
+ key: string;
4204
+ name: string;
4205
+ description: string | unknown;
4206
+ position: number;
4207
+ inputBindingsJson: {
4208
+ [key: string]: {
4209
+ source: string;
4210
+ path: string | unknown;
4211
+ } | {
4212
+ source: string;
4213
+ stepKey: string;
4214
+ path: string | unknown;
4215
+ } | {
4216
+ source: string;
4217
+ stepKey: string;
4218
+ signalKey: string;
4219
+ } | {
4220
+ source: string;
4221
+ value: unknown;
4222
+ };
4223
+ } | unknown;
4224
+ timeoutSeconds: number | unknown;
4225
+ retryPolicyJson: {
4226
+ [key: string]: unknown;
4227
+ } | unknown;
4228
+ advancementPolicyDefinition: {
4229
+ id: string;
4230
+ linearPipelineStepDefinitionId: string;
4231
+ rulesJson: {
4232
+ rules: Array<{
4233
+ conditions: {
4234
+ [key: string]: unknown;
4235
+ };
4236
+ event: {
4237
+ type: string;
4238
+ params?: {
4239
+ [key: string]: unknown;
4240
+ };
4241
+ };
4242
+ name?: string;
4243
+ priority?: number;
4244
+ [key: string]: unknown | {
4245
+ [key: string]: unknown;
4246
+ } | {
4247
+ type: string;
4248
+ params?: {
4249
+ [key: string]: unknown;
4250
+ };
4251
+ } | string | number | undefined;
4252
+ }>;
4253
+ [key: string]: unknown | Array<{
4254
+ conditions: {
4255
+ [key: string]: unknown;
4256
+ };
4257
+ event: {
4258
+ type: string;
4259
+ params?: {
4260
+ [key: string]: unknown;
4261
+ };
4262
+ };
4263
+ name?: string;
4264
+ priority?: number;
4265
+ [key: string]: unknown | {
4266
+ [key: string]: unknown;
4267
+ } | {
4268
+ type: string;
4269
+ params?: {
4270
+ [key: string]: unknown;
4271
+ };
4272
+ } | string | number | undefined;
4273
+ }>;
4274
+ };
4275
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4276
+ defaultEventParamsJson: {
4277
+ [key: string]: unknown;
4278
+ } | unknown;
4279
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4280
+ createdAt: string;
4281
+ updatedAt: string;
4282
+ };
4283
+ computedSignalDefinitions: Array<{
4284
+ id: string;
4285
+ key: string;
4286
+ type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
4287
+ inputSignalKeys: Array<string>;
4288
+ configJson: {
4289
+ [key: string]: unknown;
4290
+ } | unknown;
4291
+ availableWhenResultStatusIn: Array<string> | unknown;
4292
+ createdAt: string;
4293
+ updatedAt: string;
4294
+ }>;
4295
+ createdAt: string;
4296
+ updatedAt: string;
4297
+ }>;
4298
+ createdAt: string;
4299
+ updatedAt: string;
4300
+ };
4301
+ };
4302
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses];
4108
4303
  export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsData = {
4109
4304
  body: {
4110
4305
  stepDefinitionId: string;
@@ -4179,11 +4374,11 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsDat
4179
4374
  } | string | number | undefined;
4180
4375
  }>;
4181
4376
  };
4182
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4377
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4183
4378
  defaultEventParamsJson: {
4184
4379
  [key: string]: unknown;
4185
4380
  } | unknown;
4186
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4381
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4187
4382
  };
4188
4383
  computedSignalDefinitions: Array<{
4189
4384
  key: string;
@@ -4294,8 +4489,8 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsRes
4294
4489
  key: string;
4295
4490
  name: string;
4296
4491
  description: string | unknown;
4297
- version: number;
4298
4492
  status: 'draft' | 'active' | 'archived';
4493
+ archivedAt: string | unknown;
4299
4494
  stepDefinitions: Array<{
4300
4495
  id: string;
4301
4496
  linearPipelineDefinitionId: string;
@@ -4373,11 +4568,11 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsRes
4373
4568
  } | string | number | undefined;
4374
4569
  }>;
4375
4570
  };
4376
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4571
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4377
4572
  defaultEventParamsJson: {
4378
4573
  [key: string]: unknown;
4379
4574
  } | unknown;
4380
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4575
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4381
4576
  createdAt: string;
4382
4577
  updatedAt: string;
4383
4578
  };
@@ -4503,8 +4698,8 @@ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsB
4503
4698
  key: string;
4504
4699
  name: string;
4505
4700
  description: string | unknown;
4506
- version: number;
4507
4701
  status: 'draft' | 'active' | 'archived';
4702
+ archivedAt: string | unknown;
4508
4703
  stepDefinitions: Array<{
4509
4704
  id: string;
4510
4705
  linearPipelineDefinitionId: string;
@@ -4582,11 +4777,11 @@ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsB
4582
4777
  } | string | number | undefined;
4583
4778
  }>;
4584
4779
  };
4585
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4780
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4586
4781
  defaultEventParamsJson: {
4587
4782
  [key: string]: unknown;
4588
4783
  } | unknown;
4589
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4784
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4590
4785
  createdAt: string;
4591
4786
  updatedAt: string;
4592
4787
  };
@@ -4684,11 +4879,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4684
4879
  } | string | number | undefined;
4685
4880
  }>;
4686
4881
  };
4687
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
4882
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4688
4883
  defaultEventParamsJson: {
4689
4884
  [key: string]: unknown;
4690
4885
  } | unknown;
4691
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
4886
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4692
4887
  };
4693
4888
  computedSignalDefinitions: Array<{
4694
4889
  key: string;
@@ -4800,8 +4995,8 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4800
4995
  key: string;
4801
4996
  name: string;
4802
4997
  description: string | unknown;
4803
- version: number;
4804
4998
  status: 'draft' | 'active' | 'archived';
4999
+ archivedAt: string | unknown;
4805
5000
  stepDefinitions: Array<{
4806
5001
  id: string;
4807
5002
  linearPipelineDefinitionId: string;
@@ -4879,11 +5074,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4879
5074
  } | string | number | undefined;
4880
5075
  }>;
4881
5076
  };
4882
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
5077
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4883
5078
  defaultEventParamsJson: {
4884
5079
  [key: string]: unknown;
4885
5080
  } | unknown;
4886
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
5081
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4887
5082
  createdAt: string;
4888
5083
  updatedAt: string;
4889
5084
  };
@@ -4953,9 +5148,9 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
4953
5148
  } | string | number | undefined;
4954
5149
  }>;
4955
5150
  };
4956
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
5151
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4957
5152
  defaultEventParamsJson: unknown;
4958
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
5153
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4959
5154
  };
4960
5155
  path: {
4961
5156
  linearPipelineDefinitionId: string;
@@ -5057,8 +5252,8 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5057
5252
  key: string;
5058
5253
  name: string;
5059
5254
  description: string | unknown;
5060
- version: number;
5061
5255
  status: 'draft' | 'active' | 'archived';
5256
+ archivedAt: string | unknown;
5062
5257
  stepDefinitions: Array<{
5063
5258
  id: string;
5064
5259
  linearPipelineDefinitionId: string;
@@ -5136,11 +5331,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5136
5331
  } | string | number | undefined;
5137
5332
  }>;
5138
5333
  };
5139
- defaultEventType: 'continue' | 'block' | 'needs_review' | 'complete';
5334
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5140
5335
  defaultEventParamsJson: {
5141
5336
  [key: string]: unknown;
5142
5337
  } | unknown;
5143
- allowedEventTypes: Array<'continue' | 'block' | 'needs_review' | 'complete'>;
5338
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
5144
5339
  createdAt: string;
5145
5340
  updatedAt: string;
5146
5341
  };
@@ -5246,56 +5441,66 @@ export type GetApiLinearPipelineExecutionsResponses = {
5246
5441
  200: Array<{
5247
5442
  id: string;
5248
5443
  projectId: string;
5444
+ workItemId: string;
5249
5445
  linearPipelineDefinitionId: string;
5250
- linearPipelineDefinitionVersion: number;
5251
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5252
- currentStepKey: string | unknown;
5446
+ linearPipelineDefinitionVersionId: string;
5447
+ definitionStepCount: number;
5253
5448
  inputJson: unknown;
5254
- stepRuns: Array<{
5449
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5450
+ attempts: Array<{
5255
5451
  id: string;
5256
5452
  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<{
5453
+ attemptNumber: number;
5454
+ currentStepKey: string | unknown;
5455
+ startedAt: string | unknown;
5456
+ completedAt: string | unknown;
5457
+ routedToPipelineExecutionId: string | unknown;
5458
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5459
+ stepRuns: Array<{
5274
5460
  id: string;
5275
- linearPipelineStepRunId: string;
5461
+ linearPipelineExecutionAttemptId: string;
5462
+ linearPipelineStepDefinitionId: string;
5463
+ stepDefinitionId: string;
5464
+ stepDefinitionVersion: number;
5465
+ stepKey: string;
5466
+ position: number;
5467
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5468
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5276
5469
  stepExecutionId: string;
5277
- attemptNumber: number;
5278
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5279
- evaluationId: string | unknown;
5470
+ stepExecutionResultId: string | unknown;
5471
+ inheritedFromStepRunId: string | unknown;
5472
+ acceptedByUserId: string | unknown;
5473
+ acceptedAt: string | unknown;
5474
+ acceptanceReason: string | unknown;
5475
+ inputJson: unknown;
5476
+ outputJson: unknown;
5477
+ evaluation: {
5478
+ id: string;
5479
+ linearPipelineExecutionAttemptId: string;
5480
+ linearPipelineStepRunId: string;
5481
+ stepExecutionId: string;
5482
+ stepExecutionResultId: string;
5483
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5484
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5485
+ factsSnapshotJson: {
5486
+ [key: string]: unknown;
5487
+ };
5488
+ ruleResultsJson: unknown;
5489
+ finalStatus: 'pass' | 'fail';
5490
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5491
+ finalPayloadJson: {
5492
+ [key: string]: unknown;
5493
+ } | unknown;
5494
+ createdAt: string;
5495
+ } | unknown;
5280
5496
  createdAt: string;
5281
- completedAt: string | unknown;
5497
+ updatedAt: string;
5282
5498
  }>;
5283
- evaluations: Array<{
5499
+ events: Array<{
5284
5500
  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: {
5501
+ linearPipelineExecutionAttemptId: string;
5502
+ 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';
5503
+ payloadJson: {
5299
5504
  [key: string]: unknown;
5300
5505
  } | unknown;
5301
5506
  createdAt: string;
@@ -5303,17 +5508,6 @@ export type GetApiLinearPipelineExecutionsResponses = {
5303
5508
  createdAt: string;
5304
5509
  updatedAt: string;
5305
5510
  }>;
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
5511
  createdAt: string;
5318
5512
  updatedAt: string;
5319
5513
  }>;
@@ -5322,6 +5516,7 @@ export type GetApiLinearPipelineExecutionsResponse = GetApiLinearPipelineExecuti
5322
5516
  export type PostApiLinearPipelineExecutionsData = {
5323
5517
  body: {
5324
5518
  projectId: string;
5519
+ workItemId: string;
5325
5520
  linearPipelineDefinitionId: string;
5326
5521
  inputJson?: unknown;
5327
5522
  };
@@ -5451,56 +5646,66 @@ export type PostApiLinearPipelineExecutionsResponses = {
5451
5646
  200: {
5452
5647
  id: string;
5453
5648
  projectId: string;
5649
+ workItemId: string;
5454
5650
  linearPipelineDefinitionId: string;
5455
- linearPipelineDefinitionVersion: number;
5456
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5457
- currentStepKey: string | unknown;
5651
+ linearPipelineDefinitionVersionId: string;
5652
+ definitionStepCount: number;
5458
5653
  inputJson: unknown;
5459
- stepRuns: Array<{
5654
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5655
+ attempts: Array<{
5460
5656
  id: string;
5461
5657
  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<{
5658
+ attemptNumber: number;
5659
+ currentStepKey: string | unknown;
5660
+ startedAt: string | unknown;
5661
+ completedAt: string | unknown;
5662
+ routedToPipelineExecutionId: string | unknown;
5663
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5664
+ stepRuns: Array<{
5479
5665
  id: string;
5480
- linearPipelineStepRunId: string;
5666
+ linearPipelineExecutionAttemptId: string;
5667
+ linearPipelineStepDefinitionId: string;
5668
+ stepDefinitionId: string;
5669
+ stepDefinitionVersion: number;
5670
+ stepKey: string;
5671
+ position: number;
5672
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5673
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5481
5674
  stepExecutionId: string;
5482
- attemptNumber: number;
5483
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5484
- evaluationId: string | unknown;
5675
+ stepExecutionResultId: string | unknown;
5676
+ inheritedFromStepRunId: string | unknown;
5677
+ acceptedByUserId: string | unknown;
5678
+ acceptedAt: string | unknown;
5679
+ acceptanceReason: string | unknown;
5680
+ inputJson: unknown;
5681
+ outputJson: unknown;
5682
+ evaluation: {
5683
+ id: string;
5684
+ linearPipelineExecutionAttemptId: string;
5685
+ linearPipelineStepRunId: string;
5686
+ stepExecutionId: string;
5687
+ stepExecutionResultId: string;
5688
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5689
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5690
+ factsSnapshotJson: {
5691
+ [key: string]: unknown;
5692
+ };
5693
+ ruleResultsJson: unknown;
5694
+ finalStatus: 'pass' | 'fail';
5695
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5696
+ finalPayloadJson: {
5697
+ [key: string]: unknown;
5698
+ } | unknown;
5699
+ createdAt: string;
5700
+ } | unknown;
5485
5701
  createdAt: string;
5486
- completedAt: string | unknown;
5702
+ updatedAt: string;
5487
5703
  }>;
5488
- evaluations: Array<{
5704
+ events: Array<{
5489
5705
  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: {
5706
+ linearPipelineExecutionAttemptId: string;
5707
+ 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';
5708
+ payloadJson: {
5504
5709
  [key: string]: unknown;
5505
5710
  } | unknown;
5506
5711
  createdAt: string;
@@ -5508,17 +5713,6 @@ export type PostApiLinearPipelineExecutionsResponses = {
5508
5713
  createdAt: string;
5509
5714
  updatedAt: string;
5510
5715
  }>;
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
5716
  createdAt: string;
5523
5717
  updatedAt: string;
5524
5718
  };
@@ -5622,56 +5816,66 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartRespon
5622
5816
  200: {
5623
5817
  id: string;
5624
5818
  projectId: string;
5819
+ workItemId: string;
5625
5820
  linearPipelineDefinitionId: string;
5626
- linearPipelineDefinitionVersion: number;
5627
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5628
- currentStepKey: string | unknown;
5821
+ linearPipelineDefinitionVersionId: string;
5822
+ definitionStepCount: number;
5629
5823
  inputJson: unknown;
5630
- stepRuns: Array<{
5824
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5825
+ attempts: Array<{
5631
5826
  id: string;
5632
5827
  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<{
5828
+ attemptNumber: number;
5829
+ currentStepKey: string | unknown;
5830
+ startedAt: string | unknown;
5831
+ completedAt: string | unknown;
5832
+ routedToPipelineExecutionId: string | unknown;
5833
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5834
+ stepRuns: Array<{
5650
5835
  id: string;
5651
- linearPipelineStepRunId: string;
5836
+ linearPipelineExecutionAttemptId: string;
5837
+ linearPipelineStepDefinitionId: string;
5838
+ stepDefinitionId: string;
5839
+ stepDefinitionVersion: number;
5840
+ stepKey: string;
5841
+ position: number;
5842
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
5843
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5652
5844
  stepExecutionId: string;
5653
- attemptNumber: number;
5654
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5655
- evaluationId: string | unknown;
5845
+ stepExecutionResultId: string | unknown;
5846
+ inheritedFromStepRunId: string | unknown;
5847
+ acceptedByUserId: string | unknown;
5848
+ acceptedAt: string | unknown;
5849
+ acceptanceReason: string | unknown;
5850
+ inputJson: unknown;
5851
+ outputJson: unknown;
5852
+ evaluation: {
5853
+ id: string;
5854
+ linearPipelineExecutionAttemptId: string;
5855
+ linearPipelineStepRunId: string;
5856
+ stepExecutionId: string;
5857
+ stepExecutionResultId: string;
5858
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
5859
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
5860
+ factsSnapshotJson: {
5861
+ [key: string]: unknown;
5862
+ };
5863
+ ruleResultsJson: unknown;
5864
+ finalStatus: 'pass' | 'fail';
5865
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
5866
+ finalPayloadJson: {
5867
+ [key: string]: unknown;
5868
+ } | unknown;
5869
+ createdAt: string;
5870
+ } | unknown;
5656
5871
  createdAt: string;
5657
- completedAt: string | unknown;
5872
+ updatedAt: string;
5658
5873
  }>;
5659
- evaluations: Array<{
5874
+ events: Array<{
5660
5875
  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: {
5876
+ linearPipelineExecutionAttemptId: string;
5877
+ 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';
5878
+ payloadJson: {
5675
5879
  [key: string]: unknown;
5676
5880
  } | unknown;
5677
5881
  createdAt: string;
@@ -5679,17 +5883,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartRespon
5679
5883
  createdAt: string;
5680
5884
  updatedAt: string;
5681
5885
  }>;
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
5886
  createdAt: string;
5694
5887
  updatedAt: string;
5695
5888
  };
@@ -5793,56 +5986,66 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
5793
5986
  200: {
5794
5987
  id: string;
5795
5988
  projectId: string;
5989
+ workItemId: string;
5796
5990
  linearPipelineDefinitionId: string;
5797
- linearPipelineDefinitionVersion: number;
5798
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5799
- currentStepKey: string | unknown;
5991
+ linearPipelineDefinitionVersionId: string;
5992
+ definitionStepCount: number;
5800
5993
  inputJson: unknown;
5801
- stepRuns: Array<{
5994
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
5995
+ attempts: Array<{
5802
5996
  id: string;
5803
5997
  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<{
5998
+ attemptNumber: number;
5999
+ currentStepKey: string | unknown;
6000
+ startedAt: string | unknown;
6001
+ completedAt: string | unknown;
6002
+ routedToPipelineExecutionId: string | unknown;
6003
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6004
+ stepRuns: Array<{
5821
6005
  id: string;
5822
- linearPipelineStepRunId: string;
6006
+ linearPipelineExecutionAttemptId: string;
6007
+ linearPipelineStepDefinitionId: string;
6008
+ stepDefinitionId: string;
6009
+ stepDefinitionVersion: number;
6010
+ stepKey: string;
6011
+ position: number;
6012
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6013
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5823
6014
  stepExecutionId: string;
5824
- attemptNumber: number;
5825
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5826
- evaluationId: string | unknown;
6015
+ stepExecutionResultId: string | unknown;
6016
+ inheritedFromStepRunId: string | unknown;
6017
+ acceptedByUserId: string | unknown;
6018
+ acceptedAt: string | unknown;
6019
+ acceptanceReason: string | unknown;
6020
+ inputJson: unknown;
6021
+ outputJson: unknown;
6022
+ evaluation: {
6023
+ id: string;
6024
+ linearPipelineExecutionAttemptId: string;
6025
+ linearPipelineStepRunId: string;
6026
+ stepExecutionId: string;
6027
+ stepExecutionResultId: string;
6028
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6029
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6030
+ factsSnapshotJson: {
6031
+ [key: string]: unknown;
6032
+ };
6033
+ ruleResultsJson: unknown;
6034
+ finalStatus: 'pass' | 'fail';
6035
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6036
+ finalPayloadJson: {
6037
+ [key: string]: unknown;
6038
+ } | unknown;
6039
+ createdAt: string;
6040
+ } | unknown;
5827
6041
  createdAt: string;
5828
- completedAt: string | unknown;
6042
+ updatedAt: string;
5829
6043
  }>;
5830
- evaluations: Array<{
6044
+ events: Array<{
5831
6045
  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: {
6046
+ linearPipelineExecutionAttemptId: string;
6047
+ 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';
6048
+ payloadJson: {
5846
6049
  [key: string]: unknown;
5847
6050
  } | unknown;
5848
6051
  createdAt: string;
@@ -5850,32 +6053,21 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
5850
6053
  createdAt: string;
5851
6054
  updatedAt: string;
5852
6055
  }>;
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
6056
  createdAt: string;
5865
6057
  updatedAt: string;
5866
6058
  };
5867
6059
  };
5868
6060
  export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses];
5869
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsData = {
6061
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningData = {
5870
6062
  body?: never;
5871
6063
  path: {
5872
6064
  linearPipelineExecutionId: string;
5873
6065
  linearPipelineStepRunId: string;
5874
6066
  };
5875
6067
  query?: never;
5876
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts';
6068
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/running';
5877
6069
  };
5878
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsErrors = {
6070
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors = {
5879
6071
  /**
5880
6072
  * Response for status 401
5881
6073
  */
@@ -5957,64 +6149,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
5957
6149
  }>;
5958
6150
  };
5959
6151
  };
5960
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsErrors];
5961
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponses = {
6152
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors];
6153
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses = {
5962
6154
  /**
5963
6155
  * Response for status 200
5964
6156
  */
5965
6157
  200: {
5966
6158
  id: string;
5967
6159
  projectId: string;
6160
+ workItemId: string;
5968
6161
  linearPipelineDefinitionId: string;
5969
- linearPipelineDefinitionVersion: number;
5970
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
5971
- currentStepKey: string | unknown;
6162
+ linearPipelineDefinitionVersionId: string;
6163
+ definitionStepCount: number;
5972
6164
  inputJson: unknown;
5973
- stepRuns: Array<{
6165
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6166
+ attempts: Array<{
5974
6167
  id: string;
5975
6168
  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<{
6169
+ attemptNumber: number;
6170
+ currentStepKey: string | unknown;
6171
+ startedAt: string | unknown;
6172
+ completedAt: string | unknown;
6173
+ routedToPipelineExecutionId: string | unknown;
6174
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6175
+ stepRuns: Array<{
5993
6176
  id: string;
5994
- linearPipelineStepRunId: string;
6177
+ linearPipelineExecutionAttemptId: string;
6178
+ linearPipelineStepDefinitionId: string;
6179
+ stepDefinitionId: string;
6180
+ stepDefinitionVersion: number;
6181
+ stepKey: string;
6182
+ position: number;
6183
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6184
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
5995
6185
  stepExecutionId: string;
5996
- attemptNumber: number;
5997
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
5998
- evaluationId: string | unknown;
6186
+ stepExecutionResultId: string | unknown;
6187
+ inheritedFromStepRunId: string | unknown;
6188
+ acceptedByUserId: string | unknown;
6189
+ acceptedAt: string | unknown;
6190
+ acceptanceReason: string | unknown;
6191
+ inputJson: unknown;
6192
+ outputJson: unknown;
6193
+ evaluation: {
6194
+ id: string;
6195
+ linearPipelineExecutionAttemptId: string;
6196
+ linearPipelineStepRunId: string;
6197
+ stepExecutionId: string;
6198
+ stepExecutionResultId: string;
6199
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6200
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6201
+ factsSnapshotJson: {
6202
+ [key: string]: unknown;
6203
+ };
6204
+ ruleResultsJson: unknown;
6205
+ finalStatus: 'pass' | 'fail';
6206
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6207
+ finalPayloadJson: {
6208
+ [key: string]: unknown;
6209
+ } | unknown;
6210
+ createdAt: string;
6211
+ } | unknown;
5999
6212
  createdAt: string;
6000
- completedAt: string | unknown;
6213
+ updatedAt: string;
6001
6214
  }>;
6002
- evaluations: Array<{
6215
+ events: Array<{
6003
6216
  id: string;
6004
- linearPipelineExecutionId: string;
6005
- linearPipelineStepRunId: string;
6006
- linearPipelineStepRunAttemptId: string;
6007
- 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: {
6217
+ linearPipelineExecutionAttemptId: string;
6218
+ 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';
6219
+ payloadJson: {
6018
6220
  [key: string]: unknown;
6019
6221
  } | unknown;
6020
6222
  createdAt: string;
@@ -6022,33 +6224,25 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6022
6224
  createdAt: string;
6023
6225
  updatedAt: string;
6024
6226
  }>;
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
6227
  createdAt: string;
6037
6228
  updatedAt: string;
6038
6229
  };
6039
6230
  };
6040
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsResponses];
6041
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningData = {
6042
- body?: never;
6231
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses];
6232
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsData = {
6233
+ body: {
6234
+ status: 'succeeded' | 'failed';
6235
+ resultJson: unknown;
6236
+ errorJson: unknown;
6237
+ };
6043
6238
  path: {
6044
6239
  linearPipelineExecutionId: string;
6045
6240
  linearPipelineStepRunId: string;
6046
- linearPipelineStepRunAttemptId: string;
6047
6241
  };
6048
6242
  query?: never;
6049
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/running';
6243
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/results';
6050
6244
  };
6051
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningErrors = {
6245
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors = {
6052
6246
  /**
6053
6247
  * Response for status 401
6054
6248
  */
@@ -6130,64 +6324,74 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByL
6130
6324
  }>;
6131
6325
  };
6132
6326
  };
6133
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningErrors];
6134
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponses = {
6327
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors];
6328
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses = {
6135
6329
  /**
6136
6330
  * Response for status 200
6137
6331
  */
6138
6332
  200: {
6139
6333
  id: string;
6140
6334
  projectId: string;
6335
+ workItemId: string;
6141
6336
  linearPipelineDefinitionId: string;
6142
- linearPipelineDefinitionVersion: number;
6143
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6144
- currentStepKey: string | unknown;
6337
+ linearPipelineDefinitionVersionId: string;
6338
+ definitionStepCount: number;
6145
6339
  inputJson: unknown;
6146
- stepRuns: Array<{
6340
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6341
+ attempts: Array<{
6147
6342
  id: string;
6148
6343
  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<{
6344
+ attemptNumber: number;
6345
+ currentStepKey: string | unknown;
6346
+ startedAt: string | unknown;
6347
+ completedAt: string | unknown;
6348
+ routedToPipelineExecutionId: string | unknown;
6349
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6350
+ stepRuns: Array<{
6166
6351
  id: string;
6167
- linearPipelineStepRunId: string;
6352
+ linearPipelineExecutionAttemptId: string;
6353
+ linearPipelineStepDefinitionId: string;
6354
+ stepDefinitionId: string;
6355
+ stepDefinitionVersion: number;
6356
+ stepKey: string;
6357
+ position: number;
6358
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6359
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6168
6360
  stepExecutionId: string;
6169
- attemptNumber: number;
6170
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6171
- evaluationId: string | unknown;
6361
+ stepExecutionResultId: string | unknown;
6362
+ inheritedFromStepRunId: string | unknown;
6363
+ acceptedByUserId: string | unknown;
6364
+ acceptedAt: string | unknown;
6365
+ acceptanceReason: string | unknown;
6366
+ inputJson: unknown;
6367
+ outputJson: unknown;
6368
+ evaluation: {
6369
+ id: string;
6370
+ linearPipelineExecutionAttemptId: string;
6371
+ linearPipelineStepRunId: string;
6372
+ stepExecutionId: string;
6373
+ stepExecutionResultId: string;
6374
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6375
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6376
+ factsSnapshotJson: {
6377
+ [key: string]: unknown;
6378
+ };
6379
+ ruleResultsJson: unknown;
6380
+ finalStatus: 'pass' | 'fail';
6381
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6382
+ finalPayloadJson: {
6383
+ [key: string]: unknown;
6384
+ } | unknown;
6385
+ createdAt: string;
6386
+ } | unknown;
6172
6387
  createdAt: string;
6173
- completedAt: string | unknown;
6388
+ updatedAt: string;
6174
6389
  }>;
6175
- evaluations: Array<{
6390
+ events: Array<{
6176
6391
  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: {
6392
+ linearPipelineExecutionAttemptId: string;
6393
+ 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';
6394
+ payloadJson: {
6191
6395
  [key: string]: unknown;
6192
6396
  } | unknown;
6193
6397
  createdAt: string;
@@ -6195,37 +6399,27 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByL
6195
6399
  createdAt: string;
6196
6400
  updatedAt: string;
6197
6401
  }>;
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
6402
  createdAt: string;
6210
6403
  updatedAt: string;
6211
6404
  };
6212
6405
  };
6213
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdRunningResponses];
6214
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsData = {
6406
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses];
6407
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptData = {
6215
6408
  body: {
6216
- status: 'succeeded' | 'failed';
6217
- resultJson: unknown;
6218
- errorJson: unknown;
6409
+ projectId: string;
6410
+ stepExecutionId: string;
6411
+ stepExecutionResultId: string;
6412
+ acceptedByUserId: string;
6413
+ acceptanceReason: string;
6219
6414
  };
6220
6415
  path: {
6221
6416
  linearPipelineExecutionId: string;
6222
6417
  linearPipelineStepRunId: string;
6223
- linearPipelineStepRunAttemptId: string;
6224
6418
  };
6225
6419
  query?: never;
6226
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/results';
6420
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/accept';
6227
6421
  };
6228
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsErrors = {
6422
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors = {
6229
6423
  /**
6230
6424
  * Response for status 401
6231
6425
  */
@@ -6307,64 +6501,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6307
6501
  }>;
6308
6502
  };
6309
6503
  };
6310
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsErrors];
6311
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponses = {
6504
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors];
6505
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses = {
6312
6506
  /**
6313
6507
  * Response for status 200
6314
6508
  */
6315
6509
  200: {
6316
6510
  id: string;
6317
6511
  projectId: string;
6512
+ workItemId: string;
6318
6513
  linearPipelineDefinitionId: string;
6319
- linearPipelineDefinitionVersion: number;
6320
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6321
- currentStepKey: string | unknown;
6514
+ linearPipelineDefinitionVersionId: string;
6515
+ definitionStepCount: number;
6322
6516
  inputJson: unknown;
6323
- stepRuns: Array<{
6517
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6518
+ attempts: Array<{
6324
6519
  id: string;
6325
6520
  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<{
6521
+ attemptNumber: number;
6522
+ currentStepKey: string | unknown;
6523
+ startedAt: string | unknown;
6524
+ completedAt: string | unknown;
6525
+ routedToPipelineExecutionId: string | unknown;
6526
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6527
+ stepRuns: Array<{
6343
6528
  id: string;
6344
- linearPipelineStepRunId: string;
6529
+ linearPipelineExecutionAttemptId: string;
6530
+ linearPipelineStepDefinitionId: string;
6531
+ stepDefinitionId: string;
6532
+ stepDefinitionVersion: number;
6533
+ stepKey: string;
6534
+ position: number;
6535
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6536
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6345
6537
  stepExecutionId: string;
6346
- attemptNumber: number;
6347
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6348
- evaluationId: string | unknown;
6538
+ stepExecutionResultId: string | unknown;
6539
+ inheritedFromStepRunId: string | unknown;
6540
+ acceptedByUserId: string | unknown;
6541
+ acceptedAt: string | unknown;
6542
+ acceptanceReason: string | unknown;
6543
+ inputJson: unknown;
6544
+ outputJson: unknown;
6545
+ evaluation: {
6546
+ id: string;
6547
+ linearPipelineExecutionAttemptId: string;
6548
+ linearPipelineStepRunId: string;
6549
+ stepExecutionId: string;
6550
+ stepExecutionResultId: string;
6551
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6552
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6553
+ factsSnapshotJson: {
6554
+ [key: string]: unknown;
6555
+ };
6556
+ ruleResultsJson: unknown;
6557
+ finalStatus: 'pass' | 'fail';
6558
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6559
+ finalPayloadJson: {
6560
+ [key: string]: unknown;
6561
+ } | unknown;
6562
+ createdAt: string;
6563
+ } | unknown;
6349
6564
  createdAt: string;
6350
- completedAt: string | unknown;
6565
+ updatedAt: string;
6351
6566
  }>;
6352
- evaluations: Array<{
6567
+ events: Array<{
6353
6568
  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: {
6569
+ linearPipelineExecutionAttemptId: string;
6570
+ 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';
6571
+ payloadJson: {
6368
6572
  [key: string]: unknown;
6369
6573
  } | unknown;
6370
6574
  createdAt: string;
@@ -6372,38 +6576,22 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6372
6576
  createdAt: string;
6373
6577
  updatedAt: string;
6374
6578
  }>;
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
6579
  createdAt: string;
6387
6580
  updatedAt: string;
6388
6581
  };
6389
6582
  };
6390
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAttemptsByLinearPipelineStepRunAttemptIdResultsResponses];
6391
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptData = {
6583
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses];
6584
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunData = {
6392
6585
  body: {
6393
- projectId: string;
6394
- stepExecutionId: string;
6395
- stepExecutionResultId: string;
6396
- acceptedByUserId: string;
6397
- acceptanceReason: string;
6586
+ fromStepKey?: string;
6398
6587
  };
6399
6588
  path: {
6400
6589
  linearPipelineExecutionId: string;
6401
- linearPipelineStepRunId: string;
6402
6590
  };
6403
6591
  query?: never;
6404
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/accept';
6592
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/rerun';
6405
6593
  };
6406
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors = {
6594
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors = {
6407
6595
  /**
6408
6596
  * Response for status 401
6409
6597
  */
@@ -6485,64 +6673,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6485
6673
  }>;
6486
6674
  };
6487
6675
  };
6488
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors];
6489
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses = {
6676
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors];
6677
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses = {
6490
6678
  /**
6491
6679
  * Response for status 200
6492
6680
  */
6493
6681
  200: {
6494
6682
  id: string;
6495
6683
  projectId: string;
6684
+ workItemId: string;
6496
6685
  linearPipelineDefinitionId: string;
6497
- linearPipelineDefinitionVersion: number;
6498
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6499
- currentStepKey: string | unknown;
6686
+ linearPipelineDefinitionVersionId: string;
6687
+ definitionStepCount: number;
6500
6688
  inputJson: unknown;
6501
- stepRuns: Array<{
6689
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6690
+ attempts: Array<{
6502
6691
  id: string;
6503
6692
  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<{
6693
+ attemptNumber: number;
6694
+ currentStepKey: string | unknown;
6695
+ startedAt: string | unknown;
6696
+ completedAt: string | unknown;
6697
+ routedToPipelineExecutionId: string | unknown;
6698
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6699
+ stepRuns: Array<{
6521
6700
  id: string;
6522
- linearPipelineStepRunId: string;
6701
+ linearPipelineExecutionAttemptId: string;
6702
+ linearPipelineStepDefinitionId: string;
6703
+ stepDefinitionId: string;
6704
+ stepDefinitionVersion: number;
6705
+ stepKey: string;
6706
+ position: number;
6707
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6708
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6523
6709
  stepExecutionId: string;
6524
- attemptNumber: number;
6525
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6526
- evaluationId: string | unknown;
6710
+ stepExecutionResultId: string | unknown;
6711
+ inheritedFromStepRunId: string | unknown;
6712
+ acceptedByUserId: string | unknown;
6713
+ acceptedAt: string | unknown;
6714
+ acceptanceReason: string | unknown;
6715
+ inputJson: unknown;
6716
+ outputJson: unknown;
6717
+ evaluation: {
6718
+ id: string;
6719
+ linearPipelineExecutionAttemptId: string;
6720
+ linearPipelineStepRunId: string;
6721
+ stepExecutionId: string;
6722
+ stepExecutionResultId: string;
6723
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6724
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6725
+ factsSnapshotJson: {
6726
+ [key: string]: unknown;
6727
+ };
6728
+ ruleResultsJson: unknown;
6729
+ finalStatus: 'pass' | 'fail';
6730
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6731
+ finalPayloadJson: {
6732
+ [key: string]: unknown;
6733
+ } | unknown;
6734
+ createdAt: string;
6735
+ } | unknown;
6527
6736
  createdAt: string;
6528
- completedAt: string | unknown;
6737
+ updatedAt: string;
6529
6738
  }>;
6530
- evaluations: Array<{
6739
+ events: Array<{
6531
6740
  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: {
6741
+ linearPipelineExecutionAttemptId: string;
6742
+ 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';
6743
+ payloadJson: {
6546
6744
  [key: string]: unknown;
6547
6745
  } | unknown;
6548
6746
  createdAt: string;
@@ -6550,34 +6748,20 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6550
6748
  createdAt: string;
6551
6749
  updatedAt: string;
6552
6750
  }>;
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
6751
  createdAt: string;
6565
6752
  updatedAt: string;
6566
6753
  };
6567
6754
  };
6568
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses];
6569
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerData = {
6570
- body: {
6571
- projectId: string;
6572
- };
6755
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses];
6756
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelData = {
6757
+ body?: never;
6573
6758
  path: {
6574
6759
  linearPipelineExecutionId: string;
6575
- linearPipelineStepRunId: string;
6576
6760
  };
6577
6761
  query?: never;
6578
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/retrigger';
6762
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/cancel';
6579
6763
  };
6580
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerErrors = {
6764
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors = {
6581
6765
  /**
6582
6766
  * Response for status 401
6583
6767
  */
@@ -6659,235 +6843,74 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6659
6843
  }>;
6660
6844
  };
6661
6845
  };
6662
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerErrors];
6663
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponses = {
6846
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors];
6847
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses = {
6664
6848
  /**
6665
6849
  * Response for status 200
6666
6850
  */
6667
6851
  200: {
6668
6852
  id: string;
6669
6853
  projectId: string;
6854
+ workItemId: string;
6670
6855
  linearPipelineDefinitionId: string;
6671
- linearPipelineDefinitionVersion: number;
6672
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6673
- currentStepKey: string | unknown;
6856
+ linearPipelineDefinitionVersionId: string;
6857
+ definitionStepCount: number;
6674
6858
  inputJson: unknown;
6675
- stepRuns: Array<{
6859
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6860
+ attempts: Array<{
6676
6861
  id: string;
6677
6862
  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<{
6863
+ attemptNumber: number;
6864
+ currentStepKey: string | unknown;
6865
+ startedAt: string | unknown;
6866
+ completedAt: string | unknown;
6867
+ routedToPipelineExecutionId: string | unknown;
6868
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6869
+ stepRuns: Array<{
6695
6870
  id: string;
6696
- linearPipelineStepRunId: string;
6871
+ linearPipelineExecutionAttemptId: string;
6872
+ linearPipelineStepDefinitionId: string;
6873
+ stepDefinitionId: string;
6874
+ stepDefinitionVersion: number;
6875
+ stepKey: string;
6876
+ position: number;
6877
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
6878
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6697
6879
  stepExecutionId: string;
6698
- attemptNumber: number;
6699
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6700
- evaluationId: string | unknown;
6701
- createdAt: string;
6702
- completedAt: string | unknown;
6703
- }>;
6704
- evaluations: Array<{
6705
- 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: {
6720
- [key: string]: unknown;
6880
+ stepExecutionResultId: string | unknown;
6881
+ inheritedFromStepRunId: string | unknown;
6882
+ acceptedByUserId: string | unknown;
6883
+ acceptedAt: string | unknown;
6884
+ acceptanceReason: string | unknown;
6885
+ inputJson: unknown;
6886
+ outputJson: unknown;
6887
+ evaluation: {
6888
+ id: string;
6889
+ linearPipelineExecutionAttemptId: string;
6890
+ linearPipelineStepRunId: string;
6891
+ stepExecutionId: string;
6892
+ stepExecutionResultId: string;
6893
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6894
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6895
+ factsSnapshotJson: {
6896
+ [key: string]: unknown;
6897
+ };
6898
+ ruleResultsJson: unknown;
6899
+ finalStatus: 'pass' | 'fail';
6900
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6901
+ finalPayloadJson: {
6902
+ [key: string]: unknown;
6903
+ } | unknown;
6904
+ createdAt: string;
6721
6905
  } | unknown;
6722
6906
  createdAt: string;
6907
+ updatedAt: string;
6723
6908
  }>;
6724
- createdAt: string;
6725
- updatedAt: string;
6726
- }>;
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
- createdAt: string;
6739
- updatedAt: string;
6740
- };
6741
- };
6742
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRetriggerResponses];
6743
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelData = {
6744
- body?: never;
6745
- path: {
6746
- linearPipelineExecutionId: string;
6747
- };
6748
- query?: never;
6749
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/cancel';
6750
- };
6751
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors = {
6752
- /**
6753
- * Response for status 401
6754
- */
6755
- 401: {
6756
- type: string;
6757
- title: string;
6758
- status: number;
6759
- detail?: string;
6760
- instance?: string;
6761
- code?: string;
6762
- errors?: Array<{
6763
- path: string;
6764
- message: string;
6765
- summary?: string;
6766
- }>;
6767
- };
6768
- /**
6769
- * Response for status 403
6770
- */
6771
- 403: {
6772
- type: string;
6773
- title: string;
6774
- status: number;
6775
- detail?: string;
6776
- instance?: string;
6777
- code?: string;
6778
- errors?: Array<{
6779
- path: string;
6780
- message: string;
6781
- summary?: string;
6782
- }>;
6783
- };
6784
- /**
6785
- * Response for status 404
6786
- */
6787
- 404: {
6788
- type: string;
6789
- title: string;
6790
- status: number;
6791
- detail?: string;
6792
- instance?: string;
6793
- code?: string;
6794
- errors?: Array<{
6795
- path: string;
6796
- message: string;
6797
- summary?: string;
6798
- }>;
6799
- };
6800
- /**
6801
- * Response for status 422
6802
- */
6803
- 422: {
6804
- type: string;
6805
- title: string;
6806
- status: number;
6807
- detail?: string;
6808
- instance?: string;
6809
- code?: string;
6810
- errors?: Array<{
6811
- path: string;
6812
- message: string;
6813
- summary?: string;
6814
- }>;
6815
- };
6816
- /**
6817
- * Response for status 500
6818
- */
6819
- 500: {
6820
- type: string;
6821
- title: string;
6822
- status: number;
6823
- detail?: string;
6824
- instance?: string;
6825
- code?: string;
6826
- errors?: Array<{
6827
- path: string;
6828
- message: string;
6829
- summary?: string;
6830
- }>;
6831
- };
6832
- };
6833
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors];
6834
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses = {
6835
- /**
6836
- * Response for status 200
6837
- */
6838
- 200: {
6839
- id: string;
6840
- projectId: string;
6841
- linearPipelineDefinitionId: string;
6842
- linearPipelineDefinitionVersion: number;
6843
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
6844
- currentStepKey: string | unknown;
6845
- inputJson: unknown;
6846
- stepRuns: Array<{
6847
- id: string;
6848
- 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<{
6866
- id: string;
6867
- linearPipelineStepRunId: string;
6868
- stepExecutionId: string;
6869
- attemptNumber: number;
6870
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
6871
- evaluationId: string | unknown;
6872
- createdAt: string;
6873
- completedAt: string | unknown;
6874
- }>;
6875
- evaluations: Array<{
6909
+ events: Array<{
6876
6910
  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: {
6911
+ linearPipelineExecutionAttemptId: string;
6912
+ 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';
6913
+ payloadJson: {
6891
6914
  [key: string]: unknown;
6892
6915
  } | unknown;
6893
6916
  createdAt: string;
@@ -6895,17 +6918,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelRespo
6895
6918
  createdAt: string;
6896
6919
  updatedAt: string;
6897
6920
  }>;
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
6921
  createdAt: string;
6910
6922
  updatedAt: string;
6911
6923
  };
@@ -7009,56 +7021,66 @@ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses =
7009
7021
  200: {
7010
7022
  id: string;
7011
7023
  projectId: string;
7024
+ workItemId: string;
7012
7025
  linearPipelineDefinitionId: string;
7013
- linearPipelineDefinitionVersion: number;
7014
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
7015
- currentStepKey: string | unknown;
7026
+ linearPipelineDefinitionVersionId: string;
7027
+ definitionStepCount: number;
7016
7028
  inputJson: unknown;
7017
- stepRuns: Array<{
7029
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7030
+ attempts: Array<{
7018
7031
  id: string;
7019
7032
  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<{
7033
+ attemptNumber: number;
7034
+ currentStepKey: string | unknown;
7035
+ startedAt: string | unknown;
7036
+ completedAt: string | unknown;
7037
+ routedToPipelineExecutionId: string | unknown;
7038
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7039
+ stepRuns: Array<{
7037
7040
  id: string;
7038
- linearPipelineStepRunId: string;
7041
+ linearPipelineExecutionAttemptId: string;
7042
+ linearPipelineStepDefinitionId: string;
7043
+ stepDefinitionId: string;
7044
+ stepDefinitionVersion: number;
7045
+ stepKey: string;
7046
+ position: number;
7047
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
7048
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7039
7049
  stepExecutionId: string;
7040
- attemptNumber: number;
7041
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
7042
- evaluationId: string | unknown;
7050
+ stepExecutionResultId: string | unknown;
7051
+ inheritedFromStepRunId: string | unknown;
7052
+ acceptedByUserId: string | unknown;
7053
+ acceptedAt: string | unknown;
7054
+ acceptanceReason: string | unknown;
7055
+ inputJson: unknown;
7056
+ outputJson: unknown;
7057
+ evaluation: {
7058
+ id: string;
7059
+ linearPipelineExecutionAttemptId: string;
7060
+ linearPipelineStepRunId: string;
7061
+ stepExecutionId: string;
7062
+ stepExecutionResultId: string;
7063
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7064
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
7065
+ factsSnapshotJson: {
7066
+ [key: string]: unknown;
7067
+ };
7068
+ ruleResultsJson: unknown;
7069
+ finalStatus: 'pass' | 'fail';
7070
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
7071
+ finalPayloadJson: {
7072
+ [key: string]: unknown;
7073
+ } | unknown;
7074
+ createdAt: string;
7075
+ } | unknown;
7043
7076
  createdAt: string;
7044
- completedAt: string | unknown;
7077
+ updatedAt: string;
7045
7078
  }>;
7046
- evaluations: Array<{
7079
+ events: Array<{
7047
7080
  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: {
7081
+ linearPipelineExecutionAttemptId: string;
7082
+ 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';
7083
+ payloadJson: {
7062
7084
  [key: string]: unknown;
7063
7085
  } | unknown;
7064
7086
  createdAt: string;
@@ -7066,17 +7088,6 @@ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses =
7066
7088
  createdAt: string;
7067
7089
  updatedAt: string;
7068
7090
  }>;
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
7091
  createdAt: string;
7081
7092
  updatedAt: string;
7082
7093
  };
@@ -7180,56 +7191,66 @@ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinition
7180
7191
  200: Array<{
7181
7192
  id: string;
7182
7193
  projectId: string;
7194
+ workItemId: string;
7183
7195
  linearPipelineDefinitionId: string;
7184
- linearPipelineDefinitionVersion: number;
7185
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'needs_review';
7186
- currentStepKey: string | unknown;
7196
+ linearPipelineDefinitionVersionId: string;
7197
+ definitionStepCount: number;
7187
7198
  inputJson: unknown;
7188
- stepRuns: Array<{
7199
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7200
+ attempts: Array<{
7189
7201
  id: string;
7190
7202
  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<{
7203
+ attemptNumber: number;
7204
+ currentStepKey: string | unknown;
7205
+ startedAt: string | unknown;
7206
+ completedAt: string | unknown;
7207
+ routedToPipelineExecutionId: string | unknown;
7208
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7209
+ stepRuns: Array<{
7208
7210
  id: string;
7209
- linearPipelineStepRunId: string;
7211
+ linearPipelineExecutionAttemptId: string;
7212
+ linearPipelineStepDefinitionId: string;
7213
+ stepDefinitionId: string;
7214
+ stepDefinitionVersion: number;
7215
+ stepKey: string;
7216
+ position: number;
7217
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled';
7218
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7210
7219
  stepExecutionId: string;
7211
- attemptNumber: number;
7212
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped';
7213
- evaluationId: string | unknown;
7220
+ stepExecutionResultId: string | unknown;
7221
+ inheritedFromStepRunId: string | unknown;
7222
+ acceptedByUserId: string | unknown;
7223
+ acceptedAt: string | unknown;
7224
+ acceptanceReason: string | unknown;
7225
+ inputJson: unknown;
7226
+ outputJson: unknown;
7227
+ evaluation: {
7228
+ id: string;
7229
+ linearPipelineExecutionAttemptId: string;
7230
+ linearPipelineStepRunId: string;
7231
+ stepExecutionId: string;
7232
+ stepExecutionResultId: string;
7233
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7234
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
7235
+ factsSnapshotJson: {
7236
+ [key: string]: unknown;
7237
+ };
7238
+ ruleResultsJson: unknown;
7239
+ finalStatus: 'pass' | 'fail';
7240
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
7241
+ finalPayloadJson: {
7242
+ [key: string]: unknown;
7243
+ } | unknown;
7244
+ createdAt: string;
7245
+ } | unknown;
7214
7246
  createdAt: string;
7215
- completedAt: string | unknown;
7247
+ updatedAt: string;
7216
7248
  }>;
7217
- evaluations: Array<{
7249
+ events: Array<{
7218
7250
  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: {
7251
+ linearPipelineExecutionAttemptId: string;
7252
+ 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';
7253
+ payloadJson: {
7233
7254
  [key: string]: unknown;
7234
7255
  } | unknown;
7235
7256
  createdAt: string;
@@ -7237,17 +7258,6 @@ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinition
7237
7258
  createdAt: string;
7238
7259
  updatedAt: string;
7239
7260
  }>;
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
7261
  createdAt: string;
7252
7262
  updatedAt: string;
7253
7263
  }>;
@@ -9210,3 +9220,501 @@ export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateR
9210
9220
  };
9211
9221
  };
9212
9222
  export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponse = PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponses[keyof PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateResponses];
9223
+ export type GetApiProjectsByProjectIdIntegrationsData = {
9224
+ body?: never;
9225
+ path: {
9226
+ projectId: string;
9227
+ };
9228
+ query?: never;
9229
+ url: '/api/projects/{projectId}/integrations';
9230
+ };
9231
+ export type GetApiProjectsByProjectIdIntegrationsErrors = {
9232
+ /**
9233
+ * Response for status 401
9234
+ */
9235
+ 401: {
9236
+ type: string;
9237
+ title: string;
9238
+ status: number;
9239
+ detail?: string;
9240
+ instance?: string;
9241
+ code?: string;
9242
+ errors?: Array<{
9243
+ path: string;
9244
+ message: string;
9245
+ summary?: string;
9246
+ }>;
9247
+ };
9248
+ /**
9249
+ * Response for status 403
9250
+ */
9251
+ 403: {
9252
+ type: string;
9253
+ title: string;
9254
+ status: number;
9255
+ detail?: string;
9256
+ instance?: string;
9257
+ code?: string;
9258
+ errors?: Array<{
9259
+ path: string;
9260
+ message: string;
9261
+ summary?: string;
9262
+ }>;
9263
+ };
9264
+ /**
9265
+ * Response for status 404
9266
+ */
9267
+ 404: {
9268
+ type: string;
9269
+ title: string;
9270
+ status: number;
9271
+ detail?: string;
9272
+ instance?: string;
9273
+ code?: string;
9274
+ errors?: Array<{
9275
+ path: string;
9276
+ message: string;
9277
+ summary?: string;
9278
+ }>;
9279
+ };
9280
+ /**
9281
+ * Response for status 422
9282
+ */
9283
+ 422: {
9284
+ type: string;
9285
+ title: string;
9286
+ status: number;
9287
+ detail?: string;
9288
+ instance?: string;
9289
+ code?: string;
9290
+ errors?: Array<{
9291
+ path: string;
9292
+ message: string;
9293
+ summary?: string;
9294
+ }>;
9295
+ };
9296
+ /**
9297
+ * Response for status 500
9298
+ */
9299
+ 500: {
9300
+ type: string;
9301
+ title: string;
9302
+ status: number;
9303
+ detail?: string;
9304
+ instance?: string;
9305
+ code?: string;
9306
+ errors?: Array<{
9307
+ path: string;
9308
+ message: string;
9309
+ summary?: string;
9310
+ }>;
9311
+ };
9312
+ };
9313
+ export type GetApiProjectsByProjectIdIntegrationsError = GetApiProjectsByProjectIdIntegrationsErrors[keyof GetApiProjectsByProjectIdIntegrationsErrors];
9314
+ export type GetApiProjectsByProjectIdIntegrationsResponses = {
9315
+ /**
9316
+ * Response for status 200
9317
+ */
9318
+ 200: Array<{
9319
+ id: string;
9320
+ projectId: string;
9321
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
9322
+ installationId: string;
9323
+ externalScope: {
9324
+ repos: Array<{
9325
+ id: number;
9326
+ fullName: string;
9327
+ }>;
9328
+ };
9329
+ status: 'active' | 'paused' | 'error';
9330
+ lastSyncedAt: string | unknown;
9331
+ lastError: string | unknown;
9332
+ createdAt: string;
9333
+ updatedAt: string;
9334
+ }>;
9335
+ };
9336
+ export type GetApiProjectsByProjectIdIntegrationsResponse = GetApiProjectsByProjectIdIntegrationsResponses[keyof GetApiProjectsByProjectIdIntegrationsResponses];
9337
+ export type PostApiProjectsByProjectIdIntegrationsData = {
9338
+ body: unknown;
9339
+ path: {
9340
+ projectId: string;
9341
+ };
9342
+ query?: never;
9343
+ url: '/api/projects/{projectId}/integrations';
9344
+ };
9345
+ export type PostApiProjectsByProjectIdIntegrationsErrors = {
9346
+ /**
9347
+ * Response for status 400
9348
+ */
9349
+ 400: {
9350
+ type: string;
9351
+ title: string;
9352
+ status: number;
9353
+ detail?: string;
9354
+ instance?: string;
9355
+ code?: string;
9356
+ errors?: Array<{
9357
+ path: string;
9358
+ message: string;
9359
+ summary?: string;
9360
+ }>;
9361
+ };
9362
+ /**
9363
+ * Response for status 401
9364
+ */
9365
+ 401: {
9366
+ type: string;
9367
+ title: string;
9368
+ status: number;
9369
+ detail?: string;
9370
+ instance?: string;
9371
+ code?: string;
9372
+ errors?: Array<{
9373
+ path: string;
9374
+ message: string;
9375
+ summary?: string;
9376
+ }>;
9377
+ };
9378
+ /**
9379
+ * Response for status 403
9380
+ */
9381
+ 403: {
9382
+ type: string;
9383
+ title: string;
9384
+ status: number;
9385
+ detail?: string;
9386
+ instance?: string;
9387
+ code?: string;
9388
+ errors?: Array<{
9389
+ path: string;
9390
+ message: string;
9391
+ summary?: string;
9392
+ }>;
9393
+ };
9394
+ /**
9395
+ * Response for status 404
9396
+ */
9397
+ 404: {
9398
+ type: string;
9399
+ title: string;
9400
+ status: number;
9401
+ detail?: string;
9402
+ instance?: string;
9403
+ code?: string;
9404
+ errors?: Array<{
9405
+ path: string;
9406
+ message: string;
9407
+ summary?: string;
9408
+ }>;
9409
+ };
9410
+ /**
9411
+ * Response for status 422
9412
+ */
9413
+ 422: {
9414
+ type: string;
9415
+ title: string;
9416
+ status: number;
9417
+ detail?: string;
9418
+ instance?: string;
9419
+ code?: string;
9420
+ errors?: Array<{
9421
+ path: string;
9422
+ message: string;
9423
+ summary?: string;
9424
+ }>;
9425
+ };
9426
+ /**
9427
+ * Response for status 500
9428
+ */
9429
+ 500: {
9430
+ type: string;
9431
+ title: string;
9432
+ status: number;
9433
+ detail?: string;
9434
+ instance?: string;
9435
+ code?: string;
9436
+ errors?: Array<{
9437
+ path: string;
9438
+ message: string;
9439
+ summary?: string;
9440
+ }>;
9441
+ };
9442
+ };
9443
+ export type PostApiProjectsByProjectIdIntegrationsError = PostApiProjectsByProjectIdIntegrationsErrors[keyof PostApiProjectsByProjectIdIntegrationsErrors];
9444
+ export type PostApiProjectsByProjectIdIntegrationsResponses = {
9445
+ /**
9446
+ * Response for status 200
9447
+ */
9448
+ 200: {
9449
+ id: string;
9450
+ projectId: string;
9451
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
9452
+ installationId: string;
9453
+ externalScope: {
9454
+ repos: Array<{
9455
+ id: number;
9456
+ fullName: string;
9457
+ }>;
9458
+ };
9459
+ status: 'active' | 'paused' | 'error';
9460
+ lastSyncedAt: string | unknown;
9461
+ lastError: string | unknown;
9462
+ createdAt: string;
9463
+ updatedAt: string;
9464
+ };
9465
+ };
9466
+ export type PostApiProjectsByProjectIdIntegrationsResponse = PostApiProjectsByProjectIdIntegrationsResponses[keyof PostApiProjectsByProjectIdIntegrationsResponses];
9467
+ export type PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncData = {
9468
+ body?: never;
9469
+ path: {
9470
+ projectId: string;
9471
+ integrationId: string;
9472
+ };
9473
+ query?: never;
9474
+ url: '/api/projects/{projectId}/integrations/{integrationId}/sync';
9475
+ };
9476
+ export type PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncErrors = {
9477
+ /**
9478
+ * Response for status 400
9479
+ */
9480
+ 400: {
9481
+ type: string;
9482
+ title: string;
9483
+ status: number;
9484
+ detail?: string;
9485
+ instance?: string;
9486
+ code?: string;
9487
+ errors?: Array<{
9488
+ path: string;
9489
+ message: string;
9490
+ summary?: string;
9491
+ }>;
9492
+ };
9493
+ /**
9494
+ * Response for status 401
9495
+ */
9496
+ 401: {
9497
+ type: string;
9498
+ title: string;
9499
+ status: number;
9500
+ detail?: string;
9501
+ instance?: string;
9502
+ code?: string;
9503
+ errors?: Array<{
9504
+ path: string;
9505
+ message: string;
9506
+ summary?: string;
9507
+ }>;
9508
+ };
9509
+ /**
9510
+ * Response for status 403
9511
+ */
9512
+ 403: {
9513
+ type: string;
9514
+ title: string;
9515
+ status: number;
9516
+ detail?: string;
9517
+ instance?: string;
9518
+ code?: string;
9519
+ errors?: Array<{
9520
+ path: string;
9521
+ message: string;
9522
+ summary?: string;
9523
+ }>;
9524
+ };
9525
+ /**
9526
+ * Response for status 404
9527
+ */
9528
+ 404: {
9529
+ type: string;
9530
+ title: string;
9531
+ status: number;
9532
+ detail?: string;
9533
+ instance?: string;
9534
+ code?: string;
9535
+ errors?: Array<{
9536
+ path: string;
9537
+ message: string;
9538
+ summary?: string;
9539
+ }>;
9540
+ };
9541
+ /**
9542
+ * Response for status 422
9543
+ */
9544
+ 422: {
9545
+ type: string;
9546
+ title: string;
9547
+ status: number;
9548
+ detail?: string;
9549
+ instance?: string;
9550
+ code?: string;
9551
+ errors?: Array<{
9552
+ path: string;
9553
+ message: string;
9554
+ summary?: string;
9555
+ }>;
9556
+ };
9557
+ /**
9558
+ * Response for status 500
9559
+ */
9560
+ 500: {
9561
+ type: string;
9562
+ title: string;
9563
+ status: number;
9564
+ detail?: string;
9565
+ instance?: string;
9566
+ code?: string;
9567
+ errors?: Array<{
9568
+ path: string;
9569
+ message: string;
9570
+ summary?: string;
9571
+ }>;
9572
+ };
9573
+ /**
9574
+ * Response for status 502
9575
+ */
9576
+ 502: {
9577
+ type: string;
9578
+ title: string;
9579
+ status: number;
9580
+ detail?: string;
9581
+ instance?: string;
9582
+ code?: string;
9583
+ errors?: Array<{
9584
+ path: string;
9585
+ message: string;
9586
+ summary?: string;
9587
+ }>;
9588
+ };
9589
+ };
9590
+ export type PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncError = PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncErrors[keyof PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncErrors];
9591
+ export type PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncResponses = {
9592
+ /**
9593
+ * Response for status 200
9594
+ */
9595
+ 200: {
9596
+ totalUpserted: number;
9597
+ perRepo: Array<{
9598
+ fullName: string;
9599
+ totalSeen: number;
9600
+ totalUpserted: number;
9601
+ }>;
9602
+ };
9603
+ };
9604
+ export type PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncResponse = PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncResponses[keyof PostApiProjectsByProjectIdIntegrationsByIntegrationIdSyncResponses];
9605
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdData = {
9606
+ body?: never;
9607
+ path: {
9608
+ projectId: string;
9609
+ integrationId: string;
9610
+ };
9611
+ query?: never;
9612
+ url: '/api/projects/{projectId}/integrations/{integrationId}';
9613
+ };
9614
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors = {
9615
+ /**
9616
+ * Response for status 401
9617
+ */
9618
+ 401: {
9619
+ type: string;
9620
+ title: string;
9621
+ status: number;
9622
+ detail?: string;
9623
+ instance?: string;
9624
+ code?: string;
9625
+ errors?: Array<{
9626
+ path: string;
9627
+ message: string;
9628
+ summary?: string;
9629
+ }>;
9630
+ };
9631
+ /**
9632
+ * Response for status 403
9633
+ */
9634
+ 403: {
9635
+ type: string;
9636
+ title: string;
9637
+ status: number;
9638
+ detail?: string;
9639
+ instance?: string;
9640
+ code?: string;
9641
+ errors?: Array<{
9642
+ path: string;
9643
+ message: string;
9644
+ summary?: string;
9645
+ }>;
9646
+ };
9647
+ /**
9648
+ * Response for status 404
9649
+ */
9650
+ 404: {
9651
+ type: string;
9652
+ title: string;
9653
+ status: number;
9654
+ detail?: string;
9655
+ instance?: string;
9656
+ code?: string;
9657
+ errors?: Array<{
9658
+ path: string;
9659
+ message: string;
9660
+ summary?: string;
9661
+ }>;
9662
+ };
9663
+ /**
9664
+ * Response for status 422
9665
+ */
9666
+ 422: {
9667
+ type: string;
9668
+ title: string;
9669
+ status: number;
9670
+ detail?: string;
9671
+ instance?: string;
9672
+ code?: string;
9673
+ errors?: Array<{
9674
+ path: string;
9675
+ message: string;
9676
+ summary?: string;
9677
+ }>;
9678
+ };
9679
+ /**
9680
+ * Response for status 500
9681
+ */
9682
+ 500: {
9683
+ type: string;
9684
+ title: string;
9685
+ status: number;
9686
+ detail?: string;
9687
+ instance?: string;
9688
+ code?: string;
9689
+ errors?: Array<{
9690
+ path: string;
9691
+ message: string;
9692
+ summary?: string;
9693
+ }>;
9694
+ };
9695
+ };
9696
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdError = DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors[keyof DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdErrors];
9697
+ export type DeleteApiProjectsByProjectIdIntegrationsByIntegrationIdResponses = {
9698
+ /**
9699
+ * Response for status 200
9700
+ */
9701
+ 200: unknown;
9702
+ };
9703
+ export type GetApiIntegrationsGithubInstallData = {
9704
+ body?: never;
9705
+ path?: never;
9706
+ query?: never;
9707
+ url: '/api/integrations/github/install';
9708
+ };
9709
+ export type GetApiIntegrationsGithubCallbackData = {
9710
+ body?: never;
9711
+ path?: never;
9712
+ query?: never;
9713
+ url: '/api/integrations/github/callback';
9714
+ };
9715
+ export type PostApiIntegrationsGithubWebhookData = {
9716
+ body?: never;
9717
+ path?: never;
9718
+ query?: never;
9719
+ url: '/api/integrations/github/webhook';
9720
+ };