@fluido/dreno-core
Advanced tools
Comparing version 0.2.0-alpha-12 to 0.2.13-alpha
import type { UserData, UserSignInMetadata } from './schemas'; | ||
export interface JwtPayload { | ||
iss?: string | undefined; | ||
sub?: string | undefined; | ||
aud?: string | string[] | undefined; | ||
exp?: number | undefined; | ||
nbf?: number | undefined; | ||
iat?: number | undefined; | ||
jti?: string | undefined; | ||
} | ||
interface UserDataResult { | ||
payload: (UserData & JwtPayload) | null; | ||
expired: boolean; | ||
entries: [string, string][]; | ||
} | ||
export declare function createDrenoClient(authKey: string): Promise<{ | ||
@@ -11,17 +25,3 @@ setAuthorizationKeys(keys: Record<string, string | undefined>): void; | ||
refreshToken?: string | undefined; | ||
}): Promise<{ | ||
payload?: { | ||
id: string; | ||
createdAt: Date; | ||
name: string; | ||
status: "active" | "suspended" | "deleted" | "banished"; | ||
updatedAt: Date; | ||
lastSignInAt: Date; | ||
imageURL?: string | undefined; | ||
externalId?: string | undefined; | ||
description?: string | undefined; | ||
} | undefined; | ||
expired?: boolean | undefined; | ||
entries?: [string, string][] | undefined; | ||
}>; | ||
}): Promise<UserDataResult>; | ||
getPublicAccessKey(): Promise<any>; | ||
@@ -36,1 +36,2 @@ signInWithPassword(args: { | ||
export type DrenoClient = Awaited<ReturnType<typeof createDrenoClient>>; | ||
export {}; |
@@ -8,2 +8,3 @@ import { type Output } from 'valibot'; | ||
description: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>; | ||
mainIdentity: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>; | ||
status: import("valibot").UnionSchema<[import("valibot").EnumSchema<["active", "suspended", "deleted"], "active" | "suspended" | "deleted">, import("valibot").LiteralSchema<"banished", "banished">], "active" | "suspended" | "deleted" | "banished">; | ||
@@ -23,2 +24,3 @@ createdAt: import("valibot").DateSchema<Date>; | ||
description?: string | undefined; | ||
mainIdentity?: string | undefined; | ||
}>; | ||
@@ -25,0 +27,0 @@ export type UserData = Output<typeof UserSchema>; |
{ | ||
"name": "@fluido/dreno-core", | ||
"version": "0.2.0-alpha-12", | ||
"version": "0.2.13-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
45285
1205