@xyo-network/xns-record-payload-plugins 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/neutral/index.d.ts +1 -8
  2. package/dist/neutral/index.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +2 -986
  4. package/dist/neutral/index.mjs.map +4 -4
  5. package/package.json +53 -46
  6. package/dist/neutral/Address/Payload.d.ts +0 -96
  7. package/dist/neutral/Address/Payload.d.ts.map +0 -1
  8. package/dist/neutral/Address/index.d.ts +0 -2
  9. package/dist/neutral/Address/index.d.ts.map +0 -1
  10. package/dist/neutral/Dns/Witness/Config.d.ts +0 -25
  11. package/dist/neutral/Dns/Witness/Config.d.ts.map +0 -1
  12. package/dist/neutral/Dns/Witness/Params.d.ts +0 -4
  13. package/dist/neutral/Dns/Witness/Params.d.ts.map +0 -1
  14. package/dist/neutral/Dns/Witness/Payload/Payload.d.ts +0 -4
  15. package/dist/neutral/Dns/Witness/Payload/Payload.d.ts.map +0 -1
  16. package/dist/neutral/Dns/Witness/Payload/Request.d.ts +0 -147
  17. package/dist/neutral/Dns/Witness/Payload/Request.d.ts.map +0 -1
  18. package/dist/neutral/Dns/Witness/Payload/Response.d.ts +0 -259
  19. package/dist/neutral/Dns/Witness/Payload/Response.d.ts.map +0 -1
  20. package/dist/neutral/Dns/Witness/Payload/index.d.ts +0 -4
  21. package/dist/neutral/Dns/Witness/Payload/index.d.ts.map +0 -1
  22. package/dist/neutral/Dns/Witness/Schema.d.ts +0 -5
  23. package/dist/neutral/Dns/Witness/Schema.d.ts.map +0 -1
  24. package/dist/neutral/Dns/Witness/index.d.ts +0 -5
  25. package/dist/neutral/Dns/Witness/index.d.ts.map +0 -1
  26. package/dist/neutral/Dns/index.d.ts +0 -3
  27. package/dist/neutral/Dns/index.d.ts.map +0 -1
  28. package/dist/neutral/Dns/types/Answer.d.ts +0 -10
  29. package/dist/neutral/Dns/types/Answer.d.ts.map +0 -1
  30. package/dist/neutral/Dns/types/Header.d.ts +0 -52
  31. package/dist/neutral/Dns/types/Header.d.ts.map +0 -1
  32. package/dist/neutral/Dns/types/OperationCodes.d.ts +0 -14
  33. package/dist/neutral/Dns/types/OperationCodes.d.ts.map +0 -1
  34. package/dist/neutral/Dns/types/Record.d.ts +0 -9
  35. package/dist/neutral/Dns/types/Record.d.ts.map +0 -1
  36. package/dist/neutral/Dns/types/Request.d.ts +0 -40
  37. package/dist/neutral/Dns/types/Request.d.ts.map +0 -1
  38. package/dist/neutral/Dns/types/ResourceRecord.d.ts +0 -105
  39. package/dist/neutral/Dns/types/ResourceRecord.d.ts.map +0 -1
  40. package/dist/neutral/Dns/types/Response.d.ts +0 -41
  41. package/dist/neutral/Dns/types/Response.d.ts.map +0 -1
  42. package/dist/neutral/Dns/types/ResponseCodes.d.ts +0 -22
  43. package/dist/neutral/Dns/types/ResponseCodes.d.ts.map +0 -1
  44. package/dist/neutral/Dns/types/index.d.ts +0 -9
  45. package/dist/neutral/Dns/types/index.d.ts.map +0 -1
  46. package/dist/neutral/Domain/Domain.d.ts +0 -72
  47. package/dist/neutral/Domain/Domain.d.ts.map +0 -1
  48. package/dist/neutral/Domain/DomainLease.d.ts +0 -81
  49. package/dist/neutral/Domain/DomainLease.d.ts.map +0 -1
  50. package/dist/neutral/Domain/index.d.ts +0 -3
  51. package/dist/neutral/Domain/index.d.ts.map +0 -1
  52. package/dist/neutral/DomainEstimate/DomainEstimate.d.ts +0 -9
  53. package/dist/neutral/DomainEstimate/DomainEstimate.d.ts.map +0 -1
  54. package/dist/neutral/DomainEstimate/index.d.ts +0 -2
  55. package/dist/neutral/DomainEstimate/index.d.ts.map +0 -1
  56. package/dist/neutral/DomainRegistration/DomainRegistration.d.ts +0 -134
  57. package/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +0 -1
  58. package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +0 -148
  59. package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +0 -1
  60. package/dist/neutral/DomainRegistration/index.d.ts +0 -3
  61. package/dist/neutral/DomainRegistration/index.d.ts.map +0 -1
  62. package/dist/neutral/Duration/Duration.d.ts +0 -7
  63. package/dist/neutral/Duration/Duration.d.ts.map +0 -1
  64. package/dist/neutral/Duration/index.d.ts +0 -3
  65. package/dist/neutral/Duration/index.d.ts.map +0 -1
  66. package/dist/neutral/Duration/validation/index.d.ts +0 -3
  67. package/dist/neutral/Duration/validation/index.d.ts.map +0 -1
  68. package/dist/neutral/Duration/validation/validateBoundWitness.d.ts +0 -3
  69. package/dist/neutral/Duration/validation/validateBoundWitness.d.ts.map +0 -1
  70. package/dist/neutral/Duration/validation/validateBoundWitnessAndDuration.d.ts +0 -4
  71. package/dist/neutral/Duration/validation/validateBoundWitnessAndDuration.d.ts.map +0 -1
  72. package/dist/neutral/Duration/validation/validateBoundWitnessWithDuration.d.ts +0 -4
  73. package/dist/neutral/Duration/validation/validateBoundWitnessWithDuration.d.ts.map +0 -1
  74. package/dist/neutral/Duration/validation/validateDuration.d.ts +0 -5
  75. package/dist/neutral/Duration/validation/validateDuration.d.ts.map +0 -1
  76. package/dist/neutral/Hash/Payload.d.ts +0 -68
  77. package/dist/neutral/Hash/Payload.d.ts.map +0 -1
  78. package/dist/neutral/Hash/index.d.ts +0 -2
  79. package/dist/neutral/Hash/index.d.ts.map +0 -1
  80. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts +0 -4
  81. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.d.ts.map +0 -1
  82. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +0 -74
  83. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +0 -1
  84. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts +0 -3
  85. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/index.d.ts.map +0 -1
  86. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/Schema.d.ts +0 -5
  87. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +0 -1
  88. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/index.d.ts +0 -3
  89. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/index.d.ts.map +0 -1
  90. package/dist/neutral/diviner/index.d.ts +0 -3
  91. package/dist/neutral/diviner/index.d.ts.map +0 -1
  92. package/dist/neutral/diviner/lib/index.d.ts +0 -2
  93. package/dist/neutral/diviner/lib/index.d.ts.map +0 -1
  94. package/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts +0 -15
  95. package/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts.map +0 -1
@@ -1,72 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export type DomainSchema = typeof DomainSchema;
3
- export declare const DomainSchema: "network.xyo.ns.domain" & {
4
- readonly __schema: true;
5
- };
6
- /**
7
- * The supported TLDs for XNS
8
- */
9
- export declare const TopLevelDomainZod: z.ZodMiniLiteral<"xyo">;
10
- export type TopLevelDomain = z.infer<typeof TopLevelDomainZod>;
11
- /**
12
- * The fields for a domain record
13
- */
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>;
19
- /**
20
- * A domain record is a record of a domain
21
- */
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>;
30
- /**
31
- * Identity function for Domain payload
32
- */
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("@ariestools/sdk").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("@ariestools/sdk").ZodFactoryConfig): T & {
65
- schema: "network.xyo.ns.domain" & {
66
- readonly __schema: true;
67
- };
68
- domain: string;
69
- tld: "xyo";
70
- };
71
- };
72
- //# sourceMappingURL=Domain.d.ts.map
@@ -1 +0,0 @@
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,81 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export type DomainLeaseSchema = typeof DomainLeaseSchema;
3
- export declare const DomainLeaseSchema: "network.xyo.ns.domain.lease" & {
4
- readonly __schema: true;
5
- };
6
- /**
7
- * A domain is leased for a duration
8
- */
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>;
16
- /**
17
- * A domain lease is a record of a domain and the duration it is leased for
18
- */
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>;
29
- /**
30
- * Identity function for DomainLease payload
31
- */
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("@ariestools/sdk").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("@ariestools/sdk").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
- };
81
- //# sourceMappingURL=DomainLease.d.ts.map
@@ -1 +0,0 @@
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,3 +0,0 @@
1
- export * from './Domain.ts';
2
- export * from './DomainLease.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
@@ -1,9 +0,0 @@
1
- import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
2
- import type { BoundWitness, WithSources } from '@xyo-network/sdk';
3
- import type { DomainRegistrationLease } from '../DomainRegistration/index.ts';
4
- export type DomainEstimate = [
5
- BoundWitness,
6
- WithSources<HashLeaseEstimate>,
7
- WithSources<DomainRegistrationLease>
8
- ];
9
- //# sourceMappingURL=DomainEstimate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DomainEstimate.d.ts","sourceRoot":"","sources":["../../../src/DomainEstimate/DomainEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAE7E,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY;IACZ,WAAW,CAAC,iBAAiB,CAAC;IAC9B,WAAW,CAAC,uBAAuB,CAAC;CACrC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './DomainEstimate.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DomainEstimate/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -1,134 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const DomainRegistrationSchema: string & {
3
- readonly __schema: true;
4
- };
5
- export type DomainRegistrationSchema = typeof DomainRegistrationSchema;
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>;
21
- /**
22
- * Delegation of a domain to a registrar by a registrant
23
- */
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>;
42
- /**
43
- * Identity function for DomainRegistration payload
44
- */
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("@ariestools/sdk").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("@ariestools/sdk").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
- };
134
- //# sourceMappingURL=DomainRegistration.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,148 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const DomainRegistrationLeaseSchema: string & {
3
- readonly __schema: true;
4
- };
5
- export type DomainRegistrationLeaseSchema = typeof DomainRegistrationLeaseSchema;
6
- export declare const DomainRegistrationLeaseFieldsZod: z.ZodMiniObject<{
7
- exp: z.ZodMiniNumber<number>;
8
- nbf: z.ZodMiniNumber<number>;
9
- registrant: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
10
- readonly __hex: true;
11
- } & {
12
- readonly __address: true;
13
- }, string>>>;
14
- registrar: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
15
- readonly __hex: true;
16
- } & {
17
- readonly __address: true;
18
- }, string>>>;
19
- domain: z.ZodMiniString<string>;
20
- tld: z.ZodMiniLiteral<"xyo">;
21
- }, z.core.$strip>;
22
- export type DomainRegistrationLeaseFields = z.infer<typeof DomainRegistrationLeaseFieldsZod>;
23
- /**
24
- * Temporal delegation of a domain to a registrar by a registrant
25
- */
26
- export declare const DomainRegistrationLeaseZod: z.ZodMiniObject<{
27
- schema: z.ZodMiniLiteral<string & {
28
- readonly __schema: true;
29
- }>;
30
- exp: z.ZodMiniNumber<number>;
31
- nbf: z.ZodMiniNumber<number>;
32
- registrant: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
33
- readonly __hex: true;
34
- } & {
35
- readonly __address: true;
36
- }, string>>>;
37
- registrar: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
38
- readonly __hex: true;
39
- } & {
40
- readonly __address: true;
41
- }, string>>>;
42
- domain: z.ZodMiniString<string>;
43
- tld: z.ZodMiniLiteral<"xyo">;
44
- }, z.core.$strip>;
45
- export type DomainRegistrationLease = z.infer<typeof DomainRegistrationLeaseZod>;
46
- /**
47
- * Identity function for DomainRegistrationLease payload
48
- */
49
- export declare const isDomainRegistrationLease: <T>(value: T) => value is T & {
50
- schema: string & {
51
- readonly __schema: true;
52
- };
53
- exp: number;
54
- nbf: number;
55
- registrant: (Lowercase<string> & {
56
- readonly __hex: true;
57
- } & {
58
- readonly __address: true;
59
- })[];
60
- registrar: (Lowercase<string> & {
61
- readonly __hex: true;
62
- } & {
63
- readonly __address: true;
64
- })[];
65
- domain: string;
66
- tld: "xyo";
67
- };
68
- export declare const asDomainRegistrationLease: {
69
- <T>(value: T): (T & {
70
- schema: string & {
71
- readonly __schema: true;
72
- };
73
- exp: number;
74
- nbf: number;
75
- registrant: (Lowercase<string> & {
76
- readonly __hex: true;
77
- } & {
78
- readonly __address: true;
79
- })[];
80
- registrar: (Lowercase<string> & {
81
- readonly __hex: true;
82
- } & {
83
- readonly __address: true;
84
- })[];
85
- domain: string;
86
- tld: "xyo";
87
- }) | undefined;
88
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
89
- schema: string & {
90
- readonly __schema: true;
91
- };
92
- exp: number;
93
- nbf: number;
94
- registrant: (Lowercase<string> & {
95
- readonly __hex: true;
96
- } & {
97
- readonly __address: true;
98
- })[];
99
- registrar: (Lowercase<string> & {
100
- readonly __hex: true;
101
- } & {
102
- readonly __address: true;
103
- })[];
104
- domain: string;
105
- tld: "xyo";
106
- };
107
- };
108
- export declare const toDomainRegistrationLease: {
109
- <T>(value: T): (T & {
110
- schema: string & {
111
- readonly __schema: true;
112
- };
113
- exp: number;
114
- nbf: number;
115
- registrant: (Lowercase<string> & {
116
- readonly __hex: true;
117
- } & {
118
- readonly __address: true;
119
- })[];
120
- registrar: (Lowercase<string> & {
121
- readonly __hex: true;
122
- } & {
123
- readonly __address: true;
124
- })[];
125
- domain: string;
126
- tld: "xyo";
127
- }) | undefined;
128
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
129
- schema: string & {
130
- readonly __schema: true;
131
- };
132
- exp: number;
133
- nbf: number;
134
- registrant: (Lowercase<string> & {
135
- readonly __hex: true;
136
- } & {
137
- readonly __address: true;
138
- })[];
139
- registrar: (Lowercase<string> & {
140
- readonly __hex: true;
141
- } & {
142
- readonly __address: true;
143
- })[];
144
- domain: string;
145
- tld: "xyo";
146
- };
147
- };
148
- //# sourceMappingURL=DomainRegistrationLease.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,6BAA6B;;CAAsD,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;iBAG3C,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;iBAA6G,CAAA;AAEpJ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;CAA2C,CAAA;AACjF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwE,CAAA;AAC9G,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwE,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './DomainRegistration.ts';
2
- export * from './DomainRegistrationLease.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA"}
@@ -1,7 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const DurationFieldsZod: z.ZodMiniObject<{
3
- exp: z.ZodMiniNumber<number>;
4
- nbf: z.ZodMiniNumber<number>;
5
- }, z.core.$strip>;
6
- export type DurationFields = z.infer<typeof DurationFieldsZod>;
7
- //# sourceMappingURL=Duration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../../../src/Duration/Duration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,iBAAiB;;;iBAU5B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Duration.ts';
2
- export * from './validation/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Duration/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './validateBoundWitnessWithDuration.ts';
2
- export * from './validateDuration.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Duration/validation/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA;AACrD,cAAc,uBAAuB,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BoundWitness, Schema } from '@xyo-network/sdk';
2
- export declare const validateBoundWitness: (recordBw: BoundWitness, requiredSchemas?: Schema[]) => Promise<boolean>;
3
- //# sourceMappingURL=validateBoundWitness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateBoundWitness.d.ts","sourceRoot":"","sources":["../../../../src/Duration/validation/validateBoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAI5D,eAAO,MAAM,oBAAoB,GAAU,UAAU,YAAY,EAAE,kBAAiB,MAAM,EAAO,KAAG,OAAO,CAAC,OAAO,CAOlH,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { BoundWitness, Payload } from '@xyo-network/sdk';
2
- import type { DurationFields } from '../Duration.ts';
3
- export declare const validateBoundWitnessAndDuration: (recordBw: BoundWitness, recordPayload: Payload<DurationFields>) => Promise<boolean>;
4
- //# sourceMappingURL=validateBoundWitnessAndDuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateBoundWitnessAndDuration.d.ts","sourceRoot":"","sources":["../../../../src/Duration/validation/validateBoundWitnessAndDuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAGpD,eAAO,MAAM,+BAA+B,GAAU,UAAU,YAAY,EAAE,eAAe,OAAO,CAAC,cAAc,CAAC,KAAG,OAAO,CAAC,OAAO,CAGrI,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { BoundWitness, Payload } from '@xyo-network/sdk';
2
- import type { DurationFields } from '../Duration.ts';
3
- export declare const validateBoundWitnessWithDuration: (recordBw: BoundWitness, recordPayload: Payload<DurationFields>) => Promise<boolean>;
4
- //# sourceMappingURL=validateBoundWitnessWithDuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateBoundWitnessWithDuration.d.ts","sourceRoot":"","sources":["../../../../src/Duration/validation/validateBoundWitnessWithDuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAKpD,eAAO,MAAM,gCAAgC,GAAU,UAAU,YAAY,EAAE,eAAe,OAAO,CAAC,cAAc,CAAC,KAAG,OAAO,CAAC,OAAO,CAOtI,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { Payload } from '@xyo-network/sdk';
2
- import type { DurationFields } from '../Duration.ts';
3
- export declare const validateDuration: (recordPayload: Payload<DurationFields>) => boolean;
4
- export declare const isWithinDelegatedTimeframe: (recordPayload: Payload<DurationFields>, now?: number) => boolean;
5
- //# sourceMappingURL=validateDuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateDuration.d.ts","sourceRoot":"","sources":["../../../../src/Duration/validation/validateDuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAGpD,eAAO,MAAM,gBAAgB,GAAI,eAAe,OAAO,CAAC,cAAc,CAAC,KAAG,OAGzE,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,eAAe,OAAO,CAAC,cAAc,CAAC,EAAE,YAAgB,KAAG,OAGrG,CAAA"}
@@ -1,68 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export type HashRecordSchema = typeof HashRecordSchema;
3
- export declare const HashRecordSchema: "network.xyo.ns.record.hash" & {
4
- readonly __schema: true;
5
- };
6
- export declare const HashRecordFieldsZod: z.ZodMiniObject<{
7
- hash: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
8
- domain: z.ZodMiniString<string>;
9
- tld: z.ZodMiniLiteral<"xyo">;
10
- }, z.core.$strip>;
11
- export type HashRecordFields = z.infer<typeof HashRecordFieldsZod>;
12
- /**
13
- * An hash record points a domain to an hash
14
- */
15
- export declare const HashRecordZod: z.ZodMiniObject<{
16
- schema: z.ZodMiniLiteral<"network.xyo.ns.record.hash" & {
17
- readonly __schema: true;
18
- }>;
19
- hash: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
20
- domain: z.ZodMiniString<string>;
21
- tld: z.ZodMiniLiteral<"xyo">;
22
- }, z.core.$strip>;
23
- export type HashRecord = z.infer<typeof HashRecordZod>;
24
- export declare const isHashRecord: <T>(value: T) => value is T & {
25
- schema: "network.xyo.ns.record.hash" & {
26
- readonly __schema: true;
27
- };
28
- hash: import("@ariestools/sdk").BrandedHash[];
29
- domain: string;
30
- tld: "xyo";
31
- };
32
- export declare const asHashRecord: {
33
- <T>(value: T): (T & {
34
- schema: "network.xyo.ns.record.hash" & {
35
- readonly __schema: true;
36
- };
37
- hash: import("@ariestools/sdk").BrandedHash[];
38
- domain: string;
39
- tld: "xyo";
40
- }) | undefined;
41
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
42
- schema: "network.xyo.ns.record.hash" & {
43
- readonly __schema: true;
44
- };
45
- hash: import("@ariestools/sdk").BrandedHash[];
46
- domain: string;
47
- tld: "xyo";
48
- };
49
- };
50
- export declare const toHashRecord: {
51
- <T>(value: T): (T & {
52
- schema: "network.xyo.ns.record.hash" & {
53
- readonly __schema: true;
54
- };
55
- hash: import("@ariestools/sdk").BrandedHash[];
56
- domain: string;
57
- tld: "xyo";
58
- }) | undefined;
59
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
60
- schema: "network.xyo.ns.record.hash" & {
61
- readonly __schema: true;
62
- };
63
- hash: import("@ariestools/sdk").BrandedHash[];
64
- domain: string;
65
- tld: "xyo";
66
- };
67
- };
68
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Hash/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AACtD,eAAO,MAAM,gBAAgB;;CAA+C,CAAA;AAE5E,eAAO,MAAM,mBAAmB;;;;iBAM9B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAElE;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;iBAAmF,CAAA;AAE7G,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEtD,eAAO,MAAM,YAAY;;;;;;;CAA8B,CAAA;AACvD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAA8C,CAAA;AACvE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAA8C,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './Payload.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Hash/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { DomainLeaseEstimateDivinerValidationErrorDetails, ErrorDetailsDictionary } from './Payload.ts';
2
- export type DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
3
- export declare const DomainLeaseEstimateDivinerErrorDetailsDictionary: Readonly<Readonly<Record<DomainLeaseEstimateDivinerErrorDetailsDictionaryErrorCode, DomainLeaseEstimateDivinerValidationErrorDetails>> & ErrorDetailsDictionary>;
4
- //# sourceMappingURL=ErrorCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorCodes.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/ErrorCodes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gDAAgD,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAG5G,MAAM,MAAM,yDAAyD,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAErG,eAAO,MAAM,gDAAgD,EAAE,QAAQ,CACrE,QAAQ,CAAC,MAAM,CAAC,yDAAyD,EAAE,gDAAgD,CAAC,CAAC,GAC3H,sBAAsB,CA6BhB,CAAA"}