grant
Issue an access grant on a record (atom/verb/lexeme/pixel). The grant widens access for actors matching its rule. Caller must be able to manage the subject.
Inputs: 9 · Outputs: 1
Core concepts
Docs
Authoritative list of system primitives grouped by namespace. This page is generated from live API metadata so descriptions, inputs, and outputs stay aligned with the backend registry.
grant
Issue an access grant on a record (atom/verb/lexeme/pixel). The grant widens access for actors matching its rule. Caller must be able to manage the subject.
Inputs: 9 · Outputs: 1
revoke
Revoke (soft-delete) an access grant. Caller must be the grant issuer or a manager of the subject record.
Inputs: 1 · Outputs: 2
Inputs: 1 · Outputs: 1
Inputs: 2 · Outputs: 1
create
Return a new array from provided items. Supports mixed literals and pre-resolved values.
Inputs: 1 · Outputs: 1
filter
Filter an array of objects by a value at a key path. With `contains` (case-insensitive substring) or `equals` (exact). An empty/absent criterion returns the array unchanged, so a blank query is a no-op.
Inputs: 4 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
project
Project each element of an array into a new object by mapping output keys to source path(s), with first-present fallback and defaults. Lets a read verb shape an atom list into display rows.
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 1 · Outputs: 1
appendDataField
System primitive that appends a single FieldEntry to an atom's data map. Fails if the field name already exists (use a separate update primitive to overwrite).
Inputs: 6 · Outputs: 2
assignLexeme
System primitive that assigns one lexeme to an existing atom. Idempotent: already-assigned lexemes are no-ops.
Inputs: 2 · Outputs: 3
create
System primitive that creates an atom with optional initial data, lexemeIds, and visibility.
Inputs: 4 · Outputs: 2
Inputs: 1 · Outputs: 1
findByDataCriteria
List atoms by top-level data field presence and optional primitive value equality.
Inputs: 9 · Outputs: 2
findOrCreate
Idempotently return the caller's own atom matching `matchData`, creating it from `data`/`lexemeIds` when absent. Concurrent duplicate creates collapse to a single atom via the owner+namespace+slug partial unique index.
Inputs: 5 · Outputs: 3
findOrCreateDataField
Create a data field when missing, otherwise update it, while reusing append/update primitive behavior.
Inputs: 6 · Outputs: 5
getDataField
System primitive that returns one top-level atom.data field value without requiring full-atom handling in composed verbs.
Inputs: 3 · Outputs: 4
list
System primitive that queries atoms visible to the authenticated user. Supports filtering by lexeme, scope, visibility, and organization. Returns a paginated array of serialized atoms.
Inputs: 8 · Outputs: 2
Inputs: 1 · Outputs: 1
query
System primitive that queries atoms with constrained matcher filters and caller-selected sort.
Inputs: 11 · Outputs: 2
read
System primitive that reads a single atom and returns the public-safe serialized shape.
Inputs: 1 · Outputs: 1
removeDataField
System primitive that removes one field key from an atom data map.
Inputs: 2 · Outputs: 3
Inputs: 1 · Outputs: 1
setNestedDataField
Sets a nested FieldEntry under atom.data using a string[] path. Missing intermediate object entries are created automatically.
Inputs: 4 · Outputs: 4
Inputs: 2 · Outputs: 1
Inputs: 3 · Outputs: 1
snapshot
Sandbox-only primitive that clones an existing atom into the current sandbox session. Used by the verb editor's Test Run panel so a preview verb can mutate a copy of real (PRD) data without touching the original. The clone is owned by the caller, stamped with the sandbox marker, and carries the source atom id and version for diff display.
Inputs: 1 · Outputs: 2
transferOwnership
System primitive that transfers atom ownership to a user or organization atom.
Inputs: 3 · Outputs: 1
unassignLexeme
System primitive that removes one lexeme subscription from an atom.
Inputs: 2 · Outputs: 2
Inputs: 2 · Outputs: 2
updateDataField
System primitive that overwrites an existing FieldEntry on an atom data map.
Inputs: 7 · Outputs: 3
updateDataFields
System primitive that writes a bag of top-level atom.data fields by delegating each key to atom.findOrCreateDataField. This is a sequential loop and not a single-document atomic update across all keys.
Inputs: 5 · Outputs: 3
match
Pure predicate: evaluates a matcher expression against a candidate object and returns whether it matched.
Inputs: 2 · Outputs: 1
addMember
Create a collection membership atom for (collectionRef, targetType, targetId).
Inputs: 3 · Outputs: 2
Inputs: 1 · Outputs: 1
Inputs: 10 · Outputs: 1
list
List collections visible to the caller, including personal and organization-visible collections.
Inputs: 5 · Outputs: 2
Inputs: 3 · Outputs: 2
membershipsForTarget
List visible collection memberships for a target record.
Inputs: 4 · Outputs: 2
Inputs: 1 · Outputs: 1
Inputs: 3 · Outputs: 2
unassigned
List visible records of one targetType that have no active collection membership.
Inputs: 5 · Outputs: 3
Inputs: 10 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
validateArrayElements
Validate that every element in an array matches a selected built-in validator.
Inputs: 2 · Outputs: 2
Inputs: 2 · Outputs: 2
validateObjectShape
Validate object key shape against requiredKeys and allowedKeys constraints.
Inputs: 3 · Outputs: 2
Inputs: 3 · Outputs: 2
Inputs: 3 · Outputs: 2
validateRequired
Validate that a value is present (not null/undefined), with optional empty-string allowance.
Inputs: 2 · Outputs: 2
validateStringLength
Validate that a string length is within optional min/max bounds.
Inputs: 3 · Outputs: 2
Inputs: 2 · Outputs: 2
Inputs: 6 · Outputs: 2
Inputs: 5 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 6 · Outputs: 2
Inputs: 8 · Outputs: 2
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 2 · Outputs: 2
Inputs: 1 · Outputs: 1
setCategory
System primitive that assigns or clears top-level lexeme category reference.
Inputs: 2 · Outputs: 1
Inputs: 3 · Outputs: 1
snapshot
Sandbox-only primitive that clones an existing lexeme into the current sandbox session. Used by the verb editor's Test Run panel so a preview verb can mutate a copy of real (PRD) lexeme data without touching the original. The clone is owned by the caller, stamped with the sandbox marker, and carries the source lexeme id and version for diff display.
Inputs: 1 · Outputs: 2
transferOwnership
System primitive that transfers lexeme ownership to a user or organization atom.
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 2
Inputs: 4 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 4 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 3 · Outputs: 1
assertCurrentUserHas
Advisory permission check for the current user based on a license atom. Returns allowed=false instead of throwing for negative checks.
Inputs: 2 · Outputs: 3
assertOrgRole
Assert that the current user has the required effective role for an organization.
Inputs: 2 · Outputs: 3
findCurrentUserLicenseAtom
Finds the current user's license atom through the standard atom list/read path and returns a serialized atom or null.
Inputs: 2 · Outputs: 1
grantOrgRole
Grant an org role by creating (or reusing) an active org-role-grant atom.
Inputs: 3 · Outputs: 5
Inputs: 3 · Outputs: 5
Inputs: 5 · Outputs: 1
Inputs: 6 · Outputs: 2
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
setCategory
System primitive that assigns or clears top-level pixel category reference.
Inputs: 2 · Outputs: 1
transferOwnership
System primitive that transfers pixel ownership to a user or organization atom.
Inputs: 3 · Outputs: 1
Inputs: 7 · Outputs: 1
Inputs: 1 · Outputs: 2
decrypt
Admin-only: decrypts a sensitive-field envelope under a specified owner KEK. Prefer secret.reveal for application use.
Inputs: 2 · Outputs: 1
Inputs: 2 · Outputs: 1
reveal
Authorizes and decrypts a single sensitive field on a single atom. Emits a `secret.revealed` audit event.
Inputs: 2 · Outputs: 3
rewrap
Re-wraps every sensitive envelope on an atom under a new owner KEK without re-encrypting ciphertext (SOCIALLUX_THEORY §13.3).
Inputs: 3 · Outputs: 2
Inputs: 2 · Outputs: 1
format
Substitute {{key}} placeholders in a template with values from a provided object.
Inputs: 2 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 4 · Outputs: 2
Inputs: 3 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
extract
Extract a permission-trimmed surface.v1 manifest for a collection within an organization.
Inputs: 5 · Outputs: 16
publish
Publish a stable surface snapshot atom with canonical manifest hash and previous snapshot link.
Inputs: 5 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 1
Inputs: 1 · Outputs: 1
fire
Fire a single trigger atom against an originating AuditEvent, applying matcher/self-loop/depth guards.
Inputs: 2 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
listOrganizationMembers
System primitive that lists organization members and effective org roles.
Inputs: 1 · Outputs: 2
Inputs: 0 · Outputs: 1
Inputs: 0 · Outputs: 1
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
contract
Returns a developer-facing contract for a verb: how to call it, the inputs it needs, the output shape, and an example invocation.
Inputs: 1 · Outputs: 3
Inputs: 1 · Outputs: 1
Inputs: 6 · Outputs: 2
Inputs: 1 · Outputs: 1
Inputs: 1 · Outputs: 1
setCategory
System primitive that assigns or clears top-level verb category reference.
Inputs: 2 · Outputs: 1
transferOwnership
System primitive that transfers verb ownership to a user or organization atom.
Inputs: 3 · Outputs: 1
Inputs: 2 · Outputs: 1