@keystrokehq/taxjar 0.1.0

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 (202) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/calculate-sales-tax-for-an-order.cjs +119 -0
  7. package/dist/actions/calculate-sales-tax-for-an-order.cjs.map +1 -0
  8. package/dist/actions/calculate-sales-tax-for-an-order.d.cts +9 -0
  9. package/dist/actions/calculate-sales-tax-for-an-order.d.cts.map +1 -0
  10. package/dist/actions/calculate-sales-tax-for-an-order.d.mts +9 -0
  11. package/dist/actions/calculate-sales-tax-for-an-order.d.mts.map +1 -0
  12. package/dist/actions/calculate-sales-tax-for-an-order.mjs +118 -0
  13. package/dist/actions/calculate-sales-tax-for-an-order.mjs.map +1 -0
  14. package/dist/actions/create-customer.cjs +45 -0
  15. package/dist/actions/create-customer.cjs.map +1 -0
  16. package/dist/actions/create-customer.d.cts +9 -0
  17. package/dist/actions/create-customer.d.cts.map +1 -0
  18. package/dist/actions/create-customer.d.mts +9 -0
  19. package/dist/actions/create-customer.d.mts.map +1 -0
  20. package/dist/actions/create-customer.mjs +44 -0
  21. package/dist/actions/create-customer.mjs.map +1 -0
  22. package/dist/actions/create-order-transaction.cjs +104 -0
  23. package/dist/actions/create-order-transaction.cjs.map +1 -0
  24. package/dist/actions/create-order-transaction.d.cts +9 -0
  25. package/dist/actions/create-order-transaction.d.cts.map +1 -0
  26. package/dist/actions/create-order-transaction.d.mts +9 -0
  27. package/dist/actions/create-order-transaction.d.mts.map +1 -0
  28. package/dist/actions/create-order-transaction.mjs +103 -0
  29. package/dist/actions/create-order-transaction.mjs.map +1 -0
  30. package/dist/actions/create-refund-transaction.cjs +70 -0
  31. package/dist/actions/create-refund-transaction.cjs.map +1 -0
  32. package/dist/actions/create-refund-transaction.d.cts +9 -0
  33. package/dist/actions/create-refund-transaction.d.cts.map +1 -0
  34. package/dist/actions/create-refund-transaction.d.mts +9 -0
  35. package/dist/actions/create-refund-transaction.d.mts.map +1 -0
  36. package/dist/actions/create-refund-transaction.mjs +69 -0
  37. package/dist/actions/create-refund-transaction.mjs.map +1 -0
  38. package/dist/actions/delete-customer.cjs +16 -0
  39. package/dist/actions/delete-customer.cjs.map +1 -0
  40. package/dist/actions/delete-customer.d.cts +9 -0
  41. package/dist/actions/delete-customer.d.cts.map +1 -0
  42. package/dist/actions/delete-customer.d.mts +9 -0
  43. package/dist/actions/delete-customer.d.mts.map +1 -0
  44. package/dist/actions/delete-customer.mjs +13 -0
  45. package/dist/actions/delete-customer.mjs.map +1 -0
  46. package/dist/actions/delete-order-transaction.cjs +16 -0
  47. package/dist/actions/delete-order-transaction.cjs.map +1 -0
  48. package/dist/actions/delete-order-transaction.d.cts +9 -0
  49. package/dist/actions/delete-order-transaction.d.cts.map +1 -0
  50. package/dist/actions/delete-order-transaction.d.mts +9 -0
  51. package/dist/actions/delete-order-transaction.d.mts.map +1 -0
  52. package/dist/actions/delete-order-transaction.mjs +13 -0
  53. package/dist/actions/delete-order-transaction.mjs.map +1 -0
  54. package/dist/actions/delete-refund-transaction.cjs +16 -0
  55. package/dist/actions/delete-refund-transaction.cjs.map +1 -0
  56. package/dist/actions/delete-refund-transaction.d.cts +9 -0
  57. package/dist/actions/delete-refund-transaction.d.cts.map +1 -0
  58. package/dist/actions/delete-refund-transaction.d.mts +9 -0
  59. package/dist/actions/delete-refund-transaction.d.mts.map +1 -0
  60. package/dist/actions/delete-refund-transaction.mjs +13 -0
  61. package/dist/actions/delete-refund-transaction.mjs.map +1 -0
  62. package/dist/actions/index.cjs +43 -0
  63. package/dist/actions/index.d.cts +22 -0
  64. package/dist/actions/index.d.mts +22 -0
  65. package/dist/actions/index.mjs +22 -0
  66. package/dist/actions/list-customers.cjs +19 -0
  67. package/dist/actions/list-customers.cjs.map +1 -0
  68. package/dist/actions/list-customers.d.cts +9 -0
  69. package/dist/actions/list-customers.d.cts.map +1 -0
  70. package/dist/actions/list-customers.d.mts +9 -0
  71. package/dist/actions/list-customers.d.mts.map +1 -0
  72. package/dist/actions/list-customers.mjs +16 -0
  73. package/dist/actions/list-customers.mjs.map +1 -0
  74. package/dist/actions/list-nexus-regions.cjs +23 -0
  75. package/dist/actions/list-nexus-regions.cjs.map +1 -0
  76. package/dist/actions/list-nexus-regions.d.cts +9 -0
  77. package/dist/actions/list-nexus-regions.d.cts.map +1 -0
  78. package/dist/actions/list-nexus-regions.d.mts +9 -0
  79. package/dist/actions/list-nexus-regions.d.mts.map +1 -0
  80. package/dist/actions/list-nexus-regions.mjs +22 -0
  81. package/dist/actions/list-nexus-regions.mjs.map +1 -0
  82. package/dist/actions/list-order-transactions.cjs +20 -0
  83. package/dist/actions/list-order-transactions.cjs.map +1 -0
  84. package/dist/actions/list-order-transactions.d.cts +9 -0
  85. package/dist/actions/list-order-transactions.d.cts.map +1 -0
  86. package/dist/actions/list-order-transactions.d.mts +9 -0
  87. package/dist/actions/list-order-transactions.d.mts.map +1 -0
  88. package/dist/actions/list-order-transactions.mjs +17 -0
  89. package/dist/actions/list-order-transactions.mjs.map +1 -0
  90. package/dist/actions/list-refund-transactions.cjs +20 -0
  91. package/dist/actions/list-refund-transactions.cjs.map +1 -0
  92. package/dist/actions/list-refund-transactions.d.cts +9 -0
  93. package/dist/actions/list-refund-transactions.d.cts.map +1 -0
  94. package/dist/actions/list-refund-transactions.d.mts +9 -0
  95. package/dist/actions/list-refund-transactions.d.mts.map +1 -0
  96. package/dist/actions/list-refund-transactions.mjs +17 -0
  97. package/dist/actions/list-refund-transactions.mjs.map +1 -0
  98. package/dist/actions/list-tax-categories.cjs +21 -0
  99. package/dist/actions/list-tax-categories.cjs.map +1 -0
  100. package/dist/actions/list-tax-categories.d.cts +9 -0
  101. package/dist/actions/list-tax-categories.d.cts.map +1 -0
  102. package/dist/actions/list-tax-categories.d.mts +9 -0
  103. package/dist/actions/list-tax-categories.d.mts.map +1 -0
  104. package/dist/actions/list-tax-categories.mjs +20 -0
  105. package/dist/actions/list-tax-categories.mjs.map +1 -0
  106. package/dist/actions/show-customer.cjs +27 -0
  107. package/dist/actions/show-customer.cjs.map +1 -0
  108. package/dist/actions/show-customer.d.cts +9 -0
  109. package/dist/actions/show-customer.d.cts.map +1 -0
  110. package/dist/actions/show-customer.d.mts +9 -0
  111. package/dist/actions/show-customer.d.mts.map +1 -0
  112. package/dist/actions/show-customer.mjs +26 -0
  113. package/dist/actions/show-customer.mjs.map +1 -0
  114. package/dist/actions/show-order-transaction.cjs +49 -0
  115. package/dist/actions/show-order-transaction.cjs.map +1 -0
  116. package/dist/actions/show-order-transaction.d.cts +9 -0
  117. package/dist/actions/show-order-transaction.d.cts.map +1 -0
  118. package/dist/actions/show-order-transaction.d.mts +9 -0
  119. package/dist/actions/show-order-transaction.d.mts.map +1 -0
  120. package/dist/actions/show-order-transaction.mjs +48 -0
  121. package/dist/actions/show-order-transaction.mjs.map +1 -0
  122. package/dist/actions/show-refund-transaction.cjs +49 -0
  123. package/dist/actions/show-refund-transaction.cjs.map +1 -0
  124. package/dist/actions/show-refund-transaction.d.cts +9 -0
  125. package/dist/actions/show-refund-transaction.d.cts.map +1 -0
  126. package/dist/actions/show-refund-transaction.d.mts +9 -0
  127. package/dist/actions/show-refund-transaction.d.mts.map +1 -0
  128. package/dist/actions/show-refund-transaction.mjs +48 -0
  129. package/dist/actions/show-refund-transaction.mjs.map +1 -0
  130. package/dist/actions/show-tax-rates-for-a-location.cjs +41 -0
  131. package/dist/actions/show-tax-rates-for-a-location.cjs.map +1 -0
  132. package/dist/actions/show-tax-rates-for-a-location.d.cts +9 -0
  133. package/dist/actions/show-tax-rates-for-a-location.d.cts.map +1 -0
  134. package/dist/actions/show-tax-rates-for-a-location.d.mts +9 -0
  135. package/dist/actions/show-tax-rates-for-a-location.d.mts.map +1 -0
  136. package/dist/actions/show-tax-rates-for-a-location.mjs +40 -0
  137. package/dist/actions/show-tax-rates-for-a-location.mjs.map +1 -0
  138. package/dist/actions/summarize-tax-rates-for-all-regions.cjs +28 -0
  139. package/dist/actions/summarize-tax-rates-for-all-regions.cjs.map +1 -0
  140. package/dist/actions/summarize-tax-rates-for-all-regions.d.cts +9 -0
  141. package/dist/actions/summarize-tax-rates-for-all-regions.d.cts.map +1 -0
  142. package/dist/actions/summarize-tax-rates-for-all-regions.d.mts +9 -0
  143. package/dist/actions/summarize-tax-rates-for-all-regions.d.mts.map +1 -0
  144. package/dist/actions/summarize-tax-rates-for-all-regions.mjs +27 -0
  145. package/dist/actions/summarize-tax-rates-for-all-regions.mjs.map +1 -0
  146. package/dist/actions/update-customer.cjs +46 -0
  147. package/dist/actions/update-customer.cjs.map +1 -0
  148. package/dist/actions/update-customer.d.cts +9 -0
  149. package/dist/actions/update-customer.d.cts.map +1 -0
  150. package/dist/actions/update-customer.d.mts +9 -0
  151. package/dist/actions/update-customer.d.mts.map +1 -0
  152. package/dist/actions/update-customer.mjs +45 -0
  153. package/dist/actions/update-customer.mjs.map +1 -0
  154. package/dist/actions/update-order-transaction.cjs +61 -0
  155. package/dist/actions/update-order-transaction.cjs.map +1 -0
  156. package/dist/actions/update-order-transaction.d.cts +9 -0
  157. package/dist/actions/update-order-transaction.d.cts.map +1 -0
  158. package/dist/actions/update-order-transaction.d.mts +9 -0
  159. package/dist/actions/update-order-transaction.d.mts.map +1 -0
  160. package/dist/actions/update-order-transaction.mjs +60 -0
  161. package/dist/actions/update-order-transaction.mjs.map +1 -0
  162. package/dist/actions/update-refund-transaction.cjs +83 -0
  163. package/dist/actions/update-refund-transaction.cjs.map +1 -0
  164. package/dist/actions/update-refund-transaction.d.cts +9 -0
  165. package/dist/actions/update-refund-transaction.d.cts.map +1 -0
  166. package/dist/actions/update-refund-transaction.d.mts +9 -0
  167. package/dist/actions/update-refund-transaction.d.mts.map +1 -0
  168. package/dist/actions/update-refund-transaction.mjs +82 -0
  169. package/dist/actions/update-refund-transaction.mjs.map +1 -0
  170. package/dist/actions/validate-vat-number.cjs +36 -0
  171. package/dist/actions/validate-vat-number.cjs.map +1 -0
  172. package/dist/actions/validate-vat-number.d.cts +9 -0
  173. package/dist/actions/validate-vat-number.d.cts.map +1 -0
  174. package/dist/actions/validate-vat-number.d.mts +9 -0
  175. package/dist/actions/validate-vat-number.d.mts.map +1 -0
  176. package/dist/actions/validate-vat-number.mjs +35 -0
  177. package/dist/actions/validate-vat-number.mjs.map +1 -0
  178. package/dist/app.cjs +9 -0
  179. package/dist/app.cjs.map +1 -0
  180. package/dist/app.d.cts +5 -0
  181. package/dist/app.d.cts.map +1 -0
  182. package/dist/app.d.mts +5 -0
  183. package/dist/app.d.mts.map +1 -0
  184. package/dist/app.mjs +10 -0
  185. package/dist/app.mjs.map +1 -0
  186. package/dist/catalog.cjs +15 -0
  187. package/dist/catalog.cjs.map +1 -0
  188. package/dist/catalog.d.cts +14 -0
  189. package/dist/catalog.d.cts.map +1 -0
  190. package/dist/catalog.d.mts +14 -0
  191. package/dist/catalog.d.mts.map +1 -0
  192. package/dist/catalog.mjs +15 -0
  193. package/dist/catalog.mjs.map +1 -0
  194. package/dist/execute.cjs +18 -0
  195. package/dist/execute.cjs.map +1 -0
  196. package/dist/execute.mjs +18 -0
  197. package/dist/execute.mjs.map +1 -0
  198. package/dist/index.cjs +48 -0
  199. package/dist/index.d.cts +24 -0
  200. package/dist/index.d.mts +24 -0
  201. package/dist/index.mjs +25 -0
  202. package/package.json +49 -0
@@ -0,0 +1,83 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-refund-transaction.ts
4
+ const TaxjarUpdateRefundTransactionInput = zod.z.object({
5
+ amount: zod.z.number().describe("Total amount of the refund excluding shipping").optional(),
6
+ to_zip: zod.z.string().describe("Postal code of destination").optional(),
7
+ to_city: zod.z.string().describe("City of destination").optional(),
8
+ from_zip: zod.z.string().describe("Postal code of origin").optional(),
9
+ shipping: zod.z.number().describe("Total amount of shipping refunded").optional(),
10
+ to_state: zod.z.string().describe("Two-letter ISO state code of destination").optional(),
11
+ from_city: zod.z.string().describe("City of origin").optional(),
12
+ sales_tax: zod.z.number().describe("Total amount of sales tax refunded").optional(),
13
+ to_street: zod.z.string().describe("Street address of destination").optional(),
14
+ from_state: zod.z.string().describe("Two-letter ISO state code of origin").optional(),
15
+ line_items: zod.z.array(zod.z.object({
16
+ id: zod.z.string().describe("Unique line item identifier").optional(),
17
+ discount: zod.z.number().describe("Discount applied to the item").optional(),
18
+ quantity: zod.z.number().int().describe("Quantity of the item refunded").optional(),
19
+ sales_tax: zod.z.number().describe("Sales tax refunded for the item (negative for refund)").optional(),
20
+ unit_price: zod.z.number().describe("Unit price of the item (negative for refund)").optional(),
21
+ description: zod.z.string().describe("Description of the item").optional(),
22
+ product_tax_code: zod.z.string().describe("Product tax code for the item").optional(),
23
+ product_identifier: zod.z.string().describe("Product identifier").optional()
24
+ })).describe("Line items for the refund").optional(),
25
+ to_country: zod.z.string().describe("Two-letter ISO country code of destination").optional(),
26
+ customer_id: zod.z.string().describe("Unique identifier of the customer").optional(),
27
+ from_street: zod.z.string().describe("Street address of origin").optional(),
28
+ from_country: zod.z.string().describe("Two-letter ISO country code of origin").optional(),
29
+ exemption_type: zod.z.enum([
30
+ "wholesale",
31
+ "government",
32
+ "marketplace",
33
+ "other",
34
+ "non_exempt"
35
+ ]).describe("Type of exemption for the refund").optional(),
36
+ transaction_id: zod.z.string().describe("Unique identifier for the refund transaction to update"),
37
+ transaction_date: zod.z.string().describe("Date the transaction was recorded (YYYY-MM-DD format)").optional(),
38
+ transaction_reference_id: zod.z.string().describe("Unique identifier of the original order transaction").optional()
39
+ }).describe("Request to update an existing refund transaction.");
40
+ const TaxjarUpdateRefundTransaction_RefundLineItemSchema = zod.z.object({
41
+ id: zod.z.string().describe("Unique line item identifier").nullable().optional(),
42
+ discount: zod.z.number().describe("Discount applied to the item").nullable().optional(),
43
+ quantity: zod.z.number().int().describe("Quantity of the item refunded").nullable().optional(),
44
+ sales_tax: zod.z.number().describe("Sales tax refunded for the item (negative for refund)").nullable().optional(),
45
+ unit_price: zod.z.number().describe("Unit price of the item (negative for refund)").nullable().optional(),
46
+ description: zod.z.string().describe("Description of the item").nullable().optional(),
47
+ product_tax_code: zod.z.string().describe("Product tax code for the item").nullable().optional(),
48
+ product_identifier: zod.z.string().describe("Product identifier").nullable().optional()
49
+ });
50
+ const TaxjarUpdateRefundTransaction_UpdatedRefundSchema = zod.z.object({
51
+ amount: zod.z.number().describe("Total amount of the refund excluding shipping"),
52
+ to_zip: zod.z.string().describe("Postal code of destination"),
53
+ to_city: zod.z.string().describe("City of destination").nullable().optional(),
54
+ user_id: zod.z.number().int().describe("ID of the user associated with the transaction").nullable().optional(),
55
+ from_zip: zod.z.string().describe("Postal code of origin").nullable().optional(),
56
+ provider: zod.z.string().describe("Source of where the transaction was originally recorded").nullable().optional(),
57
+ shipping: zod.z.number().describe("Total amount of shipping refunded").nullable().optional(),
58
+ to_state: zod.z.string().describe("Two-letter ISO state code of destination"),
59
+ from_city: zod.z.string().describe("City of origin").nullable().optional(),
60
+ sales_tax: zod.z.number().describe("Total amount of sales tax refunded").nullable().optional(),
61
+ to_street: zod.z.string().describe("Street address of destination").nullable().optional(),
62
+ from_state: zod.z.string().describe("Two-letter ISO state code of origin").nullable().optional(),
63
+ line_items: zod.z.array(TaxjarUpdateRefundTransaction_RefundLineItemSchema).describe("Line items for the refund").nullable().optional(),
64
+ to_country: zod.z.string().describe("Two-letter ISO country code of destination"),
65
+ from_street: zod.z.string().describe("Street address of origin").nullable().optional(),
66
+ from_country: zod.z.string().describe("Two-letter ISO country code of origin").nullable().optional(),
67
+ exemption_type: zod.z.string().describe("Type of tax exemption if applicable").nullable().optional(),
68
+ transaction_id: zod.z.string().describe("ID of the refund transaction"),
69
+ transaction_date: zod.z.string().describe("Date the transaction was recorded"),
70
+ transaction_reference_id: zod.z.string().describe("Reference ID to the original order").nullable().optional()
71
+ }).describe("Updated refund transaction returned from TaxJar.");
72
+ const TaxjarUpdateRefundTransactionOutput = zod.z.object({ refund: TaxjarUpdateRefundTransaction_UpdatedRefundSchema.nullable() });
73
+ const taxjarUpdateRefundTransaction = require_action.action("TAXJAR_UPDATE_REFUND_TRANSACTION", {
74
+ slug: "taxjar-update-refund-transaction",
75
+ name: "Update Refund Transaction",
76
+ description: "Tool to update an existing refund transaction. Use when adjusting refund details such as amount, shipping, or line items after creation.",
77
+ input: TaxjarUpdateRefundTransactionInput,
78
+ output: TaxjarUpdateRefundTransactionOutput
79
+ });
80
+ //#endregion
81
+ exports.taxjarUpdateRefundTransaction = taxjarUpdateRefundTransaction;
82
+
83
+ //# sourceMappingURL=update-refund-transaction.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-refund-transaction.cjs","names":["z","action"],"sources":["../../src/actions/update-refund-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarUpdateRefundTransactionInput: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount of the refund excluding shipping\").optional(),\n to_zip: z.string().describe(\"Postal code of destination\").optional(),\n to_city: z.string().describe(\"City of destination\").optional(),\n from_zip: z.string().describe(\"Postal code of origin\").optional(),\n shipping: z.number().describe(\"Total amount of shipping refunded\").optional(),\n to_state: z.string().describe(\"Two-letter ISO state code of destination\").optional(),\n from_city: z.string().describe(\"City of origin\").optional(),\n sales_tax: z.number().describe(\"Total amount of sales tax refunded\").optional(),\n to_street: z.string().describe(\"Street address of destination\").optional(),\n from_state: z.string().describe(\"Two-letter ISO state code of origin\").optional(),\n line_items: z.array(z.object({\n id: z.string().describe(\"Unique line item identifier\").optional(),\n discount: z.number().describe(\"Discount applied to the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\").optional(),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").optional(),\n description: z.string().describe(\"Description of the item\").optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").optional(),\n product_identifier: z.string().describe(\"Product identifier\").optional(),\n})).describe(\"Line items for the refund\").optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of destination\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer\").optional(),\n from_street: z.string().describe(\"Street address of origin\").optional(),\n from_country: z.string().describe(\"Two-letter ISO country code of origin\").optional(),\n exemption_type: z.enum([\"wholesale\", \"government\", \"marketplace\", \"other\", \"non_exempt\"]).describe(\"Type of exemption for the refund\").optional(),\n transaction_id: z.string().describe(\"Unique identifier for the refund transaction to update\"),\n transaction_date: z.string().describe(\"Date the transaction was recorded (YYYY-MM-DD format)\").optional(),\n transaction_reference_id: z.string().describe(\"Unique identifier of the original order transaction\").optional(),\n}).describe(\"Request to update an existing refund transaction.\");\nconst TaxjarUpdateRefundTransaction_RefundLineItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique line item identifier\").nullable().optional(),\n discount: z.number().describe(\"Discount applied to the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\").nullable().optional(),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier\").nullable().optional(),\n});\nconst TaxjarUpdateRefundTransaction_UpdatedRefundSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount of the refund excluding shipping\"),\n to_zip: z.string().describe(\"Postal code of destination\"),\n to_city: z.string().describe(\"City of destination\").nullable().optional(),\n user_id: z.number().int().describe(\"ID of the user associated with the transaction\").nullable().optional(),\n from_zip: z.string().describe(\"Postal code of origin\").nullable().optional(),\n provider: z.string().describe(\"Source of where the transaction was originally recorded\").nullable().optional(),\n shipping: z.number().describe(\"Total amount of shipping refunded\").nullable().optional(),\n to_state: z.string().describe(\"Two-letter ISO state code of destination\"),\n from_city: z.string().describe(\"City of origin\").nullable().optional(),\n sales_tax: z.number().describe(\"Total amount of sales tax refunded\").nullable().optional(),\n to_street: z.string().describe(\"Street address of destination\").nullable().optional(),\n from_state: z.string().describe(\"Two-letter ISO state code of origin\").nullable().optional(),\n line_items: z.array(TaxjarUpdateRefundTransaction_RefundLineItemSchema).describe(\"Line items for the refund\").nullable().optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of destination\"),\n from_street: z.string().describe(\"Street address of origin\").nullable().optional(),\n from_country: z.string().describe(\"Two-letter ISO country code of origin\").nullable().optional(),\n exemption_type: z.string().describe(\"Type of tax exemption if applicable\").nullable().optional(),\n transaction_id: z.string().describe(\"ID of the refund transaction\"),\n transaction_date: z.string().describe(\"Date the transaction was recorded\"),\n transaction_reference_id: z.string().describe(\"Reference ID to the original order\").nullable().optional(),\n}).describe(\"Updated refund transaction returned from TaxJar.\");\nexport const TaxjarUpdateRefundTransactionOutput: z.ZodTypeAny = z.object({\n refund: TaxjarUpdateRefundTransaction_UpdatedRefundSchema.nullable(),\n});\n\nexport const taxjarUpdateRefundTransaction = action(\"TAXJAR_UPDATE_REFUND_TRANSACTION\", {\n slug: \"taxjar-update-refund-transaction\",\n name: \"Update Refund Transaction\",\n description: \"Tool to update an existing refund transaction. Use when adjusting refund details such as amount, shipping, or line items after creation.\",\n input: TaxjarUpdateRefundTransactionInput,\n output: TaxjarUpdateRefundTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,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pdateRefundTransactionInput: z.ZodTypeAny;
5
+ declare const TaxjarUpdateRefundTransactionOutput: z.ZodTypeAny;
6
+ declare const taxjarUpdateRefundTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taxjarUpdateRefundTransaction };
9
+ //# sourceMappingURL=update-refund-transaction.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-refund-transaction.d.cts","names":[],"sources":["../../src/actions/update-refund-transaction.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UA6Ba;AAAA,cAiCnD,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-refund-transaction.d.ts
4
+ declare const TaxjarUpdateRefundTransactionInput: z.ZodTypeAny;
5
+ declare const TaxjarUpdateRefundTransactionOutput: z.ZodTypeAny;
6
+ declare const taxjarUpdateRefundTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taxjarUpdateRefundTransaction };
9
+ //# sourceMappingURL=update-refund-transaction.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-refund-transaction.d.mts","names":[],"sources":["../../src/actions/update-refund-transaction.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UA6Ba;AAAA,cAiCnD,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,82 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-refund-transaction.ts
4
+ const TaxjarUpdateRefundTransactionInput = z.object({
5
+ amount: z.number().describe("Total amount of the refund excluding shipping").optional(),
6
+ to_zip: z.string().describe("Postal code of destination").optional(),
7
+ to_city: z.string().describe("City of destination").optional(),
8
+ from_zip: z.string().describe("Postal code of origin").optional(),
9
+ shipping: z.number().describe("Total amount of shipping refunded").optional(),
10
+ to_state: z.string().describe("Two-letter ISO state code of destination").optional(),
11
+ from_city: z.string().describe("City of origin").optional(),
12
+ sales_tax: z.number().describe("Total amount of sales tax refunded").optional(),
13
+ to_street: z.string().describe("Street address of destination").optional(),
14
+ from_state: z.string().describe("Two-letter ISO state code of origin").optional(),
15
+ line_items: z.array(z.object({
16
+ id: z.string().describe("Unique line item identifier").optional(),
17
+ discount: z.number().describe("Discount applied to the item").optional(),
18
+ quantity: z.number().int().describe("Quantity of the item refunded").optional(),
19
+ sales_tax: z.number().describe("Sales tax refunded for the item (negative for refund)").optional(),
20
+ unit_price: z.number().describe("Unit price of the item (negative for refund)").optional(),
21
+ description: z.string().describe("Description of the item").optional(),
22
+ product_tax_code: z.string().describe("Product tax code for the item").optional(),
23
+ product_identifier: z.string().describe("Product identifier").optional()
24
+ })).describe("Line items for the refund").optional(),
25
+ to_country: z.string().describe("Two-letter ISO country code of destination").optional(),
26
+ customer_id: z.string().describe("Unique identifier of the customer").optional(),
27
+ from_street: z.string().describe("Street address of origin").optional(),
28
+ from_country: z.string().describe("Two-letter ISO country code of origin").optional(),
29
+ exemption_type: z.enum([
30
+ "wholesale",
31
+ "government",
32
+ "marketplace",
33
+ "other",
34
+ "non_exempt"
35
+ ]).describe("Type of exemption for the refund").optional(),
36
+ transaction_id: z.string().describe("Unique identifier for the refund transaction to update"),
37
+ transaction_date: z.string().describe("Date the transaction was recorded (YYYY-MM-DD format)").optional(),
38
+ transaction_reference_id: z.string().describe("Unique identifier of the original order transaction").optional()
39
+ }).describe("Request to update an existing refund transaction.");
40
+ const TaxjarUpdateRefundTransaction_RefundLineItemSchema = z.object({
41
+ id: z.string().describe("Unique line item identifier").nullable().optional(),
42
+ discount: z.number().describe("Discount applied to the item").nullable().optional(),
43
+ quantity: z.number().int().describe("Quantity of the item refunded").nullable().optional(),
44
+ sales_tax: z.number().describe("Sales tax refunded for the item (negative for refund)").nullable().optional(),
45
+ unit_price: z.number().describe("Unit price of the item (negative for refund)").nullable().optional(),
46
+ description: z.string().describe("Description of the item").nullable().optional(),
47
+ product_tax_code: z.string().describe("Product tax code for the item").nullable().optional(),
48
+ product_identifier: z.string().describe("Product identifier").nullable().optional()
49
+ });
50
+ const TaxjarUpdateRefundTransaction_UpdatedRefundSchema = z.object({
51
+ amount: z.number().describe("Total amount of the refund excluding shipping"),
52
+ to_zip: z.string().describe("Postal code of destination"),
53
+ to_city: z.string().describe("City of destination").nullable().optional(),
54
+ user_id: z.number().int().describe("ID of the user associated with the transaction").nullable().optional(),
55
+ from_zip: z.string().describe("Postal code of origin").nullable().optional(),
56
+ provider: z.string().describe("Source of where the transaction was originally recorded").nullable().optional(),
57
+ shipping: z.number().describe("Total amount of shipping refunded").nullable().optional(),
58
+ to_state: z.string().describe("Two-letter ISO state code of destination"),
59
+ from_city: z.string().describe("City of origin").nullable().optional(),
60
+ sales_tax: z.number().describe("Total amount of sales tax refunded").nullable().optional(),
61
+ to_street: z.string().describe("Street address of destination").nullable().optional(),
62
+ from_state: z.string().describe("Two-letter ISO state code of origin").nullable().optional(),
63
+ line_items: z.array(TaxjarUpdateRefundTransaction_RefundLineItemSchema).describe("Line items for the refund").nullable().optional(),
64
+ to_country: z.string().describe("Two-letter ISO country code of destination"),
65
+ from_street: z.string().describe("Street address of origin").nullable().optional(),
66
+ from_country: z.string().describe("Two-letter ISO country code of origin").nullable().optional(),
67
+ exemption_type: z.string().describe("Type of tax exemption if applicable").nullable().optional(),
68
+ transaction_id: z.string().describe("ID of the refund transaction"),
69
+ transaction_date: z.string().describe("Date the transaction was recorded"),
70
+ transaction_reference_id: z.string().describe("Reference ID to the original order").nullable().optional()
71
+ }).describe("Updated refund transaction returned from TaxJar.");
72
+ const taxjarUpdateRefundTransaction = action("TAXJAR_UPDATE_REFUND_TRANSACTION", {
73
+ slug: "taxjar-update-refund-transaction",
74
+ name: "Update Refund Transaction",
75
+ description: "Tool to update an existing refund transaction. Use when adjusting refund details such as amount, shipping, or line items after creation.",
76
+ input: TaxjarUpdateRefundTransactionInput,
77
+ output: z.object({ refund: TaxjarUpdateRefundTransaction_UpdatedRefundSchema.nullable() })
78
+ });
79
+ //#endregion
80
+ export { taxjarUpdateRefundTransaction };
81
+
82
+ //# sourceMappingURL=update-refund-transaction.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-refund-transaction.mjs","names":[],"sources":["../../src/actions/update-refund-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarUpdateRefundTransactionInput: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount of the refund excluding shipping\").optional(),\n to_zip: z.string().describe(\"Postal code of destination\").optional(),\n to_city: z.string().describe(\"City of destination\").optional(),\n from_zip: z.string().describe(\"Postal code of origin\").optional(),\n shipping: z.number().describe(\"Total amount of shipping refunded\").optional(),\n to_state: z.string().describe(\"Two-letter ISO state code of destination\").optional(),\n from_city: z.string().describe(\"City of origin\").optional(),\n sales_tax: z.number().describe(\"Total amount of sales tax refunded\").optional(),\n to_street: z.string().describe(\"Street address of destination\").optional(),\n from_state: z.string().describe(\"Two-letter ISO state code of origin\").optional(),\n line_items: z.array(z.object({\n id: z.string().describe(\"Unique line item identifier\").optional(),\n discount: z.number().describe(\"Discount applied to the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\").optional(),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").optional(),\n description: z.string().describe(\"Description of the item\").optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").optional(),\n product_identifier: z.string().describe(\"Product identifier\").optional(),\n})).describe(\"Line items for the refund\").optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of destination\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer\").optional(),\n from_street: z.string().describe(\"Street address of origin\").optional(),\n from_country: z.string().describe(\"Two-letter ISO country code of origin\").optional(),\n exemption_type: z.enum([\"wholesale\", \"government\", \"marketplace\", \"other\", \"non_exempt\"]).describe(\"Type of exemption for the refund\").optional(),\n transaction_id: z.string().describe(\"Unique identifier for the refund transaction to update\"),\n transaction_date: z.string().describe(\"Date the transaction was recorded (YYYY-MM-DD format)\").optional(),\n transaction_reference_id: z.string().describe(\"Unique identifier of the original order transaction\").optional(),\n}).describe(\"Request to update an existing refund transaction.\");\nconst TaxjarUpdateRefundTransaction_RefundLineItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique line item identifier\").nullable().optional(),\n discount: z.number().describe(\"Discount applied to the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\").nullable().optional(),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier\").nullable().optional(),\n});\nconst TaxjarUpdateRefundTransaction_UpdatedRefundSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount of the refund excluding shipping\"),\n to_zip: z.string().describe(\"Postal code of destination\"),\n to_city: z.string().describe(\"City of destination\").nullable().optional(),\n user_id: z.number().int().describe(\"ID of the user associated with the transaction\").nullable().optional(),\n from_zip: z.string().describe(\"Postal code of origin\").nullable().optional(),\n provider: z.string().describe(\"Source of where the transaction was originally recorded\").nullable().optional(),\n shipping: z.number().describe(\"Total amount of shipping refunded\").nullable().optional(),\n to_state: z.string().describe(\"Two-letter ISO state code of destination\"),\n from_city: z.string().describe(\"City of origin\").nullable().optional(),\n sales_tax: z.number().describe(\"Total amount of sales tax refunded\").nullable().optional(),\n to_street: z.string().describe(\"Street address of destination\").nullable().optional(),\n from_state: z.string().describe(\"Two-letter ISO state code of origin\").nullable().optional(),\n line_items: z.array(TaxjarUpdateRefundTransaction_RefundLineItemSchema).describe(\"Line items for the refund\").nullable().optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of destination\"),\n from_street: z.string().describe(\"Street address of origin\").nullable().optional(),\n from_country: z.string().describe(\"Two-letter ISO country code of origin\").nullable().optional(),\n exemption_type: z.string().describe(\"Type of tax exemption if applicable\").nullable().optional(),\n transaction_id: z.string().describe(\"ID of the refund transaction\"),\n transaction_date: z.string().describe(\"Date the transaction was recorded\"),\n transaction_reference_id: z.string().describe(\"Reference ID to the original order\").nullable().optional(),\n}).describe(\"Updated refund transaction returned from TaxJar.\");\nexport const TaxjarUpdateRefundTransactionOutput: z.ZodTypeAny = z.object({\n refund: TaxjarUpdateRefundTransaction_UpdatedRefundSchema.nullable(),\n});\n\nexport const taxjarUpdateRefundTransaction = action(\"TAXJAR_UPDATE_REFUND_TRANSACTION\", {\n slug: \"taxjar-update-refund-transaction\",\n name: \"Update Refund Transaction\",\n description: \"Tool to update an existing refund transaction. Use when adjusting refund details such as amount, shipping, or line items after creation.\",\n input: TaxjarUpdateRefundTransactionInput,\n output: TaxjarUpdateRefundTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAClE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACzE,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAK9D,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+D,EAAE,OAAO,EACxE,QAAQ,kDAAkD,SAAS,EACrE,CAOU;AACV,CAAC"}
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/validate-vat-number.ts
4
+ const TaxjarValidateVatNumberInput = zod.z.object({ vat_number: zod.z.string().describe("VAT identification number to validate. Must include the two-letter country code prefix (e.g., 'FR40303265045', 'DE123456789', 'NL123456789B01'). This endpoint validates EU VAT numbers against the VIES (VAT Information Exchange System) database.") }).describe("Request parameters for validating a VAT number.");
5
+ const TaxjarValidateVatNumber_ValidationErrorDetailSchema = zod.z.object({
6
+ code: zod.z.string().describe("Error code returned by the API, if available").nullable().optional(),
7
+ message: zod.z.string().describe("Error message describing why validation failed").nullable().optional()
8
+ }).describe("Details of an error encountered during VAT validation.");
9
+ const TaxjarValidateVatNumber_VIESResponseSchema = zod.z.object({
10
+ name: zod.z.string().describe("Company name from VIES.").nullable().optional(),
11
+ error: zod.z.string().describe("Error message from VIES if the service encountered an issue.").nullable().optional(),
12
+ valid: zod.z.boolean().describe("Whether VIES confirmed the VAT number as valid.").nullable().optional(),
13
+ address: zod.z.string().describe("Company address from VIES.").nullable().optional(),
14
+ vat_number: zod.z.string().describe("VAT number without country code prefix.").nullable().optional(),
15
+ country_code: zod.z.string().describe("Two-letter country code (e.g., 'FR', 'DE').").nullable().optional(),
16
+ request_date: zod.z.string().describe("Date when the validation request was made.").nullable().optional()
17
+ }).describe("Response from the VIES (VAT Information Exchange System).");
18
+ const TaxjarValidateVatNumber_ValidationSchema = zod.z.object({
19
+ error: TaxjarValidateVatNumber_ValidationErrorDetailSchema.nullable().optional(),
20
+ valid: zod.z.boolean().describe("Whether the VAT number format is valid. True indicates the number passes format validation (and VIES validation if the service was available)."),
21
+ exists: zod.z.boolean().describe("Whether the VAT number exists and is registered in the VIES database. True only if VIES confirmed the number is currently active."),
22
+ vies_response: TaxjarValidateVatNumber_VIESResponseSchema.nullable().optional(),
23
+ vies_available: zod.z.boolean().describe("Whether the VIES service was available during validation. When False, validation falls back to regex-based format checking only.").nullable().optional()
24
+ }).describe("Result of a VAT number validation.");
25
+ const TaxjarValidateVatNumberOutput = zod.z.object({ validation: TaxjarValidateVatNumber_ValidationSchema.nullable() }).describe("Response model for VAT number validation.");
26
+ const taxjarValidateVatNumber = require_action.action("TAXJAR_VALIDATE_VAT_NUMBER", {
27
+ slug: "taxjar-validate-vat-number",
28
+ name: "Validate VAT Number",
29
+ description: "Validates EU VAT identification numbers against the VIES (VAT Information Exchange System) database. Use this tool to: - Verify VAT number format and validity - Check if a VAT number is registered and active in the EU - Retrieve associated company name and address when available - Confirm tax-exempt eligibility before processing transactions The validation queries the European VIES database when available, returning company details for valid registrations. When VIES is unavailable, it falls back to format-based validation using regex patterns.",
30
+ input: TaxjarValidateVatNumberInput,
31
+ output: TaxjarValidateVatNumberOutput
32
+ });
33
+ //#endregion
34
+ exports.taxjarValidateVatNumber = taxjarValidateVatNumber;
35
+
36
+ //# sourceMappingURL=validate-vat-number.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-vat-number.cjs","names":["z","action"],"sources":["../../src/actions/validate-vat-number.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarValidateVatNumberInput: z.ZodTypeAny = z.object({\n vat_number: z.string().describe(\"VAT identification number to validate. Must include the two-letter country code prefix (e.g., 'FR40303265045', 'DE123456789', 'NL123456789B01'). This endpoint validates EU VAT numbers against the VIES (VAT Information Exchange System) database.\"),\n}).describe(\"Request parameters for validating a VAT number.\");\nconst TaxjarValidateVatNumber_ValidationErrorDetailSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code returned by the API, if available\").nullable().optional(),\n message: z.string().describe(\"Error message describing why validation failed\").nullable().optional(),\n}).describe(\"Details of an error encountered during VAT validation.\");\nconst TaxjarValidateVatNumber_VIESResponseSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Company name from VIES.\").nullable().optional(),\n error: z.string().describe(\"Error message from VIES if the service encountered an issue.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether VIES confirmed the VAT number as valid.\").nullable().optional(),\n address: z.string().describe(\"Company address from VIES.\").nullable().optional(),\n vat_number: z.string().describe(\"VAT number without country code prefix.\").nullable().optional(),\n country_code: z.string().describe(\"Two-letter country code (e.g., 'FR', 'DE').\").nullable().optional(),\n request_date: z.string().describe(\"Date when the validation request was made.\").nullable().optional(),\n}).describe(\"Response from the VIES (VAT Information Exchange System).\");\nconst TaxjarValidateVatNumber_ValidationSchema: z.ZodTypeAny = z.object({\n error: TaxjarValidateVatNumber_ValidationErrorDetailSchema.nullable().optional(),\n valid: z.boolean().describe(\"Whether the VAT number format is valid. True indicates the number passes format validation (and VIES validation if the service was available).\"),\n exists: z.boolean().describe(\"Whether the VAT number exists and is registered in the VIES database. True only if VIES confirmed the number is currently active.\"),\n vies_response: TaxjarValidateVatNumber_VIESResponseSchema.nullable().optional(),\n vies_available: z.boolean().describe(\"Whether the VIES service was available during validation. When False, validation falls back to regex-based format checking only.\").nullable().optional(),\n}).describe(\"Result of a VAT number validation.\");\nexport const TaxjarValidateVatNumberOutput: z.ZodTypeAny = z.object({\n validation: TaxjarValidateVatNumber_ValidationSchema.nullable(),\n}).describe(\"Response model for VAT number validation.\");\n\nexport const taxjarValidateVatNumber = action(\"TAXJAR_VALIDATE_VAT_NUMBER\", {\n slug: \"taxjar-validate-vat-number\",\n name: \"Validate VAT Number\",\n description: \"Validates EU VAT identification numbers against the VIES (VAT Information Exchange System) database. Use this tool to: - Verify VAT number format and validity - Check if a VAT number is registered and active in the EU - Retrieve associated company name and address when available - Confirm tax-exempt eligibility before processing transactions The validation queries the European VIES database when available, returning company details for valid registrations. When VIES is unavailable, it falls back to format-based validation using regex patterns.\",\n input: TaxjarValidateVatNumberInput,\n output: TaxjarValidateVatNumberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,EACxR,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAO,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gJAAgJ;CAC5K,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mIAAmI;CAChK,eAAe,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,YAAY,yCAAyC,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/validate-vat-number.d.ts
4
+ declare const TaxjarValidateVatNumberInput: z.ZodTypeAny;
5
+ declare const TaxjarValidateVatNumberOutput: z.ZodTypeAny;
6
+ declare const taxjarValidateVatNumber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taxjarValidateVatNumber };
9
+ //# sourceMappingURL=validate-vat-number.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-vat-number.d.cts","names":[],"sources":["../../src/actions/validate-vat-number.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEiB;AAAA,cAqBjD,6BAAA,EAA+B,CAAA,CAAE,UAEU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/validate-vat-number.d.ts
4
+ declare const TaxjarValidateVatNumberInput: z.ZodTypeAny;
5
+ declare const TaxjarValidateVatNumberOutput: z.ZodTypeAny;
6
+ declare const taxjarValidateVatNumber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taxjarValidateVatNumber };
9
+ //# sourceMappingURL=validate-vat-number.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-vat-number.d.mts","names":[],"sources":["../../src/actions/validate-vat-number.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEiB;AAAA,cAqBjD,6BAAA,EAA+B,CAAA,CAAE,UAEU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,35 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/validate-vat-number.ts
4
+ const TaxjarValidateVatNumberInput = z.object({ vat_number: z.string().describe("VAT identification number to validate. Must include the two-letter country code prefix (e.g., 'FR40303265045', 'DE123456789', 'NL123456789B01'). This endpoint validates EU VAT numbers against the VIES (VAT Information Exchange System) database.") }).describe("Request parameters for validating a VAT number.");
5
+ const TaxjarValidateVatNumber_ValidationErrorDetailSchema = z.object({
6
+ code: z.string().describe("Error code returned by the API, if available").nullable().optional(),
7
+ message: z.string().describe("Error message describing why validation failed").nullable().optional()
8
+ }).describe("Details of an error encountered during VAT validation.");
9
+ const TaxjarValidateVatNumber_VIESResponseSchema = z.object({
10
+ name: z.string().describe("Company name from VIES.").nullable().optional(),
11
+ error: z.string().describe("Error message from VIES if the service encountered an issue.").nullable().optional(),
12
+ valid: z.boolean().describe("Whether VIES confirmed the VAT number as valid.").nullable().optional(),
13
+ address: z.string().describe("Company address from VIES.").nullable().optional(),
14
+ vat_number: z.string().describe("VAT number without country code prefix.").nullable().optional(),
15
+ country_code: z.string().describe("Two-letter country code (e.g., 'FR', 'DE').").nullable().optional(),
16
+ request_date: z.string().describe("Date when the validation request was made.").nullable().optional()
17
+ }).describe("Response from the VIES (VAT Information Exchange System).");
18
+ const TaxjarValidateVatNumber_ValidationSchema = z.object({
19
+ error: TaxjarValidateVatNumber_ValidationErrorDetailSchema.nullable().optional(),
20
+ valid: z.boolean().describe("Whether the VAT number format is valid. True indicates the number passes format validation (and VIES validation if the service was available)."),
21
+ exists: z.boolean().describe("Whether the VAT number exists and is registered in the VIES database. True only if VIES confirmed the number is currently active."),
22
+ vies_response: TaxjarValidateVatNumber_VIESResponseSchema.nullable().optional(),
23
+ vies_available: z.boolean().describe("Whether the VIES service was available during validation. When False, validation falls back to regex-based format checking only.").nullable().optional()
24
+ }).describe("Result of a VAT number validation.");
25
+ const taxjarValidateVatNumber = action("TAXJAR_VALIDATE_VAT_NUMBER", {
26
+ slug: "taxjar-validate-vat-number",
27
+ name: "Validate VAT Number",
28
+ description: "Validates EU VAT identification numbers against the VIES (VAT Information Exchange System) database. Use this tool to: - Verify VAT number format and validity - Check if a VAT number is registered and active in the EU - Retrieve associated company name and address when available - Confirm tax-exempt eligibility before processing transactions The validation queries the European VIES database when available, returning company details for valid registrations. When VIES is unavailable, it falls back to format-based validation using regex patterns.",
29
+ input: TaxjarValidateVatNumberInput,
30
+ output: z.object({ validation: TaxjarValidateVatNumber_ValidationSchema.nullable() }).describe("Response model for VAT number validation.")
31
+ });
32
+ //#endregion
33
+ export { taxjarValidateVatNumber };
34
+
35
+ //# sourceMappingURL=validate-vat-number.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-vat-number.mjs","names":[],"sources":["../../src/actions/validate-vat-number.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarValidateVatNumberInput: z.ZodTypeAny = z.object({\n vat_number: z.string().describe(\"VAT identification number to validate. Must include the two-letter country code prefix (e.g., 'FR40303265045', 'DE123456789', 'NL123456789B01'). This endpoint validates EU VAT numbers against the VIES (VAT Information Exchange System) database.\"),\n}).describe(\"Request parameters for validating a VAT number.\");\nconst TaxjarValidateVatNumber_ValidationErrorDetailSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code returned by the API, if available\").nullable().optional(),\n message: z.string().describe(\"Error message describing why validation failed\").nullable().optional(),\n}).describe(\"Details of an error encountered during VAT validation.\");\nconst TaxjarValidateVatNumber_VIESResponseSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Company name from VIES.\").nullable().optional(),\n error: z.string().describe(\"Error message from VIES if the service encountered an issue.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether VIES confirmed the VAT number as valid.\").nullable().optional(),\n address: z.string().describe(\"Company address from VIES.\").nullable().optional(),\n vat_number: z.string().describe(\"VAT number without country code prefix.\").nullable().optional(),\n country_code: z.string().describe(\"Two-letter country code (e.g., 'FR', 'DE').\").nullable().optional(),\n request_date: z.string().describe(\"Date when the validation request was made.\").nullable().optional(),\n}).describe(\"Response from the VIES (VAT Information Exchange System).\");\nconst TaxjarValidateVatNumber_ValidationSchema: z.ZodTypeAny = z.object({\n error: TaxjarValidateVatNumber_ValidationErrorDetailSchema.nullable().optional(),\n valid: z.boolean().describe(\"Whether the VAT number format is valid. True indicates the number passes format validation (and VIES validation if the service was available).\"),\n exists: z.boolean().describe(\"Whether the VAT number exists and is registered in the VIES database. True only if VIES confirmed the number is currently active.\"),\n vies_response: TaxjarValidateVatNumber_VIESResponseSchema.nullable().optional(),\n vies_available: z.boolean().describe(\"Whether the VIES service was available during validation. When False, validation falls back to regex-based format checking only.\").nullable().optional(),\n}).describe(\"Result of a VAT number validation.\");\nexport const TaxjarValidateVatNumberOutput: z.ZodTypeAny = z.object({\n validation: TaxjarValidateVatNumber_ValidationSchema.nullable(),\n}).describe(\"Response model for VAT number validation.\");\n\nexport const taxjarValidateVatNumber = action(\"TAXJAR_VALIDATE_VAT_NUMBER\", {\n slug: \"taxjar-validate-vat-number\",\n name: \"Validate VAT Number\",\n description: \"Validates EU VAT identification numbers against the VIES (VAT Information Exchange System) database. Use this tool to: - Verify VAT number format and validity - Check if a VAT number is registered and active in the EU - Retrieve associated company name and address when available - Confirm tax-exempt eligibility before processing transactions The validation queries the European VIES database when available, returning company details for valid registrations. When VIES is unavailable, it falls back to format-based validation using regex patterns.\",\n input: TaxjarValidateVatNumberInput,\n output: TaxjarValidateVatNumberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,EACxR,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sDAAoE,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CA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(0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "taxjar",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.taxjar = taxjar;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const taxjar = defineApp({\n slug: \"taxjar\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,uCAAA,CAAA,CAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const taxjar: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { taxjar };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const taxjar: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { taxjar };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const taxjar = defineApp({
4
+ slug: "taxjar",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { taxjar };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const taxjar = defineApp({\n slug: \"taxjar\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const taxjarCatalog = {
4
+ "slug": "taxjar",
5
+ "name": "Taxjar",
6
+ "description": "TaxJar provides a comprehensive sales tax API for real-time tax calculations, reporting, and filing.",
7
+ "category": "Taxes",
8
+ "logo": "https://logos.composio.dev/api/taxjar",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.taxjarCatalog = taxjarCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const taxjarCatalog = {\n \"slug\": \"taxjar\",\n \"name\": \"Taxjar\",\n \"description\": \"TaxJar provides a comprehensive sales tax API for real-time tax calculations, reporting, and filing.\",\n \"category\": \"Taxes\",\n \"logo\": \"https://logos.composio.dev/api/taxjar\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const taxjarCatalog: {
4
+ readonly slug: "taxjar";
5
+ readonly name: "Taxjar";
6
+ readonly description: "TaxJar provides a comprehensive sales tax API for real-time tax calculations, reporting, and filing.";
7
+ readonly category: "Taxes";
8
+ readonly logo: "https://logos.composio.dev/api/taxjar";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { taxjarCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,aAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const taxjarCatalog: {
4
+ readonly slug: "taxjar";
5
+ readonly name: "Taxjar";
6
+ readonly description: "TaxJar provides a comprehensive sales tax API for real-time tax calculations, reporting, and filing.";
7
+ readonly category: "Taxes";
8
+ readonly logo: "https://logos.composio.dev/api/taxjar";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { taxjarCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,aAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const taxjarCatalog = {
4
+ "slug": "taxjar",
5
+ "name": "Taxjar",
6
+ "description": "TaxJar provides a comprehensive sales tax API for real-time tax calculations, reporting, and filing.",
7
+ "category": "Taxes",
8
+ "logo": "https://logos.composio.dev/api/taxjar",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { taxjarCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const taxjarCatalog = {\n \"slug\": \"taxjar\",\n \"name\": \"Taxjar\",\n \"description\": \"TaxJar provides a comprehensive sales tax API for real-time tax calculations, reporting, and filing.\",\n \"category\": \"Taxes\",\n \"logo\": \"https://logos.composio.dev/api/taxjar\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "taxjar";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeTaxjarTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeTaxjarTool = executeTaxjarTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"taxjar\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeTaxjarTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "taxjar";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeTaxjarTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeTaxjarTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"taxjar\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeTaxjarTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}