@cherryin/api-client 0.0.4 → 0.0.6
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/.openapi-generator/FILES +93 -12
- package/README.md +137 -18
- package/api.ts +5418 -2080
- package/dist/api.d.ts +2420 -569
- package/dist/api.js +4150 -1767
- package/dist/esm/api.d.ts +2420 -569
- package/dist/esm/api.js +4037 -1663
- package/docs/AIModelAdminServiceApi.md +53 -0
- package/docs/AIModelCheckConnectionResponse.md +25 -0
- package/docs/AIModelCheckItem.md +32 -0
- package/docs/AIModelCheckResult.md +23 -0
- package/docs/AIModelCreateResponse.md +2 -2
- package/docs/AIModelDeleteResponse.md +2 -2
- package/docs/AIModelDisableResponse.md +2 -2
- package/docs/AIModelGetResponse.md +2 -2
- package/docs/AIModelListResponse.md +2 -2
- package/docs/AIModelPublishResponse.md +2 -2
- package/docs/AIModelUpdateResponse.md +2 -2
- package/docs/Auth2Account.md +33 -0
- package/docs/Auth2Admin.md +33 -0
- package/docs/Auth2AdminServiceApi.md +469 -0
- package/docs/Auth2AdminSession.md +35 -0
- package/docs/{AuthTokenPair.md → Auth2IdToken.md} +10 -8
- package/docs/Auth2Session.md +35 -0
- package/docs/Auth2User.md +33 -0
- package/docs/Auth2UserServiceApi.md +1261 -0
- package/docs/AuthAdminChangePasswordRequest.md +24 -0
- package/docs/AuthAdminChangePasswordResponse.md +26 -0
- package/docs/AuthAdminGetSessionResponse.md +26 -0
- package/docs/AuthAdminListSessionsResponse.md +24 -0
- package/docs/AuthAdminRevokeOtherSessionsResponse.md +24 -0
- package/docs/{UserAuthFlowInitResponseOAuthResult.md → AuthAdminRevokeSessionRequest.md} +5 -5
- package/docs/AuthAdminRevokeSessionResponse.md +24 -0
- package/docs/AuthAdminRevokeSessionsResponse.md +24 -0
- package/docs/AuthAdminSignInEmailRequest.md +26 -0
- package/docs/AuthAdminSignInEmailResponse.md +26 -0
- package/docs/AuthAdminSignOutResponse.md +24 -0
- package/docs/AuthAdminUpdateUserRequest.md +22 -0
- package/docs/AuthAdminUpdateUserResponse.md +24 -0
- package/docs/AuthChangeEmailRequest.md +22 -0
- package/docs/AuthChangeEmailResponse.md +26 -0
- package/docs/AuthChangePasswordRequest.md +24 -0
- package/docs/AuthChangePasswordResponse.md +26 -0
- package/docs/AuthDeleteUserRequest.md +24 -0
- package/docs/AuthDeleteUserResponse.md +24 -0
- package/docs/AuthGetAccessTokenRequest.md +24 -0
- package/docs/AuthGetAccessTokenResponse.md +34 -0
- package/docs/AuthGetAccountInfoResponse.md +24 -0
- package/docs/AuthGetSessionResponse.md +26 -0
- package/docs/AuthLinkSocialRequest.md +30 -0
- package/docs/AuthLinkSocialResponse.md +28 -0
- package/docs/AuthListAccountsResponse.md +24 -0
- package/docs/AuthListSessionsResponse.md +24 -0
- package/docs/AuthOAuth2CallbackResponse.md +32 -0
- package/docs/AuthRefreshTokenRequest.md +24 -0
- package/docs/AuthRefreshTokenResponse.md +34 -0
- package/docs/AuthRequestPasswordResetRequest.md +22 -0
- package/docs/{UserAuthFlowOAuthCallbackRequest.md → AuthRequestPasswordResetResponse.md} +7 -7
- package/docs/AuthResetPasswordRequest.md +22 -0
- package/docs/{AdminAuthFlowInitResponse.md → AuthResetPasswordResponse.md} +5 -5
- package/docs/AuthRevokeOtherSessionsResponse.md +24 -0
- package/docs/{UserAuthInfo.md → AuthRevokeSessionRequest.md} +5 -5
- package/docs/AuthRevokeSessionResponse.md +24 -0
- package/docs/AuthRevokeSessionsResponse.md +24 -0
- package/docs/AuthSendVerificationEmailRequest.md +22 -0
- package/docs/{UserAuthFlowOAuthCallbackResponse.md → AuthSendVerificationEmailResponse.md} +5 -7
- package/docs/AuthSignInEmailRequest.md +26 -0
- package/docs/AuthSignInEmailResponse.md +30 -0
- package/docs/AuthSignInSocialRequest.md +30 -0
- package/docs/AuthSignInSocialResponse.md +30 -0
- package/docs/AuthSignOutResponse.md +24 -0
- package/docs/AuthSignUpEmailRequest.md +32 -0
- package/docs/AuthSignUpEmailResponse.md +28 -0
- package/docs/AuthUnlinkAccountRequest.md +22 -0
- package/docs/AuthUnlinkAccountResponse.md +24 -0
- package/docs/AuthUpdateUserRequest.md +22 -0
- package/docs/AuthUpdateUserResponse.md +24 -0
- package/docs/AuthVerifyEmailResponse.md +24 -0
- package/docs/BatchUpdateSessionsRequest.md +24 -0
- package/docs/BatchUpdateSessionsResponse.md +24 -0
- package/docs/ConfigItem.md +32 -0
- package/docs/ConfigItemHistory.md +22 -0
- package/docs/GetUserDetailResponse.md +24 -0
- package/docs/ListUsersRequest.md +36 -0
- package/docs/ListUsersResponse.md +30 -0
- package/docs/ProviderAdminServiceApi.md +7 -8
- package/docs/ProviderCreateResponse.md +2 -2
- package/docs/ProviderDeleteResponse.md +2 -2
- package/docs/ProviderGetResponse.md +2 -2
- package/docs/ProviderListResponse.md +2 -2
- package/docs/ProviderModelCreateResponse.md +2 -2
- package/docs/ProviderModelDeleteResponse.md +2 -2
- package/docs/ProviderModelGetResponse.md +2 -2
- package/docs/ProviderModelListResponse.md +2 -2
- package/docs/ProviderModelUpdateResponse.md +2 -2
- package/docs/ProviderUpdateResponse.md +2 -2
- package/docs/RemoteConfigAdminServiceApi.md +287 -0
- package/docs/RemoteConfigItemCreateRequest.md +20 -0
- package/docs/RemoteConfigItemCreateResponse.md +24 -0
- package/docs/RemoteConfigItemDeleteRequest.md +20 -0
- package/docs/RemoteConfigItemDeleteResponse.md +22 -0
- package/docs/RemoteConfigItemGetResponse.md +24 -0
- package/docs/RemoteConfigItemListResponse.md +26 -0
- package/docs/RemoteConfigItemUpdateRequest.md +22 -0
- package/docs/RemoteConfigItemUpdateResponse.md +24 -0
- package/docs/SetUserRoleRequest.md +22 -0
- package/docs/SetUserRoleResponse.md +24 -0
- package/docs/SetUserStatusRequest.md +22 -0
- package/docs/SetUserStatusResponse.md +26 -0
- package/docs/UpdateUserInfoRequest.md +26 -0
- package/docs/UpdateUserInfoResponse.md +24 -0
- package/docs/UserInfo.md +14 -8
- package/docs/UserManageAPIKey.md +38 -0
- package/docs/UserManageAdminServiceApi.md +330 -0
- package/docs/UserManageAuthMethod.md +32 -0
- package/docs/UserManageBalance.md +32 -0
- package/docs/UserManageDetail.md +47 -0
- package/docs/UserManageItem.md +39 -0
- package/docs/UserManageSession.md +34 -0
- package/docs/UserManageSettings.md +20 -0
- package/docs/UserPayServiceApi.md +12 -3
- package/package.json +1 -1
- package/docs/AdminAuthServiceApi.md +0 -81
- package/docs/AuthFlowResult.md +0 -23
- package/docs/ProviderDeleteRequest.md +0 -21
- package/docs/UserAuthFlowCodeResponse.md +0 -26
- package/docs/UserAuthFlowInitResponse.md +0 -28
- package/docs/UserAuthServiceApi.md +0 -279
package/docs/AuthFlowResult.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# AuthFlowResult
|
|
2
|
-
|
|
3
|
-
AuthFlowResult 授权登录态获取成功后的数据
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**is_authed** | **boolean** | | [optional] [default to undefined]
|
|
10
|
-
**auth_tokens** | [**AuthTokenPair**](AuthTokenPair.md) | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AuthFlowResult } from '@cherryin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: AuthFlowResult = {
|
|
18
|
-
is_authed,
|
|
19
|
-
auth_tokens,
|
|
20
|
-
};
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# ProviderDeleteRequest
|
|
2
|
-
|
|
3
|
-
ProviderDeleteRequest 删除 Provider 的请求 Request message for deleting a provider
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\" | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ProviderDeleteRequest } from '@cherryin/api-client';
|
|
15
|
-
|
|
16
|
-
const instance: ProviderDeleteRequest = {
|
|
17
|
-
id,
|
|
18
|
-
};
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# UserAuthFlowCodeResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**auth_result** | [**AuthFlowResult**](AuthFlowResult.md) | 如果验证通过立刻下发登录态,则会通过这个返回鉴权的 AuthToken 如果注册成功,还需要登录,则不会下发 | [optional] [default to undefined]
|
|
11
|
-
**user_info** | [**UserAuthInfo**](UserAuthInfo.md) | 注册成功后返回的用户信息 | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { UserAuthFlowCodeResponse } from '@cherryin/api-client';
|
|
17
|
-
|
|
18
|
-
const instance: UserAuthFlowCodeResponse = {
|
|
19
|
-
code,
|
|
20
|
-
message,
|
|
21
|
-
auth_result,
|
|
22
|
-
user_info,
|
|
23
|
-
};
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# UserAuthFlowInitResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**oauth_result** | [**UserAuthFlowInitResponseOAuthResult**](UserAuthFlowInitResponseOAuthResult.md) | for AuthType=OAuth2 才会返回 | [optional] [default to undefined]
|
|
11
|
-
**auth_result** | [**AuthFlowResult**](AuthFlowResult.md) | 对于部分流程,只需要 init 即可完成授权登录态,则会直接返回 AuthData 否则需要继续走完后续流程和调用相关接口 | [optional] [default to undefined]
|
|
12
|
-
**user_info** | [**UserAuthInfo**](UserAuthInfo.md) | 注册成功后返回的用户信息 | [optional] [default to undefined]
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { UserAuthFlowInitResponse } from '@cherryin/api-client';
|
|
18
|
-
|
|
19
|
-
const instance: UserAuthFlowInitResponse = {
|
|
20
|
-
code,
|
|
21
|
-
message,
|
|
22
|
-
oauth_result,
|
|
23
|
-
auth_result,
|
|
24
|
-
user_info,
|
|
25
|
-
};
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
# UserAuthServiceApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**userAuthServiceUserAuthFlowCode**](#userauthserviceuserauthflowcode) | **POST** /auth/v1/flow/code | |
|
|
8
|
-
|[**userAuthServiceUserAuthFlowInit**](#userauthserviceuserauthflowinit) | **POST** /auth/v1/flow/init | |
|
|
9
|
-
|[**userAuthServiceUserAuthFlowOAuthCallback**](#userauthserviceuserauthflowoauthcallback) | **GET** /auth/v1/flow/oauth/cb | |
|
|
10
|
-
|[**userAuthServiceUserAuthFlowTokenRefresh**](#userauthserviceuserauthflowtokenrefresh) | **POST** /auth/v1/flow/refresh_token | |
|
|
11
|
-
|
|
12
|
-
# **userAuthServiceUserAuthFlowCode**
|
|
13
|
-
> UserAuthFlowCodeResponse userAuthServiceUserAuthFlowCode()
|
|
14
|
-
|
|
15
|
-
提交验证码流程
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import {
|
|
21
|
-
UserAuthServiceApi,
|
|
22
|
-
Configuration
|
|
23
|
-
} from '@cherryin/api-client';
|
|
24
|
-
|
|
25
|
-
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new UserAuthServiceApi(configuration);
|
|
27
|
-
|
|
28
|
-
let authType: number; // (optional) (default to undefined)
|
|
29
|
-
let authAction: number; // (optional) (default to undefined)
|
|
30
|
-
let payloadEmailPayloadUserEmail: string; // (optional) (default to undefined)
|
|
31
|
-
let payloadEmailPayloadAuthCode: string; // (optional) (default to undefined)
|
|
32
|
-
let payloadEmailPayloadUserPasswordEncrypt: string; // (optional) (default to undefined)
|
|
33
|
-
let authAt: string; // (optional) (default to undefined)
|
|
34
|
-
let nonce: string; // (optional) (default to undefined)
|
|
35
|
-
let signature: string; //加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt ) (optional) (default to undefined)
|
|
36
|
-
|
|
37
|
-
const { status, data } = await apiInstance.userAuthServiceUserAuthFlowCode(
|
|
38
|
-
authType,
|
|
39
|
-
authAction,
|
|
40
|
-
payloadEmailPayloadUserEmail,
|
|
41
|
-
payloadEmailPayloadAuthCode,
|
|
42
|
-
payloadEmailPayloadUserPasswordEncrypt,
|
|
43
|
-
authAt,
|
|
44
|
-
nonce,
|
|
45
|
-
signature
|
|
46
|
-
);
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Parameters
|
|
50
|
-
|
|
51
|
-
|Name | Type | Description | Notes|
|
|
52
|
-
|------------- | ------------- | ------------- | -------------|
|
|
53
|
-
| **authType** | [**number**] | | (optional) defaults to undefined|
|
|
54
|
-
| **authAction** | [**number**] | | (optional) defaults to undefined|
|
|
55
|
-
| **payloadEmailPayloadUserEmail** | [**string**] | | (optional) defaults to undefined|
|
|
56
|
-
| **payloadEmailPayloadAuthCode** | [**string**] | | (optional) defaults to undefined|
|
|
57
|
-
| **payloadEmailPayloadUserPasswordEncrypt** | [**string**] | | (optional) defaults to undefined|
|
|
58
|
-
| **authAt** | [**string**] | | (optional) defaults to undefined|
|
|
59
|
-
| **nonce** | [**string**] | | (optional) defaults to undefined|
|
|
60
|
-
| **signature** | [**string**] | 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt ) | (optional) defaults to undefined|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Return type
|
|
64
|
-
|
|
65
|
-
**UserAuthFlowCodeResponse**
|
|
66
|
-
|
|
67
|
-
### Authorization
|
|
68
|
-
|
|
69
|
-
No authorization required
|
|
70
|
-
|
|
71
|
-
### HTTP request headers
|
|
72
|
-
|
|
73
|
-
- **Content-Type**: Not defined
|
|
74
|
-
- **Accept**: application/json
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### HTTP response details
|
|
78
|
-
| Status code | Description | Response headers |
|
|
79
|
-
|-------------|-------------|------------------|
|
|
80
|
-
|**200** | OK | - |
|
|
81
|
-
|**0** | Default error response | - |
|
|
82
|
-
|
|
83
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
84
|
-
|
|
85
|
-
# **userAuthServiceUserAuthFlowInit**
|
|
86
|
-
> UserAuthFlowInitResponse userAuthServiceUserAuthFlowInit()
|
|
87
|
-
|
|
88
|
-
鉴权流程启动
|
|
89
|
-
|
|
90
|
-
### Example
|
|
91
|
-
|
|
92
|
-
```typescript
|
|
93
|
-
import {
|
|
94
|
-
UserAuthServiceApi,
|
|
95
|
-
Configuration
|
|
96
|
-
} from '@cherryin/api-client';
|
|
97
|
-
|
|
98
|
-
const configuration = new Configuration();
|
|
99
|
-
const apiInstance = new UserAuthServiceApi(configuration);
|
|
100
|
-
|
|
101
|
-
let authType: number; // (optional) (default to undefined)
|
|
102
|
-
let authAction: number; // (optional) (default to undefined)
|
|
103
|
-
let payloadEmailPayloadUserEmail: string; // (optional) (default to undefined)
|
|
104
|
-
let payloadEmailPayloadUserPasswordEncrypt: string; // (optional) (default to undefined)
|
|
105
|
-
let payloadEmailPayloadDisplayName: string; // (optional) (default to undefined)
|
|
106
|
-
let payloadOauth2PayloadPlatform: number; // (optional) (default to undefined)
|
|
107
|
-
let authAt: string; // (optional) (default to undefined)
|
|
108
|
-
let nonce: string; // (optional) (default to undefined)
|
|
109
|
-
let signature: string; //加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform ) (optional) (default to undefined)
|
|
110
|
-
|
|
111
|
-
const { status, data } = await apiInstance.userAuthServiceUserAuthFlowInit(
|
|
112
|
-
authType,
|
|
113
|
-
authAction,
|
|
114
|
-
payloadEmailPayloadUserEmail,
|
|
115
|
-
payloadEmailPayloadUserPasswordEncrypt,
|
|
116
|
-
payloadEmailPayloadDisplayName,
|
|
117
|
-
payloadOauth2PayloadPlatform,
|
|
118
|
-
authAt,
|
|
119
|
-
nonce,
|
|
120
|
-
signature
|
|
121
|
-
);
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
### Parameters
|
|
125
|
-
|
|
126
|
-
|Name | Type | Description | Notes|
|
|
127
|
-
|------------- | ------------- | ------------- | -------------|
|
|
128
|
-
| **authType** | [**number**] | | (optional) defaults to undefined|
|
|
129
|
-
| **authAction** | [**number**] | | (optional) defaults to undefined|
|
|
130
|
-
| **payloadEmailPayloadUserEmail** | [**string**] | | (optional) defaults to undefined|
|
|
131
|
-
| **payloadEmailPayloadUserPasswordEncrypt** | [**string**] | | (optional) defaults to undefined|
|
|
132
|
-
| **payloadEmailPayloadDisplayName** | [**string**] | | (optional) defaults to undefined|
|
|
133
|
-
| **payloadOauth2PayloadPlatform** | [**number**] | | (optional) defaults to undefined|
|
|
134
|
-
| **authAt** | [**string**] | | (optional) defaults to undefined|
|
|
135
|
-
| **nonce** | [**string**] | | (optional) defaults to undefined|
|
|
136
|
-
| **signature** | [**string**] | 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform ) | (optional) defaults to undefined|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
### Return type
|
|
140
|
-
|
|
141
|
-
**UserAuthFlowInitResponse**
|
|
142
|
-
|
|
143
|
-
### Authorization
|
|
144
|
-
|
|
145
|
-
No authorization required
|
|
146
|
-
|
|
147
|
-
### HTTP request headers
|
|
148
|
-
|
|
149
|
-
- **Content-Type**: Not defined
|
|
150
|
-
- **Accept**: application/json
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### HTTP response details
|
|
154
|
-
| Status code | Description | Response headers |
|
|
155
|
-
|-------------|-------------|------------------|
|
|
156
|
-
|**200** | OK | - |
|
|
157
|
-
|**0** | Default error response | - |
|
|
158
|
-
|
|
159
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
160
|
-
|
|
161
|
-
# **userAuthServiceUserAuthFlowOAuthCallback**
|
|
162
|
-
> UserAuthFlowOAuthCallbackResponse userAuthServiceUserAuthFlowOAuthCallback()
|
|
163
|
-
|
|
164
|
-
OAUTH 流程验证回调
|
|
165
|
-
|
|
166
|
-
### Example
|
|
167
|
-
|
|
168
|
-
```typescript
|
|
169
|
-
import {
|
|
170
|
-
UserAuthServiceApi,
|
|
171
|
-
Configuration
|
|
172
|
-
} from '@cherryin/api-client';
|
|
173
|
-
|
|
174
|
-
const configuration = new Configuration();
|
|
175
|
-
const apiInstance = new UserAuthServiceApi(configuration);
|
|
176
|
-
|
|
177
|
-
let code: string; // (optional) (default to undefined)
|
|
178
|
-
let state: string; // (optional) (default to undefined)
|
|
179
|
-
let platform: number; // (optional) (default to undefined)
|
|
180
|
-
|
|
181
|
-
const { status, data } = await apiInstance.userAuthServiceUserAuthFlowOAuthCallback(
|
|
182
|
-
code,
|
|
183
|
-
state,
|
|
184
|
-
platform
|
|
185
|
-
);
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### Parameters
|
|
189
|
-
|
|
190
|
-
|Name | Type | Description | Notes|
|
|
191
|
-
|------------- | ------------- | ------------- | -------------|
|
|
192
|
-
| **code** | [**string**] | | (optional) defaults to undefined|
|
|
193
|
-
| **state** | [**string**] | | (optional) defaults to undefined|
|
|
194
|
-
| **platform** | [**number**] | | (optional) defaults to undefined|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Return type
|
|
198
|
-
|
|
199
|
-
**UserAuthFlowOAuthCallbackResponse**
|
|
200
|
-
|
|
201
|
-
### Authorization
|
|
202
|
-
|
|
203
|
-
No authorization required
|
|
204
|
-
|
|
205
|
-
### HTTP request headers
|
|
206
|
-
|
|
207
|
-
- **Content-Type**: Not defined
|
|
208
|
-
- **Accept**: application/json
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
### HTTP response details
|
|
212
|
-
| Status code | Description | Response headers |
|
|
213
|
-
|-------------|-------------|------------------|
|
|
214
|
-
|**200** | OK | - |
|
|
215
|
-
|**0** | Default error response | - |
|
|
216
|
-
|
|
217
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
218
|
-
|
|
219
|
-
# **userAuthServiceUserAuthFlowTokenRefresh**
|
|
220
|
-
> UserAuthFlowOAuthCallbackRequest userAuthServiceUserAuthFlowTokenRefresh()
|
|
221
|
-
|
|
222
|
-
Auth Token 刷新接口
|
|
223
|
-
|
|
224
|
-
### Example
|
|
225
|
-
|
|
226
|
-
```typescript
|
|
227
|
-
import {
|
|
228
|
-
UserAuthServiceApi,
|
|
229
|
-
Configuration
|
|
230
|
-
} from '@cherryin/api-client';
|
|
231
|
-
|
|
232
|
-
const configuration = new Configuration();
|
|
233
|
-
const apiInstance = new UserAuthServiceApi(configuration);
|
|
234
|
-
|
|
235
|
-
let refreshToken: string; // (optional) (default to undefined)
|
|
236
|
-
let authAt: string; // (optional) (default to undefined)
|
|
237
|
-
let nonce: string; // (optional) (default to undefined)
|
|
238
|
-
let signature: string; // (optional) (default to undefined)
|
|
239
|
-
|
|
240
|
-
const { status, data } = await apiInstance.userAuthServiceUserAuthFlowTokenRefresh(
|
|
241
|
-
refreshToken,
|
|
242
|
-
authAt,
|
|
243
|
-
nonce,
|
|
244
|
-
signature
|
|
245
|
-
);
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### Parameters
|
|
249
|
-
|
|
250
|
-
|Name | Type | Description | Notes|
|
|
251
|
-
|------------- | ------------- | ------------- | -------------|
|
|
252
|
-
| **refreshToken** | [**string**] | | (optional) defaults to undefined|
|
|
253
|
-
| **authAt** | [**string**] | | (optional) defaults to undefined|
|
|
254
|
-
| **nonce** | [**string**] | | (optional) defaults to undefined|
|
|
255
|
-
| **signature** | [**string**] | | (optional) defaults to undefined|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
### Return type
|
|
259
|
-
|
|
260
|
-
**UserAuthFlowOAuthCallbackRequest**
|
|
261
|
-
|
|
262
|
-
### Authorization
|
|
263
|
-
|
|
264
|
-
No authorization required
|
|
265
|
-
|
|
266
|
-
### HTTP request headers
|
|
267
|
-
|
|
268
|
-
- **Content-Type**: Not defined
|
|
269
|
-
- **Accept**: application/json
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
### HTTP response details
|
|
273
|
-
| Status code | Description | Response headers |
|
|
274
|
-
|-------------|-------------|------------------|
|
|
275
|
-
|**200** | OK | - |
|
|
276
|
-
|**0** | Default error response | - |
|
|
277
|
-
|
|
278
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
279
|
-
|