@xyo-network/payment-payload-plugins 3.3.0 → 3.4.1

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 (197) hide show
  1. package/dist/neutral/index.d.ts +1159 -12
  2. package/dist/neutral/index.mjs +2 -4
  3. package/dist/neutral/index.mjs.map +1 -1
  4. package/package.json +18 -18
  5. package/src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts +1 -2
  6. package/src/Escrow/validators/escrow/appraisal.ts +1 -2
  7. package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
  8. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
  9. package/dist/neutral/Amount/Payload.d.ts +0 -31
  10. package/dist/neutral/Amount/Payload.d.ts.map +0 -1
  11. package/dist/neutral/Amount/index.d.ts +0 -3
  12. package/dist/neutral/Amount/index.d.ts.map +0 -1
  13. package/dist/neutral/Billing/Address/Address.d.ts +0 -278
  14. package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
  15. package/dist/neutral/Billing/Address/Schema.d.ts +0 -3
  16. package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
  17. package/dist/neutral/Billing/Address/index.d.ts +0 -3
  18. package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
  19. package/dist/neutral/Billing/Schema.d.ts +0 -3
  20. package/dist/neutral/Billing/Schema.d.ts.map +0 -1
  21. package/dist/neutral/Billing/index.d.ts +0 -3
  22. package/dist/neutral/Billing/index.d.ts.map +0 -1
  23. package/dist/neutral/Currency.d.ts +0 -2
  24. package/dist/neutral/Currency.d.ts.map +0 -1
  25. package/dist/neutral/Discount/Config.d.ts +0 -23
  26. package/dist/neutral/Discount/Config.d.ts.map +0 -1
  27. package/dist/neutral/Discount/Params.d.ts +0 -11
  28. package/dist/neutral/Discount/Params.d.ts.map +0 -1
  29. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
  30. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
  31. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
  32. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
  33. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
  34. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
  35. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
  36. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
  37. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -70
  38. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
  39. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -65
  40. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
  41. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -70
  42. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
  43. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
  44. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
  45. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -114
  46. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
  47. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -3
  48. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
  49. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
  50. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
  51. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -22
  52. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
  53. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -16
  54. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
  55. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
  56. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
  57. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
  58. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
  59. package/dist/neutral/Discount/Payload/Discount.d.ts +0 -49
  60. package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
  61. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
  62. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
  63. package/dist/neutral/Discount/Payload/index.d.ts +0 -4
  64. package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
  65. package/dist/neutral/Discount/index.d.ts +0 -4
  66. package/dist/neutral/Discount/index.d.ts.map +0 -1
  67. package/dist/neutral/Escrow/Outcome.d.ts +0 -32
  68. package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
  69. package/dist/neutral/Escrow/Schema.d.ts +0 -3
  70. package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
  71. package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
  72. package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
  73. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
  74. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
  75. package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -217
  76. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
  77. package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
  78. package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
  79. package/dist/neutral/Escrow/index.d.ts +0 -6
  80. package/dist/neutral/Escrow/index.d.ts.map +0 -1
  81. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
  82. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
  83. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -13
  84. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
  85. package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
  86. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
  87. package/dist/neutral/Escrow/util/index.d.ts +0 -3
  88. package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
  89. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -44
  90. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
  91. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -13
  92. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
  93. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
  94. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
  95. package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
  96. package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
  97. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -46
  98. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
  99. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
  100. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
  101. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -22
  102. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
  103. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
  104. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
  105. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
  106. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
  107. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
  108. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
  109. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
  110. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
  111. package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
  112. package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
  113. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -5
  114. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
  115. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
  116. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
  117. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -10
  118. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
  119. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
  120. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
  121. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
  122. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
  123. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
  124. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
  125. package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
  126. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
  127. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
  128. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
  129. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -5
  130. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
  131. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
  132. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
  133. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
  134. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
  135. package/dist/neutral/Escrow/validators/index.d.ts +0 -3
  136. package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
  137. package/dist/neutral/Invoice/Invoice.d.ts +0 -17
  138. package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
  139. package/dist/neutral/Invoice/index.d.ts +0 -2
  140. package/dist/neutral/Invoice/index.d.ts.map +0 -1
  141. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -160
  142. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
  143. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -3
  144. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
  145. package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
  146. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
  147. package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -3
  148. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
  149. package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
  150. package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
  151. package/dist/neutral/Payment/Payload.d.ts +0 -36
  152. package/dist/neutral/Payment/Payload.d.ts.map +0 -1
  153. package/dist/neutral/Payment/Schema.d.ts +0 -3
  154. package/dist/neutral/Payment/Schema.d.ts.map +0 -1
  155. package/dist/neutral/Payment/Status/Payload.d.ts +0 -35
  156. package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
  157. package/dist/neutral/Payment/Status/Schema.d.ts +0 -3
  158. package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
  159. package/dist/neutral/Payment/Status/index.d.ts +0 -3
  160. package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
  161. package/dist/neutral/Payment/index.d.ts +0 -5
  162. package/dist/neutral/Payment/index.d.ts.map +0 -1
  163. package/dist/neutral/Purchase/Payload.d.ts +0 -37
  164. package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
  165. package/dist/neutral/Purchase/Schema.d.ts +0 -3
  166. package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
  167. package/dist/neutral/Purchase/index.d.ts +0 -3
  168. package/dist/neutral/Purchase/index.d.ts.map +0 -1
  169. package/dist/neutral/Receipt/Payload.d.ts +0 -36
  170. package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
  171. package/dist/neutral/Receipt/Schema.d.ts +0 -3
  172. package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
  173. package/dist/neutral/Receipt/index.d.ts +0 -3
  174. package/dist/neutral/Receipt/index.d.ts.map +0 -1
  175. package/dist/neutral/Schema.d.ts +0 -3
  176. package/dist/neutral/Schema.d.ts.map +0 -1
  177. package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -8
  178. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
  179. package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -5
  180. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
  181. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -29
  182. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
  183. package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
  184. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
  185. package/dist/neutral/Subtotal/index.d.ts +0 -2
  186. package/dist/neutral/Subtotal/index.d.ts.map +0 -1
  187. package/dist/neutral/Total/Diviner/Config.d.ts +0 -18
  188. package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
  189. package/dist/neutral/Total/Diviner/Params.d.ts +0 -5
  190. package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
  191. package/dist/neutral/Total/Diviner/Payload.d.ts +0 -29
  192. package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
  193. package/dist/neutral/Total/Diviner/index.d.ts +0 -4
  194. package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
  195. package/dist/neutral/Total/index.d.ts +0 -2
  196. package/dist/neutral/Total/index.d.ts.map +0 -1
  197. package/dist/neutral/index.d.ts.map +0 -1
@@ -1,217 +0,0 @@
1
- import type { Address, Hash } from '@xylabs/hex';
2
- import type { 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 import("@xylabs/object").DeepRestrictToStringKeys<{
63
- schema: "network.xyo.escrow.terms";
64
- appraisalAuthorities?: Lowercase<string>[] | undefined;
65
- appraisals?: Lowercase<string>[] | undefined;
66
- assets?: Lowercase<string>[] | undefined;
67
- buyer?: Lowercase<string>[] | undefined;
68
- buyerSecret?: Lowercase<string> | undefined;
69
- discounts?: Lowercase<string>[] | undefined;
70
- escrowAgent?: Lowercase<string> | undefined;
71
- exp?: number | undefined;
72
- nbf?: number | undefined;
73
- paymentAuthorities?: Lowercase<string>[] | undefined;
74
- seller?: Lowercase<string>[] | undefined;
75
- sellerSecret?: Lowercase<string> | undefined;
76
- }>;
77
- export declare const asEscrowTerms: {
78
- <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
79
- schema: "network.xyo.escrow.terms";
80
- appraisalAuthorities?: Lowercase<string>[] | undefined;
81
- appraisals?: Lowercase<string>[] | undefined;
82
- assets?: Lowercase<string>[] | undefined;
83
- buyer?: Lowercase<string>[] | undefined;
84
- buyerSecret?: Lowercase<string> | undefined;
85
- discounts?: Lowercase<string>[] | undefined;
86
- escrowAgent?: Lowercase<string> | undefined;
87
- exp?: number | undefined;
88
- nbf?: number | undefined;
89
- paymentAuthorities?: Lowercase<string>[] | undefined;
90
- seller?: Lowercase<string>[] | undefined;
91
- sellerSecret?: Lowercase<string> | undefined;
92
- }>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
93
- <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
94
- schema: "network.xyo.escrow.terms";
95
- appraisalAuthorities?: Lowercase<string>[] | undefined;
96
- appraisals?: Lowercase<string>[] | undefined;
97
- assets?: Lowercase<string>[] | undefined;
98
- buyer?: Lowercase<string>[] | undefined;
99
- buyerSecret?: Lowercase<string> | undefined;
100
- discounts?: Lowercase<string>[] | undefined;
101
- escrowAgent?: Lowercase<string> | undefined;
102
- exp?: number | undefined;
103
- nbf?: number | undefined;
104
- paymentAuthorities?: Lowercase<string>[] | undefined;
105
- seller?: Lowercase<string>[] | undefined;
106
- sellerSecret?: Lowercase<string> | undefined;
107
- }>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
108
- schema: "network.xyo.escrow.terms";
109
- appraisalAuthorities?: Lowercase<string>[] | undefined;
110
- appraisals?: Lowercase<string>[] | undefined;
111
- assets?: Lowercase<string>[] | undefined;
112
- buyer?: Lowercase<string>[] | undefined;
113
- buyerSecret?: Lowercase<string> | undefined;
114
- discounts?: Lowercase<string>[] | undefined;
115
- escrowAgent?: Lowercase<string> | undefined;
116
- exp?: number | undefined;
117
- nbf?: number | undefined;
118
- paymentAuthorities?: Lowercase<string>[] | undefined;
119
- seller?: Lowercase<string>[] | undefined;
120
- sellerSecret?: Lowercase<string> | undefined;
121
- }>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
122
- };
123
- export declare const asOptionalEscrowTerms: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
124
- schema: "network.xyo.escrow.terms";
125
- appraisalAuthorities?: Lowercase<string>[] | undefined;
126
- appraisals?: Lowercase<string>[] | undefined;
127
- assets?: Lowercase<string>[] | undefined;
128
- buyer?: Lowercase<string>[] | undefined;
129
- buyerSecret?: Lowercase<string> | undefined;
130
- discounts?: Lowercase<string>[] | undefined;
131
- escrowAgent?: Lowercase<string> | undefined;
132
- exp?: number | undefined;
133
- nbf?: number | undefined;
134
- paymentAuthorities?: Lowercase<string>[] | undefined;
135
- seller?: Lowercase<string>[] | undefined;
136
- sellerSecret?: Lowercase<string> | undefined;
137
- }>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
138
- /**
139
- * Identity function for determining if an object is an EscrowTerms with sources
140
- */
141
- export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
142
- schema: "network.xyo.escrow.terms";
143
- appraisalAuthorities?: Lowercase<string>[] | undefined;
144
- appraisals?: Lowercase<string>[] | undefined;
145
- assets?: Lowercase<string>[] | undefined;
146
- buyer?: Lowercase<string>[] | undefined;
147
- buyerSecret?: Lowercase<string> | undefined;
148
- discounts?: Lowercase<string>[] | undefined;
149
- escrowAgent?: Lowercase<string> | undefined;
150
- exp?: number | undefined;
151
- nbf?: number | undefined;
152
- paymentAuthorities?: Lowercase<string>[] | undefined;
153
- seller?: Lowercase<string>[] | undefined;
154
- sellerSecret?: Lowercase<string> | undefined;
155
- }>>;
156
- export declare const asEscrowTermsWithSources: {
157
- <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
158
- schema: "network.xyo.escrow.terms";
159
- appraisalAuthorities?: Lowercase<string>[] | undefined;
160
- appraisals?: Lowercase<string>[] | undefined;
161
- assets?: Lowercase<string>[] | undefined;
162
- buyer?: Lowercase<string>[] | undefined;
163
- buyerSecret?: Lowercase<string> | undefined;
164
- discounts?: Lowercase<string>[] | undefined;
165
- escrowAgent?: Lowercase<string> | undefined;
166
- exp?: number | undefined;
167
- nbf?: number | undefined;
168
- paymentAuthorities?: Lowercase<string>[] | undefined;
169
- seller?: Lowercase<string>[] | undefined;
170
- sellerSecret?: Lowercase<string> | undefined;
171
- }>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
172
- <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
173
- schema: "network.xyo.escrow.terms";
174
- appraisalAuthorities?: Lowercase<string>[] | undefined;
175
- appraisals?: Lowercase<string>[] | undefined;
176
- assets?: Lowercase<string>[] | undefined;
177
- buyer?: Lowercase<string>[] | undefined;
178
- buyerSecret?: Lowercase<string> | undefined;
179
- discounts?: Lowercase<string>[] | undefined;
180
- escrowAgent?: Lowercase<string> | undefined;
181
- exp?: number | undefined;
182
- nbf?: number | undefined;
183
- paymentAuthorities?: Lowercase<string>[] | undefined;
184
- seller?: Lowercase<string>[] | undefined;
185
- sellerSecret?: Lowercase<string> | undefined;
186
- }>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
187
- schema: "network.xyo.escrow.terms";
188
- appraisalAuthorities?: Lowercase<string>[] | undefined;
189
- appraisals?: Lowercase<string>[] | undefined;
190
- assets?: Lowercase<string>[] | undefined;
191
- buyer?: Lowercase<string>[] | undefined;
192
- buyerSecret?: Lowercase<string> | undefined;
193
- discounts?: Lowercase<string>[] | undefined;
194
- escrowAgent?: Lowercase<string> | undefined;
195
- exp?: number | undefined;
196
- nbf?: number | undefined;
197
- paymentAuthorities?: Lowercase<string>[] | undefined;
198
- seller?: Lowercase<string>[] | undefined;
199
- sellerSecret?: Lowercase<string> | undefined;
200
- }>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
201
- };
202
- export declare const asOptionalEscrowTermsWithSources: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
203
- schema: "network.xyo.escrow.terms";
204
- appraisalAuthorities?: Lowercase<string>[] | undefined;
205
- appraisals?: Lowercase<string>[] | undefined;
206
- assets?: Lowercase<string>[] | undefined;
207
- buyer?: Lowercase<string>[] | undefined;
208
- buyerSecret?: Lowercase<string> | undefined;
209
- discounts?: Lowercase<string>[] | undefined;
210
- escrowAgent?: Lowercase<string> | undefined;
211
- exp?: number | undefined;
212
- nbf?: number | undefined;
213
- paymentAuthorities?: Lowercase<string>[] | undefined;
214
- seller?: Lowercase<string>[] | undefined;
215
- sellerSecret?: Lowercase<string> | undefined;
216
- }>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise) => TType | undefined;
217
- //# sourceMappingURL=Terms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,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;;;;;;;;;;;;;;EAAwD,CAAA;AAClF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;sBApEoE,qDAErF,iCAAiC,gBAEzB;;;;;;;;;;;;;;;sBACa,qDAAiB;;;;;;;;;;;;;;yBAO7C,gBAFc;CA0D+D,CAAA;AAC/E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kBAvDO,qDAExC,qCAqD8F,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;sBA3EyD,qDAErF,iCAAiC,gBAEzB;;;;;;;;;;;;;;;sBACa,qDAAiB;;;;;;;;;;;;;;yBAO7C,gBAFc;CAiEqF,CAAA;AACrG,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;kBA9DJ,qDAExC,qCA4DoH,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Party.ts';
2
- export * from './PartySecret.ts';
3
- export * from './Terms.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import { type HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
3
- import type { Payload, WithSources } from '@xyo-network/payload-model';
4
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAppraisalsByAsset.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getAppraisalsByAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,iBAAiB,EAAkC,MAAM,iCAAiC,CAAA;AACxG,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAAW,WAAW,cAAc,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAkBzI,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import { type BoundWitness } from '@xyo-network/boundwitness-model';
3
- import type { Payload } from '@xyo-network/payload-model';
4
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,UAC5B,WAAW,cACN,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAChC,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,CAsB7B,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './getAppraisalsByAsset.ts';
2
- export * from './getSignaturesByAppraisal.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export * from './appraisal/index.ts';
2
- export * from './secret/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
@@ -1,44 +0,0 @@
1
- import type { AccountInstance } from '@xyo-network/account-model';
2
- import type { IdPayload } from '@xyo-network/id-payload-plugin';
3
- import type { 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: IdPayload, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xylabs/object").DeepRestrictToStringKeys<{
12
- schema: import("@xyo-network/payload-model").Schema;
13
- }>[], import("@xylabs/object").DeepRestrictToStringKeys<{
14
- schema: "network.xyo.error.module";
15
- details?: string | number | boolean | {
16
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
17
- } | (string | number | boolean | {
18
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
19
- } | (string | number | boolean | {
20
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
21
- } | (string | number | boolean | {
22
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
23
- } | (string | number | boolean | {
24
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
25
- } | (string | number | boolean | {
26
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
27
- } | (string | number | boolean | {
28
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
29
- } | (string | number | boolean | {
30
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
31
- } | (string | number | boolean | {
32
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
33
- } | (string | number | boolean | {
34
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
35
- } | (string | number | boolean | {
36
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
37
- } | (string | number | boolean | {
38
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
39
- } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
40
- message?: string | undefined;
41
- name?: string | undefined;
42
- query?: import("@xylabs/hex").Hash | undefined;
43
- }>[]]>;
44
- //# sourceMappingURL=createEscrowIntent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,UAAiB,WAAW,UAAU,SAAS,WAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGjH,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import { type BoundWitness } from '@xyo-network/boundwitness-model';
3
- import type { Payload } from '@xyo-network/payload-model';
4
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAW7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,UAAW,WAAW,cAAc,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,WAAW,KAAG,YAAY,EAqBvI,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,46 +0,0 @@
1
- import type { AccountInstance } from '@xyo-network/account-model';
2
- import type { IdPayload } from '@xyo-network/id-payload-plugin';
3
- import type { 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("@xylabs/object").DeepRestrictToStringKeys<{
14
- schema: import("@xyo-network/payload-model").Schema;
15
- }>[], import("@xylabs/object").DeepRestrictToStringKeys<{
16
- schema: "network.xyo.error.module";
17
- details?: string | number | boolean | {
18
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
19
- } | (string | number | boolean | {
20
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
21
- } | (string | number | boolean | {
22
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
23
- } | (string | number | boolean | {
24
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
25
- } | (string | number | boolean | {
26
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
27
- } | (string | number | boolean | {
28
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
29
- } | (string | number | boolean | {
30
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
31
- } | (string | number | boolean | {
32
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
33
- } | (string | number | boolean | {
34
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
35
- } | (string | number | boolean | {
36
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
37
- } | (string | number | boolean | {
38
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
39
- } | (string | number | boolean | {
40
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
41
- } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
42
- message?: string | undefined;
43
- name?: string | undefined;
44
- query?: import("@xylabs/hex").Hash | undefined;
45
- }>[]]>;
46
- //# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,UAC/B,WAAW,eACL,WAAW,WACf,eAAe,GAAG,eAAe,EAAE,WACnC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAanB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './moduleInstanceValidators.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
@@ -1,22 +0,0 @@
1
- import type { ModuleIdentifier } from '@xyo-network/module-model';
2
- import type { PayloadValueExpression } from '@xyo-network/payload-model';
3
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,sBACJ,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBACxH,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,gBAC5B,WAAW,YACd,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,qBAC9G,gBAAgB,EAAE,aAC3B,OAAO,YAQlB,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model';
3
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzF,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqB/I,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './getPartySecretSignedValidator.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './validateWithinWindow.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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,UAAW,QAAQ,OAAO,MAAM,QAAO,MAAM,KAAgB,OAI7F,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ModuleInstanceValidators/index.ts';
2
- export * from './SecretValidators/index.ts';
3
- export * from './TemporalValidators/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- import type { ModuleIdentifier } from '@xyo-network/module-model';
2
- import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
- import type { EscrowTerms } from '../../Terms/index.ts';
4
- export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
5
- //# sourceMappingURL=agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,8BAA8B,uBAAwB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
@@ -1,29 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,OAAO,EAAE,6BAA6B,EACvC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,eAC1B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,cACrB,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { ModuleIdentifier } from '@xyo-network/module-model';
2
- import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
3
- import type { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,YAAa,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}