syllable-sdk 1.0.13-rc.6 → 1.0.13

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.
Files changed (75) hide show
  1. package/bin/mcp-server.js +390 -966
  2. package/bin/mcp-server.js.map +20 -20
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/lib/encodings.d.ts.map +1 -1
  9. package/lib/encodings.js +3 -1
  10. package/lib/encodings.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/components/callaction.d.ts.map +1 -1
  16. package/models/components/callaction.js +18 -38
  17. package/models/components/callaction.js.map +1 -1
  18. package/models/components/conditionaltext.d.ts.map +1 -1
  19. package/models/components/conditionaltext.js +18 -38
  20. package/models/components/conditionaltext.js.map +1 -1
  21. package/models/components/conditionalvalue.d.ts.map +1 -1
  22. package/models/components/conditionalvalue.js +36 -80
  23. package/models/components/conditionalvalue.js.map +1 -1
  24. package/models/components/context.d.ts.map +1 -1
  25. package/models/components/context.js +48 -140
  26. package/models/components/context.js.map +1 -1
  27. package/models/components/eventtaskevents.d.ts.map +1 -1
  28. package/models/components/eventtaskevents.js +20 -60
  29. package/models/components/eventtaskevents.js.map +1 -1
  30. package/models/components/expressiontask.d.ts.map +1 -1
  31. package/models/components/expressiontask.js +18 -38
  32. package/models/components/expressiontask.js.map +1 -1
  33. package/models/components/expressiontaskevents.d.ts.map +1 -1
  34. package/models/components/expressiontaskevents.js +40 -120
  35. package/models/components/expressiontaskevents.js.map +1 -1
  36. package/models/components/incrementaction.d.ts.map +1 -1
  37. package/models/components/incrementaction.js +18 -38
  38. package/models/components/incrementaction.js.map +1 -1
  39. package/models/components/nextstep.d.ts.map +1 -1
  40. package/models/components/nextstep.js +18 -38
  41. package/models/components/nextstep.js.map +1 -1
  42. package/models/components/saveaction.d.ts.map +1 -1
  43. package/models/components/saveaction.js +18 -38
  44. package/models/components/saveaction.js.map +1 -1
  45. package/models/components/sayaction.d.ts.map +1 -1
  46. package/models/components/sayaction.js +18 -38
  47. package/models/components/sayaction.js.map +1 -1
  48. package/models/components/setvalueaction.d.ts.map +1 -1
  49. package/models/components/setvalueaction.js +36 -76
  50. package/models/components/setvalueaction.js.map +1 -1
  51. package/models/components/stepeventactions.d.ts.map +1 -1
  52. package/models/components/stepeventactions.js +60 -180
  53. package/models/components/stepeventactions.js.map +1 -1
  54. package/models/components/variable.d.ts.map +1 -1
  55. package/models/components/variable.js +18 -38
  56. package/models/components/variable.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/lib/config.ts +3 -3
  59. package/src/lib/encodings.ts +4 -3
  60. package/src/mcp-server/mcp-server.ts +1 -1
  61. package/src/mcp-server/server.ts +1 -1
  62. package/src/models/components/callaction.ts +18 -58
  63. package/src/models/components/conditionaltext.ts +18 -58
  64. package/src/models/components/conditionalvalue.ts +36 -118
  65. package/src/models/components/context.ts +48 -188
  66. package/src/models/components/eventtaskevents.ts +20 -92
  67. package/src/models/components/expressiontask.ts +18 -58
  68. package/src/models/components/expressiontaskevents.ts +40 -184
  69. package/src/models/components/incrementaction.ts +18 -58
  70. package/src/models/components/nextstep.ts +18 -58
  71. package/src/models/components/saveaction.ts +18 -58
  72. package/src/models/components/sayaction.ts +18 -58
  73. package/src/models/components/setvalueaction.ts +36 -116
  74. package/src/models/components/stepeventactions.ts +60 -276
  75. package/src/models/components/variable.ts +18 -58
@@ -91,17 +91,11 @@ export const ValueFrom1$inboundSchema: z.ZodType<
91
91
  z.ZodTypeDef,
92
92
  unknown
93
93
  > = z.union([
94
- CelExpression$inboundSchema.and(
95
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
96
- ),
97
- JMESPathExpression$inboundSchema.and(
98
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
99
- type: v.type,
100
- })),
101
- ),
94
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
102
95
  JMESPathExpression$inboundSchema.and(
103
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
96
+ z.object({ type: z.literal("jmespath") }),
104
97
  ),
98
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
105
99
  ]);
106
100
  /** @internal */
107
101
  export type ValueFrom1$Outbound =
@@ -115,17 +109,11 @@ export const ValueFrom1$outboundSchema: z.ZodType<
115
109
  z.ZodTypeDef,
116
110
  ValueFrom1
117
111
  > = z.union([
118
- CelExpression$outboundSchema.and(
119
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
120
- ),
112
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
121
113
  JMESPathExpression$outboundSchema.and(
122
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
123
- type: v.type,
124
- })),
125
- ),
126
- JMESPathExpression$outboundSchema.and(
127
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
114
+ z.object({ type: z.literal("jmespath") }),
128
115
  ),
116
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
129
117
  ]);
130
118
 
131
119
  export function valueFrom1ToJSON(valueFrom1: ValueFrom1): string {
@@ -144,17 +132,11 @@ export function valueFrom1FromJSON(
144
132
  /** @internal */
145
133
  export const If1$inboundSchema: z.ZodType<If1, z.ZodTypeDef, unknown> = z.union(
146
134
  [
147
- CelExpression$inboundSchema.and(
148
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
149
- ),
135
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
150
136
  JMESPathExpression$inboundSchema.and(
151
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
152
- type: v.type,
153
- })),
154
- ),
155
- JMESPathExpression$inboundSchema.and(
156
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
137
+ z.object({ type: z.literal("jmespath") }),
157
138
  ),
139
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
158
140
  ],
159
141
  );
160
142
  /** @internal */
@@ -166,17 +148,11 @@ export type If1$Outbound =
166
148
  /** @internal */
167
149
  export const If1$outboundSchema: z.ZodType<If1$Outbound, z.ZodTypeDef, If1> = z
168
150
  .union([
169
- CelExpression$outboundSchema.and(
170
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
171
- ),
151
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
172
152
  JMESPathExpression$outboundSchema.and(
173
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
174
- type: v.type,
175
- })),
176
- ),
177
- JMESPathExpression$outboundSchema.and(
178
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
153
+ z.object({ type: z.literal("jmespath") }),
179
154
  ),
155
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
180
156
  ]);
181
157
 
182
158
  export function if1ToJSON(if1: If1): string {
@@ -196,17 +172,11 @@ export function if1FromJSON(
196
172
  export const If$inboundSchema: z.ZodType<If, z.ZodTypeDef, unknown> = z.union([
197
173
  z.lazy(() => CaseExpression$inboundSchema),
198
174
  z.union([
199
- CelExpression$inboundSchema.and(
200
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
201
- ),
175
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
202
176
  JMESPathExpression$inboundSchema.and(
203
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
204
- type: v.type,
205
- })),
206
- ),
207
- JMESPathExpression$inboundSchema.and(
208
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
177
+ z.object({ type: z.literal("jmespath") }),
209
178
  ),
179
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
210
180
  ]),
211
181
  z.string(),
212
182
  ]);
@@ -223,20 +193,12 @@ export const If$outboundSchema: z.ZodType<If$Outbound, z.ZodTypeDef, If> = z
223
193
  .union([
224
194
  z.lazy(() => CaseExpression$outboundSchema),
225
195
  z.union([
226
- CelExpression$outboundSchema.and(
227
- z.object({ type: z.literal("cel") }).transform((v) => ({
228
- type: v.type,
229
- })),
230
- ),
196
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
231
197
  JMESPathExpression$outboundSchema.and(
232
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
233
- type: v.type,
234
- })),
198
+ z.object({ type: z.literal("jmespath") }),
235
199
  ),
236
200
  JMESPathExpression$outboundSchema.and(
237
- z.object({ type: z.literal("jp") }).transform((v) => ({
238
- type: v.type,
239
- })),
201
+ z.object({ type: z.literal("jp") }),
240
202
  ),
241
203
  ]),
242
204
  z.string(),
@@ -266,20 +228,12 @@ export const ConditionalValue$inboundSchema: z.ZodType<
266
228
  z.union([
267
229
  z.lazy(() => CaseExpression$inboundSchema),
268
230
  z.union([
269
- CelExpression$inboundSchema.and(
270
- z.object({ type: z.literal("cel") }).transform((v) => ({
271
- type: v.type,
272
- })),
273
- ),
231
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
274
232
  JMESPathExpression$inboundSchema.and(
275
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
276
- type: v.type,
277
- })),
233
+ z.object({ type: z.literal("jmespath") }),
278
234
  ),
279
235
  JMESPathExpression$inboundSchema.and(
280
- z.object({ type: z.literal("jp") }).transform((v) => ({
281
- type: v.type,
282
- })),
236
+ z.object({ type: z.literal("jp") }),
283
237
  ),
284
238
  ]),
285
239
  z.string(),
@@ -289,20 +243,12 @@ export const ConditionalValue$inboundSchema: z.ZodType<
289
243
  z.union([
290
244
  z.lazy(() => CaseExpression$inboundSchema),
291
245
  z.union([
292
- CelExpression$inboundSchema.and(
293
- z.object({ type: z.literal("cel") }).transform((v) => ({
294
- type: v.type,
295
- })),
296
- ),
246
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
297
247
  JMESPathExpression$inboundSchema.and(
298
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
299
- type: v.type,
300
- })),
248
+ z.object({ type: z.literal("jmespath") }),
301
249
  ),
302
250
  JMESPathExpression$inboundSchema.and(
303
- z.object({ type: z.literal("jp") }).transform((v) => ({
304
- type: v.type,
305
- })),
251
+ z.object({ type: z.literal("jp") }),
306
252
  ),
307
253
  ]),
308
254
  z.string(),
@@ -345,20 +291,12 @@ export const ConditionalValue$outboundSchema: z.ZodType<
345
291
  z.union([
346
292
  z.lazy(() => CaseExpression$outboundSchema),
347
293
  z.union([
348
- CelExpression$outboundSchema.and(
349
- z.object({ type: z.literal("cel") }).transform((v) => ({
350
- type: v.type,
351
- })),
352
- ),
294
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
353
295
  JMESPathExpression$outboundSchema.and(
354
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
355
- type: v.type,
356
- })),
296
+ z.object({ type: z.literal("jmespath") }),
357
297
  ),
358
298
  JMESPathExpression$outboundSchema.and(
359
- z.object({ type: z.literal("jp") }).transform((v) => ({
360
- type: v.type,
361
- })),
299
+ z.object({ type: z.literal("jp") }),
362
300
  ),
363
301
  ]),
364
302
  z.string(),
@@ -368,20 +306,12 @@ export const ConditionalValue$outboundSchema: z.ZodType<
368
306
  z.union([
369
307
  z.lazy(() => CaseExpression$outboundSchema),
370
308
  z.union([
371
- CelExpression$outboundSchema.and(
372
- z.object({ type: z.literal("cel") }).transform((v) => ({
373
- type: v.type,
374
- })),
375
- ),
309
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
376
310
  JMESPathExpression$outboundSchema.and(
377
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
378
- type: v.type,
379
- })),
311
+ z.object({ type: z.literal("jmespath") }),
380
312
  ),
381
313
  JMESPathExpression$outboundSchema.and(
382
- z.object({ type: z.literal("jp") }).transform((v) => ({
383
- type: v.type,
384
- })),
314
+ z.object({ type: z.literal("jp") }),
385
315
  ),
386
316
  ]),
387
317
  z.string(),
@@ -418,17 +348,11 @@ export const ValueFrom$inboundSchema: z.ZodType<
418
348
  > = z.union([
419
349
  z.lazy(() => CaseExpression$inboundSchema),
420
350
  z.union([
421
- CelExpression$inboundSchema.and(
422
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
423
- ),
424
- JMESPathExpression$inboundSchema.and(
425
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
426
- type: v.type,
427
- })),
428
- ),
351
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
429
352
  JMESPathExpression$inboundSchema.and(
430
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
353
+ z.object({ type: z.literal("jmespath") }),
431
354
  ),
355
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
432
356
  ]),
433
357
  z.string(),
434
358
  ]);
@@ -448,17 +372,11 @@ export const ValueFrom$outboundSchema: z.ZodType<
448
372
  > = z.union([
449
373
  z.lazy(() => CaseExpression$outboundSchema),
450
374
  z.union([
451
- CelExpression$outboundSchema.and(
452
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
453
- ),
454
- JMESPathExpression$outboundSchema.and(
455
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
456
- type: v.type,
457
- })),
458
- ),
375
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
459
376
  JMESPathExpression$outboundSchema.and(
460
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
377
+ z.object({ type: z.literal("jmespath") }),
461
378
  ),
379
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
462
380
  ]),
463
381
  z.string(),
464
382
  ]);
@@ -81,25 +81,13 @@ export type Context = {
81
81
  export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
82
82
  [
83
83
  LoadToolFromFileTask$inboundSchema.and(
84
- z.object({ type: z.literal("import") }).transform((v) => ({
85
- type: v.type,
86
- })),
87
- ),
88
- EventTask$inboundSchema.and(
89
- z.object({ type: z.literal("event") }).transform((v) => ({
90
- type: v.type,
91
- })),
84
+ z.object({ type: z.literal("import") }),
92
85
  ),
86
+ EventTask$inboundSchema.and(z.object({ type: z.literal("event") })),
93
87
  ExpressionTask$inboundSchema.and(
94
- z.object({ type: z.literal("expression") }).transform((v) => ({
95
- type: v.type,
96
- })),
97
- ),
98
- StepsTask$inboundSchema.and(
99
- z.object({ type: z.literal("steps") }).transform((v) => ({
100
- type: v.type,
101
- })),
88
+ z.object({ type: z.literal("expression") }),
102
89
  ),
90
+ StepsTask$inboundSchema.and(z.object({ type: z.literal("steps") })),
103
91
  ],
104
92
  );
105
93
  /** @internal */
@@ -113,25 +101,13 @@ export type Two$Outbound =
113
101
  export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
114
102
  .union([
115
103
  LoadToolFromFileTask$outboundSchema.and(
116
- z.object({ type: z.literal("import") }).transform((v) => ({
117
- type: v.type,
118
- })),
119
- ),
120
- EventTask$outboundSchema.and(
121
- z.object({ type: z.literal("event") }).transform((v) => ({
122
- type: v.type,
123
- })),
104
+ z.object({ type: z.literal("import") }),
124
105
  ),
106
+ EventTask$outboundSchema.and(z.object({ type: z.literal("event") })),
125
107
  ExpressionTask$outboundSchema.and(
126
- z.object({ type: z.literal("expression") }).transform((v) => ({
127
- type: v.type,
128
- })),
129
- ),
130
- StepsTask$outboundSchema.and(
131
- z.object({ type: z.literal("steps") }).transform((v) => ({
132
- type: v.type,
133
- })),
108
+ z.object({ type: z.literal("expression") }),
134
109
  ),
110
+ StepsTask$outboundSchema.and(z.object({ type: z.literal("steps") })),
135
111
  ]);
136
112
 
137
113
  export function twoToJSON(two: Two): string {
@@ -151,25 +127,13 @@ export function twoFromJSON(
151
127
  export const Task1$inboundSchema: z.ZodType<Task1, z.ZodTypeDef, unknown> = z
152
128
  .union([
153
129
  LoadToolFromFileTask$inboundSchema.and(
154
- z.object({ type: z.literal("import") }).transform((v) => ({
155
- type: v.type,
156
- })),
157
- ),
158
- EventTask$inboundSchema.and(
159
- z.object({ type: z.literal("event") }).transform((v) => ({
160
- type: v.type,
161
- })),
130
+ z.object({ type: z.literal("import") }),
162
131
  ),
132
+ EventTask$inboundSchema.and(z.object({ type: z.literal("event") })),
163
133
  ExpressionTask$inboundSchema.and(
164
- z.object({ type: z.literal("expression") }).transform((v) => ({
165
- type: v.type,
166
- })),
167
- ),
168
- StepsTask$inboundSchema.and(
169
- z.object({ type: z.literal("steps") }).transform((v) => ({
170
- type: v.type,
171
- })),
134
+ z.object({ type: z.literal("expression") }),
172
135
  ),
136
+ StepsTask$inboundSchema.and(z.object({ type: z.literal("steps") })),
173
137
  ]);
174
138
  /** @internal */
175
139
  export type Task1$Outbound =
@@ -185,21 +149,13 @@ export const Task1$outboundSchema: z.ZodType<
185
149
  Task1
186
150
  > = z.union([
187
151
  LoadToolFromFileTask$outboundSchema.and(
188
- z.object({ type: z.literal("import") }).transform((v) => ({
189
- type: v.type,
190
- })),
191
- ),
192
- EventTask$outboundSchema.and(
193
- z.object({ type: z.literal("event") }).transform((v) => ({ type: v.type })),
152
+ z.object({ type: z.literal("import") }),
194
153
  ),
154
+ EventTask$outboundSchema.and(z.object({ type: z.literal("event") })),
195
155
  ExpressionTask$outboundSchema.and(
196
- z.object({ type: z.literal("expression") }).transform((v) => ({
197
- type: v.type,
198
- })),
199
- ),
200
- StepsTask$outboundSchema.and(
201
- z.object({ type: z.literal("steps") }).transform((v) => ({ type: v.type })),
156
+ z.object({ type: z.literal("expression") }),
202
157
  ),
158
+ StepsTask$outboundSchema.and(z.object({ type: z.literal("steps") })),
203
159
  ]);
204
160
 
205
161
  export function task1ToJSON(task1: Task1): string {
@@ -220,48 +176,24 @@ export const Task$inboundSchema: z.ZodType<Task, z.ZodTypeDef, unknown> = z
220
176
  .union([
221
177
  z.union([
222
178
  LoadToolFromFileTask$inboundSchema.and(
223
- z.object({ type: z.literal("import") }).transform((v) => ({
224
- type: v.type,
225
- })),
226
- ),
227
- EventTask$inboundSchema.and(
228
- z.object({ type: z.literal("event") }).transform((v) => ({
229
- type: v.type,
230
- })),
179
+ z.object({ type: z.literal("import") }),
231
180
  ),
181
+ EventTask$inboundSchema.and(z.object({ type: z.literal("event") })),
232
182
  ExpressionTask$inboundSchema.and(
233
- z.object({ type: z.literal("expression") }).transform((v) => ({
234
- type: v.type,
235
- })),
236
- ),
237
- StepsTask$inboundSchema.and(
238
- z.object({ type: z.literal("steps") }).transform((v) => ({
239
- type: v.type,
240
- })),
183
+ z.object({ type: z.literal("expression") }),
241
184
  ),
185
+ StepsTask$inboundSchema.and(z.object({ type: z.literal("steps") })),
242
186
  ]),
243
187
  z.array(
244
188
  z.union([
245
189
  LoadToolFromFileTask$inboundSchema.and(
246
- z.object({ type: z.literal("import") }).transform((v) => ({
247
- type: v.type,
248
- })),
249
- ),
250
- EventTask$inboundSchema.and(
251
- z.object({ type: z.literal("event") }).transform((v) => ({
252
- type: v.type,
253
- })),
190
+ z.object({ type: z.literal("import") }),
254
191
  ),
192
+ EventTask$inboundSchema.and(z.object({ type: z.literal("event") })),
255
193
  ExpressionTask$inboundSchema.and(
256
- z.object({ type: z.literal("expression") }).transform((v) => ({
257
- type: v.type,
258
- })),
259
- ),
260
- StepsTask$inboundSchema.and(
261
- z.object({ type: z.literal("steps") }).transform((v) => ({
262
- type: v.type,
263
- })),
194
+ z.object({ type: z.literal("expression") }),
264
195
  ),
196
+ StepsTask$inboundSchema.and(z.object({ type: z.literal("steps") })),
265
197
  ]),
266
198
  ),
267
199
  ]);
@@ -283,48 +215,24 @@ export const Task$outboundSchema: z.ZodType<Task$Outbound, z.ZodTypeDef, Task> =
283
215
  z.union([
284
216
  z.union([
285
217
  LoadToolFromFileTask$outboundSchema.and(
286
- z.object({ type: z.literal("import") }).transform((v) => ({
287
- type: v.type,
288
- })),
289
- ),
290
- EventTask$outboundSchema.and(
291
- z.object({ type: z.literal("event") }).transform((v) => ({
292
- type: v.type,
293
- })),
218
+ z.object({ type: z.literal("import") }),
294
219
  ),
220
+ EventTask$outboundSchema.and(z.object({ type: z.literal("event") })),
295
221
  ExpressionTask$outboundSchema.and(
296
- z.object({ type: z.literal("expression") }).transform((v) => ({
297
- type: v.type,
298
- })),
299
- ),
300
- StepsTask$outboundSchema.and(
301
- z.object({ type: z.literal("steps") }).transform((v) => ({
302
- type: v.type,
303
- })),
222
+ z.object({ type: z.literal("expression") }),
304
223
  ),
224
+ StepsTask$outboundSchema.and(z.object({ type: z.literal("steps") })),
305
225
  ]),
306
226
  z.array(
307
227
  z.union([
308
228
  LoadToolFromFileTask$outboundSchema.and(
309
- z.object({ type: z.literal("import") }).transform((v) => ({
310
- type: v.type,
311
- })),
312
- ),
313
- EventTask$outboundSchema.and(
314
- z.object({ type: z.literal("event") }).transform((v) => ({
315
- type: v.type,
316
- })),
229
+ z.object({ type: z.literal("import") }),
317
230
  ),
231
+ EventTask$outboundSchema.and(z.object({ type: z.literal("event") })),
318
232
  ExpressionTask$outboundSchema.and(
319
- z.object({ type: z.literal("expression") }).transform((v) => ({
320
- type: v.type,
321
- })),
322
- ),
323
- StepsTask$outboundSchema.and(
324
- z.object({ type: z.literal("steps") }).transform((v) => ({
325
- type: v.type,
326
- })),
233
+ z.object({ type: z.literal("expression") }),
327
234
  ),
235
+ StepsTask$outboundSchema.and(z.object({ type: z.literal("steps") })),
328
236
  ]),
329
237
  ),
330
238
  ]);
@@ -349,48 +257,24 @@ export const Context$inboundSchema: z.ZodType<Context, z.ZodTypeDef, unknown> =
349
257
  z.union([
350
258
  z.union([
351
259
  LoadToolFromFileTask$inboundSchema.and(
352
- z.object({ type: z.literal("import") }).transform((v) => ({
353
- type: v.type,
354
- })),
355
- ),
356
- EventTask$inboundSchema.and(
357
- z.object({ type: z.literal("event") }).transform((v) => ({
358
- type: v.type,
359
- })),
260
+ z.object({ type: z.literal("import") }),
360
261
  ),
262
+ EventTask$inboundSchema.and(z.object({ type: z.literal("event") })),
361
263
  ExpressionTask$inboundSchema.and(
362
- z.object({ type: z.literal("expression") }).transform((v) => ({
363
- type: v.type,
364
- })),
365
- ),
366
- StepsTask$inboundSchema.and(
367
- z.object({ type: z.literal("steps") }).transform((v) => ({
368
- type: v.type,
369
- })),
264
+ z.object({ type: z.literal("expression") }),
370
265
  ),
266
+ StepsTask$inboundSchema.and(z.object({ type: z.literal("steps") })),
371
267
  ]),
372
268
  z.array(
373
269
  z.union([
374
270
  LoadToolFromFileTask$inboundSchema.and(
375
- z.object({ type: z.literal("import") }).transform((v) => ({
376
- type: v.type,
377
- })),
378
- ),
379
- EventTask$inboundSchema.and(
380
- z.object({ type: z.literal("event") }).transform((v) => ({
381
- type: v.type,
382
- })),
271
+ z.object({ type: z.literal("import") }),
383
272
  ),
273
+ EventTask$inboundSchema.and(z.object({ type: z.literal("event") })),
384
274
  ExpressionTask$inboundSchema.and(
385
- z.object({ type: z.literal("expression") }).transform((v) => ({
386
- type: v.type,
387
- })),
388
- ),
389
- StepsTask$inboundSchema.and(
390
- z.object({ type: z.literal("steps") }).transform((v) => ({
391
- type: v.type,
392
- })),
275
+ z.object({ type: z.literal("expression") }),
393
276
  ),
277
+ StepsTask$inboundSchema.and(z.object({ type: z.literal("steps") })),
394
278
  ]),
395
279
  ),
396
280
  ]),
@@ -423,48 +307,24 @@ export const Context$outboundSchema: z.ZodType<
423
307
  z.union([
424
308
  z.union([
425
309
  LoadToolFromFileTask$outboundSchema.and(
426
- z.object({ type: z.literal("import") }).transform((v) => ({
427
- type: v.type,
428
- })),
429
- ),
430
- EventTask$outboundSchema.and(
431
- z.object({ type: z.literal("event") }).transform((v) => ({
432
- type: v.type,
433
- })),
310
+ z.object({ type: z.literal("import") }),
434
311
  ),
312
+ EventTask$outboundSchema.and(z.object({ type: z.literal("event") })),
435
313
  ExpressionTask$outboundSchema.and(
436
- z.object({ type: z.literal("expression") }).transform((v) => ({
437
- type: v.type,
438
- })),
439
- ),
440
- StepsTask$outboundSchema.and(
441
- z.object({ type: z.literal("steps") }).transform((v) => ({
442
- type: v.type,
443
- })),
314
+ z.object({ type: z.literal("expression") }),
444
315
  ),
316
+ StepsTask$outboundSchema.and(z.object({ type: z.literal("steps") })),
445
317
  ]),
446
318
  z.array(
447
319
  z.union([
448
320
  LoadToolFromFileTask$outboundSchema.and(
449
- z.object({ type: z.literal("import") }).transform((v) => ({
450
- type: v.type,
451
- })),
452
- ),
453
- EventTask$outboundSchema.and(
454
- z.object({ type: z.literal("event") }).transform((v) => ({
455
- type: v.type,
456
- })),
321
+ z.object({ type: z.literal("import") }),
457
322
  ),
323
+ EventTask$outboundSchema.and(z.object({ type: z.literal("event") })),
458
324
  ExpressionTask$outboundSchema.and(
459
- z.object({ type: z.literal("expression") }).transform((v) => ({
460
- type: v.type,
461
- })),
462
- ),
463
- StepsTask$outboundSchema.and(
464
- z.object({ type: z.literal("steps") }).transform((v) => ({
465
- type: v.type,
466
- })),
325
+ z.object({ type: z.literal("expression") }),
467
326
  ),
327
+ StepsTask$outboundSchema.and(z.object({ type: z.literal("steps") })),
468
328
  ]),
469
329
  ),
470
330
  ]),