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
feat(search): go-to navigation for call record hits (#2947)
gbirman4ba8a554e614
diff --git a/js/app/packages/app/component/next-soup/utils.ts b/js/app/packages/app/component/next-soup/utils.tsindex e9d711cc3b..a2dc4f4e29 100644--- a/js/app/packages/app/component/next-soup/utils.ts+++ b/js/app/packages/app/component/next-soup/utils.ts@@ -1,5 +1,6 @@import type { BlockOrchestrator } from '@core/orchestrator';import type { DateValue } from '@core/util/date';+import { URL_PARAMS as CALL_PARAMS } from '@block-call/constants';import { URL_PARAMS as CHANNEL_PARAMS } from '@block-channel/constants';import { URL_PARAMS as EMAIL_PARAMS } from '@block-email/constants';import { URL_PARAMS as MD_PARAMS } from '@block-md/constants';@@ -10,7 +11,9 @@ import { fileTypeToBlockName } from '@core/constant/allBlocks';import { waitForFrames } from '@core/util/sleep';import {type EntityData,+ getSnippetHit,isSearchEntity,+ isSnippetEntity,type SearchLocation,type WithSearch,} from '@entity';@@ -226,6 +229,14 @@ export const openEntityInNewTab = ({entityUrl.searchParams.set('search_snippet', location.searchSnippet);}break;+ case 'call_record':+ if (location.transcriptId) {+ entityUrl.searchParams.set(+ CALL_PARAMS.transcriptId,+ location.transcriptId+ );+ }+ break;}}@@ -300,7 +311,12 @@ export const openEntityInSplitFromUnifiedList = async (entity: EntityData,options: OpenEntityOptions): Promise<void> => {- const { openInNewSplit, location, splitHandle, mergeHistory } = options;+ const { openInNewSplit, splitHandle, mergeHistory } = options;+ let { location } = options;++ if (!location && isSnippetEntity(entity)) {+ location = getSnippetHit(entity)?.location;+ }// Get dependencies internallyconst splitManager = globalSplitManager();@@ -318,6 +334,8 @@ export const openEntityInSplitFromUnifiedList = async (params = getChannelParams(location.messageId, location.threadId);} else if (entity.type === 'channel_message') {params = getChannelParams(entity.messageId, entity.threadId);+ } else if (entity.type === 'call' && location?.type === 'call_record') {+ params = { [CALL_PARAMS.transcriptId]: location.transcriptId };}splitManager.openWithSplit(@@ -406,6 +424,12 @@ async function navigateToLocation(});break;}+ case 'call_record': {+ await blockHandle.goToLocationFromParams({+ [CALL_PARAMS.transcriptId]: location.transcriptId,+ });+ break;+ }}}diff --git a/js/app/packages/block-call/component/CallBlockAdapter.tsx b/js/app/packages/block-call/component/CallBlockAdapter.tsxindex 8c47c25cf1..b55d2cce7f 100644--- a/js/app/packages/block-call/component/CallBlockAdapter.tsx+++ b/js/app/packages/block-call/component/CallBlockAdapter.tsx@@ -1,8 +1,13 @@+import { URL_PARAMS } from '@block-call/constants';import { useBlockId } from '@core/block';import Unauthorized from '@core/component/AccessErrorViews/Unauthorized';+import { createMethodRegistration } from '@core/orchestrator';+import { blockHandleSignal } from '@core/signal/load';import { MaybeResultError } from '@core/util/maybeResult';import { useCallRecordQuery } from '@queries/call/call';-import { Match, Switch } from 'solid-js';+import { globalSplitManager } from '@app/signal/splitLayout';+import { useSearchParams } from '@solidjs/router';+import { createSignal, Match, Switch } from 'solid-js';import { CallRecordingBody } from './CallRecording/CallRecordingBody';import { CallRecordingSplitHeaderLoading } from './CallRecording/CallRecordingSplitHeader';@@ -13,15 +18,55 @@ function isUnauthorized(error: Error | null): boolean {return false;}-export function CallBlockAdapter() {+export type CallBlockProps = {+ [URL_PARAMS.transcriptId]?: string;+};++export type CallTranscriptTarget = { transcriptId: string; gen: number };++export function CallBlockAdapter(props: CallBlockProps) {const callId = useBlockId();const callRecord = useCallRecordQuery(() => callId);+ const blockHandle = blockHandleSignal.get;+ const [searchParams] = useSearchParams();++ const initialTranscriptId = ((): string | undefined => {+ const fromProps = props[URL_PARAMS.transcriptId];+ if (fromProps) return fromProps;+ const isSingleSplit = globalSplitManager()?.splits().length === 1;+ if (!isSingleSplit) return undefined;+ return searchParams[URL_PARAMS.transcriptId] as string | undefined;+ })();++ const [transcriptTarget, setTranscriptTarget] = createSignal<+ CallTranscriptTarget | undefined+ >(+ initialTranscriptId+ ? { transcriptId: initialTranscriptId, gen: 0 }+ : undefined+ );++ createMethodRegistration(blockHandle, {+ goToLocationFromParams: async (params: CallBlockProps) => {+ const next = params[URL_PARAMS.transcriptId];+ if (!next) return;+ setTranscriptTarget((prev) => ({+ transcriptId: next,+ gen: (prev?.gen ?? 0) + 1,+ }));+ },+ });return (<div class="h-full flex flex-col @container"><Switch><Match when={callRecord.data}>- {(data) => <CallRecordingBody data={data} />}+ {(data) => (+ <CallRecordingBody+ data={data}+ transcriptTarget={transcriptTarget}+ />+ )}</Match><Match when={callRecord.isLoading}><CallRecordingSplitHeaderLoading />diff --git a/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx b/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsxindex 578c718061..c69170e2f6 100644--- a/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx+++ b/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx@@ -4,14 +4,17 @@ import {createEffect,createMemo,createSignal,+ on,onCleanup,untrack,} from 'solid-js';import { cn } from '@ui/utils/classname';import {getActiveTranscriptSequenceNum,+ getSegmentVideoSeconds,sortTranscriptSegments,} from '../transcript-playback';+import type { CallTranscriptTarget } from '../CallBlockAdapter';import {CallRecordingMediaColumn,type CallRecordingTimeUpdateSource,@@ -25,7 +28,10 @@ import {shouldCoalesceSeekGenerationBump,} from './call-recording-utils';-export function CallRecordingBody(props: { data: Accessor<CallRecord> }) {+export function CallRecordingBody(props: {+ data: Accessor<CallRecord>;+ transcriptTarget?: Accessor<CallTranscriptTarget | undefined>;+}) {const record = props.data;const hasTranscripts = createMemo(() => record().transcript.length > 0);const [playbackSeconds, setPlaybackSeconds] = createSignal(0);@@ -37,6 +43,11 @@ export function CallRecordingBody(props: { data: Accessor<CallRecord> }) {sortTranscriptSegments(record().transcript));+ const timelineStartMs = createMemo(() => {+ const ms = new Date(record().startedAt).getTime();+ return Number.isFinite(ms) ? ms : null;+ });+const [transcriptOpen, setTranscriptOpen] = createSignal(true);const [participantsOpen, setParticipantsOpen] = createSignal(false);const [layoutDefaultsSeeded, setLayoutDefaultsSeeded] = createSignal(false);@@ -73,6 +84,7 @@ export function CallRecordingBody(props: { data: Accessor<CallRecord> }) {getActiveTranscriptSequenceNum(sortedTranscript(),playbackSeconds(),+ timelineStartMs(),allowFutureLead()));@@ -87,15 +99,41 @@ export function CallRecordingBody(props: { data: Accessor<CallRecord> }) {};const seekToSeconds = (seconds: number) => {+ if (!Number.isFinite(seconds)) return;const video = videoRef();- if (!video || !Number.isFinite(seconds)) return;- const maxTime = Number.isFinite(video.duration) ? video.duration : seconds;+ const maxTime = Number.isFinite(video?.duration ?? Number.NaN)+ ? (video!.duration as number)+ : seconds;const targetSeconds = Math.max(0, Math.min(seconds, maxTime));- video.currentTime = targetSeconds;+setPlaybackSeconds(targetSeconds);setAllowFutureLead(false);+ bumpVideoSeekGeneration(targetSeconds);++ if (video) video.currentTime = targetSeconds;};+ const goToTranscriptSegment = (transcriptId: string) => {+ const segment = sortedTranscript().find(+ (s) => s.transcriptId === transcriptId+ );+ if (!segment) return;+ const seconds = getSegmentVideoSeconds(segment, timelineStartMs());+ if (seconds === null) return;+ seekToSeconds(seconds);+ };++ createEffect(+ on(+ () => props.transcriptTarget?.(),+ (target) => {+ if (!target) return;+ if (hasTranscripts()) setTranscriptOpen(true);+ goToTranscriptSegment(target.transcriptId);+ }+ )+ );+const toggleTranscript = () => {setTranscriptOpen((open) => {const next = !open;@@ -203,6 +241,7 @@ export function CallRecordingBody(props: { data: Accessor<CallRecord> }) {transcriptOpen={transcriptOpen}participantsOpen={participantsOpen}activeSequenceNum={activeSequenceNum}+ timelineStartMs={timelineStartMs}videoSeekGeneration={videoSeekGeneration}onToggleTranscript={toggleTranscript}onToggleParticipants={toggleParticipants}diff --git a/js/app/packages/block-call/component/CallRecording/CallRecordingTranscriptColumn.tsx b/js/app/packages/block-call/component/CallRecording/CallRecordingTranscriptColumn.tsxindex 81eb4b4545..884ec7fdd7 100644--- a/js/app/packages/block-call/component/CallRecording/CallRecordingTranscriptColumn.tsx+++ b/js/app/packages/block-call/component/CallRecording/CallRecordingTranscriptColumn.tsx@@ -16,6 +16,7 @@ export function CallRecordingTranscriptColumn(props: {transcriptOpen: Accessor<boolean>;participantsOpen: Accessor<boolean>;activeSequenceNum: Accessor<number | null>;+ timelineStartMs: Accessor<number | null>;videoSeekGeneration: Accessor<number>;onToggleTranscript: () => void;onToggleParticipants: () => void;@@ -58,6 +59,7 @@ export function CallRecordingTranscriptColumn(props: {<CallTranscripttranscript={props.record().transcript}channelId={props.record().channelId}+ timelineStartMs={props.timelineStartMs()}activeSequenceNum={props.activeSequenceNum()}videoSeekGeneration={props.videoSeekGeneration()}onSeekToSeconds={props.onSeekToSeconds}diff --git a/js/app/packages/block-call/component/CallTranscript.tsx b/js/app/packages/block-call/component/CallTranscript.tsxindex 5f7ddd26fc..5e9b0c7b02 100644--- a/js/app/packages/block-call/component/CallTranscript.tsx+++ b/js/app/packages/block-call/component/CallTranscript.tsx@@ -13,10 +13,8 @@ import {onCleanup,Show,} from 'solid-js';-import {- formatVideoTimestamp,- getSegmentVideoSeconds,-} from './transcript-playback';+import { formatVideoTimestamp } from '@core/util/duration';+import { getSegmentVideoSeconds } from './transcript-playback';// Match the channel message grouping window (5 minutes).const GROUPING_WINDOW_MS = 5 * 60 * 1000;@@ -148,6 +146,7 @@ function GroupedTranscriptSegmentRow(props: {export function CallTranscript(props: {transcript: CallRecordTranscriptSegment[];channelId: string;+ timelineStartMs: number | null;activeSequenceNum?: number | null;/** Bumps when the user seeks via the native video controls (deduped in CallBlockAdapter). */videoSeekGeneration?: number;@@ -168,13 +167,7 @@ export function CallTranscript(props: {segment,groupedWithPrevious: shouldGroupWithPrevious(segment, sorted[index - 1]),}));- if (sorted.length === 0) return { items, timelineStartMs: null };-- const firstStartMs = new Date(sorted[0].startedAt).getTime();- return {- items,- timelineStartMs: Number.isFinite(firstStartMs) ? firstStartMs : null,- };+ return { items };});const scrollActiveIntoView = (@@ -349,7 +342,7 @@ export function CallTranscript(props: {isActive={item.segment.sequenceNum === props.activeSequenceNum}- timelineStartMs={transcriptMeta().timelineStartMs}+ timelineStartMs={props.timelineStartMs}onSeekToSeconds={props.onSeekToSeconds}/></div>@@ -362,7 +355,7 @@ export function CallTranscript(props: {isActive={item.segment.sequenceNum === props.activeSequenceNum}- timelineStartMs={transcriptMeta().timelineStartMs}+ timelineStartMs={props.timelineStartMs}onSeekToSeconds={props.onSeekToSeconds}/></div>diff --git a/js/app/packages/block-call/component/transcript-playback.ts b/js/app/packages/block-call/component/transcript-playback.tsindex 7dc284d471..d6dabbbe4d 100644--- a/js/app/packages/block-call/component/transcript-playback.ts+++ b/js/app/packages/block-call/component/transcript-playback.ts@@ -9,16 +9,20 @@ export function sortTranscriptSegments(export function getActiveTranscriptSequenceNum(sortedTranscript: CallRecordTranscriptSegment[],playbackSeconds: number,+ timelineStartMs: number | null,allowFutureLead = true): number | null {- if (sortedTranscript.length === 0 || playbackSeconds < 0) return null;- const firstStartMs = new Date(sortedTranscript[0].startedAt).getTime();- if (!Number.isFinite(firstStartMs)) return null;+ if (+ sortedTranscript.length === 0 ||+ playbackSeconds < 0 ||+ timelineStartMs === null ||+ !Number.isFinite(timelineStartMs)+ )+ return null;// Bias slightly earlier so short segments feel responsive.const ACTIVE_LEAD_MS = 250;- const rawTimelineMs = firstStartMs + playbackSeconds * 1000;- if (rawTimelineMs < firstStartMs) return null;+ const rawTimelineMs = timelineStartMs + playbackSeconds * 1000;const currentTimelineMs = allowFutureLead? rawTimelineMs + ACTIVE_LEAD_MS: rawTimelineMs;@@ -43,17 +47,6 @@ export function getActiveTranscriptSequenceNum(return activeSequenceNum;}-export function formatVideoTimestamp(totalSeconds: number): string {- const clamped = Math.max(0, Math.floor(totalSeconds));- const hours = Math.floor(clamped / 3600);- const minutes = Math.floor((clamped % 3600) / 60);- const seconds = clamped % 60;- if (hours > 0) {- return `${hours}:${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;- }- return `${minutes}:${String(seconds).padStart(2, '0')}`;-}-export function getSegmentVideoSeconds(segment: CallRecordTranscriptSegment,timelineStartMs: number | nulldiff --git a/js/app/packages/block-call/constants.ts b/js/app/packages/block-call/constants.tsnew file mode 100644index 0000000000..91effbc02d--- /dev/null+++ b/js/app/packages/block-call/constants.ts@@ -0,0 +1,3 @@+export const URL_PARAMS = {+ transcriptId: 'call_transcript_id',+};diff --git a/js/app/packages/core/util/duration.ts b/js/app/packages/core/util/duration.tsnew file mode 100644index 0000000000..2310e45be1--- /dev/null+++ b/js/app/packages/core/util/duration.ts@@ -0,0 +1,10 @@+export function formatVideoTimestamp(totalSeconds: number): string {+ const clamped = Math.max(0, Math.floor(totalSeconds));+ const hours = Math.floor(clamped / 3600);+ const minutes = Math.floor((clamped % 3600) / 60);+ const seconds = clamped % 60;+ if (hours > 0) {+ return `${hours}:${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;+ }+ return `${minutes}:${String(seconds).padStart(2, '0')}`;+}diff --git a/js/app/packages/core/util/searchHighlight.test.ts b/js/app/packages/core/util/searchHighlight.test.tsindex 0327193717..70a5348f24 100644--- a/js/app/packages/core/util/searchHighlight.test.ts+++ b/js/app/packages/core/util/searchHighlight.test.ts@@ -158,6 +158,30 @@ describe('windowSearchMatch', () => {'no highlight here');});++ it('donates unused front budget to back when highlight is at start', () => {+ const longSuffix = 'b '.repeat(40);+ const text = `<macro_em>match</macro_em> ${longSuffix}`;+ const result = windowSearchMatch(text, 10);+ expect(result).toContain('<macro_em>match</macro_em>');+ const visibleAfter = result+ .slice(result.lastIndexOf('</macro_em>') + '</macro_em>'.length)+ .trim().length;+ expect(visibleAfter).toBeGreaterThan(10);+ expect(visibleAfter).toBeLessThanOrEqual(20);+ });++ it('donates unused back budget to front when highlight is at end', () => {+ const longPrefix = 'a '.repeat(40);+ const text = `${longPrefix}<macro_em>match</macro_em>`;+ const result = windowSearchMatch(text, 10);+ expect(result).toContain('<macro_em>match</macro_em>');+ const visibleBefore = result+ .slice(0, result.indexOf('<macro_em>'))+ .trim().length;+ expect(visibleBefore).toBeGreaterThan(10);+ expect(visibleBefore).toBeLessThanOrEqual(20);+ });});describe('parseSearchHighlightSegments', () => {diff --git a/js/app/packages/core/util/searchHighlight.tsx b/js/app/packages/core/util/searchHighlight.tsxindex 3a1a7251bb..d4dc523dca 100644--- a/js/app/packages/core/util/searchHighlight.tsx+++ b/js/app/packages/core/util/searchHighlight.tsx@@ -107,16 +107,29 @@ export function windowSearchMatch(text: string, chars: number): string {let line = stripInvisibleChars(text);const macroOpen = '<macro_em>';+ const macroClose = '</macro_em>';const tagIndex = line.indexOf(macroOpen);if (tagIndex === -1) return line;+ const lastCloseIndex = line.lastIndexOf(macroClose);+const visibleBefore = line.slice(0, tagIndex).replace(/<\/?macro_em>/g, '').length;+ const visibleAfter =+ lastCloseIndex === -1+ ? 0+ : line+ .slice(lastCloseIndex + macroClose.length)+ .replace(/<\/?macro_em>/g, '').length;++ const totalBudget = chars * 2;+ const frontKeep = Math.max(chars, totalBudget - visibleAfter);+ const backKeep = Math.max(chars, totalBudget - visibleBefore);// Trim from front if highlight is far from the start- if (visibleBefore > chars) {- const targetStart = Math.max(0, tagIndex - chars);+ if (visibleBefore > frontKeep) {+ const targetStart = Math.max(0, tagIndex - frontKeep);let cutIndex = targetStart;for (let i = targetStart; i < tagIndex; i++) {if (/\s/.test(line[i])) {@@ -128,16 +141,14 @@ export function windowSearchMatch(text: string, chars: number): string {}// Trim from end to keep total length reasonable- const macroClose = '</macro_em>';- const lastCloseIndex = line.lastIndexOf(macroClose);- if (lastCloseIndex !== -1) {- const afterLastTag = lastCloseIndex + macroClose.length;+ const finalCloseIndex = line.lastIndexOf(macroClose);+ if (finalCloseIndex !== -1) {+ const afterLastTag = finalCloseIndex + macroClose.length;const remainingVisible = line.slice(afterLastTag)- .replace(/<\/?macro_em>/g, '')- .replace(INVISIBLE_CHARS_RE, '').length;- if (remainingVisible > chars) {- let endCut = afterLastTag + chars;+ .replace(/<\/?macro_em>/g, '').length;+ if (remainingVisible > backKeep) {+ let endCut = afterLastTag + backKeep;for (let i = endCut; i < line.length; i++) {if (/\s/.test(line[i])) {endCut = i;diff --git a/js/app/packages/entity/src/composed/list-entity/email.tsx b/js/app/packages/entity/src/composed/list-entity/email.tsxindex 94e287f283..b27c940750 100644--- a/js/app/packages/entity/src/composed/list-entity/email.tsx+++ b/js/app/packages/entity/src/composed/list-entity/email.tsx@@ -2,7 +2,7 @@ import { Show } from 'solid-js';import { DraftBadge } from '../../components/Badges';import { Entity } from '../../entity';import { HitSnippet } from '../../extractors-search/HitSnippet';-import { getSnippetHitContent } from '../../extractors-search/snippet-entity';+import { getSnippetHit } from '../../extractors-search/snippet-entity';import type { EmailEntity } from '../../types/entity';export function EmailIdentity(props: { entity: EmailEntity }) {@@ -25,10 +25,10 @@ function EmailSnippet(props: {}) {return (<Show- when={props.showHitSnippet && getSnippetHitContent(props.entity)}+ when={props.showHitSnippet && getSnippetHit(props.entity)}fallback={props.entity.snippet}>- {(content) => <HitSnippet content={content()} chars={props.chars} />}+ {(hit) => <HitSnippet content={hit().content} chars={props.chars} />}</Show>);}diff --git a/js/app/packages/entity/src/extractors-search/search-content-hit-row.tsx b/js/app/packages/entity/src/extractors-search/search-content-hit-row.tsxindex 573341ecda..6b9a043946 100644--- a/js/app/packages/entity/src/extractors-search/search-content-hit-row.tsx+++ b/js/app/packages/entity/src/extractors-search/search-content-hit-row.tsx@@ -22,6 +22,7 @@ interface SearchContentHitRowProps {export function SearchContentHitRow(props: SearchContentHitRowProps) {const senderId = () => getSenderId(props.hit);const handleClick = (e: PointerEvent | MouseEvent) => {+ e.stopPropagation();props.onClick?.(e, props.hit.location);};diff --git a/js/app/packages/entity/src/extractors-search/search-timestamp.tsx b/js/app/packages/entity/src/extractors-search/search-timestamp.tsxindex 1290786463..0d9fb1591b 100644--- a/js/app/packages/entity/src/extractors-search/search-timestamp.tsx+++ b/js/app/packages/entity/src/extractors-search/search-timestamp.tsx@@ -1,25 +1,26 @@-import type { DateValue } from '@core/util/date';-import { type ContentHitData, hitHasSender } from '../types/search';+import { formatVideoTimestamp } from '@core/util/duration';+import {+ type ContentHitData,+ hitHasSender,+ isCallRecordHit,+} from '../types/search';import { formatRelativeTimestamp } from '../utils/timestamp';interface SearchTimestampProps {hit?: ContentHitData;}-function getTimestamp(hit: ContentHitData): DateValue | undefined {- return hitHasSender(hit) ? hit.sentAt : undefined;-}-/**- * Displays the timestamp of a search hit (for channel/email)+ * Displays the timestamp of a search hit (for channel/email/call_record)*/export function SearchTimestamp(props: SearchTimestampProps) {- const timestamp = () => (props.hit ? getTimestamp(props.hit) : undefined);-- const formattedTimestamp = () => {- const ts = timestamp();- return ts ? formatRelativeTimestamp(ts) : '';+ const formatted = () => {+ const hit = props.hit;+ if (!hit) return '';+ if (isCallRecordHit(hit)) return formatVideoTimestamp(hit.videoSeconds);+ if (hitHasSender(hit)) return formatRelativeTimestamp(hit.sentAt);+ return '';};- return <>{formattedTimestamp()}</>;+ return <>{formatted()}</>;}diff --git a/js/app/packages/entity/src/extractors-search/snippet-entity.ts b/js/app/packages/entity/src/extractors-search/snippet-entity.tsindex dfeb3d5a6d..3d5fa7de0c 100644--- a/js/app/packages/entity/src/extractors-search/snippet-entity.ts+++ b/js/app/packages/entity/src/extractors-search/snippet-entity.ts@@ -6,7 +6,7 @@ import {isCallEntity,isEmailEntity,} from '../types/entity';-import { isSearchEntity } from '../types/search';+import { type ContentHitData, isSearchEntity } from '../types/search';/*** Entities whose inline row snippet renders search hit content via@@ -19,13 +19,13 @@ export const isSnippetEntity = (entity: EntityData): entity is SnippetEntity =>isEmailEntity(entity) || isCallEntity(entity);/**- * Hit content rendered as the row snippet for a SnippetEntity:+ * Hit rendered as the row snippet for a SnippetEntity:* - email: longest hit (best context window around the highlight)* - call: first hit (typically the first transcript match)*/-export const getSnippetHitContent = (+export const getSnippetHit = (entity: EntityData-): string | undefined => {+): ContentHitData | undefined => {if (!isSnippetEntity(entity)) return undefined;if (!isSearchEntity(entity)) return undefined;const hits = entity.search.contentHitData;@@ -40,9 +40,9 @@ export const getSnippetHitContent = (bestIdx = i;}}- return hits[bestIdx].content;+ return hits[bestIdx];}- return hits[0].content;+ return hits[0];};/**diff --git a/js/app/packages/entity/src/index.ts b/js/app/packages/entity/src/index.tsindex a3fc3307f0..94369f58e8 100644--- a/js/app/packages/entity/src/index.ts+++ b/js/app/packages/entity/src/index.ts@@ -41,4 +41,11 @@ export {isCurrentUserAssigned,} from './utils/task-properties';+export {+ getSnippetHit,+ isHitSnippetComplete,+ isSnippetEntity,+ type SnippetEntity,+} from './extractors-search/snippet-entity';+export { default as DebugEntityView } from './debug/DebugEntityView';diff --git a/js/app/packages/entity/src/types/search.ts b/js/app/packages/entity/src/types/search.tsindex 6ff2b6f6c6..eda5ca035e 100644--- a/js/app/packages/entity/src/types/search.ts+++ b/js/app/packages/entity/src/types/search.ts@@ -81,6 +81,7 @@ export type CallRecordContentHitData = {content: string;senderId: string;sentAt: DateValue;+ videoSeconds: number;location: CallRecordSegmentHighlightLocation;};diff --git a/js/app/packages/queries/soup/transform-utils.ts b/js/app/packages/queries/soup/transform-utils.tsindex 2eac5d07c8..78707a425e 100644--- a/js/app/packages/queries/soup/transform-utils.ts+++ b/js/app/packages/queries/soup/transform-utils.ts@@ -37,6 +37,7 @@ import type {SoupPage,} from '@service-storage/generated/schemas';import type { UseQueryResult } from '@tanstack/solid-query';+import { differenceInMilliseconds } from 'date-fns';type InnerSearchResult =| DocumentSearchResult@@ -56,6 +57,7 @@ type TypedInnerSearchResult =results: CallRecordSearchResult[];type: 'call_record';callId: string;+ callStartedAt: string;};const getSearchData = (data: TypedInnerSearchResult): SearchData => {@@ -140,6 +142,11 @@ const getSearchData = (data: TypedInnerSearchResult): SearchData => {const isContentHit = !!r.transcript_id;if (!isContentHit) return [];+ const videoSeconds = Math.max(+ 0,+ differenceInMilliseconds(r.started_at!, data.callStartedAt) / 1000+ );+const contents = r.highlight.content ?? [];return contents.map((content) => ({type: 'call_record' as const,@@ -147,6 +154,7 @@ const getSearchData = (data: TypedInnerSearchResult): SearchData => {content: mergeAdjacentMacroEmTags(content),senderId: r.speaker_id!,sentAt: r.started_at!,+ videoSeconds,location: {type: 'call_record' as const,callId: data.callId,@@ -364,6 +372,7 @@ export const useSearchResponseItemMapper = () => {type: 'call_record',results: result.call_search_results,callId: result.call_id,+ callStartedAt: result.metadata.started_at,});const channelName: string | undefined =diff --git a/js/app/packages/service-clients/service-notification/generated/zod.ts b/js/app/packages/service-clients/service-notification/generated/zod.tsindex c653eccfc2..643b9e053b 100644--- a/js/app/packages/service-clients/service-notification/generated/zod.ts+++ b/js/app/packages/service-clients/service-notification/generated/zod.ts@@ -125,19 +125,17 @@ export const listTypedNotificationsResponse = zod).and(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the notification was created.'),- deleted_at: zod- .string()+ deleted_at: zod.iso.datetime({}).nullish().describe('When the notification was deleted.'),done: zod.boolean().describe('Whether the notification is marked as done.'),- id: zod.string().uuid().describe('The notification ID.'),+ id: zod.uuid().describe('The notification ID.'),notification_event_type: zod.string().describe(@@ -427,11 +425,9 @@ export const listTypedNotificationsResponse = zod"The sender's profile picture URL, if available."),teamId: zod- .string().uuid().describe('The unique identifier of the team'),teamInviteId: zod- .string().uuid().describe('The unique identifier of the team invite'@@ -491,12 +487,10 @@ export const listTypedNotificationsResponse = zodsent: zod.boolean().describe('Whether the notification has been sent.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the notification was last updated.'),- viewed_at: zod- .string()+ viewed_at: zod.iso.datetime({}).nullish().describe('When the notification was viewed\/seen.'),@@ -533,7 +527,7 @@ export const bulkGetTypedNotificationsByEventItemIdsQueryParams = zod.object({export const bulkGetTypedNotificationsByEventItemIdsBody = zod.object({eventItemIds: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('The event item IDs to filter notifications by.'),}).describe('Request body for bulk-fetching notifications by event item IDs.');@@ -564,19 +558,17 @@ export const bulkGetTypedNotificationsByEventItemIdsResponse = zod).and(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the notification was created.'),- deleted_at: zod- .string()+ deleted_at: zod.iso.datetime({}).nullish().describe('When the notification was deleted.'),done: zod.boolean().describe('Whether the notification is marked as done.'),- id: zod.string().uuid().describe('The notification ID.'),+ id: zod.uuid().describe('The notification ID.'),notification_event_type: zod.string().describe(@@ -866,11 +858,9 @@ export const bulkGetTypedNotificationsByEventItemIdsResponse = zod"The sender's profile picture URL, if available."),teamId: zod- .string().uuid().describe('The unique identifier of the team'),teamInviteId: zod- .string().uuid().describe('The unique identifier of the team invite'@@ -930,12 +920,10 @@ export const bulkGetTypedNotificationsByEventItemIdsResponse = zodsent: zod.boolean().describe('Whether the notification has been sent.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the notification was last updated.'),- viewed_at: zod- .string()+ viewed_at: zod.iso.datetime({}).nullish().describe('When the notification was viewed\/seen.'),@@ -954,7 +942,7 @@ export const bulkGetTypedNotificationsByEventItemIdsResponse = zod* @summary Typed wrapper for getting notifications by a single event item ID.*/export const getTypedNotificationsByEventItemIdParams = zod.object({- event_item_id: zod.string().uuid().describe('The event item ID'),+ event_item_id: zod.uuid().describe('The event item ID'),});export const getTypedNotificationsByEventItemIdQueryLimitMin = 0;@@ -997,19 +985,17 @@ export const getTypedNotificationsByEventItemIdResponse = zod).and(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the notification was created.'),- deleted_at: zod- .string()+ deleted_at: zod.iso.datetime({}).nullish().describe('When the notification was deleted.'),done: zod.boolean().describe('Whether the notification is marked as done.'),- id: zod.string().uuid().describe('The notification ID.'),+ id: zod.uuid().describe('The notification ID.'),notification_event_type: zod.string().describe(@@ -1299,11 +1285,9 @@ export const getTypedNotificationsByEventItemIdResponse = zod"The sender's profile picture URL, if available."),teamId: zod- .string().uuid().describe('The unique identifier of the team'),teamInviteId: zod- .string().uuid().describe('The unique identifier of the team invite'@@ -1363,12 +1347,10 @@ export const getTypedNotificationsByEventItemIdResponse = zodsent: zod.boolean().describe('Whether the notification has been sent.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the notification was last updated.'),- viewed_at: zod- .string()+ viewed_at: zod.iso.datetime({}).nullish().describe('When the notification was viewed\/seen.'),@@ -1416,7 +1398,7 @@ export const enableNotificationTypeParams = zod.object({* @summary Typed wrapper for getting a single notification by ID.*/export const getTypedNotificationByIdParams = zod.object({- notification_id: zod.string().uuid().describe('ID of the notification'),+ notification_id: zod.uuid().describe('ID of the notification'),});export const getTypedNotificationByIdResponse = zod@@ -1441,19 +1423,17 @@ export const getTypedNotificationByIdResponse = zod).and(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the notification was created.'),- deleted_at: zod- .string()+ deleted_at: zod.iso.datetime({}).nullish().describe('When the notification was deleted.'),done: zod.boolean().describe('Whether the notification is marked as done.'),- id: zod.string().uuid().describe('The notification ID.'),+ id: zod.uuid().describe('The notification ID.'),notification_event_type: zod.string().describe(@@ -1717,11 +1697,9 @@ export const getTypedNotificationByIdResponse = zod"The sender's profile picture URL, if available."),teamId: zod- .string().uuid().describe('The unique identifier of the team'),teamInviteId: zod- .string().uuid().describe('The unique identifier of the team invite'),teamName: zod@@ -1771,12 +1749,10 @@ export const getTypedNotificationByIdResponse = zod.nullish().describe('The user who triggered the notification.'),sent: zod.boolean().describe('Whether the notification has been sent.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the notification was last updated.'),- viewed_at: zod- .string()+ viewed_at: zod.iso.datetime({}).nullish().describe('When the notification was viewed\/seen.'),@@ -1789,7 +1765,7 @@ export const getTypedNotificationByIdResponse = zodexport const bulkDeleteUserNotificationsV2Body = zod.object({notificationIds: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('The ids of the notifications to handle'),}).describe('the notification ids that we are bulk updating');@@ -1800,7 +1776,7 @@ export const bulkDeleteUserNotificationsV2Body = zodexport const bulkMarkNotificationsDoneBody = zod.object({notificationIds: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('The ids of the notifications to handle'),}).describe('the notification ids that we are bulk updating');@@ -1811,7 +1787,7 @@ export const bulkMarkNotificationsDoneBody = zodexport const bulkMarkNotificationsSeenBody = zod.object({notificationIds: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('The ids of the notifications to handle'),}).describe('the notification ids that we are bulk updating');@@ -1822,7 +1798,7 @@ export const bulkMarkNotificationsSeenBody = zodexport const bulkMarkNotificationsUndoneBody = zod.object({notificationIds: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('The ids of the notifications to handle'),}).describe('the notification ids that we are bulk updating');@@ -1831,5 +1807,5 @@ export const bulkMarkNotificationsUndoneBody = zod* @summary Soft-delete a single user notification.*/export const deleteUserNotificationV2Params = zod.object({- notification_id: zod.string().uuid().describe('ID of the notification'),+ notification_id: zod.uuid().describe('ID of the notification'),});diff --git a/js/app/packages/service-clients/service-properties/generated/zod.ts b/js/app/packages/service-clients/service-properties/generated/zod.tsindex 1863c51a3f..3930e7cd7c 100644--- a/js/app/packages/service-clients/service-properties/generated/zod.ts+++ b/js/app/packages/service-clients/service-properties/generated/zod.ts@@ -36,7 +36,7 @@ export const listPropertiesResponseItem = zod.union([zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -52,7 +52,7 @@ export const listPropertiesResponseItem = zod'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -113,14 +113,14 @@ export const listPropertiesResponseItem = zod),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'),zod.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -136,7 +136,7 @@ export const listPropertiesResponseItem = zod'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -197,17 +197,17 @@ export const listPropertiesResponseItem = zod),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'),property_options: zod.array(zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),display_order: zod.number(),- id: zod.string().uuid(),- property_definition_id: zod.string().uuid(),- updated_at: zod.string().datetime({}),+ id: zod.uuid(),+ property_definition_id: zod.uuid(),+ updated_at: zod.iso.datetime({}),value: zod.union([zod@@ -372,23 +372,23 @@ export const createPropertyDefinitionBody = zod* @summary Delete a property definition*/export const deletePropertyDefinitionParams = zod.object({- definition_id: zod.string().uuid().describe('Property definition ID'),+ definition_id: zod.uuid().describe('Property definition ID'),});/*** @summary Get all options for a property (for dropdowns)*/export const getPropertyOptionsParams = zod.object({- definition_id: zod.string().uuid().describe('Property definition ID'),+ definition_id: zod.uuid().describe('Property definition ID'),});export const getPropertyOptionsResponseItem = zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),display_order: zod.number(),- id: zod.string().uuid(),- property_definition_id: zod.string().uuid(),- updated_at: zod.string().datetime({}),+ id: zod.uuid(),+ property_definition_id: zod.uuid(),+ updated_at: zod.iso.datetime({}),value: zod.union([zod@@ -423,7 +423,7 @@ export const getPropertyOptionsResponse = zod.array(* @summary Add a new option to a property dropdown*/export const addPropertyOptionParams = zod.object({- definition_id: zod.string().uuid().describe('Property definition ID'),+ definition_id: zod.uuid().describe('Property definition ID'),});export const addPropertyOptionBody = zod@@ -461,8 +461,8 @@ export const addPropertyOptionBody = zod* @summary Delete a property option*/export const deletePropertyOptionParams = zod.object({- definition_id: zod.string().uuid().describe('Property definition ID'),- option_id: zod.string().uuid().describe('Property option ID'),+ definition_id: zod.uuid().describe('Property definition ID'),+ option_id: zod.uuid().describe('Property option ID'),});/**@@ -492,7 +492,6 @@ export const getBulkEntityPropertiesBody = zod'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -503,7 +502,7 @@ export const getBulkEntityPropertiesBody = zod).describe('Array of entity references (entity_id and entity_type pairs)'),property_ids: zod- .array(zod.string().uuid())+ .array(zod.uuid()).optional().describe('Optional: only return properties with these definition IDs. If empty, returns all.'@@ -521,7 +520,7 @@ export const getBulkEntityPropertiesResponse = zod.record(.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -537,7 +536,7 @@ export const getBulkEntityPropertiesResponse = zod.record('Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -598,18 +597,18 @@ export const getBulkEntityPropertiesResponse = zod.record(),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'),options: zod.array(zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),display_order: zod.number(),- id: zod.string().uuid(),- property_definition_id: zod.string().uuid(),- updated_at: zod.string().datetime({}),+ id: zod.uuid(),+ property_definition_id: zod.uuid(),+ updated_at: zod.iso.datetime({}),value: zod.union([zod@@ -644,7 +643,7 @@ export const getBulkEntityPropertiesResponse = zod.record(.nullish(),property: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),entity_id: zod.string(),entity_type: zod.enum([@@ -660,9 +659,9 @@ export const getBulkEntityPropertiesResponse = zod.record(.describe('Type of entity that can be referenced by entity properties.'),- id: zod.string().uuid(),- property_definition_id: zod.string().uuid(),- updated_at: zod.string().datetime({}),+ id: zod.uuid(),+ property_definition_id: zod.uuid(),+ updated_at: zod.iso.datetime({}),}).describe('Assignment of a property definition to a specific entity (service representation).'@@ -711,8 +710,7 @@ export const getBulkEntityPropertiesResponse = zod.record(zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -725,7 +723,7 @@ export const getBulkEntityPropertiesResponse = zod.record(.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -756,7 +754,6 @@ export const getBulkEntityPropertiesResponse = zod.record('Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -835,7 +832,7 @@ export const getEntityPropertiesResponse = zod.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -851,7 +848,7 @@ export const getEntityPropertiesResponse = zod'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -912,18 +909,18 @@ export const getEntityPropertiesResponse = zod),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'),options: zod.array(zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),display_order: zod.number(),- id: zod.string().uuid(),- property_definition_id: zod.string().uuid(),- updated_at: zod.string().datetime({}),+ id: zod.uuid(),+ property_definition_id: zod.uuid(),+ updated_at: zod.iso.datetime({}),value: zod.union([zod@@ -958,7 +955,7 @@ export const getEntityPropertiesResponse = zod.nullish(),property: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),entity_id: zod.string(),entity_type: zod.enum([@@ -974,9 +971,9 @@ export const getEntityPropertiesResponse = zod.describe('Type of entity that can be referenced by entity properties.'),- id: zod.string().uuid(),- property_definition_id: zod.string().uuid(),- updated_at: zod.string().datetime({}),+ id: zod.uuid(),+ property_definition_id: zod.uuid(),+ updated_at: zod.iso.datetime({}),}).describe('Assignment of a property definition to a specific entity (service representation).'@@ -1025,8 +1022,7 @@ export const getEntityPropertiesResponse = zodzod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -1039,7 +1035,7 @@ export const getEntityPropertiesResponse = zod.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -1070,7 +1066,6 @@ export const getEntityPropertiesResponse = zod'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -1131,7 +1126,7 @@ export const setEntityPropertyParams = zod.object({]).describe('Entity type (user, document, channel, project, thread)'),entity_id: zod.string().describe('Entity ID'),- property_id: zod.string().uuid().describe('Property ID'),+ property_id: zod.uuid().describe('Property ID'),});export const setEntityPropertyBody = zod@@ -1150,7 +1145,7 @@ export const setEntityPropertyBody = zodzod.object({type: zod.enum(['date']),- value: zod.string().datetime({}),+ value: zod.iso.datetime({}),}).describe('Date and time value'),zod@@ -1167,13 +1162,13 @@ export const setEntityPropertyBody = zod.describe('String\/text value'),zod.object({- option_id: zod.string().uuid(),+ option_id: zod.uuid(),type: zod.enum(['select_option']),}).describe('Select option by ID (for select-type properties)'),zod.object({- option_ids: zod.array(zod.string().uuid()),+ option_ids: zod.array(zod.uuid()),type: zod.enum(['multi_select_option']),}).describe(@@ -1199,7 +1194,6 @@ export const setEntityPropertyBody = zod'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -1233,7 +1227,6 @@ export const setEntityPropertyBody = zod'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -1276,5 +1269,5 @@ export const setEntityPropertyBody = zod* @summary Remove a specific entity property by its ID*/export const deleteEntityPropertyParams = zod.object({- entity_property_id: zod.string().uuid().describe('Entity Property ID'),+ entity_property_id: zod.uuid().describe('Entity Property ID'),});diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/callRecordTranscriptSegment.ts b/js/app/packages/service-clients/service-storage/generated/schemas/callRecordTranscriptSegment.tsindex c4f29ecdd8..09ff677c95 100644--- a/js/app/packages/service-clients/service-storage/generated/schemas/callRecordTranscriptSegment.ts+++ b/js/app/packages/service-clients/service-storage/generated/schemas/callRecordTranscriptSegment.ts@@ -28,4 +28,6 @@ return a speaker label. */speakerId: string;/** When the speaker started this segment. */startedAt: string;+ /** Stable DB-row id for the segment. */+ transcriptId: string;}diff --git a/js/app/packages/service-clients/service-storage/generated/zod.ts b/js/app/packages/service-clients/service-storage/generated/zod.tsindex b11c49dfae..45b56d3cfb 100644--- a/js/app/packages/service-clients/service-storage/generated/zod.ts+++ b/js/app/packages/service-clients/service-storage/generated/zod.ts@@ -43,13 +43,11 @@ export const getRecentActivityHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -103,8 +101,7 @@ export const getRecentActivityHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -115,13 +112,11 @@ export const getRecentActivityHandlerResponse = zod.object({}),zod.object({Chat: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),@@ -137,8 +132,7 @@ export const getRecentActivityHandlerResponse = zod.object({.nullish().describe('The project id of the chat'),tokenCount: zod.number().nullish(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last updated'),@@ -165,7 +159,7 @@ If you need to delete a threaded anchor, see the delete comment handlerexport const deleteAnchorBody = zod.object({anchorType: zod.enum(['highlight']),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),}).and(zod.object({@@ -177,11 +171,11 @@ export const deleteAnchorResponse = zod.union([zod.object({anchorType: zod.enum(['free-comment']),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),}),zod.object({anchorType: zod.enum(['highlight']),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),}),]).and(@@ -208,7 +202,7 @@ export const editAnchorBody = zodpage: zod.number().nullish(),rotation: zod.number().nullish(),shouldLockOnSave: zod.boolean().nullish(),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),wasDeleted: zod.boolean().nullish(),wasEdited: zod.boolean().nullish(),widthPct: zod.number().nullish(),@@ -240,7 +234,7 @@ export const editAnchorResponse = zodrotation: zod.number(),shouldLockOnSave: zod.boolean(),threadId: zod.number(),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),wasDeleted: zod.boolean(),wasEdited: zod.boolean(),widthPct: zod.number(),@@ -256,8 +250,8 @@ export const editAnchorResponse = zod.object({alpha: zod.number(),blue: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),documentId: zod.string(),green: zod.number(),highlightRects: zod.array(@@ -281,8 +275,8 @@ export const editAnchorResponse = zodred: zod.number(),text: zod.string(),threadId: zod.number().nullish(),- updatedAt: zod.string().datetime({}).nullish(),- uuid: zod.string().uuid(),+ updatedAt: zod.iso.datetime({}).nullish(),+ uuid: zod.uuid(),}).and(zod.object({@@ -318,7 +312,7 @@ export const getDocumentAnchorsResponse = zod.object({rotation: zod.number(),shouldLockOnSave: zod.boolean(),threadId: zod.number(),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),wasDeleted: zod.boolean(),wasEdited: zod.boolean(),widthPct: zod.number(),@@ -334,8 +328,8 @@ export const getDocumentAnchorsResponse = zod.object({.object({alpha: zod.number(),blue: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),documentId: zod.string(),green: zod.number(),highlightRects: zod.array(@@ -359,8 +353,8 @@ export const getDocumentAnchorsResponse = zod.object({red: zod.number(),text: zod.string(),threadId: zod.number().nullish(),- updatedAt: zod.string().datetime({}).nullish(),- uuid: zod.string().uuid(),+ updatedAt: zod.iso.datetime({}).nullish(),+ uuid: zod.uuid(),}).and(zod.object({@@ -398,7 +392,7 @@ export const createAnchorBody = zodpageViewportWidth: zod.number(),red: zod.number(),text: zod.string(),- uuid: zod.string().uuid().nullish(),+ uuid: zod.uuid().nullish(),}).and(zod.object({@@ -425,7 +419,7 @@ export const createAnchorResponse = zodrotation: zod.number(),shouldLockOnSave: zod.boolean(),threadId: zod.number(),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),wasDeleted: zod.boolean(),wasEdited: zod.boolean(),widthPct: zod.number(),@@ -441,8 +435,8 @@ export const createAnchorResponse = zod.object({alpha: zod.number(),blue: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),documentId: zod.string(),green: zod.number(),highlightRects: zod.array(@@ -466,8 +460,8 @@ export const createAnchorResponse = zodred: zod.number(),text: zod.string(),threadId: zod.number().nullish(),- updatedAt: zod.string().datetime({}).nullish(),- uuid: zod.string().uuid(),+ updatedAt: zod.iso.datetime({}).nullish(),+ uuid: zod.uuid(),}).and(zod.object({@@ -502,11 +496,11 @@ export const deleteCommentResponse = zod.object({.union([zod.object({anchorType: zod.enum(['free-comment']),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),}),zod.object({anchorType: zod.enum(['highlight']),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),}),]).and(@@ -554,15 +548,15 @@ export const editCommentBody = zod.object({export const editCommentResponse = zod.object({commentId: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),metadata: zod.unknown().optional(),order: zod.number().nullish(),owner: zod.string(),sender: zod.string().nullish(),text: zod.string(),threadId: zod.number(),- updatedAt: zod.string().datetime({}).nullish(),+ updatedAt: zod.iso.datetime({}).nullish(),}).and(zod.object({@@ -586,26 +580,26 @@ export const getDocumentCommentsResponse = zod.object({comments: zod.array(zod.object({commentId: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),metadata: zod.unknown().optional(),order: zod.number().nullish(),owner: zod.string(),sender: zod.string().nullish(),text: zod.string(),threadId: zod.number(),- updatedAt: zod.string().datetime({}).nullish(),+ updatedAt: zod.iso.datetime({}).nullish(),})),thread: zod.object({- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),documentId: zod.string(),metadata: zod.unknown().optional(),owner: zod.string(),resolved: zod.boolean(),threadId: zod.number(),- updatedAt: zod.string().datetime({}).nullish(),+ updatedAt: zod.iso.datetime({}).nullish(),}),})),@@ -634,7 +628,7 @@ export const createCommentBody = zod.object({page: zod.number(),rotation: zod.number(),shouldLockOnSave: zod.boolean(),- uuid: zod.string().uuid().nullish(),+ uuid: zod.uuid().nullish(),wasDeleted: zod.boolean(),wasEdited: zod.boolean(),widthPct: zod.number(),@@ -669,7 +663,7 @@ export const createCommentBody = zod.object({pageViewportWidth: zod.number(),red: zod.number(),text: zod.string(),- uuid: zod.string().uuid().nullish(),+ uuid: zod.uuid().nullish(),}).and(zod.object({@@ -679,7 +673,7 @@ export const createCommentBody = zod.object({zod.object({attachmentType: zod.enum(['highlight']),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),}).and(zod.object({@@ -714,26 +708,26 @@ export const createCommentResponse = zodcomments: zod.array(zod.object({commentId: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),metadata: zod.unknown().optional(),order: zod.number().nullish(),owner: zod.string(),sender: zod.string().nullish(),text: zod.string(),threadId: zod.number(),- updatedAt: zod.string().datetime({}).nullish(),+ updatedAt: zod.iso.datetime({}).nullish(),})),thread: zod.object({- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),documentId: zod.string(),metadata: zod.unknown().optional(),owner: zod.string(),resolved: zod.boolean(),threadId: zod.number(),- updatedAt: zod.string().datetime({}).nullish(),+ updatedAt: zod.iso.datetime({}).nullish(),}),}).and(@@ -754,7 +748,7 @@ export const createCommentResponse = zodrotation: zod.number(),shouldLockOnSave: zod.boolean(),threadId: zod.number(),- uuid: zod.string().uuid(),+ uuid: zod.uuid(),wasDeleted: zod.boolean(),wasEdited: zod.boolean(),widthPct: zod.number(),@@ -770,8 +764,8 @@ export const createCommentResponse = zod.object({alpha: zod.number(),blue: zod.number(),- createdAt: zod.string().datetime({}).nullish(),- deletedAt: zod.string().datetime({}).nullish(),+ createdAt: zod.iso.datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),documentId: zod.string(),green: zod.number(),highlightRects: zod.array(@@ -795,8 +789,8 @@ export const createCommentResponse = zodred: zod.number(),text: zod.string(),threadId: zod.number().nullish(),- updatedAt: zod.string().datetime({}).nullish(),- uuid: zod.string().uuid(),+ updatedAt: zod.iso.datetime({}).nullish(),+ uuid: zod.uuid(),}).and(zod.object({@@ -820,7 +814,7 @@ ids are deduplicated server-side, and missing ids come back asexport const getBatchCallRecordPreviewBody = zod.object({callIds: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('The call ids to preview. Duplicate ids are deduplicated server-side.\nCapped at [`MAX_BATCH_CALL_IDS`] entries.'),@@ -837,22 +831,19 @@ export const getBatchCallRecordPreviewResponse = zod.union([zod.object({- callId: zod.string().uuid().describe('The call identifier.'),+ callId: zod.uuid().describe('The call identifier.'),channelId: zod- .string().uuid().describe('The channel this call belongs to.'),channelName: zod.string().nullish().describe('Resolved display name for the channel.'),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the call ended (None if still active).'),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the call started (created_at for active, started_at for archived).'@@ -869,7 +860,7 @@ export const getBatchCallRecordPreviewResponse = zod),zod.object({- callId: zod.string().uuid().describe('The call identifier.'),+ callId: zod.uuid().describe('The call identifier.'),}).describe('Wrapper carrying just a call id. Used by the [`CallRecordPreview::DoesNotExist`]\nvariant.'@@ -898,16 +889,13 @@ Access is validated via channel membership (MemberParticipantRole).* @summary Handler for `GET /call/record/{call_id}`.*/export const getCallRecordParams = zod.object({- call_id: zod.string().uuid().describe('Call ID'),+ call_id: zod.uuid().describe('Call ID'),});export const getCallRecordResponse = zod.object({- callId: zod.string().uuid().describe('The call identifier.'),- channelId: zod- .string()- .uuid()- .describe('The channel this call belongs to.'),+ callId: zod.uuid().describe('The call identifier.'),+ channelId: zod.uuid().describe('The channel this call belongs to.'),channelName: zod.string().nullish()@@ -924,8 +912,7 @@ export const getCallRecordResponse = zod.nullish().describe('Call duration in milliseconds (None if still active).'),egressId: zod.string().nullish().describe('Recording egress ID, if any.'),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the call ended (None if still active).'),@@ -936,12 +923,10 @@ export const getCallRecordResponse = zod.array(zod.object({- joinedAt: zod- .string()+ joinedAt: zod.iso.datetime({}).describe('When the user joined the call.'),- leftAt: zod- .string()+ leftAt: zod.iso.datetime({}).nullish().describe(@@ -959,8 +944,7 @@ export const getCallRecordResponse = zod.nullish().describe('Presigned URL for the call recording, if available.'),roomName: zod.string().describe('The RTC room name.'),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the call started (created_at for active, started_at for archived).'@@ -982,8 +966,7 @@ export const getCallRecordResponse = zod.describe("Stable per-speaker identifier produced by the STT provider's diarization\npass. Unique across tracks in the call. `None` when the provider didn't\nreturn a speaker label."),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the speaker stopped (if known).'),@@ -993,10 +976,12 @@ export const getCallRecordResponse = zod.describe('LiveKit segment ID (nullable for archived records).'),sequenceNum: zod.number().describe('Ordering within the call.'),speakerId: zod.string().describe("The speaker's user ID."),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the speaker started this segment.'),+ transcriptId: zod+ .uuid()+ .describe('Stable DB-row id for the segment.'),}).describe('A transcript segment as returned in a [`CallRecord`].'))@@ -1012,7 +997,7 @@ Access is validated via channel membership (MemberParticipantRole).* @summary Handler for `DELETE /call/record/{call_id}`.*/export const deleteCallRecordParams = zod.object({- call_id: zod.string().uuid().describe('Call ID'),+ call_id: zod.uuid().describe('Call ID'),});/**@@ -1021,7 +1006,7 @@ permissions. Access is validated via channel membership* @summary Handler for `PATCH /call/record/{call_id}`.*/export const editCallRecordParams = zod.object({- call_id: zod.string().uuid().describe('Call ID'),+ call_id: zod.uuid().describe('Call ID'),});export const editCallRecordBody = zod@@ -1087,7 +1072,7 @@ value as the JSON body.* @summary Handler for `POST /call/record/{call_id}/share-with-team/toggle`.*/export const toggleShareWithTeamParams = zod.object({- call_id: zod.string().uuid().describe('Call ID'),+ call_id: zod.uuid().describe('Call ID'),});export const toggleShareWithTeamResponse = zod.boolean();@@ -1099,7 +1084,7 @@ as `edit_call_record_handler`.* @summary Handler for `PATCH /call/record/{call_id}/transcript`.*/export const editCallTranscriptParams = zod.object({- call_id: zod.string().uuid().describe('Call ID'),+ call_id: zod.uuid().describe('Call ID'),});export const editCallTranscriptBody = zod@@ -1135,16 +1120,13 @@ otherwise creates a new one. Always returns a join token.* @summary Handler for `GET /call/{channel_id}`.*/export const getOrCreateCallParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const getOrCreateCallResponse = zod.object({- callId: zod.string().uuid().describe('The call identifier.'),- channelId: zod- .string()- .uuid()- .describe('The channel this call is associated with.'),+ callId: zod.uuid().describe('The call identifier.'),+ channelId: zod.uuid().describe('The channel this call is associated with.'),roomName: zod.string().describe('The RTC room name.'),serverUrl: zod.string()@@ -1157,7 +1139,7 @@ export const getOrCreateCallResponse = zod* @summary Handler for `DELETE /call/{channel_id}`.*/export const leaveOrEndCallParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const leaveOrEndCallResponse = zod@@ -1173,17 +1155,14 @@ export const leaveOrEndCallResponse = zod* @summary Handler for `GET /call/{channel_id}/active`.*/export const checkActiveCallParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const checkActiveCallResponse = zod.object({- callId: zod.string().uuid().describe('The call identifier.'),- channelId: zod- .string()- .uuid()- .describe('The channel this call belongs to.'),- createdAt: zod.string().datetime({}).describe('When the call was created.'),+ callId: zod.uuid().describe('The call identifier.'),+ channelId: zod.uuid().describe('The channel this call belongs to.'),+ createdAt: zod.iso.datetime({}).describe('When the call was created.'),createdBy: zod.string().describe('User who created the call.'),}).describe('Response indicating whether an active call exists for a channel.');@@ -1195,7 +1174,7 @@ Duplicate segments (same `segment_id`) are ignored.* @summary Handler for `POST /call/{channel_id}/transcript`.*/export const ingestTranscriptParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const ingestTranscriptBody = zod@@ -1207,8 +1186,7 @@ export const ingestTranscriptBody = zod.describe("Stable per-speaker identifier produced by the STT provider's diarization\npass. Namespaced upstream by audio track so values are unique across all\ntracks in a call. `None` when the provider didn't return a speaker label."),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the speaker stopped talking for this segment.'),@@ -1223,8 +1201,7 @@ export const ingestTranscriptBody = zodspeakerId: zod.string().describe("The speaker's user ID (from `lk.transcribed_track_id`)."),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the speaker started talking for this segment.'),})@@ -1234,7 +1211,7 @@ export const ingestTranscriptBody = zod* @summary Handler for `GET /channels/{channel_id}/attachments`.*/export const getChannelAttachmentsParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const getChannelAttachmentsQueryLimitMin = 0;@@ -1260,17 +1237,15 @@ export const getChannelAttachmentsResponse = zod.array(zod.object({- channel_id: zod.string().uuid().describe('Channel id.'),- created_at: zod- .string()+ channel_id: zod.uuid().describe('Channel id.'),+ created_at: zod.iso.datetime({}).describe('When the attachment was created.'),entity_id: zod.string().describe('Entity id.'),entity_type: zod.string().describe('Type of entity.'),height: zod.number().nullish().describe('Height (for images).'),- id: zod.string().uuid().describe('Attachment id.'),+ id: zod.uuid().describe('Attachment id.'),message_id: zod- .string().uuid().describe('Message id this attachment belongs to.'),sender_id: zod@@ -1294,7 +1269,7 @@ export const getChannelAttachmentsResponse = zod* @summary Handler for `GET /channels/{channel_id}/messages`.*/export const getChannelMessagesParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const getChannelMessagesQueryLimitMin = 0;@@ -1314,7 +1289,6 @@ export const getChannelMessagesQueryParams = zod.object({.optional().describe('Base64 encoded cursor value for newer messages'),load_around_message_id: zod- .string().uuid().optional().describe('Return a centered window around this message ID'),@@ -1330,8 +1304,7 @@ export const getChannelMessagesResponse = zod.array(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the attachment was created.'),entity_id: zod.string().describe('Entity id.'),@@ -1340,7 +1313,7 @@ export const getChannelMessagesResponse = zod.number().nullish().describe('Height (for images).'),- id: zod.string().uuid().describe('Attachment id.'),+ id: zod.uuid().describe('Attachment id.'),width: zod.number().nullish()@@ -1349,23 +1322,20 @@ export const getChannelMessagesResponse = zod.describe('An attachment on a message.')).describe('Attachments on this message.'),- channel_id: zod.string().uuid().describe('Channel id.'),+ channel_id: zod.uuid().describe('Channel id.'),content: zod.string().describe('Message content.'),- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the message was created.'),- deleted_at: zod- .string()+ deleted_at: zod.iso.datetime({}).nullish().describe('When the message was soft-deleted.'),- edited_at: zod- .string()+ edited_at: zod.iso.datetime({}).nullish().describe('When the message was edited.'),- id: zod.string().uuid().describe('Message id.'),+ id: zod.uuid().describe('Message id.'),reactions: zod.array(zod@@ -1381,8 +1351,7 @@ export const getChannelMessagesResponse = zodsender_id: zod.string().describe('Sender user id.'),thread: zod.object({- latest_reply_at: zod- .string()+ latest_reply_at: zod.iso.datetime({}).nullish().describe('Timestamp of the latest reply.'),@@ -1394,8 +1363,7 @@ export const getChannelMessagesResponse = zod.array(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the attachment was created.'),entity_id: zod.string().describe('Entity id.'),@@ -1406,10 +1374,7 @@ export const getChannelMessagesResponse = zod.number().nullish().describe('Height (for images).'),- id: zod- .string()- .uuid()- .describe('Attachment id.'),+ id: zod.uuid().describe('Attachment id.'),width: zod.number().nullish()@@ -1419,16 +1384,14 @@ export const getChannelMessagesResponse = zod).describe('Attachments on this reply.'),content: zod.string().describe('Reply content.'),- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the reply was created.'),- edited_at: zod- .string()+ edited_at: zod.iso.datetime({}).nullish().describe('When the reply was edited.'),- id: zod.string().uuid().describe('Reply id.'),+ id: zod.uuid().describe('Reply id.'),reactions: zod.array(zod@@ -1446,8 +1409,7 @@ export const getChannelMessagesResponse = zod).describe('Reactions on this reply.'),sender_id: zod.string().describe('Sender user id.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the reply was last updated.'),})@@ -1457,8 +1419,7 @@ export const getChannelMessagesResponse = zodreply_count: zod.number().describe('Total reply count.'),}).describe('Thread metadata and preview replies.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the message was last updated.'),})@@ -1480,7 +1441,7 @@ export const getChannelMessagesResponse = zod* @summary Handler for `POST /channels/{channel_id}/messages`.*/export const postChannelMessagesParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const postChannelMessagesQueryLimitMin = 0;@@ -1500,7 +1461,6 @@ export const postChannelMessagesQueryParams = zod.object({.optional().describe('Base64 encoded cursor value for newer messages'),load_around_message_id: zod- .string().uuid().optional().describe('Return a centered window around this message ID'),@@ -1508,15 +1468,14 @@ export const postChannelMessagesQueryParams = zod.object({export const postChannelMessagesBody = zod.object({- last_activity: zod- .string()+ last_activity: zod.iso.datetime({}).nullish().describe('When set, only return top-level messages that have activity after this\ntimestamp. Activity means either the message itself was created after\nthis time, or a thread reply was created after this time.'),message_ids: zod- .array(zod.string().uuid())+ .array(zod.uuid()).optional().describe('When non-empty, only return messages with these IDs.'),notification_filters: zod@@ -1549,8 +1508,7 @@ export const postChannelMessagesResponse = zod.array(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the attachment was created.'),entity_id: zod.string().describe('Entity id.'),@@ -1559,7 +1517,7 @@ export const postChannelMessagesResponse = zod.number().nullish().describe('Height (for images).'),- id: zod.string().uuid().describe('Attachment id.'),+ id: zod.uuid().describe('Attachment id.'),width: zod.number().nullish()@@ -1568,23 +1526,20 @@ export const postChannelMessagesResponse = zod.describe('An attachment on a message.')).describe('Attachments on this message.'),- channel_id: zod.string().uuid().describe('Channel id.'),+ channel_id: zod.uuid().describe('Channel id.'),content: zod.string().describe('Message content.'),- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the message was created.'),- deleted_at: zod- .string()+ deleted_at: zod.iso.datetime({}).nullish().describe('When the message was soft-deleted.'),- edited_at: zod- .string()+ edited_at: zod.iso.datetime({}).nullish().describe('When the message was edited.'),- id: zod.string().uuid().describe('Message id.'),+ id: zod.uuid().describe('Message id.'),reactions: zod.array(zod@@ -1600,8 +1555,7 @@ export const postChannelMessagesResponse = zodsender_id: zod.string().describe('Sender user id.'),thread: zod.object({- latest_reply_at: zod- .string()+ latest_reply_at: zod.iso.datetime({}).nullish().describe('Timestamp of the latest reply.'),@@ -1613,8 +1567,7 @@ export const postChannelMessagesResponse = zod.array(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the attachment was created.'),entity_id: zod.string().describe('Entity id.'),@@ -1625,10 +1578,7 @@ export const postChannelMessagesResponse = zod.number().nullish().describe('Height (for images).'),- id: zod- .string()- .uuid()- .describe('Attachment id.'),+ id: zod.uuid().describe('Attachment id.'),width: zod.number().nullish()@@ -1638,16 +1588,14 @@ export const postChannelMessagesResponse = zod).describe('Attachments on this reply.'),content: zod.string().describe('Reply content.'),- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the reply was created.'),- edited_at: zod- .string()+ edited_at: zod.iso.datetime({}).nullish().describe('When the reply was edited.'),- id: zod.string().uuid().describe('Reply id.'),+ id: zod.uuid().describe('Reply id.'),reactions: zod.array(zod@@ -1665,8 +1613,7 @@ export const postChannelMessagesResponse = zod).describe('Reactions on this reply.'),sender_id: zod.string().describe('Sender user id.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the reply was last updated.'),})@@ -1676,8 +1623,7 @@ export const postChannelMessagesResponse = zodreply_count: zod.number().describe('Total reply count.'),}).describe('Thread metadata and preview replies.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the message was last updated.'),})@@ -1699,11 +1645,8 @@ export const postChannelMessagesResponse = zod* @summary Handler for `GET /channels/{channel_id}/messages/{message_id}/replies`.*/export const getThreadRepliesParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),- message_id: zod- .string()- .uuid()- .describe('Message ID (thread parent or reply id)'),+ channel_id: zod.uuid().describe('Channel ID'),+ message_id: zod.uuid().describe('Message ID (thread parent or reply id)'),});export const getThreadRepliesResponseItem = zod@@ -1712,30 +1655,25 @@ export const getThreadRepliesResponseItem = zod.array(zod.object({- created_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the attachment was created.'),entity_id: zod.string().describe('Entity id.'),entity_type: zod.string().describe('Type of entity.'),height: zod.number().nullish().describe('Height (for images).'),- id: zod.string().uuid().describe('Attachment id.'),+ id: zod.uuid().describe('Attachment id.'),width: zod.number().nullish().describe('Width (for images).'),}).describe('An attachment on a message.')).describe('Attachments on this reply.'),content: zod.string().describe('Reply content.'),- created_at: zod- .string()- .datetime({})- .describe('When the reply was created.'),- edited_at: zod- .string()+ created_at: zod.iso.datetime({}).describe('When the reply was created.'),+ edited_at: zod.iso.datetime({}).nullish().describe('When the reply was edited.'),- id: zod.string().uuid().describe('Reply id.'),+ id: zod.uuid().describe('Reply id.'),reactions: zod.array(zod@@ -1749,8 +1687,7 @@ export const getThreadRepliesResponseItem = zod).describe('Reactions on this reply.'),sender_id: zod.string().describe('Sender user id.'),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).describe('When the reply was last updated.'),})@@ -1761,13 +1698,13 @@ export const getThreadRepliesResponse = zod.array(getThreadRepliesResponseItem);* @summary Handler for `GET /channels/{channel_id}/participants`.*/export const getChannelParticipantsParams = zod.object({- channel_id: zod.string().uuid().describe('Channel ID'),+ channel_id: zod.uuid().describe('Channel ID'),});export const getChannelParticipantsResponseItem = zod.object({- channel_id: zod.string().uuid().describe('Channel id.'),- joined_at: zod.string().datetime({}).describe('When the user joined.'),+ channel_id: zod.uuid().describe('Channel id.'),+ joined_at: zod.iso.datetime({}).describe('When the user joined.'),role: zod.enum(['owner', 'admin', 'member']).describe('Participant role in a channel.'),@@ -1808,13 +1745,11 @@ export const getUserDocumentsHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -1886,8 +1821,7 @@ export const getUserDocumentsHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -1923,8 +1857,7 @@ export const createDocumentBody = zod.object({.number().nullish().describe('The version id if the document is being branched.'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe(@@ -1938,7 +1871,6 @@ export const createDocumentBody = zod.object({.string().describe('The name of the document without extension.'),emailAttachmentId: zod- .string().uuid().nullish().describe(@@ -1948,11 +1880,7 @@ export const createDocumentBody = zod.object({.string().nullish().describe('Optional file type of the document.'),- id: zod- .string()- .uuid()- .nullish()- .describe('The id of the document in the database'),+ id: zod.uuid().nullish().describe('The id of the document in the database'),isTask: zod.boolean().optional()@@ -1971,7 +1899,7 @@ export const createDocumentBody = zod.object({.describe('The content type of the document (currently only used for logging matches against file type).'),- projectId: zod.string().uuid().nullish(),+ projectId: zod.uuid().nullish(),sha: zod.string().describe('The sha of the document.'),skipHistory: zod.boolean()@@ -1995,8 +1923,7 @@ export const createDocumentResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),@@ -2056,8 +1983,7 @@ export const createDocumentResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -2089,7 +2015,6 @@ Task content should be set separately via the sync service.export const createTaskHandlerBody = zod.object({projectId: zod- .string().uuid().nullish().describe('Optional project ID to associate the task with.'),@@ -2109,7 +2034,7 @@ export const createTaskHandlerBody = zodzod.object({type: zod.enum(['date']),- value: zod.string().datetime({}),+ value: zod.iso.datetime({}),}).describe('Date and time value'),zod@@ -2126,13 +2051,13 @@ export const createTaskHandlerBody = zod.describe('String\/text value'),zod.object({- option_id: zod.string().uuid(),+ option_id: zod.uuid(),type: zod.enum(['select_option']),}).describe('Select option by ID (for select-type properties)'),zod.object({- option_ids: zod.array(zod.string().uuid()),+ option_ids: zod.array(zod.uuid()),type: zod.enum(['multi_select_option']),}).describe(@@ -2158,7 +2083,6 @@ export const createTaskHandlerBody = zod'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -2192,7 +2116,6 @@ export const createTaskHandlerBody = zod'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -2268,8 +2191,7 @@ export const getDocumentListHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),@@ -2286,8 +2208,7 @@ export const getDocumentListHandlerResponse = zod.object({.string().nullish().describe('The file type of the document'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -2410,8 +2331,7 @@ export const getBatchPreviewHandlerResponse = zod.object({),]).optional(),- updated_at: zod- .string()+ updated_at: zod.iso.datetime({}).nullish().describe('The time the document was last updated'),@@ -2464,13 +2384,11 @@ export const getDocumentResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -2538,8 +2456,7 @@ export const getDocumentResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the document instance \/ document BOM was updated'),@@ -2605,8 +2522,7 @@ export const saveDocumentHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),@@ -2666,8 +2582,7 @@ export const saveDocumentHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the document instance \/ document BOM was updated'),@@ -3258,8 +3173,7 @@ export const copyDocumentResponse = zod.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),@@ -3319,8 +3233,7 @@ export const copyDocumentResponse = zod),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -3505,8 +3418,7 @@ export const simpleSaveResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),@@ -3566,8 +3478,7 @@ export const simpleSaveResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the document instance \/ document BOM was updated'),@@ -3617,13 +3528,11 @@ export const getDocumentVersionResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -3691,8 +3600,7 @@ export const getDocumentVersionResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the document instance \/ document BOM was updated'),@@ -3773,13 +3681,11 @@ export const getHistoryHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -3827,8 +3733,7 @@ export const getHistoryHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -3837,13 +3742,11 @@ export const getHistoryHandlerResponse = zod.object({type: zod.enum(['document']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),@@ -3859,8 +3762,7 @@ export const getHistoryHandlerResponse = zod.object({.nullish().describe('The project id of the chat'),tokenCount: zod.number().nullish(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last updated'),@@ -3868,17 +3770,15 @@ export const getHistoryHandlerResponse = zod.object({type: zod.enum(['chat']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -3976,7 +3876,6 @@ export const getItemsSoupResponse = zod.object({zod.object({data: zod.object({branchedFromId: zod- .string().uuid().nullish().describe('The id of the document this document branched from'),@@ -3986,12 +3885,10 @@ export const getItemsSoupResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -4010,11 +3907,10 @@ export const getItemsSoupResponse = zod.object({.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),- id: zod.string().uuid().describe('The document id'),+ id: zod.uuid().describe('The document id'),name: zod.string().describe('The name of the document'),ownerId: zod.string().describe('The owner of the document'),projectId: zod- .string().uuid().nullish().describe('The id of the project that this document belongs to'),@@ -4024,7 +3920,7 @@ export const getItemsSoupResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -4040,7 +3936,7 @@ export const getItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -4103,7 +3999,7 @@ export const getItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -4152,8 +4048,7 @@ export const getItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -4166,7 +4061,7 @@ export const getItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -4197,7 +4092,6 @@ export const getItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -4263,14 +4157,12 @@ export const getItemsSoupResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the document instance \/ document BOM was updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the document was last viewed'),@@ -4279,23 +4171,20 @@ export const getItemsSoupResponse = zod.object({}),zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),- id: zod.string().uuid().describe('The chat uuid'),+ id: zod.uuid().describe('The chat uuid'),isPersistent: zod.boolean().describe('Whether the chat is persistent or not'),name: zod.string().describe('The name of the chat'),ownerId: zod.string().describe('Who the chat belongs to'),projectId: zod- .string().uuid().nullish().describe('The project id of the chat'),@@ -4305,7 +4194,7 @@ export const getItemsSoupResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -4321,7 +4210,7 @@ export const getItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -4384,7 +4273,7 @@ export const getItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -4433,8 +4322,7 @@ export const getItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -4447,7 +4335,7 @@ export const getItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -4478,7 +4366,6 @@ export const getItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -4520,12 +4407,10 @@ export const getItemsSoupResponse = zod.object({)).describe('Properties'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the chat was last updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last viewed'),@@ -4534,32 +4419,26 @@ export const getItemsSoupResponse = zod.object({}),zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the project was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the project was deleted'),- id: zod.string().uuid().describe('The id of the project'),+ id: zod.uuid().describe('The id of the project'),name: zod.string().describe('The name of the project'),ownerId: zod.string().describe('The user id of who created the project'),- parentId: zod- .string()- .uuid()- .nullish()- .describe('The parent project id'),+ parentId: zod.uuid().nullish().describe('The parent project id'),properties: zod.array(zod.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -4575,7 +4454,7 @@ export const getItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -4638,7 +4517,7 @@ export const getItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -4687,8 +4566,7 @@ export const getItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -4701,7 +4579,7 @@ export const getItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -4732,7 +4610,6 @@ export const getItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -4774,12 +4651,10 @@ export const getItemsSoupResponse = zod.object({)).describe('Properties'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the project was updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the document was last viewed'),@@ -4789,8 +4664,8 @@ export const getItemsSoupResponse = zod.object({zod.object({data: zod.object({- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),inboxVisible: zod.boolean(),isDraft: zod.boolean(),isImportant: zod.boolean(),@@ -4803,19 +4678,19 @@ export const getItemsSoupResponse = zod.object({senderName: zod.string().nullish(),senderPhotoUrl: zod.string().nullish(),snippet: zod.string().nullish(),- sortTs: zod.string().datetime({}),- updatedAt: zod.string().datetime({}),- viewedAt: zod.string().datetime({}).nullish(),+ sortTs: zod.iso.datetime({}),+ updatedAt: zod.iso.datetime({}),+ viewedAt: zod.iso.datetime({}).nullish(),}).and(zod.object({attachments: zod.array(zod.object({contentId: zod.string().nullish(),- createdAt: zod.string().datetime({}),+ createdAt: zod.iso.datetime({}),filename: zod.string().nullish(),- id: zod.string().uuid(),- messageId: zod.string().uuid(),+ id: zod.uuid(),+ messageId: zod.uuid(),mimeType: zod.string().nullish(),providerAttachmentId: zod.string().nullish(),sizeBytes: zod.number().nullish(),@@ -4823,14 +4698,14 @@ export const getItemsSoupResponse = zod.object({),labels: zod.array(zod.object({- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),labelListVisibility: zod.enum(['labelShow','labelShowIfUnread','labelHide',]),- linkId: zod.string().uuid(),+ linkId: zod.uuid(),messageListVisibility: zod.enum(['show', 'hide']),name: zod.string(),providerLabelId: zod.string(),@@ -4840,8 +4715,8 @@ export const getItemsSoupResponse = zod.object({participants: zod.array(zod.object({emailAddress: zod.string().nullish(),- id: zod.string().uuid(),- linkId: zod.string().uuid(),+ id: zod.uuid(),+ linkId: zod.uuid(),name: zod.string().nullish(),sfsPhotoUrl: zod.string().nullish(),})@@ -4851,7 +4726,7 @@ export const getItemsSoupResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -4867,7 +4742,7 @@ export const getItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -4930,7 +4805,7 @@ export const getItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -4979,8 +4854,7 @@ export const getItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -4993,7 +4867,7 @@ export const getItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -5024,7 +4898,6 @@ export const getItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -5080,22 +4953,22 @@ export const getItemsSoupResponse = zod.object({'direct_message','team',]),- created_at: zod.string().datetime({}),- id: zod.string().uuid(),+ created_at: zod.iso.datetime({}),+ id: zod.uuid(),name: zod.string().nullish(),org_id: zod.number().min(getItemsSoupResponseItemsItemDataChannelOrgIdMin).nullish(),owner_id: zod.string(),- team_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ team_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),participants: zod.array(zod.object({- channel_id: zod.string().uuid(),- joined_at: zod.string().datetime({}),- left_at: zod.string().datetime({}).nullish(),+ channel_id: zod.uuid(),+ joined_at: zod.iso.datetime({}),+ left_at: zod.iso.datetime({}).nullish(),role: zod.enum(['owner', 'admin', 'member']).describe('The role a user has within a channel.'),@@ -5110,17 +4983,17 @@ export const getItemsSoupResponse = zod.object({zod.null(),zod.object({content: zod.string(),- created_at: zod.string().datetime({}),- deleted_at: zod.string().datetime({}).nullish(),+ created_at: zod.iso.datetime({}),+ deleted_at: zod.iso.datetime({}).nullish(),mentions: zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),- message_id: zod.string().uuid(),+ message_id: zod.uuid(),sender_id: zod.string(),- thread_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ thread_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),]).optional(),@@ -5129,17 +5002,17 @@ export const getItemsSoupResponse = zod.object({zod.null(),zod.object({content: zod.string(),- created_at: zod.string().datetime({}),- deleted_at: zod.string().datetime({}).nullish(),+ created_at: zod.iso.datetime({}),+ deleted_at: zod.iso.datetime({}).nullish(),mentions: zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),- message_id: zod.string().uuid(),+ message_id: zod.uuid(),sender_id: zod.string(),- thread_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ thread_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),]).optional(),@@ -5147,8 +5020,8 @@ export const getItemsSoupResponse = zod.object({).and(zod.object({- interacted_at: zod.string().datetime({}).nullish(),- viewed_at: zod.string().datetime({}).nullish(),+ interacted_at: zod.iso.datetime({}).nullish(),+ viewed_at: zod.iso.datetime({}).nullish(),})),tag: zod.enum(['channel']),@@ -5161,9 +5034,8 @@ export const getItemsSoupResponse = zod.object({.describe('Whether the requesting user attended this call (i.e. appears in the\n`call_participants` \/ `call_record_participants` table).'),- callId: zod.string().uuid().describe('The call identifier.'),+ callId: zod.uuid().describe('The call identifier.'),channelId: zod- .string().uuid().describe('The channel this call belongs to.'),channelName: zod@@ -5183,8 +5055,7 @@ export const getItemsSoupResponse = zod.object({.describe('Call duration in milliseconds (None if still active).'),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the call ended (None if still active).'),@@ -5195,12 +5066,10 @@ export const getItemsSoupResponse = zod.object({.array(zod.object({- joinedAt: zod- .string()+ joinedAt: zod.iso.datetime({}).describe('When the user joined the call.'),- leftAt: zod- .string()+ leftAt: zod.iso.datetime({}).nullish().describe(@@ -5213,8 +5082,7 @@ export const getItemsSoupResponse = zod.object({)).describe('Participants in the call.'),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the call started.'),})@@ -5679,7 +5547,6 @@ export const postItemsSoupResponse = zod.object({zod.object({data: zod.object({branchedFromId: zod- .string().uuid().nullish().describe('The id of the document this document branched from'),@@ -5689,12 +5556,10 @@ export const postItemsSoupResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -5713,11 +5578,10 @@ export const postItemsSoupResponse = zod.object({.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),- id: zod.string().uuid().describe('The document id'),+ id: zod.uuid().describe('The document id'),name: zod.string().describe('The name of the document'),ownerId: zod.string().describe('The owner of the document'),projectId: zod- .string().uuid().nullish().describe('The id of the project that this document belongs to'),@@ -5727,7 +5591,7 @@ export const postItemsSoupResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -5743,7 +5607,7 @@ export const postItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -5806,7 +5670,7 @@ export const postItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -5855,8 +5719,7 @@ export const postItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -5869,7 +5732,7 @@ export const postItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -5900,7 +5763,6 @@ export const postItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -5966,14 +5828,12 @@ export const postItemsSoupResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the document instance \/ document BOM was updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the document was last viewed'),@@ -5982,23 +5842,20 @@ export const postItemsSoupResponse = zod.object({}),zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),- id: zod.string().uuid().describe('The chat uuid'),+ id: zod.uuid().describe('The chat uuid'),isPersistent: zod.boolean().describe('Whether the chat is persistent or not'),name: zod.string().describe('The name of the chat'),ownerId: zod.string().describe('Who the chat belongs to'),projectId: zod- .string().uuid().nullish().describe('The project id of the chat'),@@ -6008,7 +5865,7 @@ export const postItemsSoupResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -6024,7 +5881,7 @@ export const postItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -6087,7 +5944,7 @@ export const postItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -6136,8 +5993,7 @@ export const postItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -6150,7 +6006,7 @@ export const postItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -6181,7 +6037,6 @@ export const postItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -6223,12 +6078,10 @@ export const postItemsSoupResponse = zod.object({)).describe('Properties'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the chat was last updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last viewed'),@@ -6237,32 +6090,26 @@ export const postItemsSoupResponse = zod.object({}),zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the project was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the project was deleted'),- id: zod.string().uuid().describe('The id of the project'),+ id: zod.uuid().describe('The id of the project'),name: zod.string().describe('The name of the project'),ownerId: zod.string().describe('The user id of who created the project'),- parentId: zod- .string()- .uuid()- .nullish()- .describe('The parent project id'),+ parentId: zod.uuid().nullish().describe('The parent project id'),properties: zod.array(zod.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -6278,7 +6125,7 @@ export const postItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -6341,7 +6188,7 @@ export const postItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -6390,8 +6237,7 @@ export const postItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -6404,7 +6250,7 @@ export const postItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -6435,7 +6281,6 @@ export const postItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -6477,12 +6322,10 @@ export const postItemsSoupResponse = zod.object({)).describe('Properties'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the project was updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the document was last viewed'),@@ -6492,8 +6335,8 @@ export const postItemsSoupResponse = zod.object({zod.object({data: zod.object({- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),inboxVisible: zod.boolean(),isDraft: zod.boolean(),isImportant: zod.boolean(),@@ -6506,19 +6349,19 @@ export const postItemsSoupResponse = zod.object({senderName: zod.string().nullish(),senderPhotoUrl: zod.string().nullish(),snippet: zod.string().nullish(),- sortTs: zod.string().datetime({}),- updatedAt: zod.string().datetime({}),- viewedAt: zod.string().datetime({}).nullish(),+ sortTs: zod.iso.datetime({}),+ updatedAt: zod.iso.datetime({}),+ viewedAt: zod.iso.datetime({}).nullish(),}).and(zod.object({attachments: zod.array(zod.object({contentId: zod.string().nullish(),- createdAt: zod.string().datetime({}),+ createdAt: zod.iso.datetime({}),filename: zod.string().nullish(),- id: zod.string().uuid(),- messageId: zod.string().uuid(),+ id: zod.uuid(),+ messageId: zod.uuid(),mimeType: zod.string().nullish(),providerAttachmentId: zod.string().nullish(),sizeBytes: zod.number().nullish(),@@ -6526,14 +6369,14 @@ export const postItemsSoupResponse = zod.object({),labels: zod.array(zod.object({- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),labelListVisibility: zod.enum(['labelShow','labelShowIfUnread','labelHide',]),- linkId: zod.string().uuid(),+ linkId: zod.uuid(),messageListVisibility: zod.enum(['show', 'hide']),name: zod.string(),providerLabelId: zod.string(),@@ -6543,8 +6386,8 @@ export const postItemsSoupResponse = zod.object({participants: zod.array(zod.object({emailAddress: zod.string().nullish(),- id: zod.string().uuid(),- linkId: zod.string().uuid(),+ id: zod.uuid(),+ linkId: zod.uuid(),name: zod.string().nullish(),sfsPhotoUrl: zod.string().nullish(),})@@ -6554,7 +6397,7 @@ export const postItemsSoupResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -6570,7 +6413,7 @@ export const postItemsSoupResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -6633,7 +6476,7 @@ export const postItemsSoupResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -6682,8 +6525,7 @@ export const postItemsSoupResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -6696,7 +6538,7 @@ export const postItemsSoupResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -6727,7 +6569,6 @@ export const postItemsSoupResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -6783,22 +6624,22 @@ export const postItemsSoupResponse = zod.object({'direct_message','team',]),- created_at: zod.string().datetime({}),- id: zod.string().uuid(),+ created_at: zod.iso.datetime({}),+ id: zod.uuid(),name: zod.string().nullish(),org_id: zod.number().min(postItemsSoupResponseItemsItemDataChannelOrgIdMin).nullish(),owner_id: zod.string(),- team_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ team_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),participants: zod.array(zod.object({- channel_id: zod.string().uuid(),- joined_at: zod.string().datetime({}),- left_at: zod.string().datetime({}).nullish(),+ channel_id: zod.uuid(),+ joined_at: zod.iso.datetime({}),+ left_at: zod.iso.datetime({}).nullish(),role: zod.enum(['owner', 'admin', 'member']).describe('The role a user has within a channel.'),@@ -6813,17 +6654,17 @@ export const postItemsSoupResponse = zod.object({zod.null(),zod.object({content: zod.string(),- created_at: zod.string().datetime({}),- deleted_at: zod.string().datetime({}).nullish(),+ created_at: zod.iso.datetime({}),+ deleted_at: zod.iso.datetime({}).nullish(),mentions: zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),- message_id: zod.string().uuid(),+ message_id: zod.uuid(),sender_id: zod.string(),- thread_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ thread_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),]).optional(),@@ -6832,17 +6673,17 @@ export const postItemsSoupResponse = zod.object({zod.null(),zod.object({content: zod.string(),- created_at: zod.string().datetime({}),- deleted_at: zod.string().datetime({}).nullish(),+ created_at: zod.iso.datetime({}),+ deleted_at: zod.iso.datetime({}).nullish(),mentions: zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),- message_id: zod.string().uuid(),+ message_id: zod.uuid(),sender_id: zod.string(),- thread_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ thread_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),]).optional(),@@ -6850,8 +6691,8 @@ export const postItemsSoupResponse = zod.object({).and(zod.object({- interacted_at: zod.string().datetime({}).nullish(),- viewed_at: zod.string().datetime({}).nullish(),+ interacted_at: zod.iso.datetime({}).nullish(),+ viewed_at: zod.iso.datetime({}).nullish(),})),tag: zod.enum(['channel']),@@ -6864,9 +6705,8 @@ export const postItemsSoupResponse = zod.object({.describe('Whether the requesting user attended this call (i.e. appears in the\n`call_participants` \/ `call_record_participants` table).'),- callId: zod.string().uuid().describe('The call identifier.'),+ callId: zod.uuid().describe('The call identifier.'),channelId: zod- .string().uuid().describe('The channel this call belongs to.'),channelName: zod@@ -6886,8 +6726,7 @@ export const postItemsSoupResponse = zod.object({.describe('Call duration in milliseconds (None if still active).'),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the call ended (None if still active).'),@@ -6898,12 +6737,10 @@ export const postItemsSoupResponse = zod.object({.array(zod.object({- joinedAt: zod- .string()+ joinedAt: zod.iso.datetime({}).describe('When the user joined the call.'),- leftAt: zod- .string()+ leftAt: zod.iso.datetime({}).nullish().describe(@@ -6916,8 +6753,7 @@ export const postItemsSoupResponse = zod.object({)).describe('Participants in the call.'),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the call started.'),})@@ -7026,7 +6862,6 @@ export const postItemsSoupAstResponse = zod.object({zod.object({data: zod.object({branchedFromId: zod- .string().uuid().nullish().describe('The id of the document this document branched from'),@@ -7036,12 +6871,10 @@ export const postItemsSoupAstResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -7060,11 +6893,10 @@ export const postItemsSoupAstResponse = zod.object({.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),- id: zod.string().uuid().describe('The document id'),+ id: zod.uuid().describe('The document id'),name: zod.string().describe('The name of the document'),ownerId: zod.string().describe('The owner of the document'),projectId: zod- .string().uuid().nullish().describe('The id of the project that this document belongs to'),@@ -7074,7 +6906,7 @@ export const postItemsSoupAstResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -7090,7 +6922,7 @@ export const postItemsSoupAstResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -7153,7 +6985,7 @@ export const postItemsSoupAstResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -7202,8 +7034,7 @@ export const postItemsSoupAstResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -7216,7 +7047,7 @@ export const postItemsSoupAstResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -7247,7 +7078,6 @@ export const postItemsSoupAstResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -7313,14 +7143,12 @@ export const postItemsSoupAstResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the document instance \/ document BOM was updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the document was last viewed'),@@ -7329,23 +7157,20 @@ export const postItemsSoupAstResponse = zod.object({}),zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),- id: zod.string().uuid().describe('The chat uuid'),+ id: zod.uuid().describe('The chat uuid'),isPersistent: zod.boolean().describe('Whether the chat is persistent or not'),name: zod.string().describe('The name of the chat'),ownerId: zod.string().describe('Who the chat belongs to'),projectId: zod- .string().uuid().nullish().describe('The project id of the chat'),@@ -7355,7 +7180,7 @@ export const postItemsSoupAstResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -7371,7 +7196,7 @@ export const postItemsSoupAstResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -7434,7 +7259,7 @@ export const postItemsSoupAstResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -7483,8 +7308,7 @@ export const postItemsSoupAstResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -7497,7 +7321,7 @@ export const postItemsSoupAstResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -7528,7 +7352,6 @@ export const postItemsSoupAstResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -7570,12 +7393,10 @@ export const postItemsSoupAstResponse = zod.object({)).describe('Properties'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the chat was last updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last viewed'),@@ -7584,32 +7405,26 @@ export const postItemsSoupAstResponse = zod.object({}),zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).describe('The time the project was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the project was deleted'),- id: zod.string().uuid().describe('The id of the project'),+ id: zod.uuid().describe('The id of the project'),name: zod.string().describe('The name of the project'),ownerId: zod.string().describe('The user id of who created the project'),- parentId: zod- .string()- .uuid()- .nullish()- .describe('The parent project id'),+ parentId: zod.uuid().nullish().describe('The parent project id'),properties: zod.array(zod.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -7625,7 +7440,7 @@ export const postItemsSoupAstResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -7688,7 +7503,7 @@ export const postItemsSoupAstResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -7737,8 +7552,7 @@ export const postItemsSoupAstResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -7751,7 +7565,7 @@ export const postItemsSoupAstResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -7782,7 +7596,6 @@ export const postItemsSoupAstResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -7824,12 +7637,10 @@ export const postItemsSoupAstResponse = zod.object({)).describe('Properties'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).describe('The time the project was updated'),- viewedAt: zod- .string()+ viewedAt: zod.iso.datetime({}).nullish().describe('The time the document was last viewed'),@@ -7839,8 +7650,8 @@ export const postItemsSoupAstResponse = zod.object({zod.object({data: zod.object({- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),inboxVisible: zod.boolean(),isDraft: zod.boolean(),isImportant: zod.boolean(),@@ -7853,19 +7664,19 @@ export const postItemsSoupAstResponse = zod.object({senderName: zod.string().nullish(),senderPhotoUrl: zod.string().nullish(),snippet: zod.string().nullish(),- sortTs: zod.string().datetime({}),- updatedAt: zod.string().datetime({}),- viewedAt: zod.string().datetime({}).nullish(),+ sortTs: zod.iso.datetime({}),+ updatedAt: zod.iso.datetime({}),+ viewedAt: zod.iso.datetime({}).nullish(),}).and(zod.object({attachments: zod.array(zod.object({contentId: zod.string().nullish(),- createdAt: zod.string().datetime({}),+ createdAt: zod.iso.datetime({}),filename: zod.string().nullish(),- id: zod.string().uuid(),- messageId: zod.string().uuid(),+ id: zod.uuid(),+ messageId: zod.uuid(),mimeType: zod.string().nullish(),providerAttachmentId: zod.string().nullish(),sizeBytes: zod.number().nullish(),@@ -7873,14 +7684,14 @@ export const postItemsSoupAstResponse = zod.object({),labels: zod.array(zod.object({- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),labelListVisibility: zod.enum(['labelShow','labelShowIfUnread','labelHide',]),- linkId: zod.string().uuid(),+ linkId: zod.uuid(),messageListVisibility: zod.enum(['show', 'hide']),name: zod.string(),providerLabelId: zod.string(),@@ -7890,8 +7701,8 @@ export const postItemsSoupAstResponse = zod.object({participants: zod.array(zod.object({emailAddress: zod.string().nullish(),- id: zod.string().uuid(),- linkId: zod.string().uuid(),+ id: zod.uuid(),+ linkId: zod.uuid(),name: zod.string().nullish(),sfsPhotoUrl: zod.string().nullish(),})@@ -7901,7 +7712,7 @@ export const postItemsSoupAstResponse = zod.object({.object({definition: zod.object({- created_at: zod.string().datetime({}),+ created_at: zod.iso.datetime({}),data_type: zod.enum(['BOOLEAN',@@ -7917,7 +7728,7 @@ export const postItemsSoupAstResponse = zod.object({'Data type for property values, determining storage and validation.'),display_name: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),is_metadata: zod.boolean().describe(@@ -7980,7 +7791,7 @@ export const postItemsSoupAstResponse = zod.object({),]).optional(),- updated_at: zod.string().datetime({}),+ updated_at: zod.iso.datetime({}),}).describe('Property definition model (service representation).'@@ -8029,8 +7840,7 @@ export const postItemsSoupAstResponse = zod.object({zod.object({type: zod.enum(['Date']),- value: zod- .string()+ value: zod.iso.datetime({}).describe('Date\/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'@@ -8043,7 +7853,7 @@ export const postItemsSoupAstResponse = zod.object({.object({type: zod.enum(['SelectOption']),value: zod- .array(zod.string().uuid())+ .array(zod.uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),@@ -8074,7 +7884,6 @@ export const postItemsSoupAstResponse = zod.object({'Type of entity that can be referenced by entity properties.'),specific_message_id: zod- .string().uuid().nullish().describe(@@ -8130,22 +7939,22 @@ export const postItemsSoupAstResponse = zod.object({'direct_message','team',]),- created_at: zod.string().datetime({}),- id: zod.string().uuid(),+ created_at: zod.iso.datetime({}),+ id: zod.uuid(),name: zod.string().nullish(),org_id: zod.number().min(postItemsSoupAstResponseItemsItemDataChannelOrgIdMin).nullish(),owner_id: zod.string(),- team_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ team_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),participants: zod.array(zod.object({- channel_id: zod.string().uuid(),- joined_at: zod.string().datetime({}),- left_at: zod.string().datetime({}).nullish(),+ channel_id: zod.uuid(),+ joined_at: zod.iso.datetime({}),+ left_at: zod.iso.datetime({}).nullish(),role: zod.enum(['owner', 'admin', 'member']).describe('The role a user has within a channel.'),@@ -8160,17 +7969,17 @@ export const postItemsSoupAstResponse = zod.object({zod.null(),zod.object({content: zod.string(),- created_at: zod.string().datetime({}),- deleted_at: zod.string().datetime({}).nullish(),+ created_at: zod.iso.datetime({}),+ deleted_at: zod.iso.datetime({}).nullish(),mentions: zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),- message_id: zod.string().uuid(),+ message_id: zod.uuid(),sender_id: zod.string(),- thread_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ thread_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),]).optional(),@@ -8179,17 +7988,17 @@ export const postItemsSoupAstResponse = zod.object({zod.null(),zod.object({content: zod.string(),- created_at: zod.string().datetime({}),- deleted_at: zod.string().datetime({}).nullish(),+ created_at: zod.iso.datetime({}),+ deleted_at: zod.iso.datetime({}).nullish(),mentions: zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),- message_id: zod.string().uuid(),+ message_id: zod.uuid(),sender_id: zod.string(),- thread_id: zod.string().uuid().nullish(),- updated_at: zod.string().datetime({}),+ thread_id: zod.uuid().nullish(),+ updated_at: zod.iso.datetime({}),}),]).optional(),@@ -8197,8 +8006,8 @@ export const postItemsSoupAstResponse = zod.object({).and(zod.object({- interacted_at: zod.string().datetime({}).nullish(),- viewed_at: zod.string().datetime({}).nullish(),+ interacted_at: zod.iso.datetime({}).nullish(),+ viewed_at: zod.iso.datetime({}).nullish(),})),tag: zod.enum(['channel']),@@ -8211,9 +8020,8 @@ export const postItemsSoupAstResponse = zod.object({.describe('Whether the requesting user attended this call (i.e. appears in the\n`call_participants` \/ `call_record_participants` table).'),- callId: zod.string().uuid().describe('The call identifier.'),+ callId: zod.uuid().describe('The call identifier.'),channelId: zod- .string().uuid().describe('The channel this call belongs to.'),channelName: zod@@ -8233,8 +8041,7 @@ export const postItemsSoupAstResponse = zod.object({.describe('Call duration in milliseconds (None if still active).'),- endedAt: zod- .string()+ endedAt: zod.iso.datetime({}).nullish().describe('When the call ended (None if still active).'),@@ -8245,12 +8052,10 @@ export const postItemsSoupAstResponse = zod.object({.array(zod.object({- joinedAt: zod- .string()+ joinedAt: zod.iso.datetime({}).describe('When the user joined the call.'),- leftAt: zod- .string()+ leftAt: zod.iso.datetime({}).nullish().describe(@@ -8263,8 +8068,7 @@ export const postItemsSoupAstResponse = zod.object({)).describe('Participants in the call.'),- startedAt: zod- .string()+ startedAt: zod.iso.datetime({}).describe('When the call started.'),})@@ -8308,13 +8112,11 @@ export const getPinsHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -8368,8 +8170,7 @@ export const getPinsHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -8378,13 +8179,11 @@ export const getPinsHandlerResponse = zod.object({type: zod.enum(['document']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),@@ -8400,8 +8199,7 @@ export const getPinsHandlerResponse = zod.object({.nullish().describe('The project id of the chat'),tokenCount: zod.number().nullish(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last updated'),@@ -8409,20 +8207,18 @@ export const getPinsHandlerResponse = zod.object({type: zod.enum(['chat']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -8446,13 +8242,11 @@ export const getPinsHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -8506,8 +8300,7 @@ export const getPinsHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -8516,13 +8309,11 @@ export const getPinsHandlerResponse = zod.object({type: zod.enum(['document']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),@@ -8538,8 +8329,7 @@ export const getPinsHandlerResponse = zod.object({.nullish().describe('The project id of the chat'),tokenCount: zod.number().nullish(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last updated'),@@ -8547,20 +8337,18 @@ export const getPinsHandlerResponse = zod.object({type: zod.enum(['chat']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -8641,17 +8429,15 @@ export const getProjectsHandlerResponse = zod.object({data: zod.array(zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -8670,7 +8456,6 @@ The project can be created as a sub-project of another project or as a top-levelexport const createProjectHandlerBody = zod.object({name: zod.string().describe('The name of the project.'),projectParentId: zod- .string().uuid().nullish().describe('The project that the new project will belong to.'),@@ -8678,17 +8463,15 @@ export const createProjectHandlerBody = zod.object({export const createProjectHandlerResponse = zod.object({data: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -8706,17 +8489,15 @@ export const getPendingProjectsHandlerResponse = zod.object({.array(zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -8755,7 +8536,7 @@ export const getBatchProjectPreviewResponse = zod.object({name: zod.string(),owner: zod.string(),path: zod.array(zod.string()),- updatedAt: zod.string().datetime({}).nullish(),+ updatedAt: zod.iso.datetime({}).nullish(),}).and(zod.object({@@ -9773,17 +9554,15 @@ export const getProjectHandlerParams = zod.object({export const getProjectHandlerResponse = zod.object({data: zod.object({projectMetadata: zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -9857,13 +9636,11 @@ export const getProjectContentHandlerResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -9913,8 +9690,7 @@ export const getProjectContentHandlerResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -9923,13 +9699,11 @@ export const getProjectContentHandlerResponse = zod.object({type: zod.enum(['document']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),@@ -9945,8 +9719,7 @@ export const getProjectContentHandlerResponse = zod.object({.nullish().describe('The project id of the chat'),tokenCount: zod.number().nullish(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last updated'),@@ -9954,17 +9727,15 @@ export const getProjectContentHandlerResponse = zod.object({type: zod.enum(['chat']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -10068,13 +9839,11 @@ export const recentlyDeletedResponse = zod.object({.describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the document was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the document was deleted'),@@ -10126,8 +9895,7 @@ export const recentlyDeletedResponse = zod.object({),]).optional(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe(@@ -10136,13 +9904,11 @@ export const recentlyDeletedResponse = zod.object({type: zod.enum(['document']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the chat was created'),- deletedAt: zod- .string()+ deletedAt: zod.iso.datetime({}).nullish().describe('The time the chat was deleted'),@@ -10158,8 +9924,7 @@ export const recentlyDeletedResponse = zod.object({.nullish().describe('The project id of the chat'),tokenCount: zod.number().nullish(),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the chat was last updated'),@@ -10167,20 +9932,18 @@ export const recentlyDeletedResponse = zod.object({type: zod.enum(['chat']),}),zod.object({- createdAt: zod- .string()+ createdAt: zod.iso.datetime({}).nullish().describe('The time the project was created'),- deletedAt: zod.string().datetime({}).nullish(),+ deletedAt: zod.iso.datetime({}).nullish(),id: zod.string().describe('The id of the project'),name: zod.string().describe('The name of the project'),parentId: zod.string().nullish().describe('The parent project id'),- updatedAt: zod- .string()+ updatedAt: zod.iso.datetime({}).nullish().describe('The time the project was updated'),@@ -10202,7 +9965,7 @@ export const getViewsHandlerResponse = zod.object({zod.object({defaultViewId: zod.string(),- id: zod.string().uuid(),+ id: zod.uuid(),userId: zod.string(),}).describe(@@ -10216,10 +9979,10 @@ export const getViewsHandlerResponse = zod.object({.describe('It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux.'),- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),name: zod.string(),- updatedAt: zod.string().datetime({}),+ updatedAt: zod.iso.datetime({}),userId: zod.string(),})),@@ -10236,10 +9999,10 @@ export const createViewHandlerResponse = zod.object({.describe('It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux.'),- createdAt: zod.string().datetime({}),- id: zod.string().uuid(),+ createdAt: zod.iso.datetime({}),+ id: zod.uuid(),name: zod.string(),- updatedAt: zod.string().datetime({}),+ updatedAt: zod.iso.datetime({}),userId: zod.string(),});diff --git a/js/app/packages/service-clients/service-storage/openapi.json b/js/app/packages/service-clients/service-storage/openapi.jsonindex 3786c684eb..765027b7c2 100644--- a/js/app/packages/service-clients/service-storage/openapi.json+++ b/js/app/packages/service-clients/service-storage/openapi.json@@ -6484,7 +6484,13 @@"CallRecordTranscriptSegment": {"type": "object","description": "A transcript segment as returned in a [`CallRecord`].",- "required": ["speakerId", "content", "startedAt", "sequenceNum"],+ "required": [+ "transcriptId",+ "speakerId",+ "content",+ "startedAt",+ "sequenceNum"+ ],"properties": {"content": {"type": "string",@@ -6516,6 +6522,11 @@"type": "string","format": "date-time","description": "When the speaker started this segment."+ },+ "transcriptId": {+ "type": "string",+ "format": "uuid",+ "description": "Stable DB-row id for the segment."}}},diff --git a/rust/cloud-storage/.sqlx/query-b683cd2f7a93ff5eb1264823b9a4ce8e500abd7c2e170ce4efc4fa06123e82f6.json b/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.jsonsimilarity index 68%rename from rust/cloud-storage/.sqlx/query-b683cd2f7a93ff5eb1264823b9a4ce8e500abd7c2e170ce4efc4fa06123e82f6.jsonrename to rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.jsonindex f9b38a1926..fa7032f3fb 100644--- a/rust/cloud-storage/.sqlx/query-b683cd2f7a93ff5eb1264823b9a4ce8e500abd7c2e170ce4efc4fa06123e82f6.json+++ b/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json@@ -1,40 +1,45 @@{"db_name": "PostgreSQL",- "query": "\n SELECT segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, sequence_num\n FROM call_transcripts\n WHERE call_id = $1\n ORDER BY sequence_num ASC\n ",+ "query": "\n SELECT id, segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, sequence_num\n FROM call_transcripts\n WHERE call_id = $1\n ORDER BY sequence_num ASC\n ","describe": {"columns": [{"ordinal": 0,+ "name": "id",+ "type_info": "Uuid"+ },+ {+ "ordinal": 1,"name": "segment_id","type_info": "Text"},{- "ordinal": 1,+ "ordinal": 2,"name": "speaker_id","type_info": "Text"},{- "ordinal": 2,+ "ordinal": 3,"name": "diarized_speaker_id","type_info": "Text"},{- "ordinal": 3,+ "ordinal": 4,"name": "content","type_info": "Text"},{- "ordinal": 4,+ "ordinal": 5,"name": "started_at","type_info": "Timestamptz"},{- "ordinal": 5,+ "ordinal": 6,"name": "ended_at","type_info": "Timestamptz"},{- "ordinal": 6,+ "ordinal": 7,"name": "sequence_num","type_info": "Int4"}@@ -45,6 +50,7 @@]},"nullable": [+ false,false,false,true,@@ -54,5 +60,5 @@false]},- "hash": "b683cd2f7a93ff5eb1264823b9a4ce8e500abd7c2e170ce4efc4fa06123e82f6"+ "hash": "8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2"}diff --git a/rust/cloud-storage/.sqlx/query-f2ca3e891cf63cbdad88b2ef040dd73e501abe540dbe1c8150fe70db531ef36a.json b/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.jsonsimilarity index 69%rename from rust/cloud-storage/.sqlx/query-f2ca3e891cf63cbdad88b2ef040dd73e501abe540dbe1c8150fe70db531ef36a.jsonrename to rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.jsonindex 15fcefd07e..edb97b0c59 100644--- a/rust/cloud-storage/.sqlx/query-f2ca3e891cf63cbdad88b2ef040dd73e501abe540dbe1c8150fe70db531ef36a.json+++ b/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json@@ -1,45 +1,50 @@{"db_name": "PostgreSQL",- "query": "\n SELECT segment_id, speaker_id, diarized_speaker_id, custom_speaker, content, started_at, ended_at, sequence_num\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ",+ "query": "\n SELECT id, segment_id, speaker_id, diarized_speaker_id, custom_speaker, content, started_at, ended_at, sequence_num\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ","describe": {"columns": [{"ordinal": 0,+ "name": "id",+ "type_info": "Uuid"+ },+ {+ "ordinal": 1,"name": "segment_id","type_info": "Text"},{- "ordinal": 1,+ "ordinal": 2,"name": "speaker_id","type_info": "Text"},{- "ordinal": 2,+ "ordinal": 3,"name": "diarized_speaker_id","type_info": "Text"},{- "ordinal": 3,+ "ordinal": 4,"name": "custom_speaker","type_info": "Text"},{- "ordinal": 4,+ "ordinal": 5,"name": "content","type_info": "Text"},{- "ordinal": 5,+ "ordinal": 6,"name": "started_at","type_info": "Timestamptz"},{- "ordinal": 6,+ "ordinal": 7,"name": "ended_at","type_info": "Timestamptz"},{- "ordinal": 7,+ "ordinal": 8,"name": "sequence_num","type_info": "Int4"}@@ -50,6 +55,7 @@]},"nullable": [+ false,true,false,true,@@ -60,5 +66,5 @@false]},- "hash": "f2ca3e891cf63cbdad88b2ef040dd73e501abe540dbe1c8150fe70db531ef36a"+ "hash": "e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957"}diff --git a/rust/cloud-storage/call/src/domain/models.rs b/rust/cloud-storage/call/src/domain/models.rsindex 1fafa51d7f..8196164195 100644--- a/rust/cloud-storage/call/src/domain/models.rs+++ b/rust/cloud-storage/call/src/domain/models.rs@@ -200,6 +200,8 @@ pub struct EditCallTranscriptRequest {#[cfg_attr(feature = "inbound", derive(utoipa::ToSchema))]#[serde(rename_all = "camelCase")]pub struct CallRecordTranscriptSegment {+ /// Stable DB-row id for the segment.+ pub transcript_id: Uuid,/// LiveKit segment ID (nullable for archived records).pub segment_id: Option<String>,/// The speaker's user ID.diff --git a/rust/cloud-storage/call/src/outbound/pg_call_repo.rs b/rust/cloud-storage/call/src/outbound/pg_call_repo.rsindex 0a4f98b36c..0dbbaca060 100644--- a/rust/cloud-storage/call/src/outbound/pg_call_repo.rs+++ b/rust/cloud-storage/call/src/outbound/pg_call_repo.rs@@ -805,7 +805,7 @@ impl CallRepository for PgCallRepo {let transcript = sqlx::query!(r#"- SELECT segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, sequence_num+ SELECT id, segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, sequence_numFROM call_transcriptsWHERE call_id = $1ORDER BY sequence_num ASC@@ -816,6 +816,7 @@ impl CallRepository for PgCallRepo {.await?.into_iter().map(|row| CallRecordTranscriptSegment {+ transcript_id: row.id,segment_id: Some(row.segment_id),speaker_id: row.speaker_id,diarized_speaker_id: row.diarized_speaker_id,@@ -884,7 +885,7 @@ impl CallRepository for PgCallRepo {let transcript = sqlx::query!(r#"- SELECT segment_id, speaker_id, diarized_speaker_id, custom_speaker, content, started_at, ended_at, sequence_num+ SELECT id, segment_id, speaker_id, diarized_speaker_id, custom_speaker, content, started_at, ended_at, sequence_numFROM call_record_transcriptsWHERE call_record_id = $1ORDER BY sequence_num ASC@@ -895,6 +896,7 @@ impl CallRepository for PgCallRepo {.await?.into_iter().map(|row| CallRecordTranscriptSegment {+ transcript_id: row.id,segment_id: row.segment_id,speaker_id: row.custom_speaker.unwrap_or(row.speaker_id),diarized_speaker_id: row.diarized_speaker_id,diff --git a/rust/cloud-storage/search_service/src/api/search/call_record.rs b/rust/cloud-storage/search_service/src/api/search/call_record.rsindex 6533f41e70..86a356b594 100644--- a/rust/cloud-storage/search_service/src/api/search/call_record.rs+++ b/rust/cloud-storage/search_service/src/api/search/call_record.rs@@ -86,7 +86,9 @@ pub(in crate::api::search) async fn enrich_call_records(let result = hits_by_call_id.into_iter()- .map(|(call_id, hits)| {+ .map(|(call_id, mut hits)| {+ hits.sort_by_key(|h| h.sequence_num.unwrap_or(i32::MAX));+let (channel_id, participant_ids) = call_context.get(&call_id).cloned()