Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { createSearchParamsCodec } from '@app/lib/split-router';
import { z } from 'zod';
export const bookingLinksSearch = {
namespace: 'scheduling',
schema: z.object({
tab: z.enum(['links', 'availability', 'bookings', 'insights', 'page']),
owner: z.string(),
createBookingLink: z.boolean().optional(),
}),
defaults: { tab: 'links' as const, owner: '', createBookingLink: false },
};
export type BookingLinksState = z.infer<typeof bookingLinksSearch.schema>;
export const bookingLinksSearchCodec =
createSearchParamsCodec(bookingLinksSearch);