@stack-spot/portal-network 0.29.0 → 0.30.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.
- package/CHANGELOG.md +15 -0
- package/dist/api/workspace.d.ts +322 -216
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +255 -184
- package/dist/api/workspace.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +30 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +37 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace.d.ts +76 -24
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +136 -81
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/workspace.ts +499 -288
- package/src/client/workspace-manager.ts +20 -1
- package/src/client/workspace.ts +187 -145
package/src/api/workspace.ts
CHANGED
|
@@ -14,6 +14,36 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://workspace-workspace-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
+
export type WorkspaceVariableResponse = {
|
|
18
|
+
/** Workspace variable name. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Workspace variable value. */
|
|
21
|
+
value?: string;
|
|
22
|
+
/** Workspace variable description. */
|
|
23
|
+
description: string;
|
|
24
|
+
/** Workspace variable mandate flag. */
|
|
25
|
+
mandate: boolean;
|
|
26
|
+
/** Variable value source. */
|
|
27
|
+
source: string;
|
|
28
|
+
/** Workspace variable creation data */
|
|
29
|
+
createdAt: string;
|
|
30
|
+
};
|
|
31
|
+
export type ValidationDetails = {
|
|
32
|
+
code: string;
|
|
33
|
+
field?: string;
|
|
34
|
+
details?: string;
|
|
35
|
+
values?: string[];
|
|
36
|
+
};
|
|
37
|
+
export type ErrorResponse = {
|
|
38
|
+
code: string;
|
|
39
|
+
status: number;
|
|
40
|
+
details: string;
|
|
41
|
+
validationDetails?: ValidationDetails[];
|
|
42
|
+
};
|
|
43
|
+
export type UpsertWorkspaceVariableRequest = {
|
|
44
|
+
/** Workspace variable value. */
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
17
47
|
export type ContextAttributeDto = {
|
|
18
48
|
key: string;
|
|
19
49
|
value: object;
|
|
@@ -31,18 +61,6 @@ export type WorkflowContextResponse = {
|
|
|
31
61
|
actionsBefore: ActionContextResponse[];
|
|
32
62
|
actionsAfter: ActionContextResponse[];
|
|
33
63
|
};
|
|
34
|
-
export type ValidationDetails = {
|
|
35
|
-
code: string;
|
|
36
|
-
field?: string;
|
|
37
|
-
details?: string;
|
|
38
|
-
values?: string[];
|
|
39
|
-
};
|
|
40
|
-
export type ErrorResponse = {
|
|
41
|
-
code: string;
|
|
42
|
-
status: number;
|
|
43
|
-
details: string;
|
|
44
|
-
validationDetails?: ValidationDetails[];
|
|
45
|
-
};
|
|
46
64
|
export type ContextAttribute = {
|
|
47
65
|
key: string;
|
|
48
66
|
value: object;
|
|
@@ -56,20 +74,6 @@ export type WorkspaceWorkflowCreateRequest = {
|
|
|
56
74
|
actionsBefore: WorkflowActionContextRequest[];
|
|
57
75
|
actionsAfter: WorkflowActionContextRequest[];
|
|
58
76
|
};
|
|
59
|
-
export type WorkspaceVariableReadResponse = {
|
|
60
|
-
/** Workspace variable name. */
|
|
61
|
-
name: string;
|
|
62
|
-
/** Workspace variable value. */
|
|
63
|
-
value: string;
|
|
64
|
-
/** Workspace variable description. */
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
export type UpdateWorkspaceVariableRequest = {
|
|
68
|
-
/** Workspace variable value. */
|
|
69
|
-
value: string;
|
|
70
|
-
/** Workspace variable description. */
|
|
71
|
-
description: string;
|
|
72
|
-
};
|
|
73
77
|
export type PluginAttribute = {
|
|
74
78
|
key: string;
|
|
75
79
|
value: object;
|
|
@@ -292,6 +296,26 @@ export type ActionsWorkflowSaveRequest = {
|
|
|
292
296
|
actionsBefore: WorkflowActionRequest[];
|
|
293
297
|
actionsAfter: WorkflowActionRequest[];
|
|
294
298
|
};
|
|
299
|
+
export type AccountVariableResponse = {
|
|
300
|
+
/** Account variable name */
|
|
301
|
+
name: string;
|
|
302
|
+
/** Account variable value stored */
|
|
303
|
+
value?: string;
|
|
304
|
+
/** Account variable description */
|
|
305
|
+
description: string;
|
|
306
|
+
/** Account variable mandatory flag */
|
|
307
|
+
mandate: boolean;
|
|
308
|
+
/** Account variable creation data */
|
|
309
|
+
createdAt: string;
|
|
310
|
+
};
|
|
311
|
+
export type UpdateAccountVariableRequest = {
|
|
312
|
+
/** New account variable value */
|
|
313
|
+
value?: string;
|
|
314
|
+
/** New account variable description */
|
|
315
|
+
description: string;
|
|
316
|
+
/** New account variable mandatory flag */
|
|
317
|
+
mandate: boolean;
|
|
318
|
+
};
|
|
295
319
|
export type AddAccountWorkflowStepRequest = {
|
|
296
320
|
/** Workflow identifier. */
|
|
297
321
|
identifier: string;
|
|
@@ -367,14 +391,6 @@ export type NewWorkspaceRequest = {
|
|
|
367
391
|
/** Workspace manage runtime. */
|
|
368
392
|
manageRuntime: boolean;
|
|
369
393
|
};
|
|
370
|
-
export type NewWorkspaceVariableRequest = {
|
|
371
|
-
/** Workspace variable name. */
|
|
372
|
-
name: string;
|
|
373
|
-
/** Workspace variable value. */
|
|
374
|
-
value: string;
|
|
375
|
-
/** Workspace variable description. */
|
|
376
|
-
description: string;
|
|
377
|
-
};
|
|
378
394
|
export type StackInWorkspaceReadResponse = {
|
|
379
395
|
/** Stack version id. */
|
|
380
396
|
stackVersionId: string;
|
|
@@ -612,9 +628,9 @@ export type ApplicationReadResponse = {
|
|
|
612
628
|
/** Application repository base branch. */
|
|
613
629
|
repoBaseBranch: string;
|
|
614
630
|
/** Stack used to generate this application. */
|
|
615
|
-
stackVersionId
|
|
631
|
+
stackVersionId: string;
|
|
616
632
|
/** Starter used to generate this application. */
|
|
617
|
-
starterId
|
|
633
|
+
starterId: string;
|
|
618
634
|
/** Application status. */
|
|
619
635
|
status: string;
|
|
620
636
|
/** Application creator. */
|
|
@@ -636,9 +652,9 @@ export type CreateApplicationRequest = {
|
|
|
636
652
|
/** Application repository base branch. */
|
|
637
653
|
repoBaseBranch: string;
|
|
638
654
|
/** Stack used to generate this application. */
|
|
639
|
-
stackVersionId
|
|
655
|
+
stackVersionId: string;
|
|
640
656
|
/** Starter used to generate this application. */
|
|
641
|
-
starterId
|
|
657
|
+
starterId: string;
|
|
642
658
|
};
|
|
643
659
|
export type RecreateApplicationRequest = {
|
|
644
660
|
/** Application name. */
|
|
@@ -864,6 +880,28 @@ export type AccountWorkflowCreateRequest = {
|
|
|
864
880
|
actionsBefore: WorkflowActionWithContextRequest[];
|
|
865
881
|
actionsAfter: WorkflowActionWithContextRequest[];
|
|
866
882
|
};
|
|
883
|
+
export type PaginatedAccountVariableResponse = {
|
|
884
|
+
/** Current page requested */
|
|
885
|
+
currentPage: number;
|
|
886
|
+
/** Last page available */
|
|
887
|
+
lastPage: number;
|
|
888
|
+
/** Page size requested */
|
|
889
|
+
pageSize: number;
|
|
890
|
+
/** Total items found */
|
|
891
|
+
totalItems: number;
|
|
892
|
+
/** Account variables for current page */
|
|
893
|
+
items: AccountVariableResponse[];
|
|
894
|
+
};
|
|
895
|
+
export type CreateAccountVariableRequest = {
|
|
896
|
+
/** Account variable name */
|
|
897
|
+
name: string;
|
|
898
|
+
/** Account variable value */
|
|
899
|
+
value?: string;
|
|
900
|
+
/** Account variable description */
|
|
901
|
+
description: string;
|
|
902
|
+
/** Account variable mandatory flag */
|
|
903
|
+
mandate: boolean;
|
|
904
|
+
};
|
|
867
905
|
export type AccountStackContextResponse = {
|
|
868
906
|
/** List of stack version ids with pluginVersionId list with account context. */
|
|
869
907
|
stackVersions: StackVersionResponse[];
|
|
@@ -935,6 +973,13 @@ export type EnvironmentUpdateRequest = {
|
|
|
935
973
|
/** Environment description. */
|
|
936
974
|
description?: string;
|
|
937
975
|
};
|
|
976
|
+
export type PaginatedWorkspaceVariableResponse = {
|
|
977
|
+
currentPage: number;
|
|
978
|
+
pageSize: number;
|
|
979
|
+
lastPage: number;
|
|
980
|
+
totalItems: number;
|
|
981
|
+
items: WorkspaceVariableResponse[];
|
|
982
|
+
};
|
|
938
983
|
export type AppliedConnectionInterface = {
|
|
939
984
|
slug: string;
|
|
940
985
|
"type": string;
|
|
@@ -1010,6 +1055,14 @@ export type ConnectionInterfaceInUseByTargetIdDetailsResponse = {
|
|
|
1010
1055
|
environmentId: string;
|
|
1011
1056
|
targets: PluginInUseResponse[];
|
|
1012
1057
|
};
|
|
1058
|
+
export type WorkspaceVariableReadV1Response = {
|
|
1059
|
+
/** Workspace variable name. */
|
|
1060
|
+
name: string;
|
|
1061
|
+
/** Workspace variable value. */
|
|
1062
|
+
value: string;
|
|
1063
|
+
/** Workspace variable description. */
|
|
1064
|
+
description: string;
|
|
1065
|
+
};
|
|
1013
1066
|
export type ConsolidatedAttr = {
|
|
1014
1067
|
key: string;
|
|
1015
1068
|
value: object;
|
|
@@ -1233,6 +1286,14 @@ export type GetApplicationResponse = {
|
|
|
1233
1286
|
export type WorkflowActionUsageResponse = {
|
|
1234
1287
|
versionRanges: string[];
|
|
1235
1288
|
};
|
|
1289
|
+
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
|
+
/** How many contexts are using this account variable */
|
|
1295
|
+
contextsInUse: number;
|
|
1296
|
+
};
|
|
1236
1297
|
export type AccountAttr = {
|
|
1237
1298
|
key: string;
|
|
1238
1299
|
value: object;
|
|
@@ -1260,19 +1321,16 @@ export type StacksByAccountResponse = {
|
|
|
1260
1321
|
stacks: StackWorkflowResponse[];
|
|
1261
1322
|
};
|
|
1262
1323
|
/**
|
|
1263
|
-
*
|
|
1324
|
+
* Get a workspace variable by name
|
|
1264
1325
|
*/
|
|
1265
|
-
export function
|
|
1326
|
+
export function workspaceVariableV2ControllerfindByName({ accountId, workspaceId, name }: {
|
|
1327
|
+
accountId?: string;
|
|
1266
1328
|
workspaceId: string;
|
|
1267
|
-
|
|
1268
|
-
stackId: string;
|
|
1329
|
+
name: string;
|
|
1269
1330
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1270
1331
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1271
1332
|
status: 200;
|
|
1272
|
-
data:
|
|
1273
|
-
} | {
|
|
1274
|
-
status: 400;
|
|
1275
|
-
data: ErrorResponse;
|
|
1333
|
+
data: WorkspaceVariableResponse;
|
|
1276
1334
|
} | {
|
|
1277
1335
|
status: 403;
|
|
1278
1336
|
data: ErrorResponse;
|
|
@@ -1282,73 +1340,55 @@ export function listContextByWorkspaceStack({ workspaceId, workflowId, stackId }
|
|
|
1282
1340
|
} | {
|
|
1283
1341
|
status: 500;
|
|
1284
1342
|
data: ErrorResponse;
|
|
1285
|
-
}>(`/
|
|
1286
|
-
...opts
|
|
1343
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, {
|
|
1344
|
+
...opts,
|
|
1345
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1346
|
+
accountId
|
|
1347
|
+
})
|
|
1287
1348
|
}));
|
|
1288
1349
|
}
|
|
1289
1350
|
/**
|
|
1290
|
-
*
|
|
1351
|
+
* Upsert workspace variable based on existing account variable
|
|
1291
1352
|
*/
|
|
1292
|
-
export function
|
|
1353
|
+
export function workspaceVariableV2Controllerupsert({ workspaceId, name, upsertWorkspaceVariableRequest }: {
|
|
1293
1354
|
workspaceId: string;
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
workspaceWorkflowCreateRequest: WorkspaceWorkflowCreateRequest;
|
|
1355
|
+
name: string;
|
|
1356
|
+
upsertWorkspaceVariableRequest: UpsertWorkspaceVariableRequest;
|
|
1297
1357
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1298
1358
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1299
1359
|
status: 204;
|
|
1300
|
-
} | {
|
|
1301
|
-
status: 400;
|
|
1302
|
-
data: ErrorResponse;
|
|
1303
1360
|
} | {
|
|
1304
1361
|
status: 403;
|
|
1305
1362
|
data: ErrorResponse;
|
|
1306
1363
|
} | {
|
|
1307
1364
|
status: 404;
|
|
1308
1365
|
data: ErrorResponse;
|
|
1366
|
+
} | {
|
|
1367
|
+
status: 422;
|
|
1368
|
+
data: ErrorResponse;
|
|
1309
1369
|
} | {
|
|
1310
1370
|
status: 500;
|
|
1311
1371
|
data: ErrorResponse;
|
|
1312
|
-
}>(`/
|
|
1372
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
1313
1373
|
...opts,
|
|
1314
1374
|
method: "PUT",
|
|
1315
|
-
body:
|
|
1375
|
+
body: upsertWorkspaceVariableRequest
|
|
1316
1376
|
})));
|
|
1317
1377
|
}
|
|
1318
1378
|
/**
|
|
1319
|
-
*
|
|
1379
|
+
* List all configured context of an workflow by workspace and stack.
|
|
1320
1380
|
*/
|
|
1321
|
-
export function
|
|
1381
|
+
export function workflowWorkspaceControllerlistContextByWorkspaceStack({ workspaceId, workflowId, stackId }: {
|
|
1322
1382
|
workspaceId: string;
|
|
1323
|
-
|
|
1383
|
+
workflowId: string;
|
|
1384
|
+
stackId: string;
|
|
1324
1385
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1325
1386
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1326
1387
|
status: 200;
|
|
1327
|
-
data:
|
|
1328
|
-
} | {
|
|
1329
|
-
status: 403;
|
|
1330
|
-
data: ErrorResponse;
|
|
1331
|
-
} | {
|
|
1332
|
-
status: 404;
|
|
1333
|
-
data: ErrorResponse;
|
|
1388
|
+
data: WorkflowContextResponse;
|
|
1334
1389
|
} | {
|
|
1335
|
-
status:
|
|
1390
|
+
status: 400;
|
|
1336
1391
|
data: ErrorResponse;
|
|
1337
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, {
|
|
1338
|
-
...opts
|
|
1339
|
-
}));
|
|
1340
|
-
}
|
|
1341
|
-
/**
|
|
1342
|
-
* Update a workspace's variable
|
|
1343
|
-
*/
|
|
1344
|
-
export function update({ workspaceId, name, updateWorkspaceVariableRequest }: {
|
|
1345
|
-
workspaceId: string;
|
|
1346
|
-
name: string;
|
|
1347
|
-
updateWorkspaceVariableRequest: UpdateWorkspaceVariableRequest;
|
|
1348
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1349
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1350
|
-
status: 200;
|
|
1351
|
-
data: WorkspaceVariableReadResponse;
|
|
1352
1392
|
} | {
|
|
1353
1393
|
status: 403;
|
|
1354
1394
|
data: ErrorResponse;
|
|
@@ -1358,18 +1398,18 @@ export function update({ workspaceId, name, updateWorkspaceVariableRequest }: {
|
|
|
1358
1398
|
} | {
|
|
1359
1399
|
status: 500;
|
|
1360
1400
|
data: ErrorResponse;
|
|
1361
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
1362
|
-
...opts
|
|
1363
|
-
|
|
1364
|
-
body: updateWorkspaceVariableRequest
|
|
1365
|
-
})));
|
|
1401
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks/${encodeURIComponent(stackId)}/context`, {
|
|
1402
|
+
...opts
|
|
1403
|
+
}));
|
|
1366
1404
|
}
|
|
1367
1405
|
/**
|
|
1368
|
-
*
|
|
1406
|
+
* Save workspace workflow context
|
|
1369
1407
|
*/
|
|
1370
|
-
export function
|
|
1408
|
+
export function workflowWorkspaceControllersaveWorkspaceWorkflowContext({ workspaceId, workflowId, stackId, workspaceWorkflowCreateRequest }: {
|
|
1371
1409
|
workspaceId: string;
|
|
1372
|
-
|
|
1410
|
+
workflowId: string;
|
|
1411
|
+
stackId: string;
|
|
1412
|
+
workspaceWorkflowCreateRequest: WorkspaceWorkflowCreateRequest;
|
|
1373
1413
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1374
1414
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1375
1415
|
status: 204;
|
|
@@ -1385,15 +1425,16 @@ export function delete1({ workspaceId, name }: {
|
|
|
1385
1425
|
} | {
|
|
1386
1426
|
status: 500;
|
|
1387
1427
|
data: ErrorResponse;
|
|
1388
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
1428
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks/${encodeURIComponent(stackId)}/context`, oazapfts.json({
|
|
1389
1429
|
...opts,
|
|
1390
|
-
method: "
|
|
1391
|
-
|
|
1430
|
+
method: "PUT",
|
|
1431
|
+
body: workspaceWorkflowCreateRequest
|
|
1432
|
+
})));
|
|
1392
1433
|
}
|
|
1393
1434
|
/**
|
|
1394
1435
|
* Add context to a typed element in a workspace's stack.
|
|
1395
1436
|
*/
|
|
1396
|
-
export function
|
|
1437
|
+
export function contextControlleraddTypedContextInWorkspace({ workspaceId, stackVersionId, externalId, $type, addTypedContextRequest }: {
|
|
1397
1438
|
workspaceId: string;
|
|
1398
1439
|
stackVersionId: string;
|
|
1399
1440
|
externalId: string;
|
|
@@ -1423,7 +1464,7 @@ export function addTypedContextInWorkspace({ workspaceId, stackVersionId, extern
|
|
|
1423
1464
|
/**
|
|
1424
1465
|
* Get Workflow of a stack in a workspace.
|
|
1425
1466
|
*/
|
|
1426
|
-
export function
|
|
1467
|
+
export function workflowControllergetWorkspaceWorkflow({ workspaceId, stackVersionId, identifier }: {
|
|
1427
1468
|
workspaceId: string;
|
|
1428
1469
|
stackVersionId: string;
|
|
1429
1470
|
identifier?: string;
|
|
@@ -1449,7 +1490,7 @@ export function getWorkspaceWorkflow({ workspaceId, stackVersionId, identifier }
|
|
|
1449
1490
|
/**
|
|
1450
1491
|
* Add step to a workflow belonging to a workspace.
|
|
1451
1492
|
*/
|
|
1452
|
-
export function
|
|
1493
|
+
export function workflowControlleraddWorkflowStepInWorkspace({ workspaceId, stackVersionId, addWorkspaceWorkflowStepRequest }: {
|
|
1453
1494
|
workspaceId: string;
|
|
1454
1495
|
stackVersionId: string;
|
|
1455
1496
|
addWorkspaceWorkflowStepRequest: AddWorkspaceWorkflowStepRequest;
|
|
@@ -1479,7 +1520,7 @@ export function addWorkflowStepInWorkspace({ workspaceId, stackVersionId, addWor
|
|
|
1479
1520
|
/**
|
|
1480
1521
|
* Import context in a workspace's stack.
|
|
1481
1522
|
*/
|
|
1482
|
-
export function
|
|
1523
|
+
export function contextControllerimportContextInWorkspace({ workspaceId, stackVersionId, body }: {
|
|
1483
1524
|
workspaceId: string;
|
|
1484
1525
|
stackVersionId: string;
|
|
1485
1526
|
body: ImportContextRequest[];
|
|
@@ -1510,7 +1551,7 @@ export function importContextInWorkspace({ workspaceId, stackVersionId, body }:
|
|
|
1510
1551
|
/**
|
|
1511
1552
|
* Update shared infrastructure status.
|
|
1512
1553
|
*/
|
|
1513
|
-
export function
|
|
1554
|
+
export function sharedInfrastructureControllerupdateStatus({ workspaceId, sharedInfraId, updateSharedInfraStatusRequest }: {
|
|
1514
1555
|
workspaceId: string;
|
|
1515
1556
|
sharedInfraId: string;
|
|
1516
1557
|
updateSharedInfraStatusRequest: UpdateSharedInfraStatusRequest;
|
|
@@ -1539,7 +1580,7 @@ export function updateStatus({ workspaceId, sharedInfraId, updateSharedInfraStat
|
|
|
1539
1580
|
/**
|
|
1540
1581
|
* Get shared infra links visibility
|
|
1541
1582
|
*/
|
|
1542
|
-
export function
|
|
1583
|
+
export function sharedInfraLinkControllergetVisibleLinks({ workspaceId, sharedInfraId }: {
|
|
1543
1584
|
workspaceId: string;
|
|
1544
1585
|
sharedInfraId: string;
|
|
1545
1586
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1562,7 +1603,7 @@ export function getVisibleLinks({ workspaceId, sharedInfraId }: {
|
|
|
1562
1603
|
/**
|
|
1563
1604
|
* Update application links visibility
|
|
1564
1605
|
*/
|
|
1565
|
-
export function
|
|
1606
|
+
export function sharedInfraLinkControllerupdateLinksVisibility({ workspaceId, sharedInfraId, body }: {
|
|
1566
1607
|
workspaceId: string;
|
|
1567
1608
|
sharedInfraId: string;
|
|
1568
1609
|
body: UpdateSharedInfraLinkVisibilityRequest[];
|
|
@@ -1587,7 +1628,7 @@ export function updateLinksVisibility({ workspaceId, sharedInfraId, body }: {
|
|
|
1587
1628
|
/**
|
|
1588
1629
|
* Update activity status by workspace.
|
|
1589
1630
|
*/
|
|
1590
|
-
export function
|
|
1631
|
+
export function managerRunControllerupdateRun({ accountId, workspaceId, runId, updateRunRequest }: {
|
|
1591
1632
|
accountId: string;
|
|
1592
1633
|
workspaceId: string;
|
|
1593
1634
|
runId: string;
|
|
@@ -1621,7 +1662,7 @@ export function updateRun({ accountId, workspaceId, runId, updateRunRequest }: {
|
|
|
1621
1662
|
/**
|
|
1622
1663
|
* Update plugin status by workspace.
|
|
1623
1664
|
*/
|
|
1624
|
-
export function
|
|
1665
|
+
export function managerRunControllerrunTask({ accountId, workspaceId, runId, runTaskRequest }: {
|
|
1625
1666
|
accountId: string;
|
|
1626
1667
|
workspaceId: string;
|
|
1627
1668
|
runId: string;
|
|
@@ -1655,7 +1696,7 @@ export function runTask({ accountId, workspaceId, runId, runTaskRequest }: {
|
|
|
1655
1696
|
/**
|
|
1656
1697
|
* Deployment tag register.
|
|
1657
1698
|
*/
|
|
1658
|
-
export function
|
|
1699
|
+
export function managerRunControllerdeploymentTag({ accountId, workspaceId, runId, deploymentTagRequest }: {
|
|
1659
1700
|
accountId: string;
|
|
1660
1701
|
workspaceId: string;
|
|
1661
1702
|
runId: string;
|
|
@@ -1689,7 +1730,7 @@ export function deploymentTag({ accountId, workspaceId, runId, deploymentTagRequ
|
|
|
1689
1730
|
/**
|
|
1690
1731
|
* Request to upsert connection interfaces attributes.
|
|
1691
1732
|
*/
|
|
1692
|
-
export function
|
|
1733
|
+
export function connectionInterfaceControllerupdateConnectionInterfaceAttributes({ workspaceId, connectionInterfaceId, updateConnectionInterfaceAttributesRequest }: {
|
|
1693
1734
|
workspaceId: string;
|
|
1694
1735
|
connectionInterfaceId: string;
|
|
1695
1736
|
updateConnectionInterfaceAttributesRequest: UpdateConnectionInterfaceAttributesRequest;
|
|
@@ -1717,7 +1758,7 @@ export function updateConnectionInterfaceAttributes({ workspaceId, connectionInt
|
|
|
1717
1758
|
/**
|
|
1718
1759
|
* Request to upsert connection interfaces.
|
|
1719
1760
|
*/
|
|
1720
|
-
export function
|
|
1761
|
+
export function connectionInterfaceControllerupsertBatch({ workspaceId, body }: {
|
|
1721
1762
|
workspaceId: string;
|
|
1722
1763
|
body: UpsertConnectionInterfaceRequest[];
|
|
1723
1764
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1744,7 +1785,7 @@ export function upsertBatch({ workspaceId, body }: {
|
|
|
1744
1785
|
/**
|
|
1745
1786
|
* Update application status.
|
|
1746
1787
|
*/
|
|
1747
|
-
export function
|
|
1788
|
+
export function applicationControllerupdateStatus({ workspaceId, applicationId, accountId, updateApplicationStatusRequest }: {
|
|
1748
1789
|
workspaceId: string;
|
|
1749
1790
|
applicationId: string;
|
|
1750
1791
|
accountId?: string;
|
|
@@ -1777,7 +1818,7 @@ export function updateStatus1({ workspaceId, applicationId, accountId, updateApp
|
|
|
1777
1818
|
/**
|
|
1778
1819
|
* Get application links visibility
|
|
1779
1820
|
*/
|
|
1780
|
-
export function
|
|
1821
|
+
export function applicationLinkControllergetVisibleLinks({ workspaceId, applicationId }: {
|
|
1781
1822
|
workspaceId: string;
|
|
1782
1823
|
applicationId: string;
|
|
1783
1824
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1800,7 +1841,7 @@ export function getVisibleLinks1({ workspaceId, applicationId }: {
|
|
|
1800
1841
|
/**
|
|
1801
1842
|
* Update application links visibility
|
|
1802
1843
|
*/
|
|
1803
|
-
export function
|
|
1844
|
+
export function applicationLinkControllerupdateLinksVisibility({ workspaceId, applicationId, body }: {
|
|
1804
1845
|
workspaceId: string;
|
|
1805
1846
|
applicationId: string;
|
|
1806
1847
|
body: UpdateApplicationLinkVisibilityRequest[];
|
|
@@ -1825,7 +1866,7 @@ export function updateLinksVisibility1({ workspaceId, applicationId, body }: {
|
|
|
1825
1866
|
/**
|
|
1826
1867
|
* Get workflow settings with associated stacks.
|
|
1827
1868
|
*/
|
|
1828
|
-
export function
|
|
1869
|
+
export function workflowAccountControllerlistSettingsByAccountWorkflow({ workflowId }: {
|
|
1829
1870
|
workflowId: string;
|
|
1830
1871
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1831
1872
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1850,7 +1891,7 @@ export function listSettingsByAccountWorkflow({ workflowId }: {
|
|
|
1850
1891
|
/**
|
|
1851
1892
|
* Update settings information of a workflow account.
|
|
1852
1893
|
*/
|
|
1853
|
-
export function
|
|
1894
|
+
export function workflowAccountControllerupdateSettingsByAccountWorkflow({ workflowId, settingsWorkflowSaveRequest }: {
|
|
1854
1895
|
workflowId: string;
|
|
1855
1896
|
settingsWorkflowSaveRequest: SettingsWorkflowSaveRequest;
|
|
1856
1897
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1877,7 +1918,7 @@ export function updateSettingsByAccountWorkflow({ workflowId, settingsWorkflowSa
|
|
|
1877
1918
|
/**
|
|
1878
1919
|
* List all configured context of an workflow account.
|
|
1879
1920
|
*/
|
|
1880
|
-
export function
|
|
1921
|
+
export function workflowAccountControllerlistContextByAccountWorkflow({ workflowId }: {
|
|
1881
1922
|
workflowId: string;
|
|
1882
1923
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1883
1924
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1902,7 +1943,7 @@ export function listContextByAccountWorkflow({ workflowId }: {
|
|
|
1902
1943
|
/**
|
|
1903
1944
|
* Update all context configurations of a workflow account.
|
|
1904
1945
|
*/
|
|
1905
|
-
export function
|
|
1946
|
+
export function workflowAccountControllerupdateContextsByAccountWorkflow({ workflowId, contextsWorkflowSaveRequest }: {
|
|
1906
1947
|
workflowId: string;
|
|
1907
1948
|
contextsWorkflowSaveRequest: ContextsWorkflowSaveRequest;
|
|
1908
1949
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1929,7 +1970,7 @@ export function updateContextsByAccountWorkflow({ workflowId, contextsWorkflowSa
|
|
|
1929
1970
|
/**
|
|
1930
1971
|
* List all actions of an workflow account.
|
|
1931
1972
|
*/
|
|
1932
|
-
export function
|
|
1973
|
+
export function workflowAccountControllerlistActionsByAccountWorkflow({ workflowId }: {
|
|
1933
1974
|
workflowId: string;
|
|
1934
1975
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1935
1976
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1954,7 +1995,7 @@ export function listActionsByAccountWorkflow({ workflowId }: {
|
|
|
1954
1995
|
/**
|
|
1955
1996
|
* Update all actions associations with a workflow account.
|
|
1956
1997
|
*/
|
|
1957
|
-
export function
|
|
1998
|
+
export function workflowAccountControllerupdateActionsByAccountWorkflow({ workflowId, actionsWorkflowSaveRequest }: {
|
|
1958
1999
|
workflowId: string;
|
|
1959
2000
|
actionsWorkflowSaveRequest: ActionsWorkflowSaveRequest;
|
|
1960
2001
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1978,10 +2019,85 @@ export function updateActionsByAccountWorkflow({ workflowId, actionsWorkflowSave
|
|
|
1978
2019
|
body: actionsWorkflowSaveRequest
|
|
1979
2020
|
})));
|
|
1980
2021
|
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Get an account variable by name
|
|
2024
|
+
*/
|
|
2025
|
+
export function accountVariableControllerfindByName({ accountId, name }: {
|
|
2026
|
+
accountId?: string;
|
|
2027
|
+
name: string;
|
|
2028
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2029
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2030
|
+
status: 200;
|
|
2031
|
+
data: AccountVariableResponse;
|
|
2032
|
+
} | {
|
|
2033
|
+
status: 403;
|
|
2034
|
+
data: ErrorResponse;
|
|
2035
|
+
} | {
|
|
2036
|
+
status: 404;
|
|
2037
|
+
data: ErrorResponse;
|
|
2038
|
+
} | {
|
|
2039
|
+
status: 500;
|
|
2040
|
+
data: ErrorResponse;
|
|
2041
|
+
}>(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
2042
|
+
...opts,
|
|
2043
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2044
|
+
accountId
|
|
2045
|
+
})
|
|
2046
|
+
}));
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Update account variable
|
|
2050
|
+
*/
|
|
2051
|
+
export function accountVariableControllerupdate({ name, updateAccountVariableRequest }: {
|
|
2052
|
+
name: string;
|
|
2053
|
+
updateAccountVariableRequest: UpdateAccountVariableRequest;
|
|
2054
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2055
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2056
|
+
status: 204;
|
|
2057
|
+
} | {
|
|
2058
|
+
status: 403;
|
|
2059
|
+
data: ErrorResponse;
|
|
2060
|
+
} | {
|
|
2061
|
+
status: 404;
|
|
2062
|
+
data: ErrorResponse;
|
|
2063
|
+
} | {
|
|
2064
|
+
status: 422;
|
|
2065
|
+
data: ErrorResponse;
|
|
2066
|
+
} | {
|
|
2067
|
+
status: 500;
|
|
2068
|
+
data: ErrorResponse;
|
|
2069
|
+
}>(`/v1/account/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
2070
|
+
...opts,
|
|
2071
|
+
method: "PUT",
|
|
2072
|
+
body: updateAccountVariableRequest
|
|
2073
|
+
})));
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Delete account variable
|
|
2077
|
+
*/
|
|
2078
|
+
export function accountVariableControllerdelete({ name }: {
|
|
2079
|
+
name: string;
|
|
2080
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2081
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2082
|
+
status: 204;
|
|
2083
|
+
} | {
|
|
2084
|
+
status: 403;
|
|
2085
|
+
data: ErrorResponse;
|
|
2086
|
+
} | {
|
|
2087
|
+
status: 404;
|
|
2088
|
+
data: ErrorResponse;
|
|
2089
|
+
} | {
|
|
2090
|
+
status: 500;
|
|
2091
|
+
data: ErrorResponse;
|
|
2092
|
+
}>(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
2093
|
+
...opts,
|
|
2094
|
+
method: "DELETE"
|
|
2095
|
+
}));
|
|
2096
|
+
}
|
|
1981
2097
|
/**
|
|
1982
2098
|
* Add context to a typed element in an account's stack.
|
|
1983
2099
|
*/
|
|
1984
|
-
export function
|
|
2100
|
+
export function contextControlleraddTypedContextInAccount({ stackVersionId, externalId, $type, addTypedContextRequest }: {
|
|
1985
2101
|
stackVersionId: string;
|
|
1986
2102
|
externalId: string;
|
|
1987
2103
|
$type: "plugin" | "action";
|
|
@@ -2010,7 +2126,7 @@ export function addTypedContextInAccount({ stackVersionId, externalId, $type, ad
|
|
|
2010
2126
|
/**
|
|
2011
2127
|
* Get Workflow of a stack in an account.
|
|
2012
2128
|
*/
|
|
2013
|
-
export function
|
|
2129
|
+
export function workflowControllergetAccountWorkflow({ stackVersionId, identifier }: {
|
|
2014
2130
|
stackVersionId: string;
|
|
2015
2131
|
identifier?: string;
|
|
2016
2132
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2035,7 +2151,7 @@ export function getAccountWorkflow({ stackVersionId, identifier }: {
|
|
|
2035
2151
|
/**
|
|
2036
2152
|
* Add step to a workflow belonging to an account.
|
|
2037
2153
|
*/
|
|
2038
|
-
export function
|
|
2154
|
+
export function workflowControlleraddWorkflowStepInAccount({ stackVersionId, addAccountWorkflowStepRequest }: {
|
|
2039
2155
|
stackVersionId: string;
|
|
2040
2156
|
addAccountWorkflowStepRequest: AddAccountWorkflowStepRequest;
|
|
2041
2157
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2064,7 +2180,7 @@ export function addWorkflowStepInAccount({ stackVersionId, addAccountWorkflowSte
|
|
|
2064
2180
|
/**
|
|
2065
2181
|
* Import context in an account's stack.
|
|
2066
2182
|
*/
|
|
2067
|
-
export function
|
|
2183
|
+
export function contextControllerimportContextInAccount({ stackVersionId, body }: {
|
|
2068
2184
|
stackVersionId: string;
|
|
2069
2185
|
body: ImportContextRequest[];
|
|
2070
2186
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2094,7 +2210,7 @@ export function importContextInAccount({ stackVersionId, body }: {
|
|
|
2094
2210
|
/**
|
|
2095
2211
|
* Save stack workflow context
|
|
2096
2212
|
*/
|
|
2097
|
-
export function
|
|
2213
|
+
export function workflowStackControllersaveStackWorkflowContext({ stackId, workflowId, stackWorkflowCreateRequest }: {
|
|
2098
2214
|
stackId: string;
|
|
2099
2215
|
workflowId: string;
|
|
2100
2216
|
stackWorkflowCreateRequest: StackWorkflowCreateRequest;
|
|
@@ -2122,7 +2238,7 @@ export function saveStackWorkflowContext({ stackId, workflowId, stackWorkflowCre
|
|
|
2122
2238
|
/**
|
|
2123
2239
|
* List specific shared infra or application usage by plugin list.
|
|
2124
2240
|
*/
|
|
2125
|
-
export function
|
|
2241
|
+
export function usageInsightsControllerlistPluginUsageByTargetId({ accountId, targetType, targetId, body }: {
|
|
2126
2242
|
accountId: string;
|
|
2127
2243
|
targetType: "applications" | "shared_infra";
|
|
2128
2244
|
targetId: string;
|
|
@@ -2146,7 +2262,7 @@ export function listPluginUsageByTargetId({ accountId, targetType, targetId, bod
|
|
|
2146
2262
|
/**
|
|
2147
2263
|
* List all shared infras or applications usage by plugin list.
|
|
2148
2264
|
*/
|
|
2149
|
-
export function
|
|
2265
|
+
export function usageInsightsControllerlistAllPluginUsage({ accountId, targetType, body }: {
|
|
2150
2266
|
accountId: string;
|
|
2151
2267
|
targetType: "applications" | "shared_infra";
|
|
2152
2268
|
body: string[];
|
|
@@ -2169,7 +2285,7 @@ export function listAllPluginUsage({ accountId, targetType, body }: {
|
|
|
2169
2285
|
/**
|
|
2170
2286
|
* Get all workspaces
|
|
2171
2287
|
*/
|
|
2172
|
-
export function
|
|
2288
|
+
export function workspaceControllergetWorkspaces({ name, aclOnly, accountId }: {
|
|
2173
2289
|
name?: string;
|
|
2174
2290
|
aclOnly?: boolean;
|
|
2175
2291
|
accountId?: string;
|
|
@@ -2196,7 +2312,7 @@ export function getWorkspaces({ name, aclOnly, accountId }: {
|
|
|
2196
2312
|
/**
|
|
2197
2313
|
* Create workspace
|
|
2198
2314
|
*/
|
|
2199
|
-
export function
|
|
2315
|
+
export function workspaceControllersave({ newWorkspaceRequest }: {
|
|
2200
2316
|
newWorkspaceRequest: NewWorkspaceRequest;
|
|
2201
2317
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2202
2318
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2217,63 +2333,10 @@ export function save({ newWorkspaceRequest }: {
|
|
|
2217
2333
|
body: newWorkspaceRequest
|
|
2218
2334
|
})));
|
|
2219
2335
|
}
|
|
2220
|
-
/**
|
|
2221
|
-
* Get all workspace's variables
|
|
2222
|
-
*/
|
|
2223
|
-
export function findAll({ workspaceId, filter }: {
|
|
2224
|
-
workspaceId: string;
|
|
2225
|
-
filter?: string;
|
|
2226
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2227
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2228
|
-
status: 200;
|
|
2229
|
-
data: WorkspaceVariableReadResponse[];
|
|
2230
|
-
} | {
|
|
2231
|
-
status: 403;
|
|
2232
|
-
data: ErrorResponse;
|
|
2233
|
-
} | {
|
|
2234
|
-
status: 404;
|
|
2235
|
-
data: ErrorResponse;
|
|
2236
|
-
} | {
|
|
2237
|
-
status: 500;
|
|
2238
|
-
data: ErrorResponse;
|
|
2239
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
2240
|
-
filter
|
|
2241
|
-
}))}`, {
|
|
2242
|
-
...opts
|
|
2243
|
-
}));
|
|
2244
|
-
}
|
|
2245
|
-
/**
|
|
2246
|
-
* Create a workspace's variable
|
|
2247
|
-
*/
|
|
2248
|
-
export function save1({ workspaceId, newWorkspaceVariableRequest }: {
|
|
2249
|
-
workspaceId: string;
|
|
2250
|
-
newWorkspaceVariableRequest: NewWorkspaceVariableRequest;
|
|
2251
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2252
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2253
|
-
status: 201;
|
|
2254
|
-
data: WorkspaceVariableReadResponse;
|
|
2255
|
-
} | {
|
|
2256
|
-
status: 403;
|
|
2257
|
-
data: ErrorResponse;
|
|
2258
|
-
} | {
|
|
2259
|
-
status: 404;
|
|
2260
|
-
data: ErrorResponse;
|
|
2261
|
-
} | {
|
|
2262
|
-
status: 422;
|
|
2263
|
-
data: ErrorResponse;
|
|
2264
|
-
} | {
|
|
2265
|
-
status: 500;
|
|
2266
|
-
data: ErrorResponse;
|
|
2267
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables`, oazapfts.json({
|
|
2268
|
-
...opts,
|
|
2269
|
-
method: "POST",
|
|
2270
|
-
body: newWorkspaceVariableRequest
|
|
2271
|
-
})));
|
|
2272
|
-
}
|
|
2273
2336
|
/**
|
|
2274
2337
|
* Get all stacks in a workspace.
|
|
2275
2338
|
*/
|
|
2276
|
-
export function
|
|
2339
|
+
export function workspaceStackControllergetStacks({ workspaceId }: {
|
|
2277
2340
|
workspaceId: string;
|
|
2278
2341
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2279
2342
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2298,7 +2361,7 @@ export function getStacks({ workspaceId }: {
|
|
|
2298
2361
|
/**
|
|
2299
2362
|
* Add a stack in a workspace.
|
|
2300
2363
|
*/
|
|
2301
|
-
export function
|
|
2364
|
+
export function workspaceStackControlleraddStack({ workspaceId, addStackInWorkspaceRequest }: {
|
|
2302
2365
|
workspaceId: string;
|
|
2303
2366
|
addStackInWorkspaceRequest: AddStackInWorkspaceRequest;
|
|
2304
2367
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2328,7 +2391,7 @@ export function addStack({ workspaceId, addStackInWorkspaceRequest }: {
|
|
|
2328
2391
|
/**
|
|
2329
2392
|
* Get all stacks with context in a workspace.
|
|
2330
2393
|
*/
|
|
2331
|
-
export function
|
|
2394
|
+
export function workspaceStackControllergetStacksWithContext({ workspaceId, body }: {
|
|
2332
2395
|
workspaceId: string;
|
|
2333
2396
|
body: string[];
|
|
2334
2397
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2356,7 +2419,7 @@ export function getStacksWithContext({ workspaceId, body }: {
|
|
|
2356
2419
|
/**
|
|
2357
2420
|
* Get all shared infrastructure of a workspace.
|
|
2358
2421
|
*/
|
|
2359
|
-
export function
|
|
2422
|
+
export function sharedInfrastructureControllergetAllSharedInfrastructure({ workspaceId, name, stackVersionId }: {
|
|
2360
2423
|
workspaceId: string;
|
|
2361
2424
|
name?: string;
|
|
2362
2425
|
stackVersionId?: string;
|
|
@@ -2386,7 +2449,7 @@ export function getAllSharedInfrastructure({ workspaceId, name, stackVersionId }
|
|
|
2386
2449
|
/**
|
|
2387
2450
|
* Create shared infrastructure in a workspace.
|
|
2388
2451
|
*/
|
|
2389
|
-
export function
|
|
2452
|
+
export function sharedInfrastructureControllersave({ workspaceId, fromPortal, createSharedInfraRequest }: {
|
|
2390
2453
|
workspaceId: string;
|
|
2391
2454
|
fromPortal?: boolean;
|
|
2392
2455
|
createSharedInfraRequest: CreateSharedInfraRequest;
|
|
@@ -2417,7 +2480,7 @@ export function save2({ workspaceId, fromPortal, createSharedInfraRequest }: {
|
|
|
2417
2480
|
/**
|
|
2418
2481
|
* Get shared infrastructure of a workspace.
|
|
2419
2482
|
*/
|
|
2420
|
-
export function
|
|
2483
|
+
export function sharedInfrastructureControllergetSharedInfrastructure({ workspaceId, sharedInfraId }: {
|
|
2421
2484
|
workspaceId: string;
|
|
2422
2485
|
sharedInfraId: string;
|
|
2423
2486
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2443,7 +2506,7 @@ export function getSharedInfrastructure({ workspaceId, sharedInfraId }: {
|
|
|
2443
2506
|
/**
|
|
2444
2507
|
* Recreate a shared infrastructure in a workspace.
|
|
2445
2508
|
*/
|
|
2446
|
-
export function
|
|
2509
|
+
export function sharedInfrastructureControllerrecreate({ workspaceId, sharedInfraId, recreateSharedInfraRequest }: {
|
|
2447
2510
|
workspaceId: string;
|
|
2448
2511
|
sharedInfraId: string;
|
|
2449
2512
|
recreateSharedInfraRequest: RecreateSharedInfraRequest;
|
|
@@ -2475,7 +2538,7 @@ export function recreate({ workspaceId, sharedInfraId, recreateSharedInfraReques
|
|
|
2475
2538
|
/**
|
|
2476
2539
|
* Delete infrastructure in a workspace.
|
|
2477
2540
|
*/
|
|
2478
|
-
export function
|
|
2541
|
+
export function sharedInfrastructureControllerdeleteSharedInfra({ workspaceId, sharedInfraId }: {
|
|
2479
2542
|
workspaceId: string;
|
|
2480
2543
|
sharedInfraId: string;
|
|
2481
2544
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2501,7 +2564,7 @@ export function deleteSharedInfra({ workspaceId, sharedInfraId }: {
|
|
|
2501
2564
|
/**
|
|
2502
2565
|
* Update shared infrastructure in a workspace.
|
|
2503
2566
|
*/
|
|
2504
|
-
export function
|
|
2567
|
+
export function sharedInfrastructureControllerupdate({ workspaceId, sharedInfraId, updateSharedInfraRequest }: {
|
|
2505
2568
|
workspaceId: string;
|
|
2506
2569
|
sharedInfraId: string;
|
|
2507
2570
|
updateSharedInfraRequest: UpdateSharedInfraRequest;
|
|
@@ -2530,7 +2593,7 @@ export function update2({ workspaceId, sharedInfraId, updateSharedInfraRequest }
|
|
|
2530
2593
|
/**
|
|
2531
2594
|
* Get all shared infra links
|
|
2532
2595
|
*/
|
|
2533
|
-
export function
|
|
2596
|
+
export function sharedInfraLinkControllergetSharedInfraLinks({ workspaceId, sharedInfraId, name }: {
|
|
2534
2597
|
workspaceId: string;
|
|
2535
2598
|
sharedInfraId: string;
|
|
2536
2599
|
name?: string;
|
|
@@ -2556,7 +2619,7 @@ export function getSharedInfraLinks({ workspaceId, sharedInfraId, name }: {
|
|
|
2556
2619
|
/**
|
|
2557
2620
|
* Create shared infra link
|
|
2558
2621
|
*/
|
|
2559
|
-
export function
|
|
2622
|
+
export function sharedInfraLinkControllersave({ workspaceId, sharedInfraId, createSharedInfraLinkRequest }: {
|
|
2560
2623
|
workspaceId: string;
|
|
2561
2624
|
sharedInfraId: string;
|
|
2562
2625
|
createSharedInfraLinkRequest: CreateSharedInfraLinkRequest;
|
|
@@ -2585,7 +2648,7 @@ export function save3({ workspaceId, sharedInfraId, createSharedInfraLinkRequest
|
|
|
2585
2648
|
/**
|
|
2586
2649
|
* Has active deploy with type self hosted?
|
|
2587
2650
|
*/
|
|
2588
|
-
export function
|
|
2651
|
+
export function sharedInfrastructureControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, sharedInfraId }: {
|
|
2589
2652
|
workspaceId: string;
|
|
2590
2653
|
sharedInfraId: string;
|
|
2591
2654
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2614,7 +2677,7 @@ export function hasActiveDeployWithTypeSelfHosted({ workspaceId, sharedInfraId }
|
|
|
2614
2677
|
/**
|
|
2615
2678
|
* Can the shared infra be destroyed?
|
|
2616
2679
|
*/
|
|
2617
|
-
export function
|
|
2680
|
+
export function sharedInfrastructureControllercanBeDestroyed({ workspaceId, sharedInfraId, environmentId, accountId }: {
|
|
2618
2681
|
workspaceId: string;
|
|
2619
2682
|
sharedInfraId: string;
|
|
2620
2683
|
environmentId: string;
|
|
@@ -2648,7 +2711,7 @@ export function canBeDestroyed({ workspaceId, sharedInfraId, environmentId, acco
|
|
|
2648
2711
|
/**
|
|
2649
2712
|
* Register the snapshot of a shared infrastructure's deploy.
|
|
2650
2713
|
*/
|
|
2651
|
-
export function
|
|
2714
|
+
export function sharedInfrastructureControllerprocessDeploySnapshot({ workspaceId, sharedInfraId, sharedInfraDeploySnapshotRequest }: {
|
|
2652
2715
|
workspaceId: string;
|
|
2653
2716
|
sharedInfraId: string;
|
|
2654
2717
|
sharedInfraDeploySnapshotRequest: SharedInfraDeploySnapshotRequest;
|
|
@@ -2676,7 +2739,7 @@ export function processDeploySnapshot({ workspaceId, sharedInfraId, sharedInfraD
|
|
|
2676
2739
|
/**
|
|
2677
2740
|
* Runs an orchestration in a workspace.
|
|
2678
2741
|
*/
|
|
2679
|
-
export function
|
|
2742
|
+
export function managerRunControllerstartRun({ accountId, workspaceId, startRunRequest }: {
|
|
2680
2743
|
accountId: string;
|
|
2681
2744
|
workspaceId: string;
|
|
2682
2745
|
startRunRequest: StartRunRequest;
|
|
@@ -2709,7 +2772,7 @@ export function startRun({ accountId, workspaceId, startRunRequest }: {
|
|
|
2709
2772
|
/**
|
|
2710
2773
|
* Get all workspace links
|
|
2711
2774
|
*/
|
|
2712
|
-
export function
|
|
2775
|
+
export function workspaceLinkControllergetWorkspaceLinks({ workspaceId, name }: {
|
|
2713
2776
|
workspaceId: string;
|
|
2714
2777
|
name?: string;
|
|
2715
2778
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2734,7 +2797,7 @@ export function getWorkspaceLinks({ workspaceId, name }: {
|
|
|
2734
2797
|
/**
|
|
2735
2798
|
* Create workspace
|
|
2736
2799
|
*/
|
|
2737
|
-
export function
|
|
2800
|
+
export function workspaceLinkControllersave({ workspaceId, createWorkspaceLinkRequest }: {
|
|
2738
2801
|
workspaceId: string;
|
|
2739
2802
|
createWorkspaceLinkRequest: CreateWorkspaceLinkRequest;
|
|
2740
2803
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2762,7 +2825,7 @@ export function save4({ workspaceId, createWorkspaceLinkRequest }: {
|
|
|
2762
2825
|
/**
|
|
2763
2826
|
* Get all workspace embedded links
|
|
2764
2827
|
*/
|
|
2765
|
-
export function
|
|
2828
|
+
export function workspaceEmbeddedLinkControllergetEmbeddedLinks({ workspaceId, name }: {
|
|
2766
2829
|
workspaceId: string;
|
|
2767
2830
|
name?: string;
|
|
2768
2831
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2787,7 +2850,7 @@ export function getEmbeddedLinks({ workspaceId, name }: {
|
|
|
2787
2850
|
/**
|
|
2788
2851
|
* Create workspace embedded link
|
|
2789
2852
|
*/
|
|
2790
|
-
export function
|
|
2853
|
+
export function workspaceEmbeddedLinkControllersave({ workspaceId, createWorkspaceEmbeddedLinkRequest }: {
|
|
2791
2854
|
workspaceId: string;
|
|
2792
2855
|
createWorkspaceEmbeddedLinkRequest: CreateWorkspaceEmbeddedLinkRequest;
|
|
2793
2856
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2815,7 +2878,7 @@ export function save5({ workspaceId, createWorkspaceEmbeddedLinkRequest }: {
|
|
|
2815
2878
|
/**
|
|
2816
2879
|
* List all connection interfaces of a workspace.
|
|
2817
2880
|
*/
|
|
2818
|
-
export function
|
|
2881
|
+
export function connectionInterfaceControllergetConnectionInterfaces({ workspaceId, typeId }: {
|
|
2819
2882
|
workspaceId: string;
|
|
2820
2883
|
typeId?: string;
|
|
2821
2884
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2843,7 +2906,7 @@ export function getConnectionInterfaces({ workspaceId, typeId }: {
|
|
|
2843
2906
|
/**
|
|
2844
2907
|
* Create a connection interface in a workspace.
|
|
2845
2908
|
*/
|
|
2846
|
-
export function
|
|
2909
|
+
export function connectionInterfaceControlleradd({ workspaceId, createConnectionInterfaceRequest }: {
|
|
2847
2910
|
workspaceId: string;
|
|
2848
2911
|
createConnectionInterfaceRequest: CreateConnectionInterfaceRequest;
|
|
2849
2912
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2871,7 +2934,7 @@ export function add({ workspaceId, createConnectionInterfaceRequest }: {
|
|
|
2871
2934
|
/**
|
|
2872
2935
|
* Update the visibility of a connection interface.
|
|
2873
2936
|
*/
|
|
2874
|
-
export function
|
|
2937
|
+
export function connectionInterfaceControllerupdateConnectionInterfaceVisibility({ workspaceId, connectionInterfaceId, updateConnectionInterfaceVisibilityRequest }: {
|
|
2875
2938
|
workspaceId: string;
|
|
2876
2939
|
connectionInterfaceId: string;
|
|
2877
2940
|
updateConnectionInterfaceVisibilityRequest: UpdateConnectionInterfaceVisibilityRequest;
|
|
@@ -2899,7 +2962,7 @@ export function updateConnectionInterfaceVisibility({ workspaceId, connectionInt
|
|
|
2899
2962
|
/**
|
|
2900
2963
|
* Get all application of a workspace.
|
|
2901
2964
|
*/
|
|
2902
|
-
export function
|
|
2965
|
+
export function applicationControllergetApplications({ workspaceId, name, stackVersionId }: {
|
|
2903
2966
|
workspaceId: string;
|
|
2904
2967
|
name?: string;
|
|
2905
2968
|
stackVersionId?: string;
|
|
@@ -2929,7 +2992,7 @@ export function getApplications({ workspaceId, name, stackVersionId }: {
|
|
|
2929
2992
|
/**
|
|
2930
2993
|
* Create application on workspace.
|
|
2931
2994
|
*/
|
|
2932
|
-
export function
|
|
2995
|
+
export function applicationControllersave({ workspaceId, fromPortal, createApplicationRequest }: {
|
|
2933
2996
|
workspaceId: string;
|
|
2934
2997
|
fromPortal?: boolean;
|
|
2935
2998
|
createApplicationRequest: CreateApplicationRequest;
|
|
@@ -2960,7 +3023,7 @@ export function save6({ workspaceId, fromPortal, createApplicationRequest }: {
|
|
|
2960
3023
|
/**
|
|
2961
3024
|
* Get application of a workspace.
|
|
2962
3025
|
*/
|
|
2963
|
-
export function
|
|
3026
|
+
export function applicationControllergetApplication({ workspaceId, applicationId }: {
|
|
2964
3027
|
workspaceId: string;
|
|
2965
3028
|
applicationId: string;
|
|
2966
3029
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2986,7 +3049,7 @@ export function getApplication({ workspaceId, applicationId }: {
|
|
|
2986
3049
|
/**
|
|
2987
3050
|
* Recreate an application in a workspace.
|
|
2988
3051
|
*/
|
|
2989
|
-
export function
|
|
3052
|
+
export function applicationControllerrecreate({ workspaceId, applicationId, recreateApplicationRequest }: {
|
|
2990
3053
|
workspaceId: string;
|
|
2991
3054
|
applicationId: string;
|
|
2992
3055
|
recreateApplicationRequest: RecreateApplicationRequest;
|
|
@@ -3018,7 +3081,7 @@ export function recreate1({ workspaceId, applicationId, recreateApplicationReque
|
|
|
3018
3081
|
/**
|
|
3019
3082
|
* Delete application of a workspace.
|
|
3020
3083
|
*/
|
|
3021
|
-
export function
|
|
3084
|
+
export function applicationControllerdeleteApplication({ workspaceId, applicationId, accountId }: {
|
|
3022
3085
|
workspaceId: string;
|
|
3023
3086
|
applicationId: string;
|
|
3024
3087
|
accountId?: string;
|
|
@@ -3048,7 +3111,7 @@ export function deleteApplication({ workspaceId, applicationId, accountId }: {
|
|
|
3048
3111
|
/**
|
|
3049
3112
|
* Update an application of a workspace.
|
|
3050
3113
|
*/
|
|
3051
|
-
export function
|
|
3114
|
+
export function applicationControllerupdate({ workspaceId, applicationId, updateApplicationRequest }: {
|
|
3052
3115
|
workspaceId: string;
|
|
3053
3116
|
applicationId: string;
|
|
3054
3117
|
updateApplicationRequest: UpdateApplicationRequest;
|
|
@@ -3077,7 +3140,7 @@ export function update6({ workspaceId, applicationId, updateApplicationRequest }
|
|
|
3077
3140
|
/**
|
|
3078
3141
|
* Get all application links
|
|
3079
3142
|
*/
|
|
3080
|
-
export function
|
|
3143
|
+
export function applicationLinkControllergetApplicationLinks({ workspaceId, applicationId, name }: {
|
|
3081
3144
|
workspaceId: string;
|
|
3082
3145
|
applicationId: string;
|
|
3083
3146
|
name?: string;
|
|
@@ -3103,7 +3166,7 @@ export function getApplicationLinks({ workspaceId, applicationId, name }: {
|
|
|
3103
3166
|
/**
|
|
3104
3167
|
* Create application link
|
|
3105
3168
|
*/
|
|
3106
|
-
export function
|
|
3169
|
+
export function applicationLinkControllersave({ workspaceId, applicationId, createApplicationLinkRequest }: {
|
|
3107
3170
|
workspaceId: string;
|
|
3108
3171
|
applicationId: string;
|
|
3109
3172
|
createApplicationLinkRequest: CreateApplicationLinkRequest;
|
|
@@ -3132,7 +3195,7 @@ export function save7({ workspaceId, applicationId, createApplicationLinkRequest
|
|
|
3132
3195
|
/**
|
|
3133
3196
|
* Has active deploy with type self hosted?
|
|
3134
3197
|
*/
|
|
3135
|
-
export function
|
|
3198
|
+
export function applicationControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, applicationId }: {
|
|
3136
3199
|
workspaceId: string;
|
|
3137
3200
|
applicationId: string;
|
|
3138
3201
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3161,7 +3224,7 @@ export function hasActiveDeployWithTypeSelfHosted1({ workspaceId, applicationId
|
|
|
3161
3224
|
/**
|
|
3162
3225
|
* Can the application be destroyed?
|
|
3163
3226
|
*/
|
|
3164
|
-
export function
|
|
3227
|
+
export function applicationControllercanBeDestroyed({ workspaceId, applicationId, environmentId, accountId }: {
|
|
3165
3228
|
workspaceId: string;
|
|
3166
3229
|
applicationId: string;
|
|
3167
3230
|
environmentId: string;
|
|
@@ -3192,7 +3255,7 @@ export function canBeDestroyed1({ workspaceId, applicationId, environmentId, acc
|
|
|
3192
3255
|
})
|
|
3193
3256
|
}));
|
|
3194
3257
|
}
|
|
3195
|
-
export function
|
|
3258
|
+
export function applicationControllerregistryAppDestroy({ workspaceId, applicationId, environmentId, applicationDestroyRequest }: {
|
|
3196
3259
|
workspaceId: string;
|
|
3197
3260
|
applicationId: string;
|
|
3198
3261
|
environmentId: string;
|
|
@@ -3204,7 +3267,7 @@ export function registryAppDestroy({ workspaceId, applicationId, environmentId,
|
|
|
3204
3267
|
body: applicationDestroyRequest
|
|
3205
3268
|
})));
|
|
3206
3269
|
}
|
|
3207
|
-
export function
|
|
3270
|
+
export function applicationControllerregistryAppDeploy({ workspaceId, applicationId, environmentId, applicationDeployRequest }: {
|
|
3208
3271
|
workspaceId: string;
|
|
3209
3272
|
applicationId: string;
|
|
3210
3273
|
environmentId: string;
|
|
@@ -3219,7 +3282,7 @@ export function registryAppDeploy({ workspaceId, applicationId, environmentId, a
|
|
|
3219
3282
|
/**
|
|
3220
3283
|
* Get all application embedded links
|
|
3221
3284
|
*/
|
|
3222
|
-
export function
|
|
3285
|
+
export function applicationEmbeddedLinkControllergetEmbeddedLinks({ workspaceId, applicationId, name }: {
|
|
3223
3286
|
workspaceId: string;
|
|
3224
3287
|
applicationId: string;
|
|
3225
3288
|
name?: string;
|
|
@@ -3245,7 +3308,7 @@ export function getEmbeddedLinks1({ workspaceId, applicationId, name }: {
|
|
|
3245
3308
|
/**
|
|
3246
3309
|
* Create application embedded link
|
|
3247
3310
|
*/
|
|
3248
|
-
export function
|
|
3311
|
+
export function applicationEmbeddedLinkControllersave({ workspaceId, applicationId, createApplicationEmbeddedLinkRequest }: {
|
|
3249
3312
|
workspaceId: string;
|
|
3250
3313
|
applicationId: string;
|
|
3251
3314
|
createApplicationEmbeddedLinkRequest: CreateApplicationEmbeddedLinkRequest;
|
|
@@ -3274,7 +3337,7 @@ export function save8({ workspaceId, applicationId, createApplicationEmbeddedLin
|
|
|
3274
3337
|
/**
|
|
3275
3338
|
* Register the snapshot of an application's deploy.
|
|
3276
3339
|
*/
|
|
3277
|
-
export function
|
|
3340
|
+
export function applicationControllerprocessDeploySnapshot({ workspaceId, applicationId, applicationDeploySnapshotRequest }: {
|
|
3278
3341
|
workspaceId: string;
|
|
3279
3342
|
applicationId: string;
|
|
3280
3343
|
applicationDeploySnapshotRequest: ApplicationDeploySnapshotRequest;
|
|
@@ -3302,7 +3365,7 @@ export function processDeploySnapshot1({ workspaceId, applicationId, application
|
|
|
3302
3365
|
/**
|
|
3303
3366
|
* List all workspaces usage by stack version list.
|
|
3304
3367
|
*/
|
|
3305
|
-
export function
|
|
3368
|
+
export function usageInsightsControllerlistAllStackUsage({ accountId, body }: {
|
|
3306
3369
|
accountId: string;
|
|
3307
3370
|
body: string[];
|
|
3308
3371
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3324,7 +3387,7 @@ export function listAllStackUsage({ accountId, body }: {
|
|
|
3324
3387
|
/**
|
|
3325
3388
|
* Retrieve the amount of apps and shared infras that use the given plugin version id list
|
|
3326
3389
|
*/
|
|
3327
|
-
export function
|
|
3390
|
+
export function usageInsightsControllerfindPluginUsageAmount({ accountId, body }: {
|
|
3328
3391
|
accountId: string;
|
|
3329
3392
|
body: string[];
|
|
3330
3393
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3352,7 +3415,7 @@ export function findPluginUsageAmount({ accountId, body }: {
|
|
|
3352
3415
|
/**
|
|
3353
3416
|
* Get environments
|
|
3354
3417
|
*/
|
|
3355
|
-
export function
|
|
3418
|
+
export function environmentControllergetEnvironments({ accountId }: {
|
|
3356
3419
|
accountId?: string;
|
|
3357
3420
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3358
3421
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3374,7 +3437,7 @@ export function getEnvironments({ accountId }: {
|
|
|
3374
3437
|
/**
|
|
3375
3438
|
* Save environment
|
|
3376
3439
|
*/
|
|
3377
|
-
export function
|
|
3440
|
+
export function environmentControllersave({ environmentSaveRequest }: {
|
|
3378
3441
|
environmentSaveRequest: EnvironmentSaveRequest;
|
|
3379
3442
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3380
3443
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3398,7 +3461,7 @@ export function save9({ environmentSaveRequest }: {
|
|
|
3398
3461
|
/**
|
|
3399
3462
|
* Batch save environment
|
|
3400
3463
|
*/
|
|
3401
|
-
export function
|
|
3464
|
+
export function environmentControllersaveBatch({ accountId, body }: {
|
|
3402
3465
|
accountId?: string;
|
|
3403
3466
|
body: EnvironmentSaveRequest[];
|
|
3404
3467
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3423,7 +3486,7 @@ export function saveBatch({ accountId, body }: {
|
|
|
3423
3486
|
/**
|
|
3424
3487
|
* List all workflows of an account.
|
|
3425
3488
|
*/
|
|
3426
|
-
export function
|
|
3489
|
+
export function workflowAccountControllerlistAccountWorkflows({ $type, name }: {
|
|
3427
3490
|
$type?: "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
|
|
3428
3491
|
name?: string;
|
|
3429
3492
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3449,7 +3512,7 @@ export function listAccountWorkflows({ $type, name }: {
|
|
|
3449
3512
|
/**
|
|
3450
3513
|
* Create an account workflow
|
|
3451
3514
|
*/
|
|
3452
|
-
export function
|
|
3515
|
+
export function workflowAccountControllersaveAccountWorkflow({ accountWorkflowCreateRequest }: {
|
|
3453
3516
|
accountWorkflowCreateRequest: AccountWorkflowCreateRequest;
|
|
3454
3517
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3455
3518
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3470,10 +3533,66 @@ export function saveAccountWorkflow({ accountWorkflowCreateRequest }: {
|
|
|
3470
3533
|
body: accountWorkflowCreateRequest
|
|
3471
3534
|
})));
|
|
3472
3535
|
}
|
|
3536
|
+
/**
|
|
3537
|
+
* Find all account variables
|
|
3538
|
+
*/
|
|
3539
|
+
export function accountVariableControllerfindAll({ accountId, name, page, size, sortBy, sortDir }: {
|
|
3540
|
+
accountId?: string;
|
|
3541
|
+
name?: string;
|
|
3542
|
+
page?: number;
|
|
3543
|
+
size?: number;
|
|
3544
|
+
sortBy?: "NAME" | "VALUE" | "CREATED_AT";
|
|
3545
|
+
sortDir?: "ASC" | "DESC";
|
|
3546
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3547
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3548
|
+
status: 200;
|
|
3549
|
+
data: PaginatedAccountVariableResponse;
|
|
3550
|
+
} | {
|
|
3551
|
+
status: 403;
|
|
3552
|
+
data: ErrorResponse;
|
|
3553
|
+
} | {
|
|
3554
|
+
status: 500;
|
|
3555
|
+
data: ErrorResponse;
|
|
3556
|
+
}>(`/v1/account/variables${QS.query(QS.explode({
|
|
3557
|
+
name,
|
|
3558
|
+
page,
|
|
3559
|
+
size,
|
|
3560
|
+
sortBy,
|
|
3561
|
+
sortDir
|
|
3562
|
+
}))}`, {
|
|
3563
|
+
...opts,
|
|
3564
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3565
|
+
accountId
|
|
3566
|
+
})
|
|
3567
|
+
}));
|
|
3568
|
+
}
|
|
3569
|
+
/**
|
|
3570
|
+
* Create account variable
|
|
3571
|
+
*/
|
|
3572
|
+
export function accountVariableControllercreate({ createAccountVariableRequest }: {
|
|
3573
|
+
createAccountVariableRequest: CreateAccountVariableRequest;
|
|
3574
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3575
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3576
|
+
status: 201;
|
|
3577
|
+
} | {
|
|
3578
|
+
status: 403;
|
|
3579
|
+
data: ErrorResponse;
|
|
3580
|
+
} | {
|
|
3581
|
+
status: 422;
|
|
3582
|
+
data: ErrorResponse;
|
|
3583
|
+
} | {
|
|
3584
|
+
status: 500;
|
|
3585
|
+
data: ErrorResponse;
|
|
3586
|
+
}>("/v1/account/variables", oazapfts.json({
|
|
3587
|
+
...opts,
|
|
3588
|
+
method: "POST",
|
|
3589
|
+
body: createAccountVariableRequest
|
|
3590
|
+
})));
|
|
3591
|
+
}
|
|
3473
3592
|
/**
|
|
3474
3593
|
* List all stacks with context for given account and given stackVersionId list.
|
|
3475
3594
|
*/
|
|
3476
|
-
export function
|
|
3595
|
+
export function contextControllerlistStackVersionsWithAccountContext({ body }: {
|
|
3477
3596
|
body: string[];
|
|
3478
3597
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3479
3598
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3497,7 +3616,7 @@ export function listStackVersionsWithAccountContext({ body }: {
|
|
|
3497
3616
|
/**
|
|
3498
3617
|
* Get workspace by id
|
|
3499
3618
|
*/
|
|
3500
|
-
export function
|
|
3619
|
+
export function workspaceControllergetWorkspaceForId({ workspaceId }: {
|
|
3501
3620
|
workspaceId: string;
|
|
3502
3621
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3503
3622
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3519,7 +3638,7 @@ export function getWorkspaceForId({ workspaceId }: {
|
|
|
3519
3638
|
/**
|
|
3520
3639
|
* Delete workspace.
|
|
3521
3640
|
*/
|
|
3522
|
-
export function
|
|
3641
|
+
export function workspaceControllerdelete({ workspaceId }: {
|
|
3523
3642
|
workspaceId: string;
|
|
3524
3643
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3525
3644
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3544,7 +3663,7 @@ export function deleteV1WorkspacesByWorkspaceId({ workspaceId }: {
|
|
|
3544
3663
|
/**
|
|
3545
3664
|
* Update workspace
|
|
3546
3665
|
*/
|
|
3547
|
-
export function
|
|
3666
|
+
export function workspaceControllerupdate({ workspaceId, updateWorkspaceRequest }: {
|
|
3548
3667
|
workspaceId: string;
|
|
3549
3668
|
updateWorkspaceRequest: UpdateWorkspaceRequest;
|
|
3550
3669
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3572,7 +3691,7 @@ export function update1({ workspaceId, updateWorkspaceRequest }: {
|
|
|
3572
3691
|
/**
|
|
3573
3692
|
* Get shared infra links by id
|
|
3574
3693
|
*/
|
|
3575
|
-
export function
|
|
3694
|
+
export function sharedInfraLinkControllergetSharedInfraLink({ workspaceId, sharedInfraId, linkId }: {
|
|
3576
3695
|
workspaceId: string;
|
|
3577
3696
|
sharedInfraId: string;
|
|
3578
3697
|
linkId: string;
|
|
@@ -3596,7 +3715,7 @@ export function getSharedInfraLink({ workspaceId, sharedInfraId, linkId }: {
|
|
|
3596
3715
|
/**
|
|
3597
3716
|
* Delete shared infra links
|
|
3598
3717
|
*/
|
|
3599
|
-
export function
|
|
3718
|
+
export function sharedInfraLinkControllerdelete({ workspaceId, sharedInfraId, linkId }: {
|
|
3600
3719
|
workspaceId: string;
|
|
3601
3720
|
sharedInfraId: string;
|
|
3602
3721
|
linkId: string;
|
|
@@ -3620,7 +3739,7 @@ export function delete2({ workspaceId, sharedInfraId, linkId }: {
|
|
|
3620
3739
|
/**
|
|
3621
3740
|
* Update shared infra links
|
|
3622
3741
|
*/
|
|
3623
|
-
export function
|
|
3742
|
+
export function sharedInfraLinkControllerupdate({ workspaceId, sharedInfraId, linkId, updateSharedInfraLinkRequest }: {
|
|
3624
3743
|
workspaceId: string;
|
|
3625
3744
|
sharedInfraId: string;
|
|
3626
3745
|
linkId: string;
|
|
@@ -3650,7 +3769,7 @@ export function update3({ workspaceId, sharedInfraId, linkId, updateSharedInfraL
|
|
|
3650
3769
|
/**
|
|
3651
3770
|
* Get workspace link by id
|
|
3652
3771
|
*/
|
|
3653
|
-
export function
|
|
3772
|
+
export function workspaceLinkControllergetWorkspaceLink({ workspaceId, linkId }: {
|
|
3654
3773
|
workspaceId: string;
|
|
3655
3774
|
linkId: string;
|
|
3656
3775
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3673,7 +3792,7 @@ export function getWorkspaceLink({ workspaceId, linkId }: {
|
|
|
3673
3792
|
/**
|
|
3674
3793
|
* Delete workspace links
|
|
3675
3794
|
*/
|
|
3676
|
-
export function
|
|
3795
|
+
export function workspaceLinkControllerdelete({ workspaceId, linkId }: {
|
|
3677
3796
|
workspaceId: string;
|
|
3678
3797
|
linkId: string;
|
|
3679
3798
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3696,7 +3815,7 @@ export function delete3({ workspaceId, linkId }: {
|
|
|
3696
3815
|
/**
|
|
3697
3816
|
* Update workspace links
|
|
3698
3817
|
*/
|
|
3699
|
-
export function
|
|
3818
|
+
export function workspaceLinkControllerupdate({ workspaceId, linkId, updateWorkspaceLinkRequest }: {
|
|
3700
3819
|
workspaceId: string;
|
|
3701
3820
|
linkId: string;
|
|
3702
3821
|
updateWorkspaceLinkRequest: UpdateWorkspaceLinkRequest;
|
|
@@ -3725,7 +3844,7 @@ export function update4({ workspaceId, linkId, updateWorkspaceLinkRequest }: {
|
|
|
3725
3844
|
/**
|
|
3726
3845
|
* Get workspace embedded link by id
|
|
3727
3846
|
*/
|
|
3728
|
-
export function
|
|
3847
|
+
export function workspaceEmbeddedLinkControllergetEmbeddedLink({ workspaceId, embeddedLinkId }: {
|
|
3729
3848
|
workspaceId: string;
|
|
3730
3849
|
embeddedLinkId: string;
|
|
3731
3850
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3748,7 +3867,7 @@ export function getEmbeddedLink({ workspaceId, embeddedLinkId }: {
|
|
|
3748
3867
|
/**
|
|
3749
3868
|
* Delete workspace embedded link
|
|
3750
3869
|
*/
|
|
3751
|
-
export function
|
|
3870
|
+
export function workspaceEmbeddedLinkControllerdelete({ workspaceId, embeddedLinkId }: {
|
|
3752
3871
|
workspaceId: string;
|
|
3753
3872
|
embeddedLinkId: string;
|
|
3754
3873
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3771,7 +3890,7 @@ export function delete4({ workspaceId, embeddedLinkId }: {
|
|
|
3771
3890
|
/**
|
|
3772
3891
|
* Update workspace embedded link
|
|
3773
3892
|
*/
|
|
3774
|
-
export function
|
|
3893
|
+
export function workspaceEmbeddedLinkControllerupdate({ workspaceId, embeddedLinkId, updateWorkspaceEmbeddedLinkRequest }: {
|
|
3775
3894
|
workspaceId: string;
|
|
3776
3895
|
embeddedLinkId: string;
|
|
3777
3896
|
updateWorkspaceEmbeddedLinkRequest: UpdateWorkspaceEmbeddedLinkRequest;
|
|
@@ -3800,7 +3919,7 @@ export function update5({ workspaceId, embeddedLinkId, updateWorkspaceEmbeddedLi
|
|
|
3800
3919
|
/**
|
|
3801
3920
|
* Upsert workspace embedded link
|
|
3802
3921
|
*/
|
|
3803
|
-
export function
|
|
3922
|
+
export function workspaceEmbeddedLinkControllerupsertBatch({ workspaceId, body }: {
|
|
3804
3923
|
workspaceId: string;
|
|
3805
3924
|
body: UpsertWorkspaceEmbeddedLinkRequest[];
|
|
3806
3925
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3824,7 +3943,7 @@ export function upsertBatch1({ workspaceId, body }: {
|
|
|
3824
3943
|
/**
|
|
3825
3944
|
* Get application link by id
|
|
3826
3945
|
*/
|
|
3827
|
-
export function
|
|
3946
|
+
export function applicationLinkControllergetApplicationLink({ workspaceId, applicationId, linkId }: {
|
|
3828
3947
|
workspaceId: string;
|
|
3829
3948
|
applicationId: string;
|
|
3830
3949
|
linkId: string;
|
|
@@ -3848,7 +3967,7 @@ export function getApplicationLink({ workspaceId, applicationId, linkId }: {
|
|
|
3848
3967
|
/**
|
|
3849
3968
|
* Delete workspace links
|
|
3850
3969
|
*/
|
|
3851
|
-
export function
|
|
3970
|
+
export function applicationLinkControllerdelete({ workspaceId, applicationId, linkId }: {
|
|
3852
3971
|
workspaceId: string;
|
|
3853
3972
|
applicationId: string;
|
|
3854
3973
|
linkId: string;
|
|
@@ -3872,7 +3991,7 @@ export function delete5({ workspaceId, applicationId, linkId }: {
|
|
|
3872
3991
|
/**
|
|
3873
3992
|
* Update application links
|
|
3874
3993
|
*/
|
|
3875
|
-
export function
|
|
3994
|
+
export function applicationLinkControllerupdate({ workspaceId, applicationId, linkId, updateApplicationLinkRequest }: {
|
|
3876
3995
|
workspaceId: string;
|
|
3877
3996
|
applicationId: string;
|
|
3878
3997
|
linkId: string;
|
|
@@ -3902,7 +4021,7 @@ export function update7({ workspaceId, applicationId, linkId, updateApplicationL
|
|
|
3902
4021
|
/**
|
|
3903
4022
|
* Get application embedded link by id
|
|
3904
4023
|
*/
|
|
3905
|
-
export function
|
|
4024
|
+
export function applicationEmbeddedLinkControllergetEmbeddedLink({ workspaceId, applicationId, embeddedLinkId }: {
|
|
3906
4025
|
workspaceId: string;
|
|
3907
4026
|
applicationId: string;
|
|
3908
4027
|
embeddedLinkId: string;
|
|
@@ -3926,7 +4045,7 @@ export function getEmbeddedLink1({ workspaceId, applicationId, embeddedLinkId }:
|
|
|
3926
4045
|
/**
|
|
3927
4046
|
* Delete application embedded link
|
|
3928
4047
|
*/
|
|
3929
|
-
export function
|
|
4048
|
+
export function applicationEmbeddedLinkControllerdelete({ workspaceId, applicationId, embeddedLinkId }: {
|
|
3930
4049
|
workspaceId: string;
|
|
3931
4050
|
applicationId: string;
|
|
3932
4051
|
embeddedLinkId: string;
|
|
@@ -3950,7 +4069,7 @@ export function delete6({ workspaceId, applicationId, embeddedLinkId }: {
|
|
|
3950
4069
|
/**
|
|
3951
4070
|
* Update application embedded link
|
|
3952
4071
|
*/
|
|
3953
|
-
export function
|
|
4072
|
+
export function applicationEmbeddedLinkControllerupdate({ workspaceId, applicationId, embeddedLinkId, updateApplicationEmbeddedLinkRequest }: {
|
|
3954
4073
|
workspaceId: string;
|
|
3955
4074
|
applicationId: string;
|
|
3956
4075
|
embeddedLinkId: string;
|
|
@@ -3980,7 +4099,7 @@ export function update8({ workspaceId, applicationId, embeddedLinkId, updateAppl
|
|
|
3980
4099
|
/**
|
|
3981
4100
|
* Upsert application embedded link
|
|
3982
4101
|
*/
|
|
3983
|
-
export function
|
|
4102
|
+
export function applicationEmbeddedLinkControllerupsertBatch({ workspaceId, applicationId, body }: {
|
|
3984
4103
|
workspaceId: string;
|
|
3985
4104
|
applicationId: string;
|
|
3986
4105
|
body: UpsertApplicationEmbeddedLinkRequest[];
|
|
@@ -4005,7 +4124,7 @@ export function upsertBatch2({ workspaceId, applicationId, body }: {
|
|
|
4005
4124
|
/**
|
|
4006
4125
|
* Archive application from a workspace.
|
|
4007
4126
|
*/
|
|
4008
|
-
export function
|
|
4127
|
+
export function applicationControllerarchiveApplication({ workspaceId, applicationId }: {
|
|
4009
4128
|
workspaceId: string;
|
|
4010
4129
|
applicationId: string;
|
|
4011
4130
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4031,7 +4150,7 @@ export function archiveApplication({ workspaceId, applicationId }: {
|
|
|
4031
4150
|
/**
|
|
4032
4151
|
* Get environment by id
|
|
4033
4152
|
*/
|
|
4034
|
-
export function
|
|
4153
|
+
export function environmentControllergetEnvironment({ id }: {
|
|
4035
4154
|
id: string;
|
|
4036
4155
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4037
4156
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4053,7 +4172,7 @@ export function getEnvironment({ id }: {
|
|
|
4053
4172
|
/**
|
|
4054
4173
|
* Update environment
|
|
4055
4174
|
*/
|
|
4056
|
-
export function
|
|
4175
|
+
export function environmentControllerupdate({ id, environmentUpdateRequest }: {
|
|
4057
4176
|
id: string;
|
|
4058
4177
|
environmentUpdateRequest: EnvironmentUpdateRequest;
|
|
4059
4178
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4078,10 +4197,51 @@ export function update9({ id, environmentUpdateRequest }: {
|
|
|
4078
4197
|
body: environmentUpdateRequest
|
|
4079
4198
|
})));
|
|
4080
4199
|
}
|
|
4200
|
+
/**
|
|
4201
|
+
* Find all workspace variables
|
|
4202
|
+
*/
|
|
4203
|
+
export function workspaceVariableV2ControllerfindAll({ workspaceId, accountId, page, size, sortBy, sortDir, mandate, name, showEmptyValues }: {
|
|
4204
|
+
workspaceId: string;
|
|
4205
|
+
accountId?: string;
|
|
4206
|
+
page?: number;
|
|
4207
|
+
size?: number;
|
|
4208
|
+
sortBy?: "NAME" | "VALUE" | "CREATED_AT";
|
|
4209
|
+
sortDir?: "ASC" | "DESC";
|
|
4210
|
+
mandate?: boolean;
|
|
4211
|
+
name?: string;
|
|
4212
|
+
showEmptyValues?: boolean;
|
|
4213
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4214
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4215
|
+
status: 200;
|
|
4216
|
+
data: PaginatedWorkspaceVariableResponse;
|
|
4217
|
+
} | {
|
|
4218
|
+
status: 403;
|
|
4219
|
+
data: ErrorResponse;
|
|
4220
|
+
} | {
|
|
4221
|
+
status: 404;
|
|
4222
|
+
data: ErrorResponse;
|
|
4223
|
+
} | {
|
|
4224
|
+
status: 500;
|
|
4225
|
+
data: ErrorResponse;
|
|
4226
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
4227
|
+
page,
|
|
4228
|
+
size,
|
|
4229
|
+
sortBy,
|
|
4230
|
+
sortDir,
|
|
4231
|
+
mandate,
|
|
4232
|
+
name,
|
|
4233
|
+
showEmptyValues
|
|
4234
|
+
}))}`, {
|
|
4235
|
+
...opts,
|
|
4236
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4237
|
+
accountId
|
|
4238
|
+
})
|
|
4239
|
+
}));
|
|
4240
|
+
}
|
|
4081
4241
|
/**
|
|
4082
4242
|
* Get plugins applied to a workspace's shared infrastructure.
|
|
4083
4243
|
*/
|
|
4084
|
-
export function
|
|
4244
|
+
export function sharedInfrastructureV2ControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId }: {
|
|
4085
4245
|
workspaceId: string;
|
|
4086
4246
|
sharedInfraId: string;
|
|
4087
4247
|
environmentId: string;
|
|
@@ -4108,7 +4268,7 @@ export function getAppliedPlugins({ workspaceId, sharedInfraId, environmentId }:
|
|
|
4108
4268
|
/**
|
|
4109
4269
|
* List all available connection interfaces for a workspace.
|
|
4110
4270
|
*/
|
|
4111
|
-
export function
|
|
4271
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfacesForAWorkspace({ workspaceId, typeId, automaticallyGenerated }: {
|
|
4112
4272
|
workspaceId: string;
|
|
4113
4273
|
typeId?: string;
|
|
4114
4274
|
automaticallyGenerated?: boolean;
|
|
@@ -4138,7 +4298,7 @@ export function getAvailableConnectionInterfacesForAWorkspace({ workspaceId, typ
|
|
|
4138
4298
|
/**
|
|
4139
4299
|
* Get available connection interface for a workspace by its slug.
|
|
4140
4300
|
*/
|
|
4141
|
-
export function
|
|
4301
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAWorkspace({ workspaceId, slug, environmentId, accountId }: {
|
|
4142
4302
|
workspaceId: string;
|
|
4143
4303
|
slug: string;
|
|
4144
4304
|
environmentId?: string;
|
|
@@ -4171,7 +4331,7 @@ export function getAvailableConnectionInterfaceForAWorkspace({ workspaceId, slug
|
|
|
4171
4331
|
/**
|
|
4172
4332
|
* Get plugins applied to a workspace's application.
|
|
4173
4333
|
*/
|
|
4174
|
-
export function
|
|
4334
|
+
export function applicationV2ControllergetAppliedPlugins({ workspaceId, applicationId, environmentId }: {
|
|
4175
4335
|
workspaceId: string;
|
|
4176
4336
|
applicationId: string;
|
|
4177
4337
|
environmentId: string;
|
|
@@ -4198,7 +4358,7 @@ export function getAppliedPlugins1({ workspaceId, applicationId, environmentId }
|
|
|
4198
4358
|
/**
|
|
4199
4359
|
* List all available connection interfaces for an application.
|
|
4200
4360
|
*/
|
|
4201
|
-
export function
|
|
4361
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfacesForAnApplication({ applicationId, typeId, automaticallyGenerated }: {
|
|
4202
4362
|
applicationId: string;
|
|
4203
4363
|
typeId?: string;
|
|
4204
4364
|
automaticallyGenerated?: boolean;
|
|
@@ -4228,7 +4388,7 @@ export function getAvailableConnectionInterfacesForAnApplication({ applicationId
|
|
|
4228
4388
|
/**
|
|
4229
4389
|
* Get available connection interface for an application by its slug.
|
|
4230
4390
|
*/
|
|
4231
|
-
export function
|
|
4391
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAnApplication({ applicationId, slug, environmentId }: {
|
|
4232
4392
|
applicationId: string;
|
|
4233
4393
|
slug: string;
|
|
4234
4394
|
environmentId?: string;
|
|
@@ -4257,7 +4417,7 @@ export function getAvailableConnectionInterfaceForAnApplication({ applicationId,
|
|
|
4257
4417
|
/**
|
|
4258
4418
|
* Get connection interface in use by applicationId or sharedInfraId.
|
|
4259
4419
|
*/
|
|
4260
|
-
export function
|
|
4420
|
+
export function connectionInterfaceInUseControllergetConnectionInterfaceInUseTargetId({ workspaceId, targetId, targetType, slug, accountId, environmentId }: {
|
|
4261
4421
|
workspaceId: string;
|
|
4262
4422
|
targetId: string;
|
|
4263
4423
|
targetType: "applications" | "shared_infra";
|
|
@@ -4289,10 +4449,35 @@ export function getConnectionInterfaceInUseTargetId({ workspaceId, targetId, tar
|
|
|
4289
4449
|
})
|
|
4290
4450
|
}));
|
|
4291
4451
|
}
|
|
4452
|
+
/**
|
|
4453
|
+
* Get all workspace's variables v1
|
|
4454
|
+
*/
|
|
4455
|
+
export function workspaceVariableV1ControllerfindAll({ workspaceId, filter }: {
|
|
4456
|
+
workspaceId: string;
|
|
4457
|
+
filter?: string;
|
|
4458
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4459
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4460
|
+
status: 200;
|
|
4461
|
+
data: WorkspaceVariableReadV1Response[];
|
|
4462
|
+
} | {
|
|
4463
|
+
status: 403;
|
|
4464
|
+
data: ErrorResponse;
|
|
4465
|
+
} | {
|
|
4466
|
+
status: 404;
|
|
4467
|
+
data: ErrorResponse;
|
|
4468
|
+
} | {
|
|
4469
|
+
status: 500;
|
|
4470
|
+
data: ErrorResponse;
|
|
4471
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
4472
|
+
filter
|
|
4473
|
+
}))}`, {
|
|
4474
|
+
...opts
|
|
4475
|
+
}));
|
|
4476
|
+
}
|
|
4292
4477
|
/**
|
|
4293
4478
|
* Get stack in a workspace by stack version id.
|
|
4294
4479
|
*/
|
|
4295
|
-
export function
|
|
4480
|
+
export function workspaceStackControllergetStackById({ workspaceId, stackVersionId }: {
|
|
4296
4481
|
workspaceId: string;
|
|
4297
4482
|
stackVersionId: string;
|
|
4298
4483
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4318,7 +4503,7 @@ export function getStackById({ workspaceId, stackVersionId }: {
|
|
|
4318
4503
|
/**
|
|
4319
4504
|
* Delete a stack from a workspace.
|
|
4320
4505
|
*/
|
|
4321
|
-
export function
|
|
4506
|
+
export function workspaceStackControllerdeleteStack({ workspaceId, stackVersionId }: {
|
|
4322
4507
|
workspaceId: string;
|
|
4323
4508
|
stackVersionId: string;
|
|
4324
4509
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4347,7 +4532,7 @@ export function deleteStack({ workspaceId, stackVersionId }: {
|
|
|
4347
4532
|
/**
|
|
4348
4533
|
* List the consolidated input context of all stack elements for given type in a workspace.
|
|
4349
4534
|
*/
|
|
4350
|
-
export function
|
|
4535
|
+
export function contextControllerlistConsolidatedContext({ workspaceId, stackVersionId, $type, environmentId, externalId }: {
|
|
4351
4536
|
workspaceId: string;
|
|
4352
4537
|
stackVersionId: string;
|
|
4353
4538
|
$type: "plugin" | "action";
|
|
@@ -4379,7 +4564,7 @@ export function listConsolidatedContext({ workspaceId, stackVersionId, $type, en
|
|
|
4379
4564
|
/**
|
|
4380
4565
|
* Get workflow settings with context by stack and workflowType
|
|
4381
4566
|
*/
|
|
4382
|
-
export function
|
|
4567
|
+
export function workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, workflowType }: {
|
|
4383
4568
|
workspaceId: string;
|
|
4384
4569
|
stackId: string;
|
|
4385
4570
|
workflowType: "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
|
|
@@ -4406,7 +4591,7 @@ export function listWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, wor
|
|
|
4406
4591
|
/**
|
|
4407
4592
|
* Get plugins applied to a workspace's shared infrastructure.
|
|
4408
4593
|
*/
|
|
4409
|
-
export function
|
|
4594
|
+
export function sharedInfrastructureControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId, $type }: {
|
|
4410
4595
|
workspaceId: string;
|
|
4411
4596
|
sharedInfraId: string;
|
|
4412
4597
|
environmentId: string;
|
|
@@ -4436,7 +4621,7 @@ export function getAppliedPlugins2({ workspaceId, sharedInfraId, environmentId,
|
|
|
4436
4621
|
/**
|
|
4437
4622
|
* List shared infrastructure's activities.
|
|
4438
4623
|
*/
|
|
4439
|
-
export function
|
|
4624
|
+
export function sharedInfrastructureControllerlistActivities({ workspaceId, sharedInfraId, environmentId, $type, page, size }: {
|
|
4440
4625
|
workspaceId: string;
|
|
4441
4626
|
sharedInfraId: string;
|
|
4442
4627
|
environmentId: string;
|
|
@@ -4470,7 +4655,7 @@ export function listActivities({ workspaceId, sharedInfraId, environmentId, $typ
|
|
|
4470
4655
|
/**
|
|
4471
4656
|
* Get all in use connection interface dependencies from the shared infra.
|
|
4472
4657
|
*/
|
|
4473
|
-
export function
|
|
4658
|
+
export function sharedInfrastructureControllergetDependencyTree({ workspaceId, sharedInfraId }: {
|
|
4474
4659
|
workspaceId: string;
|
|
4475
4660
|
sharedInfraId: string;
|
|
4476
4661
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4496,7 +4681,7 @@ export function getDependencyTree({ workspaceId, sharedInfraId }: {
|
|
|
4496
4681
|
/**
|
|
4497
4682
|
* Get a connection interface by connection interface id.
|
|
4498
4683
|
*/
|
|
4499
|
-
export function
|
|
4684
|
+
export function connectionInterfaceControllergetConnectionInterface({ workspaceId, connectionInterfaceId, environmentId }: {
|
|
4500
4685
|
workspaceId: string;
|
|
4501
4686
|
connectionInterfaceId: string;
|
|
4502
4687
|
environmentId?: string;
|
|
@@ -4525,7 +4710,7 @@ export function getConnectionInterface({ workspaceId, connectionInterfaceId, env
|
|
|
4525
4710
|
/**
|
|
4526
4711
|
* Get all connection interface in use.
|
|
4527
4712
|
*/
|
|
4528
|
-
export function
|
|
4713
|
+
export function connectionInterfaceInUseControllergetAllConnectionInterfaceInUse({ workspaceId, accountId }: {
|
|
4529
4714
|
workspaceId: string;
|
|
4530
4715
|
accountId?: string;
|
|
4531
4716
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4554,7 +4739,7 @@ export function getAllConnectionInterfaceInUse({ workspaceId, accountId }: {
|
|
|
4554
4739
|
/**
|
|
4555
4740
|
* Get connection interface in use by slug.
|
|
4556
4741
|
*/
|
|
4557
|
-
export function
|
|
4742
|
+
export function connectionInterfaceInUseControllergetConnectionInterfaceInUseBySlug({ workspaceId, slug, accountId }: {
|
|
4558
4743
|
workspaceId: string;
|
|
4559
4744
|
slug: string;
|
|
4560
4745
|
accountId?: string;
|
|
@@ -4584,7 +4769,7 @@ export function getConnectionInterfaceInUseBySlug({ workspaceId, slug, accountId
|
|
|
4584
4769
|
/**
|
|
4585
4770
|
* List all available connection interfaces for a workspace.
|
|
4586
4771
|
*/
|
|
4587
|
-
export function
|
|
4772
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfacesForAWorkspace({ workspaceId, typeId }: {
|
|
4588
4773
|
workspaceId: string;
|
|
4589
4774
|
typeId?: string;
|
|
4590
4775
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4612,7 +4797,7 @@ export function getAvailableConnectionInterfacesForAWorkspace1({ workspaceId, ty
|
|
|
4612
4797
|
/**
|
|
4613
4798
|
* Get available connection interface for a workspace by its id.
|
|
4614
4799
|
*/
|
|
4615
|
-
export function
|
|
4800
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfaceForAWorkspace({ workspaceId, connectionInterfaceId, environmentId }: {
|
|
4616
4801
|
workspaceId: string;
|
|
4617
4802
|
connectionInterfaceId: string;
|
|
4618
4803
|
environmentId?: string;
|
|
@@ -4641,7 +4826,7 @@ export function getAvailableConnectionInterfaceForAWorkspace1({ workspaceId, con
|
|
|
4641
4826
|
/**
|
|
4642
4827
|
* Get plugins applied to a workspace's application.
|
|
4643
4828
|
*/
|
|
4644
|
-
export function
|
|
4829
|
+
export function applicationControllergetAppliedPlugins({ workspaceId, applicationId, environmentId, $type }: {
|
|
4645
4830
|
workspaceId: string;
|
|
4646
4831
|
applicationId: string;
|
|
4647
4832
|
environmentId: string;
|
|
@@ -4668,7 +4853,7 @@ export function getAppliedPlugins3({ workspaceId, applicationId, environmentId,
|
|
|
4668
4853
|
...opts
|
|
4669
4854
|
}));
|
|
4670
4855
|
}
|
|
4671
|
-
export function
|
|
4856
|
+
export function applicationControllergetAppDeployInfo({ workspaceId, applicationId, environmentId, accountId, tenant }: {
|
|
4672
4857
|
workspaceId: string;
|
|
4673
4858
|
applicationId: string;
|
|
4674
4859
|
environmentId: string;
|
|
@@ -4689,7 +4874,7 @@ export function getAppDeployInfo({ workspaceId, applicationId, environmentId, ac
|
|
|
4689
4874
|
/**
|
|
4690
4875
|
* List application's activities.
|
|
4691
4876
|
*/
|
|
4692
|
-
export function
|
|
4877
|
+
export function applicationControllerlistActivities({ workspaceId, applicationId, environmentId, $type, page, size }: {
|
|
4693
4878
|
workspaceId: string;
|
|
4694
4879
|
applicationId: string;
|
|
4695
4880
|
environmentId: string;
|
|
@@ -4723,7 +4908,7 @@ export function listActivities1({ workspaceId, applicationId, environmentId, $ty
|
|
|
4723
4908
|
/**
|
|
4724
4909
|
* Get all in use connection interface dependencies from the application.
|
|
4725
4910
|
*/
|
|
4726
|
-
export function
|
|
4911
|
+
export function applicationControllergetDependencyTree({ workspaceId, applicationId }: {
|
|
4727
4912
|
workspaceId: string;
|
|
4728
4913
|
applicationId: string;
|
|
4729
4914
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4749,7 +4934,7 @@ export function getDependencyTree1({ workspaceId, applicationId }: {
|
|
|
4749
4934
|
/**
|
|
4750
4935
|
* Can the application be destroyed?
|
|
4751
4936
|
*/
|
|
4752
|
-
export function
|
|
4937
|
+
export function applicationControllercanBeDeleted({ workspaceId, applicationId, accountId, tenant }: {
|
|
4753
4938
|
workspaceId: string;
|
|
4754
4939
|
applicationId: string;
|
|
4755
4940
|
accountId: string;
|
|
@@ -4784,7 +4969,7 @@ export function canBeDeleted({ workspaceId, applicationId, accountId, tenant }:
|
|
|
4784
4969
|
/**
|
|
4785
4970
|
* Get all workspaces within user permission
|
|
4786
4971
|
*/
|
|
4787
|
-
export function
|
|
4972
|
+
export function workspaceControllergetWorkspacesFromUserPermission({ resource, action }: {
|
|
4788
4973
|
resource: string;
|
|
4789
4974
|
action: string;
|
|
4790
4975
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4804,7 +4989,7 @@ export function getWorkspacesFromUserPermission({ resource, action }: {
|
|
|
4804
4989
|
/**
|
|
4805
4990
|
* Get shared infrastructure information by id.
|
|
4806
4991
|
*/
|
|
4807
|
-
export function
|
|
4992
|
+
export function getSharedInfraControllergetSharedInfra({ id }: {
|
|
4808
4993
|
id: string;
|
|
4809
4994
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4810
4995
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4823,7 +5008,7 @@ export function getSharedInfra({ id }: {
|
|
|
4823
5008
|
/**
|
|
4824
5009
|
* Check if there is/are any deployment active for the provided plugin
|
|
4825
5010
|
*/
|
|
4826
|
-
export function
|
|
5011
|
+
export function pluginInUseControllercheckPluginInUse({ pluginVersionId }: {
|
|
4827
5012
|
pluginVersionId: string;
|
|
4828
5013
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4829
5014
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4845,7 +5030,7 @@ export function checkPluginInUse({ pluginVersionId }: {
|
|
|
4845
5030
|
/**
|
|
4846
5031
|
* Check availability of connection slug in account.
|
|
4847
5032
|
*/
|
|
4848
|
-
export function
|
|
5033
|
+
export function checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability({ slug }: {
|
|
4849
5034
|
slug: string;
|
|
4850
5035
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4851
5036
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4858,7 +5043,7 @@ export function checkConnectionSlugAvailability({ slug }: {
|
|
|
4858
5043
|
/**
|
|
4859
5044
|
* Get an application list by repo url.
|
|
4860
5045
|
*/
|
|
4861
|
-
export function
|
|
5046
|
+
export function getApplicationControllergetApplicationsByUrl({ accountId, repoUrl }: {
|
|
4862
5047
|
accountId: string;
|
|
4863
5048
|
repoUrl: string;
|
|
4864
5049
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4886,7 +5071,7 @@ export function getApplicationsByUrl({ accountId, repoUrl }: {
|
|
|
4886
5071
|
/**
|
|
4887
5072
|
* Get application information by id.
|
|
4888
5073
|
*/
|
|
4889
|
-
export function
|
|
5074
|
+
export function getApplicationControllergetApplication({ id }: {
|
|
4890
5075
|
id: string;
|
|
4891
5076
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4892
5077
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4905,7 +5090,7 @@ export function getApplication1({ id }: {
|
|
|
4905
5090
|
/**
|
|
4906
5091
|
* List all available connection interfaces for an application.
|
|
4907
5092
|
*/
|
|
4908
|
-
export function
|
|
5093
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfacesForAnApplication({ applicationId, typeId }: {
|
|
4909
5094
|
applicationId: string;
|
|
4910
5095
|
typeId?: string;
|
|
4911
5096
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4933,7 +5118,7 @@ export function getAvailableConnectionInterfacesForAnApplication1({ applicationI
|
|
|
4933
5118
|
/**
|
|
4934
5119
|
* Get available connection interface for an application by its id.
|
|
4935
5120
|
*/
|
|
4936
|
-
export function
|
|
5121
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfaceForAnApplication({ applicationId, connectionInterfaceId, environmentId }: {
|
|
4937
5122
|
applicationId: string;
|
|
4938
5123
|
connectionInterfaceId: string;
|
|
4939
5124
|
environmentId?: string;
|
|
@@ -4962,7 +5147,7 @@ export function getAvailableConnectionInterfaceForAnApplication1({ applicationId
|
|
|
4962
5147
|
/**
|
|
4963
5148
|
* Get action version ranges used in workflows given an actionId.
|
|
4964
5149
|
*/
|
|
4965
|
-
export function
|
|
5150
|
+
export function workflowAccountControllerlistActionVersionRangesUsage({ accountId, actionId }: {
|
|
4966
5151
|
accountId?: string;
|
|
4967
5152
|
actionId: string;
|
|
4968
5153
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -4985,10 +5170,36 @@ export function listActionVersionRangesUsage({ accountId, actionId }: {
|
|
|
4985
5170
|
})
|
|
4986
5171
|
}));
|
|
4987
5172
|
}
|
|
5173
|
+
/**
|
|
5174
|
+
* Get account variable usage
|
|
5175
|
+
*/
|
|
5176
|
+
export function accountVariableControllerusage({ accountId, name }: {
|
|
5177
|
+
accountId?: string;
|
|
5178
|
+
name: string;
|
|
5179
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5180
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5181
|
+
status: 200;
|
|
5182
|
+
data: AccountVariableUsageResponse;
|
|
5183
|
+
} | {
|
|
5184
|
+
status: 403;
|
|
5185
|
+
data: ErrorResponse;
|
|
5186
|
+
} | {
|
|
5187
|
+
status: 404;
|
|
5188
|
+
data: ErrorResponse;
|
|
5189
|
+
} | {
|
|
5190
|
+
status: 500;
|
|
5191
|
+
data: ErrorResponse;
|
|
5192
|
+
}>(`/v1/account/variables/${encodeURIComponent(name)}/usage`, {
|
|
5193
|
+
...opts,
|
|
5194
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
5195
|
+
accountId
|
|
5196
|
+
})
|
|
5197
|
+
}));
|
|
5198
|
+
}
|
|
4988
5199
|
/**
|
|
4989
5200
|
* List the input context of all stack elements for given type in account.
|
|
4990
5201
|
*/
|
|
4991
|
-
export function
|
|
5202
|
+
export function contextControllerlistAccountContext({ stackVersionId, $type, environmentId, externalId }: {
|
|
4992
5203
|
stackVersionId: string;
|
|
4993
5204
|
$type: "plugin" | "action";
|
|
4994
5205
|
environmentId?: string;
|
|
@@ -5019,7 +5230,7 @@ export function listAccountContext({ stackVersionId, $type, environmentId, exter
|
|
|
5019
5230
|
/**
|
|
5020
5231
|
* Get workflow of a stackId by workflow type.
|
|
5021
5232
|
*/
|
|
5022
|
-
export function
|
|
5233
|
+
export function workflowStackControllerlistWorkflowByStackIdAndType({ stackId, workflowType }: {
|
|
5023
5234
|
stackId: string;
|
|
5024
5235
|
workflowType: "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
|
|
5025
5236
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -5045,7 +5256,7 @@ export function listWorkflowByStackIdAndType({ stackId, workflowType }: {
|
|
|
5045
5256
|
/**
|
|
5046
5257
|
* Get workflows by a stackId.
|
|
5047
5258
|
*/
|
|
5048
|
-
export function
|
|
5259
|
+
export function workflowStackControllerlistWorkflowsByStackId({ stackId }: {
|
|
5049
5260
|
stackId: string;
|
|
5050
5261
|
}, opts?: Oazapfts.RequestOpts) {
|
|
5051
5262
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5067,7 +5278,7 @@ export function listWorkflowsByStackId({ stackId }: {
|
|
|
5067
5278
|
/**
|
|
5068
5279
|
* List all stacks with workflow by account.
|
|
5069
5280
|
*/
|
|
5070
|
-
export function
|
|
5281
|
+
export function accountStackControllerlistStacksWithWorkflow(opts?: Oazapfts.RequestOpts) {
|
|
5071
5282
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5072
5283
|
status: 200;
|
|
5073
5284
|
data: StacksByAccountResponse;
|
|
@@ -5087,7 +5298,7 @@ export function listStacksWithWorkflow(opts?: Oazapfts.RequestOpts) {
|
|
|
5087
5298
|
/**
|
|
5088
5299
|
* List all default workflows of an account.
|
|
5089
5300
|
*/
|
|
5090
|
-
export function
|
|
5301
|
+
export function workflowAccountControllerlistDefaultAccountWorkflows(opts?: Oazapfts.RequestOpts) {
|
|
5091
5302
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5092
5303
|
status: 200;
|
|
5093
5304
|
data: WorkflowResponse[];
|
|
@@ -5107,7 +5318,7 @@ export function listDefaultAccountWorkflows(opts?: Oazapfts.RequestOpts) {
|
|
|
5107
5318
|
/**
|
|
5108
5319
|
* Delete completely connection interfaces from all environments.
|
|
5109
5320
|
*/
|
|
5110
|
-
export function
|
|
5321
|
+
export function connectionInterfaceControllerdeleteConnectionInterfaceFromAllEnvironments({ workspaceId, slug }: {
|
|
5111
5322
|
workspaceId: string;
|
|
5112
5323
|
slug: string;
|
|
5113
5324
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -5136,7 +5347,7 @@ export function deleteConnectionInterfaceFromAllEnvironments({ workspaceId, slug
|
|
|
5136
5347
|
/**
|
|
5137
5348
|
* Delete connection interfaces.
|
|
5138
5349
|
*/
|
|
5139
|
-
export function
|
|
5350
|
+
export function connectionInterfaceControllerdeleteConnectionInterface({ workspaceId, slug, environmentId, accountId }: {
|
|
5140
5351
|
workspaceId: string;
|
|
5141
5352
|
slug: string;
|
|
5142
5353
|
environmentId: string;
|
|
@@ -5167,7 +5378,7 @@ export function deleteConnectionInterface({ workspaceId, slug, environmentId, ac
|
|
|
5167
5378
|
/**
|
|
5168
5379
|
* Delete connection interface attributes by environment.
|
|
5169
5380
|
*/
|
|
5170
|
-
export function
|
|
5381
|
+
export function connectionInterfaceControllerdeleteConnectionInterfaceAttributesFromEnvironment({ workspaceId, slug, environmentId }: {
|
|
5171
5382
|
workspaceId: string;
|
|
5172
5383
|
slug: string;
|
|
5173
5384
|
environmentId: string;
|
|
@@ -5199,7 +5410,7 @@ export function deleteConnectionInterfaceAttributesFromEnvironment({ workspaceId
|
|
|
5199
5410
|
/**
|
|
5200
5411
|
* Delete an account workflow.
|
|
5201
5412
|
*/
|
|
5202
|
-
export function
|
|
5413
|
+
export function workflowAccountControllerdeleteAccountWorkflow({ workflowId }: {
|
|
5203
5414
|
workflowId: string;
|
|
5204
5415
|
}, opts?: Oazapfts.RequestOpts) {
|
|
5205
5416
|
return oazapfts.ok(oazapfts.fetchJson<{
|