Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
1.5 KB
Raw Blame
import type { Role } from './profile'

export type InvitationPreview = {
  id: string
  teamId: string | null
  teamName: string | null
  teams?: Array<{ id: string; name: string; role: string }>
  email: string
  role: string
  purpose?: 'member_invitation' | 'password_reset' | 'admin_desktop_access'
  status: string
  expiresAt: string
  acceptedAt: string | null
  userId: string | null
  passwordPending: boolean
}

export type AcceptInvitationResponse = {
  accepted: true
  id: string
  teamId: string | null
  teamName: string | null
  teams?: Array<{ id: string; name: string; role: string }>
  role: string
  purpose?: 'member_invitation' | 'password_reset' | 'admin_desktop_access'
  status: string
  expiresAt: string
  acceptedAt: string | null
  userId: string | null
  passwordPending: boolean
  email: string
}

export type DesktopAuthorizationResponse = {
  authorizationToken: string
  expiresInSeconds: number
}

export type DesktopEnvironmentResponse = {
  appName: string
  externalRestApiBaseUrl: string
  rpcProxyBaseUrl: string
}

export type DesktopReleaseResponse = {
  releaseId: string
  externalRestApiVersion: string
  rpcProxyVersion: string
  desktopVersion: string
  minimumDesktopVersion: string
  releaseTag: string
  releaseUrl: string
}

export type PasswordLoginResponse = {
  me: {
    id: string
    email: string
    name?: string | null
    picture?: string | null
    teamId: string | null
    teamName: string | null
    role: Role | null
  }
}