UNPKG

based-auth

Version:

A Next.js/Node.js authentication and wallet API kit for Ethereum and Solana, with utilities for serialization and contract interaction, designed for serverless and API route usage.

25 lines (24 loc) 701 B
import { Model, Document } from 'mongoose'; import { NetworkSymbols } from '../../../basedauth/src/networks'; export interface IBoardInvitation extends Document { _id: string; boardId: string; chainId: number; boardTitle: string; invitedBy: { network: NetworkSymbols; address: string; }; invitee: { type: "wallet" | "profile" | "twitter"; identifier: string; network?: NetworkSymbols; }; status: "pending" | "accepted" | "rejected" | "expired"; message?: string; expiresAt?: Date; respondedAt?: Date; createdAt: Date; updatedAt: Date; } export declare const BoardInvitationModel: Model<IBoardInvitation>;