@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,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/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,31 @@
1
+ # VersionedAPISchema
2
+
3
+ VersionedAPISchema represents a versioned API schema configuration 代表一个版本化的 API schema 配置
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | id 约定的 ID Conventional ID | [optional] [default to undefined]
10
+ **name** | **string** | name API schema 的描述性名称 Descriptive name for the API schema 例如: \"chat/completion\", \"response\" Examples: \"chat/completion\", \"response\" | [optional] [default to undefined]
11
+ **schema** | **string** | schema API schema 的名称 Name of the API schema 例如: \"openai\", \"anthropic\" Examples: \"openai\", \"anthropic\" | [optional] [default to undefined]
12
+ **version** | **string** | version API schema 的版本(可选) Version of the API schema (optional) | [optional] [default to undefined]
13
+ **path** | **string** | path API 端点路径(可选) API path for this endpoint (optional) | [optional] [default to undefined]
14
+ **method** | **string** | method HTTP 方法,例如 \"POST\", \"GET\"(可选) HTTP method for this endpoint, e.g., \"POST\", \"GET\" (optional) | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { VersionedAPISchema } from '@cherryin/api-client';
20
+
21
+ const instance: VersionedAPISchema = {
22
+ id,
23
+ name,
24
+ schema,
25
+ version,
26
+ path,
27
+ method,
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)
@@ -0,0 +1,33 @@
1
+ # VideoPricing
2
+
3
+ VideoPricing 视频计费 Video 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_second\", \"per_token\" Pricing mode | [optional] [default to undefined]
11
+ **input_per_token** | **string** | input_per_token 输入每Token费用 Input fee per token | [optional] [default to undefined]
12
+ **output_per_token** | **string** | output_per_token 输出每Token费用 Output fee per token | [optional] [default to undefined]
13
+ **input_per_second** | **string** | input_per_second 输入每秒费用 Input fee per second | [optional] [default to undefined]
14
+ **output_per_second** | **string** | output_per_second 输出每秒费用 Output fee per second | [optional] [default to undefined]
15
+ **extra** | **{ [key: string]: string; }** | extra 扩展计算 Extra calculation options | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { VideoPricing } from '@cherryin/api-client';
21
+
22
+ const instance: VideoPricing = {
23
+ id,
24
+ mode,
25
+ input_per_token,
26
+ output_per_token,
27
+ input_per_second,
28
+ output_per_second,
29
+ extra,
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)
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="CherryIN"
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="cherryin-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
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
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/api-client",
3
+ "version": "0.0.1",
4
+ "description": "OpenAPI client for @cherryin/api-client",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/CherryIN/cherryin-api-client.git"
9
+ },
10
+ "keywords": [
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "@cherryin/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
+ }