@oasisomniverse/web4-api 2.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 +464 -0
- package/docs/README.md +52 -0
- package/docs/auth.md +89 -0
- package/docs/getting-started.md +129 -0
- package/docs/modules/Avatar.md +4160 -0
- package/docs/modules/Bridge.md +394 -0
- package/docs/modules/Chat.md +168 -0
- package/docs/modules/Clan.md +552 -0
- package/docs/modules/Competition.md +594 -0
- package/docs/modules/Data.md +796 -0
- package/docs/modules/EOSIO.md +508 -0
- package/docs/modules/Eggs.md +396 -0
- package/docs/modules/Files.md +312 -0
- package/docs/modules/Gifts.md +306 -0
- package/docs/modules/Health.md +90 -0
- package/docs/modules/Holochain.md +374 -0
- package/docs/modules/HyperDrive.md +3857 -0
- package/docs/modules/Karma.md +644 -0
- package/docs/modules/Keys.md +3303 -0
- package/docs/modules/Map.md +1026 -0
- package/docs/modules/Messaging.md +320 -0
- package/docs/modules/Nft.md +2216 -0
- package/docs/modules/OLand.md +425 -0
- package/docs/modules/ONET.md +442 -0
- package/docs/modules/ONODE.md +504 -0
- package/docs/modules/Provider.md +1396 -0
- package/docs/modules/Search.md +69 -0
- package/docs/modules/Seeds.md +167 -0
- package/docs/modules/Settings.md +533 -0
- package/docs/modules/Share.md +64 -0
- package/docs/modules/Social.md +190 -0
- package/docs/modules/Solana.md +150 -0
- package/docs/modules/Stats.md +359 -0
- package/docs/modules/Subscription.md +437 -0
- package/docs/modules/Video.md +150 -0
- package/docs/modules/Wallet.md +1993 -0
- package/index.d.ts +106 -0
- package/index.js +3 -0
- package/index.mjs +4 -0
- package/package.json +120 -0
- package/src/core/httpClient.js +110 -0
- package/src/core/routeHelper.js +50 -0
- package/src/core/tokenStore.js +52 -0
- package/src/core/types.d.ts +18 -0
- package/src/index.js +46 -0
- package/src/modules/Auth.d.ts +28 -0
- package/src/modules/Auth.js +98 -0
- package/src/modules/Avatar.d.ts +192 -0
- package/src/modules/Avatar.js +143 -0
- package/src/modules/Bridge.d.ts +24 -0
- package/src/modules/Bridge.js +35 -0
- package/src/modules/Cargo.js +35 -0
- package/src/modules/Chat.d.ts +15 -0
- package/src/modules/Chat.js +27 -0
- package/src/modules/Clan.d.ts +36 -0
- package/src/modules/Clan.js +41 -0
- package/src/modules/Competition.d.ts +33 -0
- package/src/modules/Competition.js +39 -0
- package/src/modules/Core.js +27 -0
- package/src/modules/Data.d.ts +36 -0
- package/src/modules/Data.js +41 -0
- package/src/modules/EOSIO.d.ts +33 -0
- package/src/modules/EOSIO.js +39 -0
- package/src/modules/Eggs.d.ts +24 -0
- package/src/modules/Eggs.js +33 -0
- package/src/modules/Files.d.ts +24 -0
- package/src/modules/Files.js +33 -0
- package/src/modules/Gifts.d.ts +24 -0
- package/src/modules/Gifts.js +33 -0
- package/src/modules/Health.d.ts +12 -0
- package/src/modules/Health.js +25 -0
- package/src/modules/Holochain.d.ts +27 -0
- package/src/modules/Holochain.js +35 -0
- package/src/modules/HyperDrive.d.ts +237 -0
- package/src/modules/HyperDrive.js +175 -0
- package/src/modules/Karma.d.ts +42 -0
- package/src/modules/Karma.js +45 -0
- package/src/modules/Keys.d.ts +183 -0
- package/src/modules/Keys.js +139 -0
- package/src/modules/Map.d.ts +75 -0
- package/src/modules/Map.js +65 -0
- package/src/modules/Messaging.d.ts +24 -0
- package/src/modules/Messaging.js +33 -0
- package/src/modules/Nft.d.ts +102 -0
- package/src/modules/Nft.js +85 -0
- package/src/modules/OAPP.js +31 -0
- package/src/modules/OLand.d.ts +27 -0
- package/src/modules/OLand.js +35 -0
- package/src/modules/ONET.d.ts +39 -0
- package/src/modules/ONET.js +43 -0
- package/src/modules/ONODE.d.ts +45 -0
- package/src/modules/ONODE.js +47 -0
- package/src/modules/Provider.d.ts +99 -0
- package/src/modules/Provider.js +83 -0
- package/src/modules/Search.d.ts +9 -0
- package/src/modules/Search.js +23 -0
- package/src/modules/Seeds.d.ts +15 -0
- package/src/modules/Seeds.js +27 -0
- package/src/modules/Settings.d.ts +48 -0
- package/src/modules/Settings.js +47 -0
- package/src/modules/Share.d.ts +9 -0
- package/src/modules/Share.js +23 -0
- package/src/modules/Social.d.ts +18 -0
- package/src/modules/Social.js +29 -0
- package/src/modules/Solana.d.ts +12 -0
- package/src/modules/Solana.js +25 -0
- package/src/modules/Stats.d.ts +30 -0
- package/src/modules/Stats.js +37 -0
- package/src/modules/Subscription.d.ts +36 -0
- package/src/modules/Subscription.js +41 -0
- package/src/modules/Telos.js +39 -0
- package/src/modules/Video.d.ts +15 -0
- package/src/modules/Video.js +27 -0
- package/src/modules/Wallet.d.ts +102 -0
- package/src/modules/Wallet.js +85 -0
- package/src/modules/index.js +79 -0
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
# ONODE — `oasis.oNODE`
|
|
2
|
+
|
|
3
|
+
Source controller: [`ONODEController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ONODEController.cs)
|
|
4
|
+
Route prefix: `api/v1/onode`
|
|
5
|
+
13 operation(s).
|
|
6
|
+
|
|
7
|
+
Every method takes a single args object: any key matching a `{token}` in the route is substituted into the URL; everything else becomes the query string (GET/DELETE) or JSON body (POST/PUT). Every call resolves to the standard OASIS envelope:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
{
|
|
11
|
+
isError: boolean;
|
|
12
|
+
isWarning: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
errorCode?: string;
|
|
15
|
+
result: T; // see each endpoint's Response section below
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Operations
|
|
20
|
+
|
|
21
|
+
### `getConnectedPeers`
|
|
22
|
+
|
|
23
|
+
Get connected peers
|
|
24
|
+
|
|
25
|
+
**GET** `api/v1/onode/peers`
|
|
26
|
+
|
|
27
|
+
**Request**
|
|
28
|
+
|
|
29
|
+
No request body.
|
|
30
|
+
|
|
31
|
+
**Response**
|
|
32
|
+
|
|
33
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
34
|
+
|
|
35
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
36
|
+
|
|
37
|
+
**Example**
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
const { isError, message, result } = await oasis.oNODE.getConnectedPeers({});
|
|
41
|
+
if (isError) throw new Error(message);
|
|
42
|
+
console.log(result);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Example response:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"isError": false,
|
|
50
|
+
"message": "",
|
|
51
|
+
"result": null
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### `getNodeConfig`
|
|
58
|
+
|
|
59
|
+
Get node configuration
|
|
60
|
+
|
|
61
|
+
**GET** `api/v1/onode/config`
|
|
62
|
+
|
|
63
|
+
**Request**
|
|
64
|
+
|
|
65
|
+
No request body.
|
|
66
|
+
|
|
67
|
+
**Response**
|
|
68
|
+
|
|
69
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
70
|
+
|
|
71
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
72
|
+
|
|
73
|
+
**Example**
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
const { isError, message, result } = await oasis.oNODE.getNodeConfig({});
|
|
77
|
+
if (isError) throw new Error(message);
|
|
78
|
+
console.log(result);
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Example response:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"isError": false,
|
|
86
|
+
"message": "",
|
|
87
|
+
"result": null
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### `getNodeInfo`
|
|
94
|
+
|
|
95
|
+
Get node information
|
|
96
|
+
|
|
97
|
+
**GET** `api/v1/onode/info`
|
|
98
|
+
|
|
99
|
+
**Request**
|
|
100
|
+
|
|
101
|
+
No request body.
|
|
102
|
+
|
|
103
|
+
**Response**
|
|
104
|
+
|
|
105
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
106
|
+
|
|
107
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
108
|
+
|
|
109
|
+
**Example**
|
|
110
|
+
|
|
111
|
+
```js
|
|
112
|
+
const { isError, message, result } = await oasis.oNODE.getNodeInfo({});
|
|
113
|
+
if (isError) throw new Error(message);
|
|
114
|
+
console.log(result);
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Example response:
|
|
118
|
+
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"isError": false,
|
|
122
|
+
"message": "",
|
|
123
|
+
"result": null
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
### `getNodeLogs`
|
|
130
|
+
|
|
131
|
+
Get node logs
|
|
132
|
+
|
|
133
|
+
**GET** `api/v1/onode/logs`
|
|
134
|
+
|
|
135
|
+
**Request**
|
|
136
|
+
|
|
137
|
+
Query parameters:
|
|
138
|
+
|
|
139
|
+
| Field | Type |
|
|
140
|
+
| --- | --- |
|
|
141
|
+
| `lines` | `int? (optional)` |
|
|
142
|
+
|
|
143
|
+
**Response**
|
|
144
|
+
|
|
145
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
146
|
+
|
|
147
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
148
|
+
|
|
149
|
+
**Example**
|
|
150
|
+
|
|
151
|
+
```js
|
|
152
|
+
const { isError, message, result } = await oasis.oNODE.getNodeLogs({
|
|
153
|
+
lines: '<lines>'
|
|
154
|
+
});
|
|
155
|
+
if (isError) throw new Error(message);
|
|
156
|
+
console.log(result);
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Example response:
|
|
160
|
+
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"isError": false,
|
|
164
|
+
"message": "",
|
|
165
|
+
"result": null
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
### `getNodeMetrics`
|
|
172
|
+
|
|
173
|
+
Get node performance metrics
|
|
174
|
+
|
|
175
|
+
**GET** `api/v1/onode/metrics`
|
|
176
|
+
|
|
177
|
+
**Request**
|
|
178
|
+
|
|
179
|
+
No request body.
|
|
180
|
+
|
|
181
|
+
**Response**
|
|
182
|
+
|
|
183
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
184
|
+
|
|
185
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
186
|
+
|
|
187
|
+
**Example**
|
|
188
|
+
|
|
189
|
+
```js
|
|
190
|
+
const { isError, message, result } = await oasis.oNODE.getNodeMetrics({});
|
|
191
|
+
if (isError) throw new Error(message);
|
|
192
|
+
console.log(result);
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Example response:
|
|
196
|
+
|
|
197
|
+
```json
|
|
198
|
+
{
|
|
199
|
+
"isError": false,
|
|
200
|
+
"message": "",
|
|
201
|
+
"result": null
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
### `getNodeStats`
|
|
208
|
+
|
|
209
|
+
Get node statistics
|
|
210
|
+
|
|
211
|
+
**GET** `api/v1/onode/stats`
|
|
212
|
+
|
|
213
|
+
**Request**
|
|
214
|
+
|
|
215
|
+
No request body.
|
|
216
|
+
|
|
217
|
+
**Response**
|
|
218
|
+
|
|
219
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
220
|
+
|
|
221
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
222
|
+
|
|
223
|
+
**Example**
|
|
224
|
+
|
|
225
|
+
```js
|
|
226
|
+
const { isError, message, result } = await oasis.oNODE.getNodeStats({});
|
|
227
|
+
if (isError) throw new Error(message);
|
|
228
|
+
console.log(result);
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Example response:
|
|
232
|
+
|
|
233
|
+
```json
|
|
234
|
+
{
|
|
235
|
+
"isError": false,
|
|
236
|
+
"message": "",
|
|
237
|
+
"result": null
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
### `getNodeStatus`
|
|
244
|
+
|
|
245
|
+
Get node status
|
|
246
|
+
|
|
247
|
+
**GET** `api/v1/onode/status`
|
|
248
|
+
|
|
249
|
+
**Request**
|
|
250
|
+
|
|
251
|
+
No request body.
|
|
252
|
+
|
|
253
|
+
**Response**
|
|
254
|
+
|
|
255
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
256
|
+
|
|
257
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
258
|
+
|
|
259
|
+
**Example**
|
|
260
|
+
|
|
261
|
+
```js
|
|
262
|
+
const { isError, message, result } = await oasis.oNODE.getNodeStatus({});
|
|
263
|
+
if (isError) throw new Error(message);
|
|
264
|
+
console.log(result);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Example response:
|
|
268
|
+
|
|
269
|
+
```json
|
|
270
|
+
{
|
|
271
|
+
"isError": false,
|
|
272
|
+
"message": "",
|
|
273
|
+
"result": null
|
|
274
|
+
}
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
### `getOASISDNA`
|
|
280
|
+
|
|
281
|
+
Get OASISDNA configuration for ONODE
|
|
282
|
+
|
|
283
|
+
**GET** `api/v1/onode/oasisdna`
|
|
284
|
+
|
|
285
|
+
**Request**
|
|
286
|
+
|
|
287
|
+
No request body.
|
|
288
|
+
|
|
289
|
+
**Response**
|
|
290
|
+
|
|
291
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
292
|
+
|
|
293
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
294
|
+
|
|
295
|
+
**Example**
|
|
296
|
+
|
|
297
|
+
```js
|
|
298
|
+
const { isError, message, result } = await oasis.oNODE.getOASISDNA({});
|
|
299
|
+
if (isError) throw new Error(message);
|
|
300
|
+
console.log(result);
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Example response:
|
|
304
|
+
|
|
305
|
+
```json
|
|
306
|
+
{
|
|
307
|
+
"isError": false,
|
|
308
|
+
"message": "",
|
|
309
|
+
"result": null
|
|
310
|
+
}
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
### `restartNode`
|
|
316
|
+
|
|
317
|
+
Restart ONODE
|
|
318
|
+
|
|
319
|
+
**POST** `api/v1/onode/restart`
|
|
320
|
+
|
|
321
|
+
**Request**
|
|
322
|
+
|
|
323
|
+
No request body.
|
|
324
|
+
|
|
325
|
+
**Response**
|
|
326
|
+
|
|
327
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
328
|
+
|
|
329
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
330
|
+
|
|
331
|
+
**Example**
|
|
332
|
+
|
|
333
|
+
```js
|
|
334
|
+
const { isError, message, result } = await oasis.oNODE.restartNode({});
|
|
335
|
+
if (isError) throw new Error(message);
|
|
336
|
+
console.log(result);
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Example response:
|
|
340
|
+
|
|
341
|
+
```json
|
|
342
|
+
{
|
|
343
|
+
"isError": false,
|
|
344
|
+
"message": "",
|
|
345
|
+
"result": null
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
### `startNode`
|
|
352
|
+
|
|
353
|
+
Start ONODE
|
|
354
|
+
|
|
355
|
+
**POST** `api/v1/onode/start`
|
|
356
|
+
|
|
357
|
+
**Request**
|
|
358
|
+
|
|
359
|
+
No request body.
|
|
360
|
+
|
|
361
|
+
**Response**
|
|
362
|
+
|
|
363
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
364
|
+
|
|
365
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
366
|
+
|
|
367
|
+
**Example**
|
|
368
|
+
|
|
369
|
+
```js
|
|
370
|
+
const { isError, message, result } = await oasis.oNODE.startNode({});
|
|
371
|
+
if (isError) throw new Error(message);
|
|
372
|
+
console.log(result);
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
Example response:
|
|
376
|
+
|
|
377
|
+
```json
|
|
378
|
+
{
|
|
379
|
+
"isError": false,
|
|
380
|
+
"message": "",
|
|
381
|
+
"result": null
|
|
382
|
+
}
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
### `stopNode`
|
|
388
|
+
|
|
389
|
+
Stop ONODE
|
|
390
|
+
|
|
391
|
+
**POST** `api/v1/onode/stop`
|
|
392
|
+
|
|
393
|
+
**Request**
|
|
394
|
+
|
|
395
|
+
No request body.
|
|
396
|
+
|
|
397
|
+
**Response**
|
|
398
|
+
|
|
399
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
400
|
+
|
|
401
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
402
|
+
|
|
403
|
+
**Example**
|
|
404
|
+
|
|
405
|
+
```js
|
|
406
|
+
const { isError, message, result } = await oasis.oNODE.stopNode({});
|
|
407
|
+
if (isError) throw new Error(message);
|
|
408
|
+
console.log(result);
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
Example response:
|
|
412
|
+
|
|
413
|
+
```json
|
|
414
|
+
{
|
|
415
|
+
"isError": false,
|
|
416
|
+
"message": "",
|
|
417
|
+
"result": null
|
|
418
|
+
}
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
### `updateNodeConfig`
|
|
424
|
+
|
|
425
|
+
Update node configuration
|
|
426
|
+
|
|
427
|
+
**PUT** `api/v1/onode/config`
|
|
428
|
+
|
|
429
|
+
**Request**
|
|
430
|
+
|
|
431
|
+
Body type: `NodeConfigRequest`
|
|
432
|
+
|
|
433
|
+
| Field | Type |
|
|
434
|
+
| --- | --- |
|
|
435
|
+
| `Config` | `Dictionary<string, object>` |
|
|
436
|
+
|
|
437
|
+
**Response**
|
|
438
|
+
|
|
439
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
440
|
+
|
|
441
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
442
|
+
|
|
443
|
+
**Example**
|
|
444
|
+
|
|
445
|
+
```js
|
|
446
|
+
const { isError, message, result } = await oasis.oNODE.updateNodeConfig({
|
|
447
|
+
config: { "<string>": {} }
|
|
448
|
+
});
|
|
449
|
+
if (isError) throw new Error(message);
|
|
450
|
+
console.log(result);
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
Example response:
|
|
454
|
+
|
|
455
|
+
```json
|
|
456
|
+
{
|
|
457
|
+
"isError": false,
|
|
458
|
+
"message": "",
|
|
459
|
+
"result": null
|
|
460
|
+
}
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
### `updateOASISDNA`
|
|
466
|
+
|
|
467
|
+
Update OASISDNA configuration for ONODE
|
|
468
|
+
|
|
469
|
+
**PUT** `api/v1/onode/oasisdna`
|
|
470
|
+
|
|
471
|
+
**Request**
|
|
472
|
+
|
|
473
|
+
Body type: `OASISDNA`
|
|
474
|
+
|
|
475
|
+
| Field | Type |
|
|
476
|
+
| --- | --- |
|
|
477
|
+
| `OASIS` | `OASIS` |
|
|
478
|
+
|
|
479
|
+
**Response**
|
|
480
|
+
|
|
481
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
482
|
+
|
|
483
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
484
|
+
|
|
485
|
+
**Example**
|
|
486
|
+
|
|
487
|
+
```js
|
|
488
|
+
const { isError, message, result } = await oasis.oNODE.updateOASISDNA({
|
|
489
|
+
oASIS: { "CurrentLiveVersion": "example string", "CurrentStagingVersion": "example string", "OASISVersion": "example string", "Terms": "example string", "Logging": { "LoggingFramework": "example string", "AlsoUseDefaultLogProvider": true, "LogToConsole": true, "ShowColouredLogs": true, "DebugColour": /* <ConsoleColor> */, "InfoColour": /* <ConsoleColor> */, "WarningColour": /* <ConsoleColor> */, "ErrorColour": /* <ConsoleColor> */, "LogToFile": true, "LogPath": "example string", "LogFileName": "example string", "MaxLogFileSize": 1, "NumberOfRetriesToLogToFile": 1, "RetryLoggingToFileEverySeconds": 1, "InsertExtraNewLineAfterLogMessage": true, "IndentLogMessagesBy": 1 }, "ErrorHandling": { "ShowStackTrace": true, "ThrowExceptionsOnErrors": true, "ThrowExceptionsOnWarnings": true, "LogAllErrors": true, "LogAllWarnings": true, "ErrorHandlingBehaviour": { }, "WarningHandlingBehaviour": /* <WarningHandlingBehaviour> */ }, "Security": { "HideVerificationToken": true, "HideRefreshTokens": true, "SecretKey": "example string", "JwtTokenExpirationMinutes": 1, "RefreshTokenExpirationDays": 1, "AvatarPassword": { "BCryptEncryptionEnabled": true, "Rijndael256EncryptionEnabled": true, "Rijndael256Key": "example string", "QuantumEncryptionEnabled": true }, "OASISProviderPrivateKeys": {} }, "Email": { "EmailFrom": "example string", "SmtpHost": "example string", "SmtpPort": 1, "SmtpUser": "example string", "SmtpPass": "example string", "ResendKey": "example string", "DisableAllEmails": true, "SendVerificationEmail": true, "OASISWebSiteURL": "example string" }, "StorageProviders": { "LogSwitchingProvidersToConsole": true, "LogSwitchingProvidersToFile": true, "LogSwitchingProviders": true, "ProviderMethodCallTimeOutSeconds": 1, "ActivateProviderTimeOutSeconds": 1, "DectivateProviderTimeOutSeconds": 1, "AutoReplicationEnabled": true, "AutoFailOverEnabled": true, "AutoFailOverEnabledForAvatarLogin": true, "AutoFailOverEnabledForCheckIfEmailAlreadyInUse": true, "AutoFailOverEnabledForCheckIfUsernameAlreadyInUse": true, "AutoLoadBalanceEnabled": true, "AutoLoadBalanceReadPollIntervalMins": 1, "AutoLoadBalanceWritePollIntervalMins": 1, "AutoReplicationProviders": "example string", "AutoLoadBalanceProviders": "example string", "AutoFailOverProviders": "example string", "AutoFailOverProvidersForAvatarLogin": "example string", "AutoFailOverProvidersForCheckIfEmailAlreadyInUse": "example string", "AutoFailOverProvidersForCheckIfUsernameAlreadyInUse": "example string", "AutoFailOverProvidersForCheckIfOASISSystemAccountExists": "example string", "AutoFailOverLocalProvidersEnabled": true, "AutoFailOverLocalProviders": "example string", "OASISProviderBootType": "example string", "AzureCosmosDBOASIS": { "ServiceEndpoint": "example string", "AuthKey": "example string", "DBName": "example string", "CollectionNames": "example string" }, "HoloOASIS": { "HolochainVersion": { }, "UseLocalNode": true, "UseHoloNetwork": true, "HoloNetworkURI": "example string", "LocalNodeURI": "example string", "HoloNETORMUseReflection": true, "STARBasePath": "example string", "RustDNARSMTemplateFolder": "example string", "RustTemplateLib": "example string", "RustTemplateHolon": "example string", "RustTemplateValidation": "example string", "RustTemplateCreate": "example string", "RustTemplateRead": "example string", "RustTemplateUpdate": "example string", "RustTemplateDelete": "example string", "RustTemplateList": "example string", "RustTemplateInt": "example string", "RustTemplateString": "example string", "RustTemplateBool": "example string" }, "MongoDBOASIS": { "DBName": "example string" }, "EOSIOOASIS": { "AccountName": "example string", "AccountPrivateKey": "example string", "ChainId": "example string" }, "TelosOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string" }, "SEEDSOASIS": { }, "ThreeFoldOASIS": { }, "EthereumOASIS": { "ChainPrivateKey": "example string", "ChainId": 1, "ContractAddress": "example string" }, "ArbitrumOASIS": { "ChainPrivateKey": "example string", "ChainId": 1, "ContractAddress": "example string" }, "RootstockOASIS": { "ChainPrivateKey": "example string", "ContractAddress": "example string", "Abi": "example string" }, "PolygonOASIS": { "ChainPrivateKey": "example string", "ContractAddress": "example string", "Abi": "example string" }, "SQLLiteDBOASIS": { }, "IPFSOASIS": { "LookUpIPFSAddress": "example string" }, "Neo4jOASIS": { "Username": "example string", "Password": "example string" }, "SolanaOASIS": { "WalletMnemonicWords": "example string", "PrivateKey": "example string", "PublicKey": "example string" }, "CargoOASIS": { "SingingMessage": "example string", "PrivateKey": "example string", "HostUrl": "example string" }, "LocalFileOASIS": { "FilePath": "example string" }, "PinataOASIS": { "ConnectionString": "example string" }, "BitcoinOASIS": { "RpcEndpoint": "example string", "Network": "example string" }, "CardanoOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ProjectId": "example string" }, "PolkadotOASIS": { "RpcEndpoint": "example string", "Network": "example string" }, "BNBChainOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ChainId": "example string" }, "FantomOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ChainId": "example string" }, "OptimismOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ChainId": "example string" }, "ChainLinkOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ChainId": "example string" }, "ElrondOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string" }, "AptosOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string", "PrivateKey": "example string", "ContractAddress": "example string" }, "TRONOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string" }, "HashgraphOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string" }, "AvalancheOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ChainId": "example string", "ChainPrivateKey": "example string", "ContractAddress": "example string" }, "CosmosBlockChainOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string" }, "NEAROASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string" }, "BaseOASIS": { "RpcEndpoint": "example string", "NetworkId": "example string", "ChainId": "example string", "ChainPrivateKey": "example string", "ContractAddress": "example string" }, "SuiOASIS": { "RpcEndpoint": "example string", "Network": "example string", "ChainId": "example string", "ContractAddress": "example string" }, "MoralisOASIS": { "ApiKey": "example string", "RpcEndpoint": "example string", "Network": "example string" }, "ActivityPubOASIS": { "BaseUrl": "example string", "UserAgent": "example string", "AcceptHeader": "example string", "TimeoutSeconds": 1, "EnableCaching": true, "CacheExpirationMinutes": 1 }, "GoogleCloudOASIS": { "ProjectId": "example string", "BucketName": "example string", "CredentialsPath": "example string", "FirestoreDatabaseId": "example string", "BigQueryDatasetId": "example string", "EnableStorage": true, "EnableFirestore": true, "EnableBigQuery": true } }, "OASISHyperDriveConfig": { "IsEnabled": true, "DefaultStrategy": "example string", "AutoFailoverEnabled": true, "AutoReplicationEnabled": true, "AutoLoadBalancingEnabled": true, "MaxRetryAttempts": 1, "RequestTimeoutMs": 1, "HealthCheckIntervalMs": 1, "MaxConcurrentRequests": 1, "PerformanceWeight": 1.0, "CostWeight": 1.0, "GeographicWeight": 1.0, "AvailabilityWeight": 1.0, "LatencyWeight": 1.0, "ThroughputWeight": 1.0, "ReliabilityWeight": 1.0, "MaxLatencyThresholdMs": 1, "MaxErrorRateThreshold": 1.0, "MinUptimeThreshold": 1.0, "EnabledProviders": ["example string"], "AutoFailoverProviders": ["example string"], "AutoReplicationProviders": ["example string"], "LoadBalancingProviders": ["example string"], "ProviderConfigs": { "<string>": { "ProviderType": "example string", "IsEnabled": true, "Weight": 1, "TimeoutMs": 1, "MaxConnections": 1, "ErrorThreshold": 1.0, "MinUptime": 1.0, "MaxLatencyMs": 1, "Endpoint": "example string", "ApiKey": "example string", "SecretKey": "example string", "CustomSettings": { "<string>": "example string" } } }, "GeographicConfig": { "IsEnabled": true, "DefaultRegion": "example string", "UserLocation": "example string", "MaxDistanceKm": 1.0, "MaxNetworkHops": 1, "MaxLatencyMs": 1, "Regions": { "<string>": { "Name": "example string", "Country": "example string", "City": "example string", "Latitude": 1.0, "Longitude": 1.0, "TimeZone": "example string", "MaxLatencyMs": 1.0, "MaxNetworkHops": 1 } } }, "CostConfig": { "IsEnabled": true, "Currency": "example string", "MaxCostPerOperation": 1.0, "MaxStorageCostPerGB": 1.0, "MaxComputeCostPerHour": 1.0, "MaxNetworkCostPerGB": 1.0, "ProviderCosts": { "<string>": { "ProviderType": "example string", "StorageCostPerGB": 1.0, "ComputeCostPerHour": 1.0, "NetworkCostPerGB": 1.0, "TransactionCost": 1.0, "ApiCallCost": 1.0, "TotalCost": 1.0, "Currency": "example string", "LastUpdated": "2026-01-01T00:00:00Z", "CostEfficiencyScore": 1 } } }, "PerformanceConfig": { "IsEnabled": true, "MaxResponseTimeMs": 1, "MaxErrorRate": 1.0, "MinUptime": 1.0, "MinThroughputMbps": 1, "MaxConcurrentConnections": 1, "QueueDepthThreshold": 1, "MaxCpuUsage": 1.0, "MaxMemoryUsage": 1.0 }, "SecurityConfig": { "IsEnabled": true, "RequireEncryption": true, "RequireAuthentication": true, "RequireAuthorization": true, "MaxRetryAttempts": 1, "SessionTimeoutMs": 1, "MaxConcurrentSessions": 1, "AllowedIPs": ["example string"], "BlockedIPs": ["example string"], "SecurityHeaders": { "<string>": "example string" } }, "MonitoringConfig": { "IsEnabled": true, "MetricsCollectionIntervalMs": 1, "MaxMetricsHistory": 1, "AlertThreshold": 1, "EnableRealTimeMonitoring": true, "EnablePerformanceProfiling": true, "EnableCostTracking": true, "EnableGeographicTracking": true, "MonitoringEndpoints": ["example string"], "CustomMetrics": { "<string>": "example string" } } }, "Web6": { "DefaultProvider": "example string", "DefaultOpenServModel": "example string", "DefaultRoutingPriority": "example string", "DefaultRoutingFallbackEnabled": true, "OpenServ": { "BaseUrl": "example string", "DefaultModel": "example string", "AvailableModels": ["example string"] }, "FAHRN": { "EMAAlpha": 1.0, "DefaultDispatchMode": "example string", "AutoSeedOpenServAgentsOnStartup": true, "MaxDecomposedSubProblems": 1 }, "HolonicBraid": { "AutoPersistWinningPlan": true }, "HolonicMemory": { "DefaultRetentionPolicy": "example string", "RecordDispatchOutcomes": true } }, "HyperDriveMode": "example string", "ReplicationRules": { "Mode": "example string", "IsEnabled": true, "MaxReplicationsPerMonth": 1, "CostThreshold": 1.0, "FreeProvidersOnly": true, "GasFeeThreshold": 1.0, "ReplicationTriggers": [{ "Id": "example string", "Name": "example string", "Condition": { "Type": "example string", "Operator": "example string", "Value": {}, "Field": "example string", "ProviderType": "example string", "TimeWindow": { "Start": "example string", "End": "example string", "TimeZone": "example string", "DaysOfWeek": ["example string"] } }, "Priority": "example string", "IsEnabled": true, "Action": { "Type": "example string", "TargetProviders": ["example string"], "DataTypes": ["example string"], "Permissions": { "AvatarPermissions": { "IsEnabled": true, "Fields": [{ "FieldName": "example string", "Permission": "example string", "IsEncrypted": true, "IsRequired": true, "ProviderTypes": ["example string"] }], "DefaultPermission": "example string", "ProviderOverrides": { "<string>": [] } }, "HolonPermissions": { "IsEnabled": true, "HolonTypes": [{ "HolonType": "example string", "Permission": "example string", "IsEncrypted": true, "IsRequired": true, "ProviderTypes": ["example string"], "Fields": [{ "FieldName": "example string", "Permission": "example string", "IsEncrypted": true, "IsRequired": true }] }], "DefaultPermission": "example string", "ProviderOverrides": { "<string>": [] } }, "ProviderPermissions": { "IsEnabled": true, "Providers": [{ "ProviderType": "example string", "Permission": "example string", "AllowedDataTypes": ["example string"], "CostLimit": 1.0, "GasFeeLimit": 1.0, "Schedule": { "Type": "example string", "Interval": 1, "IntervalUnit": "example string", "CronExpression": "example string", "TimeZone": "example string", "StartTime": "example string", "EndTime": "example string", "DaysOfWeek": ["example string"], "DaysOfMonth": [1] } }] }, "FieldLevelPermissions": { "IsEnabled": true, "Rules": [{ "FieldPath": "example string", "DataType": "example string", "Permissions": { "<string>": "example string" }, "Encryption": { "<string>": true }, "Required": { "<string>": true } }] }, "AccessControl": { "IsEnabled": true, "AuthenticationRequired": true, "AuthorizationLevel": "example string", "EncryptionLevel": "example string", "AuditLogging": true, "AccessPolicies": [{ "Name": "example string", "Condition": { "UserRole": "example string", "SubscriptionPlan": "example string", "TimeWindow": {}, "Location": "example string", "DeviceType": "example string" }, "Permissions": "example string", "Providers": ["example string"], "DataTypes": ["example string"] }] } }, "CostLimit": 1.0, "Schedule": {} } }], "ProviderRules": [{ "ProviderType": "example string", "IsEnabled": true, "Priority": 1, "CostLimit": 1.0, "GasFeeLimit": 1.0, "DataTypes": ["example string"], "Permissions": {}, "Conditions": [], "Schedule": {} }], "DataTypeRules": [{ "DataType": "example string", "IsEnabled": true, "RequiredProviders": ["example string"], "OptionalProviders": ["example string"], "Permissions": {}, "CostLimit": 1.0, "Schedule": {} }], "ScheduleRules": [{ "Name": "example string", "IsEnabled": true, "Schedule": {}, "DataTypes": ["example string"], "Providers": ["example string"], "Permissions": {} }], "CostOptimization": { "IsEnabled": true, "MaxCostPerReplication": 1.0, "MaxCostPerMonth": 1.0, "PreferredFreeProviders": ["example string"], "AvoidHighGasProviders": true, "GasFeeThreshold": 1.0, "CostAlertThreshold": 1.0 }, "IntelligentSelection": { "IsEnabled": true, "Algorithm": "example string", "Weights": { "Cost": 1.0, "Performance": 1.0, "Reliability": 1.0, "Security": 1.0, "Geographic": 1.0, "Availability": 1.0 }, "LearningEnabled": true, "AdaptationSpeed": "example string", "OptimizationGoals": [{ "Type": "example string", "Weight": 1.0, "Target": 1.0, "IsEnabled": true }] } }, "FailoverRules": { "Mode": "example string", "IsEnabled": true, "MaxFailoversPerMonth": 1, "CostThreshold": 1.0, "FreeProvidersOnly": true, "GasFeeThreshold": 1.0, "FailoverTriggers": [{ "Id": "example string", "Name": "example string", "Condition": { "Type": "example string", "Operator": "example string", "Value": {}, "ProviderType": "example string", "TimeWindow": {}, "Threshold": 1.0 }, "Priority": "example string", "IsEnabled": true, "Action": { "Type": "example string", "TargetProvider": "example string", "FallbackProviders": ["example string"], "CostLimit": 1.0, "Schedule": {} } }], "ProviderRules": [{ "ProviderType": "example string", "IsEnabled": true, "Priority": 1, "CostLimit": 1.0, "GasFeeLimit": 1.0, "Conditions": [], "FallbackProviders": ["example string"] }], "IntelligentSelection": {}, "EscalationRules": [{ "Name": "example string", "Level": "example string", "Condition": {}, "Action": {}, "Notification": { "Channels": ["example string"], "Message": "example string", "Priority": "example string", "IsEnabled": true } }] }, "SubscriptionConfig": { "PlanType": "example string", "MaxReplicationsPerMonth": 1, "MaxFailoversPerMonth": 1, "MaxRequestsPerMonth": 1, "MaxStorageGB": 1, "PayAsYouGoEnabled": true, "CostPerReplication": 1.0, "CostPerFailover": 1.0, "CostPerGB": 1.0, "Currency": "example string", "BillingCycle": "example string", "UsageAlerts": [{ "Id": "example string", "Name": "example string", "Threshold": 1.0, "ThresholdType": "example string", "NotificationChannels": ["example string"], "IsEnabled": true }], "QuotaNotifications": [{ "Id": "example string", "Name": "example string", "QuotaType": "example string", "Threshold": 1.0, "NotificationChannels": ["example string"], "Actions": [{ "Type": "example string", "Value": {}, "Schedule": {} }], "IsEnabled": true }] }, "DataPermissions": {}, "IntelligentMode": { "IsEnabled": true, "AutoOptimization": true, "CostAwareness": true, "PerformanceOptimization": true, "SecurityOptimization": true, "LearningEnabled": true, "AdaptationSpeed": "example string", "OptimizationGoals": [] }, "OASISSystemAccountId": "example string", "OASISAPIURL": "example string", "NetworkId": "example string", "SettingsLookupHolonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "StatsCacheEnabled": true, "StatsCacheTtlSeconds": 1 }
|
|
490
|
+
});
|
|
491
|
+
if (isError) throw new Error(message);
|
|
492
|
+
console.log(result);
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
Example response:
|
|
496
|
+
|
|
497
|
+
```json
|
|
498
|
+
{
|
|
499
|
+
"isError": false,
|
|
500
|
+
"message": "",
|
|
501
|
+
"result": null
|
|
502
|
+
}
|
|
503
|
+
```
|
|
504
|
+
|