@stack-spot/portal-network 0.51.0 → 0.52.0
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.
- package/CHANGELOG.md +8 -0
- package/dist/api/cloudPlatform.d.ts +53 -107
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +57 -94
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/workspace.d.ts +245 -129
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +117 -43
- package/dist/api/workspace.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +0 -16
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/workspace.d.ts +4 -4
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +3 -3
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +104 -367
- package/src/api/workspace.ts +432 -189
- package/src/client/workspace.ts +4 -4
package/src/api/workspace.ts
CHANGED
|
@@ -44,6 +44,35 @@ export type UpsertWorkspaceVariableRequest = {
|
|
|
44
44
|
/** Workspace variable value. */
|
|
45
45
|
value: string;
|
|
46
46
|
};
|
|
47
|
+
export type ContextAttribute = {
|
|
48
|
+
key: string;
|
|
49
|
+
value: object;
|
|
50
|
+
final: boolean;
|
|
51
|
+
};
|
|
52
|
+
export type ContextValuesRequest = {
|
|
53
|
+
/** Input attributes context values. */
|
|
54
|
+
valuesContext: ContextAttribute[];
|
|
55
|
+
/** Plugin o Action Version Id. */
|
|
56
|
+
externalVersionId: string;
|
|
57
|
+
/** Environment Name (For specific environments). */
|
|
58
|
+
envName?: string;
|
|
59
|
+
};
|
|
60
|
+
export type ImportContextValueRequest = {
|
|
61
|
+
/** Context type (PLUGIN, ACTION). */
|
|
62
|
+
"type": "PLUGIN" | "ACTION";
|
|
63
|
+
/** PluginId or ActionId. */
|
|
64
|
+
externalId: string;
|
|
65
|
+
/** PluginVersionId or ActionVersionId. */
|
|
66
|
+
externalVersionId: string;
|
|
67
|
+
/** List of keys to be imported. */
|
|
68
|
+
attributes: string[];
|
|
69
|
+
};
|
|
70
|
+
export type ImportContextV2Request = {
|
|
71
|
+
/** StackVersionId reference to be imported from. */
|
|
72
|
+
stackVersionReference: string;
|
|
73
|
+
/** Target contexts to be imported. */
|
|
74
|
+
targetContexts: ImportContextValueRequest[];
|
|
75
|
+
};
|
|
47
76
|
export type ContextAttributeDto = {
|
|
48
77
|
key: string;
|
|
49
78
|
value: object;
|
|
@@ -61,11 +90,6 @@ export type WorkflowContextResponse = {
|
|
|
61
90
|
actionsBefore: ActionContextResponse[];
|
|
62
91
|
actionsAfter: ActionContextResponse[];
|
|
63
92
|
};
|
|
64
|
-
export type ContextAttribute = {
|
|
65
|
-
key: string;
|
|
66
|
-
value: object;
|
|
67
|
-
final: boolean;
|
|
68
|
-
};
|
|
69
93
|
export type WorkflowActionContextRequest = {
|
|
70
94
|
actionId: string;
|
|
71
95
|
valuesContext: ContextAttribute[];
|
|
@@ -74,18 +98,6 @@ export type WorkspaceWorkflowCreateRequest = {
|
|
|
74
98
|
actionsBefore: WorkflowActionContextRequest[];
|
|
75
99
|
actionsAfter: WorkflowActionContextRequest[];
|
|
76
100
|
};
|
|
77
|
-
export type PluginAttribute = {
|
|
78
|
-
key: string;
|
|
79
|
-
value: object;
|
|
80
|
-
mandate: boolean;
|
|
81
|
-
};
|
|
82
|
-
export type AttributesByEnv = {
|
|
83
|
-
environmentId: string;
|
|
84
|
-
attributes: PluginAttribute[];
|
|
85
|
-
};
|
|
86
|
-
export type AddTypedContextRequest = {
|
|
87
|
-
attributesByEnv: AttributesByEnv;
|
|
88
|
-
};
|
|
89
101
|
export type WorkflowActionResponse = {
|
|
90
102
|
actionVersionId: string;
|
|
91
103
|
orderStep: number;
|
|
@@ -118,14 +130,6 @@ export type AddWorkspaceWorkflowStepRequest = {
|
|
|
118
130
|
identifier: string;
|
|
119
131
|
workflowConditions: WorkflowConditionRequest[];
|
|
120
132
|
};
|
|
121
|
-
export type ImportContextRequest = {
|
|
122
|
-
/** Context type (PLUGIN, ACTION). */
|
|
123
|
-
"type": "PLUGIN" | "ACTION";
|
|
124
|
-
/** PluginId. */
|
|
125
|
-
externalId: string;
|
|
126
|
-
/** Input attributes by environments. */
|
|
127
|
-
attributesByEnv: AttributesByEnv[];
|
|
128
|
-
};
|
|
129
133
|
export type UpdateSharedInfraStatusRequest = {
|
|
130
134
|
/** Shared Infrastructure Status. */
|
|
131
135
|
status: "CREATED" | "CREATE_FAILED" | "DRAFT" | "DELETING" | "DELETE_FAILED";
|
|
@@ -146,6 +150,7 @@ export type Task = {
|
|
|
146
150
|
runTaskId: string;
|
|
147
151
|
"type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
|
|
148
152
|
status: "EXTERNAL_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "FAILED" | "SUCCEEDED" | "RUNNING" | "PENDING" | "READY_TO_RUN";
|
|
153
|
+
message?: string;
|
|
149
154
|
};
|
|
150
155
|
export type Plugins = {
|
|
151
156
|
pluginAlias: string;
|
|
@@ -325,6 +330,94 @@ export type StackWorkflowCreateRequest = {
|
|
|
325
330
|
actionsBefore: WorkflowActionContextRequest[];
|
|
326
331
|
actionsAfter: WorkflowActionContextRequest[];
|
|
327
332
|
};
|
|
333
|
+
export type GetSharedInfraRequestBody = {
|
|
334
|
+
name?: string;
|
|
335
|
+
stackVersionIds?: string[];
|
|
336
|
+
};
|
|
337
|
+
export type ExtraRepositoriesReadResponse = {
|
|
338
|
+
/** Extra repository name. */
|
|
339
|
+
name: string;
|
|
340
|
+
/** Extra repository description. */
|
|
341
|
+
description: string;
|
|
342
|
+
/** Extra repository provider. */
|
|
343
|
+
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZUREDEVOPS";
|
|
344
|
+
/** Extra repository url. */
|
|
345
|
+
url: string;
|
|
346
|
+
};
|
|
347
|
+
export type SharedInfraDetailsResponse = {
|
|
348
|
+
/** Shared infrastructure id. */
|
|
349
|
+
id: string;
|
|
350
|
+
/** Shared infrastructure name. */
|
|
351
|
+
name: string;
|
|
352
|
+
/** Shared infrastructure description. */
|
|
353
|
+
description?: string;
|
|
354
|
+
/** Shared infrastructure repository url. */
|
|
355
|
+
repoUrl?: string;
|
|
356
|
+
/** Shared infrastructure repository base branch. */
|
|
357
|
+
repoBaseBranch: string;
|
|
358
|
+
/** Stack used to generate this shared infrastructure. */
|
|
359
|
+
stackVersionId: string;
|
|
360
|
+
/** Starter used to generate this shared infrastructure. */
|
|
361
|
+
starterId?: string;
|
|
362
|
+
/** Shared Infrastructure status. */
|
|
363
|
+
status: string;
|
|
364
|
+
/** Application extra repositories. */
|
|
365
|
+
extraRepositories: ExtraRepositoriesReadResponse[];
|
|
366
|
+
/** Shared Infrastructure creator. */
|
|
367
|
+
createdBy: string;
|
|
368
|
+
/** Shared Infrastructure creation date. */
|
|
369
|
+
createdAt: string;
|
|
370
|
+
/** Shared Infrastructure updater. */
|
|
371
|
+
updatedBy: string;
|
|
372
|
+
/** Shared Infrastructure update date. */
|
|
373
|
+
updatedAt: string;
|
|
374
|
+
};
|
|
375
|
+
export type SharedInfraPageResponse = {
|
|
376
|
+
currentPage: number;
|
|
377
|
+
pageSize: number;
|
|
378
|
+
lastPage: number;
|
|
379
|
+
totalItems: number;
|
|
380
|
+
items: SharedInfraDetailsResponse[];
|
|
381
|
+
};
|
|
382
|
+
export type GetApplicationsRequestBody = {
|
|
383
|
+
name?: string;
|
|
384
|
+
stackVersionIds?: string[];
|
|
385
|
+
};
|
|
386
|
+
export type ApplicationReadResponse = {
|
|
387
|
+
/** Application id. */
|
|
388
|
+
id: string;
|
|
389
|
+
/** Application name. */
|
|
390
|
+
name: string;
|
|
391
|
+
/** Application description. */
|
|
392
|
+
description?: string;
|
|
393
|
+
/** Application repository url. */
|
|
394
|
+
repoUrl?: string;
|
|
395
|
+
/** Application repository base branch. */
|
|
396
|
+
repoBaseBranch: string;
|
|
397
|
+
/** Stack used to generate this application. */
|
|
398
|
+
stackVersionId: string;
|
|
399
|
+
/** Starter used to generate this application. */
|
|
400
|
+
starterId: string;
|
|
401
|
+
/** Application status. */
|
|
402
|
+
status: string;
|
|
403
|
+
/** Application extra repositories. */
|
|
404
|
+
extraRepositories: ExtraRepositoriesReadResponse[];
|
|
405
|
+
/** Application creator. */
|
|
406
|
+
createdBy: string;
|
|
407
|
+
/** Application creation date. */
|
|
408
|
+
createdAt: string;
|
|
409
|
+
/** Application updater. */
|
|
410
|
+
updatedBy: string;
|
|
411
|
+
/** Application update date. */
|
|
412
|
+
updatedAt: string;
|
|
413
|
+
};
|
|
414
|
+
export type ApplicationPageResponse = {
|
|
415
|
+
currentPage: number;
|
|
416
|
+
pageSize: number;
|
|
417
|
+
lastPage: number;
|
|
418
|
+
totalItems: number;
|
|
419
|
+
items: ApplicationReadResponse[];
|
|
420
|
+
};
|
|
328
421
|
export type EnvironmentSimpleResponse = {
|
|
329
422
|
/** Environment id. */
|
|
330
423
|
id: string;
|
|
@@ -415,31 +508,15 @@ export type StackWithWorkspaceContextResponse = {
|
|
|
415
508
|
/** Account id. */
|
|
416
509
|
accountId: string;
|
|
417
510
|
};
|
|
418
|
-
export type
|
|
419
|
-
/**
|
|
420
|
-
id: string;
|
|
421
|
-
/** Shared infrastructure name. */
|
|
511
|
+
export type ExtraRepositoriesRequest = {
|
|
512
|
+
/** Extra repository name. */
|
|
422
513
|
name: string;
|
|
423
|
-
/**
|
|
424
|
-
description
|
|
425
|
-
/**
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
|
|
429
|
-
/** Stack used to generate this shared infrastructure. */
|
|
430
|
-
stackVersionId: string;
|
|
431
|
-
/** Starter used to generate this shared infrastructure. */
|
|
432
|
-
starterId?: string;
|
|
433
|
-
/** Shared Infrastructure status. */
|
|
434
|
-
status: string;
|
|
435
|
-
/** Shared Infrastructure creator. */
|
|
436
|
-
createdBy: string;
|
|
437
|
-
/** Shared Infrastructure creation date. */
|
|
438
|
-
createdAt: string;
|
|
439
|
-
/** Shared Infrastructure updater. */
|
|
440
|
-
updatedBy: string;
|
|
441
|
-
/** Shared Infrastructure update date. */
|
|
442
|
-
updatedAt: string;
|
|
514
|
+
/** Extra repository description. */
|
|
515
|
+
description: string;
|
|
516
|
+
/** Extra repository provider. */
|
|
517
|
+
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZUREDEVOPS";
|
|
518
|
+
/** Extra repository url. */
|
|
519
|
+
url: string;
|
|
443
520
|
};
|
|
444
521
|
export type CreateSharedInfraRequest = {
|
|
445
522
|
/** Shared infrastructure name. */
|
|
@@ -454,6 +531,8 @@ export type CreateSharedInfraRequest = {
|
|
|
454
531
|
stackVersionId: string;
|
|
455
532
|
/** Starter used to generate this shared infrastructure. */
|
|
456
533
|
starterId?: string;
|
|
534
|
+
/** Extra repository this shared infrastructure. */
|
|
535
|
+
extraRepositories?: ExtraRepositoriesRequest[];
|
|
457
536
|
};
|
|
458
537
|
export type RecreateSharedInfraRequest = {
|
|
459
538
|
/** Shared infrastructure name. */
|
|
@@ -478,6 +557,8 @@ export type UpdateSharedInfraRequest = {
|
|
|
478
557
|
repoUrl?: string;
|
|
479
558
|
/** Shared infrastructure repository base branch. */
|
|
480
559
|
repoBaseBranch?: string;
|
|
560
|
+
/** Extra repository for this application. */
|
|
561
|
+
extraRepositories?: ExtraRepositoriesRequest[];
|
|
481
562
|
};
|
|
482
563
|
export type SharedInfraLinkReadResponse = {
|
|
483
564
|
/** Shared infra link id. */
|
|
@@ -527,6 +608,8 @@ export type StartRunRequest = {
|
|
|
527
608
|
action: "CREATE" | "UPDATE" | "DELETE" | "RUN";
|
|
528
609
|
/** Run ID. */
|
|
529
610
|
runId: string;
|
|
611
|
+
/** Workflow executionId. */
|
|
612
|
+
executionId?: string;
|
|
530
613
|
/** Environment id. */
|
|
531
614
|
environmentId: string;
|
|
532
615
|
/** Application id. */
|
|
@@ -616,32 +699,6 @@ export type UpdateConnectionInterfaceVisibilityRequest = {
|
|
|
616
699
|
ids: string[];
|
|
617
700
|
"type": "ACCOUNT" | "APPLICATION" | "WORKSPACE";
|
|
618
701
|
};
|
|
619
|
-
export type ApplicationReadResponse = {
|
|
620
|
-
/** Application id. */
|
|
621
|
-
id: string;
|
|
622
|
-
/** Application name. */
|
|
623
|
-
name: string;
|
|
624
|
-
/** Application description. */
|
|
625
|
-
description?: string;
|
|
626
|
-
/** Application repository url. */
|
|
627
|
-
repoUrl?: string;
|
|
628
|
-
/** Application repository base branch. */
|
|
629
|
-
repoBaseBranch: string;
|
|
630
|
-
/** Stack used to generate this application. */
|
|
631
|
-
stackVersionId: string;
|
|
632
|
-
/** Starter used to generate this application. */
|
|
633
|
-
starterId: string;
|
|
634
|
-
/** Application status. */
|
|
635
|
-
status: string;
|
|
636
|
-
/** Application creator. */
|
|
637
|
-
createdBy: string;
|
|
638
|
-
/** Application creation date. */
|
|
639
|
-
createdAt: string;
|
|
640
|
-
/** Application updater. */
|
|
641
|
-
updatedBy: string;
|
|
642
|
-
/** Application update date. */
|
|
643
|
-
updatedAt: string;
|
|
644
|
-
};
|
|
645
702
|
export type CreateApplicationRequest = {
|
|
646
703
|
/** Application name. */
|
|
647
704
|
name: string;
|
|
@@ -655,6 +712,8 @@ export type CreateApplicationRequest = {
|
|
|
655
712
|
stackVersionId: string;
|
|
656
713
|
/** Starter used to generate this application. */
|
|
657
714
|
starterId: string;
|
|
715
|
+
/** Extra repository this shared infrastructure. */
|
|
716
|
+
extraRepositories?: ExtraRepositoriesRequest[];
|
|
658
717
|
};
|
|
659
718
|
export type RecreateApplicationRequest = {
|
|
660
719
|
/** Application name. */
|
|
@@ -679,6 +738,8 @@ export type UpdateApplicationRequest = {
|
|
|
679
738
|
repoUrl?: string;
|
|
680
739
|
/** Application repository base branch. */
|
|
681
740
|
repoBaseBranch?: string;
|
|
741
|
+
/** Extra repository for this application. */
|
|
742
|
+
extraRepositories?: ExtraRepositoriesRequest[];
|
|
682
743
|
};
|
|
683
744
|
export type ApplicationLinkReadResponse = {
|
|
684
745
|
/** Shared infra link id. */
|
|
@@ -973,6 +1034,13 @@ export type EnvironmentUpdateRequest = {
|
|
|
973
1034
|
/** Environment description. */
|
|
974
1035
|
description?: string;
|
|
975
1036
|
};
|
|
1037
|
+
export type WorkspacePageResponse = {
|
|
1038
|
+
currentPage: number;
|
|
1039
|
+
pageSize: number;
|
|
1040
|
+
lastPage: number;
|
|
1041
|
+
totalItems: number;
|
|
1042
|
+
items: WorkspaceResponse[];
|
|
1043
|
+
};
|
|
976
1044
|
export type PaginatedWorkspaceVariableResponse = {
|
|
977
1045
|
currentPage: number;
|
|
978
1046
|
pageSize: number;
|
|
@@ -1071,6 +1139,7 @@ export type ConsolidatedAttr = {
|
|
|
1071
1139
|
};
|
|
1072
1140
|
export type ConsolidatedAttrByEnv = {
|
|
1073
1141
|
environmentId: string;
|
|
1142
|
+
envName: string;
|
|
1074
1143
|
attributes: ConsolidatedAttr[];
|
|
1075
1144
|
};
|
|
1076
1145
|
export type ConsolidatedContextResponse = {
|
|
@@ -1101,7 +1170,7 @@ export type ActivityResponse = {
|
|
|
1101
1170
|
version?: string;
|
|
1102
1171
|
owner?: string;
|
|
1103
1172
|
status: "SUCCESS" | "FAILED" | "SKIPPED" | "CANCELLED" | "RUNTIME_ERROR" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED" | "ABORTING" | "SUCCEEDED" | "USER_ERROR" | "DRIFT" | "TIMEOUT" | "RUNNING" | "READY_TO_RUN" | "PENDING" | "NONE";
|
|
1104
|
-
"type"
|
|
1173
|
+
"type": "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "IAC" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED" | "IAC_SELF_HOSTED" | "CUSTOMER_WORKFLOW";
|
|
1105
1174
|
requestedBy?: string;
|
|
1106
1175
|
action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
|
|
1107
1176
|
time: number;
|
|
@@ -1133,6 +1202,9 @@ export type AppAndInfraDependencyResponse = {
|
|
|
1133
1202
|
hasApplication: boolean;
|
|
1134
1203
|
dependencies: Dependencies[];
|
|
1135
1204
|
};
|
|
1205
|
+
export type StacksVersionIdsResponse = {
|
|
1206
|
+
stackVersionIds: string[];
|
|
1207
|
+
};
|
|
1136
1208
|
export type ConnectionInterfaceDetailsResponse = {
|
|
1137
1209
|
/** Connection interface id. */
|
|
1138
1210
|
id: string;
|
|
@@ -1170,7 +1242,7 @@ export type SpecResponse = {
|
|
|
1170
1242
|
repository?: string;
|
|
1171
1243
|
appliedPlugins: AppliedPluginV2Response[];
|
|
1172
1244
|
};
|
|
1173
|
-
export type
|
|
1245
|
+
export type ManifestoResponse = {
|
|
1174
1246
|
schemaVersion: string;
|
|
1175
1247
|
kind: string;
|
|
1176
1248
|
metadata: MetaDataResponse;
|
|
@@ -1188,13 +1260,7 @@ export type AppDeployResponse = {
|
|
|
1188
1260
|
deployStatus: "SUCCEEDED" | "FAILED";
|
|
1189
1261
|
requestedBy: string;
|
|
1190
1262
|
dateTime: string;
|
|
1191
|
-
manifesto:
|
|
1192
|
-
};
|
|
1193
|
-
export type InfraManifestoResponse = {
|
|
1194
|
-
schemaVersion?: string;
|
|
1195
|
-
kind?: string;
|
|
1196
|
-
metadata?: MetaDataResponse;
|
|
1197
|
-
spec: SpecResponse;
|
|
1263
|
+
manifesto: ManifestoResponse;
|
|
1198
1264
|
};
|
|
1199
1265
|
export type InfraDeployResponse = {
|
|
1200
1266
|
deploymentId: string;
|
|
@@ -1208,7 +1274,7 @@ export type InfraDeployResponse = {
|
|
|
1208
1274
|
status: "ACTIVE" | "INACTIVE";
|
|
1209
1275
|
action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
|
|
1210
1276
|
requestedBy?: string;
|
|
1211
|
-
manifesto:
|
|
1277
|
+
manifesto: ManifestoResponse;
|
|
1212
1278
|
};
|
|
1213
1279
|
export type ApplicationDeployInfoResponse = {
|
|
1214
1280
|
appDeploy?: AppDeployResponse;
|
|
@@ -1287,10 +1353,6 @@ export type WorkflowActionUsageResponse = {
|
|
|
1287
1353
|
versionRanges: string[];
|
|
1288
1354
|
};
|
|
1289
1355
|
export type AccountVariableUsageResponse = {
|
|
1290
|
-
/** How many plugins are using this account variable */
|
|
1291
|
-
pluginsInUse: number;
|
|
1292
|
-
/** How many actions are using this account variable */
|
|
1293
|
-
actionsInUse: number;
|
|
1294
1356
|
/** How many contexts are using this account variable */
|
|
1295
1357
|
contextsInUse: number;
|
|
1296
1358
|
};
|
|
@@ -1301,6 +1363,7 @@ export type AccountAttr = {
|
|
|
1301
1363
|
};
|
|
1302
1364
|
export type AccountAttrByEnv = {
|
|
1303
1365
|
environmentId: string;
|
|
1366
|
+
envName: string;
|
|
1304
1367
|
attributes: AccountAttr[];
|
|
1305
1368
|
};
|
|
1306
1369
|
export type AccountContextResponse = {
|
|
@@ -1376,16 +1439,17 @@ export function workspaceVariableV2Controllerupsert({ workspaceId, name, upsertW
|
|
|
1376
1439
|
})));
|
|
1377
1440
|
}
|
|
1378
1441
|
/**
|
|
1379
|
-
*
|
|
1442
|
+
* Add context to a typed element in a workspace's stack.
|
|
1380
1443
|
*/
|
|
1381
|
-
export function
|
|
1444
|
+
export function contextV2ControlleraddTypedContextInWorkspace({ workspaceId, stackVersionId, externalId, $type, contextValuesRequest }: {
|
|
1382
1445
|
workspaceId: string;
|
|
1383
|
-
|
|
1384
|
-
|
|
1446
|
+
stackVersionId: string;
|
|
1447
|
+
externalId: string;
|
|
1448
|
+
$type: "plugin" | "action";
|
|
1449
|
+
contextValuesRequest: ContextValuesRequest;
|
|
1385
1450
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1386
1451
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1387
|
-
status:
|
|
1388
|
-
data: WorkflowContextResponse;
|
|
1452
|
+
status: 204;
|
|
1389
1453
|
} | {
|
|
1390
1454
|
status: 400;
|
|
1391
1455
|
data: ErrorResponse;
|
|
@@ -1398,18 +1462,19 @@ export function workflowWorkspaceControllerlistContextByWorkspaceStack({ workspa
|
|
|
1398
1462
|
} | {
|
|
1399
1463
|
status: 500;
|
|
1400
1464
|
data: ErrorResponse;
|
|
1401
|
-
}>(`/
|
|
1402
|
-
...opts
|
|
1403
|
-
|
|
1465
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}s/${encodeURIComponent(externalId)}/input-context`, oazapfts.json({
|
|
1466
|
+
...opts,
|
|
1467
|
+
method: "PUT",
|
|
1468
|
+
body: contextValuesRequest
|
|
1469
|
+
})));
|
|
1404
1470
|
}
|
|
1405
1471
|
/**
|
|
1406
|
-
*
|
|
1472
|
+
* Import context in a workspace's stack.
|
|
1407
1473
|
*/
|
|
1408
|
-
export function
|
|
1474
|
+
export function contextV2ControllerimportContextInWorkspace({ workspaceId, stackVersionId, importContextV2Request }: {
|
|
1409
1475
|
workspaceId: string;
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
workspaceWorkflowCreateRequest: WorkspaceWorkflowCreateRequest;
|
|
1476
|
+
stackVersionId: string;
|
|
1477
|
+
importContextV2Request: ImportContextV2Request;
|
|
1413
1478
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1414
1479
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1415
1480
|
status: 204;
|
|
@@ -1422,24 +1487,26 @@ export function workflowWorkspaceControllersaveWorkspaceWorkflowContext({ worksp
|
|
|
1422
1487
|
} | {
|
|
1423
1488
|
status: 404;
|
|
1424
1489
|
data: ErrorResponse;
|
|
1490
|
+
} | {
|
|
1491
|
+
status: 422;
|
|
1492
|
+
data: ErrorResponse;
|
|
1425
1493
|
} | {
|
|
1426
1494
|
status: 500;
|
|
1427
1495
|
data: ErrorResponse;
|
|
1428
|
-
}>(`/
|
|
1496
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/input-context`, oazapfts.json({
|
|
1429
1497
|
...opts,
|
|
1430
1498
|
method: "PUT",
|
|
1431
|
-
body:
|
|
1499
|
+
body: importContextV2Request
|
|
1432
1500
|
})));
|
|
1433
1501
|
}
|
|
1434
1502
|
/**
|
|
1435
|
-
* Add context to a typed element in
|
|
1503
|
+
* Add context to a typed element in an account's stack.
|
|
1436
1504
|
*/
|
|
1437
|
-
export function
|
|
1438
|
-
workspaceId: string;
|
|
1505
|
+
export function contextV2ControlleraddTypedContextInAccount({ stackVersionId, externalId, $type, contextValuesRequest }: {
|
|
1439
1506
|
stackVersionId: string;
|
|
1440
1507
|
externalId: string;
|
|
1441
1508
|
$type: "plugin" | "action";
|
|
1442
|
-
|
|
1509
|
+
contextValuesRequest: ContextValuesRequest;
|
|
1443
1510
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1444
1511
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1445
1512
|
status: 204;
|
|
@@ -1455,49 +1522,76 @@ export function contextControlleraddTypedContextInWorkspace({ workspaceId, stack
|
|
|
1455
1522
|
} | {
|
|
1456
1523
|
status: 500;
|
|
1457
1524
|
data: ErrorResponse;
|
|
1458
|
-
}>(`/
|
|
1525
|
+
}>(`/v2/account/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}s/${encodeURIComponent(externalId)}/input-context`, oazapfts.json({
|
|
1459
1526
|
...opts,
|
|
1460
1527
|
method: "PUT",
|
|
1461
|
-
body:
|
|
1528
|
+
body: contextValuesRequest
|
|
1462
1529
|
})));
|
|
1463
1530
|
}
|
|
1464
1531
|
/**
|
|
1465
|
-
*
|
|
1532
|
+
* Import context in an account's stack.
|
|
1466
1533
|
*/
|
|
1467
|
-
export function
|
|
1468
|
-
workspaceId: string;
|
|
1534
|
+
export function contextV2ControllerimportContextInAccount({ stackVersionId, importContextV2Request }: {
|
|
1469
1535
|
stackVersionId: string;
|
|
1470
|
-
|
|
1536
|
+
importContextV2Request: ImportContextV2Request;
|
|
1537
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1538
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1539
|
+
status: 204;
|
|
1540
|
+
} | {
|
|
1541
|
+
status: 400;
|
|
1542
|
+
data: ErrorResponse;
|
|
1543
|
+
} | {
|
|
1544
|
+
status: 403;
|
|
1545
|
+
data: ErrorResponse;
|
|
1546
|
+
} | {
|
|
1547
|
+
status: 404;
|
|
1548
|
+
data: ErrorResponse;
|
|
1549
|
+
} | {
|
|
1550
|
+
status: 500;
|
|
1551
|
+
data: ErrorResponse;
|
|
1552
|
+
}>(`/v2/account/stacks/${encodeURIComponent(stackVersionId)}/input-context`, oazapfts.json({
|
|
1553
|
+
...opts,
|
|
1554
|
+
method: "PUT",
|
|
1555
|
+
body: importContextV2Request
|
|
1556
|
+
})));
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* List all configured context of an workflow by workspace and stack.
|
|
1560
|
+
*/
|
|
1561
|
+
export function workflowWorkspaceControllerlistContextByWorkspaceStack({ workspaceId, workflowId, stackId }: {
|
|
1562
|
+
workspaceId: string;
|
|
1563
|
+
workflowId: string;
|
|
1564
|
+
stackId: string;
|
|
1471
1565
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1472
1566
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1473
1567
|
status: 200;
|
|
1474
|
-
data:
|
|
1568
|
+
data: WorkflowContextResponse;
|
|
1475
1569
|
} | {
|
|
1476
1570
|
status: 400;
|
|
1477
1571
|
data: ErrorResponse;
|
|
1478
1572
|
} | {
|
|
1479
1573
|
status: 403;
|
|
1480
1574
|
data: ErrorResponse;
|
|
1575
|
+
} | {
|
|
1576
|
+
status: 404;
|
|
1577
|
+
data: ErrorResponse;
|
|
1481
1578
|
} | {
|
|
1482
1579
|
status: 500;
|
|
1483
1580
|
data: ErrorResponse;
|
|
1484
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
1485
|
-
identifier
|
|
1486
|
-
}))}`, {
|
|
1581
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks/${encodeURIComponent(stackId)}/context`, {
|
|
1487
1582
|
...opts
|
|
1488
1583
|
}));
|
|
1489
1584
|
}
|
|
1490
1585
|
/**
|
|
1491
|
-
*
|
|
1586
|
+
* Save workspace workflow context
|
|
1492
1587
|
*/
|
|
1493
|
-
export function
|
|
1588
|
+
export function workflowWorkspaceControllersaveWorkspaceWorkflowContext({ workspaceId, workflowId, stackId, workspaceWorkflowCreateRequest }: {
|
|
1494
1589
|
workspaceId: string;
|
|
1495
|
-
|
|
1496
|
-
|
|
1590
|
+
workflowId: string;
|
|
1591
|
+
stackId: string;
|
|
1592
|
+
workspaceWorkflowCreateRequest: WorkspaceWorkflowCreateRequest;
|
|
1497
1593
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1498
1594
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1499
|
-
status: 200;
|
|
1500
|
-
} | {
|
|
1501
1595
|
status: 204;
|
|
1502
1596
|
} | {
|
|
1503
1597
|
status: 400;
|
|
@@ -1511,22 +1605,23 @@ export function workflowControlleraddWorkflowStepInWorkspace({ workspaceId, stac
|
|
|
1511
1605
|
} | {
|
|
1512
1606
|
status: 500;
|
|
1513
1607
|
data: ErrorResponse;
|
|
1514
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(
|
|
1608
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks/${encodeURIComponent(stackId)}/context`, oazapfts.json({
|
|
1515
1609
|
...opts,
|
|
1516
1610
|
method: "PUT",
|
|
1517
|
-
body:
|
|
1611
|
+
body: workspaceWorkflowCreateRequest
|
|
1518
1612
|
})));
|
|
1519
1613
|
}
|
|
1520
1614
|
/**
|
|
1521
|
-
*
|
|
1615
|
+
* Get Workflow of a stack in a workspace.
|
|
1522
1616
|
*/
|
|
1523
|
-
export function
|
|
1617
|
+
export function workflowControllergetWorkspaceWorkflow({ workspaceId, stackVersionId, identifier }: {
|
|
1524
1618
|
workspaceId: string;
|
|
1525
1619
|
stackVersionId: string;
|
|
1526
|
-
|
|
1620
|
+
identifier?: string;
|
|
1527
1621
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1528
1622
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1529
|
-
status:
|
|
1623
|
+
status: 200;
|
|
1624
|
+
data: WorkflowReadResponse[];
|
|
1530
1625
|
} | {
|
|
1531
1626
|
status: 400;
|
|
1532
1627
|
data: ErrorResponse;
|
|
@@ -1534,18 +1629,42 @@ export function contextControllerimportContextInWorkspace({ workspaceId, stackVe
|
|
|
1534
1629
|
status: 403;
|
|
1535
1630
|
data: ErrorResponse;
|
|
1536
1631
|
} | {
|
|
1537
|
-
status:
|
|
1632
|
+
status: 500;
|
|
1633
|
+
data: ErrorResponse;
|
|
1634
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows${QS.query(QS.explode({
|
|
1635
|
+
identifier
|
|
1636
|
+
}))}`, {
|
|
1637
|
+
...opts
|
|
1638
|
+
}));
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* Add step to a workflow belonging to a workspace.
|
|
1642
|
+
*/
|
|
1643
|
+
export function workflowControlleraddWorkflowStepInWorkspace({ workspaceId, stackVersionId, addWorkspaceWorkflowStepRequest }: {
|
|
1644
|
+
workspaceId: string;
|
|
1645
|
+
stackVersionId: string;
|
|
1646
|
+
addWorkspaceWorkflowStepRequest: AddWorkspaceWorkflowStepRequest;
|
|
1647
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1648
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1649
|
+
status: 200;
|
|
1650
|
+
} | {
|
|
1651
|
+
status: 204;
|
|
1652
|
+
} | {
|
|
1653
|
+
status: 400;
|
|
1538
1654
|
data: ErrorResponse;
|
|
1539
1655
|
} | {
|
|
1540
|
-
status:
|
|
1656
|
+
status: 403;
|
|
1657
|
+
data: ErrorResponse;
|
|
1658
|
+
} | {
|
|
1659
|
+
status: 404;
|
|
1541
1660
|
data: ErrorResponse;
|
|
1542
1661
|
} | {
|
|
1543
1662
|
status: 500;
|
|
1544
1663
|
data: ErrorResponse;
|
|
1545
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/
|
|
1664
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows`, oazapfts.json({
|
|
1546
1665
|
...opts,
|
|
1547
1666
|
method: "PUT",
|
|
1548
|
-
body
|
|
1667
|
+
body: addWorkspaceWorkflowStepRequest
|
|
1549
1668
|
})));
|
|
1550
1669
|
}
|
|
1551
1670
|
/**
|
|
@@ -2094,35 +2213,6 @@ export function accountVariableControllerdelete({ name }: {
|
|
|
2094
2213
|
method: "DELETE"
|
|
2095
2214
|
}));
|
|
2096
2215
|
}
|
|
2097
|
-
/**
|
|
2098
|
-
* Add context to a typed element in an account's stack.
|
|
2099
|
-
*/
|
|
2100
|
-
export function contextControlleraddTypedContextInAccount({ stackVersionId, externalId, $type, addTypedContextRequest }: {
|
|
2101
|
-
stackVersionId: string;
|
|
2102
|
-
externalId: string;
|
|
2103
|
-
$type: "plugin" | "action";
|
|
2104
|
-
addTypedContextRequest: AddTypedContextRequest;
|
|
2105
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2106
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2107
|
-
status: 204;
|
|
2108
|
-
} | {
|
|
2109
|
-
status: 400;
|
|
2110
|
-
data: ErrorResponse;
|
|
2111
|
-
} | {
|
|
2112
|
-
status: 403;
|
|
2113
|
-
data: ErrorResponse;
|
|
2114
|
-
} | {
|
|
2115
|
-
status: 404;
|
|
2116
|
-
data: ErrorResponse;
|
|
2117
|
-
} | {
|
|
2118
|
-
status: 500;
|
|
2119
|
-
data: ErrorResponse;
|
|
2120
|
-
}>(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}s/${encodeURIComponent(externalId)}/input-context`, oazapfts.json({
|
|
2121
|
-
...opts,
|
|
2122
|
-
method: "PUT",
|
|
2123
|
-
body: addTypedContextRequest
|
|
2124
|
-
})));
|
|
2125
|
-
}
|
|
2126
2216
|
/**
|
|
2127
2217
|
* Get Workflow of a stack in an account.
|
|
2128
2218
|
*/
|
|
@@ -2178,11 +2268,12 @@ export function workflowControlleraddWorkflowStepInAccount({ stackVersionId, add
|
|
|
2178
2268
|
})));
|
|
2179
2269
|
}
|
|
2180
2270
|
/**
|
|
2181
|
-
*
|
|
2271
|
+
* Save stack workflow context
|
|
2182
2272
|
*/
|
|
2183
|
-
export function
|
|
2184
|
-
|
|
2185
|
-
|
|
2273
|
+
export function workflowStackControllersaveStackWorkflowContext({ stackId, workflowId, stackWorkflowCreateRequest }: {
|
|
2274
|
+
stackId: string;
|
|
2275
|
+
workflowId: string;
|
|
2276
|
+
stackWorkflowCreateRequest: StackWorkflowCreateRequest;
|
|
2186
2277
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2187
2278
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2188
2279
|
status: 204;
|
|
@@ -2196,27 +2287,65 @@ export function contextControllerimportContextInAccount({ stackVersionId, body }
|
|
|
2196
2287
|
status: 404;
|
|
2197
2288
|
data: ErrorResponse;
|
|
2198
2289
|
} | {
|
|
2199
|
-
status:
|
|
2290
|
+
status: 500;
|
|
2291
|
+
data: ErrorResponse;
|
|
2292
|
+
}>(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
|
|
2293
|
+
...opts,
|
|
2294
|
+
method: "PUT",
|
|
2295
|
+
body: stackWorkflowCreateRequest
|
|
2296
|
+
})));
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* Get shared infra page.
|
|
2300
|
+
*/
|
|
2301
|
+
export function sharedInfrastructureV2ControllergetSharedInfra({ workspaceId, page, size, sortBy, sortDir, getSharedInfraRequestBody }: {
|
|
2302
|
+
workspaceId: string;
|
|
2303
|
+
page?: number;
|
|
2304
|
+
size?: number;
|
|
2305
|
+
sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
|
|
2306
|
+
sortDir?: "ASC" | "DESC";
|
|
2307
|
+
getSharedInfraRequestBody?: GetSharedInfraRequestBody;
|
|
2308
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2309
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2310
|
+
status: 200;
|
|
2311
|
+
data: SharedInfraPageResponse;
|
|
2312
|
+
} | {
|
|
2313
|
+
status: 400;
|
|
2314
|
+
data: ErrorResponse;
|
|
2315
|
+
} | {
|
|
2316
|
+
status: 403;
|
|
2317
|
+
data: ErrorResponse;
|
|
2318
|
+
} | {
|
|
2319
|
+
status: 404;
|
|
2200
2320
|
data: ErrorResponse;
|
|
2201
2321
|
} | {
|
|
2202
2322
|
status: 500;
|
|
2203
2323
|
data: ErrorResponse;
|
|
2204
|
-
}>(`/
|
|
2324
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra${QS.query(QS.explode({
|
|
2325
|
+
page,
|
|
2326
|
+
size,
|
|
2327
|
+
sortBy,
|
|
2328
|
+
sortDir
|
|
2329
|
+
}))}`, oazapfts.json({
|
|
2205
2330
|
...opts,
|
|
2206
|
-
method: "
|
|
2207
|
-
body
|
|
2331
|
+
method: "POST",
|
|
2332
|
+
body: getSharedInfraRequestBody
|
|
2208
2333
|
})));
|
|
2209
2334
|
}
|
|
2210
2335
|
/**
|
|
2211
|
-
*
|
|
2336
|
+
* Get applications from a workspace with pagination.
|
|
2212
2337
|
*/
|
|
2213
|
-
export function
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2338
|
+
export function applicationV2ControllergetApplications({ workspaceId, page, size, sortBy, sortDir, getApplicationsRequestBody }: {
|
|
2339
|
+
workspaceId: string;
|
|
2340
|
+
page?: number;
|
|
2341
|
+
size?: number;
|
|
2342
|
+
sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
|
|
2343
|
+
sortDir?: "ASC" | "DESC";
|
|
2344
|
+
getApplicationsRequestBody?: GetApplicationsRequestBody;
|
|
2217
2345
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2218
2346
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2219
|
-
status:
|
|
2347
|
+
status: 200;
|
|
2348
|
+
data: ApplicationPageResponse;
|
|
2220
2349
|
} | {
|
|
2221
2350
|
status: 400;
|
|
2222
2351
|
data: ErrorResponse;
|
|
@@ -2229,10 +2358,15 @@ export function workflowStackControllersaveStackWorkflowContext({ stackId, workf
|
|
|
2229
2358
|
} | {
|
|
2230
2359
|
status: 500;
|
|
2231
2360
|
data: ErrorResponse;
|
|
2232
|
-
}>(`/
|
|
2361
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications${QS.query(QS.explode({
|
|
2362
|
+
page,
|
|
2363
|
+
size,
|
|
2364
|
+
sortBy,
|
|
2365
|
+
sortDir
|
|
2366
|
+
}))}`, oazapfts.json({
|
|
2233
2367
|
...opts,
|
|
2234
|
-
method: "
|
|
2235
|
-
body:
|
|
2368
|
+
method: "POST",
|
|
2369
|
+
body: getApplicationsRequestBody
|
|
2236
2370
|
})));
|
|
2237
2371
|
}
|
|
2238
2372
|
/**
|
|
@@ -2416,6 +2550,36 @@ export function workspaceStackControllergetStacksWithContext({ workspaceId, body
|
|
|
2416
2550
|
body
|
|
2417
2551
|
})));
|
|
2418
2552
|
}
|
|
2553
|
+
/**
|
|
2554
|
+
* Add a stack version in a workspace.
|
|
2555
|
+
*/
|
|
2556
|
+
export function workspaceStackControlleraddUpdateStack({ workspaceId, addStackInWorkspaceRequest }: {
|
|
2557
|
+
workspaceId: string;
|
|
2558
|
+
addStackInWorkspaceRequest: AddStackInWorkspaceRequest;
|
|
2559
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2560
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2561
|
+
status: 204;
|
|
2562
|
+
} | {
|
|
2563
|
+
status: 400;
|
|
2564
|
+
data: ErrorResponse;
|
|
2565
|
+
} | {
|
|
2566
|
+
status: 403;
|
|
2567
|
+
data: ErrorResponse;
|
|
2568
|
+
} | {
|
|
2569
|
+
status: 404;
|
|
2570
|
+
data: ErrorResponse;
|
|
2571
|
+
} | {
|
|
2572
|
+
status: 422;
|
|
2573
|
+
data: ErrorResponse;
|
|
2574
|
+
} | {
|
|
2575
|
+
status: 500;
|
|
2576
|
+
data: ErrorResponse;
|
|
2577
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/-/update`, oazapfts.json({
|
|
2578
|
+
...opts,
|
|
2579
|
+
method: "POST",
|
|
2580
|
+
body: addStackInWorkspaceRequest
|
|
2581
|
+
})));
|
|
2582
|
+
}
|
|
2419
2583
|
/**
|
|
2420
2584
|
* Get all shared infrastructure of a workspace.
|
|
2421
2585
|
*/
|
|
@@ -4197,6 +4361,41 @@ export function environmentControllerupdate({ id, environmentUpdateRequest }: {
|
|
|
4197
4361
|
body: environmentUpdateRequest
|
|
4198
4362
|
})));
|
|
4199
4363
|
}
|
|
4364
|
+
/**
|
|
4365
|
+
* Get all workspaces
|
|
4366
|
+
*/
|
|
4367
|
+
export function workspaceV2ControllergetWorkspaces({ name, aclOnly, accountId, page, size, sortBy, sortDir }: {
|
|
4368
|
+
name?: string;
|
|
4369
|
+
aclOnly?: boolean;
|
|
4370
|
+
accountId?: string;
|
|
4371
|
+
page?: number;
|
|
4372
|
+
size?: number;
|
|
4373
|
+
sortBy?: "NAME" | "DESCRIPTION";
|
|
4374
|
+
sortDir?: "ASC" | "DESC";
|
|
4375
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4376
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4377
|
+
status: 200;
|
|
4378
|
+
data: WorkspacePageResponse;
|
|
4379
|
+
} | {
|
|
4380
|
+
status: 403;
|
|
4381
|
+
data: ErrorResponse;
|
|
4382
|
+
} | {
|
|
4383
|
+
status: 500;
|
|
4384
|
+
data: ErrorResponse;
|
|
4385
|
+
}>(`/v2/workspaces${QS.query(QS.explode({
|
|
4386
|
+
name,
|
|
4387
|
+
aclOnly,
|
|
4388
|
+
page,
|
|
4389
|
+
size,
|
|
4390
|
+
sortBy,
|
|
4391
|
+
sortDir
|
|
4392
|
+
}))}`, {
|
|
4393
|
+
...opts,
|
|
4394
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4395
|
+
accountId
|
|
4396
|
+
})
|
|
4397
|
+
}));
|
|
4398
|
+
}
|
|
4200
4399
|
/**
|
|
4201
4400
|
* Find all workspace variables
|
|
4202
4401
|
*/
|
|
@@ -4532,11 +4731,11 @@ export function workspaceStackControllerdeleteStack({ workspaceId, stackVersionI
|
|
|
4532
4731
|
/**
|
|
4533
4732
|
* List the consolidated input context of all stack elements for given type in a workspace.
|
|
4534
4733
|
*/
|
|
4535
|
-
export function contextControllerlistConsolidatedContext({ workspaceId, stackVersionId, $type,
|
|
4734
|
+
export function contextControllerlistConsolidatedContext({ workspaceId, stackVersionId, $type, envName, externalId }: {
|
|
4536
4735
|
workspaceId: string;
|
|
4537
4736
|
stackVersionId: string;
|
|
4538
4737
|
$type: "plugin" | "action";
|
|
4539
|
-
|
|
4738
|
+
envName?: string;
|
|
4540
4739
|
externalId?: string;
|
|
4541
4740
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4542
4741
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4555,7 +4754,7 @@ export function contextControllerlistConsolidatedContext({ workspaceId, stackVer
|
|
|
4555
4754
|
status: 500;
|
|
4556
4755
|
data: ErrorResponse;
|
|
4557
4756
|
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}-context${QS.query(QS.explode({
|
|
4558
|
-
|
|
4757
|
+
envName,
|
|
4559
4758
|
externalId
|
|
4560
4759
|
}))}`, {
|
|
4561
4760
|
...opts
|
|
@@ -4625,7 +4824,7 @@ export function sharedInfrastructureControllerlistActivities({ workspaceId, shar
|
|
|
4625
4824
|
workspaceId: string;
|
|
4626
4825
|
sharedInfraId: string;
|
|
4627
4826
|
environmentId: string;
|
|
4628
|
-
$type?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "IAC" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED" | "IAC_SELF_HOSTED" | "CUSTOMER_WORKFLOW";
|
|
4827
|
+
$type?: ("DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "IAC" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED" | "IAC_SELF_HOSTED" | "CUSTOMER_WORKFLOW")[];
|
|
4629
4828
|
page: number;
|
|
4630
4829
|
size: number;
|
|
4631
4830
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4678,6 +4877,28 @@ export function sharedInfrastructureControllergetDependencyTree({ workspaceId, s
|
|
|
4678
4877
|
...opts
|
|
4679
4878
|
}));
|
|
4680
4879
|
}
|
|
4880
|
+
/**
|
|
4881
|
+
* Get stack version in use by shared infra in a workspace
|
|
4882
|
+
*/
|
|
4883
|
+
export function sharedInfrastructureControllergetStackVersionsInUse({ workspaceId }: {
|
|
4884
|
+
workspaceId: string;
|
|
4885
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4886
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4887
|
+
status: 200;
|
|
4888
|
+
data: StacksVersionIdsResponse;
|
|
4889
|
+
} | {
|
|
4890
|
+
status: 403;
|
|
4891
|
+
data: ErrorResponse;
|
|
4892
|
+
} | {
|
|
4893
|
+
status: 404;
|
|
4894
|
+
data: ErrorResponse;
|
|
4895
|
+
} | {
|
|
4896
|
+
status: 500;
|
|
4897
|
+
data: ErrorResponse;
|
|
4898
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/stacks/versions`, {
|
|
4899
|
+
...opts
|
|
4900
|
+
}));
|
|
4901
|
+
}
|
|
4681
4902
|
/**
|
|
4682
4903
|
* Get a connection interface by connection interface id.
|
|
4683
4904
|
*/
|
|
@@ -4878,7 +5099,7 @@ export function applicationControllerlistActivities({ workspaceId, applicationId
|
|
|
4878
5099
|
workspaceId: string;
|
|
4879
5100
|
applicationId: string;
|
|
4880
5101
|
environmentId: string;
|
|
4881
|
-
$type?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "IAC" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED" | "IAC_SELF_HOSTED" | "CUSTOMER_WORKFLOW";
|
|
5102
|
+
$type?: ("DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "IAC" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED" | "IAC_SELF_HOSTED" | "CUSTOMER_WORKFLOW")[];
|
|
4882
5103
|
page: number;
|
|
4883
5104
|
size: number;
|
|
4884
5105
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4966,6 +5187,28 @@ export function applicationControllercanBeDeleted({ workspaceId, applicationId,
|
|
|
4966
5187
|
})
|
|
4967
5188
|
}));
|
|
4968
5189
|
}
|
|
5190
|
+
/**
|
|
5191
|
+
* Get stack version in use by applications in a workspace
|
|
5192
|
+
*/
|
|
5193
|
+
export function applicationControllergetStackVersionsInUse({ workspaceId }: {
|
|
5194
|
+
workspaceId: string;
|
|
5195
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5196
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5197
|
+
status: 200;
|
|
5198
|
+
data: StacksVersionIdsResponse;
|
|
5199
|
+
} | {
|
|
5200
|
+
status: 403;
|
|
5201
|
+
data: ErrorResponse;
|
|
5202
|
+
} | {
|
|
5203
|
+
status: 404;
|
|
5204
|
+
data: ErrorResponse;
|
|
5205
|
+
} | {
|
|
5206
|
+
status: 500;
|
|
5207
|
+
data: ErrorResponse;
|
|
5208
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/stacks/versions`, {
|
|
5209
|
+
...opts
|
|
5210
|
+
}));
|
|
5211
|
+
}
|
|
4969
5212
|
/**
|
|
4970
5213
|
* Get all workspaces within user permission
|
|
4971
5214
|
*/
|
|
@@ -5199,10 +5442,10 @@ export function accountVariableControllerusage({ accountId, name }: {
|
|
|
5199
5442
|
/**
|
|
5200
5443
|
* List the input context of all stack elements for given type in account.
|
|
5201
5444
|
*/
|
|
5202
|
-
export function contextControllerlistAccountContext({ stackVersionId, $type,
|
|
5445
|
+
export function contextControllerlistAccountContext({ stackVersionId, $type, envName, externalId }: {
|
|
5203
5446
|
stackVersionId: string;
|
|
5204
5447
|
$type: "plugin" | "action";
|
|
5205
|
-
|
|
5448
|
+
envName?: string;
|
|
5206
5449
|
externalId?: string;
|
|
5207
5450
|
}, opts?: Oazapfts.RequestOpts) {
|
|
5208
5451
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5221,7 +5464,7 @@ export function contextControllerlistAccountContext({ stackVersionId, $type, env
|
|
|
5221
5464
|
status: 500;
|
|
5222
5465
|
data: ErrorResponse;
|
|
5223
5466
|
}>(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}-context${QS.query(QS.explode({
|
|
5224
|
-
|
|
5467
|
+
envName,
|
|
5225
5468
|
externalId
|
|
5226
5469
|
}))}`, {
|
|
5227
5470
|
...opts
|