@fusebase/fusebase-gate-sdk 2.2.2-sdk.0 → 2.2.2-sdk.2
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 +22 -0
- package/dist/apis/AccessApi.js +29 -0
- package/dist/apis/PortalsApi.d.ts +22 -0
- package/dist/apis/PortalsApi.js +29 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/types/access/access.d.ts +19 -0
- package/dist/types/access/access.js +2 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/org-user/org-user.d.ts +20 -1
- package/package.json +1 -1
- package/release-notes/2.2.2-sdk.2.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.2-sdk.0.md +0 -9
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Access API
|
|
3
|
+
*
|
|
4
|
+
* Generated from contract introspection
|
|
5
|
+
* Domain: access
|
|
6
|
+
*/
|
|
7
|
+
import type { Client } from "../runtime/transport";
|
|
8
|
+
import type { MyOrgAccessResponseContract, orgIdInPathRequired } from "../types";
|
|
9
|
+
export declare class AccessApi {
|
|
10
|
+
private client;
|
|
11
|
+
constructor(client: Client);
|
|
12
|
+
/**
|
|
13
|
+
* Get current user's organization access status
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
getMyOrgAccess(params: {
|
|
17
|
+
path: {
|
|
18
|
+
orgId: orgIdInPathRequired;
|
|
19
|
+
};
|
|
20
|
+
headers?: Record<string, string>;
|
|
21
|
+
}): Promise<MyOrgAccessResponseContract>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Access API
|
|
4
|
+
*
|
|
5
|
+
* Generated from contract introspection
|
|
6
|
+
* Domain: access
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AccessApi = void 0;
|
|
10
|
+
class AccessApi {
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get current user's organization access status
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
async getMyOrgAccess(params) {
|
|
19
|
+
return this.client.request({
|
|
20
|
+
method: "GET",
|
|
21
|
+
path: "/:orgId/me/access",
|
|
22
|
+
pathParams: params.path,
|
|
23
|
+
headers: params.headers,
|
|
24
|
+
opId: "getMyOrgAccess",
|
|
25
|
+
expectedContentType: "application/json",
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AccessApi = AccessApi;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Portals API
|
|
3
|
+
*
|
|
4
|
+
* Generated from contract introspection
|
|
5
|
+
* Domain: portals
|
|
6
|
+
*/
|
|
7
|
+
import type { Client } from "../runtime/transport";
|
|
8
|
+
import type { orgIdInPathRequired, OrgPortalListResponseContract } from "../types";
|
|
9
|
+
export declare class PortalsApi {
|
|
10
|
+
private client;
|
|
11
|
+
constructor(client: Client);
|
|
12
|
+
/**
|
|
13
|
+
* List organization portals
|
|
14
|
+
* Returns portals visible for the caller in the organization. Requires org.read and org access.
|
|
15
|
+
*/
|
|
16
|
+
listPortals(params: {
|
|
17
|
+
path: {
|
|
18
|
+
orgId: orgIdInPathRequired;
|
|
19
|
+
};
|
|
20
|
+
headers?: Record<string, string>;
|
|
21
|
+
}): Promise<OrgPortalListResponseContract>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Portals API
|
|
4
|
+
*
|
|
5
|
+
* Generated from contract introspection
|
|
6
|
+
* Domain: portals
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PortalsApi = void 0;
|
|
10
|
+
class PortalsApi {
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* List organization portals
|
|
16
|
+
* Returns portals visible for the caller in the organization. Requires org.read and org access.
|
|
17
|
+
*/
|
|
18
|
+
async listPortals(params) {
|
|
19
|
+
return this.client.request({
|
|
20
|
+
method: "GET",
|
|
21
|
+
path: "/:orgId/portals",
|
|
22
|
+
pathParams: params.path,
|
|
23
|
+
headers: params.headers,
|
|
24
|
+
opId: "listPortals",
|
|
25
|
+
expectedContentType: "application/json",
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.PortalsApi = PortalsApi;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export * from "./runtime";
|
|
7
7
|
export * from "./types";
|
|
8
|
+
export { AccessApi } from "./apis/AccessApi";
|
|
8
9
|
export { EmailsApi } from "./apis/EmailsApi";
|
|
9
10
|
export { HealthApi } from "./apis/HealthApi";
|
|
10
11
|
export { OrgUsersApi } from "./apis/OrgUsersApi";
|
|
12
|
+
export { PortalsApi } from "./apis/PortalsApi";
|
|
11
13
|
export { SystemApi } from "./apis/SystemApi";
|
|
12
14
|
export { TokensApi } from "./apis/TokensApi";
|
|
13
15
|
export { WorkspacesApi } from "./apis/WorkspacesApi";
|
package/dist/index.js
CHANGED
|
@@ -19,15 +19,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.OrgUsersApi = exports.HealthApi = exports.EmailsApi = void 0;
|
|
22
|
+
exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.HealthApi = exports.EmailsApi = exports.AccessApi = void 0;
|
|
23
23
|
__exportStar(require("./runtime"), exports);
|
|
24
24
|
__exportStar(require("./types"), exports);
|
|
25
|
+
var AccessApi_1 = require("./apis/AccessApi");
|
|
26
|
+
Object.defineProperty(exports, "AccessApi", { enumerable: true, get: function () { return AccessApi_1.AccessApi; } });
|
|
25
27
|
var EmailsApi_1 = require("./apis/EmailsApi");
|
|
26
28
|
Object.defineProperty(exports, "EmailsApi", { enumerable: true, get: function () { return EmailsApi_1.EmailsApi; } });
|
|
27
29
|
var HealthApi_1 = require("./apis/HealthApi");
|
|
28
30
|
Object.defineProperty(exports, "HealthApi", { enumerable: true, get: function () { return HealthApi_1.HealthApi; } });
|
|
29
31
|
var OrgUsersApi_1 = require("./apis/OrgUsersApi");
|
|
30
32
|
Object.defineProperty(exports, "OrgUsersApi", { enumerable: true, get: function () { return OrgUsersApi_1.OrgUsersApi; } });
|
|
33
|
+
var PortalsApi_1 = require("./apis/PortalsApi");
|
|
34
|
+
Object.defineProperty(exports, "PortalsApi", { enumerable: true, get: function () { return PortalsApi_1.PortalsApi; } });
|
|
31
35
|
var SystemApi_1 = require("./apis/SystemApi");
|
|
32
36
|
Object.defineProperty(exports, "SystemApi", { enumerable: true, get: function () { return SystemApi_1.SystemApi; } });
|
|
33
37
|
var TokensApi_1 = require("./apis/TokensApi");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type OrgMembershipStatus = "ready" | "none" | "expired" | "disabled";
|
|
2
|
+
export type OrgAccessSource = "owner" | "member" | "none";
|
|
3
|
+
export interface AuthenticatedUserSummaryContract {
|
|
4
|
+
id: number;
|
|
5
|
+
email?: string | null;
|
|
6
|
+
firstname?: string | null;
|
|
7
|
+
lastname?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface MyOrgAccessResponseContract {
|
|
10
|
+
authenticated: true;
|
|
11
|
+
orgId: string;
|
|
12
|
+
hasOrgAccess: boolean;
|
|
13
|
+
membershipStatus: OrgMembershipStatus;
|
|
14
|
+
source: OrgAccessSource;
|
|
15
|
+
role?: string | null;
|
|
16
|
+
expiresAt?: number | null;
|
|
17
|
+
memberTTL?: number | null;
|
|
18
|
+
user: AuthenticatedUserSummaryContract;
|
|
19
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Re-exports all Contract types used by the SDK
|
|
5
5
|
* Generated by SDK codegen
|
|
6
6
|
*/
|
|
7
|
+
export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } from "./access/access";
|
|
7
8
|
export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
|
|
8
|
-
export type { OrgInviteContract, OrgMagicLinkContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
|
|
9
|
+
export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
|
|
9
10
|
export * from "./shared/common";
|
|
10
11
|
export * from "./shared/enums";
|
|
11
12
|
export type { GetHealth200ResponseContract } from "./shared/health";
|
|
@@ -37,6 +37,11 @@ export interface OrgUserAddRequestContract {
|
|
|
37
37
|
encryptRole?: string | null;
|
|
38
38
|
fullName?: string;
|
|
39
39
|
memberTTL?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
* Optional portal domain/host. When combined with `workspaceId`,
|
|
42
|
+
* org-service creates a portal magic link instead of a regular invite.
|
|
43
|
+
* Without `workspaceId`, this remains an org invite email hint only.
|
|
44
|
+
*/
|
|
40
45
|
portalUrl?: string;
|
|
41
46
|
autoConfirmClientInvite?: boolean;
|
|
42
47
|
}
|
|
@@ -59,6 +64,20 @@ export interface OrgWorkspaceContract {
|
|
|
59
64
|
export interface OrgWorkspaceListResponseContract {
|
|
60
65
|
workspaces: OrgWorkspaceContract[];
|
|
61
66
|
}
|
|
67
|
+
export interface OrgPortalContract {
|
|
68
|
+
id: string;
|
|
69
|
+
orgId: string;
|
|
70
|
+
workspaceId: string;
|
|
71
|
+
domain: string;
|
|
72
|
+
status: string;
|
|
73
|
+
createdAt: number;
|
|
74
|
+
updatedAt: number;
|
|
75
|
+
lastPublishedAt?: number;
|
|
76
|
+
version: number;
|
|
77
|
+
}
|
|
78
|
+
export interface OrgPortalListResponseContract {
|
|
79
|
+
portals: OrgPortalContract[];
|
|
80
|
+
}
|
|
62
81
|
export interface OrgWorkspaceInviteContract {
|
|
63
82
|
workspaceId: string;
|
|
64
83
|
role: string;
|
|
@@ -99,7 +118,7 @@ export interface OrgUserAddResponseContract {
|
|
|
99
118
|
/**
|
|
100
119
|
* Target flow used by the endpoint.
|
|
101
120
|
*/
|
|
102
|
-
target: "org" | "workspace";
|
|
121
|
+
target: "org" | "workspace" | "portal";
|
|
103
122
|
/**
|
|
104
123
|
* org-service returns `invite` or `member` for org invites, and
|
|
105
124
|
* `invite`, `member`, or `link` for workspace-aware invites.
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.2-sdk.
|
|
1
|
+
# Release Notes 2.2.2-sdk.2
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.2-sdk.
|
|
5
|
-
- Generated at: 2026-03-
|
|
4
|
+
- Previous tag: `v2.2.2-sdk.2`
|
|
5
|
+
- Generated at: 2026-03-28T18:56:29.795Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|