dyna-record
    Preparing search index...

    Variable VectorIndexMetadataTransformConst

    VectorIndexMetadataTransform: ZodPipe<
        ZodObject<
            {
                fingerprint: ZodString;
                hashAlias: ZodOptional<ZodString>;
                inlineFilterAliases: ZodArray<ZodString>;
                model: ZodCustom<EmbeddingModelDescriptor, EmbeddingModelDescriptor>;
                name: ZodString;
                scopedBy: ZodOptional<
                    ZodCustom<() => EntityClass<default>, () => EntityClass<default>>,
                >;
            },
            $strip,
        >,
        ZodTransform<
            {
                dimensions: number;
                distanceFunction: VectorDistanceFunction;
                fingerprint: string;
                model: string;
                name: string;
                projection: "ALL";
                scopedBy?: string;
                searchSchema: { hash?: string; inlineFilters: string[] };
                vectorAttribute: "__dyna_vector";
            },
            {
                fingerprint: string;
                hashAlias?: string;
                inlineFilterAliases: string[];
                model: EmbeddingModelDescriptor;
                name: string;
                scopedBy?: () => EntityClass<default>;
            },
        >,
    > = ...

    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"
    • searchSchemahash (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)

    A serialized vector index metadata object