@withone/platform-exa 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,721 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ answer: () => answer,
24
+ batchActionMonitors: () => batchActionMonitors,
25
+ cancelAgentRun: () => cancelAgentRun,
26
+ cancelBatch: () => cancelBatch,
27
+ cancelWebset: () => cancelWebset,
28
+ cancelWebsetEnrichment: () => cancelWebsetEnrichment,
29
+ cancelWebsetSearch: () => cancelWebsetSearch,
30
+ createAgentRuns: () => createAgentRuns,
31
+ createBatch: () => createBatch,
32
+ createEnrichmentWebset: () => createEnrichmentWebset,
33
+ createImport: () => createImport,
34
+ createMonitor: () => createMonitor,
35
+ createMonitor2: () => createMonitor2,
36
+ createWebhook: () => createWebhook,
37
+ createWebset: () => createWebset,
38
+ createWebsetSearch: () => createWebsetSearch,
39
+ deleteAgentRun: () => deleteAgentRun,
40
+ deleteBatch: () => deleteBatch,
41
+ deleteImport: () => deleteImport,
42
+ deleteMonitor: () => deleteMonitor,
43
+ deleteMonitor2: () => deleteMonitor2,
44
+ deleteWebhook: () => deleteWebhook,
45
+ deleteWebset: () => deleteWebset,
46
+ deleteWebsetEnrichment: () => deleteWebsetEnrichment,
47
+ deleteWebsetItem: () => deleteWebsetItem,
48
+ getBatch: () => getBatch,
49
+ getContents: () => getContents,
50
+ getEvent: () => getEvent,
51
+ getImport: () => getImport,
52
+ getMonitor: () => getMonitor,
53
+ getMonitor2: () => getMonitor2,
54
+ getMonitorRun: () => getMonitorRun,
55
+ getMonitorRun2: () => getMonitorRun2,
56
+ getRunUsingAgentRuns: () => getRunUsingAgentRuns,
57
+ getTeamInfo: () => getTeamInfo,
58
+ getWebhook: () => getWebhook,
59
+ getWebset: () => getWebset,
60
+ getWebsetEnrichment: () => getWebsetEnrichment,
61
+ getWebsetItem: () => getWebsetItem,
62
+ getWebsetSearchId: () => getWebsetSearchId,
63
+ listAgentRuns: () => listAgentRuns,
64
+ listAgentRunsEvents: () => listAgentRunsEvents,
65
+ listAllItemsWebset: () => listAllItemsWebset,
66
+ listBatches: () => listBatches,
67
+ listEvents: () => listEvents,
68
+ listImports: () => listImports,
69
+ listMonitorRunsMonitor: () => listMonitorRunsMonitor,
70
+ listMonitors: () => listMonitors,
71
+ listMonitors2: () => listMonitors2,
72
+ listMonitorsRuns: () => listMonitorsRuns,
73
+ listWebhookAttemptsWebhook: () => listWebhookAttemptsWebhook,
74
+ listWebhooks: () => listWebhooks,
75
+ listWebsets: () => listWebsets,
76
+ previewWebset: () => previewWebset,
77
+ search: () => search,
78
+ stopAgentRun: () => stopAgentRun,
79
+ triggerMonitor: () => triggerMonitor,
80
+ updateEnrichmentWebset: () => updateEnrichmentWebset,
81
+ updateImport: () => updateImport,
82
+ updateMonitor: () => updateMonitor,
83
+ updateMonitor2: () => updateMonitor2,
84
+ updateWebhook: () => updateWebhook,
85
+ updateWebset: () => updateWebset
86
+ });
87
+ module.exports = __toCommonJS(src_exports);
88
+ var import_codegen = require("@withone/sdk/codegen");
89
+ var __cancelAgentRunRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
90
+ function cancelAgentRun(input) {
91
+ return new import_codegen.Action({
92
+ systemId: "conn_mod_def::GLnP0wISw4s::q5hcQJScTHCV7mpcj0BGZg",
93
+ method: "POST",
94
+ path: "/agent/runs/{{id}}/cancel",
95
+ ...(0, import_codegen.routeInput)(input, __cancelAgentRunRouting, { "headers": { "Accept": "application/json" } })
96
+ });
97
+ }
98
+ var __getRunUsingAgentRunsRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
99
+ function getRunUsingAgentRuns(input) {
100
+ return new import_codegen.Action({
101
+ systemId: "conn_mod_def::GLnP0wU8NnU::zg3JAhGNRcWxak__12aVBw",
102
+ method: "GET",
103
+ path: "/agent/runs/{{id}}",
104
+ ...(0, import_codegen.routeInput)(input, __getRunUsingAgentRunsRouting, { "headers": { "Accept": "application/json" } })
105
+ });
106
+ }
107
+ var __deleteAgentRunRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
108
+ function deleteAgentRun(input) {
109
+ return new import_codegen.Action({
110
+ systemId: "conn_mod_def::GLnP0wpcaXs::YjuNVE_nSzCQUXBL-4deUw",
111
+ method: "DELETE",
112
+ path: "/agent/runs/{{id}}",
113
+ ...(0, import_codegen.routeInput)(input, __deleteAgentRunRouting, { "headers": { "Accept": "application/json" } })
114
+ });
115
+ }
116
+ var __createAgentRunsRouting = { "routes": [["budget", "body"], ["effort", "body"], ["input", "body"], ["metadata", "body"], ["outputSchema", "body"], ["previousRunId", "body"], ["query", "body"], ["systemPrompt", "body"], ["headers", "headers", null]], "requiredParts": ["body"] };
117
+ function createAgentRuns(input) {
118
+ return new import_codegen.Action({
119
+ systemId: "conn_mod_def::GLnP0yCt19M::bLO1qm5cTZysCgl3QaoDyQ",
120
+ method: "POST",
121
+ path: "/agent/runs",
122
+ ...(0, import_codegen.routeInput)(input, __createAgentRunsRouting, { "headers": { "Content-Type": "application/json" } })
123
+ });
124
+ }
125
+ var __listAgentRunsEventsRouting = { "routes": [["id", "path"], ["cursor", "query"], ["limit", "query"], ["headers", "headers", null]], "requiredParts": ["path"] };
126
+ function listAgentRunsEvents(input) {
127
+ return new import_codegen.Action({
128
+ systemId: "conn_mod_def::GLnP0363pbk::uIQWpx4UR5yc6A2NwOq0tg",
129
+ method: "GET",
130
+ path: "/agent/runs/{{id}}/events",
131
+ ...(0, import_codegen.routeInput)(input, __listAgentRunsEventsRouting)
132
+ });
133
+ }
134
+ var __listAgentRunsRouting = { "routes": [["cursor", "query"], ["limit", "query"]], "requiredParts": [] };
135
+ function listAgentRuns(input) {
136
+ return new import_codegen.Action({
137
+ systemId: "conn_mod_def::GLnP09ZFptQ::ZDgTp01aTa2prCZp5r9ECQ",
138
+ method: "GET",
139
+ path: "/agent/runs",
140
+ ...(0, import_codegen.routeInput)(input, __listAgentRunsRouting, { "headers": { "Accept": "application/json" } })
141
+ });
142
+ }
143
+ var __createEnrichmentWebsetRouting = { "routes": [["description", "body"], ["format", "body"], ["metadata", "body"], ["options", "body"], ["webset", "path"]], "requiredParts": ["body", "path"] };
144
+ function createEnrichmentWebset(input) {
145
+ return new import_codegen.Action({
146
+ systemId: "conn_mod_def::GLnP09oKk6k::UI9GHjtaTvuTT8_CaWP5AQ",
147
+ method: "POST",
148
+ path: "/websets/v0/websets/{{webset}}/enrichments",
149
+ ...(0, import_codegen.routeInput)(input, __createEnrichmentWebsetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
150
+ });
151
+ }
152
+ var __deleteWebsetEnrichmentRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
153
+ function deleteWebsetEnrichment(input) {
154
+ return new import_codegen.Action({
155
+ systemId: "conn_mod_def::GLnP09sQBi4::FrL1dBsLRd-1ujNOdE2vwA",
156
+ method: "DELETE",
157
+ path: "/websets/v0/websets/{{webset}}/enrichments/{{id}}",
158
+ ...(0, import_codegen.routeInput)(input, __deleteWebsetEnrichmentRouting, { "headers": { "Accept": "application/json" } })
159
+ });
160
+ }
161
+ var __cancelWebsetEnrichmentRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
162
+ function cancelWebsetEnrichment(input) {
163
+ return new import_codegen.Action({
164
+ systemId: "conn_mod_def::GLnP0_Iow40::lcZX86jtRrO1rUfaaurWnw",
165
+ method: "POST",
166
+ path: "/websets/v0/websets/{{webset}}/enrichments/{{id}}/cancel",
167
+ ...(0, import_codegen.routeInput)(input, __cancelWebsetEnrichmentRouting, { "headers": { "Accept": "application/json" } })
168
+ });
169
+ }
170
+ var __getWebsetEnrichmentRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
171
+ function getWebsetEnrichment(input) {
172
+ return new import_codegen.Action({
173
+ systemId: "conn_mod_def::GLnP1Mm1hS8::r6EHPvprSumYm0nK7-J-WQ",
174
+ method: "GET",
175
+ path: "/websets/v0/websets/{{webset}}/enrichments/{{id}}",
176
+ ...(0, import_codegen.routeInput)(input, __getWebsetEnrichmentRouting, { "headers": { "Accept": "application/json" } })
177
+ });
178
+ }
179
+ var __getContentsRouting = { "routes": [["compliance", "body"], ["context", "body"], ["extras", "body"], ["highlights", "body"], ["ids", "body"], ["livecrawl", "body"], ["livecrawlTimeout", "body"], ["maxAgeHours", "body"], ["subpageTarget", "body"], ["subpages", "body"], ["summary", "body"], ["text", "body"], ["urls", "body"]], "requiredParts": ["body"] };
180
+ function getContents(input) {
181
+ return new import_codegen.Action({
182
+ systemId: "conn_mod_def::GLnP1SliTjU::cHYbAszDQvC4kJVefjxTMw",
183
+ method: "POST",
184
+ path: "/contents",
185
+ ...(0, import_codegen.routeInput)(input, __getContentsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
186
+ });
187
+ }
188
+ var __listEventsRouting = { "routes": [["createdAfter", "query"], ["createdBefore", "query"], ["cursor", "query"], ["limit", "query"], ["types", "query"]], "requiredParts": [] };
189
+ function listEvents(input) {
190
+ return new import_codegen.Action({
191
+ systemId: "conn_mod_def::GLnP1S_GuQs::657y61dTR3SLXxqzPFiAMQ",
192
+ method: "GET",
193
+ path: "/websets/v0/events",
194
+ ...(0, import_codegen.routeInput)(input, __listEventsRouting, { "headers": { "Accept": "application/json" } })
195
+ });
196
+ }
197
+ var __answerRouting = { "routes": [["outputSchema", "body"], ["query", "body"], ["stream", "body"], ["text", "body"]], "requiredParts": ["body"] };
198
+ function answer(input) {
199
+ return new import_codegen.Action({
200
+ systemId: "conn_mod_def::GLnP1TDvmxk::ItLr_xMCQiuhFUUNWXBhIQ",
201
+ method: "POST",
202
+ path: "/answer",
203
+ ...(0, import_codegen.routeInput)(input, __answerRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
204
+ });
205
+ }
206
+ var __updateEnrichmentWebsetRouting = { "routes": [["description", "body"], ["format", "body"], ["metadata", "body"], ["options", "body"], ["id", "path"], ["webset", "path"]], "requiredParts": ["body", "path"] };
207
+ function updateEnrichmentWebset(input) {
208
+ return new import_codegen.Action({
209
+ systemId: "conn_mod_def::GLnP1TUSUpM::9_mWTS8LS9y9lc8xGV-8fg",
210
+ method: "PATCH",
211
+ path: "/websets/v0/websets/{{webset}}/enrichments/{{id}}",
212
+ ...(0, import_codegen.routeInput)(input, __updateEnrichmentWebsetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
213
+ });
214
+ }
215
+ var __getEventRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
216
+ function getEvent(input) {
217
+ return new import_codegen.Action({
218
+ systemId: "conn_mod_def::GLnP1TnZJ1U::xdF1F6YJTyyIKVuUsUD4Qw",
219
+ method: "GET",
220
+ path: "/websets/v0/events/{{id}}",
221
+ ...(0, import_codegen.routeInput)(input, __getEventRouting, { "headers": { "Accept": "application/json" } })
222
+ });
223
+ }
224
+ var __deleteImportRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
225
+ function deleteImport(input) {
226
+ return new import_codegen.Action({
227
+ systemId: "conn_mod_def::GLnP1Zc8lYg::rfV57P32SZCTQp7ZI0HRHA",
228
+ method: "DELETE",
229
+ path: "/websets/v0/imports/{{id}}",
230
+ ...(0, import_codegen.routeInput)(input, __deleteImportRouting, { "headers": { "Accept": "application/json" } })
231
+ });
232
+ }
233
+ var __listImportsRouting = { "routes": [["cursor", "query"], ["limit", "query"]], "requiredParts": [] };
234
+ function listImports(input) {
235
+ return new import_codegen.Action({
236
+ systemId: "conn_mod_def::GLnP1Ze7mHw::00kZloxIQ_Wj4eVaJxCrfQ",
237
+ method: "GET",
238
+ path: "/websets/v0/imports",
239
+ ...(0, import_codegen.routeInput)(input, __listImportsRouting, { "headers": { "Accept": "application/json" } })
240
+ });
241
+ }
242
+ var __createImportRouting = { "routes": [["count", "body"], ["csv", "body"], ["entity", "body"], ["format", "body"], ["metadata", "body"], ["size", "body"], ["title", "body"]], "requiredParts": ["body"] };
243
+ function createImport(input) {
244
+ return new import_codegen.Action({
245
+ systemId: "conn_mod_def::GLnP1Zl1Dxc::alVFUPN6SRmX4Zy1OQ8img",
246
+ method: "POST",
247
+ path: "/websets/v0/imports",
248
+ ...(0, import_codegen.routeInput)(input, __createImportRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
249
+ });
250
+ }
251
+ var __getImportRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
252
+ function getImport(input) {
253
+ return new import_codegen.Action({
254
+ systemId: "conn_mod_def::GLnP1Z8l7-U::oxXE12RIT32i6qE9CcVFoQ",
255
+ method: "GET",
256
+ path: "/websets/v0/imports/{{id}}",
257
+ ...(0, import_codegen.routeInput)(input, __getImportRouting, { "headers": { "Accept": "application/json" } })
258
+ });
259
+ }
260
+ var __searchRouting = { "routes": [["additionalQueries", "body"], ["category", "body"], ["compliance", "body"], ["contents", "body"], ["context", "body"], ["endCrawlDate", "body"], ["endPublishedDate", "body"], ["excludeDomains", "body"], ["includeDomains", "body"], ["moderation", "body"], ["numResults", "body"], ["outputSchema", "body"], ["query", "body"], ["startCrawlDate", "body"], ["startPublishedDate", "body"], ["stream", "body"], ["systemPrompt", "body"], ["type", "body"], ["userLocation", "body"]], "requiredParts": ["body"] };
261
+ function search(input) {
262
+ return new import_codegen.Action({
263
+ systemId: "conn_mod_def::GLnP1aajcpM::B9YzjETpQGWIsmbugYJXJQ",
264
+ method: "POST",
265
+ path: "/search",
266
+ ...(0, import_codegen.routeInput)(input, __searchRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
267
+ });
268
+ }
269
+ var __getWebsetItemRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
270
+ function getWebsetItem(input) {
271
+ return new import_codegen.Action({
272
+ systemId: "conn_mod_def::GLnP1hWVReU::D7rLq8SIQ-Kzu2Uspt9gAQ",
273
+ method: "GET",
274
+ path: "/websets/v0/websets/{{webset}}/items/{{id}}",
275
+ ...(0, import_codegen.routeInput)(input, __getWebsetItemRouting, { "headers": { "Accept": "application/json" } })
276
+ });
277
+ }
278
+ var __batchActionMonitorsRouting = { "routes": [["action", "body"], ["dry_run", "body"], ["filter", "body"], ["limit", "body"]], "requiredParts": ["body"] };
279
+ function batchActionMonitors(input) {
280
+ return new import_codegen.Action({
281
+ systemId: "conn_mod_def::GLnP1hgAxxI::T18x5LQfShuv_V6jjeoGow",
282
+ method: "POST",
283
+ path: "/monitors/batch",
284
+ ...(0, import_codegen.routeInput)(input, __batchActionMonitorsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
285
+ });
286
+ }
287
+ var __updateImportRouting = { "routes": [["metadata", "body"], ["title", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
288
+ function updateImport(input) {
289
+ return new import_codegen.Action({
290
+ systemId: "conn_mod_def::GLnP1hlkDtI::it_W_zMJQ3aPVgjzx26t8g",
291
+ method: "PATCH",
292
+ path: "/websets/v0/imports/{{id}}",
293
+ ...(0, import_codegen.routeInput)(input, __updateImportRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
294
+ });
295
+ }
296
+ var __deleteWebsetItemRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
297
+ function deleteWebsetItem(input) {
298
+ return new import_codegen.Action({
299
+ systemId: "conn_mod_def::GLnP1h02T90::CSFp3HZ7TgmAVM2LPXQdbg",
300
+ method: "DELETE",
301
+ path: "/websets/v0/websets/{{webset}}/items/{{id}}",
302
+ ...(0, import_codegen.routeInput)(input, __deleteWebsetItemRouting, { "headers": { "Accept": "application/json" } })
303
+ });
304
+ }
305
+ var __listAllItemsWebsetRouting = { "routes": [["webset", "path"], ["cursor", "query"], ["limit", "query"], ["sourceId", "query"]], "requiredParts": ["path"] };
306
+ function listAllItemsWebset(input) {
307
+ return new import_codegen.Action({
308
+ systemId: "conn_mod_def::GLnP1ir2EXk::l371VNWbQnG3JZjeRREn9g",
309
+ method: "GET",
310
+ path: "/websets/v0/websets/{{webset}}/items",
311
+ ...(0, import_codegen.routeInput)(input, __listAllItemsWebsetRouting, { "headers": { "Accept": "application/json" } })
312
+ });
313
+ }
314
+ var __deleteMonitorRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
315
+ function deleteMonitor(input) {
316
+ return new import_codegen.Action({
317
+ systemId: "conn_mod_def::GLnP1n8Z5IY::_dagZjc4QXymL0xz9Z2iAQ",
318
+ method: "DELETE",
319
+ path: "/monitors/{{id}}",
320
+ ...(0, import_codegen.routeInput)(input, __deleteMonitorRouting, { "headers": { "Accept": "application/json" } })
321
+ });
322
+ }
323
+ var __createMonitorRouting = { "routes": [["behavior", "body"], ["cadence", "body"], ["metadata", "body"], ["websetId", "body"]], "requiredParts": ["body"] };
324
+ function createMonitor(input) {
325
+ return new import_codegen.Action({
326
+ systemId: "conn_mod_def::GLnP1ojhia8::JWuE7IHBT8GujLiIzQWyCQ",
327
+ method: "POST",
328
+ path: "/websets/v0/monitors",
329
+ ...(0, import_codegen.routeInput)(input, __createMonitorRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
330
+ });
331
+ }
332
+ var __getMonitorRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
333
+ function getMonitor(input) {
334
+ return new import_codegen.Action({
335
+ systemId: "conn_mod_def::GLnP1ol87qY::BE6wL1D9SlCm-GxdeBOtmQ",
336
+ method: "GET",
337
+ path: "/monitors/{{id}}",
338
+ ...(0, import_codegen.routeInput)(input, __getMonitorRouting, { "headers": { "Accept": "application/json" } })
339
+ });
340
+ }
341
+ var __createMonitor2Routing = { "routes": [["metadata", "body"], ["name", "body"], ["outputSchema", "body"], ["search", "body"], ["trigger", "body"], ["webhook", "body"]], "requiredParts": ["body"] };
342
+ function createMonitor2(input) {
343
+ return new import_codegen.Action({
344
+ systemId: "conn_mod_def::GLnP1o26Hso::gNs6IKgiQmqKlI5LYsfdhw",
345
+ method: "POST",
346
+ path: "/monitors",
347
+ ...(0, import_codegen.routeInput)(input, __createMonitor2Routing, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
348
+ });
349
+ }
350
+ var __deleteMonitor2Routing = { "routes": [["id", "path"]], "requiredParts": ["path"] };
351
+ function deleteMonitor2(input) {
352
+ return new import_codegen.Action({
353
+ systemId: "conn_mod_def::GLnP1pMjZ9E::5OFP8LxfQD-Izt74ZuYrZg",
354
+ method: "DELETE",
355
+ path: "/websets/v0/monitors/{{id}}",
356
+ ...(0, import_codegen.routeInput)(input, __deleteMonitor2Routing, { "headers": { "Accept": "application/json" } })
357
+ });
358
+ }
359
+ var __triggerMonitorRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
360
+ function triggerMonitor(input) {
361
+ return new import_codegen.Action({
362
+ systemId: "conn_mod_def::GLnP1u6EfG0::ENFViho5RjCv0ipsRfqmog",
363
+ method: "POST",
364
+ path: "/monitors/{{id}}/trigger",
365
+ ...(0, import_codegen.routeInput)(input, __triggerMonitorRouting, { "headers": { "Accept": "application/json" } })
366
+ });
367
+ }
368
+ var __getMonitor2Routing = { "routes": [["id", "path"]], "requiredParts": ["path"] };
369
+ function getMonitor2(input) {
370
+ return new import_codegen.Action({
371
+ systemId: "conn_mod_def::GLnP1vFKpio::lMVix-qBQ0G4ZPJvDZA63w",
372
+ method: "GET",
373
+ path: "/websets/v0/monitors/{{id}}",
374
+ ...(0, import_codegen.routeInput)(input, __getMonitor2Routing, { "headers": { "Accept": "application/json" } })
375
+ });
376
+ }
377
+ var __listMonitorsRouting = { "routes": [["cursor", "query"], ["limit", "query"], ["websetId", "query"]], "requiredParts": [] };
378
+ function listMonitors(input) {
379
+ return new import_codegen.Action({
380
+ systemId: "conn_mod_def::GLnP1vNbCsU::8xnN0iGlSt-uzsBS0PjoPg",
381
+ method: "GET",
382
+ path: "/websets/v0/monitors",
383
+ ...(0, import_codegen.routeInput)(input, __listMonitorsRouting, { "headers": { "Accept": "application/json" } })
384
+ });
385
+ }
386
+ var __updateMonitorRouting = { "routes": [["metadata", "body"], ["name", "body"], ["outputSchema", "body"], ["search", "body"], ["status", "body"], ["trigger", "body"], ["webhook", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
387
+ function updateMonitor(input) {
388
+ return new import_codegen.Action({
389
+ systemId: "conn_mod_def::GLnP1vVAQc8::iI3h_YjuRY6OBg9mBnI9aw",
390
+ method: "PATCH",
391
+ path: "/monitors/{{id}}",
392
+ ...(0, import_codegen.routeInput)(input, __updateMonitorRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
393
+ });
394
+ }
395
+ var __listMonitors2Routing = { "routes": [["cursor", "query"], ["limit", "query"], ["metadata[key]", "query"], ["name", "query"], ["status", "query"]], "requiredParts": [] };
396
+ function listMonitors2(input) {
397
+ return new import_codegen.Action({
398
+ systemId: "conn_mod_def::GLnP1v0wbpg::0LT8DJSGRny5OvjeMV2Y1A",
399
+ method: "GET",
400
+ path: "/monitors",
401
+ ...(0, import_codegen.routeInput)(input, __listMonitors2Routing, { "headers": { "Accept": "application/json" } })
402
+ });
403
+ }
404
+ var __updateMonitor2Routing = { "routes": [["behavior", "body"], ["cadence", "body"], ["metadata", "body"], ["status", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
405
+ function updateMonitor2(input) {
406
+ return new import_codegen.Action({
407
+ systemId: "conn_mod_def::GLnP13YxBmU::X3S9SWgdSpOxFkoJ6OsI-A",
408
+ method: "PATCH",
409
+ path: "/websets/v0/monitors/{{id}}",
410
+ ...(0, import_codegen.routeInput)(input, __updateMonitor2Routing, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
411
+ });
412
+ }
413
+ var __listMonitorRunsMonitorRouting = { "routes": [["monitor", "path"]], "requiredParts": ["path"] };
414
+ function listMonitorRunsMonitor(input) {
415
+ return new import_codegen.Action({
416
+ systemId: "conn_mod_def::GLnP14ZarR0::KTMmiiaSQ4WtFuYjvU6cpA",
417
+ method: "GET",
418
+ path: "/websets/v0/monitors/{{monitor}}/runs",
419
+ ...(0, import_codegen.routeInput)(input, __listMonitorRunsMonitorRouting, { "headers": { "Accept": "application/json" } })
420
+ });
421
+ }
422
+ var __getMonitorRunRouting = { "routes": [["id", "path"], ["monitor", "path"]], "requiredParts": ["path"] };
423
+ function getMonitorRun(input) {
424
+ return new import_codegen.Action({
425
+ systemId: "conn_mod_def::GLnP2HLDUAs::ncuw1EExRZuoloWbCPIHkQ",
426
+ method: "GET",
427
+ path: "/websets/v0/monitors/{{monitor}}/runs/{{id}}",
428
+ ...(0, import_codegen.routeInput)(input, __getMonitorRunRouting, { "headers": { "Accept": "application/json" } })
429
+ });
430
+ }
431
+ var __cancelWebsetSearchRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
432
+ function cancelWebsetSearch(input) {
433
+ return new import_codegen.Action({
434
+ systemId: "conn_mod_def::GLnP2OKDHSk::0VPelgzyTZmtoavZz9Ux7g",
435
+ method: "POST",
436
+ path: "/websets/v0/websets/{{webset}}/searches/{{id}}/cancel",
437
+ ...(0, import_codegen.routeInput)(input, __cancelWebsetSearchRouting, { "headers": { "Accept": "application/json" } })
438
+ });
439
+ }
440
+ var __createWebsetSearchRouting = { "routes": [["behavior", "body"], ["count", "body"], ["criteria", "body"], ["entity", "body"], ["exclude", "body"], ["maxPeoplePerCompany", "body"], ["metadata", "body"], ["query", "body"], ["recall", "body"], ["scope", "body"], ["webset", "path"]], "requiredParts": ["body", "path"] };
441
+ function createWebsetSearch(input) {
442
+ return new import_codegen.Action({
443
+ systemId: "conn_mod_def::GLnP2OmQlnk::xWRMlxuMTfe1Z2XLYfoDjg",
444
+ method: "POST",
445
+ path: "/websets/v0/websets/{{webset}}/searches",
446
+ ...(0, import_codegen.routeInput)(input, __createWebsetSearchRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
447
+ });
448
+ }
449
+ var __getMonitorRun2Routing = { "routes": [["id", "path"], ["runId", "path"]], "requiredParts": ["path"] };
450
+ function getMonitorRun2(input) {
451
+ return new import_codegen.Action({
452
+ systemId: "conn_mod_def::GLnP2O4fGoQ::8E1BHk6yT1e4oLiVjtvDoQ",
453
+ method: "GET",
454
+ path: "/monitors/{{id}}/runs/{{runId}}",
455
+ ...(0, import_codegen.routeInput)(input, __getMonitorRun2Routing, { "headers": { "Accept": "application/json" } })
456
+ });
457
+ }
458
+ var __listMonitorsRunsRouting = { "routes": [["id", "path"], ["cursor", "query"], ["limit", "query"]], "requiredParts": ["path"] };
459
+ function listMonitorsRuns(input) {
460
+ return new import_codegen.Action({
461
+ systemId: "conn_mod_def::GLnP3CJzKLo::nbYKoop-RUad-yxP2npcKA",
462
+ method: "GET",
463
+ path: "/monitors/{{id}}/runs",
464
+ ...(0, import_codegen.routeInput)(input, __listMonitorsRunsRouting, { "headers": { "Accept": "application/json" } })
465
+ });
466
+ }
467
+ var __getWebsetSearchIdRouting = { "routes": [["id", "path"], ["webset", "path"]], "requiredParts": ["path"] };
468
+ function getWebsetSearchId(input) {
469
+ return new import_codegen.Action({
470
+ systemId: "conn_mod_def::GLnP3KQQPqg::dY30H_1_QrW-Z2MgHcnCZA",
471
+ method: "GET",
472
+ path: "/websets/v0/websets/{{webset}}/searches/{{id}}",
473
+ ...(0, import_codegen.routeInput)(input, __getWebsetSearchIdRouting, { "headers": { "Accept": "application/json" } })
474
+ });
475
+ }
476
+ var __createWebhookRouting = { "routes": [["events", "body"], ["metadata", "body"], ["url", "body"]], "requiredParts": ["body"] };
477
+ function createWebhook(input) {
478
+ return new import_codegen.Action({
479
+ systemId: "conn_mod_def::GLnP3d4721U::fnUetBLjQ62d9ahBHquczQ",
480
+ method: "POST",
481
+ path: "/websets/v0/webhooks",
482
+ ...(0, import_codegen.routeInput)(input, __createWebhookRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
483
+ });
484
+ }
485
+ var __deleteWebhookRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
486
+ function deleteWebhook(input) {
487
+ return new import_codegen.Action({
488
+ systemId: "conn_mod_def::GLnP3gUnpx0::PPKRC3-tT3C32aJYfhG9Xw",
489
+ method: "DELETE",
490
+ path: "/websets/v0/webhooks/{{id}}",
491
+ ...(0, import_codegen.routeInput)(input, __deleteWebhookRouting, { "headers": { "Accept": "application/json" } })
492
+ });
493
+ }
494
+ var __getTeamInfoRouting = { "routes": [], "requiredParts": [] };
495
+ function getTeamInfo(input) {
496
+ return new import_codegen.Action({
497
+ systemId: "conn_mod_def::GLnP3i_kitE::7Okn3iieRniq-_Du7NjiOg",
498
+ method: "GET",
499
+ path: "/websets/v0/teams/me",
500
+ ...(0, import_codegen.routeInput)(input, __getTeamInfoRouting, { "headers": { "Accept": "application/json" } })
501
+ });
502
+ }
503
+ var __updateWebhookRouting = { "routes": [["events", "body"], ["metadata", "body"], ["url", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
504
+ function updateWebhook(input) {
505
+ return new import_codegen.Action({
506
+ systemId: "conn_mod_def::GLnP3pchO2M::ph_EwDIFQDK0bkMx2G2nzQ",
507
+ method: "PATCH",
508
+ path: "/websets/v0/webhooks/{{id}}",
509
+ ...(0, import_codegen.routeInput)(input, __updateWebhookRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
510
+ });
511
+ }
512
+ var __getWebhookRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
513
+ function getWebhook(input) {
514
+ return new import_codegen.Action({
515
+ systemId: "conn_mod_def::GLnP3ptGPTc::eMDm5IcVQa6h1P1a5cK0mQ",
516
+ method: "GET",
517
+ path: "/websets/v0/webhooks/{{id}}",
518
+ ...(0, import_codegen.routeInput)(input, __getWebhookRouting, { "headers": { "Accept": "application/json" } })
519
+ });
520
+ }
521
+ var __listWebhooksRouting = { "routes": [["cursor", "query"], ["limit", "query"]], "requiredParts": [] };
522
+ function listWebhooks(input) {
523
+ return new import_codegen.Action({
524
+ systemId: "conn_mod_def::GLnP3qQRU5Y::MYHFyTG5Ti2zn1K7k8ybtA",
525
+ method: "GET",
526
+ path: "/websets/v0/webhooks",
527
+ ...(0, import_codegen.routeInput)(input, __listWebhooksRouting, { "headers": { "Accept": "application/json" } })
528
+ });
529
+ }
530
+ var __cancelWebsetRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
531
+ function cancelWebset(input) {
532
+ return new import_codegen.Action({
533
+ systemId: "conn_mod_def::GLnP3tBe-dw::GlGhhY1yQiy1Drs3YifMDQ",
534
+ method: "POST",
535
+ path: "/websets/v0/websets/{{id}}/cancel",
536
+ ...(0, import_codegen.routeInput)(input, __cancelWebsetRouting, { "headers": { "Accept": "application/json" } })
537
+ });
538
+ }
539
+ var __listWebhookAttemptsWebhookRouting = { "routes": [["id", "path"], ["cursor", "query"], ["eventType", "query"], ["limit", "query"], ["successful", "query"]], "requiredParts": ["path"] };
540
+ function listWebhookAttemptsWebhook(input) {
541
+ return new import_codegen.Action({
542
+ systemId: "conn_mod_def::GLnP34U7BTg::IbkYFX3EREKmcqiaqJYNRA",
543
+ method: "GET",
544
+ path: "/websets/v0/webhooks/{{id}}/attempts",
545
+ ...(0, import_codegen.routeInput)(input, __listWebhookAttemptsWebhookRouting, { "headers": { "Accept": "application/json" } })
546
+ });
547
+ }
548
+ var __updateWebsetRouting = { "routes": [["metadata", "body"], ["title", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
549
+ function updateWebset(input) {
550
+ return new import_codegen.Action({
551
+ systemId: "conn_mod_def::GLnP3-zl3uk::EZhnpC2aRIm3kepbhtcD_w",
552
+ method: "POST",
553
+ path: "/websets/v0/websets/{{id}}",
554
+ ...(0, import_codegen.routeInput)(input, __updateWebsetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
555
+ });
556
+ }
557
+ var __createWebsetRouting = { "routes": [["enrichments", "body"], ["exclude", "body"], ["externalId", "body"], ["import", "body"], ["metadata", "body"], ["search", "body"], ["title", "body"]], "requiredParts": ["body"] };
558
+ function createWebset(input) {
559
+ return new import_codegen.Action({
560
+ systemId: "conn_mod_def::GLnP3_DQW_4::5ZNc91ZbS5WaIH4F6f3CFQ",
561
+ method: "POST",
562
+ path: "/websets/v0/websets",
563
+ ...(0, import_codegen.routeInput)(input, __createWebsetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
564
+ });
565
+ }
566
+ var __listWebsetsRouting = { "routes": [["cursor", "query"], ["limit", "query"], ["search", "query"]], "requiredParts": [] };
567
+ function listWebsets(input) {
568
+ return new import_codegen.Action({
569
+ systemId: "conn_mod_def::GLnP3_Neh5Q::2Kj-r2l7TNm2is-NTvSEAw",
570
+ method: "GET",
571
+ path: "/websets/v0/websets",
572
+ ...(0, import_codegen.routeInput)(input, __listWebsetsRouting, { "headers": { "Accept": "application/json" } })
573
+ });
574
+ }
575
+ var __getWebsetRouting = { "routes": [["id", "path"], ["expand", "query"]], "requiredParts": ["path"] };
576
+ function getWebset(input) {
577
+ return new import_codegen.Action({
578
+ systemId: "conn_mod_def::GLnP3_ylDog::9gJRU45TTguUobKrTkvMLA",
579
+ method: "GET",
580
+ path: "/websets/v0/websets/{{id}}",
581
+ ...(0, import_codegen.routeInput)(input, __getWebsetRouting, { "headers": { "Accept": "application/json" } })
582
+ });
583
+ }
584
+ var __deleteWebsetRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
585
+ function deleteWebset(input) {
586
+ return new import_codegen.Action({
587
+ systemId: "conn_mod_def::GLnP4K7EjyM::0-FE7cPzQveC_Q4TCBTneg",
588
+ method: "DELETE",
589
+ path: "/websets/v0/websets/{{id}}",
590
+ ...(0, import_codegen.routeInput)(input, __deleteWebsetRouting, { "headers": { "Accept": "application/json" } })
591
+ });
592
+ }
593
+ var __previewWebsetRouting = { "routes": [["search", "body"]], "requiredParts": ["body"] };
594
+ function previewWebset(input) {
595
+ return new import_codegen.Action({
596
+ systemId: "conn_mod_def::GLnP4Ro7w3Q::tfjc6wyLQ72nP4-_FYvAgA",
597
+ method: "POST",
598
+ path: "/websets/v0/websets/preview",
599
+ ...(0, import_codegen.routeInput)(input, __previewWebsetRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
600
+ });
601
+ }
602
+ var __createBatchRouting = { "routes": [["metadata", "body"], ["requests", "body"]], "requiredParts": ["body"] };
603
+ function createBatch(input) {
604
+ return new import_codegen.Action({
605
+ systemId: "conn_mod_def::GOUVDZxE9jA::kKXELezrRFeAR08uGYVzVA",
606
+ method: "POST",
607
+ path: "/batches",
608
+ ...(0, import_codegen.routeInput)(input, __createBatchRouting, { "headers": { "Content-Type": "application/json", "Exa-Beta": "batches-2026-06-06" } })
609
+ });
610
+ }
611
+ var __stopAgentRunRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
612
+ function stopAgentRun(input) {
613
+ return new import_codegen.Action({
614
+ systemId: "conn_mod_def::GOUVDZ0aBSg::PXiTfvDgQ0CvosyUo6wDzg",
615
+ method: "POST",
616
+ path: "/agent/runs/{{id}}/stop",
617
+ ...(0, import_codegen.routeInput)(input, __stopAgentRunRouting)
618
+ });
619
+ }
620
+ var __cancelBatchRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
621
+ function cancelBatch(input) {
622
+ return new import_codegen.Action({
623
+ systemId: "conn_mod_def::GOUVDadWVfA::yeKvv2lATEWriPlf29tA7A",
624
+ method: "POST",
625
+ path: "/batches/{{id}}/cancel",
626
+ ...(0, import_codegen.routeInput)(input, __cancelBatchRouting, { "headers": { "Exa-Beta": "batches-2026-06-06" } })
627
+ });
628
+ }
629
+ var __getBatchRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
630
+ function getBatch(input) {
631
+ return new import_codegen.Action({
632
+ systemId: "conn_mod_def::GOUVDa18GMA::NqBo1tBzQL62WdIcBgFnyg",
633
+ method: "GET",
634
+ path: "/batches/{{id}}",
635
+ ...(0, import_codegen.routeInput)(input, __getBatchRouting, { "headers": { "Exa-Beta": "batches-2026-06-06" } })
636
+ });
637
+ }
638
+ var __listBatchesRouting = { "routes": [["cursor", "query"], ["limit", "query"], ["status", "query"]], "requiredParts": [] };
639
+ function listBatches(input) {
640
+ return new import_codegen.Action({
641
+ systemId: "conn_mod_def::GOUVDjzSjgA::APQsS5HuSbWYpL8Q5Xf4ZA",
642
+ method: "GET",
643
+ path: "/batches",
644
+ ...(0, import_codegen.routeInput)(input, __listBatchesRouting, { "headers": { "Exa-Beta": "batches-2026-06-06" } })
645
+ });
646
+ }
647
+ var __deleteBatchRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
648
+ function deleteBatch(input) {
649
+ return new import_codegen.Action({
650
+ systemId: "conn_mod_def::GOUVDatFdig::92Q3zDp9TLeSh8vFYivK4A",
651
+ method: "DELETE",
652
+ path: "/batches/{{id}}",
653
+ ...(0, import_codegen.routeInput)(input, __deleteBatchRouting, { "headers": { "Exa-Beta": "batches-2026-06-06" } })
654
+ });
655
+ }
656
+ // Annotate the CommonJS export names for ESM import in node:
657
+ 0 && (module.exports = {
658
+ answer,
659
+ batchActionMonitors,
660
+ cancelAgentRun,
661
+ cancelBatch,
662
+ cancelWebset,
663
+ cancelWebsetEnrichment,
664
+ cancelWebsetSearch,
665
+ createAgentRuns,
666
+ createBatch,
667
+ createEnrichmentWebset,
668
+ createImport,
669
+ createMonitor,
670
+ createMonitor2,
671
+ createWebhook,
672
+ createWebset,
673
+ createWebsetSearch,
674
+ deleteAgentRun,
675
+ deleteBatch,
676
+ deleteImport,
677
+ deleteMonitor,
678
+ deleteMonitor2,
679
+ deleteWebhook,
680
+ deleteWebset,
681
+ deleteWebsetEnrichment,
682
+ deleteWebsetItem,
683
+ getBatch,
684
+ getContents,
685
+ getEvent,
686
+ getImport,
687
+ getMonitor,
688
+ getMonitor2,
689
+ getMonitorRun,
690
+ getMonitorRun2,
691
+ getRunUsingAgentRuns,
692
+ getTeamInfo,
693
+ getWebhook,
694
+ getWebset,
695
+ getWebsetEnrichment,
696
+ getWebsetItem,
697
+ getWebsetSearchId,
698
+ listAgentRuns,
699
+ listAgentRunsEvents,
700
+ listAllItemsWebset,
701
+ listBatches,
702
+ listEvents,
703
+ listImports,
704
+ listMonitorRunsMonitor,
705
+ listMonitors,
706
+ listMonitors2,
707
+ listMonitorsRuns,
708
+ listWebhookAttemptsWebhook,
709
+ listWebhooks,
710
+ listWebsets,
711
+ previewWebset,
712
+ search,
713
+ stopAgentRun,
714
+ triggerMonitor,
715
+ updateEnrichmentWebset,
716
+ updateImport,
717
+ updateMonitor,
718
+ updateMonitor2,
719
+ updateWebhook,
720
+ updateWebset
721
+ });