@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.
- package/dist/apis/AccessApi.d.ts +8 -1
- package/dist/apis/AccessApi.js +13 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/me/me.d.ts +24 -0
- package/dist/types/me/me.js +2 -0
- package/package.json +1 -1
- package/release-notes/2.2.5-sdk.1.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.5-sdk.0.md +0 -9
package/dist/apis/AccessApi.d.ts
CHANGED
|
@@ -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.
|
package/dist/apis/AccessApi.js
CHANGED
|
@@ -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.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.5-sdk.
|
|
1
|
+
# Release Notes 2.2.5-sdk.1
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.5-sdk.
|
|
5
|
-
- Generated at: 2026-04-
|
|
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
|
|