syllable-sdk 1.0.13-rc.6 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +390 -966
- package/bin/mcp-server.js.map +20 -20
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +3 -1
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/callaction.d.ts.map +1 -1
- package/models/components/callaction.js +18 -38
- package/models/components/callaction.js.map +1 -1
- package/models/components/conditionaltext.d.ts.map +1 -1
- package/models/components/conditionaltext.js +18 -38
- package/models/components/conditionaltext.js.map +1 -1
- package/models/components/conditionalvalue.d.ts.map +1 -1
- package/models/components/conditionalvalue.js +36 -80
- package/models/components/conditionalvalue.js.map +1 -1
- package/models/components/context.d.ts.map +1 -1
- package/models/components/context.js +48 -140
- package/models/components/context.js.map +1 -1
- package/models/components/eventtaskevents.d.ts.map +1 -1
- package/models/components/eventtaskevents.js +20 -60
- package/models/components/eventtaskevents.js.map +1 -1
- package/models/components/expressiontask.d.ts.map +1 -1
- package/models/components/expressiontask.js +18 -38
- package/models/components/expressiontask.js.map +1 -1
- package/models/components/expressiontaskevents.d.ts.map +1 -1
- package/models/components/expressiontaskevents.js +40 -120
- package/models/components/expressiontaskevents.js.map +1 -1
- package/models/components/incrementaction.d.ts.map +1 -1
- package/models/components/incrementaction.js +18 -38
- package/models/components/incrementaction.js.map +1 -1
- package/models/components/nextstep.d.ts.map +1 -1
- package/models/components/nextstep.js +18 -38
- package/models/components/nextstep.js.map +1 -1
- package/models/components/saveaction.d.ts.map +1 -1
- package/models/components/saveaction.js +18 -38
- package/models/components/saveaction.js.map +1 -1
- package/models/components/sayaction.d.ts.map +1 -1
- package/models/components/sayaction.js +18 -38
- package/models/components/sayaction.js.map +1 -1
- package/models/components/setvalueaction.d.ts.map +1 -1
- package/models/components/setvalueaction.js +36 -76
- package/models/components/setvalueaction.js.map +1 -1
- package/models/components/stepeventactions.d.ts.map +1 -1
- package/models/components/stepeventactions.js +60 -180
- package/models/components/stepeventactions.js.map +1 -1
- package/models/components/variable.d.ts.map +1 -1
- package/models/components/variable.js +18 -38
- package/models/components/variable.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +4 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/callaction.ts +18 -58
- package/src/models/components/conditionaltext.ts +18 -58
- package/src/models/components/conditionalvalue.ts +36 -118
- package/src/models/components/context.ts +48 -188
- package/src/models/components/eventtaskevents.ts +20 -92
- package/src/models/components/expressiontask.ts +18 -58
- package/src/models/components/expressiontaskevents.ts +40 -184
- package/src/models/components/incrementaction.ts +18 -58
- package/src/models/components/nextstep.ts +18 -58
- package/src/models/components/saveaction.ts +18 -58
- package/src/models/components/sayaction.ts +18 -58
- package/src/models/components/setvalueaction.ts +36 -116
- package/src/models/components/stepeventactions.ts +60 -276
- package/src/models/components/variable.ts +18 -58
|
@@ -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("
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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("
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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("
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
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") })
|
|
258
|
-
type: v.type,
|
|
259
|
-
})),
|
|
219
|
+
z.object({ type: z.literal("jp") }),
|
|
260
220
|
),
|
|
261
221
|
]),
|
|
262
222
|
z.string(),
|
|
@@ -82,17 +82,11 @@ export const SayActionIf1$inboundSchema: z.ZodType<
|
|
|
82
82
|
z.ZodTypeDef,
|
|
83
83
|
unknown
|
|
84
84
|
> = z.union([
|
|
85
|
-
CelExpression$inboundSchema.and(
|
|
86
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
87
|
-
),
|
|
88
|
-
JMESPathExpression$inboundSchema.and(
|
|
89
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
90
|
-
type: v.type,
|
|
91
|
-
})),
|
|
92
|
-
),
|
|
85
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
93
86
|
JMESPathExpression$inboundSchema.and(
|
|
94
|
-
z.object({ type: z.literal("
|
|
87
|
+
z.object({ type: z.literal("jmespath") }),
|
|
95
88
|
),
|
|
89
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
96
90
|
]);
|
|
97
91
|
/** @internal */
|
|
98
92
|
export type SayActionIf1$Outbound =
|
|
@@ -106,17 +100,11 @@ export const SayActionIf1$outboundSchema: z.ZodType<
|
|
|
106
100
|
z.ZodTypeDef,
|
|
107
101
|
SayActionIf1
|
|
108
102
|
> = z.union([
|
|
109
|
-
CelExpression$outboundSchema.and(
|
|
110
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
111
|
-
),
|
|
103
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
112
104
|
JMESPathExpression$outboundSchema.and(
|
|
113
|
-
z.object({ type: z.literal("jmespath") })
|
|
114
|
-
type: v.type,
|
|
115
|
-
})),
|
|
116
|
-
),
|
|
117
|
-
JMESPathExpression$outboundSchema.and(
|
|
118
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
105
|
+
z.object({ type: z.literal("jmespath") }),
|
|
119
106
|
),
|
|
107
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
120
108
|
]);
|
|
121
109
|
|
|
122
110
|
export function sayActionIf1ToJSON(sayActionIf1: SayActionIf1): string {
|
|
@@ -140,17 +128,11 @@ export const SayActionIf$inboundSchema: z.ZodType<
|
|
|
140
128
|
> = z.union([
|
|
141
129
|
CaseExpression$inboundSchema,
|
|
142
130
|
z.union([
|
|
143
|
-
CelExpression$inboundSchema.and(
|
|
144
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
145
|
-
),
|
|
131
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
146
132
|
JMESPathExpression$inboundSchema.and(
|
|
147
|
-
z.object({ type: z.literal("jmespath") })
|
|
148
|
-
type: v.type,
|
|
149
|
-
})),
|
|
150
|
-
),
|
|
151
|
-
JMESPathExpression$inboundSchema.and(
|
|
152
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
133
|
+
z.object({ type: z.literal("jmespath") }),
|
|
153
134
|
),
|
|
135
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
154
136
|
]),
|
|
155
137
|
z.string(),
|
|
156
138
|
]);
|
|
@@ -170,17 +152,11 @@ export const SayActionIf$outboundSchema: z.ZodType<
|
|
|
170
152
|
> = z.union([
|
|
171
153
|
CaseExpression$outboundSchema,
|
|
172
154
|
z.union([
|
|
173
|
-
CelExpression$outboundSchema.and(
|
|
174
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
175
|
-
),
|
|
155
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
176
156
|
JMESPathExpression$outboundSchema.and(
|
|
177
|
-
z.object({ type: z.literal("jmespath") })
|
|
178
|
-
type: v.type,
|
|
179
|
-
})),
|
|
180
|
-
),
|
|
181
|
-
JMESPathExpression$outboundSchema.and(
|
|
182
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
157
|
+
z.object({ type: z.literal("jmespath") }),
|
|
183
158
|
),
|
|
159
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
184
160
|
]),
|
|
185
161
|
z.string(),
|
|
186
162
|
]);
|
|
@@ -216,20 +192,12 @@ export const SayAction$inboundSchema: z.ZodType<
|
|
|
216
192
|
z.union([
|
|
217
193
|
CaseExpression$inboundSchema,
|
|
218
194
|
z.union([
|
|
219
|
-
CelExpression$inboundSchema.and(
|
|
220
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
221
|
-
type: v.type,
|
|
222
|
-
})),
|
|
223
|
-
),
|
|
195
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
224
196
|
JMESPathExpression$inboundSchema.and(
|
|
225
|
-
z.object({ type: z.literal("jmespath") })
|
|
226
|
-
type: v.type,
|
|
227
|
-
})),
|
|
197
|
+
z.object({ type: z.literal("jmespath") }),
|
|
228
198
|
),
|
|
229
199
|
JMESPathExpression$inboundSchema.and(
|
|
230
|
-
z.object({ type: z.literal("jp") })
|
|
231
|
-
type: v.type,
|
|
232
|
-
})),
|
|
200
|
+
z.object({ type: z.literal("jp") }),
|
|
233
201
|
),
|
|
234
202
|
]),
|
|
235
203
|
z.string(),
|
|
@@ -264,20 +232,12 @@ export const SayAction$outboundSchema: z.ZodType<
|
|
|
264
232
|
z.union([
|
|
265
233
|
CaseExpression$outboundSchema,
|
|
266
234
|
z.union([
|
|
267
|
-
CelExpression$outboundSchema.and(
|
|
268
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
269
|
-
type: v.type,
|
|
270
|
-
})),
|
|
271
|
-
),
|
|
235
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
272
236
|
JMESPathExpression$outboundSchema.and(
|
|
273
|
-
z.object({ type: z.literal("jmespath") })
|
|
274
|
-
type: v.type,
|
|
275
|
-
})),
|
|
237
|
+
z.object({ type: z.literal("jmespath") }),
|
|
276
238
|
),
|
|
277
239
|
JMESPathExpression$outboundSchema.and(
|
|
278
|
-
z.object({ type: z.literal("jp") })
|
|
279
|
-
type: v.type,
|
|
280
|
-
})),
|
|
240
|
+
z.object({ type: z.literal("jp") }),
|
|
281
241
|
),
|
|
282
242
|
]),
|
|
283
243
|
z.string(),
|