@fern-api/fdr-sdk 1.2.114-2dfb9e1373 → 1.2.114-60bc9699d1

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,2236 @@
1
+ import * as z from "zod";
2
+ 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
+ export declare const DeployMcpServerInputSchema: z.ZodEffects<z.ZodObject<{
318
+ orgId: z.ZodString;
319
+ slug: z.ZodString;
320
+ mainModule: z.ZodString;
321
+ compatibilityDate: z.ZodString;
322
+ compatibilityFlags: z.ZodArray<z.ZodString, "many">;
323
+ modules: z.ZodArray<z.ZodObject<{
324
+ name: z.ZodString;
325
+ hash: z.ZodString;
326
+ contentType: z.ZodString;
327
+ }, "strict", z.ZodTypeAny, {
328
+ name: string;
329
+ contentType: string;
330
+ hash: string;
331
+ }, {
332
+ name: string;
333
+ contentType: string;
334
+ hash: string;
335
+ }>, "many">;
336
+ metadata: z.ZodObject<{
337
+ name: z.ZodString;
338
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
339
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
340
+ name: z.ZodString;
341
+ title: z.ZodString;
342
+ description: z.ZodString;
343
+ toolCount: z.ZodNumber;
344
+ }, "strict", z.ZodTypeAny, {
345
+ description: string;
346
+ name: string;
347
+ title: string;
348
+ toolCount: number;
349
+ }, {
350
+ description: string;
351
+ name: string;
352
+ title: string;
353
+ toolCount: number;
354
+ }>, "many">;
355
+ auth: z.ZodObject<{
356
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
357
+ type: z.ZodLiteral<"bearer">;
358
+ }, "strip", z.ZodTypeAny, {
359
+ type: "bearer";
360
+ }, {
361
+ type: "bearer";
362
+ }>, z.ZodObject<{
363
+ type: z.ZodLiteral<"apiKey">;
364
+ paramName: z.ZodString;
365
+ in: z.ZodEnum<["header", "query", "cookie"]>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ type: "apiKey";
368
+ paramName: string;
369
+ in: "query" | "header" | "cookie";
370
+ }, {
371
+ type: "apiKey";
372
+ paramName: string;
373
+ in: "query" | "header" | "cookie";
374
+ }>, z.ZodObject<{
375
+ type: z.ZodLiteral<"basic">;
376
+ }, "strip", z.ZodTypeAny, {
377
+ type: "basic";
378
+ }, {
379
+ type: "basic";
380
+ }>]>, "many">;
381
+ required: z.ZodBoolean;
382
+ }, "strict", z.ZodTypeAny, {
383
+ schemes: ({
384
+ type: "bearer";
385
+ } | {
386
+ type: "apiKey";
387
+ paramName: string;
388
+ in: "query" | "header" | "cookie";
389
+ } | {
390
+ type: "basic";
391
+ })[];
392
+ required: boolean;
393
+ }, {
394
+ schemes: ({
395
+ type: "bearer";
396
+ } | {
397
+ type: "apiKey";
398
+ paramName: string;
399
+ in: "query" | "header" | "cookie";
400
+ } | {
401
+ type: "basic";
402
+ })[];
403
+ required: boolean;
404
+ }>;
405
+ skippedTools: z.ZodArray<z.ZodObject<{
406
+ name: z.ZodString;
407
+ reason: z.ZodString;
408
+ }, "strict", z.ZodTypeAny, {
409
+ name: string;
410
+ reason: string;
411
+ }, {
412
+ name: string;
413
+ reason: string;
414
+ }>, "many">;
415
+ environmentVariables: z.ZodArray<z.ZodObject<{
416
+ name: z.ZodString;
417
+ description: z.ZodString;
418
+ required: z.ZodBoolean;
419
+ }, "strict", z.ZodTypeAny, {
420
+ description: string;
421
+ name: string;
422
+ required: boolean;
423
+ }, {
424
+ description: string;
425
+ name: string;
426
+ required: boolean;
427
+ }>, "many">;
428
+ baseUrl: z.ZodString;
429
+ followRedirects: z.ZodBoolean;
430
+ maxRedirects: z.ZodNumber;
431
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
432
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
433
+ name: z.ZodString;
434
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
435
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
436
+ name: z.ZodString;
437
+ title: z.ZodString;
438
+ description: z.ZodString;
439
+ toolCount: z.ZodNumber;
440
+ }, "strict", z.ZodTypeAny, {
441
+ description: string;
442
+ name: string;
443
+ title: string;
444
+ toolCount: number;
445
+ }, {
446
+ description: string;
447
+ name: string;
448
+ title: string;
449
+ toolCount: number;
450
+ }>, "many">;
451
+ auth: z.ZodObject<{
452
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
453
+ type: z.ZodLiteral<"bearer">;
454
+ }, "strip", z.ZodTypeAny, {
455
+ type: "bearer";
456
+ }, {
457
+ type: "bearer";
458
+ }>, z.ZodObject<{
459
+ type: z.ZodLiteral<"apiKey">;
460
+ paramName: z.ZodString;
461
+ in: z.ZodEnum<["header", "query", "cookie"]>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ type: "apiKey";
464
+ paramName: string;
465
+ in: "query" | "header" | "cookie";
466
+ }, {
467
+ type: "apiKey";
468
+ paramName: string;
469
+ in: "query" | "header" | "cookie";
470
+ }>, z.ZodObject<{
471
+ type: z.ZodLiteral<"basic">;
472
+ }, "strip", z.ZodTypeAny, {
473
+ type: "basic";
474
+ }, {
475
+ type: "basic";
476
+ }>]>, "many">;
477
+ required: z.ZodBoolean;
478
+ }, "strict", z.ZodTypeAny, {
479
+ schemes: ({
480
+ type: "bearer";
481
+ } | {
482
+ type: "apiKey";
483
+ paramName: string;
484
+ in: "query" | "header" | "cookie";
485
+ } | {
486
+ type: "basic";
487
+ })[];
488
+ required: boolean;
489
+ }, {
490
+ schemes: ({
491
+ type: "bearer";
492
+ } | {
493
+ type: "apiKey";
494
+ paramName: string;
495
+ in: "query" | "header" | "cookie";
496
+ } | {
497
+ type: "basic";
498
+ })[];
499
+ required: boolean;
500
+ }>;
501
+ skippedTools: z.ZodArray<z.ZodObject<{
502
+ name: z.ZodString;
503
+ reason: z.ZodString;
504
+ }, "strict", z.ZodTypeAny, {
505
+ name: string;
506
+ reason: string;
507
+ }, {
508
+ name: string;
509
+ reason: string;
510
+ }>, "many">;
511
+ environmentVariables: z.ZodArray<z.ZodObject<{
512
+ name: z.ZodString;
513
+ description: z.ZodString;
514
+ required: z.ZodBoolean;
515
+ }, "strict", z.ZodTypeAny, {
516
+ description: string;
517
+ name: string;
518
+ required: boolean;
519
+ }, {
520
+ description: string;
521
+ name: string;
522
+ required: boolean;
523
+ }>, "many">;
524
+ baseUrl: z.ZodString;
525
+ followRedirects: z.ZodBoolean;
526
+ maxRedirects: z.ZodNumber;
527
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
528
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
529
+ name: z.ZodString;
530
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
531
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
532
+ name: z.ZodString;
533
+ title: z.ZodString;
534
+ description: z.ZodString;
535
+ toolCount: z.ZodNumber;
536
+ }, "strict", z.ZodTypeAny, {
537
+ description: string;
538
+ name: string;
539
+ title: string;
540
+ toolCount: number;
541
+ }, {
542
+ description: string;
543
+ name: string;
544
+ title: string;
545
+ toolCount: number;
546
+ }>, "many">;
547
+ auth: z.ZodObject<{
548
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
549
+ type: z.ZodLiteral<"bearer">;
550
+ }, "strip", z.ZodTypeAny, {
551
+ type: "bearer";
552
+ }, {
553
+ type: "bearer";
554
+ }>, z.ZodObject<{
555
+ type: z.ZodLiteral<"apiKey">;
556
+ paramName: z.ZodString;
557
+ in: z.ZodEnum<["header", "query", "cookie"]>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "apiKey";
560
+ paramName: string;
561
+ in: "query" | "header" | "cookie";
562
+ }, {
563
+ type: "apiKey";
564
+ paramName: string;
565
+ in: "query" | "header" | "cookie";
566
+ }>, z.ZodObject<{
567
+ type: z.ZodLiteral<"basic">;
568
+ }, "strip", z.ZodTypeAny, {
569
+ type: "basic";
570
+ }, {
571
+ type: "basic";
572
+ }>]>, "many">;
573
+ required: z.ZodBoolean;
574
+ }, "strict", z.ZodTypeAny, {
575
+ schemes: ({
576
+ type: "bearer";
577
+ } | {
578
+ type: "apiKey";
579
+ paramName: string;
580
+ in: "query" | "header" | "cookie";
581
+ } | {
582
+ type: "basic";
583
+ })[];
584
+ required: boolean;
585
+ }, {
586
+ schemes: ({
587
+ type: "bearer";
588
+ } | {
589
+ type: "apiKey";
590
+ paramName: string;
591
+ in: "query" | "header" | "cookie";
592
+ } | {
593
+ type: "basic";
594
+ })[];
595
+ required: boolean;
596
+ }>;
597
+ skippedTools: z.ZodArray<z.ZodObject<{
598
+ name: z.ZodString;
599
+ reason: z.ZodString;
600
+ }, "strict", z.ZodTypeAny, {
601
+ name: string;
602
+ reason: string;
603
+ }, {
604
+ name: string;
605
+ reason: string;
606
+ }>, "many">;
607
+ environmentVariables: z.ZodArray<z.ZodObject<{
608
+ name: z.ZodString;
609
+ description: z.ZodString;
610
+ required: z.ZodBoolean;
611
+ }, "strict", z.ZodTypeAny, {
612
+ description: string;
613
+ name: string;
614
+ required: boolean;
615
+ }, {
616
+ description: string;
617
+ name: string;
618
+ required: boolean;
619
+ }>, "many">;
620
+ baseUrl: z.ZodString;
621
+ followRedirects: z.ZodBoolean;
622
+ maxRedirects: z.ZodNumber;
623
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
624
+ }, z.ZodTypeAny, "passthrough">>;
625
+ config: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
626
+ generatorName: z.ZodString;
627
+ generatorVersion: z.ZodString;
628
+ cliVersion: z.ZodOptional<z.ZodString>;
629
+ git: z.ZodOptional<z.ZodObject<{
630
+ repoUrl: z.ZodString;
631
+ branch: z.ZodString;
632
+ commitSha: z.ZodOptional<z.ZodString>;
633
+ }, "strict", z.ZodTypeAny, {
634
+ branch: string;
635
+ repoUrl: string;
636
+ commitSha?: string | undefined;
637
+ }, {
638
+ branch: string;
639
+ repoUrl: string;
640
+ commitSha?: string | undefined;
641
+ }>>;
642
+ }, "strict", z.ZodTypeAny, {
643
+ orgId: string;
644
+ metadata: {
645
+ baseUrl: string;
646
+ name: string;
647
+ auth: {
648
+ schemes: ({
649
+ type: "bearer";
650
+ } | {
651
+ type: "apiKey";
652
+ paramName: string;
653
+ in: "query" | "header" | "cookie";
654
+ } | {
655
+ type: "basic";
656
+ })[];
657
+ required: boolean;
658
+ };
659
+ toolsets: Record<string, string[]>;
660
+ toolsetMetadata: {
661
+ description: string;
662
+ name: string;
663
+ title: string;
664
+ toolCount: number;
665
+ }[];
666
+ skippedTools: {
667
+ name: string;
668
+ reason: string;
669
+ }[];
670
+ environmentVariables: {
671
+ description: string;
672
+ name: string;
673
+ required: boolean;
674
+ }[];
675
+ followRedirects: boolean;
676
+ maxRedirects: number;
677
+ allowedRedirectHosts: string[];
678
+ } & {
679
+ [k: string]: unknown;
680
+ };
681
+ slug: string;
682
+ mainModule: string;
683
+ compatibilityDate: string;
684
+ compatibilityFlags: string[];
685
+ modules: {
686
+ name: string;
687
+ contentType: string;
688
+ hash: string;
689
+ }[];
690
+ generatorName: string;
691
+ generatorVersion: string;
692
+ config?: unknown;
693
+ git?: {
694
+ branch: string;
695
+ repoUrl: string;
696
+ commitSha?: string | undefined;
697
+ } | undefined;
698
+ cliVersion?: string | undefined;
699
+ }, {
700
+ orgId: string;
701
+ metadata: {
702
+ baseUrl: string;
703
+ name: string;
704
+ auth: {
705
+ schemes: ({
706
+ type: "bearer";
707
+ } | {
708
+ type: "apiKey";
709
+ paramName: string;
710
+ in: "query" | "header" | "cookie";
711
+ } | {
712
+ type: "basic";
713
+ })[];
714
+ required: boolean;
715
+ };
716
+ toolsets: Record<string, string[]>;
717
+ toolsetMetadata: {
718
+ description: string;
719
+ name: string;
720
+ title: string;
721
+ toolCount: number;
722
+ }[];
723
+ skippedTools: {
724
+ name: string;
725
+ reason: string;
726
+ }[];
727
+ environmentVariables: {
728
+ description: string;
729
+ name: string;
730
+ required: boolean;
731
+ }[];
732
+ followRedirects: boolean;
733
+ maxRedirects: number;
734
+ allowedRedirectHosts: string[];
735
+ } & {
736
+ [k: string]: unknown;
737
+ };
738
+ slug: string;
739
+ mainModule: string;
740
+ compatibilityDate: string;
741
+ compatibilityFlags: string[];
742
+ modules: {
743
+ name: string;
744
+ contentType: string;
745
+ hash: string;
746
+ }[];
747
+ generatorName: string;
748
+ generatorVersion: string;
749
+ config?: unknown;
750
+ git?: {
751
+ branch: string;
752
+ repoUrl: string;
753
+ commitSha?: string | undefined;
754
+ } | undefined;
755
+ cliVersion?: string | undefined;
756
+ }>, {
757
+ orgId: string;
758
+ metadata: {
759
+ baseUrl: string;
760
+ name: string;
761
+ auth: {
762
+ schemes: ({
763
+ type: "bearer";
764
+ } | {
765
+ type: "apiKey";
766
+ paramName: string;
767
+ in: "query" | "header" | "cookie";
768
+ } | {
769
+ type: "basic";
770
+ })[];
771
+ required: boolean;
772
+ };
773
+ toolsets: Record<string, string[]>;
774
+ toolsetMetadata: {
775
+ description: string;
776
+ name: string;
777
+ title: string;
778
+ toolCount: number;
779
+ }[];
780
+ skippedTools: {
781
+ name: string;
782
+ reason: string;
783
+ }[];
784
+ environmentVariables: {
785
+ description: string;
786
+ name: string;
787
+ required: boolean;
788
+ }[];
789
+ followRedirects: boolean;
790
+ maxRedirects: number;
791
+ allowedRedirectHosts: string[];
792
+ } & {
793
+ [k: string]: unknown;
794
+ };
795
+ slug: string;
796
+ mainModule: string;
797
+ compatibilityDate: string;
798
+ compatibilityFlags: string[];
799
+ modules: {
800
+ name: string;
801
+ contentType: string;
802
+ hash: string;
803
+ }[];
804
+ generatorName: string;
805
+ generatorVersion: string;
806
+ config?: unknown;
807
+ git?: {
808
+ branch: string;
809
+ repoUrl: string;
810
+ commitSha?: string | undefined;
811
+ } | undefined;
812
+ cliVersion?: string | undefined;
813
+ }, {
814
+ orgId: string;
815
+ metadata: {
816
+ baseUrl: string;
817
+ name: string;
818
+ auth: {
819
+ schemes: ({
820
+ type: "bearer";
821
+ } | {
822
+ type: "apiKey";
823
+ paramName: string;
824
+ in: "query" | "header" | "cookie";
825
+ } | {
826
+ type: "basic";
827
+ })[];
828
+ required: boolean;
829
+ };
830
+ toolsets: Record<string, string[]>;
831
+ toolsetMetadata: {
832
+ description: string;
833
+ name: string;
834
+ title: string;
835
+ toolCount: number;
836
+ }[];
837
+ skippedTools: {
838
+ name: string;
839
+ reason: string;
840
+ }[];
841
+ environmentVariables: {
842
+ description: string;
843
+ name: string;
844
+ required: boolean;
845
+ }[];
846
+ followRedirects: boolean;
847
+ maxRedirects: number;
848
+ allowedRedirectHosts: string[];
849
+ } & {
850
+ [k: string]: unknown;
851
+ };
852
+ slug: string;
853
+ mainModule: string;
854
+ compatibilityDate: string;
855
+ compatibilityFlags: string[];
856
+ modules: {
857
+ name: string;
858
+ contentType: string;
859
+ hash: string;
860
+ }[];
861
+ generatorName: string;
862
+ generatorVersion: string;
863
+ config?: unknown;
864
+ git?: {
865
+ branch: string;
866
+ repoUrl: string;
867
+ commitSha?: string | undefined;
868
+ } | undefined;
869
+ cliVersion?: string | undefined;
870
+ }>;
871
+ export declare const GetMcpServerInputSchema: z.ZodObject<{
872
+ orgId: z.ZodString;
873
+ slug: z.ZodString;
874
+ }, "strip", z.ZodTypeAny, {
875
+ orgId: string;
876
+ slug: string;
877
+ }, {
878
+ orgId: string;
879
+ slug: string;
880
+ }>;
881
+ export declare const ListMcpServersInputSchema: z.ZodObject<{
882
+ orgId: z.ZodString;
883
+ }, "strip", z.ZodTypeAny, {
884
+ orgId: string;
885
+ }, {
886
+ orgId: string;
887
+ }>;
888
+ export declare const ListMcpDeploymentsInputSchema: z.ZodObject<{
889
+ orgId: z.ZodString;
890
+ slug: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ orgId: string;
893
+ slug: string;
894
+ }, {
895
+ orgId: string;
896
+ slug: string;
897
+ }>;
898
+ export declare const DeleteMcpServerInputSchema: z.ZodObject<{
899
+ orgId: z.ZodString;
900
+ slug: z.ZodString;
901
+ }, "strip", z.ZodTypeAny, {
902
+ orgId: string;
903
+ slug: string;
904
+ }, {
905
+ orgId: string;
906
+ slug: string;
907
+ }>;
908
+ export declare const McpDeploymentSummarySchema: z.ZodObject<{
909
+ id: z.ZodString;
910
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
911
+ /** True when this deployment is the one the server currently serves. */
912
+ isActive: z.ZodBoolean;
913
+ generatorVersion: z.ZodString;
914
+ createdAt: z.ZodString;
915
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
917
+ name: z.ZodString;
918
+ message: z.ZodString;
919
+ }, "strip", z.ZodTypeAny, {
920
+ message: string;
921
+ name: string;
922
+ }, {
923
+ message: string;
924
+ name: string;
925
+ }>>>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
928
+ id: string;
929
+ createdAt: string;
930
+ generatorVersion: string;
931
+ isActive: boolean;
932
+ error?: {
933
+ message: string;
934
+ name: string;
935
+ } | null | undefined;
936
+ createdBy?: string | null | undefined;
937
+ }, {
938
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
939
+ id: string;
940
+ createdAt: string;
941
+ generatorVersion: string;
942
+ isActive: boolean;
943
+ error?: {
944
+ message: string;
945
+ name: string;
946
+ } | null | undefined;
947
+ createdBy?: string | null | undefined;
948
+ }>;
949
+ export declare const McpServerSchema: z.ZodObject<{
950
+ id: z.ZodString;
951
+ orgId: z.ZodString;
952
+ slug: z.ZodString;
953
+ /** The server is serving iff this is set; it names the serving deployment. */
954
+ activeDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
+ /** Most recent publication attempt — how the last deploy went. */
956
+ latestDeployment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
957
+ id: z.ZodString;
958
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
959
+ /** True when this deployment is the one the server currently serves. */
960
+ isActive: z.ZodBoolean;
961
+ generatorVersion: z.ZodString;
962
+ createdAt: z.ZodString;
963
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
965
+ name: z.ZodString;
966
+ message: z.ZodString;
967
+ }, "strip", z.ZodTypeAny, {
968
+ message: string;
969
+ name: string;
970
+ }, {
971
+ message: string;
972
+ name: string;
973
+ }>>>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
976
+ id: string;
977
+ createdAt: string;
978
+ generatorVersion: string;
979
+ isActive: boolean;
980
+ error?: {
981
+ message: string;
982
+ name: string;
983
+ } | null | undefined;
984
+ createdBy?: string | null | undefined;
985
+ }, {
986
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
987
+ id: string;
988
+ createdAt: string;
989
+ generatorVersion: string;
990
+ isActive: boolean;
991
+ error?: {
992
+ message: string;
993
+ name: string;
994
+ } | null | undefined;
995
+ createdBy?: string | null | undefined;
996
+ }>>>;
997
+ url: z.ZodString;
998
+ createdAt: z.ZodString;
999
+ updatedAt: z.ZodString;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ id: string;
1002
+ url: string;
1003
+ orgId: string;
1004
+ updatedAt: string;
1005
+ slug: string;
1006
+ createdAt: string;
1007
+ activeDeploymentId?: string | null | undefined;
1008
+ latestDeployment?: {
1009
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1010
+ id: string;
1011
+ createdAt: string;
1012
+ generatorVersion: string;
1013
+ isActive: boolean;
1014
+ error?: {
1015
+ message: string;
1016
+ name: string;
1017
+ } | null | undefined;
1018
+ createdBy?: string | null | undefined;
1019
+ } | null | undefined;
1020
+ }, {
1021
+ id: string;
1022
+ url: string;
1023
+ orgId: string;
1024
+ updatedAt: string;
1025
+ slug: string;
1026
+ createdAt: string;
1027
+ activeDeploymentId?: string | null | undefined;
1028
+ latestDeployment?: {
1029
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1030
+ id: string;
1031
+ createdAt: string;
1032
+ generatorVersion: string;
1033
+ isActive: boolean;
1034
+ error?: {
1035
+ message: string;
1036
+ name: string;
1037
+ } | null | undefined;
1038
+ createdBy?: string | null | undefined;
1039
+ } | null | undefined;
1040
+ }>;
1041
+ export declare const ListMcpServersResponseSchema: z.ZodObject<{
1042
+ servers: z.ZodArray<z.ZodObject<{
1043
+ id: z.ZodString;
1044
+ orgId: z.ZodString;
1045
+ slug: z.ZodString;
1046
+ /** The server is serving iff this is set; it names the serving deployment. */
1047
+ activeDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1048
+ /** Most recent publication attempt — how the last deploy went. */
1049
+ latestDeployment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1050
+ id: z.ZodString;
1051
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
1052
+ /** True when this deployment is the one the server currently serves. */
1053
+ isActive: z.ZodBoolean;
1054
+ generatorVersion: z.ZodString;
1055
+ createdAt: z.ZodString;
1056
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1058
+ name: z.ZodString;
1059
+ message: z.ZodString;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ message: string;
1062
+ name: string;
1063
+ }, {
1064
+ message: string;
1065
+ name: string;
1066
+ }>>>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1069
+ id: string;
1070
+ createdAt: string;
1071
+ generatorVersion: string;
1072
+ isActive: boolean;
1073
+ error?: {
1074
+ message: string;
1075
+ name: string;
1076
+ } | null | undefined;
1077
+ createdBy?: string | null | undefined;
1078
+ }, {
1079
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1080
+ id: string;
1081
+ createdAt: string;
1082
+ generatorVersion: string;
1083
+ isActive: boolean;
1084
+ error?: {
1085
+ message: string;
1086
+ name: string;
1087
+ } | null | undefined;
1088
+ createdBy?: string | null | undefined;
1089
+ }>>>;
1090
+ url: z.ZodString;
1091
+ createdAt: z.ZodString;
1092
+ updatedAt: z.ZodString;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ id: string;
1095
+ url: string;
1096
+ orgId: string;
1097
+ updatedAt: string;
1098
+ slug: string;
1099
+ createdAt: string;
1100
+ activeDeploymentId?: string | null | undefined;
1101
+ latestDeployment?: {
1102
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1103
+ id: string;
1104
+ createdAt: string;
1105
+ generatorVersion: string;
1106
+ isActive: boolean;
1107
+ error?: {
1108
+ message: string;
1109
+ name: string;
1110
+ } | null | undefined;
1111
+ createdBy?: string | null | undefined;
1112
+ } | null | undefined;
1113
+ }, {
1114
+ id: string;
1115
+ url: string;
1116
+ orgId: string;
1117
+ updatedAt: string;
1118
+ slug: string;
1119
+ createdAt: string;
1120
+ activeDeploymentId?: string | null | undefined;
1121
+ latestDeployment?: {
1122
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1123
+ id: string;
1124
+ createdAt: string;
1125
+ generatorVersion: string;
1126
+ isActive: boolean;
1127
+ error?: {
1128
+ message: string;
1129
+ name: string;
1130
+ } | null | undefined;
1131
+ createdBy?: string | null | undefined;
1132
+ } | null | undefined;
1133
+ }>, "many">;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ servers: {
1136
+ id: string;
1137
+ url: string;
1138
+ orgId: string;
1139
+ updatedAt: string;
1140
+ slug: string;
1141
+ createdAt: string;
1142
+ activeDeploymentId?: string | null | undefined;
1143
+ latestDeployment?: {
1144
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1145
+ id: string;
1146
+ createdAt: string;
1147
+ generatorVersion: string;
1148
+ isActive: boolean;
1149
+ error?: {
1150
+ message: string;
1151
+ name: string;
1152
+ } | null | undefined;
1153
+ createdBy?: string | null | undefined;
1154
+ } | null | undefined;
1155
+ }[];
1156
+ }, {
1157
+ servers: {
1158
+ id: string;
1159
+ url: string;
1160
+ orgId: string;
1161
+ updatedAt: string;
1162
+ slug: string;
1163
+ createdAt: string;
1164
+ activeDeploymentId?: string | null | undefined;
1165
+ latestDeployment?: {
1166
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1167
+ id: string;
1168
+ createdAt: string;
1169
+ generatorVersion: string;
1170
+ isActive: boolean;
1171
+ error?: {
1172
+ message: string;
1173
+ name: string;
1174
+ } | null | undefined;
1175
+ createdBy?: string | null | undefined;
1176
+ } | null | undefined;
1177
+ }[];
1178
+ }>;
1179
+ export declare const ListMcpDeploymentsResponseSchema: z.ZodObject<{
1180
+ deployments: z.ZodArray<z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
1183
+ /** True when this deployment is the one the server currently serves. */
1184
+ isActive: z.ZodBoolean;
1185
+ generatorVersion: z.ZodString;
1186
+ createdAt: z.ZodString;
1187
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1188
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1189
+ name: z.ZodString;
1190
+ message: z.ZodString;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ message: string;
1193
+ name: string;
1194
+ }, {
1195
+ message: string;
1196
+ name: string;
1197
+ }>>>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1200
+ id: string;
1201
+ createdAt: string;
1202
+ generatorVersion: string;
1203
+ isActive: boolean;
1204
+ error?: {
1205
+ message: string;
1206
+ name: string;
1207
+ } | null | undefined;
1208
+ createdBy?: string | null | undefined;
1209
+ }, {
1210
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1211
+ id: string;
1212
+ createdAt: string;
1213
+ generatorVersion: string;
1214
+ isActive: boolean;
1215
+ error?: {
1216
+ message: string;
1217
+ name: string;
1218
+ } | null | undefined;
1219
+ createdBy?: string | null | undefined;
1220
+ }>, "many">;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ deployments: {
1223
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1224
+ id: string;
1225
+ createdAt: string;
1226
+ generatorVersion: string;
1227
+ isActive: boolean;
1228
+ error?: {
1229
+ message: string;
1230
+ name: string;
1231
+ } | null | undefined;
1232
+ createdBy?: string | null | undefined;
1233
+ }[];
1234
+ }, {
1235
+ deployments: {
1236
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1237
+ id: string;
1238
+ createdAt: string;
1239
+ generatorVersion: string;
1240
+ isActive: boolean;
1241
+ error?: {
1242
+ message: string;
1243
+ name: string;
1244
+ } | null | undefined;
1245
+ createdBy?: string | null | undefined;
1246
+ }[];
1247
+ }>;
1248
+ export type McpDeploymentStatus = z.infer<typeof McpDeploymentStatusSchema>;
1249
+ export type McpAuthScheme = z.infer<typeof McpAuthSchemeSchema>;
1250
+ export type McpMetadata = z.infer<typeof McpMetadataSchema>;
1251
+ export type DeployMcpServerInput = z.infer<typeof DeployMcpServerInputSchema>;
1252
+ export type McpServer = z.infer<typeof McpServerSchema>;
1253
+ export type McpDeploymentSummary = z.infer<typeof McpDeploymentSummarySchema>;
1254
+ export type ListMcpServersResponse = z.infer<typeof ListMcpServersResponseSchema>;
1255
+ export type ListMcpDeploymentsResponse = z.infer<typeof ListMcpDeploymentsResponseSchema>;
1256
+ export declare const mcpHostingContract: {
1257
+ deploy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodEffects<z.ZodObject<{
1258
+ orgId: z.ZodString;
1259
+ slug: z.ZodString;
1260
+ mainModule: z.ZodString;
1261
+ compatibilityDate: z.ZodString;
1262
+ compatibilityFlags: z.ZodArray<z.ZodString, "many">;
1263
+ modules: z.ZodArray<z.ZodObject<{
1264
+ name: z.ZodString;
1265
+ hash: z.ZodString;
1266
+ contentType: z.ZodString;
1267
+ }, "strict", z.ZodTypeAny, {
1268
+ name: string;
1269
+ contentType: string;
1270
+ hash: string;
1271
+ }, {
1272
+ name: string;
1273
+ contentType: string;
1274
+ hash: string;
1275
+ }>, "many">;
1276
+ metadata: z.ZodObject<{
1277
+ name: z.ZodString;
1278
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1279
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
1280
+ name: z.ZodString;
1281
+ title: z.ZodString;
1282
+ description: z.ZodString;
1283
+ toolCount: z.ZodNumber;
1284
+ }, "strict", z.ZodTypeAny, {
1285
+ description: string;
1286
+ name: string;
1287
+ title: string;
1288
+ toolCount: number;
1289
+ }, {
1290
+ description: string;
1291
+ name: string;
1292
+ title: string;
1293
+ toolCount: number;
1294
+ }>, "many">;
1295
+ auth: z.ZodObject<{
1296
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1297
+ type: z.ZodLiteral<"bearer">;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ type: "bearer";
1300
+ }, {
1301
+ type: "bearer";
1302
+ }>, z.ZodObject<{
1303
+ type: z.ZodLiteral<"apiKey">;
1304
+ paramName: z.ZodString;
1305
+ in: z.ZodEnum<["header", "query", "cookie"]>;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ type: "apiKey";
1308
+ paramName: string;
1309
+ in: "query" | "header" | "cookie";
1310
+ }, {
1311
+ type: "apiKey";
1312
+ paramName: string;
1313
+ in: "query" | "header" | "cookie";
1314
+ }>, z.ZodObject<{
1315
+ type: z.ZodLiteral<"basic">;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type: "basic";
1318
+ }, {
1319
+ type: "basic";
1320
+ }>]>, "many">;
1321
+ required: z.ZodBoolean;
1322
+ }, "strict", z.ZodTypeAny, {
1323
+ schemes: ({
1324
+ type: "bearer";
1325
+ } | {
1326
+ type: "apiKey";
1327
+ paramName: string;
1328
+ in: "query" | "header" | "cookie";
1329
+ } | {
1330
+ type: "basic";
1331
+ })[];
1332
+ required: boolean;
1333
+ }, {
1334
+ schemes: ({
1335
+ type: "bearer";
1336
+ } | {
1337
+ type: "apiKey";
1338
+ paramName: string;
1339
+ in: "query" | "header" | "cookie";
1340
+ } | {
1341
+ type: "basic";
1342
+ })[];
1343
+ required: boolean;
1344
+ }>;
1345
+ skippedTools: z.ZodArray<z.ZodObject<{
1346
+ name: z.ZodString;
1347
+ reason: z.ZodString;
1348
+ }, "strict", z.ZodTypeAny, {
1349
+ name: string;
1350
+ reason: string;
1351
+ }, {
1352
+ name: string;
1353
+ reason: string;
1354
+ }>, "many">;
1355
+ environmentVariables: z.ZodArray<z.ZodObject<{
1356
+ name: z.ZodString;
1357
+ description: z.ZodString;
1358
+ required: z.ZodBoolean;
1359
+ }, "strict", z.ZodTypeAny, {
1360
+ description: string;
1361
+ name: string;
1362
+ required: boolean;
1363
+ }, {
1364
+ description: string;
1365
+ name: string;
1366
+ required: boolean;
1367
+ }>, "many">;
1368
+ baseUrl: z.ZodString;
1369
+ followRedirects: z.ZodBoolean;
1370
+ maxRedirects: z.ZodNumber;
1371
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
1372
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1373
+ name: z.ZodString;
1374
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1375
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
1376
+ name: z.ZodString;
1377
+ title: z.ZodString;
1378
+ description: z.ZodString;
1379
+ toolCount: z.ZodNumber;
1380
+ }, "strict", z.ZodTypeAny, {
1381
+ description: string;
1382
+ name: string;
1383
+ title: string;
1384
+ toolCount: number;
1385
+ }, {
1386
+ description: string;
1387
+ name: string;
1388
+ title: string;
1389
+ toolCount: number;
1390
+ }>, "many">;
1391
+ auth: z.ZodObject<{
1392
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1393
+ type: z.ZodLiteral<"bearer">;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ type: "bearer";
1396
+ }, {
1397
+ type: "bearer";
1398
+ }>, z.ZodObject<{
1399
+ type: z.ZodLiteral<"apiKey">;
1400
+ paramName: z.ZodString;
1401
+ in: z.ZodEnum<["header", "query", "cookie"]>;
1402
+ }, "strip", z.ZodTypeAny, {
1403
+ type: "apiKey";
1404
+ paramName: string;
1405
+ in: "query" | "header" | "cookie";
1406
+ }, {
1407
+ type: "apiKey";
1408
+ paramName: string;
1409
+ in: "query" | "header" | "cookie";
1410
+ }>, z.ZodObject<{
1411
+ type: z.ZodLiteral<"basic">;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "basic";
1414
+ }, {
1415
+ type: "basic";
1416
+ }>]>, "many">;
1417
+ required: z.ZodBoolean;
1418
+ }, "strict", z.ZodTypeAny, {
1419
+ schemes: ({
1420
+ type: "bearer";
1421
+ } | {
1422
+ type: "apiKey";
1423
+ paramName: string;
1424
+ in: "query" | "header" | "cookie";
1425
+ } | {
1426
+ type: "basic";
1427
+ })[];
1428
+ required: boolean;
1429
+ }, {
1430
+ schemes: ({
1431
+ type: "bearer";
1432
+ } | {
1433
+ type: "apiKey";
1434
+ paramName: string;
1435
+ in: "query" | "header" | "cookie";
1436
+ } | {
1437
+ type: "basic";
1438
+ })[];
1439
+ required: boolean;
1440
+ }>;
1441
+ skippedTools: z.ZodArray<z.ZodObject<{
1442
+ name: z.ZodString;
1443
+ reason: z.ZodString;
1444
+ }, "strict", z.ZodTypeAny, {
1445
+ name: string;
1446
+ reason: string;
1447
+ }, {
1448
+ name: string;
1449
+ reason: string;
1450
+ }>, "many">;
1451
+ environmentVariables: z.ZodArray<z.ZodObject<{
1452
+ name: z.ZodString;
1453
+ description: z.ZodString;
1454
+ required: z.ZodBoolean;
1455
+ }, "strict", z.ZodTypeAny, {
1456
+ description: string;
1457
+ name: string;
1458
+ required: boolean;
1459
+ }, {
1460
+ description: string;
1461
+ name: string;
1462
+ required: boolean;
1463
+ }>, "many">;
1464
+ baseUrl: z.ZodString;
1465
+ followRedirects: z.ZodBoolean;
1466
+ maxRedirects: z.ZodNumber;
1467
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
1468
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1469
+ name: z.ZodString;
1470
+ toolsets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1471
+ toolsetMetadata: z.ZodArray<z.ZodObject<{
1472
+ name: z.ZodString;
1473
+ title: z.ZodString;
1474
+ description: z.ZodString;
1475
+ toolCount: z.ZodNumber;
1476
+ }, "strict", z.ZodTypeAny, {
1477
+ description: string;
1478
+ name: string;
1479
+ title: string;
1480
+ toolCount: number;
1481
+ }, {
1482
+ description: string;
1483
+ name: string;
1484
+ title: string;
1485
+ toolCount: number;
1486
+ }>, "many">;
1487
+ auth: z.ZodObject<{
1488
+ schemes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1489
+ type: z.ZodLiteral<"bearer">;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ type: "bearer";
1492
+ }, {
1493
+ type: "bearer";
1494
+ }>, z.ZodObject<{
1495
+ type: z.ZodLiteral<"apiKey">;
1496
+ paramName: z.ZodString;
1497
+ in: z.ZodEnum<["header", "query", "cookie"]>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ type: "apiKey";
1500
+ paramName: string;
1501
+ in: "query" | "header" | "cookie";
1502
+ }, {
1503
+ type: "apiKey";
1504
+ paramName: string;
1505
+ in: "query" | "header" | "cookie";
1506
+ }>, z.ZodObject<{
1507
+ type: z.ZodLiteral<"basic">;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ type: "basic";
1510
+ }, {
1511
+ type: "basic";
1512
+ }>]>, "many">;
1513
+ required: z.ZodBoolean;
1514
+ }, "strict", z.ZodTypeAny, {
1515
+ schemes: ({
1516
+ type: "bearer";
1517
+ } | {
1518
+ type: "apiKey";
1519
+ paramName: string;
1520
+ in: "query" | "header" | "cookie";
1521
+ } | {
1522
+ type: "basic";
1523
+ })[];
1524
+ required: boolean;
1525
+ }, {
1526
+ schemes: ({
1527
+ type: "bearer";
1528
+ } | {
1529
+ type: "apiKey";
1530
+ paramName: string;
1531
+ in: "query" | "header" | "cookie";
1532
+ } | {
1533
+ type: "basic";
1534
+ })[];
1535
+ required: boolean;
1536
+ }>;
1537
+ skippedTools: z.ZodArray<z.ZodObject<{
1538
+ name: z.ZodString;
1539
+ reason: z.ZodString;
1540
+ }, "strict", z.ZodTypeAny, {
1541
+ name: string;
1542
+ reason: string;
1543
+ }, {
1544
+ name: string;
1545
+ reason: string;
1546
+ }>, "many">;
1547
+ environmentVariables: z.ZodArray<z.ZodObject<{
1548
+ name: z.ZodString;
1549
+ description: z.ZodString;
1550
+ required: z.ZodBoolean;
1551
+ }, "strict", z.ZodTypeAny, {
1552
+ description: string;
1553
+ name: string;
1554
+ required: boolean;
1555
+ }, {
1556
+ description: string;
1557
+ name: string;
1558
+ required: boolean;
1559
+ }>, "many">;
1560
+ baseUrl: z.ZodString;
1561
+ followRedirects: z.ZodBoolean;
1562
+ maxRedirects: z.ZodNumber;
1563
+ allowedRedirectHosts: z.ZodArray<z.ZodString, "many">;
1564
+ }, z.ZodTypeAny, "passthrough">>;
1565
+ config: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
1566
+ generatorName: z.ZodString;
1567
+ generatorVersion: z.ZodString;
1568
+ cliVersion: z.ZodOptional<z.ZodString>;
1569
+ git: z.ZodOptional<z.ZodObject<{
1570
+ repoUrl: z.ZodString;
1571
+ branch: z.ZodString;
1572
+ commitSha: z.ZodOptional<z.ZodString>;
1573
+ }, "strict", z.ZodTypeAny, {
1574
+ branch: string;
1575
+ repoUrl: string;
1576
+ commitSha?: string | undefined;
1577
+ }, {
1578
+ branch: string;
1579
+ repoUrl: string;
1580
+ commitSha?: string | undefined;
1581
+ }>>;
1582
+ }, "strict", z.ZodTypeAny, {
1583
+ orgId: string;
1584
+ metadata: {
1585
+ baseUrl: string;
1586
+ name: string;
1587
+ auth: {
1588
+ schemes: ({
1589
+ type: "bearer";
1590
+ } | {
1591
+ type: "apiKey";
1592
+ paramName: string;
1593
+ in: "query" | "header" | "cookie";
1594
+ } | {
1595
+ type: "basic";
1596
+ })[];
1597
+ required: boolean;
1598
+ };
1599
+ toolsets: Record<string, string[]>;
1600
+ toolsetMetadata: {
1601
+ description: string;
1602
+ name: string;
1603
+ title: string;
1604
+ toolCount: number;
1605
+ }[];
1606
+ skippedTools: {
1607
+ name: string;
1608
+ reason: string;
1609
+ }[];
1610
+ environmentVariables: {
1611
+ description: string;
1612
+ name: string;
1613
+ required: boolean;
1614
+ }[];
1615
+ followRedirects: boolean;
1616
+ maxRedirects: number;
1617
+ allowedRedirectHosts: string[];
1618
+ } & {
1619
+ [k: string]: unknown;
1620
+ };
1621
+ slug: string;
1622
+ mainModule: string;
1623
+ compatibilityDate: string;
1624
+ compatibilityFlags: string[];
1625
+ modules: {
1626
+ name: string;
1627
+ contentType: string;
1628
+ hash: string;
1629
+ }[];
1630
+ generatorName: string;
1631
+ generatorVersion: string;
1632
+ config?: unknown;
1633
+ git?: {
1634
+ branch: string;
1635
+ repoUrl: string;
1636
+ commitSha?: string | undefined;
1637
+ } | undefined;
1638
+ cliVersion?: string | undefined;
1639
+ }, {
1640
+ orgId: string;
1641
+ metadata: {
1642
+ baseUrl: string;
1643
+ name: string;
1644
+ auth: {
1645
+ schemes: ({
1646
+ type: "bearer";
1647
+ } | {
1648
+ type: "apiKey";
1649
+ paramName: string;
1650
+ in: "query" | "header" | "cookie";
1651
+ } | {
1652
+ type: "basic";
1653
+ })[];
1654
+ required: boolean;
1655
+ };
1656
+ toolsets: Record<string, string[]>;
1657
+ toolsetMetadata: {
1658
+ description: string;
1659
+ name: string;
1660
+ title: string;
1661
+ toolCount: number;
1662
+ }[];
1663
+ skippedTools: {
1664
+ name: string;
1665
+ reason: string;
1666
+ }[];
1667
+ environmentVariables: {
1668
+ description: string;
1669
+ name: string;
1670
+ required: boolean;
1671
+ }[];
1672
+ followRedirects: boolean;
1673
+ maxRedirects: number;
1674
+ allowedRedirectHosts: string[];
1675
+ } & {
1676
+ [k: string]: unknown;
1677
+ };
1678
+ slug: string;
1679
+ mainModule: string;
1680
+ compatibilityDate: string;
1681
+ compatibilityFlags: string[];
1682
+ modules: {
1683
+ name: string;
1684
+ contentType: string;
1685
+ hash: string;
1686
+ }[];
1687
+ generatorName: string;
1688
+ generatorVersion: string;
1689
+ config?: unknown;
1690
+ git?: {
1691
+ branch: string;
1692
+ repoUrl: string;
1693
+ commitSha?: string | undefined;
1694
+ } | undefined;
1695
+ cliVersion?: string | undefined;
1696
+ }>, {
1697
+ orgId: string;
1698
+ metadata: {
1699
+ baseUrl: string;
1700
+ name: string;
1701
+ auth: {
1702
+ schemes: ({
1703
+ type: "bearer";
1704
+ } | {
1705
+ type: "apiKey";
1706
+ paramName: string;
1707
+ in: "query" | "header" | "cookie";
1708
+ } | {
1709
+ type: "basic";
1710
+ })[];
1711
+ required: boolean;
1712
+ };
1713
+ toolsets: Record<string, string[]>;
1714
+ toolsetMetadata: {
1715
+ description: string;
1716
+ name: string;
1717
+ title: string;
1718
+ toolCount: number;
1719
+ }[];
1720
+ skippedTools: {
1721
+ name: string;
1722
+ reason: string;
1723
+ }[];
1724
+ environmentVariables: {
1725
+ description: string;
1726
+ name: string;
1727
+ required: boolean;
1728
+ }[];
1729
+ followRedirects: boolean;
1730
+ maxRedirects: number;
1731
+ allowedRedirectHosts: string[];
1732
+ } & {
1733
+ [k: string]: unknown;
1734
+ };
1735
+ slug: string;
1736
+ mainModule: string;
1737
+ compatibilityDate: string;
1738
+ compatibilityFlags: string[];
1739
+ modules: {
1740
+ name: string;
1741
+ contentType: string;
1742
+ hash: string;
1743
+ }[];
1744
+ generatorName: string;
1745
+ generatorVersion: string;
1746
+ config?: unknown;
1747
+ git?: {
1748
+ branch: string;
1749
+ repoUrl: string;
1750
+ commitSha?: string | undefined;
1751
+ } | undefined;
1752
+ cliVersion?: string | undefined;
1753
+ }, {
1754
+ orgId: string;
1755
+ metadata: {
1756
+ baseUrl: string;
1757
+ name: string;
1758
+ auth: {
1759
+ schemes: ({
1760
+ type: "bearer";
1761
+ } | {
1762
+ type: "apiKey";
1763
+ paramName: string;
1764
+ in: "query" | "header" | "cookie";
1765
+ } | {
1766
+ type: "basic";
1767
+ })[];
1768
+ required: boolean;
1769
+ };
1770
+ toolsets: Record<string, string[]>;
1771
+ toolsetMetadata: {
1772
+ description: string;
1773
+ name: string;
1774
+ title: string;
1775
+ toolCount: number;
1776
+ }[];
1777
+ skippedTools: {
1778
+ name: string;
1779
+ reason: string;
1780
+ }[];
1781
+ environmentVariables: {
1782
+ description: string;
1783
+ name: string;
1784
+ required: boolean;
1785
+ }[];
1786
+ followRedirects: boolean;
1787
+ maxRedirects: number;
1788
+ allowedRedirectHosts: string[];
1789
+ } & {
1790
+ [k: string]: unknown;
1791
+ };
1792
+ slug: string;
1793
+ mainModule: string;
1794
+ compatibilityDate: string;
1795
+ compatibilityFlags: string[];
1796
+ modules: {
1797
+ name: string;
1798
+ contentType: string;
1799
+ hash: string;
1800
+ }[];
1801
+ generatorName: string;
1802
+ generatorVersion: string;
1803
+ config?: unknown;
1804
+ git?: {
1805
+ branch: string;
1806
+ repoUrl: string;
1807
+ commitSha?: string | undefined;
1808
+ } | undefined;
1809
+ cliVersion?: string | undefined;
1810
+ }>, z.ZodObject<{
1811
+ id: z.ZodString;
1812
+ orgId: z.ZodString;
1813
+ slug: z.ZodString;
1814
+ /** The server is serving iff this is set; it names the serving deployment. */
1815
+ activeDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
+ /** Most recent publication attempt — how the last deploy went. */
1817
+ latestDeployment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1818
+ id: z.ZodString;
1819
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
1820
+ /** True when this deployment is the one the server currently serves. */
1821
+ isActive: z.ZodBoolean;
1822
+ generatorVersion: z.ZodString;
1823
+ createdAt: z.ZodString;
1824
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1825
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1826
+ name: z.ZodString;
1827
+ message: z.ZodString;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ message: string;
1830
+ name: string;
1831
+ }, {
1832
+ message: string;
1833
+ name: string;
1834
+ }>>>;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1837
+ id: string;
1838
+ createdAt: string;
1839
+ generatorVersion: string;
1840
+ isActive: boolean;
1841
+ error?: {
1842
+ message: string;
1843
+ name: string;
1844
+ } | null | undefined;
1845
+ createdBy?: string | null | undefined;
1846
+ }, {
1847
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1848
+ id: string;
1849
+ createdAt: string;
1850
+ generatorVersion: string;
1851
+ isActive: boolean;
1852
+ error?: {
1853
+ message: string;
1854
+ name: string;
1855
+ } | null | undefined;
1856
+ createdBy?: string | null | undefined;
1857
+ }>>>;
1858
+ url: z.ZodString;
1859
+ createdAt: z.ZodString;
1860
+ updatedAt: z.ZodString;
1861
+ }, "strip", z.ZodTypeAny, {
1862
+ id: string;
1863
+ url: string;
1864
+ orgId: string;
1865
+ updatedAt: string;
1866
+ slug: string;
1867
+ createdAt: string;
1868
+ activeDeploymentId?: string | null | undefined;
1869
+ latestDeployment?: {
1870
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1871
+ id: string;
1872
+ createdAt: string;
1873
+ generatorVersion: string;
1874
+ isActive: boolean;
1875
+ error?: {
1876
+ message: string;
1877
+ name: string;
1878
+ } | null | undefined;
1879
+ createdBy?: string | null | undefined;
1880
+ } | null | undefined;
1881
+ }, {
1882
+ id: string;
1883
+ url: string;
1884
+ orgId: string;
1885
+ updatedAt: string;
1886
+ slug: string;
1887
+ createdAt: string;
1888
+ activeDeploymentId?: string | null | undefined;
1889
+ latestDeployment?: {
1890
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1891
+ id: string;
1892
+ createdAt: string;
1893
+ generatorVersion: string;
1894
+ isActive: boolean;
1895
+ error?: {
1896
+ message: string;
1897
+ name: string;
1898
+ } | null | undefined;
1899
+ createdBy?: string | null | undefined;
1900
+ } | null | undefined;
1901
+ }>, Record<never, never>, Record<never, never>>;
1902
+ getServer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1903
+ orgId: z.ZodString;
1904
+ slug: z.ZodString;
1905
+ }, "strip", z.ZodTypeAny, {
1906
+ orgId: string;
1907
+ slug: string;
1908
+ }, {
1909
+ orgId: string;
1910
+ slug: string;
1911
+ }>, z.ZodObject<{
1912
+ id: z.ZodString;
1913
+ orgId: z.ZodString;
1914
+ slug: z.ZodString;
1915
+ /** The server is serving iff this is set; it names the serving deployment. */
1916
+ activeDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1917
+ /** Most recent publication attempt — how the last deploy went. */
1918
+ latestDeployment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1919
+ id: z.ZodString;
1920
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
1921
+ /** True when this deployment is the one the server currently serves. */
1922
+ isActive: z.ZodBoolean;
1923
+ generatorVersion: z.ZodString;
1924
+ createdAt: z.ZodString;
1925
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1926
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1927
+ name: z.ZodString;
1928
+ message: z.ZodString;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ message: string;
1931
+ name: string;
1932
+ }, {
1933
+ message: string;
1934
+ name: string;
1935
+ }>>>;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1938
+ id: string;
1939
+ createdAt: string;
1940
+ generatorVersion: string;
1941
+ isActive: boolean;
1942
+ error?: {
1943
+ message: string;
1944
+ name: string;
1945
+ } | null | undefined;
1946
+ createdBy?: string | null | undefined;
1947
+ }, {
1948
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1949
+ id: string;
1950
+ createdAt: string;
1951
+ generatorVersion: string;
1952
+ isActive: boolean;
1953
+ error?: {
1954
+ message: string;
1955
+ name: string;
1956
+ } | null | undefined;
1957
+ createdBy?: string | null | undefined;
1958
+ }>>>;
1959
+ url: z.ZodString;
1960
+ createdAt: z.ZodString;
1961
+ updatedAt: z.ZodString;
1962
+ }, "strip", z.ZodTypeAny, {
1963
+ id: string;
1964
+ url: string;
1965
+ orgId: string;
1966
+ updatedAt: string;
1967
+ slug: string;
1968
+ createdAt: string;
1969
+ activeDeploymentId?: string | null | undefined;
1970
+ latestDeployment?: {
1971
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1972
+ id: string;
1973
+ createdAt: string;
1974
+ generatorVersion: string;
1975
+ isActive: boolean;
1976
+ error?: {
1977
+ message: string;
1978
+ name: string;
1979
+ } | null | undefined;
1980
+ createdBy?: string | null | undefined;
1981
+ } | null | undefined;
1982
+ }, {
1983
+ id: string;
1984
+ url: string;
1985
+ orgId: string;
1986
+ updatedAt: string;
1987
+ slug: string;
1988
+ createdAt: string;
1989
+ activeDeploymentId?: string | null | undefined;
1990
+ latestDeployment?: {
1991
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
1992
+ id: string;
1993
+ createdAt: string;
1994
+ generatorVersion: string;
1995
+ isActive: boolean;
1996
+ error?: {
1997
+ message: string;
1998
+ name: string;
1999
+ } | null | undefined;
2000
+ createdBy?: string | null | undefined;
2001
+ } | null | undefined;
2002
+ }>, Record<never, never>, Record<never, never>>;
2003
+ listServers: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2004
+ orgId: z.ZodString;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ orgId: string;
2007
+ }, {
2008
+ orgId: string;
2009
+ }>, z.ZodObject<{
2010
+ servers: z.ZodArray<z.ZodObject<{
2011
+ id: z.ZodString;
2012
+ orgId: z.ZodString;
2013
+ slug: z.ZodString;
2014
+ /** The server is serving iff this is set; it names the serving deployment. */
2015
+ activeDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2016
+ /** Most recent publication attempt — how the last deploy went. */
2017
+ latestDeployment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2018
+ id: z.ZodString;
2019
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
2020
+ /** True when this deployment is the one the server currently serves. */
2021
+ isActive: z.ZodBoolean;
2022
+ generatorVersion: z.ZodString;
2023
+ createdAt: z.ZodString;
2024
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2025
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2026
+ name: z.ZodString;
2027
+ message: z.ZodString;
2028
+ }, "strip", z.ZodTypeAny, {
2029
+ message: string;
2030
+ name: string;
2031
+ }, {
2032
+ message: string;
2033
+ name: string;
2034
+ }>>>;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2037
+ id: string;
2038
+ createdAt: string;
2039
+ generatorVersion: string;
2040
+ isActive: boolean;
2041
+ error?: {
2042
+ message: string;
2043
+ name: string;
2044
+ } | null | undefined;
2045
+ createdBy?: string | null | undefined;
2046
+ }, {
2047
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2048
+ id: string;
2049
+ createdAt: string;
2050
+ generatorVersion: string;
2051
+ isActive: boolean;
2052
+ error?: {
2053
+ message: string;
2054
+ name: string;
2055
+ } | null | undefined;
2056
+ createdBy?: string | null | undefined;
2057
+ }>>>;
2058
+ url: z.ZodString;
2059
+ createdAt: z.ZodString;
2060
+ updatedAt: z.ZodString;
2061
+ }, "strip", z.ZodTypeAny, {
2062
+ id: string;
2063
+ url: string;
2064
+ orgId: string;
2065
+ updatedAt: string;
2066
+ slug: string;
2067
+ createdAt: string;
2068
+ activeDeploymentId?: string | null | undefined;
2069
+ latestDeployment?: {
2070
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2071
+ id: string;
2072
+ createdAt: string;
2073
+ generatorVersion: string;
2074
+ isActive: boolean;
2075
+ error?: {
2076
+ message: string;
2077
+ name: string;
2078
+ } | null | undefined;
2079
+ createdBy?: string | null | undefined;
2080
+ } | null | undefined;
2081
+ }, {
2082
+ id: string;
2083
+ url: string;
2084
+ orgId: string;
2085
+ updatedAt: string;
2086
+ slug: string;
2087
+ createdAt: string;
2088
+ activeDeploymentId?: string | null | undefined;
2089
+ latestDeployment?: {
2090
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2091
+ id: string;
2092
+ createdAt: string;
2093
+ generatorVersion: string;
2094
+ isActive: boolean;
2095
+ error?: {
2096
+ message: string;
2097
+ name: string;
2098
+ } | null | undefined;
2099
+ createdBy?: string | null | undefined;
2100
+ } | null | undefined;
2101
+ }>, "many">;
2102
+ }, "strip", z.ZodTypeAny, {
2103
+ servers: {
2104
+ id: string;
2105
+ url: string;
2106
+ orgId: string;
2107
+ updatedAt: string;
2108
+ slug: string;
2109
+ createdAt: string;
2110
+ activeDeploymentId?: string | null | undefined;
2111
+ latestDeployment?: {
2112
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2113
+ id: string;
2114
+ createdAt: string;
2115
+ generatorVersion: string;
2116
+ isActive: boolean;
2117
+ error?: {
2118
+ message: string;
2119
+ name: string;
2120
+ } | null | undefined;
2121
+ createdBy?: string | null | undefined;
2122
+ } | null | undefined;
2123
+ }[];
2124
+ }, {
2125
+ servers: {
2126
+ id: string;
2127
+ url: string;
2128
+ orgId: string;
2129
+ updatedAt: string;
2130
+ slug: string;
2131
+ createdAt: string;
2132
+ activeDeploymentId?: string | null | undefined;
2133
+ latestDeployment?: {
2134
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2135
+ id: string;
2136
+ createdAt: string;
2137
+ generatorVersion: string;
2138
+ isActive: boolean;
2139
+ error?: {
2140
+ message: string;
2141
+ name: string;
2142
+ } | null | undefined;
2143
+ createdBy?: string | null | undefined;
2144
+ } | null | undefined;
2145
+ }[];
2146
+ }>, Record<never, never>, Record<never, never>>;
2147
+ listDeployments: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2148
+ orgId: z.ZodString;
2149
+ slug: z.ZodString;
2150
+ }, "strip", z.ZodTypeAny, {
2151
+ orgId: string;
2152
+ slug: string;
2153
+ }, {
2154
+ orgId: string;
2155
+ slug: string;
2156
+ }>, z.ZodObject<{
2157
+ deployments: z.ZodArray<z.ZodObject<{
2158
+ id: z.ZodString;
2159
+ status: z.ZodEnum<["PUBLISHING", "SUCCEEDED", "FAILED"]>;
2160
+ /** True when this deployment is the one the server currently serves. */
2161
+ isActive: z.ZodBoolean;
2162
+ generatorVersion: z.ZodString;
2163
+ createdAt: z.ZodString;
2164
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2165
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2166
+ name: z.ZodString;
2167
+ message: z.ZodString;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ message: string;
2170
+ name: string;
2171
+ }, {
2172
+ message: string;
2173
+ name: string;
2174
+ }>>>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2177
+ id: string;
2178
+ createdAt: string;
2179
+ generatorVersion: string;
2180
+ isActive: boolean;
2181
+ error?: {
2182
+ message: string;
2183
+ name: string;
2184
+ } | null | undefined;
2185
+ createdBy?: string | null | undefined;
2186
+ }, {
2187
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2188
+ id: string;
2189
+ createdAt: string;
2190
+ generatorVersion: string;
2191
+ isActive: boolean;
2192
+ error?: {
2193
+ message: string;
2194
+ name: string;
2195
+ } | null | undefined;
2196
+ createdBy?: string | null | undefined;
2197
+ }>, "many">;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ deployments: {
2200
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2201
+ id: string;
2202
+ createdAt: string;
2203
+ generatorVersion: string;
2204
+ isActive: boolean;
2205
+ error?: {
2206
+ message: string;
2207
+ name: string;
2208
+ } | null | undefined;
2209
+ createdBy?: string | null | undefined;
2210
+ }[];
2211
+ }, {
2212
+ deployments: {
2213
+ status: "PUBLISHING" | "SUCCEEDED" | "FAILED";
2214
+ id: string;
2215
+ createdAt: string;
2216
+ generatorVersion: string;
2217
+ isActive: boolean;
2218
+ error?: {
2219
+ message: string;
2220
+ name: string;
2221
+ } | null | undefined;
2222
+ createdBy?: string | null | undefined;
2223
+ }[];
2224
+ }>, Record<never, never>, Record<never, never>>;
2225
+ deleteServer: import("@orpc/contract").ContractProcedureBuilderWithInput<z.ZodObject<{
2226
+ orgId: z.ZodString;
2227
+ slug: z.ZodString;
2228
+ }, "strip", z.ZodTypeAny, {
2229
+ orgId: string;
2230
+ slug: string;
2231
+ }, {
2232
+ orgId: string;
2233
+ slug: string;
2234
+ }>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
2235
+ };
2236
+ //# sourceMappingURL=contract.d.ts.map