@keystrokehq/pdfless 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":["pdfless","executePdflessTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pdfless } from \"./app\";\nimport { executePdflessTool } 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 pdfless.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 executePdflessTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["pdfless","executePdflessTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pdfless } from \"./app\";\nimport { executePdflessTool } 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 pdfless.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 executePdflessTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pdfless } from \"./app\";\nimport { executePdflessTool } 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 pdfless.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 executePdflessTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pdfless } from \"./app\";\nimport { executePdflessTool } 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 pdfless.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 executePdflessTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -5,8 +5,8 @@ const PdflessGetWorkspaceInput = zod.z.object({}).describe("Request model for ge
5
5
  const PdflessGetWorkspaceOutput = zod.z.object({
6
6
  name: zod.z.string().describe("Name of the workspace. Can be null if no name has been set.").nullable().optional(),
7
7
  quota: zod.z.number().int().describe("Total quota available for the workspace. Represents the maximum number of API operations allowed.").nullable().optional(),
8
- active: zod.z.boolean().describe("Active status of the workspace. Indicates if the workspace is currently active."),
9
- created: zod.z.string().describe("Creation date of the workspace in ISO 8601 format (date-time)."),
8
+ active: zod.z.boolean().describe("Active status of the workspace. Indicates if the workspace is currently active.").nullable(),
9
+ created: zod.z.string().describe("Creation date of the workspace in ISO 8601 format (date-time).").nullable(),
10
10
  modified: zod.z.string().describe("Last modification date of the workspace in ISO 8601 format (date-time). Null if never modified.").nullable().optional(),
11
11
  remainingQuota: zod.z.number().int().describe("Remaining quota available for the workspace. Represents how many API operations are still available.").nullable().optional()
12
12
  }).describe("Response model containing workspace details.");
@@ -1 +1 @@
1
- {"version":3,"file":"get-workspace.cjs","names":["z","action"],"sources":["../../src/actions/get-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessGetWorkspaceInput: z.ZodTypeAny = z.object({}).describe(\"Request model for getting workspace details.\");\nexport const PdflessGetWorkspaceOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the workspace. Can be null if no name has been set.\").nullable().optional(),\n quota: z.number().int().describe(\"Total quota available for the workspace. Represents the maximum number of API operations allowed.\").nullable().optional(),\n active: z.boolean().describe(\"Active status of the workspace. Indicates if the workspace is currently active.\"),\n created: z.string().describe(\"Creation date of the workspace in ISO 8601 format (date-time).\"),\n modified: z.string().describe(\"Last modification date of the workspace in ISO 8601 format (date-time). Null if never modified.\").nullable().optional(),\n remainingQuota: z.number().int().describe(\"Remaining quota available for the workspace. Represents how many API operations are still available.\").nullable().optional(),\n}).describe(\"Response model containing workspace details.\");\n\nexport const pdflessGetWorkspace = action(\"PDFLESS_GET_WORKSPACE\", {\n slug: \"pdfless-get-workspace\",\n name: \"Get Workspace\",\n description: \"Get workspace details and information. Use this to check if a workspace exists or is available based on the API key. Retrieves metadata about the current workspace including its active status, creation date, and name.\",\n input: PdflessGetWorkspaceInput,\n output: PdflessGetWorkspaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1H,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-workspace.cjs","names":["z","action"],"sources":["../../src/actions/get-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessGetWorkspaceInput = z.object({}).describe(\"Request model for getting workspace details.\");\nexport const PdflessGetWorkspaceOutput = z.object({\n name: z.string().describe(\"Name of the workspace. Can be null if no name has been set.\").nullable().optional(),\n quota: z.number().int().describe(\"Total quota available for the workspace. Represents the maximum number of API operations allowed.\").nullable().optional(),\n active: z.boolean().describe(\"Active status of the workspace. Indicates if the workspace is currently active.\").nullable(),\n created: z.string().describe(\"Creation date of the workspace in ISO 8601 format (date-time).\").nullable(),\n modified: z.string().describe(\"Last modification date of the workspace in ISO 8601 format (date-time). Null if never modified.\").nullable().optional(),\n remainingQuota: z.number().int().describe(\"Remaining quota available for the workspace. Represents how many API operations are still available.\").nullable().optional(),\n}).describe(\"Response model containing workspace details.\");\n\nexport const pdflessGetWorkspace = action(\"PDFLESS_GET_WORKSPACE\", {\n slug: \"pdfless-get-workspace\",\n name: \"Get Workspace\",\n description: \"Get workspace details and information. Use this to check if a workspace exists or is available based on the API key. Retrieves metadata about the current workspace including its active status, creation date, and name.\",\n input: PdflessGetWorkspaceInput,\n output: PdflessGetWorkspaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC5G,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACzH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-workspace.d.ts
4
- declare const PdflessGetWorkspaceInput: z.ZodTypeAny;
5
- declare const PdflessGetWorkspaceOutput: z.ZodTypeAny;
6
- declare const pdflessGetWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdflessGetWorkspaceInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PdflessGetWorkspaceOutput: z.ZodObject<{
6
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ quota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ active: z.ZodNullable<z.ZodBoolean>;
9
+ created: z.ZodNullable<z.ZodString>;
10
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ remainingQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ }, z.core.$strip>;
13
+ declare const pdflessGetWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { pdflessGetWorkspace };
9
16
  //# sourceMappingURL=get-workspace.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-workspace.d.cts","names":[],"sources":["../../src/actions/get-workspace.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAAkF;AAAA,cAC9G,yBAAA,EAA2B,CAAA,CAAE,UAOiB;AAAA,cAE9C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-workspace.d.cts","names":[],"sources":["../../src/actions/get-workspace.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-workspace.d.ts
4
- declare const PdflessGetWorkspaceInput: z.ZodTypeAny;
5
- declare const PdflessGetWorkspaceOutput: z.ZodTypeAny;
6
- declare const pdflessGetWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdflessGetWorkspaceInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PdflessGetWorkspaceOutput: z.ZodObject<{
6
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ quota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ active: z.ZodNullable<z.ZodBoolean>;
9
+ created: z.ZodNullable<z.ZodString>;
10
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ remainingQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ }, z.core.$strip>;
13
+ declare const pdflessGetWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { pdflessGetWorkspace };
9
16
  //# sourceMappingURL=get-workspace.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-workspace.d.mts","names":[],"sources":["../../src/actions/get-workspace.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAAkF;AAAA,cAC9G,yBAAA,EAA2B,CAAA,CAAE,UAOiB;AAAA,cAE9C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-workspace.d.mts","names":[],"sources":["../../src/actions/get-workspace.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -8,8 +8,8 @@ const pdflessGetWorkspace = action("PDFLESS_GET_WORKSPACE", {
8
8
  output: z.object({
9
9
  name: z.string().describe("Name of the workspace. Can be null if no name has been set.").nullable().optional(),
10
10
  quota: z.number().int().describe("Total quota available for the workspace. Represents the maximum number of API operations allowed.").nullable().optional(),
11
- active: z.boolean().describe("Active status of the workspace. Indicates if the workspace is currently active."),
12
- created: z.string().describe("Creation date of the workspace in ISO 8601 format (date-time)."),
11
+ active: z.boolean().describe("Active status of the workspace. Indicates if the workspace is currently active.").nullable(),
12
+ created: z.string().describe("Creation date of the workspace in ISO 8601 format (date-time).").nullable(),
13
13
  modified: z.string().describe("Last modification date of the workspace in ISO 8601 format (date-time). Null if never modified.").nullable().optional(),
14
14
  remainingQuota: z.number().int().describe("Remaining quota available for the workspace. Represents how many API operations are still available.").nullable().optional()
15
15
  }).describe("Response model containing workspace details.")
@@ -1 +1 @@
1
- {"version":3,"file":"get-workspace.mjs","names":[],"sources":["../../src/actions/get-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessGetWorkspaceInput: z.ZodTypeAny = z.object({}).describe(\"Request model for getting workspace details.\");\nexport const PdflessGetWorkspaceOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the workspace. Can be null if no name has been set.\").nullable().optional(),\n quota: z.number().int().describe(\"Total quota available for the workspace. Represents the maximum number of API operations allowed.\").nullable().optional(),\n active: z.boolean().describe(\"Active status of the workspace. Indicates if the workspace is currently active.\"),\n created: z.string().describe(\"Creation date of the workspace in ISO 8601 format (date-time).\"),\n modified: z.string().describe(\"Last modification date of the workspace in ISO 8601 format (date-time). Null if never modified.\").nullable().optional(),\n remainingQuota: z.number().int().describe(\"Remaining quota available for the workspace. Represents how many API operations are still available.\").nullable().optional(),\n}).describe(\"Response model containing workspace details.\");\n\nexport const pdflessGetWorkspace = action(\"PDFLESS_GET_WORKSPACE\", {\n slug: \"pdfless-get-workspace\",\n name: \"Get Workspace\",\n description: \"Get workspace details and information. Use this to check if a workspace exists or is available based on the API key. Retrieves metadata about the current workspace including its active status, creation date, and name.\",\n input: PdflessGetWorkspaceInput,\n output: PdflessGetWorkspaceOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAcnE;CACP,QAdqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1J,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF;EAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxK,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-workspace.mjs","names":[],"sources":["../../src/actions/get-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessGetWorkspaceInput = z.object({}).describe(\"Request model for getting workspace details.\");\nexport const PdflessGetWorkspaceOutput = z.object({\n name: z.string().describe(\"Name of the workspace. Can be null if no name has been set.\").nullable().optional(),\n quota: z.number().int().describe(\"Total quota available for the workspace. Represents the maximum number of API operations allowed.\").nullable().optional(),\n active: z.boolean().describe(\"Active status of the workspace. Indicates if the workspace is currently active.\").nullable(),\n created: z.string().describe(\"Creation date of the workspace in ISO 8601 format (date-time).\").nullable(),\n modified: z.string().describe(\"Last modification date of the workspace in ISO 8601 format (date-time). Null if never modified.\").nullable().optional(),\n remainingQuota: z.number().int().describe(\"Remaining quota available for the workspace. Represents how many API operations are still available.\").nullable().optional(),\n}).describe(\"Response model containing workspace details.\");\n\nexport const pdflessGetWorkspace = action(\"PDFLESS_GET_WORKSPACE\", {\n slug: \"pdfless-get-workspace\",\n name: \"Get Workspace\",\n description: \"Get workspace details and information. Use this to check if a workspace exists or is available based on the API key. Retrieves metadata about the current workspace including its active status, creation date, and name.\",\n input: PdflessGetWorkspaceInput,\n output: PdflessGetWorkspaceOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAcrD;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1J,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACzH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxK,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -6,16 +6,16 @@ const PdflessListDocumentTemplatesInput = zod.z.object({
6
6
  pageSize: zod.z.number().int().describe("Number of items per page. If not specified, the API will return all templates on the requested page.").optional()
7
7
  }).describe("Request model for listing document templates with pagination.");
8
8
  const PdflessListDocumentTemplates_DocumentTemplateSchema = zod.z.object({
9
- id: zod.z.string().describe("Unique identifier of the document template."),
10
- name: zod.z.string().describe("Name of the document template."),
11
- created_at: zod.z.string().describe("Timestamp when the template was created."),
12
- updated_at: zod.z.string().describe("Timestamp when the template was last updated.")
9
+ id: zod.z.string().describe("Unique identifier of the document template.").nullable(),
10
+ name: zod.z.string().describe("Name of the document template.").nullable(),
11
+ created_at: zod.z.string().describe("Timestamp when the template was created.").nullable(),
12
+ updated_at: zod.z.string().describe("Timestamp when the template was last updated.").nullable()
13
13
  }).describe("A single document template entry.");
14
14
  const PdflessListDocumentTemplates_PaginationSchema = zod.z.object({
15
- page: zod.z.number().int().describe("Current page number."),
16
- pageSize: zod.z.number().int().describe("Number of items per page."),
17
- totalItems: zod.z.number().int().describe("Total number of document templates."),
18
- totalPages: zod.z.number().int().describe("Total number of pages.")
15
+ page: zod.z.number().int().describe("Current page number.").nullable(),
16
+ pageSize: zod.z.number().int().describe("Number of items per page.").nullable(),
17
+ totalItems: zod.z.number().int().describe("Total number of document templates.").nullable(),
18
+ totalPages: zod.z.number().int().describe("Total number of pages.").nullable()
19
19
  }).describe("Pagination details for listing endpoints.");
20
20
  const PdflessListDocumentTemplatesOutput = zod.z.object({
21
21
  data: zod.z.array(PdflessListDocumentTemplates_DocumentTemplateSchema).describe("An array of document templates."),
@@ -1 +1 @@
1
- {"version":3,"file":"list-document-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessListDocumentTemplatesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Default is 1.\").optional(),\n pageSize: z.number().int().describe(\"Number of items per page. If not specified, the API will return all templates on the requested page.\").optional(),\n}).describe(\"Request model for listing document templates with pagination.\");\nconst PdflessListDocumentTemplates_DocumentTemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the document template.\"),\n name: z.string().describe(\"Name of the document template.\"),\n created_at: z.string().describe(\"Timestamp when the template was created.\"),\n updated_at: z.string().describe(\"Timestamp when the template was last updated.\"),\n}).describe(\"A single document template entry.\");\nconst PdflessListDocumentTemplates_PaginationSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number.\"),\n pageSize: z.number().int().describe(\"Number of items per page.\"),\n totalItems: z.number().int().describe(\"Total number of document templates.\"),\n totalPages: z.number().int().describe(\"Total number of pages.\"),\n}).describe(\"Pagination details for listing endpoints.\");\nexport const PdflessListDocumentTemplatesOutput: z.ZodTypeAny = z.object({\n data: z.array(PdflessListDocumentTemplates_DocumentTemplateSchema).describe(\"An array of document templates.\"),\n pagination: PdflessListDocumentTemplates_PaginationSchema.nullable(),\n}).describe(\"Response model for listing document templates.\");\n\nexport const pdflessListDocumentTemplates = action(\"PDFLESS_LIST_DOCUMENT_TEMPLATES\", {\n slug: \"pdfless-list-document-templates\",\n name: \"List Document Templates\",\n description: \"List all document templates in your PDFLess workspace with pagination support. Use this action to discover available templates before generating PDFs. Templates must be created in the PDFLess dashboard before they appear in this list. The response includes template IDs which are required for PDF generation operations.\",\n input: PdflessListDocumentTemplatesInput,\n output: PdflessListDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACjF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;AAChE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,iCAAiC;CAC7G,YAAY,8CAA8C,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-document-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessListDocumentTemplatesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Default is 1.\").optional(),\n pageSize: z.number().int().describe(\"Number of items per page. If not specified, the API will return all templates on the requested page.\").optional(),\n}).describe(\"Request model for listing document templates with pagination.\");\nconst PdflessListDocumentTemplates_DocumentTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier of the document template.\").nullable(),\n name: z.string().describe(\"Name of the document template.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the template was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the template was last updated.\").nullable(),\n}).describe(\"A single document template entry.\");\nconst PdflessListDocumentTemplates_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n pageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n totalItems: z.number().int().describe(\"Total number of document templates.\").nullable(),\n totalPages: z.number().int().describe(\"Total number of pages.\").nullable(),\n}).describe(\"Pagination details for listing endpoints.\");\nexport const PdflessListDocumentTemplatesOutput = z.object({\n data: z.array(PdflessListDocumentTemplates_DocumentTemplateSchema).describe(\"An array of document templates.\"),\n pagination: PdflessListDocumentTemplates_PaginationSchema.nullable(),\n}).describe(\"Response model for listing document templates.\");\n\nexport const pdflessListDocumentTemplates = action(\"PDFLESS_LIST_DOCUMENT_TEMPLATES\", {\n slug: \"pdfless-list-document-templates\",\n name: \"List Document Templates\",\n description: \"List all document templates in your PDFLess workspace with pagination support. Use this action to discover available templates before generating PDFs. Templates must be created in the PDFLess dashboard before they appear in this list. The response includes template IDs which are required for PDF generation operations.\",\n input: PdflessListDocumentTemplatesInput,\n output: PdflessListDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,iCAAiC;CAC7G,YAAY,8CAA8C,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-document-templates.d.ts
4
- declare const PdflessListDocumentTemplatesInput: z.ZodTypeAny;
5
- declare const PdflessListDocumentTemplatesOutput: z.ZodTypeAny;
6
- declare const pdflessListDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdflessListDocumentTemplatesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ pageSize: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PdflessListDocumentTemplatesOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ created_at: z.ZodNullable<z.ZodString>;
13
+ updated_at: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$strip>>;
15
+ pagination: z.ZodNullable<z.ZodObject<{
16
+ page: z.ZodNullable<z.ZodNumber>;
17
+ pageSize: z.ZodNullable<z.ZodNumber>;
18
+ totalItems: z.ZodNullable<z.ZodNumber>;
19
+ totalPages: z.ZodNullable<z.ZodNumber>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>;
22
+ declare const pdflessListDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ page?: number | undefined;
24
+ pageSize?: number | undefined;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { pdflessListDocumentTemplates };
9
28
  //# sourceMappingURL=list-document-templates.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-document-templates.d.cts","names":[],"sources":["../../src/actions/list-document-templates.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAG0B;AAAA,cAa/D,kCAAA,EAAoC,CAAA,CAAE,UAGU;AAAA,cAEhD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-document-templates.d.cts","names":[],"sources":["../../src/actions/list-document-templates.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-document-templates.d.ts
4
- declare const PdflessListDocumentTemplatesInput: z.ZodTypeAny;
5
- declare const PdflessListDocumentTemplatesOutput: z.ZodTypeAny;
6
- declare const pdflessListDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdflessListDocumentTemplatesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ pageSize: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PdflessListDocumentTemplatesOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ created_at: z.ZodNullable<z.ZodString>;
13
+ updated_at: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$strip>>;
15
+ pagination: z.ZodNullable<z.ZodObject<{
16
+ page: z.ZodNullable<z.ZodNumber>;
17
+ pageSize: z.ZodNullable<z.ZodNumber>;
18
+ totalItems: z.ZodNullable<z.ZodNumber>;
19
+ totalPages: z.ZodNullable<z.ZodNumber>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>;
22
+ declare const pdflessListDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ page?: number | undefined;
24
+ pageSize?: number | undefined;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { pdflessListDocumentTemplates };
9
28
  //# sourceMappingURL=list-document-templates.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-document-templates.d.mts","names":[],"sources":["../../src/actions/list-document-templates.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAG0B;AAAA,cAa/D,kCAAA,EAAoC,CAAA,CAAE,UAGU;AAAA,cAEhD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-document-templates.d.mts","names":[],"sources":["../../src/actions/list-document-templates.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
@@ -6,16 +6,16 @@ const PdflessListDocumentTemplatesInput = z.object({
6
6
  pageSize: z.number().int().describe("Number of items per page. If not specified, the API will return all templates on the requested page.").optional()
7
7
  }).describe("Request model for listing document templates with pagination.");
8
8
  const PdflessListDocumentTemplates_DocumentTemplateSchema = z.object({
9
- id: z.string().describe("Unique identifier of the document template."),
10
- name: z.string().describe("Name of the document template."),
11
- created_at: z.string().describe("Timestamp when the template was created."),
12
- updated_at: z.string().describe("Timestamp when the template was last updated.")
9
+ id: z.string().describe("Unique identifier of the document template.").nullable(),
10
+ name: z.string().describe("Name of the document template.").nullable(),
11
+ created_at: z.string().describe("Timestamp when the template was created.").nullable(),
12
+ updated_at: z.string().describe("Timestamp when the template was last updated.").nullable()
13
13
  }).describe("A single document template entry.");
14
14
  const PdflessListDocumentTemplates_PaginationSchema = z.object({
15
- page: z.number().int().describe("Current page number."),
16
- pageSize: z.number().int().describe("Number of items per page."),
17
- totalItems: z.number().int().describe("Total number of document templates."),
18
- totalPages: z.number().int().describe("Total number of pages.")
15
+ page: z.number().int().describe("Current page number.").nullable(),
16
+ pageSize: z.number().int().describe("Number of items per page.").nullable(),
17
+ totalItems: z.number().int().describe("Total number of document templates.").nullable(),
18
+ totalPages: z.number().int().describe("Total number of pages.").nullable()
19
19
  }).describe("Pagination details for listing endpoints.");
20
20
  const pdflessListDocumentTemplates = action("PDFLESS_LIST_DOCUMENT_TEMPLATES", {
21
21
  slug: "pdfless-list-document-templates",
@@ -1 +1 @@
1
- {"version":3,"file":"list-document-templates.mjs","names":[],"sources":["../../src/actions/list-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessListDocumentTemplatesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Default is 1.\").optional(),\n pageSize: z.number().int().describe(\"Number of items per page. If not specified, the API will return all templates on the requested page.\").optional(),\n}).describe(\"Request model for listing document templates with pagination.\");\nconst PdflessListDocumentTemplates_DocumentTemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the document template.\"),\n name: z.string().describe(\"Name of the document template.\"),\n created_at: z.string().describe(\"Timestamp when the template was created.\"),\n updated_at: z.string().describe(\"Timestamp when the template was last updated.\"),\n}).describe(\"A single document template entry.\");\nconst PdflessListDocumentTemplates_PaginationSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number.\"),\n pageSize: z.number().int().describe(\"Number of items per page.\"),\n totalItems: z.number().int().describe(\"Total number of document templates.\"),\n totalPages: z.number().int().describe(\"Total number of pages.\"),\n}).describe(\"Pagination details for listing endpoints.\");\nexport const PdflessListDocumentTemplatesOutput: z.ZodTypeAny = z.object({\n data: z.array(PdflessListDocumentTemplates_DocumentTemplateSchema).describe(\"An array of document templates.\"),\n pagination: PdflessListDocumentTemplates_PaginationSchema.nullable(),\n}).describe(\"Response model for listing document templates.\");\n\nexport const pdflessListDocumentTemplates = action(\"PDFLESS_LIST_DOCUMENT_TEMPLATES\", {\n slug: \"pdfless-list-document-templates\",\n name: \"List Document Templates\",\n description: \"List all document templates in your PDFLess workspace with pagination support. Use this action to discover available templates before generating PDFs. Templates must be created in the PDFLess dashboard before they appear in this list. The response includes template IDs which are required for PDF generation operations.\",\n input: PdflessListDocumentTemplatesInput,\n output: PdflessListDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sDAAoE,EAAE,OAAO;CACjF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACjF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,gDAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACtD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;AAChE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAMvD,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV8D,EAAE,OAAO;EACvE,MAAM,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,iCAAiC;EAC7G,YAAY,8CAA8C,SAAS;CACrE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-document-templates.mjs","names":[],"sources":["../../src/actions/list-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdflessListDocumentTemplatesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Default is 1.\").optional(),\n pageSize: z.number().int().describe(\"Number of items per page. If not specified, the API will return all templates on the requested page.\").optional(),\n}).describe(\"Request model for listing document templates with pagination.\");\nconst PdflessListDocumentTemplates_DocumentTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier of the document template.\").nullable(),\n name: z.string().describe(\"Name of the document template.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the template was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the template was last updated.\").nullable(),\n}).describe(\"A single document template entry.\");\nconst PdflessListDocumentTemplates_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n pageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n totalItems: z.number().int().describe(\"Total number of document templates.\").nullable(),\n totalPages: z.number().int().describe(\"Total number of pages.\").nullable(),\n}).describe(\"Pagination details for listing endpoints.\");\nexport const PdflessListDocumentTemplatesOutput = z.object({\n data: z.array(PdflessListDocumentTemplates_DocumentTemplateSchema).describe(\"An array of document templates.\"),\n pagination: PdflessListDocumentTemplates_PaginationSchema.nullable(),\n}).describe(\"Response model for listing document templates.\");\n\nexport const pdflessListDocumentTemplates = action(\"PDFLESS_LIST_DOCUMENT_TEMPLATES\", {\n slug: \"pdfless-list-document-templates\",\n name: \"List Document Templates\",\n description: \"List all document templates in your PDFLess workspace with pagination support. Use this action to discover available templates before generating PDFs. Templates must be created in the PDFLess dashboard before they appear in this list. The response includes template IDs which are required for PDF generation operations.\",\n input: PdflessListDocumentTemplatesInput,\n output: PdflessListDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAMvD,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,MAAM,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,iCAAiC;EAC7G,YAAY,8CAA8C,SAAS;CACrE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const pdflessCatalog = {
7
7
  "category": "Documents",
8
8
  "logo": "https://logos.composio.dev/api/pdfless",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "API Key",
13
+ "secret": true,
14
+ "description": "The API key for authenticating requests to the Pdfless API."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.pdflessCatalog = pdflessCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pdflessCatalog = {\n \"slug\": \"pdfless\",\n \"name\": \"Pdfless\",\n \"description\": \"Pdfless is a document factory that enables developers to create high-quality PDF documents using HTML/CSS templates and data integration.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdfless\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,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 pdflessCatalog = {\n \"slug\": \"pdfless\",\n \"name\": \"Pdfless\",\n \"description\": \"Pdfless is a document factory that enables developers to create high-quality PDF documents using HTML/CSS templates and data integration.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdfless\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"The API key for authenticating requests to the Pdfless API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,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 pdflessCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/pdfless";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "API Key";
14
+ readonly secret: true;
15
+ readonly description: "The API key for authenticating requests to the Pdfless API.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { pdflessCatalog };
@@ -8,6 +8,14 @@ declare const pdflessCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/pdfless";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "API Key";
14
+ readonly secret: true;
15
+ readonly description: "The API key for authenticating requests to the Pdfless API.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { pdflessCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const pdflessCatalog = {
7
7
  "category": "Documents",
8
8
  "logo": "https://logos.composio.dev/api/pdfless",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "API Key",
13
+ "secret": true,
14
+ "description": "The API key for authenticating requests to the Pdfless API."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { pdflessCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pdflessCatalog = {\n \"slug\": \"pdfless\",\n \"name\": \"Pdfless\",\n \"description\": \"Pdfless is a document factory that enables developers to create high-quality PDF documents using HTML/CSS templates and data integration.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdfless\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,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 pdflessCatalog = {\n \"slug\": \"pdfless\",\n \"name\": \"Pdfless\",\n \"description\": \"Pdfless is a document factory that enables developers to create high-quality PDF documents using HTML/CSS templates and data integration.\",\n \"category\": \"Documents\",\n \"logo\": \"https://logos.composio.dev/api/pdfless\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"The API key for authenticating requests to the Pdfless API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,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/pdfless",
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": {