@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
|
@@ -1,1261 +0,0 @@
|
|
|
1
|
-
# Auth2UserServiceApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**auth2UserServiceAuthChangeEmail**](#auth2userserviceauthchangeemail) | **POST** /authed/v1/change-email | |
|
|
8
|
-
|[**auth2UserServiceAuthChangePassword**](#auth2userserviceauthchangepassword) | **POST** /authed/v1/change-password | |
|
|
9
|
-
|[**auth2UserServiceAuthDeleteUser**](#auth2userserviceauthdeleteuser) | **POST** /authed/v1/delete-user | |
|
|
10
|
-
|[**auth2UserServiceAuthGetAccessToken**](#auth2userserviceauthgetaccesstoken) | **POST** /authed/v1/get-access-token | |
|
|
11
|
-
|[**auth2UserServiceAuthGetAccountInfo**](#auth2userserviceauthgetaccountinfo) | **GET** /authed/v1/account-info | |
|
|
12
|
-
|[**auth2UserServiceAuthGetSession**](#auth2userserviceauthgetsession) | **GET** /authed/v1/get-session | |
|
|
13
|
-
|[**auth2UserServiceAuthLinkSocial**](#auth2userserviceauthlinksocial) | **POST** /authed/v1/link-social | |
|
|
14
|
-
|[**auth2UserServiceAuthListAccounts**](#auth2userserviceauthlistaccounts) | **GET** /authed/v1/list-accounts | |
|
|
15
|
-
|[**auth2UserServiceAuthListSessions**](#auth2userserviceauthlistsessions) | **GET** /authed/v1/list-sessions | |
|
|
16
|
-
|[**auth2UserServiceAuthOAuth2Callback**](#auth2userserviceauthoauth2callback) | **GET** /oauth2/{platform}/callback | |
|
|
17
|
-
|[**auth2UserServiceAuthRefreshToken**](#auth2userserviceauthrefreshtoken) | **POST** /authed/v1/refresh-token | |
|
|
18
|
-
|[**auth2UserServiceAuthRequestPasswordReset**](#auth2userserviceauthrequestpasswordreset) | **POST** /authed/v1/request-password-reset | |
|
|
19
|
-
|[**auth2UserServiceAuthResetPassword**](#auth2userserviceauthresetpassword) | **POST** /authed/v1/reset-password | |
|
|
20
|
-
|[**auth2UserServiceAuthRevokeOtherSessions**](#auth2userserviceauthrevokeothersessions) | **POST** /authed/v1/revoke-other-sessions | |
|
|
21
|
-
|[**auth2UserServiceAuthRevokeSession**](#auth2userserviceauthrevokesession) | **POST** /authed/v1/revoke-session | |
|
|
22
|
-
|[**auth2UserServiceAuthRevokeSessions**](#auth2userserviceauthrevokesessions) | **POST** /authed/v1/revoke-sessions | |
|
|
23
|
-
|[**auth2UserServiceAuthSendVerificationEmail**](#auth2userserviceauthsendverificationemail) | **POST** /authed/v1/send-verification-email | |
|
|
24
|
-
|[**auth2UserServiceAuthSignInEmail**](#auth2userserviceauthsigninemail) | **POST** /auth/v1/sign-in/email | |
|
|
25
|
-
|[**auth2UserServiceAuthSignInSocial**](#auth2userserviceauthsigninsocial) | **POST** /auth/v1/sign-in/social | |
|
|
26
|
-
|[**auth2UserServiceAuthSignOut**](#auth2userserviceauthsignout) | **POST** /authed/v1/sign-out | |
|
|
27
|
-
|[**auth2UserServiceAuthSignUpEmail**](#auth2userserviceauthsignupemail) | **POST** /auth/v1/sign-up/email | |
|
|
28
|
-
|[**auth2UserServiceAuthUnlinkAccount**](#auth2userserviceauthunlinkaccount) | **POST** /authed/v1/unlink-account | |
|
|
29
|
-
|[**auth2UserServiceAuthUpdateUser**](#auth2userserviceauthupdateuser) | **POST** /authed/v1/update-user | |
|
|
30
|
-
|[**auth2UserServiceAuthVerifyEmail**](#auth2userserviceauthverifyemail) | **GET** /authed/v1/verify-email | |
|
|
31
|
-
|
|
32
|
-
# **auth2UserServiceAuthChangeEmail**
|
|
33
|
-
> AuthChangeEmailResponse auth2UserServiceAuthChangeEmail(authChangeEmailRequest)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Example
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
import {
|
|
40
|
-
Auth2UserServiceApi,
|
|
41
|
-
Configuration,
|
|
42
|
-
AuthChangeEmailRequest
|
|
43
|
-
} from '@cherryin/api-client';
|
|
44
|
-
|
|
45
|
-
const configuration = new Configuration();
|
|
46
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
47
|
-
|
|
48
|
-
let authChangeEmailRequest: AuthChangeEmailRequest; //
|
|
49
|
-
|
|
50
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthChangeEmail(
|
|
51
|
-
authChangeEmailRequest
|
|
52
|
-
);
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Parameters
|
|
56
|
-
|
|
57
|
-
|Name | Type | Description | Notes|
|
|
58
|
-
|------------- | ------------- | ------------- | -------------|
|
|
59
|
-
| **authChangeEmailRequest** | **AuthChangeEmailRequest**| | |
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### Return type
|
|
63
|
-
|
|
64
|
-
**AuthChangeEmailResponse**
|
|
65
|
-
|
|
66
|
-
### Authorization
|
|
67
|
-
|
|
68
|
-
No authorization required
|
|
69
|
-
|
|
70
|
-
### HTTP request headers
|
|
71
|
-
|
|
72
|
-
- **Content-Type**: application/json
|
|
73
|
-
- **Accept**: application/json
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### HTTP response details
|
|
77
|
-
| Status code | Description | Response headers |
|
|
78
|
-
|-------------|-------------|------------------|
|
|
79
|
-
|**200** | OK | - |
|
|
80
|
-
|**0** | Default error response | - |
|
|
81
|
-
|
|
82
|
-
[[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)
|
|
83
|
-
|
|
84
|
-
# **auth2UserServiceAuthChangePassword**
|
|
85
|
-
> AuthChangePasswordResponse auth2UserServiceAuthChangePassword(authChangePasswordRequest)
|
|
86
|
-
|
|
87
|
-
============ 密码管理 ============
|
|
88
|
-
|
|
89
|
-
### Example
|
|
90
|
-
|
|
91
|
-
```typescript
|
|
92
|
-
import {
|
|
93
|
-
Auth2UserServiceApi,
|
|
94
|
-
Configuration,
|
|
95
|
-
AuthChangePasswordRequest
|
|
96
|
-
} from '@cherryin/api-client';
|
|
97
|
-
|
|
98
|
-
const configuration = new Configuration();
|
|
99
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
100
|
-
|
|
101
|
-
let authChangePasswordRequest: AuthChangePasswordRequest; //
|
|
102
|
-
|
|
103
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthChangePassword(
|
|
104
|
-
authChangePasswordRequest
|
|
105
|
-
);
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Parameters
|
|
109
|
-
|
|
110
|
-
|Name | Type | Description | Notes|
|
|
111
|
-
|------------- | ------------- | ------------- | -------------|
|
|
112
|
-
| **authChangePasswordRequest** | **AuthChangePasswordRequest**| | |
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Return type
|
|
116
|
-
|
|
117
|
-
**AuthChangePasswordResponse**
|
|
118
|
-
|
|
119
|
-
### Authorization
|
|
120
|
-
|
|
121
|
-
No authorization required
|
|
122
|
-
|
|
123
|
-
### HTTP request headers
|
|
124
|
-
|
|
125
|
-
- **Content-Type**: application/json
|
|
126
|
-
- **Accept**: application/json
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### HTTP response details
|
|
130
|
-
| Status code | Description | Response headers |
|
|
131
|
-
|-------------|-------------|------------------|
|
|
132
|
-
|**200** | OK | - |
|
|
133
|
-
|**0** | Default error response | - |
|
|
134
|
-
|
|
135
|
-
[[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)
|
|
136
|
-
|
|
137
|
-
# **auth2UserServiceAuthDeleteUser**
|
|
138
|
-
> AuthDeleteUserResponse auth2UserServiceAuthDeleteUser(authDeleteUserRequest)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
### Example
|
|
142
|
-
|
|
143
|
-
```typescript
|
|
144
|
-
import {
|
|
145
|
-
Auth2UserServiceApi,
|
|
146
|
-
Configuration,
|
|
147
|
-
AuthDeleteUserRequest
|
|
148
|
-
} from '@cherryin/api-client';
|
|
149
|
-
|
|
150
|
-
const configuration = new Configuration();
|
|
151
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
152
|
-
|
|
153
|
-
let authDeleteUserRequest: AuthDeleteUserRequest; //
|
|
154
|
-
|
|
155
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthDeleteUser(
|
|
156
|
-
authDeleteUserRequest
|
|
157
|
-
);
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Parameters
|
|
161
|
-
|
|
162
|
-
|Name | Type | Description | Notes|
|
|
163
|
-
|------------- | ------------- | ------------- | -------------|
|
|
164
|
-
| **authDeleteUserRequest** | **AuthDeleteUserRequest**| | |
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
### Return type
|
|
168
|
-
|
|
169
|
-
**AuthDeleteUserResponse**
|
|
170
|
-
|
|
171
|
-
### Authorization
|
|
172
|
-
|
|
173
|
-
No authorization required
|
|
174
|
-
|
|
175
|
-
### HTTP request headers
|
|
176
|
-
|
|
177
|
-
- **Content-Type**: application/json
|
|
178
|
-
- **Accept**: application/json
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
### HTTP response details
|
|
182
|
-
| Status code | Description | Response headers |
|
|
183
|
-
|-------------|-------------|------------------|
|
|
184
|
-
|**200** | OK | - |
|
|
185
|
-
|**0** | Default error response | - |
|
|
186
|
-
|
|
187
|
-
[[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)
|
|
188
|
-
|
|
189
|
-
# **auth2UserServiceAuthGetAccessToken**
|
|
190
|
-
> AuthGetAccessTokenResponse auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### Example
|
|
194
|
-
|
|
195
|
-
```typescript
|
|
196
|
-
import {
|
|
197
|
-
Auth2UserServiceApi,
|
|
198
|
-
Configuration,
|
|
199
|
-
AuthGetAccessTokenRequest
|
|
200
|
-
} from '@cherryin/api-client';
|
|
201
|
-
|
|
202
|
-
const configuration = new Configuration();
|
|
203
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
204
|
-
|
|
205
|
-
let authGetAccessTokenRequest: AuthGetAccessTokenRequest; //
|
|
206
|
-
|
|
207
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthGetAccessToken(
|
|
208
|
-
authGetAccessTokenRequest
|
|
209
|
-
);
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### Parameters
|
|
213
|
-
|
|
214
|
-
|Name | Type | Description | Notes|
|
|
215
|
-
|------------- | ------------- | ------------- | -------------|
|
|
216
|
-
| **authGetAccessTokenRequest** | **AuthGetAccessTokenRequest**| | |
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
### Return type
|
|
220
|
-
|
|
221
|
-
**AuthGetAccessTokenResponse**
|
|
222
|
-
|
|
223
|
-
### Authorization
|
|
224
|
-
|
|
225
|
-
No authorization required
|
|
226
|
-
|
|
227
|
-
### HTTP request headers
|
|
228
|
-
|
|
229
|
-
- **Content-Type**: application/json
|
|
230
|
-
- **Accept**: application/json
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
### HTTP response details
|
|
234
|
-
| Status code | Description | Response headers |
|
|
235
|
-
|-------------|-------------|------------------|
|
|
236
|
-
|**200** | OK | - |
|
|
237
|
-
|**0** | Default error response | - |
|
|
238
|
-
|
|
239
|
-
[[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)
|
|
240
|
-
|
|
241
|
-
# **auth2UserServiceAuthGetAccountInfo**
|
|
242
|
-
> AuthGetAccountInfoResponse auth2UserServiceAuthGetAccountInfo()
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
### Example
|
|
246
|
-
|
|
247
|
-
```typescript
|
|
248
|
-
import {
|
|
249
|
-
Auth2UserServiceApi,
|
|
250
|
-
Configuration
|
|
251
|
-
} from '@cherryin/api-client';
|
|
252
|
-
|
|
253
|
-
const configuration = new Configuration();
|
|
254
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
255
|
-
|
|
256
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthGetAccountInfo();
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Parameters
|
|
260
|
-
This endpoint does not have any parameters.
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
### Return type
|
|
264
|
-
|
|
265
|
-
**AuthGetAccountInfoResponse**
|
|
266
|
-
|
|
267
|
-
### Authorization
|
|
268
|
-
|
|
269
|
-
No authorization required
|
|
270
|
-
|
|
271
|
-
### HTTP request headers
|
|
272
|
-
|
|
273
|
-
- **Content-Type**: Not defined
|
|
274
|
-
- **Accept**: application/json
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
### HTTP response details
|
|
278
|
-
| Status code | Description | Response headers |
|
|
279
|
-
|-------------|-------------|------------------|
|
|
280
|
-
|**200** | OK | - |
|
|
281
|
-
|**0** | Default error response | - |
|
|
282
|
-
|
|
283
|
-
[[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)
|
|
284
|
-
|
|
285
|
-
# **auth2UserServiceAuthGetSession**
|
|
286
|
-
> AuthGetSessionResponse auth2UserServiceAuthGetSession()
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
### Example
|
|
290
|
-
|
|
291
|
-
```typescript
|
|
292
|
-
import {
|
|
293
|
-
Auth2UserServiceApi,
|
|
294
|
-
Configuration
|
|
295
|
-
} from '@cherryin/api-client';
|
|
296
|
-
|
|
297
|
-
const configuration = new Configuration();
|
|
298
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
299
|
-
|
|
300
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthGetSession();
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
### Parameters
|
|
304
|
-
This endpoint does not have any parameters.
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
### Return type
|
|
308
|
-
|
|
309
|
-
**AuthGetSessionResponse**
|
|
310
|
-
|
|
311
|
-
### Authorization
|
|
312
|
-
|
|
313
|
-
No authorization required
|
|
314
|
-
|
|
315
|
-
### HTTP request headers
|
|
316
|
-
|
|
317
|
-
- **Content-Type**: Not defined
|
|
318
|
-
- **Accept**: application/json
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
### HTTP response details
|
|
322
|
-
| Status code | Description | Response headers |
|
|
323
|
-
|-------------|-------------|------------------|
|
|
324
|
-
|**200** | OK | - |
|
|
325
|
-
|**0** | Default error response | - |
|
|
326
|
-
|
|
327
|
-
[[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)
|
|
328
|
-
|
|
329
|
-
# **auth2UserServiceAuthLinkSocial**
|
|
330
|
-
> AuthLinkSocialResponse auth2UserServiceAuthLinkSocial(authLinkSocialRequest)
|
|
331
|
-
|
|
332
|
-
============ 账号关联 ============
|
|
333
|
-
|
|
334
|
-
### Example
|
|
335
|
-
|
|
336
|
-
```typescript
|
|
337
|
-
import {
|
|
338
|
-
Auth2UserServiceApi,
|
|
339
|
-
Configuration,
|
|
340
|
-
AuthLinkSocialRequest
|
|
341
|
-
} from '@cherryin/api-client';
|
|
342
|
-
|
|
343
|
-
const configuration = new Configuration();
|
|
344
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
345
|
-
|
|
346
|
-
let authLinkSocialRequest: AuthLinkSocialRequest; //
|
|
347
|
-
|
|
348
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthLinkSocial(
|
|
349
|
-
authLinkSocialRequest
|
|
350
|
-
);
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
### Parameters
|
|
354
|
-
|
|
355
|
-
|Name | Type | Description | Notes|
|
|
356
|
-
|------------- | ------------- | ------------- | -------------|
|
|
357
|
-
| **authLinkSocialRequest** | **AuthLinkSocialRequest**| | |
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
### Return type
|
|
361
|
-
|
|
362
|
-
**AuthLinkSocialResponse**
|
|
363
|
-
|
|
364
|
-
### Authorization
|
|
365
|
-
|
|
366
|
-
No authorization required
|
|
367
|
-
|
|
368
|
-
### HTTP request headers
|
|
369
|
-
|
|
370
|
-
- **Content-Type**: application/json
|
|
371
|
-
- **Accept**: application/json
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
### HTTP response details
|
|
375
|
-
| Status code | Description | Response headers |
|
|
376
|
-
|-------------|-------------|------------------|
|
|
377
|
-
|**200** | OK | - |
|
|
378
|
-
|**0** | Default error response | - |
|
|
379
|
-
|
|
380
|
-
[[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)
|
|
381
|
-
|
|
382
|
-
# **auth2UserServiceAuthListAccounts**
|
|
383
|
-
> AuthListAccountsResponse auth2UserServiceAuthListAccounts()
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
### Example
|
|
387
|
-
|
|
388
|
-
```typescript
|
|
389
|
-
import {
|
|
390
|
-
Auth2UserServiceApi,
|
|
391
|
-
Configuration
|
|
392
|
-
} from '@cherryin/api-client';
|
|
393
|
-
|
|
394
|
-
const configuration = new Configuration();
|
|
395
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
396
|
-
|
|
397
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthListAccounts();
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
### Parameters
|
|
401
|
-
This endpoint does not have any parameters.
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
### Return type
|
|
405
|
-
|
|
406
|
-
**AuthListAccountsResponse**
|
|
407
|
-
|
|
408
|
-
### Authorization
|
|
409
|
-
|
|
410
|
-
No authorization required
|
|
411
|
-
|
|
412
|
-
### HTTP request headers
|
|
413
|
-
|
|
414
|
-
- **Content-Type**: Not defined
|
|
415
|
-
- **Accept**: application/json
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
### HTTP response details
|
|
419
|
-
| Status code | Description | Response headers |
|
|
420
|
-
|-------------|-------------|------------------|
|
|
421
|
-
|**200** | OK | - |
|
|
422
|
-
|**0** | Default error response | - |
|
|
423
|
-
|
|
424
|
-
[[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)
|
|
425
|
-
|
|
426
|
-
# **auth2UserServiceAuthListSessions**
|
|
427
|
-
> AuthListSessionsResponse auth2UserServiceAuthListSessions()
|
|
428
|
-
|
|
429
|
-
============ 会话管理 ============
|
|
430
|
-
|
|
431
|
-
### Example
|
|
432
|
-
|
|
433
|
-
```typescript
|
|
434
|
-
import {
|
|
435
|
-
Auth2UserServiceApi,
|
|
436
|
-
Configuration
|
|
437
|
-
} from '@cherryin/api-client';
|
|
438
|
-
|
|
439
|
-
const configuration = new Configuration();
|
|
440
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
441
|
-
|
|
442
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthListSessions();
|
|
443
|
-
```
|
|
444
|
-
|
|
445
|
-
### Parameters
|
|
446
|
-
This endpoint does not have any parameters.
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
### Return type
|
|
450
|
-
|
|
451
|
-
**AuthListSessionsResponse**
|
|
452
|
-
|
|
453
|
-
### Authorization
|
|
454
|
-
|
|
455
|
-
No authorization required
|
|
456
|
-
|
|
457
|
-
### HTTP request headers
|
|
458
|
-
|
|
459
|
-
- **Content-Type**: Not defined
|
|
460
|
-
- **Accept**: application/json
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
### HTTP response details
|
|
464
|
-
| Status code | Description | Response headers |
|
|
465
|
-
|-------------|-------------|------------------|
|
|
466
|
-
|**200** | OK | - |
|
|
467
|
-
|**0** | Default error response | - |
|
|
468
|
-
|
|
469
|
-
[[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)
|
|
470
|
-
|
|
471
|
-
# **auth2UserServiceAuthOAuth2Callback**
|
|
472
|
-
> AuthOAuth2CallbackResponse auth2UserServiceAuthOAuth2Callback()
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
### Example
|
|
476
|
-
|
|
477
|
-
```typescript
|
|
478
|
-
import {
|
|
479
|
-
Auth2UserServiceApi,
|
|
480
|
-
Configuration
|
|
481
|
-
} from '@cherryin/api-client';
|
|
482
|
-
|
|
483
|
-
const configuration = new Configuration();
|
|
484
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
485
|
-
|
|
486
|
-
let platform: string; // (default to undefined)
|
|
487
|
-
let code: string; // (optional) (default to undefined)
|
|
488
|
-
let state: string; // (optional) (default to undefined)
|
|
489
|
-
|
|
490
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthOAuth2Callback(
|
|
491
|
-
platform,
|
|
492
|
-
code,
|
|
493
|
-
state
|
|
494
|
-
);
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
### Parameters
|
|
498
|
-
|
|
499
|
-
|Name | Type | Description | Notes|
|
|
500
|
-
|------------- | ------------- | ------------- | -------------|
|
|
501
|
-
| **platform** | [**string**] | | defaults to undefined|
|
|
502
|
-
| **code** | [**string**] | | (optional) defaults to undefined|
|
|
503
|
-
| **state** | [**string**] | | (optional) defaults to undefined|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
### Return type
|
|
507
|
-
|
|
508
|
-
**AuthOAuth2CallbackResponse**
|
|
509
|
-
|
|
510
|
-
### Authorization
|
|
511
|
-
|
|
512
|
-
No authorization required
|
|
513
|
-
|
|
514
|
-
### HTTP request headers
|
|
515
|
-
|
|
516
|
-
- **Content-Type**: Not defined
|
|
517
|
-
- **Accept**: application/json
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
### HTTP response details
|
|
521
|
-
| Status code | Description | Response headers |
|
|
522
|
-
|-------------|-------------|------------------|
|
|
523
|
-
|**200** | OK | - |
|
|
524
|
-
|**0** | Default error response | - |
|
|
525
|
-
|
|
526
|
-
[[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)
|
|
527
|
-
|
|
528
|
-
# **auth2UserServiceAuthRefreshToken**
|
|
529
|
-
> AuthRefreshTokenResponse auth2UserServiceAuthRefreshToken(authRefreshTokenRequest)
|
|
530
|
-
|
|
531
|
-
============ Token 管理 ============
|
|
532
|
-
|
|
533
|
-
### Example
|
|
534
|
-
|
|
535
|
-
```typescript
|
|
536
|
-
import {
|
|
537
|
-
Auth2UserServiceApi,
|
|
538
|
-
Configuration,
|
|
539
|
-
AuthRefreshTokenRequest
|
|
540
|
-
} from '@cherryin/api-client';
|
|
541
|
-
|
|
542
|
-
const configuration = new Configuration();
|
|
543
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
544
|
-
|
|
545
|
-
let authRefreshTokenRequest: AuthRefreshTokenRequest; //
|
|
546
|
-
|
|
547
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthRefreshToken(
|
|
548
|
-
authRefreshTokenRequest
|
|
549
|
-
);
|
|
550
|
-
```
|
|
551
|
-
|
|
552
|
-
### Parameters
|
|
553
|
-
|
|
554
|
-
|Name | Type | Description | Notes|
|
|
555
|
-
|------------- | ------------- | ------------- | -------------|
|
|
556
|
-
| **authRefreshTokenRequest** | **AuthRefreshTokenRequest**| | |
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
### Return type
|
|
560
|
-
|
|
561
|
-
**AuthRefreshTokenResponse**
|
|
562
|
-
|
|
563
|
-
### Authorization
|
|
564
|
-
|
|
565
|
-
No authorization required
|
|
566
|
-
|
|
567
|
-
### HTTP request headers
|
|
568
|
-
|
|
569
|
-
- **Content-Type**: application/json
|
|
570
|
-
- **Accept**: application/json
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
### HTTP response details
|
|
574
|
-
| Status code | Description | Response headers |
|
|
575
|
-
|-------------|-------------|------------------|
|
|
576
|
-
|**200** | OK | - |
|
|
577
|
-
|**0** | Default error response | - |
|
|
578
|
-
|
|
579
|
-
[[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)
|
|
580
|
-
|
|
581
|
-
# **auth2UserServiceAuthRequestPasswordReset**
|
|
582
|
-
> AuthRequestPasswordResetResponse auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest)
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
### Example
|
|
586
|
-
|
|
587
|
-
```typescript
|
|
588
|
-
import {
|
|
589
|
-
Auth2UserServiceApi,
|
|
590
|
-
Configuration,
|
|
591
|
-
AuthRequestPasswordResetRequest
|
|
592
|
-
} from '@cherryin/api-client';
|
|
593
|
-
|
|
594
|
-
const configuration = new Configuration();
|
|
595
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
596
|
-
|
|
597
|
-
let authRequestPasswordResetRequest: AuthRequestPasswordResetRequest; //
|
|
598
|
-
|
|
599
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthRequestPasswordReset(
|
|
600
|
-
authRequestPasswordResetRequest
|
|
601
|
-
);
|
|
602
|
-
```
|
|
603
|
-
|
|
604
|
-
### Parameters
|
|
605
|
-
|
|
606
|
-
|Name | Type | Description | Notes|
|
|
607
|
-
|------------- | ------------- | ------------- | -------------|
|
|
608
|
-
| **authRequestPasswordResetRequest** | **AuthRequestPasswordResetRequest**| | |
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
### Return type
|
|
612
|
-
|
|
613
|
-
**AuthRequestPasswordResetResponse**
|
|
614
|
-
|
|
615
|
-
### Authorization
|
|
616
|
-
|
|
617
|
-
No authorization required
|
|
618
|
-
|
|
619
|
-
### HTTP request headers
|
|
620
|
-
|
|
621
|
-
- **Content-Type**: application/json
|
|
622
|
-
- **Accept**: application/json
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
### HTTP response details
|
|
626
|
-
| Status code | Description | Response headers |
|
|
627
|
-
|-------------|-------------|------------------|
|
|
628
|
-
|**200** | OK | - |
|
|
629
|
-
|**0** | Default error response | - |
|
|
630
|
-
|
|
631
|
-
[[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)
|
|
632
|
-
|
|
633
|
-
# **auth2UserServiceAuthResetPassword**
|
|
634
|
-
> AuthResetPasswordResponse auth2UserServiceAuthResetPassword(authResetPasswordRequest)
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
### Example
|
|
638
|
-
|
|
639
|
-
```typescript
|
|
640
|
-
import {
|
|
641
|
-
Auth2UserServiceApi,
|
|
642
|
-
Configuration,
|
|
643
|
-
AuthResetPasswordRequest
|
|
644
|
-
} from '@cherryin/api-client';
|
|
645
|
-
|
|
646
|
-
const configuration = new Configuration();
|
|
647
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
648
|
-
|
|
649
|
-
let authResetPasswordRequest: AuthResetPasswordRequest; //
|
|
650
|
-
|
|
651
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthResetPassword(
|
|
652
|
-
authResetPasswordRequest
|
|
653
|
-
);
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
### Parameters
|
|
657
|
-
|
|
658
|
-
|Name | Type | Description | Notes|
|
|
659
|
-
|------------- | ------------- | ------------- | -------------|
|
|
660
|
-
| **authResetPasswordRequest** | **AuthResetPasswordRequest**| | |
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
### Return type
|
|
664
|
-
|
|
665
|
-
**AuthResetPasswordResponse**
|
|
666
|
-
|
|
667
|
-
### Authorization
|
|
668
|
-
|
|
669
|
-
No authorization required
|
|
670
|
-
|
|
671
|
-
### HTTP request headers
|
|
672
|
-
|
|
673
|
-
- **Content-Type**: application/json
|
|
674
|
-
- **Accept**: application/json
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
### HTTP response details
|
|
678
|
-
| Status code | Description | Response headers |
|
|
679
|
-
|-------------|-------------|------------------|
|
|
680
|
-
|**200** | OK | - |
|
|
681
|
-
|**0** | Default error response | - |
|
|
682
|
-
|
|
683
|
-
[[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)
|
|
684
|
-
|
|
685
|
-
# **auth2UserServiceAuthRevokeOtherSessions**
|
|
686
|
-
> AuthRevokeOtherSessionsResponse auth2UserServiceAuthRevokeOtherSessions(body)
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
### Example
|
|
690
|
-
|
|
691
|
-
```typescript
|
|
692
|
-
import {
|
|
693
|
-
Auth2UserServiceApi,
|
|
694
|
-
Configuration
|
|
695
|
-
} from '@cherryin/api-client';
|
|
696
|
-
|
|
697
|
-
const configuration = new Configuration();
|
|
698
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
699
|
-
|
|
700
|
-
let body: object; //
|
|
701
|
-
|
|
702
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthRevokeOtherSessions(
|
|
703
|
-
body
|
|
704
|
-
);
|
|
705
|
-
```
|
|
706
|
-
|
|
707
|
-
### Parameters
|
|
708
|
-
|
|
709
|
-
|Name | Type | Description | Notes|
|
|
710
|
-
|------------- | ------------- | ------------- | -------------|
|
|
711
|
-
| **body** | **object**| | |
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
### Return type
|
|
715
|
-
|
|
716
|
-
**AuthRevokeOtherSessionsResponse**
|
|
717
|
-
|
|
718
|
-
### Authorization
|
|
719
|
-
|
|
720
|
-
No authorization required
|
|
721
|
-
|
|
722
|
-
### HTTP request headers
|
|
723
|
-
|
|
724
|
-
- **Content-Type**: application/json
|
|
725
|
-
- **Accept**: application/json
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
### HTTP response details
|
|
729
|
-
| Status code | Description | Response headers |
|
|
730
|
-
|-------------|-------------|------------------|
|
|
731
|
-
|**200** | OK | - |
|
|
732
|
-
|**0** | Default error response | - |
|
|
733
|
-
|
|
734
|
-
[[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)
|
|
735
|
-
|
|
736
|
-
# **auth2UserServiceAuthRevokeSession**
|
|
737
|
-
> AuthRevokeSessionResponse auth2UserServiceAuthRevokeSession(authRevokeSessionRequest)
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
### Example
|
|
741
|
-
|
|
742
|
-
```typescript
|
|
743
|
-
import {
|
|
744
|
-
Auth2UserServiceApi,
|
|
745
|
-
Configuration,
|
|
746
|
-
AuthRevokeSessionRequest
|
|
747
|
-
} from '@cherryin/api-client';
|
|
748
|
-
|
|
749
|
-
const configuration = new Configuration();
|
|
750
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
751
|
-
|
|
752
|
-
let authRevokeSessionRequest: AuthRevokeSessionRequest; //
|
|
753
|
-
|
|
754
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthRevokeSession(
|
|
755
|
-
authRevokeSessionRequest
|
|
756
|
-
);
|
|
757
|
-
```
|
|
758
|
-
|
|
759
|
-
### Parameters
|
|
760
|
-
|
|
761
|
-
|Name | Type | Description | Notes|
|
|
762
|
-
|------------- | ------------- | ------------- | -------------|
|
|
763
|
-
| **authRevokeSessionRequest** | **AuthRevokeSessionRequest**| | |
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
### Return type
|
|
767
|
-
|
|
768
|
-
**AuthRevokeSessionResponse**
|
|
769
|
-
|
|
770
|
-
### Authorization
|
|
771
|
-
|
|
772
|
-
No authorization required
|
|
773
|
-
|
|
774
|
-
### HTTP request headers
|
|
775
|
-
|
|
776
|
-
- **Content-Type**: application/json
|
|
777
|
-
- **Accept**: application/json
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
### HTTP response details
|
|
781
|
-
| Status code | Description | Response headers |
|
|
782
|
-
|-------------|-------------|------------------|
|
|
783
|
-
|**200** | OK | - |
|
|
784
|
-
|**0** | Default error response | - |
|
|
785
|
-
|
|
786
|
-
[[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)
|
|
787
|
-
|
|
788
|
-
# **auth2UserServiceAuthRevokeSessions**
|
|
789
|
-
> AuthRevokeSessionsResponse auth2UserServiceAuthRevokeSessions(body)
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
### Example
|
|
793
|
-
|
|
794
|
-
```typescript
|
|
795
|
-
import {
|
|
796
|
-
Auth2UserServiceApi,
|
|
797
|
-
Configuration
|
|
798
|
-
} from '@cherryin/api-client';
|
|
799
|
-
|
|
800
|
-
const configuration = new Configuration();
|
|
801
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
802
|
-
|
|
803
|
-
let body: object; //
|
|
804
|
-
|
|
805
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthRevokeSessions(
|
|
806
|
-
body
|
|
807
|
-
);
|
|
808
|
-
```
|
|
809
|
-
|
|
810
|
-
### Parameters
|
|
811
|
-
|
|
812
|
-
|Name | Type | Description | Notes|
|
|
813
|
-
|------------- | ------------- | ------------- | -------------|
|
|
814
|
-
| **body** | **object**| | |
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
### Return type
|
|
818
|
-
|
|
819
|
-
**AuthRevokeSessionsResponse**
|
|
820
|
-
|
|
821
|
-
### Authorization
|
|
822
|
-
|
|
823
|
-
No authorization required
|
|
824
|
-
|
|
825
|
-
### HTTP request headers
|
|
826
|
-
|
|
827
|
-
- **Content-Type**: application/json
|
|
828
|
-
- **Accept**: application/json
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
### HTTP response details
|
|
832
|
-
| Status code | Description | Response headers |
|
|
833
|
-
|-------------|-------------|------------------|
|
|
834
|
-
|**200** | OK | - |
|
|
835
|
-
|**0** | Default error response | - |
|
|
836
|
-
|
|
837
|
-
[[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)
|
|
838
|
-
|
|
839
|
-
# **auth2UserServiceAuthSendVerificationEmail**
|
|
840
|
-
> AuthSendVerificationEmailResponse auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest)
|
|
841
|
-
|
|
842
|
-
============ 邮箱验证 ============
|
|
843
|
-
|
|
844
|
-
### Example
|
|
845
|
-
|
|
846
|
-
```typescript
|
|
847
|
-
import {
|
|
848
|
-
Auth2UserServiceApi,
|
|
849
|
-
Configuration,
|
|
850
|
-
AuthSendVerificationEmailRequest
|
|
851
|
-
} from '@cherryin/api-client';
|
|
852
|
-
|
|
853
|
-
const configuration = new Configuration();
|
|
854
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
855
|
-
|
|
856
|
-
let authSendVerificationEmailRequest: AuthSendVerificationEmailRequest; //
|
|
857
|
-
|
|
858
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthSendVerificationEmail(
|
|
859
|
-
authSendVerificationEmailRequest
|
|
860
|
-
);
|
|
861
|
-
```
|
|
862
|
-
|
|
863
|
-
### Parameters
|
|
864
|
-
|
|
865
|
-
|Name | Type | Description | Notes|
|
|
866
|
-
|------------- | ------------- | ------------- | -------------|
|
|
867
|
-
| **authSendVerificationEmailRequest** | **AuthSendVerificationEmailRequest**| | |
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
### Return type
|
|
871
|
-
|
|
872
|
-
**AuthSendVerificationEmailResponse**
|
|
873
|
-
|
|
874
|
-
### Authorization
|
|
875
|
-
|
|
876
|
-
No authorization required
|
|
877
|
-
|
|
878
|
-
### HTTP request headers
|
|
879
|
-
|
|
880
|
-
- **Content-Type**: application/json
|
|
881
|
-
- **Accept**: application/json
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
### HTTP response details
|
|
885
|
-
| Status code | Description | Response headers |
|
|
886
|
-
|-------------|-------------|------------------|
|
|
887
|
-
|**200** | OK | - |
|
|
888
|
-
|**0** | Default error response | - |
|
|
889
|
-
|
|
890
|
-
[[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)
|
|
891
|
-
|
|
892
|
-
# **auth2UserServiceAuthSignInEmail**
|
|
893
|
-
> AuthSignInEmailResponse auth2UserServiceAuthSignInEmail(authSignInEmailRequest)
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
### Example
|
|
897
|
-
|
|
898
|
-
```typescript
|
|
899
|
-
import {
|
|
900
|
-
Auth2UserServiceApi,
|
|
901
|
-
Configuration,
|
|
902
|
-
AuthSignInEmailRequest
|
|
903
|
-
} from '@cherryin/api-client';
|
|
904
|
-
|
|
905
|
-
const configuration = new Configuration();
|
|
906
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
907
|
-
|
|
908
|
-
let authSignInEmailRequest: AuthSignInEmailRequest; //
|
|
909
|
-
|
|
910
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthSignInEmail(
|
|
911
|
-
authSignInEmailRequest
|
|
912
|
-
);
|
|
913
|
-
```
|
|
914
|
-
|
|
915
|
-
### Parameters
|
|
916
|
-
|
|
917
|
-
|Name | Type | Description | Notes|
|
|
918
|
-
|------------- | ------------- | ------------- | -------------|
|
|
919
|
-
| **authSignInEmailRequest** | **AuthSignInEmailRequest**| | |
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
### Return type
|
|
923
|
-
|
|
924
|
-
**AuthSignInEmailResponse**
|
|
925
|
-
|
|
926
|
-
### Authorization
|
|
927
|
-
|
|
928
|
-
No authorization required
|
|
929
|
-
|
|
930
|
-
### HTTP request headers
|
|
931
|
-
|
|
932
|
-
- **Content-Type**: application/json
|
|
933
|
-
- **Accept**: application/json
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
### HTTP response details
|
|
937
|
-
| Status code | Description | Response headers |
|
|
938
|
-
|-------------|-------------|------------------|
|
|
939
|
-
|**200** | OK | - |
|
|
940
|
-
|**0** | Default error response | - |
|
|
941
|
-
|
|
942
|
-
[[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)
|
|
943
|
-
|
|
944
|
-
# **auth2UserServiceAuthSignInSocial**
|
|
945
|
-
> AuthSignInSocialResponse auth2UserServiceAuthSignInSocial(authSignInSocialRequest)
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
### Example
|
|
949
|
-
|
|
950
|
-
```typescript
|
|
951
|
-
import {
|
|
952
|
-
Auth2UserServiceApi,
|
|
953
|
-
Configuration,
|
|
954
|
-
AuthSignInSocialRequest
|
|
955
|
-
} from '@cherryin/api-client';
|
|
956
|
-
|
|
957
|
-
const configuration = new Configuration();
|
|
958
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
959
|
-
|
|
960
|
-
let authSignInSocialRequest: AuthSignInSocialRequest; //
|
|
961
|
-
|
|
962
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthSignInSocial(
|
|
963
|
-
authSignInSocialRequest
|
|
964
|
-
);
|
|
965
|
-
```
|
|
966
|
-
|
|
967
|
-
### Parameters
|
|
968
|
-
|
|
969
|
-
|Name | Type | Description | Notes|
|
|
970
|
-
|------------- | ------------- | ------------- | -------------|
|
|
971
|
-
| **authSignInSocialRequest** | **AuthSignInSocialRequest**| | |
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
### Return type
|
|
975
|
-
|
|
976
|
-
**AuthSignInSocialResponse**
|
|
977
|
-
|
|
978
|
-
### Authorization
|
|
979
|
-
|
|
980
|
-
No authorization required
|
|
981
|
-
|
|
982
|
-
### HTTP request headers
|
|
983
|
-
|
|
984
|
-
- **Content-Type**: application/json
|
|
985
|
-
- **Accept**: application/json
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
### HTTP response details
|
|
989
|
-
| Status code | Description | Response headers |
|
|
990
|
-
|-------------|-------------|------------------|
|
|
991
|
-
|**200** | OK | - |
|
|
992
|
-
|**0** | Default error response | - |
|
|
993
|
-
|
|
994
|
-
[[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)
|
|
995
|
-
|
|
996
|
-
# **auth2UserServiceAuthSignOut**
|
|
997
|
-
> AuthSignOutResponse auth2UserServiceAuthSignOut(body)
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
### Example
|
|
1001
|
-
|
|
1002
|
-
```typescript
|
|
1003
|
-
import {
|
|
1004
|
-
Auth2UserServiceApi,
|
|
1005
|
-
Configuration
|
|
1006
|
-
} from '@cherryin/api-client';
|
|
1007
|
-
|
|
1008
|
-
const configuration = new Configuration();
|
|
1009
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
1010
|
-
|
|
1011
|
-
let body: object; //
|
|
1012
|
-
|
|
1013
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthSignOut(
|
|
1014
|
-
body
|
|
1015
|
-
);
|
|
1016
|
-
```
|
|
1017
|
-
|
|
1018
|
-
### Parameters
|
|
1019
|
-
|
|
1020
|
-
|Name | Type | Description | Notes|
|
|
1021
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1022
|
-
| **body** | **object**| | |
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
### Return type
|
|
1026
|
-
|
|
1027
|
-
**AuthSignOutResponse**
|
|
1028
|
-
|
|
1029
|
-
### Authorization
|
|
1030
|
-
|
|
1031
|
-
No authorization required
|
|
1032
|
-
|
|
1033
|
-
### HTTP request headers
|
|
1034
|
-
|
|
1035
|
-
- **Content-Type**: application/json
|
|
1036
|
-
- **Accept**: application/json
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
### HTTP response details
|
|
1040
|
-
| Status code | Description | Response headers |
|
|
1041
|
-
|-------------|-------------|------------------|
|
|
1042
|
-
|**200** | OK | - |
|
|
1043
|
-
|**0** | Default error response | - |
|
|
1044
|
-
|
|
1045
|
-
[[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)
|
|
1046
|
-
|
|
1047
|
-
# **auth2UserServiceAuthSignUpEmail**
|
|
1048
|
-
> AuthSignUpEmailResponse auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest)
|
|
1049
|
-
|
|
1050
|
-
============ 认证 ============
|
|
1051
|
-
|
|
1052
|
-
### Example
|
|
1053
|
-
|
|
1054
|
-
```typescript
|
|
1055
|
-
import {
|
|
1056
|
-
Auth2UserServiceApi,
|
|
1057
|
-
Configuration,
|
|
1058
|
-
AuthSignUpEmailRequest
|
|
1059
|
-
} from '@cherryin/api-client';
|
|
1060
|
-
|
|
1061
|
-
const configuration = new Configuration();
|
|
1062
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
1063
|
-
|
|
1064
|
-
let authSignUpEmailRequest: AuthSignUpEmailRequest; //
|
|
1065
|
-
|
|
1066
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthSignUpEmail(
|
|
1067
|
-
authSignUpEmailRequest
|
|
1068
|
-
);
|
|
1069
|
-
```
|
|
1070
|
-
|
|
1071
|
-
### Parameters
|
|
1072
|
-
|
|
1073
|
-
|Name | Type | Description | Notes|
|
|
1074
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1075
|
-
| **authSignUpEmailRequest** | **AuthSignUpEmailRequest**| | |
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
### Return type
|
|
1079
|
-
|
|
1080
|
-
**AuthSignUpEmailResponse**
|
|
1081
|
-
|
|
1082
|
-
### Authorization
|
|
1083
|
-
|
|
1084
|
-
No authorization required
|
|
1085
|
-
|
|
1086
|
-
### HTTP request headers
|
|
1087
|
-
|
|
1088
|
-
- **Content-Type**: application/json
|
|
1089
|
-
- **Accept**: application/json
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
### HTTP response details
|
|
1093
|
-
| Status code | Description | Response headers |
|
|
1094
|
-
|-------------|-------------|------------------|
|
|
1095
|
-
|**200** | OK | - |
|
|
1096
|
-
|**0** | Default error response | - |
|
|
1097
|
-
|
|
1098
|
-
[[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)
|
|
1099
|
-
|
|
1100
|
-
# **auth2UserServiceAuthUnlinkAccount**
|
|
1101
|
-
> AuthUnlinkAccountResponse auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest)
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
### Example
|
|
1105
|
-
|
|
1106
|
-
```typescript
|
|
1107
|
-
import {
|
|
1108
|
-
Auth2UserServiceApi,
|
|
1109
|
-
Configuration,
|
|
1110
|
-
AuthUnlinkAccountRequest
|
|
1111
|
-
} from '@cherryin/api-client';
|
|
1112
|
-
|
|
1113
|
-
const configuration = new Configuration();
|
|
1114
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
1115
|
-
|
|
1116
|
-
let authUnlinkAccountRequest: AuthUnlinkAccountRequest; //
|
|
1117
|
-
|
|
1118
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthUnlinkAccount(
|
|
1119
|
-
authUnlinkAccountRequest
|
|
1120
|
-
);
|
|
1121
|
-
```
|
|
1122
|
-
|
|
1123
|
-
### Parameters
|
|
1124
|
-
|
|
1125
|
-
|Name | Type | Description | Notes|
|
|
1126
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1127
|
-
| **authUnlinkAccountRequest** | **AuthUnlinkAccountRequest**| | |
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
### Return type
|
|
1131
|
-
|
|
1132
|
-
**AuthUnlinkAccountResponse**
|
|
1133
|
-
|
|
1134
|
-
### Authorization
|
|
1135
|
-
|
|
1136
|
-
No authorization required
|
|
1137
|
-
|
|
1138
|
-
### HTTP request headers
|
|
1139
|
-
|
|
1140
|
-
- **Content-Type**: application/json
|
|
1141
|
-
- **Accept**: application/json
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
### HTTP response details
|
|
1145
|
-
| Status code | Description | Response headers |
|
|
1146
|
-
|-------------|-------------|------------------|
|
|
1147
|
-
|**200** | OK | - |
|
|
1148
|
-
|**0** | Default error response | - |
|
|
1149
|
-
|
|
1150
|
-
[[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)
|
|
1151
|
-
|
|
1152
|
-
# **auth2UserServiceAuthUpdateUser**
|
|
1153
|
-
> AuthUpdateUserResponse auth2UserServiceAuthUpdateUser(authUpdateUserRequest)
|
|
1154
|
-
|
|
1155
|
-
============ 用户管理 ============
|
|
1156
|
-
|
|
1157
|
-
### Example
|
|
1158
|
-
|
|
1159
|
-
```typescript
|
|
1160
|
-
import {
|
|
1161
|
-
Auth2UserServiceApi,
|
|
1162
|
-
Configuration,
|
|
1163
|
-
AuthUpdateUserRequest
|
|
1164
|
-
} from '@cherryin/api-client';
|
|
1165
|
-
|
|
1166
|
-
const configuration = new Configuration();
|
|
1167
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
1168
|
-
|
|
1169
|
-
let authUpdateUserRequest: AuthUpdateUserRequest; //
|
|
1170
|
-
|
|
1171
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthUpdateUser(
|
|
1172
|
-
authUpdateUserRequest
|
|
1173
|
-
);
|
|
1174
|
-
```
|
|
1175
|
-
|
|
1176
|
-
### Parameters
|
|
1177
|
-
|
|
1178
|
-
|Name | Type | Description | Notes|
|
|
1179
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1180
|
-
| **authUpdateUserRequest** | **AuthUpdateUserRequest**| | |
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
### Return type
|
|
1184
|
-
|
|
1185
|
-
**AuthUpdateUserResponse**
|
|
1186
|
-
|
|
1187
|
-
### Authorization
|
|
1188
|
-
|
|
1189
|
-
No authorization required
|
|
1190
|
-
|
|
1191
|
-
### HTTP request headers
|
|
1192
|
-
|
|
1193
|
-
- **Content-Type**: application/json
|
|
1194
|
-
- **Accept**: application/json
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
### HTTP response details
|
|
1198
|
-
| Status code | Description | Response headers |
|
|
1199
|
-
|-------------|-------------|------------------|
|
|
1200
|
-
|**200** | OK | - |
|
|
1201
|
-
|**0** | Default error response | - |
|
|
1202
|
-
|
|
1203
|
-
[[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)
|
|
1204
|
-
|
|
1205
|
-
# **auth2UserServiceAuthVerifyEmail**
|
|
1206
|
-
> AuthVerifyEmailResponse auth2UserServiceAuthVerifyEmail()
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
### Example
|
|
1210
|
-
|
|
1211
|
-
```typescript
|
|
1212
|
-
import {
|
|
1213
|
-
Auth2UserServiceApi,
|
|
1214
|
-
Configuration
|
|
1215
|
-
} from '@cherryin/api-client';
|
|
1216
|
-
|
|
1217
|
-
const configuration = new Configuration();
|
|
1218
|
-
const apiInstance = new Auth2UserServiceApi(configuration);
|
|
1219
|
-
|
|
1220
|
-
let email: string; // (optional) (default to undefined)
|
|
1221
|
-
let authCode: string; // (optional) (default to undefined)
|
|
1222
|
-
let callbackUrl: string; // (optional) (default to undefined)
|
|
1223
|
-
|
|
1224
|
-
const { status, data } = await apiInstance.auth2UserServiceAuthVerifyEmail(
|
|
1225
|
-
email,
|
|
1226
|
-
authCode,
|
|
1227
|
-
callbackUrl
|
|
1228
|
-
);
|
|
1229
|
-
```
|
|
1230
|
-
|
|
1231
|
-
### Parameters
|
|
1232
|
-
|
|
1233
|
-
|Name | Type | Description | Notes|
|
|
1234
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1235
|
-
| **email** | [**string**] | | (optional) defaults to undefined|
|
|
1236
|
-
| **authCode** | [**string**] | | (optional) defaults to undefined|
|
|
1237
|
-
| **callbackUrl** | [**string**] | | (optional) defaults to undefined|
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
### Return type
|
|
1241
|
-
|
|
1242
|
-
**AuthVerifyEmailResponse**
|
|
1243
|
-
|
|
1244
|
-
### Authorization
|
|
1245
|
-
|
|
1246
|
-
No authorization required
|
|
1247
|
-
|
|
1248
|
-
### HTTP request headers
|
|
1249
|
-
|
|
1250
|
-
- **Content-Type**: Not defined
|
|
1251
|
-
- **Accept**: application/json
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
### HTTP response details
|
|
1255
|
-
| Status code | Description | Response headers |
|
|
1256
|
-
|-------------|-------------|------------------|
|
|
1257
|
-
|**200** | OK | - |
|
|
1258
|
-
|**0** | Default error response | - |
|
|
1259
|
-
|
|
1260
|
-
[[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)
|
|
1261
|
-
|