{"version":3,"file":"update-import.mjs","names":[],"sources":["../../src/actions/update-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaUpdateImportInput: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The ID of the import to update.\"),\n  title: z.string().describe(\"New title for the import. Leave null if unchanged.\").optional(),\n  metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs to attach to the import. Leave null if unchanged.\").optional(),\n}).describe(\"Request model for updating an import configuration.\");\nconst ExaUpdateImport_EntitySchema: z.ZodTypeAny = z.object({\n  type: z.string().describe(\"The type of entity the import contains (e.g., 'company').\"),\n}).describe(\"Represents the entity type contained in the import object.\");\nexport const ExaUpdateImportOutput: 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.\").optional(),\n  entity: ExaUpdateImport_EntitySchema.nullable(),\n  format: z.string().describe(\"The format of the import (csv or webset).\"),\n  object: z.string().describe(\"The type of object, always 'import'.\"),\n  status: z.string().describe(\"The status of the import (pending, processing, completed, or failed).\"),\n  failedAt: z.string().describe(\"Timestamp when the import failed, if applicable.\").optional(),\n  metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs associated with this import object.\"),\n  createdAt: z.string().describe(\"Timestamp when the import was created.\"),\n  updatedAt: z.string().describe(\"Timestamp when the import was last updated.\"),\n  failedReason: z.string().describe(\"Reason the import failed, if applicable (invalid_format, missing_identifier, etc).\").optional(),\n  failedMessage: z.string().describe(\"A message describing why the import failed, if any.\").optional(),\n}).describe(\"Response model returned after updating an import.\");\n\nexport const exaUpdateImport = action(\"EXA_UPDATE_IMPORT\", {\n  slug: \"exa-update-import\",\n  name: \"Update import\",\n  description: \"Tool to update an import configuration by ID. Use when you need to modify an import's title or metadata.\",\n  input: ExaUpdateImportInput,\n  output: ExaUpdateImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,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