Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

575 B
Raw Blame
import { createSearchParamsCodec } from '@app/lib/split-router';
import { z } from 'zod';

export const pdfDetailSearch = {
  namespace: 'pdf-detail',
  schema: z.object({
    documentId: z.string(),
    page: z.number().int().nonnegative(),
    highlightTerms: z.array(z.string()),
    snippet: z.string(),
    query: z.string(),
    seek: z.string(),
  }),
  defaults: {
    documentId: '',
    page: 0,
    highlightTerms: [] as string[],
    snippet: '',
    query: '',
    seek: '',
  },
};

export const pdfDetailSearchCodec = createSearchParamsCodec(pdfDetailSearch);