@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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.mts +459 -55
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.js +232 -32
  5. package/dist/index.mjs +232 -32
  6. package/dist/interfaces/Report.d.ts +7 -1
  7. package/dist/interfaces/Space.d.ts +0 -16
  8. package/dist/interfaces/Workspace.d.ts +148 -0
  9. package/dist/modules/chat/editMessage.d.ts +3 -2
  10. package/dist/modules/chat/index.d.ts +0 -1
  11. package/dist/modules/collections/updateCollection.d.ts +1 -1
  12. package/dist/modules/comments/updateComment.d.ts +4 -1
  13. package/dist/modules/reports/createReport.d.ts +2 -2
  14. package/dist/modules/spaces/fetchUserSpaces.d.ts +6 -0
  15. package/dist/modules/spaces/index.d.ts +0 -2
  16. package/dist/modules/workspaces/acceptInvite.d.ts +13 -0
  17. package/dist/modules/workspaces/acceptWorkspaceInvite.d.ts +13 -0
  18. package/dist/modules/workspaces/createInvite.d.ts +17 -0
  19. package/dist/modules/workspaces/createWorkspace.d.ts +12 -0
  20. package/dist/modules/workspaces/createWorkspaceInvite.d.ts +17 -0
  21. package/dist/modules/workspaces/declineInvite.d.ts +12 -0
  22. package/dist/modules/workspaces/declineWorkspaceInvite.d.ts +14 -0
  23. package/dist/modules/workspaces/deleteWorkspace.d.ts +13 -0
  24. package/dist/modules/workspaces/fetchManyWorkspaces.d.ts +13 -0
  25. package/dist/modules/workspaces/fetchMembers.d.ts +13 -0
  26. package/dist/modules/workspaces/fetchMyInvites.d.ts +11 -0
  27. package/dist/modules/workspaces/fetchMyWorkspaceInvites.d.ts +15 -0
  28. package/dist/modules/workspaces/fetchWorkspace.d.ts +7 -0
  29. package/dist/modules/workspaces/fetchWorkspaceAuthority.d.ts +11 -0
  30. package/dist/modules/workspaces/fetchWorkspaceInvites.d.ts +17 -0
  31. package/dist/modules/workspaces/fetchWorkspaceMemberStanding.d.ts +11 -0
  32. package/dist/modules/workspaces/fetchWorkspaceMembers.d.ts +13 -0
  33. package/dist/modules/workspaces/getAuthority.d.ts +11 -0
  34. package/dist/modules/workspaces/index.d.ts +21 -0
  35. package/dist/modules/workspaces/leaveWorkspace.d.ts +11 -0
  36. package/dist/modules/workspaces/removeWorkspaceMember.d.ts +12 -0
  37. package/dist/modules/workspaces/removeWorkspaceMemberFromSubtree.d.ts +16 -0
  38. package/dist/modules/workspaces/resendWorkspaceInvite.d.ts +12 -0
  39. package/dist/modules/workspaces/revokeWorkspaceInvite.d.ts +13 -0
  40. package/dist/modules/workspaces/transferWorkspaceOwnership.d.ts +15 -0
  41. package/dist/modules/workspaces/updateWorkspace.d.ts +12 -0
  42. package/dist/modules/workspaces/updateWorkspaceInheritFlag.d.ts +13 -0
  43. package/dist/modules/workspaces/updateWorkspaceMember.d.ts +17 -0
  44. 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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sublay/js",
3
- "version": "7.6.0",
3
+ "version": "7.7.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [