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.
- package/bin/mcp-server.js +398 -970
- package/bin/mcp-server.js.map +21 -21
- 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/session.d.ts +5 -0
- package/models/components/session.d.ts.map +1 -1
- package/models/components/session.js +4 -0
- package/models/components/session.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/openapi.json +12 -0
- 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/session.ts +9 -0
- package/src/models/components/setvalueaction.ts +36 -116
- package/src/models/components/stepeventactions.ts +60 -276
- package/src/models/components/variable.ts +18 -58
|
@@ -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(),
|
|
@@ -92,6 +92,10 @@ export type Session = {
|
|
|
92
92
|
* Whether the session is a test session
|
|
93
93
|
*/
|
|
94
94
|
isTest?: boolean | null | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the voice session was ended by the recipient (outbound) / caller (inbound). False if the user was transferred or there was an error. Unset if the session was not a voice session.
|
|
97
|
+
*/
|
|
98
|
+
userTerminated?: boolean | null | undefined;
|
|
95
99
|
};
|
|
96
100
|
|
|
97
101
|
/** @internal */
|
|
@@ -119,6 +123,7 @@ export const Session$inboundSchema: z.ZodType<Session, z.ZodTypeDef, unknown> =
|
|
|
119
123
|
target: z.nullable(z.string()).optional(),
|
|
120
124
|
is_legacy: z.nullable(z.boolean()).optional(),
|
|
121
125
|
is_test: z.nullable(z.boolean()).optional(),
|
|
126
|
+
user_terminated: z.nullable(z.boolean()).optional(),
|
|
122
127
|
}).transform((v) => {
|
|
123
128
|
return remap$(v, {
|
|
124
129
|
"session_id": "sessionId",
|
|
@@ -137,6 +142,7 @@ export const Session$inboundSchema: z.ZodType<Session, z.ZodTypeDef, unknown> =
|
|
|
137
142
|
"session_label_id": "sessionLabelId",
|
|
138
143
|
"is_legacy": "isLegacy",
|
|
139
144
|
"is_test": "isTest",
|
|
145
|
+
"user_terminated": "userTerminated",
|
|
140
146
|
});
|
|
141
147
|
});
|
|
142
148
|
/** @internal */
|
|
@@ -161,6 +167,7 @@ export type Session$Outbound = {
|
|
|
161
167
|
target?: string | null | undefined;
|
|
162
168
|
is_legacy?: boolean | null | undefined;
|
|
163
169
|
is_test?: boolean | null | undefined;
|
|
170
|
+
user_terminated?: boolean | null | undefined;
|
|
164
171
|
};
|
|
165
172
|
|
|
166
173
|
/** @internal */
|
|
@@ -189,6 +196,7 @@ export const Session$outboundSchema: z.ZodType<
|
|
|
189
196
|
target: z.nullable(z.string()).optional(),
|
|
190
197
|
isLegacy: z.nullable(z.boolean()).optional(),
|
|
191
198
|
isTest: z.nullable(z.boolean()).optional(),
|
|
199
|
+
userTerminated: z.nullable(z.boolean()).optional(),
|
|
192
200
|
}).transform((v) => {
|
|
193
201
|
return remap$(v, {
|
|
194
202
|
sessionId: "session_id",
|
|
@@ -207,6 +215,7 @@ export const Session$outboundSchema: z.ZodType<
|
|
|
207
215
|
sessionLabelId: "session_label_id",
|
|
208
216
|
isLegacy: "is_legacy",
|
|
209
217
|
isTest: "is_test",
|
|
218
|
+
userTerminated: "user_terminated",
|
|
210
219
|
});
|
|
211
220
|
});
|
|
212
221
|
|
|
@@ -96,17 +96,11 @@ export const SetValueActionValueFrom1$inboundSchema: z.ZodType<
|
|
|
96
96
|
z.ZodTypeDef,
|
|
97
97
|
unknown
|
|
98
98
|
> = z.union([
|
|
99
|
-
CelExpression$inboundSchema.and(
|
|
100
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
101
|
-
),
|
|
102
|
-
JMESPathExpression$inboundSchema.and(
|
|
103
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
104
|
-
type: v.type,
|
|
105
|
-
})),
|
|
106
|
-
),
|
|
99
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
107
100
|
JMESPathExpression$inboundSchema.and(
|
|
108
|
-
z.object({ type: z.literal("
|
|
101
|
+
z.object({ type: z.literal("jmespath") }),
|
|
109
102
|
),
|
|
103
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
110
104
|
]);
|
|
111
105
|
/** @internal */
|
|
112
106
|
export type SetValueActionValueFrom1$Outbound =
|
|
@@ -120,17 +114,11 @@ export const SetValueActionValueFrom1$outboundSchema: z.ZodType<
|
|
|
120
114
|
z.ZodTypeDef,
|
|
121
115
|
SetValueActionValueFrom1
|
|
122
116
|
> = z.union([
|
|
123
|
-
CelExpression$outboundSchema.and(
|
|
124
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
125
|
-
),
|
|
117
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
126
118
|
JMESPathExpression$outboundSchema.and(
|
|
127
|
-
z.object({ type: z.literal("jmespath") })
|
|
128
|
-
type: v.type,
|
|
129
|
-
})),
|
|
130
|
-
),
|
|
131
|
-
JMESPathExpression$outboundSchema.and(
|
|
132
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
119
|
+
z.object({ type: z.literal("jmespath") }),
|
|
133
120
|
),
|
|
121
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
134
122
|
]);
|
|
135
123
|
|
|
136
124
|
export function setValueActionValueFrom1ToJSON(
|
|
@@ -158,17 +146,11 @@ export const SetValueActionValueFrom$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") })
|
|
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 SetValueActionValueFrom$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") })
|
|
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
|
]);
|
|
@@ -226,17 +202,11 @@ export const SetValueActionIf1$inboundSchema: z.ZodType<
|
|
|
226
202
|
z.ZodTypeDef,
|
|
227
203
|
unknown
|
|
228
204
|
> = z.union([
|
|
229
|
-
CelExpression$inboundSchema.and(
|
|
230
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
231
|
-
),
|
|
232
|
-
JMESPathExpression$inboundSchema.and(
|
|
233
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
234
|
-
type: v.type,
|
|
235
|
-
})),
|
|
236
|
-
),
|
|
205
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
237
206
|
JMESPathExpression$inboundSchema.and(
|
|
238
|
-
z.object({ type: z.literal("
|
|
207
|
+
z.object({ type: z.literal("jmespath") }),
|
|
239
208
|
),
|
|
209
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
240
210
|
]);
|
|
241
211
|
/** @internal */
|
|
242
212
|
export type SetValueActionIf1$Outbound =
|
|
@@ -250,17 +220,11 @@ export const SetValueActionIf1$outboundSchema: z.ZodType<
|
|
|
250
220
|
z.ZodTypeDef,
|
|
251
221
|
SetValueActionIf1
|
|
252
222
|
> = z.union([
|
|
253
|
-
CelExpression$outboundSchema.and(
|
|
254
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
255
|
-
),
|
|
256
|
-
JMESPathExpression$outboundSchema.and(
|
|
257
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
258
|
-
type: v.type,
|
|
259
|
-
})),
|
|
260
|
-
),
|
|
223
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
261
224
|
JMESPathExpression$outboundSchema.and(
|
|
262
|
-
z.object({ type: z.literal("
|
|
225
|
+
z.object({ type: z.literal("jmespath") }),
|
|
263
226
|
),
|
|
227
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
264
228
|
]);
|
|
265
229
|
|
|
266
230
|
export function setValueActionIf1ToJSON(
|
|
@@ -288,17 +252,11 @@ export const SetValueActionIf$inboundSchema: z.ZodType<
|
|
|
288
252
|
> = z.union([
|
|
289
253
|
CaseExpression$inboundSchema,
|
|
290
254
|
z.union([
|
|
291
|
-
CelExpression$inboundSchema.and(
|
|
292
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
293
|
-
),
|
|
294
|
-
JMESPathExpression$inboundSchema.and(
|
|
295
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
296
|
-
type: v.type,
|
|
297
|
-
})),
|
|
298
|
-
),
|
|
255
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
299
256
|
JMESPathExpression$inboundSchema.and(
|
|
300
|
-
z.object({ type: z.literal("
|
|
257
|
+
z.object({ type: z.literal("jmespath") }),
|
|
301
258
|
),
|
|
259
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
302
260
|
]),
|
|
303
261
|
z.string(),
|
|
304
262
|
]);
|
|
@@ -318,17 +276,11 @@ export const SetValueActionIf$outboundSchema: z.ZodType<
|
|
|
318
276
|
> = z.union([
|
|
319
277
|
CaseExpression$outboundSchema,
|
|
320
278
|
z.union([
|
|
321
|
-
CelExpression$outboundSchema.and(
|
|
322
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
323
|
-
),
|
|
324
|
-
JMESPathExpression$outboundSchema.and(
|
|
325
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
326
|
-
type: v.type,
|
|
327
|
-
})),
|
|
328
|
-
),
|
|
279
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
329
280
|
JMESPathExpression$outboundSchema.and(
|
|
330
|
-
z.object({ type: z.literal("
|
|
281
|
+
z.object({ type: z.literal("jmespath") }),
|
|
331
282
|
),
|
|
283
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
332
284
|
]),
|
|
333
285
|
z.string(),
|
|
334
286
|
]);
|
|
@@ -361,20 +313,12 @@ export const SetValueAction$inboundSchema: z.ZodType<
|
|
|
361
313
|
z.union([
|
|
362
314
|
CaseExpression$inboundSchema,
|
|
363
315
|
z.union([
|
|
364
|
-
CelExpression$inboundSchema.and(
|
|
365
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
366
|
-
type: v.type,
|
|
367
|
-
})),
|
|
368
|
-
),
|
|
316
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
369
317
|
JMESPathExpression$inboundSchema.and(
|
|
370
|
-
z.object({ type: z.literal("jmespath") })
|
|
371
|
-
type: v.type,
|
|
372
|
-
})),
|
|
318
|
+
z.object({ type: z.literal("jmespath") }),
|
|
373
319
|
),
|
|
374
320
|
JMESPathExpression$inboundSchema.and(
|
|
375
|
-
z.object({ type: z.literal("jp") })
|
|
376
|
-
type: v.type,
|
|
377
|
-
})),
|
|
321
|
+
z.object({ type: z.literal("jp") }),
|
|
378
322
|
),
|
|
379
323
|
]),
|
|
380
324
|
z.string(),
|
|
@@ -384,20 +328,12 @@ export const SetValueAction$inboundSchema: z.ZodType<
|
|
|
384
328
|
z.union([
|
|
385
329
|
CaseExpression$inboundSchema,
|
|
386
330
|
z.union([
|
|
387
|
-
CelExpression$inboundSchema.and(
|
|
388
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
389
|
-
type: v.type,
|
|
390
|
-
})),
|
|
391
|
-
),
|
|
331
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
392
332
|
JMESPathExpression$inboundSchema.and(
|
|
393
|
-
z.object({ type: z.literal("jmespath") })
|
|
394
|
-
type: v.type,
|
|
395
|
-
})),
|
|
333
|
+
z.object({ type: z.literal("jmespath") }),
|
|
396
334
|
),
|
|
397
335
|
JMESPathExpression$inboundSchema.and(
|
|
398
|
-
z.object({ type: z.literal("jp") })
|
|
399
|
-
type: v.type,
|
|
400
|
-
})),
|
|
336
|
+
z.object({ type: z.literal("jp") }),
|
|
401
337
|
),
|
|
402
338
|
]),
|
|
403
339
|
z.string(),
|
|
@@ -444,20 +380,12 @@ export const SetValueAction$outboundSchema: z.ZodType<
|
|
|
444
380
|
z.union([
|
|
445
381
|
CaseExpression$outboundSchema,
|
|
446
382
|
z.union([
|
|
447
|
-
CelExpression$outboundSchema.and(
|
|
448
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
449
|
-
type: v.type,
|
|
450
|
-
})),
|
|
451
|
-
),
|
|
383
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
452
384
|
JMESPathExpression$outboundSchema.and(
|
|
453
|
-
z.object({ type: z.literal("jmespath") })
|
|
454
|
-
type: v.type,
|
|
455
|
-
})),
|
|
385
|
+
z.object({ type: z.literal("jmespath") }),
|
|
456
386
|
),
|
|
457
387
|
JMESPathExpression$outboundSchema.and(
|
|
458
|
-
z.object({ type: z.literal("jp") })
|
|
459
|
-
type: v.type,
|
|
460
|
-
})),
|
|
388
|
+
z.object({ type: z.literal("jp") }),
|
|
461
389
|
),
|
|
462
390
|
]),
|
|
463
391
|
z.string(),
|
|
@@ -467,20 +395,12 @@ export const SetValueAction$outboundSchema: z.ZodType<
|
|
|
467
395
|
z.union([
|
|
468
396
|
CaseExpression$outboundSchema,
|
|
469
397
|
z.union([
|
|
470
|
-
CelExpression$outboundSchema.and(
|
|
471
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
472
|
-
type: v.type,
|
|
473
|
-
})),
|
|
474
|
-
),
|
|
398
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
475
399
|
JMESPathExpression$outboundSchema.and(
|
|
476
|
-
z.object({ type: z.literal("jmespath") })
|
|
477
|
-
type: v.type,
|
|
478
|
-
})),
|
|
400
|
+
z.object({ type: z.literal("jmespath") }),
|
|
479
401
|
),
|
|
480
402
|
JMESPathExpression$outboundSchema.and(
|
|
481
|
-
z.object({ type: z.literal("jp") })
|
|
482
|
-
type: v.type,
|
|
483
|
-
})),
|
|
403
|
+
z.object({ type: z.literal("jp") }),
|
|
484
404
|
),
|
|
485
405
|
]),
|
|
486
406
|
z.string(),
|