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
@@ -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 outboundCampaignsList(
34
33
  options?: RequestOptions,
35
34
  ): Promise<
36
35
  Result<
37
- Array<components.OutboundCampaign>,
36
+ components.ListResponseOutboundCampaign,
38
37
  | errors.HTTPValidationError
39
38
  | SDKError
40
39
  | SDKValidationError
@@ -124,7 +123,7 @@ export async function outboundCampaignsList(
124
123
  };
125
124
 
126
125
  const [result] = await M.match<
127
- Array<components.OutboundCampaign>,
126
+ components.ListResponseOutboundCampaign,
128
127
  | errors.HTTPValidationError
129
128
  | SDKError
130
129
  | SDKValidationError
@@ -134,7 +133,7 @@ export async function outboundCampaignsList(
134
133
  | RequestTimeoutError
135
134
  | ConnectionError
136
135
  >(
137
- M.json(200, z.array(components.OutboundCampaign$inboundSchema)),
136
+ M.json(200, components.ListResponseOutboundCampaign$inboundSchema),
138
137
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
139
138
  M.fail("4XX"),
140
139
  M.fail("5XX"),
@@ -0,0 +1,140 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SyllableSDKCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ /**
28
+ * Inspect Latency For Session
29
+ */
30
+ export async function sessionsLatencyGetById(
31
+ client: SyllableSDKCore,
32
+ request: operations.SessionLatencyGetByIdRequest,
33
+ options?: RequestOptions,
34
+ ): Promise<
35
+ Result<
36
+ components.InspectLatencyResponse,
37
+ | errors.HTTPValidationError
38
+ | SDKError
39
+ | SDKValidationError
40
+ | UnexpectedClientError
41
+ | InvalidRequestError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | ConnectionError
45
+ >
46
+ > {
47
+ const parsed = safeParse(
48
+ request,
49
+ (value) =>
50
+ operations.SessionLatencyGetByIdRequest$outboundSchema.parse(value),
51
+ "Input validation failed",
52
+ );
53
+ if (!parsed.ok) {
54
+ return parsed;
55
+ }
56
+ const payload = parsed.value;
57
+ const body = null;
58
+
59
+ const pathParams = {
60
+ session_id: encodeSimple("session_id", payload.session_id, {
61
+ explode: false,
62
+ charEncoding: "percent",
63
+ }),
64
+ };
65
+
66
+ const path = pathToFunc("/api/v1/sessions/latency/{session_id}")(pathParams);
67
+
68
+ const headers = new Headers(compactMap({
69
+ Accept: "application/json",
70
+ }));
71
+
72
+ const secConfig = await extractSecurity(client._options.apiKeyHeader);
73
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
74
+ const requestSecurity = resolveGlobalSecurity(securityInput);
75
+
76
+ const context = {
77
+ baseURL: options?.serverURL ?? "",
78
+ operationID: "session_latency_get_by_id",
79
+ oAuth2Scopes: [],
80
+
81
+ resolvedSecurity: requestSecurity,
82
+
83
+ securitySource: client._options.apiKeyHeader,
84
+ retryConfig: options?.retries
85
+ || client._options.retryConfig
86
+ || { strategy: "none" },
87
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ };
89
+
90
+ const requestRes = client._createRequest(context, {
91
+ security: requestSecurity,
92
+ method: "GET",
93
+ baseURL: options?.serverURL,
94
+ path: path,
95
+ headers: headers,
96
+ body: body,
97
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
98
+ }, options);
99
+ if (!requestRes.ok) {
100
+ return requestRes;
101
+ }
102
+ const req = requestRes.value;
103
+
104
+ const doResult = await client._do(req, {
105
+ context,
106
+ errorCodes: ["422", "4XX", "5XX"],
107
+ retryConfig: context.retryConfig,
108
+ retryCodes: context.retryCodes,
109
+ });
110
+ if (!doResult.ok) {
111
+ return doResult;
112
+ }
113
+ const response = doResult.value;
114
+
115
+ const responseFields = {
116
+ HttpMeta: { Response: response, Request: req },
117
+ };
118
+
119
+ const [result] = await M.match<
120
+ components.InspectLatencyResponse,
121
+ | errors.HTTPValidationError
122
+ | SDKError
123
+ | SDKValidationError
124
+ | UnexpectedClientError
125
+ | InvalidRequestError
126
+ | RequestAbortedError
127
+ | RequestTimeoutError
128
+ | ConnectionError
129
+ >(
130
+ M.json(200, components.InspectLatencyResponse$inboundSchema),
131
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
132
+ M.fail("4XX"),
133
+ M.fail("5XX"),
134
+ )(response, { extraFields: responseFields });
135
+ if (!result.ok) {
136
+ return result;
137
+ }
138
+
139
+ return result;
140
+ }
@@ -23,7 +23,7 @@ import { Result } from "../types/fp.js";
23
23
  /**
24
24
  * Create Takeout
25
25
  */
26
- export async function takeoutsCreateTakeoutApiV1TakeoutsCreatePost(
26
+ export async function takeoutsCreate(
27
27
  client: SyllableSDKCore,
28
28
  options?: RequestOptions,
29
29
  ): Promise<
@@ -50,7 +50,7 @@ export async function takeoutsCreateTakeoutApiV1TakeoutsCreatePost(
50
50
 
51
51
  const context = {
52
52
  baseURL: options?.serverURL ?? "",
53
- operationID: "create_takeout_api_v1_takeouts_create_post",
53
+ operationID: "takeouts_create",
54
54
  oAuth2Scopes: [],
55
55
 
56
56
  resolvedSecurity: requestSecurity,
@@ -27,9 +27,9 @@ import { Result } from "../types/fp.js";
27
27
  /**
28
28
  * Get Takeout
29
29
  */
30
- export async function takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(
30
+ export async function takeoutsTakeoutsGetByJobId(
31
31
  client: SyllableSDKCore,
32
- request: operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
32
+ request: operations.TakeoutsGetByJobIdRequest,
33
33
  options?: RequestOptions,
34
34
  ): Promise<
35
35
  Result<
@@ -46,10 +46,7 @@ export async function takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(
46
46
  > {
47
47
  const parsed = safeParse(
48
48
  request,
49
- (value) =>
50
- operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema.parse(
51
- value,
52
- ),
49
+ (value) => operations.TakeoutsGetByJobIdRequest$outboundSchema.parse(value),
53
50
  "Input validation failed",
54
51
  );
55
52
  if (!parsed.ok) {
@@ -77,7 +74,7 @@ export async function takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(
77
74
 
78
75
  const context = {
79
76
  baseURL: options?.serverURL ?? "",
80
- operationID: "get_takeout_api_v1_takeouts_get__job_id__get",
77
+ operationID: "takeouts_get_by_job_id",
81
78
  oAuth2Scopes: [],
82
79
 
83
80
  resolvedSecurity: requestSecurity,
package/src/lib/config.ts CHANGED
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "0.0.2",
60
- sdkVersion: "0.1.0-alpha.73",
60
+ sdkVersion: "0.1.0-alpha.75",
61
61
  genVersion: "2.512.4",
62
62
  userAgent:
63
- "speakeasy-sdk/typescript 0.1.0-alpha.73 2.512.4 0.0.2 syllable-sdk",
63
+ "speakeasy-sdk/typescript 0.1.0-alpha.75 2.512.4 0.0.2 syllable-sdk",
64
64
  } as const;
@@ -33,9 +33,9 @@ export type BatchDetails = {
33
33
  */
34
34
  status?: BatchStatus | undefined;
35
35
  /**
36
- * Number of requests in batch
36
+ * Name of file used to create batch
37
37
  */
38
- count?: number | null | undefined;
38
+ uploadFilename?: string | null | undefined;
39
39
  /**
40
40
  * Timestamp of batch creation
41
41
  */
@@ -56,6 +56,10 @@ export type BatchDetails = {
56
56
  * Email of user who last updated campaign
57
57
  */
58
58
  lastUpdatedBy: string;
59
+ /**
60
+ * Error message if batch upload failed
61
+ */
62
+ errorMessage?: string | null | undefined;
59
63
  /**
60
64
  * Counts of requests by status
61
65
  */
@@ -116,12 +120,13 @@ export const BatchDetails$inboundSchema: z.ZodType<
116
120
  campaign_id: z.number().int(),
117
121
  expires_on: z.nullable(z.string()).optional(),
118
122
  status: BatchStatus$inboundSchema.optional(),
119
- count: z.nullable(z.number().int()).optional(),
123
+ upload_filename: z.nullable(z.string()).optional(),
120
124
  created_at: z.string().optional(),
121
125
  deleted_at: z.nullable(z.string()).optional(),
122
126
  deleted_reason: z.nullable(z.string()).optional(),
123
127
  last_worked_on: z.nullable(z.string()).optional(),
124
128
  last_updated_by: z.string(),
129
+ error_message: z.nullable(z.string()).optional(),
125
130
  status_counts: z.nullable(z.lazy(() => StatusCounts$inboundSchema))
126
131
  .optional(),
127
132
  }).transform((v) => {
@@ -129,11 +134,13 @@ export const BatchDetails$inboundSchema: z.ZodType<
129
134
  "batch_id": "batchId",
130
135
  "campaign_id": "campaignId",
131
136
  "expires_on": "expiresOn",
137
+ "upload_filename": "uploadFilename",
132
138
  "created_at": "createdAt",
133
139
  "deleted_at": "deletedAt",
134
140
  "deleted_reason": "deletedReason",
135
141
  "last_worked_on": "lastWorkedOn",
136
142
  "last_updated_by": "lastUpdatedBy",
143
+ "error_message": "errorMessage",
137
144
  "status_counts": "statusCounts",
138
145
  });
139
146
  });
@@ -144,12 +151,13 @@ export type BatchDetails$Outbound = {
144
151
  campaign_id: number;
145
152
  expires_on?: string | null | undefined;
146
153
  status?: string | undefined;
147
- count?: number | null | undefined;
154
+ upload_filename?: string | null | undefined;
148
155
  created_at?: string | undefined;
149
156
  deleted_at?: string | null | undefined;
150
157
  deleted_reason?: string | null | undefined;
151
158
  last_worked_on?: string | null | undefined;
152
159
  last_updated_by: string;
160
+ error_message?: string | null | undefined;
153
161
  status_counts?: StatusCounts$Outbound | null | undefined;
154
162
  };
155
163
 
@@ -163,12 +171,13 @@ export const BatchDetails$outboundSchema: z.ZodType<
163
171
  campaignId: z.number().int(),
164
172
  expiresOn: z.nullable(z.string()).optional(),
165
173
  status: BatchStatus$outboundSchema.optional(),
166
- count: z.nullable(z.number().int()).optional(),
174
+ uploadFilename: z.nullable(z.string()).optional(),
167
175
  createdAt: z.string().optional(),
168
176
  deletedAt: z.nullable(z.string()).optional(),
169
177
  deletedReason: z.nullable(z.string()).optional(),
170
178
  lastWorkedOn: z.nullable(z.string()).optional(),
171
179
  lastUpdatedBy: z.string(),
180
+ errorMessage: z.nullable(z.string()).optional(),
172
181
  statusCounts: z.nullable(z.lazy(() => StatusCounts$outboundSchema))
173
182
  .optional(),
174
183
  }).transform((v) => {
@@ -176,11 +185,13 @@ export const BatchDetails$outboundSchema: z.ZodType<
176
185
  batchId: "batch_id",
177
186
  campaignId: "campaign_id",
178
187
  expiresOn: "expires_on",
188
+ uploadFilename: "upload_filename",
179
189
  createdAt: "created_at",
180
190
  deletedAt: "deleted_at",
181
191
  deletedReason: "deleted_reason",
182
192
  lastWorkedOn: "last_worked_on",
183
193
  lastUpdatedBy: "last_updated_by",
194
+ errorMessage: "error_message",
184
195
  statusCounts: "status_counts",
185
196
  });
186
197
  });
@@ -12,7 +12,7 @@ export const BatchStatus = {
12
12
  Pending: "PENDING",
13
13
  Active: "ACTIVE",
14
14
  Paused: "PAUSED",
15
- Idle: "IDLE",
15
+ Failed: "FAILED",
16
16
  Canceled: "CANCELED",
17
17
  Expired: "EXPIRED",
18
18
  } as const;
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import { safeParse } from "../../lib/schemas.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -17,12 +18,16 @@ export const BodyOutboundBatchDelete$inboundSchema: z.ZodType<
17
18
  z.ZodTypeDef,
18
19
  unknown
19
20
  > = z.object({
20
- deleteReason: z.string(),
21
+ delete_reason: z.string(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "delete_reason": "deleteReason",
25
+ });
21
26
  });
22
27
 
23
28
  /** @internal */
24
29
  export type BodyOutboundBatchDelete$Outbound = {
25
- deleteReason: string;
30
+ delete_reason: string;
26
31
  };
27
32
 
28
33
  /** @internal */
@@ -32,6 +37,10 @@ export const BodyOutboundBatchDelete$outboundSchema: z.ZodType<
32
37
  BodyOutboundBatchDelete
33
38
  > = z.object({
34
39
  deleteReason: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ deleteReason: "delete_reason",
43
+ });
35
44
  });
36
45
 
37
46
  /**
@@ -14,7 +14,7 @@ export type FileT = {
14
14
  };
15
15
 
16
16
  export type BodyOutboundBatchUpload = {
17
- file: FileT | Blob;
17
+ file?: FileT | Blob | undefined;
18
18
  };
19
19
 
20
20
  /** @internal */
@@ -83,12 +83,12 @@ export const BodyOutboundBatchUpload$inboundSchema: z.ZodType<
83
83
  z.ZodTypeDef,
84
84
  unknown
85
85
  > = z.object({
86
- file: z.lazy(() => FileT$inboundSchema),
86
+ file: z.lazy(() => FileT$inboundSchema).optional(),
87
87
  });
88
88
 
89
89
  /** @internal */
90
90
  export type BodyOutboundBatchUpload$Outbound = {
91
- file: FileT$Outbound | Blob;
91
+ file?: FileT$Outbound | Blob | undefined;
92
92
  };
93
93
 
94
94
  /** @internal */
@@ -97,7 +97,7 @@ export const BodyOutboundBatchUpload$outboundSchema: z.ZodType<
97
97
  z.ZodTypeDef,
98
98
  BodyOutboundBatchUpload
99
99
  > = z.object({
100
- file: z.lazy(() => FileT$outboundSchema).or(blobLikeSchema),
100
+ file: z.lazy(() => FileT$outboundSchema).or(blobLikeSchema).optional(),
101
101
  });
102
102
 
103
103
  /**
@@ -31,9 +31,9 @@ export type CommunicationBatch = {
31
31
  */
32
32
  status?: BatchStatus | undefined;
33
33
  /**
34
- * Number of requests in batch
34
+ * Name of file used to create batch
35
35
  */
36
- count?: number | null | undefined;
36
+ uploadFilename?: string | null | undefined;
37
37
  /**
38
38
  * Timestamp of batch creation
39
39
  */
@@ -54,6 +54,10 @@ export type CommunicationBatch = {
54
54
  * Email of user who last updated campaign
55
55
  */
56
56
  lastUpdatedBy: string;
57
+ /**
58
+ * Error message if batch upload failed
59
+ */
60
+ errorMessage?: string | null | undefined;
57
61
  };
58
62
 
59
63
  /** @internal */
@@ -66,22 +70,25 @@ export const CommunicationBatch$inboundSchema: z.ZodType<
66
70
  campaign_id: z.number().int(),
67
71
  expires_on: z.nullable(z.string()).optional(),
68
72
  status: BatchStatus$inboundSchema.optional(),
69
- count: z.nullable(z.number().int()).optional(),
73
+ upload_filename: z.nullable(z.string()).optional(),
70
74
  created_at: z.string().optional(),
71
75
  deleted_at: z.nullable(z.string()).optional(),
72
76
  deleted_reason: z.nullable(z.string()).optional(),
73
77
  last_worked_on: z.nullable(z.string()).optional(),
74
78
  last_updated_by: z.string(),
79
+ error_message: z.nullable(z.string()).optional(),
75
80
  }).transform((v) => {
76
81
  return remap$(v, {
77
82
  "batch_id": "batchId",
78
83
  "campaign_id": "campaignId",
79
84
  "expires_on": "expiresOn",
85
+ "upload_filename": "uploadFilename",
80
86
  "created_at": "createdAt",
81
87
  "deleted_at": "deletedAt",
82
88
  "deleted_reason": "deletedReason",
83
89
  "last_worked_on": "lastWorkedOn",
84
90
  "last_updated_by": "lastUpdatedBy",
91
+ "error_message": "errorMessage",
85
92
  });
86
93
  });
87
94
 
@@ -91,12 +98,13 @@ export type CommunicationBatch$Outbound = {
91
98
  campaign_id: number;
92
99
  expires_on?: string | null | undefined;
93
100
  status?: string | undefined;
94
- count?: number | null | undefined;
101
+ upload_filename?: string | null | undefined;
95
102
  created_at?: string | undefined;
96
103
  deleted_at?: string | null | undefined;
97
104
  deleted_reason?: string | null | undefined;
98
105
  last_worked_on?: string | null | undefined;
99
106
  last_updated_by: string;
107
+ error_message?: string | null | undefined;
100
108
  };
101
109
 
102
110
  /** @internal */
@@ -109,22 +117,25 @@ export const CommunicationBatch$outboundSchema: z.ZodType<
109
117
  campaignId: z.number().int(),
110
118
  expiresOn: z.nullable(z.string()).optional(),
111
119
  status: BatchStatus$outboundSchema.optional(),
112
- count: z.nullable(z.number().int()).optional(),
120
+ uploadFilename: z.nullable(z.string()).optional(),
113
121
  createdAt: z.string().optional(),
114
122
  deletedAt: z.nullable(z.string()).optional(),
115
123
  deletedReason: z.nullable(z.string()).optional(),
116
124
  lastWorkedOn: z.nullable(z.string()).optional(),
117
125
  lastUpdatedBy: z.string(),
126
+ errorMessage: z.nullable(z.string()).optional(),
118
127
  }).transform((v) => {
119
128
  return remap$(v, {
120
129
  batchId: "batch_id",
121
130
  campaignId: "campaign_id",
122
131
  expiresOn: "expires_on",
132
+ uploadFilename: "upload_filename",
123
133
  createdAt: "created_at",
124
134
  deletedAt: "deleted_at",
125
135
  deletedReason: "deleted_reason",
126
136
  lastWorkedOn: "last_worked_on",
127
137
  lastUpdatedBy: "last_updated_by",
138
+ errorMessage: "error_message",
128
139
  });
129
140
  });
130
141
 
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type CommunicationBatchUpdate = {
12
+ /**
13
+ * Whether the batch is on HOLD. When on HOLD, no outreach will be made.
14
+ */
15
+ paused?: boolean | null | undefined;
16
+ /**
17
+ * Timestamp of batch expiration
18
+ */
19
+ expiresOn?: string | null | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const CommunicationBatchUpdate$inboundSchema: z.ZodType<
24
+ CommunicationBatchUpdate,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ paused: z.nullable(z.boolean()).optional(),
29
+ expires_on: z.nullable(z.string()).optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "expires_on": "expiresOn",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type CommunicationBatchUpdate$Outbound = {
38
+ paused?: boolean | null | undefined;
39
+ expires_on?: string | null | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const CommunicationBatchUpdate$outboundSchema: z.ZodType<
44
+ CommunicationBatchUpdate$Outbound,
45
+ z.ZodTypeDef,
46
+ CommunicationBatchUpdate
47
+ > = z.object({
48
+ paused: z.nullable(z.boolean()).optional(),
49
+ expiresOn: z.nullable(z.string()).optional(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ expiresOn: "expires_on",
53
+ });
54
+ });
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace CommunicationBatchUpdate$ {
61
+ /** @deprecated use `CommunicationBatchUpdate$inboundSchema` instead. */
62
+ export const inboundSchema = CommunicationBatchUpdate$inboundSchema;
63
+ /** @deprecated use `CommunicationBatchUpdate$outboundSchema` instead. */
64
+ export const outboundSchema = CommunicationBatchUpdate$outboundSchema;
65
+ /** @deprecated use `CommunicationBatchUpdate$Outbound` instead. */
66
+ export type Outbound = CommunicationBatchUpdate$Outbound;
67
+ }
68
+
69
+ export function communicationBatchUpdateToJSON(
70
+ communicationBatchUpdate: CommunicationBatchUpdate,
71
+ ): string {
72
+ return JSON.stringify(
73
+ CommunicationBatchUpdate$outboundSchema.parse(communicationBatchUpdate),
74
+ );
75
+ }
76
+
77
+ export function communicationBatchUpdateFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<CommunicationBatchUpdate, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => CommunicationBatchUpdate$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'CommunicationBatchUpdate' from JSON`,
84
+ );
85
+ }
@@ -7,11 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- RequestStatus,
12
- RequestStatus$inboundSchema,
13
- RequestStatus$outboundSchema,
14
- } from "./requeststatus.js";
15
10
 
16
11
  /**
17
12
  * Variables for request
@@ -19,10 +14,6 @@ import {
19
14
  export type CommunicationRequestRequestVariables = {};
20
15
 
21
16
  export type CommunicationRequest = {
22
- /**
23
- * Unique ID for conversation batch
24
- */
25
- batchId: string;
26
17
  /**
27
18
  * ID for target outreach (unique within batch)
28
19
  */
@@ -31,10 +22,6 @@ export type CommunicationRequest = {
31
22
  * Target phone number or email address
32
23
  */
33
24
  target: string;
34
- /**
35
- * Status of a communication request.
36
- */
37
- requestStatus?: RequestStatus | undefined;
38
25
  /**
39
26
  * Variables for request
40
27
  */
@@ -100,28 +87,22 @@ export const CommunicationRequest$inboundSchema: z.ZodType<
100
87
  z.ZodTypeDef,
101
88
  unknown
102
89
  > = z.object({
103
- batch_id: z.string(),
104
90
  reference_id: z.string(),
105
91
  target: z.string(),
106
- request_status: RequestStatus$inboundSchema.optional(),
107
92
  request_variables: z.lazy(() =>
108
93
  CommunicationRequestRequestVariables$inboundSchema
109
94
  ),
110
95
  }).transform((v) => {
111
96
  return remap$(v, {
112
- "batch_id": "batchId",
113
97
  "reference_id": "referenceId",
114
- "request_status": "requestStatus",
115
98
  "request_variables": "requestVariables",
116
99
  });
117
100
  });
118
101
 
119
102
  /** @internal */
120
103
  export type CommunicationRequest$Outbound = {
121
- batch_id: string;
122
104
  reference_id: string;
123
105
  target: string;
124
- request_status?: string | undefined;
125
106
  request_variables: CommunicationRequestRequestVariables$Outbound;
126
107
  };
127
108
 
@@ -131,18 +112,14 @@ export const CommunicationRequest$outboundSchema: z.ZodType<
131
112
  z.ZodTypeDef,
132
113
  CommunicationRequest
133
114
  > = z.object({
134
- batchId: z.string(),
135
115
  referenceId: z.string(),
136
116
  target: z.string(),
137
- requestStatus: RequestStatus$outboundSchema.optional(),
138
117
  requestVariables: z.lazy(() =>
139
118
  CommunicationRequestRequestVariables$outboundSchema
140
119
  ),
141
120
  }).transform((v) => {
142
121
  return remap$(v, {
143
- batchId: "batch_id",
144
122
  referenceId: "reference_id",
145
- requestStatus: "request_status",
146
123
  requestVariables: "request_variables",
147
124
  });
148
125
  });