@cherryin/api-client 0.0.1
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 +135 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +219 -0
- package/api.ts +6364 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +4175 -0
- package/dist/api.js +3694 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +4175 -0
- package/dist/esm/api.js +3643 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AIModel.md +45 -0
- package/docs/AIModelAdminServiceApi.md +398 -0
- package/docs/AIModelArchitecture.md +25 -0
- package/docs/AIModelCreateRequest.md +35 -0
- package/docs/AIModelCreateResponse.md +25 -0
- package/docs/AIModelDeleteRequest.md +21 -0
- package/docs/AIModelDeleteResponse.md +23 -0
- package/docs/AIModelDisableRequest.md +21 -0
- package/docs/AIModelDisableResponse.md +25 -0
- package/docs/AIModelDiscountConfig.md +21 -0
- package/docs/AIModelGetResponse.md +25 -0
- package/docs/AIModelListResponse.md +27 -0
- package/docs/AIModelMeta.md +25 -0
- package/docs/AIModelPricingConfig.md +37 -0
- package/docs/AIModelProviderConfigItem.md +29 -0
- package/docs/AIModelPublishRequest.md +21 -0
- package/docs/AIModelPublishResponse.md +25 -0
- package/docs/AIModelUpdateRequest.md +37 -0
- package/docs/AIModelUpdateResponse.md +25 -0
- package/docs/AWSAuth.md +24 -0
- package/docs/AdminAuthFlowInitResponse.md +24 -0
- package/docs/AdminAuthServiceApi.md +81 -0
- package/docs/AudioPricing.md +33 -0
- package/docs/AuthFlowResult.md +23 -0
- package/docs/AuthTokenPair.md +27 -0
- package/docs/DiscountAdminServiceApi.md +281 -0
- package/docs/DiscountCreateRequest.md +36 -0
- package/docs/DiscountDeleteRequest.md +20 -0
- package/docs/DiscountDeleteResponse.md +22 -0
- package/docs/DiscountGetResponse.md +24 -0
- package/docs/DiscountInfo.md +42 -0
- package/docs/DiscountListResponse.md +26 -0
- package/docs/DiscountUpdateRequest.md +38 -0
- package/docs/DiscountUpdateResponse.md +24 -0
- package/docs/FeatureCostPricing.md +27 -0
- package/docs/FrontAIModel.md +45 -0
- package/docs/GCPAuth.md +27 -0
- package/docs/GoogleProtobufAny.md +21 -0
- package/docs/ImagePricing.md +31 -0
- package/docs/Label.md +28 -0
- package/docs/LabelCreateRequest.md +22 -0
- package/docs/LabelCreateResponse.md +24 -0
- package/docs/LabelDeleteRequest.md +20 -0
- package/docs/LabelDeleteResponse.md +22 -0
- package/docs/LabelListRequest.md +24 -0
- package/docs/LabelListResponse.md +26 -0
- package/docs/LabelUpdateRequest.md +24 -0
- package/docs/LabelUpdateResponse.md +24 -0
- package/docs/MultimodalPricing.md +25 -0
- package/docs/PricingConditions.md +31 -0
- package/docs/PricingRules.md +29 -0
- package/docs/Provider.md +37 -0
- package/docs/ProviderAdminServiceApi.md +284 -0
- package/docs/ProviderAuth.md +29 -0
- package/docs/ProviderCreateRequest.md +29 -0
- package/docs/ProviderCreateResponse.md +25 -0
- package/docs/ProviderDeleteRequest.md +21 -0
- package/docs/ProviderDeleteResponse.md +23 -0
- package/docs/ProviderGetResponse.md +25 -0
- package/docs/ProviderListResponse.md +27 -0
- package/docs/ProviderModel.md +37 -0
- package/docs/ProviderModelAdminServiceApi.md +287 -0
- package/docs/ProviderModelCreateRequest.md +29 -0
- package/docs/ProviderModelCreateResponse.md +25 -0
- package/docs/ProviderModelDeleteRequest.md +21 -0
- package/docs/ProviderModelDeleteResponse.md +23 -0
- package/docs/ProviderModelGetResponse.md +25 -0
- package/docs/ProviderModelListResponse.md +27 -0
- package/docs/ProviderModelPayload.md +23 -0
- package/docs/ProviderModelUpdateRequest.md +31 -0
- package/docs/ProviderModelUpdateResponse.md +25 -0
- package/docs/ProviderPayload.md +21 -0
- package/docs/ProviderUpdateRequest.md +31 -0
- package/docs/ProviderUpdateResponse.md +25 -0
- package/docs/RequestPricing.md +23 -0
- package/docs/Status.md +25 -0
- package/docs/TextTokenInputPricing.md +27 -0
- package/docs/TextTokenOutputPricing.md +25 -0
- package/docs/TextTokenPricing.md +23 -0
- package/docs/TokenTier.md +25 -0
- package/docs/UserAPIKey.md +47 -0
- package/docs/UserAPIKeyCreateRequest.md +37 -0
- package/docs/UserAPIKeyCreateResponse.md +25 -0
- package/docs/UserAPIKeyDeleteRequest.md +21 -0
- package/docs/UserAPIKeyDeleteResponse.md +23 -0
- package/docs/UserAPIKeyGetResponse.md +25 -0
- package/docs/UserAPIKeyListResponse.md +27 -0
- package/docs/UserAPIKeyServiceApi.md +290 -0
- package/docs/UserAPIKeyUpdateRequest.md +33 -0
- package/docs/UserAPIKeyUpdateResponse.md +25 -0
- package/docs/UserAuthFlowCodeResponse.md +26 -0
- package/docs/UserAuthFlowInitResponse.md +28 -0
- package/docs/UserAuthFlowInitResponseOAuthResult.md +20 -0
- package/docs/UserAuthFlowOAuthCallbackRequest.md +24 -0
- package/docs/UserAuthFlowOAuthCallbackResponse.md +26 -0
- package/docs/UserAuthInfo.md +20 -0
- package/docs/UserAuthServiceApi.md +279 -0
- package/docs/UserBalance.md +42 -0
- package/docs/UserBalanceBrief.md +32 -0
- package/docs/UserBalanceChangeResponse.md +24 -0
- package/docs/UserBalanceEditResponse.md +24 -0
- package/docs/UserBalanceListResponse.md +26 -0
- package/docs/UserBalanceServiceApi.md +226 -0
- package/docs/UserInfo.md +26 -0
- package/docs/UserLabelItem.md +22 -0
- package/docs/UserLabelListResponse.md +26 -0
- package/docs/UserLabelPair.md +22 -0
- package/docs/UserLabelPairChangeAction.md +22 -0
- package/docs/UserLabelPairChangeRequest.md +20 -0
- package/docs/UserLabelPairChangeResponse.md +22 -0
- package/docs/UserLabelServiceApi.md +386 -0
- package/docs/UserMeInfo.md +24 -0
- package/docs/UserMeInfoResponse.md +24 -0
- package/docs/UserModelListResponse.md +33 -0
- package/docs/UserModelServiceApi.md +71 -0
- package/docs/UserPayServiceApi.md +62 -0
- package/docs/UserPayStripeCheckout.md +20 -0
- package/docs/UserPayStripeCheckoutResponse.md +24 -0
- package/docs/UserPoralServiceApi.md +52 -0
- package/docs/UserSettings.md +20 -0
- package/docs/VersionedAPISchema.md +31 -0
- package/docs/VideoPricing.md +33 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +36 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# UserBalanceServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**userBalanceServiceUserBalanceChange**](#userbalanceserviceuserbalancechange) | **POST** /v1/user_balance/change | |
|
|
8
|
+
|[**userBalanceServiceUserBalanceEdit**](#userbalanceserviceuserbalanceedit) | **POST** /v1/user_balance/edit | |
|
|
9
|
+
|[**userBalanceServiceUserBalanceList**](#userbalanceserviceuserbalancelist) | **GET** /v1/user_balance/list | |
|
|
10
|
+
|
|
11
|
+
# **userBalanceServiceUserBalanceChange**
|
|
12
|
+
> UserBalanceChangeResponse userBalanceServiceUserBalanceChange()
|
|
13
|
+
|
|
14
|
+
用户余额变更接口 - 增量操作
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
UserBalanceServiceApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@cherryin/api-client';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UserBalanceServiceApi(configuration);
|
|
26
|
+
|
|
27
|
+
let forceCreate: boolean; // (optional) (default to undefined)
|
|
28
|
+
let uid: string; // (optional) (default to undefined)
|
|
29
|
+
let balanceCode: string; //balance_code 余额货币代码. USD/CNY (optional) (default to undefined)
|
|
30
|
+
let action: string; //变更类型,incr/decr (optional) (default to undefined)
|
|
31
|
+
let deltaPrepaidBalanceTotal: string; //delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
32
|
+
let deltaBonusBalanceTotal: string; //delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.userBalanceServiceUserBalanceChange(
|
|
35
|
+
forceCreate,
|
|
36
|
+
uid,
|
|
37
|
+
balanceCode,
|
|
38
|
+
action,
|
|
39
|
+
deltaPrepaidBalanceTotal,
|
|
40
|
+
deltaBonusBalanceTotal
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
|Name | Type | Description | Notes|
|
|
47
|
+
|------------- | ------------- | ------------- | -------------|
|
|
48
|
+
| **forceCreate** | [**boolean**] | | (optional) defaults to undefined|
|
|
49
|
+
| **uid** | [**string**] | | (optional) defaults to undefined|
|
|
50
|
+
| **balanceCode** | [**string**] | balance_code 余额货币代码. USD/CNY | (optional) defaults to undefined|
|
|
51
|
+
| **action** | [**string**] | 变更类型,incr/decr | (optional) defaults to undefined|
|
|
52
|
+
| **deltaPrepaidBalanceTotal** | [**string**] | delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
53
|
+
| **deltaBonusBalanceTotal** | [**string**] | delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
**UserBalanceChangeResponse**
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
No authorization required
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: Not defined
|
|
67
|
+
- **Accept**: application/json
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
|**200** | OK | - |
|
|
74
|
+
|**0** | Default error response | - |
|
|
75
|
+
|
|
76
|
+
[[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)
|
|
77
|
+
|
|
78
|
+
# **userBalanceServiceUserBalanceEdit**
|
|
79
|
+
> UserBalanceEditResponse userBalanceServiceUserBalanceEdit()
|
|
80
|
+
|
|
81
|
+
编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
82
|
+
|
|
83
|
+
### Example
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import {
|
|
87
|
+
UserBalanceServiceApi,
|
|
88
|
+
Configuration
|
|
89
|
+
} from '@cherryin/api-client';
|
|
90
|
+
|
|
91
|
+
const configuration = new Configuration();
|
|
92
|
+
const apiInstance = new UserBalanceServiceApi(configuration);
|
|
93
|
+
|
|
94
|
+
let forceCreate: boolean; // (optional) (default to undefined)
|
|
95
|
+
let uid: string; // (optional) (default to undefined)
|
|
96
|
+
let dataId: string; // (optional) (default to undefined)
|
|
97
|
+
let dataCreatedAt: string; // (optional) (default to undefined)
|
|
98
|
+
let dataUpdatedAt: string; // (optional) (default to undefined)
|
|
99
|
+
let dataUid: string; // (optional) (default to undefined)
|
|
100
|
+
let dataBalanceCode: string; //balance_code 余额货币代码. USD/CNY (optional) (default to undefined)
|
|
101
|
+
let dataPrepaidBalanceTotal: string; //prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
102
|
+
let dataPrepaidBalanceUsed: string; //prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
103
|
+
let dataPrepaidBalanceFrozen: string; //prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
104
|
+
let dataBonusBalanceTotal: string; //bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
105
|
+
let dataBonusBalanceUsed: string; //bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
106
|
+
let dataBonusBalanceFrozen: string; //bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储 (optional) (default to undefined)
|
|
107
|
+
let dataVersion: string; // (optional) (default to undefined)
|
|
108
|
+
|
|
109
|
+
const { status, data } = await apiInstance.userBalanceServiceUserBalanceEdit(
|
|
110
|
+
forceCreate,
|
|
111
|
+
uid,
|
|
112
|
+
dataId,
|
|
113
|
+
dataCreatedAt,
|
|
114
|
+
dataUpdatedAt,
|
|
115
|
+
dataUid,
|
|
116
|
+
dataBalanceCode,
|
|
117
|
+
dataPrepaidBalanceTotal,
|
|
118
|
+
dataPrepaidBalanceUsed,
|
|
119
|
+
dataPrepaidBalanceFrozen,
|
|
120
|
+
dataBonusBalanceTotal,
|
|
121
|
+
dataBonusBalanceUsed,
|
|
122
|
+
dataBonusBalanceFrozen,
|
|
123
|
+
dataVersion
|
|
124
|
+
);
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Parameters
|
|
128
|
+
|
|
129
|
+
|Name | Type | Description | Notes|
|
|
130
|
+
|------------- | ------------- | ------------- | -------------|
|
|
131
|
+
| **forceCreate** | [**boolean**] | | (optional) defaults to undefined|
|
|
132
|
+
| **uid** | [**string**] | | (optional) defaults to undefined|
|
|
133
|
+
| **dataId** | [**string**] | | (optional) defaults to undefined|
|
|
134
|
+
| **dataCreatedAt** | [**string**] | | (optional) defaults to undefined|
|
|
135
|
+
| **dataUpdatedAt** | [**string**] | | (optional) defaults to undefined|
|
|
136
|
+
| **dataUid** | [**string**] | | (optional) defaults to undefined|
|
|
137
|
+
| **dataBalanceCode** | [**string**] | balance_code 余额货币代码. USD/CNY | (optional) defaults to undefined|
|
|
138
|
+
| **dataPrepaidBalanceTotal** | [**string**] | prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
139
|
+
| **dataPrepaidBalanceUsed** | [**string**] | prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
140
|
+
| **dataPrepaidBalanceFrozen** | [**string**] | prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
141
|
+
| **dataBonusBalanceTotal** | [**string**] | bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
142
|
+
| **dataBonusBalanceUsed** | [**string**] | bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
143
|
+
| **dataBonusBalanceFrozen** | [**string**] | bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储 | (optional) defaults to undefined|
|
|
144
|
+
| **dataVersion** | [**string**] | | (optional) defaults to undefined|
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**UserBalanceEditResponse**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
No authorization required
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### HTTP response details
|
|
162
|
+
| Status code | Description | Response headers |
|
|
163
|
+
|-------------|-------------|------------------|
|
|
164
|
+
|**200** | OK | - |
|
|
165
|
+
|**0** | Default error response | - |
|
|
166
|
+
|
|
167
|
+
[[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)
|
|
168
|
+
|
|
169
|
+
# **userBalanceServiceUserBalanceList**
|
|
170
|
+
> UserBalanceListResponse userBalanceServiceUserBalanceList()
|
|
171
|
+
|
|
172
|
+
用户余额列表接口
|
|
173
|
+
|
|
174
|
+
### Example
|
|
175
|
+
|
|
176
|
+
```typescript
|
|
177
|
+
import {
|
|
178
|
+
UserBalanceServiceApi,
|
|
179
|
+
Configuration
|
|
180
|
+
} from '@cherryin/api-client';
|
|
181
|
+
|
|
182
|
+
const configuration = new Configuration();
|
|
183
|
+
const apiInstance = new UserBalanceServiceApi(configuration);
|
|
184
|
+
|
|
185
|
+
let page: number; //page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
186
|
+
let pageSize: number; //page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
|
|
187
|
+
let uidList: Array<string>; //uid_list 用户 ID 列表,空表示不按用户 ID 过滤 (optional) (default to undefined)
|
|
188
|
+
|
|
189
|
+
const { status, data } = await apiInstance.userBalanceServiceUserBalanceList(
|
|
190
|
+
page,
|
|
191
|
+
pageSize,
|
|
192
|
+
uidList
|
|
193
|
+
);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|Name | Type | Description | Notes|
|
|
199
|
+
|------------- | ------------- | ------------- | -------------|
|
|
200
|
+
| **page** | [**number**] | page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
201
|
+
| **pageSize** | [**number**] | page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
202
|
+
| **uidList** | **Array<string>** | uid_list 用户 ID 列表,空表示不按用户 ID 过滤 | (optional) defaults to undefined|
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
**UserBalanceListResponse**
|
|
208
|
+
|
|
209
|
+
### Authorization
|
|
210
|
+
|
|
211
|
+
No authorization required
|
|
212
|
+
|
|
213
|
+
### HTTP request headers
|
|
214
|
+
|
|
215
|
+
- **Content-Type**: Not defined
|
|
216
|
+
- **Accept**: application/json
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### HTTP response details
|
|
220
|
+
| Status code | Description | Response headers |
|
|
221
|
+
|-------------|-------------|------------------|
|
|
222
|
+
|**200** | OK | - |
|
|
223
|
+
|**0** | Default error response | - |
|
|
224
|
+
|
|
225
|
+
[[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)
|
|
226
|
+
|
package/docs/UserInfo.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**contact_email** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserInfo } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UserInfo = {
|
|
19
|
+
user_id,
|
|
20
|
+
display_name,
|
|
21
|
+
avatar_url,
|
|
22
|
+
contact_email,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserLabelItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserLabelItem } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserLabelItem = {
|
|
17
|
+
uid,
|
|
18
|
+
label_id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,26 @@
|
|
|
1
|
+
# UserLabelListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
|
+
**data** | [**Array<UserLabelItem>**](UserLabelItem.md) | | [optional] [default to undefined]
|
|
11
|
+
**total** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserLabelListResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UserLabelListResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
data,
|
|
22
|
+
total,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserLabelPair
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label_ids** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserLabelPair } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserLabelPair = {
|
|
17
|
+
uid,
|
|
18
|
+
label_ids,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# UserLabelPairChangeAction
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user_label_pairs** | [**Array<UserLabelPair>**](UserLabelPair.md) | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserLabelPairChangeAction } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserLabelPairChangeAction = {
|
|
17
|
+
user_label_pairs,
|
|
18
|
+
action,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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
|
+
# UserLabelPairChangeRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**action** | [**Array<UserLabelPairChangeAction>**](UserLabelPairChangeAction.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserLabelPairChangeRequest } from '@cherryin/api-client';
|
|
14
|
+
|
|
15
|
+
const instance: UserLabelPairChangeRequest = {
|
|
16
|
+
action,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserLabelPairChangeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserLabelPairChangeResponse } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserLabelPairChangeResponse = {
|
|
17
|
+
code,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|