Sanity Library Reference Docs
    Preparing search index...
    • A notes-shaped array entry: the sugar's fixed of declares {body, actor, at} rows (NoteItem), which tells the audit log apart from other array kinds (e.g. the todoList sugar's {label, status}). Accepts both vocabularies — a deployed definition entry (type) and a resolved instance entry (_type) — so start-time and runtime surfaces share one verdict. Resolved-entry overload last, as on isTodoListEntry.

      Parameters

      Returns entry is {
          description?: string;
          editable?: Editable;
          group?: string[];
          initialValue?:
              | { type: "input" }
              | { query: string; type: "query" }
              | { type: "literal"; value: unknown }
              | {
                  field: string;
                  path?: string;
                  scope?: "workflow" | "stage";
                  type: "fieldRead";
              };
          name: string;
          required?: boolean;
          title?: string;
      } & {
          fields?: FieldShape[];
          of?: FieldShape[];
          options?: ChoiceOptions;
          roles?: string[];
          type: | "string"
          | "number"
          | "boolean"
          | "object"
          | "actor"
          | "datetime"
          | "array"
          | "text"
          | "url"
          | "doc.ref"
          | "doc.refs"
          | "subject"
          | "release.ref"
          | "progress"
          | "date"
          | "dueDate"
          | "dueDatetime"
          | "assignee"
          | "assignees";
          types?: string[];
          validation?: ScalarValidation;
      } & { type: "array" }

    • A notes-shaped array entry: the sugar's fixed of declares {body, actor, at} rows (NoteItem), which tells the audit log apart from other array kinds (e.g. the todoList sugar's {label, status}). Accepts both vocabularies — a deployed definition entry (type) and a resolved instance entry (_type) — so start-time and runtime surfaces share one verdict. Resolved-entry overload last, as on isTodoListEntry.

      Parameters

      Returns entry is {
          _key: string;
          _type: "array";
          description?: string;
          name: string;
          options?: ChoiceOptions;
          resolvedAt?: string;
          title?: string;
          validation?: ScalarValidation;
          value: Record<string, unknown>[];
      } & Record<never, never> & { of: FieldShape[] }