@xyo-network/xns-record-payload-plugins 3.1.2 → 3.2.0-rc.2
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.
- package/dist/browser/Address/Payload.d.ts +5 -5
- package/dist/browser/Address/Payload.d.ts.map +1 -1
- package/dist/browser/DNS/Witness/Payload/Request.d.ts +21 -7
- package/dist/browser/DNS/Witness/Payload/Request.d.ts.map +1 -1
- package/dist/browser/DNS/Witness/Payload/Response.d.ts +0 -4
- package/dist/browser/DNS/Witness/Payload/Response.d.ts.map +1 -1
- package/dist/browser/Domain/Domain.d.ts +8 -10
- package/dist/browser/Domain/Domain.d.ts.map +1 -1
- package/dist/browser/Domain/DomainLease.d.ts +12 -10
- package/dist/browser/Domain/DomainLease.d.ts.map +1 -1
- package/dist/browser/DomainEstimate/DomainEstimate.d.ts +4 -4
- package/dist/browser/DomainEstimate/DomainEstimate.d.ts.map +1 -1
- package/dist/browser/DomainRegistration/DomainRegistration.d.ts +12 -10
- package/dist/browser/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts +24 -18
- package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/browser/Hash/Payload.d.ts +5 -5
- package/dist/browser/Hash/Payload.d.ts.map +1 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +20 -10
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts +4 -4
- package/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts.map +1 -1
- package/dist/browser/index.mjs +10 -54
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/Address/Payload.d.ts +5 -5
- package/dist/neutral/Address/Payload.d.ts.map +1 -1
- package/dist/neutral/DNS/Witness/Payload/Request.d.ts +21 -7
- package/dist/neutral/DNS/Witness/Payload/Request.d.ts.map +1 -1
- package/dist/neutral/DNS/Witness/Payload/Response.d.ts +0 -4
- package/dist/neutral/DNS/Witness/Payload/Response.d.ts.map +1 -1
- package/dist/neutral/Domain/Domain.d.ts +8 -10
- package/dist/neutral/Domain/Domain.d.ts.map +1 -1
- package/dist/neutral/Domain/DomainLease.d.ts +12 -10
- package/dist/neutral/Domain/DomainLease.d.ts.map +1 -1
- package/dist/neutral/DomainEstimate/DomainEstimate.d.ts +4 -4
- package/dist/neutral/DomainEstimate/DomainEstimate.d.ts.map +1 -1
- package/dist/neutral/DomainRegistration/DomainRegistration.d.ts +12 -10
- package/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +24 -18
- package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/neutral/Hash/Payload.d.ts +5 -5
- package/dist/neutral/Hash/Payload.d.ts.map +1 -1
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +20 -10
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts +4 -4
- package/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts.map +1 -1
- package/dist/neutral/index.mjs +10 -54
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/Address/Payload.d.ts +5 -5
- package/dist/node/Address/Payload.d.ts.map +1 -1
- package/dist/node/DNS/Witness/Payload/Request.d.ts +21 -7
- package/dist/node/DNS/Witness/Payload/Request.d.ts.map +1 -1
- package/dist/node/DNS/Witness/Payload/Response.d.ts +0 -4
- package/dist/node/DNS/Witness/Payload/Response.d.ts.map +1 -1
- package/dist/node/Domain/Domain.d.ts +8 -10
- package/dist/node/Domain/Domain.d.ts.map +1 -1
- package/dist/node/Domain/DomainLease.d.ts +12 -10
- package/dist/node/Domain/DomainLease.d.ts.map +1 -1
- package/dist/node/DomainEstimate/DomainEstimate.d.ts +4 -4
- package/dist/node/DomainEstimate/DomainEstimate.d.ts.map +1 -1
- package/dist/node/DomainRegistration/DomainRegistration.d.ts +12 -10
- package/dist/node/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts +24 -18
- package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/node/Hash/Payload.d.ts +5 -5
- package/dist/node/Hash/Payload.d.ts.map +1 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +20 -10
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/node/diviner/lib/parseEstimatesFromArray.d.ts +4 -4
- package/dist/node/diviner/lib/parseEstimatesFromArray.d.ts.map +1 -1
- package/dist/node/index.mjs +10 -54
- package/dist/node/index.mjs.map +1 -1
- package/package.json +19 -17
- package/src/Address/Payload.ts +1 -2
- package/src/DNS/Witness/Payload/Request.ts +2 -8
- package/src/DNS/Witness/Payload/Response.ts +0 -6
- package/src/Domain/Domain.ts +1 -8
- package/src/Domain/DomainLease.ts +1 -8
- package/src/DomainEstimate/DomainEstimate.ts +4 -4
- package/src/DomainRegistration/DomainRegistration.ts +1 -8
- package/src/DomainRegistration/DomainRegistrationLease.ts +1 -12
- package/src/Duration/validation/validateBoundWitnessAndDuration.ts +5 -3
- package/src/Hash/Payload.ts +1 -2
- package/src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts +1 -9
- package/src/diviner/lib/parseEstimatesFromArray.ts +12 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
|
-
import type { Payload
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
3
|
import type { DomainFields } from '../Domain/index.ts';
|
|
4
4
|
export type AddressRecordSchema = 'network.xyo.ns.record.address';
|
|
5
5
|
export declare const AddressRecordSchema: AddressRecordSchema;
|
|
@@ -13,10 +13,10 @@ export interface AddressRecordFields extends DomainFields {
|
|
|
13
13
|
* An address record points a domain to an address
|
|
14
14
|
*/
|
|
15
15
|
export type AddressRecord = Payload<AddressRecordFields, AddressRecordSchema>;
|
|
16
|
-
export declare const isAddressRecord: (x?: unknown | null) => x is import("
|
|
17
|
-
schema: "network.xyo.ns.record.address";
|
|
18
|
-
};
|
|
19
|
-
export declare const isAddressRecordWithMeta: (x?: unknown | null) => x is WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & AddressRecordFields & {
|
|
16
|
+
export declare const isAddressRecord: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
20
17
|
schema: "network.xyo.ns.record.address";
|
|
18
|
+
address: Lowercase<string>[];
|
|
19
|
+
domain: string;
|
|
20
|
+
tld: import("../Domain/Domain.ts").TopLevelDomain;
|
|
21
21
|
}>;
|
|
22
22
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Address/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Address/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,MAAM,mBAAmB,GAAG,+BAA+B,CAAA;AACjE,eAAO,MAAM,mBAAmB,EAAE,mBAAqD,CAAA;AAEvF,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,OAAO,EAAE,OAAO,EAAE,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAE7E,eAAO,MAAM,eAAe;;;;;EAA4D,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PayloadWithOptionalSources } from '@xyo-network/payload-model';
|
|
2
2
|
import type { DNSRequestFields, DNSResourceRecordTypeValue } from '../../types/index.ts';
|
|
3
3
|
import { DNSSchema } from '../Schema.ts';
|
|
4
4
|
/**
|
|
5
5
|
* The fields of a DNSRequest payload
|
|
6
6
|
*/
|
|
7
|
-
export type DNSRequest =
|
|
7
|
+
export type DNSRequest = PayloadWithOptionalSources<DNSRequestFields, DNSSchema>;
|
|
8
8
|
/**
|
|
9
9
|
* Identity function for determining if an object is a DNSRequest payload
|
|
10
10
|
*/
|
|
@@ -12,11 +12,25 @@ export declare const isDNSRequest: (x?: unknown | null) => x is DNSRequest;
|
|
|
12
12
|
/**
|
|
13
13
|
* Identity function for determining if an object is a DNSRequest payload with sources
|
|
14
14
|
*/
|
|
15
|
-
export declare const isDNSRequestWithSources: (x?: unknown | null) => x is import("
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
export declare const isDNSRequestWithSources: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
16
|
+
schema: "network.xyo.dns";
|
|
17
|
+
Question: {
|
|
18
|
+
name: string;
|
|
19
|
+
type: DNSResourceRecordTypeValue;
|
|
20
|
+
class?: number | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
QR: import("../../types/Header.ts").NumericBooleanFalsy;
|
|
23
|
+
Opcode: import("../../types/OperationCodes.ts").DNSQueryOpcode;
|
|
24
|
+
AA: import("../../types/Header.ts").NumericBooleanFalsy;
|
|
25
|
+
TC: import("../../types/Header.ts").NumericBooleanFalsy;
|
|
26
|
+
RCODE: import("../../types/ResponseCodes.ts").DNSRcode;
|
|
27
|
+
ANCOUNT: 0;
|
|
28
|
+
NSCOUNT: 0;
|
|
29
|
+
ARCOUNT: 0;
|
|
30
|
+
ID?: number | undefined;
|
|
31
|
+
RD?: import("../../types/Header.ts").NumericBoolean | undefined;
|
|
32
|
+
QDCOUNT?: number | undefined;
|
|
33
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField;
|
|
20
34
|
/**
|
|
21
35
|
* Helper for generating a DNSRequest payload for a given domain and record type
|
|
22
36
|
* @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":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAM5E,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,0BAA0B,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,YAAY,yCAA+C,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;0DAA0D,CAAA;AAE9F;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,WAAY,MAAM,SAAQ,0BAA0B,KAA8B,UAE9G,CAAA"}
|
|
@@ -13,8 +13,4 @@ export declare const isDNSResponse: (x?: unknown | null) => x is DNSResponse;
|
|
|
13
13
|
* Identity function for determining if an object is a DNSResponse payload with sources
|
|
14
14
|
*/
|
|
15
15
|
export declare const isDNSResponseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<DNSResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Identity function for determining if an object is a DNSResponse payload with meta
|
|
18
|
-
*/
|
|
19
|
-
export declare const isDNSResponseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<DNSResponse>;
|
|
20
16
|
//# sourceMappingURL=Response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/DNS/Witness/Payload/Response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,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;AAE1E;;GAEG;AACH,eAAO,MAAM,wBAAwB,4FAA2D,CAAA"}
|
|
@@ -25,19 +25,17 @@ export type Domain = Payload<DomainFields, DomainSchema>;
|
|
|
25
25
|
/**
|
|
26
26
|
* Identity function for Domain payload
|
|
27
27
|
*/
|
|
28
|
-
export declare const isDomain: (x?: unknown | null) => x is import("
|
|
29
|
-
schema: "network.xyo.ns.domain";
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Identity function for Domain payload with sources
|
|
33
|
-
*/
|
|
34
|
-
export declare const isDomainWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainFields & {
|
|
28
|
+
export declare const isDomain: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
35
29
|
schema: "network.xyo.ns.domain";
|
|
30
|
+
domain: string;
|
|
31
|
+
tld: TopLevelDomain;
|
|
36
32
|
}>;
|
|
37
33
|
/**
|
|
38
|
-
* Identity function for Domain payload with
|
|
34
|
+
* Identity function for Domain payload with sources
|
|
39
35
|
*/
|
|
40
|
-
export declare const
|
|
36
|
+
export declare const isDomainWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
41
37
|
schema: "network.xyo.ns.domain";
|
|
42
|
-
|
|
38
|
+
domain: string;
|
|
39
|
+
tld: TopLevelDomain;
|
|
40
|
+
}>>;
|
|
43
41
|
//# sourceMappingURL=Domain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,MAAM,MAAM,YAAY,GAAG,uBAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,EAAE,YAAsC,CAAA;AAEjE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAA;AAElC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,EAAE,cAAc,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,QAAQ;;YAhBX,MAAM;SAKT,cAAc;EAW8C,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;YArBtB,MAAM;SAKT,cAAc;GAgBoE,CAAA"}
|
|
@@ -15,19 +15,21 @@ export type DomainLease = Payload<DomainLeaseFields, DomainLeaseSchema>;
|
|
|
15
15
|
/**
|
|
16
16
|
* Identity function for DomainLease payload
|
|
17
17
|
*/
|
|
18
|
-
export declare const isDomainLease: (x?: unknown | null) => x is import("
|
|
19
|
-
schema: "network.xyo.ns.domain.lease";
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Identity function for DomainLease payload with sources
|
|
23
|
-
*/
|
|
24
|
-
export declare const isDomainLeaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainLeaseFields & {
|
|
18
|
+
export declare const isDomainLease: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
25
19
|
schema: "network.xyo.ns.domain.lease";
|
|
20
|
+
domain: string;
|
|
21
|
+
tld: import("./Domain.ts").TopLevelDomain;
|
|
22
|
+
exp: number;
|
|
23
|
+
nbf: number;
|
|
26
24
|
}>;
|
|
27
25
|
/**
|
|
28
|
-
* Identity function for DomainLease payload with
|
|
26
|
+
* Identity function for DomainLease payload with sources
|
|
29
27
|
*/
|
|
30
|
-
export declare const
|
|
28
|
+
export declare const isDomainLeaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
31
29
|
schema: "network.xyo.ns.domain.lease";
|
|
32
|
-
|
|
30
|
+
domain: string;
|
|
31
|
+
tld: import("./Domain.ts").TopLevelDomain;
|
|
32
|
+
exp: number;
|
|
33
|
+
nbf: number;
|
|
34
|
+
}>>;
|
|
33
35
|
//# sourceMappingURL=DomainLease.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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,CAAA;AAEjF;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,YAAY,EAAE,cAAc;CAAG;AAE1E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;EAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;GAAmE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
2
|
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
3
|
-
import type {
|
|
3
|
+
import type { WithSources } from '@xyo-network/payload-model';
|
|
4
4
|
import type { DomainRegistrationLease } from '../DomainRegistration/index.ts';
|
|
5
5
|
export type DomainEstimate = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
BoundWitness,
|
|
7
|
+
WithSources<HashLeaseEstimate>,
|
|
8
|
+
WithSources<DomainRegistrationLease>
|
|
9
9
|
];
|
|
10
10
|
//# sourceMappingURL=DomainEstimate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainEstimate.d.ts","sourceRoot":"","sources":["../../../src/DomainEstimate/DomainEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DomainEstimate.d.ts","sourceRoot":"","sources":["../../../src/DomainEstimate/DomainEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAE7E,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY;IACZ,WAAW,CAAC,iBAAiB,CAAC;IAC9B,WAAW,CAAC,uBAAuB,CAAC;CACrC,CAAA"}
|
|
@@ -20,19 +20,21 @@ export type DomainRegistration = Payload<DomainRegistrationFields, DomainRegistr
|
|
|
20
20
|
/**
|
|
21
21
|
* Identity function for DomainRegistration payload
|
|
22
22
|
*/
|
|
23
|
-
export declare const isDomainRegistration: (x?: unknown | null) => x is import("
|
|
24
|
-
schema: "network.xyo.ns.domain.registration";
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Identity function for DomainRegistration payload with sources
|
|
28
|
-
*/
|
|
29
|
-
export declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationFields & {
|
|
23
|
+
export declare const isDomainRegistration: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
30
24
|
schema: "network.xyo.ns.domain.registration";
|
|
25
|
+
registrant: Lowercase<string>[];
|
|
26
|
+
registrar: Lowercase<string>[];
|
|
27
|
+
domain: string;
|
|
28
|
+
tld: import("../Domain/Domain.ts").TopLevelDomain;
|
|
31
29
|
}>;
|
|
32
30
|
/**
|
|
33
|
-
* Identity function for DomainRegistration payload with
|
|
31
|
+
* Identity function for DomainRegistration payload with sources
|
|
34
32
|
*/
|
|
35
|
-
export declare const
|
|
33
|
+
export declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
36
34
|
schema: "network.xyo.ns.domain.registration";
|
|
37
|
-
|
|
35
|
+
registrant: Lowercase<string>[];
|
|
36
|
+
registrar: Lowercase<string>[];
|
|
37
|
+
domain: string;
|
|
38
|
+
tld: import("../Domain/Domain.ts").TopLevelDomain;
|
|
39
|
+
}>>;
|
|
38
40
|
//# 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;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DomainRegistration.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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;IAC5D;;OAEG;IACH,UAAU,EAAE,OAAO,EAAE,CAAA;IACrB;;OAEG;IACH,SAAS,EAAE,OAAO,EAAE,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;EAAsE,CAAA;AAEvG;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;GAAiF,CAAA"}
|
|
@@ -12,31 +12,37 @@ export type DomainRegistrationLease = Payload<DomainRegistrationLeaseFields, Dom
|
|
|
12
12
|
/**
|
|
13
13
|
* Identity function for DomainRegistrationLease payload
|
|
14
14
|
*/
|
|
15
|
-
export declare const isDomainRegistrationLease: (x?: unknown | null) => x is import("
|
|
15
|
+
export declare const isDomainRegistrationLease: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
16
16
|
schema: "network.xyo.ns.domain.registration.lease";
|
|
17
|
-
|
|
17
|
+
registrant: Lowercase<string>[];
|
|
18
|
+
registrar: Lowercase<string>[];
|
|
19
|
+
domain: string;
|
|
20
|
+
tld: import("../index.ts").TopLevelDomain;
|
|
21
|
+
exp: number;
|
|
22
|
+
nbf: number;
|
|
23
|
+
}>;
|
|
18
24
|
/**
|
|
19
25
|
* Identity function for DomainRegistrationLease payload with sources
|
|
20
26
|
*/
|
|
21
|
-
export declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("
|
|
27
|
+
export declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
22
28
|
schema: "network.xyo.ns.domain.registration.lease";
|
|
23
|
-
|
|
29
|
+
registrant: Lowercase<string>[];
|
|
30
|
+
registrar: Lowercase<string>[];
|
|
31
|
+
domain: string;
|
|
32
|
+
tld: import("../index.ts").TopLevelDomain;
|
|
33
|
+
exp: number;
|
|
34
|
+
nbf: number;
|
|
35
|
+
}>>;
|
|
24
36
|
/**
|
|
25
37
|
* @deprecated Use isDomainRegistrationLeaseWithSources instead
|
|
26
38
|
*/
|
|
27
|
-
export declare const isDomainRegistrationLeaseSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("
|
|
28
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
29
|
-
}>;
|
|
30
|
-
/**
|
|
31
|
-
* Identity function for DomainRegistrationLease payload with meta
|
|
32
|
-
*/
|
|
33
|
-
export declare const isDomainRegistrationLeaseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationLeaseFields & {
|
|
39
|
+
export declare const isDomainRegistrationLeaseSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
34
40
|
schema: "network.xyo.ns.domain.registration.lease";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
41
|
+
registrant: Lowercase<string>[];
|
|
42
|
+
registrar: Lowercase<string>[];
|
|
43
|
+
domain: string;
|
|
44
|
+
tld: import("../index.ts").TopLevelDomain;
|
|
45
|
+
exp: number;
|
|
46
|
+
nbf: number;
|
|
47
|
+
}>>;
|
|
42
48
|
//# sourceMappingURL=DomainRegistrationLease.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAGvE,eAAO,MAAM,6BAA6B,4CAA+C,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB,EAAE,cAAc;CAAG;AAElG;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,6BAA6B,EAAE,6BAA6B,CAAC,CAAA;AAE3G;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;EAAgF,CAAA;AAEtH;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;GAA2F,CAAA;AAC5I;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;GAAuC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
3
|
import type { DomainFields } from '../Domain/index.ts';
|
|
4
4
|
export type HashRecordSchema = 'network.xyo.ns.record.hash';
|
|
5
5
|
export declare const HashRecordSchema: HashRecordSchema;
|
|
@@ -13,10 +13,10 @@ export interface HashRecordFields extends DomainFields {
|
|
|
13
13
|
* An hash record points a domain to an hash
|
|
14
14
|
*/
|
|
15
15
|
export type HashRecord = Payload<HashRecordFields, HashRecordSchema>;
|
|
16
|
-
export declare const isHashRecord: (x?: unknown | null) => x is import("
|
|
17
|
-
schema: "network.xyo.ns.record.hash";
|
|
18
|
-
};
|
|
19
|
-
export declare const isHashRecordWithMeta: (x?: unknown | null) => x is WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashRecordFields & {
|
|
16
|
+
export declare const isHashRecord: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
20
17
|
schema: "network.xyo.ns.record.hash";
|
|
18
|
+
hash: Lowercase<string>[];
|
|
19
|
+
domain: string;
|
|
20
|
+
tld: import("../Domain/Domain.ts").TopLevelDomain;
|
|
21
21
|
}>;
|
|
22
22
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Hash/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Hash/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,MAAM,gBAAgB,GAAG,4BAA4B,CAAA;AAC3D,eAAO,MAAM,gBAAgB,EAAE,gBAA+C,CAAA;AAE9E,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;OAEG;IACH,IAAI,EAAE,IAAI,EAAE,CAAA;CACb;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;AAEpE,eAAO,MAAM,YAAY;;;;;EAAsD,CAAA"}
|
|
@@ -25,19 +25,29 @@ export type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends
|
|
|
25
25
|
/**
|
|
26
26
|
* Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload
|
|
27
27
|
*/
|
|
28
|
-
export declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is import("
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload with sources
|
|
33
|
-
*/
|
|
34
|
-
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> & {
|
|
28
|
+
export declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
29
|
+
[x: string]: any;
|
|
35
30
|
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
31
|
+
code: string;
|
|
32
|
+
detail?: string
|
|
33
|
+
/**
|
|
34
|
+
* A short, human-readable summary of the problem type.
|
|
35
|
+
*/
|
|
36
|
+
| undefined;
|
|
37
|
+
title?: string | undefined;
|
|
36
38
|
}>;
|
|
37
39
|
/**
|
|
38
|
-
* Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload with
|
|
40
|
+
* Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload with sources
|
|
39
41
|
*/
|
|
40
|
-
export declare const
|
|
42
|
+
export declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import(".store/@xylabs-object-npm-4.4.24-1b8348f2f7/package").DeepRestrictToStringKeys<{
|
|
43
|
+
[x: string]: any;
|
|
41
44
|
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
42
|
-
|
|
45
|
+
code: string;
|
|
46
|
+
detail?: string
|
|
47
|
+
/**
|
|
48
|
+
* A short, human-readable summary of the problem type.
|
|
49
|
+
*/
|
|
50
|
+
| undefined;
|
|
51
|
+
title?: string | undefined;
|
|
52
|
+
}>>;
|
|
43
53
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAGzD,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;IAClB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,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;AAED;;GAEG;AACH,MAAM,MAAM,gDAAgD,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,IAAI,OAAO,CACpH,YAAY,CAAC,UAAU,CAAC,EACxB,sDAAsD,CACvD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kDAAkD;;;;aAtBpD,MAAM;IACf;;OAEG;;YACK,MAAM;EAoBf,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,6DAA6D;;;;aA7B/D,MAAM;IACf;;OAEG;;YACK,MAAM;GA0B8H,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
2
|
import { type HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
3
|
-
import type { Payload,
|
|
3
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
4
4
|
import { type DomainRegistrationLease } from '../../DomainRegistration/index.ts';
|
|
5
5
|
export type Estimate = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
BoundWitness,
|
|
7
|
+
WithSources<HashLeaseEstimate>,
|
|
8
|
+
WithSources<DomainRegistrationLease>
|
|
9
9
|
];
|
|
10
10
|
/**
|
|
11
11
|
* Parses a generic array of payloads into estimates
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACvB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,mCAAmC,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG;IACrB,YAAY;IACZ,WAAW,CAAC,iBAAiB,CAAC;IAC9B,WAAW,CAAC,uBAAuB,CAAC;CACrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,cAAqB,OAAO,EAAE,KAAG,OAAO,CAAC,QAAQ,EAAE,CA0BtF,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
3
3
|
var AddressRecordSchema = "network.xyo.ns.record.address";
|
|
4
4
|
var isAddressRecord = isPayloadOfSchemaType(AddressRecordSchema);
|
|
5
|
-
var isAddressRecordWithMeta = isPayloadOfSchemaType(AddressRecordSchema);
|
|
6
5
|
|
|
7
6
|
// src/diviner/DomainLeaseEstimateDiviner/Schema.ts
|
|
8
7
|
var DomainLeaseEstimateDivinerValidationErrorDetailsSchema = "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
@@ -57,73 +56,47 @@ var DomainLeaseEstimateDivinerErrorDetailsDictionary = {
|
|
|
57
56
|
};
|
|
58
57
|
|
|
59
58
|
// src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts
|
|
60
|
-
import {
|
|
61
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType2,
|
|
62
|
-
isPayloadOfSchemaTypeWithMeta,
|
|
63
|
-
isPayloadOfSchemaTypeWithSources
|
|
64
|
-
} from "@xyo-network/payload-model";
|
|
59
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType2, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
|
|
65
60
|
var isDomainLeaseEstimateDivinerValidationErrorDetails = isPayloadOfSchemaType2(
|
|
66
61
|
DomainLeaseEstimateDivinerValidationErrorDetailsSchema
|
|
67
62
|
);
|
|
68
63
|
var isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources = isPayloadOfSchemaTypeWithSources(DomainLeaseEstimateDivinerValidationErrorDetailsSchema);
|
|
69
|
-
var isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta = isPayloadOfSchemaTypeWithMeta(DomainLeaseEstimateDivinerValidationErrorDetailsSchema);
|
|
70
64
|
|
|
71
65
|
// src/diviner/lib/parseEstimatesFromArray.ts
|
|
72
66
|
import { exists } from "@xylabs/exists";
|
|
73
67
|
import { isBoundWitness } from "@xyo-network/boundwitness-model";
|
|
74
68
|
import {
|
|
75
69
|
HashLeaseEstimateSchema,
|
|
76
|
-
|
|
70
|
+
isHashLeaseEstimate
|
|
77
71
|
} from "@xyo-network/diviner-hash-lease";
|
|
78
72
|
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
79
73
|
|
|
80
74
|
// src/DomainRegistration/DomainRegistration.ts
|
|
81
|
-
import {
|
|
82
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType5,
|
|
83
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta4,
|
|
84
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4
|
|
85
|
-
} from "@xyo-network/payload-model";
|
|
75
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType5, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4 } from "@xyo-network/payload-model";
|
|
86
76
|
|
|
87
77
|
// src/Domain/Domain.ts
|
|
88
|
-
import {
|
|
89
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType3,
|
|
90
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta2,
|
|
91
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2
|
|
92
|
-
} from "@xyo-network/payload-model";
|
|
78
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType3, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2 } from "@xyo-network/payload-model";
|
|
93
79
|
var DomainSchema = "network.xyo.ns.domain";
|
|
94
80
|
var isDomain = isPayloadOfSchemaType3(DomainSchema);
|
|
95
81
|
var isDomainWithSources = isPayloadOfSchemaTypeWithSources2(DomainSchema);
|
|
96
|
-
var isDomainWithMeta = isPayloadOfSchemaTypeWithMeta2(DomainSchema);
|
|
97
82
|
|
|
98
83
|
// src/Domain/DomainLease.ts
|
|
99
|
-
import {
|
|
100
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType4,
|
|
101
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta3,
|
|
102
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3
|
|
103
|
-
} from "@xyo-network/payload-model";
|
|
84
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType4, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3 } from "@xyo-network/payload-model";
|
|
104
85
|
var DomainLeaseSchema = "network.xyo.ns.domain.lease";
|
|
105
86
|
var isDomainLease = isPayloadOfSchemaType4(DomainLeaseSchema);
|
|
106
87
|
var isDomainLeaseWithSources = isPayloadOfSchemaTypeWithSources3(DomainLeaseSchema);
|
|
107
|
-
var isDomainLeaseWithMeta = isPayloadOfSchemaTypeWithMeta3(DomainLeaseSchema);
|
|
108
88
|
|
|
109
89
|
// src/DomainRegistration/DomainRegistration.ts
|
|
110
90
|
var DomainRegistrationSchema = `${DomainSchema}.registration`;
|
|
111
91
|
var isDomainRegistration = isPayloadOfSchemaType5(DomainRegistrationSchema);
|
|
112
92
|
var isDomainRegistrationWithSources = isPayloadOfSchemaTypeWithSources4(DomainRegistrationSchema);
|
|
113
|
-
var isDomainRegistrationWithMeta = isPayloadOfSchemaTypeWithMeta4(DomainRegistrationSchema);
|
|
114
93
|
|
|
115
94
|
// src/DomainRegistration/DomainRegistrationLease.ts
|
|
116
|
-
import {
|
|
117
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType6,
|
|
118
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta5,
|
|
119
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5
|
|
120
|
-
} from "@xyo-network/payload-model";
|
|
95
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType6, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5 } from "@xyo-network/payload-model";
|
|
121
96
|
var DomainRegistrationLeaseSchema = `${DomainRegistrationSchema}.lease`;
|
|
122
97
|
var isDomainRegistrationLease = isPayloadOfSchemaType6(DomainRegistrationLeaseSchema);
|
|
123
98
|
var isDomainRegistrationLeaseWithSources = isPayloadOfSchemaTypeWithSources5(DomainRegistrationLeaseSchema);
|
|
124
99
|
var isDomainRegistrationLeaseSources = isDomainRegistrationLeaseWithSources;
|
|
125
|
-
var isDomainRegistrationLeaseWithMeta = isPayloadOfSchemaTypeWithMeta5(DomainRegistrationLeaseSchema);
|
|
126
|
-
var isDomainRegistrationLeaseMeta = isDomainRegistrationLeaseWithMeta;
|
|
127
100
|
|
|
128
101
|
// src/diviner/lib/parseEstimatesFromArray.ts
|
|
129
102
|
var parseEstimatesFromArray = async (payloads) => {
|
|
@@ -136,14 +109,14 @@ var parseEstimatesFromArray = async (payloads) => {
|
|
|
136
109
|
bw,
|
|
137
110
|
HashLeaseEstimateSchema,
|
|
138
111
|
hashMap,
|
|
139
|
-
|
|
112
|
+
isHashLeaseEstimate
|
|
140
113
|
);
|
|
141
114
|
if (!hashLeaseEstimate) return;
|
|
142
115
|
const domainLease = getPayloadBySchemaFromBoundWitness(
|
|
143
116
|
bw,
|
|
144
117
|
DomainRegistrationLeaseSchema,
|
|
145
118
|
hashMap,
|
|
146
|
-
|
|
119
|
+
isDomainRegistrationLeaseWithSources
|
|
147
120
|
);
|
|
148
121
|
if (!domainLease) return;
|
|
149
122
|
return [bw, hashLeaseEstimate, domainLease];
|
|
@@ -445,12 +418,10 @@ var DNSWitnessConfigSchema = `${DNSSchema}.witness.config`;
|
|
|
445
418
|
// src/DNS/Witness/Payload/Request.ts
|
|
446
419
|
import {
|
|
447
420
|
isPayloadOfSchemaType as isPayloadOfSchemaType7,
|
|
448
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6,
|
|
449
421
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6
|
|
450
422
|
} from "@xyo-network/payload-model";
|
|
451
423
|
var isDNSRequest = isPayloadOfSchemaType7(DNSSchema);
|
|
452
424
|
var isDNSRequestWithSources = isPayloadOfSchemaTypeWithSources6(DNSSchema);
|
|
453
|
-
var isDNSRequestWithMeta = isPayloadOfSchemaTypeWithMeta6(DNSSchema);
|
|
454
425
|
var getDnsRequestFor = (domain, type = DNSResourceRecordTypes.A) => {
|
|
455
426
|
return { ...getRequestFor(domain, type), schema: DNSSchema };
|
|
456
427
|
};
|
|
@@ -458,12 +429,10 @@ var getDnsRequestFor = (domain, type = DNSResourceRecordTypes.A) => {
|
|
|
458
429
|
// src/DNS/Witness/Payload/Response.ts
|
|
459
430
|
import {
|
|
460
431
|
isPayloadOfSchemaType as isPayloadOfSchemaType8,
|
|
461
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7,
|
|
462
432
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
|
|
463
433
|
} from "@xyo-network/payload-model";
|
|
464
434
|
var isDNSResponse = isPayloadOfSchemaType8(DNSSchema);
|
|
465
435
|
var isDNSResponseWithSources = isPayloadOfSchemaTypeWithSources7(DNSSchema);
|
|
466
|
-
var isDNSResponseWithMeta = isPayloadOfSchemaTypeWithMeta7(DNSSchema);
|
|
467
436
|
|
|
468
437
|
// src/Duration/validation/validateBoundWitness.ts
|
|
469
438
|
import { BoundWitnessValidator } from "@xyo-network/boundwitness-validator";
|
|
@@ -485,10 +454,8 @@ var recordIsInBoundWitness = async (recordBw, recordPayload) => {
|
|
|
485
454
|
const hash = await PayloadBuilder2.dataHash(recordPayload);
|
|
486
455
|
return recordBw.payload_hashes.includes(hash);
|
|
487
456
|
};
|
|
488
|
-
var recordIsTemporallyValidToBoundWitness = (
|
|
489
|
-
|
|
490
|
-
const { exp } = recordPayload;
|
|
491
|
-
return exp > timestamp;
|
|
457
|
+
var recordIsTemporallyValidToBoundWitness = (_recordBw, _recordPayload) => {
|
|
458
|
+
return true;
|
|
492
459
|
};
|
|
493
460
|
|
|
494
461
|
// src/Duration/validation/validateDuration.ts
|
|
@@ -512,7 +479,6 @@ var validateBoundWitnessWithDuration = async (recordBw, recordPayload) => {
|
|
|
512
479
|
import { isPayloadOfSchemaType as isPayloadOfSchemaType9 } from "@xyo-network/payload-model";
|
|
513
480
|
var HashRecordSchema = "network.xyo.ns.record.hash";
|
|
514
481
|
var isHashRecord = isPayloadOfSchemaType9(HashRecordSchema);
|
|
515
|
-
var isHashRecordWithMeta = isPayloadOfSchemaType9(HashRecordSchema);
|
|
516
482
|
export {
|
|
517
483
|
AddressRecordSchema,
|
|
518
484
|
DNSQueryOpcodes,
|
|
@@ -533,32 +499,22 @@ export {
|
|
|
533
499
|
getRandomId,
|
|
534
500
|
getRequestFor,
|
|
535
501
|
isAddressRecord,
|
|
536
|
-
isAddressRecordWithMeta,
|
|
537
502
|
isDNSRequest,
|
|
538
|
-
isDNSRequestWithMeta,
|
|
539
503
|
isDNSRequestWithSources,
|
|
540
504
|
isDNSResponse,
|
|
541
|
-
isDNSResponseWithMeta,
|
|
542
505
|
isDNSResponseWithSources,
|
|
543
506
|
isDomain,
|
|
544
507
|
isDomainLease,
|
|
545
508
|
isDomainLeaseEstimateDivinerValidationErrorDetails,
|
|
546
|
-
isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta,
|
|
547
509
|
isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources,
|
|
548
|
-
isDomainLeaseWithMeta,
|
|
549
510
|
isDomainLeaseWithSources,
|
|
550
511
|
isDomainRegistration,
|
|
551
512
|
isDomainRegistrationLease,
|
|
552
|
-
isDomainRegistrationLeaseMeta,
|
|
553
513
|
isDomainRegistrationLeaseSources,
|
|
554
|
-
isDomainRegistrationLeaseWithMeta,
|
|
555
514
|
isDomainRegistrationLeaseWithSources,
|
|
556
|
-
isDomainRegistrationWithMeta,
|
|
557
515
|
isDomainRegistrationWithSources,
|
|
558
|
-
isDomainWithMeta,
|
|
559
516
|
isDomainWithSources,
|
|
560
517
|
isHashRecord,
|
|
561
|
-
isHashRecordWithMeta,
|
|
562
518
|
isWithinDelegatedTimeframe,
|
|
563
519
|
parseEstimatesFromArray,
|
|
564
520
|
validateBoundWitnessWithDuration,
|