@keystrokehq/razorpay 0.1.4 → 0.1.6

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 (349) 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 +1 -0
  4. package/dist/actions/cancel-invoice.cjs.map +1 -1
  5. package/dist/actions/cancel-invoice.d.cts +3 -3
  6. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  7. package/dist/actions/cancel-invoice.d.mts +3 -3
  8. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  9. package/dist/actions/cancel-invoice.mjs +1 -0
  10. package/dist/actions/cancel-invoice.mjs.map +1 -1
  11. package/dist/actions/cancel-payment-link.cjs +1 -0
  12. package/dist/actions/cancel-payment-link.cjs.map +1 -1
  13. package/dist/actions/cancel-payment-link.d.cts +3 -3
  14. package/dist/actions/cancel-payment-link.d.cts.map +1 -1
  15. package/dist/actions/cancel-payment-link.d.mts +3 -3
  16. package/dist/actions/cancel-payment-link.d.mts.map +1 -1
  17. package/dist/actions/cancel-payment-link.mjs +1 -0
  18. package/dist/actions/cancel-payment-link.mjs.map +1 -1
  19. package/dist/actions/create-an-order.cjs +1 -0
  20. package/dist/actions/create-an-order.cjs.map +1 -1
  21. package/dist/actions/create-an-order.d.cts +3 -7
  22. package/dist/actions/create-an-order.d.cts.map +1 -1
  23. package/dist/actions/create-an-order.d.mts +3 -7
  24. package/dist/actions/create-an-order.d.mts.map +1 -1
  25. package/dist/actions/create-an-order.mjs +1 -0
  26. package/dist/actions/create-an-order.mjs.map +1 -1
  27. package/dist/actions/create-contact.cjs +1 -0
  28. package/dist/actions/create-contact.cjs.map +1 -1
  29. package/dist/actions/create-contact.d.cts +3 -8
  30. package/dist/actions/create-contact.d.cts.map +1 -1
  31. package/dist/actions/create-contact.d.mts +3 -8
  32. package/dist/actions/create-contact.d.mts.map +1 -1
  33. package/dist/actions/create-contact.mjs +1 -0
  34. package/dist/actions/create-contact.mjs.map +1 -1
  35. package/dist/actions/create-customer.cjs +1 -0
  36. package/dist/actions/create-customer.cjs.map +1 -1
  37. package/dist/actions/create-customer.d.cts +3 -7
  38. package/dist/actions/create-customer.d.cts.map +1 -1
  39. package/dist/actions/create-customer.d.mts +3 -7
  40. package/dist/actions/create-customer.d.mts.map +1 -1
  41. package/dist/actions/create-customer.mjs +1 -0
  42. package/dist/actions/create-customer.mjs.map +1 -1
  43. package/dist/actions/create-invoice.cjs +1 -0
  44. package/dist/actions/create-invoice.cjs.map +1 -1
  45. package/dist/actions/create-invoice.d.cts +3 -66
  46. package/dist/actions/create-invoice.d.cts.map +1 -1
  47. package/dist/actions/create-invoice.d.mts +3 -66
  48. package/dist/actions/create-invoice.d.mts.map +1 -1
  49. package/dist/actions/create-invoice.mjs +1 -0
  50. package/dist/actions/create-invoice.mjs.map +1 -1
  51. package/dist/actions/create-item.cjs +1 -0
  52. package/dist/actions/create-item.cjs.map +1 -1
  53. package/dist/actions/create-item.d.cts +3 -6
  54. package/dist/actions/create-item.d.cts.map +1 -1
  55. package/dist/actions/create-item.d.mts +3 -6
  56. package/dist/actions/create-item.d.mts.map +1 -1
  57. package/dist/actions/create-item.mjs +1 -0
  58. package/dist/actions/create-item.mjs.map +1 -1
  59. package/dist/actions/create-payment-link.cjs +1 -0
  60. package/dist/actions/create-payment-link.cjs.map +1 -1
  61. package/dist/actions/create-payment-link.d.cts +3 -20
  62. package/dist/actions/create-payment-link.d.cts.map +1 -1
  63. package/dist/actions/create-payment-link.d.mts +3 -20
  64. package/dist/actions/create-payment-link.d.mts.map +1 -1
  65. package/dist/actions/create-payment-link.mjs +1 -0
  66. package/dist/actions/create-payment-link.mjs.map +1 -1
  67. package/dist/actions/delete-invoice.cjs +1 -0
  68. package/dist/actions/delete-invoice.cjs.map +1 -1
  69. package/dist/actions/delete-invoice.d.cts +3 -3
  70. package/dist/actions/delete-invoice.d.cts.map +1 -1
  71. package/dist/actions/delete-invoice.d.mts +3 -3
  72. package/dist/actions/delete-invoice.d.mts.map +1 -1
  73. package/dist/actions/delete-invoice.mjs +1 -0
  74. package/dist/actions/delete-invoice.mjs.map +1 -1
  75. package/dist/actions/delete-item.cjs +1 -0
  76. package/dist/actions/delete-item.cjs.map +1 -1
  77. package/dist/actions/delete-item.d.cts +3 -3
  78. package/dist/actions/delete-item.d.cts.map +1 -1
  79. package/dist/actions/delete-item.d.mts +3 -3
  80. package/dist/actions/delete-item.d.mts.map +1 -1
  81. package/dist/actions/delete-item.mjs +1 -0
  82. package/dist/actions/delete-item.mjs.map +1 -1
  83. package/dist/actions/fetch-a-payment-link.cjs +1 -0
  84. package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
  85. package/dist/actions/fetch-a-payment-link.d.cts +3 -3
  86. package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
  87. package/dist/actions/fetch-a-payment-link.d.mts +3 -3
  88. package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
  89. package/dist/actions/fetch-a-payment-link.mjs +1 -0
  90. package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
  91. package/dist/actions/fetch-all-customers.cjs +1 -0
  92. package/dist/actions/fetch-all-customers.cjs.map +1 -1
  93. package/dist/actions/fetch-all-customers.d.cts +3 -4
  94. package/dist/actions/fetch-all-customers.d.cts.map +1 -1
  95. package/dist/actions/fetch-all-customers.d.mts +3 -4
  96. package/dist/actions/fetch-all-customers.d.mts.map +1 -1
  97. package/dist/actions/fetch-all-customers.mjs +1 -0
  98. package/dist/actions/fetch-all-customers.mjs.map +1 -1
  99. package/dist/actions/fetch-all-invoices.cjs +1 -0
  100. package/dist/actions/fetch-all-invoices.cjs.map +1 -1
  101. package/dist/actions/fetch-all-invoices.d.cts +3 -10
  102. package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
  103. package/dist/actions/fetch-all-invoices.d.mts +3 -10
  104. package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
  105. package/dist/actions/fetch-all-invoices.mjs +1 -0
  106. package/dist/actions/fetch-all-invoices.mjs.map +1 -1
  107. package/dist/actions/fetch-all-payment-links.cjs +1 -0
  108. package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
  109. package/dist/actions/fetch-all-payment-links.d.cts +3 -8
  110. package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
  111. package/dist/actions/fetch-all-payment-links.d.mts +3 -8
  112. package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
  113. package/dist/actions/fetch-all-payment-links.mjs +1 -0
  114. package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
  115. package/dist/actions/fetch-all-payments.cjs +1 -0
  116. package/dist/actions/fetch-all-payments.cjs.map +1 -1
  117. package/dist/actions/fetch-all-payments.d.cts +3 -6
  118. package/dist/actions/fetch-all-payments.d.cts.map +1 -1
  119. package/dist/actions/fetch-all-payments.d.mts +3 -6
  120. package/dist/actions/fetch-all-payments.d.mts.map +1 -1
  121. package/dist/actions/fetch-all-payments.mjs +1 -0
  122. package/dist/actions/fetch-all-payments.mjs.map +1 -1
  123. package/dist/actions/fetch-all-refunds-for-a-payment.cjs +1 -0
  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 +3 -7
  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 +3 -7
  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 +1 -0
  130. package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
  131. package/dist/actions/fetch-invoice-by-id.cjs +1 -0
  132. package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
  133. package/dist/actions/fetch-invoice-by-id.d.cts +3 -3
  134. package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
  135. package/dist/actions/fetch-invoice-by-id.d.mts +3 -3
  136. package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
  137. package/dist/actions/fetch-invoice-by-id.mjs +1 -0
  138. package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
  139. package/dist/actions/fetch-orders-by-id.cjs +1 -0
  140. package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
  141. package/dist/actions/fetch-orders-by-id.d.cts +3 -3
  142. package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
  143. package/dist/actions/fetch-orders-by-id.d.mts +3 -3
  144. package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
  145. package/dist/actions/fetch-orders-by-id.mjs +1 -0
  146. package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
  147. package/dist/actions/fetch-orders.cjs +1 -0
  148. package/dist/actions/fetch-orders.cjs.map +1 -1
  149. package/dist/actions/fetch-orders.d.cts +3 -8
  150. package/dist/actions/fetch-orders.d.cts.map +1 -1
  151. package/dist/actions/fetch-orders.d.mts +3 -8
  152. package/dist/actions/fetch-orders.d.mts.map +1 -1
  153. package/dist/actions/fetch-orders.mjs +1 -0
  154. package/dist/actions/fetch-orders.mjs.map +1 -1
  155. package/dist/actions/fetch-payments-by-order.cjs +1 -0
  156. package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
  157. package/dist/actions/fetch-payments-by-order.d.cts +3 -3
  158. package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
  159. package/dist/actions/fetch-payments-by-order.d.mts +3 -3
  160. package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
  161. package/dist/actions/fetch-payments-by-order.mjs +1 -0
  162. package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
  163. package/dist/actions/fetch-refunds.cjs +1 -0
  164. package/dist/actions/fetch-refunds.cjs.map +1 -1
  165. package/dist/actions/fetch-refunds.d.cts +3 -6
  166. package/dist/actions/fetch-refunds.d.cts.map +1 -1
  167. package/dist/actions/fetch-refunds.d.mts +3 -6
  168. package/dist/actions/fetch-refunds.d.mts.map +1 -1
  169. package/dist/actions/fetch-refunds.mjs +1 -0
  170. package/dist/actions/fetch-refunds.mjs.map +1 -1
  171. package/dist/actions/get-contact.cjs +1 -0
  172. package/dist/actions/get-contact.cjs.map +1 -1
  173. package/dist/actions/get-contact.d.cts +3 -3
  174. package/dist/actions/get-contact.d.cts.map +1 -1
  175. package/dist/actions/get-contact.d.mts +3 -3
  176. package/dist/actions/get-contact.d.mts.map +1 -1
  177. package/dist/actions/get-contact.mjs +1 -0
  178. package/dist/actions/get-contact.mjs.map +1 -1
  179. package/dist/actions/get-customer.cjs +1 -0
  180. package/dist/actions/get-customer.cjs.map +1 -1
  181. package/dist/actions/get-customer.d.cts +3 -3
  182. package/dist/actions/get-customer.d.cts.map +1 -1
  183. package/dist/actions/get-customer.d.mts +3 -3
  184. package/dist/actions/get-customer.d.mts.map +1 -1
  185. package/dist/actions/get-customer.mjs +1 -0
  186. package/dist/actions/get-customer.mjs.map +1 -1
  187. package/dist/actions/get-fund-account.cjs +1 -0
  188. package/dist/actions/get-fund-account.cjs.map +1 -1
  189. package/dist/actions/get-fund-account.d.cts +3 -3
  190. package/dist/actions/get-fund-account.d.cts.map +1 -1
  191. package/dist/actions/get-fund-account.d.mts +3 -3
  192. package/dist/actions/get-fund-account.d.mts.map +1 -1
  193. package/dist/actions/get-fund-account.mjs +1 -0
  194. package/dist/actions/get-fund-account.mjs.map +1 -1
  195. package/dist/actions/get-item.cjs +1 -0
  196. package/dist/actions/get-item.cjs.map +1 -1
  197. package/dist/actions/get-item.d.cts +3 -3
  198. package/dist/actions/get-item.d.cts.map +1 -1
  199. package/dist/actions/get-item.d.mts +3 -3
  200. package/dist/actions/get-item.d.mts.map +1 -1
  201. package/dist/actions/get-item.mjs +1 -0
  202. package/dist/actions/get-item.mjs.map +1 -1
  203. package/dist/actions/get-settlement-recon.cjs +1 -0
  204. package/dist/actions/get-settlement-recon.cjs.map +1 -1
  205. package/dist/actions/get-settlement-recon.d.cts +3 -7
  206. package/dist/actions/get-settlement-recon.d.cts.map +1 -1
  207. package/dist/actions/get-settlement-recon.d.mts +3 -7
  208. package/dist/actions/get-settlement-recon.d.mts.map +1 -1
  209. package/dist/actions/get-settlement-recon.mjs +1 -0
  210. package/dist/actions/get-settlement-recon.mjs.map +1 -1
  211. package/dist/actions/get-transfer-reversals.cjs +1 -0
  212. package/dist/actions/get-transfer-reversals.cjs.map +1 -1
  213. package/dist/actions/get-transfer-reversals.d.cts +3 -7
  214. package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
  215. package/dist/actions/get-transfer-reversals.d.mts +3 -7
  216. package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
  217. package/dist/actions/get-transfer-reversals.mjs +1 -0
  218. package/dist/actions/get-transfer-reversals.mjs.map +1 -1
  219. package/dist/actions/issue-an-invoice.cjs +1 -0
  220. package/dist/actions/issue-an-invoice.cjs.map +1 -1
  221. package/dist/actions/issue-an-invoice.d.cts +3 -3
  222. package/dist/actions/issue-an-invoice.d.cts.map +1 -1
  223. package/dist/actions/issue-an-invoice.d.mts +3 -3
  224. package/dist/actions/issue-an-invoice.d.mts.map +1 -1
  225. package/dist/actions/issue-an-invoice.mjs +1 -0
  226. package/dist/actions/issue-an-invoice.mjs.map +1 -1
  227. package/dist/actions/list-customer-tokens.cjs +1 -0
  228. package/dist/actions/list-customer-tokens.cjs.map +1 -1
  229. package/dist/actions/list-customer-tokens.d.cts +3 -3
  230. package/dist/actions/list-customer-tokens.d.cts.map +1 -1
  231. package/dist/actions/list-customer-tokens.d.mts +3 -3
  232. package/dist/actions/list-customer-tokens.d.mts.map +1 -1
  233. package/dist/actions/list-customer-tokens.mjs +1 -0
  234. package/dist/actions/list-customer-tokens.mjs.map +1 -1
  235. package/dist/actions/list-disputes.cjs +1 -0
  236. package/dist/actions/list-disputes.cjs.map +1 -1
  237. package/dist/actions/list-disputes.d.cts +3 -6
  238. package/dist/actions/list-disputes.d.cts.map +1 -1
  239. package/dist/actions/list-disputes.d.mts +3 -6
  240. package/dist/actions/list-disputes.d.mts.map +1 -1
  241. package/dist/actions/list-disputes.mjs +1 -0
  242. package/dist/actions/list-disputes.mjs.map +1 -1
  243. package/dist/actions/list-fund-accounts.cjs +1 -0
  244. package/dist/actions/list-fund-accounts.cjs.map +1 -1
  245. package/dist/actions/list-fund-accounts.d.cts +3 -6
  246. package/dist/actions/list-fund-accounts.d.cts.map +1 -1
  247. package/dist/actions/list-fund-accounts.d.mts +3 -6
  248. package/dist/actions/list-fund-accounts.d.mts.map +1 -1
  249. package/dist/actions/list-fund-accounts.mjs +1 -0
  250. package/dist/actions/list-fund-accounts.mjs.map +1 -1
  251. package/dist/actions/list-fund-validations.cjs +1 -0
  252. package/dist/actions/list-fund-validations.cjs.map +1 -1
  253. package/dist/actions/list-fund-validations.d.cts +3 -6
  254. package/dist/actions/list-fund-validations.d.cts.map +1 -1
  255. package/dist/actions/list-fund-validations.d.mts +3 -6
  256. package/dist/actions/list-fund-validations.d.mts.map +1 -1
  257. package/dist/actions/list-fund-validations.mjs +1 -0
  258. package/dist/actions/list-fund-validations.mjs.map +1 -1
  259. package/dist/actions/list-items.cjs +1 -0
  260. package/dist/actions/list-items.cjs.map +1 -1
  261. package/dist/actions/list-items.d.cts +3 -7
  262. package/dist/actions/list-items.d.cts.map +1 -1
  263. package/dist/actions/list-items.d.mts +3 -7
  264. package/dist/actions/list-items.d.mts.map +1 -1
  265. package/dist/actions/list-items.mjs +1 -0
  266. package/dist/actions/list-items.mjs.map +1 -1
  267. package/dist/actions/list-payment-downtimes.cjs +1 -0
  268. package/dist/actions/list-payment-downtimes.cjs.map +1 -1
  269. package/dist/actions/list-payment-downtimes.d.cts +3 -1
  270. package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
  271. package/dist/actions/list-payment-downtimes.d.mts +3 -1
  272. package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
  273. package/dist/actions/list-payment-downtimes.mjs +1 -0
  274. package/dist/actions/list-payment-downtimes.mjs.map +1 -1
  275. package/dist/actions/notify-payment-link.cjs +1 -0
  276. package/dist/actions/notify-payment-link.cjs.map +1 -1
  277. package/dist/actions/notify-payment-link.d.cts +3 -4
  278. package/dist/actions/notify-payment-link.d.cts.map +1 -1
  279. package/dist/actions/notify-payment-link.d.mts +3 -4
  280. package/dist/actions/notify-payment-link.d.mts.map +1 -1
  281. package/dist/actions/notify-payment-link.mjs +1 -0
  282. package/dist/actions/notify-payment-link.mjs.map +1 -1
  283. package/dist/actions/send-or-resend-notification.cjs +1 -0
  284. package/dist/actions/send-or-resend-notification.cjs.map +1 -1
  285. package/dist/actions/send-or-resend-notification.d.cts +3 -4
  286. package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
  287. package/dist/actions/send-or-resend-notification.d.mts +3 -4
  288. package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
  289. package/dist/actions/send-or-resend-notification.mjs +1 -0
  290. package/dist/actions/send-or-resend-notification.mjs.map +1 -1
  291. package/dist/actions/update-contact.cjs +1 -0
  292. package/dist/actions/update-contact.cjs.map +1 -1
  293. package/dist/actions/update-contact.d.cts +3 -9
  294. package/dist/actions/update-contact.d.cts.map +1 -1
  295. package/dist/actions/update-contact.d.mts +3 -9
  296. package/dist/actions/update-contact.d.mts.map +1 -1
  297. package/dist/actions/update-contact.mjs +1 -0
  298. package/dist/actions/update-contact.mjs.map +1 -1
  299. package/dist/actions/update-customer.cjs +1 -0
  300. package/dist/actions/update-customer.cjs.map +1 -1
  301. package/dist/actions/update-customer.d.cts +3 -6
  302. package/dist/actions/update-customer.d.cts.map +1 -1
  303. package/dist/actions/update-customer.d.mts +3 -6
  304. package/dist/actions/update-customer.d.mts.map +1 -1
  305. package/dist/actions/update-customer.mjs +1 -0
  306. package/dist/actions/update-customer.mjs.map +1 -1
  307. package/dist/actions/update-invoice.cjs +1 -0
  308. package/dist/actions/update-invoice.cjs.map +1 -1
  309. package/dist/actions/update-invoice.d.cts +3 -69
  310. package/dist/actions/update-invoice.d.cts.map +1 -1
  311. package/dist/actions/update-invoice.d.mts +3 -69
  312. package/dist/actions/update-invoice.d.mts.map +1 -1
  313. package/dist/actions/update-invoice.mjs +1 -0
  314. package/dist/actions/update-invoice.mjs.map +1 -1
  315. package/dist/actions/update-item.cjs +1 -0
  316. package/dist/actions/update-item.cjs.map +1 -1
  317. package/dist/actions/update-item.d.cts +3 -6
  318. package/dist/actions/update-item.d.cts.map +1 -1
  319. package/dist/actions/update-item.d.mts +3 -6
  320. package/dist/actions/update-item.d.mts.map +1 -1
  321. package/dist/actions/update-item.mjs +1 -0
  322. package/dist/actions/update-item.mjs.map +1 -1
  323. package/dist/actions/update-order.cjs +1 -0
  324. package/dist/actions/update-order.cjs.map +1 -1
  325. package/dist/actions/update-order.d.cts +3 -4
  326. package/dist/actions/update-order.d.cts.map +1 -1
  327. package/dist/actions/update-order.d.mts +3 -4
  328. package/dist/actions/update-order.d.mts.map +1 -1
  329. package/dist/actions/update-order.mjs +1 -0
  330. package/dist/actions/update-order.mjs.map +1 -1
  331. package/dist/actions/update-payment-link.cjs +1 -0
  332. package/dist/actions/update-payment-link.cjs.map +1 -1
  333. package/dist/actions/update-payment-link.d.cts +3 -8
  334. package/dist/actions/update-payment-link.d.cts.map +1 -1
  335. package/dist/actions/update-payment-link.d.mts +3 -8
  336. package/dist/actions/update-payment-link.d.mts.map +1 -1
  337. package/dist/actions/update-payment-link.mjs +1 -0
  338. package/dist/actions/update-payment-link.mjs.map +1 -1
  339. package/dist/app.cjs +9 -2
  340. package/dist/app.cjs.map +1 -1
  341. package/dist/app.d.cts +8 -1
  342. package/dist/app.d.cts.map +1 -1
  343. package/dist/app.d.mts +8 -1
  344. package/dist/app.d.mts.map +1 -1
  345. package/dist/app.mjs +6 -2
  346. package/dist/app.mjs.map +1 -1
  347. package/dist/index.d.cts +1 -1
  348. package/dist/index.d.mts +1 -1
  349. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-orders.d.ts
@@ -27,14 +29,7 @@ declare const RazorpayFetchOrdersOutput: z.ZodObject<{
27
29
  }, z.core.$loose>>;
28
30
  entity: z.ZodNullable<z.ZodString>;
29
31
  }, z.core.$loose>;
30
- declare const razorpayFetchOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
31
- skip?: number | undefined;
32
- count?: number | undefined;
33
- receipt?: string | undefined;
34
- authorized?: number | undefined;
35
- to_timestamp?: number | undefined;
36
- from_timestamp?: number | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
+ declare const razorpayFetchOrders: AppAction<typeof RazorpayFetchOrdersInput, typeof RazorpayFetchOrdersOutput, typeof razorpay.credential>;
38
33
  //#endregion
39
34
  export { razorpayFetchOrders };
40
35
  //# sourceMappingURL=fetch-orders.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-orders.d.cts","names":[],"sources":["../../src/actions/fetch-orders.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"fetch-orders.d.cts","names":[],"sources":["../../src/actions/fetch-orders.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-orders.d.ts
@@ -27,14 +29,7 @@ declare const RazorpayFetchOrdersOutput: z.ZodObject<{
27
29
  }, z.core.$loose>>;
28
30
  entity: z.ZodNullable<z.ZodString>;
29
31
  }, z.core.$loose>;
30
- declare const razorpayFetchOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
31
- skip?: number | undefined;
32
- count?: number | undefined;
33
- receipt?: string | undefined;
34
- authorized?: number | undefined;
35
- to_timestamp?: number | undefined;
36
- from_timestamp?: number | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
+ declare const razorpayFetchOrders: AppAction<typeof RazorpayFetchOrdersInput, typeof RazorpayFetchOrdersOutput, typeof razorpay.credential>;
38
33
  //#endregion
39
34
  export { razorpayFetchOrders };
40
35
  //# sourceMappingURL=fetch-orders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-orders.d.mts","names":[],"sources":["../../src/actions/fetch-orders.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"fetch-orders.d.mts","names":[],"sources":["../../src/actions/fetch-orders.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/fetch-orders.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-orders.mjs","names":[],"sources":["../../src/actions/fetch-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchOrdersInput = z.object({\n skip: z.number().int().default(0).describe(\"Number of orders to skip for pagination (default: 0)\").optional(),\n count: z.number().int().default(10).describe(\"Number of orders to fetch (default: 10, max: 100)\").optional(),\n receipt: z.string().describe(\"Filter orders by specific receipt reference number\").optional(),\n authorized: z.number().int().describe(\"Filter orders by authorization status. Set to 1 for authorized orders, 0 for unauthorized orders\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created before this time\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created after this time\").optional(),\n}).describe(\"Request model for fetching all orders with pagination and filtering support.\");\nconst RazorpayFetchOrders_OrderItemSchema = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Represents a single order in the Razorpay system.\");\nexport const RazorpayFetchOrdersOutput = z.object({\n count: z.number().int().describe(\"Number of order records in this response\").nullable(),\n items: z.array(RazorpayFetchOrders_OrderItemSchema).describe(\"List of order objects\"),\n entity: z.string().describe(\"Entity type, always 'collection'\").nullable(),\n}).passthrough().describe(\"Response model for fetching all orders.\");\n\nexport const razorpayFetchOrders = action(\"RAZORPAY_FETCH_ORDERS\", {\n slug: \"razorpay-fetch-orders\",\n name: \"Fetch All Orders\",\n description: \"Tool to retrieve a paginated list of all orders from Razorpay. Use when you need to fetch multiple orders, filter by date range, receipt, or authorization status.\",\n input: RazorpayFetchOrdersInput,\n output: RazorpayFetchOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC3H,QAAQ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src/actions/fetch-orders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchOrdersInput = z.object({\n skip: z.number().int().default(0).describe(\"Number of orders to skip for pagination (default: 0)\").optional(),\n count: z.number().int().default(10).describe(\"Number of orders to fetch (default: 10, max: 100)\").optional(),\n receipt: z.string().describe(\"Filter orders by specific receipt reference number\").optional(),\n authorized: z.number().int().describe(\"Filter orders by authorization status. Set to 1 for authorized orders, 0 for unauthorized orders\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created before this time\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created after this time\").optional(),\n}).describe(\"Request model for fetching all orders with pagination and filtering support.\");\nconst RazorpayFetchOrders_OrderItemSchema = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Represents a single order in the Razorpay system.\");\nexport const RazorpayFetchOrdersOutput = z.object({\n count: z.number().int().describe(\"Number of order records in this response\").nullable(),\n items: z.array(RazorpayFetchOrders_OrderItemSchema).describe(\"List of order objects\"),\n entity: z.string().describe(\"Entity type, always 'collection'\").nullable(),\n}).passthrough().describe(\"Response model for fetching all orders.\");\n\nexport const razorpayFetchOrders: AppAction<\n typeof RazorpayFetchOrdersInput,\n typeof RazorpayFetchOrdersOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ORDERS\", {\n slug: \"razorpay-fetch-orders\",\n name: \"Fetch All Orders\",\n description: \"Tool to retrieve a paginated list of all orders from Razorpay. Use when you need to fetch multiple orders, filter by date range, receipt, or authorization status.\",\n input: RazorpayFetchOrdersInput,\n output: RazorpayFetchOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,E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F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/fetch-payments-by-order.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-payments-by-order.cjs","names":["z","action"],"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,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACjG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,QAAQA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CAAuC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-payments-by-order.cjs","names":["z","action"],"sources":["../../src/actions/fetch-payments-by-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayFetchPaymentsByOrderInput,\n typeof RazorpayFetchPaymentsByOrderOutput,\n typeof razorpay.credential\n> = 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":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACjG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,QAAQ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CAAC,CAAC,SAAS,oDAAoD;CAC5H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,+BAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-payments-by-order.d.ts
@@ -41,9 +43,7 @@ declare const RazorpayFetchPaymentsByOrderOutput: z.ZodObject<{
41
43
  }, z.core.$loose>>;
42
44
  entity: z.ZodNullable<z.ZodString>;
43
45
  }, z.core.$loose>;
44
- declare const razorpayFetchPaymentsByOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- order_id: string;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const razorpayFetchPaymentsByOrder: AppAction<typeof RazorpayFetchPaymentsByOrderInput, typeof RazorpayFetchPaymentsByOrderOutput, typeof razorpay.credential>;
47
47
  //#endregion
48
48
  export { razorpayFetchPaymentsByOrder };
49
49
  //# sourceMappingURL=fetch-payments-by-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-payments-by-order.d.cts","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAoCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"fetch-payments-by-order.d.cts","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAoCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-payments-by-order.d.ts
@@ -41,9 +43,7 @@ declare const RazorpayFetchPaymentsByOrderOutput: z.ZodObject<{
41
43
  }, z.core.$loose>>;
42
44
  entity: z.ZodNullable<z.ZodString>;
43
45
  }, z.core.$loose>;
44
- declare const razorpayFetchPaymentsByOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- order_id: string;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const razorpayFetchPaymentsByOrder: AppAction<typeof RazorpayFetchPaymentsByOrderInput, typeof RazorpayFetchPaymentsByOrderOutput, typeof razorpay.credential>;
47
47
  //#endregion
48
48
  export { razorpayFetchPaymentsByOrder };
49
49
  //# sourceMappingURL=fetch-payments-by-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-payments-by-order.d.mts","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAoCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"fetch-payments-by-order.d.mts","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAoCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/fetch-payments-by-order.ts
@@ -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.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,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,QAAQ,EAAE,OAAO,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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAO/E,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,OAAO,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,oDAAoD;EAC5H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-payments-by-order.mjs","names":[],"sources":["../../src/actions/fetch-payments-by-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayFetchPaymentsByOrderInput,\n typeof RazorpayFetchPaymentsByOrderOutput,\n typeof razorpay.credential\n> = 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":";;;;AAMA,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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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAO/E,MAAa,+BAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,OAAO,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,oDAAoD;EAC5H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/fetch-refunds.ts
@@ -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.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,IA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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,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayFetchRefundsInput,\n typeof RazorpayFetchRefundsOutput,\n typeof razorpay.credential\n> = 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":";;;;AAMA,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,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keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-refunds.d.ts
@@ -28,12 +30,7 @@ declare const RazorpayFetchRefundsOutput: z.ZodObject<{
28
30
  }, z.core.$loose>>>>;
29
31
  entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  }, 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]>;
33
+ declare const razorpayFetchRefunds: AppAction<typeof RazorpayFetchRefundsInput, typeof RazorpayFetchRefundsOutput, typeof razorpay.credential>;
37
34
  //#endregion
38
35
  export { razorpayFetchRefunds };
39
36
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"fetch-refunds.d.cts","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-refunds.d.ts
@@ -28,12 +30,7 @@ declare const RazorpayFetchRefundsOutput: z.ZodObject<{
28
30
  }, z.core.$loose>>>>;
29
31
  entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  }, 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]>;
33
+ declare const razorpayFetchRefunds: AppAction<typeof RazorpayFetchRefundsInput, typeof RazorpayFetchRefundsOutput, typeof razorpay.credential>;
37
34
  //#endregion
38
35
  export { razorpayFetchRefunds };
39
36
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"fetch-refunds.d.mts","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/fetch-refunds.ts
@@ -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.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,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OA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,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"}
1
+ {"version":3,"file":"fetch-refunds.mjs","names":[],"sources":["../../src/actions/fetch-refunds.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayFetchRefundsInput,\n typeof RazorpayFetchRefundsOutput,\n typeof razorpay.credential\n> = 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":";;;;AAMA,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,C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Y,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAe,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAOnF,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfwC,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,2CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-contact.ts
@@ -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.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":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EAClJ,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,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,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,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
+ {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayGetContactInput,\n typeof RazorpayGetContactOutput,\n typeof razorpay.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EAClJ,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,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,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-contact.d.ts
@@ -17,9 +19,7 @@ declare const RazorpayGetContactOutput: z.ZodObject<{
17
19
  created_at: z.ZodNullable<z.ZodNumber>;
18
20
  reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  }, 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]>;
22
+ declare const razorpayGetContact: AppAction<typeof RazorpayGetContactInput, typeof RazorpayGetContactOutput, typeof razorpay.credential>;
23
23
  //#endregion
24
24
  export { razorpayGetContact };
25
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,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-contact.d.ts
@@ -17,9 +19,7 @@ declare const RazorpayGetContactOutput: z.ZodObject<{
17
19
  created_at: z.ZodNullable<z.ZodNumber>;
18
20
  reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  }, 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]>;
22
+ declare const razorpayGetContact: AppAction<typeof RazorpayGetContactInput, typeof RazorpayGetContactOutput, typeof razorpay.credential>;
23
23
  //#endregion
24
24
  export { razorpayGetContact };
25
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,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const razorpayGetContact = action("RAZORPAY_GET_CONTACT", {
@@ -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.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"}
1
+ {"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayGetContactInput,\n typeof RazorpayGetContactOutput,\n typeof razorpay.credential\n> = 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":";;;AAuBA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBqC,EAAE,OAAO,EAC9C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EAClJ,CAAC,CAAC,CAAC,SAAS,yCAuBH;CACP,QAvBsC,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,4CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-customer.ts
@@ -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.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,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"}
1
+ {"version":3,"file":"get-customer.cjs","names":["z","action"],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayGetCustomerInput,\n typeof RazorpayGetCustomerOutput,\n typeof razorpay.credential\n> = 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":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,EACpJ,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,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,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customer.d.ts
@@ -14,9 +16,7 @@ declare const RazorpayGetCustomerOutput: z.ZodObject<{
14
16
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
18
  }, 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]>;
19
+ declare const razorpayGetCustomer: AppAction<typeof RazorpayGetCustomerInput, typeof RazorpayGetCustomerOutput, typeof razorpay.credential>;
20
20
  //#endregion
21
21
  export { razorpayGetCustomer };
22
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,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-customer.d.cts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { razorpay } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customer.d.ts
@@ -14,9 +16,7 @@ declare const RazorpayGetCustomerOutput: z.ZodObject<{
14
16
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
18
  }, 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]>;
19
+ declare const razorpayGetCustomer: AppAction<typeof RazorpayGetCustomerInput, typeof RazorpayGetCustomerOutput, typeof razorpay.credential>;
20
20
  //#endregion
21
21
  export { razorpayGetCustomer };
22
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,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-customer.d.mts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const razorpayGetCustomer = action("RAZORPAY_GET_CUSTOMER", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.mjs","names":[],"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":";;AAkBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,EACpJ,CAAC,CAAC,CAAC,SAAS,0CAgBH;CACP,QAhBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACpH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer.mjs","names":[],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\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: AppAction<\n typeof RazorpayGetCustomerInput,\n typeof RazorpayGetCustomerOutput,\n typeof razorpay.credential\n> = 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":";;;AAoBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBsC,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,EACpJ,CAAC,CAAC,CAAC,SAAS,0CAoBH;CACP,QApBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACpH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-fund-account.ts