@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
|
@@ -182,8 +182,8 @@ import {
|
|
|
182
182
|
const configuration = new Configuration();
|
|
183
183
|
const apiInstance = new UserBalanceServiceApi(configuration);
|
|
184
184
|
|
|
185
|
-
let page: number; //page 页码,从 1 开始
|
|
186
|
-
let pageSize: number; //page_size 每页数量
|
|
185
|
+
let page: number; //page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
186
|
+
let pageSize: number; //page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
|
|
187
187
|
let uidList: Array<string>; //uid_list 用户 ID 列表,空表示不按用户 ID 过滤 (optional) (default to undefined)
|
|
188
188
|
|
|
189
189
|
const { status, data } = await apiInstance.userBalanceServiceUserBalanceList(
|
|
@@ -197,8 +197,8 @@ const { status, data } = await apiInstance.userBalanceServiceUserBalanceList(
|
|
|
197
197
|
|
|
198
198
|
|Name | Type | Description | Notes|
|
|
199
199
|
|------------- | ------------- | ------------- | -------------|
|
|
200
|
-
| **page** | [**number**] | page 页码,从 1 开始
|
|
201
|
-
| **pageSize** | [**number**] | page_size 每页数量
|
|
200
|
+
| **page** | [**number**] | page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
201
|
+
| **pageSize** | [**number**] | page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
202
202
|
| **uidList** | **Array<string>** | uid_list 用户 ID 列表,空表示不按用户 ID 过滤 | (optional) defaults to undefined|
|
|
203
203
|
|
|
204
204
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# UserBasic
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**app_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**aid** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**avatar_url** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**register_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**email_verified_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**phone_verified_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**app_name** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**user_status** | **number** | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { UserBasic } from '@cherryin/api-client';
|
|
25
|
+
|
|
26
|
+
const instance: UserBasic = {
|
|
27
|
+
uid,
|
|
28
|
+
app_id,
|
|
29
|
+
aid,
|
|
30
|
+
name,
|
|
31
|
+
email,
|
|
32
|
+
phone,
|
|
33
|
+
avatar_url,
|
|
34
|
+
register_at,
|
|
35
|
+
email_verified_at,
|
|
36
|
+
phone_verified_at,
|
|
37
|
+
app_name,
|
|
38
|
+
user_status,
|
|
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,20 @@
|
|
|
1
|
+
# UserExtendInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user_groups** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserExtendInfo } from '@cherryin/api-client';
|
|
14
|
+
|
|
15
|
+
const instance: UserExtendInfo = {
|
|
16
|
+
user_groups,
|
|
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,28 @@
|
|
|
1
|
+
# UserInfoQueryOptions
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**opt_include_all** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**opt_settings** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**opt_preferences** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**opt_payment_info** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**opt_extend_info** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserInfoQueryOptions } from '@cherryin/api-client';
|
|
18
|
+
|
|
19
|
+
const instance: UserInfoQueryOptions = {
|
|
20
|
+
opt_include_all,
|
|
21
|
+
opt_settings,
|
|
22
|
+
opt_preferences,
|
|
23
|
+
opt_payment_info,
|
|
24
|
+
opt_extend_info,
|
|
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)
|
|
@@ -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** | [**Array<UserLabelItem>**](UserLabelItem.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
|
|
|
11
11
|
## Example
|
package/docs/UserMeInfo.md
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**info** | [**UserInfo**](UserInfo.md) |
|
|
9
|
-
**settings** | [**UserSettings**](UserSettings.md) |
|
|
10
|
-
**balance** | [**UserBalanceBrief**](UserBalanceBrief.md) |
|
|
8
|
+
**info** | [**UserInfo**](UserInfo.md) | 用户信息 | [optional] [default to undefined]
|
|
9
|
+
**settings** | [**UserSettings**](UserSettings.md) | 用户设置 | [optional] [default to undefined]
|
|
10
|
+
**balance** | [**UserBalanceBrief**](UserBalanceBrief.md) | 用户余额简要信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# UserModelActivitySummary
|
|
2
|
+
|
|
3
|
+
UserModelActivitySummary 用户模型使用信息汇总
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**total_model_request_count** | **string** | 模型请求总次数 | [optional] [default to undefined]
|
|
10
|
+
**total_model_request_tokens** | **string** | 模型请求总使用Token数(包括输入和输出) | [optional] [default to undefined]
|
|
11
|
+
**stat_model_request_count** | **string** | 模型请求总次数 - 统计窗口内天级 | [optional] [default to undefined]
|
|
12
|
+
**stat_model_request_tokens** | **string** | 模型请求总使用Token数(包括输入和输出) - 统计窗口内天级 | [optional] [default to undefined]
|
|
13
|
+
**stat_model_rpm_avg** | **string** | 模型请求平均每分钟数(RPM) - 统计窗口内天级 | [optional] [default to undefined]
|
|
14
|
+
**stat_model_tpm_avg** | **string** | 模型请求平均每分钟token数(TPM) - 统计窗口内天级 | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserModelActivitySummary } from '@cherryin/api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserModelActivitySummary = {
|
|
22
|
+
total_model_request_count,
|
|
23
|
+
total_model_request_tokens,
|
|
24
|
+
stat_model_request_count,
|
|
25
|
+
stat_model_request_tokens,
|
|
26
|
+
stat_model_rpm_avg,
|
|
27
|
+
stat_model_tpm_avg,
|
|
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,28 @@
|
|
|
1
|
+
# UserModelHourActivity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hour_at** | **string** | 小时时间戳,单位秒[unix 整点时间戳] | [optional] [default to undefined]
|
|
9
|
+
**model_id** | **string** | 模型ID | [optional] [default to undefined]
|
|
10
|
+
**total_request_count** | **string** | 模型请求总次数 | [optional] [default to undefined]
|
|
11
|
+
**total_request_tokens** | **string** | 模型请求总使用Token数(包括输入和输出) | [optional] [default to undefined]
|
|
12
|
+
**total_cost** | **string** | 模型请求总费用,$500.12 | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserModelHourActivity } from '@cherryin/api-client';
|
|
18
|
+
|
|
19
|
+
const instance: UserModelHourActivity = {
|
|
20
|
+
hour_at,
|
|
21
|
+
model_id,
|
|
22
|
+
total_request_count,
|
|
23
|
+
total_request_tokens,
|
|
24
|
+
total_cost,
|
|
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,20 @@
|
|
|
1
|
+
# UserModelHourlyUsages
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hour_activities** | [**Array<UserModelHourActivity>**](UserModelHourActivity.md) | 小时粒度的模型使用数据列表 | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserModelHourlyUsages } from '@cherryin/api-client';
|
|
14
|
+
|
|
15
|
+
const instance: UserModelHourlyUsages = {
|
|
16
|
+
hour_activities,
|
|
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)
|
|
@@ -4,11 +4,127 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**userModelServiceFrontendModels**](#usermodelservicefrontendmodels) | **GET** /v1/frontend/models | |
|
|
8
|
+
|[**userModelServiceFrontendProviders**](#usermodelservicefrontendproviders) | **GET** /v1/frontend/providers | |
|
|
9
|
+
|[**userModelServiceModelList**](#usermodelservicemodellist) | **GET** /v1/models | |
|
|
8
10
|
|
|
9
|
-
# **
|
|
10
|
-
>
|
|
11
|
+
# **userModelServiceFrontendModels**
|
|
12
|
+
> FrontendModelsResponse userModelServiceFrontendModels()
|
|
11
13
|
|
|
14
|
+
FrontendModels 获取前端模型列表 NOTE: 暂时不需要鉴权
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
UserModelServiceApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@cherryin/api-client';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UserModelServiceApi(configuration);
|
|
26
|
+
|
|
27
|
+
let providerId: string; //provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\" (optional) (default to undefined)
|
|
28
|
+
let limit: number; //limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" (optional) (default to undefined)
|
|
29
|
+
let offset: number; //offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" (optional) (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.userModelServiceFrontendModels(
|
|
32
|
+
providerId,
|
|
33
|
+
limit,
|
|
34
|
+
offset
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **providerId** | [**string**] | provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\" | (optional) defaults to undefined|
|
|
43
|
+
| **limit** | [**number**] | limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" | (optional) defaults to undefined|
|
|
44
|
+
| **offset** | [**number**] | offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" | (optional) defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**FrontendModelsResponse**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
No authorization required
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: Not defined
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | OK | - |
|
|
65
|
+
|**0** | Default error response | - |
|
|
66
|
+
|
|
67
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
68
|
+
|
|
69
|
+
# **userModelServiceFrontendProviders**
|
|
70
|
+
> FrontendProvidersResponse userModelServiceFrontendProviders()
|
|
71
|
+
|
|
72
|
+
FrontendProviders 获取前端供应商列表 NOTE: 暂时不需要鉴权
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
UserModelServiceApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@cherryin/api-client';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new UserModelServiceApi(configuration);
|
|
84
|
+
|
|
85
|
+
let limit: number; //limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" (optional) (default to undefined)
|
|
86
|
+
let offset: number; //offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.userModelServiceFrontendProviders(
|
|
89
|
+
limit,
|
|
90
|
+
offset
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **limit** | [**number**] | limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" | (optional) defaults to undefined|
|
|
99
|
+
| **offset** | [**number**] | offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" | (optional) defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**FrontendProvidersResponse**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
No authorization required
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | OK | - |
|
|
120
|
+
|**0** | Default error response | - |
|
|
121
|
+
|
|
122
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
123
|
+
|
|
124
|
+
# **userModelServiceModelList**
|
|
125
|
+
> ModelListResponse userModelServiceModelList()
|
|
126
|
+
|
|
127
|
+
ModelList OpenAI 通用模型列表 NOTE: 暂时不需要鉴权
|
|
12
128
|
|
|
13
129
|
### Example
|
|
14
130
|
|
|
@@ -21,18 +137,16 @@ import {
|
|
|
21
137
|
const configuration = new Configuration();
|
|
22
138
|
const apiInstance = new UserModelServiceApi(configuration);
|
|
23
139
|
|
|
24
|
-
let currencyCode: string; //货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" (optional) (default to undefined)
|
|
25
140
|
let beforeId: string; //ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\" (optional) (default to undefined)
|
|
26
141
|
let afterId: string; //ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\" (optional) (default to undefined)
|
|
27
142
|
let limit: string; //Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\" (optional) (default to undefined)
|
|
28
|
-
let
|
|
143
|
+
let pricingCode: string; //model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\" (optional) (default to undefined)
|
|
29
144
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
currencyCode,
|
|
145
|
+
const { status, data } = await apiInstance.userModelServiceModelList(
|
|
32
146
|
beforeId,
|
|
33
147
|
afterId,
|
|
34
148
|
limit,
|
|
35
|
-
|
|
149
|
+
pricingCode
|
|
36
150
|
);
|
|
37
151
|
```
|
|
38
152
|
|
|
@@ -40,16 +154,15 @@ const { status, data } = await apiInstance.userModelServiceUserModelList(
|
|
|
40
154
|
|
|
41
155
|
|Name | Type | Description | Notes|
|
|
42
156
|
|------------- | ------------- | ------------- | -------------|
|
|
43
|
-
| **currencyCode** | [**string**] | 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" | (optional) defaults to undefined|
|
|
44
157
|
| **beforeId** | [**string**] | ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\" | (optional) defaults to undefined|
|
|
45
158
|
| **afterId** | [**string**] | ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\" | (optional) defaults to undefined|
|
|
46
159
|
| **limit** | [**string**] | Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\" | (optional) defaults to undefined|
|
|
47
|
-
| **
|
|
160
|
+
| **pricingCode** | [**string**] | model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\" | (optional) defaults to undefined|
|
|
48
161
|
|
|
49
162
|
|
|
50
163
|
### Return type
|
|
51
164
|
|
|
52
|
-
**
|
|
165
|
+
**ModelListResponse**
|
|
53
166
|
|
|
54
167
|
### Authorization
|
|
55
168
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserPaymentInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**stripe_customer_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserPaymentInfo } from '@cherryin/api-client';
|
|
14
|
+
|
|
15
|
+
const instance: UserPaymentInfo = {
|
|
16
|
+
stripe_customer_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,25 @@
|
|
|
1
|
+
# UserPortalDashboard
|
|
2
|
+
|
|
3
|
+
用户门户仪表盘信息
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**balance** | [**UserBalanceBrief**](UserBalanceBrief.md) | 用户余额简要信息 | [optional] [default to undefined]
|
|
10
|
+
**model_activity_summary** | [**UserModelActivitySummary**](UserModelActivitySummary.md) | 用户模型使用信息(汇总) | [optional] [default to undefined]
|
|
11
|
+
**model_hourly_usages** | [**UserModelHourlyUsages**](UserModelHourlyUsages.md) | 用户模型使用信息(按小时粒度) | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserPortalDashboard } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UserPortalDashboard = {
|
|
19
|
+
balance,
|
|
20
|
+
model_activity_summary,
|
|
21
|
+
model_hourly_usages,
|
|
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)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserPortalDashboardResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -7,17 +7,17 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**code** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**data** | [**UserPortalDashboard**](UserPortalDashboard.md) | | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {
|
|
15
|
+
import { UserPortalDashboardResponse } from '@cherryin/api-client';
|
|
16
16
|
|
|
17
|
-
const instance:
|
|
17
|
+
const instance: UserPortalDashboardResponse = {
|
|
18
18
|
code,
|
|
19
19
|
message,
|
|
20
|
-
|
|
20
|
+
data,
|
|
21
21
|
};
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# UserPortalServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**userPortalServiceUserMeInfo**](#userportalserviceusermeinfo) | **POST** /api/v1/user/me/info | |
|
|
8
|
+
|[**userPortalServiceUserPortalDashboard**](#userportalserviceuserportaldashboard) | **GET** /api/v1/user/portal/dashboard | |
|
|
9
|
+
|
|
10
|
+
# **userPortalServiceUserMeInfo**
|
|
11
|
+
> UserMeInfoResponse userPortalServiceUserMeInfo()
|
|
12
|
+
|
|
13
|
+
个人信息接口
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
UserPortalServiceApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@cherryin/api-client';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new UserPortalServiceApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.userPortalServiceUserMeInfo();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**UserMeInfoResponse**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
No authorization required
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: application/json
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | OK | - |
|
|
51
|
+
|**0** | Default error response | - |
|
|
52
|
+
|
|
53
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
54
|
+
|
|
55
|
+
# **userPortalServiceUserPortalDashboard**
|
|
56
|
+
> UserPortalDashboardResponse userPortalServiceUserPortalDashboard()
|
|
57
|
+
|
|
58
|
+
用户门户仪表盘信息
|
|
59
|
+
|
|
60
|
+
### Example
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
import {
|
|
64
|
+
UserPortalServiceApi,
|
|
65
|
+
Configuration
|
|
66
|
+
} from '@cherryin/api-client';
|
|
67
|
+
|
|
68
|
+
const configuration = new Configuration();
|
|
69
|
+
const apiInstance = new UserPortalServiceApi(configuration);
|
|
70
|
+
|
|
71
|
+
let startAt: string; //开始时间戳,单位秒 (不能超过 7 天前,默认是请求时间往前推 24 小时) @gotags: form:\"start_at\" (optional) (default to undefined)
|
|
72
|
+
let endAt: string; //结束时间戳,单位秒 (不能超过 1 天后,默认是请求时间) @gotags: form:\"end_at\" (optional) (default to undefined)
|
|
73
|
+
|
|
74
|
+
const { status, data } = await apiInstance.userPortalServiceUserPortalDashboard(
|
|
75
|
+
startAt,
|
|
76
|
+
endAt
|
|
77
|
+
);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Parameters
|
|
81
|
+
|
|
82
|
+
|Name | Type | Description | Notes|
|
|
83
|
+
|------------- | ------------- | ------------- | -------------|
|
|
84
|
+
| **startAt** | [**string**] | 开始时间戳,单位秒 (不能超过 7 天前,默认是请求时间往前推 24 小时) @gotags: form:\"start_at\" | (optional) defaults to undefined|
|
|
85
|
+
| **endAt** | [**string**] | 结束时间戳,单位秒 (不能超过 1 天后,默认是请求时间) @gotags: form:\"end_at\" | (optional) defaults to undefined|
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Return type
|
|
89
|
+
|
|
90
|
+
**UserPortalDashboardResponse**
|
|
91
|
+
|
|
92
|
+
### Authorization
|
|
93
|
+
|
|
94
|
+
No authorization required
|
|
95
|
+
|
|
96
|
+
### HTTP request headers
|
|
97
|
+
|
|
98
|
+
- **Content-Type**: Not defined
|
|
99
|
+
- **Accept**: application/json
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### HTTP response details
|
|
103
|
+
| Status code | Description | Response headers |
|
|
104
|
+
|-------------|-------------|------------------|
|
|
105
|
+
|**200** | OK | - |
|
|
106
|
+
|**0** | Default error response | - |
|
|
107
|
+
|
|
108
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
109
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserPreferences
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**language** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**timezone** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserPreferences } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserPreferences = {
|
|
17
|
+
language,
|
|
18
|
+
timezone,
|
|
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)
|
|
@@ -6,12 +6,12 @@ VersionedAPISchema represents a versioned API schema configuration 代表一个
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 约定的 ID
|
|
10
|
-
**name** | **string** | name API schema 的描述性名称
|
|
11
|
-
**schema** | **string** | schema API schema 的名称
|
|
12
|
-
**version** | **string** | version API schema 的版本(可选)
|
|
13
|
-
**path** | **string** | path API 端点路径(可选)
|
|
14
|
-
**method** | **string** | method HTTP 方法,例如 \"POST\", \"GET\"(可选)
|
|
9
|
+
**id** | **string** | id 约定的 ID | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name API schema 的描述性名称 例如: \"chat/completion\", \"response\" | [optional] [default to undefined]
|
|
11
|
+
**schema** | **string** | schema API schema 的名称 例如: \"openai\", \"anthropic\" | [optional] [default to undefined]
|
|
12
|
+
**version** | **string** | version API schema 的版本(可选) | [optional] [default to undefined]
|
|
13
|
+
**path** | **string** | path API 端点路径(可选) | [optional] [default to undefined]
|
|
14
|
+
**method** | **string** | method HTTP 方法,例如 \"POST\", \"GET\"(可选) | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
package/docs/VideoPricing.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# VideoPricing
|
|
2
2
|
|
|
3
|
-
VideoPricing 视频计费
|
|
3
|
+
VideoPricing 视频计费
|
|
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_second\", \"per_token\"
|
|
11
|
-
**input_per_token** | **string** | input_per_token 输入每Token费用
|
|
12
|
-
**output_per_token** | **string** | output_per_token 输出每Token费用
|
|
13
|
-
**input_per_second** | **string** | input_per_second 输入每秒费用
|
|
14
|
-
**output_per_second** | **string** | output_per_second 输出每秒费用
|
|
15
|
-
**extra** | **{ [key: string]: string; }** | extra 扩展计算
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**mode** | **string** | mode 计费模式: \"per_second\", \"per_token\" | [optional] [default to undefined]
|
|
11
|
+
**input_per_token** | **string** | input_per_token 输入每Token费用 | [optional] [default to undefined]
|
|
12
|
+
**output_per_token** | **string** | output_per_token 输出每Token费用 | [optional] [default to undefined]
|
|
13
|
+
**input_per_second** | **string** | input_per_second 输入每秒费用 | [optional] [default to undefined]
|
|
14
|
+
**output_per_second** | **string** | output_per_second 输出每秒费用 | [optional] [default to undefined]
|
|
15
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展计算 | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|