@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.
Files changed (200) hide show
  1. package/.openapi-generator/FILES +180 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +289 -0
  5. package/api.ts +8041 -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 +4760 -0
  10. package/dist/api.js +5694 -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 +4760 -0
  18. package/dist/esm/api.js +5638 -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/AIModelAdminServiceApi.md +454 -0
  30. package/docs/AIModelPricingConfig.md +36 -0
  31. package/docs/AdminAIModel.md +72 -0
  32. package/docs/AdminAIModelCheckConnectionResponse.md +24 -0
  33. package/docs/AdminAIModelCheckItem.md +32 -0
  34. package/docs/AdminAIModelCheckResult.md +22 -0
  35. package/docs/AdminAIModelCreateRequest.md +66 -0
  36. package/docs/AdminAIModelCreateResponse.md +24 -0
  37. package/docs/AdminAIModelDeleteResponse.md +22 -0
  38. package/docs/AdminAIModelDisableRequest.md +22 -0
  39. package/docs/AdminAIModelDisableResponse.md +24 -0
  40. package/docs/AdminAIModelDiscountConfig.md +20 -0
  41. package/docs/AdminAIModelGetResponse.md +24 -0
  42. package/docs/AdminAIModelListResponse.md +26 -0
  43. package/docs/AdminAIModelProviderConfigItem.md +28 -0
  44. package/docs/AdminAIModelPublishRequest.md +22 -0
  45. package/docs/AdminAIModelPublishResponse.md +24 -0
  46. package/docs/AdminAIModelUpdateRequest.md +24 -0
  47. package/docs/AdminAIModelUpdateResponse.md +24 -0
  48. package/docs/AdminAPIToken.md +40 -0
  49. package/docs/AdminAPITokenCreateRequest.md +24 -0
  50. package/docs/AdminAPITokenCreateResponse.md +26 -0
  51. package/docs/AdminAPITokenDeleteResponse.md +22 -0
  52. package/docs/AdminAPITokenGetResponse.md +24 -0
  53. package/docs/AdminAPITokenListResponse.md +26 -0
  54. package/docs/AdminAPITokenRefreshRequest.md +20 -0
  55. package/docs/AdminAPITokenRefreshResponse.md +26 -0
  56. package/docs/AdminAPITokenScopes.md +24 -0
  57. package/docs/AdminAPITokenServiceApi.md +325 -0
  58. package/docs/AdminAPITokenUpdateRequest.md +28 -0
  59. package/docs/AdminAPITokenUpdateResponse.md +24 -0
  60. package/docs/AdminProvider.md +46 -0
  61. package/docs/AdminProviderCreateRequest.md +40 -0
  62. package/docs/AdminProviderCreateResponse.md +24 -0
  63. package/docs/AdminProviderDeleteResponse.md +22 -0
  64. package/docs/AdminProviderGetResponse.md +24 -0
  65. package/docs/AdminProviderListResponse.md +26 -0
  66. package/docs/AdminProviderModel.md +68 -0
  67. package/docs/AdminProviderModelCreateRequest.md +62 -0
  68. package/docs/AdminProviderModelCreateResponse.md +24 -0
  69. package/docs/AdminProviderModelDeleteResponse.md +22 -0
  70. package/docs/AdminProviderModelGetResponse.md +24 -0
  71. package/docs/AdminProviderModelListResponse.md +26 -0
  72. package/docs/AdminProviderModelUpdateRequest.md +26 -0
  73. package/docs/AdminProviderModelUpdateResponse.md +24 -0
  74. package/docs/AdminProviderUpdateRequest.md +26 -0
  75. package/docs/AdminProviderUpdateResponse.md +24 -0
  76. package/docs/AigwpbLabel.md +28 -0
  77. package/docs/AigwpbUserMeInfo.md +24 -0
  78. package/docs/AigwpbUserPayStripeCheckout.md +20 -0
  79. package/docs/AigwpbUserPortalDashboard.md +24 -0
  80. package/docs/Any.md +20 -0
  81. package/docs/AudioPricing.md +32 -0
  82. package/docs/BatchUpdateSessionsRequest.md +24 -0
  83. package/docs/BatchUpdateSessionsResponse.md +24 -0
  84. package/docs/CodeExecutionPricing.md +24 -0
  85. package/docs/DiscountAdminServiceApi.md +275 -0
  86. package/docs/DiscountCreateRequest.md +36 -0
  87. package/docs/DiscountDeleteResponse.md +22 -0
  88. package/docs/DiscountGetResponse.md +24 -0
  89. package/docs/DiscountInfo.md +42 -0
  90. package/docs/DiscountListResponse.md +26 -0
  91. package/docs/DiscountUpdateRequest.md +38 -0
  92. package/docs/DiscountUpdateResponse.md +24 -0
  93. package/docs/FeatureCostPricing.md +26 -0
  94. package/docs/FeaturePricing.md +26 -0
  95. package/docs/FrontAIModel.md +42 -0
  96. package/docs/FrontendModelExtraInfo.md +20 -0
  97. package/docs/FrontendModelPricing.md +58 -0
  98. package/docs/FrontendModelsResponse.md +28 -0
  99. package/docs/FrontendProviderInfo.md +30 -0
  100. package/docs/FrontendProviderModel.md +54 -0
  101. package/docs/FrontendProvidersResponse.md +28 -0
  102. package/docs/FrontendSearchContextCost.md +24 -0
  103. package/docs/GetUserDetailResponse.md +24 -0
  104. package/docs/ImagePricing.md +36 -0
  105. package/docs/LabelCreateRequest.md +22 -0
  106. package/docs/LabelCreateResponse.md +24 -0
  107. package/docs/LabelDeleteResponse.md +22 -0
  108. package/docs/LabelGetResponse.md +24 -0
  109. package/docs/LabelListResponse.md +26 -0
  110. package/docs/LabelUpdateRequest.md +24 -0
  111. package/docs/LabelUpdateResponse.md +24 -0
  112. package/docs/ListUsersRequest.md +36 -0
  113. package/docs/ListUsersResponse.md +30 -0
  114. package/docs/ModelCapabilities.md +58 -0
  115. package/docs/ModelLimits.md +40 -0
  116. package/docs/ModelListResponse.md +32 -0
  117. package/docs/ModelModalities.md +22 -0
  118. package/docs/MultimodalPricing.md +24 -0
  119. package/docs/PricingConditions.md +30 -0
  120. package/docs/PricingRules.md +32 -0
  121. package/docs/ProviderAWSAuth.md +24 -0
  122. package/docs/ProviderAdminServiceApi.md +579 -0
  123. package/docs/ProviderAuth.md +28 -0
  124. package/docs/ProviderGCPAuth.md +26 -0
  125. package/docs/ProviderModelAdminServiceApi.md +591 -0
  126. package/docs/QRCodeAdminServiceApi.md +281 -0
  127. package/docs/QRCodeCreateRequest.md +36 -0
  128. package/docs/QRCodeCreateResponse.md +24 -0
  129. package/docs/QRCodeDeleteResponse.md +22 -0
  130. package/docs/QRCodeGetResponse.md +24 -0
  131. package/docs/QRCodeHistoryItem.md +28 -0
  132. package/docs/QRCodeInfo.md +58 -0
  133. package/docs/QRCodeListResponse.md +26 -0
  134. package/docs/QRCodeSnapshot.md +36 -0
  135. package/docs/QRCodeUpdateRequest.md +38 -0
  136. package/docs/QRCodeUpdateResponse.md +24 -0
  137. package/docs/QRCodeWithHistory.md +22 -0
  138. package/docs/ReasoningTokensPricing.md +20 -0
  139. package/docs/RequestPricing.md +22 -0
  140. package/docs/SessionAction.md +11 -0
  141. package/docs/SetUserRoleRequest.md +22 -0
  142. package/docs/SetUserRoleResponse.md +24 -0
  143. package/docs/SetUserStatusRequest.md +22 -0
  144. package/docs/SetUserStatusResponse.md +26 -0
  145. package/docs/Status.md +24 -0
  146. package/docs/TextTokenInputPricing.md +26 -0
  147. package/docs/TextTokenOutputPricing.md +24 -0
  148. package/docs/TextTokenPricing.md +22 -0
  149. package/docs/TokenTier.md +24 -0
  150. package/docs/UpdateUserInfoRequest.md +26 -0
  151. package/docs/UpdateUserInfoResponse.md +24 -0
  152. package/docs/UserAPIKey.md +46 -0
  153. package/docs/UserAPIKeyCreateRequest.md +36 -0
  154. package/docs/UserAPIKeyCreateResponse.md +24 -0
  155. package/docs/UserAPIKeyDeleteResponse.md +22 -0
  156. package/docs/UserAPIKeyGetResponse.md +24 -0
  157. package/docs/UserAPIKeyListResponse.md +26 -0
  158. package/docs/UserAPIKeyServiceApi.md +284 -0
  159. package/docs/UserAPIKeyUpdateRequest.md +32 -0
  160. package/docs/UserAPIKeyUpdateResponse.md +24 -0
  161. package/docs/UserBalance.md +42 -0
  162. package/docs/UserBalanceBrief.md +32 -0
  163. package/docs/UserBalanceChangeResponse.md +24 -0
  164. package/docs/UserBalanceEditResponse.md +24 -0
  165. package/docs/UserBalanceListResponse.md +26 -0
  166. package/docs/UserBalanceServiceApi.md +223 -0
  167. package/docs/UserInfo.md +32 -0
  168. package/docs/UserLabelItem.md +22 -0
  169. package/docs/UserLabelListResponse.md +26 -0
  170. package/docs/UserLabelPair.md +22 -0
  171. package/docs/UserLabelPairChangeAction.md +22 -0
  172. package/docs/UserLabelPairChangeRequest.md +20 -0
  173. package/docs/UserLabelPairChangeResponse.md +22 -0
  174. package/docs/UserLabelServiceApi.md +392 -0
  175. package/docs/UserManageAPIKey.md +38 -0
  176. package/docs/UserManageAdminServiceApi.md +324 -0
  177. package/docs/UserManageAuthMethod.md +32 -0
  178. package/docs/UserManageBalance.md +32 -0
  179. package/docs/UserManageDetail.md +46 -0
  180. package/docs/UserManageItem.md +38 -0
  181. package/docs/UserManageSession.md +34 -0
  182. package/docs/UserManageSettings.md +20 -0
  183. package/docs/UserMeInfoResponse.md +24 -0
  184. package/docs/UserModelActivitySummary.md +30 -0
  185. package/docs/UserModelHourActivity.md +28 -0
  186. package/docs/UserModelHourlyUsages.md +20 -0
  187. package/docs/UserModelServiceApi.md +181 -0
  188. package/docs/UserPayServiceApi.md +71 -0
  189. package/docs/UserPayStripeCheckoutResponse.md +24 -0
  190. package/docs/UserPortalDashboardResponse.md +24 -0
  191. package/docs/UserPortalServiceApi.md +107 -0
  192. package/docs/UserSettings.md +20 -0
  193. package/docs/VersionedAPISchema.md +30 -0
  194. package/docs/VideoPricing.md +32 -0
  195. package/docs/WebSearchPricing.md +30 -0
  196. package/git_push.sh +57 -0
  197. package/index.ts +18 -0
  198. package/package.json +36 -0
  199. package/tsconfig.esm.json +7 -0
  200. package/tsconfig.json +18 -0
@@ -0,0 +1,181 @@
1
+ # UserModelServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userModelServiceFrontendModels**](#usermodelservicefrontendmodels) | **GET** /api/v1/frontend/models | FrontendModels 获取前端模型列表 NOTE: 登录态鉴权|
8
+ |[**userModelServiceFrontendProviders**](#usermodelservicefrontendproviders) | **GET** /api/v1/frontend/providers | FrontendProviders 获取前端供应商列表 NOTE: 登录态鉴权|
9
+ |[**userModelServiceModelList**](#usermodelservicemodellist) | **GET** /v1/models | ModelList OpenAI 通用模型列表 NOTE: 需要 API KEY 鉴权|
10
+
11
+ # **userModelServiceFrontendModels**
12
+ > FrontendModelsResponse userModelServiceFrontendModels()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ UserModelServiceApi,
20
+ Configuration
21
+ } from '@cherryin/aigw-api-client';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new UserModelServiceApi(configuration);
25
+
26
+ let providerId: string; //provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\" (optional) (default to undefined)
27
+ let limit: number; //limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" (optional) (default to undefined)
28
+ let offset: number; //offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.userModelServiceFrontendModels(
31
+ providerId,
32
+ limit,
33
+ offset
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **providerId** | [**string**] | provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\" | (optional) defaults to undefined|
42
+ | **limit** | [**number**] | limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" | (optional) defaults to undefined|
43
+ | **offset** | [**number**] | offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" | (optional) defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **FrontendModelsResponse**
49
+
50
+ ### Authorization
51
+
52
+ No authorization required
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | A successful response. | - |
64
+ |**0** | An unexpected error response. | - |
65
+
66
+ [[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)
67
+
68
+ # **userModelServiceFrontendProviders**
69
+ > FrontendProvidersResponse userModelServiceFrontendProviders()
70
+
71
+
72
+ ### Example
73
+
74
+ ```typescript
75
+ import {
76
+ UserModelServiceApi,
77
+ Configuration
78
+ } from '@cherryin/aigw-api-client';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new UserModelServiceApi(configuration);
82
+
83
+ let limit: number; //limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" (optional) (default to undefined)
84
+ let offset: number; //offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" (optional) (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.userModelServiceFrontendProviders(
87
+ limit,
88
+ offset
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **limit** | [**number**] | limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" | (optional) defaults to undefined|
97
+ | **offset** | [**number**] | offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" | (optional) defaults to undefined|
98
+
99
+
100
+ ### Return type
101
+
102
+ **FrontendProvidersResponse**
103
+
104
+ ### Authorization
105
+
106
+ No authorization required
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+ ### HTTP response details
115
+ | Status code | Description | Response headers |
116
+ |-------------|-------------|------------------|
117
+ |**200** | A successful response. | - |
118
+ |**0** | An unexpected error response. | - |
119
+
120
+ [[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)
121
+
122
+ # **userModelServiceModelList**
123
+ > ModelListResponse userModelServiceModelList()
124
+
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ UserModelServiceApi,
131
+ Configuration
132
+ } from '@cherryin/aigw-api-client';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new UserModelServiceApi(configuration);
136
+
137
+ 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)
138
+ 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)
139
+ 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)
140
+ let pricingCode: string; //model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\" (optional) (default to undefined)
141
+
142
+ const { status, data } = await apiInstance.userModelServiceModelList(
143
+ beforeId,
144
+ afterId,
145
+ limit,
146
+ pricingCode
147
+ );
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+ |Name | Type | Description | Notes|
153
+ |------------- | ------------- | ------------- | -------------|
154
+ | **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) defaults to undefined|
155
+ | **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) defaults to undefined|
156
+ | **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) defaults to undefined|
157
+ | **pricingCode** | [**string**] | model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\" | (optional) defaults to undefined|
158
+
159
+
160
+ ### Return type
161
+
162
+ **ModelListResponse**
163
+
164
+ ### Authorization
165
+
166
+ No authorization required
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: application/json
172
+
173
+
174
+ ### HTTP response details
175
+ | Status code | Description | Response headers |
176
+ |-------------|-------------|------------------|
177
+ |**200** | A successful response. | - |
178
+ |**0** | An unexpected error response. | - |
179
+
180
+ [[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)
181
+
@@ -0,0 +1,71 @@
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/aigw-api-client';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new UserPayServiceApi(configuration);
23
+
24
+ let currencyCode: string; //Currency code, e.g., \"USD\" (optional) (default to undefined)
25
+ let chargeAmount: string; //充值金额(必须整数,10) (optional) (default to undefined)
26
+ let redirect: boolean; //是否跳转到支付页面,true-跳转,false-不跳转 (optional) (default to undefined)
27
+ let successUrl: string; //支付成功跳转地址 (optional) (default to undefined)
28
+ let cancelUrl: string; //支付取消跳转地址 (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.userPayServiceUserPayStripeCheckout(
31
+ currencyCode,
32
+ chargeAmount,
33
+ redirect,
34
+ successUrl,
35
+ cancelUrl
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **currencyCode** | [**string**] | Currency code, e.g., \"USD\" | (optional) defaults to undefined|
44
+ | **chargeAmount** | [**string**] | 充值金额(必须整数,10) | (optional) defaults to undefined|
45
+ | **redirect** | [**boolean**] | 是否跳转到支付页面,true-跳转,false-不跳转 | (optional) defaults to undefined|
46
+ | **successUrl** | [**string**] | 支付成功跳转地址 | (optional) defaults to undefined|
47
+ | **cancelUrl** | [**string**] | 支付取消跳转地址 | (optional) defaults to undefined|
48
+
49
+
50
+ ### Return type
51
+
52
+ **UserPayStripeCheckoutResponse**
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** | A successful response. | - |
68
+ |**0** | An unexpected 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,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** | [**AigwpbUserPayStripeCheckout**](AigwpbUserPayStripeCheckout.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserPayStripeCheckoutResponse } from '@cherryin/aigw-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,24 @@
1
+ # UserPortalDashboardResponse
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** | [**AigwpbUserPortalDashboard**](AigwpbUserPortalDashboard.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserPortalDashboardResponse } from '@cherryin/aigw-api-client';
16
+
17
+ const instance: UserPortalDashboardResponse = {
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,107 @@
1
+ # UserPortalServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userPortalServiceUserMeInfo**](#userportalserviceusermeinfo) | **POST** /api/v1/user/me/info | 个人信息接口|
8
+ |[**userPortalServiceUserPortalDashboard**](#userportalserviceuserportaldashboard) | **GET** /api/v1/user/portal/dashboard | 用户门户仪表盘信息|
9
+
10
+ # **userPortalServiceUserMeInfo**
11
+ > UserMeInfoResponse userPortalServiceUserMeInfo()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ UserPortalServiceApi,
19
+ Configuration
20
+ } from '@cherryin/aigw-api-client';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new UserPortalServiceApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.userPortalServiceUserMeInfo();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **UserMeInfoResponse**
35
+
36
+ ### Authorization
37
+
38
+ No authorization required
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | A successful response. | - |
50
+ |**0** | An unexpected error response. | - |
51
+
52
+ [[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)
53
+
54
+ # **userPortalServiceUserPortalDashboard**
55
+ > UserPortalDashboardResponse userPortalServiceUserPortalDashboard()
56
+
57
+
58
+ ### Example
59
+
60
+ ```typescript
61
+ import {
62
+ UserPortalServiceApi,
63
+ Configuration
64
+ } from '@cherryin/aigw-api-client';
65
+
66
+ const configuration = new Configuration();
67
+ const apiInstance = new UserPortalServiceApi(configuration);
68
+
69
+ let startAt: string; //开始时间戳,单位秒 (不能超过 7 天前,默认是请求时间往前推 24 小时) @gotags: form:\"start_at\" (optional) (default to undefined)
70
+ let endAt: string; //结束时间戳,单位秒 (不能超过 1 天后,默认是请求时间) @gotags: form:\"end_at\" (optional) (default to undefined)
71
+
72
+ const { status, data } = await apiInstance.userPortalServiceUserPortalDashboard(
73
+ startAt,
74
+ endAt
75
+ );
76
+ ```
77
+
78
+ ### Parameters
79
+
80
+ |Name | Type | Description | Notes|
81
+ |------------- | ------------- | ------------- | -------------|
82
+ | **startAt** | [**string**] | 开始时间戳,单位秒 (不能超过 7 天前,默认是请求时间往前推 24 小时) @gotags: form:\"start_at\" | (optional) defaults to undefined|
83
+ | **endAt** | [**string**] | 结束时间戳,单位秒 (不能超过 1 天后,默认是请求时间) @gotags: form:\"end_at\" | (optional) defaults to undefined|
84
+
85
+
86
+ ### Return type
87
+
88
+ **UserPortalDashboardResponse**
89
+
90
+ ### Authorization
91
+
92
+ No authorization required
93
+
94
+ ### HTTP request headers
95
+
96
+ - **Content-Type**: Not defined
97
+ - **Accept**: application/json
98
+
99
+
100
+ ### HTTP response details
101
+ | Status code | Description | Response headers |
102
+ |-------------|-------------|------------------|
103
+ |**200** | A successful response. | - |
104
+ |**0** | An unexpected error response. | - |
105
+
106
+ [[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)
107
+
@@ -0,0 +1,20 @@
1
+ # UserSettings
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 { UserSettings } from '@cherryin/aigw-api-client';
14
+
15
+ const instance: UserSettings = {
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,30 @@
1
+ # VersionedAPISchema
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
+ **schema** | **string** | | [optional] [default to undefined]
11
+ **version** | **string** | | [optional] [default to undefined]
12
+ **path** | **string** | | [optional] [default to undefined]
13
+ **method** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { VersionedAPISchema } from '@cherryin/aigw-api-client';
19
+
20
+ const instance: VersionedAPISchema = {
21
+ id,
22
+ name,
23
+ schema,
24
+ version,
25
+ path,
26
+ method,
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,32 @@
1
+ # VideoPricing
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **mode** | **string** | | [optional] [default to undefined]
10
+ **input_per_token** | **string** | | [optional] [default to undefined]
11
+ **output_per_token** | **string** | | [optional] [default to undefined]
12
+ **input_per_second** | **string** | | [optional] [default to undefined]
13
+ **output_per_second** | **string** | | [optional] [default to undefined]
14
+ **extra** | **{ [key: string]: string; }** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { VideoPricing } from '@cherryin/aigw-api-client';
20
+
21
+ const instance: VideoPricing = {
22
+ id,
23
+ mode,
24
+ input_per_token,
25
+ output_per_token,
26
+ input_per_second,
27
+ output_per_second,
28
+ extra,
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,30 @@
1
+ # WebSearchPricing
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **per_thousand** | **string** | | [optional] [default to undefined]
10
+ **free_daily** | **string** | | [optional] [default to undefined]
11
+ **context_size_high** | **string** | | [optional] [default to undefined]
12
+ **context_size_medium** | **string** | | [optional] [default to undefined]
13
+ **context_size_low** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { WebSearchPricing } from '@cherryin/aigw-api-client';
19
+
20
+ const instance: WebSearchPricing = {
21
+ id,
22
+ per_thousand,
23
+ free_daily,
24
+ context_size_high,
25
+ context_size_medium,
26
+ context_size_low,
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)
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="CherryIntelligence"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="aigw-api-client"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * aigwpb/api_token_admin_api.proto
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: version not set
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ export * from "./api";
17
+ export * from "./configuration";
18
+
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@cherryin/aigw-api-client",
3
+ "version": "0.1.0",
4
+ "description": "OpenAPI client for @cherryin/aigw-api-client",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/CherryIntelligence/aigw-api-client.git"
9
+ },
10
+ "keywords": [
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "@cherryin/aigw-api-client"
16
+ ],
17
+ "license": "Unlicense",
18
+ "main": "./dist/index.js",
19
+ "typings": "./dist/index.d.ts",
20
+ "module": "./dist/esm/index.js",
21
+ "sideEffects": false,
22
+ "scripts": {
23
+ "build": "tsc && tsc -p tsconfig.esm.json",
24
+ "prepare": "npm run build"
25
+ },
26
+ "dependencies": {
27
+ "axios": "^1.6.1"
28
+ },
29
+ "devDependencies": {
30
+ "@types/node": "12.11.5 - 12.20.42",
31
+ "typescript": "^4.0 || ^5.0"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ }
36
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "outDir": "dist/esm"
6
+ }
7
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES6",
5
+ "module": "commonjs",
6
+ "noImplicitAny": true,
7
+ "outDir": "dist",
8
+ "rootDir": ".",
9
+ "moduleResolution": "node",
10
+ "typeRoots": [
11
+ "node_modules/@types"
12
+ ]
13
+ },
14
+ "exclude": [
15
+ "dist",
16
+ "node_modules"
17
+ ]
18
+ }