@xyo-network/domain-payload-plugin 3.6.0-rc.4 → 3.6.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/Plugin.d.ts +24 -7
- package/dist/neutral/Plugin.d.ts.map +1 -1
- package/dist/neutral/Wrapper.d.ts +120 -31
- package/dist/neutral/Wrapper.d.ts.map +1 -1
- package/package.json +14 -14
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
additional?: string[];
|
|
4
|
-
aliases?:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare const DomainPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
|
|
2
|
+
schema: "network.xyo.domain";
|
|
3
|
+
additional?: string[] | undefined;
|
|
4
|
+
aliases?: {
|
|
5
|
+
[x: string]: {
|
|
6
|
+
huri: string;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
} | undefined;
|
|
10
|
+
networks?: {
|
|
11
|
+
schema: "network.xyo.network";
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
nodes?: {
|
|
14
|
+
schema: "network.xyo.network.node";
|
|
15
|
+
docs?: string | undefined;
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
slug: string;
|
|
18
|
+
type: import("@xyo-network/network").NetworkNodeType;
|
|
19
|
+
uri: string;
|
|
20
|
+
web?: string | undefined;
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
slug: string;
|
|
23
|
+
}[] | undefined;
|
|
24
|
+
}>>;
|
|
8
25
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;GAK5B,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { FetchedPayload } from '@xyo-network/huri';
|
|
3
|
-
import type { NetworkPayload } from '@xyo-network/network';
|
|
4
3
|
import { PayloadWrapper } from '@xyo-network/payload-wrapper';
|
|
5
4
|
import type { Alias, DomainPayload } from './Payload.ts';
|
|
6
5
|
export interface FetchedAlias extends FetchedPayload {
|
|
@@ -8,36 +7,126 @@ export interface FetchedAlias extends FetchedPayload {
|
|
|
8
7
|
}
|
|
9
8
|
export declare class DomainPayloadWrapper<T extends DomainPayload = DomainPayload> extends PayloadWrapper<T> {
|
|
10
9
|
aliases?: FetchedAlias[] | null;
|
|
11
|
-
static discover(reverseDomainName: string, proxy?: string): Promise<DomainPayloadWrapper<import("@xyo-network/payload-model").
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
networks?:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
static
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
10
|
+
static discover(reverseDomainName: string, proxy?: string): Promise<DomainPayloadWrapper<import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
|
|
11
|
+
schema: "network.xyo.domain";
|
|
12
|
+
additional?: string[] | undefined;
|
|
13
|
+
aliases?: {
|
|
14
|
+
[x: string]: {
|
|
15
|
+
huri: string;
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
} | undefined;
|
|
19
|
+
networks?: {
|
|
20
|
+
schema: "network.xyo.network";
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
nodes?: {
|
|
23
|
+
schema: "network.xyo.network.node";
|
|
24
|
+
docs?: string | undefined;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
slug: string;
|
|
27
|
+
type: import("@xyo-network/network").NetworkNodeType;
|
|
28
|
+
uri: string;
|
|
29
|
+
web?: string | undefined;
|
|
30
|
+
}[] | undefined;
|
|
31
|
+
slug: string;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
}>> | undefined>;
|
|
34
|
+
static discoverDNSEntry(domain: string): Promise<DomainPayloadWrapper<import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
|
|
35
|
+
schema: "network.xyo.domain";
|
|
36
|
+
additional?: string[] | undefined;
|
|
37
|
+
aliases?: {
|
|
38
|
+
[x: string]: {
|
|
39
|
+
huri: string;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
} | undefined;
|
|
43
|
+
networks?: {
|
|
44
|
+
schema: "network.xyo.network";
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
nodes?: {
|
|
47
|
+
schema: "network.xyo.network.node";
|
|
48
|
+
docs?: string | undefined;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
slug: string;
|
|
51
|
+
type: import("@xyo-network/network").NetworkNodeType;
|
|
52
|
+
uri: string;
|
|
53
|
+
web?: string | undefined;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
slug: string;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
}>> | undefined>;
|
|
58
|
+
static discoverRootFile(domain: string, proxy?: string): Promise<DomainPayloadWrapper<import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
|
|
59
|
+
schema: "network.xyo.domain";
|
|
60
|
+
additional?: string[] | undefined;
|
|
61
|
+
aliases?: {
|
|
62
|
+
[x: string]: {
|
|
63
|
+
huri: string;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
} | undefined;
|
|
67
|
+
networks?: {
|
|
68
|
+
schema: "network.xyo.network";
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
nodes?: {
|
|
71
|
+
schema: "network.xyo.network.node";
|
|
72
|
+
docs?: string | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
slug: string;
|
|
75
|
+
type: import("@xyo-network/network").NetworkNodeType;
|
|
76
|
+
uri: string;
|
|
77
|
+
web?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
slug: string;
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
}>> | undefined>;
|
|
82
|
+
static discoverRootFileDirect(domain: string): Promise<DomainPayloadWrapper<import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
|
|
83
|
+
schema: "network.xyo.domain";
|
|
84
|
+
additional?: string[] | undefined;
|
|
85
|
+
aliases?: {
|
|
86
|
+
[x: string]: {
|
|
87
|
+
huri: string;
|
|
88
|
+
name?: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
} | undefined;
|
|
91
|
+
networks?: {
|
|
92
|
+
schema: "network.xyo.network";
|
|
93
|
+
name?: string | undefined;
|
|
94
|
+
nodes?: {
|
|
95
|
+
schema: "network.xyo.network.node";
|
|
96
|
+
docs?: string | undefined;
|
|
97
|
+
name?: string | undefined;
|
|
98
|
+
slug: string;
|
|
99
|
+
type: import("@xyo-network/network").NetworkNodeType;
|
|
100
|
+
uri: string;
|
|
101
|
+
web?: string | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
slug: string;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
}>> | undefined>;
|
|
106
|
+
static discoverRootFileWithProxy(domain: string, proxy?: string): Promise<DomainPayloadWrapper<import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
|
|
107
|
+
schema: "network.xyo.domain";
|
|
108
|
+
additional?: string[] | undefined;
|
|
109
|
+
aliases?: {
|
|
110
|
+
[x: string]: {
|
|
111
|
+
huri: string;
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
} | undefined;
|
|
115
|
+
networks?: {
|
|
116
|
+
schema: "network.xyo.network";
|
|
117
|
+
name?: string | undefined;
|
|
118
|
+
nodes?: {
|
|
119
|
+
schema: "network.xyo.network.node";
|
|
120
|
+
docs?: string | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
slug: string;
|
|
123
|
+
type: import("@xyo-network/network").NetworkNodeType;
|
|
124
|
+
uri: string;
|
|
125
|
+
web?: string | undefined;
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
slug: string;
|
|
128
|
+
}[] | undefined;
|
|
129
|
+
}>> | undefined>;
|
|
41
130
|
fetch(networkSlug?: Hash): Promise<void>;
|
|
42
131
|
fetchAliases(networkSlug?: Hash): Promise<void>;
|
|
43
132
|
private fetchAlias;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAKvC,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAKvC,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,mBAAmB,CAAA;AAIpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAExD,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,KAAK,EAAE,KAAK,CAAA;CACb;AAED,qBAAa,oBAAoB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAClG,OAAO,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;WAElB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;WAWlD,gBAAgB,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;WAe/B,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;WAI/C,sBAAsB,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;WASrC,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,SAA6C;;;;;;;;;;;;;;;;;;;;;;;;IAWnG,KAAK,CAAC,WAAW,CAAC,EAAE,IAAI;IAIxB,YAAY,CAAC,WAAW,CAAC,EAAE,IAAI;YAgBvB,UAAU;YAUV,gBAAgB;YAIhB,UAAU;CAGzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/domain-payload-plugin",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
3
|
+
"version": "3.6.0-rc.6",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/axios": "^4.4.
|
|
33
|
-
"@xylabs/hex": "^4.4.
|
|
34
|
-
"@xylabs/object": "^4.4.
|
|
35
|
-
"@xylabs/platform": "^4.4.
|
|
36
|
-
"@xyo-network/api-models": "^3.6.0-rc.
|
|
37
|
-
"@xyo-network/dns": "^3.6.0-rc.
|
|
38
|
-
"@xyo-network/huri": "^3.6.0-rc.
|
|
39
|
-
"@xyo-network/network": "^3.6.0-rc.
|
|
40
|
-
"@xyo-network/payload-builder": "^3.6.0-rc.
|
|
41
|
-
"@xyo-network/payload-model": "^3.6.0-rc.
|
|
42
|
-
"@xyo-network/payload-plugin": "^3.6.0-rc.
|
|
43
|
-
"@xyo-network/payload-wrapper": "^3.6.0-rc.
|
|
32
|
+
"@xylabs/axios": "^4.4.15",
|
|
33
|
+
"@xylabs/hex": "^4.4.15",
|
|
34
|
+
"@xylabs/object": "^4.4.15",
|
|
35
|
+
"@xylabs/platform": "^4.4.15",
|
|
36
|
+
"@xyo-network/api-models": "^3.6.0-rc.6",
|
|
37
|
+
"@xyo-network/dns": "^3.6.0-rc.6",
|
|
38
|
+
"@xyo-network/huri": "^3.6.0-rc.6",
|
|
39
|
+
"@xyo-network/network": "^3.6.0-rc.6",
|
|
40
|
+
"@xyo-network/payload-builder": "^3.6.0-rc.6",
|
|
41
|
+
"@xyo-network/payload-model": "^3.6.0-rc.6",
|
|
42
|
+
"@xyo-network/payload-plugin": "^3.6.0-rc.6",
|
|
43
|
+
"@xyo-network/payload-wrapper": "^3.6.0-rc.6",
|
|
44
44
|
"axios": "^1.7.9"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@xylabs/ts-scripts-yarn3": "^4.2.4",
|
|
48
48
|
"@xylabs/tsconfig": "^4.2.4",
|
|
49
|
-
"@xylabs/vitest-extended": "^4.4.
|
|
49
|
+
"@xylabs/vitest-extended": "^4.4.15",
|
|
50
50
|
"typescript": "^5.7.2",
|
|
51
51
|
"vitest": "^2.1.8"
|
|
52
52
|
},
|