@keystrokehq/exa 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -108
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/answer.cjs +81 -0
- package/dist/actions/answer.cjs.map +1 -0
- package/dist/actions/answer.d.cts +9 -0
- package/dist/actions/answer.d.cts.map +1 -0
- package/dist/actions/answer.d.mts +9 -0
- package/dist/actions/answer.d.mts.map +1 -0
- package/dist/actions/answer.mjs +80 -0
- package/dist/actions/answer.mjs.map +1 -0
- package/dist/actions/create-import.cjs +41 -0
- package/dist/actions/create-import.cjs.map +1 -0
- package/dist/actions/create-import.d.cts +9 -0
- package/dist/actions/create-import.d.cts.map +1 -0
- package/dist/actions/create-import.d.mts +9 -0
- package/dist/actions/create-import.d.mts.map +1 -0
- package/dist/actions/create-import.mjs +40 -0
- package/dist/actions/create-import.mjs.map +1 -0
- package/dist/actions/create-monitor.cjs +81 -0
- package/dist/actions/create-monitor.cjs.map +1 -0
- package/dist/actions/create-monitor.d.cts +9 -0
- package/dist/actions/create-monitor.d.cts.map +1 -0
- package/dist/actions/create-monitor.d.mts +9 -0
- package/dist/actions/create-monitor.d.mts.map +1 -0
- package/dist/actions/create-monitor.mjs +80 -0
- package/dist/actions/create-monitor.mjs.map +1 -0
- package/dist/actions/create-research.cjs +45 -0
- package/dist/actions/create-research.cjs.map +1 -0
- package/dist/actions/create-research.d.cts +9 -0
- package/dist/actions/create-research.d.cts.map +1 -0
- package/dist/actions/create-research.d.mts +9 -0
- package/dist/actions/create-research.d.mts.map +1 -0
- package/dist/actions/create-research.mjs +44 -0
- package/dist/actions/create-research.mjs.map +1 -0
- package/dist/actions/create-webset.cjs +201 -0
- package/dist/actions/create-webset.cjs.map +1 -0
- package/dist/actions/create-webset.d.cts +9 -0
- package/dist/actions/create-webset.d.cts.map +1 -0
- package/dist/actions/create-webset.d.mts +9 -0
- package/dist/actions/create-webset.d.mts.map +1 -0
- package/dist/actions/create-webset.mjs +200 -0
- package/dist/actions/create-webset.mjs.map +1 -0
- package/dist/actions/delete-import.cjs +31 -0
- package/dist/actions/delete-import.cjs.map +1 -0
- package/dist/actions/delete-import.d.cts +9 -0
- package/dist/actions/delete-import.d.cts.map +1 -0
- package/dist/actions/delete-import.d.mts +9 -0
- package/dist/actions/delete-import.d.mts.map +1 -0
- package/dist/actions/delete-import.mjs +30 -0
- package/dist/actions/delete-import.mjs.map +1 -0
- package/dist/actions/delete-webset.cjs +153 -0
- package/dist/actions/delete-webset.cjs.map +1 -0
- package/dist/actions/delete-webset.d.cts +9 -0
- package/dist/actions/delete-webset.d.cts.map +1 -0
- package/dist/actions/delete-webset.d.mts +9 -0
- package/dist/actions/delete-webset.d.mts.map +1 -0
- package/dist/actions/delete-webset.mjs +152 -0
- package/dist/actions/delete-webset.mjs.map +1 -0
- package/dist/actions/get-api-key.cjs +21 -0
- package/dist/actions/get-api-key.cjs.map +1 -0
- package/dist/actions/get-api-key.d.cts +9 -0
- package/dist/actions/get-api-key.d.cts.map +1 -0
- package/dist/actions/get-api-key.d.mts +9 -0
- package/dist/actions/get-api-key.d.mts.map +1 -0
- package/dist/actions/get-api-key.mjs +18 -0
- package/dist/actions/get-api-key.mjs.map +1 -0
- package/dist/actions/get-contents-action.cjs +75 -0
- package/dist/actions/get-contents-action.cjs.map +1 -0
- package/dist/actions/get-contents-action.d.cts +9 -0
- package/dist/actions/get-contents-action.d.cts.map +1 -0
- package/dist/actions/get-contents-action.d.mts +9 -0
- package/dist/actions/get-contents-action.d.mts.map +1 -0
- package/dist/actions/get-contents-action.mjs +74 -0
- package/dist/actions/get-contents-action.mjs.map +1 -0
- package/dist/actions/get-event.cjs +140 -0
- package/dist/actions/get-event.cjs.map +1 -0
- package/dist/actions/get-event.d.cts +9 -0
- package/dist/actions/get-event.d.cts.map +1 -0
- package/dist/actions/get-event.d.mts +9 -0
- package/dist/actions/get-event.d.mts.map +1 -0
- package/dist/actions/get-event.mjs +139 -0
- package/dist/actions/get-event.mjs.map +1 -0
- package/dist/actions/get-research.cjs +47 -0
- package/dist/actions/get-research.cjs.map +1 -0
- package/dist/actions/get-research.d.cts +9 -0
- package/dist/actions/get-research.d.cts.map +1 -0
- package/dist/actions/get-research.d.mts +9 -0
- package/dist/actions/get-research.d.mts.map +1 -0
- package/dist/actions/get-research.mjs +46 -0
- package/dist/actions/get-research.mjs.map +1 -0
- package/dist/actions/index.cjs +34 -16
- package/dist/actions/index.d.cts +18 -2
- package/dist/actions/index.d.mts +18 -2
- package/dist/actions/index.mjs +18 -2
- package/dist/actions/list-events.cjs +32 -0
- package/dist/actions/list-events.cjs.map +1 -0
- package/dist/actions/list-events.d.cts +9 -0
- package/dist/actions/list-events.d.cts.map +1 -0
- package/dist/actions/list-events.d.mts +9 -0
- package/dist/actions/list-events.d.mts.map +1 -0
- package/dist/actions/list-events.mjs +31 -0
- package/dist/actions/list-events.mjs.map +1 -0
- package/dist/actions/list-imports.cjs +54 -0
- package/dist/actions/list-imports.cjs.map +1 -0
- package/dist/actions/list-imports.d.cts +9 -0
- package/dist/actions/list-imports.d.cts.map +1 -0
- package/dist/actions/list-imports.d.mts +9 -0
- package/dist/actions/list-imports.d.mts.map +1 -0
- package/dist/actions/list-imports.mjs +53 -0
- package/dist/actions/list-imports.mjs.map +1 -0
- package/dist/actions/list-research.cjs +49 -0
- package/dist/actions/list-research.cjs.map +1 -0
- package/dist/actions/list-research.d.cts +9 -0
- package/dist/actions/list-research.d.cts.map +1 -0
- package/dist/actions/list-research.d.mts +9 -0
- package/dist/actions/list-research.d.mts.map +1 -0
- package/dist/actions/list-research.mjs +48 -0
- package/dist/actions/list-research.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +34 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +33 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/search.cjs +145 -0
- package/dist/actions/search.cjs.map +1 -0
- package/dist/actions/search.d.cts +9 -0
- package/dist/actions/search.d.cts.map +1 -0
- package/dist/actions/search.d.mts +9 -0
- package/dist/actions/search.d.mts.map +1 -0
- package/dist/actions/search.mjs +144 -0
- package/dist/actions/search.mjs.map +1 -0
- package/dist/actions/update-import.cjs +35 -0
- package/dist/actions/update-import.cjs.map +1 -0
- package/dist/actions/update-import.d.cts +9 -0
- package/dist/actions/update-import.d.cts.map +1 -0
- package/dist/actions/update-import.d.mts +9 -0
- package/dist/actions/update-import.d.mts.map +1 -0
- package/dist/actions/update-import.mjs +34 -0
- package/dist/actions/update-import.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/client.cjs +30 -2
- package/dist/client.cjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +38 -14
- package/dist/index.d.cts +20 -17
- package/dist/index.d.mts +20 -17
- package/dist/index.mjs +21 -5
- package/package.json +13 -13
- package/dist/actions-CJq1Nyt_.mjs +0 -349
- package/dist/actions-CJq1Nyt_.mjs.map +0 -1
- package/dist/actions-LoQVlbiT.cjs +0 -438
- package/dist/actions-LoQVlbiT.cjs.map +0 -1
- package/dist/app-CBLUruR0.mjs +0 -15
- package/dist/app-CBLUruR0.mjs.map +0 -1
- package/dist/app-DMujvH6I.cjs +0 -26
- package/dist/app-DMujvH6I.cjs.map +0 -1
- package/dist/client-DlwHA71b.cjs +0 -56
- package/dist/client-DlwHA71b.cjs.map +0 -1
- package/dist/index-BwCGHs6v.d.cts +0 -357
- package/dist/index-BwCGHs6v.d.cts.map +0 -1
- package/dist/index-BwCGHs6v.d.mts +0 -357
- package/dist/index-BwCGHs6v.d.mts.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/mcp.cjs +0 -57
- package/dist/mcp.cjs.map +0 -1
- package/dist/mcp.d.cts +0 -16
- package/dist/mcp.d.cts.map +0 -1
- package/dist/mcp.d.mts +0 -16
- package/dist/mcp.d.mts.map +0 -1
- package/dist/mcp.mjs +0 -54
- package/dist/mcp.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webset.cjs","names":["z","action"],"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,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,+CAA+C,EACzE,CAAC,EAAE,SAAS,4CAA4C;AACxD,MAAM,+BAA6CA,IAAAA,EAAE,OAAO,EAC1D,MAAMA,IAAAA,EAAE,OAAO,EAAE,SAAS,iDAAiD,EAC7E,CAAC,EAAE,SAAS,yDAAyD;AACrE,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,uCAAuC;CAC/D,OAAOA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,8BAA8B;CAC/D,OAAOA,IAAAA,EAAE,OAAO,EAAE,SAAS,4BAA4B;CACvD,QAAQ,6BAA6B,SAAS;CAC9C,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,mDAAmD;CAC/E,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,mCAAmC;CAC/D,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,2BAA2B;CACvD,UAAUA,IAAAA,EAAE,OAAO,EAAE,SAAS,kDAAkD,EAAE,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAC1C,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,wCAAwC;CACvE,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,6CAA6C;CAC5E,cAAcA,IAAAA,EAAE,OAAO,EAAE,SAAS,uCAAuC,EAAE,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,EAAE,SAAS,sDAAsD,EAAE,SAAS;AACt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AAaA,IAAAA,EAAE,MAAM,sCAAsC,EAAE,SAAS;AACxE,CAAC,EAAE,SAAS,kDAAkD;AAE9D,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-webset.d.ts
|
|
4
|
+
declare const ExaDeleteWebsetInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaDeleteWebsetOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaDeleteWebset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaDeleteWebset };
|
|
9
|
+
//# sourceMappingURL=delete-webset.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webset.d.cts","names":[],"sources":["../../src/actions/delete-webset.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAEoB;AAAA,cA2H5C,qBAAA,EAAuB,CAAA,CAAE,UAcyB;AAAA,cAElD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-webset.d.ts
|
|
4
|
+
declare const ExaDeleteWebsetInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaDeleteWebsetOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaDeleteWebset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaDeleteWebset };
|
|
9
|
+
//# sourceMappingURL=delete-webset.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webset.d.mts","names":[],"sources":["../../src/actions/delete-webset.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAEoB;AAAA,cA2H5C,qBAAA,EAAuB,CAAA,CAAE,UAcyB;AAAA,cAElD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/delete-webset.ts
|
|
4
|
+
const ExaDeleteWebsetInput = z.object({ id: z.string().describe("The id or externalId of the Webset to delete.") }).describe("Request model for deleting a Webset by ID.");
|
|
5
|
+
const ExaDeleteWebset_EntitySchema = z.object({ type: z.string().describe("The type of entity (e.g., 'company', 'person').") }).describe("Represents the entity type used in searches or imports.");
|
|
6
|
+
const ExaDeleteWebset_ImportObjSchema = z.object({
|
|
7
|
+
id: z.string().describe("The unique identifier for the import."),
|
|
8
|
+
count: z.number().int().describe("Number of entities imported."),
|
|
9
|
+
title: z.string().describe("Title given to the import."),
|
|
10
|
+
entity: ExaDeleteWebset_EntitySchema.nullable(),
|
|
11
|
+
format: z.string().describe("The format of the import (e.g., 'csv', 'webset')."),
|
|
12
|
+
object: z.string().describe("The object type, always 'import'."),
|
|
13
|
+
status: z.string().describe("The status of the import."),
|
|
14
|
+
failedAt: z.string().describe("Timestamp when the import failed, if applicable.").optional(),
|
|
15
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
16
|
+
createdAt: z.string().describe("Timestamp when the import was created."),
|
|
17
|
+
updatedAt: z.string().describe("Timestamp when the import was last updated."),
|
|
18
|
+
failedReason: z.string().describe("Reason for failure, if import failed.").optional(),
|
|
19
|
+
failedMessage: z.string().describe("Human-readable message about import failure, if any.").optional()
|
|
20
|
+
}).describe("Represents an import object within a Webset.");
|
|
21
|
+
const ExaDeleteWebset_CadenceSchema = z.object({
|
|
22
|
+
cron: z.string().describe("Cron schedule string."),
|
|
23
|
+
timezone: z.string().describe("Timezone for the schedule.")
|
|
24
|
+
}).describe("Cadence configuration for a monitor.");
|
|
25
|
+
const ExaDeleteWebset_MonitorLastRunSchema = z.object({
|
|
26
|
+
id: z.string().describe("The unique identifier for the monitor run."),
|
|
27
|
+
type: z.string().describe("Run type, always 'search'."),
|
|
28
|
+
object: z.string().describe("The object type, always 'monitor_run'."),
|
|
29
|
+
status: z.string().describe("Status of the monitor run."),
|
|
30
|
+
failedAt: z.string().describe("Timestamp when the run failed, if applicable.").optional(),
|
|
31
|
+
createdAt: z.string().describe("Timestamp when the run was created."),
|
|
32
|
+
monitorId: z.string().describe("The Monitor ID this run belongs to."),
|
|
33
|
+
updatedAt: z.string().describe("Timestamp when the run was last updated."),
|
|
34
|
+
canceledAt: z.string().describe("Timestamp when the run was canceled, if applicable.").optional(),
|
|
35
|
+
completedAt: z.string().describe("Timestamp when the run completed, if applicable.").optional(),
|
|
36
|
+
failedReason: z.string().describe("Reason for failure, if any.").optional()
|
|
37
|
+
}).describe("Represents the last run details of a monitor.");
|
|
38
|
+
const ExaDeleteWebset_CriteriaSchema = z.object({
|
|
39
|
+
description: z.string().describe("The description of the criterion."),
|
|
40
|
+
successRate: z.number().int().describe("The success rate percentage for this criterion, if available.").optional()
|
|
41
|
+
}).describe("Represents a criterion used in a Webset search.");
|
|
42
|
+
const ExaDeleteWebset_BehaviorConfigSchema = z.object({
|
|
43
|
+
count: z.number().int().describe("Number of results to fetch on each run."),
|
|
44
|
+
query: z.string().describe("Search query for the monitor."),
|
|
45
|
+
entity: ExaDeleteWebset_EntitySchema.nullable(),
|
|
46
|
+
behavior: z.enum(["override", "append"]).describe("Behavior when adding to the Webset."),
|
|
47
|
+
criteria: z.array(ExaDeleteWebset_CriteriaSchema)
|
|
48
|
+
}).describe("Configuration for monitor behavior.");
|
|
49
|
+
const ExaDeleteWebset_BehaviorSchema = z.object({
|
|
50
|
+
type: z.string().describe("Behavior type, always 'search'."),
|
|
51
|
+
config: ExaDeleteWebset_BehaviorConfigSchema.nullable()
|
|
52
|
+
}).describe("Behavior settings for a monitor.");
|
|
53
|
+
const ExaDeleteWebset_MonitorObjSchema = z.object({
|
|
54
|
+
id: z.string().describe("The unique identifier for the monitor."),
|
|
55
|
+
object: z.string().describe("The object type, always 'monitor'."),
|
|
56
|
+
status: z.string().describe("The status of the monitor."),
|
|
57
|
+
cadence: ExaDeleteWebset_CadenceSchema.nullable(),
|
|
58
|
+
lastRun: ExaDeleteWebset_MonitorLastRunSchema.nullable(),
|
|
59
|
+
behavior: ExaDeleteWebset_BehaviorSchema.nullable(),
|
|
60
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
61
|
+
websetId: z.string().describe("The associated Webset ID."),
|
|
62
|
+
createdAt: z.string().describe("Timestamp when monitor was created."),
|
|
63
|
+
nextRunAt: z.string().describe("Timestamp for next scheduled run.").optional(),
|
|
64
|
+
updatedAt: z.string().describe("Timestamp when monitor was last updated.")
|
|
65
|
+
}).describe("Represents a monitor configured on a Webset.");
|
|
66
|
+
const ExaDeleteWebset_ExcludeScopeSchema = z.object({
|
|
67
|
+
id: z.string().describe("The ID of the source to exclude or scope."),
|
|
68
|
+
source: z.string().describe("The source type (e.g., 'import', 'webset').")
|
|
69
|
+
}).describe("Represents an excluded or scoped source in a Webset search.");
|
|
70
|
+
const ExaDeleteWebset_RecallBoundsSchema = z.object({
|
|
71
|
+
max: z.number().int().describe("Maximum expected recall."),
|
|
72
|
+
min: z.number().int().describe("Minimum expected recall.")
|
|
73
|
+
}).describe("Bounds for recall metrics.");
|
|
74
|
+
const ExaDeleteWebset_RecallExpectedSchema = z.object({
|
|
75
|
+
total: z.number().int().describe("Total expected items."),
|
|
76
|
+
bounds: ExaDeleteWebset_RecallBoundsSchema.nullable(),
|
|
77
|
+
confidence: z.string().describe("Confidence level (e.g., 'high', 'medium').")
|
|
78
|
+
}).describe("Expected recall metrics.");
|
|
79
|
+
const ExaDeleteWebset_RecallSchema = z.object({
|
|
80
|
+
expected: ExaDeleteWebset_RecallExpectedSchema.nullable(),
|
|
81
|
+
reasoning: z.string().describe("Reasoning behind the recall estimate.").optional()
|
|
82
|
+
}).describe("Recall metrics for a Webset search.");
|
|
83
|
+
const ExaDeleteWebset_ProgressSchema = z.object({
|
|
84
|
+
found: z.number().int().describe("Number of items found so far."),
|
|
85
|
+
analyzed: z.number().int().describe("Number of items analyzed so far."),
|
|
86
|
+
timeLeft: z.number().int().describe("Estimated time left in seconds."),
|
|
87
|
+
completion: z.number().int().describe("Percentage of completion.")
|
|
88
|
+
}).describe("Progress metrics for a Webset search.");
|
|
89
|
+
const ExaDeleteWebset_WebsetSearchSchema = z.object({
|
|
90
|
+
id: z.string().describe("The unique identifier for the search."),
|
|
91
|
+
count: z.number().int().describe("Number of results the search attempts to find."),
|
|
92
|
+
query: z.string().describe("The query used for the search."),
|
|
93
|
+
scope: z.array(ExaDeleteWebset_ExcludeScopeSchema),
|
|
94
|
+
entity: ExaDeleteWebset_EntitySchema.nullable(),
|
|
95
|
+
object: z.string().describe("The object type, always 'webset_search'."),
|
|
96
|
+
recall: ExaDeleteWebset_RecallSchema.nullable().optional(),
|
|
97
|
+
status: z.string().describe("The status of the search."),
|
|
98
|
+
exclude: z.array(ExaDeleteWebset_ExcludeScopeSchema),
|
|
99
|
+
behavior: z.enum(["override", "append"]).describe("Behavior when adding to the Webset."),
|
|
100
|
+
criteria: z.array(ExaDeleteWebset_CriteriaSchema),
|
|
101
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
102
|
+
progress: ExaDeleteWebset_ProgressSchema.nullable(),
|
|
103
|
+
createdAt: z.string().describe("Timestamp when the search was created."),
|
|
104
|
+
updatedAt: z.string().describe("Timestamp when the search was last updated."),
|
|
105
|
+
canceledAt: z.string().describe("Timestamp when the search was canceled, if applicable.").optional(),
|
|
106
|
+
canceledReason: z.enum(["webset_deleted", "webset_canceled"]).describe("Reason the search was canceled, if applicable.").optional()
|
|
107
|
+
}).describe("Represents a search operation within a Webset.");
|
|
108
|
+
const ExaDeleteWebset_WebsetEnrichmentOptionSchema = z.object({ label: z.string().describe("Option label.") }).describe("Option for a webset enrichment task.");
|
|
109
|
+
const ExaDeleteWebset_WebsetEnrichmentSchema = z.object({
|
|
110
|
+
id: z.string().describe("The unique identifier for the enrichment."),
|
|
111
|
+
title: z.string().describe("Title of the enrichment, if available.").optional(),
|
|
112
|
+
format: z.string().describe("The format of the enrichment response."),
|
|
113
|
+
object: z.string().describe("The object type, always 'webset_enrichment'."),
|
|
114
|
+
status: z.string().describe("The status of the enrichment."),
|
|
115
|
+
options: z.array(ExaDeleteWebset_WebsetEnrichmentOptionSchema).describe("Options for enrichment if format is 'options'.").optional(),
|
|
116
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
117
|
+
websetId: z.string().describe("The Webset ID this enrichment belongs to."),
|
|
118
|
+
createdAt: z.string().describe("Timestamp when enrichment was created."),
|
|
119
|
+
updatedAt: z.string().describe("Timestamp when enrichment was last updated."),
|
|
120
|
+
description: z.string().describe("Description given for the enrichment task."),
|
|
121
|
+
instructions: z.string().describe("Instructions for the enrichment agent, if any.").optional()
|
|
122
|
+
}).describe("Represents an enrichment task within a Webset.");
|
|
123
|
+
const exaDeleteWebset = action("EXA_DELETE_WEBSET", {
|
|
124
|
+
slug: "exa-delete-webset",
|
|
125
|
+
name: "Delete webset",
|
|
126
|
+
description: "Tool to delete a Webset. Use after confirming the Webset ID to permanently remove the Webset and all its items.",
|
|
127
|
+
input: ExaDeleteWebsetInput,
|
|
128
|
+
output: z.object({
|
|
129
|
+
id: z.string().describe("The unique identifier for the Webset.").optional(),
|
|
130
|
+
title: z.string().describe("Title of the Webset, if any.").optional(),
|
|
131
|
+
object: z.string().describe("Object type, always 'webset'.").optional(),
|
|
132
|
+
status: z.enum([
|
|
133
|
+
"idle",
|
|
134
|
+
"pending",
|
|
135
|
+
"running",
|
|
136
|
+
"paused"
|
|
137
|
+
]).describe("Status of the Webset.").optional(),
|
|
138
|
+
imports: z.array(ExaDeleteWebset_ImportObjSchema).optional(),
|
|
139
|
+
streams: z.array(z.unknown()).optional(),
|
|
140
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
141
|
+
monitors: z.array(ExaDeleteWebset_MonitorObjSchema).optional(),
|
|
142
|
+
searches: z.array(ExaDeleteWebset_WebsetSearchSchema).optional(),
|
|
143
|
+
createdAt: z.string().describe("Timestamp when Webset was created.").optional(),
|
|
144
|
+
updatedAt: z.string().describe("Timestamp when Webset was last updated.").optional(),
|
|
145
|
+
externalId: z.string().describe("External identifier for the Webset, if any.").optional(),
|
|
146
|
+
enrichments: z.array(ExaDeleteWebset_WebsetEnrichmentSchema).optional()
|
|
147
|
+
}).describe("Response model returned after deleting a Webset.")
|
|
148
|
+
});
|
|
149
|
+
//#endregion
|
|
150
|
+
export { exaDeleteWebset };
|
|
151
|
+
|
|
152
|
+
//# sourceMappingURL=delete-webset.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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,SAAS;CAC9C,QAAQ,EAAE,OAAO,EAAE,SAAS,mDAAmD;CAC/E,QAAQ,EAAE,OAAO,EAAE,SAAS,mCAAmC;CAC/D,QAAQ,EAAE,OAAO,EAAE,SAAS,2BAA2B;CACvD,UAAU,EAAE,OAAO,EAAE,SAAS,kDAAkD,EAAE,SAAS;CAC3F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAC1C,WAAW,EAAE,OAAO,EAAE,SAAS,wCAAwC;CACvE,WAAW,EAAE,OAAO,EAAE,SAAS,6CAA6C;CAC5E,cAAc,EAAE,OAAO,EAAE,SAAS,uCAAuC,EAAE,SAAS;CACpF,eAAe,EAAE,OAAO,EAAE,SAAS,sDAAsD,EAAE,SAAS;AACtG,CAAC,EAAE,SAAS,8CAA8C;AAC1D,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,EAAE,SAAS,uBAAuB;CACjD,UAAU,EAAE,OAAO,EAAE,SAAS,4BAA4B;AAC5D,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AG,EAAE,QAAQ,CAAC,EAAE,SAAS;EACrD,UAAU,EAAE,MAAM,gCAAgC,EAAE,SAAS;EAC7D,UAAU,EAAE,MAAM,kCAAkC,EAAE,SAAS;EAC/D,WAAW,EAAE,OAAO,EAAE,SAAS,oCAAoC,EAAE,SAAS;EAC9E,WAAW,EAAE,OAAO,EAAE,SAAS,yCAAyC,EAAE,SAAS;EACnF,YAAY,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;EACxF,aAAa,EAAE,MAAM,sCAAsC,EAAE,SAAS;CACxE,CAAC,EAAE,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-api-key.ts
|
|
4
|
+
const ExaGetApiKeyInput = zod.z.object({ apiKeyId: zod.z.string().describe("The unique identifier of the API key to retrieve.") }).describe("Parameters to retrieve a specific API key by its ID.");
|
|
5
|
+
const ExaGetApiKeyOutput = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("The unique identifier of the API key."),
|
|
7
|
+
name: zod.z.string().describe("The name or label assigned to this API key.").optional(),
|
|
8
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the API key was created."),
|
|
9
|
+
rateLimit: zod.z.number().int().describe("The rate limit associated with this API key.").optional()
|
|
10
|
+
}).describe("Response schema for retrieving an API key's details.");
|
|
11
|
+
const exaGetApiKey = require_action.action("EXA_GET_API_KEY", {
|
|
12
|
+
slug: "exa-get-api-key",
|
|
13
|
+
name: "Get API Key",
|
|
14
|
+
description: "Tool to retrieve details of a specific API key by its ID. Use when you need to fetch information about an API key in the team management context.",
|
|
15
|
+
input: ExaGetApiKeyInput,
|
|
16
|
+
output: ExaGetApiKeyOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.exaGetApiKey = exaGetApiKey;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=get-api-key.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-key.cjs","names":["z","action"],"sources":["../../src/actions/get-api-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetApiKeyInput: z.ZodTypeAny = z.object({\n apiKeyId: z.string().describe(\"The unique identifier of the API key to retrieve.\"),\n}).describe(\"Parameters to retrieve a specific API key by its ID.\");\nexport const ExaGetApiKeyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the API key.\"),\n name: z.string().describe(\"The name or label assigned to this API key.\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the API key was created.\"),\n rateLimit: z.number().int().describe(\"The rate limit associated with this API key.\").optional(),\n}).describe(\"Response schema for retrieving an API key's details.\");\n\nexport const exaGetApiKey = action(\"EXA_GET_API_KEY\", {\n slug: \"exa-get-api-key\",\n name: \"Get API Key\",\n description: \"Tool to retrieve details of a specific API key by its ID. Use when you need to fetch information about an API key in the team management context.\",\n input: ExaGetApiKeyInput,\n output: ExaGetApiKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAkCA,IAAAA,EAAE,OAAO,EACtD,UAAUA,IAAAA,EAAE,OAAO,EAAE,SAAS,mDAAmD,EACnF,CAAC,EAAE,SAAS,sDAAsD;AAClE,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,uCAAuC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,kDAAkD;CACjF,WAAWA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,8CAA8C,EAAE,SAAS;AAChG,CAAC,EAAE,SAAS,sDAAsD;AAElE,MAAa,eAAeC,eAAAA,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-api-key.d.ts
|
|
4
|
+
declare const ExaGetApiKeyInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaGetApiKeyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaGetApiKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaGetApiKey };
|
|
9
|
+
//# sourceMappingURL=get-api-key.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-key.d.cts","names":[],"sources":["../../src/actions/get-api-key.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UAEiC;AAAA,cACtD,kBAAA,EAAoB,CAAA,CAAE,UAKgC;AAAA,cAEtD,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-api-key.d.ts
|
|
4
|
+
declare const ExaGetApiKeyInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaGetApiKeyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaGetApiKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaGetApiKey };
|
|
9
|
+
//# sourceMappingURL=get-api-key.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-key.d.mts","names":[],"sources":["../../src/actions/get-api-key.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UAEiC;AAAA,cACtD,kBAAA,EAAoB,CAAA,CAAE,UAKgC;AAAA,cAEtD,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const exaGetApiKey = action("EXA_GET_API_KEY", {
|
|
4
|
+
slug: "exa-get-api-key",
|
|
5
|
+
name: "Get API Key",
|
|
6
|
+
description: "Tool to retrieve details of a specific API key by its ID. Use when you need to fetch information about an API key in the team management context.",
|
|
7
|
+
input: z.object({ apiKeyId: z.string().describe("The unique identifier of the API key to retrieve.") }).describe("Parameters to retrieve a specific API key by its ID."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.string().describe("The unique identifier of the API key."),
|
|
10
|
+
name: z.string().describe("The name or label assigned to this API key.").optional(),
|
|
11
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the API key was created."),
|
|
12
|
+
rateLimit: z.number().int().describe("The rate limit associated with this API key.").optional()
|
|
13
|
+
}).describe("Response schema for retrieving an API key's details.")
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { exaGetApiKey };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=get-api-key.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api-key.mjs","names":[],"sources":["../../src/actions/get-api-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetApiKeyInput: z.ZodTypeAny = z.object({\n apiKeyId: z.string().describe(\"The unique identifier of the API key to retrieve.\"),\n}).describe(\"Parameters to retrieve a specific API key by its ID.\");\nexport const ExaGetApiKeyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the API key.\"),\n name: z.string().describe(\"The name or label assigned to this API key.\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the API key was created.\"),\n rateLimit: z.number().int().describe(\"The rate limit associated with this API key.\").optional(),\n}).describe(\"Response schema for retrieving an API key's details.\");\n\nexport const exaGetApiKey = action(\"EXA_GET_API_KEY\", {\n slug: \"exa-get-api-key\",\n name: \"Get API Key\",\n description: \"Tool to retrieve details of a specific API key by its ID. Use when you need to fetch information about an API key in the team management context.\",\n input: ExaGetApiKeyInput,\n output: ExaGetApiKeyOutput,\n});\n"],"mappings":";;AAcA,MAAa,eAAe,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd6C,EAAE,OAAO,EACtD,UAAU,EAAE,OAAO,EAAE,SAAS,mDAAmD,EACnF,CAAC,EAAE,SAAS,sDAYH;CACP,QAZ8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,EAAE,SAAS,uCAAuC;EAC/D,MAAM,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;EAClF,WAAW,EAAE,OAAO,EAAE,SAAS,kDAAkD;EACjF,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,8CAA8C,EAAE,SAAS;CAChG,CAAC,EAAE,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-contents-action.ts
|
|
4
|
+
const ExaGetContentsActionInput = zod.z.object({
|
|
5
|
+
ids: zod.z.array(zod.z.string()).describe("(Deprecated alias for 'urls') A list of document IDs or URLs. Use 'urls' parameter instead for consistency with the Exa API.").optional(),
|
|
6
|
+
text: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
7
|
+
verbosity: zod.z.string().nullable().optional(),
|
|
8
|
+
maxCharacters: zod.z.number().int().nullable().optional(),
|
|
9
|
+
excludeSections: zod.z.array(zod.z.string()).nullable().optional(),
|
|
10
|
+
includeHtmlTags: zod.z.boolean().nullable().optional(),
|
|
11
|
+
includeSections: zod.z.array(zod.z.string()).nullable().optional()
|
|
12
|
+
}).describe("Configuration for customizing text extraction from documents.")]).optional(),
|
|
13
|
+
urls: zod.z.array(zod.z.string()).describe("A list of fully qualified URLs (e.g., 'https://example.com/article') or document IDs (strings obtained from Exa search results) for which to retrieve content. At least one URL or ID must be provided.").optional(),
|
|
14
|
+
extras: zod.z.object({
|
|
15
|
+
links: zod.z.number().int().default(0).describe("Number of links to extract from the document. Defaults to 0 (no links extracted).").optional(),
|
|
16
|
+
imageLinks: zod.z.number().int().default(0).describe("Number of image links to extract from the document. Defaults to 0 (no image links extracted).").optional()
|
|
17
|
+
}).describe("Configuration for extracting additional metadata from documents.").optional(),
|
|
18
|
+
summary: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
19
|
+
query: zod.z.string().nullable().optional(),
|
|
20
|
+
schema: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional()
|
|
21
|
+
}).describe("Configuration for AI-generated summary extraction from documents.")]).optional(),
|
|
22
|
+
subpages: zod.z.number().int().default(0).describe("Number of subpages to crawl per URL. Enables crawling linked pages within a site in one request. Defaults to 0 (no subpage crawling).").optional(),
|
|
23
|
+
highlights: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
24
|
+
query: zod.z.string().nullable().optional(),
|
|
25
|
+
maxCharacters: zod.z.number().int().nullable().optional()
|
|
26
|
+
}).describe("Configuration for customizing AI-generated highlight extraction from documents.")]).optional(),
|
|
27
|
+
maxAgeHours: zod.z.number().int().describe("Controls content freshness. `0` = always livecrawl, `-1` = never livecrawl (cache only), `None` or positive integer = livecrawl as fallback if cached content is older than specified hours.").optional(),
|
|
28
|
+
subpageTarget: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
|
|
29
|
+
livecrawlTimeout: zod.z.number().int().default(1e4).describe("Timeout in milliseconds for livecrawl operations. Recommended: 10000-15000 when forcing livecrawl. Defaults to 10000.").optional()
|
|
30
|
+
}).describe("Parameters for retrieving content from specified URLs or Exa document IDs.");
|
|
31
|
+
const ExaGetContentsAction_ExtrasDataSchema = zod.z.object({
|
|
32
|
+
links: zod.z.array(zod.z.string()).describe("Extracted links from the document.").optional(),
|
|
33
|
+
imageLinks: zod.z.array(zod.z.string()).describe("Extracted image links from the document.").optional()
|
|
34
|
+
}).describe("Additional metadata extracted from documents.");
|
|
35
|
+
const ExaGetContentsAction_ContentResultItemSchema = zod.z.lazy(() => zod.z.object({
|
|
36
|
+
id: zod.z.string().describe("The unique ID of the document or the URL provided in the request."),
|
|
37
|
+
url: zod.z.string().describe("The canonical URL of the document, if available.").optional(),
|
|
38
|
+
text: zod.z.string().describe("The extracted text content of the document, if requested. With `text=true`, responses can be very large; set `maxCharacters` in a `TextOptions` object to cap length and prevent token overflow. Extracted text may include navigation boilerplate, flattened tables, and duplicate content — plan for post-processing.").optional(),
|
|
39
|
+
image: zod.z.string().describe("URL of the main image for the document, if available.").optional(),
|
|
40
|
+
title: zod.z.string().describe("The title of the document.").optional(),
|
|
41
|
+
author: zod.z.string().describe("The author of the document, if available.").optional(),
|
|
42
|
+
extras: ExaGetContentsAction_ExtrasDataSchema.nullable().optional(),
|
|
43
|
+
favicon: zod.z.string().describe("URL of the favicon for the document's site, if available.").optional(),
|
|
44
|
+
summary: zod.z.string().describe("AI-generated summary of the document, if requested.").optional(),
|
|
45
|
+
subpages: zod.z.array(ExaGetContentsAction_ContentResultItemSchema).describe("Nested results from subpage crawl, if requested. Each subpage has the same structure as a top-level result.").optional(),
|
|
46
|
+
highlights: zod.z.array(zod.z.string()).describe("A list of AI-generated highlight snippets from the document content, if requested. Prefer `highlights` with `text=false` when only key passages are needed, to reduce payload size and cost.").optional(),
|
|
47
|
+
publishedDate: zod.z.string().describe("The publication date of the document (e.g., YYYY-MM-DD).").optional()
|
|
48
|
+
}));
|
|
49
|
+
const ExaGetContentsAction_StatusErrorSchema = zod.z.object({
|
|
50
|
+
tag: zod.z.string().describe("Error tag identifying the failure type: CRAWL_NOT_FOUND, CRAWL_TIMEOUT, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL, CRAWL_UNKNOWN_ERROR"),
|
|
51
|
+
httpStatusCode: zod.z.number().int().describe("HTTP status code associated with the error, if applicable.").optional()
|
|
52
|
+
}).describe("Error details for a failed content retrieval.");
|
|
53
|
+
const ExaGetContentsAction_ContentStatusSchema = zod.z.object({
|
|
54
|
+
id: zod.z.string().describe("The URL or document ID from the request."),
|
|
55
|
+
error: ExaGetContentsAction_StatusErrorSchema.nullable().optional(),
|
|
56
|
+
source: zod.z.string().describe("Source of the content: 'cached' or 'livecrawl'.").optional(),
|
|
57
|
+
status: zod.z.string().describe("Status of content retrieval: 'success' or 'error'.")
|
|
58
|
+
}).describe("Status information for a single URL/ID in the request.");
|
|
59
|
+
const ExaGetContentsActionOutput = zod.z.object({
|
|
60
|
+
results: zod.z.array(ExaGetContentsAction_ContentResultItemSchema).describe("A list of ContentResultItem objects, one for each successfully processed document ID or URL from the request. Each item provides detailed content and metadata for a document."),
|
|
61
|
+
statuses: zod.z.array(ExaGetContentsAction_ContentStatusSchema).describe("Status information for each requested URL. CRITICAL: The endpoint returns HTTP 200 even when individual URLs fail — always inspect this array for errors like CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL."),
|
|
62
|
+
requestId: zod.z.string().describe("A unique string identifier assigned by the Exa service to this specific API request instance, useful for logging and support."),
|
|
63
|
+
costDollars: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A dictionary providing details about the monetary cost incurred for processing the API request. Structure may vary.")
|
|
64
|
+
}).describe("Response containing document contents, including extracted text, highlights, and metadata.");
|
|
65
|
+
const exaGetContentsAction = require_action.action("EXA_GET_CONTENTS_ACTION", {
|
|
66
|
+
slug: "exa-get-contents-action",
|
|
67
|
+
name: "Get contents from URLs or document IDs",
|
|
68
|
+
description: "Retrieve text / highlights / summary / subpages from URLs. The endpoint returns HTTP 200 even when individual URLs fail — always inspect `statuses[]` for CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE. Control freshness with `maxAgeHours` (0 = always livecrawl, -1 = cache only). Use `subpages` + `subpageTarget` to crawl linked pages within a site in one request.",
|
|
69
|
+
input: ExaGetContentsActionInput,
|
|
70
|
+
output: ExaGetContentsActionOutput
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
exports.exaGetContentsAction = exaGetContentsAction;
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=get-contents-action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contents-action.cjs","names":["z","action"],"sources":["../../src/actions/get-contents-action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetContentsActionInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"(Deprecated alias for 'urls') A list of document IDs or URLs. Use 'urls' parameter instead for consistency with the Exa API.\").optional(),\n text: z.union([z.boolean(), z.object({\n verbosity: z.string().nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n excludeSections: z.array(z.string()).nullable().optional(),\n includeHtmlTags: z.boolean().nullable().optional(),\n includeSections: z.array(z.string()).nullable().optional(),\n}).describe(\"Configuration for customizing text extraction from documents.\")]).optional(),\n urls: z.array(z.string()).describe(\"A list of fully qualified URLs (e.g., 'https://example.com/article') or document IDs (strings obtained from Exa search results) for which to retrieve content. At least one URL or ID must be provided.\").optional(),\n extras: z.object({\n links: z.number().int().default(0).describe(\"Number of links to extract from the document. Defaults to 0 (no links extracted).\").optional(),\n imageLinks: z.number().int().default(0).describe(\"Number of image links to extract from the document. Defaults to 0 (no image links extracted).\").optional(),\n}).describe(\"Configuration for extracting additional metadata from documents.\").optional(),\n summary: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n schema: z.record(z.string(), z.unknown()).nullable().optional(),\n}).describe(\"Configuration for AI-generated summary extraction from documents.\")]).optional(),\n subpages: z.number().int().default(0).describe(\"Number of subpages to crawl per URL. Enables crawling linked pages within a site in one request. Defaults to 0 (no subpage crawling).\").optional(),\n highlights: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n}).describe(\"Configuration for customizing AI-generated highlight extraction from documents.\")]).optional(),\n maxAgeHours: z.number().int().describe(\"Controls content freshness. `0` = always livecrawl, `-1` = never livecrawl (cache only), `None` or positive integer = livecrawl as fallback if cached content is older than specified hours.\").optional(),\n subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),\n livecrawlTimeout: z.number().int().default(10000).describe(\"Timeout in milliseconds for livecrawl operations. Recommended: 10000-15000 when forcing livecrawl. Defaults to 10000.\").optional(),\n}).describe(\"Parameters for retrieving content from specified URLs or Exa document IDs.\");\nconst ExaGetContentsAction_ExtrasDataSchema: z.ZodTypeAny = z.object({\n links: z.array(z.string()).describe(\"Extracted links from the document.\").optional(),\n imageLinks: z.array(z.string()).describe(\"Extracted image links from the document.\").optional(),\n}).describe(\"Additional metadata extracted from documents.\");\nconst ExaGetContentsAction_ContentResultItemSchema: z.ZodTypeAny = z.lazy((): z.ZodTypeAny => z.object({\n id: z.string().describe(\"The unique ID of the document or the URL provided in the request.\"),\n url: z.string().describe(\"The canonical URL of the document, if available.\").optional(),\n text: z.string().describe(\"The extracted text content of the document, if requested. With `text=true`, responses can be very large; set `maxCharacters` in a `TextOptions` object to cap length and prevent token overflow. Extracted text may include navigation boilerplate, flattened tables, and duplicate content — plan for post-processing.\").optional(),\n image: z.string().describe(\"URL of the main image for the document, if available.\").optional(),\n title: z.string().describe(\"The title of the document.\").optional(),\n author: z.string().describe(\"The author of the document, if available.\").optional(),\n extras: ExaGetContentsAction_ExtrasDataSchema.nullable().optional(),\n favicon: z.string().describe(\"URL of the favicon for the document's site, if available.\").optional(),\n summary: z.string().describe(\"AI-generated summary of the document, if requested.\").optional(),\n subpages: z.array((ExaGetContentsAction_ContentResultItemSchema as z.ZodTypeAny)).describe(\"Nested results from subpage crawl, if requested. Each subpage has the same structure as a top-level result.\").optional(),\n highlights: z.array(z.string()).describe(\"A list of AI-generated highlight snippets from the document content, if requested. Prefer `highlights` with `text=false` when only key passages are needed, to reduce payload size and cost.\").optional(),\n publishedDate: z.string().describe(\"The publication date of the document (e.g., YYYY-MM-DD).\").optional(),\n})) as z.ZodTypeAny;\nconst ExaGetContentsAction_StatusErrorSchema: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Error tag identifying the failure type: CRAWL_NOT_FOUND, CRAWL_TIMEOUT, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL, CRAWL_UNKNOWN_ERROR\"),\n httpStatusCode: z.number().int().describe(\"HTTP status code associated with the error, if applicable.\").optional(),\n}).describe(\"Error details for a failed content retrieval.\");\nconst ExaGetContentsAction_ContentStatusSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The URL or document ID from the request.\"),\n error: ExaGetContentsAction_StatusErrorSchema.nullable().optional(),\n source: z.string().describe(\"Source of the content: 'cached' or 'livecrawl'.\").optional(),\n status: z.string().describe(\"Status of content retrieval: 'success' or 'error'.\"),\n}).describe(\"Status information for a single URL/ID in the request.\");\nexport const ExaGetContentsActionOutput: z.ZodTypeAny = z.object({\n results: z.array((ExaGetContentsAction_ContentResultItemSchema as z.ZodTypeAny)).describe(\"A list of ContentResultItem objects, one for each successfully processed document ID or URL from the request. Each item provides detailed content and metadata for a document.\"),\n statuses: z.array(ExaGetContentsAction_ContentStatusSchema).describe(\"Status information for each requested URL. CRITICAL: The endpoint returns HTTP 200 even when individual URLs fail — always inspect this array for errors like CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL.\"),\n requestId: z.string().describe(\"A unique string identifier assigned by the Exa service to this specific API request instance, useful for logging and support.\"),\n costDollars: z.record(z.string(), z.unknown()).describe(\"A dictionary providing details about the monetary cost incurred for processing the API request. Structure may vary.\"),\n}).describe(\"Response containing document contents, including extracted text, highlights, and metadata.\");\n\nexport const exaGetContentsAction = action(\"EXA_GET_CONTENTS_ACTION\", {\n slug: \"exa-get-contents-action\",\n name: \"Get contents from URLs or document IDs\",\n description: \"Retrieve text / highlights / summary / subpages from URLs. The endpoint returns HTTP 200 even when individual URLs fail — always inspect `statuses[]` for CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE. Control freshness with `maxAgeHours` (0 = always livecrawl, -1 = cache only). Use `subpages` + `subpageTarget` to crawl linked pages within a site in one request.\",\n input: ExaGetContentsActionInput,\n output: ExaGetContentsActionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,EAAE,SAAS,8HAA8H,EAAE,SAAS;CAC3K,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO;EACrC,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;EAC1C,eAAeA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS;EACpD,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;EACzD,iBAAiBA,IAAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS;EACjD,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;CAC3D,CAAC,EAAE,SAAS,+DAA+D,CAAC,CAAC,EAAE,SAAS;CACtF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,EAAE,SAAS,yMAAyM,EAAE,SAAS;CACvP,QAAQA,IAAAA,EAAE,O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,6JAA6J;CACtL,gBAAgBA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,4DAA4D,EAAE,SAAS;AACnH,CAAC,EAAE,SAAS,+CAA+C;AAC3D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,0CAA0C;CAClE,OAAO,uCAAuC,SAAS,EAAE,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,iDAAiD,EAAE,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,oDAAoD;AAClF,CAAC,EAAE,SAAS,wDAAwD;AACpE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,MAAO,4CAA6D,EAAE,SAAS,gLAAgL;CAC1Q,UAAUA,IAAAA,EAAE,MAAM,wCAAwC,EAAE,SAAS,gPAAgP;CACrT,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,+HAA+H;CAC9J,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,EAAE,SAAS,qHAAqH;AAC/K,CAAC,EAAE,SAAS,4FAA4F;AAExG,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-contents-action.d.ts
|
|
4
|
+
declare const ExaGetContentsActionInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaGetContentsActionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaGetContentsAction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaGetContentsAction };
|
|
9
|
+
//# sourceMappingURL=get-contents-action.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contents-action.d.cts","names":[],"sources":["../../src/actions/get-contents-action.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UA0B+C;AAAA,cA6B5E,0BAAA,EAA4B,CAAA,CAAE,UAK8D;AAAA,cAE5F,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-contents-action.d.ts
|
|
4
|
+
declare const ExaGetContentsActionInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaGetContentsActionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaGetContentsAction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaGetContentsAction };
|
|
9
|
+
//# sourceMappingURL=get-contents-action.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contents-action.d.mts","names":[],"sources":["../../src/actions/get-contents-action.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UA0B+C;AAAA,cA6B5E,0BAAA,EAA4B,CAAA,CAAE,UAK8D;AAAA,cAE5F,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-contents-action.ts
|
|
4
|
+
const ExaGetContentsActionInput = z.object({
|
|
5
|
+
ids: z.array(z.string()).describe("(Deprecated alias for 'urls') A list of document IDs or URLs. Use 'urls' parameter instead for consistency with the Exa API.").optional(),
|
|
6
|
+
text: z.union([z.boolean(), z.object({
|
|
7
|
+
verbosity: z.string().nullable().optional(),
|
|
8
|
+
maxCharacters: z.number().int().nullable().optional(),
|
|
9
|
+
excludeSections: z.array(z.string()).nullable().optional(),
|
|
10
|
+
includeHtmlTags: z.boolean().nullable().optional(),
|
|
11
|
+
includeSections: z.array(z.string()).nullable().optional()
|
|
12
|
+
}).describe("Configuration for customizing text extraction from documents.")]).optional(),
|
|
13
|
+
urls: z.array(z.string()).describe("A list of fully qualified URLs (e.g., 'https://example.com/article') or document IDs (strings obtained from Exa search results) for which to retrieve content. At least one URL or ID must be provided.").optional(),
|
|
14
|
+
extras: z.object({
|
|
15
|
+
links: z.number().int().default(0).describe("Number of links to extract from the document. Defaults to 0 (no links extracted).").optional(),
|
|
16
|
+
imageLinks: z.number().int().default(0).describe("Number of image links to extract from the document. Defaults to 0 (no image links extracted).").optional()
|
|
17
|
+
}).describe("Configuration for extracting additional metadata from documents.").optional(),
|
|
18
|
+
summary: z.union([z.boolean(), z.object({
|
|
19
|
+
query: z.string().nullable().optional(),
|
|
20
|
+
schema: z.record(z.string(), z.unknown()).nullable().optional()
|
|
21
|
+
}).describe("Configuration for AI-generated summary extraction from documents.")]).optional(),
|
|
22
|
+
subpages: z.number().int().default(0).describe("Number of subpages to crawl per URL. Enables crawling linked pages within a site in one request. Defaults to 0 (no subpage crawling).").optional(),
|
|
23
|
+
highlights: z.union([z.boolean(), z.object({
|
|
24
|
+
query: z.string().nullable().optional(),
|
|
25
|
+
maxCharacters: z.number().int().nullable().optional()
|
|
26
|
+
}).describe("Configuration for customizing AI-generated highlight extraction from documents.")]).optional(),
|
|
27
|
+
maxAgeHours: z.number().int().describe("Controls content freshness. `0` = always livecrawl, `-1` = never livecrawl (cache only), `None` or positive integer = livecrawl as fallback if cached content is older than specified hours.").optional(),
|
|
28
|
+
subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),
|
|
29
|
+
livecrawlTimeout: z.number().int().default(1e4).describe("Timeout in milliseconds for livecrawl operations. Recommended: 10000-15000 when forcing livecrawl. Defaults to 10000.").optional()
|
|
30
|
+
}).describe("Parameters for retrieving content from specified URLs or Exa document IDs.");
|
|
31
|
+
const ExaGetContentsAction_ExtrasDataSchema = z.object({
|
|
32
|
+
links: z.array(z.string()).describe("Extracted links from the document.").optional(),
|
|
33
|
+
imageLinks: z.array(z.string()).describe("Extracted image links from the document.").optional()
|
|
34
|
+
}).describe("Additional metadata extracted from documents.");
|
|
35
|
+
const ExaGetContentsAction_ContentResultItemSchema = z.lazy(() => z.object({
|
|
36
|
+
id: z.string().describe("The unique ID of the document or the URL provided in the request."),
|
|
37
|
+
url: z.string().describe("The canonical URL of the document, if available.").optional(),
|
|
38
|
+
text: z.string().describe("The extracted text content of the document, if requested. With `text=true`, responses can be very large; set `maxCharacters` in a `TextOptions` object to cap length and prevent token overflow. Extracted text may include navigation boilerplate, flattened tables, and duplicate content — plan for post-processing.").optional(),
|
|
39
|
+
image: z.string().describe("URL of the main image for the document, if available.").optional(),
|
|
40
|
+
title: z.string().describe("The title of the document.").optional(),
|
|
41
|
+
author: z.string().describe("The author of the document, if available.").optional(),
|
|
42
|
+
extras: ExaGetContentsAction_ExtrasDataSchema.nullable().optional(),
|
|
43
|
+
favicon: z.string().describe("URL of the favicon for the document's site, if available.").optional(),
|
|
44
|
+
summary: z.string().describe("AI-generated summary of the document, if requested.").optional(),
|
|
45
|
+
subpages: z.array(ExaGetContentsAction_ContentResultItemSchema).describe("Nested results from subpage crawl, if requested. Each subpage has the same structure as a top-level result.").optional(),
|
|
46
|
+
highlights: z.array(z.string()).describe("A list of AI-generated highlight snippets from the document content, if requested. Prefer `highlights` with `text=false` when only key passages are needed, to reduce payload size and cost.").optional(),
|
|
47
|
+
publishedDate: z.string().describe("The publication date of the document (e.g., YYYY-MM-DD).").optional()
|
|
48
|
+
}));
|
|
49
|
+
const ExaGetContentsAction_StatusErrorSchema = z.object({
|
|
50
|
+
tag: z.string().describe("Error tag identifying the failure type: CRAWL_NOT_FOUND, CRAWL_TIMEOUT, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL, CRAWL_UNKNOWN_ERROR"),
|
|
51
|
+
httpStatusCode: z.number().int().describe("HTTP status code associated with the error, if applicable.").optional()
|
|
52
|
+
}).describe("Error details for a failed content retrieval.");
|
|
53
|
+
const ExaGetContentsAction_ContentStatusSchema = z.object({
|
|
54
|
+
id: z.string().describe("The URL or document ID from the request."),
|
|
55
|
+
error: ExaGetContentsAction_StatusErrorSchema.nullable().optional(),
|
|
56
|
+
source: z.string().describe("Source of the content: 'cached' or 'livecrawl'.").optional(),
|
|
57
|
+
status: z.string().describe("Status of content retrieval: 'success' or 'error'.")
|
|
58
|
+
}).describe("Status information for a single URL/ID in the request.");
|
|
59
|
+
const exaGetContentsAction = action("EXA_GET_CONTENTS_ACTION", {
|
|
60
|
+
slug: "exa-get-contents-action",
|
|
61
|
+
name: "Get contents from URLs or document IDs",
|
|
62
|
+
description: "Retrieve text / highlights / summary / subpages from URLs. The endpoint returns HTTP 200 even when individual URLs fail — always inspect `statuses[]` for CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE. Control freshness with `maxAgeHours` (0 = always livecrawl, -1 = cache only). Use `subpages` + `subpageTarget` to crawl linked pages within a site in one request.",
|
|
63
|
+
input: ExaGetContentsActionInput,
|
|
64
|
+
output: z.object({
|
|
65
|
+
results: z.array(ExaGetContentsAction_ContentResultItemSchema).describe("A list of ContentResultItem objects, one for each successfully processed document ID or URL from the request. Each item provides detailed content and metadata for a document."),
|
|
66
|
+
statuses: z.array(ExaGetContentsAction_ContentStatusSchema).describe("Status information for each requested URL. CRITICAL: The endpoint returns HTTP 200 even when individual URLs fail — always inspect this array for errors like CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL."),
|
|
67
|
+
requestId: z.string().describe("A unique string identifier assigned by the Exa service to this specific API request instance, useful for logging and support."),
|
|
68
|
+
costDollars: z.record(z.string(), z.unknown()).describe("A dictionary providing details about the monetary cost incurred for processing the API request. Structure may vary.")
|
|
69
|
+
}).describe("Response containing document contents, including extracted text, highlights, and metadata.")
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
export { exaGetContentsAction };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=get-contents-action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contents-action.mjs","names":[],"sources":["../../src/actions/get-contents-action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetContentsActionInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"(Deprecated alias for 'urls') A list of document IDs or URLs. Use 'urls' parameter instead for consistency with the Exa API.\").optional(),\n text: z.union([z.boolean(), z.object({\n verbosity: z.string().nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n excludeSections: z.array(z.string()).nullable().optional(),\n includeHtmlTags: z.boolean().nullable().optional(),\n includeSections: z.array(z.string()).nullable().optional(),\n}).describe(\"Configuration for customizing text extraction from documents.\")]).optional(),\n urls: z.array(z.string()).describe(\"A list of fully qualified URLs (e.g., 'https://example.com/article') or document IDs (strings obtained from Exa search results) for which to retrieve content. At least one URL or ID must be provided.\").optional(),\n extras: z.object({\n links: z.number().int().default(0).describe(\"Number of links to extract from the document. Defaults to 0 (no links extracted).\").optional(),\n imageLinks: z.number().int().default(0).describe(\"Number of image links to extract from the document. Defaults to 0 (no image links extracted).\").optional(),\n}).describe(\"Configuration for extracting additional metadata from documents.\").optional(),\n summary: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n schema: z.record(z.string(), z.unknown()).nullable().optional(),\n}).describe(\"Configuration for AI-generated summary extraction from documents.\")]).optional(),\n subpages: z.number().int().default(0).describe(\"Number of subpages to crawl per URL. Enables crawling linked pages within a site in one request. Defaults to 0 (no subpage crawling).\").optional(),\n highlights: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n}).describe(\"Configuration for customizing AI-generated highlight extraction from documents.\")]).optional(),\n maxAgeHours: z.number().int().describe(\"Controls content freshness. `0` = always livecrawl, `-1` = never livecrawl (cache only), `None` or positive integer = livecrawl as fallback if cached content is older than specified hours.\").optional(),\n subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),\n livecrawlTimeout: z.number().int().default(10000).describe(\"Timeout in milliseconds for livecrawl operations. Recommended: 10000-15000 when forcing livecrawl. Defaults to 10000.\").optional(),\n}).describe(\"Parameters for retrieving content from specified URLs or Exa document IDs.\");\nconst ExaGetContentsAction_ExtrasDataSchema: z.ZodTypeAny = z.object({\n links: z.array(z.string()).describe(\"Extracted links from the document.\").optional(),\n imageLinks: z.array(z.string()).describe(\"Extracted image links from the document.\").optional(),\n}).describe(\"Additional metadata extracted from documents.\");\nconst ExaGetContentsAction_ContentResultItemSchema: z.ZodTypeAny = z.lazy((): z.ZodTypeAny => z.object({\n id: z.string().describe(\"The unique ID of the document or the URL provided in the request.\"),\n url: z.string().describe(\"The canonical URL of the document, if available.\").optional(),\n text: z.string().describe(\"The extracted text content of the document, if requested. With `text=true`, responses can be very large; set `maxCharacters` in a `TextOptions` object to cap length and prevent token overflow. Extracted text may include navigation boilerplate, flattened tables, and duplicate content — plan for post-processing.\").optional(),\n image: z.string().describe(\"URL of the main image for the document, if available.\").optional(),\n title: z.string().describe(\"The title of the document.\").optional(),\n author: z.string().describe(\"The author of the document, if available.\").optional(),\n extras: ExaGetContentsAction_ExtrasDataSchema.nullable().optional(),\n favicon: z.string().describe(\"URL of the favicon for the document's site, if available.\").optional(),\n summary: z.string().describe(\"AI-generated summary of the document, if requested.\").optional(),\n subpages: z.array((ExaGetContentsAction_ContentResultItemSchema as z.ZodTypeAny)).describe(\"Nested results from subpage crawl, if requested. Each subpage has the same structure as a top-level result.\").optional(),\n highlights: z.array(z.string()).describe(\"A list of AI-generated highlight snippets from the document content, if requested. Prefer `highlights` with `text=false` when only key passages are needed, to reduce payload size and cost.\").optional(),\n publishedDate: z.string().describe(\"The publication date of the document (e.g., YYYY-MM-DD).\").optional(),\n})) as z.ZodTypeAny;\nconst ExaGetContentsAction_StatusErrorSchema: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Error tag identifying the failure type: CRAWL_NOT_FOUND, CRAWL_TIMEOUT, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL, CRAWL_UNKNOWN_ERROR\"),\n httpStatusCode: z.number().int().describe(\"HTTP status code associated with the error, if applicable.\").optional(),\n}).describe(\"Error details for a failed content retrieval.\");\nconst ExaGetContentsAction_ContentStatusSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The URL or document ID from the request.\"),\n error: ExaGetContentsAction_StatusErrorSchema.nullable().optional(),\n source: z.string().describe(\"Source of the content: 'cached' or 'livecrawl'.\").optional(),\n status: z.string().describe(\"Status of content retrieval: 'success' or 'error'.\"),\n}).describe(\"Status information for a single URL/ID in the request.\");\nexport const ExaGetContentsActionOutput: z.ZodTypeAny = z.object({\n results: z.array((ExaGetContentsAction_ContentResultItemSchema as z.ZodTypeAny)).describe(\"A list of ContentResultItem objects, one for each successfully processed document ID or URL from the request. Each item provides detailed content and metadata for a document.\"),\n statuses: z.array(ExaGetContentsAction_ContentStatusSchema).describe(\"Status information for each requested URL. CRITICAL: The endpoint returns HTTP 200 even when individual URLs fail — always inspect this array for errors like CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE, UNSUPPORTED_URL.\"),\n requestId: z.string().describe(\"A unique string identifier assigned by the Exa service to this specific API request instance, useful for logging and support.\"),\n costDollars: z.record(z.string(), z.unknown()).describe(\"A dictionary providing details about the monetary cost incurred for processing the API request. Structure may vary.\"),\n}).describe(\"Response containing document contents, including extracted text, highlights, and metadata.\");\n\nexport const exaGetContentsAction = action(\"EXA_GET_CONTENTS_ACTION\", {\n slug: \"exa-get-contents-action\",\n name: \"Get contents from URLs or document IDs\",\n description: \"Retrieve text / highlights / summary / subpages from URLs. The endpoint returns HTTP 200 even when individual URLs fail — always inspect `statuses[]` for CRAWL_NOT_FOUND, CRAWL_LIVECRAWL_TIMEOUT, SOURCE_NOT_AVAILABLE. Control freshness with `maxAgeHours` (0 = always livecrawl, -1 = cache only). Use `subpages` + `subpageTarget` to crawl linked pages within a site in one request.\",\n input: ExaGetContentsActionInput,\n output: ExaGetContentsActionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,8HAA8H,EAAE,SAAS;CAC3K,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO;EACrC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;EAC1C,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS;EACpD,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;EACzD,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS;EACjD,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;CAC3D,CAAC,EAAE,SAAS,+DAA+D,CAAC,CAAC,EAAE,SAAS;CACtF,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,yMAAyM,EAAE,SAAS;CACvP,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,SAAS,mFAAmF,EAAE,SAAS;EAC1I,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,SAAS,+FAA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