@keystrokehq/paypal 0.1.2 → 0.1.4

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 (509) hide show
  1. package/dist/actions/activate-plan.cjs +1 -1
  2. package/dist/actions/activate-plan.cjs.map +1 -1
  3. package/dist/actions/activate-plan.d.cts +14 -2
  4. package/dist/actions/activate-plan.d.mts +14 -2
  5. package/dist/actions/activate-plan.mjs +1 -1
  6. package/dist/actions/activate-plan.mjs.map +1 -1
  7. package/dist/actions/add-batch-trackers.cjs +5 -5
  8. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  9. package/dist/actions/add-batch-trackers.d.cts +21 -8
  10. package/dist/actions/add-batch-trackers.d.mts +21 -8
  11. package/dist/actions/add-batch-trackers.mjs +5 -5
  12. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  13. package/dist/actions/authorize-order.cjs +16 -16
  14. package/dist/actions/authorize-order.cjs.map +1 -1
  15. package/dist/actions/authorize-order.d.cts +34 -22
  16. package/dist/actions/authorize-order.d.cts.map +1 -1
  17. package/dist/actions/authorize-order.d.mts +34 -22
  18. package/dist/actions/authorize-order.d.mts.map +1 -1
  19. package/dist/actions/authorize-order.mjs +16 -16
  20. package/dist/actions/authorize-order.mjs.map +1 -1
  21. package/dist/actions/cancel-invoice.cjs +3 -3
  22. package/dist/actions/cancel-invoice.cjs.map +1 -1
  23. package/dist/actions/cancel-invoice.d.cts +16 -4
  24. package/dist/actions/cancel-invoice.d.mts +16 -4
  25. package/dist/actions/cancel-invoice.mjs +3 -3
  26. package/dist/actions/cancel-invoice.mjs.map +1 -1
  27. package/dist/actions/cancel-reminders.cjs +3 -3
  28. package/dist/actions/cancel-reminders.cjs.map +1 -1
  29. package/dist/actions/cancel-reminders.d.cts +16 -4
  30. package/dist/actions/cancel-reminders.d.mts +16 -4
  31. package/dist/actions/cancel-reminders.mjs +3 -3
  32. package/dist/actions/cancel-reminders.mjs.map +1 -1
  33. package/dist/actions/capture-subscription-payment.cjs +9 -9
  34. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  35. package/dist/actions/capture-subscription-payment.d.cts +23 -11
  36. package/dist/actions/capture-subscription-payment.d.mts +23 -11
  37. package/dist/actions/capture-subscription-payment.mjs +9 -9
  38. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  39. package/dist/actions/charge-payment-method.cjs +1 -1
  40. package/dist/actions/charge-payment-method.cjs.map +1 -1
  41. package/dist/actions/charge-payment-method.d.cts +14 -2
  42. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  43. package/dist/actions/charge-payment-method.d.mts +14 -2
  44. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  45. package/dist/actions/charge-payment-method.mjs +1 -1
  46. package/dist/actions/charge-payment-method.mjs.map +1 -1
  47. package/dist/actions/create-invoice.cjs +22 -22
  48. package/dist/actions/create-invoice.cjs.map +1 -1
  49. package/dist/actions/create-invoice.d.cts +49 -34
  50. package/dist/actions/create-invoice.d.mts +49 -34
  51. package/dist/actions/create-invoice.mjs +22 -22
  52. package/dist/actions/create-invoice.mjs.map +1 -1
  53. package/dist/actions/create-payment.cjs +31 -31
  54. package/dist/actions/create-payment.cjs.map +1 -1
  55. package/dist/actions/create-payment.d.cts +55 -39
  56. package/dist/actions/create-payment.d.mts +55 -39
  57. package/dist/actions/create-payment.mjs +31 -31
  58. package/dist/actions/create-payment.mjs.map +1 -1
  59. package/dist/actions/create-payments-billing-plans.cjs +8 -8
  60. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  61. package/dist/actions/create-payments-billing-plans.d.cts +24 -10
  62. package/dist/actions/create-payments-billing-plans.d.mts +24 -10
  63. package/dist/actions/create-payments-billing-plans.mjs +8 -8
  64. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  65. package/dist/actions/create-plan.cjs +12 -12
  66. package/dist/actions/create-plan.cjs.map +1 -1
  67. package/dist/actions/create-plan.d.cts +27 -14
  68. package/dist/actions/create-plan.d.cts.map +1 -1
  69. package/dist/actions/create-plan.d.mts +27 -14
  70. package/dist/actions/create-plan.d.mts.map +1 -1
  71. package/dist/actions/create-plan.mjs +12 -12
  72. package/dist/actions/create-plan.mjs.map +1 -1
  73. package/dist/actions/create-product.cjs +2 -2
  74. package/dist/actions/create-product.cjs.map +1 -1
  75. package/dist/actions/create-product.d.cts +15 -3
  76. package/dist/actions/create-product.d.mts +15 -3
  77. package/dist/actions/create-product.mjs +2 -2
  78. package/dist/actions/create-product.mjs.map +1 -1
  79. package/dist/actions/create-subscription.cjs +15 -15
  80. package/dist/actions/create-subscription.cjs.map +1 -1
  81. package/dist/actions/create-subscription.d.cts +34 -21
  82. package/dist/actions/create-subscription.d.mts +34 -21
  83. package/dist/actions/create-subscription.mjs +15 -15
  84. package/dist/actions/create-subscription.mjs.map +1 -1
  85. package/dist/actions/create-template.cjs +25 -25
  86. package/dist/actions/create-template.cjs.map +1 -1
  87. package/dist/actions/create-template.d.cts +49 -31
  88. package/dist/actions/create-template.d.mts +49 -31
  89. package/dist/actions/create-template.mjs +25 -25
  90. package/dist/actions/create-template.mjs.map +1 -1
  91. package/dist/actions/create-web-profile.cjs +5 -5
  92. package/dist/actions/create-web-profile.cjs.map +1 -1
  93. package/dist/actions/create-web-profile.d.cts +18 -6
  94. package/dist/actions/create-web-profile.d.mts +18 -6
  95. package/dist/actions/create-web-profile.mjs +5 -5
  96. package/dist/actions/create-web-profile.mjs.map +1 -1
  97. package/dist/actions/create-webhook-lookup.cjs +2 -2
  98. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  99. package/dist/actions/create-webhook-lookup.d.cts +15 -3
  100. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  101. package/dist/actions/create-webhook-lookup.d.mts +15 -3
  102. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  103. package/dist/actions/create-webhook-lookup.mjs +2 -2
  104. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  105. package/dist/actions/create-webhook.cjs +4 -4
  106. package/dist/actions/create-webhook.cjs.map +1 -1
  107. package/dist/actions/create-webhook.d.cts +18 -5
  108. package/dist/actions/create-webhook.d.mts +18 -5
  109. package/dist/actions/create-webhook.mjs +4 -4
  110. package/dist/actions/create-webhook.mjs.map +1 -1
  111. package/dist/actions/deactivate-plan.cjs +1 -1
  112. package/dist/actions/deactivate-plan.cjs.map +1 -1
  113. package/dist/actions/deactivate-plan.d.cts +14 -2
  114. package/dist/actions/deactivate-plan.d.mts +14 -2
  115. package/dist/actions/deactivate-plan.mjs +1 -1
  116. package/dist/actions/deactivate-plan.mjs.map +1 -1
  117. package/dist/actions/delete-external-payment.cjs +1 -1
  118. package/dist/actions/delete-external-payment.cjs.map +1 -1
  119. package/dist/actions/delete-external-payment.d.cts +14 -2
  120. package/dist/actions/delete-external-payment.d.mts +14 -2
  121. package/dist/actions/delete-external-payment.mjs +1 -1
  122. package/dist/actions/delete-external-payment.mjs.map +1 -1
  123. package/dist/actions/delete-invoice-payment-record.cjs +1 -1
  124. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  125. package/dist/actions/delete-invoice-payment-record.d.cts +14 -2
  126. package/dist/actions/delete-invoice-payment-record.d.mts +14 -2
  127. package/dist/actions/delete-invoice-payment-record.mjs +1 -1
  128. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  129. package/dist/actions/delete-invoice-refund-record.cjs +1 -1
  130. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  131. package/dist/actions/delete-invoice-refund-record.d.cts +14 -2
  132. package/dist/actions/delete-invoice-refund-record.d.mts +14 -2
  133. package/dist/actions/delete-invoice-refund-record.mjs +1 -1
  134. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  135. package/dist/actions/delete-invoice.cjs +3 -3
  136. package/dist/actions/delete-invoice.cjs.map +1 -1
  137. package/dist/actions/delete-invoice.d.cts +16 -4
  138. package/dist/actions/delete-invoice.d.mts +16 -4
  139. package/dist/actions/delete-invoice.mjs +3 -3
  140. package/dist/actions/delete-invoice.mjs.map +1 -1
  141. package/dist/actions/delete-payment-resource.cjs +1 -1
  142. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  143. package/dist/actions/delete-payment-resource.d.cts +14 -2
  144. package/dist/actions/delete-payment-resource.d.mts +14 -2
  145. package/dist/actions/delete-payment-resource.mjs +1 -1
  146. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  147. package/dist/actions/delete-template.cjs +3 -3
  148. package/dist/actions/delete-template.cjs.map +1 -1
  149. package/dist/actions/delete-template.d.cts +16 -4
  150. package/dist/actions/delete-template.d.mts +16 -4
  151. package/dist/actions/delete-template.mjs +3 -3
  152. package/dist/actions/delete-template.mjs.map +1 -1
  153. package/dist/actions/delete-web-profile.cjs +1 -1
  154. package/dist/actions/delete-web-profile.cjs.map +1 -1
  155. package/dist/actions/delete-web-profile.d.cts +14 -2
  156. package/dist/actions/delete-web-profile.d.mts +14 -2
  157. package/dist/actions/delete-web-profile.mjs +1 -1
  158. package/dist/actions/delete-web-profile.mjs.map +1 -1
  159. package/dist/actions/delete-webhook.cjs +3 -3
  160. package/dist/actions/delete-webhook.cjs.map +1 -1
  161. package/dist/actions/delete-webhook.d.cts +16 -4
  162. package/dist/actions/delete-webhook.d.mts +16 -4
  163. package/dist/actions/delete-webhook.mjs +3 -3
  164. package/dist/actions/delete-webhook.mjs.map +1 -1
  165. package/dist/actions/fetch-node.cjs +5 -5
  166. package/dist/actions/fetch-node.cjs.map +1 -1
  167. package/dist/actions/fetch-node.d.cts +18 -6
  168. package/dist/actions/fetch-node.d.mts +18 -6
  169. package/dist/actions/fetch-node.mjs +5 -5
  170. package/dist/actions/fetch-node.mjs.map +1 -1
  171. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +3 -3
  172. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  173. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +16 -4
  174. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +16 -4
  175. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +3 -3
  176. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  177. package/dist/actions/find-eligible-methods.cjs +7 -7
  178. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  179. package/dist/actions/find-eligible-methods.d.cts +24 -11
  180. package/dist/actions/find-eligible-methods.d.mts +24 -11
  181. package/dist/actions/find-eligible-methods.mjs +7 -7
  182. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  183. package/dist/actions/generate-client-token.cjs +1 -1
  184. package/dist/actions/generate-client-token.cjs.map +1 -1
  185. package/dist/actions/generate-client-token.d.cts +14 -2
  186. package/dist/actions/generate-client-token.d.cts.map +1 -1
  187. package/dist/actions/generate-client-token.d.mts +14 -2
  188. package/dist/actions/generate-client-token.d.mts.map +1 -1
  189. package/dist/actions/generate-client-token.mjs +1 -1
  190. package/dist/actions/generate-client-token.mjs.map +1 -1
  191. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -1
  192. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  193. package/dist/actions/generate-next-invoice-number-v2.d.cts +14 -2
  194. package/dist/actions/generate-next-invoice-number-v2.d.mts +14 -2
  195. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -1
  196. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  197. package/dist/actions/generate-next-invoice-number.cjs +1 -1
  198. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  199. package/dist/actions/generate-next-invoice-number.d.cts +14 -2
  200. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  201. package/dist/actions/generate-next-invoice-number.d.mts +14 -2
  202. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  203. package/dist/actions/generate-next-invoice-number.mjs +1 -1
  204. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  205. package/dist/actions/generate-qr-code.cjs +4 -4
  206. package/dist/actions/generate-qr-code.cjs.map +1 -1
  207. package/dist/actions/generate-qr-code.d.cts +17 -5
  208. package/dist/actions/generate-qr-code.d.mts +17 -5
  209. package/dist/actions/generate-qr-code.mjs +4 -4
  210. package/dist/actions/generate-qr-code.mjs.map +1 -1
  211. package/dist/actions/get-billing-subscriptions.cjs +10 -10
  212. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  213. package/dist/actions/get-billing-subscriptions.d.cts +24 -12
  214. package/dist/actions/get-billing-subscriptions.d.mts +24 -12
  215. package/dist/actions/get-billing-subscriptions.mjs +10 -10
  216. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  217. package/dist/actions/get-invoice.cjs +24 -24
  218. package/dist/actions/get-invoice.cjs.map +1 -1
  219. package/dist/actions/get-invoice.d.cts +45 -33
  220. package/dist/actions/get-invoice.d.mts +45 -33
  221. package/dist/actions/get-invoice.mjs +24 -24
  222. package/dist/actions/get-invoice.mjs.map +1 -1
  223. package/dist/actions/get-invoicing-invoices-qr-code.cjs +2 -2
  224. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  225. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +15 -3
  226. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +15 -3
  227. package/dist/actions/get-invoicing-invoices-qr-code.mjs +2 -2
  228. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  229. package/dist/actions/get-invoicing-template.cjs +20 -20
  230. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  231. package/dist/actions/get-invoicing-template.d.cts +42 -30
  232. package/dist/actions/get-invoicing-template.d.mts +42 -30
  233. package/dist/actions/get-invoicing-template.mjs +20 -20
  234. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  235. package/dist/actions/get-order.cjs +16 -16
  236. package/dist/actions/get-order.cjs.map +1 -1
  237. package/dist/actions/get-order.d.cts +37 -25
  238. package/dist/actions/get-order.d.mts +37 -25
  239. package/dist/actions/get-order.mjs +16 -16
  240. package/dist/actions/get-order.mjs.map +1 -1
  241. package/dist/actions/get-payment.cjs +14 -14
  242. package/dist/actions/get-payment.cjs.map +1 -1
  243. package/dist/actions/get-payment.d.cts +35 -23
  244. package/dist/actions/get-payment.d.mts +35 -23
  245. package/dist/actions/get-payment.mjs +14 -14
  246. package/dist/actions/get-payment.mjs.map +1 -1
  247. package/dist/actions/get-payments-refund.cjs +3 -3
  248. package/dist/actions/get-payments-refund.cjs.map +1 -1
  249. package/dist/actions/get-payments-refund.d.cts +16 -4
  250. package/dist/actions/get-payments-refund.d.mts +16 -4
  251. package/dist/actions/get-payments-refund.mjs +3 -3
  252. package/dist/actions/get-payments-refund.mjs.map +1 -1
  253. package/dist/actions/get-plan.cjs +11 -11
  254. package/dist/actions/get-plan.cjs.map +1 -1
  255. package/dist/actions/get-plan.d.cts +24 -12
  256. package/dist/actions/get-plan.d.mts +24 -12
  257. package/dist/actions/get-plan.mjs +11 -11
  258. package/dist/actions/get-plan.mjs.map +1 -1
  259. package/dist/actions/get-product.cjs +2 -2
  260. package/dist/actions/get-product.cjs.map +1 -1
  261. package/dist/actions/get-product.d.cts +15 -3
  262. package/dist/actions/get-product.d.mts +15 -3
  263. package/dist/actions/get-product.mjs +2 -2
  264. package/dist/actions/get-product.mjs.map +1 -1
  265. package/dist/actions/get-subscription.cjs +10 -10
  266. package/dist/actions/get-subscription.cjs.map +1 -1
  267. package/dist/actions/get-subscription.d.cts +26 -14
  268. package/dist/actions/get-subscription.d.mts +26 -14
  269. package/dist/actions/get-subscription.mjs +10 -10
  270. package/dist/actions/get-subscription.mjs.map +1 -1
  271. package/dist/actions/get-user-info.cjs +3 -3
  272. package/dist/actions/get-user-info.cjs.map +1 -1
  273. package/dist/actions/get-user-info.d.cts +16 -4
  274. package/dist/actions/get-user-info.d.mts +16 -4
  275. package/dist/actions/get-user-info.mjs +3 -3
  276. package/dist/actions/get-user-info.mjs.map +1 -1
  277. package/dist/actions/get-userinfo.cjs +3 -3
  278. package/dist/actions/get-userinfo.cjs.map +1 -1
  279. package/dist/actions/get-userinfo.d.cts +16 -4
  280. package/dist/actions/get-userinfo.d.mts +16 -4
  281. package/dist/actions/get-userinfo.mjs +3 -3
  282. package/dist/actions/get-userinfo.mjs.map +1 -1
  283. package/dist/actions/get-web-profile.cjs +4 -4
  284. package/dist/actions/get-web-profile.cjs.map +1 -1
  285. package/dist/actions/get-web-profile.d.cts +17 -5
  286. package/dist/actions/get-web-profile.d.mts +17 -5
  287. package/dist/actions/get-web-profile.mjs +4 -4
  288. package/dist/actions/get-web-profile.mjs.map +1 -1
  289. package/dist/actions/get-webhook-lookup.cjs +2 -2
  290. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  291. package/dist/actions/get-webhook-lookup.d.cts +15 -3
  292. package/dist/actions/get-webhook-lookup.d.mts +15 -3
  293. package/dist/actions/get-webhook-lookup.mjs +2 -2
  294. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  295. package/dist/actions/get-webhook.cjs +4 -4
  296. package/dist/actions/get-webhook.cjs.map +1 -1
  297. package/dist/actions/get-webhook.d.cts +17 -5
  298. package/dist/actions/get-webhook.d.mts +17 -5
  299. package/dist/actions/get-webhook.mjs +4 -4
  300. package/dist/actions/get-webhook.mjs.map +1 -1
  301. package/dist/actions/list-disputes.cjs +5 -5
  302. package/dist/actions/list-disputes.cjs.map +1 -1
  303. package/dist/actions/list-disputes.d.cts +19 -7
  304. package/dist/actions/list-disputes.d.mts +19 -7
  305. package/dist/actions/list-disputes.mjs +5 -5
  306. package/dist/actions/list-disputes.mjs.map +1 -1
  307. package/dist/actions/list-invoices.cjs +15 -15
  308. package/dist/actions/list-invoices.cjs.map +1 -1
  309. package/dist/actions/list-invoices.d.cts +32 -20
  310. package/dist/actions/list-invoices.d.mts +32 -20
  311. package/dist/actions/list-invoices.mjs +15 -15
  312. package/dist/actions/list-invoices.mjs.map +1 -1
  313. package/dist/actions/list-legacy-billing-plans.cjs +7 -7
  314. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  315. package/dist/actions/list-legacy-billing-plans.d.cts +22 -10
  316. package/dist/actions/list-legacy-billing-plans.d.mts +22 -10
  317. package/dist/actions/list-legacy-billing-plans.mjs +7 -7
  318. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  319. package/dist/actions/list-payments.cjs +20 -20
  320. package/dist/actions/list-payments.cjs.map +1 -1
  321. package/dist/actions/list-payments.d.cts +40 -28
  322. package/dist/actions/list-payments.d.mts +40 -28
  323. package/dist/actions/list-payments.mjs +20 -20
  324. package/dist/actions/list-payments.mjs.map +1 -1
  325. package/dist/actions/list-plans.cjs +8 -8
  326. package/dist/actions/list-plans.cjs.map +1 -1
  327. package/dist/actions/list-plans.d.cts +22 -10
  328. package/dist/actions/list-plans.d.mts +22 -10
  329. package/dist/actions/list-plans.mjs +8 -8
  330. package/dist/actions/list-plans.mjs.map +1 -1
  331. package/dist/actions/list-products.cjs +3 -3
  332. package/dist/actions/list-products.cjs.map +1 -1
  333. package/dist/actions/list-products.d.cts +17 -5
  334. package/dist/actions/list-products.d.mts +17 -5
  335. package/dist/actions/list-products.mjs +3 -3
  336. package/dist/actions/list-products.mjs.map +1 -1
  337. package/dist/actions/list-templates.cjs +8 -8
  338. package/dist/actions/list-templates.cjs.map +1 -1
  339. package/dist/actions/list-templates.d.cts +22 -10
  340. package/dist/actions/list-templates.d.mts +22 -10
  341. package/dist/actions/list-templates.mjs +8 -8
  342. package/dist/actions/list-templates.mjs.map +1 -1
  343. package/dist/actions/list-web-profiles.cjs +6 -6
  344. package/dist/actions/list-web-profiles.cjs.map +1 -1
  345. package/dist/actions/list-web-profiles.d.cts +19 -7
  346. package/dist/actions/list-web-profiles.d.mts +19 -7
  347. package/dist/actions/list-web-profiles.mjs +6 -6
  348. package/dist/actions/list-web-profiles.mjs.map +1 -1
  349. package/dist/actions/list-webhook-event-type-subscriptions.cjs +3 -3
  350. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  351. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -4
  352. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -4
  353. package/dist/actions/list-webhook-event-type-subscriptions.mjs +3 -3
  354. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  355. package/dist/actions/list-webhook-event-types.cjs +3 -3
  356. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  357. package/dist/actions/list-webhook-event-types.d.cts +16 -4
  358. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  359. package/dist/actions/list-webhook-event-types.d.mts +16 -4
  360. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  361. package/dist/actions/list-webhook-event-types.mjs +3 -3
  362. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  363. package/dist/actions/list-webhook-lookups.cjs +3 -3
  364. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  365. package/dist/actions/list-webhook-lookups.d.cts +16 -4
  366. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  367. package/dist/actions/list-webhook-lookups.d.mts +16 -4
  368. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  369. package/dist/actions/list-webhook-lookups.mjs +3 -3
  370. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  371. package/dist/actions/list-webhooks.cjs +2 -2
  372. package/dist/actions/list-webhooks.cjs.map +1 -1
  373. package/dist/actions/list-webhooks.d.cts +15 -3
  374. package/dist/actions/list-webhooks.d.mts +15 -3
  375. package/dist/actions/list-webhooks.mjs +2 -2
  376. package/dist/actions/list-webhooks.mjs.map +1 -1
  377. package/dist/actions/patch-orders.cjs +2 -2
  378. package/dist/actions/patch-orders.cjs.map +1 -1
  379. package/dist/actions/patch-orders.d.cts +16 -3
  380. package/dist/actions/patch-orders.d.cts.map +1 -1
  381. package/dist/actions/patch-orders.d.mts +16 -3
  382. package/dist/actions/patch-orders.d.mts.map +1 -1
  383. package/dist/actions/patch-orders.mjs +2 -2
  384. package/dist/actions/patch-orders.mjs.map +1 -1
  385. package/dist/actions/patch-plan.cjs +2 -2
  386. package/dist/actions/patch-plan.cjs.map +1 -1
  387. package/dist/actions/patch-plan.d.cts +16 -3
  388. package/dist/actions/patch-plan.d.mts +16 -3
  389. package/dist/actions/patch-plan.mjs +2 -2
  390. package/dist/actions/patch-plan.mjs.map +1 -1
  391. package/dist/actions/patch-subscription.cjs +3 -3
  392. package/dist/actions/patch-subscription.cjs.map +1 -1
  393. package/dist/actions/patch-subscription.d.cts +17 -4
  394. package/dist/actions/patch-subscription.d.cts.map +1 -1
  395. package/dist/actions/patch-subscription.d.mts +17 -4
  396. package/dist/actions/patch-subscription.d.mts.map +1 -1
  397. package/dist/actions/patch-subscription.mjs +3 -3
  398. package/dist/actions/patch-subscription.mjs.map +1 -1
  399. package/dist/actions/patch-web-profile.cjs +2 -2
  400. package/dist/actions/patch-web-profile.cjs.map +1 -1
  401. package/dist/actions/patch-web-profile.d.cts +16 -3
  402. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  403. package/dist/actions/patch-web-profile.d.mts +16 -3
  404. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  405. package/dist/actions/patch-web-profile.mjs +2 -2
  406. package/dist/actions/patch-web-profile.mjs.map +1 -1
  407. package/dist/actions/ping-braintree.cjs +2 -2
  408. package/dist/actions/ping-braintree.cjs.map +1 -1
  409. package/dist/actions/ping-braintree.d.cts +15 -3
  410. package/dist/actions/ping-braintree.d.cts.map +1 -1
  411. package/dist/actions/ping-braintree.d.mts +15 -3
  412. package/dist/actions/ping-braintree.d.mts.map +1 -1
  413. package/dist/actions/ping-braintree.mjs +2 -2
  414. package/dist/actions/ping-braintree.mjs.map +1 -1
  415. package/dist/actions/query-braintree-report.cjs +4 -4
  416. package/dist/actions/query-braintree-report.cjs.map +1 -1
  417. package/dist/actions/query-braintree-report.d.cts +17 -5
  418. package/dist/actions/query-braintree-report.d.mts +17 -5
  419. package/dist/actions/query-braintree-report.mjs +4 -4
  420. package/dist/actions/query-braintree-report.mjs.map +1 -1
  421. package/dist/actions/retrieve-payment-resource.cjs +11 -11
  422. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  423. package/dist/actions/retrieve-payment-resource.d.cts +25 -13
  424. package/dist/actions/retrieve-payment-resource.d.mts +25 -13
  425. package/dist/actions/retrieve-payment-resource.mjs +11 -11
  426. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  427. package/dist/actions/search-invoices.cjs +11 -11
  428. package/dist/actions/search-invoices.cjs.map +1 -1
  429. package/dist/actions/search-invoices.d.cts +28 -16
  430. package/dist/actions/search-invoices.d.mts +28 -16
  431. package/dist/actions/search-invoices.mjs +11 -11
  432. package/dist/actions/search-invoices.mjs.map +1 -1
  433. package/dist/actions/send-invoice.cjs +2 -2
  434. package/dist/actions/send-invoice.cjs.map +1 -1
  435. package/dist/actions/send-invoice.d.cts +15 -3
  436. package/dist/actions/send-invoice.d.mts +15 -3
  437. package/dist/actions/send-invoice.mjs +2 -2
  438. package/dist/actions/send-invoice.mjs.map +1 -1
  439. package/dist/actions/simulate-webhook-event.cjs +4 -4
  440. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  441. package/dist/actions/simulate-webhook-event.d.cts +17 -5
  442. package/dist/actions/simulate-webhook-event.d.mts +17 -5
  443. package/dist/actions/simulate-webhook-event.mjs +4 -4
  444. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  445. package/dist/actions/update-dispute.cjs +3 -3
  446. package/dist/actions/update-dispute.cjs.map +1 -1
  447. package/dist/actions/update-dispute.d.cts +17 -4
  448. package/dist/actions/update-dispute.d.mts +17 -4
  449. package/dist/actions/update-dispute.mjs +3 -3
  450. package/dist/actions/update-dispute.mjs.map +1 -1
  451. package/dist/actions/update-invoice.cjs +34 -34
  452. package/dist/actions/update-invoice.cjs.map +1 -1
  453. package/dist/actions/update-invoice.d.cts +67 -49
  454. package/dist/actions/update-invoice.d.cts.map +1 -1
  455. package/dist/actions/update-invoice.d.mts +67 -49
  456. package/dist/actions/update-invoice.d.mts.map +1 -1
  457. package/dist/actions/update-invoice.mjs +34 -34
  458. package/dist/actions/update-invoice.mjs.map +1 -1
  459. package/dist/actions/update-pay-pal-product.cjs +2 -2
  460. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  461. package/dist/actions/update-pay-pal-product.d.cts +16 -3
  462. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  463. package/dist/actions/update-pay-pal-product.d.mts +16 -3
  464. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  465. package/dist/actions/update-pay-pal-product.mjs +2 -2
  466. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  467. package/dist/actions/update-pay-pal-webhook.cjs +4 -4
  468. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  469. package/dist/actions/update-pay-pal-webhook.d.cts +18 -5
  470. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  471. package/dist/actions/update-pay-pal-webhook.d.mts +18 -5
  472. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  473. package/dist/actions/update-pay-pal-webhook.mjs +4 -4
  474. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  475. package/dist/actions/update-templates.cjs +39 -39
  476. package/dist/actions/update-templates.cjs.map +1 -1
  477. package/dist/actions/update-templates.d.cts +78 -57
  478. package/dist/actions/update-templates.d.mts +78 -57
  479. package/dist/actions/update-templates.mjs +39 -39
  480. package/dist/actions/update-templates.mjs.map +1 -1
  481. package/dist/actions/update-web-profile.cjs +2 -2
  482. package/dist/actions/update-web-profile.cjs.map +1 -1
  483. package/dist/actions/update-web-profile.d.cts +15 -3
  484. package/dist/actions/update-web-profile.d.mts +15 -3
  485. package/dist/actions/update-web-profile.mjs +2 -2
  486. package/dist/actions/update-web-profile.mjs.map +1 -1
  487. package/dist/actions/verify-payment-method.cjs +2 -2
  488. package/dist/actions/verify-payment-method.cjs.map +1 -1
  489. package/dist/actions/verify-payment-method.d.cts +15 -3
  490. package/dist/actions/verify-payment-method.d.mts +15 -3
  491. package/dist/actions/verify-payment-method.mjs +2 -2
  492. package/dist/actions/verify-payment-method.mjs.map +1 -1
  493. package/dist/actions/verify-webhook-signature.cjs +1 -1
  494. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  495. package/dist/actions/verify-webhook-signature.d.cts +14 -2
  496. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  497. package/dist/actions/verify-webhook-signature.d.mts +14 -2
  498. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  499. package/dist/actions/verify-webhook-signature.mjs +1 -1
  500. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  501. package/dist/app.cjs +5 -2
  502. package/dist/app.cjs.map +1 -1
  503. package/dist/app.d.cts +9 -1
  504. package/dist/app.d.cts.map +1 -1
  505. package/dist/app.d.mts +9 -1
  506. package/dist/app.d.mts.map +1 -1
  507. package/dist/app.mjs +3 -1
  508. package/dist/app.mjs.map +1 -1
  509. package/package.json +1 -1
@@ -5,9 +5,9 @@ const PaypalFinalizePayPalBraintreeDisputeInput = zod.z.object({ dispute_id: zod
5
5
  const PaypalFinalizePayPalBraintreeDispute_DisputeSchema = zod.z.object({
6
6
  id: zod.z.string().describe("The unique identifier for the dispute.").nullable().optional(),
7
7
  status: zod.z.string().describe("The current status of the dispute after finalization.").nullable().optional()
8
- }).describe("The dispute object returned after finalizing a dispute.");
9
- const PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = zod.z.object({ dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional() }).describe("The payload returned after finalizing a dispute.");
10
- const PaypalFinalizePayPalBraintreeDisputeOutput = zod.z.object({ finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional() }).describe("Response schema for finalizing a Braintree dispute.");
8
+ }).passthrough().describe("The dispute object returned after finalizing a dispute.");
9
+ const PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = zod.z.object({ dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional() }).passthrough().describe("The payload returned after finalizing a dispute.");
10
+ const PaypalFinalizePayPalBraintreeDisputeOutput = zod.z.object({ finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional() }).passthrough().describe("Response schema for finalizing a Braintree dispute.");
11
11
  const paypalFinalizePayPalBraintreeDispute = require_action.action("PAYPAL_FINALIZE_PAY_PAL_BRAINTREE_DISPUTE", {
12
12
  slug: "paypal-finalize-pay-pal-braintree-dispute",
13
13
  name: "Finalize Braintree Dispute",
@@ -1 +1 @@
1
- {"version":3,"file":"finalize-pay-pal-braintree-dispute.cjs","names":["z","action"],"sources":["../../src/actions/finalize-pay-pal-braintree-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFinalizePayPalBraintreeDisputeInput = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to finalize. Only disputes with a status of OPEN can be finalized.\"),\n}).describe(\"Request schema for finalizing a Braintree dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_DisputeSchema = z.object({\n id: z.string().describe(\"The unique identifier for the dispute.\").nullable().optional(),\n status: z.string().describe(\"The current status of the dispute after finalization.\").nullable().optional(),\n}).describe(\"The dispute object returned after finalizing a dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = z.object({\n dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional(),\n}).describe(\"The payload returned after finalizing a dispute.\");\nexport const PaypalFinalizePayPalBraintreeDisputeOutput = z.object({\n finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional(),\n}).describe(\"Response schema for finalizing a Braintree dispute.\");\n\nexport const paypalFinalizePayPalBraintreeDispute = action(\"PAYPAL_FINALIZE_PAY_PAL_BRAINTREE_DISPUTE\", {\n slug: \"paypal-finalize-pay-pal-braintree-dispute\",\n name: \"Finalize Braintree Dispute\",\n description: \"Finalizes a Braintree dispute after adding evidence, submitting it to the cardholder's bank for review. Use this action when you have finished adding evidence to an OPEN dispute and want to formally submit it for review. Only disputes with a status of OPEN can be finalized. This action must be performed before the reply-by date deadline. Once finalized, the dispute cannot be modified or additional evidence added. Note: This action uses the Braintree GraphQL API endpoint, which is separate from the standard PayPal REST API.\",\n input: PaypalFinalizePayPalBraintreeDisputeInput,\n output: PaypalFinalizePayPalBraintreeDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,EAC5H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,oEAAoEA,IAAAA,EAAE,OAAO,EACjF,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,iBAAiB,kEAAkE,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"finalize-pay-pal-braintree-dispute.cjs","names":["z","action"],"sources":["../../src/actions/finalize-pay-pal-braintree-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFinalizePayPalBraintreeDisputeInput = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to finalize. Only disputes with a status of OPEN can be finalized.\"),\n}).describe(\"Request schema for finalizing a Braintree dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_DisputeSchema = z.object({\n id: z.string().describe(\"The unique identifier for the dispute.\").nullable().optional(),\n status: z.string().describe(\"The current status of the dispute after finalization.\").nullable().optional(),\n}).passthrough().describe(\"The dispute object returned after finalizing a dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = z.object({\n dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional(),\n}).passthrough().describe(\"The payload returned after finalizing a dispute.\");\nexport const PaypalFinalizePayPalBraintreeDisputeOutput = z.object({\n finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for finalizing a Braintree dispute.\");\n\nexport const paypalFinalizePayPalBraintreeDispute = action(\"PAYPAL_FINALIZE_PAY_PAL_BRAINTREE_DISPUTE\", {\n slug: \"paypal-finalize-pay-pal-braintree-dispute\",\n name: \"Finalize Braintree Dispute\",\n description: \"Finalizes a Braintree dispute after adding evidence, submitting it to the cardholder's bank for review. Use this action when you have finished adding evidence to an OPEN dispute and want to formally submit it for review. Only disputes with a status of OPEN can be finalized. This action must be performed before the reply-by date deadline. Once finalized, the dispute cannot be modified or additional evidence added. Note: This action uses the Braintree GraphQL API endpoint, which is separate from the standard PayPal REST API.\",\n input: PaypalFinalizePayPalBraintreeDisputeInput,\n output: PaypalFinalizePayPalBraintreeDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,EAC5H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,oEAAoEA,IAAAA,EAAE,OAAO,EACjF,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,iBAAiB,kEAAkE,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,12 +9,24 @@ declare const PaypalFinalizePayPalBraintreeDisputeOutput: z.ZodObject<{
9
9
  dispute: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
10
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, z.core.$strip>>>;
13
- }, z.core.$strip>>>;
14
- }, z.core.$strip>;
12
+ }, z.core.$loose>>>;
13
+ }, z.core.$loose>>>;
14
+ }, z.core.$loose>;
15
15
  declare const paypalFinalizePayPalBraintreeDispute: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  dispute_id: string;
17
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
18
+ connectionId: z.ZodString;
19
+ entityId: z.ZodString;
20
+ instanceId: z.ZodString;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ accessToken: z.ZodString;
23
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
24
+ connectionId: z.ZodString;
25
+ entityId: z.ZodString;
26
+ instanceId: z.ZodString;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ accessToken: z.ZodString;
29
+ }, z.core.$strip>>]>;
18
30
  //#endregion
19
31
  export { paypalFinalizePayPalBraintreeDispute };
20
32
  //# sourceMappingURL=finalize-pay-pal-braintree-dispute.d.cts.map
@@ -9,12 +9,24 @@ declare const PaypalFinalizePayPalBraintreeDisputeOutput: z.ZodObject<{
9
9
  dispute: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
10
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, z.core.$strip>>>;
13
- }, z.core.$strip>>>;
14
- }, z.core.$strip>;
12
+ }, z.core.$loose>>>;
13
+ }, z.core.$loose>>>;
14
+ }, z.core.$loose>;
15
15
  declare const paypalFinalizePayPalBraintreeDispute: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  dispute_id: string;
17
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
18
+ connectionId: z.ZodString;
19
+ entityId: z.ZodString;
20
+ instanceId: z.ZodString;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ accessToken: z.ZodString;
23
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
24
+ connectionId: z.ZodString;
25
+ entityId: z.ZodString;
26
+ instanceId: z.ZodString;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ accessToken: z.ZodString;
29
+ }, z.core.$strip>>]>;
18
30
  //#endregion
19
31
  export { paypalFinalizePayPalBraintreeDispute };
20
32
  //# sourceMappingURL=finalize-pay-pal-braintree-dispute.d.mts.map
@@ -5,14 +5,14 @@ const PaypalFinalizePayPalBraintreeDisputeInput = z.object({ dispute_id: z.strin
5
5
  const PaypalFinalizePayPalBraintreeDispute_DisputeSchema = z.object({
6
6
  id: z.string().describe("The unique identifier for the dispute.").nullable().optional(),
7
7
  status: z.string().describe("The current status of the dispute after finalization.").nullable().optional()
8
- }).describe("The dispute object returned after finalizing a dispute.");
9
- const PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = z.object({ dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional() }).describe("The payload returned after finalizing a dispute.");
8
+ }).passthrough().describe("The dispute object returned after finalizing a dispute.");
9
+ const PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = z.object({ dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional() }).passthrough().describe("The payload returned after finalizing a dispute.");
10
10
  const paypalFinalizePayPalBraintreeDispute = action("PAYPAL_FINALIZE_PAY_PAL_BRAINTREE_DISPUTE", {
11
11
  slug: "paypal-finalize-pay-pal-braintree-dispute",
12
12
  name: "Finalize Braintree Dispute",
13
13
  description: "Finalizes a Braintree dispute after adding evidence, submitting it to the cardholder's bank for review. Use this action when you have finished adding evidence to an OPEN dispute and want to formally submit it for review. Only disputes with a status of OPEN can be finalized. This action must be performed before the reply-by date deadline. Once finalized, the dispute cannot be modified or additional evidence added. Note: This action uses the Braintree GraphQL API endpoint, which is separate from the standard PayPal REST API.",
14
14
  input: PaypalFinalizePayPalBraintreeDisputeInput,
15
- output: z.object({ finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional() }).describe("Response schema for finalizing a Braintree dispute.")
15
+ output: z.object({ finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional() }).passthrough().describe("Response schema for finalizing a Braintree dispute.")
16
16
  });
17
17
  //#endregion
18
18
  export { paypalFinalizePayPalBraintreeDispute };
@@ -1 +1 @@
1
- {"version":3,"file":"finalize-pay-pal-braintree-dispute.mjs","names":[],"sources":["../../src/actions/finalize-pay-pal-braintree-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFinalizePayPalBraintreeDisputeInput = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to finalize. Only disputes with a status of OPEN can be finalized.\"),\n}).describe(\"Request schema for finalizing a Braintree dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_DisputeSchema = z.object({\n id: z.string().describe(\"The unique identifier for the dispute.\").nullable().optional(),\n status: z.string().describe(\"The current status of the dispute after finalization.\").nullable().optional(),\n}).describe(\"The dispute object returned after finalizing a dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = z.object({\n dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional(),\n}).describe(\"The payload returned after finalizing a dispute.\");\nexport const PaypalFinalizePayPalBraintreeDisputeOutput = z.object({\n finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional(),\n}).describe(\"Response schema for finalizing a Braintree dispute.\");\n\nexport const paypalFinalizePayPalBraintreeDispute = action(\"PAYPAL_FINALIZE_PAY_PAL_BRAINTREE_DISPUTE\", {\n slug: \"paypal-finalize-pay-pal-braintree-dispute\",\n name: \"Finalize Braintree Dispute\",\n description: \"Finalizes a Braintree dispute after adding evidence, submitting it to the cardholder's bank for review. Use this action when you have finished adding evidence to an OPEN dispute and want to formally submit it for review. Only disputes with a status of OPEN can be finalized. This action must be performed before the reply-by date deadline. Once finalized, the dispute cannot be modified or additional evidence added. Note: This action uses the Braintree GraphQL API endpoint, which is separate from the standard PayPal REST API.\",\n input: PaypalFinalizePayPalBraintreeDisputeInput,\n output: PaypalFinalizePayPalBraintreeDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO,EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,EAC5H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,oEAAoE,EAAE,OAAO,EACjF,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAK9D,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,iBAAiB,kEAAkE,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"finalize-pay-pal-braintree-dispute.mjs","names":[],"sources":["../../src/actions/finalize-pay-pal-braintree-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFinalizePayPalBraintreeDisputeInput = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to finalize. Only disputes with a status of OPEN can be finalized.\"),\n}).describe(\"Request schema for finalizing a Braintree dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_DisputeSchema = z.object({\n id: z.string().describe(\"The unique identifier for the dispute.\").nullable().optional(),\n status: z.string().describe(\"The current status of the dispute after finalization.\").nullable().optional(),\n}).passthrough().describe(\"The dispute object returned after finalizing a dispute.\");\nconst PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema = z.object({\n dispute: PaypalFinalizePayPalBraintreeDispute_DisputeSchema.nullable().optional(),\n}).passthrough().describe(\"The payload returned after finalizing a dispute.\");\nexport const PaypalFinalizePayPalBraintreeDisputeOutput = z.object({\n finalizeDispute: PaypalFinalizePayPalBraintreeDispute_FinalizeDisputePayloadSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for finalizing a Braintree dispute.\");\n\nexport const paypalFinalizePayPalBraintreeDispute = action(\"PAYPAL_FINALIZE_PAY_PAL_BRAINTREE_DISPUTE\", {\n slug: \"paypal-finalize-pay-pal-braintree-dispute\",\n name: \"Finalize Braintree Dispute\",\n description: \"Finalizes a Braintree dispute after adding evidence, submitting it to the cardholder's bank for review. Use this action when you have finished adding evidence to an OPEN dispute and want to formally submit it for review. Only disputes with a status of OPEN can be finalized. This action must be performed before the reply-by date deadline. Once finalized, the dispute cannot be modified or additional evidence added. Note: This action uses the Braintree GraphQL API endpoint, which is separate from the standard PayPal REST API.\",\n input: PaypalFinalizePayPalBraintreeDisputeInput,\n output: PaypalFinalizePayPalBraintreeDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO,EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,EAC5H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,oEAAoE,EAAE,OAAO,EACjF,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,iBAAiB,kEAAkE,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -40,40 +40,40 @@ const PaypalFindEligibleMethodsInput = zod.z.object({
40
40
  value: zod.z.string().describe("The monetary value, often in the format '10.00' with two decimal places."),
41
41
  currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
42
42
  }).describe("The currency and amount for the purchase unit.")
43
- }).describe("Purchase unit for payment eligibility.")).describe("An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.")
43
+ }).passthrough().describe("Purchase unit for payment eligibility.")).describe("An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.")
44
44
  }).describe("Request schema for finding eligible payment methods.\n\nUse this action when you need to discover which payment methods\nare available for a customer based on their country and purchase details.\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\n\n**Required fields:**\n- purchase_units: At least one purchase unit with amount information\n\n**Optional fields:**\n- customer: Customer information including country_code and email\n- preferences: Options for including vault tokens or specifying payment constraints");
45
45
  const PaypalFindEligibleMethods_LinkDescriptionSchema = zod.z.object({
46
46
  rel: zod.z.string().describe("The link relationship type.").nullable().optional(),
47
47
  href: zod.z.string().describe("The complete URL to the related resource.").nullable().optional(),
48
48
  method: zod.z.string().describe("The HTTP method required to access the resource.").nullable().optional()
49
- }).describe("HATEOAS link information.");
49
+ }).passthrough().describe("HATEOAS link information.");
50
50
  const PaypalFindEligibleMethods_PaymentSourceSchema = zod.z.object({
51
51
  name: zod.z.string().describe("The name on the payment source.").nullable().optional(),
52
52
  type: zod.z.string().describe("The type of the payment source.").nullable().optional(),
53
53
  source_id: zod.z.string().describe("The source ID of the vaulted instrument.").nullable().optional(),
54
54
  attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional attributes of the payment source.").nullable().optional(),
55
55
  email_address: zod.z.string().describe("The email address associated with the payment source.").nullable().optional()
56
- }).describe("The vaulted payment method details.");
56
+ }).passthrough().describe("The vaulted payment method details.");
57
57
  const PaypalFindEligibleMethods_PaymentTokenSchema = zod.z.object({
58
58
  id: zod.z.string().describe("The unique ID of the payment token.").nullable(),
59
59
  links: zod.z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe("An array of HATEOAS links related to this payment token.").nullable().optional(),
60
60
  payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional()
61
- }).describe("Payment token for a vaulted instrument.");
61
+ }).passthrough().describe("Payment token for a vaulted instrument.");
62
62
  const PaypalFindEligibleMethods_PaymentMethodDetailsSchema = zod.z.object({
63
63
  label: zod.z.string().describe("The display label for the payment method.").nullable().optional(),
64
64
  vault_status: zod.z.string().describe("The vault status if the payment method is vaulted.").nullable().optional(),
65
65
  product_usage: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Product-specific usage information for the payment method.").nullable().optional()
66
- }).describe("Details about an eligible payment method.");
66
+ }).passthrough().describe("Details about an eligible payment method.");
67
67
  const PaypalFindEligibleMethods_PaymentMethodsSchema = zod.z.object({
68
68
  venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
69
69
  paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
70
70
  paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
71
71
  paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional()
72
- }).describe("The eligible payment methods.");
72
+ }).passthrough().describe("The eligible payment methods.");
73
73
  const PaypalFindEligibleMethodsOutput = zod.z.object({
74
74
  payment_tokens: zod.z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe("Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.").nullable().optional(),
75
75
  eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional()
76
- }).describe("Response schema for find eligible payment methods.\n\nContains the list of eligible payment methods and optionally\nvaulted tokens if requested in the preferences.");
76
+ }).passthrough().describe("Response schema for find eligible payment methods.\n\nContains the list of eligible payment methods and optionally\nvaulted tokens if requested in the preferences.");
77
77
  const paypalFindEligibleMethods = require_action.action("PAYPAL_FIND_ELIGIBLE_METHODS", {
78
78
  slug: "paypal-find-eligible-methods",
79
79
  name: "Find eligible PayPal payment methods",
@@ -1 +1 @@
1
- {"version":3,"file":"find-eligible-methods.cjs","names":["z","action"],"sources":["../../src/actions/find-eligible-methods.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFindEligibleMethodsInput = z.object({\n customer: z.object({\n id: z.string().describe(\"The unique ID for a customer in merchant's or partner's system of records.\").optional(),\n email: z.string().describe(\"The internationalized email address.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"The country calling code, prefixed with '+' followed by the country code.\"),\n national_number: z.string().describe(\"The national number of the phone.\"),\n extension_number: z.string().describe(\"The extension number.\").optional(),\n}).describe(\"The phone number of the customer.\").optional(),\n channel: z.object({\n client_os: z.string().describe(\"The client operating system.\").optional(),\n device_type: z.string().describe(\"The type of device.\").optional(),\n browser_type: z.string().describe(\"The browser type of the customer.\").optional(),\n}).describe(\"The channel through which the customer is interacting with the merchant.\").optional(),\n country_code: z.string().describe(\"The country code of the customer, represented as the ISO 3166-1 alpha-2 country code.\").optional(),\n}).describe(\"Customer who is making a purchase from the merchant/partner.\").optional(),\n preferences: z.object({\n payment_flow: z.enum([\"ONE_TIME_PAYMENT\", \"RECURRING_PAYMENT\", \"VAULT_WITH_PAYMENT\", \"VAULT_WITHOUT_PAYMENT\"]).describe(\"Specifies the payment flow for eligibility assessment.\").optional(),\n include_vault_tokens: z.boolean().default(false).describe(\"If set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Defaults to false.\").optional(),\n include_account_details: z.boolean().default(false).describe(\"If set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Defaults to false.\").optional(),\n payment_source_constraint: z.object({\n constraint_type: z.enum([\"INCLUDE\", \"EXCLUDE\"]).describe(\"The constraint type for the payment sources. Use INCLUDE to restrict to specified sources, or EXCLUDE to exclude specified sources.\"),\n payment_sources: z.array(z.string()).describe(\"The list of payment sources to include or exclude based on the constraint_type.\"),\n}).describe(\"Payment source constraint defines the payment methods to include/exclude for eligibility assessment.\").optional(),\n}).describe(\"Preferences of merchant/partner consuming the API.\").optional(),\n purchase_units: z.array(z.object({\n payee: z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned ID for the payee.\").optional(),\n email_address: z.string().describe(\"The email address of the payee.\").optional(),\n}).describe(\"The payee details for the purchase unit.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The monetary value, often in the format '10.00' with two decimal places.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for the purchase unit.\"),\n}).describe(\"Purchase unit for payment eligibility.\")).describe(\"An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.\"),\n}).describe(\"Request schema for finding eligible payment methods.\\n\\nUse this action when you need to discover which payment methods\\nare available for a customer based on their country and purchase details.\\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\\n\\n**Required fields:**\\n- purchase_units: At least one purchase unit with amount information\\n\\n**Optional fields:**\\n- customer: Customer information including country_code and email\\n- preferences: Options for including vault tokens or specifying payment constraints\");\nconst PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalFindEligibleMethods_PaymentSourceSchema = z.object({\n name: z.string().describe(\"The name on the payment source.\").nullable().optional(),\n type: z.string().describe(\"The type of the payment source.\").nullable().optional(),\n source_id: z.string().describe(\"The source ID of the vaulted instrument.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional attributes of the payment source.\").nullable().optional(),\n email_address: z.string().describe(\"The email address associated with the payment source.\").nullable().optional(),\n}).describe(\"The vaulted payment method details.\");\nconst PaypalFindEligibleMethods_PaymentTokenSchema = z.object({\n id: z.string().describe(\"The unique ID of the payment token.\").nullable(),\n links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment token.\").nullable().optional(),\n payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional(),\n}).describe(\"Payment token for a vaulted instrument.\");\nconst PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({\n label: z.string().describe(\"The display label for the payment method.\").nullable().optional(),\n vault_status: z.string().describe(\"The vault status if the payment method is vaulted.\").nullable().optional(),\n product_usage: z.record(z.string(), z.unknown()).describe(\"Product-specific usage information for the payment method.\").nullable().optional(),\n}).describe(\"Details about an eligible payment method.\");\nconst PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({\n venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n}).describe(\"The eligible payment methods.\");\nexport const PaypalFindEligibleMethodsOutput = z.object({\n payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe(\"Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.\").nullable().optional(),\n eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional(),\n}).describe(\"Response schema for find eligible payment methods.\\n\\nContains the list of eligible payment methods and optionally\\nvaulted tokens if requested in the preferences.\");\n\nexport const paypalFindEligibleMethods = action(\"PAYPAL_FIND_ELIGIBLE_METHODS\", {\n slug: \"paypal-find-eligible-methods\",\n name: \"Find eligible PayPal payment methods\",\n description: \"Find a list of eligible payment methods for a customer. Use this action when you need to determine which payment methods (such as PayPal, PayPal Credit, Pay Later, or Venmo) are available for a customer based on their country and purchase details. This is useful for displaying appropriate payment options during checkout or determining payment eligibility before creating an order. The response includes available payment methods and optionally vaulted tokens if the customer has saved payment instruments. **Common use cases:** - Pre-checkout payment method availability - Display appropriate payment options to customers - Determine eligible funding sources for a transaction\",\n input: PaypalFindEligibleMethodsInput,\n output: PaypalFindEligibleMethodsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC/G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,OAAOA,IAAAA,EAAE,OAAO;GAChB,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;GAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;GACxE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC1E,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxD,SAASA,IAAAA,EAAE,OAAO;GAClB,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;GACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,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ions/find-eligible-methods.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFindEligibleMethodsInput = z.object({\n customer: z.object({\n id: z.string().describe(\"The unique ID for a customer in merchant's or partner's system of records.\").optional(),\n email: z.string().describe(\"The internationalized email address.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"The country calling code, prefixed with '+' followed by the country code.\"),\n national_number: z.string().describe(\"The national number of the phone.\"),\n extension_number: z.string().describe(\"The extension number.\").optional(),\n}).describe(\"The phone number of the customer.\").optional(),\n channel: z.object({\n client_os: z.string().describe(\"The client operating system.\").optional(),\n device_type: z.string().describe(\"The type of device.\").optional(),\n browser_type: z.string().describe(\"The browser type of the customer.\").optional(),\n}).describe(\"The channel through which the customer is interacting with the merchant.\").optional(),\n country_code: z.string().describe(\"The country code of the customer, represented as the ISO 3166-1 alpha-2 country code.\").optional(),\n}).describe(\"Customer who is making a purchase from the merchant/partner.\").optional(),\n preferences: z.object({\n payment_flow: z.enum([\"ONE_TIME_PAYMENT\", \"RECURRING_PAYMENT\", \"VAULT_WITH_PAYMENT\", \"VAULT_WITHOUT_PAYMENT\"]).describe(\"Specifies the payment flow for eligibility assessment.\").optional(),\n include_vault_tokens: z.boolean().default(false).describe(\"If set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Defaults to false.\").optional(),\n include_account_details: z.boolean().default(false).describe(\"If set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Defaults to false.\").optional(),\n payment_source_constraint: z.object({\n constraint_type: z.enum([\"INCLUDE\", \"EXCLUDE\"]).describe(\"The constraint type for the payment sources. Use INCLUDE to restrict to specified sources, or EXCLUDE to exclude specified sources.\"),\n payment_sources: z.array(z.string()).describe(\"The list of payment sources to include or exclude based on the constraint_type.\"),\n}).describe(\"Payment source constraint defines the payment methods to include/exclude for eligibility assessment.\").optional(),\n}).describe(\"Preferences of merchant/partner consuming the API.\").optional(),\n purchase_units: z.array(z.object({\n payee: z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned ID for the payee.\").optional(),\n email_address: z.string().describe(\"The email address of the payee.\").optional(),\n}).describe(\"The payee details for the purchase unit.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The monetary value, often in the format '10.00' with two decimal places.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for the purchase unit.\"),\n}).passthrough().describe(\"Purchase unit for payment eligibility.\")).describe(\"An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.\"),\n}).describe(\"Request schema for finding eligible payment methods.\\n\\nUse this action when you need to discover which payment methods\\nare available for a customer based on their country and purchase details.\\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\\n\\n**Required fields:**\\n- purchase_units: At least one purchase unit with amount information\\n\\n**Optional fields:**\\n- customer: Customer information including country_code and email\\n- preferences: Options for including vault tokens or specifying payment constraints\");\nconst PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalFindEligibleMethods_PaymentSourceSchema = z.object({\n name: z.string().describe(\"The name on the payment source.\").nullable().optional(),\n type: z.string().describe(\"The type of the payment source.\").nullable().optional(),\n source_id: z.string().describe(\"The source ID of the vaulted instrument.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional attributes of the payment source.\").nullable().optional(),\n email_address: z.string().describe(\"The email address associated with the payment source.\").nullable().optional(),\n}).passthrough().describe(\"The vaulted payment method details.\");\nconst PaypalFindEligibleMethods_PaymentTokenSchema = z.object({\n id: z.string().describe(\"The unique ID of the payment token.\").nullable(),\n links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment token.\").nullable().optional(),\n payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional(),\n}).passthrough().describe(\"Payment token for a vaulted instrument.\");\nconst PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({\n label: z.string().describe(\"The display label for the payment method.\").nullable().optional(),\n vault_status: z.string().describe(\"The vault status if the payment method is vaulted.\").nullable().optional(),\n product_usage: z.record(z.string(), z.unknown()).describe(\"Product-specific usage information for the payment method.\").nullable().optional(),\n}).passthrough().describe(\"Details about an eligible payment method.\");\nconst PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({\n venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"The eligible payment methods.\");\nexport const PaypalFindEligibleMethodsOutput = z.object({\n payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe(\"Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.\").nullable().optional(),\n eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for find eligible payment methods.\\n\\nContains the list of eligible payment methods and optionally\\nvaulted tokens if requested in the preferences.\");\n\nexport const paypalFindEligibleMethods = action(\"PAYPAL_FIND_ELIGIBLE_METHODS\", {\n slug: \"paypal-find-eligible-methods\",\n name: \"Find eligible PayPal payment methods\",\n description: \"Find a list of eligible payment methods for a customer. Use this action when you need to determine which payment methods (such as PayPal, PayPal Credit, Pay Later, or Venmo) are available for a customer based on their country and purchase details. This is useful for displaying appropriate payment options during checkout or determining payment eligibility before creating an order. The response includes available payment methods and optionally vaulted tokens if the customer has saved payment instruments. **Common use cases:** - Pre-checkout payment method availability - Display appropriate payment options to customers - Determine eligible funding sources for a transaction\",\n input: PaypalFindE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47
47
  }, z.core.$strip>;
48
48
  declare const PaypalFindEligibleMethodsOutput: z.ZodObject<{
49
49
  payment_tokens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -52,40 +52,41 @@ declare const PaypalFindEligibleMethodsOutput: z.ZodObject<{
52
52
  rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, z.core.$strip>>>>;
55
+ }, z.core.$loose>>>>;
56
56
  payment_source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
57
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
61
61
  email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- }, z.core.$strip>>>;
63
- }, z.core.$strip>>>>;
62
+ }, z.core.$loose>>>;
63
+ }, z.core.$loose>>>>;
64
64
  eligible_methods: z.ZodOptional<z.ZodNullable<z.ZodObject<{
65
65
  venmo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
66
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
67
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
69
- }, z.core.$strip>>>;
69
+ }, z.core.$loose>>>;
70
70
  paypal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
71
71
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
73
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
74
- }, z.core.$strip>>>;
74
+ }, z.core.$loose>>>;
75
75
  paypal_credit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
76
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
77
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
78
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
79
- }, z.core.$strip>>>;
79
+ }, z.core.$loose>>>;
80
80
  paypal_pay_later: z.ZodOptional<z.ZodNullable<z.ZodObject<{
81
81
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
82
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
83
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
84
- }, z.core.$strip>>>;
85
- }, z.core.$strip>>>;
86
- }, z.core.$strip>;
84
+ }, z.core.$loose>>>;
85
+ }, z.core.$loose>>>;
86
+ }, z.core.$loose>;
87
87
  declare const paypalFindEligibleMethods: import("@keystrokehq/action").WorkflowActionDefinition<{
88
88
  purchase_units: {
89
+ [x: string]: unknown;
89
90
  amount: {
90
91
  value: string;
91
92
  currency_code: string;
@@ -119,7 +120,19 @@ declare const paypalFindEligibleMethods: import("@keystrokehq/action").WorkflowA
119
120
  payment_sources: string[];
120
121
  } | undefined;
121
122
  } | undefined;
122
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
123
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
124
+ connectionId: z.ZodString;
125
+ entityId: z.ZodString;
126
+ instanceId: z.ZodString;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ accessToken: z.ZodString;
129
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
130
+ connectionId: z.ZodString;
131
+ entityId: z.ZodString;
132
+ instanceId: z.ZodString;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ accessToken: z.ZodString;
135
+ }, z.core.$strip>>]>;
123
136
  //#endregion
124
137
  export { paypalFindEligibleMethods };
125
138
  //# sourceMappingURL=find-eligible-methods.d.cts.map
@@ -43,7 +43,7 @@ declare const PaypalFindEligibleMethodsInput: z.ZodObject<{
43
43
  value: z.ZodString;
44
44
  currency_code: z.ZodString;
45
45
  }, z.core.$strip>;
46
- }, z.core.$strip>>;
46
+ }, z.core.$loose>>;
47
47
  }, z.core.$strip>;
48
48
  declare const PaypalFindEligibleMethodsOutput: z.ZodObject<{
49
49
  payment_tokens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -52,40 +52,41 @@ declare const PaypalFindEligibleMethodsOutput: z.ZodObject<{
52
52
  rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, z.core.$strip>>>>;
55
+ }, z.core.$loose>>>>;
56
56
  payment_source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
57
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
61
61
  email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- }, z.core.$strip>>>;
63
- }, z.core.$strip>>>>;
62
+ }, z.core.$loose>>>;
63
+ }, z.core.$loose>>>>;
64
64
  eligible_methods: z.ZodOptional<z.ZodNullable<z.ZodObject<{
65
65
  venmo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
66
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
67
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
69
- }, z.core.$strip>>>;
69
+ }, z.core.$loose>>>;
70
70
  paypal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
71
71
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
73
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
74
- }, z.core.$strip>>>;
74
+ }, z.core.$loose>>>;
75
75
  paypal_credit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
76
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
77
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
78
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
79
- }, z.core.$strip>>>;
79
+ }, z.core.$loose>>>;
80
80
  paypal_pay_later: z.ZodOptional<z.ZodNullable<z.ZodObject<{
81
81
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
82
  vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
83
  product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
84
- }, z.core.$strip>>>;
85
- }, z.core.$strip>>>;
86
- }, z.core.$strip>;
84
+ }, z.core.$loose>>>;
85
+ }, z.core.$loose>>>;
86
+ }, z.core.$loose>;
87
87
  declare const paypalFindEligibleMethods: import("@keystrokehq/action").WorkflowActionDefinition<{
88
88
  purchase_units: {
89
+ [x: string]: unknown;
89
90
  amount: {
90
91
  value: string;
91
92
  currency_code: string;
@@ -119,7 +120,19 @@ declare const paypalFindEligibleMethods: import("@keystrokehq/action").WorkflowA
119
120
  payment_sources: string[];
120
121
  } | undefined;
121
122
  } | undefined;
122
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
123
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
124
+ connectionId: z.ZodString;
125
+ entityId: z.ZodString;
126
+ instanceId: z.ZodString;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ accessToken: z.ZodString;
129
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
130
+ connectionId: z.ZodString;
131
+ entityId: z.ZodString;
132
+ instanceId: z.ZodString;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ accessToken: z.ZodString;
135
+ }, z.core.$strip>>]>;
123
136
  //#endregion
124
137
  export { paypalFindEligibleMethods };
125
138
  //# sourceMappingURL=find-eligible-methods.d.mts.map
@@ -40,36 +40,36 @@ const PaypalFindEligibleMethodsInput = z.object({
40
40
  value: z.string().describe("The monetary value, often in the format '10.00' with two decimal places."),
41
41
  currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
42
42
  }).describe("The currency and amount for the purchase unit.")
43
- }).describe("Purchase unit for payment eligibility.")).describe("An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.")
43
+ }).passthrough().describe("Purchase unit for payment eligibility.")).describe("An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.")
44
44
  }).describe("Request schema for finding eligible payment methods.\n\nUse this action when you need to discover which payment methods\nare available for a customer based on their country and purchase details.\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\n\n**Required fields:**\n- purchase_units: At least one purchase unit with amount information\n\n**Optional fields:**\n- customer: Customer information including country_code and email\n- preferences: Options for including vault tokens or specifying payment constraints");
45
45
  const PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({
46
46
  rel: z.string().describe("The link relationship type.").nullable().optional(),
47
47
  href: z.string().describe("The complete URL to the related resource.").nullable().optional(),
48
48
  method: z.string().describe("The HTTP method required to access the resource.").nullable().optional()
49
- }).describe("HATEOAS link information.");
49
+ }).passthrough().describe("HATEOAS link information.");
50
50
  const PaypalFindEligibleMethods_PaymentSourceSchema = z.object({
51
51
  name: z.string().describe("The name on the payment source.").nullable().optional(),
52
52
  type: z.string().describe("The type of the payment source.").nullable().optional(),
53
53
  source_id: z.string().describe("The source ID of the vaulted instrument.").nullable().optional(),
54
54
  attributes: z.record(z.string(), z.unknown()).describe("Additional attributes of the payment source.").nullable().optional(),
55
55
  email_address: z.string().describe("The email address associated with the payment source.").nullable().optional()
56
- }).describe("The vaulted payment method details.");
56
+ }).passthrough().describe("The vaulted payment method details.");
57
57
  const PaypalFindEligibleMethods_PaymentTokenSchema = z.object({
58
58
  id: z.string().describe("The unique ID of the payment token.").nullable(),
59
59
  links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe("An array of HATEOAS links related to this payment token.").nullable().optional(),
60
60
  payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional()
61
- }).describe("Payment token for a vaulted instrument.");
61
+ }).passthrough().describe("Payment token for a vaulted instrument.");
62
62
  const PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({
63
63
  label: z.string().describe("The display label for the payment method.").nullable().optional(),
64
64
  vault_status: z.string().describe("The vault status if the payment method is vaulted.").nullable().optional(),
65
65
  product_usage: z.record(z.string(), z.unknown()).describe("Product-specific usage information for the payment method.").nullable().optional()
66
- }).describe("Details about an eligible payment method.");
66
+ }).passthrough().describe("Details about an eligible payment method.");
67
67
  const PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({
68
68
  venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
69
69
  paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
70
70
  paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
71
71
  paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional()
72
- }).describe("The eligible payment methods.");
72
+ }).passthrough().describe("The eligible payment methods.");
73
73
  const paypalFindEligibleMethods = action("PAYPAL_FIND_ELIGIBLE_METHODS", {
74
74
  slug: "paypal-find-eligible-methods",
75
75
  name: "Find eligible PayPal payment methods",
@@ -78,7 +78,7 @@ const paypalFindEligibleMethods = action("PAYPAL_FIND_ELIGIBLE_METHODS", {
78
78
  output: z.object({
79
79
  payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe("Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.").nullable().optional(),
80
80
  eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional()
81
- }).describe("Response schema for find eligible payment methods.\n\nContains the list of eligible payment methods and optionally\nvaulted tokens if requested in the preferences.")
81
+ }).passthrough().describe("Response schema for find eligible payment methods.\n\nContains the list of eligible payment methods and optionally\nvaulted tokens if requested in the preferences.")
82
82
  });
83
83
  //#endregion
84
84
  export { paypalFindEligibleMethods };
@@ -1 +1 @@
1
- {"version":3,"file":"find-eligible-methods.mjs","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFindEligibleMethodsInput = z.object({\n customer: z.object({\n id: z.string().describe(\"The unique ID for a customer in merchant's or partner's system of records.\").optional(),\n email: z.string().describe(\"The internationalized email address.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"The country calling code, prefixed with '+' followed by the country code.\"),\n national_number: z.string().describe(\"The national number of the phone.\"),\n extension_number: z.string().describe(\"The extension number.\").optional(),\n}).describe(\"The phone number of the customer.\").optional(),\n channel: z.object({\n client_os: z.string().describe(\"The client operating system.\").optional(),\n device_type: z.string().describe(\"The type of device.\").optional(),\n browser_type: z.string().describe(\"The browser type of the customer.\").optional(),\n}).describe(\"The channel through which the customer is interacting with the merchant.\").optional(),\n country_code: z.string().describe(\"The country code of the customer, represented as the ISO 3166-1 alpha-2 country code.\").optional(),\n}).describe(\"Customer who is making a purchase from the merchant/partner.\").optional(),\n preferences: z.object({\n payment_flow: z.enum([\"ONE_TIME_PAYMENT\", \"RECURRING_PAYMENT\", \"VAULT_WITH_PAYMENT\", \"VAULT_WITHOUT_PAYMENT\"]).describe(\"Specifies the payment flow for eligibility assessment.\").optional(),\n include_vault_tokens: z.boolean().default(false).describe(\"If set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Defaults to false.\").optional(),\n include_account_details: z.boolean().default(false).describe(\"If set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Defaults to false.\").optional(),\n payment_source_constraint: z.object({\n constraint_type: z.enum([\"INCLUDE\", \"EXCLUDE\"]).describe(\"The constraint type for the payment sources. Use INCLUDE to restrict to specified sources, or EXCLUDE to exclude specified sources.\"),\n payment_sources: z.array(z.string()).describe(\"The list of payment sources to include or exclude based on the constraint_type.\"),\n}).describe(\"Payment source constraint defines the payment methods to include/exclude for eligibility assessment.\").optional(),\n}).describe(\"Preferences of merchant/partner consuming the API.\").optional(),\n purchase_units: z.array(z.object({\n payee: z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned ID for the payee.\").optional(),\n email_address: z.string().describe(\"The email address of the payee.\").optional(),\n}).describe(\"The payee details for the purchase unit.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The monetary value, often in the format '10.00' with two decimal places.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for the purchase unit.\"),\n}).describe(\"Purchase unit for payment eligibility.\")).describe(\"An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.\"),\n}).describe(\"Request schema for finding eligible payment methods.\\n\\nUse this action when you need to discover which payment methods\\nare available for a customer based on their country and purchase details.\\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\\n\\n**Required fields:**\\n- purchase_units: At least one purchase unit with amount information\\n\\n**Optional fields:**\\n- customer: Customer information including country_code and email\\n- preferences: Options for including vault tokens or specifying payment constraints\");\nconst PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalFindEligibleMethods_PaymentSourceSchema = z.object({\n name: z.string().describe(\"The name on the payment source.\").nullable().optional(),\n type: z.string().describe(\"The type of the payment source.\").nullable().optional(),\n source_id: z.string().describe(\"The source ID of the vaulted instrument.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional attributes of the payment source.\").nullable().optional(),\n email_address: z.string().describe(\"The email address associated with the payment source.\").nullable().optional(),\n}).describe(\"The vaulted payment method details.\");\nconst PaypalFindEligibleMethods_PaymentTokenSchema = z.object({\n id: z.string().describe(\"The unique ID of the payment token.\").nullable(),\n links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment token.\").nullable().optional(),\n payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional(),\n}).describe(\"Payment token for a vaulted instrument.\");\nconst PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({\n label: z.string().describe(\"The display label for the payment method.\").nullable().optional(),\n vault_status: z.string().describe(\"The vault status if the payment method is vaulted.\").nullable().optional(),\n product_usage: z.record(z.string(), z.unknown()).describe(\"Product-specific usage information for the payment method.\").nullable().optional(),\n}).describe(\"Details about an eligible payment method.\");\nconst PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({\n venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n}).describe(\"The eligible payment methods.\");\nexport const PaypalFindEligibleMethodsOutput = z.object({\n payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe(\"Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.\").nullable().optional(),\n eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional(),\n}).describe(\"Response schema for find eligible payment methods.\\n\\nContains the list of eligible payment methods and optionally\\nvaulted tokens if requested in the preferences.\");\n\nexport const paypalFindEligibleMethods = action(\"PAYPAL_FIND_ELIGIBLE_METHODS\", {\n slug: \"paypal-find-eligible-methods\",\n name: \"Find eligible PayPal payment methods\",\n description: \"Find a list of eligible payment methods for a customer. Use this action when you need to determine which payment methods (such as PayPal, PayPal Credit, Pay Later, or Venmo) are available for a customer based on their country and purchase details. This is useful for displaying appropriate payment options during checkout or determining payment eligibility before creating an order. The response includes available payment methods and optionally vaulted tokens if the customer has saved payment instruments. **Common use cases:** - Pre-checkout payment method availability - Display appropriate payment options to customers - Determine eligible funding sources for a transaction\",\n input: PaypalFindEligibleMethodsInput,\n output: PaypalFindEligibleMethodsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO;GAChB,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;GAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;GACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC1E,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO;GAClB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GACxE,aAAa,EAAE,OAAO,C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+C,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,gBAAgB,8CAA8C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,uDAAuD,EAAE,OAAO;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,OAAO,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,qDAAqD,SAAS,CAAC,CAAC,SAAS;CACjF,eAAe,qDAAqD,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkB,qDAAqD,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAM3C,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,gBAAgB,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjO,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,qKAOF;AACV,CAAC"}
1
+ {"version":3,"file":"find-eligible-methods.mjs","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFindEligibleMethodsInput = z.object({\n customer: z.object({\n id: z.string().describe(\"The unique ID for a customer in merchant's or partner's system of records.\").optional(),\n email: z.string().describe(\"The internationalized email address.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"The country calling code, prefixed with '+' followed by the country code.\"),\n national_number: z.string().describe(\"The national number of the phone.\"),\n extension_number: z.string().describe(\"The extension number.\").optional(),\n}).describe(\"The phone number of the customer.\").optional(),\n channel: z.object({\n client_os: z.string().describe(\"The client operating system.\").optional(),\n device_type: z.string().describe(\"The type of device.\").optional(),\n browser_type: z.string().describe(\"The browser type of the customer.\").optional(),\n}).describe(\"The channel through which the customer is interacting with the merchant.\").optional(),\n country_code: z.string().describe(\"The country code of the customer, represented as the ISO 3166-1 alpha-2 country code.\").optional(),\n}).describe(\"Customer who is making a purchase from the merchant/partner.\").optional(),\n preferences: z.object({\n payment_flow: z.enum([\"ONE_TIME_PAYMENT\", \"RECURRING_PAYMENT\", \"VAULT_WITH_PAYMENT\", \"VAULT_WITHOUT_PAYMENT\"]).describe(\"Specifies the payment flow for eligibility assessment.\").optional(),\n include_vault_tokens: z.boolean().default(false).describe(\"If set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Defaults to false.\").optional(),\n include_account_details: z.boolean().default(false).describe(\"If set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Defaults to false.\").optional(),\n payment_source_constraint: z.object({\n constraint_type: z.enum([\"INCLUDE\", \"EXCLUDE\"]).describe(\"The constraint type for the payment sources. Use INCLUDE to restrict to specified sources, or EXCLUDE to exclude specified sources.\"),\n payment_sources: z.array(z.string()).describe(\"The list of payment sources to include or exclude based on the constraint_type.\"),\n}).describe(\"Payment source constraint defines the payment methods to include/exclude for eligibility assessment.\").optional(),\n}).describe(\"Preferences of merchant/partner consuming the API.\").optional(),\n purchase_units: z.array(z.object({\n payee: z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned ID for the payee.\").optional(),\n email_address: z.string().describe(\"The email address of the payee.\").optional(),\n}).describe(\"The payee details for the purchase unit.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The monetary value, often in the format '10.00' with two decimal places.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for the purchase unit.\"),\n}).passthrough().describe(\"Purchase unit for payment eligibility.\")).describe(\"An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.\"),\n}).describe(\"Request schema for finding eligible payment methods.\\n\\nUse this action when you need to discover which payment methods\\nare available for a customer based on their country and purchase details.\\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\\n\\n**Required fields:**\\n- purchase_units: At least one purchase unit with amount information\\n\\n**Optional fields:**\\n- customer: Customer information including country_code and email\\n- preferences: Options for including vault tokens or specifying payment constraints\");\nconst PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalFindEligibleMethods_PaymentSourceSchema = z.object({\n name: z.string().describe(\"The name on the payment source.\").nullable().optional(),\n type: z.string().describe(\"The type of the payment source.\").nullable().optional(),\n source_id: z.string().describe(\"The source ID of the vaulted instrument.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional attributes of the payment source.\").nullable().optional(),\n email_address: z.string().describe(\"The email address associated with the payment source.\").nullable().optional(),\n}).passthrough().describe(\"The vaulted payment method details.\");\nconst PaypalFindEligibleMethods_PaymentTokenSchema = z.object({\n id: z.string().describe(\"The unique ID of the payment token.\").nullable(),\n links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment token.\").nullable().optional(),\n payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional(),\n}).passthrough().describe(\"Payment token for a vaulted instrument.\");\nconst PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({\n label: z.string().describe(\"The display label for the payment method.\").nullable().optional(),\n vault_status: z.string().describe(\"The vault status if the payment method is vaulted.\").nullable().optional(),\n product_usage: z.record(z.string(), z.unknown()).describe(\"Product-specific usage information for the payment method.\").nullable().optional(),\n}).passthrough().describe(\"Details about an eligible payment method.\");\nconst PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({\n venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"The eligible payment methods.\");\nexport const PaypalFindEligibleMethodsOutput = z.object({\n payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe(\"Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.\").nullable().optional(),\n eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for find eligible payment methods.\\n\\nContains the list of eligible payment methods and optionally\\nvaulted tokens if requested in the preferences.\");\n\nexport const paypalFindEligibleMethods = action(\"PAYPAL_FIND_ELIGIBLE_METHODS\", {\n slug: \"paypal-find-eligible-methods\",\n name: \"Find eligible PayPal payment methods\",\n description: \"Find a list of eligible payment methods for a customer. Use this action when you need to determine which payment methods (such as PayPal, PayPal Credit, Pay Later, or Venmo) are available for a customer based on their country and purchase details. This is useful for displaying appropriate payment options during checkout or determining payment eligibility before creating an order. The response includes available payment methods and optionally vaulted tokens if the customer has saved payment instruments. **Common use cases:** - Pre-checkout payment method availability - Display appropriate payment options to customers - Determine eligible funding sources for a transaction\",\n input: PaypalFindEligibleMethodsInput,\n output: PaypalFindEligibleMethodsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,UAAU,E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,qDAAqD,SAAS,CAAC,CAAC,SAAS;CACjF,eAAe,qDAAqD,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkB,qDAAqD,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAMzD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,gBAAgB,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjO,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qKAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const PaypalGenerateClientTokenOutput = zod.z.object({
6
6
  expires_in: zod.z.number().int().describe("The number of seconds until the client token expires.").nullable().optional(),
7
7
  token_type: zod.z.string().describe("The type of token returned (e.g., 'Bearer').").nullable().optional(),
8
8
  client_token: zod.z.string().describe("The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.").nullable()
9
- }).describe("Response model for client token generation.");
9
+ }).passthrough().describe("Response model for client token generation.");
10
10
  const paypalGenerateClientToken = require_action.action("PAYPAL_GENERATE_CLIENT_TOKEN", {
11
11
  slug: "paypal-generate-client-token",
12
12
  name: "Generate PayPal Client Token",
@@ -1 +1 @@
1
- {"version":3,"file":"generate-client-token.cjs","names":["z","action"],"sources":["../../src/actions/generate-client-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateClientTokenInput = z.object({}).describe(\"Request model for generating a PayPal client token.\\n\\nThis endpoint does not require any request body parameters.\\nThe client token is generated based on the authenticated user's credentials\\nwhich are passed via the Authorization header in metadata.\");\nexport const PaypalGenerateClientTokenOutput = z.object({\n expires_in: z.number().int().describe(\"The number of seconds until the client token expires.\").nullable().optional(),\n token_type: z.string().describe(\"The type of token returned (e.g., 'Bearer').\").nullable().optional(),\n client_token: z.string().describe(\"The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.\").nullable(),\n}).describe(\"Response model for client token generation.\");\n\nexport const paypalGenerateClientToken = action(\"PAYPAL_GENERATE_CLIENT_TOKEN\", {\n slug: \"paypal-generate-client-token\",\n name: \"Generate PayPal Client Token\",\n description: \"Generate a client token for PayPal JavaScript SDK integration. Use this action when you need to obtain a client token for accepting PayPal payments on the client side. The client token is required when initializing the PayPal JS SDK (paypal.Buttons() or paypal.Messages()) in your web application. This action requires no request body parameters - the token is generated based on your authenticated credentials (Bearer token in Authorization header). Note: Client tokens are short-lived and should be fetched fresh before each checkout session. Do not cache or reuse client tokens across multiple sessions.\",\n input: PaypalGenerateClientTokenInput,\n output: PaypalGenerateClientTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6PAA6P;AACjU,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"generate-client-token.cjs","names":["z","action"],"sources":["../../src/actions/generate-client-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateClientTokenInput = z.object({}).describe(\"Request model for generating a PayPal client token.\\n\\nThis endpoint does not require any request body parameters.\\nThe client token is generated based on the authenticated user's credentials\\nwhich are passed via the Authorization header in metadata.\");\nexport const PaypalGenerateClientTokenOutput = z.object({\n expires_in: z.number().int().describe(\"The number of seconds until the client token expires.\").nullable().optional(),\n token_type: z.string().describe(\"The type of token returned (e.g., 'Bearer').\").nullable().optional(),\n client_token: z.string().describe(\"The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.\").nullable(),\n}).passthrough().describe(\"Response model for client token generation.\");\n\nexport const paypalGenerateClientToken = action(\"PAYPAL_GENERATE_CLIENT_TOKEN\", {\n slug: \"paypal-generate-client-token\",\n name: \"Generate PayPal Client Token\",\n description: \"Generate a client token for PayPal JavaScript SDK integration. Use this action when you need to obtain a client token for accepting PayPal payments on the client side. The client token is required when initializing the PayPal JS SDK (paypal.Buttons() or paypal.Messages()) in your web application. This action requires no request body parameters - the token is generated based on your authenticated credentials (Bearer token in Authorization header). Note: Client tokens are short-lived and should be fetched fresh before each checkout session. Do not cache or reuse client tokens across multiple sessions.\",\n input: PaypalGenerateClientTokenInput,\n output: PaypalGenerateClientTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6PAA6P;AACjU,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,8 +6,20 @@ declare const PaypalGenerateClientTokenOutput: z.ZodObject<{
6
6
  expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
7
  token_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
8
  client_token: z.ZodNullable<z.ZodString>;
9
- }, z.core.$strip>;
10
- declare const paypalGenerateClientToken: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
9
+ }, z.core.$loose>;
10
+ declare const paypalGenerateClientToken: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
11
+ connectionId: z.ZodString;
12
+ entityId: z.ZodString;
13
+ instanceId: z.ZodString;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ accessToken: z.ZodString;
16
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
17
+ connectionId: z.ZodString;
18
+ entityId: z.ZodString;
19
+ instanceId: z.ZodString;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ accessToken: z.ZodString;
22
+ }, z.core.$strip>>]>;
11
23
  //#endregion
12
24
  export { paypalGenerateClientToken };
13
25
  //# sourceMappingURL=generate-client-token.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-client-token.d.cts","names":[],"sources":["../../src/actions/generate-client-token.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"generate-client-token.d.cts","names":[],"sources":["../../src/actions/generate-client-token.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
@@ -6,8 +6,20 @@ declare const PaypalGenerateClientTokenOutput: z.ZodObject<{
6
6
  expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
7
  token_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
8
  client_token: z.ZodNullable<z.ZodString>;
9
- }, z.core.$strip>;
10
- declare const paypalGenerateClientToken: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
9
+ }, z.core.$loose>;
10
+ declare const paypalGenerateClientToken: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
11
+ connectionId: z.ZodString;
12
+ entityId: z.ZodString;
13
+ instanceId: z.ZodString;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ accessToken: z.ZodString;
16
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
17
+ connectionId: z.ZodString;
18
+ entityId: z.ZodString;
19
+ instanceId: z.ZodString;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ accessToken: z.ZodString;
22
+ }, z.core.$strip>>]>;
11
23
  //#endregion
12
24
  export { paypalGenerateClientToken };
13
25
  //# sourceMappingURL=generate-client-token.d.mts.map