@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,533 @@
|
|
|
1
|
+
# Settings — `oasis.settings`
|
|
2
|
+
|
|
3
|
+
Source controller: [`SettingsController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SettingsController.cs)
|
|
4
|
+
Route prefix: `api/settings`
|
|
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
|
+
### `getAllSettingsForCurrentLoggedInAvatar`
|
|
22
|
+
|
|
23
|
+
Get all OASIS settings for the currently logged in avatar
|
|
24
|
+
|
|
25
|
+
**GET** `api/settings/get-all-settings-for-current-logged-in-avatar`
|
|
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: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
36
|
+
|
|
37
|
+
**Example**
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
const { isError, message, result } = await oasis.settings.getAllSettingsForCurrentLoggedInAvatar({});
|
|
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": { "<string>": {} }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### `getHyperDriveSettings`
|
|
58
|
+
|
|
59
|
+
Get HyperDrive settings for the current avatar
|
|
60
|
+
|
|
61
|
+
**GET** `api/settings/hyperdrive-settings`
|
|
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: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
72
|
+
|
|
73
|
+
**Example**
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
const { isError, message, result } = await oasis.settings.getHyperDriveSettings({});
|
|
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": { "<string>": {} }
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### `getNotificationPreferences`
|
|
94
|
+
|
|
95
|
+
Get notification preferences
|
|
96
|
+
|
|
97
|
+
**GET** `api/settings/notification-preferences`
|
|
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: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
108
|
+
|
|
109
|
+
**Example**
|
|
110
|
+
|
|
111
|
+
```js
|
|
112
|
+
const { isError, message, result } = await oasis.settings.getNotificationPreferences({});
|
|
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": { "<string>": {} }
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
### `getPrivacySettings`
|
|
130
|
+
|
|
131
|
+
Get privacy settings
|
|
132
|
+
|
|
133
|
+
**GET** `api/settings/privacy-settings`
|
|
134
|
+
|
|
135
|
+
**Request**
|
|
136
|
+
|
|
137
|
+
No request body.
|
|
138
|
+
|
|
139
|
+
**Response**
|
|
140
|
+
|
|
141
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
142
|
+
|
|
143
|
+
`result` type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
144
|
+
|
|
145
|
+
**Example**
|
|
146
|
+
|
|
147
|
+
```js
|
|
148
|
+
const { isError, message, result } = await oasis.settings.getPrivacySettings({});
|
|
149
|
+
if (isError) throw new Error(message);
|
|
150
|
+
console.log(result);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Example response:
|
|
154
|
+
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"isError": false,
|
|
158
|
+
"message": "",
|
|
159
|
+
"result": { "<string>": {} }
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### `getSubscriptionSettings`
|
|
166
|
+
|
|
167
|
+
Get subscription settings for the current avatar
|
|
168
|
+
|
|
169
|
+
**GET** `api/settings/subscription-settings`
|
|
170
|
+
|
|
171
|
+
**Request**
|
|
172
|
+
|
|
173
|
+
No request body.
|
|
174
|
+
|
|
175
|
+
**Response**
|
|
176
|
+
|
|
177
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
178
|
+
|
|
179
|
+
`result` type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
180
|
+
|
|
181
|
+
**Example**
|
|
182
|
+
|
|
183
|
+
```js
|
|
184
|
+
const { isError, message, result } = await oasis.settings.getSubscriptionSettings({});
|
|
185
|
+
if (isError) throw new Error(message);
|
|
186
|
+
console.log(result);
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Example response:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"isError": false,
|
|
194
|
+
"message": "",
|
|
195
|
+
"result": { "<string>": {} }
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### `getSystemConfig`
|
|
202
|
+
|
|
203
|
+
Get system configuration
|
|
204
|
+
|
|
205
|
+
**GET** `api/settings/system-config`
|
|
206
|
+
|
|
207
|
+
**Request**
|
|
208
|
+
|
|
209
|
+
No request body.
|
|
210
|
+
|
|
211
|
+
**Response**
|
|
212
|
+
|
|
213
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
214
|
+
|
|
215
|
+
`result` type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
216
|
+
|
|
217
|
+
**Example**
|
|
218
|
+
|
|
219
|
+
```js
|
|
220
|
+
const { isError, message, result } = await oasis.settings.getSystemConfig({});
|
|
221
|
+
if (isError) throw new Error(message);
|
|
222
|
+
console.log(result);
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Example response:
|
|
226
|
+
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"isError": false,
|
|
230
|
+
"message": "",
|
|
231
|
+
"result": { "<string>": {} }
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
### `getSystemSettings`
|
|
238
|
+
|
|
239
|
+
Get system settings for the current avatar
|
|
240
|
+
|
|
241
|
+
**GET** `api/settings/system-settings`
|
|
242
|
+
|
|
243
|
+
**Request**
|
|
244
|
+
|
|
245
|
+
No request body.
|
|
246
|
+
|
|
247
|
+
**Response**
|
|
248
|
+
|
|
249
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
250
|
+
|
|
251
|
+
`result` type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
252
|
+
|
|
253
|
+
**Example**
|
|
254
|
+
|
|
255
|
+
```js
|
|
256
|
+
const { isError, message, result } = await oasis.settings.getSystemSettings({});
|
|
257
|
+
if (isError) throw new Error(message);
|
|
258
|
+
console.log(result);
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Example response:
|
|
262
|
+
|
|
263
|
+
```json
|
|
264
|
+
{
|
|
265
|
+
"isError": false,
|
|
266
|
+
"message": "",
|
|
267
|
+
"result": { "<string>": {} }
|
|
268
|
+
}
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
### `updateHyperDriveSettings`
|
|
274
|
+
|
|
275
|
+
Update HyperDrive settings
|
|
276
|
+
|
|
277
|
+
**PUT** `api/settings/hyperdrive-settings`
|
|
278
|
+
|
|
279
|
+
**Request**
|
|
280
|
+
|
|
281
|
+
Body type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
282
|
+
|
|
283
|
+
**Response**
|
|
284
|
+
|
|
285
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
286
|
+
|
|
287
|
+
`result` type: `bool`
|
|
288
|
+
|
|
289
|
+
**Example**
|
|
290
|
+
|
|
291
|
+
```js
|
|
292
|
+
const { isError, message, result } = await oasis.settings.updateHyperDriveSettings({
|
|
293
|
+
/* ...request body fields */
|
|
294
|
+
});
|
|
295
|
+
if (isError) throw new Error(message);
|
|
296
|
+
console.log(result);
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Example response:
|
|
300
|
+
|
|
301
|
+
```json
|
|
302
|
+
{
|
|
303
|
+
"isError": false,
|
|
304
|
+
"message": "",
|
|
305
|
+
"result": true
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
### `updateNotificationPreferences`
|
|
312
|
+
|
|
313
|
+
Update notification preferences
|
|
314
|
+
|
|
315
|
+
**PUT** `api/settings/notification-preferences`
|
|
316
|
+
|
|
317
|
+
**Request**
|
|
318
|
+
|
|
319
|
+
Body type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
320
|
+
|
|
321
|
+
**Response**
|
|
322
|
+
|
|
323
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
324
|
+
|
|
325
|
+
`result` type: `bool`
|
|
326
|
+
|
|
327
|
+
**Example**
|
|
328
|
+
|
|
329
|
+
```js
|
|
330
|
+
const { isError, message, result } = await oasis.settings.updateNotificationPreferences({
|
|
331
|
+
/* ...request body fields */
|
|
332
|
+
});
|
|
333
|
+
if (isError) throw new Error(message);
|
|
334
|
+
console.log(result);
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Example response:
|
|
338
|
+
|
|
339
|
+
```json
|
|
340
|
+
{
|
|
341
|
+
"isError": false,
|
|
342
|
+
"message": "",
|
|
343
|
+
"result": true
|
|
344
|
+
}
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
### `updatePrivacySettings`
|
|
350
|
+
|
|
351
|
+
Update privacy settings
|
|
352
|
+
|
|
353
|
+
**PUT** `api/settings/privacy-settings`
|
|
354
|
+
|
|
355
|
+
**Request**
|
|
356
|
+
|
|
357
|
+
Body type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
358
|
+
|
|
359
|
+
**Response**
|
|
360
|
+
|
|
361
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
362
|
+
|
|
363
|
+
`result` type: `bool`
|
|
364
|
+
|
|
365
|
+
**Example**
|
|
366
|
+
|
|
367
|
+
```js
|
|
368
|
+
const { isError, message, result } = await oasis.settings.updatePrivacySettings({
|
|
369
|
+
/* ...request body fields */
|
|
370
|
+
});
|
|
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": true
|
|
382
|
+
}
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
### `updateSettings`
|
|
388
|
+
|
|
389
|
+
Update avatar settings
|
|
390
|
+
|
|
391
|
+
**PUT** `api/settings/update-settings`
|
|
392
|
+
|
|
393
|
+
**Request**
|
|
394
|
+
|
|
395
|
+
Body type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
396
|
+
|
|
397
|
+
**Response**
|
|
398
|
+
|
|
399
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
400
|
+
|
|
401
|
+
`result` type: `IAvatar`
|
|
402
|
+
|
|
403
|
+
| Field | Type |
|
|
404
|
+
| --- | --- |
|
|
405
|
+
| `ProviderWallets` | `Dictionary<ProviderType, List<IProviderWallet>>` |
|
|
406
|
+
| `ProviderPrivateKey` | `Dictionary<ProviderType, string>` |
|
|
407
|
+
| `ProviderPublicKey` | `Dictionary<ProviderType, List<string>>` |
|
|
408
|
+
| `ProviderUsername` | `Dictionary<ProviderType, string>` |
|
|
409
|
+
| `ProviderWalletAddress` | `Dictionary<ProviderType, List<string>>` |
|
|
410
|
+
| `AvatarId` | `Guid` |
|
|
411
|
+
| `Title` | `string` |
|
|
412
|
+
| `FirstName` | `string` |
|
|
413
|
+
| `LastName` | `string` |
|
|
414
|
+
| `FullName` | `string` |
|
|
415
|
+
| `FullNameWithTitle` | `string` |
|
|
416
|
+
| `Username` | `string` |
|
|
417
|
+
| `Email` | `string` |
|
|
418
|
+
| `Password` | `string` |
|
|
419
|
+
| `AvatarType` | `EnumValue<AvatarType>` |
|
|
420
|
+
| `AcceptTerms` | `bool` |
|
|
421
|
+
| `IsVerified` | `bool` |
|
|
422
|
+
| `JwtToken` | `string` |
|
|
423
|
+
| `PasswordReset` | `DateTime?` |
|
|
424
|
+
| `RefreshToken` | `string` |
|
|
425
|
+
| `RefreshTokens` | `List<RefreshToken>` |
|
|
426
|
+
| `ResetToken` | `string` |
|
|
427
|
+
| `ResetTokenExpires` | `DateTime?` |
|
|
428
|
+
| `VerificationToken` | `string` |
|
|
429
|
+
| `Verified` | `DateTime?` |
|
|
430
|
+
| `LastBeamedIn` | `DateTime?` |
|
|
431
|
+
| `LastBeamedOut` | `DateTime?` |
|
|
432
|
+
| `IsBeamedIn` | `bool` |
|
|
433
|
+
| `Image2D` | `string` |
|
|
434
|
+
| `Karma` | `int` |
|
|
435
|
+
| `Level` | `int` |
|
|
436
|
+
| `XP` | `int` |
|
|
437
|
+
|
|
438
|
+
**Example**
|
|
439
|
+
|
|
440
|
+
```js
|
|
441
|
+
const { isError, message, result } = await oasis.settings.updateSettings({
|
|
442
|
+
/* ...request body fields */
|
|
443
|
+
});
|
|
444
|
+
if (isError) throw new Error(message);
|
|
445
|
+
console.log(result);
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Example response:
|
|
449
|
+
|
|
450
|
+
```json
|
|
451
|
+
{
|
|
452
|
+
"isError": false,
|
|
453
|
+
"message": "",
|
|
454
|
+
"result": { "ProviderWallets": { "<ProviderType>": [{ "AvatarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "WalletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Name": "example string", "Description": /* <new string> */, "PrivateKey": "example string", "PublicKey": "example string", "WalletAddress": "example string", "WalletAddressSegwitP2SH": "example string", "SecretRecoveryPhrase": "example string", "Transactions": [{ "TransactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "FromWalletAddress": "example string", "ToWalletAddress": "example string", "Amount": 1.0, "Description": "example string", "CreatedDate": "2026-01-01T00:00:00Z", "TransactionType": { }, "TransactionCategory": { } }], "ProviderType": { }, "Balance": 1.0, "IsDefaultWallet": true }] }, "ProviderPrivateKey": { "<ProviderType>": "example string" }, "ProviderPublicKey": { "<ProviderType>": ["example string"] }, "ProviderUsername": { "<ProviderType>": "example string" }, "ProviderWalletAddress": { "<ProviderType>": ["example string"] }, "AvatarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Title": "example string", "FirstName": "example string", "LastName": "example string", "FullName": "example string", "FullNameWithTitle": "example string", "Username": "example string", "Email": "example string", "Password": "example string", "AvatarType": { "Score": 1.0 }, "AcceptTerms": true, "IsVerified": true, "JwtToken": "example string", "PasswordReset": "2026-01-01T00:00:00Z", "RefreshToken": "example string", "RefreshTokens": [{ "Id": 1, "Avatar": {}, "Token": "example string", "Expires": "2026-01-01T00:00:00Z", "Created": "2026-01-01T00:00:00Z", "CreatedByIp": "example string", "Revoked": "2026-01-01T00:00:00Z", "RevokedByIp": "example string", "ReplacedByToken": "example string" }], "ResetToken": "example string", "ResetTokenExpires": "2026-01-01T00:00:00Z", "VerificationToken": "example string", "Verified": "2026-01-01T00:00:00Z", "LastBeamedIn": "2026-01-01T00:00:00Z", "LastBeamedOut": "2026-01-01T00:00:00Z", "IsBeamedIn": true, "Image2D": "example string", "Karma": 1, "Level": 1, "XP": 1 }
|
|
455
|
+
}
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
### `updateSubscriptionSettings`
|
|
461
|
+
|
|
462
|
+
Update subscription settings
|
|
463
|
+
|
|
464
|
+
**PUT** `api/settings/subscription-settings`
|
|
465
|
+
|
|
466
|
+
**Request**
|
|
467
|
+
|
|
468
|
+
Body type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
469
|
+
|
|
470
|
+
**Response**
|
|
471
|
+
|
|
472
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
473
|
+
|
|
474
|
+
`result` type: `bool`
|
|
475
|
+
|
|
476
|
+
**Example**
|
|
477
|
+
|
|
478
|
+
```js
|
|
479
|
+
const { isError, message, result } = await oasis.settings.updateSubscriptionSettings({
|
|
480
|
+
/* ...request body fields */
|
|
481
|
+
});
|
|
482
|
+
if (isError) throw new Error(message);
|
|
483
|
+
console.log(result);
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
Example response:
|
|
487
|
+
|
|
488
|
+
```json
|
|
489
|
+
{
|
|
490
|
+
"isError": false,
|
|
491
|
+
"message": "",
|
|
492
|
+
"result": true
|
|
493
|
+
}
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
### `updateSystemSettings`
|
|
499
|
+
|
|
500
|
+
Update system settings
|
|
501
|
+
|
|
502
|
+
**PUT** `api/settings/system-settings`
|
|
503
|
+
|
|
504
|
+
**Request**
|
|
505
|
+
|
|
506
|
+
Body type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
|
|
507
|
+
|
|
508
|
+
**Response**
|
|
509
|
+
|
|
510
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
511
|
+
|
|
512
|
+
`result` type: `bool`
|
|
513
|
+
|
|
514
|
+
**Example**
|
|
515
|
+
|
|
516
|
+
```js
|
|
517
|
+
const { isError, message, result } = await oasis.settings.updateSystemSettings({
|
|
518
|
+
/* ...request body fields */
|
|
519
|
+
});
|
|
520
|
+
if (isError) throw new Error(message);
|
|
521
|
+
console.log(result);
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
Example response:
|
|
525
|
+
|
|
526
|
+
```json
|
|
527
|
+
{
|
|
528
|
+
"isError": false,
|
|
529
|
+
"message": "",
|
|
530
|
+
"result": true
|
|
531
|
+
}
|
|
532
|
+
```
|
|
533
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Share — `oasis.share`
|
|
2
|
+
|
|
3
|
+
Source controller: [`ShareController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ShareController.cs)
|
|
4
|
+
Route prefix: `api/share`
|
|
5
|
+
1 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
|
+
### `shareHolon`
|
|
22
|
+
|
|
23
|
+
Share a given holon with a given avatar. PREVIEW - COMING SOON...
|
|
24
|
+
|
|
25
|
+
**GET** `api/share/share-holon/{holonId:guid}/{avatarId:guid}`
|
|
26
|
+
|
|
27
|
+
Route parameters:
|
|
28
|
+
|
|
29
|
+
| Field | Type |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `holonId` | `Guid` |
|
|
32
|
+
| `avatarId` | `Guid` |
|
|
33
|
+
|
|
34
|
+
**Request**
|
|
35
|
+
|
|
36
|
+
No request body.
|
|
37
|
+
|
|
38
|
+
**Response**
|
|
39
|
+
|
|
40
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
41
|
+
|
|
42
|
+
`result` type: `bool`
|
|
43
|
+
|
|
44
|
+
**Example**
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
const { isError, message, result } = await oasis.share.shareHolon({
|
|
48
|
+
holonId: '<holonId>',
|
|
49
|
+
avatarId: '<avatarId>'
|
|
50
|
+
});
|
|
51
|
+
if (isError) throw new Error(message);
|
|
52
|
+
console.log(result);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Example response:
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"isError": false,
|
|
60
|
+
"message": "",
|
|
61
|
+
"result": true
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|