@keystrokehq/parsehub 0.1.0 → 0.1.3
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-projects.cjs +12 -12
- package/dist/actions/get-projects.cjs.map +1 -1
- package/dist/actions/get-projects.d.cts +27 -3
- package/dist/actions/get-projects.d.cts.map +1 -1
- package/dist/actions/get-projects.d.mts +27 -3
- package/dist/actions/get-projects.d.mts.map +1 -1
- package/dist/actions/get-projects.mjs +12 -12
- package/dist/actions/get-projects.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["parsehub","executeParsehubTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parsehub } from \"./app\";\nimport { executeParsehubTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["parsehub","executeParsehubTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parsehub } from \"./app\";\nimport { executeParsehubTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return parsehub.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeParsehubTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parsehub } from \"./app\";\nimport { executeParsehubTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parsehub } from \"./app\";\nimport { executeParsehubTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return parsehub.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeParsehubTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -6,27 +6,27 @@ const ParsehubGetProjectsInput = zod.z.object({
|
|
|
6
6
|
offset: zod.z.number().int().describe("Index of the first project to return for pagination (0-based)").optional()
|
|
7
7
|
}).describe("Request parameters for listing projects");
|
|
8
8
|
const ParsehubGetProjects_LastRunSchema = zod.z.object({
|
|
9
|
-
data: zod.z.string().describe("URL to the JSON data of this run"),
|
|
10
|
-
status: zod.z.string().describe("Status of the project run"),
|
|
11
|
-
date_created: zod.z.string().describe("Timestamp when the run was created"),
|
|
9
|
+
data: zod.z.string().describe("URL to the JSON data of this run").nullable(),
|
|
10
|
+
status: zod.z.string().describe("Status of the project run").nullable(),
|
|
11
|
+
date_created: zod.z.string().describe("Timestamp when the run was created").nullable(),
|
|
12
12
|
date_updated: zod.z.string().describe("Timestamp when the run was last updated").nullable().optional()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const ParsehubGetProjects_TemplateModelSchema = zod.z.object({
|
|
15
|
-
name: zod.z.string().describe("Name of the template"),
|
|
16
|
-
template_token: zod.z.string().describe("Identifier of the template")
|
|
17
|
-
});
|
|
15
|
+
name: zod.z.string().describe("Name of the template").nullable(),
|
|
16
|
+
template_token: zod.z.string().describe("Identifier of the template").nullable()
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const ParsehubGetProjects_ProjectModelSchema = zod.z.object({
|
|
19
|
-
name: zod.z.string().describe("Name of the project"),
|
|
20
|
-
token: zod.z.string().describe("Unique identifier for the project"),
|
|
19
|
+
name: zod.z.string().describe("Name of the project").nullable(),
|
|
20
|
+
token: zod.z.string().describe("Unique identifier for the project").nullable(),
|
|
21
21
|
last_run: ParsehubGetProjects_LastRunSchema.nullable().optional(),
|
|
22
22
|
templates: zod.z.array(ParsehubGetProjects_TemplateModelSchema).describe("List of templates defined in the project").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const ParsehubGetProjectsOutput = zod.z.object({
|
|
25
25
|
limit: zod.z.number().int().describe("Limit value used in the request").nullable().optional(),
|
|
26
26
|
offset: zod.z.number().int().describe("Offset value used in the request").nullable().optional(),
|
|
27
27
|
projects: zod.z.array(ParsehubGetProjects_ProjectModelSchema).describe("List of projects accessible by the user"),
|
|
28
|
-
total_projects: zod.z.number().int().describe("Total number of projects for this account")
|
|
29
|
-
}).describe("Response schema for listing projects");
|
|
28
|
+
total_projects: zod.z.number().int().describe("Total number of projects for this account").nullable()
|
|
29
|
+
}).passthrough().describe("Response schema for listing projects");
|
|
30
30
|
const parsehubGetProjects = require_action.action("PARSEHUB_GET_PROJECTS", {
|
|
31
31
|
slug: "parsehub-get-projects",
|
|
32
32
|
name: "Get Projects",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-projects.cjs","names":["z","action"],"sources":["../../src/actions/get-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParsehubGetProjectsInput
|
|
1
|
+
{"version":3,"file":"get-projects.cjs","names":["z","action"],"sources":["../../src/actions/get-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParsehubGetProjectsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of projects to return\").optional(),\n offset: z.number().int().describe(\"Index of the first project to return for pagination (0-based)\").optional(),\n}).describe(\"Request parameters for listing projects\");\nconst ParsehubGetProjects_LastRunSchema = z.object({\n data: z.string().describe(\"URL to the JSON data of this run\").nullable(),\n status: z.string().describe(\"Status of the project run\").nullable(),\n date_created: z.string().describe(\"Timestamp when the run was created\").nullable(),\n date_updated: z.string().describe(\"Timestamp when the run was last updated\").nullable().optional(),\n}).passthrough();\nconst ParsehubGetProjects_TemplateModelSchema = z.object({\n name: z.string().describe(\"Name of the template\").nullable(),\n template_token: z.string().describe(\"Identifier of the template\").nullable(),\n}).passthrough();\nconst ParsehubGetProjects_ProjectModelSchema = z.object({\n name: z.string().describe(\"Name of the project\").nullable(),\n token: z.string().describe(\"Unique identifier for the project\").nullable(),\n last_run: ParsehubGetProjects_LastRunSchema.nullable().optional(),\n templates: z.array(ParsehubGetProjects_TemplateModelSchema).describe(\"List of templates defined in the project\").nullable().optional(),\n}).passthrough();\nexport const ParsehubGetProjectsOutput = z.object({\n limit: z.number().int().describe(\"Limit value used in the request\").nullable().optional(),\n offset: z.number().int().describe(\"Offset value used in the request\").nullable().optional(),\n projects: z.array(ParsehubGetProjects_ProjectModelSchema).describe(\"List of projects accessible by the user\"),\n total_projects: z.number().int().describe(\"Total number of projects for this account\").nullable(),\n}).passthrough().describe(\"Response schema for listing projects\");\n\nexport const parsehubGetProjects = action(\"PARSEHUB_GET_PROJECTS\", {\n slug: \"parsehub-get-projects\",\n name: \"Get Projects\",\n description: \"Tool to retrieve all projects for the authenticated user. Use after confirming account's API key.\",\n input: ParsehubGetProjectsInput,\n output: ParsehubGetProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,UAAU,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC;CAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-projects.d.ts
|
|
4
|
-
declare const ParsehubGetProjectsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParsehubGetProjectsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ParsehubGetProjectsOutput: z.ZodObject<{
|
|
9
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
token: z.ZodNullable<z.ZodString>;
|
|
14
|
+
last_run: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
data: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
date_created: z.ZodNullable<z.ZodString>;
|
|
18
|
+
date_updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
|
+
templates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
template_token: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
total_projects: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const parsehubGetProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
offset?: number | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { parsehubGetProjects };
|
|
9
33
|
//# sourceMappingURL=get-projects.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-projects.d.cts","names":[],"sources":["../../src/actions/get-projects.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-projects.d.cts","names":[],"sources":["../../src/actions/get-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-projects.d.ts
|
|
4
|
-
declare const ParsehubGetProjectsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParsehubGetProjectsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ParsehubGetProjectsOutput: z.ZodObject<{
|
|
9
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
token: z.ZodNullable<z.ZodString>;
|
|
14
|
+
last_run: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
data: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
date_created: z.ZodNullable<z.ZodString>;
|
|
18
|
+
date_updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
|
+
templates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
template_token: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
total_projects: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const parsehubGetProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
offset?: number | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { parsehubGetProjects };
|
|
9
33
|
//# sourceMappingURL=get-projects.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-projects.d.mts","names":[],"sources":["../../src/actions/get-projects.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-projects.d.mts","names":[],"sources":["../../src/actions/get-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -6,21 +6,21 @@ const ParsehubGetProjectsInput = z.object({
|
|
|
6
6
|
offset: z.number().int().describe("Index of the first project to return for pagination (0-based)").optional()
|
|
7
7
|
}).describe("Request parameters for listing projects");
|
|
8
8
|
const ParsehubGetProjects_LastRunSchema = z.object({
|
|
9
|
-
data: z.string().describe("URL to the JSON data of this run"),
|
|
10
|
-
status: z.string().describe("Status of the project run"),
|
|
11
|
-
date_created: z.string().describe("Timestamp when the run was created"),
|
|
9
|
+
data: z.string().describe("URL to the JSON data of this run").nullable(),
|
|
10
|
+
status: z.string().describe("Status of the project run").nullable(),
|
|
11
|
+
date_created: z.string().describe("Timestamp when the run was created").nullable(),
|
|
12
12
|
date_updated: z.string().describe("Timestamp when the run was last updated").nullable().optional()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const ParsehubGetProjects_TemplateModelSchema = z.object({
|
|
15
|
-
name: z.string().describe("Name of the template"),
|
|
16
|
-
template_token: z.string().describe("Identifier of the template")
|
|
17
|
-
});
|
|
15
|
+
name: z.string().describe("Name of the template").nullable(),
|
|
16
|
+
template_token: z.string().describe("Identifier of the template").nullable()
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const ParsehubGetProjects_ProjectModelSchema = z.object({
|
|
19
|
-
name: z.string().describe("Name of the project"),
|
|
20
|
-
token: z.string().describe("Unique identifier for the project"),
|
|
19
|
+
name: z.string().describe("Name of the project").nullable(),
|
|
20
|
+
token: z.string().describe("Unique identifier for the project").nullable(),
|
|
21
21
|
last_run: ParsehubGetProjects_LastRunSchema.nullable().optional(),
|
|
22
22
|
templates: z.array(ParsehubGetProjects_TemplateModelSchema).describe("List of templates defined in the project").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const parsehubGetProjects = action("PARSEHUB_GET_PROJECTS", {
|
|
25
25
|
slug: "parsehub-get-projects",
|
|
26
26
|
name: "Get Projects",
|
|
@@ -30,8 +30,8 @@ const parsehubGetProjects = action("PARSEHUB_GET_PROJECTS", {
|
|
|
30
30
|
limit: z.number().int().describe("Limit value used in the request").nullable().optional(),
|
|
31
31
|
offset: z.number().int().describe("Offset value used in the request").nullable().optional(),
|
|
32
32
|
projects: z.array(ParsehubGetProjects_ProjectModelSchema).describe("List of projects accessible by the user"),
|
|
33
|
-
total_projects: z.number().int().describe("Total number of projects for this account")
|
|
34
|
-
}).describe("Response schema for listing projects")
|
|
33
|
+
total_projects: z.number().int().describe("Total number of projects for this account").nullable()
|
|
34
|
+
}).passthrough().describe("Response schema for listing projects")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { parsehubGetProjects };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-projects.mjs","names":[],"sources":["../../src/actions/get-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParsehubGetProjectsInput
|
|
1
|
+
{"version":3,"file":"get-projects.mjs","names":[],"sources":["../../src/actions/get-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParsehubGetProjectsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of projects to return\").optional(),\n offset: z.number().int().describe(\"Index of the first project to return for pagination (0-based)\").optional(),\n}).describe(\"Request parameters for listing projects\");\nconst ParsehubGetProjects_LastRunSchema = z.object({\n data: z.string().describe(\"URL to the JSON data of this run\").nullable(),\n status: z.string().describe(\"Status of the project run\").nullable(),\n date_created: z.string().describe(\"Timestamp when the run was created\").nullable(),\n date_updated: z.string().describe(\"Timestamp when the run was last updated\").nullable().optional(),\n}).passthrough();\nconst ParsehubGetProjects_TemplateModelSchema = z.object({\n name: z.string().describe(\"Name of the template\").nullable(),\n template_token: z.string().describe(\"Identifier of the template\").nullable(),\n}).passthrough();\nconst ParsehubGetProjects_ProjectModelSchema = z.object({\n name: z.string().describe(\"Name of the project\").nullable(),\n token: z.string().describe(\"Unique identifier for the project\").nullable(),\n last_run: ParsehubGetProjects_LastRunSchema.nullable().optional(),\n templates: z.array(ParsehubGetProjects_TemplateModelSchema).describe(\"List of templates defined in the project\").nullable().optional(),\n}).passthrough();\nexport const ParsehubGetProjectsOutput = z.object({\n limit: z.number().int().describe(\"Limit value used in the request\").nullable().optional(),\n offset: z.number().int().describe(\"Offset value used in the request\").nullable().optional(),\n projects: z.array(ParsehubGetProjects_ProjectModelSchema).describe(\"List of projects accessible by the user\"),\n total_projects: z.number().int().describe(\"Total number of projects for this account\").nullable(),\n}).passthrough().describe(\"Response schema for listing projects\");\n\nexport const parsehubGetProjects = action(\"PARSEHUB_GET_PROJECTS\", {\n slug: \"parsehub-get-projects\",\n name: \"Get Projects\",\n description: \"Tool to retrieve all projects for the authenticated user. Use after confirming account's API key.\",\n input: ParsehubGetProjectsInput,\n output: ParsehubGetProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,UAAU,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const parsehubCatalog = {
|
|
|
7
7
|
"category": "AI Web Scraping",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/parsehub",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "ParseHub API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your ParseHub API key, found in your account settings."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.parsehubCatalog = parsehubCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parsehubCatalog = {\n \"slug\": \"parsehub\",\n \"name\": \"Parsehub\",\n \"description\": \"ParseHub is a web scraping tool that allows users to extract data from websites without coding.\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsehub\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parsehubCatalog = {\n \"slug\": \"parsehub\",\n \"name\": \"Parsehub\",\n \"description\": \"ParseHub is a web scraping tool that allows users to extract data from websites without coding.\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsehub\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"ParseHub API Key\",\n \"secret\": true,\n \"description\": \"Your ParseHub API key, found in your account settings.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const parsehubCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/parsehub";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "ParseHub API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your ParseHub API key, found in your account settings.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { parsehubCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const parsehubCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/parsehub";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "ParseHub API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your ParseHub API key, found in your account settings.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { parsehubCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const parsehubCatalog = {
|
|
|
7
7
|
"category": "AI Web Scraping",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/parsehub",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "ParseHub API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your ParseHub API key, found in your account settings."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { parsehubCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parsehubCatalog = {\n \"slug\": \"parsehub\",\n \"name\": \"Parsehub\",\n \"description\": \"ParseHub is a web scraping tool that allows users to extract data from websites without coding.\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsehub\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parsehubCatalog = {\n \"slug\": \"parsehub\",\n \"name\": \"Parsehub\",\n \"description\": \"ParseHub is a web scraping tool that allows users to extract data from websites without coding.\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsehub\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"ParseHub API Key\",\n \"secret\": true,\n \"description\": \"Your ParseHub API key, found in your account settings.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/parsehub",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|