@keystrokehq/finmei 0.1.1 → 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.
Files changed (163) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-expense.cjs +2 -2
  4. package/dist/actions/create-expense.cjs.map +1 -1
  5. package/dist/actions/create-expense.d.cts +3 -13
  6. package/dist/actions/create-expense.d.mts +3 -13
  7. package/dist/actions/create-expense.mjs +2 -2
  8. package/dist/actions/create-expense.mjs.map +1 -1
  9. package/dist/actions/create-invoice.cjs +71 -71
  10. package/dist/actions/create-invoice.cjs.map +1 -1
  11. package/dist/actions/create-invoice.d.cts +74 -141
  12. package/dist/actions/create-invoice.d.cts.map +1 -1
  13. package/dist/actions/create-invoice.d.mts +74 -141
  14. package/dist/actions/create-invoice.d.mts.map +1 -1
  15. package/dist/actions/create-invoice.mjs +71 -71
  16. package/dist/actions/create-invoice.mjs.map +1 -1
  17. package/dist/actions/delete-customer.cjs +1 -1
  18. package/dist/actions/delete-customer.cjs.map +1 -1
  19. package/dist/actions/delete-customer.d.cts +2 -2
  20. package/dist/actions/delete-customer.d.cts.map +1 -1
  21. package/dist/actions/delete-customer.d.mts +2 -2
  22. package/dist/actions/delete-customer.d.mts.map +1 -1
  23. package/dist/actions/delete-customer.mjs +1 -1
  24. package/dist/actions/delete-customer.mjs.map +1 -1
  25. package/dist/actions/delete-invoice.cjs +2 -2
  26. package/dist/actions/delete-invoice.cjs.map +1 -1
  27. package/dist/actions/delete-invoice.d.cts +3 -6
  28. package/dist/actions/delete-invoice.d.mts +3 -6
  29. package/dist/actions/delete-invoice.mjs +2 -2
  30. package/dist/actions/delete-invoice.mjs.map +1 -1
  31. package/dist/actions/delete-payment.cjs +1 -1
  32. package/dist/actions/delete-payment.cjs.map +1 -1
  33. package/dist/actions/delete-payment.d.cts +2 -4
  34. package/dist/actions/delete-payment.d.mts +2 -4
  35. package/dist/actions/delete-payment.mjs +1 -1
  36. package/dist/actions/delete-payment.mjs.map +1 -1
  37. package/dist/actions/delete-product.cjs +2 -2
  38. package/dist/actions/delete-product.cjs.map +1 -1
  39. package/dist/actions/delete-product.d.cts +3 -6
  40. package/dist/actions/delete-product.d.mts +3 -6
  41. package/dist/actions/delete-product.mjs +2 -2
  42. package/dist/actions/delete-product.mjs.map +1 -1
  43. package/dist/actions/download-expense-file.cjs +2 -2
  44. package/dist/actions/download-expense-file.cjs.map +1 -1
  45. package/dist/actions/download-expense-file.d.cts +3 -9
  46. package/dist/actions/download-expense-file.d.mts +3 -9
  47. package/dist/actions/download-expense-file.mjs +2 -2
  48. package/dist/actions/download-expense-file.mjs.map +1 -1
  49. package/dist/actions/download-invoice-pdf.cjs +2 -2
  50. package/dist/actions/download-invoice-pdf.cjs.map +1 -1
  51. package/dist/actions/download-invoice-pdf.d.cts +3 -9
  52. package/dist/actions/download-invoice-pdf.d.mts +3 -9
  53. package/dist/actions/download-invoice-pdf.mjs +2 -2
  54. package/dist/actions/download-invoice-pdf.mjs.map +1 -1
  55. package/dist/actions/get-expense.cjs +2 -2
  56. package/dist/actions/get-expense.cjs.map +1 -1
  57. package/dist/actions/get-expense.d.cts +3 -13
  58. package/dist/actions/get-expense.d.mts +3 -13
  59. package/dist/actions/get-expense.mjs +2 -2
  60. package/dist/actions/get-expense.mjs.map +1 -1
  61. package/dist/actions/get-invoice.cjs +29 -29
  62. package/dist/actions/get-invoice.cjs.map +1 -1
  63. package/dist/actions/get-invoice.d.cts +30 -81
  64. package/dist/actions/get-invoice.d.cts.map +1 -1
  65. package/dist/actions/get-invoice.d.mts +30 -81
  66. package/dist/actions/get-invoice.d.mts.map +1 -1
  67. package/dist/actions/get-invoice.mjs +29 -29
  68. package/dist/actions/get-invoice.mjs.map +1 -1
  69. package/dist/actions/get-payment.cjs +3 -3
  70. package/dist/actions/get-payment.cjs.map +1 -1
  71. package/dist/actions/get-payment.d.cts +4 -14
  72. package/dist/actions/get-payment.d.mts +4 -14
  73. package/dist/actions/get-payment.mjs +3 -3
  74. package/dist/actions/get-payment.mjs.map +1 -1
  75. package/dist/actions/get-product.cjs +2 -2
  76. package/dist/actions/get-product.cjs.map +1 -1
  77. package/dist/actions/get-product.d.cts +3 -11
  78. package/dist/actions/get-product.d.mts +3 -11
  79. package/dist/actions/get-product.mjs +2 -2
  80. package/dist/actions/get-product.mjs.map +1 -1
  81. package/dist/actions/get-profile.cjs +9 -9
  82. package/dist/actions/get-profile.cjs.map +1 -1
  83. package/dist/actions/get-profile.d.cts +10 -20
  84. package/dist/actions/get-profile.d.cts.map +1 -1
  85. package/dist/actions/get-profile.d.mts +10 -20
  86. package/dist/actions/get-profile.d.mts.map +1 -1
  87. package/dist/actions/get-profile.mjs +9 -9
  88. package/dist/actions/get-profile.mjs.map +1 -1
  89. package/dist/actions/list-currencies.cjs +3 -3
  90. package/dist/actions/list-currencies.cjs.map +1 -1
  91. package/dist/actions/list-currencies.d.cts +4 -10
  92. package/dist/actions/list-currencies.d.cts.map +1 -1
  93. package/dist/actions/list-currencies.d.mts +4 -10
  94. package/dist/actions/list-currencies.d.mts.map +1 -1
  95. package/dist/actions/list-currencies.mjs +3 -3
  96. package/dist/actions/list-currencies.mjs.map +1 -1
  97. package/dist/actions/list-customers.cjs +11 -11
  98. package/dist/actions/list-customers.cjs.map +1 -1
  99. package/dist/actions/list-customers.d.cts +12 -28
  100. package/dist/actions/list-customers.d.mts +12 -28
  101. package/dist/actions/list-customers.mjs +11 -11
  102. package/dist/actions/list-customers.mjs.map +1 -1
  103. package/dist/actions/list-expenses.cjs +14 -14
  104. package/dist/actions/list-expenses.cjs.map +1 -1
  105. package/dist/actions/list-expenses.d.cts +15 -34
  106. package/dist/actions/list-expenses.d.mts +15 -34
  107. package/dist/actions/list-expenses.mjs +14 -14
  108. package/dist/actions/list-expenses.mjs.map +1 -1
  109. package/dist/actions/list-invoices.cjs +35 -35
  110. package/dist/actions/list-invoices.cjs.map +1 -1
  111. package/dist/actions/list-invoices.d.cts +36 -98
  112. package/dist/actions/list-invoices.d.cts.map +1 -1
  113. package/dist/actions/list-invoices.d.mts +36 -98
  114. package/dist/actions/list-invoices.d.mts.map +1 -1
  115. package/dist/actions/list-invoices.mjs +35 -35
  116. package/dist/actions/list-invoices.mjs.map +1 -1
  117. package/dist/actions/list-payments.cjs +9 -9
  118. package/dist/actions/list-payments.cjs.map +1 -1
  119. package/dist/actions/list-payments.d.cts +10 -25
  120. package/dist/actions/list-payments.d.mts +10 -25
  121. package/dist/actions/list-payments.mjs +9 -9
  122. package/dist/actions/list-payments.mjs.map +1 -1
  123. package/dist/actions/list-products.cjs +6 -6
  124. package/dist/actions/list-products.cjs.map +1 -1
  125. package/dist/actions/list-products.d.cts +7 -23
  126. package/dist/actions/list-products.d.mts +7 -23
  127. package/dist/actions/list-products.mjs +6 -6
  128. package/dist/actions/list-products.mjs.map +1 -1
  129. package/dist/actions/update-customer.cjs +13 -13
  130. package/dist/actions/update-customer.cjs.map +1 -1
  131. package/dist/actions/update-customer.d.cts +14 -31
  132. package/dist/actions/update-customer.d.cts.map +1 -1
  133. package/dist/actions/update-customer.d.mts +14 -31
  134. package/dist/actions/update-customer.d.mts.map +1 -1
  135. package/dist/actions/update-customer.mjs +13 -13
  136. package/dist/actions/update-customer.mjs.map +1 -1
  137. package/dist/actions/update-expense-file.cjs +6 -6
  138. package/dist/actions/update-expense-file.cjs.map +1 -1
  139. package/dist/actions/update-expense-file.d.cts +7 -13
  140. package/dist/actions/update-expense-file.d.mts +7 -13
  141. package/dist/actions/update-expense-file.mjs +6 -6
  142. package/dist/actions/update-expense-file.mjs.map +1 -1
  143. package/dist/actions/update-expense.cjs +3 -3
  144. package/dist/actions/update-expense.cjs.map +1 -1
  145. package/dist/actions/update-expense.d.cts +4 -12
  146. package/dist/actions/update-expense.d.mts +4 -12
  147. package/dist/actions/update-expense.mjs +3 -3
  148. package/dist/actions/update-expense.mjs.map +1 -1
  149. package/dist/actions/update-invoice.cjs +57 -57
  150. package/dist/actions/update-invoice.cjs.map +1 -1
  151. package/dist/actions/update-invoice.d.cts +59 -114
  152. package/dist/actions/update-invoice.d.cts.map +1 -1
  153. package/dist/actions/update-invoice.d.mts +59 -114
  154. package/dist/actions/update-invoice.d.mts.map +1 -1
  155. package/dist/actions/update-invoice.mjs +57 -57
  156. package/dist/actions/update-invoice.mjs.map +1 -1
  157. package/dist/actions/update-product.cjs +2 -2
  158. package/dist/actions/update-product.cjs.map +1 -1
  159. package/dist/actions/update-product.d.cts +3 -11
  160. package/dist/actions/update-product.d.mts +3 -11
  161. package/dist/actions/update-product.mjs +2 -2
  162. package/dist/actions/update-product.mjs.map +1 -1
  163. package/package.json +1 -1
@@ -5,15 +5,12 @@ declare const FinmeiDeleteProductInput: z.ZodObject<{
5
5
  product_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteProductOutput: z.ZodObject<{
8
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  product_id: string;
13
- }, {
14
- success: boolean | null;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { finmeiDeleteProduct };
19
16
  //# sourceMappingURL=delete-product.d.mts.map
@@ -6,9 +6,9 @@ const finmeiDeleteProduct = action("FINMEI_DELETE_PRODUCT", {
6
6
  description: "Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.",
7
7
  input: z.object({ product_id: z.string().describe("Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.") }),
8
8
  output: z.object({
9
- message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").optional()),
9
+ message: z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").nullable().optional(),
10
10
  success: z.boolean().describe("True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.").nullable()
11
- })
11
+ }).passthrough()
12
12
  });
13
13
  //#endregion
14
14
  export { finmeiDeleteProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").optional()),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n});\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC;EAC/Q,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtK,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").nullable().optional(),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n}).passthrough();\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3N,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtK,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -6,8 +6,8 @@ const FinmeiDownloadExpenseFile_FileDownloadableSchema = zod.z.object({
6
6
  name: zod.z.string().describe("Name of the file").nullable(),
7
7
  s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
8
8
  mimetype: zod.z.string().describe("Mime type of the file.").nullable()
9
- });
10
- const FinmeiDownloadExpenseFileOutput = zod.z.object({ content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable() }).describe("Response containing the downloaded expense file content.");
9
+ }).passthrough();
10
+ const FinmeiDownloadExpenseFileOutput = zod.z.object({ content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable() }).passthrough().describe("Response containing the downloaded expense file content.");
11
11
  const finmeiDownloadExpenseFile = require_action.action("FINMEI_DOWNLOAD_EXPENSE_FILE", {
12
12
  slug: "finmei-download-expense-file",
13
13
  name: "Download Expense File",
@@ -1 +1 @@
1
- {"version":3,"file":"download-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/download-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to download the file for\"),\n}).describe(\"Request parameters for downloading an expense file.\");\nconst FinmeiDownloadExpenseFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const FinmeiDownloadExpenseFileOutput = z.object({\n content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable(),\n}).describe(\"Response containing the downloaded expense file content.\");\n\nexport const finmeiDownloadExpenseFile = action(\"FINMEI_DOWNLOAD_EXPENSE_FILE\", {\n slug: \"finmei-download-expense-file\",\n name: \"Download Expense File\",\n description: \"Tool to download the file associated with an expense. Returns the expense document file (PDF or image). Use when you need to retrieve the actual file content for an expense.\",\n input: FinmeiDownloadExpenseFileInput,\n output: FinmeiDownloadExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EACrF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAAS,iDAAiD,SAAS,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"download-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/download-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to download the file for\"),\n}).describe(\"Request parameters for downloading an expense file.\");\nconst FinmeiDownloadExpenseFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const FinmeiDownloadExpenseFileOutput = z.object({\n content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response containing the downloaded expense file content.\");\n\nexport const finmeiDownloadExpenseFile = action(\"FINMEI_DOWNLOAD_EXPENSE_FILE\", {\n slug: \"finmei-download-expense-file\",\n name: \"Download Expense File\",\n description: \"Tool to download the file associated with an expense. Returns the expense document file (PDF or image). Use when you need to retrieve the actual file content for an expense.\",\n input: FinmeiDownloadExpenseFileInput,\n output: FinmeiDownloadExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EACrF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAAS,iDAAiD,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,17 +9,11 @@ declare const FinmeiDownloadExpenseFileOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  s3url: z.ZodNullable<z.ZodString>;
11
11
  mimetype: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ }, z.core.$loose>;
14
14
  declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
- }, {
17
- content: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadExpenseFile };
25
19
  //# sourceMappingURL=download-expense-file.d.cts.map
@@ -9,17 +9,11 @@ declare const FinmeiDownloadExpenseFileOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  s3url: z.ZodNullable<z.ZodString>;
11
11
  mimetype: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ }, z.core.$loose>;
14
14
  declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
- }, {
17
- content: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadExpenseFile };
25
19
  //# sourceMappingURL=download-expense-file.d.mts.map
@@ -6,13 +6,13 @@ const FinmeiDownloadExpenseFile_FileDownloadableSchema = z.object({
6
6
  name: z.string().describe("Name of the file").nullable(),
7
7
  s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
8
8
  mimetype: z.string().describe("Mime type of the file.").nullable()
9
- });
9
+ }).passthrough();
10
10
  const finmeiDownloadExpenseFile = action("FINMEI_DOWNLOAD_EXPENSE_FILE", {
11
11
  slug: "finmei-download-expense-file",
12
12
  name: "Download Expense File",
13
13
  description: "Tool to download the file associated with an expense. Returns the expense document file (PDF or image). Use when you need to retrieve the actual file content for an expense.",
14
14
  input: FinmeiDownloadExpenseFileInput,
15
- output: z.object({ content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable() }).describe("Response containing the downloaded expense file content.")
15
+ output: z.object({ content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable() }).passthrough().describe("Response containing the downloaded expense file content.")
16
16
  });
17
17
  //#endregion
18
18
  export { finmeiDownloadExpenseFile };
@@ -1 +1 @@
1
- {"version":3,"file":"download-expense-file.mjs","names":[],"sources":["../../src/actions/download-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to download the file for\"),\n}).describe(\"Request parameters for downloading an expense file.\");\nconst FinmeiDownloadExpenseFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const FinmeiDownloadExpenseFileOutput = z.object({\n content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable(),\n}).describe(\"Response containing the downloaded expense file content.\");\n\nexport const finmeiDownloadExpenseFile = action(\"FINMEI_DOWNLOAD_EXPENSE_FILE\", {\n slug: \"finmei-download-expense-file\",\n name: \"Download Expense File\",\n description: \"Tool to download the file associated with an expense. Returns the expense document file (PDF or image). Use when you need to retrieve the actual file content for an expense.\",\n input: FinmeiDownloadExpenseFileInput,\n output: FinmeiDownloadExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EACrF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AAKD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,SAAS,iDAAiD,SAAS,EACrE,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"download-expense-file.mjs","names":[],"sources":["../../src/actions/download-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to download the file for\"),\n}).describe(\"Request parameters for downloading an expense file.\");\nconst FinmeiDownloadExpenseFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const FinmeiDownloadExpenseFileOutput = z.object({\n content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response containing the downloaded expense file content.\");\n\nexport const finmeiDownloadExpenseFile = action(\"FINMEI_DOWNLOAD_EXPENSE_FILE\", {\n slug: \"finmei-download-expense-file\",\n name: \"Download Expense File\",\n description: \"Tool to download the file associated with an expense. Returns the expense document file (PDF or image). Use when you need to retrieve the actual file content for an expense.\",\n input: FinmeiDownloadExpenseFileInput,\n output: FinmeiDownloadExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EACrF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,SAAS,iDAAiD,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
@@ -6,8 +6,8 @@ const FinmeiDownloadInvoicePdf_FileDownloadableSchema = zod.z.object({
6
6
  name: zod.z.string().describe("Name of the file").nullable(),
7
7
  s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
8
8
  mimetype: zod.z.string().describe("Mime type of the file.").nullable()
9
- });
10
- const FinmeiDownloadInvoicePdfOutput = zod.z.object({ file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable() }).describe("Response model returning the downloaded PDF file.");
9
+ }).passthrough();
10
+ const FinmeiDownloadInvoicePdfOutput = zod.z.object({ file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable() }).passthrough().describe("Response model returning the downloaded PDF file.");
11
11
  const finmeiDownloadInvoicePdf = require_action.action("FINMEI_DOWNLOAD_INVOICE_PDF", {
12
12
  slug: "finmei-download-invoice-pdf",
13
13
  name: "Download Invoice PDF",
@@ -1 +1 @@
1
- {"version":3,"file":"download-invoice-pdf.cjs","names":["z","action"],"sources":["../../src/actions/download-invoice-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadInvoicePdfInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to download as PDF\"),\n}).describe(\"Request model for downloading an invoice as a PDF file.\");\nconst FinmeiDownloadInvoicePdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const FinmeiDownloadInvoicePdfOutput = z.object({\n file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable(),\n}).describe(\"Response model returning the downloaded PDF file.\");\n\nexport const finmeiDownloadInvoicePdf = action(\"FINMEI_DOWNLOAD_INVOICE_PDF\", {\n slug: \"finmei-download-invoice-pdf\",\n name: \"Download Invoice PDF\",\n description: \"Tool to download an invoice as a PDF file. Use when you need to retrieve the PDF version of an invoice.\",\n input: FinmeiDownloadInvoicePdfInput,\n output: FinmeiDownloadInvoicePdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAM,gDAAgD,SAAS,EACjE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"download-invoice-pdf.cjs","names":["z","action"],"sources":["../../src/actions/download-invoice-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadInvoicePdfInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to download as PDF\"),\n}).describe(\"Request model for downloading an invoice as a PDF file.\");\nconst FinmeiDownloadInvoicePdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const FinmeiDownloadInvoicePdfOutput = z.object({\n file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model returning the downloaded PDF file.\");\n\nexport const finmeiDownloadInvoicePdf = action(\"FINMEI_DOWNLOAD_INVOICE_PDF\", {\n slug: \"finmei-download-invoice-pdf\",\n name: \"Download Invoice PDF\",\n description: \"Tool to download an invoice as a PDF file. Use when you need to retrieve the PDF version of an invoice.\",\n input: FinmeiDownloadInvoicePdfInput,\n output: FinmeiDownloadInvoicePdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAM,gDAAgD,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,17 +9,11 @@ declare const FinmeiDownloadInvoicePdfOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  s3url: z.ZodNullable<z.ZodString>;
11
11
  mimetype: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ }, z.core.$loose>;
14
14
  declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  invoice_id: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadInvoicePdf };
25
19
  //# sourceMappingURL=download-invoice-pdf.d.cts.map
@@ -9,17 +9,11 @@ declare const FinmeiDownloadInvoicePdfOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  s3url: z.ZodNullable<z.ZodString>;
11
11
  mimetype: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ }, z.core.$loose>;
14
14
  declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  invoice_id: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadInvoicePdf };
25
19
  //# sourceMappingURL=download-invoice-pdf.d.mts.map
@@ -6,13 +6,13 @@ const FinmeiDownloadInvoicePdf_FileDownloadableSchema = z.object({
6
6
  name: z.string().describe("Name of the file").nullable(),
7
7
  s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
8
8
  mimetype: z.string().describe("Mime type of the file.").nullable()
9
- });
9
+ }).passthrough();
10
10
  const finmeiDownloadInvoicePdf = action("FINMEI_DOWNLOAD_INVOICE_PDF", {
11
11
  slug: "finmei-download-invoice-pdf",
12
12
  name: "Download Invoice PDF",
13
13
  description: "Tool to download an invoice as a PDF file. Use when you need to retrieve the PDF version of an invoice.",
14
14
  input: FinmeiDownloadInvoicePdfInput,
15
- output: z.object({ file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable() }).describe("Response model returning the downloaded PDF file.")
15
+ output: z.object({ file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable() }).passthrough().describe("Response model returning the downloaded PDF file.")
16
16
  });
17
17
  //#endregion
18
18
  export { finmeiDownloadInvoicePdf };
@@ -1 +1 @@
1
- {"version":3,"file":"download-invoice-pdf.mjs","names":[],"sources":["../../src/actions/download-invoice-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadInvoicePdfInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to download as PDF\"),\n}).describe(\"Request model for downloading an invoice as a PDF file.\");\nconst FinmeiDownloadInvoicePdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const FinmeiDownloadInvoicePdfOutput = z.object({\n file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable(),\n}).describe(\"Response model returning the downloaded PDF file.\");\n\nexport const finmeiDownloadInvoicePdf = action(\"FINMEI_DOWNLOAD_INVOICE_PDF\", {\n slug: \"finmei-download-invoice-pdf\",\n name: \"Download Invoice PDF\",\n description: \"Tool to download an invoice as a PDF file. Use when you need to retrieve the PDF version of an invoice.\",\n input: FinmeiDownloadInvoicePdfInput,\n output: FinmeiDownloadInvoicePdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AAKD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,gDAAgD,SAAS,EACjE,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"download-invoice-pdf.mjs","names":[],"sources":["../../src/actions/download-invoice-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDownloadInvoicePdfInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to download as PDF\"),\n}).describe(\"Request model for downloading an invoice as a PDF file.\");\nconst FinmeiDownloadInvoicePdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const FinmeiDownloadInvoicePdfOutput = z.object({\n file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model returning the downloaded PDF file.\");\n\nexport const finmeiDownloadInvoicePdf = action(\"FINMEI_DOWNLOAD_INVOICE_PDF\", {\n slug: \"finmei-download-invoice-pdf\",\n name: \"Download Invoice PDF\",\n description: \"Tool to download an invoice as a PDF file. Use when you need to retrieve the PDF version of an invoice.\",\n input: FinmeiDownloadInvoicePdfInput,\n output: FinmeiDownloadInvoicePdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,gDAAgD,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -10,8 +10,8 @@ const FinmeiGetExpense_ExpenseDataSchema = zod.z.object({
10
10
  currency: zod.z.string().describe("Currency code of the expense").nullable(),
11
11
  created_at: zod.z.number().int().describe("Unix timestamp when the expense was created").nullable(),
12
12
  updated_at: zod.z.number().int().describe("Unix timestamp when the expense was last updated").nullable()
13
- }).describe("Expense data object returned by the API");
14
- const FinmeiGetExpenseOutput = zod.z.object({ data: FinmeiGetExpense_ExpenseDataSchema.nullable() }).describe("Response model containing expense data");
13
+ }).passthrough().describe("Expense data object returned by the API");
14
+ const FinmeiGetExpenseOutput = zod.z.object({ data: FinmeiGetExpense_ExpenseDataSchema.nullable() }).passthrough().describe("Response model containing expense data");
15
15
  const finmeiGetExpense = require_action.action("FINMEI_GET_EXPENSE", {
16
16
  slug: "finmei-get-expense",
17
17
  name: "Get Expense by ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-expense.cjs","names":["z","action"],"sources":["../../src/actions/get-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to retrieve\"),\n}).describe(\"Request model for GET /expenses/{id}\");\nconst FinmeiGetExpense_ExpenseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense\").nullable(),\n total: z.number().describe(\"Total amount of the expense\").nullable(),\n seller: z.string().describe(\"Seller or vendor name\").nullable(),\n currency: z.string().describe(\"Currency code of the expense\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when the expense was created\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when the expense was last updated\").nullable(),\n}).describe(\"Expense data object returned by the API\");\nexport const FinmeiGetExpenseOutput = z.object({\n data: FinmeiGetExpense_ExpenseDataSchema.nullable(),\n}).describe(\"Response model containing expense data\");\n\nexport const finmeiGetExpense = action(\"FINMEI_GET_EXPENSE\", {\n slug: \"finmei-get-expense\",\n name: \"Get Expense by ID\",\n description: \"Tool to retrieve a single expense by its ID. Use when you need to get details about a specific expense including date, total, currency, and seller information.\",\n input: FinmeiGetExpenseInput,\n output: FinmeiGetExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-expense.cjs","names":["z","action"],"sources":["../../src/actions/get-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to retrieve\"),\n}).describe(\"Request model for GET /expenses/{id}\");\nconst FinmeiGetExpense_ExpenseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense\").nullable(),\n total: z.number().describe(\"Total amount of the expense\").nullable(),\n seller: z.string().describe(\"Seller or vendor name\").nullable(),\n currency: z.string().describe(\"Currency code of the expense\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when the expense was created\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when the expense was last updated\").nullable(),\n}).passthrough().describe(\"Expense data object returned by the API\");\nexport const FinmeiGetExpenseOutput = z.object({\n data: FinmeiGetExpense_ExpenseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing expense data\");\n\nexport const finmeiGetExpense = action(\"FINMEI_GET_EXPENSE\", {\n slug: \"finmei-get-expense\",\n name: \"Get Expense by ID\",\n description: \"Tool to retrieve a single expense by its ID. Use when you need to get details about a specific expense including date, total, currency, and seller information.\",\n input: FinmeiGetExpenseInput,\n output: FinmeiGetExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,21 +13,11 @@ declare const FinmeiGetExpenseOutput: z.ZodObject<{
13
13
  currency: z.ZodNullable<z.ZodString>;
14
14
  created_at: z.ZodNullable<z.ZodNumber>;
15
15
  updated_at: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>;
18
18
  declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  id: string;
20
- }, {
21
- data: {
22
- id: string | null;
23
- date: string | null;
24
- total: number | null;
25
- seller: string | null;
26
- currency: string | null;
27
- created_at: number | null;
28
- updated_at: number | null;
29
- } | null;
30
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
21
  //#endregion
32
22
  export { finmeiGetExpense };
33
23
  //# sourceMappingURL=get-expense.d.cts.map
@@ -13,21 +13,11 @@ declare const FinmeiGetExpenseOutput: z.ZodObject<{
13
13
  currency: z.ZodNullable<z.ZodString>;
14
14
  created_at: z.ZodNullable<z.ZodNumber>;
15
15
  updated_at: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>;
18
18
  declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  id: string;
20
- }, {
21
- data: {
22
- id: string | null;
23
- date: string | null;
24
- total: number | null;
25
- seller: string | null;
26
- currency: string | null;
27
- created_at: number | null;
28
- updated_at: number | null;
29
- } | null;
30
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
21
  //#endregion
32
22
  export { finmeiGetExpense };
33
23
  //# sourceMappingURL=get-expense.d.mts.map
@@ -10,13 +10,13 @@ const FinmeiGetExpense_ExpenseDataSchema = z.object({
10
10
  currency: z.string().describe("Currency code of the expense").nullable(),
11
11
  created_at: z.number().int().describe("Unix timestamp when the expense was created").nullable(),
12
12
  updated_at: z.number().int().describe("Unix timestamp when the expense was last updated").nullable()
13
- }).describe("Expense data object returned by the API");
13
+ }).passthrough().describe("Expense data object returned by the API");
14
14
  const finmeiGetExpense = action("FINMEI_GET_EXPENSE", {
15
15
  slug: "finmei-get-expense",
16
16
  name: "Get Expense by ID",
17
17
  description: "Tool to retrieve a single expense by its ID. Use when you need to get details about a specific expense including date, total, currency, and seller information.",
18
18
  input: FinmeiGetExpenseInput,
19
- output: z.object({ data: FinmeiGetExpense_ExpenseDataSchema.nullable() }).describe("Response model containing expense data")
19
+ output: z.object({ data: FinmeiGetExpense_ExpenseDataSchema.nullable() }).passthrough().describe("Response model containing expense data")
20
20
  });
21
21
  //#endregion
22
22
  export { finmeiGetExpense };
@@ -1 +1 @@
1
- {"version":3,"file":"get-expense.mjs","names":[],"sources":["../../src/actions/get-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to retrieve\"),\n}).describe(\"Request model for GET /expenses/{id}\");\nconst FinmeiGetExpense_ExpenseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense\").nullable(),\n total: z.number().describe(\"Total amount of the expense\").nullable(),\n seller: z.string().describe(\"Seller or vendor name\").nullable(),\n currency: z.string().describe(\"Currency code of the expense\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when the expense was created\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when the expense was last updated\").nullable(),\n}).describe(\"Expense data object returned by the API\");\nexport const FinmeiGetExpenseOutput = z.object({\n data: FinmeiGetExpense_ExpenseDataSchema.nullable(),\n}).describe(\"Response model containing expense data\");\n\nexport const finmeiGetExpense = action(\"FINMEI_GET_EXPENSE\", {\n slug: \"finmei-get-expense\",\n name: \"Get Expense by ID\",\n description: \"Tool to retrieve a single expense by its ID. Use when you need to get details about a specific expense including date, total, currency, and seller information.\",\n input: FinmeiGetExpenseInput,\n output: FinmeiGetExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-expense.mjs","names":[],"sources":["../../src/actions/get-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to retrieve\"),\n}).describe(\"Request model for GET /expenses/{id}\");\nconst FinmeiGetExpense_ExpenseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense\").nullable(),\n total: z.number().describe(\"Total amount of the expense\").nullable(),\n seller: z.string().describe(\"Seller or vendor name\").nullable(),\n currency: z.string().describe(\"Currency code of the expense\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when the expense was created\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when the expense was last updated\").nullable(),\n}).passthrough().describe(\"Expense data object returned by the API\");\nexport const FinmeiGetExpenseOutput = z.object({\n data: FinmeiGetExpense_ExpenseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing expense data\");\n\nexport const finmeiGetExpense = action(\"FINMEI_GET_EXPENSE\", {\n slug: \"finmei-get-expense\",\n name: \"Get Expense by ID\",\n description: \"Tool to retrieve a single expense by its ID. Use when you need to get details about a specific expense including date, total, currency, and seller information.\",\n input: FinmeiGetExpenseInput,\n output: FinmeiGetExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -3,43 +3,43 @@ let zod = require("zod");
3
3
  //#region src/actions/get-invoice.ts
4
4
  const FinmeiGetInvoiceInput = zod.z.object({ id: zod.z.string().describe("Invoice ID to retrieve") }).describe("Request parameters for retrieving a single invoice by ID.");
5
5
  const FinmeiGetInvoice_BuyerSchema = zod.z.object({
6
- type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of buyer (company or individual)").optional()),
7
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer email").optional()),
8
- phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer phone number").optional()),
9
- address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer address").optional()),
10
- vat_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("VAT registration number").optional()),
11
- last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name (for individual buyers)").optional()),
12
- first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name (for individual buyers)").optional()),
13
- company_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company registration code").optional()),
14
- company_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name (for company buyers)").optional()),
15
- individual_tax_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Individual tax ID").optional())
16
- }).describe("Buyer/customer information on the invoice");
6
+ type: zod.z.string().describe("Type of buyer (company or individual)").nullable().optional(),
7
+ email: zod.z.string().describe("Buyer email").nullable().optional(),
8
+ phone: zod.z.string().describe("Buyer phone number").nullable().optional(),
9
+ address: zod.z.string().describe("Buyer address").nullable().optional(),
10
+ vat_code: zod.z.string().describe("VAT registration number").nullable().optional(),
11
+ last_name: zod.z.string().describe("Last name (for individual buyers)").nullable().optional(),
12
+ first_name: zod.z.string().describe("First name (for individual buyers)").nullable().optional(),
13
+ company_code: zod.z.string().describe("Company registration code").nullable().optional(),
14
+ company_name: zod.z.string().describe("Company name (for company buyers)").nullable().optional(),
15
+ individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
16
+ }).passthrough().describe("Buyer/customer information on the invoice");
17
17
  const FinmeiGetInvoice_InvoiceItemSchema = zod.z.object({
18
18
  id: zod.z.string().describe("Unique item identifier").nullable(),
19
19
  name: zod.z.string().describe("Item/product/service name").nullable(),
20
20
  price: zod.z.number().describe("Unit price").nullable(),
21
21
  units: zod.z.string().describe("Unit of measurement (hours, pcs, etc.)").nullable(),
22
22
  quantity: zod.z.number().describe("Quantity").nullable(),
23
- vat_percentage: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("VAT/tax percentage applied").optional())
24
- }).describe("Line item on the invoice");
23
+ vat_percentage: zod.z.number().describe("VAT/tax percentage applied").nullable().optional()
24
+ }).passthrough().describe("Line item on the invoice");
25
25
  const FinmeiGetInvoice_SellerSchema = zod.z.object({
26
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business email").optional()),
27
- phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business phone number").optional()),
28
- address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business address").optional()),
29
- vat_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("VAT registration number").optional()),
30
- last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name (for individual sellers)").optional()),
31
- first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name (for individual sellers)").optional()),
32
- company_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company registration code").optional()),
33
- company_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name (for company sellers)").optional()),
34
- business_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of business (company or individual)").optional()),
35
- individual_tax_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Individual tax ID").optional())
36
- }).describe("Seller/business information on the invoice");
26
+ email: zod.z.string().describe("Business email").nullable().optional(),
27
+ phone: zod.z.string().describe("Business phone number").nullable().optional(),
28
+ address: zod.z.string().describe("Business address").nullable().optional(),
29
+ vat_code: zod.z.string().describe("VAT registration number").nullable().optional(),
30
+ last_name: zod.z.string().describe("Last name (for individual sellers)").nullable().optional(),
31
+ first_name: zod.z.string().describe("First name (for individual sellers)").nullable().optional(),
32
+ company_code: zod.z.string().describe("Company registration code").nullable().optional(),
33
+ company_name: zod.z.string().describe("Company name (for company sellers)").nullable().optional(),
34
+ business_type: zod.z.string().describe("Type of business (company or individual)").nullable().optional(),
35
+ individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
36
+ }).passthrough().describe("Seller/business information on the invoice");
37
37
  const FinmeiGetInvoiceOutput = zod.z.object({
38
38
  id: zod.z.string().describe("Unique invoice identifier").nullable(),
39
39
  vat: zod.z.number().describe("Total VAT/tax amount").nullable(),
40
40
  buyer: FinmeiGetInvoice_BuyerSchema.nullable(),
41
- items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FinmeiGetInvoice_InvoiceItemSchema).describe("List of line items on the invoice").optional()),
42
- notes: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Additional notes on the invoice").optional()),
41
+ items: zod.z.array(FinmeiGetInvoice_InvoiceItemSchema).describe("List of line items on the invoice").nullable().optional(),
42
+ notes: zod.z.string().describe("Additional notes on the invoice").nullable().optional(),
43
43
  seller: FinmeiGetInvoice_SellerSchema.nullable(),
44
44
  series: zod.z.string().describe("Invoice series/prefix").nullable(),
45
45
  currency: zod.z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable(),
@@ -52,11 +52,11 @@ const FinmeiGetInvoiceOutput = zod.z.object({
52
52
  invoice_date: zod.z.string().describe("Invoice date in YYYY-MM-DD format").nullable(),
53
53
  invoice_type: zod.z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)").nullable(),
54
54
  invoice_number: zod.z.string().describe("Invoice number within the series").nullable(),
55
- pay_until_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment due date in YYYY-MM-DD format").optional()),
55
+ pay_until_date: zod.z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
56
56
  payment_status: zod.z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)").nullable(),
57
57
  total_incl_vat: zod.z.number().describe("Total amount including VAT").nullable(),
58
- payment_options: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("Available payment options").optional())
59
- }).describe("Complete invoice details returned by the API.");
58
+ payment_options: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Available payment options").nullable().optional()
59
+ }).passthrough().describe("Complete invoice details returned by the API.");
60
60
  const finmeiGetInvoice = require_action.action("FINMEI_GET_INVOICE", {
61
61
  slug: "finmei-get-invoice",
62
62
  name: "Get Invoice by ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-invoice.cjs","names":["z","action"],"sources":["../../src/actions/get-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetInvoiceInput = z.object({\n id: z.string().describe(\"Invoice ID to retrieve\"),\n}).describe(\"Request parameters for retrieving a single invoice by ID.\");\nconst FinmeiGetInvoice_BuyerSchema = z.object({\n type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of buyer (company or individual)\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual buyers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual buyers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company buyers)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"VAT/tax percentage applied\").optional()),\n}).describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_SellerSchema = z.object({\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual sellers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual sellers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company sellers)\").optional()),\n business_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of business (company or individual)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiGetInvoice_BuyerSchema.nullable(),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiGetInvoice_InvoiceItemSchema).describe(\"List of line items on the invoice\").optional()),\n notes: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Additional notes on the invoice\").optional()),\n seller: FinmeiGetInvoice_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date in YYYY-MM-DD format\").optional()),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"Available payment options\").optional()),\n}).describe(\"Complete invoice details returned by the API.\");\n\nexport const finmeiGetInvoice = action(\"FINMEI_GET_INVOICE\", {\n slug: \"finmei-get-invoice\",\n name: \"Get Invoice by ID\",\n description: \"Tool to retrieve a single invoice by its ID. Use when you need full invoice details including buyer, seller, items, amounts, and payment options.\",\n input: FinmeiGetInvoiceInput,\n output: FinmeiGetInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CAC3I,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC;CAClH,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC;CACzH,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC;CACtH,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC;CACjI,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC;CAC5I,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CA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AAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CACrJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;AACvJ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-invoice.cjs","names":["z","action"],"sources":["../../src/actions/get-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetInvoiceInput = z.object({\n id: z.string().describe(\"Invoice ID to retrieve\"),\n}).describe(\"Request parameters for retrieving a single invoice by ID.\");\nconst FinmeiGetInvoice_BuyerSchema = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).passthrough().describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_SellerSchema = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiGetInvoice_BuyerSchema.nullable(),\n items: z.array(FinmeiGetInvoice_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiGetInvoice_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().describe(\"Complete invoice details returned by the API.\");\n\nexport const finmeiGetInvoice = action(\"FINMEI_GET_INVOICE\", {\n slug: \"finmei-get-invoice\",\n name: \"Get Invoice by ID\",\n description: \"Tool to retrieve a single invoice by its ID. Use when you need full invoice details including buyer, seller, items, amounts, and payment options.\",\n input: FinmeiGetInvoiceInput,\n output: FinmeiGetInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAA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