moeralib 0.15.0 → 0.15.2
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 +1 -1
- package/package.json +3 -3
- package/lib/naming/schemas.mjs +0 -184
- package/lib/node/schemas.mjs +0 -4582
- package/lib/schemas-compile.mjs +0 -42
- package/nodejs-moera-api/nodejs-moera-api +0 -4
- package/nodejs-moera-api/nodejsmoeraapi.py +0 -578
- package/src/naming/index.ts +0 -12
- package/src/naming/naming.ts +0 -234
- package/src/naming/schemas.mjs +0 -194
- package/src/naming/types.ts +0 -39
- package/src/naming/validate.ts +0 -6
- package/src/naming/validators.d.ts +0 -3
- package/src/naming/validators.js +0 -2084
- package/src/node/caller.ts +0 -311
- package/src/node/cartes.ts +0 -51
- package/src/node/index.ts +0 -3
- package/src/node/node.ts +0 -1285
- package/src/node/schemas.mjs +0 -4715
- package/src/node/types.ts +0 -1544
- package/src/node/validate.ts +0 -6
- package/src/node/validators.d.ts +0 -3
- package/src/node/validators.js +0 -60484
- package/src/schema.ts +0 -30
- package/src/schemas-compile.mjs +0 -51
- package/src/universal-location.ts +0 -212
- package/src/util.ts +0 -42
- package/typings/naming/schemas.d.mts +0 -271
- package/typings/naming/schemas.d.mts.map +0 -1
- package/typings/node/schemas.d.mts +0 -6205
- package/typings/node/schemas.d.mts.map +0 -1
- package/typings/schemas-compile.d.mts +0 -2
- package/typings/schemas-compile.d.mts.map +0 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moeralib",
|
|
3
|
-
"version": "0.15.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.15.2",
|
|
4
|
+
"description": "Library to interact with Moera decentralized social network",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/MoeraOrg/typescript-moeralib.git"
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
"types": "./typings/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@types/lodash.clonedeep": "^4.5.9",
|
|
26
25
|
"ajv": "^8.16.0",
|
|
27
26
|
"ajv-formats": "^3.0.1",
|
|
28
27
|
"change-case": "^5.4.4",
|
|
@@ -30,6 +29,7 @@
|
|
|
30
29
|
"lodash.clonedeep": "^4.5.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
32
|
+
"@types/lodash.clonedeep": "^4.5.9",
|
|
33
33
|
"@types/node": "^20.14.2",
|
|
34
34
|
"typescript": "^5.4.5"
|
|
35
35
|
},
|
package/lib/naming/schemas.mjs
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
// This file is for schema compiler only, do not use directly
|
|
2
|
-
export const NAMING_API_SCHEMAS = {
|
|
3
|
-
$id: "naming",
|
|
4
|
-
definitions: {
|
|
5
|
-
ObjectResult: {
|
|
6
|
-
type: "object",
|
|
7
|
-
properties: {
|
|
8
|
-
"jsonrpc": {
|
|
9
|
-
type: "string"
|
|
10
|
-
},
|
|
11
|
-
"result": {
|
|
12
|
-
type: "object",
|
|
13
|
-
nullable: true
|
|
14
|
-
},
|
|
15
|
-
"id": {
|
|
16
|
-
type: "integer"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
additionalProperties: false,
|
|
20
|
-
required: ["jsonrpc", "id"]
|
|
21
|
-
},
|
|
22
|
-
BooleanResult: {
|
|
23
|
-
type: "object",
|
|
24
|
-
properties: {
|
|
25
|
-
"jsonrpc": {
|
|
26
|
-
type: "string"
|
|
27
|
-
},
|
|
28
|
-
"result": {
|
|
29
|
-
type: "boolean",
|
|
30
|
-
nullable: true
|
|
31
|
-
},
|
|
32
|
-
"id": {
|
|
33
|
-
type: "integer"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
additionalProperties: false,
|
|
37
|
-
required: ["jsonrpc", "id"]
|
|
38
|
-
},
|
|
39
|
-
StringResult: {
|
|
40
|
-
type: "object",
|
|
41
|
-
properties: {
|
|
42
|
-
"jsonrpc": {
|
|
43
|
-
type: "string"
|
|
44
|
-
},
|
|
45
|
-
"result": {
|
|
46
|
-
type: "string",
|
|
47
|
-
nullable: true
|
|
48
|
-
},
|
|
49
|
-
"id": {
|
|
50
|
-
type: "integer"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
additionalProperties: false,
|
|
54
|
-
required: ["jsonrpc", "id"]
|
|
55
|
-
},
|
|
56
|
-
ErrorResult: {
|
|
57
|
-
type: "object",
|
|
58
|
-
properties: {
|
|
59
|
-
"jsonrpc": {
|
|
60
|
-
type: "string"
|
|
61
|
-
},
|
|
62
|
-
"error": {
|
|
63
|
-
type: "object",
|
|
64
|
-
properties: {
|
|
65
|
-
"code": {
|
|
66
|
-
type: "integer"
|
|
67
|
-
},
|
|
68
|
-
"message": {
|
|
69
|
-
type: "string"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
additionalProperties: false,
|
|
73
|
-
required: ["code", "message"]
|
|
74
|
-
},
|
|
75
|
-
"id": {
|
|
76
|
-
type: "integer"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
additionalProperties: false,
|
|
80
|
-
required: ["jsonrpc", "error", "id"]
|
|
81
|
-
},
|
|
82
|
-
OperationStatus: {
|
|
83
|
-
type: "string",
|
|
84
|
-
enum: ["WAITING", "ADDED", "STARTED", "SUCCEEDED", "FAILED", "UNKNOWN"]
|
|
85
|
-
},
|
|
86
|
-
OperationStatusInfo: {
|
|
87
|
-
type: "object",
|
|
88
|
-
properties: {
|
|
89
|
-
"operationId": {
|
|
90
|
-
type: "string"
|
|
91
|
-
},
|
|
92
|
-
"name": {
|
|
93
|
-
type: "string"
|
|
94
|
-
},
|
|
95
|
-
"generation": {
|
|
96
|
-
type: "number"
|
|
97
|
-
},
|
|
98
|
-
"status": {
|
|
99
|
-
$ref: "naming#/definitions/OperationStatus"
|
|
100
|
-
},
|
|
101
|
-
"added": {
|
|
102
|
-
type: "integer",
|
|
103
|
-
nullable: true
|
|
104
|
-
},
|
|
105
|
-
"completed": {
|
|
106
|
-
type: "integer",
|
|
107
|
-
nullable: true
|
|
108
|
-
},
|
|
109
|
-
"errorCode": {
|
|
110
|
-
type: "string",
|
|
111
|
-
nullable: true
|
|
112
|
-
},
|
|
113
|
-
"errorMessage": {
|
|
114
|
-
type: "string",
|
|
115
|
-
nullable: true
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
additionalProperties: false,
|
|
119
|
-
required: ["operationId", "name", "generation", "status"]
|
|
120
|
-
},
|
|
121
|
-
RegisteredNameInfo: {
|
|
122
|
-
type: "object",
|
|
123
|
-
properties: {
|
|
124
|
-
"name": {
|
|
125
|
-
type: "string"
|
|
126
|
-
},
|
|
127
|
-
"generation": {
|
|
128
|
-
type: "integer",
|
|
129
|
-
minimum: 0
|
|
130
|
-
},
|
|
131
|
-
"updatingKey": {
|
|
132
|
-
type: "string",
|
|
133
|
-
nullable: true
|
|
134
|
-
},
|
|
135
|
-
"nodeUri": {
|
|
136
|
-
type: "string"
|
|
137
|
-
},
|
|
138
|
-
"created": {
|
|
139
|
-
type: "integer",
|
|
140
|
-
nullable: true
|
|
141
|
-
},
|
|
142
|
-
"signingKey": {
|
|
143
|
-
type: "string",
|
|
144
|
-
nullable: true
|
|
145
|
-
},
|
|
146
|
-
"validFrom": {
|
|
147
|
-
type: "integer",
|
|
148
|
-
nullable: true
|
|
149
|
-
},
|
|
150
|
-
"digest": {
|
|
151
|
-
type: "string",
|
|
152
|
-
nullable: true
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
additionalProperties: false,
|
|
156
|
-
required: ["name", "generation", "nodeUri"]
|
|
157
|
-
},
|
|
158
|
-
RegisteredNameInfoArray: {
|
|
159
|
-
type: "array",
|
|
160
|
-
items: {
|
|
161
|
-
$ref: "naming#/definitions/RegisteredNameInfo"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
SigningKeyInfo: {
|
|
165
|
-
type: "object",
|
|
166
|
-
properties: {
|
|
167
|
-
key: {
|
|
168
|
-
"type": "string"
|
|
169
|
-
},
|
|
170
|
-
validFrom: {
|
|
171
|
-
"type": "number"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
additionalProperties: false,
|
|
175
|
-
required: ["key", "validFrom"]
|
|
176
|
-
},
|
|
177
|
-
SigningKeyInfoArray: {
|
|
178
|
-
type: "array",
|
|
179
|
-
items: {
|
|
180
|
-
$ref: "naming#/definitions/SigningKeyInfo"
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|