@keystrokehq/paypal 0.1.0

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 (658) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/activate-plan.cjs +19 -0
  7. package/dist/actions/activate-plan.cjs.map +1 -0
  8. package/dist/actions/activate-plan.d.cts +9 -0
  9. package/dist/actions/activate-plan.d.cts.map +1 -0
  10. package/dist/actions/activate-plan.d.mts +9 -0
  11. package/dist/actions/activate-plan.d.mts.map +1 -0
  12. package/dist/actions/activate-plan.mjs +16 -0
  13. package/dist/actions/activate-plan.mjs.map +1 -0
  14. package/dist/actions/add-batch-trackers.cjs +62 -0
  15. package/dist/actions/add-batch-trackers.cjs.map +1 -0
  16. package/dist/actions/add-batch-trackers.d.cts +9 -0
  17. package/dist/actions/add-batch-trackers.d.cts.map +1 -0
  18. package/dist/actions/add-batch-trackers.d.mts +9 -0
  19. package/dist/actions/add-batch-trackers.d.mts.map +1 -0
  20. package/dist/actions/add-batch-trackers.mjs +61 -0
  21. package/dist/actions/add-batch-trackers.mjs.map +1 -0
  22. package/dist/actions/authorize-order.cjs +101 -0
  23. package/dist/actions/authorize-order.cjs.map +1 -0
  24. package/dist/actions/authorize-order.d.cts +9 -0
  25. package/dist/actions/authorize-order.d.cts.map +1 -0
  26. package/dist/actions/authorize-order.d.mts +9 -0
  27. package/dist/actions/authorize-order.d.mts.map +1 -0
  28. package/dist/actions/authorize-order.mjs +100 -0
  29. package/dist/actions/authorize-order.mjs.map +1 -0
  30. package/dist/actions/cancel-invoice.cjs +44 -0
  31. package/dist/actions/cancel-invoice.cjs.map +1 -0
  32. package/dist/actions/cancel-invoice.d.cts +9 -0
  33. package/dist/actions/cancel-invoice.d.cts.map +1 -0
  34. package/dist/actions/cancel-invoice.d.mts +9 -0
  35. package/dist/actions/cancel-invoice.d.mts.map +1 -0
  36. package/dist/actions/cancel-invoice.mjs +43 -0
  37. package/dist/actions/cancel-invoice.mjs.map +1 -0
  38. package/dist/actions/cancel-reminders.cjs +36 -0
  39. package/dist/actions/cancel-reminders.cjs.map +1 -0
  40. package/dist/actions/cancel-reminders.d.cts +9 -0
  41. package/dist/actions/cancel-reminders.d.cts.map +1 -0
  42. package/dist/actions/cancel-reminders.d.mts +9 -0
  43. package/dist/actions/cancel-reminders.d.mts.map +1 -0
  44. package/dist/actions/cancel-reminders.mjs +35 -0
  45. package/dist/actions/cancel-reminders.mjs.map +1 -0
  46. package/dist/actions/capture-subscription-payment.cjs +79 -0
  47. package/dist/actions/capture-subscription-payment.cjs.map +1 -0
  48. package/dist/actions/capture-subscription-payment.d.cts +9 -0
  49. package/dist/actions/capture-subscription-payment.d.cts.map +1 -0
  50. package/dist/actions/capture-subscription-payment.d.mts +9 -0
  51. package/dist/actions/capture-subscription-payment.d.mts.map +1 -0
  52. package/dist/actions/capture-subscription-payment.mjs +78 -0
  53. package/dist/actions/capture-subscription-payment.mjs.map +1 -0
  54. package/dist/actions/charge-payment-method.cjs +58 -0
  55. package/dist/actions/charge-payment-method.cjs.map +1 -0
  56. package/dist/actions/charge-payment-method.d.cts +9 -0
  57. package/dist/actions/charge-payment-method.d.cts.map +1 -0
  58. package/dist/actions/charge-payment-method.d.mts +9 -0
  59. package/dist/actions/charge-payment-method.d.mts.map +1 -0
  60. package/dist/actions/charge-payment-method.mjs +55 -0
  61. package/dist/actions/charge-payment-method.mjs.map +1 -0
  62. package/dist/actions/create-invoice.cjs +294 -0
  63. package/dist/actions/create-invoice.cjs.map +1 -0
  64. package/dist/actions/create-invoice.d.cts +9 -0
  65. package/dist/actions/create-invoice.d.cts.map +1 -0
  66. package/dist/actions/create-invoice.d.mts +9 -0
  67. package/dist/actions/create-invoice.d.mts.map +1 -0
  68. package/dist/actions/create-invoice.mjs +293 -0
  69. package/dist/actions/create-invoice.mjs.map +1 -0
  70. package/dist/actions/create-payment.cjs +178 -0
  71. package/dist/actions/create-payment.cjs.map +1 -0
  72. package/dist/actions/create-payment.d.cts +9 -0
  73. package/dist/actions/create-payment.d.cts.map +1 -0
  74. package/dist/actions/create-payment.d.mts +9 -0
  75. package/dist/actions/create-payment.d.mts.map +1 -0
  76. package/dist/actions/create-payment.mjs +177 -0
  77. package/dist/actions/create-payment.mjs.map +1 -0
  78. package/dist/actions/create-payments-billing-plans.cjs +111 -0
  79. package/dist/actions/create-payments-billing-plans.cjs.map +1 -0
  80. package/dist/actions/create-payments-billing-plans.d.cts +9 -0
  81. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -0
  82. package/dist/actions/create-payments-billing-plans.d.mts +9 -0
  83. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -0
  84. package/dist/actions/create-payments-billing-plans.mjs +110 -0
  85. package/dist/actions/create-payments-billing-plans.mjs.map +1 -0
  86. package/dist/actions/create-plan.cjs +119 -0
  87. package/dist/actions/create-plan.cjs.map +1 -0
  88. package/dist/actions/create-plan.d.cts +9 -0
  89. package/dist/actions/create-plan.d.cts.map +1 -0
  90. package/dist/actions/create-plan.d.mts +9 -0
  91. package/dist/actions/create-plan.d.mts.map +1 -0
  92. package/dist/actions/create-plan.mjs +118 -0
  93. package/dist/actions/create-plan.mjs.map +1 -0
  94. package/dist/actions/create-product.cjs +190 -0
  95. package/dist/actions/create-product.cjs.map +1 -0
  96. package/dist/actions/create-product.d.cts +9 -0
  97. package/dist/actions/create-product.d.cts.map +1 -0
  98. package/dist/actions/create-product.d.mts +9 -0
  99. package/dist/actions/create-product.d.mts.map +1 -0
  100. package/dist/actions/create-product.mjs +189 -0
  101. package/dist/actions/create-product.mjs.map +1 -0
  102. package/dist/actions/create-subscription.cjs +183 -0
  103. package/dist/actions/create-subscription.cjs.map +1 -0
  104. package/dist/actions/create-subscription.d.cts +9 -0
  105. package/dist/actions/create-subscription.d.cts.map +1 -0
  106. package/dist/actions/create-subscription.d.mts +9 -0
  107. package/dist/actions/create-subscription.d.mts.map +1 -0
  108. package/dist/actions/create-subscription.mjs +182 -0
  109. package/dist/actions/create-subscription.mjs.map +1 -0
  110. package/dist/actions/create-template.cjs +234 -0
  111. package/dist/actions/create-template.cjs.map +1 -0
  112. package/dist/actions/create-template.d.cts +9 -0
  113. package/dist/actions/create-template.d.cts.map +1 -0
  114. package/dist/actions/create-template.d.mts +9 -0
  115. package/dist/actions/create-template.d.mts.map +1 -0
  116. package/dist/actions/create-template.mjs +233 -0
  117. package/dist/actions/create-template.mjs.map +1 -0
  118. package/dist/actions/create-web-profile.cjs +66 -0
  119. package/dist/actions/create-web-profile.cjs.map +1 -0
  120. package/dist/actions/create-web-profile.d.cts +9 -0
  121. package/dist/actions/create-web-profile.d.cts.map +1 -0
  122. package/dist/actions/create-web-profile.d.mts +9 -0
  123. package/dist/actions/create-web-profile.d.mts.map +1 -0
  124. package/dist/actions/create-web-profile.mjs +65 -0
  125. package/dist/actions/create-web-profile.mjs.map +1 -0
  126. package/dist/actions/create-webhook-lookup.cjs +25 -0
  127. package/dist/actions/create-webhook-lookup.cjs.map +1 -0
  128. package/dist/actions/create-webhook-lookup.d.cts +9 -0
  129. package/dist/actions/create-webhook-lookup.d.cts.map +1 -0
  130. package/dist/actions/create-webhook-lookup.d.mts +9 -0
  131. package/dist/actions/create-webhook-lookup.d.mts.map +1 -0
  132. package/dist/actions/create-webhook-lookup.mjs +24 -0
  133. package/dist/actions/create-webhook-lookup.mjs.map +1 -0
  134. package/dist/actions/create-webhook.cjs +39 -0
  135. package/dist/actions/create-webhook.cjs.map +1 -0
  136. package/dist/actions/create-webhook.d.cts +9 -0
  137. package/dist/actions/create-webhook.d.cts.map +1 -0
  138. package/dist/actions/create-webhook.d.mts +9 -0
  139. package/dist/actions/create-webhook.d.mts.map +1 -0
  140. package/dist/actions/create-webhook.mjs +38 -0
  141. package/dist/actions/create-webhook.mjs.map +1 -0
  142. package/dist/actions/deactivate-plan.cjs +19 -0
  143. package/dist/actions/deactivate-plan.cjs.map +1 -0
  144. package/dist/actions/deactivate-plan.d.cts +9 -0
  145. package/dist/actions/deactivate-plan.d.cts.map +1 -0
  146. package/dist/actions/deactivate-plan.d.mts +9 -0
  147. package/dist/actions/deactivate-plan.d.mts.map +1 -0
  148. package/dist/actions/deactivate-plan.mjs +16 -0
  149. package/dist/actions/deactivate-plan.mjs.map +1 -0
  150. package/dist/actions/delete-external-payment.cjs +23 -0
  151. package/dist/actions/delete-external-payment.cjs.map +1 -0
  152. package/dist/actions/delete-external-payment.d.cts +9 -0
  153. package/dist/actions/delete-external-payment.d.cts.map +1 -0
  154. package/dist/actions/delete-external-payment.d.mts +9 -0
  155. package/dist/actions/delete-external-payment.d.mts.map +1 -0
  156. package/dist/actions/delete-external-payment.mjs +20 -0
  157. package/dist/actions/delete-external-payment.mjs.map +1 -0
  158. package/dist/actions/delete-invoice-payment-record.cjs +23 -0
  159. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -0
  160. package/dist/actions/delete-invoice-payment-record.d.cts +9 -0
  161. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -0
  162. package/dist/actions/delete-invoice-payment-record.d.mts +9 -0
  163. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -0
  164. package/dist/actions/delete-invoice-payment-record.mjs +20 -0
  165. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -0
  166. package/dist/actions/delete-invoice-refund-record.cjs +22 -0
  167. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -0
  168. package/dist/actions/delete-invoice-refund-record.d.cts +9 -0
  169. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -0
  170. package/dist/actions/delete-invoice-refund-record.d.mts +9 -0
  171. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -0
  172. package/dist/actions/delete-invoice-refund-record.mjs +19 -0
  173. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -0
  174. package/dist/actions/delete-invoice.cjs +36 -0
  175. package/dist/actions/delete-invoice.cjs.map +1 -0
  176. package/dist/actions/delete-invoice.d.cts +9 -0
  177. package/dist/actions/delete-invoice.d.cts.map +1 -0
  178. package/dist/actions/delete-invoice.d.mts +9 -0
  179. package/dist/actions/delete-invoice.d.mts.map +1 -0
  180. package/dist/actions/delete-invoice.mjs +35 -0
  181. package/dist/actions/delete-invoice.mjs.map +1 -0
  182. package/dist/actions/delete-payment-resource.cjs +19 -0
  183. package/dist/actions/delete-payment-resource.cjs.map +1 -0
  184. package/dist/actions/delete-payment-resource.d.cts +9 -0
  185. package/dist/actions/delete-payment-resource.d.cts.map +1 -0
  186. package/dist/actions/delete-payment-resource.d.mts +9 -0
  187. package/dist/actions/delete-payment-resource.d.mts.map +1 -0
  188. package/dist/actions/delete-payment-resource.mjs +16 -0
  189. package/dist/actions/delete-payment-resource.mjs.map +1 -0
  190. package/dist/actions/delete-template.cjs +36 -0
  191. package/dist/actions/delete-template.cjs.map +1 -0
  192. package/dist/actions/delete-template.d.cts +9 -0
  193. package/dist/actions/delete-template.d.cts.map +1 -0
  194. package/dist/actions/delete-template.d.mts +9 -0
  195. package/dist/actions/delete-template.d.mts.map +1 -0
  196. package/dist/actions/delete-template.mjs +35 -0
  197. package/dist/actions/delete-template.mjs.map +1 -0
  198. package/dist/actions/delete-web-profile.cjs +19 -0
  199. package/dist/actions/delete-web-profile.cjs.map +1 -0
  200. package/dist/actions/delete-web-profile.d.cts +9 -0
  201. package/dist/actions/delete-web-profile.d.cts.map +1 -0
  202. package/dist/actions/delete-web-profile.d.mts +9 -0
  203. package/dist/actions/delete-web-profile.d.mts.map +1 -0
  204. package/dist/actions/delete-web-profile.mjs +16 -0
  205. package/dist/actions/delete-web-profile.mjs.map +1 -0
  206. package/dist/actions/delete-webhook.cjs +35 -0
  207. package/dist/actions/delete-webhook.cjs.map +1 -0
  208. package/dist/actions/delete-webhook.d.cts +9 -0
  209. package/dist/actions/delete-webhook.d.cts.map +1 -0
  210. package/dist/actions/delete-webhook.d.mts +9 -0
  211. package/dist/actions/delete-webhook.d.mts.map +1 -0
  212. package/dist/actions/delete-webhook.mjs +34 -0
  213. package/dist/actions/delete-webhook.mjs.map +1 -0
  214. package/dist/actions/fetch-node.cjs +30 -0
  215. package/dist/actions/fetch-node.cjs.map +1 -0
  216. package/dist/actions/fetch-node.d.cts +9 -0
  217. package/dist/actions/fetch-node.d.cts.map +1 -0
  218. package/dist/actions/fetch-node.d.mts +9 -0
  219. package/dist/actions/fetch-node.d.mts.map +1 -0
  220. package/dist/actions/fetch-node.mjs +29 -0
  221. package/dist/actions/fetch-node.mjs.map +1 -0
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +21 -0
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -0
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +9 -0
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +9 -0
  227. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -0
  228. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +20 -0
  229. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -0
  230. package/dist/actions/find-eligible-methods.cjs +87 -0
  231. package/dist/actions/find-eligible-methods.cjs.map +1 -0
  232. package/dist/actions/find-eligible-methods.d.cts +9 -0
  233. package/dist/actions/find-eligible-methods.d.cts.map +1 -0
  234. package/dist/actions/find-eligible-methods.d.mts +9 -0
  235. package/dist/actions/find-eligible-methods.d.mts.map +1 -0
  236. package/dist/actions/find-eligible-methods.mjs +86 -0
  237. package/dist/actions/find-eligible-methods.mjs.map +1 -0
  238. package/dist/actions/generate-client-token.cjs +20 -0
  239. package/dist/actions/generate-client-token.cjs.map +1 -0
  240. package/dist/actions/generate-client-token.d.cts +9 -0
  241. package/dist/actions/generate-client-token.d.cts.map +1 -0
  242. package/dist/actions/generate-client-token.d.mts +9 -0
  243. package/dist/actions/generate-client-token.d.mts.map +1 -0
  244. package/dist/actions/generate-client-token.mjs +17 -0
  245. package/dist/actions/generate-client-token.mjs.map +1 -0
  246. package/dist/actions/generate-next-invoice-number-v2.cjs +19 -0
  247. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -0
  248. package/dist/actions/generate-next-invoice-number-v2.d.cts +9 -0
  249. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.d.mts +9 -0
  251. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -0
  252. package/dist/actions/generate-next-invoice-number-v2.mjs +16 -0
  253. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -0
  254. package/dist/actions/generate-next-invoice-number.cjs +16 -0
  255. package/dist/actions/generate-next-invoice-number.cjs.map +1 -0
  256. package/dist/actions/generate-next-invoice-number.d.cts +9 -0
  257. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -0
  258. package/dist/actions/generate-next-invoice-number.d.mts +9 -0
  259. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -0
  260. package/dist/actions/generate-next-invoice-number.mjs +13 -0
  261. package/dist/actions/generate-next-invoice-number.mjs.map +1 -0
  262. package/dist/actions/generate-qr-code.cjs +46 -0
  263. package/dist/actions/generate-qr-code.cjs.map +1 -0
  264. package/dist/actions/generate-qr-code.d.cts +9 -0
  265. package/dist/actions/generate-qr-code.d.cts.map +1 -0
  266. package/dist/actions/generate-qr-code.d.mts +9 -0
  267. package/dist/actions/generate-qr-code.d.mts.map +1 -0
  268. package/dist/actions/generate-qr-code.mjs +45 -0
  269. package/dist/actions/generate-qr-code.mjs.map +1 -0
  270. package/dist/actions/get-billing-subscriptions.cjs +98 -0
  271. package/dist/actions/get-billing-subscriptions.cjs.map +1 -0
  272. package/dist/actions/get-billing-subscriptions.d.cts +9 -0
  273. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -0
  274. package/dist/actions/get-billing-subscriptions.d.mts +9 -0
  275. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -0
  276. package/dist/actions/get-billing-subscriptions.mjs +97 -0
  277. package/dist/actions/get-billing-subscriptions.mjs.map +1 -0
  278. package/dist/actions/get-invoice.cjs +159 -0
  279. package/dist/actions/get-invoice.cjs.map +1 -0
  280. package/dist/actions/get-invoice.d.cts +9 -0
  281. package/dist/actions/get-invoice.d.cts.map +1 -0
  282. package/dist/actions/get-invoice.d.mts +9 -0
  283. package/dist/actions/get-invoice.d.mts.map +1 -0
  284. package/dist/actions/get-invoice.mjs +158 -0
  285. package/dist/actions/get-invoice.mjs.map +1 -0
  286. package/dist/actions/get-invoicing-invoices-qr-code.cjs +29 -0
  287. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -0
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +9 -0
  289. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +9 -0
  291. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -0
  292. package/dist/actions/get-invoicing-invoices-qr-code.mjs +28 -0
  293. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -0
  294. package/dist/actions/get-invoicing-template.cjs +136 -0
  295. package/dist/actions/get-invoicing-template.cjs.map +1 -0
  296. package/dist/actions/get-invoicing-template.d.cts +9 -0
  297. package/dist/actions/get-invoicing-template.d.cts.map +1 -0
  298. package/dist/actions/get-invoicing-template.d.mts +9 -0
  299. package/dist/actions/get-invoicing-template.d.mts.map +1 -0
  300. package/dist/actions/get-invoicing-template.mjs +135 -0
  301. package/dist/actions/get-invoicing-template.mjs.map +1 -0
  302. package/dist/actions/get-order.cjs +112 -0
  303. package/dist/actions/get-order.cjs.map +1 -0
  304. package/dist/actions/get-order.d.cts +9 -0
  305. package/dist/actions/get-order.d.cts.map +1 -0
  306. package/dist/actions/get-order.d.mts +9 -0
  307. package/dist/actions/get-order.d.mts.map +1 -0
  308. package/dist/actions/get-order.mjs +111 -0
  309. package/dist/actions/get-order.mjs.map +1 -0
  310. package/dist/actions/get-payment.cjs +98 -0
  311. package/dist/actions/get-payment.cjs.map +1 -0
  312. package/dist/actions/get-payment.d.cts +9 -0
  313. package/dist/actions/get-payment.d.cts.map +1 -0
  314. package/dist/actions/get-payment.d.mts +9 -0
  315. package/dist/actions/get-payment.d.mts.map +1 -0
  316. package/dist/actions/get-payment.mjs +97 -0
  317. package/dist/actions/get-payment.mjs.map +1 -0
  318. package/dist/actions/get-payments-refund.cjs +37 -0
  319. package/dist/actions/get-payments-refund.cjs.map +1 -0
  320. package/dist/actions/get-payments-refund.d.cts +9 -0
  321. package/dist/actions/get-payments-refund.d.cts.map +1 -0
  322. package/dist/actions/get-payments-refund.d.mts +9 -0
  323. package/dist/actions/get-payments-refund.d.mts.map +1 -0
  324. package/dist/actions/get-payments-refund.mjs +36 -0
  325. package/dist/actions/get-payments-refund.mjs.map +1 -0
  326. package/dist/actions/get-plan.cjs +69 -0
  327. package/dist/actions/get-plan.cjs.map +1 -0
  328. package/dist/actions/get-plan.d.cts +9 -0
  329. package/dist/actions/get-plan.d.cts.map +1 -0
  330. package/dist/actions/get-plan.d.mts +9 -0
  331. package/dist/actions/get-plan.d.mts.map +1 -0
  332. package/dist/actions/get-plan.mjs +68 -0
  333. package/dist/actions/get-plan.mjs.map +1 -0
  334. package/dist/actions/get-product.cjs +32 -0
  335. package/dist/actions/get-product.cjs.map +1 -0
  336. package/dist/actions/get-product.d.cts +9 -0
  337. package/dist/actions/get-product.d.cts.map +1 -0
  338. package/dist/actions/get-product.d.mts +9 -0
  339. package/dist/actions/get-product.d.mts.map +1 -0
  340. package/dist/actions/get-product.mjs +31 -0
  341. package/dist/actions/get-product.mjs.map +1 -0
  342. package/dist/actions/get-subscription.cjs +88 -0
  343. package/dist/actions/get-subscription.cjs.map +1 -0
  344. package/dist/actions/get-subscription.d.cts +9 -0
  345. package/dist/actions/get-subscription.d.cts.map +1 -0
  346. package/dist/actions/get-subscription.d.mts +9 -0
  347. package/dist/actions/get-subscription.d.mts.map +1 -0
  348. package/dist/actions/get-subscription.mjs +87 -0
  349. package/dist/actions/get-subscription.mjs.map +1 -0
  350. package/dist/actions/get-user-info.cjs +43 -0
  351. package/dist/actions/get-user-info.cjs.map +1 -0
  352. package/dist/actions/get-user-info.d.cts +9 -0
  353. package/dist/actions/get-user-info.d.cts.map +1 -0
  354. package/dist/actions/get-user-info.d.mts +9 -0
  355. package/dist/actions/get-user-info.d.mts.map +1 -0
  356. package/dist/actions/get-user-info.mjs +42 -0
  357. package/dist/actions/get-user-info.mjs.map +1 -0
  358. package/dist/actions/get-userinfo.cjs +55 -0
  359. package/dist/actions/get-userinfo.cjs.map +1 -0
  360. package/dist/actions/get-userinfo.d.cts +9 -0
  361. package/dist/actions/get-userinfo.d.cts.map +1 -0
  362. package/dist/actions/get-userinfo.d.mts +9 -0
  363. package/dist/actions/get-userinfo.d.mts.map +1 -0
  364. package/dist/actions/get-userinfo.mjs +54 -0
  365. package/dist/actions/get-userinfo.mjs.map +1 -0
  366. package/dist/actions/get-web-profile.cjs +38 -0
  367. package/dist/actions/get-web-profile.cjs.map +1 -0
  368. package/dist/actions/get-web-profile.d.cts +9 -0
  369. package/dist/actions/get-web-profile.d.cts.map +1 -0
  370. package/dist/actions/get-web-profile.d.mts +9 -0
  371. package/dist/actions/get-web-profile.d.mts.map +1 -0
  372. package/dist/actions/get-web-profile.mjs +37 -0
  373. package/dist/actions/get-web-profile.mjs.map +1 -0
  374. package/dist/actions/get-webhook-lookup.cjs +25 -0
  375. package/dist/actions/get-webhook-lookup.cjs.map +1 -0
  376. package/dist/actions/get-webhook-lookup.d.cts +9 -0
  377. package/dist/actions/get-webhook-lookup.d.cts.map +1 -0
  378. package/dist/actions/get-webhook-lookup.d.mts +9 -0
  379. package/dist/actions/get-webhook-lookup.d.mts.map +1 -0
  380. package/dist/actions/get-webhook-lookup.mjs +24 -0
  381. package/dist/actions/get-webhook-lookup.mjs.map +1 -0
  382. package/dist/actions/get-webhook.cjs +33 -0
  383. package/dist/actions/get-webhook.cjs.map +1 -0
  384. package/dist/actions/get-webhook.d.cts +9 -0
  385. package/dist/actions/get-webhook.d.cts.map +1 -0
  386. package/dist/actions/get-webhook.d.mts +9 -0
  387. package/dist/actions/get-webhook.d.mts.map +1 -0
  388. package/dist/actions/get-webhook.mjs +32 -0
  389. package/dist/actions/get-webhook.mjs.map +1 -0
  390. package/dist/actions/index.cjs +157 -0
  391. package/dist/actions/index.d.cts +79 -0
  392. package/dist/actions/index.d.mts +79 -0
  393. package/dist/actions/index.mjs +79 -0
  394. package/dist/actions/list-disputes.cjs +62 -0
  395. package/dist/actions/list-disputes.cjs.map +1 -0
  396. package/dist/actions/list-disputes.d.cts +9 -0
  397. package/dist/actions/list-disputes.d.cts.map +1 -0
  398. package/dist/actions/list-disputes.d.mts +9 -0
  399. package/dist/actions/list-disputes.d.mts.map +1 -0
  400. package/dist/actions/list-disputes.mjs +61 -0
  401. package/dist/actions/list-disputes.mjs.map +1 -0
  402. package/dist/actions/list-invoices.cjs +81 -0
  403. package/dist/actions/list-invoices.cjs.map +1 -0
  404. package/dist/actions/list-invoices.d.cts +9 -0
  405. package/dist/actions/list-invoices.d.cts.map +1 -0
  406. package/dist/actions/list-invoices.d.mts +9 -0
  407. package/dist/actions/list-invoices.d.mts.map +1 -0
  408. package/dist/actions/list-invoices.mjs +80 -0
  409. package/dist/actions/list-invoices.mjs.map +1 -0
  410. package/dist/actions/list-legacy-billing-plans.cjs +87 -0
  411. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -0
  412. package/dist/actions/list-legacy-billing-plans.d.cts +9 -0
  413. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -0
  414. package/dist/actions/list-legacy-billing-plans.d.mts +9 -0
  415. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -0
  416. package/dist/actions/list-legacy-billing-plans.mjs +86 -0
  417. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -0
  418. package/dist/actions/list-payments.cjs +112 -0
  419. package/dist/actions/list-payments.cjs.map +1 -0
  420. package/dist/actions/list-payments.d.cts +9 -0
  421. package/dist/actions/list-payments.d.cts.map +1 -0
  422. package/dist/actions/list-payments.d.mts +9 -0
  423. package/dist/actions/list-payments.d.mts.map +1 -0
  424. package/dist/actions/list-payments.mjs +111 -0
  425. package/dist/actions/list-payments.mjs.map +1 -0
  426. package/dist/actions/list-plans.cjs +66 -0
  427. package/dist/actions/list-plans.cjs.map +1 -0
  428. package/dist/actions/list-plans.d.cts +9 -0
  429. package/dist/actions/list-plans.d.cts.map +1 -0
  430. package/dist/actions/list-plans.d.mts +9 -0
  431. package/dist/actions/list-plans.d.mts.map +1 -0
  432. package/dist/actions/list-plans.mjs +65 -0
  433. package/dist/actions/list-plans.mjs.map +1 -0
  434. package/dist/actions/list-products.cjs +37 -0
  435. package/dist/actions/list-products.cjs.map +1 -0
  436. package/dist/actions/list-products.d.cts +9 -0
  437. package/dist/actions/list-products.d.cts.map +1 -0
  438. package/dist/actions/list-products.d.mts +9 -0
  439. package/dist/actions/list-products.d.mts.map +1 -0
  440. package/dist/actions/list-products.mjs +36 -0
  441. package/dist/actions/list-products.mjs.map +1 -0
  442. package/dist/actions/list-templates.cjs +74 -0
  443. package/dist/actions/list-templates.cjs.map +1 -0
  444. package/dist/actions/list-templates.d.cts +9 -0
  445. package/dist/actions/list-templates.d.cts.map +1 -0
  446. package/dist/actions/list-templates.d.mts +9 -0
  447. package/dist/actions/list-templates.d.mts.map +1 -0
  448. package/dist/actions/list-templates.mjs +73 -0
  449. package/dist/actions/list-templates.mjs.map +1 -0
  450. package/dist/actions/list-web-profiles.cjs +48 -0
  451. package/dist/actions/list-web-profiles.cjs.map +1 -0
  452. package/dist/actions/list-web-profiles.d.cts +9 -0
  453. package/dist/actions/list-web-profiles.d.cts.map +1 -0
  454. package/dist/actions/list-web-profiles.d.mts +9 -0
  455. package/dist/actions/list-web-profiles.d.mts.map +1 -0
  456. package/dist/actions/list-web-profiles.mjs +47 -0
  457. package/dist/actions/list-web-profiles.mjs.map +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.cjs +23 -0
  459. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -0
  460. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +9 -0
  461. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -0
  462. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +9 -0
  463. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -0
  464. package/dist/actions/list-webhook-event-type-subscriptions.mjs +22 -0
  465. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -0
  466. package/dist/actions/list-webhook-event-types.cjs +23 -0
  467. package/dist/actions/list-webhook-event-types.cjs.map +1 -0
  468. package/dist/actions/list-webhook-event-types.d.cts +9 -0
  469. package/dist/actions/list-webhook-event-types.d.cts.map +1 -0
  470. package/dist/actions/list-webhook-event-types.d.mts +9 -0
  471. package/dist/actions/list-webhook-event-types.d.mts.map +1 -0
  472. package/dist/actions/list-webhook-event-types.mjs +22 -0
  473. package/dist/actions/list-webhook-event-types.mjs.map +1 -0
  474. package/dist/actions/list-webhook-lookups.cjs +26 -0
  475. package/dist/actions/list-webhook-lookups.cjs.map +1 -0
  476. package/dist/actions/list-webhook-lookups.d.cts +9 -0
  477. package/dist/actions/list-webhook-lookups.d.cts.map +1 -0
  478. package/dist/actions/list-webhook-lookups.d.mts +9 -0
  479. package/dist/actions/list-webhook-lookups.d.mts.map +1 -0
  480. package/dist/actions/list-webhook-lookups.mjs +25 -0
  481. package/dist/actions/list-webhook-lookups.mjs.map +1 -0
  482. package/dist/actions/list-webhooks.cjs +31 -0
  483. package/dist/actions/list-webhooks.cjs.map +1 -0
  484. package/dist/actions/list-webhooks.d.cts +9 -0
  485. package/dist/actions/list-webhooks.d.cts.map +1 -0
  486. package/dist/actions/list-webhooks.d.mts +9 -0
  487. package/dist/actions/list-webhooks.d.mts.map +1 -0
  488. package/dist/actions/list-webhooks.mjs +30 -0
  489. package/dist/actions/list-webhooks.mjs.map +1 -0
  490. package/dist/actions/patch-orders.cjs +43 -0
  491. package/dist/actions/patch-orders.cjs.map +1 -0
  492. package/dist/actions/patch-orders.d.cts +9 -0
  493. package/dist/actions/patch-orders.d.cts.map +1 -0
  494. package/dist/actions/patch-orders.d.mts +9 -0
  495. package/dist/actions/patch-orders.d.mts.map +1 -0
  496. package/dist/actions/patch-orders.mjs +40 -0
  497. package/dist/actions/patch-orders.mjs.map +1 -0
  498. package/dist/actions/patch-plan.cjs +34 -0
  499. package/dist/actions/patch-plan.cjs.map +1 -0
  500. package/dist/actions/patch-plan.d.cts +9 -0
  501. package/dist/actions/patch-plan.d.cts.map +1 -0
  502. package/dist/actions/patch-plan.d.mts +9 -0
  503. package/dist/actions/patch-plan.d.mts.map +1 -0
  504. package/dist/actions/patch-plan.mjs +31 -0
  505. package/dist/actions/patch-plan.mjs.map +1 -0
  506. package/dist/actions/patch-subscription.cjs +49 -0
  507. package/dist/actions/patch-subscription.cjs.map +1 -0
  508. package/dist/actions/patch-subscription.d.cts +9 -0
  509. package/dist/actions/patch-subscription.d.cts.map +1 -0
  510. package/dist/actions/patch-subscription.d.mts +9 -0
  511. package/dist/actions/patch-subscription.d.mts.map +1 -0
  512. package/dist/actions/patch-subscription.mjs +48 -0
  513. package/dist/actions/patch-subscription.mjs.map +1 -0
  514. package/dist/actions/patch-web-profile.cjs +41 -0
  515. package/dist/actions/patch-web-profile.cjs.map +1 -0
  516. package/dist/actions/patch-web-profile.d.cts +9 -0
  517. package/dist/actions/patch-web-profile.d.cts.map +1 -0
  518. package/dist/actions/patch-web-profile.d.mts +9 -0
  519. package/dist/actions/patch-web-profile.d.mts.map +1 -0
  520. package/dist/actions/patch-web-profile.mjs +38 -0
  521. package/dist/actions/patch-web-profile.mjs.map +1 -0
  522. package/dist/actions/ping-braintree.cjs +19 -0
  523. package/dist/actions/ping-braintree.cjs.map +1 -0
  524. package/dist/actions/ping-braintree.d.cts +9 -0
  525. package/dist/actions/ping-braintree.d.cts.map +1 -0
  526. package/dist/actions/ping-braintree.d.mts +9 -0
  527. package/dist/actions/ping-braintree.d.mts.map +1 -0
  528. package/dist/actions/ping-braintree.mjs +16 -0
  529. package/dist/actions/ping-braintree.mjs.map +1 -0
  530. package/dist/actions/query-braintree-report.cjs +39 -0
  531. package/dist/actions/query-braintree-report.cjs.map +1 -0
  532. package/dist/actions/query-braintree-report.d.cts +9 -0
  533. package/dist/actions/query-braintree-report.d.cts.map +1 -0
  534. package/dist/actions/query-braintree-report.d.mts +9 -0
  535. package/dist/actions/query-braintree-report.d.mts.map +1 -0
  536. package/dist/actions/query-braintree-report.mjs +38 -0
  537. package/dist/actions/query-braintree-report.mjs.map +1 -0
  538. package/dist/actions/retrieve-payment-resource.cjs +72 -0
  539. package/dist/actions/retrieve-payment-resource.cjs.map +1 -0
  540. package/dist/actions/retrieve-payment-resource.d.cts +9 -0
  541. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -0
  542. package/dist/actions/retrieve-payment-resource.d.mts +9 -0
  543. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -0
  544. package/dist/actions/retrieve-payment-resource.mjs +71 -0
  545. package/dist/actions/retrieve-payment-resource.mjs.map +1 -0
  546. package/dist/actions/search-invoices.cjs +120 -0
  547. package/dist/actions/search-invoices.cjs.map +1 -0
  548. package/dist/actions/search-invoices.d.cts +9 -0
  549. package/dist/actions/search-invoices.d.cts.map +1 -0
  550. package/dist/actions/search-invoices.d.mts +9 -0
  551. package/dist/actions/search-invoices.d.mts.map +1 -0
  552. package/dist/actions/search-invoices.mjs +119 -0
  553. package/dist/actions/search-invoices.mjs.map +1 -0
  554. package/dist/actions/send-invoice.cjs +37 -0
  555. package/dist/actions/send-invoice.cjs.map +1 -0
  556. package/dist/actions/send-invoice.d.cts +9 -0
  557. package/dist/actions/send-invoice.d.cts.map +1 -0
  558. package/dist/actions/send-invoice.d.mts +9 -0
  559. package/dist/actions/send-invoice.d.mts.map +1 -0
  560. package/dist/actions/send-invoice.mjs +36 -0
  561. package/dist/actions/send-invoice.mjs.map +1 -0
  562. package/dist/actions/simulate-webhook-event.cjs +52 -0
  563. package/dist/actions/simulate-webhook-event.cjs.map +1 -0
  564. package/dist/actions/simulate-webhook-event.d.cts +9 -0
  565. package/dist/actions/simulate-webhook-event.d.cts.map +1 -0
  566. package/dist/actions/simulate-webhook-event.d.mts +9 -0
  567. package/dist/actions/simulate-webhook-event.d.mts.map +1 -0
  568. package/dist/actions/simulate-webhook-event.mjs +51 -0
  569. package/dist/actions/simulate-webhook-event.mjs.map +1 -0
  570. package/dist/actions/update-dispute.cjs +45 -0
  571. package/dist/actions/update-dispute.cjs.map +1 -0
  572. package/dist/actions/update-dispute.d.cts +9 -0
  573. package/dist/actions/update-dispute.d.cts.map +1 -0
  574. package/dist/actions/update-dispute.d.mts +9 -0
  575. package/dist/actions/update-dispute.d.mts.map +1 -0
  576. package/dist/actions/update-dispute.mjs +44 -0
  577. package/dist/actions/update-dispute.mjs.map +1 -0
  578. package/dist/actions/update-invoice.cjs +367 -0
  579. package/dist/actions/update-invoice.cjs.map +1 -0
  580. package/dist/actions/update-invoice.d.cts +9 -0
  581. package/dist/actions/update-invoice.d.cts.map +1 -0
  582. package/dist/actions/update-invoice.d.mts +9 -0
  583. package/dist/actions/update-invoice.d.mts.map +1 -0
  584. package/dist/actions/update-invoice.mjs +366 -0
  585. package/dist/actions/update-invoice.mjs.map +1 -0
  586. package/dist/actions/update-pay-pal-product.cjs +41 -0
  587. package/dist/actions/update-pay-pal-product.cjs.map +1 -0
  588. package/dist/actions/update-pay-pal-product.d.cts +9 -0
  589. package/dist/actions/update-pay-pal-product.d.cts.map +1 -0
  590. package/dist/actions/update-pay-pal-product.d.mts +9 -0
  591. package/dist/actions/update-pay-pal-product.d.mts.map +1 -0
  592. package/dist/actions/update-pay-pal-product.mjs +38 -0
  593. package/dist/actions/update-pay-pal-product.mjs.map +1 -0
  594. package/dist/actions/update-pay-pal-webhook.cjs +54 -0
  595. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -0
  596. package/dist/actions/update-pay-pal-webhook.d.cts +9 -0
  597. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -0
  598. package/dist/actions/update-pay-pal-webhook.d.mts +9 -0
  599. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -0
  600. package/dist/actions/update-pay-pal-webhook.mjs +53 -0
  601. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -0
  602. package/dist/actions/update-templates.cjs +403 -0
  603. package/dist/actions/update-templates.cjs.map +1 -0
  604. package/dist/actions/update-templates.d.cts +9 -0
  605. package/dist/actions/update-templates.d.cts.map +1 -0
  606. package/dist/actions/update-templates.d.mts +9 -0
  607. package/dist/actions/update-templates.d.mts.map +1 -0
  608. package/dist/actions/update-templates.mjs +402 -0
  609. package/dist/actions/update-templates.mjs.map +1 -0
  610. package/dist/actions/update-web-profile.cjs +50 -0
  611. package/dist/actions/update-web-profile.cjs.map +1 -0
  612. package/dist/actions/update-web-profile.d.cts +9 -0
  613. package/dist/actions/update-web-profile.d.cts.map +1 -0
  614. package/dist/actions/update-web-profile.d.mts +9 -0
  615. package/dist/actions/update-web-profile.d.mts.map +1 -0
  616. package/dist/actions/update-web-profile.mjs +49 -0
  617. package/dist/actions/update-web-profile.mjs.map +1 -0
  618. package/dist/actions/verify-payment-method.cjs +33 -0
  619. package/dist/actions/verify-payment-method.cjs.map +1 -0
  620. package/dist/actions/verify-payment-method.d.cts +9 -0
  621. package/dist/actions/verify-payment-method.d.cts.map +1 -0
  622. package/dist/actions/verify-payment-method.d.mts +9 -0
  623. package/dist/actions/verify-payment-method.d.mts.map +1 -0
  624. package/dist/actions/verify-payment-method.mjs +32 -0
  625. package/dist/actions/verify-payment-method.mjs.map +1 -0
  626. package/dist/actions/verify-webhook-signature.cjs +37 -0
  627. package/dist/actions/verify-webhook-signature.cjs.map +1 -0
  628. package/dist/actions/verify-webhook-signature.d.cts +9 -0
  629. package/dist/actions/verify-webhook-signature.d.cts.map +1 -0
  630. package/dist/actions/verify-webhook-signature.d.mts +9 -0
  631. package/dist/actions/verify-webhook-signature.d.mts.map +1 -0
  632. package/dist/actions/verify-webhook-signature.mjs +34 -0
  633. package/dist/actions/verify-webhook-signature.mjs.map +1 -0
  634. package/dist/app.cjs +9 -0
  635. package/dist/app.cjs.map +1 -0
  636. package/dist/app.d.cts +5 -0
  637. package/dist/app.d.cts.map +1 -0
  638. package/dist/app.d.mts +5 -0
  639. package/dist/app.d.mts.map +1 -0
  640. package/dist/app.mjs +10 -0
  641. package/dist/app.mjs.map +1 -0
  642. package/dist/catalog.cjs +15 -0
  643. package/dist/catalog.cjs.map +1 -0
  644. package/dist/catalog.d.cts +14 -0
  645. package/dist/catalog.d.cts.map +1 -0
  646. package/dist/catalog.d.mts +14 -0
  647. package/dist/catalog.d.mts.map +1 -0
  648. package/dist/catalog.mjs +15 -0
  649. package/dist/catalog.mjs.map +1 -0
  650. package/dist/execute.cjs +18 -0
  651. package/dist/execute.cjs.map +1 -0
  652. package/dist/execute.mjs +18 -0
  653. package/dist/execute.mjs.map +1 -0
  654. package/dist/index.cjs +162 -0
  655. package/dist/index.d.cts +81 -0
  656. package/dist/index.d.mts +81 -0
  657. package/dist/index.mjs +82 -0
  658. package/package.json +49 -0
@@ -0,0 +1,87 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-subscription.ts
4
+ const PaypalGetSubscriptionInput = z.object({
5
+ id: z.string().describe("The ID of the subscription to retrieve."),
6
+ fields: z.string().describe("A comma-separated list of additional fields to include in the response. Possible values are 'last_failed_payment' and 'plan'.").optional()
7
+ }).describe("Request model for getting subscription details.");
8
+ const PaypalGetSubscription_PlanSchema = z.object({
9
+ name: z.string().describe("The name of the plan.").nullable().optional(),
10
+ plan_id: z.string().describe("The ID of the plan.").nullable().optional()
11
+ }).describe("The plan information for the subscription.");
12
+ const PaypalGetSubscription_LinkDescriptionSchema = z.object({
13
+ rel: z.string().describe("The link relation type.").nullable().optional(),
14
+ href: z.string().describe("The hyperlink to the related resource.").nullable().optional(),
15
+ method: z.string().describe("The HTTP method required to invoke the related resource.").nullable().optional(),
16
+ enc_type: z.string().describe("The encryption type of the link.").nullable().optional()
17
+ }).describe("The HATEOAS link related to this subscription.");
18
+ const PaypalGetSubscription_SubscriberNameSchema = z.object({
19
+ surname: z.string().describe("The surname of the subscriber.").nullable().optional(),
20
+ given_name: z.string().describe("The given name of the subscriber.").nullable().optional()
21
+ }).describe("The name parts of the subscriber.");
22
+ const PaypalGetSubscription_SubscriberSchema = z.object({
23
+ name: PaypalGetSubscription_SubscriberNameSchema.nullable().optional(),
24
+ payer_id: z.string().describe("The PayPal ID of the payer.").nullable().optional(),
25
+ email_address: z.string().describe("The email address of the subscriber.").nullable().optional(),
26
+ subscriber_id: z.string().describe("The internal identifier for the subscriber.").nullable().optional()
27
+ }).describe("The subscriber information for the subscription.");
28
+ const PaypalGetSubscription_ShippingAmountSchema = z.object({
29
+ value: z.string().describe("The amount value.").nullable().optional(),
30
+ currency_code: z.string().describe("The three-character ISO currency code.").nullable().optional()
31
+ }).describe("The shipping amount for the subscription.");
32
+ const PaypalGetSubscription_PaymentDetailsSchema = z.object({
33
+ time: z.string().describe("The date and time of the payment.").nullable().optional(),
34
+ amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),
35
+ status: z.string().describe("The status of the payment.").nullable().optional()
36
+ }).describe("Details of a payment transaction.");
37
+ const PaypalGetSubscription_CycleExecutionSchema = z.object({
38
+ sequence: z.number().int().describe("The sequence number of the cycle.").nullable().optional(),
39
+ tenure_type: z.string().describe("The tenure type of the cycle.").nullable().optional(),
40
+ total_cycles: z.number().int().describe("The total number of cycles.").nullable().optional(),
41
+ cycles_completed: z.number().int().describe("The number of cycles completed.").nullable().optional(),
42
+ cycles_remaining: z.number().int().describe("The number of cycles remaining.").nullable().optional()
43
+ }).describe("Details of a cycle execution.");
44
+ const PaypalGetSubscription_ShippingAddressSchema = z.object({
45
+ postal_code: z.string().describe("The postal code or ZIP code.").nullable().optional(),
46
+ admin_area_1: z.string().describe("The state or province code.").nullable().optional(),
47
+ admin_area_2: z.string().describe("The city name.").nullable().optional(),
48
+ country_code: z.string().describe("The two-character ISO country code.").nullable().optional(),
49
+ address_line_1: z.string().describe("The first line of the address.").nullable().optional(),
50
+ address_line_2: z.string().describe("The second line of the address.").nullable().optional()
51
+ }).describe("The shipping address for the subscription.");
52
+ const PaypalGetSubscription_BillingInfoSchema = z.object({
53
+ last_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),
54
+ cycle_executions: z.array(PaypalGetSubscription_CycleExecutionSchema).describe("The cycle executions for the subscription.").nullable().optional(),
55
+ shipping_address: PaypalGetSubscription_ShippingAddressSchema.nullable().optional(),
56
+ next_billing_time: z.string().describe("The next billing date and time.").nullable().optional(),
57
+ last_failed_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),
58
+ failed_payment_count: z.number().int().describe("The number of failed payments.").nullable().optional()
59
+ }).describe("The billing information for the subscription.");
60
+ const paypalGetSubscription = action("PAYPAL_GET_SUBSCRIPTION", {
61
+ slug: "paypal-get-subscription",
62
+ name: "Get Subscription Details",
63
+ description: "Retrieves the details of a PayPal subscription by its ID. Use this action when you need to check the status, billing information, subscriber details, or other properties of an existing subscription. Optionally, you can request additional fields like 'last_failed_payment' or 'plan' details using the fields parameter.",
64
+ input: PaypalGetSubscriptionInput,
65
+ output: z.object({
66
+ id: z.string().describe("The unique identifier for the subscription.").nullable().optional(),
67
+ plan: PaypalGetSubscription_PlanSchema.nullable().optional(),
68
+ links: z.array(PaypalGetSubscription_LinkDescriptionSchema).describe("An array of HATEOAS links related to the subscription.").nullable().optional(),
69
+ status: z.string().describe("The status of the subscription (e.g., ACTIVE, SUSPENDED, CANCELLED, EXPIRED).").nullable().optional(),
70
+ plan_id: z.string().describe("The ID of the plan associated with the subscription.").nullable().optional(),
71
+ quantity: z.string().describe("The quantity of the subscription.").nullable().optional(),
72
+ custom_id: z.string().describe("A custom ID you can set to track the subscription.").nullable().optional(),
73
+ start_time: z.string().describe("The date and time when the subscription starts.").nullable().optional(),
74
+ subscriber: PaypalGetSubscription_SubscriberSchema.nullable().optional(),
75
+ create_time: z.string().describe("The date and time when the subscription was created.").nullable().optional(),
76
+ update_time: z.string().describe("The date and time when the subscription was last updated.").nullable().optional(),
77
+ billing_info: PaypalGetSubscription_BillingInfoSchema.nullable().optional(),
78
+ plan_overridden: z.boolean().describe("Indicates whether the plan was overridden.").nullable().optional(),
79
+ shipping_amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),
80
+ status_change_note: z.string().describe("The reason for the status change.").nullable().optional(),
81
+ status_update_time: z.string().describe("The date and time when the status was last updated.").nullable().optional()
82
+ }).describe("Response model for subscription details.")
83
+ });
84
+ //#endregion
85
+ export { paypalGetSubscription };
86
+
87
+ //# sourceMappingURL=get-subscription.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-subscription.mjs","names":[],"sources":["../../src/actions/get-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetSubscriptionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the subscription to retrieve.\"),\n fields: z.string().describe(\"A comma-separated list of additional fields to include in the response. Possible values are 'last_failed_payment' and 'plan'.\").optional(),\n}).describe(\"Request model for getting subscription details.\");\nconst PaypalGetSubscription_PlanSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan.\").nullable().optional(),\n}).describe(\"The plan information for the subscription.\");\nconst PaypalGetSubscription_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n enc_type: z.string().describe(\"The encryption type of the link.\").nullable().optional(),\n}).describe(\"The HATEOAS link related to this subscription.\");\nconst PaypalGetSubscription_SubscriberNameSchema: z.ZodTypeAny = z.object({\n surname: z.string().describe(\"The surname of the subscriber.\").nullable().optional(),\n given_name: z.string().describe(\"The given name of the subscriber.\").nullable().optional(),\n}).describe(\"The name parts of the subscriber.\");\nconst PaypalGetSubscription_SubscriberSchema: z.ZodTypeAny = z.object({\n name: PaypalGetSubscription_SubscriberNameSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal ID of the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the subscriber.\").nullable().optional(),\n subscriber_id: z.string().describe(\"The internal identifier for the subscriber.\").nullable().optional(),\n}).describe(\"The subscriber information for the subscription.\");\nconst PaypalGetSubscription_ShippingAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).describe(\"The shipping amount for the subscription.\");\nconst PaypalGetSubscription_PaymentDetailsSchema: z.ZodTypeAny = z.object({\n time: z.string().describe(\"The date and time of the payment.\").nullable().optional(),\n amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),\n status: z.string().describe(\"The status of the payment.\").nullable().optional(),\n}).describe(\"Details of a payment transaction.\");\nconst PaypalGetSubscription_CycleExecutionSchema: z.ZodTypeAny = z.object({\n sequence: z.number().int().describe(\"The sequence number of the cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles.\").nullable().optional(),\n cycles_completed: z.number().int().describe(\"The number of cycles completed.\").nullable().optional(),\n cycles_remaining: z.number().int().describe(\"The number of cycles remaining.\").nullable().optional(),\n}).describe(\"Details of a cycle execution.\");\nconst PaypalGetSubscription_ShippingAddressSchema: z.ZodTypeAny = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state or province code.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city name.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).describe(\"The shipping address for the subscription.\");\nconst PaypalGetSubscription_BillingInfoSchema: z.ZodTypeAny = z.object({\n last_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),\n cycle_executions: z.array(PaypalGetSubscription_CycleExecutionSchema).describe(\"The cycle executions for the subscription.\").nullable().optional(),\n shipping_address: PaypalGetSubscription_ShippingAddressSchema.nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing date and time.\").nullable().optional(),\n last_failed_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),\n failed_payment_count: z.number().int().describe(\"The number of failed payments.\").nullable().optional(),\n}).describe(\"The billing information for the subscription.\");\nexport const PaypalGetSubscriptionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n plan: PaypalGetSubscription_PlanSchema.nullable().optional(),\n links: z.array(PaypalGetSubscription_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the subscription.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., ACTIVE, SUSPENDED, CANCELLED, EXPIRED).\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan associated with the subscription.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"A custom ID you can set to track the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts.\").nullable().optional(),\n subscriber: PaypalGetSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The date and time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalGetSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Indicates whether the plan was overridden.\").nullable().optional(),\n shipping_amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),\n status_change_note: z.string().describe(\"The reason for the status change.\").nullable().optional(),\n status_update_time: z.string().describe(\"The date and time when the status was last updated.\").nullable().optional(),\n}).describe(\"Response model for subscription details.\");\n\nexport const paypalGetSubscription = action(\"PAYPAL_GET_SUBSCRIPTION\", {\n slug: \"paypal-get-subscription\",\n name: \"Get Subscription Details\",\n description: \"Retrieves the details of a PayPal subscription by its ID. Use this action when you need to check the status, billing information, subscriber details, or other properties of an existing subscription. Optionally, you can request additional fields like 'last_failed_payment' or 'plan' details using the fields parameter.\",\n input: PaypalGetSubscriptionInput,\n output: PaypalGetSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,8CAA4D,EAAE,OAAO;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,UAAU,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AiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,iBAAiB,2CAA2C,SAAS,CAAC,CAAC,SAAS;EAChF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
@@ -0,0 +1,43 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-user-info.ts
4
+ const PaypalGetUserInfoInput = zod.z.object({ schema: zod.z.enum(["paypalv1.1"]).default("paypalv1.1").describe("Supported schema values for user info response.").optional() }).describe("Request model for retrieving PayPal user profile information.");
5
+ const PaypalGetUserInfo_EmailSchema = zod.z.object({
6
+ email: zod.z.string().describe("Email address.").nullable().optional(),
7
+ primary: zod.z.boolean().describe("Indicates if this is the primary email address.").nullable().optional(),
8
+ verified: zod.z.boolean().describe("Indicates if the email address is verified.").nullable().optional()
9
+ }).describe("Email information in user profile.");
10
+ const PaypalGetUserInfo_AddressSchema = zod.z.object({
11
+ region: zod.z.string().describe("State or province.").nullable().optional(),
12
+ locality: zod.z.string().describe("City or locality.").nullable().optional(),
13
+ postal_code: zod.z.string().describe("Postal code or ZIP code.").nullable().optional(),
14
+ country_code: zod.z.string().describe("ISO 3166-1 alpha-2 country code.").nullable().optional(),
15
+ street_address: zod.z.string().describe("Street address.").nullable().optional()
16
+ }).describe("Address information in user profile.");
17
+ const PaypalGetUserInfoOutput = zod.z.object({
18
+ name: zod.z.string().describe("The user's full name.").nullable().optional(),
19
+ email: zod.z.string().describe("The user's primary email address.").nullable().optional(),
20
+ phone: zod.z.string().describe("The user's primary phone number.").nullable().optional(),
21
+ emails: zod.z.array(PaypalGetUserInfo_EmailSchema).describe("List of email addresses associated with the user.").nullable().optional(),
22
+ address: PaypalGetUserInfo_AddressSchema.nullable().optional(),
23
+ user_id: zod.z.string().describe("The PayPal user ID.").nullable().optional(),
24
+ payer_id: zod.z.string().describe("The PayPal payer ID.").nullable().optional(),
25
+ verified: zod.z.boolean().describe("Indicates whether the identity is verified.").nullable().optional(),
26
+ age_range: zod.z.string().describe("The user's age range.").nullable().optional(),
27
+ user_name: zod.z.string().describe("The user name.").nullable().optional(),
28
+ given_name: zod.z.string().describe("The user's first name.").nullable().optional(),
29
+ family_name: zod.z.string().describe("The user's last name.").nullable().optional(),
30
+ account_type: zod.z.string().describe("The PayPal account type (e.g., PERSONAL, PREMIUM, BUSINESS).").nullable().optional(),
31
+ verified_account: zod.z.boolean().describe("Indicates whether the account is verified.").nullable().optional()
32
+ }).describe("Response model for PayPal user profile information.");
33
+ const paypalGetUserInfo = require_action.action("PAYPAL_GET_USER_INFO", {
34
+ slug: "paypal-get-user-info",
35
+ name: "Get User Info",
36
+ description: "Retrieves user profile information from PayPal. Use when you need to get the authenticated user's profile details including name, email, address, and account verification status. The response is filtered by the specified schema. The only supported schema value is 'paypalv1.1', which returns the user information in a structured format.",
37
+ input: PaypalGetUserInfoInput,
38
+ output: PaypalGetUserInfoOutput
39
+ });
40
+ //#endregion
41
+ exports.paypalGetUserInfo = paypalGetUserInfo;
42
+
43
+ //# sourceMappingURL=get-user-info.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-info.cjs","names":["z","action"],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetUserInfoInput: z.ZodTypeAny = z.object({\n schema: z.enum([\"paypalv1.1\"]).default(\"paypalv1.1\").describe(\"Supported schema values for user info response.\").optional(),\n}).describe(\"Request model for retrieving PayPal user profile information.\");\nconst PaypalGetUserInfo_EmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address.\").nullable().optional(),\n primary: z.boolean().describe(\"Indicates if this is the primary email address.\").nullable().optional(),\n verified: z.boolean().describe(\"Indicates if the email address is verified.\").nullable().optional(),\n}).describe(\"Email information in user profile.\");\nconst PaypalGetUserInfo_AddressSchema: z.ZodTypeAny = z.object({\n region: z.string().describe(\"State or province.\").nullable().optional(),\n locality: z.string().describe(\"City or locality.\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"ISO 3166-1 alpha-2 country code.\").nullable().optional(),\n street_address: z.string().describe(\"Street address.\").nullable().optional(),\n}).describe(\"Address information in user profile.\");\nexport const PaypalGetUserInfoOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The user's full name.\").nullable().optional(),\n email: z.string().describe(\"The user's primary email address.\").nullable().optional(),\n phone: z.string().describe(\"The user's primary phone number.\").nullable().optional(),\n emails: z.array(PaypalGetUserInfo_EmailSchema).describe(\"List of email addresses associated with the user.\").nullable().optional(),\n address: PaypalGetUserInfo_AddressSchema.nullable().optional(),\n user_id: z.string().describe(\"The PayPal user ID.\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal payer ID.\").nullable().optional(),\n verified: z.boolean().describe(\"Indicates whether the identity is verified.\").nullable().optional(),\n age_range: z.string().describe(\"The user's age range.\").nullable().optional(),\n user_name: z.string().describe(\"The user name.\").nullable().optional(),\n given_name: z.string().describe(\"The user's first name.\").nullable().optional(),\n family_name: z.string().describe(\"The user's last name.\").nullable().optional(),\n account_type: z.string().describe(\"The PayPal account type (e.g., PERSONAL, PREMIUM, BUSINESS).\").nullable().optional(),\n verified_account: z.boolean().describe(\"Indicates whether the account is verified.\").nullable().optional(),\n}).describe(\"Response model for PayPal user profile information.\");\n\nexport const paypalGetUserInfo = action(\"PAYPAL_GET_USER_INFO\", {\n slug: \"paypal-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieves user profile information from PayPal. Use when you need to get the authenticated user's profile details including name, email, address, and account verification status. The response is filtered by the specified schema. The only supported schema value is 'paypalv1.1', which returns the user information in a structured format.\",\n input: PaypalGetUserInfoInput,\n output: PaypalGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC5H,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAA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C,SAAS,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user-info.d.ts
4
+ declare const PaypalGetUserInfoInput: z.ZodTypeAny;
5
+ declare const PaypalGetUserInfoOutput: z.ZodTypeAny;
6
+ declare const paypalGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalGetUserInfo };
9
+ //# sourceMappingURL=get-user-info.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-info.d.cts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEqC;AAAA,cAa/D,uBAAA,EAAyB,CAAA,CAAE,UAe0B;AAAA,cAErD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user-info.d.ts
4
+ declare const PaypalGetUserInfoInput: z.ZodTypeAny;
5
+ declare const PaypalGetUserInfoOutput: z.ZodTypeAny;
6
+ declare const paypalGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalGetUserInfo };
9
+ //# sourceMappingURL=get-user-info.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-info.d.mts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEqC;AAAA,cAa/D,uBAAA,EAAyB,CAAA,CAAE,UAe0B;AAAA,cAErD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-user-info.ts
4
+ const PaypalGetUserInfoInput = z.object({ schema: z.enum(["paypalv1.1"]).default("paypalv1.1").describe("Supported schema values for user info response.").optional() }).describe("Request model for retrieving PayPal user profile information.");
5
+ const PaypalGetUserInfo_EmailSchema = z.object({
6
+ email: z.string().describe("Email address.").nullable().optional(),
7
+ primary: z.boolean().describe("Indicates if this is the primary email address.").nullable().optional(),
8
+ verified: z.boolean().describe("Indicates if the email address is verified.").nullable().optional()
9
+ }).describe("Email information in user profile.");
10
+ const PaypalGetUserInfo_AddressSchema = z.object({
11
+ region: z.string().describe("State or province.").nullable().optional(),
12
+ locality: z.string().describe("City or locality.").nullable().optional(),
13
+ postal_code: z.string().describe("Postal code or ZIP code.").nullable().optional(),
14
+ country_code: z.string().describe("ISO 3166-1 alpha-2 country code.").nullable().optional(),
15
+ street_address: z.string().describe("Street address.").nullable().optional()
16
+ }).describe("Address information in user profile.");
17
+ const paypalGetUserInfo = action("PAYPAL_GET_USER_INFO", {
18
+ slug: "paypal-get-user-info",
19
+ name: "Get User Info",
20
+ description: "Retrieves user profile information from PayPal. Use when you need to get the authenticated user's profile details including name, email, address, and account verification status. The response is filtered by the specified schema. The only supported schema value is 'paypalv1.1', which returns the user information in a structured format.",
21
+ input: PaypalGetUserInfoInput,
22
+ output: z.object({
23
+ name: z.string().describe("The user's full name.").nullable().optional(),
24
+ email: z.string().describe("The user's primary email address.").nullable().optional(),
25
+ phone: z.string().describe("The user's primary phone number.").nullable().optional(),
26
+ emails: z.array(PaypalGetUserInfo_EmailSchema).describe("List of email addresses associated with the user.").nullable().optional(),
27
+ address: PaypalGetUserInfo_AddressSchema.nullable().optional(),
28
+ user_id: z.string().describe("The PayPal user ID.").nullable().optional(),
29
+ payer_id: z.string().describe("The PayPal payer ID.").nullable().optional(),
30
+ verified: z.boolean().describe("Indicates whether the identity is verified.").nullable().optional(),
31
+ age_range: z.string().describe("The user's age range.").nullable().optional(),
32
+ user_name: z.string().describe("The user name.").nullable().optional(),
33
+ given_name: z.string().describe("The user's first name.").nullable().optional(),
34
+ family_name: z.string().describe("The user's last name.").nullable().optional(),
35
+ account_type: z.string().describe("The PayPal account type (e.g., PERSONAL, PREMIUM, BUSINESS).").nullable().optional(),
36
+ verified_account: z.boolean().describe("Indicates whether the account is verified.").nullable().optional()
37
+ }).describe("Response model for PayPal user profile information.")
38
+ });
39
+ //#endregion
40
+ export { paypalGetUserInfo };
41
+
42
+ //# sourceMappingURL=get-user-info.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-info.mjs","names":[],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetUserInfoInput: z.ZodTypeAny = z.object({\n schema: z.enum([\"paypalv1.1\"]).default(\"paypalv1.1\").describe(\"Supported schema values for user info response.\").optional(),\n}).describe(\"Request model for retrieving PayPal user profile information.\");\nconst PaypalGetUserInfo_EmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address.\").nullable().optional(),\n primary: z.boolean().describe(\"Indicates if this is the primary email address.\").nullable().optional(),\n verified: z.boolean().describe(\"Indicates if the email address is verified.\").nullable().optional(),\n}).describe(\"Email information in user profile.\");\nconst PaypalGetUserInfo_AddressSchema: z.ZodTypeAny = z.object({\n region: z.string().describe(\"State or province.\").nullable().optional(),\n locality: z.string().describe(\"City or locality.\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"ISO 3166-1 alpha-2 country code.\").nullable().optional(),\n street_address: z.string().describe(\"Street address.\").nullable().optional(),\n}).describe(\"Address information in user profile.\");\nexport const PaypalGetUserInfoOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The user's full name.\").nullable().optional(),\n email: z.string().describe(\"The user's primary email address.\").nullable().optional(),\n phone: z.string().describe(\"The user's primary phone number.\").nullable().optional(),\n emails: z.array(PaypalGetUserInfo_EmailSchema).describe(\"List of email addresses associated with the user.\").nullable().optional(),\n address: PaypalGetUserInfo_AddressSchema.nullable().optional(),\n user_id: z.string().describe(\"The PayPal user ID.\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal payer ID.\").nullable().optional(),\n verified: z.boolean().describe(\"Indicates whether the identity is verified.\").nullable().optional(),\n age_range: z.string().describe(\"The user's age range.\").nullable().optional(),\n user_name: z.string().describe(\"The user name.\").nullable().optional(),\n given_name: z.string().describe(\"The user's first name.\").nullable().optional(),\n family_name: z.string().describe(\"The user's last name.\").nullable().optional(),\n account_type: z.string().describe(\"The PayPal account type (e.g., PERSONAL, PREMIUM, BUSINESS).\").nullable().optional(),\n verified_account: z.boolean().describe(\"Indicates whether the account is verified.\").nullable().optional(),\n}).describe(\"Response model for PayPal user profile information.\");\n\nexport const paypalGetUserInfo = action(\"PAYPAL_GET_USER_INFO\", {\n slug: \"paypal-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieves user profile information from PayPal. Use when you need to get the authenticated user's profile details including name, email, address, and account verification status. The response is filtered by the specified schema. The only supported schema value is 'paypalv1.1', which returns the user information in a structured format.\",\n input: PaypalGetUserInfoInput,\n output: PaypalGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC5H,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,gCAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAkBlD,MAAa,oBAAoB,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;C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SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
@@ -0,0 +1,55 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-userinfo.ts
4
+ const PaypalGetUserinfoInput = zod.z.object({ claims_schema: zod.z.enum(["paypalv1.userinfo-1.0", "openid"]).default("openid").describe("The schema that defines the claims format.").optional() }).describe("Request model for retrieving PayPal user claims via OpenID Connect.");
5
+ const PaypalGetUserinfo_AddressClaimSchema = zod.z.object({
6
+ region: zod.z.string().describe("The region (state/province).").nullable().optional(),
7
+ country: zod.z.string().describe("The country code (ISO 3166-1 alpha-2).").nullable().optional(),
8
+ locality: zod.z.string().describe("The locality (city).").nullable().optional(),
9
+ postal_code: zod.z.string().describe("The postal code (zip code).").nullable().optional(),
10
+ street_address: zod.z.string().describe("The street address.").nullable().optional()
11
+ }).describe("The user's address claim.");
12
+ const PaypalGetUserinfo_AuthClaimEntrySchema = zod.z.object({
13
+ name: zod.z.string().describe("The name of the authentication claim.").nullable().optional(),
14
+ value: zod.z.string().describe("The value of the authentication claim.").nullable().optional()
15
+ }).describe("An individual authentication claim entry.");
16
+ const PaypalGetUserinfoOutput = zod.z.object({
17
+ sub: zod.z.string().describe("The subject (same as user_id, OIDC standard format).").nullable().optional(),
18
+ name: zod.z.string().describe("The user's full name.").nullable().optional(),
19
+ email: zod.z.string().describe("The user's email address.").nullable().optional(),
20
+ gender: zod.z.string().describe("The user's gender (male, female, or other).").nullable().optional(),
21
+ locale: zod.z.string().describe("The user's locale (language and country code).").nullable().optional(),
22
+ address: PaypalGetUserinfo_AddressClaimSchema.nullable().optional(),
23
+ context: zod.z.string().describe("The user context identifier.").nullable().optional(),
24
+ user_id: zod.z.string().describe("The subject identifier (unique user ID in format 'https://paypal.com/PayPalID').").nullable().optional(),
25
+ payer_id: zod.z.string().describe("The PayPal payer ID.").nullable().optional(),
26
+ zoneinfo: zod.z.string().describe("The user's timezone zoneinfo string.").nullable().optional(),
27
+ age_range: zod.z.string().describe("The user's age range if available.").nullable().optional(),
28
+ birthdate: zod.z.string().describe("The user's birthdate in YYYY-MM-DD format.").nullable().optional(),
29
+ birth_year: zod.z.string().describe("The user's birth year.").nullable().optional(),
30
+ given_name: zod.z.string().describe("The user's first/given name.").nullable().optional(),
31
+ login_hint: zod.z.string().describe("Login hint used for authentication.").nullable().optional(),
32
+ auth_claims: zod.z.array(PaypalGetUserinfo_AuthClaimEntrySchema).describe("Additional authentication claims.").nullable().optional(),
33
+ birth_month: zod.z.string().describe("The user's birth month.").nullable().optional(),
34
+ family_name: zod.z.string().describe("The user's last/family name.").nullable().optional(),
35
+ middle_name: zod.z.string().describe("The user's middle name if available.").nullable().optional(),
36
+ account_type: zod.z.string().describe("The PayPal account type ('PERSONAL' or 'BUSINESS').").nullable().optional(),
37
+ phone_number: zod.z.string().describe("The user's phone number.").nullable().optional(),
38
+ email_verified: zod.z.string().describe("Indicates whether the email has been verified ('true' or 'false').").nullable().optional(),
39
+ claims_supported: zod.z.array(zod.z.string()).describe("List of supported claims by the server.").nullable().optional(),
40
+ verified_account: zod.z.string().describe("Indicates whether the account is verified ('true' or 'false').").nullable().optional(),
41
+ preferred_username: zod.z.string().describe("The user's preferred PayPal username.").nullable().optional(),
42
+ phone_number_verified: zod.z.string().describe("Indicates whether the phone number has been verified ('true' or 'false').").nullable().optional(),
43
+ verified_account_type: zod.z.string().describe("The type of verified account ('PERSONAL' or 'BUSINESS').").nullable().optional()
44
+ }).describe("Response model for PayPal OpenID Connect userinfo endpoint.");
45
+ const paypalGetUserinfo = require_action.action("PAYPAL_GET_USERINFO", {
46
+ slug: "paypal-get-userinfo",
47
+ name: "Get PayPal User Info",
48
+ description: "Retrieves user claims from PayPal using OpenID Connect. Use when you need to obtain authenticated user's profile information such as email, name, and address based on an access token. This endpoint returns user identity information associated with the OAuth access token provided in the Authorization header. The access token must have been obtained via OpenID Connect authentication flow. This action requires an access token with the 'openid' scope. The token is passed via the Authorization header (Bearer token), which is automatically injected from the auth_metadata.",
49
+ input: PaypalGetUserinfoInput,
50
+ output: PaypalGetUserinfoOutput
51
+ });
52
+ //#endregion
53
+ exports.paypalGetUserinfo = paypalGetUserinfo;
54
+
55
+ //# sourceMappingURL=get-userinfo.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-userinfo.cjs","names":["z","action"],"sources":["../../src/actions/get-userinfo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetUserinfoInput: z.ZodTypeAny = z.object({\n claims_schema: z.enum([\"paypalv1.userinfo-1.0\", \"openid\"]).default(\"openid\").describe(\"The schema that defines the claims format.\").optional(),\n}).describe(\"Request model for retrieving PayPal user claims via OpenID Connect.\");\nconst PaypalGetUserinfo_AddressClaimSchema: z.ZodTypeAny = z.object({\n region: z.string().describe(\"The region (state/province).\").nullable().optional(),\n country: z.string().describe(\"The country code (ISO 3166-1 alpha-2).\").nullable().optional(),\n locality: z.string().describe(\"The locality (city).\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code (zip code).\").nullable().optional(),\n street_address: z.string().describe(\"The street address.\").nullable().optional(),\n}).describe(\"The user's address claim.\");\nconst PaypalGetUserinfo_AuthClaimEntrySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the authentication claim.\").nullable().optional(),\n value: z.string().describe(\"The value of the authentication claim.\").nullable().optional(),\n}).describe(\"An individual authentication claim entry.\");\nexport const PaypalGetUserinfoOutput: z.ZodTypeAny = z.object({\n sub: z.string().describe(\"The subject (same as user_id, OIDC standard format).\").nullable().optional(),\n name: z.string().describe(\"The user's full name.\").nullable().optional(),\n email: z.string().describe(\"The user's email address.\").nullable().optional(),\n gender: z.string().describe(\"The user's gender (male, female, or other).\").nullable().optional(),\n locale: z.string().describe(\"The user's locale (language and country code).\").nullable().optional(),\n address: PaypalGetUserinfo_AddressClaimSchema.nullable().optional(),\n context: z.string().describe(\"The user context identifier.\").nullable().optional(),\n user_id: z.string().describe(\"The subject identifier (unique user ID in format 'https://paypal.com/PayPalID').\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal payer ID.\").nullable().optional(),\n zoneinfo: z.string().describe(\"The user's timezone zoneinfo string.\").nullable().optional(),\n age_range: z.string().describe(\"The user's age range if available.\").nullable().optional(),\n birthdate: z.string().describe(\"The user's birthdate in YYYY-MM-DD format.\").nullable().optional(),\n birth_year: z.string().describe(\"The user's birth year.\").nullable().optional(),\n given_name: z.string().describe(\"The user's first/given name.\").nullable().optional(),\n login_hint: z.string().describe(\"Login hint used for authentication.\").nullable().optional(),\n auth_claims: z.array(PaypalGetUserinfo_AuthClaimEntrySchema).describe(\"Additional authentication claims.\").nullable().optional(),\n birth_month: z.string().describe(\"The user's birth month.\").nullable().optional(),\n family_name: z.string().describe(\"The user's last/family name.\").nullable().optional(),\n middle_name: z.string().describe(\"The user's middle name if available.\").nullable().optional(),\n account_type: z.string().describe(\"The PayPal account type ('PERSONAL' or 'BUSINESS').\").nullable().optional(),\n phone_number: z.string().describe(\"The user's phone number.\").nullable().optional(),\n email_verified: z.string().describe(\"Indicates whether the email has been verified ('true' or 'false').\").nullable().optional(),\n claims_supported: z.array(z.string()).describe(\"List of supported claims by the server.\").nullable().optional(),\n verified_account: z.string().describe(\"Indicates whether the account is verified ('true' or 'false').\").nullable().optional(),\n preferred_username: z.string().describe(\"The user's preferred PayPal username.\").nullable().optional(),\n phone_number_verified: z.string().describe(\"Indicates whether the phone number has been verified ('true' or 'false').\").nullable().optional(),\n verified_account_type: z.string().describe(\"The type of verified account ('PERSONAL' or 'BUSINESS').\").nullable().optional(),\n}).describe(\"Response model for PayPal OpenID Connect userinfo endpoint.\");\n\nexport const paypalGetUserinfo = action(\"PAYPAL_GET_USERINFO\", {\n slug: \"paypal-get-userinfo\",\n name: \"Get PayPal User Info\",\n description: \"Retrieves user claims from PayPal using OpenID Connect. Use when you need to obtain authenticated user's profile information such as email, name, and address based on an access token. This endpoint returns user identity information associated with the OAuth access token provided in the Authorization header. The access token must have been obtained via OpenID Connect authentication flow. This action requires an access token with the 'openid' scope. The token is passed via the Authorization header (Bearer token), which is automatically injected from the auth_metadata.\",\n input: PaypalGetUserinfoInput,\n output: PaypalGetUserinfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,eAAeA,IAAAA,EAAE,KAAK,CAAC,yBAAyB,QAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EAC/I,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,0BAAwCA,IAAA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,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-userinfo.d.ts
4
+ declare const PaypalGetUserinfoInput: z.ZodTypeAny;
5
+ declare const PaypalGetUserinfoOutput: z.ZodTypeAny;
6
+ declare const paypalGetUserinfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalGetUserinfo };
9
+ //# sourceMappingURL=get-userinfo.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-userinfo.d.cts","names":[],"sources":["../../src/actions/get-userinfo.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE2C;AAAA,cAYrE,uBAAA,EAAyB,CAAA,CAAE,UA4BkC;AAAA,cAE7D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-userinfo.d.ts
4
+ declare const PaypalGetUserinfoInput: z.ZodTypeAny;
5
+ declare const PaypalGetUserinfoOutput: z.ZodTypeAny;
6
+ declare const paypalGetUserinfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalGetUserinfo };
9
+ //# sourceMappingURL=get-userinfo.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-userinfo.d.mts","names":[],"sources":["../../src/actions/get-userinfo.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE2C;AAAA,cAYrE,uBAAA,EAAyB,CAAA,CAAE,UA4BkC;AAAA,cAE7D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,54 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-userinfo.ts
4
+ const PaypalGetUserinfoInput = z.object({ claims_schema: z.enum(["paypalv1.userinfo-1.0", "openid"]).default("openid").describe("The schema that defines the claims format.").optional() }).describe("Request model for retrieving PayPal user claims via OpenID Connect.");
5
+ const PaypalGetUserinfo_AddressClaimSchema = z.object({
6
+ region: z.string().describe("The region (state/province).").nullable().optional(),
7
+ country: z.string().describe("The country code (ISO 3166-1 alpha-2).").nullable().optional(),
8
+ locality: z.string().describe("The locality (city).").nullable().optional(),
9
+ postal_code: z.string().describe("The postal code (zip code).").nullable().optional(),
10
+ street_address: z.string().describe("The street address.").nullable().optional()
11
+ }).describe("The user's address claim.");
12
+ const PaypalGetUserinfo_AuthClaimEntrySchema = z.object({
13
+ name: z.string().describe("The name of the authentication claim.").nullable().optional(),
14
+ value: z.string().describe("The value of the authentication claim.").nullable().optional()
15
+ }).describe("An individual authentication claim entry.");
16
+ const paypalGetUserinfo = action("PAYPAL_GET_USERINFO", {
17
+ slug: "paypal-get-userinfo",
18
+ name: "Get PayPal User Info",
19
+ description: "Retrieves user claims from PayPal using OpenID Connect. Use when you need to obtain authenticated user's profile information such as email, name, and address based on an access token. This endpoint returns user identity information associated with the OAuth access token provided in the Authorization header. The access token must have been obtained via OpenID Connect authentication flow. This action requires an access token with the 'openid' scope. The token is passed via the Authorization header (Bearer token), which is automatically injected from the auth_metadata.",
20
+ input: PaypalGetUserinfoInput,
21
+ output: z.object({
22
+ sub: z.string().describe("The subject (same as user_id, OIDC standard format).").nullable().optional(),
23
+ name: z.string().describe("The user's full name.").nullable().optional(),
24
+ email: z.string().describe("The user's email address.").nullable().optional(),
25
+ gender: z.string().describe("The user's gender (male, female, or other).").nullable().optional(),
26
+ locale: z.string().describe("The user's locale (language and country code).").nullable().optional(),
27
+ address: PaypalGetUserinfo_AddressClaimSchema.nullable().optional(),
28
+ context: z.string().describe("The user context identifier.").nullable().optional(),
29
+ user_id: z.string().describe("The subject identifier (unique user ID in format 'https://paypal.com/PayPalID').").nullable().optional(),
30
+ payer_id: z.string().describe("The PayPal payer ID.").nullable().optional(),
31
+ zoneinfo: z.string().describe("The user's timezone zoneinfo string.").nullable().optional(),
32
+ age_range: z.string().describe("The user's age range if available.").nullable().optional(),
33
+ birthdate: z.string().describe("The user's birthdate in YYYY-MM-DD format.").nullable().optional(),
34
+ birth_year: z.string().describe("The user's birth year.").nullable().optional(),
35
+ given_name: z.string().describe("The user's first/given name.").nullable().optional(),
36
+ login_hint: z.string().describe("Login hint used for authentication.").nullable().optional(),
37
+ auth_claims: z.array(PaypalGetUserinfo_AuthClaimEntrySchema).describe("Additional authentication claims.").nullable().optional(),
38
+ birth_month: z.string().describe("The user's birth month.").nullable().optional(),
39
+ family_name: z.string().describe("The user's last/family name.").nullable().optional(),
40
+ middle_name: z.string().describe("The user's middle name if available.").nullable().optional(),
41
+ account_type: z.string().describe("The PayPal account type ('PERSONAL' or 'BUSINESS').").nullable().optional(),
42
+ phone_number: z.string().describe("The user's phone number.").nullable().optional(),
43
+ email_verified: z.string().describe("Indicates whether the email has been verified ('true' or 'false').").nullable().optional(),
44
+ claims_supported: z.array(z.string()).describe("List of supported claims by the server.").nullable().optional(),
45
+ verified_account: z.string().describe("Indicates whether the account is verified ('true' or 'false').").nullable().optional(),
46
+ preferred_username: z.string().describe("The user's preferred PayPal username.").nullable().optional(),
47
+ phone_number_verified: z.string().describe("Indicates whether the phone number has been verified ('true' or 'false').").nullable().optional(),
48
+ verified_account_type: z.string().describe("The type of verified account ('PERSONAL' or 'BUSINESS').").nullable().optional()
49
+ }).describe("Response model for PayPal OpenID Connect userinfo endpoint.")
50
+ });
51
+ //#endregion
52
+ export { paypalGetUserinfo };
53
+
54
+ //# sourceMappingURL=get-userinfo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-userinfo.mjs","names":[],"sources":["../../src/actions/get-userinfo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetUserinfoInput: z.ZodTypeAny = z.object({\n claims_schema: z.enum([\"paypalv1.userinfo-1.0\", \"openid\"]).default(\"openid\").describe(\"The schema that defines the claims format.\").optional(),\n}).describe(\"Request model for retrieving PayPal user claims via OpenID Connect.\");\nconst PaypalGetUserinfo_AddressClaimSchema: z.ZodTypeAny = z.object({\n region: z.string().describe(\"The region (state/province).\").nullable().optional(),\n country: z.string().describe(\"The country code (ISO 3166-1 alpha-2).\").nullable().optional(),\n locality: z.string().describe(\"The locality (city).\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code (zip code).\").nullable().optional(),\n street_address: z.string().describe(\"The street address.\").nullable().optional(),\n}).describe(\"The user's address claim.\");\nconst PaypalGetUserinfo_AuthClaimEntrySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the authentication claim.\").nullable().optional(),\n value: z.string().describe(\"The value of the authentication claim.\").nullable().optional(),\n}).describe(\"An individual authentication claim entry.\");\nexport const PaypalGetUserinfoOutput: z.ZodTypeAny = z.object({\n sub: z.string().describe(\"The subject (same as user_id, OIDC standard format).\").nullable().optional(),\n name: z.string().describe(\"The user's full name.\").nullable().optional(),\n email: z.string().describe(\"The user's email address.\").nullable().optional(),\n gender: z.string().describe(\"The user's gender (male, female, or other).\").nullable().optional(),\n locale: z.string().describe(\"The user's locale (language and country code).\").nullable().optional(),\n address: PaypalGetUserinfo_AddressClaimSchema.nullable().optional(),\n context: z.string().describe(\"The user context identifier.\").nullable().optional(),\n user_id: z.string().describe(\"The subject identifier (unique user ID in format 'https://paypal.com/PayPalID').\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal payer ID.\").nullable().optional(),\n zoneinfo: z.string().describe(\"The user's timezone zoneinfo string.\").nullable().optional(),\n age_range: z.string().describe(\"The user's age range if available.\").nullable().optional(),\n birthdate: z.string().describe(\"The user's birthdate in YYYY-MM-DD format.\").nullable().optional(),\n birth_year: z.string().describe(\"The user's birth year.\").nullable().optional(),\n given_name: z.string().describe(\"The user's first/given name.\").nullable().optional(),\n login_hint: z.string().describe(\"Login hint used for authentication.\").nullable().optional(),\n auth_claims: z.array(PaypalGetUserinfo_AuthClaimEntrySchema).describe(\"Additional authentication claims.\").nullable().optional(),\n birth_month: z.string().describe(\"The user's birth month.\").nullable().optional(),\n family_name: z.string().describe(\"The user's last/family name.\").nullable().optional(),\n middle_name: z.string().describe(\"The user's middle name if available.\").nullable().optional(),\n account_type: z.string().describe(\"The PayPal account type ('PERSONAL' or 'BUSINESS').\").nullable().optional(),\n phone_number: z.string().describe(\"The user's phone number.\").nullable().optional(),\n email_verified: z.string().describe(\"Indicates whether the email has been verified ('true' or 'false').\").nullable().optional(),\n claims_supported: z.array(z.string()).describe(\"List of supported claims by the server.\").nullable().optional(),\n verified_account: z.string().describe(\"Indicates whether the account is verified ('true' or 'false').\").nullable().optional(),\n preferred_username: z.string().describe(\"The user's preferred PayPal username.\").nullable().optional(),\n phone_number_verified: z.string().describe(\"Indicates whether the phone number has been verified ('true' or 'false').\").nullable().optional(),\n verified_account_type: z.string().describe(\"The type of verified account ('PERSONAL' or 'BUSINESS').\").nullable().optional(),\n}).describe(\"Response model for PayPal OpenID Connect userinfo endpoint.\");\n\nexport const paypalGetUserinfo = action(\"PAYPAL_GET_USERINFO\", {\n slug: \"paypal-get-userinfo\",\n name: \"Get PayPal User Info\",\n description: \"Retrieves user claims from PayPal using OpenID Connect. Use when you need to obtain authenticated user's profile information such as email, name, and address based on an access token. This endpoint returns user identity information associated with the OAuth access token provided in the Authorization header. The access token must have been obtained via OpenID Connect authentication flow. This action requires an access token with the 'openid' scope. The token is passed via the Authorization header (Bearer token), which is automatically injected from the auth_metadata.\",\n input: PaypalGetUserinfoInput,\n output: PaypalGetUserinfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,eAAe,EAAE,KAAK,CAAC,yBAAyB,QAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EAC/I,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,uCAAqD,EAAE,OAAO;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,yCAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AA+BvD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,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.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-web-profile.ts
4
+ const PaypalGetWebProfileInput = zod.z.object({ id: zod.z.string().describe("The ID of the web experience profile to retrieve.") }).describe("Request model for getting a PayPal web experience profile by ID.");
5
+ const PaypalGetWebProfile_FlowConfigSchema = zod.z.object({
6
+ user_action: zod.z.string().describe("Presents either the **Continue** or **Pay Now** checkout flow to the customer. Default is **Continue**, or `user_action=continue`. When you do not know the final payment amount, accept this default flow. When you know the final payment amount, set `user_action=commit` to choose the **Pay Now** flow.").nullable().optional(),
7
+ landing_page_type: zod.z.string().describe("The type of landing page to display on the PayPal site for user checkout. To use the non-PayPal account landing page, set to `Billing`. To use the PayPal account login landing page, set to `Login`.").nullable().optional(),
8
+ bank_txn_pending_url: zod.z.string().describe("The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.").nullable().optional(),
9
+ return_uri_http_method: zod.z.string().describe("The HTTP method to use to redirect the customer to a return URL. Value is `GET` or `POST`.").nullable().optional()
10
+ }).describe("Model for flow configuration parameters.");
11
+ const PaypalGetWebProfile_InputFieldsSchema = zod.z.object({
12
+ no_shipping: zod.z.number().int().describe("Indicates whether PayPal displays shipping address fields on the experience pages. Value is 0 (display), 1 (redact), or 2 (from account profile).").nullable().optional(),
13
+ address_override: zod.z.number().int().describe("Indicates whether to display the shipping address that is passed to this call rather than the one on file. Value is 0 (display on file) or 1 (display passed address).").nullable().optional()
14
+ }).describe("Model for input field customization parameters.");
15
+ const PaypalGetWebProfile_PresentationSchema = zod.z.object({
16
+ brand_name: zod.z.string().describe("A label that overrides the business name in the PayPal account on the PayPal pages. Character length: 127 single-byte alphanumeric characters.").nullable().optional(),
17
+ logo_image: zod.z.string().describe("A URL to the logo image. Valid media types: .gif, .jpg, .png. Maximum width: 190 pixels, maximum height: 60 pixels. Character length: 127 single-byte alphanumeric characters.").nullable().optional(),
18
+ locale_code: zod.z.string().describe("The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US. Also valid 5-character codes: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, zh_TW.").nullable().optional()
19
+ }).describe("Model for style and presentation parameters.");
20
+ const PaypalGetWebProfileOutput = zod.z.object({
21
+ id: zod.z.string().describe("The ID of the web experience profile.").nullable().optional(),
22
+ name: zod.z.string().describe("The web experience profile name. Must be unique for a set of profiles for a merchant."),
23
+ temporary: zod.z.boolean().describe("Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`.").nullable().optional(),
24
+ flow_config: PaypalGetWebProfile_FlowConfigSchema.nullable().optional(),
25
+ input_fields: PaypalGetWebProfile_InputFieldsSchema.nullable().optional(),
26
+ presentation: PaypalGetWebProfile_PresentationSchema.nullable().optional()
27
+ }).describe("Response model containing web experience profile details from PayPal API.");
28
+ const paypalGetWebProfile = require_action.action("PAYPAL_GET_WEB_PROFILE", {
29
+ slug: "paypal-get-web-profile",
30
+ name: "Get Web Profile",
31
+ description: "Retrieves detailed information about a PayPal web experience profile by its ID. Use when you need to get details about an existing web experience profile, such as its name, flow configuration, input field settings, or presentation style. This is useful for auditing profile settings, verifying configurations, or retrieving profile information before updating. This is a read-only operation that returns the web profile details including its ID, name, flow config, input fields, presentation settings, and temporary status.",
32
+ input: PaypalGetWebProfileInput,
33
+ output: PaypalGetWebProfileOutput
34
+ });
35
+ //#endregion
36
+ exports.paypalGetWebProfile = paypalGetWebProfile;
37
+
38
+ //# sourceMappingURL=get-web-profile.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-profile.cjs","names":["z","action"],"sources":["../../src/actions/get-web-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetWebProfileInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the web experience profile to retrieve.\"),\n}).describe(\"Request model for getting a PayPal web experience profile by ID.\");\nconst PaypalGetWebProfile_FlowConfigSchema: z.ZodTypeAny = z.object({\n user_action: z.string().describe(\"Presents either the **Continue** or **Pay Now** checkout flow to the customer. Default is **Continue**, or `user_action=continue`. When you do not know the final payment amount, accept this default flow. When you know the final payment amount, set `user_action=commit` to choose the **Pay Now** flow.\").nullable().optional(),\n landing_page_type: z.string().describe(\"The type of landing page to display on the PayPal site for user checkout. To use the non-PayPal account landing page, set to `Billing`. To use the PayPal account login landing page, set to `Login`.\").nullable().optional(),\n bank_txn_pending_url: z.string().describe(\"The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.\").nullable().optional(),\n return_uri_http_method: z.string().describe(\"The HTTP method to use to redirect the customer to a return URL. Value is `GET` or `POST`.\").nullable().optional(),\n}).describe(\"Model for flow configuration parameters.\");\nconst PaypalGetWebProfile_InputFieldsSchema: z.ZodTypeAny = z.object({\n no_shipping: z.number().int().describe(\"Indicates whether PayPal displays shipping address fields on the experience pages. Value is 0 (display), 1 (redact), or 2 (from account profile).\").nullable().optional(),\n address_override: z.number().int().describe(\"Indicates whether to display the shipping address that is passed to this call rather than the one on file. Value is 0 (display on file) or 1 (display passed address).\").nullable().optional(),\n}).describe(\"Model for input field customization parameters.\");\nconst PaypalGetWebProfile_PresentationSchema: z.ZodTypeAny = z.object({\n brand_name: z.string().describe(\"A label that overrides the business name in the PayPal account on the PayPal pages. Character length: 127 single-byte alphanumeric characters.\").nullable().optional(),\n logo_image: z.string().describe(\"A URL to the logo image. Valid media types: .gif, .jpg, .png. Maximum width: 190 pixels, maximum height: 60 pixels. Character length: 127 single-byte alphanumeric characters.\").nullable().optional(),\n locale_code: z.string().describe(\"The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US. Also valid 5-character codes: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, zh_TW.\").nullable().optional(),\n}).describe(\"Model for style and presentation parameters.\");\nexport const PaypalGetWebProfileOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the web experience profile.\").nullable().optional(),\n name: z.string().describe(\"The web experience profile name. Must be unique for a set of profiles for a merchant.\"),\n temporary: z.boolean().describe(\"Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`.\").nullable().optional(),\n flow_config: PaypalGetWebProfile_FlowConfigSchema.nullable().optional(),\n input_fields: PaypalGetWebProfile_InputFieldsSchema.nullable().optional(),\n presentation: PaypalGetWebProfile_PresentationSchema.nullable().optional(),\n}).describe(\"Response model containing web experience profile details from PayPal API.\");\n\nexport const paypalGetWebProfile = action(\"PAYPAL_GET_WEB_PROFILE\", {\n slug: \"paypal-get-web-profile\",\n name: \"Get Web Profile\",\n description: \"Retrieves detailed information about a PayPal web experience profile by its ID. Use when you need to get details about an existing web experience profile, such as its name, flow configuration, input field settings, or presentation style. This is useful for auditing profile settings, verifying configurations, or retrieving profile information before updating. This is a read-only operation that returns the web profile details including its ID, name, flow config, input fields, presentation settings, and temporary status.\",\n input: PaypalGetWebProfileInput,\n output: PaypalGetWebProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EAC7E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8SAA8S,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrW,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpQ,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,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E,cAAc,uCAAuC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAEvF,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-web-profile.d.ts
4
+ declare const PaypalGetWebProfileInput: z.ZodTypeAny;
5
+ declare const PaypalGetWebProfileOutput: z.ZodTypeAny;
6
+ declare const paypalGetWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalGetWebProfile };
9
+ //# sourceMappingURL=get-web-profile.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-profile.d.cts","names":[],"sources":["../../src/actions/get-web-profile.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEsC;AAAA,cAgBlE,yBAAA,EAA2B,CAAA,CAAE,UAO8C;AAAA,cAE3E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-web-profile.d.ts
4
+ declare const PaypalGetWebProfileInput: z.ZodTypeAny;
5
+ declare const PaypalGetWebProfileOutput: z.ZodTypeAny;
6
+ declare const paypalGetWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalGetWebProfile };
9
+ //# sourceMappingURL=get-web-profile.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-profile.d.mts","names":[],"sources":["../../src/actions/get-web-profile.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEsC;AAAA,cAgBlE,yBAAA,EAA2B,CAAA,CAAE,UAO8C;AAAA,cAE3E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-web-profile.ts
4
+ const PaypalGetWebProfileInput = z.object({ id: z.string().describe("The ID of the web experience profile to retrieve.") }).describe("Request model for getting a PayPal web experience profile by ID.");
5
+ const PaypalGetWebProfile_FlowConfigSchema = z.object({
6
+ user_action: z.string().describe("Presents either the **Continue** or **Pay Now** checkout flow to the customer. Default is **Continue**, or `user_action=continue`. When you do not know the final payment amount, accept this default flow. When you know the final payment amount, set `user_action=commit` to choose the **Pay Now** flow.").nullable().optional(),
7
+ landing_page_type: z.string().describe("The type of landing page to display on the PayPal site for user checkout. To use the non-PayPal account landing page, set to `Billing`. To use the PayPal account login landing page, set to `Login`.").nullable().optional(),
8
+ bank_txn_pending_url: z.string().describe("The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.").nullable().optional(),
9
+ return_uri_http_method: z.string().describe("The HTTP method to use to redirect the customer to a return URL. Value is `GET` or `POST`.").nullable().optional()
10
+ }).describe("Model for flow configuration parameters.");
11
+ const PaypalGetWebProfile_InputFieldsSchema = z.object({
12
+ no_shipping: z.number().int().describe("Indicates whether PayPal displays shipping address fields on the experience pages. Value is 0 (display), 1 (redact), or 2 (from account profile).").nullable().optional(),
13
+ address_override: z.number().int().describe("Indicates whether to display the shipping address that is passed to this call rather than the one on file. Value is 0 (display on file) or 1 (display passed address).").nullable().optional()
14
+ }).describe("Model for input field customization parameters.");
15
+ const PaypalGetWebProfile_PresentationSchema = z.object({
16
+ brand_name: z.string().describe("A label that overrides the business name in the PayPal account on the PayPal pages. Character length: 127 single-byte alphanumeric characters.").nullable().optional(),
17
+ logo_image: z.string().describe("A URL to the logo image. Valid media types: .gif, .jpg, .png. Maximum width: 190 pixels, maximum height: 60 pixels. Character length: 127 single-byte alphanumeric characters.").nullable().optional(),
18
+ locale_code: z.string().describe("The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US. Also valid 5-character codes: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, zh_TW.").nullable().optional()
19
+ }).describe("Model for style and presentation parameters.");
20
+ const paypalGetWebProfile = action("PAYPAL_GET_WEB_PROFILE", {
21
+ slug: "paypal-get-web-profile",
22
+ name: "Get Web Profile",
23
+ description: "Retrieves detailed information about a PayPal web experience profile by its ID. Use when you need to get details about an existing web experience profile, such as its name, flow configuration, input field settings, or presentation style. This is useful for auditing profile settings, verifying configurations, or retrieving profile information before updating. This is a read-only operation that returns the web profile details including its ID, name, flow config, input fields, presentation settings, and temporary status.",
24
+ input: PaypalGetWebProfileInput,
25
+ output: z.object({
26
+ id: z.string().describe("The ID of the web experience profile.").nullable().optional(),
27
+ name: z.string().describe("The web experience profile name. Must be unique for a set of profiles for a merchant."),
28
+ temporary: z.boolean().describe("Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`.").nullable().optional(),
29
+ flow_config: PaypalGetWebProfile_FlowConfigSchema.nullable().optional(),
30
+ input_fields: PaypalGetWebProfile_InputFieldsSchema.nullable().optional(),
31
+ presentation: PaypalGetWebProfile_PresentationSchema.nullable().optional()
32
+ }).describe("Response model containing web experience profile details from PayPal API.")
33
+ });
34
+ //#endregion
35
+ export { paypalGetWebProfile };
36
+
37
+ //# sourceMappingURL=get-web-profile.mjs.map