@keystrokehq/pdf_api_io 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":["pdfApiIo","executePdfApiIoTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pdfApiIo } from \"./app\";\nimport { executePdfApiIoTool } 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 pdfApiIo.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 executePdfApiIoTool(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":["pdfApiIo","executePdfApiIoTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { pdfApiIo } from \"./app\";\nimport { executePdfApiIoTool } 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 pdfApiIo.credential> {\n return pdfApiIo.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 executePdfApiIoTool(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 { pdfApiIo } from \"./app\";\nimport { executePdfApiIoTool } 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 pdfApiIo.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 executePdfApiIoTool(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 { pdfApiIo } from \"./app\";\nimport { executePdfApiIoTool } 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 pdfApiIo.credential> {\n return pdfApiIo.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 executePdfApiIoTool(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/list-templates.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfApiIoListTemplatesInput = z.object({}).describe(\"Request model for listing templates. No parameters are required.\");\nconst PdfApiIoListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The unique identifier for the template.\").nullable(),\n name: z.string().describe(\"The name of the template.\").nullable(),\n createdAt: z.string().describe(\"ISO timestamp when the template was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO timestamp when the template was last updated.\").nullable(),\n previewUrl: z.string().describe(\"URL to preview the template.\").nullable(),\n description: z.string().describe(\"Description of the template.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).passthrough().describe(\"Response model for listing templates.\");\n\nexport const pdfApiIoListTemplates = action(\"PDF_API_IO_LIST_TEMPLATES\", {\n slug: \"pdf_api_io-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all available templates. Use after authentication to retrieve user's templates. Returns template metadata only; populating or rendering a template requires additional tool calls. Verify returned templates include required fields and variants before proceeding.\",\n input: PdfApiIoListTemplatesInput,\n output: PdfApiIoListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAClI,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfApiIo } from \"../app\";\n\nexport const PdfApiIoListTemplatesInput = z.object({}).describe(\"Request model for listing templates. No parameters are required.\");\nconst PdfApiIoListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The unique identifier for the template.\").nullable(),\n name: z.string().describe(\"The name of the template.\").nullable(),\n createdAt: z.string().describe(\"ISO timestamp when the template was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO timestamp when the template was last updated.\").nullable(),\n previewUrl: z.string().describe(\"URL to preview the template.\").nullable(),\n description: z.string().describe(\"Description of the template.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).passthrough().describe(\"Response model for listing templates.\");\n\nexport const pdfApiIoListTemplates: AppAction<\n typeof PdfApiIoListTemplatesInput,\n typeof PdfApiIoListTemplatesOutput,\n typeof pdfApiIo.credential\n> = action(\"PDF_API_IO_LIST_TEMPLATES\", {\n slug: \"pdf_api_io-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all available templates. Use after authentication to retrieve user's templates. Returns template metadata only; populating or rendering a template requires additional tool calls. Verify returned templates include required fields and variants before proceeding.\",\n input: PdfApiIoListTemplatesInput,\n output: PdfApiIoListTemplatesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAClI,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,wBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pdfApiIo } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-templates.d.ts
@@ -12,19 +14,7 @@ declare const PdfApiIoListTemplatesOutput: z.ZodObject<{
12
14
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
15
  }, z.core.$loose>>;
14
16
  }, z.core.$loose>;
15
- declare const pdfApiIoListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_api_io", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_api_io", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
17
+ declare const pdfApiIoListTemplates: AppAction<typeof PdfApiIoListTemplatesInput, typeof PdfApiIoListTemplatesOutput, typeof pdfApiIo.credential>;
28
18
  //#endregion
29
19
  export { pdfApiIoListTemplates };
30
20
  //# sourceMappingURL=list-templates.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-templates.d.cts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,eAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-templates.d.cts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pdfApiIo } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-templates.d.ts
@@ -12,19 +14,7 @@ declare const PdfApiIoListTemplatesOutput: z.ZodObject<{
12
14
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
15
  }, z.core.$loose>>;
14
16
  }, z.core.$loose>;
15
- declare const pdfApiIoListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_api_io", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_api_io", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
17
+ declare const pdfApiIoListTemplates: AppAction<typeof PdfApiIoListTemplatesInput, typeof PdfApiIoListTemplatesOutput, typeof pdfApiIo.credential>;
28
18
  //#endregion
29
19
  export { pdfApiIoListTemplates };
30
20
  //# sourceMappingURL=list-templates.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-templates.d.mts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,eAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-templates.d.mts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/list-templates.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfApiIoListTemplatesInput = z.object({}).describe(\"Request model for listing templates. No parameters are required.\");\nconst PdfApiIoListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The unique identifier for the template.\").nullable(),\n name: z.string().describe(\"The name of the template.\").nullable(),\n createdAt: z.string().describe(\"ISO timestamp when the template was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO timestamp when the template was last updated.\").nullable(),\n previewUrl: z.string().describe(\"URL to preview the template.\").nullable(),\n description: z.string().describe(\"Description of the template.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).passthrough().describe(\"Response model for listing templates.\");\n\nexport const pdfApiIoListTemplates = action(\"PDF_API_IO_LIST_TEMPLATES\", {\n slug: \"pdf_api_io-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all available templates. Use after authentication to retrieve user's templates. Returns template metadata only; populating or rendering a template requires additional tool calls. Verify returned templates include required fields and variants before proceeding.\",\n input: PdfApiIoListTemplatesInput,\n output: PdfApiIoListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAClI,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfApiIo } from \"../app\";\n\nexport const PdfApiIoListTemplatesInput = z.object({}).describe(\"Request model for listing templates. No parameters are required.\");\nconst PdfApiIoListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The unique identifier for the template.\").nullable(),\n name: z.string().describe(\"The name of the template.\").nullable(),\n createdAt: z.string().describe(\"ISO timestamp when the template was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO timestamp when the template was last updated.\").nullable(),\n previewUrl: z.string().describe(\"URL to preview the template.\").nullable(),\n description: z.string().describe(\"Description of the template.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).passthrough().describe(\"Response model for listing templates.\");\n\nexport const pdfApiIoListTemplates: AppAction<\n typeof PdfApiIoListTemplatesInput,\n typeof PdfApiIoListTemplatesOutput,\n typeof pdfApiIo.credential\n> = action(\"PDF_API_IO_LIST_TEMPLATES\", {\n slug: \"pdf_api_io-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all available templates. Use after authentication to retrieve user's templates. Returns template metadata only; populating or rendering a template requires additional tool calls. Verify returned templates include required fields and variants before proceeding.\",\n input: PdfApiIoListTemplatesInput,\n output: PdfApiIoListTemplatesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAClI,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,wBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;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 pdfApiIo = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "pdf_api_io",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.pdfApiIo = pdfApiIo;
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 pdfApiIo = defineApp({\n slug: \"pdf_api_io\",\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 pdfApiIo: KeystrokeApp<\"pdf_api_io\", typeof credential> = defineApp({\n slug: \"pdf_api_io\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,YAAA,GAAA,2BAAA,UAAA,CAAoE;CAC/E,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 pdfApiIo: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"pdf_api_io", 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 pdfApiIo: KeystrokeApp<"pdf_api_io", typeof credential>;
11
9
  //#endregion
12
10
  export { pdfApiIo };
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,eAAA,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,sBAAsB,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 pdfApiIo: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"pdf_api_io", 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 pdfApiIo: KeystrokeApp<"pdf_api_io", typeof credential>;
11
9
  //#endregion
12
10
  export { pdfApiIo };
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,eAAA,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,sBAAsB,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 pdfApiIo = defineApp({
5
4
  slug: "pdf_api_io",
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 pdfApiIo = defineApp({\n slug: \"pdf_api_io\",\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 pdfApiIo: KeystrokeApp<\"pdf_api_io\", typeof credential> = defineApp({\n slug: \"pdf_api_io\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,WAA0D,UAAU;CAC/E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { pdfApiIoListTemplates } from "./actions/list-templates.cjs";
2
1
  import { pdfApiIo } from "./app.cjs";
2
+ import { pdfApiIoListTemplates } from "./actions/list-templates.cjs";
3
3
  import { pdfApiIoCatalog } from "./catalog.cjs";
4
4
  export { pdfApiIo, pdfApiIoCatalog, pdfApiIoListTemplates };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { pdfApiIoListTemplates } from "./actions/list-templates.mjs";
2
1
  import { pdfApiIo } from "./app.mjs";
2
+ import { pdfApiIoListTemplates } from "./actions/list-templates.mjs";
3
3
  import { pdfApiIoCatalog } from "./catalog.mjs";
4
4
  export { pdfApiIo, pdfApiIoCatalog, pdfApiIoListTemplates };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/pdf_api_io",
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": {