@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,140 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-event.ts
4
+ const ExaGetEventInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the event to retrieve.") }).describe("Parameters to retrieve a specific Exa Event by ID.");
5
+ const ExaGetEvent_ImportItemSchema = zod.z.object({
6
+ id: zod.z.string().describe("Unique identifier for the import."),
7
+ count: zod.z.number().int().describe("Number of items imported."),
8
+ title: zod.z.string().describe("Title of the import."),
9
+ entity: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Entity type classification for imported data."),
10
+ format: zod.z.string().describe("Format of the imported data (e.g., 'csv', 'webset')."),
11
+ object: zod.z.string().describe("Object type, always 'import'."),
12
+ status: zod.z.string().describe("Current status of the import."),
13
+ failedAt: zod.z.string().describe("Timestamp when the import failed. Nullable.").optional(),
14
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
15
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the import was created."),
16
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the import was last updated."),
17
+ failedReason: zod.z.string().describe("Reason for import failure. Nullable.").optional(),
18
+ failedMessage: zod.z.string().describe("Detailed error message for import failure. Nullable.").optional()
19
+ });
20
+ const ExaGetEvent_ExcludeSchema = zod.z.object({
21
+ id: zod.z.string().describe("ID of the exclusion source."),
22
+ source: zod.z.string().describe("Source type for exclusion (e.g., 'import', 'webset').")
23
+ });
24
+ const ExaGetEvent_CadenceSchema = zod.z.object({
25
+ cron: zod.z.string().describe("Cron expression defining the schedule."),
26
+ timezone: zod.z.string().describe("Timezone for the schedule.")
27
+ });
28
+ const ExaGetEvent_MonitorLastRunSchema = zod.z.object({
29
+ status: zod.z.string().describe("Status of the last run."),
30
+ startedAt: zod.z.string().describe("Timestamp when the run started.").optional(),
31
+ completedAt: zod.z.string().describe("Timestamp when the run completed.").optional()
32
+ });
33
+ const ExaGetEvent_MonitorBehaviorSchema = zod.z.object({
34
+ type: zod.z.string().describe("Behavior type, typically 'search'."),
35
+ config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration parameters for the behavior.").optional()
36
+ });
37
+ const ExaGetEvent_MonitorSchema = zod.z.object({
38
+ id: zod.z.string().describe("Unique identifier for the monitor."),
39
+ object: zod.z.string().describe("Object type, always 'monitor'."),
40
+ status: zod.z.string().describe("Current status of the monitor."),
41
+ cadence: ExaGetEvent_CadenceSchema.nullable(),
42
+ lastRun: ExaGetEvent_MonitorLastRunSchema.nullable(),
43
+ behavior: ExaGetEvent_MonitorBehaviorSchema.nullable(),
44
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
45
+ websetId: zod.z.string().describe("ID of the parent webset."),
46
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the monitor was created."),
47
+ nextRunAt: zod.z.string().describe("ISO 8601 timestamp of the next scheduled execution. Nullable.").optional(),
48
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the monitor was last updated.")
49
+ });
50
+ const ExaGetEvent_BoundsSchema = zod.z.object({
51
+ max: zod.z.number().int().describe("Maximum bound value."),
52
+ min: zod.z.number().int().describe("Minimum bound value.")
53
+ });
54
+ const ExaGetEvent_ExpectedSchema = zod.z.object({
55
+ total: zod.z.number().int().describe("Expected total number of results."),
56
+ bounds: ExaGetEvent_BoundsSchema.nullable(),
57
+ confidence: zod.z.string().describe("Confidence level of the expectation.")
58
+ });
59
+ const ExaGetEvent_RecallSchema = zod.z.object({
60
+ expected: ExaGetEvent_ExpectedSchema.nullable(),
61
+ reasoning: zod.z.string().describe("Reasoning behind recall estimates.")
62
+ });
63
+ const ExaGetEvent_CriteriaSchema = zod.z.object({
64
+ description: zod.z.string().describe("Description of the criterion."),
65
+ successRate: zod.z.number().describe("Success rate threshold (0-100).")
66
+ });
67
+ const ExaGetEvent_ProgressSchema = zod.z.object({
68
+ found: zod.z.number().int().describe("Number of results found so far.").optional(),
69
+ analyzed: zod.z.number().int().describe("Number of pages analyzed.").optional(),
70
+ timeLeft: zod.z.string().describe("Estimated time remaining.").optional(),
71
+ completion: zod.z.number().describe("Completion percentage.").optional()
72
+ });
73
+ const ExaGetEvent_SearchItemSchema = zod.z.object({
74
+ id: zod.z.string().describe("Unique identifier for the search."),
75
+ count: zod.z.number().int().describe("Target number of results to find."),
76
+ query: zod.z.string().describe("Search query string."),
77
+ scope: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Search scope boundaries with relationship definitions.").optional(),
78
+ entity: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Entity type configuration for the search (e.g., company, person, article, research-paper, custom)."),
79
+ object: zod.z.string().describe("Object type, always 'webset_search'."),
80
+ recall: ExaGetEvent_RecallSchema.nullable().optional(),
81
+ status: zod.z.string().describe("Current status of the search."),
82
+ exclude: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of sources to exclude from search results.").optional(),
83
+ behavior: zod.z.string().describe("Search behavior mode: 'override' or 'append'.").optional(),
84
+ criteria: zod.z.array(ExaGetEvent_CriteriaSchema).describe("Evaluation criteria for matching results."),
85
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
86
+ progress: ExaGetEvent_ProgressSchema.nullable().optional(),
87
+ websetId: zod.z.string().describe("ID of the parent webset."),
88
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the search was created."),
89
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the search was last updated."),
90
+ canceledAt: zod.z.string().describe("Timestamp when the search was canceled.").optional(),
91
+ canceledReason: zod.z.string().describe("Reason for search cancellation.").optional()
92
+ });
93
+ const ExaGetEvent_OptionSchema = zod.z.object({ label: zod.z.string().describe("Label of the enrichment option.") });
94
+ const ExaGetEvent_EnrichmentSchema = zod.z.object({
95
+ id: zod.z.string().describe("Unique identifier for the enrichment."),
96
+ title: zod.z.string().describe("Title of the enrichment. Nullable.").optional(),
97
+ format: zod.z.string().describe("Format of enriched data (e.g., text, date, number, options, email, phone, url). Nullable.").optional(),
98
+ object: zod.z.string().describe("Object type, always 'webset_enrichment'."),
99
+ status: zod.z.string().describe("Current status of the enrichment."),
100
+ options: zod.z.array(ExaGetEvent_OptionSchema).describe("Available options when format is 'options'. Nullable.").optional(),
101
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
102
+ websetId: zod.z.string().describe("ID of the parent webset."),
103
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the enrichment was created."),
104
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the enrichment was last updated."),
105
+ description: zod.z.string().describe("Description of what data the enrichment extracts. Nullable.").optional(),
106
+ instructions: zod.z.string().describe("Agent instructions for the enrichment task. Nullable.").optional()
107
+ });
108
+ const ExaGetEvent_DataSchema = zod.z.object({
109
+ id: zod.z.string().describe("Unique identifier for the object that triggered the event (webset, import, monitor, etc.)."),
110
+ title: zod.z.string().describe("Display name or title of the object. Nullable.").optional(),
111
+ object: zod.z.string().describe("Object type (e.g., 'webset', 'import', 'monitor')."),
112
+ status: zod.z.string().describe("Current status of the object. Values include: idle, pending, running, paused, created, completed, canceled, failed."),
113
+ imports: zod.z.array(ExaGetEvent_ImportItemSchema).describe("Array of import operations for uploading data into websets.").optional(),
114
+ excludes: zod.z.array(ExaGetEvent_ExcludeSchema).describe("Global exclusion sources applied across all operations.").optional(),
115
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs for storing additional information (max 1000 characters per value).").optional(),
116
+ monitors: zod.z.array(ExaGetEvent_MonitorSchema).describe("Array of monitors that continuously keep websets updated with fresh data through scheduled operations.").optional(),
117
+ searches: zod.z.array(ExaGetEvent_SearchItemSchema).describe("Array of search operations associated with the webset.").optional(),
118
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the object was created."),
119
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the object was last updated."),
120
+ externalId: zod.z.string().describe("Your internal identifier for the object. Nullable.").optional(),
121
+ enrichments: zod.z.array(ExaGetEvent_EnrichmentSchema).describe("Array of enrichment tasks that enhance webset items with additional structured data.").optional()
122
+ });
123
+ const ExaGetEventOutput = zod.z.object({
124
+ id: zod.z.string().describe("Unique identifier for the event."),
125
+ data: ExaGetEvent_DataSchema.nullable(),
126
+ type: zod.z.string().describe("Type of event. One of: webset.created, webset.deleted, webset.idle, webset.paused, webset.item_created, webset.item_enriched, webset.search_created, webset.search_updated, webset.search_canceled, webset.search_completed, import.created, import.completed, monitor.created, monitor.updated, monitor.deleted, monitor_run.created, monitor_run.completed."),
127
+ object: zod.z.string().describe("Object type, always 'event'."),
128
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the event was created.")
129
+ }).describe("Response schema for the Exa GET /websets/v0/events/{id} endpoint. Returns a union type representing one of 17 different event types.");
130
+ const exaGetEvent = require_action.action("EXA_GET_EVENT", {
131
+ slug: "exa-get-event",
132
+ name: "Get Event",
133
+ description: "Tool to get details of a specific event by its ID. Use when you have an event ID and need its full details.",
134
+ input: ExaGetEventInput,
135
+ output: ExaGetEventOutput
136
+ });
137
+ //#endregion
138
+ exports.exaGetEvent = exaGetEvent;
139
+
140
+ //# sourceMappingURL=get-event.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event.cjs","names":["z","action"],"sources":["../../src/actions/get-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetEventInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the event to retrieve.\"),\n}).describe(\"Parameters to retrieve a specific Exa Event by ID.\");\nconst ExaGetEvent_ImportItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the import.\"),\n count: z.number().int().describe(\"Number of items imported.\"),\n title: z.string().describe(\"Title of the import.\"),\n entity: z.record(z.string(), z.unknown()).describe(\"Entity type classification for imported data.\"),\n format: z.string().describe(\"Format of the imported data (e.g., 'csv', 'webset').\"),\n object: z.string().describe(\"Object type, always 'import'.\"),\n status: z.string().describe(\"Current status of the import.\"),\n failedAt: z.string().describe(\"Timestamp when the import failed. Nullable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the import was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the import was last updated.\"),\n failedReason: z.string().describe(\"Reason for import failure. Nullable.\").optional(),\n failedMessage: z.string().describe(\"Detailed error message for import failure. Nullable.\").optional(),\n});\nconst ExaGetEvent_ExcludeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the exclusion source.\"),\n source: z.string().describe(\"Source type for exclusion (e.g., 'import', 'webset').\"),\n});\nconst ExaGetEvent_CadenceSchema: z.ZodTypeAny = z.object({\n cron: z.string().describe(\"Cron expression defining the schedule.\"),\n timezone: z.string().describe(\"Timezone for the schedule.\"),\n});\nconst ExaGetEvent_MonitorLastRunSchema: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the last run.\"),\n startedAt: z.string().describe(\"Timestamp when the run started.\").optional(),\n completedAt: z.string().describe(\"Timestamp when the run completed.\").optional(),\n});\nconst ExaGetEvent_MonitorBehaviorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Behavior type, typically 'search'.\"),\n config: z.record(z.string(), z.unknown()).describe(\"Configuration parameters for the behavior.\").optional(),\n});\nconst ExaGetEvent_MonitorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the monitor.\"),\n object: z.string().describe(\"Object type, always 'monitor'.\"),\n status: z.string().describe(\"Current status of the monitor.\"),\n cadence: ExaGetEvent_CadenceSchema.nullable(),\n lastRun: ExaGetEvent_MonitorLastRunSchema.nullable(),\n behavior: ExaGetEvent_MonitorBehaviorSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n websetId: z.string().describe(\"ID of the parent webset.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the monitor was created.\"),\n nextRunAt: z.string().describe(\"ISO 8601 timestamp of the next scheduled execution. Nullable.\").optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the monitor was last updated.\"),\n});\nconst ExaGetEvent_BoundsSchema: z.ZodTypeAny = z.object({\n max: z.number().int().describe(\"Maximum bound value.\"),\n min: z.number().int().describe(\"Minimum bound value.\"),\n});\nconst ExaGetEvent_ExpectedSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Expected total number of results.\"),\n bounds: ExaGetEvent_BoundsSchema.nullable(),\n confidence: z.string().describe(\"Confidence level of the expectation.\"),\n});\nconst ExaGetEvent_RecallSchema: z.ZodTypeAny = z.object({\n expected: ExaGetEvent_ExpectedSchema.nullable(),\n reasoning: z.string().describe(\"Reasoning behind recall estimates.\"),\n});\nconst ExaGetEvent_CriteriaSchema: z.ZodTypeAny = z.object({\n description: z.string().describe(\"Description of the criterion.\"),\n successRate: z.number().describe(\"Success rate threshold (0-100).\"),\n});\nconst ExaGetEvent_ProgressSchema: z.ZodTypeAny = z.object({\n found: z.number().int().describe(\"Number of results found so far.\").optional(),\n analyzed: z.number().int().describe(\"Number of pages analyzed.\").optional(),\n timeLeft: z.string().describe(\"Estimated time remaining.\").optional(),\n completion: z.number().describe(\"Completion percentage.\").optional(),\n});\nconst ExaGetEvent_SearchItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the search.\"),\n count: z.number().int().describe(\"Target number of results to find.\"),\n query: z.string().describe(\"Search query string.\"),\n scope: z.array(z.record(z.string(), z.unknown())).describe(\"Search scope boundaries with relationship definitions.\").optional(),\n entity: z.record(z.string(), z.unknown()).describe(\"Entity type configuration for the search (e.g., company, person, article, research-paper, custom).\"),\n object: z.string().describe(\"Object type, always 'webset_search'.\"),\n recall: ExaGetEvent_RecallSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the search.\"),\n exclude: z.array(z.record(z.string(), z.unknown())).describe(\"Array of sources to exclude from search results.\").optional(),\n behavior: z.string().describe(\"Search behavior mode: 'override' or 'append'.\").optional(),\n criteria: z.array(ExaGetEvent_CriteriaSchema).describe(\"Evaluation criteria for matching results.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n progress: ExaGetEvent_ProgressSchema.nullable().optional(),\n websetId: z.string().describe(\"ID of the parent webset.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the search was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the search was last updated.\"),\n canceledAt: z.string().describe(\"Timestamp when the search was canceled.\").optional(),\n canceledReason: z.string().describe(\"Reason for search cancellation.\").optional(),\n});\nconst ExaGetEvent_OptionSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the enrichment option.\"),\n});\nconst ExaGetEvent_EnrichmentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the enrichment.\"),\n title: z.string().describe(\"Title of the enrichment. Nullable.\").optional(),\n format: z.string().describe(\"Format of enriched data (e.g., text, date, number, options, email, phone, url). Nullable.\").optional(),\n object: z.string().describe(\"Object type, always 'webset_enrichment'.\"),\n status: z.string().describe(\"Current status of the enrichment.\"),\n options: z.array(ExaGetEvent_OptionSchema).describe(\"Available options when format is 'options'. Nullable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n websetId: z.string().describe(\"ID of the parent webset.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the enrichment was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the enrichment was last updated.\"),\n description: z.string().describe(\"Description of what data the enrichment extracts. Nullable.\").optional(),\n instructions: z.string().describe(\"Agent instructions for the enrichment task. Nullable.\").optional(),\n});\nconst ExaGetEvent_DataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the object that triggered the event (webset, import, monitor, etc.).\"),\n title: z.string().describe(\"Display name or title of the object. Nullable.\").optional(),\n object: z.string().describe(\"Object type (e.g., 'webset', 'import', 'monitor').\"),\n status: z.string().describe(\"Current status of the object. Values include: idle, pending, running, paused, created, completed, canceled, failed.\"),\n imports: z.array(ExaGetEvent_ImportItemSchema).describe(\"Array of import operations for uploading data into websets.\").optional(),\n excludes: z.array(ExaGetEvent_ExcludeSchema).describe(\"Global exclusion sources applied across all operations.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for storing additional information (max 1000 characters per value).\").optional(),\n monitors: z.array(ExaGetEvent_MonitorSchema).describe(\"Array of monitors that continuously keep websets updated with fresh data through scheduled operations.\").optional(),\n searches: z.array(ExaGetEvent_SearchItemSchema).describe(\"Array of search operations associated with the webset.\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the object was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the object was last updated.\"),\n externalId: z.string().describe(\"Your internal identifier for the object. Nullable.\").optional(),\n enrichments: z.array(ExaGetEvent_EnrichmentSchema).describe(\"Array of enrichment tasks that enhance webset items with additional structured data.\").optional(),\n});\nexport const ExaGetEventOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the event.\"),\n data: ExaGetEvent_DataSchema.nullable(),\n type: z.string().describe(\"Type of event. One of: webset.created, webset.deleted, webset.idle, webset.paused, webset.item_created, webset.item_enriched, webset.search_created, webset.search_updated, webset.search_canceled, webset.search_completed, import.created, import.completed, monitor.created, monitor.updated, monitor.deleted, monitor_run.created, monitor_run.completed.\"),\n object: z.string().describe(\"Object type, always 'event'.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the event was created.\"),\n}).describe(\"Response schema for the Exa GET /websets/v0/events/{id} endpoint. Returns a union type representing one of 17 different event types.\");\n\nexport const exaGetEvent = action(\"EXA_GET_EVENT\", {\n slug: \"exa-get-event\",\n name: \"Get Event\",\n description: \"Tool to get details of a specific event by its ID. Use when you have an event ID and need its full details.\",\n input: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MAAM,yBAAyB,EAAE,SAAS,yDAAyD,EAAE,SAAS;CAC1H,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,EAAE,SAAS,4FAA4F,EAAE,SAAS;CAC5J,UAAUA,IAAAA,EAAE,MAAM,yBAAyB,EAAE,SAAS,wGAAwG,EAAE,SAAS;CACzK,UAAUA,IAAAA,EAAE,MAAM,4BAA4B,EAAE,SAAS,wDAAwD,EAAE,SAAS;CAC5H,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,iDAAiD;CAChF,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,sDAAsD;CACrF,YAAYA,IAAAA,EAAE,OAAO,EAAE,SAAS,oDAAoD,EAAE,SAAS;CAC/F,aAAaA,IAAAA,EAAE,MAAM,4BAA4B,EAAE,SAAS,sFAAsF,EAAE,SAAS;AAC/J,CAAC;AACD,MAAa,oBAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,kCAAkC;CAC1D,MAAM,uBAAuB,SAAS;CACtC,MAAMA,IAAAA,EAAE,OAAO,EAAE,SAAS,+VAA+V;CACzX,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,8BAA8B;CAC1D,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,gDAAgD;AACjF,CAAC,EAAE,SAAS,sIAAsI;AAElJ,MAAa,cAAcC,eAAAA,OAAO,iBAAiB;CACjD,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-event.d.ts
4
+ declare const ExaGetEventInput: z.ZodTypeAny;
5
+ declare const ExaGetEventOutput: z.ZodTypeAny;
6
+ declare const exaGetEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaGetEvent };
9
+ //# sourceMappingURL=get-event.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event.d.cts","names":[],"sources":["../../src/actions/get-event.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAEgC;AAAA,cAyHpD,iBAAA,EAAmB,CAAA,CAAE,UAMiH;AAAA,cAEtI,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-event.d.ts
4
+ declare const ExaGetEventInput: z.ZodTypeAny;
5
+ declare const ExaGetEventOutput: z.ZodTypeAny;
6
+ declare const exaGetEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaGetEvent };
9
+ //# sourceMappingURL=get-event.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event.d.mts","names":[],"sources":["../../src/actions/get-event.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAEgC;AAAA,cAyHpD,iBAAA,EAAmB,CAAA,CAAE,UAMiH;AAAA,cAEtI,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,139 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-event.ts
4
+ const ExaGetEventInput = z.object({ id: z.string().describe("The unique identifier of the event to retrieve.") }).describe("Parameters to retrieve a specific Exa Event by ID.");
5
+ const ExaGetEvent_ImportItemSchema = z.object({
6
+ id: z.string().describe("Unique identifier for the import."),
7
+ count: z.number().int().describe("Number of items imported."),
8
+ title: z.string().describe("Title of the import."),
9
+ entity: z.record(z.string(), z.unknown()).describe("Entity type classification for imported data."),
10
+ format: z.string().describe("Format of the imported data (e.g., 'csv', 'webset')."),
11
+ object: z.string().describe("Object type, always 'import'."),
12
+ status: z.string().describe("Current status of the import."),
13
+ failedAt: z.string().describe("Timestamp when the import failed. Nullable.").optional(),
14
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
15
+ createdAt: z.string().describe("ISO 8601 timestamp when the import was created."),
16
+ updatedAt: z.string().describe("ISO 8601 timestamp when the import was last updated."),
17
+ failedReason: z.string().describe("Reason for import failure. Nullable.").optional(),
18
+ failedMessage: z.string().describe("Detailed error message for import failure. Nullable.").optional()
19
+ });
20
+ const ExaGetEvent_ExcludeSchema = z.object({
21
+ id: z.string().describe("ID of the exclusion source."),
22
+ source: z.string().describe("Source type for exclusion (e.g., 'import', 'webset').")
23
+ });
24
+ const ExaGetEvent_CadenceSchema = z.object({
25
+ cron: z.string().describe("Cron expression defining the schedule."),
26
+ timezone: z.string().describe("Timezone for the schedule.")
27
+ });
28
+ const ExaGetEvent_MonitorLastRunSchema = z.object({
29
+ status: z.string().describe("Status of the last run."),
30
+ startedAt: z.string().describe("Timestamp when the run started.").optional(),
31
+ completedAt: z.string().describe("Timestamp when the run completed.").optional()
32
+ });
33
+ const ExaGetEvent_MonitorBehaviorSchema = z.object({
34
+ type: z.string().describe("Behavior type, typically 'search'."),
35
+ config: z.record(z.string(), z.unknown()).describe("Configuration parameters for the behavior.").optional()
36
+ });
37
+ const ExaGetEvent_MonitorSchema = z.object({
38
+ id: z.string().describe("Unique identifier for the monitor."),
39
+ object: z.string().describe("Object type, always 'monitor'."),
40
+ status: z.string().describe("Current status of the monitor."),
41
+ cadence: ExaGetEvent_CadenceSchema.nullable(),
42
+ lastRun: ExaGetEvent_MonitorLastRunSchema.nullable(),
43
+ behavior: ExaGetEvent_MonitorBehaviorSchema.nullable(),
44
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
45
+ websetId: z.string().describe("ID of the parent webset."),
46
+ createdAt: z.string().describe("ISO 8601 timestamp when the monitor was created."),
47
+ nextRunAt: z.string().describe("ISO 8601 timestamp of the next scheduled execution. Nullable.").optional(),
48
+ updatedAt: z.string().describe("ISO 8601 timestamp when the monitor was last updated.")
49
+ });
50
+ const ExaGetEvent_BoundsSchema = z.object({
51
+ max: z.number().int().describe("Maximum bound value."),
52
+ min: z.number().int().describe("Minimum bound value.")
53
+ });
54
+ const ExaGetEvent_ExpectedSchema = z.object({
55
+ total: z.number().int().describe("Expected total number of results."),
56
+ bounds: ExaGetEvent_BoundsSchema.nullable(),
57
+ confidence: z.string().describe("Confidence level of the expectation.")
58
+ });
59
+ const ExaGetEvent_RecallSchema = z.object({
60
+ expected: ExaGetEvent_ExpectedSchema.nullable(),
61
+ reasoning: z.string().describe("Reasoning behind recall estimates.")
62
+ });
63
+ const ExaGetEvent_CriteriaSchema = z.object({
64
+ description: z.string().describe("Description of the criterion."),
65
+ successRate: z.number().describe("Success rate threshold (0-100).")
66
+ });
67
+ const ExaGetEvent_ProgressSchema = z.object({
68
+ found: z.number().int().describe("Number of results found so far.").optional(),
69
+ analyzed: z.number().int().describe("Number of pages analyzed.").optional(),
70
+ timeLeft: z.string().describe("Estimated time remaining.").optional(),
71
+ completion: z.number().describe("Completion percentage.").optional()
72
+ });
73
+ const ExaGetEvent_SearchItemSchema = z.object({
74
+ id: z.string().describe("Unique identifier for the search."),
75
+ count: z.number().int().describe("Target number of results to find."),
76
+ query: z.string().describe("Search query string."),
77
+ scope: z.array(z.record(z.string(), z.unknown())).describe("Search scope boundaries with relationship definitions.").optional(),
78
+ entity: z.record(z.string(), z.unknown()).describe("Entity type configuration for the search (e.g., company, person, article, research-paper, custom)."),
79
+ object: z.string().describe("Object type, always 'webset_search'."),
80
+ recall: ExaGetEvent_RecallSchema.nullable().optional(),
81
+ status: z.string().describe("Current status of the search."),
82
+ exclude: z.array(z.record(z.string(), z.unknown())).describe("Array of sources to exclude from search results.").optional(),
83
+ behavior: z.string().describe("Search behavior mode: 'override' or 'append'.").optional(),
84
+ criteria: z.array(ExaGetEvent_CriteriaSchema).describe("Evaluation criteria for matching results."),
85
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
86
+ progress: ExaGetEvent_ProgressSchema.nullable().optional(),
87
+ websetId: z.string().describe("ID of the parent webset."),
88
+ createdAt: z.string().describe("ISO 8601 timestamp when the search was created."),
89
+ updatedAt: z.string().describe("ISO 8601 timestamp when the search was last updated."),
90
+ canceledAt: z.string().describe("Timestamp when the search was canceled.").optional(),
91
+ canceledReason: z.string().describe("Reason for search cancellation.").optional()
92
+ });
93
+ const ExaGetEvent_OptionSchema = z.object({ label: z.string().describe("Label of the enrichment option.") });
94
+ const ExaGetEvent_EnrichmentSchema = z.object({
95
+ id: z.string().describe("Unique identifier for the enrichment."),
96
+ title: z.string().describe("Title of the enrichment. Nullable.").optional(),
97
+ format: z.string().describe("Format of enriched data (e.g., text, date, number, options, email, phone, url). Nullable.").optional(),
98
+ object: z.string().describe("Object type, always 'webset_enrichment'."),
99
+ status: z.string().describe("Current status of the enrichment."),
100
+ options: z.array(ExaGetEvent_OptionSchema).describe("Available options when format is 'options'. Nullable.").optional(),
101
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs (max 1000 characters per value).").optional(),
102
+ websetId: z.string().describe("ID of the parent webset."),
103
+ createdAt: z.string().describe("ISO 8601 timestamp when the enrichment was created."),
104
+ updatedAt: z.string().describe("ISO 8601 timestamp when the enrichment was last updated."),
105
+ description: z.string().describe("Description of what data the enrichment extracts. Nullable.").optional(),
106
+ instructions: z.string().describe("Agent instructions for the enrichment task. Nullable.").optional()
107
+ });
108
+ const ExaGetEvent_DataSchema = z.object({
109
+ id: z.string().describe("Unique identifier for the object that triggered the event (webset, import, monitor, etc.)."),
110
+ title: z.string().describe("Display name or title of the object. Nullable.").optional(),
111
+ object: z.string().describe("Object type (e.g., 'webset', 'import', 'monitor')."),
112
+ status: z.string().describe("Current status of the object. Values include: idle, pending, running, paused, created, completed, canceled, failed."),
113
+ imports: z.array(ExaGetEvent_ImportItemSchema).describe("Array of import operations for uploading data into websets.").optional(),
114
+ excludes: z.array(ExaGetEvent_ExcludeSchema).describe("Global exclusion sources applied across all operations.").optional(),
115
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs for storing additional information (max 1000 characters per value).").optional(),
116
+ monitors: z.array(ExaGetEvent_MonitorSchema).describe("Array of monitors that continuously keep websets updated with fresh data through scheduled operations.").optional(),
117
+ searches: z.array(ExaGetEvent_SearchItemSchema).describe("Array of search operations associated with the webset.").optional(),
118
+ createdAt: z.string().describe("ISO 8601 timestamp when the object was created."),
119
+ updatedAt: z.string().describe("ISO 8601 timestamp when the object was last updated."),
120
+ externalId: z.string().describe("Your internal identifier for the object. Nullable.").optional(),
121
+ enrichments: z.array(ExaGetEvent_EnrichmentSchema).describe("Array of enrichment tasks that enhance webset items with additional structured data.").optional()
122
+ });
123
+ const exaGetEvent = action("EXA_GET_EVENT", {
124
+ slug: "exa-get-event",
125
+ name: "Get Event",
126
+ description: "Tool to get details of a specific event by its ID. Use when you have an event ID and need its full details.",
127
+ input: ExaGetEventInput,
128
+ output: z.object({
129
+ id: z.string().describe("Unique identifier for the event."),
130
+ data: ExaGetEvent_DataSchema.nullable(),
131
+ type: z.string().describe("Type of event. One of: webset.created, webset.deleted, webset.idle, webset.paused, webset.item_created, webset.item_enriched, webset.search_created, webset.search_updated, webset.search_canceled, webset.search_completed, import.created, import.completed, monitor.created, monitor.updated, monitor.deleted, monitor_run.created, monitor_run.completed."),
132
+ object: z.string().describe("Object type, always 'event'."),
133
+ createdAt: z.string().describe("ISO 8601 timestamp when the event was created.")
134
+ }).describe("Response schema for the Exa GET /websets/v0/events/{id} endpoint. Returns a union type representing one of 17 different event types.")
135
+ });
136
+ //#endregion
137
+ export { exaGetEvent };
138
+
139
+ //# sourceMappingURL=get-event.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event.mjs","names":[],"sources":["../../src/actions/get-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetEventInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the event to retrieve.\"),\n}).describe(\"Parameters to retrieve a specific Exa Event by ID.\");\nconst ExaGetEvent_ImportItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the import.\"),\n count: z.number().int().describe(\"Number of items imported.\"),\n title: z.string().describe(\"Title of the import.\"),\n entity: z.record(z.string(), z.unknown()).describe(\"Entity type classification for imported data.\"),\n format: z.string().describe(\"Format of the imported data (e.g., 'csv', 'webset').\"),\n object: z.string().describe(\"Object type, always 'import'.\"),\n status: z.string().describe(\"Current status of the import.\"),\n failedAt: z.string().describe(\"Timestamp when the import failed. Nullable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the import was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the import was last updated.\"),\n failedReason: z.string().describe(\"Reason for import failure. Nullable.\").optional(),\n failedMessage: z.string().describe(\"Detailed error message for import failure. Nullable.\").optional(),\n});\nconst ExaGetEvent_ExcludeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the exclusion source.\"),\n source: z.string().describe(\"Source type for exclusion (e.g., 'import', 'webset').\"),\n});\nconst ExaGetEvent_CadenceSchema: z.ZodTypeAny = z.object({\n cron: z.string().describe(\"Cron expression defining the schedule.\"),\n timezone: z.string().describe(\"Timezone for the schedule.\"),\n});\nconst ExaGetEvent_MonitorLastRunSchema: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the last run.\"),\n startedAt: z.string().describe(\"Timestamp when the run started.\").optional(),\n completedAt: z.string().describe(\"Timestamp when the run completed.\").optional(),\n});\nconst ExaGetEvent_MonitorBehaviorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Behavior type, typically 'search'.\"),\n config: z.record(z.string(), z.unknown()).describe(\"Configuration parameters for the behavior.\").optional(),\n});\nconst ExaGetEvent_MonitorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the monitor.\"),\n object: z.string().describe(\"Object type, always 'monitor'.\"),\n status: z.string().describe(\"Current status of the monitor.\"),\n cadence: ExaGetEvent_CadenceSchema.nullable(),\n lastRun: ExaGetEvent_MonitorLastRunSchema.nullable(),\n behavior: ExaGetEvent_MonitorBehaviorSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n websetId: z.string().describe(\"ID of the parent webset.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the monitor was created.\"),\n nextRunAt: z.string().describe(\"ISO 8601 timestamp of the next scheduled execution. Nullable.\").optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the monitor was last updated.\"),\n});\nconst ExaGetEvent_BoundsSchema: z.ZodTypeAny = z.object({\n max: z.number().int().describe(\"Maximum bound value.\"),\n min: z.number().int().describe(\"Minimum bound value.\"),\n});\nconst ExaGetEvent_ExpectedSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Expected total number of results.\"),\n bounds: ExaGetEvent_BoundsSchema.nullable(),\n confidence: z.string().describe(\"Confidence level of the expectation.\"),\n});\nconst ExaGetEvent_RecallSchema: z.ZodTypeAny = z.object({\n expected: ExaGetEvent_ExpectedSchema.nullable(),\n reasoning: z.string().describe(\"Reasoning behind recall estimates.\"),\n});\nconst ExaGetEvent_CriteriaSchema: z.ZodTypeAny = z.object({\n description: z.string().describe(\"Description of the criterion.\"),\n successRate: z.number().describe(\"Success rate threshold (0-100).\"),\n});\nconst ExaGetEvent_ProgressSchema: z.ZodTypeAny = z.object({\n found: z.number().int().describe(\"Number of results found so far.\").optional(),\n analyzed: z.number().int().describe(\"Number of pages analyzed.\").optional(),\n timeLeft: z.string().describe(\"Estimated time remaining.\").optional(),\n completion: z.number().describe(\"Completion percentage.\").optional(),\n});\nconst ExaGetEvent_SearchItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the search.\"),\n count: z.number().int().describe(\"Target number of results to find.\"),\n query: z.string().describe(\"Search query string.\"),\n scope: z.array(z.record(z.string(), z.unknown())).describe(\"Search scope boundaries with relationship definitions.\").optional(),\n entity: z.record(z.string(), z.unknown()).describe(\"Entity type configuration for the search (e.g., company, person, article, research-paper, custom).\"),\n object: z.string().describe(\"Object type, always 'webset_search'.\"),\n recall: ExaGetEvent_RecallSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the search.\"),\n exclude: z.array(z.record(z.string(), z.unknown())).describe(\"Array of sources to exclude from search results.\").optional(),\n behavior: z.string().describe(\"Search behavior mode: 'override' or 'append'.\").optional(),\n criteria: z.array(ExaGetEvent_CriteriaSchema).describe(\"Evaluation criteria for matching results.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n progress: ExaGetEvent_ProgressSchema.nullable().optional(),\n websetId: z.string().describe(\"ID of the parent webset.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the search was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the search was last updated.\"),\n canceledAt: z.string().describe(\"Timestamp when the search was canceled.\").optional(),\n canceledReason: z.string().describe(\"Reason for search cancellation.\").optional(),\n});\nconst ExaGetEvent_OptionSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the enrichment option.\"),\n});\nconst ExaGetEvent_EnrichmentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the enrichment.\"),\n title: z.string().describe(\"Title of the enrichment. Nullable.\").optional(),\n format: z.string().describe(\"Format of enriched data (e.g., text, date, number, options, email, phone, url). Nullable.\").optional(),\n object: z.string().describe(\"Object type, always 'webset_enrichment'.\"),\n status: z.string().describe(\"Current status of the enrichment.\"),\n options: z.array(ExaGetEvent_OptionSchema).describe(\"Available options when format is 'options'. Nullable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (max 1000 characters per value).\").optional(),\n websetId: z.string().describe(\"ID of the parent webset.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the enrichment was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the enrichment was last updated.\"),\n description: z.string().describe(\"Description of what data the enrichment extracts. Nullable.\").optional(),\n instructions: z.string().describe(\"Agent instructions for the enrichment task. Nullable.\").optional(),\n});\nconst ExaGetEvent_DataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the object that triggered the event (webset, import, monitor, etc.).\"),\n title: z.string().describe(\"Display name or title of the object. Nullable.\").optional(),\n object: z.string().describe(\"Object type (e.g., 'webset', 'import', 'monitor').\"),\n status: z.string().describe(\"Current status of the object. Values include: idle, pending, running, paused, created, completed, canceled, failed.\"),\n imports: z.array(ExaGetEvent_ImportItemSchema).describe(\"Array of import operations for uploading data into websets.\").optional(),\n excludes: z.array(ExaGetEvent_ExcludeSchema).describe(\"Global exclusion sources applied across all operations.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for storing additional information (max 1000 characters per value).\").optional(),\n monitors: z.array(ExaGetEvent_MonitorSchema).describe(\"Array of monitors that continuously keep websets updated with fresh data through scheduled operations.\").optional(),\n searches: z.array(ExaGetEvent_SearchItemSchema).describe(\"Array of search operations associated with the webset.\").optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the object was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the object was last updated.\"),\n externalId: z.string().describe(\"Your internal identifier for the object. Nullable.\").optional(),\n enrichments: z.array(ExaGetEvent_EnrichmentSchema).describe(\"Array of enrichment tasks that enhance webset items with additional structured data.\").optional(),\n});\nexport const ExaGetEventOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the event.\"),\n data: ExaGetEvent_DataSchema.nullable(),\n type: z.string().describe(\"Type of event. One of: webset.created, webset.deleted, webset.idle, webset.paused, webset.item_created, webset.item_enriched, webset.search_created, webset.search_updated, webset.search_canceled, webset.search_completed, import.created, import.completed, monitor.created, monitor.updated, monitor.deleted, monitor_run.created, monitor_run.completed.\"),\n object: z.string().describe(\"Object type, always 'event'.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the event was created.\"),\n}).describe(\"Response schema for the Exa GET /websets/v0/events/{id} endpoint. Returns a union type representing one of 17 different event types.\");\n\nexport const exaGetEvent = action(\"EXA_GET_EVENT\", {\n slug: \"exa-get-event\",\n name: \"Get Event\",\n description: \"Tool to get details of a specific event by its ID. Use when you have an event ID and need its full details.\",\n input: ExaGetEventInput,\n output: ExaGetEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAiC,EAAE,OAAO,EACrD,IAAI,EAAE,OAAO,EAAE,SAAS,iDAAiD,EAC3E,CAAC,EAAE,SAAS,oDAAoD;AAChE,MAAM,+BAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,EAAE,SAAS,mCAAmC;CAC3D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,2BAA2B;CAC5D,OAAO,EAAE,OAAO,EAAE,SAAS,sBAAsB;CACjD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,+CAA+C;CAClG,QAAQ,EAAE,OAAO,EAAE,SAAS,sDAAsD;CAClF,QAAQ,EAAE,OAAO,EAAE,SAAS,+BAA+B;CAC3D,QAAQ,EAAE,OAAO,EAAE,SAAS,+BAA+B;CAC3D,UAAU,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;CACtF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,yDAAyD,EAAE,SAAS;CACzH,WAAW,EAAE,OAAO,EAAE,SAAS,iDA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A4B,EAAE,SAAS,sFAAsF,EAAE,SAAS;AAC/J,CAAC;AASD,MAAa,cAAc,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,EAAE,SAAS,kCAAkC;EAC1D,MAAM,uBAAuB,SAAS;EACtC,MAAM,EAAE,OAAO,EAAE,SAAS,+VAA+V;EACzX,QAAQ,EAAE,OAAO,EAAE,SAAS,8BAA8B;EAC1D,WAAW,EAAE,OAAO,EAAE,SAAS,gDAAgD;CACjF,CAAC,EAAE,SAAS,sIAOF;AACV,CAAC"}
@@ -0,0 +1,47 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-research.ts
4
+ const ExaGetResearchInput = zod.z.object({
5
+ events: zod.z.boolean().describe("Set to 'true' to include the detailed event log of all operations performed. Defaults to false.").optional(),
6
+ stream: zod.z.boolean().describe("Set to 'true' to receive real-time updates via Server-Sent Events (SSE). Defaults to false.").optional(),
7
+ researchId: zod.z.string().describe("The unique identifier of the research task to retrieve. This ID is returned when creating a research task via POST /research/v1.")
8
+ }).describe("Parameters to retrieve a specific research task by ID.");
9
+ const ExaGetResearch_ResearchEventSchema = zod.z.object({
10
+ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional data associated with the event.").optional(),
11
+ type: zod.z.string().describe("Type of the event.").optional(),
12
+ message: zod.z.string().describe("Event message or description.").optional(),
13
+ timestamp: zod.z.number().describe("Unix timestamp of when the event occurred.").optional()
14
+ }).describe("Represents a single event in the research task execution log.");
15
+ const ExaGetResearch_ResearchOutputSchema = zod.z.object({
16
+ text: zod.z.string().describe("The research output text or summary.").optional(),
17
+ markdown: zod.z.string().describe("The research output in markdown format.").optional(),
18
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata about the research output.").optional(),
19
+ citations: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Citations and sources used in the research.").optional()
20
+ }).describe("The output/result of a completed research task.");
21
+ const ExaGetResearch_CostDollarsSchema = zod.z.object({
22
+ llm: zod.z.number().describe("Cost of LLM/AI model operations.").optional(),
23
+ total: zod.z.number().describe("Total dollar cost for the research task.").optional(),
24
+ search: zod.z.number().describe("Cost of search operations.").optional()
25
+ }).describe("Cost breakdown for the research task.");
26
+ const ExaGetResearchOutput = zod.z.object({
27
+ error: zod.z.string().describe("Error message describing what went wrong. Only present when status is 'failed'.").optional(),
28
+ model: zod.z.string().describe("The AI model used for the research task, if specified.").optional(),
29
+ events: zod.z.array(ExaGetResearch_ResearchEventSchema).describe("Detailed event log of all operations performed during the research task. Only included if the 'events' query parameter was set to true.").optional(),
30
+ output: ExaGetResearch_ResearchOutputSchema.nullable().optional(),
31
+ status: zod.z.string().describe("Current status of the research task. Values: 'pending', 'running', 'completed', 'failed'."),
32
+ createdAt: zod.z.number().describe("Unix timestamp of when the research task was created."),
33
+ researchId: zod.z.string().describe("The unique identifier of the research task."),
34
+ costDollars: ExaGetResearch_CostDollarsSchema.nullable().optional(),
35
+ instructions: zod.z.string().describe("The original instructions or query provided for the research task.")
36
+ }).describe("Response schema for the Exa GET /research/v1/{researchId} endpoint.\n\nThe response varies based on the task status:\n- Pending/Running: includes researchId, createdAt, instructions, status, model (optional), events (optional)\n- Completed: includes all fields plus output and costDollars\n- Failed: includes all fields plus error message");
37
+ const exaGetResearch = require_action.action("EXA_GET_RESEARCH", {
38
+ slug: "exa-get-research",
39
+ name: "Get Research Task",
40
+ description: "Tool to retrieve the status and results of a previously created research task. Use the unique researchId returned from POST /research/v1 to poll until the task is finished.",
41
+ input: ExaGetResearchInput,
42
+ output: ExaGetResearchOutput
43
+ });
44
+ //#endregion
45
+ exports.exaGetResearch = exaGetResearch;
46
+
47
+ //# sourceMappingURL=get-research.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-research.cjs","names":["z","action"],"sources":["../../src/actions/get-research.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetResearchInput: z.ZodTypeAny = z.object({\n events: z.boolean().describe(\"Set to 'true' to include the detailed event log of all operations performed. Defaults to false.\").optional(),\n stream: z.boolean().describe(\"Set to 'true' to receive real-time updates via Server-Sent Events (SSE). Defaults to false.\").optional(),\n researchId: z.string().describe(\"The unique identifier of the research task to retrieve. This ID is returned when creating a research task via POST /research/v1.\"),\n}).describe(\"Parameters to retrieve a specific research task by ID.\");\nconst ExaGetResearch_ResearchEventSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data associated with the event.\").optional(),\n type: z.string().describe(\"Type of the event.\").optional(),\n message: z.string().describe(\"Event message or description.\").optional(),\n timestamp: z.number().describe(\"Unix timestamp of when the event occurred.\").optional(),\n}).describe(\"Represents a single event in the research task execution log.\");\nconst ExaGetResearch_ResearchOutputSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The research output text or summary.\").optional(),\n markdown: z.string().describe(\"The research output in markdown format.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the research output.\").optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"Citations and sources used in the research.\").optional(),\n}).describe(\"The output/result of a completed research task.\");\nconst ExaGetResearch_CostDollarsSchema: z.ZodTypeAny = z.object({\n llm: z.number().describe(\"Cost of LLM/AI model operations.\").optional(),\n total: z.number().describe(\"Total dollar cost for the research task.\").optional(),\n search: z.number().describe(\"Cost of search operations.\").optional(),\n}).describe(\"Cost breakdown for the research task.\");\nexport const ExaGetResearchOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message describing what went wrong. Only present when status is 'failed'.\").optional(),\n model: z.string().describe(\"The AI model used for the research task, if specified.\").optional(),\n events: z.array(ExaGetResearch_ResearchEventSchema).describe(\"Detailed event log of all operations performed during the research task. Only included if the 'events' query parameter was set to true.\").optional(),\n output: ExaGetResearch_ResearchOutputSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the research task. Values: 'pending', 'running', 'completed', 'failed'.\"),\n createdAt: z.number().describe(\"Unix timestamp of when the research task was created.\"),\n researchId: z.string().describe(\"The unique identifier of the research task.\"),\n costDollars: ExaGetResearch_CostDollarsSchema.nullable().optional(),\n instructions: z.string().describe(\"The original instructions or query provided for the research task.\"),\n}).describe(\"Response schema for the Exa GET /research/v1/{researchId} endpoint.\\n\\nThe response varies based on the task status:\\n- Pending/Running: includes researchId, createdAt, instructions, status, model (optional), events (optional)\\n- Completed: includes all fields plus output and costDollars\\n- Failed: includes all fields plus error message\");\n\nexport const exaGetResearch = action(\"EXA_GET_RESEARCH\", {\n slug: \"exa-get-research\",\n name: \"Get Research Task\",\n description: \"Tool to retrieve the status and results of a previously created research task. Use the unique researchId returned from POST /research/v1 to poll until the task is finished.\",\n input: ExaGetResearchInput,\n output: ExaGetResearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,QAAQ,EAAE,SAAS,iGAAiG,EAAE,SAAS;CACzI,QAAQA,IAAAA,EAAE,QAAQ,EAAE,SAAS,6FAA6F,EAAE,SAAS;CACrI,YAAYA,IAAAA,EAAE,OAAO,EAAE,SAAS,kIAAkI;AACpK,CAAC,EAAE,SAAS,wDAAwD;AACpE,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,EAAE,SAAS,4CAA4C,EAAE,SAAS;CACxG,MAAMA,IAAAA,EAAE,OAAO,EAAE,SAAS,oBAAoB,EAAE,SAAS;CACzD,SAASA,IAAAA,EAAE,OAAO,EAAE,SAAS,+BAA+B,EAAE,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,4CAA4C,EAAE,SAAS;AACxF,CAAC,EAAE,SAAS,+DAA+D;AAC3E,MAAM,sCAAoDA,IAAAA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E,SAAS,oEAAoE;AACxG,CAAC,EAAE,SAAS,oVAAoV;AAEhW,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,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-research.d.ts
4
+ declare const ExaGetResearchInput: z.ZodTypeAny;
5
+ declare const ExaGetResearchOutput: z.ZodTypeAny;
6
+ declare const exaGetResearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaGetResearch };
9
+ //# sourceMappingURL=get-research.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-research.d.cts","names":[],"sources":["../../src/actions/get-research.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAIiC;AAAA,cAkBxD,oBAAA,EAAsB,CAAA,CAAE,UAU4T;AAAA,cAEpV,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-research.d.ts
4
+ declare const ExaGetResearchInput: z.ZodTypeAny;
5
+ declare const ExaGetResearchOutput: z.ZodTypeAny;
6
+ declare const exaGetResearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { exaGetResearch };
9
+ //# sourceMappingURL=get-research.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-research.d.mts","names":[],"sources":["../../src/actions/get-research.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAIiC;AAAA,cAkBxD,oBAAA,EAAsB,CAAA,CAAE,UAU4T;AAAA,cAEpV,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,46 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-research.ts
4
+ const ExaGetResearchInput = z.object({
5
+ events: z.boolean().describe("Set to 'true' to include the detailed event log of all operations performed. Defaults to false.").optional(),
6
+ stream: z.boolean().describe("Set to 'true' to receive real-time updates via Server-Sent Events (SSE). Defaults to false.").optional(),
7
+ researchId: z.string().describe("The unique identifier of the research task to retrieve. This ID is returned when creating a research task via POST /research/v1.")
8
+ }).describe("Parameters to retrieve a specific research task by ID.");
9
+ const ExaGetResearch_ResearchEventSchema = z.object({
10
+ data: z.record(z.string(), z.unknown()).describe("Additional data associated with the event.").optional(),
11
+ type: z.string().describe("Type of the event.").optional(),
12
+ message: z.string().describe("Event message or description.").optional(),
13
+ timestamp: z.number().describe("Unix timestamp of when the event occurred.").optional()
14
+ }).describe("Represents a single event in the research task execution log.");
15
+ const ExaGetResearch_ResearchOutputSchema = z.object({
16
+ text: z.string().describe("The research output text or summary.").optional(),
17
+ markdown: z.string().describe("The research output in markdown format.").optional(),
18
+ metadata: z.record(z.string(), z.unknown()).describe("Additional metadata about the research output.").optional(),
19
+ citations: z.array(z.record(z.string(), z.unknown())).describe("Citations and sources used in the research.").optional()
20
+ }).describe("The output/result of a completed research task.");
21
+ const ExaGetResearch_CostDollarsSchema = z.object({
22
+ llm: z.number().describe("Cost of LLM/AI model operations.").optional(),
23
+ total: z.number().describe("Total dollar cost for the research task.").optional(),
24
+ search: z.number().describe("Cost of search operations.").optional()
25
+ }).describe("Cost breakdown for the research task.");
26
+ const exaGetResearch = action("EXA_GET_RESEARCH", {
27
+ slug: "exa-get-research",
28
+ name: "Get Research Task",
29
+ description: "Tool to retrieve the status and results of a previously created research task. Use the unique researchId returned from POST /research/v1 to poll until the task is finished.",
30
+ input: ExaGetResearchInput,
31
+ output: z.object({
32
+ error: z.string().describe("Error message describing what went wrong. Only present when status is 'failed'.").optional(),
33
+ model: z.string().describe("The AI model used for the research task, if specified.").optional(),
34
+ events: z.array(ExaGetResearch_ResearchEventSchema).describe("Detailed event log of all operations performed during the research task. Only included if the 'events' query parameter was set to true.").optional(),
35
+ output: ExaGetResearch_ResearchOutputSchema.nullable().optional(),
36
+ status: z.string().describe("Current status of the research task. Values: 'pending', 'running', 'completed', 'failed'."),
37
+ createdAt: z.number().describe("Unix timestamp of when the research task was created."),
38
+ researchId: z.string().describe("The unique identifier of the research task."),
39
+ costDollars: ExaGetResearch_CostDollarsSchema.nullable().optional(),
40
+ instructions: z.string().describe("The original instructions or query provided for the research task.")
41
+ }).describe("Response schema for the Exa GET /research/v1/{researchId} endpoint.\n\nThe response varies based on the task status:\n- Pending/Running: includes researchId, createdAt, instructions, status, model (optional), events (optional)\n- Completed: includes all fields plus output and costDollars\n- Failed: includes all fields plus error message")
42
+ });
43
+ //#endregion
44
+ export { exaGetResearch };
45
+
46
+ //# sourceMappingURL=get-research.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-research.mjs","names":[],"sources":["../../src/actions/get-research.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaGetResearchInput: z.ZodTypeAny = z.object({\n events: z.boolean().describe(\"Set to 'true' to include the detailed event log of all operations performed. Defaults to false.\").optional(),\n stream: z.boolean().describe(\"Set to 'true' to receive real-time updates via Server-Sent Events (SSE). Defaults to false.\").optional(),\n researchId: z.string().describe(\"The unique identifier of the research task to retrieve. This ID is returned when creating a research task via POST /research/v1.\"),\n}).describe(\"Parameters to retrieve a specific research task by ID.\");\nconst ExaGetResearch_ResearchEventSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data associated with the event.\").optional(),\n type: z.string().describe(\"Type of the event.\").optional(),\n message: z.string().describe(\"Event message or description.\").optional(),\n timestamp: z.number().describe(\"Unix timestamp of when the event occurred.\").optional(),\n}).describe(\"Represents a single event in the research task execution log.\");\nconst ExaGetResearch_ResearchOutputSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The research output text or summary.\").optional(),\n markdown: z.string().describe(\"The research output in markdown format.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the research output.\").optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"Citations and sources used in the research.\").optional(),\n}).describe(\"The output/result of a completed research task.\");\nconst ExaGetResearch_CostDollarsSchema: z.ZodTypeAny = z.object({\n llm: z.number().describe(\"Cost of LLM/AI model operations.\").optional(),\n total: z.number().describe(\"Total dollar cost for the research task.\").optional(),\n search: z.number().describe(\"Cost of search operations.\").optional(),\n}).describe(\"Cost breakdown for the research task.\");\nexport const ExaGetResearchOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message describing what went wrong. Only present when status is 'failed'.\").optional(),\n model: z.string().describe(\"The AI model used for the research task, if specified.\").optional(),\n events: z.array(ExaGetResearch_ResearchEventSchema).describe(\"Detailed event log of all operations performed during the research task. Only included if the 'events' query parameter was set to true.\").optional(),\n output: ExaGetResearch_ResearchOutputSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the research task. Values: 'pending', 'running', 'completed', 'failed'.\"),\n createdAt: z.number().describe(\"Unix timestamp of when the research task was created.\"),\n researchId: z.string().describe(\"The unique identifier of the research task.\"),\n costDollars: ExaGetResearch_CostDollarsSchema.nullable().optional(),\n instructions: z.string().describe(\"The original instructions or query provided for the research task.\"),\n}).describe(\"Response schema for the Exa GET /research/v1/{researchId} endpoint.\\n\\nThe response varies based on the task status:\\n- Pending/Running: includes researchId, createdAt, instructions, status, model (optional), events (optional)\\n- Completed: includes all fields plus output and costDollars\\n- Failed: includes all fields plus error message\");\n\nexport const exaGetResearch = action(\"EXA_GET_RESEARCH\", {\n slug: \"exa-get-research\",\n name: \"Get Research Task\",\n description: \"Tool to retrieve the status and results of a previously created research task. Use the unique researchId returned from POST /research/v1 to poll until the task is finished.\",\n input: ExaGetResearchInput,\n output: ExaGetResearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,QAAQ,EAAE,SAAS,iGAAiG,EAAE,SAAS;CACzI,QAAQ,EAAE,QAAQ,EAAE,SAAS,6FAA6F,EAAE,SAAS;CACrI,YAAY,EAAE,OAAO,EAAE,SAAS,kIAAkI;AACpK,CAAC,EAAE,SAAS,wDAAwD;AACpE,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,4CAA4C,EAAE,SAAS;CACxG,MAAM,EAAE,OAAO,EAAE,SAAS,oBAAoB,EAAE,SAAS;CACzD,SAAS,EAAE,OAAO,EAAE,SAAS,+BAA+B,EAAE,SAAS;CACvE,WAAW,EAAE,OAAO,EAAE,SAAS,4CAA4C,EAAE,SAAS;AACxF,CAAC,EAAE,SAAS,+DAA+D;AAC3E,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,EAAE,SAAS,sCAAsC,EAAE,SAAS;CAC3E,UAAU,EAAE,OAAO,EAAE,SAAS,yCAAyC,EAAE,SAAS;CAClF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,gDAAgD,EAAE,SAAS;CAChH,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,SAAS,6CAA6C,EAAE,SAAS;AACzH,CAAC,EAAE,SAAS,iDAAiD;AAC7D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,EAAE,SAAS,kCAAkC,EAAE,SAAS;CACtE,OAAO,EAAE,OAAO,EAAE,SAAS,0CAA0C,EAAE,SAAS;CAChF,QAAQ,EAAE,OAAO,EAAE,SAAS,4BAA4B,EAAE,SAAS;AACrE,CAAC,EAAE,SAAS,uCAAuC;AAanD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,EAAE,SAAS,iFAAiF,EAAE,SAAS;EACvH,OAAO,EAAE,OAAO,EAAE,SAAS,wDAAwD,EAAE,SAAS;EAC9F,QAAQ,EAAE,MAAM,kCAAkC,EAAE,SAAS,yIAAyI,EAAE,SAAS;EACjN,QAAQ,oCAAoC,SAAS,EAAE,SAAS;EAChE,QAAQ,EAAE,OAAO,EAAE,SAAS,2FAA2F;EACvH,WAAW,EAAE,OAAO,EAAE,SAAS,uDAAuD;EACtF,YAAY,EAAE,OAAO,EAAE,SAAS,6CAA6C;EAC7E,aAAa,iCAAiC,SAAS,EAAE,SAAS;EAClE,cAAc,EAAE,OAAO,EAAE,SAAS,oEAAoE;CACxG,CAAC,EAAE,SAAS,oVAOF;AACV,CAAC"}
@@ -1,17 +1,35 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_actions = require("../actions-LoQVlbiT.cjs");
3
- exports.ExaAnswerInput = require_actions.ExaAnswerInput;
4
- exports.ExaAnswerOutput = require_actions.ExaAnswerOutput;
5
- exports.ExaGetContentsInput = require_actions.ExaGetContentsInput;
6
- exports.ExaGetContentsOutput = require_actions.ExaGetContentsOutput;
7
- exports.ExaGetContextInput = require_actions.ExaGetContextInput;
8
- exports.ExaGetContextOutput = require_actions.ExaGetContextOutput;
9
- exports.ExaSearchInput = require_actions.ExaSearchInput;
10
- exports.ExaSearchOutput = require_actions.ExaSearchOutput;
11
- exports.ExaSearchStructuredInput = require_actions.ExaSearchStructuredInput;
12
- exports.ExaSearchStructuredOutput = require_actions.ExaSearchStructuredOutput;
13
- exports.exaAnswer = require_actions.exaAnswer;
14
- exports.exaGetContents = require_actions.exaGetContents;
15
- exports.exaGetContext = require_actions.exaGetContext;
16
- exports.exaSearch = require_actions.exaSearch;
17
- exports.exaSearchStructured = require_actions.exaSearchStructured;
2
+ const require_answer = require("./answer.cjs");
3
+ const require_create_import = require("./create-import.cjs");
4
+ const require_create_monitor = require("./create-monitor.cjs");
5
+ const require_create_research = require("./create-research.cjs");
6
+ const require_create_webset = require("./create-webset.cjs");
7
+ const require_delete_import = require("./delete-import.cjs");
8
+ const require_delete_webset = require("./delete-webset.cjs");
9
+ const require_get_api_key = require("./get-api-key.cjs");
10
+ const require_get_contents_action = require("./get-contents-action.cjs");
11
+ const require_get_event = require("./get-event.cjs");
12
+ const require_get_research = require("./get-research.cjs");
13
+ const require_list_events = require("./list-events.cjs");
14
+ const require_list_imports = require("./list-imports.cjs");
15
+ const require_list_research = require("./list-research.cjs");
16
+ const require_list_webhooks = require("./list-webhooks.cjs");
17
+ const require_search = require("./search.cjs");
18
+ const require_update_import = require("./update-import.cjs");
19
+ exports.exaAnswer = require_answer.exaAnswer;
20
+ exports.exaCreateImport = require_create_import.exaCreateImport;
21
+ exports.exaCreateMonitor = require_create_monitor.exaCreateMonitor;
22
+ exports.exaCreateResearch = require_create_research.exaCreateResearch;
23
+ exports.exaCreateWebset = require_create_webset.exaCreateWebset;
24
+ exports.exaDeleteImport = require_delete_import.exaDeleteImport;
25
+ exports.exaDeleteWebset = require_delete_webset.exaDeleteWebset;
26
+ exports.exaGetApiKey = require_get_api_key.exaGetApiKey;
27
+ exports.exaGetContentsAction = require_get_contents_action.exaGetContentsAction;
28
+ exports.exaGetEvent = require_get_event.exaGetEvent;
29
+ exports.exaGetResearch = require_get_research.exaGetResearch;
30
+ exports.exaListEvents = require_list_events.exaListEvents;
31
+ exports.exaListImports = require_list_imports.exaListImports;
32
+ exports.exaListResearch = require_list_research.exaListResearch;
33
+ exports.exaListWebhooks = require_list_webhooks.exaListWebhooks;
34
+ exports.exaSearch = require_search.exaSearch;
35
+ exports.exaUpdateImport = require_update_import.exaUpdateImport;