@fusebase/fusebase-gate-sdk 2.2.4 → 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.2-sdk.41.md +0 -44
- package/release-notes/2.2.4.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,44 +0,0 @@
|
|
|
1
|
-
# Release Notes 2.2.2-sdk.41
|
|
2
|
-
|
|
3
|
-
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.2-sdk.40`
|
|
5
|
-
- Generated at: 2026-04-13T12:12:11.171Z
|
|
6
|
-
|
|
7
|
-
## Included Drafts
|
|
8
|
-
|
|
9
|
-
- `docs/release-notes/2026-04-13-sdk-build-feature-flags-env.md` - SDK Build Feature Flags From Env
|
|
10
|
-
|
|
11
|
-
## Summary
|
|
12
|
-
|
|
13
|
-
### SDK Build Feature Flags From Env
|
|
14
|
-
|
|
15
|
-
- Removed the SDK build-script bootstrap that mutated `FEATURE_FLAGS` at runtime.
|
|
16
|
-
- The SDK build now reads feature flags from `.env` / process env instead.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
## API / SDK Changes
|
|
20
|
-
|
|
21
|
-
### SDK Build Feature Flags From Env
|
|
22
|
-
|
|
23
|
-
- `scripts/build-sdk.mts` now loads `.env` (or `.env.test` when `NODE_ENV=test`) instead of injecting `isolated_stores` into `process.env.FEATURE_FLAGS`.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
## Consumer Impact
|
|
27
|
-
|
|
28
|
-
### SDK Build Feature Flags From Env
|
|
29
|
-
|
|
30
|
-
- Keep `FEATURE_FLAGS=isolated_stores` in `.env` or the shell environment before running `npm run build:sdk` or `npm run build:sdk:push` when isolated-store contracts and related SDK extras must be included.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## Verification
|
|
34
|
-
|
|
35
|
-
### SDK Build Feature Flags From Env
|
|
36
|
-
|
|
37
|
-
- `npm run build:sdk`
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## Follow-ups
|
|
41
|
-
|
|
42
|
-
### SDK Build Feature Flags From Env
|
|
43
|
-
|
|
44
|
-
- Keep local `.env`, CI, and release environments aligned for any SDK builds that need feature-flagged contracts.
|