UNPKG

iam-client-lib

Version:

Library for Decentralized Identity and Access Management

43 lines (42 loc) 3.02 kB
export declare enum ERROR_MESSAGES { UNKNOWN_PROVIDER = "Unknown provider type", ENS_TYPE_NOT_SUPPORTED = "ENS type not supported", WALLET_PROVIDER_NOT_SUPPORTED = "Wallet provider must be a supported value", NON_ETH_SIGN_SIGNATURE = "Signature is not eth_sign verifiable", ORG_WITH_APPS = "You are not able to remove organization with registered apps", ORG_WITH_ROLES = "You are not able to remove organization with registered roles", APP_WITH_ROLES = "You are not able to remove application with registered roles", METAMASK_PROVIDER_NOT_DETECTED = "Metamask provider not detected", METAMASK_ACCOUNT_NOT_PROVIDED = "Metamask account not provided", ROLE_PREREQUISITES_NOT_MET = "Enrolment subject doesn't have required roles", ROLE_NOT_EXISTS = "Role you want to enroll to does not exists", CAN_NOT_UPDATE_NOT_CONTROLLED_DOCUMENT = "Can not update not controlled document", CAN_NOT_UPDATE_DOCUMENT_PROPERTIES_INVALID_OR_MISSING = "Cannot update document. Properties invalid or missing: ", ONCHAIN_ROLE_VERSION_NOT_SPECIFIED = "On-chain role version not specified", WITHDRAWAL_WAS_NOT_REQUESTED = "Stake withdrawal was not requested", STAKE_WAS_NOT_PUT = "Stake was not put", INSUFFICIENT_BALANCE = "Signer has insufficient balance", NOT_AUTHORIZED_TO_CHANGE_DOMAIN = "Not authorized to change domain", ERROR_IN_AZURE_PROVIDER = "Error in Azure Provider", JWT_ALGORITHM_NOT_SUPPORTED = "Jwt algorithm not supported", CLAIM_WAS_NOT_ISSUED = "Claim was not issued", PUBLISH_NOT_ISSUED_CLAIM = "Claim to publish has not been issued", CLAIM_TYPE_REQUIRED_FOR_ON_CHAIN_REGISTRATION = "claimType required for on-chain registration", TOKEN_REQUIRED_FOR_OFF_CHAIN_REGISTRATION = "token required for off-chain registration", ENS_OWNER_NOT_VALID_ADDRESS = "Provided owner is not a valid address. Owner of ENS domain must be an address", IS_ETH_SIGNER_NOT_SET = "Can not determine if signer is conformant with eth_sign specification", SIGN_TYPED_DATA_NOT_SUPPORTED = "Sign typed data not supported", CLAIM_TYPE_MISSING = "Claim type is required for On-chain registration", ERROR_CONTINUING_EXCHANGE = "Error continuing exchange", ONCHAIN_ROLE_SUBJECT_AGREEMENT_NOT_SPECIFIED = "On-chain role subject agreement not specified", REVOKE_CLAIM_MISSING_PARAMETERS = "Revoke claim missing parameters. Required one of: claimId or claim", REVOKE_CLAIM_NOT_FOUND = "Could not find claim to revoke", DID_DOCUMENT_NOT_UPDATED = "DID Document was not updated", PROOF_NOT_VERIFIED = "Proof not verified", OFFCHAIN_ISSUER_NOT_AUTHORIZED = "Issuer of OffChain Claim is not authorized", NO_CLAIM_RESOLVED = "No claim found for given DID and role", CREDENTIAL_EXPIRED = "Credential Expired", NO_ISSUER_SPECIFIED = "No issuer specified for credential", CLAIM_DOES_NOT_CONTAIN_TOKEN = "Claim does not contain token", CLAIM_TOKEN_DATA_MISSING = "Claim token payload missing required key" }