auth/invite_schema.ts

Invite types and client-safe schemas.

Defines the runtime types for the invite system: invite creation, matching, and claiming.

view source

Declarations
#

4 declarations

CreateInviteInput
#

auth/invite_schema.ts view source

CreateInviteInput import type {CreateInviteInput} from '@fuzdev/fuz_app/auth/invite_schema.js';

Input for creating an invite.

email?

type Email | null

username?

type Username | null

created_by

type Uuid | null

Invite
#

auth/invite_schema.ts view source

Invite import type {Invite} from '@fuzdev/fuz_app/auth/invite_schema.js';

Invite row from the database.

id

type Uuid

email

type Email | null

username

type Username | null

claimed_by

type Uuid | null

claimed_at

type string | null

created_at

type string

created_by

type Uuid | null

InviteJson
#

auth/invite_schema.ts view source

ZodObject<{ id: $ZodBranded<ZodUUID, "Uuid", "out">; email: ZodNullable<ZodString>; username: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>; claimed_by: ZodNullable<...>; claimed_at: ZodNullable<...>; created_at: ZodString; created_by: ZodNullable<...>; }, $strict> import type {InviteJson} from '@fuzdev/fuz_app/auth/invite_schema.js';

Zod schema for client-safe invite data.

InviteWithUsernamesJson
#

auth/invite_schema.ts view source

ZodObject<{ id: $ZodBranded<ZodUUID, "Uuid", "out">; email: ZodNullable<ZodString>; username: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>; ... 5 more ...; claimed_by_username: ZodNullable<...>; }, $strict> import type {InviteWithUsernamesJson} from '@fuzdev/fuz_app/auth/invite_schema.js';

Zod schema for invite data with resolved creator/claimer usernames.

Depends on
#

Imported by
#