@cherryin/aigw-api-client 0.1.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/.openapi-generator/FILES +180 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +289 -0
- package/api.ts +8041 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +4760 -0
- package/dist/api.js +5694 -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 +4760 -0
- package/dist/esm/api.js +5638 -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/AIModelAdminServiceApi.md +454 -0
- package/docs/AIModelPricingConfig.md +36 -0
- package/docs/AdminAIModel.md +72 -0
- package/docs/AdminAIModelCheckConnectionResponse.md +24 -0
- package/docs/AdminAIModelCheckItem.md +32 -0
- package/docs/AdminAIModelCheckResult.md +22 -0
- package/docs/AdminAIModelCreateRequest.md +66 -0
- package/docs/AdminAIModelCreateResponse.md +24 -0
- package/docs/AdminAIModelDeleteResponse.md +22 -0
- package/docs/AdminAIModelDisableRequest.md +22 -0
- package/docs/AdminAIModelDisableResponse.md +24 -0
- package/docs/AdminAIModelDiscountConfig.md +20 -0
- package/docs/AdminAIModelGetResponse.md +24 -0
- package/docs/AdminAIModelListResponse.md +26 -0
- package/docs/AdminAIModelProviderConfigItem.md +28 -0
- package/docs/AdminAIModelPublishRequest.md +22 -0
- package/docs/AdminAIModelPublishResponse.md +24 -0
- package/docs/AdminAIModelUpdateRequest.md +24 -0
- package/docs/AdminAIModelUpdateResponse.md +24 -0
- package/docs/AdminAPIToken.md +40 -0
- package/docs/AdminAPITokenCreateRequest.md +24 -0
- package/docs/AdminAPITokenCreateResponse.md +26 -0
- package/docs/AdminAPITokenDeleteResponse.md +22 -0
- package/docs/AdminAPITokenGetResponse.md +24 -0
- package/docs/AdminAPITokenListResponse.md +26 -0
- package/docs/AdminAPITokenRefreshRequest.md +20 -0
- package/docs/AdminAPITokenRefreshResponse.md +26 -0
- package/docs/AdminAPITokenScopes.md +24 -0
- package/docs/AdminAPITokenServiceApi.md +325 -0
- package/docs/AdminAPITokenUpdateRequest.md +28 -0
- package/docs/AdminAPITokenUpdateResponse.md +24 -0
- package/docs/AdminProvider.md +46 -0
- package/docs/AdminProviderCreateRequest.md +40 -0
- package/docs/AdminProviderCreateResponse.md +24 -0
- package/docs/AdminProviderDeleteResponse.md +22 -0
- package/docs/AdminProviderGetResponse.md +24 -0
- package/docs/AdminProviderListResponse.md +26 -0
- package/docs/AdminProviderModel.md +68 -0
- package/docs/AdminProviderModelCreateRequest.md +62 -0
- package/docs/AdminProviderModelCreateResponse.md +24 -0
- package/docs/AdminProviderModelDeleteResponse.md +22 -0
- package/docs/AdminProviderModelGetResponse.md +24 -0
- package/docs/AdminProviderModelListResponse.md +26 -0
- package/docs/AdminProviderModelUpdateRequest.md +26 -0
- package/docs/AdminProviderModelUpdateResponse.md +24 -0
- package/docs/AdminProviderUpdateRequest.md +26 -0
- package/docs/AdminProviderUpdateResponse.md +24 -0
- package/docs/AigwpbLabel.md +28 -0
- package/docs/AigwpbUserMeInfo.md +24 -0
- package/docs/AigwpbUserPayStripeCheckout.md +20 -0
- package/docs/AigwpbUserPortalDashboard.md +24 -0
- package/docs/Any.md +20 -0
- package/docs/AudioPricing.md +32 -0
- package/docs/BatchUpdateSessionsRequest.md +24 -0
- package/docs/BatchUpdateSessionsResponse.md +24 -0
- package/docs/CodeExecutionPricing.md +24 -0
- package/docs/DiscountAdminServiceApi.md +275 -0
- package/docs/DiscountCreateRequest.md +36 -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 +26 -0
- package/docs/FeaturePricing.md +26 -0
- package/docs/FrontAIModel.md +42 -0
- package/docs/FrontendModelExtraInfo.md +20 -0
- package/docs/FrontendModelPricing.md +58 -0
- package/docs/FrontendModelsResponse.md +28 -0
- package/docs/FrontendProviderInfo.md +30 -0
- package/docs/FrontendProviderModel.md +54 -0
- package/docs/FrontendProvidersResponse.md +28 -0
- package/docs/FrontendSearchContextCost.md +24 -0
- package/docs/GetUserDetailResponse.md +24 -0
- package/docs/ImagePricing.md +36 -0
- package/docs/LabelCreateRequest.md +22 -0
- package/docs/LabelCreateResponse.md +24 -0
- package/docs/LabelDeleteResponse.md +22 -0
- package/docs/LabelGetResponse.md +24 -0
- package/docs/LabelListResponse.md +26 -0
- package/docs/LabelUpdateRequest.md +24 -0
- package/docs/LabelUpdateResponse.md +24 -0
- package/docs/ListUsersRequest.md +36 -0
- package/docs/ListUsersResponse.md +30 -0
- package/docs/ModelCapabilities.md +58 -0
- package/docs/ModelLimits.md +40 -0
- package/docs/ModelListResponse.md +32 -0
- package/docs/ModelModalities.md +22 -0
- package/docs/MultimodalPricing.md +24 -0
- package/docs/PricingConditions.md +30 -0
- package/docs/PricingRules.md +32 -0
- package/docs/ProviderAWSAuth.md +24 -0
- package/docs/ProviderAdminServiceApi.md +579 -0
- package/docs/ProviderAuth.md +28 -0
- package/docs/ProviderGCPAuth.md +26 -0
- package/docs/ProviderModelAdminServiceApi.md +591 -0
- package/docs/QRCodeAdminServiceApi.md +281 -0
- package/docs/QRCodeCreateRequest.md +36 -0
- package/docs/QRCodeCreateResponse.md +24 -0
- package/docs/QRCodeDeleteResponse.md +22 -0
- package/docs/QRCodeGetResponse.md +24 -0
- package/docs/QRCodeHistoryItem.md +28 -0
- package/docs/QRCodeInfo.md +58 -0
- package/docs/QRCodeListResponse.md +26 -0
- package/docs/QRCodeSnapshot.md +36 -0
- package/docs/QRCodeUpdateRequest.md +38 -0
- package/docs/QRCodeUpdateResponse.md +24 -0
- package/docs/QRCodeWithHistory.md +22 -0
- package/docs/ReasoningTokensPricing.md +20 -0
- package/docs/RequestPricing.md +22 -0
- package/docs/SessionAction.md +11 -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/Status.md +24 -0
- package/docs/TextTokenInputPricing.md +26 -0
- package/docs/TextTokenOutputPricing.md +24 -0
- package/docs/TextTokenPricing.md +22 -0
- package/docs/TokenTier.md +24 -0
- package/docs/UpdateUserInfoRequest.md +26 -0
- package/docs/UpdateUserInfoResponse.md +24 -0
- package/docs/UserAPIKey.md +46 -0
- package/docs/UserAPIKeyCreateRequest.md +36 -0
- package/docs/UserAPIKeyCreateResponse.md +24 -0
- package/docs/UserAPIKeyDeleteResponse.md +22 -0
- package/docs/UserAPIKeyGetResponse.md +24 -0
- package/docs/UserAPIKeyListResponse.md +26 -0
- package/docs/UserAPIKeyServiceApi.md +284 -0
- package/docs/UserAPIKeyUpdateRequest.md +32 -0
- package/docs/UserAPIKeyUpdateResponse.md +24 -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 +223 -0
- package/docs/UserInfo.md +32 -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 +392 -0
- package/docs/UserManageAPIKey.md +38 -0
- package/docs/UserManageAdminServiceApi.md +324 -0
- package/docs/UserManageAuthMethod.md +32 -0
- package/docs/UserManageBalance.md +32 -0
- package/docs/UserManageDetail.md +46 -0
- package/docs/UserManageItem.md +38 -0
- package/docs/UserManageSession.md +34 -0
- package/docs/UserManageSettings.md +20 -0
- package/docs/UserMeInfoResponse.md +24 -0
- package/docs/UserModelActivitySummary.md +30 -0
- package/docs/UserModelHourActivity.md +28 -0
- package/docs/UserModelHourlyUsages.md +20 -0
- package/docs/UserModelServiceApi.md +181 -0
- package/docs/UserPayServiceApi.md +71 -0
- package/docs/UserPayStripeCheckoutResponse.md +24 -0
- package/docs/UserPortalDashboardResponse.md +24 -0
- package/docs/UserPortalServiceApi.md +107 -0
- package/docs/UserSettings.md +20 -0
- package/docs/VersionedAPISchema.md +30 -0
- package/docs/VideoPricing.md +32 -0
- package/docs/WebSearchPricing.md +30 -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,324 @@
|
|
|
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 | 批量管理 Session|
|
|
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(body)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
UserManageAdminServiceApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
BatchUpdateSessionsRequest
|
|
25
|
+
} from '@cherryin/aigw-api-client';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
29
|
+
|
|
30
|
+
let body: BatchUpdateSessionsRequest; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.userManageAdminServiceBatchUpdateSessions(
|
|
33
|
+
body
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **body** | **BatchUpdateSessionsRequest**| | |
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**BatchUpdateSessionsResponse**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
No authorization required
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | A successful response. | - |
|
|
62
|
+
|**0** | An unexpected error response. | - |
|
|
63
|
+
|
|
64
|
+
[[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)
|
|
65
|
+
|
|
66
|
+
# **userManageAdminServiceGetUserDetail**
|
|
67
|
+
> GetUserDetailResponse userManageAdminServiceGetUserDetail()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
UserManageAdminServiceApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@cherryin/aigw-api-client';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
80
|
+
|
|
81
|
+
let uid: string; //@gotags: form:\"uid\" binding:\"uid\" 用户 UID (optional) (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.userManageAdminServiceGetUserDetail(
|
|
84
|
+
uid
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **uid** | [**string**] | @gotags: form:\"uid\" binding:\"uid\" 用户 UID | (optional) defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**GetUserDetailResponse**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
No authorization required
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | A successful response. | - |
|
|
113
|
+
|**0** | An unexpected error response. | - |
|
|
114
|
+
|
|
115
|
+
[[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)
|
|
116
|
+
|
|
117
|
+
# **userManageAdminServiceListUsers**
|
|
118
|
+
> ListUsersResponse userManageAdminServiceListUsers(body)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Example
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
import {
|
|
125
|
+
UserManageAdminServiceApi,
|
|
126
|
+
Configuration,
|
|
127
|
+
ListUsersRequest
|
|
128
|
+
} from '@cherryin/aigw-api-client';
|
|
129
|
+
|
|
130
|
+
const configuration = new Configuration();
|
|
131
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
132
|
+
|
|
133
|
+
let body: ListUsersRequest; //
|
|
134
|
+
|
|
135
|
+
const { status, data } = await apiInstance.userManageAdminServiceListUsers(
|
|
136
|
+
body
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **body** | **ListUsersRequest**| | |
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**ListUsersResponse**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
No authorization required
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: application/json
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### HTTP response details
|
|
162
|
+
| Status code | Description | Response headers |
|
|
163
|
+
|-------------|-------------|------------------|
|
|
164
|
+
|**200** | A successful response. | - |
|
|
165
|
+
|**0** | An unexpected 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
|
+
# **userManageAdminServiceSetUserRole**
|
|
170
|
+
> SetUserRoleResponse userManageAdminServiceSetUserRole(body)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Example
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
import {
|
|
177
|
+
UserManageAdminServiceApi,
|
|
178
|
+
Configuration,
|
|
179
|
+
SetUserRoleRequest
|
|
180
|
+
} from '@cherryin/aigw-api-client';
|
|
181
|
+
|
|
182
|
+
const configuration = new Configuration();
|
|
183
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
184
|
+
|
|
185
|
+
let body: SetUserRoleRequest; //
|
|
186
|
+
|
|
187
|
+
const { status, data } = await apiInstance.userManageAdminServiceSetUserRole(
|
|
188
|
+
body
|
|
189
|
+
);
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Parameters
|
|
193
|
+
|
|
194
|
+
|Name | Type | Description | Notes|
|
|
195
|
+
|------------- | ------------- | ------------- | -------------|
|
|
196
|
+
| **body** | **SetUserRoleRequest**| | |
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
**SetUserRoleResponse**
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
No authorization required
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: application/json
|
|
210
|
+
- **Accept**: application/json
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
### HTTP response details
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
|**200** | A successful response. | - |
|
|
217
|
+
|**0** | An unexpected error response. | - |
|
|
218
|
+
|
|
219
|
+
[[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)
|
|
220
|
+
|
|
221
|
+
# **userManageAdminServiceSetUserStatus**
|
|
222
|
+
> SetUserStatusResponse userManageAdminServiceSetUserStatus(body)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### Example
|
|
226
|
+
|
|
227
|
+
```typescript
|
|
228
|
+
import {
|
|
229
|
+
UserManageAdminServiceApi,
|
|
230
|
+
Configuration,
|
|
231
|
+
SetUserStatusRequest
|
|
232
|
+
} from '@cherryin/aigw-api-client';
|
|
233
|
+
|
|
234
|
+
const configuration = new Configuration();
|
|
235
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
236
|
+
|
|
237
|
+
let body: SetUserStatusRequest; //
|
|
238
|
+
|
|
239
|
+
const { status, data } = await apiInstance.userManageAdminServiceSetUserStatus(
|
|
240
|
+
body
|
|
241
|
+
);
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Parameters
|
|
245
|
+
|
|
246
|
+
|Name | Type | Description | Notes|
|
|
247
|
+
|------------- | ------------- | ------------- | -------------|
|
|
248
|
+
| **body** | **SetUserStatusRequest**| | |
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Return type
|
|
252
|
+
|
|
253
|
+
**SetUserStatusResponse**
|
|
254
|
+
|
|
255
|
+
### Authorization
|
|
256
|
+
|
|
257
|
+
No authorization required
|
|
258
|
+
|
|
259
|
+
### HTTP request headers
|
|
260
|
+
|
|
261
|
+
- **Content-Type**: application/json
|
|
262
|
+
- **Accept**: application/json
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
### HTTP response details
|
|
266
|
+
| Status code | Description | Response headers |
|
|
267
|
+
|-------------|-------------|------------------|
|
|
268
|
+
|**200** | A successful response. | - |
|
|
269
|
+
|**0** | An unexpected error response. | - |
|
|
270
|
+
|
|
271
|
+
[[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)
|
|
272
|
+
|
|
273
|
+
# **userManageAdminServiceUpdateUserInfo**
|
|
274
|
+
> UpdateUserInfoResponse userManageAdminServiceUpdateUserInfo(body)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### Example
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
import {
|
|
281
|
+
UserManageAdminServiceApi,
|
|
282
|
+
Configuration,
|
|
283
|
+
UpdateUserInfoRequest
|
|
284
|
+
} from '@cherryin/aigw-api-client';
|
|
285
|
+
|
|
286
|
+
const configuration = new Configuration();
|
|
287
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
288
|
+
|
|
289
|
+
let body: UpdateUserInfoRequest; //
|
|
290
|
+
|
|
291
|
+
const { status, data } = await apiInstance.userManageAdminServiceUpdateUserInfo(
|
|
292
|
+
body
|
|
293
|
+
);
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Parameters
|
|
297
|
+
|
|
298
|
+
|Name | Type | Description | Notes|
|
|
299
|
+
|------------- | ------------- | ------------- | -------------|
|
|
300
|
+
| **body** | **UpdateUserInfoRequest**| | |
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### Return type
|
|
304
|
+
|
|
305
|
+
**UpdateUserInfoResponse**
|
|
306
|
+
|
|
307
|
+
### Authorization
|
|
308
|
+
|
|
309
|
+
No authorization required
|
|
310
|
+
|
|
311
|
+
### HTTP request headers
|
|
312
|
+
|
|
313
|
+
- **Content-Type**: application/json
|
|
314
|
+
- **Accept**: application/json
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### HTTP response details
|
|
318
|
+
| Status code | Description | Response headers |
|
|
319
|
+
|-------------|-------------|------------------|
|
|
320
|
+
|**200** | A successful response. | - |
|
|
321
|
+
|**0** | An unexpected error response. | - |
|
|
322
|
+
|
|
323
|
+
[[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)
|
|
324
|
+
|
|
@@ -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/aigw-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/aigw-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,46 @@
|
|
|
1
|
+
# UserManageDetail
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**user_role** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**user_status** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**user_group** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**settings** | [**UserManageSettings**](UserManageSettings.md) | | [optional] [default to undefined]
|
|
18
|
+
**balance** | [**UserManageBalance**](UserManageBalance.md) | | [optional] [default to undefined]
|
|
19
|
+
**api_keys** | [**Array<UserManageAPIKey>**](UserManageAPIKey.md) | | [optional] [default to undefined]
|
|
20
|
+
**auth_methods** | [**Array<UserManageAuthMethod>**](UserManageAuthMethod.md) | | [optional] [default to undefined]
|
|
21
|
+
**sessions** | [**Array<UserManageSession>**](UserManageSession.md) | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { UserManageDetail } from '@cherryin/aigw-api-client';
|
|
27
|
+
|
|
28
|
+
const instance: UserManageDetail = {
|
|
29
|
+
uid,
|
|
30
|
+
display_name,
|
|
31
|
+
email,
|
|
32
|
+
avatar_url,
|
|
33
|
+
user_role,
|
|
34
|
+
user_status,
|
|
35
|
+
user_group,
|
|
36
|
+
created_at,
|
|
37
|
+
updated_at,
|
|
38
|
+
settings,
|
|
39
|
+
balance,
|
|
40
|
+
api_keys,
|
|
41
|
+
auth_methods,
|
|
42
|
+
sessions,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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,38 @@
|
|
|
1
|
+
# UserManageItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**user_role** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**user_status** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**user_group** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**auth_types** | **Array<string>** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { UserManageItem } from '@cherryin/aigw-api-client';
|
|
23
|
+
|
|
24
|
+
const instance: UserManageItem = {
|
|
25
|
+
uid,
|
|
26
|
+
display_name,
|
|
27
|
+
email,
|
|
28
|
+
avatar_url,
|
|
29
|
+
user_role,
|
|
30
|
+
user_status,
|
|
31
|
+
user_group,
|
|
32
|
+
created_at,
|
|
33
|
+
updated_at,
|
|
34
|
+
auth_types,
|
|
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,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/aigw-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/aigw-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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UserMeInfoResponse
|
|
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
|
+
**data** | [**AigwpbUserMeInfo**](AigwpbUserMeInfo.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UserMeInfoResponse } from '@cherryin/aigw-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: UserMeInfoResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
data,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[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,30 @@
|
|
|
1
|
+
# UserModelActivitySummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total_model_request_count** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**total_model_request_tokens** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**stat_model_request_count** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**stat_model_request_tokens** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**stat_model_rpm_avg** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**stat_model_tpm_avg** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { UserModelActivitySummary } from '@cherryin/aigw-api-client';
|
|
19
|
+
|
|
20
|
+
const instance: UserModelActivitySummary = {
|
|
21
|
+
total_model_request_count,
|
|
22
|
+
total_model_request_tokens,
|
|
23
|
+
stat_model_request_count,
|
|
24
|
+
stat_model_request_tokens,
|
|
25
|
+
stat_model_rpm_avg,
|
|
26
|
+
stat_model_tpm_avg,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,28 @@
|
|
|
1
|
+
# UserModelHourActivity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hour_at** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**model_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**total_request_count** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**total_request_tokens** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**total_cost** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserModelHourActivity } from '@cherryin/aigw-api-client';
|
|
18
|
+
|
|
19
|
+
const instance: UserModelHourActivity = {
|
|
20
|
+
hour_at,
|
|
21
|
+
model_id,
|
|
22
|
+
total_request_count,
|
|
23
|
+
total_request_tokens,
|
|
24
|
+
total_cost,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserModelHourlyUsages
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hour_activities** | [**Array<UserModelHourActivity>**](UserModelHourActivity.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserModelHourlyUsages } from '@cherryin/aigw-api-client';
|
|
14
|
+
|
|
15
|
+
const instance: UserModelHourlyUsages = {
|
|
16
|
+
hour_activities,
|
|
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)
|