syllable-sdk 1.0.13-rc.5 → 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 (81) hide show
  1. package/bin/mcp-server.js +398 -970
  2. package/bin/mcp-server.js.map +21 -21
  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/session.d.ts +5 -0
  49. package/models/components/session.d.ts.map +1 -1
  50. package/models/components/session.js +4 -0
  51. package/models/components/session.js.map +1 -1
  52. package/models/components/setvalueaction.d.ts.map +1 -1
  53. package/models/components/setvalueaction.js +36 -76
  54. package/models/components/setvalueaction.js.map +1 -1
  55. package/models/components/stepeventactions.d.ts.map +1 -1
  56. package/models/components/stepeventactions.js +60 -180
  57. package/models/components/stepeventactions.js.map +1 -1
  58. package/models/components/variable.d.ts.map +1 -1
  59. package/models/components/variable.js +18 -38
  60. package/models/components/variable.js.map +1 -1
  61. package/openapi.json +12 -0
  62. package/package.json +1 -1
  63. package/src/lib/config.ts +3 -3
  64. package/src/lib/encodings.ts +4 -3
  65. package/src/mcp-server/mcp-server.ts +1 -1
  66. package/src/mcp-server/server.ts +1 -1
  67. package/src/models/components/callaction.ts +18 -58
  68. package/src/models/components/conditionaltext.ts +18 -58
  69. package/src/models/components/conditionalvalue.ts +36 -118
  70. package/src/models/components/context.ts +48 -188
  71. package/src/models/components/eventtaskevents.ts +20 -92
  72. package/src/models/components/expressiontask.ts +18 -58
  73. package/src/models/components/expressiontaskevents.ts +40 -184
  74. package/src/models/components/incrementaction.ts +18 -58
  75. package/src/models/components/nextstep.ts +18 -58
  76. package/src/models/components/saveaction.ts +18 -58
  77. package/src/models/components/sayaction.ts +18 -58
  78. package/src/models/components/session.ts +9 -0
  79. package/src/models/components/setvalueaction.ts +36 -116
  80. package/src/models/components/stepeventactions.ts +60 -276
  81. package/src/models/components/variable.ts +18 -58
@@ -86,31 +86,11 @@ export type ExpressionTaskEvents = {
86
86
  /** @internal */
87
87
  export const Start$inboundSchema: z.ZodType<Start, z.ZodTypeDef, unknown> = z
88
88
  .union([
89
- CallAction$inboundSchema.and(
90
- z.object({ action: z.literal("call") }).transform((v) => ({
91
- action: v.action,
92
- })),
93
- ),
94
- IncrementAction$inboundSchema.and(
95
- z.object({ action: z.literal("inc") }).transform((v) => ({
96
- action: v.action,
97
- })),
98
- ),
99
- SayAction$inboundSchema.and(
100
- z.object({ action: z.literal("say") }).transform((v) => ({
101
- action: v.action,
102
- })),
103
- ),
104
- SetValueAction$inboundSchema.and(
105
- z.object({ action: z.literal("set") }).transform((v) => ({
106
- action: v.action,
107
- })),
108
- ),
109
- SaveAction$inboundSchema.and(
110
- z.object({ action: z.literal("save") }).transform((v) => ({
111
- action: v.action,
112
- })),
113
- ),
89
+ CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
90
+ IncrementAction$inboundSchema.and(z.object({ action: z.literal("inc") })),
91
+ SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
92
+ SetValueAction$inboundSchema.and(z.object({ action: z.literal("set") })),
93
+ SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
114
94
  ]);
115
95
  /** @internal */
116
96
  export type Start$Outbound =
@@ -126,31 +106,11 @@ export const Start$outboundSchema: z.ZodType<
126
106
  z.ZodTypeDef,
127
107
  Start
128
108
  > = z.union([
129
- CallAction$outboundSchema.and(
130
- z.object({ action: z.literal("call") }).transform((v) => ({
131
- action: v.action,
132
- })),
133
- ),
134
- IncrementAction$outboundSchema.and(
135
- z.object({ action: z.literal("inc") }).transform((v) => ({
136
- action: v.action,
137
- })),
138
- ),
139
- SayAction$outboundSchema.and(
140
- z.object({ action: z.literal("say") }).transform((v) => ({
141
- action: v.action,
142
- })),
143
- ),
144
- SetValueAction$outboundSchema.and(
145
- z.object({ action: z.literal("set") }).transform((v) => ({
146
- action: v.action,
147
- })),
148
- ),
149
- SaveAction$outboundSchema.and(
150
- z.object({ action: z.literal("save") }).transform((v) => ({
151
- action: v.action,
152
- })),
153
- ),
109
+ CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
110
+ IncrementAction$outboundSchema.and(z.object({ action: z.literal("inc") })),
111
+ SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
112
+ SetValueAction$outboundSchema.and(z.object({ action: z.literal("set") })),
113
+ SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
154
114
  ]);
155
115
 
156
116
  export function startToJSON(start: Start): string {
@@ -169,31 +129,11 @@ export function startFromJSON(
169
129
  /** @internal */
170
130
  export const Submit$inboundSchema: z.ZodType<Submit, z.ZodTypeDef, unknown> = z
171
131
  .union([
172
- CallAction$inboundSchema.and(
173
- z.object({ action: z.literal("call") }).transform((v) => ({
174
- action: v.action,
175
- })),
176
- ),
177
- IncrementAction$inboundSchema.and(
178
- z.object({ action: z.literal("inc") }).transform((v) => ({
179
- action: v.action,
180
- })),
181
- ),
182
- SayAction$inboundSchema.and(
183
- z.object({ action: z.literal("say") }).transform((v) => ({
184
- action: v.action,
185
- })),
186
- ),
187
- SetValueAction$inboundSchema.and(
188
- z.object({ action: z.literal("set") }).transform((v) => ({
189
- action: v.action,
190
- })),
191
- ),
192
- SaveAction$inboundSchema.and(
193
- z.object({ action: z.literal("save") }).transform((v) => ({
194
- action: v.action,
195
- })),
196
- ),
132
+ CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
133
+ IncrementAction$inboundSchema.and(z.object({ action: z.literal("inc") })),
134
+ SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
135
+ SetValueAction$inboundSchema.and(z.object({ action: z.literal("set") })),
136
+ SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
197
137
  ]);
198
138
  /** @internal */
199
139
  export type Submit$Outbound =
@@ -209,31 +149,11 @@ export const Submit$outboundSchema: z.ZodType<
209
149
  z.ZodTypeDef,
210
150
  Submit
211
151
  > = z.union([
212
- CallAction$outboundSchema.and(
213
- z.object({ action: z.literal("call") }).transform((v) => ({
214
- action: v.action,
215
- })),
216
- ),
217
- IncrementAction$outboundSchema.and(
218
- z.object({ action: z.literal("inc") }).transform((v) => ({
219
- action: v.action,
220
- })),
221
- ),
222
- SayAction$outboundSchema.and(
223
- z.object({ action: z.literal("say") }).transform((v) => ({
224
- action: v.action,
225
- })),
226
- ),
227
- SetValueAction$outboundSchema.and(
228
- z.object({ action: z.literal("set") }).transform((v) => ({
229
- action: v.action,
230
- })),
231
- ),
232
- SaveAction$outboundSchema.and(
233
- z.object({ action: z.literal("save") }).transform((v) => ({
234
- action: v.action,
235
- })),
236
- ),
152
+ CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
153
+ IncrementAction$outboundSchema.and(z.object({ action: z.literal("inc") })),
154
+ SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
155
+ SetValueAction$outboundSchema.and(z.object({ action: z.literal("set") })),
156
+ SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
237
157
  ]);
238
158
 
239
159
  export function submitToJSON(submit: Submit): string {
@@ -258,62 +178,30 @@ export const ExpressionTaskEvents$inboundSchema: z.ZodType<
258
178
  start: z.nullable(
259
179
  z.array(
260
180
  z.union([
261
- CallAction$inboundSchema.and(
262
- z.object({ action: z.literal("call") }).transform((v) => ({
263
- action: v.action,
264
- })),
265
- ),
181
+ CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
266
182
  IncrementAction$inboundSchema.and(
267
- z.object({ action: z.literal("inc") }).transform((v) => ({
268
- action: v.action,
269
- })),
270
- ),
271
- SayAction$inboundSchema.and(
272
- z.object({ action: z.literal("say") }).transform((v) => ({
273
- action: v.action,
274
- })),
183
+ z.object({ action: z.literal("inc") }),
275
184
  ),
185
+ SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
276
186
  SetValueAction$inboundSchema.and(
277
- z.object({ action: z.literal("set") }).transform((v) => ({
278
- action: v.action,
279
- })),
280
- ),
281
- SaveAction$inboundSchema.and(
282
- z.object({ action: z.literal("save") }).transform((v) => ({
283
- action: v.action,
284
- })),
187
+ z.object({ action: z.literal("set") }),
285
188
  ),
189
+ SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
286
190
  ]),
287
191
  ),
288
192
  ).optional(),
289
193
  submit: z.nullable(
290
194
  z.array(
291
195
  z.union([
292
- CallAction$inboundSchema.and(
293
- z.object({ action: z.literal("call") }).transform((v) => ({
294
- action: v.action,
295
- })),
296
- ),
196
+ CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
297
197
  IncrementAction$inboundSchema.and(
298
- z.object({ action: z.literal("inc") }).transform((v) => ({
299
- action: v.action,
300
- })),
301
- ),
302
- SayAction$inboundSchema.and(
303
- z.object({ action: z.literal("say") }).transform((v) => ({
304
- action: v.action,
305
- })),
198
+ z.object({ action: z.literal("inc") }),
306
199
  ),
200
+ SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
307
201
  SetValueAction$inboundSchema.and(
308
- z.object({ action: z.literal("set") }).transform((v) => ({
309
- action: v.action,
310
- })),
311
- ),
312
- SaveAction$inboundSchema.and(
313
- z.object({ action: z.literal("save") }).transform((v) => ({
314
- action: v.action,
315
- })),
202
+ z.object({ action: z.literal("set") }),
316
203
  ),
204
+ SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
317
205
  ]),
318
206
  ),
319
207
  ).optional(),
@@ -351,62 +239,30 @@ export const ExpressionTaskEvents$outboundSchema: z.ZodType<
351
239
  start: z.nullable(
352
240
  z.array(
353
241
  z.union([
354
- CallAction$outboundSchema.and(
355
- z.object({ action: z.literal("call") }).transform((v) => ({
356
- action: v.action,
357
- })),
358
- ),
242
+ CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
359
243
  IncrementAction$outboundSchema.and(
360
- z.object({ action: z.literal("inc") }).transform((v) => ({
361
- action: v.action,
362
- })),
363
- ),
364
- SayAction$outboundSchema.and(
365
- z.object({ action: z.literal("say") }).transform((v) => ({
366
- action: v.action,
367
- })),
244
+ z.object({ action: z.literal("inc") }),
368
245
  ),
246
+ SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
369
247
  SetValueAction$outboundSchema.and(
370
- z.object({ action: z.literal("set") }).transform((v) => ({
371
- action: v.action,
372
- })),
373
- ),
374
- SaveAction$outboundSchema.and(
375
- z.object({ action: z.literal("save") }).transform((v) => ({
376
- action: v.action,
377
- })),
248
+ z.object({ action: z.literal("set") }),
378
249
  ),
250
+ SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
379
251
  ]),
380
252
  ),
381
253
  ).optional(),
382
254
  submit: z.nullable(
383
255
  z.array(
384
256
  z.union([
385
- CallAction$outboundSchema.and(
386
- z.object({ action: z.literal("call") }).transform((v) => ({
387
- action: v.action,
388
- })),
389
- ),
257
+ CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
390
258
  IncrementAction$outboundSchema.and(
391
- z.object({ action: z.literal("inc") }).transform((v) => ({
392
- action: v.action,
393
- })),
394
- ),
395
- SayAction$outboundSchema.and(
396
- z.object({ action: z.literal("say") }).transform((v) => ({
397
- action: v.action,
398
- })),
259
+ z.object({ action: z.literal("inc") }),
399
260
  ),
261
+ SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
400
262
  SetValueAction$outboundSchema.and(
401
- z.object({ action: z.literal("set") }).transform((v) => ({
402
- action: v.action,
403
- })),
404
- ),
405
- SaveAction$outboundSchema.and(
406
- z.object({ action: z.literal("save") }).transform((v) => ({
407
- action: v.action,
408
- })),
263
+ z.object({ action: z.literal("set") }),
409
264
  ),
265
+ SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
410
266
  ]),
411
267
  ),
412
268
  ).optional(),
@@ -69,17 +69,11 @@ export const IncrementActionIf1$inboundSchema: z.ZodType<
69
69
  z.ZodTypeDef,
70
70
  unknown
71
71
  > = z.union([
72
- CelExpression$inboundSchema.and(
73
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
74
- ),
75
- JMESPathExpression$inboundSchema.and(
76
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
77
- type: v.type,
78
- })),
79
- ),
72
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
80
73
  JMESPathExpression$inboundSchema.and(
81
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
74
+ z.object({ type: z.literal("jmespath") }),
82
75
  ),
76
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
83
77
  ]);
84
78
  /** @internal */
85
79
  export type IncrementActionIf1$Outbound =
@@ -93,17 +87,11 @@ export const IncrementActionIf1$outboundSchema: z.ZodType<
93
87
  z.ZodTypeDef,
94
88
  IncrementActionIf1
95
89
  > = z.union([
96
- CelExpression$outboundSchema.and(
97
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
98
- ),
90
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
99
91
  JMESPathExpression$outboundSchema.and(
100
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
101
- type: v.type,
102
- })),
103
- ),
104
- JMESPathExpression$outboundSchema.and(
105
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
92
+ z.object({ type: z.literal("jmespath") }),
106
93
  ),
94
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
107
95
  ]);
108
96
 
109
97
  export function incrementActionIf1ToJSON(
@@ -131,17 +119,11 @@ export const IncrementActionIf$inboundSchema: z.ZodType<
131
119
  > = z.union([
132
120
  CaseExpression$inboundSchema,
133
121
  z.union([
134
- CelExpression$inboundSchema.and(
135
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
136
- ),
122
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
137
123
  JMESPathExpression$inboundSchema.and(
138
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
139
- type: v.type,
140
- })),
141
- ),
142
- JMESPathExpression$inboundSchema.and(
143
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
124
+ z.object({ type: z.literal("jmespath") }),
144
125
  ),
126
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
145
127
  ]),
146
128
  z.string(),
147
129
  ]);
@@ -161,17 +143,11 @@ export const IncrementActionIf$outboundSchema: z.ZodType<
161
143
  > = z.union([
162
144
  CaseExpression$outboundSchema,
163
145
  z.union([
164
- CelExpression$outboundSchema.and(
165
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
166
- ),
146
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
167
147
  JMESPathExpression$outboundSchema.and(
168
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
169
- type: v.type,
170
- })),
171
- ),
172
- JMESPathExpression$outboundSchema.and(
173
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
148
+ z.object({ type: z.literal("jmespath") }),
174
149
  ),
150
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
175
151
  ]),
176
152
  z.string(),
177
153
  ]);
@@ -203,20 +179,12 @@ export const IncrementAction$inboundSchema: z.ZodType<
203
179
  z.union([
204
180
  CaseExpression$inboundSchema,
205
181
  z.union([
206
- CelExpression$inboundSchema.and(
207
- z.object({ type: z.literal("cel") }).transform((v) => ({
208
- type: v.type,
209
- })),
210
- ),
182
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
211
183
  JMESPathExpression$inboundSchema.and(
212
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
213
- type: v.type,
214
- })),
184
+ z.object({ type: z.literal("jmespath") }),
215
185
  ),
216
186
  JMESPathExpression$inboundSchema.and(
217
- z.object({ type: z.literal("jp") }).transform((v) => ({
218
- type: v.type,
219
- })),
187
+ z.object({ type: z.literal("jp") }),
220
188
  ),
221
189
  ]),
222
190
  z.string(),
@@ -251,20 +219,12 @@ export const IncrementAction$outboundSchema: z.ZodType<
251
219
  z.union([
252
220
  CaseExpression$outboundSchema,
253
221
  z.union([
254
- CelExpression$outboundSchema.and(
255
- z.object({ type: z.literal("cel") }).transform((v) => ({
256
- type: v.type,
257
- })),
258
- ),
222
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
259
223
  JMESPathExpression$outboundSchema.and(
260
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
261
- type: v.type,
262
- })),
224
+ z.object({ type: z.literal("jmespath") }),
263
225
  ),
264
226
  JMESPathExpression$outboundSchema.and(
265
- z.object({ type: z.literal("jp") }).transform((v) => ({
266
- type: v.type,
267
- })),
227
+ z.object({ type: z.literal("jp") }),
268
228
  ),
269
229
  ]),
270
230
  z.string(),
@@ -71,17 +71,11 @@ export const NextStepIf1$inboundSchema: z.ZodType<
71
71
  z.ZodTypeDef,
72
72
  unknown
73
73
  > = z.union([
74
- CelExpression$inboundSchema.and(
75
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
76
- ),
77
- JMESPathExpression$inboundSchema.and(
78
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
79
- type: v.type,
80
- })),
81
- ),
74
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
82
75
  JMESPathExpression$inboundSchema.and(
83
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
76
+ z.object({ type: z.literal("jmespath") }),
84
77
  ),
78
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
85
79
  ]);
86
80
  /** @internal */
87
81
  export type NextStepIf1$Outbound =
@@ -95,17 +89,11 @@ export const NextStepIf1$outboundSchema: z.ZodType<
95
89
  z.ZodTypeDef,
96
90
  NextStepIf1
97
91
  > = z.union([
98
- CelExpression$outboundSchema.and(
99
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
100
- ),
92
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
101
93
  JMESPathExpression$outboundSchema.and(
102
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
103
- type: v.type,
104
- })),
105
- ),
106
- JMESPathExpression$outboundSchema.and(
107
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
94
+ z.object({ type: z.literal("jmespath") }),
108
95
  ),
96
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
109
97
  ]);
110
98
 
111
99
  export function nextStepIf1ToJSON(nextStepIf1: NextStepIf1): string {
@@ -129,17 +117,11 @@ export const NextStepIf$inboundSchema: z.ZodType<
129
117
  > = z.union([
130
118
  CaseExpression$inboundSchema,
131
119
  z.union([
132
- CelExpression$inboundSchema.and(
133
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
134
- ),
120
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
135
121
  JMESPathExpression$inboundSchema.and(
136
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
137
- type: v.type,
138
- })),
139
- ),
140
- JMESPathExpression$inboundSchema.and(
141
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
122
+ z.object({ type: z.literal("jmespath") }),
142
123
  ),
124
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
143
125
  ]),
144
126
  z.string(),
145
127
  ]);
@@ -159,17 +141,11 @@ export const NextStepIf$outboundSchema: z.ZodType<
159
141
  > = z.union([
160
142
  CaseExpression$outboundSchema,
161
143
  z.union([
162
- CelExpression$outboundSchema.and(
163
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
164
- ),
144
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
165
145
  JMESPathExpression$outboundSchema.and(
166
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
167
- type: v.type,
168
- })),
169
- ),
170
- JMESPathExpression$outboundSchema.and(
171
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
146
+ z.object({ type: z.literal("jmespath") }),
172
147
  ),
148
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
173
149
  ]),
174
150
  z.string(),
175
151
  ]);
@@ -197,20 +173,12 @@ export const NextStep$inboundSchema: z.ZodType<
197
173
  z.union([
198
174
  CaseExpression$inboundSchema,
199
175
  z.union([
200
- CelExpression$inboundSchema.and(
201
- z.object({ type: z.literal("cel") }).transform((v) => ({
202
- type: v.type,
203
- })),
204
- ),
176
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
205
177
  JMESPathExpression$inboundSchema.and(
206
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
207
- type: v.type,
208
- })),
178
+ z.object({ type: z.literal("jmespath") }),
209
179
  ),
210
180
  JMESPathExpression$inboundSchema.and(
211
- z.object({ type: z.literal("jp") }).transform((v) => ({
212
- type: v.type,
213
- })),
181
+ z.object({ type: z.literal("jp") }),
214
182
  ),
215
183
  ]),
216
184
  z.string(),
@@ -243,20 +211,12 @@ export const NextStep$outboundSchema: z.ZodType<
243
211
  z.union([
244
212
  CaseExpression$outboundSchema,
245
213
  z.union([
246
- CelExpression$outboundSchema.and(
247
- z.object({ type: z.literal("cel") }).transform((v) => ({
248
- type: v.type,
249
- })),
250
- ),
214
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
251
215
  JMESPathExpression$outboundSchema.and(
252
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
253
- type: v.type,
254
- })),
216
+ z.object({ type: z.literal("jmespath") }),
255
217
  ),
256
218
  JMESPathExpression$outboundSchema.and(
257
- z.object({ type: z.literal("jp") }).transform((v) => ({
258
- type: v.type,
259
- })),
219
+ z.object({ type: z.literal("jp") }),
260
220
  ),
261
221
  ]),
262
222
  z.string(),
@@ -69,17 +69,11 @@ export const SaveActionIf1$inboundSchema: z.ZodType<
69
69
  z.ZodTypeDef,
70
70
  unknown
71
71
  > = z.union([
72
- CelExpression$inboundSchema.and(
73
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
74
- ),
75
- JMESPathExpression$inboundSchema.and(
76
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
77
- type: v.type,
78
- })),
79
- ),
72
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
80
73
  JMESPathExpression$inboundSchema.and(
81
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
74
+ z.object({ type: z.literal("jmespath") }),
82
75
  ),
76
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
83
77
  ]);
84
78
  /** @internal */
85
79
  export type SaveActionIf1$Outbound =
@@ -93,17 +87,11 @@ export const SaveActionIf1$outboundSchema: z.ZodType<
93
87
  z.ZodTypeDef,
94
88
  SaveActionIf1
95
89
  > = z.union([
96
- CelExpression$outboundSchema.and(
97
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
98
- ),
90
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
99
91
  JMESPathExpression$outboundSchema.and(
100
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
101
- type: v.type,
102
- })),
103
- ),
104
- JMESPathExpression$outboundSchema.and(
105
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
92
+ z.object({ type: z.literal("jmespath") }),
106
93
  ),
94
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
107
95
  ]);
108
96
 
109
97
  export function saveActionIf1ToJSON(saveActionIf1: SaveActionIf1): string {
@@ -127,17 +115,11 @@ export const SaveActionIf$inboundSchema: z.ZodType<
127
115
  > = z.union([
128
116
  CaseExpression$inboundSchema,
129
117
  z.union([
130
- CelExpression$inboundSchema.and(
131
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
132
- ),
118
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
133
119
  JMESPathExpression$inboundSchema.and(
134
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
135
- type: v.type,
136
- })),
137
- ),
138
- JMESPathExpression$inboundSchema.and(
139
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
120
+ z.object({ type: z.literal("jmespath") }),
140
121
  ),
122
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
141
123
  ]),
142
124
  z.string(),
143
125
  ]);
@@ -157,17 +139,11 @@ export const SaveActionIf$outboundSchema: z.ZodType<
157
139
  > = z.union([
158
140
  CaseExpression$outboundSchema,
159
141
  z.union([
160
- CelExpression$outboundSchema.and(
161
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
162
- ),
142
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
163
143
  JMESPathExpression$outboundSchema.and(
164
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
165
- type: v.type,
166
- })),
167
- ),
168
- JMESPathExpression$outboundSchema.and(
169
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
144
+ z.object({ type: z.literal("jmespath") }),
170
145
  ),
146
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
171
147
  ]),
172
148
  z.string(),
173
149
  ]);
@@ -195,20 +171,12 @@ export const SaveAction$inboundSchema: z.ZodType<
195
171
  z.union([
196
172
  CaseExpression$inboundSchema,
197
173
  z.union([
198
- CelExpression$inboundSchema.and(
199
- z.object({ type: z.literal("cel") }).transform((v) => ({
200
- type: v.type,
201
- })),
202
- ),
174
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
203
175
  JMESPathExpression$inboundSchema.and(
204
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
205
- type: v.type,
206
- })),
176
+ z.object({ type: z.literal("jmespath") }),
207
177
  ),
208
178
  JMESPathExpression$inboundSchema.and(
209
- z.object({ type: z.literal("jp") }).transform((v) => ({
210
- type: v.type,
211
- })),
179
+ z.object({ type: z.literal("jp") }),
212
180
  ),
213
181
  ]),
214
182
  z.string(),
@@ -243,20 +211,12 @@ export const SaveAction$outboundSchema: z.ZodType<
243
211
  z.union([
244
212
  CaseExpression$outboundSchema,
245
213
  z.union([
246
- CelExpression$outboundSchema.and(
247
- z.object({ type: z.literal("cel") }).transform((v) => ({
248
- type: v.type,
249
- })),
250
- ),
214
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
251
215
  JMESPathExpression$outboundSchema.and(
252
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
253
- type: v.type,
254
- })),
216
+ z.object({ type: z.literal("jmespath") }),
255
217
  ),
256
218
  JMESPathExpression$outboundSchema.and(
257
- z.object({ type: z.literal("jp") }).transform((v) => ({
258
- type: v.type,
259
- })),
219
+ z.object({ type: z.literal("jp") }),
260
220
  ),
261
221
  ]),
262
222
  z.string(),