@boboddy/sdk 0.1.44-alpha → 0.2.1-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.
@@ -100,6 +100,7 @@ export type GetApiProjectsResponses = {
100
100
  description: string | unknown;
101
101
  gitUrl: string;
102
102
  createdByUserId: string;
103
+ orgId: string;
103
104
  memberships: Array<{
104
105
  userId: string;
105
106
  permissions: Array<string>;
@@ -266,6 +267,7 @@ export type PostApiProjectsResponses = {
266
267
  description: string | unknown;
267
268
  gitUrl: string;
268
269
  createdByUserId: string;
270
+ orgId: string;
269
271
  memberships: Array<{
270
272
  userId: string;
271
273
  permissions: Array<string>;
@@ -542,6 +544,7 @@ export type GetApiProjectsByProjectIdResponses = {
542
544
  description: string | unknown;
543
545
  gitUrl: string;
544
546
  createdByUserId: string;
547
+ orgId: string;
545
548
  memberships: Array<{
546
549
  userId: string;
547
550
  permissions: Array<string>;
@@ -848,6 +851,7 @@ export type PutApiProjectsByProjectIdDefaultPipelineAssignmentResponses = {
848
851
  description: string | unknown;
849
852
  gitUrl: string;
850
853
  createdByUserId: string;
854
+ orgId: string;
851
855
  memberships: Array<{
852
856
  userId: string;
853
857
  permissions: Array<string>;
@@ -1013,6 +1017,7 @@ export type PutApiProjectsByProjectIdMembersByUserIdPermissionsResponses = {
1013
1017
  description: string | unknown;
1014
1018
  gitUrl: string;
1015
1019
  createdByUserId: string;
1020
+ orgId: string;
1016
1021
  memberships: Array<{
1017
1022
  userId: string;
1018
1023
  permissions: Array<string>;
@@ -3373,110 +3378,86 @@ export type GetApiStepExecutionsByStepExecutionIdResponses = {
3373
3378
  };
3374
3379
  };
3375
3380
  export type GetApiStepExecutionsByStepExecutionIdResponse = GetApiStepExecutionsByStepExecutionIdResponses[keyof GetApiStepExecutionsByStepExecutionIdResponses];
3376
- export type PostApiLinearPipelineDefinitionsData = {
3377
- body: {
3378
- projectId: string;
3379
- key: string;
3380
- name: string;
3381
- description: string | unknown;
3382
- status: 'draft' | 'active' | 'archived';
3383
- inputSchemaJson?: unknown;
3384
- stepDefinitions: Array<{
3385
- stepDefinitionId: string;
3386
- stepDefinitionVersion: number;
3387
- key: string;
3388
- name: string;
3389
- description: string | unknown;
3390
- position: number;
3391
- inputBindingsJson: {
3392
- [key: string]: {
3393
- source: string;
3394
- path: string | unknown;
3395
- } | {
3396
- source: string;
3397
- field: string;
3398
- } | {
3399
- source: string;
3400
- stepKey: string;
3401
- path: string | unknown;
3402
- } | {
3403
- source: string;
3404
- stepKey: string;
3405
- signalKey: string;
3406
- } | {
3407
- source: string;
3408
- value: unknown;
3409
- };
3410
- } | unknown;
3411
- timeoutSeconds: number | unknown;
3412
- retryPolicyJson: unknown;
3413
- advancementPolicyDefinition: {
3414
- rulesJson: {
3415
- rules: Array<{
3416
- conditions: {
3417
- [key: string]: unknown;
3418
- };
3419
- event: {
3420
- type: string;
3421
- params?: {
3422
- [key: string]: unknown;
3423
- };
3424
- };
3425
- name?: string;
3426
- priority?: number;
3427
- [key: string]: unknown | {
3428
- [key: string]: unknown;
3429
- } | {
3430
- type: string;
3431
- params?: {
3432
- [key: string]: unknown;
3433
- };
3434
- } | string | number | undefined;
3435
- }>;
3436
- [key: string]: unknown | Array<{
3437
- conditions: {
3438
- [key: string]: unknown;
3439
- };
3440
- event: {
3441
- type: string;
3442
- params?: {
3443
- [key: string]: unknown;
3444
- };
3445
- };
3446
- name?: string;
3447
- priority?: number;
3448
- [key: string]: unknown | {
3449
- [key: string]: unknown;
3450
- } | {
3451
- type: string;
3452
- params?: {
3453
- [key: string]: unknown;
3454
- };
3455
- } | string | number | undefined;
3456
- }>;
3457
- };
3458
- defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3459
- defaultEventParamsJson: unknown;
3460
- allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3461
- };
3462
- computedSignalDefinitions: Array<{
3463
- key: string;
3464
- type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
3465
- inputSignalKeys: Array<string>;
3466
- configJson: unknown;
3467
- availableWhenResultStatusIn: Array<string> | unknown;
3468
- }>;
3469
- }>;
3381
+ export type GetApiStepExecutionsByStepExecutionIdLogsData = {
3382
+ body?: never;
3383
+ path: {
3384
+ stepExecutionId: string;
3470
3385
  };
3471
- path?: never;
3472
- query?: never;
3473
- url: '/api/linear-pipeline-definitions';
3386
+ query: {
3387
+ from: number;
3388
+ limit: number;
3389
+ };
3390
+ url: '/api/step-executions/{stepExecutionId}/logs';
3474
3391
  };
3475
- export type PostApiLinearPipelineDefinitionsErrors = {
3392
+ export type GetApiStepExecutionsByStepExecutionIdLogsErrors = {
3476
3393
  /**
3477
- * Response for status 400
3394
+ * Response for status 401
3478
3395
  */
3479
- 400: {
3396
+ 401: {
3397
+ type: string;
3398
+ title: string;
3399
+ status: number;
3400
+ detail?: string;
3401
+ instance?: string;
3402
+ code?: string;
3403
+ errors?: Array<{
3404
+ path: string;
3405
+ message: string;
3406
+ summary?: string;
3407
+ }>;
3408
+ };
3409
+ /**
3410
+ * Response for status 403
3411
+ */
3412
+ 403: {
3413
+ type: string;
3414
+ title: string;
3415
+ status: number;
3416
+ detail?: string;
3417
+ instance?: string;
3418
+ code?: string;
3419
+ errors?: Array<{
3420
+ path: string;
3421
+ message: string;
3422
+ summary?: string;
3423
+ }>;
3424
+ };
3425
+ /**
3426
+ * Response for status 404
3427
+ */
3428
+ 404: {
3429
+ type: string;
3430
+ title: string;
3431
+ status: number;
3432
+ detail?: string;
3433
+ instance?: string;
3434
+ code?: string;
3435
+ errors?: Array<{
3436
+ path: string;
3437
+ message: string;
3438
+ summary?: string;
3439
+ }>;
3440
+ };
3441
+ /**
3442
+ * Response for status 422
3443
+ */
3444
+ 422: {
3445
+ type: string;
3446
+ title: string;
3447
+ status: number;
3448
+ detail?: string;
3449
+ instance?: string;
3450
+ code?: string;
3451
+ errors?: Array<{
3452
+ path: string;
3453
+ message: string;
3454
+ summary?: string;
3455
+ }>;
3456
+ };
3457
+ /**
3458
+ * Response for status 500
3459
+ */
3460
+ 500: {
3480
3461
  type: string;
3481
3462
  title: string;
3482
3463
  status: number;
@@ -3489,6 +3470,41 @@ export type PostApiLinearPipelineDefinitionsErrors = {
3489
3470
  summary?: string;
3490
3471
  }>;
3491
3472
  };
3473
+ };
3474
+ export type GetApiStepExecutionsByStepExecutionIdLogsError = GetApiStepExecutionsByStepExecutionIdLogsErrors[keyof GetApiStepExecutionsByStepExecutionIdLogsErrors];
3475
+ export type GetApiStepExecutionsByStepExecutionIdLogsResponses = {
3476
+ /**
3477
+ * Response for status 200
3478
+ */
3479
+ 200: {
3480
+ lines: Array<{
3481
+ seq: number;
3482
+ stream: 'worker' | 'ai-server' | 'conversation';
3483
+ ts: string;
3484
+ content: string;
3485
+ }>;
3486
+ nextOffset: number;
3487
+ complete: boolean;
3488
+ };
3489
+ };
3490
+ export type GetApiStepExecutionsByStepExecutionIdLogsResponse = GetApiStepExecutionsByStepExecutionIdLogsResponses[keyof GetApiStepExecutionsByStepExecutionIdLogsResponses];
3491
+ export type PostApiStepExecutionsByStepExecutionIdLogsData = {
3492
+ body: {
3493
+ claimToken: string;
3494
+ lines: Array<{
3495
+ seq: number;
3496
+ stream: 'worker' | 'ai-server' | 'conversation';
3497
+ ts: string;
3498
+ content: string;
3499
+ }>;
3500
+ };
3501
+ path: {
3502
+ stepExecutionId: string;
3503
+ };
3504
+ query?: never;
3505
+ url: '/api/step-executions/{stepExecutionId}/logs';
3506
+ };
3507
+ export type PostApiStepExecutionsByStepExecutionIdLogsErrors = {
3492
3508
  /**
3493
3509
  * Response for status 401
3494
3510
  */
@@ -3586,222 +3602,25 @@ export type PostApiLinearPipelineDefinitionsErrors = {
3586
3602
  }>;
3587
3603
  };
3588
3604
  };
3589
- export type PostApiLinearPipelineDefinitionsError = PostApiLinearPipelineDefinitionsErrors[keyof PostApiLinearPipelineDefinitionsErrors];
3590
- export type PostApiLinearPipelineDefinitionsResponses = {
3605
+ export type PostApiStepExecutionsByStepExecutionIdLogsError = PostApiStepExecutionsByStepExecutionIdLogsErrors[keyof PostApiStepExecutionsByStepExecutionIdLogsErrors];
3606
+ export type PostApiStepExecutionsByStepExecutionIdLogsResponses = {
3591
3607
  /**
3592
3608
  * Response for status 200
3593
3609
  */
3594
3610
  200: {
3595
- id: string;
3596
- projectId: string;
3597
- key: string;
3598
- name: string;
3599
- description: string | unknown;
3600
- status: 'draft' | 'active' | 'archived';
3601
- archivedAt: string | unknown;
3602
- inputSchemaJson: unknown;
3603
- stepDefinitions: Array<{
3604
- id: string;
3605
- linearPipelineDefinitionId: string;
3606
- stepDefinitionId: string;
3607
- stepDefinitionVersion: number;
3608
- key: string;
3609
- name: string;
3610
- description: string | unknown;
3611
- position: number;
3612
- inputBindingsJson: {
3613
- [key: string]: {
3614
- source: string;
3615
- path: string | unknown;
3616
- } | {
3617
- source: string;
3618
- field: string;
3619
- } | {
3620
- source: string;
3621
- stepKey: string;
3622
- path: string | unknown;
3623
- } | {
3624
- source: string;
3625
- stepKey: string;
3626
- signalKey: string;
3627
- } | {
3628
- source: string;
3629
- value: unknown;
3630
- };
3631
- } | unknown;
3632
- timeoutSeconds: number | unknown;
3633
- retryPolicyJson: unknown;
3634
- advancementPolicyDefinition: {
3635
- id: string;
3636
- linearPipelineStepDefinitionId: string;
3637
- rulesJson: {
3638
- rules: Array<{
3639
- conditions: {
3640
- [key: string]: unknown;
3641
- };
3642
- event: {
3643
- type: string;
3644
- params?: {
3645
- [key: string]: unknown;
3646
- };
3647
- };
3648
- name?: string;
3649
- priority?: number;
3650
- [key: string]: unknown | {
3651
- [key: string]: unknown;
3652
- } | {
3653
- type: string;
3654
- params?: {
3655
- [key: string]: unknown;
3656
- };
3657
- } | string | number | undefined;
3658
- }>;
3659
- [key: string]: unknown | Array<{
3660
- conditions: {
3661
- [key: string]: unknown;
3662
- };
3663
- event: {
3664
- type: string;
3665
- params?: {
3666
- [key: string]: unknown;
3667
- };
3668
- };
3669
- name?: string;
3670
- priority?: number;
3671
- [key: string]: unknown | {
3672
- [key: string]: unknown;
3673
- } | {
3674
- type: string;
3675
- params?: {
3676
- [key: string]: unknown;
3677
- };
3678
- } | string | number | undefined;
3679
- }>;
3680
- };
3681
- defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3682
- defaultEventParamsJson: unknown;
3683
- allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3684
- createdAt: string;
3685
- updatedAt: string;
3686
- };
3687
- computedSignalDefinitions: Array<{
3688
- id: string;
3689
- key: string;
3690
- type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
3691
- inputSignalKeys: Array<string>;
3692
- configJson: unknown;
3693
- availableWhenResultStatusIn: Array<string> | unknown;
3694
- createdAt: string;
3695
- updatedAt: string;
3696
- }>;
3697
- createdAt: string;
3698
- updatedAt: string;
3699
- }>;
3700
- createdAt: string;
3701
- updatedAt: string;
3611
+ nextOffset: number;
3702
3612
  };
3703
3613
  };
3704
- export type PostApiLinearPipelineDefinitionsResponse = PostApiLinearPipelineDefinitionsResponses[keyof PostApiLinearPipelineDefinitionsResponses];
3705
- export type PutApiLinearPipelineDefinitionsData = {
3706
- body: {
3707
- projectId: string;
3708
- key: string;
3709
- name: string;
3710
- description: string | unknown;
3711
- status: 'draft' | 'active' | 'archived';
3712
- inputSchemaJson?: unknown;
3713
- stepDefinitions: Array<{
3714
- stepDefinitionId: string;
3715
- stepDefinitionVersion: number;
3716
- key: string;
3717
- name: string;
3718
- description: string | unknown;
3719
- position: number;
3720
- inputBindingsJson: {
3721
- [key: string]: {
3722
- source: string;
3723
- path: string | unknown;
3724
- } | {
3725
- source: string;
3726
- field: string;
3727
- } | {
3728
- source: string;
3729
- stepKey: string;
3730
- path: string | unknown;
3731
- } | {
3732
- source: string;
3733
- stepKey: string;
3734
- signalKey: string;
3735
- } | {
3736
- source: string;
3737
- value: unknown;
3738
- };
3739
- } | unknown;
3740
- timeoutSeconds: number | unknown;
3741
- retryPolicyJson: unknown;
3742
- advancementPolicyDefinition: {
3743
- rulesJson: {
3744
- rules: Array<{
3745
- conditions: {
3746
- [key: string]: unknown;
3747
- };
3748
- event: {
3749
- type: string;
3750
- params?: {
3751
- [key: string]: unknown;
3752
- };
3753
- };
3754
- name?: string;
3755
- priority?: number;
3756
- [key: string]: unknown | {
3757
- [key: string]: unknown;
3758
- } | {
3759
- type: string;
3760
- params?: {
3761
- [key: string]: unknown;
3762
- };
3763
- } | string | number | undefined;
3764
- }>;
3765
- [key: string]: unknown | Array<{
3766
- conditions: {
3767
- [key: string]: unknown;
3768
- };
3769
- event: {
3770
- type: string;
3771
- params?: {
3772
- [key: string]: unknown;
3773
- };
3774
- };
3775
- name?: string;
3776
- priority?: number;
3777
- [key: string]: unknown | {
3778
- [key: string]: unknown;
3779
- } | {
3780
- type: string;
3781
- params?: {
3782
- [key: string]: unknown;
3783
- };
3784
- } | string | number | undefined;
3785
- }>;
3786
- };
3787
- defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3788
- defaultEventParamsJson: unknown;
3789
- allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3790
- };
3791
- computedSignalDefinitions: Array<{
3792
- key: string;
3793
- type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
3794
- inputSignalKeys: Array<string>;
3795
- configJson: unknown;
3796
- availableWhenResultStatusIn: Array<string> | unknown;
3797
- }>;
3798
- }>;
3614
+ export type PostApiStepExecutionsByStepExecutionIdLogsResponse = PostApiStepExecutionsByStepExecutionIdLogsResponses[keyof PostApiStepExecutionsByStepExecutionIdLogsResponses];
3615
+ export type GetApiStepExecutionsByStepExecutionIdLogsArchiveData = {
3616
+ body?: never;
3617
+ path: {
3618
+ stepExecutionId: string;
3799
3619
  };
3800
- path?: never;
3801
3620
  query?: never;
3802
- url: '/api/linear-pipeline-definitions';
3621
+ url: '/api/step-executions/{stepExecutionId}/logs/archive';
3803
3622
  };
3804
- export type PutApiLinearPipelineDefinitionsErrors = {
3623
+ export type GetApiStepExecutionsByStepExecutionIdLogsArchiveErrors = {
3805
3624
  /**
3806
3625
  * Response for status 401
3807
3626
  */
@@ -3818,6 +3637,22 @@ export type PutApiLinearPipelineDefinitionsErrors = {
3818
3637
  summary?: string;
3819
3638
  }>;
3820
3639
  };
3640
+ /**
3641
+ * Response for status 402
3642
+ */
3643
+ 402: {
3644
+ type: string;
3645
+ title: string;
3646
+ status: number;
3647
+ detail?: string;
3648
+ instance?: string;
3649
+ code?: string;
3650
+ errors?: Array<{
3651
+ path: string;
3652
+ message: string;
3653
+ summary?: string;
3654
+ }>;
3655
+ };
3821
3656
  /**
3822
3657
  * Response for status 403
3823
3658
  */
@@ -3834,6 +3669,22 @@ export type PutApiLinearPipelineDefinitionsErrors = {
3834
3669
  summary?: string;
3835
3670
  }>;
3836
3671
  };
3672
+ /**
3673
+ * Response for status 404
3674
+ */
3675
+ 404: {
3676
+ type: string;
3677
+ title: string;
3678
+ status: number;
3679
+ detail?: string;
3680
+ instance?: string;
3681
+ code?: string;
3682
+ errors?: Array<{
3683
+ path: string;
3684
+ message: string;
3685
+ summary?: string;
3686
+ }>;
3687
+ };
3837
3688
  /**
3838
3689
  * Response for status 422
3839
3690
  */
@@ -3867,23 +3718,26 @@ export type PutApiLinearPipelineDefinitionsErrors = {
3867
3718
  }>;
3868
3719
  };
3869
3720
  };
3870
- export type PutApiLinearPipelineDefinitionsError = PutApiLinearPipelineDefinitionsErrors[keyof PutApiLinearPipelineDefinitionsErrors];
3871
- export type PutApiLinearPipelineDefinitionsResponses = {
3721
+ export type GetApiStepExecutionsByStepExecutionIdLogsArchiveError = GetApiStepExecutionsByStepExecutionIdLogsArchiveErrors[keyof GetApiStepExecutionsByStepExecutionIdLogsArchiveErrors];
3722
+ export type GetApiStepExecutionsByStepExecutionIdLogsArchiveResponses = {
3872
3723
  /**
3873
3724
  * Response for status 200
3874
3725
  */
3875
3726
  200: {
3876
- id: string;
3727
+ url: string | unknown;
3728
+ sizeBytes: number;
3729
+ };
3730
+ };
3731
+ export type GetApiStepExecutionsByStepExecutionIdLogsArchiveResponse = GetApiStepExecutionsByStepExecutionIdLogsArchiveResponses[keyof GetApiStepExecutionsByStepExecutionIdLogsArchiveResponses];
3732
+ export type PostApiLinearPipelineDefinitionsData = {
3733
+ body: {
3877
3734
  projectId: string;
3878
3735
  key: string;
3879
3736
  name: string;
3880
3737
  description: string | unknown;
3881
3738
  status: 'draft' | 'active' | 'archived';
3882
- archivedAt: string | unknown;
3883
- inputSchemaJson: unknown;
3739
+ inputSchemaJson?: unknown;
3884
3740
  stepDefinitions: Array<{
3885
- id: string;
3886
- linearPipelineDefinitionId: string;
3887
3741
  stepDefinitionId: string;
3888
3742
  stepDefinitionVersion: number;
3889
3743
  key: string;
@@ -3913,8 +3767,6 @@ export type PutApiLinearPipelineDefinitionsResponses = {
3913
3767
  timeoutSeconds: number | unknown;
3914
3768
  retryPolicyJson: unknown;
3915
3769
  advancementPolicyDefinition: {
3916
- id: string;
3917
- linearPipelineStepDefinitionId: string;
3918
3770
  rulesJson: {
3919
3771
  rules: Array<{
3920
3772
  conditions: {
@@ -3962,36 +3814,21 @@ export type PutApiLinearPipelineDefinitionsResponses = {
3962
3814
  defaultEventType: 'continue' | 'block' | 'complete' | 'route';
3963
3815
  defaultEventParamsJson: unknown;
3964
3816
  allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
3965
- createdAt: string;
3966
- updatedAt: string;
3967
3817
  };
3968
3818
  computedSignalDefinitions: Array<{
3969
- id: string;
3970
3819
  key: string;
3971
3820
  type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
3972
3821
  inputSignalKeys: Array<string>;
3973
3822
  configJson: unknown;
3974
3823
  availableWhenResultStatusIn: Array<string> | unknown;
3975
- createdAt: string;
3976
- updatedAt: string;
3977
3824
  }>;
3978
- createdAt: string;
3979
- updatedAt: string;
3980
3825
  }>;
3981
- createdAt: string;
3982
- updatedAt: string;
3983
- };
3984
- };
3985
- export type PutApiLinearPipelineDefinitionsResponse = PutApiLinearPipelineDefinitionsResponses[keyof PutApiLinearPipelineDefinitionsResponses];
3986
- export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdData = {
3987
- body?: never;
3988
- path: {
3989
- linearPipelineDefinitionId: string;
3990
3826
  };
3827
+ path?: never;
3991
3828
  query?: never;
3992
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}';
3829
+ url: '/api/linear-pipeline-definitions';
3993
3830
  };
3994
- export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors = {
3831
+ export type PostApiLinearPipelineDefinitionsErrors = {
3995
3832
  /**
3996
3833
  * Response for status 400
3997
3834
  */
@@ -4056,6 +3893,22 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors =
4056
3893
  summary?: string;
4057
3894
  }>;
4058
3895
  };
3896
+ /**
3897
+ * Response for status 409
3898
+ */
3899
+ 409: {
3900
+ type: string;
3901
+ title: string;
3902
+ status: number;
3903
+ detail?: string;
3904
+ instance?: string;
3905
+ code?: string;
3906
+ errors?: Array<{
3907
+ path: string;
3908
+ message: string;
3909
+ summary?: string;
3910
+ }>;
3911
+ };
4059
3912
  /**
4060
3913
  * Response for status 422
4061
3914
  */
@@ -4089,8 +3942,8 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors =
4089
3942
  }>;
4090
3943
  };
4091
3944
  };
4092
- export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdError = GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors[keyof GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors];
4093
- export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses = {
3945
+ export type PostApiLinearPipelineDefinitionsError = PostApiLinearPipelineDefinitionsErrors[keyof PostApiLinearPipelineDefinitionsErrors];
3946
+ export type PostApiLinearPipelineDefinitionsResponses = {
4094
3947
  /**
4095
3948
  * Response for status 200
4096
3949
  */
@@ -4204,98 +4057,16 @@ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses
4204
4057
  updatedAt: string;
4205
4058
  };
4206
4059
  };
4207
- export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponse = GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses[keyof GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses];
4208
- export type GetApiProjectsByProjectIdLinearPipelineDefinitionsData = {
4209
- body?: never;
4210
- path: {
4211
- projectId: string;
4212
- };
4213
- query?: never;
4214
- url: '/api/projects/{projectId}/linear-pipeline-definitions';
4215
- };
4216
- export type GetApiProjectsByProjectIdLinearPipelineDefinitionsErrors = {
4217
- /**
4218
- * Response for status 401
4219
- */
4220
- 401: {
4221
- type: string;
4222
- title: string;
4223
- status: number;
4224
- detail?: string;
4225
- instance?: string;
4226
- code?: string;
4227
- errors?: Array<{
4228
- path: string;
4229
- message: string;
4230
- summary?: string;
4231
- }>;
4232
- };
4233
- /**
4234
- * Response for status 403
4235
- */
4236
- 403: {
4237
- type: string;
4238
- title: string;
4239
- status: number;
4240
- detail?: string;
4241
- instance?: string;
4242
- code?: string;
4243
- errors?: Array<{
4244
- path: string;
4245
- message: string;
4246
- summary?: string;
4247
- }>;
4248
- };
4249
- /**
4250
- * Response for status 422
4251
- */
4252
- 422: {
4253
- type: string;
4254
- title: string;
4255
- status: number;
4256
- detail?: string;
4257
- instance?: string;
4258
- code?: string;
4259
- errors?: Array<{
4260
- path: string;
4261
- message: string;
4262
- summary?: string;
4263
- }>;
4264
- };
4265
- /**
4266
- * Response for status 500
4267
- */
4268
- 500: {
4269
- type: string;
4270
- title: string;
4271
- status: number;
4272
- detail?: string;
4273
- instance?: string;
4274
- code?: string;
4275
- errors?: Array<{
4276
- path: string;
4277
- message: string;
4278
- summary?: string;
4279
- }>;
4280
- };
4281
- };
4282
- export type GetApiProjectsByProjectIdLinearPipelineDefinitionsError = GetApiProjectsByProjectIdLinearPipelineDefinitionsErrors[keyof GetApiProjectsByProjectIdLinearPipelineDefinitionsErrors];
4283
- export type GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses = {
4284
- /**
4285
- * Response for status 200
4286
- */
4287
- 200: Array<{
4288
- id: string;
4060
+ export type PostApiLinearPipelineDefinitionsResponse = PostApiLinearPipelineDefinitionsResponses[keyof PostApiLinearPipelineDefinitionsResponses];
4061
+ export type PutApiLinearPipelineDefinitionsData = {
4062
+ body: {
4289
4063
  projectId: string;
4290
4064
  key: string;
4291
4065
  name: string;
4292
4066
  description: string | unknown;
4293
4067
  status: 'draft' | 'active' | 'archived';
4294
- archivedAt: string | unknown;
4295
- inputSchemaJson: unknown;
4068
+ inputSchemaJson?: unknown;
4296
4069
  stepDefinitions: Array<{
4297
- id: string;
4298
- linearPipelineDefinitionId: string;
4299
4070
  stepDefinitionId: string;
4300
4071
  stepDefinitionVersion: number;
4301
4072
  key: string;
@@ -4325,8 +4096,6 @@ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses = {
4325
4096
  timeoutSeconds: number | unknown;
4326
4097
  retryPolicyJson: unknown;
4327
4098
  advancementPolicyDefinition: {
4328
- id: string;
4329
- linearPipelineStepDefinitionId: string;
4330
4099
  rulesJson: {
4331
4100
  rules: Array<{
4332
4101
  conditions: {
@@ -4374,36 +4143,21 @@ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses = {
4374
4143
  defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4375
4144
  defaultEventParamsJson: unknown;
4376
4145
  allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4377
- createdAt: string;
4378
- updatedAt: string;
4379
4146
  };
4380
4147
  computedSignalDefinitions: Array<{
4381
- id: string;
4382
4148
  key: string;
4383
4149
  type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
4384
4150
  inputSignalKeys: Array<string>;
4385
4151
  configJson: unknown;
4386
4152
  availableWhenResultStatusIn: Array<string> | unknown;
4387
- createdAt: string;
4388
- updatedAt: string;
4389
4153
  }>;
4390
- createdAt: string;
4391
- updatedAt: string;
4392
4154
  }>;
4393
- createdAt: string;
4394
- updatedAt: string;
4395
- }>;
4396
- };
4397
- export type GetApiProjectsByProjectIdLinearPipelineDefinitionsResponse = GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses[keyof GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses];
4398
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveData = {
4399
- body?: never;
4400
- path: {
4401
- linearPipelineDefinitionId: string;
4402
4155
  };
4156
+ path?: never;
4403
4157
  query?: never;
4404
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive';
4158
+ url: '/api/linear-pipeline-definitions';
4405
4159
  };
4406
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveErrors = {
4160
+ export type PutApiLinearPipelineDefinitionsErrors = {
4407
4161
  /**
4408
4162
  * Response for status 401
4409
4163
  */
@@ -4436,22 +4190,6 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveEr
4436
4190
  summary?: string;
4437
4191
  }>;
4438
4192
  };
4439
- /**
4440
- * Response for status 404
4441
- */
4442
- 404: {
4443
- type: string;
4444
- title: string;
4445
- status: number;
4446
- detail?: string;
4447
- instance?: string;
4448
- code?: string;
4449
- errors?: Array<{
4450
- path: string;
4451
- message: string;
4452
- summary?: string;
4453
- }>;
4454
- };
4455
4193
  /**
4456
4194
  * Response for status 422
4457
4195
  */
@@ -4485,8 +4223,8 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveEr
4485
4223
  }>;
4486
4224
  };
4487
4225
  };
4488
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveErrors];
4489
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses = {
4226
+ export type PutApiLinearPipelineDefinitionsError = PutApiLinearPipelineDefinitionsErrors[keyof PutApiLinearPipelineDefinitionsErrors];
4227
+ export type PutApiLinearPipelineDefinitionsResponses = {
4490
4228
  /**
4491
4229
  * Response for status 200
4492
4230
  */
@@ -4600,16 +4338,32 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveRe
4600
4338
  updatedAt: string;
4601
4339
  };
4602
4340
  };
4603
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses];
4604
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveData = {
4341
+ export type PutApiLinearPipelineDefinitionsResponse = PutApiLinearPipelineDefinitionsResponses[keyof PutApiLinearPipelineDefinitionsResponses];
4342
+ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdData = {
4605
4343
  body?: never;
4606
4344
  path: {
4607
4345
  linearPipelineDefinitionId: string;
4608
4346
  };
4609
4347
  query?: never;
4610
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/unarchive';
4348
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}';
4611
4349
  };
4612
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors = {
4350
+ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors = {
4351
+ /**
4352
+ * Response for status 400
4353
+ */
4354
+ 400: {
4355
+ type: string;
4356
+ title: string;
4357
+ status: number;
4358
+ detail?: string;
4359
+ instance?: string;
4360
+ code?: string;
4361
+ errors?: Array<{
4362
+ path: string;
4363
+ message: string;
4364
+ summary?: string;
4365
+ }>;
4366
+ };
4613
4367
  /**
4614
4368
  * Response for status 401
4615
4369
  */
@@ -4691,8 +4445,8 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchive
4691
4445
  }>;
4692
4446
  };
4693
4447
  };
4694
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors];
4695
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses = {
4448
+ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdError = GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors[keyof GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdErrors];
4449
+ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses = {
4696
4450
  /**
4697
4451
  * Response for status 200
4698
4452
  */
@@ -4806,107 +4560,16 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchive
4806
4560
  updatedAt: string;
4807
4561
  };
4808
4562
  };
4809
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses];
4810
- export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsData = {
4811
- body: {
4812
- stepDefinitionId: string;
4813
- stepDefinitionVersion: number;
4814
- key: string;
4815
- name: string;
4816
- description: string | unknown;
4817
- position: number;
4818
- inputBindingsJson: {
4819
- [key: string]: {
4820
- source: string;
4821
- path: string | unknown;
4822
- } | {
4823
- source: string;
4824
- field: string;
4825
- } | {
4826
- source: string;
4827
- stepKey: string;
4828
- path: string | unknown;
4829
- } | {
4830
- source: string;
4831
- stepKey: string;
4832
- signalKey: string;
4833
- } | {
4834
- source: string;
4835
- value: unknown;
4836
- };
4837
- } | unknown;
4838
- timeoutSeconds: number | unknown;
4839
- retryPolicyJson: {
4840
- [key: string]: unknown;
4841
- } | unknown;
4842
- advancementPolicyDefinition: {
4843
- rulesJson: {
4844
- rules: Array<{
4845
- conditions: {
4846
- [key: string]: unknown;
4847
- };
4848
- event: {
4849
- type: string;
4850
- params?: {
4851
- [key: string]: unknown;
4852
- };
4853
- };
4854
- name?: string;
4855
- priority?: number;
4856
- [key: string]: unknown | {
4857
- [key: string]: unknown;
4858
- } | {
4859
- type: string;
4860
- params?: {
4861
- [key: string]: unknown;
4862
- };
4863
- } | string | number | undefined;
4864
- }>;
4865
- [key: string]: unknown | Array<{
4866
- conditions: {
4867
- [key: string]: unknown;
4868
- };
4869
- event: {
4870
- type: string;
4871
- params?: {
4872
- [key: string]: unknown;
4873
- };
4874
- };
4875
- name?: string;
4876
- priority?: number;
4877
- [key: string]: unknown | {
4878
- [key: string]: unknown;
4879
- } | {
4880
- type: string;
4881
- params?: {
4882
- [key: string]: unknown;
4883
- };
4884
- } | string | number | undefined;
4885
- }>;
4886
- };
4887
- defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4888
- defaultEventParamsJson: {
4889
- [key: string]: unknown;
4890
- } | unknown;
4891
- allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4892
- };
4893
- computedSignalDefinitions: Array<{
4894
- key: string;
4895
- type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
4896
- inputSignalKeys: Array<string>;
4897
- configJson: {
4898
- [key: string]: unknown;
4899
- } | unknown;
4900
- availableWhenResultStatusIn: Array<string> | unknown;
4901
- }>;
4902
- };
4563
+ export type GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponse = GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses[keyof GetApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdResponses];
4564
+ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsData = {
4565
+ body?: never;
4903
4566
  path: {
4904
- linearPipelineDefinitionId: string;
4567
+ projectId: string;
4905
4568
  };
4906
4569
  query?: never;
4907
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps';
4570
+ url: '/api/projects/{projectId}/linear-pipeline-definitions';
4908
4571
  };
4909
- export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErrors = {
4572
+ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsErrors = {
4910
4573
  /**
4911
4574
  * Response for status 401
4912
4575
  */
@@ -4939,22 +4602,6 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErr
4939
4602
  summary?: string;
4940
4603
  }>;
4941
4604
  };
4942
- /**
4943
- * Response for status 404
4944
- */
4945
- 404: {
4946
- type: string;
4947
- title: string;
4948
- status: number;
4949
- detail?: string;
4950
- instance?: string;
4951
- code?: string;
4952
- errors?: Array<{
4953
- path: string;
4954
- message: string;
4955
- summary?: string;
4956
- }>;
4957
- };
4958
4605
  /**
4959
4606
  * Response for status 422
4960
4607
  */
@@ -4988,12 +4635,12 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErr
4988
4635
  }>;
4989
4636
  };
4990
4637
  };
4991
- export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsError = PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErrors[keyof PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErrors];
4992
- export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponses = {
4638
+ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsError = GetApiProjectsByProjectIdLinearPipelineDefinitionsErrors[keyof GetApiProjectsByProjectIdLinearPipelineDefinitionsErrors];
4639
+ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses = {
4993
4640
  /**
4994
4641
  * Response for status 200
4995
4642
  */
4996
- 200: {
4643
+ 200: Array<{
4997
4644
  id: string;
4998
4645
  projectId: string;
4999
4646
  key: string;
@@ -5101,19 +4748,224 @@ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsRes
5101
4748
  }>;
5102
4749
  createdAt: string;
5103
4750
  updatedAt: string;
4751
+ }>;
4752
+ };
4753
+ export type GetApiProjectsByProjectIdLinearPipelineDefinitionsResponse = GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses[keyof GetApiProjectsByProjectIdLinearPipelineDefinitionsResponses];
4754
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveData = {
4755
+ body?: never;
4756
+ path: {
4757
+ linearPipelineDefinitionId: string;
5104
4758
  };
4759
+ query?: never;
4760
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive';
5105
4761
  };
5106
- export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponse = PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponses[keyof PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponses];
5107
- export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdData = {
4762
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveErrors = {
4763
+ /**
4764
+ * Response for status 401
4765
+ */
4766
+ 401: {
4767
+ type: string;
4768
+ title: string;
4769
+ status: number;
4770
+ detail?: string;
4771
+ instance?: string;
4772
+ code?: string;
4773
+ errors?: Array<{
4774
+ path: string;
4775
+ message: string;
4776
+ summary?: string;
4777
+ }>;
4778
+ };
4779
+ /**
4780
+ * Response for status 403
4781
+ */
4782
+ 403: {
4783
+ type: string;
4784
+ title: string;
4785
+ status: number;
4786
+ detail?: string;
4787
+ instance?: string;
4788
+ code?: string;
4789
+ errors?: Array<{
4790
+ path: string;
4791
+ message: string;
4792
+ summary?: string;
4793
+ }>;
4794
+ };
4795
+ /**
4796
+ * Response for status 404
4797
+ */
4798
+ 404: {
4799
+ type: string;
4800
+ title: string;
4801
+ status: number;
4802
+ detail?: string;
4803
+ instance?: string;
4804
+ code?: string;
4805
+ errors?: Array<{
4806
+ path: string;
4807
+ message: string;
4808
+ summary?: string;
4809
+ }>;
4810
+ };
4811
+ /**
4812
+ * Response for status 422
4813
+ */
4814
+ 422: {
4815
+ type: string;
4816
+ title: string;
4817
+ status: number;
4818
+ detail?: string;
4819
+ instance?: string;
4820
+ code?: string;
4821
+ errors?: Array<{
4822
+ path: string;
4823
+ message: string;
4824
+ summary?: string;
4825
+ }>;
4826
+ };
4827
+ /**
4828
+ * Response for status 500
4829
+ */
4830
+ 500: {
4831
+ type: string;
4832
+ title: string;
4833
+ status: number;
4834
+ detail?: string;
4835
+ instance?: string;
4836
+ code?: string;
4837
+ errors?: Array<{
4838
+ path: string;
4839
+ message: string;
4840
+ summary?: string;
4841
+ }>;
4842
+ };
4843
+ };
4844
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveErrors];
4845
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses = {
4846
+ /**
4847
+ * Response for status 200
4848
+ */
4849
+ 200: {
4850
+ id: string;
4851
+ projectId: string;
4852
+ key: string;
4853
+ name: string;
4854
+ description: string | unknown;
4855
+ status: 'draft' | 'active' | 'archived';
4856
+ archivedAt: string | unknown;
4857
+ inputSchemaJson: unknown;
4858
+ stepDefinitions: Array<{
4859
+ id: string;
4860
+ linearPipelineDefinitionId: string;
4861
+ stepDefinitionId: string;
4862
+ stepDefinitionVersion: number;
4863
+ key: string;
4864
+ name: string;
4865
+ description: string | unknown;
4866
+ position: number;
4867
+ inputBindingsJson: {
4868
+ [key: string]: {
4869
+ source: string;
4870
+ path: string | unknown;
4871
+ } | {
4872
+ source: string;
4873
+ field: string;
4874
+ } | {
4875
+ source: string;
4876
+ stepKey: string;
4877
+ path: string | unknown;
4878
+ } | {
4879
+ source: string;
4880
+ stepKey: string;
4881
+ signalKey: string;
4882
+ } | {
4883
+ source: string;
4884
+ value: unknown;
4885
+ };
4886
+ } | unknown;
4887
+ timeoutSeconds: number | unknown;
4888
+ retryPolicyJson: unknown;
4889
+ advancementPolicyDefinition: {
4890
+ id: string;
4891
+ linearPipelineStepDefinitionId: string;
4892
+ rulesJson: {
4893
+ rules: Array<{
4894
+ conditions: {
4895
+ [key: string]: unknown;
4896
+ };
4897
+ event: {
4898
+ type: string;
4899
+ params?: {
4900
+ [key: string]: unknown;
4901
+ };
4902
+ };
4903
+ name?: string;
4904
+ priority?: number;
4905
+ [key: string]: unknown | {
4906
+ [key: string]: unknown;
4907
+ } | {
4908
+ type: string;
4909
+ params?: {
4910
+ [key: string]: unknown;
4911
+ };
4912
+ } | string | number | undefined;
4913
+ }>;
4914
+ [key: string]: unknown | Array<{
4915
+ conditions: {
4916
+ [key: string]: unknown;
4917
+ };
4918
+ event: {
4919
+ type: string;
4920
+ params?: {
4921
+ [key: string]: unknown;
4922
+ };
4923
+ };
4924
+ name?: string;
4925
+ priority?: number;
4926
+ [key: string]: unknown | {
4927
+ [key: string]: unknown;
4928
+ } | {
4929
+ type: string;
4930
+ params?: {
4931
+ [key: string]: unknown;
4932
+ };
4933
+ } | string | number | undefined;
4934
+ }>;
4935
+ };
4936
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
4937
+ defaultEventParamsJson: unknown;
4938
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
4939
+ createdAt: string;
4940
+ updatedAt: string;
4941
+ };
4942
+ computedSignalDefinitions: Array<{
4943
+ id: string;
4944
+ key: string;
4945
+ type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
4946
+ inputSignalKeys: Array<string>;
4947
+ configJson: unknown;
4948
+ availableWhenResultStatusIn: Array<string> | unknown;
4949
+ createdAt: string;
4950
+ updatedAt: string;
4951
+ }>;
4952
+ createdAt: string;
4953
+ updatedAt: string;
4954
+ }>;
4955
+ createdAt: string;
4956
+ updatedAt: string;
4957
+ };
4958
+ };
4959
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdArchiveResponses];
4960
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveData = {
5108
4961
  body?: never;
5109
4962
  path: {
5110
4963
  linearPipelineDefinitionId: string;
5111
- linearPipelineStepDefinitionId: string;
5112
4964
  };
5113
4965
  query?: never;
5114
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}';
4966
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/unarchive';
5115
4967
  };
5116
- export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors = {
4968
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors = {
5117
4969
  /**
5118
4970
  * Response for status 401
5119
4971
  */
@@ -5195,8 +5047,8 @@ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsB
5195
5047
  }>;
5196
5048
  };
5197
5049
  };
5198
- export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdError = DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors[keyof DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors];
5199
- export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses = {
5050
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveErrors];
5051
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses = {
5200
5052
  /**
5201
5053
  * Response for status 200
5202
5054
  */
@@ -5310,8 +5162,8 @@ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsB
5310
5162
  updatedAt: string;
5311
5163
  };
5312
5164
  };
5313
- export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponse = DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses[keyof DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses];
5314
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdData = {
5165
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdUnarchiveResponses];
5166
+ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsData = {
5315
5167
  body: {
5316
5168
  stepDefinitionId: string;
5317
5169
  stepDefinitionVersion: number;
@@ -5406,12 +5258,11 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5406
5258
  };
5407
5259
  path: {
5408
5260
  linearPipelineDefinitionId: string;
5409
- linearPipelineStepDefinitionId: string;
5410
5261
  };
5411
5262
  query?: never;
5412
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}';
5263
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps';
5413
5264
  };
5414
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors = {
5265
+ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErrors = {
5415
5266
  /**
5416
5267
  * Response for status 401
5417
5268
  */
@@ -5493,8 +5344,8 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5493
5344
  }>;
5494
5345
  };
5495
5346
  };
5496
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors];
5497
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses = {
5347
+ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsError = PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErrors[keyof PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsErrors];
5348
+ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponses = {
5498
5349
  /**
5499
5350
  * Response for status 200
5500
5351
  */
@@ -5608,65 +5459,1133 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5608
5459
  updatedAt: string;
5609
5460
  };
5610
5461
  };
5611
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses];
5612
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyData = {
5613
- body: {
5614
- rulesJson: {
5615
- rules: Array<{
5616
- conditions: {
5617
- [key: string]: unknown;
5618
- };
5619
- event: {
5620
- type: string;
5621
- params?: {
5622
- [key: string]: unknown;
5623
- };
5624
- };
5625
- name?: string;
5626
- priority?: number;
5627
- [key: string]: unknown | {
5628
- [key: string]: unknown;
5629
- } | {
5630
- type: string;
5631
- params?: {
5632
- [key: string]: unknown;
5633
- };
5462
+ export type PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponse = PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponses[keyof PostApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsResponses];
5463
+ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdData = {
5464
+ body?: never;
5465
+ path: {
5466
+ linearPipelineDefinitionId: string;
5467
+ linearPipelineStepDefinitionId: string;
5468
+ };
5469
+ query?: never;
5470
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}';
5471
+ };
5472
+ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors = {
5473
+ /**
5474
+ * Response for status 401
5475
+ */
5476
+ 401: {
5477
+ type: string;
5478
+ title: string;
5479
+ status: number;
5480
+ detail?: string;
5481
+ instance?: string;
5482
+ code?: string;
5483
+ errors?: Array<{
5484
+ path: string;
5485
+ message: string;
5486
+ summary?: string;
5487
+ }>;
5488
+ };
5489
+ /**
5490
+ * Response for status 403
5491
+ */
5492
+ 403: {
5493
+ type: string;
5494
+ title: string;
5495
+ status: number;
5496
+ detail?: string;
5497
+ instance?: string;
5498
+ code?: string;
5499
+ errors?: Array<{
5500
+ path: string;
5501
+ message: string;
5502
+ summary?: string;
5503
+ }>;
5504
+ };
5505
+ /**
5506
+ * Response for status 404
5507
+ */
5508
+ 404: {
5509
+ type: string;
5510
+ title: string;
5511
+ status: number;
5512
+ detail?: string;
5513
+ instance?: string;
5514
+ code?: string;
5515
+ errors?: Array<{
5516
+ path: string;
5517
+ message: string;
5518
+ summary?: string;
5519
+ }>;
5520
+ };
5521
+ /**
5522
+ * Response for status 422
5523
+ */
5524
+ 422: {
5525
+ type: string;
5526
+ title: string;
5527
+ status: number;
5528
+ detail?: string;
5529
+ instance?: string;
5530
+ code?: string;
5531
+ errors?: Array<{
5532
+ path: string;
5533
+ message: string;
5534
+ summary?: string;
5535
+ }>;
5536
+ };
5537
+ /**
5538
+ * Response for status 500
5539
+ */
5540
+ 500: {
5541
+ type: string;
5542
+ title: string;
5543
+ status: number;
5544
+ detail?: string;
5545
+ instance?: string;
5546
+ code?: string;
5547
+ errors?: Array<{
5548
+ path: string;
5549
+ message: string;
5550
+ summary?: string;
5551
+ }>;
5552
+ };
5553
+ };
5554
+ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdError = DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors[keyof DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors];
5555
+ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses = {
5556
+ /**
5557
+ * Response for status 200
5558
+ */
5559
+ 200: {
5560
+ id: string;
5561
+ projectId: string;
5562
+ key: string;
5563
+ name: string;
5564
+ description: string | unknown;
5565
+ status: 'draft' | 'active' | 'archived';
5566
+ archivedAt: string | unknown;
5567
+ inputSchemaJson: unknown;
5568
+ stepDefinitions: Array<{
5569
+ id: string;
5570
+ linearPipelineDefinitionId: string;
5571
+ stepDefinitionId: string;
5572
+ stepDefinitionVersion: number;
5573
+ key: string;
5574
+ name: string;
5575
+ description: string | unknown;
5576
+ position: number;
5577
+ inputBindingsJson: {
5578
+ [key: string]: {
5579
+ source: string;
5580
+ path: string | unknown;
5581
+ } | {
5582
+ source: string;
5583
+ field: string;
5584
+ } | {
5585
+ source: string;
5586
+ stepKey: string;
5587
+ path: string | unknown;
5588
+ } | {
5589
+ source: string;
5590
+ stepKey: string;
5591
+ signalKey: string;
5592
+ } | {
5593
+ source: string;
5594
+ value: unknown;
5595
+ };
5596
+ } | unknown;
5597
+ timeoutSeconds: number | unknown;
5598
+ retryPolicyJson: unknown;
5599
+ advancementPolicyDefinition: {
5600
+ id: string;
5601
+ linearPipelineStepDefinitionId: string;
5602
+ rulesJson: {
5603
+ rules: Array<{
5604
+ conditions: {
5605
+ [key: string]: unknown;
5606
+ };
5607
+ event: {
5608
+ type: string;
5609
+ params?: {
5610
+ [key: string]: unknown;
5611
+ };
5612
+ };
5613
+ name?: string;
5614
+ priority?: number;
5615
+ [key: string]: unknown | {
5616
+ [key: string]: unknown;
5617
+ } | {
5618
+ type: string;
5619
+ params?: {
5620
+ [key: string]: unknown;
5621
+ };
5622
+ } | string | number | undefined;
5623
+ }>;
5624
+ [key: string]: unknown | Array<{
5625
+ conditions: {
5626
+ [key: string]: unknown;
5627
+ };
5628
+ event: {
5629
+ type: string;
5630
+ params?: {
5631
+ [key: string]: unknown;
5632
+ };
5633
+ };
5634
+ name?: string;
5635
+ priority?: number;
5636
+ [key: string]: unknown | {
5637
+ [key: string]: unknown;
5638
+ } | {
5639
+ type: string;
5640
+ params?: {
5641
+ [key: string]: unknown;
5642
+ };
5643
+ } | string | number | undefined;
5644
+ }>;
5645
+ };
5646
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5647
+ defaultEventParamsJson: unknown;
5648
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
5649
+ createdAt: string;
5650
+ updatedAt: string;
5651
+ };
5652
+ computedSignalDefinitions: Array<{
5653
+ id: string;
5654
+ key: string;
5655
+ type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
5656
+ inputSignalKeys: Array<string>;
5657
+ configJson: unknown;
5658
+ availableWhenResultStatusIn: Array<string> | unknown;
5659
+ createdAt: string;
5660
+ updatedAt: string;
5661
+ }>;
5662
+ createdAt: string;
5663
+ updatedAt: string;
5664
+ }>;
5665
+ createdAt: string;
5666
+ updatedAt: string;
5667
+ };
5668
+ };
5669
+ export type DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponse = DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses[keyof DeleteApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses];
5670
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdData = {
5671
+ body: {
5672
+ stepDefinitionId: string;
5673
+ stepDefinitionVersion: number;
5674
+ key: string;
5675
+ name: string;
5676
+ description: string | unknown;
5677
+ position: number;
5678
+ inputBindingsJson: {
5679
+ [key: string]: {
5680
+ source: string;
5681
+ path: string | unknown;
5682
+ } | {
5683
+ source: string;
5684
+ field: string;
5685
+ } | {
5686
+ source: string;
5687
+ stepKey: string;
5688
+ path: string | unknown;
5689
+ } | {
5690
+ source: string;
5691
+ stepKey: string;
5692
+ signalKey: string;
5693
+ } | {
5694
+ source: string;
5695
+ value: unknown;
5696
+ };
5697
+ } | unknown;
5698
+ timeoutSeconds: number | unknown;
5699
+ retryPolicyJson: {
5700
+ [key: string]: unknown;
5701
+ } | unknown;
5702
+ advancementPolicyDefinition: {
5703
+ rulesJson: {
5704
+ rules: Array<{
5705
+ conditions: {
5706
+ [key: string]: unknown;
5707
+ };
5708
+ event: {
5709
+ type: string;
5710
+ params?: {
5711
+ [key: string]: unknown;
5712
+ };
5713
+ };
5714
+ name?: string;
5715
+ priority?: number;
5716
+ [key: string]: unknown | {
5717
+ [key: string]: unknown;
5718
+ } | {
5719
+ type: string;
5720
+ params?: {
5721
+ [key: string]: unknown;
5722
+ };
5723
+ } | string | number | undefined;
5724
+ }>;
5725
+ [key: string]: unknown | Array<{
5726
+ conditions: {
5727
+ [key: string]: unknown;
5728
+ };
5729
+ event: {
5730
+ type: string;
5731
+ params?: {
5732
+ [key: string]: unknown;
5733
+ };
5734
+ };
5735
+ name?: string;
5736
+ priority?: number;
5737
+ [key: string]: unknown | {
5738
+ [key: string]: unknown;
5739
+ } | {
5740
+ type: string;
5741
+ params?: {
5742
+ [key: string]: unknown;
5743
+ };
5744
+ } | string | number | undefined;
5745
+ }>;
5746
+ };
5747
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5748
+ defaultEventParamsJson: {
5749
+ [key: string]: unknown;
5750
+ } | unknown;
5751
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
5752
+ };
5753
+ computedSignalDefinitions: Array<{
5754
+ key: string;
5755
+ type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
5756
+ inputSignalKeys: Array<string>;
5757
+ configJson: {
5758
+ [key: string]: unknown;
5759
+ } | unknown;
5760
+ availableWhenResultStatusIn: Array<string> | unknown;
5761
+ }>;
5762
+ };
5763
+ path: {
5764
+ linearPipelineDefinitionId: string;
5765
+ linearPipelineStepDefinitionId: string;
5766
+ };
5767
+ query?: never;
5768
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}';
5769
+ };
5770
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors = {
5771
+ /**
5772
+ * Response for status 401
5773
+ */
5774
+ 401: {
5775
+ type: string;
5776
+ title: string;
5777
+ status: number;
5778
+ detail?: string;
5779
+ instance?: string;
5780
+ code?: string;
5781
+ errors?: Array<{
5782
+ path: string;
5783
+ message: string;
5784
+ summary?: string;
5785
+ }>;
5786
+ };
5787
+ /**
5788
+ * Response for status 403
5789
+ */
5790
+ 403: {
5791
+ type: string;
5792
+ title: string;
5793
+ status: number;
5794
+ detail?: string;
5795
+ instance?: string;
5796
+ code?: string;
5797
+ errors?: Array<{
5798
+ path: string;
5799
+ message: string;
5800
+ summary?: string;
5801
+ }>;
5802
+ };
5803
+ /**
5804
+ * Response for status 404
5805
+ */
5806
+ 404: {
5807
+ type: string;
5808
+ title: string;
5809
+ status: number;
5810
+ detail?: string;
5811
+ instance?: string;
5812
+ code?: string;
5813
+ errors?: Array<{
5814
+ path: string;
5815
+ message: string;
5816
+ summary?: string;
5817
+ }>;
5818
+ };
5819
+ /**
5820
+ * Response for status 422
5821
+ */
5822
+ 422: {
5823
+ type: string;
5824
+ title: string;
5825
+ status: number;
5826
+ detail?: string;
5827
+ instance?: string;
5828
+ code?: string;
5829
+ errors?: Array<{
5830
+ path: string;
5831
+ message: string;
5832
+ summary?: string;
5833
+ }>;
5834
+ };
5835
+ /**
5836
+ * Response for status 500
5837
+ */
5838
+ 500: {
5839
+ type: string;
5840
+ title: string;
5841
+ status: number;
5842
+ detail?: string;
5843
+ instance?: string;
5844
+ code?: string;
5845
+ errors?: Array<{
5846
+ path: string;
5847
+ message: string;
5848
+ summary?: string;
5849
+ }>;
5850
+ };
5851
+ };
5852
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdErrors];
5853
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses = {
5854
+ /**
5855
+ * Response for status 200
5856
+ */
5857
+ 200: {
5858
+ id: string;
5859
+ projectId: string;
5860
+ key: string;
5861
+ name: string;
5862
+ description: string | unknown;
5863
+ status: 'draft' | 'active' | 'archived';
5864
+ archivedAt: string | unknown;
5865
+ inputSchemaJson: unknown;
5866
+ stepDefinitions: Array<{
5867
+ id: string;
5868
+ linearPipelineDefinitionId: string;
5869
+ stepDefinitionId: string;
5870
+ stepDefinitionVersion: number;
5871
+ key: string;
5872
+ name: string;
5873
+ description: string | unknown;
5874
+ position: number;
5875
+ inputBindingsJson: {
5876
+ [key: string]: {
5877
+ source: string;
5878
+ path: string | unknown;
5879
+ } | {
5880
+ source: string;
5881
+ field: string;
5882
+ } | {
5883
+ source: string;
5884
+ stepKey: string;
5885
+ path: string | unknown;
5886
+ } | {
5887
+ source: string;
5888
+ stepKey: string;
5889
+ signalKey: string;
5890
+ } | {
5891
+ source: string;
5892
+ value: unknown;
5893
+ };
5894
+ } | unknown;
5895
+ timeoutSeconds: number | unknown;
5896
+ retryPolicyJson: unknown;
5897
+ advancementPolicyDefinition: {
5898
+ id: string;
5899
+ linearPipelineStepDefinitionId: string;
5900
+ rulesJson: {
5901
+ rules: Array<{
5902
+ conditions: {
5903
+ [key: string]: unknown;
5904
+ };
5905
+ event: {
5906
+ type: string;
5907
+ params?: {
5908
+ [key: string]: unknown;
5909
+ };
5910
+ };
5911
+ name?: string;
5912
+ priority?: number;
5913
+ [key: string]: unknown | {
5914
+ [key: string]: unknown;
5915
+ } | {
5916
+ type: string;
5917
+ params?: {
5918
+ [key: string]: unknown;
5919
+ };
5920
+ } | string | number | undefined;
5921
+ }>;
5922
+ [key: string]: unknown | Array<{
5923
+ conditions: {
5924
+ [key: string]: unknown;
5925
+ };
5926
+ event: {
5927
+ type: string;
5928
+ params?: {
5929
+ [key: string]: unknown;
5930
+ };
5931
+ };
5932
+ name?: string;
5933
+ priority?: number;
5934
+ [key: string]: unknown | {
5935
+ [key: string]: unknown;
5936
+ } | {
5937
+ type: string;
5938
+ params?: {
5939
+ [key: string]: unknown;
5940
+ };
5941
+ } | string | number | undefined;
5942
+ }>;
5943
+ };
5944
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5945
+ defaultEventParamsJson: unknown;
5946
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
5947
+ createdAt: string;
5948
+ updatedAt: string;
5949
+ };
5950
+ computedSignalDefinitions: Array<{
5951
+ id: string;
5952
+ key: string;
5953
+ type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
5954
+ inputSignalKeys: Array<string>;
5955
+ configJson: unknown;
5956
+ availableWhenResultStatusIn: Array<string> | unknown;
5957
+ createdAt: string;
5958
+ updatedAt: string;
5959
+ }>;
5960
+ createdAt: string;
5961
+ updatedAt: string;
5962
+ }>;
5963
+ createdAt: string;
5964
+ updatedAt: string;
5965
+ };
5966
+ };
5967
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdResponses];
5968
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyData = {
5969
+ body: {
5970
+ rulesJson: {
5971
+ rules: Array<{
5972
+ conditions: {
5973
+ [key: string]: unknown;
5974
+ };
5975
+ event: {
5976
+ type: string;
5977
+ params?: {
5978
+ [key: string]: unknown;
5979
+ };
5980
+ };
5981
+ name?: string;
5982
+ priority?: number;
5983
+ [key: string]: unknown | {
5984
+ [key: string]: unknown;
5985
+ } | {
5986
+ type: string;
5987
+ params?: {
5988
+ [key: string]: unknown;
5989
+ };
5990
+ } | string | number | undefined;
5991
+ }>;
5992
+ [key: string]: unknown | Array<{
5993
+ conditions: {
5994
+ [key: string]: unknown;
5995
+ };
5996
+ event: {
5997
+ type: string;
5998
+ params?: {
5999
+ [key: string]: unknown;
6000
+ };
6001
+ };
6002
+ name?: string;
6003
+ priority?: number;
6004
+ [key: string]: unknown | {
6005
+ [key: string]: unknown;
6006
+ } | {
6007
+ type: string;
6008
+ params?: {
6009
+ [key: string]: unknown;
6010
+ };
5634
6011
  } | string | number | undefined;
5635
6012
  }>;
5636
- [key: string]: unknown | Array<{
5637
- conditions: {
6013
+ };
6014
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
6015
+ defaultEventParamsJson: unknown;
6016
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
6017
+ };
6018
+ path: {
6019
+ linearPipelineDefinitionId: string;
6020
+ linearPipelineStepDefinitionId: string;
6021
+ };
6022
+ query?: never;
6023
+ url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}/advancement-policy';
6024
+ };
6025
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyErrors = {
6026
+ /**
6027
+ * Response for status 401
6028
+ */
6029
+ 401: {
6030
+ type: string;
6031
+ title: string;
6032
+ status: number;
6033
+ detail?: string;
6034
+ instance?: string;
6035
+ code?: string;
6036
+ errors?: Array<{
6037
+ path: string;
6038
+ message: string;
6039
+ summary?: string;
6040
+ }>;
6041
+ };
6042
+ /**
6043
+ * Response for status 403
6044
+ */
6045
+ 403: {
6046
+ type: string;
6047
+ title: string;
6048
+ status: number;
6049
+ detail?: string;
6050
+ instance?: string;
6051
+ code?: string;
6052
+ errors?: Array<{
6053
+ path: string;
6054
+ message: string;
6055
+ summary?: string;
6056
+ }>;
6057
+ };
6058
+ /**
6059
+ * Response for status 404
6060
+ */
6061
+ 404: {
6062
+ type: string;
6063
+ title: string;
6064
+ status: number;
6065
+ detail?: string;
6066
+ instance?: string;
6067
+ code?: string;
6068
+ errors?: Array<{
6069
+ path: string;
6070
+ message: string;
6071
+ summary?: string;
6072
+ }>;
6073
+ };
6074
+ /**
6075
+ * Response for status 422
6076
+ */
6077
+ 422: {
6078
+ type: string;
6079
+ title: string;
6080
+ status: number;
6081
+ detail?: string;
6082
+ instance?: string;
6083
+ code?: string;
6084
+ errors?: Array<{
6085
+ path: string;
6086
+ message: string;
6087
+ summary?: string;
6088
+ }>;
6089
+ };
6090
+ /**
6091
+ * Response for status 500
6092
+ */
6093
+ 500: {
6094
+ type: string;
6095
+ title: string;
6096
+ status: number;
6097
+ detail?: string;
6098
+ instance?: string;
6099
+ code?: string;
6100
+ errors?: Array<{
6101
+ path: string;
6102
+ message: string;
6103
+ summary?: string;
6104
+ }>;
6105
+ };
6106
+ };
6107
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyErrors];
6108
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponses = {
6109
+ /**
6110
+ * Response for status 200
6111
+ */
6112
+ 200: {
6113
+ id: string;
6114
+ projectId: string;
6115
+ key: string;
6116
+ name: string;
6117
+ description: string | unknown;
6118
+ status: 'draft' | 'active' | 'archived';
6119
+ archivedAt: string | unknown;
6120
+ inputSchemaJson: unknown;
6121
+ stepDefinitions: Array<{
6122
+ id: string;
6123
+ linearPipelineDefinitionId: string;
6124
+ stepDefinitionId: string;
6125
+ stepDefinitionVersion: number;
6126
+ key: string;
6127
+ name: string;
6128
+ description: string | unknown;
6129
+ position: number;
6130
+ inputBindingsJson: {
6131
+ [key: string]: {
6132
+ source: string;
6133
+ path: string | unknown;
6134
+ } | {
6135
+ source: string;
6136
+ field: string;
6137
+ } | {
6138
+ source: string;
6139
+ stepKey: string;
6140
+ path: string | unknown;
6141
+ } | {
6142
+ source: string;
6143
+ stepKey: string;
6144
+ signalKey: string;
6145
+ } | {
6146
+ source: string;
6147
+ value: unknown;
6148
+ };
6149
+ } | unknown;
6150
+ timeoutSeconds: number | unknown;
6151
+ retryPolicyJson: unknown;
6152
+ advancementPolicyDefinition: {
6153
+ id: string;
6154
+ linearPipelineStepDefinitionId: string;
6155
+ rulesJson: {
6156
+ rules: Array<{
6157
+ conditions: {
6158
+ [key: string]: unknown;
6159
+ };
6160
+ event: {
6161
+ type: string;
6162
+ params?: {
6163
+ [key: string]: unknown;
6164
+ };
6165
+ };
6166
+ name?: string;
6167
+ priority?: number;
6168
+ [key: string]: unknown | {
6169
+ [key: string]: unknown;
6170
+ } | {
6171
+ type: string;
6172
+ params?: {
6173
+ [key: string]: unknown;
6174
+ };
6175
+ } | string | number | undefined;
6176
+ }>;
6177
+ [key: string]: unknown | Array<{
6178
+ conditions: {
6179
+ [key: string]: unknown;
6180
+ };
6181
+ event: {
6182
+ type: string;
6183
+ params?: {
6184
+ [key: string]: unknown;
6185
+ };
6186
+ };
6187
+ name?: string;
6188
+ priority?: number;
6189
+ [key: string]: unknown | {
6190
+ [key: string]: unknown;
6191
+ } | {
6192
+ type: string;
6193
+ params?: {
6194
+ [key: string]: unknown;
6195
+ };
6196
+ } | string | number | undefined;
6197
+ }>;
6198
+ };
6199
+ defaultEventType: 'continue' | 'block' | 'complete' | 'route';
6200
+ defaultEventParamsJson: unknown;
6201
+ allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
6202
+ createdAt: string;
6203
+ updatedAt: string;
6204
+ };
6205
+ computedSignalDefinitions: Array<{
6206
+ id: string;
6207
+ key: string;
6208
+ type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
6209
+ inputSignalKeys: Array<string>;
6210
+ configJson: unknown;
6211
+ availableWhenResultStatusIn: Array<string> | unknown;
6212
+ createdAt: string;
6213
+ updatedAt: string;
6214
+ }>;
6215
+ createdAt: string;
6216
+ updatedAt: string;
6217
+ }>;
6218
+ createdAt: string;
6219
+ updatedAt: string;
6220
+ };
6221
+ };
6222
+ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponses];
6223
+ export type GetApiLinearPipelineExecutionsData = {
6224
+ body?: never;
6225
+ path?: never;
6226
+ query: {
6227
+ projectId: string;
6228
+ };
6229
+ url: '/api/linear-pipeline-executions';
6230
+ };
6231
+ export type GetApiLinearPipelineExecutionsErrors = {
6232
+ /**
6233
+ * Response for status 401
6234
+ */
6235
+ 401: {
6236
+ type: string;
6237
+ title: string;
6238
+ status: number;
6239
+ detail?: string;
6240
+ instance?: string;
6241
+ code?: string;
6242
+ errors?: Array<{
6243
+ path: string;
6244
+ message: string;
6245
+ summary?: string;
6246
+ }>;
6247
+ };
6248
+ /**
6249
+ * Response for status 403
6250
+ */
6251
+ 403: {
6252
+ type: string;
6253
+ title: string;
6254
+ status: number;
6255
+ detail?: string;
6256
+ instance?: string;
6257
+ code?: string;
6258
+ errors?: Array<{
6259
+ path: string;
6260
+ message: string;
6261
+ summary?: string;
6262
+ }>;
6263
+ };
6264
+ /**
6265
+ * Response for status 422
6266
+ */
6267
+ 422: {
6268
+ type: string;
6269
+ title: string;
6270
+ status: number;
6271
+ detail?: string;
6272
+ instance?: string;
6273
+ code?: string;
6274
+ errors?: Array<{
6275
+ path: string;
6276
+ message: string;
6277
+ summary?: string;
6278
+ }>;
6279
+ };
6280
+ /**
6281
+ * Response for status 500
6282
+ */
6283
+ 500: {
6284
+ type: string;
6285
+ title: string;
6286
+ status: number;
6287
+ detail?: string;
6288
+ instance?: string;
6289
+ code?: string;
6290
+ errors?: Array<{
6291
+ path: string;
6292
+ message: string;
6293
+ summary?: string;
6294
+ }>;
6295
+ };
6296
+ };
6297
+ export type GetApiLinearPipelineExecutionsError = GetApiLinearPipelineExecutionsErrors[keyof GetApiLinearPipelineExecutionsErrors];
6298
+ export type GetApiLinearPipelineExecutionsResponses = {
6299
+ /**
6300
+ * Response for status 200
6301
+ */
6302
+ 200: Array<{
6303
+ id: string;
6304
+ projectId: string;
6305
+ workItemId: string;
6306
+ linearPipelineDefinitionId: string;
6307
+ linearPipelineDefinitionVersionId: string;
6308
+ definitionStepCount: number;
6309
+ inputJson: unknown;
6310
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6311
+ attempts: Array<{
6312
+ id: string;
6313
+ linearPipelineExecutionId: string;
6314
+ attemptNumber: number;
6315
+ currentStepKey: string | unknown;
6316
+ startedAt: string | unknown;
6317
+ completedAt: string | unknown;
6318
+ routedToPipelineExecutionId: string | unknown;
6319
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6320
+ stepRuns: Array<{
6321
+ id: string;
6322
+ linearPipelineExecutionAttemptId: string;
6323
+ linearPipelineStepDefinitionId: string;
6324
+ stepDefinitionId: string;
6325
+ stepDefinitionVersion: number;
6326
+ stepKey: string;
6327
+ position: number;
6328
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled' | 'abandoned';
6329
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6330
+ stepExecutionId: string;
6331
+ stepExecutionResultId: string | unknown;
6332
+ inheritedFromStepRunId: string | unknown;
6333
+ acceptedByUserId: string | unknown;
6334
+ acceptedAt: string | unknown;
6335
+ acceptanceReason: string | unknown;
6336
+ outputJson: unknown;
6337
+ evaluation: {
6338
+ id: string;
6339
+ linearPipelineExecutionAttemptId: string;
6340
+ linearPipelineStepRunId: string;
6341
+ stepExecutionId: string;
6342
+ stepExecutionResultId: string;
6343
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6344
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6345
+ factsSnapshotJson: {
6346
+ [key: string]: unknown;
6347
+ };
6348
+ ruleResultsJson: unknown;
6349
+ finalStatus: 'pass' | 'fail';
6350
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6351
+ finalPayloadJson: {
6352
+ [key: string]: unknown;
6353
+ } | unknown;
6354
+ createdAt: string;
6355
+ } | unknown;
6356
+ createdAt: string;
6357
+ updatedAt: string;
6358
+ }>;
6359
+ events: Array<{
6360
+ id: string;
6361
+ linearPipelineExecutionAttemptId: string;
6362
+ 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';
6363
+ payloadJson: {
5638
6364
  [key: string]: unknown;
5639
- };
5640
- event: {
5641
- type: string;
5642
- params?: {
6365
+ } | unknown;
6366
+ createdAt: string;
6367
+ }>;
6368
+ createdAt: string;
6369
+ updatedAt: string;
6370
+ }>;
6371
+ createdAt: string;
6372
+ updatedAt: string;
6373
+ }>;
6374
+ };
6375
+ export type GetApiLinearPipelineExecutionsResponse = GetApiLinearPipelineExecutionsResponses[keyof GetApiLinearPipelineExecutionsResponses];
6376
+ export type PostApiLinearPipelineExecutionsData = {
6377
+ body: {
6378
+ projectId: string;
6379
+ workItemId: string;
6380
+ linearPipelineDefinitionId: string;
6381
+ inputJson?: unknown;
6382
+ };
6383
+ path?: never;
6384
+ query?: never;
6385
+ url: '/api/linear-pipeline-executions';
6386
+ };
6387
+ export type PostApiLinearPipelineExecutionsErrors = {
6388
+ /**
6389
+ * Response for status 400
6390
+ */
6391
+ 400: {
6392
+ type: string;
6393
+ title: string;
6394
+ status: number;
6395
+ detail?: string;
6396
+ instance?: string;
6397
+ code?: string;
6398
+ errors?: Array<{
6399
+ path: string;
6400
+ message: string;
6401
+ summary?: string;
6402
+ }>;
6403
+ };
6404
+ /**
6405
+ * Response for status 401
6406
+ */
6407
+ 401: {
6408
+ type: string;
6409
+ title: string;
6410
+ status: number;
6411
+ detail?: string;
6412
+ instance?: string;
6413
+ code?: string;
6414
+ errors?: Array<{
6415
+ path: string;
6416
+ message: string;
6417
+ summary?: string;
6418
+ }>;
6419
+ };
6420
+ /**
6421
+ * Response for status 403
6422
+ */
6423
+ 403: {
6424
+ type: string;
6425
+ title: string;
6426
+ status: number;
6427
+ detail?: string;
6428
+ instance?: string;
6429
+ code?: string;
6430
+ errors?: Array<{
6431
+ path: string;
6432
+ message: string;
6433
+ summary?: string;
6434
+ }>;
6435
+ };
6436
+ /**
6437
+ * Response for status 404
6438
+ */
6439
+ 404: {
6440
+ type: string;
6441
+ title: string;
6442
+ status: number;
6443
+ detail?: string;
6444
+ instance?: string;
6445
+ code?: string;
6446
+ errors?: Array<{
6447
+ path: string;
6448
+ message: string;
6449
+ summary?: string;
6450
+ }>;
6451
+ };
6452
+ /**
6453
+ * Response for status 409
6454
+ */
6455
+ 409: {
6456
+ type: string;
6457
+ title: string;
6458
+ status: number;
6459
+ detail?: string;
6460
+ instance?: string;
6461
+ code?: string;
6462
+ errors?: Array<{
6463
+ path: string;
6464
+ message: string;
6465
+ summary?: string;
6466
+ }>;
6467
+ };
6468
+ /**
6469
+ * Response for status 422
6470
+ */
6471
+ 422: {
6472
+ type: string;
6473
+ title: string;
6474
+ status: number;
6475
+ detail?: string;
6476
+ instance?: string;
6477
+ code?: string;
6478
+ errors?: Array<{
6479
+ path: string;
6480
+ message: string;
6481
+ summary?: string;
6482
+ }>;
6483
+ };
6484
+ /**
6485
+ * Response for status 500
6486
+ */
6487
+ 500: {
6488
+ type: string;
6489
+ title: string;
6490
+ status: number;
6491
+ detail?: string;
6492
+ instance?: string;
6493
+ code?: string;
6494
+ errors?: Array<{
6495
+ path: string;
6496
+ message: string;
6497
+ summary?: string;
6498
+ }>;
6499
+ };
6500
+ };
6501
+ export type PostApiLinearPipelineExecutionsError = PostApiLinearPipelineExecutionsErrors[keyof PostApiLinearPipelineExecutionsErrors];
6502
+ export type PostApiLinearPipelineExecutionsResponses = {
6503
+ /**
6504
+ * Response for status 200
6505
+ */
6506
+ 200: {
6507
+ id: string;
6508
+ projectId: string;
6509
+ workItemId: string;
6510
+ linearPipelineDefinitionId: string;
6511
+ linearPipelineDefinitionVersionId: string;
6512
+ definitionStepCount: number;
6513
+ inputJson: unknown;
6514
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6515
+ attempts: Array<{
6516
+ id: string;
6517
+ linearPipelineExecutionId: string;
6518
+ attemptNumber: number;
6519
+ currentStepKey: string | unknown;
6520
+ startedAt: string | unknown;
6521
+ completedAt: string | unknown;
6522
+ routedToPipelineExecutionId: string | unknown;
6523
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6524
+ stepRuns: Array<{
6525
+ id: string;
6526
+ linearPipelineExecutionAttemptId: string;
6527
+ linearPipelineStepDefinitionId: string;
6528
+ stepDefinitionId: string;
6529
+ stepDefinitionVersion: number;
6530
+ stepKey: string;
6531
+ position: number;
6532
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled' | 'abandoned';
6533
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6534
+ stepExecutionId: string;
6535
+ stepExecutionResultId: string | unknown;
6536
+ inheritedFromStepRunId: string | unknown;
6537
+ acceptedByUserId: string | unknown;
6538
+ acceptedAt: string | unknown;
6539
+ acceptanceReason: string | unknown;
6540
+ outputJson: unknown;
6541
+ evaluation: {
6542
+ id: string;
6543
+ linearPipelineExecutionAttemptId: string;
6544
+ linearPipelineStepRunId: string;
6545
+ stepExecutionId: string;
6546
+ stepExecutionResultId: string;
6547
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6548
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6549
+ factsSnapshotJson: {
5643
6550
  [key: string]: unknown;
5644
6551
  };
5645
- };
5646
- name?: string;
5647
- priority?: number;
5648
- [key: string]: unknown | {
5649
- [key: string]: unknown;
5650
- } | {
5651
- type: string;
5652
- params?: {
6552
+ ruleResultsJson: unknown;
6553
+ finalStatus: 'pass' | 'fail';
6554
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6555
+ finalPayloadJson: {
5653
6556
  [key: string]: unknown;
5654
- };
5655
- } | string | number | undefined;
6557
+ } | unknown;
6558
+ createdAt: string;
6559
+ } | unknown;
6560
+ createdAt: string;
6561
+ updatedAt: string;
5656
6562
  }>;
5657
- };
5658
- defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5659
- defaultEventParamsJson: unknown;
5660
- allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
6563
+ events: Array<{
6564
+ id: string;
6565
+ linearPipelineExecutionAttemptId: string;
6566
+ 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';
6567
+ payloadJson: {
6568
+ [key: string]: unknown;
6569
+ } | unknown;
6570
+ createdAt: string;
6571
+ }>;
6572
+ createdAt: string;
6573
+ updatedAt: string;
6574
+ }>;
6575
+ createdAt: string;
6576
+ updatedAt: string;
5661
6577
  };
6578
+ };
6579
+ export type PostApiLinearPipelineExecutionsResponse = PostApiLinearPipelineExecutionsResponses[keyof PostApiLinearPipelineExecutionsResponses];
6580
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartData = {
6581
+ body?: never;
5662
6582
  path: {
5663
- linearPipelineDefinitionId: string;
5664
- linearPipelineStepDefinitionId: string;
6583
+ linearPipelineExecutionId: string;
5665
6584
  };
5666
6585
  query?: never;
5667
- url: '/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}/advancement-policy';
6586
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/start';
5668
6587
  };
5669
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyErrors = {
6588
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors = {
5670
6589
  /**
5671
6590
  * Response for status 401
5672
6591
  */
@@ -5748,113 +6667,76 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5748
6667
  }>;
5749
6668
  };
5750
6669
  };
5751
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyError = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyErrors[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyErrors];
5752
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponses = {
6670
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors];
6671
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponses = {
5753
6672
  /**
5754
6673
  * Response for status 200
5755
6674
  */
5756
6675
  200: {
5757
6676
  id: string;
5758
6677
  projectId: string;
5759
- key: string;
5760
- name: string;
5761
- description: string | unknown;
5762
- status: 'draft' | 'active' | 'archived';
5763
- archivedAt: string | unknown;
5764
- inputSchemaJson: unknown;
5765
- stepDefinitions: Array<{
6678
+ workItemId: string;
6679
+ linearPipelineDefinitionId: string;
6680
+ linearPipelineDefinitionVersionId: string;
6681
+ definitionStepCount: number;
6682
+ inputJson: unknown;
6683
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6684
+ attempts: Array<{
5766
6685
  id: string;
5767
- linearPipelineDefinitionId: string;
5768
- stepDefinitionId: string;
5769
- stepDefinitionVersion: number;
5770
- key: string;
5771
- name: string;
5772
- description: string | unknown;
5773
- position: number;
5774
- inputBindingsJson: {
5775
- [key: string]: {
5776
- source: string;
5777
- path: string | unknown;
5778
- } | {
5779
- source: string;
5780
- field: string;
5781
- } | {
5782
- source: string;
5783
- stepKey: string;
5784
- path: string | unknown;
5785
- } | {
5786
- source: string;
5787
- stepKey: string;
5788
- signalKey: string;
5789
- } | {
5790
- source: string;
5791
- value: unknown;
5792
- };
5793
- } | unknown;
5794
- timeoutSeconds: number | unknown;
5795
- retryPolicyJson: unknown;
5796
- advancementPolicyDefinition: {
6686
+ linearPipelineExecutionId: string;
6687
+ attemptNumber: number;
6688
+ currentStepKey: string | unknown;
6689
+ startedAt: string | unknown;
6690
+ completedAt: string | unknown;
6691
+ routedToPipelineExecutionId: string | unknown;
6692
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
6693
+ stepRuns: Array<{
5797
6694
  id: string;
6695
+ linearPipelineExecutionAttemptId: string;
5798
6696
  linearPipelineStepDefinitionId: string;
5799
- rulesJson: {
5800
- rules: Array<{
5801
- conditions: {
5802
- [key: string]: unknown;
5803
- };
5804
- event: {
5805
- type: string;
5806
- params?: {
5807
- [key: string]: unknown;
5808
- };
5809
- };
5810
- name?: string;
5811
- priority?: number;
5812
- [key: string]: unknown | {
5813
- [key: string]: unknown;
5814
- } | {
5815
- type: string;
5816
- params?: {
5817
- [key: string]: unknown;
5818
- };
5819
- } | string | number | undefined;
5820
- }>;
5821
- [key: string]: unknown | Array<{
5822
- conditions: {
5823
- [key: string]: unknown;
5824
- };
5825
- event: {
5826
- type: string;
5827
- params?: {
5828
- [key: string]: unknown;
5829
- };
5830
- };
5831
- name?: string;
5832
- priority?: number;
5833
- [key: string]: unknown | {
5834
- [key: string]: unknown;
5835
- } | {
5836
- type: string;
5837
- params?: {
5838
- [key: string]: unknown;
5839
- };
5840
- } | string | number | undefined;
5841
- }>;
5842
- };
5843
- defaultEventType: 'continue' | 'block' | 'complete' | 'route';
5844
- defaultEventParamsJson: unknown;
5845
- allowedEventTypes: Array<'continue' | 'block' | 'complete' | 'route'>;
6697
+ stepDefinitionId: string;
6698
+ stepDefinitionVersion: number;
6699
+ stepKey: string;
6700
+ position: number;
6701
+ status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled' | 'abandoned';
6702
+ satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
6703
+ stepExecutionId: string;
6704
+ stepExecutionResultId: string | unknown;
6705
+ inheritedFromStepRunId: string | unknown;
6706
+ acceptedByUserId: string | unknown;
6707
+ acceptedAt: string | unknown;
6708
+ acceptanceReason: string | unknown;
6709
+ outputJson: unknown;
6710
+ evaluation: {
6711
+ id: string;
6712
+ linearPipelineExecutionAttemptId: string;
6713
+ linearPipelineStepRunId: string;
6714
+ stepExecutionId: string;
6715
+ stepExecutionResultId: string;
6716
+ stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
6717
+ linearPipelineStepAdvancementPolicyDefinitionId: string;
6718
+ factsSnapshotJson: {
6719
+ [key: string]: unknown;
6720
+ };
6721
+ ruleResultsJson: unknown;
6722
+ finalStatus: 'pass' | 'fail';
6723
+ finalAction: 'continue' | 'block' | 'complete' | 'route';
6724
+ finalPayloadJson: {
6725
+ [key: string]: unknown;
6726
+ } | unknown;
6727
+ createdAt: string;
6728
+ } | unknown;
5846
6729
  createdAt: string;
5847
6730
  updatedAt: string;
5848
- };
5849
- computedSignalDefinitions: Array<{
6731
+ }>;
6732
+ events: Array<{
5850
6733
  id: string;
5851
- key: string;
5852
- type: 'average' | 'weighted_average' | 'sum' | 'min' | 'max' | 'count' | 'boolean_any' | 'boolean_all';
5853
- inputSignalKeys: Array<string>;
5854
- configJson: unknown;
5855
- availableWhenResultStatusIn: Array<string> | unknown;
6734
+ linearPipelineExecutionAttemptId: string;
6735
+ 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';
6736
+ payloadJson: {
6737
+ [key: string]: unknown;
6738
+ } | unknown;
5856
6739
  createdAt: string;
5857
- updatedAt: string;
5858
6740
  }>;
5859
6741
  createdAt: string;
5860
6742
  updatedAt: string;
@@ -5863,16 +6745,16 @@ export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLi
5863
6745
  updatedAt: string;
5864
6746
  };
5865
6747
  };
5866
- export type PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponse = PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponses[keyof PutApiLinearPipelineDefinitionsByLinearPipelineDefinitionIdStepsByLinearPipelineStepDefinitionIdAdvancementPolicyResponses];
5867
- export type GetApiLinearPipelineExecutionsData = {
6748
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponses];
6749
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstData = {
5868
6750
  body?: never;
5869
- path?: never;
5870
- query: {
5871
- projectId: string;
6751
+ path: {
6752
+ linearPipelineExecutionId: string;
5872
6753
  };
5873
- url: '/api/linear-pipeline-executions';
6754
+ query?: never;
6755
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/first';
5874
6756
  };
5875
- export type GetApiLinearPipelineExecutionsErrors = {
6757
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstErrors = {
5876
6758
  /**
5877
6759
  * Response for status 401
5878
6760
  */
@@ -5905,6 +6787,22 @@ export type GetApiLinearPipelineExecutionsErrors = {
5905
6787
  summary?: string;
5906
6788
  }>;
5907
6789
  };
6790
+ /**
6791
+ * Response for status 404
6792
+ */
6793
+ 404: {
6794
+ type: string;
6795
+ title: string;
6796
+ status: number;
6797
+ detail?: string;
6798
+ instance?: string;
6799
+ code?: string;
6800
+ errors?: Array<{
6801
+ path: string;
6802
+ message: string;
6803
+ summary?: string;
6804
+ }>;
6805
+ };
5908
6806
  /**
5909
6807
  * Response for status 422
5910
6808
  */
@@ -5938,12 +6836,12 @@ export type GetApiLinearPipelineExecutionsErrors = {
5938
6836
  }>;
5939
6837
  };
5940
6838
  };
5941
- export type GetApiLinearPipelineExecutionsError = GetApiLinearPipelineExecutionsErrors[keyof GetApiLinearPipelineExecutionsErrors];
5942
- export type GetApiLinearPipelineExecutionsResponses = {
6839
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstErrors];
6840
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses = {
5943
6841
  /**
5944
6842
  * Response for status 200
5945
6843
  */
5946
- 200: Array<{
6844
+ 200: {
5947
6845
  id: string;
5948
6846
  projectId: string;
5949
6847
  workItemId: string;
@@ -6014,37 +6912,19 @@ export type GetApiLinearPipelineExecutionsResponses = {
6014
6912
  }>;
6015
6913
  createdAt: string;
6016
6914
  updatedAt: string;
6017
- }>;
6018
- };
6019
- export type GetApiLinearPipelineExecutionsResponse = GetApiLinearPipelineExecutionsResponses[keyof GetApiLinearPipelineExecutionsResponses];
6020
- export type PostApiLinearPipelineExecutionsData = {
6021
- body: {
6022
- projectId: string;
6023
- workItemId: string;
6024
- linearPipelineDefinitionId: string;
6025
- inputJson?: unknown;
6026
6915
  };
6027
- path?: never;
6028
- query?: never;
6029
- url: '/api/linear-pipeline-executions';
6030
6916
  };
6031
- export type PostApiLinearPipelineExecutionsErrors = {
6032
- /**
6033
- * Response for status 400
6034
- */
6035
- 400: {
6036
- type: string;
6037
- title: string;
6038
- status: number;
6039
- detail?: string;
6040
- instance?: string;
6041
- code?: string;
6042
- errors?: Array<{
6043
- path: string;
6044
- message: string;
6045
- summary?: string;
6046
- }>;
6917
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses];
6918
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningData = {
6919
+ body?: never;
6920
+ path: {
6921
+ linearPipelineExecutionId: string;
6922
+ linearPipelineStepRunId: string;
6047
6923
  };
6924
+ query?: never;
6925
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/running';
6926
+ };
6927
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors = {
6048
6928
  /**
6049
6929
  * Response for status 401
6050
6930
  */
@@ -6093,22 +6973,6 @@ export type PostApiLinearPipelineExecutionsErrors = {
6093
6973
  summary?: string;
6094
6974
  }>;
6095
6975
  };
6096
- /**
6097
- * Response for status 409
6098
- */
6099
- 409: {
6100
- type: string;
6101
- title: string;
6102
- status: number;
6103
- detail?: string;
6104
- instance?: string;
6105
- code?: string;
6106
- errors?: Array<{
6107
- path: string;
6108
- message: string;
6109
- summary?: string;
6110
- }>;
6111
- };
6112
6976
  /**
6113
6977
  * Response for status 422
6114
6978
  */
@@ -6142,8 +7006,8 @@ export type PostApiLinearPipelineExecutionsErrors = {
6142
7006
  }>;
6143
7007
  };
6144
7008
  };
6145
- export type PostApiLinearPipelineExecutionsError = PostApiLinearPipelineExecutionsErrors[keyof PostApiLinearPipelineExecutionsErrors];
6146
- export type PostApiLinearPipelineExecutionsResponses = {
7009
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors];
7010
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses = {
6147
7011
  /**
6148
7012
  * Response for status 200
6149
7013
  */
@@ -6220,16 +7084,21 @@ export type PostApiLinearPipelineExecutionsResponses = {
6220
7084
  updatedAt: string;
6221
7085
  };
6222
7086
  };
6223
- export type PostApiLinearPipelineExecutionsResponse = PostApiLinearPipelineExecutionsResponses[keyof PostApiLinearPipelineExecutionsResponses];
6224
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartData = {
6225
- body?: never;
7087
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses];
7088
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsData = {
7089
+ body: {
7090
+ status: 'succeeded' | 'failed';
7091
+ resultJson: unknown;
7092
+ errorJson: unknown;
7093
+ };
6226
7094
  path: {
6227
7095
  linearPipelineExecutionId: string;
7096
+ linearPipelineStepRunId: string;
6228
7097
  };
6229
7098
  query?: never;
6230
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/start';
7099
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/results';
6231
7100
  };
6232
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors = {
7101
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors = {
6233
7102
  /**
6234
7103
  * Response for status 401
6235
7104
  */
@@ -6311,8 +7180,8 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors
6311
7180
  }>;
6312
7181
  };
6313
7182
  };
6314
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartErrors];
6315
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponses = {
7183
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors];
7184
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses = {
6316
7185
  /**
6317
7186
  * Response for status 200
6318
7187
  */
@@ -6389,16 +7258,23 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartRespon
6389
7258
  updatedAt: string;
6390
7259
  };
6391
7260
  };
6392
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartResponses];
6393
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstData = {
6394
- body?: never;
7261
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses];
7262
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptData = {
7263
+ body: {
7264
+ projectId: string;
7265
+ stepExecutionId: string;
7266
+ stepExecutionResultId: string;
7267
+ acceptedByUserId: string;
7268
+ acceptanceReason: string;
7269
+ };
6395
7270
  path: {
6396
7271
  linearPipelineExecutionId: string;
7272
+ linearPipelineStepRunId: string;
6397
7273
  };
6398
7274
  query?: never;
6399
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/first';
7275
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/accept';
6400
7276
  };
6401
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstErrors = {
7277
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors = {
6402
7278
  /**
6403
7279
  * Response for status 401
6404
7280
  */
@@ -6480,8 +7356,8 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
6480
7356
  }>;
6481
7357
  };
6482
7358
  };
6483
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstErrors];
6484
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses = {
7359
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors];
7360
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses = {
6485
7361
  /**
6486
7362
  * Response for status 200
6487
7363
  */
@@ -6558,17 +7434,19 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
6558
7434
  updatedAt: string;
6559
7435
  };
6560
7436
  };
6561
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFirstResponses];
6562
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningData = {
6563
- body?: never;
7437
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses];
7438
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunData = {
7439
+ body: {
7440
+ mode?: 'all' | 'failed';
7441
+ fromStepKey?: string;
7442
+ };
6564
7443
  path: {
6565
7444
  linearPipelineExecutionId: string;
6566
- linearPipelineStepRunId: string;
6567
7445
  };
6568
7446
  query?: never;
6569
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/running';
7447
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/rerun';
6570
7448
  };
6571
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors = {
7449
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors = {
6572
7450
  /**
6573
7451
  * Response for status 401
6574
7452
  */
@@ -6650,8 +7528,8 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByL
6650
7528
  }>;
6651
7529
  };
6652
7530
  };
6653
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningErrors];
6654
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses = {
7531
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors];
7532
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses = {
6655
7533
  /**
6656
7534
  * Response for status 200
6657
7535
  */
@@ -6728,21 +7606,16 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByL
6728
7606
  updatedAt: string;
6729
7607
  };
6730
7608
  };
6731
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdRunningResponses];
6732
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsData = {
6733
- body: {
6734
- status: 'succeeded' | 'failed';
6735
- resultJson: unknown;
6736
- errorJson: unknown;
6737
- };
7609
+ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses];
7610
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelData = {
7611
+ body?: never;
6738
7612
  path: {
6739
7613
  linearPipelineExecutionId: string;
6740
- linearPipelineStepRunId: string;
6741
7614
  };
6742
7615
  query?: never;
6743
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/results';
7616
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/cancel';
6744
7617
  };
6745
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors = {
7618
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors = {
6746
7619
  /**
6747
7620
  * Response for status 401
6748
7621
  */
@@ -6824,8 +7697,8 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6824
7697
  }>;
6825
7698
  };
6826
7699
  };
6827
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsErrors];
6828
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses = {
7700
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors];
7701
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses = {
6829
7702
  /**
6830
7703
  * Response for status 200
6831
7704
  */
@@ -6902,23 +7775,16 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
6902
7775
  updatedAt: string;
6903
7776
  };
6904
7777
  };
6905
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdResultsResponses];
6906
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptData = {
6907
- body: {
6908
- projectId: string;
6909
- stepExecutionId: string;
6910
- stepExecutionResultId: string;
6911
- acceptedByUserId: string;
6912
- acceptanceReason: string;
6913
- };
7778
+ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses];
7779
+ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdData = {
7780
+ body?: never;
6914
7781
  path: {
6915
7782
  linearPipelineExecutionId: string;
6916
- linearPipelineStepRunId: string;
6917
7783
  };
6918
7784
  query?: never;
6919
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/accept';
7785
+ url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}';
6920
7786
  };
6921
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors = {
7787
+ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors = {
6922
7788
  /**
6923
7789
  * Response for status 401
6924
7790
  */
@@ -7000,8 +7866,8 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
7000
7866
  }>;
7001
7867
  };
7002
7868
  };
7003
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptErrors];
7004
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses = {
7869
+ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdError = GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors[keyof GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors];
7870
+ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses = {
7005
7871
  /**
7006
7872
  * Response for status 200
7007
7873
  */
@@ -7078,19 +7944,16 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
7078
7944
  updatedAt: string;
7079
7945
  };
7080
7946
  };
7081
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByLinearPipelineStepRunIdAcceptResponses];
7082
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunData = {
7083
- body: {
7084
- mode?: 'all' | 'failed';
7085
- fromStepKey?: string;
7086
- };
7947
+ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponse = GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses[keyof GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses];
7948
+ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdData = {
7949
+ body?: never;
7087
7950
  path: {
7088
- linearPipelineExecutionId: string;
7951
+ linearPipelineDefinitionId: string;
7089
7952
  };
7090
7953
  query?: never;
7091
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/rerun';
7954
+ url: '/api/linear-pipeline-executions/by-definition/{linearPipelineDefinitionId}';
7092
7955
  };
7093
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors = {
7956
+ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdErrors = {
7094
7957
  /**
7095
7958
  * Response for status 401
7096
7959
  */
@@ -7172,12 +8035,12 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunError
7172
8035
  }>;
7173
8036
  };
7174
8037
  };
7175
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunError = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunErrors];
7176
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses = {
8038
+ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdError = GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdErrors[keyof GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdErrors];
8039
+ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponses = {
7177
8040
  /**
7178
8041
  * Response for status 200
7179
8042
  */
7180
- 200: {
8043
+ 200: Array<{
7181
8044
  id: string;
7182
8045
  projectId: string;
7183
8046
  workItemId: string;
@@ -7248,18 +8111,196 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunRespo
7248
8111
  }>;
7249
8112
  createdAt: string;
7250
8113
  updatedAt: string;
8114
+ }>;
8115
+ };
8116
+ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponse = GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponses[keyof GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponses];
8117
+ export type PostApiWorkItemsData = {
8118
+ body: {
8119
+ projectId: string;
8120
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8121
+ platformId?: string | unknown;
8122
+ platformKey: string;
8123
+ url?: string | unknown;
8124
+ title: string;
8125
+ description: string;
8126
+ sourceCreatedAt: string | unknown;
8127
+ sourceUpdatedAt: string | unknown;
8128
+ fields: unknown;
8129
+ };
8130
+ path?: never;
8131
+ query?: never;
8132
+ url: '/api/work-items';
8133
+ };
8134
+ export type PostApiWorkItemsErrors = {
8135
+ /**
8136
+ * Response for status 400
8137
+ */
8138
+ 400: {
8139
+ type: string;
8140
+ title: string;
8141
+ status: number;
8142
+ detail?: string;
8143
+ instance?: string;
8144
+ code?: string;
8145
+ errors?: Array<{
8146
+ path: string;
8147
+ message: string;
8148
+ summary?: string;
8149
+ }>;
8150
+ };
8151
+ /**
8152
+ * Response for status 401
8153
+ */
8154
+ 401: {
8155
+ type: string;
8156
+ title: string;
8157
+ status: number;
8158
+ detail?: string;
8159
+ instance?: string;
8160
+ code?: string;
8161
+ errors?: Array<{
8162
+ path: string;
8163
+ message: string;
8164
+ summary?: string;
8165
+ }>;
8166
+ };
8167
+ /**
8168
+ * Response for status 403
8169
+ */
8170
+ 403: {
8171
+ type: string;
8172
+ title: string;
8173
+ status: number;
8174
+ detail?: string;
8175
+ instance?: string;
8176
+ code?: string;
8177
+ errors?: Array<{
8178
+ path: string;
8179
+ message: string;
8180
+ summary?: string;
8181
+ }>;
8182
+ };
8183
+ /**
8184
+ * Response for status 404
8185
+ */
8186
+ 404: {
8187
+ type: string;
8188
+ title: string;
8189
+ status: number;
8190
+ detail?: string;
8191
+ instance?: string;
8192
+ code?: string;
8193
+ errors?: Array<{
8194
+ path: string;
8195
+ message: string;
8196
+ summary?: string;
8197
+ }>;
8198
+ };
8199
+ /**
8200
+ * Response for status 409
8201
+ */
8202
+ 409: {
8203
+ type: string;
8204
+ title: string;
8205
+ status: number;
8206
+ detail?: string;
8207
+ instance?: string;
8208
+ code?: string;
8209
+ errors?: Array<{
8210
+ path: string;
8211
+ message: string;
8212
+ summary?: string;
8213
+ }>;
8214
+ };
8215
+ /**
8216
+ * Response for status 422
8217
+ */
8218
+ 422: {
8219
+ type: string;
8220
+ title: string;
8221
+ status: number;
8222
+ detail?: string;
8223
+ instance?: string;
8224
+ code?: string;
8225
+ errors?: Array<{
8226
+ path: string;
8227
+ message: string;
8228
+ summary?: string;
8229
+ }>;
8230
+ };
8231
+ /**
8232
+ * Response for status 500
8233
+ */
8234
+ 500: {
8235
+ type: string;
8236
+ title: string;
8237
+ status: number;
8238
+ detail?: string;
8239
+ instance?: string;
8240
+ code?: string;
8241
+ errors?: Array<{
8242
+ path: string;
8243
+ message: string;
8244
+ summary?: string;
8245
+ }>;
8246
+ };
8247
+ };
8248
+ export type PostApiWorkItemsError = PostApiWorkItemsErrors[keyof PostApiWorkItemsErrors];
8249
+ export type PostApiWorkItemsResponses = {
8250
+ /**
8251
+ * Response for status 200
8252
+ */
8253
+ 200: {
8254
+ id: string;
8255
+ projectId: string;
8256
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8257
+ platformId?: string | unknown;
8258
+ platformKey: string;
8259
+ url?: string | unknown;
8260
+ title: string;
8261
+ description: string;
8262
+ sourceCreatedAt: string | unknown;
8263
+ sourceUpdatedAt: string | unknown;
8264
+ fields: unknown;
8265
+ createdAt: string;
8266
+ updatedAt: string;
7251
8267
  };
7252
8268
  };
7253
- export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponse = PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses[keyof PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunResponses];
7254
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelData = {
7255
- body?: never;
7256
- path: {
7257
- linearPipelineExecutionId: string;
8269
+ export type PostApiWorkItemsResponse = PostApiWorkItemsResponses[keyof PostApiWorkItemsResponses];
8270
+ export type PutApiWorkItemsData = {
8271
+ body: {
8272
+ projectId: string;
8273
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8274
+ platformId?: string | unknown;
8275
+ platformKey: string;
8276
+ url?: string | unknown;
8277
+ title: string;
8278
+ description: string;
8279
+ sourceCreatedAt: string | unknown;
8280
+ sourceUpdatedAt: string | unknown;
8281
+ fields: unknown;
7258
8282
  };
8283
+ path?: never;
7259
8284
  query?: never;
7260
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}/cancel';
8285
+ url: '/api/work-items';
7261
8286
  };
7262
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors = {
8287
+ export type PutApiWorkItemsErrors = {
8288
+ /**
8289
+ * Response for status 400
8290
+ */
8291
+ 400: {
8292
+ type: string;
8293
+ title: string;
8294
+ status: number;
8295
+ detail?: string;
8296
+ instance?: string;
8297
+ code?: string;
8298
+ errors?: Array<{
8299
+ path: string;
8300
+ message: string;
8301
+ summary?: string;
8302
+ }>;
8303
+ };
7263
8304
  /**
7264
8305
  * Response for status 401
7265
8306
  */
@@ -7341,94 +8382,37 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelError
7341
8382
  }>;
7342
8383
  };
7343
8384
  };
7344
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelError = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelErrors];
7345
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses = {
8385
+ export type PutApiWorkItemsError = PutApiWorkItemsErrors[keyof PutApiWorkItemsErrors];
8386
+ export type PutApiWorkItemsResponses = {
7346
8387
  /**
7347
8388
  * Response for status 200
7348
8389
  */
7349
8390
  200: {
7350
8391
  id: string;
7351
8392
  projectId: string;
7352
- workItemId: string;
7353
- linearPipelineDefinitionId: string;
7354
- linearPipelineDefinitionVersionId: string;
7355
- definitionStepCount: number;
7356
- inputJson: unknown;
7357
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7358
- attempts: Array<{
7359
- id: string;
7360
- linearPipelineExecutionId: string;
7361
- attemptNumber: number;
7362
- currentStepKey: string | unknown;
7363
- startedAt: string | unknown;
7364
- completedAt: string | unknown;
7365
- routedToPipelineExecutionId: string | unknown;
7366
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7367
- stepRuns: Array<{
7368
- id: string;
7369
- linearPipelineExecutionAttemptId: string;
7370
- linearPipelineStepDefinitionId: string;
7371
- stepDefinitionId: string;
7372
- stepDefinitionVersion: number;
7373
- stepKey: string;
7374
- position: number;
7375
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled' | 'abandoned';
7376
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7377
- stepExecutionId: string;
7378
- stepExecutionResultId: string | unknown;
7379
- inheritedFromStepRunId: string | unknown;
7380
- acceptedByUserId: string | unknown;
7381
- acceptedAt: string | unknown;
7382
- acceptanceReason: string | unknown;
7383
- outputJson: unknown;
7384
- evaluation: {
7385
- id: string;
7386
- linearPipelineExecutionAttemptId: string;
7387
- linearPipelineStepRunId: string;
7388
- stepExecutionId: string;
7389
- stepExecutionResultId: string;
7390
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7391
- linearPipelineStepAdvancementPolicyDefinitionId: string;
7392
- factsSnapshotJson: {
7393
- [key: string]: unknown;
7394
- };
7395
- ruleResultsJson: unknown;
7396
- finalStatus: 'pass' | 'fail';
7397
- finalAction: 'continue' | 'block' | 'complete' | 'route';
7398
- finalPayloadJson: {
7399
- [key: string]: unknown;
7400
- } | unknown;
7401
- createdAt: string;
7402
- } | unknown;
7403
- createdAt: string;
7404
- updatedAt: string;
7405
- }>;
7406
- events: Array<{
7407
- id: string;
7408
- linearPipelineExecutionAttemptId: string;
7409
- 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';
7410
- payloadJson: {
7411
- [key: string]: unknown;
7412
- } | unknown;
7413
- createdAt: string;
7414
- }>;
7415
- createdAt: string;
7416
- updatedAt: string;
7417
- }>;
8393
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8394
+ platformId?: string | unknown;
8395
+ platformKey: string;
8396
+ url?: string | unknown;
8397
+ title: string;
8398
+ description: string;
8399
+ sourceCreatedAt: string | unknown;
8400
+ sourceUpdatedAt: string | unknown;
8401
+ fields: unknown;
7418
8402
  createdAt: string;
7419
8403
  updatedAt: string;
7420
8404
  };
7421
8405
  };
7422
- export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponse = PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses[keyof PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelResponses];
7423
- export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdData = {
7424
- body?: never;
7425
- path: {
7426
- linearPipelineExecutionId: string;
8406
+ export type PutApiWorkItemsResponse = PutApiWorkItemsResponses[keyof PutApiWorkItemsResponses];
8407
+ export type DeleteApiWorkItemsBatchData = {
8408
+ body: {
8409
+ input: Array<string>;
7427
8410
  };
8411
+ path?: never;
7428
8412
  query?: never;
7429
- url: '/api/linear-pipeline-executions/{linearPipelineExecutionId}';
8413
+ url: '/api/work-items/batch';
7430
8414
  };
7431
- export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors = {
8415
+ export type DeleteApiWorkItemsBatchErrors = {
7432
8416
  /**
7433
8417
  * Response for status 401
7434
8418
  */
@@ -7510,94 +8494,23 @@ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors = {
7510
8494
  }>;
7511
8495
  };
7512
8496
  };
7513
- export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdError = GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors[keyof GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdErrors];
7514
- export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses = {
8497
+ export type DeleteApiWorkItemsBatchError = DeleteApiWorkItemsBatchErrors[keyof DeleteApiWorkItemsBatchErrors];
8498
+ export type DeleteApiWorkItemsBatchResponses = {
7515
8499
  /**
7516
8500
  * Response for status 200
7517
8501
  */
7518
- 200: {
7519
- id: string;
7520
- projectId: string;
7521
- workItemId: string;
7522
- linearPipelineDefinitionId: string;
7523
- linearPipelineDefinitionVersionId: string;
7524
- definitionStepCount: number;
7525
- inputJson: unknown;
7526
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7527
- attempts: Array<{
7528
- id: string;
7529
- linearPipelineExecutionId: string;
7530
- attemptNumber: number;
7531
- currentStepKey: string | unknown;
7532
- startedAt: string | unknown;
7533
- completedAt: string | unknown;
7534
- routedToPipelineExecutionId: string | unknown;
7535
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7536
- stepRuns: Array<{
7537
- id: string;
7538
- linearPipelineExecutionAttemptId: string;
7539
- linearPipelineStepDefinitionId: string;
7540
- stepDefinitionId: string;
7541
- stepDefinitionVersion: number;
7542
- stepKey: string;
7543
- position: number;
7544
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled' | 'abandoned';
7545
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7546
- stepExecutionId: string;
7547
- stepExecutionResultId: string | unknown;
7548
- inheritedFromStepRunId: string | unknown;
7549
- acceptedByUserId: string | unknown;
7550
- acceptedAt: string | unknown;
7551
- acceptanceReason: string | unknown;
7552
- outputJson: unknown;
7553
- evaluation: {
7554
- id: string;
7555
- linearPipelineExecutionAttemptId: string;
7556
- linearPipelineStepRunId: string;
7557
- stepExecutionId: string;
7558
- stepExecutionResultId: string;
7559
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7560
- linearPipelineStepAdvancementPolicyDefinitionId: string;
7561
- factsSnapshotJson: {
7562
- [key: string]: unknown;
7563
- };
7564
- ruleResultsJson: unknown;
7565
- finalStatus: 'pass' | 'fail';
7566
- finalAction: 'continue' | 'block' | 'complete' | 'route';
7567
- finalPayloadJson: {
7568
- [key: string]: unknown;
7569
- } | unknown;
7570
- createdAt: string;
7571
- } | unknown;
7572
- createdAt: string;
7573
- updatedAt: string;
7574
- }>;
7575
- events: Array<{
7576
- id: string;
7577
- linearPipelineExecutionAttemptId: string;
7578
- 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';
7579
- payloadJson: {
7580
- [key: string]: unknown;
7581
- } | unknown;
7582
- createdAt: string;
7583
- }>;
7584
- createdAt: string;
7585
- updatedAt: string;
7586
- }>;
7587
- createdAt: string;
7588
- updatedAt: string;
7589
- };
8502
+ 200: number;
7590
8503
  };
7591
- export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponse = GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses[keyof GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses];
7592
- export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdData = {
8504
+ export type DeleteApiWorkItemsBatchResponse = DeleteApiWorkItemsBatchResponses[keyof DeleteApiWorkItemsBatchResponses];
8505
+ export type GetApiWorkItemsBatchData = {
7593
8506
  body?: never;
7594
- path: {
7595
- linearPipelineDefinitionId: string;
8507
+ path?: never;
8508
+ query: {
8509
+ workItemIds: Array<string>;
7596
8510
  };
7597
- query?: never;
7598
- url: '/api/linear-pipeline-executions/by-definition/{linearPipelineDefinitionId}';
8511
+ url: '/api/work-items/batch';
7599
8512
  };
7600
- export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdErrors = {
8513
+ export type GetApiWorkItemsBatchErrors = {
7601
8514
  /**
7602
8515
  * Response for status 401
7603
8516
  */
@@ -7679,87 +8592,30 @@ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinition
7679
8592
  }>;
7680
8593
  };
7681
8594
  };
7682
- export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdError = GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdErrors[keyof GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdErrors];
7683
- export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponses = {
8595
+ export type GetApiWorkItemsBatchError = GetApiWorkItemsBatchErrors[keyof GetApiWorkItemsBatchErrors];
8596
+ export type GetApiWorkItemsBatchResponses = {
7684
8597
  /**
7685
8598
  * Response for status 200
7686
8599
  */
7687
8600
  200: Array<{
7688
8601
  id: string;
7689
8602
  projectId: string;
7690
- workItemId: string;
7691
- linearPipelineDefinitionId: string;
7692
- linearPipelineDefinitionVersionId: string;
7693
- definitionStepCount: number;
7694
- inputJson: unknown;
7695
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7696
- attempts: Array<{
7697
- id: string;
7698
- linearPipelineExecutionId: string;
7699
- attemptNumber: number;
7700
- currentStepKey: string | unknown;
7701
- startedAt: string | unknown;
7702
- completedAt: string | unknown;
7703
- routedToPipelineExecutionId: string | unknown;
7704
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'blocked' | 'routed';
7705
- stepRuns: Array<{
7706
- id: string;
7707
- linearPipelineExecutionAttemptId: string;
7708
- linearPipelineStepDefinitionId: string;
7709
- stepDefinitionId: string;
7710
- stepDefinitionVersion: number;
7711
- stepKey: string;
7712
- position: number;
7713
- status: 'pending' | 'queued' | 'running' | 'satisfied' | 'unsatisfied' | 'blocked' | 'skipped' | 'cancelled' | 'abandoned';
7714
- satisfactionStatus: 'not_evaluated' | 'satisfied_by_policy' | 'satisfied_by_user' | 'unsatisfied_by_policy';
7715
- stepExecutionId: string;
7716
- stepExecutionResultId: string | unknown;
7717
- inheritedFromStepRunId: string | unknown;
7718
- acceptedByUserId: string | unknown;
7719
- acceptedAt: string | unknown;
7720
- acceptanceReason: string | unknown;
7721
- outputJson: unknown;
7722
- evaluation: {
7723
- id: string;
7724
- linearPipelineExecutionAttemptId: string;
7725
- linearPipelineStepRunId: string;
7726
- stepExecutionId: string;
7727
- stepExecutionResultId: string;
7728
- stepExecutionResultStatus: 'succeeded' | 'failed' | unknown;
7729
- linearPipelineStepAdvancementPolicyDefinitionId: string;
7730
- factsSnapshotJson: {
7731
- [key: string]: unknown;
7732
- };
7733
- ruleResultsJson: unknown;
7734
- finalStatus: 'pass' | 'fail';
7735
- finalAction: 'continue' | 'block' | 'complete' | 'route';
7736
- finalPayloadJson: {
7737
- [key: string]: unknown;
7738
- } | unknown;
7739
- createdAt: string;
7740
- } | unknown;
7741
- createdAt: string;
7742
- updatedAt: string;
7743
- }>;
7744
- events: Array<{
7745
- id: string;
7746
- linearPipelineExecutionAttemptId: string;
7747
- 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';
7748
- payloadJson: {
7749
- [key: string]: unknown;
7750
- } | unknown;
7751
- createdAt: string;
7752
- }>;
7753
- createdAt: string;
7754
- updatedAt: string;
7755
- }>;
8603
+ platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8604
+ platformId?: string | unknown;
8605
+ platformKey: string;
8606
+ url?: string | unknown;
8607
+ title: string;
8608
+ description: string;
8609
+ sourceCreatedAt: string | unknown;
8610
+ sourceUpdatedAt: string | unknown;
8611
+ fields: unknown;
7756
8612
  createdAt: string;
7757
8613
  updatedAt: string;
7758
8614
  }>;
7759
8615
  };
7760
- export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponse = GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponses[keyof GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinitionIdResponses];
7761
- export type PostApiWorkItemsData = {
7762
- body: {
8616
+ export type GetApiWorkItemsBatchResponse = GetApiWorkItemsBatchResponses[keyof GetApiWorkItemsBatchResponses];
8617
+ export type PostApiWorkItemsBatchData = {
8618
+ body: Array<{
7763
8619
  projectId: string;
7764
8620
  platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
7765
8621
  platformId?: string | unknown;
@@ -7770,12 +8626,12 @@ export type PostApiWorkItemsData = {
7770
8626
  sourceCreatedAt: string | unknown;
7771
8627
  sourceUpdatedAt: string | unknown;
7772
8628
  fields: unknown;
7773
- };
8629
+ }>;
7774
8630
  path?: never;
7775
8631
  query?: never;
7776
- url: '/api/work-items';
8632
+ url: '/api/work-items/batch';
7777
8633
  };
7778
- export type PostApiWorkItemsErrors = {
8634
+ export type PostApiWorkItemsBatchErrors = {
7779
8635
  /**
7780
8636
  * Response for status 400
7781
8637
  */
@@ -7889,12 +8745,12 @@ export type PostApiWorkItemsErrors = {
7889
8745
  }>;
7890
8746
  };
7891
8747
  };
7892
- export type PostApiWorkItemsError = PostApiWorkItemsErrors[keyof PostApiWorkItemsErrors];
7893
- export type PostApiWorkItemsResponses = {
8748
+ export type PostApiWorkItemsBatchError = PostApiWorkItemsBatchErrors[keyof PostApiWorkItemsBatchErrors];
8749
+ export type PostApiWorkItemsBatchResponses = {
7894
8750
  /**
7895
8751
  * Response for status 200
7896
8752
  */
7897
- 200: {
8753
+ 200: Array<{
7898
8754
  id: string;
7899
8755
  projectId: string;
7900
8756
  platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
@@ -7908,11 +8764,11 @@ export type PostApiWorkItemsResponses = {
7908
8764
  fields: unknown;
7909
8765
  createdAt: string;
7910
8766
  updatedAt: string;
7911
- };
8767
+ }>;
7912
8768
  };
7913
- export type PostApiWorkItemsResponse = PostApiWorkItemsResponses[keyof PostApiWorkItemsResponses];
7914
- export type PutApiWorkItemsData = {
7915
- body: {
8769
+ export type PostApiWorkItemsBatchResponse = PostApiWorkItemsBatchResponses[keyof PostApiWorkItemsBatchResponses];
8770
+ export type PutApiWorkItemsBatchData = {
8771
+ body: Array<{
7916
8772
  projectId: string;
7917
8773
  platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
7918
8774
  platformId?: string | unknown;
@@ -7923,12 +8779,12 @@ export type PutApiWorkItemsData = {
7923
8779
  sourceCreatedAt: string | unknown;
7924
8780
  sourceUpdatedAt: string | unknown;
7925
8781
  fields: unknown;
7926
- };
8782
+ }>;
7927
8783
  path?: never;
7928
8784
  query?: never;
7929
- url: '/api/work-items';
8785
+ url: '/api/work-items/batch';
7930
8786
  };
7931
- export type PutApiWorkItemsErrors = {
8787
+ export type PutApiWorkItemsBatchErrors = {
7932
8788
  /**
7933
8789
  * Response for status 400
7934
8790
  */
@@ -8026,12 +8882,12 @@ export type PutApiWorkItemsErrors = {
8026
8882
  }>;
8027
8883
  };
8028
8884
  };
8029
- export type PutApiWorkItemsError = PutApiWorkItemsErrors[keyof PutApiWorkItemsErrors];
8030
- export type PutApiWorkItemsResponses = {
8885
+ export type PutApiWorkItemsBatchError = PutApiWorkItemsBatchErrors[keyof PutApiWorkItemsBatchErrors];
8886
+ export type PutApiWorkItemsBatchResponses = {
8031
8887
  /**
8032
8888
  * Response for status 200
8033
8889
  */
8034
- 200: {
8890
+ 200: Array<{
8035
8891
  id: string;
8036
8892
  projectId: string;
8037
8893
  platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
@@ -8045,18 +8901,18 @@ export type PutApiWorkItemsResponses = {
8045
8901
  fields: unknown;
8046
8902
  createdAt: string;
8047
8903
  updatedAt: string;
8048
- };
8904
+ }>;
8049
8905
  };
8050
- export type PutApiWorkItemsResponse = PutApiWorkItemsResponses[keyof PutApiWorkItemsResponses];
8051
- export type DeleteApiWorkItemsBatchData = {
8052
- body: {
8053
- input: Array<string>;
8906
+ export type PutApiWorkItemsBatchResponse = PutApiWorkItemsBatchResponses[keyof PutApiWorkItemsBatchResponses];
8907
+ export type DeleteApiWorkItemsByWorkItemIdData = {
8908
+ body?: never;
8909
+ path: {
8910
+ workItemId: string;
8054
8911
  };
8055
- path?: never;
8056
8912
  query?: never;
8057
- url: '/api/work-items/batch';
8913
+ url: '/api/work-items/{workItemId}';
8058
8914
  };
8059
- export type DeleteApiWorkItemsBatchErrors = {
8915
+ export type DeleteApiWorkItemsByWorkItemIdErrors = {
8060
8916
  /**
8061
8917
  * Response for status 401
8062
8918
  */
@@ -8138,23 +8994,23 @@ export type DeleteApiWorkItemsBatchErrors = {
8138
8994
  }>;
8139
8995
  };
8140
8996
  };
8141
- export type DeleteApiWorkItemsBatchError = DeleteApiWorkItemsBatchErrors[keyof DeleteApiWorkItemsBatchErrors];
8142
- export type DeleteApiWorkItemsBatchResponses = {
8997
+ export type DeleteApiWorkItemsByWorkItemIdError = DeleteApiWorkItemsByWorkItemIdErrors[keyof DeleteApiWorkItemsByWorkItemIdErrors];
8998
+ export type DeleteApiWorkItemsByWorkItemIdResponses = {
8143
8999
  /**
8144
9000
  * Response for status 200
8145
9001
  */
8146
9002
  200: number;
8147
9003
  };
8148
- export type DeleteApiWorkItemsBatchResponse = DeleteApiWorkItemsBatchResponses[keyof DeleteApiWorkItemsBatchResponses];
8149
- export type GetApiWorkItemsBatchData = {
9004
+ export type DeleteApiWorkItemsByWorkItemIdResponse = DeleteApiWorkItemsByWorkItemIdResponses[keyof DeleteApiWorkItemsByWorkItemIdResponses];
9005
+ export type GetApiWorkItemsByWorkItemIdData = {
8150
9006
  body?: never;
8151
- path?: never;
8152
- query: {
8153
- workItemIds: Array<string>;
9007
+ path: {
9008
+ workItemId: string;
8154
9009
  };
8155
- url: '/api/work-items/batch';
9010
+ query?: never;
9011
+ url: '/api/work-items/{workItemId}';
8156
9012
  };
8157
- export type GetApiWorkItemsBatchErrors = {
9013
+ export type GetApiWorkItemsByWorkItemIdErrors = {
8158
9014
  /**
8159
9015
  * Response for status 401
8160
9016
  */
@@ -8236,12 +9092,12 @@ export type GetApiWorkItemsBatchErrors = {
8236
9092
  }>;
8237
9093
  };
8238
9094
  };
8239
- export type GetApiWorkItemsBatchError = GetApiWorkItemsBatchErrors[keyof GetApiWorkItemsBatchErrors];
8240
- export type GetApiWorkItemsBatchResponses = {
9095
+ export type GetApiWorkItemsByWorkItemIdError = GetApiWorkItemsByWorkItemIdErrors[keyof GetApiWorkItemsByWorkItemIdErrors];
9096
+ export type GetApiWorkItemsByWorkItemIdResponses = {
8241
9097
  /**
8242
9098
  * Response for status 200
8243
9099
  */
8244
- 200: Array<{
9100
+ 200: {
8245
9101
  id: string;
8246
9102
  projectId: string;
8247
9103
  platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
@@ -8255,43 +9111,18 @@ export type GetApiWorkItemsBatchResponses = {
8255
9111
  fields: unknown;
8256
9112
  createdAt: string;
8257
9113
  updatedAt: string;
8258
- }>;
9114
+ };
8259
9115
  };
8260
- export type GetApiWorkItemsBatchResponse = GetApiWorkItemsBatchResponses[keyof GetApiWorkItemsBatchResponses];
8261
- export type PostApiWorkItemsBatchData = {
8262
- body: Array<{
9116
+ export type GetApiWorkItemsByWorkItemIdResponse = GetApiWorkItemsByWorkItemIdResponses[keyof GetApiWorkItemsByWorkItemIdResponses];
9117
+ export type GetApiProjectsByProjectIdContextEntriesData = {
9118
+ body?: never;
9119
+ path: {
8263
9120
  projectId: string;
8264
- platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8265
- platformId?: string | unknown;
8266
- platformKey: string;
8267
- url?: string | unknown;
8268
- title: string;
8269
- description: string;
8270
- sourceCreatedAt: string | unknown;
8271
- sourceUpdatedAt: string | unknown;
8272
- fields: unknown;
8273
- }>;
8274
- path?: never;
9121
+ };
8275
9122
  query?: never;
8276
- url: '/api/work-items/batch';
9123
+ url: '/api/projects/{projectId}/context-entries';
8277
9124
  };
8278
- export type PostApiWorkItemsBatchErrors = {
8279
- /**
8280
- * Response for status 400
8281
- */
8282
- 400: {
8283
- type: string;
8284
- title: string;
8285
- status: number;
8286
- detail?: string;
8287
- instance?: string;
8288
- code?: string;
8289
- errors?: Array<{
8290
- path: string;
8291
- message: string;
8292
- summary?: string;
8293
- }>;
8294
- };
9125
+ export type GetApiProjectsByProjectIdContextEntriesErrors = {
8295
9126
  /**
8296
9127
  * Response for status 401
8297
9128
  */
@@ -8340,22 +9171,6 @@ export type PostApiWorkItemsBatchErrors = {
8340
9171
  summary?: string;
8341
9172
  }>;
8342
9173
  };
8343
- /**
8344
- * Response for status 409
8345
- */
8346
- 409: {
8347
- type: string;
8348
- title: string;
8349
- status: number;
8350
- detail?: string;
8351
- instance?: string;
8352
- code?: string;
8353
- errors?: Array<{
8354
- path: string;
8355
- message: string;
8356
- summary?: string;
8357
- }>;
8358
- };
8359
9174
  /**
8360
9175
  * Response for status 422
8361
9176
  */
@@ -8389,46 +9204,32 @@ export type PostApiWorkItemsBatchErrors = {
8389
9204
  }>;
8390
9205
  };
8391
9206
  };
8392
- export type PostApiWorkItemsBatchError = PostApiWorkItemsBatchErrors[keyof PostApiWorkItemsBatchErrors];
8393
- export type PostApiWorkItemsBatchResponses = {
9207
+ export type GetApiProjectsByProjectIdContextEntriesError = GetApiProjectsByProjectIdContextEntriesErrors[keyof GetApiProjectsByProjectIdContextEntriesErrors];
9208
+ export type GetApiProjectsByProjectIdContextEntriesResponses = {
8394
9209
  /**
8395
9210
  * Response for status 200
8396
9211
  */
8397
9212
  200: Array<{
8398
9213
  id: string;
8399
- projectId: string;
8400
- platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8401
- platformId?: string | unknown;
8402
- platformKey: string;
8403
- url?: string | unknown;
8404
- title: string;
8405
- description: string;
8406
- sourceCreatedAt: string | unknown;
8407
- sourceUpdatedAt: string | unknown;
8408
- fields: unknown;
8409
- createdAt: string;
8410
- updatedAt: string;
8411
- }>;
8412
- };
8413
- export type PostApiWorkItemsBatchResponse = PostApiWorkItemsBatchResponses[keyof PostApiWorkItemsBatchResponses];
8414
- export type PutApiWorkItemsBatchData = {
8415
- body: Array<{
8416
- projectId: string;
8417
- platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8418
- platformId?: string | unknown;
8419
- platformKey: string;
8420
- url?: string | unknown;
8421
- title: string;
8422
- description: string;
8423
- sourceCreatedAt: string | unknown;
8424
- sourceUpdatedAt: string | unknown;
8425
- fields: unknown;
9214
+ projectId: string;
9215
+ category: 'persona' | 'product' | 'workflows' | 'glossary' | 'compliance' | 'billing' | 'app-surfaces';
9216
+ key: string;
9217
+ value: string;
9218
+ createdByUserId: string | unknown;
9219
+ createdAt: string;
9220
+ updatedAt: string;
8426
9221
  }>;
8427
- path?: never;
9222
+ };
9223
+ export type GetApiProjectsByProjectIdContextEntriesResponse = GetApiProjectsByProjectIdContextEntriesResponses[keyof GetApiProjectsByProjectIdContextEntriesResponses];
9224
+ export type PostApiProjectsByProjectIdContextEntriesData = {
9225
+ body: unknown;
9226
+ path: {
9227
+ projectId: string;
9228
+ };
8428
9229
  query?: never;
8429
- url: '/api/work-items/batch';
9230
+ url: '/api/projects/{projectId}/context-entries';
8430
9231
  };
8431
- export type PutApiWorkItemsBatchErrors = {
9232
+ export type PostApiProjectsByProjectIdContextEntriesErrors = {
8432
9233
  /**
8433
9234
  * Response for status 400
8434
9235
  */
@@ -8526,37 +9327,33 @@ export type PutApiWorkItemsBatchErrors = {
8526
9327
  }>;
8527
9328
  };
8528
9329
  };
8529
- export type PutApiWorkItemsBatchError = PutApiWorkItemsBatchErrors[keyof PutApiWorkItemsBatchErrors];
8530
- export type PutApiWorkItemsBatchResponses = {
9330
+ export type PostApiProjectsByProjectIdContextEntriesError = PostApiProjectsByProjectIdContextEntriesErrors[keyof PostApiProjectsByProjectIdContextEntriesErrors];
9331
+ export type PostApiProjectsByProjectIdContextEntriesResponses = {
8531
9332
  /**
8532
9333
  * Response for status 200
8533
9334
  */
8534
- 200: Array<{
9335
+ 200: {
8535
9336
  id: string;
8536
9337
  projectId: string;
8537
- platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8538
- platformId?: string | unknown;
8539
- platformKey: string;
8540
- url?: string | unknown;
8541
- title: string;
8542
- description: string;
8543
- sourceCreatedAt: string | unknown;
8544
- sourceUpdatedAt: string | unknown;
8545
- fields: unknown;
9338
+ category: 'persona' | 'product' | 'workflows' | 'glossary' | 'compliance' | 'billing' | 'app-surfaces';
9339
+ key: string;
9340
+ value: string;
9341
+ createdByUserId: string | unknown;
8546
9342
  createdAt: string;
8547
9343
  updatedAt: string;
8548
- }>;
9344
+ };
8549
9345
  };
8550
- export type PutApiWorkItemsBatchResponse = PutApiWorkItemsBatchResponses[keyof PutApiWorkItemsBatchResponses];
8551
- export type DeleteApiWorkItemsByWorkItemIdData = {
9346
+ export type PostApiProjectsByProjectIdContextEntriesResponse = PostApiProjectsByProjectIdContextEntriesResponses[keyof PostApiProjectsByProjectIdContextEntriesResponses];
9347
+ export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdData = {
8552
9348
  body?: never;
8553
9349
  path: {
8554
- workItemId: string;
9350
+ projectId: string;
9351
+ entryId: string;
8555
9352
  };
8556
9353
  query?: never;
8557
- url: '/api/work-items/{workItemId}';
9354
+ url: '/api/projects/{projectId}/context-entries/{entryId}';
8558
9355
  };
8559
- export type DeleteApiWorkItemsByWorkItemIdErrors = {
9356
+ export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors = {
8560
9357
  /**
8561
9358
  * Response for status 401
8562
9359
  */
@@ -8638,23 +9435,25 @@ export type DeleteApiWorkItemsByWorkItemIdErrors = {
8638
9435
  }>;
8639
9436
  };
8640
9437
  };
8641
- export type DeleteApiWorkItemsByWorkItemIdError = DeleteApiWorkItemsByWorkItemIdErrors[keyof DeleteApiWorkItemsByWorkItemIdErrors];
8642
- export type DeleteApiWorkItemsByWorkItemIdResponses = {
9438
+ export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdError = DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors[keyof DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors];
9439
+ export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdResponses = {
8643
9440
  /**
8644
9441
  * Response for status 200
8645
9442
  */
8646
- 200: number;
9443
+ 200: unknown;
8647
9444
  };
8648
- export type DeleteApiWorkItemsByWorkItemIdResponse = DeleteApiWorkItemsByWorkItemIdResponses[keyof DeleteApiWorkItemsByWorkItemIdResponses];
8649
- export type GetApiWorkItemsByWorkItemIdData = {
9445
+ export type GetApiProjectsByProjectIdNotificationsData = {
8650
9446
  body?: never;
8651
9447
  path: {
8652
- workItemId: string;
9448
+ projectId: string;
8653
9449
  };
8654
- query?: never;
8655
- url: '/api/work-items/{workItemId}';
9450
+ query?: {
9451
+ workItemId?: string;
9452
+ status?: 'pending' | 'delivered' | 'partially_delivered' | 'suppressed' | 'failed';
9453
+ };
9454
+ url: '/api/projects/{projectId}/notifications';
8656
9455
  };
8657
- export type GetApiWorkItemsByWorkItemIdErrors = {
9456
+ export type GetApiProjectsByProjectIdNotificationsErrors = {
8658
9457
  /**
8659
9458
  * Response for status 401
8660
9459
  */
@@ -8736,37 +9535,42 @@ export type GetApiWorkItemsByWorkItemIdErrors = {
8736
9535
  }>;
8737
9536
  };
8738
9537
  };
8739
- export type GetApiWorkItemsByWorkItemIdError = GetApiWorkItemsByWorkItemIdErrors[keyof GetApiWorkItemsByWorkItemIdErrors];
8740
- export type GetApiWorkItemsByWorkItemIdResponses = {
9538
+ export type GetApiProjectsByProjectIdNotificationsError = GetApiProjectsByProjectIdNotificationsErrors[keyof GetApiProjectsByProjectIdNotificationsErrors];
9539
+ export type GetApiProjectsByProjectIdNotificationsResponses = {
8741
9540
  /**
8742
9541
  * Response for status 200
8743
9542
  */
8744
- 200: {
9543
+ 200: Array<{
8745
9544
  id: string;
8746
9545
  projectId: string;
8747
- platform: 'jira' | 'github' | 'linear' | 'boboddy' | 'custom';
8748
- platformId?: string | unknown;
8749
- platformKey: string;
8750
- url?: string | unknown;
8751
- title: string;
8752
- description: string;
8753
- sourceCreatedAt: string | unknown;
8754
- sourceUpdatedAt: string | unknown;
8755
- fields: unknown;
9546
+ workItemId: string | unknown;
9547
+ pipelineExecutionId: string | unknown;
9548
+ stepExecutionId: string | unknown;
9549
+ stepSignalId: string | unknown;
9550
+ agentSessionId: string | unknown;
9551
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
9552
+ audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
9553
+ title: string;
9554
+ body: string;
9555
+ priority: 'low' | 'normal' | 'high' | 'urgent';
9556
+ source: 'agent' | 'system' | 'user';
9557
+ status: 'pending' | 'delivered' | 'partially_delivered' | 'suppressed' | 'failed';
9558
+ payloadJson: unknown;
8756
9559
  createdAt: string;
8757
9560
  updatedAt: string;
8758
- };
9561
+ }>;
8759
9562
  };
8760
- export type GetApiWorkItemsByWorkItemIdResponse = GetApiWorkItemsByWorkItemIdResponses[keyof GetApiWorkItemsByWorkItemIdResponses];
8761
- export type GetApiProjectsByProjectIdContextEntriesData = {
9563
+ export type GetApiProjectsByProjectIdNotificationsResponse = GetApiProjectsByProjectIdNotificationsResponses[keyof GetApiProjectsByProjectIdNotificationsResponses];
9564
+ export type GetApiProjectsByProjectIdNotificationsByNotificationIdData = {
8762
9565
  body?: never;
8763
9566
  path: {
8764
9567
  projectId: string;
9568
+ notificationId: string;
8765
9569
  };
8766
9570
  query?: never;
8767
- url: '/api/projects/{projectId}/context-entries';
9571
+ url: '/api/projects/{projectId}/notifications/{notificationId}';
8768
9572
  };
8769
- export type GetApiProjectsByProjectIdContextEntriesErrors = {
9573
+ export type GetApiProjectsByProjectIdNotificationsByNotificationIdErrors = {
8770
9574
  /**
8771
9575
  * Response for status 401
8772
9576
  */
@@ -8848,48 +9652,53 @@ export type GetApiProjectsByProjectIdContextEntriesErrors = {
8848
9652
  }>;
8849
9653
  };
8850
9654
  };
8851
- export type GetApiProjectsByProjectIdContextEntriesError = GetApiProjectsByProjectIdContextEntriesErrors[keyof GetApiProjectsByProjectIdContextEntriesErrors];
8852
- export type GetApiProjectsByProjectIdContextEntriesResponses = {
9655
+ export type GetApiProjectsByProjectIdNotificationsByNotificationIdError = GetApiProjectsByProjectIdNotificationsByNotificationIdErrors[keyof GetApiProjectsByProjectIdNotificationsByNotificationIdErrors];
9656
+ export type GetApiProjectsByProjectIdNotificationsByNotificationIdResponses = {
8853
9657
  /**
8854
9658
  * Response for status 200
8855
9659
  */
8856
- 200: Array<{
9660
+ 200: {
8857
9661
  id: string;
8858
9662
  projectId: string;
8859
- category: 'persona' | 'product' | 'workflows' | 'glossary' | 'compliance' | 'billing' | 'app-surfaces';
8860
- key: string;
8861
- value: string;
8862
- createdByUserId: string | unknown;
9663
+ workItemId: string | unknown;
9664
+ pipelineExecutionId: string | unknown;
9665
+ stepExecutionId: string | unknown;
9666
+ stepSignalId: string | unknown;
9667
+ agentSessionId: string | unknown;
9668
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
9669
+ audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
9670
+ title: string;
9671
+ body: string;
9672
+ priority: 'low' | 'normal' | 'high' | 'urgent';
9673
+ source: 'agent' | 'system' | 'user';
9674
+ status: 'pending' | 'delivered' | 'partially_delivered' | 'suppressed' | 'failed';
9675
+ payloadJson: unknown;
8863
9676
  createdAt: string;
8864
9677
  updatedAt: string;
8865
- }>;
9678
+ deliveries: Array<{
9679
+ id: string;
9680
+ notificationId: string;
9681
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
9682
+ status: 'pending' | 'sent' | 'failed' | 'suppressed';
9683
+ suppressionReason: string | unknown;
9684
+ externalUrl: string | unknown;
9685
+ externalId: string | unknown;
9686
+ createdAt: string;
9687
+ sentAt: string | unknown;
9688
+ }>;
9689
+ };
8866
9690
  };
8867
- export type GetApiProjectsByProjectIdContextEntriesResponse = GetApiProjectsByProjectIdContextEntriesResponses[keyof GetApiProjectsByProjectIdContextEntriesResponses];
8868
- export type PostApiProjectsByProjectIdContextEntriesData = {
8869
- body: unknown;
9691
+ export type GetApiProjectsByProjectIdNotificationsByNotificationIdResponse = GetApiProjectsByProjectIdNotificationsByNotificationIdResponses[keyof GetApiProjectsByProjectIdNotificationsByNotificationIdResponses];
9692
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdDismissData = {
9693
+ body?: never;
8870
9694
  path: {
8871
9695
  projectId: string;
9696
+ notificationId: string;
8872
9697
  };
8873
9698
  query?: never;
8874
- url: '/api/projects/{projectId}/context-entries';
9699
+ url: '/api/projects/{projectId}/notifications/{notificationId}/dismiss';
8875
9700
  };
8876
- export type PostApiProjectsByProjectIdContextEntriesErrors = {
8877
- /**
8878
- * Response for status 400
8879
- */
8880
- 400: {
8881
- type: string;
8882
- title: string;
8883
- status: number;
8884
- detail?: string;
8885
- instance?: string;
8886
- code?: string;
8887
- errors?: Array<{
8888
- path: string;
8889
- message: string;
8890
- summary?: string;
8891
- }>;
8892
- };
9701
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdDismissErrors = {
8893
9702
  /**
8894
9703
  * Response for status 401
8895
9704
  */
@@ -8971,33 +9780,25 @@ export type PostApiProjectsByProjectIdContextEntriesErrors = {
8971
9780
  }>;
8972
9781
  };
8973
9782
  };
8974
- export type PostApiProjectsByProjectIdContextEntriesError = PostApiProjectsByProjectIdContextEntriesErrors[keyof PostApiProjectsByProjectIdContextEntriesErrors];
8975
- export type PostApiProjectsByProjectIdContextEntriesResponses = {
9783
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdDismissError = PostApiProjectsByProjectIdNotificationsByNotificationIdDismissErrors[keyof PostApiProjectsByProjectIdNotificationsByNotificationIdDismissErrors];
9784
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdDismissResponses = {
8976
9785
  /**
8977
9786
  * Response for status 200
8978
9787
  */
8979
- 200: {
8980
- id: string;
8981
- projectId: string;
8982
- category: 'persona' | 'product' | 'workflows' | 'glossary' | 'compliance' | 'billing' | 'app-surfaces';
8983
- key: string;
8984
- value: string;
8985
- createdByUserId: string | unknown;
8986
- createdAt: string;
8987
- updatedAt: string;
8988
- };
9788
+ 200: unknown;
8989
9789
  };
8990
- export type PostApiProjectsByProjectIdContextEntriesResponse = PostApiProjectsByProjectIdContextEntriesResponses[keyof PostApiProjectsByProjectIdContextEntriesResponses];
8991
- export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdData = {
8992
- body?: never;
9790
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondData = {
9791
+ body: {
9792
+ answer: string;
9793
+ };
8993
9794
  path: {
8994
9795
  projectId: string;
8995
- entryId: string;
9796
+ notificationId: string;
8996
9797
  };
8997
9798
  query?: never;
8998
- url: '/api/projects/{projectId}/context-entries/{entryId}';
9799
+ url: '/api/projects/{projectId}/notifications/{notificationId}/respond';
8999
9800
  };
9000
- export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors = {
9801
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondErrors = {
9001
9802
  /**
9002
9803
  * Response for status 401
9003
9804
  */
@@ -9079,23 +9880,41 @@ export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors = {
9079
9880
  }>;
9080
9881
  };
9081
9882
  };
9082
- export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdError = DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors[keyof DeleteApiProjectsByProjectIdContextEntriesByEntryIdErrors];
9083
- export type DeleteApiProjectsByProjectIdContextEntriesByEntryIdResponses = {
9883
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondError = PostApiProjectsByProjectIdNotificationsByNotificationIdRespondErrors[keyof PostApiProjectsByProjectIdNotificationsByNotificationIdRespondErrors];
9884
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponses = {
9084
9885
  /**
9085
9886
  * Response for status 200
9086
9887
  */
9087
- 200: unknown;
9888
+ 200: {
9889
+ id: string;
9890
+ projectId: string;
9891
+ workItemId: string | unknown;
9892
+ pipelineExecutionId: string | unknown;
9893
+ stepExecutionId: string | unknown;
9894
+ stepSignalId: string | unknown;
9895
+ agentSessionId: string | unknown;
9896
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
9897
+ audience: 'assignee' | 'reporter' | 'project_admins' | 'specific_users';
9898
+ title: string;
9899
+ body: string;
9900
+ priority: 'low' | 'normal' | 'high' | 'urgent';
9901
+ source: 'agent' | 'system' | 'user';
9902
+ status: 'pending' | 'delivered' | 'partially_delivered' | 'suppressed' | 'failed';
9903
+ payloadJson: unknown;
9904
+ createdAt: string;
9905
+ updatedAt: string;
9906
+ };
9088
9907
  };
9089
- export type GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsData = {
9908
+ export type PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponse = PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponses[keyof PostApiProjectsByProjectIdNotificationsByNotificationIdRespondResponses];
9909
+ export type GetApiProjectsByProjectIdNotificationRulesData = {
9090
9910
  body?: never;
9091
9911
  path: {
9092
9912
  projectId: string;
9093
- stepSignalId: string;
9094
9913
  };
9095
9914
  query?: never;
9096
- url: '/api/projects/{projectId}/step-signals/{stepSignalId}/feedback-requests';
9915
+ url: '/api/projects/{projectId}/notification-rules';
9097
9916
  };
9098
- export type GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsErrors = {
9917
+ export type GetApiProjectsByProjectIdNotificationRulesErrors = {
9099
9918
  /**
9100
9919
  * Response for status 401
9101
9920
  */
@@ -9177,33 +9996,39 @@ export type GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsEr
9177
9996
  }>;
9178
9997
  };
9179
9998
  };
9180
- export type GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsError = GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsErrors[keyof GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsErrors];
9181
- export type GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsResponses = {
9999
+ export type GetApiProjectsByProjectIdNotificationRulesError = GetApiProjectsByProjectIdNotificationRulesErrors[keyof GetApiProjectsByProjectIdNotificationRulesErrors];
10000
+ export type GetApiProjectsByProjectIdNotificationRulesResponses = {
9182
10001
  /**
9183
10002
  * Response for status 200
9184
10003
  */
9185
10004
  200: Array<{
9186
10005
  id: string;
9187
- stepSignalId: string;
9188
- question: string;
9189
- category: string;
9190
- suggestedKey: string | unknown;
9191
- status: 'pending' | 'answered' | 'declined';
10006
+ projectId: string;
10007
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
10008
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
10009
+ enabled: boolean;
10010
+ minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
10011
+ conditionsJson: unknown;
9192
10012
  createdAt: string;
9193
10013
  updatedAt: string;
9194
10014
  }>;
9195
10015
  };
9196
- export type GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsResponse = GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsResponses[keyof GetApiProjectsByProjectIdStepSignalsByStepSignalIdFeedbackRequestsResponses];
9197
- export type PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDeclineData = {
9198
- body?: never;
10016
+ export type GetApiProjectsByProjectIdNotificationRulesResponse = GetApiProjectsByProjectIdNotificationRulesResponses[keyof GetApiProjectsByProjectIdNotificationRulesResponses];
10017
+ export type PutApiProjectsByProjectIdNotificationRulesData = {
10018
+ body: {
10019
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
10020
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
10021
+ enabled: boolean;
10022
+ minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
10023
+ conditionsJson: unknown;
10024
+ };
9199
10025
  path: {
9200
10026
  projectId: string;
9201
- feedbackRequestId: string;
9202
10027
  };
9203
10028
  query?: never;
9204
- url: '/api/projects/{projectId}/feedback-requests/{feedbackRequestId}/decline';
10029
+ url: '/api/projects/{projectId}/notification-rules';
9205
10030
  };
9206
- export type PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDeclineErrors = {
10031
+ export type PutApiProjectsByProjectIdNotificationRulesErrors = {
9207
10032
  /**
9208
10033
  * Response for status 401
9209
10034
  */
@@ -9285,13 +10110,24 @@ export type PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDecline
9285
10110
  }>;
9286
10111
  };
9287
10112
  };
9288
- export type PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDeclineError = PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDeclineErrors[keyof PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDeclineErrors];
9289
- export type PostApiProjectsByProjectIdFeedbackRequestsByFeedbackRequestIdDeclineResponses = {
10113
+ export type PutApiProjectsByProjectIdNotificationRulesError = PutApiProjectsByProjectIdNotificationRulesErrors[keyof PutApiProjectsByProjectIdNotificationRulesErrors];
10114
+ export type PutApiProjectsByProjectIdNotificationRulesResponses = {
9290
10115
  /**
9291
10116
  * Response for status 200
9292
10117
  */
9293
- 200: unknown;
10118
+ 200: {
10119
+ id: string;
10120
+ projectId: string;
10121
+ kind: 'feedback_request' | 'status_update' | 'blocked' | 'result_ready' | 'warning';
10122
+ channel: 'in_app' | 'work_item_platform_comment' | 'email' | 'slack';
10123
+ enabled: boolean;
10124
+ minPriority: 'low' | 'normal' | 'high' | 'urgent' | unknown;
10125
+ conditionsJson: unknown;
10126
+ createdAt: string;
10127
+ updatedAt: string;
10128
+ };
9294
10129
  };
10130
+ export type PutApiProjectsByProjectIdNotificationRulesResponse = PutApiProjectsByProjectIdNotificationRulesResponses[keyof PutApiProjectsByProjectIdNotificationRulesResponses];
9295
10131
  export type GetApiStepDefinitionTemplatesData = {
9296
10132
  body?: never;
9297
10133
  path?: never;
@@ -10785,3 +11621,116 @@ export type PostApiProjectInvitesByTokenAcceptResponses = {
10785
11621
  };
10786
11622
  };
10787
11623
  export type PostApiProjectInvitesByTokenAcceptResponse = PostApiProjectInvitesByTokenAcceptResponses[keyof PostApiProjectInvitesByTokenAcceptResponses];
11624
+ export type GetApiOrgsByOrgIdUsageData = {
11625
+ body?: never;
11626
+ path: {
11627
+ orgId: string;
11628
+ };
11629
+ query?: never;
11630
+ url: '/api/orgs/{orgId}/usage';
11631
+ };
11632
+ export type GetApiOrgsByOrgIdUsageErrors = {
11633
+ /**
11634
+ * Response for status 401
11635
+ */
11636
+ 401: {
11637
+ type: string;
11638
+ title: string;
11639
+ status: number;
11640
+ detail?: string;
11641
+ instance?: string;
11642
+ code?: string;
11643
+ errors?: Array<{
11644
+ path: string;
11645
+ message: string;
11646
+ summary?: string;
11647
+ }>;
11648
+ };
11649
+ /**
11650
+ * Response for status 403
11651
+ */
11652
+ 403: {
11653
+ type: string;
11654
+ title: string;
11655
+ status: number;
11656
+ detail?: string;
11657
+ instance?: string;
11658
+ code?: string;
11659
+ errors?: Array<{
11660
+ path: string;
11661
+ message: string;
11662
+ summary?: string;
11663
+ }>;
11664
+ };
11665
+ /**
11666
+ * Response for status 404
11667
+ */
11668
+ 404: {
11669
+ type: string;
11670
+ title: string;
11671
+ status: number;
11672
+ detail?: string;
11673
+ instance?: string;
11674
+ code?: string;
11675
+ errors?: Array<{
11676
+ path: string;
11677
+ message: string;
11678
+ summary?: string;
11679
+ }>;
11680
+ };
11681
+ /**
11682
+ * Response for status 422
11683
+ */
11684
+ 422: {
11685
+ type: string;
11686
+ title: string;
11687
+ status: number;
11688
+ detail?: string;
11689
+ instance?: string;
11690
+ code?: string;
11691
+ errors?: Array<{
11692
+ path: string;
11693
+ message: string;
11694
+ summary?: string;
11695
+ }>;
11696
+ };
11697
+ /**
11698
+ * Response for status 500
11699
+ */
11700
+ 500: {
11701
+ type: string;
11702
+ title: string;
11703
+ status: number;
11704
+ detail?: string;
11705
+ instance?: string;
11706
+ code?: string;
11707
+ errors?: Array<{
11708
+ path: string;
11709
+ message: string;
11710
+ summary?: string;
11711
+ }>;
11712
+ };
11713
+ };
11714
+ export type GetApiOrgsByOrgIdUsageError = GetApiOrgsByOrgIdUsageErrors[keyof GetApiOrgsByOrgIdUsageErrors];
11715
+ export type GetApiOrgsByOrgIdUsageResponses = {
11716
+ /**
11717
+ * Response for status 200
11718
+ */
11719
+ 200: {
11720
+ orgId: string;
11721
+ period: string;
11722
+ planId: 'free';
11723
+ writes: number;
11724
+ reads: number;
11725
+ storageBytes: number;
11726
+ limits: {
11727
+ maxWritesPerMonth: number;
11728
+ maxReadsPerMonth: number;
11729
+ maxStorageBytes: number;
11730
+ };
11731
+ resetsAt: string;
11732
+ createdAt: string;
11733
+ updatedAt: string;
11734
+ };
11735
+ };
11736
+ export type GetApiOrgsByOrgIdUsageResponse = GetApiOrgsByOrgIdUsageResponses[keyof GetApiOrgsByOrgIdUsageResponses];