New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@sanity/agent-types

Package Overview
Dependencies
Maintainers
113
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/agent-types

Type definitions for Sanity Agent

latest
Source
npmnpm
Version
0.0.78
Version published
Maintainers
113
Created
Source

@sanity/agent-types

Type definitions for Sanity Agent

Installation

npm install @sanity/agent-types

Usage

This package provides TypeScript type definitions and Zod schemas for the Sanity Agent API.

import { Context, DocumentBase, IntentType } from '@sanity/agent-types';

// Use types in your application

Available Types

The package includes the following categories of types:

  • Context: Types for agent context and persistent context
  • Document: Types for Sanity documents and document previews
  • Intent: Types for agent intents and parameters
  • Messages: Types for WebSocket communication messages

License

MIT

Keywords

sanity

FAQs

Package last updated on 03 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts