@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.
@@ -0,0 +1,424 @@
1
+ import * as z from "zod";
2
+ export declare const McpAuthSchemeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ type: z.ZodLiteral<"bearer">;
4
+ }, "strip", z.ZodTypeAny, {
5
+ type: "bearer";
6
+ }, {
7
+ type: "bearer";
8
+ }>, z.ZodObject<{
9
+ type: z.ZodLiteral<"apiKey">;
10
+ paramName: z.ZodString;
11
+ in: z.ZodEnum<["header", "query", "cookie"]>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "apiKey";
14
+ paramName: string;
15
+ in: "query" | "header" | "cookie";
16
+ }, {
17
+ type: "apiKey";
18
+ paramName: string;
19
+ in: "query" | "header" | "cookie";
20
+ }>, z.ZodObject<{
21
+ type: z.ZodLiteral<"basic">;
22
+ }, "strip", z.ZodTypeAny, {
23
+ type: "basic";
24
+ }, {
25
+ type: "basic";
26
+ }>]>;
27
+ export declare const McpMetadataSchema: z.ZodObject<{
28
+ name: z.ZodString;
29
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
30
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
31
+ name: z.ZodString;
32
+ title: z.ZodString;
33
+ description: z.ZodString;
34
+ toolCount: z.ZodNumber;
35
+ }, "strict", z.ZodTypeAny, {
36
+ description: string;
37
+ name: string;
38
+ title: string;
39
+ toolCount: number;
40
+ }, {
41
+ description: string;
42
+ name: string;
43
+ title: string;
44
+ toolCount: number;
45
+ }>, "many">;
46
+ auth: z.ZodObject<{
47
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
48
+ type: z.ZodLiteral<"bearer">;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "bearer";
51
+ }, {
52
+ type: "bearer";
53
+ }>, z.ZodObject<{
54
+ type: z.ZodLiteral<"apiKey">;
55
+ paramName: z.ZodString;
56
+ in: z.ZodEnum<["header", "query", "cookie"]>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ type: "apiKey";
59
+ paramName: string;
60
+ in: "query" | "header" | "cookie";
61
+ }, {
62
+ type: "apiKey";
63
+ paramName: string;
64
+ in: "query" | "header" | "cookie";
65
+ }>, z.ZodObject<{
66
+ type: z.ZodLiteral<"basic">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ type: "basic";
69
+ }, {
70
+ type: "basic";
71
+ }>]>, "many">;
72
+ required: z.ZodBoolean;
73
+ }, "strict", z.ZodTypeAny, {
74
+ schemes: ({
75
+ type: "bearer";
76
+ } | {
77
+ type: "apiKey";
78
+ paramName: string;
79
+ in: "query" | "header" | "cookie";
80
+ } | {
81
+ type: "basic";
82
+ })[];
83
+ required: boolean;
84
+ }, {
85
+ schemes: ({
86
+ type: "bearer";
87
+ } | {
88
+ type: "apiKey";
89
+ paramName: string;
90
+ in: "query" | "header" | "cookie";
91
+ } | {
92
+ type: "basic";
93
+ })[];
94
+ required: boolean;
95
+ }>;
96
+ skippedTools: z.ZodArray<z.ZodObject<{
97
+ name: z.ZodString;
98
+ reason: z.ZodString;
99
+ }, "strict", z.ZodTypeAny, {
100
+ name: string;
101
+ reason: string;
102
+ }, {
103
+ name: string;
104
+ reason: string;
105
+ }>, "many">;
106
+ environmentVariables: z.ZodArray<z.ZodObject<{
107
+ name: z.ZodString;
108
+ description: z.ZodString;
109
+ required: z.ZodBoolean;
110
+ }, "strict", z.ZodTypeAny, {
111
+ description: string;
112
+ name: string;
113
+ required: boolean;
114
+ }, {
115
+ description: string;
116
+ name: string;
117
+ required: boolean;
118
+ }>, "many">;
119
+ baseUrl: z.ZodEffects<z.ZodString, string, string>;
120
+ followRedirects: z.ZodBoolean;
121
+ maxRedirects: z.ZodNumber;
122
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
123
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
124
+ name: z.ZodString;
125
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
126
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
127
+ name: z.ZodString;
128
+ title: z.ZodString;
129
+ description: z.ZodString;
130
+ toolCount: z.ZodNumber;
131
+ }, "strict", z.ZodTypeAny, {
132
+ description: string;
133
+ name: string;
134
+ title: string;
135
+ toolCount: number;
136
+ }, {
137
+ description: string;
138
+ name: string;
139
+ title: string;
140
+ toolCount: number;
141
+ }>, "many">;
142
+ auth: z.ZodObject<{
143
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
144
+ type: z.ZodLiteral<"bearer">;
145
+ }, "strip", z.ZodTypeAny, {
146
+ type: "bearer";
147
+ }, {
148
+ type: "bearer";
149
+ }>, z.ZodObject<{
150
+ type: z.ZodLiteral<"apiKey">;
151
+ paramName: z.ZodString;
152
+ in: z.ZodEnum<["header", "query", "cookie"]>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "apiKey";
155
+ paramName: string;
156
+ in: "query" | "header" | "cookie";
157
+ }, {
158
+ type: "apiKey";
159
+ paramName: string;
160
+ in: "query" | "header" | "cookie";
161
+ }>, z.ZodObject<{
162
+ type: z.ZodLiteral<"basic">;
163
+ }, "strip", z.ZodTypeAny, {
164
+ type: "basic";
165
+ }, {
166
+ type: "basic";
167
+ }>]>, "many">;
168
+ required: z.ZodBoolean;
169
+ }, "strict", z.ZodTypeAny, {
170
+ schemes: ({
171
+ type: "bearer";
172
+ } | {
173
+ type: "apiKey";
174
+ paramName: string;
175
+ in: "query" | "header" | "cookie";
176
+ } | {
177
+ type: "basic";
178
+ })[];
179
+ required: boolean;
180
+ }, {
181
+ schemes: ({
182
+ type: "bearer";
183
+ } | {
184
+ type: "apiKey";
185
+ paramName: string;
186
+ in: "query" | "header" | "cookie";
187
+ } | {
188
+ type: "basic";
189
+ })[];
190
+ required: boolean;
191
+ }>;
192
+ skippedTools: z.ZodArray<z.ZodObject<{
193
+ name: z.ZodString;
194
+ reason: z.ZodString;
195
+ }, "strict", z.ZodTypeAny, {
196
+ name: string;
197
+ reason: string;
198
+ }, {
199
+ name: string;
200
+ reason: string;
201
+ }>, "many">;
202
+ environmentVariables: z.ZodArray<z.ZodObject<{
203
+ name: z.ZodString;
204
+ description: z.ZodString;
205
+ required: z.ZodBoolean;
206
+ }, "strict", z.ZodTypeAny, {
207
+ description: string;
208
+ name: string;
209
+ required: boolean;
210
+ }, {
211
+ description: string;
212
+ name: string;
213
+ required: boolean;
214
+ }>, "many">;
215
+ baseUrl: z.ZodEffects<z.ZodString, string, string>;
216
+ followRedirects: z.ZodBoolean;
217
+ maxRedirects: z.ZodNumber;
218
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
219
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
220
+ name: z.ZodString;
221
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
222
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
223
+ name: z.ZodString;
224
+ title: z.ZodString;
225
+ description: z.ZodString;
226
+ toolCount: z.ZodNumber;
227
+ }, "strict", z.ZodTypeAny, {
228
+ description: string;
229
+ name: string;
230
+ title: string;
231
+ toolCount: number;
232
+ }, {
233
+ description: string;
234
+ name: string;
235
+ title: string;
236
+ toolCount: number;
237
+ }>, "many">;
238
+ auth: z.ZodObject<{
239
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
240
+ type: z.ZodLiteral<"bearer">;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: "bearer";
243
+ }, {
244
+ type: "bearer";
245
+ }>, z.ZodObject<{
246
+ type: z.ZodLiteral<"apiKey">;
247
+ paramName: z.ZodString;
248
+ in: z.ZodEnum<["header", "query", "cookie"]>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ type: "apiKey";
251
+ paramName: string;
252
+ in: "query" | "header" | "cookie";
253
+ }, {
254
+ type: "apiKey";
255
+ paramName: string;
256
+ in: "query" | "header" | "cookie";
257
+ }>, z.ZodObject<{
258
+ type: z.ZodLiteral<"basic">;
259
+ }, "strip", z.ZodTypeAny, {
260
+ type: "basic";
261
+ }, {
262
+ type: "basic";
263
+ }>]>, "many">;
264
+ required: z.ZodBoolean;
265
+ }, "strict", z.ZodTypeAny, {
266
+ schemes: ({
267
+ type: "bearer";
268
+ } | {
269
+ type: "apiKey";
270
+ paramName: string;
271
+ in: "query" | "header" | "cookie";
272
+ } | {
273
+ type: "basic";
274
+ })[];
275
+ required: boolean;
276
+ }, {
277
+ schemes: ({
278
+ type: "bearer";
279
+ } | {
280
+ type: "apiKey";
281
+ paramName: string;
282
+ in: "query" | "header" | "cookie";
283
+ } | {
284
+ type: "basic";
285
+ })[];
286
+ required: boolean;
287
+ }>;
288
+ skippedTools: z.ZodArray<z.ZodObject<{
289
+ name: z.ZodString;
290
+ reason: z.ZodString;
291
+ }, "strict", z.ZodTypeAny, {
292
+ name: string;
293
+ reason: string;
294
+ }, {
295
+ name: string;
296
+ reason: string;
297
+ }>, "many">;
298
+ environmentVariables: z.ZodArray<z.ZodObject<{
299
+ name: z.ZodString;
300
+ description: z.ZodString;
301
+ required: z.ZodBoolean;
302
+ }, "strict", z.ZodTypeAny, {
303
+ description: string;
304
+ name: string;
305
+ required: boolean;
306
+ }, {
307
+ description: string;
308
+ name: string;
309
+ required: boolean;
310
+ }>, "many">;
311
+ baseUrl: z.ZodEffects<z.ZodString, string, string>;
312
+ followRedirects: z.ZodBoolean;
313
+ maxRedirects: z.ZodNumber;
314
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
315
+ }, z.ZodTypeAny, "passthrough">>;
316
+ export declare const DeploymentConfigSchema: z.ZodObject<{
317
+ serverName: z.ZodString;
318
+ baseUrl: z.ZodEffects<z.ZodString, string, string>;
319
+ /**
320
+ * Runtime rewrite of the upstream base URL. Part of the edge contract
321
+ * (the outbound worker honors it) but not yet written by FDR.
322
+ */
323
+ baseUrlOverride: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
324
+ followRedirects: z.ZodBoolean;
325
+ maxRedirects: z.ZodNumber;
326
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
327
+ authSchemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
328
+ type: z.ZodLiteral<"bearer">;
329
+ }, "strip", z.ZodTypeAny, {
330
+ type: "bearer";
331
+ }, {
332
+ type: "bearer";
333
+ }>, z.ZodObject<{
334
+ type: z.ZodLiteral<"apiKey">;
335
+ paramName: z.ZodString;
336
+ in: z.ZodEnum<["header", "query", "cookie"]>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ type: "apiKey";
339
+ paramName: string;
340
+ in: "query" | "header" | "cookie";
341
+ }, {
342
+ type: "apiKey";
343
+ paramName: string;
344
+ in: "query" | "header" | "cookie";
345
+ }>, z.ZodObject<{
346
+ type: z.ZodLiteral<"basic">;
347
+ }, "strip", z.ZodTypeAny, {
348
+ type: "basic";
349
+ }, {
350
+ type: "basic";
351
+ }>]>, "many">;
352
+ authRequired: z.ZodBoolean;
353
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
354
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
355
+ name: z.ZodString;
356
+ title: z.ZodString;
357
+ description: z.ZodString;
358
+ toolCount: z.ZodNumber;
359
+ }, "strict", z.ZodTypeAny, {
360
+ description: string;
361
+ name: string;
362
+ title: string;
363
+ toolCount: number;
364
+ }, {
365
+ description: string;
366
+ name: string;
367
+ title: string;
368
+ toolCount: number;
369
+ }>, "many">;
370
+ }, "strip", z.ZodTypeAny, {
371
+ baseUrl: string;
372
+ authSchemes: ({
373
+ type: "bearer";
374
+ } | {
375
+ type: "apiKey";
376
+ paramName: string;
377
+ in: "query" | "header" | "cookie";
378
+ } | {
379
+ type: "basic";
380
+ })[];
381
+ toolsets: Record<string, string[]>;
382
+ toolsetMetadata: {
383
+ description: string;
384
+ name: string;
385
+ title: string;
386
+ toolCount: number;
387
+ }[];
388
+ followRedirects: boolean;
389
+ maxRedirects: number;
390
+ allowedRedirectHosts: string[];
391
+ serverName: string;
392
+ authRequired: boolean;
393
+ baseUrlOverride?: string | undefined;
394
+ }, {
395
+ baseUrl: string;
396
+ authSchemes: ({
397
+ type: "bearer";
398
+ } | {
399
+ type: "apiKey";
400
+ paramName: string;
401
+ in: "query" | "header" | "cookie";
402
+ } | {
403
+ type: "basic";
404
+ })[];
405
+ toolsets: Record<string, string[]>;
406
+ toolsetMetadata: {
407
+ description: string;
408
+ name: string;
409
+ title: string;
410
+ toolCount: number;
411
+ }[];
412
+ followRedirects: boolean;
413
+ maxRedirects: number;
414
+ allowedRedirectHosts: string[];
415
+ serverName: string;
416
+ authRequired: boolean;
417
+ baseUrlOverride?: string | undefined;
418
+ }>;
419
+ export type DeploymentConfig = z.infer<typeof DeploymentConfigSchema>;
420
+ export type McpAuthScheme = z.infer<typeof McpAuthSchemeSchema>;
421
+ export type McpMetadata = z.infer<typeof McpMetadataSchema>;
422
+ /** Parse a runtime `config:` KV value. */
423
+ export declare function parseDeploymentConfig(json: string): DeploymentConfig;
424
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/mcp-hosting/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;IAQ9B,CAAC;AASH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAmCZ,CAAC;AAEnB,eAAO,MAAM,sBAAsB;;;IAG/B;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASL,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,0CAA0C;AAC1C,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAEpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/fdr-sdk",
3
- "version": "1.2.115-60bc9699d1",
3
+ "version": "1.2.116-4e00acf721",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern-platform.git",
@@ -81,6 +81,12 @@
81
81
  "require": "./dist/js/orpc-client.js",
82
82
  "default": "./dist/js/orpc-client.mjs"
83
83
  },
84
+ "./mcp-hosting-schemas": {
85
+ "types": "./dist/types/orpc-client/mcp-hosting/schemas.d.ts",
86
+ "import": "./dist/js/orpc-client/mcp-hosting/schemas.mjs",
87
+ "require": "./dist/js/orpc-client/mcp-hosting/schemas.js",
88
+ "default": "./dist/js/orpc-client/mcp-hosting/schemas.mjs"
89
+ },
84
90
  "./navigation/ledger-root-builder": {
85
91
  "types": "./dist/types/navigation/ledger-root-builder.d.ts",
86
92
  "import": "./dist/js/navigation/ledger-root-builder.mjs",