@keystrokehq/exa 0.0.9 → 0.0.15

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.
@@ -1,2 +1,2 @@
1
- import { r as exaBundle } from "../integration-Ml2KWc_6.mjs";
1
+ import { r as exaBundle } from "../integration-Db0MsFXx.mjs";
2
2
  export { exaBundle };
@@ -1,3 +1,3 @@
1
- import { n as exaBundle } from "../integration-BBhYAh8z.mjs";
1
+ import { n as exaBundle } from "../integration-ByaB4Am0.mjs";
2
2
 
3
3
  export { exaBundle };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { i as createOfficialOperationFactory, n as exa, t as ExaCredentials } from "./integration-Ml2KWc_6.mjs";
1
+ import { n as exa, t as ExaCredentials } from "./integration-Db0MsFXx.mjs";
2
2
  import { z } from "zod";
3
3
  import Exa from "exa-js";
4
+ import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
4
5
  import * as _keystrokehq_core0 from "@keystrokehq/core";
5
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
6
6
 
7
7
  //#region src/answer.d.ts
8
8
  declare const answer: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -28,11 +28,9 @@ declare const answer: _keystrokehq_core0.Operation<z.ZodObject<{
28
28
  }, z.core.$strip>>;
29
29
  requestId: z.ZodOptional<z.ZodString>;
30
30
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
31
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
32
32
  EXA_API_KEY: z.ZodString;
33
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
34
- EXA_API_KEY: z.ZodString;
35
- }, z.core.$strip>>[] | undefined>], undefined>;
33
+ }, z.core.$strip>>], undefined>;
36
34
  declare const answerTool: _keystrokehq_core0.Operation<z.ZodObject<{
37
35
  query: z.ZodString;
38
36
  text: z.ZodOptional<z.ZodBoolean>;
@@ -56,11 +54,9 @@ declare const answerTool: _keystrokehq_core0.Operation<z.ZodObject<{
56
54
  }, z.core.$strip>>;
57
55
  requestId: z.ZodOptional<z.ZodString>;
58
56
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
60
- EXA_API_KEY: z.ZodString;
61
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
57
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
62
58
  EXA_API_KEY: z.ZodString;
63
- }, z.core.$strip>>[] | undefined>], undefined>;
59
+ }, z.core.$strip>>], undefined>;
64
60
  //#endregion
65
61
  //#region src/client.d.ts
66
62
  declare function createExaClient(credentials: ExaCredentials): Exa;
@@ -118,11 +114,9 @@ declare const getContents: _keystrokehq_core0.Operation<z.ZodObject<{
118
114
  }, z.core.$strip>>;
119
115
  statuses: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
120
116
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
121
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
117
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
122
118
  EXA_API_KEY: z.ZodString;
123
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
124
- EXA_API_KEY: z.ZodString;
125
- }, z.core.$strip>>[] | undefined>], undefined>;
119
+ }, z.core.$strip>>], undefined>;
126
120
  declare const getContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
127
121
  urls: z.ZodArray<z.ZodString>;
128
122
  text: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
@@ -175,11 +169,9 @@ declare const getContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
175
169
  }, z.core.$strip>>;
176
170
  statuses: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
177
171
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
179
- EXA_API_KEY: z.ZodString;
180
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
172
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
181
173
  EXA_API_KEY: z.ZodString;
182
- }, z.core.$strip>>[] | undefined>], undefined>;
174
+ }, z.core.$strip>>], undefined>;
183
175
  //#endregion
184
176
  //#region src/factory.d.ts
185
177
  declare const exaOperation: ReturnType<typeof createOfficialOperationFactory<typeof exa>>;
@@ -219,11 +211,9 @@ declare const findSimilar: _keystrokehq_core0.Operation<z.ZodObject<{
219
211
  searchType: z.ZodOptional<z.ZodString>;
220
212
  output: z.ZodOptional<z.ZodUnknown>;
221
213
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
222
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
214
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
223
215
  EXA_API_KEY: z.ZodString;
224
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
225
- EXA_API_KEY: z.ZodString;
226
- }, z.core.$strip>>[] | undefined>], undefined>;
216
+ }, z.core.$strip>>], undefined>;
227
217
  declare const findSimilarTool: _keystrokehq_core0.Operation<z.ZodObject<{
228
218
  url: z.ZodString;
229
219
  excludeSourceDomain: z.ZodOptional<z.ZodBoolean>;
@@ -258,11 +248,9 @@ declare const findSimilarTool: _keystrokehq_core0.Operation<z.ZodObject<{
258
248
  searchType: z.ZodOptional<z.ZodString>;
259
249
  output: z.ZodOptional<z.ZodUnknown>;
260
250
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
261
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
262
- EXA_API_KEY: z.ZodString;
263
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
251
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
264
252
  EXA_API_KEY: z.ZodString;
265
- }, z.core.$strip>>[] | undefined>], undefined>;
253
+ }, z.core.$strip>>], undefined>;
266
254
  //#endregion
267
255
  //#region src/find-similar-with-contents.d.ts
268
256
  declare const findSimilarWithContents: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -329,11 +317,9 @@ declare const findSimilarWithContents: _keystrokehq_core0.Operation<z.ZodObject<
329
317
  searchType: z.ZodOptional<z.ZodString>;
330
318
  output: z.ZodOptional<z.ZodUnknown>;
331
319
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
332
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
333
- EXA_API_KEY: z.ZodString;
334
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
320
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
335
321
  EXA_API_KEY: z.ZodString;
336
- }, z.core.$strip>>[] | undefined>], undefined>;
322
+ }, z.core.$strip>>], undefined>;
337
323
  declare const findSimilarWithContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
338
324
  url: z.ZodString;
339
325
  excludeSourceDomain: z.ZodOptional<z.ZodBoolean>;
@@ -398,11 +384,9 @@ declare const findSimilarWithContentsTool: _keystrokehq_core0.Operation<z.ZodObj
398
384
  searchType: z.ZodOptional<z.ZodString>;
399
385
  output: z.ZodOptional<z.ZodUnknown>;
400
386
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
401
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
387
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
402
388
  EXA_API_KEY: z.ZodString;
403
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
404
- EXA_API_KEY: z.ZodString;
405
- }, z.core.$strip>>[] | undefined>], undefined>;
389
+ }, z.core.$strip>>], undefined>;
406
390
  //#endregion
407
391
  //#region src/monitors.d.ts
408
392
  declare const createMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -435,11 +419,9 @@ declare const createMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
435
419
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
420
  createdAt: z.ZodOptional<z.ZodString>;
437
421
  updatedAt: z.ZodOptional<z.ZodString>;
438
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
439
- EXA_API_KEY: z.ZodString;
440
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
422
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
441
423
  EXA_API_KEY: z.ZodString;
442
- }, z.core.$strip>>[] | undefined>], undefined>;
424
+ }, z.core.$strip>>], undefined>;
443
425
  declare const createMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
444
426
  name: z.ZodOptional<z.ZodString>;
445
427
  search: z.ZodObject<{
@@ -470,11 +452,9 @@ declare const createMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
470
452
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
453
  createdAt: z.ZodOptional<z.ZodString>;
472
454
  updatedAt: z.ZodOptional<z.ZodString>;
473
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
455
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
474
456
  EXA_API_KEY: z.ZodString;
475
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
476
- EXA_API_KEY: z.ZodString;
477
- }, z.core.$strip>>[] | undefined>], undefined>;
457
+ }, z.core.$strip>>], undefined>;
478
458
  declare const listMonitors: _keystrokehq_core0.Operation<z.ZodObject<{
479
459
  status: z.ZodOptional<z.ZodEnum<{
480
460
  active: "active";
@@ -500,11 +480,9 @@ declare const listMonitors: _keystrokehq_core0.Operation<z.ZodObject<{
500
480
  }, z.core.$strip>>;
501
481
  hasMore: z.ZodOptional<z.ZodBoolean>;
502
482
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
504
- EXA_API_KEY: z.ZodString;
505
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
483
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
506
484
  EXA_API_KEY: z.ZodString;
507
- }, z.core.$strip>>[] | undefined>], undefined>;
485
+ }, z.core.$strip>>], undefined>;
508
486
  declare const listMonitorsTool: _keystrokehq_core0.Operation<z.ZodObject<{
509
487
  status: z.ZodOptional<z.ZodEnum<{
510
488
  active: "active";
@@ -530,11 +508,9 @@ declare const listMonitorsTool: _keystrokehq_core0.Operation<z.ZodObject<{
530
508
  }, z.core.$strip>>;
531
509
  hasMore: z.ZodOptional<z.ZodBoolean>;
532
510
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
511
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
534
512
  EXA_API_KEY: z.ZodString;
535
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
536
- EXA_API_KEY: z.ZodString;
537
- }, z.core.$strip>>[] | undefined>], undefined>;
513
+ }, z.core.$strip>>], undefined>;
538
514
  declare const getMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
539
515
  monitorId: z.ZodString;
540
516
  }, z.core.$strip>, z.ZodObject<{
@@ -550,11 +526,9 @@ declare const getMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
550
526
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
527
  createdAt: z.ZodOptional<z.ZodString>;
552
528
  updatedAt: z.ZodOptional<z.ZodString>;
553
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
554
- EXA_API_KEY: z.ZodString;
555
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
529
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
556
530
  EXA_API_KEY: z.ZodString;
557
- }, z.core.$strip>>[] | undefined>], undefined>;
531
+ }, z.core.$strip>>], undefined>;
558
532
  declare const getMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
559
533
  monitorId: z.ZodString;
560
534
  }, z.core.$strip>, z.ZodObject<{
@@ -570,11 +544,9 @@ declare const getMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
570
544
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
545
  createdAt: z.ZodOptional<z.ZodString>;
572
546
  updatedAt: z.ZodOptional<z.ZodString>;
573
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
574
- EXA_API_KEY: z.ZodString;
575
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
547
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
576
548
  EXA_API_KEY: z.ZodString;
577
- }, z.core.$strip>>[] | undefined>], undefined>;
549
+ }, z.core.$strip>>], undefined>;
578
550
  declare const updateMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
579
551
  monitorId: z.ZodString;
580
552
  name: z.ZodOptional<z.ZodString>;
@@ -606,11 +578,9 @@ declare const updateMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
606
578
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
579
  createdAt: z.ZodOptional<z.ZodString>;
608
580
  updatedAt: z.ZodOptional<z.ZodString>;
609
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
581
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
610
582
  EXA_API_KEY: z.ZodString;
611
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
612
- EXA_API_KEY: z.ZodString;
613
- }, z.core.$strip>>[] | undefined>], undefined>;
583
+ }, z.core.$strip>>], undefined>;
614
584
  declare const updateMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
615
585
  monitorId: z.ZodString;
616
586
  name: z.ZodOptional<z.ZodString>;
@@ -642,11 +612,9 @@ declare const updateMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
642
612
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
613
  createdAt: z.ZodOptional<z.ZodString>;
644
614
  updatedAt: z.ZodOptional<z.ZodString>;
645
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
646
- EXA_API_KEY: z.ZodString;
647
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
615
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
648
616
  EXA_API_KEY: z.ZodString;
649
- }, z.core.$strip>>[] | undefined>], undefined>;
617
+ }, z.core.$strip>>], undefined>;
650
618
  declare const deleteMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
651
619
  monitorId: z.ZodString;
652
620
  }, z.core.$strip>, z.ZodObject<{
@@ -662,11 +630,9 @@ declare const deleteMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
662
630
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
631
  createdAt: z.ZodOptional<z.ZodString>;
664
632
  updatedAt: z.ZodOptional<z.ZodString>;
665
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
633
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
666
634
  EXA_API_KEY: z.ZodString;
667
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
668
- EXA_API_KEY: z.ZodString;
669
- }, z.core.$strip>>[] | undefined>], undefined>;
635
+ }, z.core.$strip>>], undefined>;
670
636
  declare const deleteMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
671
637
  monitorId: z.ZodString;
672
638
  }, z.core.$strip>, z.ZodObject<{
@@ -682,29 +648,23 @@ declare const deleteMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
682
648
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
649
  createdAt: z.ZodOptional<z.ZodString>;
684
650
  updatedAt: z.ZodOptional<z.ZodString>;
685
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
686
- EXA_API_KEY: z.ZodString;
687
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
651
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
688
652
  EXA_API_KEY: z.ZodString;
689
- }, z.core.$strip>>[] | undefined>], undefined>;
653
+ }, z.core.$strip>>], undefined>;
690
654
  declare const triggerMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
691
655
  monitorId: z.ZodString;
692
656
  }, z.core.$strip>, z.ZodObject<{
693
657
  triggered: z.ZodBoolean;
694
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
658
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
695
659
  EXA_API_KEY: z.ZodString;
696
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
697
- EXA_API_KEY: z.ZodString;
698
- }, z.core.$strip>>[] | undefined>], undefined>;
660
+ }, z.core.$strip>>], undefined>;
699
661
  declare const triggerMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
700
662
  monitorId: z.ZodString;
701
663
  }, z.core.$strip>, z.ZodObject<{
702
664
  triggered: z.ZodBoolean;
703
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
704
- EXA_API_KEY: z.ZodString;
705
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
665
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
706
666
  EXA_API_KEY: z.ZodString;
707
- }, z.core.$strip>>[] | undefined>], undefined>;
667
+ }, z.core.$strip>>], undefined>;
708
668
  declare const listMonitorRuns: _keystrokehq_core0.Operation<z.ZodObject<{
709
669
  monitorId: z.ZodString;
710
670
  cursor: z.ZodOptional<z.ZodString>;
@@ -724,11 +684,9 @@ declare const listMonitorRuns: _keystrokehq_core0.Operation<z.ZodObject<{
724
684
  }, z.core.$strip>>;
725
685
  hasMore: z.ZodOptional<z.ZodBoolean>;
726
686
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
727
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
728
- EXA_API_KEY: z.ZodString;
729
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
687
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
730
688
  EXA_API_KEY: z.ZodString;
731
- }, z.core.$strip>>[] | undefined>], undefined>;
689
+ }, z.core.$strip>>], undefined>;
732
690
  declare const listMonitorRunsTool: _keystrokehq_core0.Operation<z.ZodObject<{
733
691
  monitorId: z.ZodString;
734
692
  cursor: z.ZodOptional<z.ZodString>;
@@ -748,11 +706,9 @@ declare const listMonitorRunsTool: _keystrokehq_core0.Operation<z.ZodObject<{
748
706
  }, z.core.$strip>>;
749
707
  hasMore: z.ZodOptional<z.ZodBoolean>;
750
708
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
709
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
752
710
  EXA_API_KEY: z.ZodString;
753
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
754
- EXA_API_KEY: z.ZodString;
755
- }, z.core.$strip>>[] | undefined>], undefined>;
711
+ }, z.core.$strip>>], undefined>;
756
712
  declare const getMonitorRun: _keystrokehq_core0.Operation<z.ZodObject<{
757
713
  monitorId: z.ZodString;
758
714
  runId: z.ZodString;
@@ -767,11 +723,9 @@ declare const getMonitorRun: _keystrokehq_core0.Operation<z.ZodObject<{
767
723
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
768
724
  createdAt: z.ZodOptional<z.ZodString>;
769
725
  updatedAt: z.ZodOptional<z.ZodString>;
770
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
771
- EXA_API_KEY: z.ZodString;
772
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
726
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
773
727
  EXA_API_KEY: z.ZodString;
774
- }, z.core.$strip>>[] | undefined>], undefined>;
728
+ }, z.core.$strip>>], undefined>;
775
729
  declare const getMonitorRunTool: _keystrokehq_core0.Operation<z.ZodObject<{
776
730
  monitorId: z.ZodString;
777
731
  runId: z.ZodString;
@@ -786,11 +740,9 @@ declare const getMonitorRunTool: _keystrokehq_core0.Operation<z.ZodObject<{
786
740
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
787
741
  createdAt: z.ZodOptional<z.ZodString>;
788
742
  updatedAt: z.ZodOptional<z.ZodString>;
789
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
743
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
790
744
  EXA_API_KEY: z.ZodString;
791
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
792
- EXA_API_KEY: z.ZodString;
793
- }, z.core.$strip>>[] | undefined>], undefined>;
745
+ }, z.core.$strip>>], undefined>;
794
746
  //#endregion
795
747
  //#region src/schemas.d.ts
796
748
  declare const exaSearchResultSchema: z.ZodObject<{
@@ -1009,11 +961,9 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
1009
961
  searchType: z.ZodOptional<z.ZodString>;
1010
962
  output: z.ZodOptional<z.ZodUnknown>;
1011
963
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1012
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1013
- EXA_API_KEY: z.ZodString;
1014
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
964
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1015
965
  EXA_API_KEY: z.ZodString;
1016
- }, z.core.$strip>>[] | undefined>], undefined>;
966
+ }, z.core.$strip>>], undefined>;
1017
967
  declare const searchTool: _keystrokehq_core0.Operation<z.ZodObject<{
1018
968
  query: z.ZodString;
1019
969
  type: z.ZodOptional<z.ZodEnum<{
@@ -1069,11 +1019,9 @@ declare const searchTool: _keystrokehq_core0.Operation<z.ZodObject<{
1069
1019
  searchType: z.ZodOptional<z.ZodString>;
1070
1020
  output: z.ZodOptional<z.ZodUnknown>;
1071
1021
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1072
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1022
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1073
1023
  EXA_API_KEY: z.ZodString;
1074
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1075
- EXA_API_KEY: z.ZodString;
1076
- }, z.core.$strip>>[] | undefined>], undefined>;
1024
+ }, z.core.$strip>>], undefined>;
1077
1025
  //#endregion
1078
1026
  //#region src/search-with-contents.d.ts
1079
1027
  declare const searchWithContents: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -1161,11 +1109,9 @@ declare const searchWithContents: _keystrokehq_core0.Operation<z.ZodObject<{
1161
1109
  searchType: z.ZodOptional<z.ZodString>;
1162
1110
  output: z.ZodOptional<z.ZodUnknown>;
1163
1111
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1164
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1165
- EXA_API_KEY: z.ZodString;
1166
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1112
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1167
1113
  EXA_API_KEY: z.ZodString;
1168
- }, z.core.$strip>>[] | undefined>], undefined>;
1114
+ }, z.core.$strip>>], undefined>;
1169
1115
  declare const searchWithContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
1170
1116
  query: z.ZodString;
1171
1117
  type: z.ZodOptional<z.ZodEnum<{
@@ -1251,10 +1197,8 @@ declare const searchWithContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
1251
1197
  searchType: z.ZodOptional<z.ZodString>;
1252
1198
  output: z.ZodOptional<z.ZodUnknown>;
1253
1199
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1254
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1255
- EXA_API_KEY: z.ZodString;
1256
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1200
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1257
1201
  EXA_API_KEY: z.ZodString;
1258
- }, z.core.$strip>>[] | undefined>], undefined>;
1202
+ }, z.core.$strip>>], undefined>;
1259
1203
  //#endregion
1260
1204
  export { type ExaAnswerCitation, type ExaAnswerResponse, type ExaContentsResponse, type ExaCost, type ExaCredentials, type ExaMonitor, type ExaMonitorListResponse, type ExaMonitorRun, type ExaMonitorRunListResponse, type ExaSearchResponse, type ExaSearchResult, type ExaTriggerMonitorResponse, answer, answerTool, createExaClient, createMonitor, createMonitorTool, deleteMonitor, deleteMonitorTool, exa, exaAnswerCitationSchema, exaAnswerResponseSchema, exaContentsResponseSchema, exaCostSchema, exaMonitorListResponseSchema, exaMonitorRunListResponseSchema, exaMonitorRunSchema, exaMonitorSchema, exaOperation, exaSearchResponseSchema, exaSearchResultSchema, exaTriggerMonitorResponseSchema, findSimilar, findSimilarTool, findSimilarWithContents, findSimilarWithContentsTool, getContents, getContentsTool, getMonitor, getMonitorRun, getMonitorRunTool, getMonitorTool, listMonitorRuns, listMonitorRunsTool, listMonitors, listMonitorsTool, search, searchTool, searchWithContents, searchWithContentsTool, triggerMonitor, triggerMonitorTool, updateMonitor, updateMonitorTool };
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { r as createOfficialOperationFactory, t as exa } from "./integration-BBhYAh8z.mjs";
1
+ import { t as exa } from "./integration-ByaB4Am0.mjs";
2
2
  import { z } from "zod";
3
3
  import Exa from "exa-js";
4
+ import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
4
5
 
5
6
  //#region src/client.ts
6
7
  function createExaClient(credentials) {
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
3
+
4
+ //#region src/integration.ts
5
+ const exaAuthSchema = z.object({ EXA_API_KEY: z.string().min(1) });
6
+ const exaOfficialIntegration = {
7
+ id: "exa",
8
+ name: "Exa",
9
+ description: "AI-native semantic web search, content extraction, and monitoring",
10
+ credentialType: "manual",
11
+ auth: exaAuthSchema,
12
+ proxy: { hosts: ["api.exa.ai"] }
13
+ };
14
+ const exaBundle = defineOfficialIntegration(exaOfficialIntegration);
15
+ const exa = exaBundle.credentialSet;
16
+
17
+ //#endregion
18
+ export { exaBundle as n, exa as t };
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
3
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/integration.d.ts
7
+ declare const exaBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"exa", z.ZodObject<{
8
+ EXA_API_KEY: z.ZodString;
9
+ }, z.core.$strip>>;
10
+ declare const exa: _keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
11
+ EXA_API_KEY: z.ZodString;
12
+ }, z.core.$strip>>;
13
+ type ExaCredentials = InferCredentialSetAuth<typeof exa>;
14
+ //#endregion
15
+ export { exa as n, exaBundle as r, ExaCredentials as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/exa",
3
- "version": "0.0.9",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -20,21 +20,21 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "dependencies": {
23
+ "@keystrokehq/integration-authoring": "^0.0.9",
23
24
  "exa-js": "^2.11.0",
24
25
  "zod": "^4.3.6"
25
26
  },
26
27
  "peerDependencies": {
27
- "@keystrokehq/core": ">=0.0.8 <0.1.0"
28
+ "@keystrokehq/core": ">=0.0.13 <0.1.0"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@types/node": "^22.19.11",
31
32
  "tsdown": "^0.20.3",
32
33
  "typescript": "^5.9.3",
33
34
  "vitest": "^4.0.18",
34
- "@keystrokehq/core": "^0.0.12",
35
- "@keystrokehq/typescript-config": "0.0.0",
36
- "@keystrokehq/integration-authoring": "0.0.9",
37
- "@keystrokehq/test-utils": "0.0.0"
35
+ "@keystrokehq/core": "^0.0.13",
36
+ "@keystrokehq/test-utils": "0.0.0",
37
+ "@keystrokehq/typescript-config": "0.0.0"
38
38
  },
39
39
  "keywords": [
40
40
  "exa",
@@ -1,107 +0,0 @@
1
- import { z } from "zod";
2
- import { CredentialSet, Operation } from "@keystrokehq/core";
3
-
4
- //#region ../../packages/integration-authoring/dist/official/runtime.mjs
5
- const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
6
- function getRegistry() {
7
- const globalStore = globalThis;
8
- if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
9
- return globalStore[REGISTRY_KEY];
10
- }
11
- function registerOfficialOperation(operation, metadata) {
12
- getRegistry().set(operation, Object.freeze({ ...metadata }));
13
- }
14
-
15
- //#endregion
16
- //#region ../../packages/integration-authoring/dist/official/index.mjs
17
- const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
18
- function stripOfficialCredentialSetIdPrefix(id) {
19
- return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
20
- }
21
- /**
22
- * Creates a factory for Keystroke-official integration operations.
23
- *
24
- * It keeps the same flat `run(input, credentials)` ergonomics as the generic
25
- * operation factory, while registering official metadata for builder/runtime
26
- * operation metadata.
27
- */
28
- function createOfficialOperationFactory(credentialSet) {
29
- const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
30
- return (config) => {
31
- const wrappedRun = async (input, ctx) => {
32
- const creds = ctx.credentials[credentialSet.id];
33
- return config.run(input, creds);
34
- };
35
- const operation = new Operation({
36
- id: config.id,
37
- name: config.name,
38
- description: config.description,
39
- input: config.input,
40
- output: config.output,
41
- credentialSets: [credentialSet],
42
- ...config.tags !== void 0 ? { tags: config.tags } : {},
43
- ...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
44
- ...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
45
- ...config.retries !== void 0 ? { retries: config.retries } : {},
46
- ...config.timeout !== void 0 ? { timeout: config.timeout } : {},
47
- ...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
48
- run: wrappedRun
49
- });
50
- registerOfficialOperation(operation, { integrationId });
51
- return operation;
52
- };
53
- }
54
- /**
55
- * Creates an official integration bundle from a single config object.
56
- *
57
- * - Creates the public `CredentialSet` internally.
58
- * - Accepts optional `internal` fields for Keystroke-owned platform credentials.
59
- */
60
- function defineOfficialIntegration(config) {
61
- const internalCredentialSets = config.internal ?? {};
62
- const allInternalCredentialSets = [
63
- ...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
64
- ...internalCredentialSets.providerAppVariants ?? [],
65
- ...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
66
- ...internalCredentialSets.other ?? []
67
- ];
68
- const credentialSet = new CredentialSet({
69
- id: config.id,
70
- name: config.name,
71
- description: config.description,
72
- auth: config.auth,
73
- ...config.connections ? { connections: config.connections } : {},
74
- ...config.proxy ? { proxy: config.proxy } : {},
75
- ...config.needsRawSecret === true ? { needsRawSecret: true } : {}
76
- });
77
- return Object.freeze({
78
- integration: {
79
- id: config.id,
80
- name: config.name,
81
- ...config.description !== void 0 ? { description: config.description } : {},
82
- auth: config.auth,
83
- ...config.proxy ? { proxy: config.proxy } : {},
84
- ...config.needsRawSecret === true ? { needsRawSecret: true } : {},
85
- ...config.connections ? { connections: config.connections } : {}
86
- },
87
- credentialSet,
88
- internalCredentialSets,
89
- allInternalCredentialSets
90
- });
91
- }
92
-
93
- //#endregion
94
- //#region src/integration.ts
95
- const exaAuthSchema = z.object({ EXA_API_KEY: z.string().min(1) });
96
- const exaOfficialIntegration = {
97
- id: "exa",
98
- name: "Exa",
99
- description: "AI-native semantic web search, content extraction, and monitoring",
100
- auth: exaAuthSchema,
101
- proxy: { hosts: ["api.exa.ai"] }
102
- };
103
- const exaBundle = defineOfficialIntegration(exaOfficialIntegration);
104
- const exa = exaBundle.credentialSet;
105
-
106
- //#endregion
107
- export { exaBundle as n, createOfficialOperationFactory as r, exa as t };
@@ -1,28 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import { CredentialSet, Operation } from "@keystrokehq/core";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
- import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
-
7
- //#region ../../packages/integration-authoring/dist/official/index.d.mts
8
- /**
9
- * Creates a factory for Keystroke-official integration operations.
10
- *
11
- * It keeps the same flat `run(input, credentials)` ergonomics as the generic
12
- * operation factory, while registering official metadata for builder/runtime
13
- * operation metadata.
14
- */
15
- declare function createOfficialOperationFactory(credentialSet: any): (config: any) => Operation<any, any, any[], undefined>;
16
- //#endregion
17
- //#region src/integration.d.ts
18
- declare const exaBundle: undefined<"exa", z.ZodObject<{
19
- EXA_API_KEY: z.ZodString;
20
- }, z.core.$strip>>;
21
- declare const exa: _keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
22
- EXA_API_KEY: z.ZodString;
23
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
24
- EXA_API_KEY: z.ZodString;
25
- }, z.core.$strip>>[] | undefined>;
26
- type ExaCredentials = InferCredentialSetAuth<typeof exa>;
27
- //#endregion
28
- export { createOfficialOperationFactory as i, exa as n, exaBundle as r, ExaCredentials as t };