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
typePrefixstringThe prefix to use for all types defined by the connector.
localDevOptions{ [key: string]: string | boolean | number } | undefinedOptional configuration options for local development.

EdgeFunctionsOptions (beta)

Properties

NameType
prefixstring

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"
Functions"functions"
Build"build"

EnvironmentVariableScopeType

Properties

NameType
"functions""functions"
"build""build"
"all""all"

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 (beta)

Properties

NameType
prefixstring

IntegrationResponse

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 }[]