@slates/proto 1.0.0-rc.2 → 1.0.0-rc.21
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.
- package/dist/index.cjs +1632 -2
- package/dist/index.d.cts +5397 -0
- package/dist/index.d.ts +5397 -4
- package/dist/index.module.js +1480 -2
- package/package.json +9 -8
- package/src/handler/provider.test.ts +121 -0
- package/src/handler/provider.ts +268 -27
- package/src/index.ts +1 -0
- package/src/messages/action.ts +51 -154
- package/src/messages/adapter.ts +72 -0
- package/src/messages/auth.ts +21 -13
- package/src/messages/config.ts +12 -3
- package/src/messages/controlFlow.ts +2 -1
- package/src/messages/hub.ts +92 -0
- package/src/messages/identify.ts +10 -3
- package/src/messages/index.ts +68 -14
- package/src/messages/legacyTrigger.ts +149 -0
- package/src/messages/tracing.ts +38 -0
- package/src/messages/triggerGroup.ts +383 -0
- package/src/messages/webhookErrors.ts +21 -0
- package/src/types/action.ts +25 -13
- package/src/types/adapter.ts +15 -0
- package/src/types/authMethod.ts +19 -1
- package/src/types/index.ts +2 -0
- package/src/types/triggerGroup.ts +49 -0
- package/src/version.ts +3 -0
- package/dist/handler/index.d.ts +0 -2
- package/dist/handler/index.d.ts.map +0 -1
- package/dist/handler/provider.d.ts +0 -46
- package/dist/handler/provider.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.module.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/messages/action.d.ts +0 -474
- package/dist/messages/action.d.ts.map +0 -1
- package/dist/messages/auth.d.ts +0 -496
- package/dist/messages/auth.d.ts.map +0 -1
- package/dist/messages/config.d.ts +0 -138
- package/dist/messages/config.d.ts.map +0 -1
- package/dist/messages/controlFlow.d.ts +0 -64
- package/dist/messages/controlFlow.d.ts.map +0 -1
- package/dist/messages/identify.d.ts +0 -48
- package/dist/messages/identify.d.ts.map +0 -1
- package/dist/messages/index.d.ts +0 -556
- package/dist/messages/index.d.ts.map +0 -1
- package/dist/messages/log.d.ts +0 -27
- package/dist/messages/log.d.ts.map +0 -1
- package/dist/types/action.d.ts +0 -98
- package/dist/types/action.d.ts.map +0 -1
- package/dist/types/authMethod.d.ts +0 -29
- package/dist/types/authMethod.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/participant.d.ts +0 -10
- package/dist/types/participant.d.ts.map +0 -1
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* List Actions
|
|
4
|
-
*/
|
|
5
|
-
export declare let slatesMessageActionsListRequest: z.ZodObject<{
|
|
6
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
7
|
-
method: z.ZodLiteral<"slates/actions.list">;
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type SlatesMessageActionsListRequest = z.infer<typeof slatesMessageActionsListRequest>;
|
|
12
|
-
export declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
13
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
result: z.ZodObject<{
|
|
16
|
-
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
description: z.ZodOptional<z.ZodString>;
|
|
20
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
23
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
28
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
29
|
-
type: z.ZodLiteral<"action.tool">;
|
|
30
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
id: z.ZodString;
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
description: z.ZodOptional<z.ZodString>;
|
|
35
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
42
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
43
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
44
|
-
type: z.ZodLiteral<"action.trigger">;
|
|
45
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
46
|
-
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
47
|
-
type: z.ZodLiteral<"polling">;
|
|
48
|
-
intervalSeconds: z.ZodNumber;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
type: z.ZodLiteral<"webhook">;
|
|
51
|
-
autoRegistration: z.ZodBoolean;
|
|
52
|
-
autoUnregistration: z.ZodBoolean;
|
|
53
|
-
}, z.core.$strip>]>;
|
|
54
|
-
}, z.core.$strip>]>>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
export type SlatesMessageActionsListResponse = z.infer<typeof slatesMessageActionsListResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* Get Action
|
|
60
|
-
*/
|
|
61
|
-
export declare let slatesMessageActionGetRequest: z.ZodObject<{
|
|
62
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
63
|
-
method: z.ZodLiteral<"slates/action.get">;
|
|
64
|
-
id: z.ZodString;
|
|
65
|
-
params: z.ZodObject<{
|
|
66
|
-
actionId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
export type SlatesMessageActionGetRequest = z.infer<typeof slatesMessageActionGetRequest>;
|
|
70
|
-
export declare let slatesMessageActionGetResponse: z.ZodObject<{
|
|
71
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
72
|
-
id: z.ZodString;
|
|
73
|
-
result: z.ZodObject<{
|
|
74
|
-
action: z.ZodUnion<readonly [z.ZodObject<{
|
|
75
|
-
id: z.ZodString;
|
|
76
|
-
name: z.ZodString;
|
|
77
|
-
description: z.ZodOptional<z.ZodString>;
|
|
78
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
81
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
85
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
86
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
87
|
-
type: z.ZodLiteral<"action.tool">;
|
|
88
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
89
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
name: z.ZodString;
|
|
92
|
-
description: z.ZodOptional<z.ZodString>;
|
|
93
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
96
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
}, z.core.$strip>>;
|
|
99
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
100
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
101
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
102
|
-
type: z.ZodLiteral<"action.trigger">;
|
|
103
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
104
|
-
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
105
|
-
type: z.ZodLiteral<"polling">;
|
|
106
|
-
intervalSeconds: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
-
type: z.ZodLiteral<"webhook">;
|
|
109
|
-
autoRegistration: z.ZodBoolean;
|
|
110
|
-
autoUnregistration: z.ZodBoolean;
|
|
111
|
-
}, z.core.$strip>]>;
|
|
112
|
-
}, z.core.$strip>]>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
export type SlatesMessageActionGetResponse = z.infer<typeof slatesMessageActionGetResponse>;
|
|
116
|
-
/**
|
|
117
|
-
* Invoke Action
|
|
118
|
-
*/
|
|
119
|
-
export declare let slatesMessageActionInvokeRequest: z.ZodObject<{
|
|
120
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
121
|
-
method: z.ZodLiteral<"slates/action.tool.invoke">;
|
|
122
|
-
id: z.ZodString;
|
|
123
|
-
params: z.ZodObject<{
|
|
124
|
-
actionId: z.ZodString;
|
|
125
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
export type SlatesMessageActionInvokeRequest = z.infer<typeof slatesMessageActionInvokeRequest>;
|
|
129
|
-
export declare let slatesMessageActionInvokeResponse: z.ZodObject<{
|
|
130
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
131
|
-
id: z.ZodString;
|
|
132
|
-
result: z.ZodObject<{
|
|
133
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
134
|
-
message: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
export type SlatesMessageActionInvokeResponse = z.infer<typeof slatesMessageActionInvokeResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* Map Trigger Event
|
|
140
|
-
*/
|
|
141
|
-
export declare let slatesMessageActionTriggerEventMapRequest: z.ZodObject<{
|
|
142
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
143
|
-
method: z.ZodLiteral<"slates/action.trigger.map_event">;
|
|
144
|
-
id: z.ZodString;
|
|
145
|
-
params: z.ZodObject<{
|
|
146
|
-
actionId: z.ZodString;
|
|
147
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
|
-
}, z.core.$strip>;
|
|
150
|
-
export type SlatesMessageActionTriggerEventMapRequest = z.infer<typeof slatesMessageActionTriggerEventMapRequest>;
|
|
151
|
-
export declare let slatesMessageActionTriggerEventMapResponse: z.ZodObject<{
|
|
152
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
153
|
-
id: z.ZodString;
|
|
154
|
-
result: z.ZodObject<{
|
|
155
|
-
type: z.ZodString;
|
|
156
|
-
id: z.ZodString;
|
|
157
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
158
|
-
}, z.core.$strip>;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
export type SlatesMessageActionTriggerEventMapResponse = z.infer<typeof slatesMessageActionTriggerEventMapResponse>;
|
|
161
|
-
/**
|
|
162
|
-
* Poll Trigger Events
|
|
163
|
-
*/
|
|
164
|
-
export declare let slatesMessageActionTriggerEventsPollRequest: z.ZodObject<{
|
|
165
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
166
|
-
method: z.ZodLiteral<"slates/action.trigger.poll_events">;
|
|
167
|
-
id: z.ZodString;
|
|
168
|
-
params: z.ZodObject<{
|
|
169
|
-
actionId: z.ZodString;
|
|
170
|
-
state: z.ZodNullable<z.ZodAny>;
|
|
171
|
-
}, z.core.$strip>;
|
|
172
|
-
}, z.core.$strip>;
|
|
173
|
-
export type SlatesMessageActionTriggerEventsPollRequest = z.infer<typeof slatesMessageActionTriggerEventsPollRequest>;
|
|
174
|
-
export declare let slatesMessageActionTriggerEventsPollResponse: z.ZodObject<{
|
|
175
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
176
|
-
id: z.ZodString;
|
|
177
|
-
result: z.ZodObject<{
|
|
178
|
-
inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
179
|
-
updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
180
|
-
}, z.core.$strip>;
|
|
181
|
-
}, z.core.$strip>;
|
|
182
|
-
export type SlatesMessageActionTriggerEventsPollResponse = z.infer<typeof slatesMessageActionTriggerEventsPollResponse>;
|
|
183
|
-
/**
|
|
184
|
-
* Handle Webhook Request
|
|
185
|
-
*/
|
|
186
|
-
export declare let slatesMessageActionTriggerWebhookHandleRequest: z.ZodObject<{
|
|
187
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
188
|
-
method: z.ZodLiteral<"slates/action.trigger.webhook_handle">;
|
|
189
|
-
id: z.ZodString;
|
|
190
|
-
params: z.ZodObject<{
|
|
191
|
-
actionId: z.ZodString;
|
|
192
|
-
url: z.ZodString;
|
|
193
|
-
method: z.ZodString;
|
|
194
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
195
|
-
body: z.ZodNullable<z.ZodObject<{
|
|
196
|
-
encoding: z.ZodLiteral<"base64">;
|
|
197
|
-
content: z.ZodString;
|
|
198
|
-
}, z.core.$strip>>;
|
|
199
|
-
state: z.ZodNullable<z.ZodAny>;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
}, z.core.$strip>;
|
|
202
|
-
export type SlatesMessageActionTriggerWebhookHandleRequest = z.infer<typeof slatesMessageActionTriggerWebhookHandleRequest>;
|
|
203
|
-
export declare let slatesMessageActionTriggerWebhookHandleResponse: z.ZodObject<{
|
|
204
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
205
|
-
id: z.ZodString;
|
|
206
|
-
result: z.ZodObject<{
|
|
207
|
-
inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
208
|
-
updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
}, z.core.$strip>;
|
|
211
|
-
export type SlatesMessageActionTriggerWebhookHandleResponse = z.infer<typeof slatesMessageActionTriggerWebhookHandleResponse>;
|
|
212
|
-
/**
|
|
213
|
-
* Handle Webhook Registration
|
|
214
|
-
*/
|
|
215
|
-
export declare let slatesMessageActionTriggerWebhookRegisterRequest: z.ZodObject<{
|
|
216
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
217
|
-
method: z.ZodLiteral<"slates/action.trigger.webhook_register">;
|
|
218
|
-
id: z.ZodString;
|
|
219
|
-
params: z.ZodObject<{
|
|
220
|
-
actionId: z.ZodString;
|
|
221
|
-
webhookBaseUrl: z.ZodString;
|
|
222
|
-
}, z.core.$strip>;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
|
-
export type SlatesMessageActionTriggerWebhookRegisterRequest = z.infer<typeof slatesMessageActionTriggerWebhookRegisterRequest>;
|
|
225
|
-
export declare let slatesMessageActionTriggerWebhookRegisterResponse: z.ZodObject<{
|
|
226
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
227
|
-
id: z.ZodString;
|
|
228
|
-
result: z.ZodObject<{
|
|
229
|
-
registrationDetails: z.ZodAny;
|
|
230
|
-
state: z.ZodOptional<z.ZodAny>;
|
|
231
|
-
}, z.core.$strip>;
|
|
232
|
-
}, z.core.$strip>;
|
|
233
|
-
export type SlatesMessageActionTriggerWebhookRegisterResponse = z.infer<typeof slatesMessageActionTriggerWebhookRegisterResponse>;
|
|
234
|
-
/**
|
|
235
|
-
* Handle Webhook Unregistration
|
|
236
|
-
*/
|
|
237
|
-
export declare let slatesMessageActionTriggerWebhookUnregisterRequest: z.ZodObject<{
|
|
238
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
239
|
-
method: z.ZodLiteral<"slates/action.trigger.webhook_unregister">;
|
|
240
|
-
id: z.ZodString;
|
|
241
|
-
params: z.ZodObject<{
|
|
242
|
-
actionId: z.ZodString;
|
|
243
|
-
webhookBaseUrl: z.ZodString;
|
|
244
|
-
registrationDetails: z.ZodAny;
|
|
245
|
-
state: z.ZodOptional<z.ZodAny>;
|
|
246
|
-
}, z.core.$strip>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
export type SlatesMessageActionTriggerWebhookUnregisterRequest = z.infer<typeof slatesMessageActionTriggerWebhookUnregisterRequest>;
|
|
249
|
-
export declare let slatesMessageActionTriggerWebhookUnregisterResponse: z.ZodObject<{
|
|
250
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
251
|
-
id: z.ZodString;
|
|
252
|
-
result: z.ZodObject<{}, z.core.$strip>;
|
|
253
|
-
}, z.core.$strip>;
|
|
254
|
-
export type SlatesMessageActionTriggerWebhookUnregisterResponse = z.infer<typeof slatesMessageActionTriggerWebhookUnregisterResponse>;
|
|
255
|
-
export type SlatesActionRequests = SlatesMessageActionsListRequest | SlatesMessageActionGetRequest | SlatesMessageActionInvokeRequest | SlatesMessageActionTriggerEventMapRequest | SlatesMessageActionTriggerEventsPollRequest | SlatesMessageActionTriggerWebhookHandleRequest | SlatesMessageActionTriggerWebhookRegisterRequest | SlatesMessageActionTriggerWebhookUnregisterRequest;
|
|
256
|
-
export type SlatesActionResponses = SlatesMessageActionsListResponse | SlatesMessageActionGetResponse | SlatesMessageActionInvokeResponse | SlatesMessageActionTriggerEventMapResponse | SlatesMessageActionTriggerEventsPollResponse | SlatesMessageActionTriggerWebhookHandleResponse | SlatesMessageActionTriggerWebhookRegisterResponse | SlatesMessageActionTriggerWebhookUnregisterResponse;
|
|
257
|
-
export declare let slatesActionResponsesByMethod: {
|
|
258
|
-
'slates/actions.list': z.ZodObject<{
|
|
259
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
260
|
-
id: z.ZodString;
|
|
261
|
-
result: z.ZodObject<{
|
|
262
|
-
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
263
|
-
id: z.ZodString;
|
|
264
|
-
name: z.ZodString;
|
|
265
|
-
description: z.ZodOptional<z.ZodString>;
|
|
266
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
267
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
268
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
269
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
273
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
274
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
275
|
-
type: z.ZodLiteral<"action.tool">;
|
|
276
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
277
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
-
id: z.ZodString;
|
|
279
|
-
name: z.ZodString;
|
|
280
|
-
description: z.ZodOptional<z.ZodString>;
|
|
281
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
282
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
284
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
-
}, z.core.$strip>>;
|
|
287
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
288
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
289
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
290
|
-
type: z.ZodLiteral<"action.trigger">;
|
|
291
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
292
|
-
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
293
|
-
type: z.ZodLiteral<"polling">;
|
|
294
|
-
intervalSeconds: z.ZodNumber;
|
|
295
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
-
type: z.ZodLiteral<"webhook">;
|
|
297
|
-
autoRegistration: z.ZodBoolean;
|
|
298
|
-
autoUnregistration: z.ZodBoolean;
|
|
299
|
-
}, z.core.$strip>]>;
|
|
300
|
-
}, z.core.$strip>]>>;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
}, z.core.$strip>;
|
|
303
|
-
'slates/action.get': z.ZodObject<{
|
|
304
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
305
|
-
id: z.ZodString;
|
|
306
|
-
result: z.ZodObject<{
|
|
307
|
-
action: z.ZodUnion<readonly [z.ZodObject<{
|
|
308
|
-
id: z.ZodString;
|
|
309
|
-
name: z.ZodString;
|
|
310
|
-
description: z.ZodOptional<z.ZodString>;
|
|
311
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
312
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
313
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
314
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
315
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
-
}, z.core.$strip>>;
|
|
317
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
318
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
319
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
320
|
-
type: z.ZodLiteral<"action.tool">;
|
|
321
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
322
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
-
id: z.ZodString;
|
|
324
|
-
name: z.ZodString;
|
|
325
|
-
description: z.ZodOptional<z.ZodString>;
|
|
326
|
-
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
-
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
|
-
tags: z.ZodOptional<z.ZodObject<{
|
|
329
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
-
}, z.core.$strip>>;
|
|
332
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
333
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
334
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
335
|
-
type: z.ZodLiteral<"action.trigger">;
|
|
336
|
-
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
337
|
-
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
338
|
-
type: z.ZodLiteral<"polling">;
|
|
339
|
-
intervalSeconds: z.ZodNumber;
|
|
340
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
-
type: z.ZodLiteral<"webhook">;
|
|
342
|
-
autoRegistration: z.ZodBoolean;
|
|
343
|
-
autoUnregistration: z.ZodBoolean;
|
|
344
|
-
}, z.core.$strip>]>;
|
|
345
|
-
}, z.core.$strip>]>;
|
|
346
|
-
}, z.core.$strip>;
|
|
347
|
-
}, z.core.$strip>;
|
|
348
|
-
'slates/action.tool.invoke': z.ZodObject<{
|
|
349
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
350
|
-
id: z.ZodString;
|
|
351
|
-
result: z.ZodObject<{
|
|
352
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
353
|
-
message: z.ZodOptional<z.ZodString>;
|
|
354
|
-
}, z.core.$strip>;
|
|
355
|
-
}, z.core.$strip>;
|
|
356
|
-
'slates/action.trigger.map_event': z.ZodObject<{
|
|
357
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
358
|
-
id: z.ZodString;
|
|
359
|
-
result: z.ZodObject<{
|
|
360
|
-
type: z.ZodString;
|
|
361
|
-
id: z.ZodString;
|
|
362
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
363
|
-
}, z.core.$strip>;
|
|
364
|
-
}, z.core.$strip>;
|
|
365
|
-
'slates/action.trigger.poll_events': z.ZodObject<{
|
|
366
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
367
|
-
id: z.ZodString;
|
|
368
|
-
result: z.ZodObject<{
|
|
369
|
-
inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
370
|
-
updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
371
|
-
}, z.core.$strip>;
|
|
372
|
-
}, z.core.$strip>;
|
|
373
|
-
'slates/action.trigger.webhook_handle': z.ZodObject<{
|
|
374
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
375
|
-
id: z.ZodString;
|
|
376
|
-
result: z.ZodObject<{
|
|
377
|
-
inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
378
|
-
updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
379
|
-
}, z.core.$strip>;
|
|
380
|
-
}, z.core.$strip>;
|
|
381
|
-
'slates/action.trigger.webhook_register': z.ZodObject<{
|
|
382
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
383
|
-
id: z.ZodString;
|
|
384
|
-
result: z.ZodObject<{
|
|
385
|
-
registrationDetails: z.ZodAny;
|
|
386
|
-
state: z.ZodOptional<z.ZodAny>;
|
|
387
|
-
}, z.core.$strip>;
|
|
388
|
-
}, z.core.$strip>;
|
|
389
|
-
'slates/action.trigger.webhook_unregister': z.ZodObject<{
|
|
390
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
391
|
-
id: z.ZodString;
|
|
392
|
-
result: z.ZodObject<{}, z.core.$strip>;
|
|
393
|
-
}, z.core.$strip>;
|
|
394
|
-
};
|
|
395
|
-
export declare let slatesActionRequestsByMethod: {
|
|
396
|
-
'slates/actions.list': z.ZodObject<{
|
|
397
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
398
|
-
method: z.ZodLiteral<"slates/actions.list">;
|
|
399
|
-
id: z.ZodString;
|
|
400
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
401
|
-
}, z.core.$strip>;
|
|
402
|
-
'slates/action.get': z.ZodObject<{
|
|
403
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
404
|
-
method: z.ZodLiteral<"slates/action.get">;
|
|
405
|
-
id: z.ZodString;
|
|
406
|
-
params: z.ZodObject<{
|
|
407
|
-
actionId: z.ZodString;
|
|
408
|
-
}, z.core.$strip>;
|
|
409
|
-
}, z.core.$strip>;
|
|
410
|
-
'slates/action.tool.invoke': z.ZodObject<{
|
|
411
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
412
|
-
method: z.ZodLiteral<"slates/action.tool.invoke">;
|
|
413
|
-
id: z.ZodString;
|
|
414
|
-
params: z.ZodObject<{
|
|
415
|
-
actionId: z.ZodString;
|
|
416
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
417
|
-
}, z.core.$strip>;
|
|
418
|
-
}, z.core.$strip>;
|
|
419
|
-
'slates/action.trigger.map_event': z.ZodObject<{
|
|
420
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
421
|
-
method: z.ZodLiteral<"slates/action.trigger.map_event">;
|
|
422
|
-
id: z.ZodString;
|
|
423
|
-
params: z.ZodObject<{
|
|
424
|
-
actionId: z.ZodString;
|
|
425
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
426
|
-
}, z.core.$strip>;
|
|
427
|
-
}, z.core.$strip>;
|
|
428
|
-
'slates/action.trigger.poll_events': z.ZodObject<{
|
|
429
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
430
|
-
method: z.ZodLiteral<"slates/action.trigger.poll_events">;
|
|
431
|
-
id: z.ZodString;
|
|
432
|
-
params: z.ZodObject<{
|
|
433
|
-
actionId: z.ZodString;
|
|
434
|
-
state: z.ZodNullable<z.ZodAny>;
|
|
435
|
-
}, z.core.$strip>;
|
|
436
|
-
}, z.core.$strip>;
|
|
437
|
-
'slates/action.trigger.webhook_handle': z.ZodObject<{
|
|
438
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
439
|
-
method: z.ZodLiteral<"slates/action.trigger.webhook_handle">;
|
|
440
|
-
id: z.ZodString;
|
|
441
|
-
params: z.ZodObject<{
|
|
442
|
-
actionId: z.ZodString;
|
|
443
|
-
url: z.ZodString;
|
|
444
|
-
method: z.ZodString;
|
|
445
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
446
|
-
body: z.ZodNullable<z.ZodObject<{
|
|
447
|
-
encoding: z.ZodLiteral<"base64">;
|
|
448
|
-
content: z.ZodString;
|
|
449
|
-
}, z.core.$strip>>;
|
|
450
|
-
state: z.ZodNullable<z.ZodAny>;
|
|
451
|
-
}, z.core.$strip>;
|
|
452
|
-
}, z.core.$strip>;
|
|
453
|
-
'slates/action.trigger.webhook_register': z.ZodObject<{
|
|
454
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
455
|
-
method: z.ZodLiteral<"slates/action.trigger.webhook_register">;
|
|
456
|
-
id: z.ZodString;
|
|
457
|
-
params: z.ZodObject<{
|
|
458
|
-
actionId: z.ZodString;
|
|
459
|
-
webhookBaseUrl: z.ZodString;
|
|
460
|
-
}, z.core.$strip>;
|
|
461
|
-
}, z.core.$strip>;
|
|
462
|
-
'slates/action.trigger.webhook_unregister': z.ZodObject<{
|
|
463
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
464
|
-
method: z.ZodLiteral<"slates/action.trigger.webhook_unregister">;
|
|
465
|
-
id: z.ZodString;
|
|
466
|
-
params: z.ZodObject<{
|
|
467
|
-
actionId: z.ZodString;
|
|
468
|
-
webhookBaseUrl: z.ZodString;
|
|
469
|
-
registrationDetails: z.ZodAny;
|
|
470
|
-
state: z.ZodOptional<z.ZodAny>;
|
|
471
|
-
}, z.core.$strip>;
|
|
472
|
-
}, z.core.$strip>;
|
|
473
|
-
};
|
|
474
|
-
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/messages/action.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB;;GAEG;AACH,eAAO,IAAI,+BAA+B;;;;;iBAKxC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE9F,eAAO,IAAI,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,IAAI,6BAA6B;;;;;;;iBAOtC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6B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