@xyo-network/xns-record-payload-plugins 3.4.1 → 3.4.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/index.d.ts +49 -399
- package/dist/neutral/index.d.ts +49 -399
- package/dist/node/index.d.ts +49 -399
- package/package.json +13 -13
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as _store__xylabs_promise_npm_4_5_1_97d36b712b_package from '.store/@xylabs-promise-npm-4.5.1-97d36b712b/package';
|
|
1
|
+
import { Address, Hash } from '@xylabs/hex';
|
|
3
2
|
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
4
3
|
import { Payload, WithSources, PayloadWithOptionalSources, PayloadWithSources } from '@xyo-network/payload-model';
|
|
5
|
-
import
|
|
4
|
+
import * as _xylabs_object from '@xylabs/object';
|
|
5
|
+
import * as _store__xylabs_promise_npm_4_5_1_97d36b712b_package from '.store/@xylabs-promise-npm-4.5.1-97d36b712b/package';
|
|
6
6
|
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
7
7
|
import { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
8
8
|
import { ModuleIdentifier, AnyConfigSchema } from '@xyo-network/module-model';
|
|
@@ -16,58 +16,18 @@ interface DomainFields {
|
|
|
16
16
|
tld: TopLevelDomain;
|
|
17
17
|
}
|
|
18
18
|
type Domain = Payload<DomainFields, DomainSchema>;
|
|
19
|
-
declare const isDomain: (x?: unknown | null) => x is
|
|
20
|
-
schema: "network.xyo.ns.domain";
|
|
21
|
-
domain: string;
|
|
22
|
-
tld: TopLevelDomain;
|
|
23
|
-
}>;
|
|
19
|
+
declare const isDomain: (x?: unknown | null) => x is Domain;
|
|
24
20
|
declare const asDomain: {
|
|
25
|
-
<TType extends _xylabs_object.
|
|
26
|
-
|
|
27
|
-
domain: string;
|
|
28
|
-
tld: TopLevelDomain;
|
|
29
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
30
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
31
|
-
schema: "network.xyo.ns.domain";
|
|
32
|
-
domain: string;
|
|
33
|
-
tld: TopLevelDomain;
|
|
34
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
35
|
-
schema: "network.xyo.ns.domain";
|
|
36
|
-
domain: string;
|
|
37
|
-
tld: TopLevelDomain;
|
|
38
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
21
|
+
<TType extends Domain>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
22
|
+
<TType extends Domain>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Domain>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
39
23
|
};
|
|
40
|
-
declare const asOptionalDomain: <TType extends
|
|
41
|
-
|
|
42
|
-
domain: string;
|
|
43
|
-
tld: TopLevelDomain;
|
|
44
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
45
|
-
declare const isDomainWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
46
|
-
schema: "network.xyo.ns.domain";
|
|
47
|
-
domain: string;
|
|
48
|
-
tld: TopLevelDomain;
|
|
49
|
-
}>>>;
|
|
24
|
+
declare const asOptionalDomain: <TType extends Domain>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
25
|
+
declare const isDomainWithSources: (x?: unknown | null) => x is WithSources<WithSources<Domain>>;
|
|
50
26
|
declare const asDomainWithSources: {
|
|
51
|
-
<TType extends WithSources<_xylabs_object.
|
|
52
|
-
|
|
53
|
-
domain: string;
|
|
54
|
-
tld: TopLevelDomain;
|
|
55
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
56
|
-
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
57
|
-
schema: "network.xyo.ns.domain";
|
|
58
|
-
domain: string;
|
|
59
|
-
tld: TopLevelDomain;
|
|
60
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
61
|
-
schema: "network.xyo.ns.domain";
|
|
62
|
-
domain: string;
|
|
63
|
-
tld: TopLevelDomain;
|
|
64
|
-
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
27
|
+
<TType extends WithSources<Domain>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
28
|
+
<TType extends WithSources<Domain>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<Domain>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
65
29
|
};
|
|
66
|
-
declare const asOptionalDomainWithSources: <TType extends WithSources<
|
|
67
|
-
schema: "network.xyo.ns.domain";
|
|
68
|
-
domain: string;
|
|
69
|
-
tld: TopLevelDomain;
|
|
70
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
30
|
+
declare const asOptionalDomainWithSources: <TType extends WithSources<Domain>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
71
31
|
|
|
72
32
|
interface DurationFields {
|
|
73
33
|
exp: number;
|
|
@@ -84,78 +44,18 @@ declare const DomainLeaseSchema: DomainLeaseSchema;
|
|
|
84
44
|
interface DomainLeaseFields extends DomainFields, DurationFields {
|
|
85
45
|
}
|
|
86
46
|
type DomainLease = Payload<DomainLeaseFields, DomainLeaseSchema>;
|
|
87
|
-
declare const isDomainLease: (x?: unknown | null) => x is
|
|
88
|
-
schema: "network.xyo.ns.domain.lease";
|
|
89
|
-
domain: string;
|
|
90
|
-
tld: TopLevelDomain;
|
|
91
|
-
exp: number;
|
|
92
|
-
nbf: number;
|
|
93
|
-
}>;
|
|
47
|
+
declare const isDomainLease: (x?: unknown | null) => x is DomainLease;
|
|
94
48
|
declare const asDomainLease: {
|
|
95
|
-
<TType extends _xylabs_object.
|
|
96
|
-
|
|
97
|
-
domain: string;
|
|
98
|
-
tld: TopLevelDomain;
|
|
99
|
-
exp: number;
|
|
100
|
-
nbf: number;
|
|
101
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
102
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
103
|
-
schema: "network.xyo.ns.domain.lease";
|
|
104
|
-
domain: string;
|
|
105
|
-
tld: TopLevelDomain;
|
|
106
|
-
exp: number;
|
|
107
|
-
nbf: number;
|
|
108
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
109
|
-
schema: "network.xyo.ns.domain.lease";
|
|
110
|
-
domain: string;
|
|
111
|
-
tld: TopLevelDomain;
|
|
112
|
-
exp: number;
|
|
113
|
-
nbf: number;
|
|
114
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
49
|
+
<TType extends DomainLease>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
50
|
+
<TType extends DomainLease>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<DomainLease>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
115
51
|
};
|
|
116
|
-
declare const asOptionalDomainLease: <TType extends
|
|
117
|
-
|
|
118
|
-
domain: string;
|
|
119
|
-
tld: TopLevelDomain;
|
|
120
|
-
exp: number;
|
|
121
|
-
nbf: number;
|
|
122
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
123
|
-
declare const isDomainLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
124
|
-
schema: "network.xyo.ns.domain.lease";
|
|
125
|
-
domain: string;
|
|
126
|
-
tld: TopLevelDomain;
|
|
127
|
-
exp: number;
|
|
128
|
-
nbf: number;
|
|
129
|
-
}>>>;
|
|
52
|
+
declare const asOptionalDomainLease: <TType extends DomainLease>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
53
|
+
declare const isDomainLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainLease>>;
|
|
130
54
|
declare const asDomainLeaseWithSources: {
|
|
131
|
-
<TType extends WithSources<_xylabs_object.
|
|
132
|
-
|
|
133
|
-
domain: string;
|
|
134
|
-
tld: TopLevelDomain;
|
|
135
|
-
exp: number;
|
|
136
|
-
nbf: number;
|
|
137
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
138
|
-
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
139
|
-
schema: "network.xyo.ns.domain.lease";
|
|
140
|
-
domain: string;
|
|
141
|
-
tld: TopLevelDomain;
|
|
142
|
-
exp: number;
|
|
143
|
-
nbf: number;
|
|
144
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
145
|
-
schema: "network.xyo.ns.domain.lease";
|
|
146
|
-
domain: string;
|
|
147
|
-
tld: TopLevelDomain;
|
|
148
|
-
exp: number;
|
|
149
|
-
nbf: number;
|
|
150
|
-
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
55
|
+
<TType extends WithSources<DomainLease>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
56
|
+
<TType extends WithSources<DomainLease>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<DomainLease>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
151
57
|
};
|
|
152
|
-
declare const asOptionalDomainLeaseWithSources: <TType extends WithSources<
|
|
153
|
-
schema: "network.xyo.ns.domain.lease";
|
|
154
|
-
domain: string;
|
|
155
|
-
tld: TopLevelDomain;
|
|
156
|
-
exp: number;
|
|
157
|
-
nbf: number;
|
|
158
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
58
|
+
declare const asOptionalDomainLeaseWithSources: <TType extends WithSources<DomainLease>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
159
59
|
|
|
160
60
|
type AddressRecordSchema = 'network.xyo.ns.record.address';
|
|
161
61
|
declare const AddressRecordSchema: AddressRecordSchema;
|
|
@@ -163,12 +63,7 @@ interface AddressRecordFields extends DomainFields {
|
|
|
163
63
|
address: Address[];
|
|
164
64
|
}
|
|
165
65
|
type AddressRecord = Payload<AddressRecordFields, AddressRecordSchema>;
|
|
166
|
-
declare const isAddressRecord: (x?: unknown | null) => x is
|
|
167
|
-
schema: "network.xyo.ns.record.address";
|
|
168
|
-
address: Lowercase<string>[];
|
|
169
|
-
domain: string;
|
|
170
|
-
tld: TopLevelDomain;
|
|
171
|
-
}>;
|
|
66
|
+
declare const isAddressRecord: (x?: unknown | null) => x is AddressRecord;
|
|
172
67
|
|
|
173
68
|
declare const DomainLeaseEstimateDivinerValidationErrorDetailsSchema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
174
69
|
type DomainLeaseEstimateDivinerValidationErrorDetailsSchema = typeof DomainLeaseEstimateDivinerValidationErrorDetailsSchema;
|
|
@@ -183,20 +78,8 @@ type ErrorDetailsDictionary<T extends number = number> = {
|
|
|
183
78
|
readonly [K in T]: ErrorDetails<`${K}`>;
|
|
184
79
|
};
|
|
185
80
|
type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends string | undefined = string> = Payload<ErrorDetails<TErrorCode>, DomainLeaseEstimateDivinerValidationErrorDetailsSchema>;
|
|
186
|
-
declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is
|
|
187
|
-
|
|
188
|
-
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
189
|
-
code: string;
|
|
190
|
-
detail?: string | undefined;
|
|
191
|
-
title?: string | undefined;
|
|
192
|
-
}>;
|
|
193
|
-
declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
194
|
-
[x: string]: any;
|
|
195
|
-
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
196
|
-
code: string;
|
|
197
|
-
detail?: string | undefined;
|
|
198
|
-
title?: string | undefined;
|
|
199
|
-
}>>;
|
|
81
|
+
declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is DomainLeaseEstimateDivinerValidationErrorDetails<string>;
|
|
82
|
+
declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<DomainLeaseEstimateDivinerValidationErrorDetails<string>>;
|
|
200
83
|
|
|
201
84
|
type DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
202
85
|
declare const DomainLeaseEstimateDivinerErrorDetailsDictionary: Readonly<Readonly<Record<DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode, DomainLeaseEstimateDivinerValidationErrorDetails>> & ErrorDetailsDictionary>;
|
|
@@ -208,185 +91,37 @@ interface DomainRegistrationFields extends DomainFields {
|
|
|
208
91
|
registrar: Address[];
|
|
209
92
|
}
|
|
210
93
|
type DomainRegistration = Payload<DomainRegistrationFields, DomainRegistrationSchema>;
|
|
211
|
-
declare const isDomainRegistration: (x?: unknown | null) => x is
|
|
212
|
-
schema: "network.xyo.ns.domain.registration";
|
|
213
|
-
registrant: Lowercase<string>[];
|
|
214
|
-
registrar: Lowercase<string>[];
|
|
215
|
-
domain: string;
|
|
216
|
-
tld: TopLevelDomain;
|
|
217
|
-
}>;
|
|
94
|
+
declare const isDomainRegistration: (x?: unknown | null) => x is DomainRegistration;
|
|
218
95
|
declare const asDomainRegistration: {
|
|
219
|
-
<TType extends _xylabs_object.
|
|
220
|
-
|
|
221
|
-
registrant: Lowercase<string>[];
|
|
222
|
-
registrar: Lowercase<string>[];
|
|
223
|
-
domain: string;
|
|
224
|
-
tld: TopLevelDomain;
|
|
225
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
226
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
227
|
-
schema: "network.xyo.ns.domain.registration";
|
|
228
|
-
registrant: Lowercase<string>[];
|
|
229
|
-
registrar: Lowercase<string>[];
|
|
230
|
-
domain: string;
|
|
231
|
-
tld: TopLevelDomain;
|
|
232
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
233
|
-
schema: "network.xyo.ns.domain.registration";
|
|
234
|
-
registrant: Lowercase<string>[];
|
|
235
|
-
registrar: Lowercase<string>[];
|
|
236
|
-
domain: string;
|
|
237
|
-
tld: TopLevelDomain;
|
|
238
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
96
|
+
<TType extends DomainRegistration>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
97
|
+
<TType extends DomainRegistration>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<DomainRegistration>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
239
98
|
};
|
|
240
|
-
declare const asOptionalDomainRegistration: <TType extends
|
|
241
|
-
|
|
242
|
-
registrant: Lowercase<string>[];
|
|
243
|
-
registrar: Lowercase<string>[];
|
|
244
|
-
domain: string;
|
|
245
|
-
tld: TopLevelDomain;
|
|
246
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
247
|
-
declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
248
|
-
schema: "network.xyo.ns.domain.registration";
|
|
249
|
-
registrant: Lowercase<string>[];
|
|
250
|
-
registrar: Lowercase<string>[];
|
|
251
|
-
domain: string;
|
|
252
|
-
tld: TopLevelDomain;
|
|
253
|
-
}>>>;
|
|
99
|
+
declare const asOptionalDomainRegistration: <TType extends DomainRegistration>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
100
|
+
declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistration>>;
|
|
254
101
|
declare const asDomainRegistrationWithSources: {
|
|
255
|
-
<TType extends WithSources<_xylabs_object.
|
|
256
|
-
|
|
257
|
-
registrant: Lowercase<string>[];
|
|
258
|
-
registrar: Lowercase<string>[];
|
|
259
|
-
domain: string;
|
|
260
|
-
tld: TopLevelDomain;
|
|
261
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
262
|
-
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
263
|
-
schema: "network.xyo.ns.domain.registration";
|
|
264
|
-
registrant: Lowercase<string>[];
|
|
265
|
-
registrar: Lowercase<string>[];
|
|
266
|
-
domain: string;
|
|
267
|
-
tld: TopLevelDomain;
|
|
268
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
269
|
-
schema: "network.xyo.ns.domain.registration";
|
|
270
|
-
registrant: Lowercase<string>[];
|
|
271
|
-
registrar: Lowercase<string>[];
|
|
272
|
-
domain: string;
|
|
273
|
-
tld: TopLevelDomain;
|
|
274
|
-
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
102
|
+
<TType extends WithSources<DomainRegistration>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
103
|
+
<TType extends WithSources<DomainRegistration>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<DomainRegistration>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
275
104
|
};
|
|
276
|
-
declare const asOptionalDomainRegistrationWithSources: <TType extends WithSources<
|
|
277
|
-
schema: "network.xyo.ns.domain.registration";
|
|
278
|
-
registrant: Lowercase<string>[];
|
|
279
|
-
registrar: Lowercase<string>[];
|
|
280
|
-
domain: string;
|
|
281
|
-
tld: TopLevelDomain;
|
|
282
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
105
|
+
declare const asOptionalDomainRegistrationWithSources: <TType extends WithSources<DomainRegistration>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
283
106
|
|
|
284
107
|
declare const DomainRegistrationLeaseSchema: "network.xyo.ns.domain.registration.lease";
|
|
285
108
|
type DomainRegistrationLeaseSchema = typeof DomainRegistrationLeaseSchema;
|
|
286
109
|
interface DomainRegistrationLeaseFields extends DomainRegistrationFields, DurationFields {
|
|
287
110
|
}
|
|
288
111
|
type DomainRegistrationLease = Payload<DomainRegistrationLeaseFields, DomainRegistrationLeaseSchema>;
|
|
289
|
-
declare const isDomainRegistrationLease: (x?: unknown | null) => x is
|
|
290
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
291
|
-
registrant: Lowercase<string>[];
|
|
292
|
-
registrar: Lowercase<string>[];
|
|
293
|
-
domain: string;
|
|
294
|
-
tld: TopLevelDomain;
|
|
295
|
-
exp: number;
|
|
296
|
-
nbf: number;
|
|
297
|
-
}>;
|
|
112
|
+
declare const isDomainRegistrationLease: (x?: unknown | null) => x is DomainRegistrationLease;
|
|
298
113
|
declare const asDomainRegistrationLease: {
|
|
299
|
-
<TType extends _xylabs_object.
|
|
300
|
-
|
|
301
|
-
registrant: Lowercase<string>[];
|
|
302
|
-
registrar: Lowercase<string>[];
|
|
303
|
-
domain: string;
|
|
304
|
-
tld: TopLevelDomain;
|
|
305
|
-
exp: number;
|
|
306
|
-
nbf: number;
|
|
307
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
308
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
309
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
310
|
-
registrant: Lowercase<string>[];
|
|
311
|
-
registrar: Lowercase<string>[];
|
|
312
|
-
domain: string;
|
|
313
|
-
tld: TopLevelDomain;
|
|
314
|
-
exp: number;
|
|
315
|
-
nbf: number;
|
|
316
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
317
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
318
|
-
registrant: Lowercase<string>[];
|
|
319
|
-
registrar: Lowercase<string>[];
|
|
320
|
-
domain: string;
|
|
321
|
-
tld: TopLevelDomain;
|
|
322
|
-
exp: number;
|
|
323
|
-
nbf: number;
|
|
324
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
114
|
+
<TType extends DomainRegistrationLease>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
115
|
+
<TType extends DomainRegistrationLease>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<DomainRegistrationLease>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
325
116
|
};
|
|
326
|
-
declare const asOptionalDomainRegistrationLease: <TType extends
|
|
327
|
-
|
|
328
|
-
registrant: Lowercase<string>[];
|
|
329
|
-
registrar: Lowercase<string>[];
|
|
330
|
-
domain: string;
|
|
331
|
-
tld: TopLevelDomain;
|
|
332
|
-
exp: number;
|
|
333
|
-
nbf: number;
|
|
334
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
335
|
-
declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
336
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
337
|
-
registrant: Lowercase<string>[];
|
|
338
|
-
registrar: Lowercase<string>[];
|
|
339
|
-
domain: string;
|
|
340
|
-
tld: TopLevelDomain;
|
|
341
|
-
exp: number;
|
|
342
|
-
nbf: number;
|
|
343
|
-
}>>>;
|
|
117
|
+
declare const asOptionalDomainRegistrationLease: <TType extends DomainRegistrationLease>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
118
|
+
declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistrationLease>>;
|
|
344
119
|
declare const asDomainRegistrationLeaseWithSources: {
|
|
345
|
-
<TType extends WithSources<_xylabs_object.
|
|
346
|
-
|
|
347
|
-
registrant: Lowercase<string>[];
|
|
348
|
-
registrar: Lowercase<string>[];
|
|
349
|
-
domain: string;
|
|
350
|
-
tld: TopLevelDomain;
|
|
351
|
-
exp: number;
|
|
352
|
-
nbf: number;
|
|
353
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
354
|
-
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
355
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
356
|
-
registrant: Lowercase<string>[];
|
|
357
|
-
registrar: Lowercase<string>[];
|
|
358
|
-
domain: string;
|
|
359
|
-
tld: TopLevelDomain;
|
|
360
|
-
exp: number;
|
|
361
|
-
nbf: number;
|
|
362
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
363
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
364
|
-
registrant: Lowercase<string>[];
|
|
365
|
-
registrar: Lowercase<string>[];
|
|
366
|
-
domain: string;
|
|
367
|
-
tld: TopLevelDomain;
|
|
368
|
-
exp: number;
|
|
369
|
-
nbf: number;
|
|
370
|
-
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
120
|
+
<TType extends WithSources<DomainRegistrationLease>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
121
|
+
<TType extends WithSources<DomainRegistrationLease>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<DomainRegistrationLease>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
371
122
|
};
|
|
372
|
-
declare const asOptionalDomainRegistrationLeaseWithSources: <TType extends WithSources<
|
|
373
|
-
|
|
374
|
-
registrant: Lowercase<string>[];
|
|
375
|
-
registrar: Lowercase<string>[];
|
|
376
|
-
domain: string;
|
|
377
|
-
tld: TopLevelDomain;
|
|
378
|
-
exp: number;
|
|
379
|
-
nbf: number;
|
|
380
|
-
}>>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
381
|
-
declare const isDomainRegistrationLeaseSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
382
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
383
|
-
registrant: Lowercase<string>[];
|
|
384
|
-
registrar: Lowercase<string>[];
|
|
385
|
-
domain: string;
|
|
386
|
-
tld: TopLevelDomain;
|
|
387
|
-
exp: number;
|
|
388
|
-
nbf: number;
|
|
389
|
-
}>>>;
|
|
123
|
+
declare const asOptionalDomainRegistrationLeaseWithSources: <TType extends WithSources<DomainRegistrationLease>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
124
|
+
declare const isDomainRegistrationLeaseSources: (x?: unknown | null) => x is WithSources<WithSources<DomainRegistrationLease>>;
|
|
390
125
|
|
|
391
126
|
type Estimate = [
|
|
392
127
|
BoundWitness,
|
|
@@ -493,102 +228,22 @@ declare const asDNSRequest: {
|
|
|
493
228
|
<TType extends DNSRequest>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<DNSRequest>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
494
229
|
};
|
|
495
230
|
declare const asOptionalDNSRequest: <TType extends DNSRequest>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
496
|
-
declare const isDNSRequestWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
231
|
+
declare const isDNSRequestWithSources: (x?: unknown | null) => x is WithSources<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DNSRequestFields & {
|
|
497
232
|
schema: "network.xyo.dns";
|
|
498
|
-
|
|
499
|
-
name: string;
|
|
500
|
-
type: DNSResourceRecordTypeValue;
|
|
501
|
-
class?: number | undefined;
|
|
502
|
-
}[];
|
|
503
|
-
QR: NumericBooleanFalsy;
|
|
504
|
-
Opcode: DNSQueryOpcode;
|
|
505
|
-
AA: NumericBooleanFalsy;
|
|
506
|
-
TC: NumericBooleanFalsy;
|
|
507
|
-
RCODE: DNSRcode;
|
|
508
|
-
ANCOUNT: 0;
|
|
509
|
-
NSCOUNT: 0;
|
|
510
|
-
ARCOUNT: 0;
|
|
511
|
-
ID?: number | undefined;
|
|
512
|
-
RD?: NumericBoolean | undefined;
|
|
513
|
-
QDCOUNT?: number | undefined;
|
|
514
|
-
}> & _xyo_network_payload_model.SourcesMetaField>;
|
|
233
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>;
|
|
515
234
|
declare const asDNSRequestWithSources: {
|
|
516
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
235
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DNSRequestFields & {
|
|
517
236
|
schema: "network.xyo.dns";
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
type: DNSResourceRecordTypeValue;
|
|
521
|
-
class?: number | undefined;
|
|
522
|
-
}[];
|
|
523
|
-
QR: NumericBooleanFalsy;
|
|
524
|
-
Opcode: DNSQueryOpcode;
|
|
525
|
-
AA: NumericBooleanFalsy;
|
|
526
|
-
TC: NumericBooleanFalsy;
|
|
527
|
-
RCODE: DNSRcode;
|
|
528
|
-
ANCOUNT: 0;
|
|
529
|
-
NSCOUNT: 0;
|
|
530
|
-
ARCOUNT: 0;
|
|
531
|
-
ID?: number | undefined;
|
|
532
|
-
RD?: NumericBoolean | undefined;
|
|
533
|
-
QDCOUNT?: number | undefined;
|
|
534
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
535
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
237
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
238
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DNSRequestFields & {
|
|
536
239
|
schema: "network.xyo.dns";
|
|
537
|
-
|
|
538
|
-
name: string;
|
|
539
|
-
type: DNSResourceRecordTypeValue;
|
|
540
|
-
class?: number | undefined;
|
|
541
|
-
}[];
|
|
542
|
-
QR: NumericBooleanFalsy;
|
|
543
|
-
Opcode: DNSQueryOpcode;
|
|
544
|
-
AA: NumericBooleanFalsy;
|
|
545
|
-
TC: NumericBooleanFalsy;
|
|
546
|
-
RCODE: DNSRcode;
|
|
547
|
-
ANCOUNT: 0;
|
|
548
|
-
NSCOUNT: 0;
|
|
549
|
-
ARCOUNT: 0;
|
|
550
|
-
ID?: number | undefined;
|
|
551
|
-
RD?: NumericBoolean | undefined;
|
|
552
|
-
QDCOUNT?: number | undefined;
|
|
553
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
240
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DNSRequestFields & {
|
|
554
241
|
schema: "network.xyo.dns";
|
|
555
|
-
|
|
556
|
-
name: string;
|
|
557
|
-
type: DNSResourceRecordTypeValue;
|
|
558
|
-
class?: number | undefined;
|
|
559
|
-
}[];
|
|
560
|
-
QR: NumericBooleanFalsy;
|
|
561
|
-
Opcode: DNSQueryOpcode;
|
|
562
|
-
AA: NumericBooleanFalsy;
|
|
563
|
-
TC: NumericBooleanFalsy;
|
|
564
|
-
RCODE: DNSRcode;
|
|
565
|
-
ANCOUNT: 0;
|
|
566
|
-
NSCOUNT: 0;
|
|
567
|
-
ARCOUNT: 0;
|
|
568
|
-
ID?: number | undefined;
|
|
569
|
-
RD?: NumericBoolean | undefined;
|
|
570
|
-
QDCOUNT?: number | undefined;
|
|
571
|
-
}> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
242
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
572
243
|
};
|
|
573
|
-
declare const asOptionalDNSRequestWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
244
|
+
declare const asOptionalDNSRequestWithSources: <TType extends _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & DNSRequestFields & {
|
|
574
245
|
schema: "network.xyo.dns";
|
|
575
|
-
|
|
576
|
-
name: string;
|
|
577
|
-
type: DNSResourceRecordTypeValue;
|
|
578
|
-
class?: number | undefined;
|
|
579
|
-
}[];
|
|
580
|
-
QR: NumericBooleanFalsy;
|
|
581
|
-
Opcode: DNSQueryOpcode;
|
|
582
|
-
AA: NumericBooleanFalsy;
|
|
583
|
-
TC: NumericBooleanFalsy;
|
|
584
|
-
RCODE: DNSRcode;
|
|
585
|
-
ANCOUNT: 0;
|
|
586
|
-
NSCOUNT: 0;
|
|
587
|
-
ARCOUNT: 0;
|
|
588
|
-
ID?: number | undefined;
|
|
589
|
-
RD?: NumericBoolean | undefined;
|
|
590
|
-
QDCOUNT?: number | undefined;
|
|
591
|
-
}> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
246
|
+
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.SourcesMetaField>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise) => TType | undefined;
|
|
592
247
|
declare const getDnsRequestFor: (domain: string, type?: DNSResourceRecordTypeValue) => DNSRequest;
|
|
593
248
|
|
|
594
249
|
type DNSResponse = PayloadWithSources<DNSResponseFields, DNSSchema>;
|
|
@@ -619,11 +274,6 @@ interface HashRecordFields extends DomainFields {
|
|
|
619
274
|
hash: Hash[];
|
|
620
275
|
}
|
|
621
276
|
type HashRecord = Payload<HashRecordFields, HashRecordSchema>;
|
|
622
|
-
declare const isHashRecord: (x?: unknown | null) => x is
|
|
623
|
-
schema: "network.xyo.ns.record.hash";
|
|
624
|
-
hash: Lowercase<string>[];
|
|
625
|
-
domain: string;
|
|
626
|
-
tld: TopLevelDomain;
|
|
627
|
-
}>;
|
|
277
|
+
declare const isHashRecord: (x?: unknown | null) => x is HashRecord;
|
|
628
278
|
|
|
629
279
|
export { type AddressRecord, type AddressRecordFields, AddressRecordSchema, type DNS, type DNSAnswer, type DNSHeader, type DNSQueryOpcode, type DNSQueryOpcodeName, DNSQueryOpcodes, type DNSQuestion, type DNSRcode, type DNSRcodeName, DNSRcodes, type DNSRecord, type DNSRequest, type DNSRequestFields, type DNSRequestHeader, type DNSResourceRecordType, type DNSResourceRecordTypeValue, DNSResourceRecordTypes, type DNSResponse, type DNSResponseFields, type DNSResponseHeader, DNSSchema, type DNSWitnessConfig, DNSWitnessConfigSchema, type DNSWitnessParams, type Domain, type DomainEstimate, type DomainFields, type DomainLease, DomainLeaseEstimateDivinerErrorDetailsDictionary, type DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode, type DomainLeaseEstimateDivinerValidationErrorDetails, DomainLeaseEstimateDivinerValidationErrorDetailsSchema, type DomainLeaseFields, DomainLeaseSchema, type DomainRegistration, type DomainRegistrationFields, type DomainRegistrationLease, type DomainRegistrationLeaseFields, DomainRegistrationLeaseSchema, DomainRegistrationSchema, DomainSchema, type DurationFields, type ErrorDetails, type ErrorDetailsDictionary, type Estimate, type HashRecord, type HashRecordFields, HashRecordSchema, type NumericBoolean, type NumericBooleanFalsy, type NumericBooleanTruthy, StandardRequestHeader, type TopLevelDomain, asDNSRequest, asDNSRequestWithSources, asDNSResponse, asDNSResponseWithSources, asDomain, asDomainLease, asDomainLeaseWithSources, asDomainRegistration, asDomainRegistrationLease, asDomainRegistrationLeaseWithSources, asDomainRegistrationWithSources, asDomainWithSources, asOptionalDNSRequest, asOptionalDNSRequestWithSources, asOptionalDNSResponse, asOptionalDNSResponseWithSources, asOptionalDomain, asOptionalDomainLease, asOptionalDomainLeaseWithSources, asOptionalDomainRegistration, asOptionalDomainRegistrationLease, asOptionalDomainRegistrationLeaseWithSources, asOptionalDomainRegistrationWithSources, asOptionalDomainWithSources, findDNSResourceRecordTypesByValue, getDnsRequestFor, getRandomId, getRequestFor, isAddressRecord, isDNSRequest, isDNSRequestWithSources, isDNSResponse, isDNSResponseWithSources, isDomain, isDomainLease, isDomainLeaseEstimateDivinerValidationErrorDetails, isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources, isDomainLeaseWithSources, isDomainRegistration, isDomainRegistrationLease, isDomainRegistrationLeaseSources, isDomainRegistrationLeaseWithSources, isDomainRegistrationWithSources, isDomainWithSources, isHashRecord, isWithinDelegatedTimeframe, parseEstimatesFromArray, validateBoundWitnessWithDuration, validateDuration };
|