@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,63 @@
1
+ 'use strict';
2
+
3
+ // AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
4
+ // Regenerate with: node scripts/generate-modules.js
5
+
6
+ const { makeOperation } = require('../core/routeHelper');
7
+
8
+ /**
9
+ * Generated wrapper for api/nFTs (source: STAR WebAPI NFTsController.cs).
10
+ * Every method takes a single args object: path-template tokens (e.g. {id})
11
+ * are consumed from it automatically; any remaining keys are sent as the
12
+ * query string (GET/DELETE) or JSON body (POST/PUT).
13
+ */
14
+ class NFTsModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/nFTs/{id}/activate (query: version)
19
+ this.activateNFT = makeOperation(http, "api/nFTs", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/nFTs/{id}/clone
21
+ this.cloneNFT = makeOperation(http, "api/nFTs", "POST", "{id}/clone");
22
+ // POST api/nFTs/
23
+ this.createNFT = makeOperation(http, "api/nFTs", "POST", "");
24
+ // POST api/nFTs/create
25
+ this.createNFTWithOptions = makeOperation(http, "api/nFTs", "POST", "create");
26
+ // POST api/nFTs/{id}/deactivate (query: version)
27
+ this.deactivateNFT = makeOperation(http, "api/nFTs", "POST", "{id}/deactivate", {"query":["version"]});
28
+ // DELETE api/nFTs/{id}
29
+ this.deleteNFT = makeOperation(http, "api/nFTs", "DELETE", "{id}");
30
+ // POST api/nFTs/{id}/download (query: version, downloadPath, reInstall)
31
+ this.downloadNFT = makeOperation(http, "api/nFTs", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
32
+ // POST api/nFTs/{id}/edit
33
+ this.editNFT = makeOperation(http, "api/nFTs", "POST", "{id}/edit");
34
+ // GET api/nFTs/
35
+ this.getAllNFTs = makeOperation(http, "api/nFTs", "GET", "");
36
+ // GET api/nFTs/{id}
37
+ this.getNFT = makeOperation(http, "api/nFTs", "GET", "{id}");
38
+ // GET api/nFTs/{id}/versions
39
+ this.getNFTVersions = makeOperation(http, "api/nFTs", "GET", "{id}/versions");
40
+ // GET api/nFTs/load-all-for-avatar (query: showAllVersions, version)
41
+ this.loadAllNFTsForAvatar = makeOperation(http, "api/nFTs", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
42
+ // GET api/nFTs/{id}/load (query: version, holonType)
43
+ this.loadNFT = makeOperation(http, "api/nFTs", "GET", "{id}/load", {"query":["version","holonType"]});
44
+ // GET api/nFTs/load-from-path (query: path, holonType)
45
+ this.loadNFTFromPath = makeOperation(http, "api/nFTs", "GET", "load-from-path", {"query":["path","holonType"]});
46
+ // GET api/nFTs/load-from-published (query: publishedFilePath)
47
+ this.loadNFTFromPublished = makeOperation(http, "api/nFTs", "GET", "load-from-published", {"query":["publishedFilePath"]});
48
+ // GET api/nFTs/{id}/version/{version}
49
+ this.loadNFTVersion = makeOperation(http, "api/nFTs", "GET", "{id}/version/{version}");
50
+ // POST api/nFTs/{id}/publish
51
+ this.publishNFT = makeOperation(http, "api/nFTs", "POST", "{id}/publish");
52
+ // POST api/nFTs/{id}/republish (query: version)
53
+ this.republishNFT = makeOperation(http, "api/nFTs", "POST", "{id}/republish", {"query":["version"]});
54
+ // GET api/nFTs/search (query: searchTerm, searchOnlyForCurrentAvatar, showAllVersions, version)
55
+ this.searchNFTs = makeOperation(http, "api/nFTs", "GET", "search", {"query":["searchTerm","searchOnlyForCurrentAvatar","showAllVersions","version"]});
56
+ // POST api/nFTs/{id}/unpublish (query: version)
57
+ this.unpublishNFT = makeOperation(http, "api/nFTs", "POST", "{id}/unpublish", {"query":["version"]});
58
+ // PUT api/nFTs/{id}
59
+ this.updateNFT = makeOperation(http, "api/nFTs", "PUT", "{id}");
60
+ }
61
+ }
62
+
63
+ module.exports = { NFTsModule };
@@ -0,0 +1,69 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class OAPPsModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/oAPPs/{id}/activate (query: version) */
8
+ activateOAPP(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/oAPPs/{id}/clone */
11
+ cloneOAPP(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/oAPPs/ */
14
+ createOAPP(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/oAPPs/create */
17
+ createOAPPWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** POST api/oAPPs/{id}/deactivate (query: version) */
20
+ deactivateOAPP(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** DELETE api/oAPPs/{id} */
23
+ deleteOAPP(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/oAPPs/{id}/download */
26
+ downloadOAPP(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** PUT api/oAPPs/{id}/edit */
29
+ editOAPP(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/oAPPs/ */
32
+ getAllOAPPs(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/oAPPs/{id} */
35
+ getOAPP(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/oAPPs/{id}/versions */
38
+ getOAPPVersions(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/oAPPs/load-all-for-avatar */
41
+ loadAllOAPPsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/oAPPs/load-from-path (query: path) */
44
+ loadOAPPFromPath(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/oAPPs/load-from-published (query: publishedFilePath) */
47
+ loadOAPPFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/oAPPs/{id}/versions/{version} */
50
+ loadOAPPVersion(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** POST api/oAPPs/{id}/publish */
53
+ publishOAPP(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** POST api/oAPPs/{id}/republish (query: version) */
56
+ republishOAPP(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** GET api/oAPPs/search (query: searchTerm, showAllVersions, version) */
59
+ searchOAPPs(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/oAPPs/search */
62
+ searchOAPPsPost(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** POST api/oAPPs/{id}/unpublish (query: version) */
65
+ unpublishOAPP(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** PUT api/oAPPs/{id} */
68
+ updateOAPP(args?: Record<string, any>): Promise<OASISResponse>;
69
+ }
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ // AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
4
+ // Regenerate with: node scripts/generate-modules.js
5
+
6
+ const { makeOperation } = require('../core/routeHelper');
7
+
8
+ /**
9
+ * Generated wrapper for api/oAPPs (source: STAR WebAPI OAPPsController.cs).
10
+ * Every method takes a single args object: path-template tokens (e.g. {id})
11
+ * are consumed from it automatically; any remaining keys are sent as the
12
+ * query string (GET/DELETE) or JSON body (POST/PUT).
13
+ */
14
+ class OAPPsModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/oAPPs/{id}/activate (query: version)
19
+ this.activateOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/oAPPs/{id}/clone
21
+ this.cloneOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/clone");
22
+ // POST api/oAPPs/
23
+ this.createOAPP = makeOperation(http, "api/oAPPs", "POST", "");
24
+ // POST api/oAPPs/create
25
+ this.createOAPPWithOptions = makeOperation(http, "api/oAPPs", "POST", "create");
26
+ // POST api/oAPPs/{id}/deactivate (query: version)
27
+ this.deactivateOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/deactivate", {"query":["version"]});
28
+ // DELETE api/oAPPs/{id}
29
+ this.deleteOAPP = makeOperation(http, "api/oAPPs", "DELETE", "{id}");
30
+ // POST api/oAPPs/{id}/download
31
+ this.downloadOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/download");
32
+ // PUT api/oAPPs/{id}/edit
33
+ this.editOAPP = makeOperation(http, "api/oAPPs", "PUT", "{id}/edit");
34
+ // GET api/oAPPs/
35
+ this.getAllOAPPs = makeOperation(http, "api/oAPPs", "GET", "");
36
+ // GET api/oAPPs/{id}
37
+ this.getOAPP = makeOperation(http, "api/oAPPs", "GET", "{id}");
38
+ // GET api/oAPPs/{id}/versions
39
+ this.getOAPPVersions = makeOperation(http, "api/oAPPs", "GET", "{id}/versions");
40
+ // GET api/oAPPs/load-all-for-avatar
41
+ this.loadAllOAPPsForAvatar = makeOperation(http, "api/oAPPs", "GET", "load-all-for-avatar");
42
+ // GET api/oAPPs/load-from-path (query: path)
43
+ this.loadOAPPFromPath = makeOperation(http, "api/oAPPs", "GET", "load-from-path", {"query":["path"]});
44
+ // GET api/oAPPs/load-from-published (query: publishedFilePath)
45
+ this.loadOAPPFromPublished = makeOperation(http, "api/oAPPs", "GET", "load-from-published", {"query":["publishedFilePath"]});
46
+ // GET api/oAPPs/{id}/versions/{version}
47
+ this.loadOAPPVersion = makeOperation(http, "api/oAPPs", "GET", "{id}/versions/{version}");
48
+ // POST api/oAPPs/{id}/publish
49
+ this.publishOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/publish");
50
+ // POST api/oAPPs/{id}/republish (query: version)
51
+ this.republishOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/republish", {"query":["version"]});
52
+ // POST api/oAPPs/search
53
+ this.searchOAPPs = makeOperation(http, "api/oAPPs", "POST", "search");
54
+ // POST api/oAPPs/{id}/unpublish (query: version)
55
+ this.unpublishOAPP = makeOperation(http, "api/oAPPs", "POST", "{id}/unpublish", {"query":["version"]});
56
+ // PUT api/oAPPs/{id}
57
+ this.updateOAPP = makeOperation(http, "api/oAPPs", "PUT", "{id}");
58
+ }
59
+ }
60
+
61
+ module.exports = { OAPPsModule };
@@ -0,0 +1,72 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class ParksModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/parks/{id}/activate (query: version) */
8
+ activatePark(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/parks/ */
11
+ createPark(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/parks/create */
14
+ createParkWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/parks/{id}/deactivate (query: version) */
17
+ deactivatePark(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** DELETE api/parks/{id} */
20
+ deletePark(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** POST api/parks/{id}/download (query: version, downloadPath, reInstall) */
23
+ downloadPark(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/parks/{id}/edit */
26
+ editPark(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** GET api/parks/ */
29
+ getAllParks(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/parks/nearby (query: latitude, longitude, radiusKm) */
32
+ getNearbyParks(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/parks/{id} */
35
+ getPark(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/parks/by-type/{type} */
38
+ getParksByType(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/parks/{id}/versions */
41
+ getParkVersions(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/parks/load-all-for-avatar (query: showAllVersions, version) */
44
+ loadAllParksForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/parks/{id}/load (query: version, holonType) */
47
+ loadPark(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/parks/load-from-path (query: path, holonType) */
50
+ loadParkFromPath(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** GET api/parks/load-from-published (query: publishedFilePath) */
53
+ loadParkFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** GET api/parks/{id}/version/{version} */
56
+ loadParkVersion(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** POST api/parks/{id}/publish */
59
+ publishPark(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/parks/{id}/republish (query: version) */
62
+ republishPark(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** POST api/parks/search */
65
+ searchParks(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** POST api/parks/{id}/unpublish (query: version) */
68
+ unpublishPark(args?: Record<string, any>): Promise<OASISResponse>;
69
+
70
+ /** PUT api/parks/{id} */
71
+ updatePark(args?: Record<string, any>): Promise<OASISResponse>;
72
+ }
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ // AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
4
+ // Regenerate with: node scripts/generate-modules.js
5
+
6
+ const { makeOperation } = require('../core/routeHelper');
7
+
8
+ /**
9
+ * Generated wrapper for api/parks (source: STAR WebAPI ParksController.cs).
10
+ * Every method takes a single args object: path-template tokens (e.g. {id})
11
+ * are consumed from it automatically; any remaining keys are sent as the
12
+ * query string (GET/DELETE) or JSON body (POST/PUT).
13
+ */
14
+ class ParksModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/parks/{id}/activate (query: version)
19
+ this.activatePark = makeOperation(http, "api/parks", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/parks/
21
+ this.createPark = makeOperation(http, "api/parks", "POST", "");
22
+ // POST api/parks/create
23
+ this.createParkWithOptions = makeOperation(http, "api/parks", "POST", "create");
24
+ // POST api/parks/{id}/deactivate (query: version)
25
+ this.deactivatePark = makeOperation(http, "api/parks", "POST", "{id}/deactivate", {"query":["version"]});
26
+ // DELETE api/parks/{id}
27
+ this.deletePark = makeOperation(http, "api/parks", "DELETE", "{id}");
28
+ // POST api/parks/{id}/download (query: version, downloadPath, reInstall)
29
+ this.downloadPark = makeOperation(http, "api/parks", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
30
+ // POST api/parks/{id}/edit
31
+ this.editPark = makeOperation(http, "api/parks", "POST", "{id}/edit");
32
+ // GET api/parks/
33
+ this.getAllParks = makeOperation(http, "api/parks", "GET", "");
34
+ // GET api/parks/nearby (query: latitude, longitude, radiusKm)
35
+ this.getNearbyParks = makeOperation(http, "api/parks", "GET", "nearby", {"query":["latitude","longitude","radiusKm"]});
36
+ // GET api/parks/{id}
37
+ this.getPark = makeOperation(http, "api/parks", "GET", "{id}");
38
+ // GET api/parks/{id}/versions
39
+ this.getParkVersions = makeOperation(http, "api/parks", "GET", "{id}/versions");
40
+ // GET api/parks/by-type/{type}
41
+ this.getParksByType = makeOperation(http, "api/parks", "GET", "by-type/{type}");
42
+ // GET api/parks/load-all-for-avatar (query: showAllVersions, version)
43
+ this.loadAllParksForAvatar = makeOperation(http, "api/parks", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
44
+ // GET api/parks/{id}/load (query: version, holonType)
45
+ this.loadPark = makeOperation(http, "api/parks", "GET", "{id}/load", {"query":["version","holonType"]});
46
+ // GET api/parks/load-from-path (query: path, holonType)
47
+ this.loadParkFromPath = makeOperation(http, "api/parks", "GET", "load-from-path", {"query":["path","holonType"]});
48
+ // GET api/parks/load-from-published (query: publishedFilePath)
49
+ this.loadParkFromPublished = makeOperation(http, "api/parks", "GET", "load-from-published", {"query":["publishedFilePath"]});
50
+ // GET api/parks/{id}/version/{version}
51
+ this.loadParkVersion = makeOperation(http, "api/parks", "GET", "{id}/version/{version}");
52
+ // POST api/parks/{id}/publish
53
+ this.publishPark = makeOperation(http, "api/parks", "POST", "{id}/publish");
54
+ // POST api/parks/{id}/republish (query: version)
55
+ this.republishPark = makeOperation(http, "api/parks", "POST", "{id}/republish", {"query":["version"]});
56
+ // POST api/parks/search
57
+ this.searchParks = makeOperation(http, "api/parks", "POST", "search");
58
+ // POST api/parks/{id}/unpublish (query: version)
59
+ this.unpublishPark = makeOperation(http, "api/parks", "POST", "{id}/unpublish", {"query":["version"]});
60
+ // PUT api/parks/{id}
61
+ this.updatePark = makeOperation(http, "api/parks", "PUT", "{id}");
62
+ }
63
+ }
64
+
65
+ module.exports = { ParksModule };
@@ -0,0 +1,78 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class PluginsModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/plugins/{id}/activate (query: version) */
8
+ activatePlugin(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/plugins/{id}/clone */
11
+ clonePlugin(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/plugins/ */
14
+ createPlugin(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/plugins/create */
17
+ createPluginWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** POST api/plugins/{id}/deactivate (query: version) */
20
+ deactivatePlugin(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** DELETE api/plugins/{id} */
23
+ deletePlugin(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/plugins/{id}/download (query: version, downloadPath, reInstall) */
26
+ downloadPlugin(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** POST api/plugins/{id}/edit */
29
+ editPlugin(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/plugins/ */
32
+ getAllPlugins(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/plugins/{id} */
35
+ getPlugin(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/plugins/by-type/{type} */
38
+ getPluginsByType(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/plugins/{id}/versions */
41
+ getPluginVersions(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** POST api/plugins/{id}/install */
44
+ installPlugin(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/plugins/load-all-for-avatar (query: showAllVersions, version) */
47
+ loadAllPluginsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/plugins/{id}/load (query: version, holonType) */
50
+ loadPlugin(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** GET api/plugins/load-from-path (query: path, holonType) */
53
+ loadPluginFromPath(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** GET api/plugins/load-from-published (query: publishedFilePath) */
56
+ loadPluginFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** GET api/plugins/{id}/version/{version} */
59
+ loadPluginVersion(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/plugins/{id}/publish */
62
+ publishPlugin(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** POST api/plugins/{id}/republish (query: version) */
65
+ republishPlugin(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** GET api/plugins/search (query: searchTerm) */
68
+ searchPlugins(args?: Record<string, any>): Promise<OASISResponse>;
69
+
70
+ /** POST api/plugins/{id}/uninstall */
71
+ uninstallPlugin(args?: Record<string, any>): Promise<OASISResponse>;
72
+
73
+ /** POST api/plugins/{id}/unpublish (query: version) */
74
+ unpublishPlugin(args?: Record<string, any>): Promise<OASISResponse>;
75
+
76
+ /** PUT api/plugins/{id} */
77
+ updatePlugin(args?: Record<string, any>): Promise<OASISResponse>;
78
+ }
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+
3
+ // AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
4
+ // Regenerate with: node scripts/generate-modules.js
5
+
6
+ const { makeOperation } = require('../core/routeHelper');
7
+
8
+ /**
9
+ * Generated wrapper for api/plugins (source: STAR WebAPI PluginsController.cs).
10
+ * Every method takes a single args object: path-template tokens (e.g. {id})
11
+ * are consumed from it automatically; any remaining keys are sent as the
12
+ * query string (GET/DELETE) or JSON body (POST/PUT).
13
+ */
14
+ class PluginsModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/plugins/{id}/activate (query: version)
19
+ this.activatePlugin = makeOperation(http, "api/plugins", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/plugins/{id}/clone
21
+ this.clonePlugin = makeOperation(http, "api/plugins", "POST", "{id}/clone");
22
+ // POST api/plugins/
23
+ this.createPlugin = makeOperation(http, "api/plugins", "POST", "");
24
+ // POST api/plugins/create
25
+ this.createPluginWithOptions = makeOperation(http, "api/plugins", "POST", "create");
26
+ // POST api/plugins/{id}/deactivate (query: version)
27
+ this.deactivatePlugin = makeOperation(http, "api/plugins", "POST", "{id}/deactivate", {"query":["version"]});
28
+ // DELETE api/plugins/{id}
29
+ this.deletePlugin = makeOperation(http, "api/plugins", "DELETE", "{id}");
30
+ // POST api/plugins/{id}/download (query: version, downloadPath, reInstall)
31
+ this.downloadPlugin = makeOperation(http, "api/plugins", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
32
+ // POST api/plugins/{id}/edit
33
+ this.editPlugin = makeOperation(http, "api/plugins", "POST", "{id}/edit");
34
+ // GET api/plugins/
35
+ this.getAllPlugins = makeOperation(http, "api/plugins", "GET", "");
36
+ // GET api/plugins/{id}
37
+ this.getPlugin = makeOperation(http, "api/plugins", "GET", "{id}");
38
+ // GET api/plugins/{id}/versions
39
+ this.getPluginVersions = makeOperation(http, "api/plugins", "GET", "{id}/versions");
40
+ // GET api/plugins/by-type/{type}
41
+ this.getPluginsByType = makeOperation(http, "api/plugins", "GET", "by-type/{type}");
42
+ // POST api/plugins/{id}/install
43
+ this.installPlugin = makeOperation(http, "api/plugins", "POST", "{id}/install");
44
+ // GET api/plugins/load-all-for-avatar (query: showAllVersions, version)
45
+ this.loadAllPluginsForAvatar = makeOperation(http, "api/plugins", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
46
+ // GET api/plugins/{id}/load (query: version, holonType)
47
+ this.loadPlugin = makeOperation(http, "api/plugins", "GET", "{id}/load", {"query":["version","holonType"]});
48
+ // GET api/plugins/load-from-path (query: path, holonType)
49
+ this.loadPluginFromPath = makeOperation(http, "api/plugins", "GET", "load-from-path", {"query":["path","holonType"]});
50
+ // GET api/plugins/load-from-published (query: publishedFilePath)
51
+ this.loadPluginFromPublished = makeOperation(http, "api/plugins", "GET", "load-from-published", {"query":["publishedFilePath"]});
52
+ // GET api/plugins/{id}/version/{version}
53
+ this.loadPluginVersion = makeOperation(http, "api/plugins", "GET", "{id}/version/{version}");
54
+ // POST api/plugins/{id}/publish
55
+ this.publishPlugin = makeOperation(http, "api/plugins", "POST", "{id}/publish");
56
+ // POST api/plugins/{id}/republish (query: version)
57
+ this.republishPlugin = makeOperation(http, "api/plugins", "POST", "{id}/republish", {"query":["version"]});
58
+ // GET api/plugins/search (query: searchTerm)
59
+ this.searchPlugins = makeOperation(http, "api/plugins", "GET", "search", {"query":["searchTerm"]});
60
+ // POST api/plugins/{id}/uninstall
61
+ this.uninstallPlugin = makeOperation(http, "api/plugins", "POST", "{id}/uninstall");
62
+ // POST api/plugins/{id}/unpublish (query: version)
63
+ this.unpublishPlugin = makeOperation(http, "api/plugins", "POST", "{id}/unpublish", {"query":["version"]});
64
+ // PUT api/plugins/{id}
65
+ this.updatePlugin = makeOperation(http, "api/plugins", "PUT", "{id}");
66
+ }
67
+ }
68
+
69
+ module.exports = { PluginsModule };
@@ -0,0 +1,129 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class QuestsModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/quests/{id}/activate (query: version) */
8
+ activateQuest(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/quests/{id}/objectives */
11
+ addQuestObjective(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/quests/{id}/subquests */
14
+ addSubQuest(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/quests/{id}/progress */
17
+ applyQuestProgress(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** GET api/quests/{id}/can-start */
20
+ canStartQuest(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** POST api/quests/{id}/clone */
23
+ cloneQuest(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/quests/{id}/complete (body: completionNotes) */
26
+ completeQuest(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** POST api/quests/{id}/objectives/{objectiveId}/complete */
29
+ completeQuestObjective(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** POST api/quests/objectives/complete */
32
+ completeQuestObjectiveByIdentifiers(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** POST api/quests/ */
35
+ createIQuest(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** POST api/quests/create */
38
+ createQuestWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** POST api/quests/{id}/deactivate (query: version) */
41
+ deactivateQuest(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** DELETE api/quests/{id} */
44
+ deleteIQuest(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** POST api/quests/{id}/download (query: version, downloadPath, reInstall) */
47
+ downloadQuest(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** POST api/quests/{id}/edit */
50
+ editQuest(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** GET api/quests/ */
53
+ getAllIQuests(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** GET api/quests/all-for-avatar */
56
+ getAllQuestsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** GET api/quests/all-for-avatar/game */
59
+ getAllQuestsForAvatarGame(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** GET api/quests/{id} */
62
+ getIQuest(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** GET api/quests/by-avatar/{avatarId} */
65
+ getIQuestsByAvatar(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** GET api/quests/{id}/leaderboard (query: limit) */
68
+ getQuestLeaderboard(args?: Record<string, any>): Promise<OASISResponse>;
69
+
70
+ /** GET api/quests/{id}/rewards */
71
+ getQuestRewards(args?: Record<string, any>): Promise<OASISResponse>;
72
+
73
+ /** GET api/quests/by-status/{status} */
74
+ getQuestsByStatus(args?: Record<string, any>): Promise<OASISResponse>;
75
+
76
+ /** GET api/quests/by-status/{status}/game */
77
+ getQuestsByStatusGame(args?: Record<string, any>): Promise<OASISResponse>;
78
+
79
+ /** GET api/quests/by-type/{type} */
80
+ getQuestsByType(args?: Record<string, any>): Promise<OASISResponse>;
81
+
82
+ /** GET api/quests/stats */
83
+ getQuestStats(args?: Record<string, any>): Promise<OASISResponse>;
84
+
85
+ /** GET api/quests/{id}/versions */
86
+ getQuestVersions(args?: Record<string, any>): Promise<OASISResponse>;
87
+
88
+ /** GET api/quests/load-all-for-avatar (query: showAllVersions, version) */
89
+ loadAllQuestsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
90
+
91
+ /** GET api/quests/{id}/load (query: version, holonType) */
92
+ loadQuest(args?: Record<string, any>): Promise<OASISResponse>;
93
+
94
+ /** GET api/quests/load-from-path (query: path, holonType) */
95
+ loadQuestFromPath(args?: Record<string, any>): Promise<OASISResponse>;
96
+
97
+ /** GET api/quests/load-from-published (query: publishedFilePath) */
98
+ loadQuestFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
99
+
100
+ /** GET api/quests/{id}/version/{version} */
101
+ loadQuestVersion(args?: Record<string, any>): Promise<OASISResponse>;
102
+
103
+ /** POST api/quests/{id}/publish */
104
+ publishQuest(args?: Record<string, any>): Promise<OASISResponse>;
105
+
106
+ /** DELETE api/quests/{parentId}/objectives/{objectiveId} */
107
+ removeQuestObjective(args?: Record<string, any>): Promise<OASISResponse>;
108
+
109
+ /** DELETE api/quests/{parentId}/subquests/{subQuestId} */
110
+ removeSubQuest(args?: Record<string, any>): Promise<OASISResponse>;
111
+
112
+ /** POST api/quests/{id}/republish (query: version) */
113
+ republishQuest(args?: Record<string, any>): Promise<OASISResponse>;
114
+
115
+ /** POST api/quests/{id}/progress/reset */
116
+ resetObjectiveProgress(args?: Record<string, any>): Promise<OASISResponse>;
117
+
118
+ /** GET api/quests/search (query: query) */
119
+ searchQuests(args?: Record<string, any>): Promise<OASISResponse>;
120
+
121
+ /** POST api/quests/{id}/start (body: startNotes) */
122
+ startQuest(args?: Record<string, any>): Promise<OASISResponse>;
123
+
124
+ /** POST api/quests/{id}/unpublish (query: version) */
125
+ unpublishQuest(args?: Record<string, any>): Promise<OASISResponse>;
126
+
127
+ /** PUT api/quests/{id} */
128
+ updateIQuest(args?: Record<string, any>): Promise<OASISResponse>;
129
+ }