syllable-sdk 1.0.13-rc.6 → 1.0.14-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.
Files changed (158) hide show
  1. package/README.md +7 -0
  2. package/bin/mcp-server.js +1704 -1950
  3. package/bin/mcp-server.js.map +34 -26
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts +19 -0
  6. package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
  7. package/funcs/conversationConfigGetBridgePhrasesConfig.js +123 -0
  8. package/funcs/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
  9. package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts +19 -0
  10. package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
  11. package/funcs/conversationConfigUpdateBridgePhrasesConfig.js +126 -0
  12. package/funcs/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
  13. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +1 -1
  14. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -1
  15. package/funcs/pronunciationsPronunciationsGetMetadata.js +1 -1
  16. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -1
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/lib/encodings.d.ts.map +1 -1
  21. package/lib/encodings.js +3 -1
  22. package/lib/encodings.js.map +1 -1
  23. package/mcp-server/mcp-server.js +1 -1
  24. package/mcp-server/server.d.ts.map +1 -1
  25. package/mcp-server/server.js +5 -1
  26. package/mcp-server/server.js.map +1 -1
  27. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts +8 -0
  28. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
  29. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js +64 -0
  30. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
  31. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts +8 -0
  32. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
  33. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js +64 -0
  34. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
  35. package/models/components/bridgephrasesconfig.d.ts +39 -0
  36. package/models/components/bridgephrasesconfig.d.ts.map +1 -0
  37. package/models/components/bridgephrasesconfig.js +80 -0
  38. package/models/components/bridgephrasesconfig.js.map +1 -0
  39. package/models/components/callaction.d.ts.map +1 -1
  40. package/models/components/callaction.js +18 -38
  41. package/models/components/callaction.js.map +1 -1
  42. package/models/components/conditionaltext.d.ts.map +1 -1
  43. package/models/components/conditionaltext.js +18 -38
  44. package/models/components/conditionaltext.js.map +1 -1
  45. package/models/components/conditionalvalue.d.ts.map +1 -1
  46. package/models/components/conditionalvalue.js +36 -80
  47. package/models/components/conditionalvalue.js.map +1 -1
  48. package/models/components/context.d.ts.map +1 -1
  49. package/models/components/context.js +48 -140
  50. package/models/components/context.js.map +1 -1
  51. package/models/components/eventtaskevents.d.ts.map +1 -1
  52. package/models/components/eventtaskevents.js +20 -60
  53. package/models/components/eventtaskevents.js.map +1 -1
  54. package/models/components/expressiontask.d.ts.map +1 -1
  55. package/models/components/expressiontask.js +18 -38
  56. package/models/components/expressiontask.js.map +1 -1
  57. package/models/components/expressiontaskevents.d.ts.map +1 -1
  58. package/models/components/expressiontaskevents.js +40 -120
  59. package/models/components/expressiontaskevents.js.map +1 -1
  60. package/models/components/incrementaction.d.ts.map +1 -1
  61. package/models/components/incrementaction.js +18 -38
  62. package/models/components/incrementaction.js.map +1 -1
  63. package/models/components/index.d.ts +3 -1
  64. package/models/components/index.d.ts.map +1 -1
  65. package/models/components/index.js +3 -1
  66. package/models/components/index.js.map +1 -1
  67. package/models/components/nextstep.d.ts.map +1 -1
  68. package/models/components/nextstep.js +18 -38
  69. package/models/components/nextstep.js.map +1 -1
  70. package/models/components/pronunciationoverridesdictionary.d.ts +3 -3
  71. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -1
  72. package/models/components/pronunciationoverridesdictionary.js +3 -3
  73. package/models/components/pronunciationoverridesdictionary.js.map +1 -1
  74. package/models/components/saveaction.d.ts.map +1 -1
  75. package/models/components/saveaction.js +18 -38
  76. package/models/components/saveaction.js.map +1 -1
  77. package/models/components/sayaction.d.ts.map +1 -1
  78. package/models/components/sayaction.js +18 -38
  79. package/models/components/sayaction.js.map +1 -1
  80. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts +33 -0
  81. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts.map +1 -0
  82. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js +62 -0
  83. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js.map +1 -0
  84. package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts +24 -0
  85. package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts.map +1 -0
  86. package/models/components/{dictionarymetadata.js → schemasttsv1pronunciationsdictionarymetadata.js} +10 -10
  87. package/models/components/schemasttsv1pronunciationsdictionarymetadata.js.map +1 -0
  88. package/models/components/setvalueaction.d.ts.map +1 -1
  89. package/models/components/setvalueaction.js +36 -76
  90. package/models/components/setvalueaction.js.map +1 -1
  91. package/models/components/stepeventactions.d.ts.map +1 -1
  92. package/models/components/stepeventactions.js +60 -180
  93. package/models/components/stepeventactions.js.map +1 -1
  94. package/models/components/variable.d.ts.map +1 -1
  95. package/models/components/variable.js +18 -38
  96. package/models/components/variable.js.map +1 -1
  97. package/models/operations/getbridgephrasesconfig.d.ts +25 -0
  98. package/models/operations/getbridgephrasesconfig.d.ts.map +1 -0
  99. package/models/operations/getbridgephrasesconfig.js +71 -0
  100. package/models/operations/getbridgephrasesconfig.js.map +1 -0
  101. package/models/operations/index.d.ts +2 -0
  102. package/models/operations/index.d.ts.map +1 -1
  103. package/models/operations/index.js +2 -0
  104. package/models/operations/index.js.map +1 -1
  105. package/models/operations/updatebridgephrasesconfig.d.ts +28 -0
  106. package/models/operations/updatebridgephrasesconfig.d.ts.map +1 -0
  107. package/models/operations/updatebridgephrasesconfig.js +76 -0
  108. package/models/operations/updatebridgephrasesconfig.js.map +1 -0
  109. package/openapi.json +290 -60
  110. package/package.json +1 -1
  111. package/sdk/conversationconfig.d.ts +20 -0
  112. package/sdk/conversationconfig.d.ts.map +1 -0
  113. package/sdk/conversationconfig.js +32 -0
  114. package/sdk/conversationconfig.js.map +1 -0
  115. package/sdk/pronunciations.d.ts +1 -1
  116. package/sdk/pronunciations.d.ts.map +1 -1
  117. package/sdk/sdk.d.ts +3 -0
  118. package/sdk/sdk.d.ts.map +1 -1
  119. package/sdk/sdk.js +4 -0
  120. package/sdk/sdk.js.map +1 -1
  121. package/src/funcs/conversationConfigGetBridgePhrasesConfig.ts +176 -0
  122. package/src/funcs/conversationConfigUpdateBridgePhrasesConfig.ts +179 -0
  123. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +7 -4
  124. package/src/lib/config.ts +3 -3
  125. package/src/lib/encodings.ts +4 -3
  126. package/src/mcp-server/mcp-server.ts +1 -1
  127. package/src/mcp-server/server.ts +5 -1
  128. package/src/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.ts +39 -0
  129. package/src/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.ts +39 -0
  130. package/src/models/components/bridgephrasesconfig.ts +101 -0
  131. package/src/models/components/callaction.ts +18 -58
  132. package/src/models/components/conditionaltext.ts +18 -58
  133. package/src/models/components/conditionalvalue.ts +36 -118
  134. package/src/models/components/context.ts +48 -188
  135. package/src/models/components/eventtaskevents.ts +20 -92
  136. package/src/models/components/expressiontask.ts +18 -58
  137. package/src/models/components/expressiontaskevents.ts +40 -184
  138. package/src/models/components/incrementaction.ts +18 -58
  139. package/src/models/components/index.ts +3 -1
  140. package/src/models/components/nextstep.ts +18 -58
  141. package/src/models/components/pronunciationoverridesdictionary.ts +10 -10
  142. package/src/models/components/saveaction.ts +18 -58
  143. package/src/models/components/sayaction.ts +18 -58
  144. package/src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts +82 -0
  145. package/src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts +73 -0
  146. package/src/models/components/setvalueaction.ts +36 -116
  147. package/src/models/components/stepeventactions.ts +60 -276
  148. package/src/models/components/variable.ts +18 -58
  149. package/src/models/operations/getbridgephrasesconfig.ts +74 -0
  150. package/src/models/operations/index.ts +2 -0
  151. package/src/models/operations/updatebridgephrasesconfig.ts +81 -0
  152. package/src/sdk/conversationconfig.ts +46 -0
  153. package/src/sdk/pronunciations.ts +1 -1
  154. package/src/sdk/sdk.ts +6 -0
  155. package/models/components/dictionarymetadata.d.ts +0 -24
  156. package/models/components/dictionarymetadata.d.ts.map +0 -1
  157. package/models/components/dictionarymetadata.js.map +0 -1
  158. package/src/models/components/dictionarymetadata.ts +0 -62
@@ -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
  ]),
@@ -66,31 +66,11 @@ export const EventTaskEventsStart$inboundSchema: z.ZodType<
66
66
  z.ZodTypeDef,
67
67
  unknown
68
68
  > = z.union([
69
- CallAction$inboundSchema.and(
70
- z.object({ action: z.literal("call") }).transform((v) => ({
71
- action: v.action,
72
- })),
73
- ),
74
- IncrementAction$inboundSchema.and(
75
- z.object({ action: z.literal("inc") }).transform((v) => ({
76
- action: v.action,
77
- })),
78
- ),
79
- SayAction$inboundSchema.and(
80
- z.object({ action: z.literal("say") }).transform((v) => ({
81
- action: v.action,
82
- })),
83
- ),
84
- SetValueAction$inboundSchema.and(
85
- z.object({ action: z.literal("set") }).transform((v) => ({
86
- action: v.action,
87
- })),
88
- ),
89
- SaveAction$inboundSchema.and(
90
- z.object({ action: z.literal("save") }).transform((v) => ({
91
- action: v.action,
92
- })),
93
- ),
69
+ CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
70
+ IncrementAction$inboundSchema.and(z.object({ action: z.literal("inc") })),
71
+ SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
72
+ SetValueAction$inboundSchema.and(z.object({ action: z.literal("set") })),
73
+ SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
94
74
  ]);
95
75
  /** @internal */
96
76
  export type EventTaskEventsStart$Outbound =
@@ -106,31 +86,11 @@ export const EventTaskEventsStart$outboundSchema: z.ZodType<
106
86
  z.ZodTypeDef,
107
87
  EventTaskEventsStart
108
88
  > = z.union([
109
- CallAction$outboundSchema.and(
110
- z.object({ action: z.literal("call") }).transform((v) => ({
111
- action: v.action,
112
- })),
113
- ),
114
- IncrementAction$outboundSchema.and(
115
- z.object({ action: z.literal("inc") }).transform((v) => ({
116
- action: v.action,
117
- })),
118
- ),
119
- SayAction$outboundSchema.and(
120
- z.object({ action: z.literal("say") }).transform((v) => ({
121
- action: v.action,
122
- })),
123
- ),
124
- SetValueAction$outboundSchema.and(
125
- z.object({ action: z.literal("set") }).transform((v) => ({
126
- action: v.action,
127
- })),
128
- ),
129
- SaveAction$outboundSchema.and(
130
- z.object({ action: z.literal("save") }).transform((v) => ({
131
- action: v.action,
132
- })),
133
- ),
89
+ CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
90
+ IncrementAction$outboundSchema.and(z.object({ action: z.literal("inc") })),
91
+ SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
92
+ SetValueAction$outboundSchema.and(z.object({ action: z.literal("set") })),
93
+ SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
134
94
  ]);
135
95
 
136
96
  export function eventTaskEventsStartToJSON(
@@ -159,31 +119,15 @@ export const EventTaskEvents$inboundSchema: z.ZodType<
159
119
  start: z.nullable(
160
120
  z.array(
161
121
  z.union([
162
- CallAction$inboundSchema.and(
163
- z.object({ action: z.literal("call") }).transform((v) => ({
164
- action: v.action,
165
- })),
166
- ),
122
+ CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
167
123
  IncrementAction$inboundSchema.and(
168
- z.object({ action: z.literal("inc") }).transform((v) => ({
169
- action: v.action,
170
- })),
171
- ),
172
- SayAction$inboundSchema.and(
173
- z.object({ action: z.literal("say") }).transform((v) => ({
174
- action: v.action,
175
- })),
124
+ z.object({ action: z.literal("inc") }),
176
125
  ),
126
+ SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
177
127
  SetValueAction$inboundSchema.and(
178
- z.object({ action: z.literal("set") }).transform((v) => ({
179
- action: v.action,
180
- })),
181
- ),
182
- SaveAction$inboundSchema.and(
183
- z.object({ action: z.literal("save") }).transform((v) => ({
184
- action: v.action,
185
- })),
128
+ z.object({ action: z.literal("set") }),
186
129
  ),
130
+ SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
187
131
  ]),
188
132
  ),
189
133
  ).optional(),
@@ -211,31 +155,15 @@ export const EventTaskEvents$outboundSchema: z.ZodType<
211
155
  start: z.nullable(
212
156
  z.array(
213
157
  z.union([
214
- CallAction$outboundSchema.and(
215
- z.object({ action: z.literal("call") }).transform((v) => ({
216
- action: v.action,
217
- })),
218
- ),
158
+ CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
219
159
  IncrementAction$outboundSchema.and(
220
- z.object({ action: z.literal("inc") }).transform((v) => ({
221
- action: v.action,
222
- })),
223
- ),
224
- SayAction$outboundSchema.and(
225
- z.object({ action: z.literal("say") }).transform((v) => ({
226
- action: v.action,
227
- })),
160
+ z.object({ action: z.literal("inc") }),
228
161
  ),
162
+ SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
229
163
  SetValueAction$outboundSchema.and(
230
- z.object({ action: z.literal("set") }).transform((v) => ({
231
- action: v.action,
232
- })),
233
- ),
234
- SaveAction$outboundSchema.and(
235
- z.object({ action: z.literal("save") }).transform((v) => ({
236
- action: v.action,
237
- })),
164
+ z.object({ action: z.literal("set") }),
238
165
  ),
166
+ SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
239
167
  ]),
240
168
  ),
241
169
  ).optional(),
@@ -100,17 +100,11 @@ export const Expression1$inboundSchema: z.ZodType<
100
100
  z.ZodTypeDef,
101
101
  unknown
102
102
  > = z.union([
103
- CelExpression$inboundSchema.and(
104
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
105
- ),
106
- JMESPathExpression$inboundSchema.and(
107
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
108
- type: v.type,
109
- })),
110
- ),
103
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
111
104
  JMESPathExpression$inboundSchema.and(
112
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
105
+ z.object({ type: z.literal("jmespath") }),
113
106
  ),
107
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
114
108
  ]);
115
109
  /** @internal */
116
110
  export type Expression1$Outbound =
@@ -124,17 +118,11 @@ export const Expression1$outboundSchema: z.ZodType<
124
118
  z.ZodTypeDef,
125
119
  Expression1
126
120
  > = z.union([
127
- CelExpression$outboundSchema.and(
128
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
129
- ),
121
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
130
122
  JMESPathExpression$outboundSchema.and(
131
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
132
- type: v.type,
133
- })),
134
- ),
135
- JMESPathExpression$outboundSchema.and(
136
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
123
+ z.object({ type: z.literal("jmespath") }),
137
124
  ),
125
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
138
126
  ]);
139
127
 
140
128
  export function expression1ToJSON(expression1: Expression1): string {
@@ -158,17 +146,11 @@ export const Expression$inboundSchema: z.ZodType<
158
146
  > = z.union([
159
147
  CaseExpression$inboundSchema,
160
148
  z.union([
161
- CelExpression$inboundSchema.and(
162
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
163
- ),
149
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
164
150
  JMESPathExpression$inboundSchema.and(
165
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
166
- type: v.type,
167
- })),
168
- ),
169
- JMESPathExpression$inboundSchema.and(
170
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
151
+ z.object({ type: z.literal("jmespath") }),
171
152
  ),
153
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
172
154
  ]),
173
155
  z.string(),
174
156
  ]);
@@ -188,17 +170,11 @@ export const Expression$outboundSchema: z.ZodType<
188
170
  > = z.union([
189
171
  CaseExpression$outboundSchema,
190
172
  z.union([
191
- CelExpression$outboundSchema.and(
192
- z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
193
- ),
173
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
194
174
  JMESPathExpression$outboundSchema.and(
195
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
196
- type: v.type,
197
- })),
198
- ),
199
- JMESPathExpression$outboundSchema.and(
200
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
175
+ z.object({ type: z.literal("jmespath") }),
201
176
  ),
177
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
202
178
  ]),
203
179
  z.string(),
204
180
  ]);
@@ -234,20 +210,12 @@ export const ExpressionTask$inboundSchema: z.ZodType<
234
210
  z.union([
235
211
  CaseExpression$inboundSchema,
236
212
  z.union([
237
- CelExpression$inboundSchema.and(
238
- z.object({ type: z.literal("cel") }).transform((v) => ({
239
- type: v.type,
240
- })),
241
- ),
213
+ CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
242
214
  JMESPathExpression$inboundSchema.and(
243
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
244
- type: v.type,
245
- })),
215
+ z.object({ type: z.literal("jmespath") }),
246
216
  ),
247
217
  JMESPathExpression$inboundSchema.and(
248
- z.object({ type: z.literal("jp") }).transform((v) => ({
249
- type: v.type,
250
- })),
218
+ z.object({ type: z.literal("jp") }),
251
219
  ),
252
220
  ]),
253
221
  z.string(),
@@ -296,20 +264,12 @@ export const ExpressionTask$outboundSchema: z.ZodType<
296
264
  z.union([
297
265
  CaseExpression$outboundSchema,
298
266
  z.union([
299
- CelExpression$outboundSchema.and(
300
- z.object({ type: z.literal("cel") }).transform((v) => ({
301
- type: v.type,
302
- })),
303
- ),
267
+ CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
304
268
  JMESPathExpression$outboundSchema.and(
305
- z.object({ type: z.literal("jmespath") }).transform((v) => ({
306
- type: v.type,
307
- })),
269
+ z.object({ type: z.literal("jmespath") }),
308
270
  ),
309
271
  JMESPathExpression$outboundSchema.and(
310
- z.object({ type: z.literal("jp") }).transform((v) => ({
311
- type: v.type,
312
- })),
272
+ z.object({ type: z.literal("jp") }),
313
273
  ),
314
274
  ]),
315
275
  z.string(),