@cherryin/api-client 0.0.3 → 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 +20 -0
- package/README.md +29 -3
- package/api.ts +750 -1
- package/dist/api.d.ts +457 -0
- package/dist/api.js +481 -3
- package/dist/esm/api.d.ts +457 -0
- package/dist/esm/api.js +475 -1
- package/docs/Auth2UserServiceApi.md +58 -0
- package/docs/AuthOAuth2CallbackResponse.md +32 -0
- package/docs/BatchUpdateSessionsRequest.md +24 -0
- package/docs/BatchUpdateSessionsResponse.md +24 -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/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/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/package.json +1 -1
|
@@ -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)
|