@xyo-network/xns-record-payload-plugins 4.1.1 → 5.0.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 (47) hide show
  1. package/dist/browser/DNS/Witness/Payload/Request.d.ts +2 -2
  2. package/dist/browser/DNS/Witness/Payload/Request.d.ts.map +1 -1
  3. package/dist/browser/DNS/Witness/Payload/Response.d.ts +2 -2
  4. package/dist/browser/DNS/Witness/Payload/Response.d.ts.map +1 -1
  5. package/dist/browser/Domain/Domain.d.ts +2 -2
  6. package/dist/browser/Domain/Domain.d.ts.map +1 -1
  7. package/dist/browser/Domain/DomainLease.d.ts +2 -2
  8. package/dist/browser/Domain/DomainLease.d.ts.map +1 -1
  9. package/dist/browser/DomainRegistration/DomainRegistration.d.ts +2 -2
  10. package/dist/browser/DomainRegistration/DomainRegistration.d.ts.map +1 -1
  11. package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts +2 -2
  12. package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
  13. package/dist/browser/index.d.ts +9 -414
  14. package/dist/neutral/DNS/Witness/Payload/Request.d.ts +2 -2
  15. package/dist/neutral/DNS/Witness/Payload/Request.d.ts.map +1 -1
  16. package/dist/neutral/DNS/Witness/Payload/Response.d.ts +2 -2
  17. package/dist/neutral/DNS/Witness/Payload/Response.d.ts.map +1 -1
  18. package/dist/neutral/Domain/Domain.d.ts +2 -2
  19. package/dist/neutral/Domain/Domain.d.ts.map +1 -1
  20. package/dist/neutral/Domain/DomainLease.d.ts +2 -2
  21. package/dist/neutral/Domain/DomainLease.d.ts.map +1 -1
  22. package/dist/neutral/DomainRegistration/DomainRegistration.d.ts +2 -2
  23. package/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +1 -1
  24. package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +2 -2
  25. package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
  26. package/dist/neutral/index.d.ts +9 -414
  27. package/dist/node/DNS/Witness/Payload/Request.d.ts +2 -2
  28. package/dist/node/DNS/Witness/Payload/Request.d.ts.map +1 -1
  29. package/dist/node/DNS/Witness/Payload/Response.d.ts +2 -2
  30. package/dist/node/DNS/Witness/Payload/Response.d.ts.map +1 -1
  31. package/dist/node/Domain/Domain.d.ts +2 -2
  32. package/dist/node/Domain/Domain.d.ts.map +1 -1
  33. package/dist/node/Domain/DomainLease.d.ts +2 -2
  34. package/dist/node/Domain/DomainLease.d.ts.map +1 -1
  35. package/dist/node/DomainRegistration/DomainRegistration.d.ts +2 -2
  36. package/dist/node/DomainRegistration/DomainRegistration.d.ts.map +1 -1
  37. package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts +2 -2
  38. package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
  39. package/dist/node/index.d.ts +9 -414
  40. package/package.json +23 -20
  41. package/src/Duration/validation/spec/validateBoundWitness.spec.ts +46 -0
  42. package/src/Duration/validation/spec/validateBoundWitnessWithRecord.spec.ts +49 -0
  43. package/src/Duration/validation/spec/validateNameserverRecord.spec.ts +61 -0
  44. package/src/Duration/validation/spec/validateRecord.spec.ts +37 -0
  45. package/src/diviner/lib/spec/__snapshots__/parseEstimatesFromArray.spec.ts.snap +481 -0
  46. package/src/diviner/lib/spec/parseEstimatesFromArray.spec.ts +116 -0
  47. package/typedoc.json +0 -5
@@ -10,13 +10,13 @@ export type DNSRequest = Payload<DNSRequestFields, DNSSchema>;
10
10
  */
11
11
  export declare const isDNSRequest: (x?: unknown | null) => x is DNSRequest;
12
12
  export declare const asDNSRequest: import("@xylabs/object").AsTypeFunction<DNSRequest>;
13
- export declare const asOptionalDNSRequest: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DNSRequest | undefined;
13
+ export declare const asOptionalDNSRequest: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DNSRequest | undefined;
14
14
  /**
15
15
  * Identity function for determining if an object is a DNSRequest payload with sources
16
16
  */
17
17
  export declare const isDNSRequestWithSources: (x?: unknown | null) => x is WithSources<WithSources<DNSRequest>>;
18
18
  export declare const asDNSRequestWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DNSRequest>>;
19
- export declare const asOptionalDNSRequestWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DNSRequest> | undefined;
19
+ export declare const asOptionalDNSRequestWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DNSRequest> | undefined;
20
20
  /**
21
21
  * Helper for generating a DNSRequest payload for a given domain and record type
22
22
  * @param domain The domain to query
@@ -1 +1 @@
1
- {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,YAAY,yCAA+C,CAAA;AACxE,eAAO,MAAM,YAAY,qDAAmD,CAAA;AAC5E,eAAO,MAAM,oBAAoB,kHAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,uBAAuB,mEAAuE,CAAA;AAC3G,eAAO,MAAM,uBAAuB,kEAA2E,CAAA;AAC/G,eAAO,MAAM,+BAA+B,+HAAmF,CAAA;AAE/H;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,OAAM,0BAAqD,KAAG,UAE9G,CAAA"}
1
+ {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,YAAY,yCAA+C,CAAA;AACxE,eAAO,MAAM,YAAY,qDAAmD,CAAA;AAC5E,eAAO,MAAM,oBAAoB,gHAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,uBAAuB,mEAAuE,CAAA;AAC3G,eAAO,MAAM,uBAAuB,kEAA2E,CAAA;AAC/G,eAAO,MAAM,+BAA+B,6HAAmF,CAAA;AAE/H;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,OAAM,0BAAqD,KAAG,UAE9G,CAAA"}
@@ -10,11 +10,11 @@ export type DNSResponse = PayloadWithSources<DNSResponseFields, DNSSchema>;
10
10
  */
11
11
  export declare const isDNSResponse: (x?: unknown | null) => x is DNSResponse;
12
12
  export declare const asDNSResponse: import("@xylabs/object").AsTypeFunction<DNSResponse>;
13
- export declare const asOptionalDNSResponse: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DNSResponse | undefined;
13
+ export declare const asOptionalDNSResponse: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DNSResponse | undefined;
14
14
  /**
15
15
  * Identity function for determining if an object is a DNSResponse payload with sources
16
16
  */
17
17
  export declare const isDNSResponseWithSources: (x?: unknown | null) => x is WithSources<DNSResponse>;
18
18
  export declare const asDNSResponseWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DNSResponse>>;
19
- export declare const asOptionalDNSResponseWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DNSResponse> | undefined;
19
+ export declare const asOptionalDNSResponseWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DNSResponse> | undefined;
20
20
  //# sourceMappingURL=Response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,mHAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAA2D,CAAA;AAChG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,gIAAqF,CAAA"}
1
+ {"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,iHAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAA2D,CAAA;AAChG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,8HAAqF,CAAA"}
@@ -27,11 +27,11 @@ export type Domain = Payload<DomainFields, DomainSchema>;
27
27
  */
28
28
  export declare const isDomain: (x?: unknown | null) => x is Domain;
29
29
  export declare const asDomain: import("@xylabs/object").AsTypeFunction<Domain>;
30
- export declare const asOptionalDomain: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => Domain | undefined;
30
+ export declare const asOptionalDomain: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => Domain | undefined;
31
31
  /**
32
32
  * Identity function for Domain payload with sources
33
33
  */
34
34
  export declare const isDomainWithSources: (x?: unknown | null) => x is WithSources<WithSources<Domain>>;
35
35
  export declare const asDomainWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Domain>>;
36
- export declare const asOptionalDomainWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<Domain> | undefined;
36
+ export declare const asOptionalDomainWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<Domain> | undefined;
37
37
  //# sourceMappingURL=Domain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,MAAM,MAAM,YAAY,GAAG,uBAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,E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E,CAAA;AACtG,eAAO,MAAM,mBAAmB,8DAAmE,CAAA;AACnG,eAAO,MAAM,2BAA2B,yHAA2E,CAAA"}
@@ -17,11 +17,11 @@ export type DomainLease = Payload<DomainLeaseFields, DomainLeaseSchema>;
17
17
  */
18
18
  export declare const isDomainLease: (x?: unknown | null) => x is DomainLease;
19
19
  export declare const asDomainLease: import("@xylabs/object").AsTypeFunction<DomainLease>;
20
- export declare const asOptionalDomainLease: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DomainLease | undefined;
20
+ export declare const asOptionalDomainLease: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DomainLease | undefined;
21
21
  /**
22
22
  * Identity function for DomainLease payload with sources
23
23
  */
24
24
  export declare const isDomainLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainLease>>;
25
25
  export declare const asDomainLeaseWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DomainLease>>;
26
- export declare const asOptionalDomainLeaseWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DomainLease> | undefined;
26
+ export declare const asOptionalDomainLeaseWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DomainLease> | undefined;
27
27
  //# sourceMappingURL=DomainLease.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,MAAM,iBAAiB,GAAG,6BAA6B,CAAA;AAC7D,eAAO,MAAM,iBAAiB,EAAE,iBAAiD,C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22,11 +22,11 @@ export type DomainRegistration = Payload<DomainRegistrationFields, DomainRegistr
22
22
  */
23
23
  export declare const isDomainRegistration: (x?: unknown | null) => x is DomainRegistration;
24
24
  export declare const asDomainRegistration: import("@xylabs/object").AsTypeFunction<DomainRegistration>;
25
- export declare const asOptionalDomainRegistration: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DomainRegistration | undefined;
25
+ export declare const asOptionalDomainRegistration: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DomainRegistration | undefined;
26
26
  /**
27
27
  * Identity function for DomainRegistration payload with sources
28
28
  */
29
29
  export declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistration>>;
30
30
  export declare const asDomainRegistrationWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DomainRegistration>>;
31
- export declare const asOptionalDomainRegistrationWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DomainRegistration> | undefined;
31
+ export declare const asOptionalDomainRegistrationWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DomainRegistration> | undefined;
32
32
  //# sourceMappingURL=DomainRegistration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DomainRegistration.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD,eAAO,MAAM,wBAAwB,sCAA0C,CAAA;AAC/E,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5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AM,+BAA+B,2EAA8F,CAAA;AAC1I,eAAO,MAAM,+BAA+B,0EAA2F,CAAA;AACvI,eAAO,MAAM,uCAAuC,qIAAmG,CAAA"}
@@ -14,13 +14,13 @@ export type DomainRegistrationLease = Payload<DomainRegistrationLeaseFields, Dom
14
14
  */
15
15
  export declare const isDomainRegistrationLease: (x?: unknown | null) => x is DomainRegistrationLease;
16
16
  export declare const asDomainRegistrationLease: import("@xylabs/object").AsTypeFunction<DomainRegistrationLease>;
17
- export declare const asOptionalDomainRegistrationLease: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DomainRegistrationLease | undefined;
17
+ export declare const asOptionalDomainRegistrationLease: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DomainRegistrationLease | undefined;
18
18
  /**
19
19
  * Identity function for DomainRegistrationLease payload with sources
20
20
  */
21
21
  export declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistrationLease>>;
22
22
  export declare const asDomainRegistrationLeaseWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DomainRegistrationLease>>;
23
- export declare const asOptionalDomainRegistrationLeaseWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DomainRegistrationLease> | undefined;
23
+ export declare const asOptionalDomainRegistrationLeaseWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DomainRegistrationLease> | undefined;
24
24
  /**
25
25
  * @deprecated Use isDomainRegistrationLeaseWithSources instead
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM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,CAAA;AACtH,eAAO,MAAM,yBAAyB,kEAA6E,CAAA;AACnH,eAAO,MAAM,iCAAiC,6HAAqF,CAAA;AAEnI;;GAEG;AACH,eAAO,MAAM,oCAAoC,gFAAwG,CAAA;AACzJ,eAAO,MAAM,oCAAoC,+EAAqG,CAAA;AACtJ,eAAO,MAAM,4CAA4C,0IACoC,CAAA;AAE7F;;GAEG;AACH,eAAO,MAAM,gCAAgC,gFAAuC,CAAA"}
@@ -1,414 +1,9 @@
1
- import { Address, Hash } from '@xylabs/hex';
2
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
3
- import { Payload, WithSources, PayloadWithSources } from '@xyo-network/payload-model';
4
- import * as _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package from '.store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package';
5
- import * as _xylabs_object from '@xylabs/object';
6
- import { BoundWitness } from '@xyo-network/boundwitness-model';
7
- import { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
8
- import { ModuleIdentifier, AnyConfigSchema } from '@xyo-network/module-model';
9
- import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
10
-
11
- type DomainSchema = 'network.xyo.ns.domain';
12
- declare const DomainSchema: DomainSchema;
13
- /**
14
- * The supported TLDs for XNS
15
- */
16
- type TopLevelDomain = 'xyo';
17
- /**
18
- * The fields for a domain record
19
- */
20
- interface DomainFields {
21
- /**
22
- * The XNS domain of the record
23
- */
24
- domain: string;
25
- /**
26
- * The Top-Level Domain of the domain
27
- */
28
- tld: TopLevelDomain;
29
- }
30
- /**
31
- * A domain record is a record of a domain
32
- */
33
- type Domain = Payload<DomainFields, DomainSchema>;
34
- /**
35
- * Identity function for Domain payload
36
- */
37
- declare const isDomain: (x?: unknown | null) => x is Domain;
38
- declare const asDomain: _xylabs_object.AsTypeFunction<Domain>;
39
- declare const asOptionalDomain: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => Domain | undefined;
40
- /**
41
- * Identity function for Domain payload with sources
42
- */
43
- declare const isDomainWithSources: (x?: unknown | null) => x is WithSources<WithSources<Domain>>;
44
- declare const asDomainWithSources: _xylabs_object.AsTypeFunction<WithSources<Domain>>;
45
- declare const asOptionalDomainWithSources: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => WithSources<Domain> | undefined;
46
-
47
- interface DurationFields {
48
- /**
49
- * A timestamp that indicates the expiration time of the record
50
- */
51
- exp: number;
52
- /**
53
- * A timestamp that indicates the time before which the record is not valid
54
- */
55
- nbf: number;
56
- }
57
-
58
- declare const validateBoundWitnessWithDuration: (recordBw: BoundWitness, recordPayload: Payload<DurationFields>) => Promise<boolean>;
59
-
60
- declare const validateDuration: (recordPayload: Payload<DurationFields>) => boolean;
61
- declare const isWithinDelegatedTimeframe: (recordPayload: Payload<DurationFields>, now?: number) => boolean;
62
-
63
- type DomainLeaseSchema = 'network.xyo.ns.domain.lease';
64
- declare const DomainLeaseSchema: DomainLeaseSchema;
65
- /**
66
- * A domain is leased for a duration
67
- */
68
- interface DomainLeaseFields extends DomainFields, DurationFields {
69
- }
70
- /**
71
- * A domain lease is a record of a domain and the duration it is leased for
72
- */
73
- type DomainLease = Payload<DomainLeaseFields, DomainLeaseSchema>;
74
- /**
75
- * Identity function for DomainLease payload
76
- */
77
- declare const isDomainLease: (x?: unknown | null) => x is DomainLease;
78
- declare const asDomainLease: _xylabs_object.AsTypeFunction<DomainLease>;
79
- declare const asOptionalDomainLease: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => DomainLease | undefined;
80
- /**
81
- * Identity function for DomainLease payload with sources
82
- */
83
- declare const isDomainLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainLease>>;
84
- declare const asDomainLeaseWithSources: _xylabs_object.AsTypeFunction<WithSources<DomainLease>>;
85
- declare const asOptionalDomainLeaseWithSources: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => WithSources<DomainLease> | undefined;
86
-
87
- type AddressRecordSchema = 'network.xyo.ns.record.address';
88
- declare const AddressRecordSchema: AddressRecordSchema;
89
- interface AddressRecordFields extends DomainFields {
90
- /**
91
- * The address the record points to
92
- */
93
- address: Address[];
94
- }
95
- /**
96
- * An address record points a domain to an address
97
- */
98
- type AddressRecord = Payload<AddressRecordFields, AddressRecordSchema>;
99
- declare const isAddressRecord: (x?: unknown | null) => x is AddressRecord;
100
-
101
- declare const DomainLeaseEstimateDivinerValidationErrorDetailsSchema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
102
- type DomainLeaseEstimateDivinerValidationErrorDetailsSchema = typeof DomainLeaseEstimateDivinerValidationErrorDetailsSchema;
103
-
104
- interface ErrorDetails<TErrorCode extends string | undefined = string | undefined> {
105
- [key: string]: any;
106
- /**
107
- * A string code indicating the error type.
108
- */
109
- code: TErrorCode;
110
- /**
111
- * A human-readable explanation specific to this occurrence of the problem
112
- */
113
- detail?: string;
114
- /**
115
- * A short, human-readable summary of the problem type.
116
- */
117
- title?: string;
118
- }
119
- type ErrorDetailsDictionary<T extends number = number> = {
120
- readonly [K in T]: ErrorDetails<`${K}`>;
121
- };
122
- /**
123
- * A payment authorization token payload
124
- */
125
- type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends string | undefined = string> = Payload<ErrorDetails<TErrorCode>, DomainLeaseEstimateDivinerValidationErrorDetailsSchema>;
126
- /**
127
- * Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload
128
- */
129
- declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is DomainLeaseEstimateDivinerValidationErrorDetails<string>;
130
- /**
131
- * Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload with sources
132
- */
133
- declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<DomainLeaseEstimateDivinerValidationErrorDetails<string>>;
134
-
135
- type DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
136
- declare const DomainLeaseEstimateDivinerErrorDetailsDictionary: Readonly<Readonly<Record<DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode, DomainLeaseEstimateDivinerValidationErrorDetails>> & ErrorDetailsDictionary>;
137
-
138
- declare const DomainRegistrationSchema: "network.xyo.ns.domain.registration";
139
- type DomainRegistrationSchema = typeof DomainRegistrationSchema;
140
- interface DomainRegistrationFields extends DomainFields {
141
- /**
142
- * The registrant of the domain
143
- */
144
- registrant: Address[];
145
- /**
146
- * The registrar of the domain
147
- */
148
- registrar: Address[];
149
- }
150
- /**
151
- * Delegation of a domain to a registrar by a registrant
152
- */
153
- type DomainRegistration = Payload<DomainRegistrationFields, DomainRegistrationSchema>;
154
- /**
155
- * Identity function for DomainRegistration payload
156
- */
157
- declare const isDomainRegistration: (x?: unknown | null) => x is DomainRegistration;
158
- declare const asDomainRegistration: _xylabs_object.AsTypeFunction<DomainRegistration>;
159
- declare const asOptionalDomainRegistration: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => DomainRegistration | undefined;
160
- /**
161
- * Identity function for DomainRegistration payload with sources
162
- */
163
- declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistration>>;
164
- declare const asDomainRegistrationWithSources: _xylabs_object.AsTypeFunction<WithSources<DomainRegistration>>;
165
- declare const asOptionalDomainRegistrationWithSources: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => WithSources<DomainRegistration> | undefined;
166
-
167
- declare const DomainRegistrationLeaseSchema: "network.xyo.ns.domain.registration.lease";
168
- type DomainRegistrationLeaseSchema = typeof DomainRegistrationLeaseSchema;
169
- interface DomainRegistrationLeaseFields extends DomainRegistrationFields, DurationFields {
170
- }
171
- /**
172
- * Temporal delegation of a domain to a registrar by a registrant
173
- */
174
- type DomainRegistrationLease = Payload<DomainRegistrationLeaseFields, DomainRegistrationLeaseSchema>;
175
- /**
176
- * Identity function for DomainRegistrationLease payload
177
- */
178
- declare const isDomainRegistrationLease: (x?: unknown | null) => x is DomainRegistrationLease;
179
- declare const asDomainRegistrationLease: _xylabs_object.AsTypeFunction<DomainRegistrationLease>;
180
- declare const asOptionalDomainRegistrationLease: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => DomainRegistrationLease | undefined;
181
- /**
182
- * Identity function for DomainRegistrationLease payload with sources
183
- */
184
- declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistrationLease>>;
185
- declare const asDomainRegistrationLeaseWithSources: _xylabs_object.AsTypeFunction<WithSources<DomainRegistrationLease>>;
186
- declare const asOptionalDomainRegistrationLeaseWithSources: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => WithSources<DomainRegistrationLease> | undefined;
187
- /**
188
- * @deprecated Use isDomainRegistrationLeaseWithSources instead
189
- */
190
- declare const isDomainRegistrationLeaseSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistrationLease>>;
191
-
192
- type Estimate = [
193
- BoundWitness,
194
- WithSources<HashLeaseEstimate>,
195
- WithSources<DomainRegistrationLease>
196
- ];
197
- /**
198
- * Parses a generic array of payloads into estimates
199
- * @param payloads An array of payloads
200
- * @returns Parsed estimates
201
- */
202
- declare const parseEstimatesFromArray: (payloads?: Payload[]) => Promise<Estimate[]>;
203
-
204
- type DNSResourceRecordType = 'A' | 'NS' | 'MD' | 'MF' | 'CNAME' | 'SOA' | 'MB' | 'MG' | 'MR' | 'NULL' | 'WKS' | 'PTR' | 'HINFO' | 'MINFO' | 'MX' | 'TXT' | 'RP' | 'AFSDB' | 'X25' | 'ISDN' | 'RT' | 'NSAP' | 'NSAP-PTR' | 'SIG' | 'KEY' | 'PX' | 'GPOS' | 'AAAA' | 'LOC' | 'NXT' | 'EID' | 'NIMLOC' | 'SRV' | 'ATMA' | 'NAPTR' | 'KX' | 'CERT' | 'A6' | 'DNAME' | 'SINK' | 'OPT' | 'APL' | 'DS' | 'SSHFP' | 'IPSECKEY' | 'RRSIG' | 'NSEC' | 'DNSKEY' | 'DHCID' | 'NSEC3' | 'NSEC3PARAM' | 'TLSA' | 'SMIMEA' | 'HIP' | 'NINFO' | 'RKEY' | 'TALINK' | 'CDS' | 'CDNSKEY' | 'OPENPGPKEY' | 'CSYNC' | 'ZONEMD' | 'SVCB' | 'HTTPS' | 'SPF' | 'UINFO' | 'UID' | 'GID' | 'UNSPEC' | 'NID' | 'L32' | 'L64' | 'LP' | 'EUI48' | 'EUI64' | 'NXNAME' | 'TKEY' | 'TSIG' | 'IXFR' | 'AXFR' | 'MAILB' | 'MAILA' | '*' | 'URI' | 'CAA' | 'AVC' | 'DOA' | 'AMTRELAY' | 'RESINFO' | 'WALLET' | 'CLA' | 'IPN' | 'TA' | 'DLV' | 'XYOA' | 'XYOH';
205
- declare const DNSResourceRecordTypes: Readonly<Record<DNSResourceRecordType, number>>;
206
- type DNSResourceRecordTypeValue = (typeof DNSResourceRecordTypes)[keyof typeof DNSResourceRecordTypes];
207
- declare const findDNSResourceRecordTypesByValue: (value: DNSResourceRecordTypeValue) => DNSResourceRecordType | undefined;
208
-
209
- interface DNSRecord {
210
- name: string;
211
- type: DNSResourceRecordTypeValue;
212
- TTL: number;
213
- data: string;
214
- }
215
-
216
- interface DNSAnswer extends DNSRecord {
217
- class?: number;
218
- }
219
-
220
- type DNSQueryOpcode = 0 | 1 | 2 | 4 | 5 | 6;
221
- type DNSQueryOpcodeName = 'QUERY' | 'IQUERY' | 'STATUS' | 'NOTIFY' | 'UPDATE' | 'DSO';
222
- declare const DNSQueryOpcodes: Record<DNSQueryOpcodeName, DNSQueryOpcode>;
223
-
224
- type DNSRcode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18;
225
- type DNSRcodeName = 'NOERROR' | 'FORMERR' | 'SERVFAIL' | 'NXDOMAIN' | 'NOTIMP' | 'REFUSED' | 'YXDOMAIN' | 'YXRRSET' | 'NXRRSET' | 'NOTAUTH' | 'NOTZONE' | 'BADSIG' | 'BADKEY' | 'BADTIME';
226
- declare const DNSRcodes: Readonly<Record<DNSRcodeName, DNSRcode>>;
227
-
228
- type NumericBoolean = 0 | 1 | true | false;
229
- type NumericBooleanFalsy = 0 | false;
230
- type NumericBooleanTruthy = 1 | true;
231
- interface DNSHeader {
232
- /**
233
- * Transaction ID, typically a random number. Integer whose value is 0 to 65535
234
- */
235
- ID?: number;
236
- /**
237
- * Query/Response Flag (0 = Query, 1 = Response)
238
- */
239
- QR?: NumericBoolean;
240
- /**
241
- * Operation Code (0 for standard query)
242
- */
243
- Opcode?: DNSQueryOpcode;
244
- /**
245
- * Authoritative Answer (set in response)
246
- */
247
- AA?: NumericBoolean;
248
- /**
249
- * Truncated Flag
250
- */
251
- TC?: NumericBoolean;
252
- /**
253
- * Recursion Desired
254
- */
255
- RD?: NumericBoolean;
256
- /**
257
- * Response Code (0 for no error, non-0 for errors)
258
- */
259
- RCODE?: DNSRcode;
260
- /**
261
- * Number of questions in the query (usually 1)
262
- */
263
- QDCOUNT?: number;
264
- /**
265
- * Number of answer records in the response
266
- */
267
- ANCOUNT?: number;
268
- /**
269
- * Number of authority records in the response
270
- */
271
- NSCOUNT?: number;
272
- /**
273
- * Number of additional records in the response
274
- */
275
- ARCOUNT?: number;
276
- }
277
- interface DNSRequestHeader extends DNSHeader {
278
- QR: NumericBooleanFalsy;
279
- Opcode: DNSQueryOpcode;
280
- AA: NumericBooleanFalsy;
281
- TC: NumericBooleanFalsy;
282
- RCODE: typeof DNSRcodes.NOERROR;
283
- ANCOUNT: 0;
284
- NSCOUNT: 0;
285
- ARCOUNT: 0;
286
- }
287
- declare const StandardRequestHeader: Readonly<DNSRequestHeader>;
288
- interface DNSResponseHeader extends DNSHeader {
289
- QR: NumericBooleanTruthy;
290
- Opcode: DNSQueryOpcode;
291
- AA: NumericBoolean;
292
- TC: NumericBoolean;
293
- RA: NumericBoolean;
294
- }
295
-
296
- interface DNSQuestion {
297
- name: string;
298
- type: DNSResourceRecordTypeValue;
299
- class?: number;
300
- }
301
- interface DNSRequestFields extends DNSRequestHeader {
302
- Question: DNSQuestion[];
303
- }
304
- /**
305
- * Helper for generating a DNS request for a given domain and record type
306
- * @param domain The domain to query
307
- * @param type The record type to query
308
- * @returns A DNS request
309
- */
310
- declare const getRequestFor: (domain: string, type?: DNSResourceRecordTypeValue) => DNSRequestFields;
311
- /**
312
- * Used to generate a random ID for a DNS request
313
- * @returns A random number between 0 and 65,535
314
- */
315
- declare const getRandomId: () => number;
316
-
317
- interface DNSResponseFields extends DNSResponseHeader {
318
- Question: DNSQuestion[];
319
- Answer: DNSAnswer[];
320
- Authority?: DNSRecord[];
321
- Additional?: DNSRecord[];
322
- }
323
-
324
- type DNSSchema = 'network.xyo.dns';
325
- declare const DNSSchema: DNSSchema;
326
-
327
- type DNSWitnessConfigSchema = `${DNSSchema}.witness.config`;
328
- declare const DNSWitnessConfigSchema: DNSWitnessConfigSchema;
329
- type DNSWitnessConfig = WitnessConfig<{
330
- /**
331
- * The address record index diviner to be used to determine the address record index
332
- */
333
- addressRecordIndexDiviner?: ModuleIdentifier;
334
- /**
335
- * The hash record index diviner to be used to determine the hash record index
336
- */
337
- hashRecordIndexDiviner?: ModuleIdentifier;
338
- /**
339
- * The config schema for the DNS witness
340
- */
341
- schema: DNSWitnessConfigSchema;
342
- /**
343
- * If supplied, the DNS witness will only support the specified resource record types
344
- */
345
- supportedResources?: DNSResourceRecordType[];
346
- }>;
347
-
348
- type DNSWitnessParams = WitnessParams<AnyConfigSchema<DNSWitnessConfig>>;
349
-
350
- /**
351
- * The fields of a DNSRequest payload
352
- */
353
- type DNSRequest = Payload<DNSRequestFields, DNSSchema>;
354
- /**
355
- * Identity function for determining if an object is a DNSRequest payload
356
- */
357
- declare const isDNSRequest: (x?: unknown | null) => x is DNSRequest;
358
- declare const asDNSRequest: _xylabs_object.AsTypeFunction<DNSRequest>;
359
- declare const asOptionalDNSRequest: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => DNSRequest | undefined;
360
- /**
361
- * Identity function for determining if an object is a DNSRequest payload with sources
362
- */
363
- declare const isDNSRequestWithSources: (x?: unknown | null) => x is WithSources<WithSources<DNSRequest>>;
364
- declare const asDNSRequestWithSources: _xylabs_object.AsTypeFunction<WithSources<DNSRequest>>;
365
- declare const asOptionalDNSRequestWithSources: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => WithSources<DNSRequest> | undefined;
366
- /**
367
- * Helper for generating a DNSRequest payload for a given domain and record type
368
- * @param domain The domain to query
369
- * @param type The record type to query
370
- * @returns A DNSRequest payload
371
- */
372
- declare const getDnsRequestFor: (domain: string, type?: DNSResourceRecordTypeValue) => DNSRequest;
373
-
374
- /**
375
- * The fields of a DNSResponse payload
376
- */
377
- type DNSResponse = PayloadWithSources<DNSResponseFields, DNSSchema>;
378
- /**
379
- * Identity function for determining if an object is a DNSResponse payload
380
- */
381
- declare const isDNSResponse: (x?: unknown | null) => x is DNSResponse;
382
- declare const asDNSResponse: _xylabs_object.AsTypeFunction<DNSResponse>;
383
- declare const asOptionalDNSResponse: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => DNSResponse | undefined;
384
- /**
385
- * Identity function for determining if an object is a DNSResponse payload with sources
386
- */
387
- declare const isDNSResponseWithSources: (x?: unknown | null) => x is WithSources<DNSResponse>;
388
- declare const asDNSResponseWithSources: _xylabs_object.AsTypeFunction<WithSources<DNSResponse>>;
389
- declare const asOptionalDNSResponseWithSources: (value: _store__xylabs_promise_npm_4_13_23_cc6fbb2faf_package.AnyNonPromise) => WithSources<DNSResponse> | undefined;
390
-
391
- type DNS = DNSRequest | DNSResponse;
392
-
393
- type DomainEstimate = [
394
- BoundWitness,
395
- WithSources<HashLeaseEstimate>,
396
- WithSources<DomainRegistrationLease>
397
- ];
398
-
399
- type HashRecordSchema = 'network.xyo.ns.record.hash';
400
- declare const HashRecordSchema: HashRecordSchema;
401
- interface HashRecordFields extends DomainFields {
402
- /**
403
- * The hash the record points to
404
- */
405
- hash: Hash[];
406
- }
407
- /**
408
- * An hash record points a domain to an hash
409
- */
410
- type HashRecord = Payload<HashRecordFields, HashRecordSchema>;
411
- declare const isHashRecord: (x?: unknown | null) => x is HashRecord;
412
-
413
- export { AddressRecordSchema, DNSQueryOpcodes, DNSRcodes, DNSResourceRecordTypes, DNSSchema, DNSWitnessConfigSchema, DomainLeaseEstimateDivinerErrorDetailsDictionary, DomainLeaseEstimateDivinerValidationErrorDetailsSchema, DomainLeaseSchema, DomainRegistrationLeaseSchema, DomainRegistrationSchema, DomainSchema, HashRecordSchema, StandardRequestHeader, asDNSRequest, asDNSRequestWithSources, asDNSResponse, asDNSResponseWithSources, asDomain, asDomainLease, asDomainLeaseWithSources, asDomainRegistration, asDomainRegistrationLease, asDomainRegistrationLeaseWithSources, asDomainRegistrationWithSources, asDomainWithSources, asOptionalDNSRequest, asOptionalDNSRequestWithSources, asOptionalDNSResponse, asOptionalDNSResponseWithSources, asOptionalDomain, asOptionalDomainLease, asOptionalDomainLeaseWithSources, asOptionalDomainRegistration, asOptionalDomainRegistrationLease, asOptionalDomainRegistrationLeaseWithSources, asOptionalDomainRegistrationWithSources, asOptionalDomainWithSources, findDNSResourceRecordTypesByValue, getDnsRequestFor, getRandomId, getRequestFor, isAddressRecord, isDNSRequest, isDNSRequestWithSources, isDNSResponse, isDNSResponseWithSources, isDomain, isDomainLease, isDomainLeaseEstimateDivinerValidationErrorDetails, isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources, isDomainLeaseWithSources, isDomainRegistration, isDomainRegistrationLease, isDomainRegistrationLeaseSources, isDomainRegistrationLeaseWithSources, isDomainRegistrationWithSources, isDomainWithSources, isHashRecord, isWithinDelegatedTimeframe, parseEstimatesFromArray, validateBoundWitnessWithDuration, validateDuration };
414
- export type { AddressRecord, AddressRecordFields, DNS, DNSAnswer, DNSHeader, DNSQueryOpcode, DNSQueryOpcodeName, DNSQuestion, DNSRcode, DNSRcodeName, DNSRecord, DNSRequest, DNSRequestFields, DNSRequestHeader, DNSResourceRecordType, DNSResourceRecordTypeValue, DNSResponse, DNSResponseFields, DNSResponseHeader, DNSWitnessConfig, DNSWitnessParams, Domain, DomainEstimate, DomainFields, DomainLease, DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode, DomainLeaseEstimateDivinerValidationErrorDetails, DomainLeaseFields, DomainRegistration, DomainRegistrationFields, DomainRegistrationLease, DomainRegistrationLeaseFields, DurationFields, ErrorDetails, ErrorDetailsDictionary, Estimate, HashRecord, HashRecordFields, NumericBoolean, NumericBooleanFalsy, NumericBooleanTruthy, TopLevelDomain };
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
@@ -10,13 +10,13 @@ export type DNSRequest = Payload<DNSRequestFields, DNSSchema>;
10
10
  */
11
11
  export declare const isDNSRequest: (x?: unknown | null) => x is DNSRequest;
12
12
  export declare const asDNSRequest: import("@xylabs/object").AsTypeFunction<DNSRequest>;
13
- export declare const asOptionalDNSRequest: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DNSRequest | undefined;
13
+ export declare const asOptionalDNSRequest: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DNSRequest | undefined;
14
14
  /**
15
15
  * Identity function for determining if an object is a DNSRequest payload with sources
16
16
  */
17
17
  export declare const isDNSRequestWithSources: (x?: unknown | null) => x is WithSources<WithSources<DNSRequest>>;
18
18
  export declare const asDNSRequestWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DNSRequest>>;
19
- export declare const asOptionalDNSRequestWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DNSRequest> | undefined;
19
+ export declare const asOptionalDNSRequestWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DNSRequest> | undefined;
20
20
  /**
21
21
  * Helper for generating a DNSRequest payload for a given domain and record type
22
22
  * @param domain The domain to query
@@ -1 +1 @@
1
- {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,YAAY,yCAA+C,CAAA;AACxE,eAAO,MAAM,YAAY,qDAAmD,CAAA;AAC5E,eAAO,MAAM,oBAAoB,kHAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,uBAAuB,mEAAuE,CAAA;AAC3G,eAAO,MAAM,uBAAuB,kEAA2E,CAAA;AAC/G,eAAO,MAAM,+BAA+B,+HAAmF,CAAA;AAE/H;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,OAAM,0BAAqD,KAAG,UAE9G,CAAA"}
1
+ {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,YAAY,yCAA+C,CAAA;AACxE,eAAO,MAAM,YAAY,qDAAmD,CAAA;AAC5E,eAAO,MAAM,oBAAoB,gHAA2D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,uBAAuB,mEAAuE,CAAA;AAC3G,eAAO,MAAM,uBAAuB,kEAA2E,CAAA;AAC/G,eAAO,MAAM,+BAA+B,6HAAmF,CAAA;AAE/H;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,OAAM,0BAAqD,KAAG,UAE9G,CAAA"}
@@ -10,11 +10,11 @@ export type DNSResponse = PayloadWithSources<DNSResponseFields, DNSSchema>;
10
10
  */
11
11
  export declare const isDNSResponse: (x?: unknown | null) => x is DNSResponse;
12
12
  export declare const asDNSResponse: import("@xylabs/object").AsTypeFunction<DNSResponse>;
13
- export declare const asOptionalDNSResponse: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => DNSResponse | undefined;
13
+ export declare const asOptionalDNSResponse: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => DNSResponse | undefined;
14
14
  /**
15
15
  * Identity function for determining if an object is a DNSResponse payload with sources
16
16
  */
17
17
  export declare const isDNSResponseWithSources: (x?: unknown | null) => x is WithSources<DNSResponse>;
18
18
  export declare const asDNSResponseWithSources: import("@xylabs/object").AsTypeFunction<WithSources<DNSResponse>>;
19
- export declare const asOptionalDNSResponseWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<DNSResponse> | undefined;
19
+ export declare const asOptionalDNSResponseWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<DNSResponse> | undefined;
20
20
  //# sourceMappingURL=Response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,mHAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAA2D,CAAA;AAChG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,gIAAqF,CAAA"}
1
+ {"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,iHAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAA2D,CAAA;AAChG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,8HAAqF,CAAA"}
@@ -27,11 +27,11 @@ export type Domain = Payload<DomainFields, DomainSchema>;
27
27
  */
28
28
  export declare const isDomain: (x?: unknown | null) => x is Domain;
29
29
  export declare const asDomain: import("@xylabs/object").AsTypeFunction<Domain>;
30
- export declare const asOptionalDomain: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => Domain | undefined;
30
+ export declare const asOptionalDomain: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => Domain | undefined;
31
31
  /**
32
32
  * Identity function for Domain payload with sources
33
33
  */
34
34
  export declare const isDomainWithSources: (x?: unknown | null) => x is WithSources<WithSources<Domain>>;
35
35
  export declare const asDomainWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Domain>>;
36
- export declare const asOptionalDomainWithSources: (value: import(".store/@xylabs-promise-npm-4.13.23-cc6fbb2faf/package").AnyNonPromise) => WithSources<Domain> | undefined;
36
+ export declare const asOptionalDomainWithSources: (value: import(".store/@xylabs-promise-npm-5.0.0-c3b37237fd/package").AnyNonPromise) => WithSources<Domain> | undefined;
37
37
  //# sourceMappingURL=Domain.d.ts.map