@keystrokehq/finmei 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) 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 +7 -7
  4. package/dist/actions/create-expense.cjs.map +1 -1
  5. package/dist/actions/create-expense.d.cts +33 -3
  6. package/dist/actions/create-expense.d.cts.map +1 -1
  7. package/dist/actions/create-expense.d.mts +33 -3
  8. package/dist/actions/create-expense.d.mts.map +1 -1
  9. package/dist/actions/create-expense.mjs +7 -7
  10. package/dist/actions/create-expense.mjs.map +1 -1
  11. package/dist/actions/create-invoice.cjs.map +1 -1
  12. package/dist/actions/create-invoice.d.cts +166 -3
  13. package/dist/actions/create-invoice.d.cts.map +1 -1
  14. package/dist/actions/create-invoice.d.mts +166 -3
  15. package/dist/actions/create-invoice.d.mts.map +1 -1
  16. package/dist/actions/create-invoice.mjs.map +1 -1
  17. package/dist/actions/delete-customer.cjs.map +1 -1
  18. package/dist/actions/delete-customer.d.cts +7 -3
  19. package/dist/actions/delete-customer.d.cts.map +1 -1
  20. package/dist/actions/delete-customer.d.mts +7 -3
  21. package/dist/actions/delete-customer.d.mts.map +1 -1
  22. package/dist/actions/delete-customer.mjs.map +1 -1
  23. package/dist/actions/delete-invoice.cjs +1 -1
  24. package/dist/actions/delete-invoice.cjs.map +1 -1
  25. package/dist/actions/delete-invoice.d.cts +10 -3
  26. package/dist/actions/delete-invoice.d.cts.map +1 -1
  27. package/dist/actions/delete-invoice.d.mts +10 -3
  28. package/dist/actions/delete-invoice.d.mts.map +1 -1
  29. package/dist/actions/delete-invoice.mjs +1 -1
  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 +9 -3
  34. package/dist/actions/delete-payment.d.cts.map +1 -1
  35. package/dist/actions/delete-payment.d.mts +9 -3
  36. package/dist/actions/delete-payment.d.mts.map +1 -1
  37. package/dist/actions/delete-payment.mjs +1 -1
  38. package/dist/actions/delete-payment.mjs.map +1 -1
  39. package/dist/actions/delete-product.cjs +1 -1
  40. package/dist/actions/delete-product.cjs.map +1 -1
  41. package/dist/actions/delete-product.d.cts +10 -3
  42. package/dist/actions/delete-product.d.cts.map +1 -1
  43. package/dist/actions/delete-product.d.mts +10 -3
  44. package/dist/actions/delete-product.d.mts.map +1 -1
  45. package/dist/actions/delete-product.mjs +1 -1
  46. package/dist/actions/delete-product.mjs.map +1 -1
  47. package/dist/actions/download-expense-file.cjs +3 -3
  48. package/dist/actions/download-expense-file.cjs.map +1 -1
  49. package/dist/actions/download-expense-file.d.cts +13 -3
  50. package/dist/actions/download-expense-file.d.cts.map +1 -1
  51. package/dist/actions/download-expense-file.d.mts +13 -3
  52. package/dist/actions/download-expense-file.d.mts.map +1 -1
  53. package/dist/actions/download-expense-file.mjs +3 -3
  54. package/dist/actions/download-expense-file.mjs.map +1 -1
  55. package/dist/actions/download-invoice-pdf.cjs +3 -3
  56. package/dist/actions/download-invoice-pdf.cjs.map +1 -1
  57. package/dist/actions/download-invoice-pdf.d.cts +13 -3
  58. package/dist/actions/download-invoice-pdf.d.cts.map +1 -1
  59. package/dist/actions/download-invoice-pdf.d.mts +13 -3
  60. package/dist/actions/download-invoice-pdf.d.mts.map +1 -1
  61. package/dist/actions/download-invoice-pdf.mjs +3 -3
  62. package/dist/actions/download-invoice-pdf.mjs.map +1 -1
  63. package/dist/actions/get-expense.cjs +7 -7
  64. package/dist/actions/get-expense.cjs.map +1 -1
  65. package/dist/actions/get-expense.d.cts +17 -3
  66. package/dist/actions/get-expense.d.cts.map +1 -1
  67. package/dist/actions/get-expense.d.mts +17 -3
  68. package/dist/actions/get-expense.d.mts.map +1 -1
  69. package/dist/actions/get-expense.mjs +7 -7
  70. package/dist/actions/get-expense.mjs.map +1 -1
  71. package/dist/actions/get-invoice.cjs +20 -20
  72. package/dist/actions/get-invoice.cjs.map +1 -1
  73. package/dist/actions/get-invoice.d.cts +58 -3
  74. package/dist/actions/get-invoice.d.cts.map +1 -1
  75. package/dist/actions/get-invoice.d.mts +58 -3
  76. package/dist/actions/get-invoice.d.mts.map +1 -1
  77. package/dist/actions/get-invoice.mjs +20 -20
  78. package/dist/actions/get-invoice.mjs.map +1 -1
  79. package/dist/actions/get-payment.cjs +7 -7
  80. package/dist/actions/get-payment.cjs.map +1 -1
  81. package/dist/actions/get-payment.d.cts +17 -3
  82. package/dist/actions/get-payment.d.cts.map +1 -1
  83. package/dist/actions/get-payment.d.mts +17 -3
  84. package/dist/actions/get-payment.d.mts.map +1 -1
  85. package/dist/actions/get-payment.mjs +7 -7
  86. package/dist/actions/get-payment.mjs.map +1 -1
  87. package/dist/actions/get-product.cjs +6 -6
  88. package/dist/actions/get-product.cjs.map +1 -1
  89. package/dist/actions/get-product.d.cts +15 -3
  90. package/dist/actions/get-product.d.cts.map +1 -1
  91. package/dist/actions/get-product.d.mts +15 -3
  92. package/dist/actions/get-product.d.mts.map +1 -1
  93. package/dist/actions/get-product.mjs +6 -6
  94. package/dist/actions/get-product.mjs.map +1 -1
  95. package/dist/actions/get-profile.cjs.map +1 -1
  96. package/dist/actions/get-profile.d.cts +13 -3
  97. package/dist/actions/get-profile.d.cts.map +1 -1
  98. package/dist/actions/get-profile.d.mts +13 -3
  99. package/dist/actions/get-profile.d.mts.map +1 -1
  100. package/dist/actions/get-profile.mjs.map +1 -1
  101. package/dist/actions/list-currencies.cjs +2 -2
  102. package/dist/actions/list-currencies.cjs.map +1 -1
  103. package/dist/actions/list-currencies.d.cts +9 -3
  104. package/dist/actions/list-currencies.d.cts.map +1 -1
  105. package/dist/actions/list-currencies.d.mts +9 -3
  106. package/dist/actions/list-currencies.d.mts.map +1 -1
  107. package/dist/actions/list-currencies.mjs +2 -2
  108. package/dist/actions/list-currencies.mjs.map +1 -1
  109. package/dist/actions/list-customers.cjs +5 -5
  110. package/dist/actions/list-customers.cjs.map +1 -1
  111. package/dist/actions/list-customers.d.cts +29 -3
  112. package/dist/actions/list-customers.d.cts.map +1 -1
  113. package/dist/actions/list-customers.d.mts +29 -3
  114. package/dist/actions/list-customers.d.mts.map +1 -1
  115. package/dist/actions/list-customers.mjs +5 -5
  116. package/dist/actions/list-customers.mjs.map +1 -1
  117. package/dist/actions/list-expenses.cjs +5 -5
  118. package/dist/actions/list-expenses.cjs.map +1 -1
  119. package/dist/actions/list-expenses.d.cts +28 -3
  120. package/dist/actions/list-expenses.d.cts.map +1 -1
  121. package/dist/actions/list-expenses.d.mts +28 -3
  122. package/dist/actions/list-expenses.d.mts.map +1 -1
  123. package/dist/actions/list-expenses.mjs +5 -5
  124. package/dist/actions/list-expenses.mjs.map +1 -1
  125. package/dist/actions/list-invoices.cjs +25 -25
  126. package/dist/actions/list-invoices.cjs.map +1 -1
  127. package/dist/actions/list-invoices.d.cts +71 -3
  128. package/dist/actions/list-invoices.d.cts.map +1 -1
  129. package/dist/actions/list-invoices.d.mts +71 -3
  130. package/dist/actions/list-invoices.d.mts.map +1 -1
  131. package/dist/actions/list-invoices.mjs +25 -25
  132. package/dist/actions/list-invoices.mjs.map +1 -1
  133. package/dist/actions/list-payments.cjs +6 -6
  134. package/dist/actions/list-payments.cjs.map +1 -1
  135. package/dist/actions/list-payments.d.cts +34 -3
  136. package/dist/actions/list-payments.d.cts.map +1 -1
  137. package/dist/actions/list-payments.d.mts +34 -3
  138. package/dist/actions/list-payments.d.mts.map +1 -1
  139. package/dist/actions/list-payments.mjs +6 -6
  140. package/dist/actions/list-payments.mjs.map +1 -1
  141. package/dist/actions/list-products.cjs +8 -8
  142. package/dist/actions/list-products.cjs.map +1 -1
  143. package/dist/actions/list-products.d.cts +35 -3
  144. package/dist/actions/list-products.d.cts.map +1 -1
  145. package/dist/actions/list-products.d.mts +35 -3
  146. package/dist/actions/list-products.d.mts.map +1 -1
  147. package/dist/actions/list-products.mjs +8 -8
  148. package/dist/actions/list-products.mjs.map +1 -1
  149. package/dist/actions/update-customer.cjs +3 -3
  150. package/dist/actions/update-customer.cjs.map +1 -1
  151. package/dist/actions/update-customer.d.cts +46 -3
  152. package/dist/actions/update-customer.d.cts.map +1 -1
  153. package/dist/actions/update-customer.d.mts +46 -3
  154. package/dist/actions/update-customer.d.mts.map +1 -1
  155. package/dist/actions/update-customer.mjs +3 -3
  156. package/dist/actions/update-customer.mjs.map +1 -1
  157. package/dist/actions/update-expense-file.cjs.map +1 -1
  158. package/dist/actions/update-expense-file.d.cts +23 -3
  159. package/dist/actions/update-expense-file.d.cts.map +1 -1
  160. package/dist/actions/update-expense-file.d.mts +23 -3
  161. package/dist/actions/update-expense-file.d.mts.map +1 -1
  162. package/dist/actions/update-expense-file.mjs.map +1 -1
  163. package/dist/actions/update-expense.cjs +5 -5
  164. package/dist/actions/update-expense.cjs.map +1 -1
  165. package/dist/actions/update-expense.d.cts +23 -3
  166. package/dist/actions/update-expense.d.cts.map +1 -1
  167. package/dist/actions/update-expense.d.mts +23 -3
  168. package/dist/actions/update-expense.d.mts.map +1 -1
  169. package/dist/actions/update-expense.mjs +5 -5
  170. package/dist/actions/update-expense.mjs.map +1 -1
  171. package/dist/actions/update-invoice.cjs.map +1 -1
  172. package/dist/actions/update-invoice.d.cts +147 -3
  173. package/dist/actions/update-invoice.d.cts.map +1 -1
  174. package/dist/actions/update-invoice.d.mts +147 -3
  175. package/dist/actions/update-invoice.d.mts.map +1 -1
  176. package/dist/actions/update-invoice.mjs.map +1 -1
  177. package/dist/actions/update-product.cjs +6 -6
  178. package/dist/actions/update-product.cjs.map +1 -1
  179. package/dist/actions/update-product.d.cts +23 -3
  180. package/dist/actions/update-product.d.cts.map +1 -1
  181. package/dist/actions/update-product.d.mts +23 -3
  182. package/dist/actions/update-product.d.mts.map +1 -1
  183. package/dist/actions/update-product.mjs +6 -6
  184. package/dist/actions/update-product.mjs.map +1 -1
  185. package/dist/catalog.cjs +7 -1
  186. package/dist/catalog.cjs.map +1 -1
  187. package/dist/catalog.d.cts +8 -0
  188. package/dist/catalog.d.mts +8 -0
  189. package/dist/catalog.mjs +7 -1
  190. package/dist/catalog.mjs.map +1 -1
  191. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -7,7 +7,7 @@ const finmeiDeleteProduct = action("FINMEI_DELETE_PRODUCT", {
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
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
- success: z.boolean().describe("True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.")
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
  })
12
12
  });
13
13
  //#endregion
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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,OAZoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAUS;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3N,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H;CAC3J,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});\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,CAOU;AACV,CAAC"}
@@ -3,9 +3,9 @@ let zod = require("zod");
3
3
  //#region src/actions/download-expense-file.ts
4
4
  const FinmeiDownloadExpenseFileInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the expense to download the file for") }).describe("Request parameters for downloading an expense file.");
5
5
  const FinmeiDownloadExpenseFile_FileDownloadableSchema = zod.z.object({
6
- name: zod.z.string().describe("Name of the file"),
7
- s3url: zod.z.string().describe("S3 URL of the downloaded file."),
8
- mimetype: zod.z.string().describe("Mime type of the file.")
6
+ name: zod.z.string().describe("Name of the file").nullable(),
7
+ s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
8
+ mimetype: zod.z.string().describe("Mime type of the file.").nullable()
9
9
  });
10
10
  const FinmeiDownloadExpenseFileOutput = zod.z.object({ content: FinmeiDownloadExpenseFile_FileDownloadableSchema.nullable() }).describe("Response containing the downloaded expense file content.");
11
11
  const finmeiDownloadExpenseFile = require_action.action("FINMEI_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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const FinmeiDownloadExpenseFileOutput: z.ZodTypeAny = 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,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EACrF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,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});\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,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/download-expense-file.d.ts
4
- declare const FinmeiDownloadExpenseFileInput: z.ZodTypeAny;
5
- declare const FinmeiDownloadExpenseFileOutput: z.ZodTypeAny;
6
- declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDownloadExpenseFileInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDownloadExpenseFileOutput: z.ZodObject<{
8
+ content: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
10
+ s3url: z.ZodNullable<z.ZodString>;
11
+ mimetype: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { finmeiDownloadExpenseFile };
9
19
  //# sourceMappingURL=download-expense-file.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-expense-file.d.cts","names":[],"sources":["../../src/actions/download-expense-file.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEmB;AAAA,cAMrD,+BAAA,EAAiC,CAAA,CAAE,UAEuB;AAAA,cAE1D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"download-expense-file.d.cts","names":[],"sources":["../../src/actions/download-expense-file.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAQ9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/download-expense-file.d.ts
4
- declare const FinmeiDownloadExpenseFileInput: z.ZodTypeAny;
5
- declare const FinmeiDownloadExpenseFileOutput: z.ZodTypeAny;
6
- declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDownloadExpenseFileInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDownloadExpenseFileOutput: z.ZodObject<{
8
+ content: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
10
+ s3url: z.ZodNullable<z.ZodString>;
11
+ mimetype: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { finmeiDownloadExpenseFile };
9
19
  //# sourceMappingURL=download-expense-file.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-expense-file.d.mts","names":[],"sources":["../../src/actions/download-expense-file.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEmB;AAAA,cAMrD,+BAAA,EAAiC,CAAA,CAAE,UAEuB;AAAA,cAE1D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"download-expense-file.d.mts","names":[],"sources":["../../src/actions/download-expense-file.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAQ9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
@@ -3,9 +3,9 @@ import { z } from "zod";
3
3
  //#region src/actions/download-expense-file.ts
4
4
  const FinmeiDownloadExpenseFileInput = z.object({ id: z.string().describe("Unique identifier of the expense to download the file for") }).describe("Request parameters for downloading an expense file.");
5
5
  const FinmeiDownloadExpenseFile_FileDownloadableSchema = z.object({
6
- name: z.string().describe("Name of the file"),
7
- s3url: z.string().describe("S3 URL of the downloaded file."),
8
- mimetype: z.string().describe("Mime type of the file.")
6
+ name: z.string().describe("Name of the file").nullable(),
7
+ s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
8
+ mimetype: z.string().describe("Mime type of the file.").nullable()
9
9
  });
10
10
  const finmeiDownloadExpenseFile = action("FINMEI_DOWNLOAD_EXPENSE_FILE", {
11
11
  slug: "finmei-download-expense-file",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const FinmeiDownloadExpenseFileOutput: z.ZodTypeAny = 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,iCAA+C,EAAE,OAAO,EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EACrF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mDAAiE,EAAE,OAAO;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AAKD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,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});\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"}
@@ -3,9 +3,9 @@ let zod = require("zod");
3
3
  //#region src/actions/download-invoice-pdf.ts
4
4
  const FinmeiDownloadInvoicePdfInput = zod.z.object({ invoice_id: zod.z.string().describe("The unique identifier of the invoice to download as PDF") }).describe("Request model for downloading an invoice as a PDF file.");
5
5
  const FinmeiDownloadInvoicePdf_FileDownloadableSchema = zod.z.object({
6
- name: zod.z.string().describe("Name of the file"),
7
- s3url: zod.z.string().describe("S3 URL of the downloaded file."),
8
- mimetype: zod.z.string().describe("Mime type of the file.")
6
+ name: zod.z.string().describe("Name of the file").nullable(),
7
+ s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
8
+ mimetype: zod.z.string().describe("Mime type of the file.").nullable()
9
9
  });
10
10
  const FinmeiDownloadInvoicePdfOutput = zod.z.object({ file: FinmeiDownloadInvoicePdf_FileDownloadableSchema.nullable() }).describe("Response model returning the downloaded PDF file.");
11
11
  const finmeiDownloadInvoicePdf = require_action.action("FINMEI_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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const FinmeiDownloadInvoicePdfOutput: z.ZodTypeAny = 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,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,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});\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,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/download-invoice-pdf.d.ts
4
- declare const FinmeiDownloadInvoicePdfInput: z.ZodTypeAny;
5
- declare const FinmeiDownloadInvoicePdfOutput: z.ZodTypeAny;
6
- declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDownloadInvoicePdfInput: z.ZodObject<{
5
+ invoice_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDownloadInvoicePdfOutput: z.ZodObject<{
8
+ file: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
10
+ s3url: z.ZodNullable<z.ZodString>;
11
+ mimetype: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ invoice_id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { finmeiDownloadInvoicePdf };
9
19
  //# sourceMappingURL=download-invoice-pdf.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-invoice-pdf.d.cts","names":[],"sources":["../../src/actions/download-invoice-pdf.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAMzD,8BAAA,EAAgC,CAAA,CAAE,UAEiB;AAAA,cAEnD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"download-invoice-pdf.d.cts","names":[],"sources":["../../src/actions/download-invoice-pdf.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/download-invoice-pdf.d.ts
4
- declare const FinmeiDownloadInvoicePdfInput: z.ZodTypeAny;
5
- declare const FinmeiDownloadInvoicePdfOutput: z.ZodTypeAny;
6
- declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDownloadInvoicePdfInput: z.ZodObject<{
5
+ invoice_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDownloadInvoicePdfOutput: z.ZodObject<{
8
+ file: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
10
+ s3url: z.ZodNullable<z.ZodString>;
11
+ mimetype: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ invoice_id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { finmeiDownloadInvoicePdf };
9
19
  //# sourceMappingURL=download-invoice-pdf.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-invoice-pdf.d.mts","names":[],"sources":["../../src/actions/download-invoice-pdf.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAMzD,8BAAA,EAAgC,CAAA,CAAE,UAEiB;AAAA,cAEnD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"download-invoice-pdf.d.mts","names":[],"sources":["../../src/actions/download-invoice-pdf.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -3,9 +3,9 @@ import { z } from "zod";
3
3
  //#region src/actions/download-invoice-pdf.ts
4
4
  const FinmeiDownloadInvoicePdfInput = z.object({ invoice_id: z.string().describe("The unique identifier of the invoice to download as PDF") }).describe("Request model for downloading an invoice as a PDF file.");
5
5
  const FinmeiDownloadInvoicePdf_FileDownloadableSchema = z.object({
6
- name: z.string().describe("Name of the file"),
7
- s3url: z.string().describe("S3 URL of the downloaded file."),
8
- mimetype: z.string().describe("Mime type of the file.")
6
+ name: z.string().describe("Name of the file").nullable(),
7
+ s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
8
+ mimetype: z.string().describe("Mime type of the file.").nullable()
9
9
  });
10
10
  const finmeiDownloadInvoicePdf = action("FINMEI_DOWNLOAD_INVOICE_PDF", {
11
11
  slug: "finmei-download-invoice-pdf",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const FinmeiDownloadInvoicePdfOutput: z.ZodTypeAny = 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,gCAA8C,EAAE,OAAO,EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AAKD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,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});\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"}
@@ -3,13 +3,13 @@ let zod = require("zod");
3
3
  //#region src/actions/get-expense.ts
4
4
  const FinmeiGetExpenseInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the expense to retrieve") }).describe("Request model for GET /expenses/{id}");
5
5
  const FinmeiGetExpense_ExpenseDataSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier of the expense"),
7
- date: zod.z.string().describe("Date of the expense"),
8
- total: zod.z.number().describe("Total amount of the expense"),
9
- seller: zod.z.string().describe("Seller or vendor name"),
10
- currency: zod.z.string().describe("Currency code of the expense"),
11
- created_at: zod.z.number().int().describe("Unix timestamp when the expense was created"),
12
- updated_at: zod.z.number().int().describe("Unix timestamp when the expense was last updated")
6
+ id: zod.z.string().describe("Unique identifier of the expense").nullable(),
7
+ date: zod.z.string().describe("Date of the expense").nullable(),
8
+ total: zod.z.number().describe("Total amount of the expense").nullable(),
9
+ seller: zod.z.string().describe("Seller or vendor name").nullable(),
10
+ currency: zod.z.string().describe("Currency code of the expense").nullable(),
11
+ created_at: zod.z.number().int().describe("Unix timestamp when the expense was created").nullable(),
12
+ updated_at: zod.z.number().int().describe("Unix timestamp when the expense was last updated").nullable()
13
13
  }).describe("Expense data object returned by the API");
14
14
  const FinmeiGetExpenseOutput = zod.z.object({ data: FinmeiGetExpense_ExpenseDataSchema.nullable() }).describe("Response model containing expense data");
15
15
  const finmeiGetExpense = require_action.action("FINMEI_GET_EXPENSE", {
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense\"),\n date: z.string().describe(\"Date of the expense\"),\n total: z.number().describe(\"Total amount of the expense\"),\n seller: z.string().describe(\"Seller or vendor name\"),\n currency: z.string().describe(\"Currency code of the expense\"),\n created_at: z.number().int().describe(\"Unix timestamp when the expense was created\"),\n updated_at: z.number().int().describe(\"Unix timestamp when the expense was last updated\"),\n}).describe(\"Expense data object returned by the API\");\nexport const FinmeiGetExpenseOutput: z.ZodTypeAny = 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,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AAC1F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,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}).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,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-expense.d.ts
4
- declare const FinmeiGetExpenseInput: z.ZodTypeAny;
5
- declare const FinmeiGetExpenseOutput: z.ZodTypeAny;
6
- declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiGetExpenseInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiGetExpenseOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ date: z.ZodNullable<z.ZodString>;
11
+ total: z.ZodNullable<z.ZodNumber>;
12
+ seller: z.ZodNullable<z.ZodString>;
13
+ currency: z.ZodNullable<z.ZodString>;
14
+ created_at: z.ZodNullable<z.ZodNumber>;
15
+ updated_at: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ id: string;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { finmeiGetExpense };
9
23
  //# sourceMappingURL=get-expense.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-expense.d.cts","names":[],"sources":["../../src/actions/get-expense.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEa;AAAA,cAUtC,sBAAA,EAAwB,CAAA,CAAE,UAEc;AAAA,cAExC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-expense.d.cts","names":[],"sources":["../../src/actions/get-expense.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAYrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-expense.d.ts
4
- declare const FinmeiGetExpenseInput: z.ZodTypeAny;
5
- declare const FinmeiGetExpenseOutput: z.ZodTypeAny;
6
- declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiGetExpenseInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiGetExpenseOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ date: z.ZodNullable<z.ZodString>;
11
+ total: z.ZodNullable<z.ZodNumber>;
12
+ seller: z.ZodNullable<z.ZodString>;
13
+ currency: z.ZodNullable<z.ZodString>;
14
+ created_at: z.ZodNullable<z.ZodNumber>;
15
+ updated_at: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ id: string;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { finmeiGetExpense };
9
23
  //# sourceMappingURL=get-expense.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-expense.d.mts","names":[],"sources":["../../src/actions/get-expense.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEa;AAAA,cAUtC,sBAAA,EAAwB,CAAA,CAAE,UAEc;AAAA,cAExC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-expense.d.mts","names":[],"sources":["../../src/actions/get-expense.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAYrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -3,13 +3,13 @@ import { z } from "zod";
3
3
  //#region src/actions/get-expense.ts
4
4
  const FinmeiGetExpenseInput = z.object({ id: z.string().describe("Unique identifier of the expense to retrieve") }).describe("Request model for GET /expenses/{id}");
5
5
  const FinmeiGetExpense_ExpenseDataSchema = z.object({
6
- id: z.string().describe("Unique identifier of the expense"),
7
- date: z.string().describe("Date of the expense"),
8
- total: z.number().describe("Total amount of the expense"),
9
- seller: z.string().describe("Seller or vendor name"),
10
- currency: z.string().describe("Currency code of the expense"),
11
- created_at: z.number().int().describe("Unix timestamp when the expense was created"),
12
- updated_at: z.number().int().describe("Unix timestamp when the expense was last updated")
6
+ id: z.string().describe("Unique identifier of the expense").nullable(),
7
+ date: z.string().describe("Date of the expense").nullable(),
8
+ total: z.number().describe("Total amount of the expense").nullable(),
9
+ seller: z.string().describe("Seller or vendor name").nullable(),
10
+ currency: z.string().describe("Currency code of the expense").nullable(),
11
+ created_at: z.number().int().describe("Unix timestamp when the expense was created").nullable(),
12
+ updated_at: z.number().int().describe("Unix timestamp when the expense was last updated").nullable()
13
13
  }).describe("Expense data object returned by the API");
14
14
  const finmeiGetExpense = action("FINMEI_GET_EXPENSE", {
15
15
  slug: "finmei-get-expense",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense\"),\n date: z.string().describe(\"Date of the expense\"),\n total: z.number().describe(\"Total amount of the expense\"),\n seller: z.string().describe(\"Seller or vendor name\"),\n currency: z.string().describe(\"Currency code of the expense\"),\n created_at: z.number().int().describe(\"Unix timestamp when the expense was created\"),\n updated_at: z.number().int().describe(\"Unix timestamp when the expense was last updated\"),\n}).describe(\"Expense data object returned by the API\");\nexport const FinmeiGetExpenseOutput: z.ZodTypeAny = 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,wBAAsC,EAAE,OAAO,EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AAC1F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,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}).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"}
@@ -15,11 +15,11 @@ const FinmeiGetInvoice_BuyerSchema = zod.z.object({
15
15
  individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
16
16
  }).describe("Buyer/customer information on the invoice");
17
17
  const FinmeiGetInvoice_InvoiceItemSchema = zod.z.object({
18
- id: zod.z.string().describe("Unique item identifier"),
19
- name: zod.z.string().describe("Item/product/service name"),
20
- price: zod.z.number().describe("Unit price"),
21
- units: zod.z.string().describe("Unit of measurement (hours, pcs, etc.)"),
22
- quantity: zod.z.number().describe("Quantity"),
18
+ id: zod.z.string().describe("Unique item identifier").nullable(),
19
+ name: zod.z.string().describe("Item/product/service name").nullable(),
20
+ price: zod.z.number().describe("Unit price").nullable(),
21
+ units: zod.z.string().describe("Unit of measurement (hours, pcs, etc.)").nullable(),
22
+ quantity: zod.z.number().describe("Quantity").nullable(),
23
23
  vat_percentage: zod.z.number().describe("VAT/tax percentage applied").nullable().optional()
24
24
  }).describe("Line item on the invoice");
25
25
  const FinmeiGetInvoice_SellerSchema = zod.z.object({
@@ -35,26 +35,26 @@ const FinmeiGetInvoice_SellerSchema = zod.z.object({
35
35
  individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
36
36
  }).describe("Seller/business information on the invoice");
37
37
  const FinmeiGetInvoiceOutput = zod.z.object({
38
- id: zod.z.string().describe("Unique invoice identifier"),
39
- vat: zod.z.number().describe("Total VAT/tax amount"),
38
+ id: zod.z.string().describe("Unique invoice identifier").nullable(),
39
+ vat: zod.z.number().describe("Total VAT/tax amount").nullable(),
40
40
  buyer: FinmeiGetInvoice_BuyerSchema.nullable(),
41
41
  items: zod.z.array(FinmeiGetInvoice_InvoiceItemSchema).describe("List of line items on the invoice").nullable().optional(),
42
42
  notes: zod.z.string().describe("Additional notes on the invoice").nullable().optional(),
43
43
  seller: FinmeiGetInvoice_SellerSchema.nullable(),
44
- series: zod.z.string().describe("Invoice series/prefix"),
45
- currency: zod.z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)"),
46
- language: zod.z.string().describe("Invoice language code"),
47
- subtotal: zod.z.number().describe("Subtotal amount before VAT"),
48
- created_at: zod.z.number().int().describe("Unix timestamp when invoice was created"),
49
- share_link: zod.z.string().describe("Public URL to view/share the invoice"),
50
- updated_at: zod.z.number().int().describe("Unix timestamp when invoice was last updated"),
51
- business_id: zod.z.string().describe("Business account identifier"),
52
- invoice_date: zod.z.string().describe("Invoice date in YYYY-MM-DD format"),
53
- invoice_type: zod.z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)"),
54
- invoice_number: zod.z.string().describe("Invoice number within the series"),
44
+ series: zod.z.string().describe("Invoice series/prefix").nullable(),
45
+ currency: zod.z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable(),
46
+ language: zod.z.string().describe("Invoice language code").nullable(),
47
+ subtotal: zod.z.number().describe("Subtotal amount before VAT").nullable(),
48
+ created_at: zod.z.number().int().describe("Unix timestamp when invoice was created").nullable(),
49
+ share_link: zod.z.string().describe("Public URL to view/share the invoice").nullable(),
50
+ updated_at: zod.z.number().int().describe("Unix timestamp when invoice was last updated").nullable(),
51
+ business_id: zod.z.string().describe("Business account identifier").nullable(),
52
+ invoice_date: zod.z.string().describe("Invoice date in YYYY-MM-DD format").nullable(),
53
+ invoice_type: zod.z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)").nullable(),
54
+ invoice_number: zod.z.string().describe("Invoice number within the series").nullable(),
55
55
  pay_until_date: zod.z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
56
- payment_status: zod.z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)"),
57
- total_incl_vat: zod.z.number().describe("Total amount including VAT"),
56
+ payment_status: zod.z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)").nullable(),
57
+ total_incl_vat: zod.z.number().describe("Total amount including VAT").nullable(),
58
58
  payment_options: zod.z.array(zod.z.object({})).describe("Available payment options").nullable().optional()
59
59
  }).describe("Complete invoice details returned by the API.");
60
60
  const finmeiGetInvoice = require_action.action("FINMEI_GET_INVOICE", {
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_InvoiceItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique item identifier\"),\n name: z.string().describe(\"Item/product/service name\"),\n price: z.number().describe(\"Unit price\"),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\"),\n quantity: z.number().describe(\"Quantity\"),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_SellerSchema: z.ZodTypeAny = 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}).describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique invoice identifier\"),\n vat: z.number().describe(\"Total VAT/tax amount\"),\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\"),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\"),\n language: z.string().describe(\"Invoice language code\"),\n subtotal: z.number().describe(\"Subtotal amount before VAT\"),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\"),\n share_link: z.string().describe(\"Public URL to view/share the invoice\"),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\"),\n business_id: z.string().describe(\"Business account identifier\"),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\"),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\"),\n invoice_number: z.string().describe(\"Invoice number within the series\"),\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.)\"),\n total_incl_vat: z.number().describe(\"Total amount including VAT\"),\n payment_options: z.array(z.object({})).describe(\"Available payment options\").nullable().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,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAA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,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}).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}).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}).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.object({})).describe(\"Available payment options\").nullable().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,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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z } from "zod";
2
2
 
3
3
  //#region src/actions/get-invoice.d.ts
4
- declare const FinmeiGetInvoiceInput: z.ZodTypeAny;
5
- declare const FinmeiGetInvoiceOutput: z.ZodTypeAny;
6
- declare const finmeiGetInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiGetInvoiceInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ vat: z.ZodNullable<z.ZodNumber>;
10
+ buyer: z.ZodNullable<z.ZodObject<{
11
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$strip>>;
22
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ price: z.ZodNullable<z.ZodNumber>;
26
+ units: z.ZodNullable<z.ZodString>;
27
+ quantity: z.ZodNullable<z.ZodNumber>;
28
+ vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, z.core.$strip>>>>;
30
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ seller: z.ZodNullable<z.ZodObject<{
32
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>;
43
+ series: z.ZodNullable<z.ZodString>;
44
+ currency: z.ZodNullable<z.ZodString>;
45
+ language: z.ZodNullable<z.ZodString>;
46
+ subtotal: z.ZodNullable<z.ZodNumber>;
47
+ created_at: z.ZodNullable<z.ZodNumber>;
48
+ share_link: z.ZodNullable<z.ZodString>;
49
+ updated_at: z.ZodNullable<z.ZodNumber>;
50
+ business_id: z.ZodNullable<z.ZodString>;
51
+ invoice_date: z.ZodNullable<z.ZodString>;
52
+ invoice_type: z.ZodNullable<z.ZodString>;
53
+ invoice_number: z.ZodNullable<z.ZodString>;
54
+ pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ payment_status: z.ZodNullable<z.ZodString>;
56
+ total_incl_vat: z.ZodNullable<z.ZodNumber>;
57
+ payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
58
+ }, z.core.$strip>;
59
+ declare const finmeiGetInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
60
+ id: string;
61
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
62
  //#endregion
8
63
  export { finmeiGetInvoice };
9
64
  //# sourceMappingURL=get-invoice.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-invoice.d.cts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEkC;AAAA,cAiC3D,sBAAA,EAAwB,CAAA,CAAE,UAsBqB;AAAA,cAE/C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-invoice.d.cts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA"}