syllable-sdk 1.0.13-rc.6 → 1.0.14-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +7 -0
  2. package/bin/mcp-server.js +1704 -1950
  3. package/bin/mcp-server.js.map +34 -26
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts +19 -0
  6. package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
  7. package/funcs/conversationConfigGetBridgePhrasesConfig.js +123 -0
  8. package/funcs/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
  9. package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts +19 -0
  10. package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
  11. package/funcs/conversationConfigUpdateBridgePhrasesConfig.js +126 -0
  12. package/funcs/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
  13. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +1 -1
  14. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -1
  15. package/funcs/pronunciationsPronunciationsGetMetadata.js +1 -1
  16. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -1
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/lib/encodings.d.ts.map +1 -1
  21. package/lib/encodings.js +3 -1
  22. package/lib/encodings.js.map +1 -1
  23. package/mcp-server/mcp-server.js +1 -1
  24. package/mcp-server/server.d.ts.map +1 -1
  25. package/mcp-server/server.js +5 -1
  26. package/mcp-server/server.js.map +1 -1
  27. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts +8 -0
  28. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
  29. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js +64 -0
  30. package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
  31. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts +8 -0
  32. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
  33. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js +64 -0
  34. package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
  35. package/models/components/bridgephrasesconfig.d.ts +39 -0
  36. package/models/components/bridgephrasesconfig.d.ts.map +1 -0
  37. package/models/components/bridgephrasesconfig.js +80 -0
  38. package/models/components/bridgephrasesconfig.js.map +1 -0
  39. package/models/components/callaction.d.ts.map +1 -1
  40. package/models/components/callaction.js +18 -38
  41. package/models/components/callaction.js.map +1 -1
  42. package/models/components/conditionaltext.d.ts.map +1 -1
  43. package/models/components/conditionaltext.js +18 -38
  44. package/models/components/conditionaltext.js.map +1 -1
  45. package/models/components/conditionalvalue.d.ts.map +1 -1
  46. package/models/components/conditionalvalue.js +36 -80
  47. package/models/components/conditionalvalue.js.map +1 -1
  48. package/models/components/context.d.ts.map +1 -1
  49. package/models/components/context.js +48 -140
  50. package/models/components/context.js.map +1 -1
  51. package/models/components/eventtaskevents.d.ts.map +1 -1
  52. package/models/components/eventtaskevents.js +20 -60
  53. package/models/components/eventtaskevents.js.map +1 -1
  54. package/models/components/expressiontask.d.ts.map +1 -1
  55. package/models/components/expressiontask.js +18 -38
  56. package/models/components/expressiontask.js.map +1 -1
  57. package/models/components/expressiontaskevents.d.ts.map +1 -1
  58. package/models/components/expressiontaskevents.js +40 -120
  59. package/models/components/expressiontaskevents.js.map +1 -1
  60. package/models/components/incrementaction.d.ts.map +1 -1
  61. package/models/components/incrementaction.js +18 -38
  62. package/models/components/incrementaction.js.map +1 -1
  63. package/models/components/index.d.ts +3 -1
  64. package/models/components/index.d.ts.map +1 -1
  65. package/models/components/index.js +3 -1
  66. package/models/components/index.js.map +1 -1
  67. package/models/components/nextstep.d.ts.map +1 -1
  68. package/models/components/nextstep.js +18 -38
  69. package/models/components/nextstep.js.map +1 -1
  70. package/models/components/pronunciationoverridesdictionary.d.ts +3 -3
  71. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -1
  72. package/models/components/pronunciationoverridesdictionary.js +3 -3
  73. package/models/components/pronunciationoverridesdictionary.js.map +1 -1
  74. package/models/components/saveaction.d.ts.map +1 -1
  75. package/models/components/saveaction.js +18 -38
  76. package/models/components/saveaction.js.map +1 -1
  77. package/models/components/sayaction.d.ts.map +1 -1
  78. package/models/components/sayaction.js +18 -38
  79. package/models/components/sayaction.js.map +1 -1
  80. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts +33 -0
  81. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts.map +1 -0
  82. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js +62 -0
  83. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js.map +1 -0
  84. package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts +24 -0
  85. package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts.map +1 -0
  86. package/models/components/{dictionarymetadata.js → schemasttsv1pronunciationsdictionarymetadata.js} +10 -10
  87. package/models/components/schemasttsv1pronunciationsdictionarymetadata.js.map +1 -0
  88. package/models/components/setvalueaction.d.ts.map +1 -1
  89. package/models/components/setvalueaction.js +36 -76
  90. package/models/components/setvalueaction.js.map +1 -1
  91. package/models/components/stepeventactions.d.ts.map +1 -1
  92. package/models/components/stepeventactions.js +60 -180
  93. package/models/components/stepeventactions.js.map +1 -1
  94. package/models/components/variable.d.ts.map +1 -1
  95. package/models/components/variable.js +18 -38
  96. package/models/components/variable.js.map +1 -1
  97. package/models/operations/getbridgephrasesconfig.d.ts +25 -0
  98. package/models/operations/getbridgephrasesconfig.d.ts.map +1 -0
  99. package/models/operations/getbridgephrasesconfig.js +71 -0
  100. package/models/operations/getbridgephrasesconfig.js.map +1 -0
  101. package/models/operations/index.d.ts +2 -0
  102. package/models/operations/index.d.ts.map +1 -1
  103. package/models/operations/index.js +2 -0
  104. package/models/operations/index.js.map +1 -1
  105. package/models/operations/updatebridgephrasesconfig.d.ts +28 -0
  106. package/models/operations/updatebridgephrasesconfig.d.ts.map +1 -0
  107. package/models/operations/updatebridgephrasesconfig.js +76 -0
  108. package/models/operations/updatebridgephrasesconfig.js.map +1 -0
  109. package/openapi.json +290 -60
  110. package/package.json +1 -1
  111. package/sdk/conversationconfig.d.ts +20 -0
  112. package/sdk/conversationconfig.d.ts.map +1 -0
  113. package/sdk/conversationconfig.js +32 -0
  114. package/sdk/conversationconfig.js.map +1 -0
  115. package/sdk/pronunciations.d.ts +1 -1
  116. package/sdk/pronunciations.d.ts.map +1 -1
  117. package/sdk/sdk.d.ts +3 -0
  118. package/sdk/sdk.d.ts.map +1 -1
  119. package/sdk/sdk.js +4 -0
  120. package/sdk/sdk.js.map +1 -1
  121. package/src/funcs/conversationConfigGetBridgePhrasesConfig.ts +176 -0
  122. package/src/funcs/conversationConfigUpdateBridgePhrasesConfig.ts +179 -0
  123. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +7 -4
  124. package/src/lib/config.ts +3 -3
  125. package/src/lib/encodings.ts +4 -3
  126. package/src/mcp-server/mcp-server.ts +1 -1
  127. package/src/mcp-server/server.ts +5 -1
  128. package/src/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.ts +39 -0
  129. package/src/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.ts +39 -0
  130. package/src/models/components/bridgephrasesconfig.ts +101 -0
  131. package/src/models/components/callaction.ts +18 -58
  132. package/src/models/components/conditionaltext.ts +18 -58
  133. package/src/models/components/conditionalvalue.ts +36 -118
  134. package/src/models/components/context.ts +48 -188
  135. package/src/models/components/eventtaskevents.ts +20 -92
  136. package/src/models/components/expressiontask.ts +18 -58
  137. package/src/models/components/expressiontaskevents.ts +40 -184
  138. package/src/models/components/incrementaction.ts +18 -58
  139. package/src/models/components/index.ts +3 -1
  140. package/src/models/components/nextstep.ts +18 -58
  141. package/src/models/components/pronunciationoverridesdictionary.ts +10 -10
  142. package/src/models/components/saveaction.ts +18 -58
  143. package/src/models/components/sayaction.ts +18 -58
  144. package/src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts +82 -0
  145. package/src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts +73 -0
  146. package/src/models/components/setvalueaction.ts +36 -116
  147. package/src/models/components/stepeventactions.ts +60 -276
  148. package/src/models/components/variable.ts +18 -58
  149. package/src/models/operations/getbridgephrasesconfig.ts +74 -0
  150. package/src/models/operations/index.ts +2 -0
  151. package/src/models/operations/updatebridgephrasesconfig.ts +81 -0
  152. package/src/sdk/conversationconfig.ts +46 -0
  153. package/src/sdk/pronunciations.ts +1 -1
  154. package/src/sdk/sdk.ts +6 -0
  155. package/models/components/dictionarymetadata.d.ts +0 -24
  156. package/models/components/dictionarymetadata.d.ts.map +0 -1
  157. package/models/components/dictionarymetadata.js.map +0 -1
  158. package/src/models/components/dictionarymetadata.ts +0 -62
@@ -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("jp") }).transform((v) => ({ type: v.type })),
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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("jp") }).transform((v) => ({ type: v.type })),
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
279
- type: v.type,
280
- })),
240
+ z.object({ type: z.literal("jp") }),
281
241
  ),
282
242
  ]),
283
243
  z.string(),
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Metadata for the bridge phrases dictionary.
12
+ */
13
+ export type SchemasCortexV1BridgePhrasesDictionaryMetadata = {
14
+ /**
15
+ * Hash of the dictionary content.
16
+ */
17
+ hash?: string | null | undefined;
18
+ /**
19
+ * Source of the dictionary (e.g. filename).
20
+ */
21
+ source?: string | null | undefined;
22
+ /**
23
+ * Number of entries in the dictionary.
24
+ */
25
+ entries?: number | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema:
30
+ z.ZodType<
31
+ SchemasCortexV1BridgePhrasesDictionaryMetadata,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ hash: z.nullable(z.string()).optional(),
36
+ source: z.nullable(z.string()).optional(),
37
+ entries: z.number().int().default(0),
38
+ });
39
+ /** @internal */
40
+ export type SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound = {
41
+ hash?: string | null | undefined;
42
+ source?: string | null | undefined;
43
+ entries: number;
44
+ };
45
+
46
+ /** @internal */
47
+ export const SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema:
48
+ z.ZodType<
49
+ SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound,
50
+ z.ZodTypeDef,
51
+ SchemasCortexV1BridgePhrasesDictionaryMetadata
52
+ > = z.object({
53
+ hash: z.nullable(z.string()).optional(),
54
+ source: z.nullable(z.string()).optional(),
55
+ entries: z.number().int().default(0),
56
+ });
57
+
58
+ export function schemasCortexV1BridgePhrasesDictionaryMetadataToJSON(
59
+ schemasCortexV1BridgePhrasesDictionaryMetadata:
60
+ SchemasCortexV1BridgePhrasesDictionaryMetadata,
61
+ ): string {
62
+ return JSON.stringify(
63
+ SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema.parse(
64
+ schemasCortexV1BridgePhrasesDictionaryMetadata,
65
+ ),
66
+ );
67
+ }
68
+ export function schemasCortexV1BridgePhrasesDictionaryMetadataFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<
71
+ SchemasCortexV1BridgePhrasesDictionaryMetadata,
72
+ SDKValidationError
73
+ > {
74
+ return safeParse(
75
+ jsonString,
76
+ (x) =>
77
+ SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema.parse(
78
+ JSON.parse(x),
79
+ ),
80
+ `Failed to parse 'SchemasCortexV1BridgePhrasesDictionaryMetadata' from JSON`,
81
+ );
82
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Audit metadata associated with a dictionary.
12
+ */
13
+ export type SchemasTtsV1PronunciationsDictionaryMetadata = {
14
+ entries: number;
15
+ hash: string;
16
+ source?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema:
21
+ z.ZodType<
22
+ SchemasTtsV1PronunciationsDictionaryMetadata,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ entries: z.number().int(),
27
+ hash: z.string(),
28
+ source: z.string().default(""),
29
+ });
30
+ /** @internal */
31
+ export type SchemasTtsV1PronunciationsDictionaryMetadata$Outbound = {
32
+ entries: number;
33
+ hash: string;
34
+ source: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema:
39
+ z.ZodType<
40
+ SchemasTtsV1PronunciationsDictionaryMetadata$Outbound,
41
+ z.ZodTypeDef,
42
+ SchemasTtsV1PronunciationsDictionaryMetadata
43
+ > = z.object({
44
+ entries: z.number().int(),
45
+ hash: z.string(),
46
+ source: z.string().default(""),
47
+ });
48
+
49
+ export function schemasTtsV1PronunciationsDictionaryMetadataToJSON(
50
+ schemasTtsV1PronunciationsDictionaryMetadata:
51
+ SchemasTtsV1PronunciationsDictionaryMetadata,
52
+ ): string {
53
+ return JSON.stringify(
54
+ SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema.parse(
55
+ schemasTtsV1PronunciationsDictionaryMetadata,
56
+ ),
57
+ );
58
+ }
59
+ export function schemasTtsV1PronunciationsDictionaryMetadataFromJSON(
60
+ jsonString: string,
61
+ ): SafeParseResult<
62
+ SchemasTtsV1PronunciationsDictionaryMetadata,
63
+ SDKValidationError
64
+ > {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) =>
68
+ SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema.parse(
69
+ JSON.parse(x),
70
+ ),
71
+ `Failed to parse 'SchemasTtsV1PronunciationsDictionaryMetadata' from JSON`,
72
+ );
73
+ }
@@ -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("jp") }).transform((v) => ({ type: v.type })),
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") }).transform((v) => ({
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") }).transform((v) => ({
166
- type: v.type,
167
- })),
168
- ),
169
- JMESPathExpression$inboundSchema.and(
170
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
151
+ z.object({ type: z.literal("jmespath") }),
171
152
  ),
153
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
172
154
  ]),
173
155
  z.string(),
174
156
  ]);
@@ -188,17 +170,11 @@ export const 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") }).transform((v) => ({
196
- type: v.type,
197
- })),
198
- ),
199
- JMESPathExpression$outboundSchema.and(
200
- z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
175
+ z.object({ type: z.literal("jmespath") }),
201
176
  ),
177
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
202
178
  ]),
203
179
  z.string(),
204
180
  ]);
@@ -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("jp") }).transform((v) => ({ type: v.type })),
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("jp") }).transform((v) => ({ type: v.type })),
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("jp") }).transform((v) => ({ type: v.type })),
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("jp") }).transform((v) => ({ type: v.type })),
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
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") }).transform((v) => ({
482
- type: v.type,
483
- })),
403
+ z.object({ type: z.literal("jp") }),
484
404
  ),
485
405
  ]),
486
406
  z.string(),