@rc-ex/core 1.3.15 → 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 (603) hide show
  1. package/lib/FormData.d.ts +0 -1
  2. package/lib/Utils.d.ts +0 -1
  3. package/lib/definitions/AccountInfo.d.ts +1 -6
  4. package/lib/definitions/AccountPhoneNumberInfo.d.ts +8 -2
  5. package/lib/definitions/AccountRegionalSettings.d.ts +2 -1
  6. package/lib/definitions/AccountServiceInfo.d.ts +2 -2
  7. package/lib/definitions/AccountServiceInfoRequest.d.ts +2 -2
  8. package/lib/definitions/AccountStatusInfo.d.ts +3 -1
  9. package/lib/definitions/ActivePermissionResource.d.ts +1 -1
  10. package/lib/definitions/AddPhoneNumberRequestItem.d.ts +4 -0
  11. package/lib/definitions/AddPhoneNumbersResponseItem.d.ts +4 -0
  12. package/lib/definitions/AssignPhoneNumberRequest.d.ts +6 -2
  13. package/lib/definitions/AssignedCountryInfo.d.ts +3 -1
  14. package/lib/definitions/Attachment.d.ts +0 -2
  15. package/lib/definitions/AuthCodeTokenRequest.d.ts +31 -0
  16. package/lib/definitions/{CreateContentRequest.js → AuthCodeTokenRequest.js} +1 -1
  17. package/lib/definitions/AuthCodeTokenRequest.js.map +1 -0
  18. package/lib/definitions/AuthorizeParameters.d.ts +92 -0
  19. package/lib/definitions/AuthorizeParameters.js +3 -0
  20. package/lib/definitions/AuthorizeParameters.js.map +1 -0
  21. package/lib/definitions/AuthorizeRequest.d.ts +39 -42
  22. package/lib/definitions/BaseCallLogRecord.d.ts +0 -1
  23. package/lib/definitions/BaseTokenRequest.d.ts +41 -0
  24. package/lib/definitions/{GreetingResource.js → BaseTokenRequest.js} +1 -1
  25. package/lib/definitions/BaseTokenRequest.js.map +1 -0
  26. package/lib/definitions/BatchListResponse.d.ts +2 -2
  27. package/lib/definitions/{PackageInfo.d.ts → BillingPackageInfo.d.ts} +2 -2
  28. package/lib/definitions/BillingPackageInfo.js +3 -0
  29. package/lib/definitions/BillingPackageInfo.js.map +1 -0
  30. package/lib/definitions/CallFlipNumberListResource.d.ts +8 -0
  31. package/lib/definitions/CallFlipNumberListResource.js +3 -0
  32. package/lib/definitions/CallFlipNumberListResource.js.map +1 -0
  33. package/lib/definitions/CallFlipNumberResource.d.ts +28 -0
  34. package/lib/definitions/CallFlipNumberResource.js +3 -0
  35. package/lib/definitions/CallFlipNumberResource.js.map +1 -0
  36. package/lib/definitions/{AnsweringRuleInfo.d.ts → CallHandlingRuleInfo.d.ts} +2 -2
  37. package/lib/definitions/CallHandlingRuleInfo.js +3 -0
  38. package/lib/definitions/CallHandlingRuleInfo.js.map +1 -0
  39. package/lib/definitions/CallLogRecord.d.ts +0 -1
  40. package/lib/definitions/CallLogRecordLegInfo.d.ts +0 -1
  41. package/lib/definitions/CallParty.d.ts +5 -0
  42. package/lib/definitions/CallQueueDetails.d.ts +5 -1
  43. package/lib/definitions/CallQueueDetailsForUpdate.d.ts +36 -0
  44. package/lib/definitions/CallQueueDetailsForUpdate.js +3 -0
  45. package/lib/definitions/CallQueueDetailsForUpdate.js.map +1 -0
  46. package/lib/definitions/CallQueueInfo.d.ts +5 -1
  47. package/lib/definitions/{CallQueues.d.ts → CallQueueList.d.ts} +2 -2
  48. package/lib/definitions/{PagingResource.js → CallQueueList.js} +1 -1
  49. package/lib/definitions/CallQueueList.js.map +1 -0
  50. package/lib/definitions/CallQueueMember.d.ts +2 -2
  51. package/lib/definitions/{GreetingResource.d.ts → CallRecordingGreetingResource.d.ts} +2 -2
  52. package/lib/definitions/CallRecordingGreetingResource.js +3 -0
  53. package/lib/definitions/CallRecordingGreetingResource.js.map +1 -0
  54. package/lib/definitions/CallRecordingSettingsResource.d.ts +2 -2
  55. package/lib/definitions/ClientAuthJwtModel.d.ts +15 -0
  56. package/lib/definitions/ClientAuthJwtModel.js +3 -0
  57. package/lib/definitions/ClientAuthJwtModel.js.map +1 -0
  58. package/lib/definitions/ClientCredentialsBase.d.ts +13 -0
  59. package/lib/definitions/ClientCredentialsBase.js +3 -0
  60. package/lib/definitions/ClientCredentialsBase.js.map +1 -0
  61. package/lib/definitions/ClientCredentialsByAccount.d.ts +18 -0
  62. package/lib/definitions/ClientCredentialsByAccount.js +3 -0
  63. package/lib/definitions/ClientCredentialsByAccount.js.map +1 -0
  64. package/lib/definitions/ClientCredentialsByBrand.d.ts +18 -0
  65. package/lib/definitions/ClientCredentialsByBrand.js +3 -0
  66. package/lib/definitions/ClientCredentialsByBrand.js.map +1 -0
  67. package/lib/definitions/ClientCredentialsByPartnerAccount.d.ts +23 -0
  68. package/lib/definitions/ClientCredentialsByPartnerAccount.js +3 -0
  69. package/lib/definitions/ClientCredentialsByPartnerAccount.js.map +1 -0
  70. package/lib/definitions/ClientCredentialsTokenRequest.d.ts +28 -0
  71. package/lib/definitions/ClientCredentialsTokenRequest.js +3 -0
  72. package/lib/definitions/ClientCredentialsTokenRequest.js.map +1 -0
  73. package/lib/definitions/CommonEmergencyLocationAddressInfo.d.ts +2 -1
  74. package/lib/definitions/CommonEmergencyLocationAddressInfoAu.d.ts +2 -1
  75. package/lib/definitions/CommonEmergencyLocationAddressInfoDefault.d.ts +2 -1
  76. package/lib/definitions/CommonEmergencyLocationAddressInfoFr.d.ts +2 -1
  77. package/lib/definitions/CompanyAnsweringRuleRequest.d.ts +2 -1
  78. package/lib/definitions/CompanyPhoneNumberInfo.d.ts +10 -6
  79. package/lib/definitions/ContentBodyFormatted.d.ts +1 -1
  80. package/lib/definitions/ContentContextData.d.ts +1 -2
  81. package/lib/definitions/ContentModel.d.ts +66 -71
  82. package/lib/definitions/CostCenterBase.d.ts +19 -0
  83. package/lib/definitions/CostCenterBase.js +3 -0
  84. package/lib/definitions/CostCenterBase.js.map +1 -0
  85. package/lib/definitions/CostCenterItem.d.ts +30 -0
  86. package/lib/definitions/CostCenterItem.js +3 -0
  87. package/lib/definitions/CostCenterItem.js.map +1 -0
  88. package/lib/definitions/CostCenterList.d.ts +8 -0
  89. package/lib/definitions/CostCenterList.js +3 -0
  90. package/lib/definitions/CostCenterList.js.map +1 -0
  91. package/lib/definitions/CountryInfoDictionaryModel.d.ts +5 -5
  92. package/lib/definitions/CountryInfoShortModel.d.ts +5 -6
  93. package/lib/definitions/CreateFaxMessageRequest.d.ts +1 -1
  94. package/lib/definitions/CreateSiteRequest.d.ts +7 -0
  95. package/lib/definitions/CreateSocialMessagingContentRequest.d.ts +110 -0
  96. package/lib/definitions/CreateSocialMessagingContentRequest.js +3 -0
  97. package/lib/definitions/CreateSocialMessagingContentRequest.js.map +1 -0
  98. package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +2 -1
  99. package/lib/definitions/CustomCompanyGreetingInfo.d.ts +1 -1
  100. package/lib/definitions/DeletePhoneNumbersRequestItem.d.ts +1 -1
  101. package/lib/definitions/DeviceCodeTokenRequest.d.ts +19 -0
  102. package/lib/definitions/DeviceCodeTokenRequest.js +3 -0
  103. package/lib/definitions/DeviceCodeTokenRequest.js.map +1 -0
  104. package/lib/definitions/DeviceEmergencyInfo.d.ts +2 -2
  105. package/lib/definitions/DeviceEmergencyServiceAddressResourceAu.d.ts +2 -1
  106. package/lib/definitions/DeviceEmergencyServiceAddressResourceDefault.d.ts +2 -1
  107. package/lib/definitions/DeviceEmergencyServiceAddressResourceFr.d.ts +2 -1
  108. package/lib/definitions/DeviceResource.d.ts +2 -1
  109. package/lib/definitions/EmailRecipientInfo.d.ts +2 -2
  110. package/lib/definitions/EmergencyAddressInfo.d.ts +2 -1
  111. package/lib/definitions/EmergencyLocationRequestResource.d.ts +2 -1
  112. package/lib/definitions/EmergencyLocationResponseResource.d.ts +2 -1
  113. package/lib/definitions/EmergencyServiceAddressResource.d.ts +2 -1
  114. package/lib/definitions/EventRecurrenceInfo.d.ts +25 -0
  115. package/lib/definitions/EventRecurrenceInfo.js +3 -0
  116. package/lib/definitions/EventRecurrenceInfo.js.map +1 -0
  117. package/lib/definitions/ExtensionBulkUpdateInfo.d.ts +2 -1
  118. package/lib/definitions/ExtensionBulkUpdateTaskResult.d.ts +3 -3
  119. package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.d.ts +7 -0
  120. package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.js +3 -0
  121. package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.js.map +1 -0
  122. package/lib/definitions/ExtensionCreationRequest.d.ts +2 -2
  123. package/lib/definitions/ExtensionCreationResponse.d.ts +2 -4
  124. package/lib/definitions/ExtensionRegionalSettingRequest.d.ts +1 -1
  125. package/lib/definitions/ExtensionStatusInfo.d.ts +2 -9
  126. package/lib/definitions/ExtensionUpdateRequest.d.ts +2 -1
  127. package/lib/definitions/FaxResponseTo.d.ts +11 -0
  128. package/lib/definitions/GetAccountInfoResponse.d.ts +2 -2
  129. package/lib/definitions/GetConferencingInfoResponse.d.ts +5 -0
  130. package/lib/definitions/GetCountryInfoNumberParser.d.ts +5 -4
  131. package/lib/definitions/GetExtensionInfoResponse.d.ts +11 -3
  132. package/lib/definitions/GetExtensionListInfoResponse.d.ts +8 -4
  133. package/lib/definitions/GetMessageInfoResponse.d.ts +0 -4
  134. package/lib/definitions/GetSMSMessageInfoResponse.d.ts +0 -4
  135. package/lib/definitions/GetTokenRequest.d.ts +90 -45
  136. package/lib/definitions/GuestTokenRequest.d.ts +27 -0
  137. package/lib/definitions/{AnsweringRuleInfo.js → GuestTokenRequest.js} +1 -1
  138. package/lib/definitions/GuestTokenRequest.js.map +1 -0
  139. package/lib/definitions/IdentityExtraValues.d.ts +1 -1
  140. package/lib/definitions/IdentityModel.d.ts +33 -65
  141. package/lib/definitions/IvrPinTokenRequest.d.ts +17 -0
  142. package/lib/definitions/IvrPinTokenRequest.js +3 -0
  143. package/lib/definitions/IvrPinTokenRequest.js.map +1 -0
  144. package/lib/definitions/JobStatusResponse.d.ts +7 -0
  145. package/lib/definitions/JobStatusResponseResponse.d.ts +39 -0
  146. package/lib/definitions/JobStatusResponseResponse.js +3 -0
  147. package/lib/definitions/JobStatusResponseResponse.js.map +1 -0
  148. package/lib/definitions/JwtTokenRequest.d.ts +20 -0
  149. package/lib/definitions/JwtTokenRequest.js +3 -0
  150. package/lib/definitions/JwtTokenRequest.js.map +1 -0
  151. package/lib/definitions/LanguageInfo.d.ts +2 -1
  152. package/lib/definitions/ListAccountPhoneNumbersParameters.d.ts +4 -2
  153. package/lib/definitions/ListAccountPhoneNumbersV2Parameters.d.ts +3 -1
  154. package/lib/definitions/ListCallMonitoringGroupsParameters.d.ts +4 -0
  155. package/lib/definitions/ListCompanyMessageTemplatesParameters.d.ts +11 -0
  156. package/lib/definitions/ListCompanyMessageTemplatesParameters.js +3 -0
  157. package/lib/definitions/ListCompanyMessageTemplatesParameters.js.map +1 -0
  158. package/lib/definitions/ListDirectoryEntriesParameters.d.ts +5 -0
  159. package/lib/definitions/ListEmergencyLocationsParameters.d.ts +1 -0
  160. package/lib/definitions/ListExtensionPhoneNumbersParameters.d.ts +4 -2
  161. package/lib/definitions/ListExtensionsParameters.d.ts +2 -2
  162. package/lib/definitions/ListMeetingRecordingsResponse.d.ts +4 -4
  163. package/lib/definitions/{SocMsgListContentsParameters.d.ts → ListSocialMessagingContentsParameters.d.ts} +25 -17
  164. package/lib/definitions/ListSocialMessagingContentsParameters.js +3 -0
  165. package/lib/definitions/ListSocialMessagingContentsParameters.js.map +1 -0
  166. package/lib/definitions/{SocMsgListIdentitiesParameters.d.ts → ListSocialMessagingIdentitiesParameters.d.ts} +14 -10
  167. package/lib/definitions/ListSocialMessagingIdentitiesParameters.js +3 -0
  168. package/lib/definitions/ListSocialMessagingIdentitiesParameters.js.map +1 -0
  169. package/lib/definitions/ListUserMessageTemplatesParameters.d.ts +15 -0
  170. package/lib/definitions/ListUserMessageTemplatesParameters.js +3 -0
  171. package/lib/definitions/ListUserMessageTemplatesParameters.js.map +1 -0
  172. package/lib/definitions/LocationUpdatesEmergencyAddressInfoRequest.d.ts +2 -1
  173. package/lib/definitions/MeetingsCountryResource.d.ts +6 -0
  174. package/lib/definitions/MeetingsResource.d.ts +4 -4
  175. package/lib/definitions/MessageListResponse.d.ts +2 -2
  176. package/lib/definitions/MessageStatusCounts.d.ts +2 -1
  177. package/lib/definitions/MessageStoreCallerInfoResponseTo.d.ts +4 -0
  178. package/lib/definitions/MessageTemplateInfo.d.ts +11 -0
  179. package/lib/definitions/MessageTemplateInfo.js +3 -0
  180. package/lib/definitions/MessageTemplateInfo.js.map +1 -0
  181. package/lib/definitions/MessageTemplateRequest.d.ts +17 -0
  182. package/lib/definitions/MessageTemplateRequest.js +3 -0
  183. package/lib/definitions/MessageTemplateRequest.js.map +1 -0
  184. package/lib/definitions/MessageTemplateResponse.d.ts +23 -0
  185. package/lib/definitions/MessageTemplateResponse.js +3 -0
  186. package/lib/definitions/MessageTemplateResponse.js.map +1 -0
  187. package/lib/definitions/MessageTemplateUpdateRequest.d.ts +16 -0
  188. package/lib/definitions/MessageTemplateUpdateRequest.js +3 -0
  189. package/lib/definitions/MessageTemplateUpdateRequest.js.map +1 -0
  190. package/lib/definitions/MessageTemplatesListResponse.d.ts +8 -0
  191. package/lib/definitions/MessageTemplatesListResponse.js +3 -0
  192. package/lib/definitions/MessageTemplatesListResponse.js.map +1 -0
  193. package/lib/definitions/MetaData.d.ts +12 -0
  194. package/lib/definitions/{CallQueues.js → MetaData.js} +1 -1
  195. package/lib/definitions/MetaData.js.map +1 -0
  196. package/lib/definitions/MetaDataValues.d.ts +11 -0
  197. package/lib/definitions/MetaDataValues.js +3 -0
  198. package/lib/definitions/MetaDataValues.js.map +1 -0
  199. package/lib/definitions/MissedCallExtensionInfoExternalNumber.d.ts +1 -1
  200. package/lib/definitions/OptOutListResponse.d.ts +2 -2
  201. package/lib/definitions/OtpTokenRequest.d.ts +19 -0
  202. package/lib/definitions/OtpTokenRequest.js +3 -0
  203. package/lib/definitions/OtpTokenRequest.js.map +1 -0
  204. package/lib/definitions/PhoneNumberInfoIntId.d.ts +2 -2
  205. package/lib/definitions/ReadDirectoryEntryParameters.d.ts +11 -0
  206. package/lib/definitions/ReadDirectoryEntryParameters.js +3 -0
  207. package/lib/definitions/ReadDirectoryEntryParameters.js.map +1 -0
  208. package/lib/definitions/ReadGlipPostsNewParameters.d.ts +1 -1
  209. package/lib/definitions/RefreshTokenRequest.d.ts +18 -0
  210. package/lib/definitions/RefreshTokenRequest.js +3 -0
  211. package/lib/definitions/RefreshTokenRequest.js.map +1 -0
  212. package/lib/definitions/RegSessionModel.d.ts +6 -0
  213. package/lib/definitions/RegSessionModelSettings.d.ts +18 -1
  214. package/lib/definitions/RegionalSettings.d.ts +2 -1
  215. package/lib/definitions/RegistrantBaseModel.d.ts +4 -0
  216. package/lib/definitions/RegistrantBaseModelWithQuestionnaire.d.ts +4 -0
  217. package/lib/definitions/RegistrantMinimalModel.d.ts +4 -0
  218. package/lib/definitions/RegistrantModelResponsePostWithQuestionnaire.d.ts +4 -0
  219. package/lib/definitions/RegistrantModelWithQuestionnaire.d.ts +4 -0
  220. package/lib/definitions/RevokeTokenRequest.d.ts +7 -3
  221. package/lib/definitions/RoleResource.d.ts +1 -1
  222. package/lib/definitions/RolesCountryResource.d.ts +6 -0
  223. package/lib/definitions/RolesRegionalSettingsResource.d.ts +2 -0
  224. package/lib/definitions/RopcTokenRequest.d.ts +38 -0
  225. package/lib/definitions/RopcTokenRequest.js +3 -0
  226. package/lib/definitions/RopcTokenRequest.js.map +1 -0
  227. package/lib/definitions/SearchDirectoryEntriesParameters.d.ts +5 -0
  228. package/lib/definitions/ServiceInfo.d.ts +1 -1
  229. package/lib/definitions/ServiceInfoContractedCountryId.d.ts +7 -0
  230. package/lib/definitions/ServiceInfoContractedCountryId.js +3 -0
  231. package/lib/definitions/ServiceInfoContractedCountryId.js.map +1 -0
  232. package/lib/definitions/ServiceInfoPlan.d.ts +17 -0
  233. package/lib/definitions/ServiceInfoPlan.js +3 -0
  234. package/lib/definitions/ServiceInfoPlan.js.map +1 -0
  235. package/lib/definitions/ServiceInfoUBrand.d.ts +11 -0
  236. package/lib/definitions/{ContentAttachment.js → ServiceInfoUBrand.js} +1 -1
  237. package/lib/definitions/ServiceInfoUBrand.js.map +1 -0
  238. package/lib/definitions/ServiceInfoV2.d.ts +15 -0
  239. package/lib/definitions/SipRegistrationDeviceEmergencyInfoAddress.d.ts +2 -1
  240. package/lib/definitions/Site.d.ts +16 -0
  241. package/lib/definitions/{PackageInfo.js → Site.js} +1 -1
  242. package/lib/definitions/Site.js.map +1 -0
  243. package/lib/definitions/SiteInfo.d.ts +4 -0
  244. package/lib/definitions/SiteUpdateRequest.d.ts +7 -0
  245. package/lib/definitions/SmsRequestCountryInfo.d.ts +2 -1
  246. package/lib/definitions/SocMsgContentAttachment.d.ts +77 -0
  247. package/lib/definitions/SocMsgContentAttachment.js +3 -0
  248. package/lib/definitions/SocMsgContentAttachment.js.map +1 -0
  249. package/lib/definitions/TMCreateEventRequest.d.ts +2 -19
  250. package/lib/definitions/TMCreateTaskRequest.d.ts +4 -4
  251. package/lib/definitions/TMEventInfo.d.ts +2 -17
  252. package/lib/definitions/TMMessageAttachmentInfo.d.ts +2 -17
  253. package/lib/definitions/TMTaskInfo.d.ts +2 -3
  254. package/lib/definitions/TMUpdateTaskRequest.d.ts +2 -2
  255. package/lib/definitions/{TMTaskInfoRecurrence.d.ts → TaskRecurrenceInfo.d.ts} +11 -5
  256. package/lib/definitions/TaskRecurrenceInfo.js +3 -0
  257. package/lib/definitions/TaskRecurrenceInfo.js.map +1 -0
  258. package/lib/definitions/TaxLocation.d.ts +38 -0
  259. package/lib/definitions/{SiteResource.js → TaxLocation.js} +1 -1
  260. package/lib/definitions/TaxLocation.js.map +1 -0
  261. package/lib/definitions/TokenInfo.d.ts +22 -16
  262. package/lib/definitions/UnconditionalForwardingInfo.d.ts +2 -2
  263. package/lib/definitions/UserAnsweringRuleList.d.ts +2 -2
  264. package/lib/definitions/UserPhoneNumberInfo.d.ts +4 -4
  265. package/lib/definitions/UserTransitionInfo.d.ts +2 -2
  266. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.d.ts +17 -19
  267. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js +15 -17
  268. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js.map +1 -1
  269. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +8 -10
  270. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +6 -8
  271. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -1
  272. package/lib/paths/Restapi/Account/CallQueues/index.d.ts +4 -3
  273. package/lib/paths/Restapi/Account/CallQueues/index.js +2 -2
  274. package/lib/paths/Restapi/Account/CallQueues/index.js.map +1 -1
  275. package/lib/paths/Restapi/Account/Directory/Entries/index.d.ts +2 -1
  276. package/lib/paths/Restapi/Account/Directory/Entries/index.js +2 -2
  277. package/lib/paths/Restapi/Account/Directory/Entries/index.js.map +1 -1
  278. package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.d.ts +3 -3
  279. package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.js.map +1 -1
  280. package/lib/paths/Restapi/Account/Extension/Greeting/Content/index.d.ts +0 -1
  281. package/lib/paths/Restapi/Account/Extension/MessageStore/Content/index.d.ts +0 -1
  282. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.d.ts +57 -0
  283. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +84 -0
  284. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js.map +1 -0
  285. package/lib/paths/Restapi/Account/Extension/ProfileImage/index.d.ts +0 -1
  286. package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -0
  287. package/lib/paths/Restapi/Account/Extension/index.js +4 -0
  288. package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
  289. package/lib/paths/Restapi/Account/Greeting/Content/index.d.ts +0 -1
  290. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.d.ts +3 -1
  291. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js +3 -0
  292. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js.map +1 -1
  293. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.d.ts +54 -0
  294. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js +81 -0
  295. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js.map +1 -0
  296. package/lib/paths/Restapi/Account/Recording/Content/index.d.ts +0 -1
  297. package/lib/paths/Restapi/Account/ServiceInfo/index.d.ts +1 -1
  298. package/lib/paths/Restapi/Account/ServiceInfo/index.js +1 -1
  299. package/lib/paths/Restapi/Account/index.d.ts +2 -0
  300. package/lib/paths/Restapi/Account/index.js +4 -0
  301. package/lib/paths/Restapi/Account/index.js.map +1 -1
  302. package/lib/paths/Restapi/Oauth/Authorize/index.d.ts +18 -3
  303. package/lib/paths/Restapi/Oauth/Authorize/index.js +18 -4
  304. package/lib/paths/Restapi/Oauth/Authorize/index.js.map +1 -1
  305. package/lib/paths/Restapi/Oauth/Revoke/index.d.ts +6 -4
  306. package/lib/paths/Restapi/Oauth/Revoke/index.js +6 -4
  307. package/lib/paths/Restapi/Oauth/Revoke/index.js.map +1 -1
  308. package/lib/paths/Restapi/Oauth/Token/index.d.ts +6 -3
  309. package/lib/paths/Restapi/Oauth/Token/index.js +6 -3
  310. package/lib/paths/Restapi/Oauth/Token/index.js.map +1 -1
  311. package/lib/paths/Restapi/Oauth/index.d.ts +0 -4
  312. package/lib/paths/Restapi/Oauth/index.js +0 -8
  313. package/lib/paths/Restapi/Oauth/index.js.map +1 -1
  314. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.d.ts +18 -0
  315. package/lib/paths/Restapi/{Oauth/SessionInfo → V2/Accounts/CostCenters}/index.js +6 -5
  316. package/lib/paths/Restapi/V2/Accounts/CostCenters/index.js.map +1 -0
  317. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.d.ts +45 -0
  318. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +55 -0
  319. package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js.map +1 -0
  320. package/lib/paths/Restapi/V2/Accounts/Extensions/index.d.ts +2 -0
  321. package/lib/paths/Restapi/V2/Accounts/Extensions/index.js +4 -0
  322. package/lib/paths/Restapi/V2/Accounts/Extensions/index.js.map +1 -1
  323. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.d.ts +1 -1
  324. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +1 -1
  325. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.d.ts +1 -1
  326. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +1 -1
  327. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.d.ts +6 -6
  328. package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +6 -6
  329. package/lib/paths/Restapi/V2/Accounts/index.d.ts +2 -0
  330. package/lib/paths/Restapi/V2/Accounts/index.js +4 -0
  331. package/lib/paths/Restapi/V2/Accounts/index.js.map +1 -1
  332. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.d.ts +5 -1
  333. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js +5 -1
  334. package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js.map +1 -1
  335. package/lib/types.d.ts +0 -2
  336. package/package.json +5 -5
  337. package/src/definitions/AccountInfo.ts +1 -7
  338. package/src/definitions/AccountPhoneNumberInfo.ts +9 -2
  339. package/src/definitions/AccountRegionalSettings.ts +2 -1
  340. package/src/definitions/AccountServiceInfo.ts +2 -2
  341. package/src/definitions/AccountServiceInfoRequest.ts +2 -2
  342. package/src/definitions/AccountStatusInfo.ts +3 -1
  343. package/src/definitions/ActivePermissionResource.ts +1 -1
  344. package/src/definitions/AddPhoneNumberRequestItem.ts +5 -0
  345. package/src/definitions/AddPhoneNumbersResponseItem.ts +5 -0
  346. package/src/definitions/AssignPhoneNumberRequest.ts +7 -2
  347. package/src/definitions/AssignedCountryInfo.ts +3 -1
  348. package/src/definitions/AuthCodeTokenRequest.ts +35 -0
  349. package/src/definitions/AuthorizeParameters.ts +107 -0
  350. package/src/definitions/AuthorizeRequest.ts +39 -44
  351. package/src/definitions/BaseCallLogRecord.ts +0 -1
  352. package/src/definitions/BaseTokenRequest.ts +59 -0
  353. package/src/definitions/BatchListResponse.ts +2 -2
  354. package/src/definitions/{PackageInfo.ts → BillingPackageInfo.ts} +2 -2
  355. package/src/definitions/CallFlipNumberListResource.ts +10 -0
  356. package/src/definitions/CallFlipNumberResource.ts +33 -0
  357. package/src/definitions/{AnsweringRuleInfo.ts → CallHandlingRuleInfo.ts} +2 -2
  358. package/src/definitions/CallLogRecord.ts +0 -1
  359. package/src/definitions/CallLogRecordLegInfo.ts +0 -1
  360. package/src/definitions/CallParty.ts +6 -0
  361. package/src/definitions/CallQueueDetails.ts +6 -1
  362. package/src/definitions/CallQueueDetailsForUpdate.ts +45 -0
  363. package/src/definitions/CallQueueInfo.ts +7 -1
  364. package/src/definitions/{CallQueues.ts → CallQueueList.ts} +2 -2
  365. package/src/definitions/CallQueueMember.ts +2 -2
  366. package/src/definitions/{GreetingResource.ts → CallRecordingGreetingResource.ts} +2 -2
  367. package/src/definitions/CallRecordingSettingsResource.ts +2 -2
  368. package/src/definitions/ClientAuthJwtModel.ts +17 -0
  369. package/src/definitions/ClientCredentialsBase.ts +14 -0
  370. package/src/definitions/ClientCredentialsByAccount.ts +20 -0
  371. package/src/definitions/ClientCredentialsByBrand.ts +20 -0
  372. package/src/definitions/ClientCredentialsByPartnerAccount.ts +26 -0
  373. package/src/definitions/ClientCredentialsTokenRequest.ts +32 -0
  374. package/src/definitions/CommonEmergencyLocationAddressInfo.ts +2 -1
  375. package/src/definitions/CommonEmergencyLocationAddressInfoAu.ts +2 -1
  376. package/src/definitions/CommonEmergencyLocationAddressInfoDefault.ts +2 -1
  377. package/src/definitions/CommonEmergencyLocationAddressInfoFr.ts +2 -1
  378. package/src/definitions/CompanyAnsweringRuleRequest.ts +2 -1
  379. package/src/definitions/CompanyPhoneNumberInfo.ts +11 -6
  380. package/src/definitions/ContentBodyFormatted.ts +1 -1
  381. package/src/definitions/ContentContextData.ts +1 -2
  382. package/src/definitions/ContentModel.ts +68 -72
  383. package/src/definitions/CostCenterBase.ts +22 -0
  384. package/src/definitions/CostCenterItem.ts +36 -0
  385. package/src/definitions/CostCenterList.ts +10 -0
  386. package/src/definitions/CountryInfoDictionaryModel.ts +5 -5
  387. package/src/definitions/CountryInfoShortModel.ts +5 -6
  388. package/src/definitions/CreateFaxMessageRequest.ts +1 -1
  389. package/src/definitions/CreateSiteRequest.ts +9 -0
  390. package/src/definitions/CreateSocialMessagingContentRequest.ts +126 -0
  391. package/src/definitions/CreateUserEmergencyLocationRequest.ts +2 -1
  392. package/src/definitions/CustomCompanyGreetingInfo.ts +1 -1
  393. package/src/definitions/DeletePhoneNumbersRequestItem.ts +1 -1
  394. package/src/definitions/DeviceCodeTokenRequest.ts +21 -0
  395. package/src/definitions/DeviceEmergencyInfo.ts +2 -2
  396. package/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts +2 -1
  397. package/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts +2 -1
  398. package/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts +2 -1
  399. package/src/definitions/DeviceResource.ts +2 -1
  400. package/src/definitions/EmailRecipientInfo.ts +2 -2
  401. package/src/definitions/EmergencyAddressInfo.ts +2 -1
  402. package/src/definitions/EmergencyLocationRequestResource.ts +2 -1
  403. package/src/definitions/EmergencyLocationResponseResource.ts +2 -1
  404. package/src/definitions/EmergencyServiceAddressResource.ts +2 -1
  405. package/src/definitions/EventRecurrenceInfo.ts +29 -0
  406. package/src/definitions/ExtensionBulkUpdateInfo.ts +2 -1
  407. package/src/definitions/ExtensionBulkUpdateTaskResult.ts +3 -3
  408. package/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts +9 -0
  409. package/src/definitions/ExtensionCreationRequest.ts +2 -2
  410. package/src/definitions/ExtensionCreationResponse.ts +2 -3
  411. package/src/definitions/ExtensionRegionalSettingRequest.ts +1 -1
  412. package/src/definitions/ExtensionStatusInfo.ts +2 -10
  413. package/src/definitions/ExtensionUpdateRequest.ts +2 -1
  414. package/src/definitions/FaxResponseTo.ts +13 -0
  415. package/src/definitions/GetAccountInfoResponse.ts +2 -2
  416. package/src/definitions/GetConferencingInfoResponse.ts +6 -0
  417. package/src/definitions/GetCountryInfoNumberParser.ts +5 -4
  418. package/src/definitions/GetExtensionInfoResponse.ts +13 -3
  419. package/src/definitions/GetExtensionListInfoResponse.ts +9 -4
  420. package/src/definitions/GetMessageInfoResponse.ts +0 -5
  421. package/src/definitions/GetSMSMessageInfoResponse.ts +0 -5
  422. package/src/definitions/GetTokenRequest.ts +93 -46
  423. package/src/definitions/GuestTokenRequest.ts +31 -0
  424. package/src/definitions/IdentityExtraValues.ts +1 -1
  425. package/src/definitions/IdentityModel.ts +33 -65
  426. package/src/definitions/IvrPinTokenRequest.ts +19 -0
  427. package/src/definitions/JobStatusResponse.ts +10 -0
  428. package/src/definitions/JobStatusResponseResponse.ts +48 -0
  429. package/src/definitions/JwtTokenRequest.ts +22 -0
  430. package/src/definitions/LanguageInfo.ts +2 -1
  431. package/src/definitions/ListAccountPhoneNumbersParameters.ts +4 -2
  432. package/src/definitions/ListAccountPhoneNumbersV2Parameters.ts +3 -1
  433. package/src/definitions/ListCallMonitoringGroupsParameters.ts +5 -0
  434. package/src/definitions/ListCompanyMessageTemplatesParameters.ts +12 -0
  435. package/src/definitions/ListDirectoryEntriesParameters.ts +6 -0
  436. package/src/definitions/ListEmergencyLocationsParameters.ts +1 -0
  437. package/src/definitions/ListExtensionPhoneNumbersParameters.ts +4 -2
  438. package/src/definitions/ListExtensionsParameters.ts +2 -2
  439. package/src/definitions/ListMeetingRecordingsResponse.ts +4 -4
  440. package/src/definitions/ListSocialMessagingContentsParameters.ts +85 -0
  441. package/src/definitions/ListSocialMessagingIdentitiesParameters.ts +61 -0
  442. package/src/definitions/ListUserMessageTemplatesParameters.ts +17 -0
  443. package/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts +2 -1
  444. package/src/definitions/MeetingsCountryResource.ts +6 -0
  445. package/src/definitions/MeetingsResource.ts +4 -4
  446. package/src/definitions/MessageListResponse.ts +2 -2
  447. package/src/definitions/MessageStatusCounts.ts +2 -1
  448. package/src/definitions/MessageStoreCallerInfoResponseTo.ts +5 -0
  449. package/src/definitions/MessageTemplateInfo.ts +12 -0
  450. package/src/definitions/MessageTemplateRequest.ts +21 -0
  451. package/src/definitions/MessageTemplateResponse.ts +29 -0
  452. package/src/definitions/MessageTemplateUpdateRequest.ts +20 -0
  453. package/src/definitions/MessageTemplatesListResponse.ts +10 -0
  454. package/src/definitions/MetaData.ts +14 -0
  455. package/src/definitions/MetaDataValues.ts +13 -0
  456. package/src/definitions/MissedCallExtensionInfoExternalNumber.ts +1 -1
  457. package/src/definitions/OptOutListResponse.ts +2 -2
  458. package/src/definitions/OtpTokenRequest.ts +21 -0
  459. package/src/definitions/PhoneNumberInfoIntId.ts +2 -2
  460. package/src/definitions/ReadDirectoryEntryParameters.ts +12 -0
  461. package/src/definitions/ReadGlipPostsNewParameters.ts +1 -1
  462. package/src/definitions/RefreshTokenRequest.ts +20 -0
  463. package/src/definitions/RegSessionModel.ts +7 -0
  464. package/src/definitions/RegSessionModelSettings.ts +22 -1
  465. package/src/definitions/RegionalSettings.ts +2 -1
  466. package/src/definitions/RegistrantBaseModel.ts +5 -0
  467. package/src/definitions/RegistrantBaseModelWithQuestionnaire.ts +5 -0
  468. package/src/definitions/RegistrantMinimalModel.ts +5 -0
  469. package/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts +5 -0
  470. package/src/definitions/RegistrantModelWithQuestionnaire.ts +5 -0
  471. package/src/definitions/RevokeTokenRequest.ts +7 -3
  472. package/src/definitions/RoleResource.ts +9 -1
  473. package/src/definitions/RolesCountryResource.ts +6 -0
  474. package/src/definitions/RolesRegionalSettingsResource.ts +2 -0
  475. package/src/definitions/RopcTokenRequest.ts +43 -0
  476. package/src/definitions/SearchDirectoryEntriesParameters.ts +6 -0
  477. package/src/definitions/ServiceInfo.ts +1 -1
  478. package/src/definitions/ServiceInfoContractedCountryId.ts +8 -0
  479. package/src/definitions/ServiceInfoPlan.ts +20 -0
  480. package/src/definitions/ServiceInfoUBrand.ts +12 -0
  481. package/src/definitions/ServiceInfoV2.ts +19 -0
  482. package/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts +2 -1
  483. package/src/definitions/Site.ts +18 -0
  484. package/src/definitions/SiteInfo.ts +5 -0
  485. package/src/definitions/SiteUpdateRequest.ts +9 -0
  486. package/src/definitions/SmsRequestCountryInfo.ts +2 -1
  487. package/src/definitions/SocMsgContentAttachment.ts +86 -0
  488. package/src/definitions/TMCreateEventRequest.ts +3 -22
  489. package/src/definitions/TMCreateTaskRequest.ts +4 -4
  490. package/src/definitions/TMEventInfo.ts +3 -20
  491. package/src/definitions/TMMessageAttachmentInfo.ts +2 -20
  492. package/src/definitions/TMTaskInfo.ts +2 -3
  493. package/src/definitions/TMUpdateTaskRequest.ts +2 -2
  494. package/src/definitions/{TMTaskInfoRecurrence.ts → TaskRecurrenceInfo.ts} +11 -5
  495. package/src/definitions/TaxLocation.ts +45 -0
  496. package/src/definitions/TokenInfo.ts +22 -16
  497. package/src/definitions/UnconditionalForwardingInfo.ts +2 -2
  498. package/src/definitions/UserAnsweringRuleList.ts +2 -2
  499. package/src/definitions/UserPhoneNumberInfo.ts +4 -4
  500. package/src/definitions/UserTransitionInfo.ts +2 -2
  501. package/src/paths/Cx/SocialMessaging/V1/Contents/index.ts +23 -20
  502. package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +8 -10
  503. package/src/paths/Restapi/Account/CallQueues/index.ts +6 -5
  504. package/src/paths/Restapi/Account/Directory/Entries/index.ts +6 -2
  505. package/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts +5 -5
  506. package/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts +115 -0
  507. package/src/paths/Restapi/Account/Extension/index.ts +5 -0
  508. package/src/paths/Restapi/Account/IvrPrompts/Content/index.ts +3 -0
  509. package/src/paths/Restapi/Account/MessageStoreTemplates/index.ts +112 -0
  510. package/src/paths/Restapi/Account/ServiceInfo/index.ts +1 -1
  511. package/src/paths/Restapi/Account/index.ts +5 -0
  512. package/src/paths/Restapi/Oauth/Authorize/index.ts +19 -4
  513. package/src/paths/Restapi/Oauth/Revoke/index.ts +6 -4
  514. package/src/paths/Restapi/Oauth/Token/index.ts +6 -3
  515. package/src/paths/Restapi/Oauth/index.ts +0 -10
  516. package/src/paths/Restapi/V2/Accounts/CostCenters/index.ts +28 -0
  517. package/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts +67 -0
  518. package/src/paths/Restapi/V2/Accounts/Extensions/index.ts +5 -0
  519. package/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts +1 -1
  520. package/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts +1 -1
  521. package/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts +6 -6
  522. package/src/paths/Restapi/V2/Accounts/index.ts +5 -0
  523. package/src/paths/TeamMessaging/V1/Chats/Posts/index.ts +5 -1
  524. package/src/samples.md +1546 -1216
  525. package/lib/definitions/AnsweringRuleInfo.js.map +0 -1
  526. package/lib/definitions/CallQueues.js.map +0 -1
  527. package/lib/definitions/ContentAttachment.d.ts +0 -76
  528. package/lib/definitions/ContentAttachment.js.map +0 -1
  529. package/lib/definitions/CreateContentRequest.d.ts +0 -131
  530. package/lib/definitions/CreateContentRequest.js.map +0 -1
  531. package/lib/definitions/EmergencyLocationInfoRequest.d.ts +0 -38
  532. package/lib/definitions/EmergencyLocationInfoRequest.js +0 -3
  533. package/lib/definitions/EmergencyLocationInfoRequest.js.map +0 -1
  534. package/lib/definitions/GreetingResource.js.map +0 -1
  535. package/lib/definitions/IntrospectTokenRequest.d.ts +0 -13
  536. package/lib/definitions/IntrospectTokenRequest.js +0 -3
  537. package/lib/definitions/IntrospectTokenRequest.js.map +0 -1
  538. package/lib/definitions/MeetingRecordingsNavigationInfo.d.ts +0 -16
  539. package/lib/definitions/MeetingRecordingsNavigationInfo.js +0 -3
  540. package/lib/definitions/MeetingRecordingsNavigationInfo.js.map +0 -1
  541. package/lib/definitions/MeetingRecordingsNavigationInfoUri.d.ts +0 -10
  542. package/lib/definitions/MeetingRecordingsNavigationInfoUri.js +0 -3
  543. package/lib/definitions/MeetingRecordingsNavigationInfoUri.js.map +0 -1
  544. package/lib/definitions/MeetingRecordingsPagingInfo.d.ts +0 -33
  545. package/lib/definitions/MeetingRecordingsPagingInfo.js +0 -3
  546. package/lib/definitions/MeetingRecordingsPagingInfo.js.map +0 -1
  547. package/lib/definitions/MeetingsNavigationInfo.d.ts +0 -16
  548. package/lib/definitions/MeetingsNavigationInfo.js +0 -3
  549. package/lib/definitions/MeetingsNavigationInfo.js.map +0 -1
  550. package/lib/definitions/MeetingsNavigationInfoUri.d.ts +0 -7
  551. package/lib/definitions/MeetingsNavigationInfoUri.js +0 -3
  552. package/lib/definitions/MeetingsNavigationInfoUri.js.map +0 -1
  553. package/lib/definitions/MeetingsPagingInfo.d.ts +0 -27
  554. package/lib/definitions/MeetingsPagingInfo.js +0 -3
  555. package/lib/definitions/MeetingsPagingInfo.js.map +0 -1
  556. package/lib/definitions/PackageInfo.js.map +0 -1
  557. package/lib/definitions/PagingResource.d.ts +0 -32
  558. package/lib/definitions/PagingResource.js.map +0 -1
  559. package/lib/definitions/SessionInfoResponse.d.ts +0 -42
  560. package/lib/definitions/SessionInfoResponse.js +0 -3
  561. package/lib/definitions/SessionInfoResponse.js.map +0 -1
  562. package/lib/definitions/SiteResource.d.ts +0 -14
  563. package/lib/definitions/SiteResource.js.map +0 -1
  564. package/lib/definitions/SocMsgListContentsParameters.js +0 -3
  565. package/lib/definitions/SocMsgListContentsParameters.js.map +0 -1
  566. package/lib/definitions/SocMsgListIdentitiesParameters.js +0 -3
  567. package/lib/definitions/SocMsgListIdentitiesParameters.js.map +0 -1
  568. package/lib/definitions/TMCreateTaskRequestRecurrence.d.ts +0 -25
  569. package/lib/definitions/TMCreateTaskRequestRecurrence.js +0 -3
  570. package/lib/definitions/TMCreateTaskRequestRecurrence.js.map +0 -1
  571. package/lib/definitions/TMTaskInfoRecurrence.js +0 -3
  572. package/lib/definitions/TMTaskInfoRecurrence.js.map +0 -1
  573. package/lib/definitions/TMUpdateTaskRequestRecurrence.d.ts +0 -24
  574. package/lib/definitions/TMUpdateTaskRequestRecurrence.js +0 -3
  575. package/lib/definitions/TMUpdateTaskRequestRecurrence.js.map +0 -1
  576. package/lib/definitions/TokenIntrospectionResponse.d.ts +0 -47
  577. package/lib/definitions/TokenIntrospectionResponse.js +0 -3
  578. package/lib/definitions/TokenIntrospectionResponse.js.map +0 -1
  579. package/lib/paths/Restapi/Oauth/Introspect/index.d.ts +0 -24
  580. package/lib/paths/Restapi/Oauth/Introspect/index.js +0 -30
  581. package/lib/paths/Restapi/Oauth/Introspect/index.js.map +0 -1
  582. package/lib/paths/Restapi/Oauth/SessionInfo/index.d.ts +0 -17
  583. package/lib/paths/Restapi/Oauth/SessionInfo/index.js.map +0 -1
  584. package/src/definitions/ContentAttachment.ts +0 -85
  585. package/src/definitions/CreateContentRequest.ts +0 -147
  586. package/src/definitions/EmergencyLocationInfoRequest.ts +0 -47
  587. package/src/definitions/IntrospectTokenRequest.ts +0 -15
  588. package/src/definitions/MeetingRecordingsNavigationInfo.ts +0 -21
  589. package/src/definitions/MeetingRecordingsNavigationInfoUri.ts +0 -11
  590. package/src/definitions/MeetingRecordingsPagingInfo.ts +0 -39
  591. package/src/definitions/MeetingsNavigationInfo.ts +0 -21
  592. package/src/definitions/MeetingsNavigationInfoUri.ts +0 -8
  593. package/src/definitions/MeetingsPagingInfo.ts +0 -33
  594. package/src/definitions/PagingResource.ts +0 -37
  595. package/src/definitions/SessionInfoResponse.ts +0 -50
  596. package/src/definitions/SiteResource.ts +0 -16
  597. package/src/definitions/SocMsgListContentsParameters.ts +0 -70
  598. package/src/definitions/SocMsgListIdentitiesParameters.ts +0 -50
  599. package/src/definitions/TMCreateTaskRequestRecurrence.ts +0 -29
  600. package/src/definitions/TMUpdateTaskRequestRecurrence.ts +0 -28
  601. package/src/definitions/TokenIntrospectionResponse.ts +0 -56
  602. package/src/paths/Restapi/Oauth/Introspect/index.ts +0 -42
  603. package/src/paths/Restapi/Oauth/SessionInfo/index.ts +0 -27
@@ -7,7 +7,7 @@ interface TokenInfo {
7
7
  access_token?: string;
8
8
 
9
9
  /**
10
- * Issued access token TTL (time-to-live) in seconds
10
+ * Access token TTL (time-to-live) in seconds
11
11
  * Required
12
12
  * Format: int32
13
13
  * Example: 7199
@@ -15,68 +15,74 @@ interface TokenInfo {
15
15
  expires_in?: number;
16
16
 
17
17
  /**
18
- * OAuth refresh token (in case the one was issued)
18
+ * OAuth refresh token (if issued)
19
19
  * Example: U1BCMDFUMDRKV1MwMXxzLFL4ec6A0XMsUv9wLriecyxS_w
20
20
  */
21
21
  refresh_token?: string;
22
22
 
23
23
  /**
24
- * Issued refresh token TTL (time-to-live) in seconds
24
+ * Refresh token TTL (time-to-live) in seconds
25
25
  * Format: int32
26
26
  * Example: 604799
27
27
  */
28
28
  refresh_token_expires_in?: number;
29
29
 
30
30
  /**
31
- * List of permissions (space separated) granted to the application with this access token
31
+ * The list of space separated application permissions (OAuth scopes)
32
32
  * Required
33
33
  * Example: AccountInfo CallLog ExtensionInfo Messages SMS
34
34
  */
35
35
  scope?: string;
36
36
 
37
37
  /**
38
- * Type of token. The only supported value is `bearer`. This value should be used when specifying access token in `Authorization` header of subsequent API requests
38
+ * Type of the token. The only supported value is `bearer`. This value should be used when specifying access token in `Authorization` header of subsequent API requests
39
39
  * Required
40
40
  * Example: bearer
41
41
  */
42
- token_type?: string;
42
+ token_type?: 'bearer';
43
43
 
44
44
  /**
45
- * Token owner (extension/user) identifier
45
+ * Token owner's identifier. Contains RingCentral user (extension) ID
46
46
  * Example: 256440016
47
47
  */
48
48
  owner_id?: string;
49
49
 
50
50
  /**
51
- * Application instance identifier
51
+ * Client application instance identifier that matches the value provided by the client,
52
+ * or generated by the server if a client has not provided this value
52
53
  * Example: 8zXq6oaLT7WvwWITlGiA1A
53
54
  */
54
55
  endpoint_id?: string;
55
56
 
56
57
  /**
57
- * OIDC ID token (if OpenID Connect flow was activated during authorization)
58
+ * OpenID Connect ID token (if OpenID Connect flow was activated during authorization)
58
59
  */
59
60
  id_token?: string;
60
61
 
61
62
  /**
62
- * OAuth session ID
63
+ * Remaining time in seconds until session expiration due to absolute timeout.
64
+ * Returned only if absolute session timeout is enforced
65
+ * Format: int32
63
66
  */
64
- session_id?: string;
67
+ session_expires_in?: number;
65
68
 
66
69
  /**
67
- * Absolute value of session expiration time as an ISO timestamp
70
+ * Absolute value of session expiration time in ISO date formatted string.
71
+ * Returned only if absolute session timeout is enforced
68
72
  * Format: date-time
73
+ * Example: 2023-04-01T12:00:01Z
69
74
  */
70
75
  session_expiration_time?: string;
71
76
 
72
77
  /**
73
- * Remaining time (in seconds) until session expiration due to the absolute timeout
74
- * Format: int32
78
+ * OAuth session ID
79
+ * Required
75
80
  */
76
- session_expires_in?: number;
81
+ session_id?: string;
77
82
 
78
83
  /**
79
- * Nominal session idle timeout in seconds
84
+ * Nominal value of session idle timeout in seconds.
85
+ * Returned only if idle session timeout is enforced
80
86
  * Format: int32
81
87
  */
82
88
  session_idle_timeout?: number;
@@ -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
@@ -1,4 +1,4 @@
1
- import type SocMsgListIdentitiesParameters from '../../../../../definitions/SocMsgListIdentitiesParameters';
1
+ import type ListSocialMessagingIdentitiesParameters from '../../../../../definitions/ListSocialMessagingIdentitiesParameters';
2
2
  import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
3
3
 
4
4
  class Index {
@@ -18,15 +18,14 @@ class Index {
18
18
  return `${this._parent.path()}/identities`;
19
19
  }
20
20
  /**
21
- * List identities 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
- * The account context of this request is determined by the RC Account Id associated with the access token provided
24
- * in the Authorization header.
23
+ * The account context of this request is determined by the RC Account ID associated with
24
+ * the access token provided in the Authorization header.
25
25
  *
26
- * The query parameters provided shall be considered an AND operation to filter the list.
26
+ * The query parameters provided will be considered an AND operation to filter the list.
27
27
  *
28
- * A query parameter not specified or a query parameter provided with no value is treated as not required for
29
- * filtering the list.
28
+ * A query parameter which is not specified or provided with the null value will be ignored.
30
29
  *
31
30
  * HTTP Method: get
32
31
  * Endpoint: /cx/social-messaging/v1/identities
@@ -34,7 +33,7 @@ class Index {
34
33
  * App Permission: SocialMessaging
35
34
  */
36
35
  public async list(
37
- queryParams?: SocMsgListIdentitiesParameters,
36
+ queryParams?: ListSocialMessagingIdentitiesParameters,
38
37
  restRequestConfig?: RestRequestConfig,
39
38
  ): Promise<string> {
40
39
  const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
@@ -42,8 +41,7 @@ class Index {
42
41
  }
43
42
 
44
43
  /**
45
- * Renders an identity from given id.
46
- *
44
+ * Returns an identity by ID specified in path.
47
45
  * HTTP Method: get
48
46
  * Endpoint: /cx/social-messaging/v1/identities/{identityId}
49
47
  * Rate Limit Group: Light
@@ -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,
@@ -0,0 +1,115 @@
1
+ import type MessageTemplateUpdateRequest from '../../../../../definitions/MessageTemplateUpdateRequest';
2
+ import type MessageTemplateResponse from '../../../../../definitions/MessageTemplateResponse';
3
+ import type MessageTemplateRequest from '../../../../../definitions/MessageTemplateRequest';
4
+ import type MessageTemplatesListResponse from '../../../../../definitions/MessageTemplatesListResponse';
5
+ import type ListUserMessageTemplatesParameters from '../../../../../definitions/ListUserMessageTemplatesParameters';
6
+ import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
7
+
8
+ class Index {
9
+ public rc: RingCentralInterface;
10
+ public _parent: ParentInterface;
11
+ public templateId: string | null;
12
+
13
+ public constructor(_parent: ParentInterface, templateId: string | null = null) {
14
+ this._parent = _parent;
15
+ this.rc = _parent.rc;
16
+ this.templateId = templateId;
17
+ }
18
+ public path(withParameter = true): string {
19
+ if (withParameter && this.templateId !== null) {
20
+ return `${this._parent.path()}/message-store-templates/${this.templateId}`;
21
+ }
22
+ return `${this._parent.path()}/message-store-templates`;
23
+ }
24
+ /**
25
+ * Returns a list of user's personal text message templates.
26
+ * HTTP Method: get
27
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates
28
+ * Rate Limit Group: Light
29
+ * App Permission: ReadAccounts
30
+ */
31
+ public async list(
32
+ queryParams?: ListUserMessageTemplatesParameters,
33
+ restRequestConfig?: RestRequestConfig,
34
+ ): Promise<MessageTemplatesListResponse> {
35
+ const r = await this.rc.get<MessageTemplatesListResponse>(this.path(false), queryParams, restRequestConfig);
36
+ return r.data;
37
+ }
38
+
39
+ /**
40
+ * Creates a user personal text message template.
41
+ * Maximum number of personal templates is 25 per user.
42
+ * Max length of the `body` property is 1000 symbols (2-byte UTF-16 encoded).
43
+ *
44
+ * HTTP Method: post
45
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates
46
+ * Rate Limit Group: Medium
47
+ * App Permission: EditExtensions
48
+ */
49
+ public async post(
50
+ messageTemplateRequest: MessageTemplateRequest,
51
+ restRequestConfig?: RestRequestConfig,
52
+ ): Promise<MessageTemplateResponse> {
53
+ const r = await this.rc.post<MessageTemplateResponse>(
54
+ this.path(false),
55
+ messageTemplateRequest,
56
+ undefined,
57
+ restRequestConfig,
58
+ );
59
+ return r.data;
60
+ }
61
+
62
+ /**
63
+ * Returns a user personal text message template by ID.
64
+ * HTTP Method: get
65
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates/{templateId}
66
+ * Rate Limit Group: Light
67
+ * App Permission: ReadAccounts
68
+ */
69
+ public async get(restRequestConfig?: RestRequestConfig): Promise<MessageTemplateResponse> {
70
+ if (this.templateId === null) {
71
+ throw new Error('templateId must be specified.');
72
+ }
73
+ const r = await this.rc.get<MessageTemplateResponse>(this.path(), undefined, restRequestConfig);
74
+ return r.data;
75
+ }
76
+
77
+ /**
78
+ * Updates a user personal text message template.
79
+ * HTTP Method: put
80
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates/{templateId}
81
+ * Rate Limit Group: Medium
82
+ * App Permission: EditExtensions
83
+ */
84
+ public async put(
85
+ messageTemplateUpdateRequest: MessageTemplateUpdateRequest,
86
+ restRequestConfig?: RestRequestConfig,
87
+ ): Promise<MessageTemplateResponse> {
88
+ if (this.templateId === null) {
89
+ throw new Error('templateId must be specified.');
90
+ }
91
+ const r = await this.rc.put<MessageTemplateResponse>(
92
+ this.path(),
93
+ messageTemplateUpdateRequest,
94
+ undefined,
95
+ restRequestConfig,
96
+ );
97
+ return r.data;
98
+ }
99
+
100
+ /**
101
+ * Deletes a user personal text message template.
102
+ * HTTP Method: delete
103
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates/{templateId}
104
+ * Rate Limit Group: Medium
105
+ * App Permission: EditExtensions
106
+ */
107
+ public async delete(restRequestConfig?: RestRequestConfig): Promise<string> {
108
+ if (this.templateId === null) {
109
+ throw new Error('templateId must be specified.');
110
+ }
111
+ const r = await this.rc.delete<string>(this.path(), {}, undefined, restRequestConfig);
112
+ return r.data;
113
+ }
114
+ }
115
+ export default Index;
@@ -1,3 +1,4 @@
1
+ import MessageStoreTemplates from './MessageStoreTemplates';
1
2
  import NotificationSettings from './NotificationSettings';
2
3
  import CallQueuePresence from './CallQueuePresence';
3
4
  import VideoConfiguration from './VideoConfiguration';
@@ -287,5 +288,9 @@ class Index {
287
288
  public notificationSettings(): NotificationSettings {
288
289
  return new NotificationSettings(this);
289
290
  }
291
+
292
+ public messageStoreTemplates(templateId: string | null = null): MessageStoreTemplates {
293
+ return new MessageStoreTemplates(this, templateId);
294
+ }
290
295
  }
291
296
  export default Index;
@@ -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,112 @@
1
+ import type MessageTemplateUpdateRequest from '../../../../definitions/MessageTemplateUpdateRequest';
2
+ import type MessageTemplateResponse from '../../../../definitions/MessageTemplateResponse';
3
+ import type MessageTemplateRequest from '../../../../definitions/MessageTemplateRequest';
4
+ import type MessageTemplatesListResponse from '../../../../definitions/MessageTemplatesListResponse';
5
+ import type ListCompanyMessageTemplatesParameters from '../../../../definitions/ListCompanyMessageTemplatesParameters';
6
+ import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types';
7
+
8
+ class Index {
9
+ public rc: RingCentralInterface;
10
+ public _parent: ParentInterface;
11
+ public templateId: string | null;
12
+
13
+ public constructor(_parent: ParentInterface, templateId: string | null = null) {
14
+ this._parent = _parent;
15
+ this.rc = _parent.rc;
16
+ this.templateId = templateId;
17
+ }
18
+ public path(withParameter = true): string {
19
+ if (withParameter && this.templateId !== null) {
20
+ return `${this._parent.path()}/message-store-templates/${this.templateId}`;
21
+ }
22
+ return `${this._parent.path()}/message-store-templates`;
23
+ }
24
+ /**
25
+ * Returns a list of company text message templates.
26
+ * HTTP Method: get
27
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates
28
+ * Rate Limit Group: Light
29
+ * App Permission: ReadAccounts
30
+ */
31
+ public async list(
32
+ queryParams?: ListCompanyMessageTemplatesParameters,
33
+ restRequestConfig?: RestRequestConfig,
34
+ ): Promise<MessageTemplatesListResponse> {
35
+ const r = await this.rc.get<MessageTemplatesListResponse>(this.path(false), queryParams, restRequestConfig);
36
+ return r.data;
37
+ }
38
+
39
+ /**
40
+ * Creates a new text message template on a company level. Maximum number of company templates is 50.
41
+ * HTTP Method: post
42
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates
43
+ * Rate Limit Group: Medium
44
+ * App Permission: EditAccounts
45
+ */
46
+ public async post(
47
+ messageTemplateRequest: MessageTemplateRequest,
48
+ restRequestConfig?: RestRequestConfig,
49
+ ): Promise<MessageTemplateResponse> {
50
+ const r = await this.rc.post<MessageTemplateResponse>(
51
+ this.path(false),
52
+ messageTemplateRequest,
53
+ undefined,
54
+ restRequestConfig,
55
+ );
56
+ return r.data;
57
+ }
58
+
59
+ /**
60
+ * Returns a company text message template by ID.
61
+ * HTTP Method: get
62
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates/{templateId}
63
+ * Rate Limit Group: Light
64
+ * App Permission: ReadAccounts
65
+ */
66
+ public async get(restRequestConfig?: RestRequestConfig): Promise<MessageTemplateResponse> {
67
+ if (this.templateId === null) {
68
+ throw new Error('templateId must be specified.');
69
+ }
70
+ const r = await this.rc.get<MessageTemplateResponse>(this.path(), undefined, restRequestConfig);
71
+ return r.data;
72
+ }
73
+
74
+ /**
75
+ * Updates a company text message template.
76
+ * HTTP Method: put
77
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates/{templateId}
78
+ * Rate Limit Group: Medium
79
+ * App Permission: EditAccounts
80
+ */
81
+ public async put(
82
+ messageTemplateUpdateRequest: MessageTemplateUpdateRequest,
83
+ restRequestConfig?: RestRequestConfig,
84
+ ): Promise<MessageTemplateResponse> {
85
+ if (this.templateId === null) {
86
+ throw new Error('templateId must be specified.');
87
+ }
88
+ const r = await this.rc.put<MessageTemplateResponse>(
89
+ this.path(),
90
+ messageTemplateUpdateRequest,
91
+ undefined,
92
+ restRequestConfig,
93
+ );
94
+ return r.data;
95
+ }
96
+
97
+ /**
98
+ * Deletes a company text message template.
99
+ * HTTP Method: delete
100
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates/{templateId}
101
+ * Rate Limit Group: Medium
102
+ * App Permission: EditAccounts
103
+ */
104
+ public async delete(restRequestConfig?: RestRequestConfig): Promise<string> {
105
+ if (this.templateId === null) {
106
+ throw new Error('templateId must be specified.');
107
+ }
108
+ const r = await this.rc.delete<string>(this.path(), {}, undefined, restRequestConfig);
109
+ return r.data;
110
+ }
111
+ }
112
+ export default Index;