@keystrokehq/serpapi 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/dist/_official/index.d.mts +2 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/index.d.mts +3761 -0
- package/dist/index.mjs +2767 -0
- package/dist/integration-BA0FMUGB.mjs +17 -0
- package/dist/integration-DOZk0bd2.d.mts +29 -0
- package/package.json +63 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
|
|
3
|
+
|
|
4
|
+
//#region src/integration.ts
|
|
5
|
+
const serpApiAuthSchema = z.object({ SERPAPI_API_KEY: z.string().min(1) });
|
|
6
|
+
const serpApiOfficialIntegration = {
|
|
7
|
+
id: "serpapi",
|
|
8
|
+
name: "SerpApi",
|
|
9
|
+
description: "Search engine results from Google, Bing, Yahoo, YouTube, and 90+ other engines",
|
|
10
|
+
auth: serpApiAuthSchema,
|
|
11
|
+
proxy: { hosts: ["serpapi.com"] }
|
|
12
|
+
};
|
|
13
|
+
const serpApiBundle = defineOfficialIntegration(serpApiOfficialIntegration);
|
|
14
|
+
const serpApi = serpApiBundle.credentialSet;
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { serpApiBundle as n, serpApiOfficialIntegration as r, serpApi as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
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 serpApiOfficialIntegration: {
|
|
9
|
+
id: "serpapi";
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
auth: z.ZodObject<{
|
|
13
|
+
SERPAPI_API_KEY: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
proxy: {
|
|
16
|
+
hosts: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const serpApiBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"serpapi", z.ZodObject<{
|
|
20
|
+
SERPAPI_API_KEY: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
declare const serpApi: _keystrokehq_core0.CredentialSet<"serpapi", z.ZodObject<{
|
|
23
|
+
SERPAPI_API_KEY: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
25
|
+
SERPAPI_API_KEY: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>[] | undefined>;
|
|
27
|
+
type SerpApiCredentials = InferCredentialSetAuth<typeof serpApi>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { serpApiOfficialIntegration as i, serpApi as n, serpApiBundle as r, SerpApiCredentials as t };
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/serpapi",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.mts",
|
|
10
|
+
"default": "./dist/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"./_official": {
|
|
13
|
+
"types": "./dist/_official/index.d.mts",
|
|
14
|
+
"default": "./dist/_official/index.mjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsdown",
|
|
24
|
+
"typecheck": "tsgo --build",
|
|
25
|
+
"lint": "biome check .",
|
|
26
|
+
"lint:fix": "biome check --write .",
|
|
27
|
+
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
28
|
+
"test:int": "vitest run --passWithNoTests --project int",
|
|
29
|
+
"prepublishOnly": "pnpm build"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"serpapi": "^2.2.1",
|
|
33
|
+
"@keystrokehq/integration-authoring": "^0.0.1",
|
|
34
|
+
"@keystrokehq/core": "^0.0.5",
|
|
35
|
+
"zod": "^4.3.6"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "catalog:",
|
|
39
|
+
"tsdown": "catalog:",
|
|
40
|
+
"typescript": "catalog:",
|
|
41
|
+
"vitest": "catalog:",
|
|
42
|
+
"@keystrokehq/test-utils": "workspace:*",
|
|
43
|
+
"@keystrokehq/typescript-config": "workspace:*"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"serpapi",
|
|
47
|
+
"web-search",
|
|
48
|
+
"google",
|
|
49
|
+
"bing",
|
|
50
|
+
"keystroke",
|
|
51
|
+
"integration"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/keystrokehq/integrations",
|
|
56
|
+
"directory": "integrations/serpapi"
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public",
|
|
61
|
+
"registry": "https://registry.npmjs.org/"
|
|
62
|
+
}
|
|
63
|
+
}
|