@slates/proto 1.0.0-rc.24 → 1.0.0-rc.25
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 +682 -637
- package/dist/index.d.cts +85 -3
- package/dist/index.d.ts +85 -3
- package/dist/index.module.js +677 -637
- package/package.json +1 -1
- package/src/messages/hub.ts +2 -1
- package/src/messages/index.ts +11 -0
- package/src/messages/toolCategory.ts +37 -0
- package/src/types/action.ts +2 -1
- package/src/types/index.ts +1 -0
- package/src/types/toolCategory.ts +10 -0
package/package.json
CHANGED
package/src/messages/hub.ts
CHANGED
|
@@ -69,7 +69,8 @@ export let slatesMessageProviderCapabilitiesGetResponse = z.object({
|
|
|
69
69
|
.optional(),
|
|
70
70
|
provider: z
|
|
71
71
|
.object({
|
|
72
|
-
triggerGroups: z.boolean().optional()
|
|
72
|
+
triggerGroups: z.boolean().optional(),
|
|
73
|
+
toolCategories: z.boolean().optional()
|
|
73
74
|
})
|
|
74
75
|
.optional()
|
|
75
76
|
})
|
package/src/messages/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './controlFlow';
|
|
|
6
6
|
export * from './hub';
|
|
7
7
|
export * from './identify';
|
|
8
8
|
export * from './legacyTrigger';
|
|
9
|
+
export * from './toolCategory';
|
|
9
10
|
export * from './tracing';
|
|
10
11
|
export * from './triggerGroup';
|
|
11
12
|
export * from './webhookErrors';
|
|
@@ -63,6 +64,12 @@ import {
|
|
|
63
64
|
slatesLegacyTriggerRequestsByMethod,
|
|
64
65
|
slatesLegacyTriggerResponsesByMethod
|
|
65
66
|
} from './legacyTrigger';
|
|
67
|
+
import {
|
|
68
|
+
type SlatesToolCategoryRequests,
|
|
69
|
+
type SlatesToolCategoryResponses,
|
|
70
|
+
slatesToolCategoryRequestsByMethod,
|
|
71
|
+
slatesToolCategoryResponsesByMethod
|
|
72
|
+
} from './toolCategory';
|
|
66
73
|
import {
|
|
67
74
|
type SlatesTriggerGroupRequests,
|
|
68
75
|
type SlatesTriggerGroupResponses,
|
|
@@ -84,6 +91,7 @@ export type SlatesRequests =
|
|
|
84
91
|
| SlatesIdentifyRequests
|
|
85
92
|
| SlatesLegacyTriggerRequests
|
|
86
93
|
| SlatesTriggerGroupRequests
|
|
94
|
+
| SlatesToolCategoryRequests
|
|
87
95
|
| SlatesHubRequests
|
|
88
96
|
| SlatesIdentifyRequests;
|
|
89
97
|
|
|
@@ -95,6 +103,7 @@ export type SlatesResponses =
|
|
|
95
103
|
| SlatesIdentifyResponses
|
|
96
104
|
| SlatesLegacyTriggerResponses
|
|
97
105
|
| SlatesTriggerGroupResponses
|
|
106
|
+
| SlatesToolCategoryResponses
|
|
98
107
|
| SlatesHubResponses
|
|
99
108
|
| SlatesIdentifyResponses;
|
|
100
109
|
|
|
@@ -106,6 +115,7 @@ export let slatesResponsesByMethod = {
|
|
|
106
115
|
...slatesIdentifyResponsesByMethod,
|
|
107
116
|
...slatesLegacyTriggerResponsesByMethod,
|
|
108
117
|
...slatesTriggerGroupResponsesByMethod,
|
|
118
|
+
...slatesToolCategoryResponsesByMethod,
|
|
109
119
|
...slatesHubResponsesByMethod,
|
|
110
120
|
...slatesIdentifyResponsesByMethod
|
|
111
121
|
};
|
|
@@ -118,6 +128,7 @@ export let slatesRequestsByMethod = {
|
|
|
118
128
|
...slatesIdentifyRequestsByMethod,
|
|
119
129
|
...slatesLegacyTriggerRequestsByMethod,
|
|
120
130
|
...slatesTriggerGroupRequestsByMethod,
|
|
131
|
+
...slatesToolCategoryRequestsByMethod,
|
|
121
132
|
...slatesHubRequestsByMethod,
|
|
122
133
|
...slatesIdentifyRequestsByMethod
|
|
123
134
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { slatesToolCategory } from '../types';
|
|
3
|
+
|
|
4
|
+
export let slatesMessageToolCategoriesListRequest = z.object({
|
|
5
|
+
jsonrpc: z.literal('2.0'),
|
|
6
|
+
method: z.literal('slates/tool_categories.list'),
|
|
7
|
+
id: z.string(),
|
|
8
|
+
params: z.object({})
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export type SlatesMessageToolCategoriesListRequest = z.infer<
|
|
12
|
+
typeof slatesMessageToolCategoriesListRequest
|
|
13
|
+
>;
|
|
14
|
+
|
|
15
|
+
export let slatesMessageToolCategoriesListResponse = z.object({
|
|
16
|
+
jsonrpc: z.literal('2.0'),
|
|
17
|
+
id: z.string(),
|
|
18
|
+
result: z.object({
|
|
19
|
+
toolCategories: z.array(slatesToolCategory)
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export type SlatesMessageToolCategoriesListResponse = z.infer<
|
|
24
|
+
typeof slatesMessageToolCategoriesListResponse
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
export type SlatesToolCategoryRequests = SlatesMessageToolCategoriesListRequest;
|
|
28
|
+
|
|
29
|
+
export type SlatesToolCategoryResponses = SlatesMessageToolCategoriesListResponse;
|
|
30
|
+
|
|
31
|
+
export let slatesToolCategoryResponsesByMethod = {
|
|
32
|
+
'slates/tool_categories.list': slatesMessageToolCategoriesListResponse
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export let slatesToolCategoryRequestsByMethod = {
|
|
36
|
+
'slates/tool_categories.list': slatesMessageToolCategoriesListRequest
|
|
37
|
+
};
|
package/src/types/action.ts
CHANGED
|
@@ -42,7 +42,8 @@ export let slatesActionBase = z.object({
|
|
|
42
42
|
export let slatesActionTool = slatesActionBase.extend({
|
|
43
43
|
type: z.literal('action.tool'),
|
|
44
44
|
capabilities: z.object({}),
|
|
45
|
-
isPublic: z.boolean()
|
|
45
|
+
isPublic: z.boolean(),
|
|
46
|
+
toolCategoryIds: z.array(z.string()).optional()
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
export let slatesActionTrigger = slatesActionBase.extend({
|
package/src/types/index.ts
CHANGED