@rc-ex/core 1.6.1 → 1.6.2

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 (660) hide show
  1. package/lib/FormData.js +42 -107
  2. package/lib/FormData.js.map +1 -1
  3. package/lib/Rest.js +68 -105
  4. package/lib/Rest.js.map +1 -1
  5. package/lib/RestException.js +11 -28
  6. package/lib/RestException.js.map +1 -1
  7. package/lib/SdkExtension.js +6 -9
  8. package/lib/SdkExtension.js.map +1 -1
  9. package/lib/Utils.js +25 -36
  10. package/lib/Utils.js.map +1 -1
  11. package/lib/index.js +141 -269
  12. package/lib/index.js.map +1 -1
  13. package/lib/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.js +12 -56
  14. package/lib/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.js.map +1 -1
  15. package/lib/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js +12 -56
  16. package/lib/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js.map +1 -1
  17. package/lib/paths/Ai/Audio/V1/Async/SpeechToText/index.js +12 -56
  18. package/lib/paths/Ai/Audio/V1/Async/SpeechToText/index.js.map +1 -1
  19. package/lib/paths/Ai/Audio/V1/Async/index.js +17 -16
  20. package/lib/paths/Ai/Audio/V1/Async/index.js.map +1 -1
  21. package/lib/paths/Ai/Audio/V1/Enrollments/index.js +39 -123
  22. package/lib/paths/Ai/Audio/V1/Enrollments/index.js.map +1 -1
  23. package/lib/paths/Ai/Audio/V1/index.js +14 -14
  24. package/lib/paths/Ai/Audio/V1/index.js.map +1 -1
  25. package/lib/paths/Ai/Audio/index.js +11 -10
  26. package/lib/paths/Ai/Audio/index.js.map +1 -1
  27. package/lib/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.js +12 -56
  28. package/lib/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.js.map +1 -1
  29. package/lib/paths/Ai/Insights/V1/Async/index.js +11 -10
  30. package/lib/paths/Ai/Insights/V1/Async/index.js.map +1 -1
  31. package/lib/paths/Ai/Insights/V1/index.js +11 -10
  32. package/lib/paths/Ai/Insights/V1/index.js.map +1 -1
  33. package/lib/paths/Ai/Insights/index.js +11 -10
  34. package/lib/paths/Ai/Insights/index.js.map +1 -1
  35. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js +12 -56
  36. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js.map +1 -1
  37. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js +13 -13
  38. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js.map +1 -1
  39. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js +13 -14
  40. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js.map +1 -1
  41. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/index.js +13 -14
  42. package/lib/paths/Ai/Ringsense/V1/Public/Accounts/index.js.map +1 -1
  43. package/lib/paths/Ai/Ringsense/V1/Public/index.js +11 -11
  44. package/lib/paths/Ai/Ringsense/V1/Public/index.js.map +1 -1
  45. package/lib/paths/Ai/Ringsense/V1/index.js +11 -10
  46. package/lib/paths/Ai/Ringsense/V1/index.js.map +1 -1
  47. package/lib/paths/Ai/Ringsense/index.js +11 -10
  48. package/lib/paths/Ai/Ringsense/index.js.map +1 -1
  49. package/lib/paths/Ai/Status/V1/Jobs/index.js +17 -63
  50. package/lib/paths/Ai/Status/V1/Jobs/index.js.map +1 -1
  51. package/lib/paths/Ai/Status/V1/index.js +11 -11
  52. package/lib/paths/Ai/Status/V1/index.js.map +1 -1
  53. package/lib/paths/Ai/Status/index.js +11 -10
  54. package/lib/paths/Ai/Status/index.js.map +1 -1
  55. package/lib/paths/Ai/Text/V1/Async/Punctuate/index.js +12 -56
  56. package/lib/paths/Ai/Text/V1/Async/Punctuate/index.js.map +1 -1
  57. package/lib/paths/Ai/Text/V1/Async/Summarize/index.js +12 -56
  58. package/lib/paths/Ai/Text/V1/Async/Summarize/index.js.map +1 -1
  59. package/lib/paths/Ai/Text/V1/Async/index.js +14 -13
  60. package/lib/paths/Ai/Text/V1/Async/index.js.map +1 -1
  61. package/lib/paths/Ai/Text/V1/index.js +11 -10
  62. package/lib/paths/Ai/Text/V1/index.js.map +1 -1
  63. package/lib/paths/Ai/Text/index.js +11 -10
  64. package/lib/paths/Ai/Text/index.js.map +1 -1
  65. package/lib/paths/Ai/index.js +21 -21
  66. package/lib/paths/Ai/index.js.map +1 -1
  67. package/lib/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.js +12 -56
  68. package/lib/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.js.map +1 -1
  69. package/lib/paths/Analytics/Calls/V1/Accounts/Aggregation/index.js +11 -10
  70. package/lib/paths/Analytics/Calls/V1/Accounts/Aggregation/index.js.map +1 -1
  71. package/lib/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.js +12 -56
  72. package/lib/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.js.map +1 -1
  73. package/lib/paths/Analytics/Calls/V1/Accounts/Timeline/index.js +11 -10
  74. package/lib/paths/Analytics/Calls/V1/Accounts/Timeline/index.js.map +1 -1
  75. package/lib/paths/Analytics/Calls/V1/Accounts/index.js +16 -16
  76. package/lib/paths/Analytics/Calls/V1/Accounts/index.js.map +1 -1
  77. package/lib/paths/Analytics/Calls/V1/index.js +11 -11
  78. package/lib/paths/Analytics/Calls/V1/index.js.map +1 -1
  79. package/lib/paths/Analytics/Calls/index.js +11 -10
  80. package/lib/paths/Analytics/Calls/index.js.map +1 -1
  81. package/lib/paths/Analytics/index.js +9 -9
  82. package/lib/paths/Analytics/index.js.map +1 -1
  83. package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.js +12 -56
  84. package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.js.map +1 -1
  85. package/lib/paths/Rcvideo/V1/Account/Extension/index.js +13 -13
  86. package/lib/paths/Rcvideo/V1/Account/Extension/index.js.map +1 -1
  87. package/lib/paths/Rcvideo/V1/Account/Recordings/index.js +12 -56
  88. package/lib/paths/Rcvideo/V1/Account/Recordings/index.js.map +1 -1
  89. package/lib/paths/Rcvideo/V1/Account/index.js +16 -17
  90. package/lib/paths/Rcvideo/V1/Account/index.js.map +1 -1
  91. package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js +12 -56
  92. package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js.map +1 -1
  93. package/lib/paths/Rcvideo/V1/Accounts/Extensions/index.js +13 -13
  94. package/lib/paths/Rcvideo/V1/Accounts/Extensions/index.js.map +1 -1
  95. package/lib/paths/Rcvideo/V1/Accounts/index.js +13 -14
  96. package/lib/paths/Rcvideo/V1/Accounts/index.js.map +1 -1
  97. package/lib/paths/Rcvideo/V1/History/Meetings/index.js +21 -76
  98. package/lib/paths/Rcvideo/V1/History/Meetings/index.js.map +1 -1
  99. package/lib/paths/Rcvideo/V1/History/index.js +11 -11
  100. package/lib/paths/Rcvideo/V1/History/index.js.map +1 -1
  101. package/lib/paths/Rcvideo/V1/index.js +17 -18
  102. package/lib/paths/Rcvideo/V1/index.js.map +1 -1
  103. package/lib/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.js +12 -56
  104. package/lib/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.js.map +1 -1
  105. package/lib/paths/Rcvideo/V2/Account/Extension/Bridges/index.js +15 -59
  106. package/lib/paths/Rcvideo/V2/Account/Extension/Bridges/index.js.map +1 -1
  107. package/lib/paths/Rcvideo/V2/Account/Extension/index.js +13 -13
  108. package/lib/paths/Rcvideo/V2/Account/Extension/index.js.map +1 -1
  109. package/lib/paths/Rcvideo/V2/Account/index.js +13 -14
  110. package/lib/paths/Rcvideo/V2/Account/index.js.map +1 -1
  111. package/lib/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.js +17 -63
  112. package/lib/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.js.map +1 -1
  113. package/lib/paths/Rcvideo/V2/Bridges/Pin/Web/index.js +17 -63
  114. package/lib/paths/Rcvideo/V2/Bridges/Pin/Web/index.js.map +1 -1
  115. package/lib/paths/Rcvideo/V2/Bridges/Pin/index.js +14 -15
  116. package/lib/paths/Rcvideo/V2/Bridges/Pin/index.js.map +1 -1
  117. package/lib/paths/Rcvideo/V2/Bridges/index.js +34 -100
  118. package/lib/paths/Rcvideo/V2/Bridges/index.js.map +1 -1
  119. package/lib/paths/Rcvideo/V2/index.js +14 -15
  120. package/lib/paths/Rcvideo/V2/index.js.map +1 -1
  121. package/lib/paths/Rcvideo/index.js +12 -12
  122. package/lib/paths/Rcvideo/index.js.map +1 -1
  123. package/lib/paths/Restapi/Account/A2pSms/Batches/index.js +25 -89
  124. package/lib/paths/Restapi/Account/A2pSms/Batches/index.js.map +1 -1
  125. package/lib/paths/Restapi/Account/A2pSms/Messages/index.js +21 -76
  126. package/lib/paths/Restapi/Account/A2pSms/Messages/index.js.map +1 -1
  127. package/lib/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.js +12 -56
  128. package/lib/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.js.map +1 -1
  129. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.js +15 -59
  130. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.js.map +1 -1
  131. package/lib/paths/Restapi/Account/A2pSms/Statuses/index.js +12 -56
  132. package/lib/paths/Restapi/Account/A2pSms/Statuses/index.js.map +1 -1
  133. package/lib/paths/Restapi/Account/A2pSms/index.js +20 -21
  134. package/lib/paths/Restapi/Account/A2pSms/index.js.map +1 -1
  135. package/lib/paths/Restapi/Account/ActiveCalls/index.js +12 -56
  136. package/lib/paths/Restapi/Account/ActiveCalls/index.js.map +1 -1
  137. package/lib/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.js +17 -63
  138. package/lib/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.js.map +1 -1
  139. package/lib/paths/Restapi/Account/AddressBookBulkUpload/index.js +15 -60
  140. package/lib/paths/Restapi/Account/AddressBookBulkUpload/index.js.map +1 -1
  141. package/lib/paths/Restapi/Account/AnsweringRule/index.js +39 -123
  142. package/lib/paths/Restapi/Account/AnsweringRule/index.js.map +1 -1
  143. package/lib/paths/Restapi/Account/AssignedRole/index.js +12 -56
  144. package/lib/paths/Restapi/Account/AssignedRole/index.js.map +1 -1
  145. package/lib/paths/Restapi/Account/AuditTrail/Search/index.js +12 -56
  146. package/lib/paths/Restapi/Account/AuditTrail/Search/index.js.map +1 -1
  147. package/lib/paths/Restapi/Account/AuditTrail/index.js +11 -10
  148. package/lib/paths/Restapi/Account/AuditTrail/index.js.map +1 -1
  149. package/lib/paths/Restapi/Account/BusinessAddress/index.js +16 -69
  150. package/lib/paths/Restapi/Account/BusinessAddress/index.js.map +1 -1
  151. package/lib/paths/Restapi/Account/BusinessHours/index.js +16 -69
  152. package/lib/paths/Restapi/Account/BusinessHours/index.js.map +1 -1
  153. package/lib/paths/Restapi/Account/CallLog/index.js +21 -76
  154. package/lib/paths/Restapi/Account/CallLog/index.js.map +1 -1
  155. package/lib/paths/Restapi/Account/CallLogSync/index.js +12 -56
  156. package/lib/paths/Restapi/Account/CallLogSync/index.js.map +1 -1
  157. package/lib/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.js +12 -56
  158. package/lib/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.js.map +1 -1
  159. package/lib/paths/Restapi/Account/CallMonitoringGroups/Members/index.js +12 -56
  160. package/lib/paths/Restapi/Account/CallMonitoringGroups/Members/index.js.map +1 -1
  161. package/lib/paths/Restapi/Account/CallMonitoringGroups/index.js +38 -112
  162. package/lib/paths/Restapi/Account/CallMonitoringGroups/index.js.map +1 -1
  163. package/lib/paths/Restapi/Account/CallQueues/BulkAssign/index.js +12 -56
  164. package/lib/paths/Restapi/Account/CallQueues/BulkAssign/index.js.map +1 -1
  165. package/lib/paths/Restapi/Account/CallQueues/Members/index.js +12 -56
  166. package/lib/paths/Restapi/Account/CallQueues/Members/index.js.map +1 -1
  167. package/lib/paths/Restapi/Account/CallQueues/Presence/index.js +16 -69
  168. package/lib/paths/Restapi/Account/CallQueues/Presence/index.js.map +1 -1
  169. package/lib/paths/Restapi/Account/CallQueues/index.js +37 -102
  170. package/lib/paths/Restapi/Account/CallQueues/index.js.map +1 -1
  171. package/lib/paths/Restapi/Account/CallRecording/BulkAssign/index.js +12 -56
  172. package/lib/paths/Restapi/Account/CallRecording/BulkAssign/index.js.map +1 -1
  173. package/lib/paths/Restapi/Account/CallRecording/CustomGreetings/index.js +25 -89
  174. package/lib/paths/Restapi/Account/CallRecording/CustomGreetings/index.js.map +1 -1
  175. package/lib/paths/Restapi/Account/CallRecording/Extensions/index.js +12 -56
  176. package/lib/paths/Restapi/Account/CallRecording/Extensions/index.js.map +1 -1
  177. package/lib/paths/Restapi/Account/CallRecording/index.js +25 -79
  178. package/lib/paths/Restapi/Account/CallRecording/index.js.map +1 -1
  179. package/lib/paths/Restapi/Account/CallRecordings/index.js +12 -56
  180. package/lib/paths/Restapi/Account/CallRecordings/index.js.map +1 -1
  181. package/lib/paths/Restapi/Account/CustomFields/index.js +32 -106
  182. package/lib/paths/Restapi/Account/CustomFields/index.js.map +1 -1
  183. package/lib/paths/Restapi/Account/Device/Emergency/index.js +12 -56
  184. package/lib/paths/Restapi/Account/Device/Emergency/index.js.map +1 -1
  185. package/lib/paths/Restapi/Account/Device/SipInfo/index.js +12 -56
  186. package/lib/paths/Restapi/Account/Device/SipInfo/index.js.map +1 -1
  187. package/lib/paths/Restapi/Account/Device/index.js +30 -86
  188. package/lib/paths/Restapi/Account/Device/index.js.map +1 -1
  189. package/lib/paths/Restapi/Account/Directory/Entries/Search/index.js +12 -56
  190. package/lib/paths/Restapi/Account/Directory/Entries/Search/index.js.map +1 -1
  191. package/lib/paths/Restapi/Account/Directory/Entries/index.js +24 -79
  192. package/lib/paths/Restapi/Account/Directory/Entries/index.js.map +1 -1
  193. package/lib/paths/Restapi/Account/Directory/Federation/index.js +12 -56
  194. package/lib/paths/Restapi/Account/Directory/Federation/index.js.map +1 -1
  195. package/lib/paths/Restapi/Account/Directory/index.js +14 -14
  196. package/lib/paths/Restapi/Account/Directory/index.js.map +1 -1
  197. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.js +12 -56
  198. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.js.map +1 -1
  199. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.js +15 -59
  200. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.js.map +1 -1
  201. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.js +39 -123
  202. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.js.map +1 -1
  203. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.js +39 -123
  204. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.js.map +1 -1
  205. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.js +12 -56
  206. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.js.map +1 -1
  207. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.js +12 -56
  208. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.js.map +1 -1
  209. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.js +12 -56
  210. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.js.map +1 -1
  211. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.js +17 -63
  212. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.js.map +1 -1
  213. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.js +12 -56
  214. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.js.map +1 -1
  215. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.js +15 -59
  216. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.js.map +1 -1
  217. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.js +39 -123
  218. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.js.map +1 -1
  219. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.js +12 -56
  220. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.js.map +1 -1
  221. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.js +12 -56
  222. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.js.map +1 -1
  223. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.js +12 -56
  224. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.js.map +1 -1
  225. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.js +44 -47
  226. package/lib/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.js.map +1 -1
  227. package/lib/paths/Restapi/Account/EmergencyLocations/index.js +39 -123
  228. package/lib/paths/Restapi/Account/EmergencyLocations/index.js.map +1 -1
  229. package/lib/paths/Restapi/Account/Extension/ActiveCalls/index.js +12 -56
  230. package/lib/paths/Restapi/Account/Extension/ActiveCalls/index.js.map +1 -1
  231. package/lib/paths/Restapi/Account/Extension/AddressBook/Contact/index.js +46 -140
  232. package/lib/paths/Restapi/Account/Extension/AddressBook/Contact/index.js.map +1 -1
  233. package/lib/paths/Restapi/Account/Extension/AddressBook/index.js +11 -11
  234. package/lib/paths/Restapi/Account/Extension/AddressBook/index.js.map +1 -1
  235. package/lib/paths/Restapi/Account/Extension/AddressBookSync/index.js +12 -56
  236. package/lib/paths/Restapi/Account/Extension/AddressBookSync/index.js.map +1 -1
  237. package/lib/paths/Restapi/Account/Extension/AdministeredSites/index.js +16 -69
  238. package/lib/paths/Restapi/Account/Extension/AdministeredSites/index.js.map +1 -1
  239. package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.js +39 -123
  240. package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.js.map +1 -1
  241. package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.js +12 -56
  242. package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.js.map +1 -1
  243. package/lib/paths/Restapi/Account/Extension/AssignedRole/Default/index.js +12 -56
  244. package/lib/paths/Restapi/Account/Extension/AssignedRole/Default/index.js.map +1 -1
  245. package/lib/paths/Restapi/Account/Extension/AssignedRole/index.js +19 -72
  246. package/lib/paths/Restapi/Account/Extension/AssignedRole/index.js.map +1 -1
  247. package/lib/paths/Restapi/Account/Extension/AuthzProfile/Check/index.js +12 -56
  248. package/lib/paths/Restapi/Account/Extension/AuthzProfile/Check/index.js.map +1 -1
  249. package/lib/paths/Restapi/Account/Extension/AuthzProfile/index.js +15 -59
  250. package/lib/paths/Restapi/Account/Extension/AuthzProfile/index.js.map +1 -1
  251. package/lib/paths/Restapi/Account/Extension/BusinessHours/index.js +16 -69
  252. package/lib/paths/Restapi/Account/Extension/BusinessHours/index.js.map +1 -1
  253. package/lib/paths/Restapi/Account/Extension/CallLog/index.js +25 -89
  254. package/lib/paths/Restapi/Account/Extension/CallLog/index.js.map +1 -1
  255. package/lib/paths/Restapi/Account/Extension/CallLogSync/index.js +12 -56
  256. package/lib/paths/Restapi/Account/Extension/CallLogSync/index.js.map +1 -1
  257. package/lib/paths/Restapi/Account/Extension/CallQueuePresence/index.js +16 -69
  258. package/lib/paths/Restapi/Account/Extension/CallQueuePresence/index.js.map +1 -1
  259. package/lib/paths/Restapi/Account/Extension/CallQueues/index.js +12 -56
  260. package/lib/paths/Restapi/Account/Extension/CallQueues/index.js.map +1 -1
  261. package/lib/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js +39 -123
  262. package/lib/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js.map +1 -1
  263. package/lib/paths/Restapi/Account/Extension/CallerBlocking/index.js +19 -73
  264. package/lib/paths/Restapi/Account/Extension/CallerBlocking/index.js.map +1 -1
  265. package/lib/paths/Restapi/Account/Extension/CallerId/index.js +16 -69
  266. package/lib/paths/Restapi/Account/Extension/CallerId/index.js.map +1 -1
  267. package/lib/paths/Restapi/Account/Extension/CompanyPager/index.js +12 -56
  268. package/lib/paths/Restapi/Account/Extension/CompanyPager/index.js.map +1 -1
  269. package/lib/paths/Restapi/Account/Extension/Conferencing/index.js +16 -69
  270. package/lib/paths/Restapi/Account/Extension/Conferencing/index.js.map +1 -1
  271. package/lib/paths/Restapi/Account/Extension/Device/index.js +12 -56
  272. package/lib/paths/Restapi/Account/Extension/Device/index.js.map +1 -1
  273. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js +39 -123
  274. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js.map +1 -1
  275. package/lib/paths/Restapi/Account/Extension/Favorite/index.js +16 -69
  276. package/lib/paths/Restapi/Account/Extension/Favorite/index.js.map +1 -1
  277. package/lib/paths/Restapi/Account/Extension/Fax/index.js +14 -60
  278. package/lib/paths/Restapi/Account/Extension/Fax/index.js.map +1 -1
  279. package/lib/paths/Restapi/Account/Extension/Features/index.js +12 -56
  280. package/lib/paths/Restapi/Account/Extension/Features/index.js.map +1 -1
  281. package/lib/paths/Restapi/Account/Extension/ForwardingNumber/index.js +43 -136
  282. package/lib/paths/Restapi/Account/Extension/ForwardingNumber/index.js.map +1 -1
  283. package/lib/paths/Restapi/Account/Extension/Grant/index.js +12 -56
  284. package/lib/paths/Restapi/Account/Extension/Grant/index.js.map +1 -1
  285. package/lib/paths/Restapi/Account/Extension/Greeting/Content/index.js +14 -66
  286. package/lib/paths/Restapi/Account/Extension/Greeting/Content/index.js.map +1 -1
  287. package/lib/paths/Restapi/Account/Extension/Greeting/index.js +26 -83
  288. package/lib/paths/Restapi/Account/Extension/Greeting/index.js.map +1 -1
  289. package/lib/paths/Restapi/Account/Extension/MessageStore/Content/index.js +19 -73
  290. package/lib/paths/Restapi/Account/Extension/MessageStore/Content/index.js.map +1 -1
  291. package/lib/paths/Restapi/Account/Extension/MessageStore/index.js +49 -144
  292. package/lib/paths/Restapi/Account/Extension/MessageStore/index.js.map +1 -1
  293. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +39 -123
  294. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js.map +1 -1
  295. package/lib/paths/Restapi/Account/Extension/MessageSync/index.js +12 -56
  296. package/lib/paths/Restapi/Account/Extension/MessageSync/index.js.map +1 -1
  297. package/lib/paths/Restapi/Account/Extension/Mms/index.js +14 -60
  298. package/lib/paths/Restapi/Account/Extension/Mms/index.js.map +1 -1
  299. package/lib/paths/Restapi/Account/Extension/NotificationSettings/index.js +16 -69
  300. package/lib/paths/Restapi/Account/Extension/NotificationSettings/index.js.map +1 -1
  301. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js +16 -69
  302. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js.map +1 -1
  303. package/lib/paths/Restapi/Account/Extension/PhoneNumber/index.js +12 -56
  304. package/lib/paths/Restapi/Account/Extension/PhoneNumber/index.js.map +1 -1
  305. package/lib/paths/Restapi/Account/Extension/Presence/index.js +16 -69
  306. package/lib/paths/Restapi/Account/Extension/Presence/index.js.map +1 -1
  307. package/lib/paths/Restapi/Account/Extension/ProfileImage/index.js +40 -131
  308. package/lib/paths/Restapi/Account/Extension/ProfileImage/index.js.map +1 -1
  309. package/lib/paths/Restapi/Account/Extension/RingOut/index.js +28 -93
  310. package/lib/paths/Restapi/Account/Extension/RingOut/index.js.map +1 -1
  311. package/lib/paths/Restapi/Account/Extension/Sms/index.js +14 -60
  312. package/lib/paths/Restapi/Account/Extension/Sms/index.js.map +1 -1
  313. package/lib/paths/Restapi/Account/Extension/UnifiedPresence/index.js +16 -69
  314. package/lib/paths/Restapi/Account/Extension/UnifiedPresence/index.js.map +1 -1
  315. package/lib/paths/Restapi/Account/Extension/VideoConfiguration/index.js +12 -56
  316. package/lib/paths/Restapi/Account/Extension/VideoConfiguration/index.js.map +1 -1
  317. package/lib/paths/Restapi/Account/Extension/index.js +146 -229
  318. package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
  319. package/lib/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.js +17 -63
  320. package/lib/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.js.map +1 -1
  321. package/lib/paths/Restapi/Account/ExtensionBulkUpdate/index.js +15 -60
  322. package/lib/paths/Restapi/Account/ExtensionBulkUpdate/index.js.map +1 -1
  323. package/lib/paths/Restapi/Account/ForwardAllCalls/index.js +16 -69
  324. package/lib/paths/Restapi/Account/ForwardAllCalls/index.js.map +1 -1
  325. package/lib/paths/Restapi/Account/Greeting/Content/index.js +14 -66
  326. package/lib/paths/Restapi/Account/Greeting/Content/index.js.map +1 -1
  327. package/lib/paths/Restapi/Account/Greeting/index.js +17 -63
  328. package/lib/paths/Restapi/Account/Greeting/index.js.map +1 -1
  329. package/lib/paths/Restapi/Account/IvrMenus/index.js +32 -106
  330. package/lib/paths/Restapi/Account/IvrMenus/index.js.map +1 -1
  331. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js +14 -66
  332. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js.map +1 -1
  333. package/lib/paths/Restapi/Account/IvrPrompts/index.js +44 -130
  334. package/lib/paths/Restapi/Account/IvrPrompts/index.js.map +1 -1
  335. package/lib/paths/Restapi/Account/MessageStoreConfiguration/index.js +16 -69
  336. package/lib/paths/Restapi/Account/MessageStoreConfiguration/index.js.map +1 -1
  337. package/lib/paths/Restapi/Account/MessageStoreReport/Archive/index.js +12 -56
  338. package/lib/paths/Restapi/Account/MessageStoreReport/Archive/index.js.map +1 -1
  339. package/lib/paths/Restapi/Account/MessageStoreReport/index.js +24 -79
  340. package/lib/paths/Restapi/Account/MessageStoreReport/index.js.map +1 -1
  341. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js +39 -123
  342. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js.map +1 -1
  343. package/lib/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.js +12 -56
  344. package/lib/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.js.map +1 -1
  345. package/lib/paths/Restapi/Account/PagingOnlyGroups/Devices/index.js +12 -56
  346. package/lib/paths/Restapi/Account/PagingOnlyGroups/Devices/index.js.map +1 -1
  347. package/lib/paths/Restapi/Account/PagingOnlyGroups/Users/index.js +12 -56
  348. package/lib/paths/Restapi/Account/PagingOnlyGroups/Users/index.js.map +1 -1
  349. package/lib/paths/Restapi/Account/PagingOnlyGroups/index.js +19 -19
  350. package/lib/paths/Restapi/Account/PagingOnlyGroups/index.js.map +1 -1
  351. package/lib/paths/Restapi/Account/PhoneNumber/index.js +21 -76
  352. package/lib/paths/Restapi/Account/PhoneNumber/index.js.map +1 -1
  353. package/lib/paths/Restapi/Account/Presence/index.js +12 -56
  354. package/lib/paths/Restapi/Account/Presence/index.js.map +1 -1
  355. package/lib/paths/Restapi/Account/Recording/Content/index.js +14 -66
  356. package/lib/paths/Restapi/Account/Recording/Content/index.js.map +1 -1
  357. package/lib/paths/Restapi/Account/Recording/index.js +20 -66
  358. package/lib/paths/Restapi/Account/Recording/index.js.map +1 -1
  359. package/lib/paths/Restapi/Account/ServiceInfo/index.js +12 -56
  360. package/lib/paths/Restapi/Account/ServiceInfo/index.js.map +1 -1
  361. package/lib/paths/Restapi/Account/Sites/BulkAssign/index.js +12 -56
  362. package/lib/paths/Restapi/Account/Sites/BulkAssign/index.js.map +1 -1
  363. package/lib/paths/Restapi/Account/Sites/Ivr/index.js +16 -69
  364. package/lib/paths/Restapi/Account/Sites/Ivr/index.js.map +1 -1
  365. package/lib/paths/Restapi/Account/Sites/Members/index.js +12 -56
  366. package/lib/paths/Restapi/Account/Sites/Members/index.js.map +1 -1
  367. package/lib/paths/Restapi/Account/Sites/index.js +48 -132
  368. package/lib/paths/Restapi/Account/Sites/index.js.map +1 -1
  369. package/lib/paths/Restapi/Account/Telephony/CallOut/index.js +12 -56
  370. package/lib/paths/Restapi/Account/Telephony/CallOut/index.js.map +1 -1
  371. package/lib/paths/Restapi/Account/Telephony/Conference/index.js +12 -56
  372. package/lib/paths/Restapi/Account/Telephony/Conference/index.js.map +1 -1
  373. package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js +12 -56
  374. package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js.map +1 -1
  375. package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js +13 -13
  376. package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js.map +1 -1
  377. package/lib/paths/Restapi/Account/Telephony/Metadata/index.js +11 -11
  378. package/lib/paths/Restapi/Account/Telephony/Metadata/index.js.map +1 -1
  379. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.js +12 -56
  380. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.js.map +1 -1
  381. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js +12 -56
  382. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js.map +1 -1
  383. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js +12 -56
  384. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js.map +1 -1
  385. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.js +12 -56
  386. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.js.map +1 -1
  387. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.js +12 -56
  388. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.js.map +1 -1
  389. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js +12 -56
  390. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js.map +1 -1
  391. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.js +12 -56
  392. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.js.map +1 -1
  393. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js +12 -56
  394. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js.map +1 -1
  395. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.js +12 -56
  396. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.js.map +1 -1
  397. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js +21 -76
  398. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js.map +1 -1
  399. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.js +12 -56
  400. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.js.map +1 -1
  401. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.js +12 -56
  402. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.js.map +1 -1
  403. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js +12 -56
  404. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js.map +1 -1
  405. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.js +12 -56
  406. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.js.map +1 -1
  407. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js +12 -56
  408. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js.map +1 -1
  409. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/index.js +76 -143
  410. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/index.js.map +1 -1
  411. package/lib/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js +12 -56
  412. package/lib/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js.map +1 -1
  413. package/lib/paths/Restapi/Account/Telephony/Sessions/index.js +30 -87
  414. package/lib/paths/Restapi/Account/Telephony/Sessions/index.js.map +1 -1
  415. package/lib/paths/Restapi/Account/Telephony/index.js +20 -20
  416. package/lib/paths/Restapi/Account/Telephony/index.js.map +1 -1
  417. package/lib/paths/Restapi/Account/Templates/index.js +21 -76
  418. package/lib/paths/Restapi/Account/Templates/index.js.map +1 -1
  419. package/lib/paths/Restapi/Account/UserRole/BulkAssign/index.js +12 -56
  420. package/lib/paths/Restapi/Account/UserRole/BulkAssign/index.js.map +1 -1
  421. package/lib/paths/Restapi/Account/UserRole/Default/index.js +16 -69
  422. package/lib/paths/Restapi/Account/UserRole/Default/index.js.map +1 -1
  423. package/lib/paths/Restapi/Account/UserRole/index.js +45 -129
  424. package/lib/paths/Restapi/Account/UserRole/index.js.map +1 -1
  425. package/lib/paths/Restapi/Account/index.js +128 -192
  426. package/lib/paths/Restapi/Account/index.js.map +1 -1
  427. package/lib/paths/Restapi/ClientInfo/SipProvision/index.js +12 -56
  428. package/lib/paths/Restapi/ClientInfo/SipProvision/index.js.map +1 -1
  429. package/lib/paths/Restapi/ClientInfo/index.js +11 -10
  430. package/lib/paths/Restapi/ClientInfo/index.js.map +1 -1
  431. package/lib/paths/Restapi/Dictionary/Brand/ContractedCountry/index.js +21 -76
  432. package/lib/paths/Restapi/Dictionary/Brand/ContractedCountry/index.js.map +1 -1
  433. package/lib/paths/Restapi/Dictionary/Brand/index.js +13 -14
  434. package/lib/paths/Restapi/Dictionary/Brand/index.js.map +1 -1
  435. package/lib/paths/Restapi/Dictionary/Country/index.js +21 -76
  436. package/lib/paths/Restapi/Dictionary/Country/index.js.map +1 -1
  437. package/lib/paths/Restapi/Dictionary/FaxCoverPage/index.js +12 -56
  438. package/lib/paths/Restapi/Dictionary/FaxCoverPage/index.js.map +1 -1
  439. package/lib/paths/Restapi/Dictionary/Greeting/index.js +21 -76
  440. package/lib/paths/Restapi/Dictionary/Greeting/index.js.map +1 -1
  441. package/lib/paths/Restapi/Dictionary/Language/index.js +21 -76
  442. package/lib/paths/Restapi/Dictionary/Language/index.js.map +1 -1
  443. package/lib/paths/Restapi/Dictionary/Location/index.js +12 -56
  444. package/lib/paths/Restapi/Dictionary/Location/index.js.map +1 -1
  445. package/lib/paths/Restapi/Dictionary/Permission/index.js +21 -76
  446. package/lib/paths/Restapi/Dictionary/Permission/index.js.map +1 -1
  447. package/lib/paths/Restapi/Dictionary/PermissionCategory/index.js +21 -76
  448. package/lib/paths/Restapi/Dictionary/PermissionCategory/index.js.map +1 -1
  449. package/lib/paths/Restapi/Dictionary/State/index.js +21 -76
  450. package/lib/paths/Restapi/Dictionary/State/index.js.map +1 -1
  451. package/lib/paths/Restapi/Dictionary/Timezone/index.js +21 -76
  452. package/lib/paths/Restapi/Dictionary/Timezone/index.js.map +1 -1
  453. package/lib/paths/Restapi/Dictionary/UserRole/index.js +21 -76
  454. package/lib/paths/Restapi/Dictionary/UserRole/index.js.map +1 -1
  455. package/lib/paths/Restapi/Dictionary/index.js +41 -49
  456. package/lib/paths/Restapi/Dictionary/index.js.map +1 -1
  457. package/lib/paths/Restapi/NumberParser/Parse/index.js +12 -56
  458. package/lib/paths/Restapi/NumberParser/Parse/index.js.map +1 -1
  459. package/lib/paths/Restapi/NumberParser/index.js +11 -10
  460. package/lib/paths/Restapi/NumberParser/index.js.map +1 -1
  461. package/lib/paths/Restapi/Oauth/Authorize/index.js +16 -69
  462. package/lib/paths/Restapi/Oauth/Authorize/index.js.map +1 -1
  463. package/lib/paths/Restapi/Oauth/Revoke/index.js +12 -56
  464. package/lib/paths/Restapi/Oauth/Revoke/index.js.map +1 -1
  465. package/lib/paths/Restapi/Oauth/Token/index.js +12 -56
  466. package/lib/paths/Restapi/Oauth/Token/index.js.map +1 -1
  467. package/lib/paths/Restapi/Oauth/index.js +17 -16
  468. package/lib/paths/Restapi/Oauth/index.js.map +1 -1
  469. package/lib/paths/Restapi/Subscription/Renew/index.js +12 -56
  470. package/lib/paths/Restapi/Subscription/Renew/index.js.map +1 -1
  471. package/lib/paths/Restapi/Subscription/index.js +42 -126
  472. package/lib/paths/Restapi/Subscription/index.js.map +1 -1
  473. package/lib/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.js +12 -56
  474. package/lib/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.js.map +1 -1
  475. package/lib/paths/Restapi/V2/Accounts/BatchProvisioning/index.js +11 -10
  476. package/lib/paths/Restapi/V2/Accounts/BatchProvisioning/index.js.map +1 -1
  477. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.js +12 -56
  478. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.js.map +1 -1
  479. package/lib/paths/Restapi/V2/Accounts/DeviceInventory/index.js +16 -69
  480. package/lib/paths/Restapi/V2/Accounts/DeviceInventory/index.js.map +1 -1
  481. package/lib/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.js +12 -56
  482. package/lib/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.js.map +1 -1
  483. package/lib/paths/Restapi/V2/Accounts/Devices/index.js +20 -66
  484. package/lib/paths/Restapi/V2/Accounts/Devices/index.js.map +1 -1
  485. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +16 -69
  486. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js.map +1 -1
  487. package/lib/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.js +12 -56
  488. package/lib/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.js.map +1 -1
  489. package/lib/paths/Restapi/V2/Accounts/Extensions/Devices/index.js +13 -13
  490. package/lib/paths/Restapi/V2/Accounts/Extensions/Devices/index.js.map +1 -1
  491. package/lib/paths/Restapi/V2/Accounts/Extensions/index.js +18 -63
  492. package/lib/paths/Restapi/V2/Accounts/Extensions/index.js.map +1 -1
  493. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +21 -76
  494. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js.map +1 -1
  495. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +12 -56
  496. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js.map +1 -1
  497. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +31 -96
  498. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.js.map +1 -1
  499. package/lib/paths/Restapi/V2/Accounts/SendActivationEmail/index.js +12 -56
  500. package/lib/paths/Restapi/V2/Accounts/SendActivationEmail/index.js.map +1 -1
  501. package/lib/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.js +12 -56
  502. package/lib/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.js.map +1 -1
  503. package/lib/paths/Restapi/V2/Accounts/index.js +41 -89
  504. package/lib/paths/Restapi/V2/Accounts/index.js.map +1 -1
  505. package/lib/paths/Restapi/V2/index.js +11 -11
  506. package/lib/paths/Restapi/V2/index.js.map +1 -1
  507. package/lib/paths/Restapi/index.js +40 -98
  508. package/lib/paths/Restapi/index.js.map +1 -1
  509. package/lib/paths/Scim/ResourceTypes/index.js +21 -76
  510. package/lib/paths/Scim/ResourceTypes/index.js.map +1 -1
  511. package/lib/paths/Scim/Schemas/index.js +21 -76
  512. package/lib/paths/Scim/Schemas/index.js.map +1 -1
  513. package/lib/paths/Scim/ServiceProviderConfig/index.js +12 -56
  514. package/lib/paths/Scim/ServiceProviderConfig/index.js.map +1 -1
  515. package/lib/paths/Scim/Users/DotSearch/index.js +12 -56
  516. package/lib/paths/Scim/Users/DotSearch/index.js.map +1 -1
  517. package/lib/paths/Scim/Users/index.js +49 -143
  518. package/lib/paths/Scim/Users/index.js.map +1 -1
  519. package/lib/paths/Scim/index.js +20 -24
  520. package/lib/paths/Scim/index.js.map +1 -1
  521. package/lib/paths/TeamMessaging/V1/AdaptiveCards/index.js +31 -97
  522. package/lib/paths/TeamMessaging/V1/AdaptiveCards/index.js.map +1 -1
  523. package/lib/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.js +12 -56
  524. package/lib/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.js.map +1 -1
  525. package/lib/paths/TeamMessaging/V1/Chats/Favorite/index.js +12 -56
  526. package/lib/paths/TeamMessaging/V1/Chats/Favorite/index.js.map +1 -1
  527. package/lib/paths/TeamMessaging/V1/Chats/Notes/index.js +16 -69
  528. package/lib/paths/TeamMessaging/V1/Chats/Notes/index.js.map +1 -1
  529. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js +39 -123
  530. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js.map +1 -1
  531. package/lib/paths/TeamMessaging/V1/Chats/Tasks/index.js +16 -69
  532. package/lib/paths/TeamMessaging/V1/Chats/Tasks/index.js.map +1 -1
  533. package/lib/paths/TeamMessaging/V1/Chats/Unfavorite/index.js +12 -56
  534. package/lib/paths/TeamMessaging/V1/Chats/Unfavorite/index.js.map +1 -1
  535. package/lib/paths/TeamMessaging/V1/Chats/index.js +39 -95
  536. package/lib/paths/TeamMessaging/V1/Chats/index.js.map +1 -1
  537. package/lib/paths/TeamMessaging/V1/Companies/index.js +17 -63
  538. package/lib/paths/TeamMessaging/V1/Companies/index.js.map +1 -1
  539. package/lib/paths/TeamMessaging/V1/Conversations/index.js +25 -89
  540. package/lib/paths/TeamMessaging/V1/Conversations/index.js.map +1 -1
  541. package/lib/paths/TeamMessaging/V1/DataExport/index.js +25 -89
  542. package/lib/paths/TeamMessaging/V1/DataExport/index.js.map +1 -1
  543. package/lib/paths/TeamMessaging/V1/Events/index.js +39 -123
  544. package/lib/paths/TeamMessaging/V1/Events/index.js.map +1 -1
  545. package/lib/paths/TeamMessaging/V1/Everyone/index.js +16 -69
  546. package/lib/paths/TeamMessaging/V1/Everyone/index.js.map +1 -1
  547. package/lib/paths/TeamMessaging/V1/Favorites/index.js +12 -56
  548. package/lib/paths/TeamMessaging/V1/Favorites/index.js.map +1 -1
  549. package/lib/paths/TeamMessaging/V1/Files/index.js +14 -60
  550. package/lib/paths/TeamMessaging/V1/Files/index.js.map +1 -1
  551. package/lib/paths/TeamMessaging/V1/Groups/Events/index.js +16 -69
  552. package/lib/paths/TeamMessaging/V1/Groups/Events/index.js.map +1 -1
  553. package/lib/paths/TeamMessaging/V1/Groups/Webhooks/index.js +16 -69
  554. package/lib/paths/TeamMessaging/V1/Groups/Webhooks/index.js.map +1 -1
  555. package/lib/paths/TeamMessaging/V1/Groups/index.js +16 -16
  556. package/lib/paths/TeamMessaging/V1/Groups/index.js.map +1 -1
  557. package/lib/paths/TeamMessaging/V1/Notes/Lock/index.js +12 -56
  558. package/lib/paths/TeamMessaging/V1/Notes/Lock/index.js.map +1 -1
  559. package/lib/paths/TeamMessaging/V1/Notes/Publish/index.js +12 -56
  560. package/lib/paths/TeamMessaging/V1/Notes/Publish/index.js.map +1 -1
  561. package/lib/paths/TeamMessaging/V1/Notes/Unlock/index.js +12 -56
  562. package/lib/paths/TeamMessaging/V1/Notes/Unlock/index.js.map +1 -1
  563. package/lib/paths/TeamMessaging/V1/Notes/index.js +40 -106
  564. package/lib/paths/TeamMessaging/V1/Notes/index.js.map +1 -1
  565. package/lib/paths/TeamMessaging/V1/Persons/index.js +17 -63
  566. package/lib/paths/TeamMessaging/V1/Persons/index.js.map +1 -1
  567. package/lib/paths/TeamMessaging/V1/Recent/Chats/index.js +12 -56
  568. package/lib/paths/TeamMessaging/V1/Recent/Chats/index.js.map +1 -1
  569. package/lib/paths/TeamMessaging/V1/Recent/index.js +11 -10
  570. package/lib/paths/TeamMessaging/V1/Recent/index.js.map +1 -1
  571. package/lib/paths/TeamMessaging/V1/Tasks/Complete/index.js +12 -56
  572. package/lib/paths/TeamMessaging/V1/Tasks/Complete/index.js.map +1 -1
  573. package/lib/paths/TeamMessaging/V1/Tasks/index.js +34 -100
  574. package/lib/paths/TeamMessaging/V1/Tasks/index.js.map +1 -1
  575. package/lib/paths/TeamMessaging/V1/Teams/Add/index.js +12 -56
  576. package/lib/paths/TeamMessaging/V1/Teams/Add/index.js.map +1 -1
  577. package/lib/paths/TeamMessaging/V1/Teams/Archive/index.js +12 -56
  578. package/lib/paths/TeamMessaging/V1/Teams/Archive/index.js.map +1 -1
  579. package/lib/paths/TeamMessaging/V1/Teams/Join/index.js +12 -56
  580. package/lib/paths/TeamMessaging/V1/Teams/Join/index.js.map +1 -1
  581. package/lib/paths/TeamMessaging/V1/Teams/Leave/index.js +12 -56
  582. package/lib/paths/TeamMessaging/V1/Teams/Leave/index.js.map +1 -1
  583. package/lib/paths/TeamMessaging/V1/Teams/Remove/index.js +12 -56
  584. package/lib/paths/TeamMessaging/V1/Teams/Remove/index.js.map +1 -1
  585. package/lib/paths/TeamMessaging/V1/Teams/Unarchive/index.js +12 -56
  586. package/lib/paths/TeamMessaging/V1/Teams/Unarchive/index.js.map +1 -1
  587. package/lib/paths/TeamMessaging/V1/Teams/index.js +57 -141
  588. package/lib/paths/TeamMessaging/V1/Teams/index.js.map +1 -1
  589. package/lib/paths/TeamMessaging/V1/Webhooks/Activate/index.js +12 -56
  590. package/lib/paths/TeamMessaging/V1/Webhooks/Activate/index.js.map +1 -1
  591. package/lib/paths/TeamMessaging/V1/Webhooks/Suspend/index.js +12 -56
  592. package/lib/paths/TeamMessaging/V1/Webhooks/Suspend/index.js.map +1 -1
  593. package/lib/paths/TeamMessaging/V1/Webhooks/index.js +34 -99
  594. package/lib/paths/TeamMessaging/V1/Webhooks/index.js.map +1 -1
  595. package/lib/paths/TeamMessaging/V1/index.js +56 -67
  596. package/lib/paths/TeamMessaging/V1/index.js.map +1 -1
  597. package/lib/paths/TeamMessaging/index.js +9 -9
  598. package/lib/paths/TeamMessaging/index.js.map +1 -1
  599. package/lib/paths/Webinar/Configuration/V1/Company/Sessions/index.js +12 -56
  600. package/lib/paths/Webinar/Configuration/V1/Company/Sessions/index.js.map +1 -1
  601. package/lib/paths/Webinar/Configuration/V1/Company/index.js +11 -10
  602. package/lib/paths/Webinar/Configuration/V1/Company/index.js.map +1 -1
  603. package/lib/paths/Webinar/Configuration/V1/Sessions/index.js +12 -56
  604. package/lib/paths/Webinar/Configuration/V1/Sessions/index.js.map +1 -1
  605. package/lib/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.js +39 -123
  606. package/lib/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.js.map +1 -1
  607. package/lib/paths/Webinar/Configuration/V1/Webinars/Sessions/index.js +38 -114
  608. package/lib/paths/Webinar/Configuration/V1/Webinars/Sessions/index.js.map +1 -1
  609. package/lib/paths/Webinar/Configuration/V1/Webinars/index.js +42 -127
  610. package/lib/paths/Webinar/Configuration/V1/Webinars/index.js.map +1 -1
  611. package/lib/paths/Webinar/Configuration/V1/index.js +17 -17
  612. package/lib/paths/Webinar/Configuration/V1/index.js.map +1 -1
  613. package/lib/paths/Webinar/Configuration/index.js +11 -10
  614. package/lib/paths/Webinar/Configuration/index.js.map +1 -1
  615. package/lib/paths/Webinar/History/V1/Company/Recordings/index.js +21 -76
  616. package/lib/paths/Webinar/History/V1/Company/Recordings/index.js.map +1 -1
  617. package/lib/paths/Webinar/History/V1/Company/Sessions/index.js +12 -56
  618. package/lib/paths/Webinar/History/V1/Company/Sessions/index.js.map +1 -1
  619. package/lib/paths/Webinar/History/V1/Company/index.js +14 -14
  620. package/lib/paths/Webinar/History/V1/Company/index.js.map +1 -1
  621. package/lib/paths/Webinar/History/V1/Recordings/Download/index.js +12 -56
  622. package/lib/paths/Webinar/History/V1/Recordings/Download/index.js.map +1 -1
  623. package/lib/paths/Webinar/History/V1/Recordings/index.js +24 -79
  624. package/lib/paths/Webinar/History/V1/Recordings/index.js.map +1 -1
  625. package/lib/paths/Webinar/History/V1/Sessions/index.js +12 -56
  626. package/lib/paths/Webinar/History/V1/Sessions/index.js.map +1 -1
  627. package/lib/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.js +21 -76
  628. package/lib/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.js.map +1 -1
  629. package/lib/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.js +12 -56
  630. package/lib/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.js.map +1 -1
  631. package/lib/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.js +15 -59
  632. package/lib/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.js.map +1 -1
  633. package/lib/paths/Webinar/History/V1/Webinars/Sessions/index.js +23 -70
  634. package/lib/paths/Webinar/History/V1/Webinars/Sessions/index.js.map +1 -1
  635. package/lib/paths/Webinar/History/V1/Webinars/index.js +20 -67
  636. package/lib/paths/Webinar/History/V1/Webinars/index.js.map +1 -1
  637. package/lib/paths/Webinar/History/V1/index.js +20 -21
  638. package/lib/paths/Webinar/History/V1/index.js.map +1 -1
  639. package/lib/paths/Webinar/History/index.js +11 -10
  640. package/lib/paths/Webinar/History/index.js.map +1 -1
  641. package/lib/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.js +12 -56
  642. package/lib/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.js.map +1 -1
  643. package/lib/paths/Webinar/Notifications/V1/Subscriptions/index.js +42 -126
  644. package/lib/paths/Webinar/Notifications/V1/Subscriptions/index.js.map +1 -1
  645. package/lib/paths/Webinar/Notifications/V1/index.js +11 -11
  646. package/lib/paths/Webinar/Notifications/V1/index.js.map +1 -1
  647. package/lib/paths/Webinar/Notifications/index.js +11 -10
  648. package/lib/paths/Webinar/Notifications/index.js.map +1 -1
  649. package/lib/paths/Webinar/Registration/V1/Sessions/Registrants/index.js +32 -106
  650. package/lib/paths/Webinar/Registration/V1/Sessions/Registrants/index.js.map +1 -1
  651. package/lib/paths/Webinar/Registration/V1/Sessions/index.js +27 -84
  652. package/lib/paths/Webinar/Registration/V1/Sessions/index.js.map +1 -1
  653. package/lib/paths/Webinar/Registration/V1/index.js +11 -11
  654. package/lib/paths/Webinar/Registration/V1/index.js.map +1 -1
  655. package/lib/paths/Webinar/Registration/index.js +11 -10
  656. package/lib/paths/Webinar/Registration/index.js.map +1 -1
  657. package/lib/paths/Webinar/index.js +18 -18
  658. package/lib/paths/Webinar/index.js.map +1 -1
  659. package/package.json +2 -2
  660. package/tsconfig.json +5 -1
package/lib/index.js CHANGED
@@ -1,197 +1,108 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
39
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
4
  };
41
5
  Object.defineProperty(exports, "__esModule", { value: true });
42
- var Rest_js_1 = __importDefault(require("./Rest.js"));
43
- var index_js_1 = __importDefault(require("./paths/Restapi/index.js"));
44
- var index_js_2 = __importDefault(require("./paths/Scim/index.js"));
45
- var index_js_3 = __importDefault(require("./paths/Analytics/index.js"));
46
- var index_js_4 = __importDefault(require("./paths/Ai/index.js"));
47
- var index_js_5 = __importDefault(require("./paths/Rcvideo/index.js"));
48
- var index_js_6 = __importDefault(require("./paths/Webinar/index.js"));
49
- var index_js_7 = __importDefault(require("./paths/TeamMessaging/index.js"));
50
- var RingCentral = /** @class */ (function () {
51
- function RingCentral(restOptions) {
52
- this.sdkExtensions = [];
53
- this.rest = new Rest_js_1.default(restOptions !== null && restOptions !== void 0 ? restOptions : {});
54
- }
55
- RingCentral.prototype.installExtension = function (sdkExtension) {
56
- return __awaiter(this, void 0, void 0, function () {
57
- return __generator(this, function (_a) {
58
- switch (_a.label) {
59
- case 0: return [4 /*yield*/, sdkExtension.install(this)];
60
- case 1:
61
- _a.sent();
62
- this.sdkExtensions.push(sdkExtension);
63
- return [2 /*return*/];
64
- }
65
- });
66
- });
67
- };
68
- Object.defineProperty(RingCentral.prototype, "token", {
69
- get: function () {
70
- return this.rest.token;
71
- },
72
- set: function (token) {
73
- this.rest.token = token;
6
+ const Rest_js_1 = __importDefault(require("./Rest.js"));
7
+ const index_js_1 = __importDefault(require("./paths/Restapi/index.js"));
8
+ const index_js_2 = __importDefault(require("./paths/Scim/index.js"));
9
+ const index_js_3 = __importDefault(require("./paths/Analytics/index.js"));
10
+ const index_js_4 = __importDefault(require("./paths/Ai/index.js"));
11
+ const index_js_5 = __importDefault(require("./paths/Rcvideo/index.js"));
12
+ const index_js_6 = __importDefault(require("./paths/Webinar/index.js"));
13
+ const index_js_7 = __importDefault(require("./paths/TeamMessaging/index.js"));
14
+ class RingCentral {
15
+ static config = {
16
+ logger: {
17
+ debug: () => { },
18
+ log: () => { },
19
+ info: () => { },
20
+ warn: () => { },
21
+ error: () => { },
74
22
  },
75
- enumerable: false,
76
- configurable: true
77
- });
78
- RingCentral.prototype.request = function (method, endpoint, content, queryParams, config) {
79
- return __awaiter(this, void 0, void 0, function () {
80
- var r, e_1, re, r;
81
- return __generator(this, function (_a) {
82
- switch (_a.label) {
83
- case 0:
84
- _a.trys.push([0, 2, , 3]);
85
- return [4 /*yield*/, this.rest.request(method, endpoint, content, queryParams, config)];
86
- case 1:
87
- r = _a.sent();
88
- RingCentral.config.logger.info("[".concat(new Date().toLocaleString(), " HTTP ").concat(method, " ").concat(r.status, " ").concat(r.statusText, "] ").concat(this.rest.server, " ").concat(endpoint));
89
- return [2 /*return*/, r];
90
- case 2:
91
- e_1 = _a.sent();
92
- re = e_1;
93
- if (re.response) {
94
- r = re.response;
95
- RingCentral.config.logger.info("[".concat(new Date().toLocaleString(), " HTTP ").concat(method, " ").concat(r.status, " ").concat(r.statusText, "] ").concat(this.rest.server, " ").concat(endpoint));
96
- }
97
- throw e_1;
98
- case 3: return [2 /*return*/];
99
- }
100
- });
101
- });
102
- };
103
- RingCentral.prototype.get = function (endpoint, queryParams, config) {
104
- return __awaiter(this, void 0, void 0, function () {
105
- return __generator(this, function (_a) {
106
- return [2 /*return*/, this.request("GET", endpoint, undefined, queryParams, config)];
107
- });
108
- });
109
- };
110
- RingCentral.prototype.delete = function (endpoint, content, queryParams, config) {
111
- return __awaiter(this, void 0, void 0, function () {
112
- return __generator(this, function (_a) {
113
- return [2 /*return*/, this.request("DELETE", endpoint, content, queryParams, config)];
114
- });
115
- });
116
- };
117
- RingCentral.prototype.post = function (endpoint, content, queryParams, config) {
118
- return __awaiter(this, void 0, void 0, function () {
119
- return __generator(this, function (_a) {
120
- return [2 /*return*/, this.request("POST", endpoint, content, queryParams, config)];
121
- });
122
- });
123
- };
124
- RingCentral.prototype.put = function (endpoint, content, queryParams, config) {
125
- return __awaiter(this, void 0, void 0, function () {
126
- return __generator(this, function (_a) {
127
- return [2 /*return*/, this.request("PUT", endpoint, content, queryParams, config)];
128
- });
129
- });
130
- };
131
- RingCentral.prototype.patch = function (endpoint, content, queryParams, config) {
132
- return __awaiter(this, void 0, void 0, function () {
133
- return __generator(this, function (_a) {
134
- return [2 /*return*/, this.request("PATCH", endpoint, content, queryParams, config)];
135
- });
136
- });
137
- };
138
- RingCentral.prototype.getToken = function (getTokenRequest) {
139
- return __awaiter(this, void 0, void 0, function () {
140
- var _a;
141
- return __generator(this, function (_b) {
142
- switch (_b.label) {
143
- case 0:
144
- getTokenRequest.client_id = this.rest.clientId;
145
- _a = this;
146
- return [4 /*yield*/, this.restapi(null).oauth().token().post(getTokenRequest)];
147
- case 1:
148
- _a.token = _b.sent();
149
- return [2 /*return*/, this.token];
150
- }
151
- });
152
- });
153
- };
154
- RingCentral.prototype.authorize = function (options) {
155
- return __awaiter(this, void 0, void 0, function () {
156
- var getTokenRequest;
157
- return __generator(this, function (_a) {
158
- getTokenRequest = {};
159
- if ("username" in options) {
160
- console.warn("Username/password authentication is deprecated. Please migrate to the JWT grant type.");
161
- getTokenRequest.grant_type = "password";
162
- getTokenRequest.username = options.username;
163
- getTokenRequest.extension = options.extension;
164
- getTokenRequest.password = options.password;
165
- }
166
- else if ("code" in options) {
167
- getTokenRequest.grant_type = "authorization_code";
168
- getTokenRequest.code = options.code;
169
- getTokenRequest.redirect_uri = options.redirect_uri;
170
- // PKCE: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0
171
- getTokenRequest.code_verifier = options.code_verifier;
172
- }
173
- else if ("jwt" in options) {
174
- getTokenRequest.grant_type =
175
- "urn:ietf:params:oauth:grant-type:jwt-bearer";
176
- getTokenRequest.assertion = options.jwt;
177
- }
178
- else {
179
- throw new Error("Unsupported authorization flow");
180
- }
181
- return [2 /*return*/, this.getToken(getTokenRequest)];
182
- });
183
- });
184
23
  };
24
+ sdkExtensions = [];
25
+ rest;
26
+ constructor(restOptions) {
27
+ this.rest = new Rest_js_1.default(restOptions ?? {});
28
+ }
29
+ async installExtension(sdkExtension) {
30
+ await sdkExtension.install(this);
31
+ this.sdkExtensions.push(sdkExtension);
32
+ }
33
+ get token() {
34
+ return this.rest.token;
35
+ }
36
+ set token(token) {
37
+ this.rest.token = token;
38
+ }
39
+ async request(method, endpoint, content, queryParams, config) {
40
+ try {
41
+ const r = await this.rest.request(method, endpoint, content, queryParams, config);
42
+ RingCentral.config.logger.info(`[${new Date().toLocaleString()} HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`);
43
+ return r;
44
+ }
45
+ catch (e) {
46
+ const re = e;
47
+ if (re.response) {
48
+ const r = re.response;
49
+ RingCentral.config.logger.info(`[${new Date().toLocaleString()} HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`);
50
+ }
51
+ throw e;
52
+ }
53
+ }
54
+ async get(endpoint, queryParams, config) {
55
+ return this.request("GET", endpoint, undefined, queryParams, config);
56
+ }
57
+ async delete(endpoint, content, queryParams, config) {
58
+ return this.request("DELETE", endpoint, content, queryParams, config);
59
+ }
60
+ async post(endpoint, content, queryParams, config) {
61
+ return this.request("POST", endpoint, content, queryParams, config);
62
+ }
63
+ async put(endpoint, content, queryParams, config) {
64
+ return this.request("PUT", endpoint, content, queryParams, config);
65
+ }
66
+ async patch(endpoint, content, queryParams, config) {
67
+ return this.request("PATCH", endpoint, content, queryParams, config);
68
+ }
69
+ async getToken(getTokenRequest) {
70
+ getTokenRequest.client_id = this.rest.clientId;
71
+ this.token = await this.restapi(null).oauth().token().post(getTokenRequest);
72
+ return this.token;
73
+ }
74
+ async authorize(options) {
75
+ const getTokenRequest = {};
76
+ if ("username" in options) {
77
+ console.warn("Username/password authentication is deprecated. Please migrate to the JWT grant type.");
78
+ getTokenRequest.grant_type = "password";
79
+ getTokenRequest.username = options.username;
80
+ getTokenRequest.extension = options.extension;
81
+ getTokenRequest.password = options.password;
82
+ }
83
+ else if ("code" in options) {
84
+ getTokenRequest.grant_type = "authorization_code";
85
+ getTokenRequest.code = options.code;
86
+ getTokenRequest.redirect_uri = options.redirect_uri;
87
+ // PKCE: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0
88
+ getTokenRequest.code_verifier = options.code_verifier;
89
+ }
90
+ else if ("jwt" in options) {
91
+ getTokenRequest.grant_type =
92
+ "urn:ietf:params:oauth:grant-type:jwt-bearer";
93
+ getTokenRequest.assertion = options.jwt;
94
+ }
95
+ else {
96
+ throw new Error("Unsupported authorization flow");
97
+ }
98
+ return this.getToken(getTokenRequest);
99
+ }
185
100
  /**
186
101
  * Just a synonym of authorize
187
102
  */
188
- RingCentral.prototype.login = function (options) {
189
- return __awaiter(this, void 0, void 0, function () {
190
- return __generator(this, function (_a) {
191
- return [2 /*return*/, this.authorize(options)];
192
- });
193
- });
194
- };
103
+ async login(options) {
104
+ return this.authorize(options);
105
+ }
195
106
  /**
196
107
  * Each time you call token endpoint using this flow, you continue current client session, and receive a new token pair: access token and refresh token in response to this request.
197
108
  * The old token pair immediately becomes inactive.
@@ -200,22 +111,16 @@ var RingCentral = /** @class */ (function () {
200
111
  *
201
112
  * @param refreshToken Refresh Token
202
113
  */
203
- RingCentral.prototype.refresh = function (refreshToken) {
204
- return __awaiter(this, void 0, void 0, function () {
205
- var tokenToRefresh, getTokenRequest;
206
- var _a;
207
- return __generator(this, function (_b) {
208
- tokenToRefresh = refreshToken !== null && refreshToken !== void 0 ? refreshToken : (_a = this.token) === null || _a === void 0 ? void 0 : _a.refresh_token;
209
- if (!tokenToRefresh) {
210
- throw new Error("tokenToRefresh must be specified.");
211
- }
212
- getTokenRequest = {};
213
- getTokenRequest.grant_type = "refresh_token";
214
- getTokenRequest.refresh_token = tokenToRefresh;
215
- return [2 /*return*/, this.getToken(getTokenRequest)];
216
- });
217
- });
218
- };
114
+ async refresh(refreshToken) {
115
+ const tokenToRefresh = refreshToken ?? this.token?.refresh_token;
116
+ if (!tokenToRefresh) {
117
+ throw new Error("tokenToRefresh must be specified.");
118
+ }
119
+ const getTokenRequest = {};
120
+ getTokenRequest.grant_type = "refresh_token";
121
+ getTokenRequest.refresh_token = tokenToRefresh;
122
+ return this.getToken(getTokenRequest);
123
+ }
219
124
  /**
220
125
  * Each time you call token endpoint using this flow, you continue current client session, and receive a new token pair: access token and refresh token in response to this request.
221
126
  * The old token pair immediately becomes inactive.
@@ -224,81 +129,48 @@ var RingCentral = /** @class */ (function () {
224
129
  *
225
130
  * @param tokenToRevoke AccessToken
226
131
  */
227
- RingCentral.prototype.revoke = function (tokenToRevoke) {
228
- return __awaiter(this, void 0, void 0, function () {
229
- var _i, _a, sdkExtension, temp;
230
- var _b, _c, _d;
231
- return __generator(this, function (_e) {
232
- switch (_e.label) {
233
- case 0:
234
- _i = 0, _a = this.sdkExtensions;
235
- _e.label = 1;
236
- case 1:
237
- if (!(_i < _a.length)) return [3 /*break*/, 4];
238
- sdkExtension = _a[_i];
239
- return [4 /*yield*/, sdkExtension.revoke()];
240
- case 2:
241
- _e.sent();
242
- _e.label = 3;
243
- case 3:
244
- _i++;
245
- return [3 /*break*/, 1];
246
- case 4:
247
- if (!tokenToRevoke && !this.token) {
248
- // nothing to revoke
249
- return [2 /*return*/];
250
- }
251
- if (!this.rest.clientId) {
252
- // if no clientId, the token is from external source, cannot revoke
253
- // no clientSecret is fine, since PKCE doesn't have clientSecret
254
- return [2 /*return*/];
255
- }
256
- temp = (_c = tokenToRevoke !== null && tokenToRevoke !== void 0 ? tokenToRevoke : (_b = this.token) === null || _b === void 0 ? void 0 : _b.access_token) !== null && _c !== void 0 ? _c : (_d = this.token) === null || _d === void 0 ? void 0 : _d.refresh_token;
257
- return [4 /*yield*/, this.restapi(null)
258
- .oauth()
259
- .revoke()
260
- .post({ token: temp, client_id: this.rest.clientId })];
261
- case 5:
262
- _e.sent(); // todo: spec doesn't allow client_id
263
- this.token = undefined;
264
- return [2 /*return*/];
265
- }
266
- });
267
- });
268
- };
269
- RingCentral.prototype.restapi = function (apiVersion) {
270
- if (apiVersion === void 0) { apiVersion = "v1.0"; }
132
+ async revoke(tokenToRevoke) {
133
+ for (const sdkExtension of this.sdkExtensions) {
134
+ await sdkExtension.revoke();
135
+ }
136
+ if (!tokenToRevoke && !this.token) {
137
+ // nothing to revoke
138
+ return;
139
+ }
140
+ if (!this.rest.clientId) {
141
+ // if no clientId, the token is from external source, cannot revoke
142
+ // no clientSecret is fine, since PKCE doesn't have clientSecret
143
+ return;
144
+ }
145
+ const temp = tokenToRevoke ?? this.token?.access_token ??
146
+ this.token?.refresh_token;
147
+ await this.restapi(null)
148
+ .oauth()
149
+ .revoke()
150
+ .post({ token: temp, client_id: this.rest.clientId }); // todo: spec doesn't allow client_id
151
+ this.token = undefined;
152
+ }
153
+ restapi(apiVersion = "v1.0") {
271
154
  return new index_js_1.default(this, apiVersion);
272
- };
273
- RingCentral.prototype.scim = function (version) {
274
- if (version === void 0) { version = "v2"; }
155
+ }
156
+ scim(version = "v2") {
275
157
  return new index_js_2.default(this, version);
276
- };
277
- RingCentral.prototype.analytics = function () {
158
+ }
159
+ analytics() {
278
160
  return new index_js_3.default(this);
279
- };
280
- RingCentral.prototype.teamMessaging = function () {
161
+ }
162
+ teamMessaging() {
281
163
  return new index_js_7.default(this);
282
- };
283
- RingCentral.prototype.ai = function () {
164
+ }
165
+ ai() {
284
166
  return new index_js_4.default(this);
285
- };
286
- RingCentral.prototype.rcvideo = function () {
167
+ }
168
+ rcvideo() {
287
169
  return new index_js_5.default(this);
288
- };
289
- RingCentral.prototype.webinar = function () {
170
+ }
171
+ webinar() {
290
172
  return new index_js_6.default(this);
291
- };
292
- RingCentral.config = {
293
- logger: {
294
- debug: function () { },
295
- log: function () { },
296
- info: function () { },
297
- warn: function () { },
298
- error: function () { },
299
- },
300
- };
301
- return RingCentral;
302
- }());
173
+ }
174
+ }
303
175
  exports.default = RingCentral;
304
176
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA6B;AAG7B,sEAA+C;AAC/C,mEAAyC;AAEzC,wEAAmD;AACnD,iEAAqC;AACrC,sEAA+C;AAC/C,sEAA+C;AAS/C,4EAA2D;AAwB3D;IAeE,qBAAmB,WAAyB;QAJrC,kBAAa,GAAmB,EAAE,CAAC;QAKxC,IAAI,CAAC,IAAI,GAAG,IAAI,iBAAI,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;IAEY,sCAAgB,GAA7B,UAA8B,YAA0B;;;;4BACtD,qBAAM,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;wBAAhC,SAAgC,CAAC;wBACjC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;;;;;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AAC,qCAAqC;QACrG,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IACzB,CAAC;IAEM,OAAO,CAAC,aAA4B,MAAM;QAC/C,OAAO,IAAI,kBAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACvC,CAAC;IAEM,IAAI,CAAC,UAAyB,IAAI;QACvC,OAAO,IAAI,kBAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;IAEM,SAAS;QACd,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAEM,aAAa;QAClB,OAAO,IAAI,kBAAa,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAEM,EAAE;QACP,OAAO,IAAI,kBAAE,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,kBAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,kBAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;;AAGH,kBAAe,WAAW,CAAC"}
@@ -1,49 +1,15 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
2
  Object.defineProperty(exports, "__esModule", { value: true });
39
- var Index = /** @class */ (function () {
40
- function Index(_parent) {
3
+ class Index {
4
+ rc;
5
+ _parent;
6
+ constructor(_parent) {
41
7
  this._parent = _parent;
42
8
  this.rc = _parent.rc;
43
9
  }
44
- Index.prototype.path = function () {
45
- return "".concat(this._parent.path(), "/speaker-diarize");
46
- };
10
+ path() {
11
+ return `${this._parent.path()}/speaker-diarize`;
12
+ }
47
13
  /**
48
14
  * Identifies who said what. Speaker diarization will identify the speaker for each segment
49
15
  * so you can tell who spoke the sentence, paragraph, or phrase.
@@ -53,20 +19,10 @@ var Index = /** @class */ (function () {
53
19
  * Rate Limit Group: Heavy
54
20
  * App Permission: AI
55
21
  */
56
- Index.prototype.post = function (diarizeInput, queryParams, restRequestConfig) {
57
- return __awaiter(this, void 0, void 0, function () {
58
- var r;
59
- return __generator(this, function (_a) {
60
- switch (_a.label) {
61
- case 0: return [4 /*yield*/, this.rc.post(this.path(), diarizeInput, queryParams, restRequestConfig)];
62
- case 1:
63
- r = _a.sent();
64
- return [2 /*return*/, r.data];
65
- }
66
- });
67
- });
68
- };
69
- return Index;
70
- }());
22
+ async post(diarizeInput, queryParams, restRequestConfig) {
23
+ const r = await this.rc.post(this.path(), diarizeInput, queryParams, restRequestConfig);
24
+ return r.data;
25
+ }
26
+ }
71
27
  exports.default = Index;
72
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA;IAIE,eAAmB,OAAwB;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACvB,CAAC;IACM,oBAAI,GAAX;QACE,OAAO,UAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,qBAAkB,CAAC;IAClD,CAAC;IACD;;;;;;;;OAQG;IACU,oBAAI,GAAjB,UACE,YAA0B,EAC1B,WAAyC,EACzC,iBAAqC;;;;;4BAE3B,qBAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAC1B,IAAI,CAAC,IAAI,EAAE,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,CAClB,EAAA;;wBALK,CAAC,GAAG,SAKT;wBACD,sBAAO,CAAC,CAAC,IAAI,EAAC;;;;KACf;IACH,YAAC;AAAD,CAAC,AAjCD,IAiCC;AACD,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.ts"],"names":[],"mappings":";;AASA,MAAM,KAAK;IACF,EAAE,CAAuB;IACzB,OAAO,CAAkB;IAEhC,YAAmB,OAAwB;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACvB,CAAC;IACM,IAAI;QACT,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClD,CAAC;IACD;;;;;;;;OAQG;IACI,KAAK,CAAC,IAAI,CACf,YAA0B,EAC1B,WAAyC,EACzC,iBAAqC;QAErC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAC1B,IAAI,CAAC,IAAI,EAAE,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;CACF;AACD,kBAAe,KAAK,CAAC"}