{"version":3,"file":"list-events.cjs","names":["z","action"],"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,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,sDAAsD,EAAE,SAAS;CAC9G,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,O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