syllable-sdk 0.1.0-alpha.73 → 0.1.0-alpha.75

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 (387) hide show
  1. package/README.md +22 -28
  2. package/docs/sdks/batches/README.md +26 -42
  3. package/docs/sdks/campaigns/README.md +25 -9
  4. package/docs/sdks/incidents/README.md +178 -84
  5. package/docs/sdks/insights/README.md +1 -1
  6. package/docs/sdks/latency/README.md +85 -0
  7. package/docs/sdks/syllablesdktools/README.md +82 -2
  8. package/docs/sdks/takeouts/README.md +11 -11
  9. package/docs/sdks/workflows/README.md +1 -1
  10. package/funcs/incidentsCreate.d.ts +1 -1
  11. package/funcs/incidentsCreate.d.ts.map +1 -1
  12. package/funcs/incidentsCreate.js +2 -2
  13. package/funcs/incidentsCreate.js.map +1 -1
  14. package/funcs/incidentsDelete.d.ts.map +1 -1
  15. package/funcs/incidentsDelete.js +4 -0
  16. package/funcs/incidentsDelete.js.map +1 -1
  17. package/funcs/incidentsGetById.d.ts +1 -1
  18. package/funcs/incidentsGetById.d.ts.map +1 -1
  19. package/funcs/incidentsGetById.js +1 -1
  20. package/funcs/incidentsGetById.js.map +1 -1
  21. package/funcs/incidentsIncidentGetOrganizations.d.ts +15 -0
  22. package/funcs/incidentsIncidentGetOrganizations.d.ts.map +1 -0
  23. package/funcs/{v1PostSessionsDashboard.js → incidentsIncidentGetOrganizations.js} +10 -15
  24. package/funcs/incidentsIncidentGetOrganizations.js.map +1 -0
  25. package/funcs/incidentsList.d.ts +2 -2
  26. package/funcs/incidentsList.d.ts.map +1 -1
  27. package/funcs/incidentsList.js +10 -4
  28. package/funcs/incidentsList.js.map +1 -1
  29. package/funcs/incidentsUpdate.d.ts +1 -2
  30. package/funcs/incidentsUpdate.d.ts.map +1 -1
  31. package/funcs/incidentsUpdate.js +4 -13
  32. package/funcs/incidentsUpdate.js.map +1 -1
  33. package/funcs/insightsList.d.ts +1 -1
  34. package/funcs/insightsList.js +1 -1
  35. package/funcs/insightsToolsCreate.d.ts +1 -1
  36. package/funcs/insightsToolsCreate.js +3 -3
  37. package/funcs/insightsToolsCreate.js.map +1 -1
  38. package/funcs/insightsToolsInsightsToolTest.d.ts +16 -0
  39. package/funcs/insightsToolsInsightsToolTest.d.ts.map +1 -0
  40. package/funcs/insightsToolsInsightsToolTest.js +103 -0
  41. package/funcs/insightsToolsInsightsToolTest.js.map +1 -0
  42. package/funcs/insightsToolsUpdate.d.ts +1 -1
  43. package/funcs/insightsToolsUpdate.js +1 -1
  44. package/funcs/insightsWorkflowsQueueSessionsWorkflow.d.ts +1 -1
  45. package/funcs/insightsWorkflowsQueueSessionsWorkflow.js +1 -1
  46. package/funcs/{outboundBatchesOutboundBatchAdd.d.ts → outboundBatchesAdd.d.ts} +2 -2
  47. package/funcs/outboundBatchesAdd.d.ts.map +1 -0
  48. package/funcs/{outboundBatchesOutboundBatchAdd.js → outboundBatchesAdd.js} +3 -3
  49. package/funcs/outboundBatchesAdd.js.map +1 -0
  50. package/funcs/outboundBatchesList.d.ts +1 -1
  51. package/funcs/outboundBatchesList.d.ts.map +1 -1
  52. package/funcs/outboundBatchesList.js +1 -2
  53. package/funcs/outboundBatchesList.js.map +1 -1
  54. package/funcs/{outboundBatchesOutboundBatchRemove.d.ts → outboundBatchesRemove.d.ts} +2 -2
  55. package/funcs/outboundBatchesRemove.d.ts.map +1 -0
  56. package/funcs/{outboundBatchesOutboundBatchRemove.js → outboundBatchesRemove.js} +3 -3
  57. package/funcs/outboundBatchesRemove.js.map +1 -0
  58. package/funcs/{outboundBatchesOutboundBatchResults.d.ts → outboundBatchesResults.d.ts} +2 -2
  59. package/funcs/outboundBatchesResults.d.ts.map +1 -0
  60. package/funcs/{outboundBatchesOutboundBatchResults.js → outboundBatchesResults.js} +8 -3
  61. package/funcs/outboundBatchesResults.js.map +1 -0
  62. package/funcs/outboundBatchesUpdate.js +1 -1
  63. package/funcs/outboundBatchesUpdate.js.map +1 -1
  64. package/funcs/outboundBatchesUpload.d.ts.map +1 -1
  65. package/funcs/outboundBatchesUpload.js +16 -12
  66. package/funcs/outboundBatchesUpload.js.map +1 -1
  67. package/funcs/outboundCampaignsList.d.ts +1 -1
  68. package/funcs/outboundCampaignsList.d.ts.map +1 -1
  69. package/funcs/outboundCampaignsList.js +1 -2
  70. package/funcs/outboundCampaignsList.js.map +1 -1
  71. package/funcs/{v1PostListDashboard.d.ts → sessionsLatencyGetById.d.ts} +3 -9
  72. package/funcs/sessionsLatencyGetById.d.ts.map +1 -0
  73. package/funcs/{v1PostGetDashboard.js → sessionsLatencyGetById.js} +15 -19
  74. package/funcs/sessionsLatencyGetById.js.map +1 -0
  75. package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts → takeoutsCreate.d.ts} +2 -2
  76. package/funcs/takeoutsCreate.d.ts.map +1 -0
  77. package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js → takeoutsCreate.js} +4 -4
  78. package/funcs/takeoutsCreate.js.map +1 -0
  79. package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts → takeoutsTakeoutsGetByJobId.d.ts} +2 -2
  80. package/funcs/takeoutsTakeoutsGetByJobId.d.ts.map +1 -0
  81. package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js → takeoutsTakeoutsGetByJobId.js} +5 -5
  82. package/funcs/takeoutsTakeoutsGetByJobId.js.map +1 -0
  83. package/jsr.json +1 -1
  84. package/lib/config.d.ts +2 -2
  85. package/lib/config.js +2 -2
  86. package/models/components/batchdetails.d.ts +8 -3
  87. package/models/components/batchdetails.d.ts.map +1 -1
  88. package/models/components/batchdetails.js +8 -2
  89. package/models/components/batchdetails.js.map +1 -1
  90. package/models/components/batchstatus.d.ts +3 -3
  91. package/models/components/batchstatus.js +1 -1
  92. package/models/components/batchstatus.js.map +1 -1
  93. package/models/components/bodyoutboundbatchdelete.d.ts +1 -1
  94. package/models/components/bodyoutboundbatchdelete.d.ts.map +1 -1
  95. package/models/components/bodyoutboundbatchdelete.js +10 -1
  96. package/models/components/bodyoutboundbatchdelete.js.map +1 -1
  97. package/models/components/bodyoutboundbatchupload.d.ts +2 -2
  98. package/models/components/bodyoutboundbatchupload.d.ts.map +1 -1
  99. package/models/components/bodyoutboundbatchupload.js +2 -2
  100. package/models/components/bodyoutboundbatchupload.js.map +1 -1
  101. package/models/components/communicationbatch.d.ts +8 -3
  102. package/models/components/communicationbatch.d.ts.map +1 -1
  103. package/models/components/communicationbatch.js +8 -2
  104. package/models/components/communicationbatch.js.map +1 -1
  105. package/models/components/communicationbatchupdate.d.ts +37 -0
  106. package/models/components/communicationbatchupdate.d.ts.map +1 -0
  107. package/models/components/communicationbatchupdate.js +70 -0
  108. package/models/components/communicationbatchupdate.js.map +1 -0
  109. package/models/components/communicationrequest.d.ts +0 -11
  110. package/models/components/communicationrequest.d.ts.map +1 -1
  111. package/models/components/communicationrequest.js +0 -9
  112. package/models/components/communicationrequest.js.map +1 -1
  113. package/models/components/communicationrequestresult.d.ts +44 -13
  114. package/models/components/communicationrequestresult.d.ts.map +1 -1
  115. package/models/components/communicationrequestresult.js +42 -13
  116. package/models/components/communicationrequestresult.js.map +1 -1
  117. package/models/components/conversation.d.ts +10 -0
  118. package/models/components/conversation.d.ts.map +1 -1
  119. package/models/components/conversation.js +8 -0
  120. package/models/components/conversation.js.map +1 -1
  121. package/models/components/daysofweek.d.ts +49 -0
  122. package/models/components/daysofweek.d.ts.map +1 -0
  123. package/models/components/daysofweek.js +59 -0
  124. package/models/components/daysofweek.js.map +1 -0
  125. package/models/components/incidentcreaterequest.d.ts +75 -0
  126. package/models/components/incidentcreaterequest.d.ts.map +1 -0
  127. package/models/components/{serviceincidentrequest.js → incidentcreaterequest.js} +29 -29
  128. package/models/components/incidentcreaterequest.js.map +1 -0
  129. package/models/components/incidentorganizationresponse.d.ts +33 -0
  130. package/models/components/incidentorganizationresponse.d.ts.map +1 -0
  131. package/models/components/incidentorganizationresponse.js +72 -0
  132. package/models/components/incidentorganizationresponse.js.map +1 -0
  133. package/models/components/incidentproperties.d.ts +64 -0
  134. package/models/components/incidentproperties.d.ts.map +1 -0
  135. package/models/components/incidentproperties.js +63 -0
  136. package/models/components/incidentproperties.js.map +1 -0
  137. package/models/components/incidentresponse.d.ts +90 -0
  138. package/models/components/incidentresponse.d.ts.map +1 -0
  139. package/models/components/{serviceincidentresponse.js → incidentresponse.js} +33 -33
  140. package/models/components/incidentresponse.js.map +1 -0
  141. package/models/components/incidentupdaterequest.d.ts +90 -0
  142. package/models/components/incidentupdaterequest.d.ts.map +1 -0
  143. package/models/{operations/incidentupdate.js → components/incidentupdaterequest.js} +43 -10
  144. package/models/components/incidentupdaterequest.js.map +1 -0
  145. package/models/components/index.d.ts +16 -2
  146. package/models/components/index.d.ts.map +1 -1
  147. package/models/components/index.js +16 -2
  148. package/models/components/index.js.map +1 -1
  149. package/models/components/insighttooltestinput.d.ts +40 -0
  150. package/models/components/insighttooltestinput.d.ts.map +1 -0
  151. package/models/components/insighttooltestinput.js +72 -0
  152. package/models/components/insighttooltestinput.js.map +1 -0
  153. package/models/components/inspectlatencyresponse.d.ts +42 -0
  154. package/models/components/inspectlatencyresponse.d.ts.map +1 -0
  155. package/models/components/inspectlatencyresponse.js +74 -0
  156. package/models/components/inspectlatencyresponse.js.map +1 -0
  157. package/models/components/latencycategory.d.ts +37 -0
  158. package/models/components/latencycategory.d.ts.map +1 -0
  159. package/models/components/latencycategory.js +53 -0
  160. package/models/components/latencycategory.js.map +1 -0
  161. package/models/components/latencyentry.d.ts +50 -0
  162. package/models/components/latencyentry.d.ts.map +1 -0
  163. package/models/components/latencyentry.js +92 -0
  164. package/models/components/latencyentry.js.map +1 -0
  165. package/models/components/latencyunittype.d.ts +37 -0
  166. package/models/components/latencyunittype.d.ts.map +1 -0
  167. package/models/components/latencyunittype.js +53 -0
  168. package/models/components/latencyunittype.js.map +1 -0
  169. package/models/components/listresponsecommunicationbatch.d.ts +53 -0
  170. package/models/components/listresponsecommunicationbatch.d.ts.map +1 -0
  171. package/models/components/listresponsecommunicationbatch.js +81 -0
  172. package/models/components/listresponsecommunicationbatch.js.map +1 -0
  173. package/models/components/listresponseincidentresponse.d.ts +53 -0
  174. package/models/components/listresponseincidentresponse.d.ts.map +1 -0
  175. package/models/components/listresponseincidentresponse.js +81 -0
  176. package/models/components/listresponseincidentresponse.js.map +1 -0
  177. package/models/components/listresponseoutboundcampaign.d.ts +53 -0
  178. package/models/components/listresponseoutboundcampaign.d.ts.map +1 -0
  179. package/models/components/listresponseoutboundcampaign.js +81 -0
  180. package/models/components/listresponseoutboundcampaign.js.map +1 -0
  181. package/models/components/outboundcampaign.d.ts +17 -6
  182. package/models/components/outboundcampaign.d.ts.map +1 -1
  183. package/models/components/outboundcampaign.js +13 -6
  184. package/models/components/outboundcampaign.js.map +1 -1
  185. package/models/components/outboundcampaigninput.d.ts +17 -6
  186. package/models/components/outboundcampaigninput.d.ts.map +1 -1
  187. package/models/components/outboundcampaigninput.js +13 -6
  188. package/models/components/outboundcampaigninput.js.map +1 -1
  189. package/models/components/summaryentry.d.ts +46 -0
  190. package/models/components/summaryentry.d.ts.map +1 -0
  191. package/models/components/summaryentry.js +87 -0
  192. package/models/components/summaryentry.js.map +1 -0
  193. package/models/operations/incidentdelete.d.ts +2 -0
  194. package/models/operations/incidentdelete.d.ts.map +1 -1
  195. package/models/operations/incidentdelete.js +2 -0
  196. package/models/operations/incidentdelete.js.map +1 -1
  197. package/models/operations/incidentlist.d.ts +44 -2
  198. package/models/operations/incidentlist.d.ts.map +1 -1
  199. package/models/operations/incidentlist.js +44 -4
  200. package/models/operations/incidentlist.js.map +1 -1
  201. package/models/operations/index.d.ts +2 -2
  202. package/models/operations/index.d.ts.map +1 -1
  203. package/models/operations/index.js +2 -2
  204. package/models/operations/index.js.map +1 -1
  205. package/models/operations/outboundbatchresults.d.ts +4 -0
  206. package/models/operations/outboundbatchresults.d.ts.map +1 -1
  207. package/models/operations/outboundbatchresults.js +6 -0
  208. package/models/operations/outboundbatchresults.js.map +1 -1
  209. package/models/operations/outboundbatchupdate.d.ts +2 -2
  210. package/models/operations/outboundbatchupdate.d.ts.map +1 -1
  211. package/models/operations/outboundbatchupdate.js +4 -4
  212. package/models/operations/outboundbatchupdate.js.map +1 -1
  213. package/models/operations/outboundbatchupload.d.ts +2 -2
  214. package/models/operations/outboundbatchupload.d.ts.map +1 -1
  215. package/models/operations/outboundbatchupload.js +4 -2
  216. package/models/operations/outboundbatchupload.js.map +1 -1
  217. package/models/operations/outboundcampaigngetbyid.d.ts +2 -2
  218. package/models/operations/outboundcampaigngetbyid.js +2 -2
  219. package/models/operations/outboundcampaigngetbyid.js.map +1 -1
  220. package/models/operations/sessionlatencygetbyid.d.ts +29 -0
  221. package/models/operations/sessionlatencygetbyid.d.ts.map +1 -0
  222. package/models/operations/sessionlatencygetbyid.js +68 -0
  223. package/models/operations/sessionlatencygetbyid.js.map +1 -0
  224. package/models/operations/takeoutsgetbyjobid.d.ts +29 -0
  225. package/models/operations/takeoutsgetbyjobid.d.ts.map +1 -0
  226. package/models/operations/{gettakeoutapiv1takeoutsgetjobidget.js → takeoutsgetbyjobid.js} +17 -17
  227. package/models/operations/takeoutsgetbyjobid.js.map +1 -0
  228. package/openapi.json +1707 -727
  229. package/package.json +1 -1
  230. package/sdk/batches.d.ts +4 -4
  231. package/sdk/batches.d.ts.map +1 -1
  232. package/sdk/batches.js +9 -9
  233. package/sdk/batches.js.map +1 -1
  234. package/sdk/campaigns.d.ts +1 -1
  235. package/sdk/campaigns.d.ts.map +1 -1
  236. package/sdk/incidents.d.ts +20 -13
  237. package/sdk/incidents.d.ts.map +1 -1
  238. package/sdk/incidents.js +26 -16
  239. package/sdk/incidents.js.map +1 -1
  240. package/sdk/insights.d.ts +1 -1
  241. package/sdk/insights.js +1 -1
  242. package/sdk/latency.d.ts +10 -0
  243. package/sdk/latency.d.ts.map +1 -0
  244. package/sdk/latency.js +19 -0
  245. package/sdk/latency.js.map +1 -0
  246. package/sdk/sdk.d.ts +0 -3
  247. package/sdk/sdk.d.ts.map +1 -1
  248. package/sdk/sdk.js +0 -4
  249. package/sdk/sdk.js.map +1 -1
  250. package/sdk/sessions.d.ts +3 -0
  251. package/sdk/sessions.d.ts.map +1 -1
  252. package/sdk/sessions.js +4 -0
  253. package/sdk/sessions.js.map +1 -1
  254. package/sdk/syllablesdktools.d.ts +9 -2
  255. package/sdk/syllablesdktools.d.ts.map +1 -1
  256. package/sdk/syllablesdktools.js +12 -2
  257. package/sdk/syllablesdktools.js.map +1 -1
  258. package/sdk/takeouts.d.ts +2 -2
  259. package/sdk/takeouts.d.ts.map +1 -1
  260. package/sdk/takeouts.js +6 -6
  261. package/sdk/takeouts.js.map +1 -1
  262. package/sdk/workflows.d.ts +1 -1
  263. package/sdk/workflows.js +1 -1
  264. package/src/funcs/incidentsCreate.ts +5 -5
  265. package/src/funcs/incidentsDelete.ts +6 -1
  266. package/src/funcs/incidentsGetById.ts +3 -3
  267. package/src/funcs/{v1PostSessionsDashboard.ts → incidentsIncidentGetOrganizations.ts} +10 -15
  268. package/src/funcs/incidentsList.ts +12 -6
  269. package/src/funcs/incidentsUpdate.ts +8 -18
  270. package/src/funcs/insightsList.ts +1 -1
  271. package/src/funcs/insightsToolsCreate.ts +4 -4
  272. package/src/funcs/{v1PostGetDashboard.ts → insightsToolsInsightsToolTest.ts} +17 -24
  273. package/src/funcs/insightsToolsUpdate.ts +1 -1
  274. package/src/funcs/insightsWorkflowsQueueSessionsWorkflow.ts +1 -1
  275. package/src/funcs/{outboundBatchesOutboundBatchAdd.ts → outboundBatchesAdd.ts} +1 -1
  276. package/src/funcs/outboundBatchesList.ts +3 -4
  277. package/src/funcs/{outboundBatchesOutboundBatchRemove.ts → outboundBatchesRemove.ts} +1 -1
  278. package/src/funcs/{outboundBatchesOutboundBatchResults.ts → outboundBatchesResults.ts} +8 -2
  279. package/src/funcs/outboundBatchesUpdate.ts +1 -1
  280. package/src/funcs/outboundBatchesUpload.ts +23 -20
  281. package/src/funcs/outboundCampaignsList.ts +3 -4
  282. package/src/funcs/sessionsLatencyGetById.ts +140 -0
  283. package/src/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts → takeoutsCreate.ts} +2 -2
  284. package/src/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts → takeoutsTakeoutsGetByJobId.ts} +4 -7
  285. package/src/lib/config.ts +2 -2
  286. package/src/models/components/batchdetails.ts +16 -5
  287. package/src/models/components/batchstatus.ts +1 -1
  288. package/src/models/components/bodyoutboundbatchdelete.ts +11 -2
  289. package/src/models/components/bodyoutboundbatchupload.ts +4 -4
  290. package/src/models/components/communicationbatch.ts +16 -5
  291. package/src/models/components/communicationbatchupdate.ts +85 -0
  292. package/src/models/components/communicationrequest.ts +0 -23
  293. package/src/models/components/communicationrequestresult.ts +87 -25
  294. package/src/models/components/conversation.ts +18 -0
  295. package/src/models/components/daysofweek.ts +42 -0
  296. package/src/models/components/{serviceincidentrequest.ts → incidentcreaterequest.ts} +69 -39
  297. package/src/models/components/incidentorganizationresponse.ts +85 -0
  298. package/src/models/components/incidentproperties.ts +49 -0
  299. package/src/models/components/incidentresponse.ts +182 -0
  300. package/src/models/components/incidentupdaterequest.ts +182 -0
  301. package/src/models/components/index.ts +16 -2
  302. package/src/models/components/insighttooltestinput.ts +90 -0
  303. package/src/models/components/inspectlatencyresponse.ts +102 -0
  304. package/src/models/components/latencycategory.ts +36 -0
  305. package/src/models/components/latencyentry.ts +124 -0
  306. package/src/models/components/latencyunittype.ts +36 -0
  307. package/src/models/components/listresponsecommunicationbatch.ts +118 -0
  308. package/src/models/components/listresponseincidentresponse.ts +118 -0
  309. package/src/models/components/listresponseoutboundcampaign.ts +118 -0
  310. package/src/models/components/outboundcampaign.ts +33 -12
  311. package/src/models/components/outboundcampaigninput.ts +33 -12
  312. package/src/models/components/summaryentry.ts +110 -0
  313. package/src/models/operations/incidentdelete.ts +4 -0
  314. package/src/models/operations/incidentlist.ts +87 -6
  315. package/src/models/operations/index.ts +2 -2
  316. package/src/models/operations/outboundbatchresults.ts +10 -0
  317. package/src/models/operations/outboundbatchupdate.ts +6 -6
  318. package/src/models/operations/outboundbatchupload.ts +8 -4
  319. package/src/models/operations/outboundcampaigngetbyid.ts +4 -4
  320. package/src/models/operations/sessionlatencygetbyid.ts +77 -0
  321. package/src/models/operations/takeoutsgetbyjobid.ts +75 -0
  322. package/src/sdk/batches.ts +10 -10
  323. package/src/sdk/campaigns.ts +1 -1
  324. package/src/sdk/incidents.ts +43 -27
  325. package/src/sdk/insights.ts +1 -1
  326. package/src/sdk/latency.ts +25 -0
  327. package/src/sdk/sdk.ts +0 -6
  328. package/src/sdk/sessions.ts +6 -0
  329. package/src/sdk/syllablesdktools.ts +20 -2
  330. package/src/sdk/takeouts.ts +7 -7
  331. package/src/sdk/workflows.ts +1 -1
  332. package/docs/sdks/v1/README.md +0 -497
  333. package/funcs/outboundBatchesOutboundBatchAdd.d.ts.map +0 -1
  334. package/funcs/outboundBatchesOutboundBatchAdd.js.map +0 -1
  335. package/funcs/outboundBatchesOutboundBatchRemove.d.ts.map +0 -1
  336. package/funcs/outboundBatchesOutboundBatchRemove.js.map +0 -1
  337. package/funcs/outboundBatchesOutboundBatchResults.d.ts.map +0 -1
  338. package/funcs/outboundBatchesOutboundBatchResults.js.map +0 -1
  339. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +0 -1
  340. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +0 -1
  341. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +0 -1
  342. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +0 -1
  343. package/funcs/v1PostGetDashboard.d.ts +0 -20
  344. package/funcs/v1PostGetDashboard.d.ts.map +0 -1
  345. package/funcs/v1PostGetDashboard.js.map +0 -1
  346. package/funcs/v1PostListDashboard.d.ts.map +0 -1
  347. package/funcs/v1PostListDashboard.js +0 -117
  348. package/funcs/v1PostListDashboard.js.map +0 -1
  349. package/funcs/v1PostSessionEventsDashboard.d.ts +0 -21
  350. package/funcs/v1PostSessionEventsDashboard.d.ts.map +0 -1
  351. package/funcs/v1PostSessionEventsDashboard.js +0 -94
  352. package/funcs/v1PostSessionEventsDashboard.js.map +0 -1
  353. package/funcs/v1PostSessionSummaryDashboard.d.ts +0 -21
  354. package/funcs/v1PostSessionSummaryDashboard.d.ts.map +0 -1
  355. package/funcs/v1PostSessionSummaryDashboard.js +0 -94
  356. package/funcs/v1PostSessionSummaryDashboard.js.map +0 -1
  357. package/funcs/v1PostSessionTransfersDashboard.d.ts +0 -21
  358. package/funcs/v1PostSessionTransfersDashboard.d.ts.map +0 -1
  359. package/funcs/v1PostSessionTransfersDashboard.js +0 -94
  360. package/funcs/v1PostSessionTransfersDashboard.js.map +0 -1
  361. package/funcs/v1PostSessionsDashboard.d.ts +0 -21
  362. package/funcs/v1PostSessionsDashboard.d.ts.map +0 -1
  363. package/funcs/v1PostSessionsDashboard.js.map +0 -1
  364. package/models/components/serviceincidentrequest.d.ts +0 -45
  365. package/models/components/serviceincidentrequest.d.ts.map +0 -1
  366. package/models/components/serviceincidentrequest.js.map +0 -1
  367. package/models/components/serviceincidentresponse.d.ts +0 -51
  368. package/models/components/serviceincidentresponse.d.ts.map +0 -1
  369. package/models/components/serviceincidentresponse.js.map +0 -1
  370. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +0 -29
  371. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +0 -1
  372. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +0 -1
  373. package/models/operations/incidentupdate.d.ts +0 -32
  374. package/models/operations/incidentupdate.d.ts.map +0 -1
  375. package/models/operations/incidentupdate.js.map +0 -1
  376. package/sdk/v1.d.ts +0 -78
  377. package/sdk/v1.d.ts.map +0 -1
  378. package/sdk/v1.js +0 -102
  379. package/sdk/v1.js.map +0 -1
  380. package/src/funcs/v1PostListDashboard.ts +0 -151
  381. package/src/funcs/v1PostSessionEventsDashboard.ts +0 -117
  382. package/src/funcs/v1PostSessionSummaryDashboard.ts +0 -117
  383. package/src/funcs/v1PostSessionTransfersDashboard.ts +0 -117
  384. package/src/models/components/serviceincidentresponse.ts +0 -139
  385. package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +0 -87
  386. package/src/models/operations/incidentupdate.ts +0 -82
  387. package/src/sdk/v1.ts +0 -140
package/sdk/workflows.js CHANGED
@@ -62,7 +62,7 @@ class Workflows extends sdks_js_1.ClientSDK {
62
62
  * Queue Insights Workflow For Sessions
63
63
  *
64
64
  * @remarks
65
- * Delete a Insights workflow.
65
+ * Manually queue sessions for insights workflow evaluation.
66
66
  */
67
67
  async queueSessionsWorkflow(request, options) {
68
68
  return (0, fp_js_1.unwrapAsync)((0, insightsWorkflowsQueueSessionsWorkflow_js_1.insightsWorkflowsQueueSessionsWorkflow)(this, request, options));
@@ -31,11 +31,11 @@ import { Result } from "../types/fp.js";
31
31
  */
32
32
  export async function incidentsCreate(
33
33
  client: SyllableSDKCore,
34
- request: components.ServiceIncidentRequest,
34
+ request: components.IncidentCreateRequest,
35
35
  options?: RequestOptions,
36
36
  ): Promise<
37
37
  Result<
38
- components.ServiceIncidentResponse,
38
+ components.IncidentResponse,
39
39
  | errors.HTTPValidationError
40
40
  | SDKError
41
41
  | SDKValidationError
@@ -48,7 +48,7 @@ export async function incidentsCreate(
48
48
  > {
49
49
  const parsed = safeParse(
50
50
  request,
51
- (value) => components.ServiceIncidentRequest$outboundSchema.parse(value),
51
+ (value) => components.IncidentCreateRequest$outboundSchema.parse(value),
52
52
  "Input validation failed",
53
53
  );
54
54
  if (!parsed.ok) {
@@ -112,7 +112,7 @@ export async function incidentsCreate(
112
112
  };
113
113
 
114
114
  const [result] = await M.match<
115
- components.ServiceIncidentResponse,
115
+ components.IncidentResponse,
116
116
  | errors.HTTPValidationError
117
117
  | SDKError
118
118
  | SDKValidationError
@@ -122,7 +122,7 @@ export async function incidentsCreate(
122
122
  | RequestTimeoutError
123
123
  | ConnectionError
124
124
  >(
125
- M.json(200, components.ServiceIncidentResponse$inboundSchema),
125
+ M.json(200, components.IncidentResponse$inboundSchema),
126
126
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
127
127
  M.fail("4XX"),
128
128
  M.fail("5XX"),
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { SyllableSDKCore } from "../core.js";
7
- import { encodeSimple } from "../lib/encodings.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
10
10
  import { safeParse } from "../lib/schemas.js";
@@ -67,6 +67,10 @@ export async function incidentsDelete(
67
67
 
68
68
  const path = pathToFunc("/api/v1/incidents/{incident_id}")(pathParams);
69
69
 
70
+ const query = encodeFormQuery({
71
+ "reason": payload.reason,
72
+ });
73
+
70
74
  const headers = new Headers(compactMap({
71
75
  Accept: "application/json",
72
76
  }));
@@ -95,6 +99,7 @@ export async function incidentsDelete(
95
99
  baseURL: options?.serverURL,
96
100
  path: path,
97
101
  headers: headers,
102
+ query: query,
98
103
  body: body,
99
104
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
100
105
  }, options);
@@ -36,7 +36,7 @@ export async function incidentsGetById(
36
36
  options?: RequestOptions,
37
37
  ): Promise<
38
38
  Result<
39
- components.ServiceIncidentResponse,
39
+ components.IncidentResponse,
40
40
  | errors.HTTPValidationError
41
41
  | SDKError
42
42
  | SDKValidationError
@@ -119,7 +119,7 @@ export async function incidentsGetById(
119
119
  };
120
120
 
121
121
  const [result] = await M.match<
122
- components.ServiceIncidentResponse,
122
+ components.IncidentResponse,
123
123
  | errors.HTTPValidationError
124
124
  | SDKError
125
125
  | SDKValidationError
@@ -129,7 +129,7 @@ export async function incidentsGetById(
129
129
  | RequestTimeoutError
130
130
  | ConnectionError
131
131
  >(
132
- M.json(200, components.ServiceIncidentResponse$inboundSchema),
132
+ M.json(200, components.IncidentResponse$inboundSchema),
133
133
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
134
134
  M.fail("4XX"),
135
135
  M.fail("5XX"),
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod";
5
6
  import { SyllableSDKCore } from "../core.js";
6
7
  import * as M from "../lib/matchers.js";
7
8
  import { compactMap } from "../lib/primitives.js";
@@ -21,23 +22,17 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
22
  import { Result } from "../types/fp.js";
22
23
 
23
24
  /**
24
- * Post Sessions
25
+ * Get Organizations
25
26
  *
26
27
  * @remarks
27
- * METHOD: POST
28
- * URL: /dashboard/sessions
29
- * ARGUMENTS: None
30
- * RETURNS: Dashboard info for embedding
31
- * DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
32
- *
33
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
28
+ * Get all organizations
34
29
  */
35
- export async function v1PostSessionsDashboard(
30
+ export async function incidentsIncidentGetOrganizations(
36
31
  client: SyllableSDKCore,
37
32
  options?: RequestOptions,
38
33
  ): Promise<
39
34
  Result<
40
- components.Dashboard,
35
+ Array<components.IncidentOrganizationResponse>,
41
36
  | SDKError
42
37
  | SDKValidationError
43
38
  | UnexpectedClientError
@@ -47,7 +42,7 @@ export async function v1PostSessionsDashboard(
47
42
  | ConnectionError
48
43
  >
49
44
  > {
50
- const path = pathToFunc("/api/v1/dashboards/sessions")();
45
+ const path = pathToFunc("/api/v1/incidents/organizations")();
51
46
 
52
47
  const headers = new Headers(compactMap({
53
48
  Accept: "application/json",
@@ -59,7 +54,7 @@ export async function v1PostSessionsDashboard(
59
54
 
60
55
  const context = {
61
56
  baseURL: options?.serverURL ?? "",
62
- operationID: "post_sessions_dashboard",
57
+ operationID: "incident_get_organizations",
63
58
  oAuth2Scopes: [],
64
59
 
65
60
  resolvedSecurity: requestSecurity,
@@ -73,7 +68,7 @@ export async function v1PostSessionsDashboard(
73
68
 
74
69
  const requestRes = client._createRequest(context, {
75
70
  security: requestSecurity,
76
- method: "POST",
71
+ method: "GET",
77
72
  baseURL: options?.serverURL,
78
73
  path: path,
79
74
  headers: headers,
@@ -96,7 +91,7 @@ export async function v1PostSessionsDashboard(
96
91
  const response = doResult.value;
97
92
 
98
93
  const [result] = await M.match<
99
- components.Dashboard,
94
+ Array<components.IncidentOrganizationResponse>,
100
95
  | SDKError
101
96
  | SDKValidationError
102
97
  | UnexpectedClientError
@@ -105,7 +100,7 @@ export async function v1PostSessionsDashboard(
105
100
  | RequestTimeoutError
106
101
  | ConnectionError
107
102
  >(
108
- M.json(200, components.Dashboard$inboundSchema),
103
+ M.json(200, z.array(components.IncidentOrganizationResponse$inboundSchema)),
109
104
  M.fail("4XX"),
110
105
  M.fail("5XX"),
111
106
  )(response);
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { SyllableSDKCore } from "../core.js";
7
6
  import { encodeFormQuery } from "../lib/encodings.js";
8
7
  import * as M from "../lib/matchers.js";
@@ -29,7 +28,7 @@ import { Result } from "../types/fp.js";
29
28
  * List Incidents
30
29
  *
31
30
  * @remarks
32
- * List service incidents with pagination
31
+ * List service incidents with pagination and filtering
33
32
  */
34
33
  export async function incidentsList(
35
34
  client: SyllableSDKCore,
@@ -37,7 +36,7 @@ export async function incidentsList(
37
36
  options?: RequestOptions,
38
37
  ): Promise<
39
38
  Result<
40
- Array<components.ServiceIncidentResponse>,
39
+ components.ListResponseIncidentResponse,
41
40
  | errors.HTTPValidationError
42
41
  | SDKError
43
42
  | SDKValidationError
@@ -62,8 +61,15 @@ export async function incidentsList(
62
61
  const path = pathToFunc("/api/v1/incidents/")();
63
62
 
64
63
  const query = encodeFormQuery({
64
+ "end_datetime": payload.end_datetime,
65
+ "fields": payload.fields,
65
66
  "limit": payload.limit,
66
- "offset": payload.offset,
67
+ "order_by": payload.order_by,
68
+ "order_by_direction": payload.order_by_direction,
69
+ "page": payload.page,
70
+ "search_field_values": payload.search_field_values,
71
+ "search_fields": payload.search_fields,
72
+ "start_datetime": payload.start_datetime,
67
73
  });
68
74
 
69
75
  const headers = new Headers(compactMap({
@@ -119,7 +125,7 @@ export async function incidentsList(
119
125
  };
120
126
 
121
127
  const [result] = await M.match<
122
- Array<components.ServiceIncidentResponse>,
128
+ components.ListResponseIncidentResponse,
123
129
  | errors.HTTPValidationError
124
130
  | SDKError
125
131
  | SDKValidationError
@@ -129,7 +135,7 @@ export async function incidentsList(
129
135
  | RequestTimeoutError
130
136
  | ConnectionError
131
137
  >(
132
- M.json(200, z.array(components.ServiceIncidentResponse$inboundSchema)),
138
+ M.json(200, components.ListResponseIncidentResponse$inboundSchema),
133
139
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
134
140
  M.fail("4XX"),
135
141
  M.fail("5XX"),
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { SyllableSDKCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -21,7 +21,6 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKError } from "../models/errors/sdkerror.js";
23
23
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
- import * as operations from "../models/operations/index.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
27
26
  /**
@@ -32,11 +31,11 @@ import { Result } from "../types/fp.js";
32
31
  */
33
32
  export async function incidentsUpdate(
34
33
  client: SyllableSDKCore,
35
- request: operations.IncidentUpdateRequest,
34
+ request: components.IncidentUpdateRequest,
36
35
  options?: RequestOptions,
37
36
  ): Promise<
38
37
  Result<
39
- components.ServiceIncidentResponse,
38
+ components.IncidentResponse,
40
39
  | errors.HTTPValidationError
41
40
  | SDKError
42
41
  | SDKValidationError
@@ -49,25 +48,16 @@ export async function incidentsUpdate(
49
48
  > {
50
49
  const parsed = safeParse(
51
50
  request,
52
- (value) => operations.IncidentUpdateRequest$outboundSchema.parse(value),
51
+ (value) => components.IncidentUpdateRequest$outboundSchema.parse(value),
53
52
  "Input validation failed",
54
53
  );
55
54
  if (!parsed.ok) {
56
55
  return parsed;
57
56
  }
58
57
  const payload = parsed.value;
59
- const body = encodeJSON("body", payload.ServiceIncidentRequest, {
60
- explode: true,
61
- });
62
-
63
- const pathParams = {
64
- incident_id: encodeSimple("incident_id", payload.incident_id, {
65
- explode: false,
66
- charEncoding: "percent",
67
- }),
68
- };
58
+ const body = encodeJSON("body", payload, { explode: true });
69
59
 
70
- const path = pathToFunc("/api/v1/incidents/{incident_id}")(pathParams);
60
+ const path = pathToFunc("/api/v1/incidents/")();
71
61
 
72
62
  const headers = new Headers(compactMap({
73
63
  "Content-Type": "application/json",
@@ -122,7 +112,7 @@ export async function incidentsUpdate(
122
112
  };
123
113
 
124
114
  const [result] = await M.match<
125
- components.ServiceIncidentResponse,
115
+ components.IncidentResponse,
126
116
  | errors.HTTPValidationError
127
117
  | SDKError
128
118
  | SDKValidationError
@@ -132,7 +122,7 @@ export async function incidentsUpdate(
132
122
  | RequestTimeoutError
133
123
  | ConnectionError
134
124
  >(
135
- M.json(200, components.ServiceIncidentResponse$inboundSchema),
125
+ M.json(200, components.IncidentResponse$inboundSchema),
136
126
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
137
127
  M.fail("4XX"),
138
128
  M.fail("5XX"),
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * Insights List
29
29
  *
30
30
  * @remarks
31
- * List the existing insight_tools
31
+ * List the evaluated insights for sessions.
32
32
  */
33
33
  export async function insightsList(
34
34
  client: SyllableSDKCore,
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  * Create Insight Tool
28
28
  *
29
29
  * @remarks
30
- * Create a new tool in the insights
30
+ * Create a new insight tool.
31
31
  */
32
32
  export async function insightsToolsCreate(
33
33
  client: SyllableSDKCore,
@@ -98,7 +98,7 @@ export async function insightsToolsCreate(
98
98
 
99
99
  const doResult = await client._do(req, {
100
100
  context,
101
- errorCodes: ["422", "4XX", "5XX"],
101
+ errorCodes: ["400", "422", "4XX", "500", "5XX"],
102
102
  retryConfig: context.retryConfig,
103
103
  retryCodes: context.retryCodes,
104
104
  });
@@ -124,8 +124,8 @@ export async function insightsToolsCreate(
124
124
  >(
125
125
  M.json(200, components.InsightToolOutput$inboundSchema),
126
126
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
127
- M.fail("4XX"),
128
- M.fail("5XX"),
127
+ M.fail([400, "4XX"]),
128
+ M.fail([500, "5XX"]),
129
129
  )(response, { extraFields: responseFields });
130
130
  if (!result.ok) {
131
131
  return result;
@@ -2,8 +2,9 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod";
5
6
  import { SyllableSDKCore } from "../core.js";
6
- import { encodeFormQuery } from "../lib/encodings.js";
7
+ import { encodeJSON } from "../lib/encodings.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -21,25 +22,21 @@ import {
21
22
  import * as errors from "../models/errors/index.js";
22
23
  import { SDKError } from "../models/errors/sdkerror.js";
23
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
- import * as operations from "../models/operations/index.js";
25
25
  import { Result } from "../types/fp.js";
26
26
 
27
27
  /**
28
- * Post Fetch Info
28
+ * Test Insights Tool
29
29
  *
30
30
  * @remarks
31
- * METHOD: POST
32
- * URL: /dashboard/fetch_info
33
- * ARGUMENTS: None
34
- * RETURNS: Dashboard info for embedding
31
+ * Manually run the given insight tool against a session and return the response.
35
32
  */
36
- export async function v1PostGetDashboard(
33
+ export async function insightsToolsInsightsToolTest(
37
34
  client: SyllableSDKCore,
38
- request: operations.PostGetDashboardRequest,
35
+ request: components.InsightToolTestInput,
39
36
  options?: RequestOptions,
40
37
  ): Promise<
41
38
  Result<
42
- components.DashboardTokenResponse,
39
+ any,
43
40
  | errors.HTTPValidationError
44
41
  | SDKError
45
42
  | SDKValidationError
@@ -52,22 +49,19 @@ export async function v1PostGetDashboard(
52
49
  > {
53
50
  const parsed = safeParse(
54
51
  request,
55
- (value) => operations.PostGetDashboardRequest$outboundSchema.parse(value),
52
+ (value) => components.InsightToolTestInput$outboundSchema.parse(value),
56
53
  "Input validation failed",
57
54
  );
58
55
  if (!parsed.ok) {
59
56
  return parsed;
60
57
  }
61
58
  const payload = parsed.value;
62
- const body = null;
59
+ const body = encodeJSON("body", payload, { explode: true });
63
60
 
64
- const path = pathToFunc("/api/v1/dashboards/fetch_info")();
65
-
66
- const query = encodeFormQuery({
67
- "dashboard_name": payload.dashboard_name,
68
- });
61
+ const path = pathToFunc("/api/v1/insights/tools-test")();
69
62
 
70
63
  const headers = new Headers(compactMap({
64
+ "Content-Type": "application/json",
71
65
  Accept: "application/json",
72
66
  }));
73
67
 
@@ -77,7 +71,7 @@ export async function v1PostGetDashboard(
77
71
 
78
72
  const context = {
79
73
  baseURL: options?.serverURL ?? "",
80
- operationID: "post_get_dashboard",
74
+ operationID: "insights_tool_test",
81
75
  oAuth2Scopes: [],
82
76
 
83
77
  resolvedSecurity: requestSecurity,
@@ -95,7 +89,6 @@ export async function v1PostGetDashboard(
95
89
  baseURL: options?.serverURL,
96
90
  path: path,
97
91
  headers: headers,
98
- query: query,
99
92
  body: body,
100
93
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
101
94
  }, options);
@@ -106,7 +99,7 @@ export async function v1PostGetDashboard(
106
99
 
107
100
  const doResult = await client._do(req, {
108
101
  context,
109
- errorCodes: ["422", "4XX", "5XX"],
102
+ errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
110
103
  retryConfig: context.retryConfig,
111
104
  retryCodes: context.retryCodes,
112
105
  });
@@ -120,7 +113,7 @@ export async function v1PostGetDashboard(
120
113
  };
121
114
 
122
115
  const [result] = await M.match<
123
- components.DashboardTokenResponse,
116
+ any,
124
117
  | errors.HTTPValidationError
125
118
  | SDKError
126
119
  | SDKValidationError
@@ -130,10 +123,10 @@ export async function v1PostGetDashboard(
130
123
  | RequestTimeoutError
131
124
  | ConnectionError
132
125
  >(
133
- M.json(200, components.DashboardTokenResponse$inboundSchema),
126
+ M.json(200, z.any()),
134
127
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
135
- M.fail("4XX"),
136
- M.fail("5XX"),
128
+ M.fail([400, 404, "4XX"]),
129
+ M.fail([500, "5XX"]),
137
130
  )(response, { extraFields: responseFields });
138
131
  if (!result.ok) {
139
132
  return result;
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * Update Insights Tool
29
29
  *
30
30
  * @remarks
31
- * Update a InsightTool.
31
+ * Update an Insights tool.
32
32
  */
33
33
  export async function insightsToolsUpdate(
34
34
  client: SyllableSDKCore,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * Queue Insights Workflow For Sessions
29
29
  *
30
30
  * @remarks
31
- * Delete a Insights workflow.
31
+ * Manually queue sessions for insights workflow evaluation.
32
32
  */
33
33
  export async function insightsWorkflowsQueueSessionsWorkflow(
34
34
  client: SyllableSDKCore,
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  /**
28
28
  * Create Outbound Communication Request
29
29
  */
30
- export async function outboundBatchesOutboundBatchAdd(
30
+ export async function outboundBatchesAdd(
31
31
  client: SyllableSDKCore,
32
32
  request: operations.OutboundBatchAddRequest,
33
33
  options?: RequestOptions,
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { SyllableSDKCore } from "../core.js";
7
6
  import { encodeFormQuery } from "../lib/encodings.js";
8
7
  import * as M from "../lib/matchers.js";
@@ -34,7 +33,7 @@ export async function outboundBatchesList(
34
33
  options?: RequestOptions,
35
34
  ): Promise<
36
35
  Result<
37
- Array<components.CommunicationBatch>,
36
+ components.ListResponseCommunicationBatch,
38
37
  | errors.HTTPValidationError
39
38
  | SDKError
40
39
  | SDKValidationError
@@ -123,7 +122,7 @@ export async function outboundBatchesList(
123
122
  };
124
123
 
125
124
  const [result] = await M.match<
126
- Array<components.CommunicationBatch>,
125
+ components.ListResponseCommunicationBatch,
127
126
  | errors.HTTPValidationError
128
127
  | SDKError
129
128
  | SDKValidationError
@@ -133,7 +132,7 @@ export async function outboundBatchesList(
133
132
  | RequestTimeoutError
134
133
  | ConnectionError
135
134
  >(
136
- M.json(200, z.array(components.CommunicationBatch$inboundSchema)),
135
+ M.json(200, components.ListResponseCommunicationBatch$inboundSchema),
137
136
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
138
137
  M.fail("4XX"),
139
138
  M.fail("5XX"),
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  /**
28
28
  * Delete Requests By List Of Reference Ids
29
29
  */
30
- export async function outboundBatchesOutboundBatchRemove(
30
+ export async function outboundBatchesRemove(
31
31
  client: SyllableSDKCore,
32
32
  request: operations.OutboundBatchRemoveRequest,
33
33
  options?: RequestOptions,
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { SyllableSDKCore } from "../core.js";
7
- import { encodeSimple } from "../lib/encodings.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
10
10
  import { safeParse } from "../lib/schemas.js";
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  /**
29
29
  * Fetch Outbound Communication Batch Results
30
30
  */
31
- export async function outboundBatchesOutboundBatchResults(
31
+ export async function outboundBatchesResults(
32
32
  client: SyllableSDKCore,
33
33
  request: operations.OutboundBatchResultsRequest,
34
34
  options?: RequestOptions,
@@ -68,6 +68,11 @@ export async function outboundBatchesOutboundBatchResults(
68
68
  pathParams,
69
69
  );
70
70
 
71
+ const query = encodeFormQuery({
72
+ "reference_id": payload.reference_id,
73
+ "status": payload.status,
74
+ });
75
+
71
76
  const headers = new Headers(compactMap({
72
77
  Accept: "application/json",
73
78
  }));
@@ -96,6 +101,7 @@ export async function outboundBatchesOutboundBatchResults(
96
101
  baseURL: options?.serverURL,
97
102
  path: path,
98
103
  headers: headers,
104
+ query: query,
99
105
  body: body,
100
106
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
101
107
  }, options);
@@ -54,7 +54,7 @@ export async function outboundBatchesUpdate(
54
54
  return parsed;
55
55
  }
56
56
  const payload = parsed.value;
57
- const body = encodeJSON("body", payload.CommunicationBatch, {
57
+ const body = encodeJSON("body", payload.CommunicationBatchUpdate, {
58
58
  explode: true,
59
59
  });
60
60
 
@@ -58,26 +58,29 @@ export async function outboundBatchesUpload(
58
58
  }
59
59
  const payload = parsed.value;
60
60
  const body = new FormData();
61
-
62
- if (isBlobLike(payload.Body_outbound_batch_upload.file)) {
63
- appendForm(body, "file", payload.Body_outbound_batch_upload.file);
64
- } else if (
65
- isReadableStream(payload.Body_outbound_batch_upload.file.content)
66
- ) {
67
- const buffer = await readableStreamToArrayBuffer(
68
- payload.Body_outbound_batch_upload.file.content,
69
- );
70
- const blob = new Blob([buffer], { type: "application/octet-stream" });
71
- appendForm(body, "file", blob);
72
- } else {
73
- appendForm(
74
- body,
75
- "file",
76
- new Blob([payload.Body_outbound_batch_upload.file.content], {
77
- type: "application/octet-stream",
78
- }),
79
- payload.Body_outbound_batch_upload.file.fileName,
80
- );
61
+ if (payload.Body_outbound_batch_upload != null) {
62
+ if (payload.Body_outbound_batch_upload.file !== undefined) {
63
+ if (isBlobLike(payload.Body_outbound_batch_upload.file)) {
64
+ appendForm(body, "file", payload.Body_outbound_batch_upload.file);
65
+ } else if (
66
+ isReadableStream(payload.Body_outbound_batch_upload.file.content)
67
+ ) {
68
+ const buffer = await readableStreamToArrayBuffer(
69
+ payload.Body_outbound_batch_upload.file.content,
70
+ );
71
+ const blob = new Blob([buffer], { type: "application/octet-stream" });
72
+ appendForm(body, "file", blob);
73
+ } else {
74
+ appendForm(
75
+ body,
76
+ "file",
77
+ new Blob([payload.Body_outbound_batch_upload.file.content], {
78
+ type: "application/octet-stream",
79
+ }),
80
+ payload.Body_outbound_batch_upload.file.fileName,
81
+ );
82
+ }
83
+ }
81
84
  }
82
85
 
83
86
  const pathParams = {