@rc-ex/core 1.3.8 → 1.3.10
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/Rest.js +1 -1
- package/lib/Rest.js.map +1 -1
- package/lib/definitions/AccountInfo.d.ts +2 -2
- package/lib/definitions/AccountStatusInfo.d.ts +10 -9
- package/lib/definitions/ActivePermissionResource.d.ts +1 -1
- package/lib/definitions/AutoShared.d.ts +15 -0
- package/lib/definitions/{StatusInfo.js → AutoShared.js} +1 -1
- package/lib/definitions/AutoShared.js.map +1 -0
- package/lib/definitions/CallQueueDetails.d.ts +13 -4
- package/lib/definitions/CallQueueInfo.d.ts +8 -0
- package/lib/definitions/CallQueueOverflowSettings.d.ts +2 -2
- package/lib/definitions/CloudRecording.d.ts +11 -2
- package/lib/definitions/ContentAttachment.d.ts +76 -0
- package/lib/definitions/{CallQueueUpdateDetails.js → ContentAttachment.js} +1 -1
- package/lib/definitions/ContentAttachment.js.map +1 -0
- package/lib/definitions/ContentBodyFormatted.d.ts +12 -0
- package/lib/definitions/{CallQueueOverflowAgent.js → ContentBodyFormatted.js} +1 -1
- package/lib/definitions/ContentBodyFormatted.js.map +1 -0
- package/lib/definitions/ContentContextData.d.ts +9 -0
- package/lib/definitions/{RcvListDelegatorsParameters.js → ContentContextData.js} +1 -1
- package/lib/definitions/ContentContextData.js.map +1 -0
- package/lib/definitions/ContentList.d.ts +13 -0
- package/lib/definitions/ContentList.js +3 -0
- package/lib/definitions/ContentList.js.map +1 -0
- package/lib/definitions/ContentModel.d.ts +223 -0
- package/lib/definitions/ContentModel.js +3 -0
- package/lib/definitions/ContentModel.js.map +1 -0
- package/lib/definitions/CreateContentRequest.d.ts +131 -0
- package/lib/definitions/CreateContentRequest.js +3 -0
- package/lib/definitions/CreateContentRequest.js.map +1 -0
- package/lib/definitions/ExtensionUpdateRequest.d.ts +1 -1
- package/lib/definitions/GetExtensionInfoResponse.d.ts +1 -1
- package/lib/definitions/GetExtensionListInfoResponse.d.ts +1 -1
- package/lib/definitions/Host.d.ts +3 -3
- package/lib/definitions/IdentitiesList.d.ts +13 -0
- package/lib/definitions/IdentitiesList.js +3 -0
- package/lib/definitions/IdentitiesList.js.map +1 -0
- package/lib/definitions/IdentityExtraValues.d.ts +6 -0
- package/lib/definitions/IdentityExtraValues.js +3 -0
- package/lib/definitions/IdentityExtraValues.js.map +1 -0
- package/lib/definitions/IdentityModel.d.ts +231 -0
- package/lib/definitions/IdentityModel.js +3 -0
- package/lib/definitions/IdentityModel.js.map +1 -0
- package/lib/definitions/ImportIdentityRequest.d.ts +61 -0
- package/lib/definitions/ImportIdentityRequest.js +3 -0
- package/lib/definitions/ImportIdentityRequest.js.map +1 -0
- package/lib/definitions/IntrospectTokenRequest.d.ts +13 -0
- package/lib/definitions/IntrospectTokenRequest.js +3 -0
- package/lib/definitions/IntrospectTokenRequest.js.map +1 -0
- package/lib/definitions/ListCallQueuesParameters.d.ts +2 -4
- package/lib/definitions/ListExtensionsParameters.d.ts +1 -1
- package/lib/definitions/ListOfAvailableForAssigningRolesParameters.d.ts +25 -0
- package/lib/definitions/ListOfAvailableForAssigningRolesParameters.js +3 -0
- package/lib/definitions/ListOfAvailableForAssigningRolesParameters.js.map +1 -0
- package/lib/definitions/ListStandardUserRoleParameters.d.ts +5 -0
- package/lib/definitions/ListVideoMeetingsParameters.d.ts +17 -1
- package/lib/definitions/Meeting.d.ts +27 -13
- package/lib/definitions/MeetingPage.d.ts +3 -1
- package/lib/definitions/NonEnumeratedPagingModel.d.ts +31 -0
- package/lib/definitions/NonEnumeratedPagingModel.js +3 -0
- package/lib/definitions/NonEnumeratedPagingModel.js.map +1 -0
- package/lib/definitions/Paging.d.ts +1 -0
- package/lib/definitions/Participant.d.ts +11 -5
- package/lib/definitions/PermissionIdResource.d.ts +4 -0
- package/lib/definitions/PermissionsCapabilities.d.ts +18 -0
- package/lib/definitions/PermissionsCapabilities.js +3 -0
- package/lib/definitions/PermissionsCapabilities.js.map +1 -0
- package/lib/definitions/ReadUserRoleParameters.d.ts +11 -0
- package/lib/definitions/ReadUserRoleParameters.js +3 -0
- package/lib/definitions/ReadUserRoleParameters.js.map +1 -0
- package/lib/definitions/Recording.d.ts +20 -7
- package/lib/definitions/RecordingsPreferences.d.ts +4 -0
- package/lib/definitions/RoleResource.d.ts +7 -1
- package/lib/definitions/SessionInfoResponse.d.ts +42 -0
- package/lib/definitions/SessionInfoResponse.js +3 -0
- package/lib/definitions/SessionInfoResponse.js.map +1 -0
- package/lib/definitions/SipInfoResponse.d.ts +1 -1
- package/lib/definitions/SocMsgListContentsParameters.d.ts +60 -0
- package/lib/definitions/SocMsgListContentsParameters.js +3 -0
- package/lib/definitions/SocMsgListContentsParameters.js.map +1 -0
- package/lib/definitions/SocMsgListIdentitiesParameters.d.ts +43 -0
- package/lib/definitions/SocMsgListIdentitiesParameters.js +3 -0
- package/lib/definitions/SocMsgListIdentitiesParameters.js.map +1 -0
- package/lib/definitions/TokenInfo.d.ts +19 -0
- package/lib/definitions/TokenIntrospectionResponse.d.ts +47 -0
- package/lib/definitions/TokenIntrospectionResponse.js +3 -0
- package/lib/definitions/TokenIntrospectionResponse.js.map +1 -0
- package/lib/definitions/UserPhoneNumberInfo.d.ts +1 -1
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.d.ts +67 -0
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js +85 -0
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js.map +1 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.d.ts +17 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js +25 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js.map +1 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.d.ts +19 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js +27 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js.map +1 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.d.ts +20 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js +27 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js.map +1 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +42 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +67 -0
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -0
- package/lib/paths/Cx/SocialMessaging/V1/index.d.ts +12 -0
- package/lib/paths/Cx/SocialMessaging/V1/index.js +24 -0
- package/lib/paths/Cx/SocialMessaging/V1/index.js.map +1 -0
- package/lib/paths/Cx/SocialMessaging/index.d.ts +10 -0
- package/lib/paths/Cx/SocialMessaging/index.js +20 -0
- package/lib/paths/Cx/SocialMessaging/index.js.map +1 -0
- package/lib/paths/Cx/index.d.ts +9 -0
- package/lib/paths/Cx/index.js +19 -0
- package/lib/paths/Cx/index.js.map +1 -0
- package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.d.ts +3 -1
- package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.js +3 -1
- package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.js.map +1 -1
- package/lib/paths/Rcvideo/V1/Account/Recordings/index.d.ts +3 -1
- package/lib/paths/Rcvideo/V1/Account/Recordings/index.js +3 -1
- package/lib/paths/Rcvideo/V1/Account/Recordings/index.js.map +1 -1
- package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.d.ts +1 -2
- package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js +2 -2
- package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js.map +1 -1
- package/lib/paths/Restapi/Account/CallQueues/index.d.ts +1 -4
- package/lib/paths/Restapi/Account/CallQueues/index.js +2 -4
- package/lib/paths/Restapi/Account/CallQueues/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.d.ts +18 -0
- package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.js +24 -0
- package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js +0 -1
- package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -0
- package/lib/paths/Restapi/Account/Extension/index.js +4 -0
- package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
- package/lib/paths/Restapi/Account/UserRole/index.d.ts +3 -2
- package/lib/paths/Restapi/Account/UserRole/index.js +2 -2
- package/lib/paths/Restapi/Account/UserRole/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Introspect/index.d.ts +24 -0
- package/lib/paths/Restapi/Oauth/Introspect/index.js +30 -0
- package/lib/paths/Restapi/Oauth/Introspect/index.js.map +1 -0
- package/lib/paths/Restapi/Oauth/SessionInfo/index.d.ts +17 -0
- package/lib/paths/Restapi/Oauth/SessionInfo/index.js +24 -0
- package/lib/paths/Restapi/Oauth/SessionInfo/index.js.map +1 -0
- package/lib/paths/Restapi/Oauth/index.d.ts +4 -0
- package/lib/paths/Restapi/Oauth/index.js +8 -0
- package/lib/paths/Restapi/Oauth/index.js.map +1 -1
- package/package.json +6 -6
- package/src/Rest.ts +1 -1
- package/src/definitions/AccountInfo.ts +2 -2
- package/src/definitions/AccountStatusInfo.ts +10 -9
- package/src/definitions/ActivePermissionResource.ts +1 -1
- package/src/definitions/AutoShared.ts +17 -0
- package/src/definitions/CallQueueDetails.ts +15 -4
- package/src/definitions/CallQueueInfo.ts +10 -0
- package/src/definitions/CallQueueOverflowSettings.ts +2 -2
- package/src/definitions/CloudRecording.ts +13 -2
- package/src/definitions/ContentAttachment.ts +85 -0
- package/src/definitions/ContentBodyFormatted.ts +14 -0
- package/src/definitions/ContentContextData.ts +10 -0
- package/src/definitions/ContentList.ts +16 -0
- package/src/definitions/ContentModel.ts +303 -0
- package/src/definitions/CreateContentRequest.ts +147 -0
- package/src/definitions/ExtensionUpdateRequest.ts +1 -1
- package/src/definitions/GetExtensionInfoResponse.ts +1 -1
- package/src/definitions/GetExtensionListInfoResponse.ts +1 -1
- package/src/definitions/Host.ts +3 -3
- package/src/definitions/IdentitiesList.ts +16 -0
- package/src/definitions/IdentityExtraValues.ts +7 -0
- package/src/definitions/IdentityModel.ts +280 -0
- package/src/definitions/ImportIdentityRequest.ts +73 -0
- package/src/definitions/IntrospectTokenRequest.ts +15 -0
- package/src/definitions/ListCallQueuesParameters.ts +2 -4
- package/src/definitions/ListExtensionsParameters.ts +1 -0
- package/src/definitions/ListOfAvailableForAssigningRolesParameters.ts +27 -0
- package/src/definitions/ListStandardUserRoleParameters.ts +6 -0
- package/src/definitions/ListVideoMeetingsParameters.ts +19 -1
- package/src/definitions/Meeting.ts +30 -13
- package/src/definitions/MeetingPage.ts +3 -1
- package/src/definitions/NonEnumeratedPagingModel.ts +36 -0
- package/src/definitions/Paging.ts +1 -0
- package/src/definitions/Participant.ts +12 -5
- package/src/definitions/PermissionIdResource.ts +6 -0
- package/src/definitions/PermissionsCapabilities.ts +21 -0
- package/src/definitions/ReadUserRoleParameters.ts +12 -0
- package/src/definitions/Recording.ts +23 -7
- package/src/definitions/RecordingsPreferences.ts +5 -0
- package/src/definitions/RoleResource.ts +7 -1
- package/src/definitions/SessionInfoResponse.ts +50 -0
- package/src/definitions/SipInfoResponse.ts +1 -1
- package/src/definitions/SocMsgListContentsParameters.ts +70 -0
- package/src/definitions/SocMsgListIdentitiesParameters.ts +50 -0
- package/src/definitions/TokenInfo.ts +23 -0
- package/src/definitions/TokenIntrospectionResponse.ts +56 -0
- package/src/definitions/UserPhoneNumberInfo.ts +1 -1
- package/src/paths/Cx/SocialMessaging/V1/Contents/index.ts +98 -0
- package/src/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.ts +27 -0
- package/src/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.ts +29 -0
- package/src/paths/Cx/SocialMessaging/V1/Identities/Import/index.ts +33 -0
- package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +75 -0
- package/src/paths/Cx/SocialMessaging/V1/index.ts +25 -0
- package/src/paths/Cx/SocialMessaging/index.ts +20 -0
- package/src/paths/Cx/index.ts +18 -0
- package/src/paths/Rcvideo/V1/Account/Extension/Recordings/index.ts +3 -1
- package/src/paths/Rcvideo/V1/Account/Recordings/index.ts +3 -1
- package/src/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.ts +2 -6
- package/src/paths/Restapi/Account/CallQueues/index.ts +2 -5
- package/src/paths/Restapi/Account/Extension/AssignableRoles/index.ts +31 -0
- package/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts +0 -1
- package/src/paths/Restapi/Account/Extension/index.ts +5 -0
- package/src/paths/Restapi/Account/UserRole/index.ts +5 -4
- package/src/paths/Restapi/Oauth/Introspect/index.ts +42 -0
- package/src/paths/Restapi/Oauth/SessionInfo/index.ts +27 -0
- package/src/paths/Restapi/Oauth/index.ts +10 -0
- package/src/samples.md +3999 -3738
- package/lib/definitions/CallQueueOverflowAgent.d.ts +0 -19
- package/lib/definitions/CallQueueOverflowAgent.js.map +0 -1
- package/lib/definitions/CallQueueUpdateDetails.d.ts +0 -16
- package/lib/definitions/CallQueueUpdateDetails.js.map +0 -1
- package/lib/definitions/RcvListDelegatorsParameters.d.ts +0 -9
- package/lib/definitions/RcvListDelegatorsParameters.js.map +0 -1
- package/lib/definitions/StatusInfo.d.ts +0 -22
- package/lib/definitions/StatusInfo.js.map +0 -1
- package/src/definitions/CallQueueOverflowAgent.ts +0 -23
- package/src/definitions/CallQueueUpdateDetails.ts +0 -20
- package/src/definitions/RcvListDelegatorsParameters.ts +0 -10
- package/src/definitions/StatusInfo.ts +0 -25
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
interface ContentAttachment {
|
|
2
|
+
/**
|
|
3
|
+
* Type of the attachment, which is generally a MIME attachment type like "image/jpeg", etc.
|
|
4
|
+
*
|
|
5
|
+
* Security level in ED determines what type of attachment is allowed.
|
|
6
|
+
*
|
|
7
|
+
* Based on the security level the following attachment types are supported.
|
|
8
|
+
*
|
|
9
|
+
* "Strict" level allows safe extensions below:
|
|
10
|
+
* Content name and supported types
|
|
11
|
+
* * audio (supports aac mp3 ogg m4a)
|
|
12
|
+
* * image (supports bmp gif jpg jpeg png svg webp)
|
|
13
|
+
* * pdf (supports pdf)
|
|
14
|
+
* * text (supports csv txt log)
|
|
15
|
+
* * video (supports avi flv m4v mkv mov mp4 mpg qt wmv)
|
|
16
|
+
* * other (supports amr dms vcard tif tiff mpeg)
|
|
17
|
+
*
|
|
18
|
+
* "Relaxed" level allows documents:
|
|
19
|
+
* Content name and supported types
|
|
20
|
+
* * excel (supports xls xlsm xlsx xlc xlt xltm xltx)
|
|
21
|
+
* * presentation (supports key odp otp)
|
|
22
|
+
* * powerpoint (supports pps ppt pptx pot)
|
|
23
|
+
* * spreadsheet (supports numbers ods ots)
|
|
24
|
+
* * word (supports doc docm docx dotm dotx)
|
|
25
|
+
* * word_processing (supports 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 attachment.
|
|
36
|
+
* Format: date-time
|
|
37
|
+
* Example: 2023-02-04T12:43:07Z
|
|
38
|
+
*/
|
|
39
|
+
creationTime?: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Embedded in a content.
|
|
43
|
+
*/
|
|
44
|
+
embedded?: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Filename of the 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
|
+
* Privacy setting of the attachment.
|
|
60
|
+
*/
|
|
61
|
+
public?: boolean;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Size of the attachment.
|
|
65
|
+
* Format: int32
|
|
66
|
+
* Example: 217571
|
|
67
|
+
*/
|
|
68
|
+
size?: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The time when the last modification was completed.
|
|
72
|
+
* Format: date-time
|
|
73
|
+
* Example: 2023-02-04T12:43:07Z
|
|
74
|
+
*/
|
|
75
|
+
lastModifiedTime?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Uri of the attachment.
|
|
79
|
+
* Format: uri
|
|
80
|
+
* Example: https://example.digital.ringcentral.com/files/attachments/54085e5b7aa58d8b5d00006c
|
|
81
|
+
*/
|
|
82
|
+
uri?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default ContentAttachment;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type ContentModel from './ContentModel';
|
|
2
|
+
import type NonEnumeratedPagingModel from './NonEnumeratedPagingModel';
|
|
3
|
+
|
|
4
|
+
interface ContentList {
|
|
5
|
+
/**
|
|
6
|
+
* Required
|
|
7
|
+
*/
|
|
8
|
+
records?: ContentModel[];
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Required
|
|
12
|
+
*/
|
|
13
|
+
paging?: NonEnumeratedPagingModel;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default ContentList;
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import type ContentAttachment from './ContentAttachment';
|
|
2
|
+
import type ContentBodyFormatted from './ContentBodyFormatted';
|
|
3
|
+
import type ContentContextData from './ContentContextData';
|
|
4
|
+
|
|
5
|
+
interface ContentModel {
|
|
6
|
+
/**
|
|
7
|
+
* An array containing the attachments that are attached to the content.
|
|
8
|
+
* Required
|
|
9
|
+
*/
|
|
10
|
+
attachments?: ContentAttachment[];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Identity identifier of the author of content.
|
|
14
|
+
*
|
|
15
|
+
* Not mandatory on creation, by default it uses the token's user first identity on channel.
|
|
16
|
+
* Required
|
|
17
|
+
* Example: 541014e17aa58d8ccf000023
|
|
18
|
+
*/
|
|
19
|
+
authorIdentityId?: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Auto submitted content:
|
|
23
|
+
* - won't reopen tasks or interventions
|
|
24
|
+
* - can be used to send automatic messages like asking an user to follow on twitter, sending a survey, etc,
|
|
25
|
+
* - doesn't get included in statistics
|
|
26
|
+
* Required
|
|
27
|
+
*/
|
|
28
|
+
autoSubmitted?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The content's body.
|
|
32
|
+
*
|
|
33
|
+
* On creation this field is mandatory except for WhatsApp content using templates.
|
|
34
|
+
*
|
|
35
|
+
* The following are the max length restrictions for the different channels supported.
|
|
36
|
+
* Channel and max length
|
|
37
|
+
* * Apple Messages For Business (max length 10000)
|
|
38
|
+
* * Email (max length 262144)
|
|
39
|
+
* * Engage Messaging (max length 1024)
|
|
40
|
+
* * Facebook (max length 8000)
|
|
41
|
+
* * GoogleBusinessMessages (max length 3000)
|
|
42
|
+
* * Google My Business (max length 4000)
|
|
43
|
+
* * Instagram (max length 950)
|
|
44
|
+
* * Instagram Messaging (max length 1000)
|
|
45
|
+
* * LinkedIn (max length 3000)
|
|
46
|
+
* * Messenger (max length 2000)
|
|
47
|
+
* * Twitter (max length 280)
|
|
48
|
+
* * Viber (max length 7000)
|
|
49
|
+
* * WhatsApp (max length 3800)
|
|
50
|
+
* * Youtube (max length 8000)
|
|
51
|
+
* Required
|
|
52
|
+
* Example: Body of the content
|
|
53
|
+
*/
|
|
54
|
+
body?: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Required
|
|
58
|
+
*/
|
|
59
|
+
bodyFormatted?: ContentBodyFormatted;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Values can be Text or Html.
|
|
63
|
+
* Required
|
|
64
|
+
*/
|
|
65
|
+
bodyInputFormat?: 'Text' | 'Html';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* List of the category identifiers of the content.
|
|
69
|
+
* Required
|
|
70
|
+
* Example: 541014e17aa58d8ccf000023,541014e17aa58d8ccf002023
|
|
71
|
+
*/
|
|
72
|
+
categoryIds?: string[];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*/
|
|
76
|
+
contextData?: ContentContextData;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Creation time of the resource.
|
|
80
|
+
* Required
|
|
81
|
+
* Format: date-time
|
|
82
|
+
* Example: 2023-02-04T12:43:07Z
|
|
83
|
+
*/
|
|
84
|
+
creationTime?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Created from of the content.
|
|
88
|
+
* Required
|
|
89
|
+
*/
|
|
90
|
+
createdFrom?: 'Synchronizer' | 'Interface' | 'Api' | 'AutoSurvey' | 'AutoResponseTrigger' | 'AutoRequestEmail';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* RC user id of the creator
|
|
94
|
+
* Required
|
|
95
|
+
* Example: 2683222036
|
|
96
|
+
*/
|
|
97
|
+
creatorId?: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* External categories of the content.
|
|
101
|
+
*
|
|
102
|
+
* Present only if the content has foreignCategories.
|
|
103
|
+
* Example: foreign_category_id
|
|
104
|
+
*/
|
|
105
|
+
foreignCategories?: string[];
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Identifier of the content.
|
|
109
|
+
* Required
|
|
110
|
+
* Example: 541014e17aa58d8ccf000023
|
|
111
|
+
*/
|
|
112
|
+
id?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The identity identifier of the content to which this content is a reply to.
|
|
116
|
+
* Required
|
|
117
|
+
* Example: 541014e17asdd8ccf000023
|
|
118
|
+
*/
|
|
119
|
+
inReplyToAuthorIdentityId?: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The content identifier to which this content is a reply to.
|
|
123
|
+
*
|
|
124
|
+
* On creation, if omitted, a new discussion will be created. If the channel does not support to initiate discussion this parameter is mandatory.
|
|
125
|
+
* Required
|
|
126
|
+
* Example: 123414e17asdd8ccf000023
|
|
127
|
+
*/
|
|
128
|
+
inReplyToContentId?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The intervention identifier of the content.
|
|
132
|
+
* Required
|
|
133
|
+
* Example: 123415437asdd8ccf000023
|
|
134
|
+
*/
|
|
135
|
+
interventionId?: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Language of the content.
|
|
139
|
+
* Required
|
|
140
|
+
* Example: En
|
|
141
|
+
*/
|
|
142
|
+
language?: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* True if the content is publicly visible on the remote channel (default).
|
|
146
|
+
*
|
|
147
|
+
* Private content is NOT supported on every channel.
|
|
148
|
+
* Required
|
|
149
|
+
* Default: true
|
|
150
|
+
*/
|
|
151
|
+
public?: boolean;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* True if the content is published on the remote channel.
|
|
155
|
+
* Required
|
|
156
|
+
* Example: true
|
|
157
|
+
*/
|
|
158
|
+
published?: boolean;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Rating of the content.
|
|
162
|
+
*
|
|
163
|
+
* Present only if the content supports rating and rating is filled.
|
|
164
|
+
* Required
|
|
165
|
+
* Format: int32
|
|
166
|
+
* Example: 4
|
|
167
|
+
*/
|
|
168
|
+
rating?: number;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* True if the content has been deleted on the remote channel.
|
|
172
|
+
* Required
|
|
173
|
+
*/
|
|
174
|
+
remotelyDeleted?: boolean;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Identifier of the channel.
|
|
178
|
+
*
|
|
179
|
+
* On creation if `inReplyToContentId` is specified, the channel will be determined from it. Otherwise, this parameter is mandatory.
|
|
180
|
+
* Required
|
|
181
|
+
* Example: fff415437asdd8ccf000023
|
|
182
|
+
*/
|
|
183
|
+
sourceId?: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Type of the channel.
|
|
187
|
+
* Required
|
|
188
|
+
*/
|
|
189
|
+
sourceType?:
|
|
190
|
+
| 'AppleMessagesForBusiness'
|
|
191
|
+
| 'Email'
|
|
192
|
+
| 'EngageMessaging'
|
|
193
|
+
| 'Facebook'
|
|
194
|
+
| 'GoogleBusinessMessages'
|
|
195
|
+
| 'GoogleMyBusiness'
|
|
196
|
+
| 'Instagram'
|
|
197
|
+
| 'InstagramMessaging'
|
|
198
|
+
| 'Linkedin'
|
|
199
|
+
| 'Messenger'
|
|
200
|
+
| 'Twitter'
|
|
201
|
+
| 'Viber'
|
|
202
|
+
| 'WhatsApp'
|
|
203
|
+
| 'Youtube';
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* External Uri of the content channel.
|
|
207
|
+
* Required
|
|
208
|
+
* Format: uri
|
|
209
|
+
*/
|
|
210
|
+
sourceUri?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Content status.
|
|
214
|
+
* Required
|
|
215
|
+
*/
|
|
216
|
+
status?: 'New' | 'Assigned' | 'Replied' | 'UserReply' | 'UserInitiated' | 'Ignored';
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Synchronization status.
|
|
220
|
+
* Required
|
|
221
|
+
* Example: success
|
|
222
|
+
*/
|
|
223
|
+
synchronizationStatus?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Synchronization error details.
|
|
227
|
+
* Required
|
|
228
|
+
*/
|
|
229
|
+
synchronizationError?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Content thread identifier of the content.
|
|
233
|
+
* Required
|
|
234
|
+
*/
|
|
235
|
+
threadId?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Applicable to Email channels only.
|
|
239
|
+
*
|
|
240
|
+
* The subject of the email.
|
|
241
|
+
*
|
|
242
|
+
* This field is mandatory when initiating a discussion.
|
|
243
|
+
* Required
|
|
244
|
+
* Example: An email title
|
|
245
|
+
*/
|
|
246
|
+
title?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Type of the content.
|
|
250
|
+
* Required
|
|
251
|
+
* Example: Email
|
|
252
|
+
*/
|
|
253
|
+
type?:
|
|
254
|
+
| 'Album'
|
|
255
|
+
| 'AuthenticateMessage'
|
|
256
|
+
| 'AuthenticateResponse'
|
|
257
|
+
| 'Carousel'
|
|
258
|
+
| 'CarouselMessage'
|
|
259
|
+
| 'Comment'
|
|
260
|
+
| 'ContactMessage'
|
|
261
|
+
| 'Content'
|
|
262
|
+
| 'Email'
|
|
263
|
+
| 'FormMessage'
|
|
264
|
+
| 'FormResponse'
|
|
265
|
+
| 'HsmMessage'
|
|
266
|
+
| 'Link'
|
|
267
|
+
| 'ListMessage'
|
|
268
|
+
| 'Media'
|
|
269
|
+
| 'Message'
|
|
270
|
+
| 'OutboundMessage'
|
|
271
|
+
| 'PaymentMessage'
|
|
272
|
+
| 'Photo'
|
|
273
|
+
| 'PostbackMessage'
|
|
274
|
+
| 'PrivateTweet'
|
|
275
|
+
| 'PromptMessage'
|
|
276
|
+
| 'Question'
|
|
277
|
+
| 'Review'
|
|
278
|
+
| 'ReviewResponse'
|
|
279
|
+
| 'RichLinkMessage'
|
|
280
|
+
| 'SelectMessage'
|
|
281
|
+
| 'Status'
|
|
282
|
+
| 'TemplateMessage'
|
|
283
|
+
| 'TimePickerMessage'
|
|
284
|
+
| 'Tweet'
|
|
285
|
+
| 'Video'
|
|
286
|
+
| 'VideoCallRequestMessage';
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The time when the last modification was completed.
|
|
290
|
+
* Required
|
|
291
|
+
* Format: date-time
|
|
292
|
+
* Example: 2023-02-04T12:43:07Z
|
|
293
|
+
*/
|
|
294
|
+
lastModifiedTime?: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Types of structured messages that can be used to reply to this type of message.
|
|
298
|
+
* Required
|
|
299
|
+
*/
|
|
300
|
+
capabilitiesSupported?: string[];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export default ContentModel;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type ContentContextData from './ContentContextData';
|
|
2
|
+
|
|
3
|
+
interface CreateContentRequest {
|
|
4
|
+
/**
|
|
5
|
+
* Identity identifier of the author of content.
|
|
6
|
+
*
|
|
7
|
+
* Not mandatory on creation, by default it uses the token's user first identity on channel.
|
|
8
|
+
* Example: 541014e17aa58d8ccf000023
|
|
9
|
+
*/
|
|
10
|
+
authorIdentityId?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The content's body.
|
|
14
|
+
*
|
|
15
|
+
* On creation this field is mandatory except for WhatsApp content using templates.
|
|
16
|
+
*
|
|
17
|
+
* The following are the max length restrictions for the different channels supported.
|
|
18
|
+
* Channel and max length
|
|
19
|
+
* * Apple Messages For Business (max length 10000)
|
|
20
|
+
* * Email (max length 262144)
|
|
21
|
+
* * Engage Messaging (max length 1024)
|
|
22
|
+
* * Facebook (max length 8000)
|
|
23
|
+
* * GoogleBusinessMessages (max length 3000)
|
|
24
|
+
* * Google My Business (max length 4000)
|
|
25
|
+
* * Instagram (max length 950)
|
|
26
|
+
* * Instagram Messaging (max length 1000)
|
|
27
|
+
* * LinkedIn (max length 3000)
|
|
28
|
+
* * Messenger (max length 2000)
|
|
29
|
+
* * Twitter (max length 280)
|
|
30
|
+
* * Viber (max length 7000)
|
|
31
|
+
* * WhatsApp (max length 3800)
|
|
32
|
+
* * Youtube (max length 8000)
|
|
33
|
+
* Example: Body of the content
|
|
34
|
+
*/
|
|
35
|
+
body?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The content identifier to which this content is a reply to.
|
|
39
|
+
*
|
|
40
|
+
* On creation, if omitted, a new discussion will be created. If the channel does not support to initiate discussion this parameter is mandatory.
|
|
41
|
+
* Example: 123414e17asdd8ccf000023
|
|
42
|
+
*/
|
|
43
|
+
inReplyToContentId?: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* True if the content is publicly visible on the remote channel (default).
|
|
47
|
+
*
|
|
48
|
+
* Private content is NOT supported on every channel.
|
|
49
|
+
* Default: true
|
|
50
|
+
*/
|
|
51
|
+
public?: boolean;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Identifier of the channel.
|
|
55
|
+
*
|
|
56
|
+
* On creation if `inReplyToContentId` is specified, the channel will be determined from it. Otherwise, this parameter is mandatory.
|
|
57
|
+
* Example: fff415437asdd8ccf000023
|
|
58
|
+
*/
|
|
59
|
+
sourceId?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* An array containing the attachment identifiers that need to be attached to the content.
|
|
63
|
+
* Example: 541014e17aa58d8ccf000023,541014e17aa58d8ccf000023
|
|
64
|
+
*/
|
|
65
|
+
attachmentIds?: string[];
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Applicable to Email channels only.
|
|
69
|
+
*
|
|
70
|
+
* The subject of the email.
|
|
71
|
+
*
|
|
72
|
+
* This field is mandatory when initiating a discussion.
|
|
73
|
+
* Example: An email title
|
|
74
|
+
*/
|
|
75
|
+
title?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Applicable on Email channels only.
|
|
79
|
+
*
|
|
80
|
+
* An array containing the email addresses used in sections of the email.
|
|
81
|
+
*
|
|
82
|
+
* This parameter is mandatory when initiating a discussion.
|
|
83
|
+
*/
|
|
84
|
+
to?: string[];
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Applicable on Email channels only.
|
|
88
|
+
*
|
|
89
|
+
* An array containing the email addresses used in sections of the email.
|
|
90
|
+
*
|
|
91
|
+
* This parameter is mandatory when initiating a discussion.
|
|
92
|
+
*/
|
|
93
|
+
cc?: string[];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Applicable on Email channels only.
|
|
97
|
+
*
|
|
98
|
+
* An array containing the email addresses used in sections of the email.
|
|
99
|
+
*
|
|
100
|
+
* This parameter is mandatory when initiating a discussion.
|
|
101
|
+
*/
|
|
102
|
+
bcc?: string[];
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Applicable to WhatsApp channels only.
|
|
106
|
+
*
|
|
107
|
+
* Name of the Whatsapp template to use for the content.
|
|
108
|
+
*
|
|
109
|
+
* All available template names are visible on the Whatsapp Business Manager interface.
|
|
110
|
+
* Example: customer_order_shipment_template
|
|
111
|
+
*/
|
|
112
|
+
templateName?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Applicable to WhatsApp channels only.
|
|
116
|
+
*
|
|
117
|
+
* Language of the Whatsapp template to use for the content. All available template languages are visible on the Whatsapp Business Manager interface.
|
|
118
|
+
*
|
|
119
|
+
* Language specified must conform to the ISO 639-1 alpha-2 codes for representing the names of languages.
|
|
120
|
+
* Example: fr
|
|
121
|
+
*/
|
|
122
|
+
templateLanguage?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Applicable to WhatsApp channels only.
|
|
126
|
+
*
|
|
127
|
+
* Component configuration of the Whatsapp template to use for the content.
|
|
128
|
+
*
|
|
129
|
+
* All available components are visible on the Whatsapp Business Manager interface.
|
|
130
|
+
* Example: [object Object],[object Object]
|
|
131
|
+
*/
|
|
132
|
+
components?: object[];
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
*/
|
|
136
|
+
contextData?: ContentContextData;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Auto submitted content:
|
|
140
|
+
* - won't reopen tasks or interventions
|
|
141
|
+
* - can be used to send automatic messages like asking an user to follow on twitter, sending a survey, etc,
|
|
142
|
+
* - doesn't get included in statistics
|
|
143
|
+
*/
|
|
144
|
+
autoSubmitted?: boolean;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export default CreateContentRequest;
|
|
@@ -91,7 +91,7 @@ interface ExtensionUpdateRequest {
|
|
|
91
91
|
* Extension subtype, if applicable. For any unsupported subtypes
|
|
92
92
|
* the 'Unknown' value will be returned
|
|
93
93
|
*/
|
|
94
|
-
subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignageOnlyRooms' | 'Unknown';
|
|
94
|
+
subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignageOnlyRooms' | 'Unknown' | 'Emergency';
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* List of non-RC internal identifiers assigned to an extension
|
|
@@ -156,7 +156,7 @@ interface GetExtensionInfoResponse {
|
|
|
156
156
|
* Extension subtype, if applicable. For any unsupported subtypes the
|
|
157
157
|
* `Unknown` value will be returned
|
|
158
158
|
*/
|
|
159
|
-
subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown';
|
|
159
|
+
subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown' | 'Emergency';
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
*/
|
|
@@ -80,7 +80,7 @@ interface GetExtensionListInfoResponse {
|
|
|
80
80
|
* Extension subtype, if applicable. For any unsupported subtypes the
|
|
81
81
|
* `Unknown` value will be returned
|
|
82
82
|
*/
|
|
83
|
-
subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown';
|
|
83
|
+
subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown' | 'Emergency';
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
*/
|
package/src/definitions/Host.ts
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
interface Host {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Account id
|
|
7
7
|
*/
|
|
8
8
|
accountId?: string;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Extension id
|
|
12
12
|
*/
|
|
13
13
|
extensionId?: string;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Display name
|
|
17
17
|
*/
|
|
18
18
|
displayName?: string;
|
|
19
19
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type IdentityModel from './IdentityModel';
|
|
2
|
+
import type NonEnumeratedPagingModel from './NonEnumeratedPagingModel';
|
|
3
|
+
|
|
4
|
+
interface IdentitiesList {
|
|
5
|
+
/**
|
|
6
|
+
* Required
|
|
7
|
+
*/
|
|
8
|
+
records?: IdentityModel[];
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Required
|
|
12
|
+
*/
|
|
13
|
+
paging?: NonEnumeratedPagingModel;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default IdentitiesList;
|