@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,1190 @@
1
+ # OAPPs — `star.oAPPs`
2
+
3
+ Source controller: [`OAPPsController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/STAR%20ODK/NextGenSoftware.OASIS.STAR.WebAPI/Controllers/OAPPsController.cs)
4
+ Route prefix: `api/oAPPs`
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
+ ### `activateOAPP`
22
+
23
+ Activates an OAPP in the STARNET system.
24
+
25
+ **POST** `api/oAPPs/{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.oAPPs.activateOAPP({
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
+ ### `cloneOAPP`
71
+
72
+ **POST** `api/oAPPs/{id}/clone`
73
+
74
+ Route parameters:
75
+
76
+ | Field | Type |
77
+ | --- | --- |
78
+ | `id` | `Guid` |
79
+
80
+ **Request**
81
+
82
+ Body type: `CloneRequest`
83
+
84
+ | Field | Type |
85
+ | --- | --- |
86
+ | `NewName` | `string` |
87
+
88
+ **Response**
89
+
90
+ Standard `OASISResult` envelope (see top of this page) with:
91
+
92
+ `result` type: `IActionResult` (not part of the request/response payload).
93
+
94
+ **Example**
95
+
96
+ ```js
97
+ const { isError, message, result } = await star.oAPPs.cloneOAPP({
98
+ id: '<id>',
99
+ newName: "example string"
100
+ });
101
+ if (isError) throw new Error(message);
102
+ console.log(result);
103
+ ```
104
+
105
+ Example response:
106
+
107
+ ```json
108
+ {
109
+ "isError": false,
110
+ "message": "",
111
+ "result": null
112
+ }
113
+ ```
114
+
115
+ ---
116
+
117
+ ### `createOAPP`
118
+
119
+ Creates a new OAPP for the authenticated avatar.
120
+
121
+ **POST** `api/oAPPs`
122
+
123
+ **Request**
124
+
125
+ Body type: `OAPP`
126
+
127
+ | Field | Type |
128
+ | --- | --- |
129
+ | `OAPPTemplateId` | `Guid` |
130
+ | `OAPPTemplateName` | `string` |
131
+ | `OAPPTemplateDescription` | `string` |
132
+ | `OAPPTemplateType` | `OAPPTemplateType` |
133
+ | `OAPPTemplateVersionSequence` | `int` |
134
+ | `OAPPTemplateVersion` | `string` |
135
+ | `MetaTagMappings` | `Dictionary<string, string>` |
136
+ | `CelestialBodyMetaDataId` | `Guid` |
137
+ | `CelestialBodyMetaDataName` | `string` |
138
+ | `CelestialBodyMetaDataDescription` | `string` |
139
+ | `CelestialBodyMetaDataType` | `CelestialBodyType` |
140
+ | `CelestialBodyMetaDataVersionSequence` | `int` |
141
+ | `CelestialBodyMetaDataVersion` | `string` |
142
+ | `CelestialBodyMetaDataGeneratedPath` | `string` |
143
+ | `OurWorldLat` | `long` |
144
+ | `OurWorldLong` | `long` |
145
+ | `OneWorldLat` | `long` |
146
+ | `OneWorldLong` | `long` |
147
+ | `OurWorld3dObjectPath` | `string` |
148
+ | `OurWorld3dObject` | `byte[]` |
149
+ | `OurWorld3dObjectURI` | `Uri` |
150
+ | `OurWorld2dSpritePath` | `string` |
151
+ | `OurWorld2dSprite` | `byte[]` |
152
+ | `OurWorld2dSpriteURI` | `Uri` |
153
+ | `OneWorld3dObjectPath` | `string` |
154
+ | `OneWorld3dObject` | `byte[]` |
155
+ | `OneWorld3dObjectURI` | `Uri` |
156
+ | `OneWorld2dSpritePath` | `string` |
157
+ | `OneWorld2dSprite` | `byte[]` |
158
+ | `OneWorld2dSpriteURI` | `Uri` |
159
+ | `SelfContainedPublishedPath` | `string` |
160
+ | `SelfContainedFullPublishedPath` | `string` |
161
+ | `SelfContainedPublishedToCloud` | `bool` |
162
+ | `SelfContainedFullPublishedToCloud` | `bool` |
163
+ | `SelfContainedPublishedProviderType` | `ProviderType` |
164
+ | `SelfContainedFullPublishedProviderType` | `ProviderType` |
165
+ | `SelfContainedFileSize` | `long` |
166
+ | `SelfContainedFullFileSize` | `long` |
167
+ | `SourcePublishedPath` | `string` |
168
+ | `SourcePublishedOnSTARNET` | `bool` |
169
+ | `SourcePublicOnSTARNET` | `bool` |
170
+ | `SourceFileSize` | `long` |
171
+ | `IsActive` | `bool` |
172
+ | `OAPPType` | `OAPPType` |
173
+ | `GenesisType` | `GenesisType` |
174
+ | `CelestialBodyId` | `Guid` |
175
+ | `CelestialBodyName` | `string` |
176
+ | `CelestialBodyType` | `HolonType` |
177
+ | `Zomes` | `IEnumerable<IZome>` |
178
+ | `SelfContainedDownloads` | `int` |
179
+ | `SelfContainedFullDownloads` | `int` |
180
+ | `SourceDownloads` | `int` |
181
+ | `TotalSelfContainedDownloads` | `int` |
182
+ | `TotalSelfContainedFullDownloads` | `int` |
183
+ | `TotalSourceDownloads` | `int` |
184
+ | `SelfContainedInstalls` | `int` |
185
+ | `SelfContainedFullInstalls` | `int` |
186
+ | `SourceInstalls` | `int` |
187
+ | `TotalSelfContainedInstalls` | `int` |
188
+ | `TotalSelfContainedFullInstalls` | `int` |
189
+ | `TotalSourceInstalls` | `int` |
190
+
191
+ **Response**
192
+
193
+ Standard `OASISResult` envelope (see top of this page) with:
194
+
195
+ `result` type: `IActionResult` (not part of the request/response payload).
196
+
197
+ **Example**
198
+
199
+ ```js
200
+ const { isError, message, result } = await star.oAPPs.createOAPP({
201
+ oAPPTemplateId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
202
+ oAPPTemplateName: "example string",
203
+ oAPPTemplateDescription: "example string",
204
+ oAPPTemplateType: { },
205
+ oAPPTemplateVersionSequence: 1,
206
+ oAPPTemplateVersion: "example string",
207
+ metaTagMappings: { "<string>": "example string" },
208
+ celestialBodyMetaDataId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
209
+ celestialBodyMetaDataName: "example string",
210
+ celestialBodyMetaDataDescription: "example string",
211
+ celestialBodyMetaDataType: { },
212
+ celestialBodyMetaDataVersionSequence: 1,
213
+ celestialBodyMetaDataVersion: "example string",
214
+ celestialBodyMetaDataGeneratedPath: "example string",
215
+ ourWorldLat: 1,
216
+ ourWorldLong: 1,
217
+ oneWorldLat: 1,
218
+ oneWorldLong: 1,
219
+ ourWorld3dObjectPath: "example string",
220
+ ourWorld3dObject: "<base64-bytes>",
221
+ ourWorld3dObjectURI: "https://example.com/asset.png",
222
+ ourWorld2dSpritePath: "example string",
223
+ ourWorld2dSprite: "<base64-bytes>",
224
+ ourWorld2dSpriteURI: "https://example.com/asset.png",
225
+ oneWorld3dObjectPath: "example string",
226
+ oneWorld3dObject: "<base64-bytes>",
227
+ oneWorld3dObjectURI: "https://example.com/asset.png",
228
+ oneWorld2dSpritePath: "example string",
229
+ oneWorld2dSprite: "<base64-bytes>",
230
+ oneWorld2dSpriteURI: "https://example.com/asset.png",
231
+ selfContainedPublishedPath: "example string",
232
+ selfContainedFullPublishedPath: "example string",
233
+ selfContainedPublishedToCloud: true,
234
+ selfContainedFullPublishedToCloud: true,
235
+ selfContainedPublishedProviderType: { },
236
+ selfContainedFullPublishedProviderType: { },
237
+ selfContainedFileSize: 1,
238
+ selfContainedFullFileSize: 1,
239
+ sourcePublishedPath: "example string",
240
+ sourcePublishedOnSTARNET: true,
241
+ sourcePublicOnSTARNET: true,
242
+ sourceFileSize: 1,
243
+ isActive: true,
244
+ oAPPType: { },
245
+ genesisType: { },
246
+ celestialBodyId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
247
+ celestialBodyName: "example string",
248
+ celestialBodyType: { },
249
+ zomes: [{ "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": { "Score": 1.0 }, "InstanceSavedOnProviderType": {}, "CreatedOASISType": { "Score": 1.0 }, "Nodes": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Parent": { "CreatedOASISType": {}, "CreatedProviderType": {}, "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": [], "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": { "CelestialBodyCore": { "Holons": [], "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 }, "ParentZomeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentZome": {} }, "NodeName": "example string", "NodeType": { } }], "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": {} }] }],
250
+ selfContainedDownloads: 1,
251
+ selfContainedFullDownloads: 1,
252
+ sourceDownloads: 1,
253
+ totalSelfContainedDownloads: 1,
254
+ totalSelfContainedFullDownloads: 1,
255
+ totalSourceDownloads: 1,
256
+ selfContainedInstalls: 1,
257
+ selfContainedFullInstalls: 1,
258
+ sourceInstalls: 1,
259
+ totalSelfContainedInstalls: 1,
260
+ totalSelfContainedFullInstalls: 1,
261
+ totalSourceInstalls: 1
262
+ });
263
+ if (isError) throw new Error(message);
264
+ console.log(result);
265
+ ```
266
+
267
+ Example response:
268
+
269
+ ```json
270
+ {
271
+ "isError": false,
272
+ "message": "",
273
+ "result": null
274
+ }
275
+ ```
276
+
277
+ ---
278
+
279
+ ### `createOAPPWithOptions`
280
+
281
+ Creates a new OAPP with specified parameters.
282
+
283
+ **POST** `api/oAPPs/create`
284
+
285
+ **Request**
286
+
287
+ Body type: `CreateOAPPRequest`
288
+
289
+ | Field | Type |
290
+ | --- | --- |
291
+ | `Name` | `string` |
292
+ | `Description` | `string` |
293
+ | `HolonSubType` | `OAPPType` |
294
+ | `SourceFolderPath` | `string` |
295
+ | `CreateOptions` | `ISTARNETCreateOptions<OAPP, STARNETDNA>?` |
296
+
297
+ **Response**
298
+
299
+ Standard `OASISResult` envelope (see top of this page) with:
300
+
301
+ `result` type: `IActionResult` (not part of the request/response payload).
302
+
303
+ **Example**
304
+
305
+ ```js
306
+ const { isError, message, result } = await star.oAPPs.createOAPPWithOptions({
307
+ name: "example string",
308
+ description: "example string",
309
+ holonSubType: { },
310
+ sourceFolderPath: "example string",
311
+ 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>": {} } }
312
+ });
313
+ if (isError) throw new Error(message);
314
+ console.log(result);
315
+ ```
316
+
317
+ Example response:
318
+
319
+ ```json
320
+ {
321
+ "isError": false,
322
+ "message": "",
323
+ "result": null
324
+ }
325
+ ```
326
+
327
+ ---
328
+
329
+ ### `deactivateOAPP`
330
+
331
+ Deactivates an OAPP in the STARNET system.
332
+
333
+ **POST** `api/oAPPs/{id}/deactivate`
334
+
335
+ Route parameters:
336
+
337
+ | Field | Type |
338
+ | --- | --- |
339
+ | `id` | `Guid` |
340
+
341
+ **Request**
342
+
343
+ Body fields:
344
+
345
+ | Field | Type |
346
+ | --- | --- |
347
+ | `version` | `int (optional)` |
348
+
349
+ **Response**
350
+
351
+ Standard `OASISResult` envelope (see top of this page) with:
352
+
353
+ `result` type: `IActionResult` (not part of the request/response payload).
354
+
355
+ **Example**
356
+
357
+ ```js
358
+ const { isError, message, result } = await star.oAPPs.deactivateOAPP({
359
+ id: '<id>',
360
+ version: 1
361
+ });
362
+ if (isError) throw new Error(message);
363
+ console.log(result);
364
+ ```
365
+
366
+ Example response:
367
+
368
+ ```json
369
+ {
370
+ "isError": false,
371
+ "message": "",
372
+ "result": null
373
+ }
374
+ ```
375
+
376
+ ---
377
+
378
+ ### `deleteOAPP`
379
+
380
+ **DELETE** `api/oAPPs/{id}`
381
+
382
+ Route parameters:
383
+
384
+ | Field | Type |
385
+ | --- | --- |
386
+ | `id` | `Guid` |
387
+
388
+ **Request**
389
+
390
+ No request body.
391
+
392
+ **Response**
393
+
394
+ Standard `OASISResult` envelope (see top of this page) with:
395
+
396
+ `result` type: `IActionResult` (not part of the request/response payload).
397
+
398
+ **Example**
399
+
400
+ ```js
401
+ const { isError, message, result } = await star.oAPPs.deleteOAPP({
402
+ id: '<id>'
403
+ });
404
+ if (isError) throw new Error(message);
405
+ console.log(result);
406
+ ```
407
+
408
+ Example response:
409
+
410
+ ```json
411
+ {
412
+ "isError": false,
413
+ "message": "",
414
+ "result": null
415
+ }
416
+ ```
417
+
418
+ ---
419
+
420
+ ### `downloadOAPP`
421
+
422
+ Downloads an OAPP from the STARNET system.
423
+
424
+ **POST** `api/oAPPs/{id}/download`
425
+
426
+ Route parameters:
427
+
428
+ | Field | Type |
429
+ | --- | --- |
430
+ | `id` | `Guid` |
431
+
432
+ **Request**
433
+
434
+ Body type: `DownloadOAPPRequest`
435
+
436
+ | Field | Type |
437
+ | --- | --- |
438
+ | `DestinationPath` | `string` |
439
+ | `Overwrite` | `bool` |
440
+
441
+ **Response**
442
+
443
+ Standard `OASISResult` envelope (see top of this page) with:
444
+
445
+ `result` type: `IActionResult` (not part of the request/response payload).
446
+
447
+ **Example**
448
+
449
+ ```js
450
+ const { isError, message, result } = await star.oAPPs.downloadOAPP({
451
+ id: '<id>',
452
+ destinationPath: "example string",
453
+ overwrite: true
454
+ });
455
+ if (isError) throw new Error(message);
456
+ console.log(result);
457
+ ```
458
+
459
+ Example response:
460
+
461
+ ```json
462
+ {
463
+ "isError": false,
464
+ "message": "",
465
+ "result": null
466
+ }
467
+ ```
468
+
469
+ ---
470
+
471
+ ### `editOAPP`
472
+
473
+ Edits an OAPP with the provided changes.
474
+
475
+ **PUT** `api/oAPPs/{id}/edit`
476
+
477
+ Route parameters:
478
+
479
+ | Field | Type |
480
+ | --- | --- |
481
+ | `id` | `Guid` |
482
+
483
+ **Request**
484
+
485
+ Body type: `EditOAPPRequest`
486
+
487
+ | Field | Type |
488
+ | --- | --- |
489
+ | `NewDNA` | `STARNETDNA` |
490
+
491
+ **Response**
492
+
493
+ Standard `OASISResult` envelope (see top of this page) with:
494
+
495
+ `result` type: `IActionResult` (not part of the request/response payload).
496
+
497
+ **Example**
498
+
499
+ ```js
500
+ const { isError, message, result } = await star.oAPPs.editOAPP({
501
+ id: '<id>',
502
+ 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 }
503
+ });
504
+ if (isError) throw new Error(message);
505
+ console.log(result);
506
+ ```
507
+
508
+ Example response:
509
+
510
+ ```json
511
+ {
512
+ "isError": false,
513
+ "message": "",
514
+ "result": null
515
+ }
516
+ ```
517
+
518
+ ---
519
+
520
+ ### `getAllOAPPs`
521
+
522
+ Retrieves all OAPPs in the system.
523
+
524
+ **GET** `api/oAPPs`
525
+
526
+ **Request**
527
+
528
+ No request body.
529
+
530
+ **Response**
531
+
532
+ Standard `OASISResult` envelope (see top of this page) with:
533
+
534
+ `result` type: `IActionResult` (not part of the request/response payload).
535
+
536
+ **Example**
537
+
538
+ ```js
539
+ const { isError, message, result } = await star.oAPPs.getAllOAPPs({});
540
+ if (isError) throw new Error(message);
541
+ console.log(result);
542
+ ```
543
+
544
+ Example response:
545
+
546
+ ```json
547
+ {
548
+ "isError": false,
549
+ "message": "",
550
+ "result": null
551
+ }
552
+ ```
553
+
554
+ ---
555
+
556
+ ### `getOAPP`
557
+
558
+ Retrieves a specific OAPP by its unique identifier.
559
+
560
+ **GET** `api/oAPPs/{id}`
561
+
562
+ Route parameters:
563
+
564
+ | Field | Type |
565
+ | --- | --- |
566
+ | `id` | `Guid` |
567
+
568
+ **Request**
569
+
570
+ No request body.
571
+
572
+ **Response**
573
+
574
+ Standard `OASISResult` envelope (see top of this page) with:
575
+
576
+ `result` type: `IActionResult` (not part of the request/response payload).
577
+
578
+ **Example**
579
+
580
+ ```js
581
+ const { isError, message, result } = await star.oAPPs.getOAPP({
582
+ id: '<id>'
583
+ });
584
+ if (isError) throw new Error(message);
585
+ console.log(result);
586
+ ```
587
+
588
+ Example response:
589
+
590
+ ```json
591
+ {
592
+ "isError": false,
593
+ "message": "",
594
+ "result": null
595
+ }
596
+ ```
597
+
598
+ ---
599
+
600
+ ### `getOAPPVersions`
601
+
602
+ Gets all versions of a specific OAPP.
603
+
604
+ **GET** `api/oAPPs/{id}/versions`
605
+
606
+ Route parameters:
607
+
608
+ | Field | Type |
609
+ | --- | --- |
610
+ | `id` | `Guid` |
611
+
612
+ **Request**
613
+
614
+ No request body.
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.oAPPs.getOAPPVersions({
626
+ id: '<id>'
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
+ ### `loadAllOAPPsForAvatar`
645
+
646
+ Loads all OAPPs for the current avatar.
647
+
648
+ **GET** `api/oAPPs/load-all-for-avatar`
649
+
650
+ **Request**
651
+
652
+ No request body.
653
+
654
+ **Response**
655
+
656
+ Standard `OASISResult` envelope (see top of this page) with:
657
+
658
+ `result` type: `IActionResult` (not part of the request/response payload).
659
+
660
+ **Example**
661
+
662
+ ```js
663
+ const { isError, message, result } = await star.oAPPs.loadAllOAPPsForAvatar({});
664
+ if (isError) throw new Error(message);
665
+ console.log(result);
666
+ ```
667
+
668
+ Example response:
669
+
670
+ ```json
671
+ {
672
+ "isError": false,
673
+ "message": "",
674
+ "result": null
675
+ }
676
+ ```
677
+
678
+ ---
679
+
680
+ ### `loadOAPPFromPath`
681
+
682
+ Loads an OAPP from the specified path.
683
+
684
+ **GET** `api/oAPPs/load-from-path`
685
+
686
+ **Request**
687
+
688
+ Query parameters:
689
+
690
+ | Field | Type |
691
+ | --- | --- |
692
+ | `path` | `string` |
693
+
694
+ **Response**
695
+
696
+ Standard `OASISResult` envelope (see top of this page) with:
697
+
698
+ `result` type: `IActionResult` (not part of the request/response payload).
699
+
700
+ **Example**
701
+
702
+ ```js
703
+ const { isError, message, result } = await star.oAPPs.loadOAPPFromPath({
704
+ path: 'example string'
705
+ });
706
+ if (isError) throw new Error(message);
707
+ console.log(result);
708
+ ```
709
+
710
+ Example response:
711
+
712
+ ```json
713
+ {
714
+ "isError": false,
715
+ "message": "",
716
+ "result": null
717
+ }
718
+ ```
719
+
720
+ ---
721
+
722
+ ### `loadOAPPFromPublished`
723
+
724
+ Loads an OAPP from published sources.
725
+
726
+ **GET** `api/oAPPs/load-from-published`
727
+
728
+ **Request**
729
+
730
+ Query parameters:
731
+
732
+ | Field | Type |
733
+ | --- | --- |
734
+ | `publishedFilePath` | `string` |
735
+
736
+ **Response**
737
+
738
+ Standard `OASISResult` envelope (see top of this page) with:
739
+
740
+ `result` type: `IActionResult` (not part of the request/response payload).
741
+
742
+ **Example**
743
+
744
+ ```js
745
+ const { isError, message, result } = await star.oAPPs.loadOAPPFromPublished({
746
+ publishedFilePath: 'example string'
747
+ });
748
+ if (isError) throw new Error(message);
749
+ console.log(result);
750
+ ```
751
+
752
+ Example response:
753
+
754
+ ```json
755
+ {
756
+ "isError": false,
757
+ "message": "",
758
+ "result": null
759
+ }
760
+ ```
761
+
762
+ ---
763
+
764
+ ### `loadOAPPVersion`
765
+
766
+ Loads a specific version of an OAPP.
767
+
768
+ **GET** `api/oAPPs/{id}/versions/{version}`
769
+
770
+ Route parameters:
771
+
772
+ | Field | Type |
773
+ | --- | --- |
774
+ | `id` | `Guid` |
775
+ | `version` | `string` |
776
+
777
+ **Request**
778
+
779
+ No request body.
780
+
781
+ **Response**
782
+
783
+ Standard `OASISResult` envelope (see top of this page) with:
784
+
785
+ `result` type: `IActionResult` (not part of the request/response payload).
786
+
787
+ **Example**
788
+
789
+ ```js
790
+ const { isError, message, result } = await star.oAPPs.loadOAPPVersion({
791
+ id: '<id>',
792
+ version: '<version>'
793
+ });
794
+ if (isError) throw new Error(message);
795
+ console.log(result);
796
+ ```
797
+
798
+ Example response:
799
+
800
+ ```json
801
+ {
802
+ "isError": false,
803
+ "message": "",
804
+ "result": null
805
+ }
806
+ ```
807
+
808
+ ---
809
+
810
+ ### `publishOAPP`
811
+
812
+ Publishes an OAPP to the STARNET system with optional cloud upload.
813
+
814
+ **POST** `api/oAPPs/{id}/publish`
815
+
816
+ Route parameters:
817
+
818
+ | Field | Type |
819
+ | --- | --- |
820
+ | `id` | `Guid` |
821
+
822
+ **Request**
823
+
824
+ Body type: `PublishRequest`
825
+
826
+ | Field | Type |
827
+ | --- | --- |
828
+ | `SourcePath` | `string` |
829
+ | `LaunchTarget` | `string` |
830
+ | `PublishPath` | `string` |
831
+ | `Edit` | `bool` |
832
+ | `RegisterOnSTARNET` | `bool` |
833
+ | `GenerateBinary` | `bool` |
834
+ | `UploadToCloud` | `bool` |
835
+
836
+ **Response**
837
+
838
+ Standard `OASISResult` envelope (see top of this page) with:
839
+
840
+ `result` type: `IActionResult` (not part of the request/response payload).
841
+
842
+ **Example**
843
+
844
+ ```js
845
+ const { isError, message, result } = await star.oAPPs.publishOAPP({
846
+ id: '<id>',
847
+ sourcePath: "example string",
848
+ launchTarget: "example string",
849
+ publishPath: "example string",
850
+ edit: true,
851
+ registerOnSTARNET: true,
852
+ generateBinary: true,
853
+ uploadToCloud: true
854
+ });
855
+ if (isError) throw new Error(message);
856
+ console.log(result);
857
+ ```
858
+
859
+ Example response:
860
+
861
+ ```json
862
+ {
863
+ "isError": false,
864
+ "message": "",
865
+ "result": null
866
+ }
867
+ ```
868
+
869
+ ---
870
+
871
+ ### `republishOAPP`
872
+
873
+ Republishes an OAPP to the STARNET system.
874
+
875
+ **POST** `api/oAPPs/{id}/republish`
876
+
877
+ Route parameters:
878
+
879
+ | Field | Type |
880
+ | --- | --- |
881
+ | `id` | `Guid` |
882
+
883
+ **Request**
884
+
885
+ Body type: `PublishRequest`
886
+
887
+ | Field | Type |
888
+ | --- | --- |
889
+ | `SourcePath` | `string` |
890
+ | `LaunchTarget` | `string` |
891
+ | `PublishPath` | `string` |
892
+ | `Edit` | `bool` |
893
+ | `RegisterOnSTARNET` | `bool` |
894
+ | `GenerateBinary` | `bool` |
895
+ | `UploadToCloud` | `bool` |
896
+
897
+ **Response**
898
+
899
+ Standard `OASISResult` envelope (see top of this page) with:
900
+
901
+ `result` type: `IActionResult` (not part of the request/response payload).
902
+
903
+ **Example**
904
+
905
+ ```js
906
+ const { isError, message, result } = await star.oAPPs.republishOAPP({
907
+ id: '<id>',
908
+ version: 1,
909
+ sourcePath: "example string",
910
+ launchTarget: "example string",
911
+ publishPath: "example string",
912
+ edit: true,
913
+ registerOnSTARNET: true,
914
+ generateBinary: true,
915
+ uploadToCloud: true
916
+ });
917
+ if (isError) throw new Error(message);
918
+ console.log(result);
919
+ ```
920
+
921
+ Example response:
922
+
923
+ ```json
924
+ {
925
+ "isError": false,
926
+ "message": "",
927
+ "result": null
928
+ }
929
+ ```
930
+
931
+ ---
932
+
933
+ ### `searchOAPPs`
934
+
935
+ Searches for OAPPs based on the provided search criteria.
936
+
937
+ **POST** `api/oAPPs/search`
938
+
939
+ **Request**
940
+
941
+ Body type: `SearchRequest`
942
+
943
+ | Field | Type |
944
+ | --- | --- |
945
+ | `SearchTerm` | `string` |
946
+ | `Filters` | `Dictionary<string, object>` |
947
+
948
+ **Response**
949
+
950
+ Standard `OASISResult` envelope (see top of this page) with:
951
+
952
+ `result` type: `IActionResult` (not part of the request/response payload).
953
+
954
+ **Example**
955
+
956
+ ```js
957
+ const { isError, message, result } = await star.oAPPs.searchOAPPs({
958
+ searchTerm: "example string",
959
+ filters: { "<string>": {} }
960
+ });
961
+ if (isError) throw new Error(message);
962
+ console.log(result);
963
+ ```
964
+
965
+ Example response:
966
+
967
+ ```json
968
+ {
969
+ "isError": false,
970
+ "message": "",
971
+ "result": null
972
+ }
973
+ ```
974
+
975
+ ---
976
+
977
+ ### `unpublishOAPP`
978
+
979
+ Unpublishes an OAPP from the STARNET system.
980
+
981
+ **POST** `api/oAPPs/{id}/unpublish`
982
+
983
+ Route parameters:
984
+
985
+ | Field | Type |
986
+ | --- | --- |
987
+ | `id` | `Guid` |
988
+
989
+ **Request**
990
+
991
+ Body fields:
992
+
993
+ | Field | Type |
994
+ | --- | --- |
995
+ | `version` | `int (optional)` |
996
+
997
+ **Response**
998
+
999
+ Standard `OASISResult` envelope (see top of this page) with:
1000
+
1001
+ `result` type: `IActionResult` (not part of the request/response payload).
1002
+
1003
+ **Example**
1004
+
1005
+ ```js
1006
+ const { isError, message, result } = await star.oAPPs.unpublishOAPP({
1007
+ id: '<id>',
1008
+ version: 1
1009
+ });
1010
+ if (isError) throw new Error(message);
1011
+ console.log(result);
1012
+ ```
1013
+
1014
+ Example response:
1015
+
1016
+ ```json
1017
+ {
1018
+ "isError": false,
1019
+ "message": "",
1020
+ "result": null
1021
+ }
1022
+ ```
1023
+
1024
+ ---
1025
+
1026
+ ### `updateOAPP`
1027
+
1028
+ **PUT** `api/oAPPs/{id}`
1029
+
1030
+ Route parameters:
1031
+
1032
+ | Field | Type |
1033
+ | --- | --- |
1034
+ | `id` | `Guid` |
1035
+
1036
+ **Request**
1037
+
1038
+ Body type: `OAPP`
1039
+
1040
+ | Field | Type |
1041
+ | --- | --- |
1042
+ | `OAPPTemplateId` | `Guid` |
1043
+ | `OAPPTemplateName` | `string` |
1044
+ | `OAPPTemplateDescription` | `string` |
1045
+ | `OAPPTemplateType` | `OAPPTemplateType` |
1046
+ | `OAPPTemplateVersionSequence` | `int` |
1047
+ | `OAPPTemplateVersion` | `string` |
1048
+ | `MetaTagMappings` | `Dictionary<string, string>` |
1049
+ | `CelestialBodyMetaDataId` | `Guid` |
1050
+ | `CelestialBodyMetaDataName` | `string` |
1051
+ | `CelestialBodyMetaDataDescription` | `string` |
1052
+ | `CelestialBodyMetaDataType` | `CelestialBodyType` |
1053
+ | `CelestialBodyMetaDataVersionSequence` | `int` |
1054
+ | `CelestialBodyMetaDataVersion` | `string` |
1055
+ | `CelestialBodyMetaDataGeneratedPath` | `string` |
1056
+ | `OurWorldLat` | `long` |
1057
+ | `OurWorldLong` | `long` |
1058
+ | `OneWorldLat` | `long` |
1059
+ | `OneWorldLong` | `long` |
1060
+ | `OurWorld3dObjectPath` | `string` |
1061
+ | `OurWorld3dObject` | `byte[]` |
1062
+ | `OurWorld3dObjectURI` | `Uri` |
1063
+ | `OurWorld2dSpritePath` | `string` |
1064
+ | `OurWorld2dSprite` | `byte[]` |
1065
+ | `OurWorld2dSpriteURI` | `Uri` |
1066
+ | `OneWorld3dObjectPath` | `string` |
1067
+ | `OneWorld3dObject` | `byte[]` |
1068
+ | `OneWorld3dObjectURI` | `Uri` |
1069
+ | `OneWorld2dSpritePath` | `string` |
1070
+ | `OneWorld2dSprite` | `byte[]` |
1071
+ | `OneWorld2dSpriteURI` | `Uri` |
1072
+ | `SelfContainedPublishedPath` | `string` |
1073
+ | `SelfContainedFullPublishedPath` | `string` |
1074
+ | `SelfContainedPublishedToCloud` | `bool` |
1075
+ | `SelfContainedFullPublishedToCloud` | `bool` |
1076
+ | `SelfContainedPublishedProviderType` | `ProviderType` |
1077
+ | `SelfContainedFullPublishedProviderType` | `ProviderType` |
1078
+ | `SelfContainedFileSize` | `long` |
1079
+ | `SelfContainedFullFileSize` | `long` |
1080
+ | `SourcePublishedPath` | `string` |
1081
+ | `SourcePublishedOnSTARNET` | `bool` |
1082
+ | `SourcePublicOnSTARNET` | `bool` |
1083
+ | `SourceFileSize` | `long` |
1084
+ | `IsActive` | `bool` |
1085
+ | `OAPPType` | `OAPPType` |
1086
+ | `GenesisType` | `GenesisType` |
1087
+ | `CelestialBodyId` | `Guid` |
1088
+ | `CelestialBodyName` | `string` |
1089
+ | `CelestialBodyType` | `HolonType` |
1090
+ | `Zomes` | `IEnumerable<IZome>` |
1091
+ | `SelfContainedDownloads` | `int` |
1092
+ | `SelfContainedFullDownloads` | `int` |
1093
+ | `SourceDownloads` | `int` |
1094
+ | `TotalSelfContainedDownloads` | `int` |
1095
+ | `TotalSelfContainedFullDownloads` | `int` |
1096
+ | `TotalSourceDownloads` | `int` |
1097
+ | `SelfContainedInstalls` | `int` |
1098
+ | `SelfContainedFullInstalls` | `int` |
1099
+ | `SourceInstalls` | `int` |
1100
+ | `TotalSelfContainedInstalls` | `int` |
1101
+ | `TotalSelfContainedFullInstalls` | `int` |
1102
+ | `TotalSourceInstalls` | `int` |
1103
+
1104
+ **Response**
1105
+
1106
+ Standard `OASISResult` envelope (see top of this page) with:
1107
+
1108
+ `result` type: `IActionResult` (not part of the request/response payload).
1109
+
1110
+ **Example**
1111
+
1112
+ ```js
1113
+ const { isError, message, result } = await star.oAPPs.updateOAPP({
1114
+ id: '<id>',
1115
+ oAPPTemplateId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1116
+ oAPPTemplateName: "example string",
1117
+ oAPPTemplateDescription: "example string",
1118
+ oAPPTemplateType: { },
1119
+ oAPPTemplateVersionSequence: 1,
1120
+ oAPPTemplateVersion: "example string",
1121
+ metaTagMappings: { "<string>": "example string" },
1122
+ celestialBodyMetaDataId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1123
+ celestialBodyMetaDataName: "example string",
1124
+ celestialBodyMetaDataDescription: "example string",
1125
+ celestialBodyMetaDataType: { },
1126
+ celestialBodyMetaDataVersionSequence: 1,
1127
+ celestialBodyMetaDataVersion: "example string",
1128
+ celestialBodyMetaDataGeneratedPath: "example string",
1129
+ ourWorldLat: 1,
1130
+ ourWorldLong: 1,
1131
+ oneWorldLat: 1,
1132
+ oneWorldLong: 1,
1133
+ ourWorld3dObjectPath: "example string",
1134
+ ourWorld3dObject: "<base64-bytes>",
1135
+ ourWorld3dObjectURI: "https://example.com/asset.png",
1136
+ ourWorld2dSpritePath: "example string",
1137
+ ourWorld2dSprite: "<base64-bytes>",
1138
+ ourWorld2dSpriteURI: "https://example.com/asset.png",
1139
+ oneWorld3dObjectPath: "example string",
1140
+ oneWorld3dObject: "<base64-bytes>",
1141
+ oneWorld3dObjectURI: "https://example.com/asset.png",
1142
+ oneWorld2dSpritePath: "example string",
1143
+ oneWorld2dSprite: "<base64-bytes>",
1144
+ oneWorld2dSpriteURI: "https://example.com/asset.png",
1145
+ selfContainedPublishedPath: "example string",
1146
+ selfContainedFullPublishedPath: "example string",
1147
+ selfContainedPublishedToCloud: true,
1148
+ selfContainedFullPublishedToCloud: true,
1149
+ selfContainedPublishedProviderType: { },
1150
+ selfContainedFullPublishedProviderType: { },
1151
+ selfContainedFileSize: 1,
1152
+ selfContainedFullFileSize: 1,
1153
+ sourcePublishedPath: "example string",
1154
+ sourcePublishedOnSTARNET: true,
1155
+ sourcePublicOnSTARNET: true,
1156
+ sourceFileSize: 1,
1157
+ isActive: true,
1158
+ oAPPType: { },
1159
+ genesisType: { },
1160
+ celestialBodyId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1161
+ celestialBodyName: "example string",
1162
+ celestialBodyType: { },
1163
+ zomes: [{ "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": { "Score": 1.0 }, "InstanceSavedOnProviderType": {}, "CreatedOASISType": { "Score": 1.0 }, "Nodes": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Parent": { "CreatedOASISType": {}, "CreatedProviderType": {}, "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": [], "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": { "CelestialBodyCore": { "Holons": [], "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 }, "ParentZomeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ParentZome": {} }, "NodeName": "example string", "NodeType": { } }], "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": {} }] }],
1164
+ selfContainedDownloads: 1,
1165
+ selfContainedFullDownloads: 1,
1166
+ sourceDownloads: 1,
1167
+ totalSelfContainedDownloads: 1,
1168
+ totalSelfContainedFullDownloads: 1,
1169
+ totalSourceDownloads: 1,
1170
+ selfContainedInstalls: 1,
1171
+ selfContainedFullInstalls: 1,
1172
+ sourceInstalls: 1,
1173
+ totalSelfContainedInstalls: 1,
1174
+ totalSelfContainedFullInstalls: 1,
1175
+ totalSourceInstalls: 1
1176
+ });
1177
+ if (isError) throw new Error(message);
1178
+ console.log(result);
1179
+ ```
1180
+
1181
+ Example response:
1182
+
1183
+ ```json
1184
+ {
1185
+ "isError": false,
1186
+ "message": "",
1187
+ "result": null
1188
+ }
1189
+ ```
1190
+