Log inGet started
Package

content_terms.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

content_terms

The terms of service a person accepts before they put content other people see under their OrigoZero account: a world made, forked or published, a comment, rating note, issue or review, a world chat post or direct message, an upload. An agent's tool call and an engine that booted offline are let through without a read. The ZeroMind ops that post content (zeromind.world, zeromind.engage) refuse a person's act the same way in the trusted layer, with termsRequired = true on the outcome.

Exports

  • NOT_ACCEPTED, UNREAD — the codes a refusal starts with.
  • PROMPT_SECONDS — how long an act waits on the person's answer to the terms prompt.
  • gate(answer) — what a terms read lets through: { allow }, or { allow = false, prompt }.
  • check() — where the account stands for the act about to be made: { allow, exempt?, prompt? }. Yields.
  • accept(version) — record the version in force; the engine's dialog asks the person to confirm it. Yields.
  • present(fn) / presenting() — register the screen that asks the person, and whether one is.
  • ask(prompt) — ask the person through that screen; true once they accepted.
  • ensure(verb) — hold an act to the terms: return when it may go ahead, ask first when it may not, raise the refusal otherwise.
  • askAgain(outcome) — for an op the trusted layer refused over the terms: ask, and answer whether to send it again.
  • refusal(verb, prompt) / isRefusal(err) — the refusal text, and whether a text is one.
  • heldBackText(err) — the line a screen shows for an act held back because the account has not accepted the terms, in the person's language; nil for any other error.