syllable-sdk 1.0.14-rc.1 → 1.0.14-rc.3

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 (121) hide show
  1. package/bin/mcp-server.js +295 -269
  2. package/bin/mcp-server.js.map +26 -26
  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/encodings.d.ts +1 -0
  8. package/lib/encodings.d.ts.map +1 -1
  9. package/lib/encodings.js +9 -0
  10. package/lib/encodings.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/models/components/callaction.d.ts +7 -19
  14. package/models/components/callaction.d.ts.map +1 -1
  15. package/models/components/callaction.js +8 -8
  16. package/models/components/callaction.js.map +1 -1
  17. package/models/components/celexpression.d.ts +1 -1
  18. package/models/components/celexpression.d.ts.map +1 -1
  19. package/models/components/celexpression.js +2 -2
  20. package/models/components/celexpression.js.map +1 -1
  21. package/models/components/conditionaltext.d.ts +6 -18
  22. package/models/components/conditionaltext.d.ts.map +1 -1
  23. package/models/components/conditionaltext.js +6 -6
  24. package/models/components/conditionaltext.js.map +1 -1
  25. package/models/components/conditionalvalue.d.ts +12 -36
  26. package/models/components/conditionalvalue.d.ts.map +1 -1
  27. package/models/components/conditionalvalue.js +12 -12
  28. package/models/components/conditionalvalue.js.map +1 -1
  29. package/models/components/context.d.ts +8 -104
  30. package/models/components/context.d.ts.map +1 -1
  31. package/models/components/context.js +48 -48
  32. package/models/components/context.js.map +1 -1
  33. package/models/components/eventtask.d.ts +1 -1
  34. package/models/components/eventtask.d.ts.map +1 -1
  35. package/models/components/eventtask.js +2 -2
  36. package/models/components/eventtask.js.map +1 -1
  37. package/models/components/eventtaskevents.d.ts +4 -44
  38. package/models/components/eventtaskevents.d.ts.map +1 -1
  39. package/models/components/eventtaskevents.js +20 -20
  40. package/models/components/eventtaskevents.js.map +1 -1
  41. package/models/components/expressiontask.d.ts +7 -19
  42. package/models/components/expressiontask.d.ts.map +1 -1
  43. package/models/components/expressiontask.js +8 -8
  44. package/models/components/expressiontask.js.map +1 -1
  45. package/models/components/expressiontaskevents.d.ts +8 -88
  46. package/models/components/expressiontaskevents.d.ts.map +1 -1
  47. package/models/components/expressiontaskevents.js +40 -40
  48. package/models/components/expressiontaskevents.js.map +1 -1
  49. package/models/components/incrementaction.d.ts +7 -19
  50. package/models/components/incrementaction.d.ts.map +1 -1
  51. package/models/components/incrementaction.js +8 -8
  52. package/models/components/incrementaction.js.map +1 -1
  53. package/models/components/loadtoolfromfiletask.d.ts +1 -1
  54. package/models/components/loadtoolfromfiletask.d.ts.map +1 -1
  55. package/models/components/loadtoolfromfiletask.js +2 -2
  56. package/models/components/loadtoolfromfiletask.js.map +1 -1
  57. package/models/components/nextstep.d.ts +6 -18
  58. package/models/components/nextstep.d.ts.map +1 -1
  59. package/models/components/nextstep.js +6 -6
  60. package/models/components/nextstep.js.map +1 -1
  61. package/models/components/saveaction.d.ts +7 -19
  62. package/models/components/saveaction.d.ts.map +1 -1
  63. package/models/components/saveaction.js +8 -8
  64. package/models/components/saveaction.js.map +1 -1
  65. package/models/components/sayaction.d.ts +7 -19
  66. package/models/components/sayaction.d.ts.map +1 -1
  67. package/models/components/sayaction.js +8 -8
  68. package/models/components/sayaction.js.map +1 -1
  69. package/models/components/setvalueaction.d.ts +13 -37
  70. package/models/components/setvalueaction.d.ts.map +1 -1
  71. package/models/components/setvalueaction.js +14 -14
  72. package/models/components/setvalueaction.js.map +1 -1
  73. package/models/components/step.d.ts +1 -1
  74. package/models/components/stepeventactions.d.ts +27 -133
  75. package/models/components/stepeventactions.d.ts.map +1 -1
  76. package/models/components/stepeventactions.js +91 -61
  77. package/models/components/stepeventactions.js.map +1 -1
  78. package/models/components/stepstask.d.ts +1 -1
  79. package/models/components/stepstask.d.ts.map +1 -1
  80. package/models/components/stepstask.js +2 -2
  81. package/models/components/stepstask.js.map +1 -1
  82. package/models/components/toolparametertransformcondition.d.ts +1 -1
  83. package/models/components/toolparametertransformcondition.d.ts.map +1 -1
  84. package/models/components/toolparametertransformcondition.js +2 -2
  85. package/models/components/toolparametertransformcondition.js.map +1 -1
  86. package/models/components/variable.d.ts +6 -18
  87. package/models/components/variable.d.ts.map +1 -1
  88. package/models/components/variable.js +6 -6
  89. package/models/components/variable.js.map +1 -1
  90. package/openapi.json +67 -34
  91. package/package.json +1 -1
  92. package/src/lib/config.ts +3 -3
  93. package/src/lib/encodings.ts +13 -0
  94. package/src/mcp-server/mcp-server.ts +1 -1
  95. package/src/mcp-server/server.ts +1 -1
  96. package/src/models/components/callaction.ts +15 -15
  97. package/src/models/components/celexpression.ts +3 -3
  98. package/src/models/components/conditionaltext.ts +12 -12
  99. package/src/models/components/conditionalvalue.ts +24 -24
  100. package/src/models/components/context.ts +87 -149
  101. package/src/models/components/eventtask.ts +3 -3
  102. package/src/models/components/eventtaskevents.ts +36 -48
  103. package/src/models/components/expressiontask.ts +15 -15
  104. package/src/models/components/expressiontaskevents.ts +72 -96
  105. package/src/models/components/incrementaction.ts +15 -15
  106. package/src/models/components/loadtoolfromfiletask.ts +3 -3
  107. package/src/models/components/nextstep.ts +12 -12
  108. package/src/models/components/saveaction.ts +15 -15
  109. package/src/models/components/sayaction.ts +15 -15
  110. package/src/models/components/setvalueaction.ts +27 -27
  111. package/src/models/components/step.ts +1 -1
  112. package/src/models/components/stepeventactions.ts +182 -145
  113. package/src/models/components/stepstask.ts +3 -3
  114. package/src/models/components/toolparametertransformcondition.ts +3 -3
  115. package/src/models/components/variable.ts +12 -12
  116. package/src/types/unrecognized.ts +9 -1
  117. package/tsconfig.json +1 -2
  118. package/types/unrecognized.d.ts +7 -1
  119. package/types/unrecognized.d.ts.map +1 -1
  120. package/types/unrecognized.js +9 -1
  121. package/types/unrecognized.js.map +1 -1
@@ -38,18 +38,18 @@ import {
38
38
  } from "./setvalueaction.js";
39
39
 
40
40
  export type Start =
41
- | (CallAction & { action: "call" })
42
- | (IncrementAction & { action: "inc" })
43
- | (SayAction & { action: "say" })
44
- | (SetValueAction & { action: "set" })
45
- | (SaveAction & { action: "save" });
41
+ | CallAction
42
+ | IncrementAction
43
+ | SaveAction
44
+ | SayAction
45
+ | SetValueAction;
46
46
 
47
47
  export type Submit =
48
- | (CallAction & { action: "call" })
49
- | (IncrementAction & { action: "inc" })
50
- | (SayAction & { action: "say" })
51
- | (SetValueAction & { action: "set" })
52
- | (SaveAction & { action: "save" });
48
+ | CallAction
49
+ | IncrementAction
50
+ | SaveAction
51
+ | SayAction
52
+ | SetValueAction;
53
53
 
54
54
  /**
55
55
  * Actions to perform when events occur (enter, submit).
@@ -60,11 +60,7 @@ export type ExpressionTaskEvents = {
60
60
  */
61
61
  start?:
62
62
  | Array<
63
- | (CallAction & { action: "call" })
64
- | (IncrementAction & { action: "inc" })
65
- | (SayAction & { action: "say" })
66
- | (SetValueAction & { action: "set" })
67
- | (SaveAction & { action: "save" })
63
+ CallAction | IncrementAction | SaveAction | SayAction | SetValueAction
68
64
  >
69
65
  | null
70
66
  | undefined;
@@ -73,11 +69,7 @@ export type ExpressionTaskEvents = {
73
69
  */
74
70
  submit?:
75
71
  | Array<
76
- | (CallAction & { action: "call" })
77
- | (IncrementAction & { action: "inc" })
78
- | (SayAction & { action: "say" })
79
- | (SetValueAction & { action: "set" })
80
- | (SaveAction & { action: "save" })
72
+ CallAction | IncrementAction | SaveAction | SayAction | SetValueAction
81
73
  >
82
74
  | null
83
75
  | undefined;
@@ -86,19 +78,19 @@ export type ExpressionTaskEvents = {
86
78
  /** @internal */
87
79
  export const Start$inboundSchema: z.ZodType<Start, z.ZodTypeDef, unknown> = z
88
80
  .union([
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") })),
81
+ CallAction$inboundSchema,
82
+ IncrementAction$inboundSchema,
83
+ SaveAction$inboundSchema,
84
+ SayAction$inboundSchema,
85
+ SetValueAction$inboundSchema,
94
86
  ]);
95
87
  /** @internal */
96
88
  export type Start$Outbound =
97
- | (CallAction$Outbound & { action: "call" })
98
- | (IncrementAction$Outbound & { action: "inc" })
99
- | (SayAction$Outbound & { action: "say" })
100
- | (SetValueAction$Outbound & { action: "set" })
101
- | (SaveAction$Outbound & { action: "save" });
89
+ | CallAction$Outbound
90
+ | IncrementAction$Outbound
91
+ | SaveAction$Outbound
92
+ | SayAction$Outbound
93
+ | SetValueAction$Outbound;
102
94
 
103
95
  /** @internal */
104
96
  export const Start$outboundSchema: z.ZodType<
@@ -106,11 +98,11 @@ export const Start$outboundSchema: z.ZodType<
106
98
  z.ZodTypeDef,
107
99
  Start
108
100
  > = z.union([
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") })),
101
+ CallAction$outboundSchema,
102
+ IncrementAction$outboundSchema,
103
+ SaveAction$outboundSchema,
104
+ SayAction$outboundSchema,
105
+ SetValueAction$outboundSchema,
114
106
  ]);
115
107
 
116
108
  export function startToJSON(start: Start): string {
@@ -129,19 +121,19 @@ export function startFromJSON(
129
121
  /** @internal */
130
122
  export const Submit$inboundSchema: z.ZodType<Submit, z.ZodTypeDef, unknown> = z
131
123
  .union([
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") })),
124
+ CallAction$inboundSchema,
125
+ IncrementAction$inboundSchema,
126
+ SaveAction$inboundSchema,
127
+ SayAction$inboundSchema,
128
+ SetValueAction$inboundSchema,
137
129
  ]);
138
130
  /** @internal */
139
131
  export type Submit$Outbound =
140
- | (CallAction$Outbound & { action: "call" })
141
- | (IncrementAction$Outbound & { action: "inc" })
142
- | (SayAction$Outbound & { action: "say" })
143
- | (SetValueAction$Outbound & { action: "set" })
144
- | (SaveAction$Outbound & { action: "save" });
132
+ | CallAction$Outbound
133
+ | IncrementAction$Outbound
134
+ | SaveAction$Outbound
135
+ | SayAction$Outbound
136
+ | SetValueAction$Outbound;
145
137
 
146
138
  /** @internal */
147
139
  export const Submit$outboundSchema: z.ZodType<
@@ -149,11 +141,11 @@ export const Submit$outboundSchema: z.ZodType<
149
141
  z.ZodTypeDef,
150
142
  Submit
151
143
  > = z.union([
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") })),
144
+ CallAction$outboundSchema,
145
+ IncrementAction$outboundSchema,
146
+ SaveAction$outboundSchema,
147
+ SayAction$outboundSchema,
148
+ SetValueAction$outboundSchema,
157
149
  ]);
158
150
 
159
151
  export function submitToJSON(submit: Submit): string {
@@ -178,30 +170,22 @@ export const ExpressionTaskEvents$inboundSchema: z.ZodType<
178
170
  start: z.nullable(
179
171
  z.array(
180
172
  z.union([
181
- CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
182
- IncrementAction$inboundSchema.and(
183
- z.object({ action: z.literal("inc") }),
184
- ),
185
- SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
186
- SetValueAction$inboundSchema.and(
187
- z.object({ action: z.literal("set") }),
188
- ),
189
- SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
173
+ CallAction$inboundSchema,
174
+ IncrementAction$inboundSchema,
175
+ SaveAction$inboundSchema,
176
+ SayAction$inboundSchema,
177
+ SetValueAction$inboundSchema,
190
178
  ]),
191
179
  ),
192
180
  ).optional(),
193
181
  submit: z.nullable(
194
182
  z.array(
195
183
  z.union([
196
- CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
197
- IncrementAction$inboundSchema.and(
198
- z.object({ action: z.literal("inc") }),
199
- ),
200
- SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
201
- SetValueAction$inboundSchema.and(
202
- z.object({ action: z.literal("set") }),
203
- ),
204
- SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
184
+ CallAction$inboundSchema,
185
+ IncrementAction$inboundSchema,
186
+ SaveAction$inboundSchema,
187
+ SayAction$inboundSchema,
188
+ SetValueAction$inboundSchema,
205
189
  ]),
206
190
  ),
207
191
  ).optional(),
@@ -210,21 +194,21 @@ export const ExpressionTaskEvents$inboundSchema: z.ZodType<
210
194
  export type ExpressionTaskEvents$Outbound = {
211
195
  start?:
212
196
  | Array<
213
- | (CallAction$Outbound & { action: "call" })
214
- | (IncrementAction$Outbound & { action: "inc" })
215
- | (SayAction$Outbound & { action: "say" })
216
- | (SetValueAction$Outbound & { action: "set" })
217
- | (SaveAction$Outbound & { action: "save" })
197
+ | CallAction$Outbound
198
+ | IncrementAction$Outbound
199
+ | SaveAction$Outbound
200
+ | SayAction$Outbound
201
+ | SetValueAction$Outbound
218
202
  >
219
203
  | null
220
204
  | undefined;
221
205
  submit?:
222
206
  | Array<
223
- | (CallAction$Outbound & { action: "call" })
224
- | (IncrementAction$Outbound & { action: "inc" })
225
- | (SayAction$Outbound & { action: "say" })
226
- | (SetValueAction$Outbound & { action: "set" })
227
- | (SaveAction$Outbound & { action: "save" })
207
+ | CallAction$Outbound
208
+ | IncrementAction$Outbound
209
+ | SaveAction$Outbound
210
+ | SayAction$Outbound
211
+ | SetValueAction$Outbound
228
212
  >
229
213
  | null
230
214
  | undefined;
@@ -239,30 +223,22 @@ export const ExpressionTaskEvents$outboundSchema: z.ZodType<
239
223
  start: z.nullable(
240
224
  z.array(
241
225
  z.union([
242
- CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
243
- IncrementAction$outboundSchema.and(
244
- z.object({ action: z.literal("inc") }),
245
- ),
246
- SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
247
- SetValueAction$outboundSchema.and(
248
- z.object({ action: z.literal("set") }),
249
- ),
250
- SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
226
+ CallAction$outboundSchema,
227
+ IncrementAction$outboundSchema,
228
+ SaveAction$outboundSchema,
229
+ SayAction$outboundSchema,
230
+ SetValueAction$outboundSchema,
251
231
  ]),
252
232
  ),
253
233
  ).optional(),
254
234
  submit: z.nullable(
255
235
  z.array(
256
236
  z.union([
257
- CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
258
- IncrementAction$outboundSchema.and(
259
- z.object({ action: z.literal("inc") }),
260
- ),
261
- SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
262
- SetValueAction$outboundSchema.and(
263
- z.object({ action: z.literal("set") }),
264
- ),
265
- SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
237
+ CallAction$outboundSchema,
238
+ IncrementAction$outboundSchema,
239
+ SaveAction$outboundSchema,
240
+ SayAction$outboundSchema,
241
+ SetValueAction$outboundSchema,
266
242
  ]),
267
243
  ),
268
244
  ).optional(),
@@ -26,7 +26,7 @@ import {
26
26
  } from "./jmespathexpression.js";
27
27
 
28
28
  export type IncrementActionIf1 =
29
- | (CelExpression & { type: "cel" })
29
+ | CelExpression
30
30
  | (JMESPathExpression & { type: "jmespath" })
31
31
  | (JMESPathExpression & { type: "jp" });
32
32
 
@@ -35,7 +35,7 @@ export type IncrementActionIf1 =
35
35
  */
36
36
  export type IncrementActionIf =
37
37
  | CaseExpression
38
- | (CelExpression & { type: "cel" })
38
+ | CelExpression
39
39
  | (JMESPathExpression & { type: "jmespath" })
40
40
  | (JMESPathExpression & { type: "jp" })
41
41
  | string;
@@ -46,13 +46,13 @@ export type IncrementAction = {
46
46
  */
47
47
  if?:
48
48
  | CaseExpression
49
- | (CelExpression & { type: "cel" })
49
+ | CelExpression
50
50
  | (JMESPathExpression & { type: "jmespath" })
51
51
  | (JMESPathExpression & { type: "jp" })
52
52
  | string
53
53
  | null
54
54
  | undefined;
55
- action?: "inc" | undefined;
55
+ action: "inc";
56
56
  /**
57
57
  * Numeric destination path to increment.
58
58
  */
@@ -69,7 +69,7 @@ export const IncrementActionIf1$inboundSchema: z.ZodType<
69
69
  z.ZodTypeDef,
70
70
  unknown
71
71
  > = z.union([
72
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
72
+ CelExpression$inboundSchema,
73
73
  JMESPathExpression$inboundSchema.and(
74
74
  z.object({ type: z.literal("jmespath") }),
75
75
  ),
@@ -77,7 +77,7 @@ export const IncrementActionIf1$inboundSchema: z.ZodType<
77
77
  ]);
78
78
  /** @internal */
79
79
  export type IncrementActionIf1$Outbound =
80
- | (CelExpression$Outbound & { type: "cel" })
80
+ | CelExpression$Outbound
81
81
  | (JMESPathExpression$Outbound & { type: "jmespath" })
82
82
  | (JMESPathExpression$Outbound & { type: "jp" });
83
83
 
@@ -87,7 +87,7 @@ export const IncrementActionIf1$outboundSchema: z.ZodType<
87
87
  z.ZodTypeDef,
88
88
  IncrementActionIf1
89
89
  > = z.union([
90
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
90
+ CelExpression$outboundSchema,
91
91
  JMESPathExpression$outboundSchema.and(
92
92
  z.object({ type: z.literal("jmespath") }),
93
93
  ),
@@ -119,7 +119,7 @@ export const IncrementActionIf$inboundSchema: z.ZodType<
119
119
  > = z.union([
120
120
  CaseExpression$inboundSchema,
121
121
  z.union([
122
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
122
+ CelExpression$inboundSchema,
123
123
  JMESPathExpression$inboundSchema.and(
124
124
  z.object({ type: z.literal("jmespath") }),
125
125
  ),
@@ -130,7 +130,7 @@ export const IncrementActionIf$inboundSchema: z.ZodType<
130
130
  /** @internal */
131
131
  export type IncrementActionIf$Outbound =
132
132
  | CaseExpression$Outbound
133
- | (CelExpression$Outbound & { type: "cel" })
133
+ | CelExpression$Outbound
134
134
  | (JMESPathExpression$Outbound & { type: "jmespath" })
135
135
  | (JMESPathExpression$Outbound & { type: "jp" })
136
136
  | string;
@@ -143,7 +143,7 @@ export const IncrementActionIf$outboundSchema: z.ZodType<
143
143
  > = z.union([
144
144
  CaseExpression$outboundSchema,
145
145
  z.union([
146
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
146
+ CelExpression$outboundSchema,
147
147
  JMESPathExpression$outboundSchema.and(
148
148
  z.object({ type: z.literal("jmespath") }),
149
149
  ),
@@ -179,7 +179,7 @@ export const IncrementAction$inboundSchema: z.ZodType<
179
179
  z.union([
180
180
  CaseExpression$inboundSchema,
181
181
  z.union([
182
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
182
+ CelExpression$inboundSchema,
183
183
  JMESPathExpression$inboundSchema.and(
184
184
  z.object({ type: z.literal("jmespath") }),
185
185
  ),
@@ -190,7 +190,7 @@ export const IncrementAction$inboundSchema: z.ZodType<
190
190
  z.string(),
191
191
  ]),
192
192
  ).optional(),
193
- action: z.literal("inc").default("inc"),
193
+ action: z.literal("inc"),
194
194
  name: z.string(),
195
195
  by: z.number().int().default(1),
196
196
  });
@@ -198,7 +198,7 @@ export const IncrementAction$inboundSchema: z.ZodType<
198
198
  export type IncrementAction$Outbound = {
199
199
  if?:
200
200
  | CaseExpression$Outbound
201
- | (CelExpression$Outbound & { type: "cel" })
201
+ | CelExpression$Outbound
202
202
  | (JMESPathExpression$Outbound & { type: "jmespath" })
203
203
  | (JMESPathExpression$Outbound & { type: "jp" })
204
204
  | string
@@ -219,7 +219,7 @@ export const IncrementAction$outboundSchema: z.ZodType<
219
219
  z.union([
220
220
  CaseExpression$outboundSchema,
221
221
  z.union([
222
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
222
+ CelExpression$outboundSchema,
223
223
  JMESPathExpression$outboundSchema.and(
224
224
  z.object({ type: z.literal("jmespath") }),
225
225
  ),
@@ -230,7 +230,7 @@ export const IncrementAction$outboundSchema: z.ZodType<
230
230
  z.string(),
231
231
  ]),
232
232
  ).optional(),
233
- action: z.literal("inc").default("inc" as const),
233
+ action: z.literal("inc"),
234
234
  name: z.string(),
235
235
  by: z.number().int().default(1),
236
236
  });
@@ -42,7 +42,7 @@ export type LoadToolFromFileTask = {
42
42
  variables?: Array<Variable> | null | undefined;
43
43
  metadata?: ContextTaskMetadata | null | undefined;
44
44
  tool?: ContextToolInfo | null | undefined;
45
- type?: "import" | undefined;
45
+ type: "import";
46
46
  version?: "v1alpha" | undefined;
47
47
  /**
48
48
  * The local path of the tool definition JSON file.
@@ -87,7 +87,7 @@ export const LoadToolFromFileTask$inboundSchema: z.ZodType<
87
87
  variables: z.nullable(z.array(Variable$inboundSchema)).optional(),
88
88
  metadata: z.nullable(ContextTaskMetadata$inboundSchema).optional(),
89
89
  tool: z.nullable(ContextToolInfo$inboundSchema).optional(),
90
- type: z.literal("import").default("import"),
90
+ type: z.literal("import"),
91
91
  version: z.literal("v1alpha").default("v1alpha"),
92
92
  file: z.union([z.string(), z.array(z.string())]),
93
93
  });
@@ -114,7 +114,7 @@ export const LoadToolFromFileTask$outboundSchema: z.ZodType<
114
114
  variables: z.nullable(z.array(Variable$outboundSchema)).optional(),
115
115
  metadata: z.nullable(ContextTaskMetadata$outboundSchema).optional(),
116
116
  tool: z.nullable(ContextToolInfo$outboundSchema).optional(),
117
- type: z.literal("import").default("import" as const),
117
+ type: z.literal("import"),
118
118
  version: z.literal("v1alpha").default("v1alpha" as const),
119
119
  file: z.union([z.string(), z.array(z.string())]),
120
120
  });
@@ -26,7 +26,7 @@ import {
26
26
  } from "./jmespathexpression.js";
27
27
 
28
28
  export type NextStepIf1 =
29
- | (CelExpression & { type: "cel" })
29
+ | CelExpression
30
30
  | (JMESPathExpression & { type: "jmespath" })
31
31
  | (JMESPathExpression & { type: "jp" });
32
32
 
@@ -35,7 +35,7 @@ export type NextStepIf1 =
35
35
  */
36
36
  export type NextStepIf =
37
37
  | CaseExpression
38
- | (CelExpression & { type: "cel" })
38
+ | CelExpression
39
39
  | (JMESPathExpression & { type: "jmespath" })
40
40
  | (JMESPathExpression & { type: "jp" })
41
41
  | string;
@@ -49,7 +49,7 @@ export type NextStep = {
49
49
  */
50
50
  if?:
51
51
  | CaseExpression
52
- | (CelExpression & { type: "cel" })
52
+ | CelExpression
53
53
  | (JMESPathExpression & { type: "jmespath" })
54
54
  | (JMESPathExpression & { type: "jp" })
55
55
  | string
@@ -71,7 +71,7 @@ export const NextStepIf1$inboundSchema: z.ZodType<
71
71
  z.ZodTypeDef,
72
72
  unknown
73
73
  > = z.union([
74
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
74
+ CelExpression$inboundSchema,
75
75
  JMESPathExpression$inboundSchema.and(
76
76
  z.object({ type: z.literal("jmespath") }),
77
77
  ),
@@ -79,7 +79,7 @@ export const NextStepIf1$inboundSchema: z.ZodType<
79
79
  ]);
80
80
  /** @internal */
81
81
  export type NextStepIf1$Outbound =
82
- | (CelExpression$Outbound & { type: "cel" })
82
+ | CelExpression$Outbound
83
83
  | (JMESPathExpression$Outbound & { type: "jmespath" })
84
84
  | (JMESPathExpression$Outbound & { type: "jp" });
85
85
 
@@ -89,7 +89,7 @@ export const NextStepIf1$outboundSchema: z.ZodType<
89
89
  z.ZodTypeDef,
90
90
  NextStepIf1
91
91
  > = z.union([
92
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
92
+ CelExpression$outboundSchema,
93
93
  JMESPathExpression$outboundSchema.and(
94
94
  z.object({ type: z.literal("jmespath") }),
95
95
  ),
@@ -117,7 +117,7 @@ export const NextStepIf$inboundSchema: z.ZodType<
117
117
  > = z.union([
118
118
  CaseExpression$inboundSchema,
119
119
  z.union([
120
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
120
+ CelExpression$inboundSchema,
121
121
  JMESPathExpression$inboundSchema.and(
122
122
  z.object({ type: z.literal("jmespath") }),
123
123
  ),
@@ -128,7 +128,7 @@ export const NextStepIf$inboundSchema: z.ZodType<
128
128
  /** @internal */
129
129
  export type NextStepIf$Outbound =
130
130
  | CaseExpression$Outbound
131
- | (CelExpression$Outbound & { type: "cel" })
131
+ | CelExpression$Outbound
132
132
  | (JMESPathExpression$Outbound & { type: "jmespath" })
133
133
  | (JMESPathExpression$Outbound & { type: "jp" })
134
134
  | string;
@@ -141,7 +141,7 @@ export const NextStepIf$outboundSchema: z.ZodType<
141
141
  > = z.union([
142
142
  CaseExpression$outboundSchema,
143
143
  z.union([
144
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
144
+ CelExpression$outboundSchema,
145
145
  JMESPathExpression$outboundSchema.and(
146
146
  z.object({ type: z.literal("jmespath") }),
147
147
  ),
@@ -173,7 +173,7 @@ export const NextStep$inboundSchema: z.ZodType<
173
173
  z.union([
174
174
  CaseExpression$inboundSchema,
175
175
  z.union([
176
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
176
+ CelExpression$inboundSchema,
177
177
  JMESPathExpression$inboundSchema.and(
178
178
  z.object({ type: z.literal("jmespath") }),
179
179
  ),
@@ -191,7 +191,7 @@ export const NextStep$inboundSchema: z.ZodType<
191
191
  export type NextStep$Outbound = {
192
192
  if?:
193
193
  | CaseExpression$Outbound
194
- | (CelExpression$Outbound & { type: "cel" })
194
+ | CelExpression$Outbound
195
195
  | (JMESPathExpression$Outbound & { type: "jmespath" })
196
196
  | (JMESPathExpression$Outbound & { type: "jp" })
197
197
  | string
@@ -211,7 +211,7 @@ export const NextStep$outboundSchema: z.ZodType<
211
211
  z.union([
212
212
  CaseExpression$outboundSchema,
213
213
  z.union([
214
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
214
+ CelExpression$outboundSchema,
215
215
  JMESPathExpression$outboundSchema.and(
216
216
  z.object({ type: z.literal("jmespath") }),
217
217
  ),
@@ -26,7 +26,7 @@ import {
26
26
  } from "./jmespathexpression.js";
27
27
 
28
28
  export type SaveActionIf1 =
29
- | (CelExpression & { type: "cel" })
29
+ | CelExpression
30
30
  | (JMESPathExpression & { type: "jmespath" })
31
31
  | (JMESPathExpression & { type: "jp" });
32
32
 
@@ -35,7 +35,7 @@ export type SaveActionIf1 =
35
35
  */
36
36
  export type SaveActionIf =
37
37
  | CaseExpression
38
- | (CelExpression & { type: "cel" })
38
+ | CelExpression
39
39
  | (JMESPathExpression & { type: "jmespath" })
40
40
  | (JMESPathExpression & { type: "jp" })
41
41
  | string;
@@ -46,13 +46,13 @@ export type SaveAction = {
46
46
  */
47
47
  if?:
48
48
  | CaseExpression
49
- | (CelExpression & { type: "cel" })
49
+ | CelExpression
50
50
  | (JMESPathExpression & { type: "jmespath" })
51
51
  | (JMESPathExpression & { type: "jp" })
52
52
  | string
53
53
  | null
54
54
  | undefined;
55
- action?: "save" | undefined;
55
+ action: "save";
56
56
  /**
57
57
  * Target name to save (defaults to global variable).
58
58
  */
@@ -69,7 +69,7 @@ export const SaveActionIf1$inboundSchema: z.ZodType<
69
69
  z.ZodTypeDef,
70
70
  unknown
71
71
  > = z.union([
72
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
72
+ CelExpression$inboundSchema,
73
73
  JMESPathExpression$inboundSchema.and(
74
74
  z.object({ type: z.literal("jmespath") }),
75
75
  ),
@@ -77,7 +77,7 @@ export const SaveActionIf1$inboundSchema: z.ZodType<
77
77
  ]);
78
78
  /** @internal */
79
79
  export type SaveActionIf1$Outbound =
80
- | (CelExpression$Outbound & { type: "cel" })
80
+ | CelExpression$Outbound
81
81
  | (JMESPathExpression$Outbound & { type: "jmespath" })
82
82
  | (JMESPathExpression$Outbound & { type: "jp" });
83
83
 
@@ -87,7 +87,7 @@ export const SaveActionIf1$outboundSchema: z.ZodType<
87
87
  z.ZodTypeDef,
88
88
  SaveActionIf1
89
89
  > = z.union([
90
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
90
+ CelExpression$outboundSchema,
91
91
  JMESPathExpression$outboundSchema.and(
92
92
  z.object({ type: z.literal("jmespath") }),
93
93
  ),
@@ -115,7 +115,7 @@ export const SaveActionIf$inboundSchema: z.ZodType<
115
115
  > = z.union([
116
116
  CaseExpression$inboundSchema,
117
117
  z.union([
118
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
118
+ CelExpression$inboundSchema,
119
119
  JMESPathExpression$inboundSchema.and(
120
120
  z.object({ type: z.literal("jmespath") }),
121
121
  ),
@@ -126,7 +126,7 @@ export const SaveActionIf$inboundSchema: z.ZodType<
126
126
  /** @internal */
127
127
  export type SaveActionIf$Outbound =
128
128
  | CaseExpression$Outbound
129
- | (CelExpression$Outbound & { type: "cel" })
129
+ | CelExpression$Outbound
130
130
  | (JMESPathExpression$Outbound & { type: "jmespath" })
131
131
  | (JMESPathExpression$Outbound & { type: "jp" })
132
132
  | string;
@@ -139,7 +139,7 @@ export const SaveActionIf$outboundSchema: z.ZodType<
139
139
  > = z.union([
140
140
  CaseExpression$outboundSchema,
141
141
  z.union([
142
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
142
+ CelExpression$outboundSchema,
143
143
  JMESPathExpression$outboundSchema.and(
144
144
  z.object({ type: z.literal("jmespath") }),
145
145
  ),
@@ -171,7 +171,7 @@ export const SaveAction$inboundSchema: z.ZodType<
171
171
  z.union([
172
172
  CaseExpression$inboundSchema,
173
173
  z.union([
174
- CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
174
+ CelExpression$inboundSchema,
175
175
  JMESPathExpression$inboundSchema.and(
176
176
  z.object({ type: z.literal("jmespath") }),
177
177
  ),
@@ -182,7 +182,7 @@ export const SaveAction$inboundSchema: z.ZodType<
182
182
  z.string(),
183
183
  ]),
184
184
  ).optional(),
185
- action: z.literal("save").default("save"),
185
+ action: z.literal("save"),
186
186
  name: z.nullable(z.string()).optional(),
187
187
  inputs: z.nullable(z.array(z.string())).optional(),
188
188
  });
@@ -190,7 +190,7 @@ export const SaveAction$inboundSchema: z.ZodType<
190
190
  export type SaveAction$Outbound = {
191
191
  if?:
192
192
  | CaseExpression$Outbound
193
- | (CelExpression$Outbound & { type: "cel" })
193
+ | CelExpression$Outbound
194
194
  | (JMESPathExpression$Outbound & { type: "jmespath" })
195
195
  | (JMESPathExpression$Outbound & { type: "jp" })
196
196
  | string
@@ -211,7 +211,7 @@ export const SaveAction$outboundSchema: z.ZodType<
211
211
  z.union([
212
212
  CaseExpression$outboundSchema,
213
213
  z.union([
214
- CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
214
+ CelExpression$outboundSchema,
215
215
  JMESPathExpression$outboundSchema.and(
216
216
  z.object({ type: z.literal("jmespath") }),
217
217
  ),
@@ -222,7 +222,7 @@ export const SaveAction$outboundSchema: z.ZodType<
222
222
  z.string(),
223
223
  ]),
224
224
  ).optional(),
225
- action: z.literal("save").default("save" as const),
225
+ action: z.literal("save"),
226
226
  name: z.nullable(z.string()).optional(),
227
227
  inputs: z.nullable(z.array(z.string())).optional(),
228
228
  });