@activepieces/piece-exa 0.0.1

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-exa
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-exa` to build the library.
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@activepieces/piece-exa",
3
+ "version": "0.0.1",
4
+ "dependencies": {
5
+ "@anthropic-ai/sdk": "0.39.0",
6
+ "@sinclair/typebox": "0.34.11",
7
+ "axios": "1.8.3",
8
+ "axios-retry": "4.4.1",
9
+ "deepmerge-ts": "7.1.0",
10
+ "fast-glob": "3.3.3",
11
+ "mime-types": "2.1.35",
12
+ "nanoid": "3.3.8",
13
+ "openai": "4.67.1",
14
+ "replicate": "0.34.1",
15
+ "semver": "7.6.0",
16
+ "zod": "3.24.4",
17
+ "@activepieces/pieces-common": "0.4.6",
18
+ "@activepieces/pieces-framework": "0.10.5",
19
+ "@activepieces/shared": "0.11.5",
20
+ "tslib": "1.14.1"
21
+ },
22
+ "overrides": {
23
+ "@tryfabric/martian": {
24
+ "@notionhq/client": "$@notionhq/client"
25
+ },
26
+ "vite": {
27
+ "rollup": "npm:@rollup/wasm-node"
28
+ }
29
+ },
30
+ "resolutions": {
31
+ "rollup": "npm:@rollup/wasm-node"
32
+ },
33
+ "main": "./src/index.js",
34
+ "type": "commonjs",
35
+ "types": "./src/index.d.ts"
36
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const exaAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
2
+ export declare const exa: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
package/src/index.js ADDED
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.exa = exports.exaAuth = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const shared_1 = require("@activepieces/shared");
7
+ const get_contents_1 = require("./lib/actions/get-contents");
8
+ const generate_answer_1 = require("./lib/actions/generate-answer");
9
+ const perform_search_1 = require("./lib/actions/perform-search");
10
+ const find_similar_links_1 = require("./lib/actions/find-similar-links");
11
+ const pieces_common_1 = require("@activepieces/pieces-common");
12
+ const common_1 = require("./lib/common");
13
+ const markdownDescription = `Obtain your API key from [Dashboard Setting](https://dashboard.exa.ai/api-keys).`;
14
+ exports.exaAuth = pieces_framework_1.PieceAuth.SecretText({
15
+ displayName: 'API Key',
16
+ description: markdownDescription,
17
+ required: true,
18
+ validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
19
+ try {
20
+ yield (0, common_1.makeRequest)(auth, pieces_common_1.HttpMethod.POST, '/search', { query: 'Activepieces' });
21
+ return {
22
+ valid: true
23
+ };
24
+ }
25
+ catch (e) {
26
+ return {
27
+ valid: false,
28
+ error: 'Invalid API Key.'
29
+ };
30
+ }
31
+ })
32
+ });
33
+ exports.exa = (0, pieces_framework_1.createPiece)({
34
+ displayName: 'Exa',
35
+ description: 'AI-powered search and content extraction from the web.',
36
+ auth: exports.exaAuth,
37
+ minimumSupportedRelease: '0.36.1',
38
+ logoUrl: 'https://cdn.activepieces.com/pieces/exa.png',
39
+ categories: [shared_1.PieceCategory.ARTIFICIAL_INTELLIGENCE, shared_1.PieceCategory.PRODUCTIVITY],
40
+ authors: ['krushnarout', 'kishanprmr'],
41
+ actions: [
42
+ get_contents_1.getContentsAction,
43
+ generate_answer_1.generateAnswerAction,
44
+ perform_search_1.performSearchAction,
45
+ find_similar_links_1.findSimilarLinksAction,
46
+ (0, pieces_common_1.createCustomApiCallAction)({
47
+ auth: exports.exaAuth,
48
+ baseUrl: () => 'https://api.exa.ai',
49
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
50
+ return ({
51
+ 'x-api-key': `${auth}`,
52
+ });
53
+ }),
54
+ })
55
+ ],
56
+ triggers: [],
57
+ });
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/exa/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,iDAAqD;AACrD,6DAA+D;AAC/D,mEAAqE;AACrE,iEAAmE;AACnE,yEAA0E;AAC1E,+DAAoF;AACpF,yCAA2C;AAE3C,MAAM,mBAAmB,GAAG,kFAAkF,CAAC;AAElG,QAAA,OAAO,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC1C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,mBAAmB;IAChC,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAC,KAAc,EAAE,oDAAT,EAAC,IAAI,EAAC;QACpB,IACA,CAAC;YACC,MAAM,IAAA,oBAAW,EAAC,IAAI,EAAC,0BAAU,CAAC,IAAI,EACpC,SAAS,EAAC,EAAC,KAAK,EAAC,cAAc,EAAC,CACjC,CAAA;YAED,OAAM;gBACJ,KAAK,EAAC,IAAI;aACX,CAAA;QAEH,CAAC;QAAA,OAAM,CAAC,EACR,CAAC;YACC,OAAM;gBACJ,KAAK,EAAC,KAAK;gBACX,KAAK,EAAC,kBAAkB;aACzB,CAAA;QACH,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC;AAEU,QAAA,GAAG,GAAG,IAAA,8BAAW,EAAC;IAC7B,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,wDAAwD;IACrE,IAAI,EAAE,eAAO;IACb,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,6CAA6C;IACtD,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,EAAC,sBAAa,CAAC,YAAY,CAAC;IAC9E,OAAO,EAAE,CAAC,aAAa,EAAC,YAAY,CAAC;IACrC,OAAO,EAAE;QACP,gCAAiB;QACjB,sCAAoB;QACpB,oCAAmB;QACnB,2CAAsB;QACtB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAC,eAAO;YACX,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB;YACpC,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,WAAW,EAAE,GAAG,IAAI,EAAE;iBACvB,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const findSimilarLinksAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ numResults: import("@activepieces/pieces-framework").NumberProperty<false>;
4
+ includeDomains: import("@activepieces/pieces-framework").ArrayProperty<false>;
5
+ excludeDomains: import("@activepieces/pieces-framework").ArrayProperty<false>;
6
+ startCrawlDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
7
+ endCrawlDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
8
+ startPublishedDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
9
+ endPublishedDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
+ includeText: import("@activepieces/pieces-framework").ArrayProperty<false>;
11
+ excludeText: import("@activepieces/pieces-framework").ArrayProperty<false>;
12
+ }>;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findSimilarLinksAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const common_1 = require("../common");
8
+ const index_1 = require("../../index");
9
+ exports.findSimilarLinksAction = (0, pieces_framework_1.createAction)({
10
+ name: 'find_similar_links',
11
+ displayName: 'Find Similar Links',
12
+ description: 'Find pages similar to a given URL.',
13
+ auth: index_1.exaAuth,
14
+ props: {
15
+ url: pieces_framework_1.Property.ShortText({
16
+ displayName: 'URL',
17
+ description: 'Reference URL to find semantically similar links.',
18
+ required: true,
19
+ }),
20
+ numResults: pieces_framework_1.Property.Number({
21
+ displayName: 'Number of Results',
22
+ description: 'Number of results to return (max 100).',
23
+ required: false,
24
+ }),
25
+ includeDomains: pieces_framework_1.Property.Array({
26
+ displayName: 'Include Domains',
27
+ description: 'List of domains to include in results.',
28
+ required: false,
29
+ }),
30
+ excludeDomains: pieces_framework_1.Property.Array({
31
+ displayName: 'Exclude Domains',
32
+ description: 'List of domains to exclude from results.',
33
+ required: false,
34
+ }),
35
+ startCrawlDate: pieces_framework_1.Property.DateTime({
36
+ displayName: 'Start Crawl Date (ISO)',
37
+ description: 'Include links crawled after this date (ISO format).',
38
+ required: false,
39
+ }),
40
+ endCrawlDate: pieces_framework_1.Property.DateTime({
41
+ displayName: 'End Crawl Date (ISO)',
42
+ description: 'Include links crawled before this date (ISO format).',
43
+ required: false,
44
+ }),
45
+ startPublishedDate: pieces_framework_1.Property.DateTime({
46
+ displayName: 'Start Published Date (ISO)',
47
+ description: 'Only include links published after this date (ISO format).',
48
+ required: false,
49
+ }),
50
+ endPublishedDate: pieces_framework_1.Property.DateTime({
51
+ displayName: 'End Published Date (ISO)',
52
+ description: 'Only include links published before this date (ISO format).',
53
+ required: false,
54
+ }),
55
+ includeText: pieces_framework_1.Property.Array({
56
+ displayName: 'Include Text',
57
+ description: 'Strings that must be present in the webpage text (max 1 string of up to 5 words).',
58
+ required: false,
59
+ }),
60
+ excludeText: pieces_framework_1.Property.Array({
61
+ displayName: 'Exclude Text',
62
+ description: 'Strings that must not be present in the webpage text (max 1 string of up to 5 words).',
63
+ required: false,
64
+ }),
65
+ },
66
+ run(context) {
67
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
68
+ const apiKey = context.auth;
69
+ const { url, numResults, includeDomains, excludeDomains, startCrawlDate, endCrawlDate, startPublishedDate, endPublishedDate, includeText, excludeText, } = context.propsValue;
70
+ const body = {
71
+ url,
72
+ };
73
+ if (numResults !== undefined)
74
+ body['numResults'] = numResults;
75
+ if (includeDomains)
76
+ body['includeDomains'] = includeDomains;
77
+ if (excludeDomains)
78
+ body['excludeDomains'] = excludeDomains;
79
+ if (startCrawlDate)
80
+ body['startCrawlDate'] = startCrawlDate;
81
+ if (endCrawlDate)
82
+ body['endCrawlDate'] = endCrawlDate;
83
+ if (startPublishedDate)
84
+ body['startPublishedDate'] = startPublishedDate;
85
+ if (endPublishedDate)
86
+ body['endPublishedDate'] = endPublishedDate;
87
+ if (includeText)
88
+ body['includeText'] = includeText;
89
+ if (excludeText)
90
+ body['excludeText'] = excludeText;
91
+ const response = yield (0, common_1.makeRequest)(apiKey, pieces_common_1.HttpMethod.POST, '/findSimilar', body);
92
+ return response.results;
93
+ });
94
+ },
95
+ });
96
+ //# sourceMappingURL=find-similar-links.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-similar-links.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/exa/src/lib/actions/find-similar-links.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAwC;AACxC,uCAAsC;AAEzB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,oCAAoC;IACjD,IAAI,EAAE,eAAO;IACb,KAAK,EAAE;QACL,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC7B,WAAW,EAAE,iBAAi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AG,OAAO,CAAC,UAAU,CAAC;YAEvB,MAAM,IAAI,GAA4B;gBACpC,GAAG;aACJ,CAAC;YAEF,IAAI,UAAU,KAAK,SAAS;gBAAE,IAAI,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;YAC9D,IAAI,cAAc;gBAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAC;YAC5D,IAAI,cAAc;gBAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAC;YAC5D,IAAI,cAAc;gBAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAC;YAC5D,IAAI,YAAY;gBAAE,IAAI,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC;YACtD,IAAI,kBAAkB;gBAAE,IAAI,CAAC,oBAAoB,CAAC,GAAG,kBAAkB,CAAC;YACxE,IAAI,gBAAgB;gBAAE,IAAI,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC;YAClE,IAAI,WAAW;gBAAE,IAAI,CAAC,aAAa,CAAC,GAAG,WAAW,CAAC;YACnD,IAAI,WAAW;gBAAE,IAAI,CAAC,aAAa,CAAC,GAAG,WAAW,CAAC;YAEnD,MAAM,QAAQ,GAAI,MAAM,IAAA,oBAAW,EAAC,MAAM,EAAE,0BAAU,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAoC,CAAC;YACtH,OAAO,QAAQ,CAAC,OAAO,CAAC;QAC1B,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const generateAnswerAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ query: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ text: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
+ model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
+ }>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateAnswerAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const common_1 = require("../common");
8
+ const index_1 = require("../../index");
9
+ exports.generateAnswerAction = (0, pieces_framework_1.createAction)({
10
+ name: 'generate_answer',
11
+ displayName: 'Ask AI',
12
+ description: 'Provides direct answers to queries by summarizing results.',
13
+ auth: index_1.exaAuth,
14
+ props: {
15
+ query: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Query',
17
+ description: 'Ask a question to get summarized answers from the web.',
18
+ required: true,
19
+ }),
20
+ text: pieces_framework_1.Property.Checkbox({
21
+ displayName: 'Include Text Content',
22
+ description: 'If true, includes full text content from the search results',
23
+ required: false,
24
+ defaultValue: false,
25
+ }),
26
+ model: pieces_framework_1.Property.StaticDropdown({
27
+ displayName: 'Model',
28
+ description: 'Choose the Exa model to use for the answer.',
29
+ required: true,
30
+ options: {
31
+ options: [
32
+ { label: 'Exa', value: 'exa' },
33
+ { label: 'Exa Pro', value: 'exa-pro' },
34
+ ],
35
+ },
36
+ defaultValue: 'exa',
37
+ }),
38
+ },
39
+ run(context) {
40
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
41
+ const apiKey = context.auth;
42
+ const { query, text, model, } = context.propsValue;
43
+ const body = {
44
+ query,
45
+ text,
46
+ model
47
+ };
48
+ const response = yield (0, common_1.makeRequest)(apiKey, pieces_common_1.HttpMethod.POST, '/answer', body);
49
+ return response.answer;
50
+ });
51
+ },
52
+ });
53
+ //# sourceMappingURL=generate-answer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-answer.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/exa/src/lib/actions/generate-answer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAwC;AACxC,uCAAsC;AAEzB,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE,eAAO;IACb,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,sBAAsB;YACnC,WAAW,EAAE,6DAA6D;YAC1E,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC7B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oBAC9B,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,OAAO,CAAC,IAAc,CAAC;YAEtC,MAAM,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,GACN,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvB,MAAM,IAAI,GAA4B;gBACpC,KAAK;gBACL,IAAI;gBACJ,KAAK;aACN,CAAC;YAGF,MAAM,QAAQ,GAAI,MAAM,IAAA,oBAAW,EAAC,MAAM,EAAE,0BAAU,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;YAE9E,OAAO,QAAQ,CAAC,MAAM,CAAC;QACzB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const getContentsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ urls: import("@activepieces/pieces-framework").ArrayProperty<true>;
3
+ text: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
+ livecrawl: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
5
+ livecrawlTimeout: import("@activepieces/pieces-framework").NumberProperty<false>;
6
+ subpages: import("@activepieces/pieces-framework").NumberProperty<false>;
7
+ subpageTarget: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ }>;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getContentsAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const common_1 = require("../common");
8
+ const index_1 = require("../../index");
9
+ exports.getContentsAction = (0, pieces_framework_1.createAction)({
10
+ name: 'get_contents',
11
+ displayName: 'Get Contents',
12
+ description: 'Retrieve clean HTML content from specified URLs.',
13
+ auth: index_1.exaAuth,
14
+ props: {
15
+ urls: pieces_framework_1.Property.Array({
16
+ displayName: 'URLs',
17
+ required: true,
18
+ description: 'Array of URLs to crawl',
19
+ }),
20
+ text: pieces_framework_1.Property.Checkbox({
21
+ displayName: 'Return Full Text',
22
+ description: 'If true, returns full page text. If false, disables text return.',
23
+ required: false,
24
+ defaultValue: true,
25
+ }),
26
+ livecrawl: pieces_framework_1.Property.StaticDropdown({
27
+ displayName: 'Livecrawl Option',
28
+ description: 'Options for livecrawling pages.',
29
+ required: false,
30
+ options: {
31
+ options: [
32
+ { label: 'Never', value: 'never' },
33
+ { label: 'Fallback', value: 'fallback' },
34
+ { label: 'Always', value: 'always' },
35
+ { label: 'Auto', value: 'auto' },
36
+ ],
37
+ },
38
+ }),
39
+ livecrawlTimeout: pieces_framework_1.Property.Number({
40
+ displayName: 'Livecrawl Timeout (ms)',
41
+ description: 'Timeout for livecrawling in milliseconds.',
42
+ required: false,
43
+ }),
44
+ subpages: pieces_framework_1.Property.Number({
45
+ displayName: 'Number of Subpages',
46
+ description: 'Number of subpages to crawl.',
47
+ required: false,
48
+ }),
49
+ subpageTarget: pieces_framework_1.Property.ShortText({
50
+ displayName: 'Subpage Target',
51
+ description: 'Keyword(s) to find specific subpages.',
52
+ required: false,
53
+ }),
54
+ },
55
+ run(context) {
56
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
57
+ const apiKey = context.auth;
58
+ const body = {
59
+ urls: context.propsValue.urls,
60
+ };
61
+ if (context.propsValue.text !== undefined)
62
+ body['text'] = context.propsValue.text;
63
+ if (context.propsValue.livecrawl)
64
+ body['livecrawl'] = context.propsValue.livecrawl;
65
+ if (context.propsValue.livecrawlTimeout !== undefined)
66
+ body['livecrawlTimeout'] = context.propsValue.livecrawlTimeout;
67
+ if (context.propsValue.subpages !== undefined)
68
+ body['subpages'] = context.propsValue.subpages;
69
+ if (context.propsValue.subpageTarget)
70
+ body['subpageTarget'] = context.propsValue.subpageTarget;
71
+ const response = yield (0, common_1.makeRequest)(apiKey, pieces_common_1.HttpMethod.POST, '/contents', body);
72
+ return response.results;
73
+ });
74
+ },
75
+ });
76
+ //# sourceMappingURL=get-contents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-contents.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/exa/src/lib/actions/get-contents.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAwC;AACxC,uCAAsC;AAEzB,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,eAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACnB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wBAAwB;SACtC,CAAC;QACF,IAAI,EAAE,2B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OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YAClF,IAAI,OAAO,CAAC,UAAU,CAAC,SAAS;gBAAE,IAAI,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;YACnF,IAAI,OAAO,CAAC,UAAU,CAAC,gBAAgB,KAAK,SAAS;gBAAE,IAAI,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;YACtH,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,KAAK,SAAS;gBAAE,IAAI,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC9F,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa;gBAAE,IAAI,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;YAG/F,MAAM,QAAQ,GAAI,MAAM,IAAA,oBAAW,EAAC,MAAM,EAAE,0BAAU,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAmC,CAAC;YAClH,OAAO,QAAQ,CAAC,OAAO,CAAC;QAC1B,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const performSearchAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ query: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
4
+ category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
5
+ numResults: import("@activepieces/pieces-framework").NumberProperty<false>;
6
+ includeDomains: import("@activepieces/pieces-framework").ArrayProperty<false>;
7
+ excludeDomains: import("@activepieces/pieces-framework").ArrayProperty<false>;
8
+ startCrawlDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
9
+ endCrawlDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
+ startPublishedDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
11
+ endPublishedDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
12
+ includeText: import("@activepieces/pieces-framework").ArrayProperty<false>;
13
+ excludeText: import("@activepieces/pieces-framework").ArrayProperty<false>;
14
+ }>;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.performSearchAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const common_1 = require("../common");
8
+ const index_1 = require("../../index");
9
+ exports.performSearchAction = (0, pieces_framework_1.createAction)({
10
+ name: 'perform_search',
11
+ displayName: 'Perform Search',
12
+ description: "Search the web using semantic or keyword-based search.",
13
+ auth: index_1.exaAuth,
14
+ props: {
15
+ query: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Query',
17
+ description: 'Search query to find related articles and data.',
18
+ required: true,
19
+ }),
20
+ type: pieces_framework_1.Property.StaticDropdown({
21
+ displayName: 'Search Type',
22
+ description: 'Type of search to perform.',
23
+ required: false,
24
+ defaultValue: 'auto',
25
+ options: {
26
+ options: [
27
+ { label: 'Auto', value: 'auto' },
28
+ { label: 'Keyword', value: 'keyword' },
29
+ { label: 'Neural', value: 'neural' },
30
+ ],
31
+ },
32
+ }),
33
+ category: pieces_framework_1.Property.StaticDropdown({
34
+ displayName: 'Category',
35
+ description: 'Category of data to focus the search on.',
36
+ required: false,
37
+ options: {
38
+ options: [
39
+ { label: 'Company', value: 'company' },
40
+ { label: 'Research Paper', value: 'research paper' },
41
+ { label: 'News', value: 'news' },
42
+ { label: 'PDF', value: 'pdf' },
43
+ { label: 'GitHub', value: 'github' },
44
+ { label: 'Tweet', value: 'tweet' },
45
+ { label: 'Personal Site', value: 'personal site' },
46
+ { label: 'LinkedIn Profile', value: 'linkedin profile' },
47
+ { label: 'Financial Report', value: 'financial report' },
48
+ ],
49
+ },
50
+ }),
51
+ numResults: pieces_framework_1.Property.Number({
52
+ displayName: 'Number of Results',
53
+ description: 'Number of results to return (max 100).',
54
+ required: false,
55
+ defaultValue: 10,
56
+ }),
57
+ includeDomains: pieces_framework_1.Property.Array({
58
+ displayName: 'Include Domains',
59
+ description: 'Limit results to only these domains.',
60
+ required: false,
61
+ }),
62
+ excludeDomains: pieces_framework_1.Property.Array({
63
+ displayName: 'Exclude Domains',
64
+ description: 'Exclude results from these domains.',
65
+ required: false,
66
+ }),
67
+ startCrawlDate: pieces_framework_1.Property.DateTime({
68
+ displayName: 'Start Crawl Date',
69
+ description: 'Only include results crawled after this ISO date.',
70
+ required: false,
71
+ }),
72
+ endCrawlDate: pieces_framework_1.Property.DateTime({
73
+ displayName: 'End Crawl Date',
74
+ description: 'Only include results crawled before this ISO date.',
75
+ required: false,
76
+ }),
77
+ startPublishedDate: pieces_framework_1.Property.DateTime({
78
+ displayName: 'Start Published Date',
79
+ description: 'Only include results published after this ISO date.',
80
+ required: false,
81
+ }),
82
+ endPublishedDate: pieces_framework_1.Property.DateTime({
83
+ displayName: 'End Published Date',
84
+ description: 'Only include results published before this ISO date.',
85
+ required: false,
86
+ }),
87
+ includeText: pieces_framework_1.Property.Array({
88
+ displayName: 'Include Text',
89
+ description: 'Strings that must be present in the text of results.',
90
+ required: false,
91
+ }),
92
+ excludeText: pieces_framework_1.Property.Array({
93
+ displayName: 'Exclude Text',
94
+ description: 'Strings that must not be present in the text of results.',
95
+ required: false,
96
+ }),
97
+ },
98
+ run(context) {
99
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
100
+ const apiKey = context.auth;
101
+ const body = {
102
+ query: context.propsValue.query,
103
+ contents: {
104
+ text: true
105
+ }
106
+ };
107
+ const optionalProps = [
108
+ 'type', 'category', 'numResults', 'includeDomains', 'excludeDomains',
109
+ 'startCrawlDate', 'endCrawlDate', 'startPublishedDate', 'endPublishedDate',
110
+ 'includeText', 'excludeText',
111
+ ];
112
+ for (const prop of optionalProps) {
113
+ const val = context.propsValue[prop];
114
+ if (val !== undefined && val !== null && val !== '') {
115
+ body[prop] = val;
116
+ }
117
+ }
118
+ const response = yield (0, common_1.makeRequest)(apiKey, pieces_common_1.HttpMethod.POST, '/search', body);
119
+ return response.results;
120
+ });
121
+ },
122
+ });
123
+ //# sourceMappingURL=perform-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perform-search.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/exa/src/lib/actions/perform-search.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAwC;AACxC,uCAAsC;AAEzB,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,wDAAwD;IACrE,IAAI,EAAE,eAAO;IACb,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,MAAM;YACpB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;iBACrC;aACF;SACF,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAChC,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,SAAS,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gBACnB,CAAC;YACH,CAAC;YAED,MAAM,QAAQ,GAAI,MAAM,IAAA,oBAAW,EAAC,MAAM,EAAE,0BAAU,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAmC,CAAC;YAChH,OAAO,QAAQ,CAAC,OAAO,CAAC;QAC1B,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { HttpMethod } from '@activepieces/pieces-common';
2
+ export declare const BASE_URL = "https://api.exa.ai";
3
+ export declare function makeRequest(auth: string, method: HttpMethod, path: string, body?: unknown): Promise<any>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BASE_URL = void 0;
4
+ exports.makeRequest = makeRequest;
5
+ const tslib_1 = require("tslib");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ exports.BASE_URL = 'https://api.exa.ai';
8
+ function makeRequest(auth, method, path, body) {
9
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
+ const response = yield pieces_common_1.httpClient.sendRequest({
11
+ method,
12
+ url: `${exports.BASE_URL}${path}`,
13
+ headers: {
14
+ 'x-api-key': `${auth}`,
15
+ 'Content-Type': 'application/json',
16
+ },
17
+ body,
18
+ });
19
+ return response.body;
20
+ });
21
+ }
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/exa/src/lib/common/index.ts"],"names":[],"mappings":";;;AAIA,kCAYC;;AAhBD,+DAAqE;AAExD,QAAA,QAAQ,GAAG,oBAAoB,CAAC;AAE7C,SAAsB,WAAW,CAAC,IAAY,EAAE,MAAkB,EAAE,IAAY,EAAE,IAAc;;QAC9F,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;YAC5C,MAAM;YACN,GAAG,EAAE,GAAG,gBAAQ,GAAG,IAAI,EAAE;YACzB,OAAO,EAAE;gBACP,WAAW,EAAE,GAAG,IAAI,EAAE;gBACtB,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CAAA"}