/**
 * A class that represents a DWN error.
 */
export class DwnError extends Error {
    code;
    constructor(code, message) {
        super(`${code}: ${message}`);
        this.code = code;
        this.name = 'DwnError';
    }
}
/**
 * DWN SDK error codes.
 */
export var DwnErrorCode;
(function (DwnErrorCode) {
    DwnErrorCode["AuthenticateJwsMissing"] = "AuthenticateJwsMissing";
    DwnErrorCode["AuthenticateDescriptorCidMismatch"] = "AuthenticateDescriptorCidMismatch";
    DwnErrorCode["AuthenticationMoreThanOneSignatureNotSupported"] = "AuthenticationMoreThanOneSignatureNotSupported";
    DwnErrorCode["AuthorizationNotGrantedToAuthor"] = "AuthorizationNotGrantedToAuthor";
    DwnErrorCode["ComputeCidCodecNotSupported"] = "ComputeCidCodecNotSupported";
    DwnErrorCode["ComputeCidMultihashNotSupported"] = "ComputeCidMultihashNotSupported";
    DwnErrorCode["Ed25519InvalidJwk"] = "Ed25519InvalidJwk";
    DwnErrorCode["EncryptionProtocolValidateAudienceEpochEncrypted"] = "EncryptionProtocolValidateAudienceEpochEncrypted";
    DwnErrorCode["EncryptionProtocolValidateAudienceEpochKeyIdMismatch"] = "EncryptionProtocolValidateAudienceEpochKeyIdMismatch";
    DwnErrorCode["EncryptionProtocolValidateAudienceEpochMissing"] = "EncryptionProtocolValidateAudienceEpochMissing";
    DwnErrorCode["EncryptionProtocolValidateAudienceKeyRecipientMissing"] = "EncryptionProtocolValidateAudienceKeyRecipientMissing";
    DwnErrorCode["EncryptionProtocolValidateAudienceKeyRoleRecordMissing"] = "EncryptionProtocolValidateAudienceKeyRoleRecordMissing";
    DwnErrorCode["EncryptionProtocolValidateAudienceMissingRequiredTag"] = "EncryptionProtocolValidateAudienceMissingRequiredTag";
    DwnErrorCode["EncryptionProtocolValidateAudienceTagsMismatch"] = "EncryptionProtocolValidateAudienceTagsMismatch";
    DwnErrorCode["EncryptionProtocolValidateAudienceWriterUnauthorized"] = "EncryptionProtocolValidateAudienceWriterUnauthorized";
    DwnErrorCode["EncryptionProtocolValidateEncryptedDeliveryMissingEncryption"] = "EncryptionProtocolValidateEncryptedDeliveryMissingEncryption";
    DwnErrorCode["EncryptionProtocolValidateGrantKeyAuthorMismatch"] = "EncryptionProtocolValidateGrantKeyAuthorMismatch";
    DwnErrorCode["EncryptionProtocolValidateGrantKeyGrantScopeMismatch"] = "EncryptionProtocolValidateGrantKeyGrantScopeMismatch";
    DwnErrorCode["EncryptionProtocolValidateGrantKeyMissingRequiredTag"] = "EncryptionProtocolValidateGrantKeyMissingRequiredTag";
    DwnErrorCode["EncryptionProtocolValidateGrantKeyRecipientMismatch"] = "EncryptionProtocolValidateGrantKeyRecipientMismatch";
    DwnErrorCode["EncryptionProtocolValidateRoleAudienceContextInvalid"] = "EncryptionProtocolValidateRoleAudienceContextInvalid";
    DwnErrorCode["EncryptionProtocolValidateRoleAudienceInvalid"] = "EncryptionProtocolValidateRoleAudienceInvalid";
    DwnErrorCode["EncryptionProtocolValidateSchemaUnexpectedRecord"] = "EncryptionProtocolValidateSchemaUnexpectedRecord";
    DwnErrorCode["EventLogNotOpenError"] = "EventLogNotOpenError";
    DwnErrorCode["EventLogProgressGap"] = "EventLogProgressGap";
    DwnErrorCode["MessagesGrantAuthorizationMismatchedProtocol"] = "MessagesGrantAuthorizationMismatchedProtocol";
    DwnErrorCode["MessagesGrantAuthorizationSubscribeProtocolMismatch"] = "MessagesGrantAuthorizationSubscribeProtocolMismatch";
    DwnErrorCode["MessagesGrantAuthorizationUnfilteredSubscribeProtocolScope"] = "MessagesGrantAuthorizationUnfilteredSubscribeProtocolScope";
    DwnErrorCode["MessagesSubscribeAuthorizationFailed"] = "MessagesSubscribeAuthorizationFailed";
    DwnErrorCode["MessagesSubscribeDeliveryAuthorizationFailed"] = "MessagesSubscribeDeliveryAuthorizationFailed";
    DwnErrorCode["MessagesSubscribeEventLogUnimplemented"] = "MessagesSubscribeEventLogUnimplemented";
    DwnErrorCode["GeneralJwsVerifierGetPublicKeyNotFound"] = "GeneralJwsVerifierGetPublicKeyNotFound";
    DwnErrorCode["GeneralJwsVerifierInvalidSignature"] = "GeneralJwsVerifierInvalidSignature";
    DwnErrorCode["GeneralJwsVerifierMissingAlg"] = "GeneralJwsVerifierMissingAlg";
    DwnErrorCode["GeneralJwsVerifierMissingKid"] = "GeneralJwsVerifierMissingKid";
    DwnErrorCode["GrantAuthorizationGrantExpired"] = "GrantAuthorizationGrantExpired";
    DwnErrorCode["GrantAuthorizationGrantMissing"] = "GrantAuthorizationGrantMissing";
    DwnErrorCode["GrantAuthorizationGrantRevoked"] = "GrantAuthorizationGrantRevoked";
    DwnErrorCode["GrantAuthorizationInterfaceMismatch"] = "GrantAuthorizationInterfaceMismatch";
    DwnErrorCode["GrantAuthorizationMethodMismatch"] = "GrantAuthorizationMethodMismatch";
    DwnErrorCode["GrantAuthorizationNotGrantedForTenant"] = "GrantAuthorizationNotGrantedForTenant";
    DwnErrorCode["GrantAuthorizationNotGrantedToAuthor"] = "GrantAuthorizationNotGrantedToAuthor";
    DwnErrorCode["GrantAuthorizationGrantNotYetActive"] = "GrantAuthorizationGrantNotYetActive";
    DwnErrorCode["HdKeyDerivationPathInvalid"] = "HdKeyDerivationPathInvalid";
    DwnErrorCode["JwsVerifySignatureUnsupportedCrv"] = "JwsVerifySignatureUnsupportedCrv";
    DwnErrorCode["IndexInvalidCursorValueType"] = "IndexInvalidCursorValueType";
    DwnErrorCode["IndexInvalidCursorSortProperty"] = "IndexInvalidCursorSortProperty";
    DwnErrorCode["IndexInvalidSortPropertyInMemory"] = "IndexInvalidSortPropertyInMemory";
    DwnErrorCode["IndexMissingIndexableProperty"] = "IndexMissingIndexableProperty";
    DwnErrorCode["JwsDecodePlainObjectPayloadInvalid"] = "JwsDecodePlainObjectPayloadInvalid";
    DwnErrorCode["MessageStoreDeleteLogEntryMissing"] = "MessageStoreDeleteLogEntryMissing";
    DwnErrorCode["MessageStoreFingerprintScopeMutation"] = "MessageStoreFingerprintScopeMutation";
    DwnErrorCode["MessageStorePreSubstrateLayout"] = "MessageStorePreSubstrateLayout";
    DwnErrorCode["MessageStoreReplicationPositionOverflow"] = "MessageStoreReplicationPositionOverflow";
    DwnErrorCode["MessageStoreUpdateMessageAndIndexesCidMismatch"] = "MessageStoreUpdateMessageAndIndexesCidMismatch";
    DwnErrorCode["MessageStoreUpdateMessageAndIndexesMessageNotFound"] = "MessageStoreUpdateMessageAndIndexesMessageNotFound";
    DwnErrorCode["MessageStoreUpdateIndexesMessageNotFound"] = "MessageStoreUpdateIndexesMessageNotFound";
    DwnErrorCode["MessagePermissionGrantCreateInvocationAmbiguous"] = "MessagePermissionGrantCreateInvocationAmbiguous";
    DwnErrorCode["MessagePermissionGrantDescriptorPayloadMismatch"] = "MessagePermissionGrantDescriptorPayloadMismatch";
    DwnErrorCode["MessagePermissionGrantIdsDescriptorPayloadMismatch"] = "MessagePermissionGrantIdsDescriptorPayloadMismatch";
    DwnErrorCode["MessagePermissionGrantIdsEmpty"] = "MessagePermissionGrantIdsEmpty";
    DwnErrorCode["MessagePermissionGrantIdsNotCanonical"] = "MessagePermissionGrantIdsNotCanonical";
    DwnErrorCode["MessagePermissionGrantValidateInvocationAmbiguous"] = "MessagePermissionGrantValidateInvocationAmbiguous";
    DwnErrorCode["MessagesReadInvalidCid"] = "MessagesReadInvalidCid";
    DwnErrorCode["MessagesQueryAuthorizationFailed"] = "MessagesQueryAuthorizationFailed";
    DwnErrorCode["MessagesQueryReplicationFeedUnimplemented"] = "MessagesQueryReplicationFeedUnimplemented";
    DwnErrorCode["MessagesReadAuthorizationFailed"] = "MessagesReadAuthorizationFailed";
    DwnErrorCode["MessageGetInvalidCid"] = "MessageGetInvalidCid";
    DwnErrorCode["MessagesReadVerifyScopeFailed"] = "MessagesReadVerifyScopeFailed";
    DwnErrorCode["ParseCidCodecNotSupported"] = "ParseCidCodecNotSupported";
    DwnErrorCode["ParseCidMultihashNotSupported"] = "ParseCidMultihashNotSupported";
    DwnErrorCode["PermissionsProtocolCreateGrantScopeContextIdProtocolPathConflict"] = "PermissionsProtocolCreateGrantScopeContextIdProtocolPathConflict";
    DwnErrorCode["PermissionsProtocolCreateGrantRecordsScopeMissingProtocol"] = "PermissionsProtocolCreateGrantRecordsScopeMissingProtocol";
    DwnErrorCode["PermissionsProtocolCreateGrantSubtreeScopeMissingProtocol"] = "PermissionsProtocolCreateGrantSubtreeScopeMissingProtocol";
    DwnErrorCode["PermissionsProtocolCreateRequestScopeContextIdProtocolPathConflict"] = "PermissionsProtocolCreateRequestScopeContextIdProtocolPathConflict";
    DwnErrorCode["PermissionsProtocolCreateRequestRecordsScopeMissingProtocol"] = "PermissionsProtocolCreateRequestRecordsScopeMissingProtocol";
    DwnErrorCode["PermissionsProtocolCreateRequestSubtreeScopeMissingProtocol"] = "PermissionsProtocolCreateRequestSubtreeScopeMissingProtocol";
    DwnErrorCode["PermissionsProtocolGetScopeInvalidProtocol"] = "PermissionsProtocolGetScopeInvalidProtocol";
    DwnErrorCode["PermissionsProtocolValidateSchemaUnexpectedRecord"] = "PermissionsProtocolValidateSchemaUnexpectedRecord";
    DwnErrorCode["PermissionsProtocolValidateScopeContextIdProhibitedProperties"] = "PermissionsProtocolValidateScopeContextIdProhibitedProperties";
    DwnErrorCode["PermissionsProtocolValidateScopeSubtreeScopeMissingProtocol"] = "PermissionsProtocolValidateScopeSubtreeScopeMissingProtocol";
    DwnErrorCode["PermissionsProtocolValidateScopeProtocolMismatch"] = "PermissionsProtocolValidateScopeProtocolMismatch";
    DwnErrorCode["PermissionsProtocolValidateScopeMissingProtocolTag"] = "PermissionsProtocolValidateScopeMissingProtocolTag";
    DwnErrorCode["PermissionsProtocolValidateRevocationProtocolTagMismatch"] = "PermissionsProtocolValidateRevocationProtocolTagMismatch";
    DwnErrorCode["PermissionGrantParseMissingAuthorization"] = "PermissionGrantParseMissingAuthorization";
    DwnErrorCode["PermissionGrantParseMissingEncodedData"] = "PermissionGrantParseMissingEncodedData";
    DwnErrorCode["PermissionGrantParseMissingRecipient"] = "PermissionGrantParseMissingRecipient";
    DwnErrorCode["PermissionGrantParseMissingScope"] = "PermissionGrantParseMissingScope";
    DwnErrorCode["PermissionGrantParseMissingDateExpires"] = "PermissionGrantParseMissingDateExpires";
    DwnErrorCode["PermissionRequestParseMissingAuthorization"] = "PermissionRequestParseMissingAuthorization";
    DwnErrorCode["PermissionRequestParseMissingEncodedData"] = "PermissionRequestParseMissingEncodedData";
    DwnErrorCode["PermissionRequestParseMissingScope"] = "PermissionRequestParseMissingScope";
    DwnErrorCode["PrivateKeySignerUnableToDeduceAlgorithm"] = "PrivateKeySignerUnableToDeduceAlgorithm";
    DwnErrorCode["PrivateKeySignerUnableToDeduceKeyId"] = "PrivateKeySignerUnableToDeduceKeyId";
    DwnErrorCode["PrivateKeySignerUnsupportedCurve"] = "PrivateKeySignerUnsupportedCurve";
    DwnErrorCode["ProtocolAuthorizationActionNotAllowed"] = "ProtocolAuthorizationActionNotAllowed";
    DwnErrorCode["ProtocolAuthorizationActionRulesNotFound"] = "ProtocolAuthorizationActionRulesNotFound";
    DwnErrorCode["ProtocolAuthorizationCrossProtocolParentNotFound"] = "ProtocolAuthorizationCrossProtocolParentNotFound";
    DwnErrorCode["ProtocolAuthorizationIncorrectDataFormat"] = "ProtocolAuthorizationIncorrectDataFormat";
    DwnErrorCode["ProtocolAuthorizationIncorrectContextId"] = "ProtocolAuthorizationIncorrectContextId";
    DwnErrorCode["ProtocolAuthorizationIncorrectProtocolPath"] = "ProtocolAuthorizationIncorrectProtocolPath";
    DwnErrorCode["ProtocolAuthorizationInitialWriteRevalidationNotInitial"] = "ProtocolAuthorizationInitialWriteRevalidationNotInitial";
    DwnErrorCode["ProtocolAuthorizationDuplicateRoleRecipient"] = "ProtocolAuthorizationDuplicateRoleRecipient";
    DwnErrorCode["ProtocolAuthorizationEncryptionRequired"] = "ProtocolAuthorizationEncryptionRequired";
    DwnErrorCode["ProtocolAuthorizationEncryptionKeyAgreementMissing"] = "ProtocolAuthorizationEncryptionKeyAgreementMissing";
    DwnErrorCode["ProtocolAuthorizationEncryptionProtocolPathEntryMissing"] = "ProtocolAuthorizationEncryptionProtocolPathEntryMissing";
    DwnErrorCode["ProtocolAuthorizationEncryptionRoleAudienceEntryMissing"] = "ProtocolAuthorizationEncryptionRoleAudienceEntryMissing";
    DwnErrorCode["ProtocolAuthorizationEncryptionRoleAudienceEpochMissing"] = "ProtocolAuthorizationEncryptionRoleAudienceEpochMissing";
    DwnErrorCode["ProtocolAuthorizationImmutableRecord"] = "ProtocolAuthorizationImmutableRecord";
    DwnErrorCode["ProtocolAuthorizationInvalidSchema"] = "ProtocolAuthorizationInvalidSchema";
    DwnErrorCode["ProtocolAuthorizationInvalidType"] = "ProtocolAuthorizationInvalidType";
    DwnErrorCode["ProtocolAuthorizationMatchingRoleRecordNotFound"] = "ProtocolAuthorizationMatchingRoleRecordNotFound";
    DwnErrorCode["ProtocolAuthorizationMaxSizeInvalid"] = "ProtocolAuthorizationMaxSizeInvalid";
    DwnErrorCode["ProtocolAuthorizationMinSizeInvalid"] = "ProtocolAuthorizationMinSizeInvalid";
    DwnErrorCode["ProtocolAuthorizationRecordLimitStrategyNotImplemented"] = "ProtocolAuthorizationRecordLimitStrategyNotImplemented";
    DwnErrorCode["ProtocolAuthorizationSquashNotEnabled"] = "ProtocolAuthorizationSquashNotEnabled";
    DwnErrorCode["ProtocolAuthorizationSquashNotInitialWrite"] = "ProtocolAuthorizationSquashNotInitialWrite";
    DwnErrorCode["ProtocolAuthorizationSquashBackstop"] = "ProtocolAuthorizationSquashBackstop";
    DwnErrorCode["ProtocolAuthorizationStoredInitialWriteActionNotAllowed"] = "ProtocolAuthorizationStoredInitialWriteActionNotAllowed";
    DwnErrorCode["ProtocolAuthorizationStoredInitialWriteActionRulesNotFound"] = "ProtocolAuthorizationStoredInitialWriteActionRulesNotFound";
    DwnErrorCode["ProtocolAuthorizationStoredInitialWriteRoleMissingRecipient"] = "ProtocolAuthorizationStoredInitialWriteRoleMissingRecipient";
    DwnErrorCode["ProtocolAuthorizationMissingContextId"] = "ProtocolAuthorizationMissingContextId";
    DwnErrorCode["ProtocolAuthorizationMissingRuleSet"] = "ProtocolAuthorizationMissingRuleSet";
    DwnErrorCode["ProtocolAuthorizationParentRecordNotFound"] = "ProtocolAuthorizationParentRecordNotFound";
    DwnErrorCode["ProtocolAuthorizationParentlessIncorrectProtocolPath"] = "ProtocolAuthorizationParentlessIncorrectProtocolPath";
    DwnErrorCode["ProtocolAuthorizationNotARole"] = "ProtocolAuthorizationNotARole";
    DwnErrorCode["ProtocolAuthorizationParentNotFoundConstructingRecordChain"] = "ProtocolAuthorizationParentNotFoundConstructingRecordChain";
    DwnErrorCode["ProtocolAuthorizationProtocolNotFound"] = "ProtocolAuthorizationProtocolNotFound";
    DwnErrorCode["ProtocolAuthorizationRoleMissingRecipient"] = "ProtocolAuthorizationRoleMissingRecipient";
    DwnErrorCode["ProtocolAuthorizationTagsInvalidSchema"] = "ProtocolAuthorizationTagsInvalidSchema";
    DwnErrorCode["ProtocolsConfigureAuthorizationFailed"] = "ProtocolsConfigureAuthorizationFailed";
    DwnErrorCode["ProtocolsConfigureComposedProtocolNotInstalled"] = "ProtocolsConfigureComposedProtocolNotInstalled";
    DwnErrorCode["ProtocolsConfigureDuplicateActorInRuleSet"] = "ProtocolsConfigureDuplicateActorInRuleSet";
    DwnErrorCode["ProtocolsConfigureDuplicateRoleInRuleSet"] = "ProtocolsConfigureDuplicateRoleInRuleSet";
    DwnErrorCode["ProtocolsConfigureInvalidRefAlias"] = "ProtocolsConfigureInvalidRefAlias";
    DwnErrorCode["ProtocolsConfigureInvalidRefNodeHasDirectives"] = "ProtocolsConfigureInvalidRefNodeHasDirectives";
    DwnErrorCode["ProtocolsConfigureInvalidRefNotAtRoot"] = "ProtocolsConfigureInvalidRefNotAtRoot";
    DwnErrorCode["ProtocolsConfigureInvalidRefProtocolPath"] = "ProtocolsConfigureInvalidRefProtocolPath";
    DwnErrorCode["ProtocolsConfigureInvalidRefTargetThroughRef"] = "ProtocolsConfigureInvalidRefTargetThroughRef";
    DwnErrorCode["ProtocolsConfigureInvalidRecordLimit"] = "ProtocolsConfigureInvalidRecordLimit";
    DwnErrorCode["ProtocolsConfigureInvalidSize"] = "ProtocolsConfigureInvalidSize";
    DwnErrorCode["ProtocolsConfigureInvalidActionMissingOf"] = "ProtocolsConfigureInvalidActionMissingOf";
    DwnErrorCode["ProtocolsConfigureInvalidActionOfNotAnAncestor"] = "ProtocolsConfigureInvalidActionOfNotAnAncestor";
    DwnErrorCode["ProtocolsConfigureInvalidActionOfNotAllowed"] = "ProtocolsConfigureInvalidActionOfNotAllowed";
    DwnErrorCode["ProtocolsConfigureInvalidActionDeleteWithoutCreate"] = "ProtocolsConfigureInvalidActionDeleteWithoutCreate";
    DwnErrorCode["ProtocolsConfigureInvalidActionPruneWithoutCreate"] = "ProtocolsConfigureInvalidActionPruneWithoutCreate";
    DwnErrorCode["ProtocolsConfigureInvalidActionUpdateWithoutCreate"] = "ProtocolsConfigureInvalidActionUpdateWithoutCreate";
    DwnErrorCode["ProtocolsConfigureInvalidCrossProtocolOf"] = "ProtocolsConfigureInvalidCrossProtocolOf";
    DwnErrorCode["ProtocolsConfigureInvalidCrossProtocolRole"] = "ProtocolsConfigureInvalidCrossProtocolRole";
    DwnErrorCode["ProtocolsConfigureInvalidEncryptedAnyoneRead"] = "ProtocolsConfigureInvalidEncryptedAnyoneRead";
    DwnErrorCode["ProtocolsConfigureInvalidEncryptedRoleMissingKeyAgreement"] = "ProtocolsConfigureInvalidEncryptedRoleMissingKeyAgreement";
    DwnErrorCode["ProtocolsConfigureMissingEncryptedPathKeyAgreement"] = "ProtocolsConfigureMissingEncryptedPathKeyAgreement";
    DwnErrorCode["ProtocolsConfigureMissingTopLevelKeyAgreement"] = "ProtocolsConfigureMissingTopLevelKeyAgreement";
    DwnErrorCode["ProtocolsConfigureInvalidRecipientOfAction"] = "ProtocolsConfigureInvalidRecipientOfAction";
    DwnErrorCode["ProtocolsConfigureInvalidRuleSetRecordType"] = "ProtocolsConfigureInvalidRuleSetRecordType";
    DwnErrorCode["ProtocolsConfigureInvalidTagSchema"] = "ProtocolsConfigureInvalidTagSchema";
    DwnErrorCode["ProtocolsConfigureInvalidUsesAlias"] = "ProtocolsConfigureInvalidUsesAlias";
    DwnErrorCode["ProtocolsConfigureInvalidUsesProtocolUrl"] = "ProtocolsConfigureInvalidUsesProtocolUrl";
    DwnErrorCode["ProtocolsConfigureInvalidUsesSelfReference"] = "ProtocolsConfigureInvalidUsesSelfReference";
    DwnErrorCode["ProtocolsConfigureRecordNestingDepthExceeded"] = "ProtocolsConfigureRecordNestingDepthExceeded";
    DwnErrorCode["ProtocolsConfigureRoleDoesNotExistAtGivenPath"] = "ProtocolsConfigureRoleDoesNotExistAtGivenPath";
    DwnErrorCode["ProtocolsGrantAuthorizationQueryProtocolScopeMismatch"] = "ProtocolsGrantAuthorizationQueryProtocolScopeMismatch";
    DwnErrorCode["ProtocolsGrantAuthorizationScopeProtocolMismatch"] = "ProtocolsGrantAuthorizationScopeProtocolMismatch";
    DwnErrorCode["ProtocolsQueryUnauthorized"] = "ProtocolsQueryUnauthorized";
    DwnErrorCode["RecordsAuthorDelegatedGrantAndIdExistenceMismatch"] = "RecordsAuthorDelegatedGrantAndIdExistenceMismatch";
    DwnErrorCode["RecordsAuthorDelegatedGrantCidMismatch"] = "RecordsAuthorDelegatedGrantCidMismatch";
    DwnErrorCode["RecordsAuthorDelegatedGrantGrantedToAndOwnerSignatureMismatch"] = "RecordsAuthorDelegatedGrantGrantedToAndOwnerSignatureMismatch";
    DwnErrorCode["RecordsAuthorDelegatedGrantNotADelegatedGrant"] = "RecordsAuthorDelegatedGrantNotADelegatedGrant";
    DwnErrorCode["RecordsDecryptNoMatchingKeyEncryptedFound"] = "RecordsDecryptNoMatchingKeyEncryptedFound";
    DwnErrorCode["RecordsDecryptUnsupportedKeyDerivationScheme"] = "RecordsDecryptUnsupportedKeyDerivationScheme";
    DwnErrorCode["RecordsCountFilterMissingRequiredProperties"] = "RecordsCountFilterMissingRequiredProperties";
    DwnErrorCode["RecordsCountNestedProtocolPathContextIdInvalid"] = "RecordsCountNestedProtocolPathContextIdInvalid";
    DwnErrorCode["RecordsQueryCreateFilterPublishedSortInvalid"] = "RecordsQueryCreateFilterPublishedSortInvalid";
    DwnErrorCode["RecordsQueryParseFilterPublishedSortInvalid"] = "RecordsQueryParseFilterPublishedSortInvalid";
    DwnErrorCode["RecordsGrantAuthorizationConditionPublicationProhibited"] = "RecordsGrantAuthorizationConditionPublicationProhibited";
    DwnErrorCode["RecordsGrantAuthorizationConditionPublicationRequired"] = "RecordsGrantAuthorizationConditionPublicationRequired";
    DwnErrorCode["RecordsGrantAuthorizationDeleteProtocolScopeMismatch"] = "RecordsGrantAuthorizationDeleteProtocolScopeMismatch";
    DwnErrorCode["RecordsGrantAuthorizationQueryOrSubscribeProtocolScopeMismatch"] = "RecordsGrantAuthorizationQueryOrSubscribeProtocolScopeMismatch";
    DwnErrorCode["RecordsGrantAuthorizationScopeContextIdMismatch"] = "RecordsGrantAuthorizationScopeContextIdMismatch";
    DwnErrorCode["RecordsGrantAuthorizationScopeMismatch"] = "RecordsGrantAuthorizationScopeMismatch";
    DwnErrorCode["RecordsGrantAuthorizationScopeProtocolMismatch"] = "RecordsGrantAuthorizationScopeProtocolMismatch";
    DwnErrorCode["RecordsGrantAuthorizationScopeProtocolPathMismatch"] = "RecordsGrantAuthorizationScopeProtocolPathMismatch";
    DwnErrorCode["RecordsDerivePrivateKeyUnSupportedCurve"] = "RecordsDerivePrivateKeyUnSupportedCurve";
    DwnErrorCode["RecordsInvalidAncestorKeyDerivationSegment"] = "RecordsInvalidAncestorKeyDerivationSegment";
    DwnErrorCode["RecordsOwnerDelegatedGrantAndIdExistenceMismatch"] = "RecordsOwnerDelegatedGrantAndIdExistenceMismatch";
    DwnErrorCode["RecordsOwnerDelegatedGrantCidMismatch"] = "RecordsOwnerDelegatedGrantCidMismatch";
    DwnErrorCode["RecordsOwnerDelegatedGrantGrantedToAndOwnerSignatureMismatch"] = "RecordsOwnerDelegatedGrantGrantedToAndOwnerSignatureMismatch";
    DwnErrorCode["RecordsOwnerDelegatedGrantNotADelegatedGrant"] = "RecordsOwnerDelegatedGrantNotADelegatedGrant";
    DwnErrorCode["RecordsQueryFilterMissingRequiredProperties"] = "RecordsQueryFilterMissingRequiredProperties";
    DwnErrorCode["RecordsQueryNestedProtocolPathContextIdInvalid"] = "RecordsQueryNestedProtocolPathContextIdInvalid";
    DwnErrorCode["RecordsReadCreateFilterPublishedSortInvalid"] = "RecordsReadCreateFilterPublishedSortInvalid";
    DwnErrorCode["RecordsReadParseFilterPublishedSortInvalid"] = "RecordsReadParseFilterPublishedSortInvalid";
    DwnErrorCode["RecordsSubscribeEventLogUnimplemented"] = "RecordsSubscribeEventLogUnimplemented";
    DwnErrorCode["RecordsSubscribeFilterMissingRequiredProperties"] = "RecordsSubscribeFilterMissingRequiredProperties";
    DwnErrorCode["RecordsSubscribeNestedProtocolPathContextIdInvalid"] = "RecordsSubscribeNestedProtocolPathContextIdInvalid";
    DwnErrorCode["RecordsWriteAttestationIntegrityMoreThanOneSignature"] = "RecordsWriteAttestationIntegrityMoreThanOneSignature";
    DwnErrorCode["RecordsWriteAttestationIntegrityDescriptorCidMismatch"] = "RecordsWriteAttestationIntegrityDescriptorCidMismatch";
    DwnErrorCode["RecordsWriteAttestationIntegrityInvalidPayloadProperty"] = "RecordsWriteAttestationIntegrityInvalidPayloadProperty";
    DwnErrorCode["RecordsWriteCreateMissingSigner"] = "RecordsWriteCreateMissingSigner";
    DwnErrorCode["RecordsWriteCreateDataAndDataCidMutuallyExclusive"] = "RecordsWriteCreateDataAndDataCidMutuallyExclusive";
    DwnErrorCode["RecordsWriteCreateDataCidAndDataSizeMutuallyInclusive"] = "RecordsWriteCreateDataCidAndDataSizeMutuallyInclusive";
    DwnErrorCode["RecordsWriteCreateEncryptionAndEncryptionInputMutuallyExclusive"] = "RecordsWriteCreateEncryptionAndEncryptionInputMutuallyExclusive";
    DwnErrorCode["RecordsWriteCreateMissingProtocol"] = "RecordsWriteCreateMissingProtocol";
    DwnErrorCode["RecordsWriteDataCidMismatch"] = "RecordsWriteDataCidMismatch";
    DwnErrorCode["RecordsWriteDataSizeMismatch"] = "RecordsWriteDataSizeMismatch";
    DwnErrorCode["RecordsWriteGetEntryIdUndefinedAuthor"] = "RecordsWriteGetEntryIdUndefinedAuthor";
    DwnErrorCode["RecordsWriteGetNewestWriteRecordNotFound"] = "RecordsWriteGetNewestWriteRecordNotFound";
    DwnErrorCode["RecordsWriteGetInitialWriteNotFound"] = "RecordsWriteGetInitialWriteNotFound";
    DwnErrorCode["RecordsWriteImmutablePropertyChanged"] = "RecordsWriteImmutablePropertyChanged";
    DwnErrorCode["RecordsWriteMissingSigner"] = "RecordsWriteMissingSigner";
    DwnErrorCode["RecordsWriteMissingDataInPrevious"] = "RecordsWriteMissingDataInPrevious";
    DwnErrorCode["RecordsWriteMissingEncodedDataInPrevious"] = "RecordsWriteMissingEncodedDataInPrevious";
    DwnErrorCode["RecordsWriteNotAllowedAfterDelete"] = "RecordsWriteNotAllowedAfterDelete";
    DwnErrorCode["RecordsWriteOwnerAndTenantMismatch"] = "RecordsWriteOwnerAndTenantMismatch";
    DwnErrorCode["RecordsWriteSignAsOwnerDelegateUnknownAuthor"] = "RecordsWriteSignAsOwnerDelegateUnknownAuthor";
    DwnErrorCode["RecordsWriteSignAsOwnerUnknownAuthor"] = "RecordsWriteSignAsOwnerUnknownAuthor";
    DwnErrorCode["RecordsWriteValidateIntegrityAttestationMismatch"] = "RecordsWriteValidateIntegrityAttestationMismatch";
    DwnErrorCode["RecordsWriteValidateIntegrityContextIdMismatch"] = "RecordsWriteValidateIntegrityContextIdMismatch";
    DwnErrorCode["RecordsWriteValidateIntegrityContextIdNotInSignerSignaturePayload"] = "RecordsWriteValidateIntegrityContextIdNotInSignerSignaturePayload";
    DwnErrorCode["RecordsWriteValidateIntegrityDateCreatedMismatch"] = "RecordsWriteValidateIntegrityDateCreatedMismatch";
    DwnErrorCode["RecordsWriteValidateIntegrityEncryptionCidMissing"] = "RecordsWriteValidateIntegrityEncryptionCidMissing";
    DwnErrorCode["RecordsWriteValidateIntegrityEncryptionCidMismatch"] = "RecordsWriteValidateIntegrityEncryptionCidMismatch";
    DwnErrorCode["RecordsWriteValidateIntegrityEncryptionEphemeralPublicKeyInvalid"] = "RecordsWriteValidateIntegrityEncryptionEphemeralPublicKeyInvalid";
    DwnErrorCode["RecordsWriteValidateIntegrityEncryptionInitializationVectorInvalid"] = "RecordsWriteValidateIntegrityEncryptionInitializationVectorInvalid";
    DwnErrorCode["RecordsWriteValidateIntegrityRecordIdUnauthorized"] = "RecordsWriteValidateIntegrityRecordIdUnauthorized";
    DwnErrorCode["SchemaValidatorAdditionalPropertyNotAllowed"] = "SchemaValidatorAdditionalPropertyNotAllowed";
    DwnErrorCode["SchemaValidatorFailure"] = "SchemaValidatorFailure";
    DwnErrorCode["SchemaValidatorSchemaNotFound"] = "SchemaValidatorSchemaNotFound";
    DwnErrorCode["SchemaValidatorUnevaluatedPropertyNotAllowed"] = "SchemaValidatorUnevaluatedPropertyNotAllowed";
    DwnErrorCode["Secp256k1KeyNotValid"] = "Secp256k1KeyNotValid";
    DwnErrorCode["Secp256r1KeyNotValid"] = "Secp256r1KeyNotValid";
    DwnErrorCode["TimestampInvalid"] = "TimestampInvalid";
    DwnErrorCode["UrlProtocolNotNormalized"] = "UrlProtocolNotNormalized";
    DwnErrorCode["UrlProtocolNotNormalizable"] = "UrlProtocolNotNormalizable";
    DwnErrorCode["UrlSchemaNotNormalized"] = "UrlSchemaNotNormalized";
    DwnErrorCode["RecordsReadInitialWriteNotFound"] = "RecordsReadInitialWriteNotFound";
})(DwnErrorCode || (DwnErrorCode = {}));
;
//# sourceMappingURL=dwn-error.js.map