@authing/react-ui-components 4.0.4-rc.0 → 4.0.4-rc.12

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 (74) hide show
  1. package/lib/index.min.css +2 -2
  2. package/lib/index.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/CompleteInfo/interface.d.ts +1 -1
  5. package/types/Guard/core/renderModule.d.ts +2 -1
  6. package/types/Login/core/withLandrayQrcode.d.ts +11 -0
  7. package/types/Type/index.d.ts +1 -1
  8. package/types/_utils/locales/index.d.ts +2 -1
  9. package/types/_utils/locales/ja-jp/index.d.ts +4 -0
  10. package/types/_utils/types.d.ts +13 -0
  11. package/types/version/version.d.ts +1 -1
  12. package/types/AccountMerge/UserRadio.d.ts +0 -5
  13. package/types/AccountMerge/index.d.ts +0 -3
  14. package/types/AccountMerge/interface.d.ts +0 -27
  15. package/types/AccountMerge/utils.d.ts +0 -3
  16. package/types/BindTotp/api/constant.d.ts +0 -2
  17. package/types/BindTotp/api/index.d.ts +0 -19
  18. package/types/ChangePassword/api/index.d.ts +0 -3
  19. package/types/CompleteInfo/api/constant.d.ts +0 -1
  20. package/types/CompleteInfo/api/index.d.ts +0 -4
  21. package/types/CompleteInfo/api/request.d.ts +0 -8
  22. package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
  23. package/types/ForgetPassword/api/constant.d.ts +0 -1
  24. package/types/ForgetPassword/api/index.d.ts +0 -1
  25. package/types/ForgetPassword/api/request.d.ts +0 -24
  26. package/types/Guard/api/constant.d.ts +0 -2
  27. package/types/Guard/api/index.d.ts +0 -13
  28. package/types/Guard/core/componentsMapping.d.ts +0 -8
  29. package/types/Guard/core/hooks/useBusinessRequest.d.ts +0 -14
  30. package/types/Guard/core/hooks/useCss.d.ts +0 -5
  31. package/types/Guard/core/hooks/useEvents.d.ts +0 -15
  32. package/types/Guard/core/hooks/useFDA.d.ts +0 -20
  33. package/types/Guard/core/hooks/useModule.d.ts +0 -16
  34. package/types/IdentityBinding/api/index.d.ts +0 -1
  35. package/types/IdentityBinding/api/request.d.ts +0 -1
  36. package/types/IdentityBindingAsk/api/index.d.ts +0 -9
  37. package/types/Login/api/constant.d.ts +0 -6
  38. package/types/Login/api/index.d.ts +0 -1
  39. package/types/Login/api/request.d.ts +0 -114
  40. package/types/Login/core/withWeComQrcode.d.ts +0 -2
  41. package/types/MFA/api/constant.d.ts +0 -6
  42. package/types/MFA/api/index.d.ts +0 -2
  43. package/types/MFA/api/request.d.ts +0 -50
  44. package/types/NeedHelpView/api/constant.d.ts +0 -1
  45. package/types/NeedHelpView/api/index.d.ts +0 -1
  46. package/types/NeedHelpView/api/request.d.ts +0 -12
  47. package/types/Qrcode/api/constant.d.ts +0 -3
  48. package/types/Qrcode/api/index.d.ts +0 -1
  49. package/types/Qrcode/api/request.d.ts +0 -44
  50. package/types/RecoveryCode/api/constant.d.ts +0 -1
  51. package/types/RecoveryCode/api/index.d.ts +0 -1
  52. package/types/RecoveryCode/api/request.d.ts +0 -10
  53. package/types/Register/api/constant.d.ts +0 -2
  54. package/types/Register/api/index.d.ts +0 -2
  55. package/types/Register/api/request.d.ts +0 -57
  56. package/types/SelfUnlock/api/index.d.ts +0 -1
  57. package/types/SendCode/api/index.d.ts +0 -1
  58. package/types/ValidatorRules/api/index.d.ts +0 -1
  59. package/types/_utils/actions/index.d.ts +0 -23
  60. package/types/_utils/http/api/constant.d.ts +0 -7
  61. package/types/_utils/http/api/index.d.ts +0 -1
  62. package/types/_utils/http/api/request.d.ts +0 -72
  63. package/types/_utils/http/base/index.d.ts +0 -10
  64. package/types/_utils/http/constant.d.ts +0 -46
  65. package/types/_utils/http/events/index.d.ts +0 -16
  66. package/types/_utils/http/events/modal/login.d.ts +0 -62
  67. package/types/_utils/http/events/modal/register.d.ts +0 -73
  68. package/types/_utils/http/events/utils.d.ts +0 -25
  69. package/types/_utils/http/header/index.d.ts +0 -41
  70. package/types/_utils/http/index.d.ts +0 -6
  71. package/types/_utils/http/instance.d.ts +0 -2
  72. package/types/_utils/http/interceptors/request.d.ts +0 -6
  73. package/types/_utils/http/interceptors/response.d.ts +0 -43
  74. package/types/_utils/http/utils.d.ts +0 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.0.4-rc.0",
3
+ "version": "4.0.4-rc.12",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -63,7 +63,7 @@ export declare enum CompleteInfoExtendsControls {
63
63
  IMAGE = "image",
64
64
  NUMBER = "number",
65
65
  DATE = "date",
66
- DATE_TIME = "dateTime",
66
+ DATE_TIME = "datetime",
67
67
  SELECT = "select",
68
68
  DROPDOWN = "dropdown",
69
69
  BOOLEAN = "boolean",
@@ -3,7 +3,8 @@ import { GuardProps } from '..';
3
3
  import '../styles.less';
4
4
  export declare enum LangMAP {
5
5
  zhCn = "zh-CN",
6
- enUs = "en-US"
6
+ enUs = "en-US",
7
+ jaJp = "ja-JP"
7
8
  }
8
9
  export declare const RenderModule: React.FC<{
9
10
  guardProps: GuardProps;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
3
+ interface LoginWithLandrayQrcodeProps {
4
+ onLoginSuccess: any;
5
+ canLoop: boolean;
6
+ qrCodeScanOptions: any;
7
+ id: string;
8
+ multipleInstance?: StoreInstance;
9
+ }
10
+ export declare const LoginWithLandrayQrcode: (props: LoginWithLandrayQrcodeProps) => JSX.Element | null;
11
+ export {};
@@ -4,7 +4,7 @@ import { FacePlugin } from '../_utils/facePlugin/interface';
4
4
  import { ApplicationConfig } from './application';
5
5
  export * from './application';
6
6
  export type { CommonMessage, User };
7
- export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW';
7
+ export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
8
8
  export declare enum GuardMode {
9
9
  Modal = "modal",
10
10
  Normal = "normal"
@@ -3,5 +3,6 @@ import { Lang } from '../../Type';
3
3
  export interface InitGuardI18nOptions {
4
4
  defaultLanguage?: Lang | 'browser';
5
5
  }
6
- export declare const initGuardI18n: (options: InitGuardI18nOptions) => void;
6
+ export declare const fallbackLng: (code?: string) => string[];
7
+ export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
7
8
  export { i18n };
@@ -0,0 +1,4 @@
1
+ import common from './common.json';
2
+ import login from './login.json';
3
+ import user from './user.json';
4
+ export { common, login, user };
@@ -0,0 +1,13 @@
1
+ export declare enum SceneType {
2
+ SCENE_TYPE_LOGIN = "CHANNEL_LOGIN",
3
+ SCENE_TYPE_REGISTER = "CHANNEL_REGISTER",
4
+ SCENE_TYPE_RESET = "CHANNEL_RESET_PASSWORD",
5
+ SCENE_TYPE_BIND = "CHANNEL_BIND_PHONE",
6
+ SCENE_TYPE_UNBIND = "CHANNEL_UNBIND_PHONE",
7
+ SCENE_TYPE_MFA_BIND = "CHANNEL_BIND_MFA",
8
+ SCENE_TYPE_MFA_VERIFY = "CHANNEL_VERIFY_MFA",
9
+ SCENE_TYPE_MFA_UNBIND = "CHANNEL_UNBIND_MFA",
10
+ SCENE_TYPE_COMPLETE_PHONE = "CHANNEL_COMPLETE_PHONE",
11
+ CHANNEL_IDENTITY_VERIFICATION = "CHANNEL_IDENTITY_VERIFICATION",
12
+ CHANNEL_DELETE_ACCOUNT = "CHANNEL_DELETE_ACCOUNT"
13
+ }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.4-rc.0";
1
+ declare const _default: "4.0.4-rc.12";
2
2
  export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { UserRadioItemProps, UserRadioProps } from './interface';
3
- import './styles.less';
4
- export declare const UserRadioItem: React.FC<UserRadioItemProps>;
5
- export declare const UserRadio: React.FC<UserRadioProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './styles.less';
3
- export declare const GuardAccountMergeView: React.FC;
@@ -1,27 +0,0 @@
1
- export interface BriefUserInfo {
2
- displayName: string;
3
- avatar: string;
4
- phone: string;
5
- email: string;
6
- username: string;
7
- name: string;
8
- }
9
- export interface GuardAccountMergeInitData {
10
- currentUserInfo: BriefUserInfo;
11
- existingUserInfo: BriefUserInfo;
12
- mergeToken?: string;
13
- }
14
- export interface UserRadioProps {
15
- currentUserInfo: BriefUserInfo;
16
- existingUserInfo: BriefUserInfo;
17
- onChange?: (value: any) => void;
18
- value?: any;
19
- }
20
- export interface UserRadioItemProps extends BriefUserInfo {
21
- value: boolean;
22
- selected: boolean;
23
- onClick: (value: boolean) => void;
24
- }
25
- export declare enum AuthFlowAction {
26
- MERGE = "confirm-account-merge"
27
- }
@@ -1,3 +0,0 @@
1
- import { User } from 'authing-js-sdk';
2
- export declare const getDisplayName: (user: User) => string;
3
- export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -1,2 +0,0 @@
1
- export declare const mfaAuthenticatorUrl: () => string;
2
- export declare const mfaTotpAssociateUrl: () => string;
@@ -1,19 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- export { authFlowByAxios } from 'service/api';
3
- /**
4
- * 验证是否已登陆
5
- * @param data
6
- * @param config
7
- */
8
- export declare const mfaTotpAuthenticatorByAxios: (params: {
9
- source: string;
10
- }, config: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
11
- /**
12
- * 已登陆 totp 拉取二维码、Secret 信息
13
- * @param data
14
- * @param config
15
- * @returns
16
- */
17
- export declare const mfaTotpAssociateByAxios: (data: {
18
- source: string;
19
- }, config: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1,3 +0,0 @@
1
- import { registerEmailCodeByAxios } from '../../Register/api/index';
2
- import { authFlowByAxios } from 'service/api';
3
- export { authFlowByAxios, registerEmailCodeByAxios };
@@ -1 +0,0 @@
1
- export declare const getCompletionMetaDataUrl: () => string;
@@ -1,4 +0,0 @@
1
- import { authFlowByAxios, getCountryLists, validateAccountByAxios, validateEmailCodeByAxios, validatePhoneCodeByAxios } from 'service/api';
2
- import { registerEmailCodeByAxios } from '../../Register/api/index';
3
- import { getRegisterMetadata } from './request';
4
- export { registerEmailCodeByAxios, authFlowByAxios, getCountryLists, validateAccountByAxios, validateEmailCodeByAxios, validatePhoneCodeByAxios, getRegisterMetadata, };
@@ -1,8 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- /**
3
- * 获取注册信息补全元数据
4
- * @param params
5
- * @param config
6
- * @returns
7
- */
8
- export declare const getRegisterMetadata: (params?: any, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export declare type OptionType = {
3
- id: string;
4
- name: string;
5
- children: OptionType[];
6
- };
7
- interface TreeSelectProps {
8
- options: OptionType[];
9
- }
10
- declare const TreeSelect: React.FC<TreeSelectProps>;
11
- export default TreeSelect;
@@ -1 +0,0 @@
1
- export declare const resetPasswordUrl: () => string;
@@ -1 +0,0 @@
1
- export * from './request';
@@ -1,24 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- /**
3
- * 忘记密码-重置密码 邮箱
4
- * @param data
5
- * @param config
6
- * @returns
7
- */
8
- export declare const resetPwdEmailByAxios: (data: {
9
- email: string;
10
- code: string;
11
- newPassword: string;
12
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
13
- /**
14
- * 忘记密码-重置密码 手机号
15
- * @param data
16
- * @param config
17
- * @returns
18
- */
19
- export declare const restPwdPhoneByAxios: (data: {
20
- phone: string;
21
- code: string;
22
- newPassword: string;
23
- phoneCountryCode?: string;
24
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1,2 +0,0 @@
1
- export declare const publishConfig: (appId: string) => string;
2
- export declare const pageConfig: (appId: string) => string;
@@ -1,13 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- /**
3
- * 获取应用配置信息
4
- * @param appId 当前应用配置信息
5
- * @returns
6
- */
7
- export declare const getPublishConfigByAxios: <T>(appId: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<T>>;
8
- /**
9
- * 获取页面配置
10
- * @param appId 当前应用配置信息
11
- * @returns
12
- */
13
- export declare const getPageConfigByAxios: <T>(appId: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<T>>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { GuardModuleType } from '../module';
3
- /**
4
- * 组件映射表
5
- * TODO: 斟酌下是否和上层 module.ts 放在一起的单个文件夹中 感觉可放可不放
6
- */
7
- declare const ComponentsMapping: Record<GuardModuleType, (key: string) => React.ReactNode>;
8
- export default ComponentsMapping;
@@ -1,14 +0,0 @@
1
- import { AuthenticationClient } from 'authing-js-sdk';
2
- import { GuardLocalConfig } from 'components/Guard/config';
3
- import { GuardEvents } from 'components/Guard/event';
4
- import { GuardHttp } from 'components/_utils/guardHttp';
5
- export default function useBusinessRequestByAxios(appId: string | undefined, options: {
6
- events?: GuardEvents;
7
- tenantId?: string;
8
- sdkClient?: AuthenticationClient;
9
- defaultMergedConfig?: GuardLocalConfig;
10
- httpClient?: GuardHttp;
11
- finallyConfig?: any;
12
- }): {
13
- axiosClient: boolean | undefined;
14
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * 自定义 CSS 相关,finallyConfig 类型待补充
3
- * @param finallyConfig
4
- */
5
- export default function useCss(finallyConfig: any): void;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { GuardEvents } from '../../event';
3
- import { GuardProps } from '../../Guard';
4
- import { StoreInstance } from './useMultipleAccounts';
5
- /**
6
- * 初始化事件
7
- * @param guardProps
8
- * @param openEventsMapping
9
- * @returns
10
- */
11
- export default function useEvents(guardProps: GuardProps, multipleInstance?: StoreInstance, openEventsMapping?: boolean): {
12
- events: GuardEvents | undefined;
13
- setEvents: import("react").Dispatch<import("react").SetStateAction<GuardEvents | undefined>>;
14
- initEvents: () => void;
15
- };
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { GuardEvents } from '../../event';
3
- import { GuardStateMachine, ModuleState } from '../../GuardModule/stateMachine';
4
- import { GuardModuleType } from '../../module';
5
- import { ChangeModuleCore } from './useModule';
6
- /**
7
- * 初始化 FDA ,后续 Guard 渲染全部按照 FDA API 执行
8
- * @param onChangeModule FDA 内部更新组件核心方法
9
- * @param initState 初始化状态
10
- * @returns { guardStateMachine,setGuardStateMachine }
11
- */
12
- export default function useFDA(onChangeModule: ChangeModuleCore, initState: ModuleState, events?: GuardEvents, authFlow?: boolean): {
13
- isAuthFlow: boolean;
14
- guardStateMachine: GuardStateMachine | undefined;
15
- setGuardStateMachine: import("react").Dispatch<import("react").SetStateAction<GuardStateMachine | undefined>>;
16
- moduleEvents: {
17
- changeModule: (moduleName: GuardModuleType, initData?: any) => Promise<void>;
18
- backModule: () => void;
19
- } | undefined;
20
- };
@@ -1,16 +0,0 @@
1
- import { GuardEvents } from '../../event';
2
- import { ModuleState } from '../../GuardModule/stateMachine';
3
- import { GuardModuleType } from '../../module';
4
- export interface ChangeModuleCore {
5
- (type: GuardModuleType, initData?: any): Promise<void>;
6
- }
7
- /**
8
- * Guard 组件渲染状态
9
- * @param initializeState 初始化数据
10
- * @param events Guard 事件对象
11
- * @returns moduleState 组件当前渲染状态,onChangeModule 切换状态方法
12
- */
13
- export default function useModule(initializeState: ModuleState, events?: GuardEvents): {
14
- moduleState: ModuleState;
15
- onChangeModule: ChangeModuleCore;
16
- };
@@ -1 +0,0 @@
1
- export * from './request';
@@ -1 +0,0 @@
1
- export { authFlowByAxios } from 'service/api';
@@ -1,9 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- /**
3
- * 状态机
4
- * @param action
5
- * @param config
6
- * @returns
7
- */
8
- declare const authFlow: (action: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
9
- export { authFlow };
@@ -1,6 +0,0 @@
1
- export declare const loginUrlByPassword: (isAdWay: boolean) => "/api/v2/login/ad-all-in-one" | "/api/v2/login/account";
2
- export declare const loginUrlByPhoneCode: () => string;
3
- export declare const loginUrlByEmailCode: () => string;
4
- export declare const loginUrlByAD: () => string;
5
- export declare const loginUrlByLDAP: () => string;
6
- export declare const preLoginUrlByOIDC: () => string;
@@ -1 +0,0 @@
1
- export * from './request';
@@ -1,114 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- export interface LoginParams<T = any> {
3
- /**
4
- * 登陆自定义参数
5
- */
6
- customData: T;
7
- /**
8
- * 是否自动注册
9
- */
10
- autoRegister?: boolean;
11
- /**
12
- * 是否携带自定义数据
13
- */
14
- withCustomData?: boolean;
15
- }
16
- /**
17
- * 密码登陆请求参数
18
- */
19
- export interface LoginParamsWithPassword<T = any> extends LoginParams<T> {
20
- /**
21
- * 账号
22
- */
23
- account: string;
24
- /**
25
- * 密码
26
- */
27
- password: string;
28
- /**
29
- * 验证码
30
- */
31
- captchaCode: string;
32
- }
33
- /**
34
- * 密码登陆
35
- */
36
- export declare const loginRequestByAxios: <T>(data: LoginParams, way?: boolean, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<T>>;
37
- /**
38
- * 手机登陆请求参数
39
- */
40
- export interface LoginParamsWithPhone<T = any> extends LoginParams<T> {
41
- /**
42
- * 手机号
43
- */
44
- phone: string;
45
- /**
46
- * 验证码
47
- */
48
- code: string;
49
- /**
50
- * 手机前位数
51
- */
52
- phoneCountryCode?: number;
53
- }
54
- /**
55
- * 手机验证码登陆
56
- * @param data
57
- * @returns
58
- */
59
- export declare const mobileLoginByAxios: (data: LoginParamsWithPhone, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
60
- /**
61
- * 手机登陆请求参数
62
- */
63
- export interface LoginParamsWithEmail<T = any> extends LoginParams<T> {
64
- /**
65
- * 邮箱号
66
- */
67
- email: string;
68
- /**
69
- * 验证码
70
- */
71
- code: string;
72
- }
73
- /**
74
- * 邮箱登陆
75
- * @param data
76
- * @param config
77
- * @returns
78
- */
79
- export declare const emailLoginByAxios: (data: LoginParamsWithEmail, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
80
- /**
81
- * AD 登陆
82
- * @param data
83
- * @returns
84
- */
85
- export declare const adLoginByAxios: (data: {
86
- username: string;
87
- password: string;
88
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
89
- /**
90
- * LDAP 登陆
91
- * @param data
92
- * @returns
93
- */
94
- export declare const ldapLoginByAxios: (data: {
95
- username: string;
96
- password: string;
97
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
98
- interface PreOIDCParams {
99
- state: string;
100
- protocol: string;
101
- userPoolId: string;
102
- appId: string;
103
- referer: string;
104
- connection: {
105
- providerIentifier: any;
106
- };
107
- }
108
- /**
109
- * IDO -> OIDC 登陆前校验
110
- * @param data
111
- * @returns
112
- */
113
- export declare const preLoginOIDCByAxios: (data: PreOIDCParams, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
114
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -1,6 +0,0 @@
1
- export declare const uploadFaceUrl: () => string;
2
- export declare const verifyEmailUrl: () => string;
3
- export declare const verifySmsUrl: () => string;
4
- export declare const verifyTotpUrl: () => string;
5
- export declare const verifyFaceUrl: () => string;
6
- export declare const faceAssociateUrl: () => string;
@@ -1,2 +0,0 @@
1
- export { sendEmailCodeByAxios } from 'service/api';
2
- export * from './request';
@@ -1,50 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- /**
3
- * 上传绑定人脸识别的照片
4
- */
5
- export declare const uploadFaceImageByAxios: <T = any>(data: FormData, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<T>>;
6
- /**
7
- * 邮箱 mfa 认证
8
- * @param data
9
- * @param config
10
- */
11
- export declare const verifyEmailMfaByAxios: (data: {
12
- email: string;
13
- code: string;
14
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
15
- /**
16
- * 短信 mfa 认证
17
- * @param data
18
- * @param config
19
- */
20
- export declare const verifySmsMfaByAxios: (data: {
21
- phone: string;
22
- code: string;
23
- phoneCountryCode?: string;
24
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
25
- /**
26
- * totp mfa 认证
27
- * @param data
28
- * @param config
29
- */
30
- export declare const verifyTotpMfaByAxios: (data: {
31
- totp: string;
32
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
33
- /**
34
- * 人脸识别 mfa 认证
35
- * @param data
36
- * @param config
37
- */
38
- export declare const verifyFaceMfaByAxios: (data: {
39
- photo: string;
40
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
41
- /**
42
- * 人脸对比绑定
43
- * @param data
44
- * @param config
45
- */
46
- export declare const bindFaceMfaByAxios: (data: {
47
- photoA: string;
48
- photoB: string;
49
- isExternalPhoto?: boolean;
50
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1 +0,0 @@
1
- export declare const feedbackUrl: () => string;
@@ -1 +0,0 @@
1
- export * from './request';
@@ -1,12 +0,0 @@
1
- /**
2
- * 问题反馈
3
- * @param data
4
- * @returns
5
- */
6
- export declare const feedbackByAxios: (data: {
7
- type: number;
8
- description: string;
9
- phone: string;
10
- images: string[];
11
- appId: string;
12
- }) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1,3 +0,0 @@
1
- export declare const qrcodeCheckUrl: (random: string) => string;
2
- export declare const exChangeUserInfoUrl: () => string;
3
- export declare const geneQrcodeUrl: () => string;
@@ -1 +0,0 @@
1
- export * from './request';
@@ -1,44 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- import { WorkQrCodeProps } from '../WorkQrCode';
3
- /**
4
- * 二维码状态check
5
- * @param ticket
6
- * @param config
7
- */
8
- export declare const qrcodeStatusCheckByAxios: (ticket: string) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
9
- /**
10
- * ticket 换用户信息
11
- * @param data
12
- * @param config
13
- */
14
- export declare const exChangeUserInfoByAxios: (data: {
15
- ticket: string;
16
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
17
- /**
18
- * 二维码生成
19
- * @param data
20
- * @param config
21
- */
22
- export declare const geneQrcodeByAxios: <T = {
23
- random: string;
24
- url: string;
25
- }>(data: {
26
- autoMergeQrCode: boolean;
27
- scene: WorkQrCodeProps['scene'];
28
- /**
29
- * 请求上下文,将会传递到 Pipeline 中
30
- */
31
- context: any;
32
- /**
33
- * 是否获取用户自定义数据
34
- */
35
- params: any;
36
- /**
37
- * 是否获取用户自定义数据
38
- */
39
- withCustomData: any;
40
- /**
41
- * 多租户用的额外的 Idp Id。
42
- */
43
- extIdpConnId: string;
44
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<T>>;
@@ -1 +0,0 @@
1
- export declare const recoverCodeUrl: () => string;
@@ -1 +0,0 @@
1
- export { authFlowByAxios } from 'service/api';
@@ -1,10 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- /**
3
- * 不在流程中(AuthFlow)请求恢复 Totp 请求
4
- * @param data
5
- * @param config
6
- * @returns
7
- */
8
- export declare const recoverCodeByAxios: (data: {
9
- recoveryCode: string;
10
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1,2 +0,0 @@
1
- export declare const registerEmailCodeUrl: () => string;
2
- export declare const registerSmsCodeUrl: () => string;
@@ -1,2 +0,0 @@
1
- export { validatePhoneCodeByAxios, validateEmailCodeByAxios } from 'service/api';
2
- export * from './request';