Static ReadonlyAuthorizesChecks the caller's Schema Management authorization itself (checkAuthorization).
Whether this action can bound what it returns to an audience (RunActionParams.Audience): everyone
besides the caller who will see its output, such as the other participants of a shared conversation.
false by default, and the engine enforces it: when a run's audience adds a reader beyond the caller,
ActionEngineServer.RunAction refuses the action with result code AUDIENCE_UNSUPPORTED, without running
it. Override to return true only when the action honours the audience in full — every record, snippet
and count it returns is something every reader may see (pass the audience to the search engine, check each
reader's entitlement to anything it scopes by, and leave out aggregates computed before that filtering).
ProtectedaddAppend an output param to the params array so callers can read results.
ProtectedbuildBuild PipelineExecutionOptions from action params.
ProtectedbuildMap a PipelineExecutionResult to ActionResultSimple and populate output params so workflow engines can read EntityID, EntityName, etc.
ProtectedcheckCheck that the contextUser holds the authorization required for the requested operation type. Returns an error string on failure, null on success.
ProtectedgetExtract a boolean param by name with a fallback default.
ProtectedgetExtract the ModificationType param ('create' | 'alter'). Defaults to 'create'.
ProtectedgetExtract a string param by name, returning undefined when absent.
ProtectedgetExtract and parse the TableDefinition param (JSON object or string).
Returns { error } on missing/malformed input, { td } on success.
ProtectedhandleCommon error handler for unexpected exceptions.
ProtectedInternalInternal method that must be implemented by derived action classes. This is where the actual action logic should be implemented.
The action execution parameters including typed context
Promise resolving to the action result
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Base class for all actions. All actions will derive from this class and be instantiated by the ClassFactory within the @memberjunctin/global package.
Example