@authing/react-ui-components 3.0.33 → 3.1.0-hep.1

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/lib/index.d.ts CHANGED
@@ -1,3 +1,49 @@
1
+ declare module '@authing/react-ui-components/components/AccountMerge/UserRadio' {
2
+ import React from 'react';
3
+ import { UserRadioItemProps, UserRadioProps } from '@authing/react-ui-components/components/AccountMerge/interface';
4
+ import './styles.less';
5
+ export const UserRadioItem: React.FC<UserRadioItemProps>;
6
+ export const UserRadio: React.FC<UserRadioProps>;
7
+
8
+ }
9
+ declare module '@authing/react-ui-components/components/AccountMerge/index' {
10
+ import React from 'react';
11
+ import './styles.less';
12
+ export const GuardAccountMergeView: React.FC;
13
+
14
+ }
15
+ declare module '@authing/react-ui-components/components/AccountMerge/interface' {
16
+ export interface BriefUserInfo {
17
+ displayName: string;
18
+ avatar: string;
19
+ }
20
+ export interface GuardAccountMergeInitData {
21
+ currentUserInfo: BriefUserInfo;
22
+ existingUserInfo: BriefUserInfo;
23
+ mergeToken?: string;
24
+ }
25
+ export interface UserRadioProps {
26
+ currentUserInfo: BriefUserInfo;
27
+ existingUserInfo: BriefUserInfo;
28
+ onChange?: (value: any) => void;
29
+ value?: any;
30
+ }
31
+ export interface UserRadioItemProps extends BriefUserInfo {
32
+ value: boolean;
33
+ selected: boolean;
34
+ onClick: (value: boolean) => void;
35
+ }
36
+ export enum AuthFlowAction {
37
+ MERGE = "confirm-account-merge"
38
+ }
39
+
40
+ }
41
+ declare module '@authing/react-ui-components/components/AccountMerge/utils' {
42
+ import { User } from 'authing-js-sdk';
43
+ export const getDisplayName: (user: User) => string;
44
+ export const getDisplayNameByEmail: (displayName: string) => string;
45
+
46
+ }
1
47
  declare module '@authing/react-ui-components/components/AuthingDropdown/index' {
2
48
  import React, { FC } from 'react';
3
49
  import './style.less';
@@ -486,6 +532,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
486
532
  verifyCodeLength: number;
487
533
  websocket: string;
488
534
  welcomeMessage: any;
535
+ userPortal?: {
536
+ mergeAccount?: boolean;
537
+ };
489
538
  skipComplateFileds: boolean;
490
539
  }
491
540
  export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
@@ -1056,6 +1105,14 @@ declare module '@authing/react-ui-components/components/AuthingTabs/index' {
1056
1105
  }
1057
1106
  export const AuthingTabs: FC<AuthingTabsProps>;
1058
1107
 
1108
+ }
1109
+ declare module '@authing/react-ui-components/components/BindTotp/businessRequest' {
1110
+ export enum BindTotpBusinessAction {
1111
+ VerifyTotpFirstTime = "verify-totp-first-time",
1112
+ ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
1113
+ }
1114
+ export const authFlow: (action: BindTotpBusinessAction, content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1115
+
1059
1116
  }
1060
1117
  declare module '@authing/react-ui-components/components/BindTotp/core/bindSuccess' {
1061
1118
  import React from 'react';
@@ -1079,9 +1136,8 @@ declare module '@authing/react-ui-components/components/BindTotp/core/securityCo
1079
1136
  }
1080
1137
  declare module '@authing/react-ui-components/components/BindTotp/index' {
1081
1138
  import React from 'react';
1082
- import { GuardBindTotpViewProps } from '@authing/react-ui-components/components/BindTotp/interface';
1083
1139
  import './styles.less';
1084
- export const GuardBindTotpView: React.FC<GuardBindTotpViewProps>;
1140
+ export const GuardBindTotpView: React.FC;
1085
1141
 
1086
1142
  }
1087
1143
  declare module '@authing/react-ui-components/components/BindTotp/interface' {
@@ -1111,15 +1167,24 @@ declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
1111
1167
  /// <reference types="react" />
1112
1168
  export const ChangeLanguage: (props: any) => JSX.Element;
1113
1169
 
1170
+ }
1171
+ declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
1172
+ export enum ChangePasswordBusinessAction {
1173
+ ResetPassword = "reset-password-first-time",
1174
+ FirstLoginReset = "reset-password-forced"
1175
+ }
1176
+ export const authFlow: (action: ChangePasswordBusinessAction, content: {
1177
+ password: string;
1178
+ oldPassword?: string;
1179
+ }) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1180
+
1114
1181
  }
1115
1182
  declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
1116
- /// <reference types="react" />
1183
+ import React from 'react';
1117
1184
  interface FirstLoginResetProps {
1118
1185
  onReset: any;
1119
- publicConfig: any;
1120
- initData: any;
1121
1186
  }
1122
- export const FirstLoginReset: (props: FirstLoginResetProps) => JSX.Element;
1187
+ export const FirstLoginReset: React.FC<FirstLoginResetProps>;
1123
1188
  export {};
1124
1189
 
1125
1190
  }
@@ -1127,29 +1192,37 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
1127
1192
  /// <reference types="react" />
1128
1193
  interface RotateResetProps {
1129
1194
  onReset: any;
1130
- publicConfig: any;
1131
- initData: any;
1132
1195
  }
1133
1196
  export const RotateReset: (props: RotateResetProps) => JSX.Element;
1134
1197
  export {};
1135
1198
 
1136
1199
  }
1137
1200
  declare module '@authing/react-ui-components/components/ChangePassword/index' {
1138
- /// <reference types="react" />
1139
- export const GuardChangePassword: (props: any) => JSX.Element;
1201
+ import React from 'react';
1202
+ export const GuardChangePassword: React.FC<{
1203
+ title: string;
1204
+ explain: string;
1205
+ }>;
1206
+ export const GuardFirstLoginPasswordResetView: React.FC;
1207
+ export const GuardForcedPasswordResetView: React.FC;
1208
+
1209
+ }
1210
+ declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1211
+ import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1212
+ export enum CompleteInfoAuthFlowAction {
1213
+ Complete = "complete-completion",
1214
+ Skip = "skip-completion"
1215
+ }
1216
+ export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1217
+ export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
1140
1218
 
1141
1219
  }
1142
1220
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
1143
1221
  import React from 'react';
1144
- import { ExtendsField } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1145
- import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/interface';
1146
- import { User } from 'authing-js-sdk';
1222
+ import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1147
1223
  export interface CompleteInfoProps {
1148
- user: User;
1149
- verifyCodeLength: number | undefined;
1150
- extendsFields: ExtendsField[];
1151
- onRegisterInfoCompleted?: GuardCompleteInfoViewProps['onRegisterInfoCompleted'];
1152
- onRegisterInfoCompletedError?: GuardCompleteInfoViewProps['onRegisterInfoCompletedError'];
1224
+ metaData: CompleteInfoMetaData[];
1225
+ businessRequest: (data: CompleteInfoRequest) => Promise<void>;
1153
1226
  }
1154
1227
  export interface FieldMetadata {
1155
1228
  key: string;
@@ -1160,9 +1233,17 @@ declare module '@authing/react-ui-components/components/CompleteInfo/core/comple
1160
1233
  }
1161
1234
  declare module '@authing/react-ui-components/components/CompleteInfo/index' {
1162
1235
  import React from 'react';
1163
- import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/interface';
1236
+ import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1164
1237
  import './styles.less';
1165
- export const GuardCompleteInfoView: React.FC<GuardCompleteInfoViewProps>;
1238
+ import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/components/CompleteInfo/businessRequest';
1239
+ export const GuardCompleteInfo: React.FC<{
1240
+ metaData: CompleteInfoMetaData[];
1241
+ skipComplateFileds: boolean;
1242
+ businessRequest: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<void>;
1243
+ }>;
1244
+ export const GuardLoginCompleteInfoView: React.FC;
1245
+ export const GuardRegisterCompleteInfoView: React.FC;
1246
+ export const GuardAccountMergeCompleteInfoView: React.FC;
1166
1247
 
1167
1248
  }
1168
1249
  declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
@@ -1175,19 +1256,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1175
1256
  onRegisterInfoCompleted?: (user: User, udfs: {
1176
1257
  definition: any;
1177
1258
  value: any;
1178
- }[], authClient: AuthenticationClient) => void;
1259
+ }[], authClient: AuthenticationClient, opts?: {
1260
+ phone?: string;
1261
+ canMergeUser?: boolean;
1262
+ }) => void;
1179
1263
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
1180
1264
  definition: any;
1181
1265
  value: any;
1182
1266
  }[], authClient: AuthenticationClient) => void;
1267
+ onAccountMergeCompleteInfo?: (user: User) => void;
1183
1268
  }
1184
1269
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
1185
1270
  config: Partial<CompleteInfoConfig>;
1186
1271
  }
1187
1272
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
1188
1273
  config: CompleteInfoConfig;
1189
- initData: any;
1190
- onLogin?: any;
1191
1274
  }
1192
1275
  export type ExtendsFieldType = 'user' | 'internal';
1193
1276
  export interface ExtendsField {
@@ -1198,12 +1281,87 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1198
1281
  required: boolean;
1199
1282
  validateRules: any[];
1200
1283
  }
1284
+ export enum FormValidateRule {
1285
+ NONE = "none",
1286
+ EMAIL = "email",
1287
+ PHONE = "phone",
1288
+ IS_NUMBER = "isNumber",
1289
+ REG_EXP = "regExp"
1290
+ }
1291
+ export interface CompleteInfoRule {
1292
+ type: FormValidateRule;
1293
+ content: string;
1294
+ errorMessage?: string;
1295
+ }
1296
+ export interface CompleteInfoSelectOption {
1297
+ value: string;
1298
+ label: string;
1299
+ }
1300
+ export interface CompleteInfoMetaData {
1301
+ type: CompleteInfoBaseControls | CompleteInfoExtendsControls;
1302
+ label: string;
1303
+ name: string;
1304
+ required: boolean;
1305
+ validateRules: CompleteInfoRule[];
1306
+ checkUnique?: boolean;
1307
+ options?: CompleteInfoSelectOption[];
1308
+ }
1309
+ export enum CompleteInfoBaseControls {
1310
+ USERNAME = "username",
1311
+ PHONE = "phone",
1312
+ EMAIL = "email"
1313
+ }
1314
+ export enum CompleteInfoExtendsControls {
1315
+ IMAGE = "image",
1316
+ NUMBER = "number",
1317
+ DATE = "date",
1318
+ DATE_TIME = "dateTime",
1319
+ SELECT = "select",
1320
+ DROPDOWN = "dropdown",
1321
+ BOOLEAN = "boolean",
1322
+ STRING = "string",
1323
+ TEXT = "text",
1324
+ GENDER = "gender",
1325
+ COUNTRY = "country"
1326
+ }
1327
+ export interface CompleteInfoInitData {
1328
+ skip: boolean;
1329
+ metaData: CompleteInfoMetaData[];
1330
+ }
1331
+ export interface RegisterCompleteInfoInitData {
1332
+ content: any;
1333
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1334
+ }
1335
+ export interface CompleteInfoRequest {
1336
+ fieldValues: {
1337
+ name: string;
1338
+ value: string;
1339
+ code?: string;
1340
+ }[];
1341
+ }
1342
+ export enum OmitCompleteInfo {
1343
+ 'registerByEmail' = "email",
1344
+ 'registerByPhoneCode' = "phone"
1345
+ }
1201
1346
 
1202
1347
  }
1203
1348
  declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
1204
1349
  import { User } from 'authing-js-sdk';
1205
- import { ExtendsField } from '@authing/react-ui-components/components/CompleteInfo/interface';
1350
+ import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1351
+ import { CompleteInfoMetaData, ExtendsField } from '@authing/react-ui-components/components/CompleteInfo/interface';
1206
1352
  export const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
1353
+ export const extendsFieldsToMetaData: (extendsFields: import("@authing/react-ui-components/components/AuthingGuard/api/index").ExtendsField[] | undefined, selectOptions: {
1354
+ key: string;
1355
+ options: {
1356
+ value: string;
1357
+ label: string;
1358
+ }[];
1359
+ }[]) => CompleteInfoMetaData[];
1360
+ export const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: {
1361
+ name: string;
1362
+ value: string;
1363
+ code?: string | undefined;
1364
+ }[] | undefined) => Record<string, any>;
1207
1365
 
1208
1366
  }
1209
1367
  declare module '@authing/react-ui-components/components/CopyAbleText/index' {
@@ -1216,9 +1374,8 @@ declare module '@authing/react-ui-components/components/CopyAbleText/index' {
1216
1374
  }
1217
1375
  declare module '@authing/react-ui-components/components/DownloadAuthenticator/index' {
1218
1376
  import React from 'react';
1219
- import { GuardDownloadATViewProps } from '@authing/react-ui-components/components/DownloadAuthenticator/interface';
1220
1377
  import './styles.less';
1221
- export const GuardDownloadATView: React.FC<GuardDownloadATViewProps>;
1378
+ export const GuardDownloadATView: React.FC;
1222
1379
 
1223
1380
  }
1224
1381
  declare module '@authing/react-ui-components/components/DownloadAuthenticator/interface' {
@@ -1238,14 +1395,13 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
1238
1395
  }
1239
1396
  declare module '@authing/react-ui-components/components/Error/index' {
1240
1397
  import React from 'react';
1241
- import { GuardErrorViewProps } from '@authing/react-ui-components/components/Error/interface';
1242
1398
  import './styles.less';
1243
- export const GuardErrorView: React.FC<GuardErrorViewProps>;
1399
+ export const GuardErrorView: React.FC;
1244
1400
 
1245
1401
  }
1246
1402
  declare module '@authing/react-ui-components/components/Error/interface' {
1247
1403
  export interface ErrorInitData {
1248
- messages?: string;
1404
+ error?: Error;
1249
1405
  }
1250
1406
  export interface GuardErrorProps {
1251
1407
  initData?: ErrorInitData;
@@ -1272,8 +1428,7 @@ declare module '@authing/react-ui-components/components/ForgetPassword/core/rese
1272
1428
  }
1273
1429
  declare module '@authing/react-ui-components/components/ForgetPassword/index' {
1274
1430
  import React from 'react';
1275
- import { ForgetPasswordViewProps } from '@authing/react-ui-components/components/ForgetPassword/interface';
1276
- export const GuardForgetPassword: React.FC<ForgetPasswordViewProps>;
1431
+ export const GuardForgetPassword: React.FC;
1277
1432
 
1278
1433
  }
1279
1434
  declare module '@authing/react-ui-components/components/ForgetPassword/interface' {
@@ -1302,24 +1457,56 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
1302
1457
  import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
1303
1458
  import { IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1304
1459
  import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1305
- import './styles.less';
1306
1460
  import 'moment/locale/zh-cn';
1307
- export enum LangMAP {
1308
- zhCn = "zh-CN",
1309
- enUs = "en-US"
1310
- }
1311
1461
  export interface GuardProps extends GuardEvents, IG2FCProps {
1312
- tenantId?: string;
1313
1462
  config?: Partial<GuardLocalConfig>;
1314
- visible?: boolean;
1315
1463
  }
1316
1464
  export const Guard: (props: GuardProps) => JSX.Element;
1317
1465
 
1466
+ }
1467
+ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateMachine' {
1468
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1469
+ import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
1470
+ export interface ModuleState {
1471
+ moduleName: GuardModuleType;
1472
+ initData?: any;
1473
+ }
1474
+ export enum ActionType {
1475
+ ChangeModule = "ChangeModule",
1476
+ Back = "Back",
1477
+ Init = "Init"
1478
+ }
1479
+ export interface StateMachineLog {
1480
+ action: ActionType;
1481
+ date: number;
1482
+ dataSource: ModuleState;
1483
+ }
1484
+ export type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
1485
+ export class GuardStateMachine {
1486
+ private order;
1487
+ private config;
1488
+ private moduleStateHistory;
1489
+ private changeModuleEvent;
1490
+ private stateMachineLog;
1491
+ constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
1492
+ globalWindow: () => Window | undefined;
1493
+ next: (nextModule: GuardModuleType, initData: any) => void;
1494
+ back: (initData?: any) => void;
1495
+ end: () => void;
1496
+ historyPush: (data: ModuleState, actionType?: ActionType) => void;
1497
+ historyBack: (data: ModuleState) => void;
1498
+ setConfig: (config: GuardLocalConfig) => void;
1499
+ }
1500
+ export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
1501
+ export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
1502
+ export const getGuardStateMachine: () => GuardStateMachine;
1503
+ export const useGuardStateMachine: () => GuardStateMachine;
1504
+
1318
1505
  }
1319
1506
  declare module '@authing/react-ui-components/components/Guard/authClient' {
1320
1507
  import { AuthenticationClient } from 'authing-js-sdk';
1321
1508
  import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1322
- export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
1509
+ export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, websocketHost: string, tenantId?: string | undefined) => AuthenticationClient;
1323
1510
  export const getGuardAuthClient: () => AuthenticationClient;
1324
1511
  export const useGuardAuthClient: () => AuthenticationClient;
1325
1512
 
@@ -1329,7 +1516,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
1329
1516
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1330
1517
  import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1331
1518
  import { RegisterConfig } from '@authing/react-ui-components/components/Register/interface';
1332
- export interface GuardComponentConifg extends Partial<GuardLocalConfig> {
1519
+ export interface GuardComponentConfig extends Partial<GuardLocalConfig> {
1333
1520
  }
1334
1521
  export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
1335
1522
  isSSO?: boolean;
@@ -1344,14 +1531,46 @@ declare module '@authing/react-ui-components/components/Guard/config' {
1344
1531
  }
1345
1532
  export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
1346
1533
 
1534
+ }
1535
+ declare module '@authing/react-ui-components/components/Guard/core/index' {
1536
+ /// <reference types="react" />
1537
+ import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
1538
+ import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
1539
+ export const useRenderGuardCore: (props: GuardProps, initState: ModuleState) => JSX.Element;
1540
+
1541
+ }
1542
+ declare module '@authing/react-ui-components/components/Guard/core/renderContext' {
1543
+ import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
1544
+ import React from 'react';
1545
+ import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
1546
+ export const RenderContext: React.FC<{
1547
+ guardProps: GuardProps;
1548
+ initState: ModuleState;
1549
+ }>;
1550
+
1551
+ }
1552
+ declare module '@authing/react-ui-components/components/Guard/core/renderModule' {
1553
+ import React from 'react';
1554
+ import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
1555
+ import '../styles.less';
1556
+ export enum LangMAP {
1557
+ zhCn = "zh-CN",
1558
+ enUs = "en-US"
1559
+ }
1560
+ export const RenderModule: React.FC<{
1561
+ guardProps: GuardProps;
1562
+ }>;
1563
+
1347
1564
  }
1348
1565
  declare module '@authing/react-ui-components/components/Guard/event' {
1349
1566
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1350
1567
  import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/interface';
1351
1568
  import { ForgetPasswordEvents } from '@authing/react-ui-components/components/ForgetPassword/interface';
1569
+ import { IdentityBindingEvents } from '@authing/react-ui-components/components/IdentityBinding/interface';
1570
+ import { IdentityBindingAskEvents } from '@authing/react-ui-components/components/IdentityBindingAsk/index';
1352
1571
  import { LoginEvents } from '@authing/react-ui-components/components/Login/interface';
1353
1572
  import { RegisterEvents } from '@authing/react-ui-components/components/Register/interface';
1354
- export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents {
1573
+ export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
1355
1574
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
1356
1575
  }
1357
1576
  export const guardEventsFilter: (props: any, openEventsMapping?: boolean | undefined) => GuardEvents;
@@ -1372,15 +1591,19 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1372
1591
  REGISTER = "register",
1373
1592
  MFA = "mfa",
1374
1593
  FORGET_PWD = "forgetPassword",
1375
- CHANGE_PWD = "changePassword",
1594
+ FORCED_PASSWORD_RESET = "forcedPasswordReset",
1595
+ FIRST_LOGIN_PASSWORD = "firstLoginPassword",
1376
1596
  DOWNLOAD_AT = "downloadAT",
1377
1597
  BIND_TOTP = "bindTotp",
1378
1598
  ANY_QUESTIONS = "anyQuestions",
1379
- COMPLETE_INFO = "completeInfo",
1599
+ LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1600
+ REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1601
+ CUSTOM_COMPLETE_INFO = "customCompleteInfo",
1380
1602
  RECOVERY_CODE = "recoveryCode",
1381
1603
  SUBMIT_SUCCESS = "submitSuccess",
1382
1604
  IDENTITY_BINDING_ASK = "identityBindingAsk",
1383
- IDENTITY_BINDING = "identityBinding"
1605
+ IDENTITY_BINDING = "identityBinding",
1606
+ ACCOUNT_MERGE = "accountMerge"
1384
1607
  }
1385
1608
  export interface GuardModuleAction {
1386
1609
  action: string;
@@ -1409,46 +1632,7 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
1409
1632
  };
1410
1633
  userInfo?: User;
1411
1634
  }
1412
- export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<any>>;
1413
-
1414
- }
1415
- declare module '@authing/react-ui-components/components/Guard/stateMachine' {
1416
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1417
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
1418
- export interface ModuleState {
1419
- moduleName: GuardModuleType;
1420
- initData?: any;
1421
- }
1422
- export enum ActionType {
1423
- ChangeModule = "ChangeModule",
1424
- Back = "Back",
1425
- Init = "Init"
1426
- }
1427
- export interface StateMachineLog {
1428
- action: ActionType;
1429
- date: number;
1430
- dataSource: ModuleState;
1431
- }
1432
- export type ChangeModuleEvent = (nextModelu: GuardModuleType, initData?: any) => void;
1433
- export class GuardStateMachine {
1434
- private order;
1435
- private config;
1436
- private moduleStateHistory;
1437
- private changeMouleEvent;
1438
- private stateMachineLog;
1439
- constructor(changeMouleEvent: ChangeModuleEvent, initData: ModuleState);
1440
- globalWindow: () => Window | undefined;
1441
- next: (nextModelu: GuardModuleType, initData: any) => void;
1442
- back: (initData?: any) => void;
1443
- end: () => void;
1444
- historyPush: (data: ModuleState, actionType?: ActionType) => void;
1445
- historyBack: (data: ModuleState) => void;
1446
- setConfig: (config: GuardLocalConfig) => void;
1447
- }
1448
- export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
1449
- export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
1450
- export const getGuardStateMachine: () => GuardStateMachine;
1451
- export const useGuardStateMachine: () => GuardStateMachine;
1635
+ export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
1452
1636
 
1453
1637
  }
1454
1638
  declare module '@authing/react-ui-components/components/IconFont/iconfont' {
@@ -1472,9 +1656,37 @@ declare module '@authing/react-ui-components/components/IconFont/svg' {
1472
1656
  }
1473
1657
  declare module '@authing/react-ui-components/components/IdentityBinding/IdentityBinding' {
1474
1658
  import React from 'react';
1475
- import { GuardIdentityBindingViewProps } from '@authing/react-ui-components/components/IdentityBinding/interface';
1476
1659
  import './styles.less';
1477
- export const GuardIdentityBindingView: React.FC<GuardIdentityBindingViewProps>;
1660
+ export const GuardIdentityBindingView: React.FC;
1661
+
1662
+ }
1663
+ declare module '@authing/react-ui-components/components/IdentityBinding/businessRequest' {
1664
+ export enum IdentityBindingBusinessAction {
1665
+ PhoneCode = "phone-code",
1666
+ EmailCode = "emial-code",
1667
+ Password = "password"
1668
+ }
1669
+ export interface PhoneCodeParams {
1670
+ phone: string;
1671
+ code: string;
1672
+ phoneCountryCode?: string;
1673
+ }
1674
+ export interface EmailCodeParams {
1675
+ email: string;
1676
+ code: string;
1677
+ }
1678
+ export interface PasswordParams {
1679
+ account: string;
1680
+ password: string;
1681
+ }
1682
+ export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1683
+ export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1684
+ export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1685
+ export const useIdentityBindingBusinessRequest: () => {
1686
+ "phone-code": (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1687
+ "emial-code": (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1688
+ password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1689
+ };
1478
1690
 
1479
1691
  }
1480
1692
  declare module '@authing/react-ui-components/components/IdentityBinding/index' {
@@ -1514,9 +1726,8 @@ declare module '@authing/react-ui-components/components/IdentityBinding/interfac
1514
1726
  }
1515
1727
  declare module '@authing/react-ui-components/components/IdentityBindingAsk/IdentityBindingAsk' {
1516
1728
  import React from 'react';
1517
- import { GuardIdentityBindingAskViewProps } from '@authing/react-ui-components/components/IdentityBindingAsk/interface';
1518
1729
  import './styles.less';
1519
- export const GuardIdentityBindingAskView: React.FC<GuardIdentityBindingAskViewProps>;
1730
+ export const GuardIdentityBindingAskView: React.FC;
1520
1731
 
1521
1732
  }
1522
1733
  declare module '@authing/react-ui-components/components/IdentityBindingAsk/index' {
@@ -1591,7 +1802,8 @@ declare module '@authing/react-ui-components/components/Login/core/withAD' {
1591
1802
  interface LoginWithADProps {
1592
1803
  publicKey: string;
1593
1804
  autoRegister?: boolean;
1594
- onLogin: any;
1805
+ onLoginSuccess: any;
1806
+ onLoginFailed: any;
1595
1807
  onBeforeLogin: any;
1596
1808
  agreements: Agreement[];
1597
1809
  }
@@ -1602,7 +1814,7 @@ declare module '@authing/react-ui-components/components/Login/core/withAD' {
1602
1814
  declare module '@authing/react-ui-components/components/Login/core/withAppQrcode' {
1603
1815
  /// <reference types="react" />
1604
1816
  interface LoginWithAppQrcodeProps {
1605
- onLogin: any;
1817
+ onLoginSuccess: any;
1606
1818
  canLoop: boolean;
1607
1819
  qrCodeScanOptions: any;
1608
1820
  }
@@ -1617,7 +1829,8 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
1617
1829
  publicKey: string;
1618
1830
  autoRegister?: boolean;
1619
1831
  host?: string;
1620
- onLogin: any;
1832
+ onLoginSuccess: any;
1833
+ onLoginFailed: any;
1621
1834
  onBeforeLogin: any;
1622
1835
  agreements: Agreement[];
1623
1836
  }
@@ -1664,8 +1877,9 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
1664
1877
  publicKey: string;
1665
1878
  autoRegister?: boolean;
1666
1879
  host?: string;
1667
- onLogin: any;
1668
1880
  onBeforeLogin?: any;
1881
+ onLoginSuccess?: any;
1882
+ onLoginFailed?: any;
1669
1883
  onLoginRequest?: (loginInfo: any) => Promise<AuthingResponse>;
1670
1884
  passwordLoginMethods: PasswordLoginMethods[];
1671
1885
  agreements: Agreement[];
@@ -1729,7 +1943,7 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
1729
1943
  declare module '@authing/react-ui-components/components/Login/core/withWechatMiniQrcode' {
1730
1944
  /// <reference types="react" />
1731
1945
  interface LoginWithWechatMiniQrcodeProps {
1732
- onLogin: any;
1946
+ onLoginSuccess: any;
1733
1947
  canLoop: boolean;
1734
1948
  qrCodeScanOptions: any;
1735
1949
  }
@@ -1740,7 +1954,7 @@ declare module '@authing/react-ui-components/components/Login/core/withWechatMin
1740
1954
  declare module '@authing/react-ui-components/components/Login/core/withWechatmpQrcode' {
1741
1955
  /// <reference types="react" />
1742
1956
  interface LoginWithWechatmpQrcodeProps {
1743
- onLogin: any;
1957
+ onLoginSuccess: any;
1744
1958
  canLoop: boolean;
1745
1959
  qrCodeScanOptions: any;
1746
1960
  }
@@ -1750,9 +1964,8 @@ declare module '@authing/react-ui-components/components/Login/core/withWechatmpQ
1750
1964
  }
1751
1965
  declare module '@authing/react-ui-components/components/Login/index' {
1752
1966
  /// <reference types="react" />
1753
- import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/interface';
1754
1967
  import './styles.less';
1755
- export const GuardLoginView: (props: GuardLoginViewProps) => JSX.Element;
1968
+ export const GuardLoginView: () => JSX.Element;
1756
1969
 
1757
1970
  }
1758
1971
  declare module '@authing/react-ui-components/components/Login/interface' {
@@ -1763,12 +1976,12 @@ declare module '@authing/react-ui-components/components/Login/interface' {
1763
1976
  import { PasswordLoginParams, LDAPLoginParams, ADLoginParams, PhoneCodeLoginParams, AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1764
1977
  import { LoginMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
1765
1978
  export interface LoginConfig extends IG2Config {
1766
- autoRegister: boolean;
1767
- disableResetPwd: boolean;
1768
- disableRegister: boolean;
1769
- defaultLoginMethod: LoginMethods;
1770
- loginMethods: LoginMethods[];
1771
- passwordLoginMethods: PasswordLoginMethods[];
1979
+ autoRegister?: boolean;
1980
+ disableResetPwd?: boolean;
1981
+ disableRegister?: boolean;
1982
+ defaultLoginMethod?: LoginMethods;
1983
+ loginMethods?: LoginMethods[];
1984
+ passwordLoginMethods?: PasswordLoginMethods[];
1772
1985
  socialConnections?: SocialConnectionProvider[];
1773
1986
  socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
1774
1987
  enterpriseConnections?: string[];
@@ -1800,17 +2013,28 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/IdpBut
1800
2013
  declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
1801
2014
  import React from 'react';
1802
2015
  import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1803
- import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1804
2016
  import './style.less';
2017
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
1805
2018
  export interface SocialLoginProps {
1806
2019
  appId: string;
1807
- config: LoginConfig;
1808
- onLogin: any;
2020
+ config: GuardLocalConfig;
2021
+ onLoginFailed: any;
2022
+ onLoginSuccess: any;
1809
2023
  enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
1810
2024
  socialConnectionObjs: SocialConnectionItem[];
1811
2025
  }
1812
2026
  export const SocialLogin: React.FC<SocialLoginProps>;
1813
2027
 
2028
+ }
2029
+ declare module '@authing/react-ui-components/components/Login/socialLogin/postMessage' {
2030
+ import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
2031
+ export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | {
2032
+ code: any;
2033
+ data: any;
2034
+ onGuardHandling: undefined;
2035
+ } | undefined;
2036
+ export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>;
2037
+
1814
2038
  }
1815
2039
  declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/VerifyCodeFormItem' {
1816
2040
  import { FormItemProps } from 'antd/lib/form';
@@ -1839,6 +2063,55 @@ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/inde
1839
2063
  export const VerifyCodeInput: FC<VerifyCodeInputProps>;
1840
2064
  export {};
1841
2065
 
2066
+ }
2067
+ declare module '@authing/react-ui-components/components/MFA/businessRequest' {
2068
+ export enum MfaBusinessAction {
2069
+ VerifyEmail = "verify-email",
2070
+ VerifySms = "verify-sms",
2071
+ VerifyTotp = "verify-totp",
2072
+ VerifyFace = "verify-face",
2073
+ AssociateFace = "associate-face"
2074
+ }
2075
+ export const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2076
+ interface VerifySmsContent {
2077
+ phone: string;
2078
+ code: string;
2079
+ mfaToken?: string;
2080
+ phoneCountryCode?: string;
2081
+ }
2082
+ interface VerifyEmailContent {
2083
+ email: string;
2084
+ code: string;
2085
+ mfaToken?: string;
2086
+ }
2087
+ interface VerifyTotpContent {
2088
+ totp: string;
2089
+ mfaToken?: string;
2090
+ }
2091
+ interface VerifyFaceContent {
2092
+ photo: string;
2093
+ mfaToken?: string;
2094
+ }
2095
+ interface AssociateFaceContent {
2096
+ photoA: string;
2097
+ photoB: string;
2098
+ isExternalPhoto?: boolean;
2099
+ mfaToken?: string;
2100
+ }
2101
+ export const VerifyEmail: (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2102
+ export const VerifySms: (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2103
+ export const VerifyTotp: (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2104
+ export const VerifyFace: (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2105
+ export const AssociateFace: (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2106
+ export const useMfaBusinessRequest: () => {
2107
+ "verify-email": (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2108
+ "verify-sms": (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2109
+ "verify-totp": (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2110
+ "verify-face": (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2111
+ "associate-face": (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2112
+ };
2113
+ export {};
2114
+
1842
2115
  }
1843
2116
  declare module '@authing/react-ui-components/components/MFA/codemap' {
1844
2117
  import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
@@ -1946,14 +2219,13 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
1946
2219
  }
1947
2220
  declare module '@authing/react-ui-components/components/MFA/index' {
1948
2221
  import React from 'react';
1949
- import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/interface';
1950
2222
  import './styles.less';
1951
2223
  interface MFABackStateContextType {
1952
2224
  setMfaBackState: React.Dispatch<React.SetStateAction<string>>;
1953
2225
  mfaBackState: string;
1954
2226
  }
1955
2227
  export const MFABackStateContext: React.Context<MFABackStateContextType | undefined>;
1956
- export const GuardMFAView: React.FC<GuardMFAViewProps>;
2228
+ export const GuardMFAView: React.FC;
1957
2229
  export {};
1958
2230
 
1959
2231
  }
@@ -1989,6 +2261,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
1989
2261
  nickme?: string;
1990
2262
  username?: string;
1991
2263
  current?: MFAType;
2264
+ thirdPartyOrigin?: boolean;
1992
2265
  }
1993
2266
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
1994
2267
  config: Partial<MFAConfig>;
@@ -2002,10 +2275,9 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
2002
2275
  }
2003
2276
  declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
2004
2277
  import React from 'react';
2005
- import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/interface';
2278
+ import { MFAType } from '@authing/react-ui-components/components/MFA/interface';
2006
2279
  import './style.less';
2007
2280
  export interface MFAMethodsProps {
2008
- applicationMfa: GuardMFAInitData['applicationMfa'];
2009
2281
  method: MFAType;
2010
2282
  onChangeMethod: (type: MFAType) => void;
2011
2283
  }
@@ -2027,6 +2299,14 @@ declare module '@authing/react-ui-components/components/NeedHelpView/index' {
2027
2299
  /// <reference types="react" />
2028
2300
  export const GuardNeedHelpView: (props: any) => JSX.Element;
2029
2301
 
2302
+ }
2303
+ declare module '@authing/react-ui-components/components/RecoveryCode/businessRequest' {
2304
+ export enum TotpRecoveryCodeBusinessAction {
2305
+ RecoveryTotp = "recovery-totp",
2306
+ ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
2307
+ }
2308
+ export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
2309
+
2030
2310
  }
2031
2311
  declare module '@authing/react-ui-components/components/RecoveryCode/core/saveCode' {
2032
2312
  import React from 'react';
@@ -2041,20 +2321,21 @@ declare module '@authing/react-ui-components/components/RecoveryCode/core/useCod
2041
2321
  import { User } from '@authing/react-ui-components/components/index';
2042
2322
  export interface UseCodeProps {
2043
2323
  mfaToken: string;
2044
- onSubmit: (recoveryCode: string, user: User) => void;
2324
+ onSubmit: (recoveryCode: string, user?: User) => void;
2045
2325
  }
2046
2326
  export const UseCode: React.FC<UseCodeProps>;
2047
2327
 
2048
2328
  }
2049
2329
  declare module '@authing/react-ui-components/components/RecoveryCode/index' {
2050
2330
  import React from 'react';
2051
- import { GuardRecoveryCodeViewProps } from '@authing/react-ui-components/components/RecoveryCode/interface';
2052
2331
  import './style.less';
2053
- export const GuardRecoveryCodeView: React.FC<GuardRecoveryCodeViewProps>;
2332
+ export const RecoveryCode: React.FC;
2333
+ export const RecoveryCodeAuthFlow: React.FC;
2334
+ export const GuardRecoveryCodeView: React.FC;
2054
2335
 
2055
2336
  }
2056
2337
  declare module '@authing/react-ui-components/components/RecoveryCode/interface' {
2057
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
2338
+ import { IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
2058
2339
  import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
2059
2340
  export interface RecoveryCodeConfig extends IG2Config {
2060
2341
  }
@@ -2062,17 +2343,6 @@ declare module '@authing/react-ui-components/components/RecoveryCode/interface'
2062
2343
  export interface RecoveryCodeEvents extends IG2Events {
2063
2344
  onLogin?: (user: User, authClient: AuthenticationClient) => void;
2064
2345
  }
2065
- export interface GuardRecoveryCodeInitData {
2066
- mfaToken: string;
2067
- }
2068
- export interface GuardRecoveryCodeProps extends IG2FCProps, RecoveryCodeEvents {
2069
- config: Partial<RecoveryCodeConfig>;
2070
- initData: GuardRecoveryCodeInitData;
2071
- }
2072
- export interface GuardRecoveryCodeViewProps extends GuardRecoveryCodeProps {
2073
- config: RecoveryCodeConfig;
2074
- initData: GuardRecoveryCodeInitData;
2075
- }
2076
2346
 
2077
2347
  }
2078
2348
  declare module '@authing/react-ui-components/components/Register/codemap' {
@@ -2098,7 +2368,8 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2098
2368
  import React from 'react';
2099
2369
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2100
2370
  export interface RegisterWithEmailProps {
2101
- onRegister: Function;
2371
+ onRegisterSuccess: Function;
2372
+ onRegisterFailed: Function;
2102
2373
  onBeforeRegister?: Function;
2103
2374
  publicConfig?: ApplicationConfig;
2104
2375
  agreements: Agreement[];
@@ -2111,7 +2382,8 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
2111
2382
  import React from 'react';
2112
2383
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2113
2384
  export interface RegisterWithPhoneProps {
2114
- onRegister: Function;
2385
+ onRegisterSuccess: Function;
2386
+ onRegisterFailed: Function;
2115
2387
  agreements: Agreement[];
2116
2388
  publicConfig?: ApplicationConfig;
2117
2389
  registeContext?: any;
@@ -2121,8 +2393,7 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
2121
2393
  }
2122
2394
  declare module '@authing/react-ui-components/components/Register/index' {
2123
2395
  import React from 'react';
2124
- import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/interface';
2125
- export const GuardRegisterView: React.FC<GuardRegisterViewProps>;
2396
+ export const GuardRegisterView: React.FC;
2126
2397
 
2127
2398
  }
2128
2399
  declare module '@authing/react-ui-components/components/Register/interface' {
@@ -2131,13 +2402,13 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2131
2402
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2132
2403
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2133
2404
  export interface RegisterConfig extends IG2Config {
2134
- disableRegister: boolean;
2135
- registerMethods: RegisterMethods[];
2136
- defaultRegisterMethod: RegisterMethods;
2405
+ disableRegister?: boolean;
2406
+ registerMethods?: RegisterMethods[];
2407
+ defaultRegisterMethod?: RegisterMethods;
2137
2408
  publicKey?: string;
2138
2409
  agreementEnabled?: boolean;
2139
2410
  agreements?: Agreement[];
2140
- registeContext?: any;
2411
+ registerContext?: any;
2141
2412
  }
2142
2413
  export interface RegisterEvents extends IG2Events {
2143
2414
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
@@ -2153,6 +2424,10 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2153
2424
  }
2154
2425
  export const getDefaultRegisterConfig: () => RegisterConfig;
2155
2426
 
2427
+ }
2428
+ declare module '@authing/react-ui-components/components/Register/utils' {
2429
+ export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
2430
+
2156
2431
  }
2157
2432
  declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2158
2433
  import React, { FC } from 'react';
@@ -2224,9 +2499,9 @@ declare module '@authing/react-ui-components/components/ShieldSpin/index' {
2224
2499
 
2225
2500
  }
2226
2501
  declare module '@authing/react-ui-components/components/SingleComponent/SingleComponent' {
2227
- import React from 'react';
2228
- import { IG2FCProps } from '@authing/react-ui-components/components/index';
2229
- export function SingleComponent<T extends IG2FCProps>(props: T, Component: React.FC<any>): JSX.Element;
2502
+ /// <reference types="react" />
2503
+ import { GuardModuleType, IG2FCProps } from '@authing/react-ui-components/components/index';
2504
+ export function SingleComponent<T extends IG2FCProps>(props: T, guardModuleType: GuardModuleType, initData?: any): JSX.Element;
2230
2505
 
2231
2506
  }
2232
2507
  declare module '@authing/react-ui-components/components/SingleComponent/index' {
@@ -2248,8 +2523,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
2248
2523
  }
2249
2524
  declare module '@authing/react-ui-components/components/SubmitSuccess/index' {
2250
2525
  import React from 'react';
2251
- import { GuardSubmitSuccessViewProps } from '@authing/react-ui-components/components/SubmitSuccess/interface';
2252
- export const GuardSubmitSuccessView: React.FC<GuardSubmitSuccessViewProps>;
2526
+ export const GuardSubmitSuccessView: React.FC;
2253
2527
 
2254
2528
  }
2255
2529
  declare module '@authing/react-ui-components/components/SubmitSuccess/interface' {
@@ -2275,19 +2549,21 @@ declare module '@authing/react-ui-components/components/SubmitSuccess/interface'
2275
2549
  declare module '@authing/react-ui-components/components/Type/index' {
2276
2550
  import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
2277
2551
  import { Lang } from 'authing-js-sdk/build/main/types';
2278
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2279
2552
  import { GuardMode } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
2280
2553
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
2281
2554
  export interface IG2FCProps extends IG2Events {
2282
2555
  appId: string;
2556
+ tenantId?: string;
2283
2557
  config?: Partial<IG2Config>;
2558
+ visible?: boolean;
2559
+ initData?: any;
2284
2560
  }
2285
2561
  export interface IG2FCViewProps extends IG2FCProps {
2286
2562
  config: IG2Config;
2287
2563
  }
2288
2564
  export interface IG2Config {
2289
- title: string;
2290
- logo: string;
2565
+ title?: string;
2566
+ logo?: string;
2291
2567
  lang: Lang;
2292
2568
  langRange: Lang[];
2293
2569
  host: string;
@@ -2298,10 +2574,9 @@ declare module '@authing/react-ui-components/components/Type/index' {
2298
2574
  userpool?: string;
2299
2575
  contentCss?: string;
2300
2576
  target?: HTMLElement | string;
2301
- __appHost__?: string;
2302
- __pageConfig__?: GuardPageConfig;
2303
- __publicConfig__?: ApplicationConfig;
2304
2577
  __internalRequest__?: boolean;
2578
+ __singleComponent__?: boolean;
2579
+ __unAuthFlow__?: boolean;
2305
2580
  }
2306
2581
  export interface IG2Events {
2307
2582
  onLoad?: (authClient: AuthenticationClient) => void;
@@ -2316,14 +2591,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
2316
2591
  EmailCode = "email-code",
2317
2592
  PhoneCode = "phone-code"
2318
2593
  }
2319
- export enum GuardPageSene {
2320
- Global = "global"
2321
- }
2322
- export interface GuardPageConfig {
2323
- [GuardPageSene.Global]: {
2324
- showChangeLanguage: boolean;
2325
- };
2326
- }
2327
2594
 
2328
2595
  }
2329
2596
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2337,10 +2604,10 @@ declare module '@authing/react-ui-components/components/ValidatorRules/PasswordF
2337
2604
  }
2338
2605
  declare module '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem' {
2339
2606
  import React from 'react';
2340
- import { ICheckProps, ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2341
- export const EmailFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2342
- export const PhoneFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2343
- export const UserNameFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2607
+ import { ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2608
+ export const EmailFormItem: React.FC<ValidatorFormItemProps>;
2609
+ export const PhoneFormItem: React.FC<ValidatorFormItemProps>;
2610
+ export const UserNameFormItem: React.FC<ValidatorFormItemProps>;
2344
2611
 
2345
2612
  }
2346
2613
  declare module '@authing/react-ui-components/components/ValidatorRules/index' {
@@ -2373,6 +2640,10 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2373
2640
  const CustomFormItem: FormItemInterface;
2374
2641
  export default CustomFormItem;
2375
2642
 
2643
+ }
2644
+ declare module '@authing/react-ui-components/components/ValidatorRules/useCheckRepeat' {
2645
+ export const useCheckRepeat: (checkFn: (value: any, resolve: (value: unknown) => void, reject: (reason?: any) => void) => void) => (_: any, value: any) => Promise<unknown>;
2646
+
2376
2647
  }
2377
2648
  declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
2378
2649
  import React, { FC } from 'react';
@@ -2404,6 +2675,98 @@ declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
2404
2675
  declare module '@authing/react-ui-components/components/_utils/clipboard' {
2405
2676
  export const copyToClipboard: (str: string) => void;
2406
2677
 
2678
+ }
2679
+ declare module '@authing/react-ui-components/components/_utils/config/index' {
2680
+ /// <reference types="react" />
2681
+ import { RegisterMethods } from 'authing-js-sdk';
2682
+ import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2683
+ import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2684
+ import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2685
+ export const getPublicConfig: (appId: string) => ApplicationConfig;
2686
+ export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
2687
+ export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
2688
+ export const useMergePublicConfig: (appId: string, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, serError?: any) => {
2689
+ host: string;
2690
+ isSSO?: boolean | undefined;
2691
+ defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
2692
+ defaultInitData?: any;
2693
+ showLoading?: boolean | undefined;
2694
+ loadingComponent?: import("react").ReactNode;
2695
+ openEventsMapping?: boolean | undefined;
2696
+ disableRegister?: boolean | undefined;
2697
+ registerMethods?: RegisterMethods[] | undefined;
2698
+ defaultRegisterMethod?: RegisterMethods | undefined;
2699
+ publicKey?: string | undefined;
2700
+ agreementEnabled?: boolean | undefined;
2701
+ agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
2702
+ registerContext?: any;
2703
+ title?: string | undefined;
2704
+ logo?: string | undefined;
2705
+ lang: import("@authing/react-ui-components/components/index").Lang;
2706
+ langRange: import("@authing/react-ui-components/components/index").Lang[];
2707
+ isHost?: boolean | undefined;
2708
+ mode: import("@authing/react-ui-components/components/index").GuardMode;
2709
+ clickCloseable: boolean;
2710
+ escCloseable: boolean;
2711
+ userpool?: string | undefined;
2712
+ contentCss?: string | undefined;
2713
+ target?: string | HTMLElement | undefined;
2714
+ __internalRequest__?: boolean | undefined;
2715
+ __singleComponent__?: boolean | undefined;
2716
+ __unAuthFlow__?: boolean | undefined;
2717
+ autoRegister?: boolean | undefined;
2718
+ disableResetPwd?: boolean | undefined;
2719
+ defaultLoginMethod?: import("@authing/react-ui-components/components/index").LoginMethods | undefined;
2720
+ loginMethods?: import("@authing/react-ui-components/components/index").LoginMethods[] | undefined;
2721
+ passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
2722
+ socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
2723
+ socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2724
+ enterpriseConnections?: string[] | undefined;
2725
+ qrCodeScanOptions?: {
2726
+ extIdpConnId?: string | undefined;
2727
+ autoExchangeUserInfo?: boolean | undefined;
2728
+ size?: {
2729
+ height: number;
2730
+ width: number;
2731
+ } | undefined;
2732
+ containerSize?: {
2733
+ height: number;
2734
+ width: number;
2735
+ } | undefined;
2736
+ interval?: number | undefined;
2737
+ onStart?: ((timer: any) => any) | undefined;
2738
+ onResult?: ((data: import("authing-js-sdk").QRCodeStatus) => any) | undefined;
2739
+ onScanned?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo) => any) | undefined;
2740
+ onSuccess?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo, ticket: string) => any) | undefined;
2741
+ onCancel?: (() => any) | undefined;
2742
+ onError?: ((message: string) => any) | undefined;
2743
+ onExpired?: (() => any) | undefined;
2744
+ onCodeShow?: ((random: string, url: string) => any) | undefined;
2745
+ onCodeLoaded?: ((random: string, url: string) => any) | undefined;
2746
+ onCodeLoadFailed?: ((message: string) => any) | undefined;
2747
+ onCodeDestroyed?: ((random: string) => any) | undefined;
2748
+ onRetry?: (() => any) | undefined;
2749
+ onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
2750
+ tips?: {
2751
+ title?: string | undefined;
2752
+ scanned?: string | undefined;
2753
+ succeed?: string | undefined;
2754
+ canceled?: string | undefined;
2755
+ expired?: string | undefined;
2756
+ retry?: string | undefined;
2757
+ failed?: string | undefined;
2758
+ } | undefined;
2759
+ onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
2760
+ customData?: {
2761
+ [x: string]: any;
2762
+ } | undefined;
2763
+ context?: {
2764
+ [x: string]: any;
2765
+ } | undefined;
2766
+ withCustomData?: boolean | undefined;
2767
+ } | undefined;
2768
+ } | undefined;
2769
+
2407
2770
  }
2408
2771
  declare module '@authing/react-ui-components/components/_utils/config' {
2409
2772
  import { IG2Config } from '@authing/react-ui-components/components/Type/index';
@@ -2417,13 +2780,44 @@ declare module '@authing/react-ui-components/components/_utils/config' {
2417
2780
  }
2418
2781
  declare module '@authing/react-ui-components/components/_utils/context' {
2419
2782
  import React from 'react';
2783
+ import { GuardEvents, GuardLocalConfig, GuardModuleType } from '@authing/react-ui-components/components/index';
2420
2784
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2421
- export const createGuardContext: () => {
2422
- Context: React.Context<ApplicationConfig | undefined>;
2423
- Provider: React.Provider<ApplicationConfig | undefined>;
2424
- Consumer: React.Consumer<ApplicationConfig | undefined>;
2785
+ import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
2786
+ import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2787
+ export interface IGuardContext {
2788
+ finallyConfig: GuardLocalConfig;
2789
+ defaultMergedConfig: GuardLocalConfig;
2790
+ publicConfig: ApplicationConfig;
2791
+ httpClient: GuardHttp;
2792
+ appId: string;
2793
+ initData: any;
2794
+ currentModule: ModuleState;
2795
+ events: Partial<GuardEvents>;
2796
+ changeModule?: (moduleName: GuardModuleType, initData?: any) => Promise<void>;
2797
+ backModule?: () => void;
2798
+ isAuthFlow: boolean;
2799
+ contextLoaded: boolean;
2800
+ }
2801
+ export const createGuardXContext: () => {
2802
+ Provider: React.FC<{
2803
+ value: Partial<IGuardContext>;
2804
+ }>;
2805
+ Consumer: React.Consumer<IGuardContext>;
2806
+ };
2807
+ export const useGuardPublicConfig: () => ApplicationConfig;
2808
+ export const useGuardHttpClient: () => GuardHttp;
2809
+ export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
2810
+ export const useGuardAppId: () => string;
2811
+ export function useGuardInitData<T>(): T;
2812
+ export const useGuardCurrentModule: () => ModuleState;
2813
+ export const useGuardEvents: () => Partial<GuardEvents>;
2814
+ export const useGuardModule: () => {
2815
+ changeModule: ((moduleName: GuardModuleType, initData?: any) => Promise<void>) | undefined;
2816
+ backModule: (() => void) | undefined;
2425
2817
  };
2426
- export const usePublicConfig: () => ApplicationConfig | undefined;
2818
+ export const useGuardFinallyConfig: () => GuardLocalConfig;
2819
+ export const useGuardContextLoaded: () => boolean;
2820
+ export const useGuardIsAuthFlow: () => boolean;
2427
2821
 
2428
2822
  }
2429
2823
  declare module '@authing/react-ui-components/components/_utils/corsVerification' {
@@ -2455,29 +2849,30 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
2455
2849
  export {};
2456
2850
 
2457
2851
  }
2458
- declare module '@authing/react-ui-components/components/_utils/guradHttp' {
2459
- import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
2852
+ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
2853
+ import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
2460
2854
  import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2461
2855
  export class GuardHttp {
2462
2856
  private requestClient;
2463
2857
  private headers;
2464
2858
  private responseInterceptorMap;
2465
- constructor(baseUrl: string);
2859
+ constructor(baseUrl?: string);
2466
2860
  private getRequestClient;
2467
2861
  setUserpoolId(userpoolId: string): this;
2468
2862
  setAppId(appId: string): this;
2469
2863
  setTenantId(tenantId: string): this;
2470
2864
  setBaseUrl(baseUrl: string): this;
2471
2865
  getHeaders: () => Record<string, string>;
2472
- get: <T>(path: string, query?: Record<string, any>, config?: RequestInit | undefined) => Promise<AuthingResponse<any>>;
2473
- post: <T>(path: string, data: any, config?: {
2866
+ get: <T = any>(path: string, query?: Record<string, any>, config?: RequestInit | undefined) => Promise<AuthingGuardResponse<T>>;
2867
+ post: <T = any>(path: string, data: any, config?: {
2474
2868
  headers: any;
2475
- } | undefined) => Promise<AuthingResponse<any>>;
2476
- postForm: <T>(path: string, formData: any, config?: {
2869
+ } | undefined) => Promise<AuthingGuardResponse<T>>;
2870
+ postForm: <T = any>(path: string, formData: any, config?: {
2477
2871
  headers: any;
2478
- } | undefined) => Promise<AuthingResponse<any>>;
2479
- initErrorCodeInterceptor: (callBack: (code: CodeAction, res: AuthingResponse) => void) => this | undefined;
2480
- private responseIntercept;
2872
+ } | undefined) => Promise<AuthingGuardResponse<T>>;
2873
+ authFlow: <T = any>(action: string, data?: any) => Promise<AuthingGuardResponse<T>>;
2874
+ initErrorCodeInterceptor: (callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => this | undefined;
2875
+ responseIntercept: (res: AuthingResponse) => AuthingGuardResponse;
2481
2876
  }
2482
2877
  export const initGuardHttp: (baseUrl: string) => GuardHttp;
2483
2878
  export const getGuardHttp: () => GuardHttp;
@@ -2486,7 +2881,8 @@ declare module '@authing/react-ui-components/components/_utils/guradHttp' {
2486
2881
  }
2487
2882
  declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2488
2883
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
2489
- import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
2884
+ import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2885
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
2490
2886
  export interface PhoneValidResult {
2491
2887
  isValid: boolean;
2492
2888
  phoneNumber: string;
@@ -2512,10 +2908,7 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2512
2908
  * @returns
2513
2909
  */
2514
2910
  export const parsePhone: (isInternationSms: boolean, fieldValue: string, areaCode?: string) => {
2515
- phoneNumber: string;
2516
- countryCode: undefined;
2517
- } | {
2518
- countryCode: string;
2911
+ countryCode: string | undefined;
2519
2912
  phoneNumber: string;
2520
2913
  };
2521
2914
  /**
@@ -2523,10 +2916,14 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2523
2916
  * @param config
2524
2917
  * @returns[socialConnectionObjs 社交身份源连接对象 enterpriseConnectionObjs 企业身份源连接对象 isNoMethod 是否没有身份源 ]
2525
2918
  */
2526
- export const useMethod: (config: LoginConfig) => any;
2919
+ export const useMethod: (params: {
2920
+ config: GuardLocalConfig;
2921
+ publicConfig: ApplicationConfig;
2922
+ }) => any;
2527
2923
 
2528
2924
  }
2529
2925
  declare module '@authing/react-ui-components/components/_utils/http' {
2926
+ import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2530
2927
  export const requestClient: {
2531
2928
  (input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
2532
2929
  get<T>(path: string, query?: Record<string, any>, init?: RequestInit | undefined): Promise<AuthingResponse<T>>;
@@ -2553,6 +2950,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
2553
2950
  messages?: string;
2554
2951
  message?: string;
2555
2952
  }
2953
+ export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
2954
+ onGuardHandling?: () => CodeAction;
2955
+ isFlowEnd?: boolean;
2956
+ }
2556
2957
 
2557
2958
  }
2558
2959
  declare module '@authing/react-ui-components/components/_utils/index' {
@@ -2596,8 +2997,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
2596
2997
  key: string;
2597
2998
  value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
2598
2999
  }[];
2599
- export const isWechatBrowser: () => boolean | null;
2600
- export const isLarkBrowser: () => boolean | null;
3000
+ export const isWeChatBrowser: () => boolean;
3001
+ export const isLarkBrowser: () => boolean;
2601
3002
  export const assembledAppHost: (identifier: string, host: string) => string;
2602
3003
  export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
2603
3004
  export enum PasswordStrength {
@@ -2644,6 +3045,32 @@ declare module '@authing/react-ui-components/components/_utils/locales/zh/index'
2644
3045
  import map from '@authing/react-ui-components/components/_utils/locales/zh/map/index';
2645
3046
  export { common, login, user, map };
2646
3047
 
3048
+ }
3049
+ declare module '@authing/react-ui-components/components/_utils/logger/index' {
3050
+ import { LoggerType } from '@authing/react-ui-components/components/_utils/logger/interface';
3051
+ export class Logger {
3052
+ static printType: LoggerType[];
3053
+ /**
3054
+ * 打印日志
3055
+ * @param message 日志信息
3056
+ * @param type 日志类型
3057
+ */
3058
+ static log(message: string, type?: LoggerType): void;
3059
+ static info(message: string): void;
3060
+ static warn(message: string): void;
3061
+ static error(message: string): void;
3062
+ }
3063
+ export const getLogger: () => Logger;
3064
+ export const useLogger: () => Logger;
3065
+
3066
+ }
3067
+ declare module '@authing/react-ui-components/components/_utils/logger/interface' {
3068
+ export enum LoggerType {
3069
+ INFO = "INFO",
3070
+ WARN = "WARN",
3071
+ ERROR = "ERROR"
3072
+ }
3073
+
2647
3074
  }
2648
3075
  declare module '@authing/react-ui-components/components/_utils/popupCenter' {
2649
3076
  /**
@@ -2658,20 +3085,29 @@ declare module '@authing/react-ui-components/components/_utils/popupCenter' {
2658
3085
 
2659
3086
  }
2660
3087
  declare module '@authing/react-ui-components/components/_utils/responseManagement/index' {
2661
- import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
3088
+ import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
2662
3089
  import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2663
- export const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => void) => AuthingResponse<any>;
3090
+ export const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => AuthingResponse<any>;
2664
3091
 
2665
3092
  }
2666
3093
  declare module '@authing/react-ui-components/components/_utils/responseManagement/interface' {
2667
3094
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
2668
3095
  export enum CodeAction {
2669
3096
  CHANGE_MODULE = "changeModule",
2670
- RENDER_MESSAGE = "renderMessage"
3097
+ RENDER_MESSAGE = "renderMessage",
3098
+ FLOW_END = "flowEnd"
2671
3099
  }
2672
3100
  export enum ApiCode {
2673
- IDENTITY_BINDING_ASK = "1641",
2674
- IDENTITY_BINDING = "1640"
3101
+ IDENTITY_BINDING_ASK = 1641,
3102
+ IDENTITY_BINDING = 1640,
3103
+ APP_MFA = 1636,
3104
+ MFA = 1635,
3105
+ ABORT_FLOW = 1699,
3106
+ COMPLETE_INFO = 1642,
3107
+ FLOW_END = 1600,
3108
+ FIRST_LOGIN_PASSWORD = 1639,
3109
+ FORCED_PASSWORD_RESET = 2058,
3110
+ ACCOUNT_MERGE = 10000
2675
3111
  }
2676
3112
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
2677
3113
 
@@ -2752,10 +3188,12 @@ declare module '@authing/react-ui-components/components/context/module/context'
2752
3188
  }
2753
3189
  declare module '@authing/react-ui-components/components/index' {
2754
3190
  export * from '@authing/react-ui-components/components/_utils/config';
3191
+ export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2755
3192
  export type { AuthenticationClientOptions } from 'authing-js-sdk';
2756
3193
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
2757
3194
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
2758
3195
  export * from '@authing/react-ui-components/components/AuthingGuard/index';
3196
+ export * from '@authing/react-ui-components/components/SingleComponent/index';
2759
3197
  export * from '@authing/react-ui-components/components/Guard/index';
2760
3198
  export * from '@authing/react-ui-components/components/Type/index';
2761
3199
  export * from '@authing/react-ui-components/components/version/index';
@@ -2767,7 +3205,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2767
3205
 
2768
3206
  }
2769
3207
  declare module '@authing/react-ui-components/components/version/version' {
2770
- const _default: "3.0.33";
3208
+ const _default: "3.1.0-hep.1";
2771
3209
  export default _default;
2772
3210
 
2773
3211
  }
@@ -2813,7 +3251,7 @@ declare module '@authing/react-ui-components/config/jest/fileTransform' {
2813
3251
 
2814
3252
  }
2815
3253
  declare module '@authing/react-ui-components/config/modules' {
2816
- export const additionalModulePaths: string[] | "" | null;
3254
+ export const additionalModulePaths: "" | string[] | null;
2817
3255
  export const hasTsConfig: boolean;
2818
3256
  export const webpackAliases: {
2819
3257
  src?: undefined;