Sanity Library Reference Docs
    Preparing search index...

    Interface BaseIntentParams

    Base intent parameters

    dedupe with core

    interface BaseIntentParams {
        id?: string;
        mode?: string;
        template?: string;
        type?: string;
        [key: string]: string;
    }

    Indexable

    • [key: string]: string

      Arbitrary/custom parameters are generally discouraged - try to keep them to a minimum, or use payload (arbitrary JSON-serializable object) instead.

    Index

    Properties

    id?: string

    ID of the document to create/edit. Required for edit intents, optional for create.

    mode?: string

    Optional "mode" to use for edit intent. Known modes are structure and presentation.

    template?: string

    Name (ID) of initial value template to use for create intent. Optional.

    type?: string

    Document schema type name to create/edit. Required for create intents, optional for edit (but encouraged, safer and faster)