@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,47 @@
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/avatar (source: STAR WebAPI AvatarController.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 AvatarModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/avatar/inventory
19
+ this.addItemToInventory = makeOperation(http, "api/avatar", "POST", "inventory");
20
+ // POST api/avatar/add-xp
21
+ this.addXp = makeOperation(http, "api/avatar", "POST", "add-xp");
22
+ // POST api/avatar/authenticate
23
+ this.authenticate = makeOperation(http, "api/avatar", "POST", "authenticate");
24
+ // GET api/avatar/current
25
+ this.getCurrentAvatar = makeOperation(http, "api/avatar", "GET", "current");
26
+ // GET api/avatar/inventory
27
+ this.getInventory = makeOperation(http, "api/avatar", "GET", "inventory");
28
+ // GET api/avatar/inventory/{itemId}
29
+ this.getInventoryItem = makeOperation(http, "api/avatar", "GET", "inventory/{itemId}");
30
+ // GET api/avatar/inventory/{itemId}/has
31
+ this.hasItem = makeOperation(http, "api/avatar", "GET", "inventory/{itemId}/has");
32
+ // GET api/avatar/inventory/has-by-name (query: itemName)
33
+ this.hasItemByName = makeOperation(http, "api/avatar", "GET", "inventory/has-by-name", {"query":["itemName"]});
34
+ // DELETE api/avatar/inventory/{itemId}
35
+ this.removeItemFromInventory = makeOperation(http, "api/avatar", "DELETE", "inventory/{itemId}");
36
+ // GET api/avatar/inventory/search (query: searchTerm)
37
+ this.searchInventory = makeOperation(http, "api/avatar", "GET", "inventory/search", {"query":["searchTerm"]});
38
+ // POST api/avatar/inventory/send-to-avatar
39
+ this.sendItemToAvatar = makeOperation(http, "api/avatar", "POST", "inventory/send-to-avatar");
40
+ // POST api/avatar/inventory/send-to-clan
41
+ this.sendItemToClan = makeOperation(http, "api/avatar", "POST", "inventory/send-to-clan");
42
+ // POST api/avatar/set-active-quest
43
+ this.setActiveQuest = makeOperation(http, "api/avatar", "POST", "set-active-quest");
44
+ }
45
+ }
46
+
47
+ module.exports = { AvatarModule };
@@ -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 CelestialBodiesModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/celestialBodies/{id}/activate (query: version) */
8
+ activateCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/celestialBodies/ */
11
+ createCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/celestialBodies/create */
14
+ createCelestialBodyWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/celestialBodies/{id}/deactivate (query: version) */
17
+ deactivateCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** DELETE api/celestialBodies/{id} */
20
+ deleteCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** POST api/celestialBodies/{id}/download (query: version, downloadPath, reInstall) */
23
+ downloadCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/celestialBodies/{id}/edit */
26
+ editCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** GET api/celestialBodies/ */
29
+ getAllCelestialBodies(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/celestialBodies/by-type/{type} */
32
+ getCelestialBodiesByType(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/celestialBodies/in-space/{spaceId} */
35
+ getCelestialBodiesInSpace(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/celestialBodies/{id} */
38
+ getCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/celestialBodies/{id}/versions */
41
+ getCelestialBodyVersions(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/celestialBodies/load-all-for-avatar (query: showAllVersions, version) */
44
+ loadAllCelestialBodiesForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/celestialBodies/{id}/load (query: version, holonType) */
47
+ loadCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/celestialBodies/load-from-path (query: path, holonType) */
50
+ loadCelestialBodyFromPath(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** GET api/celestialBodies/load-from-published (query: publishedFilePath) */
53
+ loadCelestialBodyFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** GET api/celestialBodies/{id}/version/{version} */
56
+ loadCelestialBodyVersion(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** POST api/celestialBodies/{id}/publish */
59
+ publishCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/celestialBodies/{id}/republish (query: version) */
62
+ republishCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** GET api/celestialBodies/search (query: query) */
65
+ searchCelestialBodies(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** POST api/celestialBodies/{id}/unpublish (query: version) */
68
+ unpublishCelestialBody(args?: Record<string, any>): Promise<OASISResponse>;
69
+
70
+ /** PUT api/celestialBodies/{id} */
71
+ updateCelestialBody(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/celestialBodies (source: STAR WebAPI CelestialBodiesController.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 CelestialBodiesModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/celestialBodies/{id}/activate (query: version)
19
+ this.activateCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/celestialBodies/
21
+ this.createCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "");
22
+ // POST api/celestialBodies/create
23
+ this.createCelestialBodyWithOptions = makeOperation(http, "api/celestialBodies", "POST", "create");
24
+ // POST api/celestialBodies/{id}/deactivate (query: version)
25
+ this.deactivateCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/deactivate", {"query":["version"]});
26
+ // DELETE api/celestialBodies/{id}
27
+ this.deleteCelestialBody = makeOperation(http, "api/celestialBodies", "DELETE", "{id}");
28
+ // POST api/celestialBodies/{id}/download (query: version, downloadPath, reInstall)
29
+ this.downloadCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
30
+ // POST api/celestialBodies/{id}/edit
31
+ this.editCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/edit");
32
+ // GET api/celestialBodies/
33
+ this.getAllCelestialBodies = makeOperation(http, "api/celestialBodies", "GET", "");
34
+ // GET api/celestialBodies/by-type/{type}
35
+ this.getCelestialBodiesByType = makeOperation(http, "api/celestialBodies", "GET", "by-type/{type}");
36
+ // GET api/celestialBodies/in-space/{spaceId}
37
+ this.getCelestialBodiesInSpace = makeOperation(http, "api/celestialBodies", "GET", "in-space/{spaceId}");
38
+ // GET api/celestialBodies/{id}
39
+ this.getCelestialBody = makeOperation(http, "api/celestialBodies", "GET", "{id}");
40
+ // GET api/celestialBodies/{id}/versions
41
+ this.getCelestialBodyVersions = makeOperation(http, "api/celestialBodies", "GET", "{id}/versions");
42
+ // GET api/celestialBodies/load-all-for-avatar (query: showAllVersions, version)
43
+ this.loadAllCelestialBodiesForAvatar = makeOperation(http, "api/celestialBodies", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
44
+ // GET api/celestialBodies/{id}/load (query: version, holonType)
45
+ this.loadCelestialBody = makeOperation(http, "api/celestialBodies", "GET", "{id}/load", {"query":["version","holonType"]});
46
+ // GET api/celestialBodies/load-from-path (query: path, holonType)
47
+ this.loadCelestialBodyFromPath = makeOperation(http, "api/celestialBodies", "GET", "load-from-path", {"query":["path","holonType"]});
48
+ // GET api/celestialBodies/load-from-published (query: publishedFilePath)
49
+ this.loadCelestialBodyFromPublished = makeOperation(http, "api/celestialBodies", "GET", "load-from-published", {"query":["publishedFilePath"]});
50
+ // GET api/celestialBodies/{id}/version/{version}
51
+ this.loadCelestialBodyVersion = makeOperation(http, "api/celestialBodies", "GET", "{id}/version/{version}");
52
+ // POST api/celestialBodies/{id}/publish
53
+ this.publishCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/publish");
54
+ // POST api/celestialBodies/{id}/republish (query: version)
55
+ this.republishCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/republish", {"query":["version"]});
56
+ // GET api/celestialBodies/search (query: query)
57
+ this.searchCelestialBodies = makeOperation(http, "api/celestialBodies", "GET", "search", {"query":["query"]});
58
+ // POST api/celestialBodies/{id}/unpublish (query: version)
59
+ this.unpublishCelestialBody = makeOperation(http, "api/celestialBodies", "POST", "{id}/unpublish", {"query":["version"]});
60
+ // PUT api/celestialBodies/{id}
61
+ this.updateCelestialBody = makeOperation(http, "api/celestialBodies", "PUT", "{id}");
62
+ }
63
+ }
64
+
65
+ module.exports = { CelestialBodiesModule };
@@ -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 CelestialBodiesMetaDataModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/celestialBodiesMetaData/{id}/activate (query: version) */
8
+ activateCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/celestialBodiesMetaData/{id}/clone */
11
+ cloneCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/celestialBodiesMetaData/ */
14
+ createCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/celestialBodiesMetaData/create */
17
+ createCelestialBodyMetaDataWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** POST api/celestialBodiesMetaData/{id}/deactivate (query: version) */
20
+ deactivateCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** DELETE api/celestialBodiesMetaData/{id} */
23
+ deleteCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/celestialBodiesMetaData/{id}/download */
26
+ downloadCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** PUT api/celestialBodiesMetaData/{id}/edit */
29
+ editCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/celestialBodiesMetaData/ */
32
+ getAllCelestialBodiesMetaData(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/celestialBodiesMetaData/{id} */
35
+ getCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/celestialBodiesMetaData/{id}/versions */
38
+ getCelestialBodyMetaDataVersions(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/celestialBodiesMetaData/load-all-for-avatar */
41
+ loadAllCelestialBodyMetaDataForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/celestialBodiesMetaData/load-from-path (query: path) */
44
+ loadCelestialBodyMetaDataFromPath(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/celestialBodiesMetaData/load-from-published (query: publishedFilePath) */
47
+ loadCelestialBodyMetaDataFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/celestialBodiesMetaData/{id}/versions/{version} */
50
+ loadCelestialBodyMetaDataVersion(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** POST api/celestialBodiesMetaData/{id}/publish */
53
+ publishCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** POST api/celestialBodiesMetaData/{id}/republish (query: version) */
56
+ republishCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** GET api/celestialBodiesMetaData/search (query: searchTerm, showAllVersions, version) */
59
+ searchCelestialBodiesMetaData(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/celestialBodiesMetaData/search */
62
+ searchCelestialBodiesMetaDataPost(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** POST api/celestialBodiesMetaData/{id}/unpublish (query: version) */
65
+ unpublishCelestialBodyMetaData(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** PUT api/celestialBodiesMetaData/{id} */
68
+ updateCelestialBodyMetaData(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/celestialBodiesMetaData (source: STAR WebAPI CelestialBodiesMetaDataController.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 CelestialBodiesMetaDataModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/celestialBodiesMetaData/{id}/activate (query: version)
19
+ this.activateCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/celestialBodiesMetaData/{id}/clone
21
+ this.cloneCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/clone");
22
+ // POST api/celestialBodiesMetaData/
23
+ this.createCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "");
24
+ // POST api/celestialBodiesMetaData/create
25
+ this.createCelestialBodyMetaDataWithOptions = makeOperation(http, "api/celestialBodiesMetaData", "POST", "create");
26
+ // POST api/celestialBodiesMetaData/{id}/deactivate (query: version)
27
+ this.deactivateCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/deactivate", {"query":["version"]});
28
+ // DELETE api/celestialBodiesMetaData/{id}
29
+ this.deleteCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "DELETE", "{id}");
30
+ // POST api/celestialBodiesMetaData/{id}/download
31
+ this.downloadCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/download");
32
+ // PUT api/celestialBodiesMetaData/{id}/edit
33
+ this.editCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "PUT", "{id}/edit");
34
+ // GET api/celestialBodiesMetaData/
35
+ this.getAllCelestialBodiesMetaData = makeOperation(http, "api/celestialBodiesMetaData", "GET", "");
36
+ // GET api/celestialBodiesMetaData/{id}
37
+ this.getCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "GET", "{id}");
38
+ // GET api/celestialBodiesMetaData/{id}/versions
39
+ this.getCelestialBodyMetaDataVersions = makeOperation(http, "api/celestialBodiesMetaData", "GET", "{id}/versions");
40
+ // GET api/celestialBodiesMetaData/load-all-for-avatar
41
+ this.loadAllCelestialBodyMetaDataForAvatar = makeOperation(http, "api/celestialBodiesMetaData", "GET", "load-all-for-avatar");
42
+ // GET api/celestialBodiesMetaData/load-from-path (query: path)
43
+ this.loadCelestialBodyMetaDataFromPath = makeOperation(http, "api/celestialBodiesMetaData", "GET", "load-from-path", {"query":["path"]});
44
+ // GET api/celestialBodiesMetaData/load-from-published (query: publishedFilePath)
45
+ this.loadCelestialBodyMetaDataFromPublished = makeOperation(http, "api/celestialBodiesMetaData", "GET", "load-from-published", {"query":["publishedFilePath"]});
46
+ // GET api/celestialBodiesMetaData/{id}/versions/{version}
47
+ this.loadCelestialBodyMetaDataVersion = makeOperation(http, "api/celestialBodiesMetaData", "GET", "{id}/versions/{version}");
48
+ // POST api/celestialBodiesMetaData/{id}/publish
49
+ this.publishCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/publish");
50
+ // POST api/celestialBodiesMetaData/{id}/republish (query: version)
51
+ this.republishCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/republish", {"query":["version"]});
52
+ // POST api/celestialBodiesMetaData/search
53
+ this.searchCelestialBodiesMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "search");
54
+ // POST api/celestialBodiesMetaData/{id}/unpublish (query: version)
55
+ this.unpublishCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "POST", "{id}/unpublish", {"query":["version"]});
56
+ // PUT api/celestialBodiesMetaData/{id}
57
+ this.updateCelestialBodyMetaData = makeOperation(http, "api/celestialBodiesMetaData", "PUT", "{id}");
58
+ }
59
+ }
60
+
61
+ module.exports = { CelestialBodiesMetaDataModule };
@@ -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 CelestialSpacesModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/celestialSpaces/{id}/activate (query: version) */
8
+ activateCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/celestialSpaces/ */
11
+ createCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/celestialSpaces/create */
14
+ createCelestialSpaceWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/celestialSpaces/{id}/deactivate (query: version) */
17
+ deactivateCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** DELETE api/celestialSpaces/{id} */
20
+ deleteCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** POST api/celestialSpaces/{id}/download (query: version, downloadPath, reInstall) */
23
+ downloadCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/celestialSpaces/{id}/edit */
26
+ editCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** GET api/celestialSpaces/ */
29
+ getAllCelestialSpaces(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/celestialSpaces/{id} */
32
+ getCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/celestialSpaces/by-type/{type} */
35
+ getCelestialSpacesByType(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/celestialSpaces/in-space/{parentSpaceId} */
38
+ getCelestialSpacesInSpace(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/celestialSpaces/{id}/versions */
41
+ getCelestialSpaceVersions(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/celestialSpaces/load-all-for-avatar (query: showAllVersions, version) */
44
+ loadAllCelestialSpacesForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/celestialSpaces/{id}/load (query: version, holonType) */
47
+ loadCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/celestialSpaces/load-from-path (query: path, holonType) */
50
+ loadCelestialSpaceFromPath(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** GET api/celestialSpaces/load-from-published (query: publishedFilePath) */
53
+ loadCelestialSpaceFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** GET api/celestialSpaces/{id}/version/{version} */
56
+ loadCelestialSpaceVersion(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** POST api/celestialSpaces/{id}/publish */
59
+ publishCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/celestialSpaces/{id}/republish (query: version) */
62
+ republishCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** GET api/celestialSpaces/search (query: query) */
65
+ searchCelestialSpaces(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** POST api/celestialSpaces/{id}/unpublish (query: version) */
68
+ unpublishCelestialSpace(args?: Record<string, any>): Promise<OASISResponse>;
69
+
70
+ /** PUT api/celestialSpaces/{id} */
71
+ updateCelestialSpace(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/celestialSpaces (source: STAR WebAPI CelestialSpacesController.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 CelestialSpacesModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/celestialSpaces/{id}/activate (query: version)
19
+ this.activateCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/celestialSpaces/
21
+ this.createCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "");
22
+ // POST api/celestialSpaces/create
23
+ this.createCelestialSpaceWithOptions = makeOperation(http, "api/celestialSpaces", "POST", "create");
24
+ // POST api/celestialSpaces/{id}/deactivate (query: version)
25
+ this.deactivateCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/deactivate", {"query":["version"]});
26
+ // DELETE api/celestialSpaces/{id}
27
+ this.deleteCelestialSpace = makeOperation(http, "api/celestialSpaces", "DELETE", "{id}");
28
+ // POST api/celestialSpaces/{id}/download (query: version, downloadPath, reInstall)
29
+ this.downloadCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
30
+ // POST api/celestialSpaces/{id}/edit
31
+ this.editCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/edit");
32
+ // GET api/celestialSpaces/
33
+ this.getAllCelestialSpaces = makeOperation(http, "api/celestialSpaces", "GET", "");
34
+ // GET api/celestialSpaces/{id}
35
+ this.getCelestialSpace = makeOperation(http, "api/celestialSpaces", "GET", "{id}");
36
+ // GET api/celestialSpaces/{id}/versions
37
+ this.getCelestialSpaceVersions = makeOperation(http, "api/celestialSpaces", "GET", "{id}/versions");
38
+ // GET api/celestialSpaces/by-type/{type}
39
+ this.getCelestialSpacesByType = makeOperation(http, "api/celestialSpaces", "GET", "by-type/{type}");
40
+ // GET api/celestialSpaces/in-space/{parentSpaceId}
41
+ this.getCelestialSpacesInSpace = makeOperation(http, "api/celestialSpaces", "GET", "in-space/{parentSpaceId}");
42
+ // GET api/celestialSpaces/load-all-for-avatar (query: showAllVersions, version)
43
+ this.loadAllCelestialSpacesForAvatar = makeOperation(http, "api/celestialSpaces", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
44
+ // GET api/celestialSpaces/{id}/load (query: version, holonType)
45
+ this.loadCelestialSpace = makeOperation(http, "api/celestialSpaces", "GET", "{id}/load", {"query":["version","holonType"]});
46
+ // GET api/celestialSpaces/load-from-path (query: path, holonType)
47
+ this.loadCelestialSpaceFromPath = makeOperation(http, "api/celestialSpaces", "GET", "load-from-path", {"query":["path","holonType"]});
48
+ // GET api/celestialSpaces/load-from-published (query: publishedFilePath)
49
+ this.loadCelestialSpaceFromPublished = makeOperation(http, "api/celestialSpaces", "GET", "load-from-published", {"query":["publishedFilePath"]});
50
+ // GET api/celestialSpaces/{id}/version/{version}
51
+ this.loadCelestialSpaceVersion = makeOperation(http, "api/celestialSpaces", "GET", "{id}/version/{version}");
52
+ // POST api/celestialSpaces/{id}/publish
53
+ this.publishCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/publish");
54
+ // POST api/celestialSpaces/{id}/republish (query: version)
55
+ this.republishCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/republish", {"query":["version"]});
56
+ // GET api/celestialSpaces/search (query: query)
57
+ this.searchCelestialSpaces = makeOperation(http, "api/celestialSpaces", "GET", "search", {"query":["query"]});
58
+ // POST api/celestialSpaces/{id}/unpublish (query: version)
59
+ this.unpublishCelestialSpace = makeOperation(http, "api/celestialSpaces", "POST", "{id}/unpublish", {"query":["version"]});
60
+ // PUT api/celestialSpaces/{id}
61
+ this.updateCelestialSpace = makeOperation(http, "api/celestialSpaces", "PUT", "{id}");
62
+ }
63
+ }
64
+
65
+ module.exports = { CelestialSpacesModule };
@@ -0,0 +1,66 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class ChaptersModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/chapters/{id}/activate (query: version) */
8
+ activateChapter(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/chapters/ */
11
+ createChapter(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/chapters/create */
14
+ createChapterWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/chapters/{id}/deactivate (query: version) */
17
+ deactivateChapter(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** DELETE api/chapters/{id} */
20
+ deleteChapter(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** POST api/chapters/{id}/download (query: version, downloadPath, reInstall) */
23
+ downloadChapter(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** POST api/chapters/{id}/edit */
26
+ editChapter(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** GET api/chapters/ */
29
+ getAllChapters(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** GET api/chapters/{id} */
32
+ getChapter(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** GET api/chapters/{id}/versions */
35
+ getChapterVersions(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** GET api/chapters/load-all-for-avatar (query: showAllVersions, version) */
38
+ loadAllChaptersForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/chapters/{id}/load (query: version, holonType) */
41
+ loadChapter(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/chapters/load-from-path (query: path, holonType) */
44
+ loadChapterFromPath(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/chapters/load-from-published (query: publishedFilePath) */
47
+ loadChapterFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/chapters/{id}/version/{version} */
50
+ loadChapterVersion(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** POST api/chapters/{id}/publish */
53
+ publishChapter(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** POST api/chapters/{id}/republish (query: version) */
56
+ republishChapter(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** GET api/chapters/search (query: query) */
59
+ searchChapters(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** POST api/chapters/{id}/unpublish (query: version) */
62
+ unpublishChapter(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** PUT api/chapters/{id} */
65
+ updateChapter(args?: Record<string, any>): Promise<OASISResponse>;
66
+ }
@@ -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/chapters (source: STAR WebAPI ChaptersController.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 ChaptersModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/chapters/{id}/activate (query: version)
19
+ this.activateChapter = makeOperation(http, "api/chapters", "POST", "{id}/activate", {"query":["version"]});
20
+ // POST api/chapters/
21
+ this.createChapter = makeOperation(http, "api/chapters", "POST", "");
22
+ // POST api/chapters/create
23
+ this.createChapterWithOptions = makeOperation(http, "api/chapters", "POST", "create");
24
+ // POST api/chapters/{id}/deactivate (query: version)
25
+ this.deactivateChapter = makeOperation(http, "api/chapters", "POST", "{id}/deactivate", {"query":["version"]});
26
+ // DELETE api/chapters/{id}
27
+ this.deleteChapter = makeOperation(http, "api/chapters", "DELETE", "{id}");
28
+ // POST api/chapters/{id}/download (query: version, downloadPath, reInstall)
29
+ this.downloadChapter = makeOperation(http, "api/chapters", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
30
+ // POST api/chapters/{id}/edit
31
+ this.editChapter = makeOperation(http, "api/chapters", "POST", "{id}/edit");
32
+ // GET api/chapters/
33
+ this.getAllChapters = makeOperation(http, "api/chapters", "GET", "");
34
+ // GET api/chapters/{id}
35
+ this.getChapter = makeOperation(http, "api/chapters", "GET", "{id}");
36
+ // GET api/chapters/{id}/versions
37
+ this.getChapterVersions = makeOperation(http, "api/chapters", "GET", "{id}/versions");
38
+ // GET api/chapters/load-all-for-avatar (query: showAllVersions, version)
39
+ this.loadAllChaptersForAvatar = makeOperation(http, "api/chapters", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
40
+ // GET api/chapters/{id}/load (query: version, holonType)
41
+ this.loadChapter = makeOperation(http, "api/chapters", "GET", "{id}/load", {"query":["version","holonType"]});
42
+ // GET api/chapters/load-from-path (query: path, holonType)
43
+ this.loadChapterFromPath = makeOperation(http, "api/chapters", "GET", "load-from-path", {"query":["path","holonType"]});
44
+ // GET api/chapters/load-from-published (query: publishedFilePath)
45
+ this.loadChapterFromPublished = makeOperation(http, "api/chapters", "GET", "load-from-published", {"query":["publishedFilePath"]});
46
+ // GET api/chapters/{id}/version/{version}
47
+ this.loadChapterVersion = makeOperation(http, "api/chapters", "GET", "{id}/version/{version}");
48
+ // POST api/chapters/{id}/publish
49
+ this.publishChapter = makeOperation(http, "api/chapters", "POST", "{id}/publish");
50
+ // POST api/chapters/{id}/republish (query: version)
51
+ this.republishChapter = makeOperation(http, "api/chapters", "POST", "{id}/republish", {"query":["version"]});
52
+ // GET api/chapters/search (query: query)
53
+ this.searchChapters = makeOperation(http, "api/chapters", "GET", "search", {"query":["query"]});
54
+ // POST api/chapters/{id}/unpublish (query: version)
55
+ this.unpublishChapter = makeOperation(http, "api/chapters", "POST", "{id}/unpublish", {"query":["version"]});
56
+ // PUT api/chapters/{id}
57
+ this.updateChapter = makeOperation(http, "api/chapters", "PUT", "{id}");
58
+ }
59
+ }
60
+
61
+ module.exports = { ChaptersModule };
@@ -0,0 +1,33 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class CompetitionModule {
5
+ constructor(http: unknown);
6
+
7
+ /** GET api/competition/tournaments (query: competitionType) */
8
+ getActiveTournaments(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** GET api/competition/leagues/{competitionType}/{seasonType} */
11
+ getAvailableLeagues(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** GET api/competition/league/{avatarId}/{competitionType}/{seasonType} */
14
+ getAvatarLeague(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** GET api/competition/rank/{avatarId}/{competitionType}/{seasonType} */
17
+ getAvatarRank(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** GET api/competition/leaderboard/{competitionType}/{seasonType} (query: limit, offset) */
20
+ getLeaderboard(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** GET api/competition/my-league/{competitionType}/{seasonType} */
23
+ getMyLeague(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** GET api/competition/my-rank/{competitionType}/{seasonType} */
26
+ getMyRank(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** GET api/competition/stats/{competitionType}/{seasonType} */
29
+ getMyStats(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** POST api/competition/tournaments/{tournamentId}/join */
32
+ joinTournament(args?: Record<string, any>): Promise<OASISResponse>;
33
+ }