auth/invite_schema.ts

Invite types and client-safe schemas.

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

Declarations
#

4 declarations

view source

CreateInviteInput
#

auth/invite_schema.ts view source

CreateInviteInput

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

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<ZodEmail>; username: ZodNullable<ZodString>; claimed_by: ZodNullable<...>; claimed_at: ZodNullable<...>; created_at: ZodString; created_by: ZodNullable<...>; }, $strict>

Zod schema for client-safe invite data.

InviteWithUsernamesJson
#

auth/invite_schema.ts view source

ZodObject<{ id: $ZodBranded<ZodUUID, "Uuid", "out">; email: ZodNullable<ZodEmail>; username: ZodNullable<ZodString>; ... 5 more ...; claimed_by_username: ZodNullable<...>; }, $strict>

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

Depends on
#

Imported by
#