@keystrokehq/paypal 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/dist/actions/activate-plan.cjs +1 -1
  2. package/dist/actions/activate-plan.cjs.map +1 -1
  3. package/dist/actions/activate-plan.d.cts +1 -1
  4. package/dist/actions/activate-plan.d.mts +1 -1
  5. package/dist/actions/activate-plan.mjs +1 -1
  6. package/dist/actions/activate-plan.mjs.map +1 -1
  7. package/dist/actions/add-batch-trackers.cjs +5 -5
  8. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  9. package/dist/actions/add-batch-trackers.d.cts +8 -7
  10. package/dist/actions/add-batch-trackers.d.mts +8 -7
  11. package/dist/actions/add-batch-trackers.mjs +5 -5
  12. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  13. package/dist/actions/authorize-order.cjs +16 -16
  14. package/dist/actions/authorize-order.cjs.map +1 -1
  15. package/dist/actions/authorize-order.d.cts +19 -19
  16. package/dist/actions/authorize-order.d.mts +19 -19
  17. package/dist/actions/authorize-order.mjs +16 -16
  18. package/dist/actions/authorize-order.mjs.map +1 -1
  19. package/dist/actions/cancel-invoice.cjs +3 -3
  20. package/dist/actions/cancel-invoice.cjs.map +1 -1
  21. package/dist/actions/cancel-invoice.d.cts +3 -3
  22. package/dist/actions/cancel-invoice.d.mts +3 -3
  23. package/dist/actions/cancel-invoice.mjs +3 -3
  24. package/dist/actions/cancel-invoice.mjs.map +1 -1
  25. package/dist/actions/cancel-reminders.cjs +3 -3
  26. package/dist/actions/cancel-reminders.cjs.map +1 -1
  27. package/dist/actions/cancel-reminders.d.cts +3 -3
  28. package/dist/actions/cancel-reminders.d.mts +3 -3
  29. package/dist/actions/cancel-reminders.mjs +3 -3
  30. package/dist/actions/cancel-reminders.mjs.map +1 -1
  31. package/dist/actions/capture-subscription-payment.cjs +9 -9
  32. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  33. package/dist/actions/capture-subscription-payment.d.cts +9 -9
  34. package/dist/actions/capture-subscription-payment.d.mts +9 -9
  35. package/dist/actions/capture-subscription-payment.mjs +9 -9
  36. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  37. package/dist/actions/charge-payment-method.cjs +1 -1
  38. package/dist/actions/charge-payment-method.cjs.map +1 -1
  39. package/dist/actions/charge-payment-method.d.cts +1 -1
  40. package/dist/actions/charge-payment-method.d.mts +1 -1
  41. package/dist/actions/charge-payment-method.mjs +1 -1
  42. package/dist/actions/charge-payment-method.mjs.map +1 -1
  43. package/dist/actions/create-invoice.cjs +22 -22
  44. package/dist/actions/create-invoice.cjs.map +1 -1
  45. package/dist/actions/create-invoice.d.cts +36 -33
  46. package/dist/actions/create-invoice.d.mts +36 -33
  47. package/dist/actions/create-invoice.mjs +22 -22
  48. package/dist/actions/create-invoice.mjs.map +1 -1
  49. package/dist/actions/create-payment.cjs +31 -31
  50. package/dist/actions/create-payment.cjs.map +1 -1
  51. package/dist/actions/create-payment.d.cts +42 -38
  52. package/dist/actions/create-payment.d.mts +42 -38
  53. package/dist/actions/create-payment.mjs +31 -31
  54. package/dist/actions/create-payment.mjs.map +1 -1
  55. package/dist/actions/create-payments-billing-plans.cjs +8 -8
  56. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  57. package/dist/actions/create-payments-billing-plans.d.cts +11 -9
  58. package/dist/actions/create-payments-billing-plans.d.mts +11 -9
  59. package/dist/actions/create-payments-billing-plans.mjs +8 -8
  60. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  61. package/dist/actions/create-plan.cjs +12 -12
  62. package/dist/actions/create-plan.cjs.map +1 -1
  63. package/dist/actions/create-plan.d.cts +14 -13
  64. package/dist/actions/create-plan.d.cts.map +1 -1
  65. package/dist/actions/create-plan.d.mts +14 -13
  66. package/dist/actions/create-plan.d.mts.map +1 -1
  67. package/dist/actions/create-plan.mjs +12 -12
  68. package/dist/actions/create-plan.mjs.map +1 -1
  69. package/dist/actions/create-product.cjs +2 -2
  70. package/dist/actions/create-product.cjs.map +1 -1
  71. package/dist/actions/create-product.d.cts +2 -2
  72. package/dist/actions/create-product.d.mts +2 -2
  73. package/dist/actions/create-product.mjs +2 -2
  74. package/dist/actions/create-product.mjs.map +1 -1
  75. package/dist/actions/create-subscription.cjs +15 -15
  76. package/dist/actions/create-subscription.cjs.map +1 -1
  77. package/dist/actions/create-subscription.d.cts +21 -20
  78. package/dist/actions/create-subscription.d.mts +21 -20
  79. package/dist/actions/create-subscription.mjs +15 -15
  80. package/dist/actions/create-subscription.mjs.map +1 -1
  81. package/dist/actions/create-template.cjs +25 -25
  82. package/dist/actions/create-template.cjs.map +1 -1
  83. package/dist/actions/create-template.d.cts +36 -30
  84. package/dist/actions/create-template.d.mts +36 -30
  85. package/dist/actions/create-template.mjs +25 -25
  86. package/dist/actions/create-template.mjs.map +1 -1
  87. package/dist/actions/create-web-profile.cjs +5 -5
  88. package/dist/actions/create-web-profile.cjs.map +1 -1
  89. package/dist/actions/create-web-profile.d.cts +5 -5
  90. package/dist/actions/create-web-profile.d.mts +5 -5
  91. package/dist/actions/create-web-profile.mjs +5 -5
  92. package/dist/actions/create-web-profile.mjs.map +1 -1
  93. package/dist/actions/create-webhook-lookup.cjs +2 -2
  94. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  95. package/dist/actions/create-webhook-lookup.d.cts +2 -2
  96. package/dist/actions/create-webhook-lookup.d.mts +2 -2
  97. package/dist/actions/create-webhook-lookup.mjs +2 -2
  98. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  99. package/dist/actions/create-webhook.cjs +4 -4
  100. package/dist/actions/create-webhook.cjs.map +1 -1
  101. package/dist/actions/create-webhook.d.cts +5 -4
  102. package/dist/actions/create-webhook.d.mts +5 -4
  103. package/dist/actions/create-webhook.mjs +4 -4
  104. package/dist/actions/create-webhook.mjs.map +1 -1
  105. package/dist/actions/deactivate-plan.cjs +1 -1
  106. package/dist/actions/deactivate-plan.cjs.map +1 -1
  107. package/dist/actions/deactivate-plan.d.cts +1 -1
  108. package/dist/actions/deactivate-plan.d.mts +1 -1
  109. package/dist/actions/deactivate-plan.mjs +1 -1
  110. package/dist/actions/deactivate-plan.mjs.map +1 -1
  111. package/dist/actions/delete-external-payment.cjs +1 -1
  112. package/dist/actions/delete-external-payment.cjs.map +1 -1
  113. package/dist/actions/delete-external-payment.d.cts +1 -1
  114. package/dist/actions/delete-external-payment.d.mts +1 -1
  115. package/dist/actions/delete-external-payment.mjs +1 -1
  116. package/dist/actions/delete-external-payment.mjs.map +1 -1
  117. package/dist/actions/delete-invoice-payment-record.cjs +1 -1
  118. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  119. package/dist/actions/delete-invoice-payment-record.d.cts +1 -1
  120. package/dist/actions/delete-invoice-payment-record.d.mts +1 -1
  121. package/dist/actions/delete-invoice-payment-record.mjs +1 -1
  122. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  123. package/dist/actions/delete-invoice-refund-record.cjs +1 -1
  124. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  125. package/dist/actions/delete-invoice-refund-record.d.cts +1 -1
  126. package/dist/actions/delete-invoice-refund-record.d.mts +1 -1
  127. package/dist/actions/delete-invoice-refund-record.mjs +1 -1
  128. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  129. package/dist/actions/delete-invoice.cjs +3 -3
  130. package/dist/actions/delete-invoice.cjs.map +1 -1
  131. package/dist/actions/delete-invoice.d.cts +3 -3
  132. package/dist/actions/delete-invoice.d.mts +3 -3
  133. package/dist/actions/delete-invoice.mjs +3 -3
  134. package/dist/actions/delete-invoice.mjs.map +1 -1
  135. package/dist/actions/delete-payment-resource.cjs +1 -1
  136. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  137. package/dist/actions/delete-payment-resource.d.cts +1 -1
  138. package/dist/actions/delete-payment-resource.d.mts +1 -1
  139. package/dist/actions/delete-payment-resource.mjs +1 -1
  140. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  141. package/dist/actions/delete-template.cjs +3 -3
  142. package/dist/actions/delete-template.cjs.map +1 -1
  143. package/dist/actions/delete-template.d.cts +3 -3
  144. package/dist/actions/delete-template.d.mts +3 -3
  145. package/dist/actions/delete-template.mjs +3 -3
  146. package/dist/actions/delete-template.mjs.map +1 -1
  147. package/dist/actions/delete-web-profile.cjs +1 -1
  148. package/dist/actions/delete-web-profile.cjs.map +1 -1
  149. package/dist/actions/delete-web-profile.d.cts +1 -1
  150. package/dist/actions/delete-web-profile.d.mts +1 -1
  151. package/dist/actions/delete-web-profile.mjs +1 -1
  152. package/dist/actions/delete-web-profile.mjs.map +1 -1
  153. package/dist/actions/delete-webhook.cjs +3 -3
  154. package/dist/actions/delete-webhook.cjs.map +1 -1
  155. package/dist/actions/delete-webhook.d.cts +3 -3
  156. package/dist/actions/delete-webhook.d.mts +3 -3
  157. package/dist/actions/delete-webhook.mjs +3 -3
  158. package/dist/actions/delete-webhook.mjs.map +1 -1
  159. package/dist/actions/fetch-node.cjs +5 -5
  160. package/dist/actions/fetch-node.cjs.map +1 -1
  161. package/dist/actions/fetch-node.d.cts +5 -5
  162. package/dist/actions/fetch-node.d.mts +5 -5
  163. package/dist/actions/fetch-node.mjs +5 -5
  164. package/dist/actions/fetch-node.mjs.map +1 -1
  165. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +3 -3
  166. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  167. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +3 -3
  168. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -3
  169. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +3 -3
  170. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  171. package/dist/actions/find-eligible-methods.cjs +7 -7
  172. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  173. package/dist/actions/find-eligible-methods.d.cts +11 -10
  174. package/dist/actions/find-eligible-methods.d.mts +11 -10
  175. package/dist/actions/find-eligible-methods.mjs +7 -7
  176. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  177. package/dist/actions/generate-client-token.cjs +1 -1
  178. package/dist/actions/generate-client-token.cjs.map +1 -1
  179. package/dist/actions/generate-client-token.d.cts +1 -1
  180. package/dist/actions/generate-client-token.d.mts +1 -1
  181. package/dist/actions/generate-client-token.mjs +1 -1
  182. package/dist/actions/generate-client-token.mjs.map +1 -1
  183. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -1
  184. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  185. package/dist/actions/generate-next-invoice-number-v2.d.cts +1 -1
  186. package/dist/actions/generate-next-invoice-number-v2.d.mts +1 -1
  187. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -1
  188. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  189. package/dist/actions/generate-next-invoice-number.cjs +1 -1
  190. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  191. package/dist/actions/generate-next-invoice-number.d.cts +1 -1
  192. package/dist/actions/generate-next-invoice-number.d.mts +1 -1
  193. package/dist/actions/generate-next-invoice-number.mjs +1 -1
  194. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  195. package/dist/actions/generate-qr-code.cjs +4 -4
  196. package/dist/actions/generate-qr-code.cjs.map +1 -1
  197. package/dist/actions/generate-qr-code.d.cts +4 -4
  198. package/dist/actions/generate-qr-code.d.mts +4 -4
  199. package/dist/actions/generate-qr-code.mjs +4 -4
  200. package/dist/actions/generate-qr-code.mjs.map +1 -1
  201. package/dist/actions/get-billing-subscriptions.cjs +10 -10
  202. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  203. package/dist/actions/get-billing-subscriptions.d.cts +11 -11
  204. package/dist/actions/get-billing-subscriptions.d.mts +11 -11
  205. package/dist/actions/get-billing-subscriptions.mjs +10 -10
  206. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  207. package/dist/actions/get-invoice.cjs +24 -24
  208. package/dist/actions/get-invoice.cjs.map +1 -1
  209. package/dist/actions/get-invoice.d.cts +32 -32
  210. package/dist/actions/get-invoice.d.mts +32 -32
  211. package/dist/actions/get-invoice.mjs +24 -24
  212. package/dist/actions/get-invoice.mjs.map +1 -1
  213. package/dist/actions/get-invoicing-invoices-qr-code.cjs +2 -2
  214. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  215. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +2 -2
  216. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +2 -2
  217. package/dist/actions/get-invoicing-invoices-qr-code.mjs +2 -2
  218. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  219. package/dist/actions/get-invoicing-template.cjs +20 -20
  220. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  221. package/dist/actions/get-invoicing-template.d.cts +29 -29
  222. package/dist/actions/get-invoicing-template.d.mts +29 -29
  223. package/dist/actions/get-invoicing-template.mjs +20 -20
  224. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  225. package/dist/actions/get-order.cjs +16 -16
  226. package/dist/actions/get-order.cjs.map +1 -1
  227. package/dist/actions/get-order.d.cts +24 -24
  228. package/dist/actions/get-order.d.mts +24 -24
  229. package/dist/actions/get-order.mjs +16 -16
  230. package/dist/actions/get-order.mjs.map +1 -1
  231. package/dist/actions/get-payment.cjs +14 -14
  232. package/dist/actions/get-payment.cjs.map +1 -1
  233. package/dist/actions/get-payment.d.cts +22 -22
  234. package/dist/actions/get-payment.d.mts +22 -22
  235. package/dist/actions/get-payment.mjs +14 -14
  236. package/dist/actions/get-payment.mjs.map +1 -1
  237. package/dist/actions/get-payments-refund.cjs +3 -3
  238. package/dist/actions/get-payments-refund.cjs.map +1 -1
  239. package/dist/actions/get-payments-refund.d.cts +3 -3
  240. package/dist/actions/get-payments-refund.d.mts +3 -3
  241. package/dist/actions/get-payments-refund.mjs +3 -3
  242. package/dist/actions/get-payments-refund.mjs.map +1 -1
  243. package/dist/actions/get-plan.cjs +11 -11
  244. package/dist/actions/get-plan.cjs.map +1 -1
  245. package/dist/actions/get-plan.d.cts +11 -11
  246. package/dist/actions/get-plan.d.mts +11 -11
  247. package/dist/actions/get-plan.mjs +11 -11
  248. package/dist/actions/get-plan.mjs.map +1 -1
  249. package/dist/actions/get-product.cjs +2 -2
  250. package/dist/actions/get-product.cjs.map +1 -1
  251. package/dist/actions/get-product.d.cts +2 -2
  252. package/dist/actions/get-product.d.mts +2 -2
  253. package/dist/actions/get-product.mjs +2 -2
  254. package/dist/actions/get-product.mjs.map +1 -1
  255. package/dist/actions/get-subscription.cjs +10 -10
  256. package/dist/actions/get-subscription.cjs.map +1 -1
  257. package/dist/actions/get-subscription.d.cts +13 -13
  258. package/dist/actions/get-subscription.d.mts +13 -13
  259. package/dist/actions/get-subscription.mjs +10 -10
  260. package/dist/actions/get-subscription.mjs.map +1 -1
  261. package/dist/actions/get-user-info.cjs +3 -3
  262. package/dist/actions/get-user-info.cjs.map +1 -1
  263. package/dist/actions/get-user-info.d.cts +3 -3
  264. package/dist/actions/get-user-info.d.mts +3 -3
  265. package/dist/actions/get-user-info.mjs +3 -3
  266. package/dist/actions/get-user-info.mjs.map +1 -1
  267. package/dist/actions/get-userinfo.cjs +3 -3
  268. package/dist/actions/get-userinfo.cjs.map +1 -1
  269. package/dist/actions/get-userinfo.d.cts +3 -3
  270. package/dist/actions/get-userinfo.d.mts +3 -3
  271. package/dist/actions/get-userinfo.mjs +3 -3
  272. package/dist/actions/get-userinfo.mjs.map +1 -1
  273. package/dist/actions/get-web-profile.cjs +4 -4
  274. package/dist/actions/get-web-profile.cjs.map +1 -1
  275. package/dist/actions/get-web-profile.d.cts +4 -4
  276. package/dist/actions/get-web-profile.d.mts +4 -4
  277. package/dist/actions/get-web-profile.mjs +4 -4
  278. package/dist/actions/get-web-profile.mjs.map +1 -1
  279. package/dist/actions/get-webhook-lookup.cjs +2 -2
  280. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  281. package/dist/actions/get-webhook-lookup.d.cts +2 -2
  282. package/dist/actions/get-webhook-lookup.d.mts +2 -2
  283. package/dist/actions/get-webhook-lookup.mjs +2 -2
  284. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  285. package/dist/actions/get-webhook.cjs +4 -4
  286. package/dist/actions/get-webhook.cjs.map +1 -1
  287. package/dist/actions/get-webhook.d.cts +4 -4
  288. package/dist/actions/get-webhook.d.mts +4 -4
  289. package/dist/actions/get-webhook.mjs +4 -4
  290. package/dist/actions/get-webhook.mjs.map +1 -1
  291. package/dist/actions/list-disputes.cjs +5 -5
  292. package/dist/actions/list-disputes.cjs.map +1 -1
  293. package/dist/actions/list-disputes.d.cts +6 -6
  294. package/dist/actions/list-disputes.d.mts +6 -6
  295. package/dist/actions/list-disputes.mjs +5 -5
  296. package/dist/actions/list-disputes.mjs.map +1 -1
  297. package/dist/actions/list-invoices.cjs +15 -15
  298. package/dist/actions/list-invoices.cjs.map +1 -1
  299. package/dist/actions/list-invoices.d.cts +19 -19
  300. package/dist/actions/list-invoices.d.mts +19 -19
  301. package/dist/actions/list-invoices.mjs +15 -15
  302. package/dist/actions/list-invoices.mjs.map +1 -1
  303. package/dist/actions/list-legacy-billing-plans.cjs +7 -7
  304. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  305. package/dist/actions/list-legacy-billing-plans.d.cts +9 -9
  306. package/dist/actions/list-legacy-billing-plans.d.mts +9 -9
  307. package/dist/actions/list-legacy-billing-plans.mjs +7 -7
  308. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  309. package/dist/actions/list-payments.cjs +20 -20
  310. package/dist/actions/list-payments.cjs.map +1 -1
  311. package/dist/actions/list-payments.d.cts +24 -24
  312. package/dist/actions/list-payments.d.mts +24 -24
  313. package/dist/actions/list-payments.mjs +20 -20
  314. package/dist/actions/list-payments.mjs.map +1 -1
  315. package/dist/actions/list-plans.cjs +8 -8
  316. package/dist/actions/list-plans.cjs.map +1 -1
  317. package/dist/actions/list-plans.d.cts +9 -9
  318. package/dist/actions/list-plans.d.mts +9 -9
  319. package/dist/actions/list-plans.mjs +8 -8
  320. package/dist/actions/list-plans.mjs.map +1 -1
  321. package/dist/actions/list-products.cjs +3 -3
  322. package/dist/actions/list-products.cjs.map +1 -1
  323. package/dist/actions/list-products.d.cts +4 -4
  324. package/dist/actions/list-products.d.mts +4 -4
  325. package/dist/actions/list-products.mjs +3 -3
  326. package/dist/actions/list-products.mjs.map +1 -1
  327. package/dist/actions/list-templates.cjs +8 -8
  328. package/dist/actions/list-templates.cjs.map +1 -1
  329. package/dist/actions/list-templates.d.cts +9 -9
  330. package/dist/actions/list-templates.d.mts +9 -9
  331. package/dist/actions/list-templates.mjs +8 -8
  332. package/dist/actions/list-templates.mjs.map +1 -1
  333. package/dist/actions/list-web-profiles.cjs +6 -6
  334. package/dist/actions/list-web-profiles.cjs.map +1 -1
  335. package/dist/actions/list-web-profiles.d.cts +6 -6
  336. package/dist/actions/list-web-profiles.d.mts +6 -6
  337. package/dist/actions/list-web-profiles.mjs +6 -6
  338. package/dist/actions/list-web-profiles.mjs.map +1 -1
  339. package/dist/actions/list-webhook-event-type-subscriptions.cjs +3 -3
  340. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  341. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +3 -3
  342. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -3
  343. package/dist/actions/list-webhook-event-type-subscriptions.mjs +3 -3
  344. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  345. package/dist/actions/list-webhook-event-types.cjs +3 -3
  346. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  347. package/dist/actions/list-webhook-event-types.d.cts +3 -3
  348. package/dist/actions/list-webhook-event-types.d.mts +3 -3
  349. package/dist/actions/list-webhook-event-types.mjs +3 -3
  350. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  351. package/dist/actions/list-webhook-lookups.cjs +3 -3
  352. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  353. package/dist/actions/list-webhook-lookups.d.cts +3 -3
  354. package/dist/actions/list-webhook-lookups.d.mts +3 -3
  355. package/dist/actions/list-webhook-lookups.mjs +3 -3
  356. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  357. package/dist/actions/list-webhooks.cjs +2 -2
  358. package/dist/actions/list-webhooks.cjs.map +1 -1
  359. package/dist/actions/list-webhooks.d.cts +2 -2
  360. package/dist/actions/list-webhooks.d.mts +2 -2
  361. package/dist/actions/list-webhooks.mjs +2 -2
  362. package/dist/actions/list-webhooks.mjs.map +1 -1
  363. package/dist/actions/patch-orders.cjs +2 -2
  364. package/dist/actions/patch-orders.cjs.map +1 -1
  365. package/dist/actions/patch-orders.d.cts +3 -2
  366. package/dist/actions/patch-orders.d.cts.map +1 -1
  367. package/dist/actions/patch-orders.d.mts +3 -2
  368. package/dist/actions/patch-orders.d.mts.map +1 -1
  369. package/dist/actions/patch-orders.mjs +2 -2
  370. package/dist/actions/patch-orders.mjs.map +1 -1
  371. package/dist/actions/patch-plan.cjs +2 -2
  372. package/dist/actions/patch-plan.cjs.map +1 -1
  373. package/dist/actions/patch-plan.d.cts +3 -2
  374. package/dist/actions/patch-plan.d.mts +3 -2
  375. package/dist/actions/patch-plan.mjs +2 -2
  376. package/dist/actions/patch-plan.mjs.map +1 -1
  377. package/dist/actions/patch-subscription.cjs +3 -3
  378. package/dist/actions/patch-subscription.cjs.map +1 -1
  379. package/dist/actions/patch-subscription.d.cts +4 -3
  380. package/dist/actions/patch-subscription.d.cts.map +1 -1
  381. package/dist/actions/patch-subscription.d.mts +4 -3
  382. package/dist/actions/patch-subscription.d.mts.map +1 -1
  383. package/dist/actions/patch-subscription.mjs +3 -3
  384. package/dist/actions/patch-subscription.mjs.map +1 -1
  385. package/dist/actions/patch-web-profile.cjs +2 -2
  386. package/dist/actions/patch-web-profile.cjs.map +1 -1
  387. package/dist/actions/patch-web-profile.d.cts +3 -2
  388. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  389. package/dist/actions/patch-web-profile.d.mts +3 -2
  390. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  391. package/dist/actions/patch-web-profile.mjs +2 -2
  392. package/dist/actions/patch-web-profile.mjs.map +1 -1
  393. package/dist/actions/ping-braintree.cjs +2 -2
  394. package/dist/actions/ping-braintree.cjs.map +1 -1
  395. package/dist/actions/ping-braintree.d.cts +2 -2
  396. package/dist/actions/ping-braintree.d.mts +2 -2
  397. package/dist/actions/ping-braintree.mjs +2 -2
  398. package/dist/actions/ping-braintree.mjs.map +1 -1
  399. package/dist/actions/query-braintree-report.cjs +4 -4
  400. package/dist/actions/query-braintree-report.cjs.map +1 -1
  401. package/dist/actions/query-braintree-report.d.cts +4 -4
  402. package/dist/actions/query-braintree-report.d.mts +4 -4
  403. package/dist/actions/query-braintree-report.mjs +4 -4
  404. package/dist/actions/query-braintree-report.mjs.map +1 -1
  405. package/dist/actions/retrieve-payment-resource.cjs +11 -11
  406. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  407. package/dist/actions/retrieve-payment-resource.d.cts +12 -12
  408. package/dist/actions/retrieve-payment-resource.d.mts +12 -12
  409. package/dist/actions/retrieve-payment-resource.mjs +11 -11
  410. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  411. package/dist/actions/search-invoices.cjs +11 -11
  412. package/dist/actions/search-invoices.cjs.map +1 -1
  413. package/dist/actions/search-invoices.d.cts +15 -15
  414. package/dist/actions/search-invoices.d.mts +15 -15
  415. package/dist/actions/search-invoices.mjs +11 -11
  416. package/dist/actions/search-invoices.mjs.map +1 -1
  417. package/dist/actions/send-invoice.cjs +2 -2
  418. package/dist/actions/send-invoice.cjs.map +1 -1
  419. package/dist/actions/send-invoice.d.cts +2 -2
  420. package/dist/actions/send-invoice.d.mts +2 -2
  421. package/dist/actions/send-invoice.mjs +2 -2
  422. package/dist/actions/send-invoice.mjs.map +1 -1
  423. package/dist/actions/simulate-webhook-event.cjs +4 -4
  424. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  425. package/dist/actions/simulate-webhook-event.d.cts +4 -4
  426. package/dist/actions/simulate-webhook-event.d.mts +4 -4
  427. package/dist/actions/simulate-webhook-event.mjs +4 -4
  428. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  429. package/dist/actions/update-dispute.cjs +3 -3
  430. package/dist/actions/update-dispute.cjs.map +1 -1
  431. package/dist/actions/update-dispute.d.cts +4 -3
  432. package/dist/actions/update-dispute.d.mts +4 -3
  433. package/dist/actions/update-dispute.mjs +3 -3
  434. package/dist/actions/update-dispute.mjs.map +1 -1
  435. package/dist/actions/update-invoice.cjs +34 -34
  436. package/dist/actions/update-invoice.cjs.map +1 -1
  437. package/dist/actions/update-invoice.d.cts +54 -48
  438. package/dist/actions/update-invoice.d.cts.map +1 -1
  439. package/dist/actions/update-invoice.d.mts +54 -48
  440. package/dist/actions/update-invoice.d.mts.map +1 -1
  441. package/dist/actions/update-invoice.mjs +34 -34
  442. package/dist/actions/update-invoice.mjs.map +1 -1
  443. package/dist/actions/update-pay-pal-product.cjs +2 -2
  444. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  445. package/dist/actions/update-pay-pal-product.d.cts +3 -2
  446. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  447. package/dist/actions/update-pay-pal-product.d.mts +3 -2
  448. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  449. package/dist/actions/update-pay-pal-product.mjs +2 -2
  450. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  451. package/dist/actions/update-pay-pal-webhook.cjs +4 -4
  452. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  453. package/dist/actions/update-pay-pal-webhook.d.cts +5 -4
  454. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  455. package/dist/actions/update-pay-pal-webhook.d.mts +5 -4
  456. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  457. package/dist/actions/update-pay-pal-webhook.mjs +4 -4
  458. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  459. package/dist/actions/update-templates.cjs +39 -39
  460. package/dist/actions/update-templates.cjs.map +1 -1
  461. package/dist/actions/update-templates.d.cts +65 -56
  462. package/dist/actions/update-templates.d.mts +65 -56
  463. package/dist/actions/update-templates.mjs +39 -39
  464. package/dist/actions/update-templates.mjs.map +1 -1
  465. package/dist/actions/update-web-profile.cjs +2 -2
  466. package/dist/actions/update-web-profile.cjs.map +1 -1
  467. package/dist/actions/update-web-profile.d.cts +2 -2
  468. package/dist/actions/update-web-profile.d.mts +2 -2
  469. package/dist/actions/update-web-profile.mjs +2 -2
  470. package/dist/actions/update-web-profile.mjs.map +1 -1
  471. package/dist/actions/verify-payment-method.cjs +2 -2
  472. package/dist/actions/verify-payment-method.cjs.map +1 -1
  473. package/dist/actions/verify-payment-method.d.cts +2 -2
  474. package/dist/actions/verify-payment-method.d.mts +2 -2
  475. package/dist/actions/verify-payment-method.mjs +2 -2
  476. package/dist/actions/verify-payment-method.mjs.map +1 -1
  477. package/dist/actions/verify-webhook-signature.cjs +1 -1
  478. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  479. package/dist/actions/verify-webhook-signature.d.cts +1 -1
  480. package/dist/actions/verify-webhook-signature.d.mts +1 -1
  481. package/dist/actions/verify-webhook-signature.mjs +1 -1
  482. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  483. package/package.json +1 -1
@@ -32,9 +32,9 @@ const PaypalCreatePlanInput = zod.z.object({
32
32
  value: zod.z.string().describe("The price value as a string. Use decimal format (e.g., '29.99')."),
33
33
  currency_code: zod.z.string().describe("The three-letter ISO 4217 currency code.")
34
34
  }).describe("Fixed price amount for billing.").optional(),
35
- pricing_threshold: zod.z.object({}).describe("Pricing threshold configuration as key-value pairs.").optional()
35
+ pricing_threshold: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Pricing threshold configuration as key-value pairs.").optional()
36
36
  }).describe("Pricing scheme for a billing cycle.").optional()
37
- }).describe("Billing cycle configuration for trial or regular billing.")).describe("An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle."),
37
+ }).passthrough().describe("Billing cycle configuration for trial or regular billing.")).describe("An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle."),
38
38
  quantity_supported: zod.z.boolean().default(false).describe("Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.").optional(),
39
39
  payment_preferences: zod.z.object({
40
40
  setup_fee: zod.z.object({
@@ -50,11 +50,11 @@ const PaypalCreatePlan_LinkDescriptionSchema = zod.z.object({
50
50
  rel: zod.z.string().describe("The link relationship type.").nullable(),
51
51
  href: zod.z.string().describe("The complete URL to the related resource.").nullable(),
52
52
  method: zod.z.string().describe("The HTTP method required to access the resource.").nullable().optional()
53
- }).describe("HATEOAS link information for the plan.");
53
+ }).passthrough().describe("HATEOAS link information for the plan.");
54
54
  const PaypalCreatePlan_TaxesSchema = zod.z.object({
55
55
  inclusive: zod.z.boolean().default(true).describe("Indicates whether the tax was already included in the billing amount.").nullable().optional(),
56
56
  percentage: zod.z.string().describe("The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.").nullable()
57
- }).describe("Tax configuration for the plan.");
57
+ }).passthrough().describe("Tax configuration for the plan.");
58
58
  const PaypalCreatePlan_IntervalUnitSchema = zod.z.enum([
59
59
  "DAY",
60
60
  "WEEK",
@@ -64,34 +64,34 @@ const PaypalCreatePlan_IntervalUnitSchema = zod.z.enum([
64
64
  const PaypalCreatePlan_FrequencySchema = zod.z.object({
65
65
  interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),
66
66
  interval_count: zod.z.number().int().describe("The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.").nullable().optional()
67
- }).describe("Billing cycle frequency configuration.");
67
+ }).passthrough().describe("Billing cycle frequency configuration.");
68
68
  const PaypalCreatePlan_TenureTypeSchema = zod.z.enum(["TRIAL", "REGULAR"]).describe("Type of tenure for a billing cycle.");
69
69
  const PaypalCreatePlan_FixedPriceSchema = zod.z.object({
70
70
  value: zod.z.string().describe("The price value as a string. Use decimal format (e.g., '29.99').").nullable(),
71
71
  currency_code: zod.z.string().describe("The three-letter ISO 4217 currency code.").nullable()
72
- }).describe("Fixed price amount for billing.");
72
+ }).passthrough().describe("Fixed price amount for billing.");
73
73
  const PaypalCreatePlan_PricingSchemeSchema = zod.z.object({
74
74
  fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),
75
- pricing_threshold: zod.z.object({}).describe("Pricing threshold configuration as key-value pairs.").nullable().optional()
76
- }).describe("Pricing scheme for a billing cycle.");
75
+ pricing_threshold: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Pricing threshold configuration as key-value pairs.").nullable().optional()
76
+ }).passthrough().describe("Pricing scheme for a billing cycle.");
77
77
  const PaypalCreatePlan_BillingCycleSchema = zod.z.object({
78
78
  sequence: zod.z.number().int().describe("The order of the billing cycle in the sequence of cycles.").nullable(),
79
79
  frequency: PaypalCreatePlan_FrequencySchema.nullable(),
80
80
  tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),
81
81
  total_cycles: zod.z.number().int().describe("The total number of times the billing cycle repeats. Set to 0 for infinite.").nullable().optional(),
82
82
  pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional()
83
- }).describe("Billing cycle configuration for trial or regular billing.");
83
+ }).passthrough().describe("Billing cycle configuration for trial or regular billing.");
84
84
  const PaypalCreatePlan_SetupFeeSchema = zod.z.object({
85
85
  value: zod.z.string().describe("The setup fee value as a string. Use decimal format (e.g., '10.00').").nullable(),
86
86
  currency_code: zod.z.string().describe("The three-letter ISO 4217 currency code for the setup fee.").nullable()
87
- }).describe("Setup fee configuration for payment preferences.");
87
+ }).passthrough().describe("Setup fee configuration for payment preferences.");
88
88
  const PaypalCreatePlan_SetupFeeFailureActionSchema = zod.z.enum(["CONTINUE", "CANCEL"]).describe("Action to take when initial payment for setup fee fails.");
89
89
  const PaypalCreatePlan_PaymentPreferencesSchema = zod.z.object({
90
90
  setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),
91
91
  auto_bill_outstanding: zod.z.boolean().default(true).describe("Indicates whether to automatically bill the outstanding amount in the next billing cycle.").nullable().optional(),
92
92
  setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),
93
93
  payment_failure_threshold: zod.z.number().int().default(0).describe("The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.").nullable().optional()
94
- }).describe("Payment preferences for a subscription.");
94
+ }).passthrough().describe("Payment preferences for a subscription.");
95
95
  const PaypalCreatePlanOutput = zod.z.object({
96
96
  id: zod.z.string().describe("The unique PayPal-generated ID for the plan.").nullable().optional(),
97
97
  name: zod.z.string().describe("The plan name.").nullable().optional(),
@@ -105,7 +105,7 @@ const PaypalCreatePlanOutput = zod.z.object({
105
105
  billing_cycles: zod.z.array(PaypalCreatePlan_BillingCycleSchema).describe("An array of billing cycles for trial billing and regular billing.").nullable().optional(),
106
106
  quantity_supported: zod.z.boolean().describe("Indicates whether you can subscribe to this plan by providing a quantity.").nullable().optional(),
107
107
  payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional()
108
- }).describe("Response schema for a created PayPal billing plan.");
108
+ }).passthrough().describe("Response schema for a created PayPal billing plan.");
109
109
  const paypalCreatePlan = require_action.action("PAYPAL_CREATE_PLAN", {
110
110
  slug: "paypal-create-plan",
111
111
  name: "Create a billing plan",
@@ -1 +1 @@
1
- {"version":3,"file":"create-plan.cjs","names":["z","action"],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePlanInput = z.object({\n name: z.string().describe(\"The plan name. Must be 1-127 characters.\"),\n taxes: z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\"),\n}).describe(\"Tax configuration for the plan.\").optional(),\n status: z.enum([\"CREATED\", \"INACTIVE\", \"ACTIVE\"]).default(\"ACTIVE\").describe(\"Initial state of the plan.\").optional(),\n product_id: z.string().describe(\"The ID of the product created through the Catalog Products API. PayPal-generated IDs are 22 characters (e.g. PROD-...) but custom IDs may be 6-50 characters.\"),\n description: z.string().describe(\"The detailed description of the plan. Must be 1-127 characters.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\"),\n frequency: z.object({\n interval_unit: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The interval unit for billing. One of: DAY, WEEK, MONTH, YEAR.\"),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").optional(),\n}).describe(\"The frequency of the billing cycle.\"),\n tenure_type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The tenure type of the billing cycle. One of: TRIAL, REGULAR.\"),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").optional(),\n pricing_scheme: z.object({\n fixed_price: z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Fixed price amount for billing.\").optional(),\n pricing_threshold: z.object({}).describe(\"Pricing threshold configuration as key-value pairs.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).describe(\"Billing cycle configuration for trial or regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle.\"),\n quantity_supported: z.boolean().default(false).describe(\"Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\"),\n}).describe(\"Setup fee configuration for payment preferences.\").optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").optional(),\n setup_fee_failure_action: z.enum([\"CONTINUE\", \"CANCEL\"]).default(\"CANCEL\").describe(\"Action to take when initial payment for setup fee fails.\").optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").optional(),\n}).describe(\"The payment preferences for a subscription.\"),\n}).describe(\"Request schema for creating a PayPal billing plan.\\n\\nUse when setting up a new subscription billing plan in PayPal.\");\nconst PaypalCreatePlan_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}).describe(\"HATEOAS link information for the plan.\");\nconst PaypalCreatePlan_TaxesSchema = z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\").nullable(),\n}).describe(\"Tax configuration for the plan.\");\nconst PaypalCreatePlan_IntervalUnitSchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"Billing interval unit for frequency.\");\nconst PaypalCreatePlan_FrequencySchema = z.object({\n interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").nullable().optional(),\n}).describe(\"Billing cycle frequency configuration.\");\nconst PaypalCreatePlan_TenureTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"Type of tenure for a billing cycle.\");\nconst PaypalCreatePlan_FixedPriceSchema = z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).describe(\"Fixed price amount for billing.\");\nconst PaypalCreatePlan_PricingSchemeSchema = z.object({\n fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),\n pricing_threshold: z.object({}).describe(\"Pricing threshold configuration as key-value pairs.\").nullable().optional(),\n}).describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreatePlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\").nullable(),\n frequency: PaypalCreatePlan_FrequencySchema.nullable(),\n tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").nullable().optional(),\n pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional(),\n}).describe(\"Billing cycle configuration for trial or regular billing.\");\nconst PaypalCreatePlan_SetupFeeSchema = z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\").nullable(),\n}).describe(\"Setup fee configuration for payment preferences.\");\nconst PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum([\"CONTINUE\", \"CANCEL\"]).describe(\"Action to take when initial payment for setup fee fails.\");\nconst PaypalCreatePlan_PaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").nullable().optional(),\n}).describe(\"Payment preferences for a subscription.\");\nexport const PaypalCreatePlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalCreatePlan_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalCreatePlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. One of: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the plan was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the plan was last updated, in Internet date and time format.\").nullable().optional(),\n billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional(),\n}).describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePlan = action(\"PAYPAL_CREATE_PLAN\", {\n slug: \"paypal-create-plan\",\n name: \"Create a billing plan\",\n description: \"Creates a PayPal billing plan for subscription billing. Use this action when setting up new subscription pricing plans in PayPal, including plans with trial periods, regular billing cycles, and custom payment preferences. The plan must be associated with an existing product. The action returns the created plan object with its unique ID and status.\",\n input: PaypalCreatePlanInput,\n output: PaypalCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO;EAChB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uEA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;AACV,CAAC"}
1
+ {"version":3,"file":"create-plan.cjs","names":["z","action"],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePlanInput = z.object({\n name: z.string().describe(\"The plan name. Must be 1-127 characters.\"),\n taxes: z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\"),\n}).describe(\"Tax configuration for the plan.\").optional(),\n status: z.enum([\"CREATED\", \"INACTIVE\", \"ACTIVE\"]).default(\"ACTIVE\").describe(\"Initial state of the plan.\").optional(),\n product_id: z.string().describe(\"The ID of the product created through the Catalog Products API. PayPal-generated IDs are 22 characters (e.g. PROD-...) but custom IDs may be 6-50 characters.\"),\n description: z.string().describe(\"The detailed description of the plan. Must be 1-127 characters.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\"),\n frequency: z.object({\n interval_unit: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The interval unit for billing. One of: DAY, WEEK, MONTH, YEAR.\"),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").optional(),\n}).describe(\"The frequency of the billing cycle.\"),\n tenure_type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The tenure type of the billing cycle. One of: TRIAL, REGULAR.\"),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").optional(),\n pricing_scheme: z.object({\n fixed_price: z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Fixed price amount for billing.\").optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle.\"),\n quantity_supported: z.boolean().default(false).describe(\"Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\"),\n}).describe(\"Setup fee configuration for payment preferences.\").optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").optional(),\n setup_fee_failure_action: z.enum([\"CONTINUE\", \"CANCEL\"]).default(\"CANCEL\").describe(\"Action to take when initial payment for setup fee fails.\").optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").optional(),\n}).describe(\"The payment preferences for a subscription.\"),\n}).describe(\"Request schema for creating a PayPal billing plan.\\n\\nUse when setting up a new subscription billing plan in PayPal.\");\nconst PaypalCreatePlan_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 for the plan.\");\nconst PaypalCreatePlan_TaxesSchema = z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\").nullable(),\n}).passthrough().describe(\"Tax configuration for the plan.\");\nconst PaypalCreatePlan_IntervalUnitSchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"Billing interval unit for frequency.\");\nconst PaypalCreatePlan_FrequencySchema = z.object({\n interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Billing cycle frequency configuration.\");\nconst PaypalCreatePlan_TenureTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"Type of tenure for a billing cycle.\");\nconst PaypalCreatePlan_FixedPriceSchema = z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Fixed price amount for billing.\");\nconst PaypalCreatePlan_PricingSchemeSchema = z.object({\n fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreatePlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\").nullable(),\n frequency: PaypalCreatePlan_FrequencySchema.nullable(),\n tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").nullable().optional(),\n pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\");\nconst PaypalCreatePlan_SetupFeeSchema = z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\").nullable(),\n}).passthrough().describe(\"Setup fee configuration for payment preferences.\");\nconst PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum([\"CONTINUE\", \"CANCEL\"]).describe(\"Action to take when initial payment for setup fee fails.\");\nconst PaypalCreatePlan_PaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences for a subscription.\");\nexport const PaypalCreatePlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalCreatePlan_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalCreatePlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. One of: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the plan was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the plan was last updated, in Internet date and time format.\").nullable().optional(),\n billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePlan = action(\"PAYPAL_CREATE_PLAN\", {\n slug: \"paypal-create-plan\",\n name: \"Create a billing plan\",\n description: \"Creates a PayPal billing plan for subscription billing. Use this action when setting up new subscription pricing plans in PayPal, including plans with trial periods, regular billing cycles, and custom payment preferences. The plan must be associated with an existing product. The action returns the created plan object with its unique ID and status.\",\n input: PaypalCreatePlanInput,\n output: PaypalCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO;EAChB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACpJ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;CAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC/L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACjC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EAC/F,WAAWA,IAAAA,EAAE,OAAO;GACpB,eAAeA,IAAAA,EAAE,KAAK;IAAC;IAAO;IAAQ;IAAS;GAAM,CAAC,CAAC,CAAC,SAAS,gEAAgE;GACjI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;EACvM,CAAC,CAAC,CAAC,SAAS,qCAAqC;EAC/C,aAAaA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CA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AAS,CAAC,CAAC,SAAS;CACvI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,gBAAgBA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,qBAAqB,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -35,9 +35,9 @@ declare const PaypalCreatePlanInput: z.ZodObject<{
35
35
  value: z.ZodString;
36
36
  currency_code: z.ZodString;
37
37
  }, z.core.$strip>>;
38
- pricing_threshold: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
38
+ pricing_threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
39
  }, z.core.$strip>>;
40
- }, z.core.$strip>>;
40
+ }, z.core.$loose>>;
41
41
  quantity_supported: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42
42
  payment_preferences: z.ZodObject<{
43
43
  setup_fee: z.ZodOptional<z.ZodObject<{
@@ -59,11 +59,11 @@ declare const PaypalCreatePlanOutput: z.ZodObject<{
59
59
  rel: z.ZodNullable<z.ZodString>;
60
60
  href: z.ZodNullable<z.ZodString>;
61
61
  method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- }, z.core.$strip>>>>;
62
+ }, z.core.$loose>>>>;
63
63
  taxes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
64
  inclusive: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
65
65
  percentage: z.ZodNullable<z.ZodString>;
66
- }, z.core.$strip>>>;
66
+ }, z.core.$loose>>>;
67
67
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -79,7 +79,7 @@ declare const PaypalCreatePlanOutput: z.ZodObject<{
79
79
  YEAR: "YEAR";
80
80
  }>>;
81
81
  interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
- }, z.core.$strip>>;
82
+ }, z.core.$loose>>;
83
83
  tenure_type: z.ZodNullable<z.ZodEnum<{
84
84
  TRIAL: "TRIAL";
85
85
  REGULAR: "REGULAR";
@@ -89,28 +89,29 @@ declare const PaypalCreatePlanOutput: z.ZodObject<{
89
89
  fixed_price: z.ZodOptional<z.ZodNullable<z.ZodObject<{
90
90
  value: z.ZodNullable<z.ZodString>;
91
91
  currency_code: z.ZodNullable<z.ZodString>;
92
- }, z.core.$strip>>>;
93
- pricing_threshold: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
94
- }, z.core.$strip>>>;
95
- }, z.core.$strip>>>>;
92
+ }, z.core.$loose>>>;
93
+ pricing_threshold: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
94
+ }, z.core.$loose>>>;
95
+ }, z.core.$loose>>>>;
96
96
  quantity_supported: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
97
  payment_preferences: z.ZodOptional<z.ZodNullable<z.ZodObject<{
98
98
  setup_fee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
99
  value: z.ZodNullable<z.ZodString>;
100
100
  currency_code: z.ZodNullable<z.ZodString>;
101
- }, z.core.$strip>>>;
101
+ }, z.core.$loose>>>;
102
102
  auto_bill_outstanding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
103
103
  setup_fee_failure_action: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
104
104
  CONTINUE: "CONTINUE";
105
105
  CANCEL: "CANCEL";
106
106
  }>>>;
107
107
  payment_failure_threshold: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
108
- }, z.core.$strip>>>;
109
- }, z.core.$strip>;
108
+ }, z.core.$loose>>>;
109
+ }, z.core.$loose>;
110
110
  declare const paypalCreatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
111
111
  name: string;
112
112
  product_id: string;
113
113
  billing_cycles: {
114
+ [x: string]: unknown;
114
115
  sequence: number;
115
116
  frequency: {
116
117
  interval_unit: "DAY" | "WEEK" | "MONTH" | "YEAR";
@@ -123,7 +124,7 @@ declare const paypalCreatePlan: import("@keystrokehq/action").WorkflowActionDefi
123
124
  value: string;
124
125
  currency_code: string;
125
126
  } | undefined;
126
- pricing_threshold?: Record<string, never> | undefined;
127
+ pricing_threshold?: Record<string, unknown> | undefined;
127
128
  } | undefined;
128
129
  }[];
129
130
  payment_preferences: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-plan.d.cts","names":[],"sources":["../../src/actions/create-plan.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6ErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;0BAM3B,MAAA;IAAA;EAAA"}
1
+ {"version":3,"file":"create-plan.d.cts","names":[],"sources":["../../src/actions/create-plan.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6ErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;;0BAM3B,MAAA;IAAA;EAAA"}
@@ -35,9 +35,9 @@ declare const PaypalCreatePlanInput: z.ZodObject<{
35
35
  value: z.ZodString;
36
36
  currency_code: z.ZodString;
37
37
  }, z.core.$strip>>;
38
- pricing_threshold: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
38
+ pricing_threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
39
  }, z.core.$strip>>;
40
- }, z.core.$strip>>;
40
+ }, z.core.$loose>>;
41
41
  quantity_supported: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42
42
  payment_preferences: z.ZodObject<{
43
43
  setup_fee: z.ZodOptional<z.ZodObject<{
@@ -59,11 +59,11 @@ declare const PaypalCreatePlanOutput: z.ZodObject<{
59
59
  rel: z.ZodNullable<z.ZodString>;
60
60
  href: z.ZodNullable<z.ZodString>;
61
61
  method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- }, z.core.$strip>>>>;
62
+ }, z.core.$loose>>>>;
63
63
  taxes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
64
  inclusive: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
65
65
  percentage: z.ZodNullable<z.ZodString>;
66
- }, z.core.$strip>>>;
66
+ }, z.core.$loose>>>;
67
67
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -79,7 +79,7 @@ declare const PaypalCreatePlanOutput: z.ZodObject<{
79
79
  YEAR: "YEAR";
80
80
  }>>;
81
81
  interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
- }, z.core.$strip>>;
82
+ }, z.core.$loose>>;
83
83
  tenure_type: z.ZodNullable<z.ZodEnum<{
84
84
  TRIAL: "TRIAL";
85
85
  REGULAR: "REGULAR";
@@ -89,28 +89,29 @@ declare const PaypalCreatePlanOutput: z.ZodObject<{
89
89
  fixed_price: z.ZodOptional<z.ZodNullable<z.ZodObject<{
90
90
  value: z.ZodNullable<z.ZodString>;
91
91
  currency_code: z.ZodNullable<z.ZodString>;
92
- }, z.core.$strip>>>;
93
- pricing_threshold: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
94
- }, z.core.$strip>>>;
95
- }, z.core.$strip>>>>;
92
+ }, z.core.$loose>>>;
93
+ pricing_threshold: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
94
+ }, z.core.$loose>>>;
95
+ }, z.core.$loose>>>>;
96
96
  quantity_supported: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
97
  payment_preferences: z.ZodOptional<z.ZodNullable<z.ZodObject<{
98
98
  setup_fee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
99
  value: z.ZodNullable<z.ZodString>;
100
100
  currency_code: z.ZodNullable<z.ZodString>;
101
- }, z.core.$strip>>>;
101
+ }, z.core.$loose>>>;
102
102
  auto_bill_outstanding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
103
103
  setup_fee_failure_action: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
104
104
  CONTINUE: "CONTINUE";
105
105
  CANCEL: "CANCEL";
106
106
  }>>>;
107
107
  payment_failure_threshold: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
108
- }, z.core.$strip>>>;
109
- }, z.core.$strip>;
108
+ }, z.core.$loose>>>;
109
+ }, z.core.$loose>;
110
110
  declare const paypalCreatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
111
111
  name: string;
112
112
  product_id: string;
113
113
  billing_cycles: {
114
+ [x: string]: unknown;
114
115
  sequence: number;
115
116
  frequency: {
116
117
  interval_unit: "DAY" | "WEEK" | "MONTH" | "YEAR";
@@ -123,7 +124,7 @@ declare const paypalCreatePlan: import("@keystrokehq/action").WorkflowActionDefi
123
124
  value: string;
124
125
  currency_code: string;
125
126
  } | undefined;
126
- pricing_threshold?: Record<string, never> | undefined;
127
+ pricing_threshold?: Record<string, unknown> | undefined;
127
128
  } | undefined;
128
129
  }[];
129
130
  payment_preferences: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-plan.d.mts","names":[],"sources":["../../src/actions/create-plan.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6ErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;0BAM3B,MAAA;IAAA;EAAA"}
1
+ {"version":3,"file":"create-plan.d.mts","names":[],"sources":["../../src/actions/create-plan.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6ErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;;0BAM3B,MAAA;IAAA;EAAA"}
@@ -32,9 +32,9 @@ const PaypalCreatePlanInput = z.object({
32
32
  value: z.string().describe("The price value as a string. Use decimal format (e.g., '29.99')."),
33
33
  currency_code: z.string().describe("The three-letter ISO 4217 currency code.")
34
34
  }).describe("Fixed price amount for billing.").optional(),
35
- pricing_threshold: z.object({}).describe("Pricing threshold configuration as key-value pairs.").optional()
35
+ pricing_threshold: z.record(z.string(), z.unknown()).describe("Pricing threshold configuration as key-value pairs.").optional()
36
36
  }).describe("Pricing scheme for a billing cycle.").optional()
37
- }).describe("Billing cycle configuration for trial or regular billing.")).describe("An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle."),
37
+ }).passthrough().describe("Billing cycle configuration for trial or regular billing.")).describe("An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle."),
38
38
  quantity_supported: z.boolean().default(false).describe("Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.").optional(),
39
39
  payment_preferences: z.object({
40
40
  setup_fee: z.object({
@@ -50,11 +50,11 @@ const PaypalCreatePlan_LinkDescriptionSchema = z.object({
50
50
  rel: z.string().describe("The link relationship type.").nullable(),
51
51
  href: z.string().describe("The complete URL to the related resource.").nullable(),
52
52
  method: z.string().describe("The HTTP method required to access the resource.").nullable().optional()
53
- }).describe("HATEOAS link information for the plan.");
53
+ }).passthrough().describe("HATEOAS link information for the plan.");
54
54
  const PaypalCreatePlan_TaxesSchema = z.object({
55
55
  inclusive: z.boolean().default(true).describe("Indicates whether the tax was already included in the billing amount.").nullable().optional(),
56
56
  percentage: z.string().describe("The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.").nullable()
57
- }).describe("Tax configuration for the plan.");
57
+ }).passthrough().describe("Tax configuration for the plan.");
58
58
  const PaypalCreatePlan_IntervalUnitSchema = z.enum([
59
59
  "DAY",
60
60
  "WEEK",
@@ -64,34 +64,34 @@ const PaypalCreatePlan_IntervalUnitSchema = z.enum([
64
64
  const PaypalCreatePlan_FrequencySchema = z.object({
65
65
  interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),
66
66
  interval_count: z.number().int().describe("The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.").nullable().optional()
67
- }).describe("Billing cycle frequency configuration.");
67
+ }).passthrough().describe("Billing cycle frequency configuration.");
68
68
  const PaypalCreatePlan_TenureTypeSchema = z.enum(["TRIAL", "REGULAR"]).describe("Type of tenure for a billing cycle.");
69
69
  const PaypalCreatePlan_FixedPriceSchema = z.object({
70
70
  value: z.string().describe("The price value as a string. Use decimal format (e.g., '29.99').").nullable(),
71
71
  currency_code: z.string().describe("The three-letter ISO 4217 currency code.").nullable()
72
- }).describe("Fixed price amount for billing.");
72
+ }).passthrough().describe("Fixed price amount for billing.");
73
73
  const PaypalCreatePlan_PricingSchemeSchema = z.object({
74
74
  fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),
75
- pricing_threshold: z.object({}).describe("Pricing threshold configuration as key-value pairs.").nullable().optional()
76
- }).describe("Pricing scheme for a billing cycle.");
75
+ pricing_threshold: z.record(z.string(), z.unknown()).describe("Pricing threshold configuration as key-value pairs.").nullable().optional()
76
+ }).passthrough().describe("Pricing scheme for a billing cycle.");
77
77
  const PaypalCreatePlan_BillingCycleSchema = z.object({
78
78
  sequence: z.number().int().describe("The order of the billing cycle in the sequence of cycles.").nullable(),
79
79
  frequency: PaypalCreatePlan_FrequencySchema.nullable(),
80
80
  tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),
81
81
  total_cycles: z.number().int().describe("The total number of times the billing cycle repeats. Set to 0 for infinite.").nullable().optional(),
82
82
  pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional()
83
- }).describe("Billing cycle configuration for trial or regular billing.");
83
+ }).passthrough().describe("Billing cycle configuration for trial or regular billing.");
84
84
  const PaypalCreatePlan_SetupFeeSchema = z.object({
85
85
  value: z.string().describe("The setup fee value as a string. Use decimal format (e.g., '10.00').").nullable(),
86
86
  currency_code: z.string().describe("The three-letter ISO 4217 currency code for the setup fee.").nullable()
87
- }).describe("Setup fee configuration for payment preferences.");
87
+ }).passthrough().describe("Setup fee configuration for payment preferences.");
88
88
  const PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum(["CONTINUE", "CANCEL"]).describe("Action to take when initial payment for setup fee fails.");
89
89
  const PaypalCreatePlan_PaymentPreferencesSchema = z.object({
90
90
  setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),
91
91
  auto_bill_outstanding: z.boolean().default(true).describe("Indicates whether to automatically bill the outstanding amount in the next billing cycle.").nullable().optional(),
92
92
  setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),
93
93
  payment_failure_threshold: z.number().int().default(0).describe("The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.").nullable().optional()
94
- }).describe("Payment preferences for a subscription.");
94
+ }).passthrough().describe("Payment preferences for a subscription.");
95
95
  const paypalCreatePlan = action("PAYPAL_CREATE_PLAN", {
96
96
  slug: "paypal-create-plan",
97
97
  name: "Create a billing plan",
@@ -110,7 +110,7 @@ const paypalCreatePlan = action("PAYPAL_CREATE_PLAN", {
110
110
  billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe("An array of billing cycles for trial billing and regular billing.").nullable().optional(),
111
111
  quantity_supported: z.boolean().describe("Indicates whether you can subscribe to this plan by providing a quantity.").nullable().optional(),
112
112
  payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional()
113
- }).describe("Response schema for a created PayPal billing plan.")
113
+ }).passthrough().describe("Response schema for a created PayPal billing plan.")
114
114
  });
115
115
  //#endregion
116
116
  export { paypalCreatePlan };
@@ -1 +1 @@
1
- {"version":3,"file":"create-plan.mjs","names":[],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePlanInput = z.object({\n name: z.string().describe(\"The plan name. Must be 1-127 characters.\"),\n taxes: z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\"),\n}).describe(\"Tax configuration for the plan.\").optional(),\n status: z.enum([\"CREATED\", \"INACTIVE\", \"ACTIVE\"]).default(\"ACTIVE\").describe(\"Initial state of the plan.\").optional(),\n product_id: z.string().describe(\"The ID of the product created through the Catalog Products API. PayPal-generated IDs are 22 characters (e.g. PROD-...) but custom IDs may be 6-50 characters.\"),\n description: z.string().describe(\"The detailed description of the plan. Must be 1-127 characters.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\"),\n frequency: z.object({\n interval_unit: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The interval unit for billing. One of: DAY, WEEK, MONTH, YEAR.\"),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").optional(),\n}).describe(\"The frequency of the billing cycle.\"),\n tenure_type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The tenure type of the billing cycle. One of: TRIAL, REGULAR.\"),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").optional(),\n pricing_scheme: z.object({\n fixed_price: z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Fixed price amount for billing.\").optional(),\n pricing_threshold: z.object({}).describe(\"Pricing threshold configuration as key-value pairs.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).describe(\"Billing cycle configuration for trial or regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle.\"),\n quantity_supported: z.boolean().default(false).describe(\"Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\"),\n}).describe(\"Setup fee configuration for payment preferences.\").optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").optional(),\n setup_fee_failure_action: z.enum([\"CONTINUE\", \"CANCEL\"]).default(\"CANCEL\").describe(\"Action to take when initial payment for setup fee fails.\").optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").optional(),\n}).describe(\"The payment preferences for a subscription.\"),\n}).describe(\"Request schema for creating a PayPal billing plan.\\n\\nUse when setting up a new subscription billing plan in PayPal.\");\nconst PaypalCreatePlan_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}).describe(\"HATEOAS link information for the plan.\");\nconst PaypalCreatePlan_TaxesSchema = z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\").nullable(),\n}).describe(\"Tax configuration for the plan.\");\nconst PaypalCreatePlan_IntervalUnitSchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"Billing interval unit for frequency.\");\nconst PaypalCreatePlan_FrequencySchema = z.object({\n interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").nullable().optional(),\n}).describe(\"Billing cycle frequency configuration.\");\nconst PaypalCreatePlan_TenureTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"Type of tenure for a billing cycle.\");\nconst PaypalCreatePlan_FixedPriceSchema = z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).describe(\"Fixed price amount for billing.\");\nconst PaypalCreatePlan_PricingSchemeSchema = z.object({\n fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),\n pricing_threshold: z.object({}).describe(\"Pricing threshold configuration as key-value pairs.\").nullable().optional(),\n}).describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreatePlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\").nullable(),\n frequency: PaypalCreatePlan_FrequencySchema.nullable(),\n tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").nullable().optional(),\n pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional(),\n}).describe(\"Billing cycle configuration for trial or regular billing.\");\nconst PaypalCreatePlan_SetupFeeSchema = z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\").nullable(),\n}).describe(\"Setup fee configuration for payment preferences.\");\nconst PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum([\"CONTINUE\", \"CANCEL\"]).describe(\"Action to take when initial payment for setup fee fails.\");\nconst PaypalCreatePlan_PaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").nullable().optional(),\n}).describe(\"Payment preferences for a subscription.\");\nexport const PaypalCreatePlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalCreatePlan_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalCreatePlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. One of: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the plan was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the plan was last updated, in Internet date and time format.\").nullable().optional(),\n billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional(),\n}).describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePlan = action(\"PAYPAL_CREATE_PLAN\", {\n slug: \"paypal-create-plan\",\n name: \"Create a billing plan\",\n description: \"Creates a PayPal billing plan for subscription billing. Use this action when setting up new subscription pricing plans in PayPal, including plans with trial periods, regular billing cycles, and custom payment preferences. The plan must be associated with an existing product. The action returns the created plan object with its unique ID and status.\",\n input: PaypalCreatePlanInput,\n output: PaypalCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAO,EAAE,OAAO;EAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACpJ,CAAC,CAAC,CAAC,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,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,gBAAgB,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,qBAAqB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-plan.mjs","names":[],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePlanInput = z.object({\n name: z.string().describe(\"The plan name. Must be 1-127 characters.\"),\n taxes: z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\"),\n}).describe(\"Tax configuration for the plan.\").optional(),\n status: z.enum([\"CREATED\", \"INACTIVE\", \"ACTIVE\"]).default(\"ACTIVE\").describe(\"Initial state of the plan.\").optional(),\n product_id: z.string().describe(\"The ID of the product created through the Catalog Products API. PayPal-generated IDs are 22 characters (e.g. PROD-...) but custom IDs may be 6-50 characters.\"),\n description: z.string().describe(\"The detailed description of the plan. Must be 1-127 characters.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\"),\n frequency: z.object({\n interval_unit: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The interval unit for billing. One of: DAY, WEEK, MONTH, YEAR.\"),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").optional(),\n}).describe(\"The frequency of the billing cycle.\"),\n tenure_type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The tenure type of the billing cycle. One of: TRIAL, REGULAR.\"),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").optional(),\n pricing_scheme: z.object({\n fixed_price: z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Fixed price amount for billing.\").optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle.\"),\n quantity_supported: z.boolean().default(false).describe(\"Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\"),\n}).describe(\"Setup fee configuration for payment preferences.\").optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").optional(),\n setup_fee_failure_action: z.enum([\"CONTINUE\", \"CANCEL\"]).default(\"CANCEL\").describe(\"Action to take when initial payment for setup fee fails.\").optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").optional(),\n}).describe(\"The payment preferences for a subscription.\"),\n}).describe(\"Request schema for creating a PayPal billing plan.\\n\\nUse when setting up a new subscription billing plan in PayPal.\");\nconst PaypalCreatePlan_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 for the plan.\");\nconst PaypalCreatePlan_TaxesSchema = z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\").nullable(),\n}).passthrough().describe(\"Tax configuration for the plan.\");\nconst PaypalCreatePlan_IntervalUnitSchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"Billing interval unit for frequency.\");\nconst PaypalCreatePlan_FrequencySchema = z.object({\n interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Billing cycle frequency configuration.\");\nconst PaypalCreatePlan_TenureTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"Type of tenure for a billing cycle.\");\nconst PaypalCreatePlan_FixedPriceSchema = z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Fixed price amount for billing.\");\nconst PaypalCreatePlan_PricingSchemeSchema = z.object({\n fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreatePlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\").nullable(),\n frequency: PaypalCreatePlan_FrequencySchema.nullable(),\n tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").nullable().optional(),\n pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\");\nconst PaypalCreatePlan_SetupFeeSchema = z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\").nullable(),\n}).passthrough().describe(\"Setup fee configuration for payment preferences.\");\nconst PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum([\"CONTINUE\", \"CANCEL\"]).describe(\"Action to take when initial payment for setup fee fails.\");\nconst PaypalCreatePlan_PaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences for a subscription.\");\nexport const PaypalCreatePlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalCreatePlan_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalCreatePlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. One of: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the plan was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the plan was last updated, in Internet date and time format.\").nullable().optional(),\n billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePlan = action(\"PAYPAL_CREATE_PLAN\", {\n slug: \"paypal-create-plan\",\n name: \"Create a billing plan\",\n description: \"Creates a PayPal billing plan for subscription billing. Use this action when setting up new subscription pricing plans in PayPal, including plans with trial periods, regular billing cycles, and custom payment preferences. The plan must be associated with an existing product. The action returns the created plan object with its unique ID and status.\",\n input: PaypalCreatePlanInput,\n output: PaypalCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAO,EAAE,OAAO;EAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACpJ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtD,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAY;CAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC/L,aAAa,EA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iD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,gBAAgB,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,qBAAqB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -164,7 +164,7 @@ const PaypalCreateProduct_LinkDescriptionSchema = zod.z.object({
164
164
  rel: zod.z.string().describe("The link relation type (e.g., 'self', 'up').").nullable().optional(),
165
165
  href: zod.z.string().describe("The URL of the link.").nullable().optional(),
166
166
  method: zod.z.string().describe("The HTTP method for the link (e.g., 'GET', 'POST').").nullable().optional()
167
- }).describe("HATEOAS link information returned in the response.");
167
+ }).passthrough().describe("HATEOAS link information returned in the response.");
168
168
  const PaypalCreateProductOutput = zod.z.object({
169
169
  id: zod.z.string().describe("The unique identifier for the product.").nullable().optional(),
170
170
  name: zod.z.string().describe("The product name.").nullable().optional(),
@@ -176,7 +176,7 @@ const PaypalCreateProductOutput = zod.z.object({
176
176
  create_time: zod.z.string().describe("The date and time when the product was created, in Internet date and time format.").nullable().optional(),
177
177
  description: zod.z.string().describe("The product description.").nullable().optional(),
178
178
  update_time: zod.z.string().describe("The date and time when the product was last updated, in Internet date and time format.").nullable().optional()
179
- }).describe("Response model returned after creating a PayPal product.");
179
+ }).passthrough().describe("Response model returned after creating a PayPal product.");
180
180
  const paypalCreateProduct = require_action.action("PAYPAL_CREATE_PRODUCT", {
181
181
  slug: "paypal-create-product",
182
182
  name: "Create Product",
@@ -1 +1 @@
1
- {"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateProductInput = z.object({\n id: z.string().describe(\"The ID for the product. You can specify the SKU for the product. If omitted, the system generates an ID with the PROD- prefix.\").optional(),\n name: z.string().describe(\"The product name. Required. Maximum 127 characters.\"),\n type: z.enum([\"PHYSICAL\", \"DIGITAL\", \"SERVICE\"]).default(\"PHYSICAL\").describe(\"The product type. Indicates whether the product is physical or digital goods, or a service. Default: PHYSICAL.\").optional(),\n category: z.enum([\"ACCESSORIES\", \"ACCOUNTING\", \"ADULT\", \"ADVERTISING\", \"AIRLINES\", \"ANTIQUES\", \"ART_AND_CRAFT_SUPPLIES\", \"ART_DEALERS_AND_GALLERIES\", \"ARTS_AND_CRAFTS\", \"AUDIO_BOOKS\", \"AUTOMOTIVE\", \"BABIES_CLOTHING_AND_SUPPLIES\", \"BANKING\", \"BEAUTY_AND_FRAGRANCES\", \"BOOKS\", \"BOOKS_AND_MAGAZINES\", \"BUSINESS\", \"CAMERAS_AND_PHOTOGRAPHY\", \"CAR_AND_TRUCK_DEALERS\", \"CHARITY\", \"CLOTHING\", \"CLOTHING_ACCESSORIES_AND_SHOES\", \"COFFEE_AND_TEA\", \"COLLECTIBLES\", \"COMPUTER_HARDWARE_AND_SOFTWARE\", \"CONSTRUCTION\", \"CONSUMER_ELECTRONICS\", \"COSMETIC_STORES\", \"CATERING_SERVICES\", \"CURRENCY\", \"DAIRY_PRODUCTS\", \"DANCE_HALLS_STUDIOS_AND_SCHOOLS\", \"DENTAL\", \"DEPARTMENT_STORES\", \"DIGITAL_GOODS\", \"DIGITAL_MEDIA_BOOKS_MOVIES_MUSIC\", \"DOGS_AND_CATS\", \"DOWNLOAD\", \"DRUGSTORE\", \"DURABLE_GOODS\", \"ECOMMERCE_DEVELOPMENT\", \"EDUCATION\", \"ELECTRONICS\", \"ENTERTAINMENT\", \"EQUIPMENT\", \"EVENTS\", \"FASHION_JEWELRY\", \"FERTILIZERS\", \"FINANCIAL\", \"FINANCIAL_SERVICES\", \"FIREARMS_WEAPONS_AND_KNIVES\", \"FLORISTS\", \"FOOD\", \"FOOD_PRODUCTS\", \"FUNERAL\", \"FURNITURE\", \"GADGETS_AND_OTHER_ELECTRONICS\", \"GAMBLING\", \"GAMES\", \"GARDEN_SUPPLIES\", \"GENERAL\", \"GIFTS_AND_FLOWERS\", \"GOVERNMENT\", \"HARDWARE_AND_TOOLS\", \"HEALTH_AND_NUTRITION\", \"HEALTH_AND_PERSONAL_CARE\", \"HOBBIES_TOYS_AND_GAMES\", \"HOME_AND_GARDEN\", \"HOTELS_MOTELS_INNS_RESORTS\", \"HUMOROUS_GIFTS_AND_NOVELTIES\", \"INSURANCE\", \"JEWELRY_AND_WATCHES\", \"KITCHEN\", \"LAW\", \"LEGAL_SERVICES_AND_ATTORNEYS\", \"LIVESTOCK\", \"LOCAL_DELIVERY_SERVICE\", \"LOCKSMITH\", \"LOTTERY_AND_CONTESTS\", \"LUGGAGE_AND_LEATHER_GOODS\", \"LUXURY\", \"MAGAZINES\", \"MARINE_SUPPLIES\", \"MEDICAL\", \"MEDICAL_AND_PHARMACEUTICAL\", \"MEMORABILIA\", \"MILITARY\", \"MOBILE_RINGTONES\", \"MOTION_PICTURE_THEATERS\", \"MOVIE_TICKETS\", \"MULTI_LEVEL_MARKETING\", \"MUSIC\", \"MUSIC_CDS_CASSETTES_AND_ALBUMS\", \"NETWORKING\", \"NON_DURABLE_GOODS\", \"NON_PROFIT_POLITICAL_AND_RELIGION\", \"NUTRITION\", \"OFFICE\", \"OFFICE_SUPPLIES_AND_EQUIPMENT\", \"ONLINE_DATING\", \"ONLINE_GAMING\", \"ONLINE_SERVICES\", \"OPTICAL\", \"OTHER\", \"OUTDOOR\", \"PACKAGING\", \"PEST_CONTROL\", \"PET_SHOPS_PET_FOOD_AND_SUPPLIES\", \"PETROLEUM_AND_PETROLEUM_PRODUCTS\", \"PHOTOFINISHING\", \"PHOTOGRAPHY\", \"PHYSICAL_GOOD\", \"PRECIOUS_STONES_AND_GOODS\", \"PRESCRIPTION_DRUGS\", \"PRINTING\", \"PROMOTIONAL_ITEMS\", \"PUBLISHING\", \"PUBLISHING_AND_PRINTING\", \"REAL_ESTATE\", \"RECREATIONAL\", \"RELIGIOUS\", \"RENTAL\", \"REPAIR\", \"RESTAURANTS\", \"RETAIL\", \"SCHOOLS_AND_COLLEGES\", \"SERVICES\", \"SHOES\", \"SOFTWARE\", \"SPORTING\", \"SPORTING_GOODS\", \"SUBSCRIPTIONS\", \"TELECOMMUNICATION\", \"TEXTILE\", \"THEATER\", \"TOOLS_AND_EQUIPMENT\", \"TOYS_AND_GAMES\", \"TRAVEL\", \"TRUCK_AND_UTILITY_TRAILER_RENTALS\", \"UTILITIES\", \"VETERINARY\", \"VIDEO_GAMES_AND_SYSTEMS\", \"WASTE_MANAGEMENT\", \"WHOLESALE\", \"WINE_AND_ALCOHOL\"]).describe(\"The product category classification.\").optional(),\n home_url: z.string().describe(\"The home page URL for the product. Must be a valid URI.\").optional(),\n image_url: z.string().describe(\"The image URL for the product. Must be a valid URI.\").optional(),\n description: z.string().describe(\"The product description. Maximum 256 characters.\").optional(),\n}).describe(\"Request model for creating a new PayPal product.\");\nconst PaypalCreateProduct_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up').\").nullable().optional(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link (e.g., 'GET', 'POST').\").nullable().optional(),\n}).describe(\"HATEOAS link information returned in the response.\");\nexport const PaypalCreateProductOutput = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable().optional(),\n name: z.string().describe(\"The product name.\").nullable().optional(),\n type: z.string().describe(\"The product type: PHYSICAL, DIGITAL, or SERVICE.\").nullable().optional(),\n links: z.array(PaypalCreateProduct_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n category: z.string().describe(\"The product category.\").nullable().optional(),\n home_url: z.string().describe(\"The home page URL for the product.\").nullable().optional(),\n image_url: z.string().describe(\"The image URL for the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the product was last updated, in Internet date and time format.\").nullable().optional(),\n}).describe(\"Response model returned after creating a PayPal product.\");\n\nexport const paypalCreateProduct = action(\"PAYPAL_CREATE_PRODUCT\", {\n slug: \"paypal-create-product\",\n name: \"Create Product\",\n description: \"Creates a new product in PayPal's catalog. Use when you need to set up a product that can be used with PayPal's subscription or payment services. The product can be physical goods, digital goods, or a service. Once created, you can associate plans and pricing with this product. Use this action when you want to create a new product entry in PayPal's catalog system for selling physical items, digital products, or services through PayPal's payment infrastructure.\",\n input: PaypalCreateProductInput,\n output: PaypalCreateProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACnK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC/E,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAW;CAAS,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACzM,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;EAAS;EAAe;EAAY;EAAY;EAA0B;EAA6B;EAAmB;EAAe;EAAc;EAAgC;EAAW;EAAyB;EAAS;EAAuB;EAAY;EAA2B;EAAyB;EAAW;EAAY;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,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateProductInput = z.object({\n id: z.string().describe(\"The ID for the product. You can specify the SKU for the product. If omitted, the system generates an ID with the PROD- prefix.\").optional(),\n name: z.string().describe(\"The product name. Required. Maximum 127 characters.\"),\n type: z.enum([\"PHYSICAL\", \"DIGITAL\", \"SERVICE\"]).default(\"PHYSICAL\").describe(\"The product type. Indicates whether the product is physical or digital goods, or a service. Default: PHYSICAL.\").optional(),\n category: z.enum([\"ACCESSORIES\", \"ACCOUNTING\", \"ADULT\", \"ADVERTISING\", \"AIRLINES\", \"ANTIQUES\", \"ART_AND_CRAFT_SUPPLIES\", \"ART_DEALERS_AND_GALLERIES\", \"ARTS_AND_CRAFTS\", \"AUDIO_BOOKS\", \"AUTOMOTIVE\", \"BABIES_CLOTHING_AND_SUPPLIES\", \"BANKING\", \"BEAUTY_AND_FRAGRANCES\", \"BOOKS\", \"BOOKS_AND_MAGAZINES\", \"BUSINESS\", \"CAMERAS_AND_PHOTOGRAPHY\", \"CAR_AND_TRUCK_DEALERS\", \"CHARITY\", \"CLOTHING\", \"CLOTHING_ACCESSORIES_AND_SHOES\", \"COFFEE_AND_TEA\", \"COLLECTIBLES\", \"COMPUTER_HARDWARE_AND_SOFTWARE\", \"CONSTRUCTION\", \"CONSUMER_ELECTRONICS\", \"COSMETIC_STORES\", \"CATERING_SERVICES\", \"CURRENCY\", \"DAIRY_PRODUCTS\", \"DANCE_HALLS_STUDIOS_AND_SCHOOLS\", \"DENTAL\", \"DEPARTMENT_STORES\", \"DIGITAL_GOODS\", \"DIGITAL_MEDIA_BOOKS_MOVIES_MUSIC\", \"DOGS_AND_CATS\", \"DOWNLOAD\", \"DRUGSTORE\", \"DURABLE_GOODS\", \"ECOMMERCE_DEVELOPMENT\", \"EDUCATION\", \"ELECTRONICS\", \"ENTERTAINMENT\", \"EQUIPMENT\", \"EVENTS\", \"FASHION_JEWELRY\", \"FERTILIZERS\", \"FINANCIAL\", \"FINANCIAL_SERVICES\", \"FIREARMS_WEAPONS_AND_KNIVES\", \"FLORISTS\", \"FOOD\", \"FOOD_PRODUCTS\", \"FUNERAL\", \"FURNITURE\", \"GADGETS_AND_OTHER_ELECTRONICS\", \"GAMBLING\", \"GAMES\", \"GARDEN_SUPPLIES\", \"GENERAL\", \"GIFTS_AND_FLOWERS\", \"GOVERNMENT\", \"HARDWARE_AND_TOOLS\", \"HEALTH_AND_NUTRITION\", \"HEALTH_AND_PERSONAL_CARE\", \"HOBBIES_TOYS_AND_GAMES\", \"HOME_AND_GARDEN\", \"HOTELS_MOTELS_INNS_RESORTS\", \"HUMOROUS_GIFTS_AND_NOVELTIES\", \"INSURANCE\", \"JEWELRY_AND_WATCHES\", \"KITCHEN\", \"LAW\", \"LEGAL_SERVICES_AND_ATTORNEYS\", \"LIVESTOCK\", \"LOCAL_DELIVERY_SERVICE\", \"LOCKSMITH\", \"LOTTERY_AND_CONTESTS\", \"LUGGAGE_AND_LEATHER_GOODS\", \"LUXURY\", \"MAGAZINES\", \"MARINE_SUPPLIES\", \"MEDICAL\", \"MEDICAL_AND_PHARMACEUTICAL\", \"MEMORABILIA\", \"MILITARY\", \"MOBILE_RINGTONES\", \"MOTION_PICTURE_THEATERS\", \"MOVIE_TICKETS\", \"MULTI_LEVEL_MARKETING\", \"MUSIC\", \"MUSIC_CDS_CASSETTES_AND_ALBUMS\", \"NETWORKING\", \"NON_DURABLE_GOODS\", \"NON_PROFIT_POLITICAL_AND_RELIGION\", \"NUTRITION\", \"OFFICE\", \"OFFICE_SUPPLIES_AND_EQUIPMENT\", \"ONLINE_DATING\", \"ONLINE_GAMING\", \"ONLINE_SERVICES\", \"OPTICAL\", \"OTHER\", \"OUTDOOR\", \"PACKAGING\", \"PEST_CONTROL\", \"PET_SHOPS_PET_FOOD_AND_SUPPLIES\", \"PETROLEUM_AND_PETROLEUM_PRODUCTS\", \"PHOTOFINISHING\", \"PHOTOGRAPHY\", \"PHYSICAL_GOOD\", \"PRECIOUS_STONES_AND_GOODS\", \"PRESCRIPTION_DRUGS\", \"PRINTING\", \"PROMOTIONAL_ITEMS\", \"PUBLISHING\", \"PUBLISHING_AND_PRINTING\", \"REAL_ESTATE\", \"RECREATIONAL\", \"RELIGIOUS\", \"RENTAL\", \"REPAIR\", \"RESTAURANTS\", \"RETAIL\", \"SCHOOLS_AND_COLLEGES\", \"SERVICES\", \"SHOES\", \"SOFTWARE\", \"SPORTING\", \"SPORTING_GOODS\", \"SUBSCRIPTIONS\", \"TELECOMMUNICATION\", \"TEXTILE\", \"THEATER\", \"TOOLS_AND_EQUIPMENT\", \"TOYS_AND_GAMES\", \"TRAVEL\", \"TRUCK_AND_UTILITY_TRAILER_RENTALS\", \"UTILITIES\", \"VETERINARY\", \"VIDEO_GAMES_AND_SYSTEMS\", \"WASTE_MANAGEMENT\", \"WHOLESALE\", \"WINE_AND_ALCOHOL\"]).describe(\"The product category classification.\").optional(),\n home_url: z.string().describe(\"The home page URL for the product. Must be a valid URI.\").optional(),\n image_url: z.string().describe(\"The image URL for the product. Must be a valid URI.\").optional(),\n description: z.string().describe(\"The product description. Maximum 256 characters.\").optional(),\n}).describe(\"Request model for creating a new PayPal product.\");\nconst PaypalCreateProduct_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up').\").nullable().optional(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information returned in the response.\");\nexport const PaypalCreateProductOutput = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable().optional(),\n name: z.string().describe(\"The product name.\").nullable().optional(),\n type: z.string().describe(\"The product type: PHYSICAL, DIGITAL, or SERVICE.\").nullable().optional(),\n links: z.array(PaypalCreateProduct_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n category: z.string().describe(\"The product category.\").nullable().optional(),\n home_url: z.string().describe(\"The home page URL for the product.\").nullable().optional(),\n image_url: z.string().describe(\"The image URL for the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the product was last updated, in Internet date and time format.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a PayPal product.\");\n\nexport const paypalCreateProduct = action(\"PAYPAL_CREATE_PRODUCT\", {\n slug: \"paypal-create-product\",\n name: \"Create Product\",\n description: \"Creates a new product in PayPal's catalog. Use when you need to set up a product that can be used with PayPal's subscription or payment services. The product can be physical goods, digital goods, or a service. Once created, you can associate plans and pricing with this product. Use this action when you want to create a new product entry in PayPal's catalog system for selling physical items, digital products, or services through PayPal's payment infrastructure.\",\n input: PaypalCreateProductInput,\n output: PaypalCreateProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACnK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC/E,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAW;CAAS,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACzM,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;EAAS;EAAe;EAAY;EAAY;EAA0B;EAA6B;EA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O,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -168,14 +168,14 @@ declare const PaypalCreateProductOutput: z.ZodObject<{
168
168
  rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
169
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
170
  method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
- }, z.core.$strip>>>>;
171
+ }, z.core.$loose>>>>;
172
172
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
173
  home_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
174
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
175
  create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
176
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
177
  update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
- }, z.core.$strip>;
178
+ }, z.core.$loose>;
179
179
  declare const paypalCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
180
180
  name: string;
181
181
  id?: string | undefined;
@@ -168,14 +168,14 @@ declare const PaypalCreateProductOutput: z.ZodObject<{
168
168
  rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
169
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
170
  method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
- }, z.core.$strip>>>>;
171
+ }, z.core.$loose>>>>;
172
172
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
173
  home_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
174
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
175
  create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
176
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
177
  update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
- }, z.core.$strip>;
178
+ }, z.core.$loose>;
179
179
  declare const paypalCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
180
180
  name: string;
181
181
  id?: string | undefined;