@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,281 @@
|
|
|
1
|
+
# QRCodeAdminServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**qRCodeAdminServiceQRCodeCreate**](#qrcodeadminserviceqrcodecreate) | **POST** /admin/qrcode/create | QRCodeCreate 创建新的二维码 请求路径: POST /admin/qrcode/create 权限要求: 需要管理员权限|
|
|
8
|
+
|[**qRCodeAdminServiceQRCodeDelete**](#qrcodeadminserviceqrcodedelete) | **DELETE** /admin/qrcode/delete | QRCodeDelete 删除已有的二维码 请求路径: DELETE /admin/qrcode/delete 权限要求: 需要管理员权限|
|
|
9
|
+
|[**qRCodeAdminServiceQRCodeGet**](#qrcodeadminserviceqrcodeget) | **GET** /admin/qrcode/get | QRCodeGet 获取指定的二维码及其历史版本 请求路径: GET /admin/qrcode/get 权限要求: 需要管理员权限|
|
|
10
|
+
|[**qRCodeAdminServiceQRCodeList**](#qrcodeadminserviceqrcodelist) | **GET** /admin/qrcode/list | QRCodeList 列出二维码列表 请求路径: GET /admin/qrcode/list 权限要求: 需要管理员权限|
|
|
11
|
+
|[**qRCodeAdminServiceQRCodeUpdate**](#qrcodeadminserviceqrcodeupdate) | **POST** /admin/qrcode/update | QRCodeUpdate 更新已有的二维码 请求路径: POST /admin/qrcode/update 权限要求: 需要管理员权限|
|
|
12
|
+
|
|
13
|
+
# **qRCodeAdminServiceQRCodeCreate**
|
|
14
|
+
> QRCodeCreateResponse qRCodeAdminServiceQRCodeCreate(body)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
QRCodeAdminServiceApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
QRCodeCreateRequest
|
|
24
|
+
} from '@cherryin/aigw-api-client';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new QRCodeAdminServiceApi(configuration);
|
|
28
|
+
|
|
29
|
+
let body: QRCodeCreateRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.qRCodeAdminServiceQRCodeCreate(
|
|
32
|
+
body
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **body** | **QRCodeCreateRequest**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**QRCodeCreateResponse**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
No authorization required
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | A successful response. | - |
|
|
61
|
+
|**0** | An unexpected error response. | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
65
|
+
# **qRCodeAdminServiceQRCodeDelete**
|
|
66
|
+
> QRCodeDeleteResponse qRCodeAdminServiceQRCodeDelete()
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
QRCodeAdminServiceApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from '@cherryin/aigw-api-client';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new QRCodeAdminServiceApi(configuration);
|
|
79
|
+
|
|
80
|
+
let id: string; //@gotags: form:\"id\" binding:\"required\" (optional) (default to undefined)
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.qRCodeAdminServiceQRCodeDelete(
|
|
83
|
+
id
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **id** | [**string**] | @gotags: form:\"id\" binding:\"required\" | (optional) defaults to undefined|
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Return type
|
|
95
|
+
|
|
96
|
+
**QRCodeDeleteResponse**
|
|
97
|
+
|
|
98
|
+
### Authorization
|
|
99
|
+
|
|
100
|
+
No authorization required
|
|
101
|
+
|
|
102
|
+
### HTTP request headers
|
|
103
|
+
|
|
104
|
+
- **Content-Type**: Not defined
|
|
105
|
+
- **Accept**: application/json
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### HTTP response details
|
|
109
|
+
| Status code | Description | Response headers |
|
|
110
|
+
|-------------|-------------|------------------|
|
|
111
|
+
|**200** | A successful response. | - |
|
|
112
|
+
|**0** | An unexpected error response. | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
116
|
+
# **qRCodeAdminServiceQRCodeGet**
|
|
117
|
+
> QRCodeGetResponse qRCodeAdminServiceQRCodeGet()
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
QRCodeAdminServiceApi,
|
|
125
|
+
Configuration
|
|
126
|
+
} from '@cherryin/aigw-api-client';
|
|
127
|
+
|
|
128
|
+
const configuration = new Configuration();
|
|
129
|
+
const apiInstance = new QRCodeAdminServiceApi(configuration);
|
|
130
|
+
|
|
131
|
+
let id: string; //@gotags: form:\"id\" binding:\"required\" (optional) (default to undefined)
|
|
132
|
+
let historyLimit: number; //@gotags: form:\"history_limit\" 返回的历史记录数量限制 (optional) (default to undefined)
|
|
133
|
+
|
|
134
|
+
const { status, data } = await apiInstance.qRCodeAdminServiceQRCodeGet(
|
|
135
|
+
id,
|
|
136
|
+
historyLimit
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **id** | [**string**] | @gotags: form:\"id\" binding:\"required\" | (optional) defaults to undefined|
|
|
145
|
+
| **historyLimit** | [**number**] | @gotags: form:\"history_limit\" 返回的历史记录数量限制 | (optional) defaults to undefined|
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Return type
|
|
149
|
+
|
|
150
|
+
**QRCodeGetResponse**
|
|
151
|
+
|
|
152
|
+
### Authorization
|
|
153
|
+
|
|
154
|
+
No authorization required
|
|
155
|
+
|
|
156
|
+
### HTTP request headers
|
|
157
|
+
|
|
158
|
+
- **Content-Type**: Not defined
|
|
159
|
+
- **Accept**: application/json
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### HTTP response details
|
|
163
|
+
| Status code | Description | Response headers |
|
|
164
|
+
|-------------|-------------|------------------|
|
|
165
|
+
|**200** | A successful response. | - |
|
|
166
|
+
|**0** | An unexpected error response. | - |
|
|
167
|
+
|
|
168
|
+
[[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)
|
|
169
|
+
|
|
170
|
+
# **qRCodeAdminServiceQRCodeList**
|
|
171
|
+
> QRCodeListResponse qRCodeAdminServiceQRCodeList()
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Example
|
|
175
|
+
|
|
176
|
+
```typescript
|
|
177
|
+
import {
|
|
178
|
+
QRCodeAdminServiceApi,
|
|
179
|
+
Configuration
|
|
180
|
+
} from '@cherryin/aigw-api-client';
|
|
181
|
+
|
|
182
|
+
const configuration = new Configuration();
|
|
183
|
+
const apiInstance = new QRCodeAdminServiceApi(configuration);
|
|
184
|
+
|
|
185
|
+
let page: number; //@gotags: form:\"page\" (optional) (default to undefined)
|
|
186
|
+
let pageSize: number; //@gotags: form:\"page_size\" (optional) (default to undefined)
|
|
187
|
+
let namePrefix: string; //@gotags: form:\"name_prefix\" 名称前缀过滤 (optional) (default to undefined)
|
|
188
|
+
let status: number; //@gotags: form:\"status\" 状态过滤(1=draft, 2=done, 3=failed) (optional) (default to undefined)
|
|
189
|
+
|
|
190
|
+
const { status, data } = await apiInstance.qRCodeAdminServiceQRCodeList(
|
|
191
|
+
page,
|
|
192
|
+
pageSize,
|
|
193
|
+
namePrefix,
|
|
194
|
+
status
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
|Name | Type | Description | Notes|
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **page** | [**number**] | @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
203
|
+
| **pageSize** | [**number**] | @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
204
|
+
| **namePrefix** | [**string**] | @gotags: form:\"name_prefix\" 名称前缀过滤 | (optional) defaults to undefined|
|
|
205
|
+
| **status** | [**number**] | @gotags: form:\"status\" 状态过滤(1=draft, 2=done, 3=failed) | (optional) defaults to undefined|
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Return type
|
|
209
|
+
|
|
210
|
+
**QRCodeListResponse**
|
|
211
|
+
|
|
212
|
+
### Authorization
|
|
213
|
+
|
|
214
|
+
No authorization required
|
|
215
|
+
|
|
216
|
+
### HTTP request headers
|
|
217
|
+
|
|
218
|
+
- **Content-Type**: Not defined
|
|
219
|
+
- **Accept**: application/json
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### HTTP response details
|
|
223
|
+
| Status code | Description | Response headers |
|
|
224
|
+
|-------------|-------------|------------------|
|
|
225
|
+
|**200** | A successful response. | - |
|
|
226
|
+
|**0** | An unexpected error response. | - |
|
|
227
|
+
|
|
228
|
+
[[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)
|
|
229
|
+
|
|
230
|
+
# **qRCodeAdminServiceQRCodeUpdate**
|
|
231
|
+
> QRCodeUpdateResponse qRCodeAdminServiceQRCodeUpdate(body)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Example
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
import {
|
|
238
|
+
QRCodeAdminServiceApi,
|
|
239
|
+
Configuration,
|
|
240
|
+
QRCodeUpdateRequest
|
|
241
|
+
} from '@cherryin/aigw-api-client';
|
|
242
|
+
|
|
243
|
+
const configuration = new Configuration();
|
|
244
|
+
const apiInstance = new QRCodeAdminServiceApi(configuration);
|
|
245
|
+
|
|
246
|
+
let body: QRCodeUpdateRequest; //
|
|
247
|
+
|
|
248
|
+
const { status, data } = await apiInstance.qRCodeAdminServiceQRCodeUpdate(
|
|
249
|
+
body
|
|
250
|
+
);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Parameters
|
|
254
|
+
|
|
255
|
+
|Name | Type | Description | Notes|
|
|
256
|
+
|------------- | ------------- | ------------- | -------------|
|
|
257
|
+
| **body** | **QRCodeUpdateRequest**| | |
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### Return type
|
|
261
|
+
|
|
262
|
+
**QRCodeUpdateResponse**
|
|
263
|
+
|
|
264
|
+
### Authorization
|
|
265
|
+
|
|
266
|
+
No authorization required
|
|
267
|
+
|
|
268
|
+
### HTTP request headers
|
|
269
|
+
|
|
270
|
+
- **Content-Type**: application/json
|
|
271
|
+
- **Accept**: application/json
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### HTTP response details
|
|
275
|
+
| Status code | Description | Response headers |
|
|
276
|
+
|-------------|-------------|------------------|
|
|
277
|
+
|**200** | A successful response. | - |
|
|
278
|
+
|**0** | An unexpected error response. | - |
|
|
279
|
+
|
|
280
|
+
[[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)
|
|
281
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# QRCodeCreateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**storage_type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**storage_bucket** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**expire_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**file_data** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**filename** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**storage_target_key** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**target_content_ext** | **string** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { QRCodeCreateRequest } from '@cherryin/aigw-api-client';
|
|
22
|
+
|
|
23
|
+
const instance: QRCodeCreateRequest = {
|
|
24
|
+
name,
|
|
25
|
+
description,
|
|
26
|
+
storage_type,
|
|
27
|
+
storage_bucket,
|
|
28
|
+
expire_at,
|
|
29
|
+
file_data,
|
|
30
|
+
filename,
|
|
31
|
+
storage_target_key,
|
|
32
|
+
target_content_ext,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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
|
+
# QRCodeCreateResponse
|
|
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
|
+
**qr_code** | [**QRCodeInfo**](QRCodeInfo.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { QRCodeCreateResponse } from '@cherryin/aigw-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: QRCodeCreateResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
qr_code,
|
|
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,22 @@
|
|
|
1
|
+
# QRCodeDeleteResponse
|
|
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
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { QRCodeDeleteResponse } from '@cherryin/aigw-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: QRCodeDeleteResponse = {
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# QRCodeGetResponse
|
|
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** | [**QRCodeWithHistory**](QRCodeWithHistory.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { QRCodeGetResponse } from '@cherryin/aigw-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: QRCodeGetResponse = {
|
|
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,28 @@
|
|
|
1
|
+
# QRCodeHistoryItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**qr_code_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**version** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**snapshot** | [**QRCodeSnapshot**](QRCodeSnapshot.md) | | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { QRCodeHistoryItem } from '@cherryin/aigw-api-client';
|
|
18
|
+
|
|
19
|
+
const instance: QRCodeHistoryItem = {
|
|
20
|
+
id,
|
|
21
|
+
qr_code_id,
|
|
22
|
+
version,
|
|
23
|
+
snapshot,
|
|
24
|
+
created_at,
|
|
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,58 @@
|
|
|
1
|
+
# QRCodeInfo
|
|
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
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**operator_uid** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**status** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**storage_type** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**storage_bucket** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**storage_latest_key** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**storage_target_key** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**storage_convert_key** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**content_filename** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**source_content_type** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**content_file_size** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**target_content_ext** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**latest_cdn_url** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**target_cdn_url** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**convert_cdn_url** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**expire_at** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
27
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { QRCodeInfo } from '@cherryin/aigw-api-client';
|
|
33
|
+
|
|
34
|
+
const instance: QRCodeInfo = {
|
|
35
|
+
id,
|
|
36
|
+
name,
|
|
37
|
+
description,
|
|
38
|
+
operator_uid,
|
|
39
|
+
status,
|
|
40
|
+
storage_type,
|
|
41
|
+
storage_bucket,
|
|
42
|
+
storage_latest_key,
|
|
43
|
+
storage_target_key,
|
|
44
|
+
storage_convert_key,
|
|
45
|
+
content_filename,
|
|
46
|
+
source_content_type,
|
|
47
|
+
content_file_size,
|
|
48
|
+
target_content_ext,
|
|
49
|
+
latest_cdn_url,
|
|
50
|
+
target_cdn_url,
|
|
51
|
+
convert_cdn_url,
|
|
52
|
+
expire_at,
|
|
53
|
+
created_at,
|
|
54
|
+
updated_at,
|
|
55
|
+
};
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[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
|
+
# QRCodeListResponse
|
|
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
|
+
**list** | [**Array<QRCodeInfo>**](QRCodeInfo.md) | | [optional] [default to undefined]
|
|
11
|
+
**total** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { QRCodeListResponse } from '@cherryin/aigw-api-client';
|
|
17
|
+
|
|
18
|
+
const instance: QRCodeListResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
list,
|
|
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,36 @@
|
|
|
1
|
+
# QRCodeSnapshot
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**storage_latest_key** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**storage_target_key** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**storage_convert_key** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**content_filename** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**content_file_size** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**status** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**snapshot_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { QRCodeSnapshot } from '@cherryin/aigw-api-client';
|
|
22
|
+
|
|
23
|
+
const instance: QRCodeSnapshot = {
|
|
24
|
+
name,
|
|
25
|
+
description,
|
|
26
|
+
storage_latest_key,
|
|
27
|
+
storage_target_key,
|
|
28
|
+
storage_convert_key,
|
|
29
|
+
content_filename,
|
|
30
|
+
content_file_size,
|
|
31
|
+
status,
|
|
32
|
+
snapshot_at,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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
|
+
# QRCodeUpdateRequest
|
|
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
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**storage_type** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**storage_bucket** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**expire_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**file_data** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**filename** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**storage_target_key** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**target_content_ext** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { QRCodeUpdateRequest } from '@cherryin/aigw-api-client';
|
|
23
|
+
|
|
24
|
+
const instance: QRCodeUpdateRequest = {
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
description,
|
|
28
|
+
storage_type,
|
|
29
|
+
storage_bucket,
|
|
30
|
+
expire_at,
|
|
31
|
+
file_data,
|
|
32
|
+
filename,
|
|
33
|
+
storage_target_key,
|
|
34
|
+
target_content_ext,
|
|
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,24 @@
|
|
|
1
|
+
# QRCodeUpdateResponse
|
|
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
|
+
**qr_code** | [**QRCodeInfo**](QRCodeInfo.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { QRCodeUpdateResponse } from '@cherryin/aigw-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: QRCodeUpdateResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
qr_code,
|
|
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,22 @@
|
|
|
1
|
+
# QRCodeWithHistory
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**qr_code** | [**QRCodeInfo**](QRCodeInfo.md) | | [optional] [default to undefined]
|
|
9
|
+
**history** | [**Array<QRCodeHistoryItem>**](QRCodeHistoryItem.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { QRCodeWithHistory } from '@cherryin/aigw-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: QRCodeWithHistory = {
|
|
17
|
+
qr_code,
|
|
18
|
+
history,
|
|
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
|
+
# ReasoningTokensPricing
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**multiplier** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ReasoningTokensPricing } from '@cherryin/aigw-api-client';
|
|
14
|
+
|
|
15
|
+
const instance: ReasoningTokensPricing = {
|
|
16
|
+
multiplier,
|
|
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
|
+
# RequestPricing
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**base_fee** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**request_fee** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RequestPricing } from '@cherryin/aigw-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: RequestPricing = {
|
|
17
|
+
base_fee,
|
|
18
|
+
request_fee,
|
|
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,11 @@
|
|
|
1
|
+
# SessionAction
|
|
2
|
+
|
|
3
|
+
- SESSION_ACTION_UNSPECIFIED: 未指定 - SESSION_ACTION_REVOKE: 撤销 Session
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `SessionActionUnspecified` (value: `'SESSION_ACTION_UNSPECIFIED'`)
|
|
8
|
+
|
|
9
|
+
* `SessionActionRevoke` (value: `'SESSION_ACTION_REVOKE'`)
|
|
10
|
+
|
|
11
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|