@ackplus/nest-auth-contracts 1.1.57 → 1.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -166,6 +166,17 @@ interface IVerify2faResponse {
|
|
|
166
166
|
refreshToken: string;
|
|
167
167
|
message?: string;
|
|
168
168
|
trustToken?: string;
|
|
169
|
+
user?: {
|
|
170
|
+
id: string;
|
|
171
|
+
email?: string;
|
|
172
|
+
phone?: string;
|
|
173
|
+
isVerified?: boolean;
|
|
174
|
+
isMfaEnabled?: boolean;
|
|
175
|
+
roles?: string[];
|
|
176
|
+
permissions?: string[];
|
|
177
|
+
metadata?: Record<string, any>;
|
|
178
|
+
tenantId?: string;
|
|
179
|
+
};
|
|
169
180
|
}
|
|
170
181
|
interface ISendMfaCodeRequest {
|
|
171
182
|
method: NestAuthMFAMethodEnum;
|
|
@@ -193,6 +204,8 @@ interface IMfaStatusResponse {
|
|
|
193
204
|
allowMethodSelection: boolean;
|
|
194
205
|
totpDevices: IMfaDevice[];
|
|
195
206
|
hasRecoveryCode: boolean;
|
|
207
|
+
required?: boolean;
|
|
208
|
+
canToggle?: boolean;
|
|
196
209
|
}
|
|
197
210
|
interface IMfaCodeResponse {
|
|
198
211
|
code: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -166,6 +166,17 @@ interface IVerify2faResponse {
|
|
|
166
166
|
refreshToken: string;
|
|
167
167
|
message?: string;
|
|
168
168
|
trustToken?: string;
|
|
169
|
+
user?: {
|
|
170
|
+
id: string;
|
|
171
|
+
email?: string;
|
|
172
|
+
phone?: string;
|
|
173
|
+
isVerified?: boolean;
|
|
174
|
+
isMfaEnabled?: boolean;
|
|
175
|
+
roles?: string[];
|
|
176
|
+
permissions?: string[];
|
|
177
|
+
metadata?: Record<string, any>;
|
|
178
|
+
tenantId?: string;
|
|
179
|
+
};
|
|
169
180
|
}
|
|
170
181
|
interface ISendMfaCodeRequest {
|
|
171
182
|
method: NestAuthMFAMethodEnum;
|
|
@@ -193,6 +204,8 @@ interface IMfaStatusResponse {
|
|
|
193
204
|
allowMethodSelection: boolean;
|
|
194
205
|
totpDevices: IMfaDevice[];
|
|
195
206
|
hasRecoveryCode: boolean;
|
|
207
|
+
required?: boolean;
|
|
208
|
+
canToggle?: boolean;
|
|
196
209
|
}
|
|
197
210
|
interface IMfaCodeResponse {
|
|
198
211
|
code: string;
|