@xyo-network/xns-record-payload-plugins 6.0.3 → 7.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.
- package/README.md +5 -0
- package/dist/neutral/Address/Payload.d.ts +88 -11
- package/dist/neutral/Address/Payload.d.ts.map +1 -1
- package/dist/{browser/DNS → neutral/Dns}/Witness/Config.d.ts.map +1 -1
- package/dist/{browser/DNS → neutral/Dns}/Witness/Params.d.ts.map +1 -1
- package/dist/{browser/DNS → neutral/Dns}/Witness/Payload/Payload.d.ts.map +1 -1
- package/dist/neutral/Dns/Witness/Payload/Request.d.ts +147 -0
- package/dist/neutral/Dns/Witness/Payload/Request.d.ts.map +1 -0
- package/dist/neutral/Dns/Witness/Payload/Response.d.ts +259 -0
- package/dist/neutral/Dns/Witness/Payload/Response.d.ts.map +1 -0
- package/dist/{browser/DNS → neutral/Dns}/Witness/Payload/index.d.ts.map +1 -1
- package/dist/{browser/DNS → neutral/Dns}/Witness/Schema.d.ts.map +1 -1
- package/dist/neutral/{DNS → Dns}/Witness/index.d.ts.map +1 -1
- package/dist/neutral/Dns/index.d.ts.map +1 -0
- package/dist/neutral/Dns/types/Answer.d.ts +10 -0
- package/dist/neutral/Dns/types/Answer.d.ts.map +1 -0
- package/dist/neutral/Dns/types/Header.d.ts +52 -0
- package/dist/neutral/Dns/types/Header.d.ts.map +1 -0
- package/dist/neutral/Dns/types/OperationCodes.d.ts +14 -0
- package/dist/neutral/Dns/types/OperationCodes.d.ts.map +1 -0
- package/dist/neutral/Dns/types/Record.d.ts +9 -0
- package/dist/neutral/Dns/types/Record.d.ts.map +1 -0
- package/dist/neutral/Dns/types/Request.d.ts +40 -0
- package/dist/neutral/Dns/types/Request.d.ts.map +1 -0
- package/dist/neutral/Dns/types/ResourceRecord.d.ts +105 -0
- package/dist/neutral/Dns/types/ResourceRecord.d.ts.map +1 -0
- package/dist/neutral/Dns/types/Response.d.ts +41 -0
- package/dist/neutral/Dns/types/Response.d.ts.map +1 -0
- package/dist/neutral/Dns/types/ResponseCodes.d.ts +22 -0
- package/dist/neutral/Dns/types/ResponseCodes.d.ts.map +1 -0
- package/dist/neutral/{DNS → Dns}/types/index.d.ts.map +1 -1
- package/dist/neutral/Domain/Domain.d.ts +55 -22
- package/dist/neutral/Domain/Domain.d.ts.map +1 -1
- package/dist/neutral/Domain/DomainLease.d.ts +67 -15
- package/dist/neutral/Domain/DomainLease.d.ts.map +1 -1
- package/dist/neutral/DomainRegistration/DomainRegistration.d.ts +123 -23
- package/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +137 -19
- package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/neutral/Duration/Duration.d.ts +6 -10
- package/dist/neutral/Duration/Duration.d.ts.map +1 -1
- package/dist/neutral/Hash/Payload.d.ts +60 -11
- package/dist/neutral/Hash/Payload.d.ts.map +1 -1
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +52 -11
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/index.mjs +603 -207
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +20 -21
- package/dist/browser/Address/Payload.d.ts +0 -19
- package/dist/browser/Address/Payload.d.ts.map +0 -1
- package/dist/browser/Address/index.d.ts +0 -2
- package/dist/browser/Address/index.d.ts.map +0 -1
- package/dist/browser/DNS/Witness/Payload/Request.d.ts +0 -27
- package/dist/browser/DNS/Witness/Payload/Request.d.ts.map +0 -1
- package/dist/browser/DNS/Witness/Payload/Response.d.ts +0 -20
- package/dist/browser/DNS/Witness/Payload/Response.d.ts.map +0 -1
- package/dist/browser/DNS/Witness/index.d.ts.map +0 -1
- package/dist/browser/DNS/index.d.ts.map +0 -1
- package/dist/browser/DNS/types/Answer.d.ts +0 -5
- package/dist/browser/DNS/types/Answer.d.ts.map +0 -1
- package/dist/browser/DNS/types/Header.d.ts +0 -71
- package/dist/browser/DNS/types/Header.d.ts.map +0 -1
- package/dist/browser/DNS/types/OperationCodes.d.ts +0 -4
- package/dist/browser/DNS/types/OperationCodes.d.ts.map +0 -1
- package/dist/browser/DNS/types/Record.d.ts +0 -8
- package/dist/browser/DNS/types/Record.d.ts.map +0 -1
- package/dist/browser/DNS/types/Request.d.ts +0 -23
- package/dist/browser/DNS/types/Request.d.ts.map +0 -1
- package/dist/browser/DNS/types/ResourceRecord.d.ts +0 -5
- package/dist/browser/DNS/types/ResourceRecord.d.ts.map +0 -1
- package/dist/browser/DNS/types/Response.d.ts +0 -11
- package/dist/browser/DNS/types/Response.d.ts.map +0 -1
- package/dist/browser/DNS/types/ResponseCodes.d.ts +0 -4
- package/dist/browser/DNS/types/ResponseCodes.d.ts.map +0 -1
- package/dist/browser/DNS/types/index.d.ts.map +0 -1
- package/dist/browser/Domain/Domain.d.ts +0 -39
- package/dist/browser/Domain/Domain.d.ts.map +0 -1
- package/dist/browser/Domain/DomainLease.d.ts +0 -29
- package/dist/browser/Domain/DomainLease.d.ts.map +0 -1
- package/dist/browser/Domain/index.d.ts +0 -3
- package/dist/browser/Domain/index.d.ts.map +0 -1
- package/dist/browser/DomainEstimate/DomainEstimate.d.ts +0 -9
- package/dist/browser/DomainEstimate/DomainEstimate.d.ts.map +0 -1
- package/dist/browser/DomainEstimate/index.d.ts +0 -2
- package/dist/browser/DomainEstimate/index.d.ts.map +0 -1
- package/dist/browser/DomainRegistration/DomainRegistration.d.ts +0 -34
- package/dist/browser/DomainRegistration/DomainRegistration.d.ts.map +0 -1
- package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts +0 -30
- package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts.map +0 -1
- package/dist/browser/DomainRegistration/index.d.ts +0 -3
- package/dist/browser/DomainRegistration/index.d.ts.map +0 -1
- package/dist/browser/Duration/Duration.d.ts +0 -11
- package/dist/browser/Duration/Duration.d.ts.map +0 -1
- package/dist/browser/Duration/index.d.ts +0 -3
- package/dist/browser/Duration/index.d.ts.map +0 -1
- package/dist/browser/Duration/validation/index.d.ts +0 -3
- package/dist/browser/Duration/validation/index.d.ts.map +0 -1
- package/dist/browser/Duration/validation/validateBoundWitness.d.ts +0 -3
- package/dist/browser/Duration/validation/validateBoundWitness.d.ts.map +0 -1
- package/dist/browser/Duration/validation/validateBoundWitnessAndDuration.d.ts +0 -4
- package/dist/browser/Duration/validation/validateBoundWitnessAndDuration.d.ts.map +0 -1
- package/dist/browser/Duration/validation/validateBoundWitnessWithDuration.d.ts +0 -4
- package/dist/browser/Duration/validation/validateBoundWitnessWithDuration.d.ts.map +0 -1
- package/dist/browser/Duration/validation/validateDuration.d.ts +0 -5
- package/dist/browser/Duration/validation/validateDuration.d.ts.map +0 -1
- package/dist/browser/Hash/Payload.d.ts +0 -19
- package/dist/browser/Hash/Payload.d.ts.map +0 -1
- package/dist/browser/Hash/index.d.ts +0 -2
- package/dist/browser/Hash/index.d.ts.map +0 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts +0 -4
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts.map +0 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +0 -33
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +0 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts +0 -3
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts.map +0 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/Schema.d.ts +0 -5
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +0 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/index.d.ts +0 -3
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/index.d.ts.map +0 -1
- package/dist/browser/diviner/index.d.ts +0 -3
- package/dist/browser/diviner/index.d.ts.map +0 -1
- package/dist/browser/diviner/lib/index.d.ts +0 -2
- package/dist/browser/diviner/lib/index.d.ts.map +0 -1
- package/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts +0 -15
- package/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts.map +0 -1
- package/dist/browser/index.d.ts +0 -9
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.mjs +0 -591
- package/dist/browser/index.mjs.map +0 -7
- package/dist/neutral/DNS/Witness/Config.d.ts +0 -25
- package/dist/neutral/DNS/Witness/Config.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/Params.d.ts +0 -4
- package/dist/neutral/DNS/Witness/Params.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/Payload/Payload.d.ts +0 -4
- package/dist/neutral/DNS/Witness/Payload/Payload.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/Payload/Request.d.ts +0 -27
- package/dist/neutral/DNS/Witness/Payload/Request.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/Payload/Response.d.ts +0 -20
- package/dist/neutral/DNS/Witness/Payload/Response.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/Payload/index.d.ts +0 -4
- package/dist/neutral/DNS/Witness/Payload/index.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/Schema.d.ts +0 -5
- package/dist/neutral/DNS/Witness/Schema.d.ts.map +0 -1
- package/dist/neutral/DNS/Witness/index.d.ts +0 -5
- package/dist/neutral/DNS/index.d.ts +0 -3
- package/dist/neutral/DNS/index.d.ts.map +0 -1
- package/dist/neutral/DNS/types/Answer.d.ts +0 -5
- package/dist/neutral/DNS/types/Answer.d.ts.map +0 -1
- package/dist/neutral/DNS/types/Header.d.ts +0 -71
- package/dist/neutral/DNS/types/Header.d.ts.map +0 -1
- package/dist/neutral/DNS/types/OperationCodes.d.ts +0 -4
- package/dist/neutral/DNS/types/OperationCodes.d.ts.map +0 -1
- package/dist/neutral/DNS/types/Record.d.ts +0 -8
- package/dist/neutral/DNS/types/Record.d.ts.map +0 -1
- package/dist/neutral/DNS/types/Request.d.ts +0 -23
- package/dist/neutral/DNS/types/Request.d.ts.map +0 -1
- package/dist/neutral/DNS/types/ResourceRecord.d.ts +0 -5
- package/dist/neutral/DNS/types/ResourceRecord.d.ts.map +0 -1
- package/dist/neutral/DNS/types/Response.d.ts +0 -11
- package/dist/neutral/DNS/types/Response.d.ts.map +0 -1
- package/dist/neutral/DNS/types/ResponseCodes.d.ts +0 -4
- package/dist/neutral/DNS/types/ResponseCodes.d.ts.map +0 -1
- package/dist/neutral/DNS/types/index.d.ts +0 -9
- package/dist/node/Address/Payload.d.ts +0 -19
- package/dist/node/Address/Payload.d.ts.map +0 -1
- package/dist/node/Address/index.d.ts +0 -2
- package/dist/node/Address/index.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Config.d.ts +0 -25
- package/dist/node/DNS/Witness/Config.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Params.d.ts +0 -4
- package/dist/node/DNS/Witness/Params.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Payload/Payload.d.ts +0 -4
- package/dist/node/DNS/Witness/Payload/Payload.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Payload/Request.d.ts +0 -27
- package/dist/node/DNS/Witness/Payload/Request.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Payload/Response.d.ts +0 -20
- package/dist/node/DNS/Witness/Payload/Response.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Payload/index.d.ts +0 -4
- package/dist/node/DNS/Witness/Payload/index.d.ts.map +0 -1
- package/dist/node/DNS/Witness/Schema.d.ts +0 -5
- package/dist/node/DNS/Witness/Schema.d.ts.map +0 -1
- package/dist/node/DNS/Witness/index.d.ts +0 -5
- package/dist/node/DNS/Witness/index.d.ts.map +0 -1
- package/dist/node/DNS/index.d.ts +0 -3
- package/dist/node/DNS/index.d.ts.map +0 -1
- package/dist/node/DNS/types/Answer.d.ts +0 -5
- package/dist/node/DNS/types/Answer.d.ts.map +0 -1
- package/dist/node/DNS/types/Header.d.ts +0 -71
- package/dist/node/DNS/types/Header.d.ts.map +0 -1
- package/dist/node/DNS/types/OperationCodes.d.ts +0 -4
- package/dist/node/DNS/types/OperationCodes.d.ts.map +0 -1
- package/dist/node/DNS/types/Record.d.ts +0 -8
- package/dist/node/DNS/types/Record.d.ts.map +0 -1
- package/dist/node/DNS/types/Request.d.ts +0 -23
- package/dist/node/DNS/types/Request.d.ts.map +0 -1
- package/dist/node/DNS/types/ResourceRecord.d.ts +0 -5
- package/dist/node/DNS/types/ResourceRecord.d.ts.map +0 -1
- package/dist/node/DNS/types/Response.d.ts +0 -11
- package/dist/node/DNS/types/Response.d.ts.map +0 -1
- package/dist/node/DNS/types/ResponseCodes.d.ts +0 -4
- package/dist/node/DNS/types/ResponseCodes.d.ts.map +0 -1
- package/dist/node/DNS/types/index.d.ts +0 -9
- package/dist/node/DNS/types/index.d.ts.map +0 -1
- package/dist/node/Domain/Domain.d.ts +0 -39
- package/dist/node/Domain/Domain.d.ts.map +0 -1
- package/dist/node/Domain/DomainLease.d.ts +0 -29
- package/dist/node/Domain/DomainLease.d.ts.map +0 -1
- package/dist/node/Domain/index.d.ts +0 -3
- package/dist/node/Domain/index.d.ts.map +0 -1
- package/dist/node/DomainEstimate/DomainEstimate.d.ts +0 -9
- package/dist/node/DomainEstimate/DomainEstimate.d.ts.map +0 -1
- package/dist/node/DomainEstimate/index.d.ts +0 -2
- package/dist/node/DomainEstimate/index.d.ts.map +0 -1
- package/dist/node/DomainRegistration/DomainRegistration.d.ts +0 -34
- package/dist/node/DomainRegistration/DomainRegistration.d.ts.map +0 -1
- package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts +0 -30
- package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts.map +0 -1
- package/dist/node/DomainRegistration/index.d.ts +0 -3
- package/dist/node/DomainRegistration/index.d.ts.map +0 -1
- package/dist/node/Duration/Duration.d.ts +0 -11
- package/dist/node/Duration/Duration.d.ts.map +0 -1
- package/dist/node/Duration/index.d.ts +0 -3
- package/dist/node/Duration/index.d.ts.map +0 -1
- package/dist/node/Duration/validation/index.d.ts +0 -3
- package/dist/node/Duration/validation/index.d.ts.map +0 -1
- package/dist/node/Duration/validation/validateBoundWitness.d.ts +0 -3
- package/dist/node/Duration/validation/validateBoundWitness.d.ts.map +0 -1
- package/dist/node/Duration/validation/validateBoundWitnessAndDuration.d.ts +0 -4
- package/dist/node/Duration/validation/validateBoundWitnessAndDuration.d.ts.map +0 -1
- package/dist/node/Duration/validation/validateBoundWitnessWithDuration.d.ts +0 -4
- package/dist/node/Duration/validation/validateBoundWitnessWithDuration.d.ts.map +0 -1
- package/dist/node/Duration/validation/validateDuration.d.ts +0 -5
- package/dist/node/Duration/validation/validateDuration.d.ts.map +0 -1
- package/dist/node/Hash/Payload.d.ts +0 -19
- package/dist/node/Hash/Payload.d.ts.map +0 -1
- package/dist/node/Hash/index.d.ts +0 -2
- package/dist/node/Hash/index.d.ts.map +0 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts +0 -4
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts.map +0 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +0 -33
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +0 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts +0 -3
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts.map +0 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/Schema.d.ts +0 -5
- package/dist/node/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +0 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/index.d.ts +0 -3
- package/dist/node/diviner/DomainLeaseEstimateDiviner/index.d.ts.map +0 -1
- package/dist/node/diviner/index.d.ts +0 -3
- package/dist/node/diviner/index.d.ts.map +0 -1
- package/dist/node/diviner/lib/index.d.ts +0 -2
- package/dist/node/diviner/lib/index.d.ts.map +0 -1
- package/dist/node/diviner/lib/parseEstimatesFromArray.d.ts +0 -15
- package/dist/node/diviner/lib/parseEstimatesFromArray.d.ts.map +0 -1
- package/dist/node/index.d.ts +0 -9
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.mjs +0 -591
- package/dist/node/index.mjs.map +0 -7
- /package/dist/{browser/DNS → neutral/Dns}/Witness/Config.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/Witness/Params.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/Witness/Payload/Payload.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/Witness/Payload/index.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/Witness/Schema.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/Witness/index.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/index.d.ts +0 -0
- /package/dist/{browser/DNS → neutral/Dns}/types/index.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const DNSQueryOpcodeZod: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>;
|
|
3
|
+
export type DNSQueryOpcode = z.infer<typeof DNSQueryOpcodeZod>;
|
|
4
|
+
export declare const DNSQueryOpcodeNameZod: z.ZodMiniEnum<{
|
|
5
|
+
QUERY: "QUERY";
|
|
6
|
+
IQUERY: "IQUERY";
|
|
7
|
+
STATUS: "STATUS";
|
|
8
|
+
NOTIFY: "NOTIFY";
|
|
9
|
+
UPDATE: "UPDATE";
|
|
10
|
+
DSO: "DSO";
|
|
11
|
+
}>;
|
|
12
|
+
export type DNSQueryOpcodeName = z.infer<typeof DNSQueryOpcodeNameZod>;
|
|
13
|
+
export declare const DNSQueryOpcodes: Record<DNSQueryOpcodeName, DNSQueryOpcode>;
|
|
14
|
+
//# sourceMappingURL=OperationCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationCodes.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/OperationCodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,iBAAiB,yJAO5B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAG9D,eAAO,MAAM,qBAAqB;;;;;;;EAAmE,CAAA;AAErG,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAOtE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const DNSRecordZod: z.ZodMiniObject<{
|
|
3
|
+
name: z.ZodMiniString<string>;
|
|
4
|
+
type: z.ZodMiniNumber<number>;
|
|
5
|
+
TTL: z.ZodMiniNumber<number>;
|
|
6
|
+
data: z.ZodMiniString<string>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type DNSRecord = z.infer<typeof DNSRecordZod>;
|
|
9
|
+
//# sourceMappingURL=Record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Record.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/Record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,YAAY;;;;;iBAKvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
import type { DNSResourceRecordTypeValue } from './ResourceRecord.ts';
|
|
3
|
+
export declare const DNSQuestionZod: z.ZodMiniObject<{
|
|
4
|
+
name: z.ZodMiniString<string>;
|
|
5
|
+
type: z.ZodMiniNumber<number>;
|
|
6
|
+
class: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type DNSQuestion = z.infer<typeof DNSQuestionZod>;
|
|
9
|
+
export declare const DNSRequestFieldsZod: z.ZodMiniObject<{
|
|
10
|
+
ID: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
11
|
+
RD: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
12
|
+
QDCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
13
|
+
QR: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
14
|
+
Opcode: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>;
|
|
15
|
+
AA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
16
|
+
TC: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
17
|
+
RCODE: z.ZodMiniLiteral<0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18>;
|
|
18
|
+
ANCOUNT: z.ZodMiniLiteral<0>;
|
|
19
|
+
NSCOUNT: z.ZodMiniLiteral<0>;
|
|
20
|
+
ARCOUNT: z.ZodMiniLiteral<0>;
|
|
21
|
+
Question: z.ZodMiniArray<z.ZodMiniObject<{
|
|
22
|
+
name: z.ZodMiniString<string>;
|
|
23
|
+
type: z.ZodMiniNumber<number>;
|
|
24
|
+
class: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type DNSRequestFields = z.infer<typeof DNSRequestFieldsZod>;
|
|
28
|
+
/**
|
|
29
|
+
* Helper for generating a DNS request for a given domain and record type
|
|
30
|
+
* @param domain The domain to query
|
|
31
|
+
* @param type The record type to query
|
|
32
|
+
* @returns A DNS request
|
|
33
|
+
*/
|
|
34
|
+
export declare const getRequestFor: (domain: string, type?: DNSResourceRecordTypeValue) => DNSRequestFields;
|
|
35
|
+
/**
|
|
36
|
+
* Used to generate a random ID for a DNS request
|
|
37
|
+
* @returns A random number between 0 and 65,535
|
|
38
|
+
*/
|
|
39
|
+
export declare const getRandomId: () => number;
|
|
40
|
+
//# sourceMappingURL=Request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/Request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAG7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AAGrE,eAAO,MAAM,cAAc;;;;iBAIzB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;iBAAuE,CAAA;AAEvG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAElE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,EAAE,OAAM,0BAAqD,KAAG,gBAQ3G,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,MAE9B,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const DNSResourceRecordTypeZod: z.ZodMiniEnum<{
|
|
3
|
+
A: "A";
|
|
4
|
+
NS: "NS";
|
|
5
|
+
MD: "MD";
|
|
6
|
+
MF: "MF";
|
|
7
|
+
CNAME: "CNAME";
|
|
8
|
+
SOA: "SOA";
|
|
9
|
+
MB: "MB";
|
|
10
|
+
MG: "MG";
|
|
11
|
+
MR: "MR";
|
|
12
|
+
NULL: "NULL";
|
|
13
|
+
WKS: "WKS";
|
|
14
|
+
PTR: "PTR";
|
|
15
|
+
HINFO: "HINFO";
|
|
16
|
+
MINFO: "MINFO";
|
|
17
|
+
MX: "MX";
|
|
18
|
+
TXT: "TXT";
|
|
19
|
+
RP: "RP";
|
|
20
|
+
AFSDB: "AFSDB";
|
|
21
|
+
X25: "X25";
|
|
22
|
+
ISDN: "ISDN";
|
|
23
|
+
RT: "RT";
|
|
24
|
+
NSAP: "NSAP";
|
|
25
|
+
"NSAP-PTR": "NSAP-PTR";
|
|
26
|
+
SIG: "SIG";
|
|
27
|
+
KEY: "KEY";
|
|
28
|
+
PX: "PX";
|
|
29
|
+
GPOS: "GPOS";
|
|
30
|
+
AAAA: "AAAA";
|
|
31
|
+
LOC: "LOC";
|
|
32
|
+
NXT: "NXT";
|
|
33
|
+
EID: "EID";
|
|
34
|
+
NIMLOC: "NIMLOC";
|
|
35
|
+
SRV: "SRV";
|
|
36
|
+
ATMA: "ATMA";
|
|
37
|
+
NAPTR: "NAPTR";
|
|
38
|
+
KX: "KX";
|
|
39
|
+
CERT: "CERT";
|
|
40
|
+
A6: "A6";
|
|
41
|
+
DNAME: "DNAME";
|
|
42
|
+
SINK: "SINK";
|
|
43
|
+
OPT: "OPT";
|
|
44
|
+
APL: "APL";
|
|
45
|
+
DS: "DS";
|
|
46
|
+
SSHFP: "SSHFP";
|
|
47
|
+
IPSECKEY: "IPSECKEY";
|
|
48
|
+
RRSIG: "RRSIG";
|
|
49
|
+
NSEC: "NSEC";
|
|
50
|
+
DNSKEY: "DNSKEY";
|
|
51
|
+
DHCID: "DHCID";
|
|
52
|
+
NSEC3: "NSEC3";
|
|
53
|
+
NSEC3PARAM: "NSEC3PARAM";
|
|
54
|
+
TLSA: "TLSA";
|
|
55
|
+
SMIMEA: "SMIMEA";
|
|
56
|
+
HIP: "HIP";
|
|
57
|
+
NINFO: "NINFO";
|
|
58
|
+
RKEY: "RKEY";
|
|
59
|
+
TALINK: "TALINK";
|
|
60
|
+
CDS: "CDS";
|
|
61
|
+
CDNSKEY: "CDNSKEY";
|
|
62
|
+
OPENPGPKEY: "OPENPGPKEY";
|
|
63
|
+
CSYNC: "CSYNC";
|
|
64
|
+
ZONEMD: "ZONEMD";
|
|
65
|
+
SVCB: "SVCB";
|
|
66
|
+
HTTPS: "HTTPS";
|
|
67
|
+
SPF: "SPF";
|
|
68
|
+
UINFO: "UINFO";
|
|
69
|
+
UID: "UID";
|
|
70
|
+
GID: "GID";
|
|
71
|
+
UNSPEC: "UNSPEC";
|
|
72
|
+
NID: "NID";
|
|
73
|
+
L32: "L32";
|
|
74
|
+
L64: "L64";
|
|
75
|
+
LP: "LP";
|
|
76
|
+
EUI48: "EUI48";
|
|
77
|
+
EUI64: "EUI64";
|
|
78
|
+
NXNAME: "NXNAME";
|
|
79
|
+
TKEY: "TKEY";
|
|
80
|
+
TSIG: "TSIG";
|
|
81
|
+
IXFR: "IXFR";
|
|
82
|
+
AXFR: "AXFR";
|
|
83
|
+
MAILB: "MAILB";
|
|
84
|
+
MAILA: "MAILA";
|
|
85
|
+
"*": "*";
|
|
86
|
+
URI: "URI";
|
|
87
|
+
CAA: "CAA";
|
|
88
|
+
AVC: "AVC";
|
|
89
|
+
DOA: "DOA";
|
|
90
|
+
AMTRELAY: "AMTRELAY";
|
|
91
|
+
RESINFO: "RESINFO";
|
|
92
|
+
WALLET: "WALLET";
|
|
93
|
+
CLA: "CLA";
|
|
94
|
+
IPN: "IPN";
|
|
95
|
+
TA: "TA";
|
|
96
|
+
DLV: "DLV";
|
|
97
|
+
XYOA: "XYOA";
|
|
98
|
+
XYOH: "XYOH";
|
|
99
|
+
}>;
|
|
100
|
+
export type DNSResourceRecordType = z.infer<typeof DNSResourceRecordTypeZod>;
|
|
101
|
+
export declare const DNSResourceRecordTypes: Readonly<Record<DNSResourceRecordType, number>>;
|
|
102
|
+
export declare const DNSResourceRecordTypeValueZod: z.ZodMiniNumber<number>;
|
|
103
|
+
export type DNSResourceRecordTypeValue = (typeof DNSResourceRecordTypes)[keyof typeof DNSResourceRecordTypes];
|
|
104
|
+
export declare const findDNSResourceRecordTypesByValue: (value: DNSResourceRecordTypeValue) => DNSResourceRecordType | undefined;
|
|
105
|
+
//# sourceMappingURL=ResourceRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceRecord.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/ResourceRecord.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkGnC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAkHlF,CAAA;AAED,eAAO,MAAM,6BAA6B,yBAAa,CAAA;AAEvD,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAE7G,eAAO,MAAM,iCAAiC,GAAI,OAAO,0BAA0B,KAAG,qBAAqB,GAAG,SAS7G,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const DNSResponseFieldsZod: z.ZodMiniObject<{
|
|
3
|
+
ID: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
4
|
+
RD: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
5
|
+
RCODE: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<3>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>, z.ZodMiniLiteral<7>, z.ZodMiniLiteral<8>, z.ZodMiniLiteral<9>, z.ZodMiniLiteral<10>, z.ZodMiniLiteral<16>, z.ZodMiniLiteral<17>, z.ZodMiniLiteral<18>]>>;
|
|
6
|
+
QDCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
7
|
+
ANCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
8
|
+
NSCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
9
|
+
ARCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
10
|
+
QR: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>]>;
|
|
11
|
+
Opcode: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>;
|
|
12
|
+
AA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
13
|
+
TC: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
14
|
+
RA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
15
|
+
Question: z.ZodMiniArray<z.ZodMiniObject<{
|
|
16
|
+
name: z.ZodMiniString<string>;
|
|
17
|
+
type: z.ZodMiniNumber<number>;
|
|
18
|
+
class: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
Answer: z.ZodMiniArray<z.ZodMiniObject<{
|
|
21
|
+
name: z.ZodMiniString<string>;
|
|
22
|
+
type: z.ZodMiniNumber<number>;
|
|
23
|
+
TTL: z.ZodMiniNumber<number>;
|
|
24
|
+
data: z.ZodMiniString<string>;
|
|
25
|
+
class: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
Authority: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
28
|
+
name: z.ZodMiniString<string>;
|
|
29
|
+
type: z.ZodMiniNumber<number>;
|
|
30
|
+
TTL: z.ZodMiniNumber<number>;
|
|
31
|
+
data: z.ZodMiniString<string>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
Additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
34
|
+
name: z.ZodMiniString<string>;
|
|
35
|
+
type: z.ZodMiniNumber<number>;
|
|
36
|
+
TTL: z.ZodMiniNumber<number>;
|
|
37
|
+
data: z.ZodMiniString<string>;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type DNSResponseFields = z.infer<typeof DNSResponseFieldsZod>;
|
|
41
|
+
//# sourceMappingURL=Response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/Response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAO7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const DNSRcodeZod: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<3>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>, z.ZodMiniLiteral<7>, z.ZodMiniLiteral<8>, z.ZodMiniLiteral<9>, z.ZodMiniLiteral<10>, z.ZodMiniLiteral<16>, z.ZodMiniLiteral<17>, z.ZodMiniLiteral<18>]>;
|
|
3
|
+
export type DNSRcode = z.infer<typeof DNSRcodeZod>;
|
|
4
|
+
export declare const DNSRcodeNameZod: z.ZodMiniEnum<{
|
|
5
|
+
NOERROR: "NOERROR";
|
|
6
|
+
FORMERR: "FORMERR";
|
|
7
|
+
SERVFAIL: "SERVFAIL";
|
|
8
|
+
NXDOMAIN: "NXDOMAIN";
|
|
9
|
+
NOTIMP: "NOTIMP";
|
|
10
|
+
REFUSED: "REFUSED";
|
|
11
|
+
YXDOMAIN: "YXDOMAIN";
|
|
12
|
+
YXRRSET: "YXRRSET";
|
|
13
|
+
NXRRSET: "NXRRSET";
|
|
14
|
+
NOTAUTH: "NOTAUTH";
|
|
15
|
+
NOTZONE: "NOTZONE";
|
|
16
|
+
BADSIG: "BADSIG";
|
|
17
|
+
BADKEY: "BADKEY";
|
|
18
|
+
BADTIME: "BADTIME";
|
|
19
|
+
}>;
|
|
20
|
+
export type DNSRcodeName = z.infer<typeof DNSRcodeNameZod>;
|
|
21
|
+
export declare const DNSRcodes: Readonly<Record<DNSRcodeName, DNSRcode>>;
|
|
22
|
+
//# sourceMappingURL=ResponseCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseCodes.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/ResponseCodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,WAAW,qUAetB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAe1B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,CAe9D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
2
|
export type DomainSchema = typeof DomainSchema;
|
|
3
3
|
export declare const DomainSchema: "network.xyo.ns.domain" & {
|
|
4
4
|
readonly __schema: true;
|
|
@@ -6,34 +6,67 @@ export declare const DomainSchema: "network.xyo.ns.domain" & {
|
|
|
6
6
|
/**
|
|
7
7
|
* The supported TLDs for XNS
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export declare const TopLevelDomainZod: z.ZodMiniLiteral<"xyo">;
|
|
10
|
+
export type TopLevelDomain = z.infer<typeof TopLevelDomainZod>;
|
|
10
11
|
/**
|
|
11
12
|
* The fields for a domain record
|
|
12
13
|
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The Top-Level Domain of the domain
|
|
20
|
-
*/
|
|
21
|
-
tld: TopLevelDomain;
|
|
22
|
-
}
|
|
14
|
+
export declare const DomainFieldsZod: z.ZodMiniObject<{
|
|
15
|
+
domain: z.ZodMiniString<string>;
|
|
16
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type DomainFields = z.infer<typeof DomainFieldsZod>;
|
|
23
19
|
/**
|
|
24
20
|
* A domain record is a record of a domain
|
|
25
21
|
*/
|
|
26
|
-
export
|
|
22
|
+
export declare const DomainZod: z.ZodMiniObject<{
|
|
23
|
+
schema: z.ZodMiniLiteral<"network.xyo.ns.domain" & {
|
|
24
|
+
readonly __schema: true;
|
|
25
|
+
}>;
|
|
26
|
+
domain: z.ZodMiniString<string>;
|
|
27
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type Domain = z.infer<typeof DomainZod>;
|
|
27
30
|
/**
|
|
28
31
|
* Identity function for Domain payload
|
|
29
32
|
*/
|
|
30
|
-
export declare const isDomain: (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare const
|
|
38
|
-
|
|
33
|
+
export declare const isDomain: <T>(value: T) => value is T & {
|
|
34
|
+
schema: "network.xyo.ns.domain" & {
|
|
35
|
+
readonly __schema: true;
|
|
36
|
+
};
|
|
37
|
+
domain: string;
|
|
38
|
+
tld: "xyo";
|
|
39
|
+
};
|
|
40
|
+
export declare const asDomain: {
|
|
41
|
+
<T>(value: T): (T & {
|
|
42
|
+
schema: "network.xyo.ns.domain" & {
|
|
43
|
+
readonly __schema: true;
|
|
44
|
+
};
|
|
45
|
+
domain: string;
|
|
46
|
+
tld: "xyo";
|
|
47
|
+
}) | undefined;
|
|
48
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
49
|
+
schema: "network.xyo.ns.domain" & {
|
|
50
|
+
readonly __schema: true;
|
|
51
|
+
};
|
|
52
|
+
domain: string;
|
|
53
|
+
tld: "xyo";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const toDomain: {
|
|
57
|
+
<T>(value: T): (T & {
|
|
58
|
+
schema: "network.xyo.ns.domain" & {
|
|
59
|
+
readonly __schema: true;
|
|
60
|
+
};
|
|
61
|
+
domain: string;
|
|
62
|
+
tld: "xyo";
|
|
63
|
+
}) | undefined;
|
|
64
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
65
|
+
schema: "network.xyo.ns.domain" & {
|
|
66
|
+
readonly __schema: true;
|
|
67
|
+
};
|
|
68
|
+
domain: string;
|
|
69
|
+
tld: "xyo";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
39
72
|
//# sourceMappingURL=Domain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA;AAC9C,eAAO,MAAM,YAAY;;CAA0C,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,iBAAiB,yBAAmB,CAAA;AAEjD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe;;;iBAU1B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;iBAA2E,CAAA;AAEjG,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAE9C;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;CAA0B,CAAA;AAC/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAAsC,CAAA;AAC3D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAAsC,CAAA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { DurationFields } from '../Duration/index.ts';
|
|
3
|
-
import type { DomainFields } from './Domain.ts';
|
|
1
|
+
import * as z from 'zod/mini';
|
|
4
2
|
export type DomainLeaseSchema = typeof DomainLeaseSchema;
|
|
5
3
|
export declare const DomainLeaseSchema: "network.xyo.ns.domain.lease" & {
|
|
6
4
|
readonly __schema: true;
|
|
@@ -8,22 +6,76 @@ export declare const DomainLeaseSchema: "network.xyo.ns.domain.lease" & {
|
|
|
8
6
|
/**
|
|
9
7
|
* A domain is leased for a duration
|
|
10
8
|
*/
|
|
11
|
-
export
|
|
12
|
-
|
|
9
|
+
export declare const DomainLeaseFieldsZod: z.ZodMiniObject<{
|
|
10
|
+
exp: z.ZodMiniNumber<number>;
|
|
11
|
+
nbf: z.ZodMiniNumber<number>;
|
|
12
|
+
domain: z.ZodMiniString<string>;
|
|
13
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type DomainLeaseFields = z.infer<typeof DomainLeaseFieldsZod>;
|
|
13
16
|
/**
|
|
14
17
|
* A domain lease is a record of a domain and the duration it is leased for
|
|
15
18
|
*/
|
|
16
|
-
export
|
|
19
|
+
export declare const DomainLeaseZod: z.ZodMiniObject<{
|
|
20
|
+
schema: z.ZodMiniLiteral<"network.xyo.ns.domain.lease" & {
|
|
21
|
+
readonly __schema: true;
|
|
22
|
+
}>;
|
|
23
|
+
exp: z.ZodMiniNumber<number>;
|
|
24
|
+
nbf: z.ZodMiniNumber<number>;
|
|
25
|
+
domain: z.ZodMiniString<string>;
|
|
26
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type DomainLease = z.infer<typeof DomainLeaseZod>;
|
|
17
29
|
/**
|
|
18
30
|
* Identity function for DomainLease payload
|
|
19
31
|
*/
|
|
20
|
-
export declare const isDomainLease: (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
export declare const isDomainLease: <T>(value: T) => value is T & {
|
|
33
|
+
schema: "network.xyo.ns.domain.lease" & {
|
|
34
|
+
readonly __schema: true;
|
|
35
|
+
};
|
|
36
|
+
exp: number;
|
|
37
|
+
nbf: number;
|
|
38
|
+
domain: string;
|
|
39
|
+
tld: "xyo";
|
|
40
|
+
};
|
|
41
|
+
export declare const asDomainLease: {
|
|
42
|
+
<T>(value: T): (T & {
|
|
43
|
+
schema: "network.xyo.ns.domain.lease" & {
|
|
44
|
+
readonly __schema: true;
|
|
45
|
+
};
|
|
46
|
+
exp: number;
|
|
47
|
+
nbf: number;
|
|
48
|
+
domain: string;
|
|
49
|
+
tld: "xyo";
|
|
50
|
+
}) | undefined;
|
|
51
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
52
|
+
schema: "network.xyo.ns.domain.lease" & {
|
|
53
|
+
readonly __schema: true;
|
|
54
|
+
};
|
|
55
|
+
exp: number;
|
|
56
|
+
nbf: number;
|
|
57
|
+
domain: string;
|
|
58
|
+
tld: "xyo";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const toDomainLease: {
|
|
62
|
+
<T>(value: T): (T & {
|
|
63
|
+
schema: "network.xyo.ns.domain.lease" & {
|
|
64
|
+
readonly __schema: true;
|
|
65
|
+
};
|
|
66
|
+
exp: number;
|
|
67
|
+
nbf: number;
|
|
68
|
+
domain: string;
|
|
69
|
+
tld: "xyo";
|
|
70
|
+
}) | undefined;
|
|
71
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
72
|
+
schema: "network.xyo.ns.domain.lease" & {
|
|
73
|
+
readonly __schema: true;
|
|
74
|
+
};
|
|
75
|
+
exp: number;
|
|
76
|
+
nbf: number;
|
|
77
|
+
domain: string;
|
|
78
|
+
tld: "xyo";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
29
81
|
//# sourceMappingURL=DomainLease.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AACxD,eAAO,MAAM,iBAAiB;;CAAgD,CAAA;AAE9E;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;iBAG/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;iBAAqF,CAAA;AAEhH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;CAA+B,CAAA;AACzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
|
|
@@ -1,34 +1,134 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Payload, WithSources } from '@xyo-network/sdk-js';
|
|
3
|
-
import type { DomainFields } from '../Domain/index.ts';
|
|
1
|
+
import * as z from 'zod/mini';
|
|
4
2
|
export declare const DomainRegistrationSchema: string & {
|
|
5
3
|
readonly __schema: true;
|
|
6
4
|
};
|
|
7
5
|
export type DomainRegistrationSchema = typeof DomainRegistrationSchema;
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
export declare const DomainRegistrationFieldsZod: z.ZodMiniObject<{
|
|
7
|
+
registrant: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
8
|
+
readonly __hex: true;
|
|
9
|
+
} & {
|
|
10
|
+
readonly __address: true;
|
|
11
|
+
}, string>>>;
|
|
12
|
+
registrar: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
13
|
+
readonly __hex: true;
|
|
14
|
+
} & {
|
|
15
|
+
readonly __address: true;
|
|
16
|
+
}, string>>>;
|
|
17
|
+
domain: z.ZodMiniString<string>;
|
|
18
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type DomainRegistrationFields = z.infer<typeof DomainRegistrationFieldsZod>;
|
|
18
21
|
/**
|
|
19
22
|
* Delegation of a domain to a registrar by a registrant
|
|
20
23
|
*/
|
|
21
|
-
export
|
|
24
|
+
export declare const DomainRegistrationZod: z.ZodMiniObject<{
|
|
25
|
+
schema: z.ZodMiniLiteral<string & {
|
|
26
|
+
readonly __schema: true;
|
|
27
|
+
}>;
|
|
28
|
+
registrant: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
29
|
+
readonly __hex: true;
|
|
30
|
+
} & {
|
|
31
|
+
readonly __address: true;
|
|
32
|
+
}, string>>>;
|
|
33
|
+
registrar: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
34
|
+
readonly __hex: true;
|
|
35
|
+
} & {
|
|
36
|
+
readonly __address: true;
|
|
37
|
+
}, string>>>;
|
|
38
|
+
domain: z.ZodMiniString<string>;
|
|
39
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type DomainRegistration = z.infer<typeof DomainRegistrationZod>;
|
|
22
42
|
/**
|
|
23
43
|
* Identity function for DomainRegistration payload
|
|
24
44
|
*/
|
|
25
|
-
export declare const isDomainRegistration: (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
export declare const isDomainRegistration: <T>(value: T) => value is T & {
|
|
46
|
+
schema: string & {
|
|
47
|
+
readonly __schema: true;
|
|
48
|
+
};
|
|
49
|
+
registrant: (Lowercase<string> & {
|
|
50
|
+
readonly __hex: true;
|
|
51
|
+
} & {
|
|
52
|
+
readonly __address: true;
|
|
53
|
+
})[];
|
|
54
|
+
registrar: (Lowercase<string> & {
|
|
55
|
+
readonly __hex: true;
|
|
56
|
+
} & {
|
|
57
|
+
readonly __address: true;
|
|
58
|
+
})[];
|
|
59
|
+
domain: string;
|
|
60
|
+
tld: "xyo";
|
|
61
|
+
};
|
|
62
|
+
export declare const asDomainRegistration: {
|
|
63
|
+
<T>(value: T): (T & {
|
|
64
|
+
schema: string & {
|
|
65
|
+
readonly __schema: true;
|
|
66
|
+
};
|
|
67
|
+
registrant: (Lowercase<string> & {
|
|
68
|
+
readonly __hex: true;
|
|
69
|
+
} & {
|
|
70
|
+
readonly __address: true;
|
|
71
|
+
})[];
|
|
72
|
+
registrar: (Lowercase<string> & {
|
|
73
|
+
readonly __hex: true;
|
|
74
|
+
} & {
|
|
75
|
+
readonly __address: true;
|
|
76
|
+
})[];
|
|
77
|
+
domain: string;
|
|
78
|
+
tld: "xyo";
|
|
79
|
+
}) | undefined;
|
|
80
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
81
|
+
schema: string & {
|
|
82
|
+
readonly __schema: true;
|
|
83
|
+
};
|
|
84
|
+
registrant: (Lowercase<string> & {
|
|
85
|
+
readonly __hex: true;
|
|
86
|
+
} & {
|
|
87
|
+
readonly __address: true;
|
|
88
|
+
})[];
|
|
89
|
+
registrar: (Lowercase<string> & {
|
|
90
|
+
readonly __hex: true;
|
|
91
|
+
} & {
|
|
92
|
+
readonly __address: true;
|
|
93
|
+
})[];
|
|
94
|
+
domain: string;
|
|
95
|
+
tld: "xyo";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export declare const toDomainRegistration: {
|
|
99
|
+
<T>(value: T): (T & {
|
|
100
|
+
schema: string & {
|
|
101
|
+
readonly __schema: true;
|
|
102
|
+
};
|
|
103
|
+
registrant: (Lowercase<string> & {
|
|
104
|
+
readonly __hex: true;
|
|
105
|
+
} & {
|
|
106
|
+
readonly __address: true;
|
|
107
|
+
})[];
|
|
108
|
+
registrar: (Lowercase<string> & {
|
|
109
|
+
readonly __hex: true;
|
|
110
|
+
} & {
|
|
111
|
+
readonly __address: true;
|
|
112
|
+
})[];
|
|
113
|
+
domain: string;
|
|
114
|
+
tld: "xyo";
|
|
115
|
+
}) | undefined;
|
|
116
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
117
|
+
schema: string & {
|
|
118
|
+
readonly __schema: true;
|
|
119
|
+
};
|
|
120
|
+
registrant: (Lowercase<string> & {
|
|
121
|
+
readonly __hex: true;
|
|
122
|
+
} & {
|
|
123
|
+
readonly __address: true;
|
|
124
|
+
})[];
|
|
125
|
+
registrar: (Lowercase<string> & {
|
|
126
|
+
readonly __hex: true;
|
|
127
|
+
} & {
|
|
128
|
+
readonly __address: true;
|
|
129
|
+
})[];
|
|
130
|
+
domain: string;
|
|
131
|
+
tld: "xyo";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
34
134
|
//# sourceMappingURL=DomainRegistration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainRegistration.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DomainRegistration.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,wBAAwB;;CAAiD,CAAA;AACtF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAUtC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAAmG,CAAA;AAErI,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAAsC,CAAA;AACvE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8D,CAAA;AAC/F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8D,CAAA"}
|