Skip to content

Interfaces

The Netlify SDK provides the following TypeScript interfaces.

Account

Properties

NameType
idstring
namestring
slugstring

BuildTokenValidationResponse

Properties

NameType
tokenstring
site_idstring
team_idstring

ConnectorConfig

Properties

NameTypeDescription
supports{ key: boolean }Specifies functionality that the connector supports. Possible keys are connect for Netlify Connect, visualEditor for Netlify Visual Editor, and deltaSync for cache settings.
typePrefixstringThe prefix to use for all types defined by the connector.
localDevOptions{ [key: string]: string | boolean | number } | undefinedOptional configuration options for local development.

EdgeFunctionsOptions

Properties

NameTypeDescription
prefixstringA prefix used to namespace edge functions. Helps to avoid conflicts between other edge functions in a user’s site.
shouldInjectFunctionfunctionAn optional function used to control whether or not a given function should be injected into a user’s site.

EnvironmentVariable

Properties

NameTypeDescription
keystringThe name of the environment variable.
scopesEnvironmentVariableScopeTypeThe scopes for this environment variable.
valuesEnvironmentVariableValue[]An array of values for this environment variable.

EnvironmentVariableScope

Properties

NameType
All"all"
Build"build"
Functions"functions"
Post processing"post-processing"
Runtime"runtime"

EnvironmentVariableScopeType

Properties

NameType
"all""all"
"build""build"
"functions""functions"
"post-processing""post-processing"
"runtime""runtime"

EnvironmentVariableValue

Properties

NameTypeDescription
valuestringThe value of the environment variable.
context_parameterstring | undefinedThe name of the context parameter that this value is associated with, if any.
contextDeployContextTypeThe deploy context for this value.

EnvVarRequest

An EnvVarRequest is either a string or the following object:

{
dev: string;
deployPreview: string;
production: string;
branchDeploys: string;
branch?: Record<string, string>;
};

FunctionsOptions

Properties

NameTypeDescription
prefixstringA prefix used to namespace edge functions. Helps to avoid conflicts between other edge functions in a user’s site.
shouldInjectFunctionfunctionAn optional function used to control whether or not a given function should be injected into a user’s site.

ExtensionResponse

Properties

NameType
configConfig
has_build_hook_enabledboolean

Site

Properties

NameType
idstring
namestring
build_settings{ env: Record<string, string | undefined> }
plugins{ package: string, pinned_version?: string }[]

Got it!

Your feedback helps us improve our docs.