@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.
Files changed (77) hide show
  1. package/dist/neutral/Address/Payload.d.ts +88 -11
  2. package/dist/neutral/Address/Payload.d.ts.map +1 -1
  3. package/dist/neutral/{DNS → Dns}/Witness/Config.d.ts.map +1 -1
  4. package/dist/neutral/{DNS → Dns}/Witness/Params.d.ts.map +1 -1
  5. package/dist/neutral/{DNS → Dns}/Witness/Payload/Payload.d.ts.map +1 -1
  6. package/dist/neutral/Dns/Witness/Payload/Request.d.ts +147 -0
  7. package/dist/neutral/Dns/Witness/Payload/Request.d.ts.map +1 -0
  8. package/dist/neutral/Dns/Witness/Payload/Response.d.ts +259 -0
  9. package/dist/neutral/Dns/Witness/Payload/Response.d.ts.map +1 -0
  10. package/dist/neutral/{DNS → Dns}/Witness/Payload/index.d.ts.map +1 -1
  11. package/dist/neutral/{DNS → Dns}/Witness/Schema.d.ts.map +1 -1
  12. package/dist/neutral/{DNS → Dns}/Witness/index.d.ts.map +1 -1
  13. package/dist/neutral/Dns/index.d.ts.map +1 -0
  14. package/dist/neutral/Dns/types/Answer.d.ts +10 -0
  15. package/dist/neutral/Dns/types/Answer.d.ts.map +1 -0
  16. package/dist/neutral/Dns/types/Header.d.ts +52 -0
  17. package/dist/neutral/Dns/types/Header.d.ts.map +1 -0
  18. package/dist/neutral/Dns/types/OperationCodes.d.ts +14 -0
  19. package/dist/neutral/Dns/types/OperationCodes.d.ts.map +1 -0
  20. package/dist/neutral/Dns/types/Record.d.ts +9 -0
  21. package/dist/neutral/Dns/types/Record.d.ts.map +1 -0
  22. package/dist/neutral/Dns/types/Request.d.ts +40 -0
  23. package/dist/neutral/Dns/types/Request.d.ts.map +1 -0
  24. package/dist/neutral/Dns/types/ResourceRecord.d.ts +105 -0
  25. package/dist/neutral/Dns/types/ResourceRecord.d.ts.map +1 -0
  26. package/dist/neutral/Dns/types/Response.d.ts +41 -0
  27. package/dist/neutral/Dns/types/Response.d.ts.map +1 -0
  28. package/dist/neutral/Dns/types/ResponseCodes.d.ts +22 -0
  29. package/dist/neutral/Dns/types/ResponseCodes.d.ts.map +1 -0
  30. package/dist/neutral/{DNS → Dns}/types/index.d.ts.map +1 -1
  31. package/dist/neutral/Domain/Domain.d.ts +55 -22
  32. package/dist/neutral/Domain/Domain.d.ts.map +1 -1
  33. package/dist/neutral/Domain/DomainLease.d.ts +67 -15
  34. package/dist/neutral/Domain/DomainLease.d.ts.map +1 -1
  35. package/dist/neutral/DomainRegistration/DomainRegistration.d.ts +123 -23
  36. package/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +1 -1
  37. package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +137 -19
  38. package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
  39. package/dist/neutral/Duration/Duration.d.ts +6 -10
  40. package/dist/neutral/Duration/Duration.d.ts.map +1 -1
  41. package/dist/neutral/Hash/Payload.d.ts +60 -11
  42. package/dist/neutral/Hash/Payload.d.ts.map +1 -1
  43. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +52 -11
  44. package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
  45. package/dist/neutral/index.d.ts +1 -1
  46. package/dist/neutral/index.mjs +603 -207
  47. package/dist/neutral/index.mjs.map +4 -4
  48. package/package.json +17 -17
  49. package/dist/neutral/DNS/Witness/Payload/Request.d.ts +0 -27
  50. package/dist/neutral/DNS/Witness/Payload/Request.d.ts.map +0 -1
  51. package/dist/neutral/DNS/Witness/Payload/Response.d.ts +0 -20
  52. package/dist/neutral/DNS/Witness/Payload/Response.d.ts.map +0 -1
  53. package/dist/neutral/DNS/index.d.ts.map +0 -1
  54. package/dist/neutral/DNS/types/Answer.d.ts +0 -5
  55. package/dist/neutral/DNS/types/Answer.d.ts.map +0 -1
  56. package/dist/neutral/DNS/types/Header.d.ts +0 -71
  57. package/dist/neutral/DNS/types/Header.d.ts.map +0 -1
  58. package/dist/neutral/DNS/types/OperationCodes.d.ts +0 -4
  59. package/dist/neutral/DNS/types/OperationCodes.d.ts.map +0 -1
  60. package/dist/neutral/DNS/types/Record.d.ts +0 -8
  61. package/dist/neutral/DNS/types/Record.d.ts.map +0 -1
  62. package/dist/neutral/DNS/types/Request.d.ts +0 -23
  63. package/dist/neutral/DNS/types/Request.d.ts.map +0 -1
  64. package/dist/neutral/DNS/types/ResourceRecord.d.ts +0 -5
  65. package/dist/neutral/DNS/types/ResourceRecord.d.ts.map +0 -1
  66. package/dist/neutral/DNS/types/Response.d.ts +0 -11
  67. package/dist/neutral/DNS/types/Response.d.ts.map +0 -1
  68. package/dist/neutral/DNS/types/ResponseCodes.d.ts +0 -4
  69. package/dist/neutral/DNS/types/ResponseCodes.d.ts.map +0 -1
  70. /package/dist/neutral/{DNS → Dns}/Witness/Config.d.ts +0 -0
  71. /package/dist/neutral/{DNS → Dns}/Witness/Params.d.ts +0 -0
  72. /package/dist/neutral/{DNS → Dns}/Witness/Payload/Payload.d.ts +0 -0
  73. /package/dist/neutral/{DNS → Dns}/Witness/Payload/index.d.ts +0 -0
  74. /package/dist/neutral/{DNS → Dns}/Witness/Schema.d.ts +0 -0
  75. /package/dist/neutral/{DNS → Dns}/Witness/index.d.ts +0 -0
  76. /package/dist/neutral/{DNS → Dns}/index.d.ts +0 -0
  77. /package/dist/neutral/{DNS → Dns}/types/index.d.ts +0 -0
@@ -1,30 +1,148 @@
1
- import type { Payload, WithSources } from '@xyo-network/sdk-js';
2
- import type { DurationFields } from '../Duration/index.ts';
3
- import type { DomainRegistrationFields } from './DomainRegistration.ts';
1
+ import * as z from 'zod/mini';
4
2
  export declare const DomainRegistrationLeaseSchema: string & {
5
3
  readonly __schema: true;
6
4
  };
7
5
  export type DomainRegistrationLeaseSchema = typeof DomainRegistrationLeaseSchema;
8
- export interface DomainRegistrationLeaseFields extends DomainRegistrationFields, DurationFields {
9
- }
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>;
10
23
  /**
11
24
  * Temporal delegation of a domain to a registrar by a registrant
12
25
  */
13
- export type DomainRegistrationLease = Payload<DomainRegistrationLeaseFields, DomainRegistrationLeaseSchema>;
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>;
14
46
  /**
15
47
  * Identity function for DomainRegistrationLease payload
16
48
  */
17
- export declare const isDomainRegistrationLease: (x?: unknown) => x is DomainRegistrationLease;
18
- export declare const asDomainRegistrationLease: import("@xylabs/sdk-js").AsTypeFunction<DomainRegistrationLease>;
19
- export declare const asOptionalDomainRegistrationLease: (value: import("@xylabs/sdk-js").AnyNonPromise) => DomainRegistrationLease | undefined;
20
- /**
21
- * Identity function for DomainRegistrationLease payload with sources
22
- */
23
- export declare const isDomainRegistrationLeaseWithSources: (x?: unknown) => x is WithSources<WithSources<DomainRegistrationLease>>;
24
- export declare const asDomainRegistrationLeaseWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<DomainRegistrationLease>>;
25
- export declare const asOptionalDomainRegistrationLeaseWithSources: (value: import("@xylabs/sdk-js").AnyNonPromise) => WithSources<DomainRegistrationLease> | undefined;
26
- /**
27
- * @deprecated Use isDomainRegistrationLeaseWithSources instead
28
- */
29
- export declare const isDomainRegistrationLeaseSources: (x?: unknown) => x is WithSources<WithSources<DomainRegistrationLease>>;
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("@xylabs/sdk-js").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("@xylabs/sdk-js").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
+ };
30
148
  //# sourceMappingURL=DomainRegistrationLease.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAK/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAGvE,eAAO,MAAM,6BAA6B;;CAAsD,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB,EAAE,cAAc;CAAG;AAElG;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,6BAA6B,EAAE,6BAA6B,CAAC,CAAA;AAE3G;;GAEG;AACH,eAAO,MAAM,yBAAyB,+CAAgF,CAAA;AACtH,eAAO,MAAM,yBAAyB,kEAA6E,CAAA;AACnH,eAAO,MAAM,iCAAiC,wFAAqF,CAAA;AAEnI;;GAEG;AACH,eAAO,MAAM,oCAAoC,yEAAwG,CAAA;AACzJ,eAAO,MAAM,oCAAoC,+EAAqG,CAAA;AACtJ,eAAO,MAAM,4CAA4C,qGACoC,CAAA;AAE7F;;GAEG;AACH,eAAO,MAAM,gCAAgC,yEAAuC,CAAA"}
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,11 +1,7 @@
1
- export interface DurationFields {
2
- /**
3
- * A timestamp that indicates the expiration time of the record
4
- */
5
- exp: number;
6
- /**
7
- * A timestamp that indicates the time before which the record is not valid
8
- */
9
- nbf: number;
10
- }
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>;
11
7
  //# sourceMappingURL=Duration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../../../src/Duration/Duration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ"}
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,19 +1,68 @@
1
- import type { Hash } from '@xylabs/sdk-js';
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 HashRecordSchema = typeof HashRecordSchema;
5
3
  export declare const HashRecordSchema: "network.xyo.ns.record.hash" & {
6
4
  readonly __schema: true;
7
5
  };
8
- export interface HashRecordFields extends DomainFields {
9
- /**
10
- * The hash the record points to
11
- */
12
- hash: Hash[];
13
- }
6
+ export declare const HashRecordFieldsZod: z.ZodMiniObject<{
7
+ hash: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
8
+ domain: z.ZodMiniString<string>;
9
+ tld: z.ZodMiniLiteral<"xyo">;
10
+ }, z.core.$strip>;
11
+ export type HashRecordFields = z.infer<typeof HashRecordFieldsZod>;
14
12
  /**
15
13
  * An hash record points a domain to an hash
16
14
  */
17
- export type HashRecord = Payload<HashRecordFields, HashRecordSchema>;
18
- export declare const isHashRecord: (x?: unknown) => x is HashRecord;
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("@xylabs/sdk-js").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("@xylabs/sdk-js").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("@xylabs/sdk-js").BrandedHash[];
38
+ domain: string;
39
+ tld: "xyo";
40
+ }) | undefined;
41
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
42
+ schema: "network.xyo.ns.record.hash" & {
43
+ readonly __schema: true;
44
+ };
45
+ hash: import("@xylabs/sdk-js").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("@xylabs/sdk-js").BrandedHash[];
56
+ domain: string;
57
+ tld: "xyo";
58
+ }) | undefined;
59
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
60
+ schema: "network.xyo.ns.record.hash" & {
61
+ readonly __schema: true;
62
+ };
63
+ hash: import("@xylabs/sdk-js").BrandedHash[];
64
+ domain: string;
65
+ tld: "xyo";
66
+ };
67
+ };
19
68
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Hash/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AACtD,eAAO,MAAM,gBAAgB;;CAA+C,CAAA;AAE5E,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;OAEG;IACH,IAAI,EAAE,IAAI,EAAE,CAAA;CACb;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;AAEpE,eAAO,MAAM,YAAY,kCAAsD,CAAA"}
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,5 +1,9 @@
1
- import type { Payload } from '@xyo-network/sdk-js';
2
- import { DomainLeaseEstimateDivinerValidationErrorDetailsSchema } from '../Schema.ts';
1
+ import * as z from 'zod/mini';
2
+ export declare const ErrorDetailsZod: z.ZodMiniObject<{
3
+ code: z.ZodMiniOptional<z.ZodMiniString<string>>;
4
+ detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
5
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
6
+ }, z.core.$strip>;
3
7
  export interface ErrorDetails<TErrorCode extends string | undefined = string | undefined> {
4
8
  [key: string]: any;
5
9
  /**
@@ -21,13 +25,50 @@ export type ErrorDetailsDictionary<T extends number = number> = {
21
25
  /**
22
26
  * A payment authorization token payload
23
27
  */
24
- export type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends string | undefined = string> = Payload<ErrorDetails<TErrorCode>, DomainLeaseEstimateDivinerValidationErrorDetailsSchema>;
25
- /**
26
- * Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload
27
- */
28
- export declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown) => x is DomainLeaseEstimateDivinerValidationErrorDetails<string>;
29
- /**
30
- * Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload with sources
31
- */
32
- export declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown) => x is import("@xyo-network/sdk-js").WithSources<DomainLeaseEstimateDivinerValidationErrorDetails<string>>;
28
+ export declare const DomainLeaseEstimateDivinerValidationErrorDetailsZod: z.ZodMiniObject<{
29
+ schema: z.ZodMiniLiteral<"network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details" & {
30
+ readonly __schema: true;
31
+ }>;
32
+ code: z.ZodMiniOptional<z.ZodMiniString<string>>;
33
+ detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
34
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
35
+ }, z.core.$strip>;
36
+ export type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends string | undefined = string> = Omit<z.infer<typeof DomainLeaseEstimateDivinerValidationErrorDetailsZod>, keyof ErrorDetails> & ErrorDetails<TErrorCode>;
37
+ export declare const isDomainLeaseEstimateDivinerValidationErrorDetails: <TErrorCode extends string | undefined = string>(x?: unknown) => x is DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode>;
38
+ export declare const asDomainLeaseEstimateDivinerValidationErrorDetails: {
39
+ <T>(value: T): (T & {
40
+ schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details" & {
41
+ readonly __schema: true;
42
+ };
43
+ code?: string | undefined;
44
+ detail?: string | undefined;
45
+ title?: string | undefined;
46
+ }) | undefined;
47
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
48
+ schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details" & {
49
+ readonly __schema: true;
50
+ };
51
+ code?: string | undefined;
52
+ detail?: string | undefined;
53
+ title?: string | undefined;
54
+ };
55
+ };
56
+ export declare const toDomainLeaseEstimateDivinerValidationErrorDetails: {
57
+ <T>(value: T): (T & {
58
+ schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details" & {
59
+ readonly __schema: true;
60
+ };
61
+ code?: string | undefined;
62
+ detail?: string | undefined;
63
+ title?: string | undefined;
64
+ }) | undefined;
65
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
66
+ schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details" & {
67
+ readonly __schema: true;
68
+ };
69
+ code?: string | undefined;
70
+ detail?: string | undefined;
71
+ title?: string | undefined;
72
+ };
73
+ };
33
74
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,sDAAsD,EAAE,MAAM,cAAc,CAAA;AAErF,MAAM,WAAW,YAAY,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAEtF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC9D,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;CACxC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,gDAAgD,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,IAAI,OAAO,CACpH,YAAY,CAAC,UAAU,CAAC,EACxB,sDAAsD,CACvD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kDAAkD,gFAE9D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,6DAA6D,2HACoE,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,eAAe;;;;iBAa1B,CAAA;AAEF,MAAM,WAAW,YAAY,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAEtF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC9D,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;CACxC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mDAAmD;;;;;;;iBAG/D,CAAA;AAED,MAAM,MAAM,gDAAgD,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,IACvG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,mDAAmD,CAAC,EAAE,MAAM,YAAY,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;AAM5H,eAAO,MAAM,kDAAkD,GAAI,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,EAC/G,IAAI,OAAO,KACV,CAAC,IAAI,gDAAgD,CAAC,UAAU,CAA8D,CAAA;AACjI,eAAO,MAAM,kDAAkD;;;;;;;;;;;;;;;;;CAG9D,CAAA;AACD,eAAO,MAAM,kDAAkD;;;;;;;;;;;;;;;;;CAG9D,CAAA"}
@@ -1,6 +1,6 @@
1
1
  export * from './Address/index.ts';
2
2
  export * from './diviner/index.ts';
3
- export * from './DNS/index.ts';
3
+ export * from './Dns/index.ts';
4
4
  export * from './Domain/index.ts';
5
5
  export * from './DomainEstimate/index.ts';
6
6
  export * from './DomainRegistration/index.ts';