@xyo-network/xns-payload-plugins 3.5.7 → 3.6.0

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 (283) hide show
  1. package/package.json +6 -6
  2. package/plugins/record/dist/browser/Address/Payload.d.ts +0 -16
  3. package/plugins/record/dist/browser/Address/Payload.d.ts.map +0 -1
  4. package/plugins/record/dist/browser/Address/index.d.ts +0 -2
  5. package/plugins/record/dist/browser/Address/index.d.ts.map +0 -1
  6. package/plugins/record/dist/browser/DNS/Witness/Config.d.ts +0 -13
  7. package/plugins/record/dist/browser/DNS/Witness/Config.d.ts.map +0 -1
  8. package/plugins/record/dist/browser/DNS/Witness/Params.d.ts +0 -5
  9. package/plugins/record/dist/browser/DNS/Witness/Params.d.ts.map +0 -1
  10. package/plugins/record/dist/browser/DNS/Witness/Payload/Payload.d.ts +0 -4
  11. package/plugins/record/dist/browser/DNS/Witness/Payload/Payload.d.ts.map +0 -1
  12. package/plugins/record/dist/browser/DNS/Witness/Payload/Request.d.ts +0 -9
  13. package/plugins/record/dist/browser/DNS/Witness/Payload/Request.d.ts.map +0 -1
  14. package/plugins/record/dist/browser/DNS/Witness/Payload/Response.d.ts +0 -8
  15. package/plugins/record/dist/browser/DNS/Witness/Payload/Response.d.ts.map +0 -1
  16. package/plugins/record/dist/browser/DNS/Witness/Payload/index.d.ts +0 -4
  17. package/plugins/record/dist/browser/DNS/Witness/Payload/index.d.ts.map +0 -1
  18. package/plugins/record/dist/browser/DNS/Witness/Schema.d.ts +0 -3
  19. package/plugins/record/dist/browser/DNS/Witness/Schema.d.ts.map +0 -1
  20. package/plugins/record/dist/browser/DNS/Witness/index.d.ts +0 -5
  21. package/plugins/record/dist/browser/DNS/Witness/index.d.ts.map +0 -1
  22. package/plugins/record/dist/browser/DNS/index.d.ts +0 -3
  23. package/plugins/record/dist/browser/DNS/index.d.ts.map +0 -1
  24. package/plugins/record/dist/browser/DNS/types/Answer.d.ts +0 -5
  25. package/plugins/record/dist/browser/DNS/types/Answer.d.ts.map +0 -1
  26. package/plugins/record/dist/browser/DNS/types/Header.d.ts +0 -38
  27. package/plugins/record/dist/browser/DNS/types/Header.d.ts.map +0 -1
  28. package/plugins/record/dist/browser/DNS/types/OperationCodes.d.ts +0 -4
  29. package/plugins/record/dist/browser/DNS/types/OperationCodes.d.ts.map +0 -1
  30. package/plugins/record/dist/browser/DNS/types/Record.d.ts +0 -8
  31. package/plugins/record/dist/browser/DNS/types/Record.d.ts.map +0 -1
  32. package/plugins/record/dist/browser/DNS/types/Request.d.ts +0 -13
  33. package/plugins/record/dist/browser/DNS/types/Request.d.ts.map +0 -1
  34. package/plugins/record/dist/browser/DNS/types/ResourceRecord.d.ts +0 -5
  35. package/plugins/record/dist/browser/DNS/types/ResourceRecord.d.ts.map +0 -1
  36. package/plugins/record/dist/browser/DNS/types/Response.d.ts +0 -11
  37. package/plugins/record/dist/browser/DNS/types/Response.d.ts.map +0 -1
  38. package/plugins/record/dist/browser/DNS/types/ResponseCodes.d.ts +0 -4
  39. package/plugins/record/dist/browser/DNS/types/ResponseCodes.d.ts.map +0 -1
  40. package/plugins/record/dist/browser/DNS/types/index.d.ts +0 -9
  41. package/plugins/record/dist/browser/DNS/types/index.d.ts.map +0 -1
  42. package/plugins/record/dist/browser/Domain/Domain.d.ts +0 -19
  43. package/plugins/record/dist/browser/Domain/Domain.d.ts.map +0 -1
  44. package/plugins/record/dist/browser/Domain/DomainLease.d.ts +0 -18
  45. package/plugins/record/dist/browser/Domain/DomainLease.d.ts.map +0 -1
  46. package/plugins/record/dist/browser/Domain/index.d.ts +0 -3
  47. package/plugins/record/dist/browser/Domain/index.d.ts.map +0 -1
  48. package/plugins/record/dist/browser/DomainEstimate/DomainEstimate.d.ts +0 -10
  49. package/plugins/record/dist/browser/DomainEstimate/DomainEstimate.d.ts.map +0 -1
  50. package/plugins/record/dist/browser/DomainEstimate/index.d.ts +0 -2
  51. package/plugins/record/dist/browser/DomainEstimate/index.d.ts.map +0 -1
  52. package/plugins/record/dist/browser/DomainRegistration/DomainRegistration.d.ts +0 -20
  53. package/plugins/record/dist/browser/DomainRegistration/DomainRegistration.d.ts.map +0 -1
  54. package/plugins/record/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts +0 -24
  55. package/plugins/record/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts.map +0 -1
  56. package/plugins/record/dist/browser/DomainRegistration/index.d.ts +0 -3
  57. package/plugins/record/dist/browser/DomainRegistration/index.d.ts.map +0 -1
  58. package/plugins/record/dist/browser/Duration/Duration.d.ts +0 -5
  59. package/plugins/record/dist/browser/Duration/Duration.d.ts.map +0 -1
  60. package/plugins/record/dist/browser/Duration/index.d.ts +0 -3
  61. package/plugins/record/dist/browser/Duration/index.d.ts.map +0 -1
  62. package/plugins/record/dist/browser/Duration/validation/index.d.ts +0 -3
  63. package/plugins/record/dist/browser/Duration/validation/index.d.ts.map +0 -1
  64. package/plugins/record/dist/browser/Duration/validation/validateBoundWitness.d.ts +0 -3
  65. package/plugins/record/dist/browser/Duration/validation/validateBoundWitness.d.ts.map +0 -1
  66. package/plugins/record/dist/browser/Duration/validation/validateBoundWitnessAndDuration.d.ts +0 -5
  67. package/plugins/record/dist/browser/Duration/validation/validateBoundWitnessAndDuration.d.ts.map +0 -1
  68. package/plugins/record/dist/browser/Duration/validation/validateBoundWitnessWithDuration.d.ts +0 -5
  69. package/plugins/record/dist/browser/Duration/validation/validateBoundWitnessWithDuration.d.ts.map +0 -1
  70. package/plugins/record/dist/browser/Duration/validation/validateDuration.d.ts +0 -5
  71. package/plugins/record/dist/browser/Duration/validation/validateDuration.d.ts.map +0 -1
  72. package/plugins/record/dist/browser/Hash/Payload.d.ts +0 -16
  73. package/plugins/record/dist/browser/Hash/Payload.d.ts.map +0 -1
  74. package/plugins/record/dist/browser/Hash/index.d.ts +0 -2
  75. package/plugins/record/dist/browser/Hash/index.d.ts.map +0 -1
  76. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts +0 -4
  77. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts.map +0 -1
  78. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +0 -22
  79. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +0 -1
  80. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts +0 -3
  81. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts.map +0 -1
  82. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/Schema.d.ts +0 -3
  83. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +0 -1
  84. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/index.d.ts +0 -3
  85. package/plugins/record/dist/browser/diviner/DomainLeaseEstimateDiviner/index.d.ts.map +0 -1
  86. package/plugins/record/dist/browser/diviner/index.d.ts +0 -3
  87. package/plugins/record/dist/browser/diviner/index.d.ts.map +0 -1
  88. package/plugins/record/dist/browser/diviner/lib/index.d.ts +0 -2
  89. package/plugins/record/dist/browser/diviner/lib/index.d.ts.map +0 -1
  90. package/plugins/record/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts +0 -11
  91. package/plugins/record/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts.map +0 -1
  92. package/plugins/record/dist/browser/index.d.ts +0 -9
  93. package/plugins/record/dist/browser/index.d.ts.map +0 -1
  94. package/plugins/record/dist/browser/index.mjs +0 -567
  95. package/plugins/record/dist/browser/index.mjs.map +0 -1
  96. package/plugins/record/dist/neutral/Address/Payload.d.ts +0 -16
  97. package/plugins/record/dist/neutral/Address/Payload.d.ts.map +0 -1
  98. package/plugins/record/dist/neutral/Address/index.d.ts +0 -2
  99. package/plugins/record/dist/neutral/Address/index.d.ts.map +0 -1
  100. package/plugins/record/dist/neutral/DNS/Witness/Config.d.ts +0 -13
  101. package/plugins/record/dist/neutral/DNS/Witness/Config.d.ts.map +0 -1
  102. package/plugins/record/dist/neutral/DNS/Witness/Params.d.ts +0 -5
  103. package/plugins/record/dist/neutral/DNS/Witness/Params.d.ts.map +0 -1
  104. package/plugins/record/dist/neutral/DNS/Witness/Payload/Payload.d.ts +0 -4
  105. package/plugins/record/dist/neutral/DNS/Witness/Payload/Payload.d.ts.map +0 -1
  106. package/plugins/record/dist/neutral/DNS/Witness/Payload/Request.d.ts +0 -9
  107. package/plugins/record/dist/neutral/DNS/Witness/Payload/Request.d.ts.map +0 -1
  108. package/plugins/record/dist/neutral/DNS/Witness/Payload/Response.d.ts +0 -8
  109. package/plugins/record/dist/neutral/DNS/Witness/Payload/Response.d.ts.map +0 -1
  110. package/plugins/record/dist/neutral/DNS/Witness/Payload/index.d.ts +0 -4
  111. package/plugins/record/dist/neutral/DNS/Witness/Payload/index.d.ts.map +0 -1
  112. package/plugins/record/dist/neutral/DNS/Witness/Schema.d.ts +0 -3
  113. package/plugins/record/dist/neutral/DNS/Witness/Schema.d.ts.map +0 -1
  114. package/plugins/record/dist/neutral/DNS/Witness/index.d.ts +0 -5
  115. package/plugins/record/dist/neutral/DNS/Witness/index.d.ts.map +0 -1
  116. package/plugins/record/dist/neutral/DNS/index.d.ts +0 -3
  117. package/plugins/record/dist/neutral/DNS/index.d.ts.map +0 -1
  118. package/plugins/record/dist/neutral/DNS/types/Answer.d.ts +0 -5
  119. package/plugins/record/dist/neutral/DNS/types/Answer.d.ts.map +0 -1
  120. package/plugins/record/dist/neutral/DNS/types/Header.d.ts +0 -38
  121. package/plugins/record/dist/neutral/DNS/types/Header.d.ts.map +0 -1
  122. package/plugins/record/dist/neutral/DNS/types/OperationCodes.d.ts +0 -4
  123. package/plugins/record/dist/neutral/DNS/types/OperationCodes.d.ts.map +0 -1
  124. package/plugins/record/dist/neutral/DNS/types/Record.d.ts +0 -8
  125. package/plugins/record/dist/neutral/DNS/types/Record.d.ts.map +0 -1
  126. package/plugins/record/dist/neutral/DNS/types/Request.d.ts +0 -13
  127. package/plugins/record/dist/neutral/DNS/types/Request.d.ts.map +0 -1
  128. package/plugins/record/dist/neutral/DNS/types/ResourceRecord.d.ts +0 -5
  129. package/plugins/record/dist/neutral/DNS/types/ResourceRecord.d.ts.map +0 -1
  130. package/plugins/record/dist/neutral/DNS/types/Response.d.ts +0 -11
  131. package/plugins/record/dist/neutral/DNS/types/Response.d.ts.map +0 -1
  132. package/plugins/record/dist/neutral/DNS/types/ResponseCodes.d.ts +0 -4
  133. package/plugins/record/dist/neutral/DNS/types/ResponseCodes.d.ts.map +0 -1
  134. package/plugins/record/dist/neutral/DNS/types/index.d.ts +0 -9
  135. package/plugins/record/dist/neutral/DNS/types/index.d.ts.map +0 -1
  136. package/plugins/record/dist/neutral/Domain/Domain.d.ts +0 -19
  137. package/plugins/record/dist/neutral/Domain/Domain.d.ts.map +0 -1
  138. package/plugins/record/dist/neutral/Domain/DomainLease.d.ts +0 -18
  139. package/plugins/record/dist/neutral/Domain/DomainLease.d.ts.map +0 -1
  140. package/plugins/record/dist/neutral/Domain/index.d.ts +0 -3
  141. package/plugins/record/dist/neutral/Domain/index.d.ts.map +0 -1
  142. package/plugins/record/dist/neutral/DomainEstimate/DomainEstimate.d.ts +0 -10
  143. package/plugins/record/dist/neutral/DomainEstimate/DomainEstimate.d.ts.map +0 -1
  144. package/plugins/record/dist/neutral/DomainEstimate/index.d.ts +0 -2
  145. package/plugins/record/dist/neutral/DomainEstimate/index.d.ts.map +0 -1
  146. package/plugins/record/dist/neutral/DomainRegistration/DomainRegistration.d.ts +0 -20
  147. package/plugins/record/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +0 -1
  148. package/plugins/record/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +0 -24
  149. package/plugins/record/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +0 -1
  150. package/plugins/record/dist/neutral/DomainRegistration/index.d.ts +0 -3
  151. package/plugins/record/dist/neutral/DomainRegistration/index.d.ts.map +0 -1
  152. package/plugins/record/dist/neutral/Duration/Duration.d.ts +0 -5
  153. package/plugins/record/dist/neutral/Duration/Duration.d.ts.map +0 -1
  154. package/plugins/record/dist/neutral/Duration/index.d.ts +0 -3
  155. package/plugins/record/dist/neutral/Duration/index.d.ts.map +0 -1
  156. package/plugins/record/dist/neutral/Duration/validation/index.d.ts +0 -3
  157. package/plugins/record/dist/neutral/Duration/validation/index.d.ts.map +0 -1
  158. package/plugins/record/dist/neutral/Duration/validation/validateBoundWitness.d.ts +0 -3
  159. package/plugins/record/dist/neutral/Duration/validation/validateBoundWitness.d.ts.map +0 -1
  160. package/plugins/record/dist/neutral/Duration/validation/validateBoundWitnessAndDuration.d.ts +0 -5
  161. package/plugins/record/dist/neutral/Duration/validation/validateBoundWitnessAndDuration.d.ts.map +0 -1
  162. package/plugins/record/dist/neutral/Duration/validation/validateBoundWitnessWithDuration.d.ts +0 -5
  163. package/plugins/record/dist/neutral/Duration/validation/validateBoundWitnessWithDuration.d.ts.map +0 -1
  164. package/plugins/record/dist/neutral/Duration/validation/validateDuration.d.ts +0 -5
  165. package/plugins/record/dist/neutral/Duration/validation/validateDuration.d.ts.map +0 -1
  166. package/plugins/record/dist/neutral/Hash/Payload.d.ts +0 -16
  167. package/plugins/record/dist/neutral/Hash/Payload.d.ts.map +0 -1
  168. package/plugins/record/dist/neutral/Hash/index.d.ts +0 -2
  169. package/plugins/record/dist/neutral/Hash/index.d.ts.map +0 -1
  170. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts +0 -4
  171. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts.map +0 -1
  172. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +0 -22
  173. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +0 -1
  174. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts +0 -3
  175. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts.map +0 -1
  176. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/Schema.d.ts +0 -3
  177. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +0 -1
  178. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/index.d.ts +0 -3
  179. package/plugins/record/dist/neutral/diviner/DomainLeaseEstimateDiviner/index.d.ts.map +0 -1
  180. package/plugins/record/dist/neutral/diviner/index.d.ts +0 -3
  181. package/plugins/record/dist/neutral/diviner/index.d.ts.map +0 -1
  182. package/plugins/record/dist/neutral/diviner/lib/index.d.ts +0 -2
  183. package/plugins/record/dist/neutral/diviner/lib/index.d.ts.map +0 -1
  184. package/plugins/record/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts +0 -11
  185. package/plugins/record/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts.map +0 -1
  186. package/plugins/record/dist/neutral/index.d.ts +0 -9
  187. package/plugins/record/dist/neutral/index.d.ts.map +0 -1
  188. package/plugins/record/dist/neutral/index.mjs +0 -567
  189. package/plugins/record/dist/neutral/index.mjs.map +0 -1
  190. package/plugins/record/dist/node/Address/Payload.d.ts +0 -16
  191. package/plugins/record/dist/node/Address/Payload.d.ts.map +0 -1
  192. package/plugins/record/dist/node/Address/index.d.ts +0 -2
  193. package/plugins/record/dist/node/Address/index.d.ts.map +0 -1
  194. package/plugins/record/dist/node/DNS/Witness/Config.d.ts +0 -13
  195. package/plugins/record/dist/node/DNS/Witness/Config.d.ts.map +0 -1
  196. package/plugins/record/dist/node/DNS/Witness/Params.d.ts +0 -5
  197. package/plugins/record/dist/node/DNS/Witness/Params.d.ts.map +0 -1
  198. package/plugins/record/dist/node/DNS/Witness/Payload/Payload.d.ts +0 -4
  199. package/plugins/record/dist/node/DNS/Witness/Payload/Payload.d.ts.map +0 -1
  200. package/plugins/record/dist/node/DNS/Witness/Payload/Request.d.ts +0 -9
  201. package/plugins/record/dist/node/DNS/Witness/Payload/Request.d.ts.map +0 -1
  202. package/plugins/record/dist/node/DNS/Witness/Payload/Response.d.ts +0 -8
  203. package/plugins/record/dist/node/DNS/Witness/Payload/Response.d.ts.map +0 -1
  204. package/plugins/record/dist/node/DNS/Witness/Payload/index.d.ts +0 -4
  205. package/plugins/record/dist/node/DNS/Witness/Payload/index.d.ts.map +0 -1
  206. package/plugins/record/dist/node/DNS/Witness/Schema.d.ts +0 -3
  207. package/plugins/record/dist/node/DNS/Witness/Schema.d.ts.map +0 -1
  208. package/plugins/record/dist/node/DNS/Witness/index.d.ts +0 -5
  209. package/plugins/record/dist/node/DNS/Witness/index.d.ts.map +0 -1
  210. package/plugins/record/dist/node/DNS/index.d.ts +0 -3
  211. package/plugins/record/dist/node/DNS/index.d.ts.map +0 -1
  212. package/plugins/record/dist/node/DNS/types/Answer.d.ts +0 -5
  213. package/plugins/record/dist/node/DNS/types/Answer.d.ts.map +0 -1
  214. package/plugins/record/dist/node/DNS/types/Header.d.ts +0 -38
  215. package/plugins/record/dist/node/DNS/types/Header.d.ts.map +0 -1
  216. package/plugins/record/dist/node/DNS/types/OperationCodes.d.ts +0 -4
  217. package/plugins/record/dist/node/DNS/types/OperationCodes.d.ts.map +0 -1
  218. package/plugins/record/dist/node/DNS/types/Record.d.ts +0 -8
  219. package/plugins/record/dist/node/DNS/types/Record.d.ts.map +0 -1
  220. package/plugins/record/dist/node/DNS/types/Request.d.ts +0 -13
  221. package/plugins/record/dist/node/DNS/types/Request.d.ts.map +0 -1
  222. package/plugins/record/dist/node/DNS/types/ResourceRecord.d.ts +0 -5
  223. package/plugins/record/dist/node/DNS/types/ResourceRecord.d.ts.map +0 -1
  224. package/plugins/record/dist/node/DNS/types/Response.d.ts +0 -11
  225. package/plugins/record/dist/node/DNS/types/Response.d.ts.map +0 -1
  226. package/plugins/record/dist/node/DNS/types/ResponseCodes.d.ts +0 -4
  227. package/plugins/record/dist/node/DNS/types/ResponseCodes.d.ts.map +0 -1
  228. package/plugins/record/dist/node/DNS/types/index.d.ts +0 -9
  229. package/plugins/record/dist/node/DNS/types/index.d.ts.map +0 -1
  230. package/plugins/record/dist/node/Domain/Domain.d.ts +0 -19
  231. package/plugins/record/dist/node/Domain/Domain.d.ts.map +0 -1
  232. package/plugins/record/dist/node/Domain/DomainLease.d.ts +0 -18
  233. package/plugins/record/dist/node/Domain/DomainLease.d.ts.map +0 -1
  234. package/plugins/record/dist/node/Domain/index.d.ts +0 -3
  235. package/plugins/record/dist/node/Domain/index.d.ts.map +0 -1
  236. package/plugins/record/dist/node/DomainEstimate/DomainEstimate.d.ts +0 -10
  237. package/plugins/record/dist/node/DomainEstimate/DomainEstimate.d.ts.map +0 -1
  238. package/plugins/record/dist/node/DomainEstimate/index.d.ts +0 -2
  239. package/plugins/record/dist/node/DomainEstimate/index.d.ts.map +0 -1
  240. package/plugins/record/dist/node/DomainRegistration/DomainRegistration.d.ts +0 -20
  241. package/plugins/record/dist/node/DomainRegistration/DomainRegistration.d.ts.map +0 -1
  242. package/plugins/record/dist/node/DomainRegistration/DomainRegistrationLease.d.ts +0 -24
  243. package/plugins/record/dist/node/DomainRegistration/DomainRegistrationLease.d.ts.map +0 -1
  244. package/plugins/record/dist/node/DomainRegistration/index.d.ts +0 -3
  245. package/plugins/record/dist/node/DomainRegistration/index.d.ts.map +0 -1
  246. package/plugins/record/dist/node/Duration/Duration.d.ts +0 -5
  247. package/plugins/record/dist/node/Duration/Duration.d.ts.map +0 -1
  248. package/plugins/record/dist/node/Duration/index.d.ts +0 -3
  249. package/plugins/record/dist/node/Duration/index.d.ts.map +0 -1
  250. package/plugins/record/dist/node/Duration/validation/index.d.ts +0 -3
  251. package/plugins/record/dist/node/Duration/validation/index.d.ts.map +0 -1
  252. package/plugins/record/dist/node/Duration/validation/validateBoundWitness.d.ts +0 -3
  253. package/plugins/record/dist/node/Duration/validation/validateBoundWitness.d.ts.map +0 -1
  254. package/plugins/record/dist/node/Duration/validation/validateBoundWitnessAndDuration.d.ts +0 -5
  255. package/plugins/record/dist/node/Duration/validation/validateBoundWitnessAndDuration.d.ts.map +0 -1
  256. package/plugins/record/dist/node/Duration/validation/validateBoundWitnessWithDuration.d.ts +0 -5
  257. package/plugins/record/dist/node/Duration/validation/validateBoundWitnessWithDuration.d.ts.map +0 -1
  258. package/plugins/record/dist/node/Duration/validation/validateDuration.d.ts +0 -5
  259. package/plugins/record/dist/node/Duration/validation/validateDuration.d.ts.map +0 -1
  260. package/plugins/record/dist/node/Hash/Payload.d.ts +0 -16
  261. package/plugins/record/dist/node/Hash/Payload.d.ts.map +0 -1
  262. package/plugins/record/dist/node/Hash/index.d.ts +0 -2
  263. package/plugins/record/dist/node/Hash/index.d.ts.map +0 -1
  264. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts +0 -4
  265. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts.map +0 -1
  266. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +0 -22
  267. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +0 -1
  268. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts +0 -3
  269. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts.map +0 -1
  270. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/Schema.d.ts +0 -3
  271. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +0 -1
  272. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/index.d.ts +0 -3
  273. package/plugins/record/dist/node/diviner/DomainLeaseEstimateDiviner/index.d.ts.map +0 -1
  274. package/plugins/record/dist/node/diviner/index.d.ts +0 -3
  275. package/plugins/record/dist/node/diviner/index.d.ts.map +0 -1
  276. package/plugins/record/dist/node/diviner/lib/index.d.ts +0 -2
  277. package/plugins/record/dist/node/diviner/lib/index.d.ts.map +0 -1
  278. package/plugins/record/dist/node/diviner/lib/parseEstimatesFromArray.d.ts +0 -11
  279. package/plugins/record/dist/node/diviner/lib/parseEstimatesFromArray.d.ts.map +0 -1
  280. package/plugins/record/dist/node/index.d.ts +0 -9
  281. package/plugins/record/dist/node/index.d.ts.map +0 -1
  282. package/plugins/record/dist/node/index.mjs +0 -567
  283. package/plugins/record/dist/node/index.mjs.map +0 -1
@@ -1,22 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model';
2
- import { DomainLeaseEstimateDivinerValidationErrorDetailsSchema } from '../Schema.ts';
3
- export interface ErrorDetails<TErrorCode extends string | undefined = string | undefined> {
4
- [key: string]: any;
5
- code: TErrorCode;
6
- detail?: string;
7
- title?: string;
8
- }
9
- export type ErrorDetailsDictionary<T extends number = number> = {
10
- readonly [K in T]: ErrorDetails<`${K}`>;
11
- };
12
- export type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends string | undefined = string> = Payload<ErrorDetails<TErrorCode>, DomainLeaseEstimateDivinerValidationErrorDetailsSchema>;
13
- export declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & ErrorDetails<string> & {
14
- schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
15
- };
16
- export declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & ErrorDetails<string> & {
17
- schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
18
- }>;
19
- export declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & ErrorDetails<string> & {
20
- schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
21
- }>;
22
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,sDAAsD,EAAE,MAAM,cAAc,CAAA;AAErF,MAAM,WAAW,YAAY,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAEtF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAIlB,IAAI,EAAE,UAAU,CAAA;IAIhB,MAAM,CAAC,EAAE,MAAM,CAAA;IAIf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC9D,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;CACxC,CAAA;AAKD,MAAM,MAAM,gDAAgD,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,IAAI,OAAO,CACpH,YAAY,CAAC,UAAU,CAAC,EACxB,sDAAsD,CACvD,CAAA;AAKD,eAAO,MAAM,kDAAkD;;CAE9D,CAAA;AAKD,eAAO,MAAM,6DAA6D;;EACoE,CAAA;AAK9I,eAAO,MAAM,0DAA0D;;EACoE,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ErrorCodes.ts';
2
- export * from './Payload.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const DomainLeaseEstimateDivinerValidationErrorDetailsSchema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
2
- export type DomainLeaseEstimateDivinerValidationErrorDetailsSchema = typeof DomainLeaseEstimateDivinerValidationErrorDetailsSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/diviner/DomainLeaseEstimateDiviner/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sDAAsD,sFAC8B,CAAA;AAEjG,MAAM,MAAM,sDAAsD,GAAG,OAAO,sDAAsD,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ErrorDetails/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/diviner/DomainLeaseEstimateDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './DomainLeaseEstimateDiviner/index.ts';
2
- export * from './lib/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/diviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA;AACrD,cAAc,gBAAgB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './parseEstimatesFromArray.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/diviner/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type BoundWitness } from '@xyo-network/boundwitness-model';
2
- import { type HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
3
- import type { Payload, WithOptionalMeta, WithSources } from '@xyo-network/payload-model';
4
- import { type DomainRegistrationLease } from '../../DomainRegistration/index.ts';
5
- export type Estimate = [
6
- WithOptionalMeta<BoundWitness>,
7
- WithOptionalMeta<WithSources<HashLeaseEstimate>>,
8
- WithOptionalMeta<WithSources<DomainRegistrationLease>>
9
- ];
10
- export declare const parseEstimatesFromArray: (payloads?: Payload[]) => Promise<Estimate[]>;
11
- //# sourceMappingURL=parseEstimatesFromArray.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseEstimatesFromArray.d.ts","sourceRoot":"","sources":["../../../../src/diviner/lib/parseEstimatesFromArray.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EACV,OAAO,EAAY,gBAAgB,EAAE,WAAW,EACjD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,KAAK,uBAAuB,EAC7B,MAAM,mCAAmC,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG;IACrB,gBAAgB,CAAC,YAAY,CAAC;IAC9B,gBAAgB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAChD,gBAAgB,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;CACvD,CAAA;AAOD,eAAO,MAAM,uBAAuB,cAAqB,OAAO,EAAE,KAAG,OAAO,CAAC,QAAQ,EAAE,CA0BtF,CAAA"}
@@ -1,9 +0,0 @@
1
- export * from './Address/index.ts';
2
- export * from './diviner/index.ts';
3
- export * from './DNS/index.ts';
4
- export * from './Domain/index.ts';
5
- export * from './DomainEstimate/index.ts';
6
- export * from './DomainRegistration/index.ts';
7
- export * from './Duration/index.ts';
8
- export * from './Hash/index.ts';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA"}
@@ -1,567 +0,0 @@
1
- // src/Address/Payload.ts
2
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
3
- var AddressRecordSchema = "network.xyo.ns.record.address";
4
- var isAddressRecord = isPayloadOfSchemaType(AddressRecordSchema);
5
- var isAddressRecordWithMeta = isPayloadOfSchemaType(AddressRecordSchema);
6
-
7
- // src/diviner/DomainLeaseEstimateDiviner/Schema.ts
8
- var DomainLeaseEstimateDivinerValidationErrorDetailsSchema = "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
9
-
10
- // src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.ts
11
- var DomainLeaseEstimateDivinerErrorDetailsDictionary = {
12
- 0: {
13
- code: "0",
14
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
15
- title: "Success"
16
- },
17
- 1: {
18
- code: "1",
19
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
20
- title: "Invalid casing"
21
- },
22
- 2: {
23
- code: "2",
24
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
25
- title: "Invalid coin signature"
26
- },
27
- 3: {
28
- code: "3",
29
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
30
- title: "Invalid length"
31
- },
32
- 4: {
33
- code: "4",
34
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
35
- title: "Invalid name"
36
- },
37
- 5: {
38
- code: "5",
39
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
40
- title: "Reserved fragment"
41
- },
42
- 6: {
43
- code: "6",
44
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
45
- title: "Reserved name"
46
- },
47
- 7: {
48
- code: "7",
49
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
50
- title: "Reserved string"
51
- },
52
- 8: {
53
- code: "8",
54
- schema: DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
55
- title: "Invalid TLD"
56
- }
57
- };
58
-
59
- // src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts
60
- import {
61
- isPayloadOfSchemaType as isPayloadOfSchemaType2,
62
- isPayloadOfSchemaTypeWithMeta,
63
- isPayloadOfSchemaTypeWithSources
64
- } from "@xyo-network/payload-model";
65
- var isDomainLeaseEstimateDivinerValidationErrorDetails = isPayloadOfSchemaType2(
66
- DomainLeaseEstimateDivinerValidationErrorDetailsSchema
67
- );
68
- var isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources = isPayloadOfSchemaTypeWithSources(DomainLeaseEstimateDivinerValidationErrorDetailsSchema);
69
- var isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta = isPayloadOfSchemaTypeWithMeta(DomainLeaseEstimateDivinerValidationErrorDetailsSchema);
70
-
71
- // src/diviner/lib/parseEstimatesFromArray.ts
72
- import { exists } from "@xylabs/exists";
73
- import { isBoundWitness } from "@xyo-network/boundwitness-model";
74
- import {
75
- HashLeaseEstimateSchema,
76
- isHashLeaseEstimateWithMeta
77
- } from "@xyo-network/diviner-hash-lease";
78
- import { PayloadBuilder } from "@xyo-network/payload-builder";
79
-
80
- // src/DomainRegistration/DomainRegistration.ts
81
- import {
82
- isPayloadOfSchemaType as isPayloadOfSchemaType5,
83
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta4,
84
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4
85
- } from "@xyo-network/payload-model";
86
-
87
- // src/Domain/Domain.ts
88
- import {
89
- isPayloadOfSchemaType as isPayloadOfSchemaType3,
90
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta2,
91
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2
92
- } from "@xyo-network/payload-model";
93
- var DomainSchema = "network.xyo.ns.domain";
94
- var isDomain = isPayloadOfSchemaType3(DomainSchema);
95
- var isDomainWithSources = isPayloadOfSchemaTypeWithSources2(DomainSchema);
96
- var isDomainWithMeta = isPayloadOfSchemaTypeWithMeta2(DomainSchema);
97
-
98
- // src/Domain/DomainLease.ts
99
- import {
100
- isPayloadOfSchemaType as isPayloadOfSchemaType4,
101
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta3,
102
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3
103
- } from "@xyo-network/payload-model";
104
- var DomainLeaseSchema = "network.xyo.ns.domain.lease";
105
- var isDomainLease = isPayloadOfSchemaType4(DomainLeaseSchema);
106
- var isDomainLeaseWithSources = isPayloadOfSchemaTypeWithSources3(DomainLeaseSchema);
107
- var isDomainLeaseWithMeta = isPayloadOfSchemaTypeWithMeta3(DomainLeaseSchema);
108
-
109
- // src/DomainRegistration/DomainRegistration.ts
110
- var DomainRegistrationSchema = `${DomainSchema}.registration`;
111
- var isDomainRegistration = isPayloadOfSchemaType5(DomainRegistrationSchema);
112
- var isDomainRegistrationWithSources = isPayloadOfSchemaTypeWithSources4(DomainRegistrationSchema);
113
- var isDomainRegistrationWithMeta = isPayloadOfSchemaTypeWithMeta4(DomainRegistrationSchema);
114
-
115
- // src/DomainRegistration/DomainRegistrationLease.ts
116
- import {
117
- isPayloadOfSchemaType as isPayloadOfSchemaType6,
118
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta5,
119
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5
120
- } from "@xyo-network/payload-model";
121
- var DomainRegistrationLeaseSchema = `${DomainRegistrationSchema}.lease`;
122
- var isDomainRegistrationLease = isPayloadOfSchemaType6(DomainRegistrationLeaseSchema);
123
- var isDomainRegistrationLeaseWithSources = isPayloadOfSchemaTypeWithSources5(DomainRegistrationLeaseSchema);
124
- var isDomainRegistrationLeaseSources = isDomainRegistrationLeaseWithSources;
125
- var isDomainRegistrationLeaseWithMeta = isPayloadOfSchemaTypeWithMeta5(DomainRegistrationLeaseSchema);
126
- var isDomainRegistrationLeaseMeta = isDomainRegistrationLeaseWithMeta;
127
-
128
- // src/diviner/lib/parseEstimatesFromArray.ts
129
- var parseEstimatesFromArray = async (payloads) => {
130
- if (!payloads) return [];
131
- const bws = payloads.filter(isBoundWitness).filter(hasEstimatePayloads) ?? [];
132
- if (bws.length === 0) return [];
133
- const hashMap = await PayloadBuilder.toAllHashMap(payloads);
134
- return bws.map((bw) => {
135
- const hashLeaseEstimate = getPayloadBySchemaFromBoundWitness(
136
- bw,
137
- HashLeaseEstimateSchema,
138
- hashMap,
139
- isHashLeaseEstimateWithMeta
140
- );
141
- if (!hashLeaseEstimate) return;
142
- const domainLease = getPayloadBySchemaFromBoundWitness(
143
- bw,
144
- DomainRegistrationLeaseSchema,
145
- hashMap,
146
- isDomainRegistrationLeaseWithMeta
147
- );
148
- if (!domainLease) return;
149
- return [bw, hashLeaseEstimate, domainLease];
150
- }).filter(exists);
151
- };
152
- var hasEstimatePayloads = (bw) => {
153
- return bw.payload_schemas.includes(DomainRegistrationLeaseSchema) && bw.payload_schemas.includes(HashLeaseEstimateSchema);
154
- };
155
- var getPayloadBySchemaFromBoundWitness = (bw, schema, hashMap, identity) => {
156
- const schemaIndex = bw.payload_schemas.indexOf(schema);
157
- if (schemaIndex === -1) return;
158
- const hash = bw.payload_hashes[schemaIndex];
159
- return [hashMap[hash]].filter(exists).find(identity);
160
- };
161
-
162
- // src/DNS/types/OperationCodes.ts
163
- var DNSQueryOpcodes = {
164
- QUERY: 0,
165
- IQUERY: 1,
166
- STATUS: 2,
167
- NOTIFY: 4,
168
- UPDATE: 5,
169
- DSO: 6
170
- };
171
-
172
- // src/DNS/types/ResponseCodes.ts
173
- var DNSRcodes = {
174
- NOERROR: 0,
175
- FORMERR: 1,
176
- SERVFAIL: 2,
177
- NXDOMAIN: 3,
178
- NOTIMP: 4,
179
- REFUSED: 5,
180
- YXDOMAIN: 6,
181
- YXRRSET: 7,
182
- NXRRSET: 8,
183
- NOTAUTH: 9,
184
- NOTZONE: 10,
185
- BADSIG: 16,
186
- BADKEY: 17,
187
- BADTIME: 18
188
- };
189
-
190
- // src/DNS/types/Header.ts
191
- var StandardRequestHeader = {
192
- ID: 0,
193
- QR: 0,
194
- // Query/Response Flag (0 = Query)
195
- Opcode: DNSQueryOpcodes.QUERY,
196
- // Operation Code (0 for standard query)
197
- AA: 0,
198
- // Authoritative Answer (0 in query)
199
- TC: 0,
200
- // Truncation (0 for non-truncated)
201
- RD: 1,
202
- // Recursion Desired (1 if recursion is requested)
203
- RCODE: DNSRcodes.NOERROR,
204
- // Response Code (always 0 in query)
205
- QDCOUNT: 1,
206
- ANCOUNT: 0,
207
- NSCOUNT: 0,
208
- ARCOUNT: 0
209
- };
210
-
211
- // src/DNS/types/ResourceRecord.ts
212
- var DNSResourceRecordTypes = {
213
- "A": 1,
214
- // a host address
215
- "NS": 2,
216
- // an authoritative name server
217
- "MD": 3,
218
- // a mail destination (OBSOLETE - use MX)
219
- "MF": 4,
220
- // a mail forwarder (OBSOLETE - use MX)
221
- "CNAME": 5,
222
- // the canonical name for an alias
223
- "SOA": 6,
224
- // marks the start of a zone of authority
225
- "MB": 7,
226
- // a mailbox domain name (EXPERIMENTAL)
227
- "MG": 8,
228
- // a mail group member (EXPERIMENTAL)
229
- "MR": 9,
230
- // a mail rename domain name (EXPERIMENTAL)
231
- "NULL": 10,
232
- // a null RR (EXPERIMENTAL)
233
- "WKS": 11,
234
- // a well known service description
235
- "PTR": 12,
236
- // a domain name pointer
237
- "HINFO": 13,
238
- // host information
239
- "MINFO": 14,
240
- // mailbox or mail list information
241
- "MX": 15,
242
- // mail exchange
243
- "TXT": 16,
244
- // text strings
245
- "RP": 17,
246
- // for Responsible Person
247
- "AFSDB": 18,
248
- // for AFS Data Base location
249
- "X25": 19,
250
- // for X.25 PSDN address
251
- "ISDN": 20,
252
- // for ISDN address
253
- "RT": 21,
254
- // for Route Through
255
- "NSAP": 22,
256
- // for NSAP address, NSAP style A record (DEPRECATED)
257
- "NSAP-PTR": 23,
258
- // for domain name pointer, NSAP style (DEPRECATED)
259
- "SIG": 24,
260
- // for security signature
261
- "KEY": 25,
262
- // for security key
263
- "PX": 26,
264
- // X.400 mail mapping information
265
- "GPOS": 27,
266
- // Geographical Position
267
- "AAAA": 28,
268
- // IP6 Address
269
- "LOC": 29,
270
- // Location Information
271
- "NXT": 30,
272
- // Next Domain (OBSOLETE)
273
- "EID": 31,
274
- // Endpoint Identifier
275
- "NIMLOC": 32,
276
- // Nimrod Locator
277
- "SRV": 33,
278
- // Server Selection
279
- "ATMA": 34,
280
- // ATM Address
281
- "NAPTR": 35,
282
- // Naming Authority Pointer
283
- "KX": 36,
284
- // Key Exchanger
285
- "CERT": 37,
286
- // CERT
287
- "A6": 38,
288
- // A6 (OBSOLETE - use AAAA)
289
- "DNAME": 39,
290
- // DNAME
291
- "SINK": 40,
292
- // SINK
293
- "OPT": 41,
294
- // OPT
295
- "APL": 42,
296
- // APL
297
- "DS": 43,
298
- // Delegation Signer
299
- "SSHFP": 44,
300
- // SSH Key Fingerprint
301
- "IPSECKEY": 45,
302
- // IPSECKEY
303
- "RRSIG": 46,
304
- // RRSIG
305
- "NSEC": 47,
306
- // NSEC
307
- "DNSKEY": 48,
308
- // DNSKEY
309
- "DHCID": 49,
310
- // DHCID
311
- "NSEC3": 50,
312
- // NSEC3
313
- "NSEC3PARAM": 51,
314
- // NSEC3PARAM
315
- "TLSA": 52,
316
- // TLSA
317
- "SMIMEA": 53,
318
- // S/MIME cert association
319
- "HIP": 55,
320
- // Host Identity Protocol
321
- "NINFO": 56,
322
- // NINFO
323
- "RKEY": 57,
324
- // RKEY
325
- "TALINK": 58,
326
- // Trust Anchor LINK
327
- "CDS": 59,
328
- // Child DS
329
- "CDNSKEY": 60,
330
- // DNSKEY(s) the Child wants reflected in DS
331
- "OPENPGPKEY": 61,
332
- // OpenPGP Key
333
- "CSYNC": 62,
334
- // Child-To-Parent Synchronization
335
- "ZONEMD": 63,
336
- // Message Digest Over Zone Data
337
- "SVCB": 64,
338
- // General-purpose service binding
339
- "HTTPS": 65,
340
- // SVCB-compatible type for use with HTTP
341
- "SPF": 99,
342
- "UINFO": 100,
343
- "UID": 101,
344
- "GID": 102,
345
- "UNSPEC": 103,
346
- "NID": 104,
347
- "L32": 105,
348
- "L64": 106,
349
- "LP": 107,
350
- "EUI48": 108,
351
- // an EUI-48 address
352
- "EUI64": 109,
353
- // an EUI-64 address
354
- "NXNAME": 128,
355
- // NXDOMAIN indicator for Compact Denial of Existence
356
- "TKEY": 249,
357
- // Transaction Key
358
- "TSIG": 250,
359
- // Transaction Signature
360
- "IXFR": 251,
361
- // incremental transfer
362
- "AXFR": 252,
363
- // transfer of an entire zone
364
- "MAILB": 253,
365
- // mailbox-related RRs (MB, MG or MR)
366
- "MAILA": 254,
367
- // mail agent RRs (OBSOLETE - see MX)
368
- "*": 255,
369
- // A request for some or all records the server has available
370
- "URI": 256,
371
- // URI
372
- "CAA": 257,
373
- // Certification Authority Restriction
374
- "AVC": 258,
375
- // Application Visibility and Control
376
- "DOA": 259,
377
- // Digital Object Architecture
378
- "AMTRELAY": 260,
379
- // Automatic Multicast Tunneling Relay
380
- "RESINFO": 261,
381
- // Resolver Information as Key/Value Pairs
382
- "WALLET": 262,
383
- // Public wallet address
384
- "CLA": 263,
385
- // BP Convergence Layer Adapter
386
- "IPN": 264,
387
- // BP Node Number
388
- "TA": 32768,
389
- // DNSSEC Trust Authorities
390
- "DLV": 32769,
391
- // DNSSEC Lookaside Validation (OBSOLETE)
392
- // NOTE: Custom types here chosen within the Private Use Range
393
- // https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4
394
- // https://www.rfc-editor.org/rfc/rfc5226
395
- // as, per the RFC, the Private Use Range is reserved
396
- // "For private or local use only, with the type and
397
- // purpose defined by the local site. No attempt is made to
398
- // prevent multiple sites from using the same value in
399
- // different (and incompatible) ways. There is no need for
400
- // IANA to review such assignments (since IANA does not record
401
- // them) and assignments are not generally useful for broad
402
- // interoperability. It is the responsibility of the sites
403
- // making use of the Private Use range to ensure that no
404
- // conflicts occur (within the intended scope of use)."
405
- // If we want to apply for a custom reserved code later
406
- // on, once the usage is proven enough we can absolutely
407
- // do that.
408
- "XYOA": 65432,
409
- // XYO Address
410
- "XYOH": 65433
411
- // XYO Hash
412
- };
413
- var findDNSResourceRecordTypesByValue = (value) => {
414
- for (const key in DNSResourceRecordTypes) {
415
- const resourceRecordType = key;
416
- if (DNSResourceRecordTypes[resourceRecordType] === value) {
417
- return resourceRecordType;
418
- }
419
- }
420
- return void 0;
421
- };
422
-
423
- // src/DNS/types/Request.ts
424
- var getRequestFor = (domain, type = DNSResourceRecordTypes.A) => {
425
- return {
426
- ...StandardRequestHeader,
427
- ID: getRandomId(),
428
- Question: [{
429
- name: domain,
430
- type,
431
- class: 1
432
- }]
433
- };
434
- };
435
- var getRandomId = () => {
436
- return Math.floor(Math.random() * 65536);
437
- };
438
-
439
- // src/DNS/Witness/Schema.ts
440
- var DNSSchema = "network.xyo.dns";
441
-
442
- // src/DNS/Witness/Config.ts
443
- var DNSWitnessConfigSchema = `${DNSSchema}.witness.config`;
444
-
445
- // src/DNS/Witness/Payload/Request.ts
446
- import {
447
- isPayloadOfSchemaType as isPayloadOfSchemaType7,
448
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6,
449
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6
450
- } from "@xyo-network/payload-model";
451
- var isDNSRequest = isPayloadOfSchemaType7(DNSSchema);
452
- var isDNSRequestWithSources = isPayloadOfSchemaTypeWithSources6(DNSSchema);
453
- var isDNSRequestWithMeta = isPayloadOfSchemaTypeWithMeta6(DNSSchema);
454
- var getDnsRequestFor = (domain, type = DNSResourceRecordTypes.A) => {
455
- return { ...getRequestFor(domain, type), schema: DNSSchema };
456
- };
457
-
458
- // src/DNS/Witness/Payload/Response.ts
459
- import {
460
- isPayloadOfSchemaType as isPayloadOfSchemaType8,
461
- isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7,
462
- isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
463
- } from "@xyo-network/payload-model";
464
- var isDNSResponse = isPayloadOfSchemaType8(DNSSchema);
465
- var isDNSResponseWithSources = isPayloadOfSchemaTypeWithSources7(DNSSchema);
466
- var isDNSResponseWithMeta = isPayloadOfSchemaTypeWithMeta7(DNSSchema);
467
-
468
- // src/Duration/validation/validateBoundWitness.ts
469
- import { BoundWitnessValidator } from "@xyo-network/boundwitness-validator";
470
- var validateBoundWitness = async (recordBw, requiredSchemas = []) => {
471
- if (!requiredSchemas.every((requiredSchema) => recordBw.payload_schemas.includes(requiredSchema))) return false;
472
- const validator = new BoundWitnessValidator(recordBw);
473
- const errors = await validator.validate();
474
- return errors.length === 0;
475
- };
476
-
477
- // src/Duration/validation/validateBoundWitnessAndDuration.ts
478
- import { PayloadBuilder as PayloadBuilder2 } from "@xyo-network/payload-builder";
479
- var validateBoundWitnessAndDuration = async (recordBw, recordPayload) => {
480
- if (!await recordIsInBoundWitness(recordBw, recordPayload)) return false;
481
- if (!recordIsTemporallyValidToBoundWitness(recordBw, recordPayload)) return false;
482
- return true;
483
- };
484
- var recordIsInBoundWitness = async (recordBw, recordPayload) => {
485
- const hash = await PayloadBuilder2.dataHash(recordPayload);
486
- return recordBw.payload_hashes.includes(hash);
487
- };
488
- var recordIsTemporallyValidToBoundWitness = (recordBw, recordPayload) => {
489
- const { timestamp } = recordBw;
490
- const { exp } = recordPayload;
491
- return exp > timestamp;
492
- };
493
-
494
- // src/Duration/validation/validateDuration.ts
495
- var validateDuration = (recordPayload) => {
496
- if (!isWithinDelegatedTimeframe(recordPayload)) return false;
497
- return true;
498
- };
499
- var isWithinDelegatedTimeframe = (recordPayload, now = Date.now()) => {
500
- return recordPayload.nbf < now && now < recordPayload.exp;
501
- };
502
-
503
- // src/Duration/validation/validateBoundWitnessWithDuration.ts
504
- var validateBoundWitnessWithDuration = async (recordBw, recordPayload) => {
505
- if (!await validateBoundWitness(recordBw, [recordPayload.schema])) return false;
506
- if (!validateDuration(recordPayload)) return false;
507
- if (!await validateBoundWitnessAndDuration(recordBw, recordPayload)) return false;
508
- return true;
509
- };
510
-
511
- // src/Hash/Payload.ts
512
- import { isPayloadOfSchemaType as isPayloadOfSchemaType9 } from "@xyo-network/payload-model";
513
- var HashRecordSchema = "network.xyo.ns.record.hash";
514
- var isHashRecord = isPayloadOfSchemaType9(HashRecordSchema);
515
- var isHashRecordWithMeta = isPayloadOfSchemaType9(HashRecordSchema);
516
- export {
517
- AddressRecordSchema,
518
- DNSQueryOpcodes,
519
- DNSRcodes,
520
- DNSResourceRecordTypes,
521
- DNSSchema,
522
- DNSWitnessConfigSchema,
523
- DomainLeaseEstimateDivinerErrorDetailsDictionary,
524
- DomainLeaseEstimateDivinerValidationErrorDetailsSchema,
525
- DomainLeaseSchema,
526
- DomainRegistrationLeaseSchema,
527
- DomainRegistrationSchema,
528
- DomainSchema,
529
- HashRecordSchema,
530
- StandardRequestHeader,
531
- findDNSResourceRecordTypesByValue,
532
- getDnsRequestFor,
533
- getRandomId,
534
- getRequestFor,
535
- isAddressRecord,
536
- isAddressRecordWithMeta,
537
- isDNSRequest,
538
- isDNSRequestWithMeta,
539
- isDNSRequestWithSources,
540
- isDNSResponse,
541
- isDNSResponseWithMeta,
542
- isDNSResponseWithSources,
543
- isDomain,
544
- isDomainLease,
545
- isDomainLeaseEstimateDivinerValidationErrorDetails,
546
- isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta,
547
- isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources,
548
- isDomainLeaseWithMeta,
549
- isDomainLeaseWithSources,
550
- isDomainRegistration,
551
- isDomainRegistrationLease,
552
- isDomainRegistrationLeaseMeta,
553
- isDomainRegistrationLeaseSources,
554
- isDomainRegistrationLeaseWithMeta,
555
- isDomainRegistrationLeaseWithSources,
556
- isDomainRegistrationWithMeta,
557
- isDomainRegistrationWithSources,
558
- isDomainWithMeta,
559
- isDomainWithSources,
560
- isHashRecord,
561
- isHashRecordWithMeta,
562
- isWithinDelegatedTimeframe,
563
- parseEstimatesFromArray,
564
- validateBoundWitnessWithDuration,
565
- validateDuration
566
- };
567
- //# sourceMappingURL=index.mjs.map