Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

614 B
Raw Blame
import { z } from 'zod';

/**
 * POST /api/trips/:tripId/assistant/threads/:threadId/messages/:messageId/share:
 * posts the text of an assistant answer to the trip's chat, marked as shared
 * from the assistant. The text is what the user saw in the preview; the
 * server checks that the answer is theirs and in this trip, not the words.
 * It answers with the chat message (`collabMessageResponseSchema`).
 */
export const assistantShareRequestSchema = z
  .object({
    text: z.string().trim().min(1).max(5000),
  })
  .strict();
export type AssistantShareRequest = z.infer<typeof assistantShareRequestSchema>;