@keystrokehq/paypal 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (627) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs +1 -1
  4. package/dist/actions/activate-plan.cjs.map +1 -1
  5. package/dist/actions/activate-plan.d.cts +10 -3
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +10 -3
  8. package/dist/actions/activate-plan.d.mts.map +1 -1
  9. package/dist/actions/activate-plan.mjs +1 -1
  10. package/dist/actions/activate-plan.mjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.cjs +10 -10
  12. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.cts +79 -3
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +79 -3
  16. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  17. package/dist/actions/add-batch-trackers.mjs +10 -10
  18. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  19. package/dist/actions/authorize-order.cjs +22 -22
  20. package/dist/actions/authorize-order.cjs.map +1 -1
  21. package/dist/actions/authorize-order.d.cts +94 -3
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +94 -3
  24. package/dist/actions/authorize-order.d.mts.map +1 -1
  25. package/dist/actions/authorize-order.mjs +22 -22
  26. package/dist/actions/authorize-order.mjs.map +1 -1
  27. package/dist/actions/cancel-invoice.cjs +4 -4
  28. package/dist/actions/cancel-invoice.cjs.map +1 -1
  29. package/dist/actions/cancel-invoice.d.cts +36 -3
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +36 -3
  32. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  33. package/dist/actions/cancel-invoice.mjs +4 -4
  34. package/dist/actions/cancel-invoice.mjs.map +1 -1
  35. package/dist/actions/cancel-reminders.cjs +4 -4
  36. package/dist/actions/cancel-reminders.cjs.map +1 -1
  37. package/dist/actions/cancel-reminders.d.cts +25 -3
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +25 -3
  40. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  41. package/dist/actions/cancel-reminders.mjs +4 -4
  42. package/dist/actions/cancel-reminders.mjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.cjs +23 -23
  44. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.cts +67 -3
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +67 -3
  48. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  49. package/dist/actions/capture-subscription-payment.mjs +23 -23
  50. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  51. package/dist/actions/charge-payment-method.cjs +1 -1
  52. package/dist/actions/charge-payment-method.cjs.map +1 -1
  53. package/dist/actions/charge-payment-method.d.cts +89 -3
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +89 -3
  56. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  57. package/dist/actions/charge-payment-method.mjs +1 -1
  58. package/dist/actions/charge-payment-method.mjs.map +1 -1
  59. package/dist/actions/create-invoice.cjs +29 -29
  60. package/dist/actions/create-invoice.cjs.map +1 -1
  61. package/dist/actions/create-invoice.d.cts +431 -3
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +431 -3
  64. package/dist/actions/create-invoice.d.mts.map +1 -1
  65. package/dist/actions/create-invoice.mjs +29 -29
  66. package/dist/actions/create-invoice.mjs.map +1 -1
  67. package/dist/actions/create-payment.cjs +42 -42
  68. package/dist/actions/create-payment.cjs.map +1 -1
  69. package/dist/actions/create-payment.d.cts +215 -3
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +215 -3
  72. package/dist/actions/create-payment.d.mts.map +1 -1
  73. package/dist/actions/create-payment.mjs +42 -42
  74. package/dist/actions/create-payment.mjs.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.cjs +16 -16
  76. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.d.cts +154 -3
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +154 -3
  80. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  81. package/dist/actions/create-payments-billing-plans.mjs +16 -16
  82. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  83. package/dist/actions/create-plan.cjs +20 -20
  84. package/dist/actions/create-plan.cjs.map +1 -1
  85. package/dist/actions/create-plan.d.cts +143 -3
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +143 -3
  88. package/dist/actions/create-plan.d.mts.map +1 -1
  89. package/dist/actions/create-plan.mjs +20 -20
  90. package/dist/actions/create-plan.mjs.map +1 -1
  91. package/dist/actions/create-product.cjs +2 -2
  92. package/dist/actions/create-product.cjs.map +1 -1
  93. package/dist/actions/create-product.d.cts +184 -3
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +184 -3
  96. package/dist/actions/create-product.d.mts.map +1 -1
  97. package/dist/actions/create-product.mjs +2 -2
  98. package/dist/actions/create-product.mjs.map +1 -1
  99. package/dist/actions/create-subscription.cjs +17 -17
  100. package/dist/actions/create-subscription.cjs.map +1 -1
  101. package/dist/actions/create-subscription.d.cts +255 -3
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +255 -3
  104. package/dist/actions/create-subscription.d.mts.map +1 -1
  105. package/dist/actions/create-subscription.mjs +17 -17
  106. package/dist/actions/create-subscription.mjs.map +1 -1
  107. package/dist/actions/create-template.cjs +30 -30
  108. package/dist/actions/create-template.cjs.map +1 -1
  109. package/dist/actions/create-template.d.cts +323 -3
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +323 -3
  112. package/dist/actions/create-template.d.mts.map +1 -1
  113. package/dist/actions/create-template.mjs +30 -30
  114. package/dist/actions/create-template.mjs.map +1 -1
  115. package/dist/actions/create-web-profile.cjs +7 -7
  116. package/dist/actions/create-web-profile.cjs.map +1 -1
  117. package/dist/actions/create-web-profile.d.cts +81 -3
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +81 -3
  120. package/dist/actions/create-web-profile.d.mts.map +1 -1
  121. package/dist/actions/create-web-profile.mjs +7 -7
  122. package/dist/actions/create-web-profile.mjs.map +1 -1
  123. package/dist/actions/create-webhook-lookup.cjs +5 -5
  124. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  125. package/dist/actions/create-webhook-lookup.d.cts +11 -3
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +11 -3
  128. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  129. package/dist/actions/create-webhook-lookup.mjs +5 -5
  130. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  131. package/dist/actions/create-webhook.cjs +7 -7
  132. package/dist/actions/create-webhook.cjs.map +1 -1
  133. package/dist/actions/create-webhook.d.cts +37 -3
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +37 -3
  136. package/dist/actions/create-webhook.d.mts.map +1 -1
  137. package/dist/actions/create-webhook.mjs +7 -7
  138. package/dist/actions/create-webhook.mjs.map +1 -1
  139. package/dist/actions/deactivate-plan.cjs +3 -3
  140. package/dist/actions/deactivate-plan.cjs.map +1 -1
  141. package/dist/actions/deactivate-plan.d.cts +10 -3
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +10 -3
  144. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  145. package/dist/actions/deactivate-plan.mjs +3 -3
  146. package/dist/actions/deactivate-plan.mjs.map +1 -1
  147. package/dist/actions/delete-external-payment.cjs +1 -1
  148. package/dist/actions/delete-external-payment.cjs.map +1 -1
  149. package/dist/actions/delete-external-payment.d.cts +13 -3
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +13 -3
  152. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  153. package/dist/actions/delete-external-payment.mjs +1 -1
  154. package/dist/actions/delete-external-payment.mjs.map +1 -1
  155. package/dist/actions/delete-invoice-payment-record.cjs +1 -1
  156. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  157. package/dist/actions/delete-invoice-payment-record.d.cts +13 -3
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +13 -3
  160. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  161. package/dist/actions/delete-invoice-payment-record.mjs +1 -1
  162. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  163. package/dist/actions/delete-invoice-refund-record.cjs +1 -1
  164. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  165. package/dist/actions/delete-invoice-refund-record.d.cts +12 -3
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +12 -3
  168. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  169. package/dist/actions/delete-invoice-refund-record.mjs +1 -1
  170. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  171. package/dist/actions/delete-invoice.cjs +6 -6
  172. package/dist/actions/delete-invoice.cjs.map +1 -1
  173. package/dist/actions/delete-invoice.d.cts +25 -3
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +25 -3
  176. package/dist/actions/delete-invoice.d.mts.map +1 -1
  177. package/dist/actions/delete-invoice.mjs +6 -6
  178. package/dist/actions/delete-invoice.mjs.map +1 -1
  179. package/dist/actions/delete-payment-resource.cjs +3 -3
  180. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  181. package/dist/actions/delete-payment-resource.d.cts +10 -3
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +10 -3
  184. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  185. package/dist/actions/delete-payment-resource.mjs +3 -3
  186. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  187. package/dist/actions/delete-template.cjs +6 -6
  188. package/dist/actions/delete-template.cjs.map +1 -1
  189. package/dist/actions/delete-template.d.cts +25 -3
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +25 -3
  192. package/dist/actions/delete-template.d.mts.map +1 -1
  193. package/dist/actions/delete-template.mjs +6 -6
  194. package/dist/actions/delete-template.mjs.map +1 -1
  195. package/dist/actions/delete-web-profile.cjs +3 -3
  196. package/dist/actions/delete-web-profile.cjs.map +1 -1
  197. package/dist/actions/delete-web-profile.d.cts +10 -3
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +10 -3
  200. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  201. package/dist/actions/delete-web-profile.mjs +3 -3
  202. package/dist/actions/delete-web-profile.mjs.map +1 -1
  203. package/dist/actions/delete-webhook.cjs +6 -6
  204. package/dist/actions/delete-webhook.cjs.map +1 -1
  205. package/dist/actions/delete-webhook.d.cts +24 -3
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +24 -3
  208. package/dist/actions/delete-webhook.d.mts.map +1 -1
  209. package/dist/actions/delete-webhook.mjs +6 -6
  210. package/dist/actions/delete-webhook.mjs.map +1 -1
  211. package/dist/actions/fetch-node.cjs +6 -6
  212. package/dist/actions/fetch-node.cjs.map +1 -1
  213. package/dist/actions/fetch-node.d.cts +21 -3
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +21 -3
  216. package/dist/actions/fetch-node.d.mts.map +1 -1
  217. package/dist/actions/fetch-node.mjs +6 -6
  218. package/dist/actions/fetch-node.mjs.map +1 -1
  219. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +3 -3
  220. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  221. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +14 -3
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +14 -3
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +3 -3
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  227. package/dist/actions/find-eligible-methods.cjs +8 -8
  228. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  229. package/dist/actions/find-eligible-methods.d.cts +120 -3
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +120 -3
  232. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  233. package/dist/actions/find-eligible-methods.mjs +8 -8
  234. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  235. package/dist/actions/generate-client-token.cjs +2 -2
  236. package/dist/actions/generate-client-token.cjs.map +1 -1
  237. package/dist/actions/generate-client-token.d.cts +7 -3
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +7 -3
  240. package/dist/actions/generate-client-token.d.mts.map +1 -1
  241. package/dist/actions/generate-client-token.mjs +2 -2
  242. package/dist/actions/generate-client-token.mjs.map +1 -1
  243. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -1
  244. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  245. package/dist/actions/generate-next-invoice-number-v2.d.cts +10 -3
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +10 -3
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -1
  250. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  251. package/dist/actions/generate-next-invoice-number.cjs +1 -1
  252. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  253. package/dist/actions/generate-next-invoice-number.d.cts +5 -3
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +5 -3
  256. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  257. package/dist/actions/generate-next-invoice-number.mjs +1 -1
  258. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  259. package/dist/actions/generate-qr-code.cjs +7 -7
  260. package/dist/actions/generate-qr-code.cjs.map +1 -1
  261. package/dist/actions/generate-qr-code.d.cts +38 -3
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +38 -3
  264. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  265. package/dist/actions/generate-qr-code.mjs +7 -7
  266. package/dist/actions/generate-qr-code.mjs.map +1 -1
  267. package/dist/actions/get-billing-subscriptions.cjs +10 -10
  268. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  269. package/dist/actions/get-billing-subscriptions.d.cts +86 -3
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +86 -3
  272. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  273. package/dist/actions/get-billing-subscriptions.mjs +10 -10
  274. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  275. package/dist/actions/get-invoice.cjs +33 -33
  276. package/dist/actions/get-invoice.cjs.map +1 -1
  277. package/dist/actions/get-invoice.d.cts +151 -3
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +151 -3
  280. package/dist/actions/get-invoice.d.mts.map +1 -1
  281. package/dist/actions/get-invoice.mjs +33 -33
  282. package/dist/actions/get-invoice.mjs.map +1 -1
  283. package/dist/actions/get-invoicing-invoices-qr-code.cjs +5 -5
  284. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  285. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +20 -3
  286. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  287. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +20 -3
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  289. package/dist/actions/get-invoicing-invoices-qr-code.mjs +5 -5
  290. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  291. package/dist/actions/get-invoicing-template.cjs +22 -22
  292. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  293. package/dist/actions/get-invoicing-template.d.cts +134 -3
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +134 -3
  296. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  297. package/dist/actions/get-invoicing-template.mjs +22 -22
  298. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  299. package/dist/actions/get-order.cjs +16 -16
  300. package/dist/actions/get-order.cjs.map +1 -1
  301. package/dist/actions/get-order.d.cts +114 -3
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +114 -3
  304. package/dist/actions/get-order.d.mts.map +1 -1
  305. package/dist/actions/get-order.mjs +16 -16
  306. package/dist/actions/get-order.mjs.map +1 -1
  307. package/dist/actions/get-payment.cjs +14 -14
  308. package/dist/actions/get-payment.cjs.map +1 -1
  309. package/dist/actions/get-payment.d.cts +93 -3
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +93 -3
  312. package/dist/actions/get-payment.d.mts.map +1 -1
  313. package/dist/actions/get-payment.mjs +14 -14
  314. package/dist/actions/get-payment.mjs.map +1 -1
  315. package/dist/actions/get-payments-refund.cjs +3 -3
  316. package/dist/actions/get-payments-refund.cjs.map +1 -1
  317. package/dist/actions/get-payments-refund.d.cts +26 -3
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +26 -3
  320. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  321. package/dist/actions/get-payments-refund.mjs +3 -3
  322. package/dist/actions/get-payments-refund.mjs.map +1 -1
  323. package/dist/actions/get-plan.cjs +11 -11
  324. package/dist/actions/get-plan.cjs.map +1 -1
  325. package/dist/actions/get-plan.d.cts +52 -3
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +52 -3
  328. package/dist/actions/get-plan.d.mts.map +1 -1
  329. package/dist/actions/get-plan.mjs +11 -11
  330. package/dist/actions/get-plan.mjs.map +1 -1
  331. package/dist/actions/get-product.cjs +5 -5
  332. package/dist/actions/get-product.cjs.map +1 -1
  333. package/dist/actions/get-product.d.cts +22 -3
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +22 -3
  336. package/dist/actions/get-product.d.mts.map +1 -1
  337. package/dist/actions/get-product.mjs +5 -5
  338. package/dist/actions/get-product.mjs.map +1 -1
  339. package/dist/actions/get-subscription.cjs +10 -10
  340. package/dist/actions/get-subscription.cjs.map +1 -1
  341. package/dist/actions/get-subscription.d.cts +79 -3
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +79 -3
  344. package/dist/actions/get-subscription.d.mts.map +1 -1
  345. package/dist/actions/get-subscription.mjs +10 -10
  346. package/dist/actions/get-subscription.mjs.map +1 -1
  347. package/dist/actions/get-user-info.cjs +3 -3
  348. package/dist/actions/get-user-info.cjs.map +1 -1
  349. package/dist/actions/get-user-info.d.cts +34 -3
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +34 -3
  352. package/dist/actions/get-user-info.d.mts.map +1 -1
  353. package/dist/actions/get-user-info.mjs +3 -3
  354. package/dist/actions/get-user-info.mjs.map +1 -1
  355. package/dist/actions/get-userinfo.cjs +3 -3
  356. package/dist/actions/get-userinfo.cjs.map +1 -1
  357. package/dist/actions/get-userinfo.d.cts +47 -3
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +47 -3
  360. package/dist/actions/get-userinfo.d.mts.map +1 -1
  361. package/dist/actions/get-userinfo.mjs +3 -3
  362. package/dist/actions/get-userinfo.mjs.map +1 -1
  363. package/dist/actions/get-web-profile.cjs +5 -5
  364. package/dist/actions/get-web-profile.cjs.map +1 -1
  365. package/dist/actions/get-web-profile.d.cts +26 -3
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +26 -3
  368. package/dist/actions/get-web-profile.d.mts.map +1 -1
  369. package/dist/actions/get-web-profile.mjs +5 -5
  370. package/dist/actions/get-web-profile.mjs.map +1 -1
  371. package/dist/actions/get-webhook-lookup.cjs +3 -3
  372. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  373. package/dist/actions/get-webhook-lookup.d.cts +15 -3
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +15 -3
  376. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  377. package/dist/actions/get-webhook-lookup.mjs +3 -3
  378. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  379. package/dist/actions/get-webhook.cjs +6 -6
  380. package/dist/actions/get-webhook.cjs.map +1 -1
  381. package/dist/actions/get-webhook.d.cts +23 -3
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +23 -3
  384. package/dist/actions/get-webhook.d.mts.map +1 -1
  385. package/dist/actions/get-webhook.mjs +6 -6
  386. package/dist/actions/get-webhook.mjs.map +1 -1
  387. package/dist/actions/list-disputes.cjs +7 -7
  388. package/dist/actions/list-disputes.cjs.map +1 -1
  389. package/dist/actions/list-disputes.d.cts +57 -3
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +57 -3
  392. package/dist/actions/list-disputes.d.mts.map +1 -1
  393. package/dist/actions/list-disputes.mjs +7 -7
  394. package/dist/actions/list-disputes.mjs.map +1 -1
  395. package/dist/actions/list-invoices.cjs +15 -15
  396. package/dist/actions/list-invoices.cjs.map +1 -1
  397. package/dist/actions/list-invoices.d.cts +82 -3
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +82 -3
  400. package/dist/actions/list-invoices.d.mts.map +1 -1
  401. package/dist/actions/list-invoices.mjs +15 -15
  402. package/dist/actions/list-invoices.mjs.map +1 -1
  403. package/dist/actions/list-legacy-billing-plans.cjs +7 -7
  404. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  405. package/dist/actions/list-legacy-billing-plans.d.cts +83 -3
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +83 -3
  408. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  409. package/dist/actions/list-legacy-billing-plans.mjs +7 -7
  410. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  411. package/dist/actions/list-payments.cjs +20 -20
  412. package/dist/actions/list-payments.cjs.map +1 -1
  413. package/dist/actions/list-payments.d.cts +109 -3
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +109 -3
  416. package/dist/actions/list-payments.d.mts.map +1 -1
  417. package/dist/actions/list-payments.mjs +20 -20
  418. package/dist/actions/list-payments.mjs.map +1 -1
  419. package/dist/actions/list-plans.cjs +11 -11
  420. package/dist/actions/list-plans.cjs.map +1 -1
  421. package/dist/actions/list-plans.d.cts +56 -3
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +56 -3
  424. package/dist/actions/list-plans.d.mts.map +1 -1
  425. package/dist/actions/list-plans.mjs +11 -11
  426. package/dist/actions/list-plans.mjs.map +1 -1
  427. package/dist/actions/list-products.cjs +3 -3
  428. package/dist/actions/list-products.cjs.map +1 -1
  429. package/dist/actions/list-products.d.cts +30 -3
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +30 -3
  432. package/dist/actions/list-products.d.mts.map +1 -1
  433. package/dist/actions/list-products.mjs +3 -3
  434. package/dist/actions/list-products.mjs.map +1 -1
  435. package/dist/actions/list-templates.cjs +8 -8
  436. package/dist/actions/list-templates.cjs.map +1 -1
  437. package/dist/actions/list-templates.d.cts +66 -3
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +66 -3
  440. package/dist/actions/list-templates.d.mts.map +1 -1
  441. package/dist/actions/list-templates.mjs +8 -8
  442. package/dist/actions/list-templates.mjs.map +1 -1
  443. package/dist/actions/list-web-profiles.cjs +7 -7
  444. package/dist/actions/list-web-profiles.cjs.map +1 -1
  445. package/dist/actions/list-web-profiles.d.cts +35 -3
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +35 -3
  448. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  449. package/dist/actions/list-web-profiles.mjs +7 -7
  450. package/dist/actions/list-web-profiles.mjs.map +1 -1
  451. package/dist/actions/list-webhook-event-type-subscriptions.cjs +4 -4
  452. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  453. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -3
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -3
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +4 -4
  458. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  459. package/dist/actions/list-webhook-event-types.cjs +4 -4
  460. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  461. package/dist/actions/list-webhook-event-types.d.cts +12 -3
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +12 -3
  464. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  465. package/dist/actions/list-webhook-event-types.mjs +4 -4
  466. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  467. package/dist/actions/list-webhook-lookups.cjs +3 -3
  468. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  469. package/dist/actions/list-webhook-lookups.d.cts +13 -3
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +13 -3
  472. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  473. package/dist/actions/list-webhook-lookups.mjs +3 -3
  474. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  475. package/dist/actions/list-webhooks.cjs +3 -3
  476. package/dist/actions/list-webhooks.cjs.map +1 -1
  477. package/dist/actions/list-webhooks.d.cts +24 -3
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +24 -3
  480. package/dist/actions/list-webhooks.d.mts.map +1 -1
  481. package/dist/actions/list-webhooks.mjs +3 -3
  482. package/dist/actions/list-webhooks.mjs.map +1 -1
  483. package/dist/actions/patch-orders.cjs +2 -2
  484. package/dist/actions/patch-orders.cjs.map +1 -1
  485. package/dist/actions/patch-orders.d.cts +32 -3
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +32 -3
  488. package/dist/actions/patch-orders.d.mts.map +1 -1
  489. package/dist/actions/patch-orders.mjs +2 -2
  490. package/dist/actions/patch-orders.mjs.map +1 -1
  491. package/dist/actions/patch-plan.cjs +2 -2
  492. package/dist/actions/patch-plan.cjs.map +1 -1
  493. package/dist/actions/patch-plan.d.cts +30 -3
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +30 -3
  496. package/dist/actions/patch-plan.d.mts.map +1 -1
  497. package/dist/actions/patch-plan.mjs +2 -2
  498. package/dist/actions/patch-plan.mjs.map +1 -1
  499. package/dist/actions/patch-subscription.cjs +5 -5
  500. package/dist/actions/patch-subscription.cjs.map +1 -1
  501. package/dist/actions/patch-subscription.d.cts +37 -3
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +37 -3
  504. package/dist/actions/patch-subscription.d.mts.map +1 -1
  505. package/dist/actions/patch-subscription.mjs +5 -5
  506. package/dist/actions/patch-subscription.mjs.map +1 -1
  507. package/dist/actions/patch-web-profile.cjs +2 -2
  508. package/dist/actions/patch-web-profile.cjs.map +1 -1
  509. package/dist/actions/patch-web-profile.d.cts +30 -3
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +30 -3
  512. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  513. package/dist/actions/patch-web-profile.mjs +2 -2
  514. package/dist/actions/patch-web-profile.mjs.map +1 -1
  515. package/dist/actions/ping-braintree.cjs +2 -2
  516. package/dist/actions/ping-braintree.cjs.map +1 -1
  517. package/dist/actions/ping-braintree.d.cts +6 -3
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +6 -3
  520. package/dist/actions/ping-braintree.d.mts.map +1 -1
  521. package/dist/actions/ping-braintree.mjs +2 -2
  522. package/dist/actions/ping-braintree.mjs.map +1 -1
  523. package/dist/actions/query-braintree-report.cjs +5 -5
  524. package/dist/actions/query-braintree-report.cjs.map +1 -1
  525. package/dist/actions/query-braintree-report.d.cts +30 -3
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +30 -3
  528. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  529. package/dist/actions/query-braintree-report.mjs +5 -5
  530. package/dist/actions/query-braintree-report.mjs.map +1 -1
  531. package/dist/actions/retrieve-payment-resource.cjs +12 -12
  532. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  533. package/dist/actions/retrieve-payment-resource.d.cts +60 -3
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +60 -3
  536. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  537. package/dist/actions/retrieve-payment-resource.mjs +12 -12
  538. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  539. package/dist/actions/search-invoices.cjs +12 -12
  540. package/dist/actions/search-invoices.cjs.map +1 -1
  541. package/dist/actions/search-invoices.d.cts +156 -3
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +156 -3
  544. package/dist/actions/search-invoices.d.mts.map +1 -1
  545. package/dist/actions/search-invoices.mjs +12 -12
  546. package/dist/actions/search-invoices.mjs.map +1 -1
  547. package/dist/actions/send-invoice.cjs +4 -4
  548. package/dist/actions/send-invoice.cjs.map +1 -1
  549. package/dist/actions/send-invoice.d.cts +30 -3
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +30 -3
  552. package/dist/actions/send-invoice.d.mts.map +1 -1
  553. package/dist/actions/send-invoice.mjs +4 -4
  554. package/dist/actions/send-invoice.mjs.map +1 -1
  555. package/dist/actions/simulate-webhook-event.cjs +7 -7
  556. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  557. package/dist/actions/simulate-webhook-event.d.cts +42 -3
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +42 -3
  560. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  561. package/dist/actions/simulate-webhook-event.mjs +7 -7
  562. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  563. package/dist/actions/update-dispute.cjs +5 -5
  564. package/dist/actions/update-dispute.cjs.map +1 -1
  565. package/dist/actions/update-dispute.d.cts +40 -3
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +40 -3
  568. package/dist/actions/update-dispute.d.mts.map +1 -1
  569. package/dist/actions/update-dispute.mjs +5 -5
  570. package/dist/actions/update-dispute.mjs.map +1 -1
  571. package/dist/actions/update-invoice.cjs +49 -49
  572. package/dist/actions/update-invoice.cjs.map +1 -1
  573. package/dist/actions/update-invoice.d.cts +544 -3
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +544 -3
  576. package/dist/actions/update-invoice.d.mts.map +1 -1
  577. package/dist/actions/update-invoice.mjs +49 -49
  578. package/dist/actions/update-invoice.mjs.map +1 -1
  579. package/dist/actions/update-pay-pal-product.cjs +2 -2
  580. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  581. package/dist/actions/update-pay-pal-product.d.cts +30 -3
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +30 -3
  584. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  585. package/dist/actions/update-pay-pal-product.mjs +2 -2
  586. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  587. package/dist/actions/update-pay-pal-webhook.cjs +7 -7
  588. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  589. package/dist/actions/update-pay-pal-webhook.d.cts +41 -3
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +41 -3
  592. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  593. package/dist/actions/update-pay-pal-webhook.mjs +7 -7
  594. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  595. package/dist/actions/update-templates.cjs +39 -39
  596. package/dist/actions/update-templates.cjs.map +1 -1
  597. package/dist/actions/update-templates.d.cts +636 -3
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +636 -3
  600. package/dist/actions/update-templates.d.mts.map +1 -1
  601. package/dist/actions/update-templates.mjs +39 -39
  602. package/dist/actions/update-templates.mjs.map +1 -1
  603. package/dist/actions/update-web-profile.cjs +4 -4
  604. package/dist/actions/update-web-profile.cjs.map +1 -1
  605. package/dist/actions/update-web-profile.d.cts +59 -3
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +59 -3
  608. package/dist/actions/update-web-profile.d.mts.map +1 -1
  609. package/dist/actions/update-web-profile.mjs +4 -4
  610. package/dist/actions/update-web-profile.mjs.map +1 -1
  611. package/dist/actions/verify-payment-method.cjs +5 -5
  612. package/dist/actions/verify-payment-method.cjs.map +1 -1
  613. package/dist/actions/verify-payment-method.d.cts +25 -3
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +25 -3
  616. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  617. package/dist/actions/verify-payment-method.mjs +5 -5
  618. package/dist/actions/verify-payment-method.mjs.map +1 -1
  619. package/dist/actions/verify-webhook-signature.cjs +1 -1
  620. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  621. package/dist/actions/verify-webhook-signature.d.cts +52 -3
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +52 -3
  624. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  625. package/dist/actions/verify-webhook-signature.mjs +1 -1
  626. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  627. package/package.json +2 -2
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-orders.d.ts
4
- declare const PaypalPatchOrdersInput: z.ZodTypeAny;
5
- declare const PaypalPatchOrdersOutput: z.ZodTypeAny;
6
- declare const paypalPatchOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchOrdersInput: z.ZodObject<{
5
+ 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.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchOrdersOutput: z.ZodObject<{
21
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
23
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>;
26
+ declare const paypalPatchOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ id: string;
28
+ operations: {
29
+ [x: string]: unknown;
30
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
31
+ from?: string | undefined;
32
+ path?: string | undefined;
33
+ value?: string | number | boolean | Record<string, unknown> | unknown[] | undefined;
34
+ }[];
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { paypalPatchOrders };
9
38
  //# sourceMappingURL=patch-orders.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-orders.d.cts","names":[],"sources":["../../src/actions/patch-orders.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAQ6C;AAAA,cACvE,uBAAA,EAAyB,CAAA,CAAE,UAKgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-orders.d.cts","names":[],"sources":["../../src/actions/patch-orders.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAStB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAOvB,iBAAA,gCAAiB,wBAAA;;;;;;;wCAM5B,MAAA;EAAA;AAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-orders.d.ts
4
- declare const PaypalPatchOrdersInput: z.ZodTypeAny;
5
- declare const PaypalPatchOrdersOutput: z.ZodTypeAny;
6
- declare const paypalPatchOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchOrdersInput: z.ZodObject<{
5
+ 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.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchOrdersOutput: z.ZodObject<{
21
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
23
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>;
26
+ declare const paypalPatchOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ id: string;
28
+ operations: {
29
+ [x: string]: unknown;
30
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
31
+ from?: string | undefined;
32
+ path?: string | undefined;
33
+ value?: string | number | boolean | Record<string, unknown> | unknown[] | undefined;
34
+ }[];
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { paypalPatchOrders };
9
38
  //# sourceMappingURL=patch-orders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-orders.d.mts","names":[],"sources":["../../src/actions/patch-orders.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAQ6C;AAAA,cACvE,uBAAA,EAAyB,CAAA,CAAE,UAKgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-orders.d.mts","names":[],"sources":["../../src/actions/patch-orders.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAStB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAOvB,iBAAA,gCAAiB,wBAAA;;;;;;;wCAM5B,MAAA;EAAA;AAAA"}
@@ -25,14 +25,14 @@ const paypalPatchOrders = action("PAYPAL_PATCH_ORDERS", {
25
25
  z.array(z.unknown()),
26
26
  z.record(z.string(), z.unknown())
27
27
  ]).optional()
28
- }).describe("A single JSON Patch operation to apply to the checkout order.")).describe("An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
28
+ }).passthrough().describe("A single JSON Patch operation to apply to the checkout order.")).describe("An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
29
29
  }).describe("Request to partially update a PayPal checkout order using JSON Patch."),
30
30
  output: z.object({
31
31
  message: z.string().describe("A message describing the result of the update.").nullable().optional(),
32
32
  success: z.boolean().default(true).describe("Indicates whether the order update was successful.").nullable().optional(),
33
33
  debug_id: z.string().describe("The PayPal internal ID used for correlation purposes.").nullable().optional(),
34
34
  order_id: z.string().describe("The ID of the order that was updated.").nullable().optional()
35
- }).describe("Response from partially updating a PayPal checkout order.")
35
+ }).passthrough().describe("Response from partially updating a PayPal checkout order.")
36
36
  });
37
37
  //#endregion
38
38
  export { paypalPatchOrders };
@@ -1 +1 @@
1
- {"version":3,"file":"patch-orders.mjs","names":[],"sources":["../../src/actions/patch-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchOrdersInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the checkout order to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the order (e.g., '/purchase_units/0/description'). Use forward slash as separator per RFC 6901.\").optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply to the checkout order.\")).describe(\"An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal checkout order using JSON Patch.\");\nexport const PaypalPatchOrdersOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A message describing the result of the update.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the order update was successful.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID used for correlation purposes.\").nullable().optional(),\n order_id: z.string().describe(\"The ID of the order that was updated.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal checkout order.\");\n\nexport const paypalPatchOrders = action(\"PAYPAL_PATCH_ORDERS\", {\n slug: \"paypal-patch-orders\",\n name: \"Update checkout order (partial)\",\n description: \"Partially updates a PayPal checkout order using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of an existing checkout order without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the checkout order. Common use cases include updating the order description, custom fields, or other patchable properties. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchOrdersInput,\n output: PaypalPatchOrdersOutput,\n});\n"],"mappings":";;AAoBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACjE,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;GACtL,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;IAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;IAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAC,CAAC,CAAC,CAAC,SAAS;EAC5I,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,CAAC,SAAS,4IAA4I;CACnO,CAAC,CAAC,CAAC,SAAS,uEAYH;CACP,QAZmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"patch-orders.mjs","names":[],"sources":["../../src/actions/patch-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchOrdersInput = z.object({\n id: z.string().describe(\"The ID of the checkout order to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the order (e.g., '/purchase_units/0/description'). Use forward slash as separator per RFC 6901.\").optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).passthrough().describe(\"A single JSON Patch operation to apply to the checkout order.\")).describe(\"An array of JSON Patch operations to apply to the order. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal checkout order using JSON Patch.\");\nexport const PaypalPatchOrdersOutput = z.object({\n message: z.string().describe(\"A message describing the result of the update.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the order update was successful.\").nullable().optional(),\n debug_id: z.string().describe(\"The PayPal internal ID used for correlation purposes.\").nullable().optional(),\n order_id: z.string().describe(\"The ID of the order that was updated.\").nullable().optional(),\n}).passthrough().describe(\"Response from partially updating a PayPal checkout order.\");\n\nexport const paypalPatchOrders = action(\"PAYPAL_PATCH_ORDERS\", {\n slug: \"paypal-patch-orders\",\n name: \"Update checkout order (partial)\",\n description: \"Partially updates a PayPal checkout order using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of an existing checkout order without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the checkout order. Common use cases include updating the order description, custom fields, or other patchable properties. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchOrdersInput,\n output: PaypalPatchOrdersOutput,\n});\n"],"mappings":";;AAoBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACjE,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;GACtL,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;IAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;IAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAC,CAAC,CAAC,CAAC,SAAS;EAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,CAAC,SAAS,4IAA4I;CACjP,CAAC,CAAC,CAAC,SAAS,uEAYH;CACP,QAZqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
@@ -15,12 +15,12 @@ const PaypalPatchPlanInput = zod.z.object({
15
15
  from: zod.z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
16
16
  path: zod.z.string().describe("The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901."),
17
17
  value: zod.z.unknown().describe("The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.").optional()
18
- }).describe("A single JSON Patch operation to apply to the billing plan.")).describe("An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
18
+ }).passthrough().describe("A single JSON Patch operation to apply to the billing plan.")).describe("An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
19
19
  }).describe("Request to partially update a PayPal billing plan using JSON Patch.");
20
20
  const PaypalPatchPlanOutput = zod.z.object({
21
21
  plan_id: zod.z.string().describe("The ID of the billing plan that was updated.").nullable().optional(),
22
22
  success: zod.z.boolean().default(true).describe("Indicates whether the billing plan update was successful.").nullable().optional()
23
- }).describe("Response from partially updating a PayPal billing plan.");
23
+ }).passthrough().describe("Response from partially updating a PayPal billing plan.");
24
24
  const paypalPatchPlan = require_action.action("PAYPAL_PATCH_PLAN", {
25
25
  slug: "paypal-patch-plan",
26
26
  name: "Update billing plan (partial)",
@@ -1 +1 @@
1
- {"version":3,"file":"patch-plan.cjs","names":["z","action"],"sources":["../../src/actions/patch-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchPlanInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique billing plan ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901.\"),\n value: z.unknown().describe(\"The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.\").optional(),\n}).describe(\"A single JSON Patch operation to apply to the billing plan.\")).describe(\"An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal billing plan using JSON Patch.\");\nexport const PaypalPatchPlanOutput: z.ZodTypeAny = z.object({\n plan_id: z.string().describe(\"The ID of the billing plan that was updated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the billing plan update was successful.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal billing plan.\");\n\nexport const paypalPatchPlan = action(\"PAYPAL_PATCH_PLAN\", {\n slug: \"paypal-patch-plan\",\n name: \"Update billing plan (partial)\",\n description: \"Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchPlanInput,\n output: PaypalPatchPlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC1K,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,mJAAmJ;AACxO,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"patch-plan.cjs","names":["z","action"],"sources":["../../src/actions/patch-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchPlanInput = z.object({\n id: z.string().describe(\"The unique billing plan ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901.\"),\n value: z.unknown().describe(\"The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.\").optional(),\n}).passthrough().describe(\"A single JSON Patch operation to apply to the billing plan.\")).describe(\"An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal billing plan using JSON Patch.\");\nexport const PaypalPatchPlanOutput = z.object({\n plan_id: z.string().describe(\"The ID of the billing plan that was updated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the billing plan update was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response from partially updating a PayPal billing plan.\");\n\nexport const paypalPatchPlan = action(\"PAYPAL_PATCH_PLAN\", {\n slug: \"paypal-patch-plan\",\n name: \"Update billing plan (partial)\",\n description: \"Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchPlanInput,\n output: PaypalPatchPlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC1K,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,mJAAmJ;AACtP,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-plan.d.ts
4
- declare const PaypalPatchPlanInput: z.ZodTypeAny;
5
- declare const PaypalPatchPlanOutput: z.ZodTypeAny;
6
- declare const paypalPatchPlan: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchPlanInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ patches: 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.ZodString;
17
+ value: z.ZodOptional<z.ZodUnknown>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchPlanOutput: z.ZodObject<{
21
+ plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
23
+ }, z.core.$loose>;
24
+ declare const paypalPatchPlan: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ id: string;
26
+ patches: {
27
+ [x: string]: unknown;
28
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
29
+ path: string;
30
+ from?: string | undefined;
31
+ value?: unknown;
32
+ }[];
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { paypalPatchPlan };
9
36
  //# sourceMappingURL=patch-plan.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-plan.d.cts","names":[],"sources":["../../src/actions/patch-plan.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAQ6C;AAAA,cACrE,qBAAA,EAAuB,CAAA,CAAE,UAGgC;AAAA,cAEzD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-plan.d.cts","names":[],"sources":["../../src/actions/patch-plan.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cASpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-plan.d.ts
4
- declare const PaypalPatchPlanInput: z.ZodTypeAny;
5
- declare const PaypalPatchPlanOutput: z.ZodTypeAny;
6
- declare const paypalPatchPlan: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchPlanInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ patches: 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.ZodString;
17
+ value: z.ZodOptional<z.ZodUnknown>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchPlanOutput: z.ZodObject<{
21
+ plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
23
+ }, z.core.$loose>;
24
+ declare const paypalPatchPlan: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ id: string;
26
+ patches: {
27
+ [x: string]: unknown;
28
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
29
+ path: string;
30
+ from?: string | undefined;
31
+ value?: unknown;
32
+ }[];
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { paypalPatchPlan };
9
36
  //# sourceMappingURL=patch-plan.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-plan.d.mts","names":[],"sources":["../../src/actions/patch-plan.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAQ6C;AAAA,cACrE,qBAAA,EAAuB,CAAA,CAAE,UAGgC;AAAA,cAEzD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-plan.d.mts","names":[],"sources":["../../src/actions/patch-plan.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cASpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -18,12 +18,12 @@ const paypalPatchPlan = action("PAYPAL_PATCH_PLAN", {
18
18
  from: z.string().describe("The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.").optional(),
19
19
  path: z.string().describe("The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901."),
20
20
  value: z.unknown().describe("The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.").optional()
21
- }).describe("A single JSON Patch operation to apply to the billing plan.")).describe("An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
21
+ }).passthrough().describe("A single JSON Patch operation to apply to the billing plan.")).describe("An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
22
22
  }).describe("Request to partially update a PayPal billing plan using JSON Patch."),
23
23
  output: z.object({
24
24
  plan_id: z.string().describe("The ID of the billing plan that was updated.").nullable().optional(),
25
25
  success: z.boolean().default(true).describe("Indicates whether the billing plan update was successful.").nullable().optional()
26
- }).describe("Response from partially updating a PayPal billing plan.")
26
+ }).passthrough().describe("Response from partially updating a PayPal billing plan.")
27
27
  });
28
28
  //#endregion
29
29
  export { paypalPatchPlan };
@@ -1 +1 @@
1
- {"version":3,"file":"patch-plan.mjs","names":[],"sources":["../../src/actions/patch-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchPlanInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique billing plan ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901.\"),\n value: z.unknown().describe(\"The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.\").optional(),\n}).describe(\"A single JSON Patch operation to apply to the billing plan.\")).describe(\"An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal billing plan using JSON Patch.\");\nexport const PaypalPatchPlanOutput: z.ZodTypeAny = z.object({\n plan_id: z.string().describe(\"The ID of the billing plan that was updated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the billing plan update was successful.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal billing plan.\");\n\nexport const paypalPatchPlan = action(\"PAYPAL_PATCH_PLAN\", {\n slug: \"paypal-patch-plan\",\n name: \"Update billing plan (partial)\",\n description: \"Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchPlanInput,\n output: PaypalPatchPlanOutput,\n});\n"],"mappings":";;AAkBA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACrD,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;GAC1K,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAC1J,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACxO,CAAC,CAAC,CAAC,SAAS,qEAUH;CACP,QAViD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"patch-plan.mjs","names":[],"sources":["../../src/actions/patch-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchPlanInput = z.object({\n id: z.string().describe(\"The unique billing plan ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the billing plan (e.g., '/description', '/name'). Use forward slash as separator per RFC 6901.\"),\n value: z.unknown().describe(\"The value to apply for 'add', 'replace', or 'test' operations. The 'remove' operation does not require a value.\").optional(),\n}).passthrough().describe(\"A single JSON Patch operation to apply to the billing plan.\")).describe(\"An array of JSON Patch operations to apply to the billing plan. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal billing plan using JSON Patch.\");\nexport const PaypalPatchPlanOutput = z.object({\n plan_id: z.string().describe(\"The ID of the billing plan that was updated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the billing plan update was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response from partially updating a PayPal billing plan.\");\n\nexport const paypalPatchPlan = action(\"PAYPAL_PATCH_PLAN\", {\n slug: \"paypal-patch-plan\",\n name: \"Update billing plan (partial)\",\n description: \"Partially updates a PayPal billing plan using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a billing plan without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the billing plan. Common use cases include updating the plan name, description, payment definitions, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchPlanInput,\n output: PaypalPatchPlanOutput,\n});\n"],"mappings":";;AAkBA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACrD,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,IAAI,EAAE,KAAK;IAAC;IAAO;IAAU;IAAW;IAAQ;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;GACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;GACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;GAC1K,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACtP,CAAC,CAAC,CAAC,SAAS,qEAUH;CACP,QAVmC,EAAE,OAAO;EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -22,20 +22,20 @@ const PaypalPatchSubscriptionInput = zod.z.object({
22
22
  zod.z.array(zod.z.unknown()),
23
23
  zod.z.record(zod.z.string(), zod.z.unknown())
24
24
  ]).optional()
25
- }).describe("A single JSON Patch operation to apply partial updates to the subscription.")).describe("Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.")
25
+ }).passthrough().describe("A single JSON Patch operation to apply partial updates to the subscription.")).describe("Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.")
26
26
  }).describe("Request to update a PayPal subscription using JSON Patch operations.");
27
27
  const PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema = zod.z.object({
28
28
  field: zod.z.string().describe("Field that caused the error").nullable().optional(),
29
29
  issue: zod.z.string().describe("Issue description").nullable().optional(),
30
30
  description: zod.z.string().describe("Error description").nullable().optional()
31
- }).describe("Error detail structure for error responses.");
31
+ }).passthrough().describe("Error detail structure for error responses.");
32
32
  const PaypalPatchSubscriptionOutput = zod.z.object({
33
33
  name: zod.z.string().describe("Error name if the operation failed").nullable().optional(),
34
34
  details: zod.z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).describe("Error details if the operation failed").nullable().optional(),
35
- message: zod.z.string().describe("Status message or error description"),
36
- success: zod.z.boolean().describe("Whether the patch operation succeeded"),
35
+ message: zod.z.string().describe("Status message or error description").nullable(),
36
+ success: zod.z.boolean().describe("Whether the patch operation succeeded").nullable(),
37
37
  debug_id: zod.z.string().describe("PayPal debug ID for troubleshooting").nullable().optional()
38
- }).describe("Response model for subscription patch operations.\n\nOn success (HTTP 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.");
38
+ }).passthrough().describe("Response model for subscription patch operations.\n\nOn success (HTTP 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.");
39
39
  const paypalPatchSubscription = require_action.action("PAYPAL_PATCH_SUBSCRIPTION", {
40
40
  slug: "paypal-patch-subscription",
41
41
  name: "Update Subscription",
@@ -1 +1 @@
1
- {"version":3,"file":"patch-subscription.cjs","names":["z","action"],"sources":["../../src/actions/patch-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchSubscriptionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the subscription 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.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to the subscription.\")).describe(\"Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal subscription using JSON Patch operations.\");\nconst PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema: 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 description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for error responses.\");\nexport const PaypalPatchSubscriptionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).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}).describe(\"Response model for subscription patch operations.\\n\\nOn success (HTTP 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalPatchSubscription = action(\"PAYPAL_PATCH_SUBSCRIPTION\", {\n slug: \"paypal-patch-subscription\",\n name: \"Update Subscription\",\n description: \"Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.\",\n input: PaypalPatchSubscriptionInput,\n output: PaypalPatchSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,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,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,CAAC,SAAS,kGAAkG;AACvM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uLAAuL;AAEnM,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"patch-subscription.cjs","names":["z","action"],"sources":["../../src/actions/patch-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchSubscriptionInput = z.object({\n id: z.string().describe(\"The ID of the subscription 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.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).passthrough().describe(\"A single JSON Patch operation to apply partial updates to the subscription.\")).describe(\"Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal subscription using JSON Patch operations.\");\nconst PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).passthrough().describe(\"Error detail structure for error responses.\");\nexport const PaypalPatchSubscriptionOutput = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).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}).passthrough().describe(\"Response model for subscription patch operations.\\n\\nOn success (HTTP 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalPatchSubscription = action(\"PAYPAL_PATCH_SUBSCRIPTION\", {\n slug: \"paypal-patch-subscription\",\n name: \"Update Subscription\",\n description: \"Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.\",\n input: PaypalPatchSubscriptionInput,\n output: PaypalPatchSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,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,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,CAAC,SAAS,kGAAkG;AACrN,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uLAAuL;AAEjN,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-subscription.d.ts
4
- declare const PaypalPatchSubscriptionInput: z.ZodTypeAny;
5
- declare const PaypalPatchSubscriptionOutput: z.ZodTypeAny;
6
- declare const paypalPatchSubscription: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchSubscriptionInput: z.ZodObject<{
5
+ 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.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchSubscriptionOutput: 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
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>>>;
27
+ message: z.ZodNullable<z.ZodString>;
28
+ success: z.ZodNullable<z.ZodBoolean>;
29
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>;
31
+ declare const paypalPatchSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ id: string;
33
+ operations: {
34
+ [x: string]: unknown;
35
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
36
+ from?: string | undefined;
37
+ path?: string | undefined;
38
+ value?: string | number | boolean | Record<string, unknown> | unknown[] | undefined;
39
+ }[];
40
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
41
  //#endregion
8
42
  export { paypalPatchSubscription };
9
43
  //# sourceMappingURL=patch-subscription.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-subscription.d.cts","names":[],"sources":["../../src/actions/patch-subscription.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQsC;AAAA,cAMtE,6BAAA,EAA+B,CAAA,CAAE,UAMsJ;AAAA,cAEvL,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-subscription.d.cts","names":[],"sources":["../../src/actions/patch-subscription.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA;;;;;;;wCAMlC,MAAA;EAAA;AAAA"}
@@ -1,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-subscription.d.ts
4
- declare const PaypalPatchSubscriptionInput: z.ZodTypeAny;
5
- declare const PaypalPatchSubscriptionOutput: z.ZodTypeAny;
6
- declare const paypalPatchSubscription: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchSubscriptionInput: z.ZodObject<{
5
+ 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.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchSubscriptionOutput: 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
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>>>;
27
+ message: z.ZodNullable<z.ZodString>;
28
+ success: z.ZodNullable<z.ZodBoolean>;
29
+ debug_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>;
31
+ declare const paypalPatchSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ id: string;
33
+ operations: {
34
+ [x: string]: unknown;
35
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
36
+ from?: string | undefined;
37
+ path?: string | undefined;
38
+ value?: string | number | boolean | Record<string, unknown> | unknown[] | undefined;
39
+ }[];
40
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
41
  //#endregion
8
42
  export { paypalPatchSubscription };
9
43
  //# sourceMappingURL=patch-subscription.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-subscription.d.mts","names":[],"sources":["../../src/actions/patch-subscription.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQsC;AAAA,cAMtE,6BAAA,EAA+B,CAAA,CAAE,UAMsJ;AAAA,cAEvL,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-subscription.d.mts","names":[],"sources":["../../src/actions/patch-subscription.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA;;;;;;;wCAMlC,MAAA;EAAA;AAAA"}
@@ -22,13 +22,13 @@ const PaypalPatchSubscriptionInput = z.object({
22
22
  z.array(z.unknown()),
23
23
  z.record(z.string(), z.unknown())
24
24
  ]).optional()
25
- }).describe("A single JSON Patch operation to apply partial updates to the subscription.")).describe("Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.")
25
+ }).passthrough().describe("A single JSON Patch operation to apply partial updates to the subscription.")).describe("Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.")
26
26
  }).describe("Request to update a PayPal subscription using JSON Patch operations.");
27
27
  const PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema = z.object({
28
28
  field: z.string().describe("Field that caused the error").nullable().optional(),
29
29
  issue: z.string().describe("Issue description").nullable().optional(),
30
30
  description: z.string().describe("Error description").nullable().optional()
31
- }).describe("Error detail structure for error responses.");
31
+ }).passthrough().describe("Error detail structure for error responses.");
32
32
  const paypalPatchSubscription = action("PAYPAL_PATCH_SUBSCRIPTION", {
33
33
  slug: "paypal-patch-subscription",
34
34
  name: "Update Subscription",
@@ -37,10 +37,10 @@ const paypalPatchSubscription = action("PAYPAL_PATCH_SUBSCRIPTION", {
37
37
  output: z.object({
38
38
  name: z.string().describe("Error name if the operation failed").nullable().optional(),
39
39
  details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).describe("Error details if the operation failed").nullable().optional(),
40
- message: z.string().describe("Status message or error description"),
41
- success: z.boolean().describe("Whether the patch operation succeeded"),
40
+ message: z.string().describe("Status message or error description").nullable(),
41
+ success: z.boolean().describe("Whether the patch operation succeeded").nullable(),
42
42
  debug_id: z.string().describe("PayPal debug ID for troubleshooting").nullable().optional()
43
- }).describe("Response model for subscription patch operations.\n\nOn success (HTTP 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.")
43
+ }).passthrough().describe("Response model for subscription patch operations.\n\nOn success (HTTP 204), returns success=True with a confirmation message.\nOn failure, returns the error details from PayPal API.")
44
44
  });
45
45
  //#endregion
46
46
  export { paypalPatchSubscription };
@@ -1 +1 @@
1
- {"version":3,"file":"patch-subscription.mjs","names":[],"sources":["../../src/actions/patch-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchSubscriptionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the subscription 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.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply partial updates to the subscription.\")).describe(\"Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal subscription using JSON Patch operations.\");\nconst PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema: 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 description: z.string().describe(\"Error description\").nullable().optional(),\n}).describe(\"Error detail structure for error responses.\");\nexport const PaypalPatchSubscriptionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).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}).describe(\"Response model for subscription patch operations.\\n\\nOn success (HTTP 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalPatchSubscription = action(\"PAYPAL_PATCH_SUBSCRIPTION\", {\n slug: \"paypal-patch-subscription\",\n name: \"Update Subscription\",\n description: \"Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.\",\n input: PaypalPatchSubscriptionInput,\n output: PaypalPatchSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,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,SAAS;EAC1I,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,CAAC,SAAS,kGAAkG;AACvM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6DAA2E,EAAE,OAAO;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AASzD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,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;CAC3F,CAAC,CAAC,CAAC,SAAS,uLAOF;AACV,CAAC"}
1
+ {"version":3,"file":"patch-subscription.mjs","names":[],"sources":["../../src/actions/patch-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchSubscriptionInput = z.object({\n id: z.string().describe(\"The ID of the subscription 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.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).passthrough().describe(\"A single JSON Patch operation to apply partial updates to the subscription.\")).describe(\"Array of JSON Patch operations to apply to the subscription. Each operation is applied in order.\"),\n}).describe(\"Request to update a PayPal subscription using JSON Patch operations.\");\nconst PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema = z.object({\n field: z.string().describe(\"Field that caused the error\").nullable().optional(),\n issue: z.string().describe(\"Issue description\").nullable().optional(),\n description: z.string().describe(\"Error description\").nullable().optional(),\n}).passthrough().describe(\"Error detail structure for error responses.\");\nexport const PaypalPatchSubscriptionOutput = z.object({\n name: z.string().describe(\"Error name if the operation failed\").nullable().optional(),\n details: z.array(PaypalPatchSubscription_PatchSubscriptionErrorDetailSchema).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}).passthrough().describe(\"Response model for subscription patch operations.\\n\\nOn success (HTTP 204), returns success=True with a confirmation message.\\nOn failure, returns the error details from PayPal API.\");\n\nexport const paypalPatchSubscription = action(\"PAYPAL_PATCH_SUBSCRIPTION\", {\n slug: \"paypal-patch-subscription\",\n name: \"Update Subscription\",\n description: \"Update a PayPal subscription using JSON Patch operations. Use when you need to modify specific fields of an existing subscription such as custom_id, billing_token, shipping_address, or other patchable properties. This action applies partial updates to the subscription using RFC 6902 JSON Patch format. Multiple operations can be provided and will be applied in order.\",\n input: PaypalPatchSubscriptionInput,\n output: PaypalPatchSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,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,SAAS;EAC1I,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,CAAC,SAAS,kGAAkG;AACrN,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6DAA6D,EAAE,OAAO;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AASvE,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uLAOhB;AACV,CAAC"}
@@ -22,12 +22,12 @@ const PaypalPatchWebProfileInput = zod.z.object({
22
22
  zod.z.array(zod.z.unknown()),
23
23
  zod.z.record(zod.z.string(), zod.z.unknown())
24
24
  ]).optional()
25
- }).describe("A single JSON Patch operation to apply to the web experience profile.")).describe("An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
25
+ }).passthrough().describe("A single JSON Patch operation to apply to the web experience profile.")).describe("An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.")
26
26
  }).describe("Request to partially update a PayPal web experience profile using JSON Patch.");
27
27
  const PaypalPatchWebProfileOutput = zod.z.object({
28
28
  success: zod.z.boolean().default(true).describe("Indicates whether the web experience profile update was successful.").nullable().optional(),
29
29
  profile_id: zod.z.string().describe("The ID of the web experience profile that was updated.").nullable().optional()
30
- }).describe("Response from partially updating a PayPal web experience profile.");
30
+ }).passthrough().describe("Response from partially updating a PayPal web experience profile.");
31
31
  const paypalPatchWebProfile = require_action.action("PAYPAL_PATCH_WEB_PROFILE", {
32
32
  slug: "paypal-patch-web-profile",
33
33
  name: "Update web experience profile (partial)",
@@ -1 +1 @@
1
- {"version":3,"file":"patch-web-profile.cjs","names":["z","action"],"sources":["../../src/actions/patch-web-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchWebProfileInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique web experience profile ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the web experience profile (e.g., '/name', '/presentation/logo_url'). Use forward slash as separator per RFC 6901.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single JSON Patch operation to apply to the web experience profile.\")).describe(\"An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal web experience profile using JSON Patch.\");\nexport const PaypalPatchWebProfileOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the web experience profile update was successful.\").nullable().optional(),\n profile_id: z.string().describe(\"The ID of the web experience profile that was updated.\").nullable().optional(),\n}).describe(\"Response from partially updating a PayPal web experience profile.\");\n\nexport const paypalPatchWebProfile = action(\"PAYPAL_PATCH_WEB_PROFILE\", {\n slug: \"paypal-patch-web-profile\",\n name: \"Update web experience profile (partial)\",\n description: \"Partially updates a PayPal web experience profile using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a web experience profile without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the web experience profile. Common use cases include updating the profile name, presentation settings, flow configuration, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchWebProfileInput,\n output: PaypalPatchWebProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;EAC9L,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,CAAC,SAAS,6JAA6J;AAC5P,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"patch-web-profile.cjs","names":["z","action"],"sources":["../../src/actions/patch-web-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalPatchWebProfileInput = z.object({\n id: z.string().describe(\"The unique web experience profile ID.\"),\n patches: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\", \"move\", \"copy\", \"test\"]).describe(\"The operation to perform. Valid values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.\"),\n from: z.string().describe(\"The JSON Pointer path to copy or move the value from. Required for 'move' and 'copy' operations.\").optional(),\n path: z.string().describe(\"The JSON Pointer path to the target location in the web experience profile (e.g., '/name', '/presentation/logo_url'). Use forward slash as separator per RFC 6901.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).optional(),\n}).passthrough().describe(\"A single JSON Patch operation to apply to the web experience profile.\")).describe(\"An array of JSON Patch operations to apply to the web experience profile. Each operation follows RFC 6902 format with 'op', 'path', and optionally 'value'.\"),\n}).describe(\"Request to partially update a PayPal web experience profile using JSON Patch.\");\nexport const PaypalPatchWebProfileOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the web experience profile update was successful.\").nullable().optional(),\n profile_id: z.string().describe(\"The ID of the web experience profile that was updated.\").nullable().optional(),\n}).passthrough().describe(\"Response from partially updating a PayPal web experience profile.\");\n\nexport const paypalPatchWebProfile = action(\"PAYPAL_PATCH_WEB_PROFILE\", {\n slug: \"paypal-patch-web-profile\",\n name: \"Update web experience profile (partial)\",\n description: \"Partially updates a PayPal web experience profile using JSON Patch (RFC 6902) operations. Use this action when you need to update specific fields of a web experience profile without replacing the entire resource. This action accepts an array of patch operations (add, remove, replace, move, copy, test) and applies them to the web experience profile. Common use cases include updating the profile name, presentation settings, flow configuration, or other fields. A successful update returns HTTP 204 No Content with no JSON response body. This action is idempotent - applying the same patch multiple times produces the same result.\",\n input: PaypalPatchWebProfileInput,\n output: PaypalPatchWebProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;GAAW;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;EAC9L,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,CAAC,SAAS,6JAA6J;AAC1Q,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-web-profile.d.ts
4
- declare const PaypalPatchWebProfileInput: z.ZodTypeAny;
5
- declare const PaypalPatchWebProfileOutput: z.ZodTypeAny;
6
- declare const paypalPatchWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalPatchWebProfileInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ patches: 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.ZodString;
17
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$strip>;
20
+ declare const PaypalPatchWebProfileOutput: z.ZodObject<{
21
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
22
+ profile_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>;
24
+ declare const paypalPatchWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ id: string;
26
+ patches: {
27
+ [x: string]: unknown;
28
+ op: "replace" | "add" | "remove" | "move" | "copy" | "test";
29
+ path: string;
30
+ from?: string | undefined;
31
+ value?: string | number | boolean | Record<string, unknown> | unknown[] | undefined;
32
+ }[];
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { paypalPatchWebProfile };
9
36
  //# sourceMappingURL=patch-web-profile.d.cts.map