@authing/guard-shim-react18 4.5.38-alpha.0 → 4.5.38-ey.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guard.min.css +1 -1
- package/dist/guard.min.js +3378 -3117
- package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +8 -1
- package/dist/typings/src/CompleteInfo/interface.d.ts +4 -0
- package/dist/typings/src/CompleteInfo/utils.d.ts +7 -0
- package/dist/typings/src/EY/CheckCaptcha/index.d.ts +1 -0
- package/dist/typings/src/EY/Error/index.d.ts +1 -0
- package/dist/typings/src/EY/ForgetPassword/index.d.ts +2 -0
- package/dist/typings/src/EY/InviteComplete/index.d.ts +1 -0
- package/dist/typings/src/EY/InviteIdentityBind/component/WeComQrcode.d.ts +2 -0
- package/dist/typings/src/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +1 -0
- package/dist/typings/src/EY/InviteIdentityBind/index.d.ts +1 -0
- package/dist/typings/src/EY/InviteLoading/index.d.ts +1 -0
- package/dist/typings/src/EY/Login/components/EyLoginWithWeComQrcode.d.ts +1 -0
- package/dist/typings/src/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +1 -0
- package/dist/typings/src/EY/Login/core/EmailVerify.d.ts +7 -0
- package/dist/typings/src/EY/Login/core/ScanCode.d.ts +7 -0
- package/dist/typings/src/EY/Login/index.d.ts +6 -0
- package/dist/typings/src/EY/PreCheckEmail/index.d.ts +1 -0
- package/dist/typings/src/EY/Protocol/index.d.ts +1 -0
- package/dist/typings/src/EY/components/EmailFormItem.d.ts +2 -0
- package/dist/typings/src/EY/components/GoBack.d.ts +1 -0
- package/dist/typings/src/EY/components/ResetPassword.d.ts +16 -0
- package/dist/typings/src/EY/interface.d.ts +75 -0
- package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +3 -0
- package/dist/typings/src/Guard/config.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/dist/typings/src/Guard/module.d.ts +33 -2
- package/dist/typings/src/Login/core/eyWithWeComQrcode.d.ts +1 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -2
- package/dist/typings/src/Login/index.d.ts +4 -0
- package/dist/typings/src/MFA/BindPreCheck/index.d.ts +2 -0
- package/dist/typings/src/MFA/VerifyCodeInput/ey.d.ts +16 -0
- package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +6 -1
- package/dist/typings/src/MFA/businessRequest.d.ts +1 -0
- package/dist/typings/src/MFA/core/email.d.ts +1 -0
- package/dist/typings/src/MFA/core/sms.d.ts +1 -0
- package/dist/typings/src/MFA/core/totp.d.ts +1 -0
- package/dist/typings/src/MFA/mfaMethods/index.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeBtn.d.ts +2 -1
- package/dist/typings/src/SendCode/index.d.ts +1 -0
- package/dist/typings/src/Type/application.d.ts +11 -2
- package/dist/typings/src/_utils/config/index.d.ts +2 -1
- package/dist/typings/src/_utils/context.d.ts +152 -2
- package/dist/typings/src/_utils/http.d.ts +2 -2
- package/dist/typings/src/_utils/index.d.ts +2 -0
- package/dist/typings/src/_utils/responseManagement/interface.d.ts +14 -4
- package/dist/typings/src/_utils/signRequestParams.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
2
|
import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
|
|
3
|
+
import { Lang } from '../../Type';
|
|
3
4
|
export interface CompleteInfoProps {
|
|
4
5
|
metaData: CompleteInfoMetaData[];
|
|
5
6
|
businessRequest: (data: CompleteInfoRequest) => Promise<void>;
|
|
6
|
-
|
|
7
|
+
submitText?: string;
|
|
8
|
+
extendsFieldsI18n?: {
|
|
9
|
+
[key: string]: Record<Lang, {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
value: string;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
7
14
|
}
|
|
8
15
|
export interface FieldMetadata {
|
|
9
16
|
key: string;
|
|
@@ -9,6 +9,13 @@ export declare const extendsFieldsToMetaData: (extendsFields: import("../Type/ap
|
|
|
9
9
|
label: string;
|
|
10
10
|
}[];
|
|
11
11
|
}[]) => CompleteInfoMetaData[];
|
|
12
|
+
export declare const eyFieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
|
|
13
|
+
registerProfile: Record<string, any>;
|
|
14
|
+
udf: {
|
|
15
|
+
key: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
12
19
|
export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
|
|
13
20
|
registerProfile: Record<string, any>;
|
|
14
21
|
udf: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardCheckCaptchaView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardInviteExpireView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardInviteCompleteView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WeComQrcodeNew: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardInviteLoadingView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyLoginWithWeComQrcode: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { EyLoginProps } from '../../interface';
|
|
3
|
+
interface EmailVerifySceneProps extends EyLoginProps {
|
|
4
|
+
scene: 'password' | 'verifyCode';
|
|
5
|
+
}
|
|
6
|
+
export declare const EmailVerifyScene: React.FC<EmailVerifySceneProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardPreCheckEmailView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EyGuardProtocolView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GoBack: (props: any) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
export declare enum InputMethodMap {
|
|
3
|
+
email = "email-code",
|
|
4
|
+
phone = "phone-code"
|
|
5
|
+
}
|
|
6
|
+
interface ResetPasswordProps {
|
|
7
|
+
publicConfig: any;
|
|
8
|
+
setControlShow: any;
|
|
9
|
+
setPolicyStrength: any;
|
|
10
|
+
setCustomPasswordStrength: any;
|
|
11
|
+
setPhoneOrEmailText: any;
|
|
12
|
+
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
14
|
+
}
|
|
15
|
+
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { GuardModuleType, Lang } from '..';
|
|
2
|
+
export interface InviteContext {
|
|
3
|
+
autoLogin: boolean;
|
|
4
|
+
email: string | null;
|
|
5
|
+
ticket: string;
|
|
6
|
+
enabledIdentifierCodeConfig: boolean;
|
|
7
|
+
enabledRegisterFillInfo: boolean;
|
|
8
|
+
enabledExtIdpBind: boolean;
|
|
9
|
+
allowSkipBindExtIdp: boolean;
|
|
10
|
+
sendIdentifierCodeMethod: 'prioritySMS' | 'priorityEmail' | 'SMS' | 'email';
|
|
11
|
+
receiverType: 'emailCode' | 'phoneCode';
|
|
12
|
+
phone: string | null;
|
|
13
|
+
username: string | null;
|
|
14
|
+
name: string | null;
|
|
15
|
+
verifyCodeMaxLength: number;
|
|
16
|
+
verifyCodeMaxErrCount: number;
|
|
17
|
+
extendsFieldsI18n?: {
|
|
18
|
+
[key: string]: Record<Lang, {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
value: string;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
extendsFieldsOptions?: {
|
|
24
|
+
key: string;
|
|
25
|
+
options: {
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}[];
|
|
29
|
+
}[];
|
|
30
|
+
extendsFields: any;
|
|
31
|
+
qrCodeBindMethods: Record<string, {
|
|
32
|
+
QRConfig: any;
|
|
33
|
+
id: string;
|
|
34
|
+
isDefault: boolean;
|
|
35
|
+
title: string;
|
|
36
|
+
}[]>;
|
|
37
|
+
socialConnections: any[];
|
|
38
|
+
registerInfoFillMsg?: string;
|
|
39
|
+
extIdpBindMsg?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface EyGuardInviteLoginInitData extends Partial<InviteContext> {
|
|
42
|
+
canBack?: boolean;
|
|
43
|
+
verifyAccount: string;
|
|
44
|
+
context: any;
|
|
45
|
+
originModule: GuardModuleType;
|
|
46
|
+
originContext: any;
|
|
47
|
+
}
|
|
48
|
+
export interface EyGuardInviteCompleteInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
49
|
+
metaData: any;
|
|
50
|
+
}
|
|
51
|
+
export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
52
|
+
weComConfig: {
|
|
53
|
+
QRConfig: any;
|
|
54
|
+
id: string;
|
|
55
|
+
isDefault: boolean;
|
|
56
|
+
title: string;
|
|
57
|
+
};
|
|
58
|
+
isNew: boolean;
|
|
59
|
+
socialConnections: any[];
|
|
60
|
+
}
|
|
61
|
+
export interface EyGuardProtocolInitData {
|
|
62
|
+
onAcceptHandle: () => void;
|
|
63
|
+
onRejectHandle: () => void;
|
|
64
|
+
mode: 'Guard' | 'Portal';
|
|
65
|
+
}
|
|
66
|
+
export interface EyLoginProps {
|
|
67
|
+
onBeforeLogin?: (loginInfo: any) => void;
|
|
68
|
+
onLoginSuccess?: (data: any, message?: string) => void;
|
|
69
|
+
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
70
|
+
}
|
|
71
|
+
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
72
|
+
current: {
|
|
73
|
+
onSpin: (arg0: boolean) => void;
|
|
74
|
+
};
|
|
75
|
+
} | undefined) => (context: any) => Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
|
+
import { VerifyLoginMethods } from '../../Type';
|
|
2
3
|
export declare enum InputMethodMap {
|
|
3
4
|
email = "email-code",
|
|
4
5
|
phone = "phone-code"
|
|
@@ -11,6 +12,8 @@ interface ResetPasswordProps {
|
|
|
11
12
|
setPhoneOrEmailText: any;
|
|
12
13
|
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
14
|
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
15
|
+
supportMethods?: VerifyLoginMethods[];
|
|
16
|
+
firstValidate?: 'phone' | 'email';
|
|
14
17
|
}
|
|
15
18
|
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -4,6 +4,7 @@ import { ForgetPasswordConfig } from '../ForgetPassword/interface';
|
|
|
4
4
|
import { LoginConfig } from '../Login/interface';
|
|
5
5
|
import { RegisterConfig } from '../Register/interface';
|
|
6
6
|
export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPasswordConfig {
|
|
7
|
+
isInvited?: boolean;
|
|
7
8
|
isSSO?: boolean;
|
|
8
9
|
defaultScenes?: GuardModuleType;
|
|
9
10
|
defaultInitData?: any;
|
|
@@ -250,7 +250,7 @@ declare class MultipleAccount {
|
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
252
|
usertype?: string | undefined;
|
|
253
|
-
}, "
|
|
253
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
254
254
|
setLoginWayByHttpData: (account: string, data: {
|
|
255
255
|
username?: string | undefined;
|
|
256
256
|
phone?: string | undefined;
|
|
@@ -294,7 +294,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
|
|
|
294
294
|
id: string;
|
|
295
295
|
loginAccount?: string | undefined;
|
|
296
296
|
usertype?: string | undefined;
|
|
297
|
-
}, "
|
|
297
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
298
298
|
setLoginWayByHttpData: (account: string, data: {
|
|
299
299
|
username?: string | undefined;
|
|
300
300
|
phone?: string | undefined;
|
|
@@ -21,10 +21,10 @@ export declare enum GuardModuleType {
|
|
|
21
21
|
IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",
|
|
22
22
|
SELF_UNLOCK = "selfUnlock",
|
|
23
23
|
FLOW_SELECT_ACCOUNT = "flowSelectAccount",
|
|
24
|
+
SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
|
|
24
25
|
/** 多租户门户选择页 */
|
|
25
26
|
TENANT_PORTAL = "tenant-portal",
|
|
26
27
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
27
|
-
SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
|
|
28
28
|
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
29
29
|
APPLY_INVITATION = "applyInvitation",
|
|
30
30
|
MESSAGE = "message",
|
|
@@ -33,7 +33,38 @@ export declare enum GuardModuleType {
|
|
|
33
33
|
INVITE_EXPIRE = "inviteExpire",
|
|
34
34
|
INVITE_PAGE_EXPIRE = "invitePageExpire",
|
|
35
35
|
INVITE_SUCCESS = "inviteSuccess",
|
|
36
|
-
RESET_PASSWORD = "resetPassword"
|
|
36
|
+
RESET_PASSWORD = "resetPassword",
|
|
37
|
+
/**
|
|
38
|
+
* pre check email
|
|
39
|
+
*/
|
|
40
|
+
EY_PRE_CHECK_EMAIL = "ey_pre_check_email",
|
|
41
|
+
/**
|
|
42
|
+
* protocols
|
|
43
|
+
*/
|
|
44
|
+
EY_PROTOCOLS = "ey_protocols",
|
|
45
|
+
/**
|
|
46
|
+
* check captcha
|
|
47
|
+
*/
|
|
48
|
+
EY_CHECK_CAPTCHA = "ey_check_captcha",
|
|
49
|
+
/**
|
|
50
|
+
* invite expire
|
|
51
|
+
*/
|
|
52
|
+
EY_INVITE_EXPIRE = "ey_invite_expire",
|
|
53
|
+
/**
|
|
54
|
+
* invite loading
|
|
55
|
+
*/
|
|
56
|
+
EY_INVITE_LOADING = "ey_invite_loading",
|
|
57
|
+
/**
|
|
58
|
+
* identity bind
|
|
59
|
+
*/
|
|
60
|
+
EY_IDENTITY_BIND = "ey_identity_bind",
|
|
61
|
+
/**
|
|
62
|
+
* invite complete
|
|
63
|
+
*/
|
|
64
|
+
EY_INVITE_COMPLETE = "ey_invite_complete"
|
|
65
|
+
/**
|
|
66
|
+
* invite login
|
|
67
|
+
*/
|
|
37
68
|
}
|
|
38
69
|
export interface GuardModuleAction {
|
|
39
70
|
action: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EYLoginWithWeComQrcode: (props: any) => JSX.Element;
|
|
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
39
39
|
id: string;
|
|
40
40
|
loginAccount?: string | undefined;
|
|
41
41
|
usertype?: string | undefined;
|
|
42
|
-
}, "
|
|
42
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
43
43
|
setLoginWayByHttpData: (account: string, data: {
|
|
44
44
|
username?: string | undefined;
|
|
45
45
|
phone?: string | undefined;
|
|
@@ -61,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
61
61
|
getOriginAccount: () => string;
|
|
62
62
|
getOriginWay: () => string;
|
|
63
63
|
} | undefined;
|
|
64
|
-
referMultipleState: ((type: "
|
|
64
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
65
65
|
backfillData: BackFillMultipleState | undefined;
|
|
66
66
|
defaultQrWay: string | undefined;
|
|
67
67
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
beforeSend: () => Promise<boolean>;
|
|
5
|
+
verifyType: 'emailCode' | 'phoneCode';
|
|
6
|
+
length?: number;
|
|
7
|
+
size?: string;
|
|
8
|
+
gutter?: string;
|
|
9
|
+
onEenter?: Function;
|
|
10
|
+
showDivider?: boolean;
|
|
11
|
+
onChange?: any;
|
|
12
|
+
value?: string;
|
|
13
|
+
onFinish?: any;
|
|
14
|
+
}
|
|
15
|
+
export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<VerifyCodeInputProps & React.RefAttributes<any>>;
|
|
16
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
|
+
import { SlotProps } from 'input-otp';
|
|
2
3
|
import './style.less';
|
|
3
4
|
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
length?: number;
|
|
@@ -7,8 +8,12 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
7
8
|
onEenter?: Function;
|
|
8
9
|
showDivider?: boolean;
|
|
9
10
|
onChange?: any;
|
|
10
|
-
value?:
|
|
11
|
+
value?: string;
|
|
11
12
|
onFinish?: any;
|
|
13
|
+
ResentBtnSort?: () => JSX.Element;
|
|
12
14
|
}
|
|
15
|
+
export declare const SoltInput: (solt: SlotProps & {
|
|
16
|
+
style: any;
|
|
17
|
+
}) => JSX.Element;
|
|
13
18
|
export declare const VerifyCodeInput: React.FC<VerifyCodeInputProps>;
|
|
14
19
|
export {};
|
|
@@ -47,6 +47,7 @@ interface GetPasskeyVerifyChallengeParams {
|
|
|
47
47
|
mfaToken: string;
|
|
48
48
|
}
|
|
49
49
|
export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>;
|
|
50
|
+
export declare const checkEmailOrSms: (content: any) => Promise<AuthingGuardResponse<any>>;
|
|
50
51
|
export declare const VerifySms: (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>;
|
|
51
52
|
export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
|
|
52
53
|
export declare const VerifyFace: (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>;
|
|
@@ -6,5 +6,6 @@ export interface SendCodeProps extends ButtonProps {
|
|
|
6
6
|
btnRef?: React.RefObject<HTMLButtonElement>;
|
|
7
7
|
setSent?: (value: boolean) => void;
|
|
8
8
|
sendDesc?: string;
|
|
9
|
+
timerTime?: number;
|
|
9
10
|
}
|
|
10
|
-
export declare const SendCodeBtn: React.
|
|
11
|
+
export declare const SendCodeBtn: React.ForwardRefExoticComponent<SendCodeProps & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type Lang = 'zh-CN' | 'en-US'
|
|
1
|
+
export declare type Lang = 'zh-CN' | 'en-US';
|
|
2
2
|
import { MFAType } from '../MFA/interface';
|
|
3
3
|
import { PasswordStrength } from '../_utils';
|
|
4
4
|
export * from 'authing-js-sdk';
|
|
@@ -17,7 +17,12 @@ export declare enum LoginMethods {
|
|
|
17
17
|
WECHATWORKAGENCYQRCONNECT = "wechatwork-agency-qrcode",
|
|
18
18
|
DingTalkQrcode = "dingtalk-qrcode",
|
|
19
19
|
Passkey = "passkey",
|
|
20
|
-
ZJZWFWQrcode = "zjzwfw-qrcode"
|
|
20
|
+
ZJZWFWQrcode = "zjzwfw-qrcode",
|
|
21
|
+
/**
|
|
22
|
+
* ey
|
|
23
|
+
*/
|
|
24
|
+
EYWechatworkCorpQrconnect = "wechatwork-service-provider-qrconnect",
|
|
25
|
+
WechatworkCorpQrconnectNew = "wechatwork-service-provider-qrconnect-v2"
|
|
21
26
|
}
|
|
22
27
|
export declare enum OIDCConnectionMode {
|
|
23
28
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -362,6 +367,10 @@ export interface ApplicationConfig {
|
|
|
362
367
|
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
363
368
|
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
364
369
|
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
370
|
+
/**
|
|
371
|
+
* 是否为官方应用
|
|
372
|
+
*/
|
|
373
|
+
isOfficial?: boolean;
|
|
365
374
|
/** 加入租户校验企业邮箱 */
|
|
366
375
|
enableVerifyDomainInJoinTenant: boolean;
|
|
367
376
|
passkeyEnabled: boolean;
|
|
@@ -19,6 +19,7 @@ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, co
|
|
|
19
19
|
export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string, config?: GuardLocalConfig, httpClient?: GuardHttp, setError?: any) => {
|
|
20
20
|
finallyConfig: {
|
|
21
21
|
host: string;
|
|
22
|
+
isInvited?: boolean | undefined;
|
|
22
23
|
isSSO?: boolean | undefined;
|
|
23
24
|
defaultScenes?: import("../..").GuardModuleType | undefined;
|
|
24
25
|
defaultInitData?: any;
|
|
@@ -53,7 +54,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
54
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
55
|
passwordLoginMethods?: string[] | undefined;
|
|
55
56
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
57
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
57
58
|
enterpriseConnections?: string[] | undefined;
|
|
58
59
|
qrCodeScanOptions?: {
|
|
59
60
|
extIdpConnId?: string | undefined;
|