@xyo-network/payment-payload-plugins 3.4.2 → 3.4.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 (246) hide show
  1. package/dist/neutral/Amount/Iso4217Currency.d.ts +14 -0
  2. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +1 -0
  3. package/dist/neutral/Amount/Payload.d.ts +31 -0
  4. package/dist/neutral/Amount/Payload.d.ts.map +1 -0
  5. package/dist/neutral/Amount/index.d.ts +3 -0
  6. package/dist/neutral/Amount/index.d.ts.map +1 -0
  7. package/dist/neutral/Billing/Address/Address.d.ts +48 -0
  8. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -0
  9. package/dist/neutral/Billing/Address/Schema.d.ts +3 -0
  10. package/dist/neutral/Billing/Address/Schema.d.ts.map +1 -0
  11. package/dist/neutral/Billing/Address/index.d.ts +3 -0
  12. package/dist/neutral/Billing/Address/index.d.ts.map +1 -0
  13. package/dist/neutral/Billing/Schema.d.ts +3 -0
  14. package/dist/neutral/Billing/Schema.d.ts.map +1 -0
  15. package/dist/neutral/Billing/index.d.ts +3 -0
  16. package/dist/neutral/Billing/index.d.ts.map +1 -0
  17. package/dist/neutral/Currency.d.ts +2 -0
  18. package/dist/neutral/Currency.d.ts.map +1 -0
  19. package/dist/neutral/Discount/Config.d.ts +23 -0
  20. package/dist/neutral/Discount/Config.d.ts.map +1 -0
  21. package/dist/neutral/Discount/Params.d.ts +11 -0
  22. package/dist/neutral/Discount/Params.d.ts.map +1 -0
  23. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +8 -0
  24. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +1 -0
  25. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +8 -0
  26. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +1 -0
  27. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +34 -0
  28. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -0
  29. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +4 -0
  30. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +1 -0
  31. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +30 -0
  32. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -0
  33. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +30 -0
  34. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -0
  35. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +30 -0
  36. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -0
  37. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +4 -0
  38. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +1 -0
  39. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +22 -0
  40. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -0
  41. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +3 -0
  42. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +1 -0
  43. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +6 -0
  44. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +1 -0
  45. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +22 -0
  46. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -0
  47. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +16 -0
  48. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -0
  49. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +4 -0
  50. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +1 -0
  51. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +5 -0
  52. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +1 -0
  53. package/dist/neutral/Discount/Payload/Discount.d.ts +37 -0
  54. package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -0
  55. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +3 -0
  56. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +1 -0
  57. package/dist/neutral/Discount/Payload/index.d.ts +4 -0
  58. package/dist/neutral/Discount/Payload/index.d.ts.map +1 -0
  59. package/dist/neutral/Discount/index.d.ts +4 -0
  60. package/dist/neutral/Discount/index.d.ts.map +1 -0
  61. package/dist/neutral/Escrow/Outcome.d.ts +36 -0
  62. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -0
  63. package/dist/neutral/Escrow/Schema.d.ts +3 -0
  64. package/dist/neutral/Escrow/Schema.d.ts.map +1 -0
  65. package/dist/neutral/Escrow/Terms/Party.d.ts +6 -0
  66. package/dist/neutral/Escrow/Terms/Party.d.ts.map +1 -0
  67. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +6 -0
  68. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +1 -0
  69. package/dist/neutral/Escrow/Terms/Terms.d.ts +77 -0
  70. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -0
  71. package/dist/neutral/Escrow/Terms/index.d.ts +4 -0
  72. package/dist/neutral/Escrow/Terms/index.d.ts.map +1 -0
  73. package/dist/neutral/Escrow/index.d.ts +6 -0
  74. package/dist/neutral/Escrow/index.d.ts.map +1 -0
  75. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +12 -0
  76. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -0
  77. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +13 -0
  78. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -0
  79. package/dist/neutral/Escrow/util/appraisal/index.d.ts +3 -0
  80. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +1 -0
  81. package/dist/neutral/Escrow/util/index.d.ts +3 -0
  82. package/dist/neutral/Escrow/util/index.d.ts.map +1 -0
  83. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +12 -0
  84. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -0
  85. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +13 -0
  86. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -0
  87. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +7 -0
  88. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -0
  89. package/dist/neutral/Escrow/util/secret/index.d.ts +5 -0
  90. package/dist/neutral/Escrow/util/secret/index.d.ts.map +1 -0
  91. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +14 -0
  92. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -0
  93. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +2 -0
  94. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +1 -0
  95. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +22 -0
  96. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -0
  97. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +10 -0
  98. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -0
  99. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +2 -0
  100. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +1 -0
  101. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +2 -0
  102. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +1 -0
  103. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +6 -0
  104. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +1 -0
  105. package/dist/neutral/Escrow/validators/common/index.d.ts +4 -0
  106. package/dist/neutral/Escrow/validators/common/index.d.ts.map +1 -0
  107. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +5 -0
  108. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -0
  109. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +29 -0
  110. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -0
  111. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +10 -0
  112. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -0
  113. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +8 -0
  114. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -0
  115. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +8 -0
  116. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -0
  117. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +21 -0
  118. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -0
  119. package/dist/neutral/Escrow/validators/escrow/index.d.ts +11 -0
  120. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +1 -0
  121. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +4 -0
  122. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -0
  123. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +5 -0
  124. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -0
  125. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +8 -0
  126. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -0
  127. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
  128. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
  129. package/dist/neutral/Escrow/validators/index.d.ts +3 -0
  130. package/dist/neutral/Escrow/validators/index.d.ts.map +1 -0
  131. package/dist/neutral/Invoice/Invoice.d.ts +17 -0
  132. package/dist/neutral/Invoice/Invoice.d.ts.map +1 -0
  133. package/dist/neutral/Invoice/index.d.ts +2 -0
  134. package/dist/neutral/Invoice/index.d.ts.map +1 -0
  135. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +50 -0
  136. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -0
  137. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +3 -0
  138. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +1 -0
  139. package/dist/neutral/Payment/Instrument/Card/index.d.ts +3 -0
  140. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +1 -0
  141. package/dist/neutral/Payment/Instrument/Schema.d.ts +3 -0
  142. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +1 -0
  143. package/dist/neutral/Payment/Instrument/index.d.ts +3 -0
  144. package/dist/neutral/Payment/Instrument/index.d.ts.map +1 -0
  145. package/dist/neutral/Payment/Payload.d.ts +40 -0
  146. package/dist/neutral/Payment/Payload.d.ts.map +1 -0
  147. package/dist/neutral/Payment/Schema.d.ts +3 -0
  148. package/dist/neutral/Payment/Schema.d.ts.map +1 -0
  149. package/dist/neutral/Payment/Status/Payload.d.ts +35 -0
  150. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -0
  151. package/dist/neutral/Payment/Status/Schema.d.ts +3 -0
  152. package/dist/neutral/Payment/Status/Schema.d.ts.map +1 -0
  153. package/dist/neutral/Payment/Status/index.d.ts +3 -0
  154. package/dist/neutral/Payment/Status/index.d.ts.map +1 -0
  155. package/dist/neutral/Payment/index.d.ts +5 -0
  156. package/dist/neutral/Payment/index.d.ts.map +1 -0
  157. package/dist/neutral/Purchase/Payload.d.ts +37 -0
  158. package/dist/neutral/Purchase/Payload.d.ts.map +1 -0
  159. package/dist/neutral/Purchase/Schema.d.ts +3 -0
  160. package/dist/neutral/Purchase/Schema.d.ts.map +1 -0
  161. package/dist/neutral/Purchase/index.d.ts +3 -0
  162. package/dist/neutral/Purchase/index.d.ts.map +1 -0
  163. package/dist/neutral/Receipt/Payload.d.ts +40 -0
  164. package/dist/neutral/Receipt/Payload.d.ts.map +1 -0
  165. package/dist/neutral/Receipt/Schema.d.ts +3 -0
  166. package/dist/neutral/Receipt/Schema.d.ts.map +1 -0
  167. package/dist/neutral/Receipt/index.d.ts +3 -0
  168. package/dist/neutral/Receipt/index.d.ts.map +1 -0
  169. package/dist/neutral/Schema.d.ts +3 -0
  170. package/dist/neutral/Schema.d.ts.map +1 -0
  171. package/dist/neutral/Subtotal/Diviner/Config.d.ts +8 -0
  172. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +1 -0
  173. package/dist/neutral/Subtotal/Diviner/Params.d.ts +5 -0
  174. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +1 -0
  175. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +29 -0
  176. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -0
  177. package/dist/neutral/Subtotal/Diviner/index.d.ts +4 -0
  178. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +1 -0
  179. package/dist/neutral/Subtotal/index.d.ts +2 -0
  180. package/dist/neutral/Subtotal/index.d.ts.map +1 -0
  181. package/dist/neutral/Total/Diviner/Config.d.ts +18 -0
  182. package/dist/neutral/Total/Diviner/Config.d.ts.map +1 -0
  183. package/dist/neutral/Total/Diviner/Params.d.ts +5 -0
  184. package/dist/neutral/Total/Diviner/Params.d.ts.map +1 -0
  185. package/dist/neutral/Total/Diviner/Payload.d.ts +29 -0
  186. package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -0
  187. package/dist/neutral/Total/Diviner/index.d.ts +4 -0
  188. package/dist/neutral/Total/Diviner/index.d.ts.map +1 -0
  189. package/dist/neutral/Total/index.d.ts +2 -0
  190. package/dist/neutral/Total/index.d.ts.map +1 -0
  191. package/dist/neutral/index.d.ts +12 -561
  192. package/dist/neutral/index.d.ts.map +1 -0
  193. package/dist/neutral/index.mjs +12 -3
  194. package/dist/neutral/index.mjs.map +1 -1
  195. package/package.json +19 -19
  196. package/src/Amount/Payload.ts +2 -3
  197. package/src/Billing/Address/Address.ts +3 -2
  198. package/src/Discount/Config.ts +3 -3
  199. package/src/Discount/Params.ts +4 -4
  200. package/src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts +1 -1
  201. package/src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts +1 -1
  202. package/src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts +2 -2
  203. package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +4 -5
  204. package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +3 -5
  205. package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +4 -5
  206. package/src/Discount/Payload/Coupon/Payload.ts +1 -1
  207. package/src/Discount/Payload/Coupon/types/Condition.ts +1 -1
  208. package/src/Discount/Payload/Coupon/types/CouponFields.ts +2 -2
  209. package/src/Discount/Payload/Coupon/types/isStackable.ts +1 -1
  210. package/src/Discount/Payload/Discount.ts +3 -4
  211. package/src/Discount/Payload/NoDiscount.ts +1 -2
  212. package/src/Escrow/Outcome.ts +2 -3
  213. package/src/Escrow/Terms/Party.ts +1 -1
  214. package/src/Escrow/Terms/PartySecret.ts +1 -1
  215. package/src/Escrow/Terms/Terms.ts +4 -3
  216. package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +4 -4
  217. package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +4 -4
  218. package/src/Escrow/util/secret/createEscrowIntent.ts +4 -4
  219. package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +4 -4
  220. package/src/Escrow/util/secret/getEscrowSecret.ts +1 -2
  221. package/src/Escrow/util/secret/updateEscrowTermsWithSecret.ts +3 -3
  222. package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +3 -3
  223. package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +3 -3
  224. package/src/Escrow/validators/escrow/agent.ts +3 -3
  225. package/src/Escrow/validators/escrow/appraisal.ts +5 -5
  226. package/src/Escrow/validators/escrow/appraisalAuthorities.ts +3 -3
  227. package/src/Escrow/validators/escrow/assets.ts +2 -2
  228. package/src/Escrow/validators/escrow/buyer.ts +2 -2
  229. package/src/Escrow/validators/escrow/buyerSecret.ts +3 -3
  230. package/src/Escrow/validators/escrow/nbfExp.ts +2 -2
  231. package/src/Escrow/validators/escrow/paymentAuthorities.ts +3 -3
  232. package/src/Escrow/validators/escrow/seller.ts +2 -2
  233. package/src/Escrow/validators/escrow/sellerSecret.ts +3 -3
  234. package/src/Invoice/Invoice.ts +4 -4
  235. package/src/Payment/Instrument/Card/Payload.ts +3 -2
  236. package/src/Payment/Payload.ts +2 -3
  237. package/src/Payment/Status/Payload.ts +1 -2
  238. package/src/Purchase/Payload.ts +2 -3
  239. package/src/Receipt/Payload.ts +2 -3
  240. package/src/Subtotal/Diviner/Config.ts +1 -1
  241. package/src/Subtotal/Diviner/Params.ts +3 -3
  242. package/src/Subtotal/Diviner/Payload.ts +2 -3
  243. package/src/Total/Diviner/Config.ts +2 -2
  244. package/src/Total/Diviner/Params.ts +3 -3
  245. package/src/Total/Diviner/Payload.ts +2 -3
  246. package/xy.config.ts +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoDiscount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/NoDiscount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,eAAe,CAAA;AAExD,eAAO,MAAM,WAAW,EAAE,QAIzB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Coupon/index.ts';
2
+ export * from './Discount.ts';
3
+ export * from './NoDiscount.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Config.ts';
2
+ export * from './Params.ts';
3
+ export * from './Payload/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Discount/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
3
+ export declare const EscrowOutcomeSchema: "network.xyo.escrow.outcome";
4
+ export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
5
+ /**
6
+ * The possible outcomes for an escrow
7
+ */
8
+ export type EscrowOutcomes = 'fulfilled' | 'expired';
9
+ export interface EscrowOutcomeFields {
10
+ outcome: EscrowOutcomes;
11
+ terms: Hash;
12
+ }
13
+ /**
14
+ * The terms of an escrow
15
+ */
16
+ export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
17
+ /**
18
+ * Identity function for determining if an object is an EscrowOutcome
19
+ */
20
+ export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
21
+ export declare const asEscrowOutcome: {
22
+ <TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
23
+ <TType extends EscrowOutcome>(value: import(
24
+ /**
25
+ * The possible outcomes for an escrow
26
+ */
27
+ ".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowOutcome>, config?: import("@xylabs/object").TypeCheckConfig): TType;
28
+ };
29
+ export declare const asOptionalEscrowOutcome: <TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
30
+ /**
31
+ * Identity function for determining if an object is an EscrowOutcome with sources
32
+ */
33
+ export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
34
+ export declare const asEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
35
+ export declare const asOptionalEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
36
+ //# sourceMappingURL=Outcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAElC,OAAO,EAE6B,kBAAkB,EAAE,WAAW,EAClE,MAAM,4BAA4B,CAAA;AAInC,eAAO,MAAM,mBAAmB,8BAAqC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe;gDAxBF,qDAC1B,iCACiC,gBAAmB;;IAGpD;;OAEG;IACH,qDAFY,wGAEqD,gBAEzD;CAc6E,CAAA;AACrF,eAAO,MAAM,uBAAuB,8CAPN,qDAAiB,qCAOsD,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B,2DAbT,qDAAiB,qCAaiF,CAAA;AAChI,eAAO,MAAM,kCAAkC,2DAdjB,qDAAiB,qCAcyF,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const EscrowSchema = "network.xyo.escrow";
2
+ export type EscrowSchema = typeof EscrowSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,uBAAuB,CAAA;AAChD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { EscrowTermsFields } from './Terms.ts';
2
+ /**
3
+ * The party in an escrow transaction
4
+ */
5
+ export type EscrowParty = keyof Pick<EscrowTermsFields, 'buyer' | 'seller'>;
6
+ //# sourceMappingURL=Party.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Party.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Party.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { EscrowTermsFields } from './Terms.ts';
2
+ /**
3
+ * The party's secret in an escrow transaction
4
+ */
5
+ export type EscrowPartySecret = keyof Pick<EscrowTermsFields, 'buyerSecret' | 'sellerSecret'>;
6
+ //# sourceMappingURL=PartySecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartySecret.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/PartySecret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,cAAc,CAAC,CAAA"}
@@ -0,0 +1,77 @@
1
+ import { Address, Hash } from '@xylabs/hex';
2
+ import { Payload } from '@xyo-network/payload-model';
3
+ export declare const EscrowTermsSchema: "network.xyo.escrow.terms";
4
+ export type EscrowTermsSchema = typeof EscrowTermsSchema;
5
+ export interface EscrowTermsFields {
6
+ /**
7
+ * The trusted estimators for the worth of the things being sold
8
+ */
9
+ appraisalAuthorities: Address[];
10
+ /**
11
+ * The estimated worths of the things being sold
12
+ */
13
+ appraisals: Hash[];
14
+ /**
15
+ * The things being sold
16
+ */
17
+ assets: Hash[];
18
+ /**
19
+ * The buyer
20
+ */
21
+ buyer: Address[];
22
+ /**
23
+ * The buyer
24
+ */
25
+ buyerSecret: Hash;
26
+ /**
27
+ * Any discounts (coupons, vouchers, credits, etc.) to be applied to the escrow
28
+ */
29
+ discounts: Hash[];
30
+ /**
31
+ * The escrow agent responsible for the escrow
32
+ */
33
+ escrowAgent: Address;
34
+ /**
35
+ * The time the escrow expires
36
+ */
37
+ exp: number;
38
+ /**
39
+ * The time the escrow starts
40
+ */
41
+ nbf: number;
42
+ /**
43
+ * The trusted payment authorities
44
+ */
45
+ paymentAuthorities: Address[];
46
+ /**
47
+ * The seller
48
+ */
49
+ seller: Address[];
50
+ /**
51
+ * The seller
52
+ */
53
+ sellerSecret: Hash;
54
+ }
55
+ /**
56
+ * The terms of an escrow
57
+ */
58
+ export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
59
+ /**
60
+ * Identity function for determining if an object is an EscrowTerms
61
+ */
62
+ export declare const isEscrowTerms: (x?: unknown | null) => x is EscrowTerms;
63
+ export declare const asEscrowTerms: {
64
+ <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
65
+ <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowTerms>, config?: import("@xylabs/object").TypeCheckConfig): TType;
66
+ };
67
+ export declare const asOptionalEscrowTerms: <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
68
+ /**
69
+ * Identity function for determining if an object is an EscrowTerms with sources
70
+ */
71
+ export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<EscrowTerms>;
72
+ export declare const asEscrowTermsWithSources: {
73
+ <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
74
+ <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowTerms>, config?: import("@xylabs/object").TypeCheckConfig): TType;
75
+ };
76
+ export declare const asOptionalEscrowTermsWithSources: <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
77
+ //# sourceMappingURL=Terms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAE3C,OAAO,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAInC,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,EAAE,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa;8CAhE1B,qDAAe,iCAAiC,gBAC9C;8CAEsB,qDAAgB,sGAGO,gBAC/C;CAyD+E,CAAA;AAC/E,eAAO,MAAM,qBAAqB,4CAnDzB,qDAAgB,qCAmDsE,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,4FAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB;8CAvErC,qDAAe,iCAAiC,gBAC9C;8CAEsB,qDAAgB,sGAGO,gBAC/C;CAgEqG,CAAA;AACrG,eAAO,MAAM,gCAAgC,4CA1DpC,qDAAgB,qCA0D4F,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Party.ts';
2
+ export * from './PartySecret.ts';
3
+ export * from './Terms.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './Outcome.ts';
2
+ export * from './Schema.ts';
3
+ export * from './Terms/index.ts';
4
+ export * from './util/index.ts';
5
+ export * from './validators/index.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
3
+ import { Payload, WithSources } from '@xyo-network/payload-model';
4
+ import { EscrowTerms } from '../../Terms/index.ts';
5
+ /**
6
+ * Returns a dictionary of asset hashes and their associated appraisals
7
+ * @param terms The escrow terms
8
+ * @param dictionary The dictionary of payloads associated with the escrow terms
9
+ * @returns A dictionary of asset hashes and their associated appraisals
10
+ */
11
+ export declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, WithSources<HashLeaseEstimate>[]>;
12
+ //# sourceMappingURL=getAppraisalsByAsset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAppraisalsByAsset.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getAppraisalsByAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,iBAAiB,EAAkC,MAAM,iCAAiC,CAAA;AACnG,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,EAAE,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAkBzI,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { BoundWitness } from '@xyo-network/boundwitness-model';
3
+ import { Payload } from '@xyo-network/payload-model';
4
+ import { EscrowTerms } from '../../Terms/index.ts';
5
+ /**
6
+ * Returns a dictionary of appraisals and their associated bound witnesses which are signed by
7
+ * valid appraisal authorities from the escrow terms
8
+ * @param terms The escrow terms
9
+ * @param dictionary The diction of payloads associated with the escrow terms
10
+ * @returns A dictionary of appraisals and their associated bound witnesses
11
+ */
12
+ export declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, BoundWitness[]>;
13
+ //# sourceMappingURL=getSignaturesByAppraisal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,WAAW,EAClB,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAChC,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,CAsB7B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './getAppraisalsByAsset.ts';
2
+ export * from './getSignaturesByAppraisal.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './appraisal/index.ts';
2
+ export * from './secret/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { AccountInstance } from '@xyo-network/account-model';
2
+ import { Id } from '@xyo-network/id-payload-plugin';
3
+ import { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Creates an escrow intent (for a buyer or seller) using the supplied secret
6
+ * @param terms The payload describing the terms for the escrow
7
+ * @param secret The secret for the escrow principal party to use for the escrow
8
+ * @param account The account to create the escrow intent with
9
+ * @returns The escrow intent
10
+ */
11
+ export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: Id, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").AnyPayload[], import("@xyo-network/payload-model").ModuleError[]]>;
12
+ //# sourceMappingURL=createEscrowIntent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,OAAO,WAAW,EAAE,QAAQ,EAAE,EAAE,SAAS,eAAe,uOAG1G,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { BoundWitness } from '@xyo-network/boundwitness-model';
3
+ import { Payload } from '@xyo-network/payload-model';
4
+ import { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
5
+ /**
6
+ * Returns an array of BoundWitnesses containing the secret signed by all the parties
7
+ * @param terms The escrow terms
8
+ * @param dictionary A dictionary of all the payloads associated with the escrow
9
+ * @param party The party to get the secret signatures for
10
+ * @returns An array of BoundWitnesses containing the secret signed by all the parties
11
+ */
12
+ export declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, Payload>, party: EscrowParty) => BoundWitness[];
13
+ //# sourceMappingURL=findEscrowPartySecretSignatures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EACL,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAW7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAAI,OAAO,WAAW,EAAE,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,YAAY,EAqBvI,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { IdPayload } from '@xyo-network/id-payload-plugin';
2
+ /**
3
+ * Returns a cryptographically random secret to use for escrow
4
+ * @returns The escrow secret
5
+ */
6
+ export declare const getEscrowSecret: () => IdPayload;
7
+ //# sourceMappingURL=getEscrowSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAY,MAAM,gCAAgC,CAAA;AAEpE;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './createEscrowIntent.ts';
2
+ export * from './findEscrowPartySecretSignatures.ts';
3
+ export * from './getEscrowSecret.ts';
4
+ export * from './updateEscrowTermsWithSecret.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sCAAsC,CAAA;AACpD,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { AccountInstance } from '@xyo-network/account-model';
2
+ import { IdPayload } from '@xyo-network/id-payload-plugin';
3
+ import { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Creates an escrow intent (for a buyer or seller) using the supplied secret
6
+ * @param terms The payload describing the terms for the escrow
7
+ * @param escrowParty The party in the escrow transaction
8
+ * @param account The account(s) to create the escrow intent with
9
+ * @param secret The secret for the escrow principal party to use for the escrow. If
10
+ * not provided, a cryptographically random secret will be generated.
11
+ * @returns The escrow intent
12
+ */
13
+ export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").AnyPayload[], import("@xyo-network/payload-model").ModuleError[]]>;
14
+ //# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG1D,OAAO,EACL,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,SAAS,uOAanB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './moduleInstanceValidators.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import { PayloadValueExpression } from '@xyo-network/payload-model';
3
+ import { EscrowTerms } from '../../../Terms/index.ts';
4
+ /**
5
+ * Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
6
+ * @param escrowTerms The escrow terms to validate
7
+ * @param propertyExpression The selector to get the property containing the moduleIdentifier(s) from the escrow terms
8
+ * @param moduleIdentifiers The list of allowed moduleIdentifiers
9
+ * @param required Is the property required to be present
10
+ * @returns True if the property value contains one of the valid moduleIdentifiers
11
+ */
12
+ export declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
13
+ /**
14
+ * Checks if property value of the escrow terms contains all of the valid moduleIdentifiers
15
+ * @param escrowTerms The escrow terms to validate
16
+ * @param selector The selector to get the property containing the moduleIdentifier(s) from the escrow terms
17
+ * @param moduleIdentifiers The list of allowed moduleIdentifiers
18
+ * @param required Is the property required to be present
19
+ * @returns True if the property value contains all of the valid moduleIdentifiers
20
+ */
21
+ export declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
22
+ //# sourceMappingURL=moduleInstanceValidators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,oBAAoB,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EAC3I,mBAAmB,gBAAgB,EAAE,EACrC,WAAU,OAAc,YAQzB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,UAAU,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EACjI,mBAAmB,gBAAgB,EAAE,EACrC,WAAU,OAAc,YAQzB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model';
3
+ import { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
4
+ /**
5
+ * Returns a function that validates the escrow terms for the existence of the party secret signed by the party
6
+ * @param dictionary Payload dictionary of the escrow terms
7
+ * @returns A function that validates the escrow terms for the existence of the party secret signed by the party
8
+ */
9
+ export declare const getPartySecretSignedValidator: (dictionary: Record<Hash, Payload>, party: EscrowParty) => AsyncPayloadValidationFunction<EscrowTerms>;
10
+ //# sourceMappingURL=getPartySecretSignedValidator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAElC,OAAO,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpF,OAAO,EACL,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqB/I,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './getPartySecretSignedValidator.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './validateWithinWindow.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,6 @@
1
+ export type Windowed = {
2
+ exp?: number;
3
+ nbf?: number;
4
+ };
5
+ export declare const validateWithinWindow: (value: Windowed, exp: number, nbf?: number) => boolean;
6
+ //# sourceMappingURL=validateWithinWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateWithinWindow.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,eAAO,MAAM,oBAAoB,GAAI,OAAO,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAK,MAAmB,KAAG,OAG7F,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './ModuleInstanceValidators/index.ts';
2
+ export * from './SecretValidators/index.ts';
3
+ export * from './TemporalValidators/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import { EscrowTerms } from '../../Terms/index.ts';
4
+ export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
5
+ //# sourceMappingURL=agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKlD,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * A function that validates the escrow terms for tbe existence of appraisals
6
+ * @returns True if the escrow terms contain appraisals, false otherwise
7
+ */
8
+ export declare const appraisalsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
9
+ /**
10
+ * Returns a function that validates the escrow terms for appraisals which are from valid authorities
11
+ * @param dictionary Payload dictionary of the escrow terms
12
+ * @returns A function that validates the escrow terms for appraisals which are from valid authorities
13
+ */
14
+ export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
15
+ /**
16
+ * Returns a function that validates the escrow terms for appraisals which are valid
17
+ * @param dictionary Payload dictionary of the escrow terms
18
+ * @param minimumExp The minium amount of time an estimate needs to be valid
19
+ * for in the future (so as not to expire before the escrow is complete)
20
+ * @returns A function that validates the escrow terms for appraisals which are valid
21
+ */
22
+ export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, Payload>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
23
+ /**
24
+ * Returns a function that validates the escrow terms to ensure that they contain an appraisal for each asset
25
+ * @param dictionary Payload dictionary of the escrow terms
26
+ * @returns A function that validates the escrow terms for appraisals
27
+ */
28
+ export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
29
+ //# sourceMappingURL=appraisal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGlC,OAAO,EACL,OAAO,EAAE,6BAA6B,EACvC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMlD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EACjC,YAAY,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * A function that validates the escrow terms for appraisalAuthorities
6
+ * @returns True if the escrow terms contain appraisalAuthorities, false otherwise
7
+ */
8
+ export declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
9
+ export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
10
+ //# sourceMappingURL=appraisalAuthorities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKlD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import { EscrowTerms } from '../../Terms/index.ts';
3
+ /**
4
+ * Returns a function that validates the escrow terms for assets
5
+ * @returns A function that validates the escrow terms for assets
6
+ */
7
+ export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
+ //# sourceMappingURL=assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import { EscrowTerms } from '../../Terms/index.ts';
3
+ /**
4
+ * A function that validates the escrow terms for buyer
5
+ * @returns True if the escrow terms contain buyer, false otherwise
6
+ */
7
+ export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
+ //# sourceMappingURL=buyer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { Hash } from '@xylabs/hex';
2
+ import { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import { EscrowTerms } from '../../Terms/index.ts';
4
+ /**
5
+ * Returns a function that validates the escrow terms for buyerSecret
6
+ * @returns A function that validates the escrow terms for buyerSecret
7
+ */
8
+ export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
9
+ /**
10
+ * Returns a function that validates the escrow terms for the existence of the buyerSecret in the dictionary
11
+ * @param dictionary Payload dictionary of the escrow terms
12
+ * @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary
13
+ */
14
+ export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
15
+ /**
16
+ * Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
17
+ * @param dictionary Payload dictionary of the escrow terms
18
+ * @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
19
+ */
20
+ export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
21
+ //# sourceMappingURL=buyerSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EACL,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
@@ -0,0 +1,11 @@
1
+ export * from './agent.ts';
2
+ export * from './appraisal.ts';
3
+ export * from './appraisalAuthorities.ts';
4
+ export * from './assets.ts';
5
+ export * from './buyer.ts';
6
+ export * from './buyerSecret.ts';
7
+ export * from './nbfExp.ts';
8
+ export * from './paymentAuthorities.ts';
9
+ export * from './seller.ts';
10
+ export * from './sellerSecret.ts';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import { EscrowTerms } from '../../Terms/index.ts';
3
+ export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
4
+ //# sourceMappingURL=nbfExp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,qBAAqB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ModuleIdentifier } from '@xyo-network/module-model';
2
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
+ import { EscrowTerms } from '../../Terms/index.ts';
4
+ export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
5
+ //# sourceMappingURL=paymentAuthorities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKlD,eAAO,MAAM,qCAAqC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
2
+ import { EscrowTerms } from '../../Terms/index.ts';
3
+ /**
4
+ * A function that validates the escrow terms for seller
5
+ * @returns True if the escrow terms contain seller, false otherwise
6
+ */
7
+ export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
8
+ //# sourceMappingURL=seller.d.ts.map