23 lines
734 B
TypeScript
23 lines
734 B
TypeScript
import z, { ZodObject } from "zod";
|
|
export declare function createSchema(appData: ZodObject): {
|
|
identification: {
|
|
request: z.ZodObject<{
|
|
app_identifier: z.ZodString;
|
|
app_session_id: z.ZodNumber;
|
|
app_public_key: z.ZodString;
|
|
user_id: z.ZodNumber;
|
|
}, z.core.$strip>;
|
|
response: z.ZodObject<{
|
|
challenge: z.ZodBase64;
|
|
public_key: z.ZodBase64;
|
|
}, z.core.$strip>;
|
|
};
|
|
challenge_response: {
|
|
request: z.ZodObject<{
|
|
challenge: z.ZodBase64;
|
|
}, z.core.$strip>;
|
|
response: z.ZodObject<{
|
|
app_data: z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
};
|
|
};
|