{"version":3,"file":"list-events.mjs","names":[],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaListEventsInput: z.ZodTypeAny = z.object({\n  limit: z.number().int().default(25).describe(\"The number of results to return (1–200, default 25).\").optional(),\n  types: z.array(z.string()).describe(\"Filter events by one or more event types.\").optional(),\n  cursor: z.string().describe(\"The cursor to paginate through the results.\").optional(),\n  createdAfter: z.string().describe(\"Filter events created at or after this UTC timestamp (inclusive). Must be a valid ISO 8601 datetime string.\").optional(),\n  createdBefore: z.string().describe(\"Filter events created at or before this UTC timestamp (inclusive). Must be a valid ISO 8601 datetime string.\").optional(),\n}).describe(\"Parameters to list all events in the system.\");\nconst ExaListEvents_EventItemSchema: z.ZodTypeAny = z.object({\n  data: z.record(z.string(), z.unknown()).describe(\"Detailed payload of the event.\"),\n  type: z.string().describe(\"Type of the event, e.g., 'webset.created'.\"),\n  object: z.string().describe(\"Type of the object, always 'event'.\"),\n  createdAt: z.string().describe(\"Timestamp when the event was created.\"),\n}).describe(\"One event record.\");\nexport const ExaListEventsOutput: z.ZodTypeAny = z.object({\n  data: z.array(ExaListEvents_EventItemSchema).describe(\"The list of event records.\"),\n  hasMore: z.boolean().describe(\"Whether there are more results to paginate through.\"),\n  nextCursor: z.string().describe(\"The cursor for the next page of results, if any.\").optional(),\n}).describe(\"Response model for listing events.\");\n\nexport const exaListEvents = action(\"EXA_LIST_EVENTS\", {\n  slug: \"exa-list-events\",\n  name: \"List events\",\n  description: \"Tool to list all events that have occurred in the system. Use when you need to paginate through the event history.\",\n  input: ExaListEventsInput,\n  output: ExaListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,sDAAsD,EAAE,SAAS;CAC9G,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,2CAA2C,EAAE,SAAS;CAC1F,QAAQ,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;CACpF,cAAc,EAAE,OAAO,EAAE,SAAS,6GAA6G,EAAE,SAAS;CAC1J,eAAe,EAAE,OAAO,EAAE,SAAS,8GAA8G,EAAE,SAAS;AAC9J,CAAC,EAAE,SAAS,8CAA8C;AAC1D,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,gCAAgC;CACjF,MAAM,EAAE,OAAO,EAAE,SAAS,4CAA4C;CACtE,QAAQ,EAAE,OAAO,EAAE,SAAS,qCAAqC;CACjE,WAAW,EAAE,OAAO,EAAE,SAAS,uCAAuC;AACxE,CAAC,EAAE,SAAS,mBAAmB;AAO/B,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+C,EAAE,OAAO;EACxD,MAAM,EAAE,MAAM,6BAA6B,EAAE,SAAS,4BAA4B;EAClF,SAAS,EAAE,QAAQ,EAAE,SAAS,qDAAqD;EACnF,YAAY,EAAE,OAAO,EAAE,SAAS,kDAAkD,EAAE,SAAS;CAC/F,CAAC,EAAE,SAAS,oCAOF;AACV,CAAC"}