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