@keystrokehq/razorpay 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/cancel-invoice.cjs +6 -6
  4. package/dist/actions/cancel-invoice.cjs.map +1 -1
  5. package/dist/actions/cancel-invoice.d.cts +99 -3
  6. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  7. package/dist/actions/cancel-invoice.d.mts +99 -3
  8. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  9. package/dist/actions/cancel-invoice.mjs +6 -6
  10. package/dist/actions/cancel-invoice.mjs.map +1 -1
  11. package/dist/actions/cancel-payment-link.cjs +14 -14
  12. package/dist/actions/cancel-payment-link.cjs.map +1 -1
  13. package/dist/actions/cancel-payment-link.d.cts +33 -3
  14. package/dist/actions/cancel-payment-link.d.cts.map +1 -1
  15. package/dist/actions/cancel-payment-link.d.mts +33 -3
  16. package/dist/actions/cancel-payment-link.d.mts.map +1 -1
  17. package/dist/actions/cancel-payment-link.mjs +14 -14
  18. package/dist/actions/cancel-payment-link.mjs.map +1 -1
  19. package/dist/actions/create-an-order.cjs +12 -12
  20. package/dist/actions/create-an-order.cjs.map +1 -1
  21. package/dist/actions/create-an-order.d.cts +27 -3
  22. package/dist/actions/create-an-order.d.cts.map +1 -1
  23. package/dist/actions/create-an-order.d.mts +27 -3
  24. package/dist/actions/create-an-order.d.mts.map +1 -1
  25. package/dist/actions/create-an-order.mjs +12 -12
  26. package/dist/actions/create-an-order.mjs.map +1 -1
  27. package/dist/actions/create-contact.cjs +9 -9
  28. package/dist/actions/create-contact.cjs.map +1 -1
  29. package/dist/actions/create-contact.d.cts +33 -3
  30. package/dist/actions/create-contact.d.cts.map +1 -1
  31. package/dist/actions/create-contact.d.mts +33 -3
  32. package/dist/actions/create-contact.d.mts.map +1 -1
  33. package/dist/actions/create-contact.mjs +9 -9
  34. package/dist/actions/create-contact.mjs.map +1 -1
  35. package/dist/actions/create-customer.cjs +5 -5
  36. package/dist/actions/create-customer.cjs.map +1 -1
  37. package/dist/actions/create-customer.d.cts +24 -3
  38. package/dist/actions/create-customer.d.cts.map +1 -1
  39. package/dist/actions/create-customer.d.mts +24 -3
  40. package/dist/actions/create-customer.d.mts.map +1 -1
  41. package/dist/actions/create-customer.mjs +5 -5
  42. package/dist/actions/create-customer.mjs.map +1 -1
  43. package/dist/actions/create-invoice.cjs +15 -15
  44. package/dist/actions/create-invoice.cjs.map +1 -1
  45. package/dist/actions/create-invoice.d.cts +222 -3
  46. package/dist/actions/create-invoice.d.cts.map +1 -1
  47. package/dist/actions/create-invoice.d.mts +222 -3
  48. package/dist/actions/create-invoice.d.mts.map +1 -1
  49. package/dist/actions/create-invoice.mjs +15 -15
  50. package/dist/actions/create-invoice.mjs.map +1 -1
  51. package/dist/actions/create-item.cjs +7 -7
  52. package/dist/actions/create-item.cjs.map +1 -1
  53. package/dist/actions/create-item.d.cts +29 -3
  54. package/dist/actions/create-item.d.cts.map +1 -1
  55. package/dist/actions/create-item.d.mts +29 -3
  56. package/dist/actions/create-item.d.mts.map +1 -1
  57. package/dist/actions/create-item.mjs +7 -7
  58. package/dist/actions/create-item.mjs.map +1 -1
  59. package/dist/actions/create-payment-link.cjs +10 -10
  60. package/dist/actions/create-payment-link.cjs.map +1 -1
  61. package/dist/actions/create-payment-link.d.cts +76 -3
  62. package/dist/actions/create-payment-link.d.cts.map +1 -1
  63. package/dist/actions/create-payment-link.d.mts +76 -3
  64. package/dist/actions/create-payment-link.d.mts.map +1 -1
  65. package/dist/actions/create-payment-link.mjs +10 -10
  66. package/dist/actions/create-payment-link.mjs.map +1 -1
  67. package/dist/actions/delete-invoice.cjs +1 -1
  68. package/dist/actions/delete-invoice.cjs.map +1 -1
  69. package/dist/actions/delete-invoice.d.cts +9 -3
  70. package/dist/actions/delete-invoice.d.cts.map +1 -1
  71. package/dist/actions/delete-invoice.d.mts +9 -3
  72. package/dist/actions/delete-invoice.d.mts.map +1 -1
  73. package/dist/actions/delete-invoice.mjs +1 -1
  74. package/dist/actions/delete-invoice.mjs.map +1 -1
  75. package/dist/actions/delete-item.cjs +1 -1
  76. package/dist/actions/delete-item.cjs.map +1 -1
  77. package/dist/actions/delete-item.d.cts +9 -3
  78. package/dist/actions/delete-item.d.cts.map +1 -1
  79. package/dist/actions/delete-item.d.mts +9 -3
  80. package/dist/actions/delete-item.d.mts.map +1 -1
  81. package/dist/actions/delete-item.mjs +1 -1
  82. package/dist/actions/delete-item.mjs.map +1 -1
  83. package/dist/actions/fetch-a-payment-link.cjs +6 -6
  84. package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
  85. package/dist/actions/fetch-a-payment-link.d.cts +43 -3
  86. package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
  87. package/dist/actions/fetch-a-payment-link.d.mts +43 -3
  88. package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
  89. package/dist/actions/fetch-a-payment-link.mjs +6 -6
  90. package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
  91. package/dist/actions/fetch-all-customers.cjs +9 -9
  92. package/dist/actions/fetch-all-customers.cjs.map +1 -1
  93. package/dist/actions/fetch-all-customers.d.cts +22 -3
  94. package/dist/actions/fetch-all-customers.d.cts.map +1 -1
  95. package/dist/actions/fetch-all-customers.d.mts +22 -3
  96. package/dist/actions/fetch-all-customers.d.mts.map +1 -1
  97. package/dist/actions/fetch-all-customers.mjs +9 -9
  98. package/dist/actions/fetch-all-customers.mjs.map +1 -1
  99. package/dist/actions/fetch-all-invoices.cjs +14 -14
  100. package/dist/actions/fetch-all-invoices.cjs.map +1 -1
  101. package/dist/actions/fetch-all-invoices.d.cts +115 -3
  102. package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
  103. package/dist/actions/fetch-all-invoices.d.mts +115 -3
  104. package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
  105. package/dist/actions/fetch-all-invoices.mjs +14 -14
  106. package/dist/actions/fetch-all-invoices.mjs.map +1 -1
  107. package/dist/actions/fetch-all-payment-links.cjs +9 -9
  108. package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
  109. package/dist/actions/fetch-all-payment-links.d.cts +45 -3
  110. package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
  111. package/dist/actions/fetch-all-payment-links.d.mts +45 -3
  112. package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
  113. package/dist/actions/fetch-all-payment-links.mjs +9 -9
  114. package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
  115. package/dist/actions/fetch-all-payments.cjs +15 -15
  116. package/dist/actions/fetch-all-payments.cjs.map +1 -1
  117. package/dist/actions/fetch-all-payments.d.cts +50 -3
  118. package/dist/actions/fetch-all-payments.d.cts.map +1 -1
  119. package/dist/actions/fetch-all-payments.d.mts +50 -3
  120. package/dist/actions/fetch-all-payments.d.mts.map +1 -1
  121. package/dist/actions/fetch-all-payments.mjs +15 -15
  122. package/dist/actions/fetch-all-payments.mjs.map +1 -1
  123. package/dist/actions/fetch-all-refunds-for-a-payment.cjs +3 -3
  124. package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
  125. package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +35 -3
  126. package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -1
  127. package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +35 -3
  128. package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
  129. package/dist/actions/fetch-all-refunds-for-a-payment.mjs +3 -3
  130. package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
  131. package/dist/actions/fetch-invoice-by-id.cjs +12 -12
  132. package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
  133. package/dist/actions/fetch-invoice-by-id.d.cts +97 -3
  134. package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
  135. package/dist/actions/fetch-invoice-by-id.d.mts +97 -3
  136. package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
  137. package/dist/actions/fetch-invoice-by-id.mjs +12 -12
  138. package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
  139. package/dist/actions/fetch-orders-by-id.cjs +10 -10
  140. package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
  141. package/dist/actions/fetch-orders-by-id.d.cts +20 -3
  142. package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
  143. package/dist/actions/fetch-orders-by-id.d.mts +20 -3
  144. package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
  145. package/dist/actions/fetch-orders-by-id.mjs +10 -10
  146. package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
  147. package/dist/actions/fetch-orders.cjs +13 -13
  148. package/dist/actions/fetch-orders.cjs.map +1 -1
  149. package/dist/actions/fetch-orders.d.cts +34 -3
  150. package/dist/actions/fetch-orders.d.cts.map +1 -1
  151. package/dist/actions/fetch-orders.d.mts +34 -3
  152. package/dist/actions/fetch-orders.d.mts.map +1 -1
  153. package/dist/actions/fetch-orders.mjs +13 -13
  154. package/dist/actions/fetch-orders.mjs.map +1 -1
  155. package/dist/actions/fetch-payments-by-order.cjs +11 -11
  156. package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
  157. package/dist/actions/fetch-payments-by-order.d.cts +43 -3
  158. package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
  159. package/dist/actions/fetch-payments-by-order.d.mts +43 -3
  160. package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
  161. package/dist/actions/fetch-payments-by-order.mjs +11 -11
  162. package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
  163. package/dist/actions/fetch-refunds.cjs +3 -3
  164. package/dist/actions/fetch-refunds.cjs.map +1 -1
  165. package/dist/actions/fetch-refunds.d.cts +33 -3
  166. package/dist/actions/fetch-refunds.d.cts.map +1 -1
  167. package/dist/actions/fetch-refunds.d.mts +33 -3
  168. package/dist/actions/fetch-refunds.d.mts.map +1 -1
  169. package/dist/actions/fetch-refunds.mjs +3 -3
  170. package/dist/actions/fetch-refunds.mjs.map +1 -1
  171. package/dist/actions/get-contact.cjs +8 -8
  172. package/dist/actions/get-contact.cjs.map +1 -1
  173. package/dist/actions/get-contact.d.cts +19 -3
  174. package/dist/actions/get-contact.d.cts.map +1 -1
  175. package/dist/actions/get-contact.d.mts +19 -3
  176. package/dist/actions/get-contact.d.mts.map +1 -1
  177. package/dist/actions/get-contact.mjs +8 -8
  178. package/dist/actions/get-contact.mjs.map +1 -1
  179. package/dist/actions/get-customer.cjs +4 -4
  180. package/dist/actions/get-customer.cjs.map +1 -1
  181. package/dist/actions/get-customer.d.cts +16 -3
  182. package/dist/actions/get-customer.d.cts.map +1 -1
  183. package/dist/actions/get-customer.d.mts +16 -3
  184. package/dist/actions/get-customer.d.mts.map +1 -1
  185. package/dist/actions/get-customer.mjs +4 -4
  186. package/dist/actions/get-customer.mjs.map +1 -1
  187. package/dist/actions/get-fund-account.cjs +11 -11
  188. package/dist/actions/get-fund-account.cjs.map +1 -1
  189. package/dist/actions/get-fund-account.d.cts +32 -3
  190. package/dist/actions/get-fund-account.d.cts.map +1 -1
  191. package/dist/actions/get-fund-account.d.mts +32 -3
  192. package/dist/actions/get-fund-account.d.mts.map +1 -1
  193. package/dist/actions/get-fund-account.mjs +11 -11
  194. package/dist/actions/get-fund-account.mjs.map +1 -1
  195. package/dist/actions/get-item.cjs +10 -10
  196. package/dist/actions/get-item.cjs.map +1 -1
  197. package/dist/actions/get-item.d.cts +24 -3
  198. package/dist/actions/get-item.d.cts.map +1 -1
  199. package/dist/actions/get-item.d.mts +24 -3
  200. package/dist/actions/get-item.d.mts.map +1 -1
  201. package/dist/actions/get-item.mjs +10 -10
  202. package/dist/actions/get-item.mjs.map +1 -1
  203. package/dist/actions/get-settlement-recon.cjs +2 -2
  204. package/dist/actions/get-settlement-recon.cjs.map +1 -1
  205. package/dist/actions/get-settlement-recon.d.cts +28 -3
  206. package/dist/actions/get-settlement-recon.d.cts.map +1 -1
  207. package/dist/actions/get-settlement-recon.d.mts +28 -3
  208. package/dist/actions/get-settlement-recon.d.mts.map +1 -1
  209. package/dist/actions/get-settlement-recon.mjs +2 -2
  210. package/dist/actions/get-settlement-recon.mjs.map +1 -1
  211. package/dist/actions/get-transfer-reversals.cjs +2 -2
  212. package/dist/actions/get-transfer-reversals.cjs.map +1 -1
  213. package/dist/actions/get-transfer-reversals.d.cts +32 -3
  214. package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
  215. package/dist/actions/get-transfer-reversals.d.mts +32 -3
  216. package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
  217. package/dist/actions/get-transfer-reversals.mjs +2 -2
  218. package/dist/actions/get-transfer-reversals.mjs.map +1 -1
  219. package/dist/actions/issue-an-invoice.cjs +12 -12
  220. package/dist/actions/issue-an-invoice.cjs.map +1 -1
  221. package/dist/actions/issue-an-invoice.d.cts +97 -3
  222. package/dist/actions/issue-an-invoice.d.cts.map +1 -1
  223. package/dist/actions/issue-an-invoice.d.mts +97 -3
  224. package/dist/actions/issue-an-invoice.d.mts.map +1 -1
  225. package/dist/actions/issue-an-invoice.mjs +12 -12
  226. package/dist/actions/issue-an-invoice.mjs.map +1 -1
  227. package/dist/actions/list-customer-tokens.cjs +10 -10
  228. package/dist/actions/list-customer-tokens.cjs.map +1 -1
  229. package/dist/actions/list-customer-tokens.d.cts +40 -3
  230. package/dist/actions/list-customer-tokens.d.cts.map +1 -1
  231. package/dist/actions/list-customer-tokens.d.mts +40 -3
  232. package/dist/actions/list-customer-tokens.d.mts.map +1 -1
  233. package/dist/actions/list-customer-tokens.mjs +10 -10
  234. package/dist/actions/list-customer-tokens.mjs.map +1 -1
  235. package/dist/actions/list-disputes.cjs +3 -3
  236. package/dist/actions/list-disputes.cjs.map +1 -1
  237. package/dist/actions/list-disputes.d.cts +46 -3
  238. package/dist/actions/list-disputes.d.cts.map +1 -1
  239. package/dist/actions/list-disputes.d.mts +46 -3
  240. package/dist/actions/list-disputes.d.mts.map +1 -1
  241. package/dist/actions/list-disputes.mjs +3 -3
  242. package/dist/actions/list-disputes.mjs.map +1 -1
  243. package/dist/actions/list-fund-accounts.cjs +5 -5
  244. package/dist/actions/list-fund-accounts.cjs.map +1 -1
  245. package/dist/actions/list-fund-accounts.d.cts +40 -3
  246. package/dist/actions/list-fund-accounts.d.cts.map +1 -1
  247. package/dist/actions/list-fund-accounts.d.mts +40 -3
  248. package/dist/actions/list-fund-accounts.d.mts.map +1 -1
  249. package/dist/actions/list-fund-accounts.mjs +5 -5
  250. package/dist/actions/list-fund-accounts.mjs.map +1 -1
  251. package/dist/actions/list-fund-validations.cjs +6 -6
  252. package/dist/actions/list-fund-validations.cjs.map +1 -1
  253. package/dist/actions/list-fund-validations.d.cts +45 -3
  254. package/dist/actions/list-fund-validations.d.cts.map +1 -1
  255. package/dist/actions/list-fund-validations.d.mts +45 -3
  256. package/dist/actions/list-fund-validations.d.mts.map +1 -1
  257. package/dist/actions/list-fund-validations.mjs +6 -6
  258. package/dist/actions/list-fund-validations.mjs.map +1 -1
  259. package/dist/actions/list-items.cjs +2 -2
  260. package/dist/actions/list-items.cjs.map +1 -1
  261. package/dist/actions/list-items.d.cts +36 -3
  262. package/dist/actions/list-items.d.cts.map +1 -1
  263. package/dist/actions/list-items.d.mts +36 -3
  264. package/dist/actions/list-items.d.mts.map +1 -1
  265. package/dist/actions/list-items.mjs +2 -2
  266. package/dist/actions/list-items.mjs.map +1 -1
  267. package/dist/actions/list-payment-downtimes.cjs.map +1 -1
  268. package/dist/actions/list-payment-downtimes.d.cts +3 -3
  269. package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
  270. package/dist/actions/list-payment-downtimes.d.mts +3 -3
  271. package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
  272. package/dist/actions/list-payment-downtimes.mjs.map +1 -1
  273. package/dist/actions/notify-payment-link.cjs +1 -1
  274. package/dist/actions/notify-payment-link.cjs.map +1 -1
  275. package/dist/actions/notify-payment-link.d.cts +14 -3
  276. package/dist/actions/notify-payment-link.d.cts.map +1 -1
  277. package/dist/actions/notify-payment-link.d.mts +14 -3
  278. package/dist/actions/notify-payment-link.d.mts.map +1 -1
  279. package/dist/actions/notify-payment-link.mjs +1 -1
  280. package/dist/actions/notify-payment-link.mjs.map +1 -1
  281. package/dist/actions/send-or-resend-notification.cjs +1 -1
  282. package/dist/actions/send-or-resend-notification.cjs.map +1 -1
  283. package/dist/actions/send-or-resend-notification.d.cts +14 -3
  284. package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
  285. package/dist/actions/send-or-resend-notification.d.mts +14 -3
  286. package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
  287. package/dist/actions/send-or-resend-notification.mjs +1 -1
  288. package/dist/actions/send-or-resend-notification.mjs.map +1 -1
  289. package/dist/actions/update-contact.cjs +9 -9
  290. package/dist/actions/update-contact.cjs.map +1 -1
  291. package/dist/actions/update-contact.d.cts +35 -3
  292. package/dist/actions/update-contact.d.cts.map +1 -1
  293. package/dist/actions/update-contact.d.mts +35 -3
  294. package/dist/actions/update-contact.d.mts.map +1 -1
  295. package/dist/actions/update-contact.mjs +9 -9
  296. package/dist/actions/update-contact.mjs.map +1 -1
  297. package/dist/actions/update-customer.cjs +8 -8
  298. package/dist/actions/update-customer.cjs.map +1 -1
  299. package/dist/actions/update-customer.d.cts +22 -3
  300. package/dist/actions/update-customer.d.cts.map +1 -1
  301. package/dist/actions/update-customer.d.mts +22 -3
  302. package/dist/actions/update-customer.d.mts.map +1 -1
  303. package/dist/actions/update-customer.mjs +8 -8
  304. package/dist/actions/update-customer.mjs.map +1 -1
  305. package/dist/actions/update-invoice.cjs +14 -14
  306. package/dist/actions/update-invoice.cjs.map +1 -1
  307. package/dist/actions/update-invoice.d.cts +228 -3
  308. package/dist/actions/update-invoice.d.cts.map +1 -1
  309. package/dist/actions/update-invoice.d.mts +228 -3
  310. package/dist/actions/update-invoice.d.mts.map +1 -1
  311. package/dist/actions/update-invoice.mjs +14 -14
  312. package/dist/actions/update-invoice.mjs.map +1 -1
  313. package/dist/actions/update-item.cjs +10 -10
  314. package/dist/actions/update-item.cjs.map +1 -1
  315. package/dist/actions/update-item.d.cts +30 -3
  316. package/dist/actions/update-item.d.cts.map +1 -1
  317. package/dist/actions/update-item.d.mts +30 -3
  318. package/dist/actions/update-item.d.mts.map +1 -1
  319. package/dist/actions/update-item.mjs +10 -10
  320. package/dist/actions/update-item.mjs.map +1 -1
  321. package/dist/actions/update-order.cjs +12 -12
  322. package/dist/actions/update-order.cjs.map +1 -1
  323. package/dist/actions/update-order.d.cts +22 -3
  324. package/dist/actions/update-order.d.cts.map +1 -1
  325. package/dist/actions/update-order.d.mts +22 -3
  326. package/dist/actions/update-order.d.mts.map +1 -1
  327. package/dist/actions/update-order.mjs +12 -12
  328. package/dist/actions/update-order.mjs.map +1 -1
  329. package/dist/actions/update-payment-link.cjs +12 -12
  330. package/dist/actions/update-payment-link.cjs.map +1 -1
  331. package/dist/actions/update-payment-link.d.cts +52 -3
  332. package/dist/actions/update-payment-link.d.cts.map +1 -1
  333. package/dist/actions/update-payment-link.d.mts +52 -3
  334. package/dist/actions/update-payment-link.d.mts.map +1 -1
  335. package/dist/actions/update-payment-link.mjs +12 -12
  336. package/dist/actions/update-payment-link.mjs.map +1 -1
  337. package/dist/catalog.cjs +13 -1
  338. package/dist/catalog.cjs.map +1 -1
  339. package/dist/catalog.d.cts +12 -0
  340. package/dist/catalog.d.mts +12 -0
  341. package/dist/catalog.mjs +13 -1
  342. package/dist/catalog.mjs.map +1 -1
  343. package/package.json +2 -2
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/cancel-payment-link.d.ts
4
- declare const RazorpayCancelPaymentLinkInput: z.ZodTypeAny;
5
- declare const RazorpayCancelPaymentLinkOutput: z.ZodTypeAny;
6
- declare const razorpayCancelPaymentLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayCancelPaymentLinkInput: z.ZodObject<{
5
+ plink_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RazorpayCancelPaymentLinkOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
+ amount: z.ZodNullable<z.ZodNumber>;
11
+ notify: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ currency: z.ZodNullable<z.ZodString>;
15
+ customer: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
16
+ payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
17
+ upi_link: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
+ expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ reminders: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
20
+ short_url: z.ZodNullable<z.ZodString>;
21
+ created_at: z.ZodNullable<z.ZodNumber>;
22
+ expired_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ amount_paid: z.ZodNullable<z.ZodNumber>;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ accept_partial: z.ZodNullable<z.ZodBoolean>;
30
+ callback_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ reminder_enable: z.ZodNullable<z.ZodBoolean>;
32
+ first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ }, z.core.$loose>;
34
+ declare const razorpayCancelPaymentLink: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ plink_id: string;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { razorpayCancelPaymentLink };
9
39
  //# sourceMappingURL=cancel-payment-link.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-payment-link.d.cts","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEW;AAAA,cAC7C,+BAAA,EAAiC,CAAA,CAAE,UA0BkF;AAAA,cAErH,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"cancel-payment-link.d.cts","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/cancel-payment-link.d.ts
4
- declare const RazorpayCancelPaymentLinkInput: z.ZodTypeAny;
5
- declare const RazorpayCancelPaymentLinkOutput: z.ZodTypeAny;
6
- declare const razorpayCancelPaymentLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayCancelPaymentLinkInput: z.ZodObject<{
5
+ plink_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RazorpayCancelPaymentLinkOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
+ amount: z.ZodNullable<z.ZodNumber>;
11
+ notify: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ currency: z.ZodNullable<z.ZodString>;
15
+ customer: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
16
+ payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
17
+ upi_link: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
+ expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ reminders: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
20
+ short_url: z.ZodNullable<z.ZodString>;
21
+ created_at: z.ZodNullable<z.ZodNumber>;
22
+ expired_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ amount_paid: z.ZodNullable<z.ZodNumber>;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ accept_partial: z.ZodNullable<z.ZodBoolean>;
30
+ callback_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ reminder_enable: z.ZodNullable<z.ZodBoolean>;
32
+ first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ }, z.core.$loose>;
34
+ declare const razorpayCancelPaymentLink: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ plink_id: string;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { razorpayCancelPaymentLink };
9
39
  //# sourceMappingURL=cancel-payment-link.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-payment-link.d.mts","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEW;AAAA,cAC7C,+BAAA,EAAiC,CAAA,CAAE,UA0BkF;AAAA,cAErH,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"cancel-payment-link.d.mts","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,32 +6,32 @@ const razorpayCancelPaymentLink = action("RAZORPAY_CANCEL_PAYMENT_LINK", {
6
6
  description: "Tool to cancel a specific payment link. Use when you need to cancel an active payment link before it expires. The payment link cannot be used after cancellation.",
7
7
  input: z.object({ plink_id: z.string().describe("The unique identifier of the payment link to cancel") }).describe("Request model for canceling a payment link."),
8
8
  output: z.object({
9
- id: z.string().describe("Unique identifier of the payment link"),
10
- notes: z.object({}).describe("Key-value pairs for storing additional information").nullable().optional(),
11
- amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR)"),
12
- notify: z.object({}).describe("Notification preferences (email, sms)").nullable().optional(),
13
- status: z.string().describe("Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)"),
9
+ id: z.string().describe("Unique identifier of the payment link").nullable(),
10
+ notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for storing additional information").nullable().optional(),
11
+ amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR)").nullable(),
12
+ notify: z.record(z.string(), z.unknown()).describe("Notification preferences (email, sms)").nullable().optional(),
13
+ status: z.string().describe("Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)").nullable(),
14
14
  user_id: z.string().describe("Merchant's user ID").nullable().optional(),
15
- currency: z.string().describe("ISO 4217 currency code (e.g., INR, USD)"),
16
- customer: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),
15
+ currency: z.string().describe("ISO 4217 currency code (e.g., INR, USD)").nullable(),
16
+ customer: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
17
17
  payments: z.array(z.string()).describe("List of payment IDs associated with the payment link").nullable().optional(),
18
18
  upi_link: z.boolean().describe("Whether this is a UPI payment link").nullable().optional(),
19
19
  expire_by: z.number().int().describe("Unix timestamp when the payment link expires").nullable().optional(),
20
- reminders: z.union([z.array(z.string()), z.object({})]).nullable().optional(),
21
- short_url: z.string().describe("Shortened URL for the payment link"),
22
- created_at: z.number().int().describe("Unix timestamp when the payment link was created"),
20
+ reminders: z.union([z.array(z.string()), z.record(z.string(), z.unknown())]).nullable().optional(),
21
+ short_url: z.string().describe("Shortened URL for the payment link").nullable(),
22
+ created_at: z.number().int().describe("Unix timestamp when the payment link was created").nullable(),
23
23
  expired_at: z.number().int().describe("Unix timestamp when the payment link expired").nullable().optional(),
24
24
  updated_at: z.number().int().describe("Unix timestamp when the payment link was last updated").nullable().optional(),
25
- amount_paid: z.number().int().describe("Amount already paid through this payment link"),
25
+ amount_paid: z.number().int().describe("Amount already paid through this payment link").nullable(),
26
26
  description: z.string().describe("Description of the payment link").nullable().optional(),
27
27
  callback_url: z.string().describe("URL to which callback is made after payment").nullable().optional(),
28
28
  cancelled_at: z.number().int().describe("Unix timestamp when the payment link was cancelled").nullable().optional(),
29
29
  reference_id: z.string().describe("Reference ID for the payment link").nullable().optional(),
30
- accept_partial: z.boolean().describe("Whether partial payments are allowed"),
30
+ accept_partial: z.boolean().describe("Whether partial payments are allowed").nullable(),
31
31
  callback_method: z.string().describe("HTTP method to be used for callback").nullable().optional(),
32
- reminder_enable: z.boolean().describe("Whether payment reminders are enabled"),
32
+ reminder_enable: z.boolean().describe("Whether payment reminders are enabled").nullable(),
33
33
  first_min_partial_amount: z.number().int().describe("Minimum amount of first partial payment in smallest currency unit").nullable().optional()
34
- }).describe("Response model for cancel payment link operation.\n\nReturns the cancelled payment link object with updated status.")
34
+ }).passthrough().describe("Response model for cancel payment link operation.\n\nReturns the cancelled payment link object with updated status.")
35
35
  });
36
36
  //#endregion
37
37
  export { razorpayCancelPaymentLink };
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-payment-link.mjs","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCancelPaymentLinkInput: z.ZodTypeAny = z.object({\n plink_id: z.string().describe(\"The unique identifier of the payment link to cancel\"),\n}).describe(\"Request model for canceling a payment link.\");\nexport const RazorpayCancelPaymentLinkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the payment link\"),\n notes: z.object({}).describe(\"Key-value pairs for storing additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR)\"),\n notify: z.object({}).describe(\"Notification preferences (email, sms)\").nullable().optional(),\n status: z.string().describe(\"Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)\"),\n user_id: z.string().describe(\"Merchant's user ID\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., INR, USD)\"),\n customer: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n payments: z.array(z.string()).describe(\"List of payment IDs associated with the payment link\").nullable().optional(),\n upi_link: z.boolean().describe(\"Whether this is a UPI payment link\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link expires\").nullable().optional(),\n reminders: z.union([z.array(z.string()), z.object({})]).nullable().optional(),\n short_url: z.string().describe(\"Shortened URL for the payment link\"),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created\"),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired\").nullable().optional(),\n updated_at: z.number().int().describe(\"Unix timestamp when the payment link was last updated\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount already paid through this payment link\"),\n description: z.string().describe(\"Description of the payment link\").nullable().optional(),\n callback_url: z.string().describe(\"URL to which callback is made after payment\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled\").nullable().optional(),\n reference_id: z.string().describe(\"Reference ID for the payment link\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are allowed\"),\n callback_method: z.string().describe(\"HTTP method to be used for callback\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled\"),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount of first partial payment in smallest currency unit\").nullable().optional(),\n}).describe(\"Response model for cancel payment link operation.\\n\\nReturns the cancelled payment link object with updated status.\");\n\nexport const razorpayCancelPaymentLink = action(\"RAZORPAY_CANCEL_PAYMENT_LINK\", {\n slug: \"razorpay-cancel-payment-link\",\n name: \"Cancel Payment Link\",\n description: \"Tool to cancel a specific payment link. Use when you need to cancel an active payment link before it expires. The payment link cannot be used after cancellation.\",\n input: RazorpayCancelPaymentLinkInput,\n output: RazorpayCancelPaymentLinkOutput,\n});\n"],"mappings":";;AAmCA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnC0D,EAAE,OAAO,EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACrF,CAAC,CAAC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,CAAC,SAAS,kDAAkD;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;EAC7E,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,SAAS,qHAOF;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-payment-link.mjs","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCancelPaymentLinkInput = z.object({\n plink_id: z.string().describe(\"The unique identifier of the payment link to cancel\"),\n}).describe(\"Request model for canceling a payment link.\");\nexport const RazorpayCancelPaymentLinkOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment link\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR)\").nullable(),\n notify: z.record(z.string(), z.unknown()).describe(\"Notification preferences (email, sms)\").nullable().optional(),\n status: z.string().describe(\"Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)\").nullable(),\n user_id: z.string().describe(\"Merchant's user ID\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., INR, USD)\").nullable(),\n customer: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n payments: z.array(z.string()).describe(\"List of payment IDs associated with the payment link\").nullable().optional(),\n upi_link: z.boolean().describe(\"Whether this is a UPI payment link\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link expires\").nullable().optional(),\n reminders: z.union([z.array(z.string()), z.record(z.string(), z.unknown())]).nullable().optional(),\n short_url: z.string().describe(\"Shortened URL for the payment link\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired\").nullable().optional(),\n updated_at: z.number().int().describe(\"Unix timestamp when the payment link was last updated\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount already paid through this payment link\").nullable(),\n description: z.string().describe(\"Description of the payment link\").nullable().optional(),\n callback_url: z.string().describe(\"URL to which callback is made after payment\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled\").nullable().optional(),\n reference_id: z.string().describe(\"Reference ID for the payment link\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are allowed\").nullable(),\n callback_method: z.string().describe(\"HTTP method to be used for callback\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled\").nullable(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount of first partial payment in smallest currency unit\").nullable().optional(),\n}).passthrough().describe(\"Response model for cancel payment link operation.\\n\\nReturns the cancelled payment link object with updated status.\");\n\nexport const razorpayCancelPaymentLink = action(\"RAZORPAY_CANCEL_PAYMENT_LINK\", {\n slug: \"razorpay-cancel-payment-link\",\n name: \"Cancel Payment Link\",\n description: \"Tool to cancel a specific payment link. Use when you need to cancel an active payment link before it expires. The payment link cannot be used after cancellation.\",\n input: RazorpayCancelPaymentLinkInput,\n output: RazorpayCancelPaymentLinkOutput,\n});\n"],"mappings":";;AAmCA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnC4C,EAAE,OAAO,EACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACrF,CAAC,CAAC,CAAC,SAAS,6CAiCH;CACP,QAjC6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACpH,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,MAAM,CAAC,E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,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACxF,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qHAOhB;AACV,CAAC"}
@@ -2,25 +2,25 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/create-an-order.ts
4
4
  const RazorpayCreateAnOrderInput = zod.z.object({
5
- notes: zod.z.object({}).describe("Key-value pairs for additional information (max 15 pairs)").optional(),
5
+ notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for additional information (max 15 pairs)").optional(),
6
6
  amount: zod.z.number().int().describe("Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise."),
7
7
  receipt: zod.z.string().describe("Receipt number for internal reference (max 40 characters)").optional(),
8
8
  currency: zod.z.string().describe("ISO 4217 currency code (uppercase, 3 letters)"),
9
9
  partial_payment: zod.z.boolean().default(false).describe("Whether to enable partial payments for this order").optional()
10
10
  }).describe("Request model for creating a Razorpay order.");
11
11
  const RazorpayCreateAnOrderOutput = zod.z.object({
12
- id: zod.z.string().describe("Unique identifier for the order"),
13
- notes: zod.z.object({}).describe("Additional information").nullable().optional(),
14
- amount: zod.z.number().int().describe("Order amount in currency subunits"),
15
- entity: zod.z.string().describe("Entity type"),
16
- status: zod.z.string().describe("Order status (created, attempted, or paid)"),
12
+ id: zod.z.string().describe("Unique identifier for the order").nullable(),
13
+ notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional information").nullable().optional(),
14
+ amount: zod.z.number().int().describe("Order amount in currency subunits").nullable(),
15
+ entity: zod.z.string().describe("Entity type").nullable(),
16
+ status: zod.z.string().describe("Order status (created, attempted, or paid)").nullable(),
17
17
  receipt: zod.z.string().describe("Receipt number").nullable().optional(),
18
- attempts: zod.z.number().int().describe("Number of payment attempts for this order"),
19
- currency: zod.z.string().describe("Currency code"),
20
- amount_due: zod.z.number().int().describe("Amount remaining to be paid"),
21
- created_at: zod.z.number().int().describe("Unix timestamp of order creation"),
22
- amount_paid: zod.z.number().int().describe("Amount paid against the order")
23
- }).describe("Response model for a created Razorpay order.");
18
+ attempts: zod.z.number().int().describe("Number of payment attempts for this order").nullable(),
19
+ currency: zod.z.string().describe("Currency code").nullable(),
20
+ amount_due: zod.z.number().int().describe("Amount remaining to be paid").nullable(),
21
+ created_at: zod.z.number().int().describe("Unix timestamp of order creation").nullable(),
22
+ amount_paid: zod.z.number().int().describe("Amount paid against the order").nullable()
23
+ }).passthrough().describe("Response model for a created Razorpay order.");
24
24
  const razorpayCreateAnOrder = require_action.action("RAZORPAY_CREATE_AN_ORDER", {
25
25
  slug: "razorpay-create-an-order",
26
26
  name: "Create an Order",
@@ -1 +1 @@
1
- {"version":3,"file":"create-an-order.cjs","names":["z","action"],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput: z.ZodTypeAny = z.object({\n notes: z.object({}).describe(\"Key-value pairs for additional information (max 15 pairs)\").optional(),\n amount: z.number().int().describe(\"Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.\"),\n receipt: z.string().describe(\"Receipt number for internal reference (max 40 characters)\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (uppercase, 3 letters)\"),\n partial_payment: z.boolean().default(false).describe(\"Whether to enable partial payments for this order\").optional(),\n}).describe(\"Request model for creating a Razorpay order.\");\nexport const RazorpayCreateAnOrderOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the order\"),\n notes: z.object({}).describe(\"Additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in currency subunits\"),\n entity: z.string().describe(\"Entity type\"),\n status: z.string().describe(\"Order status (created, attempted, or paid)\"),\n receipt: z.string().describe(\"Receipt number\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts for this order\"),\n currency: z.string().describe(\"Currency code\"),\n amount_due: z.number().int().describe(\"Amount remaining to be paid\"),\n created_at: z.number().int().describe(\"Unix timestamp of order creation\"),\n amount_paid: z.number().int().describe(\"Amount paid against the order\"),\n}).describe(\"Response model for a created Razorpay order.\");\n\nexport const razorpayCreateAnOrder = action(\"RAZORPAY_CREATE_AN_ORDER\", {\n slug: \"razorpay-create-an-order\",\n name: \"Create an Order\",\n description: \"Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.\",\n input: RazorpayCreateAnOrderInput,\n output: RazorpayCreateAnOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;CAC3J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACzC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;AACxE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-an-order.cjs","names":["z","action"],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput = z.object({\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for additional information (max 15 pairs)\").optional(),\n amount: z.number().int().describe(\"Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.\"),\n receipt: z.string().describe(\"Receipt number for internal reference (max 40 characters)\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (uppercase, 3 letters)\"),\n partial_payment: z.boolean().default(false).describe(\"Whether to enable partial payments for this order\").optional(),\n}).describe(\"Request model for creating a Razorpay order.\");\nexport const RazorpayCreateAnOrderOutput = z.object({\n id: z.string().describe(\"Unique identifier for the order\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in currency subunits\").nullable(),\n entity: z.string().describe(\"Entity type\").nullable(),\n status: z.string().describe(\"Order status (created, attempted, or paid)\").nullable(),\n receipt: z.string().describe(\"Receipt number\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts for this order\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n amount_due: z.number().int().describe(\"Amount remaining to be paid\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of order creation\").nullable(),\n amount_paid: z.number().int().describe(\"Amount paid against the order\").nullable(),\n}).passthrough().describe(\"Response model for a created Razorpay order.\");\n\nexport const razorpayCreateAnOrder = action(\"RAZORPAY_CREATE_AN_ORDER\", {\n slug: \"razorpay-create-an-order\",\n name: \"Create an Order\",\n description: \"Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.\",\n input: RazorpayCreateAnOrderInput,\n output: RazorpayCreateAnOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GA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A,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-an-order.d.ts
4
- declare const RazorpayCreateAnOrderInput: z.ZodTypeAny;
5
- declare const RazorpayCreateAnOrderOutput: z.ZodTypeAny;
6
- declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayCreateAnOrderInput: z.ZodObject<{
5
+ notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ amount: z.ZodNumber;
7
+ receipt: z.ZodOptional<z.ZodString>;
8
+ currency: z.ZodString;
9
+ partial_payment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
+ }, z.core.$strip>;
11
+ declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ amount: z.ZodNullable<z.ZodNumber>;
15
+ entity: z.ZodNullable<z.ZodString>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ attempts: z.ZodNullable<z.ZodNumber>;
19
+ currency: z.ZodNullable<z.ZodString>;
20
+ amount_due: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodNumber>;
22
+ amount_paid: z.ZodNullable<z.ZodNumber>;
23
+ }, z.core.$loose>;
24
+ declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ amount: number;
26
+ currency: string;
27
+ notes?: Record<string, unknown> | undefined;
28
+ receipt?: string | undefined;
29
+ partial_payment?: boolean | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { razorpayCreateAnOrder };
9
33
  //# sourceMappingURL=create-an-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-an-order.d.cts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMgB;AAAA,cAC9C,2BAAA,EAA6B,CAAA,CAAE,UAYe;AAAA,cAE9C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-an-order.d.cts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;UAMhC,MAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-an-order.d.ts
4
- declare const RazorpayCreateAnOrderInput: z.ZodTypeAny;
5
- declare const RazorpayCreateAnOrderOutput: z.ZodTypeAny;
6
- declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayCreateAnOrderInput: z.ZodObject<{
5
+ notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ amount: z.ZodNumber;
7
+ receipt: z.ZodOptional<z.ZodString>;
8
+ currency: z.ZodString;
9
+ partial_payment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
+ }, z.core.$strip>;
11
+ declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ amount: z.ZodNullable<z.ZodNumber>;
15
+ entity: z.ZodNullable<z.ZodString>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ attempts: z.ZodNullable<z.ZodNumber>;
19
+ currency: z.ZodNullable<z.ZodString>;
20
+ amount_due: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodNumber>;
22
+ amount_paid: z.ZodNullable<z.ZodNumber>;
23
+ }, z.core.$loose>;
24
+ declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ amount: number;
26
+ currency: string;
27
+ notes?: Record<string, unknown> | undefined;
28
+ receipt?: string | undefined;
29
+ partial_payment?: boolean | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { razorpayCreateAnOrder };
9
33
  //# sourceMappingURL=create-an-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-an-order.d.mts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMgB;AAAA,cAC9C,2BAAA,EAA6B,CAAA,CAAE,UAYe;AAAA,cAE9C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-an-order.d.mts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;UAMhC,MAAA"}
@@ -5,25 +5,25 @@ const razorpayCreateAnOrder = action("RAZORPAY_CREATE_AN_ORDER", {
5
5
  name: "Create an Order",
6
6
  description: "Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.",
7
7
  input: z.object({
8
- notes: z.object({}).describe("Key-value pairs for additional information (max 15 pairs)").optional(),
8
+ notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for additional information (max 15 pairs)").optional(),
9
9
  amount: z.number().int().describe("Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise."),
10
10
  receipt: z.string().describe("Receipt number for internal reference (max 40 characters)").optional(),
11
11
  currency: z.string().describe("ISO 4217 currency code (uppercase, 3 letters)"),
12
12
  partial_payment: z.boolean().default(false).describe("Whether to enable partial payments for this order").optional()
13
13
  }).describe("Request model for creating a Razorpay order."),
14
14
  output: z.object({
15
- id: z.string().describe("Unique identifier for the order"),
16
- notes: z.object({}).describe("Additional information").nullable().optional(),
17
- amount: z.number().int().describe("Order amount in currency subunits"),
18
- entity: z.string().describe("Entity type"),
19
- status: z.string().describe("Order status (created, attempted, or paid)"),
15
+ id: z.string().describe("Unique identifier for the order").nullable(),
16
+ notes: z.record(z.string(), z.unknown()).describe("Additional information").nullable().optional(),
17
+ amount: z.number().int().describe("Order amount in currency subunits").nullable(),
18
+ entity: z.string().describe("Entity type").nullable(),
19
+ status: z.string().describe("Order status (created, attempted, or paid)").nullable(),
20
20
  receipt: z.string().describe("Receipt number").nullable().optional(),
21
- attempts: z.number().int().describe("Number of payment attempts for this order"),
22
- currency: z.string().describe("Currency code"),
23
- amount_due: z.number().int().describe("Amount remaining to be paid"),
24
- created_at: z.number().int().describe("Unix timestamp of order creation"),
25
- amount_paid: z.number().int().describe("Amount paid against the order")
26
- }).describe("Response model for a created Razorpay order.")
21
+ attempts: z.number().int().describe("Number of payment attempts for this order").nullable(),
22
+ currency: z.string().describe("Currency code").nullable(),
23
+ amount_due: z.number().int().describe("Amount remaining to be paid").nullable(),
24
+ created_at: z.number().int().describe("Unix timestamp of order creation").nullable(),
25
+ amount_paid: z.number().int().describe("Amount paid against the order").nullable()
26
+ }).passthrough().describe("Response model for a created Razorpay order.")
27
27
  });
28
28
  //#endregion
29
29
  export { razorpayCreateAnOrder };
@@ -1 +1 @@
1
- {"version":3,"file":"create-an-order.mjs","names":[],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput: z.ZodTypeAny = z.object({\n notes: z.object({}).describe(\"Key-value pairs for additional information (max 15 pairs)\").optional(),\n amount: z.number().int().describe(\"Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.\"),\n receipt: z.string().describe(\"Receipt number for internal reference (max 40 characters)\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (uppercase, 3 letters)\"),\n partial_payment: z.boolean().default(false).describe(\"Whether to enable partial payments for this order\").optional(),\n}).describe(\"Request model for creating a Razorpay order.\");\nexport const RazorpayCreateAnOrderOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the order\"),\n notes: z.object({}).describe(\"Additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in currency subunits\"),\n entity: z.string().describe(\"Entity type\"),\n status: z.string().describe(\"Order status (created, attempted, or paid)\"),\n receipt: z.string().describe(\"Receipt number\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts for this order\"),\n currency: z.string().describe(\"Currency code\"),\n amount_due: z.number().int().describe(\"Amount remaining to be paid\"),\n created_at: z.number().int().describe(\"Unix timestamp of order creation\"),\n amount_paid: z.number().int().describe(\"Amount paid against the order\"),\n}).describe(\"Response model for a created Razorpay order.\");\n\nexport const razorpayCreateAnOrder = action(\"RAZORPAY_CREATE_AN_ORDER\", {\n slug: \"razorpay-create-an-order\",\n name: \"Create an Order\",\n description: \"Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.\",\n input: RazorpayCreateAnOrderInput,\n output: RazorpayCreateAnOrderOutput,\n});\n"],"mappings":";;AAyBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;EAC3J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC7E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,8CAmBH;CACP,QAnBuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACzC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EACnE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CACxE,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-an-order.mjs","names":[],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput = z.object({\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for additional information (max 15 pairs)\").optional(),\n amount: z.number().int().describe(\"Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.\"),\n receipt: z.string().describe(\"Receipt number for internal reference (max 40 characters)\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (uppercase, 3 letters)\"),\n partial_payment: z.boolean().default(false).describe(\"Whether to enable partial payments for this order\").optional(),\n}).describe(\"Request model for creating a Razorpay order.\");\nexport const RazorpayCreateAnOrderOutput = z.object({\n id: z.string().describe(\"Unique identifier for the order\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in currency subunits\").nullable(),\n entity: z.string().describe(\"Entity type\").nullable(),\n status: z.string().describe(\"Order status (created, attempted, or paid)\").nullable(),\n receipt: z.string().describe(\"Receipt number\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts for this order\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n amount_due: z.number().int().describe(\"Amount remaining to be paid\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of order creation\").nullable(),\n amount_paid: z.number().int().describe(\"Amount paid against the order\").nullable(),\n}).passthrough().describe(\"Response model for a created Razorpay order.\");\n\nexport const razorpayCreateAnOrder = action(\"RAZORPAY_CREATE_AN_ORDER\", {\n slug: \"razorpay-create-an-order\",\n name: \"Create an Order\",\n description: \"Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.\",\n input: RazorpayCreateAnOrderInput,\n output: RazorpayCreateAnOrderOutput,\n});\n"],"mappings":";;AAyBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACxH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;EAC3J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC7E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,8CAmBH;CACP,QAnByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -9,23 +9,23 @@ const RazorpayCreateContactInput = zod.z.object({
9
9
  "customer"
10
10
  ]).describe("Type of contact - employee, vendor, or customer"),
11
11
  email: zod.z.string().describe("Email address of the contact").optional(),
12
- notes: zod.z.object({}).describe("Key-value pairs for storing additional information about the contact").optional(),
12
+ notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for storing additional information about the contact").optional(),
13
13
  contact: zod.z.string().describe("Phone number of the contact").optional(),
14
14
  reference_id: zod.z.string().describe("A unique reference identifier for the contact in your system").optional()
15
15
  }).describe("Request model for creating a contact in RazorpayX.");
16
16
  const RazorpayCreateContactOutput = zod.z.object({
17
- id: zod.z.string().describe("Unique identifier for the contact"),
18
- name: zod.z.string().describe("Name of the contact"),
19
- type: zod.z.string().describe("Type of contact"),
17
+ id: zod.z.string().describe("Unique identifier for the contact").nullable(),
18
+ name: zod.z.string().describe("Name of the contact").nullable(),
19
+ type: zod.z.string().describe("Type of contact").nullable(),
20
20
  email: zod.z.string().describe("Email address of the contact").nullable().optional(),
21
- notes: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional(),
22
- active: zod.z.boolean().describe("Whether the contact is active"),
23
- entity: zod.z.string().describe("Entity type"),
21
+ notes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
22
+ active: zod.z.boolean().describe("Whether the contact is active").nullable(),
23
+ entity: zod.z.string().describe("Entity type").nullable(),
24
24
  contact: zod.z.string().describe("Phone number of the contact").nullable().optional(),
25
25
  batch_id: zod.z.string().describe("Batch identifier if the contact was created in a batch").nullable().optional(),
26
- created_at: zod.z.number().int().describe("Unix timestamp of contact creation"),
26
+ created_at: zod.z.number().int().describe("Unix timestamp of contact creation").nullable(),
27
27
  reference_id: zod.z.string().describe("Reference identifier for the contact").nullable().optional()
28
- }).describe("Response model for a created RazorpayX contact.");
28
+ }).passthrough().describe("Response model for a created RazorpayX contact.");
29
29
  const razorpayCreateContact = require_action.action("RAZORPAY_CREATE_CONTACT", {
30
30
  slug: "razorpay-create-contact",
31
31
  name: "Create Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateContactInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the contact\"),\n type: z.enum([\"employee\", \"vendor\", \"customer\"]).describe(\"Type of contact - employee, vendor, or customer\"),\n email: z.string().describe(\"Email address of the contact\").optional(),\n notes: z.object({}).describe(\"Key-value pairs for storing additional information about the contact\").optional(),\n contact: z.string().describe(\"Phone number of the contact\").optional(),\n reference_id: z.string().describe(\"A unique reference identifier for the contact in your system\").optional(),\n}).describe(\"Request model for creating a contact in RazorpayX.\");\nexport const RazorpayCreateContactOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact\"),\n name: z.string().describe(\"Name of the contact\"),\n type: z.string().describe(\"Type of contact\"),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n notes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active\"),\n entity: z.string().describe(\"Entity type\"),\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 of contact creation\"),\n reference_id: z.string().describe(\"Reference identifier for the contact\").nullable().optional(),\n}).describe(\"Response model for a created RazorpayX contact.\");\n\nexport const razorpayCreateContact = action(\"RAZORPAY_CREATE_CONTACT\", {\n slug: \"razorpay-create-contact\",\n name: \"Create Contact\",\n description: \"Tool to create a contact for payouts in RazorpayX. Use when you need to add a new contact (employee, vendor, or customer) for making payouts.\",\n input: RazorpayCreateContactInput,\n output: RazorpayCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,iDAAiD;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,C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CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateContactInput = z.object({\n name: z.string().describe(\"Name of the contact\"),\n type: z.enum([\"employee\", \"vendor\", \"customer\"]).describe(\"Type of contact - employee, vendor, or customer\"),\n email: z.string().describe(\"Email address of the contact\").optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the contact\").optional(),\n contact: z.string().describe(\"Phone number of the contact\").optional(),\n reference_id: z.string().describe(\"A unique reference identifier for the contact in your system\").optional(),\n}).describe(\"Request model for creating a contact in RazorpayX.\");\nexport const RazorpayCreateContactOutput = 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\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active\").nullable(),\n entity: z.string().describe(\"Entity type\").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 of contact creation\").nullable(),\n reference_id: z.string().describe(\"Reference identifier for the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created RazorpayX contact.\");\n\nexport const razorpayCreateContact = action(\"RAZORPAY_CREATE_CONTACT\", {\n slug: \"razorpay-create-contact\",\n name: \"Create Contact\",\n description: \"Tool to create a contact for payouts in RazorpayX. Use when you need to add a new contact (employee, vendor, or customer) for making payouts.\",\n input: RazorpayCreateContactInput,\n output: RazorpayCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,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SAAS,aAAa,CAAC,CAAC,SAAS;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contact.d.ts
4
- declare const RazorpayCreateContactInput: z.ZodTypeAny;
5
- declare const RazorpayCreateContactOutput: z.ZodTypeAny;
6
- declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayCreateContactInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ customer: "customer";
8
+ employee: "employee";
9
+ vendor: "vendor";
10
+ }>;
11
+ email: z.ZodOptional<z.ZodString>;
12
+ notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ contact: z.ZodOptional<z.ZodString>;
14
+ reference_id: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const RazorpayCreateContactOutput: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ type: z.ZodNullable<z.ZodString>;
20
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
22
+ active: z.ZodNullable<z.ZodBoolean>;
23
+ entity: z.ZodNullable<z.ZodString>;
24
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ created_at: z.ZodNullable<z.ZodNumber>;
27
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$loose>;
29
+ declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ name: string;
31
+ type: "customer" | "employee" | "vendor";
32
+ email?: string | undefined;
33
+ notes?: Record<string, unknown> | undefined;
34
+ contact?: string | undefined;
35
+ reference_id?: string | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { razorpayCreateContact };
9
39
  //# sourceMappingURL=create-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOsB;AAAA,cACpD,2BAAA,EAA6B,CAAA,CAAE,UAYkB;AAAA,cAEjD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;;UAMhC,MAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contact.d.ts
4
- declare const RazorpayCreateContactInput: z.ZodTypeAny;
5
- declare const RazorpayCreateContactOutput: z.ZodTypeAny;
6
- declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayCreateContactInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ customer: "customer";
8
+ employee: "employee";
9
+ vendor: "vendor";
10
+ }>;
11
+ email: z.ZodOptional<z.ZodString>;
12
+ notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ contact: z.ZodOptional<z.ZodString>;
14
+ reference_id: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const RazorpayCreateContactOutput: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ type: z.ZodNullable<z.ZodString>;
20
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
22
+ active: z.ZodNullable<z.ZodBoolean>;
23
+ entity: z.ZodNullable<z.ZodString>;
24
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ created_at: z.ZodNullable<z.ZodNumber>;
27
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$loose>;
29
+ declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ name: string;
31
+ type: "customer" | "employee" | "vendor";
32
+ email?: string | undefined;
33
+ notes?: Record<string, unknown> | undefined;
34
+ contact?: string | undefined;
35
+ reference_id?: string | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { razorpayCreateContact };
9
39
  //# sourceMappingURL=create-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOsB;AAAA,cACpD,2BAAA,EAA6B,CAAA,CAAE,UAYkB;AAAA,cAEjD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;;UAMhC,MAAA"}
@@ -12,23 +12,23 @@ const razorpayCreateContact = action("RAZORPAY_CREATE_CONTACT", {
12
12
  "customer"
13
13
  ]).describe("Type of contact - employee, vendor, or customer"),
14
14
  email: z.string().describe("Email address of the contact").optional(),
15
- notes: z.object({}).describe("Key-value pairs for storing additional information about the contact").optional(),
15
+ notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for storing additional information about the contact").optional(),
16
16
  contact: z.string().describe("Phone number of the contact").optional(),
17
17
  reference_id: z.string().describe("A unique reference identifier for the contact in your system").optional()
18
18
  }).describe("Request model for creating a contact in RazorpayX."),
19
19
  output: z.object({
20
- id: z.string().describe("Unique identifier for the contact"),
21
- name: z.string().describe("Name of the contact"),
22
- type: z.string().describe("Type of contact"),
20
+ id: z.string().describe("Unique identifier for the contact").nullable(),
21
+ name: z.string().describe("Name of the contact").nullable(),
22
+ type: z.string().describe("Type of contact").nullable(),
23
23
  email: z.string().describe("Email address of the contact").nullable().optional(),
24
- notes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),
25
- active: z.boolean().describe("Whether the contact is active"),
26
- entity: z.string().describe("Entity type"),
24
+ notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
25
+ active: z.boolean().describe("Whether the contact is active").nullable(),
26
+ entity: z.string().describe("Entity type").nullable(),
27
27
  contact: z.string().describe("Phone number of the contact").nullable().optional(),
28
28
  batch_id: z.string().describe("Batch identifier if the contact was created in a batch").nullable().optional(),
29
- created_at: z.number().int().describe("Unix timestamp of contact creation"),
29
+ created_at: z.number().int().describe("Unix timestamp of contact creation").nullable(),
30
30
  reference_id: z.string().describe("Reference identifier for the contact").nullable().optional()
31
- }).describe("Response model for a created RazorpayX contact.")
31
+ }).passthrough().describe("Response model for a created RazorpayX contact.")
32
32
  });
33
33
  //#endregion
34
34
  export { razorpayCreateContact };