@metorial-services/slates-hub-client 1.0.1

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,3512 @@
1
+ import { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';
2
+ export declare let createSlatesHubInternalClient: (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
+ createdAt: Date;
29
+ };
30
+ }>;
31
+ };
32
+ secret: {
33
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
34
+ tenantId: string;
35
+ }, never>> & {
36
+ tenantId: string;
37
+ } & {
38
+ limit?: number;
39
+ after?: string;
40
+ before?: string;
41
+ cursor?: string;
42
+ order?: "asc" | "desc";
43
+ }, {
44
+ __typename: string;
45
+ items: {
46
+ object: string;
47
+ id: string;
48
+ type: import("../../../apps/hub/prisma/generated/enums").SecretType;
49
+ status: import("../../../apps/hub/prisma/generated/enums").SecretStatus;
50
+ createdAt: Date;
51
+ }[];
52
+ pagination: {
53
+ has_more_after: boolean;
54
+ has_more_before: boolean;
55
+ };
56
+ }, {
57
+ tenant: {} & {
58
+ name: string;
59
+ identifier: string;
60
+ oid: bigint;
61
+ id: string;
62
+ createdAt: Date;
63
+ };
64
+ }>;
65
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
66
+ tenantId: string;
67
+ secretId: string;
68
+ }>, {
69
+ object: string;
70
+ id: string;
71
+ type: import("../../../apps/hub/prisma/generated/enums").SecretType;
72
+ status: import("../../../apps/hub/prisma/generated/enums").SecretStatus;
73
+ createdAt: Date;
74
+ }, {
75
+ tenant: {} & {
76
+ name: string;
77
+ identifier: string;
78
+ oid: bigint;
79
+ id: string;
80
+ createdAt: Date;
81
+ };
82
+ secret: {} & {
83
+ oid: bigint;
84
+ id: string;
85
+ createdAt: Date;
86
+ type: import("../../../apps/hub/prisma/generated/enums").SecretType;
87
+ status: import("../../../apps/hub/prisma/generated/enums").SecretStatus;
88
+ tenantOid: bigint;
89
+ encryptedSecret: string;
90
+ };
91
+ }>;
92
+ };
93
+ registry: {
94
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{}, never>> & {} & {
95
+ limit?: number;
96
+ after?: string;
97
+ before?: string;
98
+ cursor?: string;
99
+ order?: "asc" | "desc";
100
+ }, {
101
+ __typename: string;
102
+ items: {
103
+ object: string;
104
+ id: string;
105
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
106
+ isPredefined: boolean;
107
+ identifier: string;
108
+ name: string;
109
+ url: string;
110
+ tenant: {
111
+ object: string;
112
+ id: string;
113
+ identifier: string;
114
+ name: string;
115
+ createdAt: Date;
116
+ } | null;
117
+ createdAt: Date;
118
+ lastSyncedAt: Date | null;
119
+ }[];
120
+ pagination: {
121
+ has_more_after: boolean;
122
+ has_more_before: boolean;
123
+ };
124
+ }, {}>;
125
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
126
+ tenantId: string;
127
+ slateId: string;
128
+ registryId: string;
129
+ }>, {
130
+ object: string;
131
+ id: string;
132
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
133
+ isPredefined: boolean;
134
+ identifier: string;
135
+ name: string;
136
+ url: string;
137
+ tenant: {
138
+ object: string;
139
+ id: string;
140
+ identifier: string;
141
+ name: string;
142
+ createdAt: Date;
143
+ } | null;
144
+ createdAt: Date;
145
+ lastSyncedAt: Date | null;
146
+ }, {
147
+ registry: {
148
+ tenant: {
149
+ name: string;
150
+ identifier: string;
151
+ oid: bigint;
152
+ id: string;
153
+ createdAt: Date;
154
+ } | null;
155
+ } & {
156
+ name: string;
157
+ identifier: string;
158
+ url: string;
159
+ oid: bigint;
160
+ id: string;
161
+ createdAt: Date;
162
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
163
+ tenantOid: bigint | null;
164
+ isPredefined: boolean;
165
+ encryptedReaderToken: string | null;
166
+ changeNotificationCursor: string | null;
167
+ lastSyncedAt: Date | null;
168
+ };
169
+ }>;
170
+ };
171
+ changeNotification: {
172
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{}, never>> & {} & {
173
+ limit?: number;
174
+ after?: string;
175
+ before?: string;
176
+ cursor?: string;
177
+ order?: "asc" | "desc";
178
+ }, {
179
+ __typename: string;
180
+ items: {
181
+ object: string;
182
+ id: string;
183
+ type: "slate_version_created";
184
+ slateId: string;
185
+ slateVersionId: string | null;
186
+ createdAt: Date;
187
+ }[];
188
+ pagination: {
189
+ has_more_after: boolean;
190
+ has_more_before: boolean;
191
+ };
192
+ }, {}>;
193
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
194
+ changeNotificationId: string;
195
+ }>, {
196
+ object: string;
197
+ id: string;
198
+ type: "slate_version_created";
199
+ slateId: string;
200
+ slateVersionId: string | null;
201
+ createdAt: Date;
202
+ }, {
203
+ changeNotification: {} & {
204
+ oid: bigint;
205
+ id: string;
206
+ createdAt: Date;
207
+ type: import("../../../apps/hub/prisma/generated/enums").ChangeNotificationType;
208
+ slateId: string;
209
+ slateVersionId: string | null;
210
+ slateOid: bigint;
211
+ slateVersionOid: bigint | null;
212
+ };
213
+ }>;
214
+ };
215
+ slate: {
216
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
217
+ tenantId: string;
218
+ }, never>> & {
219
+ tenantId: string;
220
+ } & {
221
+ limit?: number;
222
+ after?: string;
223
+ before?: string;
224
+ cursor?: string;
225
+ order?: "asc" | "desc";
226
+ }, {
227
+ __typename: string;
228
+ items: {
229
+ object: string;
230
+ id: string;
231
+ identifier: string;
232
+ name: string;
233
+ description: string | null;
234
+ registryId: string;
235
+ currentVersion: {
236
+ object: string;
237
+ id: string;
238
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
239
+ version: string;
240
+ isCurrent: boolean;
241
+ slateId: string;
242
+ manifest: PrismaJson.SlateJson;
243
+ specification: {
244
+ object: string;
245
+ id: string;
246
+ versionId: string;
247
+ specificationId: string;
248
+ identifier: string;
249
+ createdAt: Date;
250
+ } | null;
251
+ createdAt: Date;
252
+ } | null;
253
+ scope: {
254
+ object: string;
255
+ registryId: string;
256
+ id: string;
257
+ identifier: string;
258
+ };
259
+ slate: {
260
+ object: string;
261
+ registryId: string;
262
+ id: string;
263
+ identifier: string;
264
+ fullIdentifier: string;
265
+ };
266
+ createdAt: Date;
267
+ updatedAt: Date;
268
+ }[];
269
+ pagination: {
270
+ has_more_after: boolean;
271
+ has_more_before: boolean;
272
+ };
273
+ }, {
274
+ tenant: {} & {
275
+ name: string;
276
+ identifier: string;
277
+ oid: bigint;
278
+ id: string;
279
+ createdAt: Date;
280
+ };
281
+ }>;
282
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
283
+ tenantId: string;
284
+ slateId: string;
285
+ }>, {
286
+ object: string;
287
+ id: string;
288
+ identifier: string;
289
+ name: string;
290
+ description: string | null;
291
+ registryId: string;
292
+ currentVersion: {
293
+ object: string;
294
+ id: string;
295
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
296
+ version: string;
297
+ isCurrent: boolean;
298
+ slateId: string;
299
+ manifest: PrismaJson.SlateJson;
300
+ specification: {
301
+ object: string;
302
+ id: string;
303
+ versionId: string;
304
+ specificationId: string;
305
+ identifier: string;
306
+ createdAt: Date;
307
+ } | null;
308
+ createdAt: Date;
309
+ } | null;
310
+ scope: {
311
+ object: string;
312
+ registryId: string;
313
+ id: string;
314
+ identifier: string;
315
+ };
316
+ slate: {
317
+ object: string;
318
+ registryId: string;
319
+ id: string;
320
+ identifier: string;
321
+ fullIdentifier: string;
322
+ };
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ }, {
326
+ tenant: {} & {
327
+ name: string;
328
+ identifier: string;
329
+ oid: bigint;
330
+ id: string;
331
+ createdAt: Date;
332
+ };
333
+ slate: {
334
+ registry: {
335
+ name: string;
336
+ identifier: string;
337
+ url: string;
338
+ oid: bigint;
339
+ id: string;
340
+ createdAt: Date;
341
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
342
+ tenantOid: bigint | null;
343
+ isPredefined: boolean;
344
+ encryptedReaderToken: string | null;
345
+ changeNotificationCursor: string | null;
346
+ lastSyncedAt: Date | null;
347
+ };
348
+ currentVersion: ({
349
+ specification: {
350
+ name: string;
351
+ identifier: string;
352
+ oid: bigint;
353
+ id: string;
354
+ createdAt: Date;
355
+ key: string;
356
+ slateOid: bigint;
357
+ hash: string;
358
+ protocolVersion: string;
359
+ providerInfo: PrismaJson.SlateProviderInfo;
360
+ configSchema: PrismaJson.SlateConfigSchema;
361
+ authMethods: PrismaJson.SlateAuthMethods;
362
+ actions: PrismaJson.SlateActions;
363
+ mostRecentVersionOid: bigint;
364
+ } | null;
365
+ } & {
366
+ oid: bigint;
367
+ id: string;
368
+ createdAt: Date;
369
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
370
+ slateOid: bigint;
371
+ registryOid: bigint;
372
+ updatedAt: Date;
373
+ isCurrent: boolean;
374
+ willBeCurrent: boolean;
375
+ version: string;
376
+ versionIdOnRegistry: string;
377
+ versionIdentifierOnRegistry: string;
378
+ manifest: PrismaJson.SlateJson;
379
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
380
+ activeDeploymentOid: bigint | null;
381
+ specificationOid: bigint | null;
382
+ lastDiscoveredAt: Date | null;
383
+ }) | null;
384
+ } & {
385
+ name: string;
386
+ identifier: string;
387
+ oid: bigint;
388
+ id: string;
389
+ createdAt: Date;
390
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
391
+ description: string | null;
392
+ registryOid: bigint;
393
+ currentVersionOid: bigint | null;
394
+ slateScopeIdentifierOnRegistry: string;
395
+ slateScopeIdOnRegistry: string;
396
+ slateFullIdentifierOnRegistry: string;
397
+ slateIdentifierOnRegistry: string;
398
+ slateIdOnRegistry: string;
399
+ updatedAt: Date;
400
+ };
401
+ }>;
402
+ getRegistryRecord: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
403
+ tenantId: string;
404
+ slateId: string;
405
+ }>, {
406
+ object: string;
407
+ id: string;
408
+ status: import("@metorial-services/slates-registry-client").SlateStatus;
409
+ access: import("@metorial-services/slates-registry-client").SlateAccess;
410
+ name: string;
411
+ description: string | null;
412
+ identifier: string;
413
+ fullIdentifier: string;
414
+ createdByUser: {
415
+ object: string;
416
+ id: string;
417
+ status: import("@metorial-services/slates-registry-client").UserStatus;
418
+ identifier: string;
419
+ name: string;
420
+ scope: {
421
+ object: string;
422
+ id: string;
423
+ type: import("@metorial-services/slates-registry-client").ScopeType;
424
+ status: import("@metorial-services/slates-registry-client").ScopeStatus;
425
+ tenantId: string;
426
+ identifier: string;
427
+ name: string;
428
+ description: string | null;
429
+ links: {
430
+ url: string;
431
+ label: string;
432
+ id: string;
433
+ }[];
434
+ createdAt: string;
435
+ updatedAt: string;
436
+ };
437
+ tenantId: string;
438
+ createdAt: string;
439
+ updatedAt: string;
440
+ };
441
+ scope: {
442
+ object: string;
443
+ id: string;
444
+ type: import("@metorial-services/slates-registry-client").ScopeType;
445
+ status: import("@metorial-services/slates-registry-client").ScopeStatus;
446
+ tenantId: string;
447
+ identifier: string;
448
+ name: string;
449
+ description: string | null;
450
+ links: {
451
+ url: string;
452
+ label: string;
453
+ id: string;
454
+ }[];
455
+ createdAt: string;
456
+ updatedAt: string;
457
+ };
458
+ currentVersion: {
459
+ id: string;
460
+ version: string;
461
+ createdAt: string;
462
+ } | null;
463
+ tenantId: string;
464
+ createdAt: string;
465
+ updatedAt: string;
466
+ }, {
467
+ tenant: {} & {
468
+ name: string;
469
+ identifier: string;
470
+ oid: bigint;
471
+ id: string;
472
+ createdAt: Date;
473
+ };
474
+ slate: {
475
+ registry: {
476
+ name: string;
477
+ identifier: string;
478
+ url: string;
479
+ oid: bigint;
480
+ id: string;
481
+ createdAt: Date;
482
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
483
+ tenantOid: bigint | null;
484
+ isPredefined: boolean;
485
+ encryptedReaderToken: string | null;
486
+ changeNotificationCursor: string | null;
487
+ lastSyncedAt: Date | null;
488
+ };
489
+ currentVersion: ({
490
+ specification: {
491
+ name: string;
492
+ identifier: string;
493
+ oid: bigint;
494
+ id: string;
495
+ createdAt: Date;
496
+ key: string;
497
+ slateOid: bigint;
498
+ hash: string;
499
+ protocolVersion: string;
500
+ providerInfo: PrismaJson.SlateProviderInfo;
501
+ configSchema: PrismaJson.SlateConfigSchema;
502
+ authMethods: PrismaJson.SlateAuthMethods;
503
+ actions: PrismaJson.SlateActions;
504
+ mostRecentVersionOid: bigint;
505
+ } | null;
506
+ } & {
507
+ oid: bigint;
508
+ id: string;
509
+ createdAt: Date;
510
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
511
+ slateOid: bigint;
512
+ registryOid: bigint;
513
+ updatedAt: Date;
514
+ isCurrent: boolean;
515
+ willBeCurrent: boolean;
516
+ version: string;
517
+ versionIdOnRegistry: string;
518
+ versionIdentifierOnRegistry: string;
519
+ manifest: PrismaJson.SlateJson;
520
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
521
+ activeDeploymentOid: bigint | null;
522
+ specificationOid: bigint | null;
523
+ lastDiscoveredAt: Date | null;
524
+ }) | null;
525
+ } & {
526
+ name: string;
527
+ identifier: string;
528
+ oid: bigint;
529
+ id: string;
530
+ createdAt: Date;
531
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
532
+ description: string | null;
533
+ registryOid: bigint;
534
+ currentVersionOid: bigint | null;
535
+ slateScopeIdentifierOnRegistry: string;
536
+ slateScopeIdOnRegistry: string;
537
+ slateFullIdentifierOnRegistry: string;
538
+ slateIdentifierOnRegistry: string;
539
+ slateIdOnRegistry: string;
540
+ updatedAt: Date;
541
+ };
542
+ }>;
543
+ };
544
+ slateVersion: {
545
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
546
+ tenantId: string;
547
+ slateId: string;
548
+ }, never>> & {
549
+ tenantId: string;
550
+ slateId: 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
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
563
+ version: string;
564
+ isCurrent: boolean;
565
+ slateId: string;
566
+ manifest: PrismaJson.SlateJson;
567
+ specification: {
568
+ object: string;
569
+ id: string;
570
+ versionId: string;
571
+ specificationId: string;
572
+ identifier: string;
573
+ createdAt: Date;
574
+ } | null;
575
+ createdAt: Date;
576
+ }[];
577
+ pagination: {
578
+ has_more_after: boolean;
579
+ has_more_before: boolean;
580
+ };
581
+ }, {
582
+ tenant: {} & {
583
+ name: string;
584
+ identifier: string;
585
+ oid: bigint;
586
+ id: string;
587
+ createdAt: Date;
588
+ };
589
+ slate: {
590
+ registry: {
591
+ name: string;
592
+ identifier: string;
593
+ url: string;
594
+ oid: bigint;
595
+ id: string;
596
+ createdAt: Date;
597
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
598
+ tenantOid: bigint | null;
599
+ isPredefined: boolean;
600
+ encryptedReaderToken: string | null;
601
+ changeNotificationCursor: string | null;
602
+ lastSyncedAt: Date | null;
603
+ };
604
+ currentVersion: ({
605
+ specification: {
606
+ name: string;
607
+ identifier: string;
608
+ oid: bigint;
609
+ id: string;
610
+ createdAt: Date;
611
+ key: string;
612
+ slateOid: bigint;
613
+ hash: string;
614
+ protocolVersion: string;
615
+ providerInfo: PrismaJson.SlateProviderInfo;
616
+ configSchema: PrismaJson.SlateConfigSchema;
617
+ authMethods: PrismaJson.SlateAuthMethods;
618
+ actions: PrismaJson.SlateActions;
619
+ mostRecentVersionOid: bigint;
620
+ } | null;
621
+ } & {
622
+ oid: bigint;
623
+ id: string;
624
+ createdAt: Date;
625
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
626
+ slateOid: bigint;
627
+ registryOid: bigint;
628
+ updatedAt: Date;
629
+ isCurrent: boolean;
630
+ willBeCurrent: boolean;
631
+ version: string;
632
+ versionIdOnRegistry: string;
633
+ versionIdentifierOnRegistry: string;
634
+ manifest: PrismaJson.SlateJson;
635
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
636
+ activeDeploymentOid: bigint | null;
637
+ specificationOid: bigint | null;
638
+ lastDiscoveredAt: Date | null;
639
+ }) | null;
640
+ } & {
641
+ name: string;
642
+ identifier: string;
643
+ oid: bigint;
644
+ id: string;
645
+ createdAt: Date;
646
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
647
+ description: string | null;
648
+ registryOid: bigint;
649
+ currentVersionOid: bigint | null;
650
+ slateScopeIdentifierOnRegistry: string;
651
+ slateScopeIdOnRegistry: string;
652
+ slateFullIdentifierOnRegistry: string;
653
+ slateIdentifierOnRegistry: string;
654
+ slateIdOnRegistry: string;
655
+ updatedAt: Date;
656
+ };
657
+ }>;
658
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
659
+ tenantId: string;
660
+ slateId: string;
661
+ slateVersionId: string;
662
+ }>, {
663
+ object: string;
664
+ id: string;
665
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
666
+ version: string;
667
+ isCurrent: boolean;
668
+ slateId: string;
669
+ manifest: PrismaJson.SlateJson;
670
+ specification: {
671
+ object: string;
672
+ id: string;
673
+ versionId: string;
674
+ specificationId: string;
675
+ identifier: string;
676
+ createdAt: Date;
677
+ } | null;
678
+ createdAt: Date;
679
+ }, {
680
+ tenant: {} & {
681
+ name: string;
682
+ identifier: string;
683
+ oid: bigint;
684
+ id: string;
685
+ createdAt: Date;
686
+ };
687
+ slate: {
688
+ registry: {
689
+ name: string;
690
+ identifier: string;
691
+ url: string;
692
+ oid: bigint;
693
+ id: string;
694
+ createdAt: Date;
695
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
696
+ tenantOid: bigint | null;
697
+ isPredefined: boolean;
698
+ encryptedReaderToken: string | null;
699
+ changeNotificationCursor: string | null;
700
+ lastSyncedAt: Date | null;
701
+ };
702
+ currentVersion: ({
703
+ specification: {
704
+ name: string;
705
+ identifier: string;
706
+ oid: bigint;
707
+ id: string;
708
+ createdAt: Date;
709
+ key: string;
710
+ slateOid: bigint;
711
+ hash: string;
712
+ protocolVersion: string;
713
+ providerInfo: PrismaJson.SlateProviderInfo;
714
+ configSchema: PrismaJson.SlateConfigSchema;
715
+ authMethods: PrismaJson.SlateAuthMethods;
716
+ actions: PrismaJson.SlateActions;
717
+ mostRecentVersionOid: bigint;
718
+ } | null;
719
+ } & {
720
+ oid: bigint;
721
+ id: string;
722
+ createdAt: Date;
723
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
724
+ slateOid: bigint;
725
+ registryOid: bigint;
726
+ updatedAt: Date;
727
+ isCurrent: boolean;
728
+ willBeCurrent: boolean;
729
+ version: string;
730
+ versionIdOnRegistry: string;
731
+ versionIdentifierOnRegistry: string;
732
+ manifest: PrismaJson.SlateJson;
733
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
734
+ activeDeploymentOid: bigint | null;
735
+ specificationOid: bigint | null;
736
+ lastDiscoveredAt: Date | null;
737
+ }) | null;
738
+ } & {
739
+ name: string;
740
+ identifier: string;
741
+ oid: bigint;
742
+ id: string;
743
+ createdAt: Date;
744
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
745
+ description: string | null;
746
+ registryOid: bigint;
747
+ currentVersionOid: bigint | null;
748
+ slateScopeIdentifierOnRegistry: string;
749
+ slateScopeIdOnRegistry: string;
750
+ slateFullIdentifierOnRegistry: string;
751
+ slateIdentifierOnRegistry: string;
752
+ slateIdOnRegistry: string;
753
+ updatedAt: Date;
754
+ };
755
+ slateVersion: {
756
+ slate: {
757
+ registry: {
758
+ name: string;
759
+ identifier: string;
760
+ url: string;
761
+ oid: bigint;
762
+ id: string;
763
+ createdAt: Date;
764
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
765
+ tenantOid: bigint | null;
766
+ isPredefined: boolean;
767
+ encryptedReaderToken: string | null;
768
+ changeNotificationCursor: string | null;
769
+ lastSyncedAt: Date | null;
770
+ };
771
+ } & {
772
+ name: string;
773
+ identifier: string;
774
+ oid: bigint;
775
+ id: string;
776
+ createdAt: Date;
777
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
778
+ description: string | null;
779
+ registryOid: bigint;
780
+ currentVersionOid: bigint | null;
781
+ slateScopeIdentifierOnRegistry: string;
782
+ slateScopeIdOnRegistry: string;
783
+ slateFullIdentifierOnRegistry: string;
784
+ slateIdentifierOnRegistry: string;
785
+ slateIdOnRegistry: string;
786
+ updatedAt: Date;
787
+ };
788
+ specification: {
789
+ name: string;
790
+ identifier: string;
791
+ oid: bigint;
792
+ id: string;
793
+ createdAt: Date;
794
+ key: string;
795
+ slateOid: bigint;
796
+ hash: string;
797
+ protocolVersion: string;
798
+ providerInfo: PrismaJson.SlateProviderInfo;
799
+ configSchema: PrismaJson.SlateConfigSchema;
800
+ authMethods: PrismaJson.SlateAuthMethods;
801
+ actions: PrismaJson.SlateActions;
802
+ mostRecentVersionOid: bigint;
803
+ } | null;
804
+ } & {
805
+ oid: bigint;
806
+ id: string;
807
+ createdAt: Date;
808
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
809
+ slateOid: bigint;
810
+ registryOid: bigint;
811
+ updatedAt: Date;
812
+ isCurrent: boolean;
813
+ willBeCurrent: boolean;
814
+ version: string;
815
+ versionIdOnRegistry: string;
816
+ versionIdentifierOnRegistry: string;
817
+ manifest: PrismaJson.SlateJson;
818
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
819
+ activeDeploymentOid: bigint | null;
820
+ specificationOid: bigint | null;
821
+ lastDiscoveredAt: Date | null;
822
+ };
823
+ }>;
824
+ getRegistryRecord: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
825
+ tenantId: string;
826
+ slateId: string;
827
+ slateVersionId: string;
828
+ }>, {
829
+ object: string;
830
+ id: string;
831
+ version: string;
832
+ isCurrent: boolean;
833
+ slateId: string;
834
+ manifest: {
835
+ name: string;
836
+ version: string;
837
+ description?: string | undefined;
838
+ };
839
+ documents: {
840
+ object: string;
841
+ id: string;
842
+ versionId: string;
843
+ path: string;
844
+ content: string;
845
+ createdAt: string;
846
+ }[];
847
+ createdByUser: {
848
+ object: string;
849
+ id: string;
850
+ status: import("@metorial-services/slates-registry-client").UserStatus;
851
+ identifier: string;
852
+ name: string;
853
+ scope: {
854
+ object: string;
855
+ id: string;
856
+ type: import("@metorial-services/slates-registry-client").ScopeType;
857
+ status: import("@metorial-services/slates-registry-client").ScopeStatus;
858
+ tenantId: string;
859
+ identifier: string;
860
+ name: string;
861
+ description: string | null;
862
+ links: {
863
+ url: string;
864
+ label: string;
865
+ id: string;
866
+ }[];
867
+ createdAt: string;
868
+ updatedAt: string;
869
+ };
870
+ tenantId: string;
871
+ createdAt: string;
872
+ updatedAt: string;
873
+ };
874
+ createdAt: string;
875
+ }, {
876
+ tenant: {} & {
877
+ name: string;
878
+ identifier: string;
879
+ oid: bigint;
880
+ id: string;
881
+ createdAt: Date;
882
+ };
883
+ slate: {
884
+ registry: {
885
+ name: string;
886
+ identifier: string;
887
+ url: string;
888
+ oid: bigint;
889
+ id: string;
890
+ createdAt: Date;
891
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
892
+ tenantOid: bigint | null;
893
+ isPredefined: boolean;
894
+ encryptedReaderToken: string | null;
895
+ changeNotificationCursor: string | null;
896
+ lastSyncedAt: Date | null;
897
+ };
898
+ currentVersion: ({
899
+ specification: {
900
+ name: string;
901
+ identifier: string;
902
+ oid: bigint;
903
+ id: string;
904
+ createdAt: Date;
905
+ key: string;
906
+ slateOid: bigint;
907
+ hash: string;
908
+ protocolVersion: string;
909
+ providerInfo: PrismaJson.SlateProviderInfo;
910
+ configSchema: PrismaJson.SlateConfigSchema;
911
+ authMethods: PrismaJson.SlateAuthMethods;
912
+ actions: PrismaJson.SlateActions;
913
+ mostRecentVersionOid: bigint;
914
+ } | null;
915
+ } & {
916
+ oid: bigint;
917
+ id: string;
918
+ createdAt: Date;
919
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
920
+ slateOid: bigint;
921
+ registryOid: bigint;
922
+ updatedAt: Date;
923
+ isCurrent: boolean;
924
+ willBeCurrent: boolean;
925
+ version: string;
926
+ versionIdOnRegistry: string;
927
+ versionIdentifierOnRegistry: string;
928
+ manifest: PrismaJson.SlateJson;
929
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
930
+ activeDeploymentOid: bigint | null;
931
+ specificationOid: bigint | null;
932
+ lastDiscoveredAt: Date | null;
933
+ }) | null;
934
+ } & {
935
+ name: string;
936
+ identifier: string;
937
+ oid: bigint;
938
+ id: string;
939
+ createdAt: Date;
940
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
941
+ description: string | null;
942
+ registryOid: bigint;
943
+ currentVersionOid: bigint | null;
944
+ slateScopeIdentifierOnRegistry: string;
945
+ slateScopeIdOnRegistry: string;
946
+ slateFullIdentifierOnRegistry: string;
947
+ slateIdentifierOnRegistry: string;
948
+ slateIdOnRegistry: string;
949
+ updatedAt: Date;
950
+ };
951
+ slateVersion: {
952
+ slate: {
953
+ registry: {
954
+ name: string;
955
+ identifier: string;
956
+ url: string;
957
+ oid: bigint;
958
+ id: string;
959
+ createdAt: Date;
960
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
961
+ tenantOid: bigint | null;
962
+ isPredefined: boolean;
963
+ encryptedReaderToken: string | null;
964
+ changeNotificationCursor: string | null;
965
+ lastSyncedAt: Date | null;
966
+ };
967
+ } & {
968
+ name: string;
969
+ identifier: string;
970
+ oid: bigint;
971
+ id: string;
972
+ createdAt: Date;
973
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
974
+ description: string | null;
975
+ registryOid: bigint;
976
+ currentVersionOid: bigint | null;
977
+ slateScopeIdentifierOnRegistry: string;
978
+ slateScopeIdOnRegistry: string;
979
+ slateFullIdentifierOnRegistry: string;
980
+ slateIdentifierOnRegistry: string;
981
+ slateIdOnRegistry: string;
982
+ updatedAt: Date;
983
+ };
984
+ specification: {
985
+ name: string;
986
+ identifier: string;
987
+ oid: bigint;
988
+ id: string;
989
+ createdAt: Date;
990
+ key: string;
991
+ slateOid: bigint;
992
+ hash: string;
993
+ protocolVersion: string;
994
+ providerInfo: PrismaJson.SlateProviderInfo;
995
+ configSchema: PrismaJson.SlateConfigSchema;
996
+ authMethods: PrismaJson.SlateAuthMethods;
997
+ actions: PrismaJson.SlateActions;
998
+ mostRecentVersionOid: bigint;
999
+ } | null;
1000
+ } & {
1001
+ oid: bigint;
1002
+ id: string;
1003
+ createdAt: Date;
1004
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1005
+ slateOid: bigint;
1006
+ registryOid: bigint;
1007
+ updatedAt: Date;
1008
+ isCurrent: boolean;
1009
+ willBeCurrent: boolean;
1010
+ version: string;
1011
+ versionIdOnRegistry: string;
1012
+ versionIdentifierOnRegistry: string;
1013
+ manifest: PrismaJson.SlateJson;
1014
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1015
+ activeDeploymentOid: bigint | null;
1016
+ specificationOid: bigint | null;
1017
+ lastDiscoveredAt: Date | null;
1018
+ };
1019
+ }>;
1020
+ };
1021
+ slateInvocation: {
1022
+ DANGEROUSLY_get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1023
+ slateInvocationId: string;
1024
+ }>, {
1025
+ slateDeploymentId: string;
1026
+ slateVersionId: string;
1027
+ object: string;
1028
+ id: string;
1029
+ status: "succeeded" | "processing_result" | "invocation_failed" | "message_failed";
1030
+ requests: import("../../../apps/hub/src/lib/invocation/types").SlatesRequest[];
1031
+ responses: import("../../../apps/hub/src/lib/invocation/types").SlatesResponse[];
1032
+ error: unknown;
1033
+ logs: {
1034
+ timestamp: number;
1035
+ message: string;
1036
+ }[];
1037
+ provider: {
1038
+ id: string;
1039
+ status: import("@metorial-services/function-bay-client").FunctionInvocationStatus;
1040
+ billedTimeMs: number;
1041
+ computeTimeMs: number;
1042
+ } | null;
1043
+ createdAt: Date;
1044
+ }, {
1045
+ slateInvocation: {
1046
+ deployment: {
1047
+ slateVersion: {
1048
+ oid: bigint;
1049
+ id: string;
1050
+ createdAt: Date;
1051
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1052
+ slateOid: bigint;
1053
+ registryOid: bigint;
1054
+ updatedAt: Date;
1055
+ isCurrent: boolean;
1056
+ willBeCurrent: boolean;
1057
+ version: string;
1058
+ versionIdOnRegistry: string;
1059
+ versionIdentifierOnRegistry: string;
1060
+ manifest: PrismaJson.SlateJson;
1061
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1062
+ activeDeploymentOid: bigint | null;
1063
+ specificationOid: bigint | null;
1064
+ lastDiscoveredAt: Date | null;
1065
+ };
1066
+ } & {
1067
+ oid: bigint;
1068
+ id: string;
1069
+ createdAt: Date;
1070
+ status: import("../../../apps/hub/prisma/generated/enums").SlateDeploymentStatus;
1071
+ slateOid: bigint;
1072
+ slateVersionOid: bigint;
1073
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1074
+ errorCode: string | null;
1075
+ errorMessage: string | null;
1076
+ providerOid: bigint;
1077
+ };
1078
+ } & {
1079
+ oid: bigint;
1080
+ id: string;
1081
+ createdAt: Date;
1082
+ isPending: boolean;
1083
+ hasResponseError: boolean;
1084
+ hasInvocationError: boolean;
1085
+ providerInvocationId: string;
1086
+ deploymentOid: bigint;
1087
+ bucketOid: number;
1088
+ };
1089
+ }>;
1090
+ };
1091
+ slateDeployment: {
1092
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
1093
+ tenantId: string;
1094
+ slateId: string;
1095
+ versionIds: string[] | undefined;
1096
+ }, "versionIds">> & {
1097
+ tenantId: string;
1098
+ slateId: string;
1099
+ } & {
1100
+ limit?: number;
1101
+ after?: string;
1102
+ before?: string;
1103
+ cursor?: string;
1104
+ order?: "asc" | "desc";
1105
+ }, {
1106
+ __typename: string;
1107
+ items: {
1108
+ object: string;
1109
+ id: string;
1110
+ status: import("../../../apps/hub/prisma/generated/enums").SlateDeploymentStatus;
1111
+ error: {
1112
+ code: string;
1113
+ message: string;
1114
+ } | null;
1115
+ version: {
1116
+ object: string;
1117
+ id: string;
1118
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1119
+ version: string;
1120
+ isCurrent: boolean;
1121
+ slateId: string;
1122
+ manifest: PrismaJson.SlateJson;
1123
+ specification: {
1124
+ object: string;
1125
+ id: string;
1126
+ versionId: string;
1127
+ specificationId: string;
1128
+ identifier: string;
1129
+ createdAt: Date;
1130
+ } | null;
1131
+ createdAt: Date;
1132
+ };
1133
+ createdAt: Date;
1134
+ }[];
1135
+ pagination: {
1136
+ has_more_after: boolean;
1137
+ has_more_before: boolean;
1138
+ };
1139
+ }, {
1140
+ tenant: {} & {
1141
+ name: string;
1142
+ identifier: string;
1143
+ oid: bigint;
1144
+ id: string;
1145
+ createdAt: Date;
1146
+ };
1147
+ slate: {
1148
+ registry: {
1149
+ name: string;
1150
+ identifier: string;
1151
+ url: string;
1152
+ oid: bigint;
1153
+ id: string;
1154
+ createdAt: Date;
1155
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1156
+ tenantOid: bigint | null;
1157
+ isPredefined: boolean;
1158
+ encryptedReaderToken: string | null;
1159
+ changeNotificationCursor: string | null;
1160
+ lastSyncedAt: Date | null;
1161
+ };
1162
+ currentVersion: ({
1163
+ specification: {
1164
+ name: string;
1165
+ identifier: string;
1166
+ oid: bigint;
1167
+ id: string;
1168
+ createdAt: Date;
1169
+ key: string;
1170
+ slateOid: bigint;
1171
+ hash: string;
1172
+ protocolVersion: string;
1173
+ providerInfo: PrismaJson.SlateProviderInfo;
1174
+ configSchema: PrismaJson.SlateConfigSchema;
1175
+ authMethods: PrismaJson.SlateAuthMethods;
1176
+ actions: PrismaJson.SlateActions;
1177
+ mostRecentVersionOid: bigint;
1178
+ } | null;
1179
+ } & {
1180
+ oid: bigint;
1181
+ id: string;
1182
+ createdAt: Date;
1183
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1184
+ slateOid: bigint;
1185
+ registryOid: bigint;
1186
+ updatedAt: Date;
1187
+ isCurrent: boolean;
1188
+ willBeCurrent: boolean;
1189
+ version: string;
1190
+ versionIdOnRegistry: string;
1191
+ versionIdentifierOnRegistry: string;
1192
+ manifest: PrismaJson.SlateJson;
1193
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1194
+ activeDeploymentOid: bigint | null;
1195
+ specificationOid: bigint | null;
1196
+ lastDiscoveredAt: Date | null;
1197
+ }) | null;
1198
+ } & {
1199
+ name: string;
1200
+ identifier: string;
1201
+ oid: bigint;
1202
+ id: string;
1203
+ createdAt: Date;
1204
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1205
+ description: string | null;
1206
+ registryOid: bigint;
1207
+ currentVersionOid: bigint | null;
1208
+ slateScopeIdentifierOnRegistry: string;
1209
+ slateScopeIdOnRegistry: string;
1210
+ slateFullIdentifierOnRegistry: string;
1211
+ slateIdentifierOnRegistry: string;
1212
+ slateIdOnRegistry: string;
1213
+ updatedAt: Date;
1214
+ };
1215
+ }>;
1216
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1217
+ tenantId: string;
1218
+ slateId: string;
1219
+ slateDeploymentId: string;
1220
+ }>, {
1221
+ object: string;
1222
+ id: string;
1223
+ status: import("../../../apps/hub/prisma/generated/enums").SlateDeploymentStatus;
1224
+ error: {
1225
+ code: string;
1226
+ message: string;
1227
+ } | null;
1228
+ version: {
1229
+ object: string;
1230
+ id: string;
1231
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1232
+ version: string;
1233
+ isCurrent: boolean;
1234
+ slateId: string;
1235
+ manifest: PrismaJson.SlateJson;
1236
+ specification: {
1237
+ object: string;
1238
+ id: string;
1239
+ versionId: string;
1240
+ specificationId: string;
1241
+ identifier: string;
1242
+ createdAt: Date;
1243
+ } | null;
1244
+ createdAt: Date;
1245
+ };
1246
+ createdAt: Date;
1247
+ }, {
1248
+ tenant: {} & {
1249
+ name: string;
1250
+ identifier: string;
1251
+ oid: bigint;
1252
+ id: string;
1253
+ createdAt: Date;
1254
+ };
1255
+ slate: {
1256
+ registry: {
1257
+ name: string;
1258
+ identifier: string;
1259
+ url: string;
1260
+ oid: bigint;
1261
+ id: string;
1262
+ createdAt: Date;
1263
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1264
+ tenantOid: bigint | null;
1265
+ isPredefined: boolean;
1266
+ encryptedReaderToken: string | null;
1267
+ changeNotificationCursor: string | null;
1268
+ lastSyncedAt: Date | null;
1269
+ };
1270
+ currentVersion: ({
1271
+ specification: {
1272
+ name: string;
1273
+ identifier: string;
1274
+ oid: bigint;
1275
+ id: string;
1276
+ createdAt: Date;
1277
+ key: string;
1278
+ slateOid: bigint;
1279
+ hash: string;
1280
+ protocolVersion: string;
1281
+ providerInfo: PrismaJson.SlateProviderInfo;
1282
+ configSchema: PrismaJson.SlateConfigSchema;
1283
+ authMethods: PrismaJson.SlateAuthMethods;
1284
+ actions: PrismaJson.SlateActions;
1285
+ mostRecentVersionOid: bigint;
1286
+ } | null;
1287
+ } & {
1288
+ oid: bigint;
1289
+ id: string;
1290
+ createdAt: Date;
1291
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1292
+ slateOid: bigint;
1293
+ registryOid: bigint;
1294
+ updatedAt: Date;
1295
+ isCurrent: boolean;
1296
+ willBeCurrent: boolean;
1297
+ version: string;
1298
+ versionIdOnRegistry: string;
1299
+ versionIdentifierOnRegistry: string;
1300
+ manifest: PrismaJson.SlateJson;
1301
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1302
+ activeDeploymentOid: bigint | null;
1303
+ specificationOid: bigint | null;
1304
+ lastDiscoveredAt: Date | null;
1305
+ }) | null;
1306
+ } & {
1307
+ name: string;
1308
+ identifier: string;
1309
+ oid: bigint;
1310
+ id: string;
1311
+ createdAt: Date;
1312
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1313
+ description: string | null;
1314
+ registryOid: bigint;
1315
+ currentVersionOid: bigint | null;
1316
+ slateScopeIdentifierOnRegistry: string;
1317
+ slateScopeIdOnRegistry: string;
1318
+ slateFullIdentifierOnRegistry: string;
1319
+ slateIdentifierOnRegistry: string;
1320
+ slateIdOnRegistry: string;
1321
+ updatedAt: Date;
1322
+ };
1323
+ slateDeployment: {
1324
+ slate: {
1325
+ registry: {
1326
+ name: string;
1327
+ identifier: string;
1328
+ url: string;
1329
+ oid: bigint;
1330
+ id: string;
1331
+ createdAt: Date;
1332
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1333
+ tenantOid: bigint | null;
1334
+ isPredefined: boolean;
1335
+ encryptedReaderToken: string | null;
1336
+ changeNotificationCursor: string | null;
1337
+ lastSyncedAt: Date | null;
1338
+ };
1339
+ } & {
1340
+ name: string;
1341
+ identifier: string;
1342
+ oid: bigint;
1343
+ id: string;
1344
+ createdAt: Date;
1345
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1346
+ description: string | null;
1347
+ registryOid: bigint;
1348
+ currentVersionOid: bigint | null;
1349
+ slateScopeIdentifierOnRegistry: string;
1350
+ slateScopeIdOnRegistry: string;
1351
+ slateFullIdentifierOnRegistry: string;
1352
+ slateIdentifierOnRegistry: string;
1353
+ slateIdOnRegistry: string;
1354
+ updatedAt: Date;
1355
+ };
1356
+ slateVersion: {
1357
+ specification: {
1358
+ name: string;
1359
+ identifier: string;
1360
+ oid: bigint;
1361
+ id: string;
1362
+ createdAt: Date;
1363
+ key: string;
1364
+ slateOid: bigint;
1365
+ hash: string;
1366
+ protocolVersion: string;
1367
+ providerInfo: PrismaJson.SlateProviderInfo;
1368
+ configSchema: PrismaJson.SlateConfigSchema;
1369
+ authMethods: PrismaJson.SlateAuthMethods;
1370
+ actions: PrismaJson.SlateActions;
1371
+ mostRecentVersionOid: bigint;
1372
+ } | null;
1373
+ } & {
1374
+ oid: bigint;
1375
+ id: string;
1376
+ createdAt: Date;
1377
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1378
+ slateOid: bigint;
1379
+ registryOid: bigint;
1380
+ updatedAt: Date;
1381
+ isCurrent: boolean;
1382
+ willBeCurrent: boolean;
1383
+ version: string;
1384
+ versionIdOnRegistry: string;
1385
+ versionIdentifierOnRegistry: string;
1386
+ manifest: PrismaJson.SlateJson;
1387
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1388
+ activeDeploymentOid: bigint | null;
1389
+ specificationOid: bigint | null;
1390
+ lastDiscoveredAt: Date | null;
1391
+ };
1392
+ } & {
1393
+ oid: bigint;
1394
+ id: string;
1395
+ createdAt: Date;
1396
+ status: import("../../../apps/hub/prisma/generated/enums").SlateDeploymentStatus;
1397
+ slateOid: bigint;
1398
+ slateVersionOid: bigint;
1399
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1400
+ errorCode: string | null;
1401
+ errorMessage: string | null;
1402
+ providerOid: bigint;
1403
+ };
1404
+ }>;
1405
+ getBuildOutput: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1406
+ tenantId: string;
1407
+ slateId: string;
1408
+ slateDeploymentId: string;
1409
+ }>, {
1410
+ object: string;
1411
+ id: string;
1412
+ status: import("@metorial-services/function-bay-client").FunctionDeploymentStepStatus;
1413
+ name: string;
1414
+ logs: {
1415
+ timestamp: number;
1416
+ message: string;
1417
+ }[];
1418
+ type: "deploy" | "build";
1419
+ createdAt: Date;
1420
+ startedAt: Date | null;
1421
+ endedAt: Date | null;
1422
+ }[], {
1423
+ tenant: {} & {
1424
+ name: string;
1425
+ identifier: string;
1426
+ oid: bigint;
1427
+ id: string;
1428
+ createdAt: Date;
1429
+ };
1430
+ slate: {
1431
+ registry: {
1432
+ name: string;
1433
+ identifier: string;
1434
+ url: string;
1435
+ oid: bigint;
1436
+ id: string;
1437
+ createdAt: Date;
1438
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1439
+ tenantOid: bigint | null;
1440
+ isPredefined: boolean;
1441
+ encryptedReaderToken: string | null;
1442
+ changeNotificationCursor: string | null;
1443
+ lastSyncedAt: Date | null;
1444
+ };
1445
+ currentVersion: ({
1446
+ specification: {
1447
+ name: string;
1448
+ identifier: string;
1449
+ oid: bigint;
1450
+ id: string;
1451
+ createdAt: Date;
1452
+ key: string;
1453
+ slateOid: bigint;
1454
+ hash: string;
1455
+ protocolVersion: string;
1456
+ providerInfo: PrismaJson.SlateProviderInfo;
1457
+ configSchema: PrismaJson.SlateConfigSchema;
1458
+ authMethods: PrismaJson.SlateAuthMethods;
1459
+ actions: PrismaJson.SlateActions;
1460
+ mostRecentVersionOid: bigint;
1461
+ } | null;
1462
+ } & {
1463
+ oid: bigint;
1464
+ id: string;
1465
+ createdAt: Date;
1466
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1467
+ slateOid: bigint;
1468
+ registryOid: bigint;
1469
+ updatedAt: Date;
1470
+ isCurrent: boolean;
1471
+ willBeCurrent: boolean;
1472
+ version: string;
1473
+ versionIdOnRegistry: string;
1474
+ versionIdentifierOnRegistry: string;
1475
+ manifest: PrismaJson.SlateJson;
1476
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1477
+ activeDeploymentOid: bigint | null;
1478
+ specificationOid: bigint | null;
1479
+ lastDiscoveredAt: Date | null;
1480
+ }) | null;
1481
+ } & {
1482
+ name: string;
1483
+ identifier: string;
1484
+ oid: bigint;
1485
+ id: string;
1486
+ createdAt: Date;
1487
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1488
+ description: string | null;
1489
+ registryOid: bigint;
1490
+ currentVersionOid: bigint | null;
1491
+ slateScopeIdentifierOnRegistry: string;
1492
+ slateScopeIdOnRegistry: string;
1493
+ slateFullIdentifierOnRegistry: string;
1494
+ slateIdentifierOnRegistry: string;
1495
+ slateIdOnRegistry: string;
1496
+ updatedAt: Date;
1497
+ };
1498
+ slateDeployment: {
1499
+ slate: {
1500
+ registry: {
1501
+ name: string;
1502
+ identifier: string;
1503
+ url: string;
1504
+ oid: bigint;
1505
+ id: string;
1506
+ createdAt: Date;
1507
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1508
+ tenantOid: bigint | null;
1509
+ isPredefined: boolean;
1510
+ encryptedReaderToken: string | null;
1511
+ changeNotificationCursor: string | null;
1512
+ lastSyncedAt: Date | null;
1513
+ };
1514
+ } & {
1515
+ name: string;
1516
+ identifier: string;
1517
+ oid: bigint;
1518
+ id: string;
1519
+ createdAt: Date;
1520
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1521
+ description: string | null;
1522
+ registryOid: bigint;
1523
+ currentVersionOid: bigint | null;
1524
+ slateScopeIdentifierOnRegistry: string;
1525
+ slateScopeIdOnRegistry: string;
1526
+ slateFullIdentifierOnRegistry: string;
1527
+ slateIdentifierOnRegistry: string;
1528
+ slateIdOnRegistry: string;
1529
+ updatedAt: Date;
1530
+ };
1531
+ slateVersion: {
1532
+ specification: {
1533
+ name: string;
1534
+ identifier: string;
1535
+ oid: bigint;
1536
+ id: string;
1537
+ createdAt: Date;
1538
+ key: string;
1539
+ slateOid: bigint;
1540
+ hash: string;
1541
+ protocolVersion: string;
1542
+ providerInfo: PrismaJson.SlateProviderInfo;
1543
+ configSchema: PrismaJson.SlateConfigSchema;
1544
+ authMethods: PrismaJson.SlateAuthMethods;
1545
+ actions: PrismaJson.SlateActions;
1546
+ mostRecentVersionOid: bigint;
1547
+ } | null;
1548
+ } & {
1549
+ oid: bigint;
1550
+ id: string;
1551
+ createdAt: Date;
1552
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1553
+ slateOid: bigint;
1554
+ registryOid: bigint;
1555
+ updatedAt: Date;
1556
+ isCurrent: boolean;
1557
+ willBeCurrent: boolean;
1558
+ version: string;
1559
+ versionIdOnRegistry: string;
1560
+ versionIdentifierOnRegistry: string;
1561
+ manifest: PrismaJson.SlateJson;
1562
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1563
+ activeDeploymentOid: bigint | null;
1564
+ specificationOid: bigint | null;
1565
+ lastDiscoveredAt: Date | null;
1566
+ };
1567
+ } & {
1568
+ oid: bigint;
1569
+ id: string;
1570
+ createdAt: Date;
1571
+ status: import("../../../apps/hub/prisma/generated/enums").SlateDeploymentStatus;
1572
+ slateOid: bigint;
1573
+ slateVersionOid: bigint;
1574
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1575
+ errorCode: string | null;
1576
+ errorMessage: string | null;
1577
+ providerOid: bigint;
1578
+ };
1579
+ }>;
1580
+ };
1581
+ slateSpecification: {
1582
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
1583
+ tenantId: string;
1584
+ slateId: string;
1585
+ versionIds: string[] | undefined;
1586
+ }, "versionIds">> & {
1587
+ tenantId: string;
1588
+ slateId: string;
1589
+ } & {
1590
+ limit?: number;
1591
+ after?: string;
1592
+ before?: string;
1593
+ cursor?: string;
1594
+ order?: "asc" | "desc";
1595
+ }, {
1596
+ __typename: string;
1597
+ items: {
1598
+ object: string;
1599
+ id: string;
1600
+ slateId: string;
1601
+ identifier: string;
1602
+ name: string;
1603
+ key: string;
1604
+ providerInfo: {
1605
+ type: "provider";
1606
+ id: string;
1607
+ name: string;
1608
+ description?: string | undefined;
1609
+ metadata?: Record<string, any> | undefined;
1610
+ };
1611
+ configSchema: any;
1612
+ authMethods: {
1613
+ object: string;
1614
+ id: string;
1615
+ slateId: string;
1616
+ identifier: string;
1617
+ name: string;
1618
+ key: string;
1619
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
1620
+ capabilities: {
1621
+ getDefaultInput?: {
1622
+ enabled: boolean;
1623
+ } | undefined;
1624
+ handleChangedInput?: {
1625
+ enabled: boolean;
1626
+ } | undefined;
1627
+ handleTokenRefresh?: {
1628
+ enabled: boolean;
1629
+ } | undefined;
1630
+ getProfile?: {
1631
+ enabled: boolean;
1632
+ } | undefined;
1633
+ };
1634
+ inputSchema: Record<string, any>;
1635
+ outputSchema: Record<string, any>;
1636
+ scopes: {
1637
+ id: string;
1638
+ title: string;
1639
+ description?: string | undefined;
1640
+ }[] | undefined;
1641
+ createdAt: Date;
1642
+ }[];
1643
+ actions: {
1644
+ object: string;
1645
+ id: string;
1646
+ slateId: string;
1647
+ identifier: string;
1648
+ name: string;
1649
+ key: string;
1650
+ type: import("../../../apps/hub/prisma/generated/enums").SlateActionType;
1651
+ capabilities: Record<string, never>;
1652
+ inputSchema: Record<string, any>;
1653
+ outputSchema: Record<string, any>;
1654
+ constraints: string[] | undefined;
1655
+ description: string | undefined;
1656
+ instructions: string[] | undefined;
1657
+ metadata: Record<string, any> | undefined;
1658
+ tags: {
1659
+ destructive?: boolean | undefined;
1660
+ readOnly?: boolean | undefined;
1661
+ } | {
1662
+ destructive?: boolean | undefined;
1663
+ readOnly?: boolean | undefined;
1664
+ } | undefined;
1665
+ createdAt: Date;
1666
+ }[];
1667
+ createdAt: Date;
1668
+ }[];
1669
+ pagination: {
1670
+ has_more_after: boolean;
1671
+ has_more_before: boolean;
1672
+ };
1673
+ }, {
1674
+ tenant: {} & {
1675
+ name: string;
1676
+ identifier: string;
1677
+ oid: bigint;
1678
+ id: string;
1679
+ createdAt: Date;
1680
+ };
1681
+ slate: {
1682
+ registry: {
1683
+ name: string;
1684
+ identifier: string;
1685
+ url: string;
1686
+ oid: bigint;
1687
+ id: string;
1688
+ createdAt: Date;
1689
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1690
+ tenantOid: bigint | null;
1691
+ isPredefined: boolean;
1692
+ encryptedReaderToken: string | null;
1693
+ changeNotificationCursor: string | null;
1694
+ lastSyncedAt: Date | null;
1695
+ };
1696
+ currentVersion: ({
1697
+ specification: {
1698
+ name: string;
1699
+ identifier: string;
1700
+ oid: bigint;
1701
+ id: string;
1702
+ createdAt: Date;
1703
+ key: string;
1704
+ slateOid: bigint;
1705
+ hash: string;
1706
+ protocolVersion: string;
1707
+ providerInfo: PrismaJson.SlateProviderInfo;
1708
+ configSchema: PrismaJson.SlateConfigSchema;
1709
+ authMethods: PrismaJson.SlateAuthMethods;
1710
+ actions: PrismaJson.SlateActions;
1711
+ mostRecentVersionOid: bigint;
1712
+ } | null;
1713
+ } & {
1714
+ oid: bigint;
1715
+ id: string;
1716
+ createdAt: Date;
1717
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1718
+ slateOid: bigint;
1719
+ registryOid: bigint;
1720
+ updatedAt: Date;
1721
+ isCurrent: boolean;
1722
+ willBeCurrent: boolean;
1723
+ version: string;
1724
+ versionIdOnRegistry: string;
1725
+ versionIdentifierOnRegistry: string;
1726
+ manifest: PrismaJson.SlateJson;
1727
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1728
+ activeDeploymentOid: bigint | null;
1729
+ specificationOid: bigint | null;
1730
+ lastDiscoveredAt: Date | null;
1731
+ }) | null;
1732
+ } & {
1733
+ name: string;
1734
+ identifier: string;
1735
+ oid: bigint;
1736
+ id: string;
1737
+ createdAt: Date;
1738
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1739
+ description: string | null;
1740
+ registryOid: bigint;
1741
+ currentVersionOid: bigint | null;
1742
+ slateScopeIdentifierOnRegistry: string;
1743
+ slateScopeIdOnRegistry: string;
1744
+ slateFullIdentifierOnRegistry: string;
1745
+ slateIdentifierOnRegistry: string;
1746
+ slateIdOnRegistry: string;
1747
+ updatedAt: Date;
1748
+ };
1749
+ }>;
1750
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1751
+ tenantId: string;
1752
+ slateId: string;
1753
+ slateSpecificationId: string;
1754
+ }>, {
1755
+ object: string;
1756
+ id: string;
1757
+ slateId: string;
1758
+ identifier: string;
1759
+ name: string;
1760
+ key: string;
1761
+ providerInfo: {
1762
+ type: "provider";
1763
+ id: string;
1764
+ name: string;
1765
+ description?: string | undefined;
1766
+ metadata?: Record<string, any> | undefined;
1767
+ };
1768
+ configSchema: any;
1769
+ authMethods: {
1770
+ object: string;
1771
+ id: string;
1772
+ slateId: string;
1773
+ identifier: string;
1774
+ name: string;
1775
+ key: string;
1776
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
1777
+ capabilities: {
1778
+ getDefaultInput?: {
1779
+ enabled: boolean;
1780
+ } | undefined;
1781
+ handleChangedInput?: {
1782
+ enabled: boolean;
1783
+ } | undefined;
1784
+ handleTokenRefresh?: {
1785
+ enabled: boolean;
1786
+ } | undefined;
1787
+ getProfile?: {
1788
+ enabled: boolean;
1789
+ } | undefined;
1790
+ };
1791
+ inputSchema: Record<string, any>;
1792
+ outputSchema: Record<string, any>;
1793
+ scopes: {
1794
+ id: string;
1795
+ title: string;
1796
+ description?: string | undefined;
1797
+ }[] | undefined;
1798
+ createdAt: Date;
1799
+ }[];
1800
+ actions: {
1801
+ object: string;
1802
+ id: string;
1803
+ slateId: string;
1804
+ identifier: string;
1805
+ name: string;
1806
+ key: string;
1807
+ type: import("../../../apps/hub/prisma/generated/enums").SlateActionType;
1808
+ capabilities: Record<string, never>;
1809
+ inputSchema: Record<string, any>;
1810
+ outputSchema: Record<string, any>;
1811
+ constraints: string[] | undefined;
1812
+ description: string | undefined;
1813
+ instructions: string[] | undefined;
1814
+ metadata: Record<string, any> | undefined;
1815
+ tags: {
1816
+ destructive?: boolean | undefined;
1817
+ readOnly?: boolean | undefined;
1818
+ } | {
1819
+ destructive?: boolean | undefined;
1820
+ readOnly?: boolean | undefined;
1821
+ } | undefined;
1822
+ createdAt: Date;
1823
+ }[];
1824
+ createdAt: Date;
1825
+ }, {
1826
+ tenant: {} & {
1827
+ name: string;
1828
+ identifier: string;
1829
+ oid: bigint;
1830
+ id: string;
1831
+ createdAt: Date;
1832
+ };
1833
+ slate: {
1834
+ registry: {
1835
+ name: string;
1836
+ identifier: string;
1837
+ url: string;
1838
+ oid: bigint;
1839
+ id: string;
1840
+ createdAt: Date;
1841
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
1842
+ tenantOid: bigint | null;
1843
+ isPredefined: boolean;
1844
+ encryptedReaderToken: string | null;
1845
+ changeNotificationCursor: string | null;
1846
+ lastSyncedAt: Date | null;
1847
+ };
1848
+ currentVersion: ({
1849
+ specification: {
1850
+ name: string;
1851
+ identifier: string;
1852
+ oid: bigint;
1853
+ id: string;
1854
+ createdAt: Date;
1855
+ key: string;
1856
+ slateOid: bigint;
1857
+ hash: string;
1858
+ protocolVersion: string;
1859
+ providerInfo: PrismaJson.SlateProviderInfo;
1860
+ configSchema: PrismaJson.SlateConfigSchema;
1861
+ authMethods: PrismaJson.SlateAuthMethods;
1862
+ actions: PrismaJson.SlateActions;
1863
+ mostRecentVersionOid: bigint;
1864
+ } | null;
1865
+ } & {
1866
+ oid: bigint;
1867
+ id: string;
1868
+ createdAt: Date;
1869
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1870
+ slateOid: bigint;
1871
+ registryOid: bigint;
1872
+ updatedAt: Date;
1873
+ isCurrent: boolean;
1874
+ willBeCurrent: boolean;
1875
+ version: string;
1876
+ versionIdOnRegistry: string;
1877
+ versionIdentifierOnRegistry: string;
1878
+ manifest: PrismaJson.SlateJson;
1879
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1880
+ activeDeploymentOid: bigint | null;
1881
+ specificationOid: bigint | null;
1882
+ lastDiscoveredAt: Date | null;
1883
+ }) | null;
1884
+ } & {
1885
+ name: string;
1886
+ identifier: string;
1887
+ oid: bigint;
1888
+ id: string;
1889
+ createdAt: Date;
1890
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1891
+ description: string | null;
1892
+ registryOid: bigint;
1893
+ currentVersionOid: bigint | null;
1894
+ slateScopeIdentifierOnRegistry: string;
1895
+ slateScopeIdOnRegistry: string;
1896
+ slateFullIdentifierOnRegistry: string;
1897
+ slateIdentifierOnRegistry: string;
1898
+ slateIdOnRegistry: string;
1899
+ updatedAt: Date;
1900
+ };
1901
+ slateSpecification: {
1902
+ slate: {
1903
+ name: string;
1904
+ identifier: string;
1905
+ oid: bigint;
1906
+ id: string;
1907
+ createdAt: Date;
1908
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
1909
+ description: string | null;
1910
+ registryOid: bigint;
1911
+ currentVersionOid: bigint | null;
1912
+ slateScopeIdentifierOnRegistry: string;
1913
+ slateScopeIdOnRegistry: string;
1914
+ slateFullIdentifierOnRegistry: string;
1915
+ slateIdentifierOnRegistry: string;
1916
+ slateIdOnRegistry: string;
1917
+ updatedAt: Date;
1918
+ };
1919
+ slateAuthMethods: ({
1920
+ authMethod: {
1921
+ name: string;
1922
+ identifier: string;
1923
+ oid: bigint;
1924
+ id: string;
1925
+ createdAt: Date;
1926
+ key: string;
1927
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
1928
+ slateOid: bigint;
1929
+ hash: string;
1930
+ spec: PrismaJson.SlateAuthMethod;
1931
+ mostRecentSpecificationOid: bigint;
1932
+ };
1933
+ } & {
1934
+ oid: bigint;
1935
+ createdAt: Date;
1936
+ specificationOid: bigint;
1937
+ authMethodOid: bigint;
1938
+ })[];
1939
+ slateActions: ({
1940
+ action: {
1941
+ name: string;
1942
+ identifier: string;
1943
+ oid: bigint;
1944
+ id: string;
1945
+ createdAt: Date;
1946
+ key: string;
1947
+ type: import("../../../apps/hub/prisma/generated/enums").SlateActionType;
1948
+ slateOid: bigint;
1949
+ hash: string;
1950
+ spec: PrismaJson.SlateAction;
1951
+ mostRecentSpecificationOid: bigint;
1952
+ };
1953
+ } & {
1954
+ oid: bigint;
1955
+ createdAt: Date;
1956
+ specificationOid: bigint;
1957
+ actionOid: bigint;
1958
+ })[];
1959
+ } & {
1960
+ name: string;
1961
+ identifier: string;
1962
+ oid: bigint;
1963
+ id: string;
1964
+ createdAt: Date;
1965
+ key: string;
1966
+ slateOid: bigint;
1967
+ hash: string;
1968
+ protocolVersion: string;
1969
+ providerInfo: PrismaJson.SlateProviderInfo;
1970
+ configSchema: PrismaJson.SlateConfigSchema;
1971
+ authMethods: PrismaJson.SlateAuthMethods;
1972
+ actions: PrismaJson.SlateActions;
1973
+ mostRecentVersionOid: bigint;
1974
+ };
1975
+ }>;
1976
+ };
1977
+ slateInstance: {
1978
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
1979
+ tenantId: string;
1980
+ slateIds: string[] | undefined;
1981
+ }, "slateIds">> & {
1982
+ tenantId: string;
1983
+ } & {
1984
+ limit?: number;
1985
+ after?: string;
1986
+ before?: string;
1987
+ cursor?: string;
1988
+ order?: "asc" | "desc";
1989
+ }, {
1990
+ __typename: string;
1991
+ items: {
1992
+ object: string;
1993
+ id: string;
1994
+ slateId: string;
1995
+ lockedSlateVersionId: string | null;
1996
+ config: PrismaJson.AnyRecord;
1997
+ error: {
1998
+ code: string;
1999
+ message: string;
2000
+ } | null;
2001
+ createdAt: Date;
2002
+ updatedAt: Date;
2003
+ }[];
2004
+ pagination: {
2005
+ has_more_after: boolean;
2006
+ has_more_before: boolean;
2007
+ };
2008
+ }, {
2009
+ tenant: {} & {
2010
+ name: string;
2011
+ identifier: string;
2012
+ oid: bigint;
2013
+ id: string;
2014
+ createdAt: Date;
2015
+ };
2016
+ }>;
2017
+ create: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2018
+ tenantId: string;
2019
+ slateId: string;
2020
+ config: Record<string, any>;
2021
+ lockedVersionId: string | undefined;
2022
+ }, "lockedVersionId">> & {
2023
+ tenantId: string;
2024
+ slateId: string;
2025
+ config: Record<string, any>;
2026
+ } & {
2027
+ limit?: number;
2028
+ after?: string;
2029
+ before?: string;
2030
+ cursor?: string;
2031
+ order?: "asc" | "desc";
2032
+ }, {
2033
+ object: string;
2034
+ id: string;
2035
+ slateId: string;
2036
+ lockedSlateVersionId: string | null;
2037
+ config: PrismaJson.AnyRecord;
2038
+ error: {
2039
+ code: string;
2040
+ message: string;
2041
+ } | null;
2042
+ createdAt: Date;
2043
+ updatedAt: Date;
2044
+ }, {
2045
+ tenant: {} & {
2046
+ name: string;
2047
+ identifier: string;
2048
+ oid: bigint;
2049
+ id: string;
2050
+ createdAt: Date;
2051
+ };
2052
+ }>;
2053
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2054
+ tenantId: string;
2055
+ slateInstanceId: string;
2056
+ }>, {
2057
+ object: string;
2058
+ id: string;
2059
+ slateId: string;
2060
+ lockedSlateVersionId: string | null;
2061
+ config: PrismaJson.AnyRecord;
2062
+ error: {
2063
+ code: string;
2064
+ message: string;
2065
+ } | null;
2066
+ createdAt: Date;
2067
+ updatedAt: Date;
2068
+ }, {
2069
+ tenant: {} & {
2070
+ name: string;
2071
+ identifier: string;
2072
+ oid: bigint;
2073
+ id: string;
2074
+ createdAt: Date;
2075
+ };
2076
+ slateInstance: {
2077
+ slate: {
2078
+ name: string;
2079
+ identifier: string;
2080
+ oid: bigint;
2081
+ id: string;
2082
+ createdAt: Date;
2083
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
2084
+ description: string | null;
2085
+ registryOid: bigint;
2086
+ currentVersionOid: bigint | null;
2087
+ slateScopeIdentifierOnRegistry: string;
2088
+ slateScopeIdOnRegistry: string;
2089
+ slateFullIdentifierOnRegistry: string;
2090
+ slateIdentifierOnRegistry: string;
2091
+ slateIdOnRegistry: string;
2092
+ updatedAt: Date;
2093
+ };
2094
+ lockedSlateVersion: {
2095
+ oid: bigint;
2096
+ id: string;
2097
+ createdAt: Date;
2098
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
2099
+ slateOid: bigint;
2100
+ registryOid: bigint;
2101
+ updatedAt: Date;
2102
+ isCurrent: boolean;
2103
+ willBeCurrent: boolean;
2104
+ version: string;
2105
+ versionIdOnRegistry: string;
2106
+ versionIdentifierOnRegistry: string;
2107
+ manifest: PrismaJson.SlateJson;
2108
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2109
+ activeDeploymentOid: bigint | null;
2110
+ specificationOid: bigint | null;
2111
+ lastDiscoveredAt: Date | null;
2112
+ } | null;
2113
+ currentConfig: ({
2114
+ schema: {
2115
+ identifier: string;
2116
+ oid: bigint;
2117
+ id: string;
2118
+ createdAt: Date;
2119
+ slateOid: bigint;
2120
+ hash: string;
2121
+ mostRecentSpecificationOid: bigint;
2122
+ schema: PrismaJson.SlateConfigSchema;
2123
+ };
2124
+ } & {
2125
+ value: PrismaJson.AnyRecord;
2126
+ oid: bigint;
2127
+ id: string;
2128
+ createdAt: Date;
2129
+ tenantOid: bigint;
2130
+ errorCode: string | null;
2131
+ errorMessage: string | null;
2132
+ instanceOid: bigint;
2133
+ schemaOid: bigint;
2134
+ }) | null;
2135
+ } & {
2136
+ oid: bigint;
2137
+ id: string;
2138
+ createdAt: Date;
2139
+ tenantOid: bigint;
2140
+ slateOid: bigint;
2141
+ updatedAt: Date;
2142
+ lockedSlateVersionOid: bigint | null;
2143
+ currentConfigOid: bigint | null;
2144
+ defaultAuthConfigOid: bigint | null;
2145
+ };
2146
+ }>;
2147
+ };
2148
+ slateOAuthCredentials: {
2149
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2150
+ tenantId: string;
2151
+ slateIds: string[] | undefined;
2152
+ }, "slateIds">> & {
2153
+ tenantId: string;
2154
+ } & {
2155
+ limit?: number;
2156
+ after?: string;
2157
+ before?: string;
2158
+ cursor?: string;
2159
+ order?: "asc" | "desc";
2160
+ }, {
2161
+ __typename: string;
2162
+ items: {
2163
+ object: string;
2164
+ id: string;
2165
+ slateId: string;
2166
+ clientId: string;
2167
+ scopes: string[];
2168
+ createdAt: Date;
2169
+ updatedAt: Date;
2170
+ }[];
2171
+ pagination: {
2172
+ has_more_after: boolean;
2173
+ has_more_before: boolean;
2174
+ };
2175
+ }, {
2176
+ tenant: {} & {
2177
+ name: string;
2178
+ identifier: string;
2179
+ oid: bigint;
2180
+ id: string;
2181
+ createdAt: Date;
2182
+ };
2183
+ }>;
2184
+ create: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2185
+ tenantId: string;
2186
+ slateId: string;
2187
+ clientId: string;
2188
+ clientSecret: string;
2189
+ scopes: string[];
2190
+ }, never>> & {
2191
+ tenantId: string;
2192
+ slateId: string;
2193
+ scopes: string[];
2194
+ clientId: string;
2195
+ clientSecret: string;
2196
+ } & {
2197
+ limit?: number;
2198
+ after?: string;
2199
+ before?: string;
2200
+ cursor?: string;
2201
+ order?: "asc" | "desc";
2202
+ }, {
2203
+ object: string;
2204
+ id: string;
2205
+ slateId: string;
2206
+ clientId: string;
2207
+ scopes: string[];
2208
+ createdAt: Date;
2209
+ updatedAt: Date;
2210
+ }, {
2211
+ tenant: {} & {
2212
+ name: string;
2213
+ identifier: string;
2214
+ oid: bigint;
2215
+ id: string;
2216
+ createdAt: Date;
2217
+ };
2218
+ }>;
2219
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2220
+ tenantId: string;
2221
+ slateOAuthCredentialsId: string;
2222
+ }>, {
2223
+ object: string;
2224
+ id: string;
2225
+ slateId: string;
2226
+ clientId: string;
2227
+ scopes: string[];
2228
+ createdAt: Date;
2229
+ updatedAt: Date;
2230
+ }, {
2231
+ tenant: {} & {
2232
+ name: string;
2233
+ identifier: string;
2234
+ oid: bigint;
2235
+ id: string;
2236
+ createdAt: Date;
2237
+ };
2238
+ slateOAuthCredentials: {
2239
+ slate: {
2240
+ name: string;
2241
+ identifier: string;
2242
+ oid: bigint;
2243
+ id: string;
2244
+ createdAt: Date;
2245
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
2246
+ description: string | null;
2247
+ registryOid: bigint;
2248
+ currentVersionOid: bigint | null;
2249
+ slateScopeIdentifierOnRegistry: string;
2250
+ slateScopeIdOnRegistry: string;
2251
+ slateFullIdentifierOnRegistry: string;
2252
+ slateIdentifierOnRegistry: string;
2253
+ slateIdOnRegistry: string;
2254
+ updatedAt: Date;
2255
+ };
2256
+ } & {
2257
+ oid: bigint;
2258
+ id: string;
2259
+ createdAt: Date;
2260
+ tenantOid: bigint;
2261
+ slateOid: bigint;
2262
+ updatedAt: Date;
2263
+ scopes: string[];
2264
+ clientId: string;
2265
+ secretOid: bigint;
2266
+ };
2267
+ }>;
2268
+ };
2269
+ slateOAuthSetup: {
2270
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2271
+ tenantId: string;
2272
+ slateIds: string[] | undefined;
2273
+ }, "slateIds">> & {
2274
+ tenantId: string;
2275
+ } & {
2276
+ limit?: number;
2277
+ after?: string;
2278
+ before?: string;
2279
+ cursor?: string;
2280
+ order?: "asc" | "desc";
2281
+ }, {
2282
+ __typename: string;
2283
+ items: {
2284
+ object: string;
2285
+ id: string;
2286
+ slateId: string;
2287
+ status: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupStatus;
2288
+ redirectUrl: string;
2289
+ url: string | null;
2290
+ error: {
2291
+ code: string;
2292
+ message: string;
2293
+ } | null;
2294
+ credentials: {
2295
+ object: string;
2296
+ id: string;
2297
+ slateId: string;
2298
+ clientId: string;
2299
+ scopes: string[];
2300
+ createdAt: Date;
2301
+ updatedAt: Date;
2302
+ };
2303
+ authConfig: {
2304
+ object: string;
2305
+ id: string;
2306
+ slateId: string;
2307
+ status: "active" | "failed" | "processing";
2308
+ error: {
2309
+ code: string;
2310
+ message: string;
2311
+ } | null;
2312
+ profile: {
2313
+ id: string | null;
2314
+ email: string | null;
2315
+ name: string | null;
2316
+ data: PrismaJson.AuthProfile;
2317
+ } | null;
2318
+ authMethod: {
2319
+ object: string;
2320
+ id: string;
2321
+ slateId: string;
2322
+ identifier: string;
2323
+ name: string;
2324
+ key: string;
2325
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2326
+ capabilities: {
2327
+ getDefaultInput?: {
2328
+ enabled: boolean;
2329
+ } | undefined;
2330
+ handleChangedInput?: {
2331
+ enabled: boolean;
2332
+ } | undefined;
2333
+ handleTokenRefresh?: {
2334
+ enabled: boolean;
2335
+ } | undefined;
2336
+ getProfile?: {
2337
+ enabled: boolean;
2338
+ } | undefined;
2339
+ };
2340
+ inputSchema: Record<string, any>;
2341
+ outputSchema: Record<string, any>;
2342
+ scopes: {
2343
+ id: string;
2344
+ title: string;
2345
+ description?: string | undefined;
2346
+ }[] | undefined;
2347
+ createdAt: Date;
2348
+ };
2349
+ oauthCredentials: {
2350
+ object: string;
2351
+ id: string;
2352
+ slateId: string;
2353
+ clientId: string;
2354
+ scopes: string[];
2355
+ createdAt: Date;
2356
+ updatedAt: Date;
2357
+ } | null;
2358
+ tokenExpiresAt: Date | null;
2359
+ createdAt: Date;
2360
+ updatedAt: Date;
2361
+ } | null;
2362
+ createdAt: Date;
2363
+ updatedAt: Date;
2364
+ }[];
2365
+ pagination: {
2366
+ has_more_after: boolean;
2367
+ has_more_before: boolean;
2368
+ };
2369
+ }, {
2370
+ tenant: {} & {
2371
+ name: string;
2372
+ identifier: string;
2373
+ oid: bigint;
2374
+ id: string;
2375
+ createdAt: Date;
2376
+ };
2377
+ }>;
2378
+ create: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2379
+ tenantId: string;
2380
+ slateId: string;
2381
+ slateOAuthCredentialsId: string;
2382
+ slateInstanceId: string | undefined;
2383
+ authMethodId: string | undefined;
2384
+ redirectUrl: string;
2385
+ input: Record<string, any>;
2386
+ }, "slateInstanceId" | "authMethodId">> & {
2387
+ tenantId: string;
2388
+ slateId: string;
2389
+ input: Record<string, any>;
2390
+ slateOAuthCredentialsId: string;
2391
+ redirectUrl: string;
2392
+ } & {
2393
+ limit?: number;
2394
+ after?: string;
2395
+ before?: string;
2396
+ cursor?: string;
2397
+ order?: "asc" | "desc";
2398
+ }, {
2399
+ object: string;
2400
+ id: string;
2401
+ slateId: string;
2402
+ status: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupStatus;
2403
+ redirectUrl: string;
2404
+ url: string | null;
2405
+ error: {
2406
+ code: string;
2407
+ message: string;
2408
+ } | null;
2409
+ credentials: {
2410
+ object: string;
2411
+ id: string;
2412
+ slateId: string;
2413
+ clientId: string;
2414
+ scopes: string[];
2415
+ createdAt: Date;
2416
+ updatedAt: Date;
2417
+ };
2418
+ authConfig: {
2419
+ object: string;
2420
+ id: string;
2421
+ slateId: string;
2422
+ status: "active" | "failed" | "processing";
2423
+ error: {
2424
+ code: string;
2425
+ message: string;
2426
+ } | null;
2427
+ profile: {
2428
+ id: string | null;
2429
+ email: string | null;
2430
+ name: string | null;
2431
+ data: PrismaJson.AuthProfile;
2432
+ } | null;
2433
+ authMethod: {
2434
+ object: string;
2435
+ id: string;
2436
+ slateId: string;
2437
+ identifier: string;
2438
+ name: string;
2439
+ key: string;
2440
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2441
+ capabilities: {
2442
+ getDefaultInput?: {
2443
+ enabled: boolean;
2444
+ } | undefined;
2445
+ handleChangedInput?: {
2446
+ enabled: boolean;
2447
+ } | undefined;
2448
+ handleTokenRefresh?: {
2449
+ enabled: boolean;
2450
+ } | undefined;
2451
+ getProfile?: {
2452
+ enabled: boolean;
2453
+ } | undefined;
2454
+ };
2455
+ inputSchema: Record<string, any>;
2456
+ outputSchema: Record<string, any>;
2457
+ scopes: {
2458
+ id: string;
2459
+ title: string;
2460
+ description?: string | undefined;
2461
+ }[] | undefined;
2462
+ createdAt: Date;
2463
+ };
2464
+ oauthCredentials: {
2465
+ object: string;
2466
+ id: string;
2467
+ slateId: string;
2468
+ clientId: string;
2469
+ scopes: string[];
2470
+ createdAt: Date;
2471
+ updatedAt: Date;
2472
+ } | null;
2473
+ tokenExpiresAt: Date | null;
2474
+ createdAt: Date;
2475
+ updatedAt: Date;
2476
+ } | null;
2477
+ createdAt: Date;
2478
+ updatedAt: Date;
2479
+ }, {
2480
+ tenant: {} & {
2481
+ name: string;
2482
+ identifier: string;
2483
+ oid: bigint;
2484
+ id: string;
2485
+ createdAt: Date;
2486
+ };
2487
+ }>;
2488
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2489
+ tenantId: string;
2490
+ slateOAuthSetupId: string;
2491
+ }>, {
2492
+ object: string;
2493
+ id: string;
2494
+ slateId: string;
2495
+ status: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupStatus;
2496
+ redirectUrl: string;
2497
+ url: string | null;
2498
+ error: {
2499
+ code: string;
2500
+ message: string;
2501
+ } | null;
2502
+ credentials: {
2503
+ object: string;
2504
+ id: string;
2505
+ slateId: string;
2506
+ clientId: string;
2507
+ scopes: string[];
2508
+ createdAt: Date;
2509
+ updatedAt: Date;
2510
+ };
2511
+ authConfig: {
2512
+ object: string;
2513
+ id: string;
2514
+ slateId: string;
2515
+ status: "active" | "failed" | "processing";
2516
+ error: {
2517
+ code: string;
2518
+ message: string;
2519
+ } | null;
2520
+ profile: {
2521
+ id: string | null;
2522
+ email: string | null;
2523
+ name: string | null;
2524
+ data: PrismaJson.AuthProfile;
2525
+ } | null;
2526
+ authMethod: {
2527
+ object: string;
2528
+ id: string;
2529
+ slateId: string;
2530
+ identifier: string;
2531
+ name: string;
2532
+ key: string;
2533
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2534
+ capabilities: {
2535
+ getDefaultInput?: {
2536
+ enabled: boolean;
2537
+ } | undefined;
2538
+ handleChangedInput?: {
2539
+ enabled: boolean;
2540
+ } | undefined;
2541
+ handleTokenRefresh?: {
2542
+ enabled: boolean;
2543
+ } | undefined;
2544
+ getProfile?: {
2545
+ enabled: boolean;
2546
+ } | undefined;
2547
+ };
2548
+ inputSchema: Record<string, any>;
2549
+ outputSchema: Record<string, any>;
2550
+ scopes: {
2551
+ id: string;
2552
+ title: string;
2553
+ description?: string | undefined;
2554
+ }[] | undefined;
2555
+ createdAt: Date;
2556
+ };
2557
+ oauthCredentials: {
2558
+ object: string;
2559
+ id: string;
2560
+ slateId: string;
2561
+ clientId: string;
2562
+ scopes: string[];
2563
+ createdAt: Date;
2564
+ updatedAt: Date;
2565
+ } | null;
2566
+ tokenExpiresAt: Date | null;
2567
+ createdAt: Date;
2568
+ updatedAt: Date;
2569
+ } | null;
2570
+ createdAt: Date;
2571
+ updatedAt: Date;
2572
+ }, {
2573
+ tenant: {} & {
2574
+ name: string;
2575
+ identifier: string;
2576
+ oid: bigint;
2577
+ id: string;
2578
+ createdAt: Date;
2579
+ };
2580
+ slateOAuthSetup: {
2581
+ slate: {
2582
+ name: string;
2583
+ identifier: string;
2584
+ oid: bigint;
2585
+ id: string;
2586
+ createdAt: Date;
2587
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
2588
+ description: string | null;
2589
+ registryOid: bigint;
2590
+ currentVersionOid: bigint | null;
2591
+ slateScopeIdentifierOnRegistry: string;
2592
+ slateScopeIdOnRegistry: string;
2593
+ slateFullIdentifierOnRegistry: string;
2594
+ slateIdentifierOnRegistry: string;
2595
+ slateIdOnRegistry: string;
2596
+ updatedAt: Date;
2597
+ };
2598
+ slateAuthConfig: ({
2599
+ authMethod: {
2600
+ name: string;
2601
+ identifier: string;
2602
+ oid: bigint;
2603
+ id: string;
2604
+ createdAt: Date;
2605
+ key: string;
2606
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2607
+ slateOid: bigint;
2608
+ hash: string;
2609
+ spec: PrismaJson.SlateAuthMethod;
2610
+ mostRecentSpecificationOid: bigint;
2611
+ };
2612
+ } & {
2613
+ oid: bigint;
2614
+ id: string;
2615
+ createdAt: Date;
2616
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthConfigType;
2617
+ tenantOid: bigint;
2618
+ slateOid: bigint;
2619
+ updatedAt: Date;
2620
+ errorCode: string | null;
2621
+ errorMessage: string | null;
2622
+ authMethodOid: bigint;
2623
+ instanceOid: bigint | null;
2624
+ secretOid: bigint;
2625
+ oauthCredentialsOid: bigint | null;
2626
+ isProcessing: boolean;
2627
+ tokenExpiresAt: Date | null;
2628
+ profile: PrismaJson.AuthProfile | null;
2629
+ profileUid: string | null;
2630
+ profileEmail: string | null;
2631
+ profileName: string | null;
2632
+ }) | null;
2633
+ oauthCredentials: {
2634
+ oid: bigint;
2635
+ id: string;
2636
+ createdAt: Date;
2637
+ tenantOid: bigint;
2638
+ slateOid: bigint;
2639
+ updatedAt: Date;
2640
+ scopes: string[];
2641
+ clientId: string;
2642
+ secretOid: bigint;
2643
+ };
2644
+ } & {
2645
+ oid: bigint;
2646
+ id: string;
2647
+ createdAt: Date;
2648
+ status: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupStatus;
2649
+ tenantOid: bigint;
2650
+ slateOid: bigint;
2651
+ slateVersionOid: bigint;
2652
+ updatedAt: Date;
2653
+ errorCode: string | null;
2654
+ errorMessage: string | null;
2655
+ authMethodOid: bigint;
2656
+ secretOid: bigint;
2657
+ redirectUrl: string;
2658
+ oauthCredentialsOid: bigint;
2659
+ slateInstanceOid: bigint | null;
2660
+ slateAuthConfigOid: bigint | null;
2661
+ };
2662
+ }>;
2663
+ getLogs: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2664
+ tenantId: string;
2665
+ slateOAuthSetupId: string;
2666
+ }>, {
2667
+ object: string;
2668
+ id: string;
2669
+ slateId: string;
2670
+ error: {
2671
+ code: string;
2672
+ message: string;
2673
+ } | null;
2674
+ events: {
2675
+ object: string;
2676
+ id: string;
2677
+ type: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupEventType;
2678
+ invocation: {
2679
+ object: string;
2680
+ id: string;
2681
+ status: "succeeded" | "processing_result" | "invocation_failed" | "message_failed";
2682
+ requests: import("../../../apps/hub/src/lib/invocation/types").SlatesRequest[];
2683
+ responses: import("../../../apps/hub/src/lib/invocation/types").SlatesResponse[];
2684
+ error: unknown;
2685
+ logs: {
2686
+ timestamp: number;
2687
+ message: string;
2688
+ }[];
2689
+ provider: {
2690
+ id: string;
2691
+ status: import("@metorial-services/function-bay-client").FunctionInvocationStatus;
2692
+ billedTimeMs: number;
2693
+ computeTimeMs: number;
2694
+ } | null;
2695
+ createdAt: Date;
2696
+ } | null;
2697
+ createdAt: Date;
2698
+ }[];
2699
+ }, {
2700
+ tenant: {} & {
2701
+ name: string;
2702
+ identifier: string;
2703
+ oid: bigint;
2704
+ id: string;
2705
+ createdAt: Date;
2706
+ };
2707
+ slateOAuthSetup: {
2708
+ slate: {
2709
+ name: string;
2710
+ identifier: string;
2711
+ oid: bigint;
2712
+ id: string;
2713
+ createdAt: Date;
2714
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
2715
+ description: string | null;
2716
+ registryOid: bigint;
2717
+ currentVersionOid: bigint | null;
2718
+ slateScopeIdentifierOnRegistry: string;
2719
+ slateScopeIdOnRegistry: string;
2720
+ slateFullIdentifierOnRegistry: string;
2721
+ slateIdentifierOnRegistry: string;
2722
+ slateIdOnRegistry: string;
2723
+ updatedAt: Date;
2724
+ };
2725
+ slateAuthConfig: ({
2726
+ authMethod: {
2727
+ name: string;
2728
+ identifier: string;
2729
+ oid: bigint;
2730
+ id: string;
2731
+ createdAt: Date;
2732
+ key: string;
2733
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2734
+ slateOid: bigint;
2735
+ hash: string;
2736
+ spec: PrismaJson.SlateAuthMethod;
2737
+ mostRecentSpecificationOid: bigint;
2738
+ };
2739
+ } & {
2740
+ oid: bigint;
2741
+ id: string;
2742
+ createdAt: Date;
2743
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthConfigType;
2744
+ tenantOid: bigint;
2745
+ slateOid: bigint;
2746
+ updatedAt: Date;
2747
+ errorCode: string | null;
2748
+ errorMessage: string | null;
2749
+ authMethodOid: bigint;
2750
+ instanceOid: bigint | null;
2751
+ secretOid: bigint;
2752
+ oauthCredentialsOid: bigint | null;
2753
+ isProcessing: boolean;
2754
+ tokenExpiresAt: Date | null;
2755
+ profile: PrismaJson.AuthProfile | null;
2756
+ profileUid: string | null;
2757
+ profileEmail: string | null;
2758
+ profileName: string | null;
2759
+ }) | null;
2760
+ oauthCredentials: {
2761
+ oid: bigint;
2762
+ id: string;
2763
+ createdAt: Date;
2764
+ tenantOid: bigint;
2765
+ slateOid: bigint;
2766
+ updatedAt: Date;
2767
+ scopes: string[];
2768
+ clientId: string;
2769
+ secretOid: bigint;
2770
+ };
2771
+ } & {
2772
+ oid: bigint;
2773
+ id: string;
2774
+ createdAt: Date;
2775
+ status: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupStatus;
2776
+ tenantOid: bigint;
2777
+ slateOid: bigint;
2778
+ slateVersionOid: bigint;
2779
+ updatedAt: Date;
2780
+ errorCode: string | null;
2781
+ errorMessage: string | null;
2782
+ authMethodOid: bigint;
2783
+ secretOid: bigint;
2784
+ redirectUrl: string;
2785
+ oauthCredentialsOid: bigint;
2786
+ slateInstanceOid: bigint | null;
2787
+ slateAuthConfigOid: bigint | null;
2788
+ };
2789
+ }>;
2790
+ };
2791
+ slateAuthConfig: {
2792
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2793
+ tenantId: string;
2794
+ slateIds: string[] | undefined;
2795
+ }, "slateIds">> & {
2796
+ tenantId: string;
2797
+ } & {
2798
+ limit?: number;
2799
+ after?: string;
2800
+ before?: string;
2801
+ cursor?: string;
2802
+ order?: "asc" | "desc";
2803
+ }, {
2804
+ __typename: string;
2805
+ items: {
2806
+ object: string;
2807
+ id: string;
2808
+ slateId: string;
2809
+ status: "active" | "failed" | "processing";
2810
+ error: {
2811
+ code: string;
2812
+ message: string;
2813
+ } | null;
2814
+ profile: {
2815
+ id: string | null;
2816
+ email: string | null;
2817
+ name: string | null;
2818
+ data: PrismaJson.AuthProfile;
2819
+ } | null;
2820
+ authMethod: {
2821
+ object: string;
2822
+ id: string;
2823
+ slateId: string;
2824
+ identifier: string;
2825
+ name: string;
2826
+ key: string;
2827
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2828
+ capabilities: {
2829
+ getDefaultInput?: {
2830
+ enabled: boolean;
2831
+ } | undefined;
2832
+ handleChangedInput?: {
2833
+ enabled: boolean;
2834
+ } | undefined;
2835
+ handleTokenRefresh?: {
2836
+ enabled: boolean;
2837
+ } | undefined;
2838
+ getProfile?: {
2839
+ enabled: boolean;
2840
+ } | undefined;
2841
+ };
2842
+ inputSchema: Record<string, any>;
2843
+ outputSchema: Record<string, any>;
2844
+ scopes: {
2845
+ id: string;
2846
+ title: string;
2847
+ description?: string | undefined;
2848
+ }[] | undefined;
2849
+ createdAt: Date;
2850
+ };
2851
+ oauthCredentials: {
2852
+ object: string;
2853
+ id: string;
2854
+ slateId: string;
2855
+ clientId: string;
2856
+ scopes: string[];
2857
+ createdAt: Date;
2858
+ updatedAt: Date;
2859
+ } | null;
2860
+ tokenExpiresAt: Date | null;
2861
+ createdAt: Date;
2862
+ updatedAt: Date;
2863
+ }[];
2864
+ pagination: {
2865
+ has_more_after: boolean;
2866
+ has_more_before: boolean;
2867
+ };
2868
+ }, {
2869
+ tenant: {} & {
2870
+ name: string;
2871
+ identifier: string;
2872
+ oid: bigint;
2873
+ id: string;
2874
+ createdAt: Date;
2875
+ };
2876
+ }>;
2877
+ create: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
2878
+ tenantId: string;
2879
+ slateId: string;
2880
+ slateInstanceId: string | undefined;
2881
+ authMethodId: string | undefined;
2882
+ authConfig: Record<string, any>;
2883
+ }, "slateInstanceId" | "authMethodId">> & {
2884
+ tenantId: string;
2885
+ slateId: string;
2886
+ authConfig: Record<string, any>;
2887
+ } & {
2888
+ limit?: number;
2889
+ after?: string;
2890
+ before?: string;
2891
+ cursor?: string;
2892
+ order?: "asc" | "desc";
2893
+ }, {
2894
+ object: string;
2895
+ id: string;
2896
+ slateId: string;
2897
+ status: "active" | "failed" | "processing";
2898
+ error: {
2899
+ code: string;
2900
+ message: string;
2901
+ } | null;
2902
+ profile: {
2903
+ id: string | null;
2904
+ email: string | null;
2905
+ name: string | null;
2906
+ data: PrismaJson.AuthProfile;
2907
+ } | null;
2908
+ authMethod: {
2909
+ object: string;
2910
+ id: string;
2911
+ slateId: string;
2912
+ identifier: string;
2913
+ name: string;
2914
+ key: string;
2915
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2916
+ capabilities: {
2917
+ getDefaultInput?: {
2918
+ enabled: boolean;
2919
+ } | undefined;
2920
+ handleChangedInput?: {
2921
+ enabled: boolean;
2922
+ } | undefined;
2923
+ handleTokenRefresh?: {
2924
+ enabled: boolean;
2925
+ } | undefined;
2926
+ getProfile?: {
2927
+ enabled: boolean;
2928
+ } | undefined;
2929
+ };
2930
+ inputSchema: Record<string, any>;
2931
+ outputSchema: Record<string, any>;
2932
+ scopes: {
2933
+ id: string;
2934
+ title: string;
2935
+ description?: string | undefined;
2936
+ }[] | undefined;
2937
+ createdAt: Date;
2938
+ };
2939
+ oauthCredentials: {
2940
+ object: string;
2941
+ id: string;
2942
+ slateId: string;
2943
+ clientId: string;
2944
+ scopes: string[];
2945
+ createdAt: Date;
2946
+ updatedAt: Date;
2947
+ } | null;
2948
+ tokenExpiresAt: Date | null;
2949
+ createdAt: Date;
2950
+ updatedAt: Date;
2951
+ }, {
2952
+ tenant: {} & {
2953
+ name: string;
2954
+ identifier: string;
2955
+ oid: bigint;
2956
+ id: string;
2957
+ createdAt: Date;
2958
+ };
2959
+ }>;
2960
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2961
+ tenantId: string;
2962
+ slateAuthConfigId: string;
2963
+ }>, {
2964
+ object: string;
2965
+ id: string;
2966
+ slateId: string;
2967
+ status: "active" | "failed" | "processing";
2968
+ error: {
2969
+ code: string;
2970
+ message: string;
2971
+ } | null;
2972
+ profile: {
2973
+ id: string | null;
2974
+ email: string | null;
2975
+ name: string | null;
2976
+ data: PrismaJson.AuthProfile;
2977
+ } | null;
2978
+ authMethod: {
2979
+ object: string;
2980
+ id: string;
2981
+ slateId: string;
2982
+ identifier: string;
2983
+ name: string;
2984
+ key: string;
2985
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2986
+ capabilities: {
2987
+ getDefaultInput?: {
2988
+ enabled: boolean;
2989
+ } | undefined;
2990
+ handleChangedInput?: {
2991
+ enabled: boolean;
2992
+ } | undefined;
2993
+ handleTokenRefresh?: {
2994
+ enabled: boolean;
2995
+ } | undefined;
2996
+ getProfile?: {
2997
+ enabled: boolean;
2998
+ } | undefined;
2999
+ };
3000
+ inputSchema: Record<string, any>;
3001
+ outputSchema: Record<string, any>;
3002
+ scopes: {
3003
+ id: string;
3004
+ title: string;
3005
+ description?: string | undefined;
3006
+ }[] | undefined;
3007
+ createdAt: Date;
3008
+ };
3009
+ oauthCredentials: {
3010
+ object: string;
3011
+ id: string;
3012
+ slateId: string;
3013
+ clientId: string;
3014
+ scopes: string[];
3015
+ createdAt: Date;
3016
+ updatedAt: Date;
3017
+ } | null;
3018
+ tokenExpiresAt: Date | null;
3019
+ createdAt: Date;
3020
+ updatedAt: Date;
3021
+ }, {
3022
+ tenant: {} & {
3023
+ name: string;
3024
+ identifier: string;
3025
+ oid: bigint;
3026
+ id: string;
3027
+ createdAt: Date;
3028
+ };
3029
+ slateAuthConfig: {
3030
+ slate: {
3031
+ name: string;
3032
+ identifier: string;
3033
+ oid: bigint;
3034
+ id: string;
3035
+ createdAt: Date;
3036
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
3037
+ description: string | null;
3038
+ registryOid: bigint;
3039
+ currentVersionOid: bigint | null;
3040
+ slateScopeIdentifierOnRegistry: string;
3041
+ slateScopeIdOnRegistry: string;
3042
+ slateFullIdentifierOnRegistry: string;
3043
+ slateIdentifierOnRegistry: string;
3044
+ slateIdOnRegistry: string;
3045
+ updatedAt: Date;
3046
+ };
3047
+ authMethod: {
3048
+ name: string;
3049
+ identifier: string;
3050
+ oid: bigint;
3051
+ id: string;
3052
+ createdAt: Date;
3053
+ key: string;
3054
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
3055
+ slateOid: bigint;
3056
+ hash: string;
3057
+ spec: PrismaJson.SlateAuthMethod;
3058
+ mostRecentSpecificationOid: bigint;
3059
+ };
3060
+ instance: {
3061
+ oid: bigint;
3062
+ id: string;
3063
+ createdAt: Date;
3064
+ tenantOid: bigint;
3065
+ slateOid: bigint;
3066
+ updatedAt: Date;
3067
+ lockedSlateVersionOid: bigint | null;
3068
+ currentConfigOid: bigint | null;
3069
+ defaultAuthConfigOid: bigint | null;
3070
+ } | null;
3071
+ oauthCredentials: {
3072
+ oid: bigint;
3073
+ id: string;
3074
+ createdAt: Date;
3075
+ tenantOid: bigint;
3076
+ slateOid: bigint;
3077
+ updatedAt: Date;
3078
+ scopes: string[];
3079
+ clientId: string;
3080
+ secretOid: bigint;
3081
+ } | null;
3082
+ } & {
3083
+ oid: bigint;
3084
+ id: string;
3085
+ createdAt: Date;
3086
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthConfigType;
3087
+ tenantOid: bigint;
3088
+ slateOid: bigint;
3089
+ updatedAt: Date;
3090
+ errorCode: string | null;
3091
+ errorMessage: string | null;
3092
+ authMethodOid: bigint;
3093
+ instanceOid: bigint | null;
3094
+ secretOid: bigint;
3095
+ oauthCredentialsOid: bigint | null;
3096
+ isProcessing: boolean;
3097
+ tokenExpiresAt: Date | null;
3098
+ profile: PrismaJson.AuthProfile | null;
3099
+ profileUid: string | null;
3100
+ profileEmail: string | null;
3101
+ profileName: string | null;
3102
+ };
3103
+ }>;
3104
+ };
3105
+ slateSession: {
3106
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
3107
+ tenantId: string;
3108
+ slateIds: string[] | undefined;
3109
+ }, "slateIds">> & {
3110
+ tenantId: string;
3111
+ } & {
3112
+ limit?: number;
3113
+ after?: string;
3114
+ before?: string;
3115
+ cursor?: string;
3116
+ order?: "asc" | "desc";
3117
+ }, {
3118
+ __typename: string;
3119
+ items: {
3120
+ object: string;
3121
+ id: string;
3122
+ slateId: string;
3123
+ slateInstanceId: string;
3124
+ createdAt: Date;
3125
+ lastActiveAt: Date | null;
3126
+ }[];
3127
+ pagination: {
3128
+ has_more_after: boolean;
3129
+ has_more_before: boolean;
3130
+ };
3131
+ }, {
3132
+ tenant: {} & {
3133
+ name: string;
3134
+ identifier: string;
3135
+ oid: bigint;
3136
+ id: string;
3137
+ createdAt: Date;
3138
+ };
3139
+ }>;
3140
+ create: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
3141
+ tenantId: string;
3142
+ slateId: string;
3143
+ slateInstanceId: string;
3144
+ }, never>> & {
3145
+ tenantId: string;
3146
+ slateId: string;
3147
+ slateInstanceId: string;
3148
+ } & {
3149
+ limit?: number;
3150
+ after?: string;
3151
+ before?: string;
3152
+ cursor?: string;
3153
+ order?: "asc" | "desc";
3154
+ }, {
3155
+ object: string;
3156
+ id: string;
3157
+ slateId: string;
3158
+ slateInstanceId: string;
3159
+ createdAt: Date;
3160
+ lastActiveAt: Date | null;
3161
+ }, {
3162
+ tenant: {} & {
3163
+ name: string;
3164
+ identifier: string;
3165
+ oid: bigint;
3166
+ id: string;
3167
+ createdAt: Date;
3168
+ };
3169
+ }>;
3170
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3171
+ tenantId: string;
3172
+ slateSessionId: string;
3173
+ }>, {
3174
+ object: string;
3175
+ id: string;
3176
+ slateId: string;
3177
+ slateInstanceId: string;
3178
+ createdAt: Date;
3179
+ lastActiveAt: Date | null;
3180
+ }, {
3181
+ tenant: {} & {
3182
+ name: string;
3183
+ identifier: string;
3184
+ oid: bigint;
3185
+ id: string;
3186
+ createdAt: Date;
3187
+ };
3188
+ slateSession: {
3189
+ slate: {
3190
+ name: string;
3191
+ identifier: string;
3192
+ oid: bigint;
3193
+ id: string;
3194
+ createdAt: Date;
3195
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
3196
+ description: string | null;
3197
+ registryOid: bigint;
3198
+ currentVersionOid: bigint | null;
3199
+ slateScopeIdentifierOnRegistry: string;
3200
+ slateScopeIdOnRegistry: string;
3201
+ slateFullIdentifierOnRegistry: string;
3202
+ slateIdentifierOnRegistry: string;
3203
+ slateIdOnRegistry: string;
3204
+ updatedAt: Date;
3205
+ };
3206
+ slateInstance: {
3207
+ oid: bigint;
3208
+ id: string;
3209
+ createdAt: Date;
3210
+ tenantOid: bigint;
3211
+ slateOid: bigint;
3212
+ updatedAt: Date;
3213
+ lockedSlateVersionOid: bigint | null;
3214
+ currentConfigOid: bigint | null;
3215
+ defaultAuthConfigOid: bigint | null;
3216
+ };
3217
+ } & {
3218
+ oid: bigint;
3219
+ id: string;
3220
+ createdAt: Date;
3221
+ tenantOid: bigint;
3222
+ slateOid: bigint;
3223
+ slateVersionOid: bigint;
3224
+ slateInstanceOid: bigint;
3225
+ lastActiveAt: Date | null;
3226
+ };
3227
+ }>;
3228
+ };
3229
+ slateSessionToolCall: {
3230
+ list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
3231
+ tenantId: string;
3232
+ slateIds: string[] | undefined;
3233
+ }, "slateIds">> & {
3234
+ tenantId: string;
3235
+ } & {
3236
+ limit?: number;
3237
+ after?: string;
3238
+ before?: string;
3239
+ cursor?: string;
3240
+ order?: "asc" | "desc";
3241
+ }, {
3242
+ __typename: string;
3243
+ items: {
3244
+ object: string;
3245
+ id: string;
3246
+ sessionId: string;
3247
+ slateVersionId: string;
3248
+ action: {
3249
+ object: string;
3250
+ id: string;
3251
+ key: string;
3252
+ name: string;
3253
+ };
3254
+ createdAt: Date;
3255
+ }[];
3256
+ pagination: {
3257
+ has_more_after: boolean;
3258
+ has_more_before: boolean;
3259
+ };
3260
+ }, {
3261
+ tenant: {} & {
3262
+ name: string;
3263
+ identifier: string;
3264
+ oid: bigint;
3265
+ id: string;
3266
+ createdAt: Date;
3267
+ };
3268
+ }>;
3269
+ call: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
3270
+ tenantId: string;
3271
+ sessionId: string;
3272
+ toolId: string;
3273
+ authConfigId: string | undefined;
3274
+ input: Record<string, any>;
3275
+ participants: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3276
+ type: "hub" | "consumer";
3277
+ id: string;
3278
+ name: string;
3279
+ description: string | undefined;
3280
+ metadata: Record<string, any> | undefined;
3281
+ }>[];
3282
+ }, "authConfigId">> & {
3283
+ tenantId: string;
3284
+ input: Record<string, any>;
3285
+ sessionId: string;
3286
+ toolId: string;
3287
+ participants: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3288
+ type: "hub" | "consumer";
3289
+ id: string;
3290
+ name: string;
3291
+ description: string | undefined;
3292
+ metadata: Record<string, any> | undefined;
3293
+ }>[];
3294
+ } & {
3295
+ limit?: number;
3296
+ after?: string;
3297
+ before?: string;
3298
+ cursor?: string;
3299
+ order?: "asc" | "desc";
3300
+ }, {
3301
+ call: undefined;
3302
+ toolCallId: string;
3303
+ status: "error";
3304
+ error: import("../../../apps/hub/src/lib/invocation/types").InvocationError;
3305
+ output?: undefined;
3306
+ message?: undefined;
3307
+ } | {
3308
+ call: undefined;
3309
+ toolCallId: string;
3310
+ status: "success";
3311
+ output: Record<string, any>;
3312
+ message: string | undefined;
3313
+ error?: undefined;
3314
+ }, {}>;
3315
+ get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3316
+ tenantId: string;
3317
+ slateSessionToolCallId: string;
3318
+ }>, {
3319
+ object: string;
3320
+ id: string;
3321
+ sessionId: string;
3322
+ slateVersionId: string;
3323
+ action: {
3324
+ object: string;
3325
+ id: string;
3326
+ key: string;
3327
+ name: string;
3328
+ };
3329
+ createdAt: Date;
3330
+ }, {
3331
+ tenant: {} & {
3332
+ name: string;
3333
+ identifier: string;
3334
+ oid: bigint;
3335
+ id: string;
3336
+ createdAt: Date;
3337
+ };
3338
+ slateSessionToolCall: {
3339
+ slateVersion: {
3340
+ oid: bigint;
3341
+ id: string;
3342
+ createdAt: Date;
3343
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
3344
+ slateOid: bigint;
3345
+ registryOid: bigint;
3346
+ updatedAt: Date;
3347
+ isCurrent: boolean;
3348
+ willBeCurrent: boolean;
3349
+ version: string;
3350
+ versionIdOnRegistry: string;
3351
+ versionIdentifierOnRegistry: string;
3352
+ manifest: PrismaJson.SlateJson;
3353
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
3354
+ activeDeploymentOid: bigint | null;
3355
+ specificationOid: bigint | null;
3356
+ lastDiscoveredAt: Date | null;
3357
+ };
3358
+ invocation: {
3359
+ oid: bigint;
3360
+ id: string;
3361
+ createdAt: Date;
3362
+ isPending: boolean;
3363
+ hasResponseError: boolean;
3364
+ hasInvocationError: boolean;
3365
+ providerInvocationId: string;
3366
+ deploymentOid: bigint;
3367
+ bucketOid: number;
3368
+ };
3369
+ action: {
3370
+ name: string;
3371
+ identifier: string;
3372
+ oid: bigint;
3373
+ id: string;
3374
+ createdAt: Date;
3375
+ key: string;
3376
+ type: import("../../../apps/hub/prisma/generated/enums").SlateActionType;
3377
+ slateOid: bigint;
3378
+ hash: string;
3379
+ spec: PrismaJson.SlateAction;
3380
+ mostRecentSpecificationOid: bigint;
3381
+ };
3382
+ session: {
3383
+ oid: bigint;
3384
+ id: string;
3385
+ createdAt: Date;
3386
+ tenantOid: bigint;
3387
+ slateOid: bigint;
3388
+ slateVersionOid: bigint;
3389
+ slateInstanceOid: bigint;
3390
+ lastActiveAt: Date | null;
3391
+ };
3392
+ } & {
3393
+ oid: bigint;
3394
+ id: string;
3395
+ createdAt: Date;
3396
+ status: import("../../../apps/hub/prisma/generated/enums").SlateSessionToolCallStatus;
3397
+ slateVersionOid: bigint;
3398
+ actionOid: bigint;
3399
+ invocationOid: bigint;
3400
+ sessionOid: bigint;
3401
+ };
3402
+ }>;
3403
+ getLogs: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3404
+ tenantId: string;
3405
+ slateSessionToolCallId: string;
3406
+ }>, {
3407
+ object: string;
3408
+ id: string;
3409
+ sessionId: string;
3410
+ slateVersionId: string;
3411
+ action: {
3412
+ object: string;
3413
+ id: string;
3414
+ key: string;
3415
+ name: string;
3416
+ };
3417
+ invocation: {
3418
+ object: string;
3419
+ id: string;
3420
+ status: "succeeded" | "processing_result" | "invocation_failed" | "message_failed";
3421
+ requests: import("../../../apps/hub/src/lib/invocation/types").SlatesRequest[];
3422
+ responses: import("../../../apps/hub/src/lib/invocation/types").SlatesResponse[];
3423
+ error: unknown;
3424
+ logs: {
3425
+ timestamp: number;
3426
+ message: string;
3427
+ }[];
3428
+ provider: {
3429
+ id: string;
3430
+ status: import("@metorial-services/function-bay-client").FunctionInvocationStatus;
3431
+ billedTimeMs: number;
3432
+ computeTimeMs: number;
3433
+ } | null;
3434
+ createdAt: Date;
3435
+ };
3436
+ createdAt: Date;
3437
+ }, {
3438
+ tenant: {} & {
3439
+ name: string;
3440
+ identifier: string;
3441
+ oid: bigint;
3442
+ id: string;
3443
+ createdAt: Date;
3444
+ };
3445
+ slateSessionToolCall: {
3446
+ slateVersion: {
3447
+ oid: bigint;
3448
+ id: string;
3449
+ createdAt: Date;
3450
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
3451
+ slateOid: bigint;
3452
+ registryOid: bigint;
3453
+ updatedAt: Date;
3454
+ isCurrent: boolean;
3455
+ willBeCurrent: boolean;
3456
+ version: string;
3457
+ versionIdOnRegistry: string;
3458
+ versionIdentifierOnRegistry: string;
3459
+ manifest: PrismaJson.SlateJson;
3460
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
3461
+ activeDeploymentOid: bigint | null;
3462
+ specificationOid: bigint | null;
3463
+ lastDiscoveredAt: Date | null;
3464
+ };
3465
+ invocation: {
3466
+ oid: bigint;
3467
+ id: string;
3468
+ createdAt: Date;
3469
+ isPending: boolean;
3470
+ hasResponseError: boolean;
3471
+ hasInvocationError: boolean;
3472
+ providerInvocationId: string;
3473
+ deploymentOid: bigint;
3474
+ bucketOid: number;
3475
+ };
3476
+ action: {
3477
+ name: string;
3478
+ identifier: string;
3479
+ oid: bigint;
3480
+ id: string;
3481
+ createdAt: Date;
3482
+ key: string;
3483
+ type: import("../../../apps/hub/prisma/generated/enums").SlateActionType;
3484
+ slateOid: bigint;
3485
+ hash: string;
3486
+ spec: PrismaJson.SlateAction;
3487
+ mostRecentSpecificationOid: bigint;
3488
+ };
3489
+ session: {
3490
+ oid: bigint;
3491
+ id: string;
3492
+ createdAt: Date;
3493
+ tenantOid: bigint;
3494
+ slateOid: bigint;
3495
+ slateVersionOid: bigint;
3496
+ slateInstanceOid: bigint;
3497
+ lastActiveAt: Date | null;
3498
+ };
3499
+ } & {
3500
+ oid: bigint;
3501
+ id: string;
3502
+ createdAt: Date;
3503
+ status: import("../../../apps/hub/prisma/generated/enums").SlateSessionToolCallStatus;
3504
+ slateVersionOid: bigint;
3505
+ actionOid: bigint;
3506
+ invocationOid: bigint;
3507
+ sessionOid: bigint;
3508
+ };
3509
+ }>;
3510
+ };
3511
+ }>;
3512
+ //# sourceMappingURL=index.d.ts.map