@rc-ex/core 1.6.14 → 1.6.15
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.
- package/dist/cjs/FormData.js +42 -107
- package/dist/cjs/Rest.js +68 -105
- package/dist/cjs/RestException.js +11 -28
- package/dist/cjs/SdkExtension.js +6 -9
- package/dist/cjs/Utils.js +25 -36
- package/dist/cjs/index.js +141 -269
- package/dist/cjs/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.js +12 -56
- package/dist/cjs/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js +12 -56
- package/dist/cjs/paths/Ai/Audio/V1/Async/SpeechToText/index.js +12 -56
- package/dist/cjs/paths/Ai/Audio/V1/Async/index.js +17 -16
- package/dist/cjs/paths/Ai/Audio/V1/Enrollments/index.js +39 -123
- package/dist/cjs/paths/Ai/Audio/V1/index.js +14 -14
- package/dist/cjs/paths/Ai/Audio/index.js +11 -10
- package/dist/cjs/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.js +12 -56
- package/dist/cjs/paths/Ai/Insights/V1/Async/index.js +11 -10
- package/dist/cjs/paths/Ai/Insights/V1/index.js +11 -10
- package/dist/cjs/paths/Ai/Insights/index.js +11 -10
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js +12 -56
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js +13 -13
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js +13 -14
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/Accounts/index.js +13 -14
- package/dist/cjs/paths/Ai/Ringsense/V1/Public/index.js +11 -11
- package/dist/cjs/paths/Ai/Ringsense/V1/index.js +11 -10
- package/dist/cjs/paths/Ai/Ringsense/index.js +11 -10
- package/dist/cjs/paths/Ai/Status/V1/Jobs/index.js +17 -63
- package/dist/cjs/paths/Ai/Status/V1/index.js +11 -11
- package/dist/cjs/paths/Ai/Status/index.js +11 -10
- package/dist/cjs/paths/Ai/Text/V1/Async/Punctuate/index.js +12 -56
- package/dist/cjs/paths/Ai/Text/V1/Async/Summarize/index.js +12 -56
- package/dist/cjs/paths/Ai/Text/V1/Async/index.js +14 -13
- package/dist/cjs/paths/Ai/Text/V1/index.js +11 -10
- package/dist/cjs/paths/Ai/Text/index.js +11 -10
- package/dist/cjs/paths/Ai/index.js +21 -21
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.js +12 -56
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Aggregation/index.js +11 -10
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.js +12 -56
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/Timeline/index.js +11 -10
- package/dist/cjs/paths/Analytics/Calls/V1/Accounts/index.js +16 -16
- package/dist/cjs/paths/Analytics/Calls/V1/index.js +11 -11
- package/dist/cjs/paths/Analytics/Calls/index.js +11 -10
- package/dist/cjs/paths/Analytics/index.js +9 -9
- package/dist/cjs/paths/Rcvideo/V1/Account/Extension/Recordings/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V1/Account/Extension/index.js +13 -13
- package/dist/cjs/paths/Rcvideo/V1/Account/Recordings/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V1/Account/index.js +16 -17
- package/dist/cjs/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V1/Accounts/Extensions/index.js +13 -13
- package/dist/cjs/paths/Rcvideo/V1/Accounts/index.js +13 -14
- package/dist/cjs/paths/Rcvideo/V1/History/Meetings/index.js +21 -76
- package/dist/cjs/paths/Rcvideo/V1/History/index.js +11 -11
- package/dist/cjs/paths/Rcvideo/V1/index.js +17 -18
- package/dist/cjs/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.js +12 -56
- package/dist/cjs/paths/Rcvideo/V2/Account/Extension/Bridges/index.js +15 -59
- package/dist/cjs/paths/Rcvideo/V2/Account/Extension/index.js +13 -13
- package/dist/cjs/paths/Rcvideo/V2/Account/index.js +13 -14
- package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.js +17 -63
- package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/Web/index.js +17 -63
- package/dist/cjs/paths/Rcvideo/V2/Bridges/Pin/index.js +14 -15
- package/dist/cjs/paths/Rcvideo/V2/Bridges/index.js +34 -100
- package/dist/cjs/paths/Rcvideo/V2/index.js +14 -15
- package/dist/cjs/paths/Rcvideo/index.js +12 -12
- package/dist/cjs/paths/Restapi/Account/A2pSms/Batches/index.js +25 -89
- package/dist/cjs/paths/Restapi/Account/A2pSms/Messages/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/A2pSms/OptOuts/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/A2pSms/Statuses/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/A2pSms/index.js +20 -21
- package/dist/cjs/paths/Restapi/Account/ActiveCalls/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/AddressBookBulkUpload/index.js +15 -60
- package/dist/cjs/paths/Restapi/Account/AnsweringRule/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/AssignedRole/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/AuditTrail/Search/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/AuditTrail/index.js +11 -10
- package/dist/cjs/paths/Restapi/Account/BusinessAddress/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/BusinessHours/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/CallLog/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/CallLogSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/Members/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallMonitoringGroups/index.js +38 -112
- package/dist/cjs/paths/Restapi/Account/CallQueues/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallQueues/Members/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallQueues/Presence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/CallQueues/index.js +37 -102
- package/dist/cjs/paths/Restapi/Account/CallRecording/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallRecording/CustomGreetings/index.js +25 -89
- package/dist/cjs/paths/Restapi/Account/CallRecording/Extensions/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CallRecording/index.js +25 -79
- package/dist/cjs/paths/Restapi/Account/CallRecordings/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/CustomFields/index.js +32 -106
- package/dist/cjs/paths/Restapi/Account/Device/Emergency/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Device/SipInfo/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Device/index.js +30 -86
- package/dist/cjs/paths/Restapi/Account/Directory/Entries/Search/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Directory/Entries/index.js +24 -79
- package/dist/cjs/paths/Restapi/Account/Directory/Federation/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Directory/index.js +14 -14
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.js +44 -47
- package/dist/cjs/paths/Restapi/Account/EmergencyLocations/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/ActiveCalls/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AddressBook/Contact/index.js +46 -140
- package/dist/cjs/paths/Restapi/Account/Extension/AddressBook/index.js +11 -11
- package/dist/cjs/paths/Restapi/Account/Extension/AddressBookSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AdministeredSites/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/AnsweringRule/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/AssignableRoles/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AssignedRole/Default/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AssignedRole/index.js +19 -72
- package/dist/cjs/paths/Restapi/Account/Extension/AuthzProfile/Check/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/AuthzProfile/index.js +15 -59
- package/dist/cjs/paths/Restapi/Account/Extension/BusinessHours/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/CallLog/index.js +25 -89
- package/dist/cjs/paths/Restapi/Account/Extension/CallLogSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/CallQueuePresence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/CallQueues/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/CallerBlocking/index.js +19 -73
- package/dist/cjs/paths/Restapi/Account/Extension/CallerId/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/CompanyPager/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Conferencing/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/Device/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/EmergencyLocations/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/Favorite/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/Fax/index.js +14 -60
- package/dist/cjs/paths/Restapi/Account/Extension/Features/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/ForwardingNumber/index.js +43 -136
- package/dist/cjs/paths/Restapi/Account/Extension/Grant/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Greeting/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/Extension/Greeting/index.js +26 -83
- package/dist/cjs/paths/Restapi/Account/Extension/MessageStore/Content/index.js +19 -73
- package/dist/cjs/paths/Restapi/Account/Extension/MessageStore/index.js +49 -144
- package/dist/cjs/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/Extension/MessageSync/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Mms/index.js +14 -60
- package/dist/cjs/paths/Restapi/Account/Extension/NotificationSettings/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/OverflowSettings/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/PhoneNumber/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/Presence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/ProfileImage/index.js +40 -131
- package/dist/cjs/paths/Restapi/Account/Extension/RingOut/index.js +28 -93
- package/dist/cjs/paths/Restapi/Account/Extension/Sms/index.js +14 -60
- package/dist/cjs/paths/Restapi/Account/Extension/UnifiedPresence/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Extension/VideoConfiguration/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Extension/index.js +146 -229
- package/dist/cjs/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/ExtensionBulkUpdate/index.js +15 -60
- package/dist/cjs/paths/Restapi/Account/ForwardAllCalls/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Greeting/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/Greeting/index.js +17 -63
- package/dist/cjs/paths/Restapi/Account/IvrMenus/index.js +32 -106
- package/dist/cjs/paths/Restapi/Account/IvrPrompts/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/IvrPrompts/index.js +44 -130
- package/dist/cjs/paths/Restapi/Account/MessageStoreConfiguration/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/MessageStoreReport/Archive/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/MessageStoreReport/index.js +24 -79
- package/dist/cjs/paths/Restapi/Account/MessageStoreTemplates/index.js +39 -123
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/Devices/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/Users/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/PagingOnlyGroups/index.js +19 -19
- package/dist/cjs/paths/Restapi/Account/PhoneNumber/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/Presence/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Recording/Content/index.js +14 -66
- package/dist/cjs/paths/Restapi/Account/Recording/index.js +20 -66
- package/dist/cjs/paths/Restapi/Account/ServiceInfo/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Sites/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Sites/Ivr/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/Sites/Members/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Sites/index.js +48 -132
- package/dist/cjs/paths/Restapi/Account/Telephony/CallOut/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Conference/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js +13 -13
- package/dist/cjs/paths/Restapi/Account/Telephony/Metadata/index.js +11 -11
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Parties/index.js +76 -143
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/Telephony/Sessions/index.js +30 -87
- package/dist/cjs/paths/Restapi/Account/Telephony/index.js +20 -20
- package/dist/cjs/paths/Restapi/Account/Templates/index.js +21 -76
- package/dist/cjs/paths/Restapi/Account/UserRole/BulkAssign/index.js +12 -56
- package/dist/cjs/paths/Restapi/Account/UserRole/Default/index.js +16 -69
- package/dist/cjs/paths/Restapi/Account/UserRole/index.js +45 -129
- package/dist/cjs/paths/Restapi/Account/index.js +128 -192
- package/dist/cjs/paths/Restapi/ClientInfo/SipProvision/index.js +12 -56
- package/dist/cjs/paths/Restapi/ClientInfo/index.js +11 -10
- package/dist/cjs/paths/Restapi/Dictionary/Brand/ContractedCountry/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Brand/index.js +13 -14
- package/dist/cjs/paths/Restapi/Dictionary/Country/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/FaxCoverPage/index.js +12 -56
- package/dist/cjs/paths/Restapi/Dictionary/Greeting/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Language/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Location/index.js +12 -56
- package/dist/cjs/paths/Restapi/Dictionary/Permission/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/PermissionCategory/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/State/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/Timezone/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/UserRole/index.js +21 -76
- package/dist/cjs/paths/Restapi/Dictionary/index.js +41 -49
- package/dist/cjs/paths/Restapi/NumberParser/Parse/index.js +12 -56
- package/dist/cjs/paths/Restapi/NumberParser/index.js +11 -10
- package/dist/cjs/paths/Restapi/Oauth/Authorize/index.js +16 -69
- package/dist/cjs/paths/Restapi/Oauth/Revoke/index.js +12 -56
- package/dist/cjs/paths/Restapi/Oauth/Token/index.js +12 -56
- package/dist/cjs/paths/Restapi/Oauth/index.js +17 -16
- package/dist/cjs/paths/Restapi/Subscription/Renew/index.js +12 -56
- package/dist/cjs/paths/Restapi/Subscription/index.js +42 -126
- package/dist/cjs/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/BatchProvisioning/index.js +11 -10
- package/dist/cjs/paths/Restapi/V2/Accounts/CostCenters/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/DeviceInventory/index.js +16 -69
- package/dist/cjs/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/Devices/index.js +20 -66
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +16 -69
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/Devices/index.js +13 -13
- package/dist/cjs/paths/Restapi/V2/Accounts/Extensions/index.js +18 -63
- package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +21 -76
- package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +31 -96
- package/dist/cjs/paths/Restapi/V2/Accounts/SendActivationEmail/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.js +12 -56
- package/dist/cjs/paths/Restapi/V2/Accounts/index.js +41 -89
- package/dist/cjs/paths/Restapi/V2/index.js +11 -11
- package/dist/cjs/paths/Restapi/index.js +40 -98
- package/dist/cjs/paths/Scim/ResourceTypes/index.js +21 -76
- package/dist/cjs/paths/Scim/Schemas/index.js +21 -76
- package/dist/cjs/paths/Scim/ServiceProviderConfig/index.js +12 -56
- package/dist/cjs/paths/Scim/Users/DotSearch/index.js +12 -56
- package/dist/cjs/paths/Scim/Users/index.js +49 -143
- package/dist/cjs/paths/Scim/index.js +20 -24
- package/dist/cjs/paths/TeamMessaging/V1/AdaptiveCards/index.js +31 -97
- package/dist/cjs/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Favorite/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Notes/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Posts/index.js +39 -123
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Tasks/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Chats/Unfavorite/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Chats/index.js +39 -95
- package/dist/cjs/paths/TeamMessaging/V1/Companies/index.js +17 -63
- package/dist/cjs/paths/TeamMessaging/V1/Conversations/index.js +25 -89
- package/dist/cjs/paths/TeamMessaging/V1/DataExport/index.js +25 -89
- package/dist/cjs/paths/TeamMessaging/V1/Events/index.js +39 -123
- package/dist/cjs/paths/TeamMessaging/V1/Everyone/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Favorites/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Files/index.js +14 -60
- package/dist/cjs/paths/TeamMessaging/V1/Groups/Events/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Groups/Webhooks/index.js +16 -69
- package/dist/cjs/paths/TeamMessaging/V1/Groups/index.js +16 -16
- package/dist/cjs/paths/TeamMessaging/V1/Notes/Lock/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Notes/Publish/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Notes/Unlock/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Notes/index.js +40 -106
- package/dist/cjs/paths/TeamMessaging/V1/Persons/index.js +17 -63
- package/dist/cjs/paths/TeamMessaging/V1/Recent/Chats/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Recent/index.js +11 -10
- package/dist/cjs/paths/TeamMessaging/V1/Tasks/Complete/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Tasks/index.js +34 -100
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Add/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Archive/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Join/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Leave/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Remove/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/Unarchive/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Teams/index.js +57 -141
- package/dist/cjs/paths/TeamMessaging/V1/Webhooks/Activate/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Webhooks/Suspend/index.js +12 -56
- package/dist/cjs/paths/TeamMessaging/V1/Webhooks/index.js +34 -99
- package/dist/cjs/paths/TeamMessaging/V1/index.js +56 -67
- package/dist/cjs/paths/TeamMessaging/index.js +9 -9
- package/dist/cjs/paths/Webinar/Configuration/V1/Company/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/Configuration/V1/Company/index.js +11 -10
- package/dist/cjs/paths/Webinar/Configuration/V1/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.js +39 -123
- package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/Sessions/index.js +38 -114
- package/dist/cjs/paths/Webinar/Configuration/V1/Webinars/index.js +42 -127
- package/dist/cjs/paths/Webinar/Configuration/V1/index.js +17 -17
- package/dist/cjs/paths/Webinar/Configuration/index.js +11 -10
- package/dist/cjs/paths/Webinar/History/V1/Company/Recordings/index.js +21 -76
- package/dist/cjs/paths/Webinar/History/V1/Company/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Company/index.js +14 -14
- package/dist/cjs/paths/Webinar/History/V1/Recordings/Download/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Recordings/index.js +24 -79
- package/dist/cjs/paths/Webinar/History/V1/Sessions/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.js +21 -76
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.js +12 -56
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.js +15 -59
- package/dist/cjs/paths/Webinar/History/V1/Webinars/Sessions/index.js +23 -70
- package/dist/cjs/paths/Webinar/History/V1/Webinars/index.js +20 -67
- package/dist/cjs/paths/Webinar/History/V1/index.js +20 -21
- package/dist/cjs/paths/Webinar/History/index.js +11 -10
- package/dist/cjs/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.js +12 -56
- package/dist/cjs/paths/Webinar/Notifications/V1/Subscriptions/index.js +42 -126
- package/dist/cjs/paths/Webinar/Notifications/V1/index.js +11 -11
- package/dist/cjs/paths/Webinar/Notifications/index.js +11 -10
- package/dist/cjs/paths/Webinar/Registration/V1/Sessions/Registrants/index.js +32 -106
- package/dist/cjs/paths/Webinar/Registration/V1/Sessions/index.js +27 -84
- package/dist/cjs/paths/Webinar/Registration/V1/index.js +11 -11
- package/dist/cjs/paths/Webinar/Registration/index.js +11 -10
- package/dist/cjs/paths/Webinar/index.js +18 -18
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -1,197 +1,108 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
4
|
};
|
|
41
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
switch (_a.label) {
|
|
59
|
-
case 0: return [4 /*yield*/, sdkExtension.install(this)];
|
|
60
|
-
case 1:
|
|
61
|
-
_a.sent();
|
|
62
|
-
this.sdkExtensions.push(sdkExtension);
|
|
63
|
-
return [2 /*return*/];
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
Object.defineProperty(RingCentral.prototype, "token", {
|
|
69
|
-
get: function () {
|
|
70
|
-
return this.rest.token;
|
|
71
|
-
},
|
|
72
|
-
set: function (token) {
|
|
73
|
-
this.rest.token = token;
|
|
6
|
+
const Rest_js_1 = __importDefault(require("./Rest.js"));
|
|
7
|
+
const index_js_1 = __importDefault(require("./paths/Restapi/index.js"));
|
|
8
|
+
const index_js_2 = __importDefault(require("./paths/Scim/index.js"));
|
|
9
|
+
const index_js_3 = __importDefault(require("./paths/Analytics/index.js"));
|
|
10
|
+
const index_js_4 = __importDefault(require("./paths/Ai/index.js"));
|
|
11
|
+
const index_js_5 = __importDefault(require("./paths/Rcvideo/index.js"));
|
|
12
|
+
const index_js_6 = __importDefault(require("./paths/Webinar/index.js"));
|
|
13
|
+
const index_js_7 = __importDefault(require("./paths/TeamMessaging/index.js"));
|
|
14
|
+
class RingCentral {
|
|
15
|
+
static config = {
|
|
16
|
+
logger: {
|
|
17
|
+
debug: () => { },
|
|
18
|
+
log: () => { },
|
|
19
|
+
info: () => { },
|
|
20
|
+
warn: () => { },
|
|
21
|
+
error: () => { },
|
|
74
22
|
},
|
|
75
|
-
enumerable: false,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
RingCentral.prototype.request = function (method, endpoint, content, queryParams, config) {
|
|
79
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
80
|
-
var r, e_1, re, r;
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
switch (_a.label) {
|
|
83
|
-
case 0:
|
|
84
|
-
_a.trys.push([0, 2, , 3]);
|
|
85
|
-
return [4 /*yield*/, this.rest.request(method, endpoint, content, queryParams, config)];
|
|
86
|
-
case 1:
|
|
87
|
-
r = _a.sent();
|
|
88
|
-
RingCentral.config.logger.info("[".concat(new Date().toLocaleString(), " HTTP ").concat(method, " ").concat(r.status, " ").concat(r.statusText, "] ").concat(this.rest.server, " ").concat(endpoint));
|
|
89
|
-
return [2 /*return*/, r];
|
|
90
|
-
case 2:
|
|
91
|
-
e_1 = _a.sent();
|
|
92
|
-
re = e_1;
|
|
93
|
-
if (re.response) {
|
|
94
|
-
r = re.response;
|
|
95
|
-
RingCentral.config.logger.info("[".concat(new Date().toLocaleString(), " HTTP ").concat(method, " ").concat(r.status, " ").concat(r.statusText, "] ").concat(this.rest.server, " ").concat(endpoint));
|
|
96
|
-
}
|
|
97
|
-
throw e_1;
|
|
98
|
-
case 3: return [2 /*return*/];
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
RingCentral.prototype.get = function (endpoint, queryParams, config) {
|
|
104
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
-
return __generator(this, function (_a) {
|
|
106
|
-
return [2 /*return*/, this.request("GET", endpoint, undefined, queryParams, config)];
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
RingCentral.prototype.delete = function (endpoint, content, queryParams, config) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
return [2 /*return*/, this.request("DELETE", endpoint, content, queryParams, config)];
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
RingCentral.prototype.post = function (endpoint, content, queryParams, config) {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
-
return __generator(this, function (_a) {
|
|
120
|
-
return [2 /*return*/, this.request("POST", endpoint, content, queryParams, config)];
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
RingCentral.prototype.put = function (endpoint, content, queryParams, config) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
-
return __generator(this, function (_a) {
|
|
127
|
-
return [2 /*return*/, this.request("PUT", endpoint, content, queryParams, config)];
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
RingCentral.prototype.patch = function (endpoint, content, queryParams, config) {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
133
|
-
return __generator(this, function (_a) {
|
|
134
|
-
return [2 /*return*/, this.request("PATCH", endpoint, content, queryParams, config)];
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
RingCentral.prototype.getToken = function (getTokenRequest) {
|
|
139
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
-
var _a;
|
|
141
|
-
return __generator(this, function (_b) {
|
|
142
|
-
switch (_b.label) {
|
|
143
|
-
case 0:
|
|
144
|
-
getTokenRequest.client_id = this.rest.clientId;
|
|
145
|
-
_a = this;
|
|
146
|
-
return [4 /*yield*/, this.restapi(null).oauth().token().post(getTokenRequest)];
|
|
147
|
-
case 1:
|
|
148
|
-
_a.token = _b.sent();
|
|
149
|
-
return [2 /*return*/, this.token];
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
RingCentral.prototype.authorize = function (options) {
|
|
155
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
-
var getTokenRequest;
|
|
157
|
-
return __generator(this, function (_a) {
|
|
158
|
-
getTokenRequest = {};
|
|
159
|
-
if ("username" in options) {
|
|
160
|
-
console.warn("Username/password authentication is deprecated. Please migrate to the JWT grant type.");
|
|
161
|
-
getTokenRequest.grant_type = "password";
|
|
162
|
-
getTokenRequest.username = options.username;
|
|
163
|
-
getTokenRequest.extension = options.extension;
|
|
164
|
-
getTokenRequest.password = options.password;
|
|
165
|
-
}
|
|
166
|
-
else if ("code" in options) {
|
|
167
|
-
getTokenRequest.grant_type = "authorization_code";
|
|
168
|
-
getTokenRequest.code = options.code;
|
|
169
|
-
getTokenRequest.redirect_uri = options.redirect_uri;
|
|
170
|
-
// PKCE: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0
|
|
171
|
-
getTokenRequest.code_verifier = options.code_verifier;
|
|
172
|
-
}
|
|
173
|
-
else if ("jwt" in options) {
|
|
174
|
-
getTokenRequest.grant_type =
|
|
175
|
-
"urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
176
|
-
getTokenRequest.assertion = options.jwt;
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
throw new Error("Unsupported authorization flow");
|
|
180
|
-
}
|
|
181
|
-
return [2 /*return*/, this.getToken(getTokenRequest)];
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
23
|
};
|
|
24
|
+
sdkExtensions = [];
|
|
25
|
+
rest;
|
|
26
|
+
constructor(restOptions) {
|
|
27
|
+
this.rest = new Rest_js_1.default(restOptions ?? {});
|
|
28
|
+
}
|
|
29
|
+
async installExtension(sdkExtension) {
|
|
30
|
+
await sdkExtension.install(this);
|
|
31
|
+
this.sdkExtensions.push(sdkExtension);
|
|
32
|
+
}
|
|
33
|
+
get token() {
|
|
34
|
+
return this.rest.token;
|
|
35
|
+
}
|
|
36
|
+
set token(token) {
|
|
37
|
+
this.rest.token = token;
|
|
38
|
+
}
|
|
39
|
+
async request(method, endpoint, content, queryParams, config) {
|
|
40
|
+
try {
|
|
41
|
+
const r = await this.rest.request(method, endpoint, content, queryParams, config);
|
|
42
|
+
RingCentral.config.logger.info(`[${new Date().toLocaleString()} HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`);
|
|
43
|
+
return r;
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
const re = e;
|
|
47
|
+
if (re.response) {
|
|
48
|
+
const r = re.response;
|
|
49
|
+
RingCentral.config.logger.info(`[${new Date().toLocaleString()} HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`);
|
|
50
|
+
}
|
|
51
|
+
throw e;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async get(endpoint, queryParams, config) {
|
|
55
|
+
return this.request("GET", endpoint, undefined, queryParams, config);
|
|
56
|
+
}
|
|
57
|
+
async delete(endpoint, content, queryParams, config) {
|
|
58
|
+
return this.request("DELETE", endpoint, content, queryParams, config);
|
|
59
|
+
}
|
|
60
|
+
async post(endpoint, content, queryParams, config) {
|
|
61
|
+
return this.request("POST", endpoint, content, queryParams, config);
|
|
62
|
+
}
|
|
63
|
+
async put(endpoint, content, queryParams, config) {
|
|
64
|
+
return this.request("PUT", endpoint, content, queryParams, config);
|
|
65
|
+
}
|
|
66
|
+
async patch(endpoint, content, queryParams, config) {
|
|
67
|
+
return this.request("PATCH", endpoint, content, queryParams, config);
|
|
68
|
+
}
|
|
69
|
+
async getToken(getTokenRequest) {
|
|
70
|
+
getTokenRequest.client_id = this.rest.clientId;
|
|
71
|
+
this.token = await this.restapi(null).oauth().token().post(getTokenRequest);
|
|
72
|
+
return this.token;
|
|
73
|
+
}
|
|
74
|
+
async authorize(options) {
|
|
75
|
+
const getTokenRequest = {};
|
|
76
|
+
if ("username" in options) {
|
|
77
|
+
console.warn("Username/password authentication is deprecated. Please migrate to the JWT grant type.");
|
|
78
|
+
getTokenRequest.grant_type = "password";
|
|
79
|
+
getTokenRequest.username = options.username;
|
|
80
|
+
getTokenRequest.extension = options.extension;
|
|
81
|
+
getTokenRequest.password = options.password;
|
|
82
|
+
}
|
|
83
|
+
else if ("code" in options) {
|
|
84
|
+
getTokenRequest.grant_type = "authorization_code";
|
|
85
|
+
getTokenRequest.code = options.code;
|
|
86
|
+
getTokenRequest.redirect_uri = options.redirect_uri;
|
|
87
|
+
// PKCE: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0
|
|
88
|
+
getTokenRequest.code_verifier = options.code_verifier;
|
|
89
|
+
}
|
|
90
|
+
else if ("jwt" in options) {
|
|
91
|
+
getTokenRequest.grant_type =
|
|
92
|
+
"urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
93
|
+
getTokenRequest.assertion = options.jwt;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
throw new Error("Unsupported authorization flow");
|
|
97
|
+
}
|
|
98
|
+
return this.getToken(getTokenRequest);
|
|
99
|
+
}
|
|
185
100
|
/**
|
|
186
101
|
* Just a synonym of authorize
|
|
187
102
|
*/
|
|
188
|
-
|
|
189
|
-
return
|
|
190
|
-
|
|
191
|
-
return [2 /*return*/, this.authorize(options)];
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
};
|
|
103
|
+
async login(options) {
|
|
104
|
+
return this.authorize(options);
|
|
105
|
+
}
|
|
195
106
|
/**
|
|
196
107
|
* Each time you call token endpoint using this flow, you continue current client session, and receive a new token pair: access token and refresh token in response to this request.
|
|
197
108
|
* The old token pair immediately becomes inactive.
|
|
@@ -200,22 +111,16 @@ var RingCentral = /** @class */ (function () {
|
|
|
200
111
|
*
|
|
201
112
|
* @param refreshToken Refresh Token
|
|
202
113
|
*/
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
getTokenRequest.grant_type = "refresh_token";
|
|
214
|
-
getTokenRequest.refresh_token = tokenToRefresh;
|
|
215
|
-
return [2 /*return*/, this.getToken(getTokenRequest)];
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
};
|
|
114
|
+
async refresh(refreshToken) {
|
|
115
|
+
const tokenToRefresh = refreshToken ?? this.token?.refresh_token;
|
|
116
|
+
if (!tokenToRefresh) {
|
|
117
|
+
throw new Error("tokenToRefresh must be specified.");
|
|
118
|
+
}
|
|
119
|
+
const getTokenRequest = {};
|
|
120
|
+
getTokenRequest.grant_type = "refresh_token";
|
|
121
|
+
getTokenRequest.refresh_token = tokenToRefresh;
|
|
122
|
+
return this.getToken(getTokenRequest);
|
|
123
|
+
}
|
|
219
124
|
/**
|
|
220
125
|
* Each time you call token endpoint using this flow, you continue current client session, and receive a new token pair: access token and refresh token in response to this request.
|
|
221
126
|
* The old token pair immediately becomes inactive.
|
|
@@ -224,80 +129,47 @@ var RingCentral = /** @class */ (function () {
|
|
|
224
129
|
*
|
|
225
130
|
* @param tokenToRevoke AccessToken
|
|
226
131
|
*/
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return [2 /*return*/];
|
|
250
|
-
}
|
|
251
|
-
if (!this.rest.clientId) {
|
|
252
|
-
// if no clientId, the token is from external source, cannot revoke
|
|
253
|
-
// no clientSecret is fine, since PKCE doesn't have clientSecret
|
|
254
|
-
return [2 /*return*/];
|
|
255
|
-
}
|
|
256
|
-
temp = (_c = tokenToRevoke !== null && tokenToRevoke !== void 0 ? tokenToRevoke : (_b = this.token) === null || _b === void 0 ? void 0 : _b.access_token) !== null && _c !== void 0 ? _c : (_d = this.token) === null || _d === void 0 ? void 0 : _d.refresh_token;
|
|
257
|
-
return [4 /*yield*/, this.restapi(null)
|
|
258
|
-
.oauth()
|
|
259
|
-
.revoke()
|
|
260
|
-
.post({ token: temp, client_id: this.rest.clientId })];
|
|
261
|
-
case 5:
|
|
262
|
-
_e.sent(); // todo: spec doesn't allow client_id
|
|
263
|
-
this.token = undefined;
|
|
264
|
-
return [2 /*return*/];
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
};
|
|
269
|
-
RingCentral.prototype.restapi = function (apiVersion) {
|
|
270
|
-
if (apiVersion === void 0) { apiVersion = "v1.0"; }
|
|
132
|
+
async revoke(tokenToRevoke) {
|
|
133
|
+
for (const sdkExtension of this.sdkExtensions) {
|
|
134
|
+
await sdkExtension.revoke();
|
|
135
|
+
}
|
|
136
|
+
if (!tokenToRevoke && !this.token) {
|
|
137
|
+
// nothing to revoke
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (!this.rest.clientId) {
|
|
141
|
+
// if no clientId, the token is from external source, cannot revoke
|
|
142
|
+
// no clientSecret is fine, since PKCE doesn't have clientSecret
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const temp = tokenToRevoke ?? this.token?.access_token ??
|
|
146
|
+
this.token?.refresh_token;
|
|
147
|
+
await this.restapi(null)
|
|
148
|
+
.oauth()
|
|
149
|
+
.revoke()
|
|
150
|
+
.post({ token: temp, client_id: this.rest.clientId }); // todo: spec doesn't allow client_id
|
|
151
|
+
this.token = undefined;
|
|
152
|
+
}
|
|
153
|
+
restapi(apiVersion = "v1.0") {
|
|
271
154
|
return new index_js_1.default(this, apiVersion);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
if (version === void 0) { version = "v2"; }
|
|
155
|
+
}
|
|
156
|
+
scim(version = "v2") {
|
|
275
157
|
return new index_js_2.default(this, version);
|
|
276
|
-
}
|
|
277
|
-
|
|
158
|
+
}
|
|
159
|
+
analytics() {
|
|
278
160
|
return new index_js_3.default(this);
|
|
279
|
-
}
|
|
280
|
-
|
|
161
|
+
}
|
|
162
|
+
teamMessaging() {
|
|
281
163
|
return new index_js_7.default(this);
|
|
282
|
-
}
|
|
283
|
-
|
|
164
|
+
}
|
|
165
|
+
ai() {
|
|
284
166
|
return new index_js_4.default(this);
|
|
285
|
-
}
|
|
286
|
-
|
|
167
|
+
}
|
|
168
|
+
rcvideo() {
|
|
287
169
|
return new index_js_5.default(this);
|
|
288
|
-
}
|
|
289
|
-
|
|
170
|
+
}
|
|
171
|
+
webinar() {
|
|
290
172
|
return new index_js_6.default(this);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
logger: {
|
|
294
|
-
debug: function () { },
|
|
295
|
-
log: function () { },
|
|
296
|
-
info: function () { },
|
|
297
|
-
warn: function () { },
|
|
298
|
-
error: function () { },
|
|
299
|
-
},
|
|
300
|
-
};
|
|
301
|
-
return RingCentral;
|
|
302
|
-
}());
|
|
173
|
+
}
|
|
174
|
+
}
|
|
303
175
|
exports.default = RingCentral;
|
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
|
|
40
|
-
|
|
3
|
+
class Index {
|
|
4
|
+
rc;
|
|
5
|
+
_parent;
|
|
6
|
+
constructor(_parent) {
|
|
41
7
|
this._parent = _parent;
|
|
42
8
|
this.rc = _parent.rc;
|
|
43
9
|
}
|
|
44
|
-
|
|
45
|
-
return
|
|
46
|
-
}
|
|
10
|
+
path() {
|
|
11
|
+
return `${this._parent.path()}/speaker-diarize`;
|
|
12
|
+
}
|
|
47
13
|
/**
|
|
48
14
|
* Identifies who said what. Speaker diarization will identify the speaker for each segment
|
|
49
15
|
* so you can tell who spoke the sentence, paragraph, or phrase.
|
|
@@ -53,19 +19,9 @@ var Index = /** @class */ (function () {
|
|
|
53
19
|
* Rate Limit Group: Heavy
|
|
54
20
|
* App Permission: AI
|
|
55
21
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
case 0: return [4 /*yield*/, this.rc.post(this.path(), diarizeInput, queryParams, restRequestConfig)];
|
|
62
|
-
case 1:
|
|
63
|
-
r = _a.sent();
|
|
64
|
-
return [2 /*return*/, r.data];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
return Index;
|
|
70
|
-
}());
|
|
22
|
+
async post(diarizeInput, queryParams, restRequestConfig) {
|
|
23
|
+
const r = await this.rc.post(this.path(), diarizeInput, queryParams, restRequestConfig);
|
|
24
|
+
return r.data;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
71
27
|
exports.default = Index;
|
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
|
|
40
|
-
|
|
3
|
+
class Index {
|
|
4
|
+
rc;
|
|
5
|
+
_parent;
|
|
6
|
+
constructor(_parent) {
|
|
41
7
|
this._parent = _parent;
|
|
42
8
|
this.rc = _parent.rc;
|
|
43
9
|
}
|
|
44
|
-
|
|
45
|
-
return
|
|
46
|
-
}
|
|
10
|
+
path() {
|
|
11
|
+
return `${this._parent.path()}/speaker-identify`;
|
|
12
|
+
}
|
|
47
13
|
/**
|
|
48
14
|
* Returns Speaker Identification to the provided webhook URI.
|
|
49
15
|
* HTTP Method: post
|
|
@@ -51,19 +17,9 @@ var Index = /** @class */ (function () {
|
|
|
51
17
|
* Rate Limit Group: Heavy
|
|
52
18
|
* App Permission: AI
|
|
53
19
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
case 0: return [4 /*yield*/, this.rc.post(this.path(), identifyInput, queryParams, restRequestConfig)];
|
|
60
|
-
case 1:
|
|
61
|
-
r = _a.sent();
|
|
62
|
-
return [2 /*return*/, r.data];
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
return Index;
|
|
68
|
-
}());
|
|
20
|
+
async post(identifyInput, queryParams, restRequestConfig) {
|
|
21
|
+
const r = await this.rc.post(this.path(), identifyInput, queryParams, restRequestConfig);
|
|
22
|
+
return r.data;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
69
25
|
exports.default = Index;
|