@fusebase/fusebase-gate-sdk 2.2.2-sdk.2 → 2.2.2-sdk.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.
@@ -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
+ };
@@ -43,6 +43,11 @@ export interface OrgUserAddRequestContract {
43
43
  * Without `workspaceId`, this remains an org invite email hint only.
44
44
  */
45
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
+ */
46
51
  autoConfirmClientInvite?: boolean;
47
52
  }
48
53
  export interface OrgInviteContract {
@@ -122,6 +127,8 @@ export interface OrgUserAddResponseContract {
122
127
  /**
123
128
  * org-service returns `invite` or `member` for org invites, and
124
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.
125
132
  */
126
133
  result: "invite" | "member" | "link";
127
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;
@@ -6,6 +6,7 @@ export interface CreateTokenRequestContract {
6
6
  resource_scope: ResourceScopeContract;
7
7
  name?: string | null;
8
8
  expires_at?: Date | null;
9
+ meta?: TokenMetaContract;
9
10
  }
10
11
  export interface CreateTokenResponseContract {
11
12
  success: boolean;
@@ -16,6 +17,7 @@ export interface CreateTokenResponseContract {
16
17
  name?: string | null;
17
18
  permissions: string[];
18
19
  expires_at?: Date | null;
20
+ meta?: TokenMetaContract;
19
21
  created_at: Date;
20
22
  };
21
23
  }
@@ -27,6 +29,13 @@ export interface ResourceScopeRuleContract {
27
29
  resource_type: string;
28
30
  ids: string[];
29
31
  }
32
+ export interface TokenMetaIssuerContract {
33
+ kind: string;
34
+ id: string;
35
+ }
36
+ export interface TokenMetaContract {
37
+ issuer?: TokenMetaIssuerContract;
38
+ }
30
39
  export interface RevokeTokenResponseContract {
31
40
  success: boolean;
32
41
  message: string;
@@ -36,6 +45,7 @@ export interface TokenContract {
36
45
  name?: string | null;
37
46
  permissions: PermissionContract[];
38
47
  scopes?: ScopeContract[];
48
+ meta?: TokenMetaContract;
39
49
  expires_at?: Date | null;
40
50
  last_used_at?: Date | null;
41
51
  created_at: Date;
@@ -54,4 +64,5 @@ export interface UpdateTokenRequestContract {
54
64
  name?: string | null;
55
65
  permissions?: PermissionContract[];
56
66
  expires_at?: Date | null;
67
+ meta?: TokenMetaContract;
57
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.2-sdk.2",
3
+ "version": "2.2.2-sdk.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",
@@ -0,0 +1,9 @@
1
+ # Release Notes 2.2.2-sdk.20
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.2-sdk.20`
5
+ - Generated at: 2026-04-04T12:36:32.417Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.2-sdk.2
1
+ # Release Notes 2.2.2-sdk.20
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.2`
5
- - Generated at: 2026-03-28T18:56:29.795Z
4
+ - Previous tag: `v2.2.2-sdk.20`
5
+ - Generated at: 2026-04-04T12:36:32.417Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.2-sdk.2
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.2`
5
- - Generated at: 2026-03-28T18:56:29.795Z
6
-
7
- ## Included Drafts
8
-
9
- - None