@rc-ex/core 1.4.0 → 1.4.1

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 (399) hide show
  1. package/lib/definitions/AccountInfo.d.ts +1 -6
  2. package/lib/definitions/AccountPhoneNumberInfo.d.ts +4 -2
  3. package/lib/definitions/AccountRegionalSettings.d.ts +2 -1
  4. package/lib/definitions/AccountServiceInfo.d.ts +2 -2
  5. package/lib/definitions/AccountServiceInfoRequest.d.ts +2 -2
  6. package/lib/definitions/AccountStatusInfo.d.ts +3 -1
  7. package/lib/definitions/AddPhoneNumberRequestItem.d.ts +4 -0
  8. package/lib/definitions/AddPhoneNumbersResponseItem.d.ts +4 -0
  9. package/lib/definitions/AssignPhoneNumberRequest.d.ts +2 -2
  10. package/lib/definitions/AssignedCountryInfo.d.ts +3 -1
  11. package/lib/definitions/AuthCodeTokenRequest.d.ts +1 -0
  12. package/lib/definitions/BatchListResponse.d.ts +2 -2
  13. package/lib/definitions/{PackageInfo.d.ts → BillingPackageInfo.d.ts} +2 -2
  14. package/lib/definitions/{AnsweringRuleInfo.js → BillingPackageInfo.js} +1 -1
  15. package/lib/definitions/BillingPackageInfo.js.map +1 -0
  16. package/lib/definitions/CallFlipNumberListResource.d.ts +8 -0
  17. package/lib/definitions/CallFlipNumberListResource.js +3 -0
  18. package/lib/definitions/CallFlipNumberListResource.js.map +1 -0
  19. package/lib/definitions/CallFlipNumberResource.d.ts +28 -0
  20. package/lib/definitions/CallFlipNumberResource.js +3 -0
  21. package/lib/definitions/CallFlipNumberResource.js.map +1 -0
  22. package/lib/definitions/{AnsweringRuleInfo.d.ts → CallHandlingRuleInfo.d.ts} +2 -2
  23. package/lib/definitions/{CreateContentRequest.js → CallHandlingRuleInfo.js} +1 -1
  24. package/lib/definitions/CallHandlingRuleInfo.js.map +1 -0
  25. package/lib/definitions/CallParty.d.ts +5 -0
  26. package/lib/definitions/CallQueueDetails.d.ts +5 -1
  27. package/lib/definitions/CallQueueDetailsForUpdate.d.ts +36 -0
  28. package/lib/definitions/CallQueueDetailsForUpdate.js +3 -0
  29. package/lib/definitions/CallQueueDetailsForUpdate.js.map +1 -0
  30. package/lib/definitions/CallQueueInfo.d.ts +5 -1
  31. package/lib/definitions/{CallQueues.d.ts → CallQueueList.d.ts} +2 -2
  32. package/lib/definitions/{SiteResource.js → CallQueueList.js} +1 -1
  33. package/lib/definitions/CallQueueList.js.map +1 -0
  34. package/lib/definitions/CallQueueMember.d.ts +2 -2
  35. package/lib/definitions/{GreetingResource.d.ts → CallRecordingGreetingResource.d.ts} +2 -2
  36. package/lib/definitions/CallRecordingGreetingResource.js +3 -0
  37. package/lib/definitions/CallRecordingGreetingResource.js.map +1 -0
  38. package/lib/definitions/CallRecordingSettingsResource.d.ts +2 -2
  39. package/lib/definitions/ClientCredentialsBase.d.ts +4 -1
  40. package/lib/definitions/ClientCredentialsByAccount.d.ts +4 -1
  41. package/lib/definitions/ClientCredentialsByBrand.d.ts +4 -1
  42. package/lib/definitions/ClientCredentialsByPartnerAccount.d.ts +4 -1
  43. package/lib/definitions/ClientCredentialsTokenRequest.d.ts +4 -1
  44. package/lib/definitions/CommonEmergencyLocationAddressInfo.d.ts +2 -1
  45. package/lib/definitions/CommonEmergencyLocationAddressInfoAu.d.ts +2 -1
  46. package/lib/definitions/CommonEmergencyLocationAddressInfoDefault.d.ts +2 -1
  47. package/lib/definitions/CommonEmergencyLocationAddressInfoFr.d.ts +2 -1
  48. package/lib/definitions/CompanyPhoneNumberInfo.d.ts +10 -6
  49. package/lib/definitions/ContentBodyFormatted.d.ts +1 -1
  50. package/lib/definitions/ContentContextData.d.ts +1 -2
  51. package/lib/definitions/ContentModel.d.ts +66 -71
  52. package/lib/definitions/CostCenterBase.d.ts +19 -0
  53. package/lib/definitions/{PagingResource.js → CostCenterBase.js} +1 -1
  54. package/lib/definitions/CostCenterBase.js.map +1 -0
  55. package/lib/definitions/CostCenterItem.d.ts +30 -0
  56. package/lib/definitions/CostCenterItem.js +3 -0
  57. package/lib/definitions/CostCenterItem.js.map +1 -0
  58. package/lib/definitions/CostCenterList.d.ts +8 -0
  59. package/lib/definitions/CostCenterList.js +3 -0
  60. package/lib/definitions/CostCenterList.js.map +1 -0
  61. package/lib/definitions/CountryInfoDictionaryModel.d.ts +5 -5
  62. package/lib/definitions/CountryInfoShortModel.d.ts +5 -6
  63. package/lib/definitions/CreateFaxMessageRequest.d.ts +1 -1
  64. package/lib/definitions/CreateSiteRequest.d.ts +7 -0
  65. package/lib/definitions/CreateSocialMessagingContentRequest.d.ts +110 -0
  66. package/lib/definitions/CreateSocialMessagingContentRequest.js +3 -0
  67. package/lib/definitions/CreateSocialMessagingContentRequest.js.map +1 -0
  68. package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +2 -1
  69. package/lib/definitions/CustomCompanyGreetingInfo.d.ts +1 -1
  70. package/lib/definitions/DeletePhoneNumbersRequestItem.d.ts +1 -1
  71. package/lib/definitions/DeviceCodeTokenRequest.d.ts +1 -0
  72. package/lib/definitions/DeviceEmergencyServiceAddressResourceAu.d.ts +2 -1
  73. package/lib/definitions/DeviceEmergencyServiceAddressResourceDefault.d.ts +2 -1
  74. package/lib/definitions/DeviceEmergencyServiceAddressResourceFr.d.ts +2 -1
  75. package/lib/definitions/DeviceResource.d.ts +2 -1
  76. package/lib/definitions/EmailRecipientInfo.d.ts +2 -2
  77. package/lib/definitions/EmergencyAddressInfo.d.ts +2 -1
  78. package/lib/definitions/EmergencyLocationRequestResource.d.ts +2 -1
  79. package/lib/definitions/EmergencyLocationResponseResource.d.ts +2 -1
  80. package/lib/definitions/EmergencyServiceAddressResource.d.ts +2 -1
  81. package/lib/definitions/ExtensionBulkUpdateInfo.d.ts +2 -1
  82. package/lib/definitions/ExtensionBulkUpdateTaskResult.d.ts +3 -3
  83. package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.d.ts +7 -0
  84. package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.js +3 -0
  85. package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.js.map +1 -0
  86. package/lib/definitions/ExtensionCreationRequest.d.ts +2 -2
  87. package/lib/definitions/ExtensionCreationResponse.d.ts +1 -3
  88. package/lib/definitions/ExtensionRegionalSettingRequest.d.ts +1 -1
  89. package/lib/definitions/ExtensionStatusInfo.d.ts +2 -9
  90. package/lib/definitions/ExtensionUpdateRequest.d.ts +2 -1
  91. package/lib/definitions/GetAccountInfoResponse.d.ts +2 -2
  92. package/lib/definitions/GetCountryInfoNumberParser.d.ts +5 -4
  93. package/lib/definitions/GetExtensionInfoResponse.d.ts +11 -3
  94. package/lib/definitions/GetExtensionListInfoResponse.d.ts +8 -4
  95. package/lib/definitions/GetMessageInfoResponse.d.ts +0 -4
  96. package/lib/definitions/GetSMSMessageInfoResponse.d.ts +0 -4
  97. package/lib/definitions/GetTokenRequest.d.ts +5 -1
  98. package/lib/definitions/GuestTokenRequest.d.ts +6 -1
  99. package/lib/definitions/IdentityModel.d.ts +5 -1
  100. package/lib/definitions/IvrPinTokenRequest.d.ts +1 -0
  101. package/lib/definitions/JwtTokenRequest.d.ts +1 -0
  102. package/lib/definitions/LanguageInfo.d.ts +2 -1
  103. package/lib/definitions/ListAccountPhoneNumbersParameters.d.ts +4 -2
  104. package/lib/definitions/ListAccountPhoneNumbersV2Parameters.d.ts +3 -1
  105. package/lib/definitions/ListCallMonitoringGroupsParameters.d.ts +4 -0
  106. package/lib/definitions/ListDirectoryEntriesParameters.d.ts +5 -0
  107. package/lib/definitions/ListEmergencyLocationsParameters.d.ts +1 -0
  108. package/lib/definitions/ListExtensionPhoneNumbersParameters.d.ts +4 -2
  109. package/lib/definitions/ListExtensionsParameters.d.ts +2 -2
  110. package/lib/definitions/ListMeetingRecordingsResponse.d.ts +4 -4
  111. package/lib/definitions/{SocMsgListContentsParameters.d.ts → ListSocialMessagingContentsParameters.d.ts} +25 -17
  112. package/lib/definitions/ListSocialMessagingContentsParameters.js +3 -0
  113. package/lib/definitions/ListSocialMessagingContentsParameters.js.map +1 -0
  114. package/lib/definitions/ListSocialMessagingIdentitiesParameters.d.ts +8 -4
  115. package/lib/definitions/LocationUpdatesEmergencyAddressInfoRequest.d.ts +2 -1
  116. package/lib/definitions/MeetingsCountryResource.d.ts +6 -0
  117. package/lib/definitions/MeetingsResource.d.ts +4 -4
  118. package/lib/definitions/MessageListResponse.d.ts +2 -2
  119. package/lib/definitions/MessageTemplateInfo.d.ts +11 -0
  120. package/lib/definitions/{ContentAttachment.js → MessageTemplateInfo.js} +1 -1
  121. package/lib/definitions/MessageTemplateInfo.js.map +1 -0
  122. package/lib/definitions/MessageTemplateRequest.d.ts +2 -2
  123. package/lib/definitions/MessageTemplateResponse.d.ts +2 -2
  124. package/lib/definitions/MessageTemplateUpdateRequest.d.ts +2 -2
  125. package/lib/definitions/MetaData.d.ts +12 -0
  126. package/lib/definitions/{CallQueues.js → MetaData.js} +1 -1
  127. package/lib/definitions/MetaData.js.map +1 -0
  128. package/lib/definitions/MetaDataValues.d.ts +11 -0
  129. package/lib/definitions/MetaDataValues.js +3 -0
  130. package/lib/definitions/MetaDataValues.js.map +1 -0
  131. package/lib/definitions/MissedCallExtensionInfoExternalNumber.d.ts +1 -1
  132. package/lib/definitions/OptOutListResponse.d.ts +2 -2
  133. package/lib/definitions/OtpTokenRequest.d.ts +4 -1
  134. package/lib/definitions/PhoneNumberInfoIntId.d.ts +2 -2
  135. package/lib/definitions/ReadDirectoryEntryParameters.d.ts +11 -0
  136. package/lib/definitions/ReadDirectoryEntryParameters.js +3 -0
  137. package/lib/definitions/ReadDirectoryEntryParameters.js.map +1 -0
  138. package/lib/definitions/RefreshTokenRequest.d.ts +1 -0
  139. package/lib/definitions/RegSessionModel.d.ts +6 -0
  140. package/lib/definitions/RegSessionModelSettings.d.ts +9 -0
  141. package/lib/definitions/RegionalSettings.d.ts +2 -1
  142. package/lib/definitions/RolesCountryResource.d.ts +6 -0
  143. package/lib/definitions/RolesRegionalSettingsResource.d.ts +2 -0
  144. package/lib/definitions/RopcTokenRequest.d.ts +1 -0
  145. package/lib/definitions/SearchDirectoryEntriesParameters.d.ts +5 -0
  146. package/lib/definitions/ServiceInfoContractedCountryId.d.ts +7 -0
  147. package/lib/definitions/ServiceInfoContractedCountryId.js +3 -0
  148. package/lib/definitions/ServiceInfoContractedCountryId.js.map +1 -0
  149. package/lib/definitions/ServiceInfoPlan.d.ts +0 -4
  150. package/lib/definitions/ServiceInfoUBrand.d.ts +0 -5
  151. package/lib/definitions/ServiceInfoV2.d.ts +5 -2
  152. package/lib/definitions/SipRegistrationDeviceEmergencyInfoAddress.d.ts +2 -1
  153. package/lib/definitions/SiteInfo.d.ts +4 -0
  154. package/lib/definitions/SiteUpdateRequest.d.ts +7 -0
  155. package/lib/definitions/SmsRequestCountryInfo.d.ts +2 -1
  156. package/lib/definitions/SocMsgContentAttachment.d.ts +77 -0
  157. package/lib/definitions/SocMsgContentAttachment.js +3 -0
  158. package/lib/definitions/SocMsgContentAttachment.js.map +1 -0
  159. package/lib/definitions/TMCreateTaskRequest.d.ts +2 -2
  160. package/lib/definitions/TaxLocation.d.ts +38 -0
  161. package/lib/definitions/{PackageInfo.js → TaxLocation.js} +1 -1
  162. package/lib/definitions/TaxLocation.js.map +1 -0
  163. package/lib/definitions/TemplateInfo.d.ts +24 -6
  164. package/lib/definitions/UnconditionalForwardingInfo.d.ts +2 -2
  165. package/lib/definitions/UserAnsweringRuleList.d.ts +2 -2
  166. package/lib/definitions/UserPhoneNumberInfo.d.ts +4 -4
  167. package/lib/definitions/UserTransitionInfo.d.ts +2 -2
  168. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.d.ts +17 -19
  169. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js +15 -17
  170. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js.map +1 -1
  171. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +1 -1
  172. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +1 -1
  173. package/lib/paths/Restapi/Account/CallQueues/index.d.ts +4 -3
  174. package/lib/paths/Restapi/Account/CallQueues/index.js +2 -2
  175. package/lib/paths/Restapi/Account/CallQueues/index.js.map +1 -1
  176. package/lib/paths/Restapi/Account/Directory/Entries/index.d.ts +2 -1
  177. package/lib/paths/Restapi/Account/Directory/Entries/index.js +2 -2
  178. package/lib/paths/Restapi/Account/Directory/Entries/index.js.map +1 -1
  179. package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.d.ts +3 -3
  180. package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.js.map +1 -1
  181. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.d.ts +3 -0
  182. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js +3 -0
  183. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js.map +1 -1
  184. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.d.ts +18 -0
  185. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.js +25 -0
  186. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.js.map +1 -0
  187. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.d.ts +45 -0
  188. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +55 -0
  189. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js.map +1 -0
  190. package/lib/paths/Restapi/V2/Accounts/Extensions/index.d.ts +2 -0
  191. package/lib/paths/Restapi/V2/Accounts/Extensions/index.js +4 -0
  192. package/lib/paths/Restapi/V2/Accounts/Extensions/index.js.map +1 -1
  193. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.d.ts +1 -1
  194. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +1 -1
  195. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.d.ts +1 -1
  196. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +1 -1
  197. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.d.ts +6 -6
  198. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +6 -6
  199. package/lib/paths/Restapi/V2/Accounts/index.d.ts +2 -0
  200. package/lib/paths/Restapi/V2/Accounts/index.js +4 -0
  201. package/lib/paths/Restapi/V2/Accounts/index.js.map +1 -1
  202. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.d.ts +5 -1
  203. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js +5 -1
  204. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js.map +1 -1
  205. package/package.json +5 -5
  206. package/src/definitions/AccountInfo.ts +1 -7
  207. package/src/definitions/AccountPhoneNumberInfo.ts +4 -2
  208. package/src/definitions/AccountRegionalSettings.ts +2 -1
  209. package/src/definitions/AccountServiceInfo.ts +2 -2
  210. package/src/definitions/AccountServiceInfoRequest.ts +2 -2
  211. package/src/definitions/AccountStatusInfo.ts +3 -1
  212. package/src/definitions/AddPhoneNumberRequestItem.ts +5 -0
  213. package/src/definitions/AddPhoneNumbersResponseItem.ts +5 -0
  214. package/src/definitions/AssignPhoneNumberRequest.ts +2 -2
  215. package/src/definitions/AssignedCountryInfo.ts +3 -1
  216. package/src/definitions/AuthCodeTokenRequest.ts +1 -0
  217. package/src/definitions/BatchListResponse.ts +2 -2
  218. package/src/definitions/{PackageInfo.ts → BillingPackageInfo.ts} +2 -2
  219. package/src/definitions/CallFlipNumberListResource.ts +10 -0
  220. package/src/definitions/CallFlipNumberResource.ts +33 -0
  221. package/src/definitions/{AnsweringRuleInfo.ts → CallHandlingRuleInfo.ts} +2 -2
  222. package/src/definitions/CallParty.ts +6 -0
  223. package/src/definitions/CallQueueDetails.ts +6 -1
  224. package/src/definitions/CallQueueDetailsForUpdate.ts +45 -0
  225. package/src/definitions/CallQueueInfo.ts +7 -1
  226. package/src/definitions/{CallQueues.ts → CallQueueList.ts} +2 -2
  227. package/src/definitions/CallQueueMember.ts +2 -2
  228. package/src/definitions/{GreetingResource.ts → CallRecordingGreetingResource.ts} +2 -2
  229. package/src/definitions/CallRecordingSettingsResource.ts +2 -2
  230. package/src/definitions/ClientCredentialsBase.ts +4 -1
  231. package/src/definitions/ClientCredentialsByAccount.ts +4 -1
  232. package/src/definitions/ClientCredentialsByBrand.ts +4 -1
  233. package/src/definitions/ClientCredentialsByPartnerAccount.ts +4 -1
  234. package/src/definitions/ClientCredentialsTokenRequest.ts +4 -1
  235. package/src/definitions/CommonEmergencyLocationAddressInfo.ts +2 -1
  236. package/src/definitions/CommonEmergencyLocationAddressInfoAu.ts +2 -1
  237. package/src/definitions/CommonEmergencyLocationAddressInfoDefault.ts +2 -1
  238. package/src/definitions/CommonEmergencyLocationAddressInfoFr.ts +2 -1
  239. package/src/definitions/CompanyPhoneNumberInfo.ts +11 -6
  240. package/src/definitions/ContentBodyFormatted.ts +1 -1
  241. package/src/definitions/ContentContextData.ts +1 -2
  242. package/src/definitions/ContentModel.ts +68 -72
  243. package/src/definitions/CostCenterBase.ts +22 -0
  244. package/src/definitions/CostCenterItem.ts +36 -0
  245. package/src/definitions/CostCenterList.ts +10 -0
  246. package/src/definitions/CountryInfoDictionaryModel.ts +5 -5
  247. package/src/definitions/CountryInfoShortModel.ts +5 -6
  248. package/src/definitions/CreateFaxMessageRequest.ts +1 -1
  249. package/src/definitions/CreateSiteRequest.ts +9 -0
  250. package/src/definitions/CreateSocialMessagingContentRequest.ts +126 -0
  251. package/src/definitions/CreateUserEmergencyLocationRequest.ts +2 -1
  252. package/src/definitions/CustomCompanyGreetingInfo.ts +1 -1
  253. package/src/definitions/DeletePhoneNumbersRequestItem.ts +1 -1
  254. package/src/definitions/DeviceCodeTokenRequest.ts +1 -0
  255. package/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts +2 -1
  256. package/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts +2 -1
  257. package/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts +2 -1
  258. package/src/definitions/DeviceResource.ts +2 -1
  259. package/src/definitions/EmailRecipientInfo.ts +2 -2
  260. package/src/definitions/EmergencyAddressInfo.ts +2 -1
  261. package/src/definitions/EmergencyLocationRequestResource.ts +2 -1
  262. package/src/definitions/EmergencyLocationResponseResource.ts +2 -1
  263. package/src/definitions/EmergencyServiceAddressResource.ts +2 -1
  264. package/src/definitions/ExtensionBulkUpdateInfo.ts +2 -1
  265. package/src/definitions/ExtensionBulkUpdateTaskResult.ts +3 -3
  266. package/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts +9 -0
  267. package/src/definitions/ExtensionCreationRequest.ts +2 -2
  268. package/src/definitions/ExtensionCreationResponse.ts +1 -3
  269. package/src/definitions/ExtensionRegionalSettingRequest.ts +1 -1
  270. package/src/definitions/ExtensionStatusInfo.ts +2 -10
  271. package/src/definitions/ExtensionUpdateRequest.ts +2 -1
  272. package/src/definitions/GetAccountInfoResponse.ts +2 -2
  273. package/src/definitions/GetCountryInfoNumberParser.ts +5 -4
  274. package/src/definitions/GetExtensionInfoResponse.ts +13 -3
  275. package/src/definitions/GetExtensionListInfoResponse.ts +9 -4
  276. package/src/definitions/GetMessageInfoResponse.ts +0 -5
  277. package/src/definitions/GetSMSMessageInfoResponse.ts +0 -5
  278. package/src/definitions/GetTokenRequest.ts +5 -1
  279. package/src/definitions/GuestTokenRequest.ts +6 -1
  280. package/src/definitions/IdentityModel.ts +5 -1
  281. package/src/definitions/IvrPinTokenRequest.ts +1 -0
  282. package/src/definitions/JwtTokenRequest.ts +1 -0
  283. package/src/definitions/LanguageInfo.ts +2 -1
  284. package/src/definitions/ListAccountPhoneNumbersParameters.ts +4 -2
  285. package/src/definitions/ListAccountPhoneNumbersV2Parameters.ts +3 -1
  286. package/src/definitions/ListCallMonitoringGroupsParameters.ts +5 -0
  287. package/src/definitions/ListDirectoryEntriesParameters.ts +6 -0
  288. package/src/definitions/ListEmergencyLocationsParameters.ts +1 -0
  289. package/src/definitions/ListExtensionPhoneNumbersParameters.ts +4 -2
  290. package/src/definitions/ListExtensionsParameters.ts +2 -2
  291. package/src/definitions/ListMeetingRecordingsResponse.ts +4 -4
  292. package/src/definitions/ListSocialMessagingContentsParameters.ts +85 -0
  293. package/src/definitions/ListSocialMessagingIdentitiesParameters.ts +15 -4
  294. package/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts +2 -1
  295. package/src/definitions/MeetingsCountryResource.ts +6 -0
  296. package/src/definitions/MeetingsResource.ts +4 -4
  297. package/src/definitions/MessageListResponse.ts +2 -2
  298. package/src/definitions/MessageTemplateInfo.ts +12 -0
  299. package/src/definitions/MessageTemplateRequest.ts +2 -2
  300. package/src/definitions/MessageTemplateResponse.ts +2 -2
  301. package/src/definitions/MessageTemplateUpdateRequest.ts +2 -2
  302. package/src/definitions/MetaData.ts +14 -0
  303. package/src/definitions/MetaDataValues.ts +13 -0
  304. package/src/definitions/MissedCallExtensionInfoExternalNumber.ts +1 -1
  305. package/src/definitions/OptOutListResponse.ts +2 -2
  306. package/src/definitions/OtpTokenRequest.ts +4 -1
  307. package/src/definitions/PhoneNumberInfoIntId.ts +2 -2
  308. package/src/definitions/ReadDirectoryEntryParameters.ts +12 -0
  309. package/src/definitions/RefreshTokenRequest.ts +1 -0
  310. package/src/definitions/RegSessionModel.ts +7 -0
  311. package/src/definitions/RegSessionModelSettings.ts +11 -0
  312. package/src/definitions/RegionalSettings.ts +2 -1
  313. package/src/definitions/RolesCountryResource.ts +6 -0
  314. package/src/definitions/RolesRegionalSettingsResource.ts +2 -0
  315. package/src/definitions/RopcTokenRequest.ts +1 -0
  316. package/src/definitions/SearchDirectoryEntriesParameters.ts +6 -0
  317. package/src/definitions/ServiceInfoContractedCountryId.ts +8 -0
  318. package/src/definitions/ServiceInfoPlan.ts +0 -5
  319. package/src/definitions/ServiceInfoUBrand.ts +0 -6
  320. package/src/definitions/ServiceInfoV2.ts +6 -2
  321. package/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts +2 -1
  322. package/src/definitions/SiteInfo.ts +5 -0
  323. package/src/definitions/SiteUpdateRequest.ts +9 -0
  324. package/src/definitions/SmsRequestCountryInfo.ts +2 -1
  325. package/src/definitions/SocMsgContentAttachment.ts +86 -0
  326. package/src/definitions/TMCreateTaskRequest.ts +2 -2
  327. package/src/definitions/TaxLocation.ts +45 -0
  328. package/src/definitions/TemplateInfo.ts +29 -6
  329. package/src/definitions/UnconditionalForwardingInfo.ts +2 -2
  330. package/src/definitions/UserAnsweringRuleList.ts +2 -2
  331. package/src/definitions/UserPhoneNumberInfo.ts +4 -4
  332. package/src/definitions/UserTransitionInfo.ts +2 -2
  333. package/src/paths/Cx/SocialMessaging/V1/Contents/index.ts +23 -20
  334. package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +1 -1
  335. package/src/paths/Restapi/Account/CallQueues/index.ts +6 -5
  336. package/src/paths/Restapi/Account/Directory/Entries/index.ts +6 -2
  337. package/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts +5 -5
  338. package/src/paths/Restapi/Account/IvrPrompts/Content/index.ts +3 -0
  339. package/src/paths/Restapi/V2/Accounts/CostCenters/index.ts +28 -0
  340. package/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts +67 -0
  341. package/src/paths/Restapi/V2/Accounts/Extensions/index.ts +5 -0
  342. package/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts +1 -1
  343. package/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts +1 -1
  344. package/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts +6 -6
  345. package/src/paths/Restapi/V2/Accounts/index.ts +5 -0
  346. package/src/paths/TeamMessaging/V1/Chats/Posts/index.ts +5 -1
  347. package/src/samples.md +192 -110
  348. package/lib/definitions/AnsweringRuleInfo.js.map +0 -1
  349. package/lib/definitions/CallQueues.js.map +0 -1
  350. package/lib/definitions/ContentAttachment.d.ts +0 -76
  351. package/lib/definitions/ContentAttachment.js.map +0 -1
  352. package/lib/definitions/CreateContentRequest.d.ts +0 -131
  353. package/lib/definitions/CreateContentRequest.js.map +0 -1
  354. package/lib/definitions/EmergencyLocationInfoRequest.d.ts +0 -38
  355. package/lib/definitions/EmergencyLocationInfoRequest.js +0 -3
  356. package/lib/definitions/EmergencyLocationInfoRequest.js.map +0 -1
  357. package/lib/definitions/GreetingResource.js +0 -3
  358. package/lib/definitions/GreetingResource.js.map +0 -1
  359. package/lib/definitions/MeetingRecordingsNavigationInfo.d.ts +0 -16
  360. package/lib/definitions/MeetingRecordingsNavigationInfo.js +0 -3
  361. package/lib/definitions/MeetingRecordingsNavigationInfo.js.map +0 -1
  362. package/lib/definitions/MeetingRecordingsNavigationInfoUri.d.ts +0 -10
  363. package/lib/definitions/MeetingRecordingsNavigationInfoUri.js +0 -3
  364. package/lib/definitions/MeetingRecordingsNavigationInfoUri.js.map +0 -1
  365. package/lib/definitions/MeetingRecordingsPagingInfo.d.ts +0 -33
  366. package/lib/definitions/MeetingRecordingsPagingInfo.js +0 -3
  367. package/lib/definitions/MeetingRecordingsPagingInfo.js.map +0 -1
  368. package/lib/definitions/MeetingsNavigationInfo.d.ts +0 -16
  369. package/lib/definitions/MeetingsNavigationInfo.js +0 -3
  370. package/lib/definitions/MeetingsNavigationInfo.js.map +0 -1
  371. package/lib/definitions/MeetingsNavigationInfoUri.d.ts +0 -7
  372. package/lib/definitions/MeetingsNavigationInfoUri.js +0 -3
  373. package/lib/definitions/MeetingsNavigationInfoUri.js.map +0 -1
  374. package/lib/definitions/MeetingsPagingInfo.d.ts +0 -27
  375. package/lib/definitions/MeetingsPagingInfo.js +0 -3
  376. package/lib/definitions/MeetingsPagingInfo.js.map +0 -1
  377. package/lib/definitions/PackageInfo.js.map +0 -1
  378. package/lib/definitions/PagingResource.d.ts +0 -32
  379. package/lib/definitions/PagingResource.js.map +0 -1
  380. package/lib/definitions/ServiceInfoCountryShortModel.d.ts +0 -29
  381. package/lib/definitions/ServiceInfoCountryShortModel.js +0 -3
  382. package/lib/definitions/ServiceInfoCountryShortModel.js.map +0 -1
  383. package/lib/definitions/SiteResource.d.ts +0 -14
  384. package/lib/definitions/SiteResource.js.map +0 -1
  385. package/lib/definitions/SocMsgListContentsParameters.js +0 -3
  386. package/lib/definitions/SocMsgListContentsParameters.js.map +0 -1
  387. package/src/definitions/ContentAttachment.ts +0 -85
  388. package/src/definitions/CreateContentRequest.ts +0 -147
  389. package/src/definitions/EmergencyLocationInfoRequest.ts +0 -47
  390. package/src/definitions/MeetingRecordingsNavigationInfo.ts +0 -21
  391. package/src/definitions/MeetingRecordingsNavigationInfoUri.ts +0 -11
  392. package/src/definitions/MeetingRecordingsPagingInfo.ts +0 -39
  393. package/src/definitions/MeetingsNavigationInfo.ts +0 -21
  394. package/src/definitions/MeetingsNavigationInfoUri.ts +0 -8
  395. package/src/definitions/MeetingsPagingInfo.ts +0 -33
  396. package/src/definitions/PagingResource.ts +0 -37
  397. package/src/definitions/ServiceInfoCountryShortModel.ts +0 -34
  398. package/src/definitions/SiteResource.ts +0 -16
  399. package/src/definitions/SocMsgListContentsParameters.ts +0 -70
@@ -0,0 +1,86 @@
1
+ interface SocMsgContentAttachment {
2
+ /**
3
+ * Type of attachment, which is generally a MIME attachment type like `image/jpeg`, etc.
4
+ * Security level in RingCX determines what type of attachment is allowed.
5
+ * Based on the security level the following attachment types are supported.
6
+ *
7
+ * *'Strict'* level allows safe extensions below:
8
+ * Content name and supported types:
9
+ *
10
+ * - audio (AAC, MP3, OGG, M4A)
11
+ * - image (BMP, GIF, JPG, JPEG, PNG, SVG, WEBP)
12
+ * - pdf (PDF)
13
+ * - text (CSV, TXT, LOG)
14
+ * - video (AVI, FLV, M4V, MKV, MOV, MP4, MPG, QT, WMV)
15
+ * - other (AMR, DMS, VCARD, TIF, TIFF, MPEG)
16
+ *
17
+ * *'Relaxed'* level allows documents:
18
+ * Content name and supported types:
19
+ *
20
+ * - excel (XLS, XLSM, XLSX, XLC, XLT, XLTM, XLTX)
21
+ * - presentation (KEY, ODP, OTP)
22
+ * - powerpoint (PPS, PPT, PPTX, POT)
23
+ * - spreadsheet (Numbers - ODS, OTS)
24
+ * - word (DOC, DOCM, DOCX, DOTM, DOTX)
25
+ * - word_processing (Pages - ODT, OTT, RTF)
26
+ *
27
+ * *'Permissive'* level allows all documents.
28
+ *
29
+ * However, there are no security level restrictions for content posted through the channel
30
+ * Example: image/jpeg
31
+ */
32
+ contentType?: string;
33
+
34
+ /**
35
+ * Creation time of the resource.
36
+ * Format: date-time
37
+ * Example: 2023-02-04T12:43:07Z
38
+ */
39
+ creationTime?: string;
40
+
41
+ /**
42
+ * Specifies if attachment is embedded in content
43
+ */
44
+ embedded?: boolean;
45
+
46
+ /**
47
+ * Filename of attachment
48
+ * Example: 0.jpeg
49
+ */
50
+ filename?: string;
51
+
52
+ /**
53
+ * Identifier of the attachment.
54
+ * Example: 54085e5b7aa58d8b5d00006c
55
+ */
56
+ id?: string;
57
+
58
+ /**
59
+ * Attachment privacy setting
60
+ * Default: true
61
+ */
62
+ public?: boolean;
63
+
64
+ /**
65
+ * Size of attachment
66
+ * Format: int32
67
+ * Example: 217571
68
+ */
69
+ size?: number;
70
+
71
+ /**
72
+ * The time when the last modification was completed.
73
+ * Format: date-time
74
+ * Example: 2023-02-04T12:43:07Z
75
+ */
76
+ lastModifiedTime?: string;
77
+
78
+ /**
79
+ * Attachment URI
80
+ * Format: uri
81
+ * Example: https://example.digital.ringcentral.com/files/attachments/54085e5b7aa58d8b5d00006c
82
+ */
83
+ uri?: string;
84
+ }
85
+
86
+ export default SocMsgContentAttachment;
@@ -1,6 +1,6 @@
1
1
  import type TMCreateTaskRequestAssignees from './TMCreateTaskRequestAssignees';
2
2
  import type TaskRecurrenceInfo from './TaskRecurrenceInfo';
3
- import type TMAttachmentInfo from './TMAttachmentInfo';
3
+ import type TaskAttachment from './TaskAttachment';
4
4
 
5
5
  interface TMCreateTaskRequest {
6
6
  /**
@@ -52,7 +52,7 @@ interface TMCreateTaskRequest {
52
52
 
53
53
  /**
54
54
  */
55
- attachments?: TMAttachmentInfo[];
55
+ attachments?: TaskAttachment[];
56
56
  }
57
57
 
58
58
  export default TMCreateTaskRequest;
@@ -0,0 +1,45 @@
1
+ import type PostalAddress from './PostalAddress';
2
+
3
+ interface TaxLocation {
4
+ /**
5
+ * Internal identifier of a tax location
6
+ * Required
7
+ * Format: int64
8
+ * Example: 981086004
9
+ */
10
+ id?: number;
11
+
12
+ /**
13
+ * Tax location name
14
+ * Required
15
+ * Example: Tax_Location
16
+ */
17
+ name?: string;
18
+
19
+ /**
20
+ * Type of the location object. Only 'TaxLocation' is currently supported for POST method
21
+ * Required
22
+ * Example: TaxLocation
23
+ */
24
+ type?: 'BillingAddress' | 'TaxLocation' | 'Site';
25
+
26
+ /**
27
+ * Unique identifier of a tax location in the partner's system
28
+ * Example: 4587834894962936
29
+ */
30
+ externalLocationId?: string;
31
+
32
+ /**
33
+ * Effective date in the ISO 8601 (`YYYY-MM-DDThh:mm:ssTZD`) format, including date, time, and timezone
34
+ * Format: date-time
35
+ * Example: 2022-06-05T10:11:12Z
36
+ */
37
+ effectiveDate?: string;
38
+
39
+ /**
40
+ * Required
41
+ */
42
+ address?: PostalAddress;
43
+ }
44
+
45
+ export default TaxLocation;
@@ -1,12 +1,35 @@
1
- /**
2
- * Text message template information
3
- */
4
1
  interface TemplateInfo {
5
2
  /**
6
- * Text of a message template. Maximum length is 1000 symbols (2-byte UTF-16 encoded)
7
- * Required
3
+ * Link to a template
4
+ * Format: uri
8
5
  */
9
- text?: string;
6
+ uri?: string;
7
+
8
+ /**
9
+ * Internal identifier of a template
10
+ */
11
+ id?: string;
12
+
13
+ /**
14
+ */
15
+ type?: 'UserSettings' | 'CallHandling';
16
+
17
+ /**
18
+ * Name of a template
19
+ */
20
+ name?: string;
21
+
22
+ /**
23
+ * Time of a template creation
24
+ * Format: date-time
25
+ */
26
+ creationTime?: string;
27
+
28
+ /**
29
+ * Time of the last template modification
30
+ * Format: date-time
31
+ */
32
+ lastModifiedTime?: string;
10
33
  }
11
34
 
12
35
  export default TemplateInfo;
@@ -6,9 +6,9 @@
6
6
  interface UnconditionalForwardingInfo {
7
7
  /**
8
8
  * Phone number to which the call is forwarded. In addition to
9
- * common e.164 format, the following number patterns are supported: 11xxxxxxxxxxx,
9
+ * common E.164 format, the following number patterns are supported: 11xxxxxxxxxxx,
10
10
  * 444xxxxxxxxxxx, 616xxxxxxxxxxx, 1700yyyy; where xxxxxxxxxxx is a phone number in
11
- * e.164 format (without '+' sign) and yyyy is an external short extension number.
11
+ * E.164 format (without '+' sign) and yyyy is an external short extension number.
12
12
  * Max number of digits is 15
13
13
  */
14
14
  phoneNumber?: string;
@@ -1,4 +1,4 @@
1
- import type AnsweringRuleInfo from './AnsweringRuleInfo';
1
+ import type CallHandlingRuleInfo from './CallHandlingRuleInfo';
2
2
  import type EnumeratedPagingModel from './EnumeratedPagingModel';
3
3
  import type PageNavigationModel from './PageNavigationModel';
4
4
 
@@ -13,7 +13,7 @@ interface UserAnsweringRuleList {
13
13
  /**
14
14
  * List of answering rules
15
15
  */
16
- records?: AnsweringRuleInfo[];
16
+ records?: CallHandlingRuleInfo[];
17
17
 
18
18
  /**
19
19
  */
@@ -60,16 +60,16 @@ interface UserPhoneNumberInfo {
60
60
  primary?: boolean;
61
61
 
62
62
  /**
63
- * Status of a phone number. If the value is 'Normal', the phone
63
+ * Status of a phone number. If the value is `Normal`, the phone
64
64
  * number is ready to be used. Otherwise, it is an external number not yet
65
65
  * ported to RingCentral
66
66
  */
67
- status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary';
67
+ status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown';
68
68
 
69
69
  /**
70
- * Phone number type
70
+ * Type of a phone number
71
71
  */
72
- type?: 'VoiceFax' | 'FaxOnly' | 'VoiceOnly';
72
+ type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly';
73
73
 
74
74
  /**
75
75
  * Extension subtype, if applicable. For any unsupported subtypes the 'Unknown' value will be returned
@@ -1,5 +1,5 @@
1
1
  /**
2
- * For NotActivated extensions only. Welcome email settings
2
+ * For `NotActivated` extensions only. Welcome email settings
3
3
  *
4
4
  */
5
5
  interface UserTransitionInfo {
@@ -11,7 +11,7 @@ interface UserTransitionInfo {
11
11
 
12
12
  /**
13
13
  * Specifies if a welcome/activation email is sent to the new users (within extension status changing from
14
- * 'Unassigned' to 'NotActivated/Disabled')
14
+ * `Unassigned` to `NotActivated/Disabled`)
15
15
  */
16
16
  sendWelcomeEmail?: boolean;
17
17
  }
@@ -1,5 +1,5 @@
1
- import type CreateContentRequest from '../../../../../definitions/CreateContentRequest';
2
- import type SocMsgListContentsParameters from '../../../../../definitions/SocMsgListContentsParameters';
1
+ import type CreateSocialMessagingContentRequest from '../../../../../definitions/CreateSocialMessagingContentRequest';
2
+ import type ListSocialMessagingContentsParameters from '../../../../../definitions/ListSocialMessagingContentsParameters';
3
3
  import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
4
4
 
5
5
  class Index {
@@ -19,15 +19,14 @@ class Index {
19
19
  return `${this._parent.path()}/contents`;
20
20
  }
21
21
  /**
22
- * List contents by creation date. The default creation order is descending.
22
+ * Returns a list of social messaging contents ordered by creation date. The default order is descending.
23
23
  *
24
- * The account context of this request is determined by the RC Account Id associated with the access token provided
25
- * in the Authorization header.
24
+ * The account context of this request is determined by the RC Account ID associated with
25
+ * the access token provided in the Authorization header.
26
26
  *
27
- * The query parameters provided shall be considered an AND operation to filter the list.
27
+ * The query parameters provided in request will be considered an AND operation to filter the list.
28
28
  *
29
- * A query parameter not specified or a query parameter provided with no value is treated as not required for
30
- * filtering the list.
29
+ * A query parameter which is not specified or provided with the null value will be ignored.
31
30
  *
32
31
  * HTTP Method: get
33
32
  * Endpoint: /cx/social-messaging/v1/contents
@@ -35,7 +34,7 @@ class Index {
35
34
  * App Permission: SocialMessaging
36
35
  */
37
36
  public async list(
38
- queryParams?: SocMsgListContentsParameters,
37
+ queryParams?: ListSocialMessagingContentsParameters,
39
38
  restRequestConfig?: RestRequestConfig,
40
39
  ): Promise<string> {
41
40
  const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
@@ -43,26 +42,26 @@ class Index {
43
42
  }
44
43
 
45
44
  /**
46
- * Creates new content for use in discussions.
45
+ * Creates the new social messaging content for use in discussions.
47
46
  *
48
- * This request is used to reply to already-posted content or to initiate a discussion. If authorized, the
47
+ * This request is used to reply to an already posted content or to initiate a discussion. If authorized, the
49
48
  * authenticated user will be used as the content author.
50
49
  *
51
50
  * Content will be created and pushed asynchronously to the channel. When the content is successfully pushed to
52
- * the channel, the Content.Exported event will be reported.
51
+ * the channel, the `Content.Exported` event will be reported.
53
52
  *
54
- * The account context of this request is determined by the RC Account Id associated with the access token provided
53
+ * The account context of this request is determined by the RC Account ID associated with the access token provided
55
54
  * in the Authorization header.
56
55
  *
57
56
  * Replying to customer content is usually possible unless the channel or conversation is read only. Composing
58
57
  * content, on the contrary, depends on the channel itself.
59
58
  *
60
- * * The channel may not support it (and be purely reactive like Instagram, Messenger, etc.).
59
+ * - The channel may not support it and be purely reactive like Instagram, Messenger, etc.
61
60
  *
62
- * * Some channels (usually public accounts like Twitter or Facebook pages) allow for the publishing of content
61
+ * - Some channels (usually public accounts, like Twitter or Facebook pages) allow content publishing
63
62
  * without targeting specific individuals.
64
63
  *
65
- * * Some channels (usually non-public media) require specific targeting (phone number for SMS, email address
64
+ * - Some channels (usually non-public media) require specific targeting (phone number for SMS, email address
66
65
  * for email, customer_id, etc.) to be able to create content. This is channel-specific and detailed under the
67
66
  * generic parameters.
68
67
  *
@@ -72,16 +71,20 @@ class Index {
72
71
  * App Permission: SocialMessaging
73
72
  */
74
73
  public async post(
75
- createContentRequest: CreateContentRequest,
74
+ createSocialMessagingContentRequest: CreateSocialMessagingContentRequest,
76
75
  restRequestConfig?: RestRequestConfig,
77
76
  ): Promise<string> {
78
- const r = await this.rc.post<string>(this.path(false), createContentRequest, undefined, restRequestConfig);
77
+ const r = await this.rc.post<string>(
78
+ this.path(false),
79
+ createSocialMessagingContentRequest,
80
+ undefined,
81
+ restRequestConfig,
82
+ );
79
83
  return r.data;
80
84
  }
81
85
 
82
86
  /**
83
- * Retrieves the content from the given id.
84
- *
87
+ * Returns the social messaging content by ID specified in path.
85
88
  * HTTP Method: get
86
89
  * Endpoint: /cx/social-messaging/v1/contents/{contentId}
87
90
  * Rate Limit Group: Light
@@ -18,7 +18,7 @@ class Index {
18
18
  return `${this._parent.path()}/identities`;
19
19
  }
20
20
  /**
21
- * Returns a list of identities filtered by creation date. The default order is descending.
21
+ * Returns a list of identities ordered by creation date. The default order is descending.
22
22
  *
23
23
  * The account context of this request is determined by the RC Account ID associated with
24
24
  * the access token provided in the Authorization header.
@@ -1,8 +1,9 @@
1
1
  import BulkAssign from './BulkAssign';
2
2
  import Presence from './Presence';
3
3
  import Members from './Members';
4
+ import type CallQueueDetailsForUpdate from '../../../../definitions/CallQueueDetailsForUpdate';
4
5
  import type CallQueueDetails from '../../../../definitions/CallQueueDetails';
5
- import type CallQueues from '../../../../definitions/CallQueues';
6
+ import type CallQueueList from '../../../../definitions/CallQueueList';
6
7
  import type ListCallQueuesParameters from '../../../../definitions/ListCallQueuesParameters';
7
8
  import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types';
8
9
 
@@ -33,8 +34,8 @@ class Index {
33
34
  public async list(
34
35
  queryParams?: ListCallQueuesParameters,
35
36
  restRequestConfig?: RestRequestConfig,
36
- ): Promise<CallQueues> {
37
- const r = await this.rc.get<CallQueues>(this.path(false), queryParams, restRequestConfig);
37
+ ): Promise<CallQueueList> {
38
+ const r = await this.rc.get<CallQueueList>(this.path(false), queryParams, restRequestConfig);
38
39
  return r.data;
39
40
  }
40
41
 
@@ -64,13 +65,13 @@ class Index {
64
65
  * User Permission: EditUserInfo
65
66
  */
66
67
  public async put(
67
- callQueueDetails: CallQueueDetails,
68
+ callQueueDetailsForUpdate: CallQueueDetailsForUpdate,
68
69
  restRequestConfig?: RestRequestConfig,
69
70
  ): Promise<CallQueueDetails> {
70
71
  if (this.groupId === null) {
71
72
  throw new Error('groupId must be specified.');
72
73
  }
73
- const r = await this.rc.put<CallQueueDetails>(this.path(), callQueueDetails, undefined, restRequestConfig);
74
+ const r = await this.rc.put<CallQueueDetails>(this.path(), callQueueDetailsForUpdate, undefined, restRequestConfig);
74
75
  return r.data;
75
76
  }
76
77
 
@@ -1,5 +1,6 @@
1
1
  import Search from './Search';
2
2
  import type ContactResource from '../../../../../definitions/ContactResource';
3
+ import type ReadDirectoryEntryParameters from '../../../../../definitions/ReadDirectoryEntryParameters';
3
4
  import type DirectoryResource from '../../../../../definitions/DirectoryResource';
4
5
  import type ListDirectoryEntriesParameters from '../../../../../definitions/ListDirectoryEntriesParameters';
5
6
  import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
@@ -42,11 +43,14 @@ class Index {
42
43
  * Rate Limit Group: Medium
43
44
  * App Permission: ReadAccounts
44
45
  */
45
- public async get(restRequestConfig?: RestRequestConfig): Promise<ContactResource> {
46
+ public async get(
47
+ queryParams?: ReadDirectoryEntryParameters,
48
+ restRequestConfig?: RestRequestConfig,
49
+ ): Promise<ContactResource> {
46
50
  if (this.entryId === null) {
47
51
  throw new Error('entryId must be specified.');
48
52
  }
49
- const r = await this.rc.get<ContactResource>(this.path(), undefined, restRequestConfig);
53
+ const r = await this.rc.get<ContactResource>(this.path(), queryParams, restRequestConfig);
50
54
  return r.data;
51
55
  }
52
56
 
@@ -1,5 +1,5 @@
1
1
  import type UpdateAnsweringRuleRequest from '../../../../../definitions/UpdateAnsweringRuleRequest';
2
- import type AnsweringRuleInfo from '../../../../../definitions/AnsweringRuleInfo';
2
+ import type CallHandlingRuleInfo from '../../../../../definitions/CallHandlingRuleInfo';
3
3
  import type ReadAnsweringRuleParameters from '../../../../../definitions/ReadAnsweringRuleParameters';
4
4
  import type CustomAnsweringRuleInfo from '../../../../../definitions/CustomAnsweringRuleInfo';
5
5
  import type CreateAnsweringRuleRequest from '../../../../../definitions/CreateAnsweringRuleRequest';
@@ -71,11 +71,11 @@ class Index {
71
71
  public async get(
72
72
  queryParams?: ReadAnsweringRuleParameters,
73
73
  restRequestConfig?: RestRequestConfig,
74
- ): Promise<AnsweringRuleInfo> {
74
+ ): Promise<CallHandlingRuleInfo> {
75
75
  if (this.ruleId === null) {
76
76
  throw new Error('ruleId must be specified.');
77
77
  }
78
- const r = await this.rc.get<AnsweringRuleInfo>(this.path(), queryParams, restRequestConfig);
78
+ const r = await this.rc.get<CallHandlingRuleInfo>(this.path(), queryParams, restRequestConfig);
79
79
  return r.data;
80
80
  }
81
81
 
@@ -90,11 +90,11 @@ class Index {
90
90
  public async put(
91
91
  updateAnsweringRuleRequest: UpdateAnsweringRuleRequest,
92
92
  restRequestConfig?: RestRequestConfig,
93
- ): Promise<AnsweringRuleInfo> {
93
+ ): Promise<CallHandlingRuleInfo> {
94
94
  if (this.ruleId === null) {
95
95
  throw new Error('ruleId must be specified.');
96
96
  }
97
- const r = await this.rc.put<AnsweringRuleInfo>(
97
+ const r = await this.rc.put<CallHandlingRuleInfo>(
98
98
  this.path(),
99
99
  updateAnsweringRuleRequest,
100
100
  undefined,
@@ -14,6 +14,9 @@ class Index {
14
14
  }
15
15
  /**
16
16
  * Returns media content of an IVR prompt by ID.
17
+ *
18
+ * **This API must be called via media API entry point, e.g. https://media.ringcentral.com**
19
+ *
17
20
  * HTTP Method: get
18
21
  * Endpoint: /restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}/content
19
22
  * Rate Limit Group: Heavy
@@ -0,0 +1,28 @@
1
+ import type CostCenterList from '../../../../../definitions/CostCenterList';
2
+ import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
3
+
4
+ class Index {
5
+ public rc: RingCentralInterface;
6
+ public _parent: ParentInterface;
7
+
8
+ public constructor(_parent: ParentInterface) {
9
+ this._parent = _parent;
10
+ this.rc = _parent.rc;
11
+ }
12
+ public path(): string {
13
+ return `${this._parent.path()}/cost-centers`;
14
+ }
15
+ /**
16
+ * Returns the list of cost centers of the account specified in path.
17
+ * HTTP Method: get
18
+ * Endpoint: /restapi/v2/accounts/{accountId}/cost-centers
19
+ * Rate Limit Group: Light
20
+ * App Permission: ReadAccounts
21
+ * User Permission: CostCenterManagement
22
+ */
23
+ public async get(restRequestConfig?: RestRequestConfig): Promise<CostCenterList> {
24
+ const r = await this.rc.get<CostCenterList>(this.path(), undefined, restRequestConfig);
25
+ return r.data;
26
+ }
27
+ }
28
+ export default Index;
@@ -0,0 +1,67 @@
1
+ import type CallFlipNumberListResource from '../../../../../../definitions/CallFlipNumberListResource';
2
+ import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
3
+
4
+ class Index {
5
+ public rc: RingCentralInterface;
6
+ public _parent: ParentInterface;
7
+
8
+ public constructor(_parent: ParentInterface) {
9
+ this._parent = _parent;
10
+ this.rc = _parent.rc;
11
+ }
12
+ public path(): string {
13
+ return `${this._parent.path()}/call-flip-numbers`;
14
+ }
15
+ /**
16
+ * Returns call flip settings. Call flip destination is an extension level setting.
17
+ * The following numbers can be used for call flip:
18
+ *
19
+ * * User's DL numbers (added/removed automatically by the System)
20
+ * * PSTN numbers in E.164 format (added/removed manually by User)
21
+ *
22
+ * Call flip list is generally limited up to 10 numbers.
23
+ *
24
+ * **Please note:** This API is only working with the new Communication Handling flow.
25
+ * To ensure that please check if the 'NewCallHandlingAndForwarding' feature is supported.
26
+ *
27
+ * HTTP Method: get
28
+ * Endpoint: /restapi/v2/accounts/{accountId}/extensions/{extensionId}/call-flip-numbers
29
+ * Rate Limit Group: Light
30
+ * App Permission: ReadAccounts
31
+ */
32
+ public async get(restRequestConfig?: RestRequestConfig): Promise<CallFlipNumberListResource> {
33
+ const r = await this.rc.get<CallFlipNumberListResource>(this.path(), undefined, restRequestConfig);
34
+ return r.data;
35
+ }
36
+
37
+ /**
38
+ * Updates call flip settings. Call flip destination is an extension level setting.
39
+ * The following numbers can be used for call flip:
40
+ *
41
+ * * User's DL numbers (added/removed automatically by the System)
42
+ * * PSTN numbers in E.164 format (added/removed manually by User)
43
+ *
44
+ * Call flip list is generally limited up to 10 numbers.
45
+ *
46
+ * **Please note:** This API is only working with the new Communication Handling flow.
47
+ * To ensure that please check if the 'NewCallHandlingAndForwarding' feature is supported.
48
+ *
49
+ * HTTP Method: put
50
+ * Endpoint: /restapi/v2/accounts/{accountId}/extensions/{extensionId}/call-flip-numbers
51
+ * Rate Limit Group: Medium
52
+ * App Permission: EditExtensions
53
+ */
54
+ public async put(
55
+ callFlipNumberListResource: CallFlipNumberListResource,
56
+ restRequestConfig?: RestRequestConfig,
57
+ ): Promise<CallFlipNumberListResource> {
58
+ const r = await this.rc.put<CallFlipNumberListResource>(
59
+ this.path(),
60
+ callFlipNumberListResource,
61
+ undefined,
62
+ restRequestConfig,
63
+ );
64
+ return r.data;
65
+ }
66
+ }
67
+ export default Index;
@@ -1,3 +1,4 @@
1
+ import CallFlipNumbers from './CallFlipNumbers';
1
2
  import Devices from './Devices';
2
3
  import type BulkDeleteUsersResponse from '../../../../../definitions/BulkDeleteUsersResponse';
3
4
  import type BulkDeleteUsersRequest from '../../../../../definitions/BulkDeleteUsersRequest';
@@ -42,5 +43,9 @@ class Index {
42
43
  public devices(deviceId: string | null = null): Devices {
43
44
  return new Devices(this, deviceId);
44
45
  }
46
+
47
+ public callFlipNumbers(): CallFlipNumbers {
48
+ return new CallFlipNumbers(this);
49
+ }
45
50
  }
46
51
  export default Index;
@@ -43,7 +43,7 @@ class Index {
43
43
  }
44
44
 
45
45
  /**
46
- * Returns the result of asynchronous operation which adds phone numbers to the account Inventory.
46
+ * Returns the result of asynchronous operation which adds phone numbers to the account inventory.
47
47
  *
48
48
  * HTTP Method: get
49
49
  * Endpoint: /restapi/v2/accounts/{accountId}/phone-numbers/bulk-add/{taskId}
@@ -14,7 +14,7 @@ class Index {
14
14
  return `${this._parent.path()}/replace`;
15
15
  }
16
16
  /**
17
- * Replaces (swaps) phone numbers from Inventory with the main, company, direct or company fax numbers.
17
+ * Replaces (swaps) phone numbers from inventory with the main, company, direct or company fax numbers.
18
18
  * This method is used to replace temporary numbers when the porting process is complete.
19
19
  *
20
20
  * HTTP Method: post
@@ -44,10 +44,10 @@ class Index {
44
44
  }
45
45
 
46
46
  /**
47
- * This method can only delete numbers that meet one of the following requirements:
48
- * - numbers that have `"usageType": "Inventory"`
49
- * - `"Forwarded"` numbers
50
- * - `"Forwarded Company"` numbers
47
+ * This method can only delete numbers that of the following usage types:
48
+ * - `Inventory`,
49
+ * - `ForwardedNumber`,
50
+ * - `ForwardedCompanyNumber`.
51
51
  *
52
52
  * In other words, this method will not delete numbers which are in use on the account - extension direct numbers,
53
53
  * main number, etc. It is possible to indicate phone numbers to be deleted using their IDs or exact string values
@@ -76,8 +76,8 @@ class Index {
76
76
  * Assigns or reassigns a phone number as a company or extension number.
77
77
  *
78
78
  * Assign scenarios supported:
79
- * - from Inventory to a company number;
80
- * - from Inventory to an extension number.
79
+ * - from inventory to a company number;
80
+ * - from inventory to an extension number.
81
81
  *
82
82
  * Reassign scenarios supported:
83
83
  * - from an extension to another extension;
@@ -3,6 +3,7 @@ import SendWelcomeEmail from './SendWelcomeEmail';
3
3
  import BatchProvisioning from './BatchProvisioning';
4
4
  import DeviceInventory from './DeviceInventory';
5
5
  import PhoneNumbers from './PhoneNumbers';
6
+ import CostCenters from './CostCenters';
6
7
  import Extensions from './Extensions';
7
8
  import Devices from './Devices';
8
9
  import type AccountInfo from '../../../../definitions/AccountInfo';
@@ -48,6 +49,10 @@ class Index {
48
49
  return new Extensions(this);
49
50
  }
50
51
 
52
+ public costCenters(): CostCenters {
53
+ return new CostCenters(this);
54
+ }
55
+
51
56
  public phoneNumbers(phoneNumberId: string | null = null): PhoneNumbers {
52
57
  return new PhoneNumbers(this, phoneNumberId);
53
58
  }