@rc-ex/core 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/FormData.d.ts +1 -1
- package/lib/Rest.d.ts +3 -3
- package/lib/Rest.js +14 -10
- package/lib/Rest.js.map +1 -1
- package/lib/definitions/AIInsights.d.ts +27 -0
- package/lib/definitions/{ContentList.js → AIInsights.js} +1 -1
- package/lib/definitions/AIInsights.js.map +1 -0
- package/lib/definitions/AIScoreInsightUnit.d.ts +9 -0
- package/lib/definitions/{ContentContextData.js → AIScoreInsightUnit.js} +1 -1
- package/lib/definitions/AIScoreInsightUnit.js.map +1 -0
- package/lib/definitions/AccountPresenceEventBody.d.ts +5 -1
- package/lib/definitions/BaseCallLogRecord.d.ts +3 -5
- package/lib/definitions/BaseTokenRequest.d.ts +1 -1
- package/lib/definitions/BatchProvisionUsersRequestItem.d.ts +0 -6
- package/lib/definitions/BatchProvisionUsersRequestItemContact.d.ts +4 -0
- package/lib/definitions/BulletedSummaryInsightUnit.d.ts +9 -0
- package/lib/definitions/BulletedSummaryInsightUnit.js +3 -0
- package/lib/definitions/BulletedSummaryInsightUnit.js.map +1 -0
- package/lib/definitions/CallLogRecord.d.ts +3 -5
- package/lib/definitions/CallLogRecordLegInfo.d.ts +4 -6
- package/lib/definitions/CallMonitoringGroup.d.ts +4 -0
- package/lib/definitions/CallMonitoringGroupSite.d.ts +11 -0
- package/lib/definitions/CallMonitoringGroupSite.js +3 -0
- package/lib/definitions/CallMonitoringGroupSite.js.map +1 -0
- package/lib/definitions/CallStatusInfo.d.ts +16 -4
- package/lib/definitions/ContactResource.d.ts +0 -21
- package/lib/definitions/CreateCallMonitoringGroupRequest.d.ts +4 -0
- package/lib/definitions/CreateCallMonitoringGroupRequestSite.d.ts +7 -0
- package/lib/definitions/CreateCallMonitoringGroupRequestSite.js +3 -0
- package/lib/definitions/CreateCallMonitoringGroupRequestSite.js.map +1 -0
- package/lib/definitions/DefaultUserRole.d.ts +4 -0
- package/lib/definitions/DeviceResource.d.ts +4 -0
- package/lib/definitions/ExtensionCreationRequest.d.ts +5 -0
- package/lib/definitions/ExtensionRegionalSettingRequest.d.ts +5 -0
- package/lib/definitions/GetMessageInfoResponse.d.ts +4 -0
- package/lib/definitions/GetRecordingInsightsParameters.d.ts +10 -0
- package/lib/definitions/GetRecordingInsightsParameters.js +3 -0
- package/lib/definitions/GetRecordingInsightsParameters.js.map +1 -0
- package/lib/definitions/GetTokenRequest.d.ts +1 -1
- package/lib/definitions/HighlightsInsightUnit.d.ts +29 -0
- package/lib/definitions/{CallSessionStatusInfo.js → HighlightsInsightUnit.js} +1 -1
- package/lib/definitions/HighlightsInsightUnit.js.map +1 -0
- package/lib/definitions/InternalDeliveryMode.d.ts +14 -0
- package/lib/definitions/{ContentBodyFormatted.js → InternalDeliveryMode.js} +1 -1
- package/lib/definitions/InternalDeliveryMode.js.map +1 -0
- package/lib/definitions/ListCallMonitoringGroupsParameters.d.ts +1 -1
- package/lib/definitions/ListDirectoryEntriesParameters.d.ts +2 -2
- package/lib/definitions/ListExtensionDevicesParameters.d.ts +2 -2
- package/lib/definitions/ListUserTemplatesParameters.d.ts +1 -1
- package/lib/definitions/NextStepsInsightUnit.d.ts +29 -0
- package/lib/definitions/NextStepsInsightUnit.js +3 -0
- package/lib/definitions/NextStepsInsightUnit.js.map +1 -0
- package/lib/definitions/NotificationDeliveryMode.d.ts +7 -1
- package/lib/definitions/PartySuperviseResponse.d.ts +3 -1
- package/lib/definitions/PeerInfo.d.ts +1 -1
- package/lib/definitions/RSConversationalInsightsUnit.d.ts +29 -0
- package/lib/definitions/RSConversationalInsightsUnit.js +3 -0
- package/lib/definitions/RSConversationalInsightsUnit.js.map +1 -0
- package/lib/definitions/ReadDirectoryEntryParameters.d.ts +2 -2
- package/lib/definitions/ReadMultichannelCallRecordingContentParameters.d.ts +14 -0
- package/lib/definitions/ReadMultichannelCallRecordingContentParameters.js +3 -0
- package/lib/definitions/ReadMultichannelCallRecordingContentParameters.js.map +1 -0
- package/lib/definitions/RecordingInsights.d.ts +78 -0
- package/lib/definitions/{CallQueueResource.js → RecordingInsights.js} +1 -1
- package/lib/definitions/RecordingInsights.js.map +1 -0
- package/lib/definitions/ScimUserSearchResponse.d.ts +2 -2
- package/lib/definitions/ScimUserShortInfo.d.ts +50 -0
- package/lib/definitions/ScimUserShortInfo.js +3 -0
- package/lib/definitions/ScimUserShortInfo.js.map +1 -0
- package/lib/definitions/SearchDirectoryEntriesParameters.d.ts +2 -2
- package/lib/definitions/{ServiceInfoPlan.d.ts → ServiceInfoPlanV2.d.ts} +2 -5
- package/lib/definitions/ServiceInfoPlanV2.js +3 -0
- package/lib/definitions/ServiceInfoPlanV2.js.map +1 -0
- package/lib/definitions/ServiceInfoV2.d.ts +2 -2
- package/lib/definitions/ShippingInfo.d.ts +1 -1
- package/lib/definitions/SipData.d.ts +20 -0
- package/lib/definitions/{ContentModel.js → SipData.js} +1 -1
- package/lib/definitions/SipData.js.map +1 -0
- package/lib/definitions/SummaryInsightUnit.d.ts +23 -0
- package/lib/definitions/SummaryInsightUnit.js +3 -0
- package/lib/definitions/SummaryInsightUnit.js.map +1 -0
- package/lib/definitions/SyncAccountCallLogParameters.d.ts +4 -1
- package/lib/definitions/SyncMessagesParameters.d.ts +3 -3
- package/lib/definitions/SyncUserCallLogParameters.d.ts +4 -3
- package/lib/definitions/TMMessageAttachmentInfo.d.ts +9 -0
- package/lib/definitions/TelephonySessionsEventPartyInfo.d.ts +48 -2
- package/lib/definitions/TemplateInfo.d.ts +5 -1
- package/lib/definitions/TranscriptInsightUnit.d.ts +32 -0
- package/lib/definitions/TranscriptInsightUnit.js +3 -0
- package/lib/definitions/TranscriptInsightUnit.js.map +1 -0
- package/lib/definitions/TransitionInfo.d.ts +13 -0
- package/lib/definitions/{IdentitiesList.js → TransitionInfo.js} +1 -1
- package/lib/definitions/TransitionInfo.js.map +1 -0
- package/lib/definitions/UiCallInfo.d.ts +13 -0
- package/lib/definitions/{IdentityModel.js → UiCallInfo.js} +1 -1
- package/lib/definitions/UiCallInfo.js.map +1 -0
- package/lib/definitions/UiCallInfoRecord.d.ts +12 -0
- package/lib/definitions/{GroupResource.js → UiCallInfoRecord.js} +1 -1
- package/lib/definitions/UiCallInfoRecord.js.map +1 -0
- package/lib/definitions/VoicemailOwnerResource.d.ts +14 -0
- package/lib/definitions/VoicemailOwnerResource.js +3 -0
- package/lib/definitions/VoicemailOwnerResource.js.map +1 -0
- package/lib/index.js +7 -3
- package/lib/index.js.map +1 -1
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.d.ts +18 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js +24 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.js.map +1 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.d.ts +11 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js +24 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.js.map +1 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.d.ts +11 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js +24 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.js.map +1 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/index.d.ts +11 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/index.js +24 -0
- package/lib/paths/Ai/Ringsense/V1/Public/Accounts/index.js.map +1 -0
- package/lib/paths/Ai/Ringsense/V1/Public/index.d.ts +10 -0
- package/lib/paths/Ai/Ringsense/V1/Public/index.js +20 -0
- package/lib/paths/Ai/Ringsense/V1/Public/index.js.map +1 -0
- package/lib/paths/{Cx/SocialMessaging → Ai/Ringsense}/V1/index.d.ts +2 -4
- package/lib/paths/{Cx/SocialMessaging → Ai/Ringsense}/V1/index.js +3 -7
- package/lib/paths/Ai/Ringsense/V1/index.js.map +1 -0
- package/lib/paths/{Cx/SocialMessaging → Ai/Ringsense}/index.js +1 -1
- package/lib/paths/Ai/Ringsense/index.js.map +1 -0
- package/lib/paths/Ai/index.d.ts +2 -0
- package/lib/paths/Ai/index.js +4 -0
- package/lib/paths/Ai/index.js.map +1 -1
- package/lib/paths/Restapi/Account/CallLog/index.d.ts +3 -1
- package/lib/paths/Restapi/Account/CallLog/index.js +3 -1
- package/lib/paths/Restapi/Account/CallLog/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/AddressBook/Contact/index.d.ts +3 -3
- package/lib/paths/Restapi/Account/Extension/AddressBook/Contact/index.js +3 -3
- package/lib/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.d.ts +5 -3
- package/lib/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js +5 -3
- package/lib/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/Device/index.d.ts +2 -2
- package/lib/paths/Restapi/Account/Extension/Device/index.js +2 -2
- package/lib/paths/Restapi/Account/Extension/MessageStore/index.d.ts +12 -13
- package/lib/paths/Restapi/Account/Extension/MessageStore/index.js +12 -13
- package/lib/paths/Restapi/Account/Extension/MessageStore/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/Presence/index.d.ts +1 -1
- package/lib/paths/Restapi/Account/Extension/Presence/index.js +1 -1
- package/lib/paths/Restapi/Account/PhoneNumber/index.d.ts +1 -1
- package/lib/paths/Restapi/Account/PhoneNumber/index.js +1 -1
- package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.d.ts +20 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js +27 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.d.ts +11 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js +24 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/index.d.ts +10 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/index.js +20 -0
- package/lib/paths/Restapi/Account/Telephony/Metadata/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.d.ts +3 -1
- package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js +3 -1
- package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Telephony/index.d.ts +2 -0
- package/lib/paths/Restapi/Account/Telephony/index.js +4 -0
- package/lib/paths/Restapi/Account/Telephony/index.js.map +1 -1
- package/lib/paths/TeamMessaging/V1/Persons/index.d.ts +3 -1
- package/lib/paths/TeamMessaging/V1/Persons/index.js +3 -1
- package/lib/paths/TeamMessaging/V1/Persons/index.js.map +1 -1
- package/package.json +6 -6
- package/src/Rest.ts +31 -19
- package/src/definitions/AIInsights.ts +34 -0
- package/src/definitions/AIScoreInsightUnit.ts +10 -0
- package/src/definitions/AccountPresenceEventBody.ts +6 -1
- package/src/definitions/BaseCallLogRecord.ts +4 -5
- package/src/definitions/BaseTokenRequest.ts +1 -1
- package/src/definitions/BatchProvisionUsersRequestItem.ts +0 -7
- package/src/definitions/BatchProvisionUsersRequestItemContact.ts +6 -0
- package/src/definitions/BulletedSummaryInsightUnit.ts +10 -0
- package/src/definitions/CallLogRecord.ts +4 -5
- package/src/definitions/CallLogRecordLegInfo.ts +7 -6
- package/src/definitions/CallMonitoringGroup.ts +6 -0
- package/src/definitions/CallMonitoringGroupSite.ts +13 -0
- package/src/definitions/CallStatusInfo.ts +22 -6
- package/src/definitions/ContactResource.ts +0 -26
- package/src/definitions/CreateCallMonitoringGroupRequest.ts +6 -0
- package/src/definitions/CreateCallMonitoringGroupRequestSite.ts +8 -0
- package/src/definitions/DefaultUserRole.ts +5 -0
- package/src/definitions/DeviceResource.ts +5 -0
- package/src/definitions/ExtensionCreationRequest.ts +6 -0
- package/src/definitions/ExtensionRegionalSettingRequest.ts +5 -0
- package/src/definitions/GetMessageInfoResponse.ts +5 -0
- package/src/definitions/GetRecordingInsightsParameters.ts +11 -0
- package/src/definitions/GetTokenRequest.ts +1 -1
- package/src/definitions/HighlightsInsightUnit.ts +33 -0
- package/src/definitions/InternalDeliveryMode.ts +16 -0
- package/src/definitions/ListCallMonitoringGroupsParameters.ts +1 -1
- package/src/definitions/ListDirectoryEntriesParameters.ts +2 -2
- package/src/definitions/ListExtensionDevicesParameters.ts +2 -2
- package/src/definitions/ListUserTemplatesParameters.ts +1 -1
- package/src/definitions/NextStepsInsightUnit.ts +33 -0
- package/src/definitions/NotificationDeliveryMode.ts +8 -1
- package/src/definitions/PartySuperviseResponse.ts +3 -1
- package/src/definitions/PeerInfo.ts +1 -1
- package/src/definitions/RSConversationalInsightsUnit.ts +33 -0
- package/src/definitions/ReadDirectoryEntryParameters.ts +2 -2
- package/src/definitions/ReadMultichannelCallRecordingContentParameters.ts +16 -0
- package/src/definitions/RecordingInsights.ts +92 -0
- package/src/definitions/ScimUserSearchResponse.ts +2 -2
- package/src/definitions/ScimUserShortInfo.ts +62 -0
- package/src/definitions/SearchDirectoryEntriesParameters.ts +2 -2
- package/src/definitions/{ServiceInfoPlan.ts → ServiceInfoPlanV2.ts} +2 -6
- package/src/definitions/ServiceInfoV2.ts +2 -2
- package/src/definitions/ShippingInfo.ts +1 -1
- package/src/definitions/SipData.ts +23 -0
- package/src/definitions/SummaryInsightUnit.ts +26 -0
- package/src/definitions/SyncAccountCallLogParameters.ts +4 -1
- package/src/definitions/SyncMessagesParameters.ts +3 -3
- package/src/definitions/SyncUserCallLogParameters.ts +4 -3
- package/src/definitions/TMMessageAttachmentInfo.ts +11 -0
- package/src/definitions/TelephonySessionsEventPartyInfo.ts +57 -2
- package/src/definitions/TemplateInfo.ts +6 -1
- package/src/definitions/TranscriptInsightUnit.ts +36 -0
- package/src/definitions/TransitionInfo.ts +16 -0
- package/src/definitions/UiCallInfo.ts +16 -0
- package/src/definitions/UiCallInfoRecord.ts +14 -0
- package/src/definitions/VoicemailOwnerResource.ts +16 -0
- package/src/index.ts +7 -3
- package/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.ts +31 -0
- package/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.ts +25 -0
- package/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.ts +25 -0
- package/src/paths/Ai/Ringsense/V1/Public/Accounts/index.ts +25 -0
- package/src/paths/Ai/Ringsense/V1/Public/index.ts +20 -0
- package/src/paths/{Cx/SocialMessaging → Ai/Ringsense}/V1/index.ts +3 -8
- package/src/paths/{Cx/SocialMessaging → Ai/Ringsense}/index.ts +1 -1
- package/src/paths/Ai/index.ts +5 -0
- package/src/paths/Restapi/Account/CallLog/index.ts +3 -1
- package/src/paths/Restapi/Account/Extension/AddressBook/Contact/index.ts +3 -3
- package/src/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.ts +5 -3
- package/src/paths/Restapi/Account/Extension/Device/index.ts +2 -2
- package/src/paths/Restapi/Account/Extension/MessageStore/index.ts +12 -13
- package/src/paths/Restapi/Account/Extension/Presence/index.ts +1 -1
- package/src/paths/Restapi/Account/PhoneNumber/index.ts +1 -1
- package/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.ts +33 -0
- package/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.ts +25 -0
- package/src/paths/Restapi/Account/Telephony/Metadata/index.ts +20 -0
- package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.ts +3 -1
- package/src/paths/Restapi/Account/Telephony/index.ts +5 -0
- package/src/paths/TeamMessaging/V1/Persons/index.ts +3 -1
- package/src/samples.md +4657 -4709
- package/lib/definitions/CallQueueResource.d.ts +0 -11
- package/lib/definitions/CallQueueResource.js.map +0 -1
- package/lib/definitions/CallSessionStatusInfo.d.ts +0 -20
- package/lib/definitions/CallSessionStatusInfo.js.map +0 -1
- package/lib/definitions/ContentBodyFormatted.d.ts +0 -12
- package/lib/definitions/ContentBodyFormatted.js.map +0 -1
- package/lib/definitions/ContentContextData.d.ts +0 -8
- package/lib/definitions/ContentContextData.js.map +0 -1
- package/lib/definitions/ContentList.d.ts +0 -13
- package/lib/definitions/ContentList.js.map +0 -1
- package/lib/definitions/ContentModel.d.ts +0 -218
- package/lib/definitions/ContentModel.js.map +0 -1
- package/lib/definitions/CostCenterResource.d.ts +0 -15
- package/lib/definitions/CostCenterResource.js +0 -3
- package/lib/definitions/CostCenterResource.js.map +0 -1
- package/lib/definitions/CreateSocialMessagingContentRequest.d.ts +0 -110
- package/lib/definitions/CreateSocialMessagingContentRequest.js +0 -3
- package/lib/definitions/CreateSocialMessagingContentRequest.js.map +0 -1
- package/lib/definitions/DirectoryRoleResource.d.ts +0 -16
- package/lib/definitions/DirectoryRoleResource.js +0 -3
- package/lib/definitions/DirectoryRoleResource.js.map +0 -1
- package/lib/definitions/GroupResource.d.ts +0 -11
- package/lib/definitions/GroupResource.js.map +0 -1
- package/lib/definitions/IdentitiesList.d.ts +0 -13
- package/lib/definitions/IdentitiesList.js.map +0 -1
- package/lib/definitions/IdentityExtraValues.d.ts +0 -6
- package/lib/definitions/IdentityExtraValues.js +0 -3
- package/lib/definitions/IdentityExtraValues.js.map +0 -1
- package/lib/definitions/IdentityModel.d.ts +0 -199
- package/lib/definitions/IdentityModel.js.map +0 -1
- package/lib/definitions/ListSocialMessagingContentsParameters.d.ts +0 -68
- package/lib/definitions/ListSocialMessagingContentsParameters.js +0 -3
- package/lib/definitions/ListSocialMessagingContentsParameters.js.map +0 -1
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.d.ts +0 -47
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.js +0 -3
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.js.map +0 -1
- package/lib/definitions/ServiceInfoPlan.js +0 -3
- package/lib/definitions/ServiceInfoPlan.js.map +0 -1
- package/lib/definitions/SocMsgContentAttachment.d.ts +0 -77
- package/lib/definitions/SocMsgContentAttachment.js +0 -3
- package/lib/definitions/SocMsgContentAttachment.js.map +0 -1
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.d.ts +0 -65
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js +0 -83
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js.map +0 -1
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +0 -34
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +0 -50
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +0 -1
- package/lib/paths/Cx/SocialMessaging/V1/index.js.map +0 -1
- package/lib/paths/Cx/SocialMessaging/index.js.map +0 -1
- package/lib/paths/Cx/index.d.ts +0 -9
- package/lib/paths/Cx/index.js +0 -19
- package/lib/paths/Cx/index.js.map +0 -1
- package/src/definitions/CallQueueResource.ts +0 -13
- package/src/definitions/CallSessionStatusInfo.ts +0 -26
- package/src/definitions/ContentBodyFormatted.ts +0 -14
- package/src/definitions/ContentContextData.ts +0 -9
- package/src/definitions/ContentList.ts +0 -16
- package/src/definitions/ContentModel.ts +0 -299
- package/src/definitions/CostCenterResource.ts +0 -18
- package/src/definitions/CreateSocialMessagingContentRequest.ts +0 -126
- package/src/definitions/DirectoryRoleResource.ts +0 -20
- package/src/definitions/GroupResource.ts +0 -13
- package/src/definitions/IdentitiesList.ts +0 -16
- package/src/definitions/IdentityExtraValues.ts +0 -7
- package/src/definitions/IdentityModel.ts +0 -248
- package/src/definitions/ListSocialMessagingContentsParameters.ts +0 -85
- package/src/definitions/ListSocialMessagingIdentitiesParameters.ts +0 -61
- package/src/definitions/SocMsgContentAttachment.ts +0 -86
- package/src/paths/Cx/SocialMessaging/V1/Contents/index.ts +0 -101
- package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +0 -58
- package/src/paths/Cx/index.ts +0 -18
- /package/lib/paths/{Cx/SocialMessaging → Ai/Ringsense}/index.d.ts +0 -0
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import type IdentityExtraValues from './IdentityExtraValues';
|
|
2
|
-
|
|
3
|
-
interface IdentityModel {
|
|
4
|
-
/**
|
|
5
|
-
* Identity identifier.
|
|
6
|
-
* Required
|
|
7
|
-
* Example: 506d9e817aa58d1259000f12
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Identity's avatar URI
|
|
13
|
-
* Format: uri
|
|
14
|
-
* Example: https://example.com/assets/avatar/default-79fd530c58c2a6b83a11fcc0e842ed7023ceb69292cfeb857bc2af2c624b90fd.png
|
|
15
|
-
*/
|
|
16
|
-
avatarUri?: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Company.
|
|
20
|
-
* Example: Test Company
|
|
21
|
-
*/
|
|
22
|
-
company?: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Creation time of the resource.
|
|
26
|
-
* Required
|
|
27
|
-
* Format: date-time
|
|
28
|
-
* Example: 2023-02-04T12:43:07Z
|
|
29
|
-
*/
|
|
30
|
-
creationTime?: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Display name of identity
|
|
34
|
-
* Example: John Doe
|
|
35
|
-
*/
|
|
36
|
-
displayName?: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Email address.
|
|
40
|
-
* Format: email
|
|
41
|
-
* Example: user@example.com
|
|
42
|
-
*/
|
|
43
|
-
emailAddress?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*/
|
|
47
|
-
extraValues?: IdentityExtraValues;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* FirstName.
|
|
51
|
-
* Example: John
|
|
52
|
-
*/
|
|
53
|
-
firstName?: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Gender.
|
|
57
|
-
* Example: Woman
|
|
58
|
-
*/
|
|
59
|
-
gender?: 'Man' | 'Woman';
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Phone number.
|
|
63
|
-
* Example: +33634231224
|
|
64
|
-
*/
|
|
65
|
-
homePhone?: string;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Identity group identifier which references the identity group that contains
|
|
69
|
-
* all information (phone, notes, etc). Multiple identities may belong to
|
|
70
|
-
* a single group. If the parameter value is null, it means that identity
|
|
71
|
-
* does not belong to a group or have extra information
|
|
72
|
-
* Example: 54085e5b7aa58d8b5d00006c
|
|
73
|
-
*/
|
|
74
|
-
identityGroupId?: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Either Agent or Customer
|
|
78
|
-
*/
|
|
79
|
-
identityType?: 'Agent' | 'Customer';
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* LastName.
|
|
83
|
-
* Example: Doe
|
|
84
|
-
*/
|
|
85
|
-
lastName?: string;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Phone number.
|
|
89
|
-
* Example: +33634231224
|
|
90
|
-
*/
|
|
91
|
-
mobilePhone?: string;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Screen name of identity
|
|
95
|
-
* Example: John D.
|
|
96
|
-
*/
|
|
97
|
-
screenName?: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Type of identity
|
|
101
|
-
* Required
|
|
102
|
-
*/
|
|
103
|
-
type?:
|
|
104
|
-
| 'AppleMessagesForBusiness'
|
|
105
|
-
| 'Email'
|
|
106
|
-
| 'EngageMessaging'
|
|
107
|
-
| 'Facebook'
|
|
108
|
-
| 'GoogleMyBusiness'
|
|
109
|
-
| 'Instagram'
|
|
110
|
-
| 'Linkedin'
|
|
111
|
-
| 'Twitter'
|
|
112
|
-
| 'Viber'
|
|
113
|
-
| 'WhatsApp'
|
|
114
|
-
| 'Youtube';
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The time when the last modification was completed.
|
|
118
|
-
* Required
|
|
119
|
-
* Format: date-time
|
|
120
|
-
* Example: 2023-02-04T12:43:07Z
|
|
121
|
-
*/
|
|
122
|
-
lastModifiedTime?: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* List of the associated user identifiers who can use the identity
|
|
126
|
-
*/
|
|
127
|
-
userIds?: string[];
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* UUID of identity
|
|
131
|
-
* Example: 9680ab94-3b78-495c-bb2c-a969954d8260
|
|
132
|
-
*/
|
|
133
|
-
uuid?: string;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Device info of the identity. Applicable to RingCX Digital Messaging channels only
|
|
137
|
-
* Example: iPhone (iPhone); iOS 15.0.2
|
|
138
|
-
*/
|
|
139
|
-
mobileDeviceInfo?: string;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Facebook biography of the identity. Applicable to Facebook and Messenger channels only
|
|
143
|
-
* Example: Painter living in Paris
|
|
144
|
-
*/
|
|
145
|
-
fbBio?: string;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Facebook category of the identity. Applicable to Facebook and Messenger channels only
|
|
149
|
-
* Example: Computers/Internet
|
|
150
|
-
*/
|
|
151
|
-
fbCategory?: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Facebook locale of the identity. Applicable to Facebook and Messenger channels only
|
|
155
|
-
* Example: fr_FR
|
|
156
|
-
*/
|
|
157
|
-
fbLocale?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Instagram followers count of the identity. Applicable to Instagram and InstagramMessaging channels only
|
|
161
|
-
* Format: int32
|
|
162
|
-
* Example: 10
|
|
163
|
-
*/
|
|
164
|
-
igFollowersCount?: number;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Twitter description of the identity. Applicable to Twitter channels only
|
|
168
|
-
* Example: Software Engineer
|
|
169
|
-
*/
|
|
170
|
-
twDescription?: string;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Twitter followers count of the identity. Applicable to Twitter channels only
|
|
174
|
-
* Format: int32
|
|
175
|
-
* Example: 10
|
|
176
|
-
*/
|
|
177
|
-
twFollowersCount?: number;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Count of Twitter accounts followed by the identity. Applicable to Twitter channels only
|
|
181
|
-
* Format: int32
|
|
182
|
-
* Example: 500
|
|
183
|
-
*/
|
|
184
|
-
twFollowingCount?: number;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Count of tweets of the identity. Applicable to Twitter channels only
|
|
188
|
-
* Format: int32
|
|
189
|
-
* Example: 42
|
|
190
|
-
*/
|
|
191
|
-
twStatusesCount?: number;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Twitter location of the identity. Applicable to Twitter channels only
|
|
195
|
-
* Example: Paris
|
|
196
|
-
*/
|
|
197
|
-
twLocation?: string;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Viber API version of the identity. Applicable to Viber channels only
|
|
201
|
-
* Example: 10
|
|
202
|
-
*/
|
|
203
|
-
apiVersion?: string;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Viber country of the identity. Applicable to Viber channels only
|
|
207
|
-
* Example: FR
|
|
208
|
-
*/
|
|
209
|
-
country?: string;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Viber device type of the identity. Applicable to Viber channels only
|
|
213
|
-
* Example: SM-G970U1
|
|
214
|
-
*/
|
|
215
|
-
deviceType?: string;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Viber language of the identity. Applicable to Viber channels only
|
|
219
|
-
* Example: fr-FR
|
|
220
|
-
*/
|
|
221
|
-
language?: string;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Viber mobile country code of the identity. Applicable to Viber channels only
|
|
225
|
-
* Example: 1
|
|
226
|
-
*/
|
|
227
|
-
mcc?: string;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Viber mobile network code of the identity. Applicable to Viber channels only
|
|
231
|
-
* Example: 220
|
|
232
|
-
*/
|
|
233
|
-
mnc?: string;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Viber primary device OS of the identity. Applicable to Viber channels only
|
|
237
|
-
* Example: Android 11
|
|
238
|
-
*/
|
|
239
|
-
primaryDeviceOs?: string;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Viber application version of the identity. Applicable to Viber channels only
|
|
243
|
-
* Example: 19.5.0
|
|
244
|
-
*/
|
|
245
|
-
viberVersion?: string;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export default IdentityModel;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Query parameters for operation listSocialMessagingContents
|
|
3
|
-
*/
|
|
4
|
-
interface ListSocialMessagingContentsParameters {
|
|
5
|
-
/**
|
|
6
|
-
* Filter based on the specified intervention identifiers
|
|
7
|
-
* Example: 7f946431b6eebffafae642cc,re946431b6eebffafae642cc
|
|
8
|
-
*/
|
|
9
|
-
interventionIds?: string[];
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Filter based on the specified identity identifiers
|
|
13
|
-
* Example: 7f946431b6eebffafae642cc,re946431b6eebffafae642cc
|
|
14
|
-
*/
|
|
15
|
-
authorIdentityIds?: string[];
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Filter based on the specified identity group identifiers
|
|
19
|
-
* Example: 7f946431b6eebffafae642cc,re946431b6eebffafae642cc
|
|
20
|
-
*/
|
|
21
|
-
authorIdentityGroupIds?: string[];
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Filter based on the specified channel identifiers
|
|
25
|
-
* Example: 7f946431b6eebffafae642cc
|
|
26
|
-
*/
|
|
27
|
-
channelIds?: string[];
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Direction of the content.
|
|
31
|
-
*
|
|
32
|
-
* * Incoming contents are received from a channel.
|
|
33
|
-
* * Outgoing contents are exported to a channel.
|
|
34
|
-
* Example: Incoming
|
|
35
|
-
*/
|
|
36
|
-
contentDirection?: 'Incoming' | 'Outgoing';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Filter based on the specified thread identifiers
|
|
40
|
-
* Example: 7f946431b6eebffafae642cc
|
|
41
|
-
*/
|
|
42
|
-
threadIds?: string[];
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Filter based on the specified text(s). Provided multiple times, the values are ANDed
|
|
46
|
-
*/
|
|
47
|
-
text?: string[];
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Filter for specified status
|
|
51
|
-
*/
|
|
52
|
-
status?: ('New' | 'Assigned' | 'Replied' | 'UserReply' | 'UserInitiated' | 'Ignored')[];
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Ordering by creationTime and lastModifiedTime is descending by default.
|
|
56
|
-
* Example: +creationTime
|
|
57
|
-
* Default: -creationTime
|
|
58
|
-
*/
|
|
59
|
-
orderBy?:
|
|
60
|
-
| '-creationTime'
|
|
61
|
-
| '+creationTime'
|
|
62
|
-
| 'creationTime'
|
|
63
|
-
| '-lastModifiedTime'
|
|
64
|
-
| '+lastModifiedTime'
|
|
65
|
-
| 'lastModifiedTime';
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The token indicating the particular page of the result set to be retrieved.
|
|
69
|
-
* If omitted the first page will be returned.
|
|
70
|
-
*/
|
|
71
|
-
pageToken?: string;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* The number of items per page. If provided value in the request
|
|
75
|
-
* is greater than a maximum, the maximum value is applied
|
|
76
|
-
* Maximum: 1000
|
|
77
|
-
* Minimum: 1
|
|
78
|
-
* Format: int32
|
|
79
|
-
* Example: 100
|
|
80
|
-
* Default: 100
|
|
81
|
-
*/
|
|
82
|
-
perPage?: number;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export default ListSocialMessagingContentsParameters;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Query parameters for operation listSocialMessagingIdentities
|
|
3
|
-
*/
|
|
4
|
-
interface ListSocialMessagingIdentitiesParameters {
|
|
5
|
-
/**
|
|
6
|
-
* Filter based on the specified channelId.
|
|
7
|
-
*/
|
|
8
|
-
channelId?: string;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Filter based on the specified `identityGroupIds` (separated by commas)
|
|
12
|
-
*/
|
|
13
|
-
identityGroupIds?: string[];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Either Agent or Customer
|
|
17
|
-
*/
|
|
18
|
-
identityType?: 'Agent' | 'Customer';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Filter based on the specified `userId`
|
|
22
|
-
*/
|
|
23
|
-
userId?: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Filter based on the specified `uuid`
|
|
27
|
-
*/
|
|
28
|
-
uuid?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Ordering by creationTime and lastModifiedTime is descending by default.
|
|
32
|
-
* Example: +creationTime
|
|
33
|
-
* Default: -creationTime
|
|
34
|
-
*/
|
|
35
|
-
orderBy?:
|
|
36
|
-
| '-creationTime'
|
|
37
|
-
| '+creationTime'
|
|
38
|
-
| 'creationTime'
|
|
39
|
-
| '-lastModifiedTime'
|
|
40
|
-
| '+lastModifiedTime'
|
|
41
|
-
| 'lastModifiedTime';
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The token indicating the particular page of the result set to be retrieved.
|
|
45
|
-
* If omitted the first page will be returned.
|
|
46
|
-
*/
|
|
47
|
-
pageToken?: string;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The number of items per page. If provided value in the request
|
|
51
|
-
* is greater than a maximum, the maximum value is applied
|
|
52
|
-
* Maximum: 1000
|
|
53
|
-
* Minimum: 1
|
|
54
|
-
* Format: int32
|
|
55
|
-
* Example: 100
|
|
56
|
-
* Default: 100
|
|
57
|
-
*/
|
|
58
|
-
perPage?: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export default ListSocialMessagingIdentitiesParameters;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
interface SocMsgContentAttachment {
|
|
2
|
-
/**
|
|
3
|
-
* Type of attachment, which is generally a MIME attachment type like `image/jpeg`, etc.
|
|
4
|
-
* Security level in RingCX determines what type of attachment is allowed.
|
|
5
|
-
* Based on the security level the following attachment types are supported.
|
|
6
|
-
*
|
|
7
|
-
* *'Strict'* level allows safe extensions below:
|
|
8
|
-
* Content name and supported types:
|
|
9
|
-
*
|
|
10
|
-
* - audio (AAC, MP3, OGG, M4A)
|
|
11
|
-
* - image (BMP, GIF, JPG, JPEG, PNG, SVG, WEBP)
|
|
12
|
-
* - pdf (PDF)
|
|
13
|
-
* - text (CSV, TXT, LOG)
|
|
14
|
-
* - video (AVI, FLV, M4V, MKV, MOV, MP4, MPG, QT, WMV)
|
|
15
|
-
* - other (AMR, DMS, VCARD, TIF, TIFF, MPEG)
|
|
16
|
-
*
|
|
17
|
-
* *'Relaxed'* level allows documents:
|
|
18
|
-
* Content name and supported types:
|
|
19
|
-
*
|
|
20
|
-
* - excel (XLS, XLSM, XLSX, XLC, XLT, XLTM, XLTX)
|
|
21
|
-
* - presentation (KEY, ODP, OTP)
|
|
22
|
-
* - powerpoint (PPS, PPT, PPTX, POT)
|
|
23
|
-
* - spreadsheet (Numbers - ODS, OTS)
|
|
24
|
-
* - word (DOC, DOCM, DOCX, DOTM, DOTX)
|
|
25
|
-
* - word_processing (Pages - ODT, OTT, RTF)
|
|
26
|
-
*
|
|
27
|
-
* *'Permissive'* level allows all documents.
|
|
28
|
-
*
|
|
29
|
-
* However, there are no security level restrictions for content posted through the channel
|
|
30
|
-
* Example: image/jpeg
|
|
31
|
-
*/
|
|
32
|
-
contentType?: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Creation time of the resource.
|
|
36
|
-
* Format: date-time
|
|
37
|
-
* Example: 2023-02-04T12:43:07Z
|
|
38
|
-
*/
|
|
39
|
-
creationTime?: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Specifies if attachment is embedded in content
|
|
43
|
-
*/
|
|
44
|
-
embedded?: boolean;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Filename of attachment
|
|
48
|
-
* Example: 0.jpeg
|
|
49
|
-
*/
|
|
50
|
-
filename?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Identifier of the attachment.
|
|
54
|
-
* Example: 54085e5b7aa58d8b5d00006c
|
|
55
|
-
*/
|
|
56
|
-
id?: string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Attachment privacy setting
|
|
60
|
-
* Default: true
|
|
61
|
-
*/
|
|
62
|
-
public?: boolean;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Size of attachment
|
|
66
|
-
* Format: int32
|
|
67
|
-
* Example: 217571
|
|
68
|
-
*/
|
|
69
|
-
size?: number;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The time when the last modification was completed.
|
|
73
|
-
* Format: date-time
|
|
74
|
-
* Example: 2023-02-04T12:43:07Z
|
|
75
|
-
*/
|
|
76
|
-
lastModifiedTime?: string;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Attachment URI
|
|
80
|
-
* Format: uri
|
|
81
|
-
* Example: https://example.digital.ringcentral.com/files/attachments/54085e5b7aa58d8b5d00006c
|
|
82
|
-
*/
|
|
83
|
-
uri?: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export default SocMsgContentAttachment;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import type CreateSocialMessagingContentRequest from '../../../../../definitions/CreateSocialMessagingContentRequest';
|
|
2
|
-
import type ListSocialMessagingContentsParameters from '../../../../../definitions/ListSocialMessagingContentsParameters';
|
|
3
|
-
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
4
|
-
|
|
5
|
-
class Index {
|
|
6
|
-
public rc: RingCentralInterface;
|
|
7
|
-
public _parent: ParentInterface;
|
|
8
|
-
public contentId: string | null;
|
|
9
|
-
|
|
10
|
-
public constructor(_parent: ParentInterface, contentId: string | null = null) {
|
|
11
|
-
this._parent = _parent;
|
|
12
|
-
this.rc = _parent.rc;
|
|
13
|
-
this.contentId = contentId;
|
|
14
|
-
}
|
|
15
|
-
public path(withParameter = true): string {
|
|
16
|
-
if (withParameter && this.contentId !== null) {
|
|
17
|
-
return `${this._parent.path()}/contents/${this.contentId}`;
|
|
18
|
-
}
|
|
19
|
-
return `${this._parent.path()}/contents`;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Returns a list of social messaging contents ordered by creation date. The default order is descending.
|
|
23
|
-
*
|
|
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
|
-
*
|
|
27
|
-
* The query parameters provided in request will be considered an AND operation to filter the list.
|
|
28
|
-
*
|
|
29
|
-
* A query parameter which is not specified or provided with the null value will be ignored.
|
|
30
|
-
*
|
|
31
|
-
* HTTP Method: get
|
|
32
|
-
* Endpoint: /cx/social-messaging/v1/contents
|
|
33
|
-
* Rate Limit Group: Light
|
|
34
|
-
* App Permission: SocialMessaging
|
|
35
|
-
*/
|
|
36
|
-
public async list(
|
|
37
|
-
queryParams?: ListSocialMessagingContentsParameters,
|
|
38
|
-
restRequestConfig?: RestRequestConfig,
|
|
39
|
-
): Promise<string> {
|
|
40
|
-
const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
|
|
41
|
-
return r.data;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Creates the new social messaging content for use in discussions.
|
|
46
|
-
*
|
|
47
|
-
* This request is used to reply to an already posted content or to initiate a discussion. If authorized, the
|
|
48
|
-
* authenticated user will be used as the content author.
|
|
49
|
-
*
|
|
50
|
-
* Content will be created and pushed asynchronously to the channel. When the content is successfully pushed to
|
|
51
|
-
* the channel, the `Content.Exported` event will be reported.
|
|
52
|
-
*
|
|
53
|
-
* The account context of this request is determined by the RC Account ID associated with the access token provided
|
|
54
|
-
* in the Authorization header.
|
|
55
|
-
*
|
|
56
|
-
* Replying to customer content is usually possible unless the channel or conversation is read only. Composing
|
|
57
|
-
* content, on the contrary, depends on the channel itself.
|
|
58
|
-
*
|
|
59
|
-
* - The channel may not support it and be purely reactive like Instagram, Messenger, etc.
|
|
60
|
-
*
|
|
61
|
-
* - Some channels (usually public accounts, like Twitter or Facebook pages) allow content publishing
|
|
62
|
-
* without targeting specific individuals.
|
|
63
|
-
*
|
|
64
|
-
* - Some channels (usually non-public media) require specific targeting (phone number for SMS, email address
|
|
65
|
-
* for email, customer_id, etc.) to be able to create content. This is channel-specific and detailed under the
|
|
66
|
-
* generic parameters.
|
|
67
|
-
*
|
|
68
|
-
* HTTP Method: post
|
|
69
|
-
* Endpoint: /cx/social-messaging/v1/contents
|
|
70
|
-
* Rate Limit Group: Light
|
|
71
|
-
* App Permission: SocialMessaging
|
|
72
|
-
*/
|
|
73
|
-
public async post(
|
|
74
|
-
createSocialMessagingContentRequest: CreateSocialMessagingContentRequest,
|
|
75
|
-
restRequestConfig?: RestRequestConfig,
|
|
76
|
-
): Promise<string> {
|
|
77
|
-
const r = await this.rc.post<string>(
|
|
78
|
-
this.path(false),
|
|
79
|
-
createSocialMessagingContentRequest,
|
|
80
|
-
undefined,
|
|
81
|
-
restRequestConfig,
|
|
82
|
-
);
|
|
83
|
-
return r.data;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Returns the social messaging content by ID specified in path.
|
|
88
|
-
* HTTP Method: get
|
|
89
|
-
* Endpoint: /cx/social-messaging/v1/contents/{contentId}
|
|
90
|
-
* Rate Limit Group: Light
|
|
91
|
-
* App Permission: SocialMessaging
|
|
92
|
-
*/
|
|
93
|
-
public async get(restRequestConfig?: RestRequestConfig): Promise<string> {
|
|
94
|
-
if (this.contentId === null) {
|
|
95
|
-
throw new Error('contentId must be specified.');
|
|
96
|
-
}
|
|
97
|
-
const r = await this.rc.get<string>(this.path(), undefined, restRequestConfig);
|
|
98
|
-
return r.data;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
export default Index;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type ListSocialMessagingIdentitiesParameters from '../../../../../definitions/ListSocialMessagingIdentitiesParameters';
|
|
2
|
-
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
3
|
-
|
|
4
|
-
class Index {
|
|
5
|
-
public rc: RingCentralInterface;
|
|
6
|
-
public _parent: ParentInterface;
|
|
7
|
-
public identityId: string | null;
|
|
8
|
-
|
|
9
|
-
public constructor(_parent: ParentInterface, identityId: string | null = null) {
|
|
10
|
-
this._parent = _parent;
|
|
11
|
-
this.rc = _parent.rc;
|
|
12
|
-
this.identityId = identityId;
|
|
13
|
-
}
|
|
14
|
-
public path(withParameter = true): string {
|
|
15
|
-
if (withParameter && this.identityId !== null) {
|
|
16
|
-
return `${this._parent.path()}/identities/${this.identityId}`;
|
|
17
|
-
}
|
|
18
|
-
return `${this._parent.path()}/identities`;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Returns a list of identities ordered by creation date. The default order is descending.
|
|
22
|
-
*
|
|
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
|
-
*
|
|
26
|
-
* The query parameters provided will be considered an AND operation to filter the list.
|
|
27
|
-
*
|
|
28
|
-
* A query parameter which is not specified or provided with the null value will be ignored.
|
|
29
|
-
*
|
|
30
|
-
* HTTP Method: get
|
|
31
|
-
* Endpoint: /cx/social-messaging/v1/identities
|
|
32
|
-
* Rate Limit Group: Light
|
|
33
|
-
* App Permission: SocialMessaging
|
|
34
|
-
*/
|
|
35
|
-
public async list(
|
|
36
|
-
queryParams?: ListSocialMessagingIdentitiesParameters,
|
|
37
|
-
restRequestConfig?: RestRequestConfig,
|
|
38
|
-
): Promise<string> {
|
|
39
|
-
const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
|
|
40
|
-
return r.data;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Returns an identity by ID specified in path.
|
|
45
|
-
* HTTP Method: get
|
|
46
|
-
* Endpoint: /cx/social-messaging/v1/identities/{identityId}
|
|
47
|
-
* Rate Limit Group: Light
|
|
48
|
-
* App Permission: SocialMessaging
|
|
49
|
-
*/
|
|
50
|
-
public async get(restRequestConfig?: RestRequestConfig): Promise<string> {
|
|
51
|
-
if (this.identityId === null) {
|
|
52
|
-
throw new Error('identityId must be specified.');
|
|
53
|
-
}
|
|
54
|
-
const r = await this.rc.get<string>(this.path(), undefined, restRequestConfig);
|
|
55
|
-
return r.data;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export default Index;
|
package/src/paths/Cx/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import SocialMessaging from './SocialMessaging';
|
|
2
|
-
import type { RingCentralInterface } from '../../types';
|
|
3
|
-
|
|
4
|
-
class Index {
|
|
5
|
-
public rc: RingCentralInterface;
|
|
6
|
-
|
|
7
|
-
public constructor(rc: RingCentralInterface) {
|
|
8
|
-
this.rc = rc;
|
|
9
|
-
}
|
|
10
|
-
public path(): string {
|
|
11
|
-
return '/cx';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public socialMessaging(): SocialMessaging {
|
|
15
|
-
return new SocialMessaging(this);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export default Index;
|
|
File without changes
|