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
@@ -18,11 +18,9 @@ import {
18
18
  */
19
19
  export type RequestVariables = {};
20
20
 
21
+ export type Insights = {};
22
+
21
23
  export type CommunicationRequestResult = {
22
- /**
23
- * Unique ID for conversation batch
24
- */
25
- batchId: string;
26
24
  /**
27
25
  * ID for target outreach (unique within batch)
28
26
  */
@@ -31,18 +29,14 @@ export type CommunicationRequestResult = {
31
29
  * Target phone number or email address
32
30
  */
33
31
  target: string;
34
- /**
35
- * Status of a communication request.
36
- */
37
- requestStatus?: RequestStatus | undefined;
38
32
  /**
39
33
  * Variables for request
40
34
  */
41
35
  requestVariables: RequestVariables;
42
36
  /**
43
- * Call manager SID
37
+ * Channel manager SID
44
38
  */
45
- callManagerSid?: string | null | undefined;
39
+ channelManagerSid?: string | null | undefined;
46
40
  /**
47
41
  * Timestamp of request creation
48
42
  */
@@ -63,6 +57,22 @@ export type CommunicationRequestResult = {
63
57
  * Unique ID for conversation
64
58
  */
65
59
  conversationId?: number | null | undefined;
60
+ /**
61
+ * Status of a communication request.
62
+ */
63
+ requestStatus?: RequestStatus | undefined;
64
+ /**
65
+ * Status of request in channel manager
66
+ */
67
+ channelManagerStatus?: string | null | undefined;
68
+ /**
69
+ * Status of session in insight workflow
70
+ */
71
+ insightsStatus?: string | null | undefined;
72
+ /**
73
+ * Insights from call
74
+ */
75
+ insights?: Insights | null | undefined;
66
76
  };
67
77
 
68
78
  /** @internal */
@@ -113,51 +123,100 @@ export function requestVariablesFromJSON(
113
123
  );
114
124
  }
115
125
 
126
+ /** @internal */
127
+ export const Insights$inboundSchema: z.ZodType<
128
+ Insights,
129
+ z.ZodTypeDef,
130
+ unknown
131
+ > = z.object({});
132
+
133
+ /** @internal */
134
+ export type Insights$Outbound = {};
135
+
136
+ /** @internal */
137
+ export const Insights$outboundSchema: z.ZodType<
138
+ Insights$Outbound,
139
+ z.ZodTypeDef,
140
+ Insights
141
+ > = z.object({});
142
+
143
+ /**
144
+ * @internal
145
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
+ */
147
+ export namespace Insights$ {
148
+ /** @deprecated use `Insights$inboundSchema` instead. */
149
+ export const inboundSchema = Insights$inboundSchema;
150
+ /** @deprecated use `Insights$outboundSchema` instead. */
151
+ export const outboundSchema = Insights$outboundSchema;
152
+ /** @deprecated use `Insights$Outbound` instead. */
153
+ export type Outbound = Insights$Outbound;
154
+ }
155
+
156
+ export function insightsToJSON(insights: Insights): string {
157
+ return JSON.stringify(Insights$outboundSchema.parse(insights));
158
+ }
159
+
160
+ export function insightsFromJSON(
161
+ jsonString: string,
162
+ ): SafeParseResult<Insights, SDKValidationError> {
163
+ return safeParse(
164
+ jsonString,
165
+ (x) => Insights$inboundSchema.parse(JSON.parse(x)),
166
+ `Failed to parse 'Insights' from JSON`,
167
+ );
168
+ }
169
+
116
170
  /** @internal */
117
171
  export const CommunicationRequestResult$inboundSchema: z.ZodType<
118
172
  CommunicationRequestResult,
119
173
  z.ZodTypeDef,
120
174
  unknown
121
175
  > = z.object({
122
- batch_id: z.string(),
123
176
  reference_id: z.string(),
124
177
  target: z.string(),
125
- request_status: RequestStatus$inboundSchema.optional(),
126
178
  request_variables: z.lazy(() => RequestVariables$inboundSchema),
127
- call_manager_sid: z.nullable(z.string()).optional(),
179
+ channel_manager_sid: z.nullable(z.string()).optional(),
128
180
  created_at: z.string().optional(),
129
181
  sent_at: z.nullable(z.string()).optional(),
130
182
  attempt_count: z.number().int().default(0),
131
183
  session_id: z.nullable(z.number().int()).optional(),
132
184
  conversation_id: z.nullable(z.number().int()).optional(),
185
+ request_status: RequestStatus$inboundSchema.optional(),
186
+ channel_manager_status: z.nullable(z.string()).optional(),
187
+ insights_status: z.nullable(z.string()).optional(),
188
+ insights: z.nullable(z.lazy(() => Insights$inboundSchema)).optional(),
133
189
  }).transform((v) => {
134
190
  return remap$(v, {
135
- "batch_id": "batchId",
136
191
  "reference_id": "referenceId",
137
- "request_status": "requestStatus",
138
192
  "request_variables": "requestVariables",
139
- "call_manager_sid": "callManagerSid",
193
+ "channel_manager_sid": "channelManagerSid",
140
194
  "created_at": "createdAt",
141
195
  "sent_at": "sentAt",
142
196
  "attempt_count": "attemptCount",
143
197
  "session_id": "sessionId",
144
198
  "conversation_id": "conversationId",
199
+ "request_status": "requestStatus",
200
+ "channel_manager_status": "channelManagerStatus",
201
+ "insights_status": "insightsStatus",
145
202
  });
146
203
  });
147
204
 
148
205
  /** @internal */
149
206
  export type CommunicationRequestResult$Outbound = {
150
- batch_id: string;
151
207
  reference_id: string;
152
208
  target: string;
153
- request_status?: string | undefined;
154
209
  request_variables: RequestVariables$Outbound;
155
- call_manager_sid?: string | null | undefined;
210
+ channel_manager_sid?: string | null | undefined;
156
211
  created_at?: string | undefined;
157
212
  sent_at?: string | null | undefined;
158
213
  attempt_count: number;
159
214
  session_id?: number | null | undefined;
160
215
  conversation_id?: number | null | undefined;
216
+ request_status?: string | undefined;
217
+ channel_manager_status?: string | null | undefined;
218
+ insights_status?: string | null | undefined;
219
+ insights?: Insights$Outbound | null | undefined;
161
220
  };
162
221
 
163
222
  /** @internal */
@@ -166,29 +225,32 @@ export const CommunicationRequestResult$outboundSchema: z.ZodType<
166
225
  z.ZodTypeDef,
167
226
  CommunicationRequestResult
168
227
  > = z.object({
169
- batchId: z.string(),
170
228
  referenceId: z.string(),
171
229
  target: z.string(),
172
- requestStatus: RequestStatus$outboundSchema.optional(),
173
230
  requestVariables: z.lazy(() => RequestVariables$outboundSchema),
174
- callManagerSid: z.nullable(z.string()).optional(),
231
+ channelManagerSid: z.nullable(z.string()).optional(),
175
232
  createdAt: z.string().optional(),
176
233
  sentAt: z.nullable(z.string()).optional(),
177
234
  attemptCount: z.number().int().default(0),
178
235
  sessionId: z.nullable(z.number().int()).optional(),
179
236
  conversationId: z.nullable(z.number().int()).optional(),
237
+ requestStatus: RequestStatus$outboundSchema.optional(),
238
+ channelManagerStatus: z.nullable(z.string()).optional(),
239
+ insightsStatus: z.nullable(z.string()).optional(),
240
+ insights: z.nullable(z.lazy(() => Insights$outboundSchema)).optional(),
180
241
  }).transform((v) => {
181
242
  return remap$(v, {
182
- batchId: "batch_id",
183
243
  referenceId: "reference_id",
184
- requestStatus: "request_status",
185
244
  requestVariables: "request_variables",
186
- callManagerSid: "call_manager_sid",
245
+ channelManagerSid: "channel_manager_sid",
187
246
  createdAt: "created_at",
188
247
  sentAt: "sent_at",
189
248
  attemptCount: "attempt_count",
190
249
  sessionId: "session_id",
191
250
  conversationId: "conversation_id",
251
+ requestStatus: "request_status",
252
+ channelManagerStatus: "channel_manager_status",
253
+ insightsStatus: "insights_status",
192
254
  });
193
255
  });
194
256
 
@@ -59,6 +59,14 @@ export type Conversation = {
59
59
  * Version for the LLM used in the conversation (see PromptResponse.llm_config.version)
60
60
  */
61
61
  llmVersion?: string | null | undefined;
62
+ /**
63
+ * Temperature for the LLM used in the conversation (see PromptResponse.llm_config.temperature)
64
+ */
65
+ llmTemperature?: number | null | undefined;
66
+ /**
67
+ * Seed for the LLM used in the conversation (see PromptResponse.llm_config.seed).
68
+ */
69
+ llmSeed?: number | null | undefined;
62
70
  /**
63
71
  * Whether the conversation occurred on the legacy Syllable system
64
72
  */
@@ -82,6 +90,8 @@ export const Conversation$inboundSchema: z.ZodType<
82
90
  llm_provider: z.nullable(z.string()).optional(),
83
91
  llm_model: z.nullable(z.string()).optional(),
84
92
  llm_version: z.nullable(z.string()).optional(),
93
+ llm_temperature: z.nullable(z.number()).optional(),
94
+ llm_seed: z.nullable(z.number().int()).optional(),
85
95
  is_legacy: z.nullable(z.boolean()).optional(),
86
96
  }).transform((v) => {
87
97
  return remap$(v, {
@@ -95,6 +105,8 @@ export const Conversation$inboundSchema: z.ZodType<
95
105
  "llm_provider": "llmProvider",
96
106
  "llm_model": "llmModel",
97
107
  "llm_version": "llmVersion",
108
+ "llm_temperature": "llmTemperature",
109
+ "llm_seed": "llmSeed",
98
110
  "is_legacy": "isLegacy",
99
111
  });
100
112
  });
@@ -112,6 +124,8 @@ export type Conversation$Outbound = {
112
124
  llm_provider?: string | null | undefined;
113
125
  llm_model?: string | null | undefined;
114
126
  llm_version?: string | null | undefined;
127
+ llm_temperature?: number | null | undefined;
128
+ llm_seed?: number | null | undefined;
115
129
  is_legacy?: boolean | null | undefined;
116
130
  };
117
131
 
@@ -132,6 +146,8 @@ export const Conversation$outboundSchema: z.ZodType<
132
146
  llmProvider: z.nullable(z.string()).optional(),
133
147
  llmModel: z.nullable(z.string()).optional(),
134
148
  llmVersion: z.nullable(z.string()).optional(),
149
+ llmTemperature: z.nullable(z.number()).optional(),
150
+ llmSeed: z.nullable(z.number().int()).optional(),
135
151
  isLegacy: z.nullable(z.boolean()).optional(),
136
152
  }).transform((v) => {
137
153
  return remap$(v, {
@@ -145,6 +161,8 @@ export const Conversation$outboundSchema: z.ZodType<
145
161
  llmProvider: "llm_provider",
146
162
  llmModel: "llm_model",
147
163
  llmVersion: "llm_version",
164
+ llmTemperature: "llm_temperature",
165
+ llmSeed: "llm_seed",
148
166
  isLegacy: "is_legacy",
149
167
  });
150
168
  });
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Enum representing days of the week.
10
+ */
11
+ export const DaysOfWeek = {
12
+ Mon: "mon",
13
+ Tue: "tue",
14
+ Wed: "wed",
15
+ Thu: "thu",
16
+ Fri: "fri",
17
+ Sat: "sat",
18
+ Sun: "sun",
19
+ } as const;
20
+ /**
21
+ * Enum representing days of the week.
22
+ */
23
+ export type DaysOfWeek = ClosedEnum<typeof DaysOfWeek>;
24
+
25
+ /** @internal */
26
+ export const DaysOfWeek$inboundSchema: z.ZodNativeEnum<typeof DaysOfWeek> = z
27
+ .nativeEnum(DaysOfWeek);
28
+
29
+ /** @internal */
30
+ export const DaysOfWeek$outboundSchema: z.ZodNativeEnum<typeof DaysOfWeek> =
31
+ DaysOfWeek$inboundSchema;
32
+
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export namespace DaysOfWeek$ {
38
+ /** @deprecated use `DaysOfWeek$inboundSchema` instead. */
39
+ export const inboundSchema = DaysOfWeek$inboundSchema;
40
+ /** @deprecated use `DaysOfWeek$outboundSchema` instead. */
41
+ export const outboundSchema = DaysOfWeek$outboundSchema;
42
+ }
@@ -8,27 +8,54 @@ 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
10
 
11
- export type ServiceIncidentRequest = {
12
- organizationId: number | null;
13
- subOrganizationId: number | null;
14
- subOrganization: string | null;
11
+ /**
12
+ * Request model to create a service incident.
13
+ */
14
+ export type IncidentCreateRequest = {
15
+ /**
16
+ * Description of the service incident
17
+ */
15
18
  description: string;
19
+ /**
20
+ * Start time of the incident
21
+ */
16
22
  startDatetime: Date;
23
+ /**
24
+ * Resolution time of the incident
25
+ */
17
26
  resolutionDatetime: Date;
27
+ /**
28
+ * Category of the impact
29
+ */
18
30
  impactCategory: string;
31
+ /**
32
+ * Number of sessions impacted
33
+ */
19
34
  sessionsImpacted: number;
35
+ /**
36
+ * Detailed markdown description of the incident
37
+ */
20
38
  markdown: string;
39
+ /**
40
+ * The ID of the organization
41
+ */
42
+ organizationId?: number | null | undefined;
43
+ /**
44
+ * The ID of the sub-organization
45
+ */
46
+ subOrganizationId?: number | null | undefined;
47
+ /**
48
+ * The name of the sub-organization
49
+ */
50
+ subOrganization?: string | null | undefined;
21
51
  };
22
52
 
23
53
  /** @internal */
24
- export const ServiceIncidentRequest$inboundSchema: z.ZodType<
25
- ServiceIncidentRequest,
54
+ export const IncidentCreateRequest$inboundSchema: z.ZodType<
55
+ IncidentCreateRequest,
26
56
  z.ZodTypeDef,
27
57
  unknown
28
58
  > = z.object({
29
- organization_id: z.nullable(z.number().int()),
30
- sub_organization_id: z.nullable(z.number().int()),
31
- sub_organization: z.nullable(z.string()),
32
59
  description: z.string(),
33
60
  start_datetime: z.string().datetime({ offset: true }).transform(v =>
34
61
  new Date(v)
@@ -39,55 +66,58 @@ export const ServiceIncidentRequest$inboundSchema: z.ZodType<
39
66
  impact_category: z.string(),
40
67
  sessions_impacted: z.number().int(),
41
68
  markdown: z.string(),
69
+ organization_id: z.nullable(z.number().int()).optional(),
70
+ sub_organization_id: z.nullable(z.number().int()).optional(),
71
+ sub_organization: z.nullable(z.string()).optional(),
42
72
  }).transform((v) => {
43
73
  return remap$(v, {
44
- "organization_id": "organizationId",
45
- "sub_organization_id": "subOrganizationId",
46
- "sub_organization": "subOrganization",
47
74
  "start_datetime": "startDatetime",
48
75
  "resolution_datetime": "resolutionDatetime",
49
76
  "impact_category": "impactCategory",
50
77
  "sessions_impacted": "sessionsImpacted",
78
+ "organization_id": "organizationId",
79
+ "sub_organization_id": "subOrganizationId",
80
+ "sub_organization": "subOrganization",
51
81
  });
52
82
  });
53
83
 
54
84
  /** @internal */
55
- export type ServiceIncidentRequest$Outbound = {
56
- organization_id: number | null;
57
- sub_organization_id: number | null;
58
- sub_organization: string | null;
85
+ export type IncidentCreateRequest$Outbound = {
59
86
  description: string;
60
87
  start_datetime: string;
61
88
  resolution_datetime: string;
62
89
  impact_category: string;
63
90
  sessions_impacted: number;
64
91
  markdown: string;
92
+ organization_id?: number | null | undefined;
93
+ sub_organization_id?: number | null | undefined;
94
+ sub_organization?: string | null | undefined;
65
95
  };
66
96
 
67
97
  /** @internal */
68
- export const ServiceIncidentRequest$outboundSchema: z.ZodType<
69
- ServiceIncidentRequest$Outbound,
98
+ export const IncidentCreateRequest$outboundSchema: z.ZodType<
99
+ IncidentCreateRequest$Outbound,
70
100
  z.ZodTypeDef,
71
- ServiceIncidentRequest
101
+ IncidentCreateRequest
72
102
  > = z.object({
73
- organizationId: z.nullable(z.number().int()),
74
- subOrganizationId: z.nullable(z.number().int()),
75
- subOrganization: z.nullable(z.string()),
76
103
  description: z.string(),
77
104
  startDatetime: z.date().transform(v => v.toISOString()),
78
105
  resolutionDatetime: z.date().transform(v => v.toISOString()),
79
106
  impactCategory: z.string(),
80
107
  sessionsImpacted: z.number().int(),
81
108
  markdown: z.string(),
109
+ organizationId: z.nullable(z.number().int()).optional(),
110
+ subOrganizationId: z.nullable(z.number().int()).optional(),
111
+ subOrganization: z.nullable(z.string()).optional(),
82
112
  }).transform((v) => {
83
113
  return remap$(v, {
84
- organizationId: "organization_id",
85
- subOrganizationId: "sub_organization_id",
86
- subOrganization: "sub_organization",
87
114
  startDatetime: "start_datetime",
88
115
  resolutionDatetime: "resolution_datetime",
89
116
  impactCategory: "impact_category",
90
117
  sessionsImpacted: "sessions_impacted",
118
+ organizationId: "organization_id",
119
+ subOrganizationId: "sub_organization_id",
120
+ subOrganization: "sub_organization",
91
121
  });
92
122
  });
93
123
 
@@ -95,29 +125,29 @@ export const ServiceIncidentRequest$outboundSchema: z.ZodType<
95
125
  * @internal
96
126
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
127
  */
98
- export namespace ServiceIncidentRequest$ {
99
- /** @deprecated use `ServiceIncidentRequest$inboundSchema` instead. */
100
- export const inboundSchema = ServiceIncidentRequest$inboundSchema;
101
- /** @deprecated use `ServiceIncidentRequest$outboundSchema` instead. */
102
- export const outboundSchema = ServiceIncidentRequest$outboundSchema;
103
- /** @deprecated use `ServiceIncidentRequest$Outbound` instead. */
104
- export type Outbound = ServiceIncidentRequest$Outbound;
128
+ export namespace IncidentCreateRequest$ {
129
+ /** @deprecated use `IncidentCreateRequest$inboundSchema` instead. */
130
+ export const inboundSchema = IncidentCreateRequest$inboundSchema;
131
+ /** @deprecated use `IncidentCreateRequest$outboundSchema` instead. */
132
+ export const outboundSchema = IncidentCreateRequest$outboundSchema;
133
+ /** @deprecated use `IncidentCreateRequest$Outbound` instead. */
134
+ export type Outbound = IncidentCreateRequest$Outbound;
105
135
  }
106
136
 
107
- export function serviceIncidentRequestToJSON(
108
- serviceIncidentRequest: ServiceIncidentRequest,
137
+ export function incidentCreateRequestToJSON(
138
+ incidentCreateRequest: IncidentCreateRequest,
109
139
  ): string {
110
140
  return JSON.stringify(
111
- ServiceIncidentRequest$outboundSchema.parse(serviceIncidentRequest),
141
+ IncidentCreateRequest$outboundSchema.parse(incidentCreateRequest),
112
142
  );
113
143
  }
114
144
 
115
- export function serviceIncidentRequestFromJSON(
145
+ export function incidentCreateRequestFromJSON(
116
146
  jsonString: string,
117
- ): SafeParseResult<ServiceIncidentRequest, SDKValidationError> {
147
+ ): SafeParseResult<IncidentCreateRequest, SDKValidationError> {
118
148
  return safeParse(
119
149
  jsonString,
120
- (x) => ServiceIncidentRequest$inboundSchema.parse(JSON.parse(x)),
121
- `Failed to parse 'ServiceIncidentRequest' from JSON`,
150
+ (x) => IncidentCreateRequest$inboundSchema.parse(JSON.parse(x)),
151
+ `Failed to parse 'IncidentCreateRequest' from JSON`,
122
152
  );
123
153
  }
@@ -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 IncidentOrganizationResponse = {
12
+ id: number;
13
+ name: string;
14
+ displayName: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const IncidentOrganizationResponse$inboundSchema: z.ZodType<
19
+ IncidentOrganizationResponse,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ id: z.number().int(),
24
+ name: z.string(),
25
+ display_name: z.string(),
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "display_name": "displayName",
29
+ });
30
+ });
31
+
32
+ /** @internal */
33
+ export type IncidentOrganizationResponse$Outbound = {
34
+ id: number;
35
+ name: string;
36
+ display_name: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const IncidentOrganizationResponse$outboundSchema: z.ZodType<
41
+ IncidentOrganizationResponse$Outbound,
42
+ z.ZodTypeDef,
43
+ IncidentOrganizationResponse
44
+ > = z.object({
45
+ id: z.number().int(),
46
+ name: z.string(),
47
+ displayName: z.string(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ displayName: "display_name",
51
+ });
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace IncidentOrganizationResponse$ {
59
+ /** @deprecated use `IncidentOrganizationResponse$inboundSchema` instead. */
60
+ export const inboundSchema = IncidentOrganizationResponse$inboundSchema;
61
+ /** @deprecated use `IncidentOrganizationResponse$outboundSchema` instead. */
62
+ export const outboundSchema = IncidentOrganizationResponse$outboundSchema;
63
+ /** @deprecated use `IncidentOrganizationResponse$Outbound` instead. */
64
+ export type Outbound = IncidentOrganizationResponse$Outbound;
65
+ }
66
+
67
+ export function incidentOrganizationResponseToJSON(
68
+ incidentOrganizationResponse: IncidentOrganizationResponse,
69
+ ): string {
70
+ return JSON.stringify(
71
+ IncidentOrganizationResponse$outboundSchema.parse(
72
+ incidentOrganizationResponse,
73
+ ),
74
+ );
75
+ }
76
+
77
+ export function incidentOrganizationResponseFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<IncidentOrganizationResponse, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => IncidentOrganizationResponse$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'IncidentOrganizationResponse' from JSON`,
84
+ );
85
+ }
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Names of agent fields supported for filtering/sorting on list endpoint.
10
+ */
11
+ export const IncidentProperties = {
12
+ Id: "id",
13
+ Description: "description",
14
+ ImpactCategory: "impact_category",
15
+ SessionsImpacted: "sessions_impacted",
16
+ Markdown: "markdown",
17
+ CreatedAt: "created_at",
18
+ UpdatedAt: "updated_at",
19
+ OrganizationId: "organization_id",
20
+ SubOrganizationId: "sub_organization_id",
21
+ StartDatetime: "start_datetime",
22
+ EndDatetime: "end_datetime",
23
+ ResolutionDatetime: "resolution_datetime",
24
+ } as const;
25
+ /**
26
+ * Names of agent fields supported for filtering/sorting on list endpoint.
27
+ */
28
+ export type IncidentProperties = ClosedEnum<typeof IncidentProperties>;
29
+
30
+ /** @internal */
31
+ export const IncidentProperties$inboundSchema: z.ZodNativeEnum<
32
+ typeof IncidentProperties
33
+ > = z.nativeEnum(IncidentProperties);
34
+
35
+ /** @internal */
36
+ export const IncidentProperties$outboundSchema: z.ZodNativeEnum<
37
+ typeof IncidentProperties
38
+ > = IncidentProperties$inboundSchema;
39
+
40
+ /**
41
+ * @internal
42
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
+ */
44
+ export namespace IncidentProperties$ {
45
+ /** @deprecated use `IncidentProperties$inboundSchema` instead. */
46
+ export const inboundSchema = IncidentProperties$inboundSchema;
47
+ /** @deprecated use `IncidentProperties$outboundSchema` instead. */
48
+ export const outboundSchema = IncidentProperties$outboundSchema;
49
+ }