@slates/proto 1.0.0-rc.12 → 1.0.0-rc.14
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 +499 -387
- package/dist/index.d.cts +535 -6
- package/dist/index.d.ts +535 -6
- package/dist/index.module.js +489 -387
- package/package.json +2 -2
- package/src/messages/action.ts +20 -3
- package/src/messages/adapter.ts +72 -0
- package/src/messages/index.ts +11 -0
- package/src/types/action.ts +40 -3
- package/src/types/adapter.ts +15 -0
- package/src/types/index.ts +1 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import z, { z as z$1 } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare let slatesWebhookHttpResponse: z.ZodObject<{
|
|
4
|
+
status: z.ZodNumber;
|
|
5
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
6
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
encoding: z.ZodLiteral<"base64">;
|
|
8
|
+
content: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type SlatesWebhookHttpResponse = z.infer<typeof slatesWebhookHttpResponse>;
|
|
3
12
|
/**
|
|
4
13
|
* List Actions
|
|
5
14
|
*/
|
|
@@ -7,7 +16,9 @@ declare let slatesMessageActionsListRequest: z.ZodObject<{
|
|
|
7
16
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
8
17
|
method: z.ZodLiteral<"slates/actions.list">;
|
|
9
18
|
id: z.ZodString;
|
|
10
|
-
params: z.ZodObject<{
|
|
19
|
+
params: z.ZodObject<{
|
|
20
|
+
includeAdapterActions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
11
22
|
}, z.core.$strip>;
|
|
12
23
|
type SlatesMessageActionsListRequest = z.infer<typeof slatesMessageActionsListRequest>;
|
|
13
24
|
declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
@@ -38,8 +49,10 @@ declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
|
38
49
|
name: z.ZodString;
|
|
39
50
|
url: z.ZodString;
|
|
40
51
|
}, z.core.$strip>>;
|
|
52
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
53
|
type: z.ZodLiteral<"action.tool">;
|
|
42
54
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
55
|
+
isPublic: z.ZodBoolean;
|
|
43
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
44
57
|
id: z.ZodString;
|
|
45
58
|
name: z.ZodString;
|
|
@@ -64,6 +77,7 @@ declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
|
64
77
|
name: z.ZodString;
|
|
65
78
|
url: z.ZodString;
|
|
66
79
|
}, z.core.$strip>>;
|
|
80
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
81
|
type: z.ZodLiteral<"action.trigger">;
|
|
68
82
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
69
83
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -73,6 +87,38 @@ declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
|
73
87
|
type: z.ZodLiteral<"webhook">;
|
|
74
88
|
autoRegistration: z.ZodBoolean;
|
|
75
89
|
autoUnregistration: z.ZodBoolean;
|
|
90
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
92
|
+
GET: "GET";
|
|
93
|
+
POST: "POST";
|
|
94
|
+
PUT: "PUT";
|
|
95
|
+
PATCH: "PATCH";
|
|
96
|
+
DELETE: "DELETE";
|
|
97
|
+
HEAD: "HEAD";
|
|
98
|
+
OPTIONS: "OPTIONS";
|
|
99
|
+
}>>>;
|
|
100
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
mode: z.ZodEnum<{
|
|
102
|
+
never: "never";
|
|
103
|
+
match: "match";
|
|
104
|
+
always: "always";
|
|
105
|
+
}>;
|
|
106
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
method: z.ZodOptional<z.ZodString>;
|
|
108
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
109
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
110
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
path: z.ZodString;
|
|
112
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
path: z.ZodString;
|
|
116
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
76
122
|
}, z.core.$strip>]>;
|
|
77
123
|
}, z.core.$strip>]>>;
|
|
78
124
|
}, z.core.$strip>;
|
|
@@ -118,8 +164,10 @@ declare let slatesMessageActionGetResponse: z.ZodObject<{
|
|
|
118
164
|
name: z.ZodString;
|
|
119
165
|
url: z.ZodString;
|
|
120
166
|
}, z.core.$strip>>;
|
|
167
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
168
|
type: z.ZodLiteral<"action.tool">;
|
|
122
169
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
170
|
+
isPublic: z.ZodBoolean;
|
|
123
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
172
|
id: z.ZodString;
|
|
125
173
|
name: z.ZodString;
|
|
@@ -144,6 +192,7 @@ declare let slatesMessageActionGetResponse: z.ZodObject<{
|
|
|
144
192
|
name: z.ZodString;
|
|
145
193
|
url: z.ZodString;
|
|
146
194
|
}, z.core.$strip>>;
|
|
195
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
196
|
type: z.ZodLiteral<"action.trigger">;
|
|
148
197
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
149
198
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -153,6 +202,38 @@ declare let slatesMessageActionGetResponse: z.ZodObject<{
|
|
|
153
202
|
type: z.ZodLiteral<"webhook">;
|
|
154
203
|
autoRegistration: z.ZodBoolean;
|
|
155
204
|
autoUnregistration: z.ZodBoolean;
|
|
205
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
207
|
+
GET: "GET";
|
|
208
|
+
POST: "POST";
|
|
209
|
+
PUT: "PUT";
|
|
210
|
+
PATCH: "PATCH";
|
|
211
|
+
DELETE: "DELETE";
|
|
212
|
+
HEAD: "HEAD";
|
|
213
|
+
OPTIONS: "OPTIONS";
|
|
214
|
+
}>>>;
|
|
215
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
mode: z.ZodEnum<{
|
|
217
|
+
never: "never";
|
|
218
|
+
match: "match";
|
|
219
|
+
always: "always";
|
|
220
|
+
}>;
|
|
221
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
222
|
+
method: z.ZodOptional<z.ZodString>;
|
|
223
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
224
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
225
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
path: z.ZodString;
|
|
227
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
path: z.ZodString;
|
|
231
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
}, z.core.$strip>>>;
|
|
234
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>>;
|
|
156
237
|
}, z.core.$strip>]>;
|
|
157
238
|
}, z.core.$strip>]>;
|
|
158
239
|
}, z.core.$strip>;
|
|
@@ -337,6 +418,7 @@ declare let slatesMessageActionTriggerWebhookHandleRequest: z.ZodObject<{
|
|
|
337
418
|
content: z.ZodString;
|
|
338
419
|
}, z.core.$strip>>;
|
|
339
420
|
state: z.ZodNullable<z.ZodAny>;
|
|
421
|
+
registrationDetails: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
340
422
|
}, z.core.$strip>;
|
|
341
423
|
}, z.core.$strip>;
|
|
342
424
|
type SlatesMessageActionTriggerWebhookHandleRequest = z.infer<typeof slatesMessageActionTriggerWebhookHandleRequest>;
|
|
@@ -346,6 +428,14 @@ declare let slatesMessageActionTriggerWebhookHandleResponse: z.ZodObject<{
|
|
|
346
428
|
result: z.ZodObject<{
|
|
347
429
|
inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
348
430
|
updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
431
|
+
response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
432
|
+
status: z.ZodNumber;
|
|
433
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
434
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
435
|
+
encoding: z.ZodLiteral<"base64">;
|
|
436
|
+
content: z.ZodString;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
}, z.core.$strip>>>;
|
|
349
439
|
requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
440
|
startedAt: z.ZodString;
|
|
351
441
|
durationMs: z.ZodNumber;
|
|
@@ -508,8 +598,10 @@ declare let slatesActionResponsesByMethod: {
|
|
|
508
598
|
name: z.ZodString;
|
|
509
599
|
url: z.ZodString;
|
|
510
600
|
}, z.core.$strip>>;
|
|
601
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
602
|
type: z.ZodLiteral<"action.tool">;
|
|
512
603
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
604
|
+
isPublic: z.ZodBoolean;
|
|
513
605
|
}, z.core.$strip>, z.ZodObject<{
|
|
514
606
|
id: z.ZodString;
|
|
515
607
|
name: z.ZodString;
|
|
@@ -534,6 +626,7 @@ declare let slatesActionResponsesByMethod: {
|
|
|
534
626
|
name: z.ZodString;
|
|
535
627
|
url: z.ZodString;
|
|
536
628
|
}, z.core.$strip>>;
|
|
629
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
630
|
type: z.ZodLiteral<"action.trigger">;
|
|
538
631
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
539
632
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -543,6 +636,38 @@ declare let slatesActionResponsesByMethod: {
|
|
|
543
636
|
type: z.ZodLiteral<"webhook">;
|
|
544
637
|
autoRegistration: z.ZodBoolean;
|
|
545
638
|
autoUnregistration: z.ZodBoolean;
|
|
639
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
640
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
641
|
+
GET: "GET";
|
|
642
|
+
POST: "POST";
|
|
643
|
+
PUT: "PUT";
|
|
644
|
+
PATCH: "PATCH";
|
|
645
|
+
DELETE: "DELETE";
|
|
646
|
+
HEAD: "HEAD";
|
|
647
|
+
OPTIONS: "OPTIONS";
|
|
648
|
+
}>>>;
|
|
649
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
650
|
+
mode: z.ZodEnum<{
|
|
651
|
+
never: "never";
|
|
652
|
+
match: "match";
|
|
653
|
+
always: "always";
|
|
654
|
+
}>;
|
|
655
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
656
|
+
method: z.ZodOptional<z.ZodString>;
|
|
657
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
658
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
659
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
660
|
+
path: z.ZodString;
|
|
661
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strip>>;
|
|
663
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
664
|
+
path: z.ZodString;
|
|
665
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
666
|
+
}, z.core.$strip>>;
|
|
667
|
+
}, z.core.$strip>>>;
|
|
668
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
669
|
+
}, z.core.$strip>>;
|
|
670
|
+
}, z.core.$strip>>;
|
|
546
671
|
}, z.core.$strip>]>;
|
|
547
672
|
}, z.core.$strip>]>>;
|
|
548
673
|
}, z.core.$strip>;
|
|
@@ -575,8 +700,10 @@ declare let slatesActionResponsesByMethod: {
|
|
|
575
700
|
name: z.ZodString;
|
|
576
701
|
url: z.ZodString;
|
|
577
702
|
}, z.core.$strip>>;
|
|
703
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
578
704
|
type: z.ZodLiteral<"action.tool">;
|
|
579
705
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
706
|
+
isPublic: z.ZodBoolean;
|
|
580
707
|
}, z.core.$strip>, z.ZodObject<{
|
|
581
708
|
id: z.ZodString;
|
|
582
709
|
name: z.ZodString;
|
|
@@ -601,6 +728,7 @@ declare let slatesActionResponsesByMethod: {
|
|
|
601
728
|
name: z.ZodString;
|
|
602
729
|
url: z.ZodString;
|
|
603
730
|
}, z.core.$strip>>;
|
|
731
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
604
732
|
type: z.ZodLiteral<"action.trigger">;
|
|
605
733
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
606
734
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -610,6 +738,38 @@ declare let slatesActionResponsesByMethod: {
|
|
|
610
738
|
type: z.ZodLiteral<"webhook">;
|
|
611
739
|
autoRegistration: z.ZodBoolean;
|
|
612
740
|
autoUnregistration: z.ZodBoolean;
|
|
741
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
742
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
743
|
+
GET: "GET";
|
|
744
|
+
POST: "POST";
|
|
745
|
+
PUT: "PUT";
|
|
746
|
+
PATCH: "PATCH";
|
|
747
|
+
DELETE: "DELETE";
|
|
748
|
+
HEAD: "HEAD";
|
|
749
|
+
OPTIONS: "OPTIONS";
|
|
750
|
+
}>>>;
|
|
751
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
752
|
+
mode: z.ZodEnum<{
|
|
753
|
+
never: "never";
|
|
754
|
+
match: "match";
|
|
755
|
+
always: "always";
|
|
756
|
+
}>;
|
|
757
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
758
|
+
method: z.ZodOptional<z.ZodString>;
|
|
759
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
760
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
761
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
762
|
+
path: z.ZodString;
|
|
763
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
766
|
+
path: z.ZodString;
|
|
767
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
768
|
+
}, z.core.$strip>>;
|
|
769
|
+
}, z.core.$strip>>>;
|
|
770
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
771
|
+
}, z.core.$strip>>;
|
|
772
|
+
}, z.core.$strip>>;
|
|
613
773
|
}, z.core.$strip>]>;
|
|
614
774
|
}, z.core.$strip>]>;
|
|
615
775
|
}, z.core.$strip>;
|
|
@@ -740,6 +900,14 @@ declare let slatesActionResponsesByMethod: {
|
|
|
740
900
|
result: z.ZodObject<{
|
|
741
901
|
inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
742
902
|
updatedState: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
903
|
+
response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
904
|
+
status: z.ZodNumber;
|
|
905
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
906
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
907
|
+
encoding: z.ZodLiteral<"base64">;
|
|
908
|
+
content: z.ZodString;
|
|
909
|
+
}, z.core.$strip>>;
|
|
910
|
+
}, z.core.$strip>>>;
|
|
743
911
|
requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
744
912
|
startedAt: z.ZodString;
|
|
745
913
|
durationMs: z.ZodNumber;
|
|
@@ -846,7 +1014,9 @@ declare let slatesActionRequestsByMethod: {
|
|
|
846
1014
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
847
1015
|
method: z.ZodLiteral<"slates/actions.list">;
|
|
848
1016
|
id: z.ZodString;
|
|
849
|
-
params: z.ZodObject<{
|
|
1017
|
+
params: z.ZodObject<{
|
|
1018
|
+
includeAdapterActions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1019
|
+
}, z.core.$strip>;
|
|
850
1020
|
}, z.core.$strip>;
|
|
851
1021
|
'slates/action.get': z.ZodObject<{
|
|
852
1022
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
@@ -897,6 +1067,7 @@ declare let slatesActionRequestsByMethod: {
|
|
|
897
1067
|
content: z.ZodString;
|
|
898
1068
|
}, z.core.$strip>>;
|
|
899
1069
|
state: z.ZodNullable<z.ZodAny>;
|
|
1070
|
+
registrationDetails: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
900
1071
|
}, z.core.$strip>;
|
|
901
1072
|
}, z.core.$strip>;
|
|
902
1073
|
'slates/action.trigger.webhook_register': z.ZodObject<{
|
|
@@ -921,6 +1092,111 @@ declare let slatesActionRequestsByMethod: {
|
|
|
921
1092
|
}, z.core.$strip>;
|
|
922
1093
|
};
|
|
923
1094
|
|
|
1095
|
+
/**
|
|
1096
|
+
* List Adapters
|
|
1097
|
+
*/
|
|
1098
|
+
declare let slatesMessageAdaptersListRequest: z.ZodObject<{
|
|
1099
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1100
|
+
method: z.ZodLiteral<"slates/adapters.list">;
|
|
1101
|
+
id: z.ZodString;
|
|
1102
|
+
params: z.ZodObject<{
|
|
1103
|
+
includeAdapters: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1104
|
+
}, z.core.$strip>;
|
|
1105
|
+
}, z.core.$strip>;
|
|
1106
|
+
type SlatesMessageAdaptersListRequest = z.infer<typeof slatesMessageAdaptersListRequest>;
|
|
1107
|
+
declare let slatesMessageAdaptersListResponse: z.ZodObject<{
|
|
1108
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1109
|
+
id: z.ZodString;
|
|
1110
|
+
result: z.ZodObject<{
|
|
1111
|
+
adapters: z.ZodArray<z.ZodObject<{
|
|
1112
|
+
id: z.ZodString;
|
|
1113
|
+
name: z.ZodString;
|
|
1114
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1115
|
+
id: z.ZodString;
|
|
1116
|
+
value: z.ZodAny;
|
|
1117
|
+
}, z.core.$strip>>;
|
|
1118
|
+
}, z.core.$strip>>;
|
|
1119
|
+
}, z.core.$strip>;
|
|
1120
|
+
}, z.core.$strip>;
|
|
1121
|
+
type SlatesMessageAdaptersListResponse = z.infer<typeof slatesMessageAdaptersListResponse>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Get Adapter
|
|
1124
|
+
*/
|
|
1125
|
+
declare let slatesMessageAdapterGetRequest: z.ZodObject<{
|
|
1126
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1127
|
+
method: z.ZodLiteral<"slates/adapter.get">;
|
|
1128
|
+
id: z.ZodString;
|
|
1129
|
+
params: z.ZodObject<{
|
|
1130
|
+
adapterId: z.ZodString;
|
|
1131
|
+
}, z.core.$strip>;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
type SlatesMessageAdapterGetRequest = z.infer<typeof slatesMessageAdapterGetRequest>;
|
|
1134
|
+
declare let slatesMessageAdapterGetResponse: z.ZodObject<{
|
|
1135
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1136
|
+
id: z.ZodString;
|
|
1137
|
+
result: z.ZodObject<{
|
|
1138
|
+
adapter: z.ZodObject<{
|
|
1139
|
+
id: z.ZodString;
|
|
1140
|
+
name: z.ZodString;
|
|
1141
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1142
|
+
id: z.ZodString;
|
|
1143
|
+
value: z.ZodAny;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
}, z.core.$strip>;
|
|
1146
|
+
}, z.core.$strip>;
|
|
1147
|
+
}, z.core.$strip>;
|
|
1148
|
+
type SlatesMessageAdapterGetResponse = z.infer<typeof slatesMessageAdapterGetResponse>;
|
|
1149
|
+
type SlatesAdapterRequests = SlatesMessageAdaptersListRequest | SlatesMessageAdapterGetRequest;
|
|
1150
|
+
type SlatesAdapterResponses = SlatesMessageAdaptersListResponse | SlatesMessageAdapterGetResponse;
|
|
1151
|
+
declare let slatesAdapterResponsesByMethod: {
|
|
1152
|
+
'slates/adapters.list': z.ZodObject<{
|
|
1153
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1154
|
+
id: z.ZodString;
|
|
1155
|
+
result: z.ZodObject<{
|
|
1156
|
+
adapters: z.ZodArray<z.ZodObject<{
|
|
1157
|
+
id: z.ZodString;
|
|
1158
|
+
name: z.ZodString;
|
|
1159
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1160
|
+
id: z.ZodString;
|
|
1161
|
+
value: z.ZodAny;
|
|
1162
|
+
}, z.core.$strip>>;
|
|
1163
|
+
}, z.core.$strip>>;
|
|
1164
|
+
}, z.core.$strip>;
|
|
1165
|
+
}, z.core.$strip>;
|
|
1166
|
+
'slates/adapter.get': z.ZodObject<{
|
|
1167
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1168
|
+
id: z.ZodString;
|
|
1169
|
+
result: z.ZodObject<{
|
|
1170
|
+
adapter: z.ZodObject<{
|
|
1171
|
+
id: z.ZodString;
|
|
1172
|
+
name: z.ZodString;
|
|
1173
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1174
|
+
id: z.ZodString;
|
|
1175
|
+
value: z.ZodAny;
|
|
1176
|
+
}, z.core.$strip>>;
|
|
1177
|
+
}, z.core.$strip>;
|
|
1178
|
+
}, z.core.$strip>;
|
|
1179
|
+
}, z.core.$strip>;
|
|
1180
|
+
};
|
|
1181
|
+
declare let slatesAdapterRequestsByMethod: {
|
|
1182
|
+
'slates/adapters.list': z.ZodObject<{
|
|
1183
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1184
|
+
method: z.ZodLiteral<"slates/adapters.list">;
|
|
1185
|
+
id: z.ZodString;
|
|
1186
|
+
params: z.ZodObject<{
|
|
1187
|
+
includeAdapters: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1188
|
+
}, z.core.$strip>;
|
|
1189
|
+
}, z.core.$strip>;
|
|
1190
|
+
'slates/adapter.get': z.ZodObject<{
|
|
1191
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1192
|
+
method: z.ZodLiteral<"slates/adapter.get">;
|
|
1193
|
+
id: z.ZodString;
|
|
1194
|
+
params: z.ZodObject<{
|
|
1195
|
+
adapterId: z.ZodString;
|
|
1196
|
+
}, z.core.$strip>;
|
|
1197
|
+
}, z.core.$strip>;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
924
1200
|
/**
|
|
925
1201
|
* Set Authentication
|
|
926
1202
|
*/
|
|
@@ -2317,8 +2593,8 @@ declare let withRequestTraces: <Shape extends z.ZodRawShape>(shape: Shape) => z.
|
|
|
2317
2593
|
})[P]; } : never, z.core.$strip>;
|
|
2318
2594
|
|
|
2319
2595
|
type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications;
|
|
2320
|
-
type SlatesRequests = SlatesActionRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
|
|
2321
|
-
type SlatesResponses = SlatesActionResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
|
|
2596
|
+
type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
|
|
2597
|
+
type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
|
|
2322
2598
|
declare let slatesResponsesByMethod: {
|
|
2323
2599
|
'slates/provider.identify': z$1.ZodObject<{
|
|
2324
2600
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
@@ -2753,6 +3029,34 @@ declare let slatesResponsesByMethod: {
|
|
|
2753
3029
|
}, z$1.core.$strip>>>;
|
|
2754
3030
|
}, z$1.core.$strip>;
|
|
2755
3031
|
}, z$1.core.$strip>;
|
|
3032
|
+
'slates/adapters.list': z$1.ZodObject<{
|
|
3033
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3034
|
+
id: z$1.ZodString;
|
|
3035
|
+
result: z$1.ZodObject<{
|
|
3036
|
+
adapters: z$1.ZodArray<z$1.ZodObject<{
|
|
3037
|
+
id: z$1.ZodString;
|
|
3038
|
+
name: z$1.ZodString;
|
|
3039
|
+
capabilities: z$1.ZodArray<z$1.ZodObject<{
|
|
3040
|
+
id: z$1.ZodString;
|
|
3041
|
+
value: z$1.ZodAny;
|
|
3042
|
+
}, z$1.core.$strip>>;
|
|
3043
|
+
}, z$1.core.$strip>>;
|
|
3044
|
+
}, z$1.core.$strip>;
|
|
3045
|
+
}, z$1.core.$strip>;
|
|
3046
|
+
'slates/adapter.get': z$1.ZodObject<{
|
|
3047
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3048
|
+
id: z$1.ZodString;
|
|
3049
|
+
result: z$1.ZodObject<{
|
|
3050
|
+
adapter: z$1.ZodObject<{
|
|
3051
|
+
id: z$1.ZodString;
|
|
3052
|
+
name: z$1.ZodString;
|
|
3053
|
+
capabilities: z$1.ZodArray<z$1.ZodObject<{
|
|
3054
|
+
id: z$1.ZodString;
|
|
3055
|
+
value: z$1.ZodAny;
|
|
3056
|
+
}, z$1.core.$strip>>;
|
|
3057
|
+
}, z$1.core.$strip>;
|
|
3058
|
+
}, z$1.core.$strip>;
|
|
3059
|
+
}, z$1.core.$strip>;
|
|
2756
3060
|
'slates/actions.list': z$1.ZodObject<{
|
|
2757
3061
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
2758
3062
|
id: z$1.ZodString;
|
|
@@ -2781,8 +3085,10 @@ declare let slatesResponsesByMethod: {
|
|
|
2781
3085
|
name: z$1.ZodString;
|
|
2782
3086
|
url: z$1.ZodString;
|
|
2783
3087
|
}, z$1.core.$strip>>;
|
|
3088
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2784
3089
|
type: z$1.ZodLiteral<"action.tool">;
|
|
2785
3090
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
3091
|
+
isPublic: z$1.ZodBoolean;
|
|
2786
3092
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2787
3093
|
id: z$1.ZodString;
|
|
2788
3094
|
name: z$1.ZodString;
|
|
@@ -2807,6 +3113,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2807
3113
|
name: z$1.ZodString;
|
|
2808
3114
|
url: z$1.ZodString;
|
|
2809
3115
|
}, z$1.core.$strip>>;
|
|
3116
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2810
3117
|
type: z$1.ZodLiteral<"action.trigger">;
|
|
2811
3118
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
2812
3119
|
invocation: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
@@ -2816,6 +3123,38 @@ declare let slatesResponsesByMethod: {
|
|
|
2816
3123
|
type: z$1.ZodLiteral<"webhook">;
|
|
2817
3124
|
autoRegistration: z$1.ZodBoolean;
|
|
2818
3125
|
autoUnregistration: z$1.ZodBoolean;
|
|
3126
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3127
|
+
methods: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
3128
|
+
GET: "GET";
|
|
3129
|
+
POST: "POST";
|
|
3130
|
+
PUT: "PUT";
|
|
3131
|
+
PATCH: "PATCH";
|
|
3132
|
+
DELETE: "DELETE";
|
|
3133
|
+
HEAD: "HEAD";
|
|
3134
|
+
OPTIONS: "OPTIONS";
|
|
3135
|
+
}>>>;
|
|
3136
|
+
sync: z$1.ZodOptional<z$1.ZodObject<{
|
|
3137
|
+
mode: z$1.ZodEnum<{
|
|
3138
|
+
never: "never";
|
|
3139
|
+
match: "match";
|
|
3140
|
+
always: "always";
|
|
3141
|
+
}>;
|
|
3142
|
+
match: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3143
|
+
method: z$1.ZodOptional<z$1.ZodString>;
|
|
3144
|
+
hasQueryParam: z$1.ZodOptional<z$1.ZodString>;
|
|
3145
|
+
hasHeader: z$1.ZodOptional<z$1.ZodString>;
|
|
3146
|
+
jsonBodyField: z$1.ZodOptional<z$1.ZodObject<{
|
|
3147
|
+
path: z$1.ZodString;
|
|
3148
|
+
equals: z$1.ZodOptional<z$1.ZodString>;
|
|
3149
|
+
}, z$1.core.$strip>>;
|
|
3150
|
+
formBodyField: z$1.ZodOptional<z$1.ZodObject<{
|
|
3151
|
+
path: z$1.ZodString;
|
|
3152
|
+
equals: z$1.ZodOptional<z$1.ZodString>;
|
|
3153
|
+
}, z$1.core.$strip>>;
|
|
3154
|
+
}, z$1.core.$strip>>>;
|
|
3155
|
+
timeoutMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3156
|
+
}, z$1.core.$strip>>;
|
|
3157
|
+
}, z$1.core.$strip>>;
|
|
2819
3158
|
}, z$1.core.$strip>]>;
|
|
2820
3159
|
}, z$1.core.$strip>]>>;
|
|
2821
3160
|
}, z$1.core.$strip>;
|
|
@@ -2848,8 +3187,10 @@ declare let slatesResponsesByMethod: {
|
|
|
2848
3187
|
name: z$1.ZodString;
|
|
2849
3188
|
url: z$1.ZodString;
|
|
2850
3189
|
}, z$1.core.$strip>>;
|
|
3190
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2851
3191
|
type: z$1.ZodLiteral<"action.tool">;
|
|
2852
3192
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
3193
|
+
isPublic: z$1.ZodBoolean;
|
|
2853
3194
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2854
3195
|
id: z$1.ZodString;
|
|
2855
3196
|
name: z$1.ZodString;
|
|
@@ -2874,6 +3215,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2874
3215
|
name: z$1.ZodString;
|
|
2875
3216
|
url: z$1.ZodString;
|
|
2876
3217
|
}, z$1.core.$strip>>;
|
|
3218
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2877
3219
|
type: z$1.ZodLiteral<"action.trigger">;
|
|
2878
3220
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
2879
3221
|
invocation: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
@@ -2883,6 +3225,38 @@ declare let slatesResponsesByMethod: {
|
|
|
2883
3225
|
type: z$1.ZodLiteral<"webhook">;
|
|
2884
3226
|
autoRegistration: z$1.ZodBoolean;
|
|
2885
3227
|
autoUnregistration: z$1.ZodBoolean;
|
|
3228
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3229
|
+
methods: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
3230
|
+
GET: "GET";
|
|
3231
|
+
POST: "POST";
|
|
3232
|
+
PUT: "PUT";
|
|
3233
|
+
PATCH: "PATCH";
|
|
3234
|
+
DELETE: "DELETE";
|
|
3235
|
+
HEAD: "HEAD";
|
|
3236
|
+
OPTIONS: "OPTIONS";
|
|
3237
|
+
}>>>;
|
|
3238
|
+
sync: z$1.ZodOptional<z$1.ZodObject<{
|
|
3239
|
+
mode: z$1.ZodEnum<{
|
|
3240
|
+
never: "never";
|
|
3241
|
+
match: "match";
|
|
3242
|
+
always: "always";
|
|
3243
|
+
}>;
|
|
3244
|
+
match: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3245
|
+
method: z$1.ZodOptional<z$1.ZodString>;
|
|
3246
|
+
hasQueryParam: z$1.ZodOptional<z$1.ZodString>;
|
|
3247
|
+
hasHeader: z$1.ZodOptional<z$1.ZodString>;
|
|
3248
|
+
jsonBodyField: z$1.ZodOptional<z$1.ZodObject<{
|
|
3249
|
+
path: z$1.ZodString;
|
|
3250
|
+
equals: z$1.ZodOptional<z$1.ZodString>;
|
|
3251
|
+
}, z$1.core.$strip>>;
|
|
3252
|
+
formBodyField: z$1.ZodOptional<z$1.ZodObject<{
|
|
3253
|
+
path: z$1.ZodString;
|
|
3254
|
+
equals: z$1.ZodOptional<z$1.ZodString>;
|
|
3255
|
+
}, z$1.core.$strip>>;
|
|
3256
|
+
}, z$1.core.$strip>>>;
|
|
3257
|
+
timeoutMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3258
|
+
}, z$1.core.$strip>>;
|
|
3259
|
+
}, z$1.core.$strip>>;
|
|
2886
3260
|
}, z$1.core.$strip>]>;
|
|
2887
3261
|
}, z$1.core.$strip>]>;
|
|
2888
3262
|
}, z$1.core.$strip>;
|
|
@@ -3013,6 +3387,14 @@ declare let slatesResponsesByMethod: {
|
|
|
3013
3387
|
result: z$1.ZodObject<{
|
|
3014
3388
|
inputs: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
3015
3389
|
updatedState: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodAny>>;
|
|
3390
|
+
response: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
3391
|
+
status: z$1.ZodNumber;
|
|
3392
|
+
headers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
3393
|
+
body: z$1.ZodNullable<z$1.ZodObject<{
|
|
3394
|
+
encoding: z$1.ZodLiteral<"base64">;
|
|
3395
|
+
content: z$1.ZodString;
|
|
3396
|
+
}, z$1.core.$strip>>;
|
|
3397
|
+
}, z$1.core.$strip>>>;
|
|
3016
3398
|
requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3017
3399
|
startedAt: z$1.ZodString;
|
|
3018
3400
|
durationMs: z$1.ZodNumber;
|
|
@@ -3238,11 +3620,29 @@ declare let slatesRequestsByMethod: {
|
|
|
3238
3620
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
3239
3621
|
}, z$1.core.$strip>;
|
|
3240
3622
|
}, z$1.core.$strip>;
|
|
3623
|
+
'slates/adapters.list': z$1.ZodObject<{
|
|
3624
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3625
|
+
method: z$1.ZodLiteral<"slates/adapters.list">;
|
|
3626
|
+
id: z$1.ZodString;
|
|
3627
|
+
params: z$1.ZodObject<{
|
|
3628
|
+
includeAdapters: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
3629
|
+
}, z$1.core.$strip>;
|
|
3630
|
+
}, z$1.core.$strip>;
|
|
3631
|
+
'slates/adapter.get': z$1.ZodObject<{
|
|
3632
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3633
|
+
method: z$1.ZodLiteral<"slates/adapter.get">;
|
|
3634
|
+
id: z$1.ZodString;
|
|
3635
|
+
params: z$1.ZodObject<{
|
|
3636
|
+
adapterId: z$1.ZodString;
|
|
3637
|
+
}, z$1.core.$strip>;
|
|
3638
|
+
}, z$1.core.$strip>;
|
|
3241
3639
|
'slates/actions.list': z$1.ZodObject<{
|
|
3242
3640
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3243
3641
|
method: z$1.ZodLiteral<"slates/actions.list">;
|
|
3244
3642
|
id: z$1.ZodString;
|
|
3245
|
-
params: z$1.ZodObject<{
|
|
3643
|
+
params: z$1.ZodObject<{
|
|
3644
|
+
includeAdapterActions: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
3645
|
+
}, z$1.core.$strip>;
|
|
3246
3646
|
}, z$1.core.$strip>;
|
|
3247
3647
|
'slates/action.get': z$1.ZodObject<{
|
|
3248
3648
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
@@ -3293,6 +3693,7 @@ declare let slatesRequestsByMethod: {
|
|
|
3293
3693
|
content: z$1.ZodString;
|
|
3294
3694
|
}, z$1.core.$strip>>;
|
|
3295
3695
|
state: z$1.ZodNullable<z$1.ZodAny>;
|
|
3696
|
+
registrationDetails: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodAny>>;
|
|
3296
3697
|
}, z$1.core.$strip>;
|
|
3297
3698
|
}, z$1.core.$strip>;
|
|
3298
3699
|
'slates/action.trigger.webhook_register': z$1.ZodObject<{
|
|
@@ -3461,6 +3862,7 @@ declare let slatesActionBase: z.ZodObject<{
|
|
|
3461
3862
|
name: z.ZodString;
|
|
3462
3863
|
url: z.ZodString;
|
|
3463
3864
|
}, z.core.$strip>>;
|
|
3865
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3464
3866
|
}, z.core.$strip>;
|
|
3465
3867
|
declare let slatesActionTool: z.ZodObject<{
|
|
3466
3868
|
id: z.ZodString;
|
|
@@ -3486,8 +3888,55 @@ declare let slatesActionTool: z.ZodObject<{
|
|
|
3486
3888
|
name: z.ZodString;
|
|
3487
3889
|
url: z.ZodString;
|
|
3488
3890
|
}, z.core.$strip>>;
|
|
3891
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3489
3892
|
type: z.ZodLiteral<"action.tool">;
|
|
3490
3893
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
3894
|
+
isPublic: z.ZodBoolean;
|
|
3895
|
+
}, z.core.$strip>;
|
|
3896
|
+
declare let slatesWebhookRequestMatcher: z.ZodObject<{
|
|
3897
|
+
method: z.ZodOptional<z.ZodString>;
|
|
3898
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
3899
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
3900
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
3901
|
+
path: z.ZodString;
|
|
3902
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
3903
|
+
}, z.core.$strip>>;
|
|
3904
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
3905
|
+
path: z.ZodString;
|
|
3906
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
3907
|
+
}, z.core.$strip>>;
|
|
3908
|
+
}, z.core.$strip>;
|
|
3909
|
+
declare let slatesWebhookHttp: z.ZodObject<{
|
|
3910
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3911
|
+
GET: "GET";
|
|
3912
|
+
POST: "POST";
|
|
3913
|
+
PUT: "PUT";
|
|
3914
|
+
PATCH: "PATCH";
|
|
3915
|
+
DELETE: "DELETE";
|
|
3916
|
+
HEAD: "HEAD";
|
|
3917
|
+
OPTIONS: "OPTIONS";
|
|
3918
|
+
}>>>;
|
|
3919
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
3920
|
+
mode: z.ZodEnum<{
|
|
3921
|
+
never: "never";
|
|
3922
|
+
match: "match";
|
|
3923
|
+
always: "always";
|
|
3924
|
+
}>;
|
|
3925
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3926
|
+
method: z.ZodOptional<z.ZodString>;
|
|
3927
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
3928
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
3929
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
3930
|
+
path: z.ZodString;
|
|
3931
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
3932
|
+
}, z.core.$strip>>;
|
|
3933
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
3934
|
+
path: z.ZodString;
|
|
3935
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
3936
|
+
}, z.core.$strip>>;
|
|
3937
|
+
}, z.core.$strip>>>;
|
|
3938
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3939
|
+
}, z.core.$strip>>;
|
|
3491
3940
|
}, z.core.$strip>;
|
|
3492
3941
|
declare let slatesActionTrigger: z.ZodObject<{
|
|
3493
3942
|
id: z.ZodString;
|
|
@@ -3513,6 +3962,7 @@ declare let slatesActionTrigger: z.ZodObject<{
|
|
|
3513
3962
|
name: z.ZodString;
|
|
3514
3963
|
url: z.ZodString;
|
|
3515
3964
|
}, z.core.$strip>>;
|
|
3965
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3516
3966
|
type: z.ZodLiteral<"action.trigger">;
|
|
3517
3967
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
3518
3968
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3522,6 +3972,38 @@ declare let slatesActionTrigger: z.ZodObject<{
|
|
|
3522
3972
|
type: z.ZodLiteral<"webhook">;
|
|
3523
3973
|
autoRegistration: z.ZodBoolean;
|
|
3524
3974
|
autoUnregistration: z.ZodBoolean;
|
|
3975
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
3976
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3977
|
+
GET: "GET";
|
|
3978
|
+
POST: "POST";
|
|
3979
|
+
PUT: "PUT";
|
|
3980
|
+
PATCH: "PATCH";
|
|
3981
|
+
DELETE: "DELETE";
|
|
3982
|
+
HEAD: "HEAD";
|
|
3983
|
+
OPTIONS: "OPTIONS";
|
|
3984
|
+
}>>>;
|
|
3985
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
3986
|
+
mode: z.ZodEnum<{
|
|
3987
|
+
never: "never";
|
|
3988
|
+
match: "match";
|
|
3989
|
+
always: "always";
|
|
3990
|
+
}>;
|
|
3991
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3992
|
+
method: z.ZodOptional<z.ZodString>;
|
|
3993
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
3994
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
3995
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
3996
|
+
path: z.ZodString;
|
|
3997
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
3998
|
+
}, z.core.$strip>>;
|
|
3999
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
4000
|
+
path: z.ZodString;
|
|
4001
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
4002
|
+
}, z.core.$strip>>;
|
|
4003
|
+
}, z.core.$strip>>>;
|
|
4004
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
4005
|
+
}, z.core.$strip>>;
|
|
4006
|
+
}, z.core.$strip>>;
|
|
3525
4007
|
}, z.core.$strip>]>;
|
|
3526
4008
|
}, z.core.$strip>;
|
|
3527
4009
|
declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3548,8 +4030,10 @@ declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3548
4030
|
name: z.ZodString;
|
|
3549
4031
|
url: z.ZodString;
|
|
3550
4032
|
}, z.core.$strip>>;
|
|
4033
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3551
4034
|
type: z.ZodLiteral<"action.tool">;
|
|
3552
4035
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
4036
|
+
isPublic: z.ZodBoolean;
|
|
3553
4037
|
}, z.core.$strip>, z.ZodObject<{
|
|
3554
4038
|
id: z.ZodString;
|
|
3555
4039
|
name: z.ZodString;
|
|
@@ -3574,6 +4058,7 @@ declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3574
4058
|
name: z.ZodString;
|
|
3575
4059
|
url: z.ZodString;
|
|
3576
4060
|
}, z.core.$strip>>;
|
|
4061
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3577
4062
|
type: z.ZodLiteral<"action.trigger">;
|
|
3578
4063
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
3579
4064
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3583,12 +4068,56 @@ declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3583
4068
|
type: z.ZodLiteral<"webhook">;
|
|
3584
4069
|
autoRegistration: z.ZodBoolean;
|
|
3585
4070
|
autoUnregistration: z.ZodBoolean;
|
|
4071
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
4072
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4073
|
+
GET: "GET";
|
|
4074
|
+
POST: "POST";
|
|
4075
|
+
PUT: "PUT";
|
|
4076
|
+
PATCH: "PATCH";
|
|
4077
|
+
DELETE: "DELETE";
|
|
4078
|
+
HEAD: "HEAD";
|
|
4079
|
+
OPTIONS: "OPTIONS";
|
|
4080
|
+
}>>>;
|
|
4081
|
+
sync: z.ZodOptional<z.ZodObject<{
|
|
4082
|
+
mode: z.ZodEnum<{
|
|
4083
|
+
never: "never";
|
|
4084
|
+
match: "match";
|
|
4085
|
+
always: "always";
|
|
4086
|
+
}>;
|
|
4087
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4088
|
+
method: z.ZodOptional<z.ZodString>;
|
|
4089
|
+
hasQueryParam: z.ZodOptional<z.ZodString>;
|
|
4090
|
+
hasHeader: z.ZodOptional<z.ZodString>;
|
|
4091
|
+
jsonBodyField: z.ZodOptional<z.ZodObject<{
|
|
4092
|
+
path: z.ZodString;
|
|
4093
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
4094
|
+
}, z.core.$strip>>;
|
|
4095
|
+
formBodyField: z.ZodOptional<z.ZodObject<{
|
|
4096
|
+
path: z.ZodString;
|
|
4097
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
4098
|
+
}, z.core.$strip>>;
|
|
4099
|
+
}, z.core.$strip>>>;
|
|
4100
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
4101
|
+
}, z.core.$strip>>;
|
|
4102
|
+
}, z.core.$strip>>;
|
|
3586
4103
|
}, z.core.$strip>]>;
|
|
3587
4104
|
}, z.core.$strip>]>;
|
|
3588
4105
|
type SlatesAction = z.infer<typeof slatesAction>;
|
|
3589
4106
|
type SlatesActionTool = z.infer<typeof slatesActionTool>;
|
|
3590
4107
|
type SlatesActionTrigger = z.infer<typeof slatesActionTrigger>;
|
|
3591
4108
|
type SlatesActionScopes = z.infer<typeof slatesActionScopes>;
|
|
4109
|
+
type SlatesWebhookRequestMatcher = z.infer<typeof slatesWebhookRequestMatcher>;
|
|
4110
|
+
type SlatesWebhookHttp = z.infer<typeof slatesWebhookHttp>;
|
|
4111
|
+
|
|
4112
|
+
declare let slatesAdapter: z.ZodObject<{
|
|
4113
|
+
id: z.ZodString;
|
|
4114
|
+
name: z.ZodString;
|
|
4115
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
4116
|
+
id: z.ZodString;
|
|
4117
|
+
value: z.ZodAny;
|
|
4118
|
+
}, z.core.$strip>>;
|
|
4119
|
+
}, z.core.$strip>;
|
|
4120
|
+
type SlateAdapter = z.infer<typeof slatesAdapter>;
|
|
3592
4121
|
|
|
3593
4122
|
declare let slatesAuthenticationMethod: z.ZodObject<{
|
|
3594
4123
|
id: z.ZodString;
|
|
@@ -3636,4 +4165,4 @@ type SlatesParticipant = z.infer<typeof slatesParticipant>;
|
|
|
3636
4165
|
declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
|
|
3637
4166
|
type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
|
|
3638
4167
|
|
|
3639
|
-
export { SLATES_PROTOCOL_VERSION, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, withRequestTraces };
|
|
4168
|
+
export { SLATES_PROTOCOL_VERSION, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesWebhookHttp, type SlatesWebhookHttpResponse, type SlatesWebhookRequestMatcher, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
|