Skip to main content

Module contract_moderation

Module contract_moderation 

Source

Structs§

ContractDocumentAlreadyRestoredError
ContractDocumentRemovalNotFoundError
ContractFeeClaimNotAllowedError
ContractFeesAlreadyClaimedThisEpochError
ContractFeesNothingToClaimError
ContractModeratedDocumentTypeNotYetUsableError
A document transition on a document type an elected contract moderates, while nobody moderates the contract: its declaration names no interim moderators, and no team is seated yet, so the type can not be used.
ContractModerationAbilityNotGrantedError
A moderation action by the seated team of an elected contract that the contract’s declaration does not give the team: a ban, a suspension or a warning (or lifting one) when no moderated document type carries the ability, or a document deletion or restore on a type that does not carry deleteDocuments. The team acts with the declaration’s abilities and no others.
ContractModerationCounterpartyBarredError
ContractModerationNotEnabledError
ContractModerationTargetNotAllowedError
ContractModerationTargetNotFoundError
ContractModerationTeamNotSeatedError
The approval of a moderator’s deletion of a settled document on an elected contract that has no seated moderation team yet. Only the members of a seated team delete a settled document, and the rule that says which of them must approve names its leader: no interim moderator deletes one.
ContractModeratorIdentityNotFoundError
ContractSuspensionNotInFutureError
ContractTeamActionAlreadyCompletedError
An approval of a team action that already ran: the approvals met what it needs and it is closed.
ContractTeamActionAlreadySignedError
A second approval of an active team action by the same member of the seated team: its proposal, or its earlier approval, already counts.
ContractTeamActionDocumentChangedError
An approval of the proposal to delete a settled document that changed since it was proposed: its revision or its last modification moved, so the team would approve the deletion of content it never saw. A member proposes afresh.
ContractTeamActionDoesNotExistError
An approval of a team action the contract has no record of, active or closed: no member of its seated team proposed it.
ContractTeamMemberAddedAfterDocumentError
The proposal or approval of a settled document’s deletion by a member the leader added to the seated team after the document was created, on a type whose deleteSettled rule admits only members from before the document (approversPredateDocument, on by default). The leader names whom it adds, so such members could otherwise be added to approve whatever the leader proposes. The leader and the elected members always count.
ContractUserAlreadyBannedError
ContractUserBannedError
ContractUserNotBannedError
ContractUserNotSuspendedError
ContractUserNotWarnedError
ContractUserSuspendedError
ContractUserWarningLimitReachedError
DocumentFieldNotChangeableByModeratorsError
A moderator’s field change names a field the document type does not list under moderatorAbilities.changeFields; a type listing none refuses every field.
DocumentModerationWindowElapsedError
DocumentModeratorFieldNotWritableError
A document create or replace sets, changes or removes a field its type lists under moderatorAbilities.changeFields, and its signer does not moderate the contract: only the moderators write those fields.
DocumentNotSettledError
The approval of a moderator’s deletion of a settled document that is not settled: it was last modified within the window its type gives its moderators (moderatorAbilities.deleteWithin), in which a moderator deletes it alone, with a DeleteDocument.
DocumentRestoreHashMismatchError
DocumentRestoreWindowElapsedError
DocumentTypeNotDeletableByModeratorsError
DocumentTypeNotDeletableOnceSettledError
The approval of a moderator’s deletion of a settled document of a document type that does not say who must approve one (moderatorAbilities.deleteSettled): past its deleteWithin window, no moderator deletes a document of the type.
IdentityNotContractModeratorError
ModerationCharterAddedModeratorLimitReachedError
An addedModerator of the moderation charters contract for a seated charter that already has as many additions as its target contract’s elected declaration allows (maxAddedModerators). The additions that exist count: deleting one frees its slot.
ModerationReasonNotListedError
A ban, a suspension, a warning or a document deletion by a member of a contract’s seated moderation team whose reason names no reason document, or one the team’s proposal does not list. Every such action of a seated team names a reason document of the moderation charters contract that its proposal lists; a proposal that lists none can take no such action. Lifting a ban, a suspension or warnings and restoring a document carry no reason and are not checked, and neither are the moderators a declaration names.
SettledDeletionNotRestorableError
A restore of a document the contract’s seated moderation team deleted together, its approvals meeting its type’s moderatorAbilities.deleteSettled rule: no single moderator undoes what the leader and the members agreed on, so the deletion stands.

Enums§

ContractModerationCounterpartyRole
The part a barred identity was asked to play in a document transition it did not sign.