feat: add const groups of the different set of types

This commit is contained in:
Derrick Hammer 2023-09-02 05:19:09 -04:00
parent 2c4905c266
commit cc66a0d839
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 25 additions and 0 deletions

View File

@ -22,6 +22,17 @@ export const cidTypeEncryptedStatic = 0xae;
/// can point to resolver CID, Stream CID, Directory Metadata or Media Metadata object
export const cidTypeEncryptedDynamic = 0xad;
export const CID_TYPES = [
cidTypeRaw,
cidTypeMetadataMedia,
cidTypeMetadataWebApp,
cidTypeResolver,
cidTypeUserIdentity,
cidTypeBridge,
cidTypeEncryptedStatic,
cidTypeEncryptedDynamic,
];
export const registryS5CIDByte = 0x5a;
export const registryS5EncryptedByte = 0x5e;
@ -48,10 +59,24 @@ export const metadataTypeDirectory = 0x04;
export const metadataTypeProofs = 0x05;
export const metadataTypeUserIdentity = 0x07;
export const METADATA_TYPES = [
metadataTypeMedia,
metadataTypeWebApp,
metadataTypeDirectory,
metadataTypeProofs,
metadataTypeUserIdentity,
];
export const parentLinkTypeUserIdentity = 1;
export const parentLinkTypeBoard = 5;
export const parentLinkTypeBridgeUser = 10;
export const PARENT_LINK_TYPES = [
parentLinkTypeUserIdentity,
parentLinkTypeBoard,
parentLinkTypeBridgeUser,
];
export const registryMaxDataSize = 64;
// ! user identity