@keystrokehq/finmei 0.1.2 → 0.1.4

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 (153) hide show
  1. package/dist/actions/create-expense.cjs +2 -2
  2. package/dist/actions/create-expense.cjs.map +1 -1
  3. package/dist/actions/create-expense.d.cts +2 -2
  4. package/dist/actions/create-expense.d.mts +2 -2
  5. package/dist/actions/create-expense.mjs +2 -2
  6. package/dist/actions/create-expense.mjs.map +1 -1
  7. package/dist/actions/create-invoice.cjs +8 -8
  8. package/dist/actions/create-invoice.cjs.map +1 -1
  9. package/dist/actions/create-invoice.d.cts +10 -8
  10. package/dist/actions/create-invoice.d.mts +10 -8
  11. package/dist/actions/create-invoice.mjs +8 -8
  12. package/dist/actions/create-invoice.mjs.map +1 -1
  13. package/dist/actions/delete-customer.cjs +1 -1
  14. package/dist/actions/delete-customer.cjs.map +1 -1
  15. package/dist/actions/delete-customer.d.cts +1 -1
  16. package/dist/actions/delete-customer.d.cts.map +1 -1
  17. package/dist/actions/delete-customer.d.mts +1 -1
  18. package/dist/actions/delete-customer.d.mts.map +1 -1
  19. package/dist/actions/delete-customer.mjs +1 -1
  20. package/dist/actions/delete-customer.mjs.map +1 -1
  21. package/dist/actions/delete-invoice.cjs +1 -1
  22. package/dist/actions/delete-invoice.cjs.map +1 -1
  23. package/dist/actions/delete-invoice.d.cts +1 -1
  24. package/dist/actions/delete-invoice.d.mts +1 -1
  25. package/dist/actions/delete-invoice.mjs +1 -1
  26. package/dist/actions/delete-invoice.mjs.map +1 -1
  27. package/dist/actions/delete-payment.cjs +1 -1
  28. package/dist/actions/delete-payment.cjs.map +1 -1
  29. package/dist/actions/delete-payment.d.cts +1 -1
  30. package/dist/actions/delete-payment.d.mts +1 -1
  31. package/dist/actions/delete-payment.mjs +1 -1
  32. package/dist/actions/delete-payment.mjs.map +1 -1
  33. package/dist/actions/delete-product.cjs +1 -1
  34. package/dist/actions/delete-product.cjs.map +1 -1
  35. package/dist/actions/delete-product.d.cts +1 -1
  36. package/dist/actions/delete-product.d.mts +1 -1
  37. package/dist/actions/delete-product.mjs +1 -1
  38. package/dist/actions/delete-product.mjs.map +1 -1
  39. package/dist/actions/download-expense-file.cjs +2 -2
  40. package/dist/actions/download-expense-file.cjs.map +1 -1
  41. package/dist/actions/download-expense-file.d.cts +2 -2
  42. package/dist/actions/download-expense-file.d.mts +2 -2
  43. package/dist/actions/download-expense-file.mjs +2 -2
  44. package/dist/actions/download-expense-file.mjs.map +1 -1
  45. package/dist/actions/download-invoice-pdf.cjs +2 -2
  46. package/dist/actions/download-invoice-pdf.cjs.map +1 -1
  47. package/dist/actions/download-invoice-pdf.d.cts +2 -2
  48. package/dist/actions/download-invoice-pdf.d.mts +2 -2
  49. package/dist/actions/download-invoice-pdf.mjs +2 -2
  50. package/dist/actions/download-invoice-pdf.mjs.map +1 -1
  51. package/dist/actions/get-expense.cjs +2 -2
  52. package/dist/actions/get-expense.cjs.map +1 -1
  53. package/dist/actions/get-expense.d.cts +2 -2
  54. package/dist/actions/get-expense.d.mts +2 -2
  55. package/dist/actions/get-expense.mjs +2 -2
  56. package/dist/actions/get-expense.mjs.map +1 -1
  57. package/dist/actions/get-invoice.cjs +5 -5
  58. package/dist/actions/get-invoice.cjs.map +1 -1
  59. package/dist/actions/get-invoice.d.cts +5 -5
  60. package/dist/actions/get-invoice.d.mts +5 -5
  61. package/dist/actions/get-invoice.mjs +5 -5
  62. package/dist/actions/get-invoice.mjs.map +1 -1
  63. package/dist/actions/get-payment.cjs +1 -1
  64. package/dist/actions/get-payment.cjs.map +1 -1
  65. package/dist/actions/get-payment.d.cts +1 -1
  66. package/dist/actions/get-payment.d.mts +1 -1
  67. package/dist/actions/get-payment.mjs +1 -1
  68. package/dist/actions/get-payment.mjs.map +1 -1
  69. package/dist/actions/get-product.cjs +1 -1
  70. package/dist/actions/get-product.cjs.map +1 -1
  71. package/dist/actions/get-product.d.cts +1 -1
  72. package/dist/actions/get-product.d.mts +1 -1
  73. package/dist/actions/get-product.mjs +1 -1
  74. package/dist/actions/get-product.mjs.map +1 -1
  75. package/dist/actions/get-profile.cjs +2 -2
  76. package/dist/actions/get-profile.cjs.map +1 -1
  77. package/dist/actions/get-profile.d.cts +2 -2
  78. package/dist/actions/get-profile.d.mts +2 -2
  79. package/dist/actions/get-profile.mjs +2 -2
  80. package/dist/actions/get-profile.mjs.map +1 -1
  81. package/dist/actions/list-currencies.cjs +2 -2
  82. package/dist/actions/list-currencies.cjs.map +1 -1
  83. package/dist/actions/list-currencies.d.cts +2 -2
  84. package/dist/actions/list-currencies.d.mts +2 -2
  85. package/dist/actions/list-currencies.mjs +2 -2
  86. package/dist/actions/list-currencies.mjs.map +1 -1
  87. package/dist/actions/list-customers.cjs +3 -3
  88. package/dist/actions/list-customers.cjs.map +1 -1
  89. package/dist/actions/list-customers.d.cts +3 -3
  90. package/dist/actions/list-customers.d.mts +3 -3
  91. package/dist/actions/list-customers.mjs +3 -3
  92. package/dist/actions/list-customers.mjs.map +1 -1
  93. package/dist/actions/list-expenses.cjs +3 -3
  94. package/dist/actions/list-expenses.cjs.map +1 -1
  95. package/dist/actions/list-expenses.d.cts +3 -3
  96. package/dist/actions/list-expenses.d.mts +3 -3
  97. package/dist/actions/list-expenses.mjs +3 -3
  98. package/dist/actions/list-expenses.mjs.map +1 -1
  99. package/dist/actions/list-invoices.cjs +7 -7
  100. package/dist/actions/list-invoices.cjs.map +1 -1
  101. package/dist/actions/list-invoices.d.cts +7 -7
  102. package/dist/actions/list-invoices.d.mts +7 -7
  103. package/dist/actions/list-invoices.mjs +7 -7
  104. package/dist/actions/list-invoices.mjs.map +1 -1
  105. package/dist/actions/list-payments.cjs +2 -2
  106. package/dist/actions/list-payments.cjs.map +1 -1
  107. package/dist/actions/list-payments.d.cts +2 -2
  108. package/dist/actions/list-payments.d.mts +2 -2
  109. package/dist/actions/list-payments.mjs +2 -2
  110. package/dist/actions/list-payments.mjs.map +1 -1
  111. package/dist/actions/list-products.cjs +3 -3
  112. package/dist/actions/list-products.cjs.map +1 -1
  113. package/dist/actions/list-products.d.cts +3 -3
  114. package/dist/actions/list-products.d.mts +3 -3
  115. package/dist/actions/list-products.mjs +3 -3
  116. package/dist/actions/list-products.mjs.map +1 -1
  117. package/dist/actions/update-customer.cjs +3 -3
  118. package/dist/actions/update-customer.cjs.map +1 -1
  119. package/dist/actions/update-customer.d.cts +3 -3
  120. package/dist/actions/update-customer.d.mts +3 -3
  121. package/dist/actions/update-customer.mjs +3 -3
  122. package/dist/actions/update-customer.mjs.map +1 -1
  123. package/dist/actions/update-expense-file.cjs +1 -1
  124. package/dist/actions/update-expense-file.cjs.map +1 -1
  125. package/dist/actions/update-expense-file.d.cts +1 -1
  126. package/dist/actions/update-expense-file.d.mts +1 -1
  127. package/dist/actions/update-expense-file.mjs +1 -1
  128. package/dist/actions/update-expense-file.mjs.map +1 -1
  129. package/dist/actions/update-expense.cjs +1 -1
  130. package/dist/actions/update-expense.cjs.map +1 -1
  131. package/dist/actions/update-expense.d.cts +1 -1
  132. package/dist/actions/update-expense.d.mts +1 -1
  133. package/dist/actions/update-expense.mjs +1 -1
  134. package/dist/actions/update-expense.mjs.map +1 -1
  135. package/dist/actions/update-invoice.cjs +5 -5
  136. package/dist/actions/update-invoice.cjs.map +1 -1
  137. package/dist/actions/update-invoice.d.cts +6 -5
  138. package/dist/actions/update-invoice.d.mts +6 -5
  139. package/dist/actions/update-invoice.mjs +5 -5
  140. package/dist/actions/update-invoice.mjs.map +1 -1
  141. package/dist/actions/update-product.cjs +1 -1
  142. package/dist/actions/update-product.cjs.map +1 -1
  143. package/dist/actions/update-product.d.cts +1 -1
  144. package/dist/actions/update-product.d.mts +1 -1
  145. package/dist/actions/update-product.mjs +1 -1
  146. package/dist/actions/update-product.mjs.map +1 -1
  147. package/dist/catalog.cjs +1 -1
  148. package/dist/catalog.cjs.map +1 -1
  149. package/dist/catalog.d.cts +1 -1
  150. package/dist/catalog.d.mts +1 -1
  151. package/dist/catalog.mjs +1 -1
  152. package/dist/catalog.mjs.map +1 -1
  153. package/package.json +1 -1
@@ -15,17 +15,17 @@ const FinmeiListProducts_ProductSchema = zod.z.object({
15
15
  created_at: zod.z.string().describe("ISO 8601 timestamp when the product was created").nullable().optional(),
16
16
  updated_at: zod.z.string().describe("ISO 8601 timestamp when the product was last updated").nullable().optional(),
17
17
  description: zod.z.string().describe("Description of the product").nullable().optional()
18
- }).describe("Schema for a product object returned by the API");
18
+ }).passthrough().describe("Schema for a product object returned by the API");
19
19
  const FinmeiListProducts_PaginationSchema = zod.z.object({
20
20
  page: zod.z.number().int().describe("Current page number").nullable(),
21
21
  per_page: zod.z.number().int().describe("Number of items per page").nullable(),
22
22
  total_items: zod.z.number().int().describe("Total number of items across all pages").nullable(),
23
23
  total_pages: zod.z.number().int().describe("Total number of pages available").nullable()
24
- }).describe("Pagination metadata for list endpoints");
24
+ }).passthrough().describe("Pagination metadata for list endpoints");
25
25
  const FinmeiListProductsOutput = zod.z.object({
26
26
  products: zod.z.array(FinmeiListProducts_ProductSchema).describe("List of products matching the query"),
27
27
  pagination: FinmeiListProducts_PaginationSchema.nullable()
28
- }).describe("Response schema when listing products");
28
+ }).passthrough().describe("Response schema when listing products");
29
29
  const finmeiListProducts = require_action.action("FINMEI_LIST_PRODUCTS", {
30
30
  slug: "finmei-list-products",
31
31
  name: "List Products",
@@ -1 +1 @@
1
- {"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,I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SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;CAClG,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,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,gDAAgD,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,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ZodNullable<z.ZodString>>;
24
24
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  pagination: z.ZodNullable<z.ZodObject<{
27
27
  page: z.ZodNullable<z.ZodNumber>;
28
28
  per_page: z.ZodNullable<z.ZodNumber>;
29
29
  total_items: z.ZodNullable<z.ZodNumber>;
30
30
  total_pages: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  name?: string | undefined;
35
35
  page?: number | undefined;
@@ -22,14 +22,14 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
22
22
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  pagination: z.ZodNullable<z.ZodObject<{
27
27
  page: z.ZodNullable<z.ZodNumber>;
28
28
  per_page: z.ZodNullable<z.ZodNumber>;
29
29
  total_items: z.ZodNullable<z.ZodNumber>;
30
30
  total_pages: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  name?: string | undefined;
35
35
  page?: number | undefined;
@@ -15,13 +15,13 @@ const FinmeiListProducts_ProductSchema = z.object({
15
15
  created_at: z.string().describe("ISO 8601 timestamp when the product was created").nullable().optional(),
16
16
  updated_at: z.string().describe("ISO 8601 timestamp when the product was last updated").nullable().optional(),
17
17
  description: z.string().describe("Description of the product").nullable().optional()
18
- }).describe("Schema for a product object returned by the API");
18
+ }).passthrough().describe("Schema for a product object returned by the API");
19
19
  const FinmeiListProducts_PaginationSchema = z.object({
20
20
  page: z.number().int().describe("Current page number").nullable(),
21
21
  per_page: z.number().int().describe("Number of items per page").nullable(),
22
22
  total_items: z.number().int().describe("Total number of items across all pages").nullable(),
23
23
  total_pages: z.number().int().describe("Total number of pages available").nullable()
24
- }).describe("Pagination metadata for list endpoints");
24
+ }).passthrough().describe("Pagination metadata for list endpoints");
25
25
  const finmeiListProducts = action("FINMEI_LIST_PRODUCTS", {
26
26
  slug: "finmei-list-products",
27
27
  name: "List Products",
@@ -30,7 +30,7 @@ const finmeiListProducts = action("FINMEI_LIST_PRODUCTS", {
30
30
  output: z.object({
31
31
  products: z.array(FinmeiListProducts_ProductSchema).describe("List of products matching the query"),
32
32
  pagination: FinmeiListProducts_PaginationSchema.nullable()
33
- }).describe("Response schema when listing products")
33
+ }).passthrough().describe("Response schema when listing products")
34
34
  });
35
35
  //#endregion
36
36
  export { finmeiListProducts };
@@ -1 +1 @@
1
- {"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmC,EAAE,OAAO;CAChD,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,gDAAgD,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;EAClG,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAA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,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAMlE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;EAClG,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -21,7 +21,7 @@ const FinmeiUpdateCustomer_AddressSchema = zod.z.object({
21
21
  street: zod.z.string().describe("Street address of the customer").nullable().optional(),
22
22
  country: zod.z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
23
23
  postal_code: zod.z.string().describe("Postal or ZIP code of the customer's address").nullable().optional()
24
- }).describe("Mailing address details");
24
+ }).passthrough().describe("Mailing address details");
25
25
  const FinmeiUpdateCustomer_CustomerSchema = zod.z.object({
26
26
  id: zod.z.string().describe("Unique identifier of the customer").nullable(),
27
27
  name: zod.z.string().describe("Full name of the customer").nullable().optional(),
@@ -31,8 +31,8 @@ const FinmeiUpdateCustomer_CustomerSchema = zod.z.object({
31
31
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata associated with the customer").nullable().optional(),
32
32
  created_at: zod.z.string().describe("Timestamp when the customer was created").nullable(),
33
33
  updated_at: zod.z.string().describe("Timestamp when the customer was last updated").nullable()
34
- });
35
- const FinmeiUpdateCustomerOutput = zod.z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).describe("Response model containing the updated customer record");
34
+ }).passthrough();
35
+ const FinmeiUpdateCustomerOutput = zod.z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).passthrough().describe("Response model containing the updated customer record");
36
36
  const finmeiUpdateCustomer = require_action.action("FINMEI_UPDATE_CUSTOMER", {
37
37
  slug: "finmei-update-customer",
38
38
  name: "Update Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n});\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9C,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAA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AAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS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EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -27,12 +27,12 @@ declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
27
27
  street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- }, z.core.$strip>>>;
30
+ }, z.core.$loose>>>;
31
31
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
32
  created_at: z.ZodNullable<z.ZodString>;
33
33
  updated_at: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  customer_id: string;
38
38
  name?: string | undefined;
@@ -27,12 +27,12 @@ declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
27
27
  street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- }, z.core.$strip>>>;
30
+ }, z.core.$loose>>>;
31
31
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
32
  created_at: z.ZodNullable<z.ZodString>;
33
33
  updated_at: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  customer_id: string;
38
38
  name?: string | undefined;
@@ -21,7 +21,7 @@ const FinmeiUpdateCustomer_AddressSchema = z.object({
21
21
  street: z.string().describe("Street address of the customer").nullable().optional(),
22
22
  country: z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
23
23
  postal_code: z.string().describe("Postal or ZIP code of the customer's address").nullable().optional()
24
- }).describe("Mailing address details");
24
+ }).passthrough().describe("Mailing address details");
25
25
  const FinmeiUpdateCustomer_CustomerSchema = z.object({
26
26
  id: z.string().describe("Unique identifier of the customer").nullable(),
27
27
  name: z.string().describe("Full name of the customer").nullable().optional(),
@@ -31,13 +31,13 @@ const FinmeiUpdateCustomer_CustomerSchema = z.object({
31
31
  metadata: z.record(z.string(), z.unknown()).describe("Additional metadata associated with the customer").nullable().optional(),
32
32
  created_at: z.string().describe("Timestamp when the customer was created").nullable(),
33
33
  updated_at: z.string().describe("Timestamp when the customer was last updated").nullable()
34
- });
34
+ }).passthrough();
35
35
  const finmeiUpdateCustomer = action("FINMEI_UPDATE_CUSTOMER", {
36
36
  slug: "finmei-update-customer",
37
37
  name: "Update Customer",
38
38
  description: "Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.",
39
39
  input: FinmeiUpdateCustomerInput,
40
- output: z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).describe("Response model containing the updated customer record")
40
+ output: z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).passthrough().describe("Response model containing the updated customer record")
41
41
  });
42
42
  //#endregion
43
43
  export { finmeiUpdateCustomer };
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n});\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,S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CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS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AAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
@@ -15,7 +15,7 @@ const FinmeiUpdateExpenseFileOutput = zod.z.object({
15
15
  file_url: zod.z.string().describe("URL of the uploaded file attachment").nullable().optional(),
16
16
  file_name: zod.z.string().describe("Name of the uploaded file").nullable().optional(),
17
17
  updated_at: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional()
18
- }).describe("Response model containing the updated expense details after successful file upload.");
18
+ }).passthrough().describe("Response model containing the updated expense details after successful file upload.");
19
19
  const finmeiUpdateExpenseFile = require_action.action("FINMEI_UPDATE_EXPENSE_FILE", {
20
20
  slug: "finmei-update-expense-file",
21
21
  name: "Update Expense File",
@@ -1 +1 @@
1
- {"version":3,"file":"update-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CACvH,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,CAAC,CAAC,CAAC,SAAS,mLAAmL;AAC/L,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CACvH,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,CAAC,CAAC,CAAC,SAAS,mLAAmL;AAC/L,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAE/G,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -15,7 +15,7 @@ declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
15
15
  file_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  id: string;
21
21
  file: {
@@ -15,7 +15,7 @@ declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
15
15
  file_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  id: string;
21
21
  file: {
@@ -18,7 +18,7 @@ const finmeiUpdateExpenseFile = action("FINMEI_UPDATE_EXPENSE_FILE", {
18
18
  file_url: z.string().describe("URL of the uploaded file attachment").nullable().optional(),
19
19
  file_name: z.string().describe("Name of the uploaded file").nullable().optional(),
20
20
  updated_at: z.union([z.string(), z.number().int()]).nullable().optional()
21
- }).describe("Response model containing the updated expense details after successful file upload.")
21
+ }).passthrough().describe("Response model containing the updated expense details after successful file upload.")
22
22
  });
23
23
  //#endregion
24
24
  export { finmeiUpdateExpenseFile };
@@ -1 +1 @@
1
- {"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EACvH,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC/F,CAAC,CAAC,CAAC,SAAS,mLAaH;CACP,QAb2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EACvH,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC/F,CAAC,CAAC,CAAC,SAAS,mLAaH;CACP,QAb2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAOhB;AACV,CAAC"}
@@ -16,7 +16,7 @@ const FinmeiUpdateExpenseOutput = zod.z.object({
16
16
  currency: zod.z.string().describe("Currency code of the expense after the update").nullable(),
17
17
  created_at: zod.z.string().describe("ISO8601 timestamp when the expense was originally created").nullable().optional(),
18
18
  updated_at: zod.z.string().describe("ISO8601 timestamp when the expense was last updated").nullable().optional()
19
- }).describe("Response model containing the updated expense details after a successful update");
19
+ }).passthrough().describe("Response model containing the updated expense details after a successful update");
20
20
  const finmeiUpdateExpense = require_action.action("FINMEI_UPDATE_EXPENSE", {
21
21
  slug: "finmei-update-expense",
22
22
  name: "Update Expense",
@@ -1 +1 @@
1
- {"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAAiF;AAE3G,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,7 +16,7 @@ declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
16
16
  currency: z.ZodNullable<z.ZodString>;
17
17
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  id: string;
22
22
  date: string;
@@ -16,7 +16,7 @@ declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
16
16
  currency: z.ZodNullable<z.ZodString>;
17
17
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  id: string;
22
22
  date: string;
@@ -19,7 +19,7 @@ const finmeiUpdateExpense = action("FINMEI_UPDATE_EXPENSE", {
19
19
  currency: z.string().describe("Currency code of the expense after the update").nullable(),
20
20
  created_at: z.string().describe("ISO8601 timestamp when the expense was originally created").nullable().optional(),
21
21
  updated_at: z.string().describe("ISO8601 timestamp when the expense was last updated").nullable().optional()
22
- }).describe("Response model containing the updated expense details after a successful update")
22
+ }).passthrough().describe("Response model containing the updated expense details after a successful update")
23
23
  });
24
24
  //#endregion
25
25
  export { finmeiUpdateExpense };
@@ -1 +1 @@
1
- {"version":3,"file":"update-expense.mjs","names":[],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,CAAC,CAAC,CAAC,SAAS,yDAeH;CACP,QAfuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-expense.mjs","names":[],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,CAAC,CAAC,CAAC,SAAS,yDAeH;CACP,QAfuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAOhB;AACV,CAAC"}
@@ -42,7 +42,7 @@ const FinmeiUpdateInvoiceInput = zod.z.object({
42
42
  units: zod.z.string().describe("Units for the product (e.g., pcs, hours, months)").optional(),
43
43
  quantity: zod.z.number().describe("Quantity for this product"),
44
44
  vat_percentage: zod.z.number().describe("VAT percentage to apply (0-100)").optional()
45
- })).describe("Products array with line items for the invoice").optional(),
45
+ }).passthrough()).describe("Products array with line items for the invoice").optional(),
46
46
  invoice_id: zod.z.string().describe("Unique identifier of the invoice to update"),
47
47
  invoice_date: zod.z.string().describe("Date on the invoice. Format: YYYY-MM-DD").optional(),
48
48
  pay_until_date: zod.z.string().describe("Payment due date. Format: YYYY-MM-DD").optional(),
@@ -59,7 +59,7 @@ const FinmeiUpdateInvoice_BuyerResponseSchema = zod.z.object({
59
59
  company_code: zod.z.string().describe("Company registration code").nullable().optional(),
60
60
  company_name: zod.z.string().describe("Company name (for companies)").nullable().optional(),
61
61
  individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
62
- });
62
+ }).passthrough();
63
63
  const FinmeiUpdateInvoice_InvoiceItemResponseSchema = zod.z.object({
64
64
  id: zod.z.string().describe("Item unique identifier").nullable().optional(),
65
65
  name: zod.z.string().describe("Product or service name").nullable().optional(),
@@ -67,7 +67,7 @@ const FinmeiUpdateInvoice_InvoiceItemResponseSchema = zod.z.object({
67
67
  units: zod.z.string().describe("Units (e.g., pcs, hours)").nullable().optional(),
68
68
  quantity: zod.z.number().describe("Quantity").nullable().optional(),
69
69
  vat_percentage: zod.z.number().describe("VAT percentage applied").nullable().optional()
70
- });
70
+ }).passthrough();
71
71
  const FinmeiUpdateInvoice_SellerResponseSchema = zod.z.object({
72
72
  email: zod.z.string().describe("Contact email").nullable().optional(),
73
73
  phone: zod.z.string().describe("Contact phone").nullable().optional(),
@@ -80,7 +80,7 @@ const FinmeiUpdateInvoice_SellerResponseSchema = zod.z.object({
80
80
  business_type: zod.z.string().describe("Type of business (company, individual)").nullable().optional(),
81
81
  custom_fields: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom fields").nullable().optional(),
82
82
  individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
83
- });
83
+ }).passthrough();
84
84
  const FinmeiUpdateInvoiceOutput = zod.z.object({
85
85
  id: zod.z.string().describe("Unique identifier of the updated invoice").nullable().optional(),
86
86
  vat: zod.z.number().describe("Total VAT amount").nullable().optional(),
@@ -107,7 +107,7 @@ const FinmeiUpdateInvoiceOutput = zod.z.object({
107
107
  payment_status: zod.z.string().describe("Payment status of the invoice").nullable().optional(),
108
108
  total_incl_vat: zod.z.number().describe("Total amount including VAT").nullable().optional(),
109
109
  payment_options: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Available payment options").nullable().optional()
110
- });
110
+ }).passthrough();
111
111
  const finmeiUpdateInvoice = require_action.action("FINMEI_UPDATE_INVOICE", {
112
112
  slug: "finmei-update-invoice",
113
113
  name: "Update Invoice",
@@ -1 +1 @@
1
- {"version":3,"file":"update-invoice.cjs","names":["z","action"],"sources":["../../src/actions/update-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateInvoiceInput = z.object({\n code: z.string().describe(\"Optional custom invoice code or reference\").optional(),\n type: z.enum([\"regular_invoice\", \"vat_invoice\", \"preliminary_invoice\", \"preliminary_vat_invoice\", \"credit_invoice\", \"credit_vat_invoice\"]).describe(\"Invoice type. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'\").optional(),\n buyer: z.object({\n name: z.string().describe(\"Generic name (legacy/compat)\").optional(),\n type: z.enum([\"person\", \"company\"]).describe(\"Buyer type as required by the API\"),\n email: z.string().describe(\"Buyer email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Buyer address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n last_name: z.string().describe(\"Buyer last name (person)\").optional(),\n first_name: z.string().describe(\"Buyer first name (person)\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Company name (company)\").optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").optional(),\n}).describe(\"Buyer object with customer information\").optional(),\n notes: z.string().describe(\"Optional notes to appear on the invoice\").optional(),\n seller: z.object({\n email: z.string().describe(\"Seller email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Seller address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Seller company name\"),\n}).describe(\"Seller object if not using default\").optional(),\n series: z.string().describe(\"Series code/prefix for the invoice\").optional(),\n currency: z.string().describe(\"ISO 4217 three-letter currency code\").optional(),\n due_date: z.string().describe(\"Payment due date (alias). Format: YYYY-MM-DD\").optional(),\n products: z.array(z.object({\n name: z.string().describe(\"Product or service name\"),\n price: z.number().describe(\"Unit price for this product\"),\n units: z.string().describe(\"Units for the product (e.g., pcs, hours, months)\").optional(),\n quantity: z.number().describe(\"Quantity for this product\"),\n vat_percentage: z.number().describe(\"VAT percentage to apply (0-100)\").optional(),\n})).describe(\"Products array with line items for the invoice\").optional(),\n invoice_id: z.string().describe(\"Unique identifier of the invoice to update\"),\n invoice_date: z.string().describe(\"Date on the invoice. Format: YYYY-MM-DD\").optional(),\n pay_until_date: z.string().describe(\"Payment due date. Format: YYYY-MM-DD\").optional(),\n use_default_seller_info: z.boolean().describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiUpdateInvoice_BuyerResponseSchema = z.object({\n type: z.string().describe(\"Buyer type (individual, company)\").nullable().optional(),\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiUpdateInvoice_InvoiceItemResponseSchema = z.object({\n id: z.string().describe(\"Item unique identifier\").nullable().optional(),\n name: z.string().describe(\"Product or service name\").nullable().optional(),\n price: z.number().describe(\"Unit price\").nullable().optional(),\n units: z.string().describe(\"Units (e.g., pcs, hours)\").nullable().optional(),\n quantity: z.number().describe(\"Quantity\").nullable().optional(),\n vat_percentage: z.number().describe(\"VAT percentage applied\").nullable().optional(),\n});\nconst FinmeiUpdateInvoice_SellerResponseSchema = z.object({\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company, individual)\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nexport const FinmeiUpdateInvoiceOutput = z.object({\n id: z.string().describe(\"Unique identifier of the updated invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference\").nullable().optional(),\n buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n language: z.string().describe(\"Invoice language\").nullable().optional(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable().optional(),\n amount_due: z.number().describe(\"Total amount due on the invoice\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n share_link: z.string().describe(\"Public link to share the invoice\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n amount_paid: z.number().describe(\"Total amount paid on the invoice\").nullable().optional(),\n business_id: z.string().describe(\"Business identifier\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued\").nullable().optional(),\n invoice_type: z.string().describe(\"Type of the invoice\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n pay_until_date: z.string().describe(\"Payment due date\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status of the invoice\").nullable().optional(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable().optional(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n});\n\nexport const finmeiUpdateInvoice = action(\"FINMEI_UPDATE_INVOICE\", {\n slug: \"finmei-update-invoice\",\n name: \"Update Invoice\",\n description: \"Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.\",\n input: FinmeiUpdateInvoiceInput,\n output: FinmeiUpdateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAmB;EAAe;EAAuB;EAA2B;EAAkB;CAAoB,CAAC,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACvT,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,cAAcA,IAA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AS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-invoice.cjs","names":["z","action"],"sources":["../../src/actions/update-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateInvoiceInput = z.object({\n code: z.string().describe(\"Optional custom invoice code or reference\").optional(),\n type: z.enum([\"regular_invoice\", \"vat_invoice\", \"preliminary_invoice\", \"preliminary_vat_invoice\", \"credit_invoice\", \"credit_vat_invoice\"]).describe(\"Invoice type. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'\").optional(),\n buyer: z.object({\n name: z.string().describe(\"Generic name (legacy/compat)\").optional(),\n type: z.enum([\"person\", \"company\"]).describe(\"Buyer type as required by the API\"),\n email: z.string().describe(\"Buyer email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Buyer address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n last_name: z.string().describe(\"Buyer last name (person)\").optional(),\n first_name: z.string().describe(\"Buyer first name (person)\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Company name (company)\").optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").optional(),\n}).describe(\"Buyer object with customer information\").optional(),\n notes: z.string().describe(\"Optional notes to appear on the invoice\").optional(),\n seller: z.object({\n email: z.string().describe(\"Seller email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Seller address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Seller company name\"),\n}).describe(\"Seller object if not using default\").optional(),\n series: z.string().describe(\"Series code/prefix for the invoice\").optional(),\n currency: z.string().describe(\"ISO 4217 three-letter currency code\").optional(),\n due_date: z.string().describe(\"Payment due date (alias). Format: YYYY-MM-DD\").optional(),\n products: z.array(z.object({\n name: z.string().describe(\"Product or service name\"),\n price: z.number().describe(\"Unit price for this product\"),\n units: z.string().describe(\"Units for the product (e.g., pcs, hours, months)\").optional(),\n quantity: z.number().describe(\"Quantity for this product\"),\n vat_percentage: z.number().describe(\"VAT percentage to apply (0-100)\").optional(),\n}).passthrough()).describe(\"Products array with line items for the invoice\").optional(),\n invoice_id: z.string().describe(\"Unique identifier of the invoice to update\"),\n invoice_date: z.string().describe(\"Date on the invoice. Format: YYYY-MM-DD\").optional(),\n pay_until_date: z.string().describe(\"Payment due date. Format: YYYY-MM-DD\").optional(),\n use_default_seller_info: z.boolean().describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiUpdateInvoice_BuyerResponseSchema = z.object({\n type: z.string().describe(\"Buyer type (individual, company)\").nullable().optional(),\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough();\nconst FinmeiUpdateInvoice_InvoiceItemResponseSchema = z.object({\n id: z.string().describe(\"Item unique identifier\").nullable().optional(),\n name: z.string().describe(\"Product or service name\").nullable().optional(),\n price: z.number().describe(\"Unit price\").nullable().optional(),\n units: z.string().describe(\"Units (e.g., pcs, hours)\").nullable().optional(),\n quantity: z.number().describe(\"Quantity\").nullable().optional(),\n vat_percentage: z.number().describe(\"VAT percentage applied\").nullable().optional(),\n}).passthrough();\nconst FinmeiUpdateInvoice_SellerResponseSchema = z.object({\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company, individual)\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough();\nexport const FinmeiUpdateInvoiceOutput = z.object({\n id: z.string().describe(\"Unique identifier of the updated invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference\").nullable().optional(),\n buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n language: z.string().describe(\"Invoice language\").nullable().optional(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable().optional(),\n amount_due: z.number().describe(\"Total amount due on the invoice\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n share_link: z.string().describe(\"Public link to share the invoice\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n amount_paid: z.number().describe(\"Total amount paid on the invoice\").nullable().optional(),\n business_id: z.string().describe(\"Business identifier\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued\").nullable().optional(),\n invoice_type: z.string().describe(\"Type of the invoice\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n pay_until_date: z.string().describe(\"Payment due date\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status of the invoice\").nullable().optional(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable().optional(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough();\n\nexport const finmeiUpdateInvoice = action(\"FINMEI_UPDATE_INVOICE\", {\n slug: \"finmei-update-invoice\",\n name: \"Update Invoice\",\n description: \"Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.\",\n input: FinmeiUpdateInvoiceInput,\n output: FinmeiUpdateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAmB;EAAe;EAAuB;EAA2B;EAAkB;CAAoB,CAAC,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACvT,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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