@apollo-deploy/typescript-sdk 1.0.0 → 1.0.1

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.
@@ -16,118 +16,6 @@ export interface AuthOpenidConnectDiscoveryMetadataResponse {
16
16
  token_endpoint: string;
17
17
  userinfo_endpoint?: string;
18
18
  }
19
- export interface AuthRegisterUserInput {
20
- email: string;
21
- password: string;
22
- name?: string;
23
- }
24
- export interface AuthRegisterUserResponse {
25
- user: {
26
- id: string;
27
- email: string;
28
- name: string | null;
29
- role?: ('admin' | 'user') | null;
30
- emailVerified: boolean;
31
- image?: string | null;
32
- createdAt: string | string;
33
- updatedAt: string | string;
34
- };
35
- sessionToken?: string;
36
- }
37
- export interface AuthAuthenticateUserInput {
38
- email: string;
39
- password: string;
40
- rememberMe?: boolean;
41
- }
42
- export interface AuthAuthenticateUserResponse {
43
- sessionToken: string;
44
- user: {
45
- id: string;
46
- email: string;
47
- name: string | null;
48
- role?: ('admin' | 'user') | null;
49
- emailVerified: boolean;
50
- image?: string | null;
51
- createdAt: string | string;
52
- updatedAt: string | string;
53
- };
54
- }
55
- export interface AuthLogOutUserResponse {
56
- success: boolean;
57
- }
58
- export interface AuthResendEmailVerificationInput {
59
- email: string;
60
- }
61
- export interface AuthResendEmailVerificationResponse {
62
- message: string;
63
- }
64
- export interface AuthVerifyEmailAddressInput {
65
- token: string;
66
- }
67
- export interface AuthVerifyEmailAddressResponse {
68
- status: 'verified' | 'already_verified' | 'invalid_token' | 'expired_token';
69
- }
70
- export interface AuthRequestPasswordResetInput {
71
- email: string;
72
- }
73
- export interface AuthRequestPasswordResetResponse {
74
- message: string;
75
- }
76
- export interface AuthConfirmPasswordResetInput {
77
- token: string;
78
- newPassword: string;
79
- }
80
- export interface AuthConfirmPasswordResetResponse {
81
- message: string;
82
- }
83
- export interface AuthSignSocialProviderInput {
84
- provider: 'google' | 'github';
85
- code: string;
86
- redirectUri: string;
87
- }
88
- export interface AuthSignSocialProviderResponse {
89
- sessionToken: string;
90
- redirect: string | null;
91
- }
92
- export interface OAuthRequestDeviceAuthorizationCodesInput {
93
- client_id: string;
94
- scope?: string;
95
- }
96
- export interface OAuthRequestDeviceAuthorizationCodesResponse {
97
- device_code: string;
98
- user_code: string;
99
- verification_uri: string;
100
- verification_uri_complete: string;
101
- expires_in: number;
102
- interval: number;
103
- }
104
- export interface OAuthPollDeviceAuthorizationTokenInput {
105
- grant_type: 'urn:ietf:params:oauth:grant-type:device_code';
106
- device_code: string;
107
- client_id: string;
108
- }
109
- export interface OAuthPollDeviceAuthorizationTokenResponse {
110
- access_token: string;
111
- token_type: string;
112
- expires_in: number;
113
- scope: string;
114
- }
115
- export interface OAuthGetDeviceAuthorizationStatusResponse {
116
- user_code: string;
117
- status: 'pending' | 'approved' | 'denied';
118
- }
119
- export interface OAuthApproveDeviceAuthorizationRequestInput {
120
- userCode: string;
121
- }
122
- export interface OAuthApproveDeviceAuthorizationRequestResponse {
123
- success: boolean;
124
- }
125
- export interface OAuthDenyDeviceAuthorizationRequestInput {
126
- userCode: string;
127
- }
128
- export interface OAuthDenyDeviceAuthorizationRequestResponse {
129
- success: boolean;
130
- }
131
19
  export interface OAuthOauth2AuthorizeEndpointResponse {
132
20
  redirect: boolean;
133
21
  url: string;
@@ -198,27 +86,6 @@ export interface OAuthOpenidRpInitiatedLogoutEndpointResponse {
198
86
  url?: string;
199
87
  uri?: string;
200
88
  }
201
- export interface OAuthDynamicOauth2ClientRegistrationInput {
202
- redirect_uris: string[];
203
- scope?: string;
204
- client_name?: string;
205
- client_uri?: string;
206
- logo_uri?: string;
207
- contacts?: string[];
208
- tos_uri?: string;
209
- policy_uri?: string;
210
- software_id?: string;
211
- software_version?: string;
212
- software_statement?: string;
213
- post_logout_redirect_uris?: string[];
214
- token_endpoint_auth_method?: 'none' | 'client_secret_basic' | 'client_secret_post';
215
- grant_types?: 'authorization_code' | 'client_credentials' | 'refresh_token'[];
216
- response_types?: 'code'[];
217
- type?: 'web' | 'native' | 'user-agent-based';
218
- }
219
- export interface OAuthDynamicOauth2ClientRegistrationResponse {
220
- client_id: string;
221
- }
222
89
  export interface OAuthCreateOauth2ClientInput {
223
90
  redirect_uris: string[];
224
91
  scope?: string;
@@ -278,54 +145,6 @@ export interface OAuthRotateOauth2ClientSecretResponse {
278
145
  export interface OAuthDeleteOauth2ClientInput {
279
146
  client_id: string;
280
147
  }
281
- export interface OAuthGetOauth2ConsentResponse {
282
- id: string;
283
- clientId?: string;
284
- client_id?: string;
285
- userId?: string;
286
- user_id?: string;
287
- referenceId?: string;
288
- reference_id?: string;
289
- scopes?: string[];
290
- scope?: string;
291
- createdAt?: string;
292
- updatedAt?: string;
293
- }
294
- export interface OAuthListOauth2ConsentsResponse {
295
- id: string;
296
- clientId?: string;
297
- client_id?: string;
298
- userId?: string;
299
- user_id?: string;
300
- referenceId?: string;
301
- reference_id?: string;
302
- scopes?: string[];
303
- scope?: string;
304
- createdAt?: string;
305
- updatedAt?: string;
306
- }
307
- export interface OAuthUpdateOauth2ConsentInput {
308
- id: string;
309
- update: {
310
- scopes: string[];
311
- };
312
- }
313
- export interface OAuthUpdateOauth2ConsentResponse {
314
- id: string;
315
- clientId?: string;
316
- client_id?: string;
317
- userId?: string;
318
- user_id?: string;
319
- referenceId?: string;
320
- reference_id?: string;
321
- scopes?: string[];
322
- scope?: string;
323
- createdAt?: string;
324
- updatedAt?: string;
325
- }
326
- export interface OAuthDeleteOauth2ConsentInput {
327
- id: string;
328
- }
329
148
  export interface OAuthAdminCreateOauth2ClientInput {
330
149
  redirect_uris: string[];
331
150
  scope?: string;
@@ -378,6 +197,79 @@ export interface OAuthAdminUpdateOauth2ClientInput {
378
197
  export interface OAuthAdminUpdateOauth2ClientResponse {
379
198
  client_id: string;
380
199
  }
200
+ export interface AuthRegisterUserInput {
201
+ email: string;
202
+ password: string;
203
+ name?: string;
204
+ }
205
+ export interface AuthRegisterUserResponse {
206
+ user: {
207
+ id: string;
208
+ email: string;
209
+ name: string | null;
210
+ role?: ('admin' | 'user') | null;
211
+ emailVerified: boolean;
212
+ image?: string | null;
213
+ createdAt: string | string;
214
+ updatedAt: string | string;
215
+ };
216
+ sessionToken?: string;
217
+ }
218
+ export interface AuthAuthenticateUserInput {
219
+ email: string;
220
+ password: string;
221
+ rememberMe?: boolean;
222
+ }
223
+ export interface AuthAuthenticateUserResponse {
224
+ sessionToken: string;
225
+ user: {
226
+ id: string;
227
+ email: string;
228
+ name: string | null;
229
+ role?: ('admin' | 'user') | null;
230
+ emailVerified: boolean;
231
+ image?: string | null;
232
+ createdAt: string | string;
233
+ updatedAt: string | string;
234
+ };
235
+ }
236
+ export interface AuthLogOutUserResponse {
237
+ success: boolean;
238
+ }
239
+ export interface AuthResendEmailVerificationInput {
240
+ email: string;
241
+ }
242
+ export interface AuthResendEmailVerificationResponse {
243
+ message: string;
244
+ }
245
+ export interface AuthVerifyEmailAddressInput {
246
+ token: string;
247
+ }
248
+ export interface AuthVerifyEmailAddressResponse {
249
+ status: 'verified' | 'already_verified' | 'invalid_token' | 'expired_token';
250
+ }
251
+ export interface AuthRequestPasswordResetInput {
252
+ email: string;
253
+ }
254
+ export interface AuthRequestPasswordResetResponse {
255
+ message: string;
256
+ }
257
+ export interface AuthConfirmPasswordResetInput {
258
+ token: string;
259
+ newPassword: string;
260
+ }
261
+ export interface AuthConfirmPasswordResetResponse {
262
+ message: string;
263
+ }
264
+ export interface AuthSignSocialProviderInput {
265
+ provider: 'google' | 'github';
266
+ code: string;
267
+ redirectUri: string;
268
+ }
269
+ export interface AuthSignSocialProviderResponse {
270
+ sessionToken: string;
271
+ redirect: string | null;
272
+ }
381
273
  export interface AuthGetUserResponse {
382
274
  id: string;
383
275
  email: string;
@@ -570,29 +462,22 @@ export interface OrganizationsListAuthenticatedUserItem {
570
462
  id: string;
571
463
  name: string;
572
464
  slug: string;
573
- plan: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
574
- createdBy: string;
575
465
  createdAt: string;
576
466
  }
577
467
  export interface OrganizationsCreateInput {
578
468
  name: string;
579
469
  slug: string;
580
- plan?: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
581
470
  }
582
471
  export interface OrganizationsCreateResponse {
583
472
  id: string;
584
473
  name: string;
585
474
  slug: string;
586
- plan: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
587
- createdBy: string;
588
475
  createdAt: string;
589
476
  }
590
477
  export interface OrganizationsGetResponse {
591
478
  id: string;
592
479
  name: string;
593
480
  slug: string;
594
- plan: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
595
- createdBy: string;
596
481
  createdAt: string;
597
482
  }
598
483
  export interface OrganizationsSetSessionInput {
@@ -603,16 +488,12 @@ export interface OrganizationsSetSessionResponse {
603
488
  id: string;
604
489
  name: string;
605
490
  slug: string;
606
- plan: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
607
- createdBy: string;
608
491
  createdAt: string;
609
492
  }
610
493
  export interface OrganizationsGetResponse {
611
494
  id: string;
612
495
  name: string;
613
496
  slug: string;
614
- plan: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
615
- createdBy: string;
616
497
  createdAt: string;
617
498
  }
618
499
  export interface OrganizationsUpdateInput {
@@ -625,8 +506,6 @@ export interface OrganizationsUpdateResponse {
625
506
  id: string;
626
507
  name: string;
627
508
  slug: string;
628
- plan: 'free' | 'pro' | 'team' | 'business' | 'enterprise';
629
- createdBy: string;
630
509
  createdAt: string;
631
510
  }
632
511
  export interface OrganizationsListInvitationsItem {
@@ -1147,6 +1026,10 @@ export interface ReleasesGetStageStateGateResponse {
1147
1026
  dispatchSubmitJob: boolean;
1148
1027
  dispatchScheduleJob: boolean;
1149
1028
  scheduleRiskScore: boolean;
1029
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1030
+ deploymentTargetIds: string[];
1031
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1032
+ requireDeploymentApproval: boolean;
1150
1033
  };
1151
1034
  gates: {
1152
1035
  id: string;
@@ -1182,6 +1065,10 @@ export interface ReleasesGetStageStateGateResponse {
1182
1065
  dispatchSubmitJob: boolean;
1183
1066
  dispatchScheduleJob: boolean;
1184
1067
  scheduleRiskScore: boolean;
1068
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1069
+ deploymentTargetIds: string[];
1070
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1071
+ requireDeploymentApproval: boolean;
1185
1072
  };
1186
1073
  gates: {
1187
1074
  id: string;
@@ -1257,11 +1144,14 @@ export interface ReleasePipelinesListResponse {
1257
1144
  appId: string;
1258
1145
  name: string;
1259
1146
  isDefault: boolean;
1147
+ activeReleaseCount: number;
1148
+ isInUse: boolean;
1260
1149
  activeVersion: {
1261
1150
  id: string;
1262
1151
  pipelineId: string;
1263
1152
  version: number;
1264
1153
  isActive: boolean;
1154
+ createdBy: string | null;
1265
1155
  createdAt: string | string;
1266
1156
  };
1267
1157
  stages: {
@@ -1278,6 +1168,10 @@ export interface ReleasePipelinesListResponse {
1278
1168
  dispatchSubmitJob: boolean;
1279
1169
  dispatchScheduleJob: boolean;
1280
1170
  scheduleRiskScore: boolean;
1171
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1172
+ deploymentTargetIds: string[];
1173
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1174
+ requireDeploymentApproval: boolean;
1281
1175
  };
1282
1176
  gates: {
1283
1177
  id: string;
@@ -1325,9 +1219,76 @@ export interface ReleasePipelinesCreateInput {
1325
1219
  dispatchSubmitJob?: boolean;
1326
1220
  dispatchScheduleJob?: boolean;
1327
1221
  scheduleRiskScore?: boolean;
1222
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1223
+ deploymentTargetIds?: string[];
1224
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1225
+ requireDeploymentApproval?: boolean;
1328
1226
  };
1329
1227
  gates?: {
1330
- type: 'approval' | 'risk_score' | 'release_status' | 'policy_rule';
1228
+ type: 'approval';
1229
+ failMode?: 'fail_open' | 'fail_closed';
1230
+ config?: Record<string, unknown> | {
1231
+ templateId?: string;
1232
+ requirementsJson?: {
1233
+ quorum?: number;
1234
+ requiredRoles?: 'admin' | 'user'[];
1235
+ steps?: {
1236
+ key: string;
1237
+ quorum?: number;
1238
+ requiredRoles?: 'admin' | 'user'[];
1239
+ groups?: {
1240
+ key: string;
1241
+ quorum: number;
1242
+ requiredRoles: 'admin' | 'user'[];
1243
+ }[];
1244
+ }[];
1245
+ constraints?: {
1246
+ distinctApprovers?: boolean;
1247
+ noSameTeam?: boolean;
1248
+ };
1249
+ rejectionMode?: 'terminal' | 'advisory';
1250
+ advisoryRejectEffect?: 'block_until_override' | 'non_blocking';
1251
+ override?: {
1252
+ allowedRoles: 'admin' | 'owner'[];
1253
+ requiredReasonMinLen: number;
1254
+ };
1255
+ };
1256
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
1257
+ expiresInSeconds?: number;
1258
+ reason?: string;
1259
+ } | {
1260
+ templateId?: string;
1261
+ requirementsJson?: {
1262
+ quorum?: number;
1263
+ requiredRoles?: 'admin' | 'user'[];
1264
+ steps?: {
1265
+ key: string;
1266
+ quorum?: number;
1267
+ requiredRoles?: 'admin' | 'user'[];
1268
+ groups?: {
1269
+ key: string;
1270
+ quorum: number;
1271
+ requiredRoles: 'admin' | 'user'[];
1272
+ }[];
1273
+ }[];
1274
+ constraints?: {
1275
+ distinctApprovers?: boolean;
1276
+ noSameTeam?: boolean;
1277
+ };
1278
+ rejectionMode?: 'terminal' | 'advisory';
1279
+ advisoryRejectEffect?: 'block_until_override' | 'non_blocking';
1280
+ override?: {
1281
+ allowedRoles: 'admin' | 'owner'[];
1282
+ requiredReasonMinLen: number;
1283
+ };
1284
+ };
1285
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
1286
+ expiresInSeconds?: number;
1287
+ reason?: string;
1288
+ };
1289
+ fromStageKey?: string;
1290
+ } | {
1291
+ type: 'risk_score' | 'release_status' | 'policy_rule';
1331
1292
  failMode?: 'fail_open' | 'fail_closed';
1332
1293
  config?: Record<string, unknown>;
1333
1294
  fromStageKey?: string;
@@ -1345,11 +1306,14 @@ export interface ReleasePipelinesCreateResponse {
1345
1306
  appId: string;
1346
1307
  name: string;
1347
1308
  isDefault: boolean;
1309
+ activeReleaseCount: number;
1310
+ isInUse: boolean;
1348
1311
  activeVersion: {
1349
1312
  id: string;
1350
1313
  pipelineId: string;
1351
1314
  version: number;
1352
1315
  isActive: boolean;
1316
+ createdBy: string | null;
1353
1317
  createdAt: string | string;
1354
1318
  };
1355
1319
  stages: {
@@ -1366,6 +1330,10 @@ export interface ReleasePipelinesCreateResponse {
1366
1330
  dispatchSubmitJob: boolean;
1367
1331
  dispatchScheduleJob: boolean;
1368
1332
  scheduleRiskScore: boolean;
1333
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1334
+ deploymentTargetIds: string[];
1335
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1336
+ requireDeploymentApproval: boolean;
1369
1337
  };
1370
1338
  gates: {
1371
1339
  id: string;
@@ -1402,11 +1370,14 @@ export interface ReleasePipelinesGetResponse {
1402
1370
  appId: string;
1403
1371
  name: string;
1404
1372
  isDefault: boolean;
1373
+ activeReleaseCount: number;
1374
+ isInUse: boolean;
1405
1375
  activeVersion: {
1406
1376
  id: string;
1407
1377
  pipelineId: string;
1408
1378
  version: number;
1409
1379
  isActive: boolean;
1380
+ createdBy: string | null;
1410
1381
  createdAt: string | string;
1411
1382
  };
1412
1383
  stages: {
@@ -1423,6 +1394,10 @@ export interface ReleasePipelinesGetResponse {
1423
1394
  dispatchSubmitJob: boolean;
1424
1395
  dispatchScheduleJob: boolean;
1425
1396
  scheduleRiskScore: boolean;
1397
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1398
+ deploymentTargetIds: string[];
1399
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1400
+ requireDeploymentApproval: boolean;
1426
1401
  };
1427
1402
  gates: {
1428
1403
  id: string;
@@ -1469,9 +1444,76 @@ export interface ReleasePipelinesUpdateInput {
1469
1444
  dispatchSubmitJob?: boolean;
1470
1445
  dispatchScheduleJob?: boolean;
1471
1446
  scheduleRiskScore?: boolean;
1447
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1448
+ deploymentTargetIds?: string[];
1449
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1450
+ requireDeploymentApproval?: boolean;
1472
1451
  };
1473
1452
  gates?: {
1474
- type: 'approval' | 'risk_score' | 'release_status' | 'policy_rule';
1453
+ type: 'approval';
1454
+ failMode?: 'fail_open' | 'fail_closed';
1455
+ config?: Record<string, unknown> | {
1456
+ templateId?: string;
1457
+ requirementsJson?: {
1458
+ quorum?: number;
1459
+ requiredRoles?: 'admin' | 'user'[];
1460
+ steps?: {
1461
+ key: string;
1462
+ quorum?: number;
1463
+ requiredRoles?: 'admin' | 'user'[];
1464
+ groups?: {
1465
+ key: string;
1466
+ quorum: number;
1467
+ requiredRoles: 'admin' | 'user'[];
1468
+ }[];
1469
+ }[];
1470
+ constraints?: {
1471
+ distinctApprovers?: boolean;
1472
+ noSameTeam?: boolean;
1473
+ };
1474
+ rejectionMode?: 'terminal' | 'advisory';
1475
+ advisoryRejectEffect?: 'block_until_override' | 'non_blocking';
1476
+ override?: {
1477
+ allowedRoles: 'admin' | 'owner'[];
1478
+ requiredReasonMinLen: number;
1479
+ };
1480
+ };
1481
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
1482
+ expiresInSeconds?: number;
1483
+ reason?: string;
1484
+ } | {
1485
+ templateId?: string;
1486
+ requirementsJson?: {
1487
+ quorum?: number;
1488
+ requiredRoles?: 'admin' | 'user'[];
1489
+ steps?: {
1490
+ key: string;
1491
+ quorum?: number;
1492
+ requiredRoles?: 'admin' | 'user'[];
1493
+ groups?: {
1494
+ key: string;
1495
+ quorum: number;
1496
+ requiredRoles: 'admin' | 'user'[];
1497
+ }[];
1498
+ }[];
1499
+ constraints?: {
1500
+ distinctApprovers?: boolean;
1501
+ noSameTeam?: boolean;
1502
+ };
1503
+ rejectionMode?: 'terminal' | 'advisory';
1504
+ advisoryRejectEffect?: 'block_until_override' | 'non_blocking';
1505
+ override?: {
1506
+ allowedRoles: 'admin' | 'owner'[];
1507
+ requiredReasonMinLen: number;
1508
+ };
1509
+ };
1510
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
1511
+ expiresInSeconds?: number;
1512
+ reason?: string;
1513
+ };
1514
+ fromStageKey?: string;
1515
+ } | {
1516
+ type: 'risk_score' | 'release_status' | 'policy_rule';
1475
1517
  failMode?: 'fail_open' | 'fail_closed';
1476
1518
  config?: Record<string, unknown>;
1477
1519
  fromStageKey?: string;
@@ -1489,11 +1531,14 @@ export interface ReleasePipelinesUpdateResponse {
1489
1531
  appId: string;
1490
1532
  name: string;
1491
1533
  isDefault: boolean;
1534
+ activeReleaseCount: number;
1535
+ isInUse: boolean;
1492
1536
  activeVersion: {
1493
1537
  id: string;
1494
1538
  pipelineId: string;
1495
1539
  version: number;
1496
1540
  isActive: boolean;
1541
+ createdBy: string | null;
1497
1542
  createdAt: string | string;
1498
1543
  };
1499
1544
  stages: {
@@ -1510,6 +1555,10 @@ export interface ReleasePipelinesUpdateResponse {
1510
1555
  dispatchSubmitJob: boolean;
1511
1556
  dispatchScheduleJob: boolean;
1512
1557
  scheduleRiskScore: boolean;
1558
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1559
+ deploymentTargetIds: string[];
1560
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1561
+ requireDeploymentApproval: boolean;
1513
1562
  };
1514
1563
  gates: {
1515
1564
  id: string;
@@ -1541,16 +1590,82 @@ export interface ReleasePipelinesUpdateResponse {
1541
1590
  createdAt: string | string;
1542
1591
  updatedAt: string | string;
1543
1592
  }
1593
+ export interface ReleasePipelinesListVersionsResponse {
1594
+ data: {
1595
+ version: {
1596
+ id: string;
1597
+ pipelineId: string;
1598
+ version: number;
1599
+ isActive: boolean;
1600
+ createdBy: string | null;
1601
+ createdAt: string | string;
1602
+ };
1603
+ stages: {
1604
+ id: string;
1605
+ pipelineId: string;
1606
+ pipelineVersionId: string;
1607
+ key: string;
1608
+ displayName: string;
1609
+ order: number;
1610
+ rolloutConfig: {
1611
+ triggerOnEnter: boolean;
1612
+ rolloutPercentage?: number | null;
1613
+ scheduleAt?: (string | string) | null;
1614
+ dispatchSubmitJob: boolean;
1615
+ dispatchScheduleJob: boolean;
1616
+ scheduleRiskScore: boolean;
1617
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1618
+ deploymentTargetIds: string[];
1619
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1620
+ requireDeploymentApproval: boolean;
1621
+ };
1622
+ gates: {
1623
+ id: string;
1624
+ pipelineId: string;
1625
+ pipelineVersionId: string;
1626
+ stageId: string | null;
1627
+ fromStageId: string | null;
1628
+ toStageId: string | null;
1629
+ type: 'approval' | 'risk_score' | 'release_status' | 'policy_rule';
1630
+ failMode: 'fail_open' | 'fail_closed';
1631
+ config: Record<string, unknown>;
1632
+ createdAt: string | string;
1633
+ updatedAt: (string | string) | null;
1634
+ }[];
1635
+ createdAt: string | string;
1636
+ updatedAt: (string | string) | null;
1637
+ }[];
1638
+ transitions: {
1639
+ id: string;
1640
+ pipelineId: string;
1641
+ pipelineVersionId: string;
1642
+ fromStageId: string;
1643
+ toStageId: string;
1644
+ type: 'forward' | 'skip' | 'rollback' | 'hotfix';
1645
+ requiresReason: boolean;
1646
+ createdAt: string | string;
1647
+ updatedAt: (string | string) | null;
1648
+ }[];
1649
+ summary: {
1650
+ stageCount: number;
1651
+ gateCount: number;
1652
+ transitionCount: number;
1653
+ };
1654
+ }[];
1655
+ }
1544
1656
  export interface ReleasePipelinesSetDefaultResponse {
1545
1657
  id: string;
1546
1658
  appId: string;
1547
1659
  name: string;
1548
1660
  isDefault: boolean;
1661
+ activeReleaseCount: number;
1662
+ isInUse: boolean;
1549
1663
  activeVersion: {
1550
1664
  id: string;
1551
1665
  pipelineId: string;
1552
1666
  version: number;
1553
1667
  isActive: boolean;
1668
+ createdBy: string | null;
1554
1669
  createdAt: string | string;
1555
1670
  };
1556
1671
  stages: {
@@ -1567,6 +1682,10 @@ export interface ReleasePipelinesSetDefaultResponse {
1567
1682
  dispatchSubmitJob: boolean;
1568
1683
  dispatchScheduleJob: boolean;
1569
1684
  scheduleRiskScore: boolean;
1685
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1686
+ deploymentTargetIds: string[];
1687
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1688
+ requireDeploymentApproval: boolean;
1570
1689
  };
1571
1690
  gates: {
1572
1691
  id: string;
@@ -1613,9 +1732,76 @@ export interface ReleasePipelinesDryRunValidateInput {
1613
1732
  dispatchSubmitJob?: boolean;
1614
1733
  dispatchScheduleJob?: boolean;
1615
1734
  scheduleRiskScore?: boolean;
1735
+ deploymentProvider?: 'aws' | 'gcp' | 'azure' | 'byoc';
1736
+ deploymentTargetIds?: string[];
1737
+ deploymentStrategy?: 'blue_green' | 'rolling' | 'canary';
1738
+ requireDeploymentApproval?: boolean;
1616
1739
  };
1617
1740
  gates?: {
1618
- type: 'approval' | 'risk_score' | 'release_status' | 'policy_rule';
1741
+ type: 'approval';
1742
+ failMode?: 'fail_open' | 'fail_closed';
1743
+ config?: Record<string, unknown> | {
1744
+ templateId?: string;
1745
+ requirementsJson?: {
1746
+ quorum?: number;
1747
+ requiredRoles?: 'admin' | 'user'[];
1748
+ steps?: {
1749
+ key: string;
1750
+ quorum?: number;
1751
+ requiredRoles?: 'admin' | 'user'[];
1752
+ groups?: {
1753
+ key: string;
1754
+ quorum: number;
1755
+ requiredRoles: 'admin' | 'user'[];
1756
+ }[];
1757
+ }[];
1758
+ constraints?: {
1759
+ distinctApprovers?: boolean;
1760
+ noSameTeam?: boolean;
1761
+ };
1762
+ rejectionMode?: 'terminal' | 'advisory';
1763
+ advisoryRejectEffect?: 'block_until_override' | 'non_blocking';
1764
+ override?: {
1765
+ allowedRoles: 'admin' | 'owner'[];
1766
+ requiredReasonMinLen: number;
1767
+ };
1768
+ };
1769
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
1770
+ expiresInSeconds?: number;
1771
+ reason?: string;
1772
+ } | {
1773
+ templateId?: string;
1774
+ requirementsJson?: {
1775
+ quorum?: number;
1776
+ requiredRoles?: 'admin' | 'user'[];
1777
+ steps?: {
1778
+ key: string;
1779
+ quorum?: number;
1780
+ requiredRoles?: 'admin' | 'user'[];
1781
+ groups?: {
1782
+ key: string;
1783
+ quorum: number;
1784
+ requiredRoles: 'admin' | 'user'[];
1785
+ }[];
1786
+ }[];
1787
+ constraints?: {
1788
+ distinctApprovers?: boolean;
1789
+ noSameTeam?: boolean;
1790
+ };
1791
+ rejectionMode?: 'terminal' | 'advisory';
1792
+ advisoryRejectEffect?: 'block_until_override' | 'non_blocking';
1793
+ override?: {
1794
+ allowedRoles: 'admin' | 'owner'[];
1795
+ requiredReasonMinLen: number;
1796
+ };
1797
+ };
1798
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
1799
+ expiresInSeconds?: number;
1800
+ reason?: string;
1801
+ };
1802
+ fromStageKey?: string;
1803
+ } | {
1804
+ type: 'risk_score' | 'release_status' | 'policy_rule';
1619
1805
  failMode?: 'fail_open' | 'fail_closed';
1620
1806
  config?: Record<string, unknown>;
1621
1807
  fromStageKey?: string;
@@ -2463,7 +2649,7 @@ export interface IntegrationsListOrganizationResponse {
2463
2649
  key: string;
2464
2650
  name: string;
2465
2651
  description: string;
2466
- category: 'store' | 'source-control' | 'monitoring';
2652
+ category: 'store' | 'source-control' | 'monitoring' | 'deployment';
2467
2653
  iconUrl?: string;
2468
2654
  docsUrl?: string;
2469
2655
  requiredPlan?: 'free' | 'pro' | 'team' | 'enterprise';
@@ -2496,7 +2682,7 @@ export interface IntegrationsGetDetailsResponse {
2496
2682
  key: string;
2497
2683
  name: string;
2498
2684
  description: string;
2499
- category: 'store' | 'source-control' | 'monitoring';
2685
+ category: 'store' | 'source-control' | 'monitoring' | 'deployment';
2500
2686
  iconUrl?: string;
2501
2687
  docsUrl?: string;
2502
2688
  requiredPlan?: 'free' | 'pro' | 'team' | 'enterprise';
@@ -2575,7 +2761,7 @@ export interface IntegrationsListCatalogEntriesResponse {
2575
2761
  key: string;
2576
2762
  name: string;
2577
2763
  description: string;
2578
- category: 'store' | 'source-control' | 'monitoring';
2764
+ category: 'store' | 'source-control' | 'monitoring' | 'deployment';
2579
2765
  iconUrl?: string;
2580
2766
  docsUrl?: string;
2581
2767
  requiredPlan?: 'free' | 'pro' | 'team' | 'enterprise';
@@ -2604,7 +2790,7 @@ export interface IntegrationsGetCatalogEntryResponse {
2604
2790
  key: string;
2605
2791
  name: string;
2606
2792
  description: string;
2607
- category: 'store' | 'source-control' | 'monitoring';
2793
+ category: 'store' | 'source-control' | 'monitoring' | 'deployment';
2608
2794
  iconUrl?: string;
2609
2795
  docsUrl?: string;
2610
2796
  requiredPlan?: 'free' | 'pro' | 'team' | 'enterprise';
@@ -3630,9 +3816,9 @@ export interface PoliciesGetPlatformResponse {
3630
3816
  export interface ApprovalsListItem {
3631
3817
  id: string;
3632
3818
  orgId: string;
3633
- resourceType: 'release';
3819
+ resourceType: 'release' | 'deployment';
3634
3820
  resourceId: string | string;
3635
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
3821
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3636
3822
  reason: string;
3637
3823
  requirementsJson: {
3638
3824
  quorum?: number;
@@ -3672,9 +3858,9 @@ export interface ApprovalsListItem {
3672
3858
  archivedAt: string | null;
3673
3859
  }
3674
3860
  export interface ApprovalsCreateRequestInput {
3675
- resourceType: 'release';
3861
+ resourceType: 'release' | 'deployment';
3676
3862
  resourceId: string | string;
3677
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
3863
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3678
3864
  reason: string;
3679
3865
  templateId?: string;
3680
3866
  requirementsJson?: {
@@ -3708,9 +3894,9 @@ export interface ApprovalsCreateRequestResponse {
3708
3894
  request: {
3709
3895
  id: string;
3710
3896
  orgId: string;
3711
- resourceType: 'release';
3897
+ resourceType: 'release' | 'deployment';
3712
3898
  resourceId: string | string;
3713
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
3899
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3714
3900
  reason: string;
3715
3901
  requirementsJson: {
3716
3902
  quorum?: number;
@@ -3753,9 +3939,9 @@ export interface ApprovalsCreateRequestResponse {
3753
3939
  export interface ApprovalsListRequestsAcrossOrganizationItem {
3754
3940
  id: string;
3755
3941
  orgId: string;
3756
- resourceType: 'release';
3942
+ resourceType: 'release' | 'deployment';
3757
3943
  resourceId: string | string;
3758
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
3944
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3759
3945
  reason: string;
3760
3946
  requirementsJson: {
3761
3947
  quorum?: number;
@@ -3803,10 +3989,10 @@ export interface ApprovalsListApproversResourceResponse {
3803
3989
  }[];
3804
3990
  }
3805
3991
  export interface ApprovalsGrantUserRightsResourceInput {
3806
- resourceType: 'release';
3992
+ resourceType: 'release' | 'deployment';
3807
3993
  resourceId: string | string;
3808
3994
  userId: string;
3809
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
3995
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3810
3996
  expiresAt?: string;
3811
3997
  }
3812
3998
  export interface ApprovalsGrantUserRightsResourceResponse {
@@ -3820,9 +4006,9 @@ export interface ApprovalsGrantUserRightsResourceResponse {
3820
4006
  id: string;
3821
4007
  orgId: string;
3822
4008
  userId: string;
3823
- resourceType: 'release';
4009
+ resourceType: 'release' | 'deployment';
3824
4010
  resourceId: string | string;
3825
- actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition') | null;
4011
+ actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute') | null;
3826
4012
  expiresAt: string | null;
3827
4013
  createdBy: string;
3828
4014
  createdAt: string;
@@ -3843,9 +4029,9 @@ export interface ApprovalsListGrantsItem {
3843
4029
  id: string;
3844
4030
  orgId: string;
3845
4031
  userId: string;
3846
- resourceType: 'release';
4032
+ resourceType: 'release' | 'deployment';
3847
4033
  resourceId: string | string;
3848
- actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition') | null;
4034
+ actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute') | null;
3849
4035
  expiresAt: string | null;
3850
4036
  createdBy: string;
3851
4037
  createdAt: string;
@@ -3871,9 +4057,9 @@ export interface ApprovalsRevokeGrantResponse {
3871
4057
  id: string;
3872
4058
  orgId: string;
3873
4059
  userId: string;
3874
- resourceType: 'release';
4060
+ resourceType: 'release' | 'deployment';
3875
4061
  resourceId: string | string;
3876
- actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition') | null;
4062
+ actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute') | null;
3877
4063
  expiresAt: string | null;
3878
4064
  createdBy: string;
3879
4065
  createdAt: string;
@@ -3901,9 +4087,9 @@ export interface ApprovalsExtendGrantResponse {
3901
4087
  id: string;
3902
4088
  orgId: string;
3903
4089
  userId: string;
3904
- resourceType: 'release';
4090
+ resourceType: 'release' | 'deployment';
3905
4091
  resourceId: string | string;
3906
- actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition') | null;
4092
+ actionType: ('release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute') | null;
3907
4093
  expiresAt: string | null;
3908
4094
  createdBy: string;
3909
4095
  createdAt: string;
@@ -3926,7 +4112,7 @@ export interface ApprovalsListPolicyTemplatesItem {
3926
4112
  scope: 'system' | 'organization';
3927
4113
  name: string;
3928
4114
  description: string | null;
3929
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4115
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3930
4116
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
3931
4117
  requirementsJson: {
3932
4118
  quorum?: number;
@@ -3961,7 +4147,7 @@ export interface ApprovalsCreatePolicyTemplateInput {
3961
4147
  name: string;
3962
4148
  description?: string;
3963
4149
  scope?: 'system' | 'organization';
3964
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4150
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3965
4151
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
3966
4152
  requirementsJson: {
3967
4153
  quorum?: number;
@@ -3995,7 +4181,7 @@ export interface ApprovalsCreatePolicyTemplateResponse {
3995
4181
  scope: 'system' | 'organization';
3996
4182
  name: string;
3997
4183
  description: string | null;
3998
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4184
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
3999
4185
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
4000
4186
  requirementsJson: {
4001
4187
  quorum?: number;
@@ -4030,7 +4216,7 @@ export interface ApprovalsCreatePolicyTemplateResponse {
4030
4216
  export interface ApprovalsUpdatePolicyTemplateInput {
4031
4217
  name?: string;
4032
4218
  description?: string | null;
4033
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4219
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4034
4220
  riskLevel?: 'low' | 'medium' | 'high' | 'critical';
4035
4221
  requirementsJson?: {
4036
4222
  quorum?: number;
@@ -4068,7 +4254,7 @@ export interface ApprovalsUpdatePolicyTemplateResponse {
4068
4254
  scope: 'system' | 'organization';
4069
4255
  name: string;
4070
4256
  description: string | null;
4071
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4257
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4072
4258
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
4073
4259
  requirementsJson: {
4074
4260
  quorum?: number;
@@ -4111,7 +4297,7 @@ export interface ApprovalsArchivePolicyTemplateResponse {
4111
4297
  scope: 'system' | 'organization';
4112
4298
  name: string;
4113
4299
  description: string | null;
4114
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4300
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4115
4301
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
4116
4302
  requirementsJson: {
4117
4303
  quorum?: number;
@@ -4146,7 +4332,7 @@ export interface ApprovalsArchivePolicyTemplateResponse {
4146
4332
  export interface ApprovalsListTemplateDefaultsItem {
4147
4333
  id: string;
4148
4334
  orgId: string;
4149
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4335
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4150
4336
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
4151
4337
  templateId: string;
4152
4338
  createdAt: string;
@@ -4159,7 +4345,7 @@ export interface ApprovalsUpsertTemplateDefaultResponse {
4159
4345
  defaultTemplate: {
4160
4346
  id: string;
4161
4347
  orgId: string;
4162
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4348
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4163
4349
  riskLevel: 'low' | 'medium' | 'high' | 'critical';
4164
4350
  templateId: string;
4165
4351
  createdAt: string;
@@ -4169,9 +4355,9 @@ export interface ApprovalsUpsertTemplateDefaultResponse {
4169
4355
  export interface ApprovalsGetRequestResponse {
4170
4356
  id: string;
4171
4357
  orgId: string;
4172
- resourceType: 'release';
4358
+ resourceType: 'release' | 'deployment';
4173
4359
  resourceId: string | string;
4174
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4360
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4175
4361
  reason: string;
4176
4362
  requirementsJson: {
4177
4363
  quorum?: number;
@@ -4255,9 +4441,9 @@ export interface ApprovalsRecordDecisionResponse {
4255
4441
  request: {
4256
4442
  id: string;
4257
4443
  orgId: string;
4258
- resourceType: 'release';
4444
+ resourceType: 'release' | 'deployment';
4259
4445
  resourceId: string | string;
4260
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4446
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4261
4447
  reason: string;
4262
4448
  requirementsJson: {
4263
4449
  quorum?: number;
@@ -4306,9 +4492,9 @@ export interface ApprovalsCancelPendingRequestResponse {
4306
4492
  request: {
4307
4493
  id: string;
4308
4494
  orgId: string;
4309
- resourceType: 'release';
4495
+ resourceType: 'release' | 'deployment';
4310
4496
  resourceId: string | string;
4311
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4497
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4312
4498
  reason: string;
4313
4499
  requirementsJson: {
4314
4500
  quorum?: number;
@@ -4352,9 +4538,9 @@ export interface ApprovalsArchiveRequestResponse {
4352
4538
  request: {
4353
4539
  id: string;
4354
4540
  orgId: string;
4355
- resourceType: 'release';
4541
+ resourceType: 'release' | 'deployment';
4356
4542
  resourceId: string | string;
4357
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4543
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4358
4544
  reason: string;
4359
4545
  requirementsJson: {
4360
4546
  quorum?: number;
@@ -4404,9 +4590,9 @@ export interface ApprovalsRefreshExpiredDriftedRequestResponse {
4404
4590
  request: {
4405
4591
  id: string;
4406
4592
  orgId: string;
4407
- resourceType: 'release';
4593
+ resourceType: 'release' | 'deployment';
4408
4594
  resourceId: string | string;
4409
- actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition';
4595
+ actionType: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
4410
4596
  reason: string;
4411
4597
  requirementsJson: {
4412
4598
  quorum?: number;
@@ -5510,6 +5696,136 @@ export interface WorkflowsListNodeTypesItem {
5510
5696
  label: string;
5511
5697
  description: string;
5512
5698
  }
5699
+ export interface DeploymentsGetAwsBootstrapTemplateResponse {
5700
+ provider: 'aws';
5701
+ templateFormat: 'cloudformation-yaml';
5702
+ version: string;
5703
+ requiredParameters: string[];
5704
+ template: string;
5705
+ }
5706
+ export interface DeploymentsListTargetsItem {
5707
+ id: string;
5708
+ orgId: string;
5709
+ name: string;
5710
+ provider: 'aws' | 'gcp' | 'azure' | 'byoc';
5711
+ environment: 'development' | 'staging' | 'production';
5712
+ region: string | null;
5713
+ integrationInstallationId: string | null;
5714
+ isActive: boolean;
5715
+ createdBy: string | null;
5716
+ createdAt: string;
5717
+ updatedAt: string;
5718
+ }
5719
+ export interface DeploymentsCreateTargetResponse {
5720
+ id: string;
5721
+ orgId: string;
5722
+ name: string;
5723
+ provider: 'aws' | 'gcp' | 'azure' | 'byoc';
5724
+ environment: 'development' | 'staging' | 'production';
5725
+ region: string | null;
5726
+ integrationInstallationId: string | null;
5727
+ isActive: boolean;
5728
+ createdBy: string | null;
5729
+ createdAt: string;
5730
+ updatedAt: string;
5731
+ }
5732
+ export interface DeploymentsGetTargetResponse {
5733
+ id: string;
5734
+ orgId: string;
5735
+ name: string;
5736
+ provider: 'aws' | 'gcp' | 'azure' | 'byoc';
5737
+ environment: 'development' | 'staging' | 'production';
5738
+ region: string | null;
5739
+ integrationInstallationId: string | null;
5740
+ isActive: boolean;
5741
+ createdBy: string | null;
5742
+ createdAt: string;
5743
+ updatedAt: string;
5744
+ }
5745
+ export interface DeploymentsValidateTargetConnectivityPermissionsResponse {
5746
+ targetId: string;
5747
+ provider: string;
5748
+ valid: boolean;
5749
+ checks: {
5750
+ key: string;
5751
+ passed: boolean;
5752
+ code: string;
5753
+ message: string;
5754
+ }[];
5755
+ }
5756
+ export interface DeploymentsListItem {
5757
+ id: string;
5758
+ orgId: string;
5759
+ releaseId: string | null;
5760
+ targetId: string;
5761
+ provider: 'aws' | 'gcp' | 'azure' | 'byoc';
5762
+ status: 'queued' | 'awaiting_approval' | 'running' | 'verifying' | 'rollback_in_progress' | 'succeeded' | 'failed' | 'rolled_back' | 'canceled';
5763
+ statusReason: string | null;
5764
+ approvalRequestId: string | null;
5765
+ codedeployDeploymentId: string | null;
5766
+ artifactS3Uri: string | null;
5767
+ artifactSha256: string | null;
5768
+ imageUri: string;
5769
+ imageDigest: string;
5770
+ startedAt: string | null;
5771
+ completedAt: string | null;
5772
+ createdBy: string | null;
5773
+ createdAt: string;
5774
+ updatedAt: string;
5775
+ }
5776
+ export interface DeploymentsCreateInput {
5777
+ targetId: string;
5778
+ releaseId?: string;
5779
+ imageUri: string;
5780
+ metadata?: Record<string, unknown>;
5781
+ idempotencyKey?: string;
5782
+ }
5783
+ export interface DeploymentsCreateResponse {
5784
+ deploymentId: string;
5785
+ jobId: string;
5786
+ status: string;
5787
+ }
5788
+ export interface DeploymentsGetDetailsResponse {
5789
+ id: string;
5790
+ orgId: string;
5791
+ releaseId: string | null;
5792
+ targetId: string;
5793
+ provider: 'aws' | 'gcp' | 'azure' | 'byoc';
5794
+ status: 'queued' | 'awaiting_approval' | 'running' | 'verifying' | 'rollback_in_progress' | 'succeeded' | 'failed' | 'rolled_back' | 'canceled';
5795
+ statusReason: string | null;
5796
+ approvalRequestId: string | null;
5797
+ codedeployDeploymentId: string | null;
5798
+ artifactS3Uri: string | null;
5799
+ artifactSha256: string | null;
5800
+ imageUri: string;
5801
+ imageDigest: string;
5802
+ startedAt: string | null;
5803
+ completedAt: string | null;
5804
+ createdBy: string | null;
5805
+ createdAt: string;
5806
+ updatedAt: string;
5807
+ }
5808
+ export interface DeploymentsListEventHistoryItem {
5809
+ id: string;
5810
+ deploymentId: string;
5811
+ providerEventId: string;
5812
+ eventType: string;
5813
+ payload: Record<string, unknown>;
5814
+ occurredAt: string;
5815
+ createdAt: string;
5816
+ }
5817
+ export interface DeploymentsIngestAwsEventsInput {
5818
+ id: string;
5819
+ source?: string;
5820
+ detailType?: string;
5821
+ time?: string;
5822
+ detail?: Record<string, unknown>;
5823
+ }
5824
+ export interface DeploymentsIngestAwsEventsResponse {
5825
+ accepted: boolean;
5826
+ deploymentId: string | null;
5827
+ status: string | null;
5828
+ }
5513
5829
  export interface HealthReadinessProbeCoreServicesResponse {
5514
5830
  healthy: boolean;
5515
5831
  timestamp: string;
@@ -5665,12 +5981,6 @@ export interface SettingsResetUserSystemDefaultResponse {
5665
5981
  updatedAt: string | null;
5666
5982
  updatedBy: string | null;
5667
5983
  }
5668
- /**
5669
- * Query parameters for getDeviceAuthorizationStatus
5670
- */
5671
- export interface GetAuthDeviceQuery {
5672
- userCode: string;
5673
- }
5674
5984
  /**
5675
5985
  * Query parameters for oauth2AuthorizeEndpoint
5676
5986
  */
@@ -5706,12 +6016,6 @@ export interface GetAuthOauth2GetClientQuery {
5706
6016
  export interface GetAuthOauth2PublicClientQuery {
5707
6017
  clientId: string;
5708
6018
  }
5709
- /**
5710
- * Query parameters for getOauth2Consent
5711
- */
5712
- export interface GetAuthOauth2GetConsentQuery {
5713
- id: string;
5714
- }
5715
6019
  /**
5716
6020
  * Query parameters for list
5717
6021
  */
@@ -5884,7 +6188,7 @@ export interface GetBillingOrdersQuery {
5884
6188
  */
5885
6189
  export interface GetIntegrationsQuery {
5886
6190
  includeHidden?: string;
5887
- category?: 'store' | 'source-control' | 'monitoring';
6191
+ category?: 'store' | 'source-control' | 'monitoring' | 'deployment';
5888
6192
  requiredPlan?: 'free' | 'pro' | 'team' | 'enterprise';
5889
6193
  isBeta?: string;
5890
6194
  search?: string;
@@ -5960,8 +6264,8 @@ export interface GetPoliciesAuditsQuery {
5960
6264
  */
5961
6265
  export interface GetApprovalsQuery {
5962
6266
  resourceId: string;
5963
- resourceType?: 'release';
5964
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
6267
+ resourceType?: 'release' | 'deployment';
6268
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
5965
6269
  page?: number;
5966
6270
  limit?: number;
5967
6271
  }
@@ -5970,8 +6274,8 @@ export interface GetApprovalsQuery {
5970
6274
  */
5971
6275
  export interface GetApprovalsRequestsQuery {
5972
6276
  resourceId?: string;
5973
- resourceType?: 'release';
5974
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
6277
+ resourceType?: 'release' | 'deployment';
6278
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
5975
6279
  status?: 'pending' | 'approved' | 'rejected' | 'canceled' | 'expired';
5976
6280
  riskLevel?: 'low' | 'medium' | 'high' | 'critical';
5977
6281
  includeArchived?: boolean;
@@ -5982,18 +6286,18 @@ export interface GetApprovalsRequestsQuery {
5982
6286
  * Query parameters for listApproversResource
5983
6287
  */
5984
6288
  export interface GetApprovalsApproversQuery {
5985
- resourceType: 'release';
6289
+ resourceType: 'release' | 'deployment';
5986
6290
  resourceId: string;
5987
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
6291
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
5988
6292
  }
5989
6293
  /**
5990
6294
  * Query parameters for listGrants
5991
6295
  */
5992
6296
  export interface GetApprovalsGrantsQuery {
5993
6297
  userId?: string;
5994
- resourceType?: 'release';
6298
+ resourceType?: 'release' | 'deployment';
5995
6299
  resourceId?: string;
5996
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
6300
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
5997
6301
  includeArchived?: boolean;
5998
6302
  page?: number;
5999
6303
  limit?: number;
@@ -6003,7 +6307,7 @@ export interface GetApprovalsGrantsQuery {
6003
6307
  */
6004
6308
  export interface GetApprovalsTemplatesQuery {
6005
6309
  scope?: 'system' | 'organization';
6006
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
6310
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
6007
6311
  riskLevel?: 'low' | 'medium' | 'high' | 'critical';
6008
6312
  includeArchived?: boolean;
6009
6313
  page?: number;
@@ -6013,7 +6317,7 @@ export interface GetApprovalsTemplatesQuery {
6013
6317
  * Query parameters for listTemplateDefaults
6014
6318
  */
6015
6319
  export interface GetApprovalsTemplateDefaultsQuery {
6016
- actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition';
6320
+ actionType?: 'release.submit' | 'release.rollback' | 'release.stage_transition' | 'deployment.execute';
6017
6321
  riskLevel?: 'low' | 'medium' | 'high' | 'critical';
6018
6322
  page?: number;
6019
6323
  limit?: number;
@@ -6133,6 +6437,33 @@ export interface GetWorkflowsNodeTypesQuery {
6133
6437
  page?: number;
6134
6438
  limit?: number;
6135
6439
  }
6440
+ /**
6441
+ * Query parameters for listTargets
6442
+ */
6443
+ export interface GetDistributionDeploymentTargetsQuery {
6444
+ page?: number;
6445
+ limit?: number;
6446
+ provider?: 'aws' | 'gcp' | 'azure' | 'byoc';
6447
+ environment?: 'development' | 'staging' | 'production';
6448
+ activeOnly?: boolean;
6449
+ }
6450
+ /**
6451
+ * Query parameters for list
6452
+ */
6453
+ export interface GetDistributionDeploymentsQuery {
6454
+ page?: number;
6455
+ limit?: number;
6456
+ targetId?: string;
6457
+ releaseId?: string;
6458
+ status?: 'queued' | 'awaiting_approval' | 'running' | 'verifying' | 'rollback_in_progress' | 'succeeded' | 'failed' | 'rolled_back' | 'canceled';
6459
+ }
6460
+ /**
6461
+ * Query parameters for listEventHistory
6462
+ */
6463
+ export interface GetDistributionDeploymentsByIdEventsQuery {
6464
+ page?: number;
6465
+ limit?: number;
6466
+ }
6136
6467
  /**
6137
6468
  * Query parameters for checkStoreCredential
6138
6469
  */