@fusebase/fusebase-gate-sdk 2.2.13-sdk.3 → 2.2.13-sdk.6
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/McpManagerApi.d.ts +11 -1
- package/dist/apis/McpManagerApi.js +14 -0
- package/dist/extras/sqlMigrationBundle.d.ts +1 -0
- package/dist/extras/sqlMigrationBundle.js +7 -2
- package/dist/types/mcp-manager/mcp-manager.d.ts +3 -0
- package/package.json +1 -1
- package/release-notes/2.2.13-sdk.6.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.13-sdk.3.md +0 -9
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Domain: mcp-manager
|
|
6
6
|
*/
|
|
7
7
|
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { CallMcpManagerServerToolRequestContract, CallMcpManagerServerToolResponseContract, CreateMcpManagerServerFromTemplateRequestContract, InitiateMcpManagerAuthRequestContract, McpManagerAuthGlobalIdInPathRequired, McpManagerAuthResponseContract, McpManagerServerIdInPathRequired, McpManagerServerResponseContract, McpManagerTemplateIdInPathRequired, TemplatesListResponseContract, UpdateMcpManagerAuthRequestContract } from "../types";
|
|
8
|
+
import type { CallMcpManagerServerToolRequestContract, CallMcpManagerServerToolResponseContract, CreateMcpManagerServerFromTemplateRequestContract, InitiateMcpManagerAuthRequestContract, McpManagerAuthGlobalIdInPathRequired, McpManagerAuthResponseContract, McpManagerServerIdInPathRequired, McpManagerServerResponseContract, McpManagerTemplateIdInPathRequired, PublicMcpManagerAuthStatusResponseContract, TemplatesListResponseContract, UpdateMcpManagerAuthRequestContract } from "../types";
|
|
9
9
|
export declare class McpManagerApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
@@ -46,6 +46,16 @@ export declare class McpManagerApi {
|
|
|
46
46
|
headers?: Record<string, string>;
|
|
47
47
|
body: InitiateMcpManagerAuthRequestContract;
|
|
48
48
|
}): Promise<McpManagerAuthResponseContract>;
|
|
49
|
+
/**
|
|
50
|
+
* Public update MCP manager auth status
|
|
51
|
+
* Refetches an MCP manager auth by globalId using default refetch/autofill behavior and returns only auth status.
|
|
52
|
+
*/
|
|
53
|
+
publicUpdateMcpManagerAuthStatus(params: {
|
|
54
|
+
path: {
|
|
55
|
+
globalId: McpManagerAuthGlobalIdInPathRequired;
|
|
56
|
+
};
|
|
57
|
+
headers?: Record<string, string>;
|
|
58
|
+
}): Promise<PublicMcpManagerAuthStatusResponseContract>;
|
|
49
59
|
/**
|
|
50
60
|
* Update MCP manager auth
|
|
51
61
|
* Updates an MCP manager auth connection by globalId, with optional refetch and name autofill behavior controlled by the request body.
|
|
@@ -68,6 +68,20 @@ class McpManagerApi {
|
|
|
68
68
|
expectedContentType: "application/json",
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Public update MCP manager auth status
|
|
73
|
+
* Refetches an MCP manager auth by globalId using default refetch/autofill behavior and returns only auth status.
|
|
74
|
+
*/
|
|
75
|
+
async publicUpdateMcpManagerAuthStatus(params) {
|
|
76
|
+
return this.client.request({
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: "/mcp-manager/auth/:globalId/public/status",
|
|
79
|
+
pathParams: params.path,
|
|
80
|
+
headers: params.headers,
|
|
81
|
+
opId: "publicUpdateMcpManagerAuthStatus",
|
|
82
|
+
expectedContentType: "application/json",
|
|
83
|
+
});
|
|
84
|
+
}
|
|
71
85
|
/**
|
|
72
86
|
* Update MCP manager auth
|
|
73
87
|
* Updates an MCP manager auth connection by globalId, with optional refetch and name autofill behavior controlled by the request body.
|
|
@@ -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
|
|
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) {
|
|
@@ -161,6 +161,9 @@ export interface UpdateMcpManagerAuthRequestContract {
|
|
|
161
161
|
refetch: boolean;
|
|
162
162
|
autofillName: boolean;
|
|
163
163
|
}
|
|
164
|
+
export interface PublicMcpManagerAuthStatusResponseContract {
|
|
165
|
+
status: AuthStatusContract;
|
|
166
|
+
}
|
|
164
167
|
export interface CallMcpManagerServerToolRequestContract {
|
|
165
168
|
toolName: string;
|
|
166
169
|
args: Record<string, unknown>;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.13-sdk.
|
|
1
|
+
# Release Notes 2.2.13-sdk.6
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.13-sdk.
|
|
5
|
-
- Generated at: 2026-05-
|
|
4
|
+
- Previous tag: `v2.2.13-sdk.6`
|
|
5
|
+
- Generated at: 2026-05-08T13:05:42.815Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|