@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.
Files changed (92) hide show
  1. package/README.md +250 -0
  2. package/docs/README.md +44 -0
  3. package/docs/modules/Avatar.md +606 -0
  4. package/docs/modules/CelestialBodies.md +1051 -0
  5. package/docs/modules/CelestialBodiesMetaData.md +949 -0
  6. package/docs/modules/CelestialSpaces.md +1051 -0
  7. package/docs/modules/Chapters.md +955 -0
  8. package/docs/modules/Competition.md +594 -0
  9. package/docs/modules/Cosmic.md +3653 -0
  10. package/docs/modules/Games.md +2619 -0
  11. package/docs/modules/GeoHotSpots.md +1027 -0
  12. package/docs/modules/GeoNFTs.md +1049 -0
  13. package/docs/modules/Health.md +90 -0
  14. package/docs/modules/Holons.md +1139 -0
  15. package/docs/modules/HolonsMetaData.md +949 -0
  16. package/docs/modules/InventoryItems.md +1071 -0
  17. package/docs/modules/Libraries.md +1052 -0
  18. package/docs/modules/Missions.md +1286 -0
  19. package/docs/modules/NFTs.md +1008 -0
  20. package/docs/modules/OAPPs.md +1190 -0
  21. package/docs/modules/Parks.md +1079 -0
  22. package/docs/modules/Plugins.md +1138 -0
  23. package/docs/modules/Quests.md +1941 -0
  24. package/docs/modules/Runtimes.md +1112 -0
  25. package/docs/modules/STAR.md +178 -0
  26. package/docs/modules/Templates.md +990 -0
  27. package/docs/modules/Zomes.md +1049 -0
  28. package/docs/modules/ZomesMetaData.md +949 -0
  29. package/index.d.ts +97 -0
  30. package/index.js +3 -0
  31. package/index.mjs +4 -0
  32. package/package.json +117 -0
  33. package/src/core/httpClient.js +110 -0
  34. package/src/core/routeHelper.js +85 -0
  35. package/src/core/tokenStore.js +52 -0
  36. package/src/core/types.d.ts +18 -0
  37. package/src/index.js +60 -0
  38. package/src/modules/Auth.d.ts +15 -0
  39. package/src/modules/Auth.js +62 -0
  40. package/src/modules/Avatar.d.ts +45 -0
  41. package/src/modules/Avatar.js +47 -0
  42. package/src/modules/CelestialBodies.d.ts +72 -0
  43. package/src/modules/CelestialBodies.js +65 -0
  44. package/src/modules/CelestialBodiesMetaData.d.ts +69 -0
  45. package/src/modules/CelestialBodiesMetaData.js +61 -0
  46. package/src/modules/CelestialSpaces.d.ts +72 -0
  47. package/src/modules/CelestialSpaces.js +65 -0
  48. package/src/modules/Chapters.d.ts +66 -0
  49. package/src/modules/Chapters.js +61 -0
  50. package/src/modules/Competition.d.ts +33 -0
  51. package/src/modules/Competition.js +39 -0
  52. package/src/modules/Cosmic.d.ts +222 -0
  53. package/src/modules/Cosmic.js +165 -0
  54. package/src/modules/Games.d.ts +171 -0
  55. package/src/modules/Games.js +131 -0
  56. package/src/modules/GeoHotSpots.d.ts +66 -0
  57. package/src/modules/GeoHotSpots.js +61 -0
  58. package/src/modules/GeoNFTs.d.ts +72 -0
  59. package/src/modules/GeoNFTs.js +65 -0
  60. package/src/modules/Health.d.ts +12 -0
  61. package/src/modules/Health.js +25 -0
  62. package/src/modules/Holons.d.ts +78 -0
  63. package/src/modules/Holons.js +69 -0
  64. package/src/modules/HolonsMetaData.d.ts +69 -0
  65. package/src/modules/HolonsMetaData.js +61 -0
  66. package/src/modules/InventoryItems.d.ts +69 -0
  67. package/src/modules/InventoryItems.js +63 -0
  68. package/src/modules/Libraries.d.ts +72 -0
  69. package/src/modules/Libraries.js +65 -0
  70. package/src/modules/Missions.d.ts +87 -0
  71. package/src/modules/Missions.js +75 -0
  72. package/src/modules/NFTs.d.ts +69 -0
  73. package/src/modules/NFTs.js +63 -0
  74. package/src/modules/OAPPs.d.ts +69 -0
  75. package/src/modules/OAPPs.js +61 -0
  76. package/src/modules/Parks.d.ts +72 -0
  77. package/src/modules/Parks.js +65 -0
  78. package/src/modules/Plugins.d.ts +78 -0
  79. package/src/modules/Plugins.js +69 -0
  80. package/src/modules/Quests.d.ts +129 -0
  81. package/src/modules/Quests.js +101 -0
  82. package/src/modules/Runtimes.d.ts +81 -0
  83. package/src/modules/Runtimes.js +69 -0
  84. package/src/modules/STAR.d.ts +18 -0
  85. package/src/modules/STAR.js +29 -0
  86. package/src/modules/Templates.d.ts +72 -0
  87. package/src/modules/Templates.js +63 -0
  88. package/src/modules/Zomes.d.ts +72 -0
  89. package/src/modules/Zomes.js +65 -0
  90. package/src/modules/ZomesMetaData.d.ts +69 -0
  91. package/src/modules/ZomesMetaData.js +61 -0
  92. package/src/modules/index.js +67 -0
@@ -0,0 +1,1051 @@
1
+ # CelestialBodies — `star.celestialBodies`
2
+
3
+ Source controller: [`CelestialBodiesController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/STAR%20ODK/NextGenSoftware.OASIS.STAR.WebAPI/Controllers/CelestialBodiesController.cs)
4
+ Route prefix: `api/celestialBodies`
5
+ 22 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
+ ### `activateCelestialBody`
22
+
23
+ Activates a celestial body.
24
+
25
+ **POST** `api/celestialBodies/{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.celestialBodies.activateCelestialBody({
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
+ ### `createCelestialBody`
71
+
72
+ Creates a new celestial body for the authenticated avatar.
73
+
74
+ **POST** `api/celestialBodies`
75
+
76
+ **Request**
77
+
78
+ Body type: `STARCelestialBody`
79
+
80
+ | Field | Type |
81
+ | --- | --- |
82
+ | `CelestialBodyType` | `CelestialBodyType` |
83
+ | `CelestialBody` | `ICelestialBody` |
84
+ | `CelestialBodyId` | `Guid` |
85
+
86
+ **Response**
87
+
88
+ Standard `OASISResult` envelope (see top of this page) with:
89
+
90
+ `result` type: `IActionResult` (not part of the request/response payload).
91
+
92
+ **Example**
93
+
94
+ ```js
95
+ const { isError, message, result } = await star.celestialBodies.createCelestialBody({
96
+ celestialBodyType: { },
97
+ celestialBody: { "CelestialBodyCore": { "Holons": [{ "CreatedOASISType": { "Score": 1.0 }, "CreatedProviderType": { "Score": 1.0 }, "GlobalHolonData": { }, "InstanceSavedOnProviderType": {}, "IsChanged": true, "IsNewHolon": true, "IsSaving": true, "Original": {}, "PreviousVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "PreviousVersionProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "ProviderMetaData": { "<ProviderType>": { "<string>": "example string" } }, "ProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "Nodes": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Parent": {}, "NodeName": "example string", "NodeType": { } }], "ParentOmniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentOmniverse": { "GreatGrandSuperStar": { }, "Dimensions": { "EighthDimension": { }, "NinthDimension": { }, "TenthDimension": { }, "EleventhDimension": { }, "TwelfthDimension": { }, "CustomDimensions": [{ "DimensionLevel": { } }] }, "Multiverses": [{ "GrandSuperStar": { "Stars": [ /* <I> */ ] }, "Dimensions": { "FirstDimension": { "Universe": { "Dimensions": [], "GalaxyClusters": [{ "Galaxies": [{ "SuperStar": { "Stars": [{ "Luminosity": 1, "StarType": { }, "StarClassification": { }, "StarBinaryType": { } }] }, "SolarSystems": [{ "Star": {}, "Planets": [{ "Moons": [{ }] }], "Asteroids": [{ }], "Comets": [{ }], "Meteroids": [{ }] }], "Nebulas": [{ }], "Stars": [], "Planets": [], "Asteroids": [], "Comets": [], "Meteroids": [] }], "SolarSystems": [], "Stars": [], "Planets": [], "Asteroids": [], "Comets": [], "Meteroids": [], "IsSuperCluster": true }], "SolarSystems": [], "Nebulas": [], "Stars": [], "Planets": [], "Asteroids": [], "Comets": [], "Meteroids": [] } }, "SecondDimension": { "Universe": {} }, "ThirdDimension": { "UniversePrime": {}, "MagicVerse": {}, "ParallelUniverses": [] }, "FourthDimension": { "Universe": {} }, "FifthDimension": { "Universe": {} }, "SixthDimension": { "Universe": {} }, "SeventhDimension": { "Universe": {} }, "CustomDimensions": [] } }] }, "ParentMultiverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMultiverse": {}, "ParentUniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentUniverse": {}, "ParentDimensionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentDimension": {}, "DimensionLevel": {}, "SubDimensionLevel": { }, "ParentGalaxyClusterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxyCluster": {}, "ParentGalaxyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxy": {}, "ParentSolarSystemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSolarSystem": {}, "ParentGreatGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGreatGrandSuperStar": {}, "ParentGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGrandSuperStar": {}, "ParentSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSuperStar": {}, "ParentStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentStar": {}, "ParentPlanetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentPlanet": {}, "ParentMoonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMoon": {}, "ParentCelestialSpaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialSpace": { "NearestStar": {}, "CelestialBodies": /* <ReadOnlyCollection<ICelestialBody>> */, "CelestialSpaces": /* <ReadOnlyCollection<ICelestialSpace>> */, "Children": /* <new ReadOnlyCollection<IHolon>> */ }, "ParentCelestialBodyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialBody": {}, "ParentZomeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentZome": { "HoloNETClient": { "WebSocket": /* <WebSocket.WebSocket> */, "Logger": /* <ILogger> */, "HolochainVersion": { } }, "ZomeName": "example string", "Holons": [{ "GlobalHolonData": {}, "ProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "ProviderMetaData": { "<ProviderType>": { "<string>": "example string" } }, "CustomKey": "example string", "IsNewHolon": true, "IsSaving": true, "PreviousVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "PreviousVersionProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "CreatedProviderType": {}, "InstanceSavedOnProviderType": {}, "CreatedOASISType": {}, "Nodes": [], "ParentOmniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentOmniverse": {}, "ParentMultiverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMultiverse": {}, "ParentUniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentUniverse": {}, "ParentDimensionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentDimension": {}, "DimensionLevel": {}, "SubDimensionLevel": {}, "ParentGalaxyClusterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxyCluster": {}, "ParentGalaxyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxy": {}, "ParentSolarSystemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSolarSystem": {}, "ParentGreatGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGreatGrandSuperStar": {}, "ParentGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGrandSuperStar": {}, "ParentSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSuperStar": {}, "ParentStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentStar": {}, "ParentPlanetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentPlanet": {}, "ParentMoonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMoon": {}, "ParentCelestialSpaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialSpace": {}, "ParentCelestialBodyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialBody": {}, "ParentZomeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentZome": {} }] } }], "Zomes": [] }, "CurrentOrbitAngleOfParentStar": 1, "Density": 1, "DistanceFromParentStarInMetres": 1, "GravitaionalPull": 1, "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Mass": 1, "NumberActiveAvatars": 1, "NumberRegisteredAvatars": 1, "OrbitPeriod": 1, "OrbitPositionFromParentStar": 1, "ProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "RotationPeriod": 1, "RotationSpeed": 1, "TiltAngle": 1, "Weight": 1 },
98
+ celestialBodyId: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
99
+ });
100
+ if (isError) throw new Error(message);
101
+ console.log(result);
102
+ ```
103
+
104
+ Example response:
105
+
106
+ ```json
107
+ {
108
+ "isError": false,
109
+ "message": "",
110
+ "result": null
111
+ }
112
+ ```
113
+
114
+ ---
115
+
116
+ ### `createCelestialBodyWithOptions`
117
+
118
+ Creates a new celestial body with specified parameters.
119
+
120
+ **POST** `api/celestialBodies/create`
121
+
122
+ **Request**
123
+
124
+ Body type: `CreateCelestialBodyRequest`
125
+
126
+ | Field | Type |
127
+ | --- | --- |
128
+ | `Name` | `string` |
129
+ | `Description` | `string` |
130
+ | `HolonSubType` | `HolonType` |
131
+ | `SourceFolderPath` | `string` |
132
+ | `CreateOptions` | `ISTARNETCreateOptions<STARCelestialBody, STARNETDNA>` |
133
+
134
+ **Response**
135
+
136
+ Standard `OASISResult` envelope (see top of this page) with:
137
+
138
+ `result` type: `IActionResult` (not part of the request/response payload).
139
+
140
+ **Example**
141
+
142
+ ```js
143
+ const { isError, message, result } = await star.celestialBodies.createCelestialBodyWithOptions({
144
+ name: "example string",
145
+ description: "example string",
146
+ holonSubType: { },
147
+ sourceFolderPath: "example string",
148
+ 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>": {} } }
149
+ });
150
+ if (isError) throw new Error(message);
151
+ console.log(result);
152
+ ```
153
+
154
+ Example response:
155
+
156
+ ```json
157
+ {
158
+ "isError": false,
159
+ "message": "",
160
+ "result": null
161
+ }
162
+ ```
163
+
164
+ ---
165
+
166
+ ### `deactivateCelestialBody`
167
+
168
+ Deactivates a celestial body.
169
+
170
+ **POST** `api/celestialBodies/{id}/deactivate`
171
+
172
+ Route parameters:
173
+
174
+ | Field | Type |
175
+ | --- | --- |
176
+ | `id` | `Guid` |
177
+
178
+ **Request**
179
+
180
+ Body fields:
181
+
182
+ | Field | Type |
183
+ | --- | --- |
184
+ | `version` | `int (optional)` |
185
+
186
+ **Response**
187
+
188
+ Standard `OASISResult` envelope (see top of this page) with:
189
+
190
+ `result` type: `IActionResult` (not part of the request/response payload).
191
+
192
+ **Example**
193
+
194
+ ```js
195
+ const { isError, message, result } = await star.celestialBodies.deactivateCelestialBody({
196
+ id: '<id>',
197
+ version: 1
198
+ });
199
+ if (isError) throw new Error(message);
200
+ console.log(result);
201
+ ```
202
+
203
+ Example response:
204
+
205
+ ```json
206
+ {
207
+ "isError": false,
208
+ "message": "",
209
+ "result": null
210
+ }
211
+ ```
212
+
213
+ ---
214
+
215
+ ### `deleteCelestialBody`
216
+
217
+ Deletes a celestial body by its unique identifier.
218
+
219
+ **DELETE** `api/celestialBodies/{id}`
220
+
221
+ Route parameters:
222
+
223
+ | Field | Type |
224
+ | --- | --- |
225
+ | `id` | `Guid` |
226
+
227
+ **Request**
228
+
229
+ No request body.
230
+
231
+ **Response**
232
+
233
+ Standard `OASISResult` envelope (see top of this page) with:
234
+
235
+ `result` type: `IActionResult` (not part of the request/response payload).
236
+
237
+ **Example**
238
+
239
+ ```js
240
+ const { isError, message, result } = await star.celestialBodies.deleteCelestialBody({
241
+ id: '<id>'
242
+ });
243
+ if (isError) throw new Error(message);
244
+ console.log(result);
245
+ ```
246
+
247
+ Example response:
248
+
249
+ ```json
250
+ {
251
+ "isError": false,
252
+ "message": "",
253
+ "result": null
254
+ }
255
+ ```
256
+
257
+ ---
258
+
259
+ ### `downloadCelestialBody`
260
+
261
+ Downloads a celestial body from the STARNET system.
262
+
263
+ **POST** `api/celestialBodies/{id}/download`
264
+
265
+ Route parameters:
266
+
267
+ | Field | Type |
268
+ | --- | --- |
269
+ | `id` | `Guid` |
270
+
271
+ **Request**
272
+
273
+ Body fields:
274
+
275
+ | Field | Type |
276
+ | --- | --- |
277
+ | `version` | `int (optional)` |
278
+ | `downloadPath` | `string (optional)` |
279
+ | `reInstall` | `bool (optional)` |
280
+
281
+ **Response**
282
+
283
+ Standard `OASISResult` envelope (see top of this page) with:
284
+
285
+ `result` type: `IActionResult` (not part of the request/response payload).
286
+
287
+ **Example**
288
+
289
+ ```js
290
+ const { isError, message, result } = await star.celestialBodies.downloadCelestialBody({
291
+ id: '<id>',
292
+ version: 1,
293
+ downloadPath: 'example string',
294
+ reInstall: true
295
+ });
296
+ if (isError) throw new Error(message);
297
+ console.log(result);
298
+ ```
299
+
300
+ Example response:
301
+
302
+ ```json
303
+ {
304
+ "isError": false,
305
+ "message": "",
306
+ "result": null
307
+ }
308
+ ```
309
+
310
+ ---
311
+
312
+ ### `editCelestialBody`
313
+
314
+ Edits a celestial body with new DNA configuration.
315
+
316
+ **POST** `api/celestialBodies/{id}/edit`
317
+
318
+ Route parameters:
319
+
320
+ | Field | Type |
321
+ | --- | --- |
322
+ | `id` | `Guid` |
323
+
324
+ **Request**
325
+
326
+ Body type: `EditCelestialBodyRequest`
327
+
328
+ | Field | Type |
329
+ | --- | --- |
330
+ | `NewDNA` | `STARNETDNA` |
331
+
332
+ **Response**
333
+
334
+ Standard `OASISResult` envelope (see top of this page) with:
335
+
336
+ `result` type: `IActionResult` (not part of the request/response payload).
337
+
338
+ **Example**
339
+
340
+ ```js
341
+ const { isError, message, result } = await star.celestialBodies.editCelestialBody({
342
+ id: '<id>',
343
+ 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 }
344
+ });
345
+ if (isError) throw new Error(message);
346
+ console.log(result);
347
+ ```
348
+
349
+ Example response:
350
+
351
+ ```json
352
+ {
353
+ "isError": false,
354
+ "message": "",
355
+ "result": null
356
+ }
357
+ ```
358
+
359
+ ---
360
+
361
+ ### `getAllCelestialBodies`
362
+
363
+ Retrieves all celestial bodies in the system.
364
+
365
+ **GET** `api/celestialBodies`
366
+
367
+ **Request**
368
+
369
+ No request body.
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.celestialBodies.getAllCelestialBodies({});
381
+ if (isError) throw new Error(message);
382
+ console.log(result);
383
+ ```
384
+
385
+ Example response:
386
+
387
+ ```json
388
+ {
389
+ "isError": false,
390
+ "message": "",
391
+ "result": null
392
+ }
393
+ ```
394
+
395
+ ---
396
+
397
+ ### `getCelestialBodiesByType`
398
+
399
+ Retrieves celestial bodies by a specific type.
400
+
401
+ **GET** `api/celestialBodies/by-type/{type}`
402
+
403
+ Route parameters:
404
+
405
+ | Field | Type |
406
+ | --- | --- |
407
+ | `type` | `string` |
408
+
409
+ **Request**
410
+
411
+ No request body.
412
+
413
+ **Response**
414
+
415
+ Standard `OASISResult` envelope (see top of this page) with:
416
+
417
+ `result` type: `IActionResult` (not part of the request/response payload).
418
+
419
+ **Example**
420
+
421
+ ```js
422
+ const { isError, message, result } = await star.celestialBodies.getCelestialBodiesByType({
423
+ type: '<type>'
424
+ });
425
+ if (isError) throw new Error(message);
426
+ console.log(result);
427
+ ```
428
+
429
+ Example response:
430
+
431
+ ```json
432
+ {
433
+ "isError": false,
434
+ "message": "",
435
+ "result": null
436
+ }
437
+ ```
438
+
439
+ ---
440
+
441
+ ### `getCelestialBodiesInSpace`
442
+
443
+ Retrieves celestial bodies within a specific celestial space.
444
+
445
+ **GET** `api/celestialBodies/in-space/{spaceId}`
446
+
447
+ Route parameters:
448
+
449
+ | Field | Type |
450
+ | --- | --- |
451
+ | `spaceId` | `Guid` |
452
+
453
+ **Request**
454
+
455
+ No request body.
456
+
457
+ **Response**
458
+
459
+ Standard `OASISResult` envelope (see top of this page) with:
460
+
461
+ `result` type: `IActionResult` (not part of the request/response payload).
462
+
463
+ **Example**
464
+
465
+ ```js
466
+ const { isError, message, result } = await star.celestialBodies.getCelestialBodiesInSpace({
467
+ spaceId: '<spaceId>'
468
+ });
469
+ if (isError) throw new Error(message);
470
+ console.log(result);
471
+ ```
472
+
473
+ Example response:
474
+
475
+ ```json
476
+ {
477
+ "isError": false,
478
+ "message": "",
479
+ "result": null
480
+ }
481
+ ```
482
+
483
+ ---
484
+
485
+ ### `getCelestialBody`
486
+
487
+ Retrieves a specific celestial body by its unique identifier.
488
+
489
+ **GET** `api/celestialBodies/{id}`
490
+
491
+ Route parameters:
492
+
493
+ | Field | Type |
494
+ | --- | --- |
495
+ | `id` | `Guid` |
496
+
497
+ **Request**
498
+
499
+ No request body.
500
+
501
+ **Response**
502
+
503
+ Standard `OASISResult` envelope (see top of this page) with:
504
+
505
+ `result` type: `IActionResult` (not part of the request/response payload).
506
+
507
+ **Example**
508
+
509
+ ```js
510
+ const { isError, message, result } = await star.celestialBodies.getCelestialBody({
511
+ id: '<id>'
512
+ });
513
+ if (isError) throw new Error(message);
514
+ console.log(result);
515
+ ```
516
+
517
+ Example response:
518
+
519
+ ```json
520
+ {
521
+ "isError": false,
522
+ "message": "",
523
+ "result": null
524
+ }
525
+ ```
526
+
527
+ ---
528
+
529
+ ### `getCelestialBodyVersions`
530
+
531
+ Gets all versions of a specific celestial body.
532
+
533
+ **GET** `api/celestialBodies/{id}/versions`
534
+
535
+ Route parameters:
536
+
537
+ | Field | Type |
538
+ | --- | --- |
539
+ | `id` | `Guid` |
540
+
541
+ **Request**
542
+
543
+ No request body.
544
+
545
+ **Response**
546
+
547
+ Standard `OASISResult` envelope (see top of this page) with:
548
+
549
+ `result` type: `IActionResult` (not part of the request/response payload).
550
+
551
+ **Example**
552
+
553
+ ```js
554
+ const { isError, message, result } = await star.celestialBodies.getCelestialBodyVersions({
555
+ id: '<id>'
556
+ });
557
+ if (isError) throw new Error(message);
558
+ console.log(result);
559
+ ```
560
+
561
+ Example response:
562
+
563
+ ```json
564
+ {
565
+ "isError": false,
566
+ "message": "",
567
+ "result": null
568
+ }
569
+ ```
570
+
571
+ ---
572
+
573
+ ### `loadAllCelestialBodiesForAvatar`
574
+
575
+ Loads all celestial bodies for the authenticated avatar.
576
+
577
+ **GET** `api/celestialBodies/load-all-for-avatar`
578
+
579
+ **Request**
580
+
581
+ Query parameters:
582
+
583
+ | Field | Type |
584
+ | --- | --- |
585
+ | `showAllVersions` | `bool (optional)` |
586
+ | `version` | `int (optional)` |
587
+
588
+ **Response**
589
+
590
+ Standard `OASISResult` envelope (see top of this page) with:
591
+
592
+ `result` type: `IActionResult` (not part of the request/response payload).
593
+
594
+ **Example**
595
+
596
+ ```js
597
+ const { isError, message, result } = await star.celestialBodies.loadAllCelestialBodiesForAvatar({
598
+ showAllVersions: true,
599
+ version: 1
600
+ });
601
+ if (isError) throw new Error(message);
602
+ console.log(result);
603
+ ```
604
+
605
+ Example response:
606
+
607
+ ```json
608
+ {
609
+ "isError": false,
610
+ "message": "",
611
+ "result": null
612
+ }
613
+ ```
614
+
615
+ ---
616
+
617
+ ### `loadCelestialBody`
618
+
619
+ Loads a celestial body by ID with optional version and holon type.
620
+
621
+ **GET** `api/celestialBodies/{id}/load`
622
+
623
+ Route parameters:
624
+
625
+ | Field | Type |
626
+ | --- | --- |
627
+ | `id` | `Guid` |
628
+
629
+ **Request**
630
+
631
+ Query parameters:
632
+
633
+ | Field | Type |
634
+ | --- | --- |
635
+ | `version` | `int (optional)` |
636
+ | `holonType` | `string (optional)` |
637
+
638
+ **Response**
639
+
640
+ Standard `OASISResult` envelope (see top of this page) with:
641
+
642
+ `result` type: `IActionResult` (not part of the request/response payload).
643
+
644
+ **Example**
645
+
646
+ ```js
647
+ const { isError, message, result } = await star.celestialBodies.loadCelestialBody({
648
+ id: '<id>',
649
+ version: 1,
650
+ holonType: 'example string'
651
+ });
652
+ if (isError) throw new Error(message);
653
+ console.log(result);
654
+ ```
655
+
656
+ Example response:
657
+
658
+ ```json
659
+ {
660
+ "isError": false,
661
+ "message": "",
662
+ "result": null
663
+ }
664
+ ```
665
+
666
+ ---
667
+
668
+ ### `loadCelestialBodyFromPath`
669
+
670
+ Loads a celestial body from source or installed folder path.
671
+
672
+ **GET** `api/celestialBodies/load-from-path`
673
+
674
+ **Request**
675
+
676
+ Query parameters:
677
+
678
+ | Field | Type |
679
+ | --- | --- |
680
+ | `path` | `string` |
681
+ | `holonType` | `string (optional)` |
682
+
683
+ **Response**
684
+
685
+ Standard `OASISResult` envelope (see top of this page) with:
686
+
687
+ `result` type: `IActionResult` (not part of the request/response payload).
688
+
689
+ **Example**
690
+
691
+ ```js
692
+ const { isError, message, result } = await star.celestialBodies.loadCelestialBodyFromPath({
693
+ path: 'example string',
694
+ holonType: 'example string'
695
+ });
696
+ if (isError) throw new Error(message);
697
+ console.log(result);
698
+ ```
699
+
700
+ Example response:
701
+
702
+ ```json
703
+ {
704
+ "isError": false,
705
+ "message": "",
706
+ "result": null
707
+ }
708
+ ```
709
+
710
+ ---
711
+
712
+ ### `loadCelestialBodyFromPublished`
713
+
714
+ Loads a celestial body from a published file.
715
+
716
+ **GET** `api/celestialBodies/load-from-published`
717
+
718
+ **Request**
719
+
720
+ Query parameters:
721
+
722
+ | Field | Type |
723
+ | --- | --- |
724
+ | `publishedFilePath` | `string` |
725
+
726
+ **Response**
727
+
728
+ Standard `OASISResult` envelope (see top of this page) with:
729
+
730
+ `result` type: `IActionResult` (not part of the request/response payload).
731
+
732
+ **Example**
733
+
734
+ ```js
735
+ const { isError, message, result } = await star.celestialBodies.loadCelestialBodyFromPublished({
736
+ publishedFilePath: 'example string'
737
+ });
738
+ if (isError) throw new Error(message);
739
+ console.log(result);
740
+ ```
741
+
742
+ Example response:
743
+
744
+ ```json
745
+ {
746
+ "isError": false,
747
+ "message": "",
748
+ "result": null
749
+ }
750
+ ```
751
+
752
+ ---
753
+
754
+ ### `loadCelestialBodyVersion`
755
+
756
+ Loads a specific version of a celestial body.
757
+
758
+ **GET** `api/celestialBodies/{id}/version/{version}`
759
+
760
+ Route parameters:
761
+
762
+ | Field | Type |
763
+ | --- | --- |
764
+ | `id` | `Guid` |
765
+ | `version` | `string` |
766
+
767
+ **Request**
768
+
769
+ No request body.
770
+
771
+ **Response**
772
+
773
+ Standard `OASISResult` envelope (see top of this page) with:
774
+
775
+ `result` type: `IActionResult` (not part of the request/response payload).
776
+
777
+ **Example**
778
+
779
+ ```js
780
+ const { isError, message, result } = await star.celestialBodies.loadCelestialBodyVersion({
781
+ id: '<id>',
782
+ version: '<version>'
783
+ });
784
+ if (isError) throw new Error(message);
785
+ console.log(result);
786
+ ```
787
+
788
+ Example response:
789
+
790
+ ```json
791
+ {
792
+ "isError": false,
793
+ "message": "",
794
+ "result": null
795
+ }
796
+ ```
797
+
798
+ ---
799
+
800
+ ### `publishCelestialBody`
801
+
802
+ Publishes a celestial body to the STARNET system.
803
+
804
+ **POST** `api/celestialBodies/{id}/publish`
805
+
806
+ Route parameters:
807
+
808
+ | Field | Type |
809
+ | --- | --- |
810
+ | `id` | `Guid` |
811
+
812
+ **Request**
813
+
814
+ Body type: `PublishRequest`
815
+
816
+ | Field | Type |
817
+ | --- | --- |
818
+ | `SourcePath` | `string` |
819
+ | `LaunchTarget` | `string` |
820
+ | `PublishPath` | `string` |
821
+ | `Edit` | `bool` |
822
+ | `RegisterOnSTARNET` | `bool` |
823
+ | `GenerateBinary` | `bool` |
824
+ | `UploadToCloud` | `bool` |
825
+
826
+ **Response**
827
+
828
+ Standard `OASISResult` envelope (see top of this page) with:
829
+
830
+ `result` type: `IActionResult` (not part of the request/response payload).
831
+
832
+ **Example**
833
+
834
+ ```js
835
+ const { isError, message, result } = await star.celestialBodies.publishCelestialBody({
836
+ id: '<id>',
837
+ sourcePath: "example string",
838
+ launchTarget: "example string",
839
+ publishPath: "example string",
840
+ edit: true,
841
+ registerOnSTARNET: true,
842
+ generateBinary: true,
843
+ uploadToCloud: true
844
+ });
845
+ if (isError) throw new Error(message);
846
+ console.log(result);
847
+ ```
848
+
849
+ Example response:
850
+
851
+ ```json
852
+ {
853
+ "isError": false,
854
+ "message": "",
855
+ "result": null
856
+ }
857
+ ```
858
+
859
+ ---
860
+
861
+ ### `republishCelestialBody`
862
+
863
+ Republishes a celestial body to the STARNET system.
864
+
865
+ **POST** `api/celestialBodies/{id}/republish`
866
+
867
+ Route parameters:
868
+
869
+ | Field | Type |
870
+ | --- | --- |
871
+ | `id` | `Guid` |
872
+
873
+ **Request**
874
+
875
+ Body fields:
876
+
877
+ | Field | Type |
878
+ | --- | --- |
879
+ | `version` | `int (optional)` |
880
+
881
+ **Response**
882
+
883
+ Standard `OASISResult` envelope (see top of this page) with:
884
+
885
+ `result` type: `IActionResult` (not part of the request/response payload).
886
+
887
+ **Example**
888
+
889
+ ```js
890
+ const { isError, message, result } = await star.celestialBodies.republishCelestialBody({
891
+ id: '<id>',
892
+ version: 1
893
+ });
894
+ if (isError) throw new Error(message);
895
+ console.log(result);
896
+ ```
897
+
898
+ Example response:
899
+
900
+ ```json
901
+ {
902
+ "isError": false,
903
+ "message": "",
904
+ "result": null
905
+ }
906
+ ```
907
+
908
+ ---
909
+
910
+ ### `searchCelestialBodies`
911
+
912
+ Searches celestial bodies by name or description.
913
+
914
+ **GET** `api/celestialBodies/search`
915
+
916
+ **Request**
917
+
918
+ Query parameters:
919
+
920
+ | Field | Type |
921
+ | --- | --- |
922
+ | `query` | `string` |
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.celestialBodies.searchCelestialBodies({
934
+ query: 'example string'
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
+
950
+ ---
951
+
952
+ ### `unpublishCelestialBody`
953
+
954
+ Unpublishes a celestial body from the STARNET system.
955
+
956
+ **POST** `api/celestialBodies/{id}/unpublish`
957
+
958
+ Route parameters:
959
+
960
+ | Field | Type |
961
+ | --- | --- |
962
+ | `id` | `Guid` |
963
+
964
+ **Request**
965
+
966
+ Body fields:
967
+
968
+ | Field | Type |
969
+ | --- | --- |
970
+ | `version` | `int (optional)` |
971
+
972
+ **Response**
973
+
974
+ Standard `OASISResult` envelope (see top of this page) with:
975
+
976
+ `result` type: `IActionResult` (not part of the request/response payload).
977
+
978
+ **Example**
979
+
980
+ ```js
981
+ const { isError, message, result } = await star.celestialBodies.unpublishCelestialBody({
982
+ id: '<id>',
983
+ version: 1
984
+ });
985
+ if (isError) throw new Error(message);
986
+ console.log(result);
987
+ ```
988
+
989
+ Example response:
990
+
991
+ ```json
992
+ {
993
+ "isError": false,
994
+ "message": "",
995
+ "result": null
996
+ }
997
+ ```
998
+
999
+ ---
1000
+
1001
+ ### `updateCelestialBody`
1002
+
1003
+ Updates an existing celestial body by its unique identifier.
1004
+
1005
+ **PUT** `api/celestialBodies/{id}`
1006
+
1007
+ Route parameters:
1008
+
1009
+ | Field | Type |
1010
+ | --- | --- |
1011
+ | `id` | `Guid` |
1012
+
1013
+ **Request**
1014
+
1015
+ Body type: `STARCelestialBody`
1016
+
1017
+ | Field | Type |
1018
+ | --- | --- |
1019
+ | `CelestialBodyType` | `CelestialBodyType` |
1020
+ | `CelestialBody` | `ICelestialBody` |
1021
+ | `CelestialBodyId` | `Guid` |
1022
+
1023
+ **Response**
1024
+
1025
+ Standard `OASISResult` envelope (see top of this page) with:
1026
+
1027
+ `result` type: `IActionResult` (not part of the request/response payload).
1028
+
1029
+ **Example**
1030
+
1031
+ ```js
1032
+ const { isError, message, result } = await star.celestialBodies.updateCelestialBody({
1033
+ id: '<id>',
1034
+ celestialBodyType: { },
1035
+ celestialBody: { "CelestialBodyCore": { "Holons": [{ "CreatedOASISType": { "Score": 1.0 }, "CreatedProviderType": { "Score": 1.0 }, "GlobalHolonData": { }, "InstanceSavedOnProviderType": {}, "IsChanged": true, "IsNewHolon": true, "IsSaving": true, "Original": {}, "PreviousVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "PreviousVersionProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "ProviderMetaData": { "<ProviderType>": { "<string>": "example string" } }, "ProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "Nodes": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Parent": {}, "NodeName": "example string", "NodeType": { } }], "ParentOmniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentOmniverse": { "GreatGrandSuperStar": { }, "Dimensions": { "EighthDimension": { }, "NinthDimension": { }, "TenthDimension": { }, "EleventhDimension": { }, "TwelfthDimension": { }, "CustomDimensions": [{ "DimensionLevel": { } }] }, "Multiverses": [{ "GrandSuperStar": { "Stars": [ /* <I> */ ] }, "Dimensions": { "FirstDimension": { "Universe": { "Dimensions": [], "GalaxyClusters": [{ "Galaxies": [{ "SuperStar": { "Stars": [{ "Luminosity": 1, "StarType": { }, "StarClassification": { }, "StarBinaryType": { } }] }, "SolarSystems": [{ "Star": {}, "Planets": [{ "Moons": [{ }] }], "Asteroids": [{ }], "Comets": [{ }], "Meteroids": [{ }] }], "Nebulas": [{ }], "Stars": [], "Planets": [], "Asteroids": [], "Comets": [], "Meteroids": [] }], "SolarSystems": [], "Stars": [], "Planets": [], "Asteroids": [], "Comets": [], "Meteroids": [], "IsSuperCluster": true }], "SolarSystems": [], "Nebulas": [], "Stars": [], "Planets": [], "Asteroids": [], "Comets": [], "Meteroids": [] } }, "SecondDimension": { "Universe": {} }, "ThirdDimension": { "UniversePrime": {}, "MagicVerse": {}, "ParallelUniverses": [] }, "FourthDimension": { "Universe": {} }, "FifthDimension": { "Universe": {} }, "SixthDimension": { "Universe": {} }, "SeventhDimension": { "Universe": {} }, "CustomDimensions": [] } }] }, "ParentMultiverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMultiverse": {}, "ParentUniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentUniverse": {}, "ParentDimensionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentDimension": {}, "DimensionLevel": {}, "SubDimensionLevel": { }, "ParentGalaxyClusterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxyCluster": {}, "ParentGalaxyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxy": {}, "ParentSolarSystemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSolarSystem": {}, "ParentGreatGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGreatGrandSuperStar": {}, "ParentGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGrandSuperStar": {}, "ParentSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSuperStar": {}, "ParentStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentStar": {}, "ParentPlanetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentPlanet": {}, "ParentMoonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMoon": {}, "ParentCelestialSpaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialSpace": { "NearestStar": {}, "CelestialBodies": /* <ReadOnlyCollection<ICelestialBody>> */, "CelestialSpaces": /* <ReadOnlyCollection<ICelestialSpace>> */, "Children": /* <new ReadOnlyCollection<IHolon>> */ }, "ParentCelestialBodyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialBody": {}, "ParentZomeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentZome": { "HoloNETClient": { "WebSocket": /* <WebSocket.WebSocket> */, "Logger": /* <ILogger> */, "HolochainVersion": { } }, "ZomeName": "example string", "Holons": [{ "GlobalHolonData": {}, "ProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "ProviderMetaData": { "<ProviderType>": { "<string>": "example string" } }, "CustomKey": "example string", "IsNewHolon": true, "IsSaving": true, "PreviousVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "PreviousVersionProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "CreatedProviderType": {}, "InstanceSavedOnProviderType": {}, "CreatedOASISType": {}, "Nodes": [], "ParentOmniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentOmniverse": {}, "ParentMultiverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMultiverse": {}, "ParentUniverseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentUniverse": {}, "ParentDimensionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentDimension": {}, "DimensionLevel": {}, "SubDimensionLevel": {}, "ParentGalaxyClusterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxyCluster": {}, "ParentGalaxyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGalaxy": {}, "ParentSolarSystemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSolarSystem": {}, "ParentGreatGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGreatGrandSuperStar": {}, "ParentGrandSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentGrandSuperStar": {}, "ParentSuperStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentSuperStar": {}, "ParentStarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentStar": {}, "ParentPlanetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentPlanet": {}, "ParentMoonId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentMoon": {}, "ParentCelestialSpaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialSpace": {}, "ParentCelestialBodyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentCelestialBody": {}, "ParentZomeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentZome": {} }] } }], "Zomes": [] }, "CurrentOrbitAngleOfParentStar": 1, "Density": 1, "DistanceFromParentStarInMetres": 1, "GravitaionalPull": 1, "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Mass": 1, "NumberActiveAvatars": 1, "NumberRegisteredAvatars": 1, "OrbitPeriod": 1, "OrbitPositionFromParentStar": 1, "ProviderUniqueStorageKey": { "<ProviderType>": "example string" }, "RotationPeriod": 1, "RotationSpeed": 1, "TiltAngle": 1, "Weight": 1 },
1036
+ celestialBodyId: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1037
+ });
1038
+ if (isError) throw new Error(message);
1039
+ console.log(result);
1040
+ ```
1041
+
1042
+ Example response:
1043
+
1044
+ ```json
1045
+ {
1046
+ "isError": false,
1047
+ "message": "",
1048
+ "result": null
1049
+ }
1050
+ ```
1051
+