@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,4359 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import * as Cookie from 'cookie';
4
+ import z from 'zod';
5
+
6
+ export interface ClientOpts {
7
+ endpoint: string;
8
+ headers?: Record<string, string | undefined>;
9
+ getHeaders?: () => Promise<Record<string, string>> | Record<string, string>;
10
+ onRequest?: (d: {
11
+ endpoint: string;
12
+ name: string;
13
+ payload: any;
14
+ headers: Record<string, string | undefined>;
15
+ query?: Record<string, string | undefined>;
16
+ }) => any;
17
+ }
18
+ export interface ValidationError {
19
+ code: string;
20
+ message: string;
21
+ expected?: any;
22
+ received?: any;
23
+ path?: string[];
24
+ min?: number;
25
+ max?: number;
26
+ positive?: boolean;
27
+ negative?: boolean;
28
+ }
29
+ export type ValidationResult<T> = {
30
+ success: true;
31
+ value: T;
32
+ } | {
33
+ success: false;
34
+ errors: ValidationError[];
35
+ };
36
+ export type ValidationType<T> = {
37
+ validate: (value: any) => ValidationResult<T>;
38
+ examples?: T[];
39
+ items?: ValidationType<any> | ValidationType<any>[];
40
+ properties?: {
41
+ [key: string]: ValidationType<any>;
42
+ };
43
+ type: string;
44
+ name?: string;
45
+ description?: string;
46
+ optional?: boolean;
47
+ nullable?: boolean;
48
+ hidden?: boolean;
49
+ };
50
+ export type KeysWhichExtend<T, SelectedType> = {
51
+ [key in keyof T]: SelectedType extends T[key] ? key : never;
52
+ }[keyof T];
53
+ export type Optional<T> = Partial<Pick<T, KeysWhichExtend<T, undefined>>>;
54
+ type Required$1<T> = Omit<T, KeysWhichExtend<T, undefined>>;
55
+ export type UndefinedIsOptional<T> = Optional<T> & Required$1<T>;
56
+ export interface ServiceRequest {
57
+ query: URLSearchParams;
58
+ headers: Headers;
59
+ url: string;
60
+ ip?: string;
61
+ body: any;
62
+ rawBody: any;
63
+ requestId: string;
64
+ getCookies: () => Record<string, string | undefined>;
65
+ getCookie: (name: string) => string | undefined;
66
+ setCookie: (name: string, value: string, opts?: Cookie.SerializeOptions) => void;
67
+ sharedMiddlewareMemo: Map<string, Promise<any>>;
68
+ beforeSend: (handler: () => Promise<any>) => void;
69
+ appendHeaders: (headers: Record<string, string | string[]>) => void;
70
+ }
71
+ export type Simplify<T> = {
72
+ [KeyType in keyof T]: T[KeyType];
73
+ } & {};
74
+ export type ExtendContext<C extends object, E> = E extends object ? Simplify<C & E> : C;
75
+ export type Controller<HandlersAndSubControllers extends {
76
+ [key: string]: Handler<any, any, any> | Controller<any>;
77
+ }> = HandlersAndSubControllers;
78
+ export type InferClient<HandlersAndSubControllers extends {
79
+ [key: string]: Handler<any, any, any> | Controller<any>;
80
+ }> = {
81
+ [K in keyof HandlersAndSubControllers]: HandlersAndSubControllers[K] extends Handler<infer I, infer O, infer C> ? ((input: I, opts?: {
82
+ headers?: Record<string, string>;
83
+ query?: Record<string, string>;
84
+ }) => Promise<O>) & {
85
+ getFull: (input: I, opts?: {
86
+ headers?: Record<string, string>;
87
+ query?: Record<string, string>;
88
+ }) => Promise<{
89
+ data: O;
90
+ status: number;
91
+ headers: Record<string, string>;
92
+ }>;
93
+ } : HandlersAndSubControllers[K] extends Controller<infer U> ? InferClient<U> : never;
94
+ };
95
+ declare class Handler<Input, Output, Context extends {
96
+ [key: string]: any;
97
+ } = {}> {
98
+ private _middleware;
99
+ private _handler;
100
+ private _validation;
101
+ constructor(_middleware?: Array<(ctx: Context & ServiceRequest) => Promise<any>>);
102
+ do<HandlerOutput>(handler: (ctx: Context & Omit<ServiceRequest, "body"> & {
103
+ input: Input;
104
+ }) => Promise<HandlerOutput>): Handler<Input, HandlerOutput, Context>;
105
+ use<T extends {
106
+ [key: string]: any;
107
+ } = {}>(handler: (ctx: Context & ServiceRequest) => Promise<T | undefined | void>): Handler<Input, Output, ExtendContext<Context, T>>;
108
+ input<HandlerInput>(validation: ValidationType<HandlerInput>): Handler<HandlerInput, Output, Context>;
109
+ run(req: ServiceRequest, initialContext: any): Promise<{
110
+ response: Output;
111
+ }>;
112
+ }
113
+ declare const ChangeNotificationType: {
114
+ readonly slate_version_created: "slate_version_created";
115
+ };
116
+ export type ChangeNotificationType = (typeof ChangeNotificationType)[keyof typeof ChangeNotificationType];
117
+ declare const SlateAuthConfigType: {
118
+ readonly manual: "manual";
119
+ readonly oauth_automated: "oauth_automated";
120
+ readonly oauth_manual: "oauth_manual";
121
+ };
122
+ export type SlateAuthConfigType = (typeof SlateAuthConfigType)[keyof typeof SlateAuthConfigType];
123
+ declare const SlateInstanceOAuthSetupStatus: {
124
+ readonly unused: "unused";
125
+ readonly opened: "opened";
126
+ readonly completed: "completed";
127
+ readonly failed: "failed";
128
+ };
129
+ export type SlateInstanceOAuthSetupStatus = (typeof SlateInstanceOAuthSetupStatus)[keyof typeof SlateInstanceOAuthSetupStatus];
130
+ declare const SlateInstanceOAuthSetupEventType: {
131
+ readonly setup_link_opened: "setup_link_opened";
132
+ readonly get_authorization_url: "get_authorization_url";
133
+ readonly exchange_authorization_code: "exchange_authorization_code";
134
+ readonly access_token_received: "access_token_received";
135
+ readonly oauth_setup_completed: "oauth_setup_completed";
136
+ readonly oauth_setup_failed: "oauth_setup_failed";
137
+ };
138
+ export type SlateInstanceOAuthSetupEventType = (typeof SlateInstanceOAuthSetupEventType)[keyof typeof SlateInstanceOAuthSetupEventType];
139
+ declare const RegistryStatus: {
140
+ readonly active: "active";
141
+ readonly disabled: "disabled";
142
+ };
143
+ export type RegistryStatus = (typeof RegistryStatus)[keyof typeof RegistryStatus];
144
+ declare const SecretStatus: {
145
+ readonly active: "active";
146
+ readonly deleted: "deleted";
147
+ };
148
+ export type SecretStatus = (typeof SecretStatus)[keyof typeof SecretStatus];
149
+ declare const SecretType: {
150
+ readonly slate_authentication_configuration: "slate_authentication_configuration";
151
+ readonly slate_oauth_credentials: "slate_oauth_credentials";
152
+ readonly slate_oauth_setup: "slate_oauth_setup";
153
+ };
154
+ export type SecretType = (typeof SecretType)[keyof typeof SecretType];
155
+ declare const SlateStatus: {
156
+ readonly active: "active";
157
+ readonly inactive: "inactive";
158
+ };
159
+ export type SlateStatus = (typeof SlateStatus)[keyof typeof SlateStatus];
160
+ declare const SlateVersionStatus: {
161
+ readonly active: "active";
162
+ readonly unavailable: "unavailable";
163
+ readonly pending: "pending";
164
+ readonly deploying: "deploying";
165
+ readonly discovering: "discovering";
166
+ readonly deployment_failed: "deployment_failed";
167
+ readonly discovery_failed: "discovery_failed";
168
+ };
169
+ export type SlateVersionStatus = (typeof SlateVersionStatus)[keyof typeof SlateVersionStatus];
170
+ declare const SlateAuthMethodType: {
171
+ readonly oauth: "oauth";
172
+ readonly token: "token";
173
+ readonly service_account: "service_account";
174
+ readonly custom: "custom";
175
+ };
176
+ export type SlateAuthMethodType = (typeof SlateAuthMethodType)[keyof typeof SlateAuthMethodType];
177
+ declare const SlateActionType: {
178
+ readonly tool: "tool";
179
+ readonly trigger: "trigger";
180
+ };
181
+ export type SlateActionType = (typeof SlateActionType)[keyof typeof SlateActionType];
182
+ declare const SlateDeploymentStatus: {
183
+ readonly pending: "pending";
184
+ readonly running: "running";
185
+ readonly succeeded: "succeeded";
186
+ readonly failed: "failed";
187
+ };
188
+ export type SlateDeploymentStatus = (typeof SlateDeploymentStatus)[keyof typeof SlateDeploymentStatus];
189
+ declare const SlateSessionToolCallStatus: {
190
+ readonly succeeded: "succeeded";
191
+ readonly failed: "failed";
192
+ };
193
+ export type SlateSessionToolCallStatus = (typeof SlateSessionToolCallStatus)[keyof typeof SlateSessionToolCallStatus];
194
+ declare const ScopeType: {
195
+ readonly user: "user";
196
+ readonly workspace: "workspace";
197
+ };
198
+ type ScopeType$1 = (typeof ScopeType)[keyof typeof ScopeType];
199
+ declare const ScopeStatus: {
200
+ readonly active: "active";
201
+ readonly deleted: "deleted";
202
+ };
203
+ type ScopeStatus$1 = (typeof ScopeStatus)[keyof typeof ScopeStatus];
204
+ declare const UserStatus: {
205
+ readonly active: "active";
206
+ readonly deleted: "deleted";
207
+ };
208
+ type UserStatus$1 = (typeof UserStatus)[keyof typeof UserStatus];
209
+ declare const SlateStatus$1: {
210
+ readonly active: "active";
211
+ readonly deleted: "deleted";
212
+ };
213
+ type SlateStatus$2 = (typeof SlateStatus$1)[keyof typeof SlateStatus$1];
214
+ declare const SlateAccess: {
215
+ readonly public: "public";
216
+ readonly private: "private";
217
+ };
218
+ type SlateAccess$1 = (typeof SlateAccess)[keyof typeof SlateAccess];
219
+ declare let slatesMessageActionsListRequest: z.ZodObject<{
220
+ jsonrpc: z.ZodLiteral<"2.0">;
221
+ method: z.ZodLiteral<"slates/actions.list">;
222
+ id: z.ZodString;
223
+ params: z.ZodObject<{}, z.core.$strip>;
224
+ }, z.core.$strip>;
225
+ export type SlatesMessageActionsListRequest = z.infer<typeof slatesMessageActionsListRequest>;
226
+ declare let slatesMessageActionsListResponse: z.ZodObject<{
227
+ jsonrpc: z.ZodLiteral<"2.0">;
228
+ id: z.ZodString;
229
+ result: z.ZodObject<{
230
+ actions: z.ZodArray<z.ZodUnion<readonly [
231
+ z.ZodObject<{
232
+ id: z.ZodString;
233
+ name: z.ZodString;
234
+ description: z.ZodOptional<z.ZodString>;
235
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
236
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
237
+ tags: z.ZodOptional<z.ZodObject<{
238
+ destructive: z.ZodOptional<z.ZodBoolean>;
239
+ readOnly: z.ZodOptional<z.ZodBoolean>;
240
+ }, z.core.$strip>>;
241
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
242
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
243
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
244
+ type: z.ZodLiteral<"action.tool">;
245
+ capabilities: z.ZodObject<{}, z.core.$strip>;
246
+ }, z.core.$strip>,
247
+ z.ZodObject<{
248
+ id: z.ZodString;
249
+ name: z.ZodString;
250
+ description: z.ZodOptional<z.ZodString>;
251
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
253
+ tags: z.ZodOptional<z.ZodObject<{
254
+ destructive: z.ZodOptional<z.ZodBoolean>;
255
+ readOnly: z.ZodOptional<z.ZodBoolean>;
256
+ }, z.core.$strip>>;
257
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
258
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
259
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
260
+ type: z.ZodLiteral<"action.trigger">;
261
+ capabilities: z.ZodObject<{}, z.core.$strip>;
262
+ invocation: z.ZodUnion<readonly [
263
+ z.ZodObject<{
264
+ type: z.ZodLiteral<"polling">;
265
+ intervalSeconds: z.ZodNumber;
266
+ }, z.core.$strip>,
267
+ z.ZodObject<{
268
+ type: z.ZodLiteral<"webhook">;
269
+ autoRegistration: z.ZodBoolean;
270
+ autoUnregistration: z.ZodBoolean;
271
+ }, z.core.$strip>
272
+ ]>;
273
+ }, z.core.$strip>
274
+ ]>>;
275
+ }, z.core.$strip>;
276
+ }, z.core.$strip>;
277
+ export type SlatesMessageActionsListResponse = z.infer<typeof slatesMessageActionsListResponse>;
278
+ declare let slatesMessageActionGetRequest: z.ZodObject<{
279
+ jsonrpc: z.ZodLiteral<"2.0">;
280
+ method: z.ZodLiteral<"slates/action.get">;
281
+ id: z.ZodString;
282
+ params: z.ZodObject<{
283
+ actionId: z.ZodString;
284
+ }, z.core.$strip>;
285
+ }, z.core.$strip>;
286
+ export type SlatesMessageActionGetRequest = z.infer<typeof slatesMessageActionGetRequest>;
287
+ declare let slatesMessageActionGetResponse: z.ZodObject<{
288
+ jsonrpc: z.ZodLiteral<"2.0">;
289
+ id: z.ZodString;
290
+ result: z.ZodObject<{
291
+ action: z.ZodUnion<readonly [
292
+ z.ZodObject<{
293
+ id: z.ZodString;
294
+ name: z.ZodString;
295
+ description: z.ZodOptional<z.ZodString>;
296
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
298
+ tags: z.ZodOptional<z.ZodObject<{
299
+ destructive: z.ZodOptional<z.ZodBoolean>;
300
+ readOnly: z.ZodOptional<z.ZodBoolean>;
301
+ }, z.core.$strip>>;
302
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
303
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
304
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
305
+ type: z.ZodLiteral<"action.tool">;
306
+ capabilities: z.ZodObject<{}, z.core.$strip>;
307
+ }, z.core.$strip>,
308
+ z.ZodObject<{
309
+ id: z.ZodString;
310
+ name: z.ZodString;
311
+ description: z.ZodOptional<z.ZodString>;
312
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
313
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
314
+ tags: z.ZodOptional<z.ZodObject<{
315
+ destructive: z.ZodOptional<z.ZodBoolean>;
316
+ readOnly: z.ZodOptional<z.ZodBoolean>;
317
+ }, z.core.$strip>>;
318
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
319
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
320
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
321
+ type: z.ZodLiteral<"action.trigger">;
322
+ capabilities: z.ZodObject<{}, z.core.$strip>;
323
+ invocation: z.ZodUnion<readonly [
324
+ z.ZodObject<{
325
+ type: z.ZodLiteral<"polling">;
326
+ intervalSeconds: z.ZodNumber;
327
+ }, z.core.$strip>,
328
+ z.ZodObject<{
329
+ type: z.ZodLiteral<"webhook">;
330
+ autoRegistration: z.ZodBoolean;
331
+ autoUnregistration: z.ZodBoolean;
332
+ }, z.core.$strip>
333
+ ]>;
334
+ }, z.core.$strip>
335
+ ]>;
336
+ }, z.core.$strip>;
337
+ }, z.core.$strip>;
338
+ export type SlatesMessageActionGetResponse = z.infer<typeof slatesMessageActionGetResponse>;
339
+ declare let slatesMessageActionInvokeRequest: z.ZodObject<{
340
+ jsonrpc: z.ZodLiteral<"2.0">;
341
+ method: z.ZodLiteral<"slates/action.tool.invoke">;
342
+ id: z.ZodString;
343
+ params: z.ZodObject<{
344
+ actionId: z.ZodString;
345
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
346
+ }, z.core.$strip>;
347
+ }, z.core.$strip>;
348
+ export type SlatesMessageActionInvokeRequest = z.infer<typeof slatesMessageActionInvokeRequest>;
349
+ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
350
+ jsonrpc: z.ZodLiteral<"2.0">;
351
+ id: z.ZodString;
352
+ result: z.ZodObject<{
353
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
354
+ message: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strip>;
356
+ }, z.core.$strip>;
357
+ export type SlatesMessageActionInvokeResponse = z.infer<typeof slatesMessageActionInvokeResponse>;
358
+ declare let slatesMessageActionTriggerEventMapRequest: z.ZodObject<{
359
+ jsonrpc: z.ZodLiteral<"2.0">;
360
+ method: z.ZodLiteral<"slates/action.trigger.map_event">;
361
+ id: z.ZodString;
362
+ params: z.ZodObject<{
363
+ actionId: z.ZodString;
364
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
365
+ }, z.core.$strip>;
366
+ }, z.core.$strip>;
367
+ export type SlatesMessageActionTriggerEventMapRequest = z.infer<typeof slatesMessageActionTriggerEventMapRequest>;
368
+ declare let slatesMessageActionTriggerEventMapResponse: z.ZodObject<{
369
+ jsonrpc: z.ZodLiteral<"2.0">;
370
+ id: z.ZodString;
371
+ result: z.ZodObject<{
372
+ type: z.ZodString;
373
+ id: z.ZodString;
374
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
375
+ }, z.core.$strip>;
376
+ }, z.core.$strip>;
377
+ export type SlatesMessageActionTriggerEventMapResponse = z.infer<typeof slatesMessageActionTriggerEventMapResponse>;
378
+ declare let slatesMessageActionTriggerEventsPollRequest: z.ZodObject<{
379
+ jsonrpc: z.ZodLiteral<"2.0">;
380
+ method: z.ZodLiteral<"slates/action.trigger.poll_events">;
381
+ id: z.ZodString;
382
+ params: z.ZodObject<{
383
+ actionId: z.ZodString;
384
+ state: z.ZodNullable<z.ZodAny>;
385
+ }, z.core.$strip>;
386
+ }, z.core.$strip>;
387
+ export type SlatesMessageActionTriggerEventsPollRequest = z.infer<typeof slatesMessageActionTriggerEventsPollRequest>;
388
+ declare let slatesMessageActionTriggerEventsPollResponse: z.ZodObject<{
389
+ jsonrpc: z.ZodLiteral<"2.0">;
390
+ id: z.ZodString;
391
+ result: z.ZodObject<{
392
+ inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
393
+ updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
394
+ }, z.core.$strip>;
395
+ }, z.core.$strip>;
396
+ export type SlatesMessageActionTriggerEventsPollResponse = z.infer<typeof slatesMessageActionTriggerEventsPollResponse>;
397
+ declare let slatesMessageActionTriggerWebhookHandleRequest: z.ZodObject<{
398
+ jsonrpc: z.ZodLiteral<"2.0">;
399
+ method: z.ZodLiteral<"slates/action.trigger.webhook_handle">;
400
+ id: z.ZodString;
401
+ params: z.ZodObject<{
402
+ actionId: z.ZodString;
403
+ url: z.ZodString;
404
+ method: z.ZodString;
405
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
406
+ body: z.ZodNullable<z.ZodObject<{
407
+ encoding: z.ZodLiteral<"base64">;
408
+ content: z.ZodString;
409
+ }, z.core.$strip>>;
410
+ state: z.ZodNullable<z.ZodAny>;
411
+ }, z.core.$strip>;
412
+ }, z.core.$strip>;
413
+ export type SlatesMessageActionTriggerWebhookHandleRequest = z.infer<typeof slatesMessageActionTriggerWebhookHandleRequest>;
414
+ declare let slatesMessageActionTriggerWebhookHandleResponse: z.ZodObject<{
415
+ jsonrpc: z.ZodLiteral<"2.0">;
416
+ id: z.ZodString;
417
+ result: z.ZodObject<{
418
+ inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
419
+ updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
420
+ }, z.core.$strip>;
421
+ }, z.core.$strip>;
422
+ export type SlatesMessageActionTriggerWebhookHandleResponse = z.infer<typeof slatesMessageActionTriggerWebhookHandleResponse>;
423
+ declare let slatesMessageActionTriggerWebhookRegisterRequest: z.ZodObject<{
424
+ jsonrpc: z.ZodLiteral<"2.0">;
425
+ method: z.ZodLiteral<"slates/action.trigger.webhook_register">;
426
+ id: z.ZodString;
427
+ params: z.ZodObject<{
428
+ actionId: z.ZodString;
429
+ webhookBaseUrl: z.ZodString;
430
+ }, z.core.$strip>;
431
+ }, z.core.$strip>;
432
+ export type SlatesMessageActionTriggerWebhookRegisterRequest = z.infer<typeof slatesMessageActionTriggerWebhookRegisterRequest>;
433
+ declare let slatesMessageActionTriggerWebhookRegisterResponse: z.ZodObject<{
434
+ jsonrpc: z.ZodLiteral<"2.0">;
435
+ id: z.ZodString;
436
+ result: z.ZodObject<{
437
+ registrationDetails: z.ZodAny;
438
+ state: z.ZodOptional<z.ZodAny>;
439
+ }, z.core.$strip>;
440
+ }, z.core.$strip>;
441
+ export type SlatesMessageActionTriggerWebhookRegisterResponse = z.infer<typeof slatesMessageActionTriggerWebhookRegisterResponse>;
442
+ declare let slatesMessageActionTriggerWebhookUnregisterRequest: z.ZodObject<{
443
+ jsonrpc: z.ZodLiteral<"2.0">;
444
+ method: z.ZodLiteral<"slates/action.trigger.webhook_unregister">;
445
+ id: z.ZodString;
446
+ params: z.ZodObject<{
447
+ actionId: z.ZodString;
448
+ webhookBaseUrl: z.ZodString;
449
+ registrationDetails: z.ZodAny;
450
+ state: z.ZodOptional<z.ZodAny>;
451
+ }, z.core.$strip>;
452
+ }, z.core.$strip>;
453
+ export type SlatesMessageActionTriggerWebhookUnregisterRequest = z.infer<typeof slatesMessageActionTriggerWebhookUnregisterRequest>;
454
+ declare let slatesMessageActionTriggerWebhookUnregisterResponse: z.ZodObject<{
455
+ jsonrpc: z.ZodLiteral<"2.0">;
456
+ id: z.ZodString;
457
+ result: z.ZodObject<{}, z.core.$strip>;
458
+ }, z.core.$strip>;
459
+ export type SlatesMessageActionTriggerWebhookUnregisterResponse = z.infer<typeof slatesMessageActionTriggerWebhookUnregisterResponse>;
460
+ export type SlatesActionRequests = SlatesMessageActionsListRequest | SlatesMessageActionGetRequest | SlatesMessageActionInvokeRequest | SlatesMessageActionTriggerEventMapRequest | SlatesMessageActionTriggerEventsPollRequest | SlatesMessageActionTriggerWebhookHandleRequest | SlatesMessageActionTriggerWebhookRegisterRequest | SlatesMessageActionTriggerWebhookUnregisterRequest;
461
+ export type SlatesActionResponses = SlatesMessageActionsListResponse | SlatesMessageActionGetResponse | SlatesMessageActionInvokeResponse | SlatesMessageActionTriggerEventMapResponse | SlatesMessageActionTriggerEventsPollResponse | SlatesMessageActionTriggerWebhookHandleResponse | SlatesMessageActionTriggerWebhookRegisterResponse | SlatesMessageActionTriggerWebhookUnregisterResponse;
462
+ declare let slatesMessageSetAuthNotification: z.ZodObject<{
463
+ jsonrpc: z.ZodLiteral<"2.0">;
464
+ method: z.ZodLiteral<"slates/auth.set">;
465
+ params: z.ZodObject<{
466
+ authenticationMethodId: z.ZodString;
467
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
468
+ }, z.core.$strip>;
469
+ }, z.core.$strip>;
470
+ export type SlatesMessageSetAuthNotification = z.infer<typeof slatesMessageSetAuthNotification>;
471
+ declare let slatesMessageAuthMethodsListRequest: z.ZodObject<{
472
+ jsonrpc: z.ZodLiteral<"2.0">;
473
+ method: z.ZodLiteral<"slates/auth.methods.list">;
474
+ id: z.ZodString;
475
+ params: z.ZodObject<{}, z.core.$strip>;
476
+ }, z.core.$strip>;
477
+ export type SlatesMessageAuthMethodsListRequest = z.infer<typeof slatesMessageAuthMethodsListRequest>;
478
+ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
479
+ jsonrpc: z.ZodLiteral<"2.0">;
480
+ id: z.ZodString;
481
+ result: z.ZodObject<{
482
+ authenticationMethods: z.ZodArray<z.ZodObject<{
483
+ id: z.ZodString;
484
+ name: z.ZodString;
485
+ type: z.ZodUnion<readonly [
486
+ z.ZodLiteral<"auth.oauth">,
487
+ z.ZodLiteral<"auth.token">,
488
+ z.ZodLiteral<"auth.service_account">,
489
+ z.ZodLiteral<"auth.custom">
490
+ ]>;
491
+ scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
492
+ id: z.ZodString;
493
+ title: z.ZodString;
494
+ description: z.ZodOptional<z.ZodString>;
495
+ }, z.core.$strip>>>;
496
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
497
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
498
+ capabilities: z.ZodObject<{
499
+ getDefaultInput: z.ZodOptional<z.ZodObject<{
500
+ enabled: z.ZodBoolean;
501
+ }, z.core.$strip>>;
502
+ handleChangedInput: z.ZodOptional<z.ZodObject<{
503
+ enabled: z.ZodBoolean;
504
+ }, z.core.$strip>>;
505
+ handleTokenRefresh: z.ZodOptional<z.ZodObject<{
506
+ enabled: z.ZodBoolean;
507
+ }, z.core.$strip>>;
508
+ getProfile: z.ZodOptional<z.ZodObject<{
509
+ enabled: z.ZodBoolean;
510
+ }, z.core.$strip>>;
511
+ }, z.core.$strip>;
512
+ }, z.core.$strip>>;
513
+ }, z.core.$strip>;
514
+ }, z.core.$strip>;
515
+ export type SlatesMessageAuthMethodsListResponse = z.infer<typeof slatesMessageAuthMethodsListResponse>;
516
+ declare let slatesMessageAuthMethodGetRequest: z.ZodObject<{
517
+ jsonrpc: z.ZodLiteral<"2.0">;
518
+ method: z.ZodLiteral<"slates/auth.method.get">;
519
+ id: z.ZodString;
520
+ params: z.ZodObject<{
521
+ authenticationMethodId: z.ZodString;
522
+ }, z.core.$strip>;
523
+ }, z.core.$strip>;
524
+ export type SlatesMessageAuthMethodGetRequest = z.infer<typeof slatesMessageAuthMethodGetRequest>;
525
+ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
526
+ jsonrpc: z.ZodLiteral<"2.0">;
527
+ id: z.ZodString;
528
+ result: z.ZodObject<{
529
+ authenticationMethod: z.ZodObject<{
530
+ id: z.ZodString;
531
+ name: z.ZodString;
532
+ type: z.ZodUnion<readonly [
533
+ z.ZodLiteral<"auth.oauth">,
534
+ z.ZodLiteral<"auth.token">,
535
+ z.ZodLiteral<"auth.service_account">,
536
+ z.ZodLiteral<"auth.custom">
537
+ ]>;
538
+ scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
539
+ id: z.ZodString;
540
+ title: z.ZodString;
541
+ description: z.ZodOptional<z.ZodString>;
542
+ }, z.core.$strip>>>;
543
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
544
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
545
+ capabilities: z.ZodObject<{
546
+ getDefaultInput: z.ZodOptional<z.ZodObject<{
547
+ enabled: z.ZodBoolean;
548
+ }, z.core.$strip>>;
549
+ handleChangedInput: z.ZodOptional<z.ZodObject<{
550
+ enabled: z.ZodBoolean;
551
+ }, z.core.$strip>>;
552
+ handleTokenRefresh: z.ZodOptional<z.ZodObject<{
553
+ enabled: z.ZodBoolean;
554
+ }, z.core.$strip>>;
555
+ getProfile: z.ZodOptional<z.ZodObject<{
556
+ enabled: z.ZodBoolean;
557
+ }, z.core.$strip>>;
558
+ }, z.core.$strip>;
559
+ }, z.core.$strip>;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>;
562
+ export type SlatesMessageAuthMethodGetResponse = z.infer<typeof slatesMessageAuthMethodGetResponse>;
563
+ declare let slatesMessageAuthInputChangedRequest: z.ZodObject<{
564
+ jsonrpc: z.ZodLiteral<"2.0">;
565
+ method: z.ZodLiteral<"slates/auth.input.changed">;
566
+ id: z.ZodString;
567
+ params: z.ZodObject<{
568
+ authenticationMethodId: z.ZodString;
569
+ previousInput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
570
+ newInput: z.ZodRecord<z.ZodString, z.ZodAny>;
571
+ }, z.core.$strip>;
572
+ }, z.core.$strip>;
573
+ export type SlatesMessageAuthInputChangedRequest = z.infer<typeof slatesMessageAuthInputChangedRequest>;
574
+ declare let slatesMessageAuthInputChangedResponse: z.ZodObject<{
575
+ jsonrpc: z.ZodLiteral<"2.0">;
576
+ id: z.ZodString;
577
+ result: z.ZodObject<{
578
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
579
+ }, z.core.$strip>;
580
+ }, z.core.$strip>;
581
+ export type SlatesMessageAuthInputChangedResponse = z.infer<typeof slatesMessageAuthInputChangedResponse>;
582
+ declare let slatesMessageAuthDefaultInputGetRequest: z.ZodObject<{
583
+ jsonrpc: z.ZodLiteral<"2.0">;
584
+ method: z.ZodLiteral<"slates/auth.input.get_default">;
585
+ id: z.ZodString;
586
+ params: z.ZodObject<{
587
+ authenticationMethodId: z.ZodString;
588
+ }, z.core.$strip>;
589
+ }, z.core.$strip>;
590
+ export type SlatesMessageAuthDefaultInputGetRequest = z.infer<typeof slatesMessageAuthDefaultInputGetRequest>;
591
+ declare let slatesMessageAuthDefaultInputGetResponse: z.ZodObject<{
592
+ jsonrpc: z.ZodLiteral<"2.0">;
593
+ id: z.ZodString;
594
+ result: z.ZodObject<{
595
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
596
+ }, z.core.$strip>;
597
+ }, z.core.$strip>;
598
+ export type SlatesMessageAuthDefaultInputGetResponse = z.infer<typeof slatesMessageAuthDefaultInputGetResponse>;
599
+ declare let slatesMessageAuthAuthorizationUrlGetRequest: z.ZodObject<{
600
+ jsonrpc: z.ZodLiteral<"2.0">;
601
+ method: z.ZodLiteral<"slates/auth.authorization_url.get">;
602
+ id: z.ZodString;
603
+ params: z.ZodObject<{
604
+ authenticationMethodId: z.ZodString;
605
+ redirectUri: z.ZodString;
606
+ state: z.ZodString;
607
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
608
+ clientId: z.ZodString;
609
+ clientSecret: z.ZodString;
610
+ scopes: z.ZodArray<z.ZodString>;
611
+ }, z.core.$strip>;
612
+ }, z.core.$strip>;
613
+ export type SlatesMessageAuthAuthorizationUrlGetRequest = z.infer<typeof slatesMessageAuthAuthorizationUrlGetRequest>;
614
+ declare let slatesMessageAuthAuthorizationUrlGetResponse: z.ZodObject<{
615
+ jsonrpc: z.ZodLiteral<"2.0">;
616
+ id: z.ZodString;
617
+ result: z.ZodObject<{
618
+ authorizationUrl: z.ZodString;
619
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
620
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
621
+ }, z.core.$strip>;
622
+ }, z.core.$strip>;
623
+ export type SlatesMessageAuthAuthorizationUrlGetResponse = z.infer<typeof slatesMessageAuthAuthorizationUrlGetResponse>;
624
+ declare let slatesMessageAuthAuthorizationCallbackHandleRequest: z.ZodObject<{
625
+ jsonrpc: z.ZodLiteral<"2.0">;
626
+ method: z.ZodLiteral<"slates/auth.authorization_callback.handle">;
627
+ id: z.ZodString;
628
+ params: z.ZodObject<{
629
+ authenticationMethodId: z.ZodString;
630
+ code: z.ZodString;
631
+ state: z.ZodString;
632
+ redirectUri: z.ZodString;
633
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
634
+ clientId: z.ZodString;
635
+ clientSecret: z.ZodString;
636
+ scopes: z.ZodArray<z.ZodString>;
637
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
638
+ }, z.core.$strip>;
639
+ }, z.core.$strip>;
640
+ export type SlatesMessageAuthAuthorizationCallbackHandleRequest = z.infer<typeof slatesMessageAuthAuthorizationCallbackHandleRequest>;
641
+ declare let slatesMessageAuthAuthorizationCallbackHandleResponse: z.ZodObject<{
642
+ jsonrpc: z.ZodLiteral<"2.0">;
643
+ id: z.ZodString;
644
+ result: z.ZodObject<{
645
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
646
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
647
+ }, z.core.$strip>;
648
+ }, z.core.$strip>;
649
+ export type SlatesMessageAuthAuthorizationCallbackHandleResponse = z.infer<typeof slatesMessageAuthAuthorizationCallbackHandleResponse>;
650
+ declare let slatesMessageAuthTokenRefreshHandleRequest: z.ZodObject<{
651
+ jsonrpc: z.ZodLiteral<"2.0">;
652
+ method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
653
+ id: z.ZodString;
654
+ params: z.ZodObject<{
655
+ authenticationMethodId: z.ZodString;
656
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
657
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
658
+ clientId: z.ZodString;
659
+ clientSecret: z.ZodString;
660
+ scopes: z.ZodArray<z.ZodString>;
661
+ }, z.core.$strip>;
662
+ }, z.core.$strip>;
663
+ export type SlatesMessageAuthTokenRefreshHandleRequest = z.infer<typeof slatesMessageAuthTokenRefreshHandleRequest>;
664
+ declare let slatesMessageAuthTokenRefreshHandleResponse: z.ZodObject<{
665
+ jsonrpc: z.ZodLiteral<"2.0">;
666
+ id: z.ZodString;
667
+ result: z.ZodObject<{
668
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
669
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
670
+ }, z.core.$strip>;
671
+ }, z.core.$strip>;
672
+ export type SlatesMessageAuthTokenRefreshHandleResponse = z.infer<typeof slatesMessageAuthTokenRefreshHandleResponse>;
673
+ declare let slatesMessageAuthProfileGetRequest: z.ZodObject<{
674
+ jsonrpc: z.ZodLiteral<"2.0">;
675
+ method: z.ZodLiteral<"slates/auth.profile.get">;
676
+ id: z.ZodString;
677
+ params: z.ZodObject<{
678
+ authenticationMethodId: z.ZodString;
679
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
680
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
681
+ scopes: z.ZodArray<z.ZodString>;
682
+ }, z.core.$strip>;
683
+ }, z.core.$strip>;
684
+ export type SlatesMessageAuthProfileGetRequest = z.infer<typeof slatesMessageAuthProfileGetRequest>;
685
+ declare let slatesMessageAuthProfileGetResponse: z.ZodObject<{
686
+ jsonrpc: z.ZodLiteral<"2.0">;
687
+ id: z.ZodString;
688
+ result: z.ZodObject<{
689
+ profile: z.ZodRecord<z.ZodString, z.ZodAny>;
690
+ }, z.core.$strip>;
691
+ }, z.core.$strip>;
692
+ export type SlatesMessageAuthProfileGetResponse = z.infer<typeof slatesMessageAuthProfileGetResponse>;
693
+ declare let slatesMessageAuthOutputGetRequest: z.ZodObject<{
694
+ jsonrpc: z.ZodLiteral<"2.0">;
695
+ method: z.ZodLiteral<"slates/auth.output.get">;
696
+ id: z.ZodString;
697
+ params: z.ZodObject<{
698
+ authenticationMethodId: z.ZodString;
699
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
700
+ }, z.core.$strip>;
701
+ }, z.core.$strip>;
702
+ export type SlatesMessageAuthOutputGetRequest = z.infer<typeof slatesMessageAuthOutputGetRequest>;
703
+ declare let slatesMessageAuthOutputGetResponse: z.ZodObject<{
704
+ jsonrpc: z.ZodLiteral<"2.0">;
705
+ id: z.ZodString;
706
+ result: z.ZodObject<{
707
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
708
+ }, z.core.$strip>;
709
+ }, z.core.$strip>;
710
+ export type SlatesMessageAuthOutputGetResponse = z.infer<typeof slatesMessageAuthOutputGetResponse>;
711
+ export type SlatesAuthRequests = SlatesMessageAuthMethodsListRequest | SlatesMessageAuthMethodGetRequest | SlatesMessageAuthInputChangedRequest | SlatesMessageAuthDefaultInputGetRequest | SlatesMessageAuthAuthorizationUrlGetRequest | SlatesMessageAuthAuthorizationCallbackHandleRequest | SlatesMessageAuthTokenRefreshHandleRequest | SlatesMessageAuthProfileGetRequest | SlatesMessageAuthOutputGetRequest;
712
+ export type SlatesAuthResponses = SlatesMessageAuthMethodsListResponse | SlatesMessageAuthMethodGetResponse | SlatesMessageAuthInputChangedResponse | SlatesMessageAuthDefaultInputGetResponse | SlatesMessageAuthAuthorizationUrlGetResponse | SlatesMessageAuthAuthorizationCallbackHandleResponse | SlatesMessageAuthTokenRefreshHandleResponse | SlatesMessageAuthProfileGetResponse | SlatesMessageAuthOutputGetResponse;
713
+ export type SlatesAuthNotifications = SlatesMessageSetAuthNotification;
714
+ declare let slatesMessageSetConfigNotification: z.ZodObject<{
715
+ jsonrpc: z.ZodLiteral<"2.0">;
716
+ method: z.ZodLiteral<"slates/config.set">;
717
+ params: z.ZodObject<{
718
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
719
+ }, z.core.$strip>;
720
+ }, z.core.$strip>;
721
+ export type SlatesMessageSetConfigNotification = z.infer<typeof slatesMessageSetConfigNotification>;
722
+ declare let slatesMessageConfigSchemaGetRequest: z.ZodObject<{
723
+ jsonrpc: z.ZodLiteral<"2.0">;
724
+ method: z.ZodLiteral<"slates/config.schema.get">;
725
+ id: z.ZodString;
726
+ params: z.ZodObject<{}, z.core.$strip>;
727
+ }, z.core.$strip>;
728
+ export type SlatesMessageConfigSchemaGetRequest = z.infer<typeof slatesMessageConfigSchemaGetRequest>;
729
+ declare let slatesMessageConfigSchemaGetResponse: z.ZodObject<{
730
+ jsonrpc: z.ZodLiteral<"2.0">;
731
+ id: z.ZodString;
732
+ result: z.ZodObject<{
733
+ schema: z.ZodRecord<z.ZodString, z.ZodAny>;
734
+ }, z.core.$strip>;
735
+ }, z.core.$strip>;
736
+ export type SlatesMessageConfigSchemaGetResponse = z.infer<typeof slatesMessageConfigSchemaGetResponse>;
737
+ declare let slatesMessageConfigChangedRequest: z.ZodObject<{
738
+ jsonrpc: z.ZodLiteral<"2.0">;
739
+ method: z.ZodLiteral<"slates/config.changed">;
740
+ id: z.ZodString;
741
+ params: z.ZodObject<{
742
+ previousConfig: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
743
+ newConfig: z.ZodRecord<z.ZodString, z.ZodAny>;
744
+ }, z.core.$strip>;
745
+ }, z.core.$strip>;
746
+ export type SlatesMessageConfigChangedRequest = z.infer<typeof slatesMessageConfigChangedRequest>;
747
+ declare let slatesMessageConfigChangedResponse: z.ZodObject<{
748
+ jsonrpc: z.ZodLiteral<"2.0">;
749
+ id: z.ZodString;
750
+ result: z.ZodObject<{
751
+ success: z.ZodBoolean;
752
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
753
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
754
+ code: z.ZodString;
755
+ message: z.ZodString;
756
+ path: z.ZodOptional<z.ZodArray<z.ZodString>>;
757
+ }, z.core.$strip>>>;
758
+ }, z.core.$strip>;
759
+ }, z.core.$strip>;
760
+ export type SlatesMessageConfigChangedResponse = z.infer<typeof slatesMessageConfigChangedResponse>;
761
+ declare let slatesMessageConfigDefaultGetRequest: z.ZodObject<{
762
+ jsonrpc: z.ZodLiteral<"2.0">;
763
+ method: z.ZodLiteral<"slates/config.get_default">;
764
+ id: z.ZodString;
765
+ params: z.ZodObject<{}, z.core.$strip>;
766
+ }, z.core.$strip>;
767
+ export type SlatesMessageConfigDefaultGetRequest = z.infer<typeof slatesMessageConfigDefaultGetRequest>;
768
+ declare let slatesMessageConfigDefaultGetResponse: z.ZodObject<{
769
+ jsonrpc: z.ZodLiteral<"2.0">;
770
+ id: z.ZodString;
771
+ result: z.ZodObject<{
772
+ config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
773
+ }, z.core.$strip>;
774
+ }, z.core.$strip>;
775
+ export type SlatesMessageConfigDefaultGetResponse = z.infer<typeof slatesMessageConfigDefaultGetResponse>;
776
+ export type SlatesConfigRequests = SlatesMessageConfigSchemaGetRequest | SlatesMessageConfigDefaultGetRequest | SlatesMessageConfigChangedRequest;
777
+ export type SlatesConfigResponses = SlatesMessageConfigSchemaGetResponse | SlatesMessageConfigDefaultGetResponse | SlatesMessageConfigChangedResponse;
778
+ export type SlatesConfigNotifications = SlatesMessageSetConfigNotification;
779
+ declare let slatesMessageHelloNotification: z.ZodObject<{
780
+ jsonrpc: z.ZodLiteral<"2.0">;
781
+ method: z.ZodLiteral<"slates/hello">;
782
+ params: z.ZodObject<{
783
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
784
+ }, z.core.$strip>;
785
+ }, z.core.$strip>;
786
+ export type SlatesMessageHelloNotification = z.infer<typeof slatesMessageHelloNotification>;
787
+ declare let slatesMessageSetParticipantsNotification: z.ZodObject<{
788
+ jsonrpc: z.ZodLiteral<"2.0">;
789
+ method: z.ZodLiteral<"slates/participant.set">;
790
+ params: z.ZodObject<{
791
+ participants: z.ZodArray<z.ZodObject<{
792
+ type: z.ZodUnion<readonly [
793
+ z.ZodLiteral<"consumer">,
794
+ z.ZodLiteral<"hub">
795
+ ]>;
796
+ id: z.ZodString;
797
+ name: z.ZodString;
798
+ description: z.ZodOptional<z.ZodString>;
799
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
800
+ }, z.core.$strip>>;
801
+ }, z.core.$strip>;
802
+ }, z.core.$strip>;
803
+ export type SlatesMessageSetParticipantsNotification = z.infer<typeof slatesMessageSetParticipantsNotification>;
804
+ declare let slatesMessageSessionStartNotification: z.ZodObject<{
805
+ jsonrpc: z.ZodLiteral<"2.0">;
806
+ method: z.ZodLiteral<"slates/session.start">;
807
+ params: z.ZodObject<{
808
+ sessionId: z.ZodString;
809
+ state: z.ZodRecord<z.ZodString, z.ZodAny>;
810
+ }, z.core.$strip>;
811
+ }, z.core.$strip>;
812
+ export type SlatesMessageSessionStartNotification = z.infer<typeof slatesMessageSessionStartNotification>;
813
+ export type SlatesControlFlowNotifications = SlatesMessageHelloNotification | SlatesMessageSetParticipantsNotification | SlatesMessageSessionStartNotification;
814
+ declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
815
+ jsonrpc: z.ZodLiteral<"2.0">;
816
+ method: z.ZodLiteral<"slates/provider.identify">;
817
+ id: z.ZodString;
818
+ params: z.ZodObject<{}, z.core.$strip>;
819
+ }, z.core.$strip>;
820
+ export type SlatesMessageProviderIdentifyRequest = z.infer<typeof slatesMessageProviderIdentifyRequest>;
821
+ declare let slatesMessageProviderIdentifyResponse: z.ZodObject<{
822
+ jsonrpc: z.ZodLiteral<"2.0">;
823
+ id: z.ZodString;
824
+ result: z.ZodObject<{
825
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
826
+ provider: z.ZodObject<{
827
+ type: z.ZodLiteral<"provider">;
828
+ id: z.ZodString;
829
+ name: z.ZodString;
830
+ description: z.ZodOptional<z.ZodString>;
831
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
832
+ }, z.core.$strip>;
833
+ }, z.core.$strip>;
834
+ }, z.core.$strip>;
835
+ export type SlatesMessageProviderIdentifyResponse = z.infer<typeof slatesMessageProviderIdentifyResponse>;
836
+ export type SlatesIdentifyRequests = SlatesMessageProviderIdentifyRequest;
837
+ export type SlatesIdentifyResponses = SlatesMessageProviderIdentifyResponse;
838
+ export type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications;
839
+ export type SlatesRequests = SlatesActionRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
840
+ export type SlatesResponses = SlatesActionResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
841
+ export type SlatesRequest = SlatesNotifications | SlatesRequests;
842
+ export type SlatesResponse = SlatesNotifications | SlatesResponses;
843
+ export interface InvocationError {
844
+ code: string;
845
+ message: string;
846
+ [key: string]: string;
847
+ }
848
+ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient<{
849
+ tenant: {
850
+ upsert: Handler<UndefinedIsOptional<{
851
+ name: string;
852
+ identifier: string;
853
+ }>, {
854
+ object: string;
855
+ id: string;
856
+ identifier: string;
857
+ name: string;
858
+ createdAt: Date;
859
+ }, {}>;
860
+ get: Handler<UndefinedIsOptional<{
861
+ tenantId: string;
862
+ }>, {
863
+ object: string;
864
+ id: string;
865
+ identifier: string;
866
+ name: string;
867
+ createdAt: Date;
868
+ }, {
869
+ tenant: {} & {
870
+ name: string;
871
+ oid: bigint;
872
+ id: string;
873
+ createdAt: Date;
874
+ identifier: string;
875
+ };
876
+ }>;
877
+ };
878
+ secret: {
879
+ list: Handler<Partial<Pick<{
880
+ tenantId: string;
881
+ }, never>> & {
882
+ tenantId: string;
883
+ } & {
884
+ limit?: number;
885
+ after?: string;
886
+ before?: string;
887
+ cursor?: string;
888
+ order?: "asc" | "desc";
889
+ }, {
890
+ __typename: string;
891
+ items: {
892
+ object: string;
893
+ id: string;
894
+ type: SecretType;
895
+ status: SecretStatus;
896
+ createdAt: Date;
897
+ }[];
898
+ pagination: {
899
+ has_more_after: boolean;
900
+ has_more_before: boolean;
901
+ };
902
+ }, {
903
+ tenant: {} & {
904
+ name: string;
905
+ oid: bigint;
906
+ id: string;
907
+ createdAt: Date;
908
+ identifier: string;
909
+ };
910
+ }>;
911
+ get: Handler<UndefinedIsOptional<{
912
+ tenantId: string;
913
+ secretId: string;
914
+ }>, {
915
+ object: string;
916
+ id: string;
917
+ type: SecretType;
918
+ status: SecretStatus;
919
+ createdAt: Date;
920
+ }, {
921
+ tenant: {} & {
922
+ name: string;
923
+ oid: bigint;
924
+ id: string;
925
+ createdAt: Date;
926
+ identifier: string;
927
+ };
928
+ secret: {} & {
929
+ oid: bigint;
930
+ id: string;
931
+ type: SecretType;
932
+ createdAt: Date;
933
+ status: SecretStatus;
934
+ tenantOid: bigint;
935
+ encryptedSecret: string;
936
+ };
937
+ }>;
938
+ };
939
+ registry: {
940
+ list: Handler<Partial<Pick<{}, never>> & {} & {
941
+ limit?: number;
942
+ after?: string;
943
+ before?: string;
944
+ cursor?: string;
945
+ order?: "asc" | "desc";
946
+ }, {
947
+ __typename: string;
948
+ items: {
949
+ object: string;
950
+ id: string;
951
+ status: RegistryStatus;
952
+ isPredefined: boolean;
953
+ identifier: string;
954
+ name: string;
955
+ url: string;
956
+ tenant: {
957
+ object: string;
958
+ id: string;
959
+ identifier: string;
960
+ name: string;
961
+ createdAt: Date;
962
+ } | null;
963
+ createdAt: Date;
964
+ lastSyncedAt: Date | null;
965
+ }[];
966
+ pagination: {
967
+ has_more_after: boolean;
968
+ has_more_before: boolean;
969
+ };
970
+ }, {}>;
971
+ get: Handler<UndefinedIsOptional<{
972
+ tenantId: string;
973
+ slateId: string;
974
+ registryId: string;
975
+ }>, {
976
+ object: string;
977
+ id: string;
978
+ status: RegistryStatus;
979
+ isPredefined: boolean;
980
+ identifier: string;
981
+ name: string;
982
+ url: string;
983
+ tenant: {
984
+ object: string;
985
+ id: string;
986
+ identifier: string;
987
+ name: string;
988
+ createdAt: Date;
989
+ } | null;
990
+ createdAt: Date;
991
+ lastSyncedAt: Date | null;
992
+ }, {
993
+ registry: {
994
+ tenant: {
995
+ name: string;
996
+ oid: bigint;
997
+ id: string;
998
+ createdAt: Date;
999
+ identifier: string;
1000
+ } | null;
1001
+ } & {
1002
+ name: string;
1003
+ oid: bigint;
1004
+ id: string;
1005
+ createdAt: Date;
1006
+ identifier: string;
1007
+ status: RegistryStatus;
1008
+ isPredefined: boolean;
1009
+ url: string;
1010
+ encryptedReaderToken: string | null;
1011
+ changeNotificationCursor: string | null;
1012
+ tenantOid: bigint | null;
1013
+ lastSyncedAt: Date | null;
1014
+ };
1015
+ }>;
1016
+ };
1017
+ changeNotification: {
1018
+ list: Handler<Partial<Pick<{}, never>> & {} & {
1019
+ limit?: number;
1020
+ after?: string;
1021
+ before?: string;
1022
+ cursor?: string;
1023
+ order?: "asc" | "desc";
1024
+ }, {
1025
+ __typename: string;
1026
+ items: {
1027
+ object: string;
1028
+ id: string;
1029
+ type: "slate_version_created";
1030
+ slateId: string;
1031
+ slateVersionId: string | null;
1032
+ createdAt: Date;
1033
+ }[];
1034
+ pagination: {
1035
+ has_more_after: boolean;
1036
+ has_more_before: boolean;
1037
+ };
1038
+ }, {}>;
1039
+ get: Handler<UndefinedIsOptional<{
1040
+ changeNotificationId: string;
1041
+ }>, {
1042
+ object: string;
1043
+ id: string;
1044
+ type: "slate_version_created";
1045
+ slateId: string;
1046
+ slateVersionId: string | null;
1047
+ createdAt: Date;
1048
+ }, {
1049
+ changeNotification: {} & {
1050
+ oid: bigint;
1051
+ id: string;
1052
+ type: ChangeNotificationType;
1053
+ slateId: string;
1054
+ slateVersionId: string | null;
1055
+ slateOid: bigint;
1056
+ slateVersionOid: bigint | null;
1057
+ createdAt: Date;
1058
+ };
1059
+ }>;
1060
+ };
1061
+ slate: {
1062
+ list: Handler<Partial<Pick<{
1063
+ tenantId: string;
1064
+ }, never>> & {
1065
+ tenantId: string;
1066
+ } & {
1067
+ limit?: number;
1068
+ after?: string;
1069
+ before?: string;
1070
+ cursor?: string;
1071
+ order?: "asc" | "desc";
1072
+ }, {
1073
+ __typename: string;
1074
+ items: {
1075
+ object: string;
1076
+ id: string;
1077
+ identifier: string;
1078
+ name: string;
1079
+ description: string | null;
1080
+ registryId: string;
1081
+ currentVersion: {
1082
+ object: string;
1083
+ id: string;
1084
+ status: SlateVersionStatus;
1085
+ version: string;
1086
+ isCurrent: boolean;
1087
+ slateId: string;
1088
+ manifest: PrismaJson.SlateJson;
1089
+ specification: {
1090
+ object: string;
1091
+ id: string;
1092
+ versionId: string;
1093
+ specificationId: string;
1094
+ identifier: string;
1095
+ createdAt: Date;
1096
+ } | null;
1097
+ createdAt: Date;
1098
+ } | null;
1099
+ scope: {
1100
+ object: string;
1101
+ registryId: string;
1102
+ id: string;
1103
+ identifier: string;
1104
+ };
1105
+ slate: {
1106
+ object: string;
1107
+ registryId: string;
1108
+ id: string;
1109
+ identifier: string;
1110
+ fullIdentifier: string;
1111
+ };
1112
+ createdAt: Date;
1113
+ updatedAt: Date;
1114
+ }[];
1115
+ pagination: {
1116
+ has_more_after: boolean;
1117
+ has_more_before: boolean;
1118
+ };
1119
+ }, {
1120
+ tenant: {} & {
1121
+ name: string;
1122
+ oid: bigint;
1123
+ id: string;
1124
+ createdAt: Date;
1125
+ identifier: string;
1126
+ };
1127
+ }>;
1128
+ get: Handler<UndefinedIsOptional<{
1129
+ tenantId: string;
1130
+ slateId: string;
1131
+ }>, {
1132
+ object: string;
1133
+ id: string;
1134
+ identifier: string;
1135
+ name: string;
1136
+ description: string | null;
1137
+ registryId: string;
1138
+ currentVersion: {
1139
+ object: string;
1140
+ id: string;
1141
+ status: SlateVersionStatus;
1142
+ version: string;
1143
+ isCurrent: boolean;
1144
+ slateId: string;
1145
+ manifest: PrismaJson.SlateJson;
1146
+ specification: {
1147
+ object: string;
1148
+ id: string;
1149
+ versionId: string;
1150
+ specificationId: string;
1151
+ identifier: string;
1152
+ createdAt: Date;
1153
+ } | null;
1154
+ createdAt: Date;
1155
+ } | null;
1156
+ scope: {
1157
+ object: string;
1158
+ registryId: string;
1159
+ id: string;
1160
+ identifier: string;
1161
+ };
1162
+ slate: {
1163
+ object: string;
1164
+ registryId: string;
1165
+ id: string;
1166
+ identifier: string;
1167
+ fullIdentifier: string;
1168
+ };
1169
+ createdAt: Date;
1170
+ updatedAt: Date;
1171
+ }, {
1172
+ tenant: {} & {
1173
+ name: string;
1174
+ oid: bigint;
1175
+ id: string;
1176
+ createdAt: Date;
1177
+ identifier: string;
1178
+ };
1179
+ slate: {
1180
+ registry: {
1181
+ name: string;
1182
+ oid: bigint;
1183
+ id: string;
1184
+ createdAt: Date;
1185
+ identifier: string;
1186
+ status: RegistryStatus;
1187
+ isPredefined: boolean;
1188
+ url: string;
1189
+ encryptedReaderToken: string | null;
1190
+ changeNotificationCursor: string | null;
1191
+ tenantOid: bigint | null;
1192
+ lastSyncedAt: Date | null;
1193
+ };
1194
+ currentVersion: ({
1195
+ specification: {
1196
+ name: string;
1197
+ oid: bigint;
1198
+ id: string;
1199
+ slateOid: bigint;
1200
+ createdAt: Date;
1201
+ identifier: string;
1202
+ hash: string;
1203
+ key: string;
1204
+ protocolVersion: string;
1205
+ providerInfo: PrismaJson.SlateProviderInfo;
1206
+ configSchema: PrismaJson.SlateConfigSchema;
1207
+ authMethods: PrismaJson.SlateAuthMethods;
1208
+ actions: PrismaJson.SlateActions;
1209
+ mostRecentVersionOid: bigint;
1210
+ } | null;
1211
+ } & {
1212
+ oid: bigint;
1213
+ id: string;
1214
+ slateOid: bigint;
1215
+ createdAt: Date;
1216
+ status: SlateVersionStatus;
1217
+ isCurrent: boolean;
1218
+ willBeCurrent: boolean;
1219
+ version: string;
1220
+ versionIdOnRegistry: string;
1221
+ versionIdentifierOnRegistry: string;
1222
+ manifest: PrismaJson.SlateJson;
1223
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1224
+ registryOid: bigint;
1225
+ activeDeploymentOid: bigint | null;
1226
+ specificationOid: bigint | null;
1227
+ updatedAt: Date;
1228
+ lastDiscoveredAt: Date | null;
1229
+ }) | null;
1230
+ } & {
1231
+ name: string;
1232
+ oid: bigint;
1233
+ id: string;
1234
+ createdAt: Date;
1235
+ identifier: string;
1236
+ status: SlateStatus;
1237
+ registryOid: bigint;
1238
+ updatedAt: Date;
1239
+ description: string | null;
1240
+ currentVersionOid: bigint | null;
1241
+ slateScopeIdentifierOnRegistry: string;
1242
+ slateScopeIdOnRegistry: string;
1243
+ slateFullIdentifierOnRegistry: string;
1244
+ slateIdentifierOnRegistry: string;
1245
+ slateIdOnRegistry: string;
1246
+ };
1247
+ }>;
1248
+ getRegistryRecord: Handler<UndefinedIsOptional<{
1249
+ tenantId: string;
1250
+ slateId: string;
1251
+ }>, {
1252
+ object: string;
1253
+ id: string;
1254
+ status: SlateStatus$2;
1255
+ access: SlateAccess$1;
1256
+ name: string;
1257
+ description: string | null;
1258
+ identifier: string;
1259
+ fullIdentifier: string;
1260
+ createdByUser: {
1261
+ object: string;
1262
+ id: string;
1263
+ status: UserStatus$1;
1264
+ identifier: string;
1265
+ name: string;
1266
+ scope: {
1267
+ object: string;
1268
+ id: string;
1269
+ type: ScopeType$1;
1270
+ status: ScopeStatus$1;
1271
+ tenantId: string;
1272
+ identifier: string;
1273
+ name: string;
1274
+ description: string | null;
1275
+ links: {
1276
+ url: string;
1277
+ label: string;
1278
+ id: string;
1279
+ }[];
1280
+ createdAt: string;
1281
+ updatedAt: string;
1282
+ };
1283
+ tenantId: string;
1284
+ createdAt: string;
1285
+ updatedAt: string;
1286
+ };
1287
+ scope: {
1288
+ object: string;
1289
+ id: string;
1290
+ type: ScopeType$1;
1291
+ status: ScopeStatus$1;
1292
+ tenantId: string;
1293
+ identifier: string;
1294
+ name: string;
1295
+ description: string | null;
1296
+ links: {
1297
+ url: string;
1298
+ label: string;
1299
+ id: string;
1300
+ }[];
1301
+ createdAt: string;
1302
+ updatedAt: string;
1303
+ };
1304
+ currentVersion: {
1305
+ id: string;
1306
+ version: string;
1307
+ createdAt: string;
1308
+ } | null;
1309
+ tenantId: string;
1310
+ createdAt: string;
1311
+ updatedAt: string;
1312
+ }, {
1313
+ tenant: {} & {
1314
+ name: string;
1315
+ oid: bigint;
1316
+ id: string;
1317
+ createdAt: Date;
1318
+ identifier: string;
1319
+ };
1320
+ slate: {
1321
+ registry: {
1322
+ name: string;
1323
+ oid: bigint;
1324
+ id: string;
1325
+ createdAt: Date;
1326
+ identifier: string;
1327
+ status: RegistryStatus;
1328
+ isPredefined: boolean;
1329
+ url: string;
1330
+ encryptedReaderToken: string | null;
1331
+ changeNotificationCursor: string | null;
1332
+ tenantOid: bigint | null;
1333
+ lastSyncedAt: Date | null;
1334
+ };
1335
+ currentVersion: ({
1336
+ specification: {
1337
+ name: string;
1338
+ oid: bigint;
1339
+ id: string;
1340
+ slateOid: bigint;
1341
+ createdAt: Date;
1342
+ identifier: string;
1343
+ hash: string;
1344
+ key: string;
1345
+ protocolVersion: string;
1346
+ providerInfo: PrismaJson.SlateProviderInfo;
1347
+ configSchema: PrismaJson.SlateConfigSchema;
1348
+ authMethods: PrismaJson.SlateAuthMethods;
1349
+ actions: PrismaJson.SlateActions;
1350
+ mostRecentVersionOid: bigint;
1351
+ } | null;
1352
+ } & {
1353
+ oid: bigint;
1354
+ id: string;
1355
+ slateOid: bigint;
1356
+ createdAt: Date;
1357
+ status: SlateVersionStatus;
1358
+ isCurrent: boolean;
1359
+ willBeCurrent: boolean;
1360
+ version: string;
1361
+ versionIdOnRegistry: string;
1362
+ versionIdentifierOnRegistry: string;
1363
+ manifest: PrismaJson.SlateJson;
1364
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1365
+ registryOid: bigint;
1366
+ activeDeploymentOid: bigint | null;
1367
+ specificationOid: bigint | null;
1368
+ updatedAt: Date;
1369
+ lastDiscoveredAt: Date | null;
1370
+ }) | null;
1371
+ } & {
1372
+ name: string;
1373
+ oid: bigint;
1374
+ id: string;
1375
+ createdAt: Date;
1376
+ identifier: string;
1377
+ status: SlateStatus;
1378
+ registryOid: bigint;
1379
+ updatedAt: Date;
1380
+ description: string | null;
1381
+ currentVersionOid: bigint | null;
1382
+ slateScopeIdentifierOnRegistry: string;
1383
+ slateScopeIdOnRegistry: string;
1384
+ slateFullIdentifierOnRegistry: string;
1385
+ slateIdentifierOnRegistry: string;
1386
+ slateIdOnRegistry: string;
1387
+ };
1388
+ }>;
1389
+ };
1390
+ slateVersion: {
1391
+ list: Handler<Partial<Pick<{
1392
+ tenantId: string;
1393
+ slateId: string;
1394
+ }, never>> & {
1395
+ slateId: string;
1396
+ tenantId: string;
1397
+ } & {
1398
+ limit?: number;
1399
+ after?: string;
1400
+ before?: string;
1401
+ cursor?: string;
1402
+ order?: "asc" | "desc";
1403
+ }, {
1404
+ __typename: string;
1405
+ items: {
1406
+ object: string;
1407
+ id: string;
1408
+ status: SlateVersionStatus;
1409
+ version: string;
1410
+ isCurrent: boolean;
1411
+ slateId: string;
1412
+ manifest: PrismaJson.SlateJson;
1413
+ specification: {
1414
+ object: string;
1415
+ id: string;
1416
+ versionId: string;
1417
+ specificationId: string;
1418
+ identifier: string;
1419
+ createdAt: Date;
1420
+ } | null;
1421
+ createdAt: Date;
1422
+ }[];
1423
+ pagination: {
1424
+ has_more_after: boolean;
1425
+ has_more_before: boolean;
1426
+ };
1427
+ }, {
1428
+ tenant: {} & {
1429
+ name: string;
1430
+ oid: bigint;
1431
+ id: string;
1432
+ createdAt: Date;
1433
+ identifier: string;
1434
+ };
1435
+ slate: {
1436
+ registry: {
1437
+ name: string;
1438
+ oid: bigint;
1439
+ id: string;
1440
+ createdAt: Date;
1441
+ identifier: string;
1442
+ status: RegistryStatus;
1443
+ isPredefined: boolean;
1444
+ url: string;
1445
+ encryptedReaderToken: string | null;
1446
+ changeNotificationCursor: string | null;
1447
+ tenantOid: bigint | null;
1448
+ lastSyncedAt: Date | null;
1449
+ };
1450
+ currentVersion: ({
1451
+ specification: {
1452
+ name: string;
1453
+ oid: bigint;
1454
+ id: string;
1455
+ slateOid: bigint;
1456
+ createdAt: Date;
1457
+ identifier: string;
1458
+ hash: string;
1459
+ key: string;
1460
+ protocolVersion: string;
1461
+ providerInfo: PrismaJson.SlateProviderInfo;
1462
+ configSchema: PrismaJson.SlateConfigSchema;
1463
+ authMethods: PrismaJson.SlateAuthMethods;
1464
+ actions: PrismaJson.SlateActions;
1465
+ mostRecentVersionOid: bigint;
1466
+ } | null;
1467
+ } & {
1468
+ oid: bigint;
1469
+ id: string;
1470
+ slateOid: bigint;
1471
+ createdAt: Date;
1472
+ status: SlateVersionStatus;
1473
+ isCurrent: boolean;
1474
+ willBeCurrent: boolean;
1475
+ version: string;
1476
+ versionIdOnRegistry: string;
1477
+ versionIdentifierOnRegistry: string;
1478
+ manifest: PrismaJson.SlateJson;
1479
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1480
+ registryOid: bigint;
1481
+ activeDeploymentOid: bigint | null;
1482
+ specificationOid: bigint | null;
1483
+ updatedAt: Date;
1484
+ lastDiscoveredAt: Date | null;
1485
+ }) | null;
1486
+ } & {
1487
+ name: string;
1488
+ oid: bigint;
1489
+ id: string;
1490
+ createdAt: Date;
1491
+ identifier: string;
1492
+ status: SlateStatus;
1493
+ registryOid: bigint;
1494
+ updatedAt: Date;
1495
+ description: string | null;
1496
+ currentVersionOid: bigint | null;
1497
+ slateScopeIdentifierOnRegistry: string;
1498
+ slateScopeIdOnRegistry: string;
1499
+ slateFullIdentifierOnRegistry: string;
1500
+ slateIdentifierOnRegistry: string;
1501
+ slateIdOnRegistry: string;
1502
+ };
1503
+ }>;
1504
+ get: Handler<UndefinedIsOptional<{
1505
+ tenantId: string;
1506
+ slateId: string;
1507
+ slateVersionId: string;
1508
+ }>, {
1509
+ object: string;
1510
+ id: string;
1511
+ status: SlateVersionStatus;
1512
+ version: string;
1513
+ isCurrent: boolean;
1514
+ slateId: string;
1515
+ manifest: PrismaJson.SlateJson;
1516
+ specification: {
1517
+ object: string;
1518
+ id: string;
1519
+ versionId: string;
1520
+ specificationId: string;
1521
+ identifier: string;
1522
+ createdAt: Date;
1523
+ } | null;
1524
+ createdAt: Date;
1525
+ }, {
1526
+ tenant: {} & {
1527
+ name: string;
1528
+ oid: bigint;
1529
+ id: string;
1530
+ createdAt: Date;
1531
+ identifier: string;
1532
+ };
1533
+ slate: {
1534
+ registry: {
1535
+ name: string;
1536
+ oid: bigint;
1537
+ id: string;
1538
+ createdAt: Date;
1539
+ identifier: string;
1540
+ status: RegistryStatus;
1541
+ isPredefined: boolean;
1542
+ url: string;
1543
+ encryptedReaderToken: string | null;
1544
+ changeNotificationCursor: string | null;
1545
+ tenantOid: bigint | null;
1546
+ lastSyncedAt: Date | null;
1547
+ };
1548
+ currentVersion: ({
1549
+ specification: {
1550
+ name: string;
1551
+ oid: bigint;
1552
+ id: string;
1553
+ slateOid: bigint;
1554
+ createdAt: Date;
1555
+ identifier: string;
1556
+ hash: string;
1557
+ key: string;
1558
+ protocolVersion: string;
1559
+ providerInfo: PrismaJson.SlateProviderInfo;
1560
+ configSchema: PrismaJson.SlateConfigSchema;
1561
+ authMethods: PrismaJson.SlateAuthMethods;
1562
+ actions: PrismaJson.SlateActions;
1563
+ mostRecentVersionOid: bigint;
1564
+ } | null;
1565
+ } & {
1566
+ oid: bigint;
1567
+ id: string;
1568
+ slateOid: bigint;
1569
+ createdAt: Date;
1570
+ status: SlateVersionStatus;
1571
+ isCurrent: boolean;
1572
+ willBeCurrent: boolean;
1573
+ version: string;
1574
+ versionIdOnRegistry: string;
1575
+ versionIdentifierOnRegistry: string;
1576
+ manifest: PrismaJson.SlateJson;
1577
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1578
+ registryOid: bigint;
1579
+ activeDeploymentOid: bigint | null;
1580
+ specificationOid: bigint | null;
1581
+ updatedAt: Date;
1582
+ lastDiscoveredAt: Date | null;
1583
+ }) | null;
1584
+ } & {
1585
+ name: string;
1586
+ oid: bigint;
1587
+ id: string;
1588
+ createdAt: Date;
1589
+ identifier: string;
1590
+ status: SlateStatus;
1591
+ registryOid: bigint;
1592
+ updatedAt: Date;
1593
+ description: string | null;
1594
+ currentVersionOid: bigint | null;
1595
+ slateScopeIdentifierOnRegistry: string;
1596
+ slateScopeIdOnRegistry: string;
1597
+ slateFullIdentifierOnRegistry: string;
1598
+ slateIdentifierOnRegistry: string;
1599
+ slateIdOnRegistry: string;
1600
+ };
1601
+ slateVersion: {
1602
+ slate: {
1603
+ registry: {
1604
+ name: string;
1605
+ oid: bigint;
1606
+ id: string;
1607
+ createdAt: Date;
1608
+ identifier: string;
1609
+ status: RegistryStatus;
1610
+ isPredefined: boolean;
1611
+ url: string;
1612
+ encryptedReaderToken: string | null;
1613
+ changeNotificationCursor: string | null;
1614
+ tenantOid: bigint | null;
1615
+ lastSyncedAt: Date | null;
1616
+ };
1617
+ } & {
1618
+ name: string;
1619
+ oid: bigint;
1620
+ id: string;
1621
+ createdAt: Date;
1622
+ identifier: string;
1623
+ status: SlateStatus;
1624
+ registryOid: bigint;
1625
+ updatedAt: Date;
1626
+ description: string | null;
1627
+ currentVersionOid: bigint | null;
1628
+ slateScopeIdentifierOnRegistry: string;
1629
+ slateScopeIdOnRegistry: string;
1630
+ slateFullIdentifierOnRegistry: string;
1631
+ slateIdentifierOnRegistry: string;
1632
+ slateIdOnRegistry: string;
1633
+ };
1634
+ specification: {
1635
+ name: string;
1636
+ oid: bigint;
1637
+ id: string;
1638
+ slateOid: bigint;
1639
+ createdAt: Date;
1640
+ identifier: string;
1641
+ hash: string;
1642
+ key: string;
1643
+ protocolVersion: string;
1644
+ providerInfo: PrismaJson.SlateProviderInfo;
1645
+ configSchema: PrismaJson.SlateConfigSchema;
1646
+ authMethods: PrismaJson.SlateAuthMethods;
1647
+ actions: PrismaJson.SlateActions;
1648
+ mostRecentVersionOid: bigint;
1649
+ } | null;
1650
+ } & {
1651
+ oid: bigint;
1652
+ id: string;
1653
+ slateOid: bigint;
1654
+ createdAt: Date;
1655
+ status: SlateVersionStatus;
1656
+ isCurrent: boolean;
1657
+ willBeCurrent: boolean;
1658
+ version: string;
1659
+ versionIdOnRegistry: string;
1660
+ versionIdentifierOnRegistry: string;
1661
+ manifest: PrismaJson.SlateJson;
1662
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1663
+ registryOid: bigint;
1664
+ activeDeploymentOid: bigint | null;
1665
+ specificationOid: bigint | null;
1666
+ updatedAt: Date;
1667
+ lastDiscoveredAt: Date | null;
1668
+ };
1669
+ }>;
1670
+ getRegistryRecord: Handler<UndefinedIsOptional<{
1671
+ tenantId: string;
1672
+ slateId: string;
1673
+ slateVersionId: string;
1674
+ }>, {
1675
+ object: string;
1676
+ id: string;
1677
+ version: string;
1678
+ isCurrent: boolean;
1679
+ slateId: string;
1680
+ manifest: {
1681
+ name: string;
1682
+ version: string;
1683
+ description?: string | undefined;
1684
+ };
1685
+ documents: {
1686
+ object: string;
1687
+ id: string;
1688
+ versionId: string;
1689
+ path: string;
1690
+ content: string;
1691
+ createdAt: string;
1692
+ }[];
1693
+ createdByUser: {
1694
+ object: string;
1695
+ id: string;
1696
+ status: UserStatus$1;
1697
+ identifier: string;
1698
+ name: string;
1699
+ scope: {
1700
+ object: string;
1701
+ id: string;
1702
+ type: ScopeType$1;
1703
+ status: ScopeStatus$1;
1704
+ tenantId: string;
1705
+ identifier: string;
1706
+ name: string;
1707
+ description: string | null;
1708
+ links: {
1709
+ url: string;
1710
+ label: string;
1711
+ id: string;
1712
+ }[];
1713
+ createdAt: string;
1714
+ updatedAt: string;
1715
+ };
1716
+ tenantId: string;
1717
+ createdAt: string;
1718
+ updatedAt: string;
1719
+ };
1720
+ createdAt: string;
1721
+ }, {
1722
+ tenant: {} & {
1723
+ name: string;
1724
+ oid: bigint;
1725
+ id: string;
1726
+ createdAt: Date;
1727
+ identifier: string;
1728
+ };
1729
+ slate: {
1730
+ registry: {
1731
+ name: string;
1732
+ oid: bigint;
1733
+ id: string;
1734
+ createdAt: Date;
1735
+ identifier: string;
1736
+ status: RegistryStatus;
1737
+ isPredefined: boolean;
1738
+ url: string;
1739
+ encryptedReaderToken: string | null;
1740
+ changeNotificationCursor: string | null;
1741
+ tenantOid: bigint | null;
1742
+ lastSyncedAt: Date | null;
1743
+ };
1744
+ currentVersion: ({
1745
+ specification: {
1746
+ name: string;
1747
+ oid: bigint;
1748
+ id: string;
1749
+ slateOid: bigint;
1750
+ createdAt: Date;
1751
+ identifier: string;
1752
+ hash: string;
1753
+ key: string;
1754
+ protocolVersion: string;
1755
+ providerInfo: PrismaJson.SlateProviderInfo;
1756
+ configSchema: PrismaJson.SlateConfigSchema;
1757
+ authMethods: PrismaJson.SlateAuthMethods;
1758
+ actions: PrismaJson.SlateActions;
1759
+ mostRecentVersionOid: bigint;
1760
+ } | null;
1761
+ } & {
1762
+ oid: bigint;
1763
+ id: string;
1764
+ slateOid: bigint;
1765
+ createdAt: Date;
1766
+ status: SlateVersionStatus;
1767
+ isCurrent: boolean;
1768
+ willBeCurrent: boolean;
1769
+ version: string;
1770
+ versionIdOnRegistry: string;
1771
+ versionIdentifierOnRegistry: string;
1772
+ manifest: PrismaJson.SlateJson;
1773
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1774
+ registryOid: bigint;
1775
+ activeDeploymentOid: bigint | null;
1776
+ specificationOid: bigint | null;
1777
+ updatedAt: Date;
1778
+ lastDiscoveredAt: Date | null;
1779
+ }) | null;
1780
+ } & {
1781
+ name: string;
1782
+ oid: bigint;
1783
+ id: string;
1784
+ createdAt: Date;
1785
+ identifier: string;
1786
+ status: SlateStatus;
1787
+ registryOid: bigint;
1788
+ updatedAt: Date;
1789
+ description: string | null;
1790
+ currentVersionOid: bigint | null;
1791
+ slateScopeIdentifierOnRegistry: string;
1792
+ slateScopeIdOnRegistry: string;
1793
+ slateFullIdentifierOnRegistry: string;
1794
+ slateIdentifierOnRegistry: string;
1795
+ slateIdOnRegistry: string;
1796
+ };
1797
+ slateVersion: {
1798
+ slate: {
1799
+ registry: {
1800
+ name: string;
1801
+ oid: bigint;
1802
+ id: string;
1803
+ createdAt: Date;
1804
+ identifier: string;
1805
+ status: RegistryStatus;
1806
+ isPredefined: boolean;
1807
+ url: string;
1808
+ encryptedReaderToken: string | null;
1809
+ changeNotificationCursor: string | null;
1810
+ tenantOid: bigint | null;
1811
+ lastSyncedAt: Date | null;
1812
+ };
1813
+ } & {
1814
+ name: string;
1815
+ oid: bigint;
1816
+ id: string;
1817
+ createdAt: Date;
1818
+ identifier: string;
1819
+ status: SlateStatus;
1820
+ registryOid: bigint;
1821
+ updatedAt: Date;
1822
+ description: string | null;
1823
+ currentVersionOid: bigint | null;
1824
+ slateScopeIdentifierOnRegistry: string;
1825
+ slateScopeIdOnRegistry: string;
1826
+ slateFullIdentifierOnRegistry: string;
1827
+ slateIdentifierOnRegistry: string;
1828
+ slateIdOnRegistry: string;
1829
+ };
1830
+ specification: {
1831
+ name: string;
1832
+ oid: bigint;
1833
+ id: string;
1834
+ slateOid: bigint;
1835
+ createdAt: Date;
1836
+ identifier: string;
1837
+ hash: string;
1838
+ key: string;
1839
+ protocolVersion: string;
1840
+ providerInfo: PrismaJson.SlateProviderInfo;
1841
+ configSchema: PrismaJson.SlateConfigSchema;
1842
+ authMethods: PrismaJson.SlateAuthMethods;
1843
+ actions: PrismaJson.SlateActions;
1844
+ mostRecentVersionOid: bigint;
1845
+ } | null;
1846
+ } & {
1847
+ oid: bigint;
1848
+ id: string;
1849
+ slateOid: bigint;
1850
+ createdAt: Date;
1851
+ status: SlateVersionStatus;
1852
+ isCurrent: boolean;
1853
+ willBeCurrent: boolean;
1854
+ version: string;
1855
+ versionIdOnRegistry: string;
1856
+ versionIdentifierOnRegistry: string;
1857
+ manifest: PrismaJson.SlateJson;
1858
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1859
+ registryOid: bigint;
1860
+ activeDeploymentOid: bigint | null;
1861
+ specificationOid: bigint | null;
1862
+ updatedAt: Date;
1863
+ lastDiscoveredAt: Date | null;
1864
+ };
1865
+ }>;
1866
+ };
1867
+ slateInvocation: {
1868
+ DANGEROUSLY_get: Handler<UndefinedIsOptional<{
1869
+ slateInvocationId: string;
1870
+ }>, {
1871
+ slateDeploymentId: string;
1872
+ slateVersionId: string;
1873
+ object: string;
1874
+ id: string;
1875
+ status: "succeeded" | "processing_result" | "invocation_failed" | "message_failed";
1876
+ requests: SlatesRequest[];
1877
+ responses: SlatesResponse[];
1878
+ error: unknown;
1879
+ logs: {
1880
+ timestamp: number;
1881
+ message: string;
1882
+ }[];
1883
+ provider: {
1884
+ id: string;
1885
+ status: import("@metorial-services/function-bay-client").FunctionInvocationStatus;
1886
+ billedTimeMs: number;
1887
+ computeTimeMs: number;
1888
+ } | null;
1889
+ createdAt: Date;
1890
+ }, {
1891
+ slateInvocation: {
1892
+ deployment: {
1893
+ slateVersion: {
1894
+ oid: bigint;
1895
+ id: string;
1896
+ slateOid: bigint;
1897
+ createdAt: Date;
1898
+ status: SlateVersionStatus;
1899
+ isCurrent: boolean;
1900
+ willBeCurrent: boolean;
1901
+ version: string;
1902
+ versionIdOnRegistry: string;
1903
+ versionIdentifierOnRegistry: string;
1904
+ manifest: PrismaJson.SlateJson;
1905
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1906
+ registryOid: bigint;
1907
+ activeDeploymentOid: bigint | null;
1908
+ specificationOid: bigint | null;
1909
+ updatedAt: Date;
1910
+ lastDiscoveredAt: Date | null;
1911
+ };
1912
+ } & {
1913
+ oid: bigint;
1914
+ id: string;
1915
+ slateOid: bigint;
1916
+ slateVersionOid: bigint;
1917
+ createdAt: Date;
1918
+ status: SlateDeploymentStatus;
1919
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
1920
+ errorCode: string | null;
1921
+ errorMessage: string | null;
1922
+ providerOid: bigint;
1923
+ };
1924
+ } & {
1925
+ oid: bigint;
1926
+ id: string;
1927
+ createdAt: Date;
1928
+ isPending: boolean;
1929
+ hasResponseError: boolean;
1930
+ hasInvocationError: boolean;
1931
+ providerInvocationId: string;
1932
+ deploymentOid: bigint;
1933
+ bucketOid: number;
1934
+ };
1935
+ }>;
1936
+ };
1937
+ slateDeployment: {
1938
+ list: Handler<Partial<Pick<{
1939
+ tenantId: string;
1940
+ slateId: string;
1941
+ versionIds: string[] | undefined;
1942
+ }, "versionIds">> & {
1943
+ slateId: string;
1944
+ tenantId: string;
1945
+ } & {
1946
+ limit?: number;
1947
+ after?: string;
1948
+ before?: string;
1949
+ cursor?: string;
1950
+ order?: "asc" | "desc";
1951
+ }, {
1952
+ __typename: string;
1953
+ items: {
1954
+ object: string;
1955
+ id: string;
1956
+ status: SlateDeploymentStatus;
1957
+ error: {
1958
+ code: string;
1959
+ message: string;
1960
+ } | null;
1961
+ version: {
1962
+ object: string;
1963
+ id: string;
1964
+ status: SlateVersionStatus;
1965
+ version: string;
1966
+ isCurrent: boolean;
1967
+ slateId: string;
1968
+ manifest: PrismaJson.SlateJson;
1969
+ specification: {
1970
+ object: string;
1971
+ id: string;
1972
+ versionId: string;
1973
+ specificationId: string;
1974
+ identifier: string;
1975
+ createdAt: Date;
1976
+ } | null;
1977
+ createdAt: Date;
1978
+ };
1979
+ createdAt: Date;
1980
+ }[];
1981
+ pagination: {
1982
+ has_more_after: boolean;
1983
+ has_more_before: boolean;
1984
+ };
1985
+ }, {
1986
+ tenant: {} & {
1987
+ name: string;
1988
+ oid: bigint;
1989
+ id: string;
1990
+ createdAt: Date;
1991
+ identifier: string;
1992
+ };
1993
+ slate: {
1994
+ registry: {
1995
+ name: string;
1996
+ oid: bigint;
1997
+ id: string;
1998
+ createdAt: Date;
1999
+ identifier: string;
2000
+ status: RegistryStatus;
2001
+ isPredefined: boolean;
2002
+ url: string;
2003
+ encryptedReaderToken: string | null;
2004
+ changeNotificationCursor: string | null;
2005
+ tenantOid: bigint | null;
2006
+ lastSyncedAt: Date | null;
2007
+ };
2008
+ currentVersion: ({
2009
+ specification: {
2010
+ name: string;
2011
+ oid: bigint;
2012
+ id: string;
2013
+ slateOid: bigint;
2014
+ createdAt: Date;
2015
+ identifier: string;
2016
+ hash: string;
2017
+ key: string;
2018
+ protocolVersion: string;
2019
+ providerInfo: PrismaJson.SlateProviderInfo;
2020
+ configSchema: PrismaJson.SlateConfigSchema;
2021
+ authMethods: PrismaJson.SlateAuthMethods;
2022
+ actions: PrismaJson.SlateActions;
2023
+ mostRecentVersionOid: bigint;
2024
+ } | null;
2025
+ } & {
2026
+ oid: bigint;
2027
+ id: string;
2028
+ slateOid: bigint;
2029
+ createdAt: Date;
2030
+ status: SlateVersionStatus;
2031
+ isCurrent: boolean;
2032
+ willBeCurrent: boolean;
2033
+ version: string;
2034
+ versionIdOnRegistry: string;
2035
+ versionIdentifierOnRegistry: string;
2036
+ manifest: PrismaJson.SlateJson;
2037
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2038
+ registryOid: bigint;
2039
+ activeDeploymentOid: bigint | null;
2040
+ specificationOid: bigint | null;
2041
+ updatedAt: Date;
2042
+ lastDiscoveredAt: Date | null;
2043
+ }) | null;
2044
+ } & {
2045
+ name: string;
2046
+ oid: bigint;
2047
+ id: string;
2048
+ createdAt: Date;
2049
+ identifier: string;
2050
+ status: SlateStatus;
2051
+ registryOid: bigint;
2052
+ updatedAt: Date;
2053
+ description: string | null;
2054
+ currentVersionOid: bigint | null;
2055
+ slateScopeIdentifierOnRegistry: string;
2056
+ slateScopeIdOnRegistry: string;
2057
+ slateFullIdentifierOnRegistry: string;
2058
+ slateIdentifierOnRegistry: string;
2059
+ slateIdOnRegistry: string;
2060
+ };
2061
+ }>;
2062
+ get: Handler<UndefinedIsOptional<{
2063
+ tenantId: string;
2064
+ slateId: string;
2065
+ slateDeploymentId: string;
2066
+ }>, {
2067
+ object: string;
2068
+ id: string;
2069
+ status: SlateDeploymentStatus;
2070
+ error: {
2071
+ code: string;
2072
+ message: string;
2073
+ } | null;
2074
+ version: {
2075
+ object: string;
2076
+ id: string;
2077
+ status: SlateVersionStatus;
2078
+ version: string;
2079
+ isCurrent: boolean;
2080
+ slateId: string;
2081
+ manifest: PrismaJson.SlateJson;
2082
+ specification: {
2083
+ object: string;
2084
+ id: string;
2085
+ versionId: string;
2086
+ specificationId: string;
2087
+ identifier: string;
2088
+ createdAt: Date;
2089
+ } | null;
2090
+ createdAt: Date;
2091
+ };
2092
+ createdAt: Date;
2093
+ }, {
2094
+ tenant: {} & {
2095
+ name: string;
2096
+ oid: bigint;
2097
+ id: string;
2098
+ createdAt: Date;
2099
+ identifier: string;
2100
+ };
2101
+ slate: {
2102
+ registry: {
2103
+ name: string;
2104
+ oid: bigint;
2105
+ id: string;
2106
+ createdAt: Date;
2107
+ identifier: string;
2108
+ status: RegistryStatus;
2109
+ isPredefined: boolean;
2110
+ url: string;
2111
+ encryptedReaderToken: string | null;
2112
+ changeNotificationCursor: string | null;
2113
+ tenantOid: bigint | null;
2114
+ lastSyncedAt: Date | null;
2115
+ };
2116
+ currentVersion: ({
2117
+ specification: {
2118
+ name: string;
2119
+ oid: bigint;
2120
+ id: string;
2121
+ slateOid: bigint;
2122
+ createdAt: Date;
2123
+ identifier: string;
2124
+ hash: string;
2125
+ key: string;
2126
+ protocolVersion: string;
2127
+ providerInfo: PrismaJson.SlateProviderInfo;
2128
+ configSchema: PrismaJson.SlateConfigSchema;
2129
+ authMethods: PrismaJson.SlateAuthMethods;
2130
+ actions: PrismaJson.SlateActions;
2131
+ mostRecentVersionOid: bigint;
2132
+ } | null;
2133
+ } & {
2134
+ oid: bigint;
2135
+ id: string;
2136
+ slateOid: bigint;
2137
+ createdAt: Date;
2138
+ status: SlateVersionStatus;
2139
+ isCurrent: boolean;
2140
+ willBeCurrent: boolean;
2141
+ version: string;
2142
+ versionIdOnRegistry: string;
2143
+ versionIdentifierOnRegistry: string;
2144
+ manifest: PrismaJson.SlateJson;
2145
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2146
+ registryOid: bigint;
2147
+ activeDeploymentOid: bigint | null;
2148
+ specificationOid: bigint | null;
2149
+ updatedAt: Date;
2150
+ lastDiscoveredAt: Date | null;
2151
+ }) | null;
2152
+ } & {
2153
+ name: string;
2154
+ oid: bigint;
2155
+ id: string;
2156
+ createdAt: Date;
2157
+ identifier: string;
2158
+ status: SlateStatus;
2159
+ registryOid: bigint;
2160
+ updatedAt: Date;
2161
+ description: string | null;
2162
+ currentVersionOid: bigint | null;
2163
+ slateScopeIdentifierOnRegistry: string;
2164
+ slateScopeIdOnRegistry: string;
2165
+ slateFullIdentifierOnRegistry: string;
2166
+ slateIdentifierOnRegistry: string;
2167
+ slateIdOnRegistry: string;
2168
+ };
2169
+ slateDeployment: {
2170
+ slateVersion: {
2171
+ specification: {
2172
+ name: string;
2173
+ oid: bigint;
2174
+ id: string;
2175
+ slateOid: bigint;
2176
+ createdAt: Date;
2177
+ identifier: string;
2178
+ hash: string;
2179
+ key: string;
2180
+ protocolVersion: string;
2181
+ providerInfo: PrismaJson.SlateProviderInfo;
2182
+ configSchema: PrismaJson.SlateConfigSchema;
2183
+ authMethods: PrismaJson.SlateAuthMethods;
2184
+ actions: PrismaJson.SlateActions;
2185
+ mostRecentVersionOid: bigint;
2186
+ } | null;
2187
+ } & {
2188
+ oid: bigint;
2189
+ id: string;
2190
+ slateOid: bigint;
2191
+ createdAt: Date;
2192
+ status: SlateVersionStatus;
2193
+ isCurrent: boolean;
2194
+ willBeCurrent: boolean;
2195
+ version: string;
2196
+ versionIdOnRegistry: string;
2197
+ versionIdentifierOnRegistry: string;
2198
+ manifest: PrismaJson.SlateJson;
2199
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2200
+ registryOid: bigint;
2201
+ activeDeploymentOid: bigint | null;
2202
+ specificationOid: bigint | null;
2203
+ updatedAt: Date;
2204
+ lastDiscoveredAt: Date | null;
2205
+ };
2206
+ slate: {
2207
+ registry: {
2208
+ name: string;
2209
+ oid: bigint;
2210
+ id: string;
2211
+ createdAt: Date;
2212
+ identifier: string;
2213
+ status: RegistryStatus;
2214
+ isPredefined: boolean;
2215
+ url: string;
2216
+ encryptedReaderToken: string | null;
2217
+ changeNotificationCursor: string | null;
2218
+ tenantOid: bigint | null;
2219
+ lastSyncedAt: Date | null;
2220
+ };
2221
+ } & {
2222
+ name: string;
2223
+ oid: bigint;
2224
+ id: string;
2225
+ createdAt: Date;
2226
+ identifier: string;
2227
+ status: SlateStatus;
2228
+ registryOid: bigint;
2229
+ updatedAt: Date;
2230
+ description: string | null;
2231
+ currentVersionOid: bigint | null;
2232
+ slateScopeIdentifierOnRegistry: string;
2233
+ slateScopeIdOnRegistry: string;
2234
+ slateFullIdentifierOnRegistry: string;
2235
+ slateIdentifierOnRegistry: string;
2236
+ slateIdOnRegistry: string;
2237
+ };
2238
+ } & {
2239
+ oid: bigint;
2240
+ id: string;
2241
+ slateOid: bigint;
2242
+ slateVersionOid: bigint;
2243
+ createdAt: Date;
2244
+ status: SlateDeploymentStatus;
2245
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2246
+ errorCode: string | null;
2247
+ errorMessage: string | null;
2248
+ providerOid: bigint;
2249
+ };
2250
+ }>;
2251
+ getBuildOutput: Handler<UndefinedIsOptional<{
2252
+ tenantId: string;
2253
+ slateId: string;
2254
+ slateDeploymentId: string;
2255
+ }>, {
2256
+ object: string;
2257
+ id: string;
2258
+ status: import("@metorial-services/function-bay-client").FunctionDeploymentStepStatus;
2259
+ name: string;
2260
+ logs: {
2261
+ timestamp: number;
2262
+ message: string;
2263
+ }[];
2264
+ type: "deploy" | "build";
2265
+ createdAt: Date;
2266
+ startedAt: Date | null;
2267
+ endedAt: Date | null;
2268
+ }[], {
2269
+ tenant: {} & {
2270
+ name: string;
2271
+ oid: bigint;
2272
+ id: string;
2273
+ createdAt: Date;
2274
+ identifier: string;
2275
+ };
2276
+ slate: {
2277
+ registry: {
2278
+ name: string;
2279
+ oid: bigint;
2280
+ id: string;
2281
+ createdAt: Date;
2282
+ identifier: string;
2283
+ status: RegistryStatus;
2284
+ isPredefined: boolean;
2285
+ url: string;
2286
+ encryptedReaderToken: string | null;
2287
+ changeNotificationCursor: string | null;
2288
+ tenantOid: bigint | null;
2289
+ lastSyncedAt: Date | null;
2290
+ };
2291
+ currentVersion: ({
2292
+ specification: {
2293
+ name: string;
2294
+ oid: bigint;
2295
+ id: string;
2296
+ slateOid: bigint;
2297
+ createdAt: Date;
2298
+ identifier: string;
2299
+ hash: string;
2300
+ key: string;
2301
+ protocolVersion: string;
2302
+ providerInfo: PrismaJson.SlateProviderInfo;
2303
+ configSchema: PrismaJson.SlateConfigSchema;
2304
+ authMethods: PrismaJson.SlateAuthMethods;
2305
+ actions: PrismaJson.SlateActions;
2306
+ mostRecentVersionOid: bigint;
2307
+ } | null;
2308
+ } & {
2309
+ oid: bigint;
2310
+ id: string;
2311
+ slateOid: bigint;
2312
+ createdAt: Date;
2313
+ status: SlateVersionStatus;
2314
+ isCurrent: boolean;
2315
+ willBeCurrent: boolean;
2316
+ version: string;
2317
+ versionIdOnRegistry: string;
2318
+ versionIdentifierOnRegistry: string;
2319
+ manifest: PrismaJson.SlateJson;
2320
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2321
+ registryOid: bigint;
2322
+ activeDeploymentOid: bigint | null;
2323
+ specificationOid: bigint | null;
2324
+ updatedAt: Date;
2325
+ lastDiscoveredAt: Date | null;
2326
+ }) | null;
2327
+ } & {
2328
+ name: string;
2329
+ oid: bigint;
2330
+ id: string;
2331
+ createdAt: Date;
2332
+ identifier: string;
2333
+ status: SlateStatus;
2334
+ registryOid: bigint;
2335
+ updatedAt: Date;
2336
+ description: string | null;
2337
+ currentVersionOid: bigint | null;
2338
+ slateScopeIdentifierOnRegistry: string;
2339
+ slateScopeIdOnRegistry: string;
2340
+ slateFullIdentifierOnRegistry: string;
2341
+ slateIdentifierOnRegistry: string;
2342
+ slateIdOnRegistry: string;
2343
+ };
2344
+ slateDeployment: {
2345
+ slateVersion: {
2346
+ specification: {
2347
+ name: string;
2348
+ oid: bigint;
2349
+ id: string;
2350
+ slateOid: bigint;
2351
+ createdAt: Date;
2352
+ identifier: string;
2353
+ hash: string;
2354
+ key: string;
2355
+ protocolVersion: string;
2356
+ providerInfo: PrismaJson.SlateProviderInfo;
2357
+ configSchema: PrismaJson.SlateConfigSchema;
2358
+ authMethods: PrismaJson.SlateAuthMethods;
2359
+ actions: PrismaJson.SlateActions;
2360
+ mostRecentVersionOid: bigint;
2361
+ } | null;
2362
+ } & {
2363
+ oid: bigint;
2364
+ id: string;
2365
+ slateOid: bigint;
2366
+ createdAt: Date;
2367
+ status: SlateVersionStatus;
2368
+ isCurrent: boolean;
2369
+ willBeCurrent: boolean;
2370
+ version: string;
2371
+ versionIdOnRegistry: string;
2372
+ versionIdentifierOnRegistry: string;
2373
+ manifest: PrismaJson.SlateJson;
2374
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2375
+ registryOid: bigint;
2376
+ activeDeploymentOid: bigint | null;
2377
+ specificationOid: bigint | null;
2378
+ updatedAt: Date;
2379
+ lastDiscoveredAt: Date | null;
2380
+ };
2381
+ slate: {
2382
+ registry: {
2383
+ name: string;
2384
+ oid: bigint;
2385
+ id: string;
2386
+ createdAt: Date;
2387
+ identifier: string;
2388
+ status: RegistryStatus;
2389
+ isPredefined: boolean;
2390
+ url: string;
2391
+ encryptedReaderToken: string | null;
2392
+ changeNotificationCursor: string | null;
2393
+ tenantOid: bigint | null;
2394
+ lastSyncedAt: Date | null;
2395
+ };
2396
+ } & {
2397
+ name: string;
2398
+ oid: bigint;
2399
+ id: string;
2400
+ createdAt: Date;
2401
+ identifier: string;
2402
+ status: SlateStatus;
2403
+ registryOid: bigint;
2404
+ updatedAt: Date;
2405
+ description: string | null;
2406
+ currentVersionOid: bigint | null;
2407
+ slateScopeIdentifierOnRegistry: string;
2408
+ slateScopeIdOnRegistry: string;
2409
+ slateFullIdentifierOnRegistry: string;
2410
+ slateIdentifierOnRegistry: string;
2411
+ slateIdOnRegistry: string;
2412
+ };
2413
+ } & {
2414
+ oid: bigint;
2415
+ id: string;
2416
+ slateOid: bigint;
2417
+ slateVersionOid: bigint;
2418
+ createdAt: Date;
2419
+ status: SlateDeploymentStatus;
2420
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2421
+ errorCode: string | null;
2422
+ errorMessage: string | null;
2423
+ providerOid: bigint;
2424
+ };
2425
+ }>;
2426
+ };
2427
+ slateSpecification: {
2428
+ list: Handler<Partial<Pick<{
2429
+ tenantId: string;
2430
+ slateId: string;
2431
+ versionIds: string[] | undefined;
2432
+ }, "versionIds">> & {
2433
+ slateId: string;
2434
+ tenantId: string;
2435
+ } & {
2436
+ limit?: number;
2437
+ after?: string;
2438
+ before?: string;
2439
+ cursor?: string;
2440
+ order?: "asc" | "desc";
2441
+ }, {
2442
+ __typename: string;
2443
+ items: {
2444
+ object: string;
2445
+ id: string;
2446
+ slateId: string;
2447
+ identifier: string;
2448
+ name: string;
2449
+ key: string;
2450
+ providerInfo: {
2451
+ type: "provider";
2452
+ id: string;
2453
+ name: string;
2454
+ description?: string | undefined;
2455
+ metadata?: Record<string, any> | undefined;
2456
+ };
2457
+ configSchema: any;
2458
+ authMethods: {
2459
+ object: string;
2460
+ id: string;
2461
+ slateId: string;
2462
+ identifier: string;
2463
+ name: string;
2464
+ key: string;
2465
+ type: SlateAuthMethodType;
2466
+ capabilities: {
2467
+ getDefaultInput?: {
2468
+ enabled: boolean;
2469
+ } | undefined;
2470
+ handleChangedInput?: {
2471
+ enabled: boolean;
2472
+ } | undefined;
2473
+ handleTokenRefresh?: {
2474
+ enabled: boolean;
2475
+ } | undefined;
2476
+ getProfile?: {
2477
+ enabled: boolean;
2478
+ } | undefined;
2479
+ };
2480
+ inputSchema: Record<string, any>;
2481
+ outputSchema: Record<string, any>;
2482
+ scopes: {
2483
+ id: string;
2484
+ title: string;
2485
+ description?: string | undefined;
2486
+ }[] | undefined;
2487
+ createdAt: Date;
2488
+ }[];
2489
+ actions: {
2490
+ object: string;
2491
+ id: string;
2492
+ slateId: string;
2493
+ identifier: string;
2494
+ name: string;
2495
+ key: string;
2496
+ type: SlateActionType;
2497
+ capabilities: Record<string, never>;
2498
+ inputSchema: Record<string, any>;
2499
+ outputSchema: Record<string, any>;
2500
+ constraints: string[] | undefined;
2501
+ description: string | undefined;
2502
+ instructions: string[] | undefined;
2503
+ metadata: Record<string, any> | undefined;
2504
+ tags: {
2505
+ destructive?: boolean | undefined;
2506
+ readOnly?: boolean | undefined;
2507
+ } | {
2508
+ destructive?: boolean | undefined;
2509
+ readOnly?: boolean | undefined;
2510
+ } | undefined;
2511
+ createdAt: Date;
2512
+ }[];
2513
+ createdAt: Date;
2514
+ }[];
2515
+ pagination: {
2516
+ has_more_after: boolean;
2517
+ has_more_before: boolean;
2518
+ };
2519
+ }, {
2520
+ tenant: {} & {
2521
+ name: string;
2522
+ oid: bigint;
2523
+ id: string;
2524
+ createdAt: Date;
2525
+ identifier: string;
2526
+ };
2527
+ slate: {
2528
+ registry: {
2529
+ name: string;
2530
+ oid: bigint;
2531
+ id: string;
2532
+ createdAt: Date;
2533
+ identifier: string;
2534
+ status: RegistryStatus;
2535
+ isPredefined: boolean;
2536
+ url: string;
2537
+ encryptedReaderToken: string | null;
2538
+ changeNotificationCursor: string | null;
2539
+ tenantOid: bigint | null;
2540
+ lastSyncedAt: Date | null;
2541
+ };
2542
+ currentVersion: ({
2543
+ specification: {
2544
+ name: string;
2545
+ oid: bigint;
2546
+ id: string;
2547
+ slateOid: bigint;
2548
+ createdAt: Date;
2549
+ identifier: string;
2550
+ hash: string;
2551
+ key: string;
2552
+ protocolVersion: string;
2553
+ providerInfo: PrismaJson.SlateProviderInfo;
2554
+ configSchema: PrismaJson.SlateConfigSchema;
2555
+ authMethods: PrismaJson.SlateAuthMethods;
2556
+ actions: PrismaJson.SlateActions;
2557
+ mostRecentVersionOid: bigint;
2558
+ } | null;
2559
+ } & {
2560
+ oid: bigint;
2561
+ id: string;
2562
+ slateOid: bigint;
2563
+ createdAt: Date;
2564
+ status: SlateVersionStatus;
2565
+ isCurrent: boolean;
2566
+ willBeCurrent: boolean;
2567
+ version: string;
2568
+ versionIdOnRegistry: string;
2569
+ versionIdentifierOnRegistry: string;
2570
+ manifest: PrismaJson.SlateJson;
2571
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2572
+ registryOid: bigint;
2573
+ activeDeploymentOid: bigint | null;
2574
+ specificationOid: bigint | null;
2575
+ updatedAt: Date;
2576
+ lastDiscoveredAt: Date | null;
2577
+ }) | null;
2578
+ } & {
2579
+ name: string;
2580
+ oid: bigint;
2581
+ id: string;
2582
+ createdAt: Date;
2583
+ identifier: string;
2584
+ status: SlateStatus;
2585
+ registryOid: bigint;
2586
+ updatedAt: Date;
2587
+ description: string | null;
2588
+ currentVersionOid: bigint | null;
2589
+ slateScopeIdentifierOnRegistry: string;
2590
+ slateScopeIdOnRegistry: string;
2591
+ slateFullIdentifierOnRegistry: string;
2592
+ slateIdentifierOnRegistry: string;
2593
+ slateIdOnRegistry: string;
2594
+ };
2595
+ }>;
2596
+ get: Handler<UndefinedIsOptional<{
2597
+ tenantId: string;
2598
+ slateId: string;
2599
+ slateSpecificationId: string;
2600
+ }>, {
2601
+ object: string;
2602
+ id: string;
2603
+ slateId: string;
2604
+ identifier: string;
2605
+ name: string;
2606
+ key: string;
2607
+ providerInfo: {
2608
+ type: "provider";
2609
+ id: string;
2610
+ name: string;
2611
+ description?: string | undefined;
2612
+ metadata?: Record<string, any> | undefined;
2613
+ };
2614
+ configSchema: any;
2615
+ authMethods: {
2616
+ object: string;
2617
+ id: string;
2618
+ slateId: string;
2619
+ identifier: string;
2620
+ name: string;
2621
+ key: string;
2622
+ type: SlateAuthMethodType;
2623
+ capabilities: {
2624
+ getDefaultInput?: {
2625
+ enabled: boolean;
2626
+ } | undefined;
2627
+ handleChangedInput?: {
2628
+ enabled: boolean;
2629
+ } | undefined;
2630
+ handleTokenRefresh?: {
2631
+ enabled: boolean;
2632
+ } | undefined;
2633
+ getProfile?: {
2634
+ enabled: boolean;
2635
+ } | undefined;
2636
+ };
2637
+ inputSchema: Record<string, any>;
2638
+ outputSchema: Record<string, any>;
2639
+ scopes: {
2640
+ id: string;
2641
+ title: string;
2642
+ description?: string | undefined;
2643
+ }[] | undefined;
2644
+ createdAt: Date;
2645
+ }[];
2646
+ actions: {
2647
+ object: string;
2648
+ id: string;
2649
+ slateId: string;
2650
+ identifier: string;
2651
+ name: string;
2652
+ key: string;
2653
+ type: SlateActionType;
2654
+ capabilities: Record<string, never>;
2655
+ inputSchema: Record<string, any>;
2656
+ outputSchema: Record<string, any>;
2657
+ constraints: string[] | undefined;
2658
+ description: string | undefined;
2659
+ instructions: string[] | undefined;
2660
+ metadata: Record<string, any> | undefined;
2661
+ tags: {
2662
+ destructive?: boolean | undefined;
2663
+ readOnly?: boolean | undefined;
2664
+ } | {
2665
+ destructive?: boolean | undefined;
2666
+ readOnly?: boolean | undefined;
2667
+ } | undefined;
2668
+ createdAt: Date;
2669
+ }[];
2670
+ createdAt: Date;
2671
+ }, {
2672
+ tenant: {} & {
2673
+ name: string;
2674
+ oid: bigint;
2675
+ id: string;
2676
+ createdAt: Date;
2677
+ identifier: string;
2678
+ };
2679
+ slate: {
2680
+ registry: {
2681
+ name: string;
2682
+ oid: bigint;
2683
+ id: string;
2684
+ createdAt: Date;
2685
+ identifier: string;
2686
+ status: RegistryStatus;
2687
+ isPredefined: boolean;
2688
+ url: string;
2689
+ encryptedReaderToken: string | null;
2690
+ changeNotificationCursor: string | null;
2691
+ tenantOid: bigint | null;
2692
+ lastSyncedAt: Date | null;
2693
+ };
2694
+ currentVersion: ({
2695
+ specification: {
2696
+ name: string;
2697
+ oid: bigint;
2698
+ id: string;
2699
+ slateOid: bigint;
2700
+ createdAt: Date;
2701
+ identifier: string;
2702
+ hash: string;
2703
+ key: string;
2704
+ protocolVersion: string;
2705
+ providerInfo: PrismaJson.SlateProviderInfo;
2706
+ configSchema: PrismaJson.SlateConfigSchema;
2707
+ authMethods: PrismaJson.SlateAuthMethods;
2708
+ actions: PrismaJson.SlateActions;
2709
+ mostRecentVersionOid: bigint;
2710
+ } | null;
2711
+ } & {
2712
+ oid: bigint;
2713
+ id: string;
2714
+ slateOid: bigint;
2715
+ createdAt: Date;
2716
+ status: SlateVersionStatus;
2717
+ isCurrent: boolean;
2718
+ willBeCurrent: boolean;
2719
+ version: string;
2720
+ versionIdOnRegistry: string;
2721
+ versionIdentifierOnRegistry: string;
2722
+ manifest: PrismaJson.SlateJson;
2723
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2724
+ registryOid: bigint;
2725
+ activeDeploymentOid: bigint | null;
2726
+ specificationOid: bigint | null;
2727
+ updatedAt: Date;
2728
+ lastDiscoveredAt: Date | null;
2729
+ }) | null;
2730
+ } & {
2731
+ name: string;
2732
+ oid: bigint;
2733
+ id: string;
2734
+ createdAt: Date;
2735
+ identifier: string;
2736
+ status: SlateStatus;
2737
+ registryOid: bigint;
2738
+ updatedAt: Date;
2739
+ description: string | null;
2740
+ currentVersionOid: bigint | null;
2741
+ slateScopeIdentifierOnRegistry: string;
2742
+ slateScopeIdOnRegistry: string;
2743
+ slateFullIdentifierOnRegistry: string;
2744
+ slateIdentifierOnRegistry: string;
2745
+ slateIdOnRegistry: string;
2746
+ };
2747
+ slateSpecification: {
2748
+ slate: {
2749
+ name: string;
2750
+ oid: bigint;
2751
+ id: string;
2752
+ createdAt: Date;
2753
+ identifier: string;
2754
+ status: SlateStatus;
2755
+ registryOid: bigint;
2756
+ updatedAt: Date;
2757
+ description: string | null;
2758
+ currentVersionOid: bigint | null;
2759
+ slateScopeIdentifierOnRegistry: string;
2760
+ slateScopeIdOnRegistry: string;
2761
+ slateFullIdentifierOnRegistry: string;
2762
+ slateIdentifierOnRegistry: string;
2763
+ slateIdOnRegistry: string;
2764
+ };
2765
+ slateAuthMethods: ({
2766
+ authMethod: {
2767
+ name: string;
2768
+ oid: bigint;
2769
+ id: string;
2770
+ type: SlateAuthMethodType;
2771
+ slateOid: bigint;
2772
+ createdAt: Date;
2773
+ identifier: string;
2774
+ hash: string;
2775
+ key: string;
2776
+ spec: PrismaJson.SlateAuthMethod;
2777
+ mostRecentSpecificationOid: bigint;
2778
+ };
2779
+ } & {
2780
+ oid: bigint;
2781
+ createdAt: Date;
2782
+ specificationOid: bigint;
2783
+ authMethodOid: bigint;
2784
+ })[];
2785
+ slateActions: ({
2786
+ action: {
2787
+ name: string;
2788
+ oid: bigint;
2789
+ id: string;
2790
+ type: SlateActionType;
2791
+ slateOid: bigint;
2792
+ createdAt: Date;
2793
+ identifier: string;
2794
+ hash: string;
2795
+ key: string;
2796
+ spec: PrismaJson.SlateAction;
2797
+ mostRecentSpecificationOid: bigint;
2798
+ };
2799
+ } & {
2800
+ oid: bigint;
2801
+ createdAt: Date;
2802
+ specificationOid: bigint;
2803
+ actionOid: bigint;
2804
+ })[];
2805
+ } & {
2806
+ name: string;
2807
+ oid: bigint;
2808
+ id: string;
2809
+ slateOid: bigint;
2810
+ createdAt: Date;
2811
+ identifier: string;
2812
+ hash: string;
2813
+ key: string;
2814
+ protocolVersion: string;
2815
+ providerInfo: PrismaJson.SlateProviderInfo;
2816
+ configSchema: PrismaJson.SlateConfigSchema;
2817
+ authMethods: PrismaJson.SlateAuthMethods;
2818
+ actions: PrismaJson.SlateActions;
2819
+ mostRecentVersionOid: bigint;
2820
+ };
2821
+ }>;
2822
+ };
2823
+ slateInstance: {
2824
+ list: Handler<Partial<Pick<{
2825
+ tenantId: string;
2826
+ slateIds: string[] | undefined;
2827
+ }, "slateIds">> & {
2828
+ tenantId: string;
2829
+ } & {
2830
+ limit?: number;
2831
+ after?: string;
2832
+ before?: string;
2833
+ cursor?: string;
2834
+ order?: "asc" | "desc";
2835
+ }, {
2836
+ __typename: string;
2837
+ items: {
2838
+ object: string;
2839
+ id: string;
2840
+ slateId: string;
2841
+ lockedSlateVersionId: string | null;
2842
+ config: PrismaJson.AnyRecord;
2843
+ error: {
2844
+ code: string;
2845
+ message: string;
2846
+ } | null;
2847
+ createdAt: Date;
2848
+ updatedAt: Date;
2849
+ }[];
2850
+ pagination: {
2851
+ has_more_after: boolean;
2852
+ has_more_before: boolean;
2853
+ };
2854
+ }, {
2855
+ tenant: {} & {
2856
+ name: string;
2857
+ oid: bigint;
2858
+ id: string;
2859
+ createdAt: Date;
2860
+ identifier: string;
2861
+ };
2862
+ }>;
2863
+ create: Handler<Partial<Pick<{
2864
+ tenantId: string;
2865
+ slateId: string;
2866
+ config: Record<string, any>;
2867
+ lockedVersionId: string | undefined;
2868
+ }, "lockedVersionId">> & {
2869
+ slateId: string;
2870
+ tenantId: string;
2871
+ config: Record<string, any>;
2872
+ } & {
2873
+ limit?: number;
2874
+ after?: string;
2875
+ before?: string;
2876
+ cursor?: string;
2877
+ order?: "asc" | "desc";
2878
+ }, {
2879
+ object: string;
2880
+ id: string;
2881
+ slateId: string;
2882
+ lockedSlateVersionId: string | null;
2883
+ config: PrismaJson.AnyRecord;
2884
+ error: {
2885
+ code: string;
2886
+ message: string;
2887
+ } | null;
2888
+ createdAt: Date;
2889
+ updatedAt: Date;
2890
+ }, {
2891
+ tenant: {} & {
2892
+ name: string;
2893
+ oid: bigint;
2894
+ id: string;
2895
+ createdAt: Date;
2896
+ identifier: string;
2897
+ };
2898
+ }>;
2899
+ get: Handler<UndefinedIsOptional<{
2900
+ tenantId: string;
2901
+ slateInstanceId: string;
2902
+ }>, {
2903
+ object: string;
2904
+ id: string;
2905
+ slateId: string;
2906
+ lockedSlateVersionId: string | null;
2907
+ config: PrismaJson.AnyRecord;
2908
+ error: {
2909
+ code: string;
2910
+ message: string;
2911
+ } | null;
2912
+ createdAt: Date;
2913
+ updatedAt: Date;
2914
+ }, {
2915
+ tenant: {} & {
2916
+ name: string;
2917
+ oid: bigint;
2918
+ id: string;
2919
+ createdAt: Date;
2920
+ identifier: string;
2921
+ };
2922
+ slateInstance: {
2923
+ slate: {
2924
+ name: string;
2925
+ oid: bigint;
2926
+ id: string;
2927
+ createdAt: Date;
2928
+ identifier: string;
2929
+ status: SlateStatus;
2930
+ registryOid: bigint;
2931
+ updatedAt: Date;
2932
+ description: string | null;
2933
+ currentVersionOid: bigint | null;
2934
+ slateScopeIdentifierOnRegistry: string;
2935
+ slateScopeIdOnRegistry: string;
2936
+ slateFullIdentifierOnRegistry: string;
2937
+ slateIdentifierOnRegistry: string;
2938
+ slateIdOnRegistry: string;
2939
+ };
2940
+ lockedSlateVersion: {
2941
+ oid: bigint;
2942
+ id: string;
2943
+ slateOid: bigint;
2944
+ createdAt: Date;
2945
+ status: SlateVersionStatus;
2946
+ isCurrent: boolean;
2947
+ willBeCurrent: boolean;
2948
+ version: string;
2949
+ versionIdOnRegistry: string;
2950
+ versionIdentifierOnRegistry: string;
2951
+ manifest: PrismaJson.SlateJson;
2952
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2953
+ registryOid: bigint;
2954
+ activeDeploymentOid: bigint | null;
2955
+ specificationOid: bigint | null;
2956
+ updatedAt: Date;
2957
+ lastDiscoveredAt: Date | null;
2958
+ } | null;
2959
+ currentConfig: ({
2960
+ schema: {
2961
+ oid: bigint;
2962
+ id: string;
2963
+ slateOid: bigint;
2964
+ createdAt: Date;
2965
+ identifier: string;
2966
+ hash: string;
2967
+ mostRecentSpecificationOid: bigint;
2968
+ schema: PrismaJson.SlateConfigSchema;
2969
+ };
2970
+ } & {
2971
+ oid: bigint;
2972
+ id: string;
2973
+ createdAt: Date;
2974
+ tenantOid: bigint;
2975
+ errorCode: string | null;
2976
+ errorMessage: string | null;
2977
+ instanceOid: bigint;
2978
+ schemaOid: bigint;
2979
+ value: PrismaJson.AnyRecord;
2980
+ }) | null;
2981
+ } & {
2982
+ oid: bigint;
2983
+ id: string;
2984
+ slateOid: bigint;
2985
+ createdAt: Date;
2986
+ tenantOid: bigint;
2987
+ updatedAt: Date;
2988
+ lockedSlateVersionOid: bigint | null;
2989
+ currentConfigOid: bigint | null;
2990
+ defaultAuthConfigOid: bigint | null;
2991
+ };
2992
+ }>;
2993
+ };
2994
+ slateOAuthCredentials: {
2995
+ list: Handler<Partial<Pick<{
2996
+ tenantId: string;
2997
+ slateIds: string[] | undefined;
2998
+ }, "slateIds">> & {
2999
+ tenantId: string;
3000
+ } & {
3001
+ limit?: number;
3002
+ after?: string;
3003
+ before?: string;
3004
+ cursor?: string;
3005
+ order?: "asc" | "desc";
3006
+ }, {
3007
+ __typename: string;
3008
+ items: {
3009
+ object: string;
3010
+ id: string;
3011
+ slateId: string;
3012
+ clientId: string;
3013
+ scopes: string[];
3014
+ createdAt: Date;
3015
+ updatedAt: Date;
3016
+ }[];
3017
+ pagination: {
3018
+ has_more_after: boolean;
3019
+ has_more_before: boolean;
3020
+ };
3021
+ }, {
3022
+ tenant: {} & {
3023
+ name: string;
3024
+ oid: bigint;
3025
+ id: string;
3026
+ createdAt: Date;
3027
+ identifier: string;
3028
+ };
3029
+ }>;
3030
+ create: Handler<Partial<Pick<{
3031
+ tenantId: string;
3032
+ slateId: string;
3033
+ clientId: string;
3034
+ clientSecret: string;
3035
+ scopes: string[];
3036
+ }, never>> & {
3037
+ slateId: string;
3038
+ scopes: string[];
3039
+ clientId: string;
3040
+ tenantId: string;
3041
+ clientSecret: string;
3042
+ } & {
3043
+ limit?: number;
3044
+ after?: string;
3045
+ before?: string;
3046
+ cursor?: string;
3047
+ order?: "asc" | "desc";
3048
+ }, {
3049
+ object: string;
3050
+ id: string;
3051
+ slateId: string;
3052
+ clientId: string;
3053
+ scopes: string[];
3054
+ createdAt: Date;
3055
+ updatedAt: Date;
3056
+ }, {
3057
+ tenant: {} & {
3058
+ name: string;
3059
+ oid: bigint;
3060
+ id: string;
3061
+ createdAt: Date;
3062
+ identifier: string;
3063
+ };
3064
+ }>;
3065
+ get: Handler<UndefinedIsOptional<{
3066
+ tenantId: string;
3067
+ slateOAuthCredentialsId: string;
3068
+ }>, {
3069
+ object: string;
3070
+ id: string;
3071
+ slateId: string;
3072
+ clientId: string;
3073
+ scopes: string[];
3074
+ createdAt: Date;
3075
+ updatedAt: Date;
3076
+ }, {
3077
+ tenant: {} & {
3078
+ name: string;
3079
+ oid: bigint;
3080
+ id: string;
3081
+ createdAt: Date;
3082
+ identifier: string;
3083
+ };
3084
+ slateOAuthCredentials: {
3085
+ slate: {
3086
+ name: string;
3087
+ oid: bigint;
3088
+ id: string;
3089
+ createdAt: Date;
3090
+ identifier: string;
3091
+ status: SlateStatus;
3092
+ registryOid: bigint;
3093
+ updatedAt: Date;
3094
+ description: string | null;
3095
+ currentVersionOid: bigint | null;
3096
+ slateScopeIdentifierOnRegistry: string;
3097
+ slateScopeIdOnRegistry: string;
3098
+ slateFullIdentifierOnRegistry: string;
3099
+ slateIdentifierOnRegistry: string;
3100
+ slateIdOnRegistry: string;
3101
+ };
3102
+ } & {
3103
+ oid: bigint;
3104
+ id: string;
3105
+ slateOid: bigint;
3106
+ createdAt: Date;
3107
+ tenantOid: bigint;
3108
+ updatedAt: Date;
3109
+ scopes: string[];
3110
+ clientId: string;
3111
+ secretOid: bigint;
3112
+ };
3113
+ }>;
3114
+ };
3115
+ slateOAuthSetup: {
3116
+ list: Handler<Partial<Pick<{
3117
+ tenantId: string;
3118
+ slateIds: string[] | undefined;
3119
+ }, "slateIds">> & {
3120
+ tenantId: string;
3121
+ } & {
3122
+ limit?: number;
3123
+ after?: string;
3124
+ before?: string;
3125
+ cursor?: string;
3126
+ order?: "asc" | "desc";
3127
+ }, {
3128
+ __typename: string;
3129
+ items: {
3130
+ object: string;
3131
+ id: string;
3132
+ slateId: string;
3133
+ status: SlateInstanceOAuthSetupStatus;
3134
+ redirectUrl: string;
3135
+ url: string | null;
3136
+ error: {
3137
+ code: string;
3138
+ message: string;
3139
+ } | null;
3140
+ credentials: {
3141
+ object: string;
3142
+ id: string;
3143
+ slateId: string;
3144
+ clientId: string;
3145
+ scopes: string[];
3146
+ createdAt: Date;
3147
+ updatedAt: Date;
3148
+ };
3149
+ authConfig: {
3150
+ object: string;
3151
+ id: string;
3152
+ slateId: string;
3153
+ status: "active" | "failed" | "processing";
3154
+ error: {
3155
+ code: string;
3156
+ message: string;
3157
+ } | null;
3158
+ profile: {
3159
+ id: string | null;
3160
+ email: string | null;
3161
+ name: string | null;
3162
+ data: PrismaJson.AuthProfile;
3163
+ } | null;
3164
+ authMethod: {
3165
+ object: string;
3166
+ id: string;
3167
+ slateId: string;
3168
+ identifier: string;
3169
+ name: string;
3170
+ key: string;
3171
+ type: SlateAuthMethodType;
3172
+ capabilities: {
3173
+ getDefaultInput?: {
3174
+ enabled: boolean;
3175
+ } | undefined;
3176
+ handleChangedInput?: {
3177
+ enabled: boolean;
3178
+ } | undefined;
3179
+ handleTokenRefresh?: {
3180
+ enabled: boolean;
3181
+ } | undefined;
3182
+ getProfile?: {
3183
+ enabled: boolean;
3184
+ } | undefined;
3185
+ };
3186
+ inputSchema: Record<string, any>;
3187
+ outputSchema: Record<string, any>;
3188
+ scopes: {
3189
+ id: string;
3190
+ title: string;
3191
+ description?: string | undefined;
3192
+ }[] | undefined;
3193
+ createdAt: Date;
3194
+ };
3195
+ oauthCredentials: {
3196
+ object: string;
3197
+ id: string;
3198
+ slateId: string;
3199
+ clientId: string;
3200
+ scopes: string[];
3201
+ createdAt: Date;
3202
+ updatedAt: Date;
3203
+ } | null;
3204
+ tokenExpiresAt: Date | null;
3205
+ createdAt: Date;
3206
+ updatedAt: Date;
3207
+ } | null;
3208
+ createdAt: Date;
3209
+ updatedAt: Date;
3210
+ }[];
3211
+ pagination: {
3212
+ has_more_after: boolean;
3213
+ has_more_before: boolean;
3214
+ };
3215
+ }, {
3216
+ tenant: {} & {
3217
+ name: string;
3218
+ oid: bigint;
3219
+ id: string;
3220
+ createdAt: Date;
3221
+ identifier: string;
3222
+ };
3223
+ }>;
3224
+ create: Handler<Partial<Pick<{
3225
+ tenantId: string;
3226
+ slateId: string;
3227
+ slateOAuthCredentialsId: string;
3228
+ slateInstanceId: string | undefined;
3229
+ authMethodId: string | undefined;
3230
+ redirectUrl: string;
3231
+ input: Record<string, any>;
3232
+ }, "slateInstanceId" | "authMethodId">> & {
3233
+ slateId: string;
3234
+ input: Record<string, any>;
3235
+ tenantId: string;
3236
+ redirectUrl: string;
3237
+ slateOAuthCredentialsId: string;
3238
+ } & {
3239
+ limit?: number;
3240
+ after?: string;
3241
+ before?: string;
3242
+ cursor?: string;
3243
+ order?: "asc" | "desc";
3244
+ }, {
3245
+ object: string;
3246
+ id: string;
3247
+ slateId: string;
3248
+ status: SlateInstanceOAuthSetupStatus;
3249
+ redirectUrl: string;
3250
+ url: string | null;
3251
+ error: {
3252
+ code: string;
3253
+ message: string;
3254
+ } | null;
3255
+ credentials: {
3256
+ object: string;
3257
+ id: string;
3258
+ slateId: string;
3259
+ clientId: string;
3260
+ scopes: string[];
3261
+ createdAt: Date;
3262
+ updatedAt: Date;
3263
+ };
3264
+ authConfig: {
3265
+ object: string;
3266
+ id: string;
3267
+ slateId: string;
3268
+ status: "active" | "failed" | "processing";
3269
+ error: {
3270
+ code: string;
3271
+ message: string;
3272
+ } | null;
3273
+ profile: {
3274
+ id: string | null;
3275
+ email: string | null;
3276
+ name: string | null;
3277
+ data: PrismaJson.AuthProfile;
3278
+ } | null;
3279
+ authMethod: {
3280
+ object: string;
3281
+ id: string;
3282
+ slateId: string;
3283
+ identifier: string;
3284
+ name: string;
3285
+ key: string;
3286
+ type: SlateAuthMethodType;
3287
+ capabilities: {
3288
+ getDefaultInput?: {
3289
+ enabled: boolean;
3290
+ } | undefined;
3291
+ handleChangedInput?: {
3292
+ enabled: boolean;
3293
+ } | undefined;
3294
+ handleTokenRefresh?: {
3295
+ enabled: boolean;
3296
+ } | undefined;
3297
+ getProfile?: {
3298
+ enabled: boolean;
3299
+ } | undefined;
3300
+ };
3301
+ inputSchema: Record<string, any>;
3302
+ outputSchema: Record<string, any>;
3303
+ scopes: {
3304
+ id: string;
3305
+ title: string;
3306
+ description?: string | undefined;
3307
+ }[] | undefined;
3308
+ createdAt: Date;
3309
+ };
3310
+ oauthCredentials: {
3311
+ object: string;
3312
+ id: string;
3313
+ slateId: string;
3314
+ clientId: string;
3315
+ scopes: string[];
3316
+ createdAt: Date;
3317
+ updatedAt: Date;
3318
+ } | null;
3319
+ tokenExpiresAt: Date | null;
3320
+ createdAt: Date;
3321
+ updatedAt: Date;
3322
+ } | null;
3323
+ createdAt: Date;
3324
+ updatedAt: Date;
3325
+ }, {
3326
+ tenant: {} & {
3327
+ name: string;
3328
+ oid: bigint;
3329
+ id: string;
3330
+ createdAt: Date;
3331
+ identifier: string;
3332
+ };
3333
+ }>;
3334
+ get: Handler<UndefinedIsOptional<{
3335
+ tenantId: string;
3336
+ slateOAuthSetupId: string;
3337
+ }>, {
3338
+ object: string;
3339
+ id: string;
3340
+ slateId: string;
3341
+ status: SlateInstanceOAuthSetupStatus;
3342
+ redirectUrl: string;
3343
+ url: string | null;
3344
+ error: {
3345
+ code: string;
3346
+ message: string;
3347
+ } | null;
3348
+ credentials: {
3349
+ object: string;
3350
+ id: string;
3351
+ slateId: string;
3352
+ clientId: string;
3353
+ scopes: string[];
3354
+ createdAt: Date;
3355
+ updatedAt: Date;
3356
+ };
3357
+ authConfig: {
3358
+ object: string;
3359
+ id: string;
3360
+ slateId: string;
3361
+ status: "active" | "failed" | "processing";
3362
+ error: {
3363
+ code: string;
3364
+ message: string;
3365
+ } | null;
3366
+ profile: {
3367
+ id: string | null;
3368
+ email: string | null;
3369
+ name: string | null;
3370
+ data: PrismaJson.AuthProfile;
3371
+ } | null;
3372
+ authMethod: {
3373
+ object: string;
3374
+ id: string;
3375
+ slateId: string;
3376
+ identifier: string;
3377
+ name: string;
3378
+ key: string;
3379
+ type: SlateAuthMethodType;
3380
+ capabilities: {
3381
+ getDefaultInput?: {
3382
+ enabled: boolean;
3383
+ } | undefined;
3384
+ handleChangedInput?: {
3385
+ enabled: boolean;
3386
+ } | undefined;
3387
+ handleTokenRefresh?: {
3388
+ enabled: boolean;
3389
+ } | undefined;
3390
+ getProfile?: {
3391
+ enabled: boolean;
3392
+ } | undefined;
3393
+ };
3394
+ inputSchema: Record<string, any>;
3395
+ outputSchema: Record<string, any>;
3396
+ scopes: {
3397
+ id: string;
3398
+ title: string;
3399
+ description?: string | undefined;
3400
+ }[] | undefined;
3401
+ createdAt: Date;
3402
+ };
3403
+ oauthCredentials: {
3404
+ object: string;
3405
+ id: string;
3406
+ slateId: string;
3407
+ clientId: string;
3408
+ scopes: string[];
3409
+ createdAt: Date;
3410
+ updatedAt: Date;
3411
+ } | null;
3412
+ tokenExpiresAt: Date | null;
3413
+ createdAt: Date;
3414
+ updatedAt: Date;
3415
+ } | null;
3416
+ createdAt: Date;
3417
+ updatedAt: Date;
3418
+ }, {
3419
+ tenant: {} & {
3420
+ name: string;
3421
+ oid: bigint;
3422
+ id: string;
3423
+ createdAt: Date;
3424
+ identifier: string;
3425
+ };
3426
+ slateOAuthSetup: {
3427
+ slate: {
3428
+ name: string;
3429
+ oid: bigint;
3430
+ id: string;
3431
+ createdAt: Date;
3432
+ identifier: string;
3433
+ status: SlateStatus;
3434
+ registryOid: bigint;
3435
+ updatedAt: Date;
3436
+ description: string | null;
3437
+ currentVersionOid: bigint | null;
3438
+ slateScopeIdentifierOnRegistry: string;
3439
+ slateScopeIdOnRegistry: string;
3440
+ slateFullIdentifierOnRegistry: string;
3441
+ slateIdentifierOnRegistry: string;
3442
+ slateIdOnRegistry: string;
3443
+ };
3444
+ slateAuthConfig: ({
3445
+ authMethod: {
3446
+ name: string;
3447
+ oid: bigint;
3448
+ id: string;
3449
+ type: SlateAuthMethodType;
3450
+ slateOid: bigint;
3451
+ createdAt: Date;
3452
+ identifier: string;
3453
+ hash: string;
3454
+ key: string;
3455
+ spec: PrismaJson.SlateAuthMethod;
3456
+ mostRecentSpecificationOid: bigint;
3457
+ };
3458
+ } & {
3459
+ oid: bigint;
3460
+ id: string;
3461
+ type: SlateAuthConfigType;
3462
+ slateOid: bigint;
3463
+ createdAt: Date;
3464
+ tenantOid: bigint;
3465
+ updatedAt: Date;
3466
+ secretOid: bigint;
3467
+ isProcessing: boolean;
3468
+ errorCode: string | null;
3469
+ errorMessage: string | null;
3470
+ tokenExpiresAt: Date | null;
3471
+ profile: PrismaJson.AuthProfile | null;
3472
+ profileUid: string | null;
3473
+ profileEmail: string | null;
3474
+ profileName: string | null;
3475
+ instanceOid: bigint | null;
3476
+ authMethodOid: bigint;
3477
+ oauthCredentialsOid: bigint | null;
3478
+ }) | null;
3479
+ oauthCredentials: {
3480
+ oid: bigint;
3481
+ id: string;
3482
+ slateOid: bigint;
3483
+ createdAt: Date;
3484
+ tenantOid: bigint;
3485
+ updatedAt: Date;
3486
+ scopes: string[];
3487
+ clientId: string;
3488
+ secretOid: bigint;
3489
+ };
3490
+ } & {
3491
+ oid: bigint;
3492
+ id: string;
3493
+ slateOid: bigint;
3494
+ slateVersionOid: bigint;
3495
+ createdAt: Date;
3496
+ status: SlateInstanceOAuthSetupStatus;
3497
+ tenantOid: bigint;
3498
+ updatedAt: Date;
3499
+ secretOid: bigint;
3500
+ errorCode: string | null;
3501
+ errorMessage: string | null;
3502
+ authMethodOid: bigint;
3503
+ oauthCredentialsOid: bigint;
3504
+ redirectUrl: string;
3505
+ slateInstanceOid: bigint | null;
3506
+ slateAuthConfigOid: bigint | null;
3507
+ };
3508
+ }>;
3509
+ getLogs: Handler<UndefinedIsOptional<{
3510
+ tenantId: string;
3511
+ slateOAuthSetupId: string;
3512
+ }>, {
3513
+ object: string;
3514
+ id: string;
3515
+ slateId: string;
3516
+ error: {
3517
+ code: string;
3518
+ message: string;
3519
+ } | null;
3520
+ events: {
3521
+ object: string;
3522
+ id: string;
3523
+ type: SlateInstanceOAuthSetupEventType;
3524
+ invocation: {
3525
+ object: string;
3526
+ id: string;
3527
+ status: "succeeded" | "processing_result" | "invocation_failed" | "message_failed";
3528
+ requests: SlatesRequest[];
3529
+ responses: SlatesResponse[];
3530
+ error: unknown;
3531
+ logs: {
3532
+ timestamp: number;
3533
+ message: string;
3534
+ }[];
3535
+ provider: {
3536
+ id: string;
3537
+ status: import("@metorial-services/function-bay-client").FunctionInvocationStatus;
3538
+ billedTimeMs: number;
3539
+ computeTimeMs: number;
3540
+ } | null;
3541
+ createdAt: Date;
3542
+ } | null;
3543
+ createdAt: Date;
3544
+ }[];
3545
+ }, {
3546
+ tenant: {} & {
3547
+ name: string;
3548
+ oid: bigint;
3549
+ id: string;
3550
+ createdAt: Date;
3551
+ identifier: string;
3552
+ };
3553
+ slateOAuthSetup: {
3554
+ slate: {
3555
+ name: string;
3556
+ oid: bigint;
3557
+ id: string;
3558
+ createdAt: Date;
3559
+ identifier: string;
3560
+ status: SlateStatus;
3561
+ registryOid: bigint;
3562
+ updatedAt: Date;
3563
+ description: string | null;
3564
+ currentVersionOid: bigint | null;
3565
+ slateScopeIdentifierOnRegistry: string;
3566
+ slateScopeIdOnRegistry: string;
3567
+ slateFullIdentifierOnRegistry: string;
3568
+ slateIdentifierOnRegistry: string;
3569
+ slateIdOnRegistry: string;
3570
+ };
3571
+ slateAuthConfig: ({
3572
+ authMethod: {
3573
+ name: string;
3574
+ oid: bigint;
3575
+ id: string;
3576
+ type: SlateAuthMethodType;
3577
+ slateOid: bigint;
3578
+ createdAt: Date;
3579
+ identifier: string;
3580
+ hash: string;
3581
+ key: string;
3582
+ spec: PrismaJson.SlateAuthMethod;
3583
+ mostRecentSpecificationOid: bigint;
3584
+ };
3585
+ } & {
3586
+ oid: bigint;
3587
+ id: string;
3588
+ type: SlateAuthConfigType;
3589
+ slateOid: bigint;
3590
+ createdAt: Date;
3591
+ tenantOid: bigint;
3592
+ updatedAt: Date;
3593
+ secretOid: bigint;
3594
+ isProcessing: boolean;
3595
+ errorCode: string | null;
3596
+ errorMessage: string | null;
3597
+ tokenExpiresAt: Date | null;
3598
+ profile: PrismaJson.AuthProfile | null;
3599
+ profileUid: string | null;
3600
+ profileEmail: string | null;
3601
+ profileName: string | null;
3602
+ instanceOid: bigint | null;
3603
+ authMethodOid: bigint;
3604
+ oauthCredentialsOid: bigint | null;
3605
+ }) | null;
3606
+ oauthCredentials: {
3607
+ oid: bigint;
3608
+ id: string;
3609
+ slateOid: bigint;
3610
+ createdAt: Date;
3611
+ tenantOid: bigint;
3612
+ updatedAt: Date;
3613
+ scopes: string[];
3614
+ clientId: string;
3615
+ secretOid: bigint;
3616
+ };
3617
+ } & {
3618
+ oid: bigint;
3619
+ id: string;
3620
+ slateOid: bigint;
3621
+ slateVersionOid: bigint;
3622
+ createdAt: Date;
3623
+ status: SlateInstanceOAuthSetupStatus;
3624
+ tenantOid: bigint;
3625
+ updatedAt: Date;
3626
+ secretOid: bigint;
3627
+ errorCode: string | null;
3628
+ errorMessage: string | null;
3629
+ authMethodOid: bigint;
3630
+ oauthCredentialsOid: bigint;
3631
+ redirectUrl: string;
3632
+ slateInstanceOid: bigint | null;
3633
+ slateAuthConfigOid: bigint | null;
3634
+ };
3635
+ }>;
3636
+ };
3637
+ slateAuthConfig: {
3638
+ list: Handler<Partial<Pick<{
3639
+ tenantId: string;
3640
+ slateIds: string[] | undefined;
3641
+ }, "slateIds">> & {
3642
+ tenantId: string;
3643
+ } & {
3644
+ limit?: number;
3645
+ after?: string;
3646
+ before?: string;
3647
+ cursor?: string;
3648
+ order?: "asc" | "desc";
3649
+ }, {
3650
+ __typename: string;
3651
+ items: {
3652
+ object: string;
3653
+ id: string;
3654
+ slateId: string;
3655
+ status: "active" | "failed" | "processing";
3656
+ error: {
3657
+ code: string;
3658
+ message: string;
3659
+ } | null;
3660
+ profile: {
3661
+ id: string | null;
3662
+ email: string | null;
3663
+ name: string | null;
3664
+ data: PrismaJson.AuthProfile;
3665
+ } | null;
3666
+ authMethod: {
3667
+ object: string;
3668
+ id: string;
3669
+ slateId: string;
3670
+ identifier: string;
3671
+ name: string;
3672
+ key: string;
3673
+ type: SlateAuthMethodType;
3674
+ capabilities: {
3675
+ getDefaultInput?: {
3676
+ enabled: boolean;
3677
+ } | undefined;
3678
+ handleChangedInput?: {
3679
+ enabled: boolean;
3680
+ } | undefined;
3681
+ handleTokenRefresh?: {
3682
+ enabled: boolean;
3683
+ } | undefined;
3684
+ getProfile?: {
3685
+ enabled: boolean;
3686
+ } | undefined;
3687
+ };
3688
+ inputSchema: Record<string, any>;
3689
+ outputSchema: Record<string, any>;
3690
+ scopes: {
3691
+ id: string;
3692
+ title: string;
3693
+ description?: string | undefined;
3694
+ }[] | undefined;
3695
+ createdAt: Date;
3696
+ };
3697
+ oauthCredentials: {
3698
+ object: string;
3699
+ id: string;
3700
+ slateId: string;
3701
+ clientId: string;
3702
+ scopes: string[];
3703
+ createdAt: Date;
3704
+ updatedAt: Date;
3705
+ } | null;
3706
+ tokenExpiresAt: Date | null;
3707
+ createdAt: Date;
3708
+ updatedAt: Date;
3709
+ }[];
3710
+ pagination: {
3711
+ has_more_after: boolean;
3712
+ has_more_before: boolean;
3713
+ };
3714
+ }, {
3715
+ tenant: {} & {
3716
+ name: string;
3717
+ oid: bigint;
3718
+ id: string;
3719
+ createdAt: Date;
3720
+ identifier: string;
3721
+ };
3722
+ }>;
3723
+ create: Handler<Partial<Pick<{
3724
+ tenantId: string;
3725
+ slateId: string;
3726
+ slateInstanceId: string | undefined;
3727
+ authMethodId: string | undefined;
3728
+ authConfig: Record<string, any>;
3729
+ }, "slateInstanceId" | "authMethodId">> & {
3730
+ slateId: string;
3731
+ tenantId: string;
3732
+ authConfig: Record<string, any>;
3733
+ } & {
3734
+ limit?: number;
3735
+ after?: string;
3736
+ before?: string;
3737
+ cursor?: string;
3738
+ order?: "asc" | "desc";
3739
+ }, {
3740
+ object: string;
3741
+ id: string;
3742
+ slateId: string;
3743
+ status: "active" | "failed" | "processing";
3744
+ error: {
3745
+ code: string;
3746
+ message: string;
3747
+ } | null;
3748
+ profile: {
3749
+ id: string | null;
3750
+ email: string | null;
3751
+ name: string | null;
3752
+ data: PrismaJson.AuthProfile;
3753
+ } | null;
3754
+ authMethod: {
3755
+ object: string;
3756
+ id: string;
3757
+ slateId: string;
3758
+ identifier: string;
3759
+ name: string;
3760
+ key: string;
3761
+ type: SlateAuthMethodType;
3762
+ capabilities: {
3763
+ getDefaultInput?: {
3764
+ enabled: boolean;
3765
+ } | undefined;
3766
+ handleChangedInput?: {
3767
+ enabled: boolean;
3768
+ } | undefined;
3769
+ handleTokenRefresh?: {
3770
+ enabled: boolean;
3771
+ } | undefined;
3772
+ getProfile?: {
3773
+ enabled: boolean;
3774
+ } | undefined;
3775
+ };
3776
+ inputSchema: Record<string, any>;
3777
+ outputSchema: Record<string, any>;
3778
+ scopes: {
3779
+ id: string;
3780
+ title: string;
3781
+ description?: string | undefined;
3782
+ }[] | undefined;
3783
+ createdAt: Date;
3784
+ };
3785
+ oauthCredentials: {
3786
+ object: string;
3787
+ id: string;
3788
+ slateId: string;
3789
+ clientId: string;
3790
+ scopes: string[];
3791
+ createdAt: Date;
3792
+ updatedAt: Date;
3793
+ } | null;
3794
+ tokenExpiresAt: Date | null;
3795
+ createdAt: Date;
3796
+ updatedAt: Date;
3797
+ }, {
3798
+ tenant: {} & {
3799
+ name: string;
3800
+ oid: bigint;
3801
+ id: string;
3802
+ createdAt: Date;
3803
+ identifier: string;
3804
+ };
3805
+ }>;
3806
+ get: Handler<UndefinedIsOptional<{
3807
+ tenantId: string;
3808
+ slateAuthConfigId: string;
3809
+ }>, {
3810
+ object: string;
3811
+ id: string;
3812
+ slateId: string;
3813
+ status: "active" | "failed" | "processing";
3814
+ error: {
3815
+ code: string;
3816
+ message: string;
3817
+ } | null;
3818
+ profile: {
3819
+ id: string | null;
3820
+ email: string | null;
3821
+ name: string | null;
3822
+ data: PrismaJson.AuthProfile;
3823
+ } | null;
3824
+ authMethod: {
3825
+ object: string;
3826
+ id: string;
3827
+ slateId: string;
3828
+ identifier: string;
3829
+ name: string;
3830
+ key: string;
3831
+ type: SlateAuthMethodType;
3832
+ capabilities: {
3833
+ getDefaultInput?: {
3834
+ enabled: boolean;
3835
+ } | undefined;
3836
+ handleChangedInput?: {
3837
+ enabled: boolean;
3838
+ } | undefined;
3839
+ handleTokenRefresh?: {
3840
+ enabled: boolean;
3841
+ } | undefined;
3842
+ getProfile?: {
3843
+ enabled: boolean;
3844
+ } | undefined;
3845
+ };
3846
+ inputSchema: Record<string, any>;
3847
+ outputSchema: Record<string, any>;
3848
+ scopes: {
3849
+ id: string;
3850
+ title: string;
3851
+ description?: string | undefined;
3852
+ }[] | undefined;
3853
+ createdAt: Date;
3854
+ };
3855
+ oauthCredentials: {
3856
+ object: string;
3857
+ id: string;
3858
+ slateId: string;
3859
+ clientId: string;
3860
+ scopes: string[];
3861
+ createdAt: Date;
3862
+ updatedAt: Date;
3863
+ } | null;
3864
+ tokenExpiresAt: Date | null;
3865
+ createdAt: Date;
3866
+ updatedAt: Date;
3867
+ }, {
3868
+ tenant: {} & {
3869
+ name: string;
3870
+ oid: bigint;
3871
+ id: string;
3872
+ createdAt: Date;
3873
+ identifier: string;
3874
+ };
3875
+ slateAuthConfig: {
3876
+ slate: {
3877
+ name: string;
3878
+ oid: bigint;
3879
+ id: string;
3880
+ createdAt: Date;
3881
+ identifier: string;
3882
+ status: SlateStatus;
3883
+ registryOid: bigint;
3884
+ updatedAt: Date;
3885
+ description: string | null;
3886
+ currentVersionOid: bigint | null;
3887
+ slateScopeIdentifierOnRegistry: string;
3888
+ slateScopeIdOnRegistry: string;
3889
+ slateFullIdentifierOnRegistry: string;
3890
+ slateIdentifierOnRegistry: string;
3891
+ slateIdOnRegistry: string;
3892
+ };
3893
+ oauthCredentials: {
3894
+ oid: bigint;
3895
+ id: string;
3896
+ slateOid: bigint;
3897
+ createdAt: Date;
3898
+ tenantOid: bigint;
3899
+ updatedAt: Date;
3900
+ scopes: string[];
3901
+ clientId: string;
3902
+ secretOid: bigint;
3903
+ } | null;
3904
+ instance: {
3905
+ oid: bigint;
3906
+ id: string;
3907
+ slateOid: bigint;
3908
+ createdAt: Date;
3909
+ tenantOid: bigint;
3910
+ updatedAt: Date;
3911
+ lockedSlateVersionOid: bigint | null;
3912
+ currentConfigOid: bigint | null;
3913
+ defaultAuthConfigOid: bigint | null;
3914
+ } | null;
3915
+ authMethod: {
3916
+ name: string;
3917
+ oid: bigint;
3918
+ id: string;
3919
+ type: SlateAuthMethodType;
3920
+ slateOid: bigint;
3921
+ createdAt: Date;
3922
+ identifier: string;
3923
+ hash: string;
3924
+ key: string;
3925
+ spec: PrismaJson.SlateAuthMethod;
3926
+ mostRecentSpecificationOid: bigint;
3927
+ };
3928
+ } & {
3929
+ oid: bigint;
3930
+ id: string;
3931
+ type: SlateAuthConfigType;
3932
+ slateOid: bigint;
3933
+ createdAt: Date;
3934
+ tenantOid: bigint;
3935
+ updatedAt: Date;
3936
+ secretOid: bigint;
3937
+ isProcessing: boolean;
3938
+ errorCode: string | null;
3939
+ errorMessage: string | null;
3940
+ tokenExpiresAt: Date | null;
3941
+ profile: PrismaJson.AuthProfile | null;
3942
+ profileUid: string | null;
3943
+ profileEmail: string | null;
3944
+ profileName: string | null;
3945
+ instanceOid: bigint | null;
3946
+ authMethodOid: bigint;
3947
+ oauthCredentialsOid: bigint | null;
3948
+ };
3949
+ }>;
3950
+ };
3951
+ slateSession: {
3952
+ list: Handler<Partial<Pick<{
3953
+ tenantId: string;
3954
+ slateIds: string[] | undefined;
3955
+ }, "slateIds">> & {
3956
+ tenantId: string;
3957
+ } & {
3958
+ limit?: number;
3959
+ after?: string;
3960
+ before?: string;
3961
+ cursor?: string;
3962
+ order?: "asc" | "desc";
3963
+ }, {
3964
+ __typename: string;
3965
+ items: {
3966
+ object: string;
3967
+ id: string;
3968
+ slateId: string;
3969
+ slateInstanceId: string;
3970
+ createdAt: Date;
3971
+ lastActiveAt: Date | null;
3972
+ }[];
3973
+ pagination: {
3974
+ has_more_after: boolean;
3975
+ has_more_before: boolean;
3976
+ };
3977
+ }, {
3978
+ tenant: {} & {
3979
+ name: string;
3980
+ oid: bigint;
3981
+ id: string;
3982
+ createdAt: Date;
3983
+ identifier: string;
3984
+ };
3985
+ }>;
3986
+ create: Handler<Partial<Pick<{
3987
+ tenantId: string;
3988
+ slateId: string;
3989
+ slateInstanceId: string;
3990
+ }, never>> & {
3991
+ slateId: string;
3992
+ tenantId: string;
3993
+ slateInstanceId: string;
3994
+ } & {
3995
+ limit?: number;
3996
+ after?: string;
3997
+ before?: string;
3998
+ cursor?: string;
3999
+ order?: "asc" | "desc";
4000
+ }, {
4001
+ object: string;
4002
+ id: string;
4003
+ slateId: string;
4004
+ slateInstanceId: string;
4005
+ createdAt: Date;
4006
+ lastActiveAt: Date | null;
4007
+ }, {
4008
+ tenant: {} & {
4009
+ name: string;
4010
+ oid: bigint;
4011
+ id: string;
4012
+ createdAt: Date;
4013
+ identifier: string;
4014
+ };
4015
+ }>;
4016
+ get: Handler<UndefinedIsOptional<{
4017
+ tenantId: string;
4018
+ slateSessionId: string;
4019
+ }>, {
4020
+ object: string;
4021
+ id: string;
4022
+ slateId: string;
4023
+ slateInstanceId: string;
4024
+ createdAt: Date;
4025
+ lastActiveAt: Date | null;
4026
+ }, {
4027
+ tenant: {} & {
4028
+ name: string;
4029
+ oid: bigint;
4030
+ id: string;
4031
+ createdAt: Date;
4032
+ identifier: string;
4033
+ };
4034
+ slateSession: {
4035
+ slate: {
4036
+ name: string;
4037
+ oid: bigint;
4038
+ id: string;
4039
+ createdAt: Date;
4040
+ identifier: string;
4041
+ status: SlateStatus;
4042
+ registryOid: bigint;
4043
+ updatedAt: Date;
4044
+ description: string | null;
4045
+ currentVersionOid: bigint | null;
4046
+ slateScopeIdentifierOnRegistry: string;
4047
+ slateScopeIdOnRegistry: string;
4048
+ slateFullIdentifierOnRegistry: string;
4049
+ slateIdentifierOnRegistry: string;
4050
+ slateIdOnRegistry: string;
4051
+ };
4052
+ slateInstance: {
4053
+ oid: bigint;
4054
+ id: string;
4055
+ slateOid: bigint;
4056
+ createdAt: Date;
4057
+ tenantOid: bigint;
4058
+ updatedAt: Date;
4059
+ lockedSlateVersionOid: bigint | null;
4060
+ currentConfigOid: bigint | null;
4061
+ defaultAuthConfigOid: bigint | null;
4062
+ };
4063
+ } & {
4064
+ oid: bigint;
4065
+ id: string;
4066
+ slateOid: bigint;
4067
+ slateVersionOid: bigint;
4068
+ createdAt: Date;
4069
+ tenantOid: bigint;
4070
+ slateInstanceOid: bigint;
4071
+ lastActiveAt: Date | null;
4072
+ };
4073
+ }>;
4074
+ };
4075
+ slateSessionToolCall: {
4076
+ list: Handler<Partial<Pick<{
4077
+ tenantId: string;
4078
+ slateIds: string[] | undefined;
4079
+ }, "slateIds">> & {
4080
+ tenantId: string;
4081
+ } & {
4082
+ limit?: number;
4083
+ after?: string;
4084
+ before?: string;
4085
+ cursor?: string;
4086
+ order?: "asc" | "desc";
4087
+ }, {
4088
+ __typename: string;
4089
+ items: {
4090
+ object: string;
4091
+ id: string;
4092
+ sessionId: string;
4093
+ slateVersionId: string;
4094
+ action: {
4095
+ object: string;
4096
+ id: string;
4097
+ key: string;
4098
+ name: string;
4099
+ };
4100
+ createdAt: Date;
4101
+ }[];
4102
+ pagination: {
4103
+ has_more_after: boolean;
4104
+ has_more_before: boolean;
4105
+ };
4106
+ }, {
4107
+ tenant: {} & {
4108
+ name: string;
4109
+ oid: bigint;
4110
+ id: string;
4111
+ createdAt: Date;
4112
+ identifier: string;
4113
+ };
4114
+ }>;
4115
+ call: Handler<Partial<Pick<{
4116
+ tenantId: string;
4117
+ sessionId: string;
4118
+ toolId: string;
4119
+ authConfigId: string | undefined;
4120
+ input: Record<string, any>;
4121
+ participants: UndefinedIsOptional<{
4122
+ type: "hub" | "consumer";
4123
+ id: string;
4124
+ name: string;
4125
+ description: string | undefined;
4126
+ metadata: Record<string, any> | undefined;
4127
+ }>[];
4128
+ }, "authConfigId">> & {
4129
+ input: Record<string, any>;
4130
+ tenantId: string;
4131
+ participants: UndefinedIsOptional<{
4132
+ type: "hub" | "consumer";
4133
+ id: string;
4134
+ name: string;
4135
+ description: string | undefined;
4136
+ metadata: Record<string, any> | undefined;
4137
+ }>[];
4138
+ sessionId: string;
4139
+ toolId: string;
4140
+ } & {
4141
+ limit?: number;
4142
+ after?: string;
4143
+ before?: string;
4144
+ cursor?: string;
4145
+ order?: "asc" | "desc";
4146
+ }, {
4147
+ call: undefined;
4148
+ toolCallId: string;
4149
+ status: "error";
4150
+ error: InvocationError;
4151
+ output?: undefined;
4152
+ message?: undefined;
4153
+ } | {
4154
+ call: undefined;
4155
+ toolCallId: string;
4156
+ status: "success";
4157
+ output: Record<string, any>;
4158
+ message: string | undefined;
4159
+ error?: undefined;
4160
+ }, {}>;
4161
+ get: Handler<UndefinedIsOptional<{
4162
+ tenantId: string;
4163
+ slateSessionToolCallId: string;
4164
+ }>, {
4165
+ object: string;
4166
+ id: string;
4167
+ sessionId: string;
4168
+ slateVersionId: string;
4169
+ action: {
4170
+ object: string;
4171
+ id: string;
4172
+ key: string;
4173
+ name: string;
4174
+ };
4175
+ createdAt: Date;
4176
+ }, {
4177
+ tenant: {} & {
4178
+ name: string;
4179
+ oid: bigint;
4180
+ id: string;
4181
+ createdAt: Date;
4182
+ identifier: string;
4183
+ };
4184
+ slateSessionToolCall: {
4185
+ slateVersion: {
4186
+ oid: bigint;
4187
+ id: string;
4188
+ slateOid: bigint;
4189
+ createdAt: Date;
4190
+ status: SlateVersionStatus;
4191
+ isCurrent: boolean;
4192
+ willBeCurrent: boolean;
4193
+ version: string;
4194
+ versionIdOnRegistry: string;
4195
+ versionIdentifierOnRegistry: string;
4196
+ manifest: PrismaJson.SlateJson;
4197
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
4198
+ registryOid: bigint;
4199
+ activeDeploymentOid: bigint | null;
4200
+ specificationOid: bigint | null;
4201
+ updatedAt: Date;
4202
+ lastDiscoveredAt: Date | null;
4203
+ };
4204
+ invocation: {
4205
+ oid: bigint;
4206
+ id: string;
4207
+ createdAt: Date;
4208
+ isPending: boolean;
4209
+ hasResponseError: boolean;
4210
+ hasInvocationError: boolean;
4211
+ providerInvocationId: string;
4212
+ deploymentOid: bigint;
4213
+ bucketOid: number;
4214
+ };
4215
+ action: {
4216
+ name: string;
4217
+ oid: bigint;
4218
+ id: string;
4219
+ type: SlateActionType;
4220
+ slateOid: bigint;
4221
+ createdAt: Date;
4222
+ identifier: string;
4223
+ hash: string;
4224
+ key: string;
4225
+ spec: PrismaJson.SlateAction;
4226
+ mostRecentSpecificationOid: bigint;
4227
+ };
4228
+ session: {
4229
+ oid: bigint;
4230
+ id: string;
4231
+ slateOid: bigint;
4232
+ slateVersionOid: bigint;
4233
+ createdAt: Date;
4234
+ tenantOid: bigint;
4235
+ slateInstanceOid: bigint;
4236
+ lastActiveAt: Date | null;
4237
+ };
4238
+ } & {
4239
+ oid: bigint;
4240
+ id: string;
4241
+ slateVersionOid: bigint;
4242
+ createdAt: Date;
4243
+ status: SlateSessionToolCallStatus;
4244
+ invocationOid: bigint;
4245
+ actionOid: bigint;
4246
+ sessionOid: bigint;
4247
+ };
4248
+ }>;
4249
+ getLogs: Handler<UndefinedIsOptional<{
4250
+ tenantId: string;
4251
+ slateSessionToolCallId: string;
4252
+ }>, {
4253
+ object: string;
4254
+ id: string;
4255
+ sessionId: string;
4256
+ slateVersionId: string;
4257
+ action: {
4258
+ object: string;
4259
+ id: string;
4260
+ key: string;
4261
+ name: string;
4262
+ };
4263
+ invocation: {
4264
+ object: string;
4265
+ id: string;
4266
+ status: "succeeded" | "processing_result" | "invocation_failed" | "message_failed";
4267
+ requests: SlatesRequest[];
4268
+ responses: SlatesResponse[];
4269
+ error: unknown;
4270
+ logs: {
4271
+ timestamp: number;
4272
+ message: string;
4273
+ }[];
4274
+ provider: {
4275
+ id: string;
4276
+ status: import("@metorial-services/function-bay-client").FunctionInvocationStatus;
4277
+ billedTimeMs: number;
4278
+ computeTimeMs: number;
4279
+ } | null;
4280
+ createdAt: Date;
4281
+ };
4282
+ createdAt: Date;
4283
+ }, {
4284
+ tenant: {} & {
4285
+ name: string;
4286
+ oid: bigint;
4287
+ id: string;
4288
+ createdAt: Date;
4289
+ identifier: string;
4290
+ };
4291
+ slateSessionToolCall: {
4292
+ slateVersion: {
4293
+ oid: bigint;
4294
+ id: string;
4295
+ slateOid: bigint;
4296
+ createdAt: Date;
4297
+ status: SlateVersionStatus;
4298
+ isCurrent: boolean;
4299
+ willBeCurrent: boolean;
4300
+ version: string;
4301
+ versionIdOnRegistry: string;
4302
+ versionIdentifierOnRegistry: string;
4303
+ manifest: PrismaJson.SlateJson;
4304
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
4305
+ registryOid: bigint;
4306
+ activeDeploymentOid: bigint | null;
4307
+ specificationOid: bigint | null;
4308
+ updatedAt: Date;
4309
+ lastDiscoveredAt: Date | null;
4310
+ };
4311
+ invocation: {
4312
+ oid: bigint;
4313
+ id: string;
4314
+ createdAt: Date;
4315
+ isPending: boolean;
4316
+ hasResponseError: boolean;
4317
+ hasInvocationError: boolean;
4318
+ providerInvocationId: string;
4319
+ deploymentOid: bigint;
4320
+ bucketOid: number;
4321
+ };
4322
+ action: {
4323
+ name: string;
4324
+ oid: bigint;
4325
+ id: string;
4326
+ type: SlateActionType;
4327
+ slateOid: bigint;
4328
+ createdAt: Date;
4329
+ identifier: string;
4330
+ hash: string;
4331
+ key: string;
4332
+ spec: PrismaJson.SlateAction;
4333
+ mostRecentSpecificationOid: bigint;
4334
+ };
4335
+ session: {
4336
+ oid: bigint;
4337
+ id: string;
4338
+ slateOid: bigint;
4339
+ slateVersionOid: bigint;
4340
+ createdAt: Date;
4341
+ tenantOid: bigint;
4342
+ slateInstanceOid: bigint;
4343
+ lastActiveAt: Date | null;
4344
+ };
4345
+ } & {
4346
+ oid: bigint;
4347
+ id: string;
4348
+ slateVersionOid: bigint;
4349
+ createdAt: Date;
4350
+ status: SlateSessionToolCallStatus;
4351
+ invocationOid: bigint;
4352
+ actionOid: bigint;
4353
+ sessionOid: bigint;
4354
+ };
4355
+ }>;
4356
+ };
4357
+ }>;
4358
+
4359
+ export {};