@oasisomniverse/web4-api 2.0.0 → 2.0.2
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 +237 -348
- package/docs/auth.md +1 -1
- package/docs/getting-started.md +3 -3
- package/docs/modules/Avatar.md +2 -2
- package/docs/modules/Bridge.md +1 -1
- package/docs/modules/Chat.md +1 -1
- package/docs/modules/Clan.md +1 -1
- package/docs/modules/Competition.md +1 -1
- package/docs/modules/Data.md +1 -1
- package/docs/modules/EOSIO.md +1 -1
- package/docs/modules/Eggs.md +1 -1
- package/docs/modules/Files.md +1 -1
- package/docs/modules/Gifts.md +1 -1
- package/docs/modules/Health.md +1 -1
- package/docs/modules/Holochain.md +1 -1
- package/docs/modules/HyperDrive.md +1 -1
- package/docs/modules/Karma.md +1 -1
- package/docs/modules/Keys.md +4 -4
- package/docs/modules/Map.md +1 -1
- package/docs/modules/Messaging.md +1 -1
- package/docs/modules/Nft.md +1 -1
- package/docs/modules/OLand.md +1 -1
- package/docs/modules/ONET.md +1 -1
- package/docs/modules/ONODE.md +1 -1
- package/docs/modules/Provider.md +1 -1
- package/docs/modules/Search.md +1 -1
- package/docs/modules/Seeds.md +1 -1
- package/docs/modules/Settings.md +1 -1
- package/docs/modules/Share.md +1 -1
- package/docs/modules/Social.md +1 -1
- package/docs/modules/Solana.md +1 -1
- package/docs/modules/Stats.md +1 -1
- package/docs/modules/Subscription.md +1 -1
- package/docs/modules/Video.md +1 -1
- package/docs/modules/Wallet.md +1 -1
- package/package.json +3 -3
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -1,82 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @oasisomniverse/web4-api
|
|
2
2
|
|
|
3
|
-
- [
|
|
3
|
+
- [@oasisomniverse/web4-api](#oasisomniverseweb4-api)
|
|
4
|
+
- [About WEB4](#about-web4)
|
|
4
5
|
- [Previous Versions](#previous-versions)
|
|
5
|
-
- [
|
|
6
|
-
- [Overview](#overview)
|
|
7
|
-
- [Best Of All Worlds](#best-of-all-worlds)
|
|
8
|
-
- [Maximum Interopability/Aggregation](#maximum-interopabilityaggregation)
|
|
9
|
-
- [HOT Swappable Plugin Architecture](#hot-swappable-plugin-architecture)
|
|
10
|
-
- [Full Redundancy/Zero Downtime/Impossible To Shutdown](#full-redundancyzero-downtimeimpossible-to-shutdown)
|
|
11
|
-
- [HTTP REST/gRPC/GraphQL/CLI/Native Endpoints](#http-restgrpcgraphqlclinative-endpoints)
|
|
12
|
-
- [Javascript, Unity & C# Packages](#javascript-unity--c-packages)
|
|
13
|
-
- [Avatar API](#avatar-api)
|
|
14
|
-
- [Karma API](#karma-api)
|
|
15
|
-
- [Full Accountability/Zero Crime/Dark Net Prove](#full-accountabilityzero-crimedark-net-prove)
|
|
16
|
-
- [Data API](#data-api)
|
|
17
|
-
- [Future Prove! Never Need To Learn A New Tech Stack/Language Again](#future-prove-never-need-to-learn-a-new-tech-stacklanguage-again)
|
|
18
|
-
- [SEEDS API](#seeds-api)
|
|
19
|
-
- [Keys/Wallet API](#keyswallet-api)
|
|
20
|
-
- [Works Offline/Local Networks (LAN, Bluetooth, Mesh Networks)](#works-offlinelocal-networks-lan-bluetooth-mesh-networks)
|
|
21
|
-
- [OAPPS - Write Once, Deploy Everywhere](#oapps---write-once-deploy-everywhere)
|
|
22
|
-
- [One API To Rule Them All - The GOD Protocol/API](#one-api-to-rule-them-all---the-god-protocolapi)
|
|
23
|
-
- [Full Smart Contract Interoperability](#full-smart-contract-interoperability)
|
|
24
|
-
- [Powerful Pick n Mix & Plug n Play UI Components](#powerful-pick-n-mix--plug-n-play-ui-components)
|
|
25
|
-
- [WEB/2D/3D/AR/VR/IR/Map/Meta Visusalization](#web2d3darvrirmapmeta-visusalization)
|
|
26
|
-
- [Our World Geo-Location/AR/IR/Map UI (Game Of Games Engine)](#our-world-geo-locationarirmap-ui-game-of-games-engine)
|
|
27
|
-
- [IR (Infinite Reality) Ready](#ir-infinite-reality-ready)
|
|
28
|
-
- [One World Open World MMO (VR) (Game Of Games Engine)](#one-world-open-world-mmo-vr-game-of-games-engine)
|
|
29
|
-
- [XR/IR Unified Interface To The World](#xrir-unified-interface-to-the-world)
|
|
30
|
-
- [ARC/HoloMap/Synergy Engine Integration](#archolomapsynergy-engine-integration)
|
|
31
|
-
- [WEB 5 STAR OASIS Omniverse Interoperable Metaverse Low Code Generator](#web-5-star-oasis-omniverse-interoperable-metaverse-low-code-generator)
|
|
32
|
-
- [AI/Machine Learning Over All Of World's Aggregated Data](#aimachine-learning-over-all-of-worlds-aggregated-data)
|
|
33
|
-
- [Summary](#summary)
|
|
6
|
+
- [About The OASIS Omniverse](#about-the-oasis-omniverse)
|
|
34
7
|
- [Benefits Of Building On The WEB4 OASIS API](#benefits-of-building-on-the-web4-oasis-api)
|
|
35
8
|
- [WEB 4 OASIS API Packages](#web-4-oasis-api-packages)
|
|
36
9
|
- [Javascript](#javascript)
|
|
37
10
|
- [Unity](#unity)
|
|
38
|
-
- [C](#c)
|
|
11
|
+
- [C#](#c)
|
|
39
12
|
- [Do You Want To Get Involved?](#do-you-want-to-get-involved)
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- [getKarmaAkashicRecordsForAvatar](#getkarmaakashicrecordsforavatar)
|
|
66
|
-
- [Holochain](#holochain)
|
|
67
|
-
- [getHolochainAgentIdForAvatar](#getholochainagentidforavatar)
|
|
68
|
-
- [getHolochainAgentPrivateKeyForAvatar](#getholochainagentprivatekeyforavatar)
|
|
69
|
-
- [getAvatarIdForHolochainAgentId](#getavataridforholochainagentid)
|
|
70
|
-
- [getHoloFuelBalanceForAgentId](#getholofuelbalanceforagentid)
|
|
71
|
-
- [getHoloFuelBalanceForAvatar](#getholofuelbalanceforavatar)
|
|
72
|
-
- [getHoloFuelBalanceForAvatar](#getholofuelbalanceforavatar-1)
|
|
73
|
-
- [NFT](#nft)
|
|
74
|
-
- [createPurchase](#createpurchase)
|
|
75
|
-
- [getOlandPrice](#getolandprice)
|
|
76
|
-
- [purchaseOLAND](#purchaseoland)
|
|
77
|
-
- [Solona](#solona)
|
|
78
|
-
- [mint](#mint)
|
|
79
|
-
- [exchange](#exchange)
|
|
13
|
+
- [Install](#install)
|
|
14
|
+
- [Quick start](#quick-start)
|
|
15
|
+
- [Calling any endpoint](#calling-any-endpoint)
|
|
16
|
+
- [Auth & sessions](#auth--sessions)
|
|
17
|
+
- [Module examples](#module-examples)
|
|
18
|
+
- [Module reference](#module-reference)
|
|
19
|
+
- [Regenerating](#regenerating)
|
|
20
|
+
- [Testing](#testing)
|
|
21
|
+
- [Full documentation](#full-documentation)
|
|
22
|
+
|
|
23
|
+
Isomorphic (Node 18+ and browser) JavaScript/TypeScript-friendly client for the
|
|
24
|
+
**WEB4 OASIS API** - full coverage of the OASIS ONODE WebAPI: Avatar, Karma,
|
|
25
|
+
Data, Wallet, NFT, Holochain, HyperDrive, Keys, Map, Provider and every other
|
|
26
|
+
controller (32 modules, 483 operations).
|
|
27
|
+
|
|
28
|
+
Zero dependencies. Wraps the global `fetch`. Works the same in Node and the
|
|
29
|
+
browser.
|
|
30
|
+
|
|
31
|
+
## About WEB4
|
|
32
|
+
|
|
33
|
+
> **"One avatar, one karma, every world."**
|
|
34
|
+
|
|
35
|
+
WEB4 is the universal unification layer of the OASIS Omniverse — one avatar, one SSO login and one karma reputation score that works across 40+ blockchains, databases and Web2/Web3 providers, so every world, app and game you build shares the same identity, reputation and wallet. No more silos, no more walled gardens, no single point of failure.
|
|
36
|
+
|
|
37
|
+
WEB4 is the foundation everything else in the ecosystem is built on top of — see the full **[OASIS Omniverse](https://oasisomniverse.one)** (WEB4 through WEB10) for the bigger picture.
|
|
80
38
|
|
|
81
39
|
## Previous Versions
|
|
82
40
|
|
|
@@ -95,262 +53,43 @@ This package starts at `v2.0.0` rather than `v1.0.0` because it is a continuatio
|
|
|
95
53
|
The current version of this package can be found here:
|
|
96
54
|
https://www.npmjs.com/package/@oasisomniverse/web4-api
|
|
97
55
|
|
|
98
|
-
##
|
|
99
|
-
|
|
100
|
-
This package is for client applications to connect and work with the OASIS API.
|
|
101
|
-
|
|
102
|
-
## Overview
|
|
103
|
-
|
|
104
|
-
The WEB4 OASIS API enables you to integrate your project with everything else (WEB2 & WEB3) such as all blockchains, holochain & much more. It also provides SSO, load balancing, auto failover, auto replication, zero downtime, zero lag, infinite players and much more!
|
|
105
|
-
|
|
106
|
-
Various OASIS API functions and services can be accessed with this API such as Authentication, Karma, Avatars, Data, SEEDS, Wallets/Keys & more...
|
|
107
|
-
|
|
108
|
-
<http://api.oasisplatform.world>
|
|
109
|
-
|
|
110
|
-
This allows you to bridge between all of WEB2 & WEB3 Holochain, IPFS, MongoDB, SQLLite, Neo4j, Solana, Ethereum, EOS & ThreeFold with many more coming soon such as COSMOS, Polkadot, Polygon, SOLID, ActivityPub, Near, Nexus, HIVE, CEPTR Pluggable Protocol, Fediverse, XMPP & many more! :) The majority of these are aimed at building a truly decentralised distributed internet (Web 3.0) and this is also the aim of the OASIS API. If you wish to get involved and help build out any of these providers or any other you would like to see integrated please get in touch here: <https://t.me/ourworldthegamechat>.
|
|
111
|
-
|
|
112
|
-
WEB 4 OASIS API is a fully distributed decentralised fault tolerant load balanced integrated API that runs across the full Internet acting as an abstraction layer over everything and serves as a network of networks. It is unity consciousnes expressed within the technical sphere. [The OASIS API is a global universal API that aims to connect anything to everything](https://github.com/NextGenSoftwareUK/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK#the-universal-api-to-connect-everything-to-everything--no-more-silos-walled-gardens-) to eliminate walled gardens/silos.
|
|
113
|
-
|
|
114
|
-
The core OASIS (Open Advanced Sensory Immersion System) API that powers Our World/One World and manages the central profile/avatar/karma system that other satellite apps/games/sites/services plug into it and share. This allows karma to be earnt in the satellite apps/games by doing good deeds or progressing self help apps for example.
|
|
115
|
-
|
|
116
|
-
### Best Of All Worlds
|
|
117
|
-
|
|
118
|
-
Just like a team of people, different tech has various strengths and weaknesses, by integrating them together so they work as one unified co-ordinated team, you eliminate all weaknesses and then have the best of all worlds, the whole is greater than the sum of the parts. It harnesses the best of each provider so the OASIS uses the strengths of each provider to the maximum and removes all weaknesses, it automatically uses the most appropriate provider or providers for any given use case.
|
|
119
|
-
|
|
120
|
-
### Maximum Interopability/Aggregation
|
|
121
|
-
|
|
122
|
-
One of the core design goals of the OASIS is maximum interoperability (to remove all silos and walled gardens) to the point everything merges into one (the singularity) and also to be super powerful but super easy and intuitive to use.
|
|
123
|
-
|
|
124
|
-
The WEB4 OASIS API connects & Integrates everything (all of WEB 2 & WEB 3) including all blockchains, holochain, IPFS, databases, cloud etc into one fully unified API that is an abstraction layer over everything.
|
|
125
|
-
|
|
126
|
-
The whole point of the OASIS API is to allow everything to be fully interoperable so data can be shared between any provider, the architecture opens the doors for many more use cases like importing and exporting your data between providers, aggregating all your data to remove all silos so better sense making and AI machine learning can be made to analyse and to make predictions, smart contract interoperability, etc
|
|
127
|
-
|
|
128
|
-
### HOT Swappable Plugin Architecture
|
|
129
|
-
|
|
130
|
-
The OASIS API features a HOT Swappable Plugin Architecture meaning any OASIS Provider can be deployed and used at runtime without having to re-compile or deploy a ONODE (OASIS Node).
|
|
131
|
-
|
|
132
|
-
### Full Redundancy/Zero Downtime/Impossible To Shutdown
|
|
133
|
-
|
|
134
|
-
It also allows full data redundancy and for it to be network independent so if one network goes down it can automatically switch to the next fastest node in your area regardless of what network it is on. So it will be impossible to shut the OASIS down, you need to shut the entire Internet down, goodluck with that! ;-)
|
|
135
|
-
|
|
136
|
-
### HTTP REST/gRPC/GraphQL/CLI/Native Endpoints
|
|
137
|
-
|
|
138
|
-
The OASIS API currently has a HTTP REST API, CLI & Native endpoints. gRPC & GraphQL are coming soon...
|
|
139
|
-
|
|
140
|
-
### Javascript, Unity & C# Packages
|
|
141
|
-
|
|
142
|
-
The OASIS API currently has a [Javascript](#javascript), [Unity](#unity) & [C#](#csharp) package, more are coming soon...
|
|
143
|
-
|
|
144
|
-
### Avatar API
|
|
145
|
-
|
|
146
|
-
The OASIS API features a powerful Avatar SSO (Single Sign On) API allowing ONE login across all your sites, games, apps, services, etc across all devices and platforms for your OASIS Avatar where you have FULL control of ALL of your data right down to the individual field level and whether each field is Replicated/Shared (ReadOnly) or Shared (ReadWrite). You no longer need to remember multiple login details, you can have just ONE login (avatar), that follows you everywhere and you have FULL control of. You choose where your data is stored and who has access to it. This avatar is the digital twin of YOU and allows you to earn/lose karma through the Karma API.
|
|
147
|
-
|
|
148
|
-
### Karma API
|
|
149
|
-
|
|
150
|
-
The OASIS API also has a powerful Karma API where your avatar (YOU) can earn and lose karma across any OAPP (OASIS App) that is integrated into the OASIS API (websites, apps, games, services, etc). You can earn karma for picking up litter, recycling, going green, helping people, eating/drinking healthily, improving your self or the enviroment, donating to chairty, volunteering for good causes, planting trees, progressing in self help apps, medidation, yoga, mindfulness, spending time in nature, etc. You lose karma for dropping liter, being abusive online, not eating healthily.
|
|
151
|
-
|
|
152
|
-
This karma is then redeemed for real world goods & services such as for a free smoothie, yoga class, retreat etc.
|
|
153
|
-
|
|
154
|
-
It also unlocks new gifts and super powers for your avatar in the Our World/One World games that plug into the API, they are the first worlds of the new upcoming OASIS Omniverse (network of metaverses).
|
|
155
|
-
|
|
156
|
-
### Full Accountability/Zero Crime/Dark Net Prove
|
|
157
|
-
|
|
158
|
-
The extra benefit of this is that everyone is fully accountable for their actions where their karma & how they earnt/lost it is fully visible to all. There can be no hiding in the OASIS, it makes crime & the dark net impossible!
|
|
159
|
-
|
|
160
|
-
### Data API
|
|
161
|
-
|
|
162
|
-
It also features the powerful [Data API](https://www.ourworldthegame.com/single-post/@oasisomniverse/web4-api-v2-3-1-released-with-new-improved-data-api-and-lots-more) allowing data to be shared between the above providers giving full interoperability. It also has powerful features such as auto-fail over, auto-load balancing and auto-replication across the providers so if one node goes down in your local area it will automatically switch to the next fastest node in your area independent of the network it belongs to, this way the OASIS API never has any downtime and will always be super fast and not reliant on only one network. This also applies for all the other API's such as the Avatar API etc. With unity consciousness the possibilities are limitless!
|
|
163
|
-
|
|
164
|
-
### Future Prove! Never Need To Learn A New Tech Stack/Language Again
|
|
165
|
-
|
|
166
|
-
The OASIS API is very intuitive and easy to use hiding away the complexities of the lower-level networks/protocols/platforms/API's but at the same time gives full power and control to power users who wish to dive deeper into the lower-level tech. This also means you do not need to keep learning new tech/APIs/programming languages etc, from now on you only ever need to use the very intuitive powerful OASIS API and the rest is taken care of for you! Also, even if a newer version of one network/API comes out like Holochain RSM or Ethereum 2, you do not need to do anything to port your app to the latest version, the OASIS will take care of this for you. This saves you valuable time to focus on bringing your idea to life! Happy Days! :)
|
|
167
|
-
|
|
168
|
-
### SEEDS API
|
|
169
|
-
|
|
170
|
-
The OASIS API also has a SEEDS API allowing people to earn karma for donating and paying with Seeds (a new currency based on re-generating the planet) as well as when they invite or join Seeds. Read more here: <https://joinseeds.earth/>
|
|
171
|
-
|
|
172
|
-
### Keys/Wallet API
|
|
173
|
-
|
|
174
|
-
Finally it also features a new powerful Keys/Wallets API, which allows public private keys to be linked to your avatar per provider and private keys are only stored locally. Public keys and the rest of the wallet are stored on any provider (and auto-replicated across providers). Using the Avatar SSO you can also login using any of your public keys linked to your avatar (as well as either your username or email). You can also transfer tokens using any of these 3 so you do not need to ever worry about long meaningless public keys!
|
|
175
|
-
|
|
176
|
-
All of your wallets, bank accounts, PayPal, etc can be linked to your aggregated OASIS Wallet so you can see your full balance of assets and easily transfer between ANY of them with just one cick, gone are the days of having to painfully manage and transfer between mutiple wallets just to get access to your funds!
|
|
56
|
+
## About The OASIS Omniverse
|
|
177
57
|
|
|
178
|
-
|
|
58
|
+
The OASIS (Open Advanced Sensory Immersion System) is the universal interoperability layer connecting all of WEB2 and WEB3 — every blockchain, database, cloud provider and protocol — into one unified, fault-tolerant API. Rather than picking a single tech stack, the OASIS harnesses the best of every provider (auto-failover, auto-load-balancing, auto-replication) so nothing is ever a single point of failure, and hides the complexity behind one intuitive API so you never need to learn a new stack again — even as underlying tech evolves (Ethereum 2, Holochain RSM, etc.), your app keeps working with zero changes.
|
|
179
59
|
|
|
180
|
-
|
|
60
|
+
At its core sits one Avatar with one SSO login and one Karma reputation score that travels with you across every app, game and world built on top of it — full transparency and full control over your own data, right down to the field level.
|
|
181
61
|
|
|
182
|
-
|
|
62
|
+
This is the foundation of the OASIS Omniverse: a network of unified layers, WEB4 (identity & unification) through WEB10 (source), each building on the one below to connect blockchains, metaverses, AI, human consciousness and beyond into a single interoperable whole.
|
|
183
63
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
This same technology works across all of the API's (Avatar, Data, etc) so you can work offline if your connection to the internet goes down and will automatically sync once it goes back online. It even allows you to network over LAN, Bluetooth, Mesh Networks, etc.
|
|
187
|
-
|
|
188
|
-
### OAPPS - Write Once, Deploy Everywhere
|
|
189
|
-
|
|
190
|
-
OAPP's (OASIS Apps) that use the OASIS API can be deployed anywhere across any network, platform, API or protocol. This includes all of WEB2 (clouds, databases, etc), Holochain, every popular blockchain, ActivityPub, IPFS, SOLID & many more... check the growing list of providers supported below.
|
|
191
|
-
|
|
192
|
-
Gone are the days of having to write multiple dApps and having to spend lots of time setting up your dev environment for each one such as the network, wallet, account, etc. The OASIS API can manage all of this for you with one simple to use UI (web, desktop and Unity versions planned). The Unity UI will in fact be Our World and will be the most feature rich through the XR interface.
|
|
193
|
-
|
|
194
|
-
You can also of course fully manage every feature and option through the API itself so you could even write your own UI to it if you so wished.
|
|
195
|
-
|
|
196
|
-
### One API To Rule Them All - The GOD Protocol/API
|
|
197
|
-
|
|
198
|
-
The OASIS API will allow you to connect into everything including e-commerce, trading, security, social networks, blockchains, holochain networks, etc. regardless of where they are running (WEB2 or WEB3/IoT).
|
|
199
|
-
|
|
200
|
-
### Full Smart Contract Interoperability
|
|
201
|
-
|
|
202
|
-
Smart Contracts will be supported across any of the supported providers (network/platform/API/protocol), so you only need to write the contract once for your OAPP and then deploy your OAPP once and it will then take care of deploying and running your app/smart contract across all supported providers (network/platform/API/protocol).
|
|
203
|
-
|
|
204
|
-
### Powerful Pick n Mix & Plug n Play UI Components
|
|
205
|
-
|
|
206
|
-
Soon you will also have a very powerful intuitive UI allowing anyone to build an OAPP through a simple intuitive to use drag n drop interface plugging together the various components (web, unity, unreal, metaverse & more) you need allowing you to focus on your ideas rather than on how to implement them. This will lower the barrier to entry for non-technical people, the perfect low-code solution!
|
|
207
|
-
|
|
208
|
-
### WEB/2D/3D/AR/VR/IR/Map/Meta Visusalization
|
|
209
|
-
|
|
210
|
-
Each OAPP can have a Web, 2D, 3D AR, 3D VR, 3D Map, 3D IR ([Infinite Reality](https://www.ourworldthegame.com/single-post/beyond-xr-is-ir-infinite-reality)), 2D Map & Meta View. You will be able to switch between these at run-time.
|
|
211
|
-
|
|
212
|
-
### Our World Geo-Location/AR/IR/Map UI (Game Of Games Engine)
|
|
213
|
-
|
|
214
|
-
[Our World](http://www.ourworldthegame.com) is the first world in the infinite Omniverse (what comes after Metaverse). Our World also acts as the UI to the OASIS API allowing the various OAPP’s to have a 3D object/2D sprite representation on the 3D map of the world. They can then view meta data about the app as well as launch the app from within Our World (phase 1 of The OASIS you see in Ready Player One). Through the OASIS API people have a full geo-location API allowing them to fully control the 3D map, add quests, routes, sub-games, AR hotspots, and so much more. One possible use case would be Smart Cities amongst many more.
|
|
215
|
-
|
|
216
|
-
[Our World](https://github.com/NextGenSoftwareUK/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK#our-world-overview) is an exciting immersive next generation 3D XR/IR (Infinite Reality) educational game/platform/social network/ecosystem teaching people on how to look after themselves, each other and the planet using the latest cutting-edge technology. It teaches people the importance of real-life face to face connections with human beings and encourages them to get out into nature using Augmented Reality similar to Pokémon Go but on a much more evolved scale. This is our flagship product and is our top priority due to the massive positive impact it will make upon the world...
|
|
217
|
-
|
|
218
|
-
It is the XR/IR Gamification layer of the new interplanetary operating system & the new internet (Web 3.0), which is being built by the elite technical wizards stationed around the world. This will one day replace the current tech giants such as Google, FaceBook, etc and act as the technical layer of the New Earth, which is birthing now. Unlike the current tech giants who's only aim is to ruthlessly maximize profits at the expense of people and the planet (as well as spying, exploitation, censorship & social engineering), our technology is based on true love & unity consciousness where money and profits are not our aim or intention, our aim and intention is to heal the entire planet & human race so we can all live in harmony with each other. It is a 5th dimensional and ascension training platform, teaching people vital life lessons as well as acting as a real-time simulation of the real world.
|
|
219
|
-
|
|
220
|
-
Our World is built on top of the de-centralised, distributed nextgen internet known as Holochain (but bridges to all other WEB2 & WEB3 sites/apps/games through the OASIS API).
|
|
221
|
-
|
|
222
|
-
The first phase of Our World will be a de-centralised distributed XR Gamified 3D Map replacement for Google Maps along with the Avatar/Profile/Karma & OASIS API system. The satellite apps/games will be able to create their own 2D/3D object to appear on the real-time 3D map.
|
|
223
|
-
|
|
224
|
-
[Check out the site](http://www.ourworldthegame.com) for more info.
|
|
225
|
-
|
|
226
|
-
Read another more refined (and updated) summary on the github repo code base for the Our World Smartphone AR Prototype:<br>
|
|
227
|
-
<https://github.com/NextGenSoftwareUK/Our-World-Smartphone-Prototype-AR>
|
|
228
|
-
|
|
229
|
-
### IR (Infinite Reality) Ready
|
|
230
|
-
|
|
231
|
-
IR is what comes after AR, VR & XR. It is where the boundary between real and the virtual become one. More coming soon... ;-)
|
|
232
|
-
|
|
233
|
-
### One World Open World MMO (VR) (Game Of Games Engine)
|
|
234
|
-
|
|
235
|
-
One World is Our World's cousin and is a Open World MMORPG set in the past allowing people to build whatever they can imagine unleashing their FULl creativity & potential! It uses bio-feedback technology allowing you to move objects with your mind with real force powers! :) You can also see other players avatar/chakras in real-time and so much more! You can medidate to make it rain to water your crops or to help your camp fire burn brighter!
|
|
236
|
-
|
|
237
|
-
One World will be the first AAA MMO game and 2D/3D Social Network to run on HoloChain and the Blockchain. It will also be the first to integrate a social network with a MMO game/platform as well as all of these technologies and devices together. As with the rest of the game, it will be leading the way in what can be done with this NextGen Technology for the benefit and upliftment of humanity.
|
|
238
|
-
|
|
239
|
-
More news on this soon...
|
|
240
|
-
|
|
241
|
-
### XR/IR Unified Interface To The World
|
|
242
|
-
|
|
243
|
-
Our World & One World are like the XR/IR Unified Interface into all of these hApps/dAps/Websites/apps/games (this is the Operating System part of it), it's a bit like the XR UI front-end to Holochain/Blockchains/WEB2 where you can view and launch any app/website/game from inside it but they integrate much more deeper than that through the OASIS API/Profile/Avatar/Karma system where they all share the central avatar/profile and can all add/subtract the profiles/avatars karma.
|
|
244
|
-
|
|
245
|
-
Both One World (desktop/console) & Our World (smartphone) players can interact in real-time through time portals and much more...
|
|
246
|
-
|
|
247
|
-
### ARC/HoloMap/Synergy Engine Integration
|
|
248
|
-
|
|
249
|
-
We will be implementing the ARC (Augmented Reality Computer) Membrane allowing the revolutionary next-gen operating system to fully interface & integrate with the 3D Map & Avatar/Karma system as well as render its own 3D interfaces and 2D HUD overlays on top of the map, etc.
|
|
250
|
-
|
|
251
|
-
We will also port HoloMap (previously called Noomap) to Unity and will implement a Synergy Engine allowing people to easily find and match solutions/desires/passions and to also find various solution providers, which again will be fully integrated with the 3D Map & Avatar/Karma system.
|
|
252
|
-
|
|
253
|
-
### WEB 5 STAR OASIS Omniverse Interoperable Metaverse Low Code Generator
|
|
254
|
-
|
|
255
|
-
[The WEB 5 STAR OASIS Omniverse Interoperable Metaverse Low Code Generator](https://github.com/NextGenSoftwareUK/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK#web5-star-odk) is built on top of the OASIS API and aggregates all the worlds data and expresses it within a cyberspace ontology using a cutting edge custom built ORM (Object Relational Mapper) called COSMIC. The STAR Omniverse is both a simulation & game of life and aggregates all metaverses into one fully integrated unified platform. It is also a fully integrated immersive interoperable metaverse Low Code Generator and soooooo much more.... ;-)
|
|
256
|
-
|
|
257
|
-
It connects and integrates all metaverses together through the SSO Avatar/Karma system (part of the OASIS API). It is also a fully interoperable Metaverse Low Code Generator (connecting all WEB 2 and WEB 3 together) through the WEB 4 OASIS API.
|
|
258
|
-
|
|
259
|
-
The STAR ODK, the heart of the OASIS can even compile OAPP's to native code for each platform, provider, network, etc. For example, for Holochain Provider it dynamically generates the low-level Rust code, which acts as the DAL (Data Access Layer). It also dynamically generates the C# code that runs on top of it abstracting away the lower-level complexities and this acts as the BLL (Business Logic Layer). This has the additional benefit that you can now debug your app logic in C#, something you cannot do in rust. It also allows you to have the best of both worlds by giving you access to both rust and C# libraries. The possibilities are endless, time to unleash YOUR full potential!
|
|
260
|
-
|
|
261
|
-
### AI/Machine Learning Over All Of World's Aggregated Data
|
|
262
|
-
|
|
263
|
-
Both WEB 4 & WEB 5 use machine learning AI to analyse all of the worlds data to generate useful insights, predictions & so much more!
|
|
264
|
-
|
|
265
|
-
### Summary
|
|
266
|
-
|
|
267
|
-
To summarize, WEB4 OASIS API aggregates all of the worlds data into a fully unified API to allow better sense making to made, which then feeds into WEB5 STAR, which expresses it in a cyberspace ontology and connects the worlds data to the rest of the COSMOS and Galaxy... ;-)
|
|
64
|
+
👉 See the full ecosystem at **[oasisomniverse.one](https://oasisomniverse.one)**.
|
|
268
65
|
|
|
269
66
|
<a name="web4-oasisapi-benefits"></a>
|
|
270
67
|
|
|
271
68
|
## Benefits Of Building On The WEB4 OASIS API
|
|
272
69
|
|
|
273
|
-
- **Integrate any WEB2 or WEB3 tech into your (web)app without having to learn or worry about new tech stacks/languages
|
|
274
|
-
|
|
275
|
-
- **
|
|
276
|
-
|
|
277
|
-
- **
|
|
278
|
-
|
|
279
|
-
- **
|
|
280
|
-
|
|
281
|
-
- **
|
|
282
|
-
|
|
283
|
-
- **
|
|
284
|
-
|
|
285
|
-
- **
|
|
286
|
-
|
|
287
|
-
- **
|
|
288
|
-
|
|
289
|
-
- **Auto Replication.**
|
|
290
|
-
|
|
291
|
-
- **Best Of All Worlds.**
|
|
292
|
-
|
|
293
|
-
- **Maximum Interopability/Aggregation.**
|
|
294
|
-
|
|
295
|
-
- **HOT Swapable PlugIn Architecture.**
|
|
296
|
-
|
|
297
|
-
- **HTTP REST/gRPC/GraphQL/CLI/Native Endpoints.**
|
|
298
|
-
|
|
299
|
-
- **Javascript, Unity & C# Packages - More Coming...**
|
|
300
|
-
|
|
301
|
-
- **Write Once, Deploy Everywhere Now & Forever.**
|
|
302
|
-
|
|
303
|
-
- **One API To Rule Them All - The GOD Protocol/API.**
|
|
304
|
-
|
|
305
|
-
- **Full Smart Contract Interoperability.**
|
|
306
|
-
|
|
307
|
-
- **AI/Machine Learning Over All Of World's Aggregated Data.**
|
|
308
|
-
|
|
309
|
-
- **Triple Level Quantum Resistant Encryption.**
|
|
310
|
-
|
|
311
|
-
- **Intelligent Key Management/Backups/Redundancy (never lose your keys again!).**
|
|
312
|
-
|
|
313
|
-
- **Full Redundancy/Zero Downtime/Impossible To Shutdown!**
|
|
314
|
-
|
|
315
|
-
- **Zero Lag.**
|
|
316
|
-
|
|
317
|
-
- **Infinite Players Online At Same Time.**
|
|
318
|
-
|
|
319
|
-
- **Decentralised Distributed P2P Networking.**
|
|
320
|
-
|
|
321
|
-
- **Can Work Off-line (will automatically sync once online again).**
|
|
322
|
-
|
|
323
|
-
- **When Offline Can Still Sync And Work Over LAN, Bluetooth, Mesh Networks, etc.**
|
|
324
|
-
|
|
325
|
-
- **Agent Centric (User owns and stores own data).**
|
|
326
|
-
|
|
327
|
-
- **WEB/2D/3D/AR/VR/IR/Map/Meta Visusalization.**
|
|
328
|
-
|
|
329
|
-
- **Our World Geo-Location/AR/IR/Map UI (Game of Games Engine).**
|
|
330
|
-
|
|
331
|
-
- **One World Open World MMO (VR) UI (Game of Games Engine).**
|
|
332
|
-
|
|
333
|
-
- **Powerful Pick n Mix & Plug n Play UI Components.**
|
|
334
|
-
|
|
335
|
-
- **Smart City Ready.**
|
|
336
|
-
|
|
337
|
-
- **Bio-feedback Ready.**
|
|
338
|
-
|
|
339
|
-
- **Synergy Engine Ready.**
|
|
340
|
-
|
|
341
|
-
- **IR (Infinite Reality) Ready.**
|
|
342
|
-
|
|
343
|
-
- **WEB5 Omniverse/Metaverse Ready.**
|
|
344
|
-
|
|
345
|
-
- **Plus Much More!**
|
|
70
|
+
- **Integrate any WEB2 or WEB3 tech into your (web)app without having to learn or worry about new tech stacks/languages.**
|
|
71
|
+
- **The OASIS handles all cross-chain/cross-provider integration for you.**
|
|
72
|
+
- **Future prove — new tech (Ethereum2 etc.) gets added for FREE, so you get free upgrades for life.**
|
|
73
|
+
- **SSO Avatar with a Karma reputation system (full accountability, zero crime, dark-net proof).**
|
|
74
|
+
- **Maximum integration & interoperability, auto load-balancing, auto fail-over, auto replication.**
|
|
75
|
+
- **HOT-swappable plugin architecture. HTTP REST/gRPC/GraphQL/CLI/Native endpoints.**
|
|
76
|
+
- **Javascript, Unity & C# packages — more coming.**
|
|
77
|
+
- **Write once, deploy everywhere, now and forever — the GOD Protocol/API.**
|
|
78
|
+
- **Full smart contract interoperability. AI/machine learning over all of the world's aggregated data.**
|
|
79
|
+
- **Triple-level quantum-resistant encryption & intelligent key management (never lose your keys again).**
|
|
80
|
+
- **Full redundancy/zero downtime — impossible to shut down. Zero lag. Infinite players online at once.**
|
|
81
|
+
- **Decentralised distributed P2P networking — works offline and syncs automatically (even over LAN/Bluetooth/Mesh).**
|
|
82
|
+
- **Agent-centric: you own and store your own data.**
|
|
83
|
+
- **Powers WEB/2D/3D/AR/VR/IR/Map/Meta visualization, Our World & One World (Game of Games Engine).**
|
|
84
|
+
- **Smart City ready. Bio-feedback ready. IR (Infinite Reality) ready. WEB5 Omniverse/Metaverse ready.**
|
|
346
85
|
|
|
347
86
|
Check out more info below:<br><br>
|
|
348
87
|
[The Power Of The OASIS API](https://drive.google.com/file/d/1nnhGpXcprr6kota1Y85HDDKsBfJHN6sn/view?usp=sharing) <br>
|
|
349
88
|
[What Is WEB4 & WEB5 Really?](https://www.ourworldthegame.com/single-post/what-is-web4-web5-really) <br>
|
|
350
|
-
[First Production Release Of The WEB4 OASIS API](https://www.ourworldthegame.com/single-post/first-production-ready-release-of
|
|
89
|
+
[First Production Release Of The WEB4 OASIS API](https://www.ourworldthegame.com/single-post/first-production-ready-release-of-web4-oasis-api-more) <br>
|
|
351
90
|
[Annoucing WEB5 STAR ODK/HDK/COSMIC](https://www.ourworldthegame.com/single-post/announcing-star-odk-hdk-cosmic) <br>
|
|
352
91
|
[STAR ODK/HDK/COSMIC/OASIS API/Our World Update](https://www.ourworldthegame.com/single-post/star-odk-hdk-cosmic-oasis-api-our-world-update) <br>
|
|
353
|
-
[Main WEB4 OASIS API & WEB5 STAR Repo](https://github.com/NextGenSoftwareUK/
|
|
92
|
+
[Main WEB4 OASIS API & WEB5 STAR Repo](https://github.com/NextGenSoftwareUK/OASIS)
|
|
354
93
|
|
|
355
94
|
<a name="web4-oasisapi-packages"></a>
|
|
356
95
|
|
|
@@ -359,7 +98,7 @@ Check out more info below:<br><br>
|
|
|
359
98
|
### Javascript
|
|
360
99
|
|
|
361
100
|
<https://www.npmjs.com/package/@oasisomniverse/web4-api> \
|
|
362
|
-
<https://github.com/NextGenSoftwareUK/OASIS-API-Javascipt-Package>
|
|
101
|
+
<https://github.com/NextGenSoftwareUK/OASIS-API-Javascipt-Package-WEB4>
|
|
363
102
|
|
|
364
103
|
### Unity
|
|
365
104
|
|
|
@@ -367,9 +106,9 @@ Check out more info below:<br><br>
|
|
|
367
106
|
|
|
368
107
|
<a name="csharp"></a>
|
|
369
108
|
|
|
370
|
-
### C
|
|
109
|
+
### C#
|
|
371
110
|
|
|
372
|
-
<https://github.com/NextGenSoftwareUK/
|
|
111
|
+
<https://github.com/NextGenSoftwareUK/OASIS>
|
|
373
112
|
|
|
374
113
|
<a name="get-involved"></a>
|
|
375
114
|
|
|
@@ -386,7 +125,7 @@ We also offer FREE training and apprenticeship program with the NextGen Develope
|
|
|
386
125
|
|
|
387
126
|
We are looking for Web Devs (with any of these: react, angular, vue, js, html, css), Unity Devs & C# Devs.
|
|
388
127
|
|
|
389
|
-
If anyone is interested in developing this game/platform, then we would LOVE to hear from you! 😊 There will be opportunities for people to
|
|
128
|
+
If anyone is interested in developing this game/platform, then we would LOVE to hear from you! 😊 There will be opportunities for people to earn tokens/NFTs (as well as other unique perks such as premium locations in both the geolocation and VR versions, personal or business service spotlights, free lifetime access to all premium paid services, massive karma points (allowing your avatar to progress to more advanced stages in the game unlocking new exciting quests, areas to explore & new special abilities/superpowers) plus lots more!) based on the input they are willing to provide.
|
|
390
129
|
|
|
391
130
|
Thank you and we hope we find interest from people to join us on this exciting incredible journey.
|
|
392
131
|
|
|
@@ -396,46 +135,41 @@ Thank you and we hope we find interest from people to join us on this exciting i
|
|
|
396
135
|
|
|
397
136
|
**Ready to be a hero?**
|
|
398
137
|
|
|
399
|
-
If the answer is YES, then please [proceed to here](https://github.com/NextGenSoftwareUK/
|
|
138
|
+
If the answer is YES, then please [proceed to here](https://github.com/NextGenSoftwareUK/OASIS/wiki/So-You-Want-To-Get-Involved%3F-Ready-To-Be-A-Hero%3F)...
|
|
400
139
|
|
|
401
140
|
<a href="https://drive.google.com/file/d/1b_G08UTALUg4H3jPlBdElZAFvyRcVKj1/view">Dev Requirements To Join The Our World Tribe</a><br>
|
|
402
141
|
<a href="https://drive.google.com/file/d/12pCk20iLw_uA1yIfojcP6WwvyOT4WRiO/view?usp=sharing">The Our World Mission (Summary)</a><br>
|
|
142
|
+
<http://web4.oasisomniverse.one><br>
|
|
143
|
+
<http://api.web4.oasisomniverse.one><br>
|
|
144
|
+
<http://oportal.oasisomniverse.one><br>
|
|
145
|
+
<https://github.com/NextGenSoftwareUK/OASIS><br>
|
|
146
|
+
<http://oasisomniverse.one><br>
|
|
403
147
|
<http://www.ourworldthegame.com><br>
|
|
404
|
-
<http://
|
|
405
|
-
<https://github.com/NextGenSoftwareUK/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK><br>
|
|
406
|
-
<http://www.gofundme.com/ourworldthegame><br>
|
|
148
|
+
<http://www.nextgenworld.co.uk><br>
|
|
407
149
|
|
|
408
|
-
<
|
|
409
|
-
<
|
|
410
|
-
|
|
411
|
-
<https://
|
|
412
|
-
<https://www.
|
|
413
|
-
<https://www.
|
|
414
|
-
<https://www.youtube.com/watch?v=zyVmciqD9rs><br>
|
|
415
|
-
<https://www.youtube.com/watch?v=SB97mvzJiRg&t=3s><br>
|
|
150
|
+
<https://www.npmjs.com/package/@oasisomniverse/web5-api><br>
|
|
151
|
+
<https://www.npmjs.com/package/@oasisomniverse/web6-api><br>
|
|
152
|
+
<https://www.npmjs.com/package/@oasisomniverse/web7-api><br>
|
|
153
|
+
<https://www.npmjs.com/package/@oasisomniverse/web8-api><br>
|
|
154
|
+
<https://www.npmjs.com/package/@oasisomniverse/web9-api><br>
|
|
155
|
+
<https://www.npmjs.com/package/@oasisomniverse/web10-api><br>
|
|
416
156
|
|
|
417
157
|
**TOGETHER WE CAN CREATE A BETTER WORLD**
|
|
418
158
|
|
|
419
159
|
In Love, Light & Hope,<br>
|
|
420
160
|
The Our World Tribe
|
|
421
161
|
|
|
422
|
-
##
|
|
423
|
-
|
|
424
|
-
This is **v2.0.0** - a full rewrite. It is isomorphic (works the same in Node.js 18+
|
|
425
|
-
and in the browser), has zero dependencies (uses the global `fetch`), and covers
|
|
426
|
-
every controller on the OASIS2 ONODE WebAPI - not just Avatar/Karma/Data/NFT
|
|
427
|
-
(32 modules, 485 operations).
|
|
428
|
-
|
|
429
|
-
### Install
|
|
162
|
+
## Install
|
|
430
163
|
|
|
431
164
|
```bash
|
|
432
165
|
npm install @oasisomniverse/web4-api
|
|
433
166
|
```
|
|
434
167
|
|
|
435
|
-
|
|
168
|
+
## Quick start
|
|
436
169
|
|
|
437
170
|
```js
|
|
438
|
-
const { OASISClient } = require('@oasisomniverse/web4-api');
|
|
171
|
+
const { OASISClient } = require('@oasisomniverse/web4-api');
|
|
172
|
+
// or: import { OASISClient } from '@oasisomniverse/web4-api';
|
|
439
173
|
|
|
440
174
|
const oasis = new OASISClient({ baseUrl: 'https://api.oasisweb4.one' });
|
|
441
175
|
|
|
@@ -445,20 +179,175 @@ const { isError, message, session } = await oasis.auth.login({
|
|
|
445
179
|
});
|
|
446
180
|
if (isError) throw new Error(message);
|
|
447
181
|
|
|
448
|
-
|
|
449
|
-
|
|
182
|
+
const { result: karma } = await oasis.karma.getKarmaForAvatar({ avatarId: session.avatarId });
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Calling any endpoint
|
|
186
|
+
|
|
187
|
+
Every controller on the OASIS ONODE WebAPI is reachable as a lowerCamel
|
|
188
|
+
property on the client (`oasis.avatar`, `oasis.karma`, `oasis.data`,
|
|
189
|
+
`oasis.wallet`, `oasis.nft`, `oasis.holochain`, ...). Every generated method
|
|
190
|
+
takes a single args object:
|
|
191
|
+
|
|
192
|
+
- Any key matching a `{token}` in the route template is consumed and
|
|
193
|
+
substituted into the URL (case-insensitive match).
|
|
194
|
+
- Any remaining keys become the query string (GET/DELETE) or JSON body
|
|
195
|
+
(POST/PUT) - **matching the real `[FromQuery]`/`[FromBody]` binding of the
|
|
196
|
+
underlying C# action**, not just the HTTP verb. `endpoints.json` records
|
|
197
|
+
exactly which arg names are query-bound per operation (see
|
|
198
|
+
[`docs/`](./docs/README.md) for the per-method breakdown).
|
|
199
|
+
- When an action's entire body is a single primitive `[FromBody]` parameter,
|
|
200
|
+
the JSON body is that value directly - not an object wrapping it.
|
|
201
|
+
|
|
202
|
+
Every response has the shape:
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
interface OASISResponse<T = any> {
|
|
206
|
+
isError: boolean;
|
|
207
|
+
message: string | null;
|
|
208
|
+
result: T;
|
|
209
|
+
raw: any;
|
|
210
|
+
statusCode: number;
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Auth & sessions
|
|
215
|
+
|
|
216
|
+
`oasis.auth` is a hand-written ergonomic wrapper that manages the SDK's
|
|
217
|
+
`TokenStore` for you so you don't have to think about JWTs.
|
|
218
|
+
|
|
219
|
+
```js
|
|
220
|
+
const loginRes = await oasis.auth.login({ username: 'me@example.com', password: '...' });
|
|
221
|
+
if (loginRes.isError) throw new Error(loginRes.message);
|
|
222
|
+
|
|
223
|
+
console.log(oasis.auth.isAuthenticated()); // true
|
|
224
|
+
console.log(oasis.auth.getSession()); // { avatarId, username, email, jwtToken, ... }
|
|
225
|
+
|
|
226
|
+
await oasis.auth.logout(); // clears the local session
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
If you already have a JWT (e.g. issued by your own backend), set it directly:
|
|
230
|
+
|
|
231
|
+
```js
|
|
232
|
+
oasis.setToken(jwtToken, { avatarId, username });
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Module examples
|
|
236
|
+
|
|
237
|
+
### Avatar (`oasis.avatar`)
|
|
238
|
+
|
|
239
|
+
```js
|
|
240
|
+
const detail = await oasis.avatar.getAvatarDetail({ id: avatarId });
|
|
241
|
+
await oasis.avatar.update({ id: avatarId, username: 'newname' });
|
|
242
|
+
await oasis.avatar.addKarmaToAvatar({ avatarId, karmaGain: 5, karmaSourceTitle: 'Recycling' });
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Karma (`oasis.karma`)
|
|
246
|
+
|
|
247
|
+
```js
|
|
248
|
+
const karma = await oasis.karma.getKarmaForAvatar({ avatarId });
|
|
249
|
+
await oasis.karma.removeKarmaFromAvatar({ avatarId, karmaLoss: 10, karmaSourceTitle: 'Litter' });
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Data (`oasis.data`)
|
|
253
|
+
|
|
254
|
+
```js
|
|
255
|
+
const holon = await oasis.data.loadHolon({ holonId });
|
|
256
|
+
await oasis.data.saveHolon({ /* ...holon fields */ });
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Wallet (`oasis.wallet`)
|
|
260
|
+
|
|
261
|
+
```js
|
|
262
|
+
const wallets = await oasis.wallet.loadProviderWalletsForAvatarByIdAsync({ id: avatarId });
|
|
263
|
+
await oasis.wallet.sendTokenAsync({ /* ...SendTransactionRequest fields */ });
|
|
264
|
+
await oasis.wallet.transferBetweenWalletsAsync({ /* ...TransferRequest fields */ });
|
|
450
265
|
```
|
|
451
266
|
|
|
452
|
-
###
|
|
267
|
+
### NFT (`oasis.nft`)
|
|
268
|
+
|
|
269
|
+
```js
|
|
270
|
+
const nfts = await oasis.nft.loadAllWeb4NFTsForAvatarAsync({ avatarId });
|
|
271
|
+
await oasis.nft.mintNftAsync({ /* ...MintNFTRequest fields */ });
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Holochain (`oasis.holochain`)
|
|
275
|
+
|
|
276
|
+
```js
|
|
277
|
+
const agentIds = await oasis.holochain.getHolochainAgentIdsForAvatar({ avatarId });
|
|
278
|
+
const balance = await oasis.holochain.getHoloFuelBalanceForAvatar({ avatarId });
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Module reference
|
|
282
|
+
|
|
283
|
+
32 modules, 483 operations in total. Full per-method tables live in
|
|
284
|
+
[`docs/`](./docs/README.md).
|
|
285
|
+
|
|
286
|
+
| Client property | Route prefix | Operations |
|
|
287
|
+
| --- | --- | --- |
|
|
288
|
+
| `oasis.avatar` | `api/avatar` | 61 |
|
|
289
|
+
| `oasis.bridge` | `api/v1/bridge` | 7 |
|
|
290
|
+
| `oasis.chat` | `api/chat` | 3 |
|
|
291
|
+
| `oasis.clan` | `api/clan` | 10 |
|
|
292
|
+
| `oasis.competition` | `api/competition` | 9 |
|
|
293
|
+
| `oasis.data` | `api/data` | 10 |
|
|
294
|
+
| `oasis.eOSIO` | `api/eosio` | 9 |
|
|
295
|
+
| `oasis.eggs` | `api/eggs` | 6 |
|
|
296
|
+
| `oasis.files` | `api/files` | 6 |
|
|
297
|
+
| `oasis.gifts` | `api/gifts` | 6 |
|
|
298
|
+
| `oasis.health` | `api/health` | 2 |
|
|
299
|
+
| `oasis.holochain` | `api/holochain` | 7 |
|
|
300
|
+
| `oasis.hyperDrive` | `api/hyperDrive` | 77 |
|
|
301
|
+
| `oasis.karma` | `api/karma` | 12 |
|
|
302
|
+
| `oasis.keys` | `api/keys` | 59 |
|
|
303
|
+
| `oasis.map` | `api/map` | 22 |
|
|
304
|
+
| `oasis.messaging` | `api/messaging` | 6 |
|
|
305
|
+
| `oasis.nft` | `api/nft` | 32 |
|
|
306
|
+
| `oasis.oLand` | `api/oLand` | 7 |
|
|
307
|
+
| `oasis.oNET` | `api/v1/onet` | 11 |
|
|
308
|
+
| `oasis.oNODE` | `api/v1/onode` | 13 |
|
|
309
|
+
| `oasis.provider` | `api/provider` | 31 |
|
|
310
|
+
| `oasis.search` | `api/search` | 1 |
|
|
311
|
+
| `oasis.seeds` | `api/seeds` | 3 |
|
|
312
|
+
| `oasis.settings` | `api/settings` | 13 |
|
|
313
|
+
| `oasis.share` | `api/share` | 1 |
|
|
314
|
+
| `oasis.social` | `api/social` | 4 |
|
|
315
|
+
| `oasis.solana` | `api/solana` | 2 |
|
|
316
|
+
| `oasis.stats` | `api/stats` | 8 |
|
|
317
|
+
| `oasis.subscription` | `api/subscription` | 10 |
|
|
318
|
+
| `oasis.video` | `api/video` | 3 |
|
|
319
|
+
| `oasis.wallet` | `api/wallet` | 32 |
|
|
320
|
+
|
|
321
|
+
See [`docs/README.md`](./docs/README.md) for the full generated reference,
|
|
322
|
+
or [`docs/modules/`](./docs/modules) for per-module method tables with
|
|
323
|
+
parameter and route details.
|
|
324
|
+
|
|
325
|
+
## Regenerating
|
|
326
|
+
|
|
327
|
+
The generated modules, type declarations and docs are produced from
|
|
328
|
+
`endpoints.json` (extracted from the ONODE WebAPI controller source):
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
node scripts/extract-endpoints.js
|
|
332
|
+
node scripts/generate-modules.js # src/modules/*.js + src/modules/index.js
|
|
333
|
+
node scripts/generate-types.js # src/modules/*.d.ts + index.d.ts + src/core/types.d.ts
|
|
334
|
+
node scripts/generate-full-docs.js # docs/README.md + docs/modules/*.md
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
`src/modules/Auth.js` is the one hand-written module (everything else is
|
|
338
|
+
generated) - see [docs/auth.md](./docs/auth.md) for details.
|
|
339
|
+
|
|
340
|
+
## Testing
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
npm test
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## Full documentation
|
|
453
347
|
|
|
454
348
|
- **[docs/getting-started.md](./docs/getting-started.md)** - install, client options, the calling convention, response shape.
|
|
455
349
|
- **[docs/auth.md](./docs/auth.md)** - login/register/logout, session handling in the browser vs. serverless/Node.
|
|
456
|
-
- **[docs/README.md](./docs/README.md)** - full module reference: every one of the 32 modules /
|
|
350
|
+
- **[docs/README.md](./docs/README.md)** - full module reference: every one of the 32 modules / 483 operations, with HTTP verb, route, route params, and an example call for each.
|
|
457
351
|
|
|
458
352
|
Docs are generated from the actual code (`scripts/generate-docs.js` parses
|
|
459
353
|
`src/modules/*.js`), so they can't drift from what's actually implemented.
|
|
460
|
-
After running `node scripts/generate-modules.js` against an updated
|
|
461
|
-
`endpoints.json`, re-run `node scripts/generate-docs.js` to refresh `docs/`.
|
|
462
|
-
|
|
463
|
-
`src/modules/Auth.js` is the one hand-written module (everything else is
|
|
464
|
-
generated) - see [docs/auth.md](./docs/auth.md) for details.
|
package/docs/auth.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Auth & Sessions
|
|
2
2
|
|
|
3
3
|
`oasis.auth` is the one hand-written module in this SDK (everything else is
|
|
4
|
-
generated straight from the
|
|
4
|
+
generated straight from the OASIS controller source - see
|
|
5
5
|
[Module Reference](./README.md#module-reference)). It wraps the generated
|
|
6
6
|
`oasis.avatar.authenticate` / `register` / `revokeToken` calls and manages
|
|
7
7
|
the session/token for you.
|
package/docs/getting-started.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`@oasisomniverse/web4-api` is an isomorphic client for the WEB4 OASIS API - it runs the
|
|
4
4
|
same way in Node.js 18+ and in the browser, has zero dependencies (it uses the
|
|
5
|
-
global `fetch`), and covers every controller on the
|
|
5
|
+
global `fetch`), and covers every controller on the OASIS ONODE WebAPI.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ registration, logout, and how to manage sessions in stateless environments
|
|
|
49
49
|
|
|
50
50
|
## Calling any endpoint
|
|
51
51
|
|
|
52
|
-
Every controller on the
|
|
52
|
+
Every controller on the OASIS WebAPI is exposed as a lowerCamel property on
|
|
53
53
|
the client, e.g. `oasis.avatar`, `oasis.data`, `oasis.karma`, `oasis.nft`,
|
|
54
54
|
`oasis.wallet`, `oasis.map`, `oasis.search`, `oasis.hyperDrive`. See the
|
|
55
55
|
[Module Reference](./README.md#module-reference) for the full list (32
|
|
@@ -126,4 +126,4 @@ endpoint.
|
|
|
126
126
|
|
|
127
127
|
- [Auth & Sessions](./auth.md)
|
|
128
128
|
- [Module Reference](./README.md#module-reference)
|
|
129
|
-
- [Regenerating modules/docs](../README.md#regenerating-module-coverage) when the
|
|
129
|
+
- [Regenerating modules/docs](../README.md#regenerating-module-coverage) when the OASIS API changes
|
package/docs/modules/Avatar.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Avatar — `oasis.avatar`
|
|
2
2
|
|
|
3
|
-
Source controller: [`AvatarController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`AvatarController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/AvatarController.cs)
|
|
4
4
|
Route prefix: `api/avatar`
|
|
5
5
|
61 operation(s).
|
|
6
6
|
|
|
@@ -2427,7 +2427,7 @@ Link's a given telosAccount to the given avatar.
|
|
|
2427
2427
|
|
|
2428
2428
|
**Request**
|
|
2429
2429
|
|
|
2430
|
-
Body type: `LinkProviderKeyToAvatar` _(type definition not found in the
|
|
2430
|
+
Body type: `LinkProviderKeyToAvatar` _(type definition not found in the OASIS source - field list unavailable)_
|
|
2431
2431
|
|
|
2432
2432
|
**Response**
|
|
2433
2433
|
|
package/docs/modules/Bridge.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bridge — `oasis.bridge`
|
|
2
2
|
|
|
3
|
-
Source controller: [`BridgeController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`BridgeController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/BridgeController.cs)
|
|
4
4
|
Route prefix: `api/v1/bridge`
|
|
5
5
|
7 operation(s).
|
|
6
6
|
|
package/docs/modules/Chat.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Chat — `oasis.chat`
|
|
2
2
|
|
|
3
|
-
Source controller: [`ChatController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`ChatController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ChatController.cs)
|
|
4
4
|
Route prefix: `api/chat`
|
|
5
5
|
3 operation(s).
|
|
6
6
|
|
package/docs/modules/Clan.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Clan — `oasis.clan`
|
|
2
2
|
|
|
3
|
-
Source controller: [`ClanController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`ClanController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ClanController.cs)
|
|
4
4
|
Route prefix: `api/clan`
|
|
5
5
|
10 operation(s).
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Competition — `oasis.competition`
|
|
2
2
|
|
|
3
|
-
Source controller: [`CompetitionController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`CompetitionController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/CompetitionController.cs)
|
|
4
4
|
Route prefix: `api/competition`
|
|
5
5
|
9 operation(s).
|
|
6
6
|
|
package/docs/modules/Data.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Data — `oasis.data`
|
|
2
2
|
|
|
3
|
-
Source controller: [`DataController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`DataController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/DataController.cs)
|
|
4
4
|
Route prefix: `api/data`
|
|
5
5
|
10 operation(s).
|
|
6
6
|
|
package/docs/modules/EOSIO.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# EOSIO — `oasis.eOSIO`
|
|
2
2
|
|
|
3
|
-
Source controller: [`EOSIOController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`EOSIOController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/EOSIOController.cs)
|
|
4
4
|
Route prefix: `api/eosio`
|
|
5
5
|
9 operation(s).
|
|
6
6
|
|
package/docs/modules/Eggs.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Eggs — `oasis.eggs`
|
|
2
2
|
|
|
3
|
-
Source controller: [`EggsController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`EggsController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/EggsController.cs)
|
|
4
4
|
Route prefix: `api/eggs`
|
|
5
5
|
6 operation(s).
|
|
6
6
|
|
package/docs/modules/Files.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Files — `oasis.files`
|
|
2
2
|
|
|
3
|
-
Source controller: [`FilesController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`FilesController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/FilesController.cs)
|
|
4
4
|
Route prefix: `api/files`
|
|
5
5
|
6 operation(s).
|
|
6
6
|
|
package/docs/modules/Gifts.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gifts — `oasis.gifts`
|
|
2
2
|
|
|
3
|
-
Source controller: [`GiftsController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`GiftsController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/GiftsController.cs)
|
|
4
4
|
Route prefix: `api/gifts`
|
|
5
5
|
6 operation(s).
|
|
6
6
|
|
package/docs/modules/Health.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Health — `oasis.health`
|
|
2
2
|
|
|
3
|
-
Source controller: [`HealthController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`HealthController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/HealthController.cs)
|
|
4
4
|
Route prefix: `api/health`
|
|
5
5
|
2 operation(s).
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Holochain — `oasis.holochain`
|
|
2
2
|
|
|
3
|
-
Source controller: [`HolochainController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`HolochainController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/HolochainController.cs)
|
|
4
4
|
Route prefix: `api/holochain`
|
|
5
5
|
7 operation(s).
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# HyperDrive — `oasis.hyperDrive`
|
|
2
2
|
|
|
3
|
-
Source controller: [`HyperDriveController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`HyperDriveController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/HyperDriveController.cs)
|
|
4
4
|
Route prefix: `api/hyperDrive`
|
|
5
5
|
77 operation(s).
|
|
6
6
|
|
package/docs/modules/Karma.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Karma — `oasis.karma`
|
|
2
2
|
|
|
3
|
-
Source controller: [`KarmaController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`KarmaController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/KarmaController.cs)
|
|
4
4
|
Route prefix: `api/karma`
|
|
5
5
|
12 operation(s).
|
|
6
6
|
|
package/docs/modules/Keys.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Keys — `oasis.keys`
|
|
2
2
|
|
|
3
|
-
Source controller: [`KeysController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`KeysController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/KeysController.cs)
|
|
4
4
|
Route prefix: `api/keys`
|
|
5
5
|
59 operation(s).
|
|
6
6
|
|
|
@@ -509,7 +509,7 @@ No request body.
|
|
|
509
509
|
|
|
510
510
|
Standard `OASISResult` envelope (see top of this page) with:
|
|
511
511
|
|
|
512
|
-
`result` type: `IKeyPairAndWallet` _(type definition not found in the
|
|
512
|
+
`result` type: `IKeyPairAndWallet` _(type definition not found in the OASIS source - field list unavailable)_
|
|
513
513
|
|
|
514
514
|
**Example**
|
|
515
515
|
|
|
@@ -763,7 +763,7 @@ No request body.
|
|
|
763
763
|
|
|
764
764
|
Standard `OASISResult` envelope (see top of this page) with:
|
|
765
765
|
|
|
766
|
-
`result` type: `IKeyPairAndWallet` _(type definition not found in the
|
|
766
|
+
`result` type: `IKeyPairAndWallet` _(type definition not found in the OASIS source - field list unavailable)_
|
|
767
767
|
|
|
768
768
|
**Example**
|
|
769
769
|
|
|
@@ -3176,7 +3176,7 @@ Link's a given telosAccount to the given avatar.
|
|
|
3176
3176
|
|
|
3177
3177
|
**Request**
|
|
3178
3178
|
|
|
3179
|
-
Body type: `LinkProviderKeyToAvatar` _(type definition not found in the
|
|
3179
|
+
Body type: `LinkProviderKeyToAvatar` _(type definition not found in the OASIS source - field list unavailable)_
|
|
3180
3180
|
|
|
3181
3181
|
**Response**
|
|
3182
3182
|
|
package/docs/modules/Map.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Map — `oasis.map`
|
|
2
2
|
|
|
3
|
-
Source controller: [`MapController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`MapController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/MapController.cs)
|
|
4
4
|
Route prefix: `api/map`
|
|
5
5
|
22 operation(s).
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Messaging — `oasis.messaging`
|
|
2
2
|
|
|
3
|
-
Source controller: [`MessagingController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`MessagingController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/MessagingController.cs)
|
|
4
4
|
Route prefix: `api/messaging`
|
|
5
5
|
6 operation(s).
|
|
6
6
|
|
package/docs/modules/Nft.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Nft — `oasis.nft`
|
|
2
2
|
|
|
3
|
-
Source controller: [`NftController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`NftController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/NftController.cs)
|
|
4
4
|
Route prefix: `api/nft`
|
|
5
5
|
32 operation(s).
|
|
6
6
|
|
package/docs/modules/OLand.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OLand — `oasis.oLand`
|
|
2
2
|
|
|
3
|
-
Source controller: [`OLandController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`OLandController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/OLandController.cs)
|
|
4
4
|
Route prefix: `api/oLand`
|
|
5
5
|
7 operation(s).
|
|
6
6
|
|
package/docs/modules/ONET.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ONET — `oasis.oNET`
|
|
2
2
|
|
|
3
|
-
Source controller: [`ONETController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`ONETController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ONETController.cs)
|
|
4
4
|
Route prefix: `api/v1/onet`
|
|
5
5
|
11 operation(s).
|
|
6
6
|
|
package/docs/modules/ONODE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ONODE — `oasis.oNODE`
|
|
2
2
|
|
|
3
|
-
Source controller: [`ONODEController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`ONODEController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ONODEController.cs)
|
|
4
4
|
Route prefix: `api/v1/onode`
|
|
5
5
|
13 operation(s).
|
|
6
6
|
|
package/docs/modules/Provider.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Provider — `oasis.provider`
|
|
2
2
|
|
|
3
|
-
Source controller: [`ProviderController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`ProviderController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ProviderController.cs)
|
|
4
4
|
Route prefix: `api/provider`
|
|
5
5
|
31 operation(s).
|
|
6
6
|
|
package/docs/modules/Search.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Search — `oasis.search`
|
|
2
2
|
|
|
3
|
-
Source controller: [`SearchController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`SearchController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SearchController.cs)
|
|
4
4
|
Route prefix: `api/search`
|
|
5
5
|
1 operation(s).
|
|
6
6
|
|
package/docs/modules/Seeds.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Seeds — `oasis.seeds`
|
|
2
2
|
|
|
3
|
-
Source controller: [`SeedsController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`SeedsController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SeedsController.cs)
|
|
4
4
|
Route prefix: `api/seeds`
|
|
5
5
|
3 operation(s).
|
|
6
6
|
|
package/docs/modules/Settings.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Settings — `oasis.settings`
|
|
2
2
|
|
|
3
|
-
Source controller: [`SettingsController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`SettingsController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SettingsController.cs)
|
|
4
4
|
Route prefix: `api/settings`
|
|
5
5
|
13 operation(s).
|
|
6
6
|
|
package/docs/modules/Share.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Share — `oasis.share`
|
|
2
2
|
|
|
3
|
-
Source controller: [`ShareController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`ShareController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/ShareController.cs)
|
|
4
4
|
Route prefix: `api/share`
|
|
5
5
|
1 operation(s).
|
|
6
6
|
|
package/docs/modules/Social.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Social — `oasis.social`
|
|
2
2
|
|
|
3
|
-
Source controller: [`SocialController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`SocialController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SocialController.cs)
|
|
4
4
|
Route prefix: `api/social`
|
|
5
5
|
4 operation(s).
|
|
6
6
|
|
package/docs/modules/Solana.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Solana — `oasis.solana`
|
|
2
2
|
|
|
3
|
-
Source controller: [`SolanaController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`SolanaController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SolanaController.cs)
|
|
4
4
|
Route prefix: `api/solana`
|
|
5
5
|
2 operation(s).
|
|
6
6
|
|
package/docs/modules/Stats.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Stats — `oasis.stats`
|
|
2
2
|
|
|
3
|
-
Source controller: [`StatsController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`StatsController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/StatsController.cs)
|
|
4
4
|
Route prefix: `api/stats`
|
|
5
5
|
8 operation(s).
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Subscription — `oasis.subscription`
|
|
2
2
|
|
|
3
|
-
Source controller: [`SubscriptionController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`SubscriptionController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/SubscriptionController.cs)
|
|
4
4
|
Route prefix: `api/subscription`
|
|
5
5
|
10 operation(s).
|
|
6
6
|
|
package/docs/modules/Video.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Video — `oasis.video`
|
|
2
2
|
|
|
3
|
-
Source controller: [`VideoController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`VideoController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/VideoController.cs)
|
|
4
4
|
Route prefix: `api/video`
|
|
5
5
|
3 operation(s).
|
|
6
6
|
|
package/docs/modules/Wallet.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Wallet — `oasis.wallet`
|
|
2
2
|
|
|
3
|
-
Source controller: [`WalletController.cs`](https://github.com/NextGenSoftwareUK/
|
|
3
|
+
Source controller: [`WalletController.cs`](https://github.com/NextGenSoftwareUK/OASIS/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/WalletController.cs)
|
|
4
4
|
Route prefix: `api/wallet`
|
|
5
5
|
32 operation(s).
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oasisomniverse/web4-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"publishConfig": { "access": "public" },
|
|
5
|
-
"description": "Isomorphic (Node + browser) JavaScript/TypeScript-friendly client for the WEB4 OASIS API - full coverage of the
|
|
5
|
+
"description": "Isomorphic (Node + browser) JavaScript/TypeScript-friendly client for the WEB4 OASIS API - full coverage of the OASIS ONODE WebAPI (Avatar, Data, Karma, NFT, Wallet, Map, Search, HyperDrive, and more).",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "index.mjs",
|
|
8
8
|
"types": "index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "https://github.com/NextGenSoftwareUK/OASIS-API-Javascipt-Package.git"
|
|
35
35
|
},
|
|
36
|
-
"homepage": "https://github.com/NextGenSoftwareUK/
|
|
36
|
+
"homepage": "https://github.com/NextGenSoftwareUK/OASIS#readme",
|
|
37
37
|
"author": "NextGen Software Ltd",
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"keywords": [
|
package/src/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const { AuthModule } = require('./modules/Auth');
|
|
|
13
13
|
* await oasis.auth.login({ username: 'me@example.com', password: '...' });
|
|
14
14
|
* const karma = await oasis.karma.getKarmaForAvatar({ avatarId: oasis.auth.getSession().avatarId });
|
|
15
15
|
*
|
|
16
|
-
* Every controller on the
|
|
16
|
+
* Every controller on the OASIS ONODE WebAPI is reachable as a lowerCamel
|
|
17
17
|
* property (oasis.avatar, oasis.data, oasis.karma, oasis.nft, oasis.wallet,
|
|
18
18
|
* oasis.hyperDrive, oasis.map, oasis.search, ...). Generated methods take a
|
|
19
19
|
* single args object; route template tokens (e.g. {id}) are consumed from it
|