syllable-sdk 1.0.15-rc.3 → 1.0.16-rc.1
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/README.md +38 -38
- package/bin/mcp-server.js +203 -88
- package/bin/mcp-server.js.map +13 -12
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/eventtaskevents.d.ts +4 -5
- package/models/components/eventtaskevents.d.ts.map +1 -1
- package/models/components/eventtaskevents.js +0 -5
- package/models/components/eventtaskevents.js.map +1 -1
- package/models/components/expressiontask.d.ts +1 -1
- package/models/components/expressiontaskevents.d.ts +5 -5
- package/models/components/expressiontaskevents.d.ts.map +1 -1
- package/models/components/expressiontaskevents.js +0 -4
- package/models/components/expressiontaskevents.js.map +1 -1
- package/models/components/getvalueaction.d.ts +135 -0
- package/models/components/getvalueaction.d.ts.map +1 -0
- package/models/components/getvalueaction.js +208 -0
- package/models/components/getvalueaction.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/stepeventactions.d.ts +13 -12
- package/models/components/stepeventactions.d.ts.map +1 -1
- package/models/components/stepeventactions.js +9 -8
- package/models/components/stepeventactions.js.map +1 -1
- package/openapi.json +169 -67
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/eventtaskevents.ts +1 -16
- package/src/models/components/expressiontask.ts +1 -1
- package/src/models/components/expressiontaskevents.ts +3 -16
- package/src/models/components/getvalueaction.ts +435 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/stepeventactions.ts +30 -21
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
CallAction$Outbound,
|
|
13
13
|
CallAction$outboundSchema,
|
|
14
14
|
} from "./callaction.js";
|
|
15
|
+
import {
|
|
16
|
+
GetValueAction,
|
|
17
|
+
GetValueAction$inboundSchema,
|
|
18
|
+
GetValueAction$Outbound,
|
|
19
|
+
GetValueAction$outboundSchema,
|
|
20
|
+
} from "./getvalueaction.js";
|
|
15
21
|
import {
|
|
16
22
|
IncrementAction,
|
|
17
23
|
IncrementAction$inboundSchema,
|
|
@@ -40,18 +46,21 @@ import {
|
|
|
40
46
|
export type StepEventActionsStart =
|
|
41
47
|
| CallAction
|
|
42
48
|
| IncrementAction
|
|
43
|
-
| SaveAction
|
|
44
49
|
| SayAction
|
|
45
50
|
| SetValueAction;
|
|
46
51
|
|
|
47
52
|
export type Enter =
|
|
48
53
|
| CallAction
|
|
54
|
+
| GetValueAction
|
|
49
55
|
| IncrementAction
|
|
50
|
-
| SaveAction
|
|
51
56
|
| SayAction
|
|
52
57
|
| SetValueAction;
|
|
53
58
|
|
|
54
|
-
export type Presubmit =
|
|
59
|
+
export type Presubmit =
|
|
60
|
+
| GetValueAction
|
|
61
|
+
| IncrementAction
|
|
62
|
+
| SaveAction
|
|
63
|
+
| SetValueAction;
|
|
55
64
|
|
|
56
65
|
export type StepEventActionsSubmit =
|
|
57
66
|
| CallAction
|
|
@@ -68,9 +77,7 @@ export type StepEventActions = {
|
|
|
68
77
|
* Actions to execute on the first input from the user.
|
|
69
78
|
*/
|
|
70
79
|
start?:
|
|
71
|
-
| Array<
|
|
72
|
-
CallAction | IncrementAction | SaveAction | SayAction | SetValueAction
|
|
73
|
-
>
|
|
80
|
+
| Array<CallAction | IncrementAction | SayAction | SetValueAction>
|
|
74
81
|
| null
|
|
75
82
|
| undefined;
|
|
76
83
|
/**
|
|
@@ -78,7 +85,7 @@ export type StepEventActions = {
|
|
|
78
85
|
*/
|
|
79
86
|
enter?:
|
|
80
87
|
| Array<
|
|
81
|
-
CallAction |
|
|
88
|
+
CallAction | GetValueAction | IncrementAction | SayAction | SetValueAction
|
|
82
89
|
>
|
|
83
90
|
| null
|
|
84
91
|
| undefined;
|
|
@@ -86,7 +93,7 @@ export type StepEventActions = {
|
|
|
86
93
|
* Actions to execute before validation (data-mutation only: set, inc, save). Use this to set default values for required fields that would otherwise fail validation.
|
|
87
94
|
*/
|
|
88
95
|
presubmit?:
|
|
89
|
-
| Array<IncrementAction | SaveAction | SetValueAction>
|
|
96
|
+
| Array<GetValueAction | IncrementAction | SaveAction | SetValueAction>
|
|
90
97
|
| null
|
|
91
98
|
| undefined;
|
|
92
99
|
/**
|
|
@@ -108,7 +115,6 @@ export const StepEventActionsStart$inboundSchema: z.ZodType<
|
|
|
108
115
|
> = z.union([
|
|
109
116
|
CallAction$inboundSchema,
|
|
110
117
|
IncrementAction$inboundSchema,
|
|
111
|
-
SaveAction$inboundSchema,
|
|
112
118
|
SayAction$inboundSchema,
|
|
113
119
|
SetValueAction$inboundSchema,
|
|
114
120
|
]);
|
|
@@ -116,7 +122,6 @@ export const StepEventActionsStart$inboundSchema: z.ZodType<
|
|
|
116
122
|
export type StepEventActionsStart$Outbound =
|
|
117
123
|
| CallAction$Outbound
|
|
118
124
|
| IncrementAction$Outbound
|
|
119
|
-
| SaveAction$Outbound
|
|
120
125
|
| SayAction$Outbound
|
|
121
126
|
| SetValueAction$Outbound;
|
|
122
127
|
|
|
@@ -128,7 +133,6 @@ export const StepEventActionsStart$outboundSchema: z.ZodType<
|
|
|
128
133
|
> = z.union([
|
|
129
134
|
CallAction$outboundSchema,
|
|
130
135
|
IncrementAction$outboundSchema,
|
|
131
|
-
SaveAction$outboundSchema,
|
|
132
136
|
SayAction$outboundSchema,
|
|
133
137
|
SetValueAction$outboundSchema,
|
|
134
138
|
]);
|
|
@@ -154,16 +158,16 @@ export function stepEventActionsStartFromJSON(
|
|
|
154
158
|
export const Enter$inboundSchema: z.ZodType<Enter, z.ZodTypeDef, unknown> = z
|
|
155
159
|
.union([
|
|
156
160
|
CallAction$inboundSchema,
|
|
161
|
+
GetValueAction$inboundSchema,
|
|
157
162
|
IncrementAction$inboundSchema,
|
|
158
|
-
SaveAction$inboundSchema,
|
|
159
163
|
SayAction$inboundSchema,
|
|
160
164
|
SetValueAction$inboundSchema,
|
|
161
165
|
]);
|
|
162
166
|
/** @internal */
|
|
163
167
|
export type Enter$Outbound =
|
|
164
168
|
| CallAction$Outbound
|
|
169
|
+
| GetValueAction$Outbound
|
|
165
170
|
| IncrementAction$Outbound
|
|
166
|
-
| SaveAction$Outbound
|
|
167
171
|
| SayAction$Outbound
|
|
168
172
|
| SetValueAction$Outbound;
|
|
169
173
|
|
|
@@ -174,8 +178,8 @@ export const Enter$outboundSchema: z.ZodType<
|
|
|
174
178
|
Enter
|
|
175
179
|
> = z.union([
|
|
176
180
|
CallAction$outboundSchema,
|
|
181
|
+
GetValueAction$outboundSchema,
|
|
177
182
|
IncrementAction$outboundSchema,
|
|
178
|
-
SaveAction$outboundSchema,
|
|
179
183
|
SayAction$outboundSchema,
|
|
180
184
|
SetValueAction$outboundSchema,
|
|
181
185
|
]);
|
|
@@ -199,12 +203,14 @@ export const Presubmit$inboundSchema: z.ZodType<
|
|
|
199
203
|
z.ZodTypeDef,
|
|
200
204
|
unknown
|
|
201
205
|
> = z.union([
|
|
206
|
+
GetValueAction$inboundSchema,
|
|
202
207
|
IncrementAction$inboundSchema,
|
|
203
208
|
SaveAction$inboundSchema,
|
|
204
209
|
SetValueAction$inboundSchema,
|
|
205
210
|
]);
|
|
206
211
|
/** @internal */
|
|
207
212
|
export type Presubmit$Outbound =
|
|
213
|
+
| GetValueAction$Outbound
|
|
208
214
|
| IncrementAction$Outbound
|
|
209
215
|
| SaveAction$Outbound
|
|
210
216
|
| SetValueAction$Outbound;
|
|
@@ -215,6 +221,7 @@ export const Presubmit$outboundSchema: z.ZodType<
|
|
|
215
221
|
z.ZodTypeDef,
|
|
216
222
|
Presubmit
|
|
217
223
|
> = z.union([
|
|
224
|
+
GetValueAction$outboundSchema,
|
|
218
225
|
IncrementAction$outboundSchema,
|
|
219
226
|
SaveAction$outboundSchema,
|
|
220
227
|
SetValueAction$outboundSchema,
|
|
@@ -294,7 +301,6 @@ export const StepEventActions$inboundSchema: z.ZodType<
|
|
|
294
301
|
z.union([
|
|
295
302
|
CallAction$inboundSchema,
|
|
296
303
|
IncrementAction$inboundSchema,
|
|
297
|
-
SaveAction$inboundSchema,
|
|
298
304
|
SayAction$inboundSchema,
|
|
299
305
|
SetValueAction$inboundSchema,
|
|
300
306
|
]),
|
|
@@ -304,8 +310,8 @@ export const StepEventActions$inboundSchema: z.ZodType<
|
|
|
304
310
|
z.array(
|
|
305
311
|
z.union([
|
|
306
312
|
CallAction$inboundSchema,
|
|
313
|
+
GetValueAction$inboundSchema,
|
|
307
314
|
IncrementAction$inboundSchema,
|
|
308
|
-
SaveAction$inboundSchema,
|
|
309
315
|
SayAction$inboundSchema,
|
|
310
316
|
SetValueAction$inboundSchema,
|
|
311
317
|
]),
|
|
@@ -314,6 +320,7 @@ export const StepEventActions$inboundSchema: z.ZodType<
|
|
|
314
320
|
presubmit: z.nullable(
|
|
315
321
|
z.array(
|
|
316
322
|
z.union([
|
|
323
|
+
GetValueAction$inboundSchema,
|
|
317
324
|
IncrementAction$inboundSchema,
|
|
318
325
|
SaveAction$inboundSchema,
|
|
319
326
|
SetValueAction$inboundSchema,
|
|
@@ -338,7 +345,6 @@ export type StepEventActions$Outbound = {
|
|
|
338
345
|
| Array<
|
|
339
346
|
| CallAction$Outbound
|
|
340
347
|
| IncrementAction$Outbound
|
|
341
|
-
| SaveAction$Outbound
|
|
342
348
|
| SayAction$Outbound
|
|
343
349
|
| SetValueAction$Outbound
|
|
344
350
|
>
|
|
@@ -347,8 +353,8 @@ export type StepEventActions$Outbound = {
|
|
|
347
353
|
enter?:
|
|
348
354
|
| Array<
|
|
349
355
|
| CallAction$Outbound
|
|
356
|
+
| GetValueAction$Outbound
|
|
350
357
|
| IncrementAction$Outbound
|
|
351
|
-
| SaveAction$Outbound
|
|
352
358
|
| SayAction$Outbound
|
|
353
359
|
| SetValueAction$Outbound
|
|
354
360
|
>
|
|
@@ -356,7 +362,10 @@ export type StepEventActions$Outbound = {
|
|
|
356
362
|
| undefined;
|
|
357
363
|
presubmit?:
|
|
358
364
|
| Array<
|
|
359
|
-
|
|
365
|
+
| GetValueAction$Outbound
|
|
366
|
+
| IncrementAction$Outbound
|
|
367
|
+
| SaveAction$Outbound
|
|
368
|
+
| SetValueAction$Outbound
|
|
360
369
|
>
|
|
361
370
|
| null
|
|
362
371
|
| undefined;
|
|
@@ -383,7 +392,6 @@ export const StepEventActions$outboundSchema: z.ZodType<
|
|
|
383
392
|
z.union([
|
|
384
393
|
CallAction$outboundSchema,
|
|
385
394
|
IncrementAction$outboundSchema,
|
|
386
|
-
SaveAction$outboundSchema,
|
|
387
395
|
SayAction$outboundSchema,
|
|
388
396
|
SetValueAction$outboundSchema,
|
|
389
397
|
]),
|
|
@@ -393,8 +401,8 @@ export const StepEventActions$outboundSchema: z.ZodType<
|
|
|
393
401
|
z.array(
|
|
394
402
|
z.union([
|
|
395
403
|
CallAction$outboundSchema,
|
|
404
|
+
GetValueAction$outboundSchema,
|
|
396
405
|
IncrementAction$outboundSchema,
|
|
397
|
-
SaveAction$outboundSchema,
|
|
398
406
|
SayAction$outboundSchema,
|
|
399
407
|
SetValueAction$outboundSchema,
|
|
400
408
|
]),
|
|
@@ -403,6 +411,7 @@ export const StepEventActions$outboundSchema: z.ZodType<
|
|
|
403
411
|
presubmit: z.nullable(
|
|
404
412
|
z.array(
|
|
405
413
|
z.union([
|
|
414
|
+
GetValueAction$outboundSchema,
|
|
406
415
|
IncrementAction$outboundSchema,
|
|
407
416
|
SaveAction$outboundSchema,
|
|
408
417
|
SetValueAction$outboundSchema,
|