@slates/proto 1.0.0-rc.13 → 1.0.0-rc.15
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 +469 -394
- package/dist/index.d.cts +199 -6
- package/dist/index.d.ts +199 -6
- package/dist/index.module.js +461 -393
- package/package.json +2 -2
- package/src/messages/action.ts +4 -1
- package/src/messages/adapter.ts +72 -0
- package/src/messages/index.ts +11 -0
- package/src/types/action.ts +5 -2
- package/src/types/adapter.ts +15 -0
- package/src/types/index.ts +1 -0
package/dist/index.d.cts
CHANGED
|
@@ -16,7 +16,9 @@ declare let slatesMessageActionsListRequest: z.ZodObject<{
|
|
|
16
16
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
17
17
|
method: z.ZodLiteral<"slates/actions.list">;
|
|
18
18
|
id: z.ZodString;
|
|
19
|
-
params: z.ZodObject<{
|
|
19
|
+
params: z.ZodObject<{
|
|
20
|
+
includeAdapterActions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
20
22
|
}, z.core.$strip>;
|
|
21
23
|
type SlatesMessageActionsListRequest = z.infer<typeof slatesMessageActionsListRequest>;
|
|
22
24
|
declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
@@ -47,8 +49,10 @@ declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
|
47
49
|
name: z.ZodString;
|
|
48
50
|
url: z.ZodString;
|
|
49
51
|
}, z.core.$strip>>;
|
|
52
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
53
|
type: z.ZodLiteral<"action.tool">;
|
|
51
54
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
55
|
+
isPublic: z.ZodBoolean;
|
|
52
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
53
57
|
id: z.ZodString;
|
|
54
58
|
name: z.ZodString;
|
|
@@ -73,6 +77,7 @@ declare let slatesMessageActionsListResponse: z.ZodObject<{
|
|
|
73
77
|
name: z.ZodString;
|
|
74
78
|
url: z.ZodString;
|
|
75
79
|
}, z.core.$strip>>;
|
|
80
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
81
|
type: z.ZodLiteral<"action.trigger">;
|
|
77
82
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
78
83
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -159,8 +164,10 @@ declare let slatesMessageActionGetResponse: z.ZodObject<{
|
|
|
159
164
|
name: z.ZodString;
|
|
160
165
|
url: z.ZodString;
|
|
161
166
|
}, z.core.$strip>>;
|
|
167
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
168
|
type: z.ZodLiteral<"action.tool">;
|
|
163
169
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
170
|
+
isPublic: z.ZodBoolean;
|
|
164
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
172
|
id: z.ZodString;
|
|
166
173
|
name: z.ZodString;
|
|
@@ -185,6 +192,7 @@ declare let slatesMessageActionGetResponse: z.ZodObject<{
|
|
|
185
192
|
name: z.ZodString;
|
|
186
193
|
url: z.ZodString;
|
|
187
194
|
}, z.core.$strip>>;
|
|
195
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
196
|
type: z.ZodLiteral<"action.trigger">;
|
|
189
197
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
190
198
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -252,6 +260,7 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
|
|
|
252
260
|
message: z.ZodOptional<z.ZodString>;
|
|
253
261
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
254
262
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
263
|
+
attachmentHash: z.ZodOptional<z.ZodString>;
|
|
255
264
|
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
256
265
|
type: z.ZodLiteral<"url">;
|
|
257
266
|
url: z.ZodString;
|
|
@@ -590,8 +599,10 @@ declare let slatesActionResponsesByMethod: {
|
|
|
590
599
|
name: z.ZodString;
|
|
591
600
|
url: z.ZodString;
|
|
592
601
|
}, z.core.$strip>>;
|
|
602
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
603
|
type: z.ZodLiteral<"action.tool">;
|
|
594
604
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
605
|
+
isPublic: z.ZodBoolean;
|
|
595
606
|
}, z.core.$strip>, z.ZodObject<{
|
|
596
607
|
id: z.ZodString;
|
|
597
608
|
name: z.ZodString;
|
|
@@ -616,6 +627,7 @@ declare let slatesActionResponsesByMethod: {
|
|
|
616
627
|
name: z.ZodString;
|
|
617
628
|
url: z.ZodString;
|
|
618
629
|
}, z.core.$strip>>;
|
|
630
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
619
631
|
type: z.ZodLiteral<"action.trigger">;
|
|
620
632
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
621
633
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -689,8 +701,10 @@ declare let slatesActionResponsesByMethod: {
|
|
|
689
701
|
name: z.ZodString;
|
|
690
702
|
url: z.ZodString;
|
|
691
703
|
}, z.core.$strip>>;
|
|
704
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
692
705
|
type: z.ZodLiteral<"action.tool">;
|
|
693
706
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
707
|
+
isPublic: z.ZodBoolean;
|
|
694
708
|
}, z.core.$strip>, z.ZodObject<{
|
|
695
709
|
id: z.ZodString;
|
|
696
710
|
name: z.ZodString;
|
|
@@ -715,6 +729,7 @@ declare let slatesActionResponsesByMethod: {
|
|
|
715
729
|
name: z.ZodString;
|
|
716
730
|
url: z.ZodString;
|
|
717
731
|
}, z.core.$strip>>;
|
|
732
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
733
|
type: z.ZodLiteral<"action.trigger">;
|
|
719
734
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
720
735
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -768,6 +783,7 @@ declare let slatesActionResponsesByMethod: {
|
|
|
768
783
|
message: z.ZodOptional<z.ZodString>;
|
|
769
784
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
770
785
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
786
|
+
attachmentHash: z.ZodOptional<z.ZodString>;
|
|
771
787
|
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
772
788
|
type: z.ZodLiteral<"url">;
|
|
773
789
|
url: z.ZodString;
|
|
@@ -1000,7 +1016,9 @@ declare let slatesActionRequestsByMethod: {
|
|
|
1000
1016
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1001
1017
|
method: z.ZodLiteral<"slates/actions.list">;
|
|
1002
1018
|
id: z.ZodString;
|
|
1003
|
-
params: z.ZodObject<{
|
|
1019
|
+
params: z.ZodObject<{
|
|
1020
|
+
includeAdapterActions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1021
|
+
}, z.core.$strip>;
|
|
1004
1022
|
}, z.core.$strip>;
|
|
1005
1023
|
'slates/action.get': z.ZodObject<{
|
|
1006
1024
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
@@ -1076,6 +1094,111 @@ declare let slatesActionRequestsByMethod: {
|
|
|
1076
1094
|
}, z.core.$strip>;
|
|
1077
1095
|
};
|
|
1078
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* List Adapters
|
|
1099
|
+
*/
|
|
1100
|
+
declare let slatesMessageAdaptersListRequest: z.ZodObject<{
|
|
1101
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1102
|
+
method: z.ZodLiteral<"slates/adapters.list">;
|
|
1103
|
+
id: z.ZodString;
|
|
1104
|
+
params: z.ZodObject<{
|
|
1105
|
+
includeAdapters: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1106
|
+
}, z.core.$strip>;
|
|
1107
|
+
}, z.core.$strip>;
|
|
1108
|
+
type SlatesMessageAdaptersListRequest = z.infer<typeof slatesMessageAdaptersListRequest>;
|
|
1109
|
+
declare let slatesMessageAdaptersListResponse: z.ZodObject<{
|
|
1110
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1111
|
+
id: z.ZodString;
|
|
1112
|
+
result: z.ZodObject<{
|
|
1113
|
+
adapters: z.ZodArray<z.ZodObject<{
|
|
1114
|
+
id: z.ZodString;
|
|
1115
|
+
name: z.ZodString;
|
|
1116
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1117
|
+
id: z.ZodString;
|
|
1118
|
+
value: z.ZodAny;
|
|
1119
|
+
}, z.core.$strip>>;
|
|
1120
|
+
}, z.core.$strip>>;
|
|
1121
|
+
}, z.core.$strip>;
|
|
1122
|
+
}, z.core.$strip>;
|
|
1123
|
+
type SlatesMessageAdaptersListResponse = z.infer<typeof slatesMessageAdaptersListResponse>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Get Adapter
|
|
1126
|
+
*/
|
|
1127
|
+
declare let slatesMessageAdapterGetRequest: z.ZodObject<{
|
|
1128
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1129
|
+
method: z.ZodLiteral<"slates/adapter.get">;
|
|
1130
|
+
id: z.ZodString;
|
|
1131
|
+
params: z.ZodObject<{
|
|
1132
|
+
adapterId: z.ZodString;
|
|
1133
|
+
}, z.core.$strip>;
|
|
1134
|
+
}, z.core.$strip>;
|
|
1135
|
+
type SlatesMessageAdapterGetRequest = z.infer<typeof slatesMessageAdapterGetRequest>;
|
|
1136
|
+
declare let slatesMessageAdapterGetResponse: z.ZodObject<{
|
|
1137
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1138
|
+
id: z.ZodString;
|
|
1139
|
+
result: z.ZodObject<{
|
|
1140
|
+
adapter: z.ZodObject<{
|
|
1141
|
+
id: z.ZodString;
|
|
1142
|
+
name: z.ZodString;
|
|
1143
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1144
|
+
id: z.ZodString;
|
|
1145
|
+
value: z.ZodAny;
|
|
1146
|
+
}, z.core.$strip>>;
|
|
1147
|
+
}, z.core.$strip>;
|
|
1148
|
+
}, z.core.$strip>;
|
|
1149
|
+
}, z.core.$strip>;
|
|
1150
|
+
type SlatesMessageAdapterGetResponse = z.infer<typeof slatesMessageAdapterGetResponse>;
|
|
1151
|
+
type SlatesAdapterRequests = SlatesMessageAdaptersListRequest | SlatesMessageAdapterGetRequest;
|
|
1152
|
+
type SlatesAdapterResponses = SlatesMessageAdaptersListResponse | SlatesMessageAdapterGetResponse;
|
|
1153
|
+
declare let slatesAdapterResponsesByMethod: {
|
|
1154
|
+
'slates/adapters.list': z.ZodObject<{
|
|
1155
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1156
|
+
id: z.ZodString;
|
|
1157
|
+
result: z.ZodObject<{
|
|
1158
|
+
adapters: z.ZodArray<z.ZodObject<{
|
|
1159
|
+
id: z.ZodString;
|
|
1160
|
+
name: z.ZodString;
|
|
1161
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1162
|
+
id: z.ZodString;
|
|
1163
|
+
value: z.ZodAny;
|
|
1164
|
+
}, z.core.$strip>>;
|
|
1165
|
+
}, z.core.$strip>>;
|
|
1166
|
+
}, z.core.$strip>;
|
|
1167
|
+
}, z.core.$strip>;
|
|
1168
|
+
'slates/adapter.get': z.ZodObject<{
|
|
1169
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1170
|
+
id: z.ZodString;
|
|
1171
|
+
result: z.ZodObject<{
|
|
1172
|
+
adapter: z.ZodObject<{
|
|
1173
|
+
id: z.ZodString;
|
|
1174
|
+
name: z.ZodString;
|
|
1175
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
1176
|
+
id: z.ZodString;
|
|
1177
|
+
value: z.ZodAny;
|
|
1178
|
+
}, z.core.$strip>>;
|
|
1179
|
+
}, z.core.$strip>;
|
|
1180
|
+
}, z.core.$strip>;
|
|
1181
|
+
}, z.core.$strip>;
|
|
1182
|
+
};
|
|
1183
|
+
declare let slatesAdapterRequestsByMethod: {
|
|
1184
|
+
'slates/adapters.list': z.ZodObject<{
|
|
1185
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1186
|
+
method: z.ZodLiteral<"slates/adapters.list">;
|
|
1187
|
+
id: z.ZodString;
|
|
1188
|
+
params: z.ZodObject<{
|
|
1189
|
+
includeAdapters: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1190
|
+
}, z.core.$strip>;
|
|
1191
|
+
}, z.core.$strip>;
|
|
1192
|
+
'slates/adapter.get': z.ZodObject<{
|
|
1193
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1194
|
+
method: z.ZodLiteral<"slates/adapter.get">;
|
|
1195
|
+
id: z.ZodString;
|
|
1196
|
+
params: z.ZodObject<{
|
|
1197
|
+
adapterId: z.ZodString;
|
|
1198
|
+
}, z.core.$strip>;
|
|
1199
|
+
}, z.core.$strip>;
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1079
1202
|
/**
|
|
1080
1203
|
* Set Authentication
|
|
1081
1204
|
*/
|
|
@@ -2472,8 +2595,8 @@ declare let withRequestTraces: <Shape extends z.ZodRawShape>(shape: Shape) => z.
|
|
|
2472
2595
|
})[P]; } : never, z.core.$strip>;
|
|
2473
2596
|
|
|
2474
2597
|
type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications;
|
|
2475
|
-
type SlatesRequests = SlatesActionRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
|
|
2476
|
-
type SlatesResponses = SlatesActionResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
|
|
2598
|
+
type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
|
|
2599
|
+
type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
|
|
2477
2600
|
declare let slatesResponsesByMethod: {
|
|
2478
2601
|
'slates/provider.identify': z$1.ZodObject<{
|
|
2479
2602
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
@@ -2908,6 +3031,34 @@ declare let slatesResponsesByMethod: {
|
|
|
2908
3031
|
}, z$1.core.$strip>>>;
|
|
2909
3032
|
}, z$1.core.$strip>;
|
|
2910
3033
|
}, z$1.core.$strip>;
|
|
3034
|
+
'slates/adapters.list': z$1.ZodObject<{
|
|
3035
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3036
|
+
id: z$1.ZodString;
|
|
3037
|
+
result: z$1.ZodObject<{
|
|
3038
|
+
adapters: z$1.ZodArray<z$1.ZodObject<{
|
|
3039
|
+
id: z$1.ZodString;
|
|
3040
|
+
name: z$1.ZodString;
|
|
3041
|
+
capabilities: z$1.ZodArray<z$1.ZodObject<{
|
|
3042
|
+
id: z$1.ZodString;
|
|
3043
|
+
value: z$1.ZodAny;
|
|
3044
|
+
}, z$1.core.$strip>>;
|
|
3045
|
+
}, z$1.core.$strip>>;
|
|
3046
|
+
}, z$1.core.$strip>;
|
|
3047
|
+
}, z$1.core.$strip>;
|
|
3048
|
+
'slates/adapter.get': z$1.ZodObject<{
|
|
3049
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3050
|
+
id: z$1.ZodString;
|
|
3051
|
+
result: z$1.ZodObject<{
|
|
3052
|
+
adapter: z$1.ZodObject<{
|
|
3053
|
+
id: z$1.ZodString;
|
|
3054
|
+
name: z$1.ZodString;
|
|
3055
|
+
capabilities: z$1.ZodArray<z$1.ZodObject<{
|
|
3056
|
+
id: z$1.ZodString;
|
|
3057
|
+
value: z$1.ZodAny;
|
|
3058
|
+
}, z$1.core.$strip>>;
|
|
3059
|
+
}, z$1.core.$strip>;
|
|
3060
|
+
}, z$1.core.$strip>;
|
|
3061
|
+
}, z$1.core.$strip>;
|
|
2911
3062
|
'slates/actions.list': z$1.ZodObject<{
|
|
2912
3063
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
2913
3064
|
id: z$1.ZodString;
|
|
@@ -2936,8 +3087,10 @@ declare let slatesResponsesByMethod: {
|
|
|
2936
3087
|
name: z$1.ZodString;
|
|
2937
3088
|
url: z$1.ZodString;
|
|
2938
3089
|
}, z$1.core.$strip>>;
|
|
3090
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2939
3091
|
type: z$1.ZodLiteral<"action.tool">;
|
|
2940
3092
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
3093
|
+
isPublic: z$1.ZodBoolean;
|
|
2941
3094
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2942
3095
|
id: z$1.ZodString;
|
|
2943
3096
|
name: z$1.ZodString;
|
|
@@ -2962,6 +3115,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2962
3115
|
name: z$1.ZodString;
|
|
2963
3116
|
url: z$1.ZodString;
|
|
2964
3117
|
}, z$1.core.$strip>>;
|
|
3118
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2965
3119
|
type: z$1.ZodLiteral<"action.trigger">;
|
|
2966
3120
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
2967
3121
|
invocation: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
@@ -3035,8 +3189,10 @@ declare let slatesResponsesByMethod: {
|
|
|
3035
3189
|
name: z$1.ZodString;
|
|
3036
3190
|
url: z$1.ZodString;
|
|
3037
3191
|
}, z$1.core.$strip>>;
|
|
3192
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3038
3193
|
type: z$1.ZodLiteral<"action.tool">;
|
|
3039
3194
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
3195
|
+
isPublic: z$1.ZodBoolean;
|
|
3040
3196
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3041
3197
|
id: z$1.ZodString;
|
|
3042
3198
|
name: z$1.ZodString;
|
|
@@ -3061,6 +3217,7 @@ declare let slatesResponsesByMethod: {
|
|
|
3061
3217
|
name: z$1.ZodString;
|
|
3062
3218
|
url: z$1.ZodString;
|
|
3063
3219
|
}, z$1.core.$strip>>;
|
|
3220
|
+
adapter: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3064
3221
|
type: z$1.ZodLiteral<"action.trigger">;
|
|
3065
3222
|
capabilities: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
3066
3223
|
invocation: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
@@ -3114,6 +3271,7 @@ declare let slatesResponsesByMethod: {
|
|
|
3114
3271
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
3115
3272
|
attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3116
3273
|
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
3274
|
+
attachmentHash: z$1.ZodOptional<z$1.ZodString>;
|
|
3117
3275
|
content: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
3118
3276
|
type: z$1.ZodLiteral<"url">;
|
|
3119
3277
|
url: z$1.ZodString;
|
|
@@ -3465,11 +3623,29 @@ declare let slatesRequestsByMethod: {
|
|
|
3465
3623
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
3466
3624
|
}, z$1.core.$strip>;
|
|
3467
3625
|
}, z$1.core.$strip>;
|
|
3626
|
+
'slates/adapters.list': z$1.ZodObject<{
|
|
3627
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3628
|
+
method: z$1.ZodLiteral<"slates/adapters.list">;
|
|
3629
|
+
id: z$1.ZodString;
|
|
3630
|
+
params: z$1.ZodObject<{
|
|
3631
|
+
includeAdapters: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
3632
|
+
}, z$1.core.$strip>;
|
|
3633
|
+
}, z$1.core.$strip>;
|
|
3634
|
+
'slates/adapter.get': z$1.ZodObject<{
|
|
3635
|
+
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3636
|
+
method: z$1.ZodLiteral<"slates/adapter.get">;
|
|
3637
|
+
id: z$1.ZodString;
|
|
3638
|
+
params: z$1.ZodObject<{
|
|
3639
|
+
adapterId: z$1.ZodString;
|
|
3640
|
+
}, z$1.core.$strip>;
|
|
3641
|
+
}, z$1.core.$strip>;
|
|
3468
3642
|
'slates/actions.list': z$1.ZodObject<{
|
|
3469
3643
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
3470
3644
|
method: z$1.ZodLiteral<"slates/actions.list">;
|
|
3471
3645
|
id: z$1.ZodString;
|
|
3472
|
-
params: z$1.ZodObject<{
|
|
3646
|
+
params: z$1.ZodObject<{
|
|
3647
|
+
includeAdapterActions: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
3648
|
+
}, z$1.core.$strip>;
|
|
3473
3649
|
}, z$1.core.$strip>;
|
|
3474
3650
|
'slates/action.get': z$1.ZodObject<{
|
|
3475
3651
|
jsonrpc: z$1.ZodLiteral<"2.0">;
|
|
@@ -3689,6 +3865,7 @@ declare let slatesActionBase: z.ZodObject<{
|
|
|
3689
3865
|
name: z.ZodString;
|
|
3690
3866
|
url: z.ZodString;
|
|
3691
3867
|
}, z.core.$strip>>;
|
|
3868
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3692
3869
|
}, z.core.$strip>;
|
|
3693
3870
|
declare let slatesActionTool: z.ZodObject<{
|
|
3694
3871
|
id: z.ZodString;
|
|
@@ -3714,8 +3891,10 @@ declare let slatesActionTool: z.ZodObject<{
|
|
|
3714
3891
|
name: z.ZodString;
|
|
3715
3892
|
url: z.ZodString;
|
|
3716
3893
|
}, z.core.$strip>>;
|
|
3894
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3717
3895
|
type: z.ZodLiteral<"action.tool">;
|
|
3718
3896
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
3897
|
+
isPublic: z.ZodBoolean;
|
|
3719
3898
|
}, z.core.$strip>;
|
|
3720
3899
|
declare let slatesWebhookRequestMatcher: z.ZodObject<{
|
|
3721
3900
|
method: z.ZodOptional<z.ZodString>;
|
|
@@ -3786,6 +3965,7 @@ declare let slatesActionTrigger: z.ZodObject<{
|
|
|
3786
3965
|
name: z.ZodString;
|
|
3787
3966
|
url: z.ZodString;
|
|
3788
3967
|
}, z.core.$strip>>;
|
|
3968
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3789
3969
|
type: z.ZodLiteral<"action.trigger">;
|
|
3790
3970
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
3791
3971
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3853,8 +4033,10 @@ declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3853
4033
|
name: z.ZodString;
|
|
3854
4034
|
url: z.ZodString;
|
|
3855
4035
|
}, z.core.$strip>>;
|
|
4036
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3856
4037
|
type: z.ZodLiteral<"action.tool">;
|
|
3857
4038
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
4039
|
+
isPublic: z.ZodBoolean;
|
|
3858
4040
|
}, z.core.$strip>, z.ZodObject<{
|
|
3859
4041
|
id: z.ZodString;
|
|
3860
4042
|
name: z.ZodString;
|
|
@@ -3879,6 +4061,7 @@ declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3879
4061
|
name: z.ZodString;
|
|
3880
4062
|
url: z.ZodString;
|
|
3881
4063
|
}, z.core.$strip>>;
|
|
4064
|
+
adapter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3882
4065
|
type: z.ZodLiteral<"action.trigger">;
|
|
3883
4066
|
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
3884
4067
|
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3929,6 +4112,16 @@ type SlatesActionScopes = z.infer<typeof slatesActionScopes>;
|
|
|
3929
4112
|
type SlatesWebhookRequestMatcher = z.infer<typeof slatesWebhookRequestMatcher>;
|
|
3930
4113
|
type SlatesWebhookHttp = z.infer<typeof slatesWebhookHttp>;
|
|
3931
4114
|
|
|
4115
|
+
declare let slatesAdapter: z.ZodObject<{
|
|
4116
|
+
id: z.ZodString;
|
|
4117
|
+
name: z.ZodString;
|
|
4118
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
4119
|
+
id: z.ZodString;
|
|
4120
|
+
value: z.ZodAny;
|
|
4121
|
+
}, z.core.$strip>>;
|
|
4122
|
+
}, z.core.$strip>;
|
|
4123
|
+
type SlateAdapter = z.infer<typeof slatesAdapter>;
|
|
4124
|
+
|
|
3932
4125
|
declare let slatesAuthenticationMethod: z.ZodObject<{
|
|
3933
4126
|
id: z.ZodString;
|
|
3934
4127
|
name: z.ZodString;
|
|
@@ -3975,4 +4168,4 @@ type SlatesParticipant = z.infer<typeof slatesParticipant>;
|
|
|
3975
4168
|
declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
|
|
3976
4169
|
type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
|
|
3977
4170
|
|
|
3978
|
-
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, type SlatesWebhookHttp, type SlatesWebhookHttpResponse, type SlatesWebhookRequestMatcher, 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, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
|
|
4171
|
+
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 };
|