import { GeneratedSchema } from './../foundations/index.js'; import { OrganizationInvitationStatus } from './custom-types.js'; /** * The invitation entry defined in RFC 0003. It stores the invitation information for a user to join an organization. * * @remarks This is a type for database creation. * @see {@link OrganizationInvitation} for the original type. */ export type CreateOrganizationInvitation = { tenantId?: string; /** The unique identifier of the invitation. */ id: string; /** The user ID who sent the invitation. */ inviterId?: string | null; /** The email address or other identifier of the invitee. */ invitee: string; /** The user ID of who accepted the invitation. */ acceptedUserId?: string | null; /** The ID of the organization to which the invitee is invited. */ organizationId: string; /** The status of the invitation. */ status: OrganizationInvitationStatus; /** The time when the invitation was created. */ createdAt?: number; /** The time when the invitation status was last updated. */ updatedAt?: number; /** The time when the invitation expires. */ expiresAt: number; }; /** The invitation entry defined in RFC 0003. It stores the invitation information for a user to join an organization. */ export type OrganizationInvitation = { tenantId: string; /** The unique identifier of the invitation. */ id: string; /** The user ID who sent the invitation. */ inviterId: string | null; /** The email address or other identifier of the invitee. */ invitee: string; /** The user ID of who accepted the invitation. */ acceptedUserId: string | null; /** The ID of the organization to which the invitee is invited. */ organizationId: string; /** The status of the invitation. */ status: OrganizationInvitationStatus; /** The time when the invitation was created. */ createdAt: number; /** The time when the invitation status was last updated. */ updatedAt: number; /** The time when the invitation expires. */ expiresAt: number; }; export type OrganizationInvitationKeys = 'tenantId' | 'id' | 'inviterId' | 'invitee' | 'acceptedUserId' | 'organizationId' | 'status' | 'createdAt' | 'updatedAt' | 'expiresAt'; export declare const OrganizationInvitations: GeneratedSchema;