@keystrokehq/finmei 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-expense.cjs +2 -2
  4. package/dist/actions/create-expense.cjs.map +1 -1
  5. package/dist/actions/create-expense.d.cts +3 -13
  6. package/dist/actions/create-expense.d.mts +3 -13
  7. package/dist/actions/create-expense.mjs +2 -2
  8. package/dist/actions/create-expense.mjs.map +1 -1
  9. package/dist/actions/create-invoice.cjs +71 -71
  10. package/dist/actions/create-invoice.cjs.map +1 -1
  11. package/dist/actions/create-invoice.d.cts +74 -141
  12. package/dist/actions/create-invoice.d.cts.map +1 -1
  13. package/dist/actions/create-invoice.d.mts +74 -141
  14. package/dist/actions/create-invoice.d.mts.map +1 -1
  15. package/dist/actions/create-invoice.mjs +71 -71
  16. package/dist/actions/create-invoice.mjs.map +1 -1
  17. package/dist/actions/delete-customer.cjs +1 -1
  18. package/dist/actions/delete-customer.cjs.map +1 -1
  19. package/dist/actions/delete-customer.d.cts +2 -2
  20. package/dist/actions/delete-customer.d.cts.map +1 -1
  21. package/dist/actions/delete-customer.d.mts +2 -2
  22. package/dist/actions/delete-customer.d.mts.map +1 -1
  23. package/dist/actions/delete-customer.mjs +1 -1
  24. package/dist/actions/delete-customer.mjs.map +1 -1
  25. package/dist/actions/delete-invoice.cjs +2 -2
  26. package/dist/actions/delete-invoice.cjs.map +1 -1
  27. package/dist/actions/delete-invoice.d.cts +3 -6
  28. package/dist/actions/delete-invoice.d.mts +3 -6
  29. package/dist/actions/delete-invoice.mjs +2 -2
  30. package/dist/actions/delete-invoice.mjs.map +1 -1
  31. package/dist/actions/delete-payment.cjs +1 -1
  32. package/dist/actions/delete-payment.cjs.map +1 -1
  33. package/dist/actions/delete-payment.d.cts +2 -4
  34. package/dist/actions/delete-payment.d.mts +2 -4
  35. package/dist/actions/delete-payment.mjs +1 -1
  36. package/dist/actions/delete-payment.mjs.map +1 -1
  37. package/dist/actions/delete-product.cjs +2 -2
  38. package/dist/actions/delete-product.cjs.map +1 -1
  39. package/dist/actions/delete-product.d.cts +3 -6
  40. package/dist/actions/delete-product.d.mts +3 -6
  41. package/dist/actions/delete-product.mjs +2 -2
  42. package/dist/actions/delete-product.mjs.map +1 -1
  43. package/dist/actions/download-expense-file.cjs +2 -2
  44. package/dist/actions/download-expense-file.cjs.map +1 -1
  45. package/dist/actions/download-expense-file.d.cts +3 -9
  46. package/dist/actions/download-expense-file.d.mts +3 -9
  47. package/dist/actions/download-expense-file.mjs +2 -2
  48. package/dist/actions/download-expense-file.mjs.map +1 -1
  49. package/dist/actions/download-invoice-pdf.cjs +2 -2
  50. package/dist/actions/download-invoice-pdf.cjs.map +1 -1
  51. package/dist/actions/download-invoice-pdf.d.cts +3 -9
  52. package/dist/actions/download-invoice-pdf.d.mts +3 -9
  53. package/dist/actions/download-invoice-pdf.mjs +2 -2
  54. package/dist/actions/download-invoice-pdf.mjs.map +1 -1
  55. package/dist/actions/get-expense.cjs +2 -2
  56. package/dist/actions/get-expense.cjs.map +1 -1
  57. package/dist/actions/get-expense.d.cts +3 -13
  58. package/dist/actions/get-expense.d.mts +3 -13
  59. package/dist/actions/get-expense.mjs +2 -2
  60. package/dist/actions/get-expense.mjs.map +1 -1
  61. package/dist/actions/get-invoice.cjs +29 -29
  62. package/dist/actions/get-invoice.cjs.map +1 -1
  63. package/dist/actions/get-invoice.d.cts +30 -81
  64. package/dist/actions/get-invoice.d.cts.map +1 -1
  65. package/dist/actions/get-invoice.d.mts +30 -81
  66. package/dist/actions/get-invoice.d.mts.map +1 -1
  67. package/dist/actions/get-invoice.mjs +29 -29
  68. package/dist/actions/get-invoice.mjs.map +1 -1
  69. package/dist/actions/get-payment.cjs +3 -3
  70. package/dist/actions/get-payment.cjs.map +1 -1
  71. package/dist/actions/get-payment.d.cts +4 -14
  72. package/dist/actions/get-payment.d.mts +4 -14
  73. package/dist/actions/get-payment.mjs +3 -3
  74. package/dist/actions/get-payment.mjs.map +1 -1
  75. package/dist/actions/get-product.cjs +2 -2
  76. package/dist/actions/get-product.cjs.map +1 -1
  77. package/dist/actions/get-product.d.cts +3 -11
  78. package/dist/actions/get-product.d.mts +3 -11
  79. package/dist/actions/get-product.mjs +2 -2
  80. package/dist/actions/get-product.mjs.map +1 -1
  81. package/dist/actions/get-profile.cjs +9 -9
  82. package/dist/actions/get-profile.cjs.map +1 -1
  83. package/dist/actions/get-profile.d.cts +10 -20
  84. package/dist/actions/get-profile.d.cts.map +1 -1
  85. package/dist/actions/get-profile.d.mts +10 -20
  86. package/dist/actions/get-profile.d.mts.map +1 -1
  87. package/dist/actions/get-profile.mjs +9 -9
  88. package/dist/actions/get-profile.mjs.map +1 -1
  89. package/dist/actions/list-currencies.cjs +3 -3
  90. package/dist/actions/list-currencies.cjs.map +1 -1
  91. package/dist/actions/list-currencies.d.cts +4 -10
  92. package/dist/actions/list-currencies.d.cts.map +1 -1
  93. package/dist/actions/list-currencies.d.mts +4 -10
  94. package/dist/actions/list-currencies.d.mts.map +1 -1
  95. package/dist/actions/list-currencies.mjs +3 -3
  96. package/dist/actions/list-currencies.mjs.map +1 -1
  97. package/dist/actions/list-customers.cjs +11 -11
  98. package/dist/actions/list-customers.cjs.map +1 -1
  99. package/dist/actions/list-customers.d.cts +12 -28
  100. package/dist/actions/list-customers.d.mts +12 -28
  101. package/dist/actions/list-customers.mjs +11 -11
  102. package/dist/actions/list-customers.mjs.map +1 -1
  103. package/dist/actions/list-expenses.cjs +14 -14
  104. package/dist/actions/list-expenses.cjs.map +1 -1
  105. package/dist/actions/list-expenses.d.cts +15 -34
  106. package/dist/actions/list-expenses.d.mts +15 -34
  107. package/dist/actions/list-expenses.mjs +14 -14
  108. package/dist/actions/list-expenses.mjs.map +1 -1
  109. package/dist/actions/list-invoices.cjs +35 -35
  110. package/dist/actions/list-invoices.cjs.map +1 -1
  111. package/dist/actions/list-invoices.d.cts +36 -98
  112. package/dist/actions/list-invoices.d.cts.map +1 -1
  113. package/dist/actions/list-invoices.d.mts +36 -98
  114. package/dist/actions/list-invoices.d.mts.map +1 -1
  115. package/dist/actions/list-invoices.mjs +35 -35
  116. package/dist/actions/list-invoices.mjs.map +1 -1
  117. package/dist/actions/list-payments.cjs +9 -9
  118. package/dist/actions/list-payments.cjs.map +1 -1
  119. package/dist/actions/list-payments.d.cts +10 -25
  120. package/dist/actions/list-payments.d.mts +10 -25
  121. package/dist/actions/list-payments.mjs +9 -9
  122. package/dist/actions/list-payments.mjs.map +1 -1
  123. package/dist/actions/list-products.cjs +6 -6
  124. package/dist/actions/list-products.cjs.map +1 -1
  125. package/dist/actions/list-products.d.cts +7 -23
  126. package/dist/actions/list-products.d.mts +7 -23
  127. package/dist/actions/list-products.mjs +6 -6
  128. package/dist/actions/list-products.mjs.map +1 -1
  129. package/dist/actions/update-customer.cjs +13 -13
  130. package/dist/actions/update-customer.cjs.map +1 -1
  131. package/dist/actions/update-customer.d.cts +14 -31
  132. package/dist/actions/update-customer.d.cts.map +1 -1
  133. package/dist/actions/update-customer.d.mts +14 -31
  134. package/dist/actions/update-customer.d.mts.map +1 -1
  135. package/dist/actions/update-customer.mjs +13 -13
  136. package/dist/actions/update-customer.mjs.map +1 -1
  137. package/dist/actions/update-expense-file.cjs +6 -6
  138. package/dist/actions/update-expense-file.cjs.map +1 -1
  139. package/dist/actions/update-expense-file.d.cts +7 -13
  140. package/dist/actions/update-expense-file.d.mts +7 -13
  141. package/dist/actions/update-expense-file.mjs +6 -6
  142. package/dist/actions/update-expense-file.mjs.map +1 -1
  143. package/dist/actions/update-expense.cjs +3 -3
  144. package/dist/actions/update-expense.cjs.map +1 -1
  145. package/dist/actions/update-expense.d.cts +4 -12
  146. package/dist/actions/update-expense.d.mts +4 -12
  147. package/dist/actions/update-expense.mjs +3 -3
  148. package/dist/actions/update-expense.mjs.map +1 -1
  149. package/dist/actions/update-invoice.cjs +57 -57
  150. package/dist/actions/update-invoice.cjs.map +1 -1
  151. package/dist/actions/update-invoice.d.cts +59 -114
  152. package/dist/actions/update-invoice.d.cts.map +1 -1
  153. package/dist/actions/update-invoice.d.mts +59 -114
  154. package/dist/actions/update-invoice.d.mts.map +1 -1
  155. package/dist/actions/update-invoice.mjs +57 -57
  156. package/dist/actions/update-invoice.mjs.map +1 -1
  157. package/dist/actions/update-product.cjs +2 -2
  158. package/dist/actions/update-product.cjs.map +1 -1
  159. package/dist/actions/update-product.d.cts +3 -11
  160. package/dist/actions/update-product.d.mts +3 -11
  161. package/dist/actions/update-product.mjs +2 -2
  162. package/dist/actions/update-product.mjs.map +1 -1
  163. package/package.json +1 -1
@@ -40,97 +40,97 @@ const FinmeiCreateInvoiceInput = z.object({
40
40
  units: z.string().describe("Units for the product (e.g., pcs, hours)").optional(),
41
41
  quantity: z.number().describe("Quantity for this product"),
42
42
  vat_percentage: z.number().describe("VAT percentage to apply (0-100)").optional()
43
- })).describe("Products array as required by API").optional(),
43
+ }).passthrough()).describe("Products array as required by API").optional(),
44
44
  issue_date: z.string().describe("Date the invoice was issued (YYYY-MM-DD)").optional(),
45
45
  line_items: z.array(z.object({
46
46
  quantity: z.number().describe("Quantity of the item, must be non-negative"),
47
47
  unit_price: z.number().describe("Unit price of the item in decimal, must be non-negative"),
48
48
  description: z.string().describe("Description of the line item")
49
- })).describe("List of line items for the invoice").optional(),
49
+ }).passthrough()).describe("List of line items for the invoice").optional(),
50
50
  customer_id: z.string().describe("ID of an existing customer; mutually exclusive with `customer`").optional(),
51
51
  invoice_date: z.string().describe("Invoice date as expected by the API (YYYY-MM-DD)").optional(),
52
52
  use_default_seller_info: z.boolean().default(true).describe("If true, API will use default seller info instead of requiring seller object").optional()
53
53
  });
54
54
  const FinmeiCreateInvoice_BuyerResponseSchema = z.object({
55
- type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Buyer type (individual, company)").optional()),
56
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact email").optional()),
57
- phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact phone").optional()),
58
- address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Buyer address").optional()),
59
- vat_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("VAT code").optional()),
60
- last_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name (for individuals)").optional()),
61
- first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name (for individuals)").optional()),
62
- company_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company registration code").optional()),
63
- company_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name (for companies)").optional()),
64
- individual_tax_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Individual tax ID").optional())
65
- });
55
+ type: z.string().describe("Buyer type (individual, company)").nullable().optional(),
56
+ email: z.string().describe("Contact email").nullable().optional(),
57
+ phone: z.string().describe("Contact phone").nullable().optional(),
58
+ address: z.string().describe("Buyer address").nullable().optional(),
59
+ vat_code: z.string().describe("VAT code").nullable().optional(),
60
+ last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
61
+ first_name: z.string().describe("First name (for individuals)").nullable().optional(),
62
+ company_code: z.string().describe("Company registration code").nullable().optional(),
63
+ company_name: z.string().describe("Company name (for companies)").nullable().optional(),
64
+ individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
65
+ }).passthrough();
66
66
  const FinmeiCreateInvoice_InvoiceItemResponseSchema = z.object({
67
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item unique identifier").optional()),
68
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Product or service name").optional()),
69
- price: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Unit price").optional()),
70
- units: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Units (e.g., pcs, hours)").optional()),
71
- quantity: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Quantity").optional()),
72
- vat_percentage: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("VAT percentage applied").optional())
73
- });
67
+ id: z.string().describe("Item unique identifier").nullable().optional(),
68
+ name: z.string().describe("Product or service name").nullable().optional(),
69
+ price: z.number().describe("Unit price").nullable().optional(),
70
+ units: z.string().describe("Units (e.g., pcs, hours)").nullable().optional(),
71
+ quantity: z.number().describe("Quantity").nullable().optional(),
72
+ vat_percentage: z.number().describe("VAT percentage applied").nullable().optional()
73
+ }).passthrough();
74
74
  const FinmeiCreateInvoice_SellerResponseSchema = z.object({
75
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact email").optional()),
76
- phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact phone").optional()),
77
- address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Business address").optional()),
78
- vat_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("VAT code").optional()),
79
- last_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name (for individuals)").optional()),
80
- first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name (for individuals)").optional()),
81
- company_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company registration code").optional()),
82
- company_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name (for companies)").optional()),
83
- business_type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of business (company, individual)").optional()),
84
- custom_fields: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Custom fields").optional()),
85
- individual_tax_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Individual tax ID").optional())
86
- });
75
+ email: z.string().describe("Contact email").nullable().optional(),
76
+ phone: z.string().describe("Contact phone").nullable().optional(),
77
+ address: z.string().describe("Business address").nullable().optional(),
78
+ vat_code: z.string().describe("VAT code").nullable().optional(),
79
+ last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
80
+ first_name: z.string().describe("First name (for individuals)").nullable().optional(),
81
+ company_code: z.string().describe("Company registration code").nullable().optional(),
82
+ company_name: z.string().describe("Company name (for companies)").nullable().optional(),
83
+ business_type: z.string().describe("Type of business (company, individual)").nullable().optional(),
84
+ custom_fields: z.array(z.record(z.string(), z.unknown())).describe("Custom fields").nullable().optional(),
85
+ individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
86
+ }).passthrough();
87
87
  const FinmeiCreateInvoice_CustomerResponseSchema = z.object({
88
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier of the customer").optional()),
89
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the customer").optional()),
90
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address of the customer").optional()),
91
- address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Postal address of the customer").optional())
92
- });
88
+ id: z.string().describe("Unique identifier of the customer").nullable().optional(),
89
+ name: z.string().describe("Full name of the customer").nullable().optional(),
90
+ email: z.string().describe("Email address of the customer").nullable().optional(),
91
+ address: z.string().describe("Postal address of the customer").nullable().optional()
92
+ }).passthrough();
93
93
  const FinmeiCreateInvoice_LineItemResponseSchema = z.object({
94
- quantity: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Quantity of the item").optional()),
95
- unit_price: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Unit price of the item").optional()),
96
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the line item").optional())
97
- });
94
+ quantity: z.number().describe("Quantity of the item").nullable().optional(),
95
+ unit_price: z.number().describe("Unit price of the item").nullable().optional(),
96
+ description: z.string().describe("Description of the line item").nullable().optional()
97
+ }).passthrough();
98
98
  const finmeiCreateInvoice = action("FINMEI_CREATE_INVOICE", {
99
99
  slug: "finmei-create-invoice",
100
100
  name: "Create Invoice",
101
101
  description: "Creates a new invoice in Finmei with buyer information and line items. Use this when you need to generate an invoice for a customer. You can specify: - Buyer details (person or company) - Products/services with quantities and prices - Invoice type (regular, VAT, preliminary, credit) - Currency, dates, and custom notes Example: \"Create an invoice for Tech Solutions Inc with 3 months of support services at $99.99/month\"",
102
102
  input: FinmeiCreateInvoiceInput,
103
103
  output: z.object({
104
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier of the created invoice").optional()),
105
- vat: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total VAT amount").optional()),
106
- code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice code or reference (legacy)").optional()),
107
- buyer: z.preprocess((value) => value === null ? void 0 : value, FinmeiCreateInvoice_BuyerResponseSchema.optional()),
108
- items: z.preprocess((value) => value === null ? void 0 : value, z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").optional()),
109
- notes: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Notes included on the invoice").optional()),
110
- seller: z.preprocess((value) => value === null ? void 0 : value, FinmeiCreateInvoice_SellerResponseSchema.optional()),
111
- series: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice series/prefix").optional()),
112
- status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status of the invoice (legacy)").optional()),
113
- currency: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Currency code of the invoice").optional()),
114
- customer: z.preprocess((value) => value === null ? void 0 : value, FinmeiCreateInvoice_CustomerResponseSchema.optional()),
115
- due_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment due date (legacy)").optional()),
116
- language: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice language").optional()),
117
- subtotal: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Subtotal amount before VAT").optional()),
118
- amount_due: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount due on the invoice (legacy)").optional()),
119
- created_at: z.preprocess((value) => value === null ? void 0 : value, z.union([z.string(), z.number().int()]).optional()),
120
- issue_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date the invoice was issued (legacy)").optional()),
121
- line_items: z.preprocess((value) => value === null ? void 0 : value, z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe("Line items (legacy)").optional()),
122
- share_link: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Public link to share the invoice").optional()),
123
- updated_at: z.preprocess((value) => value === null ? void 0 : value, z.union([z.string(), z.number().int()]).optional()),
124
- amount_paid: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount paid on the invoice (legacy)").optional()),
125
- business_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Business identifier").optional()),
126
- invoice_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date the invoice was issued").optional()),
127
- invoice_type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of the invoice").optional()),
128
- invoice_number: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice number").optional()),
129
- pay_until_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment due date").optional()),
130
- payment_status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment status of the invoice").optional()),
131
- total_incl_vat: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount including VAT").optional()),
132
- payment_options: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Available payment options").optional())
133
- })
104
+ id: z.string().describe("Unique identifier of the created invoice").nullable().optional(),
105
+ vat: z.number().describe("Total VAT amount").nullable().optional(),
106
+ code: z.string().describe("Invoice code or reference (legacy)").nullable().optional(),
107
+ buyer: FinmeiCreateInvoice_BuyerResponseSchema.nullable().optional(),
108
+ items: z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").nullable().optional(),
109
+ notes: z.string().describe("Notes included on the invoice").nullable().optional(),
110
+ seller: FinmeiCreateInvoice_SellerResponseSchema.nullable().optional(),
111
+ series: z.string().describe("Invoice series/prefix").nullable().optional(),
112
+ status: z.string().describe("Status of the invoice (legacy)").nullable().optional(),
113
+ currency: z.string().describe("Currency code of the invoice").nullable().optional(),
114
+ customer: FinmeiCreateInvoice_CustomerResponseSchema.nullable().optional(),
115
+ due_date: z.string().describe("Payment due date (legacy)").nullable().optional(),
116
+ language: z.string().describe("Invoice language").nullable().optional(),
117
+ subtotal: z.number().describe("Subtotal amount before VAT").nullable().optional(),
118
+ amount_due: z.number().describe("Total amount due on the invoice (legacy)").nullable().optional(),
119
+ created_at: z.union([z.string(), z.number().int()]).nullable().optional(),
120
+ issue_date: z.string().describe("Date the invoice was issued (legacy)").nullable().optional(),
121
+ line_items: z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe("Line items (legacy)").nullable().optional(),
122
+ share_link: z.string().describe("Public link to share the invoice").nullable().optional(),
123
+ updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),
124
+ amount_paid: z.number().describe("Total amount paid on the invoice (legacy)").nullable().optional(),
125
+ business_id: z.string().describe("Business identifier").nullable().optional(),
126
+ invoice_date: z.string().describe("Date the invoice was issued").nullable().optional(),
127
+ invoice_type: z.string().describe("Type of the invoice").nullable().optional(),
128
+ invoice_number: z.string().describe("Invoice number").nullable().optional(),
129
+ pay_until_date: z.string().describe("Payment due date").nullable().optional(),
130
+ payment_status: z.string().describe("Payment status of the invoice").nullable().optional(),
131
+ total_incl_vat: z.number().describe("Total amount including VAT").nullable().optional(),
132
+ payment_options: z.array(z.record(z.string(), z.unknown())).describe("Available payment options").nullable().optional()
133
+ }).passthrough()
134
134
  });
135
135
  //#endregion
136
136
  export { finmeiCreateInvoice };
@@ -1 +1 @@
1
- {"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiCreateInvoiceInput = 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 required by API. 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 address: z.string().describe(\"Buyer address\").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_name: z.string().describe(\"Company name (company)\").optional(),\n}).describe(\"Buyer object; required by API when not using customer_id\").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 address: z.string().describe(\"Seller address\").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 customer: z.object({\n name: z.string().describe(\"Full name of the customer\"),\n email: z.string().describe(\"Email address of the customer\"),\n address: z.string().describe(\"Postal address of the customer\").optional(),\n}).describe(\"Inline customer details; mutually exclusive with `customer_id`\").optional(),\n due_date: z.string().describe(\"Payment due date (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)\").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 as required by API\").optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (YYYY-MM-DD)\").optional(),\n line_items: z.array(z.object({\n quantity: z.number().describe(\"Quantity of the item, must be non-negative\"),\n unit_price: z.number().describe(\"Unit price of the item in decimal, must be non-negative\"),\n description: z.string().describe(\"Description of the line item\"),\n})).describe(\"List of line items for the invoice\").optional(),\n customer_id: z.string().describe(\"ID of an existing customer; mutually exclusive with `customer`\").optional(),\n invoice_date: z.string().describe(\"Invoice date as expected by the API (YYYY-MM-DD)\").optional(),\n use_default_seller_info: z.boolean().default(true).describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiCreateInvoice_BuyerResponseSchema = z.object({\n type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer type (individual, company)\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT code\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individuals)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individuals)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for companies)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n});\nconst FinmeiCreateInvoice_InvoiceItemResponseSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item unique identifier\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Product or service name\").optional()),\n price: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Unit price\").optional()),\n units: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Units (e.g., pcs, hours)\").optional()),\n quantity: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Quantity\").optional()),\n vat_percentage: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"VAT percentage applied\").optional()),\n});\nconst FinmeiCreateInvoice_SellerResponseSchema = z.object({\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT code\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individuals)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individuals)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for companies)\").optional()),\n business_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of business (company, individual)\").optional()),\n custom_fields: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n});\nconst FinmeiCreateInvoice_CustomerResponseSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the customer\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the customer\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address of the customer\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Postal address of the customer\").optional()),\n});\nconst FinmeiCreateInvoice_LineItemResponseSchema = z.object({\n quantity: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Quantity of the item\").optional()),\n unit_price: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Unit price of the item\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the line item\").optional()),\n});\nexport const FinmeiCreateInvoiceOutput = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the created invoice\").optional()),\n vat: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total VAT amount\").optional()),\n code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice code or reference (legacy)\").optional()),\n buyer: z.preprocess((value) => (value === null ? undefined : value), FinmeiCreateInvoice_BuyerResponseSchema.optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").optional()),\n notes: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Notes included on the invoice\").optional()),\n seller: z.preprocess((value) => (value === null ? undefined : value), FinmeiCreateInvoice_SellerResponseSchema.optional()),\n series: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice series/prefix\").optional()),\n status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status of the invoice (legacy)\").optional()),\n currency: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Currency code of the invoice\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), FinmeiCreateInvoice_CustomerResponseSchema.optional()),\n due_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date (legacy)\").optional()),\n language: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice language\").optional()),\n subtotal: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Subtotal amount before VAT\").optional()),\n amount_due: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount due on the invoice (legacy)\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.number().int()]).optional()),\n issue_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date the invoice was issued (legacy)\").optional()),\n line_items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe(\"Line items (legacy)\").optional()),\n share_link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Public link to share the invoice\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.number().int()]).optional()),\n amount_paid: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount paid on the invoice (legacy)\").optional()),\n business_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business identifier\").optional()),\n invoice_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date the invoice was issued\").optional()),\n invoice_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of the invoice\").optional()),\n invoice_number: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice number\").optional()),\n pay_until_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date\").optional()),\n payment_status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment status of the invoice\").optional()),\n total_incl_vat: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount including VAT\").optional()),\n payment_options: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").optional()),\n});\n\nexport const finmeiCreateInvoice = action(\"FINMEI_CREATE_INVOICE\", {\n slug: \"finmei-create-invoice\",\n name: \"Create Invoice\",\n description: \"Creates a new invoice in Finmei with buyer information and line items. Use this when you need to generate an invoice for a customer. You can specify: - Buyer details (person or company) - Products/services with quantities and prices - Invoice type (regular, VAT, preliminary, credit) - Currency, dates, and custom notes Example: \\\"Create an invoice for Tech Solutions Inc with 3 months of support services at $99.99/month\\\"\",\n input: FinmeiCreateInvoiceInput,\n output: FinmeiCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,KAAK;EAAC;EAAmB;EAAe;EAAuB;EAA2B;EAAkB;CAAoB,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACvU,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,C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AAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;EAC1I,iBAAiB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CAC5K,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiCreateInvoiceInput = 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 required by API. 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 address: z.string().describe(\"Buyer address\").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_name: z.string().describe(\"Company name (company)\").optional(),\n}).describe(\"Buyer object; required by API when not using customer_id\").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 address: z.string().describe(\"Seller address\").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 customer: z.object({\n name: z.string().describe(\"Full name of the customer\"),\n email: z.string().describe(\"Email address of the customer\"),\n address: z.string().describe(\"Postal address of the customer\").optional(),\n}).describe(\"Inline customer details; mutually exclusive with `customer_id`\").optional(),\n due_date: z.string().describe(\"Payment due date (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)\").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 as required by API\").optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (YYYY-MM-DD)\").optional(),\n line_items: z.array(z.object({\n quantity: z.number().describe(\"Quantity of the item, must be non-negative\"),\n unit_price: z.number().describe(\"Unit price of the item in decimal, must be non-negative\"),\n description: z.string().describe(\"Description of the line item\"),\n}).passthrough()).describe(\"List of line items for the invoice\").optional(),\n customer_id: z.string().describe(\"ID of an existing customer; mutually exclusive with `customer`\").optional(),\n invoice_date: z.string().describe(\"Invoice date as expected by the API (YYYY-MM-DD)\").optional(),\n use_default_seller_info: z.boolean().default(true).describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiCreateInvoice_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 FinmeiCreateInvoice_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 FinmeiCreateInvoice_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();\nconst FinmeiCreateInvoice_CustomerResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable().optional(),\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 address: z.string().describe(\"Postal address of the customer\").nullable().optional(),\n}).passthrough();\nconst FinmeiCreateInvoice_LineItemResponseSchema = z.object({\n quantity: z.number().describe(\"Quantity of the item\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item\").nullable().optional(),\n description: z.string().describe(\"Description of the line item\").nullable().optional(),\n}).passthrough();\nexport const FinmeiCreateInvoiceOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference (legacy)\").nullable().optional(),\n buyer: FinmeiCreateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiCreateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice (legacy)\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n customer: FinmeiCreateInvoice_CustomerResponseSchema.nullable().optional(),\n due_date: z.string().describe(\"Payment due date (legacy)\").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 (legacy)\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (legacy)\").nullable().optional(),\n line_items: z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe(\"Line items (legacy)\").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 (legacy)\").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 finmeiCreateInvoice = action(\"FINMEI_CREATE_INVOICE\", {\n slug: \"finmei-create-invoice\",\n name: \"Create Invoice\",\n description: \"Creates a new invoice in Finmei with buyer information and line items. Use this when you need to generate an invoice for a customer. You can specify: - Buyer details (person or company) - Products/services with quantities and prices - Invoice type (regular, VAT, preliminary, credit) - Currency, dates, and custom notes Example: \\\"Create an invoice for Tech Solutions Inc with 3 months of support services at $99.99/month\\\"\",\n input: FinmeiCreateInvoiceInput,\n output: FinmeiCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,KAAK;EAAC;EAAmB;EAAe;EAAuB;EAA2B;EAAkB;CAAoB,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACvU,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc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ACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/delete-customer.ts
4
4
  const FinmeiDeleteCustomerInput = zod.z.object({ customer_id: zod.z.string().describe("Unique identifier of the customer to delete") }).describe("Request schema for deleting a customer.");
5
- const FinmeiDeleteCustomerOutput = zod.z.object({}).describe("Response schema for deleting a customer. Empty if successful.");
5
+ const FinmeiDeleteCustomerOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response schema for deleting a customer. Empty if successful.");
6
6
  const finmeiDeleteCustomer = require_action.action("FINMEI_DELETE_CUSTOMER", {
7
7
  slug: "finmei-delete-customer",
8
8
  name: "Delete Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput = z.object({}).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE/H,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,6BAA6BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAEpJ,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -4,10 +4,10 @@ import { z } from "zod";
4
4
  declare const FinmeiDeleteCustomerInput: z.ZodObject<{
5
5
  customer_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
- declare const FinmeiDeleteCustomerOutput: z.ZodObject<{}, z.core.$strip>;
7
+ declare const FinmeiDeleteCustomerOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  customer_id: string;
10
- }, Record<string, never>, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
11
  //#endregion
12
12
  export { finmeiDeleteCustomer };
13
13
  //# sourceMappingURL=delete-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA;;GAM/B,MAAA"}
1
+ {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA"}
@@ -4,10 +4,10 @@ import { z } from "zod";
4
4
  declare const FinmeiDeleteCustomerInput: z.ZodObject<{
5
5
  customer_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
- declare const FinmeiDeleteCustomerOutput: z.ZodObject<{}, z.core.$strip>;
7
+ declare const FinmeiDeleteCustomerOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  customer_id: string;
10
- }, Record<string, never>, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
11
  //#endregion
12
12
  export { finmeiDeleteCustomer };
13
13
  //# sourceMappingURL=delete-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA;;GAM/B,MAAA"}
1
+ {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA"}
@@ -5,7 +5,7 @@ const finmeiDeleteCustomer = action("FINMEI_DELETE_CUSTOMER", {
5
5
  name: "Delete Customer",
6
6
  description: "Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.",
7
7
  input: z.object({ customer_id: z.string().describe("Unique identifier of the customer to delete") }).describe("Request schema for deleting a customer."),
8
- output: z.object({}).describe("Response schema for deleting a customer. Empty if successful.")
8
+ output: z.record(z.string(), z.unknown()).describe("Response schema for deleting a customer. Empty if successful.")
9
9
  });
10
10
  //#endregion
11
11
  export { finmeiDeleteCustomer };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput = z.object({}).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATuC,EAAE,OAAO,EAChD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAOH;CACP,QAPwC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAOtD;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATuC,EAAE,OAAO,EAChD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAOH;CACP,QAPwC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAO3E;AACV,CAAC"}
@@ -3,9 +3,9 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-invoice.ts
4
4
  const FinmeiDeleteInvoiceInput = zod.z.object({ invoice_id: zod.z.string().describe("The unique identifier of the invoice to delete") }).describe("Request model for deleting an invoice by its ID.");
5
5
  const FinmeiDeleteInvoiceOutput = zod.z.object({
6
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Optional message returned by the API").optional()),
6
+ message: zod.z.string().describe("Optional message returned by the API").nullable().optional(),
7
7
  success: zod.z.boolean().describe("Indicates whether the invoice was successfully deleted").nullable()
8
- }).describe("Response model returning deletion result.");
8
+ }).passthrough().describe("Response model returning deletion result.");
9
9
  const finmeiDeleteInvoice = require_action.action("FINMEI_DELETE_INVOICE", {
10
10
  slug: "finmei-delete-invoice",
11
11
  name: "Delete Invoice",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-invoice.cjs","names":["z","action"],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional message returned by the API\").optional()),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\").nullable(),\n}).describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC7I,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-invoice.cjs","names":["z","action"],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,15 +5,12 @@ declare const FinmeiDeleteInvoiceInput: z.ZodObject<{
5
5
  invoice_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteInvoiceOutput: z.ZodObject<{
8
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  invoice_id: string;
13
- }, {
14
- success: boolean | null;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { finmeiDeleteInvoice };
19
16
  //# sourceMappingURL=delete-invoice.d.cts.map
@@ -5,15 +5,12 @@ declare const FinmeiDeleteInvoiceInput: z.ZodObject<{
5
5
  invoice_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteInvoiceOutput: z.ZodObject<{
8
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  invoice_id: string;
13
- }, {
14
- success: boolean | null;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { finmeiDeleteInvoice };
19
16
  //# sourceMappingURL=delete-invoice.d.mts.map
@@ -6,9 +6,9 @@ const finmeiDeleteInvoice = action("FINMEI_DELETE_INVOICE", {
6
6
  description: "Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.",
7
7
  input: z.object({ invoice_id: z.string().describe("The unique identifier of the invoice to delete") }).describe("Request model for deleting an invoice by its ID."),
8
8
  output: z.object({
9
- message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Optional message returned by the API").optional()),
9
+ message: z.string().describe("Optional message returned by the API").nullable().optional(),
10
10
  success: z.boolean().describe("Indicates whether the invoice was successfully deleted").nullable()
11
- }).describe("Response model returning deletion result.")
11
+ }).passthrough().describe("Response model returning deletion result.")
12
12
  });
13
13
  //#endregion
14
14
  export { finmeiDeleteInvoice };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-invoice.mjs","names":[],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional message returned by the API\").optional()),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\").nullable(),\n}).describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;EAC7I,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-invoice.mjs","names":[],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/delete-payment.ts
4
4
  const FinmeiDeletePaymentInput = zod.z.object({ payment_id: zod.z.string().describe("Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.") }).describe("Request model for deleting a payment.");
5
- const FinmeiDeletePaymentOutput = zod.z.object({ success: zod.z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).").nullable() }).describe("Response model for delete payment action.");
5
+ const FinmeiDeletePaymentOutput = zod.z.object({ success: zod.z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).").nullable() }).passthrough().describe("Response model for delete payment action.");
6
6
  const finmeiDeletePayment = require_action.action("FINMEI_DELETE_PAYMENT", {
7
7
  slug: "finmei-delete-payment",
8
8
  name: "Delete Payment",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\").nullable(),\n}).describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,EAC1K,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\").nullable(),\n}).passthrough().describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,EAC1K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,12 +6,10 @@ declare const FinmeiDeletePaymentInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeletePaymentOutput: z.ZodObject<{
8
8
  success: z.ZodNullable<z.ZodBoolean>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  payment_id: string;
12
- }, {
13
- success: boolean | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
13
  //#endregion
16
14
  export { finmeiDeletePayment };
17
15
  //# sourceMappingURL=delete-payment.d.cts.map
@@ -6,12 +6,10 @@ declare const FinmeiDeletePaymentInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeletePaymentOutput: z.ZodObject<{
8
8
  success: z.ZodNullable<z.ZodBoolean>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  payment_id: string;
12
- }, {
13
- success: boolean | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
13
  //#endregion
16
14
  export { finmeiDeletePayment };
17
15
  //# sourceMappingURL=delete-payment.d.mts.map
@@ -5,7 +5,7 @@ const finmeiDeletePayment = action("FINMEI_DELETE_PAYMENT", {
5
5
  name: "Delete Payment",
6
6
  description: "Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.",
7
7
  input: z.object({ payment_id: z.string().describe("Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.") }).describe("Request model for deleting a payment."),
8
- output: z.object({ success: z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).").nullable() }).describe("Response model for delete payment action.")
8
+ output: z.object({ success: z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).").nullable() }).passthrough().describe("Response model for delete payment action.")
9
9
  });
10
10
  //#endregion
11
11
  export { finmeiDeletePayment };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-payment.mjs","names":[],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\").nullable(),\n}).describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,EAC1K,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-payment.mjs","names":[],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\").nullable(),\n}).passthrough().describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,EAC1K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -3,9 +3,9 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-product.ts
4
4
  const FinmeiDeleteProductInput = zod.z.object({ product_id: zod.z.string().describe("Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.") });
5
5
  const FinmeiDeleteProductOutput = zod.z.object({
6
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").optional()),
6
+ message: zod.z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").nullable().optional(),
7
7
  success: zod.z.boolean().describe("True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.").nullable()
8
- });
8
+ }).passthrough();
9
9
  const finmeiDeleteProduct = require_action.action("FINMEI_DELETE_PRODUCT", {
10
10
  slug: "finmei-delete-product",
11
11
  name: "Delete Product",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").optional()),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n});\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC;CAC/Q,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AACtK,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").nullable().optional(),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n}).passthrough();\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3N,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AACtK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,15 +5,12 @@ declare const FinmeiDeleteProductInput: z.ZodObject<{
5
5
  product_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteProductOutput: z.ZodObject<{
8
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  product_id: string;
13
- }, {
14
- success: boolean | null;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { finmeiDeleteProduct };
19
16
  //# sourceMappingURL=delete-product.d.cts.map