Skip to content

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

TypeScript
1.1 KB
Raw Blame
import type { ReactNode } from 'react'
import type { RemoteAsEndpointHosts, RemoteGrantScope } from '../../lib/remoteMcp.types'

export type AddRemoteServerWizardProps = {
  /** Rendered create-page header (icon, title, back). */
  pageHeader: ReactNode
  /** Called after a successful install (201). Redirects to the connectors list. */
  onInstalled: () => void
  /** Called when the operator cancels from the first step. */
  onCancel: () => void
}

export type GrantScopeOption = {
  value: RemoteGrantScope
  label: string
  description: string
}

/** A pre-registered install that succeeded; the wizard holds to show its redirect URI. */
export type InstalledRedirectUri = {
  /** The URI control-api reported in the 201 — authoritative over the preview. */
  redirectUri: string
  /** The 201 URI differs from the one previewed before install. */
  changedSincePreview: boolean
}

export type RedirectUriCopyProps = {
  uri: string
  onCopy: (uri: string) => void
}

export type AsEndpointHostsSummaryProps = {
  hosts: RemoteAsEndpointHosts
  /** Explain why the hosts are shown (the configuration step; the confirm step omits it). */
  withExplanation?: boolean
}