@fusebase/fusebase-gate-sdk 2.2.13-sdk.1 → 2.2.13-sdk.10

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,80 @@
1
+ /**
2
+ * McpManager API
3
+ *
4
+ * Generated from contract introspection
5
+ * Domain: mcp-manager
6
+ */
7
+ import type { Client } from "../runtime/transport";
8
+ import type { CallMcpManagerServerToolRequestContract, CallMcpManagerServerToolResponseContract, CreateMcpManagerServerFromTemplateRequestContract, InitiateMcpManagerAuthRequestContract, McpManagerAuthGlobalIdInPathRequired, McpManagerAuthResponseContract, McpManagerServerIdInPathRequired, McpManagerServerResponseContract, McpManagerTemplateIdInPathRequired, PublicMcpManagerAuthStatusResponseContract, TemplateContract, TemplatesListResponseContract, UpdateMcpManagerAuthRequestContract } from "../types";
9
+ export declare class McpManagerApi {
10
+ private client;
11
+ constructor(client: Client);
12
+ /**
13
+ * Call MCP manager server tool
14
+ * Calls a tool exposed by the selected MCP manager server with the provided arguments.
15
+ */
16
+ callMcpManagerServerTool(params: {
17
+ path: {
18
+ serverId: McpManagerServerIdInPathRequired;
19
+ };
20
+ headers?: Record<string, string>;
21
+ body: CallMcpManagerServerToolRequestContract;
22
+ }): Promise<CallMcpManagerServerToolResponseContract>;
23
+ /**
24
+ * Create MCP manager server from template
25
+ * Creates an MCP manager server from the selected template, scopes, channels, and optional overrides.
26
+ */
27
+ createMcpManagerServerFromTemplate(params: {
28
+ path: {
29
+ templateId: McpManagerTemplateIdInPathRequired;
30
+ };
31
+ headers?: Record<string, string>;
32
+ body: CreateMcpManagerServerFromTemplateRequestContract;
33
+ }): Promise<McpManagerServerResponseContract>;
34
+ /**
35
+ * Get MCP server template by id
36
+ * Returns a single MCP server template by id.
37
+ */
38
+ getMcpServerTemplate(params: {
39
+ path: {
40
+ templateId: McpManagerTemplateIdInPathRequired;
41
+ };
42
+ headers?: Record<string, string>;
43
+ }): Promise<TemplateContract>;
44
+ /**
45
+ * Get a list of MCP server templates
46
+ * Returns a list of templates that can be used to create a new MCP server
47
+ */
48
+ getMcpServerTemplates(params: {
49
+ headers?: Record<string, string>;
50
+ }): Promise<TemplatesListResponseContract>;
51
+ /**
52
+ * Initiate MCP manager auth
53
+ * Creates or initiates an MCP manager auth connection for the provided app, auth type, and scopes.
54
+ */
55
+ initiateMcpManagerAuth(params: {
56
+ headers?: Record<string, string>;
57
+ body: InitiateMcpManagerAuthRequestContract;
58
+ }): Promise<McpManagerAuthResponseContract>;
59
+ /**
60
+ * Public update MCP manager auth status
61
+ * Refetches an MCP manager auth by globalId using default refetch/autofill behavior and returns only auth status.
62
+ */
63
+ publicUpdateMcpManagerAuthStatus(params: {
64
+ path: {
65
+ globalId: McpManagerAuthGlobalIdInPathRequired;
66
+ };
67
+ headers?: Record<string, string>;
68
+ }): Promise<PublicMcpManagerAuthStatusResponseContract>;
69
+ /**
70
+ * Update MCP manager auth
71
+ * Updates an MCP manager auth connection by globalId, with optional refetch and name autofill behavior controlled by the request body.
72
+ */
73
+ updateMcpManagerAuth(params: {
74
+ path: {
75
+ globalId: McpManagerAuthGlobalIdInPathRequired;
76
+ };
77
+ headers?: Record<string, string>;
78
+ body: UpdateMcpManagerAuthRequestContract;
79
+ }): Promise<McpManagerAuthResponseContract>;
80
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /**
3
+ * McpManager API
4
+ *
5
+ * Generated from contract introspection
6
+ * Domain: mcp-manager
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.McpManagerApi = void 0;
10
+ class McpManagerApi {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ /**
15
+ * Call MCP manager server tool
16
+ * Calls a tool exposed by the selected MCP manager server with the provided arguments.
17
+ */
18
+ async callMcpManagerServerTool(params) {
19
+ return this.client.request({
20
+ method: "POST",
21
+ path: "/mcp-manager/servers/:serverId/tools/call",
22
+ pathParams: params.path,
23
+ headers: params.headers,
24
+ body: params.body,
25
+ opId: "callMcpManagerServerTool",
26
+ expectedContentType: "application/json",
27
+ });
28
+ }
29
+ /**
30
+ * Create MCP manager server from template
31
+ * Creates an MCP manager server from the selected template, scopes, channels, and optional overrides.
32
+ */
33
+ async createMcpManagerServerFromTemplate(params) {
34
+ return this.client.request({
35
+ method: "POST",
36
+ path: "/mcp-manager/servers/from-template/:templateId",
37
+ pathParams: params.path,
38
+ headers: params.headers,
39
+ body: params.body,
40
+ opId: "createMcpManagerServerFromTemplate",
41
+ expectedContentType: "application/json",
42
+ });
43
+ }
44
+ /**
45
+ * Get MCP server template by id
46
+ * Returns a single MCP server template by id.
47
+ */
48
+ async getMcpServerTemplate(params) {
49
+ return this.client.request({
50
+ method: "GET",
51
+ path: "/mcp-manager/templates/:templateId",
52
+ pathParams: params.path,
53
+ headers: params.headers,
54
+ opId: "getMcpServerTemplate",
55
+ expectedContentType: "application/json",
56
+ });
57
+ }
58
+ /**
59
+ * Get a list of MCP server templates
60
+ * Returns a list of templates that can be used to create a new MCP server
61
+ */
62
+ async getMcpServerTemplates(params) {
63
+ return this.client.request({
64
+ method: "GET",
65
+ path: "/mcp-manager/templates",
66
+ headers: params.headers,
67
+ opId: "getMcpServerTemplates",
68
+ expectedContentType: "application/json",
69
+ });
70
+ }
71
+ /**
72
+ * Initiate MCP manager auth
73
+ * Creates or initiates an MCP manager auth connection for the provided app, auth type, and scopes.
74
+ */
75
+ async initiateMcpManagerAuth(params) {
76
+ return this.client.request({
77
+ method: "POST",
78
+ path: "/mcp-manager/auth",
79
+ headers: params.headers,
80
+ body: params.body,
81
+ opId: "initiateMcpManagerAuth",
82
+ expectedContentType: "application/json",
83
+ });
84
+ }
85
+ /**
86
+ * Public update MCP manager auth status
87
+ * Refetches an MCP manager auth by globalId using default refetch/autofill behavior and returns only auth status.
88
+ */
89
+ async publicUpdateMcpManagerAuthStatus(params) {
90
+ return this.client.request({
91
+ method: "POST",
92
+ path: "/mcp-manager/auth/:globalId/public/status",
93
+ pathParams: params.path,
94
+ headers: params.headers,
95
+ opId: "publicUpdateMcpManagerAuthStatus",
96
+ expectedContentType: "application/json",
97
+ });
98
+ }
99
+ /**
100
+ * Update MCP manager auth
101
+ * Updates an MCP manager auth connection by globalId, with optional refetch and name autofill behavior controlled by the request body.
102
+ */
103
+ async updateMcpManagerAuth(params) {
104
+ return this.client.request({
105
+ method: "PATCH",
106
+ path: "/mcp-manager/auth/:globalId",
107
+ pathParams: params.path,
108
+ headers: params.headers,
109
+ body: params.body,
110
+ opId: "updateMcpManagerAuth",
111
+ expectedContentType: "application/json",
112
+ });
113
+ }
114
+ }
115
+ exports.McpManagerApi = McpManagerApi;
@@ -9,5 +9,6 @@ export interface BuildSqlMigrationBundleInput {
9
9
  bundleVersion?: string | null;
10
10
  migrations: BuildSqlMigrationBundleEntryInput[];
11
11
  }
12
+ export declare function canonicalizeSqlMigrationContent(sql: string): string;
12
13
  export declare function calculateSqlMigrationChecksum(sql: string): Promise<string>;
13
14
  export declare function buildSqlMigrationBundle(input: BuildSqlMigrationBundleInput): Promise<IsolatedStoreSqlMigrationBundleContract>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.canonicalizeSqlMigrationContent = canonicalizeSqlMigrationContent;
3
4
  exports.calculateSqlMigrationChecksum = calculateSqlMigrationChecksum;
4
5
  exports.buildSqlMigrationBundle = buildSqlMigrationBundle;
5
6
  function normalizePositiveInteger(value, field) {
@@ -20,12 +21,16 @@ function toSha256Hex(buffer) {
20
21
  .map((byte) => byte.toString(16).padStart(2, "0"))
21
22
  .join("");
22
23
  }
24
+ function canonicalizeSqlMigrationContent(sql) {
25
+ return sql.replace(/\r\n/g, "\n").trimEnd();
26
+ }
23
27
  async function calculateSqlMigrationChecksum(sql) {
24
28
  if (typeof globalThis.crypto === "undefined" ||
25
29
  typeof globalThis.crypto.subtle === "undefined") {
26
30
  throw new Error("SQL migration checksum requires globalThis.crypto.subtle (available in modern browsers and Node.js 20+)");
27
31
  }
28
- const bytes = new TextEncoder().encode(sql);
32
+ const canonicalSql = canonicalizeSqlMigrationContent(sql);
33
+ const bytes = new TextEncoder().encode(canonicalSql);
29
34
  const digest = await globalThis.crypto.subtle.digest("SHA-256", bytes);
30
35
  return toSha256Hex(digest);
31
36
  }
@@ -48,7 +53,7 @@ async function buildSqlMigrationBundle(input) {
48
53
  throw new Error(`Migrations must be strictly increasing by version; got ${String(version)} after ${String(previousVersion)}`);
49
54
  }
50
55
  const name = normalizeNonEmptyString(entry.name, `migrations[${index}].name`);
51
- const sql = entry.sql;
56
+ const sql = canonicalizeSqlMigrationContent(entry.sql);
52
57
  const checksum = await calculateSqlMigrationChecksum(sql);
53
58
  const expectedChecksum = entry.expectedChecksum == null ? null : entry.expectedChecksum.trim();
54
59
  if (expectedChecksum !== null && expectedChecksum !== checksum) {
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export { EmailsApi } from "./apis/EmailsApi";
12
12
  export { FilesApi } from "./apis/FilesApi";
13
13
  export { HealthApi } from "./apis/HealthApi";
14
14
  export { IsolatedStoresApi } from "./apis/IsolatedStoresApi";
15
+ export { McpManagerApi } from "./apis/McpManagerApi";
15
16
  export { NotesApi } from "./apis/NotesApi";
16
17
  export { OrgGroupsApi } from "./apis/OrgGroupsApi";
17
18
  export { OrgUsersApi } from "./apis/OrgUsersApi";
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.PortalsApi = exports.OrgUsersApi = exports.OrgGroupsApi = exports.NotesApi = exports.IsolatedStoresApi = exports.HealthApi = exports.FilesApi = exports.EmailsApi = exports.BillingApi = exports.AppApisApi = exports.AccessApi = void 0;
22
+ exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.OrgGroupsApi = exports.NotesApi = exports.McpManagerApi = exports.IsolatedStoresApi = exports.HealthApi = exports.FilesApi = exports.EmailsApi = exports.BillingApi = exports.AppApisApi = exports.AccessApi = void 0;
23
23
  __exportStar(require("./runtime"), exports);
24
24
  __exportStar(require("./types"), exports);
25
25
  var AccessApi_1 = require("./apis/AccessApi");
@@ -36,6 +36,8 @@ var HealthApi_1 = require("./apis/HealthApi");
36
36
  Object.defineProperty(exports, "HealthApi", { enumerable: true, get: function () { return HealthApi_1.HealthApi; } });
37
37
  var IsolatedStoresApi_1 = require("./apis/IsolatedStoresApi");
38
38
  Object.defineProperty(exports, "IsolatedStoresApi", { enumerable: true, get: function () { return IsolatedStoresApi_1.IsolatedStoresApi; } });
39
+ var McpManagerApi_1 = require("./apis/McpManagerApi");
40
+ Object.defineProperty(exports, "McpManagerApi", { enumerable: true, get: function () { return McpManagerApi_1.McpManagerApi; } });
39
41
  var NotesApi_1 = require("./apis/NotesApi");
40
42
  Object.defineProperty(exports, "NotesApi", { enumerable: true, get: function () { return NotesApi_1.NotesApi; } });
41
43
  var OrgGroupsApi_1 = require("./apis/OrgGroupsApi");
@@ -88,7 +88,7 @@ function buildQueryString(query) {
88
88
  * Create SDK client
89
89
  */
90
90
  function createClient(config) {
91
- const { baseUrl, auth, defaultHeaders = {}, timeout = 30000 } = config;
91
+ const { baseUrl, auth, defaultHeaders = {}, timeout = 30000, credentials, } = config;
92
92
  // Build authorization header
93
93
  const authHeader = {};
94
94
  if (auth === null || auth === void 0 ? void 0 : auth.authorization) {
@@ -180,6 +180,7 @@ function createClient(config) {
180
180
  method,
181
181
  headers: requestHeaders,
182
182
  body: requestBody,
183
+ credentials,
183
184
  signal: controller.signal,
184
185
  });
185
186
  clearTimeout(timeoutId);
@@ -22,6 +22,11 @@ export interface ClientConfig {
22
22
  * Request timeout in milliseconds (default: 30000)
23
23
  */
24
24
  timeout?: number;
25
+ /**
26
+ * Fetch credentials mode
27
+ * Use "include" to send cookies on cross-origin requests.
28
+ */
29
+ credentials?: RequestCredentials;
25
30
  }
26
31
  /**
27
32
  * Authentication configuration
@@ -10,6 +10,7 @@ export * from "./billing/billing";
10
10
  export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
11
11
  export * from "./file/file";
12
12
  export * from "./isolated-store/isolated-store";
13
+ export * from "./mcp-manager/mcp-manager";
13
14
  export type { MeAuthContract, MeOrgGroupContract, MeResponseContract, MeScopeContract, MeUserContract } from "./me/me";
14
15
  export * from "./note/note";
15
16
  export * from "./org-group/org-group";
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  __exportStar(require("./billing/billing"), exports);
24
24
  __exportStar(require("./file/file"), exports);
25
25
  __exportStar(require("./isolated-store/isolated-store"), exports);
26
+ __exportStar(require("./mcp-manager/mcp-manager"), exports);
26
27
  __exportStar(require("./note/note"), exports);
27
28
  __exportStar(require("./org-group/org-group"), exports);
28
29
  __exportStar(require("./shared/common"), exports);
@@ -0,0 +1,219 @@
1
+ export declare const RuleScopeTypeContract: {
2
+ readonly Template: "template";
3
+ readonly Server: "server";
4
+ readonly Channel: "channel";
5
+ readonly Organization: "organization";
6
+ readonly Portal: "portal";
7
+ readonly Workspace: "workspace";
8
+ readonly User: "user";
9
+ };
10
+ export type RuleScopeTypeContract = (typeof RuleScopeTypeContract)[keyof typeof RuleScopeTypeContract];
11
+ export declare const ServerProvider: {
12
+ readonly Custom: "custom";
13
+ readonly Composio: "composio";
14
+ readonly Pipedream: "pipedream";
15
+ };
16
+ export type ServerProvider = (typeof ServerProvider)[keyof typeof ServerProvider];
17
+ export declare const ServerTransport: {
18
+ readonly Sse: "sse";
19
+ readonly Npx: "npx";
20
+ readonly Uvx: "uvx";
21
+ readonly Docker: "docker";
22
+ readonly StreamableHttp: "streamable_http";
23
+ };
24
+ export type ServerTransport = (typeof ServerTransport)[keyof typeof ServerTransport];
25
+ export declare const MCPToolInputSchemaTypeEnumContract: {
26
+ readonly Object: "object";
27
+ };
28
+ export type MCPToolInputSchemaTypeEnumContract = (typeof MCPToolInputSchemaTypeEnumContract)[keyof typeof MCPToolInputSchemaTypeEnumContract];
29
+ export declare const AuthTypeContract: {
30
+ readonly Oauth: "oauth";
31
+ readonly ComposioManaged: "composio_managed";
32
+ readonly TokenBearer: "token_bearer";
33
+ };
34
+ export type AuthTypeContract = (typeof AuthTypeContract)[keyof typeof AuthTypeContract];
35
+ export declare const AuthStatusContract: {
36
+ readonly Active: "ACTIVE";
37
+ readonly Initiated: "INITIATED";
38
+ readonly Failed: "FAILED";
39
+ readonly Expired: "EXPIRED";
40
+ };
41
+ export type AuthStatusContract = (typeof AuthStatusContract)[keyof typeof AuthStatusContract];
42
+ export declare const AuthScopeTypeContract: {
43
+ readonly Organization: "organization";
44
+ readonly Workspace: "workspace";
45
+ readonly Portal: "portal";
46
+ readonly User: "user";
47
+ readonly Client: "client";
48
+ };
49
+ export type AuthScopeTypeContract = (typeof AuthScopeTypeContract)[keyof typeof AuthScopeTypeContract];
50
+ export type McpManagerAuthGlobalIdInPathRequired = string;
51
+ export type McpManagerServerIdInPathRequired = string;
52
+ export type McpManagerTemplateIdInPathRequired = string;
53
+ export declare const ServerStatusContract: {
54
+ readonly Initializing: "initializing";
55
+ readonly Connected: "connected";
56
+ readonly Disconnected: "disconnected";
57
+ readonly Failed: "failed";
58
+ };
59
+ export type ServerStatusContract = (typeof ServerStatusContract)[keyof typeof ServerStatusContract];
60
+ export interface RuleRelationContract {
61
+ scopeType: RuleScopeTypeContract;
62
+ scopeId: string;
63
+ enabled?: boolean;
64
+ }
65
+ export interface RuleResponseContract {
66
+ touched: boolean;
67
+ createdAt: string;
68
+ updatedAt: string;
69
+ deletedAt?: string;
70
+ templateId?: string;
71
+ labelIds?: Array<string>;
72
+ globalId: string;
73
+ name: string;
74
+ description?: string;
75
+ content: string;
76
+ isTemplate?: boolean;
77
+ metadata?: object;
78
+ relations: Array<RuleRelationContract>;
79
+ }
80
+ export interface TemplateArgsContract {
81
+ tools?: ToolListContract;
82
+ }
83
+ export interface ToolListCategoryContract {
84
+ id: string;
85
+ name: string;
86
+ }
87
+ export interface MCPToolInputSchemaContract {
88
+ type: MCPToolInputSchemaTypeEnumContract;
89
+ properties: {
90
+ [key: string]: unknown;
91
+ };
92
+ required?: Array<string>;
93
+ }
94
+ export interface ToolListItemContract {
95
+ enabled: boolean;
96
+ categories: Array<string>;
97
+ name: string;
98
+ description?: string;
99
+ inputSchema: MCPToolInputSchemaContract;
100
+ }
101
+ export interface ToolListContract {
102
+ categories: Array<ToolListCategoryContract>;
103
+ tools: Array<ToolListItemContract>;
104
+ }
105
+ export interface TemplateAuthContract {
106
+ type: AuthTypeContract;
107
+ app?: string;
108
+ }
109
+ export interface TemplateContract {
110
+ createdAt: string;
111
+ updatedAt: string;
112
+ rules?: Array<RuleResponseContract>;
113
+ globalId: string;
114
+ name: string;
115
+ prompt: string;
116
+ transport: ServerTransport;
117
+ provider: ServerProvider;
118
+ command: string;
119
+ args: TemplateArgsContract;
120
+ auth?: TemplateAuthContract;
121
+ }
122
+ export interface TemplatesListResponseContract {
123
+ templates: TemplateContract[];
124
+ }
125
+ export interface McpManagerScopeContract {
126
+ scopeType: AuthScopeTypeContract;
127
+ scopeId: string;
128
+ }
129
+ export interface McpManagerServerChannelContract {
130
+ channelId: string;
131
+ enabled: boolean;
132
+ }
133
+ export interface CreateMcpManagerServerFromTemplateRequestContract {
134
+ globalId: string;
135
+ scopes: Array<McpManagerScopeContract>;
136
+ channels: Array<McpManagerServerChannelContract>;
137
+ name?: string;
138
+ prompt?: string;
139
+ args?: TemplateArgsContract;
140
+ authId?: string;
141
+ }
142
+ export interface McpManagerServerResponseContract {
143
+ templateId?: string;
144
+ status: ServerStatusContract;
145
+ createdAt: string;
146
+ updatedAt: string;
147
+ connectedAt?: string;
148
+ deletedAt?: string;
149
+ globalId: string;
150
+ scopes: Array<McpManagerScopeContract>;
151
+ channels: Array<McpManagerServerChannelContract>;
152
+ name: string;
153
+ prompt: string;
154
+ provider: ServerProvider;
155
+ transport: ServerTransport;
156
+ command: string;
157
+ args: TemplateArgsContract;
158
+ authId?: string;
159
+ }
160
+ export interface UpdateMcpManagerAuthRequestContract {
161
+ refetch: boolean;
162
+ autofillName: boolean;
163
+ }
164
+ export interface PublicMcpManagerAuthStatusResponseContract {
165
+ status: AuthStatusContract;
166
+ }
167
+ export interface CallMcpManagerServerToolRequestContract {
168
+ toolName: string;
169
+ args: Record<string, unknown>;
170
+ }
171
+ export type CallMcpManagerServerToolResponseContract = object;
172
+ interface InitiateMcpManagerAuthRequestBaseContract {
173
+ name?: string;
174
+ globalId: string;
175
+ scopes: Array<McpManagerScopeContract>;
176
+ type: AuthTypeContract;
177
+ app: string;
178
+ replaceInactiveAuth?: boolean;
179
+ }
180
+ export interface InitiateMcpManagerOAuthRequestContract extends InitiateMcpManagerAuthRequestBaseContract {
181
+ type: typeof AuthTypeContract.Oauth;
182
+ }
183
+ export interface InitiateMcpManagerComposioManagedRequestContract extends InitiateMcpManagerAuthRequestBaseContract {
184
+ type: typeof AuthTypeContract.ComposioManaged;
185
+ }
186
+ export interface InitiateMcpManagerTokenBearerRequestContract extends InitiateMcpManagerAuthRequestBaseContract {
187
+ type: typeof AuthTypeContract.TokenBearer;
188
+ token: string;
189
+ }
190
+ export type InitiateMcpManagerAuthRequestContract = InitiateMcpManagerOAuthRequestContract | InitiateMcpManagerComposioManagedRequestContract | InitiateMcpManagerTokenBearerRequestContract;
191
+ export interface McpManagerAuthDataContract {
192
+ connectionStatus: AuthStatusContract;
193
+ connectedAccountId: string;
194
+ redirectUrl?: string;
195
+ app: string;
196
+ }
197
+ interface McpManagerAuthResponseBaseContract {
198
+ name: string;
199
+ globalId: string;
200
+ scopes: Array<McpManagerScopeContract>;
201
+ type: AuthTypeContract;
202
+ app: string;
203
+ status: AuthStatusContract;
204
+ data: McpManagerAuthDataContract;
205
+ updatedAt: string;
206
+ createdAt: string;
207
+ }
208
+ export interface McpManagerOAuthResponseContract extends McpManagerAuthResponseBaseContract {
209
+ type: typeof AuthTypeContract.Oauth;
210
+ }
211
+ export interface McpManagerComposioManagedResponseContract extends McpManagerAuthResponseBaseContract {
212
+ type: typeof AuthTypeContract.ComposioManaged;
213
+ }
214
+ export interface McpManagerTokenBearerResponseContract extends McpManagerAuthResponseBaseContract {
215
+ type: typeof AuthTypeContract.TokenBearer;
216
+ token: string;
217
+ }
218
+ export type McpManagerAuthResponseContract = McpManagerOAuthResponseContract | McpManagerComposioManagedResponseContract | McpManagerTokenBearerResponseContract;
219
+ export {};
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServerStatusContract = exports.AuthScopeTypeContract = exports.AuthStatusContract = exports.AuthTypeContract = exports.MCPToolInputSchemaTypeEnumContract = exports.ServerTransport = exports.ServerProvider = exports.RuleScopeTypeContract = void 0;
4
+ exports.RuleScopeTypeContract = {
5
+ Template: "template",
6
+ Server: "server",
7
+ Channel: "channel",
8
+ Organization: "organization",
9
+ Portal: "portal",
10
+ Workspace: "workspace",
11
+ User: "user",
12
+ };
13
+ exports.ServerProvider = {
14
+ Custom: "custom",
15
+ Composio: "composio",
16
+ Pipedream: "pipedream",
17
+ };
18
+ exports.ServerTransport = {
19
+ Sse: "sse",
20
+ Npx: "npx",
21
+ Uvx: "uvx",
22
+ Docker: "docker",
23
+ StreamableHttp: "streamable_http",
24
+ };
25
+ exports.MCPToolInputSchemaTypeEnumContract = {
26
+ Object: "object",
27
+ };
28
+ exports.AuthTypeContract = {
29
+ Oauth: "oauth",
30
+ ComposioManaged: "composio_managed",
31
+ TokenBearer: "token_bearer",
32
+ };
33
+ exports.AuthStatusContract = {
34
+ Active: "ACTIVE",
35
+ Initiated: "INITIATED",
36
+ Failed: "FAILED",
37
+ Expired: "EXPIRED",
38
+ };
39
+ exports.AuthScopeTypeContract = {
40
+ Organization: "organization",
41
+ Workspace: "workspace",
42
+ Portal: "portal",
43
+ User: "user",
44
+ Client: "client",
45
+ };
46
+ exports.ServerStatusContract = {
47
+ Initializing: "initializing",
48
+ Connected: "connected",
49
+ Disconnected: "disconnected",
50
+ Failed: "failed",
51
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.13-sdk.1",
3
+ "version": "2.2.13-sdk.10",
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.13-sdk.10
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.13-sdk.10`
5
+ - Generated at: 2026-05-11T10:41:41.527Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.13-sdk.1
1
+ # Release Notes 2.2.13-sdk.10
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.13-sdk.1`
5
- - Generated at: 2026-05-07T14:17:07.299Z
4
+ - Previous tag: `v2.2.13-sdk.10`
5
+ - Generated at: 2026-05-11T10:41:41.527Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.13-sdk.1
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.13-sdk.1`
5
- - Generated at: 2026-05-07T14:17:07.299Z
6
-
7
- ## Included Drafts
8
-
9
- - None