@xyo-network/xns-record-payload-plugins 6.1.0 → 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/dist/neutral/Address/Payload.d.ts +88 -11
- package/dist/neutral/Address/Payload.d.ts.map +1 -1
- package/dist/neutral/{DNS → Dns}/Witness/Config.d.ts.map +1 -1
- package/dist/neutral/{DNS → Dns}/Witness/Params.d.ts.map +1 -1
- package/dist/neutral/{DNS → 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/neutral/{DNS → Dns}/Witness/Payload/index.d.ts.map +1 -1
- package/dist/neutral/{DNS → 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 +17 -17
- 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/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 → Dns}/Witness/Config.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/Witness/Params.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/Witness/Payload/Payload.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/Witness/Payload/index.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/Witness/Schema.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/Witness/index.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/index.d.ts +0 -0
- /package/dist/neutral/{DNS → Dns}/types/index.d.ts +0 -0
|
@@ -1,19 +1,96 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Payload } from '@xyo-network/sdk-js';
|
|
3
|
-
import type { DomainFields } from '../Domain/index.ts';
|
|
1
|
+
import * as z from 'zod/mini';
|
|
4
2
|
export type AddressRecordSchema = typeof AddressRecordSchema;
|
|
5
3
|
export declare const AddressRecordSchema: "network.xyo.ns.record.address" & {
|
|
6
4
|
readonly __schema: true;
|
|
7
5
|
};
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
6
|
+
export declare const AddressRecordFieldsZod: z.ZodMiniObject<{
|
|
7
|
+
address: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
8
|
+
readonly __hex: true;
|
|
9
|
+
} & {
|
|
10
|
+
readonly __address: true;
|
|
11
|
+
}, string>>>;
|
|
12
|
+
domain: z.ZodMiniString<string>;
|
|
13
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type AddressRecordFields = z.infer<typeof AddressRecordFieldsZod>;
|
|
14
16
|
/**
|
|
15
17
|
* An address record points a domain to an address
|
|
16
18
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
+
export declare const AddressRecordZod: z.ZodMiniObject<{
|
|
20
|
+
schema: z.ZodMiniLiteral<"network.xyo.ns.record.address" & {
|
|
21
|
+
readonly __schema: true;
|
|
22
|
+
}>;
|
|
23
|
+
address: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
24
|
+
readonly __hex: true;
|
|
25
|
+
} & {
|
|
26
|
+
readonly __address: true;
|
|
27
|
+
}, string>>>;
|
|
28
|
+
domain: z.ZodMiniString<string>;
|
|
29
|
+
tld: z.ZodMiniLiteral<"xyo">;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type AddressRecord = z.infer<typeof AddressRecordZod>;
|
|
32
|
+
export declare const isAddressRecord: <T>(value: T) => value is T & {
|
|
33
|
+
schema: "network.xyo.ns.record.address" & {
|
|
34
|
+
readonly __schema: true;
|
|
35
|
+
};
|
|
36
|
+
address: (Lowercase<string> & {
|
|
37
|
+
readonly __hex: true;
|
|
38
|
+
} & {
|
|
39
|
+
readonly __address: true;
|
|
40
|
+
})[];
|
|
41
|
+
domain: string;
|
|
42
|
+
tld: "xyo";
|
|
43
|
+
};
|
|
44
|
+
export declare const asAddressRecord: {
|
|
45
|
+
<T>(value: T): (T & {
|
|
46
|
+
schema: "network.xyo.ns.record.address" & {
|
|
47
|
+
readonly __schema: true;
|
|
48
|
+
};
|
|
49
|
+
address: (Lowercase<string> & {
|
|
50
|
+
readonly __hex: true;
|
|
51
|
+
} & {
|
|
52
|
+
readonly __address: true;
|
|
53
|
+
})[];
|
|
54
|
+
domain: string;
|
|
55
|
+
tld: "xyo";
|
|
56
|
+
}) | undefined;
|
|
57
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
58
|
+
schema: "network.xyo.ns.record.address" & {
|
|
59
|
+
readonly __schema: true;
|
|
60
|
+
};
|
|
61
|
+
address: (Lowercase<string> & {
|
|
62
|
+
readonly __hex: true;
|
|
63
|
+
} & {
|
|
64
|
+
readonly __address: true;
|
|
65
|
+
})[];
|
|
66
|
+
domain: string;
|
|
67
|
+
tld: "xyo";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const toAddressRecord: {
|
|
71
|
+
<T>(value: T): (T & {
|
|
72
|
+
schema: "network.xyo.ns.record.address" & {
|
|
73
|
+
readonly __schema: true;
|
|
74
|
+
};
|
|
75
|
+
address: (Lowercase<string> & {
|
|
76
|
+
readonly __hex: true;
|
|
77
|
+
} & {
|
|
78
|
+
readonly __address: true;
|
|
79
|
+
})[];
|
|
80
|
+
domain: string;
|
|
81
|
+
tld: "xyo";
|
|
82
|
+
}) | undefined;
|
|
83
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
84
|
+
schema: "network.xyo.ns.record.address" & {
|
|
85
|
+
readonly __schema: true;
|
|
86
|
+
};
|
|
87
|
+
address: (Lowercase<string> & {
|
|
88
|
+
readonly __hex: true;
|
|
89
|
+
} & {
|
|
90
|
+
readonly __address: true;
|
|
91
|
+
})[];
|
|
92
|
+
domain: string;
|
|
93
|
+
tld: "xyo";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
19
96
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Address/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Address/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAC5D,eAAO,MAAM,mBAAmB;;CAAkD,CAAA;AAElF,eAAO,MAAM,sBAAsB;;;;;;;;iBAMjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAAyF,CAAA;AAEtH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;CAAiC,CAAA;AAC7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../../src/Dns/Witness/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAG1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAG9D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAgD,CAAA;AAEnF,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;IAC3C;;OAEG;IACH,yBAAyB,CAAC,EAAE,gBAAgB,CAAA;IAC5C;;OAEG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;IACzC;;OAEG;IACH,MAAM,EAAE,sBAAsB,CAAA;IAC9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,qBAAqB,EAAE,CAAA;CAC7C,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../../src/Dns/Witness/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Dns/Witness/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,MAAM,GAAG,GAAG,UAAU,GAAG,WAAW,CAAA"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
import type { DNSResourceRecordTypeValue } from '../../types/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The fields of a DNSRequest payload
|
|
5
|
+
*/
|
|
6
|
+
export declare const DNSRequestZod: z.ZodMiniObject<{
|
|
7
|
+
schema: z.ZodMiniLiteral<"network.xyo.dns" & {
|
|
8
|
+
readonly __schema: true;
|
|
9
|
+
}>;
|
|
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 DNSRequest = z.infer<typeof DNSRequestZod>;
|
|
28
|
+
/**
|
|
29
|
+
* Identity function for determining if an object is a DNSRequest payload
|
|
30
|
+
*/
|
|
31
|
+
export declare const isDNSRequest: <T>(value: T) => value is T & {
|
|
32
|
+
schema: "network.xyo.dns" & {
|
|
33
|
+
readonly __schema: true;
|
|
34
|
+
};
|
|
35
|
+
QR: false | 0;
|
|
36
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
37
|
+
AA: false | 0;
|
|
38
|
+
TC: false | 0;
|
|
39
|
+
RCODE: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18;
|
|
40
|
+
ANCOUNT: 0;
|
|
41
|
+
NSCOUNT: 0;
|
|
42
|
+
ARCOUNT: 0;
|
|
43
|
+
Question: {
|
|
44
|
+
name: string;
|
|
45
|
+
type: number;
|
|
46
|
+
class?: number | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
ID?: number | undefined;
|
|
49
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
50
|
+
QDCOUNT?: number | undefined;
|
|
51
|
+
};
|
|
52
|
+
export declare const asDNSRequest: {
|
|
53
|
+
<T>(value: T): (T & {
|
|
54
|
+
schema: "network.xyo.dns" & {
|
|
55
|
+
readonly __schema: true;
|
|
56
|
+
};
|
|
57
|
+
QR: false | 0;
|
|
58
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
59
|
+
AA: false | 0;
|
|
60
|
+
TC: false | 0;
|
|
61
|
+
RCODE: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18;
|
|
62
|
+
ANCOUNT: 0;
|
|
63
|
+
NSCOUNT: 0;
|
|
64
|
+
ARCOUNT: 0;
|
|
65
|
+
Question: {
|
|
66
|
+
name: string;
|
|
67
|
+
type: number;
|
|
68
|
+
class?: number | undefined;
|
|
69
|
+
}[];
|
|
70
|
+
ID?: number | undefined;
|
|
71
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
72
|
+
QDCOUNT?: number | undefined;
|
|
73
|
+
}) | undefined;
|
|
74
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
75
|
+
schema: "network.xyo.dns" & {
|
|
76
|
+
readonly __schema: true;
|
|
77
|
+
};
|
|
78
|
+
QR: false | 0;
|
|
79
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
80
|
+
AA: false | 0;
|
|
81
|
+
TC: false | 0;
|
|
82
|
+
RCODE: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18;
|
|
83
|
+
ANCOUNT: 0;
|
|
84
|
+
NSCOUNT: 0;
|
|
85
|
+
ARCOUNT: 0;
|
|
86
|
+
Question: {
|
|
87
|
+
name: string;
|
|
88
|
+
type: number;
|
|
89
|
+
class?: number | undefined;
|
|
90
|
+
}[];
|
|
91
|
+
ID?: number | undefined;
|
|
92
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
93
|
+
QDCOUNT?: number | undefined;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const toDNSRequest: {
|
|
97
|
+
<T>(value: T): (T & {
|
|
98
|
+
schema: "network.xyo.dns" & {
|
|
99
|
+
readonly __schema: true;
|
|
100
|
+
};
|
|
101
|
+
QR: false | 0;
|
|
102
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
103
|
+
AA: false | 0;
|
|
104
|
+
TC: false | 0;
|
|
105
|
+
RCODE: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18;
|
|
106
|
+
ANCOUNT: 0;
|
|
107
|
+
NSCOUNT: 0;
|
|
108
|
+
ARCOUNT: 0;
|
|
109
|
+
Question: {
|
|
110
|
+
name: string;
|
|
111
|
+
type: number;
|
|
112
|
+
class?: number | undefined;
|
|
113
|
+
}[];
|
|
114
|
+
ID?: number | undefined;
|
|
115
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
116
|
+
QDCOUNT?: number | undefined;
|
|
117
|
+
}) | undefined;
|
|
118
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
119
|
+
schema: "network.xyo.dns" & {
|
|
120
|
+
readonly __schema: true;
|
|
121
|
+
};
|
|
122
|
+
QR: false | 0;
|
|
123
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
124
|
+
AA: false | 0;
|
|
125
|
+
TC: false | 0;
|
|
126
|
+
RCODE: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18;
|
|
127
|
+
ANCOUNT: 0;
|
|
128
|
+
NSCOUNT: 0;
|
|
129
|
+
ARCOUNT: 0;
|
|
130
|
+
Question: {
|
|
131
|
+
name: string;
|
|
132
|
+
type: number;
|
|
133
|
+
class?: number | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
ID?: number | undefined;
|
|
136
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
137
|
+
QDCOUNT?: number | undefined;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Helper for generating a DNSRequest payload for a given domain and record type
|
|
142
|
+
* @param domain The domain to query
|
|
143
|
+
* @param type The record type to query
|
|
144
|
+
* @returns A DNSRequest payload
|
|
145
|
+
*/
|
|
146
|
+
export declare const getDnsRequestFor: (domain: string, type?: DNSResourceRecordTypeValue) => DNSRequest;
|
|
147
|
+
//# sourceMappingURL=Request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/Dns/Witness/Payload/Request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AAMtE;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;iBAA4E,CAAA;AAEtG,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAA8B,CAAA;AACvD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8C,CAAA;AACvE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8C,CAAA;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,OAAM,0BAAqD,KAAG,UAE9G,CAAA"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
/**
|
|
3
|
+
* The fields of a DNSResponse payload
|
|
4
|
+
*/
|
|
5
|
+
export declare const DNSResponseZod: z.ZodMiniObject<{
|
|
6
|
+
schema: z.ZodMiniLiteral<"network.xyo.dns" & {
|
|
7
|
+
readonly __schema: true;
|
|
8
|
+
}>;
|
|
9
|
+
ID: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
10
|
+
RD: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
11
|
+
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>]>>;
|
|
12
|
+
QDCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
13
|
+
ANCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
14
|
+
NSCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
15
|
+
ARCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
16
|
+
QR: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>]>;
|
|
17
|
+
Opcode: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>;
|
|
18
|
+
AA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
19
|
+
TC: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
20
|
+
RA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
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
|
+
Answer: z.ZodMiniArray<z.ZodMiniObject<{
|
|
27
|
+
name: z.ZodMiniString<string>;
|
|
28
|
+
type: z.ZodMiniNumber<number>;
|
|
29
|
+
TTL: z.ZodMiniNumber<number>;
|
|
30
|
+
data: z.ZodMiniString<string>;
|
|
31
|
+
class: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
Authority: 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
|
+
Additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
40
|
+
name: z.ZodMiniString<string>;
|
|
41
|
+
type: z.ZodMiniNumber<number>;
|
|
42
|
+
TTL: z.ZodMiniNumber<number>;
|
|
43
|
+
data: z.ZodMiniString<string>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type DNSResponse = z.infer<typeof DNSResponseZod>;
|
|
47
|
+
/**
|
|
48
|
+
* Identity function for determining if an object is a DNSResponse payload
|
|
49
|
+
*/
|
|
50
|
+
export declare const isDNSResponse: <T>(value: T) => value is T & {
|
|
51
|
+
schema: "network.xyo.dns" & {
|
|
52
|
+
readonly __schema: true;
|
|
53
|
+
};
|
|
54
|
+
QR: true | 1;
|
|
55
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
56
|
+
AA: boolean | 0 | 1;
|
|
57
|
+
TC: boolean | 0 | 1;
|
|
58
|
+
RA: boolean | 0 | 1;
|
|
59
|
+
Question: {
|
|
60
|
+
name: string;
|
|
61
|
+
type: number;
|
|
62
|
+
class?: number | undefined;
|
|
63
|
+
}[];
|
|
64
|
+
Answer: {
|
|
65
|
+
name: string;
|
|
66
|
+
type: number;
|
|
67
|
+
TTL: number;
|
|
68
|
+
data: string;
|
|
69
|
+
class?: number | undefined;
|
|
70
|
+
}[];
|
|
71
|
+
ID?: number | undefined;
|
|
72
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
73
|
+
RCODE?: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | undefined;
|
|
74
|
+
QDCOUNT?: number | undefined;
|
|
75
|
+
ANCOUNT?: number | undefined;
|
|
76
|
+
NSCOUNT?: number | undefined;
|
|
77
|
+
ARCOUNT?: number | undefined;
|
|
78
|
+
Authority?: {
|
|
79
|
+
name: string;
|
|
80
|
+
type: number;
|
|
81
|
+
TTL: number;
|
|
82
|
+
data: string;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
Additional?: {
|
|
85
|
+
name: string;
|
|
86
|
+
type: number;
|
|
87
|
+
TTL: number;
|
|
88
|
+
data: string;
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
};
|
|
91
|
+
export declare const asDNSResponse: {
|
|
92
|
+
<T>(value: T): (T & {
|
|
93
|
+
schema: "network.xyo.dns" & {
|
|
94
|
+
readonly __schema: true;
|
|
95
|
+
};
|
|
96
|
+
QR: true | 1;
|
|
97
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
98
|
+
AA: boolean | 0 | 1;
|
|
99
|
+
TC: boolean | 0 | 1;
|
|
100
|
+
RA: boolean | 0 | 1;
|
|
101
|
+
Question: {
|
|
102
|
+
name: string;
|
|
103
|
+
type: number;
|
|
104
|
+
class?: number | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
Answer: {
|
|
107
|
+
name: string;
|
|
108
|
+
type: number;
|
|
109
|
+
TTL: number;
|
|
110
|
+
data: string;
|
|
111
|
+
class?: number | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
ID?: number | undefined;
|
|
114
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
115
|
+
RCODE?: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | undefined;
|
|
116
|
+
QDCOUNT?: number | undefined;
|
|
117
|
+
ANCOUNT?: number | undefined;
|
|
118
|
+
NSCOUNT?: number | undefined;
|
|
119
|
+
ARCOUNT?: number | undefined;
|
|
120
|
+
Authority?: {
|
|
121
|
+
name: string;
|
|
122
|
+
type: number;
|
|
123
|
+
TTL: number;
|
|
124
|
+
data: string;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
Additional?: {
|
|
127
|
+
name: string;
|
|
128
|
+
type: number;
|
|
129
|
+
TTL: number;
|
|
130
|
+
data: string;
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
}) | undefined;
|
|
133
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
134
|
+
schema: "network.xyo.dns" & {
|
|
135
|
+
readonly __schema: true;
|
|
136
|
+
};
|
|
137
|
+
QR: true | 1;
|
|
138
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
139
|
+
AA: boolean | 0 | 1;
|
|
140
|
+
TC: boolean | 0 | 1;
|
|
141
|
+
RA: boolean | 0 | 1;
|
|
142
|
+
Question: {
|
|
143
|
+
name: string;
|
|
144
|
+
type: number;
|
|
145
|
+
class?: number | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
Answer: {
|
|
148
|
+
name: string;
|
|
149
|
+
type: number;
|
|
150
|
+
TTL: number;
|
|
151
|
+
data: string;
|
|
152
|
+
class?: number | undefined;
|
|
153
|
+
}[];
|
|
154
|
+
ID?: number | undefined;
|
|
155
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
156
|
+
RCODE?: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | undefined;
|
|
157
|
+
QDCOUNT?: number | undefined;
|
|
158
|
+
ANCOUNT?: number | undefined;
|
|
159
|
+
NSCOUNT?: number | undefined;
|
|
160
|
+
ARCOUNT?: number | undefined;
|
|
161
|
+
Authority?: {
|
|
162
|
+
name: string;
|
|
163
|
+
type: number;
|
|
164
|
+
TTL: number;
|
|
165
|
+
data: string;
|
|
166
|
+
}[] | undefined;
|
|
167
|
+
Additional?: {
|
|
168
|
+
name: string;
|
|
169
|
+
type: number;
|
|
170
|
+
TTL: number;
|
|
171
|
+
data: string;
|
|
172
|
+
}[] | undefined;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
export declare const toDNSResponse: {
|
|
176
|
+
<T>(value: T): (T & {
|
|
177
|
+
schema: "network.xyo.dns" & {
|
|
178
|
+
readonly __schema: true;
|
|
179
|
+
};
|
|
180
|
+
QR: true | 1;
|
|
181
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
182
|
+
AA: boolean | 0 | 1;
|
|
183
|
+
TC: boolean | 0 | 1;
|
|
184
|
+
RA: boolean | 0 | 1;
|
|
185
|
+
Question: {
|
|
186
|
+
name: string;
|
|
187
|
+
type: number;
|
|
188
|
+
class?: number | undefined;
|
|
189
|
+
}[];
|
|
190
|
+
Answer: {
|
|
191
|
+
name: string;
|
|
192
|
+
type: number;
|
|
193
|
+
TTL: number;
|
|
194
|
+
data: string;
|
|
195
|
+
class?: number | undefined;
|
|
196
|
+
}[];
|
|
197
|
+
ID?: number | undefined;
|
|
198
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
199
|
+
RCODE?: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | undefined;
|
|
200
|
+
QDCOUNT?: number | undefined;
|
|
201
|
+
ANCOUNT?: number | undefined;
|
|
202
|
+
NSCOUNT?: number | undefined;
|
|
203
|
+
ARCOUNT?: number | undefined;
|
|
204
|
+
Authority?: {
|
|
205
|
+
name: string;
|
|
206
|
+
type: number;
|
|
207
|
+
TTL: number;
|
|
208
|
+
data: string;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
Additional?: {
|
|
211
|
+
name: string;
|
|
212
|
+
type: number;
|
|
213
|
+
TTL: number;
|
|
214
|
+
data: string;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
}) | undefined;
|
|
217
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
218
|
+
schema: "network.xyo.dns" & {
|
|
219
|
+
readonly __schema: true;
|
|
220
|
+
};
|
|
221
|
+
QR: true | 1;
|
|
222
|
+
Opcode: 0 | 2 | 1 | 4 | 5 | 6;
|
|
223
|
+
AA: boolean | 0 | 1;
|
|
224
|
+
TC: boolean | 0 | 1;
|
|
225
|
+
RA: boolean | 0 | 1;
|
|
226
|
+
Question: {
|
|
227
|
+
name: string;
|
|
228
|
+
type: number;
|
|
229
|
+
class?: number | undefined;
|
|
230
|
+
}[];
|
|
231
|
+
Answer: {
|
|
232
|
+
name: string;
|
|
233
|
+
type: number;
|
|
234
|
+
TTL: number;
|
|
235
|
+
data: string;
|
|
236
|
+
class?: number | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
ID?: number | undefined;
|
|
239
|
+
RD?: boolean | 0 | 1 | undefined;
|
|
240
|
+
RCODE?: 0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | undefined;
|
|
241
|
+
QDCOUNT?: number | undefined;
|
|
242
|
+
ANCOUNT?: number | undefined;
|
|
243
|
+
NSCOUNT?: number | undefined;
|
|
244
|
+
ARCOUNT?: number | undefined;
|
|
245
|
+
Authority?: {
|
|
246
|
+
name: string;
|
|
247
|
+
type: number;
|
|
248
|
+
TTL: number;
|
|
249
|
+
data: string;
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
Additional?: {
|
|
252
|
+
name: string;
|
|
253
|
+
type: number;
|
|
254
|
+
TTL: number;
|
|
255
|
+
data: string;
|
|
256
|
+
}[] | undefined;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=Response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/Dns/Witness/Payload/Response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6E,CAAA;AAExG,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Dns/Witness/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Dns/Witness/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAA;AACxC,eAAO,MAAM,SAAS;;CAAoC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Dns/Witness/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Dns/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const DNSAnswerZod: z.ZodMiniObject<{
|
|
3
|
+
name: z.ZodMiniString<string>;
|
|
4
|
+
type: z.ZodMiniNumber<number>;
|
|
5
|
+
TTL: z.ZodMiniNumber<number>;
|
|
6
|
+
data: z.ZodMiniString<string>;
|
|
7
|
+
class: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type DNSAnswer = z.infer<typeof DNSAnswerZod>;
|
|
10
|
+
//# sourceMappingURL=Answer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Answer.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/Answer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,YAAY;;;;;;iBAA4D,CAAA;AAErF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const NumericBooleanZod: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
3
|
+
export type NumericBoolean = z.infer<typeof NumericBooleanZod>;
|
|
4
|
+
export declare const NumericBooleanFalsyZod: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
5
|
+
export type NumericBooleanFalsy = z.infer<typeof NumericBooleanFalsyZod>;
|
|
6
|
+
export declare const NumericBooleanTruthyZod: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>]>;
|
|
7
|
+
export type NumericBooleanTruthy = z.infer<typeof NumericBooleanTruthyZod>;
|
|
8
|
+
export declare const DNSHeaderZod: z.ZodMiniObject<{
|
|
9
|
+
ID: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
10
|
+
QR: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
11
|
+
Opcode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>>;
|
|
12
|
+
AA: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
13
|
+
TC: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
14
|
+
RD: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
15
|
+
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>]>>;
|
|
16
|
+
QDCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
17
|
+
ANCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
18
|
+
NSCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
19
|
+
ARCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type DNSHeader = z.infer<typeof DNSHeaderZod>;
|
|
22
|
+
export declare const DNSRequestHeaderZod: z.ZodMiniObject<{
|
|
23
|
+
ID: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
24
|
+
RD: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
25
|
+
QDCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
26
|
+
QR: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
27
|
+
Opcode: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>;
|
|
28
|
+
AA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
29
|
+
TC: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<false>]>;
|
|
30
|
+
RCODE: z.ZodMiniLiteral<0 | 2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18>;
|
|
31
|
+
ANCOUNT: z.ZodMiniLiteral<0>;
|
|
32
|
+
NSCOUNT: z.ZodMiniLiteral<0>;
|
|
33
|
+
ARCOUNT: z.ZodMiniLiteral<0>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type DNSRequestHeader = z.infer<typeof DNSRequestHeaderZod>;
|
|
36
|
+
export declare const StandardRequestHeader: Readonly<DNSRequestHeader>;
|
|
37
|
+
export declare const DNSResponseHeaderZod: z.ZodMiniObject<{
|
|
38
|
+
ID: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
39
|
+
RD: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>>;
|
|
40
|
+
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>]>>;
|
|
41
|
+
QDCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
42
|
+
ANCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
43
|
+
NSCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
44
|
+
ARCOUNT: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
45
|
+
QR: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>]>;
|
|
46
|
+
Opcode: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>, z.ZodMiniLiteral<4>, z.ZodMiniLiteral<5>, z.ZodMiniLiteral<6>]>;
|
|
47
|
+
AA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
48
|
+
TC: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
49
|
+
RA: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<true>, z.ZodMiniLiteral<false>]>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type DNSResponseHeader = z.infer<typeof DNSResponseHeaderZod>;
|
|
52
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/Dns/types/Header.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAM7B,eAAO,MAAM,iBAAiB,sHAA2E,CAAA;AACzG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,eAAO,MAAM,sBAAsB,yEAA4C,CAAA;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE,eAAO,MAAM,uBAAuB,wEAA2C,CAAA;AAC/E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE1E,eAAO,MAAM,YAAY;;;;;;;;;;;;iBA6CvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAS9B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAElE,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,gBAAgB,CAY5D,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAM/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -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"}
|