moeralib 0.15.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/LICENSE +201 -0
- package/README.md +8 -0
- package/lib/naming/index.js +14 -0
- package/lib/naming/naming.js +203 -0
- package/lib/naming/schemas.mjs +184 -0
- package/lib/naming/types.js +2 -0
- package/lib/naming/validate.js +9 -0
- package/lib/naming/validators.js +2065 -0
- package/lib/node/caller.js +267 -0
- package/lib/node/cartes.js +55 -0
- package/lib/node/index.js +13 -0
- package/lib/node/node.js +1405 -0
- package/lib/node/schemas.mjs +4582 -0
- package/lib/node/types.js +3 -0
- package/lib/node/validate.js +9 -0
- package/lib/node/validators.js +60225 -0
- package/lib/schema.js +20 -0
- package/lib/schemas-compile.mjs +42 -0
- package/lib/universal-location.js +164 -0
- package/lib/util.js +42 -0
- package/nodejs-moera-api/nodejs-moera-api +4 -0
- package/nodejs-moera-api/nodejsmoeraapi.py +578 -0
- package/package.json +65 -0
- package/src/naming/index.ts +12 -0
- package/src/naming/naming.ts +234 -0
- package/src/naming/schemas.mjs +194 -0
- package/src/naming/types.ts +39 -0
- package/src/naming/validate.ts +6 -0
- package/src/naming/validators.d.ts +3 -0
- package/src/naming/validators.js +2084 -0
- package/src/node/caller.ts +311 -0
- package/src/node/cartes.ts +51 -0
- package/src/node/index.ts +3 -0
- package/src/node/node.ts +1285 -0
- package/src/node/schemas.mjs +4715 -0
- package/src/node/types.ts +1544 -0
- package/src/node/validate.ts +6 -0
- package/src/node/validators.d.ts +3 -0
- package/src/node/validators.js +60484 -0
- package/src/schema.ts +30 -0
- package/src/schemas-compile.mjs +51 -0
- package/src/universal-location.ts +212 -0
- package/src/util.ts +42 -0
- package/tsconfig.json +112 -0
- package/typings/naming/index.d.ts +2 -0
- package/typings/naming/index.d.ts.map +1 -0
- package/typings/naming/naming.d.ts +31 -0
- package/typings/naming/naming.d.ts.map +1 -0
- package/typings/naming/schemas.d.mts +271 -0
- package/typings/naming/schemas.d.mts.map +1 -0
- package/typings/naming/types.d.ts +35 -0
- package/typings/naming/types.d.ts.map +1 -0
- package/typings/naming/validate.d.ts +3 -0
- package/typings/naming/validate.d.ts.map +1 -0
- package/typings/naming/validators.d.ts +73 -0
- package/typings/naming/validators.d.ts.map +1 -0
- package/typings/node/caller.d.ts +52 -0
- package/typings/node/caller.d.ts.map +1 -0
- package/typings/node/cartes.d.ts +13 -0
- package/typings/node/cartes.d.ts.map +1 -0
- package/typings/node/index.d.ts +4 -0
- package/typings/node/index.d.ts.map +1 -0
- package/typings/node/node.d.ts +176 -0
- package/typings/node/node.d.ts.map +1 -0
- package/typings/node/schemas.d.mts +6205 -0
- package/typings/node/schemas.d.mts.map +1 -0
- package/typings/node/types.d.ts +1340 -0
- package/typings/node/types.d.ts.map +1 -0
- package/typings/node/validate.d.ts +3 -0
- package/typings/node/validate.d.ts.map +1 -0
- package/typings/node/validators.d.ts +920 -0
- package/typings/node/validators.d.ts.map +1 -0
- package/typings/schema.d.ts +18 -0
- package/typings/schema.d.ts.map +1 -0
- package/typings/schemas-compile.d.mts +2 -0
- package/typings/schemas-compile.d.mts.map +1 -0
- package/typings/universal-location.d.ts +25 -0
- package/typings/universal-location.d.ts.map +1 -0
- package/typings/util.d.ts +6 -0
- package/typings/util.d.ts.map +1 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
export namespace NAMING_API_SCHEMAS {
|
|
2
|
+
let $id: string;
|
|
3
|
+
namespace definitions {
|
|
4
|
+
namespace ObjectResult {
|
|
5
|
+
let type: string;
|
|
6
|
+
namespace properties {
|
|
7
|
+
namespace jsonrpc {
|
|
8
|
+
let type_1: string;
|
|
9
|
+
export { type_1 as type };
|
|
10
|
+
}
|
|
11
|
+
namespace result {
|
|
12
|
+
let type_2: string;
|
|
13
|
+
export { type_2 as type };
|
|
14
|
+
export let nullable: boolean;
|
|
15
|
+
}
|
|
16
|
+
namespace id {
|
|
17
|
+
let type_3: string;
|
|
18
|
+
export { type_3 as type };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
let additionalProperties: boolean;
|
|
22
|
+
let required: string[];
|
|
23
|
+
}
|
|
24
|
+
namespace BooleanResult {
|
|
25
|
+
let type_4: string;
|
|
26
|
+
export { type_4 as type };
|
|
27
|
+
export namespace properties_1 {
|
|
28
|
+
export namespace jsonrpc_1 {
|
|
29
|
+
let type_5: string;
|
|
30
|
+
export { type_5 as type };
|
|
31
|
+
}
|
|
32
|
+
export { jsonrpc_1 as jsonrpc };
|
|
33
|
+
export namespace result_1 {
|
|
34
|
+
let type_6: string;
|
|
35
|
+
export { type_6 as type };
|
|
36
|
+
let nullable_1: boolean;
|
|
37
|
+
export { nullable_1 as nullable };
|
|
38
|
+
}
|
|
39
|
+
export { result_1 as result };
|
|
40
|
+
export namespace id_1 {
|
|
41
|
+
let type_7: string;
|
|
42
|
+
export { type_7 as type };
|
|
43
|
+
}
|
|
44
|
+
export { id_1 as id };
|
|
45
|
+
}
|
|
46
|
+
export { properties_1 as properties };
|
|
47
|
+
let additionalProperties_1: boolean;
|
|
48
|
+
export { additionalProperties_1 as additionalProperties };
|
|
49
|
+
let required_1: string[];
|
|
50
|
+
export { required_1 as required };
|
|
51
|
+
}
|
|
52
|
+
namespace StringResult {
|
|
53
|
+
let type_8: string;
|
|
54
|
+
export { type_8 as type };
|
|
55
|
+
export namespace properties_2 {
|
|
56
|
+
export namespace jsonrpc_2 {
|
|
57
|
+
let type_9: string;
|
|
58
|
+
export { type_9 as type };
|
|
59
|
+
}
|
|
60
|
+
export { jsonrpc_2 as jsonrpc };
|
|
61
|
+
export namespace result_2 {
|
|
62
|
+
let type_10: string;
|
|
63
|
+
export { type_10 as type };
|
|
64
|
+
let nullable_2: boolean;
|
|
65
|
+
export { nullable_2 as nullable };
|
|
66
|
+
}
|
|
67
|
+
export { result_2 as result };
|
|
68
|
+
export namespace id_2 {
|
|
69
|
+
let type_11: string;
|
|
70
|
+
export { type_11 as type };
|
|
71
|
+
}
|
|
72
|
+
export { id_2 as id };
|
|
73
|
+
}
|
|
74
|
+
export { properties_2 as properties };
|
|
75
|
+
let additionalProperties_2: boolean;
|
|
76
|
+
export { additionalProperties_2 as additionalProperties };
|
|
77
|
+
let required_2: string[];
|
|
78
|
+
export { required_2 as required };
|
|
79
|
+
}
|
|
80
|
+
namespace ErrorResult {
|
|
81
|
+
let type_12: string;
|
|
82
|
+
export { type_12 as type };
|
|
83
|
+
export namespace properties_3 {
|
|
84
|
+
export namespace jsonrpc_3 {
|
|
85
|
+
let type_13: string;
|
|
86
|
+
export { type_13 as type };
|
|
87
|
+
}
|
|
88
|
+
export { jsonrpc_3 as jsonrpc };
|
|
89
|
+
export namespace error {
|
|
90
|
+
let type_14: string;
|
|
91
|
+
export { type_14 as type };
|
|
92
|
+
export namespace properties_4 {
|
|
93
|
+
namespace code {
|
|
94
|
+
let type_15: string;
|
|
95
|
+
export { type_15 as type };
|
|
96
|
+
}
|
|
97
|
+
namespace message {
|
|
98
|
+
let type_16: string;
|
|
99
|
+
export { type_16 as type };
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export { properties_4 as properties };
|
|
103
|
+
let additionalProperties_3: boolean;
|
|
104
|
+
export { additionalProperties_3 as additionalProperties };
|
|
105
|
+
let required_3: string[];
|
|
106
|
+
export { required_3 as required };
|
|
107
|
+
}
|
|
108
|
+
export namespace id_3 {
|
|
109
|
+
let type_17: string;
|
|
110
|
+
export { type_17 as type };
|
|
111
|
+
}
|
|
112
|
+
export { id_3 as id };
|
|
113
|
+
}
|
|
114
|
+
export { properties_3 as properties };
|
|
115
|
+
let additionalProperties_4: boolean;
|
|
116
|
+
export { additionalProperties_4 as additionalProperties };
|
|
117
|
+
let required_4: string[];
|
|
118
|
+
export { required_4 as required };
|
|
119
|
+
}
|
|
120
|
+
namespace OperationStatus {
|
|
121
|
+
let type_18: string;
|
|
122
|
+
export { type_18 as type };
|
|
123
|
+
let _enum: string[];
|
|
124
|
+
export { _enum as enum };
|
|
125
|
+
}
|
|
126
|
+
namespace OperationStatusInfo {
|
|
127
|
+
let type_19: string;
|
|
128
|
+
export { type_19 as type };
|
|
129
|
+
export namespace properties_5 {
|
|
130
|
+
namespace operationId {
|
|
131
|
+
let type_20: string;
|
|
132
|
+
export { type_20 as type };
|
|
133
|
+
}
|
|
134
|
+
namespace name {
|
|
135
|
+
let type_21: string;
|
|
136
|
+
export { type_21 as type };
|
|
137
|
+
}
|
|
138
|
+
namespace generation {
|
|
139
|
+
let type_22: string;
|
|
140
|
+
export { type_22 as type };
|
|
141
|
+
}
|
|
142
|
+
namespace status {
|
|
143
|
+
let $ref: string;
|
|
144
|
+
}
|
|
145
|
+
namespace added {
|
|
146
|
+
let type_23: string;
|
|
147
|
+
export { type_23 as type };
|
|
148
|
+
let nullable_3: boolean;
|
|
149
|
+
export { nullable_3 as nullable };
|
|
150
|
+
}
|
|
151
|
+
namespace completed {
|
|
152
|
+
let type_24: string;
|
|
153
|
+
export { type_24 as type };
|
|
154
|
+
let nullable_4: boolean;
|
|
155
|
+
export { nullable_4 as nullable };
|
|
156
|
+
}
|
|
157
|
+
namespace errorCode {
|
|
158
|
+
let type_25: string;
|
|
159
|
+
export { type_25 as type };
|
|
160
|
+
let nullable_5: boolean;
|
|
161
|
+
export { nullable_5 as nullable };
|
|
162
|
+
}
|
|
163
|
+
namespace errorMessage {
|
|
164
|
+
let type_26: string;
|
|
165
|
+
export { type_26 as type };
|
|
166
|
+
let nullable_6: boolean;
|
|
167
|
+
export { nullable_6 as nullable };
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export { properties_5 as properties };
|
|
171
|
+
let additionalProperties_5: boolean;
|
|
172
|
+
export { additionalProperties_5 as additionalProperties };
|
|
173
|
+
let required_5: string[];
|
|
174
|
+
export { required_5 as required };
|
|
175
|
+
}
|
|
176
|
+
namespace RegisteredNameInfo {
|
|
177
|
+
let type_27: string;
|
|
178
|
+
export { type_27 as type };
|
|
179
|
+
export namespace properties_6 {
|
|
180
|
+
export namespace name_1 {
|
|
181
|
+
let type_28: string;
|
|
182
|
+
export { type_28 as type };
|
|
183
|
+
}
|
|
184
|
+
export { name_1 as name };
|
|
185
|
+
export namespace generation_1 {
|
|
186
|
+
let type_29: string;
|
|
187
|
+
export { type_29 as type };
|
|
188
|
+
export let minimum: number;
|
|
189
|
+
}
|
|
190
|
+
export { generation_1 as generation };
|
|
191
|
+
export namespace updatingKey {
|
|
192
|
+
let type_30: string;
|
|
193
|
+
export { type_30 as type };
|
|
194
|
+
let nullable_7: boolean;
|
|
195
|
+
export { nullable_7 as nullable };
|
|
196
|
+
}
|
|
197
|
+
export namespace nodeUri {
|
|
198
|
+
let type_31: string;
|
|
199
|
+
export { type_31 as type };
|
|
200
|
+
}
|
|
201
|
+
export namespace created {
|
|
202
|
+
let type_32: string;
|
|
203
|
+
export { type_32 as type };
|
|
204
|
+
let nullable_8: boolean;
|
|
205
|
+
export { nullable_8 as nullable };
|
|
206
|
+
}
|
|
207
|
+
export namespace signingKey {
|
|
208
|
+
let type_33: string;
|
|
209
|
+
export { type_33 as type };
|
|
210
|
+
let nullable_9: boolean;
|
|
211
|
+
export { nullable_9 as nullable };
|
|
212
|
+
}
|
|
213
|
+
export namespace validFrom {
|
|
214
|
+
let type_34: string;
|
|
215
|
+
export { type_34 as type };
|
|
216
|
+
let nullable_10: boolean;
|
|
217
|
+
export { nullable_10 as nullable };
|
|
218
|
+
}
|
|
219
|
+
export namespace digest {
|
|
220
|
+
let type_35: string;
|
|
221
|
+
export { type_35 as type };
|
|
222
|
+
let nullable_11: boolean;
|
|
223
|
+
export { nullable_11 as nullable };
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export { properties_6 as properties };
|
|
227
|
+
let additionalProperties_6: boolean;
|
|
228
|
+
export { additionalProperties_6 as additionalProperties };
|
|
229
|
+
let required_6: string[];
|
|
230
|
+
export { required_6 as required };
|
|
231
|
+
}
|
|
232
|
+
namespace RegisteredNameInfoArray {
|
|
233
|
+
let type_36: string;
|
|
234
|
+
export { type_36 as type };
|
|
235
|
+
export namespace items {
|
|
236
|
+
let $ref_1: string;
|
|
237
|
+
export { $ref_1 as $ref };
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
namespace SigningKeyInfo {
|
|
241
|
+
let type_37: string;
|
|
242
|
+
export { type_37 as type };
|
|
243
|
+
export namespace properties_7 {
|
|
244
|
+
export namespace key {
|
|
245
|
+
let type_38: string;
|
|
246
|
+
export { type_38 as type };
|
|
247
|
+
}
|
|
248
|
+
export namespace validFrom_1 {
|
|
249
|
+
let type_39: string;
|
|
250
|
+
export { type_39 as type };
|
|
251
|
+
}
|
|
252
|
+
export { validFrom_1 as validFrom };
|
|
253
|
+
}
|
|
254
|
+
export { properties_7 as properties };
|
|
255
|
+
let additionalProperties_7: boolean;
|
|
256
|
+
export { additionalProperties_7 as additionalProperties };
|
|
257
|
+
let required_7: string[];
|
|
258
|
+
export { required_7 as required };
|
|
259
|
+
}
|
|
260
|
+
namespace SigningKeyInfoArray {
|
|
261
|
+
let type_40: string;
|
|
262
|
+
export { type_40 as type };
|
|
263
|
+
export namespace items_1 {
|
|
264
|
+
let $ref_2: string;
|
|
265
|
+
export { $ref_2 as $ref };
|
|
266
|
+
}
|
|
267
|
+
export { items_1 as items };
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=schemas.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.mts","sourceRoot":"","sources":["../../src/naming/schemas.mjs"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSONRPCErrorResponse, JSONRPCSuccessResponse } from "json-rpc-2.0";
|
|
2
|
+
interface Result<T> extends JSONRPCSuccessResponse {
|
|
3
|
+
result: T | null;
|
|
4
|
+
}
|
|
5
|
+
export type ObjectResult = Result<object>;
|
|
6
|
+
export type BooleanResult = Result<boolean>;
|
|
7
|
+
export type StringResult = Result<string>;
|
|
8
|
+
export type ErrorResult = JSONRPCErrorResponse;
|
|
9
|
+
export type OperationStatus = "WAITING" | "ADDED" | "STARTED" | "SUCCEEDED" | "FAILED" | "UNKNOWN";
|
|
10
|
+
export interface OperationStatusInfo {
|
|
11
|
+
operationId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
generation: number;
|
|
14
|
+
status: OperationStatus;
|
|
15
|
+
added?: number | null;
|
|
16
|
+
completed?: number | null;
|
|
17
|
+
errorCode?: string | null;
|
|
18
|
+
errorMessage?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface RegisteredNameInfo {
|
|
21
|
+
name: string;
|
|
22
|
+
generation: number;
|
|
23
|
+
updatingKey?: string | null;
|
|
24
|
+
nodeUri: string;
|
|
25
|
+
created?: number | null;
|
|
26
|
+
signingKey?: string | null;
|
|
27
|
+
validFrom?: number | null;
|
|
28
|
+
digest?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface SigningKeyInfo {
|
|
31
|
+
key: string;
|
|
32
|
+
validFrom: number;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/naming/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE5E,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,sBAAsB;IAC9C,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;CACpB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAC5C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnG,MAAM,WAAW,mBAAmB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/naming/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGpE,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAE9E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export function ObjectResult(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
2
|
+
instancePath?: string | undefined;
|
|
3
|
+
parentData: any;
|
|
4
|
+
parentDataProperty: any;
|
|
5
|
+
rootData?: any;
|
|
6
|
+
}): boolean;
|
|
7
|
+
export function BooleanResult(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
8
|
+
instancePath?: string | undefined;
|
|
9
|
+
parentData: any;
|
|
10
|
+
parentDataProperty: any;
|
|
11
|
+
rootData?: any;
|
|
12
|
+
}): boolean;
|
|
13
|
+
export function StringResult(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
14
|
+
instancePath?: string | undefined;
|
|
15
|
+
parentData: any;
|
|
16
|
+
parentDataProperty: any;
|
|
17
|
+
rootData?: any;
|
|
18
|
+
}): boolean;
|
|
19
|
+
export function ErrorResult(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
20
|
+
instancePath?: string | undefined;
|
|
21
|
+
parentData: any;
|
|
22
|
+
parentDataProperty: any;
|
|
23
|
+
rootData?: any;
|
|
24
|
+
}): boolean;
|
|
25
|
+
export function OperationStatus(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
26
|
+
instancePath?: string | undefined;
|
|
27
|
+
parentData: any;
|
|
28
|
+
parentDataProperty: any;
|
|
29
|
+
rootData?: any;
|
|
30
|
+
}): boolean;
|
|
31
|
+
export function OperationStatusInfo(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
32
|
+
instancePath?: string | undefined;
|
|
33
|
+
parentData: any;
|
|
34
|
+
parentDataProperty: any;
|
|
35
|
+
rootData?: any;
|
|
36
|
+
}): boolean;
|
|
37
|
+
export function RegisteredNameInfo(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
38
|
+
instancePath?: string | undefined;
|
|
39
|
+
parentData: any;
|
|
40
|
+
parentDataProperty: any;
|
|
41
|
+
rootData?: any;
|
|
42
|
+
}): boolean;
|
|
43
|
+
export function RegisteredNameInfoArray(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
44
|
+
instancePath?: string | undefined;
|
|
45
|
+
parentData: any;
|
|
46
|
+
parentDataProperty: any;
|
|
47
|
+
rootData?: any;
|
|
48
|
+
}): boolean;
|
|
49
|
+
export function SigningKeyInfo(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
50
|
+
instancePath?: string | undefined;
|
|
51
|
+
parentData: any;
|
|
52
|
+
parentDataProperty: any;
|
|
53
|
+
rootData?: any;
|
|
54
|
+
}): boolean;
|
|
55
|
+
export function SigningKeyInfoArray(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
56
|
+
instancePath?: string | undefined;
|
|
57
|
+
parentData: any;
|
|
58
|
+
parentDataProperty: any;
|
|
59
|
+
rootData?: any;
|
|
60
|
+
}): boolean;
|
|
61
|
+
export namespace NAMING_API_VALIDATORS {
|
|
62
|
+
export { ObjectResult };
|
|
63
|
+
export { BooleanResult };
|
|
64
|
+
export { StringResult };
|
|
65
|
+
export { ErrorResult };
|
|
66
|
+
export { OperationStatus };
|
|
67
|
+
export { OperationStatusInfo };
|
|
68
|
+
export { RegisteredNameInfo };
|
|
69
|
+
export { RegisteredNameInfoArray };
|
|
70
|
+
export { SigningKeyInfo };
|
|
71
|
+
export { SigningKeyInfoArray };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/naming/validators.js"],"names":[],"mappings":"AAMA;;;;;YA0IC;AAKD;;;;;YAgJC;AAKD;;;;;YAgJC;AAKD;;;;;YAiNC;AAKD;;;;;YAsCC;AAKD;;;;;YA4VC;AAKD;;;;;YAmWC;AAKD;;;;;YA6YC;AAKD;;;;;YAsGC;AAKD;;;;;YAgJC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Result } from "./types";
|
|
3
|
+
export declare class MoeraNodeError extends Error {
|
|
4
|
+
constructor(name: string, message: string);
|
|
5
|
+
}
|
|
6
|
+
export declare class MoeraNodeApiError extends MoeraNodeError {
|
|
7
|
+
errorCode: string;
|
|
8
|
+
constructor(name: string, result: Result);
|
|
9
|
+
}
|
|
10
|
+
export declare class MoeraNodeConnectionError extends Error {
|
|
11
|
+
constructor(message: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class MoeraCallError extends Error {
|
|
14
|
+
constructor(message: string);
|
|
15
|
+
}
|
|
16
|
+
type Structure = Partial<Record<string, any>>;
|
|
17
|
+
export type NodeAuth = "none" | "peer" | "admin" | "root-admin";
|
|
18
|
+
export interface CarteSource {
|
|
19
|
+
getCarte: () => Promise<string>;
|
|
20
|
+
}
|
|
21
|
+
export declare function moeraRoot(url: string): string;
|
|
22
|
+
interface CallOptions {
|
|
23
|
+
params?: Partial<Record<string, string | number | boolean | null>> | null;
|
|
24
|
+
method: string;
|
|
25
|
+
body?: Structure | Structure[] | Buffer | null;
|
|
26
|
+
contentType?: string | null;
|
|
27
|
+
auth?: boolean;
|
|
28
|
+
schema: string;
|
|
29
|
+
bodies?: boolean;
|
|
30
|
+
srcBodies?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare class Caller {
|
|
33
|
+
root: string | null;
|
|
34
|
+
private _rootSecret;
|
|
35
|
+
private _token;
|
|
36
|
+
private _carte;
|
|
37
|
+
private _carteSource;
|
|
38
|
+
private _authMethod;
|
|
39
|
+
nodeUrl(url: string): void;
|
|
40
|
+
rootSecret(secret: string): void;
|
|
41
|
+
token(token: string): void;
|
|
42
|
+
carte(carte: string): void;
|
|
43
|
+
carteSource(carteSource: CarteSource): void;
|
|
44
|
+
authMethod(authMethod: NodeAuth): void;
|
|
45
|
+
noAuth(): void;
|
|
46
|
+
auth(): void;
|
|
47
|
+
authAdmin(): void;
|
|
48
|
+
authRootAdmin(): void;
|
|
49
|
+
call(name: string, location: string, { params, method, body, contentType, auth, schema, bodies, srcBodies }: CallOptions): Promise<any>;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=caller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caller.d.ts","sourceRoot":"","sources":["../../src/node/caller.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,MAAM,EAAgB,MAAM,SAAS,CAAC;AAKjE,qBAAa,cAAe,SAAQ,KAAK;gBAEzB,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAI5C;AAED,qBAAa,iBAAkB,SAAQ,cAAc;IAEjD,SAAS,EAAE,MAAM,CAAC;gBAEN,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAK3C;AAED,qBAAa,wBAAyB,SAAQ,KAAK;gBAEnC,OAAO,EAAE,MAAM;CAI9B;AAED,qBAAa,cAAe,SAAQ,KAAK;gBAEzB,OAAO,EAAE,MAAM;CAI9B;AAED,KAAK,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAiF9C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC;AAEhE,MAAM,WAAW,WAAW;IACxB,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACnC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAc7C;AAED,UAAU,WAAW;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAA;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,MAAM;IAEf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC3B,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,WAAW,CAAoB;IAEvC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI1B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAIhC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI1B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI1B,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAI3C,UAAU,CAAC,UAAU,EAAE,QAAQ,GAAG,IAAI;IAItC,MAAM,IAAI,IAAI;IAId,IAAI,IAAI,IAAI;IAIZ,SAAS,IAAI,IAAI;IAIjB,aAAa,IAAI,IAAI;IAIf,IAAI,CACN,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,EACI,MAAa,EACb,MAAc,EACd,IAAW,EACX,WAAkB,EAClB,IAAW,EACX,MAAM,EACN,MAAc,EACd,SAAiB,EACpB,EAAE,WAAW,GACf,OAAO,CAAC,GAAG,CAAC;CA4FlB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CarteSource } from "./caller";
|
|
2
|
+
import { MoeraNode } from "./node";
|
|
3
|
+
export declare class MoeraCartesError extends Error {
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
6
|
+
export declare class MoeraCarteSource implements CarteSource {
|
|
7
|
+
private node;
|
|
8
|
+
private cartes;
|
|
9
|
+
constructor(node: MoeraNode);
|
|
10
|
+
renew(): Promise<void>;
|
|
11
|
+
getCarte(): Promise<string>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=cartes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartes.d.ts","sourceRoot":"","sources":["../../src/node/cartes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,KAAK;gBAE3B,OAAO,EAAE,MAAM;CAI9B;AAMD,qBAAa,gBAAiB,YAAW,WAAW;IAEhD,OAAO,CAAC,IAAI,CAAY;IACxB,OAAO,CAAC,MAAM,CAAmB;gBAErB,IAAI,EAAE,SAAS;IAIrB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAqBpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
|