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 string | null

Invite
#

auth/invite_schema.ts view source

Invite

Invite row from the database.

id

type string

email

type Email | null

username

type Username | null

claimed_by

type string | null

claimed_at

type string | null

created_at

type string

created_by

type string | null

InviteJson
#

auth/invite_schema.ts view source

ZodObject<{ id: ZodString; email: ZodNullable<ZodEmail>; username: ZodNullable<ZodString>; claimed_by: ZodNullable<ZodString>; 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: ZodString; email: ZodNullable<ZodEmail>; username: ZodNullable<ZodString>; claimed_by: ZodNullable<ZodString>; ... 4 more ...; claimed_by_username: ZodNullable<...>; }, $strict>

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

Depends on
#

Imported by
#