Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

828 B
Raw Blame
import type { ProjectMemberRole } from '@lobechat/types';

export interface OidcClientMetadata {
  clientName?: string;
  developerName?: string;
  isFirstParty: boolean;
  logo?: string;
  policyUri?: string;
}

export interface OidcInteractionDetailsResponse {
  acceptanceReview?: {
    allowed: boolean;
    kind: 'acceptance' | 'site';
    origin?: string;
    projectName?: string;
    reason?: 'noAccess' | 'unregistered' | 'wrongOrigin';
    role?: ProjectMemberRole | null;
    siteName?: string;
    title?: string;
  };
  clientId: string;
  clientMetadata: OidcClientMetadata;
  prompt: 'consent' | 'login';
  redirectUri?: string;
  scopes: string[];
  uid: string;
}

export interface OidcInteractionErrorResponse {
  error: 'server_error' | 'session_invalid' | 'unsupported_interaction';
  promptName?: string;
}