@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.
Files changed (225) hide show
  1. package/lib/Rest.js +1 -1
  2. package/lib/Rest.js.map +1 -1
  3. package/lib/definitions/AccountInfo.d.ts +2 -2
  4. package/lib/definitions/AccountStatusInfo.d.ts +10 -9
  5. package/lib/definitions/ActivePermissionResource.d.ts +1 -1
  6. package/lib/definitions/AutoShared.d.ts +15 -0
  7. package/lib/definitions/{StatusInfo.js → AutoShared.js} +1 -1
  8. package/lib/definitions/AutoShared.js.map +1 -0
  9. package/lib/definitions/CallQueueDetails.d.ts +13 -4
  10. package/lib/definitions/CallQueueInfo.d.ts +8 -0
  11. package/lib/definitions/CallQueueOverflowSettings.d.ts +2 -2
  12. package/lib/definitions/CloudRecording.d.ts +11 -2
  13. package/lib/definitions/ContentAttachment.d.ts +76 -0
  14. package/lib/definitions/{CallQueueUpdateDetails.js → ContentAttachment.js} +1 -1
  15. package/lib/definitions/ContentAttachment.js.map +1 -0
  16. package/lib/definitions/ContentBodyFormatted.d.ts +12 -0
  17. package/lib/definitions/{CallQueueOverflowAgent.js → ContentBodyFormatted.js} +1 -1
  18. package/lib/definitions/ContentBodyFormatted.js.map +1 -0
  19. package/lib/definitions/ContentContextData.d.ts +9 -0
  20. package/lib/definitions/{RcvListDelegatorsParameters.js → ContentContextData.js} +1 -1
  21. package/lib/definitions/ContentContextData.js.map +1 -0
  22. package/lib/definitions/ContentList.d.ts +13 -0
  23. package/lib/definitions/ContentList.js +3 -0
  24. package/lib/definitions/ContentList.js.map +1 -0
  25. package/lib/definitions/ContentModel.d.ts +223 -0
  26. package/lib/definitions/ContentModel.js +3 -0
  27. package/lib/definitions/ContentModel.js.map +1 -0
  28. package/lib/definitions/CreateContentRequest.d.ts +131 -0
  29. package/lib/definitions/CreateContentRequest.js +3 -0
  30. package/lib/definitions/CreateContentRequest.js.map +1 -0
  31. package/lib/definitions/ExtensionUpdateRequest.d.ts +1 -1
  32. package/lib/definitions/GetExtensionInfoResponse.d.ts +1 -1
  33. package/lib/definitions/GetExtensionListInfoResponse.d.ts +1 -1
  34. package/lib/definitions/Host.d.ts +3 -3
  35. package/lib/definitions/IdentitiesList.d.ts +13 -0
  36. package/lib/definitions/IdentitiesList.js +3 -0
  37. package/lib/definitions/IdentitiesList.js.map +1 -0
  38. package/lib/definitions/IdentityExtraValues.d.ts +6 -0
  39. package/lib/definitions/IdentityExtraValues.js +3 -0
  40. package/lib/definitions/IdentityExtraValues.js.map +1 -0
  41. package/lib/definitions/IdentityModel.d.ts +231 -0
  42. package/lib/definitions/IdentityModel.js +3 -0
  43. package/lib/definitions/IdentityModel.js.map +1 -0
  44. package/lib/definitions/ImportIdentityRequest.d.ts +61 -0
  45. package/lib/definitions/ImportIdentityRequest.js +3 -0
  46. package/lib/definitions/ImportIdentityRequest.js.map +1 -0
  47. package/lib/definitions/IntrospectTokenRequest.d.ts +13 -0
  48. package/lib/definitions/IntrospectTokenRequest.js +3 -0
  49. package/lib/definitions/IntrospectTokenRequest.js.map +1 -0
  50. package/lib/definitions/ListCallQueuesParameters.d.ts +2 -4
  51. package/lib/definitions/ListExtensionsParameters.d.ts +1 -1
  52. package/lib/definitions/ListOfAvailableForAssigningRolesParameters.d.ts +25 -0
  53. package/lib/definitions/ListOfAvailableForAssigningRolesParameters.js +3 -0
  54. package/lib/definitions/ListOfAvailableForAssigningRolesParameters.js.map +1 -0
  55. package/lib/definitions/ListStandardUserRoleParameters.d.ts +5 -0
  56. package/lib/definitions/ListVideoMeetingsParameters.d.ts +17 -1
  57. package/lib/definitions/Meeting.d.ts +27 -13
  58. package/lib/definitions/MeetingPage.d.ts +3 -1
  59. package/lib/definitions/NonEnumeratedPagingModel.d.ts +31 -0
  60. package/lib/definitions/NonEnumeratedPagingModel.js +3 -0
  61. package/lib/definitions/NonEnumeratedPagingModel.js.map +1 -0
  62. package/lib/definitions/Paging.d.ts +1 -0
  63. package/lib/definitions/Participant.d.ts +11 -5
  64. package/lib/definitions/PermissionIdResource.d.ts +4 -0
  65. package/lib/definitions/PermissionsCapabilities.d.ts +18 -0
  66. package/lib/definitions/PermissionsCapabilities.js +3 -0
  67. package/lib/definitions/PermissionsCapabilities.js.map +1 -0
  68. package/lib/definitions/ReadUserRoleParameters.d.ts +11 -0
  69. package/lib/definitions/ReadUserRoleParameters.js +3 -0
  70. package/lib/definitions/ReadUserRoleParameters.js.map +1 -0
  71. package/lib/definitions/Recording.d.ts +20 -7
  72. package/lib/definitions/RecordingsPreferences.d.ts +4 -0
  73. package/lib/definitions/RoleResource.d.ts +7 -1
  74. package/lib/definitions/SessionInfoResponse.d.ts +42 -0
  75. package/lib/definitions/SessionInfoResponse.js +3 -0
  76. package/lib/definitions/SessionInfoResponse.js.map +1 -0
  77. package/lib/definitions/SipInfoResponse.d.ts +1 -1
  78. package/lib/definitions/SocMsgListContentsParameters.d.ts +60 -0
  79. package/lib/definitions/SocMsgListContentsParameters.js +3 -0
  80. package/lib/definitions/SocMsgListContentsParameters.js.map +1 -0
  81. package/lib/definitions/SocMsgListIdentitiesParameters.d.ts +43 -0
  82. package/lib/definitions/SocMsgListIdentitiesParameters.js +3 -0
  83. package/lib/definitions/SocMsgListIdentitiesParameters.js.map +1 -0
  84. package/lib/definitions/TokenInfo.d.ts +19 -0
  85. package/lib/definitions/TokenIntrospectionResponse.d.ts +47 -0
  86. package/lib/definitions/TokenIntrospectionResponse.js +3 -0
  87. package/lib/definitions/TokenIntrospectionResponse.js.map +1 -0
  88. package/lib/definitions/UserPhoneNumberInfo.d.ts +1 -1
  89. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.d.ts +67 -0
  90. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js +85 -0
  91. package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js.map +1 -0
  92. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.d.ts +17 -0
  93. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js +25 -0
  94. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js.map +1 -0
  95. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.d.ts +19 -0
  96. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js +27 -0
  97. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js.map +1 -0
  98. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.d.ts +20 -0
  99. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js +27 -0
  100. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js.map +1 -0
  101. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +42 -0
  102. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +67 -0
  103. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -0
  104. package/lib/paths/Cx/SocialMessaging/V1/index.d.ts +12 -0
  105. package/lib/paths/Cx/SocialMessaging/V1/index.js +24 -0
  106. package/lib/paths/Cx/SocialMessaging/V1/index.js.map +1 -0
  107. package/lib/paths/Cx/SocialMessaging/index.d.ts +10 -0
  108. package/lib/paths/Cx/SocialMessaging/index.js +20 -0
  109. package/lib/paths/Cx/SocialMessaging/index.js.map +1 -0
  110. package/lib/paths/Cx/index.d.ts +9 -0
  111. package/lib/paths/Cx/index.js +19 -0
  112. package/lib/paths/Cx/index.js.map +1 -0
  113. package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.d.ts +3 -1
  114. package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.js +3 -1
  115. package/lib/paths/Rcvideo/V1/Account/Extension/Recordings/index.js.map +1 -1
  116. package/lib/paths/Rcvideo/V1/Account/Recordings/index.d.ts +3 -1
  117. package/lib/paths/Rcvideo/V1/Account/Recordings/index.js +3 -1
  118. package/lib/paths/Rcvideo/V1/Account/Recordings/index.js.map +1 -1
  119. package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.d.ts +1 -2
  120. package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js +2 -2
  121. package/lib/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.js.map +1 -1
  122. package/lib/paths/Restapi/Account/CallQueues/index.d.ts +1 -4
  123. package/lib/paths/Restapi/Account/CallQueues/index.js +2 -4
  124. package/lib/paths/Restapi/Account/CallQueues/index.js.map +1 -1
  125. package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.d.ts +18 -0
  126. package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.js +24 -0
  127. package/lib/paths/Restapi/Account/Extension/AssignableRoles/index.js.map +1 -0
  128. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.d.ts +0 -1
  129. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js +0 -1
  130. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js.map +1 -1
  131. package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -0
  132. package/lib/paths/Restapi/Account/Extension/index.js +4 -0
  133. package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
  134. package/lib/paths/Restapi/Account/UserRole/index.d.ts +3 -2
  135. package/lib/paths/Restapi/Account/UserRole/index.js +2 -2
  136. package/lib/paths/Restapi/Account/UserRole/index.js.map +1 -1
  137. package/lib/paths/Restapi/Oauth/Introspect/index.d.ts +24 -0
  138. package/lib/paths/Restapi/Oauth/Introspect/index.js +30 -0
  139. package/lib/paths/Restapi/Oauth/Introspect/index.js.map +1 -0
  140. package/lib/paths/Restapi/Oauth/SessionInfo/index.d.ts +17 -0
  141. package/lib/paths/Restapi/Oauth/SessionInfo/index.js +24 -0
  142. package/lib/paths/Restapi/Oauth/SessionInfo/index.js.map +1 -0
  143. package/lib/paths/Restapi/Oauth/index.d.ts +4 -0
  144. package/lib/paths/Restapi/Oauth/index.js +8 -0
  145. package/lib/paths/Restapi/Oauth/index.js.map +1 -1
  146. package/package.json +6 -6
  147. package/src/Rest.ts +1 -1
  148. package/src/definitions/AccountInfo.ts +2 -2
  149. package/src/definitions/AccountStatusInfo.ts +10 -9
  150. package/src/definitions/ActivePermissionResource.ts +1 -1
  151. package/src/definitions/AutoShared.ts +17 -0
  152. package/src/definitions/CallQueueDetails.ts +15 -4
  153. package/src/definitions/CallQueueInfo.ts +10 -0
  154. package/src/definitions/CallQueueOverflowSettings.ts +2 -2
  155. package/src/definitions/CloudRecording.ts +13 -2
  156. package/src/definitions/ContentAttachment.ts +85 -0
  157. package/src/definitions/ContentBodyFormatted.ts +14 -0
  158. package/src/definitions/ContentContextData.ts +10 -0
  159. package/src/definitions/ContentList.ts +16 -0
  160. package/src/definitions/ContentModel.ts +303 -0
  161. package/src/definitions/CreateContentRequest.ts +147 -0
  162. package/src/definitions/ExtensionUpdateRequest.ts +1 -1
  163. package/src/definitions/GetExtensionInfoResponse.ts +1 -1
  164. package/src/definitions/GetExtensionListInfoResponse.ts +1 -1
  165. package/src/definitions/Host.ts +3 -3
  166. package/src/definitions/IdentitiesList.ts +16 -0
  167. package/src/definitions/IdentityExtraValues.ts +7 -0
  168. package/src/definitions/IdentityModel.ts +280 -0
  169. package/src/definitions/ImportIdentityRequest.ts +73 -0
  170. package/src/definitions/IntrospectTokenRequest.ts +15 -0
  171. package/src/definitions/ListCallQueuesParameters.ts +2 -4
  172. package/src/definitions/ListExtensionsParameters.ts +1 -0
  173. package/src/definitions/ListOfAvailableForAssigningRolesParameters.ts +27 -0
  174. package/src/definitions/ListStandardUserRoleParameters.ts +6 -0
  175. package/src/definitions/ListVideoMeetingsParameters.ts +19 -1
  176. package/src/definitions/Meeting.ts +30 -13
  177. package/src/definitions/MeetingPage.ts +3 -1
  178. package/src/definitions/NonEnumeratedPagingModel.ts +36 -0
  179. package/src/definitions/Paging.ts +1 -0
  180. package/src/definitions/Participant.ts +12 -5
  181. package/src/definitions/PermissionIdResource.ts +6 -0
  182. package/src/definitions/PermissionsCapabilities.ts +21 -0
  183. package/src/definitions/ReadUserRoleParameters.ts +12 -0
  184. package/src/definitions/Recording.ts +23 -7
  185. package/src/definitions/RecordingsPreferences.ts +5 -0
  186. package/src/definitions/RoleResource.ts +7 -1
  187. package/src/definitions/SessionInfoResponse.ts +50 -0
  188. package/src/definitions/SipInfoResponse.ts +1 -1
  189. package/src/definitions/SocMsgListContentsParameters.ts +70 -0
  190. package/src/definitions/SocMsgListIdentitiesParameters.ts +50 -0
  191. package/src/definitions/TokenInfo.ts +23 -0
  192. package/src/definitions/TokenIntrospectionResponse.ts +56 -0
  193. package/src/definitions/UserPhoneNumberInfo.ts +1 -1
  194. package/src/paths/Cx/SocialMessaging/V1/Contents/index.ts +98 -0
  195. package/src/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.ts +27 -0
  196. package/src/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.ts +29 -0
  197. package/src/paths/Cx/SocialMessaging/V1/Identities/Import/index.ts +33 -0
  198. package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +75 -0
  199. package/src/paths/Cx/SocialMessaging/V1/index.ts +25 -0
  200. package/src/paths/Cx/SocialMessaging/index.ts +20 -0
  201. package/src/paths/Cx/index.ts +18 -0
  202. package/src/paths/Rcvideo/V1/Account/Extension/Recordings/index.ts +3 -1
  203. package/src/paths/Rcvideo/V1/Account/Recordings/index.ts +3 -1
  204. package/src/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.ts +2 -6
  205. package/src/paths/Restapi/Account/CallQueues/index.ts +2 -5
  206. package/src/paths/Restapi/Account/Extension/AssignableRoles/index.ts +31 -0
  207. package/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts +0 -1
  208. package/src/paths/Restapi/Account/Extension/index.ts +5 -0
  209. package/src/paths/Restapi/Account/UserRole/index.ts +5 -4
  210. package/src/paths/Restapi/Oauth/Introspect/index.ts +42 -0
  211. package/src/paths/Restapi/Oauth/SessionInfo/index.ts +27 -0
  212. package/src/paths/Restapi/Oauth/index.ts +10 -0
  213. package/src/samples.md +3999 -3738
  214. package/lib/definitions/CallQueueOverflowAgent.d.ts +0 -19
  215. package/lib/definitions/CallQueueOverflowAgent.js.map +0 -1
  216. package/lib/definitions/CallQueueUpdateDetails.d.ts +0 -16
  217. package/lib/definitions/CallQueueUpdateDetails.js.map +0 -1
  218. package/lib/definitions/RcvListDelegatorsParameters.d.ts +0 -9
  219. package/lib/definitions/RcvListDelegatorsParameters.js.map +0 -1
  220. package/lib/definitions/StatusInfo.d.ts +0 -22
  221. package/lib/definitions/StatusInfo.js.map +0 -1
  222. package/src/definitions/CallQueueOverflowAgent.ts +0 -23
  223. package/src/definitions/CallQueueUpdateDetails.ts +0 -20
  224. package/src/definitions/RcvListDelegatorsParameters.ts +0 -10
  225. 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 the list of meeting recordings belonging to particular user.
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 the list of meeting recordings belonging to all account users.
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
- queryParams?: RcvListDelegatorsParameters,
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
- callQueueUpdateDetails: CallQueueUpdateDetails,
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(), callQueueUpdateDetails, undefined, restRequestConfig);
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;
@@ -15,7 +15,6 @@ class Index {
15
15
  }
16
16
  /**
17
17
  * Returns overflow settings for a call queue specified in path.
18
- *
19
18
  * HTTP Method: get
20
19
  * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{callQueueId}/overflow-settings
21
20
  * Rate Limit Group: Heavy
@@ -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(), undefined, restRequestConfig);
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<string> {
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<string>(this.path(), roleResource, undefined, restRequestConfig);
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;