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.
- package/README.md +7 -0
- package/bin/mcp-server.js +1704 -1950
- package/bin/mcp-server.js.map +34 -26
- package/examples/package-lock.json +1 -1
- package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts +19 -0
- package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
- package/funcs/conversationConfigGetBridgePhrasesConfig.js +123 -0
- package/funcs/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts +19 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.js +126 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
- package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +1 -1
- package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -1
- package/funcs/pronunciationsPronunciationsGetMetadata.js +1 -1
- package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts +8 -0
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js +64 -0
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts +8 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js +64 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
- package/models/components/bridgephrasesconfig.d.ts +39 -0
- package/models/components/bridgephrasesconfig.d.ts.map +1 -0
- package/models/components/bridgephrasesconfig.js +80 -0
- package/models/components/bridgephrasesconfig.js.map +1 -0
- 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/index.d.ts +3 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -1
- package/models/components/index.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/pronunciationoverridesdictionary.d.ts +3 -3
- package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -1
- package/models/components/pronunciationoverridesdictionary.js +3 -3
- package/models/components/pronunciationoverridesdictionary.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/schemascortexv1bridgephrasesdictionarymetadata.d.ts +33 -0
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts.map +1 -0
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js +62 -0
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js.map +1 -0
- package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts +24 -0
- package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts.map +1 -0
- package/models/components/{dictionarymetadata.js → schemasttsv1pronunciationsdictionarymetadata.js} +10 -10
- package/models/components/schemasttsv1pronunciationsdictionarymetadata.js.map +1 -0
- 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/models/operations/getbridgephrasesconfig.d.ts +25 -0
- package/models/operations/getbridgephrasesconfig.d.ts.map +1 -0
- package/models/operations/getbridgephrasesconfig.js +71 -0
- package/models/operations/getbridgephrasesconfig.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updatebridgephrasesconfig.d.ts +28 -0
- package/models/operations/updatebridgephrasesconfig.d.ts.map +1 -0
- package/models/operations/updatebridgephrasesconfig.js +76 -0
- package/models/operations/updatebridgephrasesconfig.js.map +1 -0
- package/openapi.json +290 -60
- package/package.json +1 -1
- package/sdk/conversationconfig.d.ts +20 -0
- package/sdk/conversationconfig.d.ts.map +1 -0
- package/sdk/conversationconfig.js +32 -0
- package/sdk/conversationconfig.js.map +1 -0
- package/sdk/pronunciations.d.ts +1 -1
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/conversationConfigGetBridgePhrasesConfig.ts +176 -0
- package/src/funcs/conversationConfigUpdateBridgePhrasesConfig.ts +179 -0
- package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +7 -4
- 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 +5 -1
- package/src/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.ts +39 -0
- package/src/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.ts +39 -0
- package/src/models/components/bridgephrasesconfig.ts +101 -0
- 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/index.ts +3 -1
- package/src/models/components/nextstep.ts +18 -58
- package/src/models/components/pronunciationoverridesdictionary.ts +10 -10
- package/src/models/components/saveaction.ts +18 -58
- package/src/models/components/sayaction.ts +18 -58
- package/src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts +82 -0
- package/src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts +73 -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
- package/src/models/operations/getbridgephrasesconfig.ts +74 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/updatebridgephrasesconfig.ts +81 -0
- package/src/sdk/conversationconfig.ts +46 -0
- package/src/sdk/pronunciations.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/models/components/dictionarymetadata.d.ts +0 -24
- package/models/components/dictionarymetadata.d.ts.map +0 -1
- package/models/components/dictionarymetadata.js.map +0 -1
- package/src/models/components/dictionarymetadata.ts +0 -62
|
@@ -86,31 +86,11 @@ export type ExpressionTaskEvents = {
|
|
|
86
86
|
/** @internal */
|
|
87
87
|
export const Start$inboundSchema: z.ZodType<Start, z.ZodTypeDef, unknown> = z
|
|
88
88
|
.union([
|
|
89
|
-
CallAction$inboundSchema.and(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
),
|
|
94
|
-
IncrementAction$inboundSchema.and(
|
|
95
|
-
z.object({ action: z.literal("inc") }).transform((v) => ({
|
|
96
|
-
action: v.action,
|
|
97
|
-
})),
|
|
98
|
-
),
|
|
99
|
-
SayAction$inboundSchema.and(
|
|
100
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
101
|
-
action: v.action,
|
|
102
|
-
})),
|
|
103
|
-
),
|
|
104
|
-
SetValueAction$inboundSchema.and(
|
|
105
|
-
z.object({ action: z.literal("set") }).transform((v) => ({
|
|
106
|
-
action: v.action,
|
|
107
|
-
})),
|
|
108
|
-
),
|
|
109
|
-
SaveAction$inboundSchema.and(
|
|
110
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
111
|
-
action: v.action,
|
|
112
|
-
})),
|
|
113
|
-
),
|
|
89
|
+
CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
|
|
90
|
+
IncrementAction$inboundSchema.and(z.object({ action: z.literal("inc") })),
|
|
91
|
+
SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
|
|
92
|
+
SetValueAction$inboundSchema.and(z.object({ action: z.literal("set") })),
|
|
93
|
+
SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
|
|
114
94
|
]);
|
|
115
95
|
/** @internal */
|
|
116
96
|
export type Start$Outbound =
|
|
@@ -126,31 +106,11 @@ export const Start$outboundSchema: z.ZodType<
|
|
|
126
106
|
z.ZodTypeDef,
|
|
127
107
|
Start
|
|
128
108
|
> = z.union([
|
|
129
|
-
CallAction$outboundSchema.and(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
),
|
|
134
|
-
IncrementAction$outboundSchema.and(
|
|
135
|
-
z.object({ action: z.literal("inc") }).transform((v) => ({
|
|
136
|
-
action: v.action,
|
|
137
|
-
})),
|
|
138
|
-
),
|
|
139
|
-
SayAction$outboundSchema.and(
|
|
140
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
141
|
-
action: v.action,
|
|
142
|
-
})),
|
|
143
|
-
),
|
|
144
|
-
SetValueAction$outboundSchema.and(
|
|
145
|
-
z.object({ action: z.literal("set") }).transform((v) => ({
|
|
146
|
-
action: v.action,
|
|
147
|
-
})),
|
|
148
|
-
),
|
|
149
|
-
SaveAction$outboundSchema.and(
|
|
150
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
151
|
-
action: v.action,
|
|
152
|
-
})),
|
|
153
|
-
),
|
|
109
|
+
CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
|
|
110
|
+
IncrementAction$outboundSchema.and(z.object({ action: z.literal("inc") })),
|
|
111
|
+
SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
|
|
112
|
+
SetValueAction$outboundSchema.and(z.object({ action: z.literal("set") })),
|
|
113
|
+
SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
|
|
154
114
|
]);
|
|
155
115
|
|
|
156
116
|
export function startToJSON(start: Start): string {
|
|
@@ -169,31 +129,11 @@ export function startFromJSON(
|
|
|
169
129
|
/** @internal */
|
|
170
130
|
export const Submit$inboundSchema: z.ZodType<Submit, z.ZodTypeDef, unknown> = z
|
|
171
131
|
.union([
|
|
172
|
-
CallAction$inboundSchema.and(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
),
|
|
177
|
-
IncrementAction$inboundSchema.and(
|
|
178
|
-
z.object({ action: z.literal("inc") }).transform((v) => ({
|
|
179
|
-
action: v.action,
|
|
180
|
-
})),
|
|
181
|
-
),
|
|
182
|
-
SayAction$inboundSchema.and(
|
|
183
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
184
|
-
action: v.action,
|
|
185
|
-
})),
|
|
186
|
-
),
|
|
187
|
-
SetValueAction$inboundSchema.and(
|
|
188
|
-
z.object({ action: z.literal("set") }).transform((v) => ({
|
|
189
|
-
action: v.action,
|
|
190
|
-
})),
|
|
191
|
-
),
|
|
192
|
-
SaveAction$inboundSchema.and(
|
|
193
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
194
|
-
action: v.action,
|
|
195
|
-
})),
|
|
196
|
-
),
|
|
132
|
+
CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
|
|
133
|
+
IncrementAction$inboundSchema.and(z.object({ action: z.literal("inc") })),
|
|
134
|
+
SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
|
|
135
|
+
SetValueAction$inboundSchema.and(z.object({ action: z.literal("set") })),
|
|
136
|
+
SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
|
|
197
137
|
]);
|
|
198
138
|
/** @internal */
|
|
199
139
|
export type Submit$Outbound =
|
|
@@ -209,31 +149,11 @@ export const Submit$outboundSchema: z.ZodType<
|
|
|
209
149
|
z.ZodTypeDef,
|
|
210
150
|
Submit
|
|
211
151
|
> = z.union([
|
|
212
|
-
CallAction$outboundSchema.and(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
),
|
|
217
|
-
IncrementAction$outboundSchema.and(
|
|
218
|
-
z.object({ action: z.literal("inc") }).transform((v) => ({
|
|
219
|
-
action: v.action,
|
|
220
|
-
})),
|
|
221
|
-
),
|
|
222
|
-
SayAction$outboundSchema.and(
|
|
223
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
224
|
-
action: v.action,
|
|
225
|
-
})),
|
|
226
|
-
),
|
|
227
|
-
SetValueAction$outboundSchema.and(
|
|
228
|
-
z.object({ action: z.literal("set") }).transform((v) => ({
|
|
229
|
-
action: v.action,
|
|
230
|
-
})),
|
|
231
|
-
),
|
|
232
|
-
SaveAction$outboundSchema.and(
|
|
233
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
234
|
-
action: v.action,
|
|
235
|
-
})),
|
|
236
|
-
),
|
|
152
|
+
CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
|
|
153
|
+
IncrementAction$outboundSchema.and(z.object({ action: z.literal("inc") })),
|
|
154
|
+
SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
|
|
155
|
+
SetValueAction$outboundSchema.and(z.object({ action: z.literal("set") })),
|
|
156
|
+
SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
|
|
237
157
|
]);
|
|
238
158
|
|
|
239
159
|
export function submitToJSON(submit: Submit): string {
|
|
@@ -258,62 +178,30 @@ export const ExpressionTaskEvents$inboundSchema: z.ZodType<
|
|
|
258
178
|
start: z.nullable(
|
|
259
179
|
z.array(
|
|
260
180
|
z.union([
|
|
261
|
-
CallAction$inboundSchema.and(
|
|
262
|
-
z.object({ action: z.literal("call") }).transform((v) => ({
|
|
263
|
-
action: v.action,
|
|
264
|
-
})),
|
|
265
|
-
),
|
|
181
|
+
CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
|
|
266
182
|
IncrementAction$inboundSchema.and(
|
|
267
|
-
z.object({ action: z.literal("inc") })
|
|
268
|
-
action: v.action,
|
|
269
|
-
})),
|
|
270
|
-
),
|
|
271
|
-
SayAction$inboundSchema.and(
|
|
272
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
273
|
-
action: v.action,
|
|
274
|
-
})),
|
|
183
|
+
z.object({ action: z.literal("inc") }),
|
|
275
184
|
),
|
|
185
|
+
SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
|
|
276
186
|
SetValueAction$inboundSchema.and(
|
|
277
|
-
z.object({ action: z.literal("set") })
|
|
278
|
-
action: v.action,
|
|
279
|
-
})),
|
|
280
|
-
),
|
|
281
|
-
SaveAction$inboundSchema.and(
|
|
282
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
283
|
-
action: v.action,
|
|
284
|
-
})),
|
|
187
|
+
z.object({ action: z.literal("set") }),
|
|
285
188
|
),
|
|
189
|
+
SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
|
|
286
190
|
]),
|
|
287
191
|
),
|
|
288
192
|
).optional(),
|
|
289
193
|
submit: z.nullable(
|
|
290
194
|
z.array(
|
|
291
195
|
z.union([
|
|
292
|
-
CallAction$inboundSchema.and(
|
|
293
|
-
z.object({ action: z.literal("call") }).transform((v) => ({
|
|
294
|
-
action: v.action,
|
|
295
|
-
})),
|
|
296
|
-
),
|
|
196
|
+
CallAction$inboundSchema.and(z.object({ action: z.literal("call") })),
|
|
297
197
|
IncrementAction$inboundSchema.and(
|
|
298
|
-
z.object({ action: z.literal("inc") })
|
|
299
|
-
action: v.action,
|
|
300
|
-
})),
|
|
301
|
-
),
|
|
302
|
-
SayAction$inboundSchema.and(
|
|
303
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
304
|
-
action: v.action,
|
|
305
|
-
})),
|
|
198
|
+
z.object({ action: z.literal("inc") }),
|
|
306
199
|
),
|
|
200
|
+
SayAction$inboundSchema.and(z.object({ action: z.literal("say") })),
|
|
307
201
|
SetValueAction$inboundSchema.and(
|
|
308
|
-
z.object({ action: z.literal("set") })
|
|
309
|
-
action: v.action,
|
|
310
|
-
})),
|
|
311
|
-
),
|
|
312
|
-
SaveAction$inboundSchema.and(
|
|
313
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
314
|
-
action: v.action,
|
|
315
|
-
})),
|
|
202
|
+
z.object({ action: z.literal("set") }),
|
|
316
203
|
),
|
|
204
|
+
SaveAction$inboundSchema.and(z.object({ action: z.literal("save") })),
|
|
317
205
|
]),
|
|
318
206
|
),
|
|
319
207
|
).optional(),
|
|
@@ -351,62 +239,30 @@ export const ExpressionTaskEvents$outboundSchema: z.ZodType<
|
|
|
351
239
|
start: z.nullable(
|
|
352
240
|
z.array(
|
|
353
241
|
z.union([
|
|
354
|
-
CallAction$outboundSchema.and(
|
|
355
|
-
z.object({ action: z.literal("call") }).transform((v) => ({
|
|
356
|
-
action: v.action,
|
|
357
|
-
})),
|
|
358
|
-
),
|
|
242
|
+
CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
|
|
359
243
|
IncrementAction$outboundSchema.and(
|
|
360
|
-
z.object({ action: z.literal("inc") })
|
|
361
|
-
action: v.action,
|
|
362
|
-
})),
|
|
363
|
-
),
|
|
364
|
-
SayAction$outboundSchema.and(
|
|
365
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
366
|
-
action: v.action,
|
|
367
|
-
})),
|
|
244
|
+
z.object({ action: z.literal("inc") }),
|
|
368
245
|
),
|
|
246
|
+
SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
|
|
369
247
|
SetValueAction$outboundSchema.and(
|
|
370
|
-
z.object({ action: z.literal("set") })
|
|
371
|
-
action: v.action,
|
|
372
|
-
})),
|
|
373
|
-
),
|
|
374
|
-
SaveAction$outboundSchema.and(
|
|
375
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
376
|
-
action: v.action,
|
|
377
|
-
})),
|
|
248
|
+
z.object({ action: z.literal("set") }),
|
|
378
249
|
),
|
|
250
|
+
SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
|
|
379
251
|
]),
|
|
380
252
|
),
|
|
381
253
|
).optional(),
|
|
382
254
|
submit: z.nullable(
|
|
383
255
|
z.array(
|
|
384
256
|
z.union([
|
|
385
|
-
CallAction$outboundSchema.and(
|
|
386
|
-
z.object({ action: z.literal("call") }).transform((v) => ({
|
|
387
|
-
action: v.action,
|
|
388
|
-
})),
|
|
389
|
-
),
|
|
257
|
+
CallAction$outboundSchema.and(z.object({ action: z.literal("call") })),
|
|
390
258
|
IncrementAction$outboundSchema.and(
|
|
391
|
-
z.object({ action: z.literal("inc") })
|
|
392
|
-
action: v.action,
|
|
393
|
-
})),
|
|
394
|
-
),
|
|
395
|
-
SayAction$outboundSchema.and(
|
|
396
|
-
z.object({ action: z.literal("say") }).transform((v) => ({
|
|
397
|
-
action: v.action,
|
|
398
|
-
})),
|
|
259
|
+
z.object({ action: z.literal("inc") }),
|
|
399
260
|
),
|
|
261
|
+
SayAction$outboundSchema.and(z.object({ action: z.literal("say") })),
|
|
400
262
|
SetValueAction$outboundSchema.and(
|
|
401
|
-
z.object({ action: z.literal("set") })
|
|
402
|
-
action: v.action,
|
|
403
|
-
})),
|
|
404
|
-
),
|
|
405
|
-
SaveAction$outboundSchema.and(
|
|
406
|
-
z.object({ action: z.literal("save") }).transform((v) => ({
|
|
407
|
-
action: v.action,
|
|
408
|
-
})),
|
|
263
|
+
z.object({ action: z.literal("set") }),
|
|
409
264
|
),
|
|
265
|
+
SaveAction$outboundSchema.and(z.object({ action: z.literal("save") })),
|
|
410
266
|
]),
|
|
411
267
|
),
|
|
412
268
|
).optional(),
|
|
@@ -69,17 +69,11 @@ export const IncrementActionIf1$inboundSchema: z.ZodType<
|
|
|
69
69
|
z.ZodTypeDef,
|
|
70
70
|
unknown
|
|
71
71
|
> = z.union([
|
|
72
|
-
CelExpression$inboundSchema.and(
|
|
73
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
74
|
-
),
|
|
75
|
-
JMESPathExpression$inboundSchema.and(
|
|
76
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
77
|
-
type: v.type,
|
|
78
|
-
})),
|
|
79
|
-
),
|
|
72
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
80
73
|
JMESPathExpression$inboundSchema.and(
|
|
81
|
-
z.object({ type: z.literal("
|
|
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(),
|
|
@@ -29,6 +29,7 @@ export * from "./bodyorganizationsupdate.js";
|
|
|
29
29
|
export * from "./bodyoutboundbatchdelete.js";
|
|
30
30
|
export * from "./bodyoutboundbatchupload.js";
|
|
31
31
|
export * from "./bodypronunciationsuploadcsv.js";
|
|
32
|
+
export * from "./bridgephrasesconfig.js";
|
|
32
33
|
export * from "./callaction.js";
|
|
33
34
|
export * from "./campaignproperties.js";
|
|
34
35
|
export * from "./caseexpression.js";
|
|
@@ -74,7 +75,6 @@ export * from "./daysofweek.js";
|
|
|
74
75
|
export * from "./dialogmessage.js";
|
|
75
76
|
export * from "./dialogrole.js";
|
|
76
77
|
export * from "./dialogtoolcall.js";
|
|
77
|
-
export * from "./dictionarymetadata.js";
|
|
78
78
|
export * from "./directoryextension.js";
|
|
79
79
|
export * from "./directoryextensionnumber.js";
|
|
80
80
|
export * from "./directorymember.js";
|
|
@@ -188,6 +188,8 @@ export * from "./roleresponse.js";
|
|
|
188
188
|
export * from "./roleupdaterequest.js";
|
|
189
189
|
export * from "./saveaction.js";
|
|
190
190
|
export * from "./sayaction.js";
|
|
191
|
+
export * from "./schemascortexv1bridgephrasesdictionarymetadata.js";
|
|
192
|
+
export * from "./schemasttsv1pronunciationsdictionarymetadata.js";
|
|
191
193
|
export * from "./security.js";
|
|
192
194
|
export * from "./servicecreaterequest.js";
|
|
193
195
|
export * from "./serviceproperties.js";
|
|
@@ -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(),
|
|
@@ -6,18 +6,18 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
DictionaryMetadata,
|
|
11
|
-
DictionaryMetadata$inboundSchema,
|
|
12
|
-
DictionaryMetadata$Outbound,
|
|
13
|
-
DictionaryMetadata$outboundSchema,
|
|
14
|
-
} from "./dictionarymetadata.js";
|
|
15
9
|
import {
|
|
16
10
|
PronunciationOverride,
|
|
17
11
|
PronunciationOverride$inboundSchema,
|
|
18
12
|
PronunciationOverride$Outbound,
|
|
19
13
|
PronunciationOverride$outboundSchema,
|
|
20
14
|
} from "./pronunciationoverride.js";
|
|
15
|
+
import {
|
|
16
|
+
SchemasTtsV1PronunciationsDictionaryMetadata,
|
|
17
|
+
SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema,
|
|
18
|
+
SchemasTtsV1PronunciationsDictionaryMetadata$Outbound,
|
|
19
|
+
SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema,
|
|
20
|
+
} from "./schemasttsv1pronunciationsdictionarymetadata.js";
|
|
21
21
|
import {
|
|
22
22
|
VoiceDisplayInfo,
|
|
23
23
|
VoiceDisplayInfo$inboundSchema,
|
|
@@ -55,7 +55,7 @@ export type PronunciationOverridesDictionary = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Audit metadata associated with a dictionary.
|
|
57
57
|
*/
|
|
58
|
-
metadata:
|
|
58
|
+
metadata: SchemasTtsV1PronunciationsDictionaryMetadata;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
@@ -67,14 +67,14 @@ export const PronunciationOverridesDictionary$inboundSchema: z.ZodType<
|
|
|
67
67
|
type: z.string().default("pronunciations_v1"),
|
|
68
68
|
pronunciations: z.array(PronunciationOverride$inboundSchema),
|
|
69
69
|
voices: z.record(VoiceDisplayInfo$inboundSchema).optional(),
|
|
70
|
-
metadata:
|
|
70
|
+
metadata: SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema,
|
|
71
71
|
});
|
|
72
72
|
/** @internal */
|
|
73
73
|
export type PronunciationOverridesDictionary$Outbound = {
|
|
74
74
|
type: string;
|
|
75
75
|
pronunciations: Array<PronunciationOverride$Outbound>;
|
|
76
76
|
voices?: { [k: string]: VoiceDisplayInfo$Outbound } | undefined;
|
|
77
|
-
metadata:
|
|
77
|
+
metadata: SchemasTtsV1PronunciationsDictionaryMetadata$Outbound;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** @internal */
|
|
@@ -86,7 +86,7 @@ export const PronunciationOverridesDictionary$outboundSchema: z.ZodType<
|
|
|
86
86
|
type: z.string().default("pronunciations_v1"),
|
|
87
87
|
pronunciations: z.array(PronunciationOverride$outboundSchema),
|
|
88
88
|
voices: z.record(VoiceDisplayInfo$outboundSchema).optional(),
|
|
89
|
-
metadata:
|
|
89
|
+
metadata: SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema,
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
export function pronunciationOverridesDictionaryToJSON(
|