@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,1051 @@
|
|
|
1
|
+
# CelestialSpaces — `star.celestialSpaces`
|
|
2
|
+
|
|
3
|
+
Source controller: [`CelestialSpacesController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/STAR%20ODK/NextGenSoftware.OASIS.STAR.WebAPI/Controllers/CelestialSpacesController.cs)
|
|
4
|
+
Route prefix: `api/celestialSpaces`
|
|
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
|
+
### `activateCelestialSpace`
|
|
22
|
+
|
|
23
|
+
Activates a celestial space.
|
|
24
|
+
|
|
25
|
+
**POST** `api/celestialSpaces/{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.celestialSpaces.activateCelestialSpace({
|
|
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
|
+
### `createCelestialSpace`
|
|
71
|
+
|
|
72
|
+
Creates a new celestial space for the authenticated avatar.
|
|
73
|
+
|
|
74
|
+
**POST** `api/celestialSpaces`
|
|
75
|
+
|
|
76
|
+
**Request**
|
|
77
|
+
|
|
78
|
+
Body type: `STARCelestialSpace`
|
|
79
|
+
|
|
80
|
+
| Field | Type |
|
|
81
|
+
| --- | --- |
|
|
82
|
+
| `CelestialSpaceType` | `CelestialSpaceType` |
|
|
83
|
+
| `CelestialSpace` | `ICelestialSpace` |
|
|
84
|
+
| `CelestialSpaceId` | `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.celestialSpaces.createCelestialSpace({
|
|
96
|
+
celestialSpaceType: { },
|
|
97
|
+
celestialSpace: { "NearestStar": { "Luminosity": 1, "StarType": { }, "StarClassification": { }, "StarBinaryType": { } }, "CelestialBodies": /* <ReadOnlyCollection<ICelestialBody>> */, "CelestialSpaces": /* <ReadOnlyCollection<ICelestialSpace>> */, "Children": /* <new ReadOnlyCollection<IHolon>> */ },
|
|
98
|
+
celestialSpaceId: "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
|
+
### `createCelestialSpaceWithOptions`
|
|
117
|
+
|
|
118
|
+
Creates a new celestial space with specified parameters.
|
|
119
|
+
|
|
120
|
+
**POST** `api/celestialSpaces/create`
|
|
121
|
+
|
|
122
|
+
**Request**
|
|
123
|
+
|
|
124
|
+
Body type: `CreateCelestialSpaceRequest`
|
|
125
|
+
|
|
126
|
+
| Field | Type |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| `Name` | `string` |
|
|
129
|
+
| `Description` | `string` |
|
|
130
|
+
| `HolonSubType` | `HolonType` |
|
|
131
|
+
| `SourceFolderPath` | `string` |
|
|
132
|
+
| `CreateOptions` | `ISTARNETCreateOptions<STARCelestialSpace, 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.celestialSpaces.createCelestialSpaceWithOptions({
|
|
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
|
+
### `deactivateCelestialSpace`
|
|
167
|
+
|
|
168
|
+
Deactivates a celestial space.
|
|
169
|
+
|
|
170
|
+
**POST** `api/celestialSpaces/{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.celestialSpaces.deactivateCelestialSpace({
|
|
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
|
+
### `deleteCelestialSpace`
|
|
216
|
+
|
|
217
|
+
Deletes a celestial space by its unique identifier.
|
|
218
|
+
|
|
219
|
+
**DELETE** `api/celestialSpaces/{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.celestialSpaces.deleteCelestialSpace({
|
|
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
|
+
### `downloadCelestialSpace`
|
|
260
|
+
|
|
261
|
+
Downloads a celestial space from the STARNET system.
|
|
262
|
+
|
|
263
|
+
**POST** `api/celestialSpaces/{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.celestialSpaces.downloadCelestialSpace({
|
|
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
|
+
### `editCelestialSpace`
|
|
313
|
+
|
|
314
|
+
Edits a celestial space with new DNA configuration.
|
|
315
|
+
|
|
316
|
+
**POST** `api/celestialSpaces/{id}/edit`
|
|
317
|
+
|
|
318
|
+
Route parameters:
|
|
319
|
+
|
|
320
|
+
| Field | Type |
|
|
321
|
+
| --- | --- |
|
|
322
|
+
| `id` | `Guid` |
|
|
323
|
+
|
|
324
|
+
**Request**
|
|
325
|
+
|
|
326
|
+
Body type: `EditCelestialSpaceRequest`
|
|
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.celestialSpaces.editCelestialSpace({
|
|
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
|
+
### `getAllCelestialSpaces`
|
|
362
|
+
|
|
363
|
+
Retrieves all celestial spaces in the system.
|
|
364
|
+
|
|
365
|
+
**GET** `api/celestialSpaces`
|
|
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.celestialSpaces.getAllCelestialSpaces({});
|
|
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
|
+
### `getCelestialSpace`
|
|
398
|
+
|
|
399
|
+
Retrieves a specific celestial space by its unique identifier.
|
|
400
|
+
|
|
401
|
+
**GET** `api/celestialSpaces/{id}`
|
|
402
|
+
|
|
403
|
+
Route parameters:
|
|
404
|
+
|
|
405
|
+
| Field | Type |
|
|
406
|
+
| --- | --- |
|
|
407
|
+
| `id` | `Guid` |
|
|
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.celestialSpaces.getCelestialSpace({
|
|
423
|
+
id: '<id>'
|
|
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
|
+
### `getCelestialSpaceVersions`
|
|
442
|
+
|
|
443
|
+
Gets all versions of a specific celestial space.
|
|
444
|
+
|
|
445
|
+
**GET** `api/celestialSpaces/{id}/versions`
|
|
446
|
+
|
|
447
|
+
Route parameters:
|
|
448
|
+
|
|
449
|
+
| Field | Type |
|
|
450
|
+
| --- | --- |
|
|
451
|
+
| `id` | `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.celestialSpaces.getCelestialSpaceVersions({
|
|
467
|
+
id: '<id>'
|
|
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
|
+
### `getCelestialSpacesByType`
|
|
486
|
+
|
|
487
|
+
Retrieves celestial spaces by a specific type.
|
|
488
|
+
|
|
489
|
+
**GET** `api/celestialSpaces/by-type/{type}`
|
|
490
|
+
|
|
491
|
+
Route parameters:
|
|
492
|
+
|
|
493
|
+
| Field | Type |
|
|
494
|
+
| --- | --- |
|
|
495
|
+
| `type` | `string` |
|
|
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.celestialSpaces.getCelestialSpacesByType({
|
|
511
|
+
type: '<type>'
|
|
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
|
+
### `getCelestialSpacesInSpace`
|
|
530
|
+
|
|
531
|
+
Retrieves celestial spaces within a specific parent celestial space.
|
|
532
|
+
|
|
533
|
+
**GET** `api/celestialSpaces/in-space/{parentSpaceId}`
|
|
534
|
+
|
|
535
|
+
Route parameters:
|
|
536
|
+
|
|
537
|
+
| Field | Type |
|
|
538
|
+
| --- | --- |
|
|
539
|
+
| `parentSpaceId` | `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.celestialSpaces.getCelestialSpacesInSpace({
|
|
555
|
+
parentSpaceId: '<parentSpaceId>'
|
|
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
|
+
### `loadAllCelestialSpacesForAvatar`
|
|
574
|
+
|
|
575
|
+
Loads all celestial spaces for the authenticated avatar.
|
|
576
|
+
|
|
577
|
+
**GET** `api/celestialSpaces/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.celestialSpaces.loadAllCelestialSpacesForAvatar({
|
|
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
|
+
### `loadCelestialSpace`
|
|
618
|
+
|
|
619
|
+
Loads a celestial space by ID with optional version and holon type.
|
|
620
|
+
|
|
621
|
+
**GET** `api/celestialSpaces/{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.celestialSpaces.loadCelestialSpace({
|
|
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
|
+
### `loadCelestialSpaceFromPath`
|
|
669
|
+
|
|
670
|
+
Loads a celestial space from source or installed folder path.
|
|
671
|
+
|
|
672
|
+
**GET** `api/celestialSpaces/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.celestialSpaces.loadCelestialSpaceFromPath({
|
|
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
|
+
### `loadCelestialSpaceFromPublished`
|
|
713
|
+
|
|
714
|
+
Loads a celestial space from a published file.
|
|
715
|
+
|
|
716
|
+
**GET** `api/celestialSpaces/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.celestialSpaces.loadCelestialSpaceFromPublished({
|
|
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
|
+
### `loadCelestialSpaceVersion`
|
|
755
|
+
|
|
756
|
+
Loads a specific version of a celestial space.
|
|
757
|
+
|
|
758
|
+
**GET** `api/celestialSpaces/{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.celestialSpaces.loadCelestialSpaceVersion({
|
|
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
|
+
### `publishCelestialSpace`
|
|
801
|
+
|
|
802
|
+
Publishes a celestial space to the STARNET system.
|
|
803
|
+
|
|
804
|
+
**POST** `api/celestialSpaces/{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.celestialSpaces.publishCelestialSpace({
|
|
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
|
+
### `republishCelestialSpace`
|
|
862
|
+
|
|
863
|
+
Republishes a celestial space to the STARNET system.
|
|
864
|
+
|
|
865
|
+
**POST** `api/celestialSpaces/{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.celestialSpaces.republishCelestialSpace({
|
|
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
|
+
### `searchCelestialSpaces`
|
|
911
|
+
|
|
912
|
+
Searches celestial spaces by name or description.
|
|
913
|
+
|
|
914
|
+
**GET** `api/celestialSpaces/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.celestialSpaces.searchCelestialSpaces({
|
|
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
|
+
### `unpublishCelestialSpace`
|
|
953
|
+
|
|
954
|
+
Unpublishes a celestial space from the STARNET system.
|
|
955
|
+
|
|
956
|
+
**POST** `api/celestialSpaces/{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.celestialSpaces.unpublishCelestialSpace({
|
|
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
|
+
### `updateCelestialSpace`
|
|
1002
|
+
|
|
1003
|
+
Updates an existing celestial space by its unique identifier.
|
|
1004
|
+
|
|
1005
|
+
**PUT** `api/celestialSpaces/{id}`
|
|
1006
|
+
|
|
1007
|
+
Route parameters:
|
|
1008
|
+
|
|
1009
|
+
| Field | Type |
|
|
1010
|
+
| --- | --- |
|
|
1011
|
+
| `id` | `Guid` |
|
|
1012
|
+
|
|
1013
|
+
**Request**
|
|
1014
|
+
|
|
1015
|
+
Body type: `STARCelestialSpace`
|
|
1016
|
+
|
|
1017
|
+
| Field | Type |
|
|
1018
|
+
| --- | --- |
|
|
1019
|
+
| `CelestialSpaceType` | `CelestialSpaceType` |
|
|
1020
|
+
| `CelestialSpace` | `ICelestialSpace` |
|
|
1021
|
+
| `CelestialSpaceId` | `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.celestialSpaces.updateCelestialSpace({
|
|
1033
|
+
id: '<id>',
|
|
1034
|
+
celestialSpaceType: { },
|
|
1035
|
+
celestialSpace: { "NearestStar": { "Luminosity": 1, "StarType": { }, "StarClassification": { }, "StarBinaryType": { } }, "CelestialBodies": /* <ReadOnlyCollection<ICelestialBody>> */, "CelestialSpaces": /* <ReadOnlyCollection<ICelestialSpace>> */, "Children": /* <new ReadOnlyCollection<IHolon>> */ },
|
|
1036
|
+
celestialSpaceId: "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
|
+
|