@rc-ex/core 1.3.15 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/lib/FormData.d.ts +0 -1
  2. package/lib/Utils.d.ts +0 -1
  3. package/lib/definitions/AccountPhoneNumberInfo.d.ts +4 -0
  4. package/lib/definitions/ActivePermissionResource.d.ts +1 -1
  5. package/lib/definitions/AssignPhoneNumberRequest.d.ts +5 -1
  6. package/lib/definitions/Attachment.d.ts +0 -2
  7. package/lib/definitions/AuthCodeTokenRequest.d.ts +30 -0
  8. package/lib/definitions/{TMTaskInfoRecurrence.js → AuthCodeTokenRequest.js} +1 -1
  9. package/lib/definitions/AuthCodeTokenRequest.js.map +1 -0
  10. package/lib/definitions/AuthorizeParameters.d.ts +92 -0
  11. package/lib/definitions/{SessionInfoResponse.js → AuthorizeParameters.js} +1 -1
  12. package/lib/definitions/AuthorizeParameters.js.map +1 -0
  13. package/lib/definitions/AuthorizeRequest.d.ts +39 -42
  14. package/lib/definitions/BaseCallLogRecord.d.ts +0 -1
  15. package/lib/definitions/BaseTokenRequest.d.ts +41 -0
  16. package/lib/definitions/{IntrospectTokenRequest.js → BaseTokenRequest.js} +1 -1
  17. package/lib/definitions/BaseTokenRequest.js.map +1 -0
  18. package/lib/definitions/CallLogRecord.d.ts +0 -1
  19. package/lib/definitions/CallLogRecordLegInfo.d.ts +0 -1
  20. package/lib/definitions/ClientAuthJwtModel.d.ts +15 -0
  21. package/lib/definitions/{TokenIntrospectionResponse.js → ClientAuthJwtModel.js} +1 -1
  22. package/lib/definitions/ClientAuthJwtModel.js.map +1 -0
  23. package/lib/definitions/ClientCredentialsBase.d.ts +10 -0
  24. package/lib/definitions/ClientCredentialsBase.js +3 -0
  25. package/lib/definitions/ClientCredentialsBase.js.map +1 -0
  26. package/lib/definitions/ClientCredentialsByAccount.d.ts +15 -0
  27. package/lib/definitions/ClientCredentialsByAccount.js +3 -0
  28. package/lib/definitions/ClientCredentialsByAccount.js.map +1 -0
  29. package/lib/definitions/ClientCredentialsByBrand.d.ts +15 -0
  30. package/lib/definitions/ClientCredentialsByBrand.js +3 -0
  31. package/lib/definitions/ClientCredentialsByBrand.js.map +1 -0
  32. package/lib/definitions/ClientCredentialsByPartnerAccount.d.ts +20 -0
  33. package/lib/definitions/{SocMsgListIdentitiesParameters.js → ClientCredentialsByPartnerAccount.js} +1 -1
  34. package/lib/definitions/ClientCredentialsByPartnerAccount.js.map +1 -0
  35. package/lib/definitions/ClientCredentialsTokenRequest.d.ts +25 -0
  36. package/lib/definitions/{TMCreateTaskRequestRecurrence.js → ClientCredentialsTokenRequest.js} +1 -1
  37. package/lib/definitions/ClientCredentialsTokenRequest.js.map +1 -0
  38. package/lib/definitions/CompanyAnsweringRuleRequest.d.ts +2 -1
  39. package/lib/definitions/DeviceCodeTokenRequest.d.ts +18 -0
  40. package/lib/definitions/DeviceCodeTokenRequest.js +3 -0
  41. package/lib/definitions/DeviceCodeTokenRequest.js.map +1 -0
  42. package/lib/definitions/DeviceEmergencyInfo.d.ts +2 -2
  43. package/lib/definitions/EventRecurrenceInfo.d.ts +25 -0
  44. package/lib/definitions/EventRecurrenceInfo.js +3 -0
  45. package/lib/definitions/EventRecurrenceInfo.js.map +1 -0
  46. package/lib/definitions/ExtensionCreationResponse.d.ts +1 -1
  47. package/lib/definitions/FaxResponseTo.d.ts +11 -0
  48. package/lib/definitions/GetConferencingInfoResponse.d.ts +5 -0
  49. package/lib/definitions/GetTokenRequest.d.ts +86 -45
  50. package/lib/definitions/GuestTokenRequest.d.ts +22 -0
  51. package/lib/definitions/GuestTokenRequest.js +3 -0
  52. package/lib/definitions/GuestTokenRequest.js.map +1 -0
  53. package/lib/definitions/IdentityExtraValues.d.ts +1 -1
  54. package/lib/definitions/IdentityModel.d.ts +28 -64
  55. package/lib/definitions/IvrPinTokenRequest.d.ts +16 -0
  56. package/lib/definitions/IvrPinTokenRequest.js +3 -0
  57. package/lib/definitions/IvrPinTokenRequest.js.map +1 -0
  58. package/lib/definitions/JobStatusResponse.d.ts +7 -0
  59. package/lib/definitions/JobStatusResponseResponse.d.ts +39 -0
  60. package/lib/definitions/JobStatusResponseResponse.js +3 -0
  61. package/lib/definitions/JobStatusResponseResponse.js.map +1 -0
  62. package/lib/definitions/JwtTokenRequest.d.ts +19 -0
  63. package/lib/definitions/JwtTokenRequest.js +3 -0
  64. package/lib/definitions/JwtTokenRequest.js.map +1 -0
  65. package/lib/definitions/ListCompanyMessageTemplatesParameters.d.ts +11 -0
  66. package/lib/definitions/ListCompanyMessageTemplatesParameters.js +3 -0
  67. package/lib/definitions/ListCompanyMessageTemplatesParameters.js.map +1 -0
  68. package/lib/definitions/{SocMsgListIdentitiesParameters.d.ts → ListSocialMessagingIdentitiesParameters.d.ts} +7 -7
  69. package/lib/definitions/ListSocialMessagingIdentitiesParameters.js +3 -0
  70. package/lib/definitions/ListSocialMessagingIdentitiesParameters.js.map +1 -0
  71. package/lib/definitions/ListUserMessageTemplatesParameters.d.ts +15 -0
  72. package/lib/definitions/ListUserMessageTemplatesParameters.js +3 -0
  73. package/lib/definitions/ListUserMessageTemplatesParameters.js.map +1 -0
  74. package/lib/definitions/MessageStatusCounts.d.ts +2 -1
  75. package/lib/definitions/MessageStoreCallerInfoResponseTo.d.ts +4 -0
  76. package/lib/definitions/MessageTemplateRequest.d.ts +17 -0
  77. package/lib/definitions/MessageTemplateRequest.js +3 -0
  78. package/lib/definitions/MessageTemplateRequest.js.map +1 -0
  79. package/lib/definitions/MessageTemplateResponse.d.ts +23 -0
  80. package/lib/definitions/MessageTemplateResponse.js +3 -0
  81. package/lib/definitions/MessageTemplateResponse.js.map +1 -0
  82. package/lib/definitions/MessageTemplateUpdateRequest.d.ts +16 -0
  83. package/lib/definitions/MessageTemplateUpdateRequest.js +3 -0
  84. package/lib/definitions/MessageTemplateUpdateRequest.js.map +1 -0
  85. package/lib/definitions/MessageTemplatesListResponse.d.ts +8 -0
  86. package/lib/definitions/MessageTemplatesListResponse.js +3 -0
  87. package/lib/definitions/MessageTemplatesListResponse.js.map +1 -0
  88. package/lib/definitions/OtpTokenRequest.d.ts +16 -0
  89. package/lib/definitions/OtpTokenRequest.js +3 -0
  90. package/lib/definitions/OtpTokenRequest.js.map +1 -0
  91. package/lib/definitions/ReadGlipPostsNewParameters.d.ts +1 -1
  92. package/lib/definitions/RefreshTokenRequest.d.ts +17 -0
  93. package/lib/definitions/RefreshTokenRequest.js +3 -0
  94. package/lib/definitions/RefreshTokenRequest.js.map +1 -0
  95. package/lib/definitions/RegSessionModelSettings.d.ts +9 -1
  96. package/lib/definitions/RegistrantBaseModel.d.ts +4 -0
  97. package/lib/definitions/RegistrantBaseModelWithQuestionnaire.d.ts +4 -0
  98. package/lib/definitions/RegistrantMinimalModel.d.ts +4 -0
  99. package/lib/definitions/RegistrantModelResponsePostWithQuestionnaire.d.ts +4 -0
  100. package/lib/definitions/RegistrantModelWithQuestionnaire.d.ts +4 -0
  101. package/lib/definitions/RevokeTokenRequest.d.ts +7 -3
  102. package/lib/definitions/RoleResource.d.ts +1 -1
  103. package/lib/definitions/RopcTokenRequest.d.ts +37 -0
  104. package/lib/definitions/RopcTokenRequest.js +3 -0
  105. package/lib/definitions/RopcTokenRequest.js.map +1 -0
  106. package/lib/definitions/ServiceInfo.d.ts +1 -1
  107. package/lib/definitions/ServiceInfoCountryShortModel.d.ts +29 -0
  108. package/lib/definitions/ServiceInfoCountryShortModel.js +3 -0
  109. package/lib/definitions/ServiceInfoCountryShortModel.js.map +1 -0
  110. package/lib/definitions/ServiceInfoPlan.d.ts +21 -0
  111. package/lib/definitions/ServiceInfoPlan.js +3 -0
  112. package/lib/definitions/ServiceInfoPlan.js.map +1 -0
  113. package/lib/definitions/ServiceInfoUBrand.d.ts +16 -0
  114. package/lib/definitions/ServiceInfoUBrand.js +3 -0
  115. package/lib/definitions/ServiceInfoUBrand.js.map +1 -0
  116. package/lib/definitions/ServiceInfoV2.d.ts +12 -0
  117. package/lib/definitions/Site.d.ts +16 -0
  118. package/lib/definitions/Site.js +3 -0
  119. package/lib/definitions/Site.js.map +1 -0
  120. package/lib/definitions/TMCreateEventRequest.d.ts +2 -19
  121. package/lib/definitions/TMCreateTaskRequest.d.ts +2 -2
  122. package/lib/definitions/TMEventInfo.d.ts +2 -17
  123. package/lib/definitions/TMMessageAttachmentInfo.d.ts +2 -17
  124. package/lib/definitions/TMTaskInfo.d.ts +2 -3
  125. package/lib/definitions/TMUpdateTaskRequest.d.ts +2 -2
  126. package/lib/definitions/{TMTaskInfoRecurrence.d.ts → TaskRecurrenceInfo.d.ts} +11 -5
  127. package/lib/definitions/TaskRecurrenceInfo.js +3 -0
  128. package/lib/definitions/TaskRecurrenceInfo.js.map +1 -0
  129. package/lib/definitions/TemplateInfo.d.ts +6 -24
  130. package/lib/definitions/TokenInfo.d.ts +22 -16
  131. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +8 -10
  132. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +6 -8
  133. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -1
  134. package/lib/paths/Restapi/Account/Extension/Greeting/Content/index.d.ts +0 -1
  135. package/lib/paths/Restapi/Account/Extension/MessageStore/Content/index.d.ts +0 -1
  136. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.d.ts +57 -0
  137. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +84 -0
  138. package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js.map +1 -0
  139. package/lib/paths/Restapi/Account/Extension/ProfileImage/index.d.ts +0 -1
  140. package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -0
  141. package/lib/paths/Restapi/Account/Extension/index.js +4 -0
  142. package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
  143. package/lib/paths/Restapi/Account/Greeting/Content/index.d.ts +0 -1
  144. package/lib/paths/Restapi/Account/IvrPrompts/Content/index.d.ts +0 -1
  145. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.d.ts +54 -0
  146. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js +81 -0
  147. package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js.map +1 -0
  148. package/lib/paths/Restapi/Account/Recording/Content/index.d.ts +0 -1
  149. package/lib/paths/Restapi/Account/ServiceInfo/index.d.ts +1 -1
  150. package/lib/paths/Restapi/Account/ServiceInfo/index.js +1 -1
  151. package/lib/paths/Restapi/Account/index.d.ts +2 -0
  152. package/lib/paths/Restapi/Account/index.js +4 -0
  153. package/lib/paths/Restapi/Account/index.js.map +1 -1
  154. package/lib/paths/Restapi/Oauth/Authorize/index.d.ts +18 -3
  155. package/lib/paths/Restapi/Oauth/Authorize/index.js +18 -4
  156. package/lib/paths/Restapi/Oauth/Authorize/index.js.map +1 -1
  157. package/lib/paths/Restapi/Oauth/Revoke/index.d.ts +6 -4
  158. package/lib/paths/Restapi/Oauth/Revoke/index.js +6 -4
  159. package/lib/paths/Restapi/Oauth/Revoke/index.js.map +1 -1
  160. package/lib/paths/Restapi/Oauth/Token/index.d.ts +6 -3
  161. package/lib/paths/Restapi/Oauth/Token/index.js +6 -3
  162. package/lib/paths/Restapi/Oauth/Token/index.js.map +1 -1
  163. package/lib/paths/Restapi/Oauth/index.d.ts +0 -4
  164. package/lib/paths/Restapi/Oauth/index.js +0 -8
  165. package/lib/paths/Restapi/Oauth/index.js.map +1 -1
  166. package/lib/types.d.ts +0 -2
  167. package/package.json +4 -4
  168. package/src/definitions/AccountPhoneNumberInfo.ts +5 -0
  169. package/src/definitions/ActivePermissionResource.ts +1 -1
  170. package/src/definitions/AssignPhoneNumberRequest.ts +6 -1
  171. package/src/definitions/AuthCodeTokenRequest.ts +34 -0
  172. package/src/definitions/AuthorizeParameters.ts +107 -0
  173. package/src/definitions/AuthorizeRequest.ts +39 -44
  174. package/src/definitions/BaseCallLogRecord.ts +0 -1
  175. package/src/definitions/BaseTokenRequest.ts +59 -0
  176. package/src/definitions/CallLogRecord.ts +0 -1
  177. package/src/definitions/CallLogRecordLegInfo.ts +0 -1
  178. package/src/definitions/ClientAuthJwtModel.ts +17 -0
  179. package/src/definitions/ClientCredentialsBase.ts +11 -0
  180. package/src/definitions/ClientCredentialsByAccount.ts +17 -0
  181. package/src/definitions/ClientCredentialsByBrand.ts +17 -0
  182. package/src/definitions/ClientCredentialsByPartnerAccount.ts +23 -0
  183. package/src/definitions/ClientCredentialsTokenRequest.ts +29 -0
  184. package/src/definitions/CompanyAnsweringRuleRequest.ts +2 -1
  185. package/src/definitions/DeviceCodeTokenRequest.ts +20 -0
  186. package/src/definitions/DeviceEmergencyInfo.ts +2 -2
  187. package/src/definitions/EventRecurrenceInfo.ts +29 -0
  188. package/src/definitions/ExtensionCreationResponse.ts +1 -0
  189. package/src/definitions/FaxResponseTo.ts +13 -0
  190. package/src/definitions/GetConferencingInfoResponse.ts +6 -0
  191. package/src/definitions/GetTokenRequest.ts +89 -46
  192. package/src/definitions/GuestTokenRequest.ts +26 -0
  193. package/src/definitions/IdentityExtraValues.ts +1 -1
  194. package/src/definitions/IdentityModel.ts +28 -64
  195. package/src/definitions/IvrPinTokenRequest.ts +18 -0
  196. package/src/definitions/JobStatusResponse.ts +10 -0
  197. package/src/definitions/JobStatusResponseResponse.ts +48 -0
  198. package/src/definitions/JwtTokenRequest.ts +21 -0
  199. package/src/definitions/ListCompanyMessageTemplatesParameters.ts +12 -0
  200. package/src/definitions/{SocMsgListIdentitiesParameters.ts → ListSocialMessagingIdentitiesParameters.ts} +7 -7
  201. package/src/definitions/ListUserMessageTemplatesParameters.ts +17 -0
  202. package/src/definitions/MessageStatusCounts.ts +2 -1
  203. package/src/definitions/MessageStoreCallerInfoResponseTo.ts +5 -0
  204. package/src/definitions/MessageTemplateRequest.ts +21 -0
  205. package/src/definitions/MessageTemplateResponse.ts +29 -0
  206. package/src/definitions/MessageTemplateUpdateRequest.ts +20 -0
  207. package/src/definitions/MessageTemplatesListResponse.ts +10 -0
  208. package/src/definitions/OtpTokenRequest.ts +18 -0
  209. package/src/definitions/ReadGlipPostsNewParameters.ts +1 -1
  210. package/src/definitions/RefreshTokenRequest.ts +19 -0
  211. package/src/definitions/RegSessionModelSettings.ts +11 -1
  212. package/src/definitions/RegistrantBaseModel.ts +5 -0
  213. package/src/definitions/RegistrantBaseModelWithQuestionnaire.ts +5 -0
  214. package/src/definitions/RegistrantMinimalModel.ts +5 -0
  215. package/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts +5 -0
  216. package/src/definitions/RegistrantModelWithQuestionnaire.ts +5 -0
  217. package/src/definitions/RevokeTokenRequest.ts +7 -3
  218. package/src/definitions/RoleResource.ts +9 -1
  219. package/src/definitions/RopcTokenRequest.ts +42 -0
  220. package/src/definitions/ServiceInfo.ts +1 -1
  221. package/src/definitions/ServiceInfoCountryShortModel.ts +34 -0
  222. package/src/definitions/ServiceInfoPlan.ts +25 -0
  223. package/src/definitions/ServiceInfoUBrand.ts +18 -0
  224. package/src/definitions/ServiceInfoV2.ts +15 -0
  225. package/src/definitions/Site.ts +18 -0
  226. package/src/definitions/TMCreateEventRequest.ts +3 -22
  227. package/src/definitions/TMCreateTaskRequest.ts +2 -2
  228. package/src/definitions/TMEventInfo.ts +3 -20
  229. package/src/definitions/TMMessageAttachmentInfo.ts +2 -20
  230. package/src/definitions/TMTaskInfo.ts +2 -3
  231. package/src/definitions/TMUpdateTaskRequest.ts +2 -2
  232. package/src/definitions/{TMTaskInfoRecurrence.ts → TaskRecurrenceInfo.ts} +11 -5
  233. package/src/definitions/TemplateInfo.ts +6 -29
  234. package/src/definitions/TokenInfo.ts +22 -16
  235. package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +8 -10
  236. package/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts +115 -0
  237. package/src/paths/Restapi/Account/Extension/index.ts +5 -0
  238. package/src/paths/Restapi/Account/MessageStoreTemplates/index.ts +112 -0
  239. package/src/paths/Restapi/Account/ServiceInfo/index.ts +1 -1
  240. package/src/paths/Restapi/Account/index.ts +5 -0
  241. package/src/paths/Restapi/Oauth/Authorize/index.ts +19 -4
  242. package/src/paths/Restapi/Oauth/Revoke/index.ts +6 -4
  243. package/src/paths/Restapi/Oauth/Token/index.ts +6 -3
  244. package/src/paths/Restapi/Oauth/index.ts +0 -10
  245. package/src/samples.md +1477 -1229
  246. package/lib/definitions/IntrospectTokenRequest.d.ts +0 -13
  247. package/lib/definitions/IntrospectTokenRequest.js.map +0 -1
  248. package/lib/definitions/SessionInfoResponse.d.ts +0 -42
  249. package/lib/definitions/SessionInfoResponse.js.map +0 -1
  250. package/lib/definitions/SocMsgListIdentitiesParameters.js.map +0 -1
  251. package/lib/definitions/TMCreateTaskRequestRecurrence.d.ts +0 -25
  252. package/lib/definitions/TMCreateTaskRequestRecurrence.js.map +0 -1
  253. package/lib/definitions/TMTaskInfoRecurrence.js.map +0 -1
  254. package/lib/definitions/TMUpdateTaskRequestRecurrence.d.ts +0 -24
  255. package/lib/definitions/TMUpdateTaskRequestRecurrence.js +0 -3
  256. package/lib/definitions/TMUpdateTaskRequestRecurrence.js.map +0 -1
  257. package/lib/definitions/TokenIntrospectionResponse.d.ts +0 -47
  258. package/lib/definitions/TokenIntrospectionResponse.js.map +0 -1
  259. package/lib/paths/Restapi/Oauth/Introspect/index.d.ts +0 -24
  260. package/lib/paths/Restapi/Oauth/Introspect/index.js +0 -30
  261. package/lib/paths/Restapi/Oauth/Introspect/index.js.map +0 -1
  262. package/lib/paths/Restapi/Oauth/SessionInfo/index.d.ts +0 -17
  263. package/lib/paths/Restapi/Oauth/SessionInfo/index.js +0 -24
  264. package/lib/paths/Restapi/Oauth/SessionInfo/index.js.map +0 -1
  265. package/src/definitions/IntrospectTokenRequest.ts +0 -15
  266. package/src/definitions/SessionInfoResponse.ts +0 -50
  267. package/src/definitions/TMCreateTaskRequestRecurrence.ts +0 -29
  268. package/src/definitions/TMUpdateTaskRequestRecurrence.ts +0 -28
  269. package/src/definitions/TokenIntrospectionResponse.ts +0 -56
  270. package/src/paths/Restapi/Oauth/Introspect/index.ts +0 -42
  271. package/src/paths/Restapi/Oauth/SessionInfo/index.ts +0 -27
@@ -1,54 +1,50 @@
1
1
  interface AuthorizeRequest {
2
2
  /**
3
- * Determines authorization flow:
4
- * - **code** - Authorization Code,
5
- * - **token** - Implicit
3
+ * Determines authorization flow type. The only supported value is `code` which corresponds to OAuth 2.0 "Authorization Code Flow"
6
4
  * Required
7
5
  */
8
- response_type?: 'code' | 'token';
6
+ response_type?: 'code';
9
7
 
10
8
  /**
11
- * This is a callback URI which determines where the response
12
- * is sent. The value of this parameter must exactly match one of
13
- * the URIs you have provided for your app upon registration
14
- * Required
9
+ * This is the URI where the Authorization Server redirects the User Agent to at the end of the authorization flow.
10
+ * The value of this parameter must exactly match one of the URIs registered for this client application.
11
+ * This parameter is required if there are more than one redirect URIs registered for the app.
15
12
  * Format: uri
16
13
  */
17
14
  redirect_uri?: string;
18
15
 
19
16
  /**
20
- * Identifier (key) of a client application
17
+ * The registered identifier of a client application
21
18
  * Required
19
+ * Example: AZwEVwGEcfGet2PCouA7K6
22
20
  */
23
21
  client_id?: string;
24
22
 
25
23
  /**
26
- * Client state. Returned to the client at the end of the flow
24
+ * An opaque value used by the client to maintain state between the request and callback.
25
+ * The authorization server includes this value when redirecting the User Agent back
26
+ * to the client. The parameter SHOULD be used for preventing cross-site request forgery attacks.
27
27
  */
28
28
  state?: string;
29
29
 
30
30
  /**
31
- * Brand identifier. If it is not provided in request,
32
- * server will try to determine brand from client app profile. The
33
- * default value is `1210` - RingCentral US brand ID
34
- * Default: 1210
31
+ * The list of requested OAuth scopes (space separated)
35
32
  */
36
- brand_id?: string;
33
+ scope?: string;
37
34
 
38
35
  /**
39
- * Style of login form. The default value is 'page'. The
40
- * 'popup' and 'touch' values are featured for mobile applications
36
+ * Specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.
41
37
  * Default: page
42
38
  */
43
39
  display?: 'page' | 'popup' | 'touch' | 'mobile';
44
40
 
45
41
  /**
46
- * Specifies which login form will be displayed. Space-separated
47
- * set of the following values:
42
+ * Space-delimited, case-sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for
43
+ * re-authentication and consent. The defined values are:
48
44
  *
49
- * - **login** - RingCentral native login form,
50
- * - **sso** - Single Sign-On login form,
51
- * - **consent** - form to show the requested scope and prompt user for consent.
45
+ * - `login` - RingCentral native login form,
46
+ * - `sso` - Single Sign-On login form,
47
+ * - `consent` - form to show the requested scope and prompt user for consent.
52
48
  *
53
49
  * Either `login` or `sso` (or both) must be specified. The default
54
50
  * value is `login sso`
@@ -57,53 +53,52 @@ interface AuthorizeRequest {
57
53
  prompt?: string;
58
54
 
59
55
  /**
60
- * Locale code of a language. Overwrites 'Accept-Language' header value.
56
+ * End-User's preferred languages and scripts for the user interface, represented as a space-separated list of
57
+ * [RFC-5646](https://datatracker.ietf.org/doc/html/rfc5646) language tag values, ordered by preference.
61
58
  *
62
- * DEPRECATED: `ui_locales` parameter should be used instead
63
- * Example: en-US
64
- */
65
- localeId?: string;
66
-
67
- /**
68
- * Locale code of a language. Overwrites 'Accept-Language' header value and 'localeId' parameter value
59
+ * If this parameter is provided, its value overrides 'Accept-Language' header value and 'localeId' parameter value (if any)
69
60
  * Example: en-US
70
61
  */
71
62
  ui_locales?: string;
72
63
 
73
64
  /**
74
- * User interface options (space-separated)
75
- */
76
- ui_options?: string;
77
-
78
- /**
79
- * OAuth scope
65
+ * The code challenge value as defined by the PKCE specification -
66
+ * [RFC-7636 "Proof Key for Code Exchange by OAuth Public Clients"](https://datatracker.ietf.org/doc/html/rfc7636)
80
67
  */
81
- scope?: string;
68
+ code_challenge?: string;
82
69
 
83
70
  /**
71
+ * The code challenge method as defined by the PKCE specification -
72
+ * [RFC-7636 "Proof Key for Code Exchange by OAuth Public Clients"](https://datatracker.ietf.org/doc/html/rfc7636)
73
+ * Default: plain
84
74
  */
85
- accept_language?: string;
75
+ code_challenge_method?: 'plain' | 'S256';
86
76
 
87
77
  /**
78
+ * String value used to associate a Client session with an ID Token, and to mitigate replay attacks. The value is passed through unmodified from the Authentication Request to the ID Token.
88
79
  */
89
- request?: string;
80
+ nonce?: string;
90
81
 
91
82
  /**
92
- * Format: uri
83
+ * Login form user interface options (space-separated). By default, the UI options that are registered for this client application will be used
93
84
  */
94
- request_uri?: string;
85
+ ui_options?: string;
95
86
 
96
87
  /**
88
+ * Hint to the Authorization Server about the login identifier the End-User might use to log in.
97
89
  */
98
- nonce?: string;
90
+ login_hint?: string;
99
91
 
100
92
  /**
93
+ * RingCentral Brand identifier. If it is not provided in the request,
94
+ * server will try to determine brand from the client application profile.
95
+ * Example: 1210
101
96
  */
102
- code_challenge?: string;
97
+ brand_id?: string;
103
98
 
104
99
  /**
105
100
  */
106
- code_challenge_method?: 'plain' | 'S256';
101
+ accept_language?: string;
107
102
  }
108
103
 
109
104
  export default AuthorizeRequest;
@@ -42,7 +42,6 @@ interface BaseCallLogRecord {
42
42
  /**
43
43
  * The type of call transport. 'PSTN' indicates that a call leg was initiated
44
44
  * from the PSTN network provider; 'VoIP' - from an RC phone.
45
- * Required
46
45
  */
47
46
  transport?: 'PSTN' | 'VoIP';
48
47
 
@@ -0,0 +1,59 @@
1
+ interface BaseTokenRequest {
2
+ /**
3
+ * Grant type
4
+ * Required
5
+ */
6
+ grant_type?:
7
+ | 'authorization_code'
8
+ | 'password'
9
+ | 'refresh_token'
10
+ | 'client_credentials'
11
+ | 'urn:ietf:params:oauth:grant-type:jwt-bearer'
12
+ | 'urn:ietf:params:oauth:grant-type:device_code'
13
+ | 'device_certificate'
14
+ | 'partner_jwt'
15
+ | 'guest'
16
+ | 'personal_jwt'
17
+ | 'otp'
18
+ | 'ivr_pin';
19
+
20
+ /**
21
+ * The list of application permissions (OAuth scopes) requested.
22
+ * By default, it includes all permissions configured on
23
+ * the client application registration
24
+ */
25
+ scope?: string;
26
+
27
+ /**
28
+ * The registered identifier of a client application.
29
+ * Used to identify a client ONLY if the client authentication is not required and
30
+ * corresponding credentials are not provided with this request
31
+ * Example: AZwEVwGEcfGet2PCouA7K6
32
+ */
33
+ client_id?: string;
34
+
35
+ /**
36
+ * The unique identifier of a client application instance. If not
37
+ * specified, the derived or auto-generated value will be used
38
+ */
39
+ endpoint_id?: string;
40
+
41
+ /**
42
+ * Access token lifetime in seconds
43
+ * Maximum: 3600
44
+ * Minimum: 600
45
+ * Format: int32
46
+ * Default: 3600
47
+ */
48
+ access_token_ttl?: number;
49
+
50
+ /**
51
+ * Refresh token lifetime in seconds
52
+ * Maximum: 604800
53
+ * Format: int32
54
+ * Default: 604800
55
+ */
56
+ refresh_token_ttl?: number;
57
+ }
58
+
59
+ export default BaseTokenRequest;
@@ -43,7 +43,6 @@ interface CallLogRecord {
43
43
  /**
44
44
  * The type of call transport. 'PSTN' indicates that a call leg was initiated
45
45
  * from the PSTN network provider; 'VoIP' - from an RC phone.
46
- * Required
47
46
  */
48
47
  transport?: 'PSTN' | 'VoIP';
49
48
 
@@ -42,7 +42,6 @@ interface CallLogRecordLegInfo {
42
42
  /**
43
43
  * The type of call transport. 'PSTN' indicates that a call leg was initiated
44
44
  * from the PSTN network provider; 'VoIP' - from an RC phone.
45
- * Required
46
45
  */
47
46
  transport?: 'PSTN' | 'VoIP';
48
47
 
@@ -0,0 +1,17 @@
1
+ interface ClientAuthJwtModel {
2
+ /**
3
+ * Client assertion type for the `client_secret_jwt` or `private_key_jwt` client authentication types,
4
+ * as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2).
5
+ * This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types
6
+ */
7
+ client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
8
+
9
+ /**
10
+ * Client assertion (JWT) for the `client_secret_jwt` or `private_key_jwt` client authentication types,
11
+ * as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2).
12
+ * This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types
13
+ */
14
+ client_assertion?: string;
15
+ }
16
+
17
+ export default ClientAuthJwtModel;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Token endpoint request parameters used in the "Client Credentials" authorization flow with the `client_credentials` grant type
3
+ */
4
+ interface ClientCredentialsBase {
5
+ /**
6
+ * Grant type
7
+ */
8
+ grant_type?: 'client_credentials';
9
+ }
10
+
11
+ export default ClientCredentialsBase;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Token endpoint request parameters used in the "Client Credentials" authorization flow with the `client_credentials` grant type
3
+ */
4
+ interface ClientCredentialsByAccount {
5
+ /**
6
+ * Grant type
7
+ */
8
+ grant_type?: 'client_credentials';
9
+
10
+ /**
11
+ * RingCentral internal account ID
12
+ * Required
13
+ */
14
+ account_id?: string;
15
+ }
16
+
17
+ export default ClientCredentialsByAccount;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Token endpoint request parameters used in the "Client Credentials" authorization flow with the `client_credentials` grant type
3
+ */
4
+ interface ClientCredentialsByBrand {
5
+ /**
6
+ * Grant type
7
+ */
8
+ grant_type?: 'client_credentials';
9
+
10
+ /**
11
+ * RingCentral Brand identifier
12
+ * Required
13
+ */
14
+ brand_id?: string;
15
+ }
16
+
17
+ export default ClientCredentialsByBrand;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Token endpoint request parameters used in the "Client Credentials" authorization flow with the `client_credentials` grant type
3
+ */
4
+ interface ClientCredentialsByPartnerAccount {
5
+ /**
6
+ * Grant type
7
+ */
8
+ grant_type?: 'client_credentials';
9
+
10
+ /**
11
+ * RingCentral Brand identifier
12
+ * Required
13
+ */
14
+ brand_id?: string;
15
+
16
+ /**
17
+ * The ID of the account on RingCentral partner's side
18
+ * Required
19
+ */
20
+ partner_account_id?: string;
21
+ }
22
+
23
+ export default ClientCredentialsByPartnerAccount;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Token endpoint request parameters used in the "Client Credentials" authorization flow with the `client_credentials` grant type
3
+ */
4
+ interface ClientCredentialsTokenRequest {
5
+ /**
6
+ * Grant type
7
+ */
8
+ grant_type?: 'client_credentials';
9
+
10
+ /**
11
+ * RingCentral Brand identifier
12
+ * Required
13
+ */
14
+ brand_id?: string;
15
+
16
+ /**
17
+ * RingCentral internal account ID
18
+ * Required
19
+ */
20
+ account_id?: string;
21
+
22
+ /**
23
+ * The ID of the account on RingCentral partner's side
24
+ * Required
25
+ */
26
+ partner_account_id?: string;
27
+ }
28
+
29
+ export default ClientCredentialsTokenRequest;
@@ -1,6 +1,7 @@
1
1
  import type CompanyAnsweringRuleCallersInfoRequest from './CompanyAnsweringRuleCallersInfoRequest';
2
2
  import type CompanyAnsweringRuleCalledNumberInfo from './CompanyAnsweringRuleCalledNumberInfo';
3
3
  import type CompanyAnsweringRuleScheduleInfoRequest from './CompanyAnsweringRuleScheduleInfoRequest';
4
+ import type CompanyAnsweringRuleExtensionInfoRequest from './CompanyAnsweringRuleExtensionInfoRequest';
4
5
  import type GreetingInfo from './GreetingInfo';
5
6
 
6
7
  interface CompanyAnsweringRuleRequest {
@@ -41,7 +42,7 @@ interface CompanyAnsweringRuleRequest {
41
42
 
42
43
  /**
43
44
  */
44
- extension?: CompanyAnsweringRuleCallersInfoRequest;
45
+ extension?: CompanyAnsweringRuleExtensionInfoRequest;
45
46
 
46
47
  /**
47
48
  * Greetings applied for an answering rule; only predefined greetings can be applied, see Dictionary Greeting List
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Token endpoint request parameters used in the "Device Authorization" flow
3
+ * with the `urn:ietf:params:oauth:grant-type:device_code` grant type
4
+ *
5
+ */
6
+ interface DeviceCodeTokenRequest {
7
+ /**
8
+ * Grant type
9
+ */
10
+ grant_type?: 'urn:ietf:params:oauth:grant-type:device_code';
11
+
12
+ /**
13
+ * For `urn:ietf:params:oauth:grant-type:device_code` grant type only.
14
+ * The device verification code as defined by [RFC-8628](https://datatracker.ietf.org/doc/html/rfc8628#section-3.4)
15
+ * Required
16
+ */
17
+ device_code?: string;
18
+ }
19
+
20
+ export default DeviceCodeTokenRequest;
@@ -1,4 +1,4 @@
1
- import type EmergencyAddressInfo from './EmergencyAddressInfo';
1
+ import type CommonEmergencyLocationAddressInfoDefault from './CommonEmergencyLocationAddressInfoDefault';
2
2
  import type DeviceEmergencyLocationInfo from './DeviceEmergencyLocationInfo';
3
3
 
4
4
  /**
@@ -7,7 +7,7 @@ import type DeviceEmergencyLocationInfo from './DeviceEmergencyLocationInfo';
7
7
  interface DeviceEmergencyInfo {
8
8
  /**
9
9
  */
10
- address?: EmergencyAddressInfo;
10
+ address?: CommonEmergencyLocationAddressInfoDefault;
11
11
 
12
12
  /**
13
13
  */
@@ -0,0 +1,29 @@
1
+ interface EventRecurrenceInfo {
2
+ /**
3
+ * Event recurrence settings. For non-periodic events the value
4
+ * is `None`. Must be greater or equal to event duration: 1- Day/Weekday;
5
+ * 7 - Week; 28 - Month; 365 - Year
6
+ */
7
+ schedule?: 'None' | 'Day' | 'Weekday' | 'Week' | 'Month' | 'Year';
8
+
9
+ /**
10
+ * Condition of ending an event
11
+ */
12
+ endingCondition?: 'None' | 'Count' | 'Date';
13
+
14
+ /**
15
+ * Count of event iterations. For periodic events only. Value range is 1 - 10.
16
+ * Must be specified if `endingCondition` is `Count`
17
+ * Format: int32
18
+ */
19
+ endingAfter?: number;
20
+
21
+ /**
22
+ * Iterations ending datetime for periodic events in
23
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
24
+ * Format: date-time
25
+ */
26
+ endingOn?: string;
27
+ }
28
+
29
+ export default EventRecurrenceInfo;
@@ -111,6 +111,7 @@ interface ExtensionCreationResponse {
111
111
  | 'User'
112
112
  | 'VirtualUser'
113
113
  | 'DigitalUser'
114
+ | 'FlexibleUser'
114
115
  | 'Department'
115
116
  | 'Announcement'
116
117
  | 'Voicemail'
@@ -1,4 +1,9 @@
1
1
  interface FaxResponseTo {
2
+ /**
3
+ * Internal identifier of a fax recipient
4
+ */
5
+ recipientId?: string;
6
+
2
7
  /**
3
8
  * Phone number in E.164 (with '+' sign) format
4
9
  * Example: +18661234567
@@ -19,6 +24,14 @@ interface FaxResponseTo {
19
24
  * the 'Sent' status is returned
20
25
  */
21
26
  messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received';
27
+
28
+ /**
29
+ * Contains party location (city, state) if one can be determined
30
+ * from phoneNumber. This property is filled only when phoneNumber is not
31
+ * empty and server can calculate location information from it (for example,
32
+ * this information is unavailable for US toll-free numbers)
33
+ */
34
+ location?: string;
22
35
  }
23
36
 
24
37
  export default FaxResponseTo;
@@ -34,6 +34,12 @@ interface GetConferencingInfoResponse {
34
34
  */
35
35
  phoneNumber?: string;
36
36
 
37
+ /**
38
+ * Link to a branded support page
39
+ * Example: http://success.ringcentral.com
40
+ */
41
+ supportUri?: string;
42
+
37
43
  /**
38
44
  * Short URL leading to the service web page Tap to Join for audio
39
45
  * conference bridge