@stack-spot/portal-network 0.58.0 → 0.58.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.58.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.58.0...portal-network@v0.58.1) (2024-12-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Updated workspace api ([#546](https://github.com/stack-spot/portal-commons/issues/546)) ([5fea4bd](https://github.com/stack-spot/portal-commons/commit/5fea4bd951d880a49eb4728516bda3112dcacc78))
9
+
3
10
  ## [0.58.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.57.0...portal-network@v0.58.0) (2024-12-09)
4
11
 
5
12
 
@@ -325,6 +325,29 @@ export type StackWorkflowCreateRequest = {
325
325
  actionsBefore: WorkflowActionContextRequest[];
326
326
  actionsAfter: WorkflowActionContextRequest[];
327
327
  };
328
+ export type WorkspaceResponse = {
329
+ /** Workspace id. */
330
+ id: string;
331
+ /** Workspace name */
332
+ name: string;
333
+ /** Workspace description */
334
+ description?: string;
335
+ /** Workspace image */
336
+ imageUrl?: string;
337
+ };
338
+ export type WorkspacePageResponse = {
339
+ currentPage: number;
340
+ pageSize: number;
341
+ lastPage: number;
342
+ totalItems: number;
343
+ totalPages: number;
344
+ items: WorkspaceResponse[];
345
+ };
346
+ export type GetWorkspacePageRequest = {
347
+ name?: string;
348
+ createdBy?: string;
349
+ favorites?: string[];
350
+ };
328
351
  export type GetSharedInfraRequestBody = {
329
352
  name?: string;
330
353
  stackVersionIds?: string[];
@@ -367,11 +390,12 @@ export type SharedInfraDetailsResponse = {
367
390
  /** Shared Infrastructure update date. */
368
391
  updatedAt: string;
369
392
  };
370
- export type SharedInfraPageResponse = {
393
+ export type WorkspaceSharedInfraPageResponse = {
371
394
  currentPage: number;
372
395
  pageSize: number;
373
396
  lastPage: number;
374
397
  totalItems: number;
398
+ totalPages: number;
375
399
  items: SharedInfraDetailsResponse[];
376
400
  };
377
401
  export type GetApplicationsRequestBody = {
@@ -406,11 +430,12 @@ export type ApplicationReadResponse = {
406
430
  /** Application update date. */
407
431
  updatedAt: string;
408
432
  };
409
- export type ApplicationPageResponse = {
433
+ export type WorkspaceApplicationPageResponse = {
410
434
  currentPage: number;
411
435
  pageSize: number;
412
436
  lastPage: number;
413
437
  totalItems: number;
438
+ totalPages: number;
414
439
  items: ApplicationReadResponse[];
415
440
  };
416
441
  export type EnvironmentSimpleResponse = {
@@ -424,16 +449,6 @@ export type TargetByPluginUsageResponse = {
424
449
  pluginVersionId: string;
425
450
  environment: EnvironmentSimpleResponse;
426
451
  };
427
- export type WorkspaceResponse = {
428
- /** Workspace id. */
429
- id: string;
430
- /** Workspace name */
431
- name: string;
432
- /** Workspace description */
433
- description?: string;
434
- /** Workspace image */
435
- imageUrl?: string;
436
- };
437
452
  export type PluginUsageByTargetResponse = {
438
453
  /** Application id. */
439
454
  id: string;
@@ -487,9 +502,24 @@ export type StackInWorkspaceReadResponse = {
487
502
  /** Account id. */
488
503
  accountId: string;
489
504
  };
505
+ export type StackVersionInfoRequest = {
506
+ /** Stack id. */
507
+ stackId: string;
508
+ /** Stack slug. */
509
+ stackSlug: string;
510
+ /** Stack display name. */
511
+ stackDisplayName: string;
512
+ /** Stack semantic version. */
513
+ stackVersionSemVer: string;
514
+ /** Studio id. */
515
+ studioId: string;
516
+ /** Studio slug. */
517
+ studioSlug: string;
518
+ };
490
519
  export type AddStackInWorkspaceRequest = {
491
520
  /** Stack version id. */
492
521
  stackVersionId: string;
522
+ stackVersionInfo: StackVersionInfoRequest;
493
523
  };
494
524
  export type StackVersionResponse = {
495
525
  stackVersionId: string;
@@ -881,6 +911,46 @@ export type StackUsageByWorkspaceResponse = {
881
911
  /** Stack Versions linked. */
882
912
  stackVersions: EnvironmentStackResponse[];
883
913
  };
914
+ export type GetAllSharedInfraRequestBody = {
915
+ favorites?: string[];
916
+ name?: string;
917
+ stackVersionIds?: string[];
918
+ };
919
+ export type SharedInfraWorkspaceReadResponse = {
920
+ /** Application id. */
921
+ id: string;
922
+ /** Shared Infra name. */
923
+ name: string;
924
+ /** Shared Infra description. */
925
+ description?: string;
926
+ /** Shared Infra repository url. */
927
+ repoUrl?: string;
928
+ /** Shared Infra repository base branch. */
929
+ repoBaseBranch: string;
930
+ /** Stack used to generate this Shared Infra. */
931
+ stackVersionId: string;
932
+ /** Starter used to generate this Shared Infra. */
933
+ starterId?: string;
934
+ /** Shared Infra status. */
935
+ status: string;
936
+ /** Shared Infra creator. */
937
+ createdBy: string;
938
+ /** Shared Infra creation date. */
939
+ createdAt: string;
940
+ /** Shared Infra updater. */
941
+ updatedBy: string;
942
+ /** Shared Infra update date. */
943
+ updatedAt: string;
944
+ workspace: WorkspaceReadResponse;
945
+ };
946
+ export type SharedInfraPageResponse = {
947
+ currentPage: number;
948
+ pageSize: number;
949
+ lastPage: number;
950
+ totalItems: number;
951
+ totalPages: number;
952
+ items: SharedInfraWorkspaceReadResponse[];
953
+ };
884
954
  export type PluginUsageAmountResponse = {
885
955
  pluginVersionId: string;
886
956
  totalUsedInInfras: number;
@@ -913,6 +983,46 @@ export type EnvironmentReadBatchResponse = {
913
983
  /** Environment name. */
914
984
  name: string;
915
985
  };
986
+ export type GetAllApplicationsRequestBody = {
987
+ favorites?: string[];
988
+ name?: string;
989
+ stackVersionIds?: string[];
990
+ };
991
+ export type ApplicationWorkspaceReadResponse = {
992
+ /** Application id. */
993
+ id: string;
994
+ /** Application name. */
995
+ name: string;
996
+ /** Application description. */
997
+ description?: string;
998
+ /** Application repository url. */
999
+ repoUrl?: string;
1000
+ /** Application repository base branch. */
1001
+ repoBaseBranch: string;
1002
+ /** Stack used to generate this application. */
1003
+ stackVersionId: string;
1004
+ /** Starter used to generate this application. */
1005
+ starterId: string;
1006
+ /** Application status. */
1007
+ status: string;
1008
+ /** Application creator. */
1009
+ createdBy: string;
1010
+ /** Application creation date. */
1011
+ createdAt: string;
1012
+ /** Application updater. */
1013
+ updatedBy: string;
1014
+ /** Application update date. */
1015
+ updatedAt: string;
1016
+ workspace: WorkspaceReadResponse;
1017
+ };
1018
+ export type ApplicationPageResponse = {
1019
+ currentPage: number;
1020
+ pageSize: number;
1021
+ lastPage: number;
1022
+ totalItems: number;
1023
+ totalPages: number;
1024
+ items: ApplicationWorkspaceReadResponse[];
1025
+ };
916
1026
  export type WorkflowResponse = {
917
1027
  id: string;
918
1028
  name: string;
@@ -1029,13 +1139,6 @@ export type EnvironmentUpdateRequest = {
1029
1139
  /** Environment description. */
1030
1140
  description?: string;
1031
1141
  };
1032
- export type WorkspacePageResponse = {
1033
- currentPage: number;
1034
- pageSize: number;
1035
- lastPage: number;
1036
- totalItems: number;
1037
- items: WorkspaceResponse[];
1038
- };
1039
1142
  export type PaginatedWorkspaceVariableResponse = {
1040
1143
  currentPage: number;
1041
1144
  pageSize: number;
@@ -1348,6 +1451,10 @@ export type WorkflowActionUsageResponse = {
1348
1451
  versionRanges: string[];
1349
1452
  };
1350
1453
  export type AccountVariableUsageResponse = {
1454
+ /** How many plugins are using this account variable */
1455
+ pluginsInUse: number;
1456
+ /** How many actions are using this account variable */
1457
+ actionsInUse: number;
1351
1458
  /** How many contexts are using this account variable */
1352
1459
  contextsInUse: number;
1353
1460
  };
@@ -1464,7 +1571,7 @@ export declare function workflowControlleraddWorkflowStepInWorkspace({ workspace
1464
1571
  /**
1465
1572
  * Update shared infrastructure status.
1466
1573
  */
1467
- export declare function sharedInfrastructureControllerupdateStatus({ workspaceId, sharedInfraId, updateSharedInfraStatusRequest }: {
1574
+ export declare function workspaceSharedInfrastructureControllerupdateStatus({ workspaceId, sharedInfraId, updateSharedInfraStatusRequest }: {
1468
1575
  workspaceId: string;
1469
1576
  sharedInfraId: string;
1470
1577
  updateSharedInfraStatusRequest: UpdateSharedInfraStatusRequest;
@@ -1529,7 +1636,7 @@ export declare function connectionInterfaceControllerupsertBatch({ workspaceId,
1529
1636
  /**
1530
1637
  * Update application status.
1531
1638
  */
1532
- export declare function applicationControllerupdateStatus({ workspaceId, applicationId, accountId, updateApplicationStatusRequest }: {
1639
+ export declare function workspaceApplicationControllerupdateStatus({ workspaceId, applicationId, accountId, updateApplicationStatusRequest }: {
1533
1640
  workspaceId: string;
1534
1641
  applicationId: string;
1535
1642
  accountId?: string;
@@ -1631,28 +1738,52 @@ export declare function workflowStackControllersaveStackWorkflowContext({ stackI
1631
1738
  workflowId: string;
1632
1739
  stackWorkflowCreateRequest: StackWorkflowCreateRequest;
1633
1740
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1741
+ /**
1742
+ * Get all workspaces without stack version and favorites filter
1743
+ */
1744
+ export declare function workspaceV2ControllergetWorkspacesWithoutStackFilter({ name, aclOnly, accountId, page, size, sortBy, sortDir }: {
1745
+ name?: string;
1746
+ aclOnly?: boolean;
1747
+ accountId?: string;
1748
+ page?: number;
1749
+ size?: number;
1750
+ sortBy?: "NAME" | "DESCRIPTION";
1751
+ sortDir?: "ASC" | "DESC";
1752
+ }, opts?: Oazapfts.RequestOpts): Promise<WorkspacePageResponse>;
1753
+ /**
1754
+ * Get all workspaces
1755
+ */
1756
+ export declare function workspaceV2ControllergetWorkspaces({ aclOnly, accountId, page, size, sortBy, sortDir, getWorkspacePageRequest }: {
1757
+ aclOnly?: boolean;
1758
+ accountId?: string;
1759
+ page?: number;
1760
+ size?: number;
1761
+ sortBy?: "NAME" | "DESCRIPTION";
1762
+ sortDir?: "ASC" | "DESC";
1763
+ getWorkspacePageRequest?: GetWorkspacePageRequest;
1764
+ }, opts?: Oazapfts.RequestOpts): Promise<WorkspacePageResponse>;
1634
1765
  /**
1635
1766
  * Get shared infra page.
1636
1767
  */
1637
- export declare function sharedInfrastructureV2ControllergetSharedInfra({ workspaceId, page, size, sortBy, sortDir, getSharedInfraRequestBody }: {
1768
+ export declare function workspaceSharedInfrastructureV2ControllergetSharedInfra({ workspaceId, page, size, sortBy, sortDir, getSharedInfraRequestBody }: {
1638
1769
  workspaceId: string;
1639
1770
  page?: number;
1640
1771
  size?: number;
1641
1772
  sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
1642
1773
  sortDir?: "ASC" | "DESC";
1643
1774
  getSharedInfraRequestBody?: GetSharedInfraRequestBody;
1644
- }, opts?: Oazapfts.RequestOpts): Promise<SharedInfraPageResponse>;
1775
+ }, opts?: Oazapfts.RequestOpts): Promise<WorkspaceSharedInfraPageResponse>;
1645
1776
  /**
1646
1777
  * Get applications from a workspace with pagination.
1647
1778
  */
1648
- export declare function applicationV2ControllergetApplications({ workspaceId, page, size, sortBy, sortDir, getApplicationsRequestBody }: {
1779
+ export declare function workspaceApplicationV2ControllergetApplications({ workspaceId, page, size, sortBy, sortDir, getApplicationsRequestBody }: {
1649
1780
  workspaceId: string;
1650
1781
  page?: number;
1651
1782
  size?: number;
1652
1783
  sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
1653
1784
  sortDir?: "ASC" | "DESC";
1654
1785
  getApplicationsRequestBody?: GetApplicationsRequestBody;
1655
- }, opts?: Oazapfts.RequestOpts): Promise<ApplicationPageResponse>;
1786
+ }, opts?: Oazapfts.RequestOpts): Promise<WorkspaceApplicationPageResponse>;
1656
1787
  /**
1657
1788
  * List specific shared infra or application usage by plugin list.
1658
1789
  */
@@ -1714,7 +1845,7 @@ export declare function workspaceStackControlleraddUpdateStack({ workspaceId, ad
1714
1845
  /**
1715
1846
  * Get all shared infrastructure of a workspace.
1716
1847
  */
1717
- export declare function sharedInfrastructureControllergetAllSharedInfrastructure({ workspaceId, name, stackVersionId }: {
1848
+ export declare function workspaceSharedInfrastructureControllergetAllSharedInfrastructure({ workspaceId, name, stackVersionId }: {
1718
1849
  workspaceId: string;
1719
1850
  name?: string;
1720
1851
  stackVersionId?: string;
@@ -1722,7 +1853,7 @@ export declare function sharedInfrastructureControllergetAllSharedInfrastructure
1722
1853
  /**
1723
1854
  * Create shared infrastructure in a workspace.
1724
1855
  */
1725
- export declare function sharedInfrastructureControllersave({ workspaceId, fromPortal, createSharedInfraRequest }: {
1856
+ export declare function workspaceSharedInfrastructureControllersave({ workspaceId, fromPortal, createSharedInfraRequest }: {
1726
1857
  workspaceId: string;
1727
1858
  fromPortal?: boolean;
1728
1859
  createSharedInfraRequest: CreateSharedInfraRequest;
@@ -1730,14 +1861,14 @@ export declare function sharedInfrastructureControllersave({ workspaceId, fromPo
1730
1861
  /**
1731
1862
  * Get shared infrastructure of a workspace.
1732
1863
  */
1733
- export declare function sharedInfrastructureControllergetSharedInfrastructure({ workspaceId, sharedInfraId }: {
1864
+ export declare function workspaceSharedInfrastructureControllergetSharedInfrastructure({ workspaceId, sharedInfraId }: {
1734
1865
  workspaceId: string;
1735
1866
  sharedInfraId: string;
1736
1867
  }, opts?: Oazapfts.RequestOpts): Promise<SharedInfraDetailsResponse>;
1737
1868
  /**
1738
1869
  * Recreate a shared infrastructure in a workspace.
1739
1870
  */
1740
- export declare function sharedInfrastructureControllerrecreate({ workspaceId, sharedInfraId, recreateSharedInfraRequest }: {
1871
+ export declare function workspaceSharedInfrastructureControllerrecreate({ workspaceId, sharedInfraId, recreateSharedInfraRequest }: {
1741
1872
  workspaceId: string;
1742
1873
  sharedInfraId: string;
1743
1874
  recreateSharedInfraRequest: RecreateSharedInfraRequest;
@@ -1745,14 +1876,14 @@ export declare function sharedInfrastructureControllerrecreate({ workspaceId, sh
1745
1876
  /**
1746
1877
  * Delete infrastructure in a workspace.
1747
1878
  */
1748
- export declare function sharedInfrastructureControllerdeleteSharedInfra({ workspaceId, sharedInfraId }: {
1879
+ export declare function workspaceSharedInfrastructureControllerdeleteSharedInfra({ workspaceId, sharedInfraId }: {
1749
1880
  workspaceId: string;
1750
1881
  sharedInfraId: string;
1751
1882
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1752
1883
  /**
1753
1884
  * Update shared infrastructure in a workspace.
1754
1885
  */
1755
- export declare function sharedInfrastructureControllerupdate({ workspaceId, sharedInfraId, updateSharedInfraRequest }: {
1886
+ export declare function workspaceSharedInfrastructureControllerupdate({ workspaceId, sharedInfraId, updateSharedInfraRequest }: {
1756
1887
  workspaceId: string;
1757
1888
  sharedInfraId: string;
1758
1889
  updateSharedInfraRequest: UpdateSharedInfraRequest;
@@ -1776,14 +1907,14 @@ export declare function sharedInfraLinkControllersave({ workspaceId, sharedInfra
1776
1907
  /**
1777
1908
  * Has active deploy with type self hosted?
1778
1909
  */
1779
- export declare function sharedInfrastructureControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, sharedInfraId }: {
1910
+ export declare function workspaceSharedInfrastructureControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, sharedInfraId }: {
1780
1911
  workspaceId: string;
1781
1912
  sharedInfraId: string;
1782
1913
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1783
1914
  /**
1784
1915
  * Can the shared infra be destroyed?
1785
1916
  */
1786
- export declare function sharedInfrastructureControllercanBeDestroyed({ workspaceId, sharedInfraId, environmentId, accountId }: {
1917
+ export declare function workspaceSharedInfrastructureControllercanBeDestroyed({ workspaceId, sharedInfraId, environmentId, accountId }: {
1787
1918
  workspaceId: string;
1788
1919
  sharedInfraId: string;
1789
1920
  environmentId: string;
@@ -1792,7 +1923,7 @@ export declare function sharedInfrastructureControllercanBeDestroyed({ workspace
1792
1923
  /**
1793
1924
  * Register the snapshot of a shared infrastructure's deploy.
1794
1925
  */
1795
- export declare function sharedInfrastructureControllerprocessDeploySnapshot({ workspaceId, sharedInfraId, sharedInfraDeploySnapshotRequest }: {
1926
+ export declare function workspaceSharedInfrastructureControllerprocessDeploySnapshot({ workspaceId, sharedInfraId, sharedInfraDeploySnapshotRequest }: {
1796
1927
  workspaceId: string;
1797
1928
  sharedInfraId: string;
1798
1929
  sharedInfraDeploySnapshotRequest: SharedInfraDeploySnapshotRequest;
@@ -1858,7 +1989,7 @@ export declare function connectionInterfaceControllerupdateConnectionInterfaceVi
1858
1989
  /**
1859
1990
  * Get all application of a workspace.
1860
1991
  */
1861
- export declare function applicationControllergetApplications({ workspaceId, name, stackVersionId }: {
1992
+ export declare function workspaceApplicationControllergetApplications({ workspaceId, name, stackVersionId }: {
1862
1993
  workspaceId: string;
1863
1994
  name?: string;
1864
1995
  stackVersionId?: string;
@@ -1866,7 +1997,7 @@ export declare function applicationControllergetApplications({ workspaceId, name
1866
1997
  /**
1867
1998
  * Create application on workspace.
1868
1999
  */
1869
- export declare function applicationControllersave({ workspaceId, fromPortal, createApplicationRequest }: {
2000
+ export declare function workspaceApplicationControllersave({ workspaceId, fromPortal, createApplicationRequest }: {
1870
2001
  workspaceId: string;
1871
2002
  fromPortal?: boolean;
1872
2003
  createApplicationRequest: CreateApplicationRequest;
@@ -1874,14 +2005,14 @@ export declare function applicationControllersave({ workspaceId, fromPortal, cre
1874
2005
  /**
1875
2006
  * Get application of a workspace.
1876
2007
  */
1877
- export declare function applicationControllergetApplication({ workspaceId, applicationId }: {
2008
+ export declare function workspaceApplicationControllergetApplication({ workspaceId, applicationId }: {
1878
2009
  workspaceId: string;
1879
2010
  applicationId: string;
1880
2011
  }, opts?: Oazapfts.RequestOpts): Promise<ApplicationReadResponse>;
1881
2012
  /**
1882
2013
  * Recreate an application in a workspace.
1883
2014
  */
1884
- export declare function applicationControllerrecreate({ workspaceId, applicationId, recreateApplicationRequest }: {
2015
+ export declare function workspaceApplicationControllerrecreate({ workspaceId, applicationId, recreateApplicationRequest }: {
1885
2016
  workspaceId: string;
1886
2017
  applicationId: string;
1887
2018
  recreateApplicationRequest: RecreateApplicationRequest;
@@ -1889,7 +2020,7 @@ export declare function applicationControllerrecreate({ workspaceId, application
1889
2020
  /**
1890
2021
  * Delete application of a workspace.
1891
2022
  */
1892
- export declare function applicationControllerdeleteApplication({ workspaceId, applicationId, accountId }: {
2023
+ export declare function workspaceApplicationControllerdeleteApplication({ workspaceId, applicationId, accountId }: {
1893
2024
  workspaceId: string;
1894
2025
  applicationId: string;
1895
2026
  accountId?: string;
@@ -1897,7 +2028,7 @@ export declare function applicationControllerdeleteApplication({ workspaceId, ap
1897
2028
  /**
1898
2029
  * Update an application of a workspace.
1899
2030
  */
1900
- export declare function applicationControllerupdate({ workspaceId, applicationId, updateApplicationRequest }: {
2031
+ export declare function workspaceApplicationControllerupdate({ workspaceId, applicationId, updateApplicationRequest }: {
1901
2032
  workspaceId: string;
1902
2033
  applicationId: string;
1903
2034
  updateApplicationRequest: UpdateApplicationRequest;
@@ -1921,26 +2052,26 @@ export declare function applicationLinkControllersave({ workspaceId, application
1921
2052
  /**
1922
2053
  * Has active deploy with type self hosted?
1923
2054
  */
1924
- export declare function applicationControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, applicationId }: {
2055
+ export declare function workspaceApplicationControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, applicationId }: {
1925
2056
  workspaceId: string;
1926
2057
  applicationId: string;
1927
2058
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1928
2059
  /**
1929
2060
  * Can the application be destroyed?
1930
2061
  */
1931
- export declare function applicationControllercanBeDestroyed({ workspaceId, applicationId, environmentId, accountId }: {
2062
+ export declare function workspaceApplicationControllercanBeDestroyed({ workspaceId, applicationId, environmentId, accountId }: {
1932
2063
  workspaceId: string;
1933
2064
  applicationId: string;
1934
2065
  environmentId: string;
1935
2066
  accountId: string;
1936
2067
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1937
- export declare function applicationControllerregistryAppDestroy({ workspaceId, applicationId, environmentId, applicationDestroyRequest }: {
2068
+ export declare function workspaceApplicationControllerregistryAppDestroy({ workspaceId, applicationId, environmentId, applicationDestroyRequest }: {
1938
2069
  workspaceId: string;
1939
2070
  applicationId: string;
1940
2071
  environmentId: string;
1941
2072
  applicationDestroyRequest: ApplicationDestroyRequest;
1942
2073
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
1943
- export declare function applicationControllerregistryAppDeploy({ workspaceId, applicationId, environmentId, applicationDeployRequest }: {
2074
+ export declare function workspaceApplicationControllerregistryAppDeploy({ workspaceId, applicationId, environmentId, applicationDeployRequest }: {
1944
2075
  workspaceId: string;
1945
2076
  applicationId: string;
1946
2077
  environmentId: string;
@@ -1965,7 +2096,7 @@ export declare function applicationEmbeddedLinkControllersave({ workspaceId, app
1965
2096
  /**
1966
2097
  * Register the snapshot of an application's deploy.
1967
2098
  */
1968
- export declare function applicationControllerprocessDeploySnapshot({ workspaceId, applicationId, applicationDeploySnapshotRequest }: {
2099
+ export declare function workspaceApplicationControllerprocessDeploySnapshot({ workspaceId, applicationId, applicationDeploySnapshotRequest }: {
1969
2100
  workspaceId: string;
1970
2101
  applicationId: string;
1971
2102
  applicationDeploySnapshotRequest: ApplicationDeploySnapshotRequest;
@@ -1977,6 +2108,16 @@ export declare function usageInsightsControllerlistAllStackUsage({ accountId, bo
1977
2108
  accountId: string;
1978
2109
  body: string[];
1979
2110
  }, opts?: Oazapfts.RequestOpts): Promise<StackUsageByWorkspaceResponse[]>;
2111
+ /**
2112
+ * Get plugins applied to a workspace's application.
2113
+ */
2114
+ export declare function accountSharedInfrastructureControllergetSharedInfraPage({ page, size, sortBy, sortDir, getAllSharedInfraRequestBody }: {
2115
+ page?: number;
2116
+ size?: number;
2117
+ sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
2118
+ sortDir?: "ASC" | "DESC";
2119
+ getAllSharedInfraRequestBody?: GetAllSharedInfraRequestBody;
2120
+ }, opts?: Oazapfts.RequestOpts): Promise<SharedInfraPageResponse>;
1980
2121
  /**
1981
2122
  * Retrieve the amount of apps and shared infras that use the given plugin version id list
1982
2123
  */
@@ -2003,6 +2144,16 @@ export declare function environmentControllersaveBatch({ accountId, body }: {
2003
2144
  accountId?: string;
2004
2145
  body: EnvironmentSaveRequest[];
2005
2146
  }, opts?: Oazapfts.RequestOpts): Promise<EnvironmentReadBatchResponse[]>;
2147
+ /**
2148
+ * Get plugins applied to a workspace's application.
2149
+ */
2150
+ export declare function accountApplicationControllergetApplicationPage({ page, size, sortBy, sortDir, getAllApplicationsRequestBody }: {
2151
+ page?: number;
2152
+ size?: number;
2153
+ sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
2154
+ sortDir?: "ASC" | "DESC";
2155
+ getAllApplicationsRequestBody?: GetAllApplicationsRequestBody;
2156
+ }, opts?: Oazapfts.RequestOpts): Promise<ApplicationPageResponse>;
2006
2157
  /**
2007
2158
  * List all workflows of an account.
2008
2159
  */
@@ -2195,7 +2346,7 @@ export declare function applicationEmbeddedLinkControllerupsertBatch({ workspace
2195
2346
  /**
2196
2347
  * Archive application from a workspace.
2197
2348
  */
2198
- export declare function applicationControllerarchiveApplication({ workspaceId, applicationId }: {
2349
+ export declare function workspaceApplicationControllerarchiveApplication({ workspaceId, applicationId }: {
2199
2350
  workspaceId: string;
2200
2351
  applicationId: string;
2201
2352
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
@@ -2212,18 +2363,6 @@ export declare function environmentControllerupdate({ id, environmentUpdateReque
2212
2363
  id: string;
2213
2364
  environmentUpdateRequest: EnvironmentUpdateRequest;
2214
2365
  }, opts?: Oazapfts.RequestOpts): Promise<IdResponse>;
2215
- /**
2216
- * Get all workspaces
2217
- */
2218
- export declare function workspaceV2ControllergetWorkspaces({ name, aclOnly, accountId, page, size, sortBy, sortDir }: {
2219
- name?: string;
2220
- aclOnly?: boolean;
2221
- accountId?: string;
2222
- page?: number;
2223
- size?: number;
2224
- sortBy?: "NAME" | "DESCRIPTION";
2225
- sortDir?: "ASC" | "DESC";
2226
- }, opts?: Oazapfts.RequestOpts): Promise<WorkspacePageResponse>;
2227
2366
  /**
2228
2367
  * Find all workspace variables
2229
2368
  */
@@ -2241,7 +2380,7 @@ export declare function workspaceVariableV2ControllerfindAll({ workspaceId, acco
2241
2380
  /**
2242
2381
  * Get plugins applied to a workspace's shared infrastructure.
2243
2382
  */
2244
- export declare function sharedInfrastructureV2ControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId }: {
2383
+ export declare function workspaceSharedInfrastructureV2ControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId }: {
2245
2384
  workspaceId: string;
2246
2385
  sharedInfraId: string;
2247
2386
  environmentId: string;
@@ -2266,7 +2405,7 @@ export declare function availableConnectionInterfaceV2ControllergetAvailableConn
2266
2405
  /**
2267
2406
  * Get plugins applied to a workspace's application.
2268
2407
  */
2269
- export declare function applicationV2ControllergetAppliedPlugins({ workspaceId, applicationId, environmentId }: {
2408
+ export declare function workspaceApplicationV2ControllergetAppliedPlugins({ workspaceId, applicationId, environmentId }: {
2270
2409
  workspaceId: string;
2271
2410
  applicationId: string;
2272
2411
  environmentId: string;
@@ -2340,7 +2479,7 @@ export declare function workflowWorkspaceControllerlistWorkflowByStackIdAndWorkf
2340
2479
  /**
2341
2480
  * Get plugins applied to a workspace's shared infrastructure.
2342
2481
  */
2343
- export declare function sharedInfrastructureControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId, $type }: {
2482
+ export declare function workspaceSharedInfrastructureControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId, $type }: {
2344
2483
  workspaceId: string;
2345
2484
  sharedInfraId: string;
2346
2485
  environmentId: string;
@@ -2349,7 +2488,7 @@ export declare function sharedInfrastructureControllergetAppliedPlugins({ worksp
2349
2488
  /**
2350
2489
  * List shared infrastructure's activities.
2351
2490
  */
2352
- export declare function sharedInfrastructureControllerlistActivities({ workspaceId, sharedInfraId, environmentId, $type, page, size }: {
2491
+ export declare function workspaceSharedInfrastructureControllerlistActivities({ workspaceId, sharedInfraId, environmentId, $type, page, size }: {
2353
2492
  workspaceId: string;
2354
2493
  sharedInfraId: string;
2355
2494
  environmentId: string;
@@ -2360,14 +2499,14 @@ export declare function sharedInfrastructureControllerlistActivities({ workspace
2360
2499
  /**
2361
2500
  * Get all in use connection interface dependencies from the shared infra.
2362
2501
  */
2363
- export declare function sharedInfrastructureControllergetDependencyTree({ workspaceId, sharedInfraId }: {
2502
+ export declare function workspaceSharedInfrastructureControllergetDependencyTree({ workspaceId, sharedInfraId }: {
2364
2503
  workspaceId: string;
2365
2504
  sharedInfraId: string;
2366
2505
  }, opts?: Oazapfts.RequestOpts): Promise<AppAndInfraDependencyResponse>;
2367
2506
  /**
2368
2507
  * Get stack version in use by shared infra in a workspace
2369
2508
  */
2370
- export declare function sharedInfrastructureControllergetStackVersionsInUse({ workspaceId }: {
2509
+ export declare function workspaceSharedInfrastructureControllergetStackVersionsInUse({ workspaceId }: {
2371
2510
  workspaceId: string;
2372
2511
  }, opts?: Oazapfts.RequestOpts): Promise<StacksVersionIdsResponse>;
2373
2512
  /**
@@ -2411,13 +2550,13 @@ export declare function availableConnectionInterfaceControllergetAvailableConnec
2411
2550
  /**
2412
2551
  * Get plugins applied to a workspace's application.
2413
2552
  */
2414
- export declare function applicationControllergetAppliedPlugins({ workspaceId, applicationId, environmentId, $type }: {
2553
+ export declare function workspaceApplicationControllergetAppliedPlugins({ workspaceId, applicationId, environmentId, $type }: {
2415
2554
  workspaceId: string;
2416
2555
  applicationId: string;
2417
2556
  environmentId: string;
2418
2557
  $type?: string;
2419
2558
  }, opts?: Oazapfts.RequestOpts): Promise<AppliedPluginResponse[]>;
2420
- export declare function applicationControllergetAppDeployInfo({ workspaceId, applicationId, environmentId, accountId, tenant }: {
2559
+ export declare function workspaceApplicationControllergetAppDeployInfo({ workspaceId, applicationId, environmentId, accountId, tenant }: {
2421
2560
  workspaceId: string;
2422
2561
  applicationId: string;
2423
2562
  environmentId: string;
@@ -2427,7 +2566,7 @@ export declare function applicationControllergetAppDeployInfo({ workspaceId, app
2427
2566
  /**
2428
2567
  * List application's activities.
2429
2568
  */
2430
- export declare function applicationControllerlistActivities({ workspaceId, applicationId, environmentId, $type, page, size }: {
2569
+ export declare function workspaceApplicationControllerlistActivities({ workspaceId, applicationId, environmentId, $type, page, size }: {
2431
2570
  workspaceId: string;
2432
2571
  applicationId: string;
2433
2572
  environmentId: string;
@@ -2438,14 +2577,14 @@ export declare function applicationControllerlistActivities({ workspaceId, appli
2438
2577
  /**
2439
2578
  * Get all in use connection interface dependencies from the application.
2440
2579
  */
2441
- export declare function applicationControllergetDependencyTree({ workspaceId, applicationId }: {
2580
+ export declare function workspaceApplicationControllergetDependencyTree({ workspaceId, applicationId }: {
2442
2581
  workspaceId: string;
2443
2582
  applicationId: string;
2444
2583
  }, opts?: Oazapfts.RequestOpts): Promise<AppAndInfraDependencyResponse>;
2445
2584
  /**
2446
2585
  * Can the application be destroyed?
2447
2586
  */
2448
- export declare function applicationControllercanBeDeleted({ workspaceId, applicationId, accountId, tenant }: {
2587
+ export declare function workspaceApplicationControllercanBeDeleted({ workspaceId, applicationId, accountId, tenant }: {
2449
2588
  workspaceId: string;
2450
2589
  applicationId: string;
2451
2590
  accountId: string;
@@ -2454,7 +2593,7 @@ export declare function applicationControllercanBeDeleted({ workspaceId, applica
2454
2593
  /**
2455
2594
  * Get stack version in use by applications in a workspace
2456
2595
  */
2457
- export declare function applicationControllergetStackVersionsInUse({ workspaceId }: {
2596
+ export declare function workspaceApplicationControllergetStackVersionsInUse({ workspaceId }: {
2458
2597
  workspaceId: string;
2459
2598
  }, opts?: Oazapfts.RequestOpts): Promise<StacksVersionIdsResponse>;
2460
2599
  /**
@@ -2467,7 +2606,7 @@ export declare function workspaceControllergetWorkspacesFromUserPermission({ res
2467
2606
  /**
2468
2607
  * Get shared infrastructure information by id.
2469
2608
  */
2470
- export declare function getSharedInfraControllergetSharedInfra({ id }: {
2609
+ export declare function accountSharedInfrastructureControllergetSharedInfra({ id }: {
2471
2610
  id: string;
2472
2611
  }, opts?: Oazapfts.RequestOpts): Promise<GetSharedInfraResponse>;
2473
2612
  /**
@@ -2479,20 +2618,22 @@ export declare function pluginInUseControllercheckPluginInUse({ pluginVersionId
2479
2618
  /**
2480
2619
  * Check availability of connection slug in account.
2481
2620
  */
2482
- export declare function checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability({ slug }: {
2621
+ export declare function checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability({ slug, applicationId, sharedInfraId }: {
2483
2622
  slug: string;
2623
+ applicationId?: string;
2624
+ sharedInfraId?: string;
2484
2625
  }, opts?: Oazapfts.RequestOpts): Promise<CheckConnectionSlugAvailabilityResponse>;
2485
2626
  /**
2486
2627
  * Get an application list by repo url.
2487
2628
  */
2488
- export declare function getApplicationControllergetApplicationsByUrl({ accountId, repoUrl }: {
2629
+ export declare function accountApplicationControllergetApplicationsByUrl({ accountId, repoUrl }: {
2489
2630
  accountId: string;
2490
2631
  repoUrl: string;
2491
2632
  }, opts?: Oazapfts.RequestOpts): Promise<ApplicationRepoUrlReadResponse[]>;
2492
2633
  /**
2493
2634
  * Get application information by id.
2494
2635
  */
2495
- export declare function getApplicationControllergetApplication({ id }: {
2636
+ export declare function accountApplicationControllergetApplication({ id }: {
2496
2637
  id: string;
2497
2638
  }, opts?: Oazapfts.RequestOpts): Promise<GetApplicationResponse>;
2498
2639
  /**
@@ -2550,6 +2691,12 @@ export declare function workflowStackControllerlistWorkflowsByStackId({ stackId
2550
2691
  * List all stacks with workflow by account.
2551
2692
  */
2552
2693
  export declare function accountStackControllerlistStacksWithWorkflow(opts?: Oazapfts.RequestOpts): Promise<StacksByAccountResponse>;
2694
+ /**
2695
+ * List all stacks that are most commonly used by applications and shared infrastructure.
2696
+ */
2697
+ export declare function accountStackControllerlistMostUsedStacks({ accountId }: {
2698
+ accountId: string;
2699
+ }, opts?: Oazapfts.RequestOpts): Promise<string[]>;
2553
2700
  /**
2554
2701
  * List all default workflows of an account.
2555
2702
  */