@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,48 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class SettingsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/settings/get-all-settings-for-current-logged-in-avatar */
|
|
8
|
+
getAllSettingsForCurrentLoggedInAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/settings/hyperdrive-settings */
|
|
11
|
+
getHyperDriveSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/settings/notification-preferences */
|
|
14
|
+
getNotificationPreferences(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/settings/privacy-settings */
|
|
17
|
+
getPrivacySettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/settings/subscription-settings */
|
|
20
|
+
getSubscriptionSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/settings/system-config */
|
|
23
|
+
getSystemConfig(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/settings/system-settings */
|
|
26
|
+
getSystemSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/settings/version */
|
|
29
|
+
getVersion(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** PUT api/settings/hyperdrive-settings */
|
|
32
|
+
updateHyperDriveSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** PUT api/settings/notification-preferences */
|
|
35
|
+
updateNotificationPreferences(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
|
|
37
|
+
/** PUT api/settings/privacy-settings */
|
|
38
|
+
updatePrivacySettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
39
|
+
|
|
40
|
+
/** PUT api/settings/update-settings */
|
|
41
|
+
updateSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
42
|
+
|
|
43
|
+
/** PUT api/settings/subscription-settings */
|
|
44
|
+
updateSubscriptionSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
45
|
+
|
|
46
|
+
/** PUT api/settings/system-settings */
|
|
47
|
+
updateSystemSettings(args?: Record<string, any>): Promise<OASISResponse>;
|
|
48
|
+
}
|
|
@@ -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/settings (source: ONODE WebAPI SettingsController.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 SettingsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/settings/get-all-settings-for-current-logged-in-avatar
|
|
19
|
+
this.getAllSettingsForCurrentLoggedInAvatar = makeOperation(http, "api/settings", "GET", "get-all-settings-for-current-logged-in-avatar");
|
|
20
|
+
// GET api/settings/hyperdrive-settings
|
|
21
|
+
this.getHyperDriveSettings = makeOperation(http, "api/settings", "GET", "hyperdrive-settings");
|
|
22
|
+
// GET api/settings/notification-preferences
|
|
23
|
+
this.getNotificationPreferences = makeOperation(http, "api/settings", "GET", "notification-preferences");
|
|
24
|
+
// GET api/settings/privacy-settings
|
|
25
|
+
this.getPrivacySettings = makeOperation(http, "api/settings", "GET", "privacy-settings");
|
|
26
|
+
// GET api/settings/subscription-settings
|
|
27
|
+
this.getSubscriptionSettings = makeOperation(http, "api/settings", "GET", "subscription-settings");
|
|
28
|
+
// GET api/settings/system-config
|
|
29
|
+
this.getSystemConfig = makeOperation(http, "api/settings", "GET", "system-config");
|
|
30
|
+
// GET api/settings/system-settings
|
|
31
|
+
this.getSystemSettings = makeOperation(http, "api/settings", "GET", "system-settings");
|
|
32
|
+
// PUT api/settings/hyperdrive-settings
|
|
33
|
+
this.updateHyperDriveSettings = makeOperation(http, "api/settings", "PUT", "hyperdrive-settings");
|
|
34
|
+
// PUT api/settings/notification-preferences
|
|
35
|
+
this.updateNotificationPreferences = makeOperation(http, "api/settings", "PUT", "notification-preferences");
|
|
36
|
+
// PUT api/settings/privacy-settings
|
|
37
|
+
this.updatePrivacySettings = makeOperation(http, "api/settings", "PUT", "privacy-settings");
|
|
38
|
+
// PUT api/settings/update-settings
|
|
39
|
+
this.updateSettings = makeOperation(http, "api/settings", "PUT", "update-settings");
|
|
40
|
+
// PUT api/settings/subscription-settings
|
|
41
|
+
this.updateSubscriptionSettings = makeOperation(http, "api/settings", "PUT", "subscription-settings");
|
|
42
|
+
// PUT api/settings/system-settings
|
|
43
|
+
this.updateSystemSettings = makeOperation(http, "api/settings", "PUT", "system-settings");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = { SettingsModule };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class ShareModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/share/share-holon/{holonId:guid}/{avatarId:guid} */
|
|
8
|
+
shareHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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/share (source: ONODE WebAPI ShareController.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 ShareModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/share/share-holon/{holonId:guid}/{avatarId:guid}
|
|
19
|
+
this.shareHolon = makeOperation(http, "api/share", "GET", "share-holon/{holonId:guid}/{avatarId:guid}");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = { ShareModule };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class SocialModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/social/registered-providers */
|
|
8
|
+
getRegisteredProviders(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/social/social-feed */
|
|
11
|
+
getSocialFeed(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/social/register-social-provider */
|
|
14
|
+
registerSocialProvider(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/social/share-holon */
|
|
17
|
+
shareHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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/social (source: ONODE WebAPI SocialController.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 SocialModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/social/registered-providers
|
|
19
|
+
this.getRegisteredProviders = makeOperation(http, "api/social", "GET", "registered-providers");
|
|
20
|
+
// GET api/social/social-feed
|
|
21
|
+
this.getSocialFeed = makeOperation(http, "api/social", "GET", "social-feed");
|
|
22
|
+
// POST api/social/register-social-provider
|
|
23
|
+
this.registerSocialProvider = makeOperation(http, "api/social", "POST", "register-social-provider");
|
|
24
|
+
// POST api/social/share-holon
|
|
25
|
+
this.shareHolon = makeOperation(http, "api/social", "POST", "share-holon");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports = { SocialModule };
|
|
@@ -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 SolanaModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/solana/ */
|
|
8
|
+
mintNft(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/solana/ */
|
|
11
|
+
sendTransaction(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/solana (source: ONODE WebAPI SolanaController.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 SolanaModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/solana/Mint
|
|
19
|
+
this.mintNft = makeOperation(http, "api/solana", "POST", "Mint");
|
|
20
|
+
// POST api/solana/Send
|
|
21
|
+
this.sendTransaction = makeOperation(http, "api/solana", "POST", "Send");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = { SolanaModule };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class StatsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/stats/chat-stats/{avatarId} */
|
|
8
|
+
getChatStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/stats/gift-stats/{avatarId} */
|
|
11
|
+
getGiftStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/stats/karma-history/{avatarId} */
|
|
14
|
+
getKarmaHistory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/stats/karma-stats/{avatarId} */
|
|
17
|
+
getKarmaStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/stats/key-stats/{avatarId} */
|
|
20
|
+
getKeyStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/stats/leaderboard-stats/{avatarId} */
|
|
23
|
+
getLeaderboardStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/stats/get-stats-for-current-logged-in-avatar */
|
|
26
|
+
getStatsForCurrentLoggedInAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/stats/system-stats */
|
|
29
|
+
getSystemStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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/stats (source: ONODE WebAPI StatsController.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 StatsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/stats/chat-stats/{avatarId}
|
|
19
|
+
this.getChatStats = makeOperation(http, "api/stats", "GET", "chat-stats/{avatarId}");
|
|
20
|
+
// GET api/stats/gift-stats/{avatarId}
|
|
21
|
+
this.getGiftStats = makeOperation(http, "api/stats", "GET", "gift-stats/{avatarId}");
|
|
22
|
+
// GET api/stats/karma-history/{avatarId}
|
|
23
|
+
this.getKarmaHistory = makeOperation(http, "api/stats", "GET", "karma-history/{avatarId}");
|
|
24
|
+
// GET api/stats/karma-stats/{avatarId}
|
|
25
|
+
this.getKarmaStats = makeOperation(http, "api/stats", "GET", "karma-stats/{avatarId}");
|
|
26
|
+
// GET api/stats/key-stats/{avatarId}
|
|
27
|
+
this.getKeyStats = makeOperation(http, "api/stats", "GET", "key-stats/{avatarId}");
|
|
28
|
+
// GET api/stats/leaderboard-stats/{avatarId}
|
|
29
|
+
this.getLeaderboardStats = makeOperation(http, "api/stats", "GET", "leaderboard-stats/{avatarId}");
|
|
30
|
+
// GET api/stats/get-stats-for-current-logged-in-avatar
|
|
31
|
+
this.getStatsForCurrentLoggedInAvatar = makeOperation(http, "api/stats", "GET", "get-stats-for-current-logged-in-avatar");
|
|
32
|
+
// GET api/stats/system-stats
|
|
33
|
+
this.getSystemStats = makeOperation(http, "api/stats", "GET", "system-stats");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
module.exports = { StatsModule };
|
|
@@ -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 SubscriptionModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/subscription/check-hyperdrive-quota */
|
|
8
|
+
checkHyperDriveQuota(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/subscription/checkout/session */
|
|
11
|
+
createCheckoutSession(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/subscription/hyperdrive-usage */
|
|
14
|
+
getHyperDriveUsage(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/subscription/orders/me */
|
|
17
|
+
getMyOrders(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/subscription/subscriptions/me */
|
|
20
|
+
getMySubscriptions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/subscription/plans */
|
|
23
|
+
getPlans(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/subscription/usage */
|
|
26
|
+
getUsage(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** POST api/subscription/webhooks/stripe */
|
|
29
|
+
stripeWebhook(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** POST api/subscription/toggle-pay-as-you-go */
|
|
32
|
+
togglePayAsYouGo(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** POST api/subscription/update-hyperdrive-config */
|
|
35
|
+
updateHyperDriveConfig(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/subscription (source: ONODE WebAPI SubscriptionController.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 SubscriptionModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/subscription/check-hyperdrive-quota
|
|
19
|
+
this.checkHyperDriveQuota = makeOperation(http, "api/subscription", "POST", "check-hyperdrive-quota");
|
|
20
|
+
// POST api/subscription/checkout/session
|
|
21
|
+
this.createCheckoutSession = makeOperation(http, "api/subscription", "POST", "checkout/session");
|
|
22
|
+
// GET api/subscription/hyperdrive-usage
|
|
23
|
+
this.getHyperDriveUsage = makeOperation(http, "api/subscription", "GET", "hyperdrive-usage");
|
|
24
|
+
// GET api/subscription/orders/me
|
|
25
|
+
this.getMyOrders = makeOperation(http, "api/subscription", "GET", "orders/me");
|
|
26
|
+
// GET api/subscription/subscriptions/me
|
|
27
|
+
this.getMySubscriptions = makeOperation(http, "api/subscription", "GET", "subscriptions/me");
|
|
28
|
+
// GET api/subscription/plans
|
|
29
|
+
this.getPlans = makeOperation(http, "api/subscription", "GET", "plans");
|
|
30
|
+
// GET api/subscription/usage
|
|
31
|
+
this.getUsage = makeOperation(http, "api/subscription", "GET", "usage");
|
|
32
|
+
// POST api/subscription/webhooks/stripe
|
|
33
|
+
this.stripeWebhook = makeOperation(http, "api/subscription", "POST", "webhooks/stripe");
|
|
34
|
+
// POST api/subscription/toggle-pay-as-you-go
|
|
35
|
+
this.togglePayAsYouGo = makeOperation(http, "api/subscription", "POST", "toggle-pay-as-you-go");
|
|
36
|
+
// POST api/subscription/update-hyperdrive-config
|
|
37
|
+
this.updateHyperDriveConfig = makeOperation(http, "api/subscription", "POST", "update-hyperdrive-config");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = { SubscriptionModule };
|
|
@@ -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/telos (source: ONODE WebAPI TelosController.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 TelosModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/telos/get-avatar-for-telos-account-name
|
|
19
|
+
this.getAvatarForTelosAccountName = makeOperation(http, "api/telos", "GET", "get-avatar-for-telos-account-name");
|
|
20
|
+
// GET api/telos/get-avatar-id-for-telos-account-name
|
|
21
|
+
this.getAvatarIdForTelosAccountName = makeOperation(http, "api/telos", "GET", "get-avatar-id-for-telos-account-name");
|
|
22
|
+
// GET api/telos/get-balance-for-avatar
|
|
23
|
+
this.getBalanceForAvatar = makeOperation(http, "api/telos", "GET", "get-balance-for-avatar");
|
|
24
|
+
// GET api/telos/get-balance-for-telos-account
|
|
25
|
+
this.getBalanceForTelosAccount = makeOperation(http, "api/telos", "GET", "get-balance-for-telos-account");
|
|
26
|
+
// GET api/telos/get-telos-accoun-private-key-for-avatar
|
|
27
|
+
this.getTelosAccounPrivateKeyForAvatar = makeOperation(http, "api/telos", "GET", "get-telos-accoun-private-key-for-avatar");
|
|
28
|
+
// GET api/telos/get-telos-account
|
|
29
|
+
this.getTelosAccount = makeOperation(http, "api/telos", "GET", "get-telos-account");
|
|
30
|
+
// GET api/telos/get-telos-account-for-avatar
|
|
31
|
+
this.getTelosAccountForAvatar = makeOperation(http, "api/telos", "GET", "get-telos-account-for-avatar");
|
|
32
|
+
// GET api/telos/get-telos-account-names-for-avatar
|
|
33
|
+
this.getTelosAccountNameForAvatar = makeOperation(http, "api/telos", "GET", "get-telos-account-names-for-avatar");
|
|
34
|
+
// POST api/telos/{avatarId}/{telosAccountName}
|
|
35
|
+
this.linkTelosAccountToAvatar = makeOperation(http, "api/telos", "POST", "{avatarId}/{telosAccountName}");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
module.exports = { TelosModule };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class VideoModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/video/end-call/{callId} */
|
|
8
|
+
endVideoCall(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/video/join-call/{callId} */
|
|
11
|
+
joinVideoCall(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/video/start-video-call */
|
|
14
|
+
startVideoCall(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
}
|
|
@@ -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/video (source: ONODE WebAPI VideoController.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 VideoModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/video/end-call/{callId}
|
|
19
|
+
this.endVideoCall = makeOperation(http, "api/video", "POST", "end-call/{callId}");
|
|
20
|
+
// POST api/video/join-call/{callId}
|
|
21
|
+
this.joinVideoCall = makeOperation(http, "api/video", "POST", "join-call/{callId}");
|
|
22
|
+
// POST api/video/start-video-call
|
|
23
|
+
this.startVideoCall = makeOperation(http, "api/video", "POST", "start-video-call");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = { VideoModule };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class WalletModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/wallet/avatar/email/{email}/create-wallet */
|
|
8
|
+
createWalletForAvatarByEmailAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/wallet/avatar/{avatarId}/create-wallet */
|
|
11
|
+
createWalletForAvatarByIdAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/wallet/avatar/username/{username}/create-wallet */
|
|
14
|
+
createWalletForAvatarByUsernameAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/wallet/avatar/email/{email}/default-wallet */
|
|
17
|
+
getAvatarDefaultWalletByEmailAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/wallet/avatar/{id}/default-wallet */
|
|
20
|
+
getAvatarDefaultWalletByIdAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/wallet/avatar/username/{username}/default-wallet/{showOnlyDefault}/{decryptPrivateKeys} */
|
|
23
|
+
getAvatarDefaultWalletByUsernameAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/wallet/avatar/{avatarId}/portfolio/value */
|
|
26
|
+
getPortfolioValueAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/wallet/supported-chains */
|
|
29
|
+
getSupportedChains(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** GET api/wallet/avatar/{avatarId}/wallet/{walletId}/analytics */
|
|
32
|
+
getWalletAnalyticsAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** GET api/wallet/avatar/{avatarId}/wallets/chain/{chain} */
|
|
35
|
+
getWalletsByChainAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
|
|
37
|
+
/** GET api/wallet/find-wallet */
|
|
38
|
+
getWalletThatPublicKeyBelongsTo(args?: Record<string, any>): Promise<OASISResponse>;
|
|
39
|
+
|
|
40
|
+
/** GET api/wallet/avatar/{avatarId}/wallet/{walletId}/tokens */
|
|
41
|
+
getWalletTokensAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
42
|
+
|
|
43
|
+
/** POST api/wallet/avatar/email/{email}/import/private-key */
|
|
44
|
+
importWalletUsingPrivateKeyByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
45
|
+
|
|
46
|
+
/** POST api/wallet/avatar/{avatarId}/import/private-key */
|
|
47
|
+
importWalletUsingPrivateKeyById(args?: Record<string, any>): Promise<OASISResponse>;
|
|
48
|
+
|
|
49
|
+
/** POST api/wallet/avatar/username/{username}/import/private-key */
|
|
50
|
+
importWalletUsingPrivateKeyByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
51
|
+
|
|
52
|
+
/** POST api/wallet/avatar/email/{email}/import/public-key */
|
|
53
|
+
importWalletUsingPublicKeyByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
54
|
+
|
|
55
|
+
/** POST api/wallet/avatar/{avatarId}/import/public-key */
|
|
56
|
+
importWalletUsingPublicKeyById(args?: Record<string, any>): Promise<OASISResponse>;
|
|
57
|
+
|
|
58
|
+
/** POST api/wallet/avatar/username/{username}/import/public-key */
|
|
59
|
+
importWalletUsingPublicKeyByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
60
|
+
|
|
61
|
+
/** GET api/wallet/avatar/email/{email}/wallets */
|
|
62
|
+
loadProviderWalletsForAvatarByEmailAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
63
|
+
|
|
64
|
+
/** GET api/wallet/avatar/{id}/wallets/{showOnlyDefault}/{decryptPrivateKeys} */
|
|
65
|
+
loadProviderWalletsForAvatarByIdAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
66
|
+
|
|
67
|
+
/** GET api/wallet/avatar/username/{username}/wallets/{showOnlyDefault}/{decryptPrivateKeys} */
|
|
68
|
+
loadProviderWalletsForAvatarByUsernameAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
69
|
+
|
|
70
|
+
/** POST api/wallet/avatar/email/{email}/wallets */
|
|
71
|
+
saveProviderWalletsForAvatarByEmailAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
72
|
+
|
|
73
|
+
/** POST api/wallet/avatar/{id}/wallets */
|
|
74
|
+
saveProviderWalletsForAvatarByIdAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
75
|
+
|
|
76
|
+
/** POST api/wallet/avatar/username/{username}/wallets */
|
|
77
|
+
saveProviderWalletsForAvatarByUsernameAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
78
|
+
|
|
79
|
+
/** POST api/wallet/send_token */
|
|
80
|
+
sendTokenAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
81
|
+
|
|
82
|
+
/** POST api/wallet/avatar/email/{email}/default-wallet/{walletId} */
|
|
83
|
+
setAvatarDefaultWalletByEmailAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
84
|
+
|
|
85
|
+
/** POST api/wallet/avatar/{id}/default-wallet/{walletId} */
|
|
86
|
+
setAvatarDefaultWalletByIdAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
87
|
+
|
|
88
|
+
/** POST api/wallet/avatar/username/{username}/default-wallet/{walletId} */
|
|
89
|
+
setAvatarDefaultWalletByUsernameAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
90
|
+
|
|
91
|
+
/** POST api/wallet/transfer */
|
|
92
|
+
transferBetweenWalletsAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
93
|
+
|
|
94
|
+
/** PUT api/wallet/avatar/email/{email}/wallet/{walletId} */
|
|
95
|
+
updateWalletForAvatarByEmailAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
96
|
+
|
|
97
|
+
/** PUT api/wallet/avatar/{avatarId}/wallet/{walletId} */
|
|
98
|
+
updateWalletForAvatarByIdAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
99
|
+
|
|
100
|
+
/** PUT api/wallet/avatar/username/{username}/wallet/{walletId} */
|
|
101
|
+
updateWalletForAvatarByUsernameAsync(args?: Record<string, any>): Promise<OASISResponse>;
|
|
102
|
+
}
|