@keystrokehq/pdfless 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ const PdflessGetWorkspaceOutput = zod.z.object({
9
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
- }).describe("Response model containing workspace details.");
12
+ }).passthrough().describe("Response model containing workspace details.");
13
13
  const pdflessGetWorkspace = require_action.action("PDFLESS_GET_WORKSPACE", {
14
14
  slug: "pdfless-get-workspace",
15
15
  name: "Get Workspace",
@@ -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.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
+ {"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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const PdflessGetWorkspaceOutput: z.ZodObject<{
9
9
  created: z.ZodNullable<z.ZodString>;
10
10
  modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  remainingQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
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]>;
14
14
  //#endregion
15
15
  export { pdflessGetWorkspace };
@@ -9,7 +9,7 @@ declare const PdflessGetWorkspaceOutput: z.ZodObject<{
9
9
  created: z.ZodNullable<z.ZodString>;
10
10
  modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  remainingQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
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]>;
14
14
  //#endregion
15
15
  export { pdflessGetWorkspace };
@@ -12,7 +12,7 @@ const pdflessGetWorkspace = action("PDFLESS_GET_WORKSPACE", {
12
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
- }).describe("Response model containing workspace details.")
15
+ }).passthrough().describe("Response model containing workspace details.")
16
16
  });
17
17
  //#endregion
18
18
  export { pdflessGetWorkspace };
@@ -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.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"}
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -10,17 +10,17 @@ const PdflessListDocumentTemplates_DocumentTemplateSchema = zod.z.object({
10
10
  name: zod.z.string().describe("Name of the document template.").nullable(),
11
11
  created_at: zod.z.string().describe("Timestamp when the template was created.").nullable(),
12
12
  updated_at: zod.z.string().describe("Timestamp when the template was last updated.").nullable()
13
- }).describe("A single document template entry.");
13
+ }).passthrough().describe("A single document template entry.");
14
14
  const PdflessListDocumentTemplates_PaginationSchema = zod.z.object({
15
15
  page: zod.z.number().int().describe("Current page number.").nullable(),
16
16
  pageSize: zod.z.number().int().describe("Number of items per page.").nullable(),
17
17
  totalItems: zod.z.number().int().describe("Total number of document templates.").nullable(),
18
18
  totalPages: zod.z.number().int().describe("Total number of pages.").nullable()
19
- }).describe("Pagination details for listing endpoints.");
19
+ }).passthrough().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."),
22
22
  pagination: PdflessListDocumentTemplates_PaginationSchema.nullable()
23
- }).describe("Response model for listing document templates.");
23
+ }).passthrough().describe("Response model for listing document templates.");
24
24
  const pdflessListDocumentTemplates = require_action.action("PDFLESS_LIST_DOCUMENT_TEMPLATES", {
25
25
  slug: "pdfless-list-document-templates",
26
26
  name: "List 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.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
+ {"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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,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,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,iCAAiC;CAC7G,YAAY,8CAA8C,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,14 +11,14 @@ declare const PdflessListDocumentTemplatesOutput: z.ZodObject<{
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  created_at: z.ZodNullable<z.ZodString>;
13
13
  updated_at: z.ZodNullable<z.ZodString>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  pagination: z.ZodNullable<z.ZodObject<{
16
16
  page: z.ZodNullable<z.ZodNumber>;
17
17
  pageSize: z.ZodNullable<z.ZodNumber>;
18
18
  totalItems: z.ZodNullable<z.ZodNumber>;
19
19
  totalPages: z.ZodNullable<z.ZodNumber>;
20
- }, z.core.$strip>>;
21
- }, z.core.$strip>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>;
22
22
  declare const pdflessListDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  page?: number | undefined;
24
24
  pageSize?: number | undefined;
@@ -11,14 +11,14 @@ declare const PdflessListDocumentTemplatesOutput: z.ZodObject<{
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  created_at: z.ZodNullable<z.ZodString>;
13
13
  updated_at: z.ZodNullable<z.ZodString>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  pagination: z.ZodNullable<z.ZodObject<{
16
16
  page: z.ZodNullable<z.ZodNumber>;
17
17
  pageSize: z.ZodNullable<z.ZodNumber>;
18
18
  totalItems: z.ZodNullable<z.ZodNumber>;
19
19
  totalPages: z.ZodNullable<z.ZodNumber>;
20
- }, z.core.$strip>>;
21
- }, z.core.$strip>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>;
22
22
  declare const pdflessListDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  page?: number | undefined;
24
24
  pageSize?: number | undefined;
@@ -10,13 +10,13 @@ const PdflessListDocumentTemplates_DocumentTemplateSchema = z.object({
10
10
  name: z.string().describe("Name of the document template.").nullable(),
11
11
  created_at: z.string().describe("Timestamp when the template was created.").nullable(),
12
12
  updated_at: z.string().describe("Timestamp when the template was last updated.").nullable()
13
- }).describe("A single document template entry.");
13
+ }).passthrough().describe("A single document template entry.");
14
14
  const PdflessListDocumentTemplates_PaginationSchema = z.object({
15
15
  page: z.number().int().describe("Current page number.").nullable(),
16
16
  pageSize: z.number().int().describe("Number of items per page.").nullable(),
17
17
  totalItems: z.number().int().describe("Total number of document templates.").nullable(),
18
18
  totalPages: z.number().int().describe("Total number of pages.").nullable()
19
- }).describe("Pagination details for listing endpoints.");
19
+ }).passthrough().describe("Pagination details for listing endpoints.");
20
20
  const pdflessListDocumentTemplates = action("PDFLESS_LIST_DOCUMENT_TEMPLATES", {
21
21
  slug: "pdfless-list-document-templates",
22
22
  name: "List Document Templates",
@@ -25,7 +25,7 @@ const pdflessListDocumentTemplates = action("PDFLESS_LIST_DOCUMENT_TEMPLATES", {
25
25
  output: z.object({
26
26
  data: z.array(PdflessListDocumentTemplates_DocumentTemplateSchema).describe("An array of document templates."),
27
27
  pagination: PdflessListDocumentTemplates_PaginationSchema.nullable()
28
- }).describe("Response model for listing document templates.")
28
+ }).passthrough().describe("Response model for listing document templates.")
29
29
  });
30
30
  //#endregion
31
31
  export { pdflessListDocumentTemplates };
@@ -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.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"}
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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,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,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAMrE,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,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/pdfless",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"