@fluido/dreno-core
Advanced tools
Comparing version 0.2.16-alpha to 0.3.1-alpha
@@ -33,4 +33,30 @@ import type { UserData, UserSignInMetadata } from './schemas'; | ||
getUserSignInMetadata(identity: string): Promise<UserSignInMetadata | null>; | ||
genVolatileHash(identity: string): Promise<GeneratedVolatileHash | null>; | ||
signInWithVolatileHash(args: { | ||
hash: string; | ||
number: number; | ||
}): Promise<[string, string][] | null>; | ||
genVolatilePin(identity: string): Promise<GeneratedVolatilePin | null>; | ||
signInWithVolatilePin(args: { | ||
identity: string; | ||
pin: number; | ||
}): Promise<[string, string][] | null>; | ||
}>; | ||
export type DrenoClient = Awaited<ReturnType<typeof createDrenoClient>>; | ||
export type GeneratedVolatileHash = { | ||
hash: string; | ||
targetOption: number; | ||
options: number[]; | ||
identities: { | ||
type: string; | ||
value: string; | ||
}[]; | ||
}; | ||
export type GeneratedVolatilePin = { | ||
pin: number; | ||
identities: { | ||
type: string; | ||
value: string; | ||
}[]; | ||
}; | ||
export {}; |
@@ -148,2 +148,3 @@ import { type Output } from 'valibot'; | ||
number: import("valibot").NumberSchema<number>; | ||
numbers: import("valibot").ArraySchema<import("valibot").NumberSchema<number>, number[]>; | ||
ttl: import("valibot").DateSchema<Date>; | ||
@@ -157,5 +158,20 @@ createdAt: import("valibot").DateSchema<Date>; | ||
hash: string; | ||
numbers: number[]; | ||
ttl: Date; | ||
}>; | ||
export type VolatileHashData = Output<typeof VolatileHashSchema>; | ||
export declare const VolatilePinSchema: import("valibot").ObjectSchema<{ | ||
id: import("valibot").StringSchema<string>; | ||
uid: import("valibot").StringSchema<string>; | ||
pin: import("valibot").NumberSchema<number>; | ||
ttl: import("valibot").DateSchema<Date>; | ||
createdAt: import("valibot").DateSchema<Date>; | ||
}, { | ||
id: string; | ||
uid: string; | ||
createdAt: Date; | ||
ttl: Date; | ||
pin: number; | ||
}>; | ||
export type VolatilePinData = Output<typeof VolatilePinSchema>; | ||
export declare const UserMetadataTypeSchema: import("valibot").EnumSchema<["public", "private", "editable"], "private" | "public" | "editable">; | ||
@@ -162,0 +178,0 @@ export type UserMetadataType = Output<typeof UserMetadataTypeSchema>; |
{ | ||
"name": "@fluido/dreno-core", | ||
"version": "0.2.16-alpha", | ||
"version": "0.3.1-alpha", | ||
"description": "Dreno library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53208
1476
20