@rc-ex/core 1.3.14 → 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.
- package/lib/FormData.d.ts +0 -1
- package/lib/Utils.d.ts +0 -1
- package/lib/definitions/AccountPhoneNumberInfo.d.ts +4 -0
- package/lib/definitions/ActivePermissionResource.d.ts +1 -1
- package/lib/definitions/AssignPhoneNumberRequest.d.ts +5 -1
- package/lib/definitions/Attachment.d.ts +0 -2
- package/lib/definitions/AuthCodeTokenRequest.d.ts +30 -0
- package/lib/definitions/{TMTaskInfoRecurrence.js → AuthCodeTokenRequest.js} +1 -1
- package/lib/definitions/AuthCodeTokenRequest.js.map +1 -0
- package/lib/definitions/AuthorizeParameters.d.ts +92 -0
- package/lib/definitions/{SessionInfoResponse.js → AuthorizeParameters.js} +1 -1
- package/lib/definitions/AuthorizeParameters.js.map +1 -0
- package/lib/definitions/AuthorizeRequest.d.ts +39 -42
- package/lib/definitions/BaseCallLogRecord.d.ts +0 -1
- package/lib/definitions/BaseTokenRequest.d.ts +41 -0
- package/lib/definitions/{IntrospectTokenRequest.js → BaseTokenRequest.js} +1 -1
- package/lib/definitions/BaseTokenRequest.js.map +1 -0
- package/lib/definitions/CallLogRecord.d.ts +0 -1
- package/lib/definitions/CallLogRecordLegInfo.d.ts +0 -1
- package/lib/definitions/ClientAuthJwtModel.d.ts +15 -0
- package/lib/definitions/{TokenIntrospectionResponse.js → ClientAuthJwtModel.js} +1 -1
- package/lib/definitions/ClientAuthJwtModel.js.map +1 -0
- package/lib/definitions/ClientCredentialsBase.d.ts +10 -0
- package/lib/definitions/ClientCredentialsBase.js +3 -0
- package/lib/definitions/ClientCredentialsBase.js.map +1 -0
- package/lib/definitions/ClientCredentialsByAccount.d.ts +15 -0
- package/lib/definitions/ClientCredentialsByAccount.js +3 -0
- package/lib/definitions/ClientCredentialsByAccount.js.map +1 -0
- package/lib/definitions/ClientCredentialsByBrand.d.ts +15 -0
- package/lib/definitions/ClientCredentialsByBrand.js +3 -0
- package/lib/definitions/ClientCredentialsByBrand.js.map +1 -0
- package/lib/definitions/ClientCredentialsByPartnerAccount.d.ts +20 -0
- package/lib/definitions/{SocMsgListIdentitiesParameters.js → ClientCredentialsByPartnerAccount.js} +1 -1
- package/lib/definitions/ClientCredentialsByPartnerAccount.js.map +1 -0
- package/lib/definitions/ClientCredentialsTokenRequest.d.ts +25 -0
- package/lib/definitions/{TMCreateTaskRequestRecurrence.js → ClientCredentialsTokenRequest.js} +1 -1
- package/lib/definitions/ClientCredentialsTokenRequest.js.map +1 -0
- package/lib/definitions/CompanyAnsweringRuleRequest.d.ts +2 -1
- package/lib/definitions/DeviceCodeTokenRequest.d.ts +18 -0
- package/lib/definitions/DeviceCodeTokenRequest.js +3 -0
- package/lib/definitions/DeviceCodeTokenRequest.js.map +1 -0
- package/lib/definitions/DeviceEmergencyInfo.d.ts +2 -2
- package/lib/definitions/EventRecurrenceInfo.d.ts +25 -0
- package/lib/definitions/EventRecurrenceInfo.js +3 -0
- package/lib/definitions/EventRecurrenceInfo.js.map +1 -0
- package/lib/definitions/ExtensionCreationResponse.d.ts +1 -1
- package/lib/definitions/FaxResponseTo.d.ts +11 -0
- package/lib/definitions/GetConferencingInfoResponse.d.ts +5 -0
- package/lib/definitions/GetTokenRequest.d.ts +86 -45
- package/lib/definitions/GuestTokenRequest.d.ts +22 -0
- package/lib/definitions/GuestTokenRequest.js +3 -0
- package/lib/definitions/GuestTokenRequest.js.map +1 -0
- package/lib/definitions/IdentityExtraValues.d.ts +1 -1
- package/lib/definitions/IdentityModel.d.ts +28 -64
- package/lib/definitions/IvrPinTokenRequest.d.ts +16 -0
- package/lib/definitions/IvrPinTokenRequest.js +3 -0
- package/lib/definitions/IvrPinTokenRequest.js.map +1 -0
- package/lib/definitions/JobStatusResponse.d.ts +7 -0
- package/lib/definitions/JobStatusResponseResponse.d.ts +39 -0
- package/lib/definitions/JobStatusResponseResponse.js +3 -0
- package/lib/definitions/JobStatusResponseResponse.js.map +1 -0
- package/lib/definitions/JwtTokenRequest.d.ts +19 -0
- package/lib/definitions/JwtTokenRequest.js +3 -0
- package/lib/definitions/JwtTokenRequest.js.map +1 -0
- package/lib/definitions/ListCompanyMessageTemplatesParameters.d.ts +11 -0
- package/lib/definitions/ListCompanyMessageTemplatesParameters.js +3 -0
- package/lib/definitions/ListCompanyMessageTemplatesParameters.js.map +1 -0
- package/lib/definitions/{SocMsgListIdentitiesParameters.d.ts → ListSocialMessagingIdentitiesParameters.d.ts} +7 -7
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.js +3 -0
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.js.map +1 -0
- package/lib/definitions/ListUserMessageTemplatesParameters.d.ts +15 -0
- package/lib/definitions/ListUserMessageTemplatesParameters.js +3 -0
- package/lib/definitions/ListUserMessageTemplatesParameters.js.map +1 -0
- package/lib/definitions/MessageStatusCounts.d.ts +2 -1
- package/lib/definitions/MessageStoreCallerInfoResponseTo.d.ts +4 -0
- package/lib/definitions/MessageTemplateRequest.d.ts +17 -0
- package/lib/definitions/MessageTemplateRequest.js +3 -0
- package/lib/definitions/MessageTemplateRequest.js.map +1 -0
- package/lib/definitions/MessageTemplateResponse.d.ts +23 -0
- package/lib/definitions/MessageTemplateResponse.js +3 -0
- package/lib/definitions/MessageTemplateResponse.js.map +1 -0
- package/lib/definitions/MessageTemplateUpdateRequest.d.ts +16 -0
- package/lib/definitions/MessageTemplateUpdateRequest.js +3 -0
- package/lib/definitions/MessageTemplateUpdateRequest.js.map +1 -0
- package/lib/definitions/MessageTemplatesListResponse.d.ts +8 -0
- package/lib/definitions/MessageTemplatesListResponse.js +3 -0
- package/lib/definitions/MessageTemplatesListResponse.js.map +1 -0
- package/lib/definitions/OtpTokenRequest.d.ts +16 -0
- package/lib/definitions/OtpTokenRequest.js +3 -0
- package/lib/definitions/OtpTokenRequest.js.map +1 -0
- package/lib/definitions/ReadGlipPostsNewParameters.d.ts +1 -1
- package/lib/definitions/RefreshTokenRequest.d.ts +17 -0
- package/lib/definitions/RefreshTokenRequest.js +3 -0
- package/lib/definitions/RefreshTokenRequest.js.map +1 -0
- package/lib/definitions/RegSessionModelSettings.d.ts +9 -1
- package/lib/definitions/RegistrantBaseModel.d.ts +4 -0
- package/lib/definitions/RegistrantBaseModelWithQuestionnaire.d.ts +4 -0
- package/lib/definitions/RegistrantMinimalModel.d.ts +4 -0
- package/lib/definitions/RegistrantModelResponsePostWithQuestionnaire.d.ts +4 -0
- package/lib/definitions/RegistrantModelWithQuestionnaire.d.ts +4 -0
- package/lib/definitions/RevokeTokenRequest.d.ts +7 -3
- package/lib/definitions/RoleResource.d.ts +1 -1
- package/lib/definitions/RopcTokenRequest.d.ts +37 -0
- package/lib/definitions/RopcTokenRequest.js +3 -0
- package/lib/definitions/RopcTokenRequest.js.map +1 -0
- package/lib/definitions/ServiceInfo.d.ts +1 -1
- package/lib/definitions/ServiceInfoCountryShortModel.d.ts +29 -0
- package/lib/definitions/ServiceInfoCountryShortModel.js +3 -0
- package/lib/definitions/ServiceInfoCountryShortModel.js.map +1 -0
- package/lib/definitions/ServiceInfoPlan.d.ts +21 -0
- package/lib/definitions/ServiceInfoPlan.js +3 -0
- package/lib/definitions/ServiceInfoPlan.js.map +1 -0
- package/lib/definitions/ServiceInfoUBrand.d.ts +16 -0
- package/lib/definitions/ServiceInfoUBrand.js +3 -0
- package/lib/definitions/ServiceInfoUBrand.js.map +1 -0
- package/lib/definitions/ServiceInfoV2.d.ts +12 -0
- package/lib/definitions/Site.d.ts +16 -0
- package/lib/definitions/Site.js +3 -0
- package/lib/definitions/Site.js.map +1 -0
- package/lib/definitions/TMCreateEventRequest.d.ts +2 -19
- package/lib/definitions/TMCreateTaskRequest.d.ts +2 -2
- package/lib/definitions/TMEventInfo.d.ts +2 -17
- package/lib/definitions/TMMessageAttachmentInfo.d.ts +2 -17
- package/lib/definitions/TMTaskInfo.d.ts +2 -3
- package/lib/definitions/TMUpdateTaskRequest.d.ts +2 -2
- package/lib/definitions/{TMTaskInfoRecurrence.d.ts → TaskRecurrenceInfo.d.ts} +11 -5
- package/lib/definitions/TaskRecurrenceInfo.js +3 -0
- package/lib/definitions/TaskRecurrenceInfo.js.map +1 -0
- package/lib/definitions/TemplateInfo.d.ts +6 -24
- package/lib/definitions/TokenInfo.d.ts +22 -16
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +8 -10
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +6 -8
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/Greeting/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/Extension/MessageStore/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.d.ts +57 -0
- package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +84 -0
- package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Extension/ProfileImage/index.d.ts +0 -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/Greeting/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/IvrPrompts/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/MessageStoreTemplates/index.d.ts +54 -0
- package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js +81 -0
- package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Recording/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/ServiceInfo/index.d.ts +1 -1
- package/lib/paths/Restapi/Account/ServiceInfo/index.js +1 -1
- package/lib/paths/Restapi/Account/index.d.ts +2 -0
- package/lib/paths/Restapi/Account/index.js +4 -0
- package/lib/paths/Restapi/Account/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Authorize/index.d.ts +18 -3
- package/lib/paths/Restapi/Oauth/Authorize/index.js +18 -4
- package/lib/paths/Restapi/Oauth/Authorize/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Revoke/index.d.ts +6 -4
- package/lib/paths/Restapi/Oauth/Revoke/index.js +6 -4
- package/lib/paths/Restapi/Oauth/Revoke/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Token/index.d.ts +6 -3
- package/lib/paths/Restapi/Oauth/Token/index.js +6 -3
- package/lib/paths/Restapi/Oauth/Token/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/index.d.ts +0 -4
- package/lib/paths/Restapi/Oauth/index.js +0 -8
- package/lib/paths/Restapi/Oauth/index.js.map +1 -1
- package/lib/types.d.ts +0 -2
- package/package.json +6 -6
- package/src/definitions/AccountPhoneNumberInfo.ts +5 -0
- package/src/definitions/ActivePermissionResource.ts +1 -1
- package/src/definitions/AssignPhoneNumberRequest.ts +6 -1
- package/src/definitions/AuthCodeTokenRequest.ts +34 -0
- package/src/definitions/AuthorizeParameters.ts +107 -0
- package/src/definitions/AuthorizeRequest.ts +39 -44
- package/src/definitions/BaseCallLogRecord.ts +0 -1
- package/src/definitions/BaseTokenRequest.ts +59 -0
- package/src/definitions/CallLogRecord.ts +0 -1
- package/src/definitions/CallLogRecordLegInfo.ts +0 -1
- package/src/definitions/ClientAuthJwtModel.ts +17 -0
- package/src/definitions/ClientCredentialsBase.ts +11 -0
- package/src/definitions/ClientCredentialsByAccount.ts +17 -0
- package/src/definitions/ClientCredentialsByBrand.ts +17 -0
- package/src/definitions/ClientCredentialsByPartnerAccount.ts +23 -0
- package/src/definitions/ClientCredentialsTokenRequest.ts +29 -0
- package/src/definitions/CompanyAnsweringRuleRequest.ts +2 -1
- package/src/definitions/DeviceCodeTokenRequest.ts +20 -0
- package/src/definitions/DeviceEmergencyInfo.ts +2 -2
- package/src/definitions/EventRecurrenceInfo.ts +29 -0
- package/src/definitions/ExtensionCreationResponse.ts +1 -0
- package/src/definitions/FaxResponseTo.ts +13 -0
- package/src/definitions/GetConferencingInfoResponse.ts +6 -0
- package/src/definitions/GetTokenRequest.ts +89 -46
- package/src/definitions/GuestTokenRequest.ts +26 -0
- package/src/definitions/IdentityExtraValues.ts +1 -1
- package/src/definitions/IdentityModel.ts +28 -64
- package/src/definitions/IvrPinTokenRequest.ts +18 -0
- package/src/definitions/JobStatusResponse.ts +10 -0
- package/src/definitions/JobStatusResponseResponse.ts +48 -0
- package/src/definitions/JwtTokenRequest.ts +21 -0
- package/src/definitions/ListCompanyMessageTemplatesParameters.ts +12 -0
- package/src/definitions/{SocMsgListIdentitiesParameters.ts → ListSocialMessagingIdentitiesParameters.ts} +7 -7
- package/src/definitions/ListUserMessageTemplatesParameters.ts +17 -0
- package/src/definitions/MessageStatusCounts.ts +2 -1
- package/src/definitions/MessageStoreCallerInfoResponseTo.ts +5 -0
- package/src/definitions/MessageTemplateRequest.ts +21 -0
- package/src/definitions/MessageTemplateResponse.ts +29 -0
- package/src/definitions/MessageTemplateUpdateRequest.ts +20 -0
- package/src/definitions/MessageTemplatesListResponse.ts +10 -0
- package/src/definitions/OtpTokenRequest.ts +18 -0
- package/src/definitions/ReadGlipPostsNewParameters.ts +1 -1
- package/src/definitions/RefreshTokenRequest.ts +19 -0
- package/src/definitions/RegSessionModelSettings.ts +11 -1
- package/src/definitions/RegistrantBaseModel.ts +5 -0
- package/src/definitions/RegistrantBaseModelWithQuestionnaire.ts +5 -0
- package/src/definitions/RegistrantMinimalModel.ts +5 -0
- package/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts +5 -0
- package/src/definitions/RegistrantModelWithQuestionnaire.ts +5 -0
- package/src/definitions/RevokeTokenRequest.ts +7 -3
- package/src/definitions/RoleResource.ts +9 -1
- package/src/definitions/RopcTokenRequest.ts +42 -0
- package/src/definitions/ServiceInfo.ts +1 -1
- package/src/definitions/ServiceInfoCountryShortModel.ts +34 -0
- package/src/definitions/ServiceInfoPlan.ts +25 -0
- package/src/definitions/ServiceInfoUBrand.ts +18 -0
- package/src/definitions/ServiceInfoV2.ts +15 -0
- package/src/definitions/Site.ts +18 -0
- package/src/definitions/TMCreateEventRequest.ts +3 -22
- package/src/definitions/TMCreateTaskRequest.ts +2 -2
- package/src/definitions/TMEventInfo.ts +3 -20
- package/src/definitions/TMMessageAttachmentInfo.ts +2 -20
- package/src/definitions/TMTaskInfo.ts +2 -3
- package/src/definitions/TMUpdateTaskRequest.ts +2 -2
- package/src/definitions/{TMTaskInfoRecurrence.ts → TaskRecurrenceInfo.ts} +11 -5
- package/src/definitions/TemplateInfo.ts +6 -29
- package/src/definitions/TokenInfo.ts +22 -16
- package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +8 -10
- package/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts +115 -0
- package/src/paths/Restapi/Account/Extension/index.ts +5 -0
- package/src/paths/Restapi/Account/MessageStoreTemplates/index.ts +112 -0
- package/src/paths/Restapi/Account/ServiceInfo/index.ts +1 -1
- package/src/paths/Restapi/Account/index.ts +5 -0
- package/src/paths/Restapi/Oauth/Authorize/index.ts +19 -4
- package/src/paths/Restapi/Oauth/Revoke/index.ts +6 -4
- package/src/paths/Restapi/Oauth/Token/index.ts +6 -3
- package/src/paths/Restapi/Oauth/index.ts +0 -10
- package/src/samples.md +1477 -1229
- package/lib/definitions/IntrospectTokenRequest.d.ts +0 -13
- package/lib/definitions/IntrospectTokenRequest.js.map +0 -1
- package/lib/definitions/SessionInfoResponse.d.ts +0 -42
- package/lib/definitions/SessionInfoResponse.js.map +0 -1
- package/lib/definitions/SocMsgListIdentitiesParameters.js.map +0 -1
- package/lib/definitions/TMCreateTaskRequestRecurrence.d.ts +0 -25
- package/lib/definitions/TMCreateTaskRequestRecurrence.js.map +0 -1
- package/lib/definitions/TMTaskInfoRecurrence.js.map +0 -1
- package/lib/definitions/TMUpdateTaskRequestRecurrence.d.ts +0 -24
- package/lib/definitions/TMUpdateTaskRequestRecurrence.js +0 -3
- package/lib/definitions/TMUpdateTaskRequestRecurrence.js.map +0 -1
- package/lib/definitions/TokenIntrospectionResponse.d.ts +0 -47
- package/lib/definitions/TokenIntrospectionResponse.js.map +0 -1
- package/lib/paths/Restapi/Oauth/Introspect/index.d.ts +0 -24
- package/lib/paths/Restapi/Oauth/Introspect/index.js +0 -30
- package/lib/paths/Restapi/Oauth/Introspect/index.js.map +0 -1
- package/lib/paths/Restapi/Oauth/SessionInfo/index.d.ts +0 -17
- package/lib/paths/Restapi/Oauth/SessionInfo/index.js +0 -24
- package/lib/paths/Restapi/Oauth/SessionInfo/index.js.map +0 -1
- package/src/definitions/IntrospectTokenRequest.ts +0 -15
- package/src/definitions/SessionInfoResponse.ts +0 -50
- package/src/definitions/TMCreateTaskRequestRecurrence.ts +0 -29
- package/src/definitions/TMUpdateTaskRequestRecurrence.ts +0 -28
- package/src/definitions/TokenIntrospectionResponse.ts +0 -56
- package/src/paths/Restapi/Oauth/Introspect/index.ts +0 -42
- 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'
|
|
6
|
+
response_type?: 'code';
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
|
-
* This is
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
33
|
+
scope?: string;
|
|
37
34
|
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
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
|
-
*
|
|
47
|
-
*
|
|
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
|
-
* -
|
|
50
|
-
* -
|
|
51
|
-
* -
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
80
|
+
nonce?: string;
|
|
90
81
|
|
|
91
82
|
/**
|
|
92
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
97
|
+
brand_id?: string;
|
|
103
98
|
|
|
104
99
|
/**
|
|
105
100
|
*/
|
|
106
|
-
|
|
101
|
+
accept_language?: string;
|
|
107
102
|
}
|
|
108
103
|
|
|
109
104
|
export default AuthorizeRequest;
|
|
@@ -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;
|
|
@@ -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?:
|
|
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
|
|
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?:
|
|
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;
|
|
@@ -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
|