Zod schema that transforms vector index metadata to the serializable
provisioning format surfaced through metadata(). Emits everything
consumers need to provision the index in IaC:
name — the DynamoDB IndexName
model — the embedding model descriptor's name only (never the provider
value, client config, or credentials — the provider is stripped)
vectorAttribute — table alias of the library-managed vector attribute
dimensions / distanceFunction — from the model descriptor
projection — always "ALL"
searchSchema — hash (the scoping foreign key's table alias, scoped
indexes only) and inlineFilters (sorted table aliases including the
auto-declared entity type filter)
fingerprint — stable hash of the search-schema configuration so IaC can
detect that a decorator change implies a destructive index replacement
scopedBy — the scope parent's entity class name, when scoped (thunks
serialize as names, the way relationship metadata serializes its target)
Zod schema that transforms vector index metadata to the serializable provisioning format surfaced through
metadata(). Emits everything consumers need to provision the index in IaC:name— the DynamoDB IndexNamemodel— the embedding model descriptor's name only (never the provider value, client config, or credentials — the provider is stripped)vectorAttribute— table alias of the library-managed vector attributedimensions/distanceFunction— from the model descriptorprojection— always"ALL"searchSchema—hash(the scoping foreign key's table alias, scoped indexes only) andinlineFilters(sorted table aliases including the auto-declared entity type filter)fingerprint— stable hash of the search-schema configuration so IaC can detect that a decorator change implies a destructive index replacementscopedBy— the scope parent's entity class name, when scoped (thunks serialize as names, the way relationship metadata serializes its target)