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
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
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,
|
GENERIC: 0,
|
||||||
NOCORS: 1,
|
NOCORS: 1,
|
||||||
GRANTED: 2,
|
GRANTED: 2,
|
||||||
SERVER: 3
|
SERVER: 3,
|
||||||
}
|
}
|
||||||
Object.freeze(proofAccess)
|
Object.freeze(ProofAccess)
|
||||||
|
|
||||||
const proofFormat = {
|
const ProofFormat = {
|
||||||
JSON: 0,
|
JSON: 0,
|
||||||
TEXT: 1,
|
TEXT: 1,
|
||||||
}
|
}
|
||||||
Object.freeze(proofFormat)
|
Object.freeze(ProofFormat)
|
||||||
|
|
||||||
const claimFormat = {
|
const ClaimFormat = {
|
||||||
URI: 0,
|
URI: 0,
|
||||||
FINGERPRINT: 1,
|
FINGERPRINT: 1,
|
||||||
MESSAGE: 2,
|
MESSAGE: 2,
|
||||||
}
|
}
|
||||||
Object.freeze(claimFormat)
|
Object.freeze(ClaimFormat)
|
||||||
|
|
||||||
const claimRelation = {
|
const ClaimRelation = {
|
||||||
CONTAINS: 0,
|
CONTAINS: 0,
|
||||||
EQUALS: 1,
|
EQUALS: 1,
|
||||||
ONEOF: 2,
|
ONEOF: 2,
|
||||||
}
|
}
|
||||||
Object.freeze(claimRelation)
|
Object.freeze(ClaimRelation)
|
||||||
|
|
||||||
exports.proofAccess = proofAccess
|
exports.Fetcher = Fetcher
|
||||||
exports.proofFormat = proofFormat
|
exports.ProofAccess = ProofAccess
|
||||||
exports.claimFormat = claimFormat
|
exports.ProofFormat = ProofFormat
|
||||||
exports.claimRelation = claimRelation
|
exports.ClaimFormat = ClaimFormat
|
||||||
|
exports.ClaimRelation = ClaimRelation
|
Loading…
Reference in a new issue