@keystrokehq/paypal 0.1.0 → 0.1.2

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 (571) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs.map +1 -1
  4. package/dist/actions/activate-plan.d.cts +10 -3
  5. package/dist/actions/activate-plan.d.cts.map +1 -1
  6. package/dist/actions/activate-plan.d.mts +10 -3
  7. package/dist/actions/activate-plan.d.mts.map +1 -1
  8. package/dist/actions/activate-plan.mjs.map +1 -1
  9. package/dist/actions/add-batch-trackers.cjs +5 -5
  10. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.d.cts +78 -3
  12. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.mts +78 -3
  14. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  15. package/dist/actions/add-batch-trackers.mjs +5 -5
  16. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  17. package/dist/actions/authorize-order.cjs +6 -6
  18. package/dist/actions/authorize-order.cjs.map +1 -1
  19. package/dist/actions/authorize-order.d.cts +94 -3
  20. package/dist/actions/authorize-order.d.cts.map +1 -1
  21. package/dist/actions/authorize-order.d.mts +94 -3
  22. package/dist/actions/authorize-order.d.mts.map +1 -1
  23. package/dist/actions/authorize-order.mjs +6 -6
  24. package/dist/actions/authorize-order.mjs.map +1 -1
  25. package/dist/actions/cancel-invoice.cjs +1 -1
  26. package/dist/actions/cancel-invoice.cjs.map +1 -1
  27. package/dist/actions/cancel-invoice.d.cts +36 -3
  28. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  29. package/dist/actions/cancel-invoice.d.mts +36 -3
  30. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  31. package/dist/actions/cancel-invoice.mjs +1 -1
  32. package/dist/actions/cancel-invoice.mjs.map +1 -1
  33. package/dist/actions/cancel-reminders.cjs +1 -1
  34. package/dist/actions/cancel-reminders.cjs.map +1 -1
  35. package/dist/actions/cancel-reminders.d.cts +25 -3
  36. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  37. package/dist/actions/cancel-reminders.d.mts +25 -3
  38. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  39. package/dist/actions/cancel-reminders.mjs +1 -1
  40. package/dist/actions/cancel-reminders.mjs.map +1 -1
  41. package/dist/actions/capture-subscription-payment.cjs +14 -14
  42. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.d.cts +67 -3
  44. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.mts +67 -3
  46. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.mjs +14 -14
  48. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  49. package/dist/actions/charge-payment-method.cjs.map +1 -1
  50. package/dist/actions/charge-payment-method.d.cts +89 -3
  51. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  52. package/dist/actions/charge-payment-method.d.mts +89 -3
  53. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  54. package/dist/actions/charge-payment-method.mjs.map +1 -1
  55. package/dist/actions/create-invoice.cjs +7 -7
  56. package/dist/actions/create-invoice.cjs.map +1 -1
  57. package/dist/actions/create-invoice.d.cts +428 -3
  58. package/dist/actions/create-invoice.d.cts.map +1 -1
  59. package/dist/actions/create-invoice.d.mts +428 -3
  60. package/dist/actions/create-invoice.d.mts.map +1 -1
  61. package/dist/actions/create-invoice.mjs +7 -7
  62. package/dist/actions/create-invoice.mjs.map +1 -1
  63. package/dist/actions/create-payment.cjs +11 -11
  64. package/dist/actions/create-payment.cjs.map +1 -1
  65. package/dist/actions/create-payment.d.cts +211 -3
  66. package/dist/actions/create-payment.d.cts.map +1 -1
  67. package/dist/actions/create-payment.d.mts +211 -3
  68. package/dist/actions/create-payment.d.mts.map +1 -1
  69. package/dist/actions/create-payment.mjs +11 -11
  70. package/dist/actions/create-payment.mjs.map +1 -1
  71. package/dist/actions/create-payments-billing-plans.cjs +8 -8
  72. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  73. package/dist/actions/create-payments-billing-plans.d.cts +152 -3
  74. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.d.mts +152 -3
  76. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.mjs +8 -8
  78. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  79. package/dist/actions/create-plan.cjs +8 -8
  80. package/dist/actions/create-plan.cjs.map +1 -1
  81. package/dist/actions/create-plan.d.cts +142 -3
  82. package/dist/actions/create-plan.d.cts.map +1 -1
  83. package/dist/actions/create-plan.d.mts +142 -3
  84. package/dist/actions/create-plan.d.mts.map +1 -1
  85. package/dist/actions/create-plan.mjs +8 -8
  86. package/dist/actions/create-plan.mjs.map +1 -1
  87. package/dist/actions/create-product.cjs.map +1 -1
  88. package/dist/actions/create-product.d.cts +184 -3
  89. package/dist/actions/create-product.d.cts.map +1 -1
  90. package/dist/actions/create-product.d.mts +184 -3
  91. package/dist/actions/create-product.d.mts.map +1 -1
  92. package/dist/actions/create-product.mjs.map +1 -1
  93. package/dist/actions/create-subscription.cjs +2 -2
  94. package/dist/actions/create-subscription.cjs.map +1 -1
  95. package/dist/actions/create-subscription.d.cts +254 -3
  96. package/dist/actions/create-subscription.d.cts.map +1 -1
  97. package/dist/actions/create-subscription.d.mts +254 -3
  98. package/dist/actions/create-subscription.d.mts.map +1 -1
  99. package/dist/actions/create-subscription.mjs +2 -2
  100. package/dist/actions/create-subscription.mjs.map +1 -1
  101. package/dist/actions/create-template.cjs +5 -5
  102. package/dist/actions/create-template.cjs.map +1 -1
  103. package/dist/actions/create-template.d.cts +317 -3
  104. package/dist/actions/create-template.d.cts.map +1 -1
  105. package/dist/actions/create-template.d.mts +317 -3
  106. package/dist/actions/create-template.d.mts.map +1 -1
  107. package/dist/actions/create-template.mjs +5 -5
  108. package/dist/actions/create-template.mjs.map +1 -1
  109. package/dist/actions/create-web-profile.cjs +2 -2
  110. package/dist/actions/create-web-profile.cjs.map +1 -1
  111. package/dist/actions/create-web-profile.d.cts +81 -3
  112. package/dist/actions/create-web-profile.d.cts.map +1 -1
  113. package/dist/actions/create-web-profile.d.mts +81 -3
  114. package/dist/actions/create-web-profile.d.mts.map +1 -1
  115. package/dist/actions/create-web-profile.mjs +2 -2
  116. package/dist/actions/create-web-profile.mjs.map +1 -1
  117. package/dist/actions/create-webhook-lookup.cjs +3 -3
  118. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  119. package/dist/actions/create-webhook-lookup.d.cts +11 -3
  120. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  121. package/dist/actions/create-webhook-lookup.d.mts +11 -3
  122. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  123. package/dist/actions/create-webhook-lookup.mjs +3 -3
  124. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  125. package/dist/actions/create-webhook.cjs +3 -3
  126. package/dist/actions/create-webhook.cjs.map +1 -1
  127. package/dist/actions/create-webhook.d.cts +36 -3
  128. package/dist/actions/create-webhook.d.cts.map +1 -1
  129. package/dist/actions/create-webhook.d.mts +36 -3
  130. package/dist/actions/create-webhook.d.mts.map +1 -1
  131. package/dist/actions/create-webhook.mjs +3 -3
  132. package/dist/actions/create-webhook.mjs.map +1 -1
  133. package/dist/actions/deactivate-plan.cjs +2 -2
  134. package/dist/actions/deactivate-plan.cjs.map +1 -1
  135. package/dist/actions/deactivate-plan.d.cts +10 -3
  136. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  137. package/dist/actions/deactivate-plan.d.mts +10 -3
  138. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  139. package/dist/actions/deactivate-plan.mjs +2 -2
  140. package/dist/actions/deactivate-plan.mjs.map +1 -1
  141. package/dist/actions/delete-external-payment.cjs.map +1 -1
  142. package/dist/actions/delete-external-payment.d.cts +13 -3
  143. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  144. package/dist/actions/delete-external-payment.d.mts +13 -3
  145. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  146. package/dist/actions/delete-external-payment.mjs.map +1 -1
  147. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  148. package/dist/actions/delete-invoice-payment-record.d.cts +13 -3
  149. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  150. package/dist/actions/delete-invoice-payment-record.d.mts +13 -3
  151. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  152. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  153. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  154. package/dist/actions/delete-invoice-refund-record.d.cts +12 -3
  155. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  156. package/dist/actions/delete-invoice-refund-record.d.mts +12 -3
  157. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  158. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  159. package/dist/actions/delete-invoice.cjs +3 -3
  160. package/dist/actions/delete-invoice.cjs.map +1 -1
  161. package/dist/actions/delete-invoice.d.cts +25 -3
  162. package/dist/actions/delete-invoice.d.cts.map +1 -1
  163. package/dist/actions/delete-invoice.d.mts +25 -3
  164. package/dist/actions/delete-invoice.d.mts.map +1 -1
  165. package/dist/actions/delete-invoice.mjs +3 -3
  166. package/dist/actions/delete-invoice.mjs.map +1 -1
  167. package/dist/actions/delete-payment-resource.cjs +2 -2
  168. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  169. package/dist/actions/delete-payment-resource.d.cts +10 -3
  170. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  171. package/dist/actions/delete-payment-resource.d.mts +10 -3
  172. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  173. package/dist/actions/delete-payment-resource.mjs +2 -2
  174. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  175. package/dist/actions/delete-template.cjs +3 -3
  176. package/dist/actions/delete-template.cjs.map +1 -1
  177. package/dist/actions/delete-template.d.cts +25 -3
  178. package/dist/actions/delete-template.d.cts.map +1 -1
  179. package/dist/actions/delete-template.d.mts +25 -3
  180. package/dist/actions/delete-template.d.mts.map +1 -1
  181. package/dist/actions/delete-template.mjs +3 -3
  182. package/dist/actions/delete-template.mjs.map +1 -1
  183. package/dist/actions/delete-web-profile.cjs +2 -2
  184. package/dist/actions/delete-web-profile.cjs.map +1 -1
  185. package/dist/actions/delete-web-profile.d.cts +10 -3
  186. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  187. package/dist/actions/delete-web-profile.d.mts +10 -3
  188. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  189. package/dist/actions/delete-web-profile.mjs +2 -2
  190. package/dist/actions/delete-web-profile.mjs.map +1 -1
  191. package/dist/actions/delete-webhook.cjs +3 -3
  192. package/dist/actions/delete-webhook.cjs.map +1 -1
  193. package/dist/actions/delete-webhook.d.cts +24 -3
  194. package/dist/actions/delete-webhook.d.cts.map +1 -1
  195. package/dist/actions/delete-webhook.d.mts +24 -3
  196. package/dist/actions/delete-webhook.d.mts.map +1 -1
  197. package/dist/actions/delete-webhook.mjs +3 -3
  198. package/dist/actions/delete-webhook.mjs.map +1 -1
  199. package/dist/actions/fetch-node.cjs +1 -1
  200. package/dist/actions/fetch-node.cjs.map +1 -1
  201. package/dist/actions/fetch-node.d.cts +21 -3
  202. package/dist/actions/fetch-node.d.cts.map +1 -1
  203. package/dist/actions/fetch-node.d.mts +21 -3
  204. package/dist/actions/fetch-node.d.mts.map +1 -1
  205. package/dist/actions/fetch-node.mjs +1 -1
  206. package/dist/actions/fetch-node.mjs.map +1 -1
  207. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  208. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +14 -3
  209. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  210. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +14 -3
  211. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  212. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  213. package/dist/actions/find-eligible-methods.cjs +1 -1
  214. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  215. package/dist/actions/find-eligible-methods.d.cts +119 -3
  216. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  217. package/dist/actions/find-eligible-methods.d.mts +119 -3
  218. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  219. package/dist/actions/find-eligible-methods.mjs +1 -1
  220. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  221. package/dist/actions/generate-client-token.cjs +1 -1
  222. package/dist/actions/generate-client-token.cjs.map +1 -1
  223. package/dist/actions/generate-client-token.d.cts +7 -3
  224. package/dist/actions/generate-client-token.d.cts.map +1 -1
  225. package/dist/actions/generate-client-token.d.mts +7 -3
  226. package/dist/actions/generate-client-token.d.mts.map +1 -1
  227. package/dist/actions/generate-client-token.mjs +1 -1
  228. package/dist/actions/generate-client-token.mjs.map +1 -1
  229. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  230. package/dist/actions/generate-next-invoice-number-v2.d.cts +10 -3
  231. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  232. package/dist/actions/generate-next-invoice-number-v2.d.mts +10 -3
  233. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  234. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  235. package/dist/actions/generate-next-invoice-number.cjs +1 -1
  236. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  237. package/dist/actions/generate-next-invoice-number.d.cts +5 -3
  238. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  239. package/dist/actions/generate-next-invoice-number.d.mts +5 -3
  240. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  241. package/dist/actions/generate-next-invoice-number.mjs +1 -1
  242. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  243. package/dist/actions/generate-qr-code.cjs +3 -3
  244. package/dist/actions/generate-qr-code.cjs.map +1 -1
  245. package/dist/actions/generate-qr-code.d.cts +38 -3
  246. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  247. package/dist/actions/generate-qr-code.d.mts +38 -3
  248. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  249. package/dist/actions/generate-qr-code.mjs +3 -3
  250. package/dist/actions/generate-qr-code.mjs.map +1 -1
  251. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  252. package/dist/actions/get-billing-subscriptions.d.cts +86 -3
  253. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  254. package/dist/actions/get-billing-subscriptions.d.mts +86 -3
  255. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  256. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  257. package/dist/actions/get-invoice.cjs +9 -9
  258. package/dist/actions/get-invoice.cjs.map +1 -1
  259. package/dist/actions/get-invoice.d.cts +151 -3
  260. package/dist/actions/get-invoice.d.cts.map +1 -1
  261. package/dist/actions/get-invoice.d.mts +151 -3
  262. package/dist/actions/get-invoice.d.mts.map +1 -1
  263. package/dist/actions/get-invoice.mjs +9 -9
  264. package/dist/actions/get-invoice.mjs.map +1 -1
  265. package/dist/actions/get-invoicing-invoices-qr-code.cjs +3 -3
  266. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  267. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +20 -3
  268. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  269. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +20 -3
  270. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  271. package/dist/actions/get-invoicing-invoices-qr-code.mjs +3 -3
  272. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  273. package/dist/actions/get-invoicing-template.cjs +2 -2
  274. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  275. package/dist/actions/get-invoicing-template.d.cts +134 -3
  276. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  277. package/dist/actions/get-invoicing-template.d.mts +134 -3
  278. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  279. package/dist/actions/get-invoicing-template.mjs +2 -2
  280. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  281. package/dist/actions/get-order.cjs.map +1 -1
  282. package/dist/actions/get-order.d.cts +114 -3
  283. package/dist/actions/get-order.d.cts.map +1 -1
  284. package/dist/actions/get-order.d.mts +114 -3
  285. package/dist/actions/get-order.d.mts.map +1 -1
  286. package/dist/actions/get-order.mjs.map +1 -1
  287. package/dist/actions/get-payment.cjs.map +1 -1
  288. package/dist/actions/get-payment.d.cts +93 -3
  289. package/dist/actions/get-payment.d.cts.map +1 -1
  290. package/dist/actions/get-payment.d.mts +93 -3
  291. package/dist/actions/get-payment.d.mts.map +1 -1
  292. package/dist/actions/get-payment.mjs.map +1 -1
  293. package/dist/actions/get-payments-refund.cjs.map +1 -1
  294. package/dist/actions/get-payments-refund.d.cts +26 -3
  295. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  296. package/dist/actions/get-payments-refund.d.mts +26 -3
  297. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  298. package/dist/actions/get-payments-refund.mjs.map +1 -1
  299. package/dist/actions/get-plan.cjs.map +1 -1
  300. package/dist/actions/get-plan.d.cts +52 -3
  301. package/dist/actions/get-plan.d.cts.map +1 -1
  302. package/dist/actions/get-plan.d.mts +52 -3
  303. package/dist/actions/get-plan.d.mts.map +1 -1
  304. package/dist/actions/get-plan.mjs.map +1 -1
  305. package/dist/actions/get-product.cjs +3 -3
  306. package/dist/actions/get-product.cjs.map +1 -1
  307. package/dist/actions/get-product.d.cts +22 -3
  308. package/dist/actions/get-product.d.cts.map +1 -1
  309. package/dist/actions/get-product.d.mts +22 -3
  310. package/dist/actions/get-product.d.mts.map +1 -1
  311. package/dist/actions/get-product.mjs +3 -3
  312. package/dist/actions/get-product.mjs.map +1 -1
  313. package/dist/actions/get-subscription.cjs.map +1 -1
  314. package/dist/actions/get-subscription.d.cts +79 -3
  315. package/dist/actions/get-subscription.d.cts.map +1 -1
  316. package/dist/actions/get-subscription.d.mts +79 -3
  317. package/dist/actions/get-subscription.d.mts.map +1 -1
  318. package/dist/actions/get-subscription.mjs.map +1 -1
  319. package/dist/actions/get-user-info.cjs.map +1 -1
  320. package/dist/actions/get-user-info.d.cts +34 -3
  321. package/dist/actions/get-user-info.d.cts.map +1 -1
  322. package/dist/actions/get-user-info.d.mts +34 -3
  323. package/dist/actions/get-user-info.d.mts.map +1 -1
  324. package/dist/actions/get-user-info.mjs.map +1 -1
  325. package/dist/actions/get-userinfo.cjs.map +1 -1
  326. package/dist/actions/get-userinfo.d.cts +47 -3
  327. package/dist/actions/get-userinfo.d.cts.map +1 -1
  328. package/dist/actions/get-userinfo.d.mts +47 -3
  329. package/dist/actions/get-userinfo.d.mts.map +1 -1
  330. package/dist/actions/get-userinfo.mjs.map +1 -1
  331. package/dist/actions/get-web-profile.cjs +1 -1
  332. package/dist/actions/get-web-profile.cjs.map +1 -1
  333. package/dist/actions/get-web-profile.d.cts +26 -3
  334. package/dist/actions/get-web-profile.d.cts.map +1 -1
  335. package/dist/actions/get-web-profile.d.mts +26 -3
  336. package/dist/actions/get-web-profile.d.mts.map +1 -1
  337. package/dist/actions/get-web-profile.mjs +1 -1
  338. package/dist/actions/get-web-profile.mjs.map +1 -1
  339. package/dist/actions/get-webhook-lookup.cjs +1 -1
  340. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  341. package/dist/actions/get-webhook-lookup.d.cts +15 -3
  342. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  343. package/dist/actions/get-webhook-lookup.d.mts +15 -3
  344. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  345. package/dist/actions/get-webhook-lookup.mjs +1 -1
  346. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  347. package/dist/actions/get-webhook.cjs +2 -2
  348. package/dist/actions/get-webhook.cjs.map +1 -1
  349. package/dist/actions/get-webhook.d.cts +23 -3
  350. package/dist/actions/get-webhook.d.cts.map +1 -1
  351. package/dist/actions/get-webhook.d.mts +23 -3
  352. package/dist/actions/get-webhook.d.mts.map +1 -1
  353. package/dist/actions/get-webhook.mjs +2 -2
  354. package/dist/actions/get-webhook.mjs.map +1 -1
  355. package/dist/actions/list-disputes.cjs +2 -2
  356. package/dist/actions/list-disputes.cjs.map +1 -1
  357. package/dist/actions/list-disputes.d.cts +57 -3
  358. package/dist/actions/list-disputes.d.cts.map +1 -1
  359. package/dist/actions/list-disputes.d.mts +57 -3
  360. package/dist/actions/list-disputes.d.mts.map +1 -1
  361. package/dist/actions/list-disputes.mjs +2 -2
  362. package/dist/actions/list-disputes.mjs.map +1 -1
  363. package/dist/actions/list-invoices.cjs.map +1 -1
  364. package/dist/actions/list-invoices.d.cts +82 -3
  365. package/dist/actions/list-invoices.d.cts.map +1 -1
  366. package/dist/actions/list-invoices.d.mts +82 -3
  367. package/dist/actions/list-invoices.d.mts.map +1 -1
  368. package/dist/actions/list-invoices.mjs.map +1 -1
  369. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  370. package/dist/actions/list-legacy-billing-plans.d.cts +83 -3
  371. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  372. package/dist/actions/list-legacy-billing-plans.d.mts +83 -3
  373. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  374. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  375. package/dist/actions/list-payments.cjs.map +1 -1
  376. package/dist/actions/list-payments.d.cts +109 -3
  377. package/dist/actions/list-payments.d.cts.map +1 -1
  378. package/dist/actions/list-payments.d.mts +109 -3
  379. package/dist/actions/list-payments.d.mts.map +1 -1
  380. package/dist/actions/list-payments.mjs.map +1 -1
  381. package/dist/actions/list-plans.cjs +3 -3
  382. package/dist/actions/list-plans.cjs.map +1 -1
  383. package/dist/actions/list-plans.d.cts +56 -3
  384. package/dist/actions/list-plans.d.cts.map +1 -1
  385. package/dist/actions/list-plans.d.mts +56 -3
  386. package/dist/actions/list-plans.d.mts.map +1 -1
  387. package/dist/actions/list-plans.mjs +3 -3
  388. package/dist/actions/list-plans.mjs.map +1 -1
  389. package/dist/actions/list-products.cjs.map +1 -1
  390. package/dist/actions/list-products.d.cts +30 -3
  391. package/dist/actions/list-products.d.cts.map +1 -1
  392. package/dist/actions/list-products.d.mts +30 -3
  393. package/dist/actions/list-products.d.mts.map +1 -1
  394. package/dist/actions/list-products.mjs.map +1 -1
  395. package/dist/actions/list-templates.cjs.map +1 -1
  396. package/dist/actions/list-templates.d.cts +66 -3
  397. package/dist/actions/list-templates.d.cts.map +1 -1
  398. package/dist/actions/list-templates.d.mts +66 -3
  399. package/dist/actions/list-templates.d.mts.map +1 -1
  400. package/dist/actions/list-templates.mjs.map +1 -1
  401. package/dist/actions/list-web-profiles.cjs +1 -1
  402. package/dist/actions/list-web-profiles.cjs.map +1 -1
  403. package/dist/actions/list-web-profiles.d.cts +35 -3
  404. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  405. package/dist/actions/list-web-profiles.d.mts +35 -3
  406. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  407. package/dist/actions/list-web-profiles.mjs +1 -1
  408. package/dist/actions/list-web-profiles.mjs.map +1 -1
  409. package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -1
  410. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  411. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -3
  412. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  413. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -3
  414. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  415. package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -1
  416. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  417. package/dist/actions/list-webhook-event-types.cjs +1 -1
  418. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  419. package/dist/actions/list-webhook-event-types.d.cts +12 -3
  420. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  421. package/dist/actions/list-webhook-event-types.d.mts +12 -3
  422. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  423. package/dist/actions/list-webhook-event-types.mjs +1 -1
  424. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  425. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  426. package/dist/actions/list-webhook-lookups.d.cts +13 -3
  427. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  428. package/dist/actions/list-webhook-lookups.d.mts +13 -3
  429. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  430. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  431. package/dist/actions/list-webhooks.cjs +1 -1
  432. package/dist/actions/list-webhooks.cjs.map +1 -1
  433. package/dist/actions/list-webhooks.d.cts +24 -3
  434. package/dist/actions/list-webhooks.d.cts.map +1 -1
  435. package/dist/actions/list-webhooks.d.mts +24 -3
  436. package/dist/actions/list-webhooks.d.mts.map +1 -1
  437. package/dist/actions/list-webhooks.mjs +1 -1
  438. package/dist/actions/list-webhooks.mjs.map +1 -1
  439. package/dist/actions/patch-orders.cjs.map +1 -1
  440. package/dist/actions/patch-orders.d.cts +31 -3
  441. package/dist/actions/patch-orders.d.cts.map +1 -1
  442. package/dist/actions/patch-orders.d.mts +31 -3
  443. package/dist/actions/patch-orders.d.mts.map +1 -1
  444. package/dist/actions/patch-orders.mjs.map +1 -1
  445. package/dist/actions/patch-plan.cjs.map +1 -1
  446. package/dist/actions/patch-plan.d.cts +29 -3
  447. package/dist/actions/patch-plan.d.cts.map +1 -1
  448. package/dist/actions/patch-plan.d.mts +29 -3
  449. package/dist/actions/patch-plan.d.mts.map +1 -1
  450. package/dist/actions/patch-plan.mjs.map +1 -1
  451. package/dist/actions/patch-subscription.cjs +2 -2
  452. package/dist/actions/patch-subscription.cjs.map +1 -1
  453. package/dist/actions/patch-subscription.d.cts +36 -3
  454. package/dist/actions/patch-subscription.d.cts.map +1 -1
  455. package/dist/actions/patch-subscription.d.mts +36 -3
  456. package/dist/actions/patch-subscription.d.mts.map +1 -1
  457. package/dist/actions/patch-subscription.mjs +2 -2
  458. package/dist/actions/patch-subscription.mjs.map +1 -1
  459. package/dist/actions/patch-web-profile.cjs.map +1 -1
  460. package/dist/actions/patch-web-profile.d.cts +29 -3
  461. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  462. package/dist/actions/patch-web-profile.d.mts +29 -3
  463. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  464. package/dist/actions/patch-web-profile.mjs.map +1 -1
  465. package/dist/actions/ping-braintree.cjs.map +1 -1
  466. package/dist/actions/ping-braintree.d.cts +6 -3
  467. package/dist/actions/ping-braintree.d.cts.map +1 -1
  468. package/dist/actions/ping-braintree.d.mts +6 -3
  469. package/dist/actions/ping-braintree.d.mts.map +1 -1
  470. package/dist/actions/ping-braintree.mjs.map +1 -1
  471. package/dist/actions/query-braintree-report.cjs +1 -1
  472. package/dist/actions/query-braintree-report.cjs.map +1 -1
  473. package/dist/actions/query-braintree-report.d.cts +30 -3
  474. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  475. package/dist/actions/query-braintree-report.d.mts +30 -3
  476. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  477. package/dist/actions/query-braintree-report.mjs +1 -1
  478. package/dist/actions/query-braintree-report.mjs.map +1 -1
  479. package/dist/actions/retrieve-payment-resource.cjs +1 -1
  480. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  481. package/dist/actions/retrieve-payment-resource.d.cts +60 -3
  482. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  483. package/dist/actions/retrieve-payment-resource.d.mts +60 -3
  484. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  485. package/dist/actions/retrieve-payment-resource.mjs +1 -1
  486. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  487. package/dist/actions/search-invoices.cjs +1 -1
  488. package/dist/actions/search-invoices.cjs.map +1 -1
  489. package/dist/actions/search-invoices.d.cts +156 -3
  490. package/dist/actions/search-invoices.d.cts.map +1 -1
  491. package/dist/actions/search-invoices.d.mts +156 -3
  492. package/dist/actions/search-invoices.d.mts.map +1 -1
  493. package/dist/actions/search-invoices.mjs +1 -1
  494. package/dist/actions/search-invoices.mjs.map +1 -1
  495. package/dist/actions/send-invoice.cjs +2 -2
  496. package/dist/actions/send-invoice.cjs.map +1 -1
  497. package/dist/actions/send-invoice.d.cts +30 -3
  498. package/dist/actions/send-invoice.d.cts.map +1 -1
  499. package/dist/actions/send-invoice.d.mts +30 -3
  500. package/dist/actions/send-invoice.d.mts.map +1 -1
  501. package/dist/actions/send-invoice.mjs +2 -2
  502. package/dist/actions/send-invoice.mjs.map +1 -1
  503. package/dist/actions/simulate-webhook-event.cjs +3 -3
  504. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  505. package/dist/actions/simulate-webhook-event.d.cts +42 -3
  506. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  507. package/dist/actions/simulate-webhook-event.d.mts +42 -3
  508. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  509. package/dist/actions/simulate-webhook-event.mjs +3 -3
  510. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  511. package/dist/actions/update-dispute.cjs +2 -2
  512. package/dist/actions/update-dispute.cjs.map +1 -1
  513. package/dist/actions/update-dispute.d.cts +39 -3
  514. package/dist/actions/update-dispute.d.cts.map +1 -1
  515. package/dist/actions/update-dispute.d.mts +39 -3
  516. package/dist/actions/update-dispute.d.mts.map +1 -1
  517. package/dist/actions/update-dispute.mjs +2 -2
  518. package/dist/actions/update-dispute.mjs.map +1 -1
  519. package/dist/actions/update-invoice.cjs +15 -15
  520. package/dist/actions/update-invoice.cjs.map +1 -1
  521. package/dist/actions/update-invoice.d.cts +538 -3
  522. package/dist/actions/update-invoice.d.cts.map +1 -1
  523. package/dist/actions/update-invoice.d.mts +538 -3
  524. package/dist/actions/update-invoice.d.mts.map +1 -1
  525. package/dist/actions/update-invoice.mjs +15 -15
  526. package/dist/actions/update-invoice.mjs.map +1 -1
  527. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  528. package/dist/actions/update-pay-pal-product.d.cts +29 -3
  529. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  530. package/dist/actions/update-pay-pal-product.d.mts +29 -3
  531. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  532. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  533. package/dist/actions/update-pay-pal-webhook.cjs +3 -3
  534. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  535. package/dist/actions/update-pay-pal-webhook.d.cts +40 -3
  536. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  537. package/dist/actions/update-pay-pal-webhook.d.mts +40 -3
  538. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  539. package/dist/actions/update-pay-pal-webhook.mjs +3 -3
  540. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  541. package/dist/actions/update-templates.cjs.map +1 -1
  542. package/dist/actions/update-templates.d.cts +627 -3
  543. package/dist/actions/update-templates.d.cts.map +1 -1
  544. package/dist/actions/update-templates.d.mts +627 -3
  545. package/dist/actions/update-templates.d.mts.map +1 -1
  546. package/dist/actions/update-templates.mjs.map +1 -1
  547. package/dist/actions/update-web-profile.cjs +2 -2
  548. package/dist/actions/update-web-profile.cjs.map +1 -1
  549. package/dist/actions/update-web-profile.d.cts +59 -3
  550. package/dist/actions/update-web-profile.d.cts.map +1 -1
  551. package/dist/actions/update-web-profile.d.mts +59 -3
  552. package/dist/actions/update-web-profile.d.mts.map +1 -1
  553. package/dist/actions/update-web-profile.mjs +2 -2
  554. package/dist/actions/update-web-profile.mjs.map +1 -1
  555. package/dist/actions/verify-payment-method.cjs +3 -3
  556. package/dist/actions/verify-payment-method.cjs.map +1 -1
  557. package/dist/actions/verify-payment-method.d.cts +25 -3
  558. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  559. package/dist/actions/verify-payment-method.d.mts +25 -3
  560. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  561. package/dist/actions/verify-payment-method.mjs +3 -3
  562. package/dist/actions/verify-payment-method.mjs.map +1 -1
  563. package/dist/actions/verify-webhook-signature.cjs +1 -1
  564. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  565. package/dist/actions/verify-webhook-signature.d.cts +52 -3
  566. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  567. package/dist/actions/verify-webhook-signature.d.mts +52 -3
  568. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  569. package/dist/actions/verify-webhook-signature.mjs +1 -1
  570. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  571. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"simulate-webhook-event.cjs","names":["z","action"],"sources":["../../src/actions/simulate-webhook-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSimulateWebhookEventInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL for the webhook endpoint. If omitted, the webhook ID is required.\").optional(),\n event_type: z.string().describe(\"The event name. Specify one of the subscribed events. For each request, provide only one event.\"),\n webhook_id: z.string().describe(\"The ID of the webhook. If omitted, the URL is required.\").optional(),\n resource_version: z.string().describe(\"The identifier for event type (e.g., 1.0, 2.0).\").optional(),\n}).describe(\"Request model for simulating a webhook event.\");\nconst PaypalSimulateWebhookEvent_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\"),\n href: z.string().describe(\"The URI of the related resource.\"),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalSimulateWebhookEvent_ErrorDetailSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\"),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).describe(\"Error detail information.\");\nexport const PaypalSimulateWebhookEventOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the simulated event notification.\").nullable().optional(),\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalSimulateWebhookEvent_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n status: z.string().describe(\"The status of the simulated notification.\").nullable().optional(),\n details: z.array(PaypalSimulateWebhookEvent_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n summary: z.string().describe(\"A summary of the notification.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n resource: z.object({}).describe(\"The resource object associated with the notification.\").nullable().optional(),\n event_type: z.string().describe(\"The event type of the simulated notification.\").nullable().optional(),\n webhook_id: z.string().describe(\"The webhook ID that received the simulated notification.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time of the notification in ISO 8601 format.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the notification in ISO 8601 format.\").nullable().optional(),\n resource_type: z.string().describe(\"The resource type of the simulated notification.\").nullable().optional(),\n transmission_id: z.string().describe(\"The unique identifier for the webhook notification transmission.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n resource_version: z.string().describe(\"The resource version of the simulated notification.\").nullable().optional(),\n transmission_time: z.string().describe(\"The time of the webhook notification transmission in ISO 8601 format.\").nullable().optional(),\n}).describe(\"Response model for simulating a webhook event.\");\n\nexport const paypalSimulateWebhookEvent = action(\"PAYPAL_SIMULATE_WEBHOOK_EVENT\", {\n slug: \"paypal-simulate-webhook-event\",\n name: \"Simulate Webhook Event\",\n description: \"Simulates a webhook event to test your webhook integration. Use this action when you need to verify that your webhook endpoint is correctly configured and receiving events from PayPal. This is particularly useful during development and testing to ensure webhook handlers process events correctly without requiring real transaction data. Note: Either `url` or `webhook_id` must be provided in the request.\",\n input: PaypalSimulateWebhookEventInput,\n output: PaypalSimulateWebhookEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC/G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACjI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACnD,OAAOA,IAA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SAAS;CAC7G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"simulate-webhook-event.cjs","names":["z","action"],"sources":["../../src/actions/simulate-webhook-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSimulateWebhookEventInput = z.object({\n url: z.string().describe(\"The URL for the webhook endpoint. If omitted, the webhook ID is required.\").optional(),\n event_type: z.string().describe(\"The event name. Specify one of the subscribed events. For each request, provide only one event.\"),\n webhook_id: z.string().describe(\"The ID of the webhook. If omitted, the URL is required.\").optional(),\n resource_version: z.string().describe(\"The identifier for event type (e.g., 1.0, 2.0).\").optional(),\n}).describe(\"Request model for simulating a webhook event.\");\nconst PaypalSimulateWebhookEvent_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable(),\n href: z.string().describe(\"The URI of the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalSimulateWebhookEvent_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).describe(\"Error detail information.\");\nexport const PaypalSimulateWebhookEventOutput = z.object({\n id: z.string().describe(\"The ID of the simulated event notification.\").nullable().optional(),\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalSimulateWebhookEvent_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n status: z.string().describe(\"The status of the simulated notification.\").nullable().optional(),\n details: z.array(PaypalSimulateWebhookEvent_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n summary: z.string().describe(\"A summary of the notification.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n resource: z.object({}).describe(\"The resource object associated with the notification.\").nullable().optional(),\n event_type: z.string().describe(\"The event type of the simulated notification.\").nullable().optional(),\n webhook_id: z.string().describe(\"The webhook ID that received the simulated notification.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time of the notification in ISO 8601 format.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the notification in ISO 8601 format.\").nullable().optional(),\n resource_type: z.string().describe(\"The resource type of the simulated notification.\").nullable().optional(),\n transmission_id: z.string().describe(\"The unique identifier for the webhook notification transmission.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n resource_version: z.string().describe(\"The resource version of the simulated notification.\").nullable().optional(),\n transmission_time: z.string().describe(\"The time of the webhook notification transmission in ISO 8601 format.\").nullable().optional(),\n}).describe(\"Response model for simulating a webhook event.\");\n\nexport const paypalSimulateWebhookEvent = action(\"PAYPAL_SIMULATE_WEBHOOK_EVENT\", {\n slug: \"paypal-simulate-webhook-event\",\n name: \"Simulate Webhook Event\",\n description: \"Simulates a webhook event to test your webhook integration. Use this action when you need to verify that your webhook endpoint is correctly configured and receiving events from PayPal. This is particularly useful during development and testing to ensure webhook handlers process events correctly without requiring real transaction data. Note: Either `url` or `webhook_id` must be provided in the request.\",\n input: PaypalSimulateWebhookEventInput,\n output: PaypalSimulateWebhookEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC/G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACjI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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uE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,48 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/simulate-webhook-event.d.ts
4
- declare const PaypalSimulateWebhookEventInput: z.ZodTypeAny;
5
- declare const PaypalSimulateWebhookEventOutput: z.ZodTypeAny;
6
- declare const paypalSimulateWebhookEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalSimulateWebhookEventInput: z.ZodObject<{
5
+ url: z.ZodOptional<z.ZodString>;
6
+ event_type: z.ZodString;
7
+ webhook_id: z.ZodOptional<z.ZodString>;
8
+ resource_version: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const PaypalSimulateWebhookEventOutput: z.ZodObject<{
11
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ rel: z.ZodNullable<z.ZodString>;
15
+ href: z.ZodNullable<z.ZodString>;
16
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>>>>;
18
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ issue: z.ZodNullable<z.ZodString>;
22
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$strip>>>>;
26
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ resource: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
30
+ event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ webhook_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ resource_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ transmission_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ resource_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ transmission_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ }, z.core.$strip>;
40
+ declare const paypalSimulateWebhookEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
41
+ event_type: string;
42
+ url?: string | undefined;
43
+ webhook_id?: string | undefined;
44
+ resource_version?: string | undefined;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
46
  //#endregion
8
47
  export { paypalSimulateWebhookEvent };
9
48
  //# sourceMappingURL=simulate-webhook-event.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulate-webhook-event.d.cts","names":[],"sources":["../../src/actions/simulate-webhook-event.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKY;AAAA,cAa/C,gCAAA,EAAkC,CAAA,CAAE,UAmBY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"simulate-webhook-event.d.cts","names":[],"sources":["../../src/actions/simulate-webhook-event.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAkB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,48 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/simulate-webhook-event.d.ts
4
- declare const PaypalSimulateWebhookEventInput: z.ZodTypeAny;
5
- declare const PaypalSimulateWebhookEventOutput: z.ZodTypeAny;
6
- declare const paypalSimulateWebhookEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalSimulateWebhookEventInput: z.ZodObject<{
5
+ url: z.ZodOptional<z.ZodString>;
6
+ event_type: z.ZodString;
7
+ webhook_id: z.ZodOptional<z.ZodString>;
8
+ resource_version: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const PaypalSimulateWebhookEventOutput: z.ZodObject<{
11
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ rel: z.ZodNullable<z.ZodString>;
15
+ href: z.ZodNullable<z.ZodString>;
16
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>>>>;
18
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ issue: z.ZodNullable<z.ZodString>;
22
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$strip>>>>;
26
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ resource: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
30
+ event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ webhook_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ resource_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ transmission_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ resource_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ transmission_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ }, z.core.$strip>;
40
+ declare const paypalSimulateWebhookEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
41
+ event_type: string;
42
+ url?: string | undefined;
43
+ webhook_id?: string | undefined;
44
+ resource_version?: string | undefined;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
46
  //#endregion
8
47
  export { paypalSimulateWebhookEvent };
9
48
  //# sourceMappingURL=simulate-webhook-event.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulate-webhook-event.d.mts","names":[],"sources":["../../src/actions/simulate-webhook-event.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKY;AAAA,cAa/C,gCAAA,EAAkC,CAAA,CAAE,UAmBY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"simulate-webhook-event.d.mts","names":[],"sources":["../../src/actions/simulate-webhook-event.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAkB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBhC,0BAAA,gCAA0B,wBAAA"}
@@ -8,13 +8,13 @@ const PaypalSimulateWebhookEventInput = z.object({
8
8
  resource_version: z.string().describe("The identifier for event type (e.g., 1.0, 2.0).").optional()
9
9
  }).describe("Request model for simulating a webhook event.");
10
10
  const PaypalSimulateWebhookEvent_LinkDescriptionSchema = z.object({
11
- rel: z.string().describe("The relationship between the resource and the link."),
12
- href: z.string().describe("The URI of the related resource."),
11
+ rel: z.string().describe("The relationship between the resource and the link.").nullable(),
12
+ href: z.string().describe("The URI of the related resource.").nullable(),
13
13
  method: z.string().describe("The HTTP method to use for the related resource.").nullable().optional()
14
14
  }).describe("HATEOAS link information.");
15
15
  const PaypalSimulateWebhookEvent_ErrorDetailSchema = z.object({
16
16
  field: z.string().describe("The field that caused the error.").nullable().optional(),
17
- issue: z.string().describe("The issue description."),
17
+ issue: z.string().describe("The issue description.").nullable(),
18
18
  value: z.string().describe("The value that caused the error.").nullable().optional(),
19
19
  location: z.string().describe("The location of the error (body, path, query, header).").nullable().optional(),
20
20
  description: z.string().describe("The error description.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"simulate-webhook-event.mjs","names":[],"sources":["../../src/actions/simulate-webhook-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSimulateWebhookEventInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL for the webhook endpoint. If omitted, the webhook ID is required.\").optional(),\n event_type: z.string().describe(\"The event name. Specify one of the subscribed events. For each request, provide only one event.\"),\n webhook_id: z.string().describe(\"The ID of the webhook. If omitted, the URL is required.\").optional(),\n resource_version: z.string().describe(\"The identifier for event type (e.g., 1.0, 2.0).\").optional(),\n}).describe(\"Request model for simulating a webhook event.\");\nconst PaypalSimulateWebhookEvent_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\"),\n href: z.string().describe(\"The URI of the related resource.\"),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalSimulateWebhookEvent_ErrorDetailSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\"),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).describe(\"Error detail information.\");\nexport const PaypalSimulateWebhookEventOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the simulated event notification.\").nullable().optional(),\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalSimulateWebhookEvent_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n status: z.string().describe(\"The status of the simulated notification.\").nullable().optional(),\n details: z.array(PaypalSimulateWebhookEvent_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n summary: z.string().describe(\"A summary of the notification.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n resource: z.object({}).describe(\"The resource object associated with the notification.\").nullable().optional(),\n event_type: z.string().describe(\"The event type of the simulated notification.\").nullable().optional(),\n webhook_id: z.string().describe(\"The webhook ID that received the simulated notification.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time of the notification in ISO 8601 format.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the notification in ISO 8601 format.\").nullable().optional(),\n resource_type: z.string().describe(\"The resource type of the simulated notification.\").nullable().optional(),\n transmission_id: z.string().describe(\"The unique identifier for the webhook notification transmission.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n resource_version: z.string().describe(\"The resource version of the simulated notification.\").nullable().optional(),\n transmission_time: z.string().describe(\"The time of the webhook notification transmission in ISO 8601 format.\").nullable().optional(),\n}).describe(\"Response model for simulating a webhook event.\");\n\nexport const paypalSimulateWebhookEvent = action(\"PAYPAL_SIMULATE_WEBHOOK_EVENT\", {\n slug: \"paypal-simulate-webhook-event\",\n name: \"Simulate Webhook Event\",\n description: \"Simulates a webhook event to test your webhook integration. Use this action when you need to verify that your webhook endpoint is correctly configured and receiving events from PayPal. This is particularly useful during development and testing to ensure webhook handlers process events correctly without requiring real transaction data. Note: Either `url` or `webhook_id` must be provided in the request.\",\n input: PaypalSimulateWebhookEventInput,\n output: PaypalSimulateWebhookEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACjI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,mDAAiE,EAAE,OAAO;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,+CAA6D,EAAE,OAAO;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,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"simulate-webhook-event.mjs","names":[],"sources":["../../src/actions/simulate-webhook-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalSimulateWebhookEventInput = z.object({\n url: z.string().describe(\"The URL for the webhook endpoint. If omitted, the webhook ID is required.\").optional(),\n event_type: z.string().describe(\"The event name. Specify one of the subscribed events. For each request, provide only one event.\"),\n webhook_id: z.string().describe(\"The ID of the webhook. If omitted, the URL is required.\").optional(),\n resource_version: z.string().describe(\"The identifier for event type (e.g., 1.0, 2.0).\").optional(),\n}).describe(\"Request model for simulating a webhook event.\");\nconst PaypalSimulateWebhookEvent_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and the link.\").nullable(),\n href: z.string().describe(\"The URI of the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method to use for the related resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalSimulateWebhookEvent_ErrorDetailSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n issue: z.string().describe(\"The issue description.\").nullable(),\n value: z.string().describe(\"The value that caused the error.\").nullable().optional(),\n location: z.string().describe(\"The location of the error (body, path, query, header).\").nullable().optional(),\n description: z.string().describe(\"The error description.\").nullable().optional(),\n}).describe(\"Error detail information.\");\nexport const PaypalSimulateWebhookEventOutput = z.object({\n id: z.string().describe(\"The ID of the simulated event notification.\").nullable().optional(),\n name: z.string().describe(\"The human-readable, unique name of the error.\").nullable().optional(),\n links: z.array(PaypalSimulateWebhookEvent_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n status: z.string().describe(\"The status of the simulated notification.\").nullable().optional(),\n details: z.array(PaypalSimulateWebhookEvent_ErrorDetailSchema).describe(\"An array of additional details about the error.\").nullable().optional(),\n message: z.string().describe(\"The message that describes the error.\").nullable().optional(),\n summary: z.string().describe(\"A summary of the notification.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID. Used for correlation purposes.\").nullable().optional(),\n resource: z.object({}).describe(\"The resource object associated with the notification.\").nullable().optional(),\n event_type: z.string().describe(\"The event type of the simulated notification.\").nullable().optional(),\n webhook_id: z.string().describe(\"The webhook ID that received the simulated notification.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time of the notification in ISO 8601 format.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the notification in ISO 8601 format.\").nullable().optional(),\n resource_type: z.string().describe(\"The resource type of the simulated notification.\").nullable().optional(),\n transmission_id: z.string().describe(\"The unique identifier for the webhook notification transmission.\").nullable().optional(),\n information_link: z.string().describe(\"The information link, or URI, that shows detailed information about this error for the developer.\").nullable().optional(),\n resource_version: z.string().describe(\"The resource version of the simulated notification.\").nullable().optional(),\n transmission_time: z.string().describe(\"The time of the webhook notification transmission in ISO 8601 format.\").nullable().optional(),\n}).describe(\"Response model for simulating a webhook event.\");\n\nexport const paypalSimulateWebhookEvent = action(\"PAYPAL_SIMULATE_WEBHOOK_EVENT\", {\n slug: \"paypal-simulate-webhook-event\",\n name: \"Simulate Webhook Event\",\n description: \"Simulates a webhook event to test your webhook integration. Use this action when you need to verify that your webhook endpoint is correctly configured and receiving events from PayPal. This is particularly useful during development and testing to ensure webhook handlers process events correctly without requiring real transaction data. Note: Either `url` or `webhook_id` must be provided in the request.\",\n input: PaypalSimulateWebhookEventInput,\n output: PaypalSimulateWebhookEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACjI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,mDAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,C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AC,SAAS,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -27,8 +27,8 @@ const PaypalUpdateDispute_DisputeErrorDetailSchema = zod.z.object({
27
27
  const PaypalUpdateDisputeOutput = zod.z.object({
28
28
  name: zod.z.string().describe("Error name if the operation failed").nullable().optional(),
29
29
  details: zod.z.array(PaypalUpdateDispute_DisputeErrorDetailSchema).describe("Error details if the operation failed").nullable().optional(),
30
- message: zod.z.string().describe("Status message or error description"),
31
- success: zod.z.boolean().describe("Whether the patch operation succeeded"),
30
+ message: zod.z.string().describe("Status message or error description").nullable(),
31
+ success: zod.z.boolean().describe("Whether the patch operation succeeded").nullable(),
32
32
  debug_id: zod.z.string().describe("PayPal debug ID for troubleshooting").nullable().optional(),
33
33
  information_link: zod.z.string().describe("Information link for detailed error documentation").nullable().optional()
34
34
  }).describe("Response model for dispute patch operations.\n\nOn success (HTTP 202 or 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.");
@@ -1 +1 @@
1
- {"version":3,"file":"update-dispute.cjs","names":["z","action"],"sources":["../../src/actions/update-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalUpdateDisputeInput: z.ZodTypeAny = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value.\"),\n from: z.string().describe(\"The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer to the target location in the document. Required for all operations except 'test'.\").optional(),\n value: z.unknown().describe(\"The value to apply. Required for 'add', 'replace', and 'test' operations. Not used for 'remove', 'copy', or 'move'. Can be a string, number, boolean, object, or array.\").optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to a dispute.\")).describe(\"Array of JSON Patch operations to apply to the dispute. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal dispute using JSON Patch operations.\");\nconst PaypalUpdateDispute_DisputeErrorDetailSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n value: z.string().describe(\"Invalid value provided\").nullable().optional(),\n location: z.string().describe(\"Location of the error\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for dispute error responses.\");\nexport const PaypalUpdateDisputeOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalUpdateDispute_DisputeErrorDetailSchema).describe(\"Error details if the operation failed\").nullable().optional(),\n message: z.string().describe(\"Status message or error description\"),\n success: z.boolean().describe(\"Whether the patch operation succeeded\"),\n debug_id: z.string().describe(\"PayPal debug ID for troubleshooting\").nullable().optional(),\n information_link: z.string().describe(\"Information link for detailed error documentation\").nullable().optional(),\n}).describe(\"Response model for dispute patch operations.\\n\\nOn success (HTTP 202 or 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalUpdateDispute = action(\"PAYPAL_UPDATE_DISPUTE\", {\n slug: \"paypal-update-dispute\",\n name: \"Update Dispute\",\n description: \"Partially update a PayPal dispute using JSON Patch operations. Use when you need to modify specific fields of an existing dispute such as notes, status, or other patchable properties. This action applies partial updates to the dispute using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order. The API returns HTTP 202 (Accepted) on success.\",\n input: PaypalUpdateDisputeInput,\n output: PaypalUpdateDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAC1Q,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,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BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,yLAAyL;AAErM,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-dispute.cjs","names":["z","action"],"sources":["../../src/actions/update-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalUpdateDisputeInput = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value.\"),\n from: z.string().describe(\"The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer to the target location in the document. Required for all operations except 'test'.\").optional(),\n value: z.unknown().describe(\"The value to apply. Required for 'add', 'replace', and 'test' operations. Not used for 'remove', 'copy', or 'move'. Can be a string, number, boolean, object, or array.\").optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to a dispute.\")).describe(\"Array of JSON Patch operations to apply to the dispute. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal dispute using JSON Patch operations.\");\nconst PaypalUpdateDispute_DisputeErrorDetailSchema = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n value: z.string().describe(\"Invalid value provided\").nullable().optional(),\n location: z.string().describe(\"Location of the error\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for dispute error responses.\");\nexport const PaypalUpdateDisputeOutput = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalUpdateDispute_DisputeErrorDetailSchema).describe(\"Error details if the operation failed\").nullable().optional(),\n message: z.string().describe(\"Status message or error description\").nullable(),\n success: z.boolean().describe(\"Whether the patch operation succeeded\").nullable(),\n debug_id: z.string().describe(\"PayPal debug ID for troubleshooting\").nullable().optional(),\n information_link: z.string().describe(\"Information link for detailed error documentation\").nullable().optional(),\n}).describe(\"Response model for dispute patch operations.\\n\\nOn success (HTTP 202 or 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalUpdateDispute = action(\"PAYPAL_UPDATE_DISPUTE\", {\n slug: \"paypal-update-dispute\",\n name: \"Update Dispute\",\n description: \"Partially update a PayPal dispute using JSON Patch operations. Use when you need to modify specific fields of an existing dispute such as notes, status, or other patchable properties. This action applies partial updates to the dispute using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order. The API returns HTTP 202 (Accepted) on success.\",\n input: PaypalUpdateDisputeInput,\n output: PaypalUpdateDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAC1Q,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC1I,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAClN,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAC3L,CAAC,CAAC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A,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-dispute.d.ts
4
- declare const PaypalUpdateDisputeInput: z.ZodTypeAny;
5
- declare const PaypalUpdateDisputeOutput: z.ZodTypeAny;
6
- declare const paypalUpdateDispute: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalUpdateDisputeInput: z.ZodObject<{
5
+ dispute_id: z.ZodString;
6
+ operations: z.ZodArray<z.ZodObject<{
7
+ op: z.ZodEnum<{
8
+ replace: "replace";
9
+ add: "add";
10
+ remove: "remove";
11
+ move: "move";
12
+ copy: "copy";
13
+ test: "test";
14
+ }>;
15
+ from: z.ZodOptional<z.ZodString>;
16
+ path: z.ZodOptional<z.ZodString>;
17
+ value: z.ZodOptional<z.ZodUnknown>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalUpdateDisputeOutput: z.ZodObject<{
21
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ issue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$strip>>>>;
29
+ message: z.ZodNullable<z.ZodString>;
30
+ success: z.ZodNullable<z.ZodBoolean>;
31
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$strip>;
34
+ declare const paypalUpdateDispute: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ dispute_id: string;
36
+ operations: {
37
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
38
+ from?: string | undefined;
39
+ path?: string | undefined;
40
+ value?: unknown;
41
+ }[];
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { paypalUpdateDispute };
9
45
  //# sourceMappingURL=update-dispute.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-dispute.d.cts","names":[],"sources":["../../src/actions/update-dispute.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAQqC;AAAA,cAQjE,yBAAA,EAA2B,CAAA,CAAE,UAO4J;AAAA,cAEzL,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-dispute.d.cts","names":[],"sources":["../../src/actions/update-dispute.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-dispute.d.ts
4
- declare const PaypalUpdateDisputeInput: z.ZodTypeAny;
5
- declare const PaypalUpdateDisputeOutput: z.ZodTypeAny;
6
- declare const paypalUpdateDispute: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalUpdateDisputeInput: z.ZodObject<{
5
+ dispute_id: z.ZodString;
6
+ operations: z.ZodArray<z.ZodObject<{
7
+ op: z.ZodEnum<{
8
+ replace: "replace";
9
+ add: "add";
10
+ remove: "remove";
11
+ move: "move";
12
+ copy: "copy";
13
+ test: "test";
14
+ }>;
15
+ from: z.ZodOptional<z.ZodString>;
16
+ path: z.ZodOptional<z.ZodString>;
17
+ value: z.ZodOptional<z.ZodUnknown>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalUpdateDisputeOutput: z.ZodObject<{
21
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ issue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$strip>>>>;
29
+ message: z.ZodNullable<z.ZodString>;
30
+ success: z.ZodNullable<z.ZodBoolean>;
31
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ information_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$strip>;
34
+ declare const paypalUpdateDispute: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ dispute_id: string;
36
+ operations: {
37
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
38
+ from?: string | undefined;
39
+ path?: string | undefined;
40
+ value?: unknown;
41
+ }[];
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { paypalUpdateDispute };
9
45
  //# sourceMappingURL=update-dispute.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-dispute.d.mts","names":[],"sources":["../../src/actions/update-dispute.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAQqC;AAAA,cAQjE,yBAAA,EAA2B,CAAA,CAAE,UAO4J;AAAA,cAEzL,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-dispute.d.mts","names":[],"sources":["../../src/actions/update-dispute.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA"}
@@ -32,8 +32,8 @@ const paypalUpdateDispute = action("PAYPAL_UPDATE_DISPUTE", {
32
32
  output: z.object({
33
33
  name: z.string().describe("Error name if the operation failed").nullable().optional(),
34
34
  details: z.array(PaypalUpdateDispute_DisputeErrorDetailSchema).describe("Error details if the operation failed").nullable().optional(),
35
- message: z.string().describe("Status message or error description"),
36
- success: z.boolean().describe("Whether the patch operation succeeded"),
35
+ message: z.string().describe("Status message or error description").nullable(),
36
+ success: z.boolean().describe("Whether the patch operation succeeded").nullable(),
37
37
  debug_id: z.string().describe("PayPal debug ID for troubleshooting").nullable().optional(),
38
38
  information_link: z.string().describe("Information link for detailed error documentation").nullable().optional()
39
39
  }).describe("Response model for dispute patch operations.\n\nOn success (HTTP 202 or 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.")
@@ -1 +1 @@
1
- {"version":3,"file":"update-dispute.mjs","names":[],"sources":["../../src/actions/update-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalUpdateDisputeInput: z.ZodTypeAny = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value.\"),\n from: z.string().describe(\"The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer to the target location in the document. Required for all operations except 'test'.\").optional(),\n value: z.unknown().describe(\"The value to apply. Required for 'add', 'replace', and 'test' operations. Not used for 'remove', 'copy', or 'move'. Can be a string, number, boolean, object, or array.\").optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to a dispute.\")).describe(\"Array of JSON Patch operations to apply to the dispute. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal dispute using JSON Patch operations.\");\nconst PaypalUpdateDispute_DisputeErrorDetailSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n value: z.string().describe(\"Invalid value provided\").nullable().optional(),\n location: z.string().describe(\"Location of the error\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for dispute error responses.\");\nexport const PaypalUpdateDisputeOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalUpdateDispute_DisputeErrorDetailSchema).describe(\"Error details if the operation failed\").nullable().optional(),\n message: z.string().describe(\"Status message or error description\"),\n success: z.boolean().describe(\"Whether the patch operation succeeded\"),\n debug_id: z.string().describe(\"PayPal debug ID for troubleshooting\").nullable().optional(),\n information_link: z.string().describe(\"Information link for detailed error documentation\").nullable().optional(),\n}).describe(\"Response model for dispute patch operations.\\n\\nOn success (HTTP 202 or 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalUpdateDispute = action(\"PAYPAL_UPDATE_DISPUTE\", {\n slug: \"paypal-update-dispute\",\n name: \"Update Dispute\",\n description: \"Partially update a PayPal dispute using JSON Patch operations. Use when you need to modify specific fields of an existing dispute such as notes, status, or other patchable properties. This action applies partial updates to the dispute using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order. The API returns HTTP 202 (Accepted) on success.\",\n input: PaypalUpdateDisputeInput,\n output: P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SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,yLAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-dispute.mjs","names":[],"sources":["../../src/actions/update-dispute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalUpdateDisputeInput = z.object({\n dispute_id: z.string().describe(\"The ID of the dispute to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform: 'add' inserts a value, 'remove' deletes a value, 'replace' updates an existing value, 'move' relocates a value, 'copy' duplicates a value, 'test' validates a value.\"),\n from: z.string().describe(\"The JSON Pointer from which to move the value. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer to the target location in the document. Required for all operations except 'test'.\").optional(),\n value: z.unknown().describe(\"The value to apply. Required for 'add', 'replace', and 'test' operations. Not used for 'remove', 'copy', or 'move'. Can be a string, number, boolean, object, or array.\").optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to a dispute.\")).describe(\"Array of JSON Patch operations to apply to the dispute. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal dispute using JSON Patch operations.\");\nconst PaypalUpdateDispute_DisputeErrorDetailSchema = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n value: z.string().describe(\"Invalid value provided\").nullable().optional(),\n location: z.string().describe(\"Location of the error\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for dispute error responses.\");\nexport const PaypalUpdateDisputeOutput = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalUpdateDispute_DisputeErrorDetailSchema).describe(\"Error details if the operation failed\").nullable().optional(),\n message: z.string().describe(\"Status message or error description\").nullable(),\n success: z.boolean().describe(\"Whether the patch operation succeeded\").nullable(),\n debug_id: z.string().describe(\"PayPal debug ID for troubleshooting\").nullable().optional(),\n information_link: z.string().describe(\"Information link for detailed error documentation\").nullable().optional(),\n}).describe(\"Response model for dispute patch operations.\\n\\nOn success (HTTP 202 or 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalUpdateDispute = action(\"PAYPAL_UPDATE_DISPUTE\", {\n slug: \"paypal-update-dispute\",\n name: \"Update Dispute\",\n description: \"Partially update a PayPal dispute using JSON Patch operations. Use when you need to modify specific fields of an existing dispute such as notes, status, or other patchable properties. This action applies partial updates to the dispute using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order. The API returns HTTP 202 (Accepted) on success.\",\n input: PaypalUpdateDisputeInput,\n output: PaypalUpdateDisputeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,IAAI,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAC1Q,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,S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O,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,yLAOF;AACV,CAAC"}
@@ -182,8 +182,8 @@ const PaypalUpdateInvoiceInput = zod.z.object({
182
182
  additional_recipients: zod.z.array(zod.z.string()).describe("An array of one or more CC: emails to which notifications are sent.").optional()
183
183
  }).describe("Request to fully update a PayPal invoice.\n\nUse this action when you need to completely replace an invoice with new data.\nThe invoice must be in DRAFT status to be fully updated.");
184
184
  const PaypalUpdateInvoice_MoneySchema = zod.z.object({
185
- value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for currencies like TND."),
186
- currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
185
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for currencies like TND.").nullable(),
186
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.").nullable()
187
187
  }).describe("The currency and amount for a financial transaction.");
188
188
  const PaypalUpdateInvoice_TaxSchema = zod.z.object({
189
189
  id: zod.z.string().describe("The tax ID.").nullable().optional(),
@@ -198,32 +198,32 @@ const PaypalUpdateInvoice_ItemDiscountSchema = zod.z.object({
198
198
  const PaypalUpdateInvoice_InvoiceItemSchema = zod.z.object({
199
199
  id: zod.z.string().describe("The ID of the item.").nullable().optional(),
200
200
  tax: PaypalUpdateInvoice_TaxSchema.nullable().optional(),
201
- name: zod.z.string().describe("The name of the item."),
201
+ name: zod.z.string().describe("The name of the item.").nullable(),
202
202
  discount: PaypalUpdateInvoice_ItemDiscountSchema.nullable().optional(),
203
- quantity: zod.z.string().describe("The quantity of the item."),
203
+ quantity: zod.z.string().describe("The quantity of the item.").nullable(),
204
204
  item_date: zod.z.string().describe("The date of the item. The date format is YYYY-MM-DD.").nullable().optional(),
205
205
  description: zod.z.string().describe("The description of the item.").nullable().optional(),
206
206
  unit_amount: PaypalUpdateInvoice_MoneySchema.nullable(),
207
207
  unit_of_measure: zod.z.string().describe("The unit of measure of the item.").nullable().optional()
208
208
  }).describe("A single invoice line item.");
209
209
  const PaypalUpdateInvoice_LinkDescriptionSchema = zod.z.object({
210
- rel: zod.z.string().describe("The link relation type."),
211
- href: zod.z.string().describe("The target URI."),
210
+ rel: zod.z.string().describe("The link relation type.").nullable(),
211
+ href: zod.z.string().describe("The target URI.").nullable(),
212
212
  method: zod.z.string().describe("The HTTP method required to access the link.").nullable().optional()
213
213
  }).describe("The HATEOAS link information.");
214
214
  const PaypalUpdateInvoice_CustomAmountSchema = zod.z.object({
215
215
  label: zod.z.string().describe("The label for the custom amount.").nullable().optional(),
216
- value: zod.z.string().describe("The value of the custom amount."),
217
- currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.")
216
+ value: zod.z.string().describe("The value of the custom amount.").nullable(),
217
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").nullable()
218
218
  }).describe("Custom amount breakdown.");
219
219
  const PaypalUpdateInvoice_DiscountAmountSchema = zod.z.object({
220
- value: zod.z.string().describe("The value of the discount amount."),
220
+ value: zod.z.string().describe("The value of the discount amount.").nullable(),
221
221
  percent: zod.z.string().describe("The discount percent.").nullable().optional(),
222
- currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.")
222
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").nullable()
223
223
  }).describe("Discount amount breakdown.");
224
224
  const PaypalUpdateInvoice_ShippingAmountSchema = zod.z.object({
225
- value: zod.z.string().describe("The value of the shipping amount."),
226
- currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.")
225
+ value: zod.z.string().describe("The value of the shipping amount.").nullable(),
226
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").nullable()
227
227
  }).describe("Shipping cost breakdown.");
228
228
  const PaypalUpdateInvoice_AmountWithBreakdownSchema = zod.z.object({
229
229
  custom: PaypalUpdateInvoice_CustomAmountSchema.nullable().optional(),
@@ -233,9 +233,9 @@ const PaypalUpdateInvoice_AmountWithBreakdownSchema = zod.z.object({
233
233
  item_total: PaypalUpdateInvoice_MoneySchema.nullable().optional()
234
234
  }).describe("The breakdown of the amount.");
235
235
  const PaypalUpdateInvoice_InvoiceAmountSchema = zod.z.object({
236
- value: zod.z.string().describe("The value of the amount."),
236
+ value: zod.z.string().describe("The value of the amount.").nullable(),
237
237
  breakdown: PaypalUpdateInvoice_AmountWithBreakdownSchema.nullable().optional(),
238
- currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
238
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.").nullable()
239
239
  }).describe("The invoice amount summary.");
240
240
  const PaypalUpdateInvoice_InvoiceMetadataSchema = zod.z.object({
241
241
  entity_id: zod.z.string().describe("The entity ID.").nullable().optional(),
@@ -261,7 +261,7 @@ const PaypalUpdateInvoice_InvoiceDetailSchema = zod.z.object({
261
261
  attachments: zod.z.array(PaypalUpdateInvoice_AttachmentSchema).describe("An array of attachments. The array is empty if no attachments are included.").nullable().optional(),
262
262
  invoice_date: zod.z.string().describe("The date when the invoice was enabled. The date format is YYYY-MM-DD, such as 2018-12-15.").nullable().optional(),
263
263
  payment_term: PaypalUpdateInvoice_PaymentTermSchema.nullable().optional(),
264
- currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency."),
264
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.").nullable(),
265
265
  invoice_number: zod.z.string().describe("The invoice number. A value of manually entered or auto-generated.").nullable().optional(),
266
266
  terms_and_conditions: zod.z.string().describe("The additional terms of the invoice.").nullable().optional()
267
267
  }).describe("The details of the invoice.");