@fern-api/fdr-sdk 1.2.115-60bc9699d1 → 1.2.116-4e00acf721
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/js/client/FdrClient.js +262 -238
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +262 -238
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +528 -504
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +528 -504
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client/mcp-hosting/schemas.js +106 -0
- package/dist/js/orpc-client/mcp-hosting/schemas.js.map +1 -0
- package/dist/js/orpc-client/mcp-hosting/schemas.mjs +68 -0
- package/dist/js/orpc-client/mcp-hosting/schemas.mjs.map +1 -0
- package/dist/js/orpc-client.js +519 -447
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +512 -447
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts +9 -322
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/index.d.ts +1 -0
- package/dist/types/orpc-client/mcp-hosting/index.d.ts.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/kv.d.ts +39 -0
- package/dist/types/orpc-client/mcp-hosting/kv.d.ts.map +1 -0
- package/dist/types/orpc-client/mcp-hosting/schemas.d.ts +424 -0
- package/dist/types/orpc-client/mcp-hosting/schemas.d.ts.map +1 -0
- package/package.json +7 -1
|
@@ -1,319 +1,8 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { type McpAuthScheme, McpAuthSchemeSchema, type McpMetadata, McpMetadataSchema } from "./schemas.js";
|
|
3
|
+
export { McpAuthSchemeSchema, McpMetadataSchema };
|
|
4
|
+
export type { McpAuthScheme, McpMetadata };
|
|
2
5
|
export declare const McpDeploymentStatusSchema: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
|
|
3
|
-
export declare const McpAuthSchemeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4
|
-
type: z.ZodLiteral<"bearer">;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
type: "bearer";
|
|
7
|
-
}, {
|
|
8
|
-
type: "bearer";
|
|
9
|
-
}>, z.ZodObject<{
|
|
10
|
-
type: z.ZodLiteral<"apiKey">;
|
|
11
|
-
paramName: z.ZodString;
|
|
12
|
-
in: z.ZodEnum<["header", "query", "cookie"]>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
type: "apiKey";
|
|
15
|
-
paramName: string;
|
|
16
|
-
in: "query" | "header" | "cookie";
|
|
17
|
-
}, {
|
|
18
|
-
type: "apiKey";
|
|
19
|
-
paramName: string;
|
|
20
|
-
in: "query" | "header" | "cookie";
|
|
21
|
-
}>, z.ZodObject<{
|
|
22
|
-
type: z.ZodLiteral<"basic">;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
type: "basic";
|
|
25
|
-
}, {
|
|
26
|
-
type: "basic";
|
|
27
|
-
}>]>;
|
|
28
|
-
export declare const McpMetadataSchema: z.ZodObject<{
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
toolsetMetadata: z.ZodArray<z.ZodObject<{
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
title: z.ZodString;
|
|
34
|
-
description: z.ZodString;
|
|
35
|
-
toolCount: z.ZodNumber;
|
|
36
|
-
}, "strict", z.ZodTypeAny, {
|
|
37
|
-
description: string;
|
|
38
|
-
name: string;
|
|
39
|
-
title: string;
|
|
40
|
-
toolCount: number;
|
|
41
|
-
}, {
|
|
42
|
-
description: string;
|
|
43
|
-
name: string;
|
|
44
|
-
title: string;
|
|
45
|
-
toolCount: number;
|
|
46
|
-
}>, "many">;
|
|
47
|
-
auth: z.ZodObject<{
|
|
48
|
-
schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
49
|
-
type: z.ZodLiteral<"bearer">;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
type: "bearer";
|
|
52
|
-
}, {
|
|
53
|
-
type: "bearer";
|
|
54
|
-
}>, z.ZodObject<{
|
|
55
|
-
type: z.ZodLiteral<"apiKey">;
|
|
56
|
-
paramName: z.ZodString;
|
|
57
|
-
in: z.ZodEnum<["header", "query", "cookie"]>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
type: "apiKey";
|
|
60
|
-
paramName: string;
|
|
61
|
-
in: "query" | "header" | "cookie";
|
|
62
|
-
}, {
|
|
63
|
-
type: "apiKey";
|
|
64
|
-
paramName: string;
|
|
65
|
-
in: "query" | "header" | "cookie";
|
|
66
|
-
}>, z.ZodObject<{
|
|
67
|
-
type: z.ZodLiteral<"basic">;
|
|
68
|
-
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
type: "basic";
|
|
70
|
-
}, {
|
|
71
|
-
type: "basic";
|
|
72
|
-
}>]>, "many">;
|
|
73
|
-
required: z.ZodBoolean;
|
|
74
|
-
}, "strict", z.ZodTypeAny, {
|
|
75
|
-
schemes: ({
|
|
76
|
-
type: "bearer";
|
|
77
|
-
} | {
|
|
78
|
-
type: "apiKey";
|
|
79
|
-
paramName: string;
|
|
80
|
-
in: "query" | "header" | "cookie";
|
|
81
|
-
} | {
|
|
82
|
-
type: "basic";
|
|
83
|
-
})[];
|
|
84
|
-
required: boolean;
|
|
85
|
-
}, {
|
|
86
|
-
schemes: ({
|
|
87
|
-
type: "bearer";
|
|
88
|
-
} | {
|
|
89
|
-
type: "apiKey";
|
|
90
|
-
paramName: string;
|
|
91
|
-
in: "query" | "header" | "cookie";
|
|
92
|
-
} | {
|
|
93
|
-
type: "basic";
|
|
94
|
-
})[];
|
|
95
|
-
required: boolean;
|
|
96
|
-
}>;
|
|
97
|
-
skippedTools: z.ZodArray<z.ZodObject<{
|
|
98
|
-
name: z.ZodString;
|
|
99
|
-
reason: z.ZodString;
|
|
100
|
-
}, "strict", z.ZodTypeAny, {
|
|
101
|
-
name: string;
|
|
102
|
-
reason: string;
|
|
103
|
-
}, {
|
|
104
|
-
name: string;
|
|
105
|
-
reason: string;
|
|
106
|
-
}>, "many">;
|
|
107
|
-
environmentVariables: z.ZodArray<z.ZodObject<{
|
|
108
|
-
name: z.ZodString;
|
|
109
|
-
description: z.ZodString;
|
|
110
|
-
required: z.ZodBoolean;
|
|
111
|
-
}, "strict", z.ZodTypeAny, {
|
|
112
|
-
description: string;
|
|
113
|
-
name: string;
|
|
114
|
-
required: boolean;
|
|
115
|
-
}, {
|
|
116
|
-
description: string;
|
|
117
|
-
name: string;
|
|
118
|
-
required: boolean;
|
|
119
|
-
}>, "many">;
|
|
120
|
-
baseUrl: z.ZodString;
|
|
121
|
-
followRedirects: z.ZodBoolean;
|
|
122
|
-
maxRedirects: z.ZodNumber;
|
|
123
|
-
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
124
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
|
-
name: z.ZodString;
|
|
126
|
-
toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
127
|
-
toolsetMetadata: z.ZodArray<z.ZodObject<{
|
|
128
|
-
name: z.ZodString;
|
|
129
|
-
title: z.ZodString;
|
|
130
|
-
description: z.ZodString;
|
|
131
|
-
toolCount: z.ZodNumber;
|
|
132
|
-
}, "strict", z.ZodTypeAny, {
|
|
133
|
-
description: string;
|
|
134
|
-
name: string;
|
|
135
|
-
title: string;
|
|
136
|
-
toolCount: number;
|
|
137
|
-
}, {
|
|
138
|
-
description: string;
|
|
139
|
-
name: string;
|
|
140
|
-
title: string;
|
|
141
|
-
toolCount: number;
|
|
142
|
-
}>, "many">;
|
|
143
|
-
auth: z.ZodObject<{
|
|
144
|
-
schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
145
|
-
type: z.ZodLiteral<"bearer">;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
type: "bearer";
|
|
148
|
-
}, {
|
|
149
|
-
type: "bearer";
|
|
150
|
-
}>, z.ZodObject<{
|
|
151
|
-
type: z.ZodLiteral<"apiKey">;
|
|
152
|
-
paramName: z.ZodString;
|
|
153
|
-
in: z.ZodEnum<["header", "query", "cookie"]>;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "apiKey";
|
|
156
|
-
paramName: string;
|
|
157
|
-
in: "query" | "header" | "cookie";
|
|
158
|
-
}, {
|
|
159
|
-
type: "apiKey";
|
|
160
|
-
paramName: string;
|
|
161
|
-
in: "query" | "header" | "cookie";
|
|
162
|
-
}>, z.ZodObject<{
|
|
163
|
-
type: z.ZodLiteral<"basic">;
|
|
164
|
-
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
type: "basic";
|
|
166
|
-
}, {
|
|
167
|
-
type: "basic";
|
|
168
|
-
}>]>, "many">;
|
|
169
|
-
required: z.ZodBoolean;
|
|
170
|
-
}, "strict", z.ZodTypeAny, {
|
|
171
|
-
schemes: ({
|
|
172
|
-
type: "bearer";
|
|
173
|
-
} | {
|
|
174
|
-
type: "apiKey";
|
|
175
|
-
paramName: string;
|
|
176
|
-
in: "query" | "header" | "cookie";
|
|
177
|
-
} | {
|
|
178
|
-
type: "basic";
|
|
179
|
-
})[];
|
|
180
|
-
required: boolean;
|
|
181
|
-
}, {
|
|
182
|
-
schemes: ({
|
|
183
|
-
type: "bearer";
|
|
184
|
-
} | {
|
|
185
|
-
type: "apiKey";
|
|
186
|
-
paramName: string;
|
|
187
|
-
in: "query" | "header" | "cookie";
|
|
188
|
-
} | {
|
|
189
|
-
type: "basic";
|
|
190
|
-
})[];
|
|
191
|
-
required: boolean;
|
|
192
|
-
}>;
|
|
193
|
-
skippedTools: z.ZodArray<z.ZodObject<{
|
|
194
|
-
name: z.ZodString;
|
|
195
|
-
reason: z.ZodString;
|
|
196
|
-
}, "strict", z.ZodTypeAny, {
|
|
197
|
-
name: string;
|
|
198
|
-
reason: string;
|
|
199
|
-
}, {
|
|
200
|
-
name: string;
|
|
201
|
-
reason: string;
|
|
202
|
-
}>, "many">;
|
|
203
|
-
environmentVariables: z.ZodArray<z.ZodObject<{
|
|
204
|
-
name: z.ZodString;
|
|
205
|
-
description: z.ZodString;
|
|
206
|
-
required: z.ZodBoolean;
|
|
207
|
-
}, "strict", z.ZodTypeAny, {
|
|
208
|
-
description: string;
|
|
209
|
-
name: string;
|
|
210
|
-
required: boolean;
|
|
211
|
-
}, {
|
|
212
|
-
description: string;
|
|
213
|
-
name: string;
|
|
214
|
-
required: boolean;
|
|
215
|
-
}>, "many">;
|
|
216
|
-
baseUrl: z.ZodString;
|
|
217
|
-
followRedirects: z.ZodBoolean;
|
|
218
|
-
maxRedirects: z.ZodNumber;
|
|
219
|
-
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
220
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
221
|
-
name: z.ZodString;
|
|
222
|
-
toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
223
|
-
toolsetMetadata: z.ZodArray<z.ZodObject<{
|
|
224
|
-
name: z.ZodString;
|
|
225
|
-
title: z.ZodString;
|
|
226
|
-
description: z.ZodString;
|
|
227
|
-
toolCount: z.ZodNumber;
|
|
228
|
-
}, "strict", z.ZodTypeAny, {
|
|
229
|
-
description: string;
|
|
230
|
-
name: string;
|
|
231
|
-
title: string;
|
|
232
|
-
toolCount: number;
|
|
233
|
-
}, {
|
|
234
|
-
description: string;
|
|
235
|
-
name: string;
|
|
236
|
-
title: string;
|
|
237
|
-
toolCount: number;
|
|
238
|
-
}>, "many">;
|
|
239
|
-
auth: z.ZodObject<{
|
|
240
|
-
schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"bearer">;
|
|
242
|
-
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
type: "bearer";
|
|
244
|
-
}, {
|
|
245
|
-
type: "bearer";
|
|
246
|
-
}>, z.ZodObject<{
|
|
247
|
-
type: z.ZodLiteral<"apiKey">;
|
|
248
|
-
paramName: z.ZodString;
|
|
249
|
-
in: z.ZodEnum<["header", "query", "cookie"]>;
|
|
250
|
-
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
type: "apiKey";
|
|
252
|
-
paramName: string;
|
|
253
|
-
in: "query" | "header" | "cookie";
|
|
254
|
-
}, {
|
|
255
|
-
type: "apiKey";
|
|
256
|
-
paramName: string;
|
|
257
|
-
in: "query" | "header" | "cookie";
|
|
258
|
-
}>, z.ZodObject<{
|
|
259
|
-
type: z.ZodLiteral<"basic">;
|
|
260
|
-
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
type: "basic";
|
|
262
|
-
}, {
|
|
263
|
-
type: "basic";
|
|
264
|
-
}>]>, "many">;
|
|
265
|
-
required: z.ZodBoolean;
|
|
266
|
-
}, "strict", z.ZodTypeAny, {
|
|
267
|
-
schemes: ({
|
|
268
|
-
type: "bearer";
|
|
269
|
-
} | {
|
|
270
|
-
type: "apiKey";
|
|
271
|
-
paramName: string;
|
|
272
|
-
in: "query" | "header" | "cookie";
|
|
273
|
-
} | {
|
|
274
|
-
type: "basic";
|
|
275
|
-
})[];
|
|
276
|
-
required: boolean;
|
|
277
|
-
}, {
|
|
278
|
-
schemes: ({
|
|
279
|
-
type: "bearer";
|
|
280
|
-
} | {
|
|
281
|
-
type: "apiKey";
|
|
282
|
-
paramName: string;
|
|
283
|
-
in: "query" | "header" | "cookie";
|
|
284
|
-
} | {
|
|
285
|
-
type: "basic";
|
|
286
|
-
})[];
|
|
287
|
-
required: boolean;
|
|
288
|
-
}>;
|
|
289
|
-
skippedTools: z.ZodArray<z.ZodObject<{
|
|
290
|
-
name: z.ZodString;
|
|
291
|
-
reason: z.ZodString;
|
|
292
|
-
}, "strict", z.ZodTypeAny, {
|
|
293
|
-
name: string;
|
|
294
|
-
reason: string;
|
|
295
|
-
}, {
|
|
296
|
-
name: string;
|
|
297
|
-
reason: string;
|
|
298
|
-
}>, "many">;
|
|
299
|
-
environmentVariables: z.ZodArray<z.ZodObject<{
|
|
300
|
-
name: z.ZodString;
|
|
301
|
-
description: z.ZodString;
|
|
302
|
-
required: z.ZodBoolean;
|
|
303
|
-
}, "strict", z.ZodTypeAny, {
|
|
304
|
-
description: string;
|
|
305
|
-
name: string;
|
|
306
|
-
required: boolean;
|
|
307
|
-
}, {
|
|
308
|
-
description: string;
|
|
309
|
-
name: string;
|
|
310
|
-
required: boolean;
|
|
311
|
-
}>, "many">;
|
|
312
|
-
baseUrl: z.ZodString;
|
|
313
|
-
followRedirects: z.ZodBoolean;
|
|
314
|
-
maxRedirects: z.ZodNumber;
|
|
315
|
-
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
316
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
317
6
|
export declare const DeployMcpServerInputSchema: z.ZodEffects<z.ZodObject<{
|
|
318
7
|
orgId: z.ZodString;
|
|
319
8
|
slug: z.ZodString;
|
|
@@ -425,7 +114,7 @@ export declare const DeployMcpServerInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
425
114
|
name: string;
|
|
426
115
|
required: boolean;
|
|
427
116
|
}>, "many">;
|
|
428
|
-
baseUrl: z.ZodString
|
|
117
|
+
baseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
429
118
|
followRedirects: z.ZodBoolean;
|
|
430
119
|
maxRedirects: z.ZodNumber;
|
|
431
120
|
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
@@ -521,7 +210,7 @@ export declare const DeployMcpServerInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
521
210
|
name: string;
|
|
522
211
|
required: boolean;
|
|
523
212
|
}>, "many">;
|
|
524
|
-
baseUrl: z.ZodString
|
|
213
|
+
baseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
525
214
|
followRedirects: z.ZodBoolean;
|
|
526
215
|
maxRedirects: z.ZodNumber;
|
|
527
216
|
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
@@ -617,7 +306,7 @@ export declare const DeployMcpServerInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
617
306
|
name: string;
|
|
618
307
|
required: boolean;
|
|
619
308
|
}>, "many">;
|
|
620
|
-
baseUrl: z.ZodString
|
|
309
|
+
baseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
621
310
|
followRedirects: z.ZodBoolean;
|
|
622
311
|
maxRedirects: z.ZodNumber;
|
|
623
312
|
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1246,8 +935,6 @@ export declare const ListMcpDeploymentsResponseSchema: z.ZodObject<{
|
|
|
1246
935
|
}[];
|
|
1247
936
|
}>;
|
|
1248
937
|
export type McpDeploymentStatus = z.infer<typeof McpDeploymentStatusSchema>;
|
|
1249
|
-
export type McpAuthScheme = z.infer<typeof McpAuthSchemeSchema>;
|
|
1250
|
-
export type McpMetadata = z.infer<typeof McpMetadataSchema>;
|
|
1251
938
|
export type DeployMcpServerInput = z.infer<typeof DeployMcpServerInputSchema>;
|
|
1252
939
|
export type McpServer = z.infer<typeof McpServerSchema>;
|
|
1253
940
|
export type McpDeploymentSummary = z.infer<typeof McpDeploymentSummarySchema>;
|
|
@@ -1365,7 +1052,7 @@ export declare const mcpHostingContract: {
|
|
|
1365
1052
|
name: string;
|
|
1366
1053
|
required: boolean;
|
|
1367
1054
|
}>, "many">;
|
|
1368
|
-
baseUrl: z.ZodString
|
|
1055
|
+
baseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1369
1056
|
followRedirects: z.ZodBoolean;
|
|
1370
1057
|
maxRedirects: z.ZodNumber;
|
|
1371
1058
|
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1461,7 +1148,7 @@ export declare const mcpHostingContract: {
|
|
|
1461
1148
|
name: string;
|
|
1462
1149
|
required: boolean;
|
|
1463
1150
|
}>, "many">;
|
|
1464
|
-
baseUrl: z.ZodString
|
|
1151
|
+
baseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1465
1152
|
followRedirects: z.ZodBoolean;
|
|
1466
1153
|
maxRedirects: z.ZodNumber;
|
|
1467
1154
|
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1557,7 +1244,7 @@ export declare const mcpHostingContract: {
|
|
|
1557
1244
|
name: string;
|
|
1558
1245
|
required: boolean;
|
|
1559
1246
|
}>, "many">;
|
|
1560
|
-
baseUrl: z.ZodString
|
|
1247
|
+
baseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1561
1248
|
followRedirects: z.ZodBoolean;
|
|
1562
1249
|
maxRedirects: z.ZodNumber;
|
|
1563
1250
|
allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/mcp-hosting/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/mcp-hosting/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,KAAK,aAAa,EAAE,mBAAmB,EAAE,KAAK,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAe3C,eAAO,MAAM,yBAAyB,kDAAgD,CAAC;AAkBvF,eAAO,MAAM,0BAA0B;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAnB3B,8EAA8E;;QAE9E,kEAAkE;;;;YAdlE,wEAAwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAYxE,8EAA8E;;QAE9E,kEAAkE;;;;YAdlE,wEAAwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAYxE,8EAA8E;;YAE9E,kEAAkE;;;;gBAdlE,wEAAwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAxE,wEAAwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/mcp-hosting/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/mcp-hosting/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { McpAuthScheme, McpMetadata } from "./contract.js";
|
|
2
|
+
import type { DeploymentConfig } from "./schemas.js";
|
|
3
|
+
export type { DeploymentConfig } from "./schemas.js";
|
|
4
|
+
/**
|
|
5
|
+
* The serving-plane KV contract: the value shapes FDR writes to Cloudflare
|
|
6
|
+
* KV at deploy time and the edge workers read at request time. This module
|
|
7
|
+
* is the single source of truth for both sides — FDR imports the projection
|
|
8
|
+
* functions; the outbound worker imports the runtime schema from the
|
|
9
|
+
* `mcp-hosting-schemas` subpath below.
|
|
10
|
+
*/
|
|
11
|
+
export interface Requirement {
|
|
12
|
+
label: string;
|
|
13
|
+
envVar: string;
|
|
14
|
+
type: "required" | "optional";
|
|
15
|
+
}
|
|
16
|
+
/** Value of the `meta:{scriptName}` key. Display/audit projection. */
|
|
17
|
+
export interface DeploymentMeta {
|
|
18
|
+
authSchemes: McpAuthScheme[];
|
|
19
|
+
toolCount: number;
|
|
20
|
+
deployedAt: string;
|
|
21
|
+
requirements: Requirement[];
|
|
22
|
+
}
|
|
23
|
+
/** Accept pre-parsed metadata (already validated by the contract schema). */
|
|
24
|
+
export declare function deploymentMetaFromParsed(parsed: McpMetadata, deployedAt?: Date): DeploymentMeta;
|
|
25
|
+
/** Accept pre-parsed metadata (already validated by the contract schema). */
|
|
26
|
+
export declare function deploymentConfigFromParsed(parsed: McpMetadata): DeploymentConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Derive the WfP script name from the server's identity.
|
|
29
|
+
* orgId and slug are already validated by the contract schema.
|
|
30
|
+
*/
|
|
31
|
+
export declare function scriptNameFor(input: {
|
|
32
|
+
orgId: string;
|
|
33
|
+
slug: string;
|
|
34
|
+
}): string;
|
|
35
|
+
export declare const KV_KEY_PREFIX_ORG = "org:";
|
|
36
|
+
export declare const KV_KEY_PREFIX_CONFIG = "config:";
|
|
37
|
+
export declare const KV_KEY_PREFIX_META = "meta:";
|
|
38
|
+
export declare const KV_KEY_PREFIXES: readonly ["org:", "config:", "meta:"];
|
|
39
|
+
//# sourceMappingURL=kv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/mcp-hosting/kv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;;;;;GAMG;AAEH,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;CACjC;AAED,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC/B;AAED,6EAA6E;AAC7E,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,GAAE,IAAiB,GAAG,cAAc,CAW3G;AAED,6EAA6E;AAC7E,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,WAAW,GAAG,gBAAgB,CAYhF;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAE5E;AAGD,eAAO,MAAM,iBAAiB,SAAS,CAAC;AACxC,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAC1C,eAAO,MAAM,eAAe,uCAAyE,CAAC"}
|