@fusebase/fusebase-gate-sdk 2.2.2-sdk.8 → 2.2.2-sdk.9

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,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.
@@ -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.8",
3
+ "version": "2.2.2-sdk.9",
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.9
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.2-sdk.9`
5
+ - Generated at: 2026-03-31T14:50:15.029Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.2-sdk.8
1
+ # Release Notes 2.2.2-sdk.9
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.8`
5
- - Generated at: 2026-03-31T12:42:07.341Z
4
+ - Previous tag: `v2.2.2-sdk.9`
5
+ - Generated at: 2026-03-31T14:50:15.029Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.2-sdk.8
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.8`
5
- - Generated at: 2026-03-31T12:42:07.341Z
6
-
7
- ## Included Drafts
8
-
9
- - None