@fusebase/fusebase-gate-sdk 2.2.2-sdk.1 → 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.
@@ -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;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@
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";
package/dist/index.js CHANGED
@@ -19,9 +19,11 @@ 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.PortalsApi = 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");
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@
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
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.2-sdk.1",
3
+ "version": "2.2.2-sdk.2",
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.2-sdk.2
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.2-sdk.2`
5
+ - Generated at: 2026-03-28T18:56:29.795Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.2-sdk.1
1
+ # Release Notes 2.2.2-sdk.2
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.1`
5
- - Generated at: 2026-03-27T16:03:26.172Z
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
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.2-sdk.1
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.1`
5
- - Generated at: 2026-03-27T16:03:26.172Z
6
-
7
- ## Included Drafts
8
-
9
- - None