@authing/react-ui-components 3.1.25-rc.2 → 3.1.25-rc.5
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 +27 -894
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +0 -9
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -451,6 +451,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
451
451
|
description?: string;
|
|
452
452
|
redirectUris: string[];
|
|
453
453
|
registerDisabled: boolean;
|
|
454
|
+
mergeAdAndAccountPasswordLogin: boolean;
|
|
454
455
|
registerTabs: {
|
|
455
456
|
list: string[];
|
|
456
457
|
default: string;
|
|
@@ -1100,33 +1101,6 @@ declare module '@authing/react-ui-components/components/Back/index' {
|
|
|
1100
1101
|
}
|
|
1101
1102
|
export const BackCustom: React.FC<BackCustomProps>;
|
|
1102
1103
|
|
|
1103
|
-
}
|
|
1104
|
-
declare module '@authing/react-ui-components/components/BindTotp/api/constant' {
|
|
1105
|
-
export const mfaAuthenticatorUrl: () => string;
|
|
1106
|
-
export const mfaTotpAssociateUrl: () => string;
|
|
1107
|
-
|
|
1108
|
-
}
|
|
1109
|
-
declare module '@authing/react-ui-components/components/BindTotp/api/index' {
|
|
1110
|
-
import { AxiosRequestConfig } from 'axios';
|
|
1111
|
-
export { authFlowByAxios } from 'service/api';
|
|
1112
|
-
/**
|
|
1113
|
-
* 验证是否已登陆
|
|
1114
|
-
* @param data
|
|
1115
|
-
* @param config
|
|
1116
|
-
*/
|
|
1117
|
-
export const mfaTotpAuthenticatorByAxios: (params: {
|
|
1118
|
-
source: string;
|
|
1119
|
-
}, config: AxiosRequestConfig) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1120
|
-
/**
|
|
1121
|
-
* 已登陆 totp 拉取二维码、Secret 信息
|
|
1122
|
-
* @param data
|
|
1123
|
-
* @param config
|
|
1124
|
-
* @returns
|
|
1125
|
-
*/
|
|
1126
|
-
export const mfaTotpAssociateByAxios: (data: {
|
|
1127
|
-
source: string;
|
|
1128
|
-
}, config: AxiosRequestConfig) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1129
|
-
|
|
1130
1104
|
}
|
|
1131
1105
|
declare module '@authing/react-ui-components/components/BindTotp/businessRequest' {
|
|
1132
1106
|
export enum BindTotpBusinessAction {
|
|
@@ -1189,24 +1163,8 @@ declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
|
|
|
1189
1163
|
/// <reference types="react" />
|
|
1190
1164
|
export const ChangeLanguage: (props: any) => JSX.Element | null;
|
|
1191
1165
|
|
|
1192
|
-
}
|
|
1193
|
-
declare module '@authing/react-ui-components/components/ChangePassword/api/constant' {
|
|
1194
|
-
export const registerEmailCodeUrl: () => string;
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1197
|
-
declare module '@authing/react-ui-components/components/ChangePassword/api/index' {
|
|
1198
|
-
import { AxiosRequestConfig } from 'axios';
|
|
1199
|
-
export { authFlowByAxios } from 'service/api';
|
|
1200
|
-
/**
|
|
1201
|
-
* 邮箱注册时,补全密码接口
|
|
1202
|
-
* @param data any 后期补充 interface,这数据我不知道格式
|
|
1203
|
-
* @param config
|
|
1204
|
-
*/
|
|
1205
|
-
export const registerEmailCodeByAxios: (data: any, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1206
|
-
|
|
1207
1166
|
}
|
|
1208
1167
|
declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
|
|
1209
|
-
import { AxiosRequestConfig } from 'axios';
|
|
1210
1168
|
export enum ChangePasswordBusinessAction {
|
|
1211
1169
|
ResetPassword = "reset-password-first-time",
|
|
1212
1170
|
FirstLoginReset = "reset-password-forced"
|
|
@@ -1214,17 +1172,11 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
|
|
|
1214
1172
|
export const authFlow: (action: ChangePasswordBusinessAction, content: {
|
|
1215
1173
|
password: string;
|
|
1216
1174
|
oldPassword?: string;
|
|
1217
|
-
}
|
|
1175
|
+
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1218
1176
|
|
|
1219
1177
|
}
|
|
1220
1178
|
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1221
1179
|
import React from 'react';
|
|
1222
|
-
/**
|
|
1223
|
-
* 注册补全密码
|
|
1224
|
-
* 进入流程:
|
|
1225
|
-
* 1. 控制台登陆方式 短信验证码 && 手机号密码
|
|
1226
|
-
* 2. 注册方式 短信验证码
|
|
1227
|
-
*/
|
|
1228
1180
|
export const CompletePassword: React.FC;
|
|
1229
1181
|
|
|
1230
1182
|
}
|
|
@@ -1253,41 +1205,20 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1253
1205
|
title: string;
|
|
1254
1206
|
explain: string;
|
|
1255
1207
|
}>;
|
|
1256
|
-
/**
|
|
1257
|
-
* 首次登陆重制密码
|
|
1258
|
-
* @returns
|
|
1259
|
-
*/
|
|
1260
1208
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1261
|
-
/**
|
|
1262
|
-
* 登陆安全策略 密码轮换
|
|
1263
|
-
* @returns
|
|
1264
|
-
*/
|
|
1265
1209
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1266
|
-
/**
|
|
1267
|
-
* 提示修改密码
|
|
1268
|
-
* @returns
|
|
1269
|
-
*/
|
|
1270
1210
|
export const GuardNoticePasswordResetView: React.FC;
|
|
1271
|
-
/**
|
|
1272
|
-
* 注册密码补全
|
|
1273
|
-
* @returns
|
|
1274
|
-
*/
|
|
1275
1211
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1276
1212
|
|
|
1277
|
-
}
|
|
1278
|
-
declare module '@authing/react-ui-components/components/CompleteInfo/api/index' {
|
|
1279
|
-
export { authFlowByAxios, getCountryLists, validateAccountByAxios, validateEmailCodeByAxios, validatePhoneCodeByAxios, } from 'service/api';
|
|
1280
|
-
|
|
1281
1213
|
}
|
|
1282
1214
|
declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
|
|
1283
1215
|
import { User } from 'authing-js-sdk';
|
|
1284
|
-
import { AxiosRequestConfig } from 'axios';
|
|
1285
1216
|
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1286
1217
|
export enum CompleteInfoAuthFlowAction {
|
|
1287
1218
|
Complete = "complete-completion",
|
|
1288
1219
|
Skip = "skip-completion"
|
|
1289
1220
|
}
|
|
1290
|
-
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined
|
|
1221
|
+
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1291
1222
|
export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
|
|
1292
1223
|
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
1293
1224
|
|
|
@@ -1303,11 +1234,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/core/comple
|
|
|
1303
1234
|
key: string;
|
|
1304
1235
|
options: any;
|
|
1305
1236
|
}
|
|
1306
|
-
/**
|
|
1307
|
-
* 信息补全
|
|
1308
|
-
* @param props
|
|
1309
|
-
* @returns
|
|
1310
|
-
*/
|
|
1311
1237
|
export const CompleteInfo: React.FC<CompleteInfoProps>;
|
|
1312
1238
|
|
|
1313
1239
|
}
|
|
@@ -1316,23 +1242,12 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1316
1242
|
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1317
1243
|
import './styles.less';
|
|
1318
1244
|
import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/components/CompleteInfo/businessRequest';
|
|
1319
|
-
/**
|
|
1320
|
-
* 登录时信息补全
|
|
1321
|
-
* @param param0
|
|
1322
|
-
* @returns
|
|
1323
|
-
*/
|
|
1324
1245
|
export const GuardCompleteInfo: React.FC<{
|
|
1325
1246
|
metaData: CompleteInfoMetaData[];
|
|
1326
1247
|
skipComplateFileds: boolean;
|
|
1327
1248
|
businessRequest: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<void>;
|
|
1328
1249
|
}>;
|
|
1329
|
-
/**
|
|
1330
|
-
* 登录信息补全
|
|
1331
|
-
*/
|
|
1332
1250
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1333
|
-
/**
|
|
1334
|
-
* 注册信息补全
|
|
1335
|
-
*/
|
|
1336
1251
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1337
1252
|
|
|
1338
1253
|
}
|
|
@@ -1524,9 +1439,6 @@ declare module '@authing/react-ui-components/components/ForgetPassword/core/rese
|
|
|
1524
1439
|
}
|
|
1525
1440
|
declare module '@authing/react-ui-components/components/ForgetPassword/index' {
|
|
1526
1441
|
import React from 'react';
|
|
1527
|
-
/**
|
|
1528
|
-
* 忘记密码
|
|
1529
|
-
*/
|
|
1530
1442
|
export const GuardForgetPassword: React.FC;
|
|
1531
1443
|
|
|
1532
1444
|
}
|
|
@@ -1604,27 +1516,6 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1604
1516
|
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1605
1517
|
export const useGuardStateMachine: () => GuardStateMachine;
|
|
1606
1518
|
|
|
1607
|
-
}
|
|
1608
|
-
declare module '@authing/react-ui-components/components/Guard/api/constant' {
|
|
1609
|
-
export const publishConfig: (appId: string) => string;
|
|
1610
|
-
export const pageConfig: (appId: string) => string;
|
|
1611
|
-
|
|
1612
|
-
}
|
|
1613
|
-
declare module '@authing/react-ui-components/components/Guard/api/index' {
|
|
1614
|
-
import { AxiosRequestConfig } from 'axios';
|
|
1615
|
-
/**
|
|
1616
|
-
* 获取应用配置信息
|
|
1617
|
-
* @param appId 当前应用配置信息
|
|
1618
|
-
* @returns
|
|
1619
|
-
*/
|
|
1620
|
-
export const getPublishConfigByAxios: <T>(appId: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
1621
|
-
/**
|
|
1622
|
-
* 获取页面配置
|
|
1623
|
-
* @param appId 当前应用配置信息
|
|
1624
|
-
* @returns
|
|
1625
|
-
*/
|
|
1626
|
-
export const getPageConfigByAxios: <T>(appId: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
1627
|
-
|
|
1628
1519
|
}
|
|
1629
1520
|
declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
1630
1521
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
@@ -1672,93 +1563,6 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1672
1563
|
}
|
|
1673
1564
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1674
1565
|
|
|
1675
|
-
}
|
|
1676
|
-
declare module '@authing/react-ui-components/components/Guard/core/componentsMapping' {
|
|
1677
|
-
import React from 'react';
|
|
1678
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
1679
|
-
/**
|
|
1680
|
-
* 组件映射表
|
|
1681
|
-
* TODO: 斟酌下是否和上层 module.ts 放在一起的单个文件夹中 感觉可放可不放
|
|
1682
|
-
*/
|
|
1683
|
-
const ComponentsMapping: Record<GuardModuleType, (key: string) => React.ReactNode>;
|
|
1684
|
-
export default ComponentsMapping;
|
|
1685
|
-
|
|
1686
|
-
}
|
|
1687
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useBusinessRequest' {
|
|
1688
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1689
|
-
import { GuardLocalConfig } from 'components/Guard/config';
|
|
1690
|
-
import { GuardEvents } from 'components/Guard/event';
|
|
1691
|
-
export default function useBusinessRequestByAxios(appId?: string, events?: GuardEvents, tenantId?: string, sdkClient?: AuthenticationClient, defaultConfig?: GuardLocalConfig): {
|
|
1692
|
-
axiosClient: boolean | undefined;
|
|
1693
|
-
};
|
|
1694
|
-
|
|
1695
|
-
}
|
|
1696
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useCss' {
|
|
1697
|
-
/**
|
|
1698
|
-
* 自定义 CSS 相关,finallyConfig 类型待补充
|
|
1699
|
-
* @param finallyConfig
|
|
1700
|
-
*/
|
|
1701
|
-
export default function useCss(finallyConfig: any): void;
|
|
1702
|
-
|
|
1703
|
-
}
|
|
1704
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useEvents' {
|
|
1705
|
-
/// <reference types="react" />
|
|
1706
|
-
import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
|
|
1707
|
-
import { GuardProps } from '@authing/react-ui-components/components/Guard/Guard';
|
|
1708
|
-
/**
|
|
1709
|
-
* 初始化事件
|
|
1710
|
-
* @param guardProps
|
|
1711
|
-
* @param openEventsMapping
|
|
1712
|
-
* @returns
|
|
1713
|
-
*/
|
|
1714
|
-
export default function useEvents(guardProps: GuardProps, openEventsMapping?: boolean): {
|
|
1715
|
-
events: GuardEvents | undefined;
|
|
1716
|
-
setEvents: import("react").Dispatch<import("react").SetStateAction<GuardEvents | undefined>>;
|
|
1717
|
-
initEvents: () => void;
|
|
1718
|
-
};
|
|
1719
|
-
|
|
1720
|
-
}
|
|
1721
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useFDA' {
|
|
1722
|
-
/// <reference types="react" />
|
|
1723
|
-
import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
|
|
1724
|
-
import { GuardStateMachine, ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
1725
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
1726
|
-
import { ChangeModuleCore } from '@authing/react-ui-components/components/Guard/core/hooks/useModule';
|
|
1727
|
-
/**
|
|
1728
|
-
* 初始化 FDA ,后续 Guard 渲染全部按照 FDA API 执行
|
|
1729
|
-
* @param onChangeModule FDA 内部更新组件核心方法
|
|
1730
|
-
* @param initState 初始化状态
|
|
1731
|
-
* @returns { guardStateMachine,setGuardStateMachine }
|
|
1732
|
-
*/
|
|
1733
|
-
export default function useFDA(onChangeModule: ChangeModuleCore, initState: ModuleState, events?: GuardEvents, authFlow?: boolean): {
|
|
1734
|
-
isAuthFlow: boolean;
|
|
1735
|
-
guardStateMachine: GuardStateMachine | undefined;
|
|
1736
|
-
setGuardStateMachine: import("react").Dispatch<import("react").SetStateAction<GuardStateMachine | undefined>>;
|
|
1737
|
-
moduleEvents: {
|
|
1738
|
-
changeModule: (moduleName: GuardModuleType, initData?: any) => Promise<void>;
|
|
1739
|
-
backModule: () => void;
|
|
1740
|
-
} | undefined;
|
|
1741
|
-
};
|
|
1742
|
-
|
|
1743
|
-
}
|
|
1744
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useModule' {
|
|
1745
|
-
import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
|
|
1746
|
-
import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
1747
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
1748
|
-
export interface ChangeModuleCore {
|
|
1749
|
-
(type: GuardModuleType, initData?: any): Promise<void>;
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
|
-
* Guard 组件渲染状态
|
|
1753
|
-
* @param initializeState 初始化数据
|
|
1754
|
-
* @param events Guard 事件对象
|
|
1755
|
-
* @returns moduleState 组件当前渲染状态,onChangeModule 切换状态方法
|
|
1756
|
-
*/
|
|
1757
|
-
export default function useModule(initializeState: ModuleState, events?: GuardEvents): {
|
|
1758
|
-
moduleState: ModuleState;
|
|
1759
|
-
onChangeModule: ChangeModuleCore;
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
1566
|
}
|
|
1763
1567
|
declare module '@authing/react-ui-components/components/Guard/core/index' {
|
|
1764
1568
|
/// <reference types="react" />
|
|
@@ -1771,7 +1575,7 @@ declare module '@authing/react-ui-components/components/Guard/core/index' {
|
|
|
1771
1575
|
export const GuardCore: (props: GuardCoreProps) => JSX.Element;
|
|
1772
1576
|
|
|
1773
1577
|
}
|
|
1774
|
-
declare module '@authing/react-ui-components/components/Guard/core/renderContext
|
|
1578
|
+
declare module '@authing/react-ui-components/components/Guard/core/renderContext' {
|
|
1775
1579
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
1776
1580
|
import React from 'react';
|
|
1777
1581
|
import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
@@ -1960,21 +1764,8 @@ declare module '@authing/react-ui-components/components/IconFont/useGuardIconfon
|
|
|
1960
1764
|
declare module '@authing/react-ui-components/components/IdentityBinding/IdentityBinding' {
|
|
1961
1765
|
import React from 'react';
|
|
1962
1766
|
import './styles.less';
|
|
1963
|
-
/**
|
|
1964
|
-
* 身份源绑定 第三方登陆时
|
|
1965
|
-
* 需要身份源绑定相关 Authing 账号
|
|
1966
|
-
* @returns
|
|
1967
|
-
*/
|
|
1968
1767
|
export const GuardIdentityBindingView: React.FC;
|
|
1969
1768
|
|
|
1970
|
-
}
|
|
1971
|
-
declare module '@authing/react-ui-components/components/IdentityBinding/api/index' {
|
|
1972
|
-
export * from '@authing/react-ui-components/components/IdentityBinding/api/request';
|
|
1973
|
-
|
|
1974
|
-
}
|
|
1975
|
-
declare module '@authing/react-ui-components/components/IdentityBinding/api/request' {
|
|
1976
|
-
export { authFlowByAxios } from 'service/api';
|
|
1977
|
-
|
|
1978
1769
|
}
|
|
1979
1770
|
declare module '@authing/react-ui-components/components/IdentityBinding/businessRequest' {
|
|
1980
1771
|
export enum IdentityBindingBusinessAction {
|
|
@@ -2002,10 +1793,13 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
2002
1793
|
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
2003
1794
|
BindByEmailCode = "bind-identity-by-email-code"
|
|
2004
1795
|
}
|
|
1796
|
+
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1797
|
+
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1798
|
+
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2005
1799
|
export const useIdentityBindingBusinessRequest: () => {
|
|
2006
|
-
"phone-code": (
|
|
2007
|
-
"emial-code": (
|
|
2008
|
-
password: (
|
|
1800
|
+
"phone-code": (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1801
|
+
"emial-code": (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1802
|
+
password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2009
1803
|
};
|
|
2010
1804
|
|
|
2011
1805
|
}
|
|
@@ -2049,18 +1843,6 @@ declare module '@authing/react-ui-components/components/IdentityBindingAsk/Ident
|
|
|
2049
1843
|
import './styles.less';
|
|
2050
1844
|
export const GuardIdentityBindingAskView: React.FC;
|
|
2051
1845
|
|
|
2052
|
-
}
|
|
2053
|
-
declare module '@authing/react-ui-components/components/IdentityBindingAsk/api/index' {
|
|
2054
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2055
|
-
/**
|
|
2056
|
-
* 状态机
|
|
2057
|
-
* @param action
|
|
2058
|
-
* @param config
|
|
2059
|
-
* @returns
|
|
2060
|
-
*/
|
|
2061
|
-
const authFlow: (action: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2062
|
-
export { authFlow };
|
|
2063
|
-
|
|
2064
1846
|
}
|
|
2065
1847
|
declare module '@authing/react-ui-components/components/IdentityBindingAsk/index' {
|
|
2066
1848
|
export * from '@authing/react-ui-components/components/IdentityBindingAsk/IdentityBindingAsk';
|
|
@@ -2122,136 +1904,6 @@ declare module '@authing/react-ui-components/components/InputPassword/index' {
|
|
|
2122
1904
|
import React from 'react';
|
|
2123
1905
|
export const InputPassword: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
|
|
2124
1906
|
|
|
2125
|
-
}
|
|
2126
|
-
declare module '@authing/react-ui-components/components/Login/api/constant' {
|
|
2127
|
-
export const loginUrlByPassword: () => string;
|
|
2128
|
-
export const loginUrlByPhoneCode: () => string;
|
|
2129
|
-
export const loginUrlByEmailCode: () => string;
|
|
2130
|
-
export const loginUrlByAD: () => string;
|
|
2131
|
-
export const loginUrlByLDAP: () => string;
|
|
2132
|
-
export const preLoginUrlByOIDC: () => string;
|
|
2133
|
-
|
|
2134
|
-
}
|
|
2135
|
-
declare module '@authing/react-ui-components/components/Login/api/index' {
|
|
2136
|
-
export * from '@authing/react-ui-components/components/Login/api/request';
|
|
2137
|
-
|
|
2138
|
-
}
|
|
2139
|
-
declare module '@authing/react-ui-components/components/Login/api/request' {
|
|
2140
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2141
|
-
export interface LoginParams<T = any> {
|
|
2142
|
-
/**
|
|
2143
|
-
* 登陆自定义参数
|
|
2144
|
-
*/
|
|
2145
|
-
customData: T;
|
|
2146
|
-
/**
|
|
2147
|
-
* 是否自动注册
|
|
2148
|
-
*/
|
|
2149
|
-
autoRegister?: boolean;
|
|
2150
|
-
/**
|
|
2151
|
-
* 是否携带自定义数据
|
|
2152
|
-
*/
|
|
2153
|
-
withCustomData?: boolean;
|
|
2154
|
-
}
|
|
2155
|
-
/**
|
|
2156
|
-
* 密码登陆请求参数
|
|
2157
|
-
*/
|
|
2158
|
-
export interface LoginParamsWithPassword<T = any> extends LoginParams<T> {
|
|
2159
|
-
/**
|
|
2160
|
-
* 账号
|
|
2161
|
-
*/
|
|
2162
|
-
account: string;
|
|
2163
|
-
/**
|
|
2164
|
-
* 密码
|
|
2165
|
-
*/
|
|
2166
|
-
password: string;
|
|
2167
|
-
/**
|
|
2168
|
-
* 验证码
|
|
2169
|
-
*/
|
|
2170
|
-
captchaCode: string;
|
|
2171
|
-
}
|
|
2172
|
-
/**
|
|
2173
|
-
* 密码登陆
|
|
2174
|
-
*/
|
|
2175
|
-
export const loginRequestByAxios: <T>(data: LoginParams, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
2176
|
-
/**
|
|
2177
|
-
* 手机登陆请求参数
|
|
2178
|
-
*/
|
|
2179
|
-
export interface LoginParamsWithPhone<T = any> extends LoginParams<T> {
|
|
2180
|
-
/**
|
|
2181
|
-
* 手机号
|
|
2182
|
-
*/
|
|
2183
|
-
phone: string;
|
|
2184
|
-
/**
|
|
2185
|
-
* 验证码
|
|
2186
|
-
*/
|
|
2187
|
-
code: string;
|
|
2188
|
-
/**
|
|
2189
|
-
* 手机前位数
|
|
2190
|
-
*/
|
|
2191
|
-
phoneCountryCode?: number;
|
|
2192
|
-
}
|
|
2193
|
-
/**
|
|
2194
|
-
* 手机验证码登陆
|
|
2195
|
-
* @param data
|
|
2196
|
-
* @returns
|
|
2197
|
-
*/
|
|
2198
|
-
export const mobileLoginByAxios: (data: LoginParamsWithPhone, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2199
|
-
/**
|
|
2200
|
-
* 手机登陆请求参数
|
|
2201
|
-
*/
|
|
2202
|
-
export interface LoginParamsWithEmail<T = any> extends LoginParams<T> {
|
|
2203
|
-
/**
|
|
2204
|
-
* 邮箱号
|
|
2205
|
-
*/
|
|
2206
|
-
email: string;
|
|
2207
|
-
/**
|
|
2208
|
-
* 验证码
|
|
2209
|
-
*/
|
|
2210
|
-
code: string;
|
|
2211
|
-
}
|
|
2212
|
-
/**
|
|
2213
|
-
* 邮箱登陆
|
|
2214
|
-
* @param data
|
|
2215
|
-
* @param config
|
|
2216
|
-
* @returns
|
|
2217
|
-
*/
|
|
2218
|
-
export const emailLoginByAxios: (data: LoginParamsWithEmail, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2219
|
-
/**
|
|
2220
|
-
* AD 登陆
|
|
2221
|
-
* @param data
|
|
2222
|
-
* @returns
|
|
2223
|
-
*/
|
|
2224
|
-
export const adLoginByAxios: (data: {
|
|
2225
|
-
username: string;
|
|
2226
|
-
password: string;
|
|
2227
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2228
|
-
/**
|
|
2229
|
-
* LDAP 登陆
|
|
2230
|
-
* @param data
|
|
2231
|
-
* @returns
|
|
2232
|
-
*/
|
|
2233
|
-
export const ldapLoginByAxios: (data: {
|
|
2234
|
-
username: string;
|
|
2235
|
-
password: string;
|
|
2236
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2237
|
-
interface PreOIDCParams {
|
|
2238
|
-
state: string;
|
|
2239
|
-
protocol: string;
|
|
2240
|
-
userPoolId: string;
|
|
2241
|
-
appId: string;
|
|
2242
|
-
referer: string;
|
|
2243
|
-
connection: {
|
|
2244
|
-
providerIentifier: any;
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
/**
|
|
2248
|
-
* IDO -> OIDC 登陆前校验
|
|
2249
|
-
* @param data
|
|
2250
|
-
* @returns
|
|
2251
|
-
*/
|
|
2252
|
-
export const preLoginOIDCByAxios: (data: PreOIDCParams, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2253
|
-
export {};
|
|
2254
|
-
|
|
2255
1907
|
}
|
|
2256
1908
|
declare module '@authing/react-ui-components/components/Login/codemap' {
|
|
2257
1909
|
import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
|
|
@@ -2307,11 +1959,6 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2307
1959
|
export interface FormItemAccountProps extends FormItemProps {
|
|
2308
1960
|
passwordLoginMethods: PasswordLoginMethods[];
|
|
2309
1961
|
}
|
|
2310
|
-
/**
|
|
2311
|
-
* 根据对应的配置:邮箱/用户名/Email渲染FormItem
|
|
2312
|
-
* @param props
|
|
2313
|
-
* @returns
|
|
2314
|
-
*/
|
|
2315
1962
|
export const FormItemAccount: React.FC<FormItemAccountProps>;
|
|
2316
1963
|
|
|
2317
1964
|
}
|
|
@@ -2322,11 +1969,6 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2322
1969
|
verifyCodeUrl: string;
|
|
2323
1970
|
changeCode: () => void;
|
|
2324
1971
|
}
|
|
2325
|
-
/**
|
|
2326
|
-
* 图形验证码
|
|
2327
|
-
* @param props
|
|
2328
|
-
* @returns
|
|
2329
|
-
*/
|
|
2330
1972
|
export const GraphicVerifyCode: React.FC<GraphicVerifyCodeProps>;
|
|
2331
1973
|
|
|
2332
1974
|
}
|
|
@@ -2334,10 +1976,6 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2334
1976
|
import { InputProps } from 'antd/lib/input';
|
|
2335
1977
|
import React from 'react';
|
|
2336
1978
|
import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2337
|
-
/**
|
|
2338
|
-
* 账号输入框
|
|
2339
|
-
* 根据邮箱/手机号/密码配置自适应
|
|
2340
|
-
*/
|
|
2341
1979
|
export interface InputAccountProps extends InputProps {
|
|
2342
1980
|
passwordLoginMethods: PasswordLoginMethods[];
|
|
2343
1981
|
}
|
|
@@ -2361,12 +1999,8 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2361
1999
|
agreements: Agreement[];
|
|
2362
2000
|
loginWay?: LoginMethods;
|
|
2363
2001
|
submitButText?: string;
|
|
2002
|
+
saveIdentify?: (type: LoginMethods, identity: string) => void;
|
|
2364
2003
|
}
|
|
2365
|
-
/**
|
|
2366
|
-
* 密码登陆
|
|
2367
|
-
* @param props
|
|
2368
|
-
* @returns
|
|
2369
|
-
*/
|
|
2370
2004
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
2371
2005
|
export {};
|
|
2372
2006
|
|
|
@@ -2550,23 +2184,6 @@ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/inde
|
|
|
2550
2184
|
export const VerifyCodeInput: FC<VerifyCodeInputProps>;
|
|
2551
2185
|
export {};
|
|
2552
2186
|
|
|
2553
|
-
}
|
|
2554
|
-
declare module '@authing/react-ui-components/components/MFA/api/constant' {
|
|
2555
|
-
export const uploadFaceUrl: () => string;
|
|
2556
|
-
|
|
2557
|
-
}
|
|
2558
|
-
declare module '@authing/react-ui-components/components/MFA/api/index' {
|
|
2559
|
-
export { sendEmailCodeByAxios } from 'service/api';
|
|
2560
|
-
export * from '@authing/react-ui-components/components/MFA/api/request';
|
|
2561
|
-
|
|
2562
|
-
}
|
|
2563
|
-
declare module '@authing/react-ui-components/components/MFA/api/request' {
|
|
2564
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2565
|
-
/**
|
|
2566
|
-
* 上传绑定人脸识别的照片
|
|
2567
|
-
*/
|
|
2568
|
-
export const uploadFaceImageByAxios: <T = any>(data: FormData, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
2569
|
-
|
|
2570
2187
|
}
|
|
2571
2188
|
declare module '@authing/react-ui-components/components/MFA/businessRequest' {
|
|
2572
2189
|
export enum MfaBusinessAction {
|
|
@@ -2610,19 +2227,8 @@ declare module '@authing/react-ui-components/components/MFA/businessRequest' {
|
|
|
2610
2227
|
export const useMfaBusinessRequest: () => {
|
|
2611
2228
|
"verify-email": (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2612
2229
|
"verify-sms": (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2613
|
-
/**
|
|
2614
|
-
* Totp 状态请求
|
|
2615
|
-
* @param content
|
|
2616
|
-
* @returns
|
|
2617
|
-
*/
|
|
2618
2230
|
"verify-totp": (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2619
|
-
/**
|
|
2620
|
-
* 人脸验证
|
|
2621
|
-
*/
|
|
2622
2231
|
"verify-face": (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2623
|
-
/**
|
|
2624
|
-
* 人脸绑定
|
|
2625
|
-
*/
|
|
2626
2232
|
"associate-face": (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2627
2233
|
};
|
|
2628
2234
|
export {};
|
|
@@ -2641,11 +2247,6 @@ declare module '@authing/react-ui-components/components/MFA/core/email' {
|
|
|
2641
2247
|
onBind: (email: string) => void;
|
|
2642
2248
|
config: any;
|
|
2643
2249
|
}
|
|
2644
|
-
/**
|
|
2645
|
-
* 绑定邮箱页面
|
|
2646
|
-
* @param param0
|
|
2647
|
-
* @returns
|
|
2648
|
-
*/
|
|
2649
2250
|
export const BindMFAEmail: React.FC<BindMFAEmailProps>;
|
|
2650
2251
|
interface VerifyMFAEmailProps {
|
|
2651
2252
|
email: string;
|
|
@@ -2654,17 +2255,7 @@ declare module '@authing/react-ui-components/components/MFA/core/email' {
|
|
|
2654
2255
|
sendCodeRef: React.RefObject<HTMLButtonElement>;
|
|
2655
2256
|
codeLength: number;
|
|
2656
2257
|
}
|
|
2657
|
-
/**
|
|
2658
|
-
* 验证邮箱
|
|
2659
|
-
* @param param0
|
|
2660
|
-
* @returns
|
|
2661
|
-
*/
|
|
2662
2258
|
export const VerifyMFAEmail: React.FC<VerifyMFAEmailProps>;
|
|
2663
|
-
/**
|
|
2664
|
-
* 邮箱验证方式
|
|
2665
|
-
* @param param0
|
|
2666
|
-
* @returns
|
|
2667
|
-
*/
|
|
2668
2259
|
export const MFAEmail: React.FC<{
|
|
2669
2260
|
mfaToken: string;
|
|
2670
2261
|
email?: string;
|
|
@@ -2676,11 +2267,6 @@ declare module '@authing/react-ui-components/components/MFA/core/email' {
|
|
|
2676
2267
|
}
|
|
2677
2268
|
declare module '@authing/react-ui-components/components/MFA/core/face' {
|
|
2678
2269
|
/// <reference types="react" />
|
|
2679
|
-
/**
|
|
2680
|
-
* 面部认证
|
|
2681
|
-
* @param props
|
|
2682
|
-
* @returns
|
|
2683
|
-
*/
|
|
2684
2270
|
export const MFAFace: (props: any) => JSX.Element;
|
|
2685
2271
|
|
|
2686
2272
|
}
|
|
@@ -2692,13 +2278,7 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
|
|
|
2692
2278
|
};
|
|
2693
2279
|
};
|
|
2694
2280
|
export const FACE_SCORE = 0.65;
|
|
2695
|
-
/**
|
|
2696
|
-
* 人脸检测配置
|
|
2697
|
-
*/
|
|
2698
2281
|
export function getFaceDetectorOptions(): any;
|
|
2699
|
-
/**
|
|
2700
|
-
* 获取 facePlugin tinyFaceDetector 微型人脸探测(三种方式之一)
|
|
2701
|
-
*/
|
|
2702
2282
|
export function getCurrentFaceDetectionNet(): any;
|
|
2703
2283
|
export function isFaceDetectionModelLoaded(): boolean;
|
|
2704
2284
|
export function dataURItoBlob(base64Data: any): Blob;
|
|
@@ -2715,11 +2295,6 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
|
2715
2295
|
setAreaCode: (areaCode: string) => void;
|
|
2716
2296
|
isInternationSms: boolean;
|
|
2717
2297
|
}
|
|
2718
|
-
/**
|
|
2719
|
-
* 绑定手机号
|
|
2720
|
-
* @param param0
|
|
2721
|
-
* @returns
|
|
2722
|
-
*/
|
|
2723
2298
|
export const BindMFASms: React.FC<BindMFASmsProps>;
|
|
2724
2299
|
export interface VerifyMFASmsProps {
|
|
2725
2300
|
mfaToken: string;
|
|
@@ -2733,11 +2308,6 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
|
2733
2308
|
userPhone?: string;
|
|
2734
2309
|
}
|
|
2735
2310
|
export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
|
|
2736
|
-
/**
|
|
2737
|
-
* 手机 MFA
|
|
2738
|
-
* @param param0
|
|
2739
|
-
* @returns
|
|
2740
|
-
*/
|
|
2741
2311
|
export const MFASms: React.FC<{
|
|
2742
2312
|
mfaLogin: any;
|
|
2743
2313
|
config: MFAConfig;
|
|
@@ -2752,22 +2322,12 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
|
|
|
2752
2322
|
initData: GuardMFAInitData;
|
|
2753
2323
|
changeModule: any;
|
|
2754
2324
|
}
|
|
2755
|
-
/**
|
|
2756
|
-
* 绑定 ToTp 页面 跳转 Totp
|
|
2757
|
-
* @param param0
|
|
2758
|
-
* @returns
|
|
2759
|
-
*/
|
|
2760
2325
|
export const BindMFATotp: React.FC<BindMFATotpProps>;
|
|
2761
2326
|
export interface VerifyMFATotpProps {
|
|
2762
2327
|
mfaToken: string;
|
|
2763
2328
|
mfaLogin: any;
|
|
2764
2329
|
changeModule: any;
|
|
2765
2330
|
}
|
|
2766
|
-
/**
|
|
2767
|
-
* Totp 验证页面
|
|
2768
|
-
* @param param0
|
|
2769
|
-
* @returns
|
|
2770
|
-
*/
|
|
2771
2331
|
export const VerifyMFATotp: React.FC<VerifyMFATotpProps>;
|
|
2772
2332
|
export interface MFATotpProps {
|
|
2773
2333
|
changeModule: any;
|
|
@@ -2775,13 +2335,6 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
|
|
|
2775
2335
|
initData: GuardMFAInitData;
|
|
2776
2336
|
mfaLogin: any;
|
|
2777
2337
|
}
|
|
2778
|
-
/**
|
|
2779
|
-
* MFA Totp 页面
|
|
2780
|
-
* 开启 => 渲染 VerifyMFATotp 绑定
|
|
2781
|
-
* 不开启 => 渲染绑定页面
|
|
2782
|
-
* @param param
|
|
2783
|
-
* @returns
|
|
2784
|
-
*/
|
|
2785
2338
|
export const MFATotp: React.FC<MFATotpProps>;
|
|
2786
2339
|
|
|
2787
2340
|
}
|
|
@@ -2793,10 +2346,6 @@ declare module '@authing/react-ui-components/components/MFA/index' {
|
|
|
2793
2346
|
mfaBackState: string;
|
|
2794
2347
|
}
|
|
2795
2348
|
export const MFABackStateContext: React.Context<MFABackStateContextType | undefined>;
|
|
2796
|
-
/**
|
|
2797
|
-
* MFA 相关页面
|
|
2798
|
-
* @returns
|
|
2799
|
-
*/
|
|
2800
2349
|
export const GuardMFAView: React.FC;
|
|
2801
2350
|
export {};
|
|
2802
2351
|
|
|
@@ -2854,29 +2403,6 @@ declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
|
|
|
2854
2403
|
}
|
|
2855
2404
|
export const MFAMethods: React.FC<MFAMethodsProps>;
|
|
2856
2405
|
|
|
2857
|
-
}
|
|
2858
|
-
declare module '@authing/react-ui-components/components/NeedHelpView/api/constant' {
|
|
2859
|
-
export const feedbackUrl: () => string;
|
|
2860
|
-
|
|
2861
|
-
}
|
|
2862
|
-
declare module '@authing/react-ui-components/components/NeedHelpView/api/index' {
|
|
2863
|
-
export * from '@authing/react-ui-components/components/NeedHelpView/api/request';
|
|
2864
|
-
|
|
2865
|
-
}
|
|
2866
|
-
declare module '@authing/react-ui-components/components/NeedHelpView/api/request' {
|
|
2867
|
-
/**
|
|
2868
|
-
* 问题反馈
|
|
2869
|
-
* @param data
|
|
2870
|
-
* @returns
|
|
2871
|
-
*/
|
|
2872
|
-
export const feedbackByAxios: (data: {
|
|
2873
|
-
type: number;
|
|
2874
|
-
description: string;
|
|
2875
|
-
phone: string;
|
|
2876
|
-
images: string[];
|
|
2877
|
-
appId: string;
|
|
2878
|
-
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2879
|
-
|
|
2880
2406
|
}
|
|
2881
2407
|
declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
|
|
2882
2408
|
/// <reference types="react" />
|
|
@@ -2893,34 +2419,13 @@ declare module '@authing/react-ui-components/components/NeedHelpView/index' {
|
|
|
2893
2419
|
/// <reference types="react" />
|
|
2894
2420
|
export const GuardNeedHelpView: (props: any) => JSX.Element;
|
|
2895
2421
|
|
|
2896
|
-
}
|
|
2897
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/api/constant' {
|
|
2898
|
-
export const recoverCodeUrl: () => string;
|
|
2899
|
-
|
|
2900
|
-
}
|
|
2901
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/api/index' {
|
|
2902
|
-
export { authFlowByAxios } from 'service/api';
|
|
2903
|
-
|
|
2904
|
-
}
|
|
2905
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/api/request' {
|
|
2906
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2907
|
-
/**
|
|
2908
|
-
* 不在流程中(AuthFlow)请求恢复 Totp 请求
|
|
2909
|
-
* @param data
|
|
2910
|
-
* @param config
|
|
2911
|
-
* @returns
|
|
2912
|
-
*/
|
|
2913
|
-
export const recoverCodeByAxios: (data: {
|
|
2914
|
-
recoveryCode: string;
|
|
2915
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2916
|
-
|
|
2917
2422
|
}
|
|
2918
2423
|
declare module '@authing/react-ui-components/components/RecoveryCode/businessRequest' {
|
|
2919
2424
|
export enum TotpRecoveryCodeBusinessAction {
|
|
2920
2425
|
RecoveryTotp = "recovery-totp",
|
|
2921
2426
|
ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
|
|
2922
2427
|
}
|
|
2923
|
-
export function authFlow<T>(action: TotpRecoveryCodeBusinessAction,
|
|
2428
|
+
export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
2924
2429
|
|
|
2925
2430
|
}
|
|
2926
2431
|
declare module '@authing/react-ui-components/components/RecoveryCode/core/saveCode' {
|
|
@@ -2945,9 +2450,6 @@ declare module '@authing/react-ui-components/components/RecoveryCode/index' {
|
|
|
2945
2450
|
import React from 'react';
|
|
2946
2451
|
import './style.less';
|
|
2947
2452
|
export const RecoveryCode: React.FC;
|
|
2948
|
-
/**
|
|
2949
|
-
* authFlow 中恢复
|
|
2950
|
-
*/
|
|
2951
2453
|
export const RecoveryCodeAuthFlow: React.FC;
|
|
2952
2454
|
export const GuardRecoveryCodeView: React.FC;
|
|
2953
2455
|
|
|
@@ -2994,11 +2496,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithCode'
|
|
|
2994
2496
|
registeContext?: any;
|
|
2995
2497
|
methods: any[];
|
|
2996
2498
|
}
|
|
2997
|
-
/**
|
|
2998
|
-
* 验证码方式注册
|
|
2999
|
-
* @param param
|
|
3000
|
-
* @returns
|
|
3001
|
-
*/
|
|
3002
2499
|
export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
3003
2500
|
|
|
3004
2501
|
}
|
|
@@ -3013,11 +2510,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
3013
2510
|
agreements: Agreement[];
|
|
3014
2511
|
registeContext?: any;
|
|
3015
2512
|
}
|
|
3016
|
-
/**
|
|
3017
|
-
* 邮箱 + 密码注册 头部显示密码注册
|
|
3018
|
-
* @param param
|
|
3019
|
-
* @returns
|
|
3020
|
-
*/
|
|
3021
2513
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
3022
2514
|
|
|
3023
2515
|
}
|
|
@@ -3084,26 +2576,20 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
3084
2576
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
3085
2577
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
3086
2578
|
|
|
3087
|
-
}
|
|
3088
|
-
declare module '@authing/react-ui-components/components/SelfUnlock/api/index' {
|
|
3089
|
-
export { authFlowByAxios } from 'service/api';
|
|
3090
|
-
|
|
3091
2579
|
}
|
|
3092
2580
|
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
3093
|
-
|
|
2581
|
+
import React from 'react';
|
|
3094
2582
|
export enum InputMethodMap {
|
|
3095
2583
|
email = "email-code",
|
|
3096
2584
|
phone = "phone-code"
|
|
3097
2585
|
}
|
|
3098
|
-
export const SelfUnlock: (
|
|
2586
|
+
export const SelfUnlock: ({ identifyRef, }: {
|
|
2587
|
+
identifyRef?: React.MutableRefObject<string> | undefined;
|
|
2588
|
+
}) => JSX.Element;
|
|
3099
2589
|
|
|
3100
2590
|
}
|
|
3101
2591
|
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
3102
2592
|
import React from 'react';
|
|
3103
|
-
/**
|
|
3104
|
-
* 自助解锁
|
|
3105
|
-
* @returns
|
|
3106
|
-
*/
|
|
3107
2593
|
export const GuardUnlockView: React.FC;
|
|
3108
2594
|
|
|
3109
2595
|
}
|
|
@@ -3171,10 +2657,6 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone
|
|
|
3171
2657
|
}
|
|
3172
2658
|
export const SendCodeByPhone: FC<SendCodeByPhoneProps>;
|
|
3173
2659
|
|
|
3174
|
-
}
|
|
3175
|
-
declare module '@authing/react-ui-components/components/SendCode/api/index' {
|
|
3176
|
-
export { sendEmailCodeByAxios } from 'service/api';
|
|
3177
|
-
|
|
3178
2660
|
}
|
|
3179
2661
|
declare module '@authing/react-ui-components/components/SendCode/index' {
|
|
3180
2662
|
import { FC } from 'react';
|
|
@@ -3345,10 +2827,6 @@ declare module '@authing/react-ui-components/components/ValidatorRules/Validator
|
|
|
3345
2827
|
export const PhoneFormItem: React.FC<ValidatorFormItemProps>;
|
|
3346
2828
|
export const UserNameFormItem: React.FC<ValidatorFormItemProps>;
|
|
3347
2829
|
|
|
3348
|
-
}
|
|
3349
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/api/index' {
|
|
3350
|
-
export { validateAccountByAxios } from 'service/api';
|
|
3351
|
-
|
|
3352
2830
|
}
|
|
3353
2831
|
declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
3354
2832
|
import { FormInstance, FormItemProps } from 'antd/lib/form';
|
|
@@ -3411,32 +2889,6 @@ declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
|
|
|
3411
2889
|
ACCOUNT_LOCK = 2005
|
|
3412
2890
|
}
|
|
3413
2891
|
|
|
3414
|
-
}
|
|
3415
|
-
declare module '@authing/react-ui-components/components/_utils/actions/index' {
|
|
3416
|
-
/**
|
|
3417
|
-
* Response Action 是否为渲染信息
|
|
3418
|
-
* @param parseStatusCode
|
|
3419
|
-
* @returns
|
|
3420
|
-
*/
|
|
3421
|
-
export const isRenderMessageByStatusCode: (parseStatusCode: number) => boolean;
|
|
3422
|
-
/**
|
|
3423
|
-
* Response Action 是否为内部流程状态处理(交由业务处理)
|
|
3424
|
-
* @param parseStatusCode
|
|
3425
|
-
* @param apiCode
|
|
3426
|
-
*/
|
|
3427
|
-
export const isFlowBusinessByStatusCode: (parseStatusCode: number) => boolean;
|
|
3428
|
-
/**
|
|
3429
|
-
* Response Action 是否为流程结束
|
|
3430
|
-
* @param parseStatusCode
|
|
3431
|
-
* @param apiCode
|
|
3432
|
-
*/
|
|
3433
|
-
export const isFlowEndByStatusCode: (parseStatusCode: number, apiCode: number) => boolean;
|
|
3434
|
-
/**
|
|
3435
|
-
* Response Action 是否为下个流程
|
|
3436
|
-
* @param parseStatusCode
|
|
3437
|
-
*/
|
|
3438
|
-
export const isNextFlowByStatusCode: (parseStatusCode: number, apiCode: number) => boolean;
|
|
3439
|
-
|
|
3440
2892
|
}
|
|
3441
2893
|
declare module '@authing/react-ui-components/components/_utils/appendConfig' {
|
|
3442
2894
|
import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
|
|
@@ -3459,14 +2911,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
3459
2911
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
3460
2912
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
3461
2913
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
3462
|
-
/**
|
|
3463
|
-
*
|
|
3464
|
-
* @param appId
|
|
3465
|
-
* @param config 默认配置
|
|
3466
|
-
* @param httpClient
|
|
3467
|
-
* @param setError
|
|
3468
|
-
* @returns 合并后的 finallyConfig
|
|
3469
|
-
*/
|
|
3470
2914
|
export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
3471
2915
|
host: string;
|
|
3472
2916
|
isSSO?: boolean | undefined;
|
|
@@ -3551,8 +2995,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
3551
2995
|
} | undefined;
|
|
3552
2996
|
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
3553
2997
|
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
3554
|
-
export const requestGuardPageConfig: (appId: string,
|
|
3555
|
-
export const useGuardPageConfig: (appId?: string | undefined,
|
|
2998
|
+
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2999
|
+
export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
3556
3000
|
|
|
3557
3001
|
}
|
|
3558
3002
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
@@ -3686,7 +3130,7 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
|
|
|
3686
3130
|
setTenantId(tenantId: string): this;
|
|
3687
3131
|
setBaseUrl(baseUrl: string): this;
|
|
3688
3132
|
getHeaders: () => Record<string, string>;
|
|
3689
|
-
get: <T = any>(path: string, query?: Record<string, any>, config?:
|
|
3133
|
+
get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
|
|
3690
3134
|
post: <T = any>(path: string, data: any, config?: {
|
|
3691
3135
|
headers: any;
|
|
3692
3136
|
} | undefined) => Promise<AuthingGuardResponse<T>>;
|
|
@@ -3733,6 +3177,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3733
3177
|
countryCode: string | undefined;
|
|
3734
3178
|
phoneNumber: string;
|
|
3735
3179
|
};
|
|
3180
|
+
export enum SocialConnectionEvent {
|
|
3181
|
+
Message = "message",
|
|
3182
|
+
Auth = "auth"
|
|
3183
|
+
}
|
|
3736
3184
|
/**
|
|
3737
3185
|
*
|
|
3738
3186
|
* @param config
|
|
@@ -3743,304 +3191,13 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3743
3191
|
publicConfig: ApplicationConfig;
|
|
3744
3192
|
}) => any;
|
|
3745
3193
|
|
|
3746
|
-
}
|
|
3747
|
-
declare module '@authing/react-ui-components/components/_utils/http/api/constant' {
|
|
3748
|
-
export const authFlowUrl: () => string;
|
|
3749
|
-
export const VerifyEmailUrl: () => string;
|
|
3750
|
-
export const validateAccountUrl: () => string;
|
|
3751
|
-
export const countryListsUrl: () => string;
|
|
3752
|
-
export const validatePhoneCodeUrl: () => string;
|
|
3753
|
-
export const validateEmailCodeUrl: () => string;
|
|
3754
|
-
|
|
3755
|
-
}
|
|
3756
|
-
declare module '@authing/react-ui-components/components/_utils/http/api/index' {
|
|
3757
|
-
export * from '@authing/react-ui-components/components/_utils/http/api/request';
|
|
3758
|
-
|
|
3759
|
-
}
|
|
3760
|
-
declare module '@authing/react-ui-components/components/_utils/http/api/request' {
|
|
3761
|
-
import { AxiosRequestConfig } from 'axios';
|
|
3762
|
-
import { EmailScene } from 'components/Type';
|
|
3763
|
-
/**
|
|
3764
|
-
* AuthFlow 相关请求
|
|
3765
|
-
* @param data
|
|
3766
|
-
*/
|
|
3767
|
-
export const authFlowByAxios: <A = string, T = any>(data: {
|
|
3768
|
-
action: A;
|
|
3769
|
-
data?: any;
|
|
3770
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
3771
|
-
/**
|
|
3772
|
-
* 发送邮箱验证码
|
|
3773
|
-
* @param data
|
|
3774
|
-
*/
|
|
3775
|
-
export const sendEmailCodeByAxios: (data: {
|
|
3776
|
-
email: string;
|
|
3777
|
-
scene: EmailScene;
|
|
3778
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
3779
|
-
/**
|
|
3780
|
-
* 账号登陆前置校验
|
|
3781
|
-
*/
|
|
3782
|
-
export interface ValidateAccountParams<T = any> {
|
|
3783
|
-
/**
|
|
3784
|
-
* publicConfig.userPoolId
|
|
3785
|
-
*/
|
|
3786
|
-
userPoolId?: string;
|
|
3787
|
-
/**
|
|
3788
|
-
* 校验的输入值
|
|
3789
|
-
*/
|
|
3790
|
-
key: T;
|
|
3791
|
-
/**
|
|
3792
|
-
* 本次校验类型
|
|
3793
|
-
*/
|
|
3794
|
-
type: 'phone' | 'email' | 'username';
|
|
3795
|
-
}
|
|
3796
|
-
/**
|
|
3797
|
-
* 登陆/注册 前置,校验(用户/手机/邮箱)是否存在/用户是否不存在
|
|
3798
|
-
* @param params
|
|
3799
|
-
* @returns {Promise<boolean>} 是否通过
|
|
3800
|
-
*/
|
|
3801
|
-
export const validateAccountByAxios: <T = boolean>(params: ValidateAccountParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
3802
|
-
/**
|
|
3803
|
-
* 拉取国家列表
|
|
3804
|
-
*/
|
|
3805
|
-
export const getCountryLists: <T extends string>() => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<Record<T, {
|
|
3806
|
-
zh: {
|
|
3807
|
-
[props: string]: string;
|
|
3808
|
-
};
|
|
3809
|
-
cn: {
|
|
3810
|
-
[props: string]: string;
|
|
3811
|
-
};
|
|
3812
|
-
}>>>;
|
|
3813
|
-
/**
|
|
3814
|
-
* 验证手机号验证码是否正确
|
|
3815
|
-
*/
|
|
3816
|
-
export const validatePhoneCodeByAxios: (data: {
|
|
3817
|
-
phone: number | string;
|
|
3818
|
-
phoneCode: number | string;
|
|
3819
|
-
phoneCountryCode?: number | string;
|
|
3820
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
3821
|
-
/**
|
|
3822
|
-
* 验证邮箱验证码是否正确
|
|
3823
|
-
*/
|
|
3824
|
-
export const validateEmailCodeByAxios: (data: {
|
|
3825
|
-
email: number | string;
|
|
3826
|
-
emailCode: number | string;
|
|
3827
|
-
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
3828
|
-
|
|
3829
|
-
}
|
|
3830
|
-
declare module '@authing/react-ui-components/components/_utils/http/base/index' {
|
|
3831
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
3832
|
-
/**
|
|
3833
|
-
* 修改 baseUrl 配置
|
|
3834
|
-
*/
|
|
3835
|
-
export const setBaseUrl: (baseUrl: string) => void;
|
|
3836
|
-
export const setAuthClient: (client: AuthenticationClient) => void;
|
|
3837
|
-
/**
|
|
3838
|
-
* 设置加密公钥
|
|
3839
|
-
*/
|
|
3840
|
-
export const setPublishByEncrypt: (publishKey?: string | undefined) => void;
|
|
3841
|
-
|
|
3842
|
-
}
|
|
3843
|
-
declare module '@authing/react-ui-components/components/_utils/http/constant' {
|
|
3844
|
-
import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http/interceptors/response';
|
|
3845
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
3846
|
-
export enum CodeAction {
|
|
3847
|
-
CHANGE_MODULE = "changeModule",
|
|
3848
|
-
RENDER_MESSAGE = "renderMessage",
|
|
3849
|
-
INNER_MODULE = "innerModule",
|
|
3850
|
-
FLOW_END = "flowEnd"
|
|
3851
|
-
}
|
|
3852
|
-
export enum ApiCode {
|
|
3853
|
-
IDENTITY_BINDING_ASK = 1641,
|
|
3854
|
-
IDENTITY_BINDING = 1640,
|
|
3855
|
-
APP_MFA = 1636,
|
|
3856
|
-
MFA = 1635,
|
|
3857
|
-
ABORT_FLOW = 1699,
|
|
3858
|
-
COMPLETE_INFO = 1642,
|
|
3859
|
-
UNLOCK = 1643,
|
|
3860
|
-
FLOW_END = 1600,
|
|
3861
|
-
FIRST_LOGIN_PASSWORD = 1639,
|
|
3862
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3863
|
-
}
|
|
3864
|
-
/**
|
|
3865
|
-
* APi Code 对应的模块映射
|
|
3866
|
-
*/
|
|
3867
|
-
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3868
|
-
/**
|
|
3869
|
-
* 高阶函数 记录每次请求的 responseData
|
|
3870
|
-
* 同时根据返回的 apiCode 对应的 action 处理
|
|
3871
|
-
* @param responseData
|
|
3872
|
-
* @returns
|
|
3873
|
-
*/
|
|
3874
|
-
export const getCodeActionMapping: (responseData: AuthingResponse) => {
|
|
3875
|
-
/**
|
|
3876
|
-
* 返回的 apiCode 匹配跳转模块时
|
|
3877
|
-
* @param responseData
|
|
3878
|
-
* @returns
|
|
3879
|
-
*/
|
|
3880
|
-
changeModule: () => CodeAction;
|
|
3881
|
-
renderMessage: () => CodeAction;
|
|
3882
|
-
innerModule: () => CodeAction;
|
|
3883
|
-
flowEnd: () => CodeAction;
|
|
3884
|
-
};
|
|
3885
|
-
|
|
3886
|
-
}
|
|
3887
|
-
declare module '@authing/react-ui-components/components/_utils/http/events/index' {
|
|
3888
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3889
|
-
import { AuthingGuardResponse } from 'components/_utils/http';
|
|
3890
|
-
/**
|
|
3891
|
-
* 请求前置事件处理
|
|
3892
|
-
* @param config
|
|
3893
|
-
* @returns
|
|
3894
|
-
*/
|
|
3895
|
-
export const processBeforeRequestEvent: (config: AxiosRequestConfig) => Promise<boolean>;
|
|
3896
|
-
/**
|
|
3897
|
-
* 响应器拦截 login Events
|
|
3898
|
-
* @param response
|
|
3899
|
-
*/
|
|
3900
|
-
export const processEventsByResponse: (response: AxiosResponse<AuthingGuardResponse>) => void;
|
|
3901
|
-
|
|
3902
|
-
}
|
|
3903
|
-
declare module '@authing/react-ui-components/components/_utils/http/header/index' {
|
|
3904
|
-
/**
|
|
3905
|
-
* 设置 version
|
|
3906
|
-
* @param value
|
|
3907
|
-
* @param key
|
|
3908
|
-
*/
|
|
3909
|
-
export const setVersionByHeader: (value: string, key?: string) => void;
|
|
3910
|
-
/**
|
|
3911
|
-
* 设置 sdk version
|
|
3912
|
-
* @param value
|
|
3913
|
-
* @param key
|
|
3914
|
-
*/
|
|
3915
|
-
export const setSdkVersionByHeader: (value: string, key?: string) => void;
|
|
3916
|
-
/**
|
|
3917
|
-
* 设置 AppId
|
|
3918
|
-
* @param value
|
|
3919
|
-
* @param key
|
|
3920
|
-
*/
|
|
3921
|
-
export const setAppIdByRequestHeader: (value: string, key?: string) => void;
|
|
3922
|
-
/**
|
|
3923
|
-
* 设置 x-authing-app-tenant-id 请求头
|
|
3924
|
-
* @param value
|
|
3925
|
-
* @param key
|
|
3926
|
-
*/
|
|
3927
|
-
export const setTenantIdByRequestHeader: (value?: string | undefined, key?: string) => void;
|
|
3928
|
-
/**
|
|
3929
|
-
* 根据 publishConfig 中的 userid 设置
|
|
3930
|
-
* @param value
|
|
3931
|
-
* @param key
|
|
3932
|
-
*/
|
|
3933
|
-
export const setUserPoolIdByRequestHeader: (value: string, key?: string) => void;
|
|
3934
|
-
export const setLanguageInRequestHeader: () => void;
|
|
3935
|
-
/**
|
|
3936
|
-
* 获取当前所有 headers
|
|
3937
|
-
*/
|
|
3938
|
-
export const getHeader: () => import("axios").HeadersDefaults;
|
|
3939
|
-
/**
|
|
3940
|
-
* 修改/设置请求头
|
|
3941
|
-
* @param key
|
|
3942
|
-
* @param value
|
|
3943
|
-
*/
|
|
3944
|
-
export const _setRequestHeader: (key: string, value: string) => void;
|
|
3945
|
-
|
|
3946
|
-
}
|
|
3947
|
-
declare module '@authing/react-ui-components/components/_utils/http/index' {
|
|
3948
|
-
import instance from '@authing/react-ui-components/components/_utils/http/instance';
|
|
3949
|
-
import * as httpHeaderMethods from '@authing/react-ui-components/components/_utils/http/header/index';
|
|
3950
|
-
import * as httpEvents from '@authing/react-ui-components/components/_utils/http/events/index';
|
|
3951
|
-
import * as httpBaseConfig from '@authing/react-ui-components/components/_utils/http/base/index';
|
|
3952
|
-
import * as commonRequest from '@authing/react-ui-components/components/_utils/http/api/index';
|
|
3953
|
-
export { instance, httpHeaderMethods, httpEvents, httpBaseConfig, commonRequest, };
|
|
3954
|
-
|
|
3955
|
-
}
|
|
3956
|
-
declare module '@authing/react-ui-components/components/_utils/http/instance' {
|
|
3957
|
-
const instance: import("axios").AxiosInstance;
|
|
3958
|
-
export default instance;
|
|
3959
|
-
|
|
3960
|
-
}
|
|
3961
|
-
declare module '@authing/react-ui-components/components/_utils/http/interceptors/request' {
|
|
3962
|
-
import { AxiosInstance } from 'axios';
|
|
3963
|
-
/**
|
|
3964
|
-
* 初始化请求拦截器
|
|
3965
|
-
* @param instance
|
|
3966
|
-
*/
|
|
3967
|
-
export const initRequestInterceptors: (instance: AxiosInstance) => void;
|
|
3968
|
-
|
|
3969
|
-
}
|
|
3970
|
-
declare module '@authing/react-ui-components/components/_utils/http/interceptors/response' {
|
|
3971
|
-
import { AxiosInstance } from 'axios';
|
|
3972
|
-
export interface AuthingResponse<T = any> {
|
|
3973
|
-
/**
|
|
3974
|
-
* 错误码
|
|
3975
|
-
*/
|
|
3976
|
-
code?: number;
|
|
3977
|
-
/**
|
|
3978
|
-
* 返回状态
|
|
3979
|
-
* 3XX:状态机流转
|
|
3980
|
-
* 4XX|6XX:错误处理
|
|
3981
|
-
*/
|
|
3982
|
-
statusCode?: number;
|
|
3983
|
-
/**
|
|
3984
|
-
* statusCode 3XX 时下个阶段的 code 码
|
|
3985
|
-
*/
|
|
3986
|
-
apiCode?: number;
|
|
3987
|
-
/**
|
|
3988
|
-
* 返回的数据
|
|
3989
|
-
*/
|
|
3990
|
-
data?: T;
|
|
3991
|
-
/**
|
|
3992
|
-
*
|
|
3993
|
-
*/
|
|
3994
|
-
messages?: string;
|
|
3995
|
-
/**
|
|
3996
|
-
*
|
|
3997
|
-
*/
|
|
3998
|
-
message?: string;
|
|
3999
|
-
/**
|
|
4000
|
-
* 当前流程 ID
|
|
4001
|
-
* ResponseData 返回则更新当前流程 ID
|
|
4002
|
-
*/
|
|
4003
|
-
flowHandle?: string;
|
|
4004
|
-
/**
|
|
4005
|
-
* 响应是否为当前业务内小状态处理
|
|
4006
|
-
* statusCode === 200 下进入该状态
|
|
4007
|
-
*/
|
|
4008
|
-
isBusiness?: boolean;
|
|
4009
|
-
}
|
|
4010
|
-
/**
|
|
4011
|
-
* 初始化响应拦截器
|
|
4012
|
-
*/
|
|
4013
|
-
export const initResponseInterceptors: (instance: AxiosInstance) => void;
|
|
4014
|
-
|
|
4015
|
-
}
|
|
4016
|
-
declare module '@authing/react-ui-components/components/_utils/http/utils' {
|
|
4017
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4018
|
-
import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http/interceptors/response';
|
|
4019
|
-
/**
|
|
4020
|
-
* 根据 Response 中的 apiCode & statusCode 做拦截
|
|
4021
|
-
* @param response
|
|
4022
|
-
* @returns
|
|
4023
|
-
*/
|
|
4024
|
-
export const processCodeByResponse: (response: AxiosResponse<AuthingResponse>) => AuthingResponse<any>;
|
|
4025
|
-
/**
|
|
4026
|
-
* 处理请求加密字段
|
|
4027
|
-
* @param config
|
|
4028
|
-
* @returns
|
|
4029
|
-
*/
|
|
4030
|
-
export const processEncryptRequestKey: (config: AxiosRequestConfig) => Promise<any>;
|
|
4031
|
-
/**
|
|
4032
|
-
* 处理 flowHandler
|
|
4033
|
-
* @param response
|
|
4034
|
-
* @returns
|
|
4035
|
-
*/
|
|
4036
|
-
export const processFlowHandler: (response: AuthingResponse) => AuthingResponse<any>;
|
|
4037
|
-
|
|
4038
3194
|
}
|
|
4039
3195
|
declare module '@authing/react-ui-components/components/_utils/http' {
|
|
4040
3196
|
import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3197
|
+
import { AxiosRequestConfig } from 'axios';
|
|
4041
3198
|
export const requestClient: {
|
|
4042
3199
|
(input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
4043
|
-
get<T>(path: string, query?: Record<string, any>, init?:
|
|
3200
|
+
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig<any> | undefined): Promise<AuthingResponse<T>>;
|
|
4044
3201
|
post<T_1>(path: string, data: any, config?: {
|
|
4045
3202
|
headers: any;
|
|
4046
3203
|
} | undefined): Promise<AuthingResponse<T_1>>;
|
|
@@ -4066,25 +3223,8 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
4066
3223
|
flowHandle?: string;
|
|
4067
3224
|
}
|
|
4068
3225
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
4069
|
-
/**
|
|
4070
|
-
* 根据 Server 返回状态进行的状态流转函数
|
|
4071
|
-
* 默认响应拦截器中自动调用
|
|
4072
|
-
*/
|
|
4073
3226
|
onGuardHandling?: () => CodeAction;
|
|
4074
|
-
/**
|
|
4075
|
-
* Response 返回 actions 是否需要模块内部处理
|
|
4076
|
-
* 根据 status === 200 判断
|
|
4077
|
-
*/
|
|
4078
|
-
isBusiness?: boolean;
|
|
4079
|
-
/**
|
|
4080
|
-
* 流程是否结束(兼容老版本字段)
|
|
4081
|
-
*/
|
|
4082
3227
|
isFlowEnd?: boolean;
|
|
4083
|
-
/**
|
|
4084
|
-
* 本次响应 Action 类型
|
|
4085
|
-
* see: packages/react-components/components/_utils/responseManagement/interface.ts
|
|
4086
|
-
*/
|
|
4087
|
-
responseActionType?: CodeAction;
|
|
4088
3228
|
}
|
|
4089
3229
|
|
|
4090
3230
|
}
|
|
@@ -4176,6 +3316,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
4176
3316
|
specifyDefaultLoginMethod: LoginMethods;
|
|
4177
3317
|
lockMethod?: undefined;
|
|
4178
3318
|
} | undefined;
|
|
3319
|
+
export const getPasswordIdentify: (identity: string) => string;
|
|
4179
3320
|
|
|
4180
3321
|
}
|
|
4181
3322
|
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
@@ -4253,12 +3394,6 @@ declare module '@authing/react-ui-components/components/_utils/popupCenter' {
|
|
|
4253
3394
|
declare module '@authing/react-ui-components/components/_utils/responseManagement/index' {
|
|
4254
3395
|
import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
|
|
4255
3396
|
import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
4256
|
-
/**
|
|
4257
|
-
* 全局的错误拦截器
|
|
4258
|
-
* @param res
|
|
4259
|
-
* @param callBack
|
|
4260
|
-
* @returns
|
|
4261
|
-
*/
|
|
4262
3397
|
export const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => AuthingResponse<any>;
|
|
4263
3398
|
|
|
4264
3399
|
}
|
|
@@ -4376,7 +3511,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
4376
3511
|
|
|
4377
3512
|
}
|
|
4378
3513
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
4379
|
-
const _default: "3.1.
|
|
3514
|
+
const _default: "3.1.25-rc.5";
|
|
4380
3515
|
export default _default;
|
|
4381
3516
|
|
|
4382
3517
|
}
|
|
@@ -4505,13 +3640,11 @@ declare module '@authing/react-ui-components/config/webpack.config' {
|
|
|
4505
3640
|
modules: string[];
|
|
4506
3641
|
extensions: string[];
|
|
4507
3642
|
alias: {
|
|
4508
|
-
service: string;
|
|
4509
3643
|
src?: undefined;
|
|
4510
3644
|
'react-dom$'?: string;
|
|
4511
3645
|
'scheduler/tracing'?: string;
|
|
4512
3646
|
'react-native': string;
|
|
4513
3647
|
} | {
|
|
4514
|
-
service: string;
|
|
4515
3648
|
src: string;
|
|
4516
3649
|
'react-dom$'?: string;
|
|
4517
3650
|
'scheduler/tracing'?: string;
|