@cherryin/api-client 0.0.4 → 0.0.5
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 -11
- package/README.md +137 -17
- package/api.ts +5413 -2065
- package/dist/api.d.ts +2415 -555
- package/dist/api.js +4193 -1809
- package/dist/esm/api.d.ts +2415 -555
- package/dist/esm/api.js +4046 -1671
- 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 +1 -1
- 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/UserAuthFlowCodeResponse.md +0 -26
- package/docs/UserAuthFlowInitResponse.md +0 -28
- package/docs/UserAuthServiceApi.md +0 -279
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UserManageAPIKey
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**key_group** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**balance_code** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**quota_total** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**quota_used** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**quota_mode** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**key_status** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { UserManageAPIKey } from '@cherryin/api-client';
|
|
23
|
+
|
|
24
|
+
const instance: UserManageAPIKey = {
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
key_group,
|
|
28
|
+
balance_code,
|
|
29
|
+
quota_total,
|
|
30
|
+
quota_used,
|
|
31
|
+
quota_mode,
|
|
32
|
+
key_status,
|
|
33
|
+
expires_at,
|
|
34
|
+
created_at,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
# UserManageAdminServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**userManageAdminServiceBatchUpdateSessions**](#usermanageadminservicebatchupdatesessions) | **POST** /admin/users/manage/sessions | |
|
|
8
|
+
|[**userManageAdminServiceGetUserDetail**](#usermanageadminservicegetuserdetail) | **GET** /admin/users/detail | |
|
|
9
|
+
|[**userManageAdminServiceListUsers**](#usermanageadminservicelistusers) | **POST** /admin/users/list | |
|
|
10
|
+
|[**userManageAdminServiceSetUserRole**](#usermanageadminservicesetuserrole) | **POST** /admin/users/manage/role | |
|
|
11
|
+
|[**userManageAdminServiceSetUserStatus**](#usermanageadminservicesetuserstatus) | **POST** /admin/users/manage/status | |
|
|
12
|
+
|[**userManageAdminServiceUpdateUserInfo**](#usermanageadminserviceupdateuserinfo) | **POST** /admin/users/manage/info | |
|
|
13
|
+
|
|
14
|
+
# **userManageAdminServiceBatchUpdateSessions**
|
|
15
|
+
> BatchUpdateSessionsResponse userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest)
|
|
16
|
+
|
|
17
|
+
批量管理 Session
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
UserManageAdminServiceApi,
|
|
24
|
+
Configuration,
|
|
25
|
+
BatchUpdateSessionsRequest
|
|
26
|
+
} from '@cherryin/api-client';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
30
|
+
|
|
31
|
+
let batchUpdateSessionsRequest: BatchUpdateSessionsRequest; //
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.userManageAdminServiceBatchUpdateSessions(
|
|
34
|
+
batchUpdateSessionsRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **batchUpdateSessionsRequest** | **BatchUpdateSessionsRequest**| | |
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**BatchUpdateSessionsResponse**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
No authorization required
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | OK | - |
|
|
63
|
+
|**0** | Default error response | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
67
|
+
# **userManageAdminServiceGetUserDetail**
|
|
68
|
+
> GetUserDetailResponse userManageAdminServiceGetUserDetail()
|
|
69
|
+
|
|
70
|
+
用户详情
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
UserManageAdminServiceApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@cherryin/api-client';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
82
|
+
|
|
83
|
+
let uid: string; //@gotags: form:\"uid\" binding:\"uid\" (optional) (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.userManageAdminServiceGetUserDetail(
|
|
86
|
+
uid
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **uid** | [**string**] | @gotags: form:\"uid\" binding:\"uid\" | (optional) defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**GetUserDetailResponse**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
No authorization required
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | OK | - |
|
|
115
|
+
|**0** | Default error response | - |
|
|
116
|
+
|
|
117
|
+
[[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)
|
|
118
|
+
|
|
119
|
+
# **userManageAdminServiceListUsers**
|
|
120
|
+
> ListUsersResponse userManageAdminServiceListUsers(listUsersRequest)
|
|
121
|
+
|
|
122
|
+
用户列表(分页查询)
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
UserManageAdminServiceApi,
|
|
129
|
+
Configuration,
|
|
130
|
+
ListUsersRequest
|
|
131
|
+
} from '@cherryin/api-client';
|
|
132
|
+
|
|
133
|
+
const configuration = new Configuration();
|
|
134
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
135
|
+
|
|
136
|
+
let listUsersRequest: ListUsersRequest; //
|
|
137
|
+
|
|
138
|
+
const { status, data } = await apiInstance.userManageAdminServiceListUsers(
|
|
139
|
+
listUsersRequest
|
|
140
|
+
);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
|Name | Type | Description | Notes|
|
|
146
|
+
|------------- | ------------- | ------------- | -------------|
|
|
147
|
+
| **listUsersRequest** | **ListUsersRequest**| | |
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
**ListUsersResponse**
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
No authorization required
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: application/json
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### HTTP response details
|
|
165
|
+
| Status code | Description | Response headers |
|
|
166
|
+
|-------------|-------------|------------------|
|
|
167
|
+
|**200** | OK | - |
|
|
168
|
+
|**0** | Default error response | - |
|
|
169
|
+
|
|
170
|
+
[[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)
|
|
171
|
+
|
|
172
|
+
# **userManageAdminServiceSetUserRole**
|
|
173
|
+
> SetUserRoleResponse userManageAdminServiceSetUserRole(setUserRoleRequest)
|
|
174
|
+
|
|
175
|
+
设置用户角色
|
|
176
|
+
|
|
177
|
+
### Example
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
import {
|
|
181
|
+
UserManageAdminServiceApi,
|
|
182
|
+
Configuration,
|
|
183
|
+
SetUserRoleRequest
|
|
184
|
+
} from '@cherryin/api-client';
|
|
185
|
+
|
|
186
|
+
const configuration = new Configuration();
|
|
187
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
188
|
+
|
|
189
|
+
let setUserRoleRequest: SetUserRoleRequest; //
|
|
190
|
+
|
|
191
|
+
const { status, data } = await apiInstance.userManageAdminServiceSetUserRole(
|
|
192
|
+
setUserRoleRequest
|
|
193
|
+
);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|Name | Type | Description | Notes|
|
|
199
|
+
|------------- | ------------- | ------------- | -------------|
|
|
200
|
+
| **setUserRoleRequest** | **SetUserRoleRequest**| | |
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**SetUserRoleResponse**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
No authorization required
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: application/json
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
|**200** | OK | - |
|
|
221
|
+
|**0** | Default error response | - |
|
|
222
|
+
|
|
223
|
+
[[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)
|
|
224
|
+
|
|
225
|
+
# **userManageAdminServiceSetUserStatus**
|
|
226
|
+
> SetUserStatusResponse userManageAdminServiceSetUserStatus(setUserStatusRequest)
|
|
227
|
+
|
|
228
|
+
设置用户状态(启用/禁用)
|
|
229
|
+
|
|
230
|
+
### Example
|
|
231
|
+
|
|
232
|
+
```typescript
|
|
233
|
+
import {
|
|
234
|
+
UserManageAdminServiceApi,
|
|
235
|
+
Configuration,
|
|
236
|
+
SetUserStatusRequest
|
|
237
|
+
} from '@cherryin/api-client';
|
|
238
|
+
|
|
239
|
+
const configuration = new Configuration();
|
|
240
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
241
|
+
|
|
242
|
+
let setUserStatusRequest: SetUserStatusRequest; //
|
|
243
|
+
|
|
244
|
+
const { status, data } = await apiInstance.userManageAdminServiceSetUserStatus(
|
|
245
|
+
setUserStatusRequest
|
|
246
|
+
);
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Parameters
|
|
250
|
+
|
|
251
|
+
|Name | Type | Description | Notes|
|
|
252
|
+
|------------- | ------------- | ------------- | -------------|
|
|
253
|
+
| **setUserStatusRequest** | **SetUserStatusRequest**| | |
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Return type
|
|
257
|
+
|
|
258
|
+
**SetUserStatusResponse**
|
|
259
|
+
|
|
260
|
+
### Authorization
|
|
261
|
+
|
|
262
|
+
No authorization required
|
|
263
|
+
|
|
264
|
+
### HTTP request headers
|
|
265
|
+
|
|
266
|
+
- **Content-Type**: application/json
|
|
267
|
+
- **Accept**: application/json
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### HTTP response details
|
|
271
|
+
| Status code | Description | Response headers |
|
|
272
|
+
|-------------|-------------|------------------|
|
|
273
|
+
|**200** | OK | - |
|
|
274
|
+
|**0** | Default error response | - |
|
|
275
|
+
|
|
276
|
+
[[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)
|
|
277
|
+
|
|
278
|
+
# **userManageAdminServiceUpdateUserInfo**
|
|
279
|
+
> UpdateUserInfoResponse userManageAdminServiceUpdateUserInfo(updateUserInfoRequest)
|
|
280
|
+
|
|
281
|
+
更新用户信息
|
|
282
|
+
|
|
283
|
+
### Example
|
|
284
|
+
|
|
285
|
+
```typescript
|
|
286
|
+
import {
|
|
287
|
+
UserManageAdminServiceApi,
|
|
288
|
+
Configuration,
|
|
289
|
+
UpdateUserInfoRequest
|
|
290
|
+
} from '@cherryin/api-client';
|
|
291
|
+
|
|
292
|
+
const configuration = new Configuration();
|
|
293
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
294
|
+
|
|
295
|
+
let updateUserInfoRequest: UpdateUserInfoRequest; //
|
|
296
|
+
|
|
297
|
+
const { status, data } = await apiInstance.userManageAdminServiceUpdateUserInfo(
|
|
298
|
+
updateUserInfoRequest
|
|
299
|
+
);
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Parameters
|
|
303
|
+
|
|
304
|
+
|Name | Type | Description | Notes|
|
|
305
|
+
|------------- | ------------- | ------------- | -------------|
|
|
306
|
+
| **updateUserInfoRequest** | **UpdateUserInfoRequest**| | |
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
**UpdateUserInfoResponse**
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
No authorization required
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: application/json
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
### HTTP response details
|
|
324
|
+
| Status code | Description | Response headers |
|
|
325
|
+
|-------------|-------------|------------------|
|
|
326
|
+
|**200** | OK | - |
|
|
327
|
+
|**0** | Default error response | - |
|
|
328
|
+
|
|
329
|
+
[[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)
|
|
330
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UserManageAuthMethod
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**auth_type** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**auth_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**is_primary** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**auth_status** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**last_used_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserManageAuthMethod } from '@cherryin/api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserManageAuthMethod = {
|
|
22
|
+
id,
|
|
23
|
+
auth_type,
|
|
24
|
+
auth_id,
|
|
25
|
+
is_primary,
|
|
26
|
+
auth_status,
|
|
27
|
+
last_used_at,
|
|
28
|
+
created_at,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UserManageBalance
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**balance_code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**prepaid_balance_total** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**prepaid_balance_used** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**prepaid_balance_frozen** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**bonus_balance_total** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**bonus_balance_used** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**bonus_balance_frozen** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserManageBalance } from '@cherryin/api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserManageBalance = {
|
|
22
|
+
balance_code,
|
|
23
|
+
prepaid_balance_total,
|
|
24
|
+
prepaid_balance_used,
|
|
25
|
+
prepaid_balance_frozen,
|
|
26
|
+
bonus_balance_total,
|
|
27
|
+
bonus_balance_used,
|
|
28
|
+
bonus_balance_frozen,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# UserManageDetail
|
|
2
|
+
|
|
3
|
+
用户管理详情(完整信息)
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uid** | **string** | 基本信息 | [optional] [default to undefined]
|
|
10
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**user_role** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**user_status** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**user_group** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**settings** | [**UserManageSettings**](UserManageSettings.md) | 设置信息 | [optional] [default to undefined]
|
|
19
|
+
**balance** | [**UserManageBalance**](UserManageBalance.md) | 余额信息 | [optional] [default to undefined]
|
|
20
|
+
**api_keys** | [**Array<UserManageAPIKey>**](UserManageAPIKey.md) | API Key 配额信息 | [optional] [default to undefined]
|
|
21
|
+
**auth_methods** | [**Array<UserManageAuthMethod>**](UserManageAuthMethod.md) | 认证方式列表 | [optional] [default to undefined]
|
|
22
|
+
**sessions** | [**Array<UserManageSession>**](UserManageSession.md) | Session 列表 | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { UserManageDetail } from '@cherryin/api-client';
|
|
28
|
+
|
|
29
|
+
const instance: UserManageDetail = {
|
|
30
|
+
uid,
|
|
31
|
+
display_name,
|
|
32
|
+
email,
|
|
33
|
+
avatar_url,
|
|
34
|
+
user_role,
|
|
35
|
+
user_status,
|
|
36
|
+
user_group,
|
|
37
|
+
created_at,
|
|
38
|
+
updated_at,
|
|
39
|
+
settings,
|
|
40
|
+
balance,
|
|
41
|
+
api_keys,
|
|
42
|
+
auth_methods,
|
|
43
|
+
sessions,
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# UserManageItem
|
|
2
|
+
|
|
3
|
+
用户管理列表项(精简信息)
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**user_role** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**user_status** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**user_group** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**auth_types** | **Array<string>** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { UserManageItem } from '@cherryin/api-client';
|
|
24
|
+
|
|
25
|
+
const instance: UserManageItem = {
|
|
26
|
+
uid,
|
|
27
|
+
display_name,
|
|
28
|
+
email,
|
|
29
|
+
avatar_url,
|
|
30
|
+
user_role,
|
|
31
|
+
user_status,
|
|
32
|
+
user_group,
|
|
33
|
+
created_at,
|
|
34
|
+
updated_at,
|
|
35
|
+
auth_types,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UserManageSession
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**session_type** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**ip_address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**user_agent** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**active_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**is_current** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { UserManageSession } from '@cherryin/api-client';
|
|
21
|
+
|
|
22
|
+
const instance: UserManageSession = {
|
|
23
|
+
id,
|
|
24
|
+
session_type,
|
|
25
|
+
ip_address,
|
|
26
|
+
user_agent,
|
|
27
|
+
active_at,
|
|
28
|
+
expires_at,
|
|
29
|
+
created_at,
|
|
30
|
+
is_current,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserManageSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email_notifications_enabled** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserManageSettings } from '@cherryin/api-client';
|
|
14
|
+
|
|
15
|
+
const instance: UserManageSettings = {
|
|
16
|
+
email_notifications_enabled,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -22,11 +22,17 @@ const configuration = new Configuration();
|
|
|
22
22
|
const apiInstance = new UserPayServiceApi(configuration);
|
|
23
23
|
|
|
24
24
|
let currencyCode: string; // (optional) (default to undefined)
|
|
25
|
-
let chargeAmount:
|
|
25
|
+
let chargeAmount: string; // (optional) (default to undefined)
|
|
26
|
+
let redirect: boolean; // (optional) (default to undefined)
|
|
27
|
+
let successUrl: string; // (optional) (default to undefined)
|
|
28
|
+
let cancelUrl: string; // (optional) (default to undefined)
|
|
26
29
|
|
|
27
30
|
const { status, data } = await apiInstance.userPayServiceUserPayStripeCheckout(
|
|
28
31
|
currencyCode,
|
|
29
|
-
chargeAmount
|
|
32
|
+
chargeAmount,
|
|
33
|
+
redirect,
|
|
34
|
+
successUrl,
|
|
35
|
+
cancelUrl
|
|
30
36
|
);
|
|
31
37
|
```
|
|
32
38
|
|
|
@@ -35,7 +41,10 @@ const { status, data } = await apiInstance.userPayServiceUserPayStripeCheckout(
|
|
|
35
41
|
|Name | Type | Description | Notes|
|
|
36
42
|
|------------- | ------------- | ------------- | -------------|
|
|
37
43
|
| **currencyCode** | [**string**] | | (optional) defaults to undefined|
|
|
38
|
-
| **chargeAmount** | [**
|
|
44
|
+
| **chargeAmount** | [**string**] | | (optional) defaults to undefined|
|
|
45
|
+
| **redirect** | [**boolean**] | | (optional) defaults to undefined|
|
|
46
|
+
| **successUrl** | [**string**] | | (optional) defaults to undefined|
|
|
47
|
+
| **cancelUrl** | [**string**] | | (optional) defaults to undefined|
|
|
39
48
|
|
|
40
49
|
|
|
41
50
|
### Return type
|
package/package.json
CHANGED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# AdminAuthServiceApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**adminAuthServiceAdminAuthFlowInit**](#adminauthserviceadminauthflowinit) | **POST** /admin/auth/init | |
|
|
8
|
-
|
|
9
|
-
# **adminAuthServiceAdminAuthFlowInit**
|
|
10
|
-
> AdminAuthFlowInitResponse adminAuthServiceAdminAuthFlowInit()
|
|
11
|
-
|
|
12
|
-
管理员登录
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
AdminAuthServiceApi,
|
|
19
|
-
Configuration
|
|
20
|
-
} from '@cherryin/api-client';
|
|
21
|
-
|
|
22
|
-
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new AdminAuthServiceApi(configuration);
|
|
24
|
-
|
|
25
|
-
let authType: number; // (optional) (default to undefined)
|
|
26
|
-
let authAction: number; // (optional) (default to undefined)
|
|
27
|
-
let payloadEmailPayloadUserEmail: string; // (optional) (default to undefined)
|
|
28
|
-
let payloadEmailPayloadUserPasswordEncrypt: string; // (optional) (default to undefined)
|
|
29
|
-
let authAt: string; // (optional) (default to undefined)
|
|
30
|
-
let nonce: string; // (optional) (default to undefined)
|
|
31
|
-
let signature: string; //加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{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)
|
|
32
|
-
let sessionType: string; //enum string: - tenant_admin - sys_admin (optional) (default to undefined)
|
|
33
|
-
|
|
34
|
-
const { status, data } = await apiInstance.adminAuthServiceAdminAuthFlowInit(
|
|
35
|
-
authType,
|
|
36
|
-
authAction,
|
|
37
|
-
payloadEmailPayloadUserEmail,
|
|
38
|
-
payloadEmailPayloadUserPasswordEncrypt,
|
|
39
|
-
authAt,
|
|
40
|
-
nonce,
|
|
41
|
-
signature,
|
|
42
|
-
sessionType
|
|
43
|
-
);
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Parameters
|
|
47
|
-
|
|
48
|
-
|Name | Type | Description | Notes|
|
|
49
|
-
|------------- | ------------- | ------------- | -------------|
|
|
50
|
-
| **authType** | [**number**] | | (optional) defaults to undefined|
|
|
51
|
-
| **authAction** | [**number**] | | (optional) defaults to undefined|
|
|
52
|
-
| **payloadEmailPayloadUserEmail** | [**string**] | | (optional) defaults to undefined|
|
|
53
|
-
| **payloadEmailPayloadUserPasswordEncrypt** | [**string**] | | (optional) defaults to undefined|
|
|
54
|
-
| **authAt** | [**string**] | | (optional) defaults to undefined|
|
|
55
|
-
| **nonce** | [**string**] | | (optional) defaults to undefined|
|
|
56
|
-
| **signature** | [**string**] | 加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{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|
|
|
57
|
-
| **sessionType** | [**string**] | enum string: - tenant_admin - sys_admin | (optional) defaults to undefined|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Return type
|
|
61
|
-
|
|
62
|
-
**AdminAuthFlowInitResponse**
|
|
63
|
-
|
|
64
|
-
### Authorization
|
|
65
|
-
|
|
66
|
-
No authorization required
|
|
67
|
-
|
|
68
|
-
### HTTP request headers
|
|
69
|
-
|
|
70
|
-
- **Content-Type**: Not defined
|
|
71
|
-
- **Accept**: application/json
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### HTTP response details
|
|
75
|
-
| Status code | Description | Response headers |
|
|
76
|
-
|-------------|-------------|------------------|
|
|
77
|
-
|**200** | OK | - |
|
|
78
|
-
|**0** | Default error response | - |
|
|
79
|
-
|
|
80
|
-
[[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)
|
|
81
|
-
|