@oasisomniverse/web4-api 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +464 -0
- package/docs/README.md +52 -0
- package/docs/auth.md +89 -0
- package/docs/getting-started.md +129 -0
- package/docs/modules/Avatar.md +4160 -0
- package/docs/modules/Bridge.md +394 -0
- package/docs/modules/Chat.md +168 -0
- package/docs/modules/Clan.md +552 -0
- package/docs/modules/Competition.md +594 -0
- package/docs/modules/Data.md +796 -0
- package/docs/modules/EOSIO.md +508 -0
- package/docs/modules/Eggs.md +396 -0
- package/docs/modules/Files.md +312 -0
- package/docs/modules/Gifts.md +306 -0
- package/docs/modules/Health.md +90 -0
- package/docs/modules/Holochain.md +374 -0
- package/docs/modules/HyperDrive.md +3857 -0
- package/docs/modules/Karma.md +644 -0
- package/docs/modules/Keys.md +3303 -0
- package/docs/modules/Map.md +1026 -0
- package/docs/modules/Messaging.md +320 -0
- package/docs/modules/Nft.md +2216 -0
- package/docs/modules/OLand.md +425 -0
- package/docs/modules/ONET.md +442 -0
- package/docs/modules/ONODE.md +504 -0
- package/docs/modules/Provider.md +1396 -0
- package/docs/modules/Search.md +69 -0
- package/docs/modules/Seeds.md +167 -0
- package/docs/modules/Settings.md +533 -0
- package/docs/modules/Share.md +64 -0
- package/docs/modules/Social.md +190 -0
- package/docs/modules/Solana.md +150 -0
- package/docs/modules/Stats.md +359 -0
- package/docs/modules/Subscription.md +437 -0
- package/docs/modules/Video.md +150 -0
- package/docs/modules/Wallet.md +1993 -0
- package/index.d.ts +106 -0
- package/index.js +3 -0
- package/index.mjs +4 -0
- package/package.json +120 -0
- package/src/core/httpClient.js +110 -0
- package/src/core/routeHelper.js +50 -0
- package/src/core/tokenStore.js +52 -0
- package/src/core/types.d.ts +18 -0
- package/src/index.js +46 -0
- package/src/modules/Auth.d.ts +28 -0
- package/src/modules/Auth.js +98 -0
- package/src/modules/Avatar.d.ts +192 -0
- package/src/modules/Avatar.js +143 -0
- package/src/modules/Bridge.d.ts +24 -0
- package/src/modules/Bridge.js +35 -0
- package/src/modules/Cargo.js +35 -0
- package/src/modules/Chat.d.ts +15 -0
- package/src/modules/Chat.js +27 -0
- package/src/modules/Clan.d.ts +36 -0
- package/src/modules/Clan.js +41 -0
- package/src/modules/Competition.d.ts +33 -0
- package/src/modules/Competition.js +39 -0
- package/src/modules/Core.js +27 -0
- package/src/modules/Data.d.ts +36 -0
- package/src/modules/Data.js +41 -0
- package/src/modules/EOSIO.d.ts +33 -0
- package/src/modules/EOSIO.js +39 -0
- package/src/modules/Eggs.d.ts +24 -0
- package/src/modules/Eggs.js +33 -0
- package/src/modules/Files.d.ts +24 -0
- package/src/modules/Files.js +33 -0
- package/src/modules/Gifts.d.ts +24 -0
- package/src/modules/Gifts.js +33 -0
- package/src/modules/Health.d.ts +12 -0
- package/src/modules/Health.js +25 -0
- package/src/modules/Holochain.d.ts +27 -0
- package/src/modules/Holochain.js +35 -0
- package/src/modules/HyperDrive.d.ts +237 -0
- package/src/modules/HyperDrive.js +175 -0
- package/src/modules/Karma.d.ts +42 -0
- package/src/modules/Karma.js +45 -0
- package/src/modules/Keys.d.ts +183 -0
- package/src/modules/Keys.js +139 -0
- package/src/modules/Map.d.ts +75 -0
- package/src/modules/Map.js +65 -0
- package/src/modules/Messaging.d.ts +24 -0
- package/src/modules/Messaging.js +33 -0
- package/src/modules/Nft.d.ts +102 -0
- package/src/modules/Nft.js +85 -0
- package/src/modules/OAPP.js +31 -0
- package/src/modules/OLand.d.ts +27 -0
- package/src/modules/OLand.js +35 -0
- package/src/modules/ONET.d.ts +39 -0
- package/src/modules/ONET.js +43 -0
- package/src/modules/ONODE.d.ts +45 -0
- package/src/modules/ONODE.js +47 -0
- package/src/modules/Provider.d.ts +99 -0
- package/src/modules/Provider.js +83 -0
- package/src/modules/Search.d.ts +9 -0
- package/src/modules/Search.js +23 -0
- package/src/modules/Seeds.d.ts +15 -0
- package/src/modules/Seeds.js +27 -0
- package/src/modules/Settings.d.ts +48 -0
- package/src/modules/Settings.js +47 -0
- package/src/modules/Share.d.ts +9 -0
- package/src/modules/Share.js +23 -0
- package/src/modules/Social.d.ts +18 -0
- package/src/modules/Social.js +29 -0
- package/src/modules/Solana.d.ts +12 -0
- package/src/modules/Solana.js +25 -0
- package/src/modules/Stats.d.ts +30 -0
- package/src/modules/Stats.js +37 -0
- package/src/modules/Subscription.d.ts +36 -0
- package/src/modules/Subscription.js +41 -0
- package/src/modules/Telos.js +39 -0
- package/src/modules/Video.d.ts +15 -0
- package/src/modules/Video.js +27 -0
- package/src/modules/Wallet.d.ts +102 -0
- package/src/modules/Wallet.js +85 -0
- package/src/modules/index.js +79 -0
|
@@ -0,0 +1,27 @@
|
|
|
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/core (source: ONODE WebAPI CoreController.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 CoreModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/core/generate-moon
|
|
19
|
+
this.generateMoon = makeOperation(http, "api/core", "POST", "generate-moon");
|
|
20
|
+
// GET api/core/config
|
|
21
|
+
this.getSystemConfig = makeOperation(http, "api/core", "GET", "config");
|
|
22
|
+
// GET api/core/health
|
|
23
|
+
this.getSystemHealth = makeOperation(http, "api/core", "GET", "health");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = { CoreModule };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class DataModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** DELETE api/data/delete-holon */
|
|
8
|
+
deleteHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/data/load-all-holons */
|
|
11
|
+
loadAllHolons(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/data/load-data */
|
|
14
|
+
loadData(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/data/load-file */
|
|
17
|
+
loadFile(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** POST api/data/load-holon */
|
|
20
|
+
loadHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/data/load-holons-for-parent */
|
|
23
|
+
loadHolonsForParent(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** POST api/data/save-data */
|
|
26
|
+
saveData(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** POST api/data/save-file */
|
|
29
|
+
saveFile(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** POST api/data/save-holon */
|
|
32
|
+
saveHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** POST api/data/save-holon-off-chain */
|
|
35
|
+
saveHolonOffChain(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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/data (source: ONODE WebAPI DataController.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 DataModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// DELETE api/data/delete-holon
|
|
19
|
+
this.deleteHolon = makeOperation(http, "api/data", "DELETE", "delete-holon");
|
|
20
|
+
// POST api/data/load-all-holons
|
|
21
|
+
this.loadAllHolons = makeOperation(http, "api/data", "POST", "load-all-holons");
|
|
22
|
+
// POST api/data/load-data
|
|
23
|
+
this.loadData = makeOperation(http, "api/data", "POST", "load-data");
|
|
24
|
+
// POST api/data/load-file
|
|
25
|
+
this.loadFile = makeOperation(http, "api/data", "POST", "load-file");
|
|
26
|
+
// POST api/data/load-holon
|
|
27
|
+
this.loadHolon = makeOperation(http, "api/data", "POST", "load-holon");
|
|
28
|
+
// POST api/data/load-holons-for-parent
|
|
29
|
+
this.loadHolonsForParent = makeOperation(http, "api/data", "POST", "load-holons-for-parent");
|
|
30
|
+
// POST api/data/save-data
|
|
31
|
+
this.saveData = makeOperation(http, "api/data", "POST", "save-data");
|
|
32
|
+
// POST api/data/save-file
|
|
33
|
+
this.saveFile = makeOperation(http, "api/data", "POST", "save-file");
|
|
34
|
+
// POST api/data/save-holon
|
|
35
|
+
this.saveHolon = makeOperation(http, "api/data", "POST", "save-holon");
|
|
36
|
+
// POST api/data/save-holon-off-chain
|
|
37
|
+
this.saveHolonOffChain = makeOperation(http, "api/data", "POST", "save-holon-off-chain");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = { DataModule };
|
|
@@ -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 EOSIOModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/eosio/get-avatar-for-eosio-account-name */
|
|
8
|
+
getAvatarForEOSIOAccountName(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/eosio/get-avatar-id-for-eosio-account-name */
|
|
11
|
+
getAvatarIdForEOSIOAccountName(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/eosio/get-balance-for-avatar */
|
|
14
|
+
getBalanceForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/eosio/get-balance-for-eosio-account */
|
|
17
|
+
getBalanceForEOSIOAccount(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/eosio/get-eosio-account */
|
|
20
|
+
getEOSIOAccount(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/eosio/get-eosio-account-for-avatar */
|
|
23
|
+
getEOSIOAccountForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/eosio/get-eosio-account-name-for-avatar */
|
|
26
|
+
getEOSIOAccountNamesForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/eosio/get-eosio-account-private-key-for-avatar */
|
|
29
|
+
getTelosAccountPrivateKeyForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** POST api/eosio/{avatarId}/{eosioAccountName} */
|
|
32
|
+
linkEOSIOAccountToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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/eosio (source: ONODE WebAPI EOSIOController.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 EOSIOModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/eosio/get-avatar-for-eosio-account-name
|
|
19
|
+
this.getAvatarForEOSIOAccountName = makeOperation(http, "api/eosio", "GET", "get-avatar-for-eosio-account-name");
|
|
20
|
+
// GET api/eosio/get-avatar-id-for-eosio-account-name
|
|
21
|
+
this.getAvatarIdForEOSIOAccountName = makeOperation(http, "api/eosio", "GET", "get-avatar-id-for-eosio-account-name");
|
|
22
|
+
// GET api/eosio/get-balance-for-avatar
|
|
23
|
+
this.getBalanceForAvatar = makeOperation(http, "api/eosio", "GET", "get-balance-for-avatar");
|
|
24
|
+
// GET api/eosio/get-balance-for-eosio-account
|
|
25
|
+
this.getBalanceForEOSIOAccount = makeOperation(http, "api/eosio", "GET", "get-balance-for-eosio-account");
|
|
26
|
+
// GET api/eosio/get-eosio-account
|
|
27
|
+
this.getEOSIOAccount = makeOperation(http, "api/eosio", "GET", "get-eosio-account");
|
|
28
|
+
// GET api/eosio/get-eosio-account-for-avatar
|
|
29
|
+
this.getEOSIOAccountForAvatar = makeOperation(http, "api/eosio", "GET", "get-eosio-account-for-avatar");
|
|
30
|
+
// GET api/eosio/get-eosio-account-name-for-avatar
|
|
31
|
+
this.getEOSIOAccountNamesForAvatar = makeOperation(http, "api/eosio", "GET", "get-eosio-account-name-for-avatar");
|
|
32
|
+
// GET api/eosio/get-eosio-account-private-key-for-avatar
|
|
33
|
+
this.getTelosAccountPrivateKeyForAvatar = makeOperation(http, "api/eosio", "GET", "get-eosio-account-private-key-for-avatar");
|
|
34
|
+
// POST api/eosio/{avatarId}/{eosioAccountName}
|
|
35
|
+
this.linkEOSIOAccountToAvatar = makeOperation(http, "api/eosio", "POST", "{avatarId}/{eosioAccountName}");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
module.exports = { EOSIOModule };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class EggsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/eggs/discover */
|
|
8
|
+
discoverEgg(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/eggs/get-all-eggs */
|
|
11
|
+
getAllEggs(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/eggs/get-current-egg-quest-leader-board */
|
|
14
|
+
getCurrentEggQuestLeaderBoard(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/eggs/get-current-egg-quests */
|
|
17
|
+
getCurrentEggQuests(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/eggs/my-eggs */
|
|
20
|
+
getMyEggs(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/eggs/hatch/{eggId} */
|
|
23
|
+
hatchEgg(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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/eggs (source: ONODE WebAPI EggsController.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 EggsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/eggs/discover
|
|
19
|
+
this.discoverEgg = makeOperation(http, "api/eggs", "POST", "discover");
|
|
20
|
+
// GET api/eggs/get-all-eggs
|
|
21
|
+
this.getAllEggs = makeOperation(http, "api/eggs", "GET", "get-all-eggs");
|
|
22
|
+
// GET api/eggs/get-current-egg-quest-leader-board
|
|
23
|
+
this.getCurrentEggQuestLeaderBoard = makeOperation(http, "api/eggs", "GET", "get-current-egg-quest-leader-board");
|
|
24
|
+
// GET api/eggs/get-current-egg-quests
|
|
25
|
+
this.getCurrentEggQuests = makeOperation(http, "api/eggs", "GET", "get-current-egg-quests");
|
|
26
|
+
// GET api/eggs/my-eggs
|
|
27
|
+
this.getMyEggs = makeOperation(http, "api/eggs", "GET", "my-eggs");
|
|
28
|
+
// POST api/eggs/hatch/{eggId}
|
|
29
|
+
this.hatchEgg = makeOperation(http, "api/eggs", "POST", "hatch/{eggId}");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = { EggsModule };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class FilesModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** DELETE api/files/delete-file/{fileId} */
|
|
8
|
+
deleteFile(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/files/download-file/{fileId} */
|
|
11
|
+
downloadFile(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/files/get-all-files-stored-for-current-logged-in-avatar */
|
|
14
|
+
getAllFilesStoredForCurrentLoggedInAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/files/file-metadata/{fileId} */
|
|
17
|
+
getFileMetadata(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** PUT api/files/update-file-metadata/{fileId} */
|
|
20
|
+
updateFileMetadata(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/files/upload-file */
|
|
23
|
+
uploadFile(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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/files (source: ONODE WebAPI FilesController.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 FilesModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// DELETE api/files/delete-file/{fileId}
|
|
19
|
+
this.deleteFile = makeOperation(http, "api/files", "DELETE", "delete-file/{fileId}");
|
|
20
|
+
// GET api/files/download-file/{fileId}
|
|
21
|
+
this.downloadFile = makeOperation(http, "api/files", "GET", "download-file/{fileId}");
|
|
22
|
+
// GET api/files/get-all-files-stored-for-current-logged-in-avatar
|
|
23
|
+
this.getAllFilesStoredForCurrentLoggedInAvatar = makeOperation(http, "api/files", "GET", "get-all-files-stored-for-current-logged-in-avatar");
|
|
24
|
+
// GET api/files/file-metadata/{fileId}
|
|
25
|
+
this.getFileMetadata = makeOperation(http, "api/files", "GET", "file-metadata/{fileId}");
|
|
26
|
+
// PUT api/files/update-file-metadata/{fileId}
|
|
27
|
+
this.updateFileMetadata = makeOperation(http, "api/files", "PUT", "update-file-metadata/{fileId}");
|
|
28
|
+
// POST api/files/upload-file
|
|
29
|
+
this.uploadFile = makeOperation(http, "api/files", "POST", "upload-file");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = { FilesModule };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class GiftsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/gifts/history */
|
|
8
|
+
getGiftHistory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/gifts/stats */
|
|
11
|
+
getGiftStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/gifts/my-gifts */
|
|
14
|
+
getMyGifts(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/gifts/open-gift/{giftId} */
|
|
17
|
+
openGift(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** POST api/gifts/receive-gift/{giftId} */
|
|
20
|
+
receiveGift(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/gifts/send-gift/{toAvatarId} */
|
|
23
|
+
sendGift(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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/gifts (source: ONODE WebAPI GiftsController.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 GiftsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/gifts/history
|
|
19
|
+
this.getGiftHistory = makeOperation(http, "api/gifts", "GET", "history");
|
|
20
|
+
// GET api/gifts/stats
|
|
21
|
+
this.getGiftStats = makeOperation(http, "api/gifts", "GET", "stats");
|
|
22
|
+
// GET api/gifts/my-gifts
|
|
23
|
+
this.getMyGifts = makeOperation(http, "api/gifts", "GET", "my-gifts");
|
|
24
|
+
// POST api/gifts/open-gift/{giftId}
|
|
25
|
+
this.openGift = makeOperation(http, "api/gifts", "POST", "open-gift/{giftId}");
|
|
26
|
+
// POST api/gifts/receive-gift/{giftId}
|
|
27
|
+
this.receiveGift = makeOperation(http, "api/gifts", "POST", "receive-gift/{giftId}");
|
|
28
|
+
// POST api/gifts/send-gift/{toAvatarId}
|
|
29
|
+
this.sendGift = makeOperation(http, "api/gifts", "POST", "send-gift/{toAvatarId}");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = { GiftsModule };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class HealthModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/health/ */
|
|
8
|
+
get(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/health/health */
|
|
11
|
+
health(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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/health (source: ONODE WebAPI HealthController.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 HealthModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/health/
|
|
19
|
+
this.get = makeOperation(http, "api/health", "GET", "");
|
|
20
|
+
// GET api/health/health
|
|
21
|
+
this.health = makeOperation(http, "api/health", "GET", "health");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = { HealthModule };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class HolochainModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/holochain/get-avatar-for-holochain-agentid */
|
|
8
|
+
getAvatarForHolochainAgentId(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/holochain/get-avatar-id-for-holochain-agentid */
|
|
11
|
+
getAvatarIdForHolochainAgentId(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/holochain/get-holochain-agentids-for-avatar */
|
|
14
|
+
getHolochainAgentIdsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/holochain/get-holochain-agent-private-keys-for-avatar */
|
|
17
|
+
getHolochainAgentPrivateKeysForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/holochain/get-holo-fuel-balance-for-agentId */
|
|
20
|
+
getHoloFuelBalanceForAgentId(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/holochain/get-holo-fuel-balance-for-avatar */
|
|
23
|
+
getHoloFuelBalanceForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** POST api/holochain/{avatarId}/{holochainAgentId} */
|
|
26
|
+
linkHolochainAgentIdToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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/holochain (source: ONODE WebAPI HolochainController.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 HolochainModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/holochain/get-avatar-for-holochain-agentid
|
|
19
|
+
this.getAvatarForHolochainAgentId = makeOperation(http, "api/holochain", "GET", "get-avatar-for-holochain-agentid");
|
|
20
|
+
// GET api/holochain/get-avatar-id-for-holochain-agentid
|
|
21
|
+
this.getAvatarIdForHolochainAgentId = makeOperation(http, "api/holochain", "GET", "get-avatar-id-for-holochain-agentid");
|
|
22
|
+
// GET api/holochain/get-holo-fuel-balance-for-agentId
|
|
23
|
+
this.getHoloFuelBalanceForAgentId = makeOperation(http, "api/holochain", "GET", "get-holo-fuel-balance-for-agentId");
|
|
24
|
+
// GET api/holochain/get-holo-fuel-balance-for-avatar
|
|
25
|
+
this.getHoloFuelBalanceForAvatar = makeOperation(http, "api/holochain", "GET", "get-holo-fuel-balance-for-avatar");
|
|
26
|
+
// GET api/holochain/get-holochain-agentids-for-avatar
|
|
27
|
+
this.getHolochainAgentIdsForAvatar = makeOperation(http, "api/holochain", "GET", "get-holochain-agentids-for-avatar");
|
|
28
|
+
// GET api/holochain/get-holochain-agent-private-keys-for-avatar
|
|
29
|
+
this.getHolochainAgentPrivateKeysForAvatar = makeOperation(http, "api/holochain", "GET", "get-holochain-agent-private-keys-for-avatar");
|
|
30
|
+
// POST api/holochain/{avatarId}/{holochainAgentId}
|
|
31
|
+
this.linkHolochainAgentIdToAvatar = makeOperation(http, "api/holochain", "POST", "{avatarId}/{holochainAgentId}");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = { HolochainModule };
|