@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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +4 -60
  2. package/README.md +8 -93
  3. package/api.ts +325 -3001
  4. package/dist/api.d.ts +348 -1804
  5. package/dist/api.js +130 -2094
  6. package/dist/esm/api.d.ts +348 -1804
  7. package/dist/esm/api.js +128 -2084
  8. package/docs/PassportAuthUserServiceApi.md +109 -1
  9. package/docs/PassportUserPasswordForgetRequest.md +24 -0
  10. package/docs/{AuthSignOutResponse.md → PassportUserPasswordForgetResponse.md} +3 -5
  11. package/docs/PassportUserPasswordResetRequest.md +2 -0
  12. package/docs/PassportUserPasswordResetTokenVerifyRequest.md +22 -0
  13. package/docs/{AuthAdminSignOutResponse.md → PassportUserPasswordResetTokenVerifyResponse.md} +7 -5
  14. package/package.json +1 -1
  15. package/docs/Auth2Account.md +0 -33
  16. package/docs/Auth2Admin.md +0 -33
  17. package/docs/Auth2AdminServiceApi.md +0 -469
  18. package/docs/Auth2AdminSession.md +0 -35
  19. package/docs/Auth2IdToken.md +0 -29
  20. package/docs/Auth2Session.md +0 -35
  21. package/docs/Auth2User.md +0 -33
  22. package/docs/Auth2UserServiceApi.md +0 -1261
  23. package/docs/AuthAdminChangePasswordRequest.md +0 -24
  24. package/docs/AuthAdminChangePasswordResponse.md +0 -26
  25. package/docs/AuthAdminGetSessionResponse.md +0 -26
  26. package/docs/AuthAdminListSessionsResponse.md +0 -24
  27. package/docs/AuthAdminRevokeOtherSessionsResponse.md +0 -24
  28. package/docs/AuthAdminRevokeSessionRequest.md +0 -20
  29. package/docs/AuthAdminRevokeSessionResponse.md +0 -24
  30. package/docs/AuthAdminRevokeSessionsResponse.md +0 -24
  31. package/docs/AuthAdminSignInEmailRequest.md +0 -26
  32. package/docs/AuthAdminSignInEmailResponse.md +0 -26
  33. package/docs/AuthAdminUpdateUserRequest.md +0 -22
  34. package/docs/AuthAdminUpdateUserResponse.md +0 -24
  35. package/docs/AuthChangeEmailRequest.md +0 -22
  36. package/docs/AuthChangeEmailResponse.md +0 -26
  37. package/docs/AuthChangePasswordRequest.md +0 -24
  38. package/docs/AuthChangePasswordResponse.md +0 -26
  39. package/docs/AuthDeleteUserRequest.md +0 -24
  40. package/docs/AuthDeleteUserResponse.md +0 -24
  41. package/docs/AuthGetAccessTokenRequest.md +0 -24
  42. package/docs/AuthGetAccessTokenResponse.md +0 -34
  43. package/docs/AuthGetAccountInfoResponse.md +0 -24
  44. package/docs/AuthGetSessionResponse.md +0 -26
  45. package/docs/AuthLinkSocialRequest.md +0 -30
  46. package/docs/AuthLinkSocialResponse.md +0 -28
  47. package/docs/AuthListAccountsResponse.md +0 -24
  48. package/docs/AuthListSessionsResponse.md +0 -24
  49. package/docs/AuthOAuth2CallbackResponse.md +0 -32
  50. package/docs/AuthRefreshTokenRequest.md +0 -24
  51. package/docs/AuthRefreshTokenResponse.md +0 -34
  52. package/docs/AuthRequestPasswordResetRequest.md +0 -22
  53. package/docs/AuthRequestPasswordResetResponse.md +0 -24
  54. package/docs/AuthResetPasswordRequest.md +0 -22
  55. package/docs/AuthResetPasswordResponse.md +0 -24
  56. package/docs/AuthRevokeOtherSessionsResponse.md +0 -24
  57. package/docs/AuthRevokeSessionRequest.md +0 -20
  58. package/docs/AuthRevokeSessionResponse.md +0 -24
  59. package/docs/AuthRevokeSessionsResponse.md +0 -24
  60. package/docs/AuthSendVerificationEmailRequest.md +0 -22
  61. package/docs/AuthSendVerificationEmailResponse.md +0 -24
  62. package/docs/AuthSignInEmailRequest.md +0 -26
  63. package/docs/AuthSignInEmailResponse.md +0 -30
  64. package/docs/AuthSignInSocialRequest.md +0 -30
  65. package/docs/AuthSignInSocialResponse.md +0 -30
  66. package/docs/AuthSignUpEmailRequest.md +0 -32
  67. package/docs/AuthSignUpEmailResponse.md +0 -28
  68. package/docs/AuthUnlinkAccountRequest.md +0 -22
  69. package/docs/AuthUnlinkAccountResponse.md +0 -24
  70. package/docs/AuthUpdateUserRequest.md +0 -22
  71. package/docs/AuthUpdateUserResponse.md +0 -24
  72. package/docs/AuthVerifyEmailResponse.md +0 -24
package/api.ts CHANGED
@@ -515,118 +515,6 @@ export interface AudioPricing {
515
515
  */
516
516
  'extra'?: { [key: string]: string; };
517
517
  }
518
- /**
519
- * 关联账号信息 (映射 db.UserAuthMethod)
520
- */
521
- export interface Auth2Account {
522
- 'id'?: string;
523
- 'account_id'?: string;
524
- 'provider_id'?: string;
525
- 'user_id'?: string;
526
- 'created_at'?: string;
527
- 'updated_at'?: string;
528
- 'scopes'?: Array<string>;
529
- }
530
- /**
531
- * 管理员用户信息 (映射 db.User,包含角色信息)
532
- */
533
- export interface Auth2Admin {
534
- 'id'?: string;
535
- 'name'?: string;
536
- 'email'?: string;
537
- 'image'?: string;
538
- 'role'?: number;
539
- 'created_at'?: string;
540
- 'updated_at'?: string;
541
- }
542
- /**
543
- * 管理员会话信息 (映射 db.UserSession)
544
- */
545
- export interface Auth2AdminSession {
546
- 'id'?: string;
547
- 'token'?: string;
548
- 'expires_at'?: string;
549
- 'created_at'?: string;
550
- 'updated_at'?: string;
551
- 'ip_address'?: string;
552
- 'user_agent'?: string;
553
- 'user_id'?: string;
554
- }
555
- /**
556
- * 社交登录 ID Token
557
- */
558
- export interface Auth2IdToken {
559
- 'token'?: string;
560
- 'nonce'?: string;
561
- 'access_token'?: string;
562
- 'refresh_token'?: string;
563
- 'expires_at'?: string;
564
- }
565
- /**
566
- * 会话信息 (映射 db.UserSession)
567
- */
568
- export interface Auth2Session {
569
- 'id'?: string;
570
- 'token'?: string;
571
- 'expires_at'?: string;
572
- 'created_at'?: string;
573
- 'updated_at'?: string;
574
- 'ip_address'?: string;
575
- 'user_agent'?: string;
576
- 'user_id'?: string;
577
- }
578
- /**
579
- * 用户信息
580
- */
581
- export interface Auth2User {
582
- 'id'?: string;
583
- 'name'?: string;
584
- 'email'?: string;
585
- 'email_verified'?: boolean;
586
- 'image'?: string;
587
- 'created_at'?: string;
588
- 'updated_at'?: string;
589
- }
590
- export interface AuthAdminChangePasswordRequest {
591
- 'new_password'?: string;
592
- 'current_password'?: string;
593
- 'revoke_other_sessions'?: boolean;
594
- }
595
- export interface AuthAdminChangePasswordResponse {
596
- 'code'?: string;
597
- 'message'?: string;
598
- 'token'?: string;
599
- 'user'?: Auth2Admin;
600
- }
601
- export interface AuthAdminGetSessionResponse {
602
- 'code'?: string;
603
- 'message'?: string;
604
- 'session'?: Auth2AdminSession;
605
- 'user'?: Auth2Admin;
606
- }
607
- export interface AuthAdminListSessionsResponse {
608
- 'code'?: string;
609
- 'message'?: string;
610
- 'sessions'?: Array<Auth2AdminSession>;
611
- }
612
- export interface AuthAdminRevokeOtherSessionsResponse {
613
- 'code'?: string;
614
- 'message'?: string;
615
- 'status'?: boolean;
616
- }
617
- export interface AuthAdminRevokeSessionRequest {
618
- 'token'?: string;
619
- }
620
- export interface AuthAdminRevokeSessionResponse {
621
- 'code'?: string;
622
- 'message'?: string;
623
- 'status'?: boolean;
624
- }
625
- export interface AuthAdminRevokeSessionsResponse {
626
- 'code'?: string;
627
- 'message'?: string;
628
- 'status'?: boolean;
629
- }
630
518
  /**
631
519
  * 管理员会话信息 (映射 db.UserSession)
632
520
  */
@@ -642,32 +530,6 @@ export interface AuthAdminSession {
642
530
  'aid'?: string;
643
531
  'uid'?: string;
644
532
  }
645
- export interface AuthAdminSignInEmailRequest {
646
- 'email'?: string;
647
- 'password'?: string;
648
- 'session_type'?: string;
649
- 'remember_me'?: boolean;
650
- }
651
- export interface AuthAdminSignInEmailResponse {
652
- 'code'?: string;
653
- 'message'?: string;
654
- 'token'?: string;
655
- 'user'?: Auth2Admin;
656
- }
657
- export interface AuthAdminSignOutResponse {
658
- 'code'?: string;
659
- 'message'?: string;
660
- 'success'?: boolean;
661
- }
662
- export interface AuthAdminUpdateUserRequest {
663
- 'name'?: string;
664
- 'image'?: string;
665
- }
666
- export interface AuthAdminUpdateUserResponse {
667
- 'code'?: string;
668
- 'message'?: string;
669
- 'user'?: Auth2Admin;
670
- }
671
533
  /**
672
534
  * 管理员用户信息 (映射 db.User,包含角色信息)
673
535
  */
@@ -680,37 +542,6 @@ export interface AuthAdminUser {
680
542
  'created_at'?: string;
681
543
  'updated_at'?: string;
682
544
  }
683
- export interface AuthChangeEmailRequest {
684
- 'new_email'?: string;
685
- 'callback_url'?: string;
686
- }
687
- export interface AuthChangeEmailResponse {
688
- 'code'?: string;
689
- 'message'?: string;
690
- 'user'?: Auth2User;
691
- 'status'?: boolean;
692
- }
693
- export interface AuthChangePasswordRequest {
694
- 'new_password'?: string;
695
- 'current_password'?: string;
696
- 'revoke_other_sessions'?: boolean;
697
- }
698
- export interface AuthChangePasswordResponse {
699
- 'code'?: string;
700
- 'message'?: string;
701
- 'token'?: string;
702
- 'user'?: Auth2User;
703
- }
704
- export interface AuthDeleteUserRequest {
705
- 'callback_url'?: string;
706
- 'password'?: string;
707
- 'token'?: string;
708
- }
709
- export interface AuthDeleteUserResponse {
710
- 'code'?: string;
711
- 'message'?: string;
712
- 'success'?: boolean;
713
- }
714
545
  /**
715
546
  * 企业认证材料信息
716
547
  */
@@ -772,32 +603,6 @@ export interface AuthEnterpriseUser {
772
603
  'phone_verified_at'?: string;
773
604
  'materials'?: AuthEnterpriseMaterials;
774
605
  }
775
- export interface AuthGetAccessTokenRequest {
776
- 'provider_id'?: string;
777
- 'account_id'?: string;
778
- 'user_id'?: string;
779
- }
780
- export interface AuthGetAccessTokenResponse {
781
- 'code'?: string;
782
- 'message'?: string;
783
- 'token_type'?: string;
784
- 'id_token'?: string;
785
- 'access_token'?: string;
786
- 'refresh_token'?: string;
787
- 'access_token_expires_at'?: string;
788
- 'refresh_token_expires_at'?: string;
789
- }
790
- export interface AuthGetAccountInfoResponse {
791
- 'code'?: string;
792
- 'message'?: string;
793
- 'user'?: Auth2User;
794
- }
795
- export interface AuthGetSessionResponse {
796
- 'code'?: string;
797
- 'message'?: string;
798
- 'session'?: Auth2Session;
799
- 'user'?: Auth2User;
800
- }
801
606
  /**
802
607
  * 社交登录 ID Token
803
608
  */
@@ -808,40 +613,6 @@ export interface AuthIdToken {
808
613
  'refresh_token'?: string;
809
614
  'expires_at'?: string;
810
615
  }
811
- export interface AuthLinkSocialRequest {
812
- 'provider'?: string;
813
- 'callback_url'?: string;
814
- 'error_callback_url'?: string;
815
- 'disable_redirect'?: boolean;
816
- 'id_token'?: Auth2IdToken;
817
- 'scopes'?: Array<string>;
818
- }
819
- export interface AuthLinkSocialResponse {
820
- 'code'?: string;
821
- 'message'?: string;
822
- 'url'?: string;
823
- 'redirect'?: boolean;
824
- 'status'?: boolean;
825
- }
826
- export interface AuthListAccountsResponse {
827
- 'code'?: string;
828
- 'message'?: string;
829
- 'accounts'?: Array<Auth2Account>;
830
- }
831
- export interface AuthListSessionsResponse {
832
- 'code'?: string;
833
- 'message'?: string;
834
- 'sessions'?: Array<Auth2Session>;
835
- }
836
- export interface AuthOAuth2CallbackResponse {
837
- 'code'?: string;
838
- 'message'?: string;
839
- 'token'?: string;
840
- 'url'?: string;
841
- 'redirect'?: boolean;
842
- 'user'?: Auth2User;
843
- 'is_linked'?: boolean;
844
- }
845
616
  /**
846
617
  * 通行证信息 (映射 db.Passport)
847
618
  */
@@ -855,210 +626,76 @@ export interface AuthPassport {
855
626
  'email_verified_at'?: string;
856
627
  'phone_verified_at'?: string;
857
628
  }
858
- export interface AuthRefreshTokenRequest {
859
- 'provider_id'?: string;
860
- 'account_id'?: string;
861
- 'user_id'?: string;
862
- }
863
- export interface AuthRefreshTokenResponse {
864
- 'code'?: string;
865
- 'message'?: string;
866
- 'token_type'?: string;
867
- 'id_token'?: string;
868
- 'access_token'?: string;
869
- 'refresh_token'?: string;
870
- 'access_token_expires_at'?: string;
871
- 'refresh_token_expires_at'?: string;
629
+ /**
630
+ * 用户信息
631
+ */
632
+ export interface AuthUser {
633
+ 'uid'?: string;
634
+ 'app_id'?: string;
635
+ 'aid'?: string;
636
+ 'name'?: string;
637
+ 'email'?: string;
638
+ 'phone'?: string;
639
+ 'avatar_url'?: string;
640
+ 'register_at'?: string;
641
+ 'email_verified_at'?: string;
642
+ 'phone_verified_at'?: string;
872
643
  }
873
- export interface AuthRequestPasswordResetRequest {
644
+ /**
645
+ * 关联账号信息 (映射 db.UserAuthMethod)
646
+ */
647
+ export interface AuthUserMethod {
648
+ 'app_id'?: string;
649
+ 'aid'?: string;
650
+ 'uid'?: string;
651
+ 'provider_id'?: string;
874
652
  'email'?: string;
875
- 'redirect_to'?: string;
653
+ 'phone'?: string;
654
+ 'oauth_account_id'?: string;
655
+ 'oauth_scopes'?: Array<string>;
656
+ 'created_at'?: string;
657
+ 'updated_at'?: string;
876
658
  }
877
- export interface AuthRequestPasswordResetResponse {
878
- 'code'?: string;
879
- 'message'?: string;
880
- 'status'?: boolean;
659
+ /**
660
+ * 会话信息 (映射 db.UserSession)
661
+ */
662
+ export interface AuthUserSession {
663
+ 'session_token'?: string;
664
+ 'refresh_token'?: string;
665
+ 'session_expires_at'?: string;
666
+ 'refresh_expires_at'?: string;
667
+ 'app_id'?: string;
668
+ 'aid'?: string;
669
+ 'uid'?: string;
670
+ 'created_at'?: string;
671
+ 'updated_at'?: string;
672
+ 'ip'?: string;
673
+ 'user_agent'?: string;
881
674
  }
882
- export interface AuthResetPasswordRequest {
883
- 'new_password'?: string;
884
- 'token'?: string;
675
+ export interface BatchUpdateSessionsRequest {
676
+ 'uid'?: string;
677
+ 'session_ids'?: Array<string>;
678
+ 'action'?: number;
885
679
  }
886
- export interface AuthResetPasswordResponse {
680
+ export interface BatchUpdateSessionsResponse {
887
681
  'code'?: string;
888
682
  'message'?: string;
889
- 'status'?: boolean;
683
+ 'affected_count'?: number;
890
684
  }
891
- export interface AuthRevokeOtherSessionsResponse {
892
- 'code'?: string;
893
- 'message'?: string;
894
- 'status'?: boolean;
685
+ export interface ConfigItem {
686
+ 'id'?: string;
687
+ 'service'?: string;
688
+ 'key'?: string;
689
+ 'env'?: string;
690
+ 'values'?: { [key: string]: any; };
691
+ 'payload'?: { [key: string]: any; };
692
+ 'createdAt'?: string;
693
+ 'updatedAt'?: string;
694
+ 'deletedAt'?: string;
895
695
  }
896
- export interface AuthRevokeSessionRequest {
897
- 'token'?: string;
898
- }
899
- export interface AuthRevokeSessionResponse {
900
- 'code'?: string;
901
- 'message'?: string;
902
- 'status'?: boolean;
903
- }
904
- export interface AuthRevokeSessionsResponse {
905
- 'code'?: string;
906
- 'message'?: string;
907
- 'status'?: boolean;
908
- }
909
- export interface AuthSendVerificationEmailRequest {
910
- 'email'?: string;
911
- 'callback_url'?: string;
912
- }
913
- export interface AuthSendVerificationEmailResponse {
914
- 'code'?: string;
915
- 'message'?: string;
916
- 'status'?: boolean;
917
- }
918
- export interface AuthSignInEmailRequest {
919
- 'email'?: string;
920
- 'password'?: string;
921
- 'callback_url'?: string;
922
- 'remember_me'?: boolean;
923
- }
924
- export interface AuthSignInEmailResponse {
925
- 'code'?: string;
926
- 'message'?: string;
927
- 'redirect'?: boolean;
928
- 'token'?: string;
929
- 'url'?: string;
930
- 'user'?: Auth2User;
931
- }
932
- export interface AuthSignInSocialRequest {
933
- 'provider'?: string;
934
- 'callback_url'?: string;
935
- 'error_callback_url'?: string;
936
- 'disable_redirect'?: boolean;
937
- 'id_token'?: Auth2IdToken;
938
- 'scopes'?: Array<string>;
939
- }
940
- export interface AuthSignInSocialResponse {
941
- 'code'?: string;
942
- 'message'?: string;
943
- 'redirect'?: boolean;
944
- 'token'?: string;
945
- 'url'?: string;
946
- 'user'?: Auth2User;
947
- }
948
- export interface AuthSignOutResponse {
949
- 'code'?: string;
950
- 'message'?: string;
951
- 'success'?: boolean;
952
- }
953
- export interface AuthSignUpEmailRequest {
954
- 'name'?: string;
955
- 'email'?: string;
956
- 'password'?: string;
957
- 'image'?: string;
958
- 'callback_url'?: string;
959
- 'remember_me'?: boolean;
960
- 'disable_redirect'?: boolean;
961
- }
962
- export interface AuthSignUpEmailResponse {
963
- 'code'?: string;
964
- 'message'?: string;
965
- 'redirect'?: boolean;
966
- 'url'?: string;
967
- 'user'?: Auth2User;
968
- }
969
- export interface AuthUnlinkAccountRequest {
970
- 'provider_id'?: string;
971
- 'account_id'?: string;
972
- }
973
- export interface AuthUnlinkAccountResponse {
974
- 'code'?: string;
975
- 'message'?: string;
976
- 'status'?: boolean;
977
- }
978
- export interface AuthUpdateUserRequest {
979
- 'name'?: string;
980
- 'image'?: string;
981
- }
982
- export interface AuthUpdateUserResponse {
983
- 'code'?: string;
984
- 'message'?: string;
985
- 'user'?: Auth2User;
986
- }
987
- /**
988
- * 用户信息
989
- */
990
- export interface AuthUser {
991
- 'uid'?: string;
992
- 'app_id'?: string;
993
- 'aid'?: string;
994
- 'name'?: string;
995
- 'email'?: string;
996
- 'phone'?: string;
997
- 'avatar_url'?: string;
998
- 'register_at'?: string;
999
- 'email_verified_at'?: string;
1000
- 'phone_verified_at'?: string;
1001
- }
1002
- /**
1003
- * 关联账号信息 (映射 db.UserAuthMethod)
1004
- */
1005
- export interface AuthUserMethod {
1006
- 'app_id'?: string;
1007
- 'aid'?: string;
1008
- 'uid'?: string;
1009
- 'provider_id'?: string;
1010
- 'email'?: string;
1011
- 'phone'?: string;
1012
- 'oauth_account_id'?: string;
1013
- 'oauth_scopes'?: Array<string>;
1014
- 'created_at'?: string;
1015
- 'updated_at'?: string;
1016
- }
1017
- /**
1018
- * 会话信息 (映射 db.UserSession)
1019
- */
1020
- export interface AuthUserSession {
1021
- 'session_token'?: string;
1022
- 'refresh_token'?: string;
1023
- 'session_expires_at'?: string;
1024
- 'refresh_expires_at'?: string;
1025
- 'app_id'?: string;
1026
- 'aid'?: string;
1027
- 'uid'?: string;
1028
- 'created_at'?: string;
1029
- 'updated_at'?: string;
1030
- 'ip'?: string;
1031
- 'user_agent'?: string;
1032
- }
1033
- export interface AuthVerifyEmailResponse {
1034
- 'code'?: string;
1035
- 'message'?: string;
1036
- 'user'?: Auth2User;
1037
- }
1038
- export interface BatchUpdateSessionsRequest {
1039
- 'uid'?: string;
1040
- 'session_ids'?: Array<string>;
1041
- 'action'?: number;
1042
- }
1043
- export interface BatchUpdateSessionsResponse {
1044
- 'code'?: string;
1045
- 'message'?: string;
1046
- 'affected_count'?: number;
1047
- }
1048
- export interface ConfigItem {
1049
- 'id'?: string;
1050
- 'service'?: string;
1051
- 'key'?: string;
1052
- 'env'?: string;
1053
- 'values'?: { [key: string]: any; };
1054
- 'payload'?: { [key: string]: any; };
1055
- 'createdAt'?: string;
1056
- 'updatedAt'?: string;
1057
- 'deletedAt'?: string;
1058
- }
1059
- export interface ConfigItemHistory {
1060
- 'item'?: ConfigItem;
1061
- 'history'?: Array<ConfigItem>;
696
+ export interface ConfigItemHistory {
697
+ 'item'?: ConfigItem;
698
+ 'history'?: Array<ConfigItem>;
1062
699
  }
1063
700
  export interface DiscountCreateRequest {
1064
701
  'name'?: string;
@@ -2257,6 +1894,21 @@ export interface PassportUserOAuthCallbackResponse {
2257
1894
  */
2258
1895
  'users'?: Array<AuthUser>;
2259
1896
  }
1897
+ export interface PassportUserPasswordForgetRequest {
1898
+ /**
1899
+ * NOTE: app_ids 是 \':\' 分隔的字符串列表
1900
+ */
1901
+ 'app_ids'?: string;
1902
+ 'email'?: string;
1903
+ /**
1904
+ * 注意是前端回调地址,用于用户邮箱点击跳转前端重置密码页
1905
+ */
1906
+ 'callback_url'?: string;
1907
+ }
1908
+ export interface PassportUserPasswordForgetResponse {
1909
+ 'code'?: string;
1910
+ 'message'?: string;
1911
+ }
2260
1912
  export interface PassportUserPasswordResetRequest {
2261
1913
  /**
2262
1914
  * NOTE: app_ids 是 \':\' 分隔的字符串列表
@@ -2264,6 +1916,7 @@ export interface PassportUserPasswordResetRequest {
2264
1916
  'app_ids'?: string;
2265
1917
  'email'?: string;
2266
1918
  'verify_code'?: string;
1919
+ 'new_password'?: string;
2267
1920
  /**
2268
1921
  * 是否禁用服务端重定向, 携带 callback_url 时有效
2269
1922
  */
@@ -2276,6 +1929,22 @@ export interface PassportUserPasswordResetResponse {
2276
1929
  'url'?: string;
2277
1930
  'redirect'?: boolean;
2278
1931
  }
1932
+ export interface PassportUserPasswordResetTokenVerifyRequest {
1933
+ /**
1934
+ * NOTE: app_ids 是 \':\' 分隔的字符串列表
1935
+ */
1936
+ 'app_ids'?: string;
1937
+ /**
1938
+ * 重置密码请求重置的 token
1939
+ */
1940
+ 'token'?: string;
1941
+ }
1942
+ export interface PassportUserPasswordResetTokenVerifyResponse {
1943
+ 'code'?: string;
1944
+ 'message'?: string;
1945
+ 'email'?: string;
1946
+ 'verify_code'?: string;
1947
+ }
2279
1948
  export interface PassportUserSignInEmailRequest {
2280
1949
  /**
2281
1950
  * User.AppID, 支持多个应用同时登录,如果对应 App 的账号,无法完成登录 NOTE: app_ids 是 \':\' 分隔的字符串列表
@@ -4280,2668 +3949,175 @@ export const AIModelAdminServiceApiFactory = function (configuration?: Configura
4280
3949
  * @param {AIModelUpdateRequest} aIModelUpdateRequest
4281
3950
  * @param {*} [options] Override http request option.
4282
3951
  * @throws {RequiredError}
4283
- */
4284
- aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelUpdateResponse> {
4285
- return localVarFp.aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options).then((request) => request(axios, basePath));
4286
- },
4287
- };
4288
- };
4289
-
4290
- /**
4291
- * AIModelAdminServiceApi - interface
4292
- */
4293
- export interface AIModelAdminServiceApiInterface {
4294
- /**
4295
- * AIModelCheckConnection 检查 AIModel 的连接性
4296
- * @param {Array<string>} [aiModelNames]
4297
- * @param {*} [options] Override http request option.
4298
- * @throws {RequiredError}
4299
- */
4300
- aIModelAdminServiceAIModelCheckConnection(aiModelNames?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<AIModelCheckConnectionResponse>;
4301
-
4302
- /**
4303
- * AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
4304
- * @param {AIModelCreateRequest} aIModelCreateRequest
4305
- * @param {*} [options] Override http request option.
4306
- * @throws {RequiredError}
4307
- */
4308
- aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelCreateResponse>;
4309
-
4310
- /**
4311
- * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
4312
- * @param {AIModelDeleteRequest} aIModelDeleteRequest
4313
- * @param {*} [options] Override http request option.
4314
- * @throws {RequiredError}
4315
- */
4316
- aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDeleteResponse>;
4317
-
4318
- /**
4319
- * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
4320
- * @param {AIModelDisableRequest} aIModelDisableRequest
4321
- * @param {*} [options] Override http request option.
4322
- * @throws {RequiredError}
4323
- */
4324
- aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDisableResponse>;
4325
-
4326
- /**
4327
- * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4328
- * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\&quot;id\&quot;
4329
- * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\&quot;name\&quot;
4330
- * @param {*} [options] Override http request option.
4331
- * @throws {RequiredError}
4332
- */
4333
- aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelGetResponse>;
4334
-
4335
- /**
4336
- * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4337
- * @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\&quot;page\&quot;
4338
- * @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\&quot;page_size\&quot;
4339
- * @param {number} [status] status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 @gotags: form:\&quot;status\&quot;
4340
- * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \&quot;gpt-4\&quot; 会匹配 \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot; 等 Example: \&quot;gpt-4\&quot; matches \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot;, etc. @gotags: form:\&quot;name_prefix\&quot;
4341
- * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \&quot;gpt-4\&quot; 会匹配该分组下的所有模型 Example: \&quot;gpt-4\&quot; matches all models in this group @gotags: form:\&quot;group\&quot;
4342
- * @param {*} [options] Override http request option.
4343
- * @throws {RequiredError}
4344
- */
4345
- aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelListResponse>;
4346
-
4347
- /**
4348
- * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
4349
- * @param {AIModelPublishRequest} aIModelPublishRequest
4350
- * @param {*} [options] Override http request option.
4351
- * @throws {RequiredError}
4352
- */
4353
- aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelPublishResponse>;
4354
-
4355
- /**
4356
- * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
4357
- * @param {AIModelUpdateRequest} aIModelUpdateRequest
4358
- * @param {*} [options] Override http request option.
4359
- * @throws {RequiredError}
4360
- */
4361
- aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelUpdateResponse>;
4362
-
4363
- }
4364
-
4365
- /**
4366
- * AIModelAdminServiceApi - object-oriented interface
4367
- */
4368
- export class AIModelAdminServiceApi extends BaseAPI implements AIModelAdminServiceApiInterface {
4369
- /**
4370
- * AIModelCheckConnection 检查 AIModel 的连接性
4371
- * @param {Array<string>} [aiModelNames]
4372
- * @param {*} [options] Override http request option.
4373
- * @throws {RequiredError}
4374
- */
4375
- public aIModelAdminServiceAIModelCheckConnection(aiModelNames?: Array<string>, options?: RawAxiosRequestConfig) {
4376
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelCheckConnection(aiModelNames, options).then((request) => request(this.axios, this.basePath));
4377
- }
4378
-
4379
- /**
4380
- * AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
4381
- * @param {AIModelCreateRequest} aIModelCreateRequest
4382
- * @param {*} [options] Override http request option.
4383
- * @throws {RequiredError}
4384
- */
4385
- public aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig) {
4386
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
4387
- }
4388
-
4389
- /**
4390
- * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
4391
- * @param {AIModelDeleteRequest} aIModelDeleteRequest
4392
- * @param {*} [options] Override http request option.
4393
- * @throws {RequiredError}
4394
- */
4395
- public aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig) {
4396
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
4397
- }
4398
-
4399
- /**
4400
- * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
4401
- * @param {AIModelDisableRequest} aIModelDisableRequest
4402
- * @param {*} [options] Override http request option.
4403
- * @throws {RequiredError}
4404
- */
4405
- public aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig) {
4406
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options).then((request) => request(this.axios, this.basePath));
4407
- }
4408
-
4409
- /**
4410
- * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4411
- * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\&quot;id\&quot;
4412
- * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\&quot;name\&quot;
4413
- * @param {*} [options] Override http request option.
4414
- * @throws {RequiredError}
4415
- */
4416
- public aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig) {
4417
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelGet(id, name, options).then((request) => request(this.axios, this.basePath));
4418
- }
4419
-
4420
- /**
4421
- * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4422
- * @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\&quot;page\&quot;
4423
- * @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\&quot;page_size\&quot;
4424
- * @param {number} [status] status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 @gotags: form:\&quot;status\&quot;
4425
- * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \&quot;gpt-4\&quot; 会匹配 \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot; 等 Example: \&quot;gpt-4\&quot; matches \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot;, etc. @gotags: form:\&quot;name_prefix\&quot;
4426
- * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \&quot;gpt-4\&quot; 会匹配该分组下的所有模型 Example: \&quot;gpt-4\&quot; matches all models in this group @gotags: form:\&quot;group\&quot;
4427
- * @param {*} [options] Override http request option.
4428
- * @throws {RequiredError}
4429
- */
4430
- public aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig) {
4431
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options).then((request) => request(this.axios, this.basePath));
4432
- }
4433
-
4434
- /**
4435
- * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
4436
- * @param {AIModelPublishRequest} aIModelPublishRequest
4437
- * @param {*} [options] Override http request option.
4438
- * @throws {RequiredError}
4439
- */
4440
- public aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig) {
4441
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options).then((request) => request(this.axios, this.basePath));
4442
- }
4443
-
4444
- /**
4445
- * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
4446
- * @param {AIModelUpdateRequest} aIModelUpdateRequest
4447
- * @param {*} [options] Override http request option.
4448
- * @throws {RequiredError}
4449
- */
4450
- public aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig) {
4451
- return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
4452
- }
4453
- }
4454
-
4455
-
4456
-
4457
- /**
4458
- * Auth2AdminServiceApi - axios parameter creator
4459
- */
4460
- export const Auth2AdminServiceApiAxiosParamCreator = function (configuration?: Configuration) {
4461
- return {
4462
- /**
4463
- * ============ 密码管理 ============
4464
- * @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
4465
- * @param {*} [options] Override http request option.
4466
- * @throws {RequiredError}
4467
- */
4468
- auth2AdminServiceAuthAdminChangePassword: async (authAdminChangePasswordRequest: AuthAdminChangePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4469
- // verify required parameter 'authAdminChangePasswordRequest' is not null or undefined
4470
- assertParamExists('auth2AdminServiceAuthAdminChangePassword', 'authAdminChangePasswordRequest', authAdminChangePasswordRequest)
4471
- const localVarPath = `/admin/authed/change-password`;
4472
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4473
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4474
- let baseOptions;
4475
- if (configuration) {
4476
- baseOptions = configuration.baseOptions;
4477
- }
4478
-
4479
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4480
- const localVarHeaderParameter = {} as any;
4481
- const localVarQueryParameter = {} as any;
4482
-
4483
-
4484
-
4485
- localVarHeaderParameter['Content-Type'] = 'application/json';
4486
-
4487
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4488
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4489
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4490
- localVarRequestOptions.data = serializeDataIfNeeded(authAdminChangePasswordRequest, localVarRequestOptions, configuration)
4491
-
4492
- return {
4493
- url: toPathString(localVarUrlObj),
4494
- options: localVarRequestOptions,
4495
- };
4496
- },
4497
- /**
4498
- *
4499
- * @param {*} [options] Override http request option.
4500
- * @throws {RequiredError}
4501
- */
4502
- auth2AdminServiceAuthAdminGetSession: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4503
- const localVarPath = `/admin/authed/get-session`;
4504
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4505
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4506
- let baseOptions;
4507
- if (configuration) {
4508
- baseOptions = configuration.baseOptions;
4509
- }
4510
-
4511
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4512
- const localVarHeaderParameter = {} as any;
4513
- const localVarQueryParameter = {} as any;
4514
-
4515
-
4516
-
4517
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4518
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4519
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4520
-
4521
- return {
4522
- url: toPathString(localVarUrlObj),
4523
- options: localVarRequestOptions,
4524
- };
4525
- },
4526
- /**
4527
- * ============ 会话管理 ============
4528
- * @param {*} [options] Override http request option.
4529
- * @throws {RequiredError}
4530
- */
4531
- auth2AdminServiceAuthAdminListSessions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4532
- const localVarPath = `/admin/authed/list-sessions`;
4533
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4534
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4535
- let baseOptions;
4536
- if (configuration) {
4537
- baseOptions = configuration.baseOptions;
4538
- }
4539
-
4540
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4541
- const localVarHeaderParameter = {} as any;
4542
- const localVarQueryParameter = {} as any;
4543
-
4544
-
4545
-
4546
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4547
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4548
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4549
-
4550
- return {
4551
- url: toPathString(localVarUrlObj),
4552
- options: localVarRequestOptions,
4553
- };
4554
- },
4555
- /**
4556
- *
4557
- * @param {object} body
4558
- * @param {*} [options] Override http request option.
4559
- * @throws {RequiredError}
4560
- */
4561
- auth2AdminServiceAuthAdminRevokeOtherSessions: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4562
- // verify required parameter 'body' is not null or undefined
4563
- assertParamExists('auth2AdminServiceAuthAdminRevokeOtherSessions', 'body', body)
4564
- const localVarPath = `/admin/authed/revoke-other-sessions`;
4565
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4566
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4567
- let baseOptions;
4568
- if (configuration) {
4569
- baseOptions = configuration.baseOptions;
4570
- }
4571
-
4572
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4573
- const localVarHeaderParameter = {} as any;
4574
- const localVarQueryParameter = {} as any;
4575
-
4576
-
4577
-
4578
- localVarHeaderParameter['Content-Type'] = 'application/json';
4579
-
4580
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4581
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4582
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4583
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4584
-
4585
- return {
4586
- url: toPathString(localVarUrlObj),
4587
- options: localVarRequestOptions,
4588
- };
4589
- },
4590
- /**
4591
- *
4592
- * @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
4593
- * @param {*} [options] Override http request option.
4594
- * @throws {RequiredError}
4595
- */
4596
- auth2AdminServiceAuthAdminRevokeSession: async (authAdminRevokeSessionRequest: AuthAdminRevokeSessionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4597
- // verify required parameter 'authAdminRevokeSessionRequest' is not null or undefined
4598
- assertParamExists('auth2AdminServiceAuthAdminRevokeSession', 'authAdminRevokeSessionRequest', authAdminRevokeSessionRequest)
4599
- const localVarPath = `/admin/authed/revoke-session`;
4600
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4601
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4602
- let baseOptions;
4603
- if (configuration) {
4604
- baseOptions = configuration.baseOptions;
4605
- }
4606
-
4607
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4608
- const localVarHeaderParameter = {} as any;
4609
- const localVarQueryParameter = {} as any;
4610
-
4611
-
4612
-
4613
- localVarHeaderParameter['Content-Type'] = 'application/json';
4614
-
4615
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4616
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4617
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4618
- localVarRequestOptions.data = serializeDataIfNeeded(authAdminRevokeSessionRequest, localVarRequestOptions, configuration)
4619
-
4620
- return {
4621
- url: toPathString(localVarUrlObj),
4622
- options: localVarRequestOptions,
4623
- };
4624
- },
4625
- /**
4626
- *
4627
- * @param {object} body
4628
- * @param {*} [options] Override http request option.
4629
- * @throws {RequiredError}
4630
- */
4631
- auth2AdminServiceAuthAdminRevokeSessions: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4632
- // verify required parameter 'body' is not null or undefined
4633
- assertParamExists('auth2AdminServiceAuthAdminRevokeSessions', 'body', body)
4634
- const localVarPath = `/admin/authed/revoke-sessions`;
4635
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4636
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4637
- let baseOptions;
4638
- if (configuration) {
4639
- baseOptions = configuration.baseOptions;
4640
- }
4641
-
4642
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4643
- const localVarHeaderParameter = {} as any;
4644
- const localVarQueryParameter = {} as any;
4645
-
4646
-
4647
-
4648
- localVarHeaderParameter['Content-Type'] = 'application/json';
4649
-
4650
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4651
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4652
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4653
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4654
-
4655
- return {
4656
- url: toPathString(localVarUrlObj),
4657
- options: localVarRequestOptions,
4658
- };
4659
- },
4660
- /**
4661
- * ============ 认证 ============
4662
- * @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
4663
- * @param {*} [options] Override http request option.
4664
- * @throws {RequiredError}
4665
- */
4666
- auth2AdminServiceAuthAdminSignInEmail: async (authAdminSignInEmailRequest: AuthAdminSignInEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4667
- // verify required parameter 'authAdminSignInEmailRequest' is not null or undefined
4668
- assertParamExists('auth2AdminServiceAuthAdminSignInEmail', 'authAdminSignInEmailRequest', authAdminSignInEmailRequest)
4669
- const localVarPath = `/admin/auth/sign-in/email`;
4670
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4671
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4672
- let baseOptions;
4673
- if (configuration) {
4674
- baseOptions = configuration.baseOptions;
4675
- }
4676
-
4677
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4678
- const localVarHeaderParameter = {} as any;
4679
- const localVarQueryParameter = {} as any;
4680
-
4681
-
4682
-
4683
- localVarHeaderParameter['Content-Type'] = 'application/json';
4684
-
4685
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4686
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4687
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4688
- localVarRequestOptions.data = serializeDataIfNeeded(authAdminSignInEmailRequest, localVarRequestOptions, configuration)
4689
-
4690
- return {
4691
- url: toPathString(localVarUrlObj),
4692
- options: localVarRequestOptions,
4693
- };
4694
- },
4695
- /**
4696
- *
4697
- * @param {object} body
4698
- * @param {*} [options] Override http request option.
4699
- * @throws {RequiredError}
4700
- */
4701
- auth2AdminServiceAuthAdminSignOut: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4702
- // verify required parameter 'body' is not null or undefined
4703
- assertParamExists('auth2AdminServiceAuthAdminSignOut', 'body', body)
4704
- const localVarPath = `/admin/authed/sign-out`;
4705
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4706
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4707
- let baseOptions;
4708
- if (configuration) {
4709
- baseOptions = configuration.baseOptions;
4710
- }
4711
-
4712
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4713
- const localVarHeaderParameter = {} as any;
4714
- const localVarQueryParameter = {} as any;
4715
-
4716
-
4717
-
4718
- localVarHeaderParameter['Content-Type'] = 'application/json';
4719
-
4720
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4721
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4722
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4723
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4724
-
4725
- return {
4726
- url: toPathString(localVarUrlObj),
4727
- options: localVarRequestOptions,
4728
- };
4729
- },
4730
- /**
4731
- * ============ 管理员信息管理 ============
4732
- * @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
4733
- * @param {*} [options] Override http request option.
4734
- * @throws {RequiredError}
4735
- */
4736
- auth2AdminServiceAuthAdminUpdateUser: async (authAdminUpdateUserRequest: AuthAdminUpdateUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4737
- // verify required parameter 'authAdminUpdateUserRequest' is not null or undefined
4738
- assertParamExists('auth2AdminServiceAuthAdminUpdateUser', 'authAdminUpdateUserRequest', authAdminUpdateUserRequest)
4739
- const localVarPath = `/admin/authed/update-user`;
4740
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4741
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4742
- let baseOptions;
4743
- if (configuration) {
4744
- baseOptions = configuration.baseOptions;
4745
- }
4746
-
4747
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4748
- const localVarHeaderParameter = {} as any;
4749
- const localVarQueryParameter = {} as any;
4750
-
4751
-
4752
-
4753
- localVarHeaderParameter['Content-Type'] = 'application/json';
4754
-
4755
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4756
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4757
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4758
- localVarRequestOptions.data = serializeDataIfNeeded(authAdminUpdateUserRequest, localVarRequestOptions, configuration)
4759
-
4760
- return {
4761
- url: toPathString(localVarUrlObj),
4762
- options: localVarRequestOptions,
4763
- };
4764
- },
4765
- }
4766
- };
4767
-
4768
- /**
4769
- * Auth2AdminServiceApi - functional programming interface
4770
- */
4771
- export const Auth2AdminServiceApiFp = function(configuration?: Configuration) {
4772
- const localVarAxiosParamCreator = Auth2AdminServiceApiAxiosParamCreator(configuration)
4773
- return {
4774
- /**
4775
- * ============ 密码管理 ============
4776
- * @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
4777
- * @param {*} [options] Override http request option.
4778
- * @throws {RequiredError}
4779
- */
4780
- async auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest: AuthAdminChangePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminChangePasswordResponse>> {
4781
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options);
4782
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4783
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminChangePassword']?.[localVarOperationServerIndex]?.url;
4784
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4785
- },
4786
- /**
4787
- *
4788
- * @param {*} [options] Override http request option.
4789
- * @throws {RequiredError}
4790
- */
4791
- async auth2AdminServiceAuthAdminGetSession(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminGetSessionResponse>> {
4792
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminGetSession(options);
4793
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4794
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminGetSession']?.[localVarOperationServerIndex]?.url;
4795
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4796
- },
4797
- /**
4798
- * ============ 会话管理 ============
4799
- * @param {*} [options] Override http request option.
4800
- * @throws {RequiredError}
4801
- */
4802
- async auth2AdminServiceAuthAdminListSessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminListSessionsResponse>> {
4803
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminListSessions(options);
4804
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4805
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminListSessions']?.[localVarOperationServerIndex]?.url;
4806
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4807
- },
4808
- /**
4809
- *
4810
- * @param {object} body
4811
- * @param {*} [options] Override http request option.
4812
- * @throws {RequiredError}
4813
- */
4814
- async auth2AdminServiceAuthAdminRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminRevokeOtherSessionsResponse>> {
4815
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeOtherSessions(body, options);
4816
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4817
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeOtherSessions']?.[localVarOperationServerIndex]?.url;
4818
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4819
- },
4820
- /**
4821
- *
4822
- * @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
4823
- * @param {*} [options] Override http request option.
4824
- * @throws {RequiredError}
4825
- */
4826
- async auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest: AuthAdminRevokeSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminRevokeSessionResponse>> {
4827
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options);
4828
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4829
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeSession']?.[localVarOperationServerIndex]?.url;
4830
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4831
- },
4832
- /**
4833
- *
4834
- * @param {object} body
4835
- * @param {*} [options] Override http request option.
4836
- * @throws {RequiredError}
4837
- */
4838
- async auth2AdminServiceAuthAdminRevokeSessions(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminRevokeSessionsResponse>> {
4839
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeSessions(body, options);
4840
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4841
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeSessions']?.[localVarOperationServerIndex]?.url;
4842
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4843
- },
4844
- /**
4845
- * ============ 认证 ============
4846
- * @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
4847
- * @param {*} [options] Override http request option.
4848
- * @throws {RequiredError}
4849
- */
4850
- async auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest: AuthAdminSignInEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminSignInEmailResponse>> {
4851
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options);
4852
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4853
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminSignInEmail']?.[localVarOperationServerIndex]?.url;
4854
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4855
- },
4856
- /**
4857
- *
4858
- * @param {object} body
4859
- * @param {*} [options] Override http request option.
4860
- * @throws {RequiredError}
4861
- */
4862
- async auth2AdminServiceAuthAdminSignOut(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminSignOutResponse>> {
4863
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminSignOut(body, options);
4864
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4865
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminSignOut']?.[localVarOperationServerIndex]?.url;
4866
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4867
- },
4868
- /**
4869
- * ============ 管理员信息管理 ============
4870
- * @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
4871
- * @param {*} [options] Override http request option.
4872
- * @throws {RequiredError}
4873
- */
4874
- async auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest: AuthAdminUpdateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthAdminUpdateUserResponse>> {
4875
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options);
4876
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4877
- const localVarOperationServerBasePath = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminUpdateUser']?.[localVarOperationServerIndex]?.url;
4878
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4879
- },
4880
- }
4881
- };
4882
-
4883
- /**
4884
- * Auth2AdminServiceApi - factory interface
4885
- */
4886
- export const Auth2AdminServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4887
- const localVarFp = Auth2AdminServiceApiFp(configuration)
4888
- return {
4889
- /**
4890
- * ============ 密码管理 ============
4891
- * @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
4892
- * @param {*} [options] Override http request option.
4893
- * @throws {RequiredError}
4894
- */
4895
- auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest: AuthAdminChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminChangePasswordResponse> {
4896
- return localVarFp.auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options).then((request) => request(axios, basePath));
4897
- },
4898
- /**
4899
- *
4900
- * @param {*} [options] Override http request option.
4901
- * @throws {RequiredError}
4902
- */
4903
- auth2AdminServiceAuthAdminGetSession(options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminGetSessionResponse> {
4904
- return localVarFp.auth2AdminServiceAuthAdminGetSession(options).then((request) => request(axios, basePath));
4905
- },
4906
- /**
4907
- * ============ 会话管理 ============
4908
- * @param {*} [options] Override http request option.
4909
- * @throws {RequiredError}
4910
- */
4911
- auth2AdminServiceAuthAdminListSessions(options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminListSessionsResponse> {
4912
- return localVarFp.auth2AdminServiceAuthAdminListSessions(options).then((request) => request(axios, basePath));
4913
- },
4914
- /**
4915
- *
4916
- * @param {object} body
4917
- * @param {*} [options] Override http request option.
4918
- * @throws {RequiredError}
4919
- */
4920
- auth2AdminServiceAuthAdminRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminRevokeOtherSessionsResponse> {
4921
- return localVarFp.auth2AdminServiceAuthAdminRevokeOtherSessions(body, options).then((request) => request(axios, basePath));
4922
- },
4923
- /**
4924
- *
4925
- * @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
4926
- * @param {*} [options] Override http request option.
4927
- * @throws {RequiredError}
4928
- */
4929
- auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest: AuthAdminRevokeSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminRevokeSessionResponse> {
4930
- return localVarFp.auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options).then((request) => request(axios, basePath));
4931
- },
4932
- /**
4933
- *
4934
- * @param {object} body
4935
- * @param {*} [options] Override http request option.
4936
- * @throws {RequiredError}
4937
- */
4938
- auth2AdminServiceAuthAdminRevokeSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminRevokeSessionsResponse> {
4939
- return localVarFp.auth2AdminServiceAuthAdminRevokeSessions(body, options).then((request) => request(axios, basePath));
4940
- },
4941
- /**
4942
- * ============ 认证 ============
4943
- * @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
4944
- * @param {*} [options] Override http request option.
4945
- * @throws {RequiredError}
4946
- */
4947
- auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest: AuthAdminSignInEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminSignInEmailResponse> {
4948
- return localVarFp.auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options).then((request) => request(axios, basePath));
4949
- },
4950
- /**
4951
- *
4952
- * @param {object} body
4953
- * @param {*} [options] Override http request option.
4954
- * @throws {RequiredError}
4955
- */
4956
- auth2AdminServiceAuthAdminSignOut(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminSignOutResponse> {
4957
- return localVarFp.auth2AdminServiceAuthAdminSignOut(body, options).then((request) => request(axios, basePath));
4958
- },
4959
- /**
4960
- * ============ 管理员信息管理 ============
4961
- * @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
4962
- * @param {*} [options] Override http request option.
4963
- * @throws {RequiredError}
4964
- */
4965
- auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest: AuthAdminUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminUpdateUserResponse> {
4966
- return localVarFp.auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options).then((request) => request(axios, basePath));
4967
- },
4968
- };
4969
- };
4970
-
4971
- /**
4972
- * Auth2AdminServiceApi - interface
4973
- */
4974
- export interface Auth2AdminServiceApiInterface {
4975
- /**
4976
- * ============ 密码管理 ============
4977
- * @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
4978
- * @param {*} [options] Override http request option.
4979
- * @throws {RequiredError}
4980
- */
4981
- auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest: AuthAdminChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminChangePasswordResponse>;
4982
-
4983
- /**
4984
- *
4985
- * @param {*} [options] Override http request option.
4986
- * @throws {RequiredError}
4987
- */
4988
- auth2AdminServiceAuthAdminGetSession(options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminGetSessionResponse>;
4989
-
4990
- /**
4991
- * ============ 会话管理 ============
4992
- * @param {*} [options] Override http request option.
4993
- * @throws {RequiredError}
4994
- */
4995
- auth2AdminServiceAuthAdminListSessions(options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminListSessionsResponse>;
4996
-
4997
- /**
4998
- *
4999
- * @param {object} body
5000
- * @param {*} [options] Override http request option.
5001
- * @throws {RequiredError}
5002
- */
5003
- auth2AdminServiceAuthAdminRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminRevokeOtherSessionsResponse>;
5004
-
5005
- /**
5006
- *
5007
- * @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
5008
- * @param {*} [options] Override http request option.
5009
- * @throws {RequiredError}
5010
- */
5011
- auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest: AuthAdminRevokeSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminRevokeSessionResponse>;
5012
-
5013
- /**
5014
- *
5015
- * @param {object} body
5016
- * @param {*} [options] Override http request option.
5017
- * @throws {RequiredError}
5018
- */
5019
- auth2AdminServiceAuthAdminRevokeSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminRevokeSessionsResponse>;
5020
-
5021
- /**
5022
- * ============ 认证 ============
5023
- * @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
5024
- * @param {*} [options] Override http request option.
5025
- * @throws {RequiredError}
5026
- */
5027
- auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest: AuthAdminSignInEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminSignInEmailResponse>;
5028
-
5029
- /**
5030
- *
5031
- * @param {object} body
5032
- * @param {*} [options] Override http request option.
5033
- * @throws {RequiredError}
5034
- */
5035
- auth2AdminServiceAuthAdminSignOut(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminSignOutResponse>;
5036
-
5037
- /**
5038
- * ============ 管理员信息管理 ============
5039
- * @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
5040
- * @param {*} [options] Override http request option.
5041
- * @throws {RequiredError}
5042
- */
5043
- auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest: AuthAdminUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthAdminUpdateUserResponse>;
5044
-
5045
- }
5046
-
5047
- /**
5048
- * Auth2AdminServiceApi - object-oriented interface
5049
- */
5050
- export class Auth2AdminServiceApi extends BaseAPI implements Auth2AdminServiceApiInterface {
5051
- /**
5052
- * ============ 密码管理 ============
5053
- * @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
5054
- * @param {*} [options] Override http request option.
5055
- * @throws {RequiredError}
5056
- */
5057
- public auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest: AuthAdminChangePasswordRequest, options?: RawAxiosRequestConfig) {
5058
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options).then((request) => request(this.axios, this.basePath));
5059
- }
5060
-
5061
- /**
5062
- *
5063
- * @param {*} [options] Override http request option.
5064
- * @throws {RequiredError}
5065
- */
5066
- public auth2AdminServiceAuthAdminGetSession(options?: RawAxiosRequestConfig) {
5067
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminGetSession(options).then((request) => request(this.axios, this.basePath));
5068
- }
5069
-
5070
- /**
5071
- * ============ 会话管理 ============
5072
- * @param {*} [options] Override http request option.
5073
- * @throws {RequiredError}
5074
- */
5075
- public auth2AdminServiceAuthAdminListSessions(options?: RawAxiosRequestConfig) {
5076
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminListSessions(options).then((request) => request(this.axios, this.basePath));
5077
- }
5078
-
5079
- /**
5080
- *
5081
- * @param {object} body
5082
- * @param {*} [options] Override http request option.
5083
- * @throws {RequiredError}
5084
- */
5085
- public auth2AdminServiceAuthAdminRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig) {
5086
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminRevokeOtherSessions(body, options).then((request) => request(this.axios, this.basePath));
5087
- }
5088
-
5089
- /**
5090
- *
5091
- * @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
5092
- * @param {*} [options] Override http request option.
5093
- * @throws {RequiredError}
5094
- */
5095
- public auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest: AuthAdminRevokeSessionRequest, options?: RawAxiosRequestConfig) {
5096
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options).then((request) => request(this.axios, this.basePath));
5097
- }
5098
-
5099
- /**
5100
- *
5101
- * @param {object} body
5102
- * @param {*} [options] Override http request option.
5103
- * @throws {RequiredError}
5104
- */
5105
- public auth2AdminServiceAuthAdminRevokeSessions(body: object, options?: RawAxiosRequestConfig) {
5106
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminRevokeSessions(body, options).then((request) => request(this.axios, this.basePath));
5107
- }
5108
-
5109
- /**
5110
- * ============ 认证 ============
5111
- * @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
5112
- * @param {*} [options] Override http request option.
5113
- * @throws {RequiredError}
5114
- */
5115
- public auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest: AuthAdminSignInEmailRequest, options?: RawAxiosRequestConfig) {
5116
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options).then((request) => request(this.axios, this.basePath));
5117
- }
5118
-
5119
- /**
5120
- *
5121
- * @param {object} body
5122
- * @param {*} [options] Override http request option.
5123
- * @throws {RequiredError}
5124
- */
5125
- public auth2AdminServiceAuthAdminSignOut(body: object, options?: RawAxiosRequestConfig) {
5126
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminSignOut(body, options).then((request) => request(this.axios, this.basePath));
5127
- }
5128
-
5129
- /**
5130
- * ============ 管理员信息管理 ============
5131
- * @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
5132
- * @param {*} [options] Override http request option.
5133
- * @throws {RequiredError}
5134
- */
5135
- public auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest: AuthAdminUpdateUserRequest, options?: RawAxiosRequestConfig) {
5136
- return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
5137
- }
5138
- }
5139
-
5140
-
5141
-
5142
- /**
5143
- * Auth2UserServiceApi - axios parameter creator
5144
- */
5145
- export const Auth2UserServiceApiAxiosParamCreator = function (configuration?: Configuration) {
5146
- return {
5147
- /**
5148
- *
5149
- * @param {AuthChangeEmailRequest} authChangeEmailRequest
5150
- * @param {*} [options] Override http request option.
5151
- * @throws {RequiredError}
5152
- */
5153
- auth2UserServiceAuthChangeEmail: async (authChangeEmailRequest: AuthChangeEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5154
- // verify required parameter 'authChangeEmailRequest' is not null or undefined
5155
- assertParamExists('auth2UserServiceAuthChangeEmail', 'authChangeEmailRequest', authChangeEmailRequest)
5156
- const localVarPath = `/authed/v1/change-email`;
5157
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5158
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5159
- let baseOptions;
5160
- if (configuration) {
5161
- baseOptions = configuration.baseOptions;
5162
- }
5163
-
5164
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5165
- const localVarHeaderParameter = {} as any;
5166
- const localVarQueryParameter = {} as any;
5167
-
5168
-
5169
-
5170
- localVarHeaderParameter['Content-Type'] = 'application/json';
5171
-
5172
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5173
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5174
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5175
- localVarRequestOptions.data = serializeDataIfNeeded(authChangeEmailRequest, localVarRequestOptions, configuration)
5176
-
5177
- return {
5178
- url: toPathString(localVarUrlObj),
5179
- options: localVarRequestOptions,
5180
- };
5181
- },
5182
- /**
5183
- * ============ 密码管理 ============
5184
- * @param {AuthChangePasswordRequest} authChangePasswordRequest
5185
- * @param {*} [options] Override http request option.
5186
- * @throws {RequiredError}
5187
- */
5188
- auth2UserServiceAuthChangePassword: async (authChangePasswordRequest: AuthChangePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5189
- // verify required parameter 'authChangePasswordRequest' is not null or undefined
5190
- assertParamExists('auth2UserServiceAuthChangePassword', 'authChangePasswordRequest', authChangePasswordRequest)
5191
- const localVarPath = `/authed/v1/change-password`;
5192
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5193
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5194
- let baseOptions;
5195
- if (configuration) {
5196
- baseOptions = configuration.baseOptions;
5197
- }
5198
-
5199
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5200
- const localVarHeaderParameter = {} as any;
5201
- const localVarQueryParameter = {} as any;
5202
-
5203
-
5204
-
5205
- localVarHeaderParameter['Content-Type'] = 'application/json';
5206
-
5207
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5208
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5209
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5210
- localVarRequestOptions.data = serializeDataIfNeeded(authChangePasswordRequest, localVarRequestOptions, configuration)
5211
-
5212
- return {
5213
- url: toPathString(localVarUrlObj),
5214
- options: localVarRequestOptions,
5215
- };
5216
- },
5217
- /**
5218
- *
5219
- * @param {AuthDeleteUserRequest} authDeleteUserRequest
5220
- * @param {*} [options] Override http request option.
5221
- * @throws {RequiredError}
5222
- */
5223
- auth2UserServiceAuthDeleteUser: async (authDeleteUserRequest: AuthDeleteUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5224
- // verify required parameter 'authDeleteUserRequest' is not null or undefined
5225
- assertParamExists('auth2UserServiceAuthDeleteUser', 'authDeleteUserRequest', authDeleteUserRequest)
5226
- const localVarPath = `/authed/v1/delete-user`;
5227
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5228
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5229
- let baseOptions;
5230
- if (configuration) {
5231
- baseOptions = configuration.baseOptions;
5232
- }
5233
-
5234
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5235
- const localVarHeaderParameter = {} as any;
5236
- const localVarQueryParameter = {} as any;
5237
-
5238
-
5239
-
5240
- localVarHeaderParameter['Content-Type'] = 'application/json';
5241
-
5242
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5243
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5244
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5245
- localVarRequestOptions.data = serializeDataIfNeeded(authDeleteUserRequest, localVarRequestOptions, configuration)
5246
-
5247
- return {
5248
- url: toPathString(localVarUrlObj),
5249
- options: localVarRequestOptions,
5250
- };
5251
- },
5252
- /**
5253
- *
5254
- * @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
5255
- * @param {*} [options] Override http request option.
5256
- * @throws {RequiredError}
5257
- */
5258
- auth2UserServiceAuthGetAccessToken: async (authGetAccessTokenRequest: AuthGetAccessTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5259
- // verify required parameter 'authGetAccessTokenRequest' is not null or undefined
5260
- assertParamExists('auth2UserServiceAuthGetAccessToken', 'authGetAccessTokenRequest', authGetAccessTokenRequest)
5261
- const localVarPath = `/authed/v1/get-access-token`;
5262
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5263
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5264
- let baseOptions;
5265
- if (configuration) {
5266
- baseOptions = configuration.baseOptions;
5267
- }
5268
-
5269
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5270
- const localVarHeaderParameter = {} as any;
5271
- const localVarQueryParameter = {} as any;
5272
-
5273
-
5274
-
5275
- localVarHeaderParameter['Content-Type'] = 'application/json';
5276
-
5277
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5278
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5279
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5280
- localVarRequestOptions.data = serializeDataIfNeeded(authGetAccessTokenRequest, localVarRequestOptions, configuration)
5281
-
5282
- return {
5283
- url: toPathString(localVarUrlObj),
5284
- options: localVarRequestOptions,
5285
- };
5286
- },
5287
- /**
5288
- *
5289
- * @param {*} [options] Override http request option.
5290
- * @throws {RequiredError}
5291
- */
5292
- auth2UserServiceAuthGetAccountInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5293
- const localVarPath = `/authed/v1/account-info`;
5294
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5295
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5296
- let baseOptions;
5297
- if (configuration) {
5298
- baseOptions = configuration.baseOptions;
5299
- }
5300
-
5301
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5302
- const localVarHeaderParameter = {} as any;
5303
- const localVarQueryParameter = {} as any;
5304
-
5305
-
5306
-
5307
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5308
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5309
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5310
-
5311
- return {
5312
- url: toPathString(localVarUrlObj),
5313
- options: localVarRequestOptions,
5314
- };
5315
- },
5316
- /**
5317
- *
5318
- * @param {*} [options] Override http request option.
5319
- * @throws {RequiredError}
5320
- */
5321
- auth2UserServiceAuthGetSession: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5322
- const localVarPath = `/authed/v1/get-session`;
5323
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5324
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5325
- let baseOptions;
5326
- if (configuration) {
5327
- baseOptions = configuration.baseOptions;
5328
- }
5329
-
5330
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5331
- const localVarHeaderParameter = {} as any;
5332
- const localVarQueryParameter = {} as any;
5333
-
5334
-
5335
-
5336
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5337
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5338
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5339
-
5340
- return {
5341
- url: toPathString(localVarUrlObj),
5342
- options: localVarRequestOptions,
5343
- };
5344
- },
5345
- /**
5346
- * ============ 账号关联 ============
5347
- * @param {AuthLinkSocialRequest} authLinkSocialRequest
5348
- * @param {*} [options] Override http request option.
5349
- * @throws {RequiredError}
5350
- */
5351
- auth2UserServiceAuthLinkSocial: async (authLinkSocialRequest: AuthLinkSocialRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5352
- // verify required parameter 'authLinkSocialRequest' is not null or undefined
5353
- assertParamExists('auth2UserServiceAuthLinkSocial', 'authLinkSocialRequest', authLinkSocialRequest)
5354
- const localVarPath = `/authed/v1/link-social`;
5355
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5356
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5357
- let baseOptions;
5358
- if (configuration) {
5359
- baseOptions = configuration.baseOptions;
5360
- }
5361
-
5362
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5363
- const localVarHeaderParameter = {} as any;
5364
- const localVarQueryParameter = {} as any;
5365
-
5366
-
5367
-
5368
- localVarHeaderParameter['Content-Type'] = 'application/json';
5369
-
5370
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5371
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5372
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5373
- localVarRequestOptions.data = serializeDataIfNeeded(authLinkSocialRequest, localVarRequestOptions, configuration)
5374
-
5375
- return {
5376
- url: toPathString(localVarUrlObj),
5377
- options: localVarRequestOptions,
5378
- };
5379
- },
5380
- /**
5381
- *
5382
- * @param {*} [options] Override http request option.
5383
- * @throws {RequiredError}
5384
- */
5385
- auth2UserServiceAuthListAccounts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5386
- const localVarPath = `/authed/v1/list-accounts`;
5387
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5388
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5389
- let baseOptions;
5390
- if (configuration) {
5391
- baseOptions = configuration.baseOptions;
5392
- }
5393
-
5394
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5395
- const localVarHeaderParameter = {} as any;
5396
- const localVarQueryParameter = {} as any;
5397
-
5398
-
5399
-
5400
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5401
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5402
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5403
-
5404
- return {
5405
- url: toPathString(localVarUrlObj),
5406
- options: localVarRequestOptions,
5407
- };
5408
- },
5409
- /**
5410
- * ============ 会话管理 ============
5411
- * @param {*} [options] Override http request option.
5412
- * @throws {RequiredError}
5413
- */
5414
- auth2UserServiceAuthListSessions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5415
- const localVarPath = `/authed/v1/list-sessions`;
5416
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5417
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5418
- let baseOptions;
5419
- if (configuration) {
5420
- baseOptions = configuration.baseOptions;
5421
- }
5422
-
5423
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5424
- const localVarHeaderParameter = {} as any;
5425
- const localVarQueryParameter = {} as any;
5426
-
5427
-
5428
-
5429
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5430
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5431
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5432
-
5433
- return {
5434
- url: toPathString(localVarUrlObj),
5435
- options: localVarRequestOptions,
5436
- };
5437
- },
5438
- /**
5439
- *
5440
- * @param {string} platform
5441
- * @param {string} [code]
5442
- * @param {string} [state]
5443
- * @param {*} [options] Override http request option.
5444
- * @throws {RequiredError}
5445
- */
5446
- auth2UserServiceAuthOAuth2Callback: async (platform: string, code?: string, state?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5447
- // verify required parameter 'platform' is not null or undefined
5448
- assertParamExists('auth2UserServiceAuthOAuth2Callback', 'platform', platform)
5449
- const localVarPath = `/oauth2/{platform}/callback`
5450
- .replace(`{${"platform"}}`, encodeURIComponent(String(platform)));
5451
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5452
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5453
- let baseOptions;
5454
- if (configuration) {
5455
- baseOptions = configuration.baseOptions;
5456
- }
5457
-
5458
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5459
- const localVarHeaderParameter = {} as any;
5460
- const localVarQueryParameter = {} as any;
5461
-
5462
- if (code !== undefined) {
5463
- localVarQueryParameter['code'] = code;
5464
- }
5465
-
5466
- if (state !== undefined) {
5467
- localVarQueryParameter['state'] = state;
5468
- }
5469
-
5470
-
5471
-
5472
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5473
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5474
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5475
-
5476
- return {
5477
- url: toPathString(localVarUrlObj),
5478
- options: localVarRequestOptions,
5479
- };
5480
- },
5481
- /**
5482
- * ============ Token 管理 ============
5483
- * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
5484
- * @param {*} [options] Override http request option.
5485
- * @throws {RequiredError}
5486
- */
5487
- auth2UserServiceAuthRefreshToken: async (authRefreshTokenRequest: AuthRefreshTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5488
- // verify required parameter 'authRefreshTokenRequest' is not null or undefined
5489
- assertParamExists('auth2UserServiceAuthRefreshToken', 'authRefreshTokenRequest', authRefreshTokenRequest)
5490
- const localVarPath = `/authed/v1/refresh-token`;
5491
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5492
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5493
- let baseOptions;
5494
- if (configuration) {
5495
- baseOptions = configuration.baseOptions;
5496
- }
5497
-
5498
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5499
- const localVarHeaderParameter = {} as any;
5500
- const localVarQueryParameter = {} as any;
5501
-
5502
-
5503
-
5504
- localVarHeaderParameter['Content-Type'] = 'application/json';
5505
-
5506
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5507
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5508
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5509
- localVarRequestOptions.data = serializeDataIfNeeded(authRefreshTokenRequest, localVarRequestOptions, configuration)
5510
-
5511
- return {
5512
- url: toPathString(localVarUrlObj),
5513
- options: localVarRequestOptions,
5514
- };
5515
- },
5516
- /**
5517
- *
5518
- * @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
5519
- * @param {*} [options] Override http request option.
5520
- * @throws {RequiredError}
5521
- */
5522
- auth2UserServiceAuthRequestPasswordReset: async (authRequestPasswordResetRequest: AuthRequestPasswordResetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5523
- // verify required parameter 'authRequestPasswordResetRequest' is not null or undefined
5524
- assertParamExists('auth2UserServiceAuthRequestPasswordReset', 'authRequestPasswordResetRequest', authRequestPasswordResetRequest)
5525
- const localVarPath = `/authed/v1/request-password-reset`;
5526
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5527
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5528
- let baseOptions;
5529
- if (configuration) {
5530
- baseOptions = configuration.baseOptions;
5531
- }
5532
-
5533
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5534
- const localVarHeaderParameter = {} as any;
5535
- const localVarQueryParameter = {} as any;
5536
-
5537
-
5538
-
5539
- localVarHeaderParameter['Content-Type'] = 'application/json';
5540
-
5541
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5542
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5543
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5544
- localVarRequestOptions.data = serializeDataIfNeeded(authRequestPasswordResetRequest, localVarRequestOptions, configuration)
5545
-
5546
- return {
5547
- url: toPathString(localVarUrlObj),
5548
- options: localVarRequestOptions,
5549
- };
5550
- },
5551
- /**
5552
- *
5553
- * @param {AuthResetPasswordRequest} authResetPasswordRequest
5554
- * @param {*} [options] Override http request option.
5555
- * @throws {RequiredError}
5556
- */
5557
- auth2UserServiceAuthResetPassword: async (authResetPasswordRequest: AuthResetPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5558
- // verify required parameter 'authResetPasswordRequest' is not null or undefined
5559
- assertParamExists('auth2UserServiceAuthResetPassword', 'authResetPasswordRequest', authResetPasswordRequest)
5560
- const localVarPath = `/authed/v1/reset-password`;
5561
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5562
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5563
- let baseOptions;
5564
- if (configuration) {
5565
- baseOptions = configuration.baseOptions;
5566
- }
5567
-
5568
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5569
- const localVarHeaderParameter = {} as any;
5570
- const localVarQueryParameter = {} as any;
5571
-
5572
-
5573
-
5574
- localVarHeaderParameter['Content-Type'] = 'application/json';
5575
-
5576
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5577
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5578
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5579
- localVarRequestOptions.data = serializeDataIfNeeded(authResetPasswordRequest, localVarRequestOptions, configuration)
5580
-
5581
- return {
5582
- url: toPathString(localVarUrlObj),
5583
- options: localVarRequestOptions,
5584
- };
5585
- },
5586
- /**
5587
- *
5588
- * @param {object} body
5589
- * @param {*} [options] Override http request option.
5590
- * @throws {RequiredError}
5591
- */
5592
- auth2UserServiceAuthRevokeOtherSessions: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5593
- // verify required parameter 'body' is not null or undefined
5594
- assertParamExists('auth2UserServiceAuthRevokeOtherSessions', 'body', body)
5595
- const localVarPath = `/authed/v1/revoke-other-sessions`;
5596
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5597
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5598
- let baseOptions;
5599
- if (configuration) {
5600
- baseOptions = configuration.baseOptions;
5601
- }
5602
-
5603
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5604
- const localVarHeaderParameter = {} as any;
5605
- const localVarQueryParameter = {} as any;
5606
-
5607
-
5608
-
5609
- localVarHeaderParameter['Content-Type'] = 'application/json';
5610
-
5611
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5612
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5613
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5614
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
5615
-
5616
- return {
5617
- url: toPathString(localVarUrlObj),
5618
- options: localVarRequestOptions,
5619
- };
5620
- },
5621
- /**
5622
- *
5623
- * @param {AuthRevokeSessionRequest} authRevokeSessionRequest
5624
- * @param {*} [options] Override http request option.
5625
- * @throws {RequiredError}
5626
- */
5627
- auth2UserServiceAuthRevokeSession: async (authRevokeSessionRequest: AuthRevokeSessionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5628
- // verify required parameter 'authRevokeSessionRequest' is not null or undefined
5629
- assertParamExists('auth2UserServiceAuthRevokeSession', 'authRevokeSessionRequest', authRevokeSessionRequest)
5630
- const localVarPath = `/authed/v1/revoke-session`;
5631
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5632
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5633
- let baseOptions;
5634
- if (configuration) {
5635
- baseOptions = configuration.baseOptions;
5636
- }
5637
-
5638
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5639
- const localVarHeaderParameter = {} as any;
5640
- const localVarQueryParameter = {} as any;
5641
-
5642
-
5643
-
5644
- localVarHeaderParameter['Content-Type'] = 'application/json';
5645
-
5646
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5647
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5648
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5649
- localVarRequestOptions.data = serializeDataIfNeeded(authRevokeSessionRequest, localVarRequestOptions, configuration)
5650
-
5651
- return {
5652
- url: toPathString(localVarUrlObj),
5653
- options: localVarRequestOptions,
5654
- };
5655
- },
5656
- /**
5657
- *
5658
- * @param {object} body
5659
- * @param {*} [options] Override http request option.
5660
- * @throws {RequiredError}
5661
- */
5662
- auth2UserServiceAuthRevokeSessions: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5663
- // verify required parameter 'body' is not null or undefined
5664
- assertParamExists('auth2UserServiceAuthRevokeSessions', 'body', body)
5665
- const localVarPath = `/authed/v1/revoke-sessions`;
5666
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5667
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5668
- let baseOptions;
5669
- if (configuration) {
5670
- baseOptions = configuration.baseOptions;
5671
- }
5672
-
5673
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5674
- const localVarHeaderParameter = {} as any;
5675
- const localVarQueryParameter = {} as any;
5676
-
5677
-
5678
-
5679
- localVarHeaderParameter['Content-Type'] = 'application/json';
5680
-
5681
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5682
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5683
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5684
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
5685
-
5686
- return {
5687
- url: toPathString(localVarUrlObj),
5688
- options: localVarRequestOptions,
5689
- };
5690
- },
5691
- /**
5692
- * ============ 邮箱验证 ============
5693
- * @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
5694
- * @param {*} [options] Override http request option.
5695
- * @throws {RequiredError}
5696
- */
5697
- auth2UserServiceAuthSendVerificationEmail: async (authSendVerificationEmailRequest: AuthSendVerificationEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5698
- // verify required parameter 'authSendVerificationEmailRequest' is not null or undefined
5699
- assertParamExists('auth2UserServiceAuthSendVerificationEmail', 'authSendVerificationEmailRequest', authSendVerificationEmailRequest)
5700
- const localVarPath = `/authed/v1/send-verification-email`;
5701
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5702
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5703
- let baseOptions;
5704
- if (configuration) {
5705
- baseOptions = configuration.baseOptions;
5706
- }
5707
-
5708
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5709
- const localVarHeaderParameter = {} as any;
5710
- const localVarQueryParameter = {} as any;
5711
-
5712
-
5713
-
5714
- localVarHeaderParameter['Content-Type'] = 'application/json';
5715
-
5716
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5717
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5718
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5719
- localVarRequestOptions.data = serializeDataIfNeeded(authSendVerificationEmailRequest, localVarRequestOptions, configuration)
5720
-
5721
- return {
5722
- url: toPathString(localVarUrlObj),
5723
- options: localVarRequestOptions,
5724
- };
5725
- },
5726
- /**
5727
- *
5728
- * @param {AuthSignInEmailRequest} authSignInEmailRequest
5729
- * @param {*} [options] Override http request option.
5730
- * @throws {RequiredError}
5731
- */
5732
- auth2UserServiceAuthSignInEmail: async (authSignInEmailRequest: AuthSignInEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5733
- // verify required parameter 'authSignInEmailRequest' is not null or undefined
5734
- assertParamExists('auth2UserServiceAuthSignInEmail', 'authSignInEmailRequest', authSignInEmailRequest)
5735
- const localVarPath = `/auth/v1/sign-in/email`;
5736
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5737
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5738
- let baseOptions;
5739
- if (configuration) {
5740
- baseOptions = configuration.baseOptions;
5741
- }
5742
-
5743
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5744
- const localVarHeaderParameter = {} as any;
5745
- const localVarQueryParameter = {} as any;
5746
-
5747
-
5748
-
5749
- localVarHeaderParameter['Content-Type'] = 'application/json';
5750
-
5751
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5752
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5753
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5754
- localVarRequestOptions.data = serializeDataIfNeeded(authSignInEmailRequest, localVarRequestOptions, configuration)
5755
-
5756
- return {
5757
- url: toPathString(localVarUrlObj),
5758
- options: localVarRequestOptions,
5759
- };
5760
- },
5761
- /**
5762
- *
5763
- * @param {AuthSignInSocialRequest} authSignInSocialRequest
5764
- * @param {*} [options] Override http request option.
5765
- * @throws {RequiredError}
5766
- */
5767
- auth2UserServiceAuthSignInSocial: async (authSignInSocialRequest: AuthSignInSocialRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5768
- // verify required parameter 'authSignInSocialRequest' is not null or undefined
5769
- assertParamExists('auth2UserServiceAuthSignInSocial', 'authSignInSocialRequest', authSignInSocialRequest)
5770
- const localVarPath = `/auth/v1/sign-in/social`;
5771
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5772
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5773
- let baseOptions;
5774
- if (configuration) {
5775
- baseOptions = configuration.baseOptions;
5776
- }
5777
-
5778
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5779
- const localVarHeaderParameter = {} as any;
5780
- const localVarQueryParameter = {} as any;
5781
-
5782
-
5783
-
5784
- localVarHeaderParameter['Content-Type'] = 'application/json';
5785
-
5786
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5787
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5788
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5789
- localVarRequestOptions.data = serializeDataIfNeeded(authSignInSocialRequest, localVarRequestOptions, configuration)
5790
-
5791
- return {
5792
- url: toPathString(localVarUrlObj),
5793
- options: localVarRequestOptions,
5794
- };
5795
- },
5796
- /**
5797
- *
5798
- * @param {object} body
5799
- * @param {*} [options] Override http request option.
5800
- * @throws {RequiredError}
5801
- */
5802
- auth2UserServiceAuthSignOut: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5803
- // verify required parameter 'body' is not null or undefined
5804
- assertParamExists('auth2UserServiceAuthSignOut', 'body', body)
5805
- const localVarPath = `/authed/v1/sign-out`;
5806
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5807
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5808
- let baseOptions;
5809
- if (configuration) {
5810
- baseOptions = configuration.baseOptions;
5811
- }
5812
-
5813
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5814
- const localVarHeaderParameter = {} as any;
5815
- const localVarQueryParameter = {} as any;
5816
-
5817
-
5818
-
5819
- localVarHeaderParameter['Content-Type'] = 'application/json';
5820
-
5821
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5822
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5823
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5824
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
5825
-
5826
- return {
5827
- url: toPathString(localVarUrlObj),
5828
- options: localVarRequestOptions,
5829
- };
5830
- },
5831
- /**
5832
- * ============ 认证 ============
5833
- * @param {AuthSignUpEmailRequest} authSignUpEmailRequest
5834
- * @param {*} [options] Override http request option.
5835
- * @throws {RequiredError}
5836
- */
5837
- auth2UserServiceAuthSignUpEmail: async (authSignUpEmailRequest: AuthSignUpEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5838
- // verify required parameter 'authSignUpEmailRequest' is not null or undefined
5839
- assertParamExists('auth2UserServiceAuthSignUpEmail', 'authSignUpEmailRequest', authSignUpEmailRequest)
5840
- const localVarPath = `/auth/v1/sign-up/email`;
5841
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5842
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5843
- let baseOptions;
5844
- if (configuration) {
5845
- baseOptions = configuration.baseOptions;
5846
- }
5847
-
5848
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5849
- const localVarHeaderParameter = {} as any;
5850
- const localVarQueryParameter = {} as any;
5851
-
5852
-
5853
-
5854
- localVarHeaderParameter['Content-Type'] = 'application/json';
5855
-
5856
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5857
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5858
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5859
- localVarRequestOptions.data = serializeDataIfNeeded(authSignUpEmailRequest, localVarRequestOptions, configuration)
5860
-
5861
- return {
5862
- url: toPathString(localVarUrlObj),
5863
- options: localVarRequestOptions,
5864
- };
5865
- },
5866
- /**
5867
- *
5868
- * @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
5869
- * @param {*} [options] Override http request option.
5870
- * @throws {RequiredError}
5871
- */
5872
- auth2UserServiceAuthUnlinkAccount: async (authUnlinkAccountRequest: AuthUnlinkAccountRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5873
- // verify required parameter 'authUnlinkAccountRequest' is not null or undefined
5874
- assertParamExists('auth2UserServiceAuthUnlinkAccount', 'authUnlinkAccountRequest', authUnlinkAccountRequest)
5875
- const localVarPath = `/authed/v1/unlink-account`;
5876
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5877
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5878
- let baseOptions;
5879
- if (configuration) {
5880
- baseOptions = configuration.baseOptions;
5881
- }
5882
-
5883
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5884
- const localVarHeaderParameter = {} as any;
5885
- const localVarQueryParameter = {} as any;
5886
-
5887
-
5888
-
5889
- localVarHeaderParameter['Content-Type'] = 'application/json';
5890
-
5891
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5892
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5893
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5894
- localVarRequestOptions.data = serializeDataIfNeeded(authUnlinkAccountRequest, localVarRequestOptions, configuration)
5895
-
5896
- return {
5897
- url: toPathString(localVarUrlObj),
5898
- options: localVarRequestOptions,
5899
- };
5900
- },
5901
- /**
5902
- * ============ 用户管理 ============
5903
- * @param {AuthUpdateUserRequest} authUpdateUserRequest
5904
- * @param {*} [options] Override http request option.
5905
- * @throws {RequiredError}
5906
- */
5907
- auth2UserServiceAuthUpdateUser: async (authUpdateUserRequest: AuthUpdateUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5908
- // verify required parameter 'authUpdateUserRequest' is not null or undefined
5909
- assertParamExists('auth2UserServiceAuthUpdateUser', 'authUpdateUserRequest', authUpdateUserRequest)
5910
- const localVarPath = `/authed/v1/update-user`;
5911
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5912
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5913
- let baseOptions;
5914
- if (configuration) {
5915
- baseOptions = configuration.baseOptions;
5916
- }
5917
-
5918
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5919
- const localVarHeaderParameter = {} as any;
5920
- const localVarQueryParameter = {} as any;
5921
-
5922
-
5923
-
5924
- localVarHeaderParameter['Content-Type'] = 'application/json';
5925
-
5926
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5927
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5928
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5929
- localVarRequestOptions.data = serializeDataIfNeeded(authUpdateUserRequest, localVarRequestOptions, configuration)
5930
-
5931
- return {
5932
- url: toPathString(localVarUrlObj),
5933
- options: localVarRequestOptions,
5934
- };
5935
- },
5936
- /**
5937
- *
5938
- * @param {string} [email]
5939
- * @param {string} [authCode]
5940
- * @param {string} [callbackUrl]
5941
- * @param {*} [options] Override http request option.
5942
- * @throws {RequiredError}
5943
- */
5944
- auth2UserServiceAuthVerifyEmail: async (email?: string, authCode?: string, callbackUrl?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5945
- const localVarPath = `/authed/v1/verify-email`;
5946
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5947
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5948
- let baseOptions;
5949
- if (configuration) {
5950
- baseOptions = configuration.baseOptions;
5951
- }
5952
-
5953
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5954
- const localVarHeaderParameter = {} as any;
5955
- const localVarQueryParameter = {} as any;
5956
-
5957
- if (email !== undefined) {
5958
- localVarQueryParameter['email'] = email;
5959
- }
5960
-
5961
- if (authCode !== undefined) {
5962
- localVarQueryParameter['auth_code'] = authCode;
5963
- }
5964
-
5965
- if (callbackUrl !== undefined) {
5966
- localVarQueryParameter['callback_url'] = callbackUrl;
5967
- }
5968
-
5969
-
5970
-
5971
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5972
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5973
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5974
-
5975
- return {
5976
- url: toPathString(localVarUrlObj),
5977
- options: localVarRequestOptions,
5978
- };
5979
- },
5980
- }
5981
- };
5982
-
5983
- /**
5984
- * Auth2UserServiceApi - functional programming interface
5985
- */
5986
- export const Auth2UserServiceApiFp = function(configuration?: Configuration) {
5987
- const localVarAxiosParamCreator = Auth2UserServiceApiAxiosParamCreator(configuration)
5988
- return {
5989
- /**
5990
- *
5991
- * @param {AuthChangeEmailRequest} authChangeEmailRequest
5992
- * @param {*} [options] Override http request option.
5993
- * @throws {RequiredError}
5994
- */
5995
- async auth2UserServiceAuthChangeEmail(authChangeEmailRequest: AuthChangeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthChangeEmailResponse>> {
5996
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options);
5997
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5998
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthChangeEmail']?.[localVarOperationServerIndex]?.url;
5999
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6000
- },
6001
- /**
6002
- * ============ 密码管理 ============
6003
- * @param {AuthChangePasswordRequest} authChangePasswordRequest
6004
- * @param {*} [options] Override http request option.
6005
- * @throws {RequiredError}
6006
- */
6007
- async auth2UserServiceAuthChangePassword(authChangePasswordRequest: AuthChangePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthChangePasswordResponse>> {
6008
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthChangePassword(authChangePasswordRequest, options);
6009
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6010
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthChangePassword']?.[localVarOperationServerIndex]?.url;
6011
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6012
- },
6013
- /**
6014
- *
6015
- * @param {AuthDeleteUserRequest} authDeleteUserRequest
6016
- * @param {*} [options] Override http request option.
6017
- * @throws {RequiredError}
6018
- */
6019
- async auth2UserServiceAuthDeleteUser(authDeleteUserRequest: AuthDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthDeleteUserResponse>> {
6020
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options);
6021
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6022
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthDeleteUser']?.[localVarOperationServerIndex]?.url;
6023
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6024
- },
6025
- /**
6026
- *
6027
- * @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
6028
- * @param {*} [options] Override http request option.
6029
- * @throws {RequiredError}
6030
- */
6031
- async auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest: AuthGetAccessTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthGetAccessTokenResponse>> {
6032
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options);
6033
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6034
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetAccessToken']?.[localVarOperationServerIndex]?.url;
6035
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6036
- },
6037
- /**
6038
- *
6039
- * @param {*} [options] Override http request option.
6040
- * @throws {RequiredError}
6041
- */
6042
- async auth2UserServiceAuthGetAccountInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthGetAccountInfoResponse>> {
6043
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthGetAccountInfo(options);
6044
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6045
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetAccountInfo']?.[localVarOperationServerIndex]?.url;
6046
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6047
- },
6048
- /**
6049
- *
6050
- * @param {*} [options] Override http request option.
6051
- * @throws {RequiredError}
6052
- */
6053
- async auth2UserServiceAuthGetSession(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthGetSessionResponse>> {
6054
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthGetSession(options);
6055
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6056
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetSession']?.[localVarOperationServerIndex]?.url;
6057
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6058
- },
6059
- /**
6060
- * ============ 账号关联 ============
6061
- * @param {AuthLinkSocialRequest} authLinkSocialRequest
6062
- * @param {*} [options] Override http request option.
6063
- * @throws {RequiredError}
6064
- */
6065
- async auth2UserServiceAuthLinkSocial(authLinkSocialRequest: AuthLinkSocialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLinkSocialResponse>> {
6066
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options);
6067
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6068
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthLinkSocial']?.[localVarOperationServerIndex]?.url;
6069
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6070
- },
6071
- /**
6072
- *
6073
- * @param {*} [options] Override http request option.
6074
- * @throws {RequiredError}
6075
- */
6076
- async auth2UserServiceAuthListAccounts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthListAccountsResponse>> {
6077
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthListAccounts(options);
6078
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6079
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListAccounts']?.[localVarOperationServerIndex]?.url;
6080
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6081
- },
6082
- /**
6083
- * ============ 会话管理 ============
6084
- * @param {*} [options] Override http request option.
6085
- * @throws {RequiredError}
6086
- */
6087
- async auth2UserServiceAuthListSessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthListSessionsResponse>> {
6088
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthListSessions(options);
6089
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6090
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListSessions']?.[localVarOperationServerIndex]?.url;
6091
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6092
- },
6093
- /**
6094
- *
6095
- * @param {string} platform
6096
- * @param {string} [code]
6097
- * @param {string} [state]
6098
- * @param {*} [options] Override http request option.
6099
- * @throws {RequiredError}
6100
- */
6101
- async auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOAuth2CallbackResponse>> {
6102
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthOAuth2Callback(platform, code, state, options);
6103
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6104
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthOAuth2Callback']?.[localVarOperationServerIndex]?.url;
6105
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6106
- },
6107
- /**
6108
- * ============ Token 管理 ============
6109
- * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
6110
- * @param {*} [options] Override http request option.
6111
- * @throws {RequiredError}
6112
- */
6113
- async auth2UserServiceAuthRefreshToken(authRefreshTokenRequest: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRefreshTokenResponse>> {
6114
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options);
6115
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6116
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRefreshToken']?.[localVarOperationServerIndex]?.url;
6117
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6118
- },
6119
- /**
6120
- *
6121
- * @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
6122
- * @param {*} [options] Override http request option.
6123
- * @throws {RequiredError}
6124
- */
6125
- async auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest: AuthRequestPasswordResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRequestPasswordResetResponse>> {
6126
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options);
6127
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6128
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRequestPasswordReset']?.[localVarOperationServerIndex]?.url;
6129
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6130
- },
6131
- /**
6132
- *
6133
- * @param {AuthResetPasswordRequest} authResetPasswordRequest
6134
- * @param {*} [options] Override http request option.
6135
- * @throws {RequiredError}
6136
- */
6137
- async auth2UserServiceAuthResetPassword(authResetPasswordRequest: AuthResetPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthResetPasswordResponse>> {
6138
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthResetPassword(authResetPasswordRequest, options);
6139
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6140
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthResetPassword']?.[localVarOperationServerIndex]?.url;
6141
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6142
- },
6143
- /**
6144
- *
6145
- * @param {object} body
6146
- * @param {*} [options] Override http request option.
6147
- * @throws {RequiredError}
6148
- */
6149
- async auth2UserServiceAuthRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRevokeOtherSessionsResponse>> {
6150
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthRevokeOtherSessions(body, options);
6151
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6152
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeOtherSessions']?.[localVarOperationServerIndex]?.url;
6153
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6154
- },
6155
- /**
6156
- *
6157
- * @param {AuthRevokeSessionRequest} authRevokeSessionRequest
6158
- * @param {*} [options] Override http request option.
6159
- * @throws {RequiredError}
6160
- */
6161
- async auth2UserServiceAuthRevokeSession(authRevokeSessionRequest: AuthRevokeSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRevokeSessionResponse>> {
6162
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options);
6163
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6164
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeSession']?.[localVarOperationServerIndex]?.url;
6165
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6166
- },
6167
- /**
6168
- *
6169
- * @param {object} body
6170
- * @param {*} [options] Override http request option.
6171
- * @throws {RequiredError}
6172
- */
6173
- async auth2UserServiceAuthRevokeSessions(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRevokeSessionsResponse>> {
6174
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthRevokeSessions(body, options);
6175
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6176
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeSessions']?.[localVarOperationServerIndex]?.url;
6177
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6178
- },
6179
- /**
6180
- * ============ 邮箱验证 ============
6181
- * @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
6182
- * @param {*} [options] Override http request option.
6183
- * @throws {RequiredError}
6184
- */
6185
- async auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest: AuthSendVerificationEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthSendVerificationEmailResponse>> {
6186
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options);
6187
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6188
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSendVerificationEmail']?.[localVarOperationServerIndex]?.url;
6189
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6190
- },
6191
- /**
6192
- *
6193
- * @param {AuthSignInEmailRequest} authSignInEmailRequest
6194
- * @param {*} [options] Override http request option.
6195
- * @throws {RequiredError}
6196
- */
6197
- async auth2UserServiceAuthSignInEmail(authSignInEmailRequest: AuthSignInEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthSignInEmailResponse>> {
6198
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options);
6199
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6200
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignInEmail']?.[localVarOperationServerIndex]?.url;
6201
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6202
- },
6203
- /**
6204
- *
6205
- * @param {AuthSignInSocialRequest} authSignInSocialRequest
6206
- * @param {*} [options] Override http request option.
6207
- * @throws {RequiredError}
6208
- */
6209
- async auth2UserServiceAuthSignInSocial(authSignInSocialRequest: AuthSignInSocialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthSignInSocialResponse>> {
6210
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options);
6211
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6212
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignInSocial']?.[localVarOperationServerIndex]?.url;
6213
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6214
- },
6215
- /**
6216
- *
6217
- * @param {object} body
6218
- * @param {*} [options] Override http request option.
6219
- * @throws {RequiredError}
6220
- */
6221
- async auth2UserServiceAuthSignOut(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthSignOutResponse>> {
6222
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthSignOut(body, options);
6223
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6224
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignOut']?.[localVarOperationServerIndex]?.url;
6225
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6226
- },
6227
- /**
6228
- * ============ 认证 ============
6229
- * @param {AuthSignUpEmailRequest} authSignUpEmailRequest
6230
- * @param {*} [options] Override http request option.
6231
- * @throws {RequiredError}
6232
- */
6233
- async auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest: AuthSignUpEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthSignUpEmailResponse>> {
6234
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options);
6235
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6236
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignUpEmail']?.[localVarOperationServerIndex]?.url;
6237
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6238
- },
6239
- /**
6240
- *
6241
- * @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
6242
- * @param {*} [options] Override http request option.
6243
- * @throws {RequiredError}
6244
- */
6245
- async auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest: AuthUnlinkAccountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthUnlinkAccountResponse>> {
6246
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options);
6247
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6248
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthUnlinkAccount']?.[localVarOperationServerIndex]?.url;
6249
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6250
- },
6251
- /**
6252
- * ============ 用户管理 ============
6253
- * @param {AuthUpdateUserRequest} authUpdateUserRequest
6254
- * @param {*} [options] Override http request option.
6255
- * @throws {RequiredError}
6256
- */
6257
- async auth2UserServiceAuthUpdateUser(authUpdateUserRequest: AuthUpdateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthUpdateUserResponse>> {
6258
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options);
6259
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6260
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthUpdateUser']?.[localVarOperationServerIndex]?.url;
6261
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6262
- },
6263
- /**
6264
- *
6265
- * @param {string} [email]
6266
- * @param {string} [authCode]
6267
- * @param {string} [callbackUrl]
6268
- * @param {*} [options] Override http request option.
6269
- * @throws {RequiredError}
6270
- */
6271
- async auth2UserServiceAuthVerifyEmail(email?: string, authCode?: string, callbackUrl?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthVerifyEmailResponse>> {
6272
- const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options);
6273
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6274
- const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthVerifyEmail']?.[localVarOperationServerIndex]?.url;
6275
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6276
- },
6277
- }
6278
- };
6279
-
6280
- /**
6281
- * Auth2UserServiceApi - factory interface
6282
- */
6283
- export const Auth2UserServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6284
- const localVarFp = Auth2UserServiceApiFp(configuration)
6285
- return {
6286
- /**
6287
- *
6288
- * @param {AuthChangeEmailRequest} authChangeEmailRequest
6289
- * @param {*} [options] Override http request option.
6290
- * @throws {RequiredError}
6291
- */
6292
- auth2UserServiceAuthChangeEmail(authChangeEmailRequest: AuthChangeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthChangeEmailResponse> {
6293
- return localVarFp.auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options).then((request) => request(axios, basePath));
6294
- },
6295
- /**
6296
- * ============ 密码管理 ============
6297
- * @param {AuthChangePasswordRequest} authChangePasswordRequest
6298
- * @param {*} [options] Override http request option.
6299
- * @throws {RequiredError}
6300
- */
6301
- auth2UserServiceAuthChangePassword(authChangePasswordRequest: AuthChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthChangePasswordResponse> {
6302
- return localVarFp.auth2UserServiceAuthChangePassword(authChangePasswordRequest, options).then((request) => request(axios, basePath));
6303
- },
6304
- /**
6305
- *
6306
- * @param {AuthDeleteUserRequest} authDeleteUserRequest
6307
- * @param {*} [options] Override http request option.
6308
- * @throws {RequiredError}
6309
- */
6310
- auth2UserServiceAuthDeleteUser(authDeleteUserRequest: AuthDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthDeleteUserResponse> {
6311
- return localVarFp.auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options).then((request) => request(axios, basePath));
6312
- },
6313
- /**
6314
- *
6315
- * @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
6316
- * @param {*} [options] Override http request option.
6317
- * @throws {RequiredError}
6318
- */
6319
- auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest: AuthGetAccessTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthGetAccessTokenResponse> {
6320
- return localVarFp.auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options).then((request) => request(axios, basePath));
6321
- },
6322
- /**
6323
- *
6324
- * @param {*} [options] Override http request option.
6325
- * @throws {RequiredError}
6326
- */
6327
- auth2UserServiceAuthGetAccountInfo(options?: RawAxiosRequestConfig): AxiosPromise<AuthGetAccountInfoResponse> {
6328
- return localVarFp.auth2UserServiceAuthGetAccountInfo(options).then((request) => request(axios, basePath));
6329
- },
6330
- /**
6331
- *
6332
- * @param {*} [options] Override http request option.
6333
- * @throws {RequiredError}
6334
- */
6335
- auth2UserServiceAuthGetSession(options?: RawAxiosRequestConfig): AxiosPromise<AuthGetSessionResponse> {
6336
- return localVarFp.auth2UserServiceAuthGetSession(options).then((request) => request(axios, basePath));
6337
- },
6338
- /**
6339
- * ============ 账号关联 ============
6340
- * @param {AuthLinkSocialRequest} authLinkSocialRequest
6341
- * @param {*} [options] Override http request option.
6342
- * @throws {RequiredError}
6343
- */
6344
- auth2UserServiceAuthLinkSocial(authLinkSocialRequest: AuthLinkSocialRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLinkSocialResponse> {
6345
- return localVarFp.auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options).then((request) => request(axios, basePath));
6346
- },
6347
- /**
6348
- *
6349
- * @param {*} [options] Override http request option.
6350
- * @throws {RequiredError}
6351
- */
6352
- auth2UserServiceAuthListAccounts(options?: RawAxiosRequestConfig): AxiosPromise<AuthListAccountsResponse> {
6353
- return localVarFp.auth2UserServiceAuthListAccounts(options).then((request) => request(axios, basePath));
6354
- },
6355
- /**
6356
- * ============ 会话管理 ============
6357
- * @param {*} [options] Override http request option.
6358
- * @throws {RequiredError}
6359
- */
6360
- auth2UserServiceAuthListSessions(options?: RawAxiosRequestConfig): AxiosPromise<AuthListSessionsResponse> {
6361
- return localVarFp.auth2UserServiceAuthListSessions(options).then((request) => request(axios, basePath));
6362
- },
6363
- /**
6364
- *
6365
- * @param {string} platform
6366
- * @param {string} [code]
6367
- * @param {string} [state]
6368
- * @param {*} [options] Override http request option.
6369
- * @throws {RequiredError}
6370
- */
6371
- auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<AuthOAuth2CallbackResponse> {
6372
- return localVarFp.auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(axios, basePath));
6373
- },
6374
- /**
6375
- * ============ Token 管理 ============
6376
- * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
6377
- * @param {*} [options] Override http request option.
6378
- * @throws {RequiredError}
6379
- */
6380
- auth2UserServiceAuthRefreshToken(authRefreshTokenRequest: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRefreshTokenResponse> {
6381
- return localVarFp.auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options).then((request) => request(axios, basePath));
6382
- },
6383
- /**
6384
- *
6385
- * @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
6386
- * @param {*} [options] Override http request option.
6387
- * @throws {RequiredError}
6388
- */
6389
- auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest: AuthRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRequestPasswordResetResponse> {
6390
- return localVarFp.auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options).then((request) => request(axios, basePath));
6391
- },
6392
- /**
6393
- *
6394
- * @param {AuthResetPasswordRequest} authResetPasswordRequest
6395
- * @param {*} [options] Override http request option.
6396
- * @throws {RequiredError}
6397
- */
6398
- auth2UserServiceAuthResetPassword(authResetPasswordRequest: AuthResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthResetPasswordResponse> {
6399
- return localVarFp.auth2UserServiceAuthResetPassword(authResetPasswordRequest, options).then((request) => request(axios, basePath));
6400
- },
6401
- /**
6402
- *
6403
- * @param {object} body
6404
- * @param {*} [options] Override http request option.
6405
- * @throws {RequiredError}
6406
- */
6407
- auth2UserServiceAuthRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthRevokeOtherSessionsResponse> {
6408
- return localVarFp.auth2UserServiceAuthRevokeOtherSessions(body, options).then((request) => request(axios, basePath));
6409
- },
6410
- /**
6411
- *
6412
- * @param {AuthRevokeSessionRequest} authRevokeSessionRequest
6413
- * @param {*} [options] Override http request option.
6414
- * @throws {RequiredError}
6415
- */
6416
- auth2UserServiceAuthRevokeSession(authRevokeSessionRequest: AuthRevokeSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRevokeSessionResponse> {
6417
- return localVarFp.auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options).then((request) => request(axios, basePath));
6418
- },
6419
- /**
6420
- *
6421
- * @param {object} body
6422
- * @param {*} [options] Override http request option.
6423
- * @throws {RequiredError}
6424
- */
6425
- auth2UserServiceAuthRevokeSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthRevokeSessionsResponse> {
6426
- return localVarFp.auth2UserServiceAuthRevokeSessions(body, options).then((request) => request(axios, basePath));
6427
- },
6428
- /**
6429
- * ============ 邮箱验证 ============
6430
- * @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
6431
- * @param {*} [options] Override http request option.
6432
- * @throws {RequiredError}
6433
- */
6434
- auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest: AuthSendVerificationEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSendVerificationEmailResponse> {
6435
- return localVarFp.auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options).then((request) => request(axios, basePath));
6436
- },
6437
- /**
6438
- *
6439
- * @param {AuthSignInEmailRequest} authSignInEmailRequest
6440
- * @param {*} [options] Override http request option.
6441
- * @throws {RequiredError}
6442
- */
6443
- auth2UserServiceAuthSignInEmail(authSignInEmailRequest: AuthSignInEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignInEmailResponse> {
6444
- return localVarFp.auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options).then((request) => request(axios, basePath));
6445
- },
6446
- /**
6447
- *
6448
- * @param {AuthSignInSocialRequest} authSignInSocialRequest
6449
- * @param {*} [options] Override http request option.
6450
- * @throws {RequiredError}
6451
- */
6452
- auth2UserServiceAuthSignInSocial(authSignInSocialRequest: AuthSignInSocialRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignInSocialResponse> {
6453
- return localVarFp.auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options).then((request) => request(axios, basePath));
6454
- },
6455
- /**
6456
- *
6457
- * @param {object} body
6458
- * @param {*} [options] Override http request option.
6459
- * @throws {RequiredError}
6460
- */
6461
- auth2UserServiceAuthSignOut(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignOutResponse> {
6462
- return localVarFp.auth2UserServiceAuthSignOut(body, options).then((request) => request(axios, basePath));
6463
- },
6464
- /**
6465
- * ============ 认证 ============
6466
- * @param {AuthSignUpEmailRequest} authSignUpEmailRequest
6467
- * @param {*} [options] Override http request option.
6468
- * @throws {RequiredError}
6469
- */
6470
- auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest: AuthSignUpEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignUpEmailResponse> {
6471
- return localVarFp.auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options).then((request) => request(axios, basePath));
6472
- },
6473
- /**
6474
- *
6475
- * @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
6476
- * @param {*} [options] Override http request option.
6477
- * @throws {RequiredError}
6478
- */
6479
- auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest: AuthUnlinkAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthUnlinkAccountResponse> {
6480
- return localVarFp.auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options).then((request) => request(axios, basePath));
6481
- },
6482
- /**
6483
- * ============ 用户管理 ============
6484
- * @param {AuthUpdateUserRequest} authUpdateUserRequest
6485
- * @param {*} [options] Override http request option.
6486
- * @throws {RequiredError}
6487
- */
6488
- auth2UserServiceAuthUpdateUser(authUpdateUserRequest: AuthUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthUpdateUserResponse> {
6489
- return localVarFp.auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options).then((request) => request(axios, basePath));
6490
- },
6491
- /**
6492
- *
6493
- * @param {string} [email]
6494
- * @param {string} [authCode]
6495
- * @param {string} [callbackUrl]
6496
- * @param {*} [options] Override http request option.
6497
- * @throws {RequiredError}
6498
- */
6499
- auth2UserServiceAuthVerifyEmail(email?: string, authCode?: string, callbackUrl?: string, options?: RawAxiosRequestConfig): AxiosPromise<AuthVerifyEmailResponse> {
6500
- return localVarFp.auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options).then((request) => request(axios, basePath));
6501
- },
6502
- };
6503
- };
6504
-
6505
- /**
6506
- * Auth2UserServiceApi - interface
6507
- */
6508
- export interface Auth2UserServiceApiInterface {
6509
- /**
6510
- *
6511
- * @param {AuthChangeEmailRequest} authChangeEmailRequest
6512
- * @param {*} [options] Override http request option.
6513
- * @throws {RequiredError}
6514
- */
6515
- auth2UserServiceAuthChangeEmail(authChangeEmailRequest: AuthChangeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthChangeEmailResponse>;
6516
-
6517
- /**
6518
- * ============ 密码管理 ============
6519
- * @param {AuthChangePasswordRequest} authChangePasswordRequest
6520
- * @param {*} [options] Override http request option.
6521
- * @throws {RequiredError}
6522
- */
6523
- auth2UserServiceAuthChangePassword(authChangePasswordRequest: AuthChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthChangePasswordResponse>;
6524
-
6525
- /**
6526
- *
6527
- * @param {AuthDeleteUserRequest} authDeleteUserRequest
6528
- * @param {*} [options] Override http request option.
6529
- * @throws {RequiredError}
6530
- */
6531
- auth2UserServiceAuthDeleteUser(authDeleteUserRequest: AuthDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthDeleteUserResponse>;
6532
-
6533
- /**
6534
- *
6535
- * @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
6536
- * @param {*} [options] Override http request option.
6537
- * @throws {RequiredError}
6538
- */
6539
- auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest: AuthGetAccessTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthGetAccessTokenResponse>;
6540
-
6541
- /**
6542
- *
6543
- * @param {*} [options] Override http request option.
6544
- * @throws {RequiredError}
6545
- */
6546
- auth2UserServiceAuthGetAccountInfo(options?: RawAxiosRequestConfig): AxiosPromise<AuthGetAccountInfoResponse>;
6547
-
6548
- /**
6549
- *
6550
- * @param {*} [options] Override http request option.
6551
- * @throws {RequiredError}
6552
- */
6553
- auth2UserServiceAuthGetSession(options?: RawAxiosRequestConfig): AxiosPromise<AuthGetSessionResponse>;
6554
-
6555
- /**
6556
- * ============ 账号关联 ============
6557
- * @param {AuthLinkSocialRequest} authLinkSocialRequest
6558
- * @param {*} [options] Override http request option.
6559
- * @throws {RequiredError}
6560
- */
6561
- auth2UserServiceAuthLinkSocial(authLinkSocialRequest: AuthLinkSocialRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLinkSocialResponse>;
6562
-
6563
- /**
6564
- *
6565
- * @param {*} [options] Override http request option.
6566
- * @throws {RequiredError}
6567
- */
6568
- auth2UserServiceAuthListAccounts(options?: RawAxiosRequestConfig): AxiosPromise<AuthListAccountsResponse>;
6569
-
6570
- /**
6571
- * ============ 会话管理 ============
6572
- * @param {*} [options] Override http request option.
6573
- * @throws {RequiredError}
6574
- */
6575
- auth2UserServiceAuthListSessions(options?: RawAxiosRequestConfig): AxiosPromise<AuthListSessionsResponse>;
6576
-
6577
- /**
6578
- *
6579
- * @param {string} platform
6580
- * @param {string} [code]
6581
- * @param {string} [state]
6582
- * @param {*} [options] Override http request option.
6583
- * @throws {RequiredError}
6584
- */
6585
- auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<AuthOAuth2CallbackResponse>;
6586
-
6587
- /**
6588
- * ============ Token 管理 ============
6589
- * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
6590
- * @param {*} [options] Override http request option.
6591
- * @throws {RequiredError}
6592
- */
6593
- auth2UserServiceAuthRefreshToken(authRefreshTokenRequest: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRefreshTokenResponse>;
6594
-
6595
- /**
6596
- *
6597
- * @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
6598
- * @param {*} [options] Override http request option.
6599
- * @throws {RequiredError}
6600
- */
6601
- auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest: AuthRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRequestPasswordResetResponse>;
6602
-
6603
- /**
6604
- *
6605
- * @param {AuthResetPasswordRequest} authResetPasswordRequest
6606
- * @param {*} [options] Override http request option.
6607
- * @throws {RequiredError}
6608
- */
6609
- auth2UserServiceAuthResetPassword(authResetPasswordRequest: AuthResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthResetPasswordResponse>;
6610
-
6611
- /**
6612
- *
6613
- * @param {object} body
6614
- * @param {*} [options] Override http request option.
6615
- * @throws {RequiredError}
6616
- */
6617
- auth2UserServiceAuthRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthRevokeOtherSessionsResponse>;
6618
-
6619
- /**
6620
- *
6621
- * @param {AuthRevokeSessionRequest} authRevokeSessionRequest
6622
- * @param {*} [options] Override http request option.
6623
- * @throws {RequiredError}
6624
- */
6625
- auth2UserServiceAuthRevokeSession(authRevokeSessionRequest: AuthRevokeSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRevokeSessionResponse>;
6626
-
6627
- /**
6628
- *
6629
- * @param {object} body
6630
- * @param {*} [options] Override http request option.
6631
- * @throws {RequiredError}
6632
- */
6633
- auth2UserServiceAuthRevokeSessions(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthRevokeSessionsResponse>;
6634
-
6635
- /**
6636
- * ============ 邮箱验证 ============
6637
- * @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
6638
- * @param {*} [options] Override http request option.
6639
- * @throws {RequiredError}
6640
- */
6641
- auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest: AuthSendVerificationEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSendVerificationEmailResponse>;
6642
-
6643
- /**
6644
- *
6645
- * @param {AuthSignInEmailRequest} authSignInEmailRequest
6646
- * @param {*} [options] Override http request option.
6647
- * @throws {RequiredError}
6648
- */
6649
- auth2UserServiceAuthSignInEmail(authSignInEmailRequest: AuthSignInEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignInEmailResponse>;
6650
-
6651
- /**
6652
- *
6653
- * @param {AuthSignInSocialRequest} authSignInSocialRequest
6654
- * @param {*} [options] Override http request option.
6655
- * @throws {RequiredError}
6656
- */
6657
- auth2UserServiceAuthSignInSocial(authSignInSocialRequest: AuthSignInSocialRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignInSocialResponse>;
6658
-
6659
- /**
6660
- *
6661
- * @param {object} body
6662
- * @param {*} [options] Override http request option.
6663
- * @throws {RequiredError}
6664
- */
6665
- auth2UserServiceAuthSignOut(body: object, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignOutResponse>;
6666
-
6667
- /**
6668
- * ============ 认证 ============
6669
- * @param {AuthSignUpEmailRequest} authSignUpEmailRequest
6670
- * @param {*} [options] Override http request option.
6671
- * @throws {RequiredError}
6672
- */
6673
- auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest: AuthSignUpEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthSignUpEmailResponse>;
6674
-
6675
- /**
6676
- *
6677
- * @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
6678
- * @param {*} [options] Override http request option.
6679
- * @throws {RequiredError}
6680
- */
6681
- auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest: AuthUnlinkAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthUnlinkAccountResponse>;
6682
-
6683
- /**
6684
- * ============ 用户管理 ============
6685
- * @param {AuthUpdateUserRequest} authUpdateUserRequest
6686
- * @param {*} [options] Override http request option.
6687
- * @throws {RequiredError}
6688
- */
6689
- auth2UserServiceAuthUpdateUser(authUpdateUserRequest: AuthUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthUpdateUserResponse>;
6690
-
6691
- /**
6692
- *
6693
- * @param {string} [email]
6694
- * @param {string} [authCode]
6695
- * @param {string} [callbackUrl]
6696
- * @param {*} [options] Override http request option.
6697
- * @throws {RequiredError}
6698
- */
6699
- auth2UserServiceAuthVerifyEmail(email?: string, authCode?: string, callbackUrl?: string, options?: RawAxiosRequestConfig): AxiosPromise<AuthVerifyEmailResponse>;
6700
-
6701
- }
3952
+ */
3953
+ aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelUpdateResponse> {
3954
+ return localVarFp.aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options).then((request) => request(axios, basePath));
3955
+ },
3956
+ };
3957
+ };
6702
3958
 
6703
3959
  /**
6704
- * Auth2UserServiceApi - object-oriented interface
3960
+ * AIModelAdminServiceApi - interface
6705
3961
  */
6706
- export class Auth2UserServiceApi extends BaseAPI implements Auth2UserServiceApiInterface {
6707
- /**
6708
- *
6709
- * @param {AuthChangeEmailRequest} authChangeEmailRequest
6710
- * @param {*} [options] Override http request option.
6711
- * @throws {RequiredError}
6712
- */
6713
- public auth2UserServiceAuthChangeEmail(authChangeEmailRequest: AuthChangeEmailRequest, options?: RawAxiosRequestConfig) {
6714
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options).then((request) => request(this.axios, this.basePath));
6715
- }
6716
-
6717
- /**
6718
- * ============ 密码管理 ============
6719
- * @param {AuthChangePasswordRequest} authChangePasswordRequest
6720
- * @param {*} [options] Override http request option.
6721
- * @throws {RequiredError}
6722
- */
6723
- public auth2UserServiceAuthChangePassword(authChangePasswordRequest: AuthChangePasswordRequest, options?: RawAxiosRequestConfig) {
6724
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthChangePassword(authChangePasswordRequest, options).then((request) => request(this.axios, this.basePath));
6725
- }
6726
-
6727
- /**
6728
- *
6729
- * @param {AuthDeleteUserRequest} authDeleteUserRequest
6730
- * @param {*} [options] Override http request option.
6731
- * @throws {RequiredError}
6732
- */
6733
- public auth2UserServiceAuthDeleteUser(authDeleteUserRequest: AuthDeleteUserRequest, options?: RawAxiosRequestConfig) {
6734
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options).then((request) => request(this.axios, this.basePath));
6735
- }
6736
-
6737
- /**
6738
- *
6739
- * @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
6740
- * @param {*} [options] Override http request option.
6741
- * @throws {RequiredError}
6742
- */
6743
- public auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest: AuthGetAccessTokenRequest, options?: RawAxiosRequestConfig) {
6744
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options).then((request) => request(this.axios, this.basePath));
6745
- }
6746
-
6747
- /**
6748
- *
6749
- * @param {*} [options] Override http request option.
6750
- * @throws {RequiredError}
6751
- */
6752
- public auth2UserServiceAuthGetAccountInfo(options?: RawAxiosRequestConfig) {
6753
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthGetAccountInfo(options).then((request) => request(this.axios, this.basePath));
6754
- }
6755
-
6756
- /**
6757
- *
6758
- * @param {*} [options] Override http request option.
6759
- * @throws {RequiredError}
6760
- */
6761
- public auth2UserServiceAuthGetSession(options?: RawAxiosRequestConfig) {
6762
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthGetSession(options).then((request) => request(this.axios, this.basePath));
6763
- }
6764
-
6765
- /**
6766
- * ============ 账号关联 ============
6767
- * @param {AuthLinkSocialRequest} authLinkSocialRequest
6768
- * @param {*} [options] Override http request option.
6769
- * @throws {RequiredError}
6770
- */
6771
- public auth2UserServiceAuthLinkSocial(authLinkSocialRequest: AuthLinkSocialRequest, options?: RawAxiosRequestConfig) {
6772
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options).then((request) => request(this.axios, this.basePath));
6773
- }
6774
-
3962
+ export interface AIModelAdminServiceApiInterface {
6775
3963
  /**
6776
- *
3964
+ * AIModelCheckConnection 检查 AIModel 的连接性
3965
+ * @param {Array<string>} [aiModelNames]
6777
3966
  * @param {*} [options] Override http request option.
6778
3967
  * @throws {RequiredError}
6779
3968
  */
6780
- public auth2UserServiceAuthListAccounts(options?: RawAxiosRequestConfig) {
6781
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthListAccounts(options).then((request) => request(this.axios, this.basePath));
6782
- }
3969
+ aIModelAdminServiceAIModelCheckConnection(aiModelNames?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<AIModelCheckConnectionResponse>;
6783
3970
 
6784
3971
  /**
6785
- * ============ 会话管理 ============
3972
+ * AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
3973
+ * @param {AIModelCreateRequest} aIModelCreateRequest
6786
3974
  * @param {*} [options] Override http request option.
6787
3975
  * @throws {RequiredError}
6788
3976
  */
6789
- public auth2UserServiceAuthListSessions(options?: RawAxiosRequestConfig) {
6790
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthListSessions(options).then((request) => request(this.axios, this.basePath));
6791
- }
3977
+ aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelCreateResponse>;
6792
3978
 
6793
3979
  /**
6794
- *
6795
- * @param {string} platform
6796
- * @param {string} [code]
6797
- * @param {string} [state]
3980
+ * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3981
+ * @param {AIModelDeleteRequest} aIModelDeleteRequest
6798
3982
  * @param {*} [options] Override http request option.
6799
3983
  * @throws {RequiredError}
6800
3984
  */
6801
- public auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig) {
6802
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(this.axios, this.basePath));
6803
- }
3985
+ aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDeleteResponse>;
6804
3986
 
6805
3987
  /**
6806
- * ============ Token 管理 ============
6807
- * @param {AuthRefreshTokenRequest} authRefreshTokenRequest
3988
+ * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
3989
+ * @param {AIModelDisableRequest} aIModelDisableRequest
6808
3990
  * @param {*} [options] Override http request option.
6809
3991
  * @throws {RequiredError}
6810
3992
  */
6811
- public auth2UserServiceAuthRefreshToken(authRefreshTokenRequest: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig) {
6812
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
6813
- }
3993
+ aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDisableResponse>;
6814
3994
 
6815
3995
  /**
6816
- *
6817
- * @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
3996
+ * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
3997
+ * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\&quot;id\&quot;
3998
+ * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\&quot;name\&quot;
6818
3999
  * @param {*} [options] Override http request option.
6819
4000
  * @throws {RequiredError}
6820
4001
  */
6821
- public auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest: AuthRequestPasswordResetRequest, options?: RawAxiosRequestConfig) {
6822
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options).then((request) => request(this.axios, this.basePath));
6823
- }
4002
+ aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelGetResponse>;
6824
4003
 
6825
4004
  /**
6826
- *
6827
- * @param {AuthResetPasswordRequest} authResetPasswordRequest
4005
+ * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4006
+ * @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\&quot;page\&quot;
4007
+ * @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\&quot;page_size\&quot;
4008
+ * @param {number} [status] status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 @gotags: form:\&quot;status\&quot;
4009
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \&quot;gpt-4\&quot; 会匹配 \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot; 等 Example: \&quot;gpt-4\&quot; matches \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot;, etc. @gotags: form:\&quot;name_prefix\&quot;
4010
+ * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \&quot;gpt-4\&quot; 会匹配该分组下的所有模型 Example: \&quot;gpt-4\&quot; matches all models in this group @gotags: form:\&quot;group\&quot;
6828
4011
  * @param {*} [options] Override http request option.
6829
4012
  * @throws {RequiredError}
6830
4013
  */
6831
- public auth2UserServiceAuthResetPassword(authResetPasswordRequest: AuthResetPasswordRequest, options?: RawAxiosRequestConfig) {
6832
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthResetPassword(authResetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
6833
- }
4014
+ aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelListResponse>;
6834
4015
 
6835
4016
  /**
6836
- *
6837
- * @param {object} body
4017
+ * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
4018
+ * @param {AIModelPublishRequest} aIModelPublishRequest
6838
4019
  * @param {*} [options] Override http request option.
6839
4020
  * @throws {RequiredError}
6840
4021
  */
6841
- public auth2UserServiceAuthRevokeOtherSessions(body: object, options?: RawAxiosRequestConfig) {
6842
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRevokeOtherSessions(body, options).then((request) => request(this.axios, this.basePath));
6843
- }
4022
+ aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelPublishResponse>;
6844
4023
 
6845
4024
  /**
6846
- *
6847
- * @param {AuthRevokeSessionRequest} authRevokeSessionRequest
4025
+ * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
4026
+ * @param {AIModelUpdateRequest} aIModelUpdateRequest
6848
4027
  * @param {*} [options] Override http request option.
6849
4028
  * @throws {RequiredError}
6850
4029
  */
6851
- public auth2UserServiceAuthRevokeSession(authRevokeSessionRequest: AuthRevokeSessionRequest, options?: RawAxiosRequestConfig) {
6852
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options).then((request) => request(this.axios, this.basePath));
6853
- }
4030
+ aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelUpdateResponse>;
6854
4031
 
6855
- /**
6856
- *
6857
- * @param {object} body
6858
- * @param {*} [options] Override http request option.
6859
- * @throws {RequiredError}
6860
- */
6861
- public auth2UserServiceAuthRevokeSessions(body: object, options?: RawAxiosRequestConfig) {
6862
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRevokeSessions(body, options).then((request) => request(this.axios, this.basePath));
6863
- }
4032
+ }
6864
4033
 
4034
+ /**
4035
+ * AIModelAdminServiceApi - object-oriented interface
4036
+ */
4037
+ export class AIModelAdminServiceApi extends BaseAPI implements AIModelAdminServiceApiInterface {
6865
4038
  /**
6866
- * ============ 邮箱验证 ============
6867
- * @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
4039
+ * AIModelCheckConnection 检查 AIModel 的连接性
4040
+ * @param {Array<string>} [aiModelNames]
6868
4041
  * @param {*} [options] Override http request option.
6869
4042
  * @throws {RequiredError}
6870
4043
  */
6871
- public auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest: AuthSendVerificationEmailRequest, options?: RawAxiosRequestConfig) {
6872
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options).then((request) => request(this.axios, this.basePath));
4044
+ public aIModelAdminServiceAIModelCheckConnection(aiModelNames?: Array<string>, options?: RawAxiosRequestConfig) {
4045
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelCheckConnection(aiModelNames, options).then((request) => request(this.axios, this.basePath));
6873
4046
  }
6874
4047
 
6875
4048
  /**
6876
- *
6877
- * @param {AuthSignInEmailRequest} authSignInEmailRequest
4049
+ * AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
4050
+ * @param {AIModelCreateRequest} aIModelCreateRequest
6878
4051
  * @param {*} [options] Override http request option.
6879
4052
  * @throws {RequiredError}
6880
4053
  */
6881
- public auth2UserServiceAuthSignInEmail(authSignInEmailRequest: AuthSignInEmailRequest, options?: RawAxiosRequestConfig) {
6882
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options).then((request) => request(this.axios, this.basePath));
4054
+ public aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig) {
4055
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
6883
4056
  }
6884
4057
 
6885
4058
  /**
6886
- *
6887
- * @param {AuthSignInSocialRequest} authSignInSocialRequest
4059
+ * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
4060
+ * @param {AIModelDeleteRequest} aIModelDeleteRequest
6888
4061
  * @param {*} [options] Override http request option.
6889
4062
  * @throws {RequiredError}
6890
4063
  */
6891
- public auth2UserServiceAuthSignInSocial(authSignInSocialRequest: AuthSignInSocialRequest, options?: RawAxiosRequestConfig) {
6892
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options).then((request) => request(this.axios, this.basePath));
4064
+ public aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig) {
4065
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
6893
4066
  }
6894
4067
 
6895
4068
  /**
6896
- *
6897
- * @param {object} body
4069
+ * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
4070
+ * @param {AIModelDisableRequest} aIModelDisableRequest
6898
4071
  * @param {*} [options] Override http request option.
6899
4072
  * @throws {RequiredError}
6900
4073
  */
6901
- public auth2UserServiceAuthSignOut(body: object, options?: RawAxiosRequestConfig) {
6902
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignOut(body, options).then((request) => request(this.axios, this.basePath));
4074
+ public aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig) {
4075
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options).then((request) => request(this.axios, this.basePath));
6903
4076
  }
6904
4077
 
6905
4078
  /**
6906
- * ============ 认证 ============
6907
- * @param {AuthSignUpEmailRequest} authSignUpEmailRequest
4079
+ * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4080
+ * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\&quot;id\&quot;
4081
+ * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\&quot;name\&quot;
6908
4082
  * @param {*} [options] Override http request option.
6909
4083
  * @throws {RequiredError}
6910
4084
  */
6911
- public auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest: AuthSignUpEmailRequest, options?: RawAxiosRequestConfig) {
6912
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options).then((request) => request(this.axios, this.basePath));
4085
+ public aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig) {
4086
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelGet(id, name, options).then((request) => request(this.axios, this.basePath));
6913
4087
  }
6914
4088
 
6915
4089
  /**
6916
- *
6917
- * @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
4090
+ * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
4091
+ * @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\&quot;page\&quot;
4092
+ * @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\&quot;page_size\&quot;
4093
+ * @param {number} [status] status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 @gotags: form:\&quot;status\&quot;
4094
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \&quot;gpt-4\&quot; 会匹配 \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot; 等 Example: \&quot;gpt-4\&quot; matches \&quot;gpt-4\&quot;, \&quot;gpt-4-turbo\&quot;, etc. @gotags: form:\&quot;name_prefix\&quot;
4095
+ * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \&quot;gpt-4\&quot; 会匹配该分组下的所有模型 Example: \&quot;gpt-4\&quot; matches all models in this group @gotags: form:\&quot;group\&quot;
6918
4096
  * @param {*} [options] Override http request option.
6919
4097
  * @throws {RequiredError}
6920
4098
  */
6921
- public auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest: AuthUnlinkAccountRequest, options?: RawAxiosRequestConfig) {
6922
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options).then((request) => request(this.axios, this.basePath));
4099
+ public aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig) {
4100
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options).then((request) => request(this.axios, this.basePath));
6923
4101
  }
6924
4102
 
6925
4103
  /**
6926
- * ============ 用户管理 ============
6927
- * @param {AuthUpdateUserRequest} authUpdateUserRequest
4104
+ * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
4105
+ * @param {AIModelPublishRequest} aIModelPublishRequest
6928
4106
  * @param {*} [options] Override http request option.
6929
4107
  * @throws {RequiredError}
6930
4108
  */
6931
- public auth2UserServiceAuthUpdateUser(authUpdateUserRequest: AuthUpdateUserRequest, options?: RawAxiosRequestConfig) {
6932
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
4109
+ public aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig) {
4110
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options).then((request) => request(this.axios, this.basePath));
6933
4111
  }
6934
4112
 
6935
4113
  /**
6936
- *
6937
- * @param {string} [email]
6938
- * @param {string} [authCode]
6939
- * @param {string} [callbackUrl]
4114
+ * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
4115
+ * @param {AIModelUpdateRequest} aIModelUpdateRequest
6940
4116
  * @param {*} [options] Override http request option.
6941
4117
  * @throws {RequiredError}
6942
4118
  */
6943
- public auth2UserServiceAuthVerifyEmail(email?: string, authCode?: string, callbackUrl?: string, options?: RawAxiosRequestConfig) {
6944
- return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options).then((request) => request(this.axios, this.basePath));
4119
+ public aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig) {
4120
+ return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
6945
4121
  }
6946
4122
  }
6947
4123
 
@@ -12160,7 +9336,42 @@ export const PassportAuthUserServiceApiAxiosParamCreator = function (configurati
12160
9336
  };
12161
9337
  },
12162
9338
  /**
12163
- * 请求重置密码
9339
+ * 未登录 - 用户遗忘密码请求重置
9340
+ * @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
9341
+ * @param {*} [options] Override http request option.
9342
+ * @throws {RequiredError}
9343
+ */
9344
+ passportAuthUserServicePassportUserPasswordForget: async (passportUserPasswordForgetRequest: PassportUserPasswordForgetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9345
+ // verify required parameter 'passportUserPasswordForgetRequest' is not null or undefined
9346
+ assertParamExists('passportAuthUserServicePassportUserPasswordForget', 'passportUserPasswordForgetRequest', passportUserPasswordForgetRequest)
9347
+ const localVarPath = `/passport/auth/v1/password/forget`;
9348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9350
+ let baseOptions;
9351
+ if (configuration) {
9352
+ baseOptions = configuration.baseOptions;
9353
+ }
9354
+
9355
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9356
+ const localVarHeaderParameter = {} as any;
9357
+ const localVarQueryParameter = {} as any;
9358
+
9359
+
9360
+
9361
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9362
+
9363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9365
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9366
+ localVarRequestOptions.data = serializeDataIfNeeded(passportUserPasswordForgetRequest, localVarRequestOptions, configuration)
9367
+
9368
+ return {
9369
+ url: toPathString(localVarUrlObj),
9370
+ options: localVarRequestOptions,
9371
+ };
9372
+ },
9373
+ /**
9374
+ * 未登录 - 用户重置密码
12164
9375
  * @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
12165
9376
  * @param {*} [options] Override http request option.
12166
9377
  * @throws {RequiredError}
@@ -12194,6 +9405,41 @@ export const PassportAuthUserServiceApiAxiosParamCreator = function (configurati
12194
9405
  options: localVarRequestOptions,
12195
9406
  };
12196
9407
  },
9408
+ /**
9409
+ * 未登录 - 验证重置密码请求 token
9410
+ * @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
9411
+ * @param {*} [options] Override http request option.
9412
+ * @throws {RequiredError}
9413
+ */
9414
+ passportAuthUserServicePassportUserPasswordResetTokenVerify: async (passportUserPasswordResetTokenVerifyRequest: PassportUserPasswordResetTokenVerifyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9415
+ // verify required parameter 'passportUserPasswordResetTokenVerifyRequest' is not null or undefined
9416
+ assertParamExists('passportAuthUserServicePassportUserPasswordResetTokenVerify', 'passportUserPasswordResetTokenVerifyRequest', passportUserPasswordResetTokenVerifyRequest)
9417
+ const localVarPath = `/passport/auth/v1/password/reset-token`;
9418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9420
+ let baseOptions;
9421
+ if (configuration) {
9422
+ baseOptions = configuration.baseOptions;
9423
+ }
9424
+
9425
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9426
+ const localVarHeaderParameter = {} as any;
9427
+ const localVarQueryParameter = {} as any;
9428
+
9429
+
9430
+
9431
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9432
+
9433
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9435
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9436
+ localVarRequestOptions.data = serializeDataIfNeeded(passportUserPasswordResetTokenVerifyRequest, localVarRequestOptions, configuration)
9437
+
9438
+ return {
9439
+ url: toPathString(localVarUrlObj),
9440
+ options: localVarRequestOptions,
9441
+ };
9442
+ },
12197
9443
  /**
12198
9444
  * 邮箱登录
12199
9445
  * @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
@@ -12706,7 +9952,19 @@ export const PassportAuthUserServiceApiFp = function(configuration?: Configurati
12706
9952
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12707
9953
  },
12708
9954
  /**
12709
- * 请求重置密码
9955
+ * 未登录 - 用户遗忘密码请求重置
9956
+ * @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
9957
+ * @param {*} [options] Override http request option.
9958
+ * @throws {RequiredError}
9959
+ */
9960
+ async passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest: PassportUserPasswordForgetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserPasswordForgetResponse>> {
9961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options);
9962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9963
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthUserServiceApi.passportAuthUserServicePassportUserPasswordForget']?.[localVarOperationServerIndex]?.url;
9964
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9965
+ },
9966
+ /**
9967
+ * 未登录 - 用户重置密码
12710
9968
  * @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
12711
9969
  * @param {*} [options] Override http request option.
12712
9970
  * @throws {RequiredError}
@@ -12717,6 +9975,18 @@ export const PassportAuthUserServiceApiFp = function(configuration?: Configurati
12717
9975
  const localVarOperationServerBasePath = operationServerMap['PassportAuthUserServiceApi.passportAuthUserServicePassportUserPasswordReset']?.[localVarOperationServerIndex]?.url;
12718
9976
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12719
9977
  },
9978
+ /**
9979
+ * 未登录 - 验证重置密码请求 token
9980
+ * @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
9981
+ * @param {*} [options] Override http request option.
9982
+ * @throws {RequiredError}
9983
+ */
9984
+ async passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest: PassportUserPasswordResetTokenVerifyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserPasswordResetTokenVerifyResponse>> {
9985
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options);
9986
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9987
+ const localVarOperationServerBasePath = operationServerMap['PassportAuthUserServiceApi.passportAuthUserServicePassportUserPasswordResetTokenVerify']?.[localVarOperationServerIndex]?.url;
9988
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9989
+ },
12720
9990
  /**
12721
9991
  * 邮箱登录
12722
9992
  * @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
@@ -13047,7 +10317,16 @@ export const PassportAuthUserServiceApiFactory = function (configuration?: Confi
13047
10317
  return localVarFp.passportAuthUserServicePassportUserOAuthCallback(platform, appIds, code, state, options).then((request) => request(axios, basePath));
13048
10318
  },
13049
10319
  /**
13050
- * 请求重置密码
10320
+ * 未登录 - 用户遗忘密码请求重置
10321
+ * @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
10322
+ * @param {*} [options] Override http request option.
10323
+ * @throws {RequiredError}
10324
+ */
10325
+ passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest: PassportUserPasswordForgetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserPasswordForgetResponse> {
10326
+ return localVarFp.passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options).then((request) => request(axios, basePath));
10327
+ },
10328
+ /**
10329
+ * 未登录 - 用户重置密码
13051
10330
  * @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
13052
10331
  * @param {*} [options] Override http request option.
13053
10332
  * @throws {RequiredError}
@@ -13055,6 +10334,15 @@ export const PassportAuthUserServiceApiFactory = function (configuration?: Confi
13055
10334
  passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest: PassportUserPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserPasswordResetResponse> {
13056
10335
  return localVarFp.passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest, options).then((request) => request(axios, basePath));
13057
10336
  },
10337
+ /**
10338
+ * 未登录 - 验证重置密码请求 token
10339
+ * @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
10340
+ * @param {*} [options] Override http request option.
10341
+ * @throws {RequiredError}
10342
+ */
10343
+ passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest: PassportUserPasswordResetTokenVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserPasswordResetTokenVerifyResponse> {
10344
+ return localVarFp.passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options).then((request) => request(axios, basePath));
10345
+ },
13058
10346
  /**
13059
10347
  * 邮箱登录
13060
10348
  * @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
@@ -13341,13 +10629,29 @@ export interface PassportAuthUserServiceApiInterface {
13341
10629
  passportAuthUserServicePassportUserOAuthCallback(platform: string, appIds?: string, code?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserOAuthCallbackResponse>;
13342
10630
 
13343
10631
  /**
13344
- * 请求重置密码
10632
+ * 未登录 - 用户遗忘密码请求重置
10633
+ * @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
10634
+ * @param {*} [options] Override http request option.
10635
+ * @throws {RequiredError}
10636
+ */
10637
+ passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest: PassportUserPasswordForgetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserPasswordForgetResponse>;
10638
+
10639
+ /**
10640
+ * 未登录 - 用户重置密码
13345
10641
  * @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
13346
10642
  * @param {*} [options] Override http request option.
13347
10643
  * @throws {RequiredError}
13348
10644
  */
13349
10645
  passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest: PassportUserPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserPasswordResetResponse>;
13350
10646
 
10647
+ /**
10648
+ * 未登录 - 验证重置密码请求 token
10649
+ * @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
10650
+ * @param {*} [options] Override http request option.
10651
+ * @throws {RequiredError}
10652
+ */
10653
+ passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest: PassportUserPasswordResetTokenVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserPasswordResetTokenVerifyResponse>;
10654
+
13351
10655
  /**
13352
10656
  * 邮箱登录
13353
10657
  * @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest
@@ -13689,7 +10993,17 @@ export class PassportAuthUserServiceApi extends BaseAPI implements PassportAuthU
13689
10993
  }
13690
10994
 
13691
10995
  /**
13692
- * 请求重置密码
10996
+ * 未登录 - 用户遗忘密码请求重置
10997
+ * @param {PassportUserPasswordForgetRequest} passportUserPasswordForgetRequest
10998
+ * @param {*} [options] Override http request option.
10999
+ * @throws {RequiredError}
11000
+ */
11001
+ public passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest: PassportUserPasswordForgetRequest, options?: RawAxiosRequestConfig) {
11002
+ return PassportAuthUserServiceApiFp(this.configuration).passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest, options).then((request) => request(this.axios, this.basePath));
11003
+ }
11004
+
11005
+ /**
11006
+ * 未登录 - 用户重置密码
13693
11007
  * @param {PassportUserPasswordResetRequest} passportUserPasswordResetRequest
13694
11008
  * @param {*} [options] Override http request option.
13695
11009
  * @throws {RequiredError}
@@ -13698,6 +11012,16 @@ export class PassportAuthUserServiceApi extends BaseAPI implements PassportAuthU
13698
11012
  return PassportAuthUserServiceApiFp(this.configuration).passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest, options).then((request) => request(this.axios, this.basePath));
13699
11013
  }
13700
11014
 
11015
+ /**
11016
+ * 未登录 - 验证重置密码请求 token
11017
+ * @param {PassportUserPasswordResetTokenVerifyRequest} passportUserPasswordResetTokenVerifyRequest
11018
+ * @param {*} [options] Override http request option.
11019
+ * @throws {RequiredError}
11020
+ */
11021
+ public passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest: PassportUserPasswordResetTokenVerifyRequest, options?: RawAxiosRequestConfig) {
11022
+ return PassportAuthUserServiceApiFp(this.configuration).passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest, options).then((request) => request(this.axios, this.basePath));
11023
+ }
11024
+
13701
11025
  /**
13702
11026
  * 邮箱登录
13703
11027
  * @param {PassportUserSignInEmailRequest} passportUserSignInEmailRequest