@fusebase/fusebase-gate-sdk 2.2.2-sdk.0 → 2.2.2-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/PortalsApi.d.ts +22 -0
- package/dist/apis/PortalsApi.js +29 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/org-user/org-user.d.ts +20 -1
- package/package.json +1 -1
- package/release-notes/2.2.2-sdk.1.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
|
+
* 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
|
@@ -8,6 +8,7 @@ export * from "./types";
|
|
|
8
8
|
export { EmailsApi } from "./apis/EmailsApi";
|
|
9
9
|
export { HealthApi } from "./apis/HealthApi";
|
|
10
10
|
export { OrgUsersApi } from "./apis/OrgUsersApi";
|
|
11
|
+
export { PortalsApi } from "./apis/PortalsApi";
|
|
11
12
|
export { SystemApi } from "./apis/SystemApi";
|
|
12
13
|
export { TokensApi } from "./apis/TokensApi";
|
|
13
14
|
export { WorkspacesApi } from "./apis/WorkspacesApi";
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ 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 = void 0;
|
|
23
23
|
__exportStar(require("./runtime"), exports);
|
|
24
24
|
__exportStar(require("./types"), exports);
|
|
25
25
|
var EmailsApi_1 = require("./apis/EmailsApi");
|
|
@@ -28,6 +28,8 @@ var HealthApi_1 = require("./apis/HealthApi");
|
|
|
28
28
|
Object.defineProperty(exports, "HealthApi", { enumerable: true, get: function () { return HealthApi_1.HealthApi; } });
|
|
29
29
|
var OrgUsersApi_1 = require("./apis/OrgUsersApi");
|
|
30
30
|
Object.defineProperty(exports, "OrgUsersApi", { enumerable: true, get: function () { return OrgUsersApi_1.OrgUsersApi; } });
|
|
31
|
+
var PortalsApi_1 = require("./apis/PortalsApi");
|
|
32
|
+
Object.defineProperty(exports, "PortalsApi", { enumerable: true, get: function () { return PortalsApi_1.PortalsApi; } });
|
|
31
33
|
var SystemApi_1 = require("./apis/SystemApi");
|
|
32
34
|
Object.defineProperty(exports, "SystemApi", { enumerable: true, get: function () { return SystemApi_1.SystemApi; } });
|
|
33
35
|
var TokensApi_1 = require("./apis/TokensApi");
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Generated by SDK codegen
|
|
6
6
|
*/
|
|
7
7
|
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";
|
|
8
|
+
export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
|
|
9
9
|
export * from "./shared/common";
|
|
10
10
|
export * from "./shared/enums";
|
|
11
11
|
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.1
|
|
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.1`
|
|
5
|
+
- Generated at: 2026-03-27T16:03:26.172Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|