@fusebase/fusebase-gate-sdk 2.2.20-sdk.1 → 2.2.20

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.
@@ -5,7 +5,7 @@
5
5
  * Domain: portals
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { CreatePortalRequestContract, CreatePortalResponseContract, globalIdInPathRequired, orgIdInPathRequired, OrgPortalListResponseContract, PortalDetailContract } from "../types";
8
+ import type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, globalIdInPathRequired, orgIdInPathRequired, OrgPortalListResponseContract, PortalDetailContract } from "../types";
9
9
  export declare class PortalsApi {
10
10
  private client;
11
11
  constructor(client: Client);
@@ -20,6 +20,18 @@ export declare class PortalsApi {
20
20
  headers?: Record<string, string>;
21
21
  body: CreatePortalRequestContract;
22
22
  }): Promise<CreatePortalResponseContract>;
23
+ /**
24
+ * Duplicate an existing portal
25
+ * Creates a new portal as a full copy of an existing portal: settings, theme, menu structure, pages, and content blocks are all copied. Returns portal details. Status is 'ready' immediately for P_SUB domains; 'pending' for custom/CNAME domains or if content copy is still in progress. Requires org.write access.
26
+ */
27
+ duplicatePortal(params: {
28
+ path: {
29
+ orgId: orgIdInPathRequired;
30
+ portalId: globalIdInPathRequired;
31
+ };
32
+ headers?: Record<string, string>;
33
+ body: DuplicatePortalRequestContract;
34
+ }): Promise<CreatePortalResponseContract>;
23
35
  /**
24
36
  * Get portal details
25
37
  * Returns detailed information for a single portal by ID. Requires org.read access.
@@ -26,6 +26,21 @@ class PortalsApi {
26
26
  expectedContentType: "application/json",
27
27
  });
28
28
  }
29
+ /**
30
+ * Duplicate an existing portal
31
+ * Creates a new portal as a full copy of an existing portal: settings, theme, menu structure, pages, and content blocks are all copied. Returns portal details. Status is 'ready' immediately for P_SUB domains; 'pending' for custom/CNAME domains or if content copy is still in progress. Requires org.write access.
32
+ */
33
+ async duplicatePortal(params) {
34
+ return this.client.request({
35
+ method: "POST",
36
+ path: "/:orgId/portals/:portalId/duplicate",
37
+ pathParams: params.path,
38
+ headers: params.headers,
39
+ body: params.body,
40
+ opId: "duplicatePortal",
41
+ expectedContentType: "application/json",
42
+ });
43
+ }
29
44
  /**
30
45
  * Get portal details
31
46
  * Returns detailed information for a single portal by ID. Requires org.read access.
@@ -17,7 +17,7 @@ export type { MeAuthContract, MeOrgGroupContract, MeResponseContract, MeScopeCon
17
17
  export * from "./note/note";
18
18
  export * from "./org-group/org-group";
19
19
  export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
20
- export type { CreatePortalRequestContract, CreatePortalResponseContract, PortalDetailContract, globalIdInPathRequired } from "./portals/portals";
20
+ export type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, PortalDetailContract, globalIdInPathRequired } from "./portals/portals";
21
21
  export * from "./shared/common";
22
22
  export * from "./shared/enums";
23
23
  export type { GetHealth200ResponseContract } from "./shared/health";
@@ -1,5 +1,10 @@
1
1
  export type globalIdInPathRequired = string;
2
2
  export type PortalThemeKey = "light_purple" | "soft_light" | "quite_green" | "space_gray" | "carbon" | "oxford" | "ultramarine" | "milky_blue" | "shades_of_green" | "savvy_red" | "light_orange" | "light_blue" | "lemon_drop";
3
+ export interface DuplicatePortalRequestContract {
4
+ workspaceId: string;
5
+ domain: string;
6
+ name?: string;
7
+ }
3
8
  export interface CreatePortalRequestContract {
4
9
  workspaceId: string;
5
10
  domain: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.20-sdk.1",
3
+ "version": "2.2.20",
4
4
  "description": "TypeScript SDK for Fusebase Gate APIs - Generated from contract introspection",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,8 +1,8 @@
1
1
  # Release Notes 2.2.20-sdk.1
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.20-sdk.1`
5
- - Generated at: 2026-05-28T11:36:01.681Z
4
+ - Previous tag: `v2.2.20-sdk.0`
5
+ - Generated at: 2026-05-28T11:34:57.559Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -0,0 +1,9 @@
1
+ # Release Notes 2.2.20
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.20`
5
+ - Generated at: 2026-05-29T10:27:56.065Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.20-sdk.1
1
+ # Release Notes 2.2.20
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.20-sdk.1`
5
- - Generated at: 2026-05-28T11:36:01.681Z
4
+ - Previous tag: `v2.2.20`
5
+ - Generated at: 2026-05-29T10:27:56.065Z
6
6
 
7
7
  ## Included Drafts
8
8