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