@keystrokehq/razorpay 0.1.0 → 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 (343) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/cancel-invoice.cjs +6 -6
  4. package/dist/actions/cancel-invoice.cjs.map +1 -1
  5. package/dist/actions/cancel-invoice.d.cts +99 -3
  6. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  7. package/dist/actions/cancel-invoice.d.mts +99 -3
  8. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  9. package/dist/actions/cancel-invoice.mjs +6 -6
  10. package/dist/actions/cancel-invoice.mjs.map +1 -1
  11. package/dist/actions/cancel-payment-link.cjs +14 -14
  12. package/dist/actions/cancel-payment-link.cjs.map +1 -1
  13. package/dist/actions/cancel-payment-link.d.cts +33 -3
  14. package/dist/actions/cancel-payment-link.d.cts.map +1 -1
  15. package/dist/actions/cancel-payment-link.d.mts +33 -3
  16. package/dist/actions/cancel-payment-link.d.mts.map +1 -1
  17. package/dist/actions/cancel-payment-link.mjs +14 -14
  18. package/dist/actions/cancel-payment-link.mjs.map +1 -1
  19. package/dist/actions/create-an-order.cjs +12 -12
  20. package/dist/actions/create-an-order.cjs.map +1 -1
  21. package/dist/actions/create-an-order.d.cts +27 -3
  22. package/dist/actions/create-an-order.d.cts.map +1 -1
  23. package/dist/actions/create-an-order.d.mts +27 -3
  24. package/dist/actions/create-an-order.d.mts.map +1 -1
  25. package/dist/actions/create-an-order.mjs +12 -12
  26. package/dist/actions/create-an-order.mjs.map +1 -1
  27. package/dist/actions/create-contact.cjs +9 -9
  28. package/dist/actions/create-contact.cjs.map +1 -1
  29. package/dist/actions/create-contact.d.cts +33 -3
  30. package/dist/actions/create-contact.d.cts.map +1 -1
  31. package/dist/actions/create-contact.d.mts +33 -3
  32. package/dist/actions/create-contact.d.mts.map +1 -1
  33. package/dist/actions/create-contact.mjs +9 -9
  34. package/dist/actions/create-contact.mjs.map +1 -1
  35. package/dist/actions/create-customer.cjs +5 -5
  36. package/dist/actions/create-customer.cjs.map +1 -1
  37. package/dist/actions/create-customer.d.cts +24 -3
  38. package/dist/actions/create-customer.d.cts.map +1 -1
  39. package/dist/actions/create-customer.d.mts +24 -3
  40. package/dist/actions/create-customer.d.mts.map +1 -1
  41. package/dist/actions/create-customer.mjs +5 -5
  42. package/dist/actions/create-customer.mjs.map +1 -1
  43. package/dist/actions/create-invoice.cjs +15 -15
  44. package/dist/actions/create-invoice.cjs.map +1 -1
  45. package/dist/actions/create-invoice.d.cts +222 -3
  46. package/dist/actions/create-invoice.d.cts.map +1 -1
  47. package/dist/actions/create-invoice.d.mts +222 -3
  48. package/dist/actions/create-invoice.d.mts.map +1 -1
  49. package/dist/actions/create-invoice.mjs +15 -15
  50. package/dist/actions/create-invoice.mjs.map +1 -1
  51. package/dist/actions/create-item.cjs +7 -7
  52. package/dist/actions/create-item.cjs.map +1 -1
  53. package/dist/actions/create-item.d.cts +29 -3
  54. package/dist/actions/create-item.d.cts.map +1 -1
  55. package/dist/actions/create-item.d.mts +29 -3
  56. package/dist/actions/create-item.d.mts.map +1 -1
  57. package/dist/actions/create-item.mjs +7 -7
  58. package/dist/actions/create-item.mjs.map +1 -1
  59. package/dist/actions/create-payment-link.cjs +10 -10
  60. package/dist/actions/create-payment-link.cjs.map +1 -1
  61. package/dist/actions/create-payment-link.d.cts +76 -3
  62. package/dist/actions/create-payment-link.d.cts.map +1 -1
  63. package/dist/actions/create-payment-link.d.mts +76 -3
  64. package/dist/actions/create-payment-link.d.mts.map +1 -1
  65. package/dist/actions/create-payment-link.mjs +10 -10
  66. package/dist/actions/create-payment-link.mjs.map +1 -1
  67. package/dist/actions/delete-invoice.cjs +1 -1
  68. package/dist/actions/delete-invoice.cjs.map +1 -1
  69. package/dist/actions/delete-invoice.d.cts +9 -3
  70. package/dist/actions/delete-invoice.d.cts.map +1 -1
  71. package/dist/actions/delete-invoice.d.mts +9 -3
  72. package/dist/actions/delete-invoice.d.mts.map +1 -1
  73. package/dist/actions/delete-invoice.mjs +1 -1
  74. package/dist/actions/delete-invoice.mjs.map +1 -1
  75. package/dist/actions/delete-item.cjs +1 -1
  76. package/dist/actions/delete-item.cjs.map +1 -1
  77. package/dist/actions/delete-item.d.cts +9 -3
  78. package/dist/actions/delete-item.d.cts.map +1 -1
  79. package/dist/actions/delete-item.d.mts +9 -3
  80. package/dist/actions/delete-item.d.mts.map +1 -1
  81. package/dist/actions/delete-item.mjs +1 -1
  82. package/dist/actions/delete-item.mjs.map +1 -1
  83. package/dist/actions/fetch-a-payment-link.cjs +6 -6
  84. package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
  85. package/dist/actions/fetch-a-payment-link.d.cts +43 -3
  86. package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
  87. package/dist/actions/fetch-a-payment-link.d.mts +43 -3
  88. package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
  89. package/dist/actions/fetch-a-payment-link.mjs +6 -6
  90. package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
  91. package/dist/actions/fetch-all-customers.cjs +9 -9
  92. package/dist/actions/fetch-all-customers.cjs.map +1 -1
  93. package/dist/actions/fetch-all-customers.d.cts +22 -3
  94. package/dist/actions/fetch-all-customers.d.cts.map +1 -1
  95. package/dist/actions/fetch-all-customers.d.mts +22 -3
  96. package/dist/actions/fetch-all-customers.d.mts.map +1 -1
  97. package/dist/actions/fetch-all-customers.mjs +9 -9
  98. package/dist/actions/fetch-all-customers.mjs.map +1 -1
  99. package/dist/actions/fetch-all-invoices.cjs +14 -14
  100. package/dist/actions/fetch-all-invoices.cjs.map +1 -1
  101. package/dist/actions/fetch-all-invoices.d.cts +115 -3
  102. package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
  103. package/dist/actions/fetch-all-invoices.d.mts +115 -3
  104. package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
  105. package/dist/actions/fetch-all-invoices.mjs +14 -14
  106. package/dist/actions/fetch-all-invoices.mjs.map +1 -1
  107. package/dist/actions/fetch-all-payment-links.cjs +9 -9
  108. package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
  109. package/dist/actions/fetch-all-payment-links.d.cts +45 -3
  110. package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
  111. package/dist/actions/fetch-all-payment-links.d.mts +45 -3
  112. package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
  113. package/dist/actions/fetch-all-payment-links.mjs +9 -9
  114. package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
  115. package/dist/actions/fetch-all-payments.cjs +15 -15
  116. package/dist/actions/fetch-all-payments.cjs.map +1 -1
  117. package/dist/actions/fetch-all-payments.d.cts +50 -3
  118. package/dist/actions/fetch-all-payments.d.cts.map +1 -1
  119. package/dist/actions/fetch-all-payments.d.mts +50 -3
  120. package/dist/actions/fetch-all-payments.d.mts.map +1 -1
  121. package/dist/actions/fetch-all-payments.mjs +15 -15
  122. package/dist/actions/fetch-all-payments.mjs.map +1 -1
  123. package/dist/actions/fetch-all-refunds-for-a-payment.cjs +3 -3
  124. package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
  125. package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +35 -3
  126. package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -1
  127. package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +35 -3
  128. package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
  129. package/dist/actions/fetch-all-refunds-for-a-payment.mjs +3 -3
  130. package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
  131. package/dist/actions/fetch-invoice-by-id.cjs +12 -12
  132. package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
  133. package/dist/actions/fetch-invoice-by-id.d.cts +97 -3
  134. package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
  135. package/dist/actions/fetch-invoice-by-id.d.mts +97 -3
  136. package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
  137. package/dist/actions/fetch-invoice-by-id.mjs +12 -12
  138. package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
  139. package/dist/actions/fetch-orders-by-id.cjs +10 -10
  140. package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
  141. package/dist/actions/fetch-orders-by-id.d.cts +20 -3
  142. package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
  143. package/dist/actions/fetch-orders-by-id.d.mts +20 -3
  144. package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
  145. package/dist/actions/fetch-orders-by-id.mjs +10 -10
  146. package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
  147. package/dist/actions/fetch-orders.cjs +13 -13
  148. package/dist/actions/fetch-orders.cjs.map +1 -1
  149. package/dist/actions/fetch-orders.d.cts +34 -3
  150. package/dist/actions/fetch-orders.d.cts.map +1 -1
  151. package/dist/actions/fetch-orders.d.mts +34 -3
  152. package/dist/actions/fetch-orders.d.mts.map +1 -1
  153. package/dist/actions/fetch-orders.mjs +13 -13
  154. package/dist/actions/fetch-orders.mjs.map +1 -1
  155. package/dist/actions/fetch-payments-by-order.cjs +11 -11
  156. package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
  157. package/dist/actions/fetch-payments-by-order.d.cts +43 -3
  158. package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
  159. package/dist/actions/fetch-payments-by-order.d.mts +43 -3
  160. package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
  161. package/dist/actions/fetch-payments-by-order.mjs +11 -11
  162. package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
  163. package/dist/actions/fetch-refunds.cjs +3 -3
  164. package/dist/actions/fetch-refunds.cjs.map +1 -1
  165. package/dist/actions/fetch-refunds.d.cts +33 -3
  166. package/dist/actions/fetch-refunds.d.cts.map +1 -1
  167. package/dist/actions/fetch-refunds.d.mts +33 -3
  168. package/dist/actions/fetch-refunds.d.mts.map +1 -1
  169. package/dist/actions/fetch-refunds.mjs +3 -3
  170. package/dist/actions/fetch-refunds.mjs.map +1 -1
  171. package/dist/actions/get-contact.cjs +8 -8
  172. package/dist/actions/get-contact.cjs.map +1 -1
  173. package/dist/actions/get-contact.d.cts +19 -3
  174. package/dist/actions/get-contact.d.cts.map +1 -1
  175. package/dist/actions/get-contact.d.mts +19 -3
  176. package/dist/actions/get-contact.d.mts.map +1 -1
  177. package/dist/actions/get-contact.mjs +8 -8
  178. package/dist/actions/get-contact.mjs.map +1 -1
  179. package/dist/actions/get-customer.cjs +4 -4
  180. package/dist/actions/get-customer.cjs.map +1 -1
  181. package/dist/actions/get-customer.d.cts +16 -3
  182. package/dist/actions/get-customer.d.cts.map +1 -1
  183. package/dist/actions/get-customer.d.mts +16 -3
  184. package/dist/actions/get-customer.d.mts.map +1 -1
  185. package/dist/actions/get-customer.mjs +4 -4
  186. package/dist/actions/get-customer.mjs.map +1 -1
  187. package/dist/actions/get-fund-account.cjs +11 -11
  188. package/dist/actions/get-fund-account.cjs.map +1 -1
  189. package/dist/actions/get-fund-account.d.cts +32 -3
  190. package/dist/actions/get-fund-account.d.cts.map +1 -1
  191. package/dist/actions/get-fund-account.d.mts +32 -3
  192. package/dist/actions/get-fund-account.d.mts.map +1 -1
  193. package/dist/actions/get-fund-account.mjs +11 -11
  194. package/dist/actions/get-fund-account.mjs.map +1 -1
  195. package/dist/actions/get-item.cjs +10 -10
  196. package/dist/actions/get-item.cjs.map +1 -1
  197. package/dist/actions/get-item.d.cts +24 -3
  198. package/dist/actions/get-item.d.cts.map +1 -1
  199. package/dist/actions/get-item.d.mts +24 -3
  200. package/dist/actions/get-item.d.mts.map +1 -1
  201. package/dist/actions/get-item.mjs +10 -10
  202. package/dist/actions/get-item.mjs.map +1 -1
  203. package/dist/actions/get-settlement-recon.cjs +2 -2
  204. package/dist/actions/get-settlement-recon.cjs.map +1 -1
  205. package/dist/actions/get-settlement-recon.d.cts +28 -3
  206. package/dist/actions/get-settlement-recon.d.cts.map +1 -1
  207. package/dist/actions/get-settlement-recon.d.mts +28 -3
  208. package/dist/actions/get-settlement-recon.d.mts.map +1 -1
  209. package/dist/actions/get-settlement-recon.mjs +2 -2
  210. package/dist/actions/get-settlement-recon.mjs.map +1 -1
  211. package/dist/actions/get-transfer-reversals.cjs +2 -2
  212. package/dist/actions/get-transfer-reversals.cjs.map +1 -1
  213. package/dist/actions/get-transfer-reversals.d.cts +32 -3
  214. package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
  215. package/dist/actions/get-transfer-reversals.d.mts +32 -3
  216. package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
  217. package/dist/actions/get-transfer-reversals.mjs +2 -2
  218. package/dist/actions/get-transfer-reversals.mjs.map +1 -1
  219. package/dist/actions/issue-an-invoice.cjs +12 -12
  220. package/dist/actions/issue-an-invoice.cjs.map +1 -1
  221. package/dist/actions/issue-an-invoice.d.cts +97 -3
  222. package/dist/actions/issue-an-invoice.d.cts.map +1 -1
  223. package/dist/actions/issue-an-invoice.d.mts +97 -3
  224. package/dist/actions/issue-an-invoice.d.mts.map +1 -1
  225. package/dist/actions/issue-an-invoice.mjs +12 -12
  226. package/dist/actions/issue-an-invoice.mjs.map +1 -1
  227. package/dist/actions/list-customer-tokens.cjs +10 -10
  228. package/dist/actions/list-customer-tokens.cjs.map +1 -1
  229. package/dist/actions/list-customer-tokens.d.cts +40 -3
  230. package/dist/actions/list-customer-tokens.d.cts.map +1 -1
  231. package/dist/actions/list-customer-tokens.d.mts +40 -3
  232. package/dist/actions/list-customer-tokens.d.mts.map +1 -1
  233. package/dist/actions/list-customer-tokens.mjs +10 -10
  234. package/dist/actions/list-customer-tokens.mjs.map +1 -1
  235. package/dist/actions/list-disputes.cjs +3 -3
  236. package/dist/actions/list-disputes.cjs.map +1 -1
  237. package/dist/actions/list-disputes.d.cts +46 -3
  238. package/dist/actions/list-disputes.d.cts.map +1 -1
  239. package/dist/actions/list-disputes.d.mts +46 -3
  240. package/dist/actions/list-disputes.d.mts.map +1 -1
  241. package/dist/actions/list-disputes.mjs +3 -3
  242. package/dist/actions/list-disputes.mjs.map +1 -1
  243. package/dist/actions/list-fund-accounts.cjs +5 -5
  244. package/dist/actions/list-fund-accounts.cjs.map +1 -1
  245. package/dist/actions/list-fund-accounts.d.cts +40 -3
  246. package/dist/actions/list-fund-accounts.d.cts.map +1 -1
  247. package/dist/actions/list-fund-accounts.d.mts +40 -3
  248. package/dist/actions/list-fund-accounts.d.mts.map +1 -1
  249. package/dist/actions/list-fund-accounts.mjs +5 -5
  250. package/dist/actions/list-fund-accounts.mjs.map +1 -1
  251. package/dist/actions/list-fund-validations.cjs +6 -6
  252. package/dist/actions/list-fund-validations.cjs.map +1 -1
  253. package/dist/actions/list-fund-validations.d.cts +45 -3
  254. package/dist/actions/list-fund-validations.d.cts.map +1 -1
  255. package/dist/actions/list-fund-validations.d.mts +45 -3
  256. package/dist/actions/list-fund-validations.d.mts.map +1 -1
  257. package/dist/actions/list-fund-validations.mjs +6 -6
  258. package/dist/actions/list-fund-validations.mjs.map +1 -1
  259. package/dist/actions/list-items.cjs +2 -2
  260. package/dist/actions/list-items.cjs.map +1 -1
  261. package/dist/actions/list-items.d.cts +36 -3
  262. package/dist/actions/list-items.d.cts.map +1 -1
  263. package/dist/actions/list-items.d.mts +36 -3
  264. package/dist/actions/list-items.d.mts.map +1 -1
  265. package/dist/actions/list-items.mjs +2 -2
  266. package/dist/actions/list-items.mjs.map +1 -1
  267. package/dist/actions/list-payment-downtimes.cjs.map +1 -1
  268. package/dist/actions/list-payment-downtimes.d.cts +3 -3
  269. package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
  270. package/dist/actions/list-payment-downtimes.d.mts +3 -3
  271. package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
  272. package/dist/actions/list-payment-downtimes.mjs.map +1 -1
  273. package/dist/actions/notify-payment-link.cjs +1 -1
  274. package/dist/actions/notify-payment-link.cjs.map +1 -1
  275. package/dist/actions/notify-payment-link.d.cts +14 -3
  276. package/dist/actions/notify-payment-link.d.cts.map +1 -1
  277. package/dist/actions/notify-payment-link.d.mts +14 -3
  278. package/dist/actions/notify-payment-link.d.mts.map +1 -1
  279. package/dist/actions/notify-payment-link.mjs +1 -1
  280. package/dist/actions/notify-payment-link.mjs.map +1 -1
  281. package/dist/actions/send-or-resend-notification.cjs +1 -1
  282. package/dist/actions/send-or-resend-notification.cjs.map +1 -1
  283. package/dist/actions/send-or-resend-notification.d.cts +14 -3
  284. package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
  285. package/dist/actions/send-or-resend-notification.d.mts +14 -3
  286. package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
  287. package/dist/actions/send-or-resend-notification.mjs +1 -1
  288. package/dist/actions/send-or-resend-notification.mjs.map +1 -1
  289. package/dist/actions/update-contact.cjs +9 -9
  290. package/dist/actions/update-contact.cjs.map +1 -1
  291. package/dist/actions/update-contact.d.cts +35 -3
  292. package/dist/actions/update-contact.d.cts.map +1 -1
  293. package/dist/actions/update-contact.d.mts +35 -3
  294. package/dist/actions/update-contact.d.mts.map +1 -1
  295. package/dist/actions/update-contact.mjs +9 -9
  296. package/dist/actions/update-contact.mjs.map +1 -1
  297. package/dist/actions/update-customer.cjs +8 -8
  298. package/dist/actions/update-customer.cjs.map +1 -1
  299. package/dist/actions/update-customer.d.cts +22 -3
  300. package/dist/actions/update-customer.d.cts.map +1 -1
  301. package/dist/actions/update-customer.d.mts +22 -3
  302. package/dist/actions/update-customer.d.mts.map +1 -1
  303. package/dist/actions/update-customer.mjs +8 -8
  304. package/dist/actions/update-customer.mjs.map +1 -1
  305. package/dist/actions/update-invoice.cjs +14 -14
  306. package/dist/actions/update-invoice.cjs.map +1 -1
  307. package/dist/actions/update-invoice.d.cts +228 -3
  308. package/dist/actions/update-invoice.d.cts.map +1 -1
  309. package/dist/actions/update-invoice.d.mts +228 -3
  310. package/dist/actions/update-invoice.d.mts.map +1 -1
  311. package/dist/actions/update-invoice.mjs +14 -14
  312. package/dist/actions/update-invoice.mjs.map +1 -1
  313. package/dist/actions/update-item.cjs +10 -10
  314. package/dist/actions/update-item.cjs.map +1 -1
  315. package/dist/actions/update-item.d.cts +30 -3
  316. package/dist/actions/update-item.d.cts.map +1 -1
  317. package/dist/actions/update-item.d.mts +30 -3
  318. package/dist/actions/update-item.d.mts.map +1 -1
  319. package/dist/actions/update-item.mjs +10 -10
  320. package/dist/actions/update-item.mjs.map +1 -1
  321. package/dist/actions/update-order.cjs +12 -12
  322. package/dist/actions/update-order.cjs.map +1 -1
  323. package/dist/actions/update-order.d.cts +22 -3
  324. package/dist/actions/update-order.d.cts.map +1 -1
  325. package/dist/actions/update-order.d.mts +22 -3
  326. package/dist/actions/update-order.d.mts.map +1 -1
  327. package/dist/actions/update-order.mjs +12 -12
  328. package/dist/actions/update-order.mjs.map +1 -1
  329. package/dist/actions/update-payment-link.cjs +12 -12
  330. package/dist/actions/update-payment-link.cjs.map +1 -1
  331. package/dist/actions/update-payment-link.d.cts +52 -3
  332. package/dist/actions/update-payment-link.d.cts.map +1 -1
  333. package/dist/actions/update-payment-link.d.mts +52 -3
  334. package/dist/actions/update-payment-link.d.mts.map +1 -1
  335. package/dist/actions/update-payment-link.mjs +12 -12
  336. package/dist/actions/update-payment-link.mjs.map +1 -1
  337. package/dist/catalog.cjs +13 -1
  338. package/dist/catalog.cjs.map +1 -1
  339. package/dist/catalog.d.cts +12 -0
  340. package/dist/catalog.d.mts +12 -0
  341. package/dist/catalog.mjs +13 -1
  342. package/dist/catalog.mjs.map +1 -1
  343. package/package.json +2 -2
@@ -3,22 +3,22 @@ import { z } from "zod";
3
3
  //#region src/actions/fetch-payments-by-order.ts
4
4
  const RazorpayFetchPaymentsByOrderInput = z.object({ order_id: z.string().describe("The unique identifier of the order for which to fetch payments.") }).describe("Request model for fetching payments for an order.");
5
5
  const RazorpayFetchPaymentsByOrder_PaymentItemSchema = z.object({
6
- id: z.string().describe("Unique identifier for the payment."),
6
+ id: z.string().describe("Unique identifier for the payment.").nullable(),
7
7
  fee: z.number().int().describe("The fee charged for the payment in the smallest currency unit.").nullable().optional(),
8
8
  tax: z.number().int().describe("The tax amount in the smallest currency unit.").nullable().optional(),
9
9
  vpa: z.string().describe("The Virtual Payment Address (VPA) for UPI payments, if applicable.").nullable().optional(),
10
10
  bank: z.string().describe("The bank used for the payment, if applicable.").nullable().optional(),
11
11
  email: z.string().describe("The email address associated with the payment.").nullable().optional(),
12
- notes: z.object({}).describe("Key-value pairs for storing additional information about the payment.").nullable().optional(),
13
- amount: z.number().int().describe("The amount paid in the smallest currency unit (e.g., paise for INR)."),
14
- entity: z.string().describe("The entity type, always 'payment'."),
12
+ notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for storing additional information about the payment.").nullable().optional(),
13
+ amount: z.number().int().describe("The amount paid in the smallest currency unit (e.g., paise for INR).").nullable(),
14
+ entity: z.string().describe("The entity type, always 'payment'.").nullable(),
15
15
  method: z.string().describe("The payment method used (e.g., 'card', 'netbanking', 'wallet', 'upi').").nullable().optional(),
16
- status: z.string().describe("The status of the payment (e.g., 'created', 'authorized', 'captured', 'refunded', 'failed')."),
16
+ status: z.string().describe("The status of the payment (e.g., 'created', 'authorized', 'captured', 'refunded', 'failed').").nullable(),
17
17
  wallet: z.string().describe("The wallet used for the payment, if applicable.").nullable().optional(),
18
18
  card_id: z.string().describe("The identifier of the card used for the payment, if applicable.").nullable().optional(),
19
19
  contact: z.string().describe("The contact number associated with the payment.").nullable().optional(),
20
20
  captured: z.boolean().describe("Whether the payment has been captured.").nullable().optional(),
21
- currency: z.string().describe("The currency of the payment (ISO 4217 currency code)."),
21
+ currency: z.string().describe("The currency of the payment (ISO 4217 currency code).").nullable(),
22
22
  order_id: z.string().describe("The identifier of the order to which this payment belongs.").nullable().optional(),
23
23
  token_id: z.string().describe("The identifier of the token used for the payment, if any.").nullable().optional(),
24
24
  created_at: z.number().int().describe("Unix timestamp when the payment was created.").nullable().optional(),
@@ -29,22 +29,22 @@ const RazorpayFetchPaymentsByOrder_PaymentItemSchema = z.object({
29
29
  description: z.string().describe("Description of the payment.").nullable().optional(),
30
30
  error_reason: z.string().describe("The reason for the error.").nullable().optional(),
31
31
  error_source: z.string().describe("The source of the error (e.g., 'customer', 'business').").nullable().optional(),
32
- acquirer_data: z.object({}).describe("Data returned by the payment acquirer.").nullable().optional(),
32
+ acquirer_data: z.record(z.string(), z.unknown()).describe("Data returned by the payment acquirer.").nullable().optional(),
33
33
  international: z.boolean().describe("Whether the payment is an international payment.").nullable().optional(),
34
34
  refund_status: z.string().describe("The refund status of the payment (e.g., 'null', 'partial', 'full').").nullable().optional(),
35
35
  amount_refunded: z.number().int().describe("The amount refunded in the smallest currency unit.").nullable().optional(),
36
36
  error_description: z.string().describe("Description of the error if the payment failed.").nullable().optional()
37
- }).describe("Individual payment object associated with an order.");
37
+ }).passthrough().describe("Individual payment object associated with an order.");
38
38
  const razorpayFetchPaymentsByOrder = action("RAZORPAY_FETCH_PAYMENTS_BY_ORDER", {
39
39
  slug: "razorpay-fetch-payments-by-order",
40
40
  name: "Fetch payments by order",
41
41
  description: "Tool to fetch all payments made for a particular order. Use when you need to retrieve payment details associated with a specific order ID.",
42
42
  input: RazorpayFetchPaymentsByOrderInput,
43
43
  output: z.object({
44
- count: z.number().int().describe("The number of payments returned."),
44
+ count: z.number().int().describe("The number of payments returned.").nullable(),
45
45
  items: z.array(RazorpayFetchPaymentsByOrder_PaymentItemSchema).describe("List of payment objects associated with the order."),
46
- entity: z.string().describe("The entity type, always 'collection'.")
47
- }).describe("Response model containing payments for an order.")
46
+ entity: z.string().describe("The entity type, always 'collection'.").nullable()
47
+ }).passthrough().describe("Response model containing payments for an order.")
48
48
  });
49
49
  //#endregion
50
50
  export { razorpayFetchPaymentsByOrder };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-payments-by-order.mjs","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchPaymentsByOrderInput: z.ZodTypeAny = z.object({\n order_id: z.string().describe(\"The unique identifier of the order for which to fetch payments.\"),\n}).describe(\"Request model for fetching payments for an order.\");\nconst RazorpayFetchPaymentsByOrder_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\"),\n fee: z.number().int().describe(\"The fee charged for the payment in the smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"The tax amount in the smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"The Virtual Payment Address (VPA) for UPI payments, if applicable.\").nullable().optional(),\n bank: z.string().describe(\"The bank used for the payment, if applicable.\").nullable().optional(),\n email: z.string().describe(\"The email address associated with the payment.\").nullable().optional(),\n notes: z.object({}).describe(\"Key-value pairs for storing additional information about the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"The amount paid in the smallest currency unit (e.g., paise for INR).\"),\n entity: z.string().describe(\"The entity type, always 'payment'.\"),\n method: z.string().describe(\"The payment method used (e.g., 'card', 'netbanking', 'wallet', 'upi').\").nullable().optional(),\n status: z.string().describe(\"The status of the payment (e.g., 'created', 'authorized', 'captured', 'refunded', 'failed').\"),\n wallet: z.string().describe(\"The wallet used for the payment, if applicable.\").nullable().optional(),\n card_id: z.string().describe(\"The identifier of the card used for the payment, if applicable.\").nullable().optional(),\n contact: z.string().describe(\"The contact number associated with the payment.\").nullable().optional(),\n captured: z.boolean().describe(\"Whether the payment has been captured.\").nullable().optional(),\n currency: z.string().describe(\"The currency of the payment (ISO 4217 currency code).\"),\n order_id: z.string().describe(\"The identifier of the order to which this payment belongs.\").nullable().optional(),\n token_id: z.string().describe(\"The identifier of the token used for the payment, if any.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment was created.\").nullable().optional(),\n error_code: z.string().describe(\"Error code if the payment failed.\").nullable().optional(),\n error_step: z.string().describe(\"The step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"The identifier of the invoice associated with the payment, if any.\").nullable().optional(),\n customer_id: z.string().describe(\"The identifier of the customer who made the payment.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment.\").nullable().optional(),\n error_reason: z.string().describe(\"The reason for the error.\").nullable().optional(),\n error_source: z.string().describe(\"The source of the error (e.g., 'customer', 'business').\").nullable().optional(),\n acquirer_data: z.object({}).describe(\"Data returned by the payment acquirer.\").nullable().optional(),\n international: z.boolean().describe(\"Whether the payment is an international payment.\").nullable().optional(),\n refund_status: z.string().describe(\"The refund status of the payment (e.g., 'null', 'partial', 'full').\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"The amount refunded in the smallest currency unit.\").nullable().optional(),\n error_description: z.string().describe(\"Description of the error if the payment failed.\").nullable().optional(),\n}).describe(\"Individual payment object associated with an order.\");\nexport const RazorpayFetchPaymentsByOrderOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"The number of payments returned.\"),\n items: z.array(RazorpayFetchPaymentsByOrder_PaymentItemSchema).describe(\"List of payment objects associated with the order.\"),\n entity: z.string().describe(\"The entity type, always 'collection'.\"),\n}).describe(\"Response model containing payments for an order.\");\n\nexport const razorpayFetchPaymentsByOrder = action(\"RAZORPAY_FETCH_PAYMENTS_BY_ORDER\", {\n slug: \"razorpay-fetch-payments-by-order\",\n name: \"Fetch payments by order\",\n description: \"Tool to fetch all payments made for a particular order. Use when you need to retrieve payment details associated with a specific order ID.\",\n input: RazorpayFetchPaymentsByOrderInput,\n output: RazorpayFetchPaymentsByOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACjG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,iDAA+D,EAAE,OAAO;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAA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AC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAOjE,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8D,EAAE,OAAO;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACnE,OAAO,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,oDAAoD;EAC5H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACrE,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-payments-by-order.mjs","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchPaymentsByOrderInput = z.object({\n order_id: z.string().describe(\"The unique identifier of the order for which to fetch payments.\"),\n}).describe(\"Request model for fetching payments for an order.\");\nconst RazorpayFetchPaymentsByOrder_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"The fee charged for the payment in the smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"The tax amount in the smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"The Virtual Payment Address (VPA) for UPI payments, if applicable.\").nullable().optional(),\n bank: z.string().describe(\"The bank used for the payment, if applicable.\").nullable().optional(),\n email: z.string().describe(\"The email address associated with the payment.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"The amount paid in the smallest currency unit (e.g., paise for INR).\").nullable(),\n entity: z.string().describe(\"The entity type, always 'payment'.\").nullable(),\n method: z.string().describe(\"The payment method used (e.g., 'card', 'netbanking', 'wallet', 'upi').\").nullable().optional(),\n status: z.string().describe(\"The status of the payment (e.g., 'created', 'authorized', 'captured', 'refunded', 'failed').\").nullable(),\n wallet: z.string().describe(\"The wallet used for the payment, if applicable.\").nullable().optional(),\n card_id: z.string().describe(\"The identifier of the card used for the payment, if applicable.\").nullable().optional(),\n contact: z.string().describe(\"The contact number associated with the payment.\").nullable().optional(),\n captured: z.boolean().describe(\"Whether the payment has been captured.\").nullable().optional(),\n currency: z.string().describe(\"The currency of the payment (ISO 4217 currency code).\").nullable(),\n order_id: z.string().describe(\"The identifier of the order to which this payment belongs.\").nullable().optional(),\n token_id: z.string().describe(\"The identifier of the token used for the payment, if any.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment was created.\").nullable().optional(),\n error_code: z.string().describe(\"Error code if the payment failed.\").nullable().optional(),\n error_step: z.string().describe(\"The step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"The identifier of the invoice associated with the payment, if any.\").nullable().optional(),\n customer_id: z.string().describe(\"The identifier of the customer who made the payment.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment.\").nullable().optional(),\n error_reason: z.string().describe(\"The reason for the error.\").nullable().optional(),\n error_source: z.string().describe(\"The source of the error (e.g., 'customer', 'business').\").nullable().optional(),\n acquirer_data: z.record(z.string(), z.unknown()).describe(\"Data returned by the payment acquirer.\").nullable().optional(),\n international: z.boolean().describe(\"Whether the payment is an international payment.\").nullable().optional(),\n refund_status: z.string().describe(\"The refund status of the payment (e.g., 'null', 'partial', 'full').\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"The amount refunded in the smallest currency unit.\").nullable().optional(),\n error_description: z.string().describe(\"Description of the error if the payment failed.\").nullable().optional(),\n}).passthrough().describe(\"Individual payment object associated with an order.\");\nexport const RazorpayFetchPaymentsByOrderOutput = z.object({\n count: z.number().int().describe(\"The number of payments returned.\").nullable(),\n items: z.array(RazorpayFetchPaymentsByOrder_PaymentItemSchema).describe(\"List of payment objects associated with the order.\"),\n entity: z.string().describe(\"The entity type, always 'collection'.\").nullable(),\n}).passthrough().describe(\"Response model containing payments for an order.\");\n\nexport const razorpayFetchPaymentsByOrder = action(\"RAZORPAY_FETCH_PAYMENTS_BY_ORDER\", {\n slug: \"razorpay-fetch-payments-by-order\",\n name: \"Fetch payments by order\",\n description: \"Tool to fetch all payments made for a particular order. Use when you need to retrieve payment details associated with a specific order ID.\",\n input: RazorpayFetchPaymentsByOrderInput,\n output: RazorpayFetchPaymentsByOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO,EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACjG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,QAAQ,EAAE,OAAO,CAAC,CAAC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@@ const RazorpayFetchRefundsInput = zod.z.object({
7
7
  to_timestamp: zod.z.number().int().describe("Unix timestamp before which the refunds were created. Filter refunds created on or before this time.").optional(),
8
8
  from_timestamp: zod.z.number().int().describe("Unix timestamp after which the refunds were created. Filter refunds created on or after this time.").optional()
9
9
  }).describe("Request parameters for fetching all refunds with pagination support.");
10
- const RazorpayFetchRefunds_AcquirerDataSchema = zod.z.object({ arn: zod.z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).describe("Acquirer data for a refund.");
10
+ const RazorpayFetchRefunds_AcquirerDataSchema = zod.z.object({ arn: zod.z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).passthrough().describe("Acquirer data for a refund.");
11
11
  const RazorpayFetchRefunds_RefundSchema = zod.z.object({
12
12
  id: zod.z.string().describe("Unique identifier for the refund.").nullable().optional(),
13
13
  notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for custom data associated with the refund.").nullable().optional(),
@@ -22,12 +22,12 @@ const RazorpayFetchRefunds_RefundSchema = zod.z.object({
22
22
  acquirer_data: RazorpayFetchRefunds_AcquirerDataSchema.nullable().optional(),
23
23
  speed_processed: zod.z.string().describe("Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').").nullable().optional(),
24
24
  speed_requested: zod.z.string().describe("Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').").nullable().optional()
25
- }).describe("Represents an individual refund in the Razorpay system.");
25
+ }).passthrough().describe("Represents an individual refund in the Razorpay system.");
26
26
  const RazorpayFetchRefundsOutput = zod.z.object({
27
27
  count: zod.z.number().int().describe("Number of refunds returned in this response.").nullable().optional(),
28
28
  items: zod.z.array(RazorpayFetchRefunds_RefundSchema).describe("Array of refund objects returned by the API.").nullable().optional(),
29
29
  entity: zod.z.string().describe("Entity type, typically 'collection' for list responses.").nullable().optional()
30
- }).describe("Response schema for fetching all refunds.");
30
+ }).passthrough().describe("Response schema for fetching all refunds.");
31
31
  const razorpayFetchRefunds = require_action.action("RAZORPAY_FETCH_REFUNDS", {
32
32
  slug: "razorpay-fetch-refunds",
33
33
  name: "Fetch All Refunds",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-refunds.cjs","names":["z","action"],"sources":["../../src/actions/fetch-refunds.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchRefundsInput: z.ZodTypeAny = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds with pagination support.\");\nconst RazorpayFetchRefunds_AcquirerDataSchema: z.ZodTypeAny = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchRefunds_RefundSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchRefunds_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchRefundsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchRefunds_RefundSchema).describe(\"Array of refund objects returned by the API.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).describe(\"Response schema for fetching all refunds.\");\n\nexport const razorpayFetchRefunds = action(\"RAZORPAY_FETCH_REFUNDS\", {\n slug: \"razorpay-fetch-refunds\",\n name: \"Fetch All Refunds\",\n description: \"Tool to retrieve all refunds created by you using the Razorpay API. Use when you need to list refunds, track refund status, or analyze refund history with pagination support.\",\n input: RazorpayFetchRefundsInput,\n output: RazorpayFetchRefundsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAAwDA,IAAAA,EAAE,OAAO,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CAAwC,SAAS,CAAC,CAAC,SAAS;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-refunds.cjs","names":["z","action"],"sources":["../../src/actions/fetch-refunds.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchRefundsInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds with pagination support.\");\nconst RazorpayFetchRefunds_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchRefunds_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchRefunds_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchRefundsOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchRefunds_RefundSchema).describe(\"Array of refund objects returned by the API.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds.\");\n\nexport const razorpayFetchRefunds = action(\"RAZORPAY_FETCH_REFUNDS\", {\n slug: \"razorpay-fetch-refunds\",\n name: \"Fetch All Refunds\",\n description: \"Tool to retrieve all refunds created by you using the Razorpay API. Use when you need to list refunds, track refund status, or analyze refund history with pagination support.\",\n input: RazorpayFetchRefundsInput,\n output: RazorpayFetchRefundsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC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CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-refunds.d.ts
4
- declare const RazorpayFetchRefundsInput: z.ZodTypeAny;
5
- declare const RazorpayFetchRefundsOutput: z.ZodTypeAny;
6
- declare const razorpayFetchRefunds: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayFetchRefundsInput: z.ZodObject<{
5
+ skip: z.ZodOptional<z.ZodNumber>;
6
+ count: z.ZodOptional<z.ZodNumber>;
7
+ to_timestamp: z.ZodOptional<z.ZodNumber>;
8
+ from_timestamp: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const RazorpayFetchRefundsOutput: z.ZodObject<{
11
+ count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ arn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>>>;
26
+ speed_processed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ speed_requested: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$loose>>>>;
29
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>;
31
+ declare const razorpayFetchRefunds: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ skip?: number | undefined;
33
+ count?: number | undefined;
34
+ to_timestamp?: number | undefined;
35
+ from_timestamp?: number | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { razorpayFetchRefunds };
9
39
  //# sourceMappingURL=fetch-refunds.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-refunds.d.cts","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAKyC;AAAA,cAmBtE,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-refunds.d.cts","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-refunds.d.ts
4
- declare const RazorpayFetchRefundsInput: z.ZodTypeAny;
5
- declare const RazorpayFetchRefundsOutput: z.ZodTypeAny;
6
- declare const razorpayFetchRefunds: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayFetchRefundsInput: z.ZodObject<{
5
+ skip: z.ZodOptional<z.ZodNumber>;
6
+ count: z.ZodOptional<z.ZodNumber>;
7
+ to_timestamp: z.ZodOptional<z.ZodNumber>;
8
+ from_timestamp: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const RazorpayFetchRefundsOutput: z.ZodObject<{
11
+ count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ arn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>>>;
26
+ speed_processed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ speed_requested: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$loose>>>>;
29
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>;
31
+ declare const razorpayFetchRefunds: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ skip?: number | undefined;
33
+ count?: number | undefined;
34
+ to_timestamp?: number | undefined;
35
+ from_timestamp?: number | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { razorpayFetchRefunds };
9
39
  //# sourceMappingURL=fetch-refunds.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-refunds.d.mts","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAKyC;AAAA,cAmBtE,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-refunds.d.mts","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -7,7 +7,7 @@ const RazorpayFetchRefundsInput = z.object({
7
7
  to_timestamp: z.number().int().describe("Unix timestamp before which the refunds were created. Filter refunds created on or before this time.").optional(),
8
8
  from_timestamp: z.number().int().describe("Unix timestamp after which the refunds were created. Filter refunds created on or after this time.").optional()
9
9
  }).describe("Request parameters for fetching all refunds with pagination support.");
10
- const RazorpayFetchRefunds_AcquirerDataSchema = z.object({ arn: z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).describe("Acquirer data for a refund.");
10
+ const RazorpayFetchRefunds_AcquirerDataSchema = z.object({ arn: z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).passthrough().describe("Acquirer data for a refund.");
11
11
  const RazorpayFetchRefunds_RefundSchema = z.object({
12
12
  id: z.string().describe("Unique identifier for the refund.").nullable().optional(),
13
13
  notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for custom data associated with the refund.").nullable().optional(),
@@ -22,7 +22,7 @@ const RazorpayFetchRefunds_RefundSchema = z.object({
22
22
  acquirer_data: RazorpayFetchRefunds_AcquirerDataSchema.nullable().optional(),
23
23
  speed_processed: z.string().describe("Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').").nullable().optional(),
24
24
  speed_requested: z.string().describe("Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').").nullable().optional()
25
- }).describe("Represents an individual refund in the Razorpay system.");
25
+ }).passthrough().describe("Represents an individual refund in the Razorpay system.");
26
26
  const razorpayFetchRefunds = action("RAZORPAY_FETCH_REFUNDS", {
27
27
  slug: "razorpay-fetch-refunds",
28
28
  name: "Fetch All Refunds",
@@ -32,7 +32,7 @@ const razorpayFetchRefunds = action("RAZORPAY_FETCH_REFUNDS", {
32
32
  count: z.number().int().describe("Number of refunds returned in this response.").nullable().optional(),
33
33
  items: z.array(RazorpayFetchRefunds_RefundSchema).describe("Array of refund objects returned by the API.").nullable().optional(),
34
34
  entity: z.string().describe("Entity type, typically 'collection' for list responses.").nullable().optional()
35
- }).describe("Response schema for fetching all refunds.")
35
+ }).passthrough().describe("Response schema for fetching all refunds.")
36
36
  });
37
37
  //#endregion
38
38
  export { razorpayFetchRefunds };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-refunds.mjs","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchRefundsInput: z.ZodTypeAny = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds with pagination support.\");\nconst RazorpayFetchRefunds_AcquirerDataSchema: z.ZodTypeAny = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchRefunds_RefundSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchRefunds_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchRefundsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchRefunds_RefundSchema).describe(\"Array of refund objects returned by the API.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).describe(\"Response schema for fetching all refunds.\");\n\nexport const razorpayFetchRefunds = action(\"RAZORPAY_FETCH_REFUNDS\", {\n slug: \"razorpay-fetch-refunds\",\n name: \"Fetch All Refunds\",\n description: \"Tool to retrieve all refunds created by you using the Razorpay API. Use when you need to list refunds, track refund status, or analyze refund history with pagination support.\",\n input: RazorpayFetchRefundsInput,\n output: RazorpayFetchRefundsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAAwD,EAAE,OAAO,EACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,oCAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,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,CAAC,SAAS;EAC/H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-refunds.mjs","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchRefundsInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds with pagination support.\");\nconst RazorpayFetchRefunds_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchRefunds_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchRefunds_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchRefundsOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchRefunds_RefundSchema).describe(\"Array of refund objects returned by the API.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds.\");\n\nexport const razorpayFetchRefunds = action(\"RAZORPAY_FETCH_REFUNDS\", {\n slug: \"razorpay-fetch-refunds\",\n name: \"Fetch All Refunds\",\n description: \"Tool to retrieve all refunds created by you using the Razorpay API. Use when you need to list refunds, track refund status, or analyze refund history with pagination support.\",\n input: RazorpayFetchRefundsInput,\n output: RazorpayFetchRefundsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAA0C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS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EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAOnF,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -3,18 +3,18 @@ let zod = require("zod");
3
3
  //#region src/actions/get-contact.ts
4
4
  const RazorpayGetContactInput = zod.z.object({ contact_id: zod.z.string().describe("The unique identifier of the contact to retrieve. Must start with 'cont_' followed by alphanumeric characters.") }).describe("Request model for retrieving a contact.");
5
5
  const RazorpayGetContactOutput = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier for the contact."),
7
- name: zod.z.string().describe("Name of the contact."),
8
- type: zod.z.string().describe("Type of contact (employee, vendor, or customer)."),
6
+ id: zod.z.string().describe("Unique identifier for the contact.").nullable(),
7
+ name: zod.z.string().describe("Name of the contact.").nullable(),
8
+ type: zod.z.string().describe("Type of contact (employee, vendor, or customer).").nullable(),
9
9
  email: zod.z.string().describe("Email address of the contact.").nullable().optional(),
10
- notes: zod.z.object({}).describe("Key-value pairs storing additional information about the contact.").nullable().optional(),
11
- active: zod.z.boolean().describe("Whether the contact is active."),
12
- entity: zod.z.string().describe("Entity type. Always 'contact' for this endpoint."),
10
+ notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs storing additional information about the contact.").nullable().optional(),
11
+ active: zod.z.boolean().describe("Whether the contact is active.").nullable(),
12
+ entity: zod.z.string().describe("Entity type. Always 'contact' for this endpoint.").nullable(),
13
13
  contact: zod.z.string().describe("Phone number of the contact.").nullable().optional(),
14
14
  batch_id: zod.z.string().describe("Batch identifier if the contact was created in a batch.").nullable().optional(),
15
- created_at: zod.z.number().int().describe("Unix timestamp when the contact was created."),
15
+ created_at: zod.z.number().int().describe("Unix timestamp when the contact was created.").nullable(),
16
16
  reference_id: zod.z.string().describe("Reference identifier for the contact in external system.").nullable().optional()
17
- }).describe("Response model containing contact details.");
17
+ }).passthrough().describe("Response model containing contact details.");
18
18
  const razorpayGetContact = require_action.action("RAZORPAY_GET_CONTACT", {
19
19
  slug: "razorpay-get-contact",
20
20
  name: "Get Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayGetContactInput: z.ZodTypeAny = z.object({\n contact_id: z.string().describe(\"The unique identifier of the contact to retrieve. Must start with 'cont_' followed by alphanumeric characters.\"),\n}).describe(\"Request model for retrieving a contact.\");\nexport const RazorpayGetContactOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact.\"),\n name: z.string().describe(\"Name of the contact.\"),\n type: z.string().describe(\"Type of contact (employee, vendor, or customer).\"),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n notes: z.object({}).describe(\"Key-value pairs storing additional information about the contact.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active.\"),\n entity: z.string().describe(\"Entity type. Always 'contact' for this endpoint.\"),\n contact: z.string().describe(\"Phone number of the contact.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the contact was created in a batch.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the contact was created.\"),\n reference_id: z.string().describe(\"Reference identifier for the contact in external system.\").nullable().optional(),\n}).describe(\"Response model containing contact details.\");\n\nexport const razorpayGetContact = action(\"RAZORPAY_GET_CONTACT\", {\n slug: \"razorpay-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve details of a specific contact by ID in RazorpayX. Use when you need to fetch information about an existing contact including their name, email, contact details, and metadata.\",\n input: RazorpayGetContactInput,\n output: RazorpayGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EAClJ,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayGetContactInput = z.object({\n contact_id: z.string().describe(\"The unique identifier of the contact to retrieve. Must start with 'cont_' followed by alphanumeric characters.\"),\n}).describe(\"Request model for retrieving a contact.\");\nexport const RazorpayGetContactOutput = z.object({\n id: z.string().describe(\"Unique identifier for the contact.\").nullable(),\n name: z.string().describe(\"Name of the contact.\").nullable(),\n type: z.string().describe(\"Type of contact (employee, vendor, or customer).\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs storing additional information about the contact.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active.\").nullable(),\n entity: z.string().describe(\"Entity type. Always 'contact' for this endpoint.\").nullable(),\n contact: z.string().describe(\"Phone number of the contact.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the contact was created in a batch.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the contact was created.\").nullable(),\n reference_id: z.string().describe(\"Reference identifier for the contact in external system.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing contact details.\");\n\nexport const razorpayGetContact = action(\"RAZORPAY_GET_CONTACT\", {\n slug: \"razorpay-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve details of a specific contact by ID in RazorpayX. Use when you need to fetch information about an existing contact including their name, email, contact details, and metadata.\",\n input: RazorpayGetContactInput,\n output: RazorpayGetContactOutput,\n});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AC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contact.d.ts
4
- declare const RazorpayGetContactInput: z.ZodTypeAny;
5
- declare const RazorpayGetContactOutput: z.ZodTypeAny;
6
- declare const razorpayGetContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayGetContactInput: z.ZodObject<{
5
+ contact_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RazorpayGetContactOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
+ active: z.ZodNullable<z.ZodBoolean>;
14
+ entity: z.ZodNullable<z.ZodString>;
15
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ created_at: z.ZodNullable<z.ZodNumber>;
18
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>;
20
+ declare const razorpayGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ contact_id: string;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { razorpayGetContact };
9
25
  //# sourceMappingURL=get-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEc;AAAA,cACzC,wBAAA,EAA0B,CAAA,CAAE,UAYgB;AAAA,cAE5C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contact.d.ts
4
- declare const RazorpayGetContactInput: z.ZodTypeAny;
5
- declare const RazorpayGetContactOutput: z.ZodTypeAny;
6
- declare const razorpayGetContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayGetContactInput: z.ZodObject<{
5
+ contact_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RazorpayGetContactOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
+ active: z.ZodNullable<z.ZodBoolean>;
14
+ entity: z.ZodNullable<z.ZodString>;
15
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ created_at: z.ZodNullable<z.ZodNumber>;
18
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>;
20
+ declare const razorpayGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ contact_id: string;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { razorpayGetContact };
9
25
  //# sourceMappingURL=get-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEc;AAAA,cACzC,wBAAA,EAA0B,CAAA,CAAE,UAYgB;AAAA,cAE5C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
@@ -6,18 +6,18 @@ const razorpayGetContact = action("RAZORPAY_GET_CONTACT", {
6
6
  description: "Tool to retrieve details of a specific contact by ID in RazorpayX. Use when you need to fetch information about an existing contact including their name, email, contact details, and metadata.",
7
7
  input: z.object({ contact_id: z.string().describe("The unique identifier of the contact to retrieve. Must start with 'cont_' followed by alphanumeric characters.") }).describe("Request model for retrieving a contact."),
8
8
  output: z.object({
9
- id: z.string().describe("Unique identifier for the contact."),
10
- name: z.string().describe("Name of the contact."),
11
- type: z.string().describe("Type of contact (employee, vendor, or customer)."),
9
+ id: z.string().describe("Unique identifier for the contact.").nullable(),
10
+ name: z.string().describe("Name of the contact.").nullable(),
11
+ type: z.string().describe("Type of contact (employee, vendor, or customer).").nullable(),
12
12
  email: z.string().describe("Email address of the contact.").nullable().optional(),
13
- notes: z.object({}).describe("Key-value pairs storing additional information about the contact.").nullable().optional(),
14
- active: z.boolean().describe("Whether the contact is active."),
15
- entity: z.string().describe("Entity type. Always 'contact' for this endpoint."),
13
+ notes: z.record(z.string(), z.unknown()).describe("Key-value pairs storing additional information about the contact.").nullable().optional(),
14
+ active: z.boolean().describe("Whether the contact is active.").nullable(),
15
+ entity: z.string().describe("Entity type. Always 'contact' for this endpoint.").nullable(),
16
16
  contact: z.string().describe("Phone number of the contact.").nullable().optional(),
17
17
  batch_id: z.string().describe("Batch identifier if the contact was created in a batch.").nullable().optional(),
18
- created_at: z.number().int().describe("Unix timestamp when the contact was created."),
18
+ created_at: z.number().int().describe("Unix timestamp when the contact was created.").nullable(),
19
19
  reference_id: z.string().describe("Reference identifier for the contact in external system.").nullable().optional()
20
- }).describe("Response model containing contact details.")
20
+ }).passthrough().describe("Response model containing contact details.")
21
21
  });
22
22
  //#endregion
23
23
  export { razorpayGetContact };
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayGetContactInput: z.ZodTypeAny = z.object({\n contact_id: z.string().describe(\"The unique identifier of the contact to retrieve. Must start with 'cont_' followed by alphanumeric characters.\"),\n}).describe(\"Request model for retrieving a contact.\");\nexport const RazorpayGetContactOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact.\"),\n name: z.string().describe(\"Name of the contact.\"),\n type: z.string().describe(\"Type of contact (employee, vendor, or customer).\"),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n notes: z.object({}).describe(\"Key-value pairs storing additional information about the contact.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active.\"),\n entity: z.string().describe(\"Entity type. Always 'contact' for this endpoint.\"),\n contact: z.string().describe(\"Phone number of the contact.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the contact was created in a batch.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the contact was created.\"),\n reference_id: z.string().describe(\"Reference identifier for the contact in external system.\").nullable().optional(),\n}).describe(\"Response model containing contact details.\");\n\nexport const razorpayGetContact = action(\"RAZORPAY_GET_CONTACT\", {\n slug: \"razorpay-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve details of a specific contact by ID in RazorpayX. Use when you need to fetch information about an existing contact including their name, email, contact details, and metadata.\",\n input: RazorpayGetContactInput,\n output: RazorpayGetContactOutput,\n});\n"],"mappings":";;AAqBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBmD,EAAE,OAAO,EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EAClJ,CAAC,CAAC,CAAC,SAAS,yCAmBH;CACP,QAnBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;EACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayGetContactInput = z.object({\n contact_id: z.string().describe(\"The unique identifier of the contact to retrieve. Must start with 'cont_' followed by alphanumeric characters.\"),\n}).describe(\"Request model for retrieving a contact.\");\nexport const RazorpayGetContactOutput = z.object({\n id: z.string().describe(\"Unique identifier for the contact.\").nullable(),\n name: z.string().describe(\"Name of the contact.\").nullable(),\n type: z.string().describe(\"Type of contact (employee, vendor, or customer).\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs storing additional information about the contact.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active.\").nullable(),\n entity: z.string().describe(\"Entity type. Always 'contact' for this endpoint.\").nullable(),\n contact: z.string().describe(\"Phone number of the contact.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the contact was created in a batch.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the contact was created.\").nullable(),\n reference_id: z.string().describe(\"Reference identifier for the contact in external system.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing contact details.\");\n\nexport const razorpayGetContact = action(\"RAZORPAY_GET_CONTACT\", {\n slug: \"razorpay-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve details of a specific contact by ID in RazorpayX. Use when you need to fetch information about an existing contact including their name, email, contact details, and metadata.\",\n input: RazorpayGetContactInput,\n output: RazorpayGetContactOutput,\n});\n"],"mappings":";;AAqBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBqC,EAAE,OAAO,EAC9C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EAClJ,CAAC,CAAC,CAAC,SAAS,yCAmBH;CACP,QAnBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC/F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -3,15 +3,15 @@ let zod = require("zod");
3
3
  //#region src/actions/get-customer.ts
4
4
  const RazorpayGetCustomerInput = zod.z.object({ customer_id: zod.z.string().describe("The unique identifier of the customer to retrieve. Must start with 'cust_' followed by alphanumeric characters.") }).describe("Request model for retrieving a customer.");
5
5
  const RazorpayGetCustomerOutput = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier for the customer object."),
6
+ id: zod.z.string().describe("Unique identifier for the customer object.").nullable(),
7
7
  name: zod.z.string().describe("The name of the customer.").nullable().optional(),
8
8
  email: zod.z.string().describe("The email address of the customer.").nullable().optional(),
9
9
  gstin: zod.z.string().describe("The GST identification number of the customer (India-specific).").nullable().optional(),
10
- notes: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional(),
11
- entity: zod.z.string().describe("String representing the object's type. Always 'customer' for this endpoint."),
10
+ notes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
11
+ entity: zod.z.string().describe("String representing the object's type. Always 'customer' for this endpoint.").nullable(),
12
12
  contact: zod.z.string().describe("The contact number of the customer.").nullable().optional(),
13
13
  created_at: zod.z.number().int().describe("Unix timestamp when the customer was created.").nullable().optional()
14
- }).describe("Response model containing customer details.");
14
+ }).passthrough().describe("Response model containing customer details.");
15
15
  const razorpayGetCustomer = require_action.action("RAZORPAY_GET_CUSTOMER", {
16
16
  slug: "razorpay-get-customer",
17
17
  name: "Retrieve Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.cjs","names":["z","action"],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayGetCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"The unique identifier of the customer to retrieve. Must start with 'cust_' followed by alphanumeric characters.\"),\n}).describe(\"Request model for retrieving a customer.\");\nexport const RazorpayGetCustomerOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the customer object.\"),\n name: z.string().describe(\"The name of the customer.\").nullable().optional(),\n email: z.string().describe(\"The email address of the customer.\").nullable().optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific).\").nullable().optional(),\n notes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n entity: z.string().describe(\"String representing the object's type. Always 'customer' for this endpoint.\"),\n contact: z.string().describe(\"The contact number of the customer.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the customer was created.\").nullable().optional(),\n}).describe(\"Response model containing customer details.\");\n\nexport const razorpayGetCustomer = action(\"RAZORPAY_GET_CUSTOMER\", {\n slug: \"razorpay-get-customer\",\n name: \"Retrieve Customer\",\n description: \"Tool to retrieve details of a specific customer by their ID. Use when you need to fetch customer information including name, email, contact details, and custom notes.\",\n input: RazorpayGetCustomerInput,\n output: RazorpayGetCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,EACpJ,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer.cjs","names":["z","action"],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayGetCustomerInput = z.object({\n customer_id: z.string().describe(\"The unique identifier of the customer to retrieve. Must start with 'cust_' followed by alphanumeric characters.\"),\n}).describe(\"Request model for retrieving a customer.\");\nexport const RazorpayGetCustomerOutput = z.object({\n id: z.string().describe(\"Unique identifier for the customer object.\").nullable(),\n name: z.string().describe(\"The name of the customer.\").nullable().optional(),\n email: z.string().describe(\"The email address of the customer.\").nullable().optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific).\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n entity: z.string().describe(\"String representing the object's type. Always 'customer' for this endpoint.\").nullable(),\n contact: z.string().describe(\"The contact number of the customer.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the customer was created.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing customer details.\");\n\nexport const razorpayGetCustomer = action(\"RAZORPAY_GET_CUSTOMER\", {\n slug: \"razorpay-get-customer\",\n name: \"Retrieve Customer\",\n description: \"Tool to retrieve details of a specific customer by their ID. Use when you need to fetch customer information including name, email, contact details, and custom notes.\",\n input: RazorpayGetCustomerInput,\n output: RazorpayGetCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,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: z.ZodTypeAny;
5
- declare const RazorpayGetCustomerOutput: z.ZodTypeAny;
6
- declare const razorpayGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayGetCustomerInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RazorpayGetCustomerOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ gstin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
13
+ entity: z.ZodNullable<z.ZodString>;
14
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ }, z.core.$loose>;
17
+ declare const razorpayGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ customer_id: string;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { razorpayGetCustomer };
9
22
  //# sourceMappingURL=get-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.d.cts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEc;AAAA,cAC1C,yBAAA,EAA2B,CAAA,CAAE,UASgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-customer.d.cts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-customer.d.ts
4
- declare const RazorpayGetCustomerInput: z.ZodTypeAny;
5
- declare const RazorpayGetCustomerOutput: z.ZodTypeAny;
6
- declare const razorpayGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayGetCustomerInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RazorpayGetCustomerOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ gstin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
13
+ entity: z.ZodNullable<z.ZodString>;
14
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ }, z.core.$loose>;
17
+ declare const razorpayGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ customer_id: string;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { razorpayGetCustomer };
9
22
  //# sourceMappingURL=get-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.d.mts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEc;AAAA,cAC1C,yBAAA,EAA2B,CAAA,CAAE,UASgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-customer.d.mts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,gCAAmB,wBAAA"}