@xyo-network/domain-payload-plugin 6.1.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,6 +7,15 @@
7
7
 
8
8
  > Typescript/Javascript Plugins for XYO Platform
9
9
 
10
+ Payload types and resolver for the XYO Domain Schema Authority system: domains publish
11
+ the official JSON schemas for their reverse-domain namespace via an `xyo.json` root file,
12
+ an `xyo.` subdomain, or `_xyo.{domain}` DNS TXT records (per-schema hashes, config-hash
13
+ indirection to a `network.xyo.domain.config` payload, or domain indirection), and
14
+ `DomainSchemaResolver` resolves a schema name to its authoritative definition.
15
+
16
+ See [SPEC.md](SPEC.md) for the authoritative specification (document format, DNS record
17
+ grammar, resolution algorithm, and verification semantics).
18
+
10
19
  ## Install
11
20
 
12
21
  Using npm:
@@ -0,0 +1,219 @@
1
+ import * as z from 'zod/mini';
2
+ /**
3
+ * A domain's xyo config stored as an on-network payload, so it can be referenced from a
4
+ * DNS TXT record by hash (config={hash}). Shares its field set with DomainPayload.
5
+ */
6
+ export declare const DomainConfigPayloadZod: z.ZodMiniObject<{
7
+ schema: z.ZodMiniLiteral<"network.xyo.domain.config" & {
8
+ readonly __schema: true;
9
+ }>;
10
+ additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
11
+ aliases: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
12
+ huri: z.ZodMiniString<string>;
13
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
14
+ }, z.core.$strip>>>;
15
+ networks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<{
16
+ schema: "network.xyo.network" & {
17
+ readonly __schema: true;
18
+ };
19
+ slug: string;
20
+ name?: string | undefined;
21
+ nodes?: {
22
+ schema: "network.xyo.network.node" & {
23
+ readonly __schema: true;
24
+ };
25
+ slug: string;
26
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
27
+ uri: string;
28
+ docs?: string | undefined;
29
+ name?: string | undefined;
30
+ web?: string | undefined;
31
+ }[] | undefined;
32
+ }, {
33
+ schema: "network.xyo.network" & {
34
+ readonly __schema: true;
35
+ };
36
+ slug: string;
37
+ name?: string | undefined;
38
+ nodes?: {
39
+ schema: "network.xyo.network.node" & {
40
+ readonly __schema: true;
41
+ };
42
+ slug: string;
43
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
44
+ uri: string;
45
+ docs?: string | undefined;
46
+ name?: string | undefined;
47
+ web?: string | undefined;
48
+ }[] | undefined;
49
+ }>>>;
50
+ schemas: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
51
+ $id: z.ZodMiniOptional<z.ZodMiniString<string>>;
52
+ }, z.core.$loose>]>>>;
53
+ }, z.core.$strip>;
54
+ export type DomainConfigPayload = z.infer<typeof DomainConfigPayloadZod>;
55
+ export declare const isDomainConfigPayload: <T>(value: T) => value is T & {
56
+ schema: "network.xyo.domain.config" & {
57
+ readonly __schema: true;
58
+ };
59
+ additional?: string[] | undefined;
60
+ aliases?: Record<string, {
61
+ huri: string;
62
+ name?: string | undefined;
63
+ }> | undefined;
64
+ networks?: {
65
+ schema: "network.xyo.network" & {
66
+ readonly __schema: true;
67
+ };
68
+ slug: string;
69
+ name?: string | undefined;
70
+ nodes?: {
71
+ schema: "network.xyo.network.node" & {
72
+ readonly __schema: true;
73
+ };
74
+ slug: string;
75
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
76
+ uri: string;
77
+ docs?: string | undefined;
78
+ name?: string | undefined;
79
+ web?: string | undefined;
80
+ }[] | undefined;
81
+ }[] | undefined;
82
+ schemas?: Record<string, string | {
83
+ [x: string]: unknown;
84
+ $id?: string | undefined;
85
+ }> | undefined;
86
+ };
87
+ export declare const asDomainConfigPayload: {
88
+ <T>(value: T): (T & {
89
+ schema: "network.xyo.domain.config" & {
90
+ readonly __schema: true;
91
+ };
92
+ additional?: string[] | undefined;
93
+ aliases?: Record<string, {
94
+ huri: string;
95
+ name?: string | undefined;
96
+ }> | undefined;
97
+ networks?: {
98
+ schema: "network.xyo.network" & {
99
+ readonly __schema: true;
100
+ };
101
+ slug: string;
102
+ name?: string | undefined;
103
+ nodes?: {
104
+ schema: "network.xyo.network.node" & {
105
+ readonly __schema: true;
106
+ };
107
+ slug: string;
108
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
109
+ uri: string;
110
+ docs?: string | undefined;
111
+ name?: string | undefined;
112
+ web?: string | undefined;
113
+ }[] | undefined;
114
+ }[] | undefined;
115
+ schemas?: Record<string, string | {
116
+ [x: string]: unknown;
117
+ $id?: string | undefined;
118
+ }> | undefined;
119
+ }) | undefined;
120
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
121
+ schema: "network.xyo.domain.config" & {
122
+ readonly __schema: true;
123
+ };
124
+ additional?: string[] | undefined;
125
+ aliases?: Record<string, {
126
+ huri: string;
127
+ name?: string | undefined;
128
+ }> | undefined;
129
+ networks?: {
130
+ schema: "network.xyo.network" & {
131
+ readonly __schema: true;
132
+ };
133
+ slug: string;
134
+ name?: string | undefined;
135
+ nodes?: {
136
+ schema: "network.xyo.network.node" & {
137
+ readonly __schema: true;
138
+ };
139
+ slug: string;
140
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
141
+ uri: string;
142
+ docs?: string | undefined;
143
+ name?: string | undefined;
144
+ web?: string | undefined;
145
+ }[] | undefined;
146
+ }[] | undefined;
147
+ schemas?: Record<string, string | {
148
+ [x: string]: unknown;
149
+ $id?: string | undefined;
150
+ }> | undefined;
151
+ };
152
+ };
153
+ export declare const toDomainConfigPayload: {
154
+ <T>(value: T): (T & {
155
+ schema: "network.xyo.domain.config" & {
156
+ readonly __schema: true;
157
+ };
158
+ additional?: string[] | undefined;
159
+ aliases?: Record<string, {
160
+ huri: string;
161
+ name?: string | undefined;
162
+ }> | undefined;
163
+ networks?: {
164
+ schema: "network.xyo.network" & {
165
+ readonly __schema: true;
166
+ };
167
+ slug: string;
168
+ name?: string | undefined;
169
+ nodes?: {
170
+ schema: "network.xyo.network.node" & {
171
+ readonly __schema: true;
172
+ };
173
+ slug: string;
174
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
175
+ uri: string;
176
+ docs?: string | undefined;
177
+ name?: string | undefined;
178
+ web?: string | undefined;
179
+ }[] | undefined;
180
+ }[] | undefined;
181
+ schemas?: Record<string, string | {
182
+ [x: string]: unknown;
183
+ $id?: string | undefined;
184
+ }> | undefined;
185
+ }) | undefined;
186
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
187
+ schema: "network.xyo.domain.config" & {
188
+ readonly __schema: true;
189
+ };
190
+ additional?: string[] | undefined;
191
+ aliases?: Record<string, {
192
+ huri: string;
193
+ name?: string | undefined;
194
+ }> | undefined;
195
+ networks?: {
196
+ schema: "network.xyo.network" & {
197
+ readonly __schema: true;
198
+ };
199
+ slug: string;
200
+ name?: string | undefined;
201
+ nodes?: {
202
+ schema: "network.xyo.network.node" & {
203
+ readonly __schema: true;
204
+ };
205
+ slug: string;
206
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
207
+ uri: string;
208
+ docs?: string | undefined;
209
+ name?: string | undefined;
210
+ web?: string | undefined;
211
+ }[] | undefined;
212
+ }[] | undefined;
213
+ schemas?: Record<string, string | {
214
+ [x: string]: unknown;
215
+ $id?: string | undefined;
216
+ }> | undefined;
217
+ };
218
+ };
219
+ //# sourceMappingURL=DomainConfigPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomainConfigPayload.d.ts","sourceRoot":"","sources":["../../src/DomainConfigPayload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgF,CAAA;AACnH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AACzE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgE,CAAA;AAClG,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgE,CAAA"}
@@ -0,0 +1,33 @@
1
+ export declare const DomainConfigPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<{
2
+ schema: "network.xyo.domain.config" & {
3
+ readonly __schema: true;
4
+ };
5
+ additional?: string[] | undefined;
6
+ aliases?: Record<string, {
7
+ huri: string;
8
+ name?: string | undefined;
9
+ }> | undefined;
10
+ networks?: {
11
+ schema: "network.xyo.network" & {
12
+ readonly __schema: true;
13
+ };
14
+ slug: string;
15
+ name?: string | undefined;
16
+ nodes?: {
17
+ schema: "network.xyo.network.node" & {
18
+ readonly __schema: true;
19
+ };
20
+ slug: string;
21
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
22
+ uri: string;
23
+ docs?: string | undefined;
24
+ name?: string | undefined;
25
+ web?: string | undefined;
26
+ }[] | undefined;
27
+ }[] | undefined;
28
+ schemas?: Record<string, string | {
29
+ [x: string]: unknown;
30
+ $id?: string | undefined;
31
+ }> | undefined;
32
+ }>;
33
+ //# sourceMappingURL=DomainConfigPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomainConfigPlugin.d.ts","sourceRoot":"","sources":["../../src/DomainConfigPlugin.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const DomainConfigSchema: "network.xyo.domain.config" & {
2
+ readonly __schema: true;
3
+ };
4
+ export type DomainConfigSchema = typeof DomainConfigSchema;
5
+ //# sourceMappingURL=DomainConfigSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomainConfigSchema.d.ts","sourceRoot":"","sources":["../../src/DomainConfigSchema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;CAA8C,CAAA;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { DomainConfigPayload } from './DomainConfigPayload.ts';
2
+ export declare const domainConfigPayloadTemplate: () => DomainConfigPayload;
3
+ //# sourceMappingURL=DomainConfigTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomainConfigTemplate.d.ts","sourceRoot":"","sources":["../../src/DomainConfigTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAGnE,eAAO,MAAM,2BAA2B,QAAO,mBAS7C,CAAA"}
@@ -1,19 +1,282 @@
1
- import type { NetworkPayload } from '@xyo-network/network';
2
- import { type Payload } from '@xyo-network/payload-model';
3
- import { DomainSchema } from './Schema.ts';
4
- export interface Alias {
5
- /** @field huri to the aliased payload */
6
- huri: string;
7
- /** @field canonical name (ex. network.xyo.example) */
8
- name?: string;
9
- }
10
- export type DomainPayload = Payload<{
11
- /** @field Additional config files [huri] [out] */
12
- additional?: string[];
13
- /** @field Values associated with this domain [out] */
14
- aliases?: Record<string, Alias>;
15
- /** @field Known networks [out] */
16
- networks?: NetworkPayload[];
17
- }, DomainSchema>;
18
- export declare const isDomainPayload: (x?: unknown) => x is DomainPayload;
1
+ import * as z from 'zod/mini';
2
+ export declare const AliasZod: z.ZodMiniObject<{
3
+ huri: z.ZodMiniString<string>;
4
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
5
+ }, z.core.$strip>;
6
+ export type Alias = z.infer<typeof AliasZod>;
7
+ /**
8
+ * An inline JSON Schema (draft-07) definition body. If $id is present it must equal the
9
+ * schemas map key; resolvers overwrite $id from the key (the key is authoritative).
10
+ */
11
+ export declare const SchemaDefinitionZod: z.ZodMiniObject<{
12
+ $id: z.ZodMiniOptional<z.ZodMiniString<string>>;
13
+ }, z.core.$loose>;
14
+ export type SchemaDefinition = z.infer<typeof SchemaDefinitionZod>;
15
+ /**
16
+ * One entry in the schemas map: a string is a hash (or HURI href) of a
17
+ * network.xyo.schema payload; an object is an inline JSON Schema definition.
18
+ */
19
+ export declare const SchemaMapEntryZod: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
20
+ $id: z.ZodMiniOptional<z.ZodMiniString<string>>;
21
+ }, z.core.$loose>]>;
22
+ export type SchemaMapEntry = z.infer<typeof SchemaMapEntryZod>;
23
+ export declare const DomainConfigFieldsZod: z.ZodMiniObject<{
24
+ additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
25
+ aliases: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
26
+ huri: z.ZodMiniString<string>;
27
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
28
+ }, z.core.$strip>>>;
29
+ networks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<{
30
+ schema: "network.xyo.network" & {
31
+ readonly __schema: true;
32
+ };
33
+ slug: string;
34
+ name?: string | undefined;
35
+ nodes?: {
36
+ schema: "network.xyo.network.node" & {
37
+ readonly __schema: true;
38
+ };
39
+ slug: string;
40
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
41
+ uri: string;
42
+ docs?: string | undefined;
43
+ name?: string | undefined;
44
+ web?: string | undefined;
45
+ }[] | undefined;
46
+ }, {
47
+ schema: "network.xyo.network" & {
48
+ readonly __schema: true;
49
+ };
50
+ slug: string;
51
+ name?: string | undefined;
52
+ nodes?: {
53
+ schema: "network.xyo.network.node" & {
54
+ readonly __schema: true;
55
+ };
56
+ slug: string;
57
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
58
+ uri: string;
59
+ docs?: string | undefined;
60
+ name?: string | undefined;
61
+ web?: string | undefined;
62
+ }[] | undefined;
63
+ }>>>;
64
+ schemas: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
65
+ $id: z.ZodMiniOptional<z.ZodMiniString<string>>;
66
+ }, z.core.$loose>]>>>;
67
+ }, z.core.$strip>;
68
+ export type DomainConfigFields = z.infer<typeof DomainConfigFieldsZod>;
69
+ export declare const DomainPayloadZod: z.ZodMiniObject<{
70
+ schema: z.ZodMiniLiteral<"network.xyo.domain" & {
71
+ readonly __schema: true;
72
+ }>;
73
+ additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
74
+ aliases: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
75
+ huri: z.ZodMiniString<string>;
76
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
77
+ }, z.core.$strip>>>;
78
+ networks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<{
79
+ schema: "network.xyo.network" & {
80
+ readonly __schema: true;
81
+ };
82
+ slug: string;
83
+ name?: string | undefined;
84
+ nodes?: {
85
+ schema: "network.xyo.network.node" & {
86
+ readonly __schema: true;
87
+ };
88
+ slug: string;
89
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
90
+ uri: string;
91
+ docs?: string | undefined;
92
+ name?: string | undefined;
93
+ web?: string | undefined;
94
+ }[] | undefined;
95
+ }, {
96
+ schema: "network.xyo.network" & {
97
+ readonly __schema: true;
98
+ };
99
+ slug: string;
100
+ name?: string | undefined;
101
+ nodes?: {
102
+ schema: "network.xyo.network.node" & {
103
+ readonly __schema: true;
104
+ };
105
+ slug: string;
106
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
107
+ uri: string;
108
+ docs?: string | undefined;
109
+ name?: string | undefined;
110
+ web?: string | undefined;
111
+ }[] | undefined;
112
+ }>>>;
113
+ schemas: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
114
+ $id: z.ZodMiniOptional<z.ZodMiniString<string>>;
115
+ }, z.core.$loose>]>>>;
116
+ }, z.core.$strip>;
117
+ export type DomainPayload = z.infer<typeof DomainPayloadZod>;
118
+ export declare const isDomainPayload: <T>(value: T) => value is T & {
119
+ schema: "network.xyo.domain" & {
120
+ readonly __schema: true;
121
+ };
122
+ additional?: string[] | undefined;
123
+ aliases?: Record<string, {
124
+ huri: string;
125
+ name?: string | undefined;
126
+ }> | undefined;
127
+ networks?: {
128
+ schema: "network.xyo.network" & {
129
+ readonly __schema: true;
130
+ };
131
+ slug: string;
132
+ name?: string | undefined;
133
+ nodes?: {
134
+ schema: "network.xyo.network.node" & {
135
+ readonly __schema: true;
136
+ };
137
+ slug: string;
138
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
139
+ uri: string;
140
+ docs?: string | undefined;
141
+ name?: string | undefined;
142
+ web?: string | undefined;
143
+ }[] | undefined;
144
+ }[] | undefined;
145
+ schemas?: Record<string, string | {
146
+ [x: string]: unknown;
147
+ $id?: string | undefined;
148
+ }> | undefined;
149
+ };
150
+ export declare const asDomainPayload: {
151
+ <T>(value: T): (T & {
152
+ schema: "network.xyo.domain" & {
153
+ readonly __schema: true;
154
+ };
155
+ additional?: string[] | undefined;
156
+ aliases?: Record<string, {
157
+ huri: string;
158
+ name?: string | undefined;
159
+ }> | undefined;
160
+ networks?: {
161
+ schema: "network.xyo.network" & {
162
+ readonly __schema: true;
163
+ };
164
+ slug: string;
165
+ name?: string | undefined;
166
+ nodes?: {
167
+ schema: "network.xyo.network.node" & {
168
+ readonly __schema: true;
169
+ };
170
+ slug: string;
171
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
172
+ uri: string;
173
+ docs?: string | undefined;
174
+ name?: string | undefined;
175
+ web?: string | undefined;
176
+ }[] | undefined;
177
+ }[] | undefined;
178
+ schemas?: Record<string, string | {
179
+ [x: string]: unknown;
180
+ $id?: string | undefined;
181
+ }> | undefined;
182
+ }) | undefined;
183
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
184
+ schema: "network.xyo.domain" & {
185
+ readonly __schema: true;
186
+ };
187
+ additional?: string[] | undefined;
188
+ aliases?: Record<string, {
189
+ huri: string;
190
+ name?: string | undefined;
191
+ }> | undefined;
192
+ networks?: {
193
+ schema: "network.xyo.network" & {
194
+ readonly __schema: true;
195
+ };
196
+ slug: string;
197
+ name?: string | undefined;
198
+ nodes?: {
199
+ schema: "network.xyo.network.node" & {
200
+ readonly __schema: true;
201
+ };
202
+ slug: string;
203
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
204
+ uri: string;
205
+ docs?: string | undefined;
206
+ name?: string | undefined;
207
+ web?: string | undefined;
208
+ }[] | undefined;
209
+ }[] | undefined;
210
+ schemas?: Record<string, string | {
211
+ [x: string]: unknown;
212
+ $id?: string | undefined;
213
+ }> | undefined;
214
+ };
215
+ };
216
+ export declare const toDomainPayload: {
217
+ <T>(value: T): (T & {
218
+ schema: "network.xyo.domain" & {
219
+ readonly __schema: true;
220
+ };
221
+ additional?: string[] | undefined;
222
+ aliases?: Record<string, {
223
+ huri: string;
224
+ name?: string | undefined;
225
+ }> | undefined;
226
+ networks?: {
227
+ schema: "network.xyo.network" & {
228
+ readonly __schema: true;
229
+ };
230
+ slug: string;
231
+ name?: string | undefined;
232
+ nodes?: {
233
+ schema: "network.xyo.network.node" & {
234
+ readonly __schema: true;
235
+ };
236
+ slug: string;
237
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
238
+ uri: string;
239
+ docs?: string | undefined;
240
+ name?: string | undefined;
241
+ web?: string | undefined;
242
+ }[] | undefined;
243
+ }[] | undefined;
244
+ schemas?: Record<string, string | {
245
+ [x: string]: unknown;
246
+ $id?: string | undefined;
247
+ }> | undefined;
248
+ }) | undefined;
249
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
250
+ schema: "network.xyo.domain" & {
251
+ readonly __schema: true;
252
+ };
253
+ additional?: string[] | undefined;
254
+ aliases?: Record<string, {
255
+ huri: string;
256
+ name?: string | undefined;
257
+ }> | undefined;
258
+ networks?: {
259
+ schema: "network.xyo.network" & {
260
+ readonly __schema: true;
261
+ };
262
+ slug: string;
263
+ name?: string | undefined;
264
+ nodes?: {
265
+ schema: "network.xyo.network.node" & {
266
+ readonly __schema: true;
267
+ };
268
+ slug: string;
269
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
270
+ uri: string;
271
+ docs?: string | undefined;
272
+ name?: string | undefined;
273
+ web?: string | undefined;
274
+ }[] | undefined;
275
+ }[] | undefined;
276
+ schemas?: Record<string, string | {
277
+ [x: string]: unknown;
278
+ $id?: string | undefined;
279
+ }> | undefined;
280
+ };
281
+ };
19
282
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,KAAK;IACpB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAClC,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAC/B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;CAC5B,EAAE,YAAY,CAAC,CAAA;AAEhB,eAAO,MAAM,eAAe,qCAAqD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,QAAQ;;;iBAKnB,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE5C;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;iBAAiD,CAAA;AACjF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAElE;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;mBAA6C,CAAA;AAC3E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0E,CAAA;AACvG,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAA;AAC7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA"}
@@ -1,3 +1,33 @@
1
- import type { DomainPayload } from './Payload.ts';
2
- export declare const DomainPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<DomainPayload>;
1
+ export declare const DomainPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<{
2
+ schema: "network.xyo.domain" & {
3
+ readonly __schema: true;
4
+ };
5
+ additional?: string[] | undefined;
6
+ aliases?: Record<string, {
7
+ huri: string;
8
+ name?: string | undefined;
9
+ }> | undefined;
10
+ networks?: {
11
+ schema: "network.xyo.network" & {
12
+ readonly __schema: true;
13
+ };
14
+ slug: string;
15
+ name?: string | undefined;
16
+ nodes?: {
17
+ schema: "network.xyo.network.node" & {
18
+ readonly __schema: true;
19
+ };
20
+ slug: string;
21
+ type: "archivist" | "diviner" | "bridge" | "sentinel";
22
+ uri: string;
23
+ docs?: string | undefined;
24
+ name?: string | undefined;
25
+ web?: string | undefined;
26
+ }[] | undefined;
27
+ }[] | undefined;
28
+ schemas?: Record<string, string | {
29
+ [x: string]: unknown;
30
+ $id?: string | undefined;
31
+ }> | undefined;
32
+ }>;
3
33
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAKjD,eAAO,MAAM,mBAAmB,0EAK5B,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5B,CAAA"}