@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,36 @@
1
+ # DiscountCreateRequest
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
+ **type** | **string** | | [optional] [default to undefined]
11
+ **rate** | **number** | | [optional] [default to undefined]
12
+ **status** | **number** | | [optional] [default to undefined]
13
+ **priority** | **number** | | [optional] [default to undefined]
14
+ **effective_start** | **string** | | [optional] [default to undefined]
15
+ **effective_until** | **string** | | [optional] [default to undefined]
16
+ **label_ids** | **Array<string>** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { DiscountCreateRequest } from '@cherryin/api-client';
22
+
23
+ const instance: DiscountCreateRequest = {
24
+ name,
25
+ description,
26
+ type,
27
+ rate,
28
+ status,
29
+ priority,
30
+ effective_start,
31
+ effective_until,
32
+ label_ids,
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,20 @@
1
+ # DiscountDeleteRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | @gotags: form:\"id\" | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DiscountDeleteRequest } from '@cherryin/api-client';
14
+
15
+ const instance: DiscountDeleteRequest = {
16
+ id,
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
+ # DiscountDeleteResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DiscountDeleteResponse } from '@cherryin/api-client';
15
+
16
+ const instance: DiscountDeleteResponse = {
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
+ # DiscountGetResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+ **discount** | [**DiscountInfo**](DiscountInfo.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DiscountGetResponse } from '@cherryin/api-client';
16
+
17
+ const instance: DiscountGetResponse = {
18
+ code,
19
+ message,
20
+ discount,
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,42 @@
1
+ # DiscountInfo
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
+ **type** | **string** | | [optional] [default to undefined]
12
+ **rate** | **number** | | [optional] [default to undefined]
13
+ **status** | **number** | | [optional] [default to undefined]
14
+ **priority** | **number** | | [optional] [default to undefined]
15
+ **effective_start** | **string** | | [optional] [default to undefined]
16
+ **effective_until** | **string** | | [optional] [default to undefined]
17
+ **created_at** | **string** | | [optional] [default to undefined]
18
+ **updated_at** | **string** | | [optional] [default to undefined]
19
+ **label_ids** | **Array<string>** | when type is LABELED_USERS, this field contains the applicable label IDs | [optional] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { DiscountInfo } from '@cherryin/api-client';
25
+
26
+ const instance: DiscountInfo = {
27
+ id,
28
+ name,
29
+ description,
30
+ type,
31
+ rate,
32
+ status,
33
+ priority,
34
+ effective_start,
35
+ effective_until,
36
+ created_at,
37
+ updated_at,
38
+ label_ids,
39
+ };
40
+ ```
41
+
42
+ [[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
+ # DiscountListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+ **discount** | [**Array<DiscountInfo>**](DiscountInfo.md) | | [optional] [default to undefined]
11
+ **total** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { DiscountListResponse } from '@cherryin/api-client';
17
+
18
+ const instance: DiscountListResponse = {
19
+ code,
20
+ message,
21
+ discount,
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,38 @@
1
+ # DiscountUpdateRequest
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
+ **type** | **string** | | [optional] [default to undefined]
12
+ **rate** | **number** | | [optional] [default to undefined]
13
+ **status** | **number** | | [optional] [default to undefined]
14
+ **priority** | **number** | | [optional] [default to undefined]
15
+ **effective_start** | **string** | | [optional] [default to undefined]
16
+ **effective_until** | **string** | | [optional] [default to undefined]
17
+ **label_ids** | **Array<string>** | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { DiscountUpdateRequest } from '@cherryin/api-client';
23
+
24
+ const instance: DiscountUpdateRequest = {
25
+ id,
26
+ name,
27
+ description,
28
+ type,
29
+ rate,
30
+ status,
31
+ priority,
32
+ effective_start,
33
+ effective_until,
34
+ label_ids,
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
+ # DiscountUpdateResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+ **discount** | [**DiscountInfo**](DiscountInfo.md) | 更新后的 Discount 信息 | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DiscountUpdateResponse } from '@cherryin/api-client';
16
+
17
+ const instance: DiscountUpdateResponse = {
18
+ code,
19
+ message,
20
+ discount,
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,27 @@
1
+ # FeatureCostPricing
2
+
3
+ FeatureCostPricing 特殊功能计费(新版) Feature cost pricing (new version)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | id 价格配置ID Price configuration ID | [optional] [default to undefined]
10
+ **name** | **string** | name 功能名称 Feature name | [optional] [default to undefined]
11
+ **per_cost** | **string** | per_cost 每次使用费用 Cost per usage | [optional] [default to undefined]
12
+ **extra** | **{ [key: string]: string; }** | extra 扩展规则 Extra rules | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { FeatureCostPricing } from '@cherryin/api-client';
18
+
19
+ const instance: FeatureCostPricing = {
20
+ id,
21
+ name,
22
+ per_cost,
23
+ extra,
24
+ };
25
+ ```
26
+
27
+ [[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,45 @@
1
+ # FrontAIModel
2
+
3
+ FrontAIModel 代表面向终端用户的 AI 模型配置(符合 OpenAI API 格式) FrontAIModel represents an AI model configuration exposed to end users (OpenAI API compatible)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | id 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段 Unique name identifier for the model, e.g., \"gpt-4\", \"claude-3-opus\" Maps to OpenAI API \"id\" field | [optional] [default to undefined]
10
+ **name** | **string** | name 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段, Gemini 兼容 | [optional] [default to undefined]
11
+ **object** | **string** | object 对象类型,固定为 \"model\"(OpenAI API 格式) Object type, always \"model\" (OpenAI API format) | [optional] [default to undefined]
12
+ **created** | **string** | created_at 创建时间戳(Unix 时间戳) 对应 OpenAI API 的 \"created\" 字段 Creation timestamp (Unix timestamp) Maps to OpenAI API \"created\" field | [optional] [default to undefined]
13
+ **updated** | **string** | updated_at 更新时间戳(Unix 时间戳) Last update timestamp (Unix timestamp) | [optional] [default to undefined]
14
+ **display_name** | **string** | display_name 模型的显示名称,例如 \"GPT-4\", \"Claude 3 Opus\" Display name for the model, e.g., \"GPT-4\", \"Claude 3 Opus\" | [optional] [default to undefined]
15
+ **description** | **string** | description 模型描述 Model description | [optional] [default to undefined]
16
+ **status** | **number** | status 模型状态 Model status 1: 草稿 (Draft) 2: 已发布 (Published) 3: 已禁用 (Disabled) | [optional] [default to undefined]
17
+ **meta** | [**AIModelMeta**](AIModelMeta.md) | meta 元数据 Metadata | [optional] [default to undefined]
18
+ **pricing_configs** | [**Array<AIModelPricingConfig>**](AIModelPricingConfig.md) | pricing_configs 价格配置列表(支持多货币和多种价格类型) Pricing configurations (supports multiple currencies and pricing types) | [optional] [default to undefined]
19
+ **owned_by** | **string** | owned_by 模型所有者,例如 \"openai\", \"anthropic\", \"organization-owner\"(OpenAI API 格式) Model owner, e.g., \"openai\", \"anthropic\", \"organization-owner\" (OpenAI API format) | [optional] [default to undefined]
20
+ **internal_id** | **string** | internal_id AIModel 的内部数据库 ID Internal database ID for the AI model | [optional] [default to undefined]
21
+ **baseModelID** | **string** | gemini 接口兼容的基础模型 ID,而且是必须字段,例如 \"gemini-1.5-pro\" json tag 也需要遵循 gemini 命名规范 - camelCase Gemini-compatible base model ID, also a required field, e.g., \"gemini-1.5-pro\" json tag also needs to follow gemini naming convention - camelCase | [optional] [default to undefined]
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import { FrontAIModel } from '@cherryin/api-client';
27
+
28
+ const instance: FrontAIModel = {
29
+ id,
30
+ name,
31
+ object,
32
+ created,
33
+ updated,
34
+ display_name,
35
+ description,
36
+ status,
37
+ meta,
38
+ pricing_configs,
39
+ owned_by,
40
+ internal_id,
41
+ baseModelID,
42
+ };
43
+ ```
44
+
45
+ [[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,27 @@
1
+ # GCPAuth
2
+
3
+ GCPAuth 代表 Google Cloud Platform 的认证详情 GCP authentication details for Google Cloud Platform services
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **region** | **string** | region GCP 区域,例如 \"us-central1\", \"europe-west4\" GCP region, e.g., \"us-central1\", \"europe-west4\" | [optional] [default to undefined]
10
+ **project_name** | **string** | project_name GCP 项目名称 GCP project name where Vertex AI APIs are enabled | [optional] [default to undefined]
11
+ **credentials** | **string** | credentials GCP 凭证的 JSON 格式内容 JSON-formatted GCP credentials content | [optional] [default to undefined]
12
+ **backend** | **number** | backend Google 后端类型 Google backend type 1: Gemini API 2: Vertex AI | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { GCPAuth } from '@cherryin/api-client';
18
+
19
+ const instance: GCPAuth = {
20
+ region,
21
+ project_name,
22
+ credentials,
23
+ backend,
24
+ };
25
+ ```
26
+
27
+ [[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,21 @@
1
+ # GoogleProtobufAny
2
+
3
+ Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **type** | **string** | The type of the serialized message. | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GoogleProtobufAny } from '@cherryin/api-client';
15
+
16
+ const instance: GoogleProtobufAny = {
17
+ type,
18
+ };
19
+ ```
20
+
21
+ [[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,31 @@
1
+ # ImagePricing
2
+
3
+ ImagePricing 图片计费 Image pricing
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | id 价格配置ID Price configuration ID | [optional] [default to undefined]
10
+ **mode** | **string** | mode 计费模式: \"per_item\", \"per_token\", \"hybrid\" Pricing mode | [optional] [default to undefined]
11
+ **per_image** | **string** | per_image 每张图片费用 Fee per image | [optional] [default to undefined]
12
+ **per_token** | **string** | per_token 每Token价格 Fee per token | [optional] [default to undefined]
13
+ **resolution_multiplier** | **{ [key: string]: string; }** | resolution_multiplier 分辨率倍数(key: 分辨率如\"1024x1024\", value: 倍数) Resolution multiplier (key: resolution like \"1024x1024\", value: multiplier) | [optional] [default to undefined]
14
+ **extra** | **{ [key: string]: string; }** | extra 扩展计算 Extra calculation options | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ImagePricing } from '@cherryin/api-client';
20
+
21
+ const instance: ImagePricing = {
22
+ id,
23
+ mode,
24
+ per_image,
25
+ per_token,
26
+ resolution_multiplier,
27
+ extra,
28
+ };
29
+ ```
30
+
31
+ [[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/docs/Label.md ADDED
@@ -0,0 +1,28 @@
1
+ # Label
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
+ **created_at** | **string** | | [optional] [default to undefined]
12
+ **updated_at** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { Label } from '@cherryin/api-client';
18
+
19
+ const instance: Label = {
20
+ id,
21
+ name,
22
+ description,
23
+ created_at,
24
+ updated_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,22 @@
1
+ # LabelCreateRequest
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
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { LabelCreateRequest } from '@cherryin/api-client';
15
+
16
+ const instance: LabelCreateRequest = {
17
+ name,
18
+ description,
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
+ # LabelCreateResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+ **data** | [**Label**](Label.md) | 创建的 Discount 信息 | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { LabelCreateResponse } from '@cherryin/api-client';
16
+
17
+ const instance: LabelCreateResponse = {
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,20 @@
1
+ # LabelDeleteRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | @gotags: form:\"id\" | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { LabelDeleteRequest } from '@cherryin/api-client';
14
+
15
+ const instance: LabelDeleteRequest = {
16
+ id,
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
+ # LabelDeleteResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { LabelDeleteResponse } from '@cherryin/api-client';
15
+
16
+ const instance: LabelDeleteResponse = {
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
+ # LabelListRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **page** | **number** | page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" | [optional] [default to undefined]
9
+ **page_size** | **number** | page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" | [optional] [default to undefined]
10
+ **name_prefix** | **string** | name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\" | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { LabelListRequest } from '@cherryin/api-client';
16
+
17
+ const instance: LabelListRequest = {
18
+ page,
19
+ page_size,
20
+ name_prefix,
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,26 @@
1
+ # LabelListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+ **data** | [**Array<Label>**](Label.md) | | [optional] [default to undefined]
11
+ **total** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { LabelListResponse } from '@cherryin/api-client';
17
+
18
+ const instance: LabelListResponse = {
19
+ code,
20
+ message,
21
+ data,
22
+ total,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # LabelUpdateRequest
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
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { LabelUpdateRequest } from '@cherryin/api-client';
16
+
17
+ const instance: LabelUpdateRequest = {
18
+ id,
19
+ name,
20
+ description,
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
+ # LabelUpdateResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | code 响应状态码,0 表示成功 | [optional] [default to undefined]
9
+ **message** | **string** | message 响应消息 | [optional] [default to undefined]
10
+ **data** | [**Label**](Label.md) | 创建的 Discount 信息 | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { LabelUpdateResponse } from '@cherryin/api-client';
16
+
17
+ const instance: LabelUpdateResponse = {
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,25 @@
1
+ # MultimodalPricing
2
+
3
+ MultimodalPricing 多模态计费 Multimodal pricing
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **image** | [**ImagePricing**](ImagePricing.md) | image 图片计费 Image pricing | [optional] [default to undefined]
10
+ **audio** | [**AudioPricing**](AudioPricing.md) | audio 音频计费 Audio pricing | [optional] [default to undefined]
11
+ **video** | [**VideoPricing**](VideoPricing.md) | video 视频计费 Video pricing | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { MultimodalPricing } from '@cherryin/api-client';
17
+
18
+ const instance: MultimodalPricing = {
19
+ image,
20
+ audio,
21
+ video,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)