@fusebase/fusebase-gate-sdk 2.3.25 → 2.3.28-sdk.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.
@@ -44,7 +44,7 @@ export declare class FusebaseAuthApi {
44
44
  }): Promise<FusebaseAuthLogoutResponseContract>;
45
45
  /**
46
46
  * Register a Fusebase user and add org membership
47
- * Protected AI App onboarding flow. Creates a Fusebase account through auth-form, then adds the newly created user to the path org with the requested role. Requires org.members.write and org access. This endpoint is for registration only; do not call it on login because that can overwrite or duplicate existing membership intent.
47
+ * Protected AI App onboarding flow. Creates a Fusebase account through auth-form, then adds the newly created user to the path org with the requested role. Requires org.members.write and org access. This endpoint is for registration only; do not call it on login because that can overwrite or duplicate existing membership intent. For trusted AI App signup flows, send `autoConfirmEmail=true` to create the account with the email already confirmed and skip the auth-form confirmation message.
48
48
  */
49
49
  registerFusebaseOrgMember(params: {
50
50
  path: {
@@ -55,7 +55,7 @@ export declare class FusebaseAuthApi {
55
55
  }): Promise<FusebaseAuthRegisterMemberResponseContract>;
56
56
  /**
57
57
  * Register a Fusebase user
58
- * Visitor-safe email/password Fusebase registration proxy for AI App auth. Forwards to auth-form `/auth/api/register` server-side and returns the Fusebase sessionId for the app backend to set as its own cookie. Does not add org membership.
58
+ * Visitor-safe email/password Fusebase registration proxy for AI App auth. Forwards to auth-form `/auth/api/register` server-side and returns the Fusebase sessionId for the app backend to set as its own cookie. Does not add org membership. For trusted AI App signup flows, send `autoConfirmEmail=true` to create the account with the email already confirmed and skip the auth-form confirmation message.
59
59
  */
60
60
  registerFusebaseUser(params: {
61
61
  headers?: Record<string, string>;
@@ -68,7 +68,7 @@ class FusebaseAuthApi {
68
68
  }
69
69
  /**
70
70
  * Register a Fusebase user and add org membership
71
- * Protected AI App onboarding flow. Creates a Fusebase account through auth-form, then adds the newly created user to the path org with the requested role. Requires org.members.write and org access. This endpoint is for registration only; do not call it on login because that can overwrite or duplicate existing membership intent.
71
+ * Protected AI App onboarding flow. Creates a Fusebase account through auth-form, then adds the newly created user to the path org with the requested role. Requires org.members.write and org access. This endpoint is for registration only; do not call it on login because that can overwrite or duplicate existing membership intent. For trusted AI App signup flows, send `autoConfirmEmail=true` to create the account with the email already confirmed and skip the auth-form confirmation message.
72
72
  */
73
73
  async registerFusebaseOrgMember(params) {
74
74
  return this.client.request({
@@ -83,7 +83,7 @@ class FusebaseAuthApi {
83
83
  }
84
84
  /**
85
85
  * Register a Fusebase user
86
- * Visitor-safe email/password Fusebase registration proxy for AI App auth. Forwards to auth-form `/auth/api/register` server-side and returns the Fusebase sessionId for the app backend to set as its own cookie. Does not add org membership.
86
+ * Visitor-safe email/password Fusebase registration proxy for AI App auth. Forwards to auth-form `/auth/api/register` server-side and returns the Fusebase sessionId for the app backend to set as its own cookie. Does not add org membership. For trusted AI App signup flows, send `autoConfirmEmail=true` to create the account with the email already confirmed and skip the auth-form confirmation message.
87
87
  */
88
88
  async registerFusebaseUser(params) {
89
89
  return this.client.request({
@@ -5,7 +5,7 @@
5
5
  * Domain: org-users
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { ClientAccountScheduledDeletionRequestContract, ClientAccountScheduledDeletionResponseContract, orgIdInPathRequired, OrgMemberIdInPathRequired, OrgMemberRemoveResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserListResponseContract, WorkspaceMemberIdInPathRequired, WorkspaceMemberRemoveResponseContract } from "../types";
8
+ import type { ClientAccountScheduledDeletionRequestContract, ClientAccountScheduledDeletionResponseContract, orgIdInPathRequired, OrgMemberRemoveResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserIdInPathRequired, OrgUserListResponseContract, OrgUserWorkspaceIdInPathRequired, WorkspaceMemberRemoveResponseContract } from "../types";
9
9
  export declare class OrgUsersApi {
10
10
  private client;
11
11
  constructor(client: Client);
@@ -32,34 +32,36 @@ export declare class OrgUsersApi {
32
32
  }): Promise<OrgUserListResponseContract>;
33
33
  /**
34
34
  * Remove organization member
35
- * Removes an organization member by org-service orgMember.globalId. Removing an org member also lets org-service clean up workspace and group memberships for that org. Requires org.members.write and org access.
35
+ * Removes an organization member by numeric userId. Gate resolves the internal orgMember.globalId before calling org-service, and org-service cleans up workspace/group memberships for that org. Requires org.members.write and org access.
36
36
  */
37
37
  removeOrgMember(params: {
38
38
  path: {
39
39
  orgId: orgIdInPathRequired;
40
- orgMemberId: OrgMemberIdInPathRequired;
40
+ userId: OrgUserIdInPathRequired;
41
41
  };
42
42
  headers?: Record<string, string>;
43
43
  }): Promise<OrgMemberRemoveResponseContract>;
44
44
  /**
45
45
  * Remove portal member
46
- * Removes a portal member by the underlying workspaceMember.globalId. Portal membership is currently represented by workspace membership. Requires org.members.write and org access.
46
+ * Removes a portal member by the underlying workspaceId plus numeric userId. Portal membership is currently represented by workspace membership, so Gate resolves and deletes the workspace member. Requires org.members.write and org access.
47
47
  */
48
48
  removePortalMember(params: {
49
49
  path: {
50
50
  orgId: orgIdInPathRequired;
51
- workspaceMemberId: WorkspaceMemberIdInPathRequired;
51
+ workspaceId: OrgUserWorkspaceIdInPathRequired;
52
+ userId: OrgUserIdInPathRequired;
52
53
  };
53
54
  headers?: Record<string, string>;
54
55
  }): Promise<WorkspaceMemberRemoveResponseContract>;
55
56
  /**
56
57
  * Remove workspace member
57
- * Removes a workspace member by org-service workspaceMember.globalId. Requires org.members.write and org access.
58
+ * Removes a workspace member by workspaceId plus numeric userId. Gate resolves the internal workspaceMember.globalId before calling org-service. Requires org.members.write and org access.
58
59
  */
59
60
  removeWorkspaceMember(params: {
60
61
  path: {
61
62
  orgId: orgIdInPathRequired;
62
- workspaceMemberId: WorkspaceMemberIdInPathRequired;
63
+ workspaceId: OrgUserWorkspaceIdInPathRequired;
64
+ userId: OrgUserIdInPathRequired;
63
65
  };
64
66
  headers?: Record<string, string>;
65
67
  }): Promise<WorkspaceMemberRemoveResponseContract>;
@@ -42,12 +42,12 @@ class OrgUsersApi {
42
42
  }
43
43
  /**
44
44
  * Remove organization member
45
- * Removes an organization member by org-service orgMember.globalId. Removing an org member also lets org-service clean up workspace and group memberships for that org. Requires org.members.write and org access.
45
+ * Removes an organization member by numeric userId. Gate resolves the internal orgMember.globalId before calling org-service, and org-service cleans up workspace/group memberships for that org. Requires org.members.write and org access.
46
46
  */
47
47
  async removeOrgMember(params) {
48
48
  return this.client.request({
49
49
  method: "DELETE",
50
- path: "/:orgId/users/members/:orgMemberId",
50
+ path: "/:orgId/users/:userId",
51
51
  pathParams: params.path,
52
52
  headers: params.headers,
53
53
  opId: "removeOrgMember",
@@ -56,12 +56,12 @@ class OrgUsersApi {
56
56
  }
57
57
  /**
58
58
  * Remove portal member
59
- * Removes a portal member by the underlying workspaceMember.globalId. Portal membership is currently represented by workspace membership. Requires org.members.write and org access.
59
+ * Removes a portal member by the underlying workspaceId plus numeric userId. Portal membership is currently represented by workspace membership, so Gate resolves and deletes the workspace member. Requires org.members.write and org access.
60
60
  */
61
61
  async removePortalMember(params) {
62
62
  return this.client.request({
63
63
  method: "DELETE",
64
- path: "/:orgId/users/portal-members/:workspaceMemberId",
64
+ path: "/:orgId/users/portals/:workspaceId/members/:userId",
65
65
  pathParams: params.path,
66
66
  headers: params.headers,
67
67
  opId: "removePortalMember",
@@ -70,12 +70,12 @@ class OrgUsersApi {
70
70
  }
71
71
  /**
72
72
  * Remove workspace member
73
- * Removes a workspace member by org-service workspaceMember.globalId. Requires org.members.write and org access.
73
+ * Removes a workspace member by workspaceId plus numeric userId. Gate resolves the internal workspaceMember.globalId before calling org-service. Requires org.members.write and org access.
74
74
  */
75
75
  async removeWorkspaceMember(params) {
76
76
  return this.client.request({
77
77
  method: "DELETE",
78
- path: "/:orgId/users/workspace-members/:workspaceMemberId",
78
+ path: "/:orgId/users/workspaces/:workspaceId/members/:userId",
79
79
  pathParams: params.path,
80
80
  headers: params.headers,
81
81
  opId: "removeWorkspaceMember",
@@ -22,6 +22,12 @@ export interface FusebaseAuthRegisterRequestContract {
22
22
  subscribe?: boolean;
23
23
  redirectPath?: string | null;
24
24
  tags?: string[];
25
+ /**
26
+ * When true, create the Fusebase account with its email already confirmed and
27
+ * suppress the auth-form email-confirmation message. Intended for trusted AI
28
+ * App registration flows where the app owns onboarding.
29
+ */
30
+ autoConfirmEmail?: boolean;
25
31
  }
26
32
  export interface FusebaseAuthRegisterResponseContract {
27
33
  status: "authenticated" | "challenge_required";
@@ -17,7 +17,7 @@ export * from "./mcp-manager/mcp-manager";
17
17
  export type { MeAuthContract, MeOrgGroupContract, MeResponseContract, MeScopeContract, MeUserContract } from "./me/me";
18
18
  export * from "./note/note";
19
19
  export * from "./org-group/org-group";
20
- export type { ClientAccountScheduledDeletionRequestContract, ClientAccountScheduledDeletionResponseContract, CreateWorkspaceRequestContract, OrgInviteContract, OrgMagicLinkContract, OrgMemberIdInPathRequired, OrgMemberRemoveResponseContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract, WorkspaceMemberIdInPathRequired, WorkspaceMemberRemoveResponseContract } from "./org-user/org-user";
20
+ export type { ClientAccountScheduledDeletionRequestContract, ClientAccountScheduledDeletionResponseContract, CreateWorkspaceRequestContract, OrgInviteContract, OrgMagicLinkContract, OrgMemberRemoveResponseContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserIdInPathRequired, OrgUserListResponseContract, OrgUserWorkspaceIdInPathRequired, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract, WorkspaceMemberRemoveResponseContract } from "./org-user/org-user";
21
21
  export * from "./orgs/orgs";
22
22
  export type { VerifyPortalFeatureContextTokenRequestContract, VerifyPortalFeatureContextTokenResponseContract } from "./portal-feature-context/portal-feature-context";
23
23
  export type { AddPortalAppPageRequestContract, AddPortalAppPageResponseContract, AddPortalBlockRequestContract, AddPortalBlockResponseContract, AddPortalNoteBlockRequestContract, AddPortalNoteBlockResponseContract, BulkInviteResultItemContract, BulkInviteToPortalRequestContract, BulkInviteToPortalResponseContract, BulkPortalInvitationContract, CreatePortalFolderRequestContract, CreatePortalFolderResponseContract, CreatePortalPageWithNoteRequestContract, CreatePortalPageWithNoteResponseContract, CreatePortalRequestContract, CreatePortalResponseContract, DuplicatePortalItemRequestContract, DuplicatePortalItemResponseContract, DuplicatePortalRequestContract, InvitePortalManagerRequestContract, InvitePortalManagerResponseContract, InviteToPortalRequestContract, InviteToPortalResponseContract, ListPortalContentResponseContract, PortalContentItemContract, PortalDetailContract, UpdatePortalAccessRequestContract, UpdatePortalAccessResponseContract, UpdatePortalCustomCodeRequestContract, UpdatePortalCustomCodeResponseContract, globalIdInPathRequired } from "./portals/portals";
@@ -6,8 +6,8 @@ export interface OrgUserContract {
6
6
  username?: string | null;
7
7
  role: string;
8
8
  }
9
- export type OrgMemberIdInPathRequired = string;
10
- export type WorkspaceMemberIdInPathRequired = string;
9
+ export type OrgUserIdInPathRequired = number;
10
+ export type OrgUserWorkspaceIdInPathRequired = string;
11
11
  export interface OrgUserListResponseContract {
12
12
  users: OrgUserContract[];
13
13
  }
@@ -145,11 +145,12 @@ export interface OrgUserAddResponseContract {
145
145
  }
146
146
  export interface OrgMemberRemoveResponseContract {
147
147
  ok: true;
148
- orgMemberId: string;
148
+ userId: number;
149
149
  }
150
150
  export interface WorkspaceMemberRemoveResponseContract {
151
151
  ok: true;
152
- workspaceMemberId: string;
152
+ userId: number;
153
+ workspaceId: string;
153
154
  }
154
155
  export interface ClientAccountScheduledDeletionRequestContract {
155
156
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.3.25",
3
+ "version": "2.3.28-sdk.1",
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.3.28-sdk.1
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.3.28-sdk.1`
5
+ - Generated at: 2026-07-06T11:24:32.041Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.3.25
1
+ # Release Notes 2.3.28-sdk.1
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.3.25`
5
- - Generated at: 2026-07-03T08:48:10.927Z
4
+ - Previous tag: `v2.3.28-sdk.1`
5
+ - Generated at: 2026-07-06T11:24:32.041Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,50 +0,0 @@
1
- # Release Notes 2.3.23
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.3.23`
5
- - Generated at: 2026-07-02T10:14:06.616Z
6
-
7
- ## Included Drafts
8
-
9
- - `docs/release-notes/2026-07-02-member-removal-client-deletion.md` - Member removal and client deletion scheduling
10
-
11
- ## Summary
12
-
13
- ### Member removal and client deletion scheduling
14
-
15
- Gate now exposes member-removal operations for organization, workspace, and portal membership, plus delayed Client account deletion scheduling.
16
-
17
-
18
- ## API / SDK Changes
19
-
20
- ### Member removal and client deletion scheduling
21
-
22
- - Added `removeOrgMember`.
23
- - Added `removeWorkspaceMember`.
24
- - Added `removePortalMember`.
25
- - Added `scheduleClientAccountDeletion`, which schedules delayed deletion only for Client-role org members.
26
-
27
-
28
- ## Consumer Impact
29
-
30
- ### Member removal and client deletion scheduling
31
-
32
- Consumers can remove org members by `orgMember.globalId`, remove workspace/portal members by `workspaceMember.globalId`, and schedule Client account deletion by numeric user id in the org context.
33
-
34
-
35
- ## Verification
36
-
37
- ### Member removal and client deletion scheduling
38
-
39
- - `npm test -- --runTestsByPath tests/unit/org-users-controller.test.ts`
40
- - `npm run build:sdk`
41
- - `npm run build`
42
- - `npm run mcp:skills:generate`
43
- - `npm run mcp:skills:validate`
44
-
45
-
46
- ## Follow-ups
47
-
48
- ### Member removal and client deletion scheduling
49
-
50
- - None.
@@ -1,9 +0,0 @@
1
- # Release Notes 2.3.25
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.3.25`
5
- - Generated at: 2026-07-03T08:48:10.927Z
6
-
7
- ## Included Drafts
8
-
9
- - None