ORM service configuration.
ProtectedbuildType name for field mapping.
Item to extract structured fields from.
Structured fields record for indexing.
ProtectedbuildBuild qualified Link & Lock field metadata, including optional fields.
ProtectedcleanupCreate a new item of the given type.
Type name to create.
Item payload to create.
Primary field value for the created item.
Create a new relationship between two items.
Relationship item to create.
When DAC is enabled and getOwnerPrefix is configured, relationship
creation requires:
from and to items.Optionalcontext: TypeInfoORMContextTrue when the relationship was created.
ProtecteddecodeOptionalcursor: stringCursor from list config.
Decoded offset for full-scan compare pagination.
Delete an existing item of the given type.
Type name to delete.
Primary field value to delete.
Optionalcontext: TypeInfoORMContextTrue when the delete succeeded.
Delete a relationship between two items.
Relationship item to delete.
When DAC is enabled and getOwnerPrefix is configured, relationship
deletion requires:
from and to items.Optionalcontext: TypeInfoORMContextDeletion results including whether items remain.
ProtectedemitEmit structured index write observability events without impacting behavior.
Type being indexed.
Indexed document id.
Structured indexing action.
Number of indexed fields in the write payload.
ProtectedemitEmit list routing decision observability events without impacting runtime behavior.
Type being listed.
Selected routing path.
Why this path was selected.
Number of criteria considered.
Optionalplan: IndexSearchDiagnosticsProtectedencodeNext offset in filtered/sorted results.
Encoded cursor for full-scan compare pagination.
ProtectedgetType name used to look up TypeInfo.
Item to clean.
OptionaldacFieldResources: Partial<Record<string, DACAccessResult>>Optional DAC field resource map.
OptionalselectedFields: string[]Optional selected fields to include.
Cleaned item with selected fields and DAC constraints applied.
ProtectedgetType name used to look up TypeInfo.
OptionalselectedFields: string[]Optional selected fields to include.
Sanitized selected fields or undefined for all fields.
ProtectedgetResolve all configured field capabilities for a type.
ProtectedgetType name used to clean the item.
Item snapshot to normalize.
Item snapshot normalized for indexing operations.
ProtectedgetIndexing relationship driver for relation indexing.
ProtectedgetWrite the provided item snapshot into the configured indexes.
Use this when data was created or modified outside TypeInfoORMService.
Type name for the indexed item.
Item snapshot to index.
Optional field overrides.
Promise resolved when manual indexing completes.
ProtectedisValue to check.
True when the value is a supported structured value.
List items of the given type, with the given criteria.
Type name to list.
List configuration and criteria.
OptionalselectedFields: string[]Optional fields to select.
Optionalcontext: TypeInfoORMContextList results with items and cursor.
ProtectedlistExecute a criteria list via full scan + in-memory compare.
This is the universal fallback strategy for criteria/operators that are not supported by indexed query planners.
Type name to list.
Original list config.
Selected fields for cleaned response.
Whether DAC checks are enabled.
Optionalcontext: TypeInfoORMContextOptional request context.
List results with cursor.
List related items for the relationship origin.
Relationship list configuration.
OptionalselectedFields: string[]Optional fields to select on related items.
Optionalcontext: TypeInfoORMContextItems and cursor for related items.
List the relationships for a given item.
Relationship list configuration.
Optionalcontext: TypeInfoORMContextRelationship items and paging cursor.
ProtectedmutatePromise resolved once indexing is complete.
Read an existing item of the given type.
Type name to read.
Primary field value to fetch.
OptionalselectedFields: string[]Optional fields to select.
Optionalcontext: TypeInfoORMContextCleaned item data.
Reindex the current stored item using the configured driver.
When no previous snapshot is supplied, the current stored item is used for
both removal and indexing to refresh existing postings without duplication.
Supply previousItem when an out-of-band update changed indexed field
values, otherwise stale index entries cannot be removed safely.
Type name to reindex.
Primary field value for the stored item.
Optional previous snapshot and indexed field overrides.
True when reindexing completed.
Reindex all currently stored items for a type.
This is intended for maintenance passes after out-of-band writes or
schema/index configuration changes. Deleted items still require explicit
cleanup via removeItemIndexes, because index removal needs a prior
snapshot of indexed field values. For out-of-band updates
that changed indexed values, provide previousItemsByPrimaryField.
Type name to reindex.
Paging, previous snapshots, and indexed field overrides.
Count of processed stored items.
Remove the provided item snapshot from the configured indexes.
Use this when data was deleted outside TypeInfoORMService.
Type name for the indexed item.
Item snapshot to remove from the indexes.
Optional field overrides.
Promise resolved when index cleanup completes.
Replace one indexed item snapshot with another.
Use this when an existing stored item changed outside TypeInfoORMService
or when a schema/config change requires removing old indexed fields and
indexing a new field set.
Type name for the indexed item.
Previous item snapshot to remove.
Next item snapshot to index.
Optional previous/next field overrides.
Promise resolved when replacement indexing completes.
ProtectedresolveResolve deterministic, deduplicated fields for mutation operations.
Optionaloverride: string[]ProtectedresolveResolve one globally ordered value capability.
Update an existing item of the given type.
This update will always act as a patch.
Use null to signify the deletion of a field.
Assign values to all fields to perform a replacement.
The item must always contain its primary field value.
Type name to update.
Item payload to update.
OptionalupdateConfig: TypeInfoORMUpdateConfigOptional per-field operator config.
Optionalcontext: TypeInfoORMContextTrue when the update succeeded.
ProtectedvalidateType name to validate.
Item to validate.
Operation being validated.
OptionalitemIsPartial: booleanWhether the item is a partial update.
Nothing (throws on invalid items).
ProtectedvalidateValidate a delete operation against only the item's primary field.
Delete receives an identity, not a complete item. The primary field still needs its normal operation and value validation, but unrelated required fields must not participate.
ProtectedvalidateType name to validate for read.
OptionalselectedFields: string[]Optional selected fields to validate.
Nothing (throws on invalid operations).
ProtectedvalidateRelationship item to validate.
Relationship fields to omit from validation.
Nothing (throws on invalid relationships).
ProtectedvalidateValidate update operator config against the target TypeInfo fields.
OptionalupdateConfig: TypeInfoORMUpdateConfig
TypeInfo-driven ORM service with optional DAC and indexing integrations.