@fusebase/fusebase-gate-sdk 2.2.21-sdk.12 → 2.2.21-sdk.13

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.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Orgs API
3
+ *
4
+ * Generated from contract introspection
5
+ * Domain: orgs
6
+ */
7
+ import type { Client } from "../runtime/transport";
8
+ import type { orgIdInPathRequired, OrgUrlResponseContract } from "../types";
9
+ export declare class OrgsApi {
10
+ private client;
11
+ constructor(client: Client);
12
+ /**
13
+ * Get organization URL
14
+ * Returns the canonical HTTPS base URL for the organization. When a custom CNAME domain is configured, the response uses that hostname; otherwise it uses the org subdomain on the environment Fusebase host (for example `https://{sub}.dev-thefusebase.com`). Requires org.read and org access.
15
+ */
16
+ getOrgUrl(params: {
17
+ path: {
18
+ orgId: orgIdInPathRequired;
19
+ };
20
+ headers?: Record<string, string>;
21
+ }): Promise<OrgUrlResponseContract>;
22
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * Orgs API
4
+ *
5
+ * Generated from contract introspection
6
+ * Domain: orgs
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.OrgsApi = void 0;
10
+ class OrgsApi {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ /**
15
+ * Get organization URL
16
+ * Returns the canonical HTTPS base URL for the organization. When a custom CNAME domain is configured, the response uses that hostname; otherwise it uses the org subdomain on the environment Fusebase host (for example `https://{sub}.dev-thefusebase.com`). Requires org.read and org access.
17
+ */
18
+ async getOrgUrl(params) {
19
+ return this.client.request({
20
+ method: "GET",
21
+ path: "/:orgId/url",
22
+ pathParams: params.path,
23
+ headers: params.headers,
24
+ opId: "getOrgUrl",
25
+ expectedContentType: "application/json",
26
+ });
27
+ }
28
+ }
29
+ exports.OrgsApi = OrgsApi;
@@ -5,7 +5,7 @@
5
5
  * Domain: portals
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, globalIdInPathRequired, InviteToPortalRequestContract, InviteToPortalResponseContract, orgIdInPathRequired, OrgPortalListResponseContract, PortalDetailContract } from "../types";
8
+ import type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, globalIdInPathRequired, InviteToPortalRequestContract, InviteToPortalResponseContract, ListPortalContentResponseContract, orgIdInPathRequired, OrgPortalListResponseContract, PortalDetailContract } from "../types";
9
9
  export declare class PortalsApi {
10
10
  private client;
11
11
  constructor(client: Client);
@@ -55,6 +55,17 @@ export declare class PortalsApi {
55
55
  headers?: Record<string, string>;
56
56
  body: InviteToPortalRequestContract;
57
57
  }): Promise<InviteToPortalResponseContract>;
58
+ /**
59
+ * List portal content (folders and pages)
60
+ * Returns the menu tree of a portal: folders, note pages, portal pages, and system items. Use this operation to discover existing content before creating new folders or pages. Item types match portal-service values: notesFolder, note, portalPage, home, link, etc. For items of type 'note', the noteId field contains the Fusebase note id. Requires portals.read access.
61
+ */
62
+ listPortalContent(params: {
63
+ path: {
64
+ orgId: orgIdInPathRequired;
65
+ portalId: globalIdInPathRequired;
66
+ };
67
+ headers?: Record<string, string>;
68
+ }): Promise<ListPortalContentResponseContract>;
58
69
  /**
59
70
  * List organization portals
60
71
  * Returns portals visible for the caller in the organization. Requires portals.read and org access.
@@ -70,6 +70,20 @@ class PortalsApi {
70
70
  expectedContentType: "application/json",
71
71
  });
72
72
  }
73
+ /**
74
+ * List portal content (folders and pages)
75
+ * Returns the menu tree of a portal: folders, note pages, portal pages, and system items. Use this operation to discover existing content before creating new folders or pages. Item types match portal-service values: notesFolder, note, portalPage, home, link, etc. For items of type 'note', the noteId field contains the Fusebase note id. Requires portals.read access.
76
+ */
77
+ async listPortalContent(params) {
78
+ return this.client.request({
79
+ method: "GET",
80
+ path: "/:orgId/portals/:portalId/content",
81
+ pathParams: params.path,
82
+ headers: params.headers,
83
+ opId: "listPortalContent",
84
+ expectedContentType: "application/json",
85
+ });
86
+ }
73
87
  /**
74
88
  * List organization portals
75
89
  * Returns portals visible for the caller in the organization. Requires portals.read and org access.
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export { McpManagerApi } from "./apis/McpManagerApi";
18
18
  export { NotesApi } from "./apis/NotesApi";
19
19
  export { OrgGroupsApi } from "./apis/OrgGroupsApi";
20
20
  export { OrgUsersApi } from "./apis/OrgUsersApi";
21
+ export { OrgsApi } from "./apis/OrgsApi";
21
22
  export { PortalsApi } from "./apis/PortalsApi";
22
23
  export { SystemApi } from "./apis/SystemApi";
23
24
  export { TokensApi } from "./apis/TokensApi";
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.OrgGroupsApi = exports.NotesApi = exports.McpManagerApi = exports.IsolatedStoresApi = exports.HealthApi = exports.FusebaseAuthApi = exports.FilesApi = exports.EmailsApi = exports.BillingApi = exports.AppMagicLinksApi = exports.AppApisApi = exports.AccessApi = void 0;
22
+ exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgsApi = exports.OrgUsersApi = exports.OrgGroupsApi = exports.NotesApi = exports.McpManagerApi = exports.IsolatedStoresApi = exports.HealthApi = exports.FusebaseAuthApi = exports.FilesApi = exports.EmailsApi = exports.BillingApi = exports.AppMagicLinksApi = exports.AppApisApi = exports.AccessApi = void 0;
23
23
  __exportStar(require("./runtime"), exports);
24
24
  __exportStar(require("./types"), exports);
25
25
  var AccessApi_1 = require("./apis/AccessApi");
@@ -48,6 +48,8 @@ var OrgGroupsApi_1 = require("./apis/OrgGroupsApi");
48
48
  Object.defineProperty(exports, "OrgGroupsApi", { enumerable: true, get: function () { return OrgGroupsApi_1.OrgGroupsApi; } });
49
49
  var OrgUsersApi_1 = require("./apis/OrgUsersApi");
50
50
  Object.defineProperty(exports, "OrgUsersApi", { enumerable: true, get: function () { return OrgUsersApi_1.OrgUsersApi; } });
51
+ var OrgsApi_1 = require("./apis/OrgsApi");
52
+ Object.defineProperty(exports, "OrgsApi", { enumerable: true, get: function () { return OrgsApi_1.OrgsApi; } });
51
53
  var PortalsApi_1 = require("./apis/PortalsApi");
52
54
  Object.defineProperty(exports, "PortalsApi", { enumerable: true, get: function () { return PortalsApi_1.PortalsApi; } });
53
55
  var SystemApi_1 = require("./apis/SystemApi");
@@ -17,7 +17,8 @@ export type { MeAuthContract, MeOrgGroupContract, MeResponseContract, MeScopeCon
17
17
  export * from "./note/note";
18
18
  export * from "./org-group/org-group";
19
19
  export type { CreateWorkspaceRequestContract, OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
20
- export type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, InviteToPortalRequestContract, InviteToPortalResponseContract, PortalDetailContract, globalIdInPathRequired } from "./portals/portals";
20
+ export * from "./orgs/orgs";
21
+ export type { CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalRequestContract, InviteToPortalRequestContract, InviteToPortalResponseContract, ListPortalContentResponseContract, PortalContentItemContract, PortalDetailContract, globalIdInPathRequired } from "./portals/portals";
21
22
  export * from "./shared/common";
22
23
  export * from "./shared/enums";
23
24
  export type { GetHealth200ResponseContract } from "./shared/health";
@@ -26,6 +26,7 @@ __exportStar(require("./isolated-store/isolated-store"), exports);
26
26
  __exportStar(require("./mcp-manager/mcp-manager"), exports);
27
27
  __exportStar(require("./note/note"), exports);
28
28
  __exportStar(require("./org-group/org-group"), exports);
29
+ __exportStar(require("./orgs/orgs"), exports);
29
30
  __exportStar(require("./shared/common"), exports);
30
31
  __exportStar(require("./shared/enums"), exports);
31
32
  __exportStar(require("./system/system"), exports);
@@ -0,0 +1,20 @@
1
+ export type OrgUrlKindContract = "cname" | "subdomain";
2
+ export interface OrgUrlResponseContract {
3
+ orgId: string;
4
+ /** Canonical HTTPS base URL for the organization (no trailing path). */
5
+ url: string;
6
+ /** Hostname used in `url` (custom CNAME domain or `{sub}.{fusebaseHost}`). */
7
+ host: string;
8
+ /** `cname` when the org uses a custom domain; otherwise `subdomain`. */
9
+ kind: OrgUrlKindContract;
10
+ /** Organization subdomain slug from org-service. */
11
+ sub: string;
12
+ /** Custom CNAME domain when configured; null for subdomain-only orgs. */
13
+ customDomain: string | null;
14
+ /** Org branding flag from org-service; does not change hostname resolution. */
15
+ domainShorter: boolean;
16
+ }
17
+ export declare const OrgUrlKindContract: {
18
+ readonly Cname: "cname";
19
+ readonly Subdomain: "subdomain";
20
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgUrlKindContract = void 0;
4
+ exports.OrgUrlKindContract = {
5
+ Cname: "cname",
6
+ Subdomain: "subdomain"
7
+ };
@@ -55,3 +55,21 @@ export interface InviteToPortalResponseContract {
55
55
  /** User ID in the system. */
56
56
  userId: number;
57
57
  }
58
+ export type PortalMenuItemType = "home" | "link" | "notesFolder" | "note" | "portalSection" | "portalProcess" | "portalPage" | "unknown" | "allPages" | "tasks" | "chat" | "folders" | "tags" | "portalFilesDashboard" | "filesManager" | "portalTasksDashboard" | "portalChatsDashboard";
59
+ export type PortalContentPositionType = "top" | "sidebar" | "footer";
60
+ export interface PortalContentItemContract {
61
+ id: string;
62
+ type: PortalMenuItemType;
63
+ name: string;
64
+ slug: string;
65
+ positionType: PortalContentPositionType;
66
+ index: number;
67
+ visible: boolean;
68
+ pageId?: string;
69
+ /** Only for type === 'note': id of the Fusebase note (from targetId). */
70
+ noteId?: string;
71
+ children: PortalContentItemContract[];
72
+ }
73
+ export interface ListPortalContentResponseContract {
74
+ items: PortalContentItemContract[];
75
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.21-sdk.12",
3
+ "version": "2.2.21-sdk.13",
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",
@@ -0,0 +1,9 @@
1
+ # Release Notes 2.2.21-sdk.13
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.21-sdk.13`
5
+ - Generated at: 2026-06-08T11:26:50.072Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.21-sdk.12
1
+ # Release Notes 2.2.21-sdk.13
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.21-sdk.12`
5
- - Generated at: 2026-06-05T05:01:45.099Z
4
+ - Previous tag: `v2.2.21-sdk.13`
5
+ - Generated at: 2026-06-08T11:26:50.072Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.21-sdk.12
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.21-sdk.12`
5
- - Generated at: 2026-06-05T05:01:45.099Z
6
-
7
- ## Included Drafts
8
-
9
- - None