@fusebase/fusebase-gate-sdk 2.2.2-sdk.1 → 2.2.2-sdk.11
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.
- package/dist/apis/AccessApi.d.ts +22 -0
- package/dist/apis/AccessApi.js +29 -0
- package/dist/apis/NotesApi.d.ts +73 -0
- package/dist/apis/NotesApi.js +88 -0
- package/dist/apis/OrgUsersApi.d.ts +1 -1
- package/dist/apis/OrgUsersApi.js +1 -1
- package/dist/apis/SystemApi.d.ts +8 -1
- package/dist/apis/SystemApi.js +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/types/access/access.d.ts +19 -0
- package/dist/types/access/access.js +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +1 -0
- package/dist/types/note/note.d.ts +59 -0
- package/dist/types/note/note.js +7 -0
- package/dist/types/org-user/org-user.d.ts +7 -0
- package/dist/types/system/system.d.ts +8 -0
- package/package.json +1 -1
- package/release-notes/2.2.2-sdk.11.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.2-sdk.1.md +0 -9
|
@@ -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: {
|
package/dist/apis/OrgUsersApi.js
CHANGED
|
@@ -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({
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -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.
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -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,8 +5,10 @@
|
|
|
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";
|
|
11
13
|
export { PortalsApi } from "./apis/PortalsApi";
|
|
12
14
|
export { SystemApi } from "./apis/SystemApi";
|
package/dist/index.js
CHANGED
|
@@ -19,13 +19,17 @@ 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.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; } });
|
|
31
35
|
var PortalsApi_1 = require("./apis/PortalsApi");
|
|
@@ -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
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
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";
|
|
9
|
+
export * from "./note/note";
|
|
8
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";
|
package/dist/types/index.js
CHANGED
|
@@ -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
|
+
};
|
|
@@ -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;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.2-sdk.
|
|
1
|
+
# Release Notes 2.2.2-sdk.11
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.2-sdk.
|
|
5
|
-
- Generated at: 2026-
|
|
4
|
+
- Previous tag: `v2.2.2-sdk.11`
|
|
5
|
+
- Generated at: 2026-04-02T04:43:34.869Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|