@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.
Files changed (155) hide show
  1. package/.openapi-generator/FILES +135 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +219 -0
  5. package/api.ts +6364 -0
  6. package/base.ts +62 -0
  7. package/common.ts +113 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +4175 -0
  10. package/dist/api.js +3694 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +28 -0
  14. package/dist/common.js +124 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +4175 -0
  18. package/dist/esm/api.js +3643 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +28 -0
  22. package/dist/esm/common.js +112 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/AIModel.md +45 -0
  30. package/docs/AIModelAdminServiceApi.md +398 -0
  31. package/docs/AIModelArchitecture.md +25 -0
  32. package/docs/AIModelCreateRequest.md +35 -0
  33. package/docs/AIModelCreateResponse.md +25 -0
  34. package/docs/AIModelDeleteRequest.md +21 -0
  35. package/docs/AIModelDeleteResponse.md +23 -0
  36. package/docs/AIModelDisableRequest.md +21 -0
  37. package/docs/AIModelDisableResponse.md +25 -0
  38. package/docs/AIModelDiscountConfig.md +21 -0
  39. package/docs/AIModelGetResponse.md +25 -0
  40. package/docs/AIModelListResponse.md +27 -0
  41. package/docs/AIModelMeta.md +25 -0
  42. package/docs/AIModelPricingConfig.md +37 -0
  43. package/docs/AIModelProviderConfigItem.md +29 -0
  44. package/docs/AIModelPublishRequest.md +21 -0
  45. package/docs/AIModelPublishResponse.md +25 -0
  46. package/docs/AIModelUpdateRequest.md +37 -0
  47. package/docs/AIModelUpdateResponse.md +25 -0
  48. package/docs/AWSAuth.md +24 -0
  49. package/docs/AdminAuthFlowInitResponse.md +24 -0
  50. package/docs/AdminAuthServiceApi.md +81 -0
  51. package/docs/AudioPricing.md +33 -0
  52. package/docs/AuthFlowResult.md +23 -0
  53. package/docs/AuthTokenPair.md +27 -0
  54. package/docs/DiscountAdminServiceApi.md +281 -0
  55. package/docs/DiscountCreateRequest.md +36 -0
  56. package/docs/DiscountDeleteRequest.md +20 -0
  57. package/docs/DiscountDeleteResponse.md +22 -0
  58. package/docs/DiscountGetResponse.md +24 -0
  59. package/docs/DiscountInfo.md +42 -0
  60. package/docs/DiscountListResponse.md +26 -0
  61. package/docs/DiscountUpdateRequest.md +38 -0
  62. package/docs/DiscountUpdateResponse.md +24 -0
  63. package/docs/FeatureCostPricing.md +27 -0
  64. package/docs/FrontAIModel.md +45 -0
  65. package/docs/GCPAuth.md +27 -0
  66. package/docs/GoogleProtobufAny.md +21 -0
  67. package/docs/ImagePricing.md +31 -0
  68. package/docs/Label.md +28 -0
  69. package/docs/LabelCreateRequest.md +22 -0
  70. package/docs/LabelCreateResponse.md +24 -0
  71. package/docs/LabelDeleteRequest.md +20 -0
  72. package/docs/LabelDeleteResponse.md +22 -0
  73. package/docs/LabelListRequest.md +24 -0
  74. package/docs/LabelListResponse.md +26 -0
  75. package/docs/LabelUpdateRequest.md +24 -0
  76. package/docs/LabelUpdateResponse.md +24 -0
  77. package/docs/MultimodalPricing.md +25 -0
  78. package/docs/PricingConditions.md +31 -0
  79. package/docs/PricingRules.md +29 -0
  80. package/docs/Provider.md +37 -0
  81. package/docs/ProviderAdminServiceApi.md +284 -0
  82. package/docs/ProviderAuth.md +29 -0
  83. package/docs/ProviderCreateRequest.md +29 -0
  84. package/docs/ProviderCreateResponse.md +25 -0
  85. package/docs/ProviderDeleteRequest.md +21 -0
  86. package/docs/ProviderDeleteResponse.md +23 -0
  87. package/docs/ProviderGetResponse.md +25 -0
  88. package/docs/ProviderListResponse.md +27 -0
  89. package/docs/ProviderModel.md +37 -0
  90. package/docs/ProviderModelAdminServiceApi.md +287 -0
  91. package/docs/ProviderModelCreateRequest.md +29 -0
  92. package/docs/ProviderModelCreateResponse.md +25 -0
  93. package/docs/ProviderModelDeleteRequest.md +21 -0
  94. package/docs/ProviderModelDeleteResponse.md +23 -0
  95. package/docs/ProviderModelGetResponse.md +25 -0
  96. package/docs/ProviderModelListResponse.md +27 -0
  97. package/docs/ProviderModelPayload.md +23 -0
  98. package/docs/ProviderModelUpdateRequest.md +31 -0
  99. package/docs/ProviderModelUpdateResponse.md +25 -0
  100. package/docs/ProviderPayload.md +21 -0
  101. package/docs/ProviderUpdateRequest.md +31 -0
  102. package/docs/ProviderUpdateResponse.md +25 -0
  103. package/docs/RequestPricing.md +23 -0
  104. package/docs/Status.md +25 -0
  105. package/docs/TextTokenInputPricing.md +27 -0
  106. package/docs/TextTokenOutputPricing.md +25 -0
  107. package/docs/TextTokenPricing.md +23 -0
  108. package/docs/TokenTier.md +25 -0
  109. package/docs/UserAPIKey.md +47 -0
  110. package/docs/UserAPIKeyCreateRequest.md +37 -0
  111. package/docs/UserAPIKeyCreateResponse.md +25 -0
  112. package/docs/UserAPIKeyDeleteRequest.md +21 -0
  113. package/docs/UserAPIKeyDeleteResponse.md +23 -0
  114. package/docs/UserAPIKeyGetResponse.md +25 -0
  115. package/docs/UserAPIKeyListResponse.md +27 -0
  116. package/docs/UserAPIKeyServiceApi.md +290 -0
  117. package/docs/UserAPIKeyUpdateRequest.md +33 -0
  118. package/docs/UserAPIKeyUpdateResponse.md +25 -0
  119. package/docs/UserAuthFlowCodeResponse.md +26 -0
  120. package/docs/UserAuthFlowInitResponse.md +28 -0
  121. package/docs/UserAuthFlowInitResponseOAuthResult.md +20 -0
  122. package/docs/UserAuthFlowOAuthCallbackRequest.md +24 -0
  123. package/docs/UserAuthFlowOAuthCallbackResponse.md +26 -0
  124. package/docs/UserAuthInfo.md +20 -0
  125. package/docs/UserAuthServiceApi.md +279 -0
  126. package/docs/UserBalance.md +42 -0
  127. package/docs/UserBalanceBrief.md +32 -0
  128. package/docs/UserBalanceChangeResponse.md +24 -0
  129. package/docs/UserBalanceEditResponse.md +24 -0
  130. package/docs/UserBalanceListResponse.md +26 -0
  131. package/docs/UserBalanceServiceApi.md +226 -0
  132. package/docs/UserInfo.md +26 -0
  133. package/docs/UserLabelItem.md +22 -0
  134. package/docs/UserLabelListResponse.md +26 -0
  135. package/docs/UserLabelPair.md +22 -0
  136. package/docs/UserLabelPairChangeAction.md +22 -0
  137. package/docs/UserLabelPairChangeRequest.md +20 -0
  138. package/docs/UserLabelPairChangeResponse.md +22 -0
  139. package/docs/UserLabelServiceApi.md +386 -0
  140. package/docs/UserMeInfo.md +24 -0
  141. package/docs/UserMeInfoResponse.md +24 -0
  142. package/docs/UserModelListResponse.md +33 -0
  143. package/docs/UserModelServiceApi.md +71 -0
  144. package/docs/UserPayServiceApi.md +62 -0
  145. package/docs/UserPayStripeCheckout.md +20 -0
  146. package/docs/UserPayStripeCheckoutResponse.md +24 -0
  147. package/docs/UserPoralServiceApi.md +52 -0
  148. package/docs/UserSettings.md +20 -0
  149. package/docs/VersionedAPISchema.md +31 -0
  150. package/docs/VideoPricing.md +33 -0
  151. package/git_push.sh +57 -0
  152. package/index.ts +18 -0
  153. package/package.json +36 -0
  154. package/tsconfig.esm.json +7 -0
  155. package/tsconfig.json +18 -0
@@ -0,0 +1,386 @@
1
+ # UserLabelServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userLabelServiceLabelCreate**](#userlabelservicelabelcreate) | **POST** /admin/label/create | |
8
+ |[**userLabelServiceLabelDelete**](#userlabelservicelabeldelete) | **DELETE** /admin/label/delete | |
9
+ |[**userLabelServiceLabelGet**](#userlabelservicelabelget) | **GET** /admin/label/get | |
10
+ |[**userLabelServiceLabelList**](#userlabelservicelabellist) | **GET** /admin/label/list | |
11
+ |[**userLabelServiceLabelUpdate**](#userlabelservicelabelupdate) | **POST** /admin/label/update | |
12
+ |[**userLabelServiceUserLabelList**](#userlabelserviceuserlabellist) | **GET** /admin/users/label/list | |
13
+ |[**userLabelServiceUserLabelPairChange**](#userlabelserviceuserlabelpairchange) | **POST** /admin/users/label/change | |
14
+
15
+ # **userLabelServiceLabelCreate**
16
+ > LabelCreateResponse userLabelServiceLabelCreate(labelCreateRequest)
17
+
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ UserLabelServiceApi,
24
+ Configuration,
25
+ LabelCreateRequest
26
+ } from '@cherryin/api-client';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new UserLabelServiceApi(configuration);
30
+
31
+ let labelCreateRequest: LabelCreateRequest; //
32
+
33
+ const { status, data } = await apiInstance.userLabelServiceLabelCreate(
34
+ labelCreateRequest
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **labelCreateRequest** | **LabelCreateRequest**| | |
43
+
44
+
45
+ ### Return type
46
+
47
+ **LabelCreateResponse**
48
+
49
+ ### Authorization
50
+
51
+ No authorization required
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**200** | OK | - |
63
+ |**0** | Default error response | - |
64
+
65
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
66
+
67
+ # **userLabelServiceLabelDelete**
68
+ > LabelDeleteResponse userLabelServiceLabelDelete(labelDeleteRequest)
69
+
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ UserLabelServiceApi,
76
+ Configuration,
77
+ LabelDeleteRequest
78
+ } from '@cherryin/api-client';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new UserLabelServiceApi(configuration);
82
+
83
+ let labelDeleteRequest: LabelDeleteRequest; //
84
+
85
+ const { status, data } = await apiInstance.userLabelServiceLabelDelete(
86
+ labelDeleteRequest
87
+ );
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ |Name | Type | Description | Notes|
93
+ |------------- | ------------- | ------------- | -------------|
94
+ | **labelDeleteRequest** | **LabelDeleteRequest**| | |
95
+
96
+
97
+ ### Return type
98
+
99
+ **LabelDeleteResponse**
100
+
101
+ ### Authorization
102
+
103
+ No authorization required
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
110
+
111
+ ### HTTP response details
112
+ | Status code | Description | Response headers |
113
+ |-------------|-------------|------------------|
114
+ |**200** | OK | - |
115
+ |**0** | Default error response | - |
116
+
117
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
118
+
119
+ # **userLabelServiceLabelGet**
120
+ > LabelUpdateResponse userLabelServiceLabelGet(labelUpdateRequest)
121
+
122
+
123
+ ### Example
124
+
125
+ ```typescript
126
+ import {
127
+ UserLabelServiceApi,
128
+ Configuration,
129
+ LabelUpdateRequest
130
+ } from '@cherryin/api-client';
131
+
132
+ const configuration = new Configuration();
133
+ const apiInstance = new UserLabelServiceApi(configuration);
134
+
135
+ let labelUpdateRequest: LabelUpdateRequest; //
136
+
137
+ const { status, data } = await apiInstance.userLabelServiceLabelGet(
138
+ labelUpdateRequest
139
+ );
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ |Name | Type | Description | Notes|
145
+ |------------- | ------------- | ------------- | -------------|
146
+ | **labelUpdateRequest** | **LabelUpdateRequest**| | |
147
+
148
+
149
+ ### Return type
150
+
151
+ **LabelUpdateResponse**
152
+
153
+ ### Authorization
154
+
155
+ No authorization required
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json
160
+ - **Accept**: application/json
161
+
162
+
163
+ ### HTTP response details
164
+ | Status code | Description | Response headers |
165
+ |-------------|-------------|------------------|
166
+ |**200** | OK | - |
167
+ |**0** | Default error response | - |
168
+
169
+ [[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)
170
+
171
+ # **userLabelServiceLabelList**
172
+ > LabelListResponse userLabelServiceLabelList(labelListRequest)
173
+
174
+
175
+ ### Example
176
+
177
+ ```typescript
178
+ import {
179
+ UserLabelServiceApi,
180
+ Configuration,
181
+ LabelListRequest
182
+ } from '@cherryin/api-client';
183
+
184
+ const configuration = new Configuration();
185
+ const apiInstance = new UserLabelServiceApi(configuration);
186
+
187
+ let labelListRequest: LabelListRequest; //
188
+
189
+ const { status, data } = await apiInstance.userLabelServiceLabelList(
190
+ labelListRequest
191
+ );
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ |Name | Type | Description | Notes|
197
+ |------------- | ------------- | ------------- | -------------|
198
+ | **labelListRequest** | **LabelListRequest**| | |
199
+
200
+
201
+ ### Return type
202
+
203
+ **LabelListResponse**
204
+
205
+ ### Authorization
206
+
207
+ No authorization required
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: application/json
212
+ - **Accept**: application/json
213
+
214
+
215
+ ### HTTP response details
216
+ | Status code | Description | Response headers |
217
+ |-------------|-------------|------------------|
218
+ |**200** | OK | - |
219
+ |**0** | Default error response | - |
220
+
221
+ [[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)
222
+
223
+ # **userLabelServiceLabelUpdate**
224
+ > LabelUpdateResponse userLabelServiceLabelUpdate(labelUpdateRequest)
225
+
226
+
227
+ ### Example
228
+
229
+ ```typescript
230
+ import {
231
+ UserLabelServiceApi,
232
+ Configuration,
233
+ LabelUpdateRequest
234
+ } from '@cherryin/api-client';
235
+
236
+ const configuration = new Configuration();
237
+ const apiInstance = new UserLabelServiceApi(configuration);
238
+
239
+ let labelUpdateRequest: LabelUpdateRequest; //
240
+
241
+ const { status, data } = await apiInstance.userLabelServiceLabelUpdate(
242
+ labelUpdateRequest
243
+ );
244
+ ```
245
+
246
+ ### Parameters
247
+
248
+ |Name | Type | Description | Notes|
249
+ |------------- | ------------- | ------------- | -------------|
250
+ | **labelUpdateRequest** | **LabelUpdateRequest**| | |
251
+
252
+
253
+ ### Return type
254
+
255
+ **LabelUpdateResponse**
256
+
257
+ ### Authorization
258
+
259
+ No authorization required
260
+
261
+ ### HTTP request headers
262
+
263
+ - **Content-Type**: application/json
264
+ - **Accept**: application/json
265
+
266
+
267
+ ### HTTP response details
268
+ | Status code | Description | Response headers |
269
+ |-------------|-------------|------------------|
270
+ |**200** | OK | - |
271
+ |**0** | Default error response | - |
272
+
273
+ [[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)
274
+
275
+ # **userLabelServiceUserLabelList**
276
+ > UserLabelListResponse userLabelServiceUserLabelList()
277
+
278
+
279
+ ### Example
280
+
281
+ ```typescript
282
+ import {
283
+ UserLabelServiceApi,
284
+ Configuration
285
+ } from '@cherryin/api-client';
286
+
287
+ const configuration = new Configuration();
288
+ const apiInstance = new UserLabelServiceApi(configuration);
289
+
290
+ let page: number; //page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" (optional) (default to undefined)
291
+ let pageSize: number; //page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
292
+ let uidList: Array<string>; // (optional) (default to undefined)
293
+ let labelIds: Array<string>; // (optional) (default to undefined)
294
+
295
+ const { status, data } = await apiInstance.userLabelServiceUserLabelList(
296
+ page,
297
+ pageSize,
298
+ uidList,
299
+ labelIds
300
+ );
301
+ ```
302
+
303
+ ### Parameters
304
+
305
+ |Name | Type | Description | Notes|
306
+ |------------- | ------------- | ------------- | -------------|
307
+ | **page** | [**number**] | page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot; | (optional) defaults to undefined|
308
+ | **pageSize** | [**number**] | page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot; | (optional) defaults to undefined|
309
+ | **uidList** | **Array&lt;string&gt;** | | (optional) defaults to undefined|
310
+ | **labelIds** | **Array&lt;string&gt;** | | (optional) defaults to undefined|
311
+
312
+
313
+ ### Return type
314
+
315
+ **UserLabelListResponse**
316
+
317
+ ### Authorization
318
+
319
+ No authorization required
320
+
321
+ ### HTTP request headers
322
+
323
+ - **Content-Type**: Not defined
324
+ - **Accept**: application/json
325
+
326
+
327
+ ### HTTP response details
328
+ | Status code | Description | Response headers |
329
+ |-------------|-------------|------------------|
330
+ |**200** | OK | - |
331
+ |**0** | Default error response | - |
332
+
333
+ [[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)
334
+
335
+ # **userLabelServiceUserLabelPairChange**
336
+ > UserLabelPairChangeResponse userLabelServiceUserLabelPairChange(userLabelPairChangeRequest)
337
+
338
+
339
+ ### Example
340
+
341
+ ```typescript
342
+ import {
343
+ UserLabelServiceApi,
344
+ Configuration,
345
+ UserLabelPairChangeRequest
346
+ } from '@cherryin/api-client';
347
+
348
+ const configuration = new Configuration();
349
+ const apiInstance = new UserLabelServiceApi(configuration);
350
+
351
+ let userLabelPairChangeRequest: UserLabelPairChangeRequest; //
352
+
353
+ const { status, data } = await apiInstance.userLabelServiceUserLabelPairChange(
354
+ userLabelPairChangeRequest
355
+ );
356
+ ```
357
+
358
+ ### Parameters
359
+
360
+ |Name | Type | Description | Notes|
361
+ |------------- | ------------- | ------------- | -------------|
362
+ | **userLabelPairChangeRequest** | **UserLabelPairChangeRequest**| | |
363
+
364
+
365
+ ### Return type
366
+
367
+ **UserLabelPairChangeResponse**
368
+
369
+ ### Authorization
370
+
371
+ No authorization required
372
+
373
+ ### HTTP request headers
374
+
375
+ - **Content-Type**: application/json
376
+ - **Accept**: application/json
377
+
378
+
379
+ ### HTTP response details
380
+ | Status code | Description | Response headers |
381
+ |-------------|-------------|------------------|
382
+ |**200** | OK | - |
383
+ |**0** | Default error response | - |
384
+
385
+ [[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)
386
+
@@ -0,0 +1,24 @@
1
+ # UserMeInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **info** | [**UserInfo**](UserInfo.md) | | [optional] [default to undefined]
9
+ **settings** | [**UserSettings**](UserSettings.md) | | [optional] [default to undefined]
10
+ **balance** | [**UserBalanceBrief**](UserBalanceBrief.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserMeInfo } from '@cherryin/api-client';
16
+
17
+ const instance: UserMeInfo = {
18
+ info,
19
+ settings,
20
+ balance,
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,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** | [**UserMeInfo**](UserMeInfo.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserMeInfoResponse } from '@cherryin/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,33 @@
1
+ # UserModelListResponse
2
+
3
+ UserModelListResponse 模型列表响应(符合 OpenAI API 格式) Model list response (OpenAI API compatible format)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
10
+ **object** | **string** | object 对象类型,固定为 \&quot;list\&quot;(OpenAI API 格式) Object type, always \&quot;list\&quot; (OpenAI API format) | [optional] [default to undefined]
11
+ **data** | [**Array&lt;FrontAIModel&gt;**](FrontAIModel.md) | models FrontAIModel 列表,对应 OpenAI API 的 \&quot;data\&quot; 字段 List of FrontAIModel objects, maps to OpenAI API \&quot;data\&quot; field | [optional] [default to undefined]
12
+ **model_apis** | [**Array&lt;VersionedAPISchema&gt;**](VersionedAPISchema.md) | apis API schema 列表 NOTE: FrontAIModel.AIModelMeta.endpoints 里面只会包含 endpoint ID,不包含完整的 schema 信息 可以通过此字段获取完整的 schema 列表 | [optional] [default to undefined]
13
+ **firstId** | **string** | 分页信息 Pagination information | [optional] [default to undefined]
14
+ **lastId** | **string** | | [optional] [default to undefined]
15
+ **hasMore** | **boolean** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { UserModelListResponse } from '@cherryin/api-client';
21
+
22
+ const instance: UserModelListResponse = {
23
+ code,
24
+ object,
25
+ data,
26
+ model_apis,
27
+ firstId,
28
+ lastId,
29
+ hasMore,
30
+ };
31
+ ```
32
+
33
+ [[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,71 @@
1
+ # UserModelServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userModelServiceUserModelList**](#usermodelserviceusermodellist) | **GET** /v1/models | |
8
+
9
+ # **userModelServiceUserModelList**
10
+ > UserModelListResponse userModelServiceUserModelList()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ UserModelServiceApi,
18
+ Configuration
19
+ } from '@cherryin/api-client';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new UserModelServiceApi(configuration);
23
+
24
+ let currencyCode: string; //货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" (optional) (default to undefined)
25
+ let beforeId: string; //ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\" (optional) (default to undefined)
26
+ let afterId: string; //ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\" (optional) (default to undefined)
27
+ let limit: string; //Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\" (optional) (default to undefined)
28
+ let withPricing: boolean; //optional extra info @gotags: form:\"with_pricing\" (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.userModelServiceUserModelList(
31
+ currencyCode,
32
+ beforeId,
33
+ afterId,
34
+ limit,
35
+ withPricing
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **currencyCode** | [**string**] | 货币代码过滤,例如 \&quot;USD\&quot;, \&quot;CNY\&quot; Filter by currency code, e.g., \&quot;USD\&quot;, \&quot;CNY\&quot; @gotags: form:\&quot;currency_code\&quot; | (optional) defaults to undefined|
44
+ | **beforeId** | [**string**] | ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\&quot;before_id\&quot; | (optional) defaults to undefined|
45
+ | **afterId** | [**string**] | ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\&quot;after_id\&quot; | (optional) defaults to undefined|
46
+ | **limit** | [**string**] | Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\&quot;limit\&quot; | (optional) defaults to undefined|
47
+ | **withPricing** | [**boolean**] | optional extra info @gotags: form:\&quot;with_pricing\&quot; | (optional) defaults to undefined|
48
+
49
+
50
+ ### Return type
51
+
52
+ **UserModelListResponse**
53
+
54
+ ### Authorization
55
+
56
+ No authorization required
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: Not defined
61
+ - **Accept**: application/json
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ |**200** | OK | - |
68
+ |**0** | Default error response | - |
69
+
70
+ [[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)
71
+
@@ -0,0 +1,62 @@
1
+ # UserPayServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userPayServiceUserPayStripeCheckout**](#userpayserviceuserpaystripecheckout) | **POST** /api/v1/user/pay/stripe/checkout | |
8
+
9
+ # **userPayServiceUserPayStripeCheckout**
10
+ > UserPayStripeCheckoutResponse userPayServiceUserPayStripeCheckout()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ UserPayServiceApi,
18
+ Configuration
19
+ } from '@cherryin/api-client';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new UserPayServiceApi(configuration);
23
+
24
+ let currencyCode: string; // (optional) (default to undefined)
25
+ let chargeAmount: number; // (optional) (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.userPayServiceUserPayStripeCheckout(
28
+ currencyCode,
29
+ chargeAmount
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **currencyCode** | [**string**] | | (optional) defaults to undefined|
38
+ | **chargeAmount** | [**number**] | | (optional) defaults to undefined|
39
+
40
+
41
+ ### Return type
42
+
43
+ **UserPayStripeCheckoutResponse**
44
+
45
+ ### Authorization
46
+
47
+ No authorization required
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: Not defined
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**200** | OK | - |
59
+ |**0** | Default error response | - |
60
+
61
+ [[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)
62
+
@@ -0,0 +1,20 @@
1
+ # UserPayStripeCheckout
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **checkout_url** | **string** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserPayStripeCheckout } from '@cherryin/api-client';
14
+
15
+ const instance: UserPayStripeCheckout = {
16
+ checkout_url,
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
+ # UserPayStripeCheckoutResponse
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** | [**UserPayStripeCheckout**](UserPayStripeCheckout.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserPayStripeCheckoutResponse } from '@cherryin/api-client';
16
+
17
+ const instance: UserPayStripeCheckoutResponse = {
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,52 @@
1
+ # UserPoralServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userPoralServiceUserMeInfo**](#userporalserviceusermeinfo) | **POST** /api/v1/user/me/info | |
8
+
9
+ # **userPoralServiceUserMeInfo**
10
+ > UserMeInfoResponse userPoralServiceUserMeInfo()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ UserPoralServiceApi,
18
+ Configuration
19
+ } from '@cherryin/api-client';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new UserPoralServiceApi(configuration);
23
+
24
+ const { status, data } = await apiInstance.userPoralServiceUserMeInfo();
25
+ ```
26
+
27
+ ### Parameters
28
+ This endpoint does not have any parameters.
29
+
30
+
31
+ ### Return type
32
+
33
+ **UserMeInfoResponse**
34
+
35
+ ### Authorization
36
+
37
+ No authorization required
38
+
39
+ ### HTTP request headers
40
+
41
+ - **Content-Type**: Not defined
42
+ - **Accept**: application/json
43
+
44
+
45
+ ### HTTP response details
46
+ | Status code | Description | Response headers |
47
+ |-------------|-------------|------------------|
48
+ |**200** | OK | - |
49
+ |**0** | Default error response | - |
50
+
51
+ [[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)
52
+