@sublay/js 7.6.0 → 7.7.1
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/README.md +1 -1
- package/dist/index.d.mts +459 -55
- package/dist/index.d.ts +3 -0
- package/dist/index.js +232 -32
- package/dist/index.mjs +232 -32
- package/dist/interfaces/Report.d.ts +7 -1
- package/dist/interfaces/Space.d.ts +0 -16
- package/dist/interfaces/Workspace.d.ts +148 -0
- package/dist/modules/chat/editMessage.d.ts +3 -2
- package/dist/modules/chat/index.d.ts +0 -1
- package/dist/modules/collections/updateCollection.d.ts +1 -1
- package/dist/modules/comments/updateComment.d.ts +4 -1
- package/dist/modules/reports/createReport.d.ts +2 -2
- package/dist/modules/spaces/fetchUserSpaces.d.ts +6 -0
- package/dist/modules/spaces/index.d.ts +0 -2
- package/dist/modules/workspaces/acceptInvite.d.ts +13 -0
- package/dist/modules/workspaces/acceptWorkspaceInvite.d.ts +13 -0
- package/dist/modules/workspaces/createInvite.d.ts +17 -0
- package/dist/modules/workspaces/createWorkspace.d.ts +12 -0
- package/dist/modules/workspaces/createWorkspaceInvite.d.ts +17 -0
- package/dist/modules/workspaces/declineInvite.d.ts +12 -0
- package/dist/modules/workspaces/declineWorkspaceInvite.d.ts +14 -0
- package/dist/modules/workspaces/deleteWorkspace.d.ts +13 -0
- package/dist/modules/workspaces/fetchManyWorkspaces.d.ts +13 -0
- package/dist/modules/workspaces/fetchMembers.d.ts +13 -0
- package/dist/modules/workspaces/fetchMyInvites.d.ts +11 -0
- package/dist/modules/workspaces/fetchMyWorkspaceInvites.d.ts +15 -0
- package/dist/modules/workspaces/fetchWorkspace.d.ts +7 -0
- package/dist/modules/workspaces/fetchWorkspaceAuthority.d.ts +11 -0
- package/dist/modules/workspaces/fetchWorkspaceInvites.d.ts +17 -0
- package/dist/modules/workspaces/fetchWorkspaceMemberStanding.d.ts +11 -0
- package/dist/modules/workspaces/fetchWorkspaceMembers.d.ts +13 -0
- package/dist/modules/workspaces/getAuthority.d.ts +11 -0
- package/dist/modules/workspaces/index.d.ts +21 -0
- package/dist/modules/workspaces/leaveWorkspace.d.ts +11 -0
- package/dist/modules/workspaces/removeWorkspaceMember.d.ts +12 -0
- package/dist/modules/workspaces/removeWorkspaceMemberFromSubtree.d.ts +16 -0
- package/dist/modules/workspaces/resendWorkspaceInvite.d.ts +12 -0
- package/dist/modules/workspaces/revokeWorkspaceInvite.d.ts +13 -0
- package/dist/modules/workspaces/transferWorkspaceOwnership.d.ts +15 -0
- package/dist/modules/workspaces/updateWorkspace.d.ts +12 -0
- package/dist/modules/workspaces/updateWorkspaceInheritFlag.d.ts +13 -0
- package/dist/modules/workspaces/updateWorkspaceMember.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SublayHttpClient } from "../../core/client";
|
|
2
|
+
import { WorkspaceCapability, WorkspaceMember } from "../../interfaces/Workspace";
|
|
3
|
+
export interface UpdateWorkspaceMemberProps {
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
targetUserId: string;
|
|
6
|
+
capabilities?: WorkspaceCapability[];
|
|
7
|
+
permissions?: string[];
|
|
8
|
+
rank?: number;
|
|
9
|
+
title?: string | null;
|
|
10
|
+
metadata?: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Edit a member's grant / profile. Powerful fields need `edit-member-access`
|
|
14
|
+
* plus rank + no-escalation rules; cosmetic fields need only
|
|
15
|
+
* `edit-member-profile`. No `userId` is sent — the actor comes from the token.
|
|
16
|
+
*/
|
|
17
|
+
export declare function updateWorkspaceMember(client: SublayHttpClient, data: UpdateWorkspaceMemberProps): Promise<WorkspaceMember>;
|