@xyo-network/payment-payload-plugins 2.99.4 → 2.99.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/dist/browser/Billing/Address/Address.d.cts +1 -1
  2. package/dist/browser/Billing/Address/Address.d.mts +1 -1
  3. package/dist/browser/Billing/Address/Address.d.ts +1 -1
  4. package/dist/browser/Billing/Address/index.d.cts +2 -2
  5. package/dist/browser/Billing/Address/index.d.mts +2 -2
  6. package/dist/browser/Billing/Address/index.d.ts +2 -2
  7. package/dist/browser/Billing/index.d.cts +2 -2
  8. package/dist/browser/Billing/index.d.mts +2 -2
  9. package/dist/browser/Billing/index.d.ts +2 -2
  10. package/dist/browser/Escrow/createEscrowIntent.d.cts +1 -1
  11. package/dist/browser/Escrow/createEscrowIntent.d.mts +1 -1
  12. package/dist/browser/Escrow/createEscrowIntent.d.ts +1 -1
  13. package/dist/browser/Escrow/index.d.cts +6 -6
  14. package/dist/browser/Escrow/index.d.mts +6 -6
  15. package/dist/browser/Escrow/index.d.ts +6 -6
  16. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/index.d.cts +1 -1
  17. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/index.d.mts +1 -1
  18. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +1 -1
  19. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.cts +1 -1
  20. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.mts +1 -1
  21. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  22. package/dist/browser/Escrow/validators/common/TemporalValidators/index.d.cts +1 -1
  23. package/dist/browser/Escrow/validators/common/TemporalValidators/index.d.mts +1 -1
  24. package/dist/browser/Escrow/validators/common/TemporalValidators/index.d.ts +1 -1
  25. package/dist/browser/Escrow/validators/common/index.d.cts +2 -2
  26. package/dist/browser/Escrow/validators/common/index.d.mts +2 -2
  27. package/dist/browser/Escrow/validators/common/index.d.ts +2 -2
  28. package/dist/browser/Escrow/validators/escrow/agent.d.cts +1 -1
  29. package/dist/browser/Escrow/validators/escrow/agent.d.mts +1 -1
  30. package/dist/browser/Escrow/validators/escrow/agent.d.ts +1 -1
  31. package/dist/browser/Escrow/validators/escrow/appraisal.d.cts +1 -1
  32. package/dist/browser/Escrow/validators/escrow/appraisal.d.mts +1 -1
  33. package/dist/browser/Escrow/validators/escrow/appraisal.d.ts +1 -1
  34. package/dist/browser/Escrow/validators/escrow/appraisalAuthorities.d.cts +1 -1
  35. package/dist/browser/Escrow/validators/escrow/appraisalAuthorities.d.mts +1 -1
  36. package/dist/browser/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  37. package/dist/browser/Escrow/validators/escrow/assets.d.cts +1 -1
  38. package/dist/browser/Escrow/validators/escrow/assets.d.mts +1 -1
  39. package/dist/browser/Escrow/validators/escrow/assets.d.ts +1 -1
  40. package/dist/browser/Escrow/validators/escrow/buyer.d.cts +1 -1
  41. package/dist/browser/Escrow/validators/escrow/buyer.d.mts +1 -1
  42. package/dist/browser/Escrow/validators/escrow/buyer.d.ts +1 -1
  43. package/dist/browser/Escrow/validators/escrow/buyerSecret.d.cts +1 -1
  44. package/dist/browser/Escrow/validators/escrow/buyerSecret.d.mts +1 -1
  45. package/dist/browser/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
  46. package/dist/browser/Escrow/validators/escrow/index.d.cts +10 -10
  47. package/dist/browser/Escrow/validators/escrow/index.d.mts +10 -10
  48. package/dist/browser/Escrow/validators/escrow/index.d.ts +10 -10
  49. package/dist/browser/Escrow/validators/escrow/nbfExp.d.cts +1 -1
  50. package/dist/browser/Escrow/validators/escrow/nbfExp.d.mts +1 -1
  51. package/dist/browser/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  52. package/dist/browser/Escrow/validators/escrow/paymentAuthorities.d.cts +1 -1
  53. package/dist/browser/Escrow/validators/escrow/paymentAuthorities.d.mts +1 -1
  54. package/dist/browser/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  55. package/dist/browser/Escrow/validators/escrow/seller.d.cts +1 -1
  56. package/dist/browser/Escrow/validators/escrow/seller.d.mts +1 -1
  57. package/dist/browser/Escrow/validators/escrow/seller.d.ts +1 -1
  58. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.cts +1 -1
  59. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.mts +1 -1
  60. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
  61. package/dist/browser/Escrow/validators/index.d.cts +2 -2
  62. package/dist/browser/Escrow/validators/index.d.mts +2 -2
  63. package/dist/browser/Escrow/validators/index.d.ts +2 -2
  64. package/dist/browser/Payment/Instrument/Card/Payload.d.cts +1 -1
  65. package/dist/browser/Payment/Instrument/Card/Payload.d.mts +1 -1
  66. package/dist/browser/Payment/Instrument/Card/Payload.d.ts +1 -1
  67. package/dist/browser/Payment/Instrument/Card/index.d.cts +2 -2
  68. package/dist/browser/Payment/Instrument/Card/index.d.mts +2 -2
  69. package/dist/browser/Payment/Instrument/Card/index.d.ts +2 -2
  70. package/dist/browser/Payment/Instrument/index.d.cts +2 -2
  71. package/dist/browser/Payment/Instrument/index.d.mts +2 -2
  72. package/dist/browser/Payment/Instrument/index.d.ts +2 -2
  73. package/dist/browser/Payment/Payload.d.cts +2 -2
  74. package/dist/browser/Payment/Payload.d.mts +2 -2
  75. package/dist/browser/Payment/Payload.d.ts +2 -2
  76. package/dist/browser/Payment/Status/Payload.d.cts +1 -1
  77. package/dist/browser/Payment/Status/Payload.d.mts +1 -1
  78. package/dist/browser/Payment/Status/Payload.d.ts +1 -1
  79. package/dist/browser/Payment/Status/index.d.cts +2 -2
  80. package/dist/browser/Payment/Status/index.d.mts +2 -2
  81. package/dist/browser/Payment/Status/index.d.ts +2 -2
  82. package/dist/browser/Payment/index.d.cts +4 -4
  83. package/dist/browser/Payment/index.d.mts +4 -4
  84. package/dist/browser/Payment/index.d.ts +4 -4
  85. package/dist/browser/Purchase/Payload.d.cts +1 -1
  86. package/dist/browser/Purchase/Payload.d.mts +1 -1
  87. package/dist/browser/Purchase/Payload.d.ts +1 -1
  88. package/dist/browser/Purchase/index.d.cts +2 -2
  89. package/dist/browser/Purchase/index.d.mts +2 -2
  90. package/dist/browser/Purchase/index.d.ts +2 -2
  91. package/dist/browser/Receipt/Payload.d.cts +2 -2
  92. package/dist/browser/Receipt/Payload.d.mts +2 -2
  93. package/dist/browser/Receipt/Payload.d.ts +2 -2
  94. package/dist/browser/Receipt/index.d.cts +2 -2
  95. package/dist/browser/Receipt/index.d.mts +2 -2
  96. package/dist/browser/Receipt/index.d.ts +2 -2
  97. package/dist/browser/index.cjs +79 -59
  98. package/dist/browser/index.cjs.map +1 -1
  99. package/dist/browser/index.d.cts +6 -6
  100. package/dist/browser/index.d.mts +6 -6
  101. package/dist/browser/index.d.ts +6 -6
  102. package/dist/browser/{index.js → index.mjs} +87 -85
  103. package/dist/browser/index.mjs.map +1 -0
  104. package/dist/neutral/Billing/Address/Address.d.cts +1 -1
  105. package/dist/neutral/Billing/Address/Address.d.mts +1 -1
  106. package/dist/neutral/Billing/Address/Address.d.ts +1 -1
  107. package/dist/neutral/Billing/Address/index.d.cts +2 -2
  108. package/dist/neutral/Billing/Address/index.d.mts +2 -2
  109. package/dist/neutral/Billing/Address/index.d.ts +2 -2
  110. package/dist/neutral/Billing/index.d.cts +2 -2
  111. package/dist/neutral/Billing/index.d.mts +2 -2
  112. package/dist/neutral/Billing/index.d.ts +2 -2
  113. package/dist/neutral/Escrow/createEscrowIntent.d.cts +1 -1
  114. package/dist/neutral/Escrow/createEscrowIntent.d.mts +1 -1
  115. package/dist/neutral/Escrow/createEscrowIntent.d.ts +1 -1
  116. package/dist/neutral/Escrow/index.d.cts +6 -6
  117. package/dist/neutral/Escrow/index.d.mts +6 -6
  118. package/dist/neutral/Escrow/index.d.ts +6 -6
  119. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.cts +1 -1
  120. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.mts +1 -1
  121. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +1 -1
  122. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.cts +1 -1
  123. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.mts +1 -1
  124. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  125. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.cts +1 -1
  126. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.mts +1 -1
  127. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +1 -1
  128. package/dist/neutral/Escrow/validators/common/index.d.cts +2 -2
  129. package/dist/neutral/Escrow/validators/common/index.d.mts +2 -2
  130. package/dist/neutral/Escrow/validators/common/index.d.ts +2 -2
  131. package/dist/neutral/Escrow/validators/escrow/agent.d.cts +1 -1
  132. package/dist/neutral/Escrow/validators/escrow/agent.d.mts +1 -1
  133. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +1 -1
  134. package/dist/neutral/Escrow/validators/escrow/appraisal.d.cts +1 -1
  135. package/dist/neutral/Escrow/validators/escrow/appraisal.d.mts +1 -1
  136. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +1 -1
  137. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.cts +1 -1
  138. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.mts +1 -1
  139. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  140. package/dist/neutral/Escrow/validators/escrow/assets.d.cts +1 -1
  141. package/dist/neutral/Escrow/validators/escrow/assets.d.mts +1 -1
  142. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +1 -1
  143. package/dist/neutral/Escrow/validators/escrow/buyer.d.cts +1 -1
  144. package/dist/neutral/Escrow/validators/escrow/buyer.d.mts +1 -1
  145. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +1 -1
  146. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.cts +1 -1
  147. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.mts +1 -1
  148. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
  149. package/dist/neutral/Escrow/validators/escrow/index.d.cts +10 -10
  150. package/dist/neutral/Escrow/validators/escrow/index.d.mts +10 -10
  151. package/dist/neutral/Escrow/validators/escrow/index.d.ts +10 -10
  152. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.cts +1 -1
  153. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.mts +1 -1
  154. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  155. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.cts +1 -1
  156. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.mts +1 -1
  157. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  158. package/dist/neutral/Escrow/validators/escrow/seller.d.cts +1 -1
  159. package/dist/neutral/Escrow/validators/escrow/seller.d.mts +1 -1
  160. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +1 -1
  161. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.cts +1 -1
  162. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.mts +1 -1
  163. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
  164. package/dist/neutral/Escrow/validators/index.d.cts +2 -2
  165. package/dist/neutral/Escrow/validators/index.d.mts +2 -2
  166. package/dist/neutral/Escrow/validators/index.d.ts +2 -2
  167. package/dist/neutral/Payment/Instrument/Card/Payload.d.cts +1 -1
  168. package/dist/neutral/Payment/Instrument/Card/Payload.d.mts +1 -1
  169. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +1 -1
  170. package/dist/neutral/Payment/Instrument/Card/index.d.cts +2 -2
  171. package/dist/neutral/Payment/Instrument/Card/index.d.mts +2 -2
  172. package/dist/neutral/Payment/Instrument/Card/index.d.ts +2 -2
  173. package/dist/neutral/Payment/Instrument/index.d.cts +2 -2
  174. package/dist/neutral/Payment/Instrument/index.d.mts +2 -2
  175. package/dist/neutral/Payment/Instrument/index.d.ts +2 -2
  176. package/dist/neutral/Payment/Payload.d.cts +2 -2
  177. package/dist/neutral/Payment/Payload.d.mts +2 -2
  178. package/dist/neutral/Payment/Payload.d.ts +2 -2
  179. package/dist/neutral/Payment/Status/Payload.d.cts +1 -1
  180. package/dist/neutral/Payment/Status/Payload.d.mts +1 -1
  181. package/dist/neutral/Payment/Status/Payload.d.ts +1 -1
  182. package/dist/neutral/Payment/Status/index.d.cts +2 -2
  183. package/dist/neutral/Payment/Status/index.d.mts +2 -2
  184. package/dist/neutral/Payment/Status/index.d.ts +2 -2
  185. package/dist/neutral/Payment/index.d.cts +4 -4
  186. package/dist/neutral/Payment/index.d.mts +4 -4
  187. package/dist/neutral/Payment/index.d.ts +4 -4
  188. package/dist/neutral/Purchase/Payload.d.cts +1 -1
  189. package/dist/neutral/Purchase/Payload.d.mts +1 -1
  190. package/dist/neutral/Purchase/Payload.d.ts +1 -1
  191. package/dist/neutral/Purchase/index.d.cts +2 -2
  192. package/dist/neutral/Purchase/index.d.mts +2 -2
  193. package/dist/neutral/Purchase/index.d.ts +2 -2
  194. package/dist/neutral/Receipt/Payload.d.cts +2 -2
  195. package/dist/neutral/Receipt/Payload.d.mts +2 -2
  196. package/dist/neutral/Receipt/Payload.d.ts +2 -2
  197. package/dist/neutral/Receipt/index.d.cts +2 -2
  198. package/dist/neutral/Receipt/index.d.mts +2 -2
  199. package/dist/neutral/Receipt/index.d.ts +2 -2
  200. package/dist/neutral/index.cjs +79 -59
  201. package/dist/neutral/index.cjs.map +1 -1
  202. package/dist/neutral/index.d.cts +6 -6
  203. package/dist/neutral/index.d.mts +6 -6
  204. package/dist/neutral/index.d.ts +6 -6
  205. package/dist/{node/index.js → neutral/index.mjs} +87 -85
  206. package/dist/neutral/index.mjs.map +1 -0
  207. package/dist/node/Billing/Address/Address.d.cts +1 -1
  208. package/dist/node/Billing/Address/Address.d.mts +1 -1
  209. package/dist/node/Billing/Address/Address.d.ts +1 -1
  210. package/dist/node/Billing/Address/index.d.cts +2 -2
  211. package/dist/node/Billing/Address/index.d.mts +2 -2
  212. package/dist/node/Billing/Address/index.d.ts +2 -2
  213. package/dist/node/Billing/index.d.cts +2 -2
  214. package/dist/node/Billing/index.d.mts +2 -2
  215. package/dist/node/Billing/index.d.ts +2 -2
  216. package/dist/node/Escrow/createEscrowIntent.d.cts +1 -1
  217. package/dist/node/Escrow/createEscrowIntent.d.mts +1 -1
  218. package/dist/node/Escrow/createEscrowIntent.d.ts +1 -1
  219. package/dist/node/Escrow/index.d.cts +6 -6
  220. package/dist/node/Escrow/index.d.mts +6 -6
  221. package/dist/node/Escrow/index.d.ts +6 -6
  222. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/index.d.cts +1 -1
  223. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/index.d.mts +1 -1
  224. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +1 -1
  225. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.cts +1 -1
  226. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.mts +1 -1
  227. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  228. package/dist/node/Escrow/validators/common/TemporalValidators/index.d.cts +1 -1
  229. package/dist/node/Escrow/validators/common/TemporalValidators/index.d.mts +1 -1
  230. package/dist/node/Escrow/validators/common/TemporalValidators/index.d.ts +1 -1
  231. package/dist/node/Escrow/validators/common/index.d.cts +2 -2
  232. package/dist/node/Escrow/validators/common/index.d.mts +2 -2
  233. package/dist/node/Escrow/validators/common/index.d.ts +2 -2
  234. package/dist/node/Escrow/validators/escrow/agent.d.cts +1 -1
  235. package/dist/node/Escrow/validators/escrow/agent.d.mts +1 -1
  236. package/dist/node/Escrow/validators/escrow/agent.d.ts +1 -1
  237. package/dist/node/Escrow/validators/escrow/appraisal.d.cts +1 -1
  238. package/dist/node/Escrow/validators/escrow/appraisal.d.mts +1 -1
  239. package/dist/node/Escrow/validators/escrow/appraisal.d.ts +1 -1
  240. package/dist/node/Escrow/validators/escrow/appraisalAuthorities.d.cts +1 -1
  241. package/dist/node/Escrow/validators/escrow/appraisalAuthorities.d.mts +1 -1
  242. package/dist/node/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  243. package/dist/node/Escrow/validators/escrow/assets.d.cts +1 -1
  244. package/dist/node/Escrow/validators/escrow/assets.d.mts +1 -1
  245. package/dist/node/Escrow/validators/escrow/assets.d.ts +1 -1
  246. package/dist/node/Escrow/validators/escrow/buyer.d.cts +1 -1
  247. package/dist/node/Escrow/validators/escrow/buyer.d.mts +1 -1
  248. package/dist/node/Escrow/validators/escrow/buyer.d.ts +1 -1
  249. package/dist/node/Escrow/validators/escrow/buyerSecret.d.cts +1 -1
  250. package/dist/node/Escrow/validators/escrow/buyerSecret.d.mts +1 -1
  251. package/dist/node/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
  252. package/dist/node/Escrow/validators/escrow/index.d.cts +10 -10
  253. package/dist/node/Escrow/validators/escrow/index.d.mts +10 -10
  254. package/dist/node/Escrow/validators/escrow/index.d.ts +10 -10
  255. package/dist/node/Escrow/validators/escrow/nbfExp.d.cts +1 -1
  256. package/dist/node/Escrow/validators/escrow/nbfExp.d.mts +1 -1
  257. package/dist/node/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  258. package/dist/node/Escrow/validators/escrow/paymentAuthorities.d.cts +1 -1
  259. package/dist/node/Escrow/validators/escrow/paymentAuthorities.d.mts +1 -1
  260. package/dist/node/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  261. package/dist/node/Escrow/validators/escrow/seller.d.cts +1 -1
  262. package/dist/node/Escrow/validators/escrow/seller.d.mts +1 -1
  263. package/dist/node/Escrow/validators/escrow/seller.d.ts +1 -1
  264. package/dist/node/Escrow/validators/escrow/sellerSecret.d.cts +1 -1
  265. package/dist/node/Escrow/validators/escrow/sellerSecret.d.mts +1 -1
  266. package/dist/node/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
  267. package/dist/node/Escrow/validators/index.d.cts +2 -2
  268. package/dist/node/Escrow/validators/index.d.mts +2 -2
  269. package/dist/node/Escrow/validators/index.d.ts +2 -2
  270. package/dist/node/Payment/Instrument/Card/Payload.d.cts +1 -1
  271. package/dist/node/Payment/Instrument/Card/Payload.d.mts +1 -1
  272. package/dist/node/Payment/Instrument/Card/Payload.d.ts +1 -1
  273. package/dist/node/Payment/Instrument/Card/index.d.cts +2 -2
  274. package/dist/node/Payment/Instrument/Card/index.d.mts +2 -2
  275. package/dist/node/Payment/Instrument/Card/index.d.ts +2 -2
  276. package/dist/node/Payment/Instrument/index.d.cts +2 -2
  277. package/dist/node/Payment/Instrument/index.d.mts +2 -2
  278. package/dist/node/Payment/Instrument/index.d.ts +2 -2
  279. package/dist/node/Payment/Payload.d.cts +2 -2
  280. package/dist/node/Payment/Payload.d.mts +2 -2
  281. package/dist/node/Payment/Payload.d.ts +2 -2
  282. package/dist/node/Payment/Status/Payload.d.cts +1 -1
  283. package/dist/node/Payment/Status/Payload.d.mts +1 -1
  284. package/dist/node/Payment/Status/Payload.d.ts +1 -1
  285. package/dist/node/Payment/Status/index.d.cts +2 -2
  286. package/dist/node/Payment/Status/index.d.mts +2 -2
  287. package/dist/node/Payment/Status/index.d.ts +2 -2
  288. package/dist/node/Payment/index.d.cts +4 -4
  289. package/dist/node/Payment/index.d.mts +4 -4
  290. package/dist/node/Payment/index.d.ts +4 -4
  291. package/dist/node/Purchase/Payload.d.cts +1 -1
  292. package/dist/node/Purchase/Payload.d.mts +1 -1
  293. package/dist/node/Purchase/Payload.d.ts +1 -1
  294. package/dist/node/Purchase/index.d.cts +2 -2
  295. package/dist/node/Purchase/index.d.mts +2 -2
  296. package/dist/node/Purchase/index.d.ts +2 -2
  297. package/dist/node/Receipt/Payload.d.cts +2 -2
  298. package/dist/node/Receipt/Payload.d.mts +2 -2
  299. package/dist/node/Receipt/Payload.d.ts +2 -2
  300. package/dist/node/Receipt/index.d.cts +2 -2
  301. package/dist/node/Receipt/index.d.mts +2 -2
  302. package/dist/node/Receipt/index.d.ts +2 -2
  303. package/dist/node/index.cjs +79 -59
  304. package/dist/node/index.cjs.map +1 -1
  305. package/dist/node/index.d.cts +6 -6
  306. package/dist/node/index.d.mts +6 -6
  307. package/dist/node/index.d.ts +6 -6
  308. package/dist/{neutral/index.js → node/index.mjs} +87 -85
  309. package/dist/node/index.mjs.map +1 -0
  310. package/package.json +18 -18
  311. package/src/Billing/Address/Address.ts +1 -1
  312. package/src/Billing/Address/Schema.ts +1 -1
  313. package/src/Billing/Address/index.ts +2 -2
  314. package/src/Billing/Schema.ts +1 -1
  315. package/src/Billing/index.ts +2 -2
  316. package/src/Escrow/Outcome.ts +1 -1
  317. package/src/Escrow/Terms.ts +1 -1
  318. package/src/Escrow/createEscrowIntent.ts +1 -1
  319. package/src/Escrow/index.ts +6 -6
  320. package/src/Escrow/validators/common/ModuleInstanceValidators/index.ts +1 -1
  321. package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +3 -3
  322. package/src/Escrow/validators/common/TemporalValidators/index.ts +1 -1
  323. package/src/Escrow/validators/common/index.ts +2 -2
  324. package/src/Escrow/validators/escrow/agent.ts +3 -3
  325. package/src/Escrow/validators/escrow/appraisal.ts +4 -4
  326. package/src/Escrow/validators/escrow/appraisalAuthorities.ts +4 -4
  327. package/src/Escrow/validators/escrow/assets.ts +1 -1
  328. package/src/Escrow/validators/escrow/buyer.ts +2 -2
  329. package/src/Escrow/validators/escrow/buyerSecret.ts +5 -5
  330. package/src/Escrow/validators/escrow/index.ts +10 -10
  331. package/src/Escrow/validators/escrow/nbfExp.ts +1 -1
  332. package/src/Escrow/validators/escrow/paymentAuthorities.ts +3 -3
  333. package/src/Escrow/validators/escrow/seller.ts +2 -2
  334. package/src/Escrow/validators/escrow/sellerSecret.ts +5 -5
  335. package/src/Escrow/validators/index.ts +2 -2
  336. package/src/Payment/Instrument/Card/Payload.ts +1 -1
  337. package/src/Payment/Instrument/Card/Schema.ts +1 -1
  338. package/src/Payment/Instrument/Card/index.ts +2 -2
  339. package/src/Payment/Instrument/Schema.ts +1 -1
  340. package/src/Payment/Instrument/index.ts +2 -2
  341. package/src/Payment/Payload.ts +2 -2
  342. package/src/Payment/Schema.ts +1 -1
  343. package/src/Payment/Status/Payload.ts +1 -1
  344. package/src/Payment/Status/Schema.ts +1 -1
  345. package/src/Payment/Status/index.ts +2 -2
  346. package/src/Payment/index.ts +4 -4
  347. package/src/Purchase/Payload.ts +1 -1
  348. package/src/Purchase/Schema.ts +1 -1
  349. package/src/Purchase/index.ts +2 -2
  350. package/src/Receipt/Payload.ts +2 -2
  351. package/src/Receipt/Schema.ts +1 -1
  352. package/src/Receipt/index.ts +2 -2
  353. package/src/index.ts +6 -6
  354. package/dist/browser/index.js.map +0 -1
  355. package/dist/neutral/index.js.map +0 -1
  356. package/dist/node/index.js.map +0 -1
@@ -1,3 +1,6 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/Billing/Address/Address.ts
2
5
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
3
6
 
@@ -17,28 +20,40 @@ var isBillingAddressWithMeta = isPayloadOfSchemaTypeWithMeta(BillingAddressSchem
17
20
 
18
21
  // src/Escrow/createEscrowIntent.ts
19
22
  import { BoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
20
- var createEscrowIntent = async (terms, account) => {
21
- const result = await new BoundWitnessBuilder({ accounts: [account] }).payloads([...terms]).build();
23
+ var createEscrowIntent = /* @__PURE__ */ __name(async (terms, account) => {
24
+ const result = await new BoundWitnessBuilder({
25
+ accounts: [
26
+ account
27
+ ]
28
+ }).payloads([
29
+ ...terms
30
+ ]).build();
22
31
  return result;
23
- };
24
- var createEscrowIntentWithSecret = async (terms, secret, account) => {
25
- const result = await new BoundWitnessBuilder({ accounts: [account] }).payloads([terms, secret]).build();
32
+ }, "createEscrowIntent");
33
+ var createEscrowIntentWithSecret = /* @__PURE__ */ __name(async (terms, secret, account) => {
34
+ const result = await new BoundWitnessBuilder({
35
+ accounts: [
36
+ account
37
+ ]
38
+ }).payloads([
39
+ terms,
40
+ secret
41
+ ]).build();
26
42
  return result;
27
- };
43
+ }, "createEscrowIntentWithSecret");
28
44
 
29
45
  // src/Escrow/getEscrowSecret.ts
30
46
  import { Crypto } from "@xylabs/crypto";
31
47
  import { IdSchema } from "@xyo-network/id-payload-plugin";
32
- var getEscrowSecret = () => {
33
- return { salt: Crypto.randomUUID(), schema: IdSchema };
34
- };
48
+ var getEscrowSecret = /* @__PURE__ */ __name(() => {
49
+ return {
50
+ salt: Crypto.randomUUID(),
51
+ schema: IdSchema
52
+ };
53
+ }, "getEscrowSecret");
35
54
 
36
55
  // src/Escrow/Outcome.ts
37
- import {
38
- isPayloadOfSchemaType as isPayloadOfSchemaType2,
39
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta2,
40
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2
41
- } from "@xyo-network/payload-model";
56
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType2, isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta2, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2 } from "@xyo-network/payload-model";
42
57
 
43
58
  // src/Escrow/Schema.ts
44
59
  var EscrowSchema = "network.xyo.escrow";
@@ -57,62 +72,65 @@ var isEscrowTermsWithSources = isPayloadOfSchemaTypeWithSources3(EscrowTermsSche
57
72
  var isEscrowTermsWithMeta = isPayloadOfSchemaTypeWithMeta3(EscrowTermsSchema);
58
73
 
59
74
  // src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts
60
- var moduleIdentifiersContainsOneOf = (escrowTerms, propertyExpression, moduleIdentifiers, required = true) => {
75
+ var moduleIdentifiersContainsOneOf = /* @__PURE__ */ __name((escrowTerms, propertyExpression, moduleIdentifiers, required = true) => {
61
76
  const termsValue = propertyExpression(escrowTerms);
62
77
  if (termsValue === void 0) {
63
78
  return required ? false : true;
64
79
  } else {
65
80
  return Array.isArray(termsValue) ? termsValue.some((address) => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue);
66
81
  }
67
- };
68
- var moduleIdentifiersContainsAllOf = (escrowTerms, selector, moduleIdentifiers, required = true) => {
82
+ }, "moduleIdentifiersContainsOneOf");
83
+ var moduleIdentifiersContainsAllOf = /* @__PURE__ */ __name((escrowTerms, selector, moduleIdentifiers, required = true) => {
69
84
  const termsValue = selector(escrowTerms);
70
85
  if (termsValue === void 0) {
71
86
  return required ? false : true;
72
87
  } else {
73
88
  return Array.isArray(termsValue) ? termsValue.every((address) => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue);
74
89
  }
75
- };
90
+ }, "moduleIdentifiersContainsAllOf");
76
91
 
77
92
  // src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts
78
- var validateWithinWindow = (value, exp, nbf = Date.now()) => {
93
+ var validateWithinWindow = /* @__PURE__ */ __name((value, exp, nbf = Date.now()) => {
79
94
  if (value.nbf === void 0 || value.nbf > nbf) return false;
80
95
  if (value.exp === void 0 || value.exp < exp) return false;
81
96
  return true;
82
- };
97
+ }, "validateWithinWindow");
83
98
 
84
99
  // src/Escrow/validators/escrow/agent.ts
85
100
  var name = "EscrowTerms.escrowAgent";
86
- var getEscrowAgentAllowedValidator = (allowedEscrowAgent) => {
101
+ var getEscrowAgentAllowedValidator = /* @__PURE__ */ __name((allowedEscrowAgent) => {
87
102
  return (terms) => {
88
- const result = moduleIdentifiersContainsOneOf(terms, (t) => t.escrowAgent, [allowedEscrowAgent], true);
103
+ const result = moduleIdentifiersContainsOneOf(terms, (t) => t.escrowAgent, [
104
+ allowedEscrowAgent
105
+ ], true);
89
106
  if (!result) {
90
107
  console.log(`${name}: Escrow agent not allowed: ${terms.escrowAgent}`);
91
108
  }
92
109
  return result;
93
110
  };
94
- };
111
+ }, "getEscrowAgentAllowedValidator");
95
112
 
96
113
  // src/Escrow/validators/escrow/appraisal.ts
97
114
  import { assertEx } from "@xylabs/assert";
98
115
  import { isBoundWitnessWithMeta } from "@xyo-network/boundwitness-model";
99
116
  import { isHashLeaseEstimateWithSources } from "@xyo-network/diviner-hash-lease";
100
117
  var name2 = "EscrowTerms.appraisal";
101
- var appraisalsExistValidator = (terms) => {
118
+ var appraisalsExistValidator = /* @__PURE__ */ __name((terms) => {
102
119
  const appraisals = terms.appraisals;
103
120
  if (!appraisals || appraisals.length === 0) {
104
121
  console.log(`${name2}: No appraisals: ${terms.appraisals}`);
105
122
  return false;
106
123
  }
107
124
  return true;
108
- };
109
- var getAppraisalsFromValidAuthoritiesValidator = (dictionary) => {
125
+ }, "appraisalsExistValidator");
126
+ var getAppraisalsFromValidAuthoritiesValidator = /* @__PURE__ */ __name((dictionary) => {
110
127
  return (terms) => {
111
128
  const appraisals = assertEx(terms.appraisals, () => `${name2}: No appraisals: ${terms.appraisals}`);
112
129
  const appraisalAuthorities = assertEx(terms.appraisalAuthorities, () => `${name2}: No appraisalAuthorities: ${terms.appraisalAuthorities}`);
113
- const appraisalBWsValid = Object.fromEntries(
114
- appraisals.map((hash) => [hash, []])
115
- );
130
+ const appraisalBWsValid = Object.fromEntries(appraisals.map((hash) => [
131
+ hash,
132
+ []
133
+ ]));
116
134
  for (const bw of Object.values(dictionary).filter(isBoundWitnessWithMeta)) {
117
135
  for (const appraisal of appraisals) {
118
136
  if (bw.payload_hashes.includes(appraisal) && bw.addresses.some((address) => appraisalAuthorities.includes(address))) {
@@ -128,8 +146,8 @@ var getAppraisalsFromValidAuthoritiesValidator = (dictionary) => {
128
146
  }
129
147
  return true;
130
148
  };
131
- };
132
- var getAppraisalsValidValidator = (dictionary, minimumExp) => {
149
+ }, "getAppraisalsFromValidAuthoritiesValidator");
150
+ var getAppraisalsValidValidator = /* @__PURE__ */ __name((dictionary, minimumExp) => {
133
151
  return (terms) => {
134
152
  const estimatesByAsset = getEstimatesByAsset(terms, dictionary);
135
153
  const now = Date.now();
@@ -144,8 +162,8 @@ var getAppraisalsValidValidator = (dictionary, minimumExp) => {
144
162
  }
145
163
  return true;
146
164
  };
147
- };
148
- var getAppraisalsForAllAssetsValidator = (dictionary) => {
165
+ }, "getAppraisalsValidValidator");
166
+ var getAppraisalsForAllAssetsValidator = /* @__PURE__ */ __name((dictionary) => {
149
167
  return (terms) => {
150
168
  const estimatesByAsset = getEstimatesByAsset(terms, dictionary);
151
169
  const assets = assertEx(terms.assets, () => `${name2}: No assets: ${terms.assets}`);
@@ -155,14 +173,14 @@ var getAppraisalsForAllAssetsValidator = (dictionary) => {
155
173
  }
156
174
  return true;
157
175
  };
158
- };
159
- var validateEstimate = (estimate, exp) => {
176
+ }, "getAppraisalsForAllAssetsValidator");
177
+ var validateEstimate = /* @__PURE__ */ __name((estimate, exp) => {
160
178
  if (!validateWithinWindow(estimate, exp)) return false;
161
179
  if (estimate.currency !== "USD") return false;
162
180
  if (estimate.price <= 0) return false;
163
181
  return true;
164
- };
165
- var getEstimatesByAsset = (terms, dictionary) => {
182
+ }, "validateEstimate");
183
+ var getEstimatesByAsset = /* @__PURE__ */ __name((terms, dictionary) => {
166
184
  const assets = assertEx(terms.assets, () => `${name2}: No assets: ${terms.assets}`);
167
185
  const estimates = Object.values(dictionary).filter(isHashLeaseEstimateWithSources);
168
186
  const estimatesByAsset = {};
@@ -180,12 +198,12 @@ var getEstimatesByAsset = (terms, dictionary) => {
180
198
  }
181
199
  }
182
200
  return estimatesByAsset;
183
- };
201
+ }, "getEstimatesByAsset");
184
202
 
185
203
  // src/Escrow/validators/escrow/appraisalAuthorities.ts
186
204
  import { asAddress } from "@xylabs/hex";
187
205
  var name3 = "EscrowTerms.appraisalAuthorities";
188
- var appraisalAuthoritiesExistValidator = (terms) => {
206
+ var appraisalAuthoritiesExistValidator = /* @__PURE__ */ __name((terms) => {
189
207
  const appraisalAuthorities = terms.appraisalAuthorities;
190
208
  if (!appraisalAuthorities || appraisalAuthorities.length === 0) {
191
209
  console.log(`${name3}: No appraisalAuthorities: ${terms.appraisalAuthorities}`);
@@ -196,8 +214,8 @@ var appraisalAuthoritiesExistValidator = (terms) => {
196
214
  return false;
197
215
  }
198
216
  return true;
199
- };
200
- var getAppraisalAuthoritiesAllowedValidator = (allowed) => {
217
+ }, "appraisalAuthoritiesExistValidator");
218
+ var getAppraisalAuthoritiesAllowedValidator = /* @__PURE__ */ __name((allowed) => {
201
219
  return (terms) => {
202
220
  const result = moduleIdentifiersContainsAllOf(terms, (t) => t.appraisalAuthorities, allowed, true);
203
221
  if (!result) {
@@ -205,23 +223,23 @@ var getAppraisalAuthoritiesAllowedValidator = (allowed) => {
205
223
  }
206
224
  return result;
207
225
  };
208
- };
226
+ }, "getAppraisalAuthoritiesAllowedValidator");
209
227
 
210
228
  // src/Escrow/validators/escrow/assets.ts
211
229
  var name4 = "EscrowTerms.assets";
212
- var assetsExistValidator = (terms) => {
230
+ var assetsExistValidator = /* @__PURE__ */ __name((terms) => {
213
231
  const assets = terms.assets;
214
232
  if (!assets || assets.length === 0) {
215
233
  console.log(`${name4}: No assets: ${terms.assets}`);
216
234
  return false;
217
235
  }
218
236
  return true;
219
- };
237
+ }, "assetsExistValidator");
220
238
 
221
239
  // src/Escrow/validators/escrow/buyer.ts
222
240
  import { asAddress as asAddress2 } from "@xylabs/hex";
223
241
  var name5 = "EscrowTerms.buyer";
224
- var buyerExistsValidator = (terms) => {
242
+ var buyerExistsValidator = /* @__PURE__ */ __name((terms) => {
225
243
  const buyer = terms.buyer;
226
244
  if (!buyer || buyer.length === 0) {
227
245
  console.log(`${name5}: No buyer: ${terms.buyer}`);
@@ -232,22 +250,22 @@ var buyerExistsValidator = (terms) => {
232
250
  return false;
233
251
  }
234
252
  return true;
235
- };
253
+ }, "buyerExistsValidator");
236
254
 
237
255
  // src/Escrow/validators/escrow/buyerSecret.ts
238
256
  import { assertEx as assertEx2 } from "@xylabs/assert";
239
257
  import { isBoundWitnessWithMeta as isBoundWitnessWithMeta2 } from "@xyo-network/boundwitness-model";
240
258
  import { BoundWitnessValidator } from "@xyo-network/boundwitness-validator";
241
259
  var name6 = "EscrowTerms.buyerSecret";
242
- var buyerSecretExistsValidator = (terms) => {
260
+ var buyerSecretExistsValidator = /* @__PURE__ */ __name((terms) => {
243
261
  const buyerSecret = terms.buyerSecret;
244
262
  if (!buyerSecret || buyerSecret.length === 0) {
245
263
  console.log(`${name6}: No buyerSecret: ${terms.buyerSecret}`);
246
264
  return false;
247
265
  }
248
266
  return true;
249
- };
250
- var getBuyerSecretSuppliedValidator = (dictionary) => {
267
+ }, "buyerSecretExistsValidator");
268
+ var getBuyerSecretSuppliedValidator = /* @__PURE__ */ __name((dictionary) => {
251
269
  return (terms) => {
252
270
  const buyerSecret = assertEx2(terms.buyerSecret, () => `${name6}: No buyerSecret: ${terms.buyerSecret}`);
253
271
  if (!dictionary[buyerSecret]) {
@@ -256,8 +274,8 @@ var getBuyerSecretSuppliedValidator = (dictionary) => {
256
274
  }
257
275
  return true;
258
276
  };
259
- };
260
- var getBuyerSecretSignedValidator = (dictionary) => {
277
+ }, "getBuyerSecretSuppliedValidator");
278
+ var getBuyerSecretSignedValidator = /* @__PURE__ */ __name((dictionary) => {
261
279
  return async (terms) => {
262
280
  const buyer = assertEx2(terms.buyer, () => `${name6}: No buyer: ${terms.buyer}`);
263
281
  const buyerSecret = assertEx2(terms.buyerSecret, () => `${name6}: No buyerSecret: ${terms.buyerSecret}`);
@@ -274,10 +292,10 @@ var getBuyerSecretSignedValidator = (dictionary) => {
274
292
  }
275
293
  return true;
276
294
  };
277
- };
295
+ }, "getBuyerSecretSignedValidator");
278
296
 
279
297
  // src/Escrow/validators/escrow/nbfExp.ts
280
- var getNbfExpValidator = (now, minRequiredDuration) => {
298
+ var getNbfExpValidator = /* @__PURE__ */ __name((now, minRequiredDuration) => {
281
299
  const minExp = now + minRequiredDuration;
282
300
  return (terms) => {
283
301
  const { exp, nbf } = terms;
@@ -291,11 +309,11 @@ var getNbfExpValidator = (now, minRequiredDuration) => {
291
309
  }
292
310
  return true;
293
311
  };
294
- };
312
+ }, "getNbfExpValidator");
295
313
 
296
314
  // src/Escrow/validators/escrow/paymentAuthorities.ts
297
315
  var name7 = "EscrowTerms.paymentAuthorities";
298
- var getPaymentAuthoritiesAllowedValidator = (allowed) => {
316
+ var getPaymentAuthoritiesAllowedValidator = /* @__PURE__ */ __name((allowed) => {
299
317
  return (terms) => {
300
318
  const result = moduleIdentifiersContainsAllOf(terms, (t) => t.paymentAuthorities, allowed, true);
301
319
  if (!result) {
@@ -303,12 +321,12 @@ var getPaymentAuthoritiesAllowedValidator = (allowed) => {
303
321
  }
304
322
  return result;
305
323
  };
306
- };
324
+ }, "getPaymentAuthoritiesAllowedValidator");
307
325
 
308
326
  // src/Escrow/validators/escrow/seller.ts
309
327
  import { asAddress as asAddress3 } from "@xylabs/hex";
310
328
  var name8 = "EscrowTerms.seller";
311
- var sellerExistsValidator = (terms) => {
329
+ var sellerExistsValidator = /* @__PURE__ */ __name((terms) => {
312
330
  const seller = terms.seller;
313
331
  if (!seller || seller.length === 0) {
314
332
  console.log(`${name8}: No seller: ${terms.seller}`);
@@ -319,22 +337,22 @@ var sellerExistsValidator = (terms) => {
319
337
  return false;
320
338
  }
321
339
  return true;
322
- };
340
+ }, "sellerExistsValidator");
323
341
 
324
342
  // src/Escrow/validators/escrow/sellerSecret.ts
325
343
  import { assertEx as assertEx3 } from "@xylabs/assert";
326
344
  import { isBoundWitnessWithMeta as isBoundWitnessWithMeta3 } from "@xyo-network/boundwitness-model";
327
345
  import { BoundWitnessValidator as BoundWitnessValidator2 } from "@xyo-network/boundwitness-validator";
328
346
  var name9 = "EscrowTerms.sellerSecret";
329
- var sellerSecretExistsValidator = (terms) => {
347
+ var sellerSecretExistsValidator = /* @__PURE__ */ __name((terms) => {
330
348
  const sellerSecret = terms.sellerSecret;
331
349
  if (!sellerSecret || sellerSecret.length === 0) {
332
350
  console.log(`${name9}: No sellerSecret: ${terms.sellerSecret}`);
333
351
  return false;
334
352
  }
335
353
  return true;
336
- };
337
- var getSellerSecretSuppliedValidator = (dictionary) => {
354
+ }, "sellerSecretExistsValidator");
355
+ var getSellerSecretSuppliedValidator = /* @__PURE__ */ __name((dictionary) => {
338
356
  return (terms) => {
339
357
  const sellerSecret = assertEx3(terms.sellerSecret, () => `${name9}: No sellerSecret: ${terms.sellerSecret}`);
340
358
  if (!dictionary[sellerSecret]) {
@@ -343,8 +361,8 @@ var getSellerSecretSuppliedValidator = (dictionary) => {
343
361
  }
344
362
  return true;
345
363
  };
346
- };
347
- var getSellerSecretSignedValidator = (dictionary) => {
364
+ }, "getSellerSecretSuppliedValidator");
365
+ var getSellerSecretSignedValidator = /* @__PURE__ */ __name((dictionary) => {
348
366
  return async (terms) => {
349
367
  const seller = assertEx3(terms.seller, () => `${name9}: No seller: ${terms.seller}`);
350
368
  const sellerSecret = assertEx3(terms.sellerSecret, () => `${name9}: No sellerSecret: ${terms.sellerSecret}`);
@@ -361,7 +379,7 @@ var getSellerSecretSignedValidator = (dictionary) => {
361
379
  }
362
380
  return true;
363
381
  };
364
- };
382
+ }, "getSellerSecretSignedValidator");
365
383
 
366
384
  // src/Payment/Instrument/Card/Payload.ts
367
385
  import { isPayloadOfSchemaType as isPayloadOfSchemaType4, isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta4, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4 } from "@xyo-network/payload-model";
@@ -381,21 +399,13 @@ var isPaymentCardWithSources = isPayloadOfSchemaTypeWithSources4(PaymentCardSche
381
399
  var isPaymentCardWithMeta = isPayloadOfSchemaTypeWithMeta4(PaymentCardSchema);
382
400
 
383
401
  // src/Payment/Payload.ts
384
- import {
385
- isPayloadOfSchemaType as isPayloadOfSchemaType5,
386
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta5,
387
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5
388
- } from "@xyo-network/payload-model";
402
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType5, isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta5, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5 } from "@xyo-network/payload-model";
389
403
  var isPayment = isPayloadOfSchemaType5(PaymentSchema);
390
404
  var isPaymentWithSources = isPayloadOfSchemaTypeWithSources5(PaymentSchema);
391
405
  var isPaymentWithMeta = isPayloadOfSchemaTypeWithMeta5(PaymentSchema);
392
406
 
393
407
  // src/Payment/Status/Payload.ts
394
- import {
395
- isPayloadOfSchemaType as isPayloadOfSchemaType6,
396
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6,
397
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6
398
- } from "@xyo-network/payload-model";
408
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType6, isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6 } from "@xyo-network/payload-model";
399
409
 
400
410
  // src/Payment/Status/Schema.ts
401
411
  var PaymentStatusSchema = `${PaymentSchema}.status`;
@@ -406,11 +416,7 @@ var isPaymentStatusWithSources = isPayloadOfSchemaTypeWithSources6(PaymentStatus
406
416
  var isPaymentStatusWithMeta = isPayloadOfSchemaTypeWithMeta6(PaymentStatusSchema);
407
417
 
408
418
  // src/Purchase/Payload.ts
409
- import {
410
- isPayloadOfSchemaType as isPayloadOfSchemaType7,
411
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7,
412
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
413
- } from "@xyo-network/payload-model";
419
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType7, isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7 } from "@xyo-network/payload-model";
414
420
 
415
421
  // src/Purchase/Schema.ts
416
422
  var PurchaseSchema = `${PaymentsSchema}.purchase`;
@@ -421,11 +427,7 @@ var isPurchaseWithSources = isPayloadOfSchemaTypeWithSources7(PurchaseSchema);
421
427
  var isPurchaseWithMeta = isPayloadOfSchemaTypeWithMeta7(PurchaseSchema);
422
428
 
423
429
  // src/Receipt/Payload.ts
424
- import {
425
- isPayloadOfSchemaType as isPayloadOfSchemaType8,
426
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta8,
427
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources8
428
- } from "@xyo-network/payload-model";
430
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType8, isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta8, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources8 } from "@xyo-network/payload-model";
429
431
 
430
432
  // src/Receipt/Schema.ts
431
433
  var ReceiptSchema = `${PaymentsSchema}.receipt`;
@@ -495,4 +497,4 @@ export {
495
497
  sellerSecretExistsValidator,
496
498
  validateWithinWindow
497
499
  };
498
- //# sourceMappingURL=index.js.map
500
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Billing/Address/Address.ts","../../src/Schema.ts","../../src/Billing/Schema.ts","../../src/Billing/Address/Schema.ts","../../src/Escrow/createEscrowIntent.ts","../../src/Escrow/getEscrowSecret.ts","../../src/Escrow/Outcome.ts","../../src/Escrow/Schema.ts","../../src/Escrow/Terms.ts","../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts","../../src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts","../../src/Escrow/validators/escrow/agent.ts","../../src/Escrow/validators/escrow/appraisal.ts","../../src/Escrow/validators/escrow/appraisalAuthorities.ts","../../src/Escrow/validators/escrow/assets.ts","../../src/Escrow/validators/escrow/buyer.ts","../../src/Escrow/validators/escrow/buyerSecret.ts","../../src/Escrow/validators/escrow/nbfExp.ts","../../src/Escrow/validators/escrow/paymentAuthorities.ts","../../src/Escrow/validators/escrow/seller.ts","../../src/Escrow/validators/escrow/sellerSecret.ts","../../src/Payment/Instrument/Card/Payload.ts","../../src/Payment/Schema.ts","../../src/Payment/Instrument/Schema.ts","../../src/Payment/Instrument/Card/Schema.ts","../../src/Payment/Payload.ts","../../src/Payment/Status/Payload.ts","../../src/Payment/Status/Schema.ts","../../src/Purchase/Payload.ts","../../src/Purchase/Schema.ts","../../src/Receipt/Payload.ts","../../src/Receipt/Schema.ts"],"sourcesContent":["import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, Payload } from '@xyo-network/payload-model'\n\nimport { BillingAddressSchema } from './Schema.ts'\n\n/**\n * The fields describing a billing address.\n */\nexport interface BillingAddressFields {\n /** Street address line 1. */\n address?: string\n /** Street address line 2. */\n address2?: string | null\n /** City of the billing address. */\n city?: string\n /** Country code of the billing address, ISO 3166-1 alpha-2 code. */\n country?: string\n /** First name */\n firstName: string\n /** Last name */\n lastName: string\n /** Organization or company name associated with the billing address. */\n organization?: string | null\n /** Postal or ZIP code of the billing address. */\n postalCode?: string\n /** State or region of the billing address. */\n region?: string\n}\n\n/**\n * A BillingAddress Payload\n */\nexport type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>\n\n/**\n * Identity function for determine if an object is a BillingAddress\n */\nexport const isBillingAddress = isPayloadOfSchemaType<BillingAddress>(BillingAddressSchema)\n\n/**\n * Identity function for determine if an object is a BillingAddress with sources\n */\nexport const isBillingAddressWithSources = isPayloadOfSchemaTypeWithSources<BillingAddress>(BillingAddressSchema)\n\n/**\n * Identity function for determine if an object is a BillingAddress with meta\n */\nexport const isBillingAddressWithMeta = isPayloadOfSchemaTypeWithMeta<BillingAddress>(BillingAddressSchema)\n","export const PaymentsSchema = 'network.xyo.payments'\nexport type PaymentsSchema = typeof PaymentsSchema\n","import { PaymentsSchema } from '../Schema.ts'\n\nexport const BillingSchema = `${PaymentsSchema}.billing`\nexport type BillingSchema = typeof BillingSchema\n","import { BillingSchema } from '../Schema.ts'\n\nexport const BillingAddressSchema = `${BillingSchema}.address`\nexport type BillingAddressSchema = typeof BillingAddressSchema\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'\nimport { IdPayload } from '@xyo-network/id-payload-plugin'\n\nimport { EscrowTerms } from './Terms.ts'\n\n/**\n * Creates an escrow intent\n * @deprecated Use createEscrowIntentWithSecret instead\n * @param terms The payloads describing the terms for the escrow\n * @param account The account to create the escrow intent with\n * @returns The escrow intent\n */\nexport const createEscrowIntent = async (terms: EscrowTerms[], account: AccountInstance) => {\n const result = await new BoundWitnessBuilder({ accounts: [account] }).payloads([...terms]).build()\n return result\n}\n\n/**\n * Creates an escrow intent (for a buyer or seller) using the supplied secret\n * @param terms The payload describing the terms for the escrow\n * @param secret The secret for the escrow principal party to use for the escrow\n * @param account The account to create the escrow intent with\n * @returns The escrow intent\n */\nexport const createEscrowIntentWithSecret = async (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => {\n const result = await new BoundWitnessBuilder({ accounts: [account] }).payloads([terms, secret]).build()\n return result\n}\n","import { Crypto } from '@xylabs/crypto'\nimport { IdPayload, IdSchema } from '@xyo-network/id-payload-plugin'\n\n/**\n * Returns a cryptographically random secret to use for escrow\n * @returns The escrow secret\n */\nexport const getEscrowSecret = (): IdPayload => {\n return { salt: Crypto.randomUUID(), schema: IdSchema }\n}\n","import { Hash } from '@xylabs/hex'\nimport {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n PayloadWithSources,\n} from '@xyo-network/payload-model'\n\nimport { EscrowSchema } from './Schema.ts'\n\nexport const EscrowOutcomeSchema = `${EscrowSchema}.outcome` as const\nexport type EscrowOutcomeSchema = typeof EscrowOutcomeSchema\n\n/**\n * The possible outcomes for an escrow\n */\nexport type EscrowOutcomes = 'fulfilled' | 'expired' // TODO: More outcomes\n\nexport interface EscrowOutcomeFields {\n outcome: EscrowOutcomes\n terms: Hash\n}\n\n/**\n * The terms of an escrow\n */\nexport type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>\n\n/**\n * Identity function for determining if an object is an EscrowOutcome\n */\nexport const isEscrowOutcome = isPayloadOfSchemaType<EscrowOutcome>(EscrowOutcomeSchema)\n\n/**\n * Identity function for determining if an object is an EscrowOutcome with sources\n */\nexport const isEscrowOutcomeWithSources = isPayloadOfSchemaTypeWithSources<EscrowOutcome>(EscrowOutcomeSchema)\n\n/**\n * Identity function for determining if an object is an EscrowOutcome with meta\n */\nexport const isEscrowOutcomeWithMeta = isPayloadOfSchemaTypeWithMeta<EscrowOutcome>(EscrowOutcomeSchema)\n","export const EscrowSchema = 'network.xyo.escrow'\nexport type EscrowSchema = typeof EscrowSchema\n","import { Address, Hash } from '@xylabs/hex'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, Payload } from '@xyo-network/payload-model'\n\nimport { EscrowSchema } from './Schema.ts'\n\nexport const EscrowTermsSchema = `${EscrowSchema}.terms` as const\nexport type EscrowTermsSchema = typeof EscrowTermsSchema\n\n// TODO: Include escrow agent in escrow terms\nexport interface EscrowTermsFields {\n /**\n * The trusted estimators for the worth of the things being sold\n */\n appraisalAuthorities: Address[]\n /**\n * The estimated worths of the things being sold\n */\n appraisals: Hash[]\n /**\n * The things being sold\n */\n assets: Hash[]\n /**\n * The buyer\n */\n buyer: Address[]\n /**\n * The buyer\n */\n buyerSecret: Hash\n /**\n * The escrow agent responsible for the escrow\n */\n escrowAgent: Address\n /**\n * The time the escrow expires\n */\n exp: number\n /**\n * The time the escrow starts\n */\n nbf: number\n /**\n * The trusted payment authorities\n */\n paymentAuthorities: Address[]\n /**\n * The seller\n */\n seller: Address[]\n /**\n * The seller\n */\n sellerSecret: Hash\n}\n\n/**\n * The terms of an escrow\n */\nexport type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>\n\n/**\n * Identity function for determining if an object is an EscrowTerms\n */\nexport const isEscrowTerms = isPayloadOfSchemaType<EscrowTerms>(EscrowTermsSchema)\n\n/**\n * Identity function for determining if an object is an EscrowTerms with sources\n */\nexport const isEscrowTermsWithSources = isPayloadOfSchemaTypeWithSources<EscrowTerms>(EscrowTermsSchema)\n\n/**\n * Identity function for determining if an object is an EscrowTerms with meta\n */\nexport const isEscrowTermsWithMeta = isPayloadOfSchemaTypeWithMeta<EscrowTerms>(EscrowTermsSchema)\n","import { ModuleIdentifier } from '@xyo-network/module-model'\nimport { PayloadValueExpression } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../../Terms.ts'\n\n/**\n * Checks if property value of the escrow terms contains one of the valid moduleIdentifiers\n * @param escrowTerms The escrow terms to validate\n * @param propertyExpression The selector to get the property containing the moduleIdentifier(s) from the escrow terms\n * @param moduleIdentifiers The list of allowed moduleIdentifiers\n * @param required Is the property required to be present\n * @returns True if the property value contains one of the valid moduleIdentifiers\n */\nexport const moduleIdentifiersContainsOneOf = (\n escrowTerms: EscrowTerms,\n propertyExpression: PayloadValueExpression<EscrowTerms, 'appraisalAuthorities' | 'buyer' | 'escrowAgent' | 'paymentAuthorities' | 'seller'>,\n moduleIdentifiers: ModuleIdentifier[],\n required: boolean = true,\n) => {\n const termsValue: string | string[] | undefined = propertyExpression(escrowTerms)\n if (termsValue === undefined) {\n return required ? false : true\n } else {\n return Array.isArray(termsValue) ? termsValue.some(address => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue)\n }\n}\n\n/**\n * Checks if property value of the escrow terms contains all of the valid moduleIdentifiers\n * @param escrowTerms The escrow terms to validate\n * @param selector The selector to get the property containing the moduleIdentifier(s) from the escrow terms\n * @param moduleIdentifiers The list of allowed moduleIdentifiers\n * @param required Is the property required to be present\n * @returns True if the property value contains all of the valid moduleIdentifiers\n */\nexport const moduleIdentifiersContainsAllOf = (\n escrowTerms: EscrowTerms,\n selector: PayloadValueExpression<EscrowTerms, 'appraisalAuthorities' | 'buyer' | 'escrowAgent' | 'paymentAuthorities' | 'seller'>,\n moduleIdentifiers: ModuleIdentifier[],\n required: boolean = true,\n) => {\n const termsValue: string | string[] | undefined = selector(escrowTerms)\n if (termsValue === undefined) {\n return required ? false : true\n } else {\n return Array.isArray(termsValue) ? termsValue.every(address => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue)\n }\n}\n","export type Windowed = { exp?: number; nbf?: number }\n\nexport const validateWithinWindow = (value: Windowed, exp: number, nbf: number = Date.now()): boolean => {\n if (value.nbf === undefined || value.nbf > nbf) return false\n if (value.exp === undefined || value.exp < exp) return false\n return true\n}\n","import { ModuleIdentifier } from '@xyo-network/module-model'\nimport { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\nimport { moduleIdentifiersContainsOneOf } from '../common/index.ts'\n\nconst name = 'EscrowTerms.escrowAgent'\n\nexport const getEscrowAgentAllowedValidator = (allowedEscrowAgent: ModuleIdentifier): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n const result = moduleIdentifiersContainsOneOf(terms, t => t.escrowAgent, [allowedEscrowAgent], true)\n if (!result) {\n console.log(`${name}: Escrow agent not allowed: ${terms.escrowAgent}`)\n }\n return result\n }\n}\n","import { assertEx } from '@xylabs/assert'\nimport { Hash } from '@xylabs/hex'\nimport { BoundWitness, isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'\nimport { HashLeaseEstimate, isHashLeaseEstimateWithSources } from '@xyo-network/diviner-hash-lease'\nimport { Payload, PayloadValidationFunction, WithMeta, WithSources } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\nimport { validateWithinWindow } from '../common/index.ts'\n\nconst name = 'EscrowTerms.appraisal'\n\n/**\n * A function that validates the escrow terms for tbe existence of appraisals\n * @returns True if the escrow terms contain appraisals, false otherwise\n */\nexport const appraisalsExistValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have appraisals\n const appraisals = terms.appraisals\n if (!appraisals || appraisals.length === 0) {\n console.log(`${name}: No appraisals: ${terms.appraisals}`)\n return false\n }\n return true\n}\n\n/**\n * Returns a function that validates the escrow terms for appraisals which are from valid authorities\n * @param dictionary Payload dictionary of the escrow terms\n * @returns A function that validates the escrow terms for appraisals which are from valid authorities\n */\nexport const getAppraisalsFromValidAuthoritiesValidator = (dictionary: Record<Hash, WithMeta<Payload>>): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n const appraisals = assertEx(terms.appraisals, () => `${name}: No appraisals: ${terms.appraisals}`)\n const appraisalAuthorities = assertEx(terms.appraisalAuthorities, () => `${name}: No appraisalAuthorities: ${terms.appraisalAuthorities}`)\n\n // Validate the appraisals are signed by valid appraisal authorities. Validation criteria:\n // - We have a bw for each of the appraisal\n // - The bw is signed by an approved appraisal authority\n const appraisalBWsValid: Record<Hash, WithMeta<BoundWitness>[]> = Object.fromEntries(\n appraisals.map<[Hash, WithMeta<BoundWitness>[]]>(hash => [hash, []]),\n )\n for (const bw of Object.values(dictionary).filter(isBoundWitnessWithMeta)) {\n for (const appraisal of appraisals) {\n if (bw.payload_hashes.includes(appraisal) && bw.addresses.some(address => appraisalAuthorities.includes(address))) {\n appraisalBWsValid[appraisal].push(bw)\n }\n }\n }\n for (const [appraisal, bws] of Object.entries(appraisalBWsValid)) {\n if (bws.length === 0) {\n console.log(`${name}: No valid appraisals for ${appraisal}`)\n return false\n }\n }\n return true\n }\n}\n\n/**\n * Returns a function that validates the escrow terms for appraisals which are valid\n * @param dictionary Payload dictionary of the escrow terms\n * @param minimumExp The minium amount of time an estimate needs to be valid\n * for in the future (so as not to expire before the escrow is complete)\n * @returns A function that validates the escrow terms for appraisals which are valid\n */\nexport const getAppraisalsValidValidator = (\n dictionary: Record<Hash, WithMeta<Payload>>,\n minimumExp: number,\n): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n // Verify we have an estimate for each of the assets\n const estimatesByAsset = getEstimatesByAsset(terms, dictionary)\n // Validate each of the estimates are valid (time, price, etc)\n const now = Date.now()\n const exp = now + minimumExp\n for (const [asset, estimates] of Object.entries(estimatesByAsset)) {\n for (const estimate of estimates) {\n if (!validateEstimate(estimate, exp)) {\n console.log(`${name}: Invalid estimate for asset ${asset}: ${estimate}`)\n return false\n }\n }\n }\n return true\n }\n}\n\n/**\n * Returns a function that validates the escrow terms to ensure that they contain an appraisal for each asset\n * @param dictionary Payload dictionary of the escrow terms\n * @returns A function that validates the escrow terms for appraisals\n */\nexport const getAppraisalsForAllAssetsValidator = (dictionary: Record<Hash, WithMeta<Payload>>): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n // Verify we have an estimate for each of the assets\n const estimatesByAsset = getEstimatesByAsset(terms, dictionary)\n const assets = assertEx(terms.assets, () => `${name}: No assets: ${terms.assets}`)\n if (Object.keys(estimatesByAsset).length !== assets.length) {\n console.log(`${name}: Missing appraisals for all assets: ${assets}`)\n return false\n }\n return true\n }\n}\n\nconst validateEstimate = (estimate: WithSources<HashLeaseEstimate>, exp: number): boolean => {\n if (!validateWithinWindow(estimate, exp)) return false\n if (estimate.currency !== 'USD') return false\n if (estimate.price <= 0) return false\n return true\n}\n\nconst getEstimatesByAsset = (terms: EscrowTerms, dictionary: Record<Hash, WithMeta<Payload>>): Record<Hash, WithSources<HashLeaseEstimate>[]> => {\n const assets = assertEx(terms.assets, () => `${name}: No assets: ${terms.assets}`)\n const estimates = Object.values(dictionary).filter(isHashLeaseEstimateWithSources) as unknown as WithSources<HashLeaseEstimate>[]\n const estimatesByAsset: Record<Hash, WithSources<HashLeaseEstimate>[]> = {}\n for (const estimate of estimates) {\n const { sources } = estimate\n if (sources === undefined || sources.length === 0) {\n console.log(`${name}: No sources: ${estimate}`)\n continue\n }\n for (const asset of assets) {\n if (sources.includes(asset)) {\n if (!estimatesByAsset[asset]) estimatesByAsset[asset] = []\n estimatesByAsset[asset].push(estimate)\n }\n }\n }\n return estimatesByAsset\n}\n","import { asAddress } from '@xylabs/hex'\nimport { ModuleIdentifier } from '@xyo-network/module-model'\nimport { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\nimport { moduleIdentifiersContainsAllOf } from '../common/index.ts'\n\nconst name = 'EscrowTerms.appraisalAuthorities'\n\n/**\n * A function that validates the escrow terms for appraisalAuthorities\n * @returns True if the escrow terms contain appraisalAuthorities, false otherwise\n */\nexport const appraisalAuthoritiesExistValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have appraisalAuthorities\n const appraisalAuthorities = terms.appraisalAuthorities\n if (!appraisalAuthorities || appraisalAuthorities.length === 0) {\n console.log(`${name}: No appraisalAuthorities: ${terms.appraisalAuthorities}`)\n return false\n }\n // Validate the authorities are addresses\n if (appraisalAuthorities.map(x => asAddress(x)).length !== appraisalAuthorities.length) {\n console.log(`${name}: Invalid address: ${terms.appraisalAuthorities}`)\n return false\n }\n return true\n}\n\nexport const getAppraisalAuthoritiesAllowedValidator = (allowed: ModuleIdentifier[]): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n const result = moduleIdentifiersContainsAllOf(terms, t => t.appraisalAuthorities, allowed, true)\n if (!result) {\n console.log(`${name}: Appraisal authority not allowed: ${terms.appraisalAuthorities}`)\n }\n return result\n }\n}\n","import { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\n\nconst name = 'EscrowTerms.assets'\n\n/**\n * Returns a function that validates the escrow terms for assets\n * @returns A function that validates the escrow terms for assets\n */\nexport const assetsExistValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have assets\n const assets = terms.assets\n if (!assets || assets.length === 0) {\n console.log(`${name}: No assets: ${terms.assets}`)\n return false\n }\n return true\n}\n","import { asAddress } from '@xylabs/hex'\nimport { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\n\nconst name = 'EscrowTerms.buyer'\n\n/**\n * A function that validates the escrow terms for buyer\n * @returns True if the escrow terms contain buyer, false otherwise\n */\nexport const buyerExistsValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have buyer\n const buyer = terms.buyer\n if (!buyer || buyer.length === 0) {\n console.log(`${name}: No buyer: ${terms.buyer}`)\n return false\n }\n // Validate the authorities are addresses\n if (buyer.map(x => asAddress(x)).length !== buyer.length) {\n console.log(`${name}: Invalid address: ${terms.buyer}`)\n return false\n }\n return true\n}\n","import { assertEx } from '@xylabs/assert'\nimport { Hash } from '@xylabs/hex'\nimport { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'\nimport { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'\nimport { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\n\nconst name = 'EscrowTerms.buyerSecret'\n\n/**\n * Returns a function that validates the escrow terms for buyerSecret\n * @returns A function that validates the escrow terms for buyerSecret\n */\nexport const buyerSecretExistsValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have buyerSecret\n const buyerSecret = terms.buyerSecret\n if (!buyerSecret || buyerSecret.length === 0) {\n console.log(`${name}: No buyerSecret: ${terms.buyerSecret}`)\n return false\n }\n return true\n}\n\n/**\n * Returns a function that validates the escrow terms for the existence of the buyerSecret in the dictionary\n * @param dictionary Payload dictionary of the escrow terms\n * @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary\n */\nexport const getBuyerSecretSuppliedValidator = (dictionary: Record<Hash, WithMeta<Payload>>): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n const buyerSecret = assertEx(terms.buyerSecret, () => `${name}: No buyerSecret: ${terms.buyerSecret}`)\n if (!dictionary[buyerSecret]) {\n console.log(`${name}: Payload not supplied for buyerSecret: ${buyerSecret}`)\n return false\n }\n return true\n }\n}\n\n/**\n * Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer\n * @param dictionary Payload dictionary of the escrow terms\n * @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer\n */\nexport const getBuyerSecretSignedValidator = (dictionary: Record<Hash, WithMeta<Payload>>): PayloadValidationFunction<EscrowTerms> => {\n return async (terms: EscrowTerms) => {\n const buyer = assertEx(terms.buyer, () => `${name}: No buyer: ${terms.buyer}`)\n const buyerSecret = assertEx(terms.buyerSecret, () => `${name}: No buyerSecret: ${terms.buyerSecret}`)\n // Buyer-signed buyer secrets\n const buyerSecretBWs = Object.values(dictionary)\n // Find all BoundWitnesses\n .filter(isBoundWitnessWithMeta)\n // That contain the buyer secret\n .filter(bw => bw.payload_hashes.includes(buyerSecret))\n // That are signed by all the buyers\n .filter(bw => buyer.every(buyerAddress => bw.addresses.includes(buyerAddress)))\n\n // If there are no buyerSecret BWs, return false\n if (buyerSecretBWs.length === 0) {\n console.log(`${name}: No BoundWitnesses supplied for buyerSecret: ${buyerSecret}`)\n return false\n }\n\n // Ensure each BW supplied for the buyerSecret is valid\n const errors = await Promise.all(buyerSecretBWs.map(bw => new BoundWitnessValidator(bw).validate()))\n const validBoundWitnesses = errors.every(errors => errors.length === 0)\n if (!validBoundWitnesses) {\n console.log(`${name}: Invalid BoundWitnesses supplied for buyerSecret: ${buyerSecret}`)\n return false\n }\n return true\n }\n}\n","import { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\n\nexport const getNbfExpValidator = (now: number, minRequiredDuration: number): PayloadValidationFunction<EscrowTerms> => {\n const minExp = now + minRequiredDuration\n return (terms: EscrowTerms) => {\n const { exp, nbf } = terms\n if (nbf === undefined || nbf < now) {\n console.log(`EscrowTerms.nbf: invalid nbf ${terms.nbf}`)\n return false\n }\n if (exp === undefined || exp < minExp || nbf > exp) {\n console.log(`EscrowTerms.exp: invalid exp ${terms.exp}`)\n return false\n }\n return true\n }\n}\n","import { ModuleIdentifier } from '@xyo-network/module-model'\nimport { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\nimport { moduleIdentifiersContainsAllOf } from '../common/index.ts'\n\nconst name = 'EscrowTerms.paymentAuthorities'\n\nexport const getPaymentAuthoritiesAllowedValidator = (allowed: ModuleIdentifier[]): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n const result = moduleIdentifiersContainsAllOf(terms, t => t.paymentAuthorities, allowed, true)\n if (!result) {\n console.log(`${name}: Payment authority not allowed: ${terms.paymentAuthorities}`)\n }\n return result\n }\n}\n","import { asAddress } from '@xylabs/hex'\nimport { PayloadValidationFunction } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\n\nconst name = 'EscrowTerms.seller'\n\n/**\n * A function that validates the escrow terms for seller\n * @returns True if the escrow terms contain seller, false otherwise\n */\nexport const sellerExistsValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have seller\n const seller = terms.seller\n if (!seller || seller.length === 0) {\n console.log(`${name}: No seller: ${terms.seller}`)\n return false\n }\n // Validate the authorities are addresses\n if (seller.map(x => asAddress(x)).length !== seller.length) {\n console.log(`${name}: Invalid address: ${terms.seller}`)\n return false\n }\n return true\n}\n","import { assertEx } from '@xylabs/assert'\nimport { Hash } from '@xylabs/hex'\nimport { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'\nimport { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'\nimport { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model'\n\nimport { EscrowTerms } from '../../Terms.ts'\n\nconst name = 'EscrowTerms.sellerSecret'\n\n/**\n * Returns a function that validates the escrow terms for sellerSecret\n * @returns A function that validates the escrow terms for sellerSecret\n */\nexport const sellerSecretExistsValidator: PayloadValidationFunction<EscrowTerms> = (terms: EscrowTerms) => {\n // Validate we have sellerSecret\n const sellerSecret = terms.sellerSecret\n if (!sellerSecret || sellerSecret.length === 0) {\n console.log(`${name}: No sellerSecret: ${terms.sellerSecret}`)\n return false\n }\n return true\n}\n\n/**\n * Returns a function that validates the escrow terms for the existence of the sellerSecret in the dictionary\n * @param dictionary Payload dictionary of the escrow terms\n * @returns A function that validates the escrow terms for the existence of the sellerSecret in the dictionary\n */\nexport const getSellerSecretSuppliedValidator = (dictionary: Record<Hash, WithMeta<Payload>>): PayloadValidationFunction<EscrowTerms> => {\n return (terms: EscrowTerms) => {\n const sellerSecret = assertEx(terms.sellerSecret, () => `${name}: No sellerSecret: ${terms.sellerSecret}`)\n if (!dictionary[sellerSecret]) {\n console.log(`${name}: Payload not supplied for sellerSecret: ${sellerSecret}`)\n return false\n }\n return true\n }\n}\n\n/**\n * Returns a function that validates the escrow terms for the existence of the sellerSecret signed by the seller\n * @param dictionary Payload dictionary of the escrow terms\n * @returns A function that validates the escrow terms for the existence of the sellerSecret signed by the seller\n */\nexport const getSellerSecretSignedValidator = (dictionary: Record<Hash, WithMeta<Payload>>): PayloadValidationFunction<EscrowTerms> => {\n return async (terms: EscrowTerms) => {\n const seller = assertEx(terms.seller, () => `${name}: No seller: ${terms.seller}`)\n const sellerSecret = assertEx(terms.sellerSecret, () => `${name}: No sellerSecret: ${terms.sellerSecret}`)\n // Seller-signed seller secrets\n const sellerSecretBWs = Object.values(dictionary)\n // Find all BoundWitnesses\n .filter(isBoundWitnessWithMeta)\n // That contain the seller secret\n .filter(bw => bw.payload_hashes.includes(sellerSecret))\n // That are signed by all the sellers\n .filter(bw => seller.every(sellerAddress => bw.addresses.includes(sellerAddress)))\n\n // If there are no sellerSecret BWs, return false\n if (sellerSecretBWs.length === 0) {\n console.log(`${name}: No BoundWitnesses supplied for sellerSecret: ${sellerSecret}`)\n return false\n }\n\n // Ensure each BW supplied for the sellerSecret is valid\n const errors = await Promise.all(sellerSecretBWs.map(bw => new BoundWitnessValidator(bw).validate()))\n const validBoundWitnesses = errors.every(errors => errors.length === 0)\n if (!validBoundWitnesses) {\n console.log(`${name}: Invalid BoundWitnesses supplied for sellerSecret: ${sellerSecret}`)\n return false\n }\n return true\n }\n}\n","import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, Payload } from '@xyo-network/payload-model'\n\nimport { PaymentCardSchema } from './Schema.ts'\n\n/**\n * The fields describing a payment card.\n */\nexport interface PaymentCardFields {\n /**\n * Card Number (PAN) of the payment card. This value is required to perform a payment.\n */\n cardNumber: string\n /**\n * The name as it appears on the payment card.\n */\n cardholderName?: string\n /**\n * Card Verification Value (CVV/CVC) of the payment card.\n */\n cvv: string\n /**\n * Expiration month of the payment card.\n */\n expMonth: number\n /**\n * Expiration year of the payment card.\n */\n expYear: number\n}\n\n/**\n * A PaymentCard Payload\n */\nexport type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>\n\n/**\n * Identity function for determine if an object is a PaymentCard\n */\nexport const isPaymentCard = isPayloadOfSchemaType<PaymentCard>(PaymentCardSchema)\n\n/**\n * Identity function for determine if an object is a PaymentCard with sources\n */\nexport const isPaymentCardWithSources = isPayloadOfSchemaTypeWithSources<PaymentCard>(PaymentCardSchema)\n\n/**\n * Identity function for determine if an object is a PaymentCard with meta\n */\nexport const isPaymentCardWithMeta = isPayloadOfSchemaTypeWithMeta<PaymentCard>(PaymentCardSchema)\n","import { PaymentsSchema } from '../Schema.ts'\n\nexport const PaymentSchema = `${PaymentsSchema}.payment`\nexport type PaymentSchema = typeof PaymentSchema\n","import { PaymentSchema } from '../Schema.ts'\n\nexport const PaymentInstrumentSchema = `${PaymentSchema}.instrument`\nexport type PaymentInstrumentSchema = typeof PaymentInstrumentSchema\n","import { PaymentInstrumentSchema } from '../Schema.ts'\n\nexport const PaymentCardSchema = `${PaymentInstrumentSchema}.card`\nexport type PaymentCardSchema = typeof PaymentCardSchema\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n PayloadWithSources,\n} from '@xyo-network/payload-model'\n\nimport { SupportedCurrency } from '../Currency.ts'\nimport { PaymentSchema } from './Schema.ts'\n\nexport interface PaymentFields {\n /**\n * The amount paid\n */\n amount: number\n /**\n * The currency of the amount paid\n */\n currency: SupportedCurrency\n}\n\n/**\n * A payment is a record of an amount to be paid\n */\nexport type Payment = PayloadWithSources<PaymentFields, PaymentSchema>\n\n/**\n * Identity function for determine if an object is a Payment\n */\nexport const isPayment = isPayloadOfSchemaType<Payment>(PaymentSchema)\n\n/**\n * Identity function for determine if an object is a Payment with sources\n */\nexport const isPaymentWithSources = isPayloadOfSchemaTypeWithSources<Payment>(PaymentSchema)\n\n/**\n * Identity function for determine if an object is a Payment with meta\n */\nexport const isPaymentWithMeta = isPayloadOfSchemaTypeWithMeta<Payment>(PaymentSchema)\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n PayloadWithSources,\n} from '@xyo-network/payload-model'\n\nimport { PaymentStatusSchema } from './Schema.ts'\n\nexport interface PaymentStatusFields {\n /**\n * The result of the payment (i.e. declined)\n */\n result?: string\n\n /**\n * The status of the payment (i.e. completed)\n */\n status: string\n}\n\n/**\n * A payment status is the outcome of a payment attempt\n */\nexport type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>\n\n/**\n * Identity function for determine if an object is a PaymentStatus\n */\nexport const isPaymentStatus = isPayloadOfSchemaType<PaymentStatus>(PaymentStatusSchema)\n\n/**\n * Identity function for determine if an object is a PaymentStatus with sources\n */\nexport const isPaymentStatusWithSources = isPayloadOfSchemaTypeWithSources<PaymentStatus>(PaymentStatusSchema)\n\n/**\n * Identity function for determine if an object is a PaymentStatus with meta\n */\nexport const isPaymentStatusWithMeta = isPayloadOfSchemaTypeWithMeta<PaymentStatus>(PaymentStatusSchema)\n","import { PaymentSchema } from '../Schema.ts'\n\nexport const PaymentStatusSchema = `${PaymentSchema}.status`\nexport type PaymentStatusSchema = typeof PaymentStatusSchema\n","import { Hash } from '@xylabs/hex'\nimport {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n PayloadWithSources,\n} from '@xyo-network/payload-model'\n\nimport { PurchaseSchema } from './Schema.ts'\n\nexport interface PurchaseFields {\n /**\n * The things that were purchased\n */\n assets: Hash[]\n /**\n * The receipts for payments for this purchase. Array to allow for multiple payments\n * for a single quote.\n */\n receipts: Hash[]\n}\n\n/**\n * A purchase ties a payment made to a quote\n */\nexport type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>\n\n/**\n * Identity function for determine if an object is a Purchase\n */\nexport const isPurchase = isPayloadOfSchemaType<Purchase>(PurchaseSchema)\n\n/**\n * Identity function for determine if an object is a Purchase with sources\n */\nexport const isPurchaseWithSources = isPayloadOfSchemaTypeWithSources<Purchase>(PurchaseSchema)\n\n/**\n * Identity function for determine if an object is a Purchase with meta\n */\nexport const isPurchaseWithMeta = isPayloadOfSchemaTypeWithMeta<Purchase>(PurchaseSchema)\n","import { PaymentsSchema } from '../Schema.ts'\n\nexport const PurchaseSchema = `${PaymentsSchema}.purchase`\nexport type PurchaseSchema = typeof PurchaseSchema\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n PayloadWithSources,\n} from '@xyo-network/payload-model'\n\nimport { SupportedCurrency } from '../Currency.ts'\nimport { ReceiptSchema } from './Schema.ts'\n\nexport interface ReceiptFields {\n /**\n * The amount paid\n */\n amount: number\n /**\n * The currency of the amount paid\n */\n currency: SupportedCurrency\n}\n\n/**\n * A receipt is a record of a payment made\n */\nexport type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>\n\n/**\n * Identity function for determine if an object is a Receipt\n */\nexport const isReceipt = isPayloadOfSchemaType<Receipt>(ReceiptSchema)\n\n/**\n * Identity function for determine if an object is a Receipt with sources\n */\nexport const isReceiptWithSources = isPayloadOfSchemaTypeWithSources<Receipt>(ReceiptSchema)\n\n/**\n * Identity function for determine if an object is a Receipt with meta\n */\nexport const isReceiptWithMeta = isPayloadOfSchemaTypeWithMeta<Receipt>(ReceiptSchema)\n","import { PaymentsSchema } from '../Schema.ts'\n\nexport const ReceiptSchema = `${PaymentsSchema}.receipt`\nexport type ReceiptSchema = typeof ReceiptSchema\n"],"mappings":";;;;AAAA,SAASA,uBAAuBC,+BAA+BC,wCAAiD;;;ACAzG,IAAMC,iBAAiB;;;ACEvB,IAAMC,gBAAgB,GAAGC,cAAAA;;;ACAzB,IAAMC,uBAAuB,GAAGC,aAAAA;;;AHkChC,IAAMC,mBAAmBC,sBAAsCC,oBAAAA;AAK/D,IAAMC,8BAA8BC,iCAAiDF,oBAAAA;AAKrF,IAAMG,2BAA2BC,8BAA8CJ,oBAAAA;;;AI7CtF,SAASK,2BAA2B;AAY7B,IAAMC,qBAAqB,8BAAOC,OAAsBC,YAAAA;AAC7D,QAAMC,SAAS,MAAM,IAAIC,oBAAoB;IAAEC,UAAU;MAACH;;EAAS,CAAA,EAAGI,SAAS;OAAIL;GAAM,EAAEM,MAAK;AAChG,SAAOJ;AACT,GAHkC;AAY3B,IAAMK,+BAA+B,8BAAOP,OAAoBQ,QAAmBP,YAAAA;AACxF,QAAMC,SAAS,MAAM,IAAIC,oBAAoB;IAAEC,UAAU;MAACH;;E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AA,gCACAC,oCAAAA,yCAEK;;;ACJA,IAAMC,iBAAiB,GAAGC,cAAAA;;;AD4B1B,IAAMC,aAAaC,uBAAgCC,cAAAA;AAKnD,IAAMC,wBAAwBC,kCAA2CF,cAAAA;AAKzE,IAAMG,qBAAqBC,+BAAwCJ,cAAAA;;;AExC1E,SACEK,yBAAAA,wBACAC,iCAAAA,gCACAC,oCAAAA,yCAEK;;;ACHA,IAAMC,gBAAgB,GAAGC,cAAAA;;;AD2BzB,IAAMC,YAAYC,uBAA+BC,aAAAA;AAKjD,IAAMC,uBAAuBC,kCAA0CF,aAAAA;AAKvE,IAAMG,oBAAoBC,+BAAuCJ,aAAAA;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","PaymentsSchema","BillingSchema","PaymentsSchema","BillingAddressSchema","BillingSchema","isBillingAddress","isPayloadOfSchemaType","BillingAddressSchema","isBillingAddressWithSources","isPayloadOfSchemaTypeWithSources","isBillingAddressWithMeta","isPayloadOfSchemaTypeWithMeta","BoundWitnessBuilder","createEscrowIntent","terms","account","result","BoundWitnessBuilder","accounts","payloads","build","createEscrowIntentWithSecret","secret","Crypto","IdSchema","getEscrowSecret","salt","Crypto","randomUUID","schema","IdSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","EscrowSchema","EscrowOutcomeSchema","EscrowSchema","isEscrowOutcome","isPayloadOfSchemaType","isEscrowOutcomeWithSources","isPayloadOfSchemaTypeWithSources","isEscrowOutcomeWithMeta","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","EscrowTermsSchema","EscrowSchema","isEscrowTerms","isPayloadOfSchemaType","isEscrowTermsWithSources","isPayloadOfSchemaTypeWithSources","isEscrowTermsWithMeta","isPayloadOfSchemaTypeWithMeta","moduleIdentifiersContainsOneOf","escrowTerms","propertyExpression","moduleIdentifiers","required","termsValue","undefined","Array","isArray","some","address","includes","moduleIdentifiersContainsAllOf","selector","every","validateWithinWindow","value","exp","nbf","Date","now","undefined","name","getEscrowAgentAllowedValidator","allowedEscrowAgent","terms","result","moduleIdentifiersContainsOneOf","t","escrowAgent","console","log","assertEx","isBoundWitnessWithMeta","isHashLeaseEstimateWithSources","name","appraisalsExistValidator","terms","appraisals","length","console","log","getAppraisalsFromValidAuthoritiesValidator","dictionary","assertEx","appraisalAuthorities","appraisalBWsValid","Object","fromEntries","map","hash","bw","values","filter","isBoundWitnessWithMeta","appraisal","payload_hashes","includes","addresses","some","address","push","bws","entries","getAppraisalsValidValidator","minimumExp","estimatesByAsset","getEstimatesByAsset","now","Date","exp","asset","estimates","estimate","validateEstimate","getAppraisalsForAllAssetsValidator","assets","keys","validateWithinWindow","currency","price","isHashLeaseEstimateWithSources","sources","undefined","asAddress","name","appraisalAuthoritiesExistValidator","terms","appraisalAuthorities","length","console","log","map","x","asAddress","getAppraisalAuthoritiesAllowedValidator","allowed","result","moduleIdentifiersContainsAllOf","t","name","assetsExistValidator","terms","assets","length","console","log","asAddress","name","buyerExistsValidator","terms","buyer","length","console","log","map","x","asAddress","assertEx","isBoundWitnessWithMeta","BoundWitnessValidator","name","buyerSecretExistsValidator","terms","buyerSecret","length","console","log","getBuyerSecretSuppliedValidator","dictionary","assertEx","getBuyerSecretSignedValidator","buyer","buyerSecretBWs","Object","values","filter","isBoundWitnessWithMeta","bw","payload_hashes","includes","every","buyerAddress","addresses","errors","Promise","all","map","BoundWitnessValidator","validate","validBoundWitnesses","getNbfExpValidator","now","minRequiredDuration","minExp","terms","exp","nbf","undefined","console","log","name","getPaymentAuthoritiesAllowedValidator","allowed","terms","result","moduleIdentifiersContainsAllOf","t","paymentAuthorities","console","log","asAddress","name","sellerExistsValidator","terms","seller","length","console","log","map","x","asAddress","assertEx","isBoundWitnessWithMeta","BoundWitnessValidator","name","sellerSecretExistsValidator","terms","sellerSecret","length","console","log","getSellerSecretSuppliedValidator","dictionary","assertEx","getSellerSecretSignedValidator","seller","sellerSecretBWs","Object","values","filter","isBoundWitnessWithMeta","bw","payload_hashes","includes","every","sellerAddress","addresses","errors","Promise","all","map","BoundWitnessValidator","validate","validBoundWitnesses","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","PaymentSchema","PaymentsSchema","PaymentInstrumentSchema","PaymentSchema","PaymentCardSchema","PaymentInstrumentSchema","isPaymentCard","isPayloadOfSchemaType","PaymentCardSchema","isPaymentCardWithSources","isPayloadOfSchemaTypeWithSources","isPaymentCardWithMeta","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","isPayment","isPayloadOfSchemaType","PaymentSchema","isPaymentWithSources","isPayloadOfSchemaTypeWithSources","isPaymentWithMeta","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","PaymentStatusSchema","PaymentSchema","isPaymentStatus","isPayloadOfSchemaType","PaymentStatusSchema","isPaymentStatusWithSources","isPayloadOfSchemaTypeWithSources","isPaymentStatusWithMeta","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","PurchaseSchema","PaymentsSchema","isPurchase","isPayloadOfSchemaType","PurchaseSchema","isPurchaseWithSources","isPayloadOfSchemaTypeWithSources","isPurchaseWithMeta","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","ReceiptSchema","PaymentsSchema","isReceipt","isPayloadOfSchemaType","ReceiptSchema","isReceiptWithSources","isPayloadOfSchemaTypeWithSources","isReceiptWithMeta","isPayloadOfSchemaTypeWithMeta"]}
@@ -1,5 +1,5 @@
1
1
  import { Payload } from '@xyo-network/payload-model';
2
- import { BillingAddressSchema } from './Schema.js';
2
+ import { BillingAddressSchema } from './Schema.ts';
3
3
  export interface BillingAddressFields {
4
4
  address?: string;
5
5
  address2?: string | null;
@@ -1,5 +1,5 @@
1
1
  import { Payload } from '@xyo-network/payload-model';
2
- import { BillingAddressSchema } from './Schema.js';
2
+ import { BillingAddressSchema } from './Schema.ts';
3
3
  export interface BillingAddressFields {
4
4
  address?: string;
5
5
  address2?: string | null;
@@ -1,5 +1,5 @@
1
1
  import { Payload } from '@xyo-network/payload-model';
2
- import { BillingAddressSchema } from './Schema.js';
2
+ import { BillingAddressSchema } from './Schema.ts';
3
3
  export interface BillingAddressFields {
4
4
  address?: string;
5
5
  address2?: string | null;
@@ -1,3 +1,3 @@
1
- export * from './Address.js';
2
- export * from './Schema.js';
1
+ export * from './Address.ts';
2
+ export * from './Schema.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Address.js';
2
- export * from './Schema.js';
1
+ export * from './Address.ts';
2
+ export * from './Schema.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Address.js';
2
- export * from './Schema.js';
1
+ export * from './Address.ts';
2
+ export * from './Schema.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Address/index.js';
2
- export * from './Schema.js';
1
+ export * from './Address/index.ts';
2
+ export * from './Schema.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Address/index.js';
2
- export * from './Schema.js';
1
+ export * from './Address/index.ts';
2
+ export * from './Schema.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './Address/index.js';
2
- export * from './Schema.js';
1
+ export * from './Address/index.ts';
2
+ export * from './Schema.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { AccountInstance } from '@xyo-network/account-model';
2
2
  import { IdPayload } from '@xyo-network/id-payload-plugin';
3
- import { EscrowTerms } from './Terms.js';
3
+ import { EscrowTerms } from './Terms.ts';
4
4
  export declare const createEscrowIntent: (terms: EscrowTerms[], account: AccountInstance) => Promise<[import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
5
  schema: "network.xyo.boundwitness";
6
6
  }>, import("@xyo-network/payload-model").WithMeta<{
@@ -1,6 +1,6 @@
1
1
  import { AccountInstance } from '@xyo-network/account-model';
2
2
  import { IdPayload } from '@xyo-network/id-payload-plugin';
3
- import { EscrowTerms } from './Terms.js';
3
+ import { EscrowTerms } from './Terms.ts';
4
4
  export declare const createEscrowIntent: (terms: EscrowTerms[], account: AccountInstance) => Promise<[import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
5
5
  schema: "network.xyo.boundwitness";
6
6
  }>, import("@xyo-network/payload-model").WithMeta<{