@cherryin/api-client 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +265 -103
- package/README.md +391 -156
- package/api.ts +12793 -4366
- package/dist/api.d.ts +7771 -2676
- package/dist/api.js +6883 -1480
- package/dist/esm/api.d.ts +7771 -2676
- package/dist/esm/api.js +6838 -1459
- package/docs/AIModelAdminServiceApi.md +101 -90
- package/docs/AIModelPricingConfig.md +10 -10
- package/docs/AdminAIModel.md +73 -0
- package/docs/{AIModelCheckConnectionResponse.md → AdminAIModelCheckConnectionResponse.md} +4 -4
- package/docs/{AIModelCheckItem.md → AdminAIModelCheckItem.md} +3 -3
- package/docs/{AIModelCheckResult.md → AdminAIModelCheckResult.md} +5 -5
- package/docs/AdminAIModelCreateRequest.md +67 -0
- package/docs/AdminAIModelCreateResponse.md +25 -0
- package/docs/{AIModelDeleteResponse.md → AdminAIModelDeleteResponse.md} +4 -4
- package/docs/AdminAIModelDisableRequest.md +23 -0
- package/docs/AdminAIModelDisableResponse.md +25 -0
- package/docs/{AIModelDiscountConfig.md → AdminAIModelDiscountConfig.md} +4 -4
- package/docs/{AIModelGetResponse.md → AdminAIModelGetResponse.md} +5 -5
- package/docs/{AIModelListResponse.md → AdminAIModelListResponse.md} +5 -5
- package/docs/AdminAIModelProviderConfigItem.md +29 -0
- package/docs/AdminAIModelPublishRequest.md +23 -0
- package/docs/{AIModelDisableResponse.md → AdminAIModelPublishResponse.md} +5 -5
- package/docs/AdminAIModelUpdateRequest.md +25 -0
- package/docs/{AIModelUpdateResponse.md → AdminAIModelUpdateResponse.md} +5 -5
- package/docs/AdminAPIToken.md +41 -0
- package/docs/AdminAPITokenCreateRequest.md +25 -0
- package/docs/{AuthChangePasswordResponse.md → AdminAPITokenCreateResponse.md} +5 -5
- package/docs/AdminAPITokenDeleteResponse.md +22 -0
- package/docs/{AuthAdminRevokeSessionResponse.md → AdminAPITokenGetResponse.md} +5 -5
- package/docs/{AuthUnlinkAccountResponse.md → AdminAPITokenListResponse.md} +7 -5
- package/docs/AdminAPITokenRefreshRequest.md +21 -0
- package/docs/{AuthAdminSignInEmailResponse.md → AdminAPITokenRefreshResponse.md} +5 -5
- package/docs/AdminAPITokenScopes.md +25 -0
- package/docs/AdminAPITokenServiceApi.md +325 -0
- package/docs/AdminAPITokenUpdateRequest.md +29 -0
- package/docs/{AuthAdminUpdateUserResponse.md → AdminAPITokenUpdateResponse.md} +5 -5
- package/docs/AdminEnterpriseMaterials.md +24 -0
- package/docs/AdminEnterpriseUser.md +24 -0
- package/docs/AdminEnterpriseUserMaterials.md +22 -0
- package/docs/AdminPassportItem.md +24 -0
- package/docs/AdminProvider.md +46 -0
- package/docs/AdminProviderCreateRequest.md +41 -0
- package/docs/AdminProviderCreateResponse.md +25 -0
- package/docs/{ProviderModelDeleteResponse.md → AdminProviderDeleteResponse.md} +4 -4
- package/docs/AdminProviderGetResponse.md +25 -0
- package/docs/AdminProviderListResponse.md +27 -0
- package/docs/AdminProviderModel.md +68 -0
- package/docs/AdminProviderModelCreateRequest.md +63 -0
- package/docs/AdminProviderModelCreateResponse.md +25 -0
- package/docs/{ProviderDeleteResponse.md → AdminProviderModelDeleteResponse.md} +4 -4
- package/docs/{ProviderGetResponse.md → AdminProviderModelGetResponse.md} +5 -5
- package/docs/{ProviderModelListResponse.md → AdminProviderModelListResponse.md} +6 -6
- package/docs/AdminProviderModelUpdateRequest.md +27 -0
- package/docs/{AIModelCreateResponse.md → AdminProviderModelUpdateResponse.md} +5 -5
- package/docs/AdminProviderUpdateRequest.md +27 -0
- package/docs/{AIModelPublishResponse.md → AdminProviderUpdateResponse.md} +5 -5
- package/docs/AdminUserItem.md +26 -0
- package/docs/AudioPricing.md +8 -8
- package/docs/AuthAdminSession.md +39 -0
- package/docs/{Auth2Admin.md → AuthAdminUser.md} +7 -7
- package/docs/AuthEnterpriseMaterials.md +33 -0
- package/docs/AuthEnterpriseSession.md +37 -0
- package/docs/AuthEnterpriseUser.md +37 -0
- package/docs/{Auth2IdToken.md → AuthIdToken.md} +3 -3
- package/docs/AuthPassport.md +35 -0
- package/docs/AuthUser.md +39 -0
- package/docs/AuthUserMethod.md +39 -0
- package/docs/AuthUserSession.md +41 -0
- package/docs/CodeExecutionPricing.md +25 -0
- package/docs/ConfigItem.md +10 -6
- package/docs/DiscountDeleteResponse.md +1 -1
- package/docs/DiscountGetResponse.md +1 -1
- package/docs/DiscountListResponse.md +1 -1
- package/docs/DiscountUpdateResponse.md +1 -1
- package/docs/FeatureCostPricing.md +5 -5
- package/docs/FeaturePricing.md +27 -0
- package/docs/FrontAIModel.md +15 -17
- package/docs/FrontendModelExtraInfo.md +21 -0
- package/docs/FrontendModelPricing.md +57 -0
- package/docs/FrontendModelsResponse.md +29 -0
- package/docs/FrontendProviderInfo.md +31 -0
- package/docs/FrontendProviderModel.md +55 -0
- package/docs/FrontendProvidersResponse.md +29 -0
- package/docs/FrontendSearchContextCost.md +25 -0
- package/docs/ImagePricing.md +16 -10
- package/docs/LabelCreateResponse.md +1 -1
- package/docs/LabelDeleteResponse.md +1 -1
- package/docs/LabelListResponse.md +1 -1
- package/docs/LabelUpdateResponse.md +1 -1
- package/docs/ModelCapabilities.md +59 -0
- package/docs/ModelLimits.md +41 -0
- package/docs/{UserModelListResponse.md → ModelListResponse.md} +12 -13
- package/docs/ModelModalities.md +23 -0
- package/docs/MultimodalPricing.md +4 -4
- package/docs/{AuthRequestPasswordResetRequest.md → PassportAdminPasswordForgetRequest.md} +5 -5
- package/docs/{AuthRevokeSessionResponse.md → PassportAdminPasswordForgetResponse.md} +3 -5
- package/docs/PassportAdminPasswordResetRequest.md +28 -0
- package/docs/{AuthLinkSocialResponse.md → PassportAdminPasswordResetResponse.md} +3 -5
- package/docs/PassportAdminPasswordResetTokenVerifyRequest.md +20 -0
- package/docs/PassportAdminPasswordResetTokenVerifyResponse.md +26 -0
- package/docs/PassportAdminSendVerificationEmailRequest.md +26 -0
- package/docs/PassportAdminSendVerificationEmailResponse.md +22 -0
- package/docs/{AuthAdminSignInEmailRequest.md → PassportAdminSignInEmailRequest.md} +7 -5
- package/docs/{AuthGetSessionResponse.md → PassportAdminSignInEmailResponse.md} +6 -6
- package/docs/{AuthAdminRevokeSessionRequest.md → PassportAdminTokenAuthRequest.md} +3 -3
- package/docs/PassportAdminTokenAuthResponse.md +28 -0
- package/docs/{AuthAdminChangePasswordRequest.md → PassportAuthAdminChangePasswordRequest.md} +3 -3
- package/docs/PassportAuthAdminChangePasswordResponse.md +26 -0
- package/docs/PassportAuthAdminEnterpriseMaterialListResponse.md +28 -0
- package/docs/PassportAuthAdminEnterpriseMaterialReviewRequest.md +22 -0
- package/docs/PassportAuthAdminEnterpriseMaterialReviewResponse.md +22 -0
- package/docs/{AuthGetAccountInfoResponse.md → PassportAuthAdminGetInfoResponse.md} +4 -4
- package/docs/{AuthAdminGetSessionResponse.md → PassportAuthAdminGetSessionResponse.md} +5 -5
- package/docs/{AuthAdminListSessionsResponse.md → PassportAuthAdminListSessionsResponse.md} +4 -4
- package/docs/PassportAuthAdminPassportDisableRequest.md +22 -0
- package/docs/PassportAuthAdminPassportDisableResponse.md +22 -0
- package/docs/PassportAuthAdminPassportListRequest.md +28 -0
- package/docs/PassportAuthAdminPassportListResponse.md +28 -0
- package/docs/PassportAuthAdminPassportModifyInfoRequest.md +28 -0
- package/docs/PassportAuthAdminPassportModifyInfoResponse.md +24 -0
- package/docs/PassportAuthAdminRPCServiceApi.md +61 -0
- package/docs/{AuthResetPasswordRequest.md → PassportAuthAdminResetPasswordRequest.md} +3 -5
- package/docs/PassportAuthAdminResetPasswordResponse.md +22 -0
- package/docs/{AuthSignOutResponse.md → PassportAuthAdminRevokeOtherSessionsResponse.md} +3 -5
- package/docs/{AuthDeleteUserRequest.md → PassportAuthAdminRevokeSessionRequest.md} +3 -7
- package/docs/PassportAuthAdminRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthAdminRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthAdminServiceApi.md +1286 -0
- package/docs/PassportAuthAdminSignOutResponse.md +22 -0
- package/docs/{AuthAdminUpdateUserRequest.md → PassportAuthAdminUpdateInfoRequest.md} +5 -5
- package/docs/{AuthUpdateUserResponse.md → PassportAuthAdminUpdateInfoResponse.md} +4 -4
- package/docs/PassportAuthAdminUserDisableRequest.md +26 -0
- package/docs/PassportAuthAdminUserDisableResponse.md +22 -0
- package/docs/PassportAuthAdminUserListRequest.md +28 -0
- package/docs/{AuthSendVerificationEmailResponse.md → PassportAuthAdminUserListResponse.md} +9 -5
- package/docs/PassportAuthAdminUserModifyInfoRequest.md +32 -0
- package/docs/{AuthResetPasswordResponse.md → PassportAuthAdminUserModifyInfoResponse.md} +5 -5
- package/docs/PassportAuthAdminUserModifyPermissionRequest.md +22 -0
- package/docs/PassportAuthAdminUserModifyPermissionResponse.md +24 -0
- package/docs/PassportAuthChangePasswordRequest.md +26 -0
- package/docs/PassportAuthChangePasswordResponse.md +26 -0
- package/docs/{AuthSignInEmailRequest.md → PassportAuthDeleteAllRequest.md} +9 -7
- package/docs/PassportAuthDeleteAllResponse.md +22 -0
- package/docs/{AuthChangePasswordRequest.md → PassportAuthEnterpriseChangePasswordRequest.md} +3 -3
- package/docs/{AuthAdminChangePasswordResponse.md → PassportAuthEnterpriseChangePasswordResponse.md} +4 -4
- package/docs/PassportAuthEnterpriseChangePhoneRequest.md +24 -0
- package/docs/PassportAuthEnterpriseChangePhoneResponse.md +22 -0
- package/docs/{AuthSignUpEmailRequest.md → PassportAuthEnterpriseDeleteRequest.md} +9 -13
- package/docs/PassportAuthEnterpriseDeleteResponse.md +22 -0
- package/docs/PassportAuthEnterpriseGetSessionResponse.md +24 -0
- package/docs/PassportAuthEnterpriseInfoGetResponse.md +24 -0
- package/docs/PassportAuthEnterpriseListSessionsResponse.md +24 -0
- package/docs/PassportAuthEnterpriseMaterialUploadRequest.md +26 -0
- package/docs/{AuthAdminSignOutResponse.md → PassportAuthEnterpriseMaterialUploadResponse.md} +3 -5
- package/docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md +24 -0
- package/docs/PassportAuthEnterpriseRPCServiceApi.md +61 -0
- package/docs/PassportAuthEnterpriseRefreshTokenRequest.md +20 -0
- package/docs/PassportAuthEnterpriseRefreshTokenResponse.md +24 -0
- package/docs/PassportAuthEnterpriseResetPasswordRequest.md +22 -0
- package/docs/PassportAuthEnterpriseResetPasswordResponse.md +22 -0
- package/docs/PassportAuthEnterpriseRevokeOtherSessionsResponse.md +22 -0
- package/docs/PassportAuthEnterpriseRevokeSessionRequest.md +20 -0
- package/docs/PassportAuthEnterpriseRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthEnterpriseRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthEnterpriseServiceApi.md +1170 -0
- package/docs/PassportAuthEnterpriseSignOutRequest.md +20 -0
- package/docs/PassportAuthEnterpriseSignOutResponse.md +22 -0
- package/docs/PassportAuthEnterpriseUpdateInfoRequest.md +22 -0
- package/docs/PassportAuthEnterpriseUpdateInfoResponse.md +24 -0
- package/docs/{AuthSendVerificationEmailRequest.md → PassportAuthEnterpriseVerifyEmailRequest.md} +5 -3
- package/docs/PassportAuthEnterpriseVerifyEmailResponse.md +22 -0
- package/docs/PassportAuthEnterpriseVerifyPhoneResponse.md +22 -0
- package/docs/PassportAuthInfoGetResponse.md +26 -0
- package/docs/{AuthSignInSocialRequest.md → PassportAuthLinkSocialRequest.md} +6 -4
- package/docs/{AuthSignUpEmailResponse.md → PassportAuthLinkSocialResponse.md} +5 -7
- package/docs/PassportAuthListMethodsResponse.md +24 -0
- package/docs/{AuthListSessionsResponse.md → PassportAuthListSessionsResponse.md} +4 -4
- package/docs/PassportAuthListSocialsResponse.md +24 -0
- package/docs/PassportAuthRefreshSessionTokenRequest.md +20 -0
- package/docs/PassportAuthRefreshSessionTokenResponse.md +24 -0
- package/docs/PassportAuthResetPasswordRequest.md +24 -0
- package/docs/PassportAuthResetPasswordResponse.md +22 -0
- package/docs/PassportAuthRevokeOtherSessionsRequest.md +20 -0
- package/docs/{AuthDeleteUserResponse.md → PassportAuthRevokeOtherSessionsResponse.md} +3 -3
- package/docs/PassportAuthRevokeSessionRequest.md +20 -0
- package/docs/PassportAuthRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthRevokeSessionsRequest.md +20 -0
- package/docs/PassportAuthRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthSendVerificationEmailRequest.md +26 -0
- package/docs/PassportAuthSendVerificationEmailResponse.md +22 -0
- package/docs/PassportAuthSendVerificationPhoneRequest.md +26 -0
- package/docs/PassportAuthSendVerificationPhoneResponse.md +22 -0
- package/docs/{AuthRefreshTokenRequest.md → PassportAuthSocialGetAccessTokenRequest.md} +3 -3
- package/docs/{AuthRefreshTokenResponse.md → PassportAuthSocialGetAccessTokenResponse.md} +3 -3
- package/docs/{AuthGetAccessTokenRequest.md → PassportAuthSocialRefreshTokenRequest.md} +3 -3
- package/docs/{AuthGetAccessTokenResponse.md → PassportAuthSocialRefreshTokenResponse.md} +3 -3
- package/docs/{AuthUnlinkAccountRequest.md → PassportAuthUnlinkSocialRequest.md} +5 -3
- package/docs/PassportAuthUnlinkSocialResponse.md +22 -0
- package/docs/{AuthChangeEmailRequest.md → PassportAuthUserChangeEmailRequest.md} +5 -3
- package/docs/PassportAuthUserChangeEmailResponse.md +24 -0
- package/docs/PassportAuthUserChangePhoneRequest.md +26 -0
- package/docs/PassportAuthUserChangePhoneResponse.md +24 -0
- package/docs/PassportAuthUserDeleteRequest.md +30 -0
- package/docs/PassportAuthUserDeleteResponse.md +22 -0
- package/docs/PassportAuthUserGetSessionResponse.md +24 -0
- package/docs/{AuthRevokeOtherSessionsResponse.md → PassportAuthUserInfoGetResponse.md} +5 -5
- package/docs/PassportAuthUserRPCServiceApi.md +223 -0
- package/docs/PassportAuthUserServiceApi.md +2000 -0
- package/docs/PassportAuthUserSignOutRequest.md +22 -0
- package/docs/PassportAuthUserSignOutResponse.md +22 -0
- package/docs/PassportAuthUserUpdateInfoRequest.md +28 -0
- package/docs/PassportAuthUserUpdateInfoResponse.md +24 -0
- package/docs/{AuthUpdateUserRequest.md → PassportAuthUserUpdatePassportRequest.md} +5 -5
- package/docs/PassportAuthUserUpdatePassportResponse.md +24 -0
- package/docs/PassportAuthUserVerifyEmailRequest.md +26 -0
- package/docs/PassportAuthUserVerifyEmailResponse.md +22 -0
- package/docs/PassportAuthUserVerifyPhoneRequest.md +24 -0
- package/docs/PassportAuthUserVerifyPhoneResponse.md +22 -0
- package/docs/PassportEnterprisePasswordResetRequest.md +24 -0
- package/docs/{AuthSignInEmailResponse.md → PassportEnterprisePasswordResetResponse.md} +5 -9
- package/docs/PassportEnterpriseSendVerificationEmailRequest.md +24 -0
- package/docs/PassportEnterpriseSendVerificationEmailResponse.md +22 -0
- package/docs/PassportEnterpriseSendVerificationPhoneRequest.md +24 -0
- package/docs/PassportEnterpriseSendVerificationPhoneResponse.md +22 -0
- package/docs/PassportEnterpriseSignInEmailRequest.md +30 -0
- package/docs/{AuthOAuth2CallbackResponse.md → PassportEnterpriseSignInEmailResponse.md} +8 -10
- package/docs/PassportEnterpriseSignInPhoneRequest.md +24 -0
- package/docs/PassportEnterpriseSignInPhoneResponse.md +26 -0
- package/docs/PassportEnterpriseSignUpEmailRequest.md +34 -0
- package/docs/PassportEnterpriseSignUpEmailResponse.md +30 -0
- package/docs/PassportEnterpriseTokenAuthRequest.md +20 -0
- package/docs/PassportEnterpriseTokenAuthResponse.md +28 -0
- package/docs/PassportSendVerificationEmailRequest.md +26 -0
- package/docs/PassportSendVerificationEmailResponse.md +22 -0
- package/docs/PassportSendVerificationPhoneRequest.md +26 -0
- package/docs/PassportSendVerificationPhoneResponse.md +22 -0
- package/docs/PassportUserInfoBatchGetRequest.md +24 -0
- package/docs/{AuthRequestPasswordResetResponse.md → PassportUserInfoBatchGetResponse.md} +5 -5
- package/docs/PassportUserInfoGetRequest.md +24 -0
- package/docs/{AuthAdminRevokeSessionsResponse.md → PassportUserInfoGetResponse.md} +5 -5
- package/docs/PassportUserOAuthCallbackResponse.md +36 -0
- package/docs/PassportUserPasswordForgetRequest.md +24 -0
- package/docs/PassportUserPasswordForgetResponse.md +22 -0
- package/docs/PassportUserPasswordResetRequest.md +30 -0
- package/docs/{AuthSignInSocialResponse.md → PassportUserPasswordResetResponse.md} +5 -9
- package/docs/PassportUserPasswordResetTokenVerifyRequest.md +22 -0
- package/docs/{AuthListAccountsResponse.md → PassportUserPasswordResetTokenVerifyResponse.md} +7 -5
- package/docs/PassportUserSignInEmailRequest.md +32 -0
- package/docs/PassportUserSignInEmailResponse.md +32 -0
- package/docs/PassportUserSignInPhoneRequest.md +26 -0
- package/docs/PassportUserSignInPhoneResponse.md +28 -0
- package/docs/{AuthLinkSocialRequest.md → PassportUserSignInSocialRequest.md} +8 -6
- package/docs/PassportUserSignInSocialResponse.md +32 -0
- package/docs/PassportUserSignUpEmailRequest.md +36 -0
- package/docs/PassportUserSignUpEmailResponse.md +32 -0
- package/docs/{AuthRevokeSessionRequest.md → PassportUserTokenAuthRequest.md} +3 -3
- package/docs/PassportUserTokenAuthResponse.md +28 -0
- package/docs/PassportUserUpdateInfoRequest.md +30 -0
- package/docs/PassportUserUpdateInfoResponse.md +22 -0
- package/docs/PricingConditions.md +7 -7
- package/docs/PricingRules.md +10 -6
- package/docs/{AWSAuth.md → ProviderAWSAuth.md} +4 -3
- package/docs/ProviderAdminServiceApi.md +305 -53
- package/docs/ProviderAuth.md +6 -6
- package/docs/ProviderGCPAuth.md +27 -0
- package/docs/ProviderModelAdminServiceApi.md +366 -57
- package/docs/QRCodeAdminServiceApi.md +286 -0
- package/docs/QRCodeCreateRequest.md +37 -0
- package/docs/QRCodeCreateResponse.md +25 -0
- package/docs/QRCodeDeleteResponse.md +23 -0
- package/docs/QRCodeGetResponse.md +25 -0
- package/docs/QRCodeHistoryItem.md +29 -0
- package/docs/QRCodeInfo.md +59 -0
- package/docs/QRCodeListResponse.md +27 -0
- package/docs/QRCodeSnapshot.md +37 -0
- package/docs/QRCodeUpdateRequest.md +39 -0
- package/docs/QRCodeUpdateResponse.md +25 -0
- package/docs/QRCodeWithHistory.md +23 -0
- package/docs/ReasoningTokensPricing.md +21 -0
- package/docs/RemoteConfigAdminServiceApi.md +21 -3
- package/docs/RemoteConfigItemGetResponse.md +2 -2
- package/docs/RemoteConfigItemUpdateRequest.md +6 -0
- package/docs/RemoteConfigItemUpdateResponse.md +2 -2
- package/docs/RequestPricing.md +4 -4
- package/docs/TextTokenInputPricing.md +5 -5
- package/docs/TextTokenOutputPricing.md +4 -4
- package/docs/TextTokenPricing.md +3 -3
- package/docs/TokenTier.md +5 -5
- package/docs/UserAPIKey.md +15 -15
- package/docs/UserAPIKeyCreateRequest.md +9 -9
- package/docs/UserAPIKeyCreateResponse.md +4 -4
- package/docs/UserAPIKeyDeleteResponse.md +3 -3
- package/docs/UserAPIKeyGetResponse.md +4 -4
- package/docs/UserAPIKeyListResponse.md +5 -5
- package/docs/UserAPIKeyServiceApi.md +26 -27
- package/docs/UserAPIKeyUpdateResponse.md +3 -3
- package/docs/UserBalanceChangeResponse.md +2 -2
- package/docs/UserBalanceEditResponse.md +2 -2
- package/docs/UserBalanceListResponse.md +2 -2
- package/docs/UserBalanceServiceApi.md +4 -4
- package/docs/UserBasic.md +42 -0
- package/docs/UserExtendInfo.md +20 -0
- package/docs/UserInfoQueryOptions.md +28 -0
- package/docs/UserLabelListResponse.md +1 -1
- package/docs/UserLabelPairChangeResponse.md +1 -1
- package/docs/UserMeInfo.md +3 -3
- package/docs/UserModelActivitySummary.md +31 -0
- package/docs/UserModelHourActivity.md +28 -0
- package/docs/UserModelHourlyUsages.md +20 -0
- package/docs/UserModelServiceApi.md +124 -11
- package/docs/UserPaymentInfo.md +20 -0
- package/docs/UserPortalDashboard.md +25 -0
- package/docs/{AuthAdminRevokeOtherSessionsResponse.md → UserPortalDashboardResponse.md} +5 -5
- package/docs/UserPortalServiceApi.md +109 -0
- package/docs/UserPreferences.md +22 -0
- package/docs/VersionedAPISchema.md +6 -6
- package/docs/VideoPricing.md +8 -8
- package/docs/WebSearchPricing.md +31 -0
- package/package.json +1 -1
- package/docs/AIModel.md +0 -45
- package/docs/AIModelArchitecture.md +0 -25
- package/docs/AIModelCreateRequest.md +0 -35
- package/docs/AIModelDeleteRequest.md +0 -21
- package/docs/AIModelDisableRequest.md +0 -21
- package/docs/AIModelMeta.md +0 -25
- package/docs/AIModelProviderConfigItem.md +0 -29
- package/docs/AIModelPublishRequest.md +0 -21
- package/docs/AIModelUpdateRequest.md +0 -37
- package/docs/Auth2Account.md +0 -33
- package/docs/Auth2AdminServiceApi.md +0 -469
- package/docs/Auth2AdminSession.md +0 -35
- package/docs/Auth2Session.md +0 -35
- package/docs/Auth2User.md +0 -33
- package/docs/Auth2UserServiceApi.md +0 -1261
- package/docs/AuthChangeEmailResponse.md +0 -26
- package/docs/AuthRevokeSessionsResponse.md +0 -24
- package/docs/AuthVerifyEmailResponse.md +0 -24
- package/docs/GCPAuth.md +0 -27
- package/docs/Provider.md +0 -37
- package/docs/ProviderCreateRequest.md +0 -29
- package/docs/ProviderCreateResponse.md +0 -25
- package/docs/ProviderListResponse.md +0 -27
- package/docs/ProviderModel.md +0 -37
- package/docs/ProviderModelCreateRequest.md +0 -29
- package/docs/ProviderModelCreateResponse.md +0 -25
- package/docs/ProviderModelGetResponse.md +0 -25
- package/docs/ProviderModelPayload.md +0 -23
- package/docs/ProviderModelUpdateRequest.md +0 -31
- package/docs/ProviderModelUpdateResponse.md +0 -25
- package/docs/ProviderPayload.md +0 -21
- package/docs/ProviderUpdateRequest.md +0 -31
- package/docs/ProviderUpdateResponse.md +0 -25
- package/docs/UserAPIKeyDeleteRequest.md +0 -21
- package/docs/UserPoralServiceApi.md +0 -52
package/docs/AuthUser.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# AuthUser
|
|
2
|
+
|
|
3
|
+
用户信息
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**app_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**aid** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**register_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**email_verified_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**phone_verified_at** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { AuthUser } from '@cherryin/api-client';
|
|
24
|
+
|
|
25
|
+
const instance: AuthUser = {
|
|
26
|
+
uid,
|
|
27
|
+
app_id,
|
|
28
|
+
aid,
|
|
29
|
+
name,
|
|
30
|
+
email,
|
|
31
|
+
phone,
|
|
32
|
+
avatar_url,
|
|
33
|
+
register_at,
|
|
34
|
+
email_verified_at,
|
|
35
|
+
phone_verified_at,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[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,39 @@
|
|
|
1
|
+
# AuthUserMethod
|
|
2
|
+
|
|
3
|
+
关联账号信息 (映射 db.UserAuthMethod)
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**app_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**aid** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**provider_id** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**oauth_account_id** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**oauth_scopes** | **Array<string>** | | [optional] [default to undefined]
|
|
17
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { AuthUserMethod } from '@cherryin/api-client';
|
|
24
|
+
|
|
25
|
+
const instance: AuthUserMethod = {
|
|
26
|
+
app_id,
|
|
27
|
+
aid,
|
|
28
|
+
uid,
|
|
29
|
+
provider_id,
|
|
30
|
+
email,
|
|
31
|
+
phone,
|
|
32
|
+
oauth_account_id,
|
|
33
|
+
oauth_scopes,
|
|
34
|
+
created_at,
|
|
35
|
+
updated_at,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[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,41 @@
|
|
|
1
|
+
# AuthUserSession
|
|
2
|
+
|
|
3
|
+
会话信息 (映射 db.UserSession)
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**session_token** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**refresh_token** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**session_expires_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**refresh_expires_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**app_id** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**aid** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**ip** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**user_agent** | **string** | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { AuthUserSession } from '@cherryin/api-client';
|
|
25
|
+
|
|
26
|
+
const instance: AuthUserSession = {
|
|
27
|
+
session_token,
|
|
28
|
+
refresh_token,
|
|
29
|
+
session_expires_at,
|
|
30
|
+
refresh_expires_at,
|
|
31
|
+
app_id,
|
|
32
|
+
aid,
|
|
33
|
+
uid,
|
|
34
|
+
created_at,
|
|
35
|
+
updated_at,
|
|
36
|
+
ip,
|
|
37
|
+
user_agent,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[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
|
+
# CodeExecutionPricing
|
|
2
|
+
|
|
3
|
+
CodeExecutionPricing 代码执行计费
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**per_hour** | **string** | per_hour 每小时费用 | [optional] [default to undefined]
|
|
11
|
+
**free_hours_daily** | **string** | free_hours_daily 每日免费小时数 | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CodeExecutionPricing } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: CodeExecutionPricing = {
|
|
19
|
+
id,
|
|
20
|
+
per_hour,
|
|
21
|
+
free_hours_daily,
|
|
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)
|
package/docs/ConfigItem.md
CHANGED
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**service** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**key** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**env** | **string** | | [optional] [default to undefined]
|
|
10
12
|
**values** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
11
13
|
**payload** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**deleted_at** | **string** | | [optional] [default to undefined]
|
|
15
17
|
|
|
16
18
|
## Example
|
|
17
19
|
|
|
@@ -20,12 +22,14 @@ import { ConfigItem } from '@cherryin/api-client';
|
|
|
20
22
|
|
|
21
23
|
const instance: ConfigItem = {
|
|
22
24
|
id,
|
|
25
|
+
service,
|
|
23
26
|
key,
|
|
27
|
+
env,
|
|
24
28
|
values,
|
|
25
29
|
payload,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
created_at,
|
|
31
|
+
updated_at,
|
|
32
|
+
deleted_at,
|
|
29
33
|
};
|
|
30
34
|
```
|
|
31
35
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**discount** | [**DiscountInfo**](DiscountInfo.md) | | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**discount** | [**Array<DiscountInfo>**](DiscountInfo.md) | | [optional] [default to undefined]
|
|
11
11
|
**total** | **string** | | [optional] [default to undefined]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**discount** | [**DiscountInfo**](DiscountInfo.md) | 更新后的 Discount 信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# FeatureCostPricing
|
|
2
2
|
|
|
3
|
-
FeatureCostPricing
|
|
3
|
+
FeatureCostPricing 特殊功能计费(旧版)
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 价格配置ID
|
|
10
|
-
**name** | **string** | name 功能名称
|
|
11
|
-
**per_cost** | **string** | per_cost 每次使用费用
|
|
12
|
-
**extra** | **{ [key: string]: string; }** | extra 扩展规则
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name 功能名称 | [optional] [default to undefined]
|
|
11
|
+
**per_cost** | **string** | per_cost 每次使用费用 | [optional] [default to undefined]
|
|
12
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展规则 | [optional] [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# FeaturePricing
|
|
2
|
+
|
|
3
|
+
FeaturePricing 特殊功能计费
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**web_search** | [**WebSearchPricing**](WebSearchPricing.md) | web_search 网页搜索计费 | [optional] [default to undefined]
|
|
10
|
+
**code_execution** | [**CodeExecutionPricing**](CodeExecutionPricing.md) | code_execution 代码执行计费 | [optional] [default to undefined]
|
|
11
|
+
**reasoning_tokens** | [**ReasoningTokensPricing**](ReasoningTokensPricing.md) | reasoning_tokens 推理Token计费 | [optional] [default to undefined]
|
|
12
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展功能 | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { FeaturePricing } from '@cherryin/api-client';
|
|
18
|
+
|
|
19
|
+
const instance: FeaturePricing = {
|
|
20
|
+
web_search,
|
|
21
|
+
code_execution,
|
|
22
|
+
reasoning_tokens,
|
|
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)
|
package/docs/FrontAIModel.md
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
# FrontAIModel
|
|
2
2
|
|
|
3
|
-
FrontAIModel 代表面向终端用户的 AI 模型配置(符合 OpenAI API 格式)
|
|
3
|
+
FrontAIModel 代表面向终端用户的 AI 模型配置(符合 OpenAI API 格式) 注意,这是最经典、最精简的模型列表,一般不会给很多数据
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段
|
|
9
|
+
**id** | **string** | id 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段 | [optional] [default to undefined]
|
|
10
10
|
**name** | **string** | name 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段, Gemini 兼容 | [optional] [default to undefined]
|
|
11
|
-
**object** | **string** | object 对象类型,固定为 \"model\"(OpenAI API 格式)
|
|
12
|
-
**created** | **string** | created_at 创建时间戳(Unix 时间戳) 对应 OpenAI API 的 \"created\" 字段
|
|
13
|
-
**updated** | **string** | updated_at 更新时间戳(Unix 时间戳)
|
|
14
|
-
**display_name** | **string** | display_name 模型的显示名称,例如 \"GPT-4\", \"Claude 3 Opus\"
|
|
15
|
-
**
|
|
11
|
+
**object** | **string** | object 对象类型,固定为 \"model\"(OpenAI API 格式) | [optional] [default to undefined]
|
|
12
|
+
**created** | **string** | created_at 创建时间戳(Unix 时间戳) 对应 OpenAI API 的 \"created\" 字段 | [optional] [default to undefined]
|
|
13
|
+
**updated** | **string** | updated_at 更新时间戳(Unix 时间戳) | [optional] [default to undefined]
|
|
14
|
+
**display_name** | **string** | display_name 模型的显示名称,例如 \"GPT-4\", \"Claude 3 Opus\" | [optional] [default to undefined]
|
|
15
|
+
**baseModelID** | **string** | gemini 接口兼容的基础模型 ID,而且是必须字段,例如 \"gemini-1.5-pro\" json tag 也需要遵循 gemini 命名规范 - camelCase | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | description 模型描述 | [optional] [default to undefined]
|
|
16
17
|
**status** | **number** | status 模型状态 Model status 1: 草稿 (Draft) 2: 已发布 (Published) 3: 已禁用 (Disabled) | [optional] [default to undefined]
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
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]
|
|
18
|
+
**modalities** | [**ModelModalities**](ModelModalities.md) | modalities 模态信息 | [optional] [default to undefined]
|
|
19
|
+
**limits** | [**ModelLimits**](ModelLimits.md) | limits 模型限制 | [optional] [default to undefined]
|
|
20
|
+
**provider_id** | **string** | 关联的供应商 id (一般是 FrontendProviderInfo.id) | [optional] [default to undefined]
|
|
22
21
|
|
|
23
22
|
## Example
|
|
24
23
|
|
|
@@ -32,13 +31,12 @@ const instance: FrontAIModel = {
|
|
|
32
31
|
created,
|
|
33
32
|
updated,
|
|
34
33
|
display_name,
|
|
34
|
+
baseModelID,
|
|
35
35
|
description,
|
|
36
36
|
status,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
internal_id,
|
|
41
|
-
baseModelID,
|
|
37
|
+
modalities,
|
|
38
|
+
limits,
|
|
39
|
+
provider_id,
|
|
42
40
|
};
|
|
43
41
|
```
|
|
44
42
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# FrontendModelExtraInfo
|
|
2
|
+
|
|
3
|
+
FrontendModelExtraInfo 模型额外信息 Model extra information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**tool_use_system_prompt_tokens** | **number** | tool_use_system_prompt_tokens 工具使用系统提示词 token 数 Tool use system prompt tokens count | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { FrontendModelExtraInfo } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: FrontendModelExtraInfo = {
|
|
17
|
+
tool_use_system_prompt_tokens,
|
|
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,57 @@
|
|
|
1
|
+
# FrontendModelPricing
|
|
2
|
+
|
|
3
|
+
FrontendModelPricing 模型成本 Model cost 所有价格字段使用 string 类型避免浮点精度损失
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**free** | **boolean** | free 是否免费 | [optional] [default to undefined]
|
|
10
|
+
**input_cost_per_token** | **string** | input_cost_per_token 输入每 token 成本 | [optional] [default to undefined]
|
|
11
|
+
**input_cost_per_token_above_128k_tokens** | **string** | input_cost_per_token_above_128k_tokens 超过 128k token 时的输入每 token 成本 | [optional] [default to undefined]
|
|
12
|
+
**input_cost_per_token_above_200k_tokens** | **string** | input_cost_per_token_above_200k_tokens 超过 200k token 时的输入每 token 成本 | [optional] [default to undefined]
|
|
13
|
+
**input_cost_per_token_batches** | **string** | input_cost_per_token_batches 批量输入每 token 成本 | [optional] [default to undefined]
|
|
14
|
+
**input_cost_per_audio_token** | **string** | input_cost_per_audio_token 输入每音频 token 成本 | [optional] [default to undefined]
|
|
15
|
+
**input_cost_per_image** | **string** | input_cost_per_image 输入每图片成本 | [optional] [default to undefined]
|
|
16
|
+
**input_cost_per_pixel** | **string** | input_cost_per_pixel 输入每像素成本 | [optional] [default to undefined]
|
|
17
|
+
**output_cost_per_token** | **string** | output_cost_per_token 输出每 token 成本 | [optional] [default to undefined]
|
|
18
|
+
**output_cost_per_token_above_200k_tokens** | **string** | output_cost_per_token_above_200k_tokens 超过 200k token 时的输出每 token 成本 | [optional] [default to undefined]
|
|
19
|
+
**output_cost_per_token_above_128k_tokens** | **string** | output_cost_per_token_above_128k_tokens 超过 128k token 时的输出每 token 成本 | [optional] [default to undefined]
|
|
20
|
+
**output_cost_per_token_batches** | **string** | output_cost_per_token_batches 批量输出每 token 成本 | [optional] [default to undefined]
|
|
21
|
+
**output_cost_per_image** | **string** | output_cost_per_image 输出每图片成本 | [optional] [default to undefined]
|
|
22
|
+
**output_cost_per_pixel** | **string** | output_cost_per_pixel 输出每像素成本 | [optional] [default to undefined]
|
|
23
|
+
**cache_read_input_token_cost** | **string** | cache_read_input_token_cost 缓存读取输入 token 成本 | [optional] [default to undefined]
|
|
24
|
+
**cache_read_input_token_cost_above_200k_tokens** | **string** | cache_read_input_token_cost_above_200k_tokens 超过 200k token 时的缓存读取输入 token 成本 | [optional] [default to undefined]
|
|
25
|
+
**cache_creation_input_token_cost** | **string** | cache_creation_input_token_cost 缓存创建输入 token 成本 | [optional] [default to undefined]
|
|
26
|
+
**cache_creation_input_token_cost_above_200k_tokens** | **string** | cache_creation_input_token_cost_above_200k_tokens 超过 200k token 时的缓存创建输入 token 成本 | [optional] [default to undefined]
|
|
27
|
+
**search_context_cost_per_query** | [**FrontendSearchContextCost**](FrontendSearchContextCost.md) | search_context_cost_per_query 搜索上下文成本 | [optional] [default to undefined]
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { FrontendModelPricing } from '@cherryin/api-client';
|
|
33
|
+
|
|
34
|
+
const instance: FrontendModelPricing = {
|
|
35
|
+
free,
|
|
36
|
+
input_cost_per_token,
|
|
37
|
+
input_cost_per_token_above_128k_tokens,
|
|
38
|
+
input_cost_per_token_above_200k_tokens,
|
|
39
|
+
input_cost_per_token_batches,
|
|
40
|
+
input_cost_per_audio_token,
|
|
41
|
+
input_cost_per_image,
|
|
42
|
+
input_cost_per_pixel,
|
|
43
|
+
output_cost_per_token,
|
|
44
|
+
output_cost_per_token_above_200k_tokens,
|
|
45
|
+
output_cost_per_token_above_128k_tokens,
|
|
46
|
+
output_cost_per_token_batches,
|
|
47
|
+
output_cost_per_image,
|
|
48
|
+
output_cost_per_pixel,
|
|
49
|
+
cache_read_input_token_cost,
|
|
50
|
+
cache_read_input_token_cost_above_200k_tokens,
|
|
51
|
+
cache_creation_input_token_cost,
|
|
52
|
+
cache_creation_input_token_cost_above_200k_tokens,
|
|
53
|
+
search_context_cost_per_query,
|
|
54
|
+
};
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
[[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,29 @@
|
|
|
1
|
+
# FrontendModelsResponse
|
|
2
|
+
|
|
3
|
+
FrontendModelsResponse 前端模型列表响应
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**data** | [**Array<FrontendProviderModel>**](FrontendProviderModel.md) | data 模型列表 | [optional] [default to undefined]
|
|
12
|
+
**total** | **string** | total 总数量(分页时返回) | [optional] [default to undefined]
|
|
13
|
+
**has_more** | **boolean** | has_more 是否还有更多数据 | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { FrontendModelsResponse } from '@cherryin/api-client';
|
|
19
|
+
|
|
20
|
+
const instance: FrontendModelsResponse = {
|
|
21
|
+
code,
|
|
22
|
+
message,
|
|
23
|
+
data,
|
|
24
|
+
total,
|
|
25
|
+
has_more,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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
|
+
# FrontendProviderInfo
|
|
2
|
+
|
|
3
|
+
FrontendProviderInfo 供应商信息 Provider information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | id 供应商 ID | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name 供应商名称 | [optional] [default to undefined]
|
|
11
|
+
**env** | **Array<string>** | env 供应商使用的环境变量 | [optional] [default to undefined]
|
|
12
|
+
**npm** | **string** | npm 供应商提供的 NPM 包 | [optional] [default to undefined]
|
|
13
|
+
**api** | **string** | api 供应商的 API BaseURL | [optional] [default to undefined]
|
|
14
|
+
**doc** | **string** | doc 供应商官方文档地址 | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { FrontendProviderInfo } from '@cherryin/api-client';
|
|
20
|
+
|
|
21
|
+
const instance: FrontendProviderInfo = {
|
|
22
|
+
id,
|
|
23
|
+
name,
|
|
24
|
+
env,
|
|
25
|
+
npm,
|
|
26
|
+
api,
|
|
27
|
+
doc,
|
|
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,55 @@
|
|
|
1
|
+
# FrontendProviderModel
|
|
2
|
+
|
|
3
|
+
FrontendProviderModel 供应商模型信息
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | id 模型 ID | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name 模型名称 | [optional] [default to undefined]
|
|
11
|
+
**family** | **string** | family 模型家族 | [optional] [default to undefined]
|
|
12
|
+
**source** | **string** | source 模型信息源 | [optional] [default to undefined]
|
|
13
|
+
**model_card** | **string** | model_card 模型卡片 URL | [optional] [default to undefined]
|
|
14
|
+
**temperature** | **boolean** | temperature 是否支持温度参数 | [optional] [default to undefined]
|
|
15
|
+
**knowledge** | **string** | knowledge 知识截止日期 | [optional] [default to undefined]
|
|
16
|
+
**release_date** | **string** | release_date 发布日期 | [optional] [default to undefined]
|
|
17
|
+
**last_updated** | **string** | last_updated 最后更新日期 | [optional] [default to undefined]
|
|
18
|
+
**open_weights** | **boolean** | open_weights 是否开源权重 | [optional] [default to undefined]
|
|
19
|
+
**deprecation_date** | **string** | deprecation_date 弃用日期 | [optional] [default to undefined]
|
|
20
|
+
**context_length** | **string** | 最大上下文长度(即 limits.max_input_tokens + max_output_tokens) | [optional] [default to undefined]
|
|
21
|
+
**modalities** | [**ModelModalities**](ModelModalities.md) | modalities 模态信息 | [optional] [default to undefined]
|
|
22
|
+
**limits** | [**ModelLimits**](ModelLimits.md) | limits 模型限制 | [optional] [default to undefined]
|
|
23
|
+
**capabilities** | [**ModelCapabilities**](ModelCapabilities.md) | capabilities 模型能力 | [optional] [default to undefined]
|
|
24
|
+
**pricing** | [**FrontendModelPricing**](FrontendModelPricing.md) | pricing 模型成本 | [optional] [default to undefined]
|
|
25
|
+
**extra_info** | [**FrontendModelExtraInfo**](FrontendModelExtraInfo.md) | extra_info 额外信息 | [optional] [default to undefined]
|
|
26
|
+
**provider_id** | **string** | 关联的供应商 id (一般是 FrontendProviderInfo.id) | [optional] [default to undefined]
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { FrontendProviderModel } from '@cherryin/api-client';
|
|
32
|
+
|
|
33
|
+
const instance: FrontendProviderModel = {
|
|
34
|
+
id,
|
|
35
|
+
name,
|
|
36
|
+
family,
|
|
37
|
+
source,
|
|
38
|
+
model_card,
|
|
39
|
+
temperature,
|
|
40
|
+
knowledge,
|
|
41
|
+
release_date,
|
|
42
|
+
last_updated,
|
|
43
|
+
open_weights,
|
|
44
|
+
deprecation_date,
|
|
45
|
+
context_length,
|
|
46
|
+
modalities,
|
|
47
|
+
limits,
|
|
48
|
+
capabilities,
|
|
49
|
+
pricing,
|
|
50
|
+
extra_info,
|
|
51
|
+
provider_id,
|
|
52
|
+
};
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
[[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,29 @@
|
|
|
1
|
+
# FrontendProvidersResponse
|
|
2
|
+
|
|
3
|
+
FrontendProvidersResponse 前端供应商列表响应
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**data** | [**Array<FrontendProviderInfo>**](FrontendProviderInfo.md) | data 供应商列表 | [optional] [default to undefined]
|
|
12
|
+
**total** | **string** | total 总数量(分页时返回) | [optional] [default to undefined]
|
|
13
|
+
**has_more** | **boolean** | has_more 是否还有更多数据 | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { FrontendProvidersResponse } from '@cherryin/api-client';
|
|
19
|
+
|
|
20
|
+
const instance: FrontendProvidersResponse = {
|
|
21
|
+
code,
|
|
22
|
+
message,
|
|
23
|
+
data,
|
|
24
|
+
total,
|
|
25
|
+
has_more,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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
|
+
# FrontendSearchContextCost
|
|
2
|
+
|
|
3
|
+
FrontendSearchContextCost 搜索上下文成本 所有价格字段使用 string 类型避免浮点精度损失
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**search_context_size_high** | **string** | search_context_size_high 高搜索上下文大小成本 | [optional] [default to undefined]
|
|
10
|
+
**search_context_size_low** | **string** | search_context_size_low 低搜索上下文大小成本 | [optional] [default to undefined]
|
|
11
|
+
**search_context_size_medium** | **string** | search_context_size_medium 中搜索上下文大小成本 | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { FrontendSearchContextCost } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: FrontendSearchContextCost = {
|
|
19
|
+
search_context_size_high,
|
|
20
|
+
search_context_size_low,
|
|
21
|
+
search_context_size_medium,
|
|
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)
|
package/docs/ImagePricing.md
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
# ImagePricing
|
|
2
2
|
|
|
3
|
-
ImagePricing 图片计费
|
|
3
|
+
ImagePricing 图片计费
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 价格配置ID
|
|
10
|
-
**mode** | **string** | mode 计费模式: \"per_item\", \"per_token\", \"hybrid\"
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**mode** | **string** | mode 计费模式: \"per_item\", \"per_token\", \"per_pixel\", \"hybrid\" | [optional] [default to undefined]
|
|
11
|
+
**input_per_item** | **string** | input_per_item 输入每条费用 | [optional] [default to undefined]
|
|
12
|
+
**input_per_token** | **string** | input_per_token 输入每Token费用 | [optional] [default to undefined]
|
|
13
|
+
**input_per_pixel** | **string** | input_per_pixel 输入每像素费用 | [optional] [default to undefined]
|
|
14
|
+
**output_per_item** | **string** | output_per_item 输出每条费用 | [optional] [default to undefined]
|
|
15
|
+
**output_per_token** | **string** | output_per_token 输出每Token费用 | [optional] [default to undefined]
|
|
16
|
+
**output_per_pixel** | **string** | output_per_pixel 输出每像素费用 | [optional] [default to undefined]
|
|
17
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展计算 | [optional] [default to undefined]
|
|
15
18
|
|
|
16
19
|
## Example
|
|
17
20
|
|
|
@@ -21,9 +24,12 @@ import { ImagePricing } from '@cherryin/api-client';
|
|
|
21
24
|
const instance: ImagePricing = {
|
|
22
25
|
id,
|
|
23
26
|
mode,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
input_per_item,
|
|
28
|
+
input_per_token,
|
|
29
|
+
input_per_pixel,
|
|
30
|
+
output_per_item,
|
|
31
|
+
output_per_token,
|
|
32
|
+
output_per_pixel,
|
|
27
33
|
extra,
|
|
28
34
|
};
|
|
29
35
|
```
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**data** | [**Label**](Label.md) | 创建的 Discount 信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|