mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-31 09:13:56 +02:00
@@ -10,7 +10,12 @@ import {
|
||||
User,
|
||||
UserDetailedNotMe,
|
||||
} from './autogen/models.js';
|
||||
import type { AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
||||
import type {
|
||||
AuthenticationResponseJSON,
|
||||
RegistrationResponseJSON,
|
||||
PublicKeyCredentialCreationOptionsJSON,
|
||||
PublicKeyCredentialRequestOptionsJSON,
|
||||
} from '@simplewebauthn/browser';
|
||||
|
||||
export * from './autogen/entities.js';
|
||||
export * from './autogen/models.js';
|
||||
@@ -324,6 +329,15 @@ export type SigninWithPasskeyResponse = {
|
||||
signinResponse: SigninFlowResponse & { finished: true };
|
||||
};
|
||||
|
||||
export type I2faRegisterKeyResponse = PublicKeyCredentialCreationOptionsJSON;
|
||||
|
||||
export type I2faKeyDoneRequest = {
|
||||
password: string;
|
||||
token?: string | null;
|
||||
name: string;
|
||||
credential: RegistrationResponseJSON;
|
||||
};
|
||||
|
||||
type Values<T extends Record<PropertyKey, unknown>> = T[keyof T];
|
||||
|
||||
export type PartialRolePolicyOverride = Partial<{ [k in keyof RolePolicies]: Omit<Values<Role['policies']>, 'value'> & { value: RolePolicies[k] } }>;
|
||||
|
||||
Reference in New Issue
Block a user