@slates/proto 1.0.0-rc.1 → 1.0.0-rc.2

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.
Files changed (38) hide show
  1. package/dist/handler/index.d.ts +2 -0
  2. package/dist/handler/index.d.ts.map +1 -0
  3. package/dist/handler/provider.d.ts +46 -0
  4. package/dist/handler/provider.d.ts.map +1 -0
  5. package/dist/index.cjs +2 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.d.ts +4 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.module.js +2 -0
  10. package/dist/index.module.js.map +1 -0
  11. package/dist/index.umd.js +2 -0
  12. package/dist/index.umd.js.map +1 -0
  13. package/dist/messages/action.d.ts +474 -0
  14. package/dist/messages/action.d.ts.map +1 -0
  15. package/dist/messages/auth.d.ts +496 -0
  16. package/dist/messages/auth.d.ts.map +1 -0
  17. package/dist/messages/config.d.ts +138 -0
  18. package/dist/messages/config.d.ts.map +1 -0
  19. package/dist/messages/controlFlow.d.ts +64 -0
  20. package/dist/messages/controlFlow.d.ts.map +1 -0
  21. package/dist/messages/identify.d.ts +48 -0
  22. package/dist/messages/identify.d.ts.map +1 -0
  23. package/dist/messages/index.d.ts +556 -0
  24. package/dist/messages/index.d.ts.map +1 -0
  25. package/dist/messages/log.d.ts +27 -0
  26. package/dist/messages/log.d.ts.map +1 -0
  27. package/dist/types/action.d.ts +98 -0
  28. package/dist/types/action.d.ts.map +1 -0
  29. package/dist/types/authMethod.d.ts +29 -0
  30. package/dist/types/authMethod.d.ts.map +1 -0
  31. package/dist/types/index.d.ts +4 -0
  32. package/dist/types/index.d.ts.map +1 -0
  33. package/dist/types/participant.d.ts +10 -0
  34. package/dist/types/participant.d.ts.map +1 -0
  35. package/package.json +7 -1
  36. package/src/messages/index.ts +2 -6
  37. package/src/messages/log.ts +0 -29
  38. package/tsconfig.json +0 -8
@@ -0,0 +1,64 @@
1
+ import z from 'zod';
2
+ export declare let slatesMessageHelloNotification: z.ZodObject<{
3
+ jsonrpc: z.ZodLiteral<"2.0">;
4
+ method: z.ZodLiteral<"slates/hello">;
5
+ params: z.ZodObject<{
6
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
7
+ }, z.core.$strip>;
8
+ }, z.core.$strip>;
9
+ export type SlatesMessageHelloNotification = z.infer<typeof slatesMessageHelloNotification>;
10
+ export declare let slatesMessageSetParticipantsNotification: z.ZodObject<{
11
+ jsonrpc: z.ZodLiteral<"2.0">;
12
+ method: z.ZodLiteral<"slates/participant.set">;
13
+ params: z.ZodObject<{
14
+ participants: z.ZodArray<z.ZodObject<{
15
+ type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>;
22
+ }, z.core.$strip>;
23
+ export type SlatesMessageSetParticipantsNotification = z.infer<typeof slatesMessageSetParticipantsNotification>;
24
+ export declare let slatesMessageSessionStartNotification: z.ZodObject<{
25
+ jsonrpc: z.ZodLiteral<"2.0">;
26
+ method: z.ZodLiteral<"slates/session.start">;
27
+ params: z.ZodObject<{
28
+ sessionId: z.ZodString;
29
+ state: z.ZodRecord<z.ZodString, z.ZodAny>;
30
+ }, z.core.$strip>;
31
+ }, z.core.$strip>;
32
+ export type SlatesMessageSessionStartNotification = z.infer<typeof slatesMessageSessionStartNotification>;
33
+ export type SlatesControlFlowNotifications = SlatesMessageHelloNotification | SlatesMessageSetParticipantsNotification | SlatesMessageSessionStartNotification;
34
+ export declare let slatesControlFlowNotificationsByMethod: {
35
+ 'slates/hello': z.ZodObject<{
36
+ jsonrpc: z.ZodLiteral<"2.0">;
37
+ method: z.ZodLiteral<"slates/hello">;
38
+ params: z.ZodObject<{
39
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ 'slates/participant.set': z.ZodObject<{
43
+ jsonrpc: z.ZodLiteral<"2.0">;
44
+ method: z.ZodLiteral<"slates/participant.set">;
45
+ params: z.ZodObject<{
46
+ participants: z.ZodArray<z.ZodObject<{
47
+ type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
48
+ id: z.ZodString;
49
+ name: z.ZodString;
50
+ description: z.ZodOptional<z.ZodString>;
51
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>;
54
+ }, z.core.$strip>;
55
+ 'slates/session.start': z.ZodObject<{
56
+ jsonrpc: z.ZodLiteral<"2.0">;
57
+ method: z.ZodLiteral<"slates/session.start">;
58
+ params: z.ZodObject<{
59
+ sessionId: z.ZodString;
60
+ state: z.ZodRecord<z.ZodString, z.ZodAny>;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>;
63
+ };
64
+ //# sourceMappingURL=controlFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlFlow.d.ts","sourceRoot":"","sources":["../../src/messages/controlFlow.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,IAAI,8BAA8B;;;;;;iBAMvC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE5F,eAAO,IAAI,wCAAwC;;;;;;;;;;;;iBAMjD,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,IAAI,qCAAqC;;;;;;;iBAO9C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,GAC9B,wCAAwC,GACxC,qCAAqC,CAAC;AAE1C,eAAO,IAAI,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhD,CAAC"}
@@ -0,0 +1,48 @@
1
+ import z from 'zod';
2
+ export declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
3
+ jsonrpc: z.ZodLiteral<"2.0">;
4
+ method: z.ZodLiteral<"slates/provider.identify">;
5
+ params: z.ZodObject<{}, z.core.$strip>;
6
+ }, z.core.$strip>;
7
+ export type SlatesMessageProviderIdentifyRequest = z.infer<typeof slatesMessageProviderIdentifyRequest>;
8
+ export declare let slatesMessageProviderIdentifyResponse: z.ZodObject<{
9
+ jsonrpc: z.ZodLiteral<"2.0">;
10
+ id: z.ZodString;
11
+ result: z.ZodObject<{
12
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
13
+ provider: z.ZodObject<{
14
+ type: z.ZodLiteral<"provider">;
15
+ id: z.ZodString;
16
+ name: z.ZodString;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
19
+ }, z.core.$strip>;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
22
+ export type SlatesMessageProviderIdentifyResponse = z.infer<typeof slatesMessageProviderIdentifyResponse>;
23
+ export type SlatesIdentifyRequests = SlatesMessageProviderIdentifyRequest;
24
+ export type SlatesIdentifyResponses = SlatesMessageProviderIdentifyResponse;
25
+ export declare let slatesIdentifyResponsesByMethod: {
26
+ 'slates/provider.identify': z.ZodObject<{
27
+ jsonrpc: z.ZodLiteral<"2.0">;
28
+ id: z.ZodString;
29
+ result: z.ZodObject<{
30
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
31
+ provider: z.ZodObject<{
32
+ type: z.ZodLiteral<"provider">;
33
+ id: z.ZodString;
34
+ name: z.ZodString;
35
+ description: z.ZodOptional<z.ZodString>;
36
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
37
+ }, z.core.$strip>;
38
+ }, z.core.$strip>;
39
+ }, z.core.$strip>;
40
+ };
41
+ export declare let slatesIdentifyRequestsByMethod: {
42
+ 'slates/provider.identify': z.ZodObject<{
43
+ jsonrpc: z.ZodLiteral<"2.0">;
44
+ method: z.ZodLiteral<"slates/provider.identify">;
45
+ params: z.ZodObject<{}, z.core.$strip>;
46
+ }, z.core.$strip>;
47
+ };
48
+ //# sourceMappingURL=identify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../src/messages/identify.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,IAAI,oCAAoC;;;;iBAI7C,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,eAAO,IAAI,qCAAqC;;;;;;;;;;;;;iBAc9C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,oCAAoC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,qCAAqC,CAAC;AAE5E,eAAO,IAAI,+BAA+B;;;;;;;;;;;;;;;CAEzC,CAAC;AAEF,eAAO,IAAI,8BAA8B;;;;;;CAExC,CAAC"}
@@ -0,0 +1,556 @@
1
+ export * from './action';
2
+ export * from './auth';
3
+ export * from './config';
4
+ export * from './controlFlow';
5
+ export * from './identify';
6
+ import { z } from 'zod';
7
+ import { SlatesActionRequests, SlatesActionResponses } from './action';
8
+ import { SlatesAuthNotifications, SlatesAuthRequests, SlatesAuthResponses } from './auth';
9
+ import { SlatesConfigNotifications, SlatesConfigRequests, SlatesConfigResponses } from './config';
10
+ import { SlatesControlFlowNotifications } from './controlFlow';
11
+ import { SlatesIdentifyRequests, SlatesIdentifyResponses } from './identify';
12
+ export type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications;
13
+ export type SlatesRequests = SlatesActionRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
14
+ export type SlatesResponses = SlatesActionResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
15
+ export declare let slatesResponsesByMethod: {
16
+ 'slates/provider.identify': z.ZodObject<{
17
+ jsonrpc: z.ZodLiteral<"2.0">;
18
+ id: z.ZodString;
19
+ result: z.ZodObject<{
20
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
21
+ provider: z.ZodObject<{
22
+ type: z.ZodLiteral<"provider">;
23
+ id: z.ZodString;
24
+ name: z.ZodString;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
27
+ }, z.core.$strip>;
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>;
30
+ 'slates/config.schema.get': z.ZodObject<{
31
+ jsonrpc: z.ZodLiteral<"2.0">;
32
+ id: z.ZodString;
33
+ result: z.ZodObject<{
34
+ schema: z.ZodRecord<z.ZodString, z.ZodAny>;
35
+ }, z.core.$strip>;
36
+ }, z.core.$strip>;
37
+ 'slates/config.get_default': z.ZodObject<{
38
+ jsonrpc: z.ZodLiteral<"2.0">;
39
+ id: z.ZodString;
40
+ result: z.ZodObject<{
41
+ config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>;
44
+ 'slates/config.changed': z.ZodObject<{
45
+ jsonrpc: z.ZodLiteral<"2.0">;
46
+ id: z.ZodString;
47
+ result: z.ZodObject<{
48
+ success: z.ZodBoolean;
49
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
50
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ code: z.ZodString;
52
+ message: z.ZodString;
53
+ path: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ }, z.core.$strip>>>;
55
+ }, z.core.$strip>;
56
+ }, z.core.$strip>;
57
+ 'slates/auth.methods.list': z.ZodObject<{
58
+ jsonrpc: z.ZodLiteral<"2.0">;
59
+ id: z.ZodString;
60
+ result: z.ZodObject<{
61
+ authenticationMethods: z.ZodArray<z.ZodObject<{
62
+ id: z.ZodString;
63
+ name: z.ZodString;
64
+ type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
65
+ scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
+ id: z.ZodString;
67
+ title: z.ZodString;
68
+ description: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>>>;
70
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
71
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
72
+ capabilities: z.ZodObject<{
73
+ getDefaultInput: z.ZodOptional<z.ZodObject<{
74
+ enabled: z.ZodBoolean;
75
+ }, z.core.$strip>>;
76
+ handleChangedInput: z.ZodOptional<z.ZodObject<{
77
+ enabled: z.ZodBoolean;
78
+ }, z.core.$strip>>;
79
+ handleTokenRefresh: z.ZodOptional<z.ZodObject<{
80
+ enabled: z.ZodBoolean;
81
+ }, z.core.$strip>>;
82
+ getProfile: z.ZodOptional<z.ZodObject<{
83
+ enabled: z.ZodBoolean;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>;
89
+ 'slates/auth.method.get': z.ZodObject<{
90
+ jsonrpc: z.ZodLiteral<"2.0">;
91
+ id: z.ZodString;
92
+ result: z.ZodObject<{
93
+ authenticationMethod: z.ZodObject<{
94
+ id: z.ZodString;
95
+ name: z.ZodString;
96
+ type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
97
+ scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ title: z.ZodString;
100
+ description: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strip>>>;
102
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
103
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
104
+ capabilities: z.ZodObject<{
105
+ getDefaultInput: z.ZodOptional<z.ZodObject<{
106
+ enabled: z.ZodBoolean;
107
+ }, z.core.$strip>>;
108
+ handleChangedInput: z.ZodOptional<z.ZodObject<{
109
+ enabled: z.ZodBoolean;
110
+ }, z.core.$strip>>;
111
+ handleTokenRefresh: z.ZodOptional<z.ZodObject<{
112
+ enabled: z.ZodBoolean;
113
+ }, z.core.$strip>>;
114
+ getProfile: z.ZodOptional<z.ZodObject<{
115
+ enabled: z.ZodBoolean;
116
+ }, z.core.$strip>>;
117
+ }, z.core.$strip>;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>;
120
+ }, z.core.$strip>;
121
+ 'slates/auth.input.changed': z.ZodObject<{
122
+ jsonrpc: z.ZodLiteral<"2.0">;
123
+ id: z.ZodString;
124
+ result: z.ZodObject<{
125
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
126
+ }, z.core.$strip>;
127
+ }, z.core.$strip>;
128
+ 'slates/auth.input.get_default': z.ZodObject<{
129
+ jsonrpc: z.ZodLiteral<"2.0">;
130
+ id: z.ZodString;
131
+ result: z.ZodObject<{
132
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>;
135
+ 'slates/auth.authorization_url.get': z.ZodObject<{
136
+ jsonrpc: z.ZodLiteral<"2.0">;
137
+ id: z.ZodString;
138
+ result: z.ZodObject<{
139
+ authorizationUrl: z.ZodString;
140
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
141
+ }, z.core.$strip>;
142
+ }, z.core.$strip>;
143
+ 'slates/auth.authorization_callback.handle': z.ZodObject<{
144
+ jsonrpc: z.ZodLiteral<"2.0">;
145
+ id: z.ZodString;
146
+ result: z.ZodObject<{
147
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
148
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
149
+ }, z.core.$strip>;
150
+ }, z.core.$strip>;
151
+ 'slates/auth.token_refresh.handle': z.ZodObject<{
152
+ jsonrpc: z.ZodLiteral<"2.0">;
153
+ id: z.ZodString;
154
+ result: z.ZodObject<{
155
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
156
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
157
+ }, z.core.$strip>;
158
+ }, z.core.$strip>;
159
+ 'slates/auth.profile.get': z.ZodObject<{
160
+ jsonrpc: z.ZodLiteral<"2.0">;
161
+ id: z.ZodString;
162
+ result: z.ZodObject<{
163
+ profile: z.ZodRecord<z.ZodString, z.ZodAny>;
164
+ }, z.core.$strip>;
165
+ }, z.core.$strip>;
166
+ 'slates/auth.output.get': z.ZodObject<{
167
+ jsonrpc: z.ZodLiteral<"2.0">;
168
+ id: z.ZodString;
169
+ result: z.ZodObject<{
170
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>;
173
+ 'slates/actions.list': z.ZodObject<{
174
+ jsonrpc: z.ZodLiteral<"2.0">;
175
+ id: z.ZodString;
176
+ result: z.ZodObject<{
177
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
178
+ id: z.ZodString;
179
+ name: z.ZodString;
180
+ description: z.ZodOptional<z.ZodString>;
181
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
183
+ tags: z.ZodOptional<z.ZodObject<{
184
+ destructive: z.ZodOptional<z.ZodBoolean>;
185
+ readOnly: z.ZodOptional<z.ZodBoolean>;
186
+ }, z.core.$strip>>;
187
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
188
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
189
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
190
+ type: z.ZodLiteral<"action.tool">;
191
+ capabilities: z.ZodObject<{}, z.core.$strip>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ id: z.ZodString;
194
+ name: z.ZodString;
195
+ description: z.ZodOptional<z.ZodString>;
196
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
198
+ tags: z.ZodOptional<z.ZodObject<{
199
+ destructive: z.ZodOptional<z.ZodBoolean>;
200
+ readOnly: z.ZodOptional<z.ZodBoolean>;
201
+ }, z.core.$strip>>;
202
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
203
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
204
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
205
+ type: z.ZodLiteral<"action.trigger">;
206
+ capabilities: z.ZodObject<{}, z.core.$strip>;
207
+ invocation: z.ZodUnion<readonly [z.ZodObject<{
208
+ type: z.ZodLiteral<"polling">;
209
+ intervalSeconds: z.ZodNumber;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ type: z.ZodLiteral<"webhook">;
212
+ autoRegistration: z.ZodBoolean;
213
+ autoUnregistration: z.ZodBoolean;
214
+ }, z.core.$strip>]>;
215
+ }, z.core.$strip>]>>;
216
+ }, z.core.$strip>;
217
+ }, z.core.$strip>;
218
+ 'slates/action.get': z.ZodObject<{
219
+ jsonrpc: z.ZodLiteral<"2.0">;
220
+ id: z.ZodString;
221
+ result: z.ZodObject<{
222
+ action: z.ZodUnion<readonly [z.ZodObject<{
223
+ id: z.ZodString;
224
+ name: z.ZodString;
225
+ description: z.ZodOptional<z.ZodString>;
226
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
228
+ tags: z.ZodOptional<z.ZodObject<{
229
+ destructive: z.ZodOptional<z.ZodBoolean>;
230
+ readOnly: z.ZodOptional<z.ZodBoolean>;
231
+ }, z.core.$strip>>;
232
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
233
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
234
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
235
+ type: z.ZodLiteral<"action.tool">;
236
+ capabilities: z.ZodObject<{}, z.core.$strip>;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ id: z.ZodString;
239
+ name: z.ZodString;
240
+ description: z.ZodOptional<z.ZodString>;
241
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
+ tags: z.ZodOptional<z.ZodObject<{
244
+ destructive: z.ZodOptional<z.ZodBoolean>;
245
+ readOnly: z.ZodOptional<z.ZodBoolean>;
246
+ }, z.core.$strip>>;
247
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
248
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
249
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
250
+ type: z.ZodLiteral<"action.trigger">;
251
+ capabilities: z.ZodObject<{}, z.core.$strip>;
252
+ invocation: z.ZodUnion<readonly [z.ZodObject<{
253
+ type: z.ZodLiteral<"polling">;
254
+ intervalSeconds: z.ZodNumber;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ type: z.ZodLiteral<"webhook">;
257
+ autoRegistration: z.ZodBoolean;
258
+ autoUnregistration: z.ZodBoolean;
259
+ }, z.core.$strip>]>;
260
+ }, z.core.$strip>]>;
261
+ }, z.core.$strip>;
262
+ }, z.core.$strip>;
263
+ 'slates/action.tool.invoke': z.ZodObject<{
264
+ jsonrpc: z.ZodLiteral<"2.0">;
265
+ id: z.ZodString;
266
+ result: z.ZodObject<{
267
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
268
+ message: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>;
270
+ }, z.core.$strip>;
271
+ 'slates/action.trigger.map_event': z.ZodObject<{
272
+ jsonrpc: z.ZodLiteral<"2.0">;
273
+ id: z.ZodString;
274
+ result: z.ZodObject<{
275
+ type: z.ZodString;
276
+ id: z.ZodString;
277
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
278
+ }, z.core.$strip>;
279
+ }, z.core.$strip>;
280
+ 'slates/action.trigger.poll_events': z.ZodObject<{
281
+ jsonrpc: z.ZodLiteral<"2.0">;
282
+ id: z.ZodString;
283
+ result: z.ZodObject<{
284
+ inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
285
+ updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
286
+ }, z.core.$strip>;
287
+ }, z.core.$strip>;
288
+ 'slates/action.trigger.webhook_handle': z.ZodObject<{
289
+ jsonrpc: z.ZodLiteral<"2.0">;
290
+ id: z.ZodString;
291
+ result: z.ZodObject<{
292
+ inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
293
+ updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
294
+ }, z.core.$strip>;
295
+ }, z.core.$strip>;
296
+ 'slates/action.trigger.webhook_register': z.ZodObject<{
297
+ jsonrpc: z.ZodLiteral<"2.0">;
298
+ id: z.ZodString;
299
+ result: z.ZodObject<{
300
+ registrationDetails: z.ZodAny;
301
+ state: z.ZodOptional<z.ZodAny>;
302
+ }, z.core.$strip>;
303
+ }, z.core.$strip>;
304
+ 'slates/action.trigger.webhook_unregister': z.ZodObject<{
305
+ jsonrpc: z.ZodLiteral<"2.0">;
306
+ id: z.ZodString;
307
+ result: z.ZodObject<{}, z.core.$strip>;
308
+ }, z.core.$strip>;
309
+ };
310
+ export declare let slatesRequestsByMethod: {
311
+ 'slates/provider.identify': z.ZodObject<{
312
+ jsonrpc: z.ZodLiteral<"2.0">;
313
+ method: z.ZodLiteral<"slates/provider.identify">;
314
+ params: z.ZodObject<{}, z.core.$strip>;
315
+ }, z.core.$strip>;
316
+ 'slates/config.schema.get': z.ZodObject<{
317
+ jsonrpc: z.ZodLiteral<"2.0">;
318
+ method: z.ZodLiteral<"slates/config.schema.get">;
319
+ id: z.ZodString;
320
+ params: z.ZodObject<{}, z.core.$strip>;
321
+ }, z.core.$strip>;
322
+ 'slates/config.get_default': z.ZodObject<{
323
+ jsonrpc: z.ZodLiteral<"2.0">;
324
+ method: z.ZodLiteral<"slates/config.get_default">;
325
+ id: z.ZodString;
326
+ params: z.ZodObject<{}, z.core.$strip>;
327
+ }, z.core.$strip>;
328
+ 'slates/config.changed': z.ZodObject<{
329
+ jsonrpc: z.ZodLiteral<"2.0">;
330
+ method: z.ZodLiteral<"slates/config.changed">;
331
+ params: z.ZodObject<{
332
+ previousConfig: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
333
+ newConfig: z.ZodRecord<z.ZodString, z.ZodAny>;
334
+ }, z.core.$strip>;
335
+ }, z.core.$strip>;
336
+ 'slates/auth.methods.list': z.ZodObject<{
337
+ jsonrpc: z.ZodLiteral<"2.0">;
338
+ method: z.ZodLiteral<"slates/auth.methods.list">;
339
+ id: z.ZodString;
340
+ params: z.ZodObject<{}, z.core.$strip>;
341
+ }, z.core.$strip>;
342
+ 'slates/auth.method.get': z.ZodObject<{
343
+ jsonrpc: z.ZodLiteral<"2.0">;
344
+ method: z.ZodLiteral<"slates/auth.method.get">;
345
+ id: z.ZodString;
346
+ params: z.ZodObject<{
347
+ authenticationMethodId: z.ZodString;
348
+ }, z.core.$strip>;
349
+ }, z.core.$strip>;
350
+ 'slates/auth.input.changed': z.ZodObject<{
351
+ jsonrpc: z.ZodLiteral<"2.0">;
352
+ method: z.ZodLiteral<"slates/auth.input.changed">;
353
+ id: z.ZodString;
354
+ params: z.ZodObject<{
355
+ authenticationMethodId: z.ZodString;
356
+ previousInput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
357
+ newInput: z.ZodRecord<z.ZodString, z.ZodAny>;
358
+ }, z.core.$strip>;
359
+ }, z.core.$strip>;
360
+ 'slates/auth.input.get_default': z.ZodObject<{
361
+ jsonrpc: z.ZodLiteral<"2.0">;
362
+ method: z.ZodLiteral<"slates/auth.input.get_default">;
363
+ id: z.ZodString;
364
+ params: z.ZodObject<{
365
+ authenticationMethodId: z.ZodString;
366
+ }, z.core.$strip>;
367
+ }, z.core.$strip>;
368
+ 'slates/auth.authorization_url.get': z.ZodObject<{
369
+ jsonrpc: z.ZodLiteral<"2.0">;
370
+ method: z.ZodLiteral<"slates/auth.authorization_url.get">;
371
+ id: z.ZodString;
372
+ params: z.ZodObject<{
373
+ authenticationMethodId: z.ZodString;
374
+ redirectUri: z.ZodString;
375
+ state: z.ZodString;
376
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
377
+ clientId: z.ZodString;
378
+ clientSecret: z.ZodString;
379
+ scopes: z.ZodArray<z.ZodString>;
380
+ }, z.core.$strip>;
381
+ }, z.core.$strip>;
382
+ 'slates/auth.authorization_callback.handle': z.ZodObject<{
383
+ jsonrpc: z.ZodLiteral<"2.0">;
384
+ method: z.ZodLiteral<"slates/auth.authorization_callback.handle">;
385
+ id: z.ZodString;
386
+ params: z.ZodObject<{
387
+ authenticationMethodId: z.ZodString;
388
+ code: z.ZodString;
389
+ state: z.ZodString;
390
+ redirectUri: z.ZodString;
391
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
392
+ clientId: z.ZodString;
393
+ clientSecret: z.ZodString;
394
+ scopes: z.ZodArray<z.ZodString>;
395
+ }, z.core.$strip>;
396
+ }, z.core.$strip>;
397
+ 'slates/auth.token_refresh.handle': z.ZodObject<{
398
+ jsonrpc: z.ZodLiteral<"2.0">;
399
+ method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
400
+ id: z.ZodString;
401
+ params: z.ZodObject<{
402
+ authenticationMethodId: z.ZodString;
403
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
404
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
405
+ clientId: z.ZodString;
406
+ clientSecret: z.ZodString;
407
+ scopes: z.ZodArray<z.ZodString>;
408
+ }, z.core.$strip>;
409
+ }, z.core.$strip>;
410
+ 'slates/auth.profile.get': z.ZodObject<{
411
+ jsonrpc: z.ZodLiteral<"2.0">;
412
+ method: z.ZodLiteral<"slates/auth.profile.get">;
413
+ id: z.ZodString;
414
+ params: z.ZodObject<{
415
+ authenticationMethodId: z.ZodString;
416
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
417
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
418
+ scopes: z.ZodArray<z.ZodString>;
419
+ }, z.core.$strip>;
420
+ }, z.core.$strip>;
421
+ 'slates/auth.output.get': z.ZodObject<{
422
+ jsonrpc: z.ZodLiteral<"2.0">;
423
+ method: z.ZodLiteral<"slates/auth.output.get">;
424
+ id: z.ZodString;
425
+ params: z.ZodObject<{
426
+ authenticationMethodId: z.ZodString;
427
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
428
+ }, z.core.$strip>;
429
+ }, z.core.$strip>;
430
+ 'slates/actions.list': z.ZodObject<{
431
+ jsonrpc: z.ZodLiteral<"2.0">;
432
+ method: z.ZodLiteral<"slates/actions.list">;
433
+ id: z.ZodString;
434
+ params: z.ZodObject<{}, z.core.$strip>;
435
+ }, z.core.$strip>;
436
+ 'slates/action.get': z.ZodObject<{
437
+ jsonrpc: z.ZodLiteral<"2.0">;
438
+ method: z.ZodLiteral<"slates/action.get">;
439
+ id: z.ZodString;
440
+ params: z.ZodObject<{
441
+ actionId: z.ZodString;
442
+ }, z.core.$strip>;
443
+ }, z.core.$strip>;
444
+ 'slates/action.tool.invoke': z.ZodObject<{
445
+ jsonrpc: z.ZodLiteral<"2.0">;
446
+ method: z.ZodLiteral<"slates/action.tool.invoke">;
447
+ id: z.ZodString;
448
+ params: z.ZodObject<{
449
+ actionId: z.ZodString;
450
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
451
+ }, z.core.$strip>;
452
+ }, z.core.$strip>;
453
+ 'slates/action.trigger.map_event': z.ZodObject<{
454
+ jsonrpc: z.ZodLiteral<"2.0">;
455
+ method: z.ZodLiteral<"slates/action.trigger.map_event">;
456
+ id: z.ZodString;
457
+ params: z.ZodObject<{
458
+ actionId: z.ZodString;
459
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
460
+ }, z.core.$strip>;
461
+ }, z.core.$strip>;
462
+ 'slates/action.trigger.poll_events': z.ZodObject<{
463
+ jsonrpc: z.ZodLiteral<"2.0">;
464
+ method: z.ZodLiteral<"slates/action.trigger.poll_events">;
465
+ id: z.ZodString;
466
+ params: z.ZodObject<{
467
+ actionId: z.ZodString;
468
+ state: z.ZodNullable<z.ZodAny>;
469
+ }, z.core.$strip>;
470
+ }, z.core.$strip>;
471
+ 'slates/action.trigger.webhook_handle': z.ZodObject<{
472
+ jsonrpc: z.ZodLiteral<"2.0">;
473
+ method: z.ZodLiteral<"slates/action.trigger.webhook_handle">;
474
+ id: z.ZodString;
475
+ params: z.ZodObject<{
476
+ actionId: z.ZodString;
477
+ url: z.ZodString;
478
+ method: z.ZodString;
479
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
480
+ body: z.ZodNullable<z.ZodObject<{
481
+ encoding: z.ZodLiteral<"base64">;
482
+ content: z.ZodString;
483
+ }, z.core.$strip>>;
484
+ state: z.ZodNullable<z.ZodAny>;
485
+ }, z.core.$strip>;
486
+ }, z.core.$strip>;
487
+ 'slates/action.trigger.webhook_register': z.ZodObject<{
488
+ jsonrpc: z.ZodLiteral<"2.0">;
489
+ method: z.ZodLiteral<"slates/action.trigger.webhook_register">;
490
+ id: z.ZodString;
491
+ params: z.ZodObject<{
492
+ actionId: z.ZodString;
493
+ webhookBaseUrl: z.ZodString;
494
+ }, z.core.$strip>;
495
+ }, z.core.$strip>;
496
+ 'slates/action.trigger.webhook_unregister': z.ZodObject<{
497
+ jsonrpc: z.ZodLiteral<"2.0">;
498
+ method: z.ZodLiteral<"slates/action.trigger.webhook_unregister">;
499
+ id: z.ZodString;
500
+ params: z.ZodObject<{
501
+ actionId: z.ZodString;
502
+ webhookBaseUrl: z.ZodString;
503
+ registrationDetails: z.ZodAny;
504
+ state: z.ZodOptional<z.ZodAny>;
505
+ }, z.core.$strip>;
506
+ }, z.core.$strip>;
507
+ };
508
+ export declare let slatesNotificationsByMethod: {
509
+ 'slates/hello': z.ZodObject<{
510
+ jsonrpc: z.ZodLiteral<"2.0">;
511
+ method: z.ZodLiteral<"slates/hello">;
512
+ params: z.ZodObject<{
513
+ protocol: z.ZodLiteral<"slates@2026-01-01">;
514
+ }, z.core.$strip>;
515
+ }, z.core.$strip>;
516
+ 'slates/participant.set': z.ZodObject<{
517
+ jsonrpc: z.ZodLiteral<"2.0">;
518
+ method: z.ZodLiteral<"slates/participant.set">;
519
+ params: z.ZodObject<{
520
+ participants: z.ZodArray<z.ZodObject<{
521
+ type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
522
+ id: z.ZodString;
523
+ name: z.ZodString;
524
+ description: z.ZodOptional<z.ZodString>;
525
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
526
+ }, z.core.$strip>>;
527
+ }, z.core.$strip>;
528
+ }, z.core.$strip>;
529
+ 'slates/session.start': z.ZodObject<{
530
+ jsonrpc: z.ZodLiteral<"2.0">;
531
+ method: z.ZodLiteral<"slates/session.start">;
532
+ params: z.ZodObject<{
533
+ sessionId: z.ZodString;
534
+ state: z.ZodRecord<z.ZodString, z.ZodAny>;
535
+ }, z.core.$strip>;
536
+ }, z.core.$strip>;
537
+ 'slates/config.set': z.ZodObject<{
538
+ jsonrpc: z.ZodLiteral<"2.0">;
539
+ method: z.ZodLiteral<"slates/config.set">;
540
+ params: z.ZodObject<{
541
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
542
+ }, z.core.$strip>;
543
+ }, z.core.$strip>;
544
+ 'slates/auth.set': z.ZodObject<{
545
+ jsonrpc: z.ZodLiteral<"2.0">;
546
+ method: z.ZodLiteral<"slates/auth.set">;
547
+ params: z.ZodObject<{
548
+ authenticationMethodId: z.ZodString;
549
+ output: z.ZodRecord<z.ZodString, z.ZodAny>;
550
+ }, z.core.$strip>;
551
+ }, z.core.$strip>;
552
+ };
553
+ export type SlatesResponsesByMethod = {
554
+ [key in keyof typeof slatesResponsesByMethod]: z.infer<(typeof slatesResponsesByMethod)[key]>;
555
+ };
556
+ //# sourceMappingURL=index.d.ts.map