forked from Mirrors/doipjs
Update enums
This commit is contained in:
parent
f4308fb79d
commit
3702764aa6
1 changed files with 25 additions and 13 deletions
38
src/enums.js
38
src/enums.js
|
@ -13,35 +13,47 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
const proofAccess = {
|
||||
const Fetcher = {
|
||||
HTTP: 'http',
|
||||
DNS: 'dns',
|
||||
IRC: 'irc',
|
||||
XMPP: 'xmpp',
|
||||
MATRIX: 'matrix',
|
||||
GITLAB: 'gitlab',
|
||||
TWITTER: 'twitter',
|
||||
}
|
||||
Object.freeze(Fetcher)
|
||||
|
||||
const ProofAccess = {
|
||||
GENERIC: 0,
|
||||
NOCORS: 1,
|
||||
GRANTED: 2,
|
||||
SERVER: 3
|
||||
SERVER: 3,
|
||||
}
|
||||
Object.freeze(proofAccess)
|
||||
Object.freeze(ProofAccess)
|
||||
|
||||
const proofFormat = {
|
||||
const ProofFormat = {
|
||||
JSON: 0,
|
||||
TEXT: 1,
|
||||
}
|
||||
Object.freeze(proofFormat)
|
||||
Object.freeze(ProofFormat)
|
||||
|
||||
const claimFormat = {
|
||||
const ClaimFormat = {
|
||||
URI: 0,
|
||||
FINGERPRINT: 1,
|
||||
MESSAGE: 2,
|
||||
}
|
||||
Object.freeze(claimFormat)
|
||||
Object.freeze(ClaimFormat)
|
||||
|
||||
const claimRelation = {
|
||||
const ClaimRelation = {
|
||||
CONTAINS: 0,
|
||||
EQUALS: 1,
|
||||
ONEOF: 2,
|
||||
}
|
||||
Object.freeze(claimRelation)
|
||||
Object.freeze(ClaimRelation)
|
||||
|
||||
exports.proofAccess = proofAccess
|
||||
exports.proofFormat = proofFormat
|
||||
exports.claimFormat = claimFormat
|
||||
exports.claimRelation = claimRelation
|
||||
exports.Fetcher = Fetcher
|
||||
exports.ProofAccess = ProofAccess
|
||||
exports.ProofFormat = ProofFormat
|
||||
exports.ClaimFormat = ClaimFormat
|
||||
exports.ClaimRelation = ClaimRelation
|
Loading…
Reference in a new issue