@keystrokehq/exa 0.1.3 → 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.
Files changed (197) hide show
  1. package/README.md +7 -108
  2. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  3. package/dist/action.cjs +21 -0
  4. package/dist/action.cjs.map +1 -0
  5. package/dist/action.mjs +21 -0
  6. package/dist/action.mjs.map +1 -0
  7. package/dist/actions/answer.cjs +81 -0
  8. package/dist/actions/answer.cjs.map +1 -0
  9. package/dist/actions/answer.d.cts +9 -0
  10. package/dist/actions/answer.d.cts.map +1 -0
  11. package/dist/actions/answer.d.mts +9 -0
  12. package/dist/actions/answer.d.mts.map +1 -0
  13. package/dist/actions/answer.mjs +80 -0
  14. package/dist/actions/answer.mjs.map +1 -0
  15. package/dist/actions/create-import.cjs +41 -0
  16. package/dist/actions/create-import.cjs.map +1 -0
  17. package/dist/actions/create-import.d.cts +9 -0
  18. package/dist/actions/create-import.d.cts.map +1 -0
  19. package/dist/actions/create-import.d.mts +9 -0
  20. package/dist/actions/create-import.d.mts.map +1 -0
  21. package/dist/actions/create-import.mjs +40 -0
  22. package/dist/actions/create-import.mjs.map +1 -0
  23. package/dist/actions/create-monitor.cjs +81 -0
  24. package/dist/actions/create-monitor.cjs.map +1 -0
  25. package/dist/actions/create-monitor.d.cts +9 -0
  26. package/dist/actions/create-monitor.d.cts.map +1 -0
  27. package/dist/actions/create-monitor.d.mts +9 -0
  28. package/dist/actions/create-monitor.d.mts.map +1 -0
  29. package/dist/actions/create-monitor.mjs +80 -0
  30. package/dist/actions/create-monitor.mjs.map +1 -0
  31. package/dist/actions/create-research.cjs +45 -0
  32. package/dist/actions/create-research.cjs.map +1 -0
  33. package/dist/actions/create-research.d.cts +9 -0
  34. package/dist/actions/create-research.d.cts.map +1 -0
  35. package/dist/actions/create-research.d.mts +9 -0
  36. package/dist/actions/create-research.d.mts.map +1 -0
  37. package/dist/actions/create-research.mjs +44 -0
  38. package/dist/actions/create-research.mjs.map +1 -0
  39. package/dist/actions/create-webset.cjs +201 -0
  40. package/dist/actions/create-webset.cjs.map +1 -0
  41. package/dist/actions/create-webset.d.cts +9 -0
  42. package/dist/actions/create-webset.d.cts.map +1 -0
  43. package/dist/actions/create-webset.d.mts +9 -0
  44. package/dist/actions/create-webset.d.mts.map +1 -0
  45. package/dist/actions/create-webset.mjs +200 -0
  46. package/dist/actions/create-webset.mjs.map +1 -0
  47. package/dist/actions/delete-import.cjs +31 -0
  48. package/dist/actions/delete-import.cjs.map +1 -0
  49. package/dist/actions/delete-import.d.cts +9 -0
  50. package/dist/actions/delete-import.d.cts.map +1 -0
  51. package/dist/actions/delete-import.d.mts +9 -0
  52. package/dist/actions/delete-import.d.mts.map +1 -0
  53. package/dist/actions/delete-import.mjs +30 -0
  54. package/dist/actions/delete-import.mjs.map +1 -0
  55. package/dist/actions/delete-webset.cjs +153 -0
  56. package/dist/actions/delete-webset.cjs.map +1 -0
  57. package/dist/actions/delete-webset.d.cts +9 -0
  58. package/dist/actions/delete-webset.d.cts.map +1 -0
  59. package/dist/actions/delete-webset.d.mts +9 -0
  60. package/dist/actions/delete-webset.d.mts.map +1 -0
  61. package/dist/actions/delete-webset.mjs +152 -0
  62. package/dist/actions/delete-webset.mjs.map +1 -0
  63. package/dist/actions/get-api-key.cjs +21 -0
  64. package/dist/actions/get-api-key.cjs.map +1 -0
  65. package/dist/actions/get-api-key.d.cts +9 -0
  66. package/dist/actions/get-api-key.d.cts.map +1 -0
  67. package/dist/actions/get-api-key.d.mts +9 -0
  68. package/dist/actions/get-api-key.d.mts.map +1 -0
  69. package/dist/actions/get-api-key.mjs +18 -0
  70. package/dist/actions/get-api-key.mjs.map +1 -0
  71. package/dist/actions/get-contents-action.cjs +75 -0
  72. package/dist/actions/get-contents-action.cjs.map +1 -0
  73. package/dist/actions/get-contents-action.d.cts +9 -0
  74. package/dist/actions/get-contents-action.d.cts.map +1 -0
  75. package/dist/actions/get-contents-action.d.mts +9 -0
  76. package/dist/actions/get-contents-action.d.mts.map +1 -0
  77. package/dist/actions/get-contents-action.mjs +74 -0
  78. package/dist/actions/get-contents-action.mjs.map +1 -0
  79. package/dist/actions/get-event.cjs +140 -0
  80. package/dist/actions/get-event.cjs.map +1 -0
  81. package/dist/actions/get-event.d.cts +9 -0
  82. package/dist/actions/get-event.d.cts.map +1 -0
  83. package/dist/actions/get-event.d.mts +9 -0
  84. package/dist/actions/get-event.d.mts.map +1 -0
  85. package/dist/actions/get-event.mjs +139 -0
  86. package/dist/actions/get-event.mjs.map +1 -0
  87. package/dist/actions/get-research.cjs +47 -0
  88. package/dist/actions/get-research.cjs.map +1 -0
  89. package/dist/actions/get-research.d.cts +9 -0
  90. package/dist/actions/get-research.d.cts.map +1 -0
  91. package/dist/actions/get-research.d.mts +9 -0
  92. package/dist/actions/get-research.d.mts.map +1 -0
  93. package/dist/actions/get-research.mjs +46 -0
  94. package/dist/actions/get-research.mjs.map +1 -0
  95. package/dist/actions/index.cjs +34 -16
  96. package/dist/actions/index.d.cts +18 -2
  97. package/dist/actions/index.d.mts +18 -2
  98. package/dist/actions/index.mjs +18 -2
  99. package/dist/actions/list-events.cjs +32 -0
  100. package/dist/actions/list-events.cjs.map +1 -0
  101. package/dist/actions/list-events.d.cts +9 -0
  102. package/dist/actions/list-events.d.cts.map +1 -0
  103. package/dist/actions/list-events.d.mts +9 -0
  104. package/dist/actions/list-events.d.mts.map +1 -0
  105. package/dist/actions/list-events.mjs +31 -0
  106. package/dist/actions/list-events.mjs.map +1 -0
  107. package/dist/actions/list-imports.cjs +54 -0
  108. package/dist/actions/list-imports.cjs.map +1 -0
  109. package/dist/actions/list-imports.d.cts +9 -0
  110. package/dist/actions/list-imports.d.cts.map +1 -0
  111. package/dist/actions/list-imports.d.mts +9 -0
  112. package/dist/actions/list-imports.d.mts.map +1 -0
  113. package/dist/actions/list-imports.mjs +53 -0
  114. package/dist/actions/list-imports.mjs.map +1 -0
  115. package/dist/actions/list-research.cjs +49 -0
  116. package/dist/actions/list-research.cjs.map +1 -0
  117. package/dist/actions/list-research.d.cts +9 -0
  118. package/dist/actions/list-research.d.cts.map +1 -0
  119. package/dist/actions/list-research.d.mts +9 -0
  120. package/dist/actions/list-research.d.mts.map +1 -0
  121. package/dist/actions/list-research.mjs +48 -0
  122. package/dist/actions/list-research.mjs.map +1 -0
  123. package/dist/actions/list-webhooks.cjs +34 -0
  124. package/dist/actions/list-webhooks.cjs.map +1 -0
  125. package/dist/actions/list-webhooks.d.cts +9 -0
  126. package/dist/actions/list-webhooks.d.cts.map +1 -0
  127. package/dist/actions/list-webhooks.d.mts +9 -0
  128. package/dist/actions/list-webhooks.d.mts.map +1 -0
  129. package/dist/actions/list-webhooks.mjs +33 -0
  130. package/dist/actions/list-webhooks.mjs.map +1 -0
  131. package/dist/actions/search.cjs +145 -0
  132. package/dist/actions/search.cjs.map +1 -0
  133. package/dist/actions/search.d.cts +9 -0
  134. package/dist/actions/search.d.cts.map +1 -0
  135. package/dist/actions/search.d.mts +9 -0
  136. package/dist/actions/search.d.mts.map +1 -0
  137. package/dist/actions/search.mjs +144 -0
  138. package/dist/actions/search.mjs.map +1 -0
  139. package/dist/actions/update-import.cjs +35 -0
  140. package/dist/actions/update-import.cjs.map +1 -0
  141. package/dist/actions/update-import.d.cts +9 -0
  142. package/dist/actions/update-import.d.cts.map +1 -0
  143. package/dist/actions/update-import.d.mts +9 -0
  144. package/dist/actions/update-import.d.mts.map +1 -0
  145. package/dist/actions/update-import.mjs +34 -0
  146. package/dist/actions/update-import.mjs.map +1 -0
  147. package/dist/app.cjs +9 -0
  148. package/dist/app.cjs.map +1 -0
  149. package/dist/app.d.cts +5 -0
  150. package/dist/app.d.cts.map +1 -0
  151. package/dist/app.d.mts +5 -0
  152. package/dist/app.d.mts.map +1 -0
  153. package/dist/app.mjs +10 -0
  154. package/dist/app.mjs.map +1 -0
  155. package/dist/catalog.cjs +15 -0
  156. package/dist/catalog.cjs.map +1 -0
  157. package/dist/catalog.d.cts +14 -0
  158. package/dist/catalog.d.cts.map +1 -0
  159. package/dist/catalog.d.mts +14 -0
  160. package/dist/catalog.d.mts.map +1 -0
  161. package/dist/catalog.mjs +15 -0
  162. package/dist/catalog.mjs.map +1 -0
  163. package/dist/client.cjs +30 -2
  164. package/dist/client.cjs.map +1 -0
  165. package/dist/execute.cjs +18 -0
  166. package/dist/execute.cjs.map +1 -0
  167. package/dist/execute.mjs +18 -0
  168. package/dist/execute.mjs.map +1 -0
  169. package/dist/index.cjs +38 -14
  170. package/dist/index.d.cts +20 -17
  171. package/dist/index.d.mts +20 -17
  172. package/dist/index.mjs +21 -5
  173. package/package.json +13 -13
  174. package/dist/actions-CJq1Nyt_.mjs +0 -349
  175. package/dist/actions-CJq1Nyt_.mjs.map +0 -1
  176. package/dist/actions-LoQVlbiT.cjs +0 -438
  177. package/dist/actions-LoQVlbiT.cjs.map +0 -1
  178. package/dist/app-CBLUruR0.mjs +0 -15
  179. package/dist/app-CBLUruR0.mjs.map +0 -1
  180. package/dist/app-DMujvH6I.cjs +0 -26
  181. package/dist/app-DMujvH6I.cjs.map +0 -1
  182. package/dist/client-DlwHA71b.cjs +0 -56
  183. package/dist/client-DlwHA71b.cjs.map +0 -1
  184. package/dist/index-BwCGHs6v.d.cts +0 -357
  185. package/dist/index-BwCGHs6v.d.cts.map +0 -1
  186. package/dist/index-BwCGHs6v.d.mts +0 -357
  187. package/dist/index-BwCGHs6v.d.mts.map +0 -1
  188. package/dist/index.d.cts.map +0 -1
  189. package/dist/index.d.mts.map +0 -1
  190. package/dist/mcp.cjs +0 -57
  191. package/dist/mcp.cjs.map +0 -1
  192. package/dist/mcp.d.cts +0 -16
  193. package/dist/mcp.d.cts.map +0 -1
  194. package/dist/mcp.d.mts +0 -16
  195. package/dist/mcp.d.mts.map +0 -1
  196. package/dist/mcp.mjs +0 -54
  197. package/dist/mcp.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-webset.cjs","names":["z","action"],"sources":["../../src/actions/create-webset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaCreateWebsetInput: z.ZodTypeAny = z.object({\n \"import\": z.array(z.object({\n id: z.string().describe(\"Identifier of the import or webset to include.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source to import ('import' or 'webset').\"),\n}).describe(\"Import existing data into the Webset.\")).describe(\"Import data from existing Websets or Imports.\").optional(),\n search: z.object({\n count: z.number().int().default(10).describe(\"Number of items the Webset will attempt to find.\").optional(),\n query: z.string().describe(\"Natural language search query describing what you are looking for.\"),\n scope: z.array(z.object({\n id: z.string().describe(\"Identifier of the source to include or exclude.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source ('import' or 'webset').\"),\n}).describe(\"Source to include or exclude in search.\")).describe(\"Limit the search to specific sources.\").optional(),\n entity: z.object({\n type: z.enum([\"company\", \"person\", \"article\", \"research_paper\", \"custom\"]).default(\"company\").describe(\"Allowed entity types for the search or import.\").optional(),\n}).describe(\"Entity type for searches and imports.\").optional(),\n recall: z.boolean().describe(\"Whether to estimate total relevant results available for this search.\").optional(),\n exclude: z.array(z.object({\n id: z.string().describe(\"Identifier of the source to include or exclude.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source ('import' or 'webset').\"),\n}).describe(\"Source to include or exclude in search.\")).describe(\"Sources to exclude from search results.\").optional(),\n criteria: z.array(z.object({\n description: z.string().describe(\"Description of the evaluation criterion.\"),\n successRate: z.number().int().describe(\"Success rate percentage for this criterion.\").optional(),\n}).describe(\"Criterion to evaluate search results against.\")).describe(\"Custom criteria to evaluate items against.\").optional(),\n}).describe(\"Initial search configuration for the Webset.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary key-value pairs to associate with this Webset.\").optional(),\n externalId: z.string().describe(\"External identifier to reference the Webset in your system.\").optional(),\n enrichments: z.array(z.object({\n title: z.string().describe(\"Title of the enrichment task.\"),\n format: z.string().describe(\"Format of the enrichment output, e.g., 'text'.\").optional(),\n options: z.array(z.record(z.string(), z.unknown())).describe(\"Additional options for enrichment.\").optional(),\n description: z.string().describe(\"Description of what to enrich for.\").optional(),\n instructions: z.string().describe(\"Instructions for the enrichment process.\").optional(),\n}).describe(\"Parameters to create an enrichment.\")).describe(\"Enrichments to apply to Webset items.\").optional(),\n}).describe(\"Parameters to create a new Webset with initial search, imports, and enrichments.\");\nconst ExaCreateWebset_EntitySchema: z.ZodTypeAny = z.object({\n type: z.enum([\"company\", \"person\", \"article\", \"research_paper\", \"custom\"]).default(\"company\").describe(\"Allowed entity types for the search or import.\").optional(),\n}).describe(\"Entity type for searches and imports.\");\nconst ExaCreateWebset_ImportItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the import.\"),\n count: z.number().int().describe(\"Number of items in the import.\").optional(),\n title: z.string().describe(\"Title of the import.\").optional(),\n entity: ExaCreateWebset_EntitySchema.nullable(),\n format: z.string().describe(\"Format of the import.\"),\n object: z.string().describe(\"Object type, always 'import'.\"),\n status: z.string().describe(\"Status of the import.\"),\n failedAt: z.string().describe(\"Failure timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the import.\"),\n createdAt: z.string().describe(\"Creation timestamp of the import.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the import.\"),\n failedReason: z.string().describe(\"Reason for import failure.\").optional(),\n failedMessage: z.string().describe(\"Failure message.\").optional(),\n}).describe(\"Represents an import performed on the Webset.\");\nconst ExaCreateWebset_CadenceSchema: z.ZodTypeAny = z.object({\n cron: z.string().describe(\"Cron expression for scheduling.\"),\n timezone: z.string().describe(\"Timezone for the schedule, e.g. 'Etc/UTC'.\"),\n}).describe(\"Schedule cadence for a monitor.\");\nconst ExaCreateWebset_MonitorRunSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Run identifier.\"),\n type: z.string().describe(\"Type of run.\"),\n object: z.string().describe(\"Object type.\"),\n status: z.string().describe(\"Status of the run.\"),\n failedAt: z.string().describe(\"Failure timestamp.\").optional(),\n createdAt: z.string().describe(\"Creation timestamp.\"),\n monitorId: z.string().describe(\"Identifier of the monitor.\"),\n updatedAt: z.string().describe(\"Last update timestamp.\"),\n canceledAt: z.string().describe(\"Cancelation timestamp.\").optional(),\n completedAt: z.string().describe(\"Completion timestamp.\").optional(),\n failedReason: z.string().describe(\"Reason for failure.\").optional(),\n}).describe(\"Represents the last run of a monitor.\");\nconst ExaCreateWebset_CriterionSchema: z.ZodTypeAny = z.object({\n description: z.string().describe(\"Description of the evaluation criterion.\"),\n successRate: z.number().int().describe(\"Success rate percentage for this criterion.\").optional(),\n}).describe(\"Criterion to evaluate search results against.\");\nconst ExaCreateWebset_BehaviorConfigSchema: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of items to find each run.\"),\n query: z.string().describe(\"Search query for monitor runs.\"),\n entity: ExaCreateWebset_EntitySchema.nullable(),\n behavior: z.string().describe(\"Behavior mode for monitor, e.g. 'append'.\"),\n criteria: z.array(ExaCreateWebset_CriterionSchema).describe(\"Criteria to evaluate monitor results.\"),\n}).describe(\"Configuration for monitor behavior.\");\nconst ExaCreateWebset_MonitorBehaviorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of monitor behavior.\"),\n config: ExaCreateWebset_BehaviorConfigSchema.nullable(),\n}).describe(\"Defines monitor behavior and config.\");\nconst ExaCreateWebset_MonitorItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the monitor.\"),\n object: z.string().describe(\"Object type.\"),\n status: z.string().describe(\"Status of the monitor.\"),\n cadence: ExaCreateWebset_CadenceSchema.nullable(),\n lastRun: ExaCreateWebset_MonitorRunSchema.nullable(),\n behavior: ExaCreateWebset_MonitorBehaviorSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the monitor.\"),\n websetId: z.string().describe(\"Identifier of the parent webset.\"),\n createdAt: z.string().describe(\"Creation timestamp of the monitor.\"),\n nextRunAt: z.string().describe(\"Next scheduled run timestamp.\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp of the monitor.\"),\n}).describe(\"Represents a monitor configured on the Webset.\");\nconst ExaCreateWebset_SourceItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Identifier of the source to include or exclude.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source ('import' or 'webset').\"),\n}).describe(\"Source to include or exclude in search.\");\nconst ExaCreateWebset_BoundsSchema: z.ZodTypeAny = z.object({\n max: z.number().int().describe(\"Maximum estimated count.\"),\n min: z.number().int().describe(\"Minimum estimated count.\"),\n});\nconst ExaCreateWebset_ExpectedSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Estimated total relevant results.\"),\n bounds: ExaCreateWebset_BoundsSchema.nullable(),\n confidence: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Confidence level of the estimate.\"),\n});\nconst ExaCreateWebset_RecallSchema: z.ZodTypeAny = z.object({\n expected: ExaCreateWebset_ExpectedSchema.nullable(),\n reasoning: z.string().describe(\"Reasoning behind the recall estimate.\").optional(),\n});\nconst ExaCreateWebset_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(\"Percent completion of the search.\"),\n});\nconst ExaCreateWebset_WebsetSearchItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the search.\"),\n count: z.number().int().describe(\"Number of items requested to find.\"),\n query: z.string().describe(\"Search query used.\"),\n scope: z.array(ExaCreateWebset_SourceItemSchema).describe(\"Sources specifically scoped for this search.\"),\n entity: ExaCreateWebset_EntitySchema.nullable(),\n object: z.string().describe(\"Object type, always 'webset_search'.\"),\n recall: ExaCreateWebset_RecallSchema.nullable(),\n status: z.string().describe(\"Status of the search.\"),\n exclude: z.array(ExaCreateWebset_SourceItemSchema).describe(\"Sources excluded from this search.\"),\n behavior: z.string().describe(\"Behavior used for this search, e.g. 'override'.\"),\n criteria: z.array(ExaCreateWebset_CriterionSchema).describe(\"Evaluation criteria used.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the search.\"),\n progress: ExaCreateWebset_ProgressSchema.nullable(),\n createdAt: z.string().describe(\"Creation timestamp of the search.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the search.\"),\n canceledAt: z.string().describe(\"Timestamp when search was canceled.\").optional(),\n canceledReason: z.string().describe(\"Reason search was canceled.\").optional(),\n}).describe(\"Represents a search performed within the Webset.\");\nconst ExaCreateWebset_EnrichmentOptionSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the enrichment option.\"),\n}).describe(\"Option for enrichment output.\");\nconst ExaCreateWebset_EnrichmentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the enrichment.\"),\n title: z.string().describe(\"Title of the enrichment.\"),\n format: z.string().describe(\"Format of enrichment output.\"),\n object: z.string().describe(\"Object type.\"),\n status: z.string().describe(\"Status of the enrichment.\"),\n options: z.array(ExaCreateWebset_EnrichmentOptionSchema).describe(\"Available options for the enrichment.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the enrichment.\"),\n websetId: z.string().describe(\"Identifier of the parent webset.\"),\n createdAt: z.string().describe(\"Creation timestamp of the enrichment.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the enrichment.\"),\n description: z.string().describe(\"Description of the enrichment.\").optional(),\n instructions: z.string().describe(\"Instructions for the enrichment.\").optional(),\n}).describe(\"Represents an enrichment task within the Webset.\");\nexport const ExaCreateWebsetOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webset.\"),\n title: z.string().describe(\"Title of the webset, if set.\").optional(),\n object: z.string().describe(\"Object type.\"),\n status: z.enum([\"idle\", \"pending\", \"running\", \"paused\"]).describe(\"Status of the webset.\"),\n imports: z.array(ExaCreateWebset_ImportItemSchema).describe(\"Imports performed on the webset.\"),\n streams: z.array(z.unknown()).describe(\"Streams associated with the webset.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the webset.\"),\n monitors: z.array(ExaCreateWebset_MonitorItemSchema).describe(\"Monitors configured on the webset.\"),\n searches: z.array(ExaCreateWebset_WebsetSearchItemSchema).describe(\"Searches performed on the webset.\"),\n createdAt: z.string().describe(\"Creation timestamp of the webset.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the webset.\"),\n externalId: z.string().describe(\"External identifier, if set.\").optional(),\n enrichments: z.array(ExaCreateWebset_EnrichmentItemSchema).describe(\"Enrichments in the webset.\"),\n}).describe(\"Response schema for the created Webset.\");\n\nexport const exaCreateWebset = action(\"EXA_CREATE_WEBSET\", {\n slug: \"exa-create-webset\",\n name: \"Create Webset\",\n description: \"Tool to create a new Webset with search, import, and enrichment setup. Use when you need to configure and seed a Webset in one call.\",\n input: ExaCreateWebsetInput,\n output: ExaCreateWebsetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,gDAAgD;EACxE,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,EAAE,SAAS,sDAAsD;CACtG,CAAC,EAAE,SAAS,uCAAuC,CAAC,EAAE,SAAS,+CAA+C,EAAE,SAAS;CACvH,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,kDAAkD,EAAE,SAAS;EAC1G,OAAOA,IAAAA,EAAE,OAAO,EAAE,SAAS,oEAAoE;EAC/F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACxB,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,iDAAiD;GACzE,QAAQA,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AiC,EAAE,SAAS,oCAAoC;CAClG,UAAUA,IAAAA,EAAE,MAAM,sCAAsC,EAAE,SAAS,mCAAmC;CACtG,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,mCAAmC;CAClE,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,sCAAsC;CACrE,YAAYA,IAAAA,EAAE,OAAO,EAAE,SAAS,8BAA8B,EAAE,SAAS;CACzE,aAAaA,IAAAA,EAAE,MAAM,oCAAoC,EAAE,SAAS,4BAA4B;AAClG,CAAC,EAAE,SAAS,yCAAyC;AAErD,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/create-webset.d.ts
4
+ declare const ExaCreateWebsetInput: z.ZodTypeAny;
5
+ declare const ExaCreateWebsetOutput: z.ZodTypeAny;
6
+ declare const exaCreateWebset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaCreateWebset };
9
+ //# sourceMappingURL=create-webset.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-webset.d.cts","names":[],"sources":["../../src/actions/create-webset.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAkC0D;AAAA,cA2HlF,qBAAA,EAAuB,CAAA,CAAE,UAcgB;AAAA,cAEzC,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-webset.d.ts
4
+ declare const ExaCreateWebsetInput: z.ZodTypeAny;
5
+ declare const ExaCreateWebsetOutput: z.ZodTypeAny;
6
+ declare const exaCreateWebset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaCreateWebset };
9
+ //# sourceMappingURL=create-webset.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-webset.d.mts","names":[],"sources":["../../src/actions/create-webset.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAkC0D;AAAA,cA2HlF,qBAAA,EAAuB,CAAA,CAAE,UAcgB;AAAA,cAEzC,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,200 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-webset.ts
4
+ const ExaCreateWebsetInput = z.object({
5
+ "import": z.array(z.object({
6
+ id: z.string().describe("Identifier of the import or webset to include."),
7
+ source: z.enum(["import", "webset"]).describe("The type of source to import ('import' or 'webset').")
8
+ }).describe("Import existing data into the Webset.")).describe("Import data from existing Websets or Imports.").optional(),
9
+ search: z.object({
10
+ count: z.number().int().default(10).describe("Number of items the Webset will attempt to find.").optional(),
11
+ query: z.string().describe("Natural language search query describing what you are looking for."),
12
+ scope: z.array(z.object({
13
+ id: z.string().describe("Identifier of the source to include or exclude."),
14
+ source: z.enum(["import", "webset"]).describe("The type of source ('import' or 'webset').")
15
+ }).describe("Source to include or exclude in search.")).describe("Limit the search to specific sources.").optional(),
16
+ entity: z.object({ type: z.enum([
17
+ "company",
18
+ "person",
19
+ "article",
20
+ "research_paper",
21
+ "custom"
22
+ ]).default("company").describe("Allowed entity types for the search or import.").optional() }).describe("Entity type for searches and imports.").optional(),
23
+ recall: z.boolean().describe("Whether to estimate total relevant results available for this search.").optional(),
24
+ exclude: z.array(z.object({
25
+ id: z.string().describe("Identifier of the source to include or exclude."),
26
+ source: z.enum(["import", "webset"]).describe("The type of source ('import' or 'webset').")
27
+ }).describe("Source to include or exclude in search.")).describe("Sources to exclude from search results.").optional(),
28
+ criteria: z.array(z.object({
29
+ description: z.string().describe("Description of the evaluation criterion."),
30
+ successRate: z.number().int().describe("Success rate percentage for this criterion.").optional()
31
+ }).describe("Criterion to evaluate search results against.")).describe("Custom criteria to evaluate items against.").optional()
32
+ }).describe("Initial search configuration for the Webset."),
33
+ metadata: z.record(z.string(), z.unknown()).describe("Arbitrary key-value pairs to associate with this Webset.").optional(),
34
+ externalId: z.string().describe("External identifier to reference the Webset in your system.").optional(),
35
+ enrichments: z.array(z.object({
36
+ title: z.string().describe("Title of the enrichment task."),
37
+ format: z.string().describe("Format of the enrichment output, e.g., 'text'.").optional(),
38
+ options: z.array(z.record(z.string(), z.unknown())).describe("Additional options for enrichment.").optional(),
39
+ description: z.string().describe("Description of what to enrich for.").optional(),
40
+ instructions: z.string().describe("Instructions for the enrichment process.").optional()
41
+ }).describe("Parameters to create an enrichment.")).describe("Enrichments to apply to Webset items.").optional()
42
+ }).describe("Parameters to create a new Webset with initial search, imports, and enrichments.");
43
+ const ExaCreateWebset_EntitySchema = z.object({ type: z.enum([
44
+ "company",
45
+ "person",
46
+ "article",
47
+ "research_paper",
48
+ "custom"
49
+ ]).default("company").describe("Allowed entity types for the search or import.").optional() }).describe("Entity type for searches and imports.");
50
+ const ExaCreateWebset_ImportItemSchema = z.object({
51
+ id: z.string().describe("Unique identifier for the import."),
52
+ count: z.number().int().describe("Number of items in the import.").optional(),
53
+ title: z.string().describe("Title of the import.").optional(),
54
+ entity: ExaCreateWebset_EntitySchema.nullable(),
55
+ format: z.string().describe("Format of the import."),
56
+ object: z.string().describe("Object type, always 'import'."),
57
+ status: z.string().describe("Status of the import."),
58
+ failedAt: z.string().describe("Failure timestamp.").optional(),
59
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata for the import."),
60
+ createdAt: z.string().describe("Creation timestamp of the import."),
61
+ updatedAt: z.string().describe("Last update timestamp of the import."),
62
+ failedReason: z.string().describe("Reason for import failure.").optional(),
63
+ failedMessage: z.string().describe("Failure message.").optional()
64
+ }).describe("Represents an import performed on the Webset.");
65
+ const ExaCreateWebset_CadenceSchema = z.object({
66
+ cron: z.string().describe("Cron expression for scheduling."),
67
+ timezone: z.string().describe("Timezone for the schedule, e.g. 'Etc/UTC'.")
68
+ }).describe("Schedule cadence for a monitor.");
69
+ const ExaCreateWebset_MonitorRunSchema = z.object({
70
+ id: z.string().describe("Run identifier."),
71
+ type: z.string().describe("Type of run."),
72
+ object: z.string().describe("Object type."),
73
+ status: z.string().describe("Status of the run."),
74
+ failedAt: z.string().describe("Failure timestamp.").optional(),
75
+ createdAt: z.string().describe("Creation timestamp."),
76
+ monitorId: z.string().describe("Identifier of the monitor."),
77
+ updatedAt: z.string().describe("Last update timestamp."),
78
+ canceledAt: z.string().describe("Cancelation timestamp.").optional(),
79
+ completedAt: z.string().describe("Completion timestamp.").optional(),
80
+ failedReason: z.string().describe("Reason for failure.").optional()
81
+ }).describe("Represents the last run of a monitor.");
82
+ const ExaCreateWebset_CriterionSchema = z.object({
83
+ description: z.string().describe("Description of the evaluation criterion."),
84
+ successRate: z.number().int().describe("Success rate percentage for this criterion.").optional()
85
+ }).describe("Criterion to evaluate search results against.");
86
+ const ExaCreateWebset_BehaviorConfigSchema = z.object({
87
+ count: z.number().int().describe("Number of items to find each run."),
88
+ query: z.string().describe("Search query for monitor runs."),
89
+ entity: ExaCreateWebset_EntitySchema.nullable(),
90
+ behavior: z.string().describe("Behavior mode for monitor, e.g. 'append'."),
91
+ criteria: z.array(ExaCreateWebset_CriterionSchema).describe("Criteria to evaluate monitor results.")
92
+ }).describe("Configuration for monitor behavior.");
93
+ const ExaCreateWebset_MonitorBehaviorSchema = z.object({
94
+ type: z.string().describe("Type of monitor behavior."),
95
+ config: ExaCreateWebset_BehaviorConfigSchema.nullable()
96
+ }).describe("Defines monitor behavior and config.");
97
+ const ExaCreateWebset_MonitorItemSchema = z.object({
98
+ id: z.string().describe("Unique identifier for the monitor."),
99
+ object: z.string().describe("Object type."),
100
+ status: z.string().describe("Status of the monitor."),
101
+ cadence: ExaCreateWebset_CadenceSchema.nullable(),
102
+ lastRun: ExaCreateWebset_MonitorRunSchema.nullable(),
103
+ behavior: ExaCreateWebset_MonitorBehaviorSchema.nullable(),
104
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata for the monitor."),
105
+ websetId: z.string().describe("Identifier of the parent webset."),
106
+ createdAt: z.string().describe("Creation timestamp of the monitor."),
107
+ nextRunAt: z.string().describe("Next scheduled run timestamp.").optional(),
108
+ updatedAt: z.string().describe("Last update timestamp of the monitor.")
109
+ }).describe("Represents a monitor configured on the Webset.");
110
+ const ExaCreateWebset_SourceItemSchema = z.object({
111
+ id: z.string().describe("Identifier of the source to include or exclude."),
112
+ source: z.enum(["import", "webset"]).describe("The type of source ('import' or 'webset').")
113
+ }).describe("Source to include or exclude in search.");
114
+ const ExaCreateWebset_BoundsSchema = z.object({
115
+ max: z.number().int().describe("Maximum estimated count."),
116
+ min: z.number().int().describe("Minimum estimated count.")
117
+ });
118
+ const ExaCreateWebset_ExpectedSchema = z.object({
119
+ total: z.number().int().describe("Estimated total relevant results."),
120
+ bounds: ExaCreateWebset_BoundsSchema.nullable(),
121
+ confidence: z.enum([
122
+ "low",
123
+ "medium",
124
+ "high"
125
+ ]).describe("Confidence level of the estimate.")
126
+ });
127
+ const ExaCreateWebset_RecallSchema = z.object({
128
+ expected: ExaCreateWebset_ExpectedSchema.nullable(),
129
+ reasoning: z.string().describe("Reasoning behind the recall estimate.").optional()
130
+ });
131
+ const ExaCreateWebset_ProgressSchema = z.object({
132
+ found: z.number().int().describe("Number of items found so far."),
133
+ analyzed: z.number().int().describe("Number of items analyzed so far."),
134
+ timeLeft: z.number().int().describe("Estimated time left in seconds."),
135
+ completion: z.number().int().describe("Percent completion of the search.")
136
+ });
137
+ const ExaCreateWebset_WebsetSearchItemSchema = z.object({
138
+ id: z.string().describe("Unique identifier for the search."),
139
+ count: z.number().int().describe("Number of items requested to find."),
140
+ query: z.string().describe("Search query used."),
141
+ scope: z.array(ExaCreateWebset_SourceItemSchema).describe("Sources specifically scoped for this search."),
142
+ entity: ExaCreateWebset_EntitySchema.nullable(),
143
+ object: z.string().describe("Object type, always 'webset_search'."),
144
+ recall: ExaCreateWebset_RecallSchema.nullable(),
145
+ status: z.string().describe("Status of the search."),
146
+ exclude: z.array(ExaCreateWebset_SourceItemSchema).describe("Sources excluded from this search."),
147
+ behavior: z.string().describe("Behavior used for this search, e.g. 'override'."),
148
+ criteria: z.array(ExaCreateWebset_CriterionSchema).describe("Evaluation criteria used."),
149
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata for the search."),
150
+ progress: ExaCreateWebset_ProgressSchema.nullable(),
151
+ createdAt: z.string().describe("Creation timestamp of the search."),
152
+ updatedAt: z.string().describe("Last update timestamp of the search."),
153
+ canceledAt: z.string().describe("Timestamp when search was canceled.").optional(),
154
+ canceledReason: z.string().describe("Reason search was canceled.").optional()
155
+ }).describe("Represents a search performed within the Webset.");
156
+ const ExaCreateWebset_EnrichmentOptionSchema = z.object({ label: z.string().describe("Label of the enrichment option.") }).describe("Option for enrichment output.");
157
+ const ExaCreateWebset_EnrichmentItemSchema = z.object({
158
+ id: z.string().describe("Unique identifier for the enrichment."),
159
+ title: z.string().describe("Title of the enrichment."),
160
+ format: z.string().describe("Format of enrichment output."),
161
+ object: z.string().describe("Object type."),
162
+ status: z.string().describe("Status of the enrichment."),
163
+ options: z.array(ExaCreateWebset_EnrichmentOptionSchema).describe("Available options for the enrichment."),
164
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata for the enrichment."),
165
+ websetId: z.string().describe("Identifier of the parent webset."),
166
+ createdAt: z.string().describe("Creation timestamp of the enrichment."),
167
+ updatedAt: z.string().describe("Last update timestamp of the enrichment."),
168
+ description: z.string().describe("Description of the enrichment.").optional(),
169
+ instructions: z.string().describe("Instructions for the enrichment.").optional()
170
+ }).describe("Represents an enrichment task within the Webset.");
171
+ const exaCreateWebset = action("EXA_CREATE_WEBSET", {
172
+ slug: "exa-create-webset",
173
+ name: "Create Webset",
174
+ description: "Tool to create a new Webset with search, import, and enrichment setup. Use when you need to configure and seed a Webset in one call.",
175
+ input: ExaCreateWebsetInput,
176
+ output: z.object({
177
+ id: z.string().describe("Unique identifier for the webset."),
178
+ title: z.string().describe("Title of the webset, if set.").optional(),
179
+ object: z.string().describe("Object type."),
180
+ status: z.enum([
181
+ "idle",
182
+ "pending",
183
+ "running",
184
+ "paused"
185
+ ]).describe("Status of the webset."),
186
+ imports: z.array(ExaCreateWebset_ImportItemSchema).describe("Imports performed on the webset."),
187
+ streams: z.array(z.unknown()).describe("Streams associated with the webset."),
188
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata for the webset."),
189
+ monitors: z.array(ExaCreateWebset_MonitorItemSchema).describe("Monitors configured on the webset."),
190
+ searches: z.array(ExaCreateWebset_WebsetSearchItemSchema).describe("Searches performed on the webset."),
191
+ createdAt: z.string().describe("Creation timestamp of the webset."),
192
+ updatedAt: z.string().describe("Last update timestamp of the webset."),
193
+ externalId: z.string().describe("External identifier, if set.").optional(),
194
+ enrichments: z.array(ExaCreateWebset_EnrichmentItemSchema).describe("Enrichments in the webset.")
195
+ }).describe("Response schema for the created Webset.")
196
+ });
197
+ //#endregion
198
+ export { exaCreateWebset };
199
+
200
+ //# sourceMappingURL=create-webset.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-webset.mjs","names":[],"sources":["../../src/actions/create-webset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaCreateWebsetInput: z.ZodTypeAny = z.object({\n \"import\": z.array(z.object({\n id: z.string().describe(\"Identifier of the import or webset to include.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source to import ('import' or 'webset').\"),\n}).describe(\"Import existing data into the Webset.\")).describe(\"Import data from existing Websets or Imports.\").optional(),\n search: z.object({\n count: z.number().int().default(10).describe(\"Number of items the Webset will attempt to find.\").optional(),\n query: z.string().describe(\"Natural language search query describing what you are looking for.\"),\n scope: z.array(z.object({\n id: z.string().describe(\"Identifier of the source to include or exclude.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source ('import' or 'webset').\"),\n}).describe(\"Source to include or exclude in search.\")).describe(\"Limit the search to specific sources.\").optional(),\n entity: z.object({\n type: z.enum([\"company\", \"person\", \"article\", \"research_paper\", \"custom\"]).default(\"company\").describe(\"Allowed entity types for the search or import.\").optional(),\n}).describe(\"Entity type for searches and imports.\").optional(),\n recall: z.boolean().describe(\"Whether to estimate total relevant results available for this search.\").optional(),\n exclude: z.array(z.object({\n id: z.string().describe(\"Identifier of the source to include or exclude.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source ('import' or 'webset').\"),\n}).describe(\"Source to include or exclude in search.\")).describe(\"Sources to exclude from search results.\").optional(),\n criteria: z.array(z.object({\n description: z.string().describe(\"Description of the evaluation criterion.\"),\n successRate: z.number().int().describe(\"Success rate percentage for this criterion.\").optional(),\n}).describe(\"Criterion to evaluate search results against.\")).describe(\"Custom criteria to evaluate items against.\").optional(),\n}).describe(\"Initial search configuration for the Webset.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary key-value pairs to associate with this Webset.\").optional(),\n externalId: z.string().describe(\"External identifier to reference the Webset in your system.\").optional(),\n enrichments: z.array(z.object({\n title: z.string().describe(\"Title of the enrichment task.\"),\n format: z.string().describe(\"Format of the enrichment output, e.g., 'text'.\").optional(),\n options: z.array(z.record(z.string(), z.unknown())).describe(\"Additional options for enrichment.\").optional(),\n description: z.string().describe(\"Description of what to enrich for.\").optional(),\n instructions: z.string().describe(\"Instructions for the enrichment process.\").optional(),\n}).describe(\"Parameters to create an enrichment.\")).describe(\"Enrichments to apply to Webset items.\").optional(),\n}).describe(\"Parameters to create a new Webset with initial search, imports, and enrichments.\");\nconst ExaCreateWebset_EntitySchema: z.ZodTypeAny = z.object({\n type: z.enum([\"company\", \"person\", \"article\", \"research_paper\", \"custom\"]).default(\"company\").describe(\"Allowed entity types for the search or import.\").optional(),\n}).describe(\"Entity type for searches and imports.\");\nconst ExaCreateWebset_ImportItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the import.\"),\n count: z.number().int().describe(\"Number of items in the import.\").optional(),\n title: z.string().describe(\"Title of the import.\").optional(),\n entity: ExaCreateWebset_EntitySchema.nullable(),\n format: z.string().describe(\"Format of the import.\"),\n object: z.string().describe(\"Object type, always 'import'.\"),\n status: z.string().describe(\"Status of the import.\"),\n failedAt: z.string().describe(\"Failure timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the import.\"),\n createdAt: z.string().describe(\"Creation timestamp of the import.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the import.\"),\n failedReason: z.string().describe(\"Reason for import failure.\").optional(),\n failedMessage: z.string().describe(\"Failure message.\").optional(),\n}).describe(\"Represents an import performed on the Webset.\");\nconst ExaCreateWebset_CadenceSchema: z.ZodTypeAny = z.object({\n cron: z.string().describe(\"Cron expression for scheduling.\"),\n timezone: z.string().describe(\"Timezone for the schedule, e.g. 'Etc/UTC'.\"),\n}).describe(\"Schedule cadence for a monitor.\");\nconst ExaCreateWebset_MonitorRunSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Run identifier.\"),\n type: z.string().describe(\"Type of run.\"),\n object: z.string().describe(\"Object type.\"),\n status: z.string().describe(\"Status of the run.\"),\n failedAt: z.string().describe(\"Failure timestamp.\").optional(),\n createdAt: z.string().describe(\"Creation timestamp.\"),\n monitorId: z.string().describe(\"Identifier of the monitor.\"),\n updatedAt: z.string().describe(\"Last update timestamp.\"),\n canceledAt: z.string().describe(\"Cancelation timestamp.\").optional(),\n completedAt: z.string().describe(\"Completion timestamp.\").optional(),\n failedReason: z.string().describe(\"Reason for failure.\").optional(),\n}).describe(\"Represents the last run of a monitor.\");\nconst ExaCreateWebset_CriterionSchema: z.ZodTypeAny = z.object({\n description: z.string().describe(\"Description of the evaluation criterion.\"),\n successRate: z.number().int().describe(\"Success rate percentage for this criterion.\").optional(),\n}).describe(\"Criterion to evaluate search results against.\");\nconst ExaCreateWebset_BehaviorConfigSchema: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of items to find each run.\"),\n query: z.string().describe(\"Search query for monitor runs.\"),\n entity: ExaCreateWebset_EntitySchema.nullable(),\n behavior: z.string().describe(\"Behavior mode for monitor, e.g. 'append'.\"),\n criteria: z.array(ExaCreateWebset_CriterionSchema).describe(\"Criteria to evaluate monitor results.\"),\n}).describe(\"Configuration for monitor behavior.\");\nconst ExaCreateWebset_MonitorBehaviorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of monitor behavior.\"),\n config: ExaCreateWebset_BehaviorConfigSchema.nullable(),\n}).describe(\"Defines monitor behavior and config.\");\nconst ExaCreateWebset_MonitorItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the monitor.\"),\n object: z.string().describe(\"Object type.\"),\n status: z.string().describe(\"Status of the monitor.\"),\n cadence: ExaCreateWebset_CadenceSchema.nullable(),\n lastRun: ExaCreateWebset_MonitorRunSchema.nullable(),\n behavior: ExaCreateWebset_MonitorBehaviorSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the monitor.\"),\n websetId: z.string().describe(\"Identifier of the parent webset.\"),\n createdAt: z.string().describe(\"Creation timestamp of the monitor.\"),\n nextRunAt: z.string().describe(\"Next scheduled run timestamp.\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp of the monitor.\"),\n}).describe(\"Represents a monitor configured on the Webset.\");\nconst ExaCreateWebset_SourceItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Identifier of the source to include or exclude.\"),\n source: z.enum([\"import\", \"webset\"]).describe(\"The type of source ('import' or 'webset').\"),\n}).describe(\"Source to include or exclude in search.\");\nconst ExaCreateWebset_BoundsSchema: z.ZodTypeAny = z.object({\n max: z.number().int().describe(\"Maximum estimated count.\"),\n min: z.number().int().describe(\"Minimum estimated count.\"),\n});\nconst ExaCreateWebset_ExpectedSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Estimated total relevant results.\"),\n bounds: ExaCreateWebset_BoundsSchema.nullable(),\n confidence: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Confidence level of the estimate.\"),\n});\nconst ExaCreateWebset_RecallSchema: z.ZodTypeAny = z.object({\n expected: ExaCreateWebset_ExpectedSchema.nullable(),\n reasoning: z.string().describe(\"Reasoning behind the recall estimate.\").optional(),\n});\nconst ExaCreateWebset_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(\"Percent completion of the search.\"),\n});\nconst ExaCreateWebset_WebsetSearchItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the search.\"),\n count: z.number().int().describe(\"Number of items requested to find.\"),\n query: z.string().describe(\"Search query used.\"),\n scope: z.array(ExaCreateWebset_SourceItemSchema).describe(\"Sources specifically scoped for this search.\"),\n entity: ExaCreateWebset_EntitySchema.nullable(),\n object: z.string().describe(\"Object type, always 'webset_search'.\"),\n recall: ExaCreateWebset_RecallSchema.nullable(),\n status: z.string().describe(\"Status of the search.\"),\n exclude: z.array(ExaCreateWebset_SourceItemSchema).describe(\"Sources excluded from this search.\"),\n behavior: z.string().describe(\"Behavior used for this search, e.g. 'override'.\"),\n criteria: z.array(ExaCreateWebset_CriterionSchema).describe(\"Evaluation criteria used.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the search.\"),\n progress: ExaCreateWebset_ProgressSchema.nullable(),\n createdAt: z.string().describe(\"Creation timestamp of the search.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the search.\"),\n canceledAt: z.string().describe(\"Timestamp when search was canceled.\").optional(),\n canceledReason: z.string().describe(\"Reason search was canceled.\").optional(),\n}).describe(\"Represents a search performed within the Webset.\");\nconst ExaCreateWebset_EnrichmentOptionSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the enrichment option.\"),\n}).describe(\"Option for enrichment output.\");\nconst ExaCreateWebset_EnrichmentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the enrichment.\"),\n title: z.string().describe(\"Title of the enrichment.\"),\n format: z.string().describe(\"Format of enrichment output.\"),\n object: z.string().describe(\"Object type.\"),\n status: z.string().describe(\"Status of the enrichment.\"),\n options: z.array(ExaCreateWebset_EnrichmentOptionSchema).describe(\"Available options for the enrichment.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the enrichment.\"),\n websetId: z.string().describe(\"Identifier of the parent webset.\"),\n createdAt: z.string().describe(\"Creation timestamp of the enrichment.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the enrichment.\"),\n description: z.string().describe(\"Description of the enrichment.\").optional(),\n instructions: z.string().describe(\"Instructions for the enrichment.\").optional(),\n}).describe(\"Represents an enrichment task within the Webset.\");\nexport const ExaCreateWebsetOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webset.\"),\n title: z.string().describe(\"Title of the webset, if set.\").optional(),\n object: z.string().describe(\"Object type.\"),\n status: z.enum([\"idle\", \"pending\", \"running\", \"paused\"]).describe(\"Status of the webset.\"),\n imports: z.array(ExaCreateWebset_ImportItemSchema).describe(\"Imports performed on the webset.\"),\n streams: z.array(z.unknown()).describe(\"Streams associated with the webset.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata for the webset.\"),\n monitors: z.array(ExaCreateWebset_MonitorItemSchema).describe(\"Monitors configured on the webset.\"),\n searches: z.array(ExaCreateWebset_WebsetSearchItemSchema).describe(\"Searches performed on the webset.\"),\n createdAt: z.string().describe(\"Creation timestamp of the webset.\"),\n updatedAt: z.string().describe(\"Last update timestamp of the webset.\"),\n externalId: z.string().describe(\"External identifier, if set.\").optional(),\n enrichments: z.array(ExaCreateWebset_EnrichmentItemSchema).describe(\"Enrichments in the webset.\"),\n}).describe(\"Response schema for the created Webset.\");\n\nexport const exaCreateWebset = action(\"EXA_CREATE_WEBSET\", {\n slug: \"exa-create-webset\",\n name: \"Create Webset\",\n description: \"Tool to create a new Webset with search, import, and enrichment setup. Use when you need to configure and seed a Webset in one call.\",\n input: ExaCreateWebsetInput,\n output: ExaCreateWebsetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,IAAI,EAAE,OAAO,EAAE,SAAS,gDAAgD;EACxE,QAAQ,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,EAAE,SAAS,sDAAsD;CACtG,CAAC,EAAE,SAAS,uCAAuC,CAAC,EAAE,SAAS,+CAA+C,EAAE,SAAS;CACvH,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,kDAAkD,EAAE,SAAS;EAC1G,OAAO,EAAE,OAAO,EAAE,SAAS,oEAAoE;EAC/F,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,IAAI,EAAE,OAAO,EAAE,SAAS,iDAAiD;GACzE,QAAQ,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,EAAE,SAAS,4CAA4C;EAC5F,CAAC,EAAE,SAAS,yCAAyC,CAAC,EAAE,SAAS,uCAAuC,EAAE,SAAS;EACjH,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,KAAK;GAAC;GAAW;GAAU;GAAW;GAAkB;EAAQ,CAAC,EAAE,QAAQ,SAAS,EAAE,SAAS,gDAAgD,EAAE,SAAS,EACpK,CAAC,EAAE,SAAS,uCAAuC,EAAE,SAAS;EAC5D,QAAQ,EAAE,QAAQ,EAAE,SAAS,uEAAuE,EAAE,SAAS;EAC/G,SAAS,EAAE,MAA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,EAAE,SAAS,4BAA4B;CAClG,CAAC,EAAE,SAAS,yCAOF;AACV,CAAC"}
@@ -0,0 +1,31 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-import.ts
4
+ const ExaDeleteImportInput = zod.z.object({ id: zod.z.string().describe("The ID of the import to delete.") }).describe("Request model for deleting a specific import by ID.");
5
+ const ExaDeleteImport_EntitySchema = zod.z.object({ type: zod.z.string().describe("The type of entity the import contains (e.g., 'company', 'person').") }).describe("Represents the entity type contained in the import object.");
6
+ const ExaDeleteImportOutput = zod.z.object({
7
+ id: zod.z.string().describe("The unique identifier for the Import.").optional(),
8
+ count: zod.z.number().int().describe("The number of entities in the import.").optional(),
9
+ title: zod.z.string().describe("The title of the import.").optional(),
10
+ entity: ExaDeleteImport_EntitySchema.nullable().optional(),
11
+ format: zod.z.string().describe("The format of the import (csv or webset).").optional(),
12
+ object: zod.z.string().describe("The type of object, always 'import'.").optional(),
13
+ status: zod.z.string().describe("The status of the Import (pending, processing, completed, or failed).").optional(),
14
+ failedAt: zod.z.string().describe("Timestamp when the import failed, if applicable.").optional(),
15
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs associated with this import object.").optional(),
16
+ createdAt: zod.z.string().describe("Timestamp when the import was created.").optional(),
17
+ updatedAt: zod.z.string().describe("Timestamp when the import was last updated.").optional(),
18
+ failedReason: zod.z.string().describe("The reason the import failed, if any (invalid_format, invalid_file_content, or missing_identifier).").optional(),
19
+ failedMessage: zod.z.string().describe("A human-readable message describing the import failure, if any.").optional()
20
+ }).describe("Response model returned after successfully deleting an import.");
21
+ const exaDeleteImport = require_action.action("EXA_DELETE_IMPORT", {
22
+ slug: "exa-delete-import",
23
+ name: "Delete import",
24
+ description: "Tool to delete an existing import. Use when you need to permanently remove an import by its ID.",
25
+ input: ExaDeleteImportInput,
26
+ output: ExaDeleteImportOutput
27
+ });
28
+ //#endregion
29
+ exports.exaDeleteImport = exaDeleteImport;
30
+
31
+ //# sourceMappingURL=delete-import.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-import.cjs","names":["z","action"],"sources":["../../src/actions/delete-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaDeleteImportInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the import to delete.\"),\n}).describe(\"Request model for deleting a specific import by ID.\");\nconst ExaDeleteImport_EntitySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of entity the import contains (e.g., 'company', 'person').\"),\n}).describe(\"Represents the entity type contained in the import object.\");\nexport const ExaDeleteImportOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the Import.\").optional(),\n count: z.number().int().describe(\"The number of entities in the import.\").optional(),\n title: z.string().describe(\"The title of the import.\").optional(),\n entity: ExaDeleteImport_EntitySchema.nullable().optional(),\n format: z.string().describe(\"The format of the import (csv or webset).\").optional(),\n object: z.string().describe(\"The type of object, always 'import'.\").optional(),\n status: z.string().describe(\"The status of the Import (pending, processing, completed, or failed).\").optional(),\n failedAt: z.string().describe(\"Timestamp when the import failed, if applicable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs associated with this import object.\").optional(),\n createdAt: z.string().describe(\"Timestamp when the import was created.\").optional(),\n updatedAt: z.string().describe(\"Timestamp when the import was last updated.\").optional(),\n failedReason: z.string().describe(\"The reason the import failed, if any (invalid_format, invalid_file_content, or missing_identifier).\").optional(),\n failedMessage: z.string().describe(\"A human-readable message describing the import failure, if any.\").optional(),\n}).describe(\"Response model returned after successfully deleting an import.\");\n\nexport const exaDeleteImport = action(\"EXA_DELETE_IMPORT\", {\n slug: \"exa-delete-import\",\n name: \"Delete import\",\n description: \"Tool to delete an existing import. Use when you need to permanently remove an import by its ID.\",\n input: ExaDeleteImportInput,\n output: ExaDeleteImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,E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AM;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-import.d.ts
4
+ declare const ExaDeleteImportInput: z.ZodTypeAny;
5
+ declare const ExaDeleteImportOutput: z.ZodTypeAny;
6
+ declare const exaDeleteImport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaDeleteImport };
9
+ //# sourceMappingURL=delete-import.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-import.d.cts","names":[],"sources":["../../src/actions/delete-import.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAE6B;AAAA,cAIrD,qBAAA,EAAuB,CAAA,CAAE,UAcuC;AAAA,cAEhE,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-import.d.ts
4
+ declare const ExaDeleteImportInput: z.ZodTypeAny;
5
+ declare const ExaDeleteImportOutput: z.ZodTypeAny;
6
+ declare const exaDeleteImport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaDeleteImport };
9
+ //# sourceMappingURL=delete-import.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-import.d.mts","names":[],"sources":["../../src/actions/delete-import.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAE6B;AAAA,cAIrD,qBAAA,EAAuB,CAAA,CAAE,UAcuC;AAAA,cAEhE,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/delete-import.ts
4
+ const ExaDeleteImportInput = z.object({ id: z.string().describe("The ID of the import to delete.") }).describe("Request model for deleting a specific import by ID.");
5
+ const ExaDeleteImport_EntitySchema = z.object({ type: z.string().describe("The type of entity the import contains (e.g., 'company', 'person').") }).describe("Represents the entity type contained in the import object.");
6
+ const exaDeleteImport = action("EXA_DELETE_IMPORT", {
7
+ slug: "exa-delete-import",
8
+ name: "Delete import",
9
+ description: "Tool to delete an existing import. Use when you need to permanently remove an import by its ID.",
10
+ input: ExaDeleteImportInput,
11
+ output: z.object({
12
+ id: z.string().describe("The unique identifier for the Import.").optional(),
13
+ count: z.number().int().describe("The number of entities in the import.").optional(),
14
+ title: z.string().describe("The title of the import.").optional(),
15
+ entity: ExaDeleteImport_EntitySchema.nullable().optional(),
16
+ format: z.string().describe("The format of the import (csv or webset).").optional(),
17
+ object: z.string().describe("The type of object, always 'import'.").optional(),
18
+ status: z.string().describe("The status of the Import (pending, processing, completed, or failed).").optional(),
19
+ failedAt: z.string().describe("Timestamp when the import failed, if applicable.").optional(),
20
+ metadata: z.record(z.string(), z.unknown()).describe("Key-value pairs associated with this import object.").optional(),
21
+ createdAt: z.string().describe("Timestamp when the import was created.").optional(),
22
+ updatedAt: z.string().describe("Timestamp when the import was last updated.").optional(),
23
+ failedReason: z.string().describe("The reason the import failed, if any (invalid_format, invalid_file_content, or missing_identifier).").optional(),
24
+ failedMessage: z.string().describe("A human-readable message describing the import failure, if any.").optional()
25
+ }).describe("Response model returned after successfully deleting an import.")
26
+ });
27
+ //#endregion
28
+ export { exaDeleteImport };
29
+
30
+ //# sourceMappingURL=delete-import.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-import.mjs","names":[],"sources":["../../src/actions/delete-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaDeleteImportInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the import to delete.\"),\n}).describe(\"Request model for deleting a specific import by ID.\");\nconst ExaDeleteImport_EntitySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of entity the import contains (e.g., 'company', 'person').\"),\n}).describe(\"Represents the entity type contained in the import object.\");\nexport const ExaDeleteImportOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the Import.\").optional(),\n count: z.number().int().describe(\"The number of entities in the import.\").optional(),\n title: z.string().describe(\"The title of the import.\").optional(),\n entity: ExaDeleteImport_EntitySchema.nullable().optional(),\n format: z.string().describe(\"The format of the import (csv or webset).\").optional(),\n object: z.string().describe(\"The type of object, always 'import'.\").optional(),\n status: z.string().describe(\"The status of the Import (pending, processing, completed, or failed).\").optional(),\n failedAt: z.string().describe(\"Timestamp when the import failed, if applicable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs associated with this import object.\").optional(),\n createdAt: z.string().describe(\"Timestamp when the import was created.\").optional(),\n updatedAt: z.string().describe(\"Timestamp when the import was last updated.\").optional(),\n failedReason: z.string().describe(\"The reason the import failed, if any (invalid_format, invalid_file_content, or missing_identifier).\").optional(),\n failedMessage: z.string().describe(\"A human-readable message describing the import failure, if any.\").optional(),\n}).describe(\"Response model returned after successfully deleting an import.\");\n\nexport const exaDeleteImport = action(\"EXA_DELETE_IMPORT\", {\n slug: \"exa-delete-import\",\n name: \"Delete import\",\n description: \"Tool to delete an existing import. Use when you need to permanently remove an import by its ID.\",\n input: ExaDeleteImportInput,\n output: ExaDeleteImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO,EACzD,IAAI,EAAE,OAAO,EAAE,SAAS,iCAAiC,EAC3D,CAAC,EAAE,SAAS,qDAAqD;AACjE,MAAM,+BAA6C,EAAE,OAAO,EAC1D,MAAM,EAAE,OAAO,EAAE,SAAS,qEAAqE,EACjG,CAAC,EAAE,SAAS,4DAA4D;AAiBxE,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,EAAE,SAAS,uCAAuC,EAAE,SAAS;EAC1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,uCAAuC,EAAE,SAAS;EACnF,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B,EAAE,SAAS;EAChE,QAAQ,6BAA6B,SAAS,EAAE,SAAS;EACzD,QAAQ,EAAE,OAAO,EAAE,SAAS,2CAA2C,EAAE,SAAS;EAClF,QAAQ,EAAE,OAAO,EAAE,SAAS,sCAAsC,EAAE,SAAS;EAC7E,QAAQ,EAAE,OAAO,EAAE,SAAS,uEAAuE,EAAE,SAAS;EAC9G,UAAU,EAAE,OAAO,EAAE,SAAS,kDAAkD,EAAE,SAAS;EAC3F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,qDAAqD,EAAE,SAAS;EACrH,WAAW,EAAE,OAAO,EAAE,SAAS,wCAAwC,EAAE,SAAS;EAClF,WAAW,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;EACvF,cAAc,EAAE,OAAO,EAAE,SAAS,qGAAqG,EAAE,SAAS;EAClJ,eAAe,EAAE,OAAO,EAAE,SAAS,iEAAiE,EAAE,SAAS;CACjH,CAAC,EAAE,SAAS,gEAOF;AACV,CAAC"}
@@ -0,0 +1,153 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-webset.ts
4
+ const ExaDeleteWebsetInput = zod.z.object({ id: zod.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 = zod.z.object({ type: zod.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 = zod.z.object({
7
+ id: zod.z.string().describe("The unique identifier for the import."),
8
+ count: zod.z.number().int().describe("Number of entities imported."),
9
+ title: zod.z.string().describe("Title given to the import."),
10
+ entity: ExaDeleteWebset_EntitySchema.nullable(),
11
+ format: zod.z.string().describe("The format of the import (e.g., 'csv', 'webset')."),
12
+ object: zod.z.string().describe("The object type, always 'import'."),
13
+ status: zod.z.string().describe("The status of the import."),
14
+ failedAt: zod.z.string().describe("Timestamp when the import failed, if applicable.").optional(),
15
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()),
16
+ createdAt: zod.z.string().describe("Timestamp when the import was created."),
17
+ updatedAt: zod.z.string().describe("Timestamp when the import was last updated."),
18
+ failedReason: zod.z.string().describe("Reason for failure, if import failed.").optional(),
19
+ failedMessage: zod.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 = zod.z.object({
22
+ cron: zod.z.string().describe("Cron schedule string."),
23
+ timezone: zod.z.string().describe("Timezone for the schedule.")
24
+ }).describe("Cadence configuration for a monitor.");
25
+ const ExaDeleteWebset_MonitorLastRunSchema = zod.z.object({
26
+ id: zod.z.string().describe("The unique identifier for the monitor run."),
27
+ type: zod.z.string().describe("Run type, always 'search'."),
28
+ object: zod.z.string().describe("The object type, always 'monitor_run'."),
29
+ status: zod.z.string().describe("Status of the monitor run."),
30
+ failedAt: zod.z.string().describe("Timestamp when the run failed, if applicable.").optional(),
31
+ createdAt: zod.z.string().describe("Timestamp when the run was created."),
32
+ monitorId: zod.z.string().describe("The Monitor ID this run belongs to."),
33
+ updatedAt: zod.z.string().describe("Timestamp when the run was last updated."),
34
+ canceledAt: zod.z.string().describe("Timestamp when the run was canceled, if applicable.").optional(),
35
+ completedAt: zod.z.string().describe("Timestamp when the run completed, if applicable.").optional(),
36
+ failedReason: zod.z.string().describe("Reason for failure, if any.").optional()
37
+ }).describe("Represents the last run details of a monitor.");
38
+ const ExaDeleteWebset_CriteriaSchema = zod.z.object({
39
+ description: zod.z.string().describe("The description of the criterion."),
40
+ successRate: zod.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 = zod.z.object({
43
+ count: zod.z.number().int().describe("Number of results to fetch on each run."),
44
+ query: zod.z.string().describe("Search query for the monitor."),
45
+ entity: ExaDeleteWebset_EntitySchema.nullable(),
46
+ behavior: zod.z.enum(["override", "append"]).describe("Behavior when adding to the Webset."),
47
+ criteria: zod.z.array(ExaDeleteWebset_CriteriaSchema)
48
+ }).describe("Configuration for monitor behavior.");
49
+ const ExaDeleteWebset_BehaviorSchema = zod.z.object({
50
+ type: zod.z.string().describe("Behavior type, always 'search'."),
51
+ config: ExaDeleteWebset_BehaviorConfigSchema.nullable()
52
+ }).describe("Behavior settings for a monitor.");
53
+ const ExaDeleteWebset_MonitorObjSchema = zod.z.object({
54
+ id: zod.z.string().describe("The unique identifier for the monitor."),
55
+ object: zod.z.string().describe("The object type, always 'monitor'."),
56
+ status: zod.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: zod.z.record(zod.z.string(), zod.z.unknown()),
61
+ websetId: zod.z.string().describe("The associated Webset ID."),
62
+ createdAt: zod.z.string().describe("Timestamp when monitor was created."),
63
+ nextRunAt: zod.z.string().describe("Timestamp for next scheduled run.").optional(),
64
+ updatedAt: zod.z.string().describe("Timestamp when monitor was last updated.")
65
+ }).describe("Represents a monitor configured on a Webset.");
66
+ const ExaDeleteWebset_ExcludeScopeSchema = zod.z.object({
67
+ id: zod.z.string().describe("The ID of the source to exclude or scope."),
68
+ source: zod.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 = zod.z.object({
71
+ max: zod.z.number().int().describe("Maximum expected recall."),
72
+ min: zod.z.number().int().describe("Minimum expected recall.")
73
+ }).describe("Bounds for recall metrics.");
74
+ const ExaDeleteWebset_RecallExpectedSchema = zod.z.object({
75
+ total: zod.z.number().int().describe("Total expected items."),
76
+ bounds: ExaDeleteWebset_RecallBoundsSchema.nullable(),
77
+ confidence: zod.z.string().describe("Confidence level (e.g., 'high', 'medium').")
78
+ }).describe("Expected recall metrics.");
79
+ const ExaDeleteWebset_RecallSchema = zod.z.object({
80
+ expected: ExaDeleteWebset_RecallExpectedSchema.nullable(),
81
+ reasoning: zod.z.string().describe("Reasoning behind the recall estimate.").optional()
82
+ }).describe("Recall metrics for a Webset search.");
83
+ const ExaDeleteWebset_ProgressSchema = zod.z.object({
84
+ found: zod.z.number().int().describe("Number of items found so far."),
85
+ analyzed: zod.z.number().int().describe("Number of items analyzed so far."),
86
+ timeLeft: zod.z.number().int().describe("Estimated time left in seconds."),
87
+ completion: zod.z.number().int().describe("Percentage of completion.")
88
+ }).describe("Progress metrics for a Webset search.");
89
+ const ExaDeleteWebset_WebsetSearchSchema = zod.z.object({
90
+ id: zod.z.string().describe("The unique identifier for the search."),
91
+ count: zod.z.number().int().describe("Number of results the search attempts to find."),
92
+ query: zod.z.string().describe("The query used for the search."),
93
+ scope: zod.z.array(ExaDeleteWebset_ExcludeScopeSchema),
94
+ entity: ExaDeleteWebset_EntitySchema.nullable(),
95
+ object: zod.z.string().describe("The object type, always 'webset_search'."),
96
+ recall: ExaDeleteWebset_RecallSchema.nullable().optional(),
97
+ status: zod.z.string().describe("The status of the search."),
98
+ exclude: zod.z.array(ExaDeleteWebset_ExcludeScopeSchema),
99
+ behavior: zod.z.enum(["override", "append"]).describe("Behavior when adding to the Webset."),
100
+ criteria: zod.z.array(ExaDeleteWebset_CriteriaSchema),
101
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()),
102
+ progress: ExaDeleteWebset_ProgressSchema.nullable(),
103
+ createdAt: zod.z.string().describe("Timestamp when the search was created."),
104
+ updatedAt: zod.z.string().describe("Timestamp when the search was last updated."),
105
+ canceledAt: zod.z.string().describe("Timestamp when the search was canceled, if applicable.").optional(),
106
+ canceledReason: zod.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 = zod.z.object({ label: zod.z.string().describe("Option label.") }).describe("Option for a webset enrichment task.");
109
+ const ExaDeleteWebset_WebsetEnrichmentSchema = zod.z.object({
110
+ id: zod.z.string().describe("The unique identifier for the enrichment."),
111
+ title: zod.z.string().describe("Title of the enrichment, if available.").optional(),
112
+ format: zod.z.string().describe("The format of the enrichment response."),
113
+ object: zod.z.string().describe("The object type, always 'webset_enrichment'."),
114
+ status: zod.z.string().describe("The status of the enrichment."),
115
+ options: zod.z.array(ExaDeleteWebset_WebsetEnrichmentOptionSchema).describe("Options for enrichment if format is 'options'.").optional(),
116
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()),
117
+ websetId: zod.z.string().describe("The Webset ID this enrichment belongs to."),
118
+ createdAt: zod.z.string().describe("Timestamp when enrichment was created."),
119
+ updatedAt: zod.z.string().describe("Timestamp when enrichment was last updated."),
120
+ description: zod.z.string().describe("Description given for the enrichment task."),
121
+ instructions: zod.z.string().describe("Instructions for the enrichment agent, if any.").optional()
122
+ }).describe("Represents an enrichment task within a Webset.");
123
+ const ExaDeleteWebsetOutput = zod.z.object({
124
+ id: zod.z.string().describe("The unique identifier for the Webset.").optional(),
125
+ title: zod.z.string().describe("Title of the Webset, if any.").optional(),
126
+ object: zod.z.string().describe("Object type, always 'webset'.").optional(),
127
+ status: zod.z.enum([
128
+ "idle",
129
+ "pending",
130
+ "running",
131
+ "paused"
132
+ ]).describe("Status of the Webset.").optional(),
133
+ imports: zod.z.array(ExaDeleteWebset_ImportObjSchema).optional(),
134
+ streams: zod.z.array(zod.z.unknown()).optional(),
135
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
136
+ monitors: zod.z.array(ExaDeleteWebset_MonitorObjSchema).optional(),
137
+ searches: zod.z.array(ExaDeleteWebset_WebsetSearchSchema).optional(),
138
+ createdAt: zod.z.string().describe("Timestamp when Webset was created.").optional(),
139
+ updatedAt: zod.z.string().describe("Timestamp when Webset was last updated.").optional(),
140
+ externalId: zod.z.string().describe("External identifier for the Webset, if any.").optional(),
141
+ enrichments: zod.z.array(ExaDeleteWebset_WebsetEnrichmentSchema).optional()
142
+ }).describe("Response model returned after deleting a Webset.");
143
+ const exaDeleteWebset = require_action.action("EXA_DELETE_WEBSET", {
144
+ slug: "exa-delete-webset",
145
+ name: "Delete webset",
146
+ description: "Tool to delete a Webset. Use after confirming the Webset ID to permanently remove the Webset and all its items.",
147
+ input: ExaDeleteWebsetInput,
148
+ output: ExaDeleteWebsetOutput
149
+ });
150
+ //#endregion
151
+ exports.exaDeleteWebset = exaDeleteWebset;
152
+
153
+ //# sourceMappingURL=delete-webset.cjs.map