{"version":3,"file":"delete-webset.mjs","names":[],"sources":["../../src/actions/delete-webset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaDeleteWebsetInput: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The id or externalId of the Webset to delete.\"),\n}).describe(\"Request model for deleting a Webset by ID.\");\nconst ExaDeleteWebset_EntitySchema: z.ZodTypeAny = z.object({\n  type: z.string().describe(\"The type of entity (e.g., 'company', 'person').\"),\n}).describe(\"Represents the entity type used in searches or imports.\");\nconst ExaDeleteWebset_ImportObjSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the import.\"),\n  count: z.number().int().describe(\"Number of entities imported.\"),\n  title: z.string().describe(\"Title given to the import.\"),\n  entity: ExaDeleteWebset_EntitySchema.nullable(),\n  format: z.string().describe(\"The format of the import (e.g., 'csv', 'webset').\"),\n  object: z.string().describe(\"The object type, always 'import'.\"),\n  status: z.string().describe(\"The status of the import.\"),\n  failedAt: z.string().describe(\"Timestamp when the import failed, if applicable.\").optional(),\n  metadata: z.record(z.string(), z.unknown()),\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 for failure, if import failed.\").optional(),\n  failedMessage: z.string().describe(\"Human-readable message about import failure, if any.\").optional(),\n}).describe(\"Represents an import object within a Webset.\");\nconst ExaDeleteWebset_CadenceSchema: z.ZodTypeAny = z.object({\n  cron: z.string().describe(\"Cron schedule string.\"),\n  timezone: z.string().describe(\"Timezone for the schedule.\"),\n}).describe(\"Cadence configuration for a monitor.\");\nconst ExaDeleteWebset_MonitorLastRunSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the monitor run.\"),\n  type: z.string().describe(\"Run type, always 'search'.\"),\n  object: z.string().describe(\"The object type, always 'monitor_run'.\"),\n  status: z.string().describe(\"Status of the monitor run.\"),\n  failedAt: z.string().describe(\"Timestamp when the run failed, if applicable.\").optional(),\n  createdAt: z.string().describe(\"Timestamp when the run was created.\"),\n  monitorId: z.string().describe(\"The Monitor ID this run belongs to.\"),\n  updatedAt: z.string().describe(\"Timestamp when the run was last updated.\"),\n  canceledAt: z.string().describe(\"Timestamp when the run was canceled, if applicable.\").optional(),\n  completedAt: z.string().describe(\"Timestamp when the run completed, if applicable.\").optional(),\n  failedReason: z.string().describe(\"Reason for failure, if any.\").optional(),\n}).describe(\"Represents the last run details of a monitor.\");\nconst ExaDeleteWebset_CriteriaSchema: z.ZodTypeAny = z.object({\n  description: z.string().describe(\"The description of the criterion.\"),\n  successRate: z.number().int().describe(\"The success rate percentage for this criterion, if available.\").optional(),\n}).describe(\"Represents a criterion used in a Webset search.\");\nconst ExaDeleteWebset_BehaviorConfigSchema: z.ZodTypeAny = z.object({\n  count: z.number().int().describe(\"Number of results to fetch on each run.\"),\n  query: z.string().describe(\"Search query for the monitor.\"),\n  entity: ExaDeleteWebset_EntitySchema.nullable(),\n  behavior: z.enum([\"override\", \"append\"]).describe(\"Behavior when adding to the Webset.\"),\n  criteria: z.array(ExaDeleteWebset_CriteriaSchema),\n}).describe(\"Configuration for monitor behavior.\");\nconst ExaDeleteWebset_BehaviorSchema: z.ZodTypeAny = z.object({\n  type: z.string().describe(\"Behavior type, always 'search'.\"),\n  config: ExaDeleteWebset_BehaviorConfigSchema.nullable(),\n}).describe(\"Behavior settings for a monitor.\");\nconst ExaDeleteWebset_MonitorObjSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the monitor.\"),\n  object: z.string().describe(\"The object type, always 'monitor'.\"),\n  status: z.string().describe(\"The status of the monitor.\"),\n  cadence: ExaDeleteWebset_CadenceSchema.nullable(),\n  lastRun: ExaDeleteWebset_MonitorLastRunSchema.nullable(),\n  behavior: ExaDeleteWebset_BehaviorSchema.nullable(),\n  metadata: z.record(z.string(), z.unknown()),\n  websetId: z.string().describe(\"The associated Webset ID.\"),\n  createdAt: z.string().describe(\"Timestamp when monitor was created.\"),\n  nextRunAt: z.string().describe(\"Timestamp for next scheduled run.\").optional(),\n  updatedAt: z.string().describe(\"Timestamp when monitor was last updated.\"),\n}).describe(\"Represents a monitor configured on a Webset.\");\nconst ExaDeleteWebset_ExcludeScopeSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The ID of the source to exclude or scope.\"),\n  source: z.string().describe(\"The source type (e.g., 'import', 'webset').\"),\n}).describe(\"Represents an excluded or scoped source in a Webset search.\");\nconst ExaDeleteWebset_RecallBoundsSchema: z.ZodTypeAny = z.object({\n  max: z.number().int().describe(\"Maximum expected recall.\"),\n  min: z.number().int().describe(\"Minimum expected recall.\"),\n}).describe(\"Bounds for recall metrics.\");\nconst ExaDeleteWebset_RecallExpectedSchema: z.ZodTypeAny = z.object({\n  total: z.number().int().describe(\"Total expected items.\"),\n  bounds: ExaDeleteWebset_RecallBoundsSchema.nullable(),\n  confidence: z.string().describe(\"Confidence level (e.g., 'high', 'medium').\"),\n}).describe(\"Expected recall metrics.\");\nconst ExaDeleteWebset_RecallSchema: z.ZodTypeAny = z.object({\n  expected: ExaDeleteWebset_RecallExpectedSchema.nullable(),\n  reasoning: z.string().describe(\"Reasoning behind the recall estimate.\").optional(),\n}).describe(\"Recall metrics for a Webset search.\");\nconst ExaDeleteWebset_ProgressSchema: z.ZodTypeAny = z.object({\n  found: z.number().int().describe(\"Number of items found so far.\"),\n  analyzed: z.number().int().describe(\"Number of items analyzed so far.\"),\n  timeLeft: z.number().int().describe(\"Estimated time left in seconds.\"),\n  completion: z.number().int().describe(\"Percentage of completion.\"),\n}).describe(\"Progress metrics for a Webset search.\");\nconst ExaDeleteWebset_WebsetSearchSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the search.\"),\n  count: z.number().int().describe(\"Number of results the search attempts to find.\"),\n  query: z.string().describe(\"The query used for the search.\"),\n  scope: z.array(ExaDeleteWebset_ExcludeScopeSchema),\n  entity: ExaDeleteWebset_EntitySchema.nullable(),\n  object: z.string().describe(\"The object type, always 'webset_search'.\"),\n  recall: ExaDeleteWebset_RecallSchema.nullable().optional(),\n  status: z.string().describe(\"The status of the search.\"),\n  exclude: z.array(ExaDeleteWebset_ExcludeScopeSchema),\n  behavior: z.enum([\"override\", \"append\"]).describe(\"Behavior when adding to the Webset.\"),\n  criteria: z.array(ExaDeleteWebset_CriteriaSchema),\n  metadata: z.record(z.string(), z.unknown()),\n  progress: ExaDeleteWebset_ProgressSchema.nullable(),\n  createdAt: z.string().describe(\"Timestamp when the search was created.\"),\n  updatedAt: z.string().describe(\"Timestamp when the search was last updated.\"),\n  canceledAt: z.string().describe(\"Timestamp when the search was canceled, if applicable.\").optional(),\n  canceledReason: z.enum([\"webset_deleted\", \"webset_canceled\"]).describe(\"Reason the search was canceled, if applicable.\").optional(),\n}).describe(\"Represents a search operation within a Webset.\");\nconst ExaDeleteWebset_WebsetEnrichmentOptionSchema: z.ZodTypeAny = z.object({\n  label: z.string().describe(\"Option label.\"),\n}).describe(\"Option for a webset enrichment task.\");\nconst ExaDeleteWebset_WebsetEnrichmentSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the enrichment.\"),\n  title: z.string().describe(\"Title of the enrichment, if available.\").optional(),\n  format: z.string().describe(\"The format of the enrichment response.\"),\n  object: z.string().describe(\"The object type, always 'webset_enrichment'.\"),\n  status: z.string().describe(\"The status of the enrichment.\"),\n  options: z.array(ExaDeleteWebset_WebsetEnrichmentOptionSchema).describe(\"Options for enrichment if format is 'options'.\").optional(),\n  metadata: z.record(z.string(), z.unknown()),\n  websetId: z.string().describe(\"The Webset ID this enrichment belongs to.\"),\n  createdAt: z.string().describe(\"Timestamp when enrichment was created.\"),\n  updatedAt: z.string().describe(\"Timestamp when enrichment was last updated.\"),\n  description: z.string().describe(\"Description given for the enrichment task.\"),\n  instructions: z.string().describe(\"Instructions for the enrichment agent, if any.\").optional(),\n}).describe(\"Represents an enrichment task within a Webset.\");\nexport const ExaDeleteWebsetOutput: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"The unique identifier for the Webset.\").optional(),\n  title: z.string().describe(\"Title of the Webset, if any.\").optional(),\n  object: z.string().describe(\"Object type, always 'webset'.\").optional(),\n  status: z.enum([\"idle\", \"pending\", \"running\", \"paused\"]).describe(\"Status of the Webset.\").optional(),\n  imports: z.array(ExaDeleteWebset_ImportObjSchema).optional(),\n  streams: z.array(z.unknown()).optional(),\n  metadata: z.record(z.string(), z.unknown()).optional(),\n  monitors: z.array(ExaDeleteWebset_MonitorObjSchema).optional(),\n  searches: z.array(ExaDeleteWebset_WebsetSearchSchema).optional(),\n  createdAt: z.string().describe(\"Timestamp when Webset was created.\").optional(),\n  updatedAt: z.string().describe(\"Timestamp when Webset was last updated.\").optional(),\n  externalId: z.string().describe(\"External identifier for the Webset, if any.\").optional(),\n  enrichments: z.array(ExaDeleteWebset_WebsetEnrichmentSchema).optional(),\n}).describe(\"Response model returned after deleting a Webset.\");\n\nexport const exaDeleteWebset = action(\"EXA_DELETE_WEBSET\", {\n  slug: \"exa-delete-webset\",\n  name: \"Delete webset\",\n  description: \"Tool to delete a Webset. Use after confirming the Webset ID to permanently remove the Webset and all its items.\",\n  input: ExaDeleteWebsetInput,\n  output: ExaDeleteWebsetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO,EACzD,IAAI,EAAE,OAAO,EAAE,SAAS,+CAA+C,EACzE,CAAC,EAAE,SAAS,4CAA4C;AACxD,MAAM,+BAA6C,EAAE,OAAO,EAC1D,MAAM,EAAE,OAAO,EAAE,SAAS,iDAAiD,EAC7E,CAAC,EAAE,SAAS,yDAAyD;AACrE,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,EAAE,SAAS,uCAAuC;CAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,8BAA8B;CAC/D,OAAO,EAAE,OAAO,EAAE,SAAS,4BAA4B;CACvD,QAAQ,6BAA6B,S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