Update enums

This commit is contained in:
Yarmo Mackenbach 2021-04-12 15:59:21 +02:00
parent f4308fb79d
commit 3702764aa6
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -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