@fusebase/fusebase-gate-sdk 2.2.5-sdk.0 → 2.2.5-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.
@@ -5,10 +5,17 @@
5
5
  * Domain: access
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { MyOrgAccessResponseContract, orgIdInPathRequired } from "../types";
8
+ import type { MeResponseContract, MyOrgAccessResponseContract, orgIdInPathRequired } from "../types";
9
9
  export declare class AccessApi {
10
10
  private client;
11
11
  constructor(client: Client);
12
+ /**
13
+ * Get current actor identity
14
+ * Returns current user identity details together with auth method and resolved permissions/scopes.
15
+ */
16
+ getMe(params: {
17
+ headers?: Record<string, string>;
18
+ }): Promise<MeResponseContract>;
12
19
  /**
13
20
  * Get current user's organization access status
14
21
  * 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.
@@ -11,6 +11,19 @@ class AccessApi {
11
11
  constructor(client) {
12
12
  this.client = client;
13
13
  }
14
+ /**
15
+ * Get current actor identity
16
+ * Returns current user identity details together with auth method and resolved permissions/scopes.
17
+ */
18
+ async getMe(params) {
19
+ return this.client.request({
20
+ method: "GET",
21
+ path: "/me",
22
+ headers: params.headers,
23
+ opId: "getMe",
24
+ expectedContentType: "application/json",
25
+ });
26
+ }
14
27
  /**
15
28
  * Get current user's organization access status
16
29
  * 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.
@@ -8,6 +8,7 @@ export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } fr
8
8
  export * from "./billing/billing";
9
9
  export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
10
10
  export * from "./isolated-store/isolated-store";
11
+ export type { MeAuthContract, MeOrgGroupContract, MeResponseContract, MeScopeContract, MeUserContract } from "./me/me";
11
12
  export * from "./note/note";
12
13
  export * from "./org-group/org-group";
13
14
  export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
@@ -0,0 +1,24 @@
1
+ export interface MeScopeContract {
2
+ scopeType: string;
3
+ scopeId: string;
4
+ }
5
+ export interface MeOrgGroupContract {
6
+ id: string;
7
+ name: string;
8
+ }
9
+ export interface MeUserContract {
10
+ id: number | null;
11
+ }
12
+ export interface MeAuthContract {
13
+ type: string;
14
+ source: string | null;
15
+ orgRole?: string | null;
16
+ orgGroups?: MeOrgGroupContract[];
17
+ permissions: string[];
18
+ scopes: MeScopeContract[];
19
+ }
20
+ export interface MeResponseContract {
21
+ authenticated: true;
22
+ user: MeUserContract;
23
+ auth: MeAuthContract;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.5-sdk.0",
3
+ "version": "2.2.5-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.2.5-sdk.1
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.5-sdk.1`
5
+ - Generated at: 2026-04-13T15:22:03.795Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.5-sdk.0
1
+ # Release Notes 2.2.5-sdk.1
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.5-sdk.0`
5
- - Generated at: 2026-04-13T12:48:26.376Z
4
+ - Previous tag: `v2.2.5-sdk.1`
5
+ - Generated at: 2026-04-13T15:22:03.795Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.5-sdk.0
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.5-sdk.0`
5
- - Generated at: 2026-04-13T12:48:26.376Z
6
-
7
- ## Included Drafts
8
-
9
- - None