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
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* search_service
* OpenAPI spec version: 0.1.0
*/
import type { CalendarEventSearchScope } from './calendarEventSearchScope';
import type { EntityFilters } from './entityFilters';
import type { MatchType } from './matchType';
import type { SearchOn } from './searchOn';
import type { UnifiedSearchRequestCollapse } from './unifiedSearchRequestCollapse';
export interface UnifiedSearchRequest {
/** Which calendar events to search. Defaults to `own`: events on the
caller's own and delegated calendars. `shared_with_you` searches only
events shared with a channel the caller belongs to that are on none of
their calendars. */
calendar_event_scope?: CalendarEventSearchScope;
collapse?: UnifiedSearchRequestCollapse;
/** Entity filters in the same shape as soup. Entity types with a NIL UUID in their primary ID field are excluded from search. */
filters?: EntityFilters;
/** Opt in to searching the caller's team CRM companies (name/domain).
Off by default: CRM results are only included when this is true and
the caller has a qualifying team membership. CRM has no content
index, so it is searched only under Name / NameContent. */
include_crm?: boolean;
/** How to match the search terms. 'exact' for precise case-sensitive phrase matches, 'partial' for prefix/partial matches. REQUIRED field. */
match_type: MatchType;
/** The search query string. Must be at least 3 characters. */
query: string;
/** Fields to search on (Name, Content, NameContent). Defaults to Content */
search_on?: SearchOn;
}