Helpers (Python)

API reference for the iii-helpers package (Python).

Link to this sectionInstallation

Terminal
pip install iii-helpers

API reference for the iii-helpers package (Python).

Link to this sectionhttp

HTTP request/response types, auth config, and the http helper.

Import

from iii_helpers.http import ...

Link to this sectionFunctions

Link to this sectionhttp

Wrap a streaming handler so it receives typed StreamRequest and StreamResponse.

Takes a callback (req, res) -> HttpResponse | None and returns a function the iii engine can invoke directly. The wrapper converts the raw dict (or InternalHttpRequest) delivered by the engine into the typed StreamRequest / StreamResponse pair that the callback expects.

Signature

http(callback: Callable[[StreamRequest, StreamResponse], Awaitable[HttpResponse[Any] | None]]) -> Callable[[Any], Awaitable[HttpResponse[Any] | None]]

Link to this sectionParameters

callbackCallable[[StreamRequest, StreamResponse], Awaitable[HttpResponse[Any] | None]]required

Async handler (req, res) -> HttpResponse | None invoked with the typed StreamRequest and StreamResponse.

Link to this sectionTypes

HttpAuthApiKey · HttpAuthBearer · HttpAuthHmac · HttpInvocationConfig · HttpRequest · HttpResponse

Link to this sectionHttpAuthApiKey

API key sent via a custom header.

NameTypeRequiredDescription
headerstrYesHTTP header name for the API key.
typeLiteral['api_key']No-
value_keystrYesEnvironment variable name containing the API key value.

Link to this sectionHttpAuthBearer

Bearer token authentication.

NameTypeRequiredDescription
token_keystrYesEnvironment variable name containing the bearer token.
typeLiteral['bearer']No-

Link to this sectionHttpAuthHmac

HMAC signature verification using a shared secret.

NameTypeRequiredDescription
secret_keystrYesEnvironment variable name containing the HMAC shared secret.
typeLiteral['hmac']No-

Link to this sectionHttpInvocationConfig

Configuration for an HTTP-invoked function (Lambda, Cloudflare Workers, etc.).

.. deprecated:: HttpInvocationConfig is deprecated (iii-http-functions) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-http-functions

NameTypeRequiredDescription
authHttpAuthConfig | NoneNoAuthentication configuration (bearer, HMAC, or API key).
headersdict[str, str] | NoneNoAdditional HTTP headers to include in the request.
methodHttpMethodNoHTTP method. Defaults to 'POST'.
timeout_msint | NoneNoRequest timeout in milliseconds.
urlstrYesTarget URL for the HTTP invocation.

Link to this sectionHttpRequest

Incoming buffered HTTP request received by a function handler.

NameTypeRequiredDescription
bodyAny | NoneNoParsed request body.
headersdict[str, str | list[str]]NoRequest headers.
methodstrNoHTTP method of the request (e.g. GET, POST).
path_paramsdict[str, str]NoPath parameters extracted from the matched route.
query_paramsdict[str, str | list[str]]NoQuery-string parameters from the request URL.

Link to this sectionHttpResponse

Structured buffered HTTP response returned from function handlers.

NameTypeRequiredDescription
bodyAny | NoneNoResponse body.
headersdict[str, str]NoResponse headers.
status_codeintYesHTTP status code.

Link to this sectionobservability

Logger, OpenTelemetry config, and span helpers.

Import

from iii_helpers.observability import ...

Link to this sectionFunctions

Link to this sectioncurrent_span_id

Return current active span_id as 16-char hex, or None when unavailable.

Signature

current_span_id() -> str | None

Link to this sectioncurrent_span_is_recording

Returns False when there is no active span or the sampler dropped it.

Signature

current_span_is_recording() -> bool

Link to this sectioncurrent_trace_id

Return current active trace_id as 32-char hex, or None when unavailable.

Signature

current_trace_id() -> str | None

Link to this sectionexecute_traced_request

Execute an httpx Request inside an OTel CLIENT span.

  • Injects W3C traceparent into outgoing request headers.
  • Records HTTP semantic-convention attributes on the span.
  • Sets ERROR span status for responses with status >= 400.
  • Records exceptions for network-level errors.

Signature

async (client, request)

Link to this sectionParameters

clientAnyrequired

httpx async client used to send the request.

requestAnyrequired

The httpx request to execute.


Link to this sectionextract_baggage

Extract baggage from a W3C baggage header string.

Signature

extract_baggage(baggage: str) -> Any

Link to this sectionParameters

baggagestrrequired

W3C baggage header value.


Link to this sectionextract_traceparent

Extract a trace context from a W3C traceparent header string.

Signature

extract_traceparent(traceparent: str) -> Any

Link to this sectionParameters

traceparentstrrequired

W3C traceparent header value.


Link to this sectionflush_otel

Force-flush all OTel providers without tearing them down.

Counterpart to shutdown_otel. Use before short-lived process exits where you want pending spans/metrics/logs delivered but plan to keep using OTel afterwards.

Signature

async () -> None

Link to this sectioninit_otel

Initialize OpenTelemetry. Subsequent calls are no-ops.

Signature

init_otel(config: OtelConfig | None = None, loop: None = None) -> None

Link to this sectionParameters

configOtelConfig | None

OTel configuration.

loopNone

Running asyncio event loop. When provided, SharedEngineConnection starts immediately. When None, the connection is started lazily on first use (pre-start buffer absorbs early frames).


Link to this sectioninject_baggage

Inject the current baggage into a W3C baggage header string.

Signature

inject_baggage() -> str | None

Link to this sectioninject_traceparent

Inject the current trace context into a W3C traceparent header string.

Signature

inject_traceparent() -> str | None

Link to this sectionrecord_span_event

No-op when the current span is not recording.

Signature

record_span_event(name: str, attrs: dict[str, Any] | None = None) -> None

Link to this sectionParameters

namestrrequired

Name of the event to record on the current span.

attrsdict[str, Any] | None

Optional attributes attached to the event.


Link to this sectionredact

Recursively redact values of sensitive keys. Returns a new value.

Signature

redact(value: Any) -> Any

Link to this sectionParameters

valueAnyrequired

Value to redact; dicts, lists, and tuples are traversed recursively.


Link to this sectionredact_and_truncate

Redact then serialize to JSON, optionally capped at max_bytes.

Signature

redact_and_truncate(value: Any, max_bytes: Optional[int] = None) -> tuple[str, bool]

Link to this sectionParameters

valueAnyrequired

Value to redact and serialize.

max_bytesOptional[int]

Optional cap on the serialized byte length; unset, zero, or negative means no cap.


Link to this sectionresolve_max_bytes_from_env

Signature

resolve_max_bytes_from_env() -> Optional[int]

Link to this sectionset_current_span_attribute

No-op when the current span is not recording.

Signature

set_current_span_attribute(key: str, value: Any) -> None

Link to this sectionParameters

keystrrequired

Attribute name to set on the current span.

valueAnyrequired

Attribute value.


Link to this sectionset_current_span_error

No-op when there is no active span.

Signature

set_current_span_error(message: str) -> None

Link to this sectionParameters

messagestrrequired

Error message recorded on the current span's status.


Link to this sectionshutdown_otel

Shut down OTel synchronously (best-effort; does not await WS flush).

Signature

shutdown_otel() -> None

Link to this sectionwith_span

Start a new span and run fn(span) within it.

If the tracer is not initialized, fn is called with a no-op span that silently ignores attribute/event calls.

Signature

async (name: str, fn: Any, *, kind: Any = None, traceparent: str | None = None) -> Any

Link to this sectionParameters

namestrrequired

Span name.

fnAnyrequired

Async callable (span) -> T.

kindAny

Optional SpanKind. Defaults to INTERNAL.

traceparentstr | None

Optional W3C traceparent to use as parent context.

Link to this sectionTypes

BaggageSpanProcessor · Logger · OtelConfig · ReconnectionConfig

Link to this sectionBaggageSpanProcessor

OpenTelemetry span processor that copies OTel baggage entries onto each started span as attributes.

NameTypeRequiredDescription
force_flush(timeout_millis: int = 30000) -> boolYes-
on_end(span: ReadableSpan) -> NoneYes-
on_start(span: Span, parent_context: Context | None = None) -> NoneYes-
shutdown() -> NoneYes-

Link to this sectionLogger

Structured logger that emits logs as OpenTelemetry LogRecords.

Every log call automatically captures the active trace and span context, correlating your logs with distributed traces without any manual wiring. When OTel is not initialized, Logger gracefully falls back to Python logging.

Pass structured data as the second argument to any log method. Using a dict of key-value pairs (instead of string interpolation) lets you filter, aggregate, and build dashboards in your observability backend.

NameTypeRequiredDescription
debug(message: str, data: Any = None) -> NoneYesLog a debug-level message.
error(message: str, data: Any = None) -> NoneYesLog an error-level message.
info(message: str, data: Any = None) -> NoneYesLog an info-level message.
warn(message: str, data: Any = None) -> NoneYesLog a warning-level message.

Link to this sectionOtelConfig

Configuration for OpenTelemetry initialization.

NameTypeRequiredDescription
enabledbool | NoneNoEnable OTel. Defaults to True. Set OTEL_ENABLED=false/0/no/off to disable.
engine_ws_headersdict[str, str] | NoneNoHTTP headers sent on the telemetry WebSocket handshake (e.g. Authorization).
engine_ws_urlstr | NoneNoIII Engine WebSocket URL. The SDK sets the worker's address; otherwise env III_URL or 'ws://localhost:49134'.
fetch_instrumentation_enabledboolNoAuto-instrument urllib HTTP calls via URLLibInstrumentor. Defaults to True.
logs_batch_sizeint | NoneNoMaximum number of log records exported per batch. Defaults to 1 when not set.
logs_enabledbool | NoneNoEnable OTel log export via EngineLogExporter. Defaults to True when OTel is enabled.
logs_flush_interval_msint | NoneNoLog processor flush delay in milliseconds. Defaults to 100ms when not set.
metrics_enabledboolNoEnable OTel metrics export via EngineMetricsExporter. Defaults to True.
metrics_export_interval_msintNoMetrics export interval in milliseconds. Defaults to 60000 (60 seconds).
service_instance_idstr | NoneNoService instance ID. Defaults to a random UUID.
service_namestr | NoneNoService name. Defaults to env OTEL_SERVICE_NAME or 'iii-python-sdk'.
service_namespacestr | NoneNoService namespace attribute.
service_versionstr | NoneNoService version. Defaults to env SERVICE_VERSION or 'unknown'.
spans_flush_interval_msint | NoneNoSpan processor flush delay in milliseconds. Defaults to 100ms when not set.

The OpenTelemetry default of 5000ms is what makes traces appear seconds
after the action. Env override: OTEL_SPANS_FLUSH_INTERVAL_MS.

Link to this sectionReconnectionConfig

Configuration for WebSocket reconnection behavior.

NameTypeRequiredDescription
backoff_multiplierfloatNoExponential backoff multiplier. Default 2.0.
initial_delay_msintNoStarting delay in milliseconds. Default 1000.
jitter_factorfloatNoRandom jitter factor (0--1). Default 0.3.
max_delay_msintNoMaximum delay cap in milliseconds. Default 30000.
max_retriesintNoMaximum retry attempts. -1 for infinite. Default -1.

Link to this sectionqueue

Queue enqueue result types.

Import

from iii_helpers.queue import ...

Link to this sectionTypes

EnqueueResult

Link to this sectionEnqueueResult

Result returned when a function is called with CallAction.Enqueue.

NameTypeRequiredDescription
messageReceiptIdstrYesUnique receipt ID for the enqueued message.

Link to this sectionstream

Stream change events, IO inputs, and update operations.

Import

from iii_helpers.stream import ...

Link to this sectionTypes

StreamAuthInput · StreamAuthResult · StreamChangeEvent · StreamChangeEventDetail · StreamDeleteInput · StreamDeleteResult · StreamGetInput · StreamJoinLeaveEvent · StreamJoinResult · StreamListGroupsInput · StreamListInput · StreamSetInput · StreamSetResult · StreamUpdateInput · StreamUpdateResult · UpdateAppend · UpdateDecrement · UpdateIncrement · UpdateMerge · UpdateOpError · UpdateRemove · UpdateSet

Link to this sectionStreamAuthInput

Input for stream authentication.

.. deprecated:: StreamAuthInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
addrstrYesClient address.
headersdict[str, str]YesRequest headers.
pathstrYesRequest path.
query_paramsdict[str, list[str]]YesQuery parameters.

Link to this sectionStreamAuthResult

Result of stream authentication.

.. deprecated:: StreamAuthResult is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
contextAny | NoneNoArbitrary context passed to stream handlers after authentication.

Link to this sectionStreamChangeEvent

A stream change, from an item changed via stream::set, stream::update, or stream::delete.

.. deprecated:: StreamChangeEvent is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
eventStreamChangeEventDetailYesThe event detail containing mutation type and data.
groupIdstrYesThe group where the change occurred.
idstr | NoneNoThe item ID that changed.
streamNamestrYesThe stream where the change occurred.
timestampintYesUnix timestamp of the event.
typeLiteral['stream']YesThe event type.

Link to this sectionStreamChangeEventDetail

Detail of a stream change event containing the mutation type and data.

.. deprecated:: StreamChangeEventDetail is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
dataAnyYesThe data associated with the event.
typeLiteral['create', 'update', 'delete']YesThe kind of mutation (create, update, or delete).

Link to this sectionStreamDeleteInput

Input for stream delete operation.

.. deprecated:: StreamDeleteInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
group_idstrYesGroup identifier.
item_idstrYesItem identifier.
stream_namestrYesName of the stream.

Link to this sectionStreamDeleteResult

Result of stream delete operation.

NameTypeRequiredDescription
old_valueAny | NoneNoPrevious value (if it existed).

Link to this sectionStreamGetInput

Input for stream get operation.

.. deprecated:: StreamGetInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
group_idstrYesGroup identifier.
item_idstrYesItem identifier.
stream_namestrYesName of the stream.

Link to this sectionStreamJoinLeaveEvent

Event for stream join/leave.

.. deprecated:: StreamJoinLeaveEvent is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
contextAny | NoneNoAuth context from StreamAuthResult.
group_idstrYesGroup identifier.
idstr | NoneNoItem identifier (if applicable).
stream_namestrYesName of the stream.
subscription_idstrYesUnique subscription identifier.

Link to this sectionStreamJoinResult

Result of stream join.

.. deprecated:: StreamJoinResult is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
unauthorizedboolYesWhether the join was unauthorized.

Link to this sectionStreamListGroupsInput

Input for stream list groups operation.

.. deprecated:: StreamListGroupsInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
stream_namestrYesName of the stream.

Link to this sectionStreamListInput

Input for stream list operation.

.. deprecated:: StreamListInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
group_idstrYesGroup identifier.
stream_namestrYesName of the stream.

Link to this sectionStreamSetInput

Input for stream set operation.

.. deprecated:: StreamSetInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
dataAnyYesData to store.
group_idstrYesGroup identifier.
item_idstrYesItem identifier.
stream_namestrYesName of the stream.

Link to this sectionStreamSetResult

Result of stream set operation.

NameTypeRequiredDescription
new_valueTDataYesNew value that was stored.
old_valueTData | NoneNoPrevious value (if it existed).

Link to this sectionStreamUpdateInput

Input for stream update operation.

.. deprecated:: StreamUpdateInput is deprecated (iii-stream) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams

NameTypeRequiredDescription
group_idstrYesGroup identifier.
item_idstrYesItem identifier.
opslist['UpdateOp']YesOrdered list of update operations to apply atomically.
stream_namestrYesName of the stream.

Link to this sectionStreamUpdateResult

Result of stream update operation.

NameTypeRequiredDescription
errorslist[UpdateOpError]NoPer-op errors. Emitted by merge and append for validation rejections (path depth/size, value depth, or a __proto__ / constructor / prototype segment or top-level key) and by append for the append.type_mismatch and append.target_not_object surfaces. Successfully applied ops are still reflected in new_value. The field is omitted from the JSON wire when empty.
new_valueTDataYesNew value after the update.
old_valueTData | NoneNoPrevious value (if it existed).

Link to this sectionUpdateAppend

Append an element to an array, concatenate a string, or push at a nested path.

The target is the root (when path is omitted, an empty string, or an empty list), a single first-level key (when path is a non-empty string), or an arbitrary nested location (when path is a list of literal segments).

Path forms accepted (mirrors UpdateMerge after #1547):

  • None / "" / []: append at the root.
  • "foo": append at the first-level key foo. A dotted string like "a.b" is the literal key "a.b", not traversed as a -> b.
  • ["a", "b", "c"]: nested path; each element is a literal segment.

Engine semantics:

  • Missing/non-object intermediates along a nested path are auto-created/replaced with {}.
  • At the leaf:
    • missing/null + nested path -> [value] (always an array)
    • missing/null + single-string path -> string-as-string for the string-concat tier, otherwise [value]
    • existing array -> push
    • existing string + string value -> concatenate
    • existing object/scalar at the leaf -> append.type_mismatch

Validation: invalid paths (depth > 32 segments, segment > 256 bytes, or any __proto__ / constructor / prototype segment) are rejected with a structured error in the errors field of the state::update / stream::update response. The append does not apply when an error is returned for that op.

NameTypeRequiredDescription
pathMergePath | NoneNoOptional path to the append target. Accepts a single first-level key (legacy string) or a list of literal segments for nested append. See MergePath.
typestrNo-
valueAnyYesValue to append. String targets only accept string values.

Link to this sectionUpdateDecrement

Decrement a numeric field by a given amount.

NameTypeRequiredDescription
byint | floatYesAmount to decrement by.
pathstrYesFirst-level field path.
typestrNo-

Link to this sectionUpdateIncrement

Increment a numeric field by a given amount.

NameTypeRequiredDescription
byint | floatYesAmount to increment by.
pathstrYesFirst-level field path.
typestrNo-

Link to this sectionUpdateMerge

Shallow merge an object into the target.

The target is the root (when path is omitted, an empty string, or an empty list) or an arbitrary nested location specified by an array of literal segments.

Path forms accepted:

  • None / "" / []: merge at the root.
  • "foo": equivalent to ["foo"]; single first-level key.
  • ["a", "b", "c"]: nested path. Each element is a literal key. ["a.b"] writes a single key named "a.b", not a -> b.

Engine semantics:

  • Missing or non-object intermediates along the path are auto-replaced with {}.
  • The merge is shallow at the target node (top-level keys of value overwrite same-named keys; siblings preserved).

Validation: invalid paths/values (depth > 32 segments, segment > 256 bytes, value depth > 16, > 1024 top-level keys, or any __proto__ / constructor / prototype segment or top-level key) are rejected with a structured error in the errors array of the state::update / stream::update response. The merge does not apply when an error is returned.

NameTypeRequiredDescription
pathMergePath | NoneNoOptional path to the merge target. See MergePath.
typestrNo-
valueAnyYesObject to merge. Must be a JSON object.

Link to this sectionUpdateOpError

Per-op error returned by state::update / stream::update.

Emitted by the merge and append ops when input violates the validation bounds, and by append for its type-mismatch and target-not-object cases. Successfully applied ops are still reflected in the response's new_value.

NameTypeRequiredDescription
codestrYesStable error code, e.g. "merge.path.too_deep".
doc_urlstr | NoneNoOptional documentation URL.
messagestrYesHuman-readable description with concrete numbers when applicable.
op_indexintYesIndex of the offending op within the original ops array.

Link to this sectionUpdateRemove

Remove a field at the given path.

NameTypeRequiredDescription
pathstrYesFirst-level field path.
typestrNo-

Link to this sectionUpdateSet

Set a field at the given path to a value.

NameTypeRequiredDescription
pathstrYesFirst-level field path. Use an empty string to target the root value.
typestrNo-
valueAnyYesValue to set.

Link to this sectionworker_connection_manager

RBAC auth and registration callback types.

Import

from iii_helpers.worker_connection_manager import ...

Link to this sectionTypes

AuthInput · AuthResult · OnFunctionRegistrationInput · OnFunctionRegistrationResult

Link to this sectionAuthInput

Input passed to the RBAC auth function during WebSocket upgrade.

Contains the HTTP headers, query parameters, and client IP from the connecting worker's upgrade request.

NameTypeRequiredDescription
headersdict[str, str]YesHTTP headers from the WebSocket upgrade request.
ip_addressstrYesIP address of the connecting client.
query_paramsdict[str, list[str]]YesQuery parameters from the upgrade URL. Each key maps to a list of values to support repeated keys.

Link to this sectionAuthResult

Return value from the RBAC auth function.

Controls which functions the authenticated worker can invoke and what context is forwarded to the middleware.

NameTypeRequiredDescription
allow_function_registrationboolNoWhether the worker may register new functions. Defaults to True if omitted.
allowed_functionslist[str]NoAdditional function IDs to allow beyond expose_functions, in the default namespace only. Put per-namespace grants in namespaces.
contextdict[str, Any]NoArbitrary context forwarded to the middleware function on every invocation.
forbidden_functionslist[str]NoFunction IDs to deny even if they match expose_functions.
function_registration_prefixstr | NoneNoOptional prefix applied to all function IDs registered by this worker.
namespacesdict[str, list[str]]NoGrants scoped to one namespace each, e.g. \{"orders": ["svc::*"]\}. The keys are also the namespaces the session may declare on engine::workers::register. Leave empty to add no namespace-scoped grants. The session may declare any namespace, and only allowed_functions and expose_functions apply.

Link to this sectionOnFunctionRegistrationInput

Input passed to the on_function_registration_function_id hook when a worker attempts to register a function through the RBAC port. Return an OnFunctionRegistrationResult with the (possibly mapped) fields, or raise an exception to deny the registration.

NameTypeRequiredDescription
args_formatAnyNoJSON Schema of the observers' args, when the registration sets one.
contextdict[str, Any]YesAuth context from AuthResult.context for this session.
descriptionstr | NoneNoHuman-readable description of the function.
function_idstrYesID of the function being registered.
metadatadict[str, Any] | NoneNoArbitrary metadata attached to the function.
namespacestrNoNamespace the function registers in. It is the explicit registration value, or default when the registration omitted it.
observableboolNoWhether other workers may observe the function.
privateboolNoWhether only the registering worker may call the function.

Link to this sectionOnFunctionRegistrationResult

Result returned from the on_function_registration_function_id hook. Omitted fields keep the original value from the registration request: return model_dump(exclude_none=True).

NameTypeRequiredDescription
args_formatAnyNoReplaces the registration's args_format.
descriptionstr | NoneNoMapped description.
function_idstr | NoneNoMapped function ID.
metadatadict[str, Any] | NoneNoMapped metadata.
observablebool | NoneNoReplaces the registration's observable.
privatebool | NoneNoReplaces the registration's private.