@keystrokehq/paypal 0.1.3 → 0.1.5

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 (637) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs +1 -0
  4. package/dist/actions/activate-plan.cjs.map +1 -1
  5. package/dist/actions/activate-plan.d.cts +3 -3
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +3 -3
  8. package/dist/actions/activate-plan.d.mts.map +1 -1
  9. package/dist/actions/activate-plan.mjs +1 -0
  10. package/dist/actions/activate-plan.mjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.cjs +1 -0
  12. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.cts +3 -21
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +3 -21
  16. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  17. package/dist/actions/add-batch-trackers.mjs +1 -0
  18. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  19. package/dist/actions/authorize-order.cjs +1 -0
  20. package/dist/actions/authorize-order.cjs.map +1 -1
  21. package/dist/actions/authorize-order.d.cts +3 -11
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +3 -11
  24. package/dist/actions/authorize-order.d.mts.map +1 -1
  25. package/dist/actions/authorize-order.mjs +1 -0
  26. package/dist/actions/authorize-order.mjs.map +1 -1
  27. package/dist/actions/cancel-invoice.cjs +1 -0
  28. package/dist/actions/cancel-invoice.cjs.map +1 -1
  29. package/dist/actions/cancel-invoice.d.cts +3 -8
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +3 -8
  32. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  33. package/dist/actions/cancel-invoice.mjs +1 -0
  34. package/dist/actions/cancel-invoice.mjs.map +1 -1
  35. package/dist/actions/cancel-reminders.cjs +1 -0
  36. package/dist/actions/cancel-reminders.cjs.map +1 -1
  37. package/dist/actions/cancel-reminders.d.cts +3 -3
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +3 -3
  40. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  41. package/dist/actions/cancel-reminders.mjs +1 -0
  42. package/dist/actions/cancel-reminders.mjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.cjs +1 -0
  44. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.cts +5 -11
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +5 -11
  48. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  49. package/dist/actions/capture-subscription-payment.mjs +1 -0
  50. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  51. package/dist/actions/charge-payment-method.cjs +1 -0
  52. package/dist/actions/charge-payment-method.cjs.map +1 -1
  53. package/dist/actions/charge-payment-method.d.cts +3 -43
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +3 -43
  56. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  57. package/dist/actions/charge-payment-method.mjs +1 -0
  58. package/dist/actions/charge-payment-method.mjs.map +1 -1
  59. package/dist/actions/create-invoice.cjs +1 -0
  60. package/dist/actions/create-invoice.cjs.map +1 -1
  61. package/dist/actions/create-invoice.d.cts +5 -139
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +5 -139
  64. package/dist/actions/create-invoice.d.mts.map +1 -1
  65. package/dist/actions/create-invoice.mjs +1 -0
  66. package/dist/actions/create-invoice.mjs.map +1 -1
  67. package/dist/actions/create-payment.cjs +1 -0
  68. package/dist/actions/create-payment.cjs.map +1 -1
  69. package/dist/actions/create-payment.d.cts +3 -65
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +3 -65
  72. package/dist/actions/create-payment.d.mts.map +1 -1
  73. package/dist/actions/create-payment.mjs +1 -0
  74. package/dist/actions/create-payment.mjs.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.cjs +1 -0
  76. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.d.cts +3 -36
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +3 -36
  80. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  81. package/dist/actions/create-payments-billing-plans.mjs +1 -0
  82. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  83. package/dist/actions/create-plan.cjs +1 -0
  84. package/dist/actions/create-plan.cjs.map +1 -1
  85. package/dist/actions/create-plan.d.cts +3 -37
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +3 -37
  88. package/dist/actions/create-plan.d.mts.map +1 -1
  89. package/dist/actions/create-plan.mjs +1 -0
  90. package/dist/actions/create-plan.mjs.map +1 -1
  91. package/dist/actions/create-product.cjs +1 -0
  92. package/dist/actions/create-product.cjs.map +1 -1
  93. package/dist/actions/create-product.d.cts +3 -9
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +3 -9
  96. package/dist/actions/create-product.d.mts.map +1 -1
  97. package/dist/actions/create-product.mjs +1 -0
  98. package/dist/actions/create-product.mjs.map +1 -1
  99. package/dist/actions/create-subscription.cjs +1 -0
  100. package/dist/actions/create-subscription.cjs.map +1 -1
  101. package/dist/actions/create-subscription.d.cts +3 -76
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +3 -76
  104. package/dist/actions/create-subscription.d.mts.map +1 -1
  105. package/dist/actions/create-subscription.mjs +1 -0
  106. package/dist/actions/create-subscription.mjs.map +1 -1
  107. package/dist/actions/create-template.cjs +1 -0
  108. package/dist/actions/create-template.cjs.map +1 -1
  109. package/dist/actions/create-template.d.cts +3 -107
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +3 -107
  112. package/dist/actions/create-template.d.mts.map +1 -1
  113. package/dist/actions/create-template.mjs +1 -0
  114. package/dist/actions/create-template.mjs.map +1 -1
  115. package/dist/actions/create-web-profile.cjs +1 -0
  116. package/dist/actions/create-web-profile.cjs.map +1 -1
  117. package/dist/actions/create-web-profile.d.cts +3 -20
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +3 -20
  120. package/dist/actions/create-web-profile.d.mts.map +1 -1
  121. package/dist/actions/create-web-profile.mjs +1 -0
  122. package/dist/actions/create-web-profile.mjs.map +1 -1
  123. package/dist/actions/create-webhook-lookup.cjs +1 -0
  124. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  125. package/dist/actions/create-webhook-lookup.d.cts +3 -1
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +3 -1
  128. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  129. package/dist/actions/create-webhook-lookup.mjs +1 -0
  130. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  131. package/dist/actions/create-webhook.cjs +1 -0
  132. package/dist/actions/create-webhook.cjs.map +1 -1
  133. package/dist/actions/create-webhook.d.cts +3 -9
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +3 -9
  136. package/dist/actions/create-webhook.d.mts.map +1 -1
  137. package/dist/actions/create-webhook.mjs +1 -0
  138. package/dist/actions/create-webhook.mjs.map +1 -1
  139. package/dist/actions/deactivate-plan.cjs +1 -0
  140. package/dist/actions/deactivate-plan.cjs.map +1 -1
  141. package/dist/actions/deactivate-plan.d.cts +3 -3
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +3 -3
  144. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  145. package/dist/actions/deactivate-plan.mjs +1 -0
  146. package/dist/actions/deactivate-plan.mjs.map +1 -1
  147. package/dist/actions/delete-external-payment.cjs +1 -0
  148. package/dist/actions/delete-external-payment.cjs.map +1 -1
  149. package/dist/actions/delete-external-payment.d.cts +3 -4
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +3 -4
  152. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  153. package/dist/actions/delete-external-payment.mjs +1 -0
  154. package/dist/actions/delete-external-payment.mjs.map +1 -1
  155. package/dist/actions/delete-invoice-payment-record.cjs +1 -0
  156. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  157. package/dist/actions/delete-invoice-payment-record.d.cts +3 -4
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +3 -4
  160. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  161. package/dist/actions/delete-invoice-payment-record.mjs +1 -0
  162. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  163. package/dist/actions/delete-invoice-refund-record.cjs +1 -0
  164. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  165. package/dist/actions/delete-invoice-refund-record.d.cts +3 -4
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +3 -4
  168. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  169. package/dist/actions/delete-invoice-refund-record.mjs +1 -0
  170. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  171. package/dist/actions/delete-invoice.cjs +1 -0
  172. package/dist/actions/delete-invoice.cjs.map +1 -1
  173. package/dist/actions/delete-invoice.d.cts +3 -3
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +3 -3
  176. package/dist/actions/delete-invoice.d.mts.map +1 -1
  177. package/dist/actions/delete-invoice.mjs +1 -0
  178. package/dist/actions/delete-invoice.mjs.map +1 -1
  179. package/dist/actions/delete-payment-resource.cjs +1 -0
  180. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  181. package/dist/actions/delete-payment-resource.d.cts +3 -3
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +3 -3
  184. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  185. package/dist/actions/delete-payment-resource.mjs +1 -0
  186. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  187. package/dist/actions/delete-template.cjs +1 -0
  188. package/dist/actions/delete-template.cjs.map +1 -1
  189. package/dist/actions/delete-template.d.cts +3 -3
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +3 -3
  192. package/dist/actions/delete-template.d.mts.map +1 -1
  193. package/dist/actions/delete-template.mjs +1 -0
  194. package/dist/actions/delete-template.mjs.map +1 -1
  195. package/dist/actions/delete-web-profile.cjs +1 -0
  196. package/dist/actions/delete-web-profile.cjs.map +1 -1
  197. package/dist/actions/delete-web-profile.d.cts +3 -3
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +3 -3
  200. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  201. package/dist/actions/delete-web-profile.mjs +1 -0
  202. package/dist/actions/delete-web-profile.mjs.map +1 -1
  203. package/dist/actions/delete-webhook.cjs +1 -0
  204. package/dist/actions/delete-webhook.cjs.map +1 -1
  205. package/dist/actions/delete-webhook.d.cts +3 -3
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +3 -3
  208. package/dist/actions/delete-webhook.d.mts.map +1 -1
  209. package/dist/actions/delete-webhook.mjs +1 -0
  210. package/dist/actions/delete-webhook.mjs.map +1 -1
  211. package/dist/actions/fetch-node.cjs +1 -0
  212. package/dist/actions/fetch-node.cjs.map +1 -1
  213. package/dist/actions/fetch-node.d.cts +3 -3
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +3 -3
  216. package/dist/actions/fetch-node.d.mts.map +1 -1
  217. package/dist/actions/fetch-node.mjs +1 -0
  218. package/dist/actions/fetch-node.mjs.map +1 -1
  219. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +1 -0
  220. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  221. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +3 -3
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -3
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  227. package/dist/actions/find-eligible-methods.cjs +1 -0
  228. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  229. package/dist/actions/find-eligible-methods.d.cts +3 -37
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +3 -37
  232. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  233. package/dist/actions/find-eligible-methods.mjs +1 -0
  234. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  235. package/dist/actions/generate-client-token.cjs +1 -0
  236. package/dist/actions/generate-client-token.cjs.map +1 -1
  237. package/dist/actions/generate-client-token.d.cts +3 -1
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +3 -1
  240. package/dist/actions/generate-client-token.d.mts.map +1 -1
  241. package/dist/actions/generate-client-token.mjs +1 -0
  242. package/dist/actions/generate-client-token.mjs.map +1 -1
  243. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -0
  244. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  245. package/dist/actions/generate-next-invoice-number-v2.d.cts +3 -3
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +3 -3
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  251. package/dist/actions/generate-next-invoice-number.cjs +1 -0
  252. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  253. package/dist/actions/generate-next-invoice-number.d.cts +3 -1
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +3 -1
  256. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  257. package/dist/actions/generate-next-invoice-number.mjs +1 -0
  258. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  259. package/dist/actions/generate-qr-code.cjs +1 -0
  260. package/dist/actions/generate-qr-code.cjs.map +1 -1
  261. package/dist/actions/generate-qr-code.d.cts +3 -6
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +3 -6
  264. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  265. package/dist/actions/generate-qr-code.mjs +1 -0
  266. package/dist/actions/generate-qr-code.mjs.map +1 -1
  267. package/dist/actions/get-billing-subscriptions.cjs +1 -0
  268. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  269. package/dist/actions/get-billing-subscriptions.d.cts +3 -8
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +3 -8
  272. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  273. package/dist/actions/get-billing-subscriptions.mjs +1 -0
  274. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  275. package/dist/actions/get-invoice.cjs +1 -0
  276. package/dist/actions/get-invoice.cjs.map +1 -1
  277. package/dist/actions/get-invoice.d.cts +3 -3
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +3 -3
  280. package/dist/actions/get-invoice.d.mts.map +1 -1
  281. package/dist/actions/get-invoice.mjs +1 -0
  282. package/dist/actions/get-invoice.mjs.map +1 -1
  283. package/dist/actions/get-invoicing-invoices-qr-code.cjs +1 -0
  284. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  285. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +3 -6
  286. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  287. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +3 -6
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  289. package/dist/actions/get-invoicing-invoices-qr-code.mjs +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  291. package/dist/actions/get-invoicing-template.cjs +1 -0
  292. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  293. package/dist/actions/get-invoicing-template.d.cts +3 -3
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +3 -3
  296. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  297. package/dist/actions/get-invoicing-template.mjs +1 -0
  298. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  299. package/dist/actions/get-order.cjs +1 -0
  300. package/dist/actions/get-order.cjs.map +1 -1
  301. package/dist/actions/get-order.d.cts +3 -4
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +3 -4
  304. package/dist/actions/get-order.d.mts.map +1 -1
  305. package/dist/actions/get-order.mjs +1 -0
  306. package/dist/actions/get-order.mjs.map +1 -1
  307. package/dist/actions/get-payment.cjs +1 -0
  308. package/dist/actions/get-payment.cjs.map +1 -1
  309. package/dist/actions/get-payment.d.cts +3 -3
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +3 -3
  312. package/dist/actions/get-payment.d.mts.map +1 -1
  313. package/dist/actions/get-payment.mjs +1 -0
  314. package/dist/actions/get-payment.mjs.map +1 -1
  315. package/dist/actions/get-payments-refund.cjs +1 -0
  316. package/dist/actions/get-payments-refund.cjs.map +1 -1
  317. package/dist/actions/get-payments-refund.d.cts +3 -3
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +3 -3
  320. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  321. package/dist/actions/get-payments-refund.mjs +1 -0
  322. package/dist/actions/get-payments-refund.mjs.map +1 -1
  323. package/dist/actions/get-plan.cjs +1 -0
  324. package/dist/actions/get-plan.cjs.map +1 -1
  325. package/dist/actions/get-plan.d.cts +3 -3
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +3 -3
  328. package/dist/actions/get-plan.d.mts.map +1 -1
  329. package/dist/actions/get-plan.mjs +1 -0
  330. package/dist/actions/get-plan.mjs.map +1 -1
  331. package/dist/actions/get-product.cjs +1 -0
  332. package/dist/actions/get-product.cjs.map +1 -1
  333. package/dist/actions/get-product.d.cts +3 -3
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +3 -3
  336. package/dist/actions/get-product.d.mts.map +1 -1
  337. package/dist/actions/get-product.mjs +1 -0
  338. package/dist/actions/get-product.mjs.map +1 -1
  339. package/dist/actions/get-subscription.cjs +1 -0
  340. package/dist/actions/get-subscription.cjs.map +1 -1
  341. package/dist/actions/get-subscription.d.cts +3 -4
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +3 -4
  344. package/dist/actions/get-subscription.d.mts.map +1 -1
  345. package/dist/actions/get-subscription.mjs +1 -0
  346. package/dist/actions/get-subscription.mjs.map +1 -1
  347. package/dist/actions/get-user-info.cjs +1 -0
  348. package/dist/actions/get-user-info.cjs.map +1 -1
  349. package/dist/actions/get-user-info.d.cts +3 -3
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +3 -3
  352. package/dist/actions/get-user-info.d.mts.map +1 -1
  353. package/dist/actions/get-user-info.mjs +1 -0
  354. package/dist/actions/get-user-info.mjs.map +1 -1
  355. package/dist/actions/get-userinfo.cjs +1 -0
  356. package/dist/actions/get-userinfo.cjs.map +1 -1
  357. package/dist/actions/get-userinfo.d.cts +3 -3
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +3 -3
  360. package/dist/actions/get-userinfo.d.mts.map +1 -1
  361. package/dist/actions/get-userinfo.mjs +1 -0
  362. package/dist/actions/get-userinfo.mjs.map +1 -1
  363. package/dist/actions/get-web-profile.cjs +1 -0
  364. package/dist/actions/get-web-profile.cjs.map +1 -1
  365. package/dist/actions/get-web-profile.d.cts +3 -3
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +3 -3
  368. package/dist/actions/get-web-profile.d.mts.map +1 -1
  369. package/dist/actions/get-web-profile.mjs +1 -0
  370. package/dist/actions/get-web-profile.mjs.map +1 -1
  371. package/dist/actions/get-webhook-lookup.cjs +1 -0
  372. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  373. package/dist/actions/get-webhook-lookup.d.cts +3 -3
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +3 -3
  376. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  377. package/dist/actions/get-webhook-lookup.mjs +1 -0
  378. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  379. package/dist/actions/get-webhook.cjs +1 -0
  380. package/dist/actions/get-webhook.cjs.map +1 -1
  381. package/dist/actions/get-webhook.d.cts +3 -3
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +3 -3
  384. package/dist/actions/get-webhook.d.mts.map +1 -1
  385. package/dist/actions/get-webhook.mjs +1 -0
  386. package/dist/actions/get-webhook.mjs.map +1 -1
  387. package/dist/actions/list-disputes.cjs +1 -0
  388. package/dist/actions/list-disputes.cjs.map +1 -1
  389. package/dist/actions/list-disputes.d.cts +3 -9
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +3 -9
  392. package/dist/actions/list-disputes.d.mts.map +1 -1
  393. package/dist/actions/list-disputes.mjs +1 -0
  394. package/dist/actions/list-disputes.mjs.map +1 -1
  395. package/dist/actions/list-invoices.cjs +1 -0
  396. package/dist/actions/list-invoices.cjs.map +1 -1
  397. package/dist/actions/list-invoices.d.cts +3 -6
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +3 -6
  400. package/dist/actions/list-invoices.d.mts.map +1 -1
  401. package/dist/actions/list-invoices.mjs +1 -0
  402. package/dist/actions/list-invoices.mjs.map +1 -1
  403. package/dist/actions/list-legacy-billing-plans.cjs +1 -0
  404. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  405. package/dist/actions/list-legacy-billing-plans.d.cts +3 -8
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +3 -8
  408. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  409. package/dist/actions/list-legacy-billing-plans.mjs +1 -0
  410. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  411. package/dist/actions/list-payments.cjs +1 -0
  412. package/dist/actions/list-payments.cjs.map +1 -1
  413. package/dist/actions/list-payments.d.cts +3 -9
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +3 -9
  416. package/dist/actions/list-payments.d.mts.map +1 -1
  417. package/dist/actions/list-payments.mjs +1 -0
  418. package/dist/actions/list-payments.mjs.map +1 -1
  419. package/dist/actions/list-plans.cjs +1 -0
  420. package/dist/actions/list-plans.cjs.map +1 -1
  421. package/dist/actions/list-plans.d.cts +3 -6
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +3 -6
  424. package/dist/actions/list-plans.d.mts.map +1 -1
  425. package/dist/actions/list-plans.mjs +1 -0
  426. package/dist/actions/list-plans.mjs.map +1 -1
  427. package/dist/actions/list-products.cjs +1 -0
  428. package/dist/actions/list-products.cjs.map +1 -1
  429. package/dist/actions/list-products.d.cts +3 -5
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +3 -5
  432. package/dist/actions/list-products.d.mts.map +1 -1
  433. package/dist/actions/list-products.mjs +1 -0
  434. package/dist/actions/list-products.mjs.map +1 -1
  435. package/dist/actions/list-templates.cjs +1 -0
  436. package/dist/actions/list-templates.cjs.map +1 -1
  437. package/dist/actions/list-templates.d.cts +3 -5
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +3 -5
  440. package/dist/actions/list-templates.d.mts.map +1 -1
  441. package/dist/actions/list-templates.mjs +1 -0
  442. package/dist/actions/list-templates.mjs.map +1 -1
  443. package/dist/actions/list-web-profiles.cjs +1 -0
  444. package/dist/actions/list-web-profiles.cjs.map +1 -1
  445. package/dist/actions/list-web-profiles.d.cts +3 -5
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +3 -5
  448. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  449. package/dist/actions/list-web-profiles.mjs +1 -0
  450. package/dist/actions/list-web-profiles.mjs.map +1 -1
  451. package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -0
  452. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  453. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +3 -3
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -3
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  459. package/dist/actions/list-webhook-event-types.cjs +1 -0
  460. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  461. package/dist/actions/list-webhook-event-types.d.cts +3 -1
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +3 -1
  464. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  465. package/dist/actions/list-webhook-event-types.mjs +1 -0
  466. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  467. package/dist/actions/list-webhook-lookups.cjs +1 -0
  468. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  469. package/dist/actions/list-webhook-lookups.d.cts +3 -1
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +3 -1
  472. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  473. package/dist/actions/list-webhook-lookups.mjs +1 -0
  474. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  475. package/dist/actions/list-webhooks.cjs +1 -0
  476. package/dist/actions/list-webhooks.cjs.map +1 -1
  477. package/dist/actions/list-webhooks.d.cts +3 -3
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +3 -3
  480. package/dist/actions/list-webhooks.d.mts.map +1 -1
  481. package/dist/actions/list-webhooks.mjs +1 -0
  482. package/dist/actions/list-webhooks.mjs.map +1 -1
  483. package/dist/actions/patch-orders.cjs +1 -0
  484. package/dist/actions/patch-orders.cjs.map +1 -1
  485. package/dist/actions/patch-orders.d.cts +3 -10
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +3 -10
  488. package/dist/actions/patch-orders.d.mts.map +1 -1
  489. package/dist/actions/patch-orders.mjs +1 -0
  490. package/dist/actions/patch-orders.mjs.map +1 -1
  491. package/dist/actions/patch-plan.cjs +1 -0
  492. package/dist/actions/patch-plan.cjs.map +1 -1
  493. package/dist/actions/patch-plan.d.cts +3 -10
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +3 -10
  496. package/dist/actions/patch-plan.d.mts.map +1 -1
  497. package/dist/actions/patch-plan.mjs +1 -0
  498. package/dist/actions/patch-plan.mjs.map +1 -1
  499. package/dist/actions/patch-subscription.cjs +1 -0
  500. package/dist/actions/patch-subscription.cjs.map +1 -1
  501. package/dist/actions/patch-subscription.d.cts +3 -10
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +3 -10
  504. package/dist/actions/patch-subscription.d.mts.map +1 -1
  505. package/dist/actions/patch-subscription.mjs +1 -0
  506. package/dist/actions/patch-subscription.mjs.map +1 -1
  507. package/dist/actions/patch-web-profile.cjs +1 -0
  508. package/dist/actions/patch-web-profile.cjs.map +1 -1
  509. package/dist/actions/patch-web-profile.d.cts +3 -10
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +3 -10
  512. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  513. package/dist/actions/patch-web-profile.mjs +1 -0
  514. package/dist/actions/patch-web-profile.mjs.map +1 -1
  515. package/dist/actions/ping-braintree.cjs +1 -0
  516. package/dist/actions/ping-braintree.cjs.map +1 -1
  517. package/dist/actions/ping-braintree.d.cts +3 -1
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +3 -1
  520. package/dist/actions/ping-braintree.d.mts.map +1 -1
  521. package/dist/actions/ping-braintree.mjs +1 -0
  522. package/dist/actions/ping-braintree.mjs.map +1 -1
  523. package/dist/actions/query-braintree-report.cjs +1 -0
  524. package/dist/actions/query-braintree-report.cjs.map +1 -1
  525. package/dist/actions/query-braintree-report.d.cts +3 -6
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +3 -6
  528. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  529. package/dist/actions/query-braintree-report.mjs +1 -0
  530. package/dist/actions/query-braintree-report.mjs.map +1 -1
  531. package/dist/actions/retrieve-payment-resource.cjs +1 -0
  532. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  533. package/dist/actions/retrieve-payment-resource.d.cts +3 -3
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +3 -3
  536. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  537. package/dist/actions/retrieve-payment-resource.mjs +1 -0
  538. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  539. package/dist/actions/search-invoices.cjs +1 -0
  540. package/dist/actions/search-invoices.cjs.map +1 -1
  541. package/dist/actions/search-invoices.d.cts +5 -44
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +5 -44
  544. package/dist/actions/search-invoices.d.mts.map +1 -1
  545. package/dist/actions/search-invoices.mjs +1 -0
  546. package/dist/actions/search-invoices.mjs.map +1 -1
  547. package/dist/actions/send-invoice.cjs +1 -0
  548. package/dist/actions/send-invoice.cjs.map +1 -1
  549. package/dist/actions/send-invoice.d.cts +3 -8
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +3 -8
  552. package/dist/actions/send-invoice.d.mts.map +1 -1
  553. package/dist/actions/send-invoice.mjs +1 -0
  554. package/dist/actions/send-invoice.mjs.map +1 -1
  555. package/dist/actions/simulate-webhook-event.cjs +1 -0
  556. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  557. package/dist/actions/simulate-webhook-event.d.cts +3 -6
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +3 -6
  560. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  561. package/dist/actions/simulate-webhook-event.mjs +1 -0
  562. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  563. package/dist/actions/update-dispute.cjs +1 -0
  564. package/dist/actions/update-dispute.cjs.map +1 -1
  565. package/dist/actions/update-dispute.d.cts +3 -10
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +3 -10
  568. package/dist/actions/update-dispute.d.mts.map +1 -1
  569. package/dist/actions/update-dispute.mjs +1 -0
  570. package/dist/actions/update-dispute.mjs.map +1 -1
  571. package/dist/actions/update-invoice.cjs +1 -0
  572. package/dist/actions/update-invoice.cjs.map +1 -1
  573. package/dist/actions/update-invoice.d.cts +5 -171
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +5 -171
  576. package/dist/actions/update-invoice.d.mts.map +1 -1
  577. package/dist/actions/update-invoice.mjs +1 -0
  578. package/dist/actions/update-invoice.mjs.map +1 -1
  579. package/dist/actions/update-pay-pal-product.cjs +1 -0
  580. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  581. package/dist/actions/update-pay-pal-product.d.cts +3 -10
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +3 -10
  584. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  585. package/dist/actions/update-pay-pal-product.mjs +1 -0
  586. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  587. package/dist/actions/update-pay-pal-webhook.cjs +1 -0
  588. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  589. package/dist/actions/update-pay-pal-webhook.d.cts +3 -10
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +3 -10
  592. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  593. package/dist/actions/update-pay-pal-webhook.mjs +1 -0
  594. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  595. package/dist/actions/update-templates.cjs +1 -0
  596. package/dist/actions/update-templates.cjs.map +1 -1
  597. package/dist/actions/update-templates.d.cts +3 -213
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +3 -213
  600. package/dist/actions/update-templates.d.mts.map +1 -1
  601. package/dist/actions/update-templates.mjs +1 -0
  602. package/dist/actions/update-templates.mjs.map +1 -1
  603. package/dist/actions/update-web-profile.cjs +1 -0
  604. package/dist/actions/update-web-profile.cjs.map +1 -1
  605. package/dist/actions/update-web-profile.d.cts +3 -20
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +3 -20
  608. package/dist/actions/update-web-profile.d.mts.map +1 -1
  609. package/dist/actions/update-web-profile.mjs +1 -0
  610. package/dist/actions/update-web-profile.mjs.map +1 -1
  611. package/dist/actions/verify-payment-method.cjs +1 -0
  612. package/dist/actions/verify-payment-method.cjs.map +1 -1
  613. package/dist/actions/verify-payment-method.d.cts +3 -6
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +3 -6
  616. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  617. package/dist/actions/verify-payment-method.mjs +1 -0
  618. package/dist/actions/verify-payment-method.mjs.map +1 -1
  619. package/dist/actions/verify-webhook-signature.cjs +1 -0
  620. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  621. package/dist/actions/verify-webhook-signature.d.cts +3 -24
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +3 -24
  624. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  625. package/dist/actions/verify-webhook-signature.mjs +1 -0
  626. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  627. package/dist/app.cjs +5 -2
  628. package/dist/app.cjs.map +1 -1
  629. package/dist/app.d.cts +7 -1
  630. package/dist/app.d.cts.map +1 -1
  631. package/dist/app.d.mts +7 -1
  632. package/dist/app.d.mts.map +1 -1
  633. package/dist/app.mjs +3 -2
  634. package/dist/app.mjs.map +1 -1
  635. package/dist/index.d.cts +1 -1
  636. package/dist/index.d.mts +1 -1
  637. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-invoice.d.ts
@@ -29,14 +31,7 @@ declare const PaypalCancelInvoiceOutput: z.ZodObject<{
29
31
  status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
32
  information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
33
  }, z.core.$loose>;
32
- declare const paypalCancelInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
33
- invoice_id: string;
34
- note?: string | undefined;
35
- subject?: string | undefined;
36
- send_to_invoicer?: boolean | undefined;
37
- send_to_recipient?: boolean | undefined;
38
- additional_recipients?: string[] | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ declare const paypalCancelInvoice: AppAction<typeof PaypalCancelInvoiceInput, typeof PaypalCancelInvoiceOutput, typeof paypal.credential>;
40
35
  //#endregion
41
36
  export { paypalCancelInvoice };
42
37
  //# sourceMappingURL=cancel-invoice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-invoice.d.mts","names":[],"sources":["../../src/actions/cancel-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAWzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"cancel-invoice.d.mts","names":[],"sources":["../../src/actions/cancel-invoice.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAoBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,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/cancel-invoice.ts
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-invoice.mjs","names":[],"sources":["../../src/actions/cancel-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCancelInvoiceInput = z.object({\n note: z.string().describe(\"A note about the cancellation reason. Maximum 1000 characters.\").optional(),\n subject: z.string().describe(\"The subject of the email notification sent about the cancellation. Maximum 150 characters.\").optional(),\n invoice_id: z.string().describe(\"The ID of the invoice to cancel.\"),\n send_to_invoicer: z.boolean().describe(\"Whether to send the cancellation notification email to the merchant (invoicer). Default is true.\").optional(),\n send_to_recipient: z.boolean().describe(\"Whether to send the cancellation notification email to the recipient (payer). Default is true.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of CC email addresses to which the cancellation notification is sent. Maximum 100 email addresses.\").optional(),\n}).describe(\"Request schema for canceling a PayPal invoice.\\n\\nUse this when you need to cancel an invoice that has been sent to a payer.\\nYou can optionally include a cancellation reason and control who receives\\nnotifications about the cancellation.\");\nconst PaypalCancelInvoice_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCancelInvoice_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).passthrough().describe(\"Error detail information.\");\nexport const PaypalCancelInvoiceOutput = z.object({\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalCancelInvoice_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n details: z.array(PaypalCancelInvoice_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"A message describing the result of the cancellation operation.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice cancellation was successful.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n status_code: z.number().int().describe(\"The HTTP status code of the response.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n}).passthrough().describe(\"Response model for canceling a PayPal invoice.\");\n\nexport const paypalCancelInvoice = action(\"PAYPAL_CANCEL_INVOICE\", {\n slug: \"paypal-cancel-invoice\",\n name: \"Cancel Invoice\",\n description: \"Cancels a sent PayPal invoice and optionally notifies relevant parties. Use this action when you need to cancel an invoice that has already been sent to a payer. The action allows you to provide a cancellation reason and control who receives email notifications about the cancellation (recipient, invoicer, and additional CC recipients). This action is irreversible — once canceled, the invoice cannot be reinstated and the payer will no longer be able to pay it through PayPal. Note: Only invoices in SENT or SCHEDULED status can be canceled. Draft invoices should be deleted instead, and paid invoices must be refunded.\",\n input: PaypalCancelInvoiceInput,\n output: PaypalCancelInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CA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AY,CAAC,CAAC,SAAS,2BAA2B;AAYrD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-invoice.mjs","names":[],"sources":["../../src/actions/cancel-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCancelInvoiceInput = z.object({\n note: z.string().describe(\"A note about the cancellation reason. Maximum 1000 characters.\").optional(),\n subject: z.string().describe(\"The subject of the email notification sent about the cancellation. Maximum 150 characters.\").optional(),\n invoice_id: z.string().describe(\"The ID of the invoice to cancel.\"),\n send_to_invoicer: z.boolean().describe(\"Whether to send the cancellation notification email to the merchant (invoicer). Default is true.\").optional(),\n send_to_recipient: z.boolean().describe(\"Whether to send the cancellation notification email to the recipient (payer). Default is true.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of CC email addresses to which the cancellation notification is sent. Maximum 100 email addresses.\").optional(),\n}).describe(\"Request schema for canceling a PayPal invoice.\\n\\nUse this when you need to cancel an invoice that has been sent to a payer.\\nYou can optionally include a cancellation reason and control who receives\\nnotifications about the cancellation.\");\nconst PaypalCancelInvoice_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCancelInvoice_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).passthrough().describe(\"Error detail information.\");\nexport const PaypalCancelInvoiceOutput = z.object({\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalCancelInvoice_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n details: z.array(PaypalCancelInvoice_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"A message describing the result of the cancellation operation.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice cancellation was successful.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n status_code: z.number().int().describe(\"The HTTP status code of the response.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n}).passthrough().describe(\"Response model for canceling a PayPal invoice.\");\n\nexport const paypalCancelInvoice: AppAction<\n typeof PaypalCancelInvoiceInput,\n typeof PaypalCancelInvoiceOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CANCEL_INVOICE\", {\n slug: \"paypal-cancel-invoice\",\n name: \"Cancel Invoice\",\n description: \"Cancels a sent PayPal invoice and optionally notifies relevant parties. Use this action when you need to cancel an invoice that has already been sent to a payer. The action allows you to provide a cancellation reason and control who receives email notifications about the cancellation (recipient, invoicer, and additional CC recipients). This action is irreversible — once canceled, the invoice cannot be reinstated and the payer will no longer be able to pay it through PayPal. Note: Only invoices in SENT or SCHEDULED status can be canceled. Draft invoices should be deleted instead, and paid invoices must be refunded.\",\n input: PaypalCancelInvoiceInput,\n output: PaypalCancelInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACpI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACpJ,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACnJ,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,gPAAgP;AAC5P,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS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S,CAAC,CAAC,SAAS;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/cancel-reminders.ts
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-reminders.cjs","names":["z","action"],"sources":["../../src/actions/cancel-reminders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCancelRemindersInput = z.object({\n invoice_id: z.string().describe(\"The ID of the invoice for which to cancel the reminders.\"),\n}).describe(\"Request schema for canceling auto reminders on a PayPal invoice.\\n\\nUse this when you need to cancel the automatic payment reminders that\\nare scheduled for an invoice. This is useful when you want to stop\\nreminder emails from being sent to the payer.\");\nconst PaypalCancelReminders_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCancelReminders_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).passthrough().describe(\"Error detail information.\");\nexport const PaypalCancelRemindersOutput = z.object({\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalCancelReminders_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n details: z.array(PaypalCancelReminders_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the reminders were successfully canceled.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after canceling invoice reminders.\\n\\nA successful response indicates that the reminders have been canceled.\\nThe response may be empty or contain minimal information on success.\");\n\nexport const paypalCancelReminders = action(\"PAYPAL_CANCEL_REMINDERS\", {\n slug: \"paypal-cancel-reminders\",\n name: \"Cancel Invoice Reminders\",\n description: \"Cancels the automatic payment reminders for a PayPal invoice. Use this action when you need to stop the automatic reminder emails from being sent to the payer for a particular invoice. This is useful when the invoice has been paid, is no longer relevant, or when you want to handle payment follow-ups manually. Note: This action only cancels future scheduled reminders. It does not affect reminders that have already been sent.\",\n input: PaypalCancelRemindersInput,\n output: PaypalCancelRemindersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EAC5F,CAAC,CAAC,CAAC,SAAS,8PAA8P;AAC1Q,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,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jH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6MAA6M;AAEvO,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-reminders.cjs","names":["z","action"],"sources":["../../src/actions/cancel-reminders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCancelRemindersInput = z.object({\n invoice_id: z.string().describe(\"The ID of the invoice for which to cancel the reminders.\"),\n}).describe(\"Request schema for canceling auto reminders on a PayPal invoice.\\n\\nUse this when you need to cancel the automatic payment reminders that\\nare scheduled for an invoice. This is useful when you want to stop\\nreminder emails from being sent to the payer.\");\nconst PaypalCancelReminders_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCancelReminders_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).passthrough().describe(\"Error detail information.\");\nexport const PaypalCancelRemindersOutput = z.object({\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalCancelReminders_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n details: z.array(PaypalCancelReminders_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the reminders were successfully canceled.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after canceling invoice reminders.\\n\\nA successful response indicates that the reminders have been canceled.\\nThe response may be empty or contain minimal information on success.\");\n\nexport const paypalCancelReminders: AppAction<\n typeof PaypalCancelRemindersInput,\n typeof PaypalCancelRemindersOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CANCEL_REMINDERS\", {\n slug: \"paypal-cancel-reminders\",\n name: \"Cancel Invoice Reminders\",\n description: \"Cancels the automatic payment reminders for a PayPal invoice. Use this action when you need to stop the automatic reminder emails from being sent to the payer for a particular invoice. This is useful when the invoice has been paid, is no longer relevant, or when you want to handle payment follow-ups manually. Note: This action only cancels future scheduled reminders. It does not affect reminders that have already been sent.\",\n input: PaypalCancelRemindersInput,\n output: PaypalCancelRemindersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EAC5F,CAAC,CAAC,CAAC,SAAS,8PAA8P;AAC1Q,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IA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,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6MAA6M;AAEvO,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-reminders.d.ts
@@ -23,9 +25,7 @@ declare const PaypalCancelRemindersOutput: z.ZodObject<{
23
25
  debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  }, z.core.$loose>;
26
- declare const paypalCancelReminders: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- invoice_id: string;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const paypalCancelReminders: AppAction<typeof PaypalCancelRemindersInput, typeof PaypalCancelRemindersOutput, typeof paypal.credential>;
29
29
  //#endregion
30
30
  export { paypalCancelReminders };
31
31
  //# sourceMappingURL=cancel-reminders.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-reminders.d.cts","names":[],"sources":["../../src/actions/cancel-reminders.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAe1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"cancel-reminders.d.cts","names":[],"sources":["../../src/actions/cancel-reminders.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAe1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-reminders.d.ts
@@ -23,9 +25,7 @@ declare const PaypalCancelRemindersOutput: z.ZodObject<{
23
25
  debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  }, z.core.$loose>;
26
- declare const paypalCancelReminders: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- invoice_id: string;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const paypalCancelReminders: AppAction<typeof PaypalCancelRemindersInput, typeof PaypalCancelRemindersOutput, typeof paypal.credential>;
29
29
  //#endregion
30
30
  export { paypalCancelReminders };
31
31
  //# sourceMappingURL=cancel-reminders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-reminders.d.mts","names":[],"sources":["../../src/actions/cancel-reminders.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAe1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"cancel-reminders.d.mts","names":[],"sources":["../../src/actions/cancel-reminders.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAe1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,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/cancel-reminders.ts
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-reminders.mjs","names":[],"sources":["../../src/actions/cancel-reminders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCancelRemindersInput = z.object({\n invoice_id: z.string().describe(\"The ID of the invoice for which to cancel the reminders.\"),\n}).describe(\"Request schema for canceling auto reminders on a PayPal invoice.\\n\\nUse this when you need to cancel the automatic payment reminders that\\nare scheduled for an invoice. This is useful when you want to stop\\nreminder emails from being sent to the payer.\");\nconst PaypalCancelReminders_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCancelReminders_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).passthrough().describe(\"Error detail information.\");\nexport const PaypalCancelRemindersOutput = z.object({\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalCancelReminders_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n details: z.array(PaypalCancelReminders_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the reminders were successfully canceled.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after canceling invoice reminders.\\n\\nA successful response indicates that the reminders have been canceled.\\nThe response may be empty or contain minimal information on success.\");\n\nexport const paypalCancelReminders = action(\"PAYPAL_CANCEL_REMINDERS\", {\n slug: \"paypal-cancel-reminders\",\n name: \"Cancel Invoice Reminders\",\n description: \"Cancels the automatic payment reminders for a PayPal invoice. Use this action when you need to stop the automatic reminder emails from being sent to the payer for a particular invoice. This is useful when the invoice has been paid, is no longer relevant, or when you want to handle payment follow-ups manually. Note: This action only cancels future scheduled reminders. It does not affect reminders that have already been sent.\",\n input: PaypalCancelRemindersInput,\n output: PaypalCancelRemindersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EAC5F,CAAC,CAAC,CAAC,SAAS,8PAA8P;AAC1Q,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAWrD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6MAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-reminders.mjs","names":[],"sources":["../../src/actions/cancel-reminders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCancelRemindersInput = z.object({\n invoice_id: z.string().describe(\"The ID of the invoice for which to cancel the reminders.\"),\n}).describe(\"Request schema for canceling auto reminders on a PayPal invoice.\\n\\nUse this when you need to cancel the automatic payment reminders that\\nare scheduled for an invoice. This is useful when you want to stop\\nreminder emails from being sent to the payer.\");\nconst PaypalCancelReminders_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable().optional(),\n href: z.string().describe(\"The URI of the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCancelReminders_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).passthrough().describe(\"Error detail information.\");\nexport const PaypalCancelRemindersOutput = z.object({\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalCancelReminders_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n details: z.array(PaypalCancelReminders_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the reminders were successfully canceled.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after canceling invoice reminders.\\n\\nA successful response indicates that the reminders have been canceled.\\nThe response may be empty or contain minimal information on success.\");\n\nexport const paypalCancelReminders: AppAction<\n typeof PaypalCancelRemindersInput,\n typeof PaypalCancelRemindersOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CANCEL_REMINDERS\", {\n slug: \"paypal-cancel-reminders\",\n name: \"Cancel Invoice Reminders\",\n description: \"Cancels the automatic payment reminders for a PayPal invoice. Use this action when you need to stop the automatic reminder emails from being sent to the payer for a particular invoice. This is useful when the invoice has been paid, is no longer relevant, or when you want to handle payment follow-ups manually. Note: This action only cancels future scheduled reminders. It does not affect reminders that have already been sent.\",\n input: PaypalCancelRemindersInput,\n output: PaypalCancelRemindersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EAC5F,CAAC,CAAC,CAAC,SAAS,8PAA8P;AAC1Q,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAWrD,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6MAWhB;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/capture-subscription-payment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"capture-subscription-payment.cjs","names":["z","action"],"sources":["../../src/actions/capture-subscription-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCaptureSubscriptionPaymentInput = z.object({\n id: z.string().describe(\"The ID of the subscription.\"),\n note: z.string().describe(\"The reason or note for the subscription charge.\"),\n amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The charge amount from the subscriber.\"),\n capture_type: z.enum([\"OUTSTANDING_BALANCE\"]).describe(\"The type of capture. Currently only OUTSTANDING_BALANCE is supported.\"),\n}).describe(\"Request model for capturing authorized payment on subscription.\");\nconst PaypalCaptureSubscriptionPayment_CaptureStatusSchema = z.enum([\"COMPLETED\", \"DECLINED\", \"PARTIALLY_REFUNDED\", \"PENDING\", \"REFUNDED\", \"FAILED\"]).describe(\"The status of the captured payment.\");\nconst PaypalCaptureSubscriptionPayment_PayerNameSchema = z.object({\n prefix: z.string().describe(\"The prefix, or title, to the party's name.\").nullable().optional(),\n suffix: z.string().describe(\"The suffix for the party's name.\").nullable().optional(),\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n full_name: z.string().describe(\"When the party is a person, the party's full name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n middle_name: z.string().describe(\"When the party is a person, the party's middle name.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer party.\");\nconst PaypalCaptureSubscriptionPayment_FeeAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (fee portion).\");\nconst PaypalCaptureSubscriptionPayment_NetAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (net portion).\");\nconst PaypalCaptureSubscriptionPayment_TaxAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for tax.\");\nconst PaypalCaptureSubscriptionPayment_GrossAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (gross portion).\");\nconst PaypalCaptureSubscriptionPayment_ShippingAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for shipping.\");\nconst PaypalCaptureSubscriptionPayment_TotalItemAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for total items.\");\nconst PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema = z.object({\n fee_amount: PaypalCaptureSubscriptionPayment_FeeAmountSchema.nullable().optional(),\n net_amount: PaypalCaptureSubscriptionPayment_NetAmountSchema.nullable().optional(),\n tax_amount: PaypalCaptureSubscriptionPayment_TaxAmountSchema.nullable().optional(),\n gross_amount: PaypalCaptureSubscriptionPayment_GrossAmountSchema.nullable(),\n shipping_amount: PaypalCaptureSubscriptionPayment_ShippingAmountSchema.nullable().optional(),\n total_item_amount: PaypalCaptureSubscriptionPayment_TotalItemAmountSchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown details for the amount.\");\nexport const PaypalCaptureSubscriptionPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal-generated transaction ID.\").nullable(),\n time: z.string().describe(\"The date and time, in Internet date and time format.\").nullable(),\n status: PaypalCaptureSubscriptionPayment_CaptureStatusSchema.nullable().optional(),\n payer_name: PaypalCaptureSubscriptionPayment_PayerNameSchema.nullable().optional(),\n payer_email: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n amount_with_breakdown: PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema.nullable(),\n}).passthrough().describe(\"Response model for capturing authorized payment on subscription.\");\n\nexport const paypalCaptureSubscriptionPayment = action(\"PAYPAL_CAPTURE_SUBSCRIPTION_PAYMENT\", {\n slug: \"paypal-capture-subscription-payment\",\n name: \"Capture subscription payment\",\n description: \"Captures an authorized payment on a PayPal subscription. Use this action when you need to charge a subscriber for an outstanding balance or capture an authorized payment that was previously approved. This action captures payments for subscriptions that have an outstanding balance to be charged. The capture type must be OUTSTANDING_BALANCE, and you must provide the amount to capture along with a note explaining the reason for the charge.\",\n input: PaypalCaptureSubscriptionPaymentInput,\n output: PaypalCaptureSubscriptionPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qLAAqL;EAChN,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC/G,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAClD,cAAcA,IAAAA,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAChI,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,uDAAuDA,IAAAA,EAAE,KAAK;CAAC;CAAa;CAAY;CAAsB;CAAW;CAAY;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACpM,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SA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AE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,QAAQ,qDAAqD,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,iDAAiD,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,uBAAuB,2DAA2D,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"capture-subscription-payment.cjs","names":["z","action"],"sources":["../../src/actions/capture-subscription-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCaptureSubscriptionPaymentInput = z.object({\n id: z.string().describe(\"The ID of the subscription.\"),\n note: z.string().describe(\"The reason or note for the subscription charge.\"),\n amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The charge amount from the subscriber.\"),\n capture_type: z.enum([\"OUTSTANDING_BALANCE\"]).describe(\"The type of capture. Currently only OUTSTANDING_BALANCE is supported.\"),\n}).describe(\"Request model for capturing authorized payment on subscription.\");\nconst PaypalCaptureSubscriptionPayment_CaptureStatusSchema = z.enum([\"COMPLETED\", \"DECLINED\", \"PARTIALLY_REFUNDED\", \"PENDING\", \"REFUNDED\", \"FAILED\"]).describe(\"The status of the captured payment.\");\nconst PaypalCaptureSubscriptionPayment_PayerNameSchema = z.object({\n prefix: z.string().describe(\"The prefix, or title, to the party's name.\").nullable().optional(),\n suffix: z.string().describe(\"The suffix for the party's name.\").nullable().optional(),\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n full_name: z.string().describe(\"When the party is a person, the party's full name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n middle_name: z.string().describe(\"When the party is a person, the party's middle name.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer party.\");\nconst PaypalCaptureSubscriptionPayment_FeeAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (fee portion).\");\nconst PaypalCaptureSubscriptionPayment_NetAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (net portion).\");\nconst PaypalCaptureSubscriptionPayment_TaxAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for tax.\");\nconst PaypalCaptureSubscriptionPayment_GrossAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (gross portion).\");\nconst PaypalCaptureSubscriptionPayment_ShippingAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for shipping.\");\nconst PaypalCaptureSubscriptionPayment_TotalItemAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for total items.\");\nconst PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema = z.object({\n fee_amount: PaypalCaptureSubscriptionPayment_FeeAmountSchema.nullable().optional(),\n net_amount: PaypalCaptureSubscriptionPayment_NetAmountSchema.nullable().optional(),\n tax_amount: PaypalCaptureSubscriptionPayment_TaxAmountSchema.nullable().optional(),\n gross_amount: PaypalCaptureSubscriptionPayment_GrossAmountSchema.nullable(),\n shipping_amount: PaypalCaptureSubscriptionPayment_ShippingAmountSchema.nullable().optional(),\n total_item_amount: PaypalCaptureSubscriptionPayment_TotalItemAmountSchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown details for the amount.\");\nexport const PaypalCaptureSubscriptionPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal-generated transaction ID.\").nullable(),\n time: z.string().describe(\"The date and time, in Internet date and time format.\").nullable(),\n status: PaypalCaptureSubscriptionPayment_CaptureStatusSchema.nullable().optional(),\n payer_name: PaypalCaptureSubscriptionPayment_PayerNameSchema.nullable().optional(),\n payer_email: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n amount_with_breakdown: PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema.nullable(),\n}).passthrough().describe(\"Response model for capturing authorized payment on subscription.\");\n\nexport const paypalCaptureSubscriptionPayment: AppAction<\n typeof PaypalCaptureSubscriptionPaymentInput,\n typeof PaypalCaptureSubscriptionPaymentOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CAPTURE_SUBSCRIPTION_PAYMENT\", {\n slug: \"paypal-capture-subscription-payment\",\n name: \"Capture subscription payment\",\n description: \"Captures an authorized payment on a PayPal subscription. Use this action when you need to charge a subscriber for an outstanding balance or capture an authorized payment that was previously approved. This action captures payments for subscriptions that have an outstanding balance to be charged. The capture type must be OUTSTANDING_BALANCE, and you must provide the amount to capture along with a note explaining the reason for the charge.\",\n input: PaypalCaptureSubscriptionPaymentInput,\n output: PaypalCaptureSubscriptionPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,E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1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/capture-subscription-payment.d.ts
@@ -18,9 +20,9 @@ declare const PaypalCaptureSubscriptionPaymentOutput: z.ZodObject<{
18
20
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
19
21
  COMPLETED: "COMPLETED";
20
22
  PENDING: "PENDING";
21
- DECLINED: "DECLINED";
22
- PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
23
23
  REFUNDED: "REFUNDED";
24
+ PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
25
+ DECLINED: "DECLINED";
24
26
  FAILED: "FAILED";
25
27
  }>>>;
26
28
  payer_name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -59,15 +61,7 @@ declare const PaypalCaptureSubscriptionPaymentOutput: z.ZodObject<{
59
61
  }, z.core.$loose>>>;
60
62
  }, z.core.$loose>>;
61
63
  }, z.core.$loose>;
62
- declare const paypalCaptureSubscriptionPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
63
- id: string;
64
- note: string;
65
- amount: {
66
- value: string;
67
- currency_code: string;
68
- };
69
- capture_type: "OUTSTANDING_BALANCE";
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
64
+ declare const paypalCaptureSubscriptionPayment: AppAction<typeof PaypalCaptureSubscriptionPaymentInput, typeof PaypalCaptureSubscriptionPaymentOutput, typeof paypal.credential>;
71
65
  //#endregion
72
66
  export { paypalCaptureSubscriptionPayment };
73
67
  //# sourceMappingURL=capture-subscription-payment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capture-subscription-payment.d.cts","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAkDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAStC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"capture-subscription-payment.d.cts","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAkDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAStC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/capture-subscription-payment.d.ts
@@ -18,9 +20,9 @@ declare const PaypalCaptureSubscriptionPaymentOutput: z.ZodObject<{
18
20
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
19
21
  COMPLETED: "COMPLETED";
20
22
  PENDING: "PENDING";
21
- DECLINED: "DECLINED";
22
- PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
23
23
  REFUNDED: "REFUNDED";
24
+ PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
25
+ DECLINED: "DECLINED";
24
26
  FAILED: "FAILED";
25
27
  }>>>;
26
28
  payer_name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -59,15 +61,7 @@ declare const PaypalCaptureSubscriptionPaymentOutput: z.ZodObject<{
59
61
  }, z.core.$loose>>>;
60
62
  }, z.core.$loose>>;
61
63
  }, z.core.$loose>;
62
- declare const paypalCaptureSubscriptionPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
63
- id: string;
64
- note: string;
65
- amount: {
66
- value: string;
67
- currency_code: string;
68
- };
69
- capture_type: "OUTSTANDING_BALANCE";
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
64
+ declare const paypalCaptureSubscriptionPayment: AppAction<typeof PaypalCaptureSubscriptionPaymentInput, typeof PaypalCaptureSubscriptionPaymentOutput, typeof paypal.credential>;
71
65
  //#endregion
72
66
  export { paypalCaptureSubscriptionPayment };
73
67
  //# sourceMappingURL=capture-subscription-payment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capture-subscription-payment.d.mts","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAkDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAStC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"capture-subscription-payment.d.mts","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAkDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAStC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,MAAA,CAAO,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/capture-subscription-payment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"capture-subscription-payment.mjs","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCaptureSubscriptionPaymentInput = z.object({\n id: z.string().describe(\"The ID of the subscription.\"),\n note: z.string().describe(\"The reason or note for the subscription charge.\"),\n amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The charge amount from the subscriber.\"),\n capture_type: z.enum([\"OUTSTANDING_BALANCE\"]).describe(\"The type of capture. Currently only OUTSTANDING_BALANCE is supported.\"),\n}).describe(\"Request model for capturing authorized payment on subscription.\");\nconst PaypalCaptureSubscriptionPayment_CaptureStatusSchema = z.enum([\"COMPLETED\", \"DECLINED\", \"PARTIALLY_REFUNDED\", \"PENDING\", \"REFUNDED\", \"FAILED\"]).describe(\"The status of the captured payment.\");\nconst PaypalCaptureSubscriptionPayment_PayerNameSchema = z.object({\n prefix: z.string().describe(\"The prefix, or title, to the party's name.\").nullable().optional(),\n suffix: z.string().describe(\"The suffix for the party's name.\").nullable().optional(),\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n full_name: z.string().describe(\"When the party is a person, the party's full name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n middle_name: z.string().describe(\"When the party is a person, the party's middle name.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer party.\");\nconst PaypalCaptureSubscriptionPayment_FeeAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (fee portion).\");\nconst PaypalCaptureSubscriptionPayment_NetAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (net portion).\");\nconst PaypalCaptureSubscriptionPayment_TaxAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for tax.\");\nconst PaypalCaptureSubscriptionPayment_GrossAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (gross portion).\");\nconst PaypalCaptureSubscriptionPayment_ShippingAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for shipping.\");\nconst PaypalCaptureSubscriptionPayment_TotalItemAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for total items.\");\nconst PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema = z.object({\n fee_amount: PaypalCaptureSubscriptionPayment_FeeAmountSchema.nullable().optional(),\n net_amount: PaypalCaptureSubscriptionPayment_NetAmountSchema.nullable().optional(),\n tax_amount: PaypalCaptureSubscriptionPayment_TaxAmountSchema.nullable().optional(),\n gross_amount: PaypalCaptureSubscriptionPayment_GrossAmountSchema.nullable(),\n shipping_amount: PaypalCaptureSubscriptionPayment_ShippingAmountSchema.nullable().optional(),\n total_item_amount: PaypalCaptureSubscriptionPayment_TotalItemAmountSchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown details for the amount.\");\nexport const PaypalCaptureSubscriptionPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal-generated transaction ID.\").nullable(),\n time: z.string().describe(\"The date and time, in Internet date and time format.\").nullable(),\n status: PaypalCaptureSubscriptionPayment_CaptureStatusSchema.nullable().optional(),\n payer_name: PaypalCaptureSubscriptionPayment_PayerNameSchema.nullable().optional(),\n payer_email: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n amount_with_breakdown: PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema.nullable(),\n}).passthrough().describe(\"Response model for capturing authorized payment on subscription.\");\n\nexport const paypalCaptureSubscriptionPayment = action(\"PAYPAL_CAPTURE_SUBSCRIPTION_PAYMENT\", {\n slug: \"paypal-capture-subscription-payment\",\n name: \"Capture subscription payment\",\n description: \"Captures an authorized payment on a PayPal subscription. Use this action when you need to charge a subscriber for an outstanding balance or capture an authorized payment that was previously approved. This action captures payments for subscriptions that have an outstanding balance to be charged. The capture type must be OUTSTANDING_BALANCE, and you must provide the amount to capture along with a note explaining the reason for the charge.\",\n input: PaypalCaptureSubscriptionPaymentInput,\n output: PaypalCaptureSubscriptionPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qLAAqL;EAChN,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC/G,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAClD,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAChI,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,uDAAuD,EAAE,KAAK;CAAC;CAAa;CAAY;CAAsB;CAAW;CAAY;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACpM,MAAM,mDAAmD,EAAE,OAAO;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,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C,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"capture-subscription-payment.mjs","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCaptureSubscriptionPaymentInput = z.object({\n id: z.string().describe(\"The ID of the subscription.\"),\n note: z.string().describe(\"The reason or note for the subscription charge.\"),\n amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The charge amount from the subscriber.\"),\n capture_type: z.enum([\"OUTSTANDING_BALANCE\"]).describe(\"The type of capture. Currently only OUTSTANDING_BALANCE is supported.\"),\n}).describe(\"Request model for capturing authorized payment on subscription.\");\nconst PaypalCaptureSubscriptionPayment_CaptureStatusSchema = z.enum([\"COMPLETED\", \"DECLINED\", \"PARTIALLY_REFUNDED\", \"PENDING\", \"REFUNDED\", \"FAILED\"]).describe(\"The status of the captured payment.\");\nconst PaypalCaptureSubscriptionPayment_PayerNameSchema = z.object({\n prefix: z.string().describe(\"The prefix, or title, to the party's name.\").nullable().optional(),\n suffix: z.string().describe(\"The suffix for the party's name.\").nullable().optional(),\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n full_name: z.string().describe(\"When the party is a person, the party's full name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n middle_name: z.string().describe(\"When the party is a person, the party's middle name.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer party.\");\nconst PaypalCaptureSubscriptionPayment_FeeAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (fee portion).\");\nconst PaypalCaptureSubscriptionPayment_NetAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (net portion).\");\nconst PaypalCaptureSubscriptionPayment_TaxAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for tax.\");\nconst PaypalCaptureSubscriptionPayment_GrossAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction (gross portion).\");\nconst PaypalCaptureSubscriptionPayment_ShippingAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for shipping.\");\nconst PaypalCaptureSubscriptionPayment_TotalItemAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for total items.\");\nconst PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema = z.object({\n fee_amount: PaypalCaptureSubscriptionPayment_FeeAmountSchema.nullable().optional(),\n net_amount: PaypalCaptureSubscriptionPayment_NetAmountSchema.nullable().optional(),\n tax_amount: PaypalCaptureSubscriptionPayment_TaxAmountSchema.nullable().optional(),\n gross_amount: PaypalCaptureSubscriptionPayment_GrossAmountSchema.nullable(),\n shipping_amount: PaypalCaptureSubscriptionPayment_ShippingAmountSchema.nullable().optional(),\n total_item_amount: PaypalCaptureSubscriptionPayment_TotalItemAmountSchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown details for the amount.\");\nexport const PaypalCaptureSubscriptionPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal-generated transaction ID.\").nullable(),\n time: z.string().describe(\"The date and time, in Internet date and time format.\").nullable(),\n status: PaypalCaptureSubscriptionPayment_CaptureStatusSchema.nullable().optional(),\n payer_name: PaypalCaptureSubscriptionPayment_PayerNameSchema.nullable().optional(),\n payer_email: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n amount_with_breakdown: PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema.nullable(),\n}).passthrough().describe(\"Response model for capturing authorized payment on subscription.\");\n\nexport const paypalCaptureSubscriptionPayment: AppAction<\n typeof PaypalCaptureSubscriptionPaymentInput,\n typeof PaypalCaptureSubscriptionPaymentOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CAPTURE_SUBSCRIPTION_PAYMENT\", {\n slug: \"paypal-capture-subscription-payment\",\n name: \"Capture subscription payment\",\n description: \"Captures an authorized payment on a PayPal subscription. Use this action when you need to charge a subscriber for an outstanding balance or capture an authorized payment that was previously approved. This action captures payments for subscriptions that have an outstanding balance to be charged. The capture type must be OUTSTANDING_BALANCE, and you must provide the amount to capture along with a note explaining the reason for the charge.\",\n input: PaypalCaptureSubscriptionPaymentInput,\n output: PaypalCaptureSubscriptionPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qLAAqL;EAChN,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC/G,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAClD,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAChI,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,uDAAuD,EAAE,KAAK;CAA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M;CACN,aAAa;CACb,OAAO;CACP,QAlBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC3F,QAAQ,qDAAqD,SAAS,CAAC,CAAC,SAAS;EACjF,YAAY,iDAAiD,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,uBAAuB,2DAA2D,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;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/charge-payment-method.ts
@@ -1 +1 @@
1
- {"version":3,"file":"charge-payment-method.cjs","names":["z","action"],"sources":["../../src/actions/charge-payment-method.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalChargePaymentMethodInput = z.object({\n input: z.object({\n options: z.record(z.string(), z.unknown()).describe(\"Additional options for the charge operation such as submit for settlement immediately.\").optional(),\n transaction: z.object({\n amount: z.string().describe(\"The amount to charge. Must be a string representation of a decimal monetary value.\"),\n channel: z.string().describe(\"The channel through which the transaction was initiated.\").optional(),\n order_id: z.string().describe(\"The order ID for tracking the transaction.\").optional(),\n line_items: z.array(z.object({\n kind: z.string().describe(\"The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).\").optional(),\n name: z.string().describe(\"The name of the line item.\").optional(),\n quantity: z.string().describe(\"The quantity of the line item.\").optional(),\n description: z.string().describe(\"A description of the line item.\").optional(),\n unit_amount: z.string().describe(\"The unit amount for this line item.\").optional(),\n total_amount: z.string().describe(\"The total amount for this line item.\").optional(),\n}).passthrough().describe(\"Line item for transaction details.\")).describe(\"Line items for the transaction.\").optional(),\n tax_exempt: z.boolean().describe(\"Whether the transaction is tax exempt.\").optional(),\n device_data: z.string().describe(\"A JSON string containing device information for fraud prevention.\").optional(),\n billing_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n shipping_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n merchant_account_id: z.string().describe(\"The merchant account ID to use for the transaction. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"The transaction details including amount and optional configuration.\"),\n payment_method_id: z.string().describe(\"The unique identifier of the payment method to charge.\"),\n}).describe(\"The input containing the payment method ID and transaction details.\"),\n}).describe(\"Request model for charging a payment method via Braintree GraphQL API.\\n\\nUse this action when you need to charge a customer's payment method (credit card,\\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\\ntransaction and captures funds immediately, beginning the process of transferring\\nmoney from the customer to your merchant account.\\n\\nThis action requires a valid payment method ID obtained from a previous tokenization\\noperation (e.g., client-side tokenization via Braintree client SDK).\");\nexport const PaypalChargePaymentMethodOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The response data containing the transaction result.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the mutation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for charging a payment method.\\n\\nContains the transaction result or error information.\");\n\nexport const paypalChargePaymentMethod = action(\"PAYPAL_CHARGE_PAYMENT_METHOD\", {\n slug: \"paypal-charge-payment-method\",\n name: \"Charge Payment Method\",\n description: \"Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.\",\n input: PaypalChargePaymentMethodInput,\n output: PaypalChargePaymentMethodOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,OAAOA,IAAAA,EAAE,OAAO;CAChB,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACvJ,aAAaA,IAAAA,EAAE,OAAO;EACtB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;EAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACrF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;GACjH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"charge-payment-method.cjs","names":["z","action"],"sources":["../../src/actions/charge-payment-method.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalChargePaymentMethodInput = z.object({\n input: z.object({\n options: z.record(z.string(), z.unknown()).describe(\"Additional options for the charge operation such as submit for settlement immediately.\").optional(),\n transaction: z.object({\n amount: z.string().describe(\"The amount to charge. Must be a string representation of a decimal monetary value.\"),\n channel: z.string().describe(\"The channel through which the transaction was initiated.\").optional(),\n order_id: z.string().describe(\"The order ID for tracking the transaction.\").optional(),\n line_items: z.array(z.object({\n kind: z.string().describe(\"The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).\").optional(),\n name: z.string().describe(\"The name of the line item.\").optional(),\n quantity: z.string().describe(\"The quantity of the line item.\").optional(),\n description: z.string().describe(\"A description of the line item.\").optional(),\n unit_amount: z.string().describe(\"The unit amount for this line item.\").optional(),\n total_amount: z.string().describe(\"The total amount for this line item.\").optional(),\n}).passthrough().describe(\"Line item for transaction details.\")).describe(\"Line items for the transaction.\").optional(),\n tax_exempt: z.boolean().describe(\"Whether the transaction is tax exempt.\").optional(),\n device_data: z.string().describe(\"A JSON string containing device information for fraud prevention.\").optional(),\n billing_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n shipping_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n merchant_account_id: z.string().describe(\"The merchant account ID to use for the transaction. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"The transaction details including amount and optional configuration.\"),\n payment_method_id: z.string().describe(\"The unique identifier of the payment method to charge.\"),\n}).describe(\"The input containing the payment method ID and transaction details.\"),\n}).describe(\"Request model for charging a payment method via Braintree GraphQL API.\\n\\nUse this action when you need to charge a customer's payment method (credit card,\\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\\ntransaction and captures funds immediately, beginning the process of transferring\\nmoney from the customer to your merchant account.\\n\\nThis action requires a valid payment method ID obtained from a previous tokenization\\noperation (e.g., client-side tokenization via Braintree client SDK).\");\nexport const PaypalChargePaymentMethodOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The response data containing the transaction result.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the mutation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for charging a payment method.\\n\\nContains the transaction result or error information.\");\n\nexport const paypalChargePaymentMethod: AppAction<\n typeof PaypalChargePaymentMethodInput,\n typeof PaypalChargePaymentMethodOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CHARGE_PAYMENT_METHOD\", {\n slug: \"paypal-charge-payment-method\",\n name: \"Charge Payment Method\",\n description: \"Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.\",\n input: PaypalChargePaymentMethodInput,\n output: PaypalChargePaymentMethodOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,OAAOA,IAAAA,EAAE,OAAO;CAChB,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACvJ,aAAaA,IAAAA,EAAE,OAAO;EACtB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;EAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACrF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;GACjH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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C,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/charge-payment-method.d.ts
@@ -47,49 +49,7 @@ declare const PaypalChargePaymentMethodOutput: z.ZodObject<{
47
49
  data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
48
50
  errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
49
51
  }, z.core.$loose>;
50
- declare const paypalChargePaymentMethod: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- input: {
52
- transaction: {
53
- amount: string;
54
- channel?: string | undefined;
55
- order_id?: string | undefined;
56
- line_items?: {
57
- [x: string]: unknown;
58
- kind?: string | undefined;
59
- name?: string | undefined;
60
- quantity?: string | undefined;
61
- description?: string | undefined;
62
- unit_amount?: string | undefined;
63
- total_amount?: string | undefined;
64
- }[] | undefined;
65
- tax_exempt?: boolean | undefined;
66
- device_data?: string | undefined;
67
- billing_address?: {
68
- region?: string | undefined;
69
- locality?: string | undefined;
70
- last_name?: string | undefined;
71
- first_name?: string | undefined;
72
- postal_code?: string | undefined;
73
- country_code?: string | undefined;
74
- street_address?: string | undefined;
75
- extended_address?: string | undefined;
76
- } | undefined;
77
- shipping_address?: {
78
- region?: string | undefined;
79
- locality?: string | undefined;
80
- last_name?: string | undefined;
81
- first_name?: string | undefined;
82
- postal_code?: string | undefined;
83
- country_code?: string | undefined;
84
- street_address?: string | undefined;
85
- extended_address?: string | undefined;
86
- } | undefined;
87
- merchant_account_id?: string | undefined;
88
- };
89
- payment_method_id: string;
90
- options?: Record<string, unknown> | undefined;
91
- };
92
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const paypalChargePaymentMethod: AppAction<typeof PaypalChargePaymentMethodInput, typeof PaypalChargePaymentMethodOutput, typeof paypal.credential>;
93
53
  //#endregion
94
54
  export { paypalChargePaymentMethod };
95
55
  //# sourceMappingURL=charge-payment-method.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"charge-payment-method.d.cts","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMpC,MAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"charge-payment-method.d.cts","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/charge-payment-method.d.ts
@@ -47,49 +49,7 @@ declare const PaypalChargePaymentMethodOutput: z.ZodObject<{
47
49
  data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
48
50
  errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
49
51
  }, z.core.$loose>;
50
- declare const paypalChargePaymentMethod: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- input: {
52
- transaction: {
53
- amount: string;
54
- channel?: string | undefined;
55
- order_id?: string | undefined;
56
- line_items?: {
57
- [x: string]: unknown;
58
- kind?: string | undefined;
59
- name?: string | undefined;
60
- quantity?: string | undefined;
61
- description?: string | undefined;
62
- unit_amount?: string | undefined;
63
- total_amount?: string | undefined;
64
- }[] | undefined;
65
- tax_exempt?: boolean | undefined;
66
- device_data?: string | undefined;
67
- billing_address?: {
68
- region?: string | undefined;
69
- locality?: string | undefined;
70
- last_name?: string | undefined;
71
- first_name?: string | undefined;
72
- postal_code?: string | undefined;
73
- country_code?: string | undefined;
74
- street_address?: string | undefined;
75
- extended_address?: string | undefined;
76
- } | undefined;
77
- shipping_address?: {
78
- region?: string | undefined;
79
- locality?: string | undefined;
80
- last_name?: string | undefined;
81
- first_name?: string | undefined;
82
- postal_code?: string | undefined;
83
- country_code?: string | undefined;
84
- street_address?: string | undefined;
85
- extended_address?: string | undefined;
86
- } | undefined;
87
- merchant_account_id?: string | undefined;
88
- };
89
- payment_method_id: string;
90
- options?: Record<string, unknown> | undefined;
91
- };
92
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const paypalChargePaymentMethod: AppAction<typeof PaypalChargePaymentMethodInput, typeof PaypalChargePaymentMethodOutput, typeof paypal.credential>;
93
53
  //#endregion
94
54
  export { paypalChargePaymentMethod };
95
55
  //# sourceMappingURL=charge-payment-method.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"charge-payment-method.d.mts","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMpC,MAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"charge-payment-method.d.mts","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,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 paypalChargePaymentMethod = action("PAYPAL_CHARGE_PAYMENT_METHOD", {
@@ -1 +1 @@
1
- {"version":3,"file":"charge-payment-method.mjs","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalChargePaymentMethodInput = z.object({\n input: z.object({\n options: z.record(z.string(), z.unknown()).describe(\"Additional options for the charge operation such as submit for settlement immediately.\").optional(),\n transaction: z.object({\n amount: z.string().describe(\"The amount to charge. Must be a string representation of a decimal monetary value.\"),\n channel: z.string().describe(\"The channel through which the transaction was initiated.\").optional(),\n order_id: z.string().describe(\"The order ID for tracking the transaction.\").optional(),\n line_items: z.array(z.object({\n kind: z.string().describe(\"The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).\").optional(),\n name: z.string().describe(\"The name of the line item.\").optional(),\n quantity: z.string().describe(\"The quantity of the line item.\").optional(),\n description: z.string().describe(\"A description of the line item.\").optional(),\n unit_amount: z.string().describe(\"The unit amount for this line item.\").optional(),\n total_amount: z.string().describe(\"The total amount for this line item.\").optional(),\n}).passthrough().describe(\"Line item for transaction details.\")).describe(\"Line items for the transaction.\").optional(),\n tax_exempt: z.boolean().describe(\"Whether the transaction is tax exempt.\").optional(),\n device_data: z.string().describe(\"A JSON string containing device information for fraud prevention.\").optional(),\n billing_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n shipping_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n merchant_account_id: z.string().describe(\"The merchant account ID to use for the transaction. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"The transaction details including amount and optional configuration.\"),\n payment_method_id: z.string().describe(\"The unique identifier of the payment method to charge.\"),\n}).describe(\"The input containing the payment method ID and transaction details.\"),\n}).describe(\"Request model for charging a payment method via Braintree GraphQL API.\\n\\nUse this action when you need to charge a customer's payment method (credit card,\\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\\ntransaction and captures funds immediately, beginning the process of transferring\\nmoney from the customer to your merchant account.\\n\\nThis action requires a valid payment method ID obtained from a previous tokenization\\noperation (e.g., client-side tokenization via Braintree client SDK).\");\nexport const PaypalChargePaymentMethodOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The response data containing the transaction result.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the mutation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for charging a payment method.\\n\\nContains the transaction result or error information.\");\n\nexport const paypalChargePaymentMethod = action(\"PAYPAL_CHARGE_PAYMENT_METHOD\", {\n slug: \"paypal-charge-payment-method\",\n name: \"Charge Payment Method\",\n description: \"Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.\",\n input: PaypalChargePaymentMethodInput,\n output: PaypalChargePaymentMethodOutput,\n});\n"],"mappings":";;AAmDA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnD4C,EAAE,OAAO,EACrD,OAAO,EAAE,OAAO;EAChB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACvJ,aAAa,EAAE,OAAO;GACtB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;GAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;GAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;GACrF,YAAY,EAAE,MAAM,EAAE,OAAO;IAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;IACjH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;IACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;IACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;IAC7E,aAAa,EAAE,OAAO,CAAC,CA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AS;IAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;IAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;IAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;IAC3E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;IACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GAC/E,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;GAC/D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EAChK,CAAC,CAAC,CAAC,SAAS,sEAAsE;EAChF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACjG,CAAC,CAAC,CAAC,SAAS,qEAAqE,EACjF,CAAC,CAAC,CAAC,SAAS,ohBAUH;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"charge-payment-method.mjs","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalChargePaymentMethodInput = z.object({\n input: z.object({\n options: z.record(z.string(), z.unknown()).describe(\"Additional options for the charge operation such as submit for settlement immediately.\").optional(),\n transaction: z.object({\n amount: z.string().describe(\"The amount to charge. Must be a string representation of a decimal monetary value.\"),\n channel: z.string().describe(\"The channel through which the transaction was initiated.\").optional(),\n order_id: z.string().describe(\"The order ID for tracking the transaction.\").optional(),\n line_items: z.array(z.object({\n kind: z.string().describe(\"The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).\").optional(),\n name: z.string().describe(\"The name of the line item.\").optional(),\n quantity: z.string().describe(\"The quantity of the line item.\").optional(),\n description: z.string().describe(\"A description of the line item.\").optional(),\n unit_amount: z.string().describe(\"The unit amount for this line item.\").optional(),\n total_amount: z.string().describe(\"The total amount for this line item.\").optional(),\n}).passthrough().describe(\"Line item for transaction details.\")).describe(\"Line items for the transaction.\").optional(),\n tax_exempt: z.boolean().describe(\"Whether the transaction is tax exempt.\").optional(),\n device_data: z.string().describe(\"A JSON string containing device information for fraud prevention.\").optional(),\n billing_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n shipping_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n merchant_account_id: z.string().describe(\"The merchant account ID to use for the transaction. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"The transaction details including amount and optional configuration.\"),\n payment_method_id: z.string().describe(\"The unique identifier of the payment method to charge.\"),\n}).describe(\"The input containing the payment method ID and transaction details.\"),\n}).describe(\"Request model for charging a payment method via Braintree GraphQL API.\\n\\nUse this action when you need to charge a customer's payment method (credit card,\\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\\ntransaction and captures funds immediately, beginning the process of transferring\\nmoney from the customer to your merchant account.\\n\\nThis action requires a valid payment method ID obtained from a previous tokenization\\noperation (e.g., client-side tokenization via Braintree client SDK).\");\nexport const PaypalChargePaymentMethodOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The response data containing the transaction result.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the mutation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for charging a payment method.\\n\\nContains the transaction result or error information.\");\n\nexport const paypalChargePaymentMethod: AppAction<\n typeof PaypalChargePaymentMethodInput,\n typeof PaypalChargePaymentMethodOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CHARGE_PAYMENT_METHOD\", {\n slug: \"paypal-charge-payment-method\",\n name: \"Charge Payment Method\",\n description: \"Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.\",\n input: PaypalChargePaymentMethodInput,\n output: PaypalChargePaymentMethodOutput,\n});\n"],"mappings":";;;AAqDA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvD4C,EAAE,OAAO,EACrD,OAAO,EAAE,OAAO;EAChB,SAAS,EAAE,OAAO,EAAE,O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