@keystrokehq/paypal 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (637) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs +1 -0
  4. package/dist/actions/activate-plan.cjs.map +1 -1
  5. package/dist/actions/activate-plan.d.cts +3 -15
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +3 -15
  8. package/dist/actions/activate-plan.d.mts.map +1 -1
  9. package/dist/actions/activate-plan.mjs +1 -0
  10. package/dist/actions/activate-plan.mjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.cjs +1 -0
  12. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.cts +3 -33
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +3 -33
  16. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  17. package/dist/actions/add-batch-trackers.mjs +1 -0
  18. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  19. package/dist/actions/authorize-order.cjs +1 -0
  20. package/dist/actions/authorize-order.cjs.map +1 -1
  21. package/dist/actions/authorize-order.d.cts +5 -25
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +5 -25
  24. package/dist/actions/authorize-order.d.mts.map +1 -1
  25. package/dist/actions/authorize-order.mjs +1 -0
  26. package/dist/actions/authorize-order.mjs.map +1 -1
  27. package/dist/actions/cancel-invoice.cjs +1 -0
  28. package/dist/actions/cancel-invoice.cjs.map +1 -1
  29. package/dist/actions/cancel-invoice.d.cts +3 -20
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +3 -20
  32. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  33. package/dist/actions/cancel-invoice.mjs +1 -0
  34. package/dist/actions/cancel-invoice.mjs.map +1 -1
  35. package/dist/actions/cancel-reminders.cjs +1 -0
  36. package/dist/actions/cancel-reminders.cjs.map +1 -1
  37. package/dist/actions/cancel-reminders.d.cts +3 -15
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +3 -15
  40. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  41. package/dist/actions/cancel-reminders.mjs +1 -0
  42. package/dist/actions/cancel-reminders.mjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.cjs +1 -0
  44. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.cts +5 -23
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +5 -23
  48. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  49. package/dist/actions/capture-subscription-payment.mjs +1 -0
  50. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  51. package/dist/actions/charge-payment-method.cjs +1 -0
  52. package/dist/actions/charge-payment-method.cjs.map +1 -1
  53. package/dist/actions/charge-payment-method.d.cts +3 -55
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +3 -55
  56. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  57. package/dist/actions/charge-payment-method.mjs +1 -0
  58. package/dist/actions/charge-payment-method.mjs.map +1 -1
  59. package/dist/actions/create-invoice.cjs +1 -0
  60. package/dist/actions/create-invoice.cjs.map +1 -1
  61. package/dist/actions/create-invoice.d.cts +5 -151
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +5 -151
  64. package/dist/actions/create-invoice.d.mts.map +1 -1
  65. package/dist/actions/create-invoice.mjs +1 -0
  66. package/dist/actions/create-invoice.mjs.map +1 -1
  67. package/dist/actions/create-payment.cjs +1 -0
  68. package/dist/actions/create-payment.cjs.map +1 -1
  69. package/dist/actions/create-payment.d.cts +3 -77
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +3 -77
  72. package/dist/actions/create-payment.d.mts.map +1 -1
  73. package/dist/actions/create-payment.mjs +1 -0
  74. package/dist/actions/create-payment.mjs.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.cjs +1 -0
  76. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.d.cts +3 -48
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +3 -48
  80. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  81. package/dist/actions/create-payments-billing-plans.mjs +1 -0
  82. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  83. package/dist/actions/create-plan.cjs +1 -0
  84. package/dist/actions/create-plan.cjs.map +1 -1
  85. package/dist/actions/create-plan.d.cts +3 -49
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +3 -49
  88. package/dist/actions/create-plan.d.mts.map +1 -1
  89. package/dist/actions/create-plan.mjs +1 -0
  90. package/dist/actions/create-plan.mjs.map +1 -1
  91. package/dist/actions/create-product.cjs +1 -0
  92. package/dist/actions/create-product.cjs.map +1 -1
  93. package/dist/actions/create-product.d.cts +3 -21
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +3 -21
  96. package/dist/actions/create-product.d.mts.map +1 -1
  97. package/dist/actions/create-product.mjs +1 -0
  98. package/dist/actions/create-product.mjs.map +1 -1
  99. package/dist/actions/create-subscription.cjs +1 -0
  100. package/dist/actions/create-subscription.cjs.map +1 -1
  101. package/dist/actions/create-subscription.d.cts +3 -88
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +3 -88
  104. package/dist/actions/create-subscription.d.mts.map +1 -1
  105. package/dist/actions/create-subscription.mjs +1 -0
  106. package/dist/actions/create-subscription.mjs.map +1 -1
  107. package/dist/actions/create-template.cjs +1 -0
  108. package/dist/actions/create-template.cjs.map +1 -1
  109. package/dist/actions/create-template.d.cts +3 -119
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +3 -119
  112. package/dist/actions/create-template.d.mts.map +1 -1
  113. package/dist/actions/create-template.mjs +1 -0
  114. package/dist/actions/create-template.mjs.map +1 -1
  115. package/dist/actions/create-web-profile.cjs +1 -0
  116. package/dist/actions/create-web-profile.cjs.map +1 -1
  117. package/dist/actions/create-web-profile.d.cts +3 -32
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +3 -32
  120. package/dist/actions/create-web-profile.d.mts.map +1 -1
  121. package/dist/actions/create-web-profile.mjs +1 -0
  122. package/dist/actions/create-web-profile.mjs.map +1 -1
  123. package/dist/actions/create-webhook-lookup.cjs +1 -0
  124. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  125. package/dist/actions/create-webhook-lookup.d.cts +3 -13
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +3 -13
  128. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  129. package/dist/actions/create-webhook-lookup.mjs +1 -0
  130. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  131. package/dist/actions/create-webhook.cjs +1 -0
  132. package/dist/actions/create-webhook.cjs.map +1 -1
  133. package/dist/actions/create-webhook.d.cts +3 -21
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +3 -21
  136. package/dist/actions/create-webhook.d.mts.map +1 -1
  137. package/dist/actions/create-webhook.mjs +1 -0
  138. package/dist/actions/create-webhook.mjs.map +1 -1
  139. package/dist/actions/deactivate-plan.cjs +1 -0
  140. package/dist/actions/deactivate-plan.cjs.map +1 -1
  141. package/dist/actions/deactivate-plan.d.cts +3 -15
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +3 -15
  144. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  145. package/dist/actions/deactivate-plan.mjs +1 -0
  146. package/dist/actions/deactivate-plan.mjs.map +1 -1
  147. package/dist/actions/delete-external-payment.cjs +1 -0
  148. package/dist/actions/delete-external-payment.cjs.map +1 -1
  149. package/dist/actions/delete-external-payment.d.cts +3 -16
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +3 -16
  152. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  153. package/dist/actions/delete-external-payment.mjs +1 -0
  154. package/dist/actions/delete-external-payment.mjs.map +1 -1
  155. package/dist/actions/delete-invoice-payment-record.cjs +1 -0
  156. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  157. package/dist/actions/delete-invoice-payment-record.d.cts +3 -16
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +3 -16
  160. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  161. package/dist/actions/delete-invoice-payment-record.mjs +1 -0
  162. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  163. package/dist/actions/delete-invoice-refund-record.cjs +1 -0
  164. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  165. package/dist/actions/delete-invoice-refund-record.d.cts +3 -16
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +3 -16
  168. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  169. package/dist/actions/delete-invoice-refund-record.mjs +1 -0
  170. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  171. package/dist/actions/delete-invoice.cjs +1 -0
  172. package/dist/actions/delete-invoice.cjs.map +1 -1
  173. package/dist/actions/delete-invoice.d.cts +3 -15
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +3 -15
  176. package/dist/actions/delete-invoice.d.mts.map +1 -1
  177. package/dist/actions/delete-invoice.mjs +1 -0
  178. package/dist/actions/delete-invoice.mjs.map +1 -1
  179. package/dist/actions/delete-payment-resource.cjs +1 -0
  180. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  181. package/dist/actions/delete-payment-resource.d.cts +3 -15
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +3 -15
  184. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  185. package/dist/actions/delete-payment-resource.mjs +1 -0
  186. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  187. package/dist/actions/delete-template.cjs +1 -0
  188. package/dist/actions/delete-template.cjs.map +1 -1
  189. package/dist/actions/delete-template.d.cts +3 -15
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +3 -15
  192. package/dist/actions/delete-template.d.mts.map +1 -1
  193. package/dist/actions/delete-template.mjs +1 -0
  194. package/dist/actions/delete-template.mjs.map +1 -1
  195. package/dist/actions/delete-web-profile.cjs +1 -0
  196. package/dist/actions/delete-web-profile.cjs.map +1 -1
  197. package/dist/actions/delete-web-profile.d.cts +3 -15
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +3 -15
  200. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  201. package/dist/actions/delete-web-profile.mjs +1 -0
  202. package/dist/actions/delete-web-profile.mjs.map +1 -1
  203. package/dist/actions/delete-webhook.cjs +1 -0
  204. package/dist/actions/delete-webhook.cjs.map +1 -1
  205. package/dist/actions/delete-webhook.d.cts +3 -15
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +3 -15
  208. package/dist/actions/delete-webhook.d.mts.map +1 -1
  209. package/dist/actions/delete-webhook.mjs +1 -0
  210. package/dist/actions/delete-webhook.mjs.map +1 -1
  211. package/dist/actions/fetch-node.cjs +1 -0
  212. package/dist/actions/fetch-node.cjs.map +1 -1
  213. package/dist/actions/fetch-node.d.cts +3 -15
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +3 -15
  216. package/dist/actions/fetch-node.d.mts.map +1 -1
  217. package/dist/actions/fetch-node.mjs +1 -0
  218. package/dist/actions/fetch-node.mjs.map +1 -1
  219. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +1 -0
  220. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  221. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +3 -15
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -15
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  227. package/dist/actions/find-eligible-methods.cjs +1 -0
  228. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  229. package/dist/actions/find-eligible-methods.d.cts +3 -49
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +3 -49
  232. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  233. package/dist/actions/find-eligible-methods.mjs +1 -0
  234. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  235. package/dist/actions/generate-client-token.cjs +1 -0
  236. package/dist/actions/generate-client-token.cjs.map +1 -1
  237. package/dist/actions/generate-client-token.d.cts +3 -13
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +3 -13
  240. package/dist/actions/generate-client-token.d.mts.map +1 -1
  241. package/dist/actions/generate-client-token.mjs +1 -0
  242. package/dist/actions/generate-client-token.mjs.map +1 -1
  243. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -0
  244. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  245. package/dist/actions/generate-next-invoice-number-v2.d.cts +3 -15
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +3 -15
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  251. package/dist/actions/generate-next-invoice-number.cjs +1 -0
  252. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  253. package/dist/actions/generate-next-invoice-number.d.cts +3 -13
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +3 -13
  256. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  257. package/dist/actions/generate-next-invoice-number.mjs +1 -0
  258. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  259. package/dist/actions/generate-qr-code.cjs +1 -0
  260. package/dist/actions/generate-qr-code.cjs.map +1 -1
  261. package/dist/actions/generate-qr-code.d.cts +3 -18
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +3 -18
  264. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  265. package/dist/actions/generate-qr-code.mjs +1 -0
  266. package/dist/actions/generate-qr-code.mjs.map +1 -1
  267. package/dist/actions/get-billing-subscriptions.cjs +1 -0
  268. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  269. package/dist/actions/get-billing-subscriptions.d.cts +3 -20
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +3 -20
  272. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  273. package/dist/actions/get-billing-subscriptions.mjs +1 -0
  274. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  275. package/dist/actions/get-invoice.cjs +1 -0
  276. package/dist/actions/get-invoice.cjs.map +1 -1
  277. package/dist/actions/get-invoice.d.cts +3 -15
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +3 -15
  280. package/dist/actions/get-invoice.d.mts.map +1 -1
  281. package/dist/actions/get-invoice.mjs +1 -0
  282. package/dist/actions/get-invoice.mjs.map +1 -1
  283. package/dist/actions/get-invoicing-invoices-qr-code.cjs +1 -0
  284. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  285. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +3 -18
  286. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  287. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +3 -18
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  289. package/dist/actions/get-invoicing-invoices-qr-code.mjs +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  291. package/dist/actions/get-invoicing-template.cjs +1 -0
  292. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  293. package/dist/actions/get-invoicing-template.d.cts +3 -15
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +3 -15
  296. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  297. package/dist/actions/get-invoicing-template.mjs +1 -0
  298. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  299. package/dist/actions/get-order.cjs +1 -0
  300. package/dist/actions/get-order.cjs.map +1 -1
  301. package/dist/actions/get-order.d.cts +3 -16
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +3 -16
  304. package/dist/actions/get-order.d.mts.map +1 -1
  305. package/dist/actions/get-order.mjs +1 -0
  306. package/dist/actions/get-order.mjs.map +1 -1
  307. package/dist/actions/get-payment.cjs +1 -0
  308. package/dist/actions/get-payment.cjs.map +1 -1
  309. package/dist/actions/get-payment.d.cts +3 -15
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +3 -15
  312. package/dist/actions/get-payment.d.mts.map +1 -1
  313. package/dist/actions/get-payment.mjs +1 -0
  314. package/dist/actions/get-payment.mjs.map +1 -1
  315. package/dist/actions/get-payments-refund.cjs +1 -0
  316. package/dist/actions/get-payments-refund.cjs.map +1 -1
  317. package/dist/actions/get-payments-refund.d.cts +3 -15
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +3 -15
  320. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  321. package/dist/actions/get-payments-refund.mjs +1 -0
  322. package/dist/actions/get-payments-refund.mjs.map +1 -1
  323. package/dist/actions/get-plan.cjs +1 -0
  324. package/dist/actions/get-plan.cjs.map +1 -1
  325. package/dist/actions/get-plan.d.cts +3 -15
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +3 -15
  328. package/dist/actions/get-plan.d.mts.map +1 -1
  329. package/dist/actions/get-plan.mjs +1 -0
  330. package/dist/actions/get-plan.mjs.map +1 -1
  331. package/dist/actions/get-product.cjs +1 -0
  332. package/dist/actions/get-product.cjs.map +1 -1
  333. package/dist/actions/get-product.d.cts +3 -15
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +3 -15
  336. package/dist/actions/get-product.d.mts.map +1 -1
  337. package/dist/actions/get-product.mjs +1 -0
  338. package/dist/actions/get-product.mjs.map +1 -1
  339. package/dist/actions/get-subscription.cjs +1 -0
  340. package/dist/actions/get-subscription.cjs.map +1 -1
  341. package/dist/actions/get-subscription.d.cts +3 -16
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +3 -16
  344. package/dist/actions/get-subscription.d.mts.map +1 -1
  345. package/dist/actions/get-subscription.mjs +1 -0
  346. package/dist/actions/get-subscription.mjs.map +1 -1
  347. package/dist/actions/get-user-info.cjs +1 -0
  348. package/dist/actions/get-user-info.cjs.map +1 -1
  349. package/dist/actions/get-user-info.d.cts +3 -15
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +3 -15
  352. package/dist/actions/get-user-info.d.mts.map +1 -1
  353. package/dist/actions/get-user-info.mjs +1 -0
  354. package/dist/actions/get-user-info.mjs.map +1 -1
  355. package/dist/actions/get-userinfo.cjs +1 -0
  356. package/dist/actions/get-userinfo.cjs.map +1 -1
  357. package/dist/actions/get-userinfo.d.cts +3 -15
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +3 -15
  360. package/dist/actions/get-userinfo.d.mts.map +1 -1
  361. package/dist/actions/get-userinfo.mjs +1 -0
  362. package/dist/actions/get-userinfo.mjs.map +1 -1
  363. package/dist/actions/get-web-profile.cjs +1 -0
  364. package/dist/actions/get-web-profile.cjs.map +1 -1
  365. package/dist/actions/get-web-profile.d.cts +3 -15
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +3 -15
  368. package/dist/actions/get-web-profile.d.mts.map +1 -1
  369. package/dist/actions/get-web-profile.mjs +1 -0
  370. package/dist/actions/get-web-profile.mjs.map +1 -1
  371. package/dist/actions/get-webhook-lookup.cjs +1 -0
  372. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  373. package/dist/actions/get-webhook-lookup.d.cts +3 -15
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +3 -15
  376. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  377. package/dist/actions/get-webhook-lookup.mjs +1 -0
  378. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  379. package/dist/actions/get-webhook.cjs +1 -0
  380. package/dist/actions/get-webhook.cjs.map +1 -1
  381. package/dist/actions/get-webhook.d.cts +3 -15
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +3 -15
  384. package/dist/actions/get-webhook.d.mts.map +1 -1
  385. package/dist/actions/get-webhook.mjs +1 -0
  386. package/dist/actions/get-webhook.mjs.map +1 -1
  387. package/dist/actions/list-disputes.cjs +1 -0
  388. package/dist/actions/list-disputes.cjs.map +1 -1
  389. package/dist/actions/list-disputes.d.cts +3 -21
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +3 -21
  392. package/dist/actions/list-disputes.d.mts.map +1 -1
  393. package/dist/actions/list-disputes.mjs +1 -0
  394. package/dist/actions/list-disputes.mjs.map +1 -1
  395. package/dist/actions/list-invoices.cjs +1 -0
  396. package/dist/actions/list-invoices.cjs.map +1 -1
  397. package/dist/actions/list-invoices.d.cts +3 -18
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +3 -18
  400. package/dist/actions/list-invoices.d.mts.map +1 -1
  401. package/dist/actions/list-invoices.mjs +1 -0
  402. package/dist/actions/list-invoices.mjs.map +1 -1
  403. package/dist/actions/list-legacy-billing-plans.cjs +1 -0
  404. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  405. package/dist/actions/list-legacy-billing-plans.d.cts +3 -20
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +3 -20
  408. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  409. package/dist/actions/list-legacy-billing-plans.mjs +1 -0
  410. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  411. package/dist/actions/list-payments.cjs +1 -0
  412. package/dist/actions/list-payments.cjs.map +1 -1
  413. package/dist/actions/list-payments.d.cts +5 -23
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +5 -23
  416. package/dist/actions/list-payments.d.mts.map +1 -1
  417. package/dist/actions/list-payments.mjs +1 -0
  418. package/dist/actions/list-payments.mjs.map +1 -1
  419. package/dist/actions/list-plans.cjs +1 -0
  420. package/dist/actions/list-plans.cjs.map +1 -1
  421. package/dist/actions/list-plans.d.cts +3 -18
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +3 -18
  424. package/dist/actions/list-plans.d.mts.map +1 -1
  425. package/dist/actions/list-plans.mjs +1 -0
  426. package/dist/actions/list-plans.mjs.map +1 -1
  427. package/dist/actions/list-products.cjs +1 -0
  428. package/dist/actions/list-products.cjs.map +1 -1
  429. package/dist/actions/list-products.d.cts +3 -17
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +3 -17
  432. package/dist/actions/list-products.d.mts.map +1 -1
  433. package/dist/actions/list-products.mjs +1 -0
  434. package/dist/actions/list-products.mjs.map +1 -1
  435. package/dist/actions/list-templates.cjs +1 -0
  436. package/dist/actions/list-templates.cjs.map +1 -1
  437. package/dist/actions/list-templates.d.cts +3 -17
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +3 -17
  440. package/dist/actions/list-templates.d.mts.map +1 -1
  441. package/dist/actions/list-templates.mjs +1 -0
  442. package/dist/actions/list-templates.mjs.map +1 -1
  443. package/dist/actions/list-web-profiles.cjs +1 -0
  444. package/dist/actions/list-web-profiles.cjs.map +1 -1
  445. package/dist/actions/list-web-profiles.d.cts +3 -17
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +3 -17
  448. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  449. package/dist/actions/list-web-profiles.mjs +1 -0
  450. package/dist/actions/list-web-profiles.mjs.map +1 -1
  451. package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -0
  452. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  453. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +3 -15
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -15
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  459. package/dist/actions/list-webhook-event-types.cjs +1 -0
  460. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  461. package/dist/actions/list-webhook-event-types.d.cts +3 -13
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +3 -13
  464. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  465. package/dist/actions/list-webhook-event-types.mjs +1 -0
  466. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  467. package/dist/actions/list-webhook-lookups.cjs +1 -0
  468. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  469. package/dist/actions/list-webhook-lookups.d.cts +3 -13
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +3 -13
  472. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  473. package/dist/actions/list-webhook-lookups.mjs +1 -0
  474. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  475. package/dist/actions/list-webhooks.cjs +1 -0
  476. package/dist/actions/list-webhooks.cjs.map +1 -1
  477. package/dist/actions/list-webhooks.d.cts +3 -15
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +3 -15
  480. package/dist/actions/list-webhooks.d.mts.map +1 -1
  481. package/dist/actions/list-webhooks.mjs +1 -0
  482. package/dist/actions/list-webhooks.mjs.map +1 -1
  483. package/dist/actions/patch-orders.cjs +1 -0
  484. package/dist/actions/patch-orders.cjs.map +1 -1
  485. package/dist/actions/patch-orders.d.cts +3 -22
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +3 -22
  488. package/dist/actions/patch-orders.d.mts.map +1 -1
  489. package/dist/actions/patch-orders.mjs +1 -0
  490. package/dist/actions/patch-orders.mjs.map +1 -1
  491. package/dist/actions/patch-plan.cjs +1 -0
  492. package/dist/actions/patch-plan.cjs.map +1 -1
  493. package/dist/actions/patch-plan.d.cts +3 -22
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +3 -22
  496. package/dist/actions/patch-plan.d.mts.map +1 -1
  497. package/dist/actions/patch-plan.mjs +1 -0
  498. package/dist/actions/patch-plan.mjs.map +1 -1
  499. package/dist/actions/patch-subscription.cjs +1 -0
  500. package/dist/actions/patch-subscription.cjs.map +1 -1
  501. package/dist/actions/patch-subscription.d.cts +3 -22
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +3 -22
  504. package/dist/actions/patch-subscription.d.mts.map +1 -1
  505. package/dist/actions/patch-subscription.mjs +1 -0
  506. package/dist/actions/patch-subscription.mjs.map +1 -1
  507. package/dist/actions/patch-web-profile.cjs +1 -0
  508. package/dist/actions/patch-web-profile.cjs.map +1 -1
  509. package/dist/actions/patch-web-profile.d.cts +3 -22
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +3 -22
  512. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  513. package/dist/actions/patch-web-profile.mjs +1 -0
  514. package/dist/actions/patch-web-profile.mjs.map +1 -1
  515. package/dist/actions/ping-braintree.cjs +1 -0
  516. package/dist/actions/ping-braintree.cjs.map +1 -1
  517. package/dist/actions/ping-braintree.d.cts +3 -13
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +3 -13
  520. package/dist/actions/ping-braintree.d.mts.map +1 -1
  521. package/dist/actions/ping-braintree.mjs +1 -0
  522. package/dist/actions/ping-braintree.mjs.map +1 -1
  523. package/dist/actions/query-braintree-report.cjs +1 -0
  524. package/dist/actions/query-braintree-report.cjs.map +1 -1
  525. package/dist/actions/query-braintree-report.d.cts +3 -18
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +3 -18
  528. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  529. package/dist/actions/query-braintree-report.mjs +1 -0
  530. package/dist/actions/query-braintree-report.mjs.map +1 -1
  531. package/dist/actions/retrieve-payment-resource.cjs +1 -0
  532. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  533. package/dist/actions/retrieve-payment-resource.d.cts +3 -15
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +3 -15
  536. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  537. package/dist/actions/retrieve-payment-resource.mjs +1 -0
  538. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  539. package/dist/actions/search-invoices.cjs +1 -0
  540. package/dist/actions/search-invoices.cjs.map +1 -1
  541. package/dist/actions/search-invoices.d.cts +5 -56
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +5 -56
  544. package/dist/actions/search-invoices.d.mts.map +1 -1
  545. package/dist/actions/search-invoices.mjs +1 -0
  546. package/dist/actions/search-invoices.mjs.map +1 -1
  547. package/dist/actions/send-invoice.cjs +1 -0
  548. package/dist/actions/send-invoice.cjs.map +1 -1
  549. package/dist/actions/send-invoice.d.cts +3 -20
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +3 -20
  552. package/dist/actions/send-invoice.d.mts.map +1 -1
  553. package/dist/actions/send-invoice.mjs +1 -0
  554. package/dist/actions/send-invoice.mjs.map +1 -1
  555. package/dist/actions/simulate-webhook-event.cjs +1 -0
  556. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  557. package/dist/actions/simulate-webhook-event.d.cts +3 -18
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +3 -18
  560. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  561. package/dist/actions/simulate-webhook-event.mjs +1 -0
  562. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  563. package/dist/actions/update-dispute.cjs +1 -0
  564. package/dist/actions/update-dispute.cjs.map +1 -1
  565. package/dist/actions/update-dispute.d.cts +3 -22
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +3 -22
  568. package/dist/actions/update-dispute.d.mts.map +1 -1
  569. package/dist/actions/update-dispute.mjs +1 -0
  570. package/dist/actions/update-dispute.mjs.map +1 -1
  571. package/dist/actions/update-invoice.cjs +1 -0
  572. package/dist/actions/update-invoice.cjs.map +1 -1
  573. package/dist/actions/update-invoice.d.cts +5 -183
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +5 -183
  576. package/dist/actions/update-invoice.d.mts.map +1 -1
  577. package/dist/actions/update-invoice.mjs +1 -0
  578. package/dist/actions/update-invoice.mjs.map +1 -1
  579. package/dist/actions/update-pay-pal-product.cjs +1 -0
  580. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  581. package/dist/actions/update-pay-pal-product.d.cts +3 -22
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +3 -22
  584. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  585. package/dist/actions/update-pay-pal-product.mjs +1 -0
  586. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  587. package/dist/actions/update-pay-pal-webhook.cjs +1 -0
  588. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  589. package/dist/actions/update-pay-pal-webhook.d.cts +3 -22
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +3 -22
  592. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  593. package/dist/actions/update-pay-pal-webhook.mjs +1 -0
  594. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  595. package/dist/actions/update-templates.cjs +1 -0
  596. package/dist/actions/update-templates.cjs.map +1 -1
  597. package/dist/actions/update-templates.d.cts +3 -225
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +3 -225
  600. package/dist/actions/update-templates.d.mts.map +1 -1
  601. package/dist/actions/update-templates.mjs +1 -0
  602. package/dist/actions/update-templates.mjs.map +1 -1
  603. package/dist/actions/update-web-profile.cjs +1 -0
  604. package/dist/actions/update-web-profile.cjs.map +1 -1
  605. package/dist/actions/update-web-profile.d.cts +3 -32
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +3 -32
  608. package/dist/actions/update-web-profile.d.mts.map +1 -1
  609. package/dist/actions/update-web-profile.mjs +1 -0
  610. package/dist/actions/update-web-profile.mjs.map +1 -1
  611. package/dist/actions/verify-payment-method.cjs +1 -0
  612. package/dist/actions/verify-payment-method.cjs.map +1 -1
  613. package/dist/actions/verify-payment-method.d.cts +3 -18
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +3 -18
  616. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  617. package/dist/actions/verify-payment-method.mjs +1 -0
  618. package/dist/actions/verify-payment-method.mjs.map +1 -1
  619. package/dist/actions/verify-webhook-signature.cjs +1 -0
  620. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  621. package/dist/actions/verify-webhook-signature.d.cts +3 -36
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +3 -36
  624. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  625. package/dist/actions/verify-webhook-signature.mjs +1 -0
  626. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  627. package/dist/app.cjs +2 -2
  628. package/dist/app.cjs.map +1 -1
  629. package/dist/app.d.cts +4 -6
  630. package/dist/app.d.cts.map +1 -1
  631. package/dist/app.d.mts +4 -6
  632. package/dist/app.d.mts.map +1 -1
  633. package/dist/app.mjs +0 -1
  634. package/dist/app.mjs.map +1 -1
  635. package/dist/index.d.cts +1 -1
  636. package/dist/index.d.mts +1 -1
  637. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["paypal","executePaypalTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { paypal } from \"./app\";\nimport { executePaypalTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return paypal.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePaypalTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["paypal","executePaypalTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { paypal } from \"./app\";\nimport { executePaypalTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof paypal.credential> {\n return paypal.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePaypalTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { paypal } from \"./app\";\nimport { executePaypalTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return paypal.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePaypalTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { paypal } from \"./app\";\nimport { executePaypalTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof paypal.credential> {\n return paypal.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePaypalTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/activate-plan.ts
@@ -1 +1 @@
1
- {"version":3,"file":"activate-plan.cjs","names":["z","action"],"sources":["../../src/actions/activate-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalActivatePlanInput = z.object({\n id: z.string().describe(\"The ID of the billing plan to activate.\"),\n}).describe(\"Request to activate a billing plan.\");\nexport const PaypalActivatePlanOutput = z.object({\n plan_id: z.string().describe(\"The ID of the plan that was activated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the plan activation was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response from activating a billing plan.\");\n\nexport const paypalActivatePlan = action(\"PAYPAL_ACTIVATE_PLAN\", {\n slug: \"paypal-activate-plan\",\n name: \"Activate billing plan\",\n description: \"Activates a billing plan in PayPal, making it available for subscription signups. Use this action when you have a billing plan in inactive state that you want to make available for new subscriptions. A successful activation returns HTTP 204 No Content with no response body. This action is idempotent - activating an already active plan returns success.\",\n input: PaypalActivatePlanInput,\n output: PaypalActivatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"activate-plan.cjs","names":["z","action"],"sources":["../../src/actions/activate-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalActivatePlanInput = z.object({\n id: z.string().describe(\"The ID of the billing plan to activate.\"),\n}).describe(\"Request to activate a billing plan.\");\nexport const PaypalActivatePlanOutput = z.object({\n plan_id: z.string().describe(\"The ID of the plan that was activated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the plan activation was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response from activating a billing plan.\");\n\nexport const paypalActivatePlan: AppAction<\n typeof PaypalActivatePlanInput,\n typeof PaypalActivatePlanOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_ACTIVATE_PLAN\", {\n slug: \"paypal-activate-plan\",\n name: \"Activate billing plan\",\n description: \"Activates a billing plan in PayPal, making it available for subscription signups. Use this action when you have a billing plan in inactive state that you want to make available for new subscriptions. A successful activation returns HTTP 204 No Content with no response body. This action is idempotent - activating an already active plan returns success.\",\n input: PaypalActivatePlanInput,\n output: PaypalActivatePlanOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/activate-plan.d.ts
@@ -8,21 +10,7 @@ declare const PaypalActivatePlanOutput: z.ZodObject<{
8
10
  plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
12
  }, z.core.$loose>;
11
- declare const paypalActivatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const paypalActivatePlan: AppAction<typeof PaypalActivatePlanInput, typeof PaypalActivatePlanOutput, typeof paypal.credential>;
26
14
  //#endregion
27
15
  export { paypalActivatePlan };
28
16
  //# sourceMappingURL=activate-plan.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"activate-plan.d.cts","names":[],"sources":["../../src/actions/activate-plan.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"activate-plan.d.cts","names":[],"sources":["../../src/actions/activate-plan.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/activate-plan.d.ts
@@ -8,21 +10,7 @@ declare const PaypalActivatePlanOutput: z.ZodObject<{
8
10
  plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
12
  }, z.core.$loose>;
11
- declare const paypalActivatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const paypalActivatePlan: AppAction<typeof PaypalActivatePlanInput, typeof PaypalActivatePlanOutput, typeof paypal.credential>;
26
14
  //#endregion
27
15
  export { paypalActivatePlan };
28
16
  //# sourceMappingURL=activate-plan.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"activate-plan.d.mts","names":[],"sources":["../../src/actions/activate-plan.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"activate-plan.d.mts","names":[],"sources":["../../src/actions/activate-plan.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const paypalActivatePlan = action("PAYPAL_ACTIVATE_PLAN", {
@@ -1 +1 @@
1
- {"version":3,"file":"activate-plan.mjs","names":[],"sources":["../../src/actions/activate-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalActivatePlanInput = z.object({\n id: z.string().describe(\"The ID of the billing plan to activate.\"),\n}).describe(\"Request to activate a billing plan.\");\nexport const PaypalActivatePlanOutput = z.object({\n plan_id: z.string().describe(\"The ID of the plan that was activated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the plan activation was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response from activating a billing plan.\");\n\nexport const paypalActivatePlan = action(\"PAYPAL_ACTIVATE_PLAN\", {\n slug: \"paypal-activate-plan\",\n name: \"Activate billing plan\",\n description: \"Activates a billing plan in PayPal, making it available for subscription signups. Use this action when you have a billing plan in inactive state that you want to make available for new subscriptions. A successful activation returns HTTP 204 No Content with no response body. This action is idempotent - activating an already active plan returns success.\",\n input: PaypalActivatePlanInput,\n output: PaypalActivatePlanOutput,\n});\n"],"mappings":";;AAYA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqC,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACnE,CAAC,CAAC,CAAC,SAAS,qCAUH;CACP,QAVsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"activate-plan.mjs","names":[],"sources":["../../src/actions/activate-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalActivatePlanInput = z.object({\n id: z.string().describe(\"The ID of the billing plan to activate.\"),\n}).describe(\"Request to activate a billing plan.\");\nexport const PaypalActivatePlanOutput = z.object({\n plan_id: z.string().describe(\"The ID of the plan that was activated.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the plan activation was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response from activating a billing plan.\");\n\nexport const paypalActivatePlan: AppAction<\n typeof PaypalActivatePlanInput,\n typeof PaypalActivatePlanOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_ACTIVATE_PLAN\", {\n slug: \"paypal-activate-plan\",\n name: \"Activate billing plan\",\n description: \"Activates a billing plan in PayPal, making it available for subscription signups. Use this action when you have a billing plan in inactive state that you want to make available for new subscriptions. A successful activation returns HTTP 204 No Content with no response body. This action is idempotent - activating an already active plan returns success.\",\n input: PaypalActivatePlanInput,\n output: PaypalActivatePlanOutput,\n});\n"],"mappings":";;;AAcA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqC,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACnE,CAAC,CAAC,CAAC,SAAS,qCAcH;CACP,QAdsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-batch-trackers.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-batch-trackers.cjs","names":["z","action"],"sources":["../../src/actions/add-batch-trackers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalAddBatchTrackersInput = z.object({\n trackers: z.array(z.object({\n status: z.enum([\"CLICKED\", \"SHIPPED\", \"DELIVERED\", \"CANCELLED\", \"ARRIVED\", \"RETURNED\"]).describe(\"The status of the tracker. One of: CLICKED, SHIPPED, DELIVERED, CANCELLED, ARRIVED, RETURNED.\"),\n carrier: z.string().describe(\"The carrier for the shipment. Examples: USPS, UPS, FedEx, DHL.\").optional(),\n quantity: z.number().int().describe(\"The quantity of the shipment.\").optional(),\n account_id: z.string().describe(\"The PayPal account ID for the seller.\").optional(),\n notify_buyer: z.boolean().describe(\"If true, sends an email notification to the buyer when the tracking information is updated.\").optional(),\n tracking_url: z.string().describe(\"The URL to track the shipment.\").optional(),\n shipment_date: z.string().describe(\"The date and time when the shipment was processed, in ISO 8601 date format.\").optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID. Required for each tracker in the request.\"),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").optional(),\n last_updated_time: z.string().describe(\"The date and time when the tracker was last updated, in ISO 8601 format.\").optional(),\n shipment_uploader: z.string().describe(\"The shipment uploader identifier.\").optional(),\n carrier_name_other: z.string().describe(\"The name of the carrier if the carrier field is set to 'OTHER'.\").optional(),\n postage_payment_id: z.string().describe(\"The postage payment ID.\").optional(),\n shipment_direction: z.enum([\"FORWARD\", \"RETURN\"]).describe(\"Direction of the shipment.\").optional(),\n tracking_number_type: z.string().describe(\"The type of tracking number (e.g., 'CARRIER_PROVIDED', 'GENERATED').\").optional(),\n tracking_number_validated: z.boolean().describe(\"If true, indicates that the tracking number has been validated with the carrier.\").optional(),\n}).passthrough().describe(\"Tracking information for a single shipment.\")).describe(\"An array of tracking information for one or more shipments. Maximum 20 trackers per request.\"),\n}).describe(\"Request schema for adding batch tracking information to PayPal transactions.\\n\\nUse when you need to add tracking information for one or more PayPal transactions\\nat once. This is useful when shipping multiple orders and you want to provide\\nreal-time tracking updates to buyers. The request can include up to 20 trackers\\nin a single batch.\");\nconst PaypalAddBatchTrackers_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalAddBatchTrackers_TrackerErrorSchema = z.object({\n name: z.string().describe(\"The error name.\").nullable(),\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links related to the error.\").nullable().optional(),\n details: z.array(z.record(z.string(), z.unknown())).describe(\"Additional error details.\").nullable().optional(),\n message: z.string().describe(\"The error message.\").nullable(),\n debug_id: z.string().describe(\"The PayPal debug ID for the error.\").nullable().optional(),\n information_link: z.string().describe(\"A link to documentation for the error.\").nullable().optional(),\n}).passthrough().describe(\"Error details for failed tracker submissions.\");\nconst PaypalAddBatchTrackers_TrackerIdentifierSchema = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links for the tracker resource.\").nullable().optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID.\").nullable(),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").nullable().optional(),\n}).passthrough().describe(\"Tracking identifier for a single shipment in the response.\");\nexport const PaypalAddBatchTrackersOutput = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n errors: z.array(PaypalAddBatchTrackers_TrackerErrorSchema).describe(\"An array of error responses for trackers that failed to process.\").nullable().optional(),\n tracker_identifiers: z.array(PaypalAddBatchTrackers_TrackerIdentifierSchema).describe(\"An array of tracking identifiers for successfully created trackers.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AddBatchTrackers action.\\n\\nContains tracking identifiers for successfully processed trackers and any\\nerrors for trackers that failed to process.\");\n\nexport const paypalAddBatchTrackers = action(\"PAYPAL_ADD_BATCH_TRACKERS\", {\n slug: \"paypal-add-batch-trackers\",\n name: \"Add Batch Tracking Information\",\n description: \"Add tracking information for multiple PayPal transactions in a single request. Use this action when you need to add or update tracking information for one or more PayPal transactions. This is particularly useful for batch processing shipping updates when fulfilling multiple orders. The action supports up to 20 trackers per request. The response includes tracker identifiers for successfully processed entries and any errors for entries that failed validation or processing. **Required fields:** - trackers: An array containing at least one tracker object **Each tracker requires:** - transaction_id: The PayPal transaction ID - status: The shipment status (CLICKED, SHIPPED, DELIVERED, etc.)\",\n input: PaypalAddBatchTrackersInput,\n output: PaypalAddBatchTrackersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAW;EAAa;EAAa;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAChM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC3I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC3H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CAC1G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAu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MAAM,8CAA8C,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAA4K;AAEtM,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-batch-trackers.cjs","names":["z","action"],"sources":["../../src/actions/add-batch-trackers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalAddBatchTrackersInput = z.object({\n trackers: z.array(z.object({\n status: z.enum([\"CLICKED\", \"SHIPPED\", \"DELIVERED\", \"CANCELLED\", \"ARRIVED\", \"RETURNED\"]).describe(\"The status of the tracker. One of: CLICKED, SHIPPED, DELIVERED, CANCELLED, ARRIVED, RETURNED.\"),\n carrier: z.string().describe(\"The carrier for the shipment. Examples: USPS, UPS, FedEx, DHL.\").optional(),\n quantity: z.number().int().describe(\"The quantity of the shipment.\").optional(),\n account_id: z.string().describe(\"The PayPal account ID for the seller.\").optional(),\n notify_buyer: z.boolean().describe(\"If true, sends an email notification to the buyer when the tracking information is updated.\").optional(),\n tracking_url: z.string().describe(\"The URL to track the shipment.\").optional(),\n shipment_date: z.string().describe(\"The date and time when the shipment was processed, in ISO 8601 date format.\").optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID. Required for each tracker in the request.\"),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").optional(),\n last_updated_time: z.string().describe(\"The date and time when the tracker was last updated, in ISO 8601 format.\").optional(),\n shipment_uploader: z.string().describe(\"The shipment uploader identifier.\").optional(),\n carrier_name_other: z.string().describe(\"The name of the carrier if the carrier field is set to 'OTHER'.\").optional(),\n postage_payment_id: z.string().describe(\"The postage payment ID.\").optional(),\n shipment_direction: z.enum([\"FORWARD\", \"RETURN\"]).describe(\"Direction of the shipment.\").optional(),\n tracking_number_type: z.string().describe(\"The type of tracking number (e.g., 'CARRIER_PROVIDED', 'GENERATED').\").optional(),\n tracking_number_validated: z.boolean().describe(\"If true, indicates that the tracking number has been validated with the carrier.\").optional(),\n}).passthrough().describe(\"Tracking information for a single shipment.\")).describe(\"An array of tracking information for one or more shipments. Maximum 20 trackers per request.\"),\n}).describe(\"Request schema for adding batch tracking information to PayPal transactions.\\n\\nUse when you need to add tracking information for one or more PayPal transactions\\nat once. This is useful when shipping multiple orders and you want to provide\\nreal-time tracking updates to buyers. The request can include up to 20 trackers\\nin a single batch.\");\nconst PaypalAddBatchTrackers_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalAddBatchTrackers_TrackerErrorSchema = z.object({\n name: z.string().describe(\"The error name.\").nullable(),\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links related to the error.\").nullable().optional(),\n details: z.array(z.record(z.string(), z.unknown())).describe(\"Additional error details.\").nullable().optional(),\n message: z.string().describe(\"The error message.\").nullable(),\n debug_id: z.string().describe(\"The PayPal debug ID for the error.\").nullable().optional(),\n information_link: z.string().describe(\"A link to documentation for the error.\").nullable().optional(),\n}).passthrough().describe(\"Error details for failed tracker submissions.\");\nconst PaypalAddBatchTrackers_TrackerIdentifierSchema = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links for the tracker resource.\").nullable().optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID.\").nullable(),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").nullable().optional(),\n}).passthrough().describe(\"Tracking identifier for a single shipment in the response.\");\nexport const PaypalAddBatchTrackersOutput = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n errors: z.array(PaypalAddBatchTrackers_TrackerErrorSchema).describe(\"An array of error responses for trackers that failed to process.\").nullable().optional(),\n tracker_identifiers: z.array(PaypalAddBatchTrackers_TrackerIdentifierSchema).describe(\"An array of tracking identifiers for successfully created trackers.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AddBatchTrackers action.\\n\\nContains tracking identifiers for successfully processed trackers and any\\nerrors for trackers that failed to process.\");\n\nexport const paypalAddBatchTrackers: AppAction<\n typeof PaypalAddBatchTrackersInput,\n typeof PaypalAddBatchTrackersOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_ADD_BATCH_TRACKERS\", {\n slug: \"paypal-add-batch-trackers\",\n name: \"Add Batch Tracking Information\",\n description: \"Add tracking information for multiple PayPal transactions in a single request. Use this action when you need to add or update tracking information for one or more PayPal transactions. This is particularly useful for batch processing shipping updates when fulfilling multiple orders. The action supports up to 20 trackers per request. The response includes tracker identifiers for successfully processed entries and any errors for entries that failed validation or processing. **Required fields:** - trackers: An array containing at least one tracker object **Each tracker requires:** - transaction_id: The PayPal transaction ID - status: The shipment status (CLICKED, SHIPPED, DELIVERED, etc.)\",\n input: PaypalAddBatchTrackersInput,\n output: PaypalAddBatchTrackersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAW;EAAa;EAAa;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAChM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EA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A,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,qBAAqBA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAA4K;AAEtM,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-batch-trackers.d.ts
@@ -59,39 +61,7 @@ declare const PaypalAddBatchTrackersOutput: z.ZodObject<{
59
61
  tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  }, z.core.$loose>>>>;
61
63
  }, z.core.$loose>;
62
- declare const paypalAddBatchTrackers: import("@keystrokehq/action").WorkflowActionDefinition<{
63
- trackers: {
64
- [x: string]: unknown;
65
- status: "CLICKED" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ARRIVED" | "RETURNED";
66
- transaction_id: string;
67
- carrier?: string | undefined;
68
- quantity?: number | undefined;
69
- account_id?: string | undefined;
70
- notify_buyer?: boolean | undefined;
71
- tracking_url?: string | undefined;
72
- shipment_date?: string | undefined;
73
- tracking_number?: string | undefined;
74
- last_updated_time?: string | undefined;
75
- shipment_uploader?: string | undefined;
76
- carrier_name_other?: string | undefined;
77
- postage_payment_id?: string | undefined;
78
- shipment_direction?: "FORWARD" | "RETURN" | undefined;
79
- tracking_number_type?: string | undefined;
80
- tracking_number_validated?: boolean | undefined;
81
- }[];
82
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
83
- connectionId: z.ZodString;
84
- entityId: z.ZodString;
85
- instanceId: z.ZodString;
86
- }, z.core.$strip>, z.ZodObject<{
87
- accessToken: z.ZodString;
88
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
89
- connectionId: z.ZodString;
90
- entityId: z.ZodString;
91
- instanceId: z.ZodString;
92
- }, z.core.$strip>, z.ZodObject<{
93
- accessToken: z.ZodString;
94
- }, z.core.$strip>>]>;
64
+ declare const paypalAddBatchTrackers: AppAction<typeof PaypalAddBatchTrackersInput, typeof PaypalAddBatchTrackersOutput, typeof paypal.credential>;
95
65
  //#endregion
96
66
  export { paypalAddBatchTrackers };
97
67
  //# sourceMappingURL=add-batch-trackers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-batch-trackers.d.cts","names":[],"sources":["../../src/actions/add-batch-trackers.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"add-batch-trackers.d.cts","names":[],"sources":["../../src/actions/add-batch-trackers.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-batch-trackers.d.ts
@@ -59,39 +61,7 @@ declare const PaypalAddBatchTrackersOutput: z.ZodObject<{
59
61
  tracking_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  }, z.core.$loose>>>>;
61
63
  }, z.core.$loose>;
62
- declare const paypalAddBatchTrackers: import("@keystrokehq/action").WorkflowActionDefinition<{
63
- trackers: {
64
- [x: string]: unknown;
65
- status: "CLICKED" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ARRIVED" | "RETURNED";
66
- transaction_id: string;
67
- carrier?: string | undefined;
68
- quantity?: number | undefined;
69
- account_id?: string | undefined;
70
- notify_buyer?: boolean | undefined;
71
- tracking_url?: string | undefined;
72
- shipment_date?: string | undefined;
73
- tracking_number?: string | undefined;
74
- last_updated_time?: string | undefined;
75
- shipment_uploader?: string | undefined;
76
- carrier_name_other?: string | undefined;
77
- postage_payment_id?: string | undefined;
78
- shipment_direction?: "FORWARD" | "RETURN" | undefined;
79
- tracking_number_type?: string | undefined;
80
- tracking_number_validated?: boolean | undefined;
81
- }[];
82
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
83
- connectionId: z.ZodString;
84
- entityId: z.ZodString;
85
- instanceId: z.ZodString;
86
- }, z.core.$strip>, z.ZodObject<{
87
- accessToken: z.ZodString;
88
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
89
- connectionId: z.ZodString;
90
- entityId: z.ZodString;
91
- instanceId: z.ZodString;
92
- }, z.core.$strip>, z.ZodObject<{
93
- accessToken: z.ZodString;
94
- }, z.core.$strip>>]>;
64
+ declare const paypalAddBatchTrackers: AppAction<typeof PaypalAddBatchTrackersInput, typeof PaypalAddBatchTrackersOutput, typeof paypal.credential>;
95
65
  //#endregion
96
66
  export { paypalAddBatchTrackers };
97
67
  //# sourceMappingURL=add-batch-trackers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-batch-trackers.d.mts","names":[],"sources":["../../src/actions/add-batch-trackers.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"add-batch-trackers.d.mts","names":[],"sources":["../../src/actions/add-batch-trackers.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/add-batch-trackers.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-batch-trackers.mjs","names":[],"sources":["../../src/actions/add-batch-trackers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalAddBatchTrackersInput = z.object({\n trackers: z.array(z.object({\n status: z.enum([\"CLICKED\", \"SHIPPED\", \"DELIVERED\", \"CANCELLED\", \"ARRIVED\", \"RETURNED\"]).describe(\"The status of the tracker. One of: CLICKED, SHIPPED, DELIVERED, CANCELLED, ARRIVED, RETURNED.\"),\n carrier: z.string().describe(\"The carrier for the shipment. Examples: USPS, UPS, FedEx, DHL.\").optional(),\n quantity: z.number().int().describe(\"The quantity of the shipment.\").optional(),\n account_id: z.string().describe(\"The PayPal account ID for the seller.\").optional(),\n notify_buyer: z.boolean().describe(\"If true, sends an email notification to the buyer when the tracking information is updated.\").optional(),\n tracking_url: z.string().describe(\"The URL to track the shipment.\").optional(),\n shipment_date: z.string().describe(\"The date and time when the shipment was processed, in ISO 8601 date format.\").optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID. Required for each tracker in the request.\"),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").optional(),\n last_updated_time: z.string().describe(\"The date and time when the tracker was last updated, in ISO 8601 format.\").optional(),\n shipment_uploader: z.string().describe(\"The shipment uploader identifier.\").optional(),\n carrier_name_other: z.string().describe(\"The name of the carrier if the carrier field is set to 'OTHER'.\").optional(),\n postage_payment_id: z.string().describe(\"The postage payment ID.\").optional(),\n shipment_direction: z.enum([\"FORWARD\", \"RETURN\"]).describe(\"Direction of the shipment.\").optional(),\n tracking_number_type: z.string().describe(\"The type of tracking number (e.g., 'CARRIER_PROVIDED', 'GENERATED').\").optional(),\n tracking_number_validated: z.boolean().describe(\"If true, indicates that the tracking number has been validated with the carrier.\").optional(),\n}).passthrough().describe(\"Tracking information for a single shipment.\")).describe(\"An array of tracking information for one or more shipments. Maximum 20 trackers per request.\"),\n}).describe(\"Request schema for adding batch tracking information to PayPal transactions.\\n\\nUse when you need to add tracking information for one or more PayPal transactions\\nat once. This is useful when shipping multiple orders and you want to provide\\nreal-time tracking updates to buyers. The request can include up to 20 trackers\\nin a single batch.\");\nconst PaypalAddBatchTrackers_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalAddBatchTrackers_TrackerErrorSchema = z.object({\n name: z.string().describe(\"The error name.\").nullable(),\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links related to the error.\").nullable().optional(),\n details: z.array(z.record(z.string(), z.unknown())).describe(\"Additional error details.\").nullable().optional(),\n message: z.string().describe(\"The error message.\").nullable(),\n debug_id: z.string().describe(\"The PayPal debug ID for the error.\").nullable().optional(),\n information_link: z.string().describe(\"A link to documentation for the error.\").nullable().optional(),\n}).passthrough().describe(\"Error details for failed tracker submissions.\");\nconst PaypalAddBatchTrackers_TrackerIdentifierSchema = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links for the tracker resource.\").nullable().optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID.\").nullable(),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").nullable().optional(),\n}).passthrough().describe(\"Tracking identifier for a single shipment in the response.\");\nexport const PaypalAddBatchTrackersOutput = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n errors: z.array(PaypalAddBatchTrackers_TrackerErrorSchema).describe(\"An array of error responses for trackers that failed to process.\").nullable().optional(),\n tracker_identifiers: z.array(PaypalAddBatchTrackers_TrackerIdentifierSchema).describe(\"An array of tracking identifiers for successfully created trackers.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AddBatchTrackers action.\\n\\nContains tracking identifiers for successfully processed trackers and any\\nerrors for trackers that failed to process.\");\n\nexport const paypalAddBatchTrackers = action(\"PAYPAL_ADD_BATCH_TRACKERS\", {\n slug: \"paypal-add-batch-trackers\",\n name: \"Add Batch Tracking Information\",\n description: \"Add tracking information for multiple PayPal transactions in a single request. Use this action when you need to add or update tracking information for one or more PayPal transactions. This is particularly useful for batch processing shipping updates when fulfilling multiple orders. The action supports up to 20 trackers per request. The response includes tracker identifiers for successfully processed entries and any errors for entries that failed validation or processing. **Required fields:** - trackers: An array containing at least one tracker object **Each tracker requires:** - transaction_id: The PayPal transaction ID - status: The shipment status (CLICKED, SH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CAC9D,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAOtF,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,qBAAqB,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-batch-trackers.mjs","names":[],"sources":["../../src/actions/add-batch-trackers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalAddBatchTrackersInput = z.object({\n trackers: z.array(z.object({\n status: z.enum([\"CLICKED\", \"SHIPPED\", \"DELIVERED\", \"CANCELLED\", \"ARRIVED\", \"RETURNED\"]).describe(\"The status of the tracker. One of: CLICKED, SHIPPED, DELIVERED, CANCELLED, ARRIVED, RETURNED.\"),\n carrier: z.string().describe(\"The carrier for the shipment. Examples: USPS, UPS, FedEx, DHL.\").optional(),\n quantity: z.number().int().describe(\"The quantity of the shipment.\").optional(),\n account_id: z.string().describe(\"The PayPal account ID for the seller.\").optional(),\n notify_buyer: z.boolean().describe(\"If true, sends an email notification to the buyer when the tracking information is updated.\").optional(),\n tracking_url: z.string().describe(\"The URL to track the shipment.\").optional(),\n shipment_date: z.string().describe(\"The date and time when the shipment was processed, in ISO 8601 date format.\").optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID. Required for each tracker in the request.\"),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").optional(),\n last_updated_time: z.string().describe(\"The date and time when the tracker was last updated, in ISO 8601 format.\").optional(),\n shipment_uploader: z.string().describe(\"The shipment uploader identifier.\").optional(),\n carrier_name_other: z.string().describe(\"The name of the carrier if the carrier field is set to 'OTHER'.\").optional(),\n postage_payment_id: z.string().describe(\"The postage payment ID.\").optional(),\n shipment_direction: z.enum([\"FORWARD\", \"RETURN\"]).describe(\"Direction of the shipment.\").optional(),\n tracking_number_type: z.string().describe(\"The type of tracking number (e.g., 'CARRIER_PROVIDED', 'GENERATED').\").optional(),\n tracking_number_validated: z.boolean().describe(\"If true, indicates that the tracking number has been validated with the carrier.\").optional(),\n}).passthrough().describe(\"Tracking information for a single shipment.\")).describe(\"An array of tracking information for one or more shipments. Maximum 20 trackers per request.\"),\n}).describe(\"Request schema for adding batch tracking information to PayPal transactions.\\n\\nUse when you need to add tracking information for one or more PayPal transactions\\nat once. This is useful when shipping multiple orders and you want to provide\\nreal-time tracking updates to buyers. The request can include up to 20 trackers\\nin a single batch.\");\nconst PaypalAddBatchTrackers_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalAddBatchTrackers_TrackerErrorSchema = z.object({\n name: z.string().describe(\"The error name.\").nullable(),\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links related to the error.\").nullable().optional(),\n details: z.array(z.record(z.string(), z.unknown())).describe(\"Additional error details.\").nullable().optional(),\n message: z.string().describe(\"The error message.\").nullable(),\n debug_id: z.string().describe(\"The PayPal debug ID for the error.\").nullable().optional(),\n information_link: z.string().describe(\"A link to documentation for the error.\").nullable().optional(),\n}).passthrough().describe(\"Error details for failed tracker submissions.\");\nconst PaypalAddBatchTrackers_TrackerIdentifierSchema = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"HATEOAS links for the tracker resource.\").nullable().optional(),\n transaction_id: z.string().describe(\"The PayPal transaction ID.\").nullable(),\n tracking_number: z.string().describe(\"The tracking number for the shipment.\").nullable().optional(),\n}).passthrough().describe(\"Tracking identifier for a single shipment in the response.\");\nexport const PaypalAddBatchTrackersOutput = z.object({\n links: z.array(PaypalAddBatchTrackers_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n errors: z.array(PaypalAddBatchTrackers_TrackerErrorSchema).describe(\"An array of error responses for trackers that failed to process.\").nullable().optional(),\n tracker_identifiers: z.array(PaypalAddBatchTrackers_TrackerIdentifierSchema).describe(\"An array of tracking identifiers for successfully created trackers.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AddBatchTrackers action.\\n\\nContains tracking identifiers for successfully processed trackers and any\\nerrors for trackers that failed to process.\");\n\nexport const paypalAddBatchTrackers: AppAction<\n typeof PaypalAddBatchTrackersInput,\n typeof PaypalAddBatchTrackersOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_ADD_BATCH_TRACKERS\", {\n slug: \"paypal-add-batch-trackers\",\n name: \"Add Batch Tracking Information\",\n description: \"Add tracking information for multiple PayPal transactions in a single request. Use this action when you need to add or update tracking information for one or more PayPal transactions. This is particularly useful for batch processing shipping updates when fulfilling multiple orders. The action supports up to 20 trackers per request. The response includes tracker identifiers for successfully processed entries and any errors for entries that failed validation or processing. **Required fields:** - trackers: An array containing at least one tracker object **Each tracker requires:** - transaction_id: The PayPal transaction ID - status: The shipment status (CLICKED, SHIPPED, DELIVERED, etc.)\",\n input: PaypalAddBatchTrackersInput,\n output: PaypalAddBatchTrackersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAW;EAAa;EAAa;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAChM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC3I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC3H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC5H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACrF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5E,oBAAoB,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CA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CAA+C;AACzE,MAAM,iDAAiD,EAAE,OAAO;CAC9D,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAOtF,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,qBAAqB,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/authorize-order.ts
@@ -1 +1 @@
1
- {"version":3,"file":"authorize-order.cjs","names":["z","action"],"sources":["../../src/actions/authorize-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalAuthorizeOrderInput = z.object({\n prefer: z.string().describe(\"The preferred server response upon successful completion of the request. Use 'return=minimal' for minimal response or 'return=representation' for full response.\").optional(),\n order_id: z.string().describe(\"The ID of the order to authorize.\"),\n payment_source: z.object({\n card: z.record(z.string(), z.unknown()).describe(\"Card payment source details including card number, expiry, security code, and billing address.\").optional(),\n paypal: z.record(z.string(), z.unknown()).describe(\"PayPal payment source details including account information.\").optional(),\n}).describe(\"Payment source for the order authorization.\").optional(),\n paypal_request_id: z.string().describe(\"The server stores keys for 72 hours. Used to enforce idempotency for multiple authorizations on the same order.\").optional(),\n paypal_auth_assertion: z.string().describe(\"Deprecated. Caller-supplied PayPal-Auth-Assertion headers are not supported.\").optional(),\n paypal_client_metadata_id: z.string().describe(\"Optional. Verifies that the payment originates from a valid, user-consented device and application.\").optional(),\n}).describe(\"Request to authorize payment for an order.\");\nconst PaypalAuthorizeOrder_LinkSchema = z.object({\n rel: z.string().describe(\"The link relation type, which serves as an ID for a link that unambiguously describes the semantics of the link.\").nullable(),\n href: z.string().describe(\"The complete target URL.\").nullable(),\n method: z.string().describe(\"The HTTP method required to make the related call.\").nullable().optional(),\n}).passthrough().describe(\"A HATEOAS link.\");\nconst PaypalAuthorizeOrder_PayerNameSchema = z.object({\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer.\");\nconst PaypalAuthorizeOrder_PayerAddressSchema = z.object({\n country_code: z.string().describe(\"The two-character ISO 3166-1 code that identifies the country or region.\").nullable().optional(),\n}).passthrough().describe(\"The address of the payer.\");\nconst PaypalAuthorizeOrder_PayerSchema = z.object({\n name: PaypalAuthorizeOrder_PayerNameSchema.nullable().optional(),\n phone: z.record(z.string(), z.unknown()).describe(\"The phone number of the payer.\").nullable().optional(),\n address: PaypalAuthorizeOrder_PayerAddressSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n}).passthrough().describe(\"The payer for the order.\");\nconst PaypalAuthorizeOrder_OrderStatusSchema = z.enum([\"CREATED\", \"SAVED\", \"APPROVED\", \"VOIDED\", \"COMPLETED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Status of the order after authorization.\");\nconst PaypalAuthorizeOrder_AmountSchema = z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalAuthorizeOrder_AuthorizationStatusSchema = z.enum([\"CREATED\", \"CAPTURED\", \"DENIED\", \"EXPIRED\", \"PARTIALLY_CAPTURED\", \"VOIDED\", \"PENDING\"]).describe(\"Status of the authorization.\");\nconst PaypalAuthorizeOrder_SellerProtectionSchema = z.object({\n status: z.string().describe(\"Indicates whether the transaction is eligible for seller protection.\").nullable().optional(),\n dispute_categories: z.array(z.string()).describe(\"An array of conditions that are covered for the transaction.\").nullable().optional(),\n}).passthrough().describe(\"The seller protection details for the authorization.\");\nconst PaypalAuthorizeOrder_AuthorizationSchema = z.object({\n id: z.string().describe(\"The PayPal-generated ID for the authorized payment.\").nullable(),\n links: z.array(z.record(z.string(), z.unknown())).describe(\"An array of related HATEOAS links.\").nullable().optional(),\n amount: PaypalAuthorizeOrder_AmountSchema.nullable(),\n status: PaypalAuthorizeOrder_AuthorizationStatusSchema.nullable(),\n custom_id: z.string().describe(\"The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions.\").nullable().optional(),\n invoice_id: z.string().describe(\"The API caller-provided external invoice number for this order.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the transaction occurred, in Internet date and time format.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the transaction was last updated, in Internet date and time format.\").nullable().optional(),\n expiration_time: z.string().describe(\"The date and time when the authorized payment expires, in Internet date and time format.\").nullable().optional(),\n seller_protection: PaypalAuthorizeOrder_SellerProtectionSchema.nullable().optional(),\n}).passthrough().describe(\"An authorized payment to be captured later.\");\nconst PaypalAuthorizeOrder_PaymentCollectionSchema = z.object({\n authorizations: z.array(PaypalAuthorizeOrder_AuthorizationSchema).describe(\"An array of authorized payments for the purchase unit. A purchase unit can have zero or more authorized payments.\").nullable().optional(),\n}).passthrough().describe(\"The payment collection details including authorizations.\");\nconst PaypalAuthorizeOrder_PurchaseUnitSchema = z.object({\n payee: z.record(z.string(), z.unknown()).describe(\"The merchant who receives payment for this transaction.\").nullable().optional(),\n amount: PaypalAuthorizeOrder_AmountSchema.nullable().optional(),\n payments: PaypalAuthorizeOrder_PaymentCollectionSchema.nullable().optional(),\n shipping: z.record(z.string(), z.unknown()).describe(\"The shipping details for the purchase unit.\").nullable().optional(),\n custom_id: z.string().describe(\"The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions.\").nullable().optional(),\n invoice_id: z.string().describe(\"The API caller-provided external invoice number for this order.\").nullable().optional(),\n description: z.string().describe(\"The purchase description.\").nullable().optional(),\n reference_id: z.string().describe(\"The API caller-provided external ID for the purchase unit.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor is the dynamic text used to construct the statement descriptor that appears on a payer's card statement.\").nullable().optional(),\n}).passthrough().describe(\"A purchase unit for the order.\");\nexport const PaypalAuthorizeOrderOutput = z.object({\n id: z.string().describe(\"The ID of the order.\").nullable(),\n links: z.array(PaypalAuthorizeOrder_LinkSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n payer: PaypalAuthorizeOrder_PayerSchema.nullable().optional(),\n intent: z.string().describe(\"The intent to either capture payment immediately or authorize a payment for an order after order creation.\").nullable().optional(),\n status: PaypalAuthorizeOrder_OrderStatusSchema.nullable(),\n create_time: z.string().describe(\"The date and time when the transaction occurred, in Internet date and time format.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the transaction was last updated, in Internet date and time format.\").nullable().optional(),\n purchase_units: z.array(PaypalAuthorizeOrder_PurchaseUnitSchema).describe(\"An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. May not be included in minimal responses.\").nullable().optional(),\n}).passthrough().describe(\"Response from authorizing payment for an order.\");\n\nexport const paypalAuthorizeOrder = action(\"PAYPAL_AUTHORIZE_ORDER\", {\n slug: \"paypal-authorize-order\",\n name: \"Authorize order payment\",\n description: \"Authorizes payment for an order. Use this action when you need to authorize funds from a payer's payment source but delay capturing the payment until a later time, such as when goods are shipped or services are delivered. The authorization creates a hold on the payer's funds and returns authorization details including an authorization ID that can be used later to capture or void the payment. Authorizations are typically valid for 3 days for most payment sources, though this may vary. Use this action after an order has been created and approved by the payer, when you want to authorize but not immediately capture the payment.\",\n input: PaypalAuthorizeOrderInput,\n output: PaypalAuthorizeOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACzM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,gBAAgBA,IAAAA,EAAE,OAAO;EACzB,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC5J,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACnK,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACpI,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"authorize-order.cjs","names":["z","action"],"sources":["../../src/actions/authorize-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalAuthorizeOrderInput = z.object({\n prefer: z.string().describe(\"The preferred server response upon successful completion of the request. Use 'return=minimal' for minimal response or 'return=representation' for full response.\").optional(),\n order_id: z.string().describe(\"The ID of the order to authorize.\"),\n payment_source: z.object({\n card: z.record(z.string(), z.unknown()).describe(\"Card payment source details including card number, expiry, security code, and billing address.\").optional(),\n paypal: z.record(z.string(), z.unknown()).describe(\"PayPal payment source details including account information.\").optional(),\n}).describe(\"Payment source for the order authorization.\").optional(),\n paypal_request_id: z.string().describe(\"The server stores keys for 72 hours. Used to enforce idempotency for multiple authorizations on the same order.\").optional(),\n paypal_auth_assertion: z.string().describe(\"Deprecated. Caller-supplied PayPal-Auth-Assertion headers are not supported.\").optional(),\n paypal_client_metadata_id: z.string().describe(\"Optional. Verifies that the payment originates from a valid, user-consented device and application.\").optional(),\n}).describe(\"Request to authorize payment for an order.\");\nconst PaypalAuthorizeOrder_LinkSchema = z.object({\n rel: z.string().describe(\"The link relation type, which serves as an ID for a link that unambiguously describes the semantics of the link.\").nullable(),\n href: z.string().describe(\"The complete target URL.\").nullable(),\n method: z.string().describe(\"The HTTP method required to make the related call.\").nullable().optional(),\n}).passthrough().describe(\"A HATEOAS link.\");\nconst PaypalAuthorizeOrder_PayerNameSchema = z.object({\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer.\");\nconst PaypalAuthorizeOrder_PayerAddressSchema = z.object({\n country_code: z.string().describe(\"The two-character ISO 3166-1 code that identifies the country or region.\").nullable().optional(),\n}).passthrough().describe(\"The address of the payer.\");\nconst PaypalAuthorizeOrder_PayerSchema = z.object({\n name: PaypalAuthorizeOrder_PayerNameSchema.nullable().optional(),\n phone: z.record(z.string(), z.unknown()).describe(\"The phone number of the payer.\").nullable().optional(),\n address: PaypalAuthorizeOrder_PayerAddressSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n}).passthrough().describe(\"The payer for the order.\");\nconst PaypalAuthorizeOrder_OrderStatusSchema = z.enum([\"CREATED\", \"SAVED\", \"APPROVED\", \"VOIDED\", \"COMPLETED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Status of the order after authorization.\");\nconst PaypalAuthorizeOrder_AmountSchema = z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalAuthorizeOrder_AuthorizationStatusSchema = z.enum([\"CREATED\", \"CAPTURED\", \"DENIED\", \"EXPIRED\", \"PARTIALLY_CAPTURED\", \"VOIDED\", \"PENDING\"]).describe(\"Status of the authorization.\");\nconst PaypalAuthorizeOrder_SellerProtectionSchema = z.object({\n status: z.string().describe(\"Indicates whether the transaction is eligible for seller protection.\").nullable().optional(),\n dispute_categories: z.array(z.string()).describe(\"An array of conditions that are covered for the transaction.\").nullable().optional(),\n}).passthrough().describe(\"The seller protection details for the authorization.\");\nconst PaypalAuthorizeOrder_AuthorizationSchema = z.object({\n id: z.string().describe(\"The PayPal-generated ID for the authorized payment.\").nullable(),\n links: z.array(z.record(z.string(), z.unknown())).describe(\"An array of related HATEOAS links.\").nullable().optional(),\n amount: PaypalAuthorizeOrder_AmountSchema.nullable(),\n status: PaypalAuthorizeOrder_AuthorizationStatusSchema.nullable(),\n custom_id: z.string().describe(\"The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions.\").nullable().optional(),\n invoice_id: z.string().describe(\"The API caller-provided external invoice number for this order.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the transaction occurred, in Internet date and time format.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the transaction was last updated, in Internet date and time format.\").nullable().optional(),\n expiration_time: z.string().describe(\"The date and time when the authorized payment expires, in Internet date and time format.\").nullable().optional(),\n seller_protection: PaypalAuthorizeOrder_SellerProtectionSchema.nullable().optional(),\n}).passthrough().describe(\"An authorized payment to be captured later.\");\nconst PaypalAuthorizeOrder_PaymentCollectionSchema = z.object({\n authorizations: z.array(PaypalAuthorizeOrder_AuthorizationSchema).describe(\"An array of authorized payments for the purchase unit. A purchase unit can have zero or more authorized payments.\").nullable().optional(),\n}).passthrough().describe(\"The payment collection details including authorizations.\");\nconst PaypalAuthorizeOrder_PurchaseUnitSchema = z.object({\n payee: z.record(z.string(), z.unknown()).describe(\"The merchant who receives payment for this transaction.\").nullable().optional(),\n amount: PaypalAuthorizeOrder_AmountSchema.nullable().optional(),\n payments: PaypalAuthorizeOrder_PaymentCollectionSchema.nullable().optional(),\n shipping: z.record(z.string(), z.unknown()).describe(\"The shipping details for the purchase unit.\").nullable().optional(),\n custom_id: z.string().describe(\"The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions.\").nullable().optional(),\n invoice_id: z.string().describe(\"The API caller-provided external invoice number for this order.\").nullable().optional(),\n description: z.string().describe(\"The purchase description.\").nullable().optional(),\n reference_id: z.string().describe(\"The API caller-provided external ID for the purchase unit.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor is the dynamic text used to construct the statement descriptor that appears on a payer's card statement.\").nullable().optional(),\n}).passthrough().describe(\"A purchase unit for the order.\");\nexport const PaypalAuthorizeOrderOutput = z.object({\n id: z.string().describe(\"The ID of the order.\").nullable(),\n links: z.array(PaypalAuthorizeOrder_LinkSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n payer: PaypalAuthorizeOrder_PayerSchema.nullable().optional(),\n intent: z.string().describe(\"The intent to either capture payment immediately or authorize a payment for an order after order creation.\").nullable().optional(),\n status: PaypalAuthorizeOrder_OrderStatusSchema.nullable(),\n create_time: z.string().describe(\"The date and time when the transaction occurred, in Internet date and time format.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the transaction was last updated, in Internet date and time format.\").nullable().optional(),\n purchase_units: z.array(PaypalAuthorizeOrder_PurchaseUnitSchema).describe(\"An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. May not be included in minimal responses.\").nullable().optional(),\n}).passthrough().describe(\"Response from authorizing payment for an order.\");\n\nexport const paypalAuthorizeOrder: AppAction<\n typeof PaypalAuthorizeOrderInput,\n typeof PaypalAuthorizeOrderOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_AUTHORIZE_ORDER\", {\n slug: \"paypal-authorize-order\",\n name: \"Authorize order payment\",\n description: \"Authorizes payment for an order. Use this action when you need to authorize funds from a payer's payment source but delay capturing the payment until a later time, such as when goods are shipped or services are delivered. The authorization creates a hold on the payer's funds and returns authorization details including an authorization ID that can be used later to capture or void the payment. Authorizations are typically valid for 3 days for most payment sources, though this may vary. Use this action after an order has been created and approved by the payer, when you want to authorize but not immediately capture the payment.\",\n input: PaypalAuthorizeOrderInput,\n output: PaypalAuthorizeOrderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACzM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC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AA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzD,OAAOA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,OAAO,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,QAAQ,uCAAuC,SAAS;CACxD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,gBAAgBA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/authorize-order.d.ts
@@ -33,11 +35,11 @@ declare const PaypalAuthorizeOrderOutput: z.ZodObject<{
33
35
  }, z.core.$loose>>>;
34
36
  intent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  status: z.ZodNullable<z.ZodEnum<{
36
- COMPLETED: "COMPLETED";
37
38
  CREATED: "CREATED";
38
39
  SAVED: "SAVED";
39
40
  APPROVED: "APPROVED";
40
41
  VOIDED: "VOIDED";
42
+ COMPLETED: "COMPLETED";
41
43
  PAYER_ACTION_REQUIRED: "PAYER_ACTION_REQUIRED";
42
44
  }>>;
43
45
  create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -57,13 +59,13 @@ declare const PaypalAuthorizeOrderOutput: z.ZodObject<{
57
59
  currency_code: z.ZodNullable<z.ZodString>;
58
60
  }, z.core.$loose>>;
59
61
  status: z.ZodNullable<z.ZodEnum<{
60
- PENDING: "PENDING";
61
62
  CREATED: "CREATED";
62
63
  VOIDED: "VOIDED";
63
64
  CAPTURED: "CAPTURED";
64
65
  DENIED: "DENIED";
65
66
  EXPIRED: "EXPIRED";
66
67
  PARTIALLY_CAPTURED: "PARTIALLY_CAPTURED";
68
+ PENDING: "PENDING";
67
69
  }>>;
68
70
  custom_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
71
  invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -84,29 +86,7 @@ declare const PaypalAuthorizeOrderOutput: z.ZodObject<{
84
86
  soft_descriptor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
87
  }, z.core.$loose>>>>;
86
88
  }, z.core.$loose>;
87
- declare const paypalAuthorizeOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
88
- order_id: string;
89
- prefer?: string | undefined;
90
- payment_source?: {
91
- card?: Record<string, unknown> | undefined;
92
- paypal?: Record<string, unknown> | undefined;
93
- } | undefined;
94
- paypal_request_id?: string | undefined;
95
- paypal_auth_assertion?: string | undefined;
96
- paypal_client_metadata_id?: string | undefined;
97
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
98
- connectionId: z.ZodString;
99
- entityId: z.ZodString;
100
- instanceId: z.ZodString;
101
- }, z.core.$strip>, z.ZodObject<{
102
- accessToken: z.ZodString;
103
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
104
- connectionId: z.ZodString;
105
- entityId: z.ZodString;
106
- instanceId: z.ZodString;
107
- }, z.core.$strip>, z.ZodObject<{
108
- accessToken: z.ZodString;
109
- }, z.core.$strip>>]>;
89
+ declare const paypalAuthorizeOrder: AppAction<typeof PaypalAuthorizeOrderInput, typeof PaypalAuthorizeOrderOutput, typeof paypal.credential>;
110
90
  //#endregion
111
91
  export { paypalAuthorizeOrder };
112
92
  //# sourceMappingURL=authorize-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authorize-order.d.cts","names":[],"sources":["../../src/actions/authorize-order.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"authorize-order.d.cts","names":[],"sources":["../../src/actions/authorize-order.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/authorize-order.d.ts
@@ -33,11 +35,11 @@ declare const PaypalAuthorizeOrderOutput: z.ZodObject<{
33
35
  }, z.core.$loose>>>;
34
36
  intent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  status: z.ZodNullable<z.ZodEnum<{
36
- COMPLETED: "COMPLETED";
37
38
  CREATED: "CREATED";
38
39
  SAVED: "SAVED";
39
40
  APPROVED: "APPROVED";
40
41
  VOIDED: "VOIDED";
42
+ COMPLETED: "COMPLETED";
41
43
  PAYER_ACTION_REQUIRED: "PAYER_ACTION_REQUIRED";
42
44
  }>>;
43
45
  create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -57,13 +59,13 @@ declare const PaypalAuthorizeOrderOutput: z.ZodObject<{
57
59
  currency_code: z.ZodNullable<z.ZodString>;
58
60
  }, z.core.$loose>>;
59
61
  status: z.ZodNullable<z.ZodEnum<{
60
- PENDING: "PENDING";
61
62
  CREATED: "CREATED";
62
63
  VOIDED: "VOIDED";
63
64
  CAPTURED: "CAPTURED";
64
65
  DENIED: "DENIED";
65
66
  EXPIRED: "EXPIRED";
66
67
  PARTIALLY_CAPTURED: "PARTIALLY_CAPTURED";
68
+ PENDING: "PENDING";
67
69
  }>>;
68
70
  custom_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
71
  invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -84,29 +86,7 @@ declare const PaypalAuthorizeOrderOutput: z.ZodObject<{
84
86
  soft_descriptor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
87
  }, z.core.$loose>>>>;
86
88
  }, z.core.$loose>;
87
- declare const paypalAuthorizeOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
88
- order_id: string;
89
- prefer?: string | undefined;
90
- payment_source?: {
91
- card?: Record<string, unknown> | undefined;
92
- paypal?: Record<string, unknown> | undefined;
93
- } | undefined;
94
- paypal_request_id?: string | undefined;
95
- paypal_auth_assertion?: string | undefined;
96
- paypal_client_metadata_id?: string | undefined;
97
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
98
- connectionId: z.ZodString;
99
- entityId: z.ZodString;
100
- instanceId: z.ZodString;
101
- }, z.core.$strip>, z.ZodObject<{
102
- accessToken: z.ZodString;
103
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
104
- connectionId: z.ZodString;
105
- entityId: z.ZodString;
106
- instanceId: z.ZodString;
107
- }, z.core.$strip>, z.ZodObject<{
108
- accessToken: z.ZodString;
109
- }, z.core.$strip>>]>;
89
+ declare const paypalAuthorizeOrder: AppAction<typeof PaypalAuthorizeOrderInput, typeof PaypalAuthorizeOrderOutput, typeof paypal.credential>;
110
90
  //#endregion
111
91
  export { paypalAuthorizeOrder };
112
92
  //# sourceMappingURL=authorize-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authorize-order.d.mts","names":[],"sources":["../../src/actions/authorize-order.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"authorize-order.d.mts","names":[],"sources":["../../src/actions/authorize-order.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/authorize-order.ts