@keystrokehq/pdf_api_io 0.1.0 → 0.1.2

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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/list-templates.ts
4
4
  const PdfApiIoListTemplatesInput = zod.z.object({}).describe("Request model for listing templates. No parameters are required.");
5
5
  const PdfApiIoListTemplates_TemplateSchema = zod.z.object({
6
- id: zod.z.string().describe("The unique identifier for the template."),
7
- name: zod.z.string().describe("The name of the template."),
8
- createdAt: zod.z.string().describe("ISO timestamp when the template was created."),
9
- updatedAt: zod.z.string().describe("ISO timestamp when the template was last updated."),
10
- previewUrl: zod.z.string().describe("URL to preview the template."),
6
+ id: zod.z.string().describe("The unique identifier for the template.").nullable(),
7
+ name: zod.z.string().describe("The name of the template.").nullable(),
8
+ createdAt: zod.z.string().describe("ISO timestamp when the template was created.").nullable(),
9
+ updatedAt: zod.z.string().describe("ISO timestamp when the template was last updated.").nullable(),
10
+ previewUrl: zod.z.string().describe("URL to preview the template.").nullable(),
11
11
  description: zod.z.string().describe("Description of the template.").nullable().optional()
12
12
  }).describe("Schema for a single template object.");
13
13
  const PdfApiIoListTemplatesOutput = zod.z.object({ templates: zod.z.array(PdfApiIoListTemplates_TemplateSchema).describe("Array of template objects.") }).describe("Response model for listing templates.");
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for listing templates. No parameters are required.\");\nconst PdfApiIoListTemplates_TemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the template.\"),\n name: z.string().describe(\"The name of the template.\"),\n createdAt: z.string().describe(\"ISO timestamp when the template was created.\"),\n updatedAt: z.string().describe(\"ISO timestamp when the template was last updated.\"),\n previewUrl: z.string().describe(\"URL to preview the template.\"),\n description: z.string().describe(\"Description of the template.\").nullable().optional(),\n}).describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput: z.ZodTypeAny = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).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,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAChJ,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,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 { 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}).describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).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,SAAS,sCAAsC;AAClD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-templates.d.ts
4
- declare const PdfApiIoListTemplatesInput: z.ZodTypeAny;
5
- declare const PdfApiIoListTemplatesOutput: z.ZodTypeAny;
6
- declare const pdfApiIoListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdfApiIoListTemplatesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PdfApiIoListTemplatesOutput: z.ZodObject<{
6
+ templates: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ createdAt: z.ZodNullable<z.ZodString>;
10
+ updatedAt: z.ZodNullable<z.ZodString>;
11
+ previewUrl: z.ZodNullable<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const pdfApiIoListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { pdfApiIoListTemplates };
9
18
  //# 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,EAA4B,CAAA,CAAE,UAAsG;AAAA,cASpI,2BAAA,EAA6B,CAAA,CAAE,UAEQ;AAAA,cAEvC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,4CAAA,UAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-templates.d.ts
4
- declare const PdfApiIoListTemplatesInput: z.ZodTypeAny;
5
- declare const PdfApiIoListTemplatesOutput: z.ZodTypeAny;
6
- declare const pdfApiIoListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdfApiIoListTemplatesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PdfApiIoListTemplatesOutput: z.ZodObject<{
6
+ templates: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ createdAt: z.ZodNullable<z.ZodString>;
10
+ updatedAt: z.ZodNullable<z.ZodString>;
11
+ previewUrl: z.ZodNullable<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const pdfApiIoListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { pdfApiIoListTemplates };
9
18
  //# 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,EAA4B,CAAA,CAAE,UAAsG;AAAA,cASpI,2BAAA,EAA6B,CAAA,CAAE,UAEQ;AAAA,cAEvC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,4CAAA,UAAA"}
@@ -3,11 +3,11 @@ import { z } from "zod";
3
3
  //#region src/actions/list-templates.ts
4
4
  const PdfApiIoListTemplatesInput = z.object({}).describe("Request model for listing templates. No parameters are required.");
5
5
  const PdfApiIoListTemplates_TemplateSchema = z.object({
6
- id: z.string().describe("The unique identifier for the template."),
7
- name: z.string().describe("The name of the template."),
8
- createdAt: z.string().describe("ISO timestamp when the template was created."),
9
- updatedAt: z.string().describe("ISO timestamp when the template was last updated."),
10
- previewUrl: z.string().describe("URL to preview the template."),
6
+ id: z.string().describe("The unique identifier for the template.").nullable(),
7
+ name: z.string().describe("The name of the template.").nullable(),
8
+ createdAt: z.string().describe("ISO timestamp when the template was created.").nullable(),
9
+ updatedAt: z.string().describe("ISO timestamp when the template was last updated.").nullable(),
10
+ previewUrl: z.string().describe("URL to preview the template.").nullable(),
11
11
  description: z.string().describe("Description of the template.").nullable().optional()
12
12
  }).describe("Schema for a single template object.");
13
13
  const pdfApiIoListTemplates = action("PDF_API_IO_LIST_TEMPLATES", {
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for listing templates. No parameters are required.\");\nconst PdfApiIoListTemplates_TemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the template.\"),\n name: z.string().describe(\"The name of the template.\"),\n createdAt: z.string().describe(\"ISO timestamp when the template was created.\"),\n updatedAt: z.string().describe(\"ISO timestamp when the template was last updated.\"),\n previewUrl: z.string().describe(\"URL to preview the template.\"),\n description: z.string().describe(\"Description of the template.\").nullable().optional(),\n}).describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput: z.ZodTypeAny = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).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,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAChJ,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B,EAChG,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
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}).describe(\"Schema for a single template object.\");\nexport const PdfApiIoListTemplatesOutput = z.object({\n templates: z.array(PdfApiIoListTemplates_TemplateSchema).describe(\"Array of template objects.\"),\n}).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,SAAS,sCAAsC;AAKlD,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,SAAS,uCAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const pdfApiIoCatalog = {
7
7
  "category": "Documents",
8
8
  "logo": "https://logos.composio.dev/api/pdf_api_io",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "PDF-API.io API Token",
13
+ "secret": true,
14
+ "description": "The API token used for authenticating requests to the PDF-API.io API."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.pdfApiIoCatalog = pdfApiIoCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pdfApiIoCatalog = {\n \"slug\": \"pdf_api_io\",\n \"name\": \"PDF-API.io\",\n \"description\": \"PDF-API.io offers a dynamic PDF generation API with a drag-and-drop template designer, allowing developers to create customizable PDFs using HTML and CSS.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdf_api_io\",\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;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pdfApiIoCatalog = {\n \"slug\": \"pdf_api_io\",\n \"name\": \"PDF-API.io\",\n \"description\": \"PDF-API.io offers a dynamic PDF generation API with a drag-and-drop template designer, allowing developers to create customizable PDFs using HTML and CSS.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdf_api_io\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"PDF-API.io API Token\",\n \"secret\": true,\n \"description\": \"The API token used for authenticating requests to the PDF-API.io API.\"\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"}
@@ -8,6 +8,14 @@ declare const pdfApiIoCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/pdf_api_io";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "PDF-API.io API Token";
14
+ readonly secret: true;
15
+ readonly description: "The API token used for authenticating requests to the PDF-API.io API.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { pdfApiIoCatalog };
@@ -8,6 +8,14 @@ declare const pdfApiIoCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/pdf_api_io";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "PDF-API.io API Token";
14
+ readonly secret: true;
15
+ readonly description: "The API token used for authenticating requests to the PDF-API.io API.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { pdfApiIoCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const pdfApiIoCatalog = {
7
7
  "category": "Documents",
8
8
  "logo": "https://logos.composio.dev/api/pdf_api_io",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "PDF-API.io API Token",
13
+ "secret": true,
14
+ "description": "The API token used for authenticating requests to the PDF-API.io API."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { pdfApiIoCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pdfApiIoCatalog = {\n \"slug\": \"pdf_api_io\",\n \"name\": \"PDF-API.io\",\n \"description\": \"PDF-API.io offers a dynamic PDF generation API with a drag-and-drop template designer, allowing developers to create customizable PDFs using HTML and CSS.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdf_api_io\",\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;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pdfApiIoCatalog = {\n \"slug\": \"pdf_api_io\",\n \"name\": \"PDF-API.io\",\n \"description\": \"PDF-API.io offers a dynamic PDF generation API with a drag-and-drop template designer, allowing developers to create customizable PDFs using HTML and CSS.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdf_api_io\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"PDF-API.io API Token\",\n \"secret\": true,\n \"description\": \"The API token used for authenticating requests to the PDF-API.io API.\"\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/pdf_api_io",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {