syllable-sdk 1.0.1-rc.5 → 1.0.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 (475) hide show
  1. package/README.md +5 -0
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +592 -402
  4. package/bin/mcp-server.js.map +151 -147
  5. package/docs/sdks/pronunciations/README.md +84 -0
  6. package/examples/package-lock.json +1 -1
  7. package/funcs/agentsAgentGetAvailableVoices.js +1 -1
  8. package/funcs/agentsAgentGetAvailableVoices.js.map +1 -1
  9. package/funcs/agentsCreate.js +1 -1
  10. package/funcs/agentsCreate.js.map +1 -1
  11. package/funcs/agentsDelete.js +1 -1
  12. package/funcs/agentsDelete.js.map +1 -1
  13. package/funcs/agentsGetById.js +1 -1
  14. package/funcs/agentsGetById.js.map +1 -1
  15. package/funcs/agentsList.js +1 -1
  16. package/funcs/agentsList.js.map +1 -1
  17. package/funcs/agentsTestSendTestMessage.js +1 -1
  18. package/funcs/agentsTestSendTestMessage.js.map +1 -1
  19. package/funcs/agentsUpdate.js +1 -1
  20. package/funcs/agentsUpdate.js.map +1 -1
  21. package/funcs/channelsCreate.js +1 -1
  22. package/funcs/channelsCreate.js.map +1 -1
  23. package/funcs/channelsDelete.js +1 -1
  24. package/funcs/channelsDelete.js.map +1 -1
  25. package/funcs/channelsList.js +1 -1
  26. package/funcs/channelsList.js.map +1 -1
  27. package/funcs/channelsTargetsAvailableTargets.js +1 -1
  28. package/funcs/channelsTargetsAvailableTargets.js.map +1 -1
  29. package/funcs/channelsTargetsCreate.js +1 -1
  30. package/funcs/channelsTargetsCreate.js.map +1 -1
  31. package/funcs/channelsTargetsGetById.js +1 -1
  32. package/funcs/channelsTargetsGetById.js.map +1 -1
  33. package/funcs/channelsTargetsList.js +1 -1
  34. package/funcs/channelsTargetsList.js.map +1 -1
  35. package/funcs/channelsTargetsUpdate.js +1 -1
  36. package/funcs/channelsTargetsUpdate.js.map +1 -1
  37. package/funcs/channelsTwilioCreate.js +1 -1
  38. package/funcs/channelsTwilioCreate.js.map +1 -1
  39. package/funcs/channelsTwilioGetById.js +1 -1
  40. package/funcs/channelsTwilioGetById.js.map +1 -1
  41. package/funcs/channelsTwilioNumbersAdd.js +1 -1
  42. package/funcs/channelsTwilioNumbersAdd.js.map +1 -1
  43. package/funcs/channelsTwilioNumbersList.js +1 -1
  44. package/funcs/channelsTwilioNumbersList.js.map +1 -1
  45. package/funcs/channelsTwilioNumbersUpdate.js +1 -1
  46. package/funcs/channelsTwilioNumbersUpdate.js.map +1 -1
  47. package/funcs/channelsTwilioUpdate.js +1 -1
  48. package/funcs/channelsTwilioUpdate.js.map +1 -1
  49. package/funcs/channelsUpdate.js +1 -1
  50. package/funcs/channelsUpdate.js.map +1 -1
  51. package/funcs/conversationsList.js +1 -1
  52. package/funcs/conversationsList.js.map +1 -1
  53. package/funcs/customMessagesCreate.js +1 -1
  54. package/funcs/customMessagesCreate.js.map +1 -1
  55. package/funcs/customMessagesDelete.js +1 -1
  56. package/funcs/customMessagesDelete.js.map +1 -1
  57. package/funcs/customMessagesGetById.js +1 -1
  58. package/funcs/customMessagesGetById.js.map +1 -1
  59. package/funcs/customMessagesList.js +1 -1
  60. package/funcs/customMessagesList.js.map +1 -1
  61. package/funcs/customMessagesUpdate.js +1 -1
  62. package/funcs/customMessagesUpdate.js.map +1 -1
  63. package/funcs/dashboardsPostGetDashboard.js +1 -1
  64. package/funcs/dashboardsPostGetDashboard.js.map +1 -1
  65. package/funcs/dashboardsPostListDashboard.js +1 -1
  66. package/funcs/dashboardsPostListDashboard.js.map +1 -1
  67. package/funcs/dashboardsPostSessionEventsDashboard.js +1 -1
  68. package/funcs/dashboardsPostSessionEventsDashboard.js.map +1 -1
  69. package/funcs/dashboardsPostSessionSummaryDashboard.js +1 -1
  70. package/funcs/dashboardsPostSessionSummaryDashboard.js.map +1 -1
  71. package/funcs/dashboardsPostSessionTransfersDashboard.js +1 -1
  72. package/funcs/dashboardsPostSessionTransfersDashboard.js.map +1 -1
  73. package/funcs/dashboardsPostSessionsDashboard.js +1 -1
  74. package/funcs/dashboardsPostSessionsDashboard.js.map +1 -1
  75. package/funcs/dataSourcesCreate.js +1 -1
  76. package/funcs/dataSourcesCreate.js.map +1 -1
  77. package/funcs/dataSourcesDelete.js +1 -1
  78. package/funcs/dataSourcesDelete.js.map +1 -1
  79. package/funcs/dataSourcesGetById.js +1 -1
  80. package/funcs/dataSourcesGetById.js.map +1 -1
  81. package/funcs/dataSourcesList.js +1 -1
  82. package/funcs/dataSourcesList.js.map +1 -1
  83. package/funcs/dataSourcesUpdate.js +1 -1
  84. package/funcs/dataSourcesUpdate.js.map +1 -1
  85. package/funcs/eventsList.js +1 -1
  86. package/funcs/eventsList.js.map +1 -1
  87. package/funcs/incidentsCreate.js +1 -1
  88. package/funcs/incidentsCreate.js.map +1 -1
  89. package/funcs/incidentsDelete.js +1 -1
  90. package/funcs/incidentsDelete.js.map +1 -1
  91. package/funcs/incidentsGetById.js +1 -1
  92. package/funcs/incidentsGetById.js.map +1 -1
  93. package/funcs/incidentsIncidentGetOrganizations.js +1 -1
  94. package/funcs/incidentsIncidentGetOrganizations.js.map +1 -1
  95. package/funcs/incidentsList.js +1 -1
  96. package/funcs/incidentsList.js.map +1 -1
  97. package/funcs/incidentsUpdate.js +1 -1
  98. package/funcs/incidentsUpdate.js.map +1 -1
  99. package/funcs/insightsFoldersCreate.js +1 -1
  100. package/funcs/insightsFoldersCreate.js.map +1 -1
  101. package/funcs/insightsFoldersDelete.js +1 -1
  102. package/funcs/insightsFoldersDelete.js.map +1 -1
  103. package/funcs/insightsFoldersGetById.js +1 -1
  104. package/funcs/insightsFoldersGetById.js.map +1 -1
  105. package/funcs/insightsFoldersList.js +1 -1
  106. package/funcs/insightsFoldersList.js.map +1 -1
  107. package/funcs/insightsFoldersListFiles.js +1 -1
  108. package/funcs/insightsFoldersListFiles.js.map +1 -1
  109. package/funcs/insightsFoldersMoveFiles.js +1 -1
  110. package/funcs/insightsFoldersMoveFiles.js.map +1 -1
  111. package/funcs/insightsFoldersUpdate.js +1 -1
  112. package/funcs/insightsFoldersUpdate.js.map +1 -1
  113. package/funcs/insightsFoldersUploadFile.js +1 -1
  114. package/funcs/insightsFoldersUploadFile.js.map +1 -1
  115. package/funcs/insightsList.js +1 -1
  116. package/funcs/insightsList.js.map +1 -1
  117. package/funcs/insightsToolsCreate.js +1 -1
  118. package/funcs/insightsToolsCreate.js.map +1 -1
  119. package/funcs/insightsToolsDelete.js +1 -1
  120. package/funcs/insightsToolsDelete.js.map +1 -1
  121. package/funcs/insightsToolsGetById.js +1 -1
  122. package/funcs/insightsToolsGetById.js.map +1 -1
  123. package/funcs/insightsToolsInsightToolGetDefinitions.js +1 -1
  124. package/funcs/insightsToolsInsightToolGetDefinitions.js.map +1 -1
  125. package/funcs/insightsToolsInsightsToolTest.js +1 -1
  126. package/funcs/insightsToolsInsightsToolTest.js.map +1 -1
  127. package/funcs/insightsToolsList.js +1 -1
  128. package/funcs/insightsToolsList.js.map +1 -1
  129. package/funcs/insightsToolsUpdate.js +1 -1
  130. package/funcs/insightsToolsUpdate.js.map +1 -1
  131. package/funcs/insightsWorkflowsActivate.js +1 -1
  132. package/funcs/insightsWorkflowsActivate.js.map +1 -1
  133. package/funcs/insightsWorkflowsCreate.js +1 -1
  134. package/funcs/insightsWorkflowsCreate.js.map +1 -1
  135. package/funcs/insightsWorkflowsDelete.js +1 -1
  136. package/funcs/insightsWorkflowsDelete.js.map +1 -1
  137. package/funcs/insightsWorkflowsGetById.js +1 -1
  138. package/funcs/insightsWorkflowsGetById.js.map +1 -1
  139. package/funcs/insightsWorkflowsInactivate.js +1 -1
  140. package/funcs/insightsWorkflowsInactivate.js.map +1 -1
  141. package/funcs/insightsWorkflowsList.js +1 -1
  142. package/funcs/insightsWorkflowsList.js.map +1 -1
  143. package/funcs/insightsWorkflowsQueueWork.js +1 -1
  144. package/funcs/insightsWorkflowsQueueWork.js.map +1 -1
  145. package/funcs/insightsWorkflowsUpdate.js +1 -1
  146. package/funcs/insightsWorkflowsUpdate.js.map +1 -1
  147. package/funcs/languageGroupsCreate.js +1 -1
  148. package/funcs/languageGroupsCreate.js.map +1 -1
  149. package/funcs/languageGroupsDelete.js +1 -1
  150. package/funcs/languageGroupsDelete.js.map +1 -1
  151. package/funcs/languageGroupsGetById.js +1 -1
  152. package/funcs/languageGroupsGetById.js.map +1 -1
  153. package/funcs/languageGroupsLanguageGroupsCreateVoiceSample.js +1 -1
  154. package/funcs/languageGroupsLanguageGroupsCreateVoiceSample.js.map +1 -1
  155. package/funcs/languageGroupsList.js +1 -1
  156. package/funcs/languageGroupsList.js.map +1 -1
  157. package/funcs/languageGroupsUpdate.js +1 -1
  158. package/funcs/languageGroupsUpdate.js.map +1 -1
  159. package/funcs/organizationsCreate.js +1 -1
  160. package/funcs/organizationsCreate.js.map +1 -1
  161. package/funcs/organizationsDelete.js +1 -1
  162. package/funcs/organizationsDelete.js.map +1 -1
  163. package/funcs/organizationsOrganizationsGet.js +1 -1
  164. package/funcs/organizationsOrganizationsGet.js.map +1 -1
  165. package/funcs/organizationsUpdate.js +1 -1
  166. package/funcs/organizationsUpdate.js.map +1 -1
  167. package/funcs/outboundBatchesAdd.js +1 -1
  168. package/funcs/outboundBatchesAdd.js.map +1 -1
  169. package/funcs/outboundBatchesCreate.js +1 -1
  170. package/funcs/outboundBatchesCreate.js.map +1 -1
  171. package/funcs/outboundBatchesDelete.js +1 -1
  172. package/funcs/outboundBatchesDelete.js.map +1 -1
  173. package/funcs/outboundBatchesGetById.js +1 -1
  174. package/funcs/outboundBatchesGetById.js.map +1 -1
  175. package/funcs/outboundBatchesList.js +1 -1
  176. package/funcs/outboundBatchesList.js.map +1 -1
  177. package/funcs/outboundBatchesRemove.js +1 -1
  178. package/funcs/outboundBatchesRemove.js.map +1 -1
  179. package/funcs/outboundBatchesResults.js +1 -1
  180. package/funcs/outboundBatchesResults.js.map +1 -1
  181. package/funcs/outboundBatchesUpdate.js +1 -1
  182. package/funcs/outboundBatchesUpdate.js.map +1 -1
  183. package/funcs/outboundBatchesUpload.js +1 -1
  184. package/funcs/outboundBatchesUpload.js.map +1 -1
  185. package/funcs/outboundCampaignsCreate.js +1 -1
  186. package/funcs/outboundCampaignsCreate.js.map +1 -1
  187. package/funcs/outboundCampaignsDelete.js +1 -1
  188. package/funcs/outboundCampaignsDelete.js.map +1 -1
  189. package/funcs/outboundCampaignsGetById.js +1 -1
  190. package/funcs/outboundCampaignsGetById.js.map +1 -1
  191. package/funcs/outboundCampaignsList.js +1 -1
  192. package/funcs/outboundCampaignsList.js.map +1 -1
  193. package/funcs/outboundCampaignsUpdate.js +1 -1
  194. package/funcs/outboundCampaignsUpdate.js.map +1 -1
  195. package/funcs/permissionsList.js +1 -1
  196. package/funcs/permissionsList.js.map +1 -1
  197. package/funcs/promptsCreate.js +1 -1
  198. package/funcs/promptsCreate.js.map +1 -1
  199. package/funcs/promptsDelete.js +1 -1
  200. package/funcs/promptsDelete.js.map +1 -1
  201. package/funcs/promptsGetById.js +1 -1
  202. package/funcs/promptsGetById.js.map +1 -1
  203. package/funcs/promptsList.js +1 -1
  204. package/funcs/promptsList.js.map +1 -1
  205. package/funcs/promptsPromptGetSupportedLlms.js +1 -1
  206. package/funcs/promptsPromptGetSupportedLlms.js.map +1 -1
  207. package/funcs/promptsPromptsHistory.js +1 -1
  208. package/funcs/promptsPromptsHistory.js.map +1 -1
  209. package/funcs/promptsUpdate.js +1 -1
  210. package/funcs/promptsUpdate.js.map +1 -1
  211. package/funcs/pronunciationsPronunciationsUploadCsv.d.ts +15 -0
  212. package/funcs/pronunciationsPronunciationsUploadCsv.d.ts.map +1 -0
  213. package/funcs/pronunciationsPronunciationsUploadCsv.js +132 -0
  214. package/funcs/pronunciationsPronunciationsUploadCsv.js.map +1 -0
  215. package/funcs/rolesCreate.js +1 -1
  216. package/funcs/rolesCreate.js.map +1 -1
  217. package/funcs/rolesDelete.js +1 -1
  218. package/funcs/rolesDelete.js.map +1 -1
  219. package/funcs/rolesGetById.js +1 -1
  220. package/funcs/rolesGetById.js.map +1 -1
  221. package/funcs/rolesList.js +1 -1
  222. package/funcs/rolesList.js.map +1 -1
  223. package/funcs/rolesUpdate.js +1 -1
  224. package/funcs/rolesUpdate.js.map +1 -1
  225. package/funcs/servicesCreate.js +1 -1
  226. package/funcs/servicesCreate.js.map +1 -1
  227. package/funcs/servicesDelete.js +1 -1
  228. package/funcs/servicesDelete.js.map +1 -1
  229. package/funcs/servicesGetById.js +1 -1
  230. package/funcs/servicesGetById.js.map +1 -1
  231. package/funcs/servicesList.js +1 -1
  232. package/funcs/servicesList.js.map +1 -1
  233. package/funcs/servicesUpdate.js +1 -1
  234. package/funcs/servicesUpdate.js.map +1 -1
  235. package/funcs/sessionDebugGetSessionDataBySessionId.js +1 -1
  236. package/funcs/sessionDebugGetSessionDataBySessionId.js.map +1 -1
  237. package/funcs/sessionDebugGetSessionDataBySid.js +1 -1
  238. package/funcs/sessionDebugGetSessionDataBySid.js.map +1 -1
  239. package/funcs/sessionDebugGetSessionToolCallResultById.js +1 -1
  240. package/funcs/sessionDebugGetSessionToolCallResultById.js.map +1 -1
  241. package/funcs/sessionLabelsCreate.js +1 -1
  242. package/funcs/sessionLabelsCreate.js.map +1 -1
  243. package/funcs/sessionLabelsGetById.js +1 -1
  244. package/funcs/sessionLabelsGetById.js.map +1 -1
  245. package/funcs/sessionLabelsList.js +1 -1
  246. package/funcs/sessionLabelsList.js.map +1 -1
  247. package/funcs/sessionsFullSummaryGetById.js +1 -1
  248. package/funcs/sessionsFullSummaryGetById.js.map +1 -1
  249. package/funcs/sessionsGenerateSessionRecordingUrls.js +1 -1
  250. package/funcs/sessionsGenerateSessionRecordingUrls.js.map +1 -1
  251. package/funcs/sessionsGetById.js +1 -1
  252. package/funcs/sessionsGetById.js.map +1 -1
  253. package/funcs/sessionsLatencyGetById.js +1 -1
  254. package/funcs/sessionsLatencyGetById.js.map +1 -1
  255. package/funcs/sessionsList.js +1 -1
  256. package/funcs/sessionsList.js.map +1 -1
  257. package/funcs/sessionsSessionRecordingStream.js +1 -1
  258. package/funcs/sessionsSessionRecordingStream.js.map +1 -1
  259. package/funcs/sessionsTranscriptGetById.js +1 -1
  260. package/funcs/sessionsTranscriptGetById.js.map +1 -1
  261. package/funcs/takeoutsCreate.js +1 -1
  262. package/funcs/takeoutsCreate.js.map +1 -1
  263. package/funcs/takeoutsTakeoutsGetByJobId.js +1 -1
  264. package/funcs/takeoutsTakeoutsGetByJobId.js.map +1 -1
  265. package/funcs/takeoutsTakeoutsGetFile.js +1 -1
  266. package/funcs/takeoutsTakeoutsGetFile.js.map +1 -1
  267. package/funcs/toolsCreate.js +1 -1
  268. package/funcs/toolsCreate.js.map +1 -1
  269. package/funcs/toolsDelete.js +1 -1
  270. package/funcs/toolsDelete.js.map +1 -1
  271. package/funcs/toolsGetByName.js +1 -1
  272. package/funcs/toolsGetByName.js.map +1 -1
  273. package/funcs/toolsList.js +1 -1
  274. package/funcs/toolsList.js.map +1 -1
  275. package/funcs/toolsUpdate.js +1 -1
  276. package/funcs/toolsUpdate.js.map +1 -1
  277. package/funcs/usersCreate.js +1 -1
  278. package/funcs/usersCreate.js.map +1 -1
  279. package/funcs/usersDelete.js +1 -1
  280. package/funcs/usersDelete.js.map +1 -1
  281. package/funcs/usersList.js +1 -1
  282. package/funcs/usersList.js.map +1 -1
  283. package/funcs/usersUpdate.js +1 -1
  284. package/funcs/usersUpdate.js.map +1 -1
  285. package/funcs/usersUsersDeleteAccount.js +1 -1
  286. package/funcs/usersUsersDeleteAccount.js.map +1 -1
  287. package/funcs/usersUsersGetByEmail.js +1 -1
  288. package/funcs/usersUsersGetByEmail.js.map +1 -1
  289. package/funcs/usersUsersSendEmail.js +1 -1
  290. package/funcs/usersUsersSendEmail.js.map +1 -1
  291. package/jsr.json +1 -1
  292. package/lib/config.d.ts +3 -3
  293. package/lib/config.js +3 -3
  294. package/lib/config.js.map +1 -1
  295. package/mcp-server/mcp-server.js +1 -1
  296. package/mcp-server/mcp-server.js.map +1 -1
  297. package/mcp-server/server.d.ts.map +1 -1
  298. package/mcp-server/server.js +3 -1
  299. package/mcp-server/server.js.map +1 -1
  300. package/mcp-server/tools/pronunciationsPronunciationsUploadCsv.d.ts +8 -0
  301. package/mcp-server/tools/pronunciationsPronunciationsUploadCsv.d.ts.map +1 -0
  302. package/mcp-server/tools/pronunciationsPronunciationsUploadCsv.js +62 -0
  303. package/mcp-server/tools/pronunciationsPronunciationsUploadCsv.js.map +1 -0
  304. package/models/components/bodypronunciationsuploadcsv.d.ts +59 -0
  305. package/models/components/bodypronunciationsuploadcsv.d.ts.map +1 -0
  306. package/models/components/bodypronunciationsuploadcsv.js +109 -0
  307. package/models/components/bodypronunciationsuploadcsv.js.map +1 -0
  308. package/models/components/index.d.ts +2 -0
  309. package/models/components/index.d.ts.map +1 -1
  310. package/models/components/index.js +2 -0
  311. package/models/components/index.js.map +1 -1
  312. package/models/components/pronunciationscsvuploadresponse.d.ts +40 -0
  313. package/models/components/pronunciationscsvuploadresponse.d.ts.map +1 -0
  314. package/models/components/pronunciationscsvuploadresponse.js +89 -0
  315. package/models/components/pronunciationscsvuploadresponse.js.map +1 -0
  316. package/openapi.json +113 -0
  317. package/package.json +1 -1
  318. package/sdk/pronunciations.d.ts +9 -0
  319. package/sdk/pronunciations.d.ts.map +1 -0
  320. package/sdk/pronunciations.js +19 -0
  321. package/sdk/pronunciations.js.map +1 -0
  322. package/sdk/sdk.d.ts +3 -0
  323. package/sdk/sdk.d.ts.map +1 -1
  324. package/sdk/sdk.js +4 -0
  325. package/sdk/sdk.js.map +1 -1
  326. package/src/funcs/agentsAgentGetAvailableVoices.ts +1 -1
  327. package/src/funcs/agentsCreate.ts +1 -1
  328. package/src/funcs/agentsDelete.ts +1 -1
  329. package/src/funcs/agentsGetById.ts +1 -1
  330. package/src/funcs/agentsList.ts +1 -1
  331. package/src/funcs/agentsTestSendTestMessage.ts +1 -1
  332. package/src/funcs/agentsUpdate.ts +1 -1
  333. package/src/funcs/channelsCreate.ts +1 -1
  334. package/src/funcs/channelsDelete.ts +1 -1
  335. package/src/funcs/channelsList.ts +1 -1
  336. package/src/funcs/channelsTargetsAvailableTargets.ts +1 -1
  337. package/src/funcs/channelsTargetsCreate.ts +1 -1
  338. package/src/funcs/channelsTargetsGetById.ts +1 -1
  339. package/src/funcs/channelsTargetsList.ts +1 -1
  340. package/src/funcs/channelsTargetsUpdate.ts +1 -1
  341. package/src/funcs/channelsTwilioCreate.ts +1 -1
  342. package/src/funcs/channelsTwilioGetById.ts +1 -1
  343. package/src/funcs/channelsTwilioNumbersAdd.ts +1 -1
  344. package/src/funcs/channelsTwilioNumbersList.ts +1 -1
  345. package/src/funcs/channelsTwilioNumbersUpdate.ts +1 -1
  346. package/src/funcs/channelsTwilioUpdate.ts +1 -1
  347. package/src/funcs/channelsUpdate.ts +1 -1
  348. package/src/funcs/conversationsList.ts +1 -1
  349. package/src/funcs/customMessagesCreate.ts +1 -1
  350. package/src/funcs/customMessagesDelete.ts +1 -1
  351. package/src/funcs/customMessagesGetById.ts +1 -1
  352. package/src/funcs/customMessagesList.ts +1 -1
  353. package/src/funcs/customMessagesUpdate.ts +1 -1
  354. package/src/funcs/dashboardsPostGetDashboard.ts +1 -1
  355. package/src/funcs/dashboardsPostListDashboard.ts +1 -1
  356. package/src/funcs/dashboardsPostSessionEventsDashboard.ts +1 -1
  357. package/src/funcs/dashboardsPostSessionSummaryDashboard.ts +1 -1
  358. package/src/funcs/dashboardsPostSessionTransfersDashboard.ts +1 -1
  359. package/src/funcs/dashboardsPostSessionsDashboard.ts +1 -1
  360. package/src/funcs/dataSourcesCreate.ts +1 -1
  361. package/src/funcs/dataSourcesDelete.ts +1 -1
  362. package/src/funcs/dataSourcesGetById.ts +1 -1
  363. package/src/funcs/dataSourcesList.ts +1 -1
  364. package/src/funcs/dataSourcesUpdate.ts +1 -1
  365. package/src/funcs/eventsList.ts +1 -1
  366. package/src/funcs/incidentsCreate.ts +1 -1
  367. package/src/funcs/incidentsDelete.ts +1 -1
  368. package/src/funcs/incidentsGetById.ts +1 -1
  369. package/src/funcs/incidentsIncidentGetOrganizations.ts +1 -1
  370. package/src/funcs/incidentsList.ts +1 -1
  371. package/src/funcs/incidentsUpdate.ts +1 -1
  372. package/src/funcs/insightsFoldersCreate.ts +1 -1
  373. package/src/funcs/insightsFoldersDelete.ts +1 -1
  374. package/src/funcs/insightsFoldersGetById.ts +1 -1
  375. package/src/funcs/insightsFoldersList.ts +1 -1
  376. package/src/funcs/insightsFoldersListFiles.ts +1 -1
  377. package/src/funcs/insightsFoldersMoveFiles.ts +1 -1
  378. package/src/funcs/insightsFoldersUpdate.ts +1 -1
  379. package/src/funcs/insightsFoldersUploadFile.ts +1 -1
  380. package/src/funcs/insightsList.ts +1 -1
  381. package/src/funcs/insightsToolsCreate.ts +1 -1
  382. package/src/funcs/insightsToolsDelete.ts +1 -1
  383. package/src/funcs/insightsToolsGetById.ts +1 -1
  384. package/src/funcs/insightsToolsInsightToolGetDefinitions.ts +1 -1
  385. package/src/funcs/insightsToolsInsightsToolTest.ts +1 -1
  386. package/src/funcs/insightsToolsList.ts +1 -1
  387. package/src/funcs/insightsToolsUpdate.ts +1 -1
  388. package/src/funcs/insightsWorkflowsActivate.ts +1 -1
  389. package/src/funcs/insightsWorkflowsCreate.ts +1 -1
  390. package/src/funcs/insightsWorkflowsDelete.ts +1 -1
  391. package/src/funcs/insightsWorkflowsGetById.ts +1 -1
  392. package/src/funcs/insightsWorkflowsInactivate.ts +1 -1
  393. package/src/funcs/insightsWorkflowsList.ts +1 -1
  394. package/src/funcs/insightsWorkflowsQueueWork.ts +1 -1
  395. package/src/funcs/insightsWorkflowsUpdate.ts +1 -1
  396. package/src/funcs/languageGroupsCreate.ts +1 -1
  397. package/src/funcs/languageGroupsDelete.ts +1 -1
  398. package/src/funcs/languageGroupsGetById.ts +1 -1
  399. package/src/funcs/languageGroupsLanguageGroupsCreateVoiceSample.ts +1 -1
  400. package/src/funcs/languageGroupsList.ts +1 -1
  401. package/src/funcs/languageGroupsUpdate.ts +1 -1
  402. package/src/funcs/organizationsCreate.ts +1 -1
  403. package/src/funcs/organizationsDelete.ts +1 -1
  404. package/src/funcs/organizationsOrganizationsGet.ts +1 -1
  405. package/src/funcs/organizationsUpdate.ts +1 -1
  406. package/src/funcs/outboundBatchesAdd.ts +1 -1
  407. package/src/funcs/outboundBatchesCreate.ts +1 -1
  408. package/src/funcs/outboundBatchesDelete.ts +1 -1
  409. package/src/funcs/outboundBatchesGetById.ts +1 -1
  410. package/src/funcs/outboundBatchesList.ts +1 -1
  411. package/src/funcs/outboundBatchesRemove.ts +1 -1
  412. package/src/funcs/outboundBatchesResults.ts +1 -1
  413. package/src/funcs/outboundBatchesUpdate.ts +1 -1
  414. package/src/funcs/outboundBatchesUpload.ts +1 -1
  415. package/src/funcs/outboundCampaignsCreate.ts +1 -1
  416. package/src/funcs/outboundCampaignsDelete.ts +1 -1
  417. package/src/funcs/outboundCampaignsGetById.ts +1 -1
  418. package/src/funcs/outboundCampaignsList.ts +1 -1
  419. package/src/funcs/outboundCampaignsUpdate.ts +1 -1
  420. package/src/funcs/permissionsList.ts +1 -1
  421. package/src/funcs/promptsCreate.ts +1 -1
  422. package/src/funcs/promptsDelete.ts +1 -1
  423. package/src/funcs/promptsGetById.ts +1 -1
  424. package/src/funcs/promptsList.ts +1 -1
  425. package/src/funcs/promptsPromptGetSupportedLlms.ts +1 -1
  426. package/src/funcs/promptsPromptsHistory.ts +1 -1
  427. package/src/funcs/promptsUpdate.ts +1 -1
  428. package/src/funcs/pronunciationsPronunciationsUploadCsv.ts +191 -0
  429. package/src/funcs/rolesCreate.ts +1 -1
  430. package/src/funcs/rolesDelete.ts +1 -1
  431. package/src/funcs/rolesGetById.ts +1 -1
  432. package/src/funcs/rolesList.ts +1 -1
  433. package/src/funcs/rolesUpdate.ts +1 -1
  434. package/src/funcs/servicesCreate.ts +1 -1
  435. package/src/funcs/servicesDelete.ts +1 -1
  436. package/src/funcs/servicesGetById.ts +1 -1
  437. package/src/funcs/servicesList.ts +1 -1
  438. package/src/funcs/servicesUpdate.ts +1 -1
  439. package/src/funcs/sessionDebugGetSessionDataBySessionId.ts +1 -1
  440. package/src/funcs/sessionDebugGetSessionDataBySid.ts +1 -1
  441. package/src/funcs/sessionDebugGetSessionToolCallResultById.ts +1 -1
  442. package/src/funcs/sessionLabelsCreate.ts +1 -1
  443. package/src/funcs/sessionLabelsGetById.ts +1 -1
  444. package/src/funcs/sessionLabelsList.ts +1 -1
  445. package/src/funcs/sessionsFullSummaryGetById.ts +1 -1
  446. package/src/funcs/sessionsGenerateSessionRecordingUrls.ts +1 -1
  447. package/src/funcs/sessionsGetById.ts +1 -1
  448. package/src/funcs/sessionsLatencyGetById.ts +1 -1
  449. package/src/funcs/sessionsList.ts +1 -1
  450. package/src/funcs/sessionsSessionRecordingStream.ts +1 -1
  451. package/src/funcs/sessionsTranscriptGetById.ts +1 -1
  452. package/src/funcs/takeoutsCreate.ts +1 -1
  453. package/src/funcs/takeoutsTakeoutsGetByJobId.ts +1 -1
  454. package/src/funcs/takeoutsTakeoutsGetFile.ts +1 -1
  455. package/src/funcs/toolsCreate.ts +1 -1
  456. package/src/funcs/toolsDelete.ts +1 -1
  457. package/src/funcs/toolsGetByName.ts +1 -1
  458. package/src/funcs/toolsList.ts +1 -1
  459. package/src/funcs/toolsUpdate.ts +1 -1
  460. package/src/funcs/usersCreate.ts +1 -1
  461. package/src/funcs/usersDelete.ts +1 -1
  462. package/src/funcs/usersList.ts +1 -1
  463. package/src/funcs/usersUpdate.ts +1 -1
  464. package/src/funcs/usersUsersDeleteAccount.ts +1 -1
  465. package/src/funcs/usersUsersGetByEmail.ts +1 -1
  466. package/src/funcs/usersUsersSendEmail.ts +1 -1
  467. package/src/lib/config.ts +3 -3
  468. package/src/mcp-server/mcp-server.ts +1 -1
  469. package/src/mcp-server/server.ts +3 -1
  470. package/src/mcp-server/tools/pronunciationsPronunciationsUploadCsv.ts +37 -0
  471. package/src/models/components/bodypronunciationsuploadcsv.ts +148 -0
  472. package/src/models/components/index.ts +2 -0
  473. package/src/models/components/pronunciationscsvuploadresponse.ts +99 -0
  474. package/src/sdk/pronunciations.ts +24 -0
  475. package/src/sdk/sdk.ts +6 -0
@@ -116,7 +116,7 @@ async function $do(
116
116
  options: client._options,
117
117
  baseURL: options?.serverURL ?? client._baseURL ?? "",
118
118
  operationID: "insights_workflow_list",
119
- oAuth2Scopes: [],
119
+ oAuth2Scopes: null,
120
120
 
121
121
  resolvedSecurity: requestSecurity,
122
122
 
@@ -105,7 +105,7 @@ async function $do(
105
105
  options: client._options,
106
106
  baseURL: options?.serverURL ?? client._baseURL ?? "",
107
107
  operationID: "insights_workflow_queue_work",
108
- oAuth2Scopes: [],
108
+ oAuth2Scopes: null,
109
109
 
110
110
  resolvedSecurity: requestSecurity,
111
111
 
@@ -116,7 +116,7 @@ async function $do(
116
116
  options: client._options,
117
117
  baseURL: options?.serverURL ?? client._baseURL ?? "",
118
118
  operationID: "insights_workflow_update",
119
- oAuth2Scopes: [],
119
+ oAuth2Scopes: null,
120
120
 
121
121
  resolvedSecurity: requestSecurity,
122
122
 
@@ -104,7 +104,7 @@ async function $do(
104
104
  options: client._options,
105
105
  baseURL: options?.serverURL ?? client._baseURL ?? "",
106
106
  operationID: "language_groups_create",
107
- oAuth2Scopes: [],
107
+ oAuth2Scopes: null,
108
108
 
109
109
  resolvedSecurity: requestSecurity,
110
110
 
@@ -118,7 +118,7 @@ async function $do(
118
118
  options: client._options,
119
119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
120
  operationID: "language_groups_delete",
121
- oAuth2Scopes: [],
121
+ oAuth2Scopes: null,
122
122
 
123
123
  resolvedSecurity: requestSecurity,
124
124
 
@@ -114,7 +114,7 @@ async function $do(
114
114
  options: client._options,
115
115
  baseURL: options?.serverURL ?? client._baseURL ?? "",
116
116
  operationID: "language_groups_get_by_id",
117
- oAuth2Scopes: [],
117
+ oAuth2Scopes: null,
118
118
 
119
119
  resolvedSecurity: requestSecurity,
120
120
 
@@ -104,7 +104,7 @@ async function $do(
104
104
  options: client._options,
105
105
  baseURL: options?.serverURL ?? client._baseURL ?? "",
106
106
  operationID: "language_groups_create_voice_sample",
107
- oAuth2Scopes: [],
107
+ oAuth2Scopes: null,
108
108
 
109
109
  resolvedSecurity: requestSecurity,
110
110
 
@@ -115,7 +115,7 @@ async function $do(
115
115
  options: client._options,
116
116
  baseURL: options?.serverURL ?? client._baseURL ?? "",
117
117
  operationID: "language_groups_list",
118
- oAuth2Scopes: [],
118
+ oAuth2Scopes: null,
119
119
 
120
120
  resolvedSecurity: requestSecurity,
121
121
 
@@ -104,7 +104,7 @@ async function $do(
104
104
  options: client._options,
105
105
  baseURL: options?.serverURL ?? client._baseURL ?? "",
106
106
  operationID: "language_groups_update",
107
- oAuth2Scopes: [],
107
+ oAuth2Scopes: null,
108
108
 
109
109
  resolvedSecurity: requestSecurity,
110
110
 
@@ -137,7 +137,7 @@ async function $do(
137
137
  options: client._options,
138
138
  baseURL: options?.serverURL ?? client._baseURL ?? "",
139
139
  operationID: "organizations_create",
140
- oAuth2Scopes: [],
140
+ oAuth2Scopes: null,
141
141
 
142
142
  resolvedSecurity: requestSecurity,
143
143
 
@@ -108,7 +108,7 @@ async function $do(
108
108
  options: client._options,
109
109
  baseURL: options?.serverURL ?? client._baseURL ?? "",
110
110
  operationID: "organizations_delete",
111
- oAuth2Scopes: [],
111
+ oAuth2Scopes: null,
112
112
 
113
113
  resolvedSecurity: requestSecurity,
114
114
 
@@ -83,7 +83,7 @@ async function $do(
83
83
  options: client._options,
84
84
  baseURL: options?.serverURL ?? client._baseURL ?? "",
85
85
  operationID: "organizations_get",
86
- oAuth2Scopes: [],
86
+ oAuth2Scopes: null,
87
87
 
88
88
  resolvedSecurity: requestSecurity,
89
89
 
@@ -142,7 +142,7 @@ async function $do(
142
142
  options: client._options,
143
143
  baseURL: options?.serverURL ?? client._baseURL ?? "",
144
144
  operationID: "organizations_update",
145
- oAuth2Scopes: [],
145
+ oAuth2Scopes: null,
146
146
 
147
147
  resolvedSecurity: requestSecurity,
148
148
 
@@ -112,7 +112,7 @@ async function $do(
112
112
  options: client._options,
113
113
  baseURL: options?.serverURL ?? client._baseURL ?? "",
114
114
  operationID: "outbound_batch_add",
115
- oAuth2Scopes: [],
115
+ oAuth2Scopes: null,
116
116
 
117
117
  resolvedSecurity: requestSecurity,
118
118
 
@@ -100,7 +100,7 @@ async function $do(
100
100
  options: client._options,
101
101
  baseURL: options?.serverURL ?? client._baseURL ?? "",
102
102
  operationID: "outbound_batch_create",
103
- oAuth2Scopes: [],
103
+ oAuth2Scopes: null,
104
104
 
105
105
  resolvedSecurity: requestSecurity,
106
106
 
@@ -114,7 +114,7 @@ async function $do(
114
114
  options: client._options,
115
115
  baseURL: options?.serverURL ?? client._baseURL ?? "",
116
116
  operationID: "outbound_batch_delete",
117
- oAuth2Scopes: [],
117
+ oAuth2Scopes: null,
118
118
 
119
119
  resolvedSecurity: requestSecurity,
120
120
 
@@ -108,7 +108,7 @@ async function $do(
108
108
  options: client._options,
109
109
  baseURL: options?.serverURL ?? client._baseURL ?? "",
110
110
  operationID: "outbound_batch_get_by_id",
111
- oAuth2Scopes: [],
111
+ oAuth2Scopes: null,
112
112
 
113
113
  resolvedSecurity: requestSecurity,
114
114
 
@@ -112,7 +112,7 @@ async function $do(
112
112
  options: client._options,
113
113
  baseURL: options?.serverURL ?? client._baseURL ?? "",
114
114
  operationID: "outbound_batch_list",
115
- oAuth2Scopes: [],
115
+ oAuth2Scopes: null,
116
116
 
117
117
  resolvedSecurity: requestSecurity,
118
118
 
@@ -111,7 +111,7 @@ async function $do(
111
111
  options: client._options,
112
112
  baseURL: options?.serverURL ?? client._baseURL ?? "",
113
113
  operationID: "outbound_batch_remove",
114
- oAuth2Scopes: [],
114
+ oAuth2Scopes: null,
115
115
 
116
116
  resolvedSecurity: requestSecurity,
117
117
 
@@ -117,7 +117,7 @@ async function $do(
117
117
  options: client._options,
118
118
  baseURL: options?.serverURL ?? client._baseURL ?? "",
119
119
  operationID: "outbound_batch_results",
120
- oAuth2Scopes: [],
120
+ oAuth2Scopes: null,
121
121
 
122
122
  resolvedSecurity: requestSecurity,
123
123
 
@@ -111,7 +111,7 @@ async function $do(
111
111
  options: client._options,
112
112
  baseURL: options?.serverURL ?? client._baseURL ?? "",
113
113
  operationID: "outbound_batch_update",
114
- oAuth2Scopes: [],
114
+ oAuth2Scopes: null,
115
115
 
116
116
  resolvedSecurity: requestSecurity,
117
117
 
@@ -153,7 +153,7 @@ async function $do(
153
153
  options: client._options,
154
154
  baseURL: options?.serverURL ?? client._baseURL ?? "",
155
155
  operationID: "outbound_batch_upload",
156
- oAuth2Scopes: [],
156
+ oAuth2Scopes: null,
157
157
 
158
158
  resolvedSecurity: requestSecurity,
159
159
 
@@ -100,7 +100,7 @@ async function $do(
100
100
  options: client._options,
101
101
  baseURL: options?.serverURL ?? client._baseURL ?? "",
102
102
  operationID: "outbound_campaign_create",
103
- oAuth2Scopes: [],
103
+ oAuth2Scopes: null,
104
104
 
105
105
  resolvedSecurity: requestSecurity,
106
106
 
@@ -110,7 +110,7 @@ async function $do(
110
110
  options: client._options,
111
111
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
112
  operationID: "outbound_campaign_delete",
113
- oAuth2Scopes: [],
113
+ oAuth2Scopes: null,
114
114
 
115
115
  resolvedSecurity: requestSecurity,
116
116
 
@@ -110,7 +110,7 @@ async function $do(
110
110
  options: client._options,
111
111
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
112
  operationID: "outbound_campaign_get_by_id",
113
- oAuth2Scopes: [],
113
+ oAuth2Scopes: null,
114
114
 
115
115
  resolvedSecurity: requestSecurity,
116
116
 
@@ -113,7 +113,7 @@ async function $do(
113
113
  options: client._options,
114
114
  baseURL: options?.serverURL ?? client._baseURL ?? "",
115
115
  operationID: "outbound_campaign_list",
116
- oAuth2Scopes: [],
116
+ oAuth2Scopes: null,
117
117
 
118
118
  resolvedSecurity: requestSecurity,
119
119
 
@@ -113,7 +113,7 @@ async function $do(
113
113
  options: client._options,
114
114
  baseURL: options?.serverURL ?? client._baseURL ?? "",
115
115
  operationID: "outbound_campaign_update",
116
- oAuth2Scopes: [],
116
+ oAuth2Scopes: null,
117
117
 
118
118
  resolvedSecurity: requestSecurity,
119
119
 
@@ -84,7 +84,7 @@ async function $do(
84
84
  options: client._options,
85
85
  baseURL: options?.serverURL ?? client._baseURL ?? "",
86
86
  operationID: "permissions_list",
87
- oAuth2Scopes: [],
87
+ oAuth2Scopes: null,
88
88
 
89
89
  resolvedSecurity: requestSecurity,
90
90
 
@@ -103,7 +103,7 @@ async function $do(
103
103
  options: client._options,
104
104
  baseURL: options?.serverURL ?? client._baseURL ?? "",
105
105
  operationID: "prompts_create",
106
- oAuth2Scopes: [],
106
+ oAuth2Scopes: null,
107
107
 
108
108
  resolvedSecurity: requestSecurity,
109
109
 
@@ -114,7 +114,7 @@ async function $do(
114
114
  options: client._options,
115
115
  baseURL: options?.serverURL ?? client._baseURL ?? "",
116
116
  operationID: "prompts_delete",
117
- oAuth2Scopes: [],
117
+ oAuth2Scopes: null,
118
118
 
119
119
  resolvedSecurity: requestSecurity,
120
120
 
@@ -110,7 +110,7 @@ async function $do(
110
110
  options: client._options,
111
111
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
112
  operationID: "prompts_get_by_id",
113
- oAuth2Scopes: [],
113
+ oAuth2Scopes: null,
114
114
 
115
115
  resolvedSecurity: requestSecurity,
116
116
 
@@ -115,7 +115,7 @@ async function $do(
115
115
  options: client._options,
116
116
  baseURL: options?.serverURL ?? client._baseURL ?? "",
117
117
  operationID: "prompts_list",
118
- oAuth2Scopes: [],
118
+ oAuth2Scopes: null,
119
119
 
120
120
  resolvedSecurity: requestSecurity,
121
121
 
@@ -84,7 +84,7 @@ async function $do(
84
84
  options: client._options,
85
85
  baseURL: options?.serverURL ?? client._baseURL ?? "",
86
86
  operationID: "prompt_get_supported_llms",
87
- oAuth2Scopes: [],
87
+ oAuth2Scopes: null,
88
88
 
89
89
  resolvedSecurity: requestSecurity,
90
90
 
@@ -111,7 +111,7 @@ async function $do(
111
111
  options: client._options,
112
112
  baseURL: options?.serverURL ?? client._baseURL ?? "",
113
113
  operationID: "prompts_history",
114
- oAuth2Scopes: [],
114
+ oAuth2Scopes: null,
115
115
 
116
116
  resolvedSecurity: requestSecurity,
117
117
 
@@ -103,7 +103,7 @@ async function $do(
103
103
  options: client._options,
104
104
  baseURL: options?.serverURL ?? client._baseURL ?? "",
105
105
  operationID: "prompts_update",
106
- oAuth2Scopes: [],
106
+ oAuth2Scopes: null,
107
107
 
108
108
  resolvedSecurity: requestSecurity,
109
109
 
@@ -0,0 +1,191 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SyllableSDKCore } from "../core.js";
6
+ import { appendForm } from "../lib/encodings.js";
7
+ import {
8
+ getContentTypeFromFileName,
9
+ readableStreamToArrayBuffer,
10
+ } from "../lib/files.js";
11
+ import * as M from "../lib/matchers.js";
12
+ import { compactMap } from "../lib/primitives.js";
13
+ import { safeParse } from "../lib/schemas.js";
14
+ import { RequestOptions } from "../lib/sdks.js";
15
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
16
+ import { pathToFunc } from "../lib/url.js";
17
+ import * as components from "../models/components/index.js";
18
+ import {
19
+ ConnectionError,
20
+ InvalidRequestError,
21
+ RequestAbortedError,
22
+ RequestTimeoutError,
23
+ UnexpectedClientError,
24
+ } from "../models/errors/httpclienterrors.js";
25
+ import * as errors from "../models/errors/index.js";
26
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
27
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
28
+ import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
29
+ import { APICall, APIPromise } from "../types/async.js";
30
+ import { isBlobLike } from "../types/blobs.js";
31
+ import { Result } from "../types/fp.js";
32
+ import { isReadableStream } from "../types/streams.js";
33
+
34
+ /**
35
+ * Upload Pronunciations Csv
36
+ */
37
+ export function pronunciationsPronunciationsUploadCsv(
38
+ client: SyllableSDKCore,
39
+ request: components.BodyPronunciationsUploadCsv,
40
+ options?: RequestOptions,
41
+ ): APIPromise<
42
+ Result<
43
+ components.PronunciationsCsvUploadResponse,
44
+ | errors.HTTPValidationError
45
+ | SyllableSDKError
46
+ | ResponseValidationError
47
+ | ConnectionError
48
+ | RequestAbortedError
49
+ | RequestTimeoutError
50
+ | InvalidRequestError
51
+ | UnexpectedClientError
52
+ | SDKValidationError
53
+ >
54
+ > {
55
+ return new APIPromise($do(
56
+ client,
57
+ request,
58
+ options,
59
+ ));
60
+ }
61
+
62
+ async function $do(
63
+ client: SyllableSDKCore,
64
+ request: components.BodyPronunciationsUploadCsv,
65
+ options?: RequestOptions,
66
+ ): Promise<
67
+ [
68
+ Result<
69
+ components.PronunciationsCsvUploadResponse,
70
+ | errors.HTTPValidationError
71
+ | SyllableSDKError
72
+ | ResponseValidationError
73
+ | ConnectionError
74
+ | RequestAbortedError
75
+ | RequestTimeoutError
76
+ | InvalidRequestError
77
+ | UnexpectedClientError
78
+ | SDKValidationError
79
+ >,
80
+ APICall,
81
+ ]
82
+ > {
83
+ const parsed = safeParse(
84
+ request,
85
+ (value) =>
86
+ components.BodyPronunciationsUploadCsv$outboundSchema.parse(value),
87
+ "Input validation failed",
88
+ );
89
+ if (!parsed.ok) {
90
+ return [parsed, { status: "invalid" }];
91
+ }
92
+ const payload = parsed.value;
93
+ const body = new FormData();
94
+
95
+ if (isBlobLike(payload.file)) {
96
+ appendForm(body, "file", payload.file);
97
+ } else if (isReadableStream(payload.file.content)) {
98
+ const buffer = await readableStreamToArrayBuffer(payload.file.content);
99
+ const contentType = getContentTypeFromFileName(payload.file.fileName)
100
+ || "application/octet-stream";
101
+ const blob = new Blob([buffer], { type: contentType });
102
+ appendForm(body, "file", blob, payload.file.fileName);
103
+ } else {
104
+ const contentType = getContentTypeFromFileName(payload.file.fileName)
105
+ || "application/octet-stream";
106
+ appendForm(
107
+ body,
108
+ "file",
109
+ new Blob([payload.file.content], { type: contentType }),
110
+ payload.file.fileName,
111
+ );
112
+ }
113
+
114
+ const path = pathToFunc("/api/v1/pronunciations/csv")();
115
+
116
+ const headers = new Headers(compactMap({
117
+ Accept: "application/json",
118
+ }));
119
+
120
+ const secConfig = await extractSecurity(client._options.apiKeyHeader);
121
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
122
+ const requestSecurity = resolveGlobalSecurity(securityInput);
123
+
124
+ const context = {
125
+ options: client._options,
126
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
127
+ operationID: "pronunciations_upload_csv",
128
+ oAuth2Scopes: null,
129
+
130
+ resolvedSecurity: requestSecurity,
131
+
132
+ securitySource: client._options.apiKeyHeader,
133
+ retryConfig: options?.retries
134
+ || client._options.retryConfig
135
+ || { strategy: "none" },
136
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
137
+ };
138
+
139
+ const requestRes = client._createRequest(context, {
140
+ security: requestSecurity,
141
+ method: "POST",
142
+ baseURL: options?.serverURL,
143
+ path: path,
144
+ headers: headers,
145
+ body: body,
146
+ userAgent: client._options.userAgent,
147
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
148
+ }, options);
149
+ if (!requestRes.ok) {
150
+ return [requestRes, { status: "invalid" }];
151
+ }
152
+ const req = requestRes.value;
153
+
154
+ const doResult = await client._do(req, {
155
+ context,
156
+ errorCodes: ["422", "4XX", "5XX"],
157
+ retryConfig: context.retryConfig,
158
+ retryCodes: context.retryCodes,
159
+ });
160
+ if (!doResult.ok) {
161
+ return [doResult, { status: "request-error", request: req }];
162
+ }
163
+ const response = doResult.value;
164
+
165
+ const responseFields = {
166
+ HttpMeta: { Response: response, Request: req },
167
+ };
168
+
169
+ const [result] = await M.match<
170
+ components.PronunciationsCsvUploadResponse,
171
+ | errors.HTTPValidationError
172
+ | SyllableSDKError
173
+ | ResponseValidationError
174
+ | ConnectionError
175
+ | RequestAbortedError
176
+ | RequestTimeoutError
177
+ | InvalidRequestError
178
+ | UnexpectedClientError
179
+ | SDKValidationError
180
+ >(
181
+ M.json(202, components.PronunciationsCsvUploadResponse$inboundSchema),
182
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
183
+ M.fail("4XX"),
184
+ M.fail("5XX"),
185
+ )(response, req, { extraFields: responseFields });
186
+ if (!result.ok) {
187
+ return [result, { status: "complete", request: req, response }];
188
+ }
189
+
190
+ return [result, { status: "complete", request: req, response }];
191
+ }
@@ -103,7 +103,7 @@ async function $do(
103
103
  options: client._options,
104
104
  baseURL: options?.serverURL ?? client._baseURL ?? "",
105
105
  operationID: "roles_create",
106
- oAuth2Scopes: [],
106
+ oAuth2Scopes: null,
107
107
 
108
108
  resolvedSecurity: requestSecurity,
109
109
 
@@ -115,7 +115,7 @@ async function $do(
115
115
  options: client._options,
116
116
  baseURL: options?.serverURL ?? client._baseURL ?? "",
117
117
  operationID: "roles_delete",
118
- oAuth2Scopes: [],
118
+ oAuth2Scopes: null,
119
119
 
120
120
  resolvedSecurity: requestSecurity,
121
121
 
@@ -110,7 +110,7 @@ async function $do(
110
110
  options: client._options,
111
111
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
112
  operationID: "roles_get_by_id",
113
- oAuth2Scopes: [],
113
+ oAuth2Scopes: null,
114
114
 
115
115
  resolvedSecurity: requestSecurity,
116
116
 
@@ -115,7 +115,7 @@ async function $do(
115
115
  options: client._options,
116
116
  baseURL: options?.serverURL ?? client._baseURL ?? "",
117
117
  operationID: "roles_list",
118
- oAuth2Scopes: [],
118
+ oAuth2Scopes: null,
119
119
 
120
120
  resolvedSecurity: requestSecurity,
121
121
 
@@ -103,7 +103,7 @@ async function $do(
103
103
  options: client._options,
104
104
  baseURL: options?.serverURL ?? client._baseURL ?? "",
105
105
  operationID: "roles_update",
106
- oAuth2Scopes: [],
106
+ oAuth2Scopes: null,
107
107
 
108
108
  resolvedSecurity: requestSecurity,
109
109
 
@@ -103,7 +103,7 @@ async function $do(
103
103
  options: client._options,
104
104
  baseURL: options?.serverURL ?? client._baseURL ?? "",
105
105
  operationID: "service_create",
106
- oAuth2Scopes: [],
106
+ oAuth2Scopes: null,
107
107
 
108
108
  resolvedSecurity: requestSecurity,
109
109
 
@@ -114,7 +114,7 @@ async function $do(
114
114
  options: client._options,
115
115
  baseURL: options?.serverURL ?? client._baseURL ?? "",
116
116
  operationID: "service_delete",
117
- oAuth2Scopes: [],
117
+ oAuth2Scopes: null,
118
118
 
119
119
  resolvedSecurity: requestSecurity,
120
120
 
@@ -110,7 +110,7 @@ async function $do(
110
110
  options: client._options,
111
111
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
112
  operationID: "services_get_by_id",
113
- oAuth2Scopes: [],
113
+ oAuth2Scopes: null,
114
114
 
115
115
  resolvedSecurity: requestSecurity,
116
116
 
@@ -115,7 +115,7 @@ async function $do(
115
115
  options: client._options,
116
116
  baseURL: options?.serverURL ?? client._baseURL ?? "",
117
117
  operationID: "service_list",
118
- oAuth2Scopes: [],
118
+ oAuth2Scopes: null,
119
119
 
120
120
  resolvedSecurity: requestSecurity,
121
121
 
@@ -103,7 +103,7 @@ async function $do(
103
103
  options: client._options,
104
104
  baseURL: options?.serverURL ?? client._baseURL ?? "",
105
105
  operationID: "service_update",
106
- oAuth2Scopes: [],
106
+ oAuth2Scopes: null,
107
107
 
108
108
  resolvedSecurity: requestSecurity,
109
109
 
@@ -110,7 +110,7 @@ async function $do(
110
110
  options: client._options,
111
111
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
112
  operationID: "get_session_data_by_session_id",
113
- oAuth2Scopes: [],
113
+ oAuth2Scopes: null,
114
114
 
115
115
  resolvedSecurity: requestSecurity,
116
116