@slates/proto 1.0.0-rc.5 → 1.0.0-rc.7

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 (48) hide show
  1. package/dist/index.cjs +1076 -2
  2. package/dist/index.d.cts +3429 -0
  3. package/dist/index.d.ts +3429 -4
  4. package/dist/index.module.js +970 -2
  5. package/package.json +8 -7
  6. package/src/handler/provider.test.ts +118 -0
  7. package/src/handler/provider.ts +262 -27
  8. package/src/index.ts +1 -0
  9. package/src/messages/action.ts +7 -6
  10. package/src/messages/auth.ts +14 -10
  11. package/src/messages/config.ts +3 -2
  12. package/src/messages/controlFlow.ts +2 -1
  13. package/src/messages/identify.ts +2 -1
  14. package/src/messages/index.ts +13 -12
  15. package/src/messages/tracing.ts +38 -0
  16. package/src/types/action.ts +11 -1
  17. package/src/version.ts +3 -0
  18. package/dist/handler/index.d.ts +0 -2
  19. package/dist/handler/index.d.ts.map +0 -1
  20. package/dist/handler/provider.d.ts +0 -29
  21. package/dist/handler/provider.d.ts.map +0 -1
  22. package/dist/index.cjs.map +0 -1
  23. package/dist/index.d.ts.map +0 -1
  24. package/dist/index.module.js.map +0 -1
  25. package/dist/index.umd.js +0 -2
  26. package/dist/index.umd.js.map +0 -1
  27. package/dist/messages/action.d.ts +0 -474
  28. package/dist/messages/action.d.ts.map +0 -1
  29. package/dist/messages/auth.d.ts +0 -496
  30. package/dist/messages/auth.d.ts.map +0 -1
  31. package/dist/messages/config.d.ts +0 -140
  32. package/dist/messages/config.d.ts.map +0 -1
  33. package/dist/messages/controlFlow.d.ts +0 -64
  34. package/dist/messages/controlFlow.d.ts.map +0 -1
  35. package/dist/messages/identify.d.ts +0 -50
  36. package/dist/messages/identify.d.ts.map +0 -1
  37. package/dist/messages/index.d.ts +0 -558
  38. package/dist/messages/index.d.ts.map +0 -1
  39. package/dist/messages/log.d.ts +0 -27
  40. package/dist/messages/log.d.ts.map +0 -1
  41. package/dist/types/action.d.ts +0 -98
  42. package/dist/types/action.d.ts.map +0 -1
  43. package/dist/types/authMethod.d.ts +0 -29
  44. package/dist/types/authMethod.d.ts.map +0 -1
  45. package/dist/types/index.d.ts +0 -4
  46. package/dist/types/index.d.ts.map +0 -1
  47. package/dist/types/participant.d.ts +0 -10
  48. package/dist/types/participant.d.ts.map +0 -1
@@ -1,64 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,50 +0,0 @@
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
- id: z.ZodString;
6
- params: z.ZodObject<{}, z.core.$strip>;
7
- }, z.core.$strip>;
8
- export type SlatesMessageProviderIdentifyRequest = z.infer<typeof slatesMessageProviderIdentifyRequest>;
9
- export declare let slatesMessageProviderIdentifyResponse: z.ZodObject<{
10
- jsonrpc: z.ZodLiteral<"2.0">;
11
- id: z.ZodString;
12
- result: z.ZodObject<{
13
- protocol: z.ZodLiteral<"slates@2026-01-01">;
14
- provider: z.ZodObject<{
15
- type: z.ZodLiteral<"provider">;
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 SlatesMessageProviderIdentifyResponse = z.infer<typeof slatesMessageProviderIdentifyResponse>;
24
- export type SlatesIdentifyRequests = SlatesMessageProviderIdentifyRequest;
25
- export type SlatesIdentifyResponses = SlatesMessageProviderIdentifyResponse;
26
- export declare let slatesIdentifyResponsesByMethod: {
27
- 'slates/provider.identify': z.ZodObject<{
28
- jsonrpc: z.ZodLiteral<"2.0">;
29
- id: z.ZodString;
30
- result: z.ZodObject<{
31
- protocol: z.ZodLiteral<"slates@2026-01-01">;
32
- provider: z.ZodObject<{
33
- type: z.ZodLiteral<"provider">;
34
- id: z.ZodString;
35
- name: z.ZodString;
36
- description: z.ZodOptional<z.ZodString>;
37
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
38
- }, z.core.$strip>;
39
- }, z.core.$strip>;
40
- }, z.core.$strip>;
41
- };
42
- export declare let slatesIdentifyRequestsByMethod: {
43
- 'slates/provider.identify': z.ZodObject<{
44
- jsonrpc: z.ZodLiteral<"2.0">;
45
- method: z.ZodLiteral<"slates/provider.identify">;
46
- id: z.ZodString;
47
- params: z.ZodObject<{}, z.core.$strip>;
48
- }, z.core.$strip>;
49
- };
50
- //# sourceMappingURL=identify.d.ts.map
@@ -1 +0,0 @@
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;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,eAAO,IAAI,qCAAqC;;;;;;;;;;;;;iBAa9C,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"}
@@ -1,558 +0,0 @@
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
- id: z.ZodString;
315
- params: z.ZodObject<{}, z.core.$strip>;
316
- }, z.core.$strip>;
317
- 'slates/config.schema.get': z.ZodObject<{
318
- jsonrpc: z.ZodLiteral<"2.0">;
319
- method: z.ZodLiteral<"slates/config.schema.get">;
320
- id: z.ZodString;
321
- params: z.ZodObject<{}, z.core.$strip>;
322
- }, z.core.$strip>;
323
- 'slates/config.get_default': z.ZodObject<{
324
- jsonrpc: z.ZodLiteral<"2.0">;
325
- method: z.ZodLiteral<"slates/config.get_default">;
326
- id: z.ZodString;
327
- params: z.ZodObject<{}, z.core.$strip>;
328
- }, z.core.$strip>;
329
- 'slates/config.changed': z.ZodObject<{
330
- jsonrpc: z.ZodLiteral<"2.0">;
331
- method: z.ZodLiteral<"slates/config.changed">;
332
- id: z.ZodString;
333
- params: z.ZodObject<{
334
- previousConfig: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
335
- newConfig: z.ZodRecord<z.ZodString, z.ZodAny>;
336
- }, z.core.$strip>;
337
- }, z.core.$strip>;
338
- 'slates/auth.methods.list': z.ZodObject<{
339
- jsonrpc: z.ZodLiteral<"2.0">;
340
- method: z.ZodLiteral<"slates/auth.methods.list">;
341
- id: z.ZodString;
342
- params: z.ZodObject<{}, z.core.$strip>;
343
- }, z.core.$strip>;
344
- 'slates/auth.method.get': z.ZodObject<{
345
- jsonrpc: z.ZodLiteral<"2.0">;
346
- method: z.ZodLiteral<"slates/auth.method.get">;
347
- id: z.ZodString;
348
- params: z.ZodObject<{
349
- authenticationMethodId: z.ZodString;
350
- }, z.core.$strip>;
351
- }, z.core.$strip>;
352
- 'slates/auth.input.changed': z.ZodObject<{
353
- jsonrpc: z.ZodLiteral<"2.0">;
354
- method: z.ZodLiteral<"slates/auth.input.changed">;
355
- id: z.ZodString;
356
- params: z.ZodObject<{
357
- authenticationMethodId: z.ZodString;
358
- previousInput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
359
- newInput: z.ZodRecord<z.ZodString, z.ZodAny>;
360
- }, z.core.$strip>;
361
- }, z.core.$strip>;
362
- 'slates/auth.input.get_default': z.ZodObject<{
363
- jsonrpc: z.ZodLiteral<"2.0">;
364
- method: z.ZodLiteral<"slates/auth.input.get_default">;
365
- id: z.ZodString;
366
- params: z.ZodObject<{
367
- authenticationMethodId: z.ZodString;
368
- }, z.core.$strip>;
369
- }, z.core.$strip>;
370
- 'slates/auth.authorization_url.get': z.ZodObject<{
371
- jsonrpc: z.ZodLiteral<"2.0">;
372
- method: z.ZodLiteral<"slates/auth.authorization_url.get">;
373
- id: z.ZodString;
374
- params: z.ZodObject<{
375
- authenticationMethodId: z.ZodString;
376
- redirectUri: z.ZodString;
377
- state: z.ZodString;
378
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
379
- clientId: z.ZodString;
380
- clientSecret: z.ZodString;
381
- scopes: z.ZodArray<z.ZodString>;
382
- }, z.core.$strip>;
383
- }, z.core.$strip>;
384
- 'slates/auth.authorization_callback.handle': z.ZodObject<{
385
- jsonrpc: z.ZodLiteral<"2.0">;
386
- method: z.ZodLiteral<"slates/auth.authorization_callback.handle">;
387
- id: z.ZodString;
388
- params: z.ZodObject<{
389
- authenticationMethodId: z.ZodString;
390
- code: z.ZodString;
391
- state: z.ZodString;
392
- redirectUri: z.ZodString;
393
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
394
- clientId: z.ZodString;
395
- clientSecret: z.ZodString;
396
- scopes: z.ZodArray<z.ZodString>;
397
- }, z.core.$strip>;
398
- }, z.core.$strip>;
399
- 'slates/auth.token_refresh.handle': z.ZodObject<{
400
- jsonrpc: z.ZodLiteral<"2.0">;
401
- method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
402
- id: z.ZodString;
403
- params: z.ZodObject<{
404
- authenticationMethodId: z.ZodString;
405
- output: z.ZodRecord<z.ZodString, z.ZodAny>;
406
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
407
- clientId: z.ZodString;
408
- clientSecret: z.ZodString;
409
- scopes: z.ZodArray<z.ZodString>;
410
- }, z.core.$strip>;
411
- }, z.core.$strip>;
412
- 'slates/auth.profile.get': z.ZodObject<{
413
- jsonrpc: z.ZodLiteral<"2.0">;
414
- method: z.ZodLiteral<"slates/auth.profile.get">;
415
- id: z.ZodString;
416
- params: z.ZodObject<{
417
- authenticationMethodId: z.ZodString;
418
- output: z.ZodRecord<z.ZodString, z.ZodAny>;
419
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
420
- scopes: z.ZodArray<z.ZodString>;
421
- }, z.core.$strip>;
422
- }, z.core.$strip>;
423
- 'slates/auth.output.get': z.ZodObject<{
424
- jsonrpc: z.ZodLiteral<"2.0">;
425
- method: z.ZodLiteral<"slates/auth.output.get">;
426
- id: z.ZodString;
427
- params: z.ZodObject<{
428
- authenticationMethodId: z.ZodString;
429
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
430
- }, z.core.$strip>;
431
- }, z.core.$strip>;
432
- 'slates/actions.list': z.ZodObject<{
433
- jsonrpc: z.ZodLiteral<"2.0">;
434
- method: z.ZodLiteral<"slates/actions.list">;
435
- id: z.ZodString;
436
- params: z.ZodObject<{}, z.core.$strip>;
437
- }, z.core.$strip>;
438
- 'slates/action.get': z.ZodObject<{
439
- jsonrpc: z.ZodLiteral<"2.0">;
440
- method: z.ZodLiteral<"slates/action.get">;
441
- id: z.ZodString;
442
- params: z.ZodObject<{
443
- actionId: z.ZodString;
444
- }, z.core.$strip>;
445
- }, z.core.$strip>;
446
- 'slates/action.tool.invoke': z.ZodObject<{
447
- jsonrpc: z.ZodLiteral<"2.0">;
448
- method: z.ZodLiteral<"slates/action.tool.invoke">;
449
- id: z.ZodString;
450
- params: z.ZodObject<{
451
- actionId: z.ZodString;
452
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
453
- }, z.core.$strip>;
454
- }, z.core.$strip>;
455
- 'slates/action.trigger.map_event': z.ZodObject<{
456
- jsonrpc: z.ZodLiteral<"2.0">;
457
- method: z.ZodLiteral<"slates/action.trigger.map_event">;
458
- id: z.ZodString;
459
- params: z.ZodObject<{
460
- actionId: z.ZodString;
461
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
462
- }, z.core.$strip>;
463
- }, z.core.$strip>;
464
- 'slates/action.trigger.poll_events': z.ZodObject<{
465
- jsonrpc: z.ZodLiteral<"2.0">;
466
- method: z.ZodLiteral<"slates/action.trigger.poll_events">;
467
- id: z.ZodString;
468
- params: z.ZodObject<{
469
- actionId: z.ZodString;
470
- state: z.ZodNullable<z.ZodAny>;
471
- }, z.core.$strip>;
472
- }, z.core.$strip>;
473
- 'slates/action.trigger.webhook_handle': z.ZodObject<{
474
- jsonrpc: z.ZodLiteral<"2.0">;
475
- method: z.ZodLiteral<"slates/action.trigger.webhook_handle">;
476
- id: z.ZodString;
477
- params: z.ZodObject<{
478
- actionId: z.ZodString;
479
- url: z.ZodString;
480
- method: z.ZodString;
481
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
482
- body: z.ZodNullable<z.ZodObject<{
483
- encoding: z.ZodLiteral<"base64">;
484
- content: z.ZodString;
485
- }, z.core.$strip>>;
486
- state: z.ZodNullable<z.ZodAny>;
487
- }, z.core.$strip>;
488
- }, z.core.$strip>;
489
- 'slates/action.trigger.webhook_register': z.ZodObject<{
490
- jsonrpc: z.ZodLiteral<"2.0">;
491
- method: z.ZodLiteral<"slates/action.trigger.webhook_register">;
492
- id: z.ZodString;
493
- params: z.ZodObject<{
494
- actionId: z.ZodString;
495
- webhookBaseUrl: z.ZodString;
496
- }, z.core.$strip>;
497
- }, z.core.$strip>;
498
- 'slates/action.trigger.webhook_unregister': z.ZodObject<{
499
- jsonrpc: z.ZodLiteral<"2.0">;
500
- method: z.ZodLiteral<"slates/action.trigger.webhook_unregister">;
501
- id: z.ZodString;
502
- params: z.ZodObject<{
503
- actionId: z.ZodString;
504
- webhookBaseUrl: z.ZodString;
505
- registrationDetails: z.ZodAny;
506
- state: z.ZodOptional<z.ZodAny>;
507
- }, z.core.$strip>;
508
- }, z.core.$strip>;
509
- };
510
- export declare let slatesNotificationsByMethod: {
511
- 'slates/hello': z.ZodObject<{
512
- jsonrpc: z.ZodLiteral<"2.0">;
513
- method: z.ZodLiteral<"slates/hello">;
514
- params: z.ZodObject<{
515
- protocol: z.ZodLiteral<"slates@2026-01-01">;
516
- }, z.core.$strip>;
517
- }, z.core.$strip>;
518
- 'slates/participant.set': z.ZodObject<{
519
- jsonrpc: z.ZodLiteral<"2.0">;
520
- method: z.ZodLiteral<"slates/participant.set">;
521
- params: z.ZodObject<{
522
- participants: z.ZodArray<z.ZodObject<{
523
- type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
524
- id: z.ZodString;
525
- name: z.ZodString;
526
- description: z.ZodOptional<z.ZodString>;
527
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
528
- }, z.core.$strip>>;
529
- }, z.core.$strip>;
530
- }, z.core.$strip>;
531
- 'slates/session.start': z.ZodObject<{
532
- jsonrpc: z.ZodLiteral<"2.0">;
533
- method: z.ZodLiteral<"slates/session.start">;
534
- params: z.ZodObject<{
535
- sessionId: z.ZodString;
536
- state: z.ZodRecord<z.ZodString, z.ZodAny>;
537
- }, z.core.$strip>;
538
- }, z.core.$strip>;
539
- 'slates/config.set': z.ZodObject<{
540
- jsonrpc: z.ZodLiteral<"2.0">;
541
- method: z.ZodLiteral<"slates/config.set">;
542
- params: z.ZodObject<{
543
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
544
- }, z.core.$strip>;
545
- }, z.core.$strip>;
546
- 'slates/auth.set': z.ZodObject<{
547
- jsonrpc: z.ZodLiteral<"2.0">;
548
- method: z.ZodLiteral<"slates/auth.set">;
549
- params: z.ZodObject<{
550
- authenticationMethodId: z.ZodString;
551
- output: z.ZodRecord<z.ZodString, z.ZodAny>;
552
- }, z.core.$strip>;
553
- }, z.core.$strip>;
554
- };
555
- export type SlatesResponsesByMethod = {
556
- [key in keyof typeof slatesResponsesByMethod]: z.infer<(typeof slatesResponsesByMethod)[key]>;
557
- };
558
- //# sourceMappingURL=index.d.ts.map