@cherryin/api-client 0.0.16 → 0.0.18
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 +4 -60
- package/README.md +8 -93
- package/api.ts +325 -3001
- package/dist/api.d.ts +348 -1804
- package/dist/api.js +130 -2094
- package/dist/esm/api.d.ts +348 -1804
- package/dist/esm/api.js +128 -2084
- package/docs/PassportAuthUserServiceApi.md +109 -1
- package/docs/PassportUserPasswordForgetRequest.md +24 -0
- package/docs/{AuthSignOutResponse.md → PassportUserPasswordForgetResponse.md} +3 -5
- package/docs/PassportUserPasswordResetRequest.md +2 -0
- package/docs/PassportUserPasswordResetTokenVerifyRequest.md +22 -0
- package/docs/{AuthAdminSignOutResponse.md → PassportUserPasswordResetTokenVerifyResponse.md} +7 -5
- package/package.json +1 -1
- package/docs/Auth2Account.md +0 -33
- package/docs/Auth2Admin.md +0 -33
- package/docs/Auth2AdminServiceApi.md +0 -469
- package/docs/Auth2AdminSession.md +0 -35
- package/docs/Auth2IdToken.md +0 -29
- package/docs/Auth2Session.md +0 -35
- package/docs/Auth2User.md +0 -33
- package/docs/Auth2UserServiceApi.md +0 -1261
- package/docs/AuthAdminChangePasswordRequest.md +0 -24
- package/docs/AuthAdminChangePasswordResponse.md +0 -26
- package/docs/AuthAdminGetSessionResponse.md +0 -26
- package/docs/AuthAdminListSessionsResponse.md +0 -24
- package/docs/AuthAdminRevokeOtherSessionsResponse.md +0 -24
- package/docs/AuthAdminRevokeSessionRequest.md +0 -20
- package/docs/AuthAdminRevokeSessionResponse.md +0 -24
- package/docs/AuthAdminRevokeSessionsResponse.md +0 -24
- package/docs/AuthAdminSignInEmailRequest.md +0 -26
- package/docs/AuthAdminSignInEmailResponse.md +0 -26
- package/docs/AuthAdminUpdateUserRequest.md +0 -22
- package/docs/AuthAdminUpdateUserResponse.md +0 -24
- package/docs/AuthChangeEmailRequest.md +0 -22
- package/docs/AuthChangeEmailResponse.md +0 -26
- package/docs/AuthChangePasswordRequest.md +0 -24
- package/docs/AuthChangePasswordResponse.md +0 -26
- package/docs/AuthDeleteUserRequest.md +0 -24
- package/docs/AuthDeleteUserResponse.md +0 -24
- package/docs/AuthGetAccessTokenRequest.md +0 -24
- package/docs/AuthGetAccessTokenResponse.md +0 -34
- package/docs/AuthGetAccountInfoResponse.md +0 -24
- package/docs/AuthGetSessionResponse.md +0 -26
- package/docs/AuthLinkSocialRequest.md +0 -30
- package/docs/AuthLinkSocialResponse.md +0 -28
- package/docs/AuthListAccountsResponse.md +0 -24
- package/docs/AuthListSessionsResponse.md +0 -24
- package/docs/AuthOAuth2CallbackResponse.md +0 -32
- package/docs/AuthRefreshTokenRequest.md +0 -24
- package/docs/AuthRefreshTokenResponse.md +0 -34
- package/docs/AuthRequestPasswordResetRequest.md +0 -22
- package/docs/AuthRequestPasswordResetResponse.md +0 -24
- package/docs/AuthResetPasswordRequest.md +0 -22
- package/docs/AuthResetPasswordResponse.md +0 -24
- package/docs/AuthRevokeOtherSessionsResponse.md +0 -24
- package/docs/AuthRevokeSessionRequest.md +0 -20
- package/docs/AuthRevokeSessionResponse.md +0 -24
- package/docs/AuthRevokeSessionsResponse.md +0 -24
- package/docs/AuthSendVerificationEmailRequest.md +0 -22
- package/docs/AuthSendVerificationEmailResponse.md +0 -24
- package/docs/AuthSignInEmailRequest.md +0 -26
- package/docs/AuthSignInEmailResponse.md +0 -30
- package/docs/AuthSignInSocialRequest.md +0 -30
- package/docs/AuthSignInSocialResponse.md +0 -30
- package/docs/AuthSignUpEmailRequest.md +0 -32
- package/docs/AuthSignUpEmailResponse.md +0 -28
- package/docs/AuthUnlinkAccountRequest.md +0 -22
- package/docs/AuthUnlinkAccountResponse.md +0 -24
- package/docs/AuthUpdateUserRequest.md +0 -22
- package/docs/AuthUpdateUserResponse.md +0 -24
- package/docs/AuthVerifyEmailResponse.md +0 -24
package/dist/api.js
CHANGED
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.UserPoralServiceApi = exports.UserPoralServiceApiFactory = exports.UserPoralServiceApiFp = exports.UserPoralServiceApiAxiosParamCreator = exports.UserPayServiceApi = exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserManageAdminServiceApi = exports.UserManageAdminServiceApiFactory = exports.UserManageAdminServiceApiFp = exports.UserManageAdminServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory =
|
|
25
|
+
exports.UserAPIKeyServiceApiFp = exports.UserAPIKeyServiceApiAxiosParamCreator = exports.RemoteConfigAdminServiceApi = exports.RemoteConfigAdminServiceApiFactory = exports.RemoteConfigAdminServiceApiFp = exports.RemoteConfigAdminServiceApiAxiosParamCreator = exports.QRCodeAdminServiceApi = exports.QRCodeAdminServiceApiFactory = exports.QRCodeAdminServiceApiFp = exports.QRCodeAdminServiceApiAxiosParamCreator = exports.ProviderModelAdminServiceApi = exports.ProviderModelAdminServiceApiFactory = exports.ProviderModelAdminServiceApiFp = exports.ProviderModelAdminServiceApiAxiosParamCreator = exports.ProviderAdminServiceApi = exports.ProviderAdminServiceApiFactory = exports.ProviderAdminServiceApiFp = exports.ProviderAdminServiceApiAxiosParamCreator = exports.PassportAuthUserServiceApi = exports.PassportAuthUserServiceApiFactory = exports.PassportAuthUserServiceApiFp = exports.PassportAuthUserServiceApiAxiosParamCreator = exports.PassportAuthUserRPCServiceApi = exports.PassportAuthUserRPCServiceApiFactory = exports.PassportAuthUserRPCServiceApiFp = exports.PassportAuthUserRPCServiceApiAxiosParamCreator = exports.PassportAuthEnterpriseServiceApi = exports.PassportAuthEnterpriseServiceApiFactory = exports.PassportAuthEnterpriseServiceApiFp = exports.PassportAuthEnterpriseServiceApiAxiosParamCreator = exports.PassportAuthEnterpriseRPCServiceApi = exports.PassportAuthEnterpriseRPCServiceApiFactory = exports.PassportAuthEnterpriseRPCServiceApiFp = exports.PassportAuthEnterpriseRPCServiceApiAxiosParamCreator = exports.PassportAuthAdminServiceApi = exports.PassportAuthAdminServiceApiFactory = exports.PassportAuthAdminServiceApiFp = exports.PassportAuthAdminServiceApiAxiosParamCreator = exports.PassportAuthAdminRPCServiceApi = exports.PassportAuthAdminRPCServiceApiFactory = exports.PassportAuthAdminRPCServiceApiFp = exports.PassportAuthAdminRPCServiceApiAxiosParamCreator = exports.DiscountAdminServiceApi = exports.DiscountAdminServiceApiFactory = exports.DiscountAdminServiceApiFp = exports.DiscountAdminServiceApiAxiosParamCreator = exports.AIModelAdminServiceApi = exports.AIModelAdminServiceApiFactory = exports.AIModelAdminServiceApiFp = exports.AIModelAdminServiceApiAxiosParamCreator = void 0;
|
|
26
|
+
exports.UserPoralServiceApi = exports.UserPoralServiceApiFactory = exports.UserPoralServiceApiFp = exports.UserPoralServiceApiAxiosParamCreator = exports.UserPayServiceApi = exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserManageAdminServiceApi = exports.UserManageAdminServiceApiFactory = exports.UserManageAdminServiceApiFp = exports.UserManageAdminServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -590,2094 +590,6 @@ class AIModelAdminServiceApi extends base_1.BaseAPI {
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
exports.AIModelAdminServiceApi = AIModelAdminServiceApi;
|
|
593
|
-
/**
|
|
594
|
-
* Auth2AdminServiceApi - axios parameter creator
|
|
595
|
-
*/
|
|
596
|
-
const Auth2AdminServiceApiAxiosParamCreator = function (configuration) {
|
|
597
|
-
return {
|
|
598
|
-
/**
|
|
599
|
-
* ============ 密码管理 ============
|
|
600
|
-
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
601
|
-
* @param {*} [options] Override http request option.
|
|
602
|
-
* @throws {RequiredError}
|
|
603
|
-
*/
|
|
604
|
-
auth2AdminServiceAuthAdminChangePassword: (authAdminChangePasswordRequest_1, ...args_1) => __awaiter(this, [authAdminChangePasswordRequest_1, ...args_1], void 0, function* (authAdminChangePasswordRequest, options = {}) {
|
|
605
|
-
// verify required parameter 'authAdminChangePasswordRequest' is not null or undefined
|
|
606
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminChangePassword', 'authAdminChangePasswordRequest', authAdminChangePasswordRequest);
|
|
607
|
-
const localVarPath = `/admin/authed/change-password`;
|
|
608
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
609
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
610
|
-
let baseOptions;
|
|
611
|
-
if (configuration) {
|
|
612
|
-
baseOptions = configuration.baseOptions;
|
|
613
|
-
}
|
|
614
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
615
|
-
const localVarHeaderParameter = {};
|
|
616
|
-
const localVarQueryParameter = {};
|
|
617
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
618
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
619
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
620
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
621
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authAdminChangePasswordRequest, localVarRequestOptions, configuration);
|
|
622
|
-
return {
|
|
623
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
624
|
-
options: localVarRequestOptions,
|
|
625
|
-
};
|
|
626
|
-
}),
|
|
627
|
-
/**
|
|
628
|
-
*
|
|
629
|
-
* @param {*} [options] Override http request option.
|
|
630
|
-
* @throws {RequiredError}
|
|
631
|
-
*/
|
|
632
|
-
auth2AdminServiceAuthAdminGetSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
633
|
-
const localVarPath = `/admin/authed/get-session`;
|
|
634
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
635
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
636
|
-
let baseOptions;
|
|
637
|
-
if (configuration) {
|
|
638
|
-
baseOptions = configuration.baseOptions;
|
|
639
|
-
}
|
|
640
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
641
|
-
const localVarHeaderParameter = {};
|
|
642
|
-
const localVarQueryParameter = {};
|
|
643
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
644
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
645
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
646
|
-
return {
|
|
647
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
648
|
-
options: localVarRequestOptions,
|
|
649
|
-
};
|
|
650
|
-
}),
|
|
651
|
-
/**
|
|
652
|
-
* ============ 会话管理 ============
|
|
653
|
-
* @param {*} [options] Override http request option.
|
|
654
|
-
* @throws {RequiredError}
|
|
655
|
-
*/
|
|
656
|
-
auth2AdminServiceAuthAdminListSessions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
657
|
-
const localVarPath = `/admin/authed/list-sessions`;
|
|
658
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
659
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
660
|
-
let baseOptions;
|
|
661
|
-
if (configuration) {
|
|
662
|
-
baseOptions = configuration.baseOptions;
|
|
663
|
-
}
|
|
664
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
665
|
-
const localVarHeaderParameter = {};
|
|
666
|
-
const localVarQueryParameter = {};
|
|
667
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
668
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
669
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
670
|
-
return {
|
|
671
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
672
|
-
options: localVarRequestOptions,
|
|
673
|
-
};
|
|
674
|
-
}),
|
|
675
|
-
/**
|
|
676
|
-
*
|
|
677
|
-
* @param {object} body
|
|
678
|
-
* @param {*} [options] Override http request option.
|
|
679
|
-
* @throws {RequiredError}
|
|
680
|
-
*/
|
|
681
|
-
auth2AdminServiceAuthAdminRevokeOtherSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
682
|
-
// verify required parameter 'body' is not null or undefined
|
|
683
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminRevokeOtherSessions', 'body', body);
|
|
684
|
-
const localVarPath = `/admin/authed/revoke-other-sessions`;
|
|
685
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
686
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
687
|
-
let baseOptions;
|
|
688
|
-
if (configuration) {
|
|
689
|
-
baseOptions = configuration.baseOptions;
|
|
690
|
-
}
|
|
691
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
692
|
-
const localVarHeaderParameter = {};
|
|
693
|
-
const localVarQueryParameter = {};
|
|
694
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
695
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
696
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
697
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
698
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
699
|
-
return {
|
|
700
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
701
|
-
options: localVarRequestOptions,
|
|
702
|
-
};
|
|
703
|
-
}),
|
|
704
|
-
/**
|
|
705
|
-
*
|
|
706
|
-
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
707
|
-
* @param {*} [options] Override http request option.
|
|
708
|
-
* @throws {RequiredError}
|
|
709
|
-
*/
|
|
710
|
-
auth2AdminServiceAuthAdminRevokeSession: (authAdminRevokeSessionRequest_1, ...args_1) => __awaiter(this, [authAdminRevokeSessionRequest_1, ...args_1], void 0, function* (authAdminRevokeSessionRequest, options = {}) {
|
|
711
|
-
// verify required parameter 'authAdminRevokeSessionRequest' is not null or undefined
|
|
712
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminRevokeSession', 'authAdminRevokeSessionRequest', authAdminRevokeSessionRequest);
|
|
713
|
-
const localVarPath = `/admin/authed/revoke-session`;
|
|
714
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
715
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
716
|
-
let baseOptions;
|
|
717
|
-
if (configuration) {
|
|
718
|
-
baseOptions = configuration.baseOptions;
|
|
719
|
-
}
|
|
720
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
721
|
-
const localVarHeaderParameter = {};
|
|
722
|
-
const localVarQueryParameter = {};
|
|
723
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
724
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
725
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
726
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
727
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authAdminRevokeSessionRequest, localVarRequestOptions, configuration);
|
|
728
|
-
return {
|
|
729
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
730
|
-
options: localVarRequestOptions,
|
|
731
|
-
};
|
|
732
|
-
}),
|
|
733
|
-
/**
|
|
734
|
-
*
|
|
735
|
-
* @param {object} body
|
|
736
|
-
* @param {*} [options] Override http request option.
|
|
737
|
-
* @throws {RequiredError}
|
|
738
|
-
*/
|
|
739
|
-
auth2AdminServiceAuthAdminRevokeSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
740
|
-
// verify required parameter 'body' is not null or undefined
|
|
741
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminRevokeSessions', 'body', body);
|
|
742
|
-
const localVarPath = `/admin/authed/revoke-sessions`;
|
|
743
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
744
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
745
|
-
let baseOptions;
|
|
746
|
-
if (configuration) {
|
|
747
|
-
baseOptions = configuration.baseOptions;
|
|
748
|
-
}
|
|
749
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
750
|
-
const localVarHeaderParameter = {};
|
|
751
|
-
const localVarQueryParameter = {};
|
|
752
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
753
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
754
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
755
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
756
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
757
|
-
return {
|
|
758
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
759
|
-
options: localVarRequestOptions,
|
|
760
|
-
};
|
|
761
|
-
}),
|
|
762
|
-
/**
|
|
763
|
-
* ============ 认证 ============
|
|
764
|
-
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
765
|
-
* @param {*} [options] Override http request option.
|
|
766
|
-
* @throws {RequiredError}
|
|
767
|
-
*/
|
|
768
|
-
auth2AdminServiceAuthAdminSignInEmail: (authAdminSignInEmailRequest_1, ...args_1) => __awaiter(this, [authAdminSignInEmailRequest_1, ...args_1], void 0, function* (authAdminSignInEmailRequest, options = {}) {
|
|
769
|
-
// verify required parameter 'authAdminSignInEmailRequest' is not null or undefined
|
|
770
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminSignInEmail', 'authAdminSignInEmailRequest', authAdminSignInEmailRequest);
|
|
771
|
-
const localVarPath = `/admin/auth/sign-in/email`;
|
|
772
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
773
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
774
|
-
let baseOptions;
|
|
775
|
-
if (configuration) {
|
|
776
|
-
baseOptions = configuration.baseOptions;
|
|
777
|
-
}
|
|
778
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
779
|
-
const localVarHeaderParameter = {};
|
|
780
|
-
const localVarQueryParameter = {};
|
|
781
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
782
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
783
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
784
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
785
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authAdminSignInEmailRequest, localVarRequestOptions, configuration);
|
|
786
|
-
return {
|
|
787
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
788
|
-
options: localVarRequestOptions,
|
|
789
|
-
};
|
|
790
|
-
}),
|
|
791
|
-
/**
|
|
792
|
-
*
|
|
793
|
-
* @param {object} body
|
|
794
|
-
* @param {*} [options] Override http request option.
|
|
795
|
-
* @throws {RequiredError}
|
|
796
|
-
*/
|
|
797
|
-
auth2AdminServiceAuthAdminSignOut: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
798
|
-
// verify required parameter 'body' is not null or undefined
|
|
799
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminSignOut', 'body', body);
|
|
800
|
-
const localVarPath = `/admin/authed/sign-out`;
|
|
801
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
802
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
803
|
-
let baseOptions;
|
|
804
|
-
if (configuration) {
|
|
805
|
-
baseOptions = configuration.baseOptions;
|
|
806
|
-
}
|
|
807
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
808
|
-
const localVarHeaderParameter = {};
|
|
809
|
-
const localVarQueryParameter = {};
|
|
810
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
811
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
812
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
813
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
814
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
815
|
-
return {
|
|
816
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
817
|
-
options: localVarRequestOptions,
|
|
818
|
-
};
|
|
819
|
-
}),
|
|
820
|
-
/**
|
|
821
|
-
* ============ 管理员信息管理 ============
|
|
822
|
-
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
823
|
-
* @param {*} [options] Override http request option.
|
|
824
|
-
* @throws {RequiredError}
|
|
825
|
-
*/
|
|
826
|
-
auth2AdminServiceAuthAdminUpdateUser: (authAdminUpdateUserRequest_1, ...args_1) => __awaiter(this, [authAdminUpdateUserRequest_1, ...args_1], void 0, function* (authAdminUpdateUserRequest, options = {}) {
|
|
827
|
-
// verify required parameter 'authAdminUpdateUserRequest' is not null or undefined
|
|
828
|
-
(0, common_1.assertParamExists)('auth2AdminServiceAuthAdminUpdateUser', 'authAdminUpdateUserRequest', authAdminUpdateUserRequest);
|
|
829
|
-
const localVarPath = `/admin/authed/update-user`;
|
|
830
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
831
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
832
|
-
let baseOptions;
|
|
833
|
-
if (configuration) {
|
|
834
|
-
baseOptions = configuration.baseOptions;
|
|
835
|
-
}
|
|
836
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
837
|
-
const localVarHeaderParameter = {};
|
|
838
|
-
const localVarQueryParameter = {};
|
|
839
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
840
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
841
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
842
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
843
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authAdminUpdateUserRequest, localVarRequestOptions, configuration);
|
|
844
|
-
return {
|
|
845
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
846
|
-
options: localVarRequestOptions,
|
|
847
|
-
};
|
|
848
|
-
}),
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
|
-
exports.Auth2AdminServiceApiAxiosParamCreator = Auth2AdminServiceApiAxiosParamCreator;
|
|
852
|
-
/**
|
|
853
|
-
* Auth2AdminServiceApi - functional programming interface
|
|
854
|
-
*/
|
|
855
|
-
const Auth2AdminServiceApiFp = function (configuration) {
|
|
856
|
-
const localVarAxiosParamCreator = (0, exports.Auth2AdminServiceApiAxiosParamCreator)(configuration);
|
|
857
|
-
return {
|
|
858
|
-
/**
|
|
859
|
-
* ============ 密码管理 ============
|
|
860
|
-
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
861
|
-
* @param {*} [options] Override http request option.
|
|
862
|
-
* @throws {RequiredError}
|
|
863
|
-
*/
|
|
864
|
-
auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options) {
|
|
865
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
866
|
-
var _a, _b, _c;
|
|
867
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options);
|
|
868
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
869
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
870
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
871
|
-
});
|
|
872
|
-
},
|
|
873
|
-
/**
|
|
874
|
-
*
|
|
875
|
-
* @param {*} [options] Override http request option.
|
|
876
|
-
* @throws {RequiredError}
|
|
877
|
-
*/
|
|
878
|
-
auth2AdminServiceAuthAdminGetSession(options) {
|
|
879
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
880
|
-
var _a, _b, _c;
|
|
881
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminGetSession(options);
|
|
882
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
883
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminGetSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
884
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
885
|
-
});
|
|
886
|
-
},
|
|
887
|
-
/**
|
|
888
|
-
* ============ 会话管理 ============
|
|
889
|
-
* @param {*} [options] Override http request option.
|
|
890
|
-
* @throws {RequiredError}
|
|
891
|
-
*/
|
|
892
|
-
auth2AdminServiceAuthAdminListSessions(options) {
|
|
893
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
894
|
-
var _a, _b, _c;
|
|
895
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminListSessions(options);
|
|
896
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
897
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminListSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
898
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
899
|
-
});
|
|
900
|
-
},
|
|
901
|
-
/**
|
|
902
|
-
*
|
|
903
|
-
* @param {object} body
|
|
904
|
-
* @param {*} [options] Override http request option.
|
|
905
|
-
* @throws {RequiredError}
|
|
906
|
-
*/
|
|
907
|
-
auth2AdminServiceAuthAdminRevokeOtherSessions(body, options) {
|
|
908
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
909
|
-
var _a, _b, _c;
|
|
910
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeOtherSessions(body, options);
|
|
911
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
912
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeOtherSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
913
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
914
|
-
});
|
|
915
|
-
},
|
|
916
|
-
/**
|
|
917
|
-
*
|
|
918
|
-
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
919
|
-
* @param {*} [options] Override http request option.
|
|
920
|
-
* @throws {RequiredError}
|
|
921
|
-
*/
|
|
922
|
-
auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options) {
|
|
923
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
924
|
-
var _a, _b, _c;
|
|
925
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options);
|
|
926
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
927
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
928
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
929
|
-
});
|
|
930
|
-
},
|
|
931
|
-
/**
|
|
932
|
-
*
|
|
933
|
-
* @param {object} body
|
|
934
|
-
* @param {*} [options] Override http request option.
|
|
935
|
-
* @throws {RequiredError}
|
|
936
|
-
*/
|
|
937
|
-
auth2AdminServiceAuthAdminRevokeSessions(body, options) {
|
|
938
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
939
|
-
var _a, _b, _c;
|
|
940
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeSessions(body, options);
|
|
941
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
942
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
943
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
944
|
-
});
|
|
945
|
-
},
|
|
946
|
-
/**
|
|
947
|
-
* ============ 认证 ============
|
|
948
|
-
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
949
|
-
* @param {*} [options] Override http request option.
|
|
950
|
-
* @throws {RequiredError}
|
|
951
|
-
*/
|
|
952
|
-
auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options) {
|
|
953
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
954
|
-
var _a, _b, _c;
|
|
955
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options);
|
|
956
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
957
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminSignInEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
958
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
959
|
-
});
|
|
960
|
-
},
|
|
961
|
-
/**
|
|
962
|
-
*
|
|
963
|
-
* @param {object} body
|
|
964
|
-
* @param {*} [options] Override http request option.
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
*/
|
|
967
|
-
auth2AdminServiceAuthAdminSignOut(body, options) {
|
|
968
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
969
|
-
var _a, _b, _c;
|
|
970
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminSignOut(body, options);
|
|
971
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
972
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminSignOut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
973
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
974
|
-
});
|
|
975
|
-
},
|
|
976
|
-
/**
|
|
977
|
-
* ============ 管理员信息管理 ============
|
|
978
|
-
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
979
|
-
* @param {*} [options] Override http request option.
|
|
980
|
-
* @throws {RequiredError}
|
|
981
|
-
*/
|
|
982
|
-
auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options) {
|
|
983
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
984
|
-
var _a, _b, _c;
|
|
985
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options);
|
|
986
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
987
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminUpdateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
988
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
989
|
-
});
|
|
990
|
-
},
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
exports.Auth2AdminServiceApiFp = Auth2AdminServiceApiFp;
|
|
994
|
-
/**
|
|
995
|
-
* Auth2AdminServiceApi - factory interface
|
|
996
|
-
*/
|
|
997
|
-
const Auth2AdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
998
|
-
const localVarFp = (0, exports.Auth2AdminServiceApiFp)(configuration);
|
|
999
|
-
return {
|
|
1000
|
-
/**
|
|
1001
|
-
* ============ 密码管理 ============
|
|
1002
|
-
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
1003
|
-
* @param {*} [options] Override http request option.
|
|
1004
|
-
* @throws {RequiredError}
|
|
1005
|
-
*/
|
|
1006
|
-
auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options) {
|
|
1007
|
-
return localVarFp.auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options).then((request) => request(axios, basePath));
|
|
1008
|
-
},
|
|
1009
|
-
/**
|
|
1010
|
-
*
|
|
1011
|
-
* @param {*} [options] Override http request option.
|
|
1012
|
-
* @throws {RequiredError}
|
|
1013
|
-
*/
|
|
1014
|
-
auth2AdminServiceAuthAdminGetSession(options) {
|
|
1015
|
-
return localVarFp.auth2AdminServiceAuthAdminGetSession(options).then((request) => request(axios, basePath));
|
|
1016
|
-
},
|
|
1017
|
-
/**
|
|
1018
|
-
* ============ 会话管理 ============
|
|
1019
|
-
* @param {*} [options] Override http request option.
|
|
1020
|
-
* @throws {RequiredError}
|
|
1021
|
-
*/
|
|
1022
|
-
auth2AdminServiceAuthAdminListSessions(options) {
|
|
1023
|
-
return localVarFp.auth2AdminServiceAuthAdminListSessions(options).then((request) => request(axios, basePath));
|
|
1024
|
-
},
|
|
1025
|
-
/**
|
|
1026
|
-
*
|
|
1027
|
-
* @param {object} body
|
|
1028
|
-
* @param {*} [options] Override http request option.
|
|
1029
|
-
* @throws {RequiredError}
|
|
1030
|
-
*/
|
|
1031
|
-
auth2AdminServiceAuthAdminRevokeOtherSessions(body, options) {
|
|
1032
|
-
return localVarFp.auth2AdminServiceAuthAdminRevokeOtherSessions(body, options).then((request) => request(axios, basePath));
|
|
1033
|
-
},
|
|
1034
|
-
/**
|
|
1035
|
-
*
|
|
1036
|
-
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
1037
|
-
* @param {*} [options] Override http request option.
|
|
1038
|
-
* @throws {RequiredError}
|
|
1039
|
-
*/
|
|
1040
|
-
auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options) {
|
|
1041
|
-
return localVarFp.auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options).then((request) => request(axios, basePath));
|
|
1042
|
-
},
|
|
1043
|
-
/**
|
|
1044
|
-
*
|
|
1045
|
-
* @param {object} body
|
|
1046
|
-
* @param {*} [options] Override http request option.
|
|
1047
|
-
* @throws {RequiredError}
|
|
1048
|
-
*/
|
|
1049
|
-
auth2AdminServiceAuthAdminRevokeSessions(body, options) {
|
|
1050
|
-
return localVarFp.auth2AdminServiceAuthAdminRevokeSessions(body, options).then((request) => request(axios, basePath));
|
|
1051
|
-
},
|
|
1052
|
-
/**
|
|
1053
|
-
* ============ 认证 ============
|
|
1054
|
-
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
1055
|
-
* @param {*} [options] Override http request option.
|
|
1056
|
-
* @throws {RequiredError}
|
|
1057
|
-
*/
|
|
1058
|
-
auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options) {
|
|
1059
|
-
return localVarFp.auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options).then((request) => request(axios, basePath));
|
|
1060
|
-
},
|
|
1061
|
-
/**
|
|
1062
|
-
*
|
|
1063
|
-
* @param {object} body
|
|
1064
|
-
* @param {*} [options] Override http request option.
|
|
1065
|
-
* @throws {RequiredError}
|
|
1066
|
-
*/
|
|
1067
|
-
auth2AdminServiceAuthAdminSignOut(body, options) {
|
|
1068
|
-
return localVarFp.auth2AdminServiceAuthAdminSignOut(body, options).then((request) => request(axios, basePath));
|
|
1069
|
-
},
|
|
1070
|
-
/**
|
|
1071
|
-
* ============ 管理员信息管理 ============
|
|
1072
|
-
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
1073
|
-
* @param {*} [options] Override http request option.
|
|
1074
|
-
* @throws {RequiredError}
|
|
1075
|
-
*/
|
|
1076
|
-
auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options) {
|
|
1077
|
-
return localVarFp.auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options).then((request) => request(axios, basePath));
|
|
1078
|
-
},
|
|
1079
|
-
};
|
|
1080
|
-
};
|
|
1081
|
-
exports.Auth2AdminServiceApiFactory = Auth2AdminServiceApiFactory;
|
|
1082
|
-
/**
|
|
1083
|
-
* Auth2AdminServiceApi - object-oriented interface
|
|
1084
|
-
*/
|
|
1085
|
-
class Auth2AdminServiceApi extends base_1.BaseAPI {
|
|
1086
|
-
/**
|
|
1087
|
-
* ============ 密码管理 ============
|
|
1088
|
-
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
1089
|
-
* @param {*} [options] Override http request option.
|
|
1090
|
-
* @throws {RequiredError}
|
|
1091
|
-
*/
|
|
1092
|
-
auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options) {
|
|
1093
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
*
|
|
1097
|
-
* @param {*} [options] Override http request option.
|
|
1098
|
-
* @throws {RequiredError}
|
|
1099
|
-
*/
|
|
1100
|
-
auth2AdminServiceAuthAdminGetSession(options) {
|
|
1101
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminGetSession(options).then((request) => request(this.axios, this.basePath));
|
|
1102
|
-
}
|
|
1103
|
-
/**
|
|
1104
|
-
* ============ 会话管理 ============
|
|
1105
|
-
* @param {*} [options] Override http request option.
|
|
1106
|
-
* @throws {RequiredError}
|
|
1107
|
-
*/
|
|
1108
|
-
auth2AdminServiceAuthAdminListSessions(options) {
|
|
1109
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminListSessions(options).then((request) => request(this.axios, this.basePath));
|
|
1110
|
-
}
|
|
1111
|
-
/**
|
|
1112
|
-
*
|
|
1113
|
-
* @param {object} body
|
|
1114
|
-
* @param {*} [options] Override http request option.
|
|
1115
|
-
* @throws {RequiredError}
|
|
1116
|
-
*/
|
|
1117
|
-
auth2AdminServiceAuthAdminRevokeOtherSessions(body, options) {
|
|
1118
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminRevokeOtherSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
*
|
|
1122
|
-
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
1123
|
-
* @param {*} [options] Override http request option.
|
|
1124
|
-
* @throws {RequiredError}
|
|
1125
|
-
*/
|
|
1126
|
-
auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options) {
|
|
1127
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
*
|
|
1131
|
-
* @param {object} body
|
|
1132
|
-
* @param {*} [options] Override http request option.
|
|
1133
|
-
* @throws {RequiredError}
|
|
1134
|
-
*/
|
|
1135
|
-
auth2AdminServiceAuthAdminRevokeSessions(body, options) {
|
|
1136
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminRevokeSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
1137
|
-
}
|
|
1138
|
-
/**
|
|
1139
|
-
* ============ 认证 ============
|
|
1140
|
-
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
1141
|
-
* @param {*} [options] Override http request option.
|
|
1142
|
-
* @throws {RequiredError}
|
|
1143
|
-
*/
|
|
1144
|
-
auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options) {
|
|
1145
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1146
|
-
}
|
|
1147
|
-
/**
|
|
1148
|
-
*
|
|
1149
|
-
* @param {object} body
|
|
1150
|
-
* @param {*} [options] Override http request option.
|
|
1151
|
-
* @throws {RequiredError}
|
|
1152
|
-
*/
|
|
1153
|
-
auth2AdminServiceAuthAdminSignOut(body, options) {
|
|
1154
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminSignOut(body, options).then((request) => request(this.axios, this.basePath));
|
|
1155
|
-
}
|
|
1156
|
-
/**
|
|
1157
|
-
* ============ 管理员信息管理 ============
|
|
1158
|
-
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
1159
|
-
* @param {*} [options] Override http request option.
|
|
1160
|
-
* @throws {RequiredError}
|
|
1161
|
-
*/
|
|
1162
|
-
auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options) {
|
|
1163
|
-
return (0, exports.Auth2AdminServiceApiFp)(this.configuration).auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
exports.Auth2AdminServiceApi = Auth2AdminServiceApi;
|
|
1167
|
-
/**
|
|
1168
|
-
* Auth2UserServiceApi - axios parameter creator
|
|
1169
|
-
*/
|
|
1170
|
-
const Auth2UserServiceApiAxiosParamCreator = function (configuration) {
|
|
1171
|
-
return {
|
|
1172
|
-
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
1175
|
-
* @param {*} [options] Override http request option.
|
|
1176
|
-
* @throws {RequiredError}
|
|
1177
|
-
*/
|
|
1178
|
-
auth2UserServiceAuthChangeEmail: (authChangeEmailRequest_1, ...args_1) => __awaiter(this, [authChangeEmailRequest_1, ...args_1], void 0, function* (authChangeEmailRequest, options = {}) {
|
|
1179
|
-
// verify required parameter 'authChangeEmailRequest' is not null or undefined
|
|
1180
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthChangeEmail', 'authChangeEmailRequest', authChangeEmailRequest);
|
|
1181
|
-
const localVarPath = `/authed/v1/change-email`;
|
|
1182
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1183
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1184
|
-
let baseOptions;
|
|
1185
|
-
if (configuration) {
|
|
1186
|
-
baseOptions = configuration.baseOptions;
|
|
1187
|
-
}
|
|
1188
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1189
|
-
const localVarHeaderParameter = {};
|
|
1190
|
-
const localVarQueryParameter = {};
|
|
1191
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1192
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1193
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1194
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1195
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authChangeEmailRequest, localVarRequestOptions, configuration);
|
|
1196
|
-
return {
|
|
1197
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1198
|
-
options: localVarRequestOptions,
|
|
1199
|
-
};
|
|
1200
|
-
}),
|
|
1201
|
-
/**
|
|
1202
|
-
* ============ 密码管理 ============
|
|
1203
|
-
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
1204
|
-
* @param {*} [options] Override http request option.
|
|
1205
|
-
* @throws {RequiredError}
|
|
1206
|
-
*/
|
|
1207
|
-
auth2UserServiceAuthChangePassword: (authChangePasswordRequest_1, ...args_1) => __awaiter(this, [authChangePasswordRequest_1, ...args_1], void 0, function* (authChangePasswordRequest, options = {}) {
|
|
1208
|
-
// verify required parameter 'authChangePasswordRequest' is not null or undefined
|
|
1209
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthChangePassword', 'authChangePasswordRequest', authChangePasswordRequest);
|
|
1210
|
-
const localVarPath = `/authed/v1/change-password`;
|
|
1211
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1212
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1213
|
-
let baseOptions;
|
|
1214
|
-
if (configuration) {
|
|
1215
|
-
baseOptions = configuration.baseOptions;
|
|
1216
|
-
}
|
|
1217
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1218
|
-
const localVarHeaderParameter = {};
|
|
1219
|
-
const localVarQueryParameter = {};
|
|
1220
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1221
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1222
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1223
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1224
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authChangePasswordRequest, localVarRequestOptions, configuration);
|
|
1225
|
-
return {
|
|
1226
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1227
|
-
options: localVarRequestOptions,
|
|
1228
|
-
};
|
|
1229
|
-
}),
|
|
1230
|
-
/**
|
|
1231
|
-
*
|
|
1232
|
-
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
1233
|
-
* @param {*} [options] Override http request option.
|
|
1234
|
-
* @throws {RequiredError}
|
|
1235
|
-
*/
|
|
1236
|
-
auth2UserServiceAuthDeleteUser: (authDeleteUserRequest_1, ...args_1) => __awaiter(this, [authDeleteUserRequest_1, ...args_1], void 0, function* (authDeleteUserRequest, options = {}) {
|
|
1237
|
-
// verify required parameter 'authDeleteUserRequest' is not null or undefined
|
|
1238
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthDeleteUser', 'authDeleteUserRequest', authDeleteUserRequest);
|
|
1239
|
-
const localVarPath = `/authed/v1/delete-user`;
|
|
1240
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1241
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1242
|
-
let baseOptions;
|
|
1243
|
-
if (configuration) {
|
|
1244
|
-
baseOptions = configuration.baseOptions;
|
|
1245
|
-
}
|
|
1246
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1247
|
-
const localVarHeaderParameter = {};
|
|
1248
|
-
const localVarQueryParameter = {};
|
|
1249
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1250
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1251
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1252
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1253
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authDeleteUserRequest, localVarRequestOptions, configuration);
|
|
1254
|
-
return {
|
|
1255
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1256
|
-
options: localVarRequestOptions,
|
|
1257
|
-
};
|
|
1258
|
-
}),
|
|
1259
|
-
/**
|
|
1260
|
-
*
|
|
1261
|
-
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
1262
|
-
* @param {*} [options] Override http request option.
|
|
1263
|
-
* @throws {RequiredError}
|
|
1264
|
-
*/
|
|
1265
|
-
auth2UserServiceAuthGetAccessToken: (authGetAccessTokenRequest_1, ...args_1) => __awaiter(this, [authGetAccessTokenRequest_1, ...args_1], void 0, function* (authGetAccessTokenRequest, options = {}) {
|
|
1266
|
-
// verify required parameter 'authGetAccessTokenRequest' is not null or undefined
|
|
1267
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthGetAccessToken', 'authGetAccessTokenRequest', authGetAccessTokenRequest);
|
|
1268
|
-
const localVarPath = `/authed/v1/get-access-token`;
|
|
1269
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1270
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1271
|
-
let baseOptions;
|
|
1272
|
-
if (configuration) {
|
|
1273
|
-
baseOptions = configuration.baseOptions;
|
|
1274
|
-
}
|
|
1275
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1276
|
-
const localVarHeaderParameter = {};
|
|
1277
|
-
const localVarQueryParameter = {};
|
|
1278
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1279
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1280
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1281
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1282
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authGetAccessTokenRequest, localVarRequestOptions, configuration);
|
|
1283
|
-
return {
|
|
1284
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1285
|
-
options: localVarRequestOptions,
|
|
1286
|
-
};
|
|
1287
|
-
}),
|
|
1288
|
-
/**
|
|
1289
|
-
*
|
|
1290
|
-
* @param {*} [options] Override http request option.
|
|
1291
|
-
* @throws {RequiredError}
|
|
1292
|
-
*/
|
|
1293
|
-
auth2UserServiceAuthGetAccountInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1294
|
-
const localVarPath = `/authed/v1/account-info`;
|
|
1295
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1296
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1297
|
-
let baseOptions;
|
|
1298
|
-
if (configuration) {
|
|
1299
|
-
baseOptions = configuration.baseOptions;
|
|
1300
|
-
}
|
|
1301
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1302
|
-
const localVarHeaderParameter = {};
|
|
1303
|
-
const localVarQueryParameter = {};
|
|
1304
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1305
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1306
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1307
|
-
return {
|
|
1308
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1309
|
-
options: localVarRequestOptions,
|
|
1310
|
-
};
|
|
1311
|
-
}),
|
|
1312
|
-
/**
|
|
1313
|
-
*
|
|
1314
|
-
* @param {*} [options] Override http request option.
|
|
1315
|
-
* @throws {RequiredError}
|
|
1316
|
-
*/
|
|
1317
|
-
auth2UserServiceAuthGetSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1318
|
-
const localVarPath = `/authed/v1/get-session`;
|
|
1319
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1320
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1321
|
-
let baseOptions;
|
|
1322
|
-
if (configuration) {
|
|
1323
|
-
baseOptions = configuration.baseOptions;
|
|
1324
|
-
}
|
|
1325
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1326
|
-
const localVarHeaderParameter = {};
|
|
1327
|
-
const localVarQueryParameter = {};
|
|
1328
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1331
|
-
return {
|
|
1332
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1333
|
-
options: localVarRequestOptions,
|
|
1334
|
-
};
|
|
1335
|
-
}),
|
|
1336
|
-
/**
|
|
1337
|
-
* ============ 账号关联 ============
|
|
1338
|
-
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
1339
|
-
* @param {*} [options] Override http request option.
|
|
1340
|
-
* @throws {RequiredError}
|
|
1341
|
-
*/
|
|
1342
|
-
auth2UserServiceAuthLinkSocial: (authLinkSocialRequest_1, ...args_1) => __awaiter(this, [authLinkSocialRequest_1, ...args_1], void 0, function* (authLinkSocialRequest, options = {}) {
|
|
1343
|
-
// verify required parameter 'authLinkSocialRequest' is not null or undefined
|
|
1344
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthLinkSocial', 'authLinkSocialRequest', authLinkSocialRequest);
|
|
1345
|
-
const localVarPath = `/authed/v1/link-social`;
|
|
1346
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1347
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1348
|
-
let baseOptions;
|
|
1349
|
-
if (configuration) {
|
|
1350
|
-
baseOptions = configuration.baseOptions;
|
|
1351
|
-
}
|
|
1352
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1353
|
-
const localVarHeaderParameter = {};
|
|
1354
|
-
const localVarQueryParameter = {};
|
|
1355
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1356
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1357
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1358
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1359
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authLinkSocialRequest, localVarRequestOptions, configuration);
|
|
1360
|
-
return {
|
|
1361
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1362
|
-
options: localVarRequestOptions,
|
|
1363
|
-
};
|
|
1364
|
-
}),
|
|
1365
|
-
/**
|
|
1366
|
-
*
|
|
1367
|
-
* @param {*} [options] Override http request option.
|
|
1368
|
-
* @throws {RequiredError}
|
|
1369
|
-
*/
|
|
1370
|
-
auth2UserServiceAuthListAccounts: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1371
|
-
const localVarPath = `/authed/v1/list-accounts`;
|
|
1372
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1373
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1374
|
-
let baseOptions;
|
|
1375
|
-
if (configuration) {
|
|
1376
|
-
baseOptions = configuration.baseOptions;
|
|
1377
|
-
}
|
|
1378
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1379
|
-
const localVarHeaderParameter = {};
|
|
1380
|
-
const localVarQueryParameter = {};
|
|
1381
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1382
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1383
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1384
|
-
return {
|
|
1385
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1386
|
-
options: localVarRequestOptions,
|
|
1387
|
-
};
|
|
1388
|
-
}),
|
|
1389
|
-
/**
|
|
1390
|
-
* ============ 会话管理 ============
|
|
1391
|
-
* @param {*} [options] Override http request option.
|
|
1392
|
-
* @throws {RequiredError}
|
|
1393
|
-
*/
|
|
1394
|
-
auth2UserServiceAuthListSessions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1395
|
-
const localVarPath = `/authed/v1/list-sessions`;
|
|
1396
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1397
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1398
|
-
let baseOptions;
|
|
1399
|
-
if (configuration) {
|
|
1400
|
-
baseOptions = configuration.baseOptions;
|
|
1401
|
-
}
|
|
1402
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1403
|
-
const localVarHeaderParameter = {};
|
|
1404
|
-
const localVarQueryParameter = {};
|
|
1405
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1406
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1407
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1408
|
-
return {
|
|
1409
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1410
|
-
options: localVarRequestOptions,
|
|
1411
|
-
};
|
|
1412
|
-
}),
|
|
1413
|
-
/**
|
|
1414
|
-
*
|
|
1415
|
-
* @param {string} platform
|
|
1416
|
-
* @param {string} [code]
|
|
1417
|
-
* @param {string} [state]
|
|
1418
|
-
* @param {*} [options] Override http request option.
|
|
1419
|
-
* @throws {RequiredError}
|
|
1420
|
-
*/
|
|
1421
|
-
auth2UserServiceAuthOAuth2Callback: (platform_1, code_1, state_1, ...args_1) => __awaiter(this, [platform_1, code_1, state_1, ...args_1], void 0, function* (platform, code, state, options = {}) {
|
|
1422
|
-
// verify required parameter 'platform' is not null or undefined
|
|
1423
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthOAuth2Callback', 'platform', platform);
|
|
1424
|
-
const localVarPath = `/oauth2/{platform}/callback`
|
|
1425
|
-
.replace(`{${"platform"}}`, encodeURIComponent(String(platform)));
|
|
1426
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1427
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1428
|
-
let baseOptions;
|
|
1429
|
-
if (configuration) {
|
|
1430
|
-
baseOptions = configuration.baseOptions;
|
|
1431
|
-
}
|
|
1432
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1433
|
-
const localVarHeaderParameter = {};
|
|
1434
|
-
const localVarQueryParameter = {};
|
|
1435
|
-
if (code !== undefined) {
|
|
1436
|
-
localVarQueryParameter['code'] = code;
|
|
1437
|
-
}
|
|
1438
|
-
if (state !== undefined) {
|
|
1439
|
-
localVarQueryParameter['state'] = state;
|
|
1440
|
-
}
|
|
1441
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1442
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1443
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1444
|
-
return {
|
|
1445
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1446
|
-
options: localVarRequestOptions,
|
|
1447
|
-
};
|
|
1448
|
-
}),
|
|
1449
|
-
/**
|
|
1450
|
-
* ============ Token 管理 ============
|
|
1451
|
-
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
1452
|
-
* @param {*} [options] Override http request option.
|
|
1453
|
-
* @throws {RequiredError}
|
|
1454
|
-
*/
|
|
1455
|
-
auth2UserServiceAuthRefreshToken: (authRefreshTokenRequest_1, ...args_1) => __awaiter(this, [authRefreshTokenRequest_1, ...args_1], void 0, function* (authRefreshTokenRequest, options = {}) {
|
|
1456
|
-
// verify required parameter 'authRefreshTokenRequest' is not null or undefined
|
|
1457
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthRefreshToken', 'authRefreshTokenRequest', authRefreshTokenRequest);
|
|
1458
|
-
const localVarPath = `/authed/v1/refresh-token`;
|
|
1459
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1460
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1461
|
-
let baseOptions;
|
|
1462
|
-
if (configuration) {
|
|
1463
|
-
baseOptions = configuration.baseOptions;
|
|
1464
|
-
}
|
|
1465
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1466
|
-
const localVarHeaderParameter = {};
|
|
1467
|
-
const localVarQueryParameter = {};
|
|
1468
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1469
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1470
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1471
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1472
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authRefreshTokenRequest, localVarRequestOptions, configuration);
|
|
1473
|
-
return {
|
|
1474
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1475
|
-
options: localVarRequestOptions,
|
|
1476
|
-
};
|
|
1477
|
-
}),
|
|
1478
|
-
/**
|
|
1479
|
-
*
|
|
1480
|
-
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
1481
|
-
* @param {*} [options] Override http request option.
|
|
1482
|
-
* @throws {RequiredError}
|
|
1483
|
-
*/
|
|
1484
|
-
auth2UserServiceAuthRequestPasswordReset: (authRequestPasswordResetRequest_1, ...args_1) => __awaiter(this, [authRequestPasswordResetRequest_1, ...args_1], void 0, function* (authRequestPasswordResetRequest, options = {}) {
|
|
1485
|
-
// verify required parameter 'authRequestPasswordResetRequest' is not null or undefined
|
|
1486
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthRequestPasswordReset', 'authRequestPasswordResetRequest', authRequestPasswordResetRequest);
|
|
1487
|
-
const localVarPath = `/authed/v1/request-password-reset`;
|
|
1488
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1489
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1490
|
-
let baseOptions;
|
|
1491
|
-
if (configuration) {
|
|
1492
|
-
baseOptions = configuration.baseOptions;
|
|
1493
|
-
}
|
|
1494
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1495
|
-
const localVarHeaderParameter = {};
|
|
1496
|
-
const localVarQueryParameter = {};
|
|
1497
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1498
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1499
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1500
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1501
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authRequestPasswordResetRequest, localVarRequestOptions, configuration);
|
|
1502
|
-
return {
|
|
1503
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1504
|
-
options: localVarRequestOptions,
|
|
1505
|
-
};
|
|
1506
|
-
}),
|
|
1507
|
-
/**
|
|
1508
|
-
*
|
|
1509
|
-
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
1510
|
-
* @param {*} [options] Override http request option.
|
|
1511
|
-
* @throws {RequiredError}
|
|
1512
|
-
*/
|
|
1513
|
-
auth2UserServiceAuthResetPassword: (authResetPasswordRequest_1, ...args_1) => __awaiter(this, [authResetPasswordRequest_1, ...args_1], void 0, function* (authResetPasswordRequest, options = {}) {
|
|
1514
|
-
// verify required parameter 'authResetPasswordRequest' is not null or undefined
|
|
1515
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthResetPassword', 'authResetPasswordRequest', authResetPasswordRequest);
|
|
1516
|
-
const localVarPath = `/authed/v1/reset-password`;
|
|
1517
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1518
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1519
|
-
let baseOptions;
|
|
1520
|
-
if (configuration) {
|
|
1521
|
-
baseOptions = configuration.baseOptions;
|
|
1522
|
-
}
|
|
1523
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1524
|
-
const localVarHeaderParameter = {};
|
|
1525
|
-
const localVarQueryParameter = {};
|
|
1526
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1527
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1528
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1529
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1530
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authResetPasswordRequest, localVarRequestOptions, configuration);
|
|
1531
|
-
return {
|
|
1532
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1533
|
-
options: localVarRequestOptions,
|
|
1534
|
-
};
|
|
1535
|
-
}),
|
|
1536
|
-
/**
|
|
1537
|
-
*
|
|
1538
|
-
* @param {object} body
|
|
1539
|
-
* @param {*} [options] Override http request option.
|
|
1540
|
-
* @throws {RequiredError}
|
|
1541
|
-
*/
|
|
1542
|
-
auth2UserServiceAuthRevokeOtherSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1543
|
-
// verify required parameter 'body' is not null or undefined
|
|
1544
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthRevokeOtherSessions', 'body', body);
|
|
1545
|
-
const localVarPath = `/authed/v1/revoke-other-sessions`;
|
|
1546
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1547
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1548
|
-
let baseOptions;
|
|
1549
|
-
if (configuration) {
|
|
1550
|
-
baseOptions = configuration.baseOptions;
|
|
1551
|
-
}
|
|
1552
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1553
|
-
const localVarHeaderParameter = {};
|
|
1554
|
-
const localVarQueryParameter = {};
|
|
1555
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1556
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1557
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1558
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1559
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1560
|
-
return {
|
|
1561
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1562
|
-
options: localVarRequestOptions,
|
|
1563
|
-
};
|
|
1564
|
-
}),
|
|
1565
|
-
/**
|
|
1566
|
-
*
|
|
1567
|
-
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
1568
|
-
* @param {*} [options] Override http request option.
|
|
1569
|
-
* @throws {RequiredError}
|
|
1570
|
-
*/
|
|
1571
|
-
auth2UserServiceAuthRevokeSession: (authRevokeSessionRequest_1, ...args_1) => __awaiter(this, [authRevokeSessionRequest_1, ...args_1], void 0, function* (authRevokeSessionRequest, options = {}) {
|
|
1572
|
-
// verify required parameter 'authRevokeSessionRequest' is not null or undefined
|
|
1573
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthRevokeSession', 'authRevokeSessionRequest', authRevokeSessionRequest);
|
|
1574
|
-
const localVarPath = `/authed/v1/revoke-session`;
|
|
1575
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1576
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1577
|
-
let baseOptions;
|
|
1578
|
-
if (configuration) {
|
|
1579
|
-
baseOptions = configuration.baseOptions;
|
|
1580
|
-
}
|
|
1581
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1582
|
-
const localVarHeaderParameter = {};
|
|
1583
|
-
const localVarQueryParameter = {};
|
|
1584
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1585
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1586
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1587
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1588
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authRevokeSessionRequest, localVarRequestOptions, configuration);
|
|
1589
|
-
return {
|
|
1590
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1591
|
-
options: localVarRequestOptions,
|
|
1592
|
-
};
|
|
1593
|
-
}),
|
|
1594
|
-
/**
|
|
1595
|
-
*
|
|
1596
|
-
* @param {object} body
|
|
1597
|
-
* @param {*} [options] Override http request option.
|
|
1598
|
-
* @throws {RequiredError}
|
|
1599
|
-
*/
|
|
1600
|
-
auth2UserServiceAuthRevokeSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1601
|
-
// verify required parameter 'body' is not null or undefined
|
|
1602
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthRevokeSessions', 'body', body);
|
|
1603
|
-
const localVarPath = `/authed/v1/revoke-sessions`;
|
|
1604
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1605
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1606
|
-
let baseOptions;
|
|
1607
|
-
if (configuration) {
|
|
1608
|
-
baseOptions = configuration.baseOptions;
|
|
1609
|
-
}
|
|
1610
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1611
|
-
const localVarHeaderParameter = {};
|
|
1612
|
-
const localVarQueryParameter = {};
|
|
1613
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1614
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1615
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1616
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1617
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1618
|
-
return {
|
|
1619
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1620
|
-
options: localVarRequestOptions,
|
|
1621
|
-
};
|
|
1622
|
-
}),
|
|
1623
|
-
/**
|
|
1624
|
-
* ============ 邮箱验证 ============
|
|
1625
|
-
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
1626
|
-
* @param {*} [options] Override http request option.
|
|
1627
|
-
* @throws {RequiredError}
|
|
1628
|
-
*/
|
|
1629
|
-
auth2UserServiceAuthSendVerificationEmail: (authSendVerificationEmailRequest_1, ...args_1) => __awaiter(this, [authSendVerificationEmailRequest_1, ...args_1], void 0, function* (authSendVerificationEmailRequest, options = {}) {
|
|
1630
|
-
// verify required parameter 'authSendVerificationEmailRequest' is not null or undefined
|
|
1631
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthSendVerificationEmail', 'authSendVerificationEmailRequest', authSendVerificationEmailRequest);
|
|
1632
|
-
const localVarPath = `/authed/v1/send-verification-email`;
|
|
1633
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1634
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1635
|
-
let baseOptions;
|
|
1636
|
-
if (configuration) {
|
|
1637
|
-
baseOptions = configuration.baseOptions;
|
|
1638
|
-
}
|
|
1639
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1640
|
-
const localVarHeaderParameter = {};
|
|
1641
|
-
const localVarQueryParameter = {};
|
|
1642
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1643
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1644
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1645
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1646
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authSendVerificationEmailRequest, localVarRequestOptions, configuration);
|
|
1647
|
-
return {
|
|
1648
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1649
|
-
options: localVarRequestOptions,
|
|
1650
|
-
};
|
|
1651
|
-
}),
|
|
1652
|
-
/**
|
|
1653
|
-
*
|
|
1654
|
-
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
1655
|
-
* @param {*} [options] Override http request option.
|
|
1656
|
-
* @throws {RequiredError}
|
|
1657
|
-
*/
|
|
1658
|
-
auth2UserServiceAuthSignInEmail: (authSignInEmailRequest_1, ...args_1) => __awaiter(this, [authSignInEmailRequest_1, ...args_1], void 0, function* (authSignInEmailRequest, options = {}) {
|
|
1659
|
-
// verify required parameter 'authSignInEmailRequest' is not null or undefined
|
|
1660
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthSignInEmail', 'authSignInEmailRequest', authSignInEmailRequest);
|
|
1661
|
-
const localVarPath = `/auth/v1/sign-in/email`;
|
|
1662
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1663
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1664
|
-
let baseOptions;
|
|
1665
|
-
if (configuration) {
|
|
1666
|
-
baseOptions = configuration.baseOptions;
|
|
1667
|
-
}
|
|
1668
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1669
|
-
const localVarHeaderParameter = {};
|
|
1670
|
-
const localVarQueryParameter = {};
|
|
1671
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1672
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1673
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1674
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1675
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authSignInEmailRequest, localVarRequestOptions, configuration);
|
|
1676
|
-
return {
|
|
1677
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1678
|
-
options: localVarRequestOptions,
|
|
1679
|
-
};
|
|
1680
|
-
}),
|
|
1681
|
-
/**
|
|
1682
|
-
*
|
|
1683
|
-
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
1684
|
-
* @param {*} [options] Override http request option.
|
|
1685
|
-
* @throws {RequiredError}
|
|
1686
|
-
*/
|
|
1687
|
-
auth2UserServiceAuthSignInSocial: (authSignInSocialRequest_1, ...args_1) => __awaiter(this, [authSignInSocialRequest_1, ...args_1], void 0, function* (authSignInSocialRequest, options = {}) {
|
|
1688
|
-
// verify required parameter 'authSignInSocialRequest' is not null or undefined
|
|
1689
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthSignInSocial', 'authSignInSocialRequest', authSignInSocialRequest);
|
|
1690
|
-
const localVarPath = `/auth/v1/sign-in/social`;
|
|
1691
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1692
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1693
|
-
let baseOptions;
|
|
1694
|
-
if (configuration) {
|
|
1695
|
-
baseOptions = configuration.baseOptions;
|
|
1696
|
-
}
|
|
1697
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1698
|
-
const localVarHeaderParameter = {};
|
|
1699
|
-
const localVarQueryParameter = {};
|
|
1700
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1701
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1702
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1703
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1704
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authSignInSocialRequest, localVarRequestOptions, configuration);
|
|
1705
|
-
return {
|
|
1706
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1707
|
-
options: localVarRequestOptions,
|
|
1708
|
-
};
|
|
1709
|
-
}),
|
|
1710
|
-
/**
|
|
1711
|
-
*
|
|
1712
|
-
* @param {object} body
|
|
1713
|
-
* @param {*} [options] Override http request option.
|
|
1714
|
-
* @throws {RequiredError}
|
|
1715
|
-
*/
|
|
1716
|
-
auth2UserServiceAuthSignOut: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1717
|
-
// verify required parameter 'body' is not null or undefined
|
|
1718
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthSignOut', 'body', body);
|
|
1719
|
-
const localVarPath = `/authed/v1/sign-out`;
|
|
1720
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1721
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1722
|
-
let baseOptions;
|
|
1723
|
-
if (configuration) {
|
|
1724
|
-
baseOptions = configuration.baseOptions;
|
|
1725
|
-
}
|
|
1726
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1727
|
-
const localVarHeaderParameter = {};
|
|
1728
|
-
const localVarQueryParameter = {};
|
|
1729
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1730
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1731
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1732
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1733
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1734
|
-
return {
|
|
1735
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1736
|
-
options: localVarRequestOptions,
|
|
1737
|
-
};
|
|
1738
|
-
}),
|
|
1739
|
-
/**
|
|
1740
|
-
* ============ 认证 ============
|
|
1741
|
-
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
1742
|
-
* @param {*} [options] Override http request option.
|
|
1743
|
-
* @throws {RequiredError}
|
|
1744
|
-
*/
|
|
1745
|
-
auth2UserServiceAuthSignUpEmail: (authSignUpEmailRequest_1, ...args_1) => __awaiter(this, [authSignUpEmailRequest_1, ...args_1], void 0, function* (authSignUpEmailRequest, options = {}) {
|
|
1746
|
-
// verify required parameter 'authSignUpEmailRequest' is not null or undefined
|
|
1747
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthSignUpEmail', 'authSignUpEmailRequest', authSignUpEmailRequest);
|
|
1748
|
-
const localVarPath = `/auth/v1/sign-up/email`;
|
|
1749
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1750
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1751
|
-
let baseOptions;
|
|
1752
|
-
if (configuration) {
|
|
1753
|
-
baseOptions = configuration.baseOptions;
|
|
1754
|
-
}
|
|
1755
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1756
|
-
const localVarHeaderParameter = {};
|
|
1757
|
-
const localVarQueryParameter = {};
|
|
1758
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1759
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1760
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1761
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1762
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authSignUpEmailRequest, localVarRequestOptions, configuration);
|
|
1763
|
-
return {
|
|
1764
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1765
|
-
options: localVarRequestOptions,
|
|
1766
|
-
};
|
|
1767
|
-
}),
|
|
1768
|
-
/**
|
|
1769
|
-
*
|
|
1770
|
-
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
1771
|
-
* @param {*} [options] Override http request option.
|
|
1772
|
-
* @throws {RequiredError}
|
|
1773
|
-
*/
|
|
1774
|
-
auth2UserServiceAuthUnlinkAccount: (authUnlinkAccountRequest_1, ...args_1) => __awaiter(this, [authUnlinkAccountRequest_1, ...args_1], void 0, function* (authUnlinkAccountRequest, options = {}) {
|
|
1775
|
-
// verify required parameter 'authUnlinkAccountRequest' is not null or undefined
|
|
1776
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthUnlinkAccount', 'authUnlinkAccountRequest', authUnlinkAccountRequest);
|
|
1777
|
-
const localVarPath = `/authed/v1/unlink-account`;
|
|
1778
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1779
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1780
|
-
let baseOptions;
|
|
1781
|
-
if (configuration) {
|
|
1782
|
-
baseOptions = configuration.baseOptions;
|
|
1783
|
-
}
|
|
1784
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1785
|
-
const localVarHeaderParameter = {};
|
|
1786
|
-
const localVarQueryParameter = {};
|
|
1787
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1788
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1789
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1790
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1791
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authUnlinkAccountRequest, localVarRequestOptions, configuration);
|
|
1792
|
-
return {
|
|
1793
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1794
|
-
options: localVarRequestOptions,
|
|
1795
|
-
};
|
|
1796
|
-
}),
|
|
1797
|
-
/**
|
|
1798
|
-
* ============ 用户管理 ============
|
|
1799
|
-
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
1800
|
-
* @param {*} [options] Override http request option.
|
|
1801
|
-
* @throws {RequiredError}
|
|
1802
|
-
*/
|
|
1803
|
-
auth2UserServiceAuthUpdateUser: (authUpdateUserRequest_1, ...args_1) => __awaiter(this, [authUpdateUserRequest_1, ...args_1], void 0, function* (authUpdateUserRequest, options = {}) {
|
|
1804
|
-
// verify required parameter 'authUpdateUserRequest' is not null or undefined
|
|
1805
|
-
(0, common_1.assertParamExists)('auth2UserServiceAuthUpdateUser', 'authUpdateUserRequest', authUpdateUserRequest);
|
|
1806
|
-
const localVarPath = `/authed/v1/update-user`;
|
|
1807
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1808
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1809
|
-
let baseOptions;
|
|
1810
|
-
if (configuration) {
|
|
1811
|
-
baseOptions = configuration.baseOptions;
|
|
1812
|
-
}
|
|
1813
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1814
|
-
const localVarHeaderParameter = {};
|
|
1815
|
-
const localVarQueryParameter = {};
|
|
1816
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1817
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1818
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1819
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1820
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authUpdateUserRequest, localVarRequestOptions, configuration);
|
|
1821
|
-
return {
|
|
1822
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1823
|
-
options: localVarRequestOptions,
|
|
1824
|
-
};
|
|
1825
|
-
}),
|
|
1826
|
-
/**
|
|
1827
|
-
*
|
|
1828
|
-
* @param {string} [email]
|
|
1829
|
-
* @param {string} [authCode]
|
|
1830
|
-
* @param {string} [callbackUrl]
|
|
1831
|
-
* @param {*} [options] Override http request option.
|
|
1832
|
-
* @throws {RequiredError}
|
|
1833
|
-
*/
|
|
1834
|
-
auth2UserServiceAuthVerifyEmail: (email_1, authCode_1, callbackUrl_1, ...args_1) => __awaiter(this, [email_1, authCode_1, callbackUrl_1, ...args_1], void 0, function* (email, authCode, callbackUrl, options = {}) {
|
|
1835
|
-
const localVarPath = `/authed/v1/verify-email`;
|
|
1836
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1837
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1838
|
-
let baseOptions;
|
|
1839
|
-
if (configuration) {
|
|
1840
|
-
baseOptions = configuration.baseOptions;
|
|
1841
|
-
}
|
|
1842
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1843
|
-
const localVarHeaderParameter = {};
|
|
1844
|
-
const localVarQueryParameter = {};
|
|
1845
|
-
if (email !== undefined) {
|
|
1846
|
-
localVarQueryParameter['email'] = email;
|
|
1847
|
-
}
|
|
1848
|
-
if (authCode !== undefined) {
|
|
1849
|
-
localVarQueryParameter['auth_code'] = authCode;
|
|
1850
|
-
}
|
|
1851
|
-
if (callbackUrl !== undefined) {
|
|
1852
|
-
localVarQueryParameter['callback_url'] = callbackUrl;
|
|
1853
|
-
}
|
|
1854
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1855
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1857
|
-
return {
|
|
1858
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1859
|
-
options: localVarRequestOptions,
|
|
1860
|
-
};
|
|
1861
|
-
}),
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
exports.Auth2UserServiceApiAxiosParamCreator = Auth2UserServiceApiAxiosParamCreator;
|
|
1865
|
-
/**
|
|
1866
|
-
* Auth2UserServiceApi - functional programming interface
|
|
1867
|
-
*/
|
|
1868
|
-
const Auth2UserServiceApiFp = function (configuration) {
|
|
1869
|
-
const localVarAxiosParamCreator = (0, exports.Auth2UserServiceApiAxiosParamCreator)(configuration);
|
|
1870
|
-
return {
|
|
1871
|
-
/**
|
|
1872
|
-
*
|
|
1873
|
-
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
1874
|
-
* @param {*} [options] Override http request option.
|
|
1875
|
-
* @throws {RequiredError}
|
|
1876
|
-
*/
|
|
1877
|
-
auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options) {
|
|
1878
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1879
|
-
var _a, _b, _c;
|
|
1880
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options);
|
|
1881
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1882
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthChangeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1883
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1884
|
-
});
|
|
1885
|
-
},
|
|
1886
|
-
/**
|
|
1887
|
-
* ============ 密码管理 ============
|
|
1888
|
-
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
1889
|
-
* @param {*} [options] Override http request option.
|
|
1890
|
-
* @throws {RequiredError}
|
|
1891
|
-
*/
|
|
1892
|
-
auth2UserServiceAuthChangePassword(authChangePasswordRequest, options) {
|
|
1893
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1894
|
-
var _a, _b, _c;
|
|
1895
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthChangePassword(authChangePasswordRequest, options);
|
|
1896
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1897
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1898
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1899
|
-
});
|
|
1900
|
-
},
|
|
1901
|
-
/**
|
|
1902
|
-
*
|
|
1903
|
-
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
1904
|
-
* @param {*} [options] Override http request option.
|
|
1905
|
-
* @throws {RequiredError}
|
|
1906
|
-
*/
|
|
1907
|
-
auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options) {
|
|
1908
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1909
|
-
var _a, _b, _c;
|
|
1910
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options);
|
|
1911
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1912
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthDeleteUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1913
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1914
|
-
});
|
|
1915
|
-
},
|
|
1916
|
-
/**
|
|
1917
|
-
*
|
|
1918
|
-
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
1919
|
-
* @param {*} [options] Override http request option.
|
|
1920
|
-
* @throws {RequiredError}
|
|
1921
|
-
*/
|
|
1922
|
-
auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options) {
|
|
1923
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1924
|
-
var _a, _b, _c;
|
|
1925
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options);
|
|
1926
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1927
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetAccessToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1928
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1929
|
-
});
|
|
1930
|
-
},
|
|
1931
|
-
/**
|
|
1932
|
-
*
|
|
1933
|
-
* @param {*} [options] Override http request option.
|
|
1934
|
-
* @throws {RequiredError}
|
|
1935
|
-
*/
|
|
1936
|
-
auth2UserServiceAuthGetAccountInfo(options) {
|
|
1937
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1938
|
-
var _a, _b, _c;
|
|
1939
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthGetAccountInfo(options);
|
|
1940
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1941
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetAccountInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1942
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1943
|
-
});
|
|
1944
|
-
},
|
|
1945
|
-
/**
|
|
1946
|
-
*
|
|
1947
|
-
* @param {*} [options] Override http request option.
|
|
1948
|
-
* @throws {RequiredError}
|
|
1949
|
-
*/
|
|
1950
|
-
auth2UserServiceAuthGetSession(options) {
|
|
1951
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1952
|
-
var _a, _b, _c;
|
|
1953
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthGetSession(options);
|
|
1954
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1955
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1956
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1957
|
-
});
|
|
1958
|
-
},
|
|
1959
|
-
/**
|
|
1960
|
-
* ============ 账号关联 ============
|
|
1961
|
-
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
1962
|
-
* @param {*} [options] Override http request option.
|
|
1963
|
-
* @throws {RequiredError}
|
|
1964
|
-
*/
|
|
1965
|
-
auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options) {
|
|
1966
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1967
|
-
var _a, _b, _c;
|
|
1968
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options);
|
|
1969
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1970
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthLinkSocial']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1971
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1972
|
-
});
|
|
1973
|
-
},
|
|
1974
|
-
/**
|
|
1975
|
-
*
|
|
1976
|
-
* @param {*} [options] Override http request option.
|
|
1977
|
-
* @throws {RequiredError}
|
|
1978
|
-
*/
|
|
1979
|
-
auth2UserServiceAuthListAccounts(options) {
|
|
1980
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1981
|
-
var _a, _b, _c;
|
|
1982
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthListAccounts(options);
|
|
1983
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1984
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1985
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1986
|
-
});
|
|
1987
|
-
},
|
|
1988
|
-
/**
|
|
1989
|
-
* ============ 会话管理 ============
|
|
1990
|
-
* @param {*} [options] Override http request option.
|
|
1991
|
-
* @throws {RequiredError}
|
|
1992
|
-
*/
|
|
1993
|
-
auth2UserServiceAuthListSessions(options) {
|
|
1994
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1995
|
-
var _a, _b, _c;
|
|
1996
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthListSessions(options);
|
|
1997
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1998
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1999
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2000
|
-
});
|
|
2001
|
-
},
|
|
2002
|
-
/**
|
|
2003
|
-
*
|
|
2004
|
-
* @param {string} platform
|
|
2005
|
-
* @param {string} [code]
|
|
2006
|
-
* @param {string} [state]
|
|
2007
|
-
* @param {*} [options] Override http request option.
|
|
2008
|
-
* @throws {RequiredError}
|
|
2009
|
-
*/
|
|
2010
|
-
auth2UserServiceAuthOAuth2Callback(platform, code, state, options) {
|
|
2011
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2012
|
-
var _a, _b, _c;
|
|
2013
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthOAuth2Callback(platform, code, state, options);
|
|
2014
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2015
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthOAuth2Callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2016
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2017
|
-
});
|
|
2018
|
-
},
|
|
2019
|
-
/**
|
|
2020
|
-
* ============ Token 管理 ============
|
|
2021
|
-
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
2022
|
-
* @param {*} [options] Override http request option.
|
|
2023
|
-
* @throws {RequiredError}
|
|
2024
|
-
*/
|
|
2025
|
-
auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options) {
|
|
2026
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
-
var _a, _b, _c;
|
|
2028
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options);
|
|
2029
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2030
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRefreshToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2031
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2032
|
-
});
|
|
2033
|
-
},
|
|
2034
|
-
/**
|
|
2035
|
-
*
|
|
2036
|
-
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
2037
|
-
* @param {*} [options] Override http request option.
|
|
2038
|
-
* @throws {RequiredError}
|
|
2039
|
-
*/
|
|
2040
|
-
auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options) {
|
|
2041
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2042
|
-
var _a, _b, _c;
|
|
2043
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options);
|
|
2044
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2045
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRequestPasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2046
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2047
|
-
});
|
|
2048
|
-
},
|
|
2049
|
-
/**
|
|
2050
|
-
*
|
|
2051
|
-
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
2052
|
-
* @param {*} [options] Override http request option.
|
|
2053
|
-
* @throws {RequiredError}
|
|
2054
|
-
*/
|
|
2055
|
-
auth2UserServiceAuthResetPassword(authResetPasswordRequest, options) {
|
|
2056
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2057
|
-
var _a, _b, _c;
|
|
2058
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthResetPassword(authResetPasswordRequest, options);
|
|
2059
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2060
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthResetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2061
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2062
|
-
});
|
|
2063
|
-
},
|
|
2064
|
-
/**
|
|
2065
|
-
*
|
|
2066
|
-
* @param {object} body
|
|
2067
|
-
* @param {*} [options] Override http request option.
|
|
2068
|
-
* @throws {RequiredError}
|
|
2069
|
-
*/
|
|
2070
|
-
auth2UserServiceAuthRevokeOtherSessions(body, options) {
|
|
2071
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2072
|
-
var _a, _b, _c;
|
|
2073
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRevokeOtherSessions(body, options);
|
|
2074
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2075
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeOtherSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2076
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2077
|
-
});
|
|
2078
|
-
},
|
|
2079
|
-
/**
|
|
2080
|
-
*
|
|
2081
|
-
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
2082
|
-
* @param {*} [options] Override http request option.
|
|
2083
|
-
* @throws {RequiredError}
|
|
2084
|
-
*/
|
|
2085
|
-
auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options) {
|
|
2086
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2087
|
-
var _a, _b, _c;
|
|
2088
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options);
|
|
2089
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2090
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2091
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2092
|
-
});
|
|
2093
|
-
},
|
|
2094
|
-
/**
|
|
2095
|
-
*
|
|
2096
|
-
* @param {object} body
|
|
2097
|
-
* @param {*} [options] Override http request option.
|
|
2098
|
-
* @throws {RequiredError}
|
|
2099
|
-
*/
|
|
2100
|
-
auth2UserServiceAuthRevokeSessions(body, options) {
|
|
2101
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2102
|
-
var _a, _b, _c;
|
|
2103
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRevokeSessions(body, options);
|
|
2104
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2105
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2106
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2107
|
-
});
|
|
2108
|
-
},
|
|
2109
|
-
/**
|
|
2110
|
-
* ============ 邮箱验证 ============
|
|
2111
|
-
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
2112
|
-
* @param {*} [options] Override http request option.
|
|
2113
|
-
* @throws {RequiredError}
|
|
2114
|
-
*/
|
|
2115
|
-
auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options) {
|
|
2116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2117
|
-
var _a, _b, _c;
|
|
2118
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options);
|
|
2119
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2120
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSendVerificationEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2121
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2122
|
-
});
|
|
2123
|
-
},
|
|
2124
|
-
/**
|
|
2125
|
-
*
|
|
2126
|
-
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
2127
|
-
* @param {*} [options] Override http request option.
|
|
2128
|
-
* @throws {RequiredError}
|
|
2129
|
-
*/
|
|
2130
|
-
auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options) {
|
|
2131
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2132
|
-
var _a, _b, _c;
|
|
2133
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options);
|
|
2134
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2135
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignInEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2136
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2137
|
-
});
|
|
2138
|
-
},
|
|
2139
|
-
/**
|
|
2140
|
-
*
|
|
2141
|
-
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
2142
|
-
* @param {*} [options] Override http request option.
|
|
2143
|
-
* @throws {RequiredError}
|
|
2144
|
-
*/
|
|
2145
|
-
auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options) {
|
|
2146
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2147
|
-
var _a, _b, _c;
|
|
2148
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options);
|
|
2149
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2150
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignInSocial']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2151
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2152
|
-
});
|
|
2153
|
-
},
|
|
2154
|
-
/**
|
|
2155
|
-
*
|
|
2156
|
-
* @param {object} body
|
|
2157
|
-
* @param {*} [options] Override http request option.
|
|
2158
|
-
* @throws {RequiredError}
|
|
2159
|
-
*/
|
|
2160
|
-
auth2UserServiceAuthSignOut(body, options) {
|
|
2161
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2162
|
-
var _a, _b, _c;
|
|
2163
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignOut(body, options);
|
|
2164
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2165
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignOut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2166
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2167
|
-
});
|
|
2168
|
-
},
|
|
2169
|
-
/**
|
|
2170
|
-
* ============ 认证 ============
|
|
2171
|
-
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
2172
|
-
* @param {*} [options] Override http request option.
|
|
2173
|
-
* @throws {RequiredError}
|
|
2174
|
-
*/
|
|
2175
|
-
auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options) {
|
|
2176
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2177
|
-
var _a, _b, _c;
|
|
2178
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options);
|
|
2179
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2180
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignUpEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2181
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2182
|
-
});
|
|
2183
|
-
},
|
|
2184
|
-
/**
|
|
2185
|
-
*
|
|
2186
|
-
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
2187
|
-
* @param {*} [options] Override http request option.
|
|
2188
|
-
* @throws {RequiredError}
|
|
2189
|
-
*/
|
|
2190
|
-
auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options) {
|
|
2191
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2192
|
-
var _a, _b, _c;
|
|
2193
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options);
|
|
2194
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2195
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthUnlinkAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2196
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2197
|
-
});
|
|
2198
|
-
},
|
|
2199
|
-
/**
|
|
2200
|
-
* ============ 用户管理 ============
|
|
2201
|
-
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
2202
|
-
* @param {*} [options] Override http request option.
|
|
2203
|
-
* @throws {RequiredError}
|
|
2204
|
-
*/
|
|
2205
|
-
auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options) {
|
|
2206
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2207
|
-
var _a, _b, _c;
|
|
2208
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options);
|
|
2209
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2210
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthUpdateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2211
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2212
|
-
});
|
|
2213
|
-
},
|
|
2214
|
-
/**
|
|
2215
|
-
*
|
|
2216
|
-
* @param {string} [email]
|
|
2217
|
-
* @param {string} [authCode]
|
|
2218
|
-
* @param {string} [callbackUrl]
|
|
2219
|
-
* @param {*} [options] Override http request option.
|
|
2220
|
-
* @throws {RequiredError}
|
|
2221
|
-
*/
|
|
2222
|
-
auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options) {
|
|
2223
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2224
|
-
var _a, _b, _c;
|
|
2225
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options);
|
|
2226
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2227
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthVerifyEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2228
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2229
|
-
});
|
|
2230
|
-
},
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
exports.Auth2UserServiceApiFp = Auth2UserServiceApiFp;
|
|
2234
|
-
/**
|
|
2235
|
-
* Auth2UserServiceApi - factory interface
|
|
2236
|
-
*/
|
|
2237
|
-
const Auth2UserServiceApiFactory = function (configuration, basePath, axios) {
|
|
2238
|
-
const localVarFp = (0, exports.Auth2UserServiceApiFp)(configuration);
|
|
2239
|
-
return {
|
|
2240
|
-
/**
|
|
2241
|
-
*
|
|
2242
|
-
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
2243
|
-
* @param {*} [options] Override http request option.
|
|
2244
|
-
* @throws {RequiredError}
|
|
2245
|
-
*/
|
|
2246
|
-
auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options) {
|
|
2247
|
-
return localVarFp.auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options).then((request) => request(axios, basePath));
|
|
2248
|
-
},
|
|
2249
|
-
/**
|
|
2250
|
-
* ============ 密码管理 ============
|
|
2251
|
-
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
2252
|
-
* @param {*} [options] Override http request option.
|
|
2253
|
-
* @throws {RequiredError}
|
|
2254
|
-
*/
|
|
2255
|
-
auth2UserServiceAuthChangePassword(authChangePasswordRequest, options) {
|
|
2256
|
-
return localVarFp.auth2UserServiceAuthChangePassword(authChangePasswordRequest, options).then((request) => request(axios, basePath));
|
|
2257
|
-
},
|
|
2258
|
-
/**
|
|
2259
|
-
*
|
|
2260
|
-
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
2261
|
-
* @param {*} [options] Override http request option.
|
|
2262
|
-
* @throws {RequiredError}
|
|
2263
|
-
*/
|
|
2264
|
-
auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options) {
|
|
2265
|
-
return localVarFp.auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options).then((request) => request(axios, basePath));
|
|
2266
|
-
},
|
|
2267
|
-
/**
|
|
2268
|
-
*
|
|
2269
|
-
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
2270
|
-
* @param {*} [options] Override http request option.
|
|
2271
|
-
* @throws {RequiredError}
|
|
2272
|
-
*/
|
|
2273
|
-
auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options) {
|
|
2274
|
-
return localVarFp.auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options).then((request) => request(axios, basePath));
|
|
2275
|
-
},
|
|
2276
|
-
/**
|
|
2277
|
-
*
|
|
2278
|
-
* @param {*} [options] Override http request option.
|
|
2279
|
-
* @throws {RequiredError}
|
|
2280
|
-
*/
|
|
2281
|
-
auth2UserServiceAuthGetAccountInfo(options) {
|
|
2282
|
-
return localVarFp.auth2UserServiceAuthGetAccountInfo(options).then((request) => request(axios, basePath));
|
|
2283
|
-
},
|
|
2284
|
-
/**
|
|
2285
|
-
*
|
|
2286
|
-
* @param {*} [options] Override http request option.
|
|
2287
|
-
* @throws {RequiredError}
|
|
2288
|
-
*/
|
|
2289
|
-
auth2UserServiceAuthGetSession(options) {
|
|
2290
|
-
return localVarFp.auth2UserServiceAuthGetSession(options).then((request) => request(axios, basePath));
|
|
2291
|
-
},
|
|
2292
|
-
/**
|
|
2293
|
-
* ============ 账号关联 ============
|
|
2294
|
-
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
2295
|
-
* @param {*} [options] Override http request option.
|
|
2296
|
-
* @throws {RequiredError}
|
|
2297
|
-
*/
|
|
2298
|
-
auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options) {
|
|
2299
|
-
return localVarFp.auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options).then((request) => request(axios, basePath));
|
|
2300
|
-
},
|
|
2301
|
-
/**
|
|
2302
|
-
*
|
|
2303
|
-
* @param {*} [options] Override http request option.
|
|
2304
|
-
* @throws {RequiredError}
|
|
2305
|
-
*/
|
|
2306
|
-
auth2UserServiceAuthListAccounts(options) {
|
|
2307
|
-
return localVarFp.auth2UserServiceAuthListAccounts(options).then((request) => request(axios, basePath));
|
|
2308
|
-
},
|
|
2309
|
-
/**
|
|
2310
|
-
* ============ 会话管理 ============
|
|
2311
|
-
* @param {*} [options] Override http request option.
|
|
2312
|
-
* @throws {RequiredError}
|
|
2313
|
-
*/
|
|
2314
|
-
auth2UserServiceAuthListSessions(options) {
|
|
2315
|
-
return localVarFp.auth2UserServiceAuthListSessions(options).then((request) => request(axios, basePath));
|
|
2316
|
-
},
|
|
2317
|
-
/**
|
|
2318
|
-
*
|
|
2319
|
-
* @param {string} platform
|
|
2320
|
-
* @param {string} [code]
|
|
2321
|
-
* @param {string} [state]
|
|
2322
|
-
* @param {*} [options] Override http request option.
|
|
2323
|
-
* @throws {RequiredError}
|
|
2324
|
-
*/
|
|
2325
|
-
auth2UserServiceAuthOAuth2Callback(platform, code, state, options) {
|
|
2326
|
-
return localVarFp.auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(axios, basePath));
|
|
2327
|
-
},
|
|
2328
|
-
/**
|
|
2329
|
-
* ============ Token 管理 ============
|
|
2330
|
-
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
2331
|
-
* @param {*} [options] Override http request option.
|
|
2332
|
-
* @throws {RequiredError}
|
|
2333
|
-
*/
|
|
2334
|
-
auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options) {
|
|
2335
|
-
return localVarFp.auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
2336
|
-
},
|
|
2337
|
-
/**
|
|
2338
|
-
*
|
|
2339
|
-
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
2340
|
-
* @param {*} [options] Override http request option.
|
|
2341
|
-
* @throws {RequiredError}
|
|
2342
|
-
*/
|
|
2343
|
-
auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options) {
|
|
2344
|
-
return localVarFp.auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options).then((request) => request(axios, basePath));
|
|
2345
|
-
},
|
|
2346
|
-
/**
|
|
2347
|
-
*
|
|
2348
|
-
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
2349
|
-
* @param {*} [options] Override http request option.
|
|
2350
|
-
* @throws {RequiredError}
|
|
2351
|
-
*/
|
|
2352
|
-
auth2UserServiceAuthResetPassword(authResetPasswordRequest, options) {
|
|
2353
|
-
return localVarFp.auth2UserServiceAuthResetPassword(authResetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
2354
|
-
},
|
|
2355
|
-
/**
|
|
2356
|
-
*
|
|
2357
|
-
* @param {object} body
|
|
2358
|
-
* @param {*} [options] Override http request option.
|
|
2359
|
-
* @throws {RequiredError}
|
|
2360
|
-
*/
|
|
2361
|
-
auth2UserServiceAuthRevokeOtherSessions(body, options) {
|
|
2362
|
-
return localVarFp.auth2UserServiceAuthRevokeOtherSessions(body, options).then((request) => request(axios, basePath));
|
|
2363
|
-
},
|
|
2364
|
-
/**
|
|
2365
|
-
*
|
|
2366
|
-
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
2367
|
-
* @param {*} [options] Override http request option.
|
|
2368
|
-
* @throws {RequiredError}
|
|
2369
|
-
*/
|
|
2370
|
-
auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options) {
|
|
2371
|
-
return localVarFp.auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options).then((request) => request(axios, basePath));
|
|
2372
|
-
},
|
|
2373
|
-
/**
|
|
2374
|
-
*
|
|
2375
|
-
* @param {object} body
|
|
2376
|
-
* @param {*} [options] Override http request option.
|
|
2377
|
-
* @throws {RequiredError}
|
|
2378
|
-
*/
|
|
2379
|
-
auth2UserServiceAuthRevokeSessions(body, options) {
|
|
2380
|
-
return localVarFp.auth2UserServiceAuthRevokeSessions(body, options).then((request) => request(axios, basePath));
|
|
2381
|
-
},
|
|
2382
|
-
/**
|
|
2383
|
-
* ============ 邮箱验证 ============
|
|
2384
|
-
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
2385
|
-
* @param {*} [options] Override http request option.
|
|
2386
|
-
* @throws {RequiredError}
|
|
2387
|
-
*/
|
|
2388
|
-
auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options) {
|
|
2389
|
-
return localVarFp.auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options).then((request) => request(axios, basePath));
|
|
2390
|
-
},
|
|
2391
|
-
/**
|
|
2392
|
-
*
|
|
2393
|
-
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
2394
|
-
* @param {*} [options] Override http request option.
|
|
2395
|
-
* @throws {RequiredError}
|
|
2396
|
-
*/
|
|
2397
|
-
auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options) {
|
|
2398
|
-
return localVarFp.auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options).then((request) => request(axios, basePath));
|
|
2399
|
-
},
|
|
2400
|
-
/**
|
|
2401
|
-
*
|
|
2402
|
-
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
2403
|
-
* @param {*} [options] Override http request option.
|
|
2404
|
-
* @throws {RequiredError}
|
|
2405
|
-
*/
|
|
2406
|
-
auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options) {
|
|
2407
|
-
return localVarFp.auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options).then((request) => request(axios, basePath));
|
|
2408
|
-
},
|
|
2409
|
-
/**
|
|
2410
|
-
*
|
|
2411
|
-
* @param {object} body
|
|
2412
|
-
* @param {*} [options] Override http request option.
|
|
2413
|
-
* @throws {RequiredError}
|
|
2414
|
-
*/
|
|
2415
|
-
auth2UserServiceAuthSignOut(body, options) {
|
|
2416
|
-
return localVarFp.auth2UserServiceAuthSignOut(body, options).then((request) => request(axios, basePath));
|
|
2417
|
-
},
|
|
2418
|
-
/**
|
|
2419
|
-
* ============ 认证 ============
|
|
2420
|
-
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
2421
|
-
* @param {*} [options] Override http request option.
|
|
2422
|
-
* @throws {RequiredError}
|
|
2423
|
-
*/
|
|
2424
|
-
auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options) {
|
|
2425
|
-
return localVarFp.auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options).then((request) => request(axios, basePath));
|
|
2426
|
-
},
|
|
2427
|
-
/**
|
|
2428
|
-
*
|
|
2429
|
-
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
2430
|
-
* @param {*} [options] Override http request option.
|
|
2431
|
-
* @throws {RequiredError}
|
|
2432
|
-
*/
|
|
2433
|
-
auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options) {
|
|
2434
|
-
return localVarFp.auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options).then((request) => request(axios, basePath));
|
|
2435
|
-
},
|
|
2436
|
-
/**
|
|
2437
|
-
* ============ 用户管理 ============
|
|
2438
|
-
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
2439
|
-
* @param {*} [options] Override http request option.
|
|
2440
|
-
* @throws {RequiredError}
|
|
2441
|
-
*/
|
|
2442
|
-
auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options) {
|
|
2443
|
-
return localVarFp.auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options).then((request) => request(axios, basePath));
|
|
2444
|
-
},
|
|
2445
|
-
/**
|
|
2446
|
-
*
|
|
2447
|
-
* @param {string} [email]
|
|
2448
|
-
* @param {string} [authCode]
|
|
2449
|
-
* @param {string} [callbackUrl]
|
|
2450
|
-
* @param {*} [options] Override http request option.
|
|
2451
|
-
* @throws {RequiredError}
|
|
2452
|
-
*/
|
|
2453
|
-
auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options) {
|
|
2454
|
-
return localVarFp.auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options).then((request) => request(axios, basePath));
|
|
2455
|
-
},
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
exports.Auth2UserServiceApiFactory = Auth2UserServiceApiFactory;
|
|
2459
|
-
/**
|
|
2460
|
-
* Auth2UserServiceApi - object-oriented interface
|
|
2461
|
-
*/
|
|
2462
|
-
class Auth2UserServiceApi extends base_1.BaseAPI {
|
|
2463
|
-
/**
|
|
2464
|
-
*
|
|
2465
|
-
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
2466
|
-
* @param {*} [options] Override http request option.
|
|
2467
|
-
* @throws {RequiredError}
|
|
2468
|
-
*/
|
|
2469
|
-
auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options) {
|
|
2470
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2471
|
-
}
|
|
2472
|
-
/**
|
|
2473
|
-
* ============ 密码管理 ============
|
|
2474
|
-
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
2475
|
-
* @param {*} [options] Override http request option.
|
|
2476
|
-
* @throws {RequiredError}
|
|
2477
|
-
*/
|
|
2478
|
-
auth2UserServiceAuthChangePassword(authChangePasswordRequest, options) {
|
|
2479
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthChangePassword(authChangePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2480
|
-
}
|
|
2481
|
-
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
2484
|
-
* @param {*} [options] Override http request option.
|
|
2485
|
-
* @throws {RequiredError}
|
|
2486
|
-
*/
|
|
2487
|
-
auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options) {
|
|
2488
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2489
|
-
}
|
|
2490
|
-
/**
|
|
2491
|
-
*
|
|
2492
|
-
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
2493
|
-
* @param {*} [options] Override http request option.
|
|
2494
|
-
* @throws {RequiredError}
|
|
2495
|
-
*/
|
|
2496
|
-
auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options) {
|
|
2497
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2498
|
-
}
|
|
2499
|
-
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @param {*} [options] Override http request option.
|
|
2502
|
-
* @throws {RequiredError}
|
|
2503
|
-
*/
|
|
2504
|
-
auth2UserServiceAuthGetAccountInfo(options) {
|
|
2505
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthGetAccountInfo(options).then((request) => request(this.axios, this.basePath));
|
|
2506
|
-
}
|
|
2507
|
-
/**
|
|
2508
|
-
*
|
|
2509
|
-
* @param {*} [options] Override http request option.
|
|
2510
|
-
* @throws {RequiredError}
|
|
2511
|
-
*/
|
|
2512
|
-
auth2UserServiceAuthGetSession(options) {
|
|
2513
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthGetSession(options).then((request) => request(this.axios, this.basePath));
|
|
2514
|
-
}
|
|
2515
|
-
/**
|
|
2516
|
-
* ============ 账号关联 ============
|
|
2517
|
-
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
2518
|
-
* @param {*} [options] Override http request option.
|
|
2519
|
-
* @throws {RequiredError}
|
|
2520
|
-
*/
|
|
2521
|
-
auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options) {
|
|
2522
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2523
|
-
}
|
|
2524
|
-
/**
|
|
2525
|
-
*
|
|
2526
|
-
* @param {*} [options] Override http request option.
|
|
2527
|
-
* @throws {RequiredError}
|
|
2528
|
-
*/
|
|
2529
|
-
auth2UserServiceAuthListAccounts(options) {
|
|
2530
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthListAccounts(options).then((request) => request(this.axios, this.basePath));
|
|
2531
|
-
}
|
|
2532
|
-
/**
|
|
2533
|
-
* ============ 会话管理 ============
|
|
2534
|
-
* @param {*} [options] Override http request option.
|
|
2535
|
-
* @throws {RequiredError}
|
|
2536
|
-
*/
|
|
2537
|
-
auth2UserServiceAuthListSessions(options) {
|
|
2538
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthListSessions(options).then((request) => request(this.axios, this.basePath));
|
|
2539
|
-
}
|
|
2540
|
-
/**
|
|
2541
|
-
*
|
|
2542
|
-
* @param {string} platform
|
|
2543
|
-
* @param {string} [code]
|
|
2544
|
-
* @param {string} [state]
|
|
2545
|
-
* @param {*} [options] Override http request option.
|
|
2546
|
-
* @throws {RequiredError}
|
|
2547
|
-
*/
|
|
2548
|
-
auth2UserServiceAuthOAuth2Callback(platform, code, state, options) {
|
|
2549
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(this.axios, this.basePath));
|
|
2550
|
-
}
|
|
2551
|
-
/**
|
|
2552
|
-
* ============ Token 管理 ============
|
|
2553
|
-
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
2554
|
-
* @param {*} [options] Override http request option.
|
|
2555
|
-
* @throws {RequiredError}
|
|
2556
|
-
*/
|
|
2557
|
-
auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options) {
|
|
2558
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2559
|
-
}
|
|
2560
|
-
/**
|
|
2561
|
-
*
|
|
2562
|
-
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
2563
|
-
* @param {*} [options] Override http request option.
|
|
2564
|
-
* @throws {RequiredError}
|
|
2565
|
-
*/
|
|
2566
|
-
auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options) {
|
|
2567
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2568
|
-
}
|
|
2569
|
-
/**
|
|
2570
|
-
*
|
|
2571
|
-
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
2572
|
-
* @param {*} [options] Override http request option.
|
|
2573
|
-
* @throws {RequiredError}
|
|
2574
|
-
*/
|
|
2575
|
-
auth2UserServiceAuthResetPassword(authResetPasswordRequest, options) {
|
|
2576
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthResetPassword(authResetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2577
|
-
}
|
|
2578
|
-
/**
|
|
2579
|
-
*
|
|
2580
|
-
* @param {object} body
|
|
2581
|
-
* @param {*} [options] Override http request option.
|
|
2582
|
-
* @throws {RequiredError}
|
|
2583
|
-
*/
|
|
2584
|
-
auth2UserServiceAuthRevokeOtherSessions(body, options) {
|
|
2585
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthRevokeOtherSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
2586
|
-
}
|
|
2587
|
-
/**
|
|
2588
|
-
*
|
|
2589
|
-
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
2590
|
-
* @param {*} [options] Override http request option.
|
|
2591
|
-
* @throws {RequiredError}
|
|
2592
|
-
*/
|
|
2593
|
-
auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options) {
|
|
2594
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2595
|
-
}
|
|
2596
|
-
/**
|
|
2597
|
-
*
|
|
2598
|
-
* @param {object} body
|
|
2599
|
-
* @param {*} [options] Override http request option.
|
|
2600
|
-
* @throws {RequiredError}
|
|
2601
|
-
*/
|
|
2602
|
-
auth2UserServiceAuthRevokeSessions(body, options) {
|
|
2603
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthRevokeSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
2604
|
-
}
|
|
2605
|
-
/**
|
|
2606
|
-
* ============ 邮箱验证 ============
|
|
2607
|
-
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
2608
|
-
* @param {*} [options] Override http request option.
|
|
2609
|
-
* @throws {RequiredError}
|
|
2610
|
-
*/
|
|
2611
|
-
auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options) {
|
|
2612
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2613
|
-
}
|
|
2614
|
-
/**
|
|
2615
|
-
*
|
|
2616
|
-
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
2617
|
-
* @param {*} [options] Override http request option.
|
|
2618
|
-
* @throws {RequiredError}
|
|
2619
|
-
*/
|
|
2620
|
-
auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options) {
|
|
2621
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2622
|
-
}
|
|
2623
|
-
/**
|
|
2624
|
-
*
|
|
2625
|
-
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
2626
|
-
* @param {*} [options] Override http request option.
|
|
2627
|
-
* @throws {RequiredError}
|
|
2628
|
-
*/
|
|
2629
|
-
auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options) {
|
|
2630
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2631
|
-
}
|
|
2632
|
-
/**
|
|
2633
|
-
*
|
|
2634
|
-
* @param {object} body
|
|
2635
|
-
* @param {*} [options] Override http request option.
|
|
2636
|
-
* @throws {RequiredError}
|
|
2637
|
-
*/
|
|
2638
|
-
auth2UserServiceAuthSignOut(body, options) {
|
|
2639
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthSignOut(body, options).then((request) => request(this.axios, this.basePath));
|
|
2640
|
-
}
|
|
2641
|
-
/**
|
|
2642
|
-
* ============ 认证 ============
|
|
2643
|
-
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
2644
|
-
* @param {*} [options] Override http request option.
|
|
2645
|
-
* @throws {RequiredError}
|
|
2646
|
-
*/
|
|
2647
|
-
auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options) {
|
|
2648
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2649
|
-
}
|
|
2650
|
-
/**
|
|
2651
|
-
*
|
|
2652
|
-
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
2653
|
-
* @param {*} [options] Override http request option.
|
|
2654
|
-
* @throws {RequiredError}
|
|
2655
|
-
*/
|
|
2656
|
-
auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options) {
|
|
2657
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2658
|
-
}
|
|
2659
|
-
/**
|
|
2660
|
-
* ============ 用户管理 ============
|
|
2661
|
-
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
2662
|
-
* @param {*} [options] Override http request option.
|
|
2663
|
-
* @throws {RequiredError}
|
|
2664
|
-
*/
|
|
2665
|
-
auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options) {
|
|
2666
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2667
|
-
}
|
|
2668
|
-
/**
|
|
2669
|
-
*
|
|
2670
|
-
* @param {string} [email]
|
|
2671
|
-
* @param {string} [authCode]
|
|
2672
|
-
* @param {string} [callbackUrl]
|
|
2673
|
-
* @param {*} [options] Override http request option.
|
|
2674
|
-
* @throws {RequiredError}
|
|
2675
|
-
*/
|
|
2676
|
-
auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options) {
|
|
2677
|
-
return (0, exports.Auth2UserServiceApiFp)(this.configuration).auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options).then((request) => request(this.axios, this.basePath));
|
|
2678
|
-
}
|
|
2679
|
-
}
|
|
2680
|
-
exports.Auth2UserServiceApi = Auth2UserServiceApi;
|
|
2681
593
|
/**
|
|
2682
594
|
* DiscountAdminServiceApi - axios parameter creator
|
|
2683
595
|
*/
|
|
@@ -7030,7 +4942,36 @@ const PassportAuthUserServiceApiAxiosParamCreator = function (configuration) {
|
|
|
7030
4942
|
};
|
|
7031
4943
|
}),
|
|
7032
4944
|
/**
|
|
7033
|
-
*
|
|
4945
|
+
* 未登录 - 用户遗忘密码请求重置
|
|
4946
|
+
* @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
|
|
4947
|
+
* @param {*} [options] Override http request option.
|
|
4948
|
+
* @throws {RequiredError}
|
|
4949
|
+
*/
|
|
4950
|
+
passportAuthUserServicePassportUserPasswordForget: (passportUserPasswordForgetRequest_1, ...args_1) => __awaiter(this, [passportUserPasswordForgetRequest_1, ...args_1], void 0, function* (passportUserPasswordForgetRequest, options = {}) {
|
|
4951
|
+
// verify required parameter 'passportUserPasswordForgetRequest' is not null or undefined
|
|
4952
|
+
(0, common_1.assertParamExists)('passportAuthUserServicePassportUserPasswordForget', 'passportUserPasswordForgetRequest', passportUserPasswordForgetRequest);
|
|
4953
|
+
const localVarPath = `/passport/auth/v1/password/forget`;
|
|
4954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4955
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4956
|
+
let baseOptions;
|
|
4957
|
+
if (configuration) {
|
|
4958
|
+
baseOptions = configuration.baseOptions;
|
|
4959
|
+
}
|
|
4960
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4961
|
+
const localVarHeaderParameter = {};
|
|
4962
|
+
const localVarQueryParameter = {};
|
|
4963
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4964
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4965
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4966
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4967
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(passportUserPasswordForgetRequest, localVarRequestOptions, configuration);
|
|
4968
|
+
return {
|
|
4969
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4970
|
+
options: localVarRequestOptions,
|
|
4971
|
+
};
|
|
4972
|
+
}),
|
|
4973
|
+
/**
|
|
4974
|
+
* 未登录 - 用户重置密码
|
|
7034
4975
|
* @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
|
|
7035
4976
|
* @param {*} [options] Override http request option.
|
|
7036
4977
|
* @throws {RequiredError}
|
|
@@ -7058,6 +4999,35 @@ const PassportAuthUserServiceApiAxiosParamCreator = function (configuration) {
|
|
|
7058
4999
|
options: localVarRequestOptions,
|
|
7059
5000
|
};
|
|
7060
5001
|
}),
|
|
5002
|
+
/**
|
|
5003
|
+
* 未登录 - 验证重置密码请求 token
|
|
5004
|
+
* @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
|
|
5005
|
+
* @param {*} [options] Override http request option.
|
|
5006
|
+
* @throws {RequiredError}
|
|
5007
|
+
*/
|
|
5008
|
+
passportAuthUserServicePassportUserPasswordResetTokenVerify: (passportUserPasswordResetTokenVerifyRequest_1, ...args_1) => __awaiter(this, [passportUserPasswordResetTokenVerifyRequest_1, ...args_1], void 0, function* (passportUserPasswordResetTokenVerifyRequest, options = {}) {
|
|
5009
|
+
// verify required parameter 'passportUserPasswordResetTokenVerifyRequest' is not null or undefined
|
|
5010
|
+
(0, common_1.assertParamExists)('passportAuthUserServicePassportUserPasswordResetTokenVerify', 'passportUserPasswordResetTokenVerifyRequest', passportUserPasswordResetTokenVerifyRequest);
|
|
5011
|
+
const localVarPath = `/passport/auth/v1/password/reset-token`;
|
|
5012
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5013
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5014
|
+
let baseOptions;
|
|
5015
|
+
if (configuration) {
|
|
5016
|
+
baseOptions = configuration.baseOptions;
|
|
5017
|
+
}
|
|
5018
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5019
|
+
const localVarHeaderParameter = {};
|
|
5020
|
+
const localVarQueryParameter = {};
|
|
5021
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5022
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5024
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5025
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(passportUserPasswordResetTokenVerifyRequest, localVarRequestOptions, configuration);
|
|
5026
|
+
return {
|
|
5027
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5028
|
+
options: localVarRequestOptions,
|
|
5029
|
+
};
|
|
5030
|
+
}),
|
|
7061
5031
|
/**
|
|
7062
5032
|
* 邮箱登录
|
|
7063
5033
|
* @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
|
|
@@ -7636,7 +5606,22 @@ const PassportAuthUserServiceApiFp = function (configuration) {
|
|
|
7636
5606
|
});
|
|
7637
5607
|
},
|
|
7638
5608
|
/**
|
|
7639
|
-
*
|
|
5609
|
+
* 未登录 - 用户遗忘密码请求重置
|
|
5610
|
+
* @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
|
|
5611
|
+
* @param {*} [options] Override http request option.
|
|
5612
|
+
* @throws {RequiredError}
|
|
5613
|
+
*/
|
|
5614
|
+
passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options) {
|
|
5615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5616
|
+
var _a, _b, _c;
|
|
5617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options);
|
|
5618
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5619
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthUserServiceApi.passportAuthUserServicePassportUserPasswordForget']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5620
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5621
|
+
});
|
|
5622
|
+
},
|
|
5623
|
+
/**
|
|
5624
|
+
* 未登录 - 用户重置密码
|
|
7640
5625
|
* @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
|
|
7641
5626
|
* @param {*} [options] Override http request option.
|
|
7642
5627
|
* @throws {RequiredError}
|
|
@@ -7650,6 +5635,21 @@ const PassportAuthUserServiceApiFp = function (configuration) {
|
|
|
7650
5635
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7651
5636
|
});
|
|
7652
5637
|
},
|
|
5638
|
+
/**
|
|
5639
|
+
* 未登录 - 验证重置密码请求 token
|
|
5640
|
+
* @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
|
|
5641
|
+
* @param {*} [options] Override http request option.
|
|
5642
|
+
* @throws {RequiredError}
|
|
5643
|
+
*/
|
|
5644
|
+
passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options) {
|
|
5645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5646
|
+
var _a, _b, _c;
|
|
5647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options);
|
|
5648
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5649
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthUserServiceApi.passportAuthUserServicePassportUserPasswordResetTokenVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5650
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5651
|
+
});
|
|
5652
|
+
},
|
|
7653
5653
|
/**
|
|
7654
5654
|
* 邮箱登录
|
|
7655
5655
|
* @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
|
|
@@ -7992,7 +5992,16 @@ const PassportAuthUserServiceApiFactory = function (configuration, basePath, axi
|
|
|
7992
5992
|
return localVarFp.passportAuthUserServicePassportUserOAuthCallback(platform, appIds, code, state, options).then((request) => request(axios, basePath));
|
|
7993
5993
|
},
|
|
7994
5994
|
/**
|
|
7995
|
-
*
|
|
5995
|
+
* 未登录 - 用户遗忘密码请求重置
|
|
5996
|
+
* @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
|
|
5997
|
+
* @param {*} [options] Override http request option.
|
|
5998
|
+
* @throws {RequiredError}
|
|
5999
|
+
*/
|
|
6000
|
+
passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options) {
|
|
6001
|
+
return localVarFp.passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options).then((request) => request(axios, basePath));
|
|
6002
|
+
},
|
|
6003
|
+
/**
|
|
6004
|
+
* 未登录 - 用户重置密码
|
|
7996
6005
|
* @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
|
|
7997
6006
|
* @param {*} [options] Override http request option.
|
|
7998
6007
|
* @throws {RequiredError}
|
|
@@ -8000,6 +6009,15 @@ const PassportAuthUserServiceApiFactory = function (configuration, basePath, axi
|
|
|
8000
6009
|
passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest, options) {
|
|
8001
6010
|
return localVarFp.passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest, options).then((request) => request(axios, basePath));
|
|
8002
6011
|
},
|
|
6012
|
+
/**
|
|
6013
|
+
* 未登录 - 验证重置密码请求 token
|
|
6014
|
+
* @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
|
|
6015
|
+
* @param {*} [options] Override http request option.
|
|
6016
|
+
* @throws {RequiredError}
|
|
6017
|
+
*/
|
|
6018
|
+
passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options) {
|
|
6019
|
+
return localVarFp.passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options).then((request) => request(axios, basePath));
|
|
6020
|
+
},
|
|
8003
6021
|
/**
|
|
8004
6022
|
* 邮箱登录
|
|
8005
6023
|
* @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
|
|
@@ -8316,7 +6334,16 @@ class PassportAuthUserServiceApi extends base_1.BaseAPI {
|
|
|
8316
6334
|
return (0, exports.PassportAuthUserServiceApiFp)(this.configuration).passportAuthUserServicePassportUserOAuthCallback(platform, appIds, code, state, options).then((request) => request(this.axios, this.basePath));
|
|
8317
6335
|
}
|
|
8318
6336
|
/**
|
|
8319
|
-
*
|
|
6337
|
+
* 未登录 - 用户遗忘密码请求重置
|
|
6338
|
+
* @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
|
|
6339
|
+
* @param {*} [options] Override http request option.
|
|
6340
|
+
* @throws {RequiredError}
|
|
6341
|
+
*/
|
|
6342
|
+
passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options) {
|
|
6343
|
+
return (0, exports.PassportAuthUserServiceApiFp)(this.configuration).passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6344
|
+
}
|
|
6345
|
+
/**
|
|
6346
|
+
* 未登录 - 用户重置密码
|
|
8320
6347
|
* @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
|
|
8321
6348
|
* @param {*} [options] Override http request option.
|
|
8322
6349
|
* @throws {RequiredError}
|
|
@@ -8324,6 +6351,15 @@ class PassportAuthUserServiceApi extends base_1.BaseAPI {
|
|
|
8324
6351
|
passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest, options) {
|
|
8325
6352
|
return (0, exports.PassportAuthUserServiceApiFp)(this.configuration).passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8326
6353
|
}
|
|
6354
|
+
/**
|
|
6355
|
+
* 未登录 - 验证重置密码请求 token
|
|
6356
|
+
* @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
|
|
6357
|
+
* @param {*} [options] Override http request option.
|
|
6358
|
+
* @throws {RequiredError}
|
|
6359
|
+
*/
|
|
6360
|
+
passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options) {
|
|
6361
|
+
return (0, exports.PassportAuthUserServiceApiFp)(this.configuration).passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6362
|
+
}
|
|
8327
6363
|
/**
|
|
8328
6364
|
* 邮箱登录
|
|
8329
6365
|
* @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
|