@metorial-services/shuttle-client 1.0.0

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,4826 @@
1
+ import { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';
2
+ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rpc-server").InferClient<{
3
+ tenant: {
4
+ upsert: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
5
+ name: string;
6
+ identifier: string;
7
+ }>, {
8
+ object: string;
9
+ id: string;
10
+ identifier: string;
11
+ name: string;
12
+ createdAt: Date;
13
+ }, {}>;
14
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
15
+ tenantId: string;
16
+ }>, {
17
+ object: string;
18
+ id: string;
19
+ identifier: string;
20
+ name: string;
21
+ createdAt: Date;
22
+ }, {
23
+ tenant: {
24
+ name: string;
25
+ identifier: string;
26
+ oid: bigint;
27
+ id: string;
28
+ functionBayTenantId: string | null;
29
+ createdAt: Date;
30
+ };
31
+ }>;
32
+ };
33
+ containerRegistry: {
34
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
35
+ tenantId: string;
36
+ }, never>> & {
37
+ tenantId: string;
38
+ } & {
39
+ limit?: number;
40
+ after?: string;
41
+ before?: string;
42
+ cursor?: string;
43
+ order?: "asc" | "desc";
44
+ }, {
45
+ __typename: string;
46
+ items: {
47
+ object: string;
48
+ id: string;
49
+ type: "docker";
50
+ name: string;
51
+ url: string;
52
+ tenantId: string | undefined;
53
+ createdAt: Date;
54
+ }[];
55
+ pagination: {
56
+ has_more_after: boolean;
57
+ has_more_before: boolean;
58
+ };
59
+ }, {
60
+ tenant: {
61
+ name: string;
62
+ identifier: string;
63
+ oid: bigint;
64
+ id: string;
65
+ functionBayTenantId: string | null;
66
+ createdAt: Date;
67
+ };
68
+ }>;
69
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
70
+ tenantId: string;
71
+ registryId: string;
72
+ }>, {
73
+ object: string;
74
+ id: string;
75
+ type: "docker";
76
+ name: string;
77
+ url: string;
78
+ tenantId: string | undefined;
79
+ createdAt: Date;
80
+ }, {
81
+ tenant: {
82
+ name: string;
83
+ identifier: string;
84
+ oid: bigint;
85
+ id: string;
86
+ functionBayTenantId: string | null;
87
+ createdAt: Date;
88
+ };
89
+ registry: {
90
+ tenant: {
91
+ name: string;
92
+ identifier: string;
93
+ oid: bigint;
94
+ id: string;
95
+ functionBayTenantId: string | null;
96
+ createdAt: Date;
97
+ } | null;
98
+ } & {
99
+ name: string;
100
+ identifier: string;
101
+ url: string;
102
+ oid: bigint;
103
+ id: string;
104
+ createdAt: Date;
105
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
106
+ secretOid: bigint | null;
107
+ tenantOid: bigint | null;
108
+ updatedAt: Date;
109
+ };
110
+ }>;
111
+ };
112
+ containerRepository: {
113
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
114
+ tenantId: string;
115
+ }, never>> & {
116
+ tenantId: string;
117
+ } & {
118
+ limit?: number;
119
+ after?: string;
120
+ before?: string;
121
+ cursor?: string;
122
+ order?: "asc" | "desc";
123
+ }, {
124
+ __typename: string;
125
+ items: {
126
+ object: string;
127
+ id: string;
128
+ type: "docker";
129
+ name: string;
130
+ registry: {
131
+ object: string;
132
+ id: string;
133
+ type: "docker";
134
+ name: string;
135
+ url: string;
136
+ tenantId: string | undefined;
137
+ createdAt: Date;
138
+ };
139
+ tenantId: string | undefined;
140
+ createdAt: Date;
141
+ }[];
142
+ pagination: {
143
+ has_more_after: boolean;
144
+ has_more_before: boolean;
145
+ };
146
+ }, {
147
+ tenant: {
148
+ name: string;
149
+ identifier: string;
150
+ oid: bigint;
151
+ id: string;
152
+ functionBayTenantId: string | null;
153
+ createdAt: Date;
154
+ };
155
+ }>;
156
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
157
+ tenantId: string;
158
+ repositoryId: string;
159
+ }>, {
160
+ object: string;
161
+ id: string;
162
+ type: "docker";
163
+ name: string;
164
+ registry: {
165
+ object: string;
166
+ id: string;
167
+ type: "docker";
168
+ name: string;
169
+ url: string;
170
+ tenantId: string | undefined;
171
+ createdAt: Date;
172
+ };
173
+ tenantId: string | undefined;
174
+ createdAt: Date;
175
+ }, {
176
+ tenant: {
177
+ name: string;
178
+ identifier: string;
179
+ oid: bigint;
180
+ id: string;
181
+ functionBayTenantId: string | null;
182
+ createdAt: Date;
183
+ };
184
+ repository: {
185
+ tenant: {
186
+ name: string;
187
+ identifier: string;
188
+ oid: bigint;
189
+ id: string;
190
+ functionBayTenantId: string | null;
191
+ createdAt: Date;
192
+ } | null;
193
+ registry: {
194
+ name: string;
195
+ identifier: string;
196
+ url: string;
197
+ oid: bigint;
198
+ id: string;
199
+ createdAt: Date;
200
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
201
+ secretOid: bigint | null;
202
+ tenantOid: bigint | null;
203
+ updatedAt: Date;
204
+ };
205
+ } & {
206
+ name: string;
207
+ identifier: string;
208
+ oid: bigint;
209
+ id: string;
210
+ createdAt: Date;
211
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
212
+ tenantOid: bigint | null;
213
+ updatedAt: Date;
214
+ registryOid: bigint;
215
+ registryConnectionOid: bigint | null;
216
+ };
217
+ }>;
218
+ };
219
+ containerRepositoryTag: {
220
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
221
+ tenantId: string;
222
+ }, never>> & {
223
+ tenantId: string;
224
+ } & {
225
+ limit?: number;
226
+ after?: string;
227
+ before?: string;
228
+ cursor?: string;
229
+ order?: "asc" | "desc";
230
+ }, {
231
+ __typename: string;
232
+ items: {
233
+ object: string;
234
+ id: string;
235
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
236
+ name: string;
237
+ repository: {
238
+ object: string;
239
+ id: string;
240
+ type: "docker";
241
+ name: string;
242
+ registry: {
243
+ object: string;
244
+ id: string;
245
+ type: "docker";
246
+ name: string;
247
+ url: string;
248
+ tenantId: string | undefined;
249
+ createdAt: Date;
250
+ };
251
+ tenantId: string | undefined;
252
+ createdAt: Date;
253
+ };
254
+ currentVersion: {
255
+ object: string;
256
+ id: string;
257
+ digest: string;
258
+ repository: {
259
+ object: string;
260
+ id: string;
261
+ type: "docker";
262
+ name: string;
263
+ registry: {
264
+ object: string;
265
+ id: string;
266
+ type: "docker";
267
+ name: string;
268
+ url: string;
269
+ tenantId: string | undefined;
270
+ createdAt: Date;
271
+ };
272
+ tenantId: string | undefined;
273
+ createdAt: Date;
274
+ };
275
+ tenantId: string | undefined;
276
+ createdAt: Date;
277
+ } | null;
278
+ tenantId: string | undefined;
279
+ createdAt: Date;
280
+ }[];
281
+ pagination: {
282
+ has_more_after: boolean;
283
+ has_more_before: boolean;
284
+ };
285
+ }, {
286
+ tenant: {
287
+ name: string;
288
+ identifier: string;
289
+ oid: bigint;
290
+ id: string;
291
+ functionBayTenantId: string | null;
292
+ createdAt: Date;
293
+ };
294
+ }>;
295
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
296
+ tenantId: string;
297
+ repositoryTagId: string;
298
+ }>, {
299
+ object: string;
300
+ id: string;
301
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
302
+ name: string;
303
+ repository: {
304
+ object: string;
305
+ id: string;
306
+ type: "docker";
307
+ name: string;
308
+ registry: {
309
+ object: string;
310
+ id: string;
311
+ type: "docker";
312
+ name: string;
313
+ url: string;
314
+ tenantId: string | undefined;
315
+ createdAt: Date;
316
+ };
317
+ tenantId: string | undefined;
318
+ createdAt: Date;
319
+ };
320
+ currentVersion: {
321
+ object: string;
322
+ id: string;
323
+ digest: string;
324
+ repository: {
325
+ object: string;
326
+ id: string;
327
+ type: "docker";
328
+ name: string;
329
+ registry: {
330
+ object: string;
331
+ id: string;
332
+ type: "docker";
333
+ name: string;
334
+ url: string;
335
+ tenantId: string | undefined;
336
+ createdAt: Date;
337
+ };
338
+ tenantId: string | undefined;
339
+ createdAt: Date;
340
+ };
341
+ tenantId: string | undefined;
342
+ createdAt: Date;
343
+ } | null;
344
+ tenantId: string | undefined;
345
+ createdAt: Date;
346
+ }, {
347
+ tenant: {
348
+ name: string;
349
+ identifier: string;
350
+ oid: bigint;
351
+ id: string;
352
+ functionBayTenantId: string | null;
353
+ createdAt: Date;
354
+ };
355
+ repositoryTag: {
356
+ tenant: {
357
+ name: string;
358
+ identifier: string;
359
+ oid: bigint;
360
+ id: string;
361
+ functionBayTenantId: string | null;
362
+ createdAt: Date;
363
+ } | null;
364
+ repository: {
365
+ registry: {
366
+ name: string;
367
+ identifier: string;
368
+ url: string;
369
+ oid: bigint;
370
+ id: string;
371
+ createdAt: Date;
372
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
373
+ secretOid: bigint | null;
374
+ tenantOid: bigint | null;
375
+ updatedAt: Date;
376
+ };
377
+ } & {
378
+ name: string;
379
+ identifier: string;
380
+ oid: bigint;
381
+ id: string;
382
+ createdAt: Date;
383
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
384
+ tenantOid: bigint | null;
385
+ updatedAt: Date;
386
+ registryOid: bigint;
387
+ registryConnectionOid: bigint | null;
388
+ };
389
+ currentVersion: {
390
+ oid: bigint;
391
+ id: string;
392
+ createdAt: Date;
393
+ tenantOid: bigint | null;
394
+ digest: string;
395
+ repositoryOid: bigint;
396
+ } | null;
397
+ } & {
398
+ name: string;
399
+ identifier: string;
400
+ oid: bigint;
401
+ id: string;
402
+ createdAt: Date;
403
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
404
+ tenantOid: bigint | null;
405
+ updatedAt: Date;
406
+ discoveryStatus: import("../../../service/prisma/generated/enums").ContainerRepositoryTagDiscoveryStatus;
407
+ tag: string | null;
408
+ digest: string | null;
409
+ currentVersionOid: bigint | null;
410
+ repositoryOid: bigint;
411
+ lastDiscoveryErrorOid: bigint | null;
412
+ lastSyncedAt: Date | null;
413
+ };
414
+ }>;
415
+ };
416
+ containerRepositoryVersion: {
417
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
418
+ tenantId: string;
419
+ }, never>> & {
420
+ tenantId: string;
421
+ } & {
422
+ limit?: number;
423
+ after?: string;
424
+ before?: string;
425
+ cursor?: string;
426
+ order?: "asc" | "desc";
427
+ }, {
428
+ __typename: string;
429
+ items: {
430
+ object: string;
431
+ id: string;
432
+ digest: string;
433
+ repository: {
434
+ object: string;
435
+ id: string;
436
+ type: "docker";
437
+ name: string;
438
+ registry: {
439
+ object: string;
440
+ id: string;
441
+ type: "docker";
442
+ name: string;
443
+ url: string;
444
+ tenantId: string | undefined;
445
+ createdAt: Date;
446
+ };
447
+ tenantId: string | undefined;
448
+ createdAt: Date;
449
+ };
450
+ tenantId: string | undefined;
451
+ createdAt: Date;
452
+ }[];
453
+ pagination: {
454
+ has_more_after: boolean;
455
+ has_more_before: boolean;
456
+ };
457
+ }, {
458
+ tenant: {
459
+ name: string;
460
+ identifier: string;
461
+ oid: bigint;
462
+ id: string;
463
+ functionBayTenantId: string | null;
464
+ createdAt: Date;
465
+ };
466
+ }>;
467
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
468
+ tenantId: string;
469
+ repositoryVersionId: string;
470
+ }>, {
471
+ object: string;
472
+ id: string;
473
+ digest: string;
474
+ repository: {
475
+ object: string;
476
+ id: string;
477
+ type: "docker";
478
+ name: string;
479
+ registry: {
480
+ object: string;
481
+ id: string;
482
+ type: "docker";
483
+ name: string;
484
+ url: string;
485
+ tenantId: string | undefined;
486
+ createdAt: Date;
487
+ };
488
+ tenantId: string | undefined;
489
+ createdAt: Date;
490
+ };
491
+ tenantId: string | undefined;
492
+ createdAt: Date;
493
+ }, {
494
+ tenant: {
495
+ name: string;
496
+ identifier: string;
497
+ oid: bigint;
498
+ id: string;
499
+ functionBayTenantId: string | null;
500
+ createdAt: Date;
501
+ };
502
+ repositoryVersion: {
503
+ tenant: {
504
+ name: string;
505
+ identifier: string;
506
+ oid: bigint;
507
+ id: string;
508
+ functionBayTenantId: string | null;
509
+ createdAt: Date;
510
+ } | null;
511
+ repository: {
512
+ registry: {
513
+ name: string;
514
+ identifier: string;
515
+ url: string;
516
+ oid: bigint;
517
+ id: string;
518
+ createdAt: Date;
519
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
520
+ secretOid: bigint | null;
521
+ tenantOid: bigint | null;
522
+ updatedAt: Date;
523
+ };
524
+ } & {
525
+ name: string;
526
+ identifier: string;
527
+ oid: bigint;
528
+ id: string;
529
+ createdAt: Date;
530
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
531
+ tenantOid: bigint | null;
532
+ updatedAt: Date;
533
+ registryOid: bigint;
534
+ registryConnectionOid: bigint | null;
535
+ };
536
+ } & {
537
+ oid: bigint;
538
+ id: string;
539
+ createdAt: Date;
540
+ tenantOid: bigint | null;
541
+ digest: string;
542
+ repositoryOid: bigint;
543
+ };
544
+ }>;
545
+ };
546
+ server: {
547
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
548
+ tenantId: string;
549
+ }, never>> & {
550
+ tenantId: string;
551
+ } & {
552
+ limit?: number;
553
+ after?: string;
554
+ before?: string;
555
+ cursor?: string;
556
+ order?: "asc" | "desc";
557
+ }, {
558
+ __typename: string;
559
+ items: {
560
+ object: string;
561
+ id: string;
562
+ type: import("../../../service/prisma/generated/enums").ServerType;
563
+ name: string;
564
+ description: string | null;
565
+ currentVersionId: string | undefined;
566
+ draft: {
567
+ repositoryTag: {
568
+ object: string;
569
+ id: string;
570
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
571
+ name: string;
572
+ repository: {
573
+ object: string;
574
+ id: string;
575
+ type: "docker";
576
+ name: string;
577
+ registry: {
578
+ object: string;
579
+ id: string;
580
+ type: "docker";
581
+ name: string;
582
+ url: string;
583
+ tenantId: string | undefined;
584
+ createdAt: Date;
585
+ };
586
+ tenantId: string | undefined;
587
+ createdAt: Date;
588
+ };
589
+ currentVersion: {
590
+ object: string;
591
+ id: string;
592
+ digest: string;
593
+ repository: {
594
+ object: string;
595
+ id: string;
596
+ type: "docker";
597
+ name: string;
598
+ registry: {
599
+ object: string;
600
+ id: string;
601
+ type: "docker";
602
+ name: string;
603
+ url: string;
604
+ tenantId: string | undefined;
605
+ createdAt: Date;
606
+ };
607
+ tenantId: string | undefined;
608
+ createdAt: Date;
609
+ };
610
+ tenantId: string | undefined;
611
+ createdAt: Date;
612
+ } | null;
613
+ tenantId: string | undefined;
614
+ createdAt: Date;
615
+ } | null;
616
+ configSchema: PrismaJson.ServerConfigSchema;
617
+ configTransformer: string;
618
+ remoteUrl: string | null;
619
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
620
+ createdAt: Date;
621
+ };
622
+ oauthConfig: {
623
+ type: "remote";
624
+ name: string | null;
625
+ config: any;
626
+ scopes: string[];
627
+ authConfigSchema: null;
628
+ provider: {
629
+ name: string;
630
+ url: string;
631
+ };
632
+ discovery: {
633
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
634
+ error: {
635
+ code: string;
636
+ message: string;
637
+ } | null;
638
+ createdAt: Date;
639
+ lastDiscoveredAt: Date | null;
640
+ };
641
+ } | {
642
+ type: "delegated";
643
+ name: string | null;
644
+ config: null;
645
+ scopes: never[];
646
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
647
+ provider: null;
648
+ discovery: {
649
+ status: "succeeded";
650
+ error: {
651
+ code: string;
652
+ message: string;
653
+ } | null;
654
+ createdAt: Date;
655
+ lastDiscoveredAt: null;
656
+ };
657
+ } | null;
658
+ tenantId: string | undefined;
659
+ createdAt: Date;
660
+ updatedAt: Date;
661
+ }[];
662
+ pagination: {
663
+ has_more_after: boolean;
664
+ has_more_before: boolean;
665
+ };
666
+ }, {
667
+ tenant: {
668
+ name: string;
669
+ identifier: string;
670
+ oid: bigint;
671
+ id: string;
672
+ functionBayTenantId: string | null;
673
+ createdAt: Date;
674
+ };
675
+ }>;
676
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
677
+ tenantId: string;
678
+ from: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
679
+ type: "container.from_image_ref";
680
+ imageRef: string;
681
+ username: string | undefined;
682
+ password: string | undefined;
683
+ }> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
684
+ type: "remote";
685
+ remoteUrl: string;
686
+ config: Record<string, any> | undefined;
687
+ protocol: "sse" | "streamable_http";
688
+ }> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
689
+ type: "function";
690
+ files: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
691
+ filename: string;
692
+ content: string;
693
+ encoding: "utf-8" | "base64" | undefined;
694
+ }>[];
695
+ env: Record<string, string>;
696
+ runtime: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
697
+ identifier: "nodejs";
698
+ version: "24.x" | "22.x";
699
+ }> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
700
+ identifier: "python";
701
+ version: "3.14" | "3.13" | "3.12";
702
+ }>;
703
+ }>;
704
+ config: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
705
+ schema: Record<string, any>;
706
+ transformer: string;
707
+ }> | undefined;
708
+ name: string;
709
+ description: string | undefined;
710
+ }>, {
711
+ server: {
712
+ object: string;
713
+ id: string;
714
+ type: import("../../../service/prisma/generated/enums").ServerType;
715
+ name: string;
716
+ description: string | null;
717
+ currentVersionId: string | undefined;
718
+ draft: {
719
+ repositoryTag: {
720
+ object: string;
721
+ id: string;
722
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
723
+ name: string;
724
+ repository: {
725
+ object: string;
726
+ id: string;
727
+ type: "docker";
728
+ name: string;
729
+ registry: {
730
+ object: string;
731
+ id: string;
732
+ type: "docker";
733
+ name: string;
734
+ url: string;
735
+ tenantId: string | undefined;
736
+ createdAt: Date;
737
+ };
738
+ tenantId: string | undefined;
739
+ createdAt: Date;
740
+ };
741
+ currentVersion: {
742
+ object: string;
743
+ id: string;
744
+ digest: string;
745
+ repository: {
746
+ object: string;
747
+ id: string;
748
+ type: "docker";
749
+ name: string;
750
+ registry: {
751
+ object: string;
752
+ id: string;
753
+ type: "docker";
754
+ name: string;
755
+ url: string;
756
+ tenantId: string | undefined;
757
+ createdAt: Date;
758
+ };
759
+ tenantId: string | undefined;
760
+ createdAt: Date;
761
+ };
762
+ tenantId: string | undefined;
763
+ createdAt: Date;
764
+ } | null;
765
+ tenantId: string | undefined;
766
+ createdAt: Date;
767
+ } | null;
768
+ configSchema: PrismaJson.ServerConfigSchema;
769
+ configTransformer: string;
770
+ remoteUrl: string | null;
771
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
772
+ createdAt: Date;
773
+ };
774
+ oauthConfig: {
775
+ type: "remote";
776
+ name: string | null;
777
+ config: any;
778
+ scopes: string[];
779
+ authConfigSchema: null;
780
+ provider: {
781
+ name: string;
782
+ url: string;
783
+ };
784
+ discovery: {
785
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
786
+ error: {
787
+ code: string;
788
+ message: string;
789
+ } | null;
790
+ createdAt: Date;
791
+ lastDiscoveredAt: Date | null;
792
+ };
793
+ } | {
794
+ type: "delegated";
795
+ name: string | null;
796
+ config: null;
797
+ scopes: never[];
798
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
799
+ provider: null;
800
+ discovery: {
801
+ status: "succeeded";
802
+ error: {
803
+ code: string;
804
+ message: string;
805
+ } | null;
806
+ createdAt: Date;
807
+ lastDiscoveredAt: null;
808
+ };
809
+ } | null;
810
+ tenantId: string | undefined;
811
+ createdAt: Date;
812
+ updatedAt: Date;
813
+ };
814
+ deployment: {
815
+ object: string;
816
+ id: string;
817
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStatus;
818
+ serverId: string;
819
+ tenantId: string | null;
820
+ functionServerId: string | null;
821
+ createdAt: Date;
822
+ updatedAt: Date;
823
+ startedAt: Date | null;
824
+ endedAt: Date | null;
825
+ };
826
+ }, {
827
+ tenant: {
828
+ name: string;
829
+ identifier: string;
830
+ oid: bigint;
831
+ id: string;
832
+ functionBayTenantId: string | null;
833
+ createdAt: Date;
834
+ };
835
+ }>;
836
+ createVersion: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
837
+ tenantId: string;
838
+ serverId: string;
839
+ from: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
840
+ type: "container.from_image_ref";
841
+ imageRef: string;
842
+ username: string | undefined;
843
+ password: string | undefined;
844
+ }> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
845
+ type: "remote";
846
+ remoteUrl: string;
847
+ protocol: "sse" | "streamable_http";
848
+ }> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
849
+ type: "function";
850
+ files: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
851
+ filename: string;
852
+ content: string;
853
+ encoding: "utf-8" | "base64" | undefined;
854
+ }>[];
855
+ env: Record<string, string>;
856
+ runtime: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
857
+ identifier: "nodejs";
858
+ version: "24.x" | "22.x";
859
+ }> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
860
+ identifier: "python";
861
+ version: "3.14" | "3.13" | "3.12";
862
+ }>;
863
+ }>;
864
+ config: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
865
+ schema: Record<string, any>;
866
+ transformer: string;
867
+ }> | undefined;
868
+ }>, {
869
+ object: string;
870
+ id: string;
871
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStatus;
872
+ serverId: string;
873
+ tenantId: string | null;
874
+ functionServerId: string | null;
875
+ createdAt: Date;
876
+ updatedAt: Date;
877
+ startedAt: Date | null;
878
+ endedAt: Date | null;
879
+ }, {
880
+ tenant: {
881
+ name: string;
882
+ identifier: string;
883
+ oid: bigint;
884
+ id: string;
885
+ functionBayTenantId: string | null;
886
+ createdAt: Date;
887
+ };
888
+ }>;
889
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
890
+ tenantId: string;
891
+ serverId: string;
892
+ }>, {
893
+ object: string;
894
+ id: string;
895
+ type: import("../../../service/prisma/generated/enums").ServerType;
896
+ name: string;
897
+ description: string | null;
898
+ currentVersionId: string | undefined;
899
+ draft: {
900
+ repositoryTag: {
901
+ object: string;
902
+ id: string;
903
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
904
+ name: string;
905
+ repository: {
906
+ object: string;
907
+ id: string;
908
+ type: "docker";
909
+ name: string;
910
+ registry: {
911
+ object: string;
912
+ id: string;
913
+ type: "docker";
914
+ name: string;
915
+ url: string;
916
+ tenantId: string | undefined;
917
+ createdAt: Date;
918
+ };
919
+ tenantId: string | undefined;
920
+ createdAt: Date;
921
+ };
922
+ currentVersion: {
923
+ object: string;
924
+ id: string;
925
+ digest: string;
926
+ repository: {
927
+ object: string;
928
+ id: string;
929
+ type: "docker";
930
+ name: string;
931
+ registry: {
932
+ object: string;
933
+ id: string;
934
+ type: "docker";
935
+ name: string;
936
+ url: string;
937
+ tenantId: string | undefined;
938
+ createdAt: Date;
939
+ };
940
+ tenantId: string | undefined;
941
+ createdAt: Date;
942
+ };
943
+ tenantId: string | undefined;
944
+ createdAt: Date;
945
+ } | null;
946
+ tenantId: string | undefined;
947
+ createdAt: Date;
948
+ } | null;
949
+ configSchema: PrismaJson.ServerConfigSchema;
950
+ configTransformer: string;
951
+ remoteUrl: string | null;
952
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
953
+ createdAt: Date;
954
+ };
955
+ oauthConfig: {
956
+ type: "remote";
957
+ name: string | null;
958
+ config: any;
959
+ scopes: string[];
960
+ authConfigSchema: null;
961
+ provider: {
962
+ name: string;
963
+ url: string;
964
+ };
965
+ discovery: {
966
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
967
+ error: {
968
+ code: string;
969
+ message: string;
970
+ } | null;
971
+ createdAt: Date;
972
+ lastDiscoveredAt: Date | null;
973
+ };
974
+ } | {
975
+ type: "delegated";
976
+ name: string | null;
977
+ config: null;
978
+ scopes: never[];
979
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
980
+ provider: null;
981
+ discovery: {
982
+ status: "succeeded";
983
+ error: {
984
+ code: string;
985
+ message: string;
986
+ } | null;
987
+ createdAt: Date;
988
+ lastDiscoveredAt: null;
989
+ };
990
+ } | null;
991
+ tenantId: string | undefined;
992
+ createdAt: Date;
993
+ updatedAt: Date;
994
+ }, {
995
+ tenant: {
996
+ name: string;
997
+ identifier: string;
998
+ oid: bigint;
999
+ id: string;
1000
+ functionBayTenantId: string | null;
1001
+ createdAt: Date;
1002
+ };
1003
+ server: {
1004
+ tenant: {
1005
+ name: string;
1006
+ identifier: string;
1007
+ oid: bigint;
1008
+ id: string;
1009
+ functionBayTenantId: string | null;
1010
+ createdAt: Date;
1011
+ } | null;
1012
+ currentVersion: {
1013
+ identifier: string;
1014
+ oid: bigint;
1015
+ id: string;
1016
+ createdAt: Date;
1017
+ tenantOid: bigint | null;
1018
+ updatedAt: Date;
1019
+ isCurrent: boolean;
1020
+ configSchema: PrismaJson.ServerConfigSchema;
1021
+ configTransformer: string;
1022
+ remoteUrl: string | null;
1023
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1024
+ serverOid: bigint;
1025
+ repositoryTagOid: bigint | null;
1026
+ repositoryVersionOid: bigint | null;
1027
+ functionServerOid: bigint | null;
1028
+ deploymentOid: bigint;
1029
+ } | null;
1030
+ draftRepositoryTag: ({
1031
+ tenant: {
1032
+ name: string;
1033
+ identifier: string;
1034
+ oid: bigint;
1035
+ id: string;
1036
+ functionBayTenantId: string | null;
1037
+ createdAt: Date;
1038
+ } | null;
1039
+ repository: {
1040
+ registry: {
1041
+ name: string;
1042
+ identifier: string;
1043
+ url: string;
1044
+ oid: bigint;
1045
+ id: string;
1046
+ createdAt: Date;
1047
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
1048
+ secretOid: bigint | null;
1049
+ tenantOid: bigint | null;
1050
+ updatedAt: Date;
1051
+ };
1052
+ } & {
1053
+ name: string;
1054
+ identifier: string;
1055
+ oid: bigint;
1056
+ id: string;
1057
+ createdAt: Date;
1058
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
1059
+ tenantOid: bigint | null;
1060
+ updatedAt: Date;
1061
+ registryOid: bigint;
1062
+ registryConnectionOid: bigint | null;
1063
+ };
1064
+ currentVersion: {
1065
+ oid: bigint;
1066
+ id: string;
1067
+ createdAt: Date;
1068
+ tenantOid: bigint | null;
1069
+ digest: string;
1070
+ repositoryOid: bigint;
1071
+ } | null;
1072
+ } & {
1073
+ name: string;
1074
+ identifier: string;
1075
+ oid: bigint;
1076
+ id: string;
1077
+ createdAt: Date;
1078
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
1079
+ tenantOid: bigint | null;
1080
+ updatedAt: Date;
1081
+ discoveryStatus: import("../../../service/prisma/generated/enums").ContainerRepositoryTagDiscoveryStatus;
1082
+ tag: string | null;
1083
+ digest: string | null;
1084
+ currentVersionOid: bigint | null;
1085
+ repositoryOid: bigint;
1086
+ lastDiscoveryErrorOid: bigint | null;
1087
+ lastSyncedAt: Date | null;
1088
+ }) | null;
1089
+ remoteOauthConfig: {
1090
+ name: string | null;
1091
+ oid: bigint;
1092
+ id: string;
1093
+ createdAt: Date;
1094
+ serverOid: bigint;
1095
+ discoverStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
1096
+ config: PrismaJson.RemoteOAuthConfig;
1097
+ providerName: string;
1098
+ providerUrl: string;
1099
+ discoveryUrl: string | null;
1100
+ errorCode: string | null;
1101
+ errorMessage: string | null;
1102
+ scopes: string[];
1103
+ oauthDiscoveryDocumentOid: bigint | null;
1104
+ lastDiscoveredAt: Date | null;
1105
+ } | null;
1106
+ delegatedOauthConfig: {
1107
+ name: string | null;
1108
+ oid: bigint;
1109
+ id: string;
1110
+ createdAt: Date;
1111
+ serverOid: bigint;
1112
+ functionServerOid: bigint;
1113
+ errorCode: string | null;
1114
+ errorMessage: string | null;
1115
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
1116
+ authConfigSchemaHash: string;
1117
+ supportsOauthTokenRefresh: boolean;
1118
+ } | null;
1119
+ } & {
1120
+ name: string;
1121
+ oid: bigint;
1122
+ id: string;
1123
+ createdAt: Date;
1124
+ type: import("../../../service/prisma/generated/enums").ServerType;
1125
+ tenantOid: bigint | null;
1126
+ updatedAt: Date;
1127
+ currentVersionOid: bigint | null;
1128
+ description: string | null;
1129
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
1130
+ draftConfigTransformer: string;
1131
+ draftRemoteUrl: string | null;
1132
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1133
+ draftRepositoryTagOid: bigint | null;
1134
+ remoteOauthConfigOid: bigint | null;
1135
+ delegatedOauthConfigOid: bigint | null;
1136
+ };
1137
+ }>;
1138
+ update: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1139
+ tenantId: string;
1140
+ serverId: string;
1141
+ name: string | undefined;
1142
+ description: string | undefined;
1143
+ }>, {
1144
+ object: string;
1145
+ id: string;
1146
+ type: import("../../../service/prisma/generated/enums").ServerType;
1147
+ name: string;
1148
+ description: string | null;
1149
+ currentVersionId: string | undefined;
1150
+ draft: {
1151
+ repositoryTag: {
1152
+ object: string;
1153
+ id: string;
1154
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
1155
+ name: string;
1156
+ repository: {
1157
+ object: string;
1158
+ id: string;
1159
+ type: "docker";
1160
+ name: string;
1161
+ registry: {
1162
+ object: string;
1163
+ id: string;
1164
+ type: "docker";
1165
+ name: string;
1166
+ url: string;
1167
+ tenantId: string | undefined;
1168
+ createdAt: Date;
1169
+ };
1170
+ tenantId: string | undefined;
1171
+ createdAt: Date;
1172
+ };
1173
+ currentVersion: {
1174
+ object: string;
1175
+ id: string;
1176
+ digest: string;
1177
+ repository: {
1178
+ object: string;
1179
+ id: string;
1180
+ type: "docker";
1181
+ name: string;
1182
+ registry: {
1183
+ object: string;
1184
+ id: string;
1185
+ type: "docker";
1186
+ name: string;
1187
+ url: string;
1188
+ tenantId: string | undefined;
1189
+ createdAt: Date;
1190
+ };
1191
+ tenantId: string | undefined;
1192
+ createdAt: Date;
1193
+ };
1194
+ tenantId: string | undefined;
1195
+ createdAt: Date;
1196
+ } | null;
1197
+ tenantId: string | undefined;
1198
+ createdAt: Date;
1199
+ } | null;
1200
+ configSchema: PrismaJson.ServerConfigSchema;
1201
+ configTransformer: string;
1202
+ remoteUrl: string | null;
1203
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1204
+ createdAt: Date;
1205
+ };
1206
+ oauthConfig: {
1207
+ type: "remote";
1208
+ name: string | null;
1209
+ config: any;
1210
+ scopes: string[];
1211
+ authConfigSchema: null;
1212
+ provider: {
1213
+ name: string;
1214
+ url: string;
1215
+ };
1216
+ discovery: {
1217
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
1218
+ error: {
1219
+ code: string;
1220
+ message: string;
1221
+ } | null;
1222
+ createdAt: Date;
1223
+ lastDiscoveredAt: Date | null;
1224
+ };
1225
+ } | {
1226
+ type: "delegated";
1227
+ name: string | null;
1228
+ config: null;
1229
+ scopes: never[];
1230
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
1231
+ provider: null;
1232
+ discovery: {
1233
+ status: "succeeded";
1234
+ error: {
1235
+ code: string;
1236
+ message: string;
1237
+ } | null;
1238
+ createdAt: Date;
1239
+ lastDiscoveredAt: null;
1240
+ };
1241
+ } | null;
1242
+ tenantId: string | undefined;
1243
+ createdAt: Date;
1244
+ updatedAt: Date;
1245
+ }, {
1246
+ tenant: {
1247
+ name: string;
1248
+ identifier: string;
1249
+ oid: bigint;
1250
+ id: string;
1251
+ functionBayTenantId: string | null;
1252
+ createdAt: Date;
1253
+ };
1254
+ server: {
1255
+ tenant: {
1256
+ name: string;
1257
+ identifier: string;
1258
+ oid: bigint;
1259
+ id: string;
1260
+ functionBayTenantId: string | null;
1261
+ createdAt: Date;
1262
+ } | null;
1263
+ currentVersion: {
1264
+ identifier: string;
1265
+ oid: bigint;
1266
+ id: string;
1267
+ createdAt: Date;
1268
+ tenantOid: bigint | null;
1269
+ updatedAt: Date;
1270
+ isCurrent: boolean;
1271
+ configSchema: PrismaJson.ServerConfigSchema;
1272
+ configTransformer: string;
1273
+ remoteUrl: string | null;
1274
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1275
+ serverOid: bigint;
1276
+ repositoryTagOid: bigint | null;
1277
+ repositoryVersionOid: bigint | null;
1278
+ functionServerOid: bigint | null;
1279
+ deploymentOid: bigint;
1280
+ } | null;
1281
+ draftRepositoryTag: ({
1282
+ tenant: {
1283
+ name: string;
1284
+ identifier: string;
1285
+ oid: bigint;
1286
+ id: string;
1287
+ functionBayTenantId: string | null;
1288
+ createdAt: Date;
1289
+ } | null;
1290
+ repository: {
1291
+ registry: {
1292
+ name: string;
1293
+ identifier: string;
1294
+ url: string;
1295
+ oid: bigint;
1296
+ id: string;
1297
+ createdAt: Date;
1298
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
1299
+ secretOid: bigint | null;
1300
+ tenantOid: bigint | null;
1301
+ updatedAt: Date;
1302
+ };
1303
+ } & {
1304
+ name: string;
1305
+ identifier: string;
1306
+ oid: bigint;
1307
+ id: string;
1308
+ createdAt: Date;
1309
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
1310
+ tenantOid: bigint | null;
1311
+ updatedAt: Date;
1312
+ registryOid: bigint;
1313
+ registryConnectionOid: bigint | null;
1314
+ };
1315
+ currentVersion: {
1316
+ oid: bigint;
1317
+ id: string;
1318
+ createdAt: Date;
1319
+ tenantOid: bigint | null;
1320
+ digest: string;
1321
+ repositoryOid: bigint;
1322
+ } | null;
1323
+ } & {
1324
+ name: string;
1325
+ identifier: string;
1326
+ oid: bigint;
1327
+ id: string;
1328
+ createdAt: Date;
1329
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
1330
+ tenantOid: bigint | null;
1331
+ updatedAt: Date;
1332
+ discoveryStatus: import("../../../service/prisma/generated/enums").ContainerRepositoryTagDiscoveryStatus;
1333
+ tag: string | null;
1334
+ digest: string | null;
1335
+ currentVersionOid: bigint | null;
1336
+ repositoryOid: bigint;
1337
+ lastDiscoveryErrorOid: bigint | null;
1338
+ lastSyncedAt: Date | null;
1339
+ }) | null;
1340
+ remoteOauthConfig: {
1341
+ name: string | null;
1342
+ oid: bigint;
1343
+ id: string;
1344
+ createdAt: Date;
1345
+ serverOid: bigint;
1346
+ discoverStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
1347
+ config: PrismaJson.RemoteOAuthConfig;
1348
+ providerName: string;
1349
+ providerUrl: string;
1350
+ discoveryUrl: string | null;
1351
+ errorCode: string | null;
1352
+ errorMessage: string | null;
1353
+ scopes: string[];
1354
+ oauthDiscoveryDocumentOid: bigint | null;
1355
+ lastDiscoveredAt: Date | null;
1356
+ } | null;
1357
+ delegatedOauthConfig: {
1358
+ name: string | null;
1359
+ oid: bigint;
1360
+ id: string;
1361
+ createdAt: Date;
1362
+ serverOid: bigint;
1363
+ functionServerOid: bigint;
1364
+ errorCode: string | null;
1365
+ errorMessage: string | null;
1366
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
1367
+ authConfigSchemaHash: string;
1368
+ supportsOauthTokenRefresh: boolean;
1369
+ } | null;
1370
+ } & {
1371
+ name: string;
1372
+ oid: bigint;
1373
+ id: string;
1374
+ createdAt: Date;
1375
+ type: import("../../../service/prisma/generated/enums").ServerType;
1376
+ tenantOid: bigint | null;
1377
+ updatedAt: Date;
1378
+ currentVersionOid: bigint | null;
1379
+ description: string | null;
1380
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
1381
+ draftConfigTransformer: string;
1382
+ draftRemoteUrl: string | null;
1383
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1384
+ draftRepositoryTagOid: bigint | null;
1385
+ remoteOauthConfigOid: bigint | null;
1386
+ delegatedOauthConfigOid: bigint | null;
1387
+ };
1388
+ }>;
1389
+ };
1390
+ serverVersion: {
1391
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
1392
+ tenantId: string;
1393
+ serverIds: string[] | undefined;
1394
+ }, "serverIds">> & {
1395
+ tenantId: string;
1396
+ } & {
1397
+ limit?: number;
1398
+ after?: string;
1399
+ before?: string;
1400
+ cursor?: string;
1401
+ order?: "asc" | "desc";
1402
+ }, {
1403
+ __typename: string;
1404
+ items: {
1405
+ object: string;
1406
+ id: string;
1407
+ type: import("../../../service/prisma/generated/enums").ServerType;
1408
+ isCurrent: boolean;
1409
+ repositoryTag: {
1410
+ object: string;
1411
+ id: string;
1412
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
1413
+ name: string;
1414
+ repository: {
1415
+ object: string;
1416
+ id: string;
1417
+ type: "docker";
1418
+ name: string;
1419
+ registry: {
1420
+ object: string;
1421
+ id: string;
1422
+ type: "docker";
1423
+ name: string;
1424
+ url: string;
1425
+ tenantId: string | undefined;
1426
+ createdAt: Date;
1427
+ };
1428
+ tenantId: string | undefined;
1429
+ createdAt: Date;
1430
+ };
1431
+ currentVersion: {
1432
+ object: string;
1433
+ id: string;
1434
+ digest: string;
1435
+ repository: {
1436
+ object: string;
1437
+ id: string;
1438
+ type: "docker";
1439
+ name: string;
1440
+ registry: {
1441
+ object: string;
1442
+ id: string;
1443
+ type: "docker";
1444
+ name: string;
1445
+ url: string;
1446
+ tenantId: string | undefined;
1447
+ createdAt: Date;
1448
+ };
1449
+ tenantId: string | undefined;
1450
+ createdAt: Date;
1451
+ };
1452
+ tenantId: string | undefined;
1453
+ createdAt: Date;
1454
+ } | null;
1455
+ tenantId: string | undefined;
1456
+ createdAt: Date;
1457
+ } | null;
1458
+ repositoryVersion: {
1459
+ object: string;
1460
+ id: string;
1461
+ digest: string;
1462
+ repository: {
1463
+ object: string;
1464
+ id: string;
1465
+ type: "docker";
1466
+ name: string;
1467
+ registry: {
1468
+ object: string;
1469
+ id: string;
1470
+ type: "docker";
1471
+ name: string;
1472
+ url: string;
1473
+ tenantId: string | undefined;
1474
+ createdAt: Date;
1475
+ };
1476
+ tenantId: string | undefined;
1477
+ createdAt: Date;
1478
+ };
1479
+ tenantId: string | undefined;
1480
+ createdAt: Date;
1481
+ } | null;
1482
+ configSchema: PrismaJson.ServerConfigSchema;
1483
+ configTransformer: string;
1484
+ remoteUrl: string | null;
1485
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1486
+ serverId: string;
1487
+ tenantId: string | undefined;
1488
+ createdAt: Date;
1489
+ updatedAt: Date;
1490
+ }[];
1491
+ pagination: {
1492
+ has_more_after: boolean;
1493
+ has_more_before: boolean;
1494
+ };
1495
+ }, {
1496
+ tenant: {
1497
+ name: string;
1498
+ identifier: string;
1499
+ oid: bigint;
1500
+ id: string;
1501
+ functionBayTenantId: string | null;
1502
+ createdAt: Date;
1503
+ };
1504
+ }>;
1505
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1506
+ tenantId: string;
1507
+ serverVersionId: string;
1508
+ }>, {
1509
+ object: string;
1510
+ id: string;
1511
+ type: import("../../../service/prisma/generated/enums").ServerType;
1512
+ isCurrent: boolean;
1513
+ repositoryTag: {
1514
+ object: string;
1515
+ id: string;
1516
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
1517
+ name: string;
1518
+ repository: {
1519
+ object: string;
1520
+ id: string;
1521
+ type: "docker";
1522
+ name: string;
1523
+ registry: {
1524
+ object: string;
1525
+ id: string;
1526
+ type: "docker";
1527
+ name: string;
1528
+ url: string;
1529
+ tenantId: string | undefined;
1530
+ createdAt: Date;
1531
+ };
1532
+ tenantId: string | undefined;
1533
+ createdAt: Date;
1534
+ };
1535
+ currentVersion: {
1536
+ object: string;
1537
+ id: string;
1538
+ digest: string;
1539
+ repository: {
1540
+ object: string;
1541
+ id: string;
1542
+ type: "docker";
1543
+ name: string;
1544
+ registry: {
1545
+ object: string;
1546
+ id: string;
1547
+ type: "docker";
1548
+ name: string;
1549
+ url: string;
1550
+ tenantId: string | undefined;
1551
+ createdAt: Date;
1552
+ };
1553
+ tenantId: string | undefined;
1554
+ createdAt: Date;
1555
+ };
1556
+ tenantId: string | undefined;
1557
+ createdAt: Date;
1558
+ } | null;
1559
+ tenantId: string | undefined;
1560
+ createdAt: Date;
1561
+ } | null;
1562
+ repositoryVersion: {
1563
+ object: string;
1564
+ id: string;
1565
+ digest: string;
1566
+ repository: {
1567
+ object: string;
1568
+ id: string;
1569
+ type: "docker";
1570
+ name: string;
1571
+ registry: {
1572
+ object: string;
1573
+ id: string;
1574
+ type: "docker";
1575
+ name: string;
1576
+ url: string;
1577
+ tenantId: string | undefined;
1578
+ createdAt: Date;
1579
+ };
1580
+ tenantId: string | undefined;
1581
+ createdAt: Date;
1582
+ };
1583
+ tenantId: string | undefined;
1584
+ createdAt: Date;
1585
+ } | null;
1586
+ configSchema: PrismaJson.ServerConfigSchema;
1587
+ configTransformer: string;
1588
+ remoteUrl: string | null;
1589
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1590
+ serverId: string;
1591
+ tenantId: string | undefined;
1592
+ createdAt: Date;
1593
+ updatedAt: Date;
1594
+ }, {
1595
+ tenant: {
1596
+ name: string;
1597
+ identifier: string;
1598
+ oid: bigint;
1599
+ id: string;
1600
+ functionBayTenantId: string | null;
1601
+ createdAt: Date;
1602
+ };
1603
+ serverVersion: {
1604
+ tenant: {
1605
+ name: string;
1606
+ identifier: string;
1607
+ oid: bigint;
1608
+ id: string;
1609
+ functionBayTenantId: string | null;
1610
+ createdAt: Date;
1611
+ } | null;
1612
+ repositoryTag: ({
1613
+ tenant: {
1614
+ name: string;
1615
+ identifier: string;
1616
+ oid: bigint;
1617
+ id: string;
1618
+ functionBayTenantId: string | null;
1619
+ createdAt: Date;
1620
+ } | null;
1621
+ repository: {
1622
+ registry: {
1623
+ name: string;
1624
+ identifier: string;
1625
+ url: string;
1626
+ oid: bigint;
1627
+ id: string;
1628
+ createdAt: Date;
1629
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
1630
+ secretOid: bigint | null;
1631
+ tenantOid: bigint | null;
1632
+ updatedAt: Date;
1633
+ };
1634
+ } & {
1635
+ name: string;
1636
+ identifier: string;
1637
+ oid: bigint;
1638
+ id: string;
1639
+ createdAt: Date;
1640
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
1641
+ tenantOid: bigint | null;
1642
+ updatedAt: Date;
1643
+ registryOid: bigint;
1644
+ registryConnectionOid: bigint | null;
1645
+ };
1646
+ currentVersion: {
1647
+ oid: bigint;
1648
+ id: string;
1649
+ createdAt: Date;
1650
+ tenantOid: bigint | null;
1651
+ digest: string;
1652
+ repositoryOid: bigint;
1653
+ } | null;
1654
+ } & {
1655
+ name: string;
1656
+ identifier: string;
1657
+ oid: bigint;
1658
+ id: string;
1659
+ createdAt: Date;
1660
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryTagType;
1661
+ tenantOid: bigint | null;
1662
+ updatedAt: Date;
1663
+ discoveryStatus: import("../../../service/prisma/generated/enums").ContainerRepositoryTagDiscoveryStatus;
1664
+ tag: string | null;
1665
+ digest: string | null;
1666
+ currentVersionOid: bigint | null;
1667
+ repositoryOid: bigint;
1668
+ lastDiscoveryErrorOid: bigint | null;
1669
+ lastSyncedAt: Date | null;
1670
+ }) | null;
1671
+ repositoryVersion: ({
1672
+ tenant: {
1673
+ name: string;
1674
+ identifier: string;
1675
+ oid: bigint;
1676
+ id: string;
1677
+ functionBayTenantId: string | null;
1678
+ createdAt: Date;
1679
+ } | null;
1680
+ repository: {
1681
+ registry: {
1682
+ name: string;
1683
+ identifier: string;
1684
+ url: string;
1685
+ oid: bigint;
1686
+ id: string;
1687
+ createdAt: Date;
1688
+ type: import("../../../service/prisma/generated/enums").ContainerRegistryType;
1689
+ secretOid: bigint | null;
1690
+ tenantOid: bigint | null;
1691
+ updatedAt: Date;
1692
+ };
1693
+ } & {
1694
+ name: string;
1695
+ identifier: string;
1696
+ oid: bigint;
1697
+ id: string;
1698
+ createdAt: Date;
1699
+ type: import("../../../service/prisma/generated/enums").ContainerRepositoryType;
1700
+ tenantOid: bigint | null;
1701
+ updatedAt: Date;
1702
+ registryOid: bigint;
1703
+ registryConnectionOid: bigint | null;
1704
+ };
1705
+ } & {
1706
+ oid: bigint;
1707
+ id: string;
1708
+ createdAt: Date;
1709
+ tenantOid: bigint | null;
1710
+ digest: string;
1711
+ repositoryOid: bigint;
1712
+ }) | null;
1713
+ server: {
1714
+ name: string;
1715
+ oid: bigint;
1716
+ id: string;
1717
+ createdAt: Date;
1718
+ type: import("../../../service/prisma/generated/enums").ServerType;
1719
+ tenantOid: bigint | null;
1720
+ updatedAt: Date;
1721
+ currentVersionOid: bigint | null;
1722
+ description: string | null;
1723
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
1724
+ draftConfigTransformer: string;
1725
+ draftRemoteUrl: string | null;
1726
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1727
+ draftRepositoryTagOid: bigint | null;
1728
+ remoteOauthConfigOid: bigint | null;
1729
+ delegatedOauthConfigOid: bigint | null;
1730
+ };
1731
+ } & {
1732
+ identifier: string;
1733
+ oid: bigint;
1734
+ id: string;
1735
+ createdAt: Date;
1736
+ tenantOid: bigint | null;
1737
+ updatedAt: Date;
1738
+ isCurrent: boolean;
1739
+ configSchema: PrismaJson.ServerConfigSchema;
1740
+ configTransformer: string;
1741
+ remoteUrl: string | null;
1742
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1743
+ serverOid: bigint;
1744
+ repositoryTagOid: bigint | null;
1745
+ repositoryVersionOid: bigint | null;
1746
+ functionServerOid: bigint | null;
1747
+ deploymentOid: bigint;
1748
+ };
1749
+ }>;
1750
+ };
1751
+ serverDiscovery: {
1752
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1753
+ tenantId: string;
1754
+ serverConfigId: string;
1755
+ serverVersionId: string;
1756
+ serverAuthConfigId: string | undefined;
1757
+ }>, {
1758
+ object: string;
1759
+ id: string;
1760
+ status: import("../../../service/prisma/generated/enums").ServerDiscoveryStatus;
1761
+ authConfigSchema: Record<string, any> | null;
1762
+ configSchema: any;
1763
+ capabilities: {
1764
+ experimental?: {
1765
+ [x: string]: object;
1766
+ } | undefined;
1767
+ logging?: object | undefined;
1768
+ completions?: object | undefined;
1769
+ prompts?: {
1770
+ listChanged?: boolean | undefined;
1771
+ } | undefined;
1772
+ resources?: {
1773
+ subscribe?: boolean | undefined;
1774
+ listChanged?: boolean | undefined;
1775
+ } | undefined;
1776
+ tools?: {
1777
+ listChanged?: boolean | undefined;
1778
+ } | undefined;
1779
+ tasks?: {
1780
+ [x: string]: unknown;
1781
+ list?: object | undefined;
1782
+ cancel?: object | undefined;
1783
+ requests?: {
1784
+ [x: string]: unknown;
1785
+ tools?: {
1786
+ [x: string]: unknown;
1787
+ call?: object | undefined;
1788
+ } | undefined;
1789
+ } | undefined;
1790
+ } | undefined;
1791
+ };
1792
+ instructions: string | null;
1793
+ prompts: {
1794
+ name: string;
1795
+ description?: string | undefined;
1796
+ arguments?: {
1797
+ name: string;
1798
+ description?: string | undefined;
1799
+ required?: boolean | undefined;
1800
+ }[] | undefined;
1801
+ _meta?: {
1802
+ [x: string]: unknown;
1803
+ } | undefined;
1804
+ icons?: {
1805
+ src: string;
1806
+ mimeType?: string | undefined;
1807
+ sizes?: string[] | undefined;
1808
+ theme?: "light" | "dark" | undefined;
1809
+ }[] | undefined;
1810
+ title?: string | undefined;
1811
+ }[];
1812
+ resourceTemplates: {
1813
+ uriTemplate: string;
1814
+ name: string;
1815
+ description?: string | undefined;
1816
+ mimeType?: string | undefined;
1817
+ annotations?: {
1818
+ audience?: ("user" | "assistant")[] | undefined;
1819
+ priority?: number | undefined;
1820
+ lastModified?: string | undefined;
1821
+ } | undefined;
1822
+ _meta?: {
1823
+ [x: string]: unknown;
1824
+ } | undefined;
1825
+ icons?: {
1826
+ src: string;
1827
+ mimeType?: string | undefined;
1828
+ sizes?: string[] | undefined;
1829
+ theme?: "light" | "dark" | undefined;
1830
+ }[] | undefined;
1831
+ title?: string | undefined;
1832
+ }[];
1833
+ tools: {
1834
+ inputSchema: {
1835
+ [x: string]: unknown;
1836
+ type: "object";
1837
+ properties?: {
1838
+ [x: string]: object;
1839
+ } | undefined;
1840
+ required?: string[] | undefined;
1841
+ };
1842
+ name: string;
1843
+ description?: string | undefined;
1844
+ outputSchema?: {
1845
+ [x: string]: unknown;
1846
+ type: "object";
1847
+ properties?: {
1848
+ [x: string]: object;
1849
+ } | undefined;
1850
+ required?: string[] | undefined;
1851
+ } | undefined;
1852
+ annotations?: {
1853
+ title?: string | undefined;
1854
+ readOnlyHint?: boolean | undefined;
1855
+ destructiveHint?: boolean | undefined;
1856
+ idempotentHint?: boolean | undefined;
1857
+ openWorldHint?: boolean | undefined;
1858
+ } | undefined;
1859
+ execution?: {
1860
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
1861
+ } | undefined;
1862
+ _meta?: {
1863
+ [x: string]: unknown;
1864
+ } | undefined;
1865
+ icons?: {
1866
+ src: string;
1867
+ mimeType?: string | undefined;
1868
+ sizes?: string[] | undefined;
1869
+ theme?: "light" | "dark" | undefined;
1870
+ }[] | undefined;
1871
+ title?: string | undefined;
1872
+ }[];
1873
+ info: {
1874
+ version: string;
1875
+ name: string;
1876
+ websiteUrl?: string | undefined;
1877
+ description?: string | undefined;
1878
+ icons?: {
1879
+ src: string;
1880
+ mimeType?: string | undefined;
1881
+ sizes?: string[] | undefined;
1882
+ theme?: "light" | "dark" | undefined;
1883
+ }[] | undefined;
1884
+ title?: string | undefined;
1885
+ };
1886
+ serverConfigId: string;
1887
+ serverVersionId: string;
1888
+ serverAuthConfigId: string | undefined;
1889
+ createdAt: Date;
1890
+ }, {
1891
+ tenant: {
1892
+ name: string;
1893
+ identifier: string;
1894
+ oid: bigint;
1895
+ id: string;
1896
+ functionBayTenantId: string | null;
1897
+ createdAt: Date;
1898
+ };
1899
+ }>;
1900
+ };
1901
+ serverConfig: {
1902
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
1903
+ tenantId: string;
1904
+ }, never>> & {
1905
+ tenantId: string;
1906
+ } & {
1907
+ limit?: number;
1908
+ after?: string;
1909
+ before?: string;
1910
+ cursor?: string;
1911
+ order?: "asc" | "desc";
1912
+ }, {
1913
+ __typename: string;
1914
+ items: {
1915
+ object: string;
1916
+ id: string;
1917
+ serverId: string;
1918
+ tenantId: string;
1919
+ createdAt: Date;
1920
+ updatedAt: Date;
1921
+ }[];
1922
+ pagination: {
1923
+ has_more_after: boolean;
1924
+ has_more_before: boolean;
1925
+ };
1926
+ }, {
1927
+ tenant: {
1928
+ name: string;
1929
+ identifier: string;
1930
+ oid: bigint;
1931
+ id: string;
1932
+ functionBayTenantId: string | null;
1933
+ createdAt: Date;
1934
+ };
1935
+ }>;
1936
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1937
+ tenantId: string;
1938
+ serverId: string;
1939
+ config: Record<string, any>;
1940
+ }>, {
1941
+ object: string;
1942
+ id: string;
1943
+ serverId: string;
1944
+ tenantId: string;
1945
+ createdAt: Date;
1946
+ updatedAt: Date;
1947
+ }, {
1948
+ tenant: {
1949
+ name: string;
1950
+ identifier: string;
1951
+ oid: bigint;
1952
+ id: string;
1953
+ functionBayTenantId: string | null;
1954
+ createdAt: Date;
1955
+ };
1956
+ }>;
1957
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1958
+ tenantId: string;
1959
+ serverConfigId: string;
1960
+ }>, {
1961
+ object: string;
1962
+ id: string;
1963
+ serverId: string;
1964
+ tenantId: string;
1965
+ createdAt: Date;
1966
+ updatedAt: Date;
1967
+ }, {
1968
+ tenant: {
1969
+ name: string;
1970
+ identifier: string;
1971
+ oid: bigint;
1972
+ id: string;
1973
+ functionBayTenantId: string | null;
1974
+ createdAt: Date;
1975
+ };
1976
+ serverConfig: {
1977
+ tenant: {
1978
+ name: string;
1979
+ identifier: string;
1980
+ oid: bigint;
1981
+ id: string;
1982
+ functionBayTenantId: string | null;
1983
+ createdAt: Date;
1984
+ };
1985
+ server: {
1986
+ name: string;
1987
+ oid: bigint;
1988
+ id: string;
1989
+ createdAt: Date;
1990
+ type: import("../../../service/prisma/generated/enums").ServerType;
1991
+ tenantOid: bigint | null;
1992
+ updatedAt: Date;
1993
+ currentVersionOid: bigint | null;
1994
+ description: string | null;
1995
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
1996
+ draftConfigTransformer: string;
1997
+ draftRemoteUrl: string | null;
1998
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
1999
+ draftRepositoryTagOid: bigint | null;
2000
+ remoteOauthConfigOid: bigint | null;
2001
+ delegatedOauthConfigOid: bigint | null;
2002
+ };
2003
+ } & {
2004
+ oid: bigint;
2005
+ id: string;
2006
+ createdAt: Date;
2007
+ secretOid: bigint;
2008
+ tenantOid: bigint;
2009
+ updatedAt: Date;
2010
+ serverOid: bigint;
2011
+ };
2012
+ }>;
2013
+ };
2014
+ serverDeployment: {
2015
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2016
+ tenantId: string;
2017
+ serverIds: string[] | undefined;
2018
+ }, "serverIds">> & {
2019
+ tenantId: string;
2020
+ } & {
2021
+ limit?: number;
2022
+ after?: string;
2023
+ before?: string;
2024
+ cursor?: string;
2025
+ order?: "asc" | "desc";
2026
+ }, {
2027
+ __typename: string;
2028
+ items: {
2029
+ object: string;
2030
+ id: string;
2031
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStatus;
2032
+ serverId: string;
2033
+ tenantId: string | null;
2034
+ functionServerId: string | null;
2035
+ createdAt: Date;
2036
+ updatedAt: Date;
2037
+ startedAt: Date | null;
2038
+ endedAt: Date | null;
2039
+ }[];
2040
+ pagination: {
2041
+ has_more_after: boolean;
2042
+ has_more_before: boolean;
2043
+ };
2044
+ }, {
2045
+ tenant: {
2046
+ name: string;
2047
+ identifier: string;
2048
+ oid: bigint;
2049
+ id: string;
2050
+ functionBayTenantId: string | null;
2051
+ createdAt: Date;
2052
+ };
2053
+ }>;
2054
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2055
+ tenantId: string;
2056
+ serverDeploymentId: string;
2057
+ }>, {
2058
+ object: string;
2059
+ id: string;
2060
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStatus;
2061
+ serverId: string;
2062
+ tenantId: string | null;
2063
+ functionServerId: string | null;
2064
+ createdAt: Date;
2065
+ updatedAt: Date;
2066
+ startedAt: Date | null;
2067
+ endedAt: Date | null;
2068
+ }, {
2069
+ tenant: {
2070
+ name: string;
2071
+ identifier: string;
2072
+ oid: bigint;
2073
+ id: string;
2074
+ functionBayTenantId: string | null;
2075
+ createdAt: Date;
2076
+ };
2077
+ serverDeployment: {
2078
+ tenant: {
2079
+ name: string;
2080
+ identifier: string;
2081
+ oid: bigint;
2082
+ id: string;
2083
+ functionBayTenantId: string | null;
2084
+ createdAt: Date;
2085
+ } | null;
2086
+ server: {
2087
+ name: string;
2088
+ oid: bigint;
2089
+ id: string;
2090
+ createdAt: Date;
2091
+ type: import("../../../service/prisma/generated/enums").ServerType;
2092
+ tenantOid: bigint | null;
2093
+ updatedAt: Date;
2094
+ currentVersionOid: bigint | null;
2095
+ description: string | null;
2096
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
2097
+ draftConfigTransformer: string;
2098
+ draftRemoteUrl: string | null;
2099
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
2100
+ draftRepositoryTagOid: bigint | null;
2101
+ remoteOauthConfigOid: bigint | null;
2102
+ delegatedOauthConfigOid: bigint | null;
2103
+ };
2104
+ functionServer: {
2105
+ oid: bigint;
2106
+ id: string;
2107
+ functionBayTenantId: string;
2108
+ createdAt: Date;
2109
+ info: PrismaJson.FunctionServerInfo;
2110
+ delegatedOauthConfigOid: bigint | null;
2111
+ configSchema: PrismaJson.FunctionServerConfigSchema;
2112
+ serverOid: bigint;
2113
+ errorCode: string | null;
2114
+ errorMessage: string | null;
2115
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
2116
+ supportsOauthTokenRefresh: boolean;
2117
+ status: import("../../../service/prisma/generated/enums").FunctionServerStatus;
2118
+ functionBayFunctionId: string;
2119
+ functionBayDeploymentId: string;
2120
+ functionBayVersionId: string | null;
2121
+ supportsOAuth: boolean;
2122
+ providerOid: bigint;
2123
+ } | null;
2124
+ } & {
2125
+ oid: bigint;
2126
+ id: string;
2127
+ createdAt: Date;
2128
+ tenantOid: bigint | null;
2129
+ updatedAt: Date;
2130
+ serverOid: bigint;
2131
+ functionServerOid: bigint | null;
2132
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStatus;
2133
+ startedAt: Date | null;
2134
+ endedAt: Date | null;
2135
+ };
2136
+ }>;
2137
+ getOutput: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2138
+ tenantId: string;
2139
+ serverDeploymentId: string;
2140
+ }>, ({
2141
+ object: string;
2142
+ id: string;
2143
+ status: import("@metorial-services/function-bay-client").FunctionDeploymentStepStatus;
2144
+ name: string;
2145
+ logs: {
2146
+ timestamp: number;
2147
+ message: string;
2148
+ }[];
2149
+ type: "deploy" | "build";
2150
+ createdAt: Date;
2151
+ startedAt: Date | null;
2152
+ endedAt: Date | null;
2153
+ } | {
2154
+ object: string;
2155
+ id: string;
2156
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStepStatus;
2157
+ name: string;
2158
+ logs: {
2159
+ timestamp: number;
2160
+ message: string;
2161
+ }[];
2162
+ type: import("../../../service/prisma/generated/enums").ServerDeploymentStepType;
2163
+ createdAt: Date;
2164
+ startedAt: Date | null;
2165
+ endedAt: Date | null;
2166
+ })[], {
2167
+ tenant: {
2168
+ name: string;
2169
+ identifier: string;
2170
+ oid: bigint;
2171
+ id: string;
2172
+ functionBayTenantId: string | null;
2173
+ createdAt: Date;
2174
+ };
2175
+ serverDeployment: {
2176
+ tenant: {
2177
+ name: string;
2178
+ identifier: string;
2179
+ oid: bigint;
2180
+ id: string;
2181
+ functionBayTenantId: string | null;
2182
+ createdAt: Date;
2183
+ } | null;
2184
+ server: {
2185
+ name: string;
2186
+ oid: bigint;
2187
+ id: string;
2188
+ createdAt: Date;
2189
+ type: import("../../../service/prisma/generated/enums").ServerType;
2190
+ tenantOid: bigint | null;
2191
+ updatedAt: Date;
2192
+ currentVersionOid: bigint | null;
2193
+ description: string | null;
2194
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
2195
+ draftConfigTransformer: string;
2196
+ draftRemoteUrl: string | null;
2197
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
2198
+ draftRepositoryTagOid: bigint | null;
2199
+ remoteOauthConfigOid: bigint | null;
2200
+ delegatedOauthConfigOid: bigint | null;
2201
+ };
2202
+ functionServer: {
2203
+ oid: bigint;
2204
+ id: string;
2205
+ functionBayTenantId: string;
2206
+ createdAt: Date;
2207
+ info: PrismaJson.FunctionServerInfo;
2208
+ delegatedOauthConfigOid: bigint | null;
2209
+ configSchema: PrismaJson.FunctionServerConfigSchema;
2210
+ serverOid: bigint;
2211
+ errorCode: string | null;
2212
+ errorMessage: string | null;
2213
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
2214
+ supportsOauthTokenRefresh: boolean;
2215
+ status: import("../../../service/prisma/generated/enums").FunctionServerStatus;
2216
+ functionBayFunctionId: string;
2217
+ functionBayDeploymentId: string;
2218
+ functionBayVersionId: string | null;
2219
+ supportsOAuth: boolean;
2220
+ providerOid: bigint;
2221
+ } | null;
2222
+ } & {
2223
+ oid: bigint;
2224
+ id: string;
2225
+ createdAt: Date;
2226
+ tenantOid: bigint | null;
2227
+ updatedAt: Date;
2228
+ serverOid: bigint;
2229
+ functionServerOid: bigint | null;
2230
+ status: import("../../../service/prisma/generated/enums").ServerDeploymentStatus;
2231
+ startedAt: Date | null;
2232
+ endedAt: Date | null;
2233
+ };
2234
+ }>;
2235
+ };
2236
+ serverConnection: {
2237
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2238
+ tenantId: string;
2239
+ }, never>> & {
2240
+ tenantId: string;
2241
+ } & {
2242
+ limit?: number;
2243
+ after?: string;
2244
+ before?: string;
2245
+ cursor?: string;
2246
+ order?: "asc" | "desc";
2247
+ }, {
2248
+ __typename: string;
2249
+ items: {
2250
+ object: string;
2251
+ id: string;
2252
+ status: import("../../../service/prisma/generated/enums").ServerConnectionStatus;
2253
+ client: {
2254
+ version: string;
2255
+ name: string;
2256
+ websiteUrl?: string | undefined;
2257
+ description?: string | undefined;
2258
+ icons?: {
2259
+ src: string;
2260
+ mimeType?: string | undefined;
2261
+ sizes?: string[] | undefined;
2262
+ theme?: "light" | "dark" | undefined;
2263
+ }[] | undefined;
2264
+ title?: string | undefined;
2265
+ };
2266
+ capabilities: {
2267
+ experimental?: {
2268
+ [x: string]: object;
2269
+ } | undefined;
2270
+ sampling?: {
2271
+ context?: object | undefined;
2272
+ tools?: object | undefined;
2273
+ } | undefined;
2274
+ elicitation?: {
2275
+ [x: string]: unknown;
2276
+ form?: {
2277
+ [x: string]: unknown;
2278
+ applyDefaults?: boolean | undefined;
2279
+ } | undefined;
2280
+ url?: object | undefined;
2281
+ } | undefined;
2282
+ roots?: {
2283
+ listChanged?: boolean | undefined;
2284
+ } | undefined;
2285
+ tasks?: {
2286
+ [x: string]: unknown;
2287
+ list?: object | undefined;
2288
+ cancel?: object | undefined;
2289
+ requests?: {
2290
+ [x: string]: unknown;
2291
+ sampling?: {
2292
+ [x: string]: unknown;
2293
+ createMessage?: object | undefined;
2294
+ } | undefined;
2295
+ elicitation?: {
2296
+ [x: string]: unknown;
2297
+ create?: object | undefined;
2298
+ } | undefined;
2299
+ } | undefined;
2300
+ } | undefined;
2301
+ };
2302
+ serverConfigId: string;
2303
+ serverVersionId: string;
2304
+ serverAuthConfigId: string | undefined;
2305
+ createdAt: Date;
2306
+ }[];
2307
+ pagination: {
2308
+ has_more_after: boolean;
2309
+ has_more_before: boolean;
2310
+ };
2311
+ }, {
2312
+ tenant: {
2313
+ name: string;
2314
+ identifier: string;
2315
+ oid: bigint;
2316
+ id: string;
2317
+ functionBayTenantId: string | null;
2318
+ createdAt: Date;
2319
+ };
2320
+ }>;
2321
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2322
+ tenantId: string;
2323
+ serverConfigId: string;
2324
+ serverVersionId: string;
2325
+ serverAuthConfigId: string | undefined;
2326
+ networkRulesetIds: string[] | undefined;
2327
+ client: Record<string, any>;
2328
+ capabilities: Record<string, any> | undefined;
2329
+ }>, {
2330
+ object: string;
2331
+ id: string;
2332
+ status: import("../../../service/prisma/generated/enums").ServerConnectionStatus;
2333
+ client: {
2334
+ version: string;
2335
+ name: string;
2336
+ websiteUrl?: string | undefined;
2337
+ description?: string | undefined;
2338
+ icons?: {
2339
+ src: string;
2340
+ mimeType?: string | undefined;
2341
+ sizes?: string[] | undefined;
2342
+ theme?: "light" | "dark" | undefined;
2343
+ }[] | undefined;
2344
+ title?: string | undefined;
2345
+ };
2346
+ capabilities: {
2347
+ experimental?: {
2348
+ [x: string]: object;
2349
+ } | undefined;
2350
+ sampling?: {
2351
+ context?: object | undefined;
2352
+ tools?: object | undefined;
2353
+ } | undefined;
2354
+ elicitation?: {
2355
+ [x: string]: unknown;
2356
+ form?: {
2357
+ [x: string]: unknown;
2358
+ applyDefaults?: boolean | undefined;
2359
+ } | undefined;
2360
+ url?: object | undefined;
2361
+ } | undefined;
2362
+ roots?: {
2363
+ listChanged?: boolean | undefined;
2364
+ } | undefined;
2365
+ tasks?: {
2366
+ [x: string]: unknown;
2367
+ list?: object | undefined;
2368
+ cancel?: object | undefined;
2369
+ requests?: {
2370
+ [x: string]: unknown;
2371
+ sampling?: {
2372
+ [x: string]: unknown;
2373
+ createMessage?: object | undefined;
2374
+ } | undefined;
2375
+ elicitation?: {
2376
+ [x: string]: unknown;
2377
+ create?: object | undefined;
2378
+ } | undefined;
2379
+ } | undefined;
2380
+ } | undefined;
2381
+ };
2382
+ serverConfigId: string;
2383
+ serverVersionId: string;
2384
+ serverAuthConfigId: string | undefined;
2385
+ createdAt: Date;
2386
+ }, {
2387
+ tenant: {
2388
+ name: string;
2389
+ identifier: string;
2390
+ oid: bigint;
2391
+ id: string;
2392
+ functionBayTenantId: string | null;
2393
+ createdAt: Date;
2394
+ };
2395
+ }>;
2396
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2397
+ tenantId: string;
2398
+ serverConnectionId: string;
2399
+ }>, {
2400
+ object: string;
2401
+ id: string;
2402
+ status: import("../../../service/prisma/generated/enums").ServerConnectionStatus;
2403
+ client: {
2404
+ version: string;
2405
+ name: string;
2406
+ websiteUrl?: string | undefined;
2407
+ description?: string | undefined;
2408
+ icons?: {
2409
+ src: string;
2410
+ mimeType?: string | undefined;
2411
+ sizes?: string[] | undefined;
2412
+ theme?: "light" | "dark" | undefined;
2413
+ }[] | undefined;
2414
+ title?: string | undefined;
2415
+ };
2416
+ capabilities: {
2417
+ experimental?: {
2418
+ [x: string]: object;
2419
+ } | undefined;
2420
+ sampling?: {
2421
+ context?: object | undefined;
2422
+ tools?: object | undefined;
2423
+ } | undefined;
2424
+ elicitation?: {
2425
+ [x: string]: unknown;
2426
+ form?: {
2427
+ [x: string]: unknown;
2428
+ applyDefaults?: boolean | undefined;
2429
+ } | undefined;
2430
+ url?: object | undefined;
2431
+ } | undefined;
2432
+ roots?: {
2433
+ listChanged?: boolean | undefined;
2434
+ } | undefined;
2435
+ tasks?: {
2436
+ [x: string]: unknown;
2437
+ list?: object | undefined;
2438
+ cancel?: object | undefined;
2439
+ requests?: {
2440
+ [x: string]: unknown;
2441
+ sampling?: {
2442
+ [x: string]: unknown;
2443
+ createMessage?: object | undefined;
2444
+ } | undefined;
2445
+ elicitation?: {
2446
+ [x: string]: unknown;
2447
+ create?: object | undefined;
2448
+ } | undefined;
2449
+ } | undefined;
2450
+ } | undefined;
2451
+ };
2452
+ serverConfigId: string;
2453
+ serverVersionId: string;
2454
+ serverAuthConfigId: string | undefined;
2455
+ createdAt: Date;
2456
+ }, {
2457
+ tenant: {
2458
+ name: string;
2459
+ identifier: string;
2460
+ oid: bigint;
2461
+ id: string;
2462
+ functionBayTenantId: string | null;
2463
+ createdAt: Date;
2464
+ };
2465
+ serverConnection: {
2466
+ serverConfig: {
2467
+ oid: bigint;
2468
+ id: string;
2469
+ createdAt: Date;
2470
+ secretOid: bigint;
2471
+ tenantOid: bigint;
2472
+ updatedAt: Date;
2473
+ serverOid: bigint;
2474
+ };
2475
+ serverVersion: {
2476
+ identifier: string;
2477
+ oid: bigint;
2478
+ id: string;
2479
+ createdAt: Date;
2480
+ tenantOid: bigint | null;
2481
+ updatedAt: Date;
2482
+ isCurrent: boolean;
2483
+ configSchema: PrismaJson.ServerConfigSchema;
2484
+ configTransformer: string;
2485
+ remoteUrl: string | null;
2486
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
2487
+ serverOid: bigint;
2488
+ repositoryTagOid: bigint | null;
2489
+ repositoryVersionOid: bigint | null;
2490
+ functionServerOid: bigint | null;
2491
+ deploymentOid: bigint;
2492
+ };
2493
+ serverAuthConfig: {
2494
+ oid: bigint;
2495
+ id: string;
2496
+ createdAt: Date;
2497
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
2498
+ tenantOid: bigint;
2499
+ updatedAt: Date;
2500
+ serverOid: bigint;
2501
+ credentialsOid: bigint | null;
2502
+ remoteOAuthConnectionOid: bigint | null;
2503
+ remoteOAuthConnectionAuthTokenOid: bigint | null;
2504
+ delegatedOAuthConnectionOid: bigint | null;
2505
+ delegatedOAuthConnectionAuthTokenOid: bigint | null;
2506
+ } | null;
2507
+ } & {
2508
+ oid: bigint;
2509
+ id: string;
2510
+ createdAt: Date;
2511
+ tenantOid: bigint;
2512
+ status: import("../../../service/prisma/generated/enums").ServerConnectionStatus;
2513
+ serverConfigOid: bigint;
2514
+ serverAuthConfigOid: bigint | null;
2515
+ serverVersionOid: bigint;
2516
+ capabilities: PrismaJson.ServerConnectionCapabilities;
2517
+ isLogsInStorage: boolean;
2518
+ logBucketOid: bigint;
2519
+ client: PrismaJson.ServerConnectionClient;
2520
+ lastPingAt: Date | null;
2521
+ };
2522
+ }>;
2523
+ getLogs: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2524
+ tenantId: string;
2525
+ serverConnectionId: string;
2526
+ }>, {
2527
+ timestamp: Date;
2528
+ outputType: PrismaJson.OutputType;
2529
+ message: string;
2530
+ }[] | undefined, {
2531
+ tenant: {
2532
+ name: string;
2533
+ identifier: string;
2534
+ oid: bigint;
2535
+ id: string;
2536
+ functionBayTenantId: string | null;
2537
+ createdAt: Date;
2538
+ };
2539
+ serverConnection: {
2540
+ serverConfig: {
2541
+ oid: bigint;
2542
+ id: string;
2543
+ createdAt: Date;
2544
+ secretOid: bigint;
2545
+ tenantOid: bigint;
2546
+ updatedAt: Date;
2547
+ serverOid: bigint;
2548
+ };
2549
+ serverVersion: {
2550
+ identifier: string;
2551
+ oid: bigint;
2552
+ id: string;
2553
+ createdAt: Date;
2554
+ tenantOid: bigint | null;
2555
+ updatedAt: Date;
2556
+ isCurrent: boolean;
2557
+ configSchema: PrismaJson.ServerConfigSchema;
2558
+ configTransformer: string;
2559
+ remoteUrl: string | null;
2560
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
2561
+ serverOid: bigint;
2562
+ repositoryTagOid: bigint | null;
2563
+ repositoryVersionOid: bigint | null;
2564
+ functionServerOid: bigint | null;
2565
+ deploymentOid: bigint;
2566
+ };
2567
+ serverAuthConfig: {
2568
+ oid: bigint;
2569
+ id: string;
2570
+ createdAt: Date;
2571
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
2572
+ tenantOid: bigint;
2573
+ updatedAt: Date;
2574
+ serverOid: bigint;
2575
+ credentialsOid: bigint | null;
2576
+ remoteOAuthConnectionOid: bigint | null;
2577
+ remoteOAuthConnectionAuthTokenOid: bigint | null;
2578
+ delegatedOAuthConnectionOid: bigint | null;
2579
+ delegatedOAuthConnectionAuthTokenOid: bigint | null;
2580
+ } | null;
2581
+ } & {
2582
+ oid: bigint;
2583
+ id: string;
2584
+ createdAt: Date;
2585
+ tenantOid: bigint;
2586
+ status: import("../../../service/prisma/generated/enums").ServerConnectionStatus;
2587
+ serverConfigOid: bigint;
2588
+ serverAuthConfigOid: bigint | null;
2589
+ serverVersionOid: bigint;
2590
+ capabilities: PrismaJson.ServerConnectionCapabilities;
2591
+ isLogsInStorage: boolean;
2592
+ logBucketOid: bigint;
2593
+ client: PrismaJson.ServerConnectionClient;
2594
+ lastPingAt: Date | null;
2595
+ };
2596
+ }>;
2597
+ };
2598
+ serverAuthConfig: {
2599
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2600
+ tenantId: string;
2601
+ }, never>> & {
2602
+ tenantId: string;
2603
+ } & {
2604
+ limit?: number;
2605
+ after?: string;
2606
+ before?: string;
2607
+ cursor?: string;
2608
+ order?: "asc" | "desc";
2609
+ }, {
2610
+ __typename: string;
2611
+ items: {
2612
+ object: string;
2613
+ id: string;
2614
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
2615
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
2616
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
2617
+ credentials: {
2618
+ object: string;
2619
+ id: string;
2620
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
2621
+ registrationType: "manual" | "automatic";
2622
+ clientId: string | null;
2623
+ oauthConfig: {
2624
+ type: "remote";
2625
+ name: string | null;
2626
+ config: any;
2627
+ scopes: string[];
2628
+ authConfigSchema: null;
2629
+ provider: {
2630
+ name: string;
2631
+ url: string;
2632
+ };
2633
+ discovery: {
2634
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
2635
+ error: {
2636
+ code: string;
2637
+ message: string;
2638
+ } | null;
2639
+ createdAt: Date;
2640
+ lastDiscoveredAt: Date | null;
2641
+ };
2642
+ } | {
2643
+ type: "delegated";
2644
+ name: string | null;
2645
+ config: null;
2646
+ scopes: never[];
2647
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
2648
+ provider: null;
2649
+ discovery: {
2650
+ status: "succeeded";
2651
+ error: {
2652
+ code: string;
2653
+ message: string;
2654
+ } | null;
2655
+ createdAt: Date;
2656
+ lastDiscoveredAt: null;
2657
+ };
2658
+ } | null;
2659
+ provider: {
2660
+ name: string;
2661
+ url: string;
2662
+ } | null;
2663
+ discovery: {
2664
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
2665
+ error: {
2666
+ code: string;
2667
+ message: string;
2668
+ } | null;
2669
+ createdAt: Date;
2670
+ lastDiscoveredAt: Date | null;
2671
+ };
2672
+ isDefault: boolean;
2673
+ serverId: string;
2674
+ tenantId: string;
2675
+ createdAt: Date;
2676
+ updatedAt: Date;
2677
+ } | null;
2678
+ profile: {
2679
+ id: string;
2680
+ email: string | null;
2681
+ name: string | null;
2682
+ data: unknown;
2683
+ } | null;
2684
+ serverId: string;
2685
+ tenantId: string;
2686
+ createdAt: Date;
2687
+ updatedAt: Date;
2688
+ }[];
2689
+ pagination: {
2690
+ has_more_after: boolean;
2691
+ has_more_before: boolean;
2692
+ };
2693
+ }, {
2694
+ tenant: {
2695
+ name: string;
2696
+ identifier: string;
2697
+ oid: bigint;
2698
+ id: string;
2699
+ functionBayTenantId: string | null;
2700
+ createdAt: Date;
2701
+ };
2702
+ }>;
2703
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2704
+ tenantId: string;
2705
+ serverId: string;
2706
+ config: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2707
+ accessToken: string;
2708
+ expiresAt: string | null | undefined;
2709
+ }>;
2710
+ }>, {
2711
+ object: string;
2712
+ id: string;
2713
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
2714
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
2715
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
2716
+ credentials: {
2717
+ object: string;
2718
+ id: string;
2719
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
2720
+ registrationType: "manual" | "automatic";
2721
+ clientId: string | null;
2722
+ oauthConfig: {
2723
+ type: "remote";
2724
+ name: string | null;
2725
+ config: any;
2726
+ scopes: string[];
2727
+ authConfigSchema: null;
2728
+ provider: {
2729
+ name: string;
2730
+ url: string;
2731
+ };
2732
+ discovery: {
2733
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
2734
+ error: {
2735
+ code: string;
2736
+ message: string;
2737
+ } | null;
2738
+ createdAt: Date;
2739
+ lastDiscoveredAt: Date | null;
2740
+ };
2741
+ } | {
2742
+ type: "delegated";
2743
+ name: string | null;
2744
+ config: null;
2745
+ scopes: never[];
2746
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
2747
+ provider: null;
2748
+ discovery: {
2749
+ status: "succeeded";
2750
+ error: {
2751
+ code: string;
2752
+ message: string;
2753
+ } | null;
2754
+ createdAt: Date;
2755
+ lastDiscoveredAt: null;
2756
+ };
2757
+ } | null;
2758
+ provider: {
2759
+ name: string;
2760
+ url: string;
2761
+ } | null;
2762
+ discovery: {
2763
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
2764
+ error: {
2765
+ code: string;
2766
+ message: string;
2767
+ } | null;
2768
+ createdAt: Date;
2769
+ lastDiscoveredAt: Date | null;
2770
+ };
2771
+ isDefault: boolean;
2772
+ serverId: string;
2773
+ tenantId: string;
2774
+ createdAt: Date;
2775
+ updatedAt: Date;
2776
+ } | null;
2777
+ profile: {
2778
+ id: string;
2779
+ email: string | null;
2780
+ name: string | null;
2781
+ data: unknown;
2782
+ } | null;
2783
+ serverId: string;
2784
+ tenantId: string;
2785
+ createdAt: Date;
2786
+ updatedAt: Date;
2787
+ }, {
2788
+ tenant: {
2789
+ name: string;
2790
+ identifier: string;
2791
+ oid: bigint;
2792
+ id: string;
2793
+ functionBayTenantId: string | null;
2794
+ createdAt: Date;
2795
+ };
2796
+ }>;
2797
+ decrypt: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2798
+ tenantId: string;
2799
+ slateAuthConfigId: string;
2800
+ note: string;
2801
+ }>, {
2802
+ decryptedAuthConfig: {
2803
+ accessToken: string;
2804
+ expiresAt: Date | null;
2805
+ };
2806
+ authConfig: {
2807
+ object: string;
2808
+ id: string;
2809
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
2810
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
2811
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
2812
+ credentials: {
2813
+ object: string;
2814
+ id: string;
2815
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
2816
+ registrationType: "manual" | "automatic";
2817
+ clientId: string | null;
2818
+ oauthConfig: {
2819
+ type: "remote";
2820
+ name: string | null;
2821
+ config: any;
2822
+ scopes: string[];
2823
+ authConfigSchema: null;
2824
+ provider: {
2825
+ name: string;
2826
+ url: string;
2827
+ };
2828
+ discovery: {
2829
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
2830
+ error: {
2831
+ code: string;
2832
+ message: string;
2833
+ } | null;
2834
+ createdAt: Date;
2835
+ lastDiscoveredAt: Date | null;
2836
+ };
2837
+ } | {
2838
+ type: "delegated";
2839
+ name: string | null;
2840
+ config: null;
2841
+ scopes: never[];
2842
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
2843
+ provider: null;
2844
+ discovery: {
2845
+ status: "succeeded";
2846
+ error: {
2847
+ code: string;
2848
+ message: string;
2849
+ } | null;
2850
+ createdAt: Date;
2851
+ lastDiscoveredAt: null;
2852
+ };
2853
+ } | null;
2854
+ provider: {
2855
+ name: string;
2856
+ url: string;
2857
+ } | null;
2858
+ discovery: {
2859
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
2860
+ error: {
2861
+ code: string;
2862
+ message: string;
2863
+ } | null;
2864
+ createdAt: Date;
2865
+ lastDiscoveredAt: Date | null;
2866
+ };
2867
+ isDefault: boolean;
2868
+ serverId: string;
2869
+ tenantId: string;
2870
+ createdAt: Date;
2871
+ updatedAt: Date;
2872
+ } | null;
2873
+ profile: {
2874
+ id: string;
2875
+ email: string | null;
2876
+ name: string | null;
2877
+ data: unknown;
2878
+ } | null;
2879
+ serverId: string;
2880
+ tenantId: string;
2881
+ createdAt: Date;
2882
+ updatedAt: Date;
2883
+ };
2884
+ }, {
2885
+ tenant: {
2886
+ name: string;
2887
+ identifier: string;
2888
+ oid: bigint;
2889
+ id: string;
2890
+ functionBayTenantId: string | null;
2891
+ createdAt: Date;
2892
+ };
2893
+ serverAuthConfig: {
2894
+ tenant: {
2895
+ name: string;
2896
+ identifier: string;
2897
+ oid: bigint;
2898
+ id: string;
2899
+ functionBayTenantId: string | null;
2900
+ createdAt: Date;
2901
+ };
2902
+ server: {
2903
+ name: string;
2904
+ oid: bigint;
2905
+ id: string;
2906
+ createdAt: Date;
2907
+ type: import("../../../service/prisma/generated/enums").ServerType;
2908
+ tenantOid: bigint | null;
2909
+ updatedAt: Date;
2910
+ currentVersionOid: bigint | null;
2911
+ description: string | null;
2912
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
2913
+ draftConfigTransformer: string;
2914
+ draftRemoteUrl: string | null;
2915
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
2916
+ draftRepositoryTagOid: bigint | null;
2917
+ remoteOauthConfigOid: bigint | null;
2918
+ delegatedOauthConfigOid: bigint | null;
2919
+ };
2920
+ remoteOAuthConnectionAuthToken: ({
2921
+ connectionProfile: {
2922
+ name: string | null;
2923
+ oid: bigint;
2924
+ id: string;
2925
+ createdAt: Date;
2926
+ sub: string;
2927
+ tenantOid: bigint;
2928
+ updatedAt: Date;
2929
+ connectionOid: bigint;
2930
+ lastUsedAt: Date;
2931
+ email: string | null;
2932
+ rawProfile: unknown | null;
2933
+ } | null;
2934
+ } & {
2935
+ oid: bigint;
2936
+ id: string;
2937
+ createdAt: Date;
2938
+ secretOid: bigint;
2939
+ tenantOid: bigint;
2940
+ serverOid: bigint;
2941
+ connectionOid: bigint | null;
2942
+ configOid: bigint;
2943
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
2944
+ scope: string | null;
2945
+ tokenType: string | null;
2946
+ idToken: string | null;
2947
+ expiresAt: Date | null;
2948
+ connectionProfileOid: bigint | null;
2949
+ firstErrorAt: Date | null;
2950
+ lastErrorAt: Date | null;
2951
+ errorDisabledAt: Date | null;
2952
+ errorCount: number;
2953
+ lastUsedAt: Date;
2954
+ refreshedAt: Date | null;
2955
+ }) | null;
2956
+ delegatedOAuthConnectionAuthToken: {
2957
+ oid: bigint;
2958
+ id: string;
2959
+ createdAt: Date;
2960
+ secretOid: bigint;
2961
+ tenantOid: bigint;
2962
+ serverOid: bigint;
2963
+ connectionOid: bigint | null;
2964
+ configOid: bigint;
2965
+ source: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionAuthTokenSource;
2966
+ scope: string | null;
2967
+ tokenType: string | null;
2968
+ idToken: string | null;
2969
+ expiresAt: Date | null;
2970
+ firstErrorAt: Date | null;
2971
+ lastErrorAt: Date | null;
2972
+ errorDisabledAt: Date | null;
2973
+ errorCount: number;
2974
+ lastUsedAt: Date;
2975
+ refreshedAt: Date | null;
2976
+ authConfigValue: PrismaJson.DelegatedOAuthConnectionAuthConfig;
2977
+ authStateValue: PrismaJson.DelegatedOAuthConnectionAuthState;
2978
+ } | null;
2979
+ credentials: ({
2980
+ remoteConnection: ({
2981
+ config: {
2982
+ name: string | null;
2983
+ oid: bigint;
2984
+ id: string;
2985
+ createdAt: Date;
2986
+ serverOid: bigint;
2987
+ discoverStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
2988
+ config: PrismaJson.RemoteOAuthConfig;
2989
+ providerName: string;
2990
+ providerUrl: string;
2991
+ discoveryUrl: string | null;
2992
+ errorCode: string | null;
2993
+ errorMessage: string | null;
2994
+ scopes: string[];
2995
+ oauthDiscoveryDocumentOid: bigint | null;
2996
+ lastDiscoveredAt: Date | null;
2997
+ };
2998
+ registration: {
2999
+ oid: bigint;
3000
+ id: string;
3001
+ createdAt: Date;
3002
+ data: PrismaJson.RemoteOAuthAutoRegistrationData;
3003
+ clientId: string;
3004
+ clientSecret: string | null;
3005
+ autoRegistrationName: string | null;
3006
+ registrationClientUri: string | null;
3007
+ registrationAccessToken: string | null;
3008
+ clientSecretExpiresAt: Date | null;
3009
+ discoveryDocumentOid: bigint | null;
3010
+ } | null;
3011
+ } & {
3012
+ oid: bigint;
3013
+ id: string;
3014
+ createdAt: Date;
3015
+ secretOid: bigint | null;
3016
+ tenantOid: bigint;
3017
+ updatedAt: Date;
3018
+ discoveryStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3019
+ serverOid: bigint;
3020
+ providerName: string;
3021
+ providerUrl: string;
3022
+ discoveryUrl: string | null;
3023
+ errorCode: string | null;
3024
+ errorMessage: string | null;
3025
+ scopes: string[];
3026
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionStatus;
3027
+ clientId: string | null;
3028
+ configOid: bigint;
3029
+ registrationOid: bigint | null;
3030
+ }) | null;
3031
+ delegatedConnection: ({
3032
+ functionServer: {
3033
+ oid: bigint;
3034
+ id: string;
3035
+ functionBayTenantId: string;
3036
+ createdAt: Date;
3037
+ info: PrismaJson.FunctionServerInfo;
3038
+ delegatedOauthConfigOid: bigint | null;
3039
+ configSchema: PrismaJson.FunctionServerConfigSchema;
3040
+ serverOid: bigint;
3041
+ errorCode: string | null;
3042
+ errorMessage: string | null;
3043
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3044
+ supportsOauthTokenRefresh: boolean;
3045
+ status: import("../../../service/prisma/generated/enums").FunctionServerStatus;
3046
+ functionBayFunctionId: string;
3047
+ functionBayDeploymentId: string;
3048
+ functionBayVersionId: string | null;
3049
+ supportsOAuth: boolean;
3050
+ providerOid: bigint;
3051
+ };
3052
+ config: {
3053
+ name: string | null;
3054
+ oid: bigint;
3055
+ id: string;
3056
+ createdAt: Date;
3057
+ serverOid: bigint;
3058
+ functionServerOid: bigint;
3059
+ errorCode: string | null;
3060
+ errorMessage: string | null;
3061
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3062
+ authConfigSchemaHash: string;
3063
+ supportsOauthTokenRefresh: boolean;
3064
+ };
3065
+ } & {
3066
+ oid: bigint;
3067
+ id: string;
3068
+ createdAt: Date;
3069
+ secretOid: bigint | null;
3070
+ tenantOid: bigint;
3071
+ updatedAt: Date;
3072
+ serverOid: bigint;
3073
+ functionServerOid: bigint;
3074
+ errorCode: string | null;
3075
+ errorMessage: string | null;
3076
+ status: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionStatus;
3077
+ clientId: string;
3078
+ configOid: bigint;
3079
+ }) | null;
3080
+ } & {
3081
+ oid: bigint;
3082
+ id: string;
3083
+ createdAt: Date;
3084
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3085
+ tenantOid: bigint;
3086
+ updatedAt: Date;
3087
+ serverOid: bigint;
3088
+ isDefault: boolean;
3089
+ remoteConnectionOid: bigint | null;
3090
+ delegatedConnectionOid: bigint | null;
3091
+ }) | null;
3092
+ } & {
3093
+ oid: bigint;
3094
+ id: string;
3095
+ createdAt: Date;
3096
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
3097
+ tenantOid: bigint;
3098
+ updatedAt: Date;
3099
+ serverOid: bigint;
3100
+ credentialsOid: bigint | null;
3101
+ remoteOAuthConnectionOid: bigint | null;
3102
+ remoteOAuthConnectionAuthTokenOid: bigint | null;
3103
+ delegatedOAuthConnectionOid: bigint | null;
3104
+ delegatedOAuthConnectionAuthTokenOid: bigint | null;
3105
+ };
3106
+ }>;
3107
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3108
+ tenantId: string;
3109
+ serverAuthConfigId: string;
3110
+ }>, {
3111
+ object: string;
3112
+ id: string;
3113
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
3114
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
3115
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
3116
+ credentials: {
3117
+ object: string;
3118
+ id: string;
3119
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3120
+ registrationType: "manual" | "automatic";
3121
+ clientId: string | null;
3122
+ oauthConfig: {
3123
+ type: "remote";
3124
+ name: string | null;
3125
+ config: any;
3126
+ scopes: string[];
3127
+ authConfigSchema: null;
3128
+ provider: {
3129
+ name: string;
3130
+ url: string;
3131
+ };
3132
+ discovery: {
3133
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3134
+ error: {
3135
+ code: string;
3136
+ message: string;
3137
+ } | null;
3138
+ createdAt: Date;
3139
+ lastDiscoveredAt: Date | null;
3140
+ };
3141
+ } | {
3142
+ type: "delegated";
3143
+ name: string | null;
3144
+ config: null;
3145
+ scopes: never[];
3146
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3147
+ provider: null;
3148
+ discovery: {
3149
+ status: "succeeded";
3150
+ error: {
3151
+ code: string;
3152
+ message: string;
3153
+ } | null;
3154
+ createdAt: Date;
3155
+ lastDiscoveredAt: null;
3156
+ };
3157
+ } | null;
3158
+ provider: {
3159
+ name: string;
3160
+ url: string;
3161
+ } | null;
3162
+ discovery: {
3163
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3164
+ error: {
3165
+ code: string;
3166
+ message: string;
3167
+ } | null;
3168
+ createdAt: Date;
3169
+ lastDiscoveredAt: Date | null;
3170
+ };
3171
+ isDefault: boolean;
3172
+ serverId: string;
3173
+ tenantId: string;
3174
+ createdAt: Date;
3175
+ updatedAt: Date;
3176
+ } | null;
3177
+ profile: {
3178
+ id: string;
3179
+ email: string | null;
3180
+ name: string | null;
3181
+ data: unknown;
3182
+ } | null;
3183
+ serverId: string;
3184
+ tenantId: string;
3185
+ createdAt: Date;
3186
+ updatedAt: Date;
3187
+ }, {
3188
+ tenant: {
3189
+ name: string;
3190
+ identifier: string;
3191
+ oid: bigint;
3192
+ id: string;
3193
+ functionBayTenantId: string | null;
3194
+ createdAt: Date;
3195
+ };
3196
+ serverAuthConfig: {
3197
+ tenant: {
3198
+ name: string;
3199
+ identifier: string;
3200
+ oid: bigint;
3201
+ id: string;
3202
+ functionBayTenantId: string | null;
3203
+ createdAt: Date;
3204
+ };
3205
+ server: {
3206
+ name: string;
3207
+ oid: bigint;
3208
+ id: string;
3209
+ createdAt: Date;
3210
+ type: import("../../../service/prisma/generated/enums").ServerType;
3211
+ tenantOid: bigint | null;
3212
+ updatedAt: Date;
3213
+ currentVersionOid: bigint | null;
3214
+ description: string | null;
3215
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
3216
+ draftConfigTransformer: string;
3217
+ draftRemoteUrl: string | null;
3218
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
3219
+ draftRepositoryTagOid: bigint | null;
3220
+ remoteOauthConfigOid: bigint | null;
3221
+ delegatedOauthConfigOid: bigint | null;
3222
+ };
3223
+ remoteOAuthConnectionAuthToken: ({
3224
+ connectionProfile: {
3225
+ name: string | null;
3226
+ oid: bigint;
3227
+ id: string;
3228
+ createdAt: Date;
3229
+ sub: string;
3230
+ tenantOid: bigint;
3231
+ updatedAt: Date;
3232
+ connectionOid: bigint;
3233
+ lastUsedAt: Date;
3234
+ email: string | null;
3235
+ rawProfile: unknown | null;
3236
+ } | null;
3237
+ } & {
3238
+ oid: bigint;
3239
+ id: string;
3240
+ createdAt: Date;
3241
+ secretOid: bigint;
3242
+ tenantOid: bigint;
3243
+ serverOid: bigint;
3244
+ connectionOid: bigint | null;
3245
+ configOid: bigint;
3246
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
3247
+ scope: string | null;
3248
+ tokenType: string | null;
3249
+ idToken: string | null;
3250
+ expiresAt: Date | null;
3251
+ connectionProfileOid: bigint | null;
3252
+ firstErrorAt: Date | null;
3253
+ lastErrorAt: Date | null;
3254
+ errorDisabledAt: Date | null;
3255
+ errorCount: number;
3256
+ lastUsedAt: Date;
3257
+ refreshedAt: Date | null;
3258
+ }) | null;
3259
+ delegatedOAuthConnectionAuthToken: {
3260
+ oid: bigint;
3261
+ id: string;
3262
+ createdAt: Date;
3263
+ secretOid: bigint;
3264
+ tenantOid: bigint;
3265
+ serverOid: bigint;
3266
+ connectionOid: bigint | null;
3267
+ configOid: bigint;
3268
+ source: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionAuthTokenSource;
3269
+ scope: string | null;
3270
+ tokenType: string | null;
3271
+ idToken: string | null;
3272
+ expiresAt: Date | null;
3273
+ firstErrorAt: Date | null;
3274
+ lastErrorAt: Date | null;
3275
+ errorDisabledAt: Date | null;
3276
+ errorCount: number;
3277
+ lastUsedAt: Date;
3278
+ refreshedAt: Date | null;
3279
+ authConfigValue: PrismaJson.DelegatedOAuthConnectionAuthConfig;
3280
+ authStateValue: PrismaJson.DelegatedOAuthConnectionAuthState;
3281
+ } | null;
3282
+ credentials: ({
3283
+ remoteConnection: ({
3284
+ config: {
3285
+ name: string | null;
3286
+ oid: bigint;
3287
+ id: string;
3288
+ createdAt: Date;
3289
+ serverOid: bigint;
3290
+ discoverStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3291
+ config: PrismaJson.RemoteOAuthConfig;
3292
+ providerName: string;
3293
+ providerUrl: string;
3294
+ discoveryUrl: string | null;
3295
+ errorCode: string | null;
3296
+ errorMessage: string | null;
3297
+ scopes: string[];
3298
+ oauthDiscoveryDocumentOid: bigint | null;
3299
+ lastDiscoveredAt: Date | null;
3300
+ };
3301
+ registration: {
3302
+ oid: bigint;
3303
+ id: string;
3304
+ createdAt: Date;
3305
+ data: PrismaJson.RemoteOAuthAutoRegistrationData;
3306
+ clientId: string;
3307
+ clientSecret: string | null;
3308
+ autoRegistrationName: string | null;
3309
+ registrationClientUri: string | null;
3310
+ registrationAccessToken: string | null;
3311
+ clientSecretExpiresAt: Date | null;
3312
+ discoveryDocumentOid: bigint | null;
3313
+ } | null;
3314
+ } & {
3315
+ oid: bigint;
3316
+ id: string;
3317
+ createdAt: Date;
3318
+ secretOid: bigint | null;
3319
+ tenantOid: bigint;
3320
+ updatedAt: Date;
3321
+ discoveryStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3322
+ serverOid: bigint;
3323
+ providerName: string;
3324
+ providerUrl: string;
3325
+ discoveryUrl: string | null;
3326
+ errorCode: string | null;
3327
+ errorMessage: string | null;
3328
+ scopes: string[];
3329
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionStatus;
3330
+ clientId: string | null;
3331
+ configOid: bigint;
3332
+ registrationOid: bigint | null;
3333
+ }) | null;
3334
+ delegatedConnection: ({
3335
+ functionServer: {
3336
+ oid: bigint;
3337
+ id: string;
3338
+ functionBayTenantId: string;
3339
+ createdAt: Date;
3340
+ info: PrismaJson.FunctionServerInfo;
3341
+ delegatedOauthConfigOid: bigint | null;
3342
+ configSchema: PrismaJson.FunctionServerConfigSchema;
3343
+ serverOid: bigint;
3344
+ errorCode: string | null;
3345
+ errorMessage: string | null;
3346
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3347
+ supportsOauthTokenRefresh: boolean;
3348
+ status: import("../../../service/prisma/generated/enums").FunctionServerStatus;
3349
+ functionBayFunctionId: string;
3350
+ functionBayDeploymentId: string;
3351
+ functionBayVersionId: string | null;
3352
+ supportsOAuth: boolean;
3353
+ providerOid: bigint;
3354
+ };
3355
+ config: {
3356
+ name: string | null;
3357
+ oid: bigint;
3358
+ id: string;
3359
+ createdAt: Date;
3360
+ serverOid: bigint;
3361
+ functionServerOid: bigint;
3362
+ errorCode: string | null;
3363
+ errorMessage: string | null;
3364
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3365
+ authConfigSchemaHash: string;
3366
+ supportsOauthTokenRefresh: boolean;
3367
+ };
3368
+ } & {
3369
+ oid: bigint;
3370
+ id: string;
3371
+ createdAt: Date;
3372
+ secretOid: bigint | null;
3373
+ tenantOid: bigint;
3374
+ updatedAt: Date;
3375
+ serverOid: bigint;
3376
+ functionServerOid: bigint;
3377
+ errorCode: string | null;
3378
+ errorMessage: string | null;
3379
+ status: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionStatus;
3380
+ clientId: string;
3381
+ configOid: bigint;
3382
+ }) | null;
3383
+ } & {
3384
+ oid: bigint;
3385
+ id: string;
3386
+ createdAt: Date;
3387
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3388
+ tenantOid: bigint;
3389
+ updatedAt: Date;
3390
+ serverOid: bigint;
3391
+ isDefault: boolean;
3392
+ remoteConnectionOid: bigint | null;
3393
+ delegatedConnectionOid: bigint | null;
3394
+ }) | null;
3395
+ } & {
3396
+ oid: bigint;
3397
+ id: string;
3398
+ createdAt: Date;
3399
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
3400
+ tenantOid: bigint;
3401
+ updatedAt: Date;
3402
+ serverOid: bigint;
3403
+ credentialsOid: bigint | null;
3404
+ remoteOAuthConnectionOid: bigint | null;
3405
+ remoteOAuthConnectionAuthTokenOid: bigint | null;
3406
+ delegatedOAuthConnectionOid: bigint | null;
3407
+ delegatedOAuthConnectionAuthTokenOid: bigint | null;
3408
+ };
3409
+ }>;
3410
+ };
3411
+ serverOAuthSetup: {
3412
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
3413
+ tenantId: string;
3414
+ }, never>> & {
3415
+ tenantId: string;
3416
+ } & {
3417
+ limit?: number;
3418
+ after?: string;
3419
+ before?: string;
3420
+ cursor?: string;
3421
+ order?: "asc" | "desc";
3422
+ }, {
3423
+ __typename: string;
3424
+ items: {
3425
+ object: string;
3426
+ id: string;
3427
+ type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
3428
+ status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
3429
+ url: string;
3430
+ authConfig: {
3431
+ object: string;
3432
+ id: string;
3433
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
3434
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
3435
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
3436
+ credentials: {
3437
+ object: string;
3438
+ id: string;
3439
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3440
+ registrationType: "manual" | "automatic";
3441
+ clientId: string | null;
3442
+ oauthConfig: {
3443
+ type: "remote";
3444
+ name: string | null;
3445
+ config: any;
3446
+ scopes: string[];
3447
+ authConfigSchema: null;
3448
+ provider: {
3449
+ name: string;
3450
+ url: string;
3451
+ };
3452
+ discovery: {
3453
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3454
+ error: {
3455
+ code: string;
3456
+ message: string;
3457
+ } | null;
3458
+ createdAt: Date;
3459
+ lastDiscoveredAt: Date | null;
3460
+ };
3461
+ } | {
3462
+ type: "delegated";
3463
+ name: string | null;
3464
+ config: null;
3465
+ scopes: never[];
3466
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3467
+ provider: null;
3468
+ discovery: {
3469
+ status: "succeeded";
3470
+ error: {
3471
+ code: string;
3472
+ message: string;
3473
+ } | null;
3474
+ createdAt: Date;
3475
+ lastDiscoveredAt: null;
3476
+ };
3477
+ } | null;
3478
+ provider: {
3479
+ name: string;
3480
+ url: string;
3481
+ } | null;
3482
+ discovery: {
3483
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3484
+ error: {
3485
+ code: string;
3486
+ message: string;
3487
+ } | null;
3488
+ createdAt: Date;
3489
+ lastDiscoveredAt: Date | null;
3490
+ };
3491
+ isDefault: boolean;
3492
+ serverId: string;
3493
+ tenantId: string;
3494
+ createdAt: Date;
3495
+ updatedAt: Date;
3496
+ } | null;
3497
+ profile: {
3498
+ id: string;
3499
+ email: string | null;
3500
+ name: string | null;
3501
+ data: unknown;
3502
+ } | null;
3503
+ serverId: string;
3504
+ tenantId: string;
3505
+ createdAt: Date;
3506
+ updatedAt: Date;
3507
+ } | null;
3508
+ credentials: {
3509
+ object: string;
3510
+ id: string;
3511
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3512
+ registrationType: "manual" | "automatic";
3513
+ clientId: string | null;
3514
+ oauthConfig: {
3515
+ type: "remote";
3516
+ name: string | null;
3517
+ config: any;
3518
+ scopes: string[];
3519
+ authConfigSchema: null;
3520
+ provider: {
3521
+ name: string;
3522
+ url: string;
3523
+ };
3524
+ discovery: {
3525
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3526
+ error: {
3527
+ code: string;
3528
+ message: string;
3529
+ } | null;
3530
+ createdAt: Date;
3531
+ lastDiscoveredAt: Date | null;
3532
+ };
3533
+ } | {
3534
+ type: "delegated";
3535
+ name: string | null;
3536
+ config: null;
3537
+ scopes: never[];
3538
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3539
+ provider: null;
3540
+ discovery: {
3541
+ status: "succeeded";
3542
+ error: {
3543
+ code: string;
3544
+ message: string;
3545
+ } | null;
3546
+ createdAt: Date;
3547
+ lastDiscoveredAt: null;
3548
+ };
3549
+ } | null;
3550
+ provider: {
3551
+ name: string;
3552
+ url: string;
3553
+ } | null;
3554
+ discovery: {
3555
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3556
+ error: {
3557
+ code: string;
3558
+ message: string;
3559
+ } | null;
3560
+ createdAt: Date;
3561
+ lastDiscoveredAt: Date | null;
3562
+ };
3563
+ isDefault: boolean;
3564
+ serverId: string;
3565
+ tenantId: string;
3566
+ createdAt: Date;
3567
+ updatedAt: Date;
3568
+ };
3569
+ serverId: string;
3570
+ tenantId: string;
3571
+ credentialsId: string;
3572
+ createdAt: Date;
3573
+ updatedAt: Date;
3574
+ }[];
3575
+ pagination: {
3576
+ has_more_after: boolean;
3577
+ has_more_before: boolean;
3578
+ };
3579
+ }, {
3580
+ tenant: {
3581
+ name: string;
3582
+ identifier: string;
3583
+ oid: bigint;
3584
+ id: string;
3585
+ functionBayTenantId: string | null;
3586
+ createdAt: Date;
3587
+ };
3588
+ }>;
3589
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3590
+ tenantId: string;
3591
+ serverCredentialsId: string | undefined;
3592
+ serverId: string;
3593
+ redirectUri: string;
3594
+ }>, {
3595
+ object: string;
3596
+ id: string;
3597
+ type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
3598
+ status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
3599
+ url: string;
3600
+ authConfig: {
3601
+ object: string;
3602
+ id: string;
3603
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
3604
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
3605
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
3606
+ credentials: {
3607
+ object: string;
3608
+ id: string;
3609
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3610
+ registrationType: "manual" | "automatic";
3611
+ clientId: string | null;
3612
+ oauthConfig: {
3613
+ type: "remote";
3614
+ name: string | null;
3615
+ config: any;
3616
+ scopes: string[];
3617
+ authConfigSchema: null;
3618
+ provider: {
3619
+ name: string;
3620
+ url: string;
3621
+ };
3622
+ discovery: {
3623
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3624
+ error: {
3625
+ code: string;
3626
+ message: string;
3627
+ } | null;
3628
+ createdAt: Date;
3629
+ lastDiscoveredAt: Date | null;
3630
+ };
3631
+ } | {
3632
+ type: "delegated";
3633
+ name: string | null;
3634
+ config: null;
3635
+ scopes: never[];
3636
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3637
+ provider: null;
3638
+ discovery: {
3639
+ status: "succeeded";
3640
+ error: {
3641
+ code: string;
3642
+ message: string;
3643
+ } | null;
3644
+ createdAt: Date;
3645
+ lastDiscoveredAt: null;
3646
+ };
3647
+ } | null;
3648
+ provider: {
3649
+ name: string;
3650
+ url: string;
3651
+ } | null;
3652
+ discovery: {
3653
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3654
+ error: {
3655
+ code: string;
3656
+ message: string;
3657
+ } | null;
3658
+ createdAt: Date;
3659
+ lastDiscoveredAt: Date | null;
3660
+ };
3661
+ isDefault: boolean;
3662
+ serverId: string;
3663
+ tenantId: string;
3664
+ createdAt: Date;
3665
+ updatedAt: Date;
3666
+ } | null;
3667
+ profile: {
3668
+ id: string;
3669
+ email: string | null;
3670
+ name: string | null;
3671
+ data: unknown;
3672
+ } | null;
3673
+ serverId: string;
3674
+ tenantId: string;
3675
+ createdAt: Date;
3676
+ updatedAt: Date;
3677
+ } | null;
3678
+ credentials: {
3679
+ object: string;
3680
+ id: string;
3681
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3682
+ registrationType: "manual" | "automatic";
3683
+ clientId: string | null;
3684
+ oauthConfig: {
3685
+ type: "remote";
3686
+ name: string | null;
3687
+ config: any;
3688
+ scopes: string[];
3689
+ authConfigSchema: null;
3690
+ provider: {
3691
+ name: string;
3692
+ url: string;
3693
+ };
3694
+ discovery: {
3695
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3696
+ error: {
3697
+ code: string;
3698
+ message: string;
3699
+ } | null;
3700
+ createdAt: Date;
3701
+ lastDiscoveredAt: Date | null;
3702
+ };
3703
+ } | {
3704
+ type: "delegated";
3705
+ name: string | null;
3706
+ config: null;
3707
+ scopes: never[];
3708
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3709
+ provider: null;
3710
+ discovery: {
3711
+ status: "succeeded";
3712
+ error: {
3713
+ code: string;
3714
+ message: string;
3715
+ } | null;
3716
+ createdAt: Date;
3717
+ lastDiscoveredAt: null;
3718
+ };
3719
+ } | null;
3720
+ provider: {
3721
+ name: string;
3722
+ url: string;
3723
+ } | null;
3724
+ discovery: {
3725
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3726
+ error: {
3727
+ code: string;
3728
+ message: string;
3729
+ } | null;
3730
+ createdAt: Date;
3731
+ lastDiscoveredAt: Date | null;
3732
+ };
3733
+ isDefault: boolean;
3734
+ serverId: string;
3735
+ tenantId: string;
3736
+ createdAt: Date;
3737
+ updatedAt: Date;
3738
+ };
3739
+ serverId: string;
3740
+ tenantId: string;
3741
+ credentialsId: string;
3742
+ createdAt: Date;
3743
+ updatedAt: Date;
3744
+ }, {
3745
+ tenant: {
3746
+ name: string;
3747
+ identifier: string;
3748
+ oid: bigint;
3749
+ id: string;
3750
+ functionBayTenantId: string | null;
3751
+ createdAt: Date;
3752
+ };
3753
+ }>;
3754
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3755
+ tenantId: string;
3756
+ serverOAuthSetupId: string;
3757
+ }>, {
3758
+ object: string;
3759
+ id: string;
3760
+ type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
3761
+ status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
3762
+ url: string;
3763
+ authConfig: {
3764
+ object: string;
3765
+ id: string;
3766
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
3767
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
3768
+ authConfig: PrismaJson.DelegatedOAuthConnectionAuthConfig;
3769
+ credentials: {
3770
+ object: string;
3771
+ id: string;
3772
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3773
+ registrationType: "manual" | "automatic";
3774
+ clientId: string | null;
3775
+ oauthConfig: {
3776
+ type: "remote";
3777
+ name: string | null;
3778
+ config: any;
3779
+ scopes: string[];
3780
+ authConfigSchema: null;
3781
+ provider: {
3782
+ name: string;
3783
+ url: string;
3784
+ };
3785
+ discovery: {
3786
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3787
+ error: {
3788
+ code: string;
3789
+ message: string;
3790
+ } | null;
3791
+ createdAt: Date;
3792
+ lastDiscoveredAt: Date | null;
3793
+ };
3794
+ } | {
3795
+ type: "delegated";
3796
+ name: string | null;
3797
+ config: null;
3798
+ scopes: never[];
3799
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3800
+ provider: null;
3801
+ discovery: {
3802
+ status: "succeeded";
3803
+ error: {
3804
+ code: string;
3805
+ message: string;
3806
+ } | null;
3807
+ createdAt: Date;
3808
+ lastDiscoveredAt: null;
3809
+ };
3810
+ } | null;
3811
+ provider: {
3812
+ name: string;
3813
+ url: string;
3814
+ } | null;
3815
+ discovery: {
3816
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3817
+ error: {
3818
+ code: string;
3819
+ message: string;
3820
+ } | null;
3821
+ createdAt: Date;
3822
+ lastDiscoveredAt: Date | null;
3823
+ };
3824
+ isDefault: boolean;
3825
+ serverId: string;
3826
+ tenantId: string;
3827
+ createdAt: Date;
3828
+ updatedAt: Date;
3829
+ } | null;
3830
+ profile: {
3831
+ id: string;
3832
+ email: string | null;
3833
+ name: string | null;
3834
+ data: unknown;
3835
+ } | null;
3836
+ serverId: string;
3837
+ tenantId: string;
3838
+ createdAt: Date;
3839
+ updatedAt: Date;
3840
+ } | null;
3841
+ credentials: {
3842
+ object: string;
3843
+ id: string;
3844
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
3845
+ registrationType: "manual" | "automatic";
3846
+ clientId: string | null;
3847
+ oauthConfig: {
3848
+ type: "remote";
3849
+ name: string | null;
3850
+ config: any;
3851
+ scopes: string[];
3852
+ authConfigSchema: null;
3853
+ provider: {
3854
+ name: string;
3855
+ url: string;
3856
+ };
3857
+ discovery: {
3858
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3859
+ error: {
3860
+ code: string;
3861
+ message: string;
3862
+ } | null;
3863
+ createdAt: Date;
3864
+ lastDiscoveredAt: Date | null;
3865
+ };
3866
+ } | {
3867
+ type: "delegated";
3868
+ name: string | null;
3869
+ config: null;
3870
+ scopes: never[];
3871
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
3872
+ provider: null;
3873
+ discovery: {
3874
+ status: "succeeded";
3875
+ error: {
3876
+ code: string;
3877
+ message: string;
3878
+ } | null;
3879
+ createdAt: Date;
3880
+ lastDiscoveredAt: null;
3881
+ };
3882
+ } | null;
3883
+ provider: {
3884
+ name: string;
3885
+ url: string;
3886
+ } | null;
3887
+ discovery: {
3888
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3889
+ error: {
3890
+ code: string;
3891
+ message: string;
3892
+ } | null;
3893
+ createdAt: Date;
3894
+ lastDiscoveredAt: Date | null;
3895
+ };
3896
+ isDefault: boolean;
3897
+ serverId: string;
3898
+ tenantId: string;
3899
+ createdAt: Date;
3900
+ updatedAt: Date;
3901
+ };
3902
+ serverId: string;
3903
+ tenantId: string;
3904
+ credentialsId: string;
3905
+ createdAt: Date;
3906
+ updatedAt: Date;
3907
+ }, {
3908
+ tenant: {
3909
+ name: string;
3910
+ identifier: string;
3911
+ oid: bigint;
3912
+ id: string;
3913
+ functionBayTenantId: string | null;
3914
+ createdAt: Date;
3915
+ };
3916
+ serverOAuthSetup: {
3917
+ tenant: {
3918
+ name: string;
3919
+ identifier: string;
3920
+ oid: bigint;
3921
+ id: string;
3922
+ functionBayTenantId: string | null;
3923
+ createdAt: Date;
3924
+ };
3925
+ server: {
3926
+ name: string;
3927
+ oid: bigint;
3928
+ id: string;
3929
+ createdAt: Date;
3930
+ type: import("../../../service/prisma/generated/enums").ServerType;
3931
+ tenantOid: bigint | null;
3932
+ updatedAt: Date;
3933
+ currentVersionOid: bigint | null;
3934
+ description: string | null;
3935
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
3936
+ draftConfigTransformer: string;
3937
+ draftRemoteUrl: string | null;
3938
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
3939
+ draftRepositoryTagOid: bigint | null;
3940
+ remoteOauthConfigOid: bigint | null;
3941
+ delegatedOauthConfigOid: bigint | null;
3942
+ };
3943
+ credentials: {
3944
+ remoteConnection: ({
3945
+ config: {
3946
+ name: string | null;
3947
+ oid: bigint;
3948
+ id: string;
3949
+ createdAt: Date;
3950
+ serverOid: bigint;
3951
+ discoverStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
3952
+ config: PrismaJson.RemoteOAuthConfig;
3953
+ providerName: string;
3954
+ providerUrl: string;
3955
+ discoveryUrl: string | null;
3956
+ errorCode: string | null;
3957
+ errorMessage: string | null;
3958
+ scopes: string[];
3959
+ oauthDiscoveryDocumentOid: bigint | null;
3960
+ lastDiscoveredAt: Date | null;
3961
+ };
3962
+ registration: {
3963
+ oid: bigint;
3964
+ id: string;
3965
+ createdAt: Date;
3966
+ data: PrismaJson.RemoteOAuthAutoRegistrationData;
3967
+ clientId: string;
3968
+ clientSecret: string | null;
3969
+ autoRegistrationName: string | null;
3970
+ registrationClientUri: string | null;
3971
+ registrationAccessToken: string | null;
3972
+ clientSecretExpiresAt: Date | null;
3973
+ discoveryDocumentOid: bigint | null;
3974
+ } | null;
3975
+ } & {
3976
+ oid: bigint;
3977
+ id: string;
3978
+ createdAt: Date;
3979
+ secretOid: bigint | null;
3980
+ tenantOid: bigint;
3981
+ updatedAt: Date;
3982
+ discoveryStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
3983
+ serverOid: bigint;
3984
+ providerName: string;
3985
+ providerUrl: string;
3986
+ discoveryUrl: string | null;
3987
+ errorCode: string | null;
3988
+ errorMessage: string | null;
3989
+ scopes: string[];
3990
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionStatus;
3991
+ clientId: string | null;
3992
+ configOid: bigint;
3993
+ registrationOid: bigint | null;
3994
+ }) | null;
3995
+ delegatedConnection: ({
3996
+ functionServer: {
3997
+ oid: bigint;
3998
+ id: string;
3999
+ functionBayTenantId: string;
4000
+ createdAt: Date;
4001
+ info: PrismaJson.FunctionServerInfo;
4002
+ delegatedOauthConfigOid: bigint | null;
4003
+ configSchema: PrismaJson.FunctionServerConfigSchema;
4004
+ serverOid: bigint;
4005
+ errorCode: string | null;
4006
+ errorMessage: string | null;
4007
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4008
+ supportsOauthTokenRefresh: boolean;
4009
+ status: import("../../../service/prisma/generated/enums").FunctionServerStatus;
4010
+ functionBayFunctionId: string;
4011
+ functionBayDeploymentId: string;
4012
+ functionBayVersionId: string | null;
4013
+ supportsOAuth: boolean;
4014
+ providerOid: bigint;
4015
+ };
4016
+ config: {
4017
+ name: string | null;
4018
+ oid: bigint;
4019
+ id: string;
4020
+ createdAt: Date;
4021
+ serverOid: bigint;
4022
+ functionServerOid: bigint;
4023
+ errorCode: string | null;
4024
+ errorMessage: string | null;
4025
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4026
+ authConfigSchemaHash: string;
4027
+ supportsOauthTokenRefresh: boolean;
4028
+ };
4029
+ } & {
4030
+ oid: bigint;
4031
+ id: string;
4032
+ createdAt: Date;
4033
+ secretOid: bigint | null;
4034
+ tenantOid: bigint;
4035
+ updatedAt: Date;
4036
+ serverOid: bigint;
4037
+ functionServerOid: bigint;
4038
+ errorCode: string | null;
4039
+ errorMessage: string | null;
4040
+ status: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionStatus;
4041
+ clientId: string;
4042
+ configOid: bigint;
4043
+ }) | null;
4044
+ } & {
4045
+ oid: bigint;
4046
+ id: string;
4047
+ createdAt: Date;
4048
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
4049
+ tenantOid: bigint;
4050
+ updatedAt: Date;
4051
+ serverOid: bigint;
4052
+ isDefault: boolean;
4053
+ remoteConnectionOid: bigint | null;
4054
+ delegatedConnectionOid: bigint | null;
4055
+ };
4056
+ authConfig: ({
4057
+ remoteOAuthConnectionAuthToken: ({
4058
+ connectionProfile: {
4059
+ name: string | null;
4060
+ oid: bigint;
4061
+ id: string;
4062
+ createdAt: Date;
4063
+ sub: string;
4064
+ tenantOid: bigint;
4065
+ updatedAt: Date;
4066
+ connectionOid: bigint;
4067
+ lastUsedAt: Date;
4068
+ email: string | null;
4069
+ rawProfile: unknown | null;
4070
+ } | null;
4071
+ } & {
4072
+ oid: bigint;
4073
+ id: string;
4074
+ createdAt: Date;
4075
+ secretOid: bigint;
4076
+ tenantOid: bigint;
4077
+ serverOid: bigint;
4078
+ connectionOid: bigint | null;
4079
+ configOid: bigint;
4080
+ source: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionAuthTokenSource;
4081
+ scope: string | null;
4082
+ tokenType: string | null;
4083
+ idToken: string | null;
4084
+ expiresAt: Date | null;
4085
+ connectionProfileOid: bigint | null;
4086
+ firstErrorAt: Date | null;
4087
+ lastErrorAt: Date | null;
4088
+ errorDisabledAt: Date | null;
4089
+ errorCount: number;
4090
+ lastUsedAt: Date;
4091
+ refreshedAt: Date | null;
4092
+ }) | null;
4093
+ delegatedOAuthConnectionAuthToken: {
4094
+ oid: bigint;
4095
+ id: string;
4096
+ createdAt: Date;
4097
+ secretOid: bigint;
4098
+ tenantOid: bigint;
4099
+ serverOid: bigint;
4100
+ connectionOid: bigint | null;
4101
+ configOid: bigint;
4102
+ source: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionAuthTokenSource;
4103
+ scope: string | null;
4104
+ tokenType: string | null;
4105
+ idToken: string | null;
4106
+ expiresAt: Date | null;
4107
+ firstErrorAt: Date | null;
4108
+ lastErrorAt: Date | null;
4109
+ errorDisabledAt: Date | null;
4110
+ errorCount: number;
4111
+ lastUsedAt: Date;
4112
+ refreshedAt: Date | null;
4113
+ authConfigValue: PrismaJson.DelegatedOAuthConnectionAuthConfig;
4114
+ authStateValue: PrismaJson.DelegatedOAuthConnectionAuthState;
4115
+ } | null;
4116
+ } & {
4117
+ oid: bigint;
4118
+ id: string;
4119
+ createdAt: Date;
4120
+ type: import("../../../service/prisma/generated/enums").ServerAuthConfigType;
4121
+ tenantOid: bigint;
4122
+ updatedAt: Date;
4123
+ serverOid: bigint;
4124
+ credentialsOid: bigint | null;
4125
+ remoteOAuthConnectionOid: bigint | null;
4126
+ remoteOAuthConnectionAuthTokenOid: bigint | null;
4127
+ delegatedOAuthConnectionOid: bigint | null;
4128
+ delegatedOAuthConnectionAuthTokenOid: bigint | null;
4129
+ }) | null;
4130
+ } & {
4131
+ oid: bigint;
4132
+ id: string;
4133
+ createdAt: Date;
4134
+ type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
4135
+ tenantOid: bigint;
4136
+ updatedAt: Date;
4137
+ serverOid: bigint;
4138
+ status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
4139
+ credentialsOid: bigint;
4140
+ authConfigValue: PrismaJson.ServerOAuthSetupAuthConfig;
4141
+ redirectUri: string;
4142
+ authConfigOid: bigint | null;
4143
+ remoteOAuthConnectionSetupOid: bigint | null;
4144
+ delegatedOAuthConnectionSetupOid: bigint | null;
4145
+ };
4146
+ }>;
4147
+ };
4148
+ serverOAuthCredentials: {
4149
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
4150
+ tenantId: string;
4151
+ }, never>> & {
4152
+ tenantId: string;
4153
+ } & {
4154
+ limit?: number;
4155
+ after?: string;
4156
+ before?: string;
4157
+ cursor?: string;
4158
+ order?: "asc" | "desc";
4159
+ }, {
4160
+ __typename: string;
4161
+ items: {
4162
+ object: string;
4163
+ id: string;
4164
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
4165
+ registrationType: "manual" | "automatic";
4166
+ clientId: string | null;
4167
+ oauthConfig: {
4168
+ type: "remote";
4169
+ name: string | null;
4170
+ config: any;
4171
+ scopes: string[];
4172
+ authConfigSchema: null;
4173
+ provider: {
4174
+ name: string;
4175
+ url: string;
4176
+ };
4177
+ discovery: {
4178
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
4179
+ error: {
4180
+ code: string;
4181
+ message: string;
4182
+ } | null;
4183
+ createdAt: Date;
4184
+ lastDiscoveredAt: Date | null;
4185
+ };
4186
+ } | {
4187
+ type: "delegated";
4188
+ name: string | null;
4189
+ config: null;
4190
+ scopes: never[];
4191
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4192
+ provider: null;
4193
+ discovery: {
4194
+ status: "succeeded";
4195
+ error: {
4196
+ code: string;
4197
+ message: string;
4198
+ } | null;
4199
+ createdAt: Date;
4200
+ lastDiscoveredAt: null;
4201
+ };
4202
+ } | null;
4203
+ provider: {
4204
+ name: string;
4205
+ url: string;
4206
+ } | null;
4207
+ discovery: {
4208
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
4209
+ error: {
4210
+ code: string;
4211
+ message: string;
4212
+ } | null;
4213
+ createdAt: Date;
4214
+ lastDiscoveredAt: Date | null;
4215
+ };
4216
+ isDefault: boolean;
4217
+ serverId: string;
4218
+ tenantId: string;
4219
+ createdAt: Date;
4220
+ updatedAt: Date;
4221
+ }[];
4222
+ pagination: {
4223
+ has_more_after: boolean;
4224
+ has_more_before: boolean;
4225
+ };
4226
+ }, {
4227
+ tenant: {
4228
+ name: string;
4229
+ identifier: string;
4230
+ oid: bigint;
4231
+ id: string;
4232
+ functionBayTenantId: string | null;
4233
+ createdAt: Date;
4234
+ };
4235
+ }>;
4236
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4237
+ tenantId: string;
4238
+ serverId: string;
4239
+ clientId: string | undefined;
4240
+ clientSecret: string | undefined;
4241
+ scopes: string[] | undefined;
4242
+ }>, {
4243
+ object: string;
4244
+ id: string;
4245
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
4246
+ registrationType: "manual" | "automatic";
4247
+ clientId: string | null;
4248
+ oauthConfig: {
4249
+ type: "remote";
4250
+ name: string | null;
4251
+ config: any;
4252
+ scopes: string[];
4253
+ authConfigSchema: null;
4254
+ provider: {
4255
+ name: string;
4256
+ url: string;
4257
+ };
4258
+ discovery: {
4259
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
4260
+ error: {
4261
+ code: string;
4262
+ message: string;
4263
+ } | null;
4264
+ createdAt: Date;
4265
+ lastDiscoveredAt: Date | null;
4266
+ };
4267
+ } | {
4268
+ type: "delegated";
4269
+ name: string | null;
4270
+ config: null;
4271
+ scopes: never[];
4272
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4273
+ provider: null;
4274
+ discovery: {
4275
+ status: "succeeded";
4276
+ error: {
4277
+ code: string;
4278
+ message: string;
4279
+ } | null;
4280
+ createdAt: Date;
4281
+ lastDiscoveredAt: null;
4282
+ };
4283
+ } | null;
4284
+ provider: {
4285
+ name: string;
4286
+ url: string;
4287
+ } | null;
4288
+ discovery: {
4289
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
4290
+ error: {
4291
+ code: string;
4292
+ message: string;
4293
+ } | null;
4294
+ createdAt: Date;
4295
+ lastDiscoveredAt: Date | null;
4296
+ };
4297
+ isDefault: boolean;
4298
+ serverId: string;
4299
+ tenantId: string;
4300
+ createdAt: Date;
4301
+ updatedAt: Date;
4302
+ }, {
4303
+ tenant: {
4304
+ name: string;
4305
+ identifier: string;
4306
+ oid: bigint;
4307
+ id: string;
4308
+ functionBayTenantId: string | null;
4309
+ createdAt: Date;
4310
+ };
4311
+ }>;
4312
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4313
+ tenantId: string;
4314
+ serverOAuthCredentialsId: string;
4315
+ }>, {
4316
+ object: string;
4317
+ id: string;
4318
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
4319
+ registrationType: "manual" | "automatic";
4320
+ clientId: string | null;
4321
+ oauthConfig: {
4322
+ type: "remote";
4323
+ name: string | null;
4324
+ config: any;
4325
+ scopes: string[];
4326
+ authConfigSchema: null;
4327
+ provider: {
4328
+ name: string;
4329
+ url: string;
4330
+ };
4331
+ discovery: {
4332
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
4333
+ error: {
4334
+ code: string;
4335
+ message: string;
4336
+ } | null;
4337
+ createdAt: Date;
4338
+ lastDiscoveredAt: Date | null;
4339
+ };
4340
+ } | {
4341
+ type: "delegated";
4342
+ name: string | null;
4343
+ config: null;
4344
+ scopes: never[];
4345
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4346
+ provider: null;
4347
+ discovery: {
4348
+ status: "succeeded";
4349
+ error: {
4350
+ code: string;
4351
+ message: string;
4352
+ } | null;
4353
+ createdAt: Date;
4354
+ lastDiscoveredAt: null;
4355
+ };
4356
+ } | null;
4357
+ provider: {
4358
+ name: string;
4359
+ url: string;
4360
+ } | null;
4361
+ discovery: {
4362
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
4363
+ error: {
4364
+ code: string;
4365
+ message: string;
4366
+ } | null;
4367
+ createdAt: Date;
4368
+ lastDiscoveredAt: Date | null;
4369
+ };
4370
+ isDefault: boolean;
4371
+ serverId: string;
4372
+ tenantId: string;
4373
+ createdAt: Date;
4374
+ updatedAt: Date;
4375
+ }, {
4376
+ tenant: {
4377
+ name: string;
4378
+ identifier: string;
4379
+ oid: bigint;
4380
+ id: string;
4381
+ functionBayTenantId: string | null;
4382
+ createdAt: Date;
4383
+ };
4384
+ serverOAuthCredentials: {
4385
+ tenant: {
4386
+ name: string;
4387
+ identifier: string;
4388
+ oid: bigint;
4389
+ id: string;
4390
+ functionBayTenantId: string | null;
4391
+ createdAt: Date;
4392
+ };
4393
+ server: {
4394
+ name: string;
4395
+ oid: bigint;
4396
+ id: string;
4397
+ createdAt: Date;
4398
+ type: import("../../../service/prisma/generated/enums").ServerType;
4399
+ tenantOid: bigint | null;
4400
+ updatedAt: Date;
4401
+ currentVersionOid: bigint | null;
4402
+ description: string | null;
4403
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
4404
+ draftConfigTransformer: string;
4405
+ draftRemoteUrl: string | null;
4406
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
4407
+ draftRepositoryTagOid: bigint | null;
4408
+ remoteOauthConfigOid: bigint | null;
4409
+ delegatedOauthConfigOid: bigint | null;
4410
+ };
4411
+ remoteConnection: ({
4412
+ config: {
4413
+ name: string | null;
4414
+ oid: bigint;
4415
+ id: string;
4416
+ createdAt: Date;
4417
+ serverOid: bigint;
4418
+ discoverStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConfigDiscoveryStatus;
4419
+ config: PrismaJson.RemoteOAuthConfig;
4420
+ providerName: string;
4421
+ providerUrl: string;
4422
+ discoveryUrl: string | null;
4423
+ errorCode: string | null;
4424
+ errorMessage: string | null;
4425
+ scopes: string[];
4426
+ oauthDiscoveryDocumentOid: bigint | null;
4427
+ lastDiscoveredAt: Date | null;
4428
+ };
4429
+ registration: {
4430
+ oid: bigint;
4431
+ id: string;
4432
+ createdAt: Date;
4433
+ data: PrismaJson.RemoteOAuthAutoRegistrationData;
4434
+ clientId: string;
4435
+ clientSecret: string | null;
4436
+ autoRegistrationName: string | null;
4437
+ registrationClientUri: string | null;
4438
+ registrationAccessToken: string | null;
4439
+ clientSecretExpiresAt: Date | null;
4440
+ discoveryDocumentOid: bigint | null;
4441
+ } | null;
4442
+ } & {
4443
+ oid: bigint;
4444
+ id: string;
4445
+ createdAt: Date;
4446
+ secretOid: bigint | null;
4447
+ tenantOid: bigint;
4448
+ updatedAt: Date;
4449
+ discoveryStatus: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionDiscoveryStatus;
4450
+ serverOid: bigint;
4451
+ providerName: string;
4452
+ providerUrl: string;
4453
+ discoveryUrl: string | null;
4454
+ errorCode: string | null;
4455
+ errorMessage: string | null;
4456
+ scopes: string[];
4457
+ status: import("../../../service/prisma/generated/enums").RemoteOAuthConnectionStatus;
4458
+ clientId: string | null;
4459
+ configOid: bigint;
4460
+ registrationOid: bigint | null;
4461
+ }) | null;
4462
+ delegatedConnection: ({
4463
+ functionServer: {
4464
+ oid: bigint;
4465
+ id: string;
4466
+ functionBayTenantId: string;
4467
+ createdAt: Date;
4468
+ info: PrismaJson.FunctionServerInfo;
4469
+ delegatedOauthConfigOid: bigint | null;
4470
+ configSchema: PrismaJson.FunctionServerConfigSchema;
4471
+ serverOid: bigint;
4472
+ errorCode: string | null;
4473
+ errorMessage: string | null;
4474
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4475
+ supportsOauthTokenRefresh: boolean;
4476
+ status: import("../../../service/prisma/generated/enums").FunctionServerStatus;
4477
+ functionBayFunctionId: string;
4478
+ functionBayDeploymentId: string;
4479
+ functionBayVersionId: string | null;
4480
+ supportsOAuth: boolean;
4481
+ providerOid: bigint;
4482
+ };
4483
+ config: {
4484
+ name: string | null;
4485
+ oid: bigint;
4486
+ id: string;
4487
+ createdAt: Date;
4488
+ serverOid: bigint;
4489
+ functionServerOid: bigint;
4490
+ errorCode: string | null;
4491
+ errorMessage: string | null;
4492
+ authConfigSchema: PrismaJson.FunctionServerAuthConfigSchema;
4493
+ authConfigSchemaHash: string;
4494
+ supportsOauthTokenRefresh: boolean;
4495
+ };
4496
+ } & {
4497
+ oid: bigint;
4498
+ id: string;
4499
+ createdAt: Date;
4500
+ secretOid: bigint | null;
4501
+ tenantOid: bigint;
4502
+ updatedAt: Date;
4503
+ serverOid: bigint;
4504
+ functionServerOid: bigint;
4505
+ errorCode: string | null;
4506
+ errorMessage: string | null;
4507
+ status: import("../../../service/prisma/generated/enums").DelegatedOAuthConnectionStatus;
4508
+ clientId: string;
4509
+ configOid: bigint;
4510
+ }) | null;
4511
+ } & {
4512
+ oid: bigint;
4513
+ id: string;
4514
+ createdAt: Date;
4515
+ type: import("../../../service/prisma/generated/enums").ServerOAuthCredentialsType;
4516
+ tenantOid: bigint;
4517
+ updatedAt: Date;
4518
+ serverOid: bigint;
4519
+ isDefault: boolean;
4520
+ remoteConnectionOid: bigint | null;
4521
+ delegatedConnectionOid: bigint | null;
4522
+ };
4523
+ }>;
4524
+ };
4525
+ changeNotification: {
4526
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{}, never>> & {} & {
4527
+ limit?: number;
4528
+ after?: string;
4529
+ before?: string;
4530
+ cursor?: string;
4531
+ order?: "asc" | "desc";
4532
+ }, {
4533
+ __typename: string;
4534
+ items: {
4535
+ object: string;
4536
+ id: string;
4537
+ type: import("../../../service/prisma/generated/enums").ChangeNotificationType;
4538
+ serverId: string | undefined;
4539
+ serverVersion: string | undefined;
4540
+ tenantId: string | undefined;
4541
+ createdAt: Date;
4542
+ }[];
4543
+ pagination: {
4544
+ has_more_after: boolean;
4545
+ has_more_before: boolean;
4546
+ };
4547
+ }, {}>;
4548
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4549
+ changeNotificationId: string;
4550
+ }>, {
4551
+ object: string;
4552
+ id: string;
4553
+ type: import("../../../service/prisma/generated/enums").ChangeNotificationType;
4554
+ serverId: string | undefined;
4555
+ serverVersion: string | undefined;
4556
+ tenantId: string | undefined;
4557
+ createdAt: Date;
4558
+ }, {
4559
+ changeNotification: {
4560
+ server: ({
4561
+ tenant: {
4562
+ name: string;
4563
+ identifier: string;
4564
+ oid: bigint;
4565
+ id: string;
4566
+ functionBayTenantId: string | null;
4567
+ createdAt: Date;
4568
+ } | null;
4569
+ } & {
4570
+ name: string;
4571
+ oid: bigint;
4572
+ id: string;
4573
+ createdAt: Date;
4574
+ type: import("../../../service/prisma/generated/enums").ServerType;
4575
+ tenantOid: bigint | null;
4576
+ updatedAt: Date;
4577
+ currentVersionOid: bigint | null;
4578
+ description: string | null;
4579
+ draftConfigSchema: PrismaJson.ServerConfigSchema;
4580
+ draftConfigTransformer: string;
4581
+ draftRemoteUrl: string | null;
4582
+ draftRemoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
4583
+ draftRepositoryTagOid: bigint | null;
4584
+ remoteOauthConfigOid: bigint | null;
4585
+ delegatedOauthConfigOid: bigint | null;
4586
+ }) | null;
4587
+ serverVersion: {
4588
+ identifier: string;
4589
+ oid: bigint;
4590
+ id: string;
4591
+ createdAt: Date;
4592
+ tenantOid: bigint | null;
4593
+ updatedAt: Date;
4594
+ isCurrent: boolean;
4595
+ configSchema: PrismaJson.ServerConfigSchema;
4596
+ configTransformer: string;
4597
+ remoteUrl: string | null;
4598
+ remoteProtocol: import("../../../service/prisma/generated/enums").ServerRemoteProtocol | null;
4599
+ serverOid: bigint;
4600
+ repositoryTagOid: bigint | null;
4601
+ repositoryVersionOid: bigint | null;
4602
+ functionServerOid: bigint | null;
4603
+ deploymentOid: bigint;
4604
+ } | null;
4605
+ } & {
4606
+ oid: bigint;
4607
+ id: string;
4608
+ createdAt: Date;
4609
+ type: import("../../../service/prisma/generated/enums").ChangeNotificationType;
4610
+ serverOid: bigint | null;
4611
+ serverVersionOid: bigint | null;
4612
+ };
4613
+ }>;
4614
+ };
4615
+ networkingRuleset: {
4616
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
4617
+ tenantId: string;
4618
+ isDefault: boolean | undefined;
4619
+ ids: string[] | undefined;
4620
+ }, "isDefault" | "ids">> & {
4621
+ tenantId: string;
4622
+ } & {
4623
+ limit?: number;
4624
+ after?: string;
4625
+ before?: string;
4626
+ cursor?: string;
4627
+ order?: "asc" | "desc";
4628
+ }, {
4629
+ __typename: string;
4630
+ items: {
4631
+ object: string;
4632
+ id: string;
4633
+ status: import("../../../service/prisma/generated/enums").NetworkingRuleStatus;
4634
+ name: string;
4635
+ description: string | null;
4636
+ defaultAction: "accept" | "deny";
4637
+ rules: {
4638
+ action: "accept" | "deny";
4639
+ protocol?: "tcp" | "udp" | "icmp";
4640
+ destination?: string;
4641
+ portRange?: {
4642
+ start: number;
4643
+ end: number;
4644
+ };
4645
+ }[];
4646
+ tenantId: string;
4647
+ createdAt: Date;
4648
+ }[];
4649
+ pagination: {
4650
+ has_more_after: boolean;
4651
+ has_more_before: boolean;
4652
+ };
4653
+ }, {
4654
+ tenant: {
4655
+ name: string;
4656
+ identifier: string;
4657
+ oid: bigint;
4658
+ id: string;
4659
+ functionBayTenantId: string | null;
4660
+ createdAt: Date;
4661
+ };
4662
+ }>;
4663
+ create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4664
+ tenantId: string;
4665
+ name: string;
4666
+ description: string | undefined;
4667
+ isDefault: boolean | undefined;
4668
+ defaultAction: "accept" | "deny";
4669
+ rules: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4670
+ action: "accept" | "deny";
4671
+ protocol: "tcp" | "udp" | "icmp" | undefined;
4672
+ destination: string | undefined;
4673
+ port: number | undefined;
4674
+ portRange: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4675
+ start: number;
4676
+ end: number;
4677
+ }> | undefined;
4678
+ }>[] | undefined;
4679
+ }>, {
4680
+ object: string;
4681
+ id: string;
4682
+ status: import("../../../service/prisma/generated/enums").NetworkingRuleStatus;
4683
+ name: string;
4684
+ description: string | null;
4685
+ defaultAction: "accept" | "deny";
4686
+ rules: {
4687
+ action: "accept" | "deny";
4688
+ protocol?: "tcp" | "udp" | "icmp";
4689
+ destination?: string;
4690
+ portRange?: {
4691
+ start: number;
4692
+ end: number;
4693
+ };
4694
+ }[];
4695
+ tenantId: string;
4696
+ createdAt: Date;
4697
+ }, {
4698
+ tenant: {
4699
+ name: string;
4700
+ identifier: string;
4701
+ oid: bigint;
4702
+ id: string;
4703
+ functionBayTenantId: string | null;
4704
+ createdAt: Date;
4705
+ };
4706
+ }>;
4707
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4708
+ tenantId: string;
4709
+ networkingRulesetId: string;
4710
+ }>, {
4711
+ object: string;
4712
+ id: string;
4713
+ status: import("../../../service/prisma/generated/enums").NetworkingRuleStatus;
4714
+ name: string;
4715
+ description: string | null;
4716
+ defaultAction: "accept" | "deny";
4717
+ rules: {
4718
+ action: "accept" | "deny";
4719
+ protocol?: "tcp" | "udp" | "icmp";
4720
+ destination?: string;
4721
+ portRange?: {
4722
+ start: number;
4723
+ end: number;
4724
+ };
4725
+ }[];
4726
+ tenantId: string;
4727
+ createdAt: Date;
4728
+ }, {
4729
+ tenant: {
4730
+ name: string;
4731
+ identifier: string;
4732
+ oid: bigint;
4733
+ id: string;
4734
+ functionBayTenantId: string | null;
4735
+ createdAt: Date;
4736
+ };
4737
+ networkingRuleset: {
4738
+ tenant: {
4739
+ name: string;
4740
+ identifier: string;
4741
+ oid: bigint;
4742
+ id: string;
4743
+ functionBayTenantId: string | null;
4744
+ createdAt: Date;
4745
+ };
4746
+ } & {
4747
+ name: string;
4748
+ oid: bigint;
4749
+ id: string;
4750
+ createdAt: Date;
4751
+ tenantOid: bigint;
4752
+ updatedAt: Date;
4753
+ description: string | null;
4754
+ status: import("../../../service/prisma/generated/enums").NetworkingRuleStatus;
4755
+ isDefault: boolean;
4756
+ rules: PrismaJson.NetworkingRulesetList;
4757
+ };
4758
+ }>;
4759
+ update: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4760
+ tenantId: string;
4761
+ networkingRulesetId: string;
4762
+ name: string | undefined;
4763
+ description: string | undefined;
4764
+ defaultAction: "accept" | "deny";
4765
+ rules: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4766
+ action: "accept" | "deny";
4767
+ protocol: "tcp" | "udp" | "icmp" | undefined;
4768
+ destination: string | undefined;
4769
+ port: number | undefined;
4770
+ portRange: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
4771
+ start: number;
4772
+ end: number;
4773
+ }> | undefined;
4774
+ }>[];
4775
+ }>, {
4776
+ object: string;
4777
+ id: string;
4778
+ status: import("../../../service/prisma/generated/enums").NetworkingRuleStatus;
4779
+ name: string;
4780
+ description: string | null;
4781
+ defaultAction: "accept" | "deny";
4782
+ rules: {
4783
+ action: "accept" | "deny";
4784
+ protocol?: "tcp" | "udp" | "icmp";
4785
+ destination?: string;
4786
+ portRange?: {
4787
+ start: number;
4788
+ end: number;
4789
+ };
4790
+ }[];
4791
+ tenantId: string;
4792
+ createdAt: Date;
4793
+ }, {
4794
+ tenant: {
4795
+ name: string;
4796
+ identifier: string;
4797
+ oid: bigint;
4798
+ id: string;
4799
+ functionBayTenantId: string | null;
4800
+ createdAt: Date;
4801
+ };
4802
+ networkingRuleset: {
4803
+ tenant: {
4804
+ name: string;
4805
+ identifier: string;
4806
+ oid: bigint;
4807
+ id: string;
4808
+ functionBayTenantId: string | null;
4809
+ createdAt: Date;
4810
+ };
4811
+ } & {
4812
+ name: string;
4813
+ oid: bigint;
4814
+ id: string;
4815
+ createdAt: Date;
4816
+ tenantOid: bigint;
4817
+ updatedAt: Date;
4818
+ description: string | null;
4819
+ status: import("../../../service/prisma/generated/enums").NetworkingRuleStatus;
4820
+ isDefault: boolean;
4821
+ rules: PrismaJson.NetworkingRulesetList;
4822
+ };
4823
+ }>;
4824
+ };
4825
+ }>;
4826
+ //# sourceMappingURL=controller.d.ts.map