@keystrokehq/exa 0.0.8 → 0.0.9

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-BtrS2Clu.mjs";
1
+ import { r as exaBundle } from "../integration-Ml2KWc_6.mjs";
2
2
  export { exaBundle };
@@ -1,3 +1,3 @@
1
- import { n as exaBundle } from "../integration-C7rqRVI5.mjs";
1
+ import { n as exaBundle } from "../integration-BBhYAh8z.mjs";
2
2
 
3
3
  export { exaBundle };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,8 @@
1
- import { n as exa, t as ExaCredentials } from "./integration-BtrS2Clu.mjs";
1
+ import { i as createOfficialOperationFactory, n as exa, t as ExaCredentials } from "./integration-Ml2KWc_6.mjs";
2
2
  import { z } from "zod";
3
3
  import Exa from "exa-js";
4
- import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
5
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
6
4
  import * as _keystrokehq_core0 from "@keystrokehq/core";
5
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
7
6
 
8
7
  //#region src/answer.d.ts
9
8
  declare const answer: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -29,7 +28,7 @@ declare const answer: _keystrokehq_core0.Operation<z.ZodObject<{
29
28
  }, z.core.$strip>>;
30
29
  requestId: z.ZodOptional<z.ZodString>;
31
30
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
31
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
33
32
  EXA_API_KEY: z.ZodString;
34
33
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
35
34
  EXA_API_KEY: z.ZodString;
@@ -57,7 +56,7 @@ declare const answerTool: _keystrokehq_core0.Operation<z.ZodObject<{
57
56
  }, z.core.$strip>>;
58
57
  requestId: z.ZodOptional<z.ZodString>;
59
58
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
59
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
61
60
  EXA_API_KEY: z.ZodString;
62
61
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
63
62
  EXA_API_KEY: z.ZodString;
@@ -119,7 +118,7 @@ declare const getContents: _keystrokehq_core0.Operation<z.ZodObject<{
119
118
  }, z.core.$strip>>;
120
119
  statuses: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
121
120
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
122
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
121
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
123
122
  EXA_API_KEY: z.ZodString;
124
123
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
125
124
  EXA_API_KEY: z.ZodString;
@@ -176,7 +175,7 @@ declare const getContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
176
175
  }, z.core.$strip>>;
177
176
  statuses: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
178
177
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
179
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
178
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
180
179
  EXA_API_KEY: z.ZodString;
181
180
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
182
181
  EXA_API_KEY: z.ZodString;
@@ -220,7 +219,7 @@ declare const findSimilar: _keystrokehq_core0.Operation<z.ZodObject<{
220
219
  searchType: z.ZodOptional<z.ZodString>;
221
220
  output: z.ZodOptional<z.ZodUnknown>;
222
221
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
223
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
222
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
224
223
  EXA_API_KEY: z.ZodString;
225
224
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
226
225
  EXA_API_KEY: z.ZodString;
@@ -259,7 +258,7 @@ declare const findSimilarTool: _keystrokehq_core0.Operation<z.ZodObject<{
259
258
  searchType: z.ZodOptional<z.ZodString>;
260
259
  output: z.ZodOptional<z.ZodUnknown>;
261
260
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
262
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
261
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
263
262
  EXA_API_KEY: z.ZodString;
264
263
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
265
264
  EXA_API_KEY: z.ZodString;
@@ -330,7 +329,7 @@ declare const findSimilarWithContents: _keystrokehq_core0.Operation<z.ZodObject<
330
329
  searchType: z.ZodOptional<z.ZodString>;
331
330
  output: z.ZodOptional<z.ZodUnknown>;
332
331
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
333
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
332
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
334
333
  EXA_API_KEY: z.ZodString;
335
334
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
336
335
  EXA_API_KEY: z.ZodString;
@@ -399,7 +398,7 @@ declare const findSimilarWithContentsTool: _keystrokehq_core0.Operation<z.ZodObj
399
398
  searchType: z.ZodOptional<z.ZodString>;
400
399
  output: z.ZodOptional<z.ZodUnknown>;
401
400
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
401
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
403
402
  EXA_API_KEY: z.ZodString;
404
403
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
405
404
  EXA_API_KEY: z.ZodString;
@@ -436,7 +435,7 @@ declare const createMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
436
435
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
436
  createdAt: z.ZodOptional<z.ZodString>;
438
437
  updatedAt: z.ZodOptional<z.ZodString>;
439
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
438
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
440
439
  EXA_API_KEY: z.ZodString;
441
440
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
442
441
  EXA_API_KEY: z.ZodString;
@@ -471,7 +470,7 @@ declare const createMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
471
470
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
471
  createdAt: z.ZodOptional<z.ZodString>;
473
472
  updatedAt: z.ZodOptional<z.ZodString>;
474
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
473
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
475
474
  EXA_API_KEY: z.ZodString;
476
475
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
477
476
  EXA_API_KEY: z.ZodString;
@@ -501,7 +500,7 @@ declare const listMonitors: _keystrokehq_core0.Operation<z.ZodObject<{
501
500
  }, z.core.$strip>>;
502
501
  hasMore: z.ZodOptional<z.ZodBoolean>;
503
502
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
503
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
505
504
  EXA_API_KEY: z.ZodString;
506
505
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
507
506
  EXA_API_KEY: z.ZodString;
@@ -531,7 +530,7 @@ declare const listMonitorsTool: _keystrokehq_core0.Operation<z.ZodObject<{
531
530
  }, z.core.$strip>>;
532
531
  hasMore: z.ZodOptional<z.ZodBoolean>;
533
532
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
533
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
535
534
  EXA_API_KEY: z.ZodString;
536
535
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
537
536
  EXA_API_KEY: z.ZodString;
@@ -551,7 +550,7 @@ declare const getMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
551
550
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
551
  createdAt: z.ZodOptional<z.ZodString>;
553
552
  updatedAt: z.ZodOptional<z.ZodString>;
554
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
553
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
555
554
  EXA_API_KEY: z.ZodString;
556
555
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
557
556
  EXA_API_KEY: z.ZodString;
@@ -571,7 +570,7 @@ declare const getMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
571
570
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
571
  createdAt: z.ZodOptional<z.ZodString>;
573
572
  updatedAt: z.ZodOptional<z.ZodString>;
574
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
573
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
575
574
  EXA_API_KEY: z.ZodString;
576
575
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
577
576
  EXA_API_KEY: z.ZodString;
@@ -607,7 +606,7 @@ declare const updateMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
607
606
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
607
  createdAt: z.ZodOptional<z.ZodString>;
609
608
  updatedAt: z.ZodOptional<z.ZodString>;
610
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
609
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
611
610
  EXA_API_KEY: z.ZodString;
612
611
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
613
612
  EXA_API_KEY: z.ZodString;
@@ -643,7 +642,7 @@ declare const updateMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
643
642
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
643
  createdAt: z.ZodOptional<z.ZodString>;
645
644
  updatedAt: z.ZodOptional<z.ZodString>;
646
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
645
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
647
646
  EXA_API_KEY: z.ZodString;
648
647
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
649
648
  EXA_API_KEY: z.ZodString;
@@ -663,7 +662,7 @@ declare const deleteMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
663
662
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
664
663
  createdAt: z.ZodOptional<z.ZodString>;
665
664
  updatedAt: z.ZodOptional<z.ZodString>;
666
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
665
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
667
666
  EXA_API_KEY: z.ZodString;
668
667
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
669
668
  EXA_API_KEY: z.ZodString;
@@ -683,7 +682,7 @@ declare const deleteMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
683
682
  nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
683
  createdAt: z.ZodOptional<z.ZodString>;
685
684
  updatedAt: z.ZodOptional<z.ZodString>;
686
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
685
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
687
686
  EXA_API_KEY: z.ZodString;
688
687
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
689
688
  EXA_API_KEY: z.ZodString;
@@ -692,7 +691,7 @@ declare const triggerMonitor: _keystrokehq_core0.Operation<z.ZodObject<{
692
691
  monitorId: z.ZodString;
693
692
  }, z.core.$strip>, z.ZodObject<{
694
693
  triggered: z.ZodBoolean;
695
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
694
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
696
695
  EXA_API_KEY: z.ZodString;
697
696
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
698
697
  EXA_API_KEY: z.ZodString;
@@ -701,7 +700,7 @@ declare const triggerMonitorTool: _keystrokehq_core0.Operation<z.ZodObject<{
701
700
  monitorId: z.ZodString;
702
701
  }, z.core.$strip>, z.ZodObject<{
703
702
  triggered: z.ZodBoolean;
704
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
703
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
705
704
  EXA_API_KEY: z.ZodString;
706
705
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
707
706
  EXA_API_KEY: z.ZodString;
@@ -725,7 +724,7 @@ declare const listMonitorRuns: _keystrokehq_core0.Operation<z.ZodObject<{
725
724
  }, z.core.$strip>>;
726
725
  hasMore: z.ZodOptional<z.ZodBoolean>;
727
726
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
728
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
727
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
729
728
  EXA_API_KEY: z.ZodString;
730
729
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
731
730
  EXA_API_KEY: z.ZodString;
@@ -749,7 +748,7 @@ declare const listMonitorRunsTool: _keystrokehq_core0.Operation<z.ZodObject<{
749
748
  }, z.core.$strip>>;
750
749
  hasMore: z.ZodOptional<z.ZodBoolean>;
751
750
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
752
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
751
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
753
752
  EXA_API_KEY: z.ZodString;
754
753
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
755
754
  EXA_API_KEY: z.ZodString;
@@ -768,7 +767,7 @@ declare const getMonitorRun: _keystrokehq_core0.Operation<z.ZodObject<{
768
767
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
769
768
  createdAt: z.ZodOptional<z.ZodString>;
770
769
  updatedAt: z.ZodOptional<z.ZodString>;
771
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
770
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
772
771
  EXA_API_KEY: z.ZodString;
773
772
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
774
773
  EXA_API_KEY: z.ZodString;
@@ -787,7 +786,7 @@ declare const getMonitorRunTool: _keystrokehq_core0.Operation<z.ZodObject<{
787
786
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
788
787
  createdAt: z.ZodOptional<z.ZodString>;
789
788
  updatedAt: z.ZodOptional<z.ZodString>;
790
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
789
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
791
790
  EXA_API_KEY: z.ZodString;
792
791
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
793
792
  EXA_API_KEY: z.ZodString;
@@ -1010,7 +1009,7 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
1010
1009
  searchType: z.ZodOptional<z.ZodString>;
1011
1010
  output: z.ZodOptional<z.ZodUnknown>;
1012
1011
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1013
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1012
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1014
1013
  EXA_API_KEY: z.ZodString;
1015
1014
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1016
1015
  EXA_API_KEY: z.ZodString;
@@ -1070,7 +1069,7 @@ declare const searchTool: _keystrokehq_core0.Operation<z.ZodObject<{
1070
1069
  searchType: z.ZodOptional<z.ZodString>;
1071
1070
  output: z.ZodOptional<z.ZodUnknown>;
1072
1071
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1073
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1072
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1074
1073
  EXA_API_KEY: z.ZodString;
1075
1074
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1076
1075
  EXA_API_KEY: z.ZodString;
@@ -1162,7 +1161,7 @@ declare const searchWithContents: _keystrokehq_core0.Operation<z.ZodObject<{
1162
1161
  searchType: z.ZodOptional<z.ZodString>;
1163
1162
  output: z.ZodOptional<z.ZodUnknown>;
1164
1163
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1165
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1164
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1166
1165
  EXA_API_KEY: z.ZodString;
1167
1166
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1168
1167
  EXA_API_KEY: z.ZodString;
@@ -1252,7 +1251,7 @@ declare const searchWithContentsTool: _keystrokehq_core0.Operation<z.ZodObject<{
1252
1251
  searchType: z.ZodOptional<z.ZodString>;
1253
1252
  output: z.ZodOptional<z.ZodUnknown>;
1254
1253
  costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1255
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
1254
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"exa", z.ZodObject<{
1256
1255
  EXA_API_KEY: z.ZodString;
1257
1256
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
1258
1257
  EXA_API_KEY: z.ZodString;
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import { t as exa } from "./integration-C7rqRVI5.mjs";
1
+ import { r as createOfficialOperationFactory, t as exa } from "./integration-BBhYAh8z.mjs";
2
2
  import { z } from "zod";
3
3
  import Exa from "exa-js";
4
- import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
5
4
 
6
5
  //#region src/client.ts
7
6
  function createExaClient(credentials) {
@@ -0,0 +1,107 @@
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 };
@@ -0,0 +1,28 @@
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/exa",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -20,7 +20,6 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "dependencies": {
23
- "@keystrokehq/integration-authoring": "^0.0.8",
24
23
  "exa-js": "^2.11.0",
25
24
  "zod": "^4.3.6"
26
25
  },
@@ -32,9 +31,10 @@
32
31
  "tsdown": "^0.20.3",
33
32
  "typescript": "^5.9.3",
34
33
  "vitest": "^4.0.18",
35
- "@keystrokehq/core": "^0.0.8",
36
- "@keystrokehq/test-utils": "0.0.0",
37
- "@keystrokehq/typescript-config": "0.0.0"
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"
38
38
  },
39
39
  "keywords": [
40
40
  "exa",
@@ -1,18 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
- import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
- import * as _keystrokehq_core0 from "@keystrokehq/core";
6
-
7
- //#region src/integration.d.ts
8
- declare const exaBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"exa", z.ZodObject<{
9
- EXA_API_KEY: z.ZodString;
10
- }, z.core.$strip>>;
11
- declare const exa: _keystrokehq_core0.CredentialSet<"keystroke:exa", z.ZodObject<{
12
- EXA_API_KEY: z.ZodString;
13
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
14
- EXA_API_KEY: z.ZodString;
15
- }, z.core.$strip>>[] | undefined>;
16
- type ExaCredentials = InferCredentialSetAuth<typeof exa>;
17
- //#endregion
18
- export { exa as n, exaBundle as r, ExaCredentials as t };
@@ -1,17 +0,0 @@
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
- auth: exaAuthSchema,
11
- proxy: { hosts: ["api.exa.ai"] }
12
- };
13
- const exaBundle = defineOfficialIntegration(exaOfficialIntegration);
14
- const exa = exaBundle.credentialSet;
15
-
16
- //#endregion
17
- export { exaBundle as n, exa as t };