{"version":3,"file":"list-imports.mjs","names":[],"sources":["../../src/actions/list-imports.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaListImportsInput: z.ZodTypeAny = z.object({\n  limit: z.number().int().default(25).describe(\"The number of results to return (1–200, default 25).\").optional(),\n  cursor: z.string().describe(\"The cursor to paginate through the results.\").optional(),\n}).describe(\"Parameters for listing imports in a Webset.\");\nconst ExaListImports_ImportEntitySchema: z.ZodTypeAny = z.object({\n  type: z.enum([\"company\", \"person\", \"article\", \"research_paper\", \"custom\"]).describe(\"The type of entity the import contains.\"),\n}).describe(\"The type of entity contained in the import.\");\nconst ExaListImports_ImportItemSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the import.\"),\n  count: z.number().int().describe(\"The number of entities in the import.\"),\n  title: z.string().describe(\"The title of the import.\"),\n  entity: ExaListImports_ImportEntitySchema.nullable(),\n  format: z.enum([\"csv\", \"webset\"]).describe(\"The format of the import.\"),\n  object: z.string().describe(\"The object type.\"),\n  status: z.enum([\"pending\", \"processing\", \"completed\", \"failed\"]).describe(\"The status of the import.\"),\n  failedAt: z.string().describe(\"When the import failed, if applicable.\").optional(),\n  metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs associated with this import.\"),\n  createdAt: z.string().describe(\"When the import was created.\"),\n  updatedAt: z.string().describe(\"When the import was last updated.\"),\n  failedReason: z.enum([\"invalid_format\", \"invalid_file_content\", \"missing_identifier\"]).describe(\"The reason the import failed, if status is failed.\").optional(),\n  failedMessage: z.string().describe(\"A human-readable message for the import failure, if any.\").optional(),\n}).describe(\"One import job record.\");\nexport const ExaListImportsOutput: z.ZodTypeAny = z.object({\n  data: z.array(ExaListImports_ImportItemSchema).describe(\"The list of import 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 imports in a Webset.\");\n\nexport const exaListImports = action(\"EXA_LIST_IMPORTS\", {\n  slug: \"exa-list-imports\",\n  name: \"List imports\",\n  description: \"Tool to list all imports for the Webset. Use when you need to paginate through and monitor import jobs.\",\n  input: ExaListImportsInput,\n  output: ExaListImportsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,sDAAsD,EAAE,SAAS;CAC9G,QAAQ,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;AACtF,CAAC,EAAE,SAAS,6CAA6C;AACzD,MAAM,oCAAkD,EAAE,OAAO,EAC/D,MAAM,EAAE,KAAK;CAAC;CAAW;CAAU;CAAW;CAAkB;AAAQ,CAAC,EAAE,SAAS,yCAAyC,EAC/H,CAAC,EAAE,SAAS,6CAA6C;AACzD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,EAAE,SAAS,uCAAuC;CAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,uCAAuC;CACxE,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B;CACrD,QAAQ,kCAAkC,SAAS;CACnD,QAAQ,EAAE,KAAK,CAAC,OAAO,QAAQ,CAAC,EAAE,SAAS,2BAA2B;CACtE,QAAQ,EAAE,OAAO,EAAE,SAAS,kBAAkB;CAC9C,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAc;EAAa;CAAQ,CAAC,EAAE,SAAS,2BAA2B;CACrG,UAAU,EAAE,OAAO,EAAE,SAAS,wCAAwC,EAAE,SAAS;CACjF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,8CAA8C;CACnG,WAAW,EAAE,OAAO,EAAE,SAAS,8BAA8B;CAC7D,WAAW,EAAE,OAAO,EAAE,SAAS,mCAAmC;CAClE,cAAc,EAAE,KAAK;EAAC;EAAkB;EAAwB;CAAoB,CAAC,EAAE,S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