@oasisomniverse/web5-api 1.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 +250 -0
- package/docs/README.md +44 -0
- package/docs/modules/Avatar.md +606 -0
- package/docs/modules/CelestialBodies.md +1051 -0
- package/docs/modules/CelestialBodiesMetaData.md +949 -0
- package/docs/modules/CelestialSpaces.md +1051 -0
- package/docs/modules/Chapters.md +955 -0
- package/docs/modules/Competition.md +594 -0
- package/docs/modules/Cosmic.md +3653 -0
- package/docs/modules/Games.md +2619 -0
- package/docs/modules/GeoHotSpots.md +1027 -0
- package/docs/modules/GeoNFTs.md +1049 -0
- package/docs/modules/Health.md +90 -0
- package/docs/modules/Holons.md +1139 -0
- package/docs/modules/HolonsMetaData.md +949 -0
- package/docs/modules/InventoryItems.md +1071 -0
- package/docs/modules/Libraries.md +1052 -0
- package/docs/modules/Missions.md +1286 -0
- package/docs/modules/NFTs.md +1008 -0
- package/docs/modules/OAPPs.md +1190 -0
- package/docs/modules/Parks.md +1079 -0
- package/docs/modules/Plugins.md +1138 -0
- package/docs/modules/Quests.md +1941 -0
- package/docs/modules/Runtimes.md +1112 -0
- package/docs/modules/STAR.md +178 -0
- package/docs/modules/Templates.md +990 -0
- package/docs/modules/Zomes.md +1049 -0
- package/docs/modules/ZomesMetaData.md +949 -0
- package/index.d.ts +97 -0
- package/index.js +3 -0
- package/index.mjs +4 -0
- package/package.json +117 -0
- package/src/core/httpClient.js +110 -0
- package/src/core/routeHelper.js +85 -0
- package/src/core/tokenStore.js +52 -0
- package/src/core/types.d.ts +18 -0
- package/src/index.js +60 -0
- package/src/modules/Auth.d.ts +15 -0
- package/src/modules/Auth.js +62 -0
- package/src/modules/Avatar.d.ts +45 -0
- package/src/modules/Avatar.js +47 -0
- package/src/modules/CelestialBodies.d.ts +72 -0
- package/src/modules/CelestialBodies.js +65 -0
- package/src/modules/CelestialBodiesMetaData.d.ts +69 -0
- package/src/modules/CelestialBodiesMetaData.js +61 -0
- package/src/modules/CelestialSpaces.d.ts +72 -0
- package/src/modules/CelestialSpaces.js +65 -0
- package/src/modules/Chapters.d.ts +66 -0
- package/src/modules/Chapters.js +61 -0
- package/src/modules/Competition.d.ts +33 -0
- package/src/modules/Competition.js +39 -0
- package/src/modules/Cosmic.d.ts +222 -0
- package/src/modules/Cosmic.js +165 -0
- package/src/modules/Games.d.ts +171 -0
- package/src/modules/Games.js +131 -0
- package/src/modules/GeoHotSpots.d.ts +66 -0
- package/src/modules/GeoHotSpots.js +61 -0
- package/src/modules/GeoNFTs.d.ts +72 -0
- package/src/modules/GeoNFTs.js +65 -0
- package/src/modules/Health.d.ts +12 -0
- package/src/modules/Health.js +25 -0
- package/src/modules/Holons.d.ts +78 -0
- package/src/modules/Holons.js +69 -0
- package/src/modules/HolonsMetaData.d.ts +69 -0
- package/src/modules/HolonsMetaData.js +61 -0
- package/src/modules/InventoryItems.d.ts +69 -0
- package/src/modules/InventoryItems.js +63 -0
- package/src/modules/Libraries.d.ts +72 -0
- package/src/modules/Libraries.js +65 -0
- package/src/modules/Missions.d.ts +87 -0
- package/src/modules/Missions.js +75 -0
- package/src/modules/NFTs.d.ts +69 -0
- package/src/modules/NFTs.js +63 -0
- package/src/modules/OAPPs.d.ts +69 -0
- package/src/modules/OAPPs.js +61 -0
- package/src/modules/Parks.d.ts +72 -0
- package/src/modules/Parks.js +65 -0
- package/src/modules/Plugins.d.ts +78 -0
- package/src/modules/Plugins.js +69 -0
- package/src/modules/Quests.d.ts +129 -0
- package/src/modules/Quests.js +101 -0
- package/src/modules/Runtimes.d.ts +81 -0
- package/src/modules/Runtimes.js +69 -0
- package/src/modules/STAR.d.ts +18 -0
- package/src/modules/STAR.js +29 -0
- package/src/modules/Templates.d.ts +72 -0
- package/src/modules/Templates.js +63 -0
- package/src/modules/Zomes.d.ts +72 -0
- package/src/modules/Zomes.js +65 -0
- package/src/modules/ZomesMetaData.d.ts +69 -0
- package/src/modules/ZomesMetaData.js +61 -0
- package/src/modules/index.js +67 -0
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
# ZomesMetaData — `star.zomesMetaData`
|
|
2
|
+
|
|
3
|
+
Source controller: [`ZomesMetaDataController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/STAR%20ODK/NextGenSoftware.OASIS.STAR.WebAPI/Controllers/ZomesMetaDataController.cs)
|
|
4
|
+
Route prefix: `api/zomesMetaData`
|
|
5
|
+
20 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
|
+
### `activateZomeMetaData`
|
|
22
|
+
|
|
23
|
+
Activates a Zome Metadata.
|
|
24
|
+
|
|
25
|
+
**POST** `api/zomesMetaData/{id}/activate`
|
|
26
|
+
|
|
27
|
+
Route parameters:
|
|
28
|
+
|
|
29
|
+
| Field | Type |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `id` | `Guid` |
|
|
32
|
+
|
|
33
|
+
**Request**
|
|
34
|
+
|
|
35
|
+
Body fields:
|
|
36
|
+
|
|
37
|
+
| Field | Type |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `version` | `int (optional)` |
|
|
40
|
+
|
|
41
|
+
**Response**
|
|
42
|
+
|
|
43
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
44
|
+
|
|
45
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
46
|
+
|
|
47
|
+
**Example**
|
|
48
|
+
|
|
49
|
+
```js
|
|
50
|
+
const { isError, message, result } = await star.zomesMetaData.activateZomeMetaData({
|
|
51
|
+
id: '<id>',
|
|
52
|
+
version: 1
|
|
53
|
+
});
|
|
54
|
+
if (isError) throw new Error(message);
|
|
55
|
+
console.log(result);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Example response:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"isError": false,
|
|
63
|
+
"message": "",
|
|
64
|
+
"result": null
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### `cloneZomeMetaData`
|
|
71
|
+
|
|
72
|
+
Clones an existing Zome Metadata.
|
|
73
|
+
|
|
74
|
+
**POST** `api/zomesMetaData/{id}/clone`
|
|
75
|
+
|
|
76
|
+
Route parameters:
|
|
77
|
+
|
|
78
|
+
| Field | Type |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `id` | `Guid` |
|
|
81
|
+
|
|
82
|
+
**Request**
|
|
83
|
+
|
|
84
|
+
Body type: `CloneRequest`
|
|
85
|
+
|
|
86
|
+
| Field | Type |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `NewName` | `string` |
|
|
89
|
+
|
|
90
|
+
**Response**
|
|
91
|
+
|
|
92
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
93
|
+
|
|
94
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
95
|
+
|
|
96
|
+
**Example**
|
|
97
|
+
|
|
98
|
+
```js
|
|
99
|
+
const { isError, message, result } = await star.zomesMetaData.cloneZomeMetaData({
|
|
100
|
+
id: '<id>',
|
|
101
|
+
newName: "example string"
|
|
102
|
+
});
|
|
103
|
+
if (isError) throw new Error(message);
|
|
104
|
+
console.log(result);
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Example response:
|
|
108
|
+
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"isError": false,
|
|
112
|
+
"message": "",
|
|
113
|
+
"result": null
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
### `createZomeMetaData`
|
|
120
|
+
|
|
121
|
+
Creates a new Zome Metadata for the authenticated avatar.
|
|
122
|
+
|
|
123
|
+
**POST** `api/zomesMetaData`
|
|
124
|
+
|
|
125
|
+
**Request**
|
|
126
|
+
|
|
127
|
+
Body type: `ZomeMetaDataDNA`
|
|
128
|
+
|
|
129
|
+
_No fields._
|
|
130
|
+
|
|
131
|
+
**Response**
|
|
132
|
+
|
|
133
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
134
|
+
|
|
135
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
136
|
+
|
|
137
|
+
**Example**
|
|
138
|
+
|
|
139
|
+
```js
|
|
140
|
+
const { isError, message, result } = await star.zomesMetaData.createZomeMetaData({});
|
|
141
|
+
if (isError) throw new Error(message);
|
|
142
|
+
console.log(result);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Example response:
|
|
146
|
+
|
|
147
|
+
```json
|
|
148
|
+
{
|
|
149
|
+
"isError": false,
|
|
150
|
+
"message": "",
|
|
151
|
+
"result": null
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### `createZomeMetaDataWithOptions`
|
|
158
|
+
|
|
159
|
+
Creates a new Zome Metadata with advanced options.
|
|
160
|
+
|
|
161
|
+
**POST** `api/zomesMetaData/create`
|
|
162
|
+
|
|
163
|
+
**Request**
|
|
164
|
+
|
|
165
|
+
Body type: `CreateZomeMetaDataRequest`
|
|
166
|
+
|
|
167
|
+
| Field | Type |
|
|
168
|
+
| --- | --- |
|
|
169
|
+
| `Name` | `string` |
|
|
170
|
+
| `Description` | `string` |
|
|
171
|
+
| `HolonSubType` | `ZomeType` |
|
|
172
|
+
| `SourceFolderPath` | `string` |
|
|
173
|
+
| `CreateOptions` | `ISTARNETCreateOptions<ZomeMetaDataDNA, STARNETDNA>?` |
|
|
174
|
+
|
|
175
|
+
**Response**
|
|
176
|
+
|
|
177
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
178
|
+
|
|
179
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
180
|
+
|
|
181
|
+
**Example**
|
|
182
|
+
|
|
183
|
+
```js
|
|
184
|
+
const { isError, message, result } = await star.zomesMetaData.createZomeMetaDataWithOptions({
|
|
185
|
+
name: "example string",
|
|
186
|
+
description: "example string",
|
|
187
|
+
holonSubType: { },
|
|
188
|
+
sourceFolderPath: "example string",
|
|
189
|
+
createOptions: { "STARNETHolon": /* <T1> */, "STARNETDNA": /* <T2> */, "MetaTagMappings": { "MetaHolonTags": [{ "HolonName": "example string", "HolonType": { }, "NodeName": "example string", "NodeType": { "Score": 1.0 }, "MetaTag": "example string" }], "MetaTags": { "<string>": "example string" } }, "CheckIfSourcePathExists": true, "CustomCreateParams": { "<string>": {} } }
|
|
190
|
+
});
|
|
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
|
+
### `deactivateZomeMetaData`
|
|
208
|
+
|
|
209
|
+
Deactivates a Zome Metadata.
|
|
210
|
+
|
|
211
|
+
**POST** `api/zomesMetaData/{id}/deactivate`
|
|
212
|
+
|
|
213
|
+
Route parameters:
|
|
214
|
+
|
|
215
|
+
| Field | Type |
|
|
216
|
+
| --- | --- |
|
|
217
|
+
| `id` | `Guid` |
|
|
218
|
+
|
|
219
|
+
**Request**
|
|
220
|
+
|
|
221
|
+
Body fields:
|
|
222
|
+
|
|
223
|
+
| Field | Type |
|
|
224
|
+
| --- | --- |
|
|
225
|
+
| `version` | `int (optional)` |
|
|
226
|
+
|
|
227
|
+
**Response**
|
|
228
|
+
|
|
229
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
230
|
+
|
|
231
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
232
|
+
|
|
233
|
+
**Example**
|
|
234
|
+
|
|
235
|
+
```js
|
|
236
|
+
const { isError, message, result } = await star.zomesMetaData.deactivateZomeMetaData({
|
|
237
|
+
id: '<id>',
|
|
238
|
+
version: 1
|
|
239
|
+
});
|
|
240
|
+
if (isError) throw new Error(message);
|
|
241
|
+
console.log(result);
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Example response:
|
|
245
|
+
|
|
246
|
+
```json
|
|
247
|
+
{
|
|
248
|
+
"isError": false,
|
|
249
|
+
"message": "",
|
|
250
|
+
"result": null
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
### `deleteZomeMetaData`
|
|
257
|
+
|
|
258
|
+
Deletes a Zome Metadata.
|
|
259
|
+
|
|
260
|
+
**DELETE** `api/zomesMetaData/{id}`
|
|
261
|
+
|
|
262
|
+
Route parameters:
|
|
263
|
+
|
|
264
|
+
| Field | Type |
|
|
265
|
+
| --- | --- |
|
|
266
|
+
| `id` | `Guid` |
|
|
267
|
+
|
|
268
|
+
**Request**
|
|
269
|
+
|
|
270
|
+
No request body.
|
|
271
|
+
|
|
272
|
+
**Response**
|
|
273
|
+
|
|
274
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
275
|
+
|
|
276
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
277
|
+
|
|
278
|
+
**Example**
|
|
279
|
+
|
|
280
|
+
```js
|
|
281
|
+
const { isError, message, result } = await star.zomesMetaData.deleteZomeMetaData({
|
|
282
|
+
id: '<id>'
|
|
283
|
+
});
|
|
284
|
+
if (isError) throw new Error(message);
|
|
285
|
+
console.log(result);
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Example response:
|
|
289
|
+
|
|
290
|
+
```json
|
|
291
|
+
{
|
|
292
|
+
"isError": false,
|
|
293
|
+
"message": "",
|
|
294
|
+
"result": null
|
|
295
|
+
}
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
### `downloadZomeMetaData`
|
|
301
|
+
|
|
302
|
+
Downloads a Zome Metadata.
|
|
303
|
+
|
|
304
|
+
**POST** `api/zomesMetaData/{id}/download`
|
|
305
|
+
|
|
306
|
+
Route parameters:
|
|
307
|
+
|
|
308
|
+
| Field | Type |
|
|
309
|
+
| --- | --- |
|
|
310
|
+
| `id` | `Guid` |
|
|
311
|
+
|
|
312
|
+
**Request**
|
|
313
|
+
|
|
314
|
+
Body type: `DownloadZomeMetaDataRequest`
|
|
315
|
+
|
|
316
|
+
| Field | Type |
|
|
317
|
+
| --- | --- |
|
|
318
|
+
| `DestinationPath` | `string` |
|
|
319
|
+
| `Overwrite` | `bool` |
|
|
320
|
+
|
|
321
|
+
**Response**
|
|
322
|
+
|
|
323
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
324
|
+
|
|
325
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
326
|
+
|
|
327
|
+
**Example**
|
|
328
|
+
|
|
329
|
+
```js
|
|
330
|
+
const { isError, message, result } = await star.zomesMetaData.downloadZomeMetaData({
|
|
331
|
+
id: '<id>',
|
|
332
|
+
destinationPath: "example string",
|
|
333
|
+
overwrite: true
|
|
334
|
+
});
|
|
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
|
+
### `editZomeMetaData`
|
|
352
|
+
|
|
353
|
+
Edits a Zome Metadata.
|
|
354
|
+
|
|
355
|
+
**PUT** `api/zomesMetaData/{id}/edit`
|
|
356
|
+
|
|
357
|
+
Route parameters:
|
|
358
|
+
|
|
359
|
+
| Field | Type |
|
|
360
|
+
| --- | --- |
|
|
361
|
+
| `id` | `Guid` |
|
|
362
|
+
|
|
363
|
+
**Request**
|
|
364
|
+
|
|
365
|
+
Body type: `EditZomeMetaDataRequest`
|
|
366
|
+
|
|
367
|
+
| Field | Type |
|
|
368
|
+
| --- | --- |
|
|
369
|
+
| `NewDNA` | `STARNETDNA` |
|
|
370
|
+
|
|
371
|
+
**Response**
|
|
372
|
+
|
|
373
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
374
|
+
|
|
375
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
376
|
+
|
|
377
|
+
**Example**
|
|
378
|
+
|
|
379
|
+
```js
|
|
380
|
+
const { isError, message, result } = await star.zomesMetaData.editZomeMetaData({
|
|
381
|
+
id: '<id>',
|
|
382
|
+
newDNA: { "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Name": "example string", "Description": "example string", "STARNETHolonType": "example string", "STARNETCategory": {}, "STARNETSubCategory": {}, "Dependencies": { "OAPPs": [{ "Type": { }, "HolonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "STARNETHolonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Name": "example string", "Description": "example string", "Version": "example string", "VersionSequence": 1, "Install": true, "InstallMode": { }, "InstalledFrom": "example string", "InstalledTo": "example string" }], "Runtimes": [], "Libraries": [], "Templates": [], "NFTs": [], "NFTCollections": [], "GeoNFTs": [], "GeoNFTCollections": [], "GeoHotSpots": [], "Quests": [], "Missions": [], "Chapters": [], "InventoryItems": [], "CelestialSpaces": [], "CelestialBodies": [], "Zomes": [], "Holons": [], "CelestialBodiesMetaDataDNA": [], "ZomesMetaDataDNA": [], "HolonsMetaDataDNA": [] }, "MetaData": { "<string>": {} }, "MetaHolonTagMappings": /* <>> */, "MetaTagMappings": { "<string>": "example string" }, "CreatedByAvatarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "CreatedByAvatarUsername": "example string", "CreatedOn": "2026-01-01T00:00:00Z", "SourcePath": "example string", "PublishedPath": "example string", "PublishedByAvatarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "PublishedByAvatarUsername": "example string", "PublishedOn": "2026-01-01T00:00:00Z", "LaunchTarget": "example string", "ModifiedByAvatarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ModifiedByAvatarUsername": "example string", "ModifiedOn": "2026-01-01T00:00:00Z", "PublishedOnSTARNET": true, "PublishedToCloud": true, "PublishedToPinata": true, "PinataIPFSHash": "example string", "PublishedProviderType": "example string", "FileSize": 1, "Version": "example string", "OASISRuntimeVersion": "example string", "OASISAPIVersion": "example string", "COSMICVersion": "example string", "STARRuntimeVersion": "example string", "STARODKVersion": "example string", "STARAPIVersion": "example string", "STARNETVersion": "example string", "DotNetVersion": "example string", "VersionSequence": 1, "Downloads": 1, "Installs": 1, "TotalDownloads": 1, "TotalInstalls": 1, "NumberOfVersions": 1 }
|
|
383
|
+
});
|
|
384
|
+
if (isError) throw new Error(message);
|
|
385
|
+
console.log(result);
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
Example response:
|
|
389
|
+
|
|
390
|
+
```json
|
|
391
|
+
{
|
|
392
|
+
"isError": false,
|
|
393
|
+
"message": "",
|
|
394
|
+
"result": null
|
|
395
|
+
}
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
### `getAllZomesMetaData`
|
|
401
|
+
|
|
402
|
+
Retrieves all Zomes Metadata in the system.
|
|
403
|
+
|
|
404
|
+
**GET** `api/zomesMetaData`
|
|
405
|
+
|
|
406
|
+
**Request**
|
|
407
|
+
|
|
408
|
+
No request body.
|
|
409
|
+
|
|
410
|
+
**Response**
|
|
411
|
+
|
|
412
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
413
|
+
|
|
414
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
415
|
+
|
|
416
|
+
**Example**
|
|
417
|
+
|
|
418
|
+
```js
|
|
419
|
+
const { isError, message, result } = await star.zomesMetaData.getAllZomesMetaData({});
|
|
420
|
+
if (isError) throw new Error(message);
|
|
421
|
+
console.log(result);
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
Example response:
|
|
425
|
+
|
|
426
|
+
```json
|
|
427
|
+
{
|
|
428
|
+
"isError": false,
|
|
429
|
+
"message": "",
|
|
430
|
+
"result": null
|
|
431
|
+
}
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
### `getZomeMetaData`
|
|
437
|
+
|
|
438
|
+
Retrieves a specific Zome Metadata by its unique identifier.
|
|
439
|
+
|
|
440
|
+
**GET** `api/zomesMetaData/{id}`
|
|
441
|
+
|
|
442
|
+
Route parameters:
|
|
443
|
+
|
|
444
|
+
| Field | Type |
|
|
445
|
+
| --- | --- |
|
|
446
|
+
| `id` | `Guid` |
|
|
447
|
+
|
|
448
|
+
**Request**
|
|
449
|
+
|
|
450
|
+
No request body.
|
|
451
|
+
|
|
452
|
+
**Response**
|
|
453
|
+
|
|
454
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
455
|
+
|
|
456
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
457
|
+
|
|
458
|
+
**Example**
|
|
459
|
+
|
|
460
|
+
```js
|
|
461
|
+
const { isError, message, result } = await star.zomesMetaData.getZomeMetaData({
|
|
462
|
+
id: '<id>'
|
|
463
|
+
});
|
|
464
|
+
if (isError) throw new Error(message);
|
|
465
|
+
console.log(result);
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
Example response:
|
|
469
|
+
|
|
470
|
+
```json
|
|
471
|
+
{
|
|
472
|
+
"isError": false,
|
|
473
|
+
"message": "",
|
|
474
|
+
"result": null
|
|
475
|
+
}
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
---
|
|
479
|
+
|
|
480
|
+
### `getZomeMetaDataVersions`
|
|
481
|
+
|
|
482
|
+
Retrieves all versions of a specific Zome Metadata.
|
|
483
|
+
|
|
484
|
+
**GET** `api/zomesMetaData/{id}/versions`
|
|
485
|
+
|
|
486
|
+
Route parameters:
|
|
487
|
+
|
|
488
|
+
| Field | Type |
|
|
489
|
+
| --- | --- |
|
|
490
|
+
| `id` | `Guid` |
|
|
491
|
+
|
|
492
|
+
**Request**
|
|
493
|
+
|
|
494
|
+
No request body.
|
|
495
|
+
|
|
496
|
+
**Response**
|
|
497
|
+
|
|
498
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
499
|
+
|
|
500
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
501
|
+
|
|
502
|
+
**Example**
|
|
503
|
+
|
|
504
|
+
```js
|
|
505
|
+
const { isError, message, result } = await star.zomesMetaData.getZomeMetaDataVersions({
|
|
506
|
+
id: '<id>'
|
|
507
|
+
});
|
|
508
|
+
if (isError) throw new Error(message);
|
|
509
|
+
console.log(result);
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
Example response:
|
|
513
|
+
|
|
514
|
+
```json
|
|
515
|
+
{
|
|
516
|
+
"isError": false,
|
|
517
|
+
"message": "",
|
|
518
|
+
"result": null
|
|
519
|
+
}
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
---
|
|
523
|
+
|
|
524
|
+
### `loadAllZomeMetaDataForAvatar`
|
|
525
|
+
|
|
526
|
+
Loads all Zomes Metadata for the current avatar.
|
|
527
|
+
|
|
528
|
+
**GET** `api/zomesMetaData/load-all-for-avatar`
|
|
529
|
+
|
|
530
|
+
**Request**
|
|
531
|
+
|
|
532
|
+
No request body.
|
|
533
|
+
|
|
534
|
+
**Response**
|
|
535
|
+
|
|
536
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
537
|
+
|
|
538
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
539
|
+
|
|
540
|
+
**Example**
|
|
541
|
+
|
|
542
|
+
```js
|
|
543
|
+
const { isError, message, result } = await star.zomesMetaData.loadAllZomeMetaDataForAvatar({});
|
|
544
|
+
if (isError) throw new Error(message);
|
|
545
|
+
console.log(result);
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
Example response:
|
|
549
|
+
|
|
550
|
+
```json
|
|
551
|
+
{
|
|
552
|
+
"isError": false,
|
|
553
|
+
"message": "",
|
|
554
|
+
"result": null
|
|
555
|
+
}
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
560
|
+
### `loadZomeMetaDataFromPath`
|
|
561
|
+
|
|
562
|
+
Loads a Zome Metadata from a file path.
|
|
563
|
+
|
|
564
|
+
**GET** `api/zomesMetaData/load-from-path`
|
|
565
|
+
|
|
566
|
+
**Request**
|
|
567
|
+
|
|
568
|
+
Query parameters:
|
|
569
|
+
|
|
570
|
+
| Field | Type |
|
|
571
|
+
| --- | --- |
|
|
572
|
+
| `path` | `string` |
|
|
573
|
+
|
|
574
|
+
**Response**
|
|
575
|
+
|
|
576
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
577
|
+
|
|
578
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
579
|
+
|
|
580
|
+
**Example**
|
|
581
|
+
|
|
582
|
+
```js
|
|
583
|
+
const { isError, message, result } = await star.zomesMetaData.loadZomeMetaDataFromPath({
|
|
584
|
+
path: 'example string'
|
|
585
|
+
});
|
|
586
|
+
if (isError) throw new Error(message);
|
|
587
|
+
console.log(result);
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
Example response:
|
|
591
|
+
|
|
592
|
+
```json
|
|
593
|
+
{
|
|
594
|
+
"isError": false,
|
|
595
|
+
"message": "",
|
|
596
|
+
"result": null
|
|
597
|
+
}
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
---
|
|
601
|
+
|
|
602
|
+
### `loadZomeMetaDataFromPublished`
|
|
603
|
+
|
|
604
|
+
Loads a Zome Metadata from a published file.
|
|
605
|
+
|
|
606
|
+
**GET** `api/zomesMetaData/load-from-published`
|
|
607
|
+
|
|
608
|
+
**Request**
|
|
609
|
+
|
|
610
|
+
Query parameters:
|
|
611
|
+
|
|
612
|
+
| Field | Type |
|
|
613
|
+
| --- | --- |
|
|
614
|
+
| `publishedFilePath` | `string` |
|
|
615
|
+
|
|
616
|
+
**Response**
|
|
617
|
+
|
|
618
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
619
|
+
|
|
620
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
621
|
+
|
|
622
|
+
**Example**
|
|
623
|
+
|
|
624
|
+
```js
|
|
625
|
+
const { isError, message, result } = await star.zomesMetaData.loadZomeMetaDataFromPublished({
|
|
626
|
+
publishedFilePath: 'example string'
|
|
627
|
+
});
|
|
628
|
+
if (isError) throw new Error(message);
|
|
629
|
+
console.log(result);
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
Example response:
|
|
633
|
+
|
|
634
|
+
```json
|
|
635
|
+
{
|
|
636
|
+
"isError": false,
|
|
637
|
+
"message": "",
|
|
638
|
+
"result": null
|
|
639
|
+
}
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
644
|
+
### `loadZomeMetaDataVersion`
|
|
645
|
+
|
|
646
|
+
Loads a specific version of a Zome Metadata.
|
|
647
|
+
|
|
648
|
+
**GET** `api/zomesMetaData/{id}/versions/{version}`
|
|
649
|
+
|
|
650
|
+
Route parameters:
|
|
651
|
+
|
|
652
|
+
| Field | Type |
|
|
653
|
+
| --- | --- |
|
|
654
|
+
| `id` | `Guid` |
|
|
655
|
+
| `version` | `string` |
|
|
656
|
+
|
|
657
|
+
**Request**
|
|
658
|
+
|
|
659
|
+
No request body.
|
|
660
|
+
|
|
661
|
+
**Response**
|
|
662
|
+
|
|
663
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
664
|
+
|
|
665
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
666
|
+
|
|
667
|
+
**Example**
|
|
668
|
+
|
|
669
|
+
```js
|
|
670
|
+
const { isError, message, result } = await star.zomesMetaData.loadZomeMetaDataVersion({
|
|
671
|
+
id: '<id>',
|
|
672
|
+
version: '<version>'
|
|
673
|
+
});
|
|
674
|
+
if (isError) throw new Error(message);
|
|
675
|
+
console.log(result);
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
Example response:
|
|
679
|
+
|
|
680
|
+
```json
|
|
681
|
+
{
|
|
682
|
+
"isError": false,
|
|
683
|
+
"message": "",
|
|
684
|
+
"result": null
|
|
685
|
+
}
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
---
|
|
689
|
+
|
|
690
|
+
### `publishZomeMetaData`
|
|
691
|
+
|
|
692
|
+
Publishes a Zome Metadata to the STARNET.
|
|
693
|
+
|
|
694
|
+
**POST** `api/zomesMetaData/{id}/publish`
|
|
695
|
+
|
|
696
|
+
Route parameters:
|
|
697
|
+
|
|
698
|
+
| Field | Type |
|
|
699
|
+
| --- | --- |
|
|
700
|
+
| `id` | `Guid` |
|
|
701
|
+
|
|
702
|
+
**Request**
|
|
703
|
+
|
|
704
|
+
Body type: `PublishRequest`
|
|
705
|
+
|
|
706
|
+
| Field | Type |
|
|
707
|
+
| --- | --- |
|
|
708
|
+
| `SourcePath` | `string` |
|
|
709
|
+
| `LaunchTarget` | `string` |
|
|
710
|
+
| `PublishPath` | `string` |
|
|
711
|
+
| `Edit` | `bool` |
|
|
712
|
+
| `RegisterOnSTARNET` | `bool` |
|
|
713
|
+
| `GenerateBinary` | `bool` |
|
|
714
|
+
| `UploadToCloud` | `bool` |
|
|
715
|
+
|
|
716
|
+
**Response**
|
|
717
|
+
|
|
718
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
719
|
+
|
|
720
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
721
|
+
|
|
722
|
+
**Example**
|
|
723
|
+
|
|
724
|
+
```js
|
|
725
|
+
const { isError, message, result } = await star.zomesMetaData.publishZomeMetaData({
|
|
726
|
+
id: '<id>',
|
|
727
|
+
sourcePath: "example string",
|
|
728
|
+
launchTarget: "example string",
|
|
729
|
+
publishPath: "example string",
|
|
730
|
+
edit: true,
|
|
731
|
+
registerOnSTARNET: true,
|
|
732
|
+
generateBinary: true,
|
|
733
|
+
uploadToCloud: true
|
|
734
|
+
});
|
|
735
|
+
if (isError) throw new Error(message);
|
|
736
|
+
console.log(result);
|
|
737
|
+
```
|
|
738
|
+
|
|
739
|
+
Example response:
|
|
740
|
+
|
|
741
|
+
```json
|
|
742
|
+
{
|
|
743
|
+
"isError": false,
|
|
744
|
+
"message": "",
|
|
745
|
+
"result": null
|
|
746
|
+
}
|
|
747
|
+
```
|
|
748
|
+
|
|
749
|
+
---
|
|
750
|
+
|
|
751
|
+
### `republishZomeMetaData`
|
|
752
|
+
|
|
753
|
+
Republishes a Zome Metadata.
|
|
754
|
+
|
|
755
|
+
**POST** `api/zomesMetaData/{id}/republish`
|
|
756
|
+
|
|
757
|
+
Route parameters:
|
|
758
|
+
|
|
759
|
+
| Field | Type |
|
|
760
|
+
| --- | --- |
|
|
761
|
+
| `id` | `Guid` |
|
|
762
|
+
|
|
763
|
+
**Request**
|
|
764
|
+
|
|
765
|
+
Body type: `PublishRequest`
|
|
766
|
+
|
|
767
|
+
| Field | Type |
|
|
768
|
+
| --- | --- |
|
|
769
|
+
| `SourcePath` | `string` |
|
|
770
|
+
| `LaunchTarget` | `string` |
|
|
771
|
+
| `PublishPath` | `string` |
|
|
772
|
+
| `Edit` | `bool` |
|
|
773
|
+
| `RegisterOnSTARNET` | `bool` |
|
|
774
|
+
| `GenerateBinary` | `bool` |
|
|
775
|
+
| `UploadToCloud` | `bool` |
|
|
776
|
+
|
|
777
|
+
**Response**
|
|
778
|
+
|
|
779
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
780
|
+
|
|
781
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
782
|
+
|
|
783
|
+
**Example**
|
|
784
|
+
|
|
785
|
+
```js
|
|
786
|
+
const { isError, message, result } = await star.zomesMetaData.republishZomeMetaData({
|
|
787
|
+
id: '<id>',
|
|
788
|
+
version: 1,
|
|
789
|
+
sourcePath: "example string",
|
|
790
|
+
launchTarget: "example string",
|
|
791
|
+
publishPath: "example string",
|
|
792
|
+
edit: true,
|
|
793
|
+
registerOnSTARNET: true,
|
|
794
|
+
generateBinary: true,
|
|
795
|
+
uploadToCloud: true
|
|
796
|
+
});
|
|
797
|
+
if (isError) throw new Error(message);
|
|
798
|
+
console.log(result);
|
|
799
|
+
```
|
|
800
|
+
|
|
801
|
+
Example response:
|
|
802
|
+
|
|
803
|
+
```json
|
|
804
|
+
{
|
|
805
|
+
"isError": false,
|
|
806
|
+
"message": "",
|
|
807
|
+
"result": null
|
|
808
|
+
}
|
|
809
|
+
```
|
|
810
|
+
|
|
811
|
+
---
|
|
812
|
+
|
|
813
|
+
### `searchZomesMetaData`
|
|
814
|
+
|
|
815
|
+
Searches for Zomes Metadata using advanced search criteria.
|
|
816
|
+
|
|
817
|
+
**POST** `api/zomesMetaData/search`
|
|
818
|
+
|
|
819
|
+
**Request**
|
|
820
|
+
|
|
821
|
+
Body type: `SearchRequest`
|
|
822
|
+
|
|
823
|
+
| Field | Type |
|
|
824
|
+
| --- | --- |
|
|
825
|
+
| `SearchTerm` | `string` |
|
|
826
|
+
| `Filters` | `Dictionary<string, object>` |
|
|
827
|
+
|
|
828
|
+
**Response**
|
|
829
|
+
|
|
830
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
831
|
+
|
|
832
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
833
|
+
|
|
834
|
+
**Example**
|
|
835
|
+
|
|
836
|
+
```js
|
|
837
|
+
const { isError, message, result } = await star.zomesMetaData.searchZomesMetaData({
|
|
838
|
+
searchTerm: "example string",
|
|
839
|
+
filters: { "<string>": {} }
|
|
840
|
+
});
|
|
841
|
+
if (isError) throw new Error(message);
|
|
842
|
+
console.log(result);
|
|
843
|
+
```
|
|
844
|
+
|
|
845
|
+
Example response:
|
|
846
|
+
|
|
847
|
+
```json
|
|
848
|
+
{
|
|
849
|
+
"isError": false,
|
|
850
|
+
"message": "",
|
|
851
|
+
"result": null
|
|
852
|
+
}
|
|
853
|
+
```
|
|
854
|
+
|
|
855
|
+
---
|
|
856
|
+
|
|
857
|
+
### `unpublishZomeMetaData`
|
|
858
|
+
|
|
859
|
+
Unpublishes a Zome Metadata.
|
|
860
|
+
|
|
861
|
+
**POST** `api/zomesMetaData/{id}/unpublish`
|
|
862
|
+
|
|
863
|
+
Route parameters:
|
|
864
|
+
|
|
865
|
+
| Field | Type |
|
|
866
|
+
| --- | --- |
|
|
867
|
+
| `id` | `Guid` |
|
|
868
|
+
|
|
869
|
+
**Request**
|
|
870
|
+
|
|
871
|
+
Body fields:
|
|
872
|
+
|
|
873
|
+
| Field | Type |
|
|
874
|
+
| --- | --- |
|
|
875
|
+
| `version` | `int (optional)` |
|
|
876
|
+
|
|
877
|
+
**Response**
|
|
878
|
+
|
|
879
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
880
|
+
|
|
881
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
882
|
+
|
|
883
|
+
**Example**
|
|
884
|
+
|
|
885
|
+
```js
|
|
886
|
+
const { isError, message, result } = await star.zomesMetaData.unpublishZomeMetaData({
|
|
887
|
+
id: '<id>',
|
|
888
|
+
version: 1
|
|
889
|
+
});
|
|
890
|
+
if (isError) throw new Error(message);
|
|
891
|
+
console.log(result);
|
|
892
|
+
```
|
|
893
|
+
|
|
894
|
+
Example response:
|
|
895
|
+
|
|
896
|
+
```json
|
|
897
|
+
{
|
|
898
|
+
"isError": false,
|
|
899
|
+
"message": "",
|
|
900
|
+
"result": null
|
|
901
|
+
}
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
---
|
|
905
|
+
|
|
906
|
+
### `updateZomeMetaData`
|
|
907
|
+
|
|
908
|
+
Updates an existing Zome Metadata.
|
|
909
|
+
|
|
910
|
+
**PUT** `api/zomesMetaData/{id}`
|
|
911
|
+
|
|
912
|
+
Route parameters:
|
|
913
|
+
|
|
914
|
+
| Field | Type |
|
|
915
|
+
| --- | --- |
|
|
916
|
+
| `id` | `Guid` |
|
|
917
|
+
|
|
918
|
+
**Request**
|
|
919
|
+
|
|
920
|
+
Body type: `ZomeMetaDataDNA`
|
|
921
|
+
|
|
922
|
+
_No fields._
|
|
923
|
+
|
|
924
|
+
**Response**
|
|
925
|
+
|
|
926
|
+
Standard `OASISResult` envelope (see top of this page) with:
|
|
927
|
+
|
|
928
|
+
`result` type: `IActionResult` (not part of the request/response payload).
|
|
929
|
+
|
|
930
|
+
**Example**
|
|
931
|
+
|
|
932
|
+
```js
|
|
933
|
+
const { isError, message, result } = await star.zomesMetaData.updateZomeMetaData({
|
|
934
|
+
id: '<id>'
|
|
935
|
+
});
|
|
936
|
+
if (isError) throw new Error(message);
|
|
937
|
+
console.log(result);
|
|
938
|
+
```
|
|
939
|
+
|
|
940
|
+
Example response:
|
|
941
|
+
|
|
942
|
+
```json
|
|
943
|
+
{
|
|
944
|
+
"isError": false,
|
|
945
|
+
"message": "",
|
|
946
|
+
"result": null
|
|
947
|
+
}
|
|
948
|
+
```
|
|
949
|
+
|