@unified-api/typescript-sdk 2.56.0 → 2.60.0

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 (340) hide show
  1. package/README.md +24 -0
  2. package/docs/sdks/comment/README.md +512 -0
  3. package/docs/sdks/connection/README.md +4 -4
  4. package/docs/sdks/recording/README.md +500 -0
  5. package/docs/sdks/uc/README.md +1054 -42
  6. package/docs/sdks/unified/README.md +10 -10
  7. package/docs/sdks/webhook/README.md +6 -6
  8. package/funcs/accountListAccountingAccounts.js +1 -0
  9. package/funcs/accountListAccountingAccounts.js.map +1 -1
  10. package/funcs/accountingListAccountingAccounts.js +1 -0
  11. package/funcs/accountingListAccountingAccounts.js.map +1 -1
  12. package/funcs/commentCreateUcComment.d.ts +14 -0
  13. package/funcs/commentCreateUcComment.d.ts.map +1 -0
  14. package/funcs/commentCreateUcComment.js +109 -0
  15. package/funcs/commentCreateUcComment.js.map +1 -0
  16. package/funcs/commentGetUcComment.d.ts +14 -0
  17. package/funcs/commentGetUcComment.d.ts.map +1 -0
  18. package/funcs/commentGetUcComment.js +112 -0
  19. package/funcs/commentGetUcComment.js.map +1 -0
  20. package/funcs/commentListUcComments.d.ts +14 -0
  21. package/funcs/commentListUcComments.d.ts.map +1 -0
  22. package/funcs/commentListUcComments.js +117 -0
  23. package/funcs/commentListUcComments.js.map +1 -0
  24. package/funcs/commentPatchUcComment.d.ts +14 -0
  25. package/funcs/commentPatchUcComment.d.ts.map +1 -0
  26. package/funcs/commentPatchUcComment.js +113 -0
  27. package/funcs/commentPatchUcComment.js.map +1 -0
  28. package/funcs/commentRemoveUcComment.d.ts +13 -0
  29. package/funcs/commentRemoveUcComment.d.ts.map +1 -0
  30. package/funcs/commentRemoveUcComment.js +110 -0
  31. package/funcs/commentRemoveUcComment.js.map +1 -0
  32. package/funcs/commentUpdateUcComment.d.ts +14 -0
  33. package/funcs/commentUpdateUcComment.d.ts.map +1 -0
  34. package/funcs/commentUpdateUcComment.js +113 -0
  35. package/funcs/commentUpdateUcComment.js.map +1 -0
  36. package/funcs/passthroughCreatePassthroughJson.js +4 -0
  37. package/funcs/passthroughCreatePassthroughJson.js.map +1 -1
  38. package/funcs/passthroughCreatePassthroughRaw.js +4 -0
  39. package/funcs/passthroughCreatePassthroughRaw.js.map +1 -1
  40. package/funcs/passthroughListPassthroughs.js +4 -0
  41. package/funcs/passthroughListPassthroughs.js.map +1 -1
  42. package/funcs/passthroughPatchPassthroughJson.js +4 -0
  43. package/funcs/passthroughPatchPassthroughJson.js.map +1 -1
  44. package/funcs/passthroughPatchPassthroughRaw.js +4 -0
  45. package/funcs/passthroughPatchPassthroughRaw.js.map +1 -1
  46. package/funcs/passthroughRemovePassthrough.js +4 -0
  47. package/funcs/passthroughRemovePassthrough.js.map +1 -1
  48. package/funcs/passthroughUpdatePassthroughJson.js +4 -0
  49. package/funcs/passthroughUpdatePassthroughJson.js.map +1 -1
  50. package/funcs/passthroughUpdatePassthroughRaw.js +4 -0
  51. package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -1
  52. package/funcs/recordingCreateUcRecording.d.ts +14 -0
  53. package/funcs/recordingCreateUcRecording.d.ts.map +1 -0
  54. package/funcs/recordingCreateUcRecording.js +109 -0
  55. package/funcs/recordingCreateUcRecording.js.map +1 -0
  56. package/funcs/recordingGetUcRecording.d.ts +14 -0
  57. package/funcs/recordingGetUcRecording.d.ts.map +1 -0
  58. package/funcs/recordingGetUcRecording.js +112 -0
  59. package/funcs/recordingGetUcRecording.js.map +1 -0
  60. package/funcs/recordingListUcRecordings.d.ts +14 -0
  61. package/funcs/recordingListUcRecordings.d.ts.map +1 -0
  62. package/funcs/recordingListUcRecordings.js +119 -0
  63. package/funcs/recordingListUcRecordings.js.map +1 -0
  64. package/funcs/recordingPatchUcRecording.d.ts +14 -0
  65. package/funcs/recordingPatchUcRecording.d.ts.map +1 -0
  66. package/funcs/recordingPatchUcRecording.js +113 -0
  67. package/funcs/recordingPatchUcRecording.js.map +1 -0
  68. package/funcs/recordingRemoveUcRecording.d.ts +13 -0
  69. package/funcs/recordingRemoveUcRecording.d.ts.map +1 -0
  70. package/funcs/recordingRemoveUcRecording.js +110 -0
  71. package/funcs/recordingRemoveUcRecording.js.map +1 -0
  72. package/funcs/recordingUpdateUcRecording.d.ts +14 -0
  73. package/funcs/recordingUpdateUcRecording.d.ts.map +1 -0
  74. package/funcs/recordingUpdateUcRecording.js +113 -0
  75. package/funcs/recordingUpdateUcRecording.js.map +1 -0
  76. package/funcs/ucCreateUcComment.d.ts +14 -0
  77. package/funcs/ucCreateUcComment.d.ts.map +1 -0
  78. package/funcs/ucCreateUcComment.js +109 -0
  79. package/funcs/ucCreateUcComment.js.map +1 -0
  80. package/funcs/ucCreateUcRecording.d.ts +14 -0
  81. package/funcs/ucCreateUcRecording.d.ts.map +1 -0
  82. package/funcs/ucCreateUcRecording.js +109 -0
  83. package/funcs/ucCreateUcRecording.js.map +1 -0
  84. package/funcs/ucGetUcComment.d.ts +14 -0
  85. package/funcs/ucGetUcComment.d.ts.map +1 -0
  86. package/funcs/ucGetUcComment.js +112 -0
  87. package/funcs/ucGetUcComment.js.map +1 -0
  88. package/funcs/ucGetUcRecording.d.ts +14 -0
  89. package/funcs/ucGetUcRecording.d.ts.map +1 -0
  90. package/funcs/ucGetUcRecording.js +112 -0
  91. package/funcs/ucGetUcRecording.js.map +1 -0
  92. package/funcs/ucListUcComments.d.ts +14 -0
  93. package/funcs/ucListUcComments.d.ts.map +1 -0
  94. package/funcs/ucListUcComments.js +117 -0
  95. package/funcs/ucListUcComments.js.map +1 -0
  96. package/funcs/ucListUcRecordings.d.ts +14 -0
  97. package/funcs/ucListUcRecordings.d.ts.map +1 -0
  98. package/funcs/ucListUcRecordings.js +119 -0
  99. package/funcs/ucListUcRecordings.js.map +1 -0
  100. package/funcs/ucPatchUcComment.d.ts +14 -0
  101. package/funcs/ucPatchUcComment.d.ts.map +1 -0
  102. package/funcs/ucPatchUcComment.js +113 -0
  103. package/funcs/ucPatchUcComment.js.map +1 -0
  104. package/funcs/ucPatchUcRecording.d.ts +14 -0
  105. package/funcs/ucPatchUcRecording.d.ts.map +1 -0
  106. package/funcs/ucPatchUcRecording.js +113 -0
  107. package/funcs/ucPatchUcRecording.js.map +1 -0
  108. package/funcs/ucRemoveUcComment.d.ts +13 -0
  109. package/funcs/ucRemoveUcComment.d.ts.map +1 -0
  110. package/funcs/ucRemoveUcComment.js +110 -0
  111. package/funcs/ucRemoveUcComment.js.map +1 -0
  112. package/funcs/ucRemoveUcRecording.d.ts +13 -0
  113. package/funcs/ucRemoveUcRecording.d.ts.map +1 -0
  114. package/funcs/ucRemoveUcRecording.js +110 -0
  115. package/funcs/ucRemoveUcRecording.js.map +1 -0
  116. package/funcs/ucUpdateUcComment.d.ts +14 -0
  117. package/funcs/ucUpdateUcComment.d.ts.map +1 -0
  118. package/funcs/ucUpdateUcComment.js +113 -0
  119. package/funcs/ucUpdateUcComment.js.map +1 -0
  120. package/funcs/ucUpdateUcRecording.d.ts +14 -0
  121. package/funcs/ucUpdateUcRecording.d.ts.map +1 -0
  122. package/funcs/ucUpdateUcRecording.js +113 -0
  123. package/funcs/ucUpdateUcRecording.js.map +1 -0
  124. package/jsr.json +1 -1
  125. package/lib/config.d.ts +2 -2
  126. package/lib/config.js +2 -2
  127. package/package.json +1 -1
  128. package/sdk/comment.d.ts +24 -0
  129. package/sdk/comment.d.ts.map +1 -1
  130. package/sdk/comment.js +42 -0
  131. package/sdk/comment.js.map +1 -1
  132. package/sdk/models/operations/createpassthroughjson.d.ts +6 -0
  133. package/sdk/models/operations/createpassthroughjson.d.ts.map +1 -1
  134. package/sdk/models/operations/createpassthroughjson.js +2 -0
  135. package/sdk/models/operations/createpassthroughjson.js.map +1 -1
  136. package/sdk/models/operations/createpassthroughraw.d.ts +6 -0
  137. package/sdk/models/operations/createpassthroughraw.d.ts.map +1 -1
  138. package/sdk/models/operations/createpassthroughraw.js +2 -0
  139. package/sdk/models/operations/createpassthroughraw.js.map +1 -1
  140. package/sdk/models/operations/createuccomment.d.ts +40 -0
  141. package/sdk/models/operations/createuccomment.d.ts.map +1 -0
  142. package/sdk/models/operations/createuccomment.js +75 -0
  143. package/sdk/models/operations/createuccomment.js.map +1 -0
  144. package/sdk/models/operations/createucrecording.d.ts +40 -0
  145. package/sdk/models/operations/createucrecording.d.ts.map +1 -0
  146. package/sdk/models/operations/createucrecording.js +75 -0
  147. package/sdk/models/operations/createucrecording.js.map +1 -0
  148. package/sdk/models/operations/getuccomment.d.ts +42 -0
  149. package/sdk/models/operations/getuccomment.d.ts.map +1 -0
  150. package/sdk/models/operations/getuccomment.js +72 -0
  151. package/sdk/models/operations/getuccomment.js.map +1 -0
  152. package/sdk/models/operations/getucrecording.d.ts +42 -0
  153. package/sdk/models/operations/getucrecording.d.ts.map +1 -0
  154. package/sdk/models/operations/getucrecording.js +72 -0
  155. package/sdk/models/operations/getucrecording.js.map +1 -0
  156. package/sdk/models/operations/index.d.ts +12 -0
  157. package/sdk/models/operations/index.d.ts.map +1 -1
  158. package/sdk/models/operations/index.js +12 -0
  159. package/sdk/models/operations/index.js.map +1 -1
  160. package/sdk/models/operations/listaccountingaccounts.d.ts +2 -0
  161. package/sdk/models/operations/listaccountingaccounts.d.ts.map +1 -1
  162. package/sdk/models/operations/listaccountingaccounts.js +4 -0
  163. package/sdk/models/operations/listaccountingaccounts.js.map +1 -1
  164. package/sdk/models/operations/listpassthroughs.d.ts +6 -0
  165. package/sdk/models/operations/listpassthroughs.d.ts.map +1 -1
  166. package/sdk/models/operations/listpassthroughs.js +2 -0
  167. package/sdk/models/operations/listpassthroughs.js.map +1 -1
  168. package/sdk/models/operations/listuccomments.d.ts +59 -0
  169. package/sdk/models/operations/listuccomments.d.ts.map +1 -0
  170. package/sdk/models/operations/listuccomments.js +93 -0
  171. package/sdk/models/operations/listuccomments.js.map +1 -0
  172. package/sdk/models/operations/listucrecordings.d.ts +63 -0
  173. package/sdk/models/operations/listucrecordings.d.ts.map +1 -0
  174. package/sdk/models/operations/listucrecordings.js +101 -0
  175. package/sdk/models/operations/listucrecordings.js.map +1 -0
  176. package/sdk/models/operations/patchpassthroughjson.d.ts +6 -0
  177. package/sdk/models/operations/patchpassthroughjson.d.ts.map +1 -1
  178. package/sdk/models/operations/patchpassthroughjson.js +2 -0
  179. package/sdk/models/operations/patchpassthroughjson.js.map +1 -1
  180. package/sdk/models/operations/patchpassthroughraw.d.ts +6 -0
  181. package/sdk/models/operations/patchpassthroughraw.d.ts.map +1 -1
  182. package/sdk/models/operations/patchpassthroughraw.js +2 -0
  183. package/sdk/models/operations/patchpassthroughraw.js.map +1 -1
  184. package/sdk/models/operations/patchuccomment.d.ts +45 -0
  185. package/sdk/models/operations/patchuccomment.d.ts.map +1 -0
  186. package/sdk/models/operations/patchuccomment.js +77 -0
  187. package/sdk/models/operations/patchuccomment.js.map +1 -0
  188. package/sdk/models/operations/patchucrecording.d.ts +45 -0
  189. package/sdk/models/operations/patchucrecording.d.ts.map +1 -0
  190. package/sdk/models/operations/patchucrecording.js +77 -0
  191. package/sdk/models/operations/patchucrecording.js.map +1 -0
  192. package/sdk/models/operations/removepassthrough.d.ts +6 -0
  193. package/sdk/models/operations/removepassthrough.d.ts.map +1 -1
  194. package/sdk/models/operations/removepassthrough.js +2 -0
  195. package/sdk/models/operations/removepassthrough.js.map +1 -1
  196. package/sdk/models/operations/removeuccomment.d.ts +66 -0
  197. package/sdk/models/operations/removeuccomment.d.ts.map +1 -0
  198. package/sdk/models/operations/removeuccomment.js +105 -0
  199. package/sdk/models/operations/removeuccomment.js.map +1 -0
  200. package/sdk/models/operations/removeucrecording.d.ts +66 -0
  201. package/sdk/models/operations/removeucrecording.d.ts.map +1 -0
  202. package/sdk/models/operations/removeucrecording.js +105 -0
  203. package/sdk/models/operations/removeucrecording.js.map +1 -0
  204. package/sdk/models/operations/updatepassthroughjson.d.ts +6 -0
  205. package/sdk/models/operations/updatepassthroughjson.d.ts.map +1 -1
  206. package/sdk/models/operations/updatepassthroughjson.js +2 -0
  207. package/sdk/models/operations/updatepassthroughjson.js.map +1 -1
  208. package/sdk/models/operations/updatepassthroughraw.d.ts +6 -0
  209. package/sdk/models/operations/updatepassthroughraw.d.ts.map +1 -1
  210. package/sdk/models/operations/updatepassthroughraw.js +2 -0
  211. package/sdk/models/operations/updatepassthroughraw.js.map +1 -1
  212. package/sdk/models/operations/updateuccomment.d.ts +45 -0
  213. package/sdk/models/operations/updateuccomment.d.ts.map +1 -0
  214. package/sdk/models/operations/updateuccomment.js +77 -0
  215. package/sdk/models/operations/updateuccomment.js.map +1 -0
  216. package/sdk/models/operations/updateucrecording.d.ts +45 -0
  217. package/sdk/models/operations/updateucrecording.d.ts.map +1 -0
  218. package/sdk/models/operations/updateucrecording.js +77 -0
  219. package/sdk/models/operations/updateucrecording.js.map +1 -0
  220. package/sdk/models/shared/accountingattachment.d.ts +6 -6
  221. package/sdk/models/shared/accountingattachment.d.ts.map +1 -1
  222. package/sdk/models/shared/accountingattachment.js +6 -6
  223. package/sdk/models/shared/accountingattachment.js.map +1 -1
  224. package/sdk/models/shared/index.d.ts +4 -0
  225. package/sdk/models/shared/index.d.ts.map +1 -1
  226. package/sdk/models/shared/index.js +4 -0
  227. package/sdk/models/shared/index.js.map +1 -1
  228. package/sdk/models/shared/integrationsupport.d.ts +30 -0
  229. package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  230. package/sdk/models/shared/integrationsupport.js +31 -6
  231. package/sdk/models/shared/integrationsupport.js.map +1 -1
  232. package/sdk/models/shared/propertyconnectionpermissions.d.ts +9 -0
  233. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  234. package/sdk/models/shared/propertyconnectionpermissions.js +3 -0
  235. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  236. package/sdk/models/shared/uccall.d.ts +0 -3
  237. package/sdk/models/shared/uccall.d.ts.map +1 -1
  238. package/sdk/models/shared/uccall.js.map +1 -1
  239. package/sdk/models/shared/uccomment.d.ts +43 -0
  240. package/sdk/models/shared/uccomment.d.ts.map +1 -0
  241. package/sdk/models/shared/uccomment.js +82 -0
  242. package/sdk/models/shared/uccomment.js.map +1 -0
  243. package/sdk/models/shared/uccontact.d.ts +0 -3
  244. package/sdk/models/shared/uccontact.d.ts.map +1 -1
  245. package/sdk/models/shared/uccontact.js.map +1 -1
  246. package/sdk/models/shared/ucrecording.d.ts +60 -0
  247. package/sdk/models/shared/ucrecording.d.ts.map +1 -0
  248. package/sdk/models/shared/ucrecording.js +120 -0
  249. package/sdk/models/shared/ucrecording.js.map +1 -0
  250. package/sdk/models/shared/ucrecordingmedia.d.ts +40 -0
  251. package/sdk/models/shared/ucrecordingmedia.d.ts.map +1 -0
  252. package/sdk/models/shared/ucrecordingmedia.js +87 -0
  253. package/sdk/models/shared/ucrecordingmedia.js.map +1 -0
  254. package/sdk/models/shared/ucrecordingtranscript.d.ts +37 -0
  255. package/sdk/models/shared/ucrecordingtranscript.d.ts.map +1 -0
  256. package/sdk/models/shared/ucrecordingtranscript.js +84 -0
  257. package/sdk/models/shared/ucrecordingtranscript.js.map +1 -0
  258. package/sdk/models/shared/webhook.d.ts +6 -0
  259. package/sdk/models/shared/webhook.d.ts.map +1 -1
  260. package/sdk/models/shared/webhook.js +2 -0
  261. package/sdk/models/shared/webhook.js.map +1 -1
  262. package/sdk/recording.d.ts +24 -0
  263. package/sdk/recording.d.ts.map +1 -1
  264. package/sdk/recording.js +42 -0
  265. package/sdk/recording.js.map +1 -1
  266. package/sdk/uc.d.ts +48 -0
  267. package/sdk/uc.d.ts.map +1 -1
  268. package/sdk/uc.js +84 -0
  269. package/sdk/uc.js.map +1 -1
  270. package/src/funcs/accountListAccountingAccounts.ts +1 -0
  271. package/src/funcs/accountingListAccountingAccounts.ts +1 -0
  272. package/src/funcs/commentCreateUcComment.ts +163 -0
  273. package/src/funcs/commentGetUcComment.ts +166 -0
  274. package/src/funcs/commentListUcComments.ts +171 -0
  275. package/src/funcs/commentPatchUcComment.ts +167 -0
  276. package/src/funcs/commentRemoveUcComment.ts +169 -0
  277. package/src/funcs/commentUpdateUcComment.ts +167 -0
  278. package/src/funcs/passthroughCreatePassthroughJson.ts +6 -1
  279. package/src/funcs/passthroughCreatePassthroughRaw.ts +6 -1
  280. package/src/funcs/passthroughListPassthroughs.ts +6 -1
  281. package/src/funcs/passthroughPatchPassthroughJson.ts +6 -1
  282. package/src/funcs/passthroughPatchPassthroughRaw.ts +6 -1
  283. package/src/funcs/passthroughRemovePassthrough.ts +6 -1
  284. package/src/funcs/passthroughUpdatePassthroughJson.ts +6 -1
  285. package/src/funcs/passthroughUpdatePassthroughRaw.ts +6 -1
  286. package/src/funcs/recordingCreateUcRecording.ts +163 -0
  287. package/src/funcs/recordingGetUcRecording.ts +166 -0
  288. package/src/funcs/recordingListUcRecordings.ts +173 -0
  289. package/src/funcs/recordingPatchUcRecording.ts +167 -0
  290. package/src/funcs/recordingRemoveUcRecording.ts +169 -0
  291. package/src/funcs/recordingUpdateUcRecording.ts +167 -0
  292. package/src/funcs/ucCreateUcComment.ts +163 -0
  293. package/src/funcs/ucCreateUcRecording.ts +163 -0
  294. package/src/funcs/ucGetUcComment.ts +166 -0
  295. package/src/funcs/ucGetUcRecording.ts +166 -0
  296. package/src/funcs/ucListUcComments.ts +171 -0
  297. package/src/funcs/ucListUcRecordings.ts +173 -0
  298. package/src/funcs/ucPatchUcComment.ts +167 -0
  299. package/src/funcs/ucPatchUcRecording.ts +167 -0
  300. package/src/funcs/ucRemoveUcComment.ts +169 -0
  301. package/src/funcs/ucRemoveUcRecording.ts +169 -0
  302. package/src/funcs/ucUpdateUcComment.ts +167 -0
  303. package/src/funcs/ucUpdateUcRecording.ts +167 -0
  304. package/src/lib/config.ts +2 -2
  305. package/src/sdk/comment.ts +90 -0
  306. package/src/sdk/models/operations/createpassthroughjson.ts +4 -0
  307. package/src/sdk/models/operations/createpassthroughraw.ts +4 -0
  308. package/src/sdk/models/operations/createuccomment.ts +92 -0
  309. package/src/sdk/models/operations/createucrecording.ts +92 -0
  310. package/src/sdk/models/operations/getuccomment.ts +92 -0
  311. package/src/sdk/models/operations/getucrecording.ts +92 -0
  312. package/src/sdk/models/operations/index.ts +12 -0
  313. package/src/sdk/models/operations/listaccountingaccounts.ts +6 -0
  314. package/src/sdk/models/operations/listpassthroughs.ts +4 -0
  315. package/src/sdk/models/operations/listuccomments.ts +130 -0
  316. package/src/sdk/models/operations/listucrecordings.ts +142 -0
  317. package/src/sdk/models/operations/patchpassthroughjson.ts +4 -0
  318. package/src/sdk/models/operations/patchpassthroughraw.ts +4 -0
  319. package/src/sdk/models/operations/patchuccomment.ts +99 -0
  320. package/src/sdk/models/operations/patchucrecording.ts +99 -0
  321. package/src/sdk/models/operations/removepassthrough.ts +4 -0
  322. package/src/sdk/models/operations/removeuccomment.ts +151 -0
  323. package/src/sdk/models/operations/removeucrecording.ts +151 -0
  324. package/src/sdk/models/operations/updatepassthroughjson.ts +4 -0
  325. package/src/sdk/models/operations/updatepassthroughraw.ts +4 -0
  326. package/src/sdk/models/operations/updateuccomment.ts +99 -0
  327. package/src/sdk/models/operations/updateucrecording.ts +99 -0
  328. package/src/sdk/models/shared/accountingattachment.ts +12 -12
  329. package/src/sdk/models/shared/index.ts +4 -0
  330. package/src/sdk/models/shared/integrationsupport.ts +32 -0
  331. package/src/sdk/models/shared/propertyconnectionpermissions.ts +3 -0
  332. package/src/sdk/models/shared/uccall.ts +0 -3
  333. package/src/sdk/models/shared/uccomment.ts +95 -0
  334. package/src/sdk/models/shared/uccontact.ts +0 -3
  335. package/src/sdk/models/shared/ucrecording.ts +154 -0
  336. package/src/sdk/models/shared/ucrecordingmedia.ts +109 -0
  337. package/src/sdk/models/shared/ucrecordingtranscript.ts +99 -0
  338. package/src/sdk/models/shared/webhook.ts +2 -0
  339. package/src/sdk/recording.ts +90 -0
  340. package/src/sdk/uc.ts +180 -0
@@ -0,0 +1,163 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeJSON, 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 {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../sdk/models/errors/httpclienterrors.js";
20
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../sdk/models/operations/index.js";
23
+ import * as shared from "../sdk/models/shared/index.js";
24
+ import { APICall, APIPromise } from "../sdk/types/async.js";
25
+ import { Result } from "../sdk/types/fp.js";
26
+
27
+ /**
28
+ * Create a recording
29
+ */
30
+ export function ucCreateUcRecording(
31
+ client: UnifiedToCore,
32
+ request: operations.CreateUcRecordingRequest,
33
+ options?: RequestOptions,
34
+ ): APIPromise<
35
+ Result<
36
+ shared.UcRecording,
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: UnifiedToCore,
55
+ request: operations.CreateUcRecordingRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ shared.UcRecording,
61
+ | SDKError
62
+ | SDKValidationError
63
+ | UnexpectedClientError
64
+ | InvalidRequestError
65
+ | RequestAbortedError
66
+ | RequestTimeoutError
67
+ | ConnectionError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) => operations.CreateUcRecordingRequest$outboundSchema.parse(value),
75
+ "Input validation failed",
76
+ );
77
+ if (!parsed.ok) {
78
+ return [parsed, { status: "invalid" }];
79
+ }
80
+ const payload = parsed.value;
81
+ const body = encodeJSON("body", payload.UcRecording, { explode: true });
82
+
83
+ const pathParams = {
84
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
85
+ explode: false,
86
+ charEncoding: "percent",
87
+ }),
88
+ };
89
+
90
+ const path = pathToFunc("/uc/{connection_id}/recording")(pathParams);
91
+
92
+ const query = encodeFormQuery({
93
+ "fields": payload.fields,
94
+ });
95
+
96
+ const headers = new Headers(compactMap({
97
+ "Content-Type": "application/json",
98
+ Accept: "application/json",
99
+ }));
100
+
101
+ const securityInput = await extractSecurity(client._options.security);
102
+ const requestSecurity = resolveGlobalSecurity(securityInput);
103
+
104
+ const context = {
105
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
106
+ operationID: "createUcRecording",
107
+ oAuth2Scopes: [],
108
+
109
+ resolvedSecurity: requestSecurity,
110
+
111
+ securitySource: client._options.security,
112
+ retryConfig: options?.retries
113
+ || client._options.retryConfig
114
+ || { strategy: "none" },
115
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
116
+ };
117
+
118
+ const requestRes = client._createRequest(context, {
119
+ security: requestSecurity,
120
+ method: "POST",
121
+ baseURL: options?.serverURL,
122
+ path: path,
123
+ headers: headers,
124
+ query: query,
125
+ body: body,
126
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
127
+ }, options);
128
+ if (!requestRes.ok) {
129
+ return [requestRes, { status: "invalid" }];
130
+ }
131
+ const req = requestRes.value;
132
+
133
+ const doResult = await client._do(req, {
134
+ context,
135
+ errorCodes: ["4XX", "5XX"],
136
+ retryConfig: context.retryConfig,
137
+ retryCodes: context.retryCodes,
138
+ });
139
+ if (!doResult.ok) {
140
+ return [doResult, { status: "request-error", request: req }];
141
+ }
142
+ const response = doResult.value;
143
+
144
+ const [result] = await M.match<
145
+ shared.UcRecording,
146
+ | SDKError
147
+ | SDKValidationError
148
+ | UnexpectedClientError
149
+ | InvalidRequestError
150
+ | RequestAbortedError
151
+ | RequestTimeoutError
152
+ | ConnectionError
153
+ >(
154
+ M.json(200, shared.UcRecording$inboundSchema),
155
+ M.fail("4XX"),
156
+ M.fail("5XX"),
157
+ )(response);
158
+ if (!result.ok) {
159
+ return [result, { status: "complete", request: req, response }];
160
+ }
161
+
162
+ return [result, { status: "complete", request: req, response }];
163
+ }
@@ -0,0 +1,166 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, 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 {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../sdk/models/errors/httpclienterrors.js";
20
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../sdk/models/operations/index.js";
23
+ import * as shared from "../sdk/models/shared/index.js";
24
+ import { APICall, APIPromise } from "../sdk/types/async.js";
25
+ import { Result } from "../sdk/types/fp.js";
26
+
27
+ /**
28
+ * Retrieve a comment
29
+ */
30
+ export function ucGetUcComment(
31
+ client: UnifiedToCore,
32
+ request: operations.GetUcCommentRequest,
33
+ options?: RequestOptions,
34
+ ): APIPromise<
35
+ Result<
36
+ shared.UcComment,
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: UnifiedToCore,
55
+ request: operations.GetUcCommentRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ shared.UcComment,
61
+ | SDKError
62
+ | SDKValidationError
63
+ | UnexpectedClientError
64
+ | InvalidRequestError
65
+ | RequestAbortedError
66
+ | RequestTimeoutError
67
+ | ConnectionError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) => operations.GetUcCommentRequest$outboundSchema.parse(value),
75
+ "Input validation failed",
76
+ );
77
+ if (!parsed.ok) {
78
+ return [parsed, { status: "invalid" }];
79
+ }
80
+ const payload = parsed.value;
81
+ const body = null;
82
+
83
+ const pathParams = {
84
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
85
+ explode: false,
86
+ charEncoding: "percent",
87
+ }),
88
+ id: encodeSimple("id", payload.id, {
89
+ explode: false,
90
+ charEncoding: "percent",
91
+ }),
92
+ };
93
+
94
+ const path = pathToFunc("/uc/{connection_id}/comment/{id}")(pathParams);
95
+
96
+ const query = encodeFormQuery({
97
+ "fields": payload.fields,
98
+ });
99
+
100
+ const headers = new Headers(compactMap({
101
+ Accept: "application/json",
102
+ }));
103
+
104
+ const securityInput = await extractSecurity(client._options.security);
105
+ const requestSecurity = resolveGlobalSecurity(securityInput);
106
+
107
+ const context = {
108
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
109
+ operationID: "getUcComment",
110
+ oAuth2Scopes: [],
111
+
112
+ resolvedSecurity: requestSecurity,
113
+
114
+ securitySource: client._options.security,
115
+ retryConfig: options?.retries
116
+ || client._options.retryConfig
117
+ || { strategy: "none" },
118
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
119
+ };
120
+
121
+ const requestRes = client._createRequest(context, {
122
+ security: requestSecurity,
123
+ method: "GET",
124
+ baseURL: options?.serverURL,
125
+ path: path,
126
+ headers: headers,
127
+ query: query,
128
+ body: body,
129
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
130
+ }, options);
131
+ if (!requestRes.ok) {
132
+ return [requestRes, { status: "invalid" }];
133
+ }
134
+ const req = requestRes.value;
135
+
136
+ const doResult = await client._do(req, {
137
+ context,
138
+ errorCodes: ["4XX", "5XX"],
139
+ retryConfig: context.retryConfig,
140
+ retryCodes: context.retryCodes,
141
+ });
142
+ if (!doResult.ok) {
143
+ return [doResult, { status: "request-error", request: req }];
144
+ }
145
+ const response = doResult.value;
146
+
147
+ const [result] = await M.match<
148
+ shared.UcComment,
149
+ | SDKError
150
+ | SDKValidationError
151
+ | UnexpectedClientError
152
+ | InvalidRequestError
153
+ | RequestAbortedError
154
+ | RequestTimeoutError
155
+ | ConnectionError
156
+ >(
157
+ M.json(200, shared.UcComment$inboundSchema),
158
+ M.fail("4XX"),
159
+ M.fail("5XX"),
160
+ )(response);
161
+ if (!result.ok) {
162
+ return [result, { status: "complete", request: req, response }];
163
+ }
164
+
165
+ return [result, { status: "complete", request: req, response }];
166
+ }
@@ -0,0 +1,166 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, 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 {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../sdk/models/errors/httpclienterrors.js";
20
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../sdk/models/operations/index.js";
23
+ import * as shared from "../sdk/models/shared/index.js";
24
+ import { APICall, APIPromise } from "../sdk/types/async.js";
25
+ import { Result } from "../sdk/types/fp.js";
26
+
27
+ /**
28
+ * Retrieve a recording
29
+ */
30
+ export function ucGetUcRecording(
31
+ client: UnifiedToCore,
32
+ request: operations.GetUcRecordingRequest,
33
+ options?: RequestOptions,
34
+ ): APIPromise<
35
+ Result<
36
+ shared.UcRecording,
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: UnifiedToCore,
55
+ request: operations.GetUcRecordingRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ shared.UcRecording,
61
+ | SDKError
62
+ | SDKValidationError
63
+ | UnexpectedClientError
64
+ | InvalidRequestError
65
+ | RequestAbortedError
66
+ | RequestTimeoutError
67
+ | ConnectionError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) => operations.GetUcRecordingRequest$outboundSchema.parse(value),
75
+ "Input validation failed",
76
+ );
77
+ if (!parsed.ok) {
78
+ return [parsed, { status: "invalid" }];
79
+ }
80
+ const payload = parsed.value;
81
+ const body = null;
82
+
83
+ const pathParams = {
84
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
85
+ explode: false,
86
+ charEncoding: "percent",
87
+ }),
88
+ id: encodeSimple("id", payload.id, {
89
+ explode: false,
90
+ charEncoding: "percent",
91
+ }),
92
+ };
93
+
94
+ const path = pathToFunc("/uc/{connection_id}/recording/{id}")(pathParams);
95
+
96
+ const query = encodeFormQuery({
97
+ "fields": payload.fields,
98
+ });
99
+
100
+ const headers = new Headers(compactMap({
101
+ Accept: "application/json",
102
+ }));
103
+
104
+ const securityInput = await extractSecurity(client._options.security);
105
+ const requestSecurity = resolveGlobalSecurity(securityInput);
106
+
107
+ const context = {
108
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
109
+ operationID: "getUcRecording",
110
+ oAuth2Scopes: [],
111
+
112
+ resolvedSecurity: requestSecurity,
113
+
114
+ securitySource: client._options.security,
115
+ retryConfig: options?.retries
116
+ || client._options.retryConfig
117
+ || { strategy: "none" },
118
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
119
+ };
120
+
121
+ const requestRes = client._createRequest(context, {
122
+ security: requestSecurity,
123
+ method: "GET",
124
+ baseURL: options?.serverURL,
125
+ path: path,
126
+ headers: headers,
127
+ query: query,
128
+ body: body,
129
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
130
+ }, options);
131
+ if (!requestRes.ok) {
132
+ return [requestRes, { status: "invalid" }];
133
+ }
134
+ const req = requestRes.value;
135
+
136
+ const doResult = await client._do(req, {
137
+ context,
138
+ errorCodes: ["4XX", "5XX"],
139
+ retryConfig: context.retryConfig,
140
+ retryCodes: context.retryCodes,
141
+ });
142
+ if (!doResult.ok) {
143
+ return [doResult, { status: "request-error", request: req }];
144
+ }
145
+ const response = doResult.value;
146
+
147
+ const [result] = await M.match<
148
+ shared.UcRecording,
149
+ | SDKError
150
+ | SDKValidationError
151
+ | UnexpectedClientError
152
+ | InvalidRequestError
153
+ | RequestAbortedError
154
+ | RequestTimeoutError
155
+ | ConnectionError
156
+ >(
157
+ M.json(200, shared.UcRecording$inboundSchema),
158
+ M.fail("4XX"),
159
+ M.fail("5XX"),
160
+ )(response);
161
+ if (!result.ok) {
162
+ return [result, { status: "complete", request: req, response }];
163
+ }
164
+
165
+ return [result, { status: "complete", request: req, response }];
166
+ }
@@ -0,0 +1,171 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { UnifiedToCore } from "../core.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../sdk/models/operations/index.js";
24
+ import * as shared from "../sdk/models/shared/index.js";
25
+ import { APICall, APIPromise } from "../sdk/types/async.js";
26
+ import { Result } from "../sdk/types/fp.js";
27
+
28
+ /**
29
+ * List all comments
30
+ */
31
+ export function ucListUcComments(
32
+ client: UnifiedToCore,
33
+ request: operations.ListUcCommentsRequest,
34
+ options?: RequestOptions,
35
+ ): APIPromise<
36
+ Result<
37
+ Array<shared.UcComment>,
38
+ | SDKError
39
+ | SDKValidationError
40
+ | UnexpectedClientError
41
+ | InvalidRequestError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | ConnectionError
45
+ >
46
+ > {
47
+ return new APIPromise($do(
48
+ client,
49
+ request,
50
+ options,
51
+ ));
52
+ }
53
+
54
+ async function $do(
55
+ client: UnifiedToCore,
56
+ request: operations.ListUcCommentsRequest,
57
+ options?: RequestOptions,
58
+ ): Promise<
59
+ [
60
+ Result<
61
+ Array<shared.UcComment>,
62
+ | SDKError
63
+ | SDKValidationError
64
+ | UnexpectedClientError
65
+ | InvalidRequestError
66
+ | RequestAbortedError
67
+ | RequestTimeoutError
68
+ | ConnectionError
69
+ >,
70
+ APICall,
71
+ ]
72
+ > {
73
+ const parsed = safeParse(
74
+ request,
75
+ (value) => operations.ListUcCommentsRequest$outboundSchema.parse(value),
76
+ "Input validation failed",
77
+ );
78
+ if (!parsed.ok) {
79
+ return [parsed, { status: "invalid" }];
80
+ }
81
+ const payload = parsed.value;
82
+ const body = null;
83
+
84
+ const pathParams = {
85
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
86
+ explode: false,
87
+ charEncoding: "percent",
88
+ }),
89
+ };
90
+
91
+ const path = pathToFunc("/uc/{connection_id}/comment")(pathParams);
92
+
93
+ const query = encodeFormQuery({
94
+ "call_id": payload.call_id,
95
+ "fields": payload.fields,
96
+ "limit": payload.limit,
97
+ "offset": payload.offset,
98
+ "order": payload.order,
99
+ "query": payload.query,
100
+ "sort": payload.sort,
101
+ "updated_gte": payload.updated_gte,
102
+ "user_id": payload.user_id,
103
+ });
104
+
105
+ const headers = new Headers(compactMap({
106
+ Accept: "application/json",
107
+ }));
108
+
109
+ const securityInput = await extractSecurity(client._options.security);
110
+ const requestSecurity = resolveGlobalSecurity(securityInput);
111
+
112
+ const context = {
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
114
+ operationID: "listUcComments",
115
+ oAuth2Scopes: [],
116
+
117
+ resolvedSecurity: requestSecurity,
118
+
119
+ securitySource: client._options.security,
120
+ retryConfig: options?.retries
121
+ || client._options.retryConfig
122
+ || { strategy: "none" },
123
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
+ };
125
+
126
+ const requestRes = client._createRequest(context, {
127
+ security: requestSecurity,
128
+ method: "GET",
129
+ baseURL: options?.serverURL,
130
+ path: path,
131
+ headers: headers,
132
+ query: query,
133
+ body: body,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ errorCodes: ["4XX", "5XX"],
144
+ retryConfig: context.retryConfig,
145
+ retryCodes: context.retryCodes,
146
+ });
147
+ if (!doResult.ok) {
148
+ return [doResult, { status: "request-error", request: req }];
149
+ }
150
+ const response = doResult.value;
151
+
152
+ const [result] = await M.match<
153
+ Array<shared.UcComment>,
154
+ | SDKError
155
+ | SDKValidationError
156
+ | UnexpectedClientError
157
+ | InvalidRequestError
158
+ | RequestAbortedError
159
+ | RequestTimeoutError
160
+ | ConnectionError
161
+ >(
162
+ M.json(200, z.array(shared.UcComment$inboundSchema)),
163
+ M.fail("4XX"),
164
+ M.fail("5XX"),
165
+ )(response);
166
+ if (!result.ok) {
167
+ return [result, { status: "complete", request: req, response }];
168
+ }
169
+
170
+ return [result, { status: "complete", request: req, response }];
171
+ }