@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,75 @@
|
|
|
1
|
+
import Deanonymize from './Deanonymize';
|
|
2
|
+
import Anonymize from './Anonymize';
|
|
3
|
+
import Import from './Import';
|
|
4
|
+
import type SocMsgListIdentitiesParameters from '../../../../../definitions/SocMsgListIdentitiesParameters';
|
|
5
|
+
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
6
|
+
|
|
7
|
+
class Index {
|
|
8
|
+
public rc: RingCentralInterface;
|
|
9
|
+
public _parent: ParentInterface;
|
|
10
|
+
public identityId: string | null;
|
|
11
|
+
|
|
12
|
+
public constructor(_parent: ParentInterface, identityId: string | null = null) {
|
|
13
|
+
this._parent = _parent;
|
|
14
|
+
this.rc = _parent.rc;
|
|
15
|
+
this.identityId = identityId;
|
|
16
|
+
}
|
|
17
|
+
public path(withParameter = true): string {
|
|
18
|
+
if (withParameter && this.identityId !== null) {
|
|
19
|
+
return `${this._parent.path()}/identities/${this.identityId}`;
|
|
20
|
+
}
|
|
21
|
+
return `${this._parent.path()}/identities`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List identities by creation date. The default order is descending.
|
|
25
|
+
*
|
|
26
|
+
* The account context of this request is determined by the RC Account Id associated with the access token provided
|
|
27
|
+
* in the Authorization header.
|
|
28
|
+
*
|
|
29
|
+
* The query parameters provided shall be considered an AND operation to filter the list.
|
|
30
|
+
*
|
|
31
|
+
* A query parameter not specified or a query parameter provided with no value is treated as not required for
|
|
32
|
+
* filtering the list.
|
|
33
|
+
*
|
|
34
|
+
* HTTP Method: get
|
|
35
|
+
* Endpoint: /cx/social-messaging/v1/identities
|
|
36
|
+
* Rate Limit Group: Light
|
|
37
|
+
* App Permission: SocialMessaging
|
|
38
|
+
*/
|
|
39
|
+
public async list(
|
|
40
|
+
queryParams?: SocMsgListIdentitiesParameters,
|
|
41
|
+
restRequestConfig?: RestRequestConfig,
|
|
42
|
+
): Promise<string> {
|
|
43
|
+
const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
|
|
44
|
+
return r.data;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Renders an identity from given id.
|
|
49
|
+
*
|
|
50
|
+
* HTTP Method: get
|
|
51
|
+
* Endpoint: /cx/social-messaging/v1/identities/{identityId}
|
|
52
|
+
* Rate Limit Group: Light
|
|
53
|
+
* App Permission: SocialMessaging
|
|
54
|
+
*/
|
|
55
|
+
public async get(restRequestConfig?: RestRequestConfig): Promise<string> {
|
|
56
|
+
if (this.identityId === null) {
|
|
57
|
+
throw new Error('identityId must be specified.');
|
|
58
|
+
}
|
|
59
|
+
const r = await this.rc.get<string>(this.path(), undefined, restRequestConfig);
|
|
60
|
+
return r.data;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public import(): Import {
|
|
64
|
+
return new Import(this);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public anonymize(): Anonymize {
|
|
68
|
+
return new Anonymize(this);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public deanonymize(): Deanonymize {
|
|
72
|
+
return new Deanonymize(this);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export default Index;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Identities from './Identities';
|
|
2
|
+
import Contents from './Contents';
|
|
3
|
+
import type { RingCentralInterface, ParentInterface } from '../../../../types';
|
|
4
|
+
|
|
5
|
+
class Index {
|
|
6
|
+
public rc: RingCentralInterface;
|
|
7
|
+
public _parent: ParentInterface;
|
|
8
|
+
|
|
9
|
+
public constructor(_parent: ParentInterface) {
|
|
10
|
+
this._parent = _parent;
|
|
11
|
+
this.rc = _parent.rc;
|
|
12
|
+
}
|
|
13
|
+
public path(): string {
|
|
14
|
+
return `${this._parent.path(false)}/v1`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public contents(contentId: string | null = null): Contents {
|
|
18
|
+
return new Contents(this, contentId);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public identities(identityId: string | null = null): Identities {
|
|
22
|
+
return new Identities(this, identityId);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default Index;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import V1 from './V1';
|
|
2
|
+
import type { RingCentralInterface, ParentInterface } from '../../../types';
|
|
3
|
+
|
|
4
|
+
class Index {
|
|
5
|
+
public rc: RingCentralInterface;
|
|
6
|
+
public _parent: ParentInterface;
|
|
7
|
+
|
|
8
|
+
public constructor(_parent: ParentInterface) {
|
|
9
|
+
this._parent = _parent;
|
|
10
|
+
this.rc = _parent.rc;
|
|
11
|
+
}
|
|
12
|
+
public path(): string {
|
|
13
|
+
return `${this._parent.path(false)}/social-messaging`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public v1(): V1 {
|
|
17
|
+
return new V1(this);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export default Index;
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -14,7 +14,9 @@ class Index {
|
|
|
14
14
|
return `${this._parent.path()}/recordings`;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Returns
|
|
17
|
+
* Returns all recordings available for specific extension.
|
|
18
|
+
* This endpoint is used in admin recording service, not regular web
|
|
19
|
+
*
|
|
18
20
|
* HTTP Method: get
|
|
19
21
|
* Endpoint: /rcvideo/v1/account/{accountId}/extension/{extensionId}/recordings
|
|
20
22
|
* Rate Limit Group: Light
|
|
@@ -14,7 +14,9 @@ class Index {
|
|
|
14
14
|
return `${this._parent.path()}/recordings`;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Returns
|
|
17
|
+
* Returns all account recordings.
|
|
18
|
+
* This endpoint is used in Admin recording service, not regular web
|
|
19
|
+
*
|
|
18
20
|
* HTTP Method: get
|
|
19
21
|
* Endpoint: /rcvideo/v1/account/{accountId}/recordings
|
|
20
22
|
* Rate Limit Group: Light
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type DelegatorsListResult from '../../../../../../definitions/DelegatorsListResult';
|
|
2
|
-
import type RcvListDelegatorsParameters from '../../../../../../definitions/RcvListDelegatorsParameters';
|
|
3
2
|
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
|
|
4
3
|
|
|
5
4
|
class Index {
|
|
@@ -20,11 +19,8 @@ class Index {
|
|
|
20
19
|
* Rate Limit Group: Medium
|
|
21
20
|
* App Permission: Video
|
|
22
21
|
*/
|
|
23
|
-
public async get(
|
|
24
|
-
|
|
25
|
-
restRequestConfig?: RestRequestConfig,
|
|
26
|
-
): Promise<DelegatorsListResult> {
|
|
27
|
-
const r = await this.rc.get<DelegatorsListResult>(this.path(), queryParams, restRequestConfig);
|
|
22
|
+
public async get(restRequestConfig?: RestRequestConfig): Promise<DelegatorsListResult> {
|
|
23
|
+
const r = await this.rc.get<DelegatorsListResult>(this.path(), undefined, restRequestConfig);
|
|
28
24
|
return r.data;
|
|
29
25
|
}
|
|
30
26
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import BulkAssign from './BulkAssign';
|
|
2
2
|
import Presence from './Presence';
|
|
3
3
|
import Members from './Members';
|
|
4
|
-
import type CallQueueUpdateDetails from '../../../../definitions/CallQueueUpdateDetails';
|
|
5
4
|
import type CallQueueDetails from '../../../../definitions/CallQueueDetails';
|
|
6
5
|
import type CallQueues from '../../../../definitions/CallQueues';
|
|
7
6
|
import type ListCallQueuesParameters from '../../../../definitions/ListCallQueuesParameters';
|
|
@@ -25,7 +24,6 @@ class Index {
|
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* Returns a call queue list.
|
|
28
|
-
*
|
|
29
27
|
* HTTP Method: get
|
|
30
28
|
* Endpoint: /restapi/{apiVersion}/account/{accountId}/call-queues
|
|
31
29
|
* Rate Limit Group: Medium
|
|
@@ -42,7 +40,6 @@ class Index {
|
|
|
42
40
|
|
|
43
41
|
/**
|
|
44
42
|
* Returns basic information on a call queue group extension.
|
|
45
|
-
*
|
|
46
43
|
* HTTP Method: get
|
|
47
44
|
* Endpoint: /restapi/{apiVersion}/account/{accountId}/call-queues/{groupId}
|
|
48
45
|
* Rate Limit Group: Light
|
|
@@ -67,13 +64,13 @@ class Index {
|
|
|
67
64
|
* User Permission: EditUserInfo
|
|
68
65
|
*/
|
|
69
66
|
public async put(
|
|
70
|
-
|
|
67
|
+
callQueueDetails: CallQueueDetails,
|
|
71
68
|
restRequestConfig?: RestRequestConfig,
|
|
72
69
|
): Promise<CallQueueDetails> {
|
|
73
70
|
if (this.groupId === null) {
|
|
74
71
|
throw new Error('groupId must be specified.');
|
|
75
72
|
}
|
|
76
|
-
const r = await this.rc.put<CallQueueDetails>(this.path(),
|
|
73
|
+
const r = await this.rc.put<CallQueueDetails>(this.path(), callQueueDetails, undefined, restRequestConfig);
|
|
77
74
|
return r.data;
|
|
78
75
|
}
|
|
79
76
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type RolesCollectionResource from '../../../../../definitions/RolesCollectionResource';
|
|
2
|
+
import type ListOfAvailableForAssigningRolesParameters from '../../../../../definitions/ListOfAvailableForAssigningRolesParameters';
|
|
3
|
+
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
4
|
+
|
|
5
|
+
class Index {
|
|
6
|
+
public rc: RingCentralInterface;
|
|
7
|
+
public _parent: ParentInterface;
|
|
8
|
+
|
|
9
|
+
public constructor(_parent: ParentInterface) {
|
|
10
|
+
this._parent = _parent;
|
|
11
|
+
this.rc = _parent.rc;
|
|
12
|
+
}
|
|
13
|
+
public path(): string {
|
|
14
|
+
return `${this._parent.path()}/assignable-roles`;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns a list of roles which can be assigned to a given extension.
|
|
18
|
+
* HTTP Method: get
|
|
19
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/assignable-roles
|
|
20
|
+
* Rate Limit Group: Medium
|
|
21
|
+
* App Permission: RoleManagement
|
|
22
|
+
*/
|
|
23
|
+
public async get(
|
|
24
|
+
queryParams?: ListOfAvailableForAssigningRolesParameters,
|
|
25
|
+
restRequestConfig?: RestRequestConfig,
|
|
26
|
+
): Promise<RolesCollectionResource> {
|
|
27
|
+
const r = await this.rc.get<RolesCollectionResource>(this.path(), queryParams, restRequestConfig);
|
|
28
|
+
return r.data;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default Index;
|
|
@@ -7,6 +7,7 @@ import OverflowSettings from './OverflowSettings';
|
|
|
7
7
|
import AddressBookSync from './AddressBookSync';
|
|
8
8
|
import ForwardingNumber from './ForwardingNumber';
|
|
9
9
|
import UnifiedPresence from './UnifiedPresence';
|
|
10
|
+
import AssignableRoles from './AssignableRoles';
|
|
10
11
|
import CallerBlocking from './CallerBlocking';
|
|
11
12
|
import BusinessHours from './BusinessHours';
|
|
12
13
|
import AnsweringRule from './AnsweringRule';
|
|
@@ -247,6 +248,10 @@ class Index {
|
|
|
247
248
|
return new CallerBlocking(this);
|
|
248
249
|
}
|
|
249
250
|
|
|
251
|
+
public assignableRoles(): AssignableRoles {
|
|
252
|
+
return new AssignableRoles(this);
|
|
253
|
+
}
|
|
254
|
+
|
|
250
255
|
public unifiedPresence(): UnifiedPresence {
|
|
251
256
|
return new UnifiedPresence(this);
|
|
252
257
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BulkAssign from './BulkAssign';
|
|
2
2
|
import Default from './Default';
|
|
3
3
|
import type DeleteCustomRoleParameters from '../../../../definitions/DeleteCustomRoleParameters';
|
|
4
|
+
import type ReadUserRoleParameters from '../../../../definitions/ReadUserRoleParameters';
|
|
4
5
|
import type RoleResource from '../../../../definitions/RoleResource';
|
|
5
6
|
import type RolesCollectionResource from '../../../../definitions/RolesCollectionResource';
|
|
6
7
|
import type ListUserRolesParameters from '../../../../definitions/ListUserRolesParameters';
|
|
@@ -59,11 +60,11 @@ class Index {
|
|
|
59
60
|
* App Permission: ReadAccounts
|
|
60
61
|
* User Permission: ReadUserRoles
|
|
61
62
|
*/
|
|
62
|
-
public async get(restRequestConfig?: RestRequestConfig): Promise<RoleResource> {
|
|
63
|
+
public async get(queryParams?: ReadUserRoleParameters, restRequestConfig?: RestRequestConfig): Promise<RoleResource> {
|
|
63
64
|
if (this.roleId === null) {
|
|
64
65
|
throw new Error('roleId must be specified.');
|
|
65
66
|
}
|
|
66
|
-
const r = await this.rc.get<RoleResource>(this.path(),
|
|
67
|
+
const r = await this.rc.get<RoleResource>(this.path(), queryParams, restRequestConfig);
|
|
67
68
|
return r.data;
|
|
68
69
|
}
|
|
69
70
|
|
|
@@ -75,11 +76,11 @@ class Index {
|
|
|
75
76
|
* App Permission: RoleManagement
|
|
76
77
|
* User Permission: EditUserRoles
|
|
77
78
|
*/
|
|
78
|
-
public async put(roleResource: RoleResource, restRequestConfig?: RestRequestConfig): Promise<
|
|
79
|
+
public async put(roleResource: RoleResource, restRequestConfig?: RestRequestConfig): Promise<RoleResource> {
|
|
79
80
|
if (this.roleId === null) {
|
|
80
81
|
throw new Error('roleId must be specified.');
|
|
81
82
|
}
|
|
82
|
-
const r = await this.rc.put<
|
|
83
|
+
const r = await this.rc.put<RoleResource>(this.path(), roleResource, undefined, restRequestConfig);
|
|
83
84
|
return r.data;
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type TokenIntrospectionResponse from '../../../../definitions/TokenIntrospectionResponse';
|
|
2
|
+
import type IntrospectTokenRequest from '../../../../definitions/IntrospectTokenRequest';
|
|
3
|
+
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types';
|
|
4
|
+
|
|
5
|
+
class Index {
|
|
6
|
+
public rc: RingCentralInterface;
|
|
7
|
+
public _parent: ParentInterface;
|
|
8
|
+
|
|
9
|
+
public constructor(_parent: ParentInterface) {
|
|
10
|
+
this._parent = _parent;
|
|
11
|
+
this.rc = _parent.rc;
|
|
12
|
+
}
|
|
13
|
+
public path(): string {
|
|
14
|
+
return `${this._parent.path()}/introspect`;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Determines state and metadata for a given token (access token, refresh token
|
|
18
|
+
* or authorization code)
|
|
19
|
+
*
|
|
20
|
+
* Depending on client application type
|
|
21
|
+
* requests to this endpoint may require authentication with HTTP Basic scheme
|
|
22
|
+
* using registered client ID and client secret as login and password, correspondingly.
|
|
23
|
+
*
|
|
24
|
+
* HTTP Method: post
|
|
25
|
+
* Endpoint: /restapi/oauth/introspect
|
|
26
|
+
* Rate Limit Group: Auth
|
|
27
|
+
* App Permission: Interoperability
|
|
28
|
+
*/
|
|
29
|
+
public async post(
|
|
30
|
+
introspectTokenRequest: IntrospectTokenRequest,
|
|
31
|
+
restRequestConfig?: RestRequestConfig,
|
|
32
|
+
): Promise<TokenIntrospectionResponse> {
|
|
33
|
+
const r = await this.rc.post<TokenIntrospectionResponse>(
|
|
34
|
+
this.path(),
|
|
35
|
+
introspectTokenRequest,
|
|
36
|
+
undefined,
|
|
37
|
+
restRequestConfig,
|
|
38
|
+
);
|
|
39
|
+
return r.data;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export default Index;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type SessionInfoResponse from '../../../../definitions/SessionInfoResponse';
|
|
2
|
+
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types';
|
|
3
|
+
|
|
4
|
+
class Index {
|
|
5
|
+
public rc: RingCentralInterface;
|
|
6
|
+
public _parent: ParentInterface;
|
|
7
|
+
|
|
8
|
+
public constructor(_parent: ParentInterface) {
|
|
9
|
+
this._parent = _parent;
|
|
10
|
+
this.rc = _parent.rc;
|
|
11
|
+
}
|
|
12
|
+
public path(): string {
|
|
13
|
+
return `${this._parent.path()}/session-info`;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns information about current OAuth session
|
|
17
|
+
*
|
|
18
|
+
* HTTP Method: get
|
|
19
|
+
* Endpoint: /restapi/oauth/session-info
|
|
20
|
+
* Rate Limit Group: Auth
|
|
21
|
+
*/
|
|
22
|
+
public async get(restRequestConfig?: RestRequestConfig): Promise<SessionInfoResponse> {
|
|
23
|
+
const r = await this.rc.get<SessionInfoResponse>(this.path(), undefined, restRequestConfig);
|
|
24
|
+
return r.data;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export default Index;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import SessionInfo from './SessionInfo';
|
|
2
|
+
import Introspect from './Introspect';
|
|
1
3
|
import Authorize from './Authorize';
|
|
2
4
|
import Revoke from './Revoke';
|
|
3
5
|
import Token from './Token';
|
|
@@ -26,5 +28,13 @@ class Index {
|
|
|
26
28
|
public authorize(): Authorize {
|
|
27
29
|
return new Authorize(this);
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
public introspect(): Introspect {
|
|
33
|
+
return new Introspect(this);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public sessionInfo(): SessionInfo {
|
|
37
|
+
return new SessionInfo(this);
|
|
38
|
+
}
|
|
29
39
|
}
|
|
30
40
|
export default Index;
|