@fusebase/fusebase-gate-sdk 2.2.2-sdk.0 → 2.2.2-sdk.10

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
+ * Access API
3
+ *
4
+ * Generated from contract introspection
5
+ * Domain: access
6
+ */
7
+ import type { Client } from "../runtime/transport";
8
+ import type { MyOrgAccessResponseContract, orgIdInPathRequired } from "../types";
9
+ export declare class AccessApi {
10
+ private client;
11
+ constructor(client: Client);
12
+ /**
13
+ * Get current user's organization access status
14
+ * Returns the authenticated user's access status for the specified organization. Unlike org-scoped read endpoints, this route is available before membership exists so clients can distinguish authenticated-but-not-provisioned users from signed-out users.
15
+ */
16
+ getMyOrgAccess(params: {
17
+ path: {
18
+ orgId: orgIdInPathRequired;
19
+ };
20
+ headers?: Record<string, string>;
21
+ }): Promise<MyOrgAccessResponseContract>;
22
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * Access API
4
+ *
5
+ * Generated from contract introspection
6
+ * Domain: access
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.AccessApi = void 0;
10
+ class AccessApi {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ /**
15
+ * Get current user's organization access status
16
+ * Returns the authenticated user's access status for the specified organization. Unlike org-scoped read endpoints, this route is available before membership exists so clients can distinguish authenticated-but-not-provisioned users from signed-out users.
17
+ */
18
+ async getMyOrgAccess(params) {
19
+ return this.client.request({
20
+ method: "GET",
21
+ path: "/:orgId/me/access",
22
+ pathParams: params.path,
23
+ headers: params.headers,
24
+ opId: "getMyOrgAccess",
25
+ expectedContentType: "application/json",
26
+ });
27
+ }
28
+ }
29
+ exports.AccessApi = AccessApi;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Notes API
3
+ *
4
+ * Generated from contract introspection
5
+ * Domain: notes
6
+ */
7
+ import type { Client } from "../runtime/transport";
8
+ import type { CreateWorkspaceNoteFolderRequestContract, CreateWorkspaceNoteFolderResponseContract, CreateWorkspaceNoteRequestContract, CreateWorkspaceNoteResponseContract, orgIdInPathRequired, WorkspaceIdInPathRequired, WorkspaceNoteContentResponseContract, WorkspaceNoteFolderListResponseContract, WorkspaceNoteIdInPathRequired, WorkspaceNoteListResponseContract, WorkspaceNoteParentIdInQueryOptional } from "../types";
9
+ export declare class NotesApi {
10
+ private client;
11
+ constructor(client: Client);
12
+ /**
13
+ * Create workspace note
14
+ * Creates a note in the requested workspace. When parentId is omitted, gate uses `default`. Optional initial text or html can be appended after creation.
15
+ */
16
+ createWorkspaceNote(params: {
17
+ path: {
18
+ orgId: orgIdInPathRequired;
19
+ workspaceId: WorkspaceIdInPathRequired;
20
+ };
21
+ headers?: Record<string, string>;
22
+ body: CreateWorkspaceNoteRequestContract;
23
+ }): Promise<CreateWorkspaceNoteResponseContract>;
24
+ /**
25
+ * Create workspace note folder
26
+ * Creates a folder in the requested workspace. When parentId is omitted, gate uses `default`.
27
+ */
28
+ createWorkspaceNoteFolder(params: {
29
+ path: {
30
+ orgId: orgIdInPathRequired;
31
+ workspaceId: WorkspaceIdInPathRequired;
32
+ };
33
+ headers?: Record<string, string>;
34
+ body: CreateWorkspaceNoteFolderRequestContract;
35
+ }): Promise<CreateWorkspaceNoteFolderResponseContract>;
36
+ /**
37
+ * Read workspace note
38
+ * Returns the note title, parent metadata, and md content for the requested workspace note.
39
+ */
40
+ getWorkspaceNote(params: {
41
+ path: {
42
+ orgId: orgIdInPathRequired;
43
+ workspaceId: WorkspaceIdInPathRequired;
44
+ noteId: WorkspaceNoteIdInPathRequired;
45
+ };
46
+ headers?: Record<string, string>;
47
+ }): Promise<WorkspaceNoteContentResponseContract>;
48
+ /**
49
+ * List workspace note folders
50
+ * Returns non-portal note folders for the requested workspace.
51
+ */
52
+ listWorkspaceNoteFolders(params: {
53
+ path: {
54
+ orgId: orgIdInPathRequired;
55
+ workspaceId: WorkspaceIdInPathRequired;
56
+ };
57
+ headers?: Record<string, string>;
58
+ }): Promise<WorkspaceNoteFolderListResponseContract>;
59
+ /**
60
+ * List workspace notes
61
+ * Returns non-portal notes for the requested workspace and parent folder. When parentId is omitted, gate defaults to the workspace default folder id `default`.
62
+ */
63
+ listWorkspaceNotes(params: {
64
+ path: {
65
+ orgId: orgIdInPathRequired;
66
+ workspaceId: WorkspaceIdInPathRequired;
67
+ };
68
+ query?: {
69
+ parentId?: WorkspaceNoteParentIdInQueryOptional;
70
+ };
71
+ headers?: Record<string, string>;
72
+ }): Promise<WorkspaceNoteListResponseContract>;
73
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ /**
3
+ * Notes API
4
+ *
5
+ * Generated from contract introspection
6
+ * Domain: notes
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.NotesApi = void 0;
10
+ class NotesApi {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ /**
15
+ * Create workspace note
16
+ * Creates a note in the requested workspace. When parentId is omitted, gate uses `default`. Optional initial text or html can be appended after creation.
17
+ */
18
+ async createWorkspaceNote(params) {
19
+ return this.client.request({
20
+ method: "POST",
21
+ path: "/:orgId/workspaces/:workspaceId/notes",
22
+ pathParams: params.path,
23
+ headers: params.headers,
24
+ body: params.body,
25
+ opId: "createWorkspaceNote",
26
+ expectedContentType: "application/json",
27
+ });
28
+ }
29
+ /**
30
+ * Create workspace note folder
31
+ * Creates a folder in the requested workspace. When parentId is omitted, gate uses `default`.
32
+ */
33
+ async createWorkspaceNoteFolder(params) {
34
+ return this.client.request({
35
+ method: "POST",
36
+ path: "/:orgId/workspaces/:workspaceId/notes/folders",
37
+ pathParams: params.path,
38
+ headers: params.headers,
39
+ body: params.body,
40
+ opId: "createWorkspaceNoteFolder",
41
+ expectedContentType: "application/json",
42
+ });
43
+ }
44
+ /**
45
+ * Read workspace note
46
+ * Returns the note title, parent metadata, and md content for the requested workspace note.
47
+ */
48
+ async getWorkspaceNote(params) {
49
+ return this.client.request({
50
+ method: "GET",
51
+ path: "/:orgId/workspaces/:workspaceId/notes/:noteId",
52
+ pathParams: params.path,
53
+ headers: params.headers,
54
+ opId: "getWorkspaceNote",
55
+ expectedContentType: "application/json",
56
+ });
57
+ }
58
+ /**
59
+ * List workspace note folders
60
+ * Returns non-portal note folders for the requested workspace.
61
+ */
62
+ async listWorkspaceNoteFolders(params) {
63
+ return this.client.request({
64
+ method: "GET",
65
+ path: "/:orgId/workspaces/:workspaceId/notes/folders",
66
+ pathParams: params.path,
67
+ headers: params.headers,
68
+ opId: "listWorkspaceNoteFolders",
69
+ expectedContentType: "application/json",
70
+ });
71
+ }
72
+ /**
73
+ * List workspace notes
74
+ * Returns non-portal notes for the requested workspace and parent folder. When parentId is omitted, gate defaults to the workspace default folder id `default`.
75
+ */
76
+ async listWorkspaceNotes(params) {
77
+ return this.client.request({
78
+ method: "GET",
79
+ path: "/:orgId/workspaces/:workspaceId/notes",
80
+ pathParams: params.path,
81
+ query: params.query,
82
+ headers: params.headers,
83
+ opId: "listWorkspaceNotes",
84
+ expectedContentType: "application/json",
85
+ });
86
+ }
87
+ }
88
+ exports.NotesApi = NotesApi;
@@ -11,7 +11,7 @@ export declare class OrgUsersApi {
11
11
  constructor(client: Client);
12
12
  /**
13
13
  * Add user to organization
14
- * Invites a user into the organization. Without workspaceId it performs an org invite. With workspaceId it performs a workspace-aware invite and can resolve `default` to the organization's default workspace. Requires org.members.write and org access.
14
+ * Invites a user into the organization. Without workspaceId it performs an org invite. With workspaceId it performs a workspace-aware invite and can resolve `default` to the organization's default workspace. For org-only instant client onboarding, send orgRole=`client` with autoConfirmClientInvite=`true`. A successful write does not prove that the current session already has org access; confirm access with getMyOrgAccess. Requires org.members.write and org access.
15
15
  */
16
16
  addOrgUser(params: {
17
17
  path: {
@@ -13,7 +13,7 @@ class OrgUsersApi {
13
13
  }
14
14
  /**
15
15
  * Add user to organization
16
- * Invites a user into the organization. Without workspaceId it performs an org invite. With workspaceId it performs a workspace-aware invite and can resolve `default` to the organization's default workspace. Requires org.members.write and org access.
16
+ * Invites a user into the organization. Without workspaceId it performs an org invite. With workspaceId it performs a workspace-aware invite and can resolve `default` to the organization's default workspace. For org-only instant client onboarding, send orgRole=`client` with autoConfirmClientInvite=`true`. A successful write does not prove that the current session already has org access; confirm access with getMyOrgAccess. Requires org.members.write and org access.
17
17
  */
18
18
  async addOrgUser(params) {
19
19
  return this.client.request({
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Portals API
3
+ *
4
+ * Generated from contract introspection
5
+ * Domain: portals
6
+ */
7
+ import type { Client } from "../runtime/transport";
8
+ import type { orgIdInPathRequired, OrgPortalListResponseContract } from "../types";
9
+ export declare class PortalsApi {
10
+ private client;
11
+ constructor(client: Client);
12
+ /**
13
+ * List organization portals
14
+ * Returns portals visible for the caller in the organization. Requires org.read and org access.
15
+ */
16
+ listPortals(params: {
17
+ path: {
18
+ orgId: orgIdInPathRequired;
19
+ };
20
+ headers?: Record<string, string>;
21
+ }): Promise<OrgPortalListResponseContract>;
22
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * Portals API
4
+ *
5
+ * Generated from contract introspection
6
+ * Domain: portals
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.PortalsApi = void 0;
10
+ class PortalsApi {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ /**
15
+ * List organization portals
16
+ * Returns portals visible for the caller in the organization. Requires org.read and org access.
17
+ */
18
+ async listPortals(params) {
19
+ return this.client.request({
20
+ method: "GET",
21
+ path: "/:orgId/portals",
22
+ pathParams: params.path,
23
+ headers: params.headers,
24
+ opId: "listPortals",
25
+ expectedContentType: "application/json",
26
+ });
27
+ }
28
+ }
29
+ exports.PortalsApi = PortalsApi;
@@ -5,10 +5,17 @@
5
5
  * Domain: system
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { ResolveOperationPermissionsRequestContract, ResolveOperationPermissionsResponseContract } from "../types";
8
+ import type { ListPermissionCatalogResponseContract, ResolveOperationPermissionsRequestContract, ResolveOperationPermissionsResponseContract } from "../types";
9
9
  export declare class SystemApi {
10
10
  private client;
11
11
  constructor(client: Client);
12
+ /**
13
+ * List all registered permissions
14
+ * Return the full permission catalog registered by the current service, including platform base permissions and service-owned permissions.
15
+ */
16
+ listPermissionCatalog(params: {
17
+ headers?: Record<string, string>;
18
+ }): Promise<ListPermissionCatalogResponseContract>;
12
19
  /**
13
20
  * Resolve required permissions for operations
14
21
  * Return the unique required permissions for a list of operation identifiers. Supports exact operation ids and sanitized MCP tool names. Public operations contribute no permission.
@@ -11,6 +11,19 @@ class SystemApi {
11
11
  constructor(client) {
12
12
  this.client = client;
13
13
  }
14
+ /**
15
+ * List all registered permissions
16
+ * Return the full permission catalog registered by the current service, including platform base permissions and service-owned permissions.
17
+ */
18
+ async listPermissionCatalog(params) {
19
+ return this.client.request({
20
+ method: "GET",
21
+ path: "/system/permissions/catalog",
22
+ headers: params.headers,
23
+ opId: "listPermissionCatalog",
24
+ expectedContentType: "application/json",
25
+ });
26
+ }
14
27
  /**
15
28
  * Resolve required permissions for operations
16
29
  * Return the unique required permissions for a list of operation identifiers. Supports exact operation ids and sanitized MCP tool names. Public operations contribute no permission.
package/dist/index.d.ts CHANGED
@@ -5,9 +5,12 @@
5
5
  */
6
6
  export * from "./runtime";
7
7
  export * from "./types";
8
+ export { AccessApi } from "./apis/AccessApi";
8
9
  export { EmailsApi } from "./apis/EmailsApi";
9
10
  export { HealthApi } from "./apis/HealthApi";
11
+ export { NotesApi } from "./apis/NotesApi";
10
12
  export { OrgUsersApi } from "./apis/OrgUsersApi";
13
+ export { PortalsApi } from "./apis/PortalsApi";
11
14
  export { SystemApi } from "./apis/SystemApi";
12
15
  export { TokensApi } from "./apis/TokensApi";
13
16
  export { WorkspacesApi } from "./apis/WorkspacesApi";
package/dist/index.js CHANGED
@@ -19,15 +19,21 @@ 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.OrgUsersApi = exports.HealthApi = exports.EmailsApi = void 0;
22
+ exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.NotesApi = exports.HealthApi = exports.EmailsApi = exports.AccessApi = void 0;
23
23
  __exportStar(require("./runtime"), exports);
24
24
  __exportStar(require("./types"), exports);
25
+ var AccessApi_1 = require("./apis/AccessApi");
26
+ Object.defineProperty(exports, "AccessApi", { enumerable: true, get: function () { return AccessApi_1.AccessApi; } });
25
27
  var EmailsApi_1 = require("./apis/EmailsApi");
26
28
  Object.defineProperty(exports, "EmailsApi", { enumerable: true, get: function () { return EmailsApi_1.EmailsApi; } });
27
29
  var HealthApi_1 = require("./apis/HealthApi");
28
30
  Object.defineProperty(exports, "HealthApi", { enumerable: true, get: function () { return HealthApi_1.HealthApi; } });
31
+ var NotesApi_1 = require("./apis/NotesApi");
32
+ Object.defineProperty(exports, "NotesApi", { enumerable: true, get: function () { return NotesApi_1.NotesApi; } });
29
33
  var OrgUsersApi_1 = require("./apis/OrgUsersApi");
30
34
  Object.defineProperty(exports, "OrgUsersApi", { enumerable: true, get: function () { return OrgUsersApi_1.OrgUsersApi; } });
35
+ var PortalsApi_1 = require("./apis/PortalsApi");
36
+ Object.defineProperty(exports, "PortalsApi", { enumerable: true, get: function () { return PortalsApi_1.PortalsApi; } });
31
37
  var SystemApi_1 = require("./apis/SystemApi");
32
38
  Object.defineProperty(exports, "SystemApi", { enumerable: true, get: function () { return SystemApi_1.SystemApi; } });
33
39
  var TokensApi_1 = require("./apis/TokensApi");
@@ -0,0 +1,19 @@
1
+ export type OrgMembershipStatus = "ready" | "none" | "expired" | "disabled";
2
+ export type OrgAccessSource = "owner" | "member" | "none";
3
+ export interface AuthenticatedUserSummaryContract {
4
+ id: number;
5
+ email?: string | null;
6
+ firstname?: string | null;
7
+ lastname?: string | null;
8
+ }
9
+ export interface MyOrgAccessResponseContract {
10
+ authenticated: true;
11
+ orgId: string;
12
+ hasOrgAccess: boolean;
13
+ membershipStatus: OrgMembershipStatus;
14
+ source: OrgAccessSource;
15
+ role?: string | null;
16
+ expiresAt?: number | null;
17
+ memberTTL?: number | null;
18
+ user: AuthenticatedUserSummaryContract;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,8 +4,10 @@
4
4
  * Re-exports all Contract types used by the SDK
5
5
  * Generated by SDK codegen
6
6
  */
7
+ export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } from "./access/access";
7
8
  export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
8
- export type { OrgInviteContract, OrgMagicLinkContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
9
+ export * from "./note/note";
10
+ export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
9
11
  export * from "./shared/common";
10
12
  export * from "./shared/enums";
11
13
  export type { GetHealth200ResponseContract } from "./shared/health";
@@ -20,6 +20,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./note/note"), exports);
23
24
  __exportStar(require("./shared/common"), exports);
24
25
  __exportStar(require("./shared/enums"), exports);
25
26
  __exportStar(require("./system/system"), exports);
@@ -0,0 +1,59 @@
1
+ export type WorkspaceIdInPathRequired = string;
2
+ export type WorkspaceNoteIdInPathRequired = string;
3
+ export interface WorkspaceNoteSummaryContract {
4
+ globalId: string;
5
+ title?: string | null;
6
+ parentId?: string | null;
7
+ }
8
+ export interface WorkspaceNoteContentContract extends WorkspaceNoteSummaryContract {
9
+ md: string;
10
+ }
11
+ export interface WorkspaceNoteFolderListResponseContract {
12
+ folders: WorkspaceNoteSummaryContract[];
13
+ }
14
+ export interface WorkspaceNoteListResponseContract {
15
+ notes: WorkspaceNoteSummaryContract[];
16
+ }
17
+ export interface WorkspaceNoteContentResponseContract {
18
+ note: WorkspaceNoteContentContract;
19
+ }
20
+ export type WorkspaceNoteParentIdInQueryOptional = string | null;
21
+ export type WorkspaceNoteContentFormatContract = "text" | "html";
22
+ export interface WorkspaceNoteListQueryContract {
23
+ /**
24
+ * Folder global id to list notes from. When omitted, gate defaults to `default`.
25
+ */
26
+ parentId?: WorkspaceNoteParentIdInQueryOptional;
27
+ }
28
+ export interface CreateWorkspaceNoteFolderRequestContract {
29
+ title: string;
30
+ /**
31
+ * Parent folder global id. Defaults to `default`.
32
+ */
33
+ parentId?: string | null;
34
+ }
35
+ export interface CreateWorkspaceNoteFolderResponseContract {
36
+ folder: WorkspaceNoteSummaryContract;
37
+ }
38
+ export interface CreateWorkspaceNoteRequestContract {
39
+ title: string;
40
+ /**
41
+ * Parent folder global id. Defaults to `default`.
42
+ */
43
+ parentId?: string | null;
44
+ /**
45
+ * Optional initial text or html appended to the note after creation.
46
+ */
47
+ content?: string | null;
48
+ /**
49
+ * Content format used with `content`. Defaults to `text`.
50
+ */
51
+ format?: WorkspaceNoteContentFormatContract | null;
52
+ }
53
+ export interface CreateWorkspaceNoteResponseContract {
54
+ note: WorkspaceNoteSummaryContract;
55
+ }
56
+ export declare const WorkspaceNoteContentFormatContract: {
57
+ readonly Text: "text";
58
+ readonly Html: "html";
59
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceNoteContentFormatContract = void 0;
4
+ exports.WorkspaceNoteContentFormatContract = {
5
+ Text: "text",
6
+ Html: "html"
7
+ };
@@ -37,7 +37,17 @@ export interface OrgUserAddRequestContract {
37
37
  encryptRole?: string | null;
38
38
  fullName?: string;
39
39
  memberTTL?: number | null;
40
+ /**
41
+ * Optional portal domain/host. When combined with `workspaceId`,
42
+ * org-service creates a portal magic link instead of a regular invite.
43
+ * Without `workspaceId`, this remains an org invite email hint only.
44
+ */
40
45
  portalUrl?: string;
46
+ /**
47
+ * Org-only shortcut for instant client onboarding without invite
48
+ * confirmation. Valid only when `orgRole` is `client` and `workspaceId`
49
+ * is omitted.
50
+ */
41
51
  autoConfirmClientInvite?: boolean;
42
52
  }
43
53
  export interface OrgInviteContract {
@@ -59,6 +69,20 @@ export interface OrgWorkspaceContract {
59
69
  export interface OrgWorkspaceListResponseContract {
60
70
  workspaces: OrgWorkspaceContract[];
61
71
  }
72
+ export interface OrgPortalContract {
73
+ id: string;
74
+ orgId: string;
75
+ workspaceId: string;
76
+ domain: string;
77
+ status: string;
78
+ createdAt: number;
79
+ updatedAt: number;
80
+ lastPublishedAt?: number;
81
+ version: number;
82
+ }
83
+ export interface OrgPortalListResponseContract {
84
+ portals: OrgPortalContract[];
85
+ }
62
86
  export interface OrgWorkspaceInviteContract {
63
87
  workspaceId: string;
64
88
  role: string;
@@ -99,10 +123,12 @@ export interface OrgUserAddResponseContract {
99
123
  /**
100
124
  * Target flow used by the endpoint.
101
125
  */
102
- target: "org" | "workspace";
126
+ target: "org" | "workspace" | "portal";
103
127
  /**
104
128
  * org-service returns `invite` or `member` for org invites, and
105
129
  * `invite`, `member`, or `link` for workspace-aware invites.
130
+ * `invite` means an invite exists; it is not proof that org access is
131
+ * already active for the current session.
106
132
  */
107
133
  result: "invite" | "member" | "link";
108
134
  orgInvite?: OrgInviteContract;
@@ -2,6 +2,14 @@ import type { PermissionContract } from "../shared/enums";
2
2
  export interface ResolveOperationPermissionsRequestContract {
3
3
  operations: string[];
4
4
  }
5
+ export interface ListPermissionCatalogResultContract {
6
+ permissions: PermissionContract[];
7
+ }
8
+ export interface ListPermissionCatalogResponseContract {
9
+ success: boolean;
10
+ message?: string | null;
11
+ data: ListPermissionCatalogResultContract;
12
+ }
5
13
  export type OperationPermissionMatchTypeContract = "operation_id" | "mcp_tool_name";
6
14
  export interface ResolvedOperationPermissionContract {
7
15
  requested: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.2-sdk.0",
3
+ "version": "2.2.2-sdk.10",
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.2-sdk.10
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.2-sdk.10`
5
+ - Generated at: 2026-03-31T15:09:49.545Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.2-sdk.0
1
+ # Release Notes 2.2.2-sdk.10
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.0`
5
- - Generated at: 2026-03-27T15:41:03.322Z
4
+ - Previous tag: `v2.2.2-sdk.10`
5
+ - Generated at: 2026-03-31T15:09:49.545Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.2-sdk.0
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.0`
5
- - Generated at: 2026-03-27T15:41:03.322Z
6
-
7
- ## Included Drafts
8
-
9
- - None