@keystrokehq/parsehub 0.1.5 → 0.1.6

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 +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<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"}
1
+ {"version":3,"file":"action.cjs","names":["parsehub","executeParsehubTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof parsehub.credential> {\n return parsehub.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeParsehubTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,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"}
@@ -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<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"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof parsehub.credential> {\n return parsehub.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeParsehubTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,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"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-projects.ts
@@ -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 = 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,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Aa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-projects.cjs","names":["z","action"],"sources":["../../src/actions/get-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsehub } from \"../app\";\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: AppAction<\n typeof ParsehubGetProjectsInput,\n typeof ParsehubGetProjectsOutput,\n typeof parsehub.credential\n> = 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":";;;;AAMA,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,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parsehub } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-projects.d.ts
@@ -24,22 +26,7 @@ declare const ParsehubGetProjectsOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>;
25
27
  total_projects: z.ZodNullable<z.ZodNumber>;
26
28
  }, 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<"parsehub", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsehub", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>;
29
+ declare const parsehubGetProjects: AppAction<typeof ParsehubGetProjectsInput, typeof ParsehubGetProjectsOutput, typeof parsehub.credential>;
43
30
  //#endregion
44
31
  export { parsehubGetProjects };
45
32
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-projects.d.cts","names":[],"sources":["../../src/actions/get-projects.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parsehub } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-projects.d.ts
@@ -24,22 +26,7 @@ declare const ParsehubGetProjectsOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>;
25
27
  total_projects: z.ZodNullable<z.ZodNumber>;
26
28
  }, 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<"parsehub", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsehub", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>;
29
+ declare const parsehubGetProjects: AppAction<typeof ParsehubGetProjectsInput, typeof ParsehubGetProjectsOutput, typeof parsehub.credential>;
43
30
  //#endregion
44
31
  export { parsehubGetProjects };
45
32
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-projects.d.mts","names":[],"sources":["../../src/actions/get-projects.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-projects.ts
@@ -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 = 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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AS;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"}
1
+ {"version":3,"file":"get-projects.mjs","names":[],"sources":["../../src/actions/get-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsehub } from \"../app\";\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: AppAction<\n typeof ParsehubGetProjectsInput,\n typeof ParsehubGetProjectsOutput,\n typeof parsehub.credential\n> = 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":";;;;AAMA,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,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBuC,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,sCAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const parsehub = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "parsehub",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.parsehub = parsehub;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const parsehub = defineApp({\n slug: \"parsehub\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,YAAA,GAAA,2BAAA,UAAA,CAAqB;CAChC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const parsehub: KeystrokeApp<\"parsehub\", typeof credential> = defineApp({\n slug: \"parsehub\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,YAAA,GAAA,2BAAA,UAAA,CAAkE;CAC7E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const parsehub: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"parsehub", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const parsehub: KeystrokeApp<"parsehub", typeof credential>;
11
9
  //#endregion
12
10
  export { parsehub };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,QAAA,6BAAQ,GAAA,+BAAA,UAAA,aAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,oBAAoB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const parsehub: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"parsehub", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const parsehub: KeystrokeApp<"parsehub", typeof credential>;
11
9
  //#endregion
12
10
  export { parsehub };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,QAAA,6BAAQ,GAAA,+BAAA,UAAA,aAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,oBAAoB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const parsehub = defineApp({
5
4
  slug: "parsehub",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const parsehub = defineApp({\n slug: \"parsehub\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,WAAW,UAAU;CAChC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const parsehub: KeystrokeApp<\"parsehub\", typeof credential> = defineApp({\n slug: \"parsehub\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,WAAwD,UAAU;CAC7E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { parsehubGetProjects } from "./actions/get-projects.cjs";
2
1
  import { parsehub } from "./app.cjs";
2
+ import { parsehubGetProjects } from "./actions/get-projects.cjs";
3
3
  import { parsehubCatalog } from "./catalog.cjs";
4
4
  export { parsehub, parsehubCatalog, parsehubGetProjects };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { parsehubGetProjects } from "./actions/get-projects.mjs";
2
1
  import { parsehub } from "./app.mjs";
2
+ import { parsehubGetProjects } from "./actions/get-projects.mjs";
3
3
  import { parsehubCatalog } from "./catalog.mjs";
4
4
  export { parsehub, parsehubCatalog, parsehubGetProjects };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/parsehub",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
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": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {