{"version":3,"file":"update-import.cjs","names":["z","action"],"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,uBAAqCA,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