Skip to content

Interfaces

The Netlify SDK provides the following TypeScript interfaces.

Account

Properties

NameType
idstring
namestring
slugstring

Site

Properties

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

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.

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.

EnvironmentVariable

Properties

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

EnvironmentVariableScopeType

Properties

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

EnvironmentVariableScope

Properties

NameType
All"all"
Functions"functions"
Build"build"

EnvVarRequest

An EnvVarRequest is either a string or the following object:

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

BuildTokenValidationResponse

Properties

NameType
tokenstring
site_idstring
team_idstring

IntegrationResponse

Properties

NameType
configConfig
has_build_hook_enabledboolean