netlify
Types
Values
pub fn add_member_to_account(
token: String,
account_slug: String,
data: schema.AccountAddMemberSetup,
) -> task.Effect(Result(List(schema.Member), schema.Error), a)
pub fn auth_redirect(
redirect: uri.Uri,
) -> Result(#(String, String, String), String)
pub fn authenticate(app: App) -> task.Effect(String, a)
pub fn base_request(token: String) -> request.Request(BitArray)
pub fn cancel_account(
token: String,
account_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn cancel_site_deploy(
token: String,
deploy_id: String,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn configure_dnsfor_site(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.DnsZone), schema.Error), a)
pub fn create_account(
token: String,
data: schema.AccountSetup,
) -> task.Effect(
Result(schema.AccountMembership, schema.Error),
a,
)
pub fn create_deploy_key(
token: String,
) -> task.Effect(Result(schema.DeployKey, schema.Error), a)
pub fn create_dns_record(
token: String,
zone_id: String,
data: schema.DnsRecordCreate,
) -> task.Effect(Result(schema.DnsRecord, schema.Error), a)
pub fn create_dns_zone(
token: String,
data: schema.DnsZoneSetup,
) -> task.Effect(Result(schema.DnsZone, schema.Error), a)
pub fn create_env_vars(
token: String,
account_id: String,
data: List(operations.Internal0),
site_id site_id: option.Option(String),
) -> task.Effect(Result(List(schema.EnvVar), schema.Error), a)
pub fn create_hook_by_site_id(
token: String,
data: schema.Hook,
site_id site_id: String,
) -> task.Effect(Result(schema.Hook, schema.Error), a)
pub fn create_service_instance(
token: String,
site_id: String,
addon: String,
data: dict.Dict(String, utils.Any),
) -> task.Effect(Result(schema.ServiceInstance, schema.Error), a)
pub fn create_site(
token: String,
data: #(schema.Site, schema.Internal9),
configure_dns configure_dns: option.Option(Bool),
) -> task.Effect(Result(schema.Site, schema.Error), a)
pub fn create_site_asset(
token: String,
site_id: String,
name name: String,
size size: Int,
content_type content_type: String,
visibility visibility: option.Option(String),
) -> task.Effect(Result(schema.AssetSignature, schema.Error), a)
pub fn create_site_build(
token: String,
site_id: String,
data: schema.BuildSetup,
) -> task.Effect(Result(schema.Build, schema.Error), a)
pub fn create_site_build_hook(
token: String,
site_id: String,
data: schema.BuildHookSetup,
) -> task.Effect(Result(schema.BuildHook, schema.Error), a)
pub fn create_site_deploy(
token: String,
site_id: String,
data: schema.DeployFiles,
title title: option.Option(String),
deploy_previews deploy_previews: option.Option(Bool),
production production: option.Option(Bool),
state state: option.Option(String),
branch branch: option.Option(String),
latest_published latest_published: option.Option(Bool),
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn create_site_dev_server(
token: String,
site_id: String,
branch branch: option.Option(String),
) -> task.Effect(Result(List(schema.DevServer), schema.Error), a)
pub fn create_site_dev_server_hook(
token: String,
site_id: String,
data: schema.DevServerHookSetup,
) -> task.Effect(Result(schema.DevServerHook, schema.Error), a)
pub fn create_site_in_team(
token: String,
account_slug: String,
data: #(schema.Site, schema.Internal9),
configure_dns configure_dns: option.Option(Bool),
) -> task.Effect(Result(schema.Site, schema.Error), a)
pub fn create_site_snippet(
token: String,
site_id: String,
data: schema.Snippet,
) -> task.Effect(Result(schema.Snippet, schema.Error), a)
pub fn create_split_test(
token: String,
site_id: String,
data: schema.SplitTestSetup,
) -> task.Effect(Result(schema.SplitTest, schema.Error), a)
pub fn create_ticket(
token: String,
client_id client_id: String,
) -> task.Effect(Result(schema.Ticket, schema.Error), a)
pub fn delete_deploy(
token: String,
deploy_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_deploy_key(
token: String,
key_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_dns_record(
token: String,
zone_id: String,
dns_record_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_dns_zone(
token: String,
zone_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_env_var(
token: String,
account_id: String,
key: String,
site_id site_id: option.Option(String),
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_env_var_value(
token: String,
account_id: String,
key: String,
id: String,
site_id site_id: option.Option(String),
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_hook(
token: String,
hook_id: String,
) -> task.Effect(Result(Nil, response.Response(BitArray)), a)
pub fn delete_service_instance(
token: String,
site_id: String,
addon: String,
instance_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site(
token: String,
site_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_asset(
token: String,
site_id: String,
asset_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_build_hook(
token: String,
site_id: String,
id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_deploy(
token: String,
site_id: String,
deploy_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_dev_server_hook(
token: String,
site_id: String,
id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_dev_servers(
token: String,
site_id: String,
branch branch: option.Option(String),
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_form(
token: String,
site_id: String,
form_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_site_snippet(
token: String,
site_id: String,
snippet_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn delete_submission(
token: String,
submission_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn deploy_site(
token: String,
site_id: String,
files: List(#(String, BitArray)),
) -> task.Effect(String, a)
pub fn disable_split_test(
token: String,
site_id: String,
split_test_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn enable_hook(
token: String,
hook_id: String,
) -> task.Effect(Result(schema.Hook, schema.Error), a)
pub fn enable_split_test(
token: String,
site_id: String,
split_test_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn exchange_ticket(
token: String,
ticket_id: String,
) -> task.Effect(Result(schema.AccessToken, schema.Error), a)
pub fn get_account(
token: String,
account_id: String,
) -> task.Effect(
Result(List(schema.AccountMembership), schema.Error),
a,
)
pub fn get_account_build_status(
token: String,
account_id: String,
) -> task.Effect(
Result(List(schema.BuildStatus), schema.Error),
a,
)
pub fn get_account_member(
token: String,
account_slug: String,
member_id: String,
) -> task.Effect(Result(schema.Member, schema.Error), a)
pub fn get_current_user(
token: String,
) -> task.Effect(Result(List(schema.User), schema.Error), a)
pub fn get_deploy(
token: String,
deploy_id: String,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn get_deploy_key(
token: String,
key_id: String,
) -> task.Effect(Result(schema.DeployKey, schema.Error), a)
pub fn get_dns_records(
token: String,
zone_id: String,
) -> task.Effect(Result(List(schema.DnsRecord), schema.Error), a)
pub fn get_dns_zone(
token: String,
zone_id: String,
) -> task.Effect(Result(schema.DnsZone, schema.Error), a)
pub fn get_dns_zones(
token: String,
account_slug account_slug: option.Option(String),
) -> task.Effect(Result(List(schema.DnsZone), schema.Error), a)
pub fn get_dnsfor_site(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.DnsZone), schema.Error), a)
pub fn get_env_var(
token: String,
account_id: String,
key: String,
site_id site_id: option.Option(String),
) -> task.Effect(Result(schema.EnvVar, schema.Error), a)
pub fn get_env_vars(
token: String,
account_id: String,
context_name context_name: option.Option(String),
scope scope: option.Option(String),
site_id site_id: option.Option(String),
) -> task.Effect(Result(List(schema.EnvVar), schema.Error), a)
pub fn get_hook(
token: String,
hook_id: String,
) -> task.Effect(Result(schema.Hook, schema.Error), a)
pub fn get_individual_dns_record(
token: String,
zone_id: String,
dns_record_id: String,
) -> task.Effect(Result(schema.DnsRecord, schema.Error), a)
pub fn get_services(
token: String,
search search: option.Option(String),
) -> task.Effect(Result(List(schema.Service), schema.Error), a)
pub fn get_site(
token: String,
site_id: String,
) -> task.Effect(Result(schema.Site, schema.Error), a)
pub fn get_site_asset_info(
token: String,
site_id: String,
asset_id: String,
) -> task.Effect(Result(schema.Asset, schema.Error), a)
pub fn get_site_asset_public_signature(
token: String,
site_id: String,
asset_id: String,
) -> task.Effect(
Result(schema.AssetPublicSignature, schema.Error),
a,
)
pub fn get_site_build(
token: String,
build_id: String,
) -> task.Effect(Result(schema.Build, schema.Error), a)
pub fn get_site_build_hook(
token: String,
site_id: String,
id: String,
) -> task.Effect(Result(schema.BuildHook, schema.Error), a)
pub fn get_site_deploy(
token: String,
site_id: String,
deploy_id: String,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn get_site_dev_server(
token: String,
site_id: String,
dev_server_id: String,
) -> task.Effect(
Result(schema.DevServer, response.Response(BitArray)),
a,
)
pub fn get_site_dev_server_hook(
token: String,
site_id: String,
id: String,
) -> task.Effect(Result(schema.DevServerHook, schema.Error), a)
pub fn get_site_env_vars(
token: String,
site_id: String,
context_name context_name: option.Option(String),
scope scope: option.Option(String),
) -> task.Effect(Result(List(schema.EnvVar), schema.Error), a)
pub fn get_site_file_by_path_name(
token: String,
site_id: String,
file_path: String,
) -> task.Effect(Result(schema.File, schema.Error), a)
pub fn get_site_metadata(
token: String,
site_id: String,
) -> task.Effect(
Result(dict.Dict(String, utils.Any), schema.Error),
a,
)
pub fn get_site_snippet(
token: String,
site_id: String,
snippet_id: String,
) -> task.Effect(Result(schema.Snippet, schema.Error), a)
pub fn get_split_test(
token: String,
site_id: String,
split_test_id: String,
) -> task.Effect(Result(schema.SplitTest, schema.Error), a)
pub fn get_split_tests(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.SplitTest), schema.Error), a)
pub fn list_account_audit_events(
token: String,
account_id: String,
query query: option.Option(String),
log_type log_type: option.Option(String),
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.AuditLog), schema.Error), a)
pub fn list_account_types_for_user(
token: String,
) -> task.Effect(
Result(List(schema.AccountType), schema.Error),
a,
)
pub fn list_accounts_for_user(
token: String,
) -> task.Effect(
Result(List(schema.AccountMembership), schema.Error),
a,
)
pub fn list_deploy_keys(
token: String,
) -> task.Effect(Result(List(schema.DeployKey), schema.Error), a)
pub fn list_form_submission(
token: String,
submission_id: String,
query query: option.Option(String),
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.Submission), schema.Error), a)
pub fn list_form_submissions(
token: String,
form_id: String,
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.Submission), schema.Error), a)
pub fn list_hook_types(
token: String,
) -> task.Effect(Result(List(schema.HookType), schema.Error), a)
pub fn list_hooks_by_site_id(
token: String,
site_id site_id: String,
) -> task.Effect(Result(List(schema.Hook), schema.Error), a)
pub fn list_members_for_account(
token: String,
account_slug: String,
) -> task.Effect(Result(List(schema.Member), schema.Error), a)
pub fn list_payment_methods_for_user(
token: String,
) -> task.Effect(
Result(List(schema.PaymentMethod), schema.Error),
a,
)
pub fn list_service_instances_for_site(
token: String,
site_id: String,
) -> task.Effect(
Result(List(schema.ServiceInstance), schema.Error),
a,
)
pub fn list_site_assets(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.Asset), schema.Error), a)
pub fn list_site_build_hooks(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.BuildHook), schema.Error), a)
pub fn list_site_builds(
token: String,
site_id: String,
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.Build), schema.Error), a)
pub fn list_site_deployed_branches(
token: String,
site_id: String,
) -> task.Effect(
Result(List(schema.DeployedBranch), schema.Error),
a,
)
pub fn list_site_deploys(
token: String,
site_id: String,
page page: option.Option(Int),
per_page per_page: option.Option(Int),
deploy_previews deploy_previews: option.Option(Bool),
production production: option.Option(Bool),
state state: option.Option(String),
branch branch: option.Option(String),
latest_published latest_published: option.Option(Bool),
) -> task.Effect(Result(List(schema.Deploy), schema.Error), a)
pub fn list_site_dev_server_hooks(
token: String,
site_id: String,
) -> task.Effect(
Result(List(schema.DevServerHook), schema.Error),
a,
)
pub fn list_site_dev_servers(
token: String,
site_id: String,
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.DevServer), schema.Error), a)
pub fn list_site_files(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.File), schema.Error), a)
pub fn list_site_forms(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.Form), schema.Error), a)
pub fn list_site_snippets(
token: String,
site_id: String,
) -> task.Effect(Result(List(schema.Snippet), schema.Error), a)
pub fn list_site_submissions(
token: String,
site_id: String,
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.Submission), schema.Error), a)
pub fn list_sites(
token: String,
name name: option.Option(String),
filter filter: option.Option(String),
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.Site), schema.Error), a)
pub fn list_sites_for_account(
token: String,
account_slug: String,
name name: option.Option(String),
page page: option.Option(Int),
per_page per_page: option.Option(Int),
) -> task.Effect(Result(List(schema.Site), schema.Error), a)
pub fn lock_deploy(
token: String,
deploy_id: String,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn notify_build_start(
token: String,
build_id: String,
buildbot_version buildbot_version: option.Option(String),
build_version build_version: option.Option(String),
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn provision_site_tlscertificate(
token: String,
site_id: String,
certificate certificate: option.Option(String),
key key: option.Option(String),
ca_certificates ca_certificates: option.Option(String),
) -> task.Effect(Result(schema.SniCertificate, schema.Error), a)
pub fn purge_cache(
token: String,
data: schema.Purge,
) -> task.Effect(Result(Nil, Nil), a)
pub fn remove_account_member(
token: String,
account_slug: String,
member_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn restore_site_deploy(
token: String,
site_id: String,
deploy_id: String,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn rollback_site_deploy(
token: String,
site_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn search_site_functions(
token: String,
site_id: String,
filter filter: option.Option(String),
) -> task.Effect(
Result(List(schema.SiteFunction), schema.Error),
a,
)
pub fn set_env_var_value(
token: String,
account_id: String,
key: String,
data: operations.SetEnvVarValueRequest,
site_id site_id: option.Option(String),
) -> task.Effect(Result(schema.EnvVar, schema.Error), a)
pub fn show_service(
token: String,
addon_name: String,
) -> task.Effect(Result(schema.Service, schema.Error), a)
pub fn show_service_instance(
token: String,
site_id: String,
addon: String,
instance_id: String,
) -> task.Effect(Result(schema.ServiceInstance, schema.Error), a)
pub fn show_service_manifest(
token: String,
addon_name: String,
) -> task.Effect(
Result(dict.Dict(String, utils.Any), schema.Error),
a,
)
pub fn show_site_tlscertificate(
token: String,
site_id: String,
) -> task.Effect(Result(schema.SniCertificate, schema.Error), a)
pub fn show_ticket(
token: String,
ticket_id: String,
) -> task.Effect(Result(schema.Ticket, schema.Error), a)
pub fn transfer_dns_zone(
token: String,
zone_id: String,
account_id account_id: String,
transfer_account_id transfer_account_id: String,
transfer_user_id transfer_user_id: String,
) -> task.Effect(Result(schema.DnsZone, schema.Error), a)
pub fn unlink_site_repo(
token: String,
site_id: String,
) -> task.Effect(Result(schema.Site, Nil), a)
pub fn unlock_deploy(
token: String,
deploy_id: String,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn update_account(
token: String,
account_id: String,
data: schema.AccountUpdateSetup,
) -> task.Effect(
Result(schema.AccountMembership, schema.Error),
a,
)
pub fn update_account_member(
token: String,
account_slug: String,
member_id: String,
data: schema.AccountUpdateMemberSetup,
) -> task.Effect(Result(schema.Member, schema.Error), a)
pub fn update_env_var(
token: String,
account_id: String,
key: String,
data: operations.UpdateEnvVarRequest,
site_id site_id: option.Option(String),
) -> task.Effect(Result(schema.EnvVar, schema.Error), a)
pub fn update_hook(
token: String,
hook_id: String,
data: schema.Hook,
) -> task.Effect(Result(schema.Hook, schema.Error), a)
pub fn update_service_instance(
token: String,
site_id: String,
addon: String,
instance_id: String,
data: dict.Dict(String, utils.Any),
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn update_site(
token: String,
site_id: String,
data: #(schema.Site, schema.Internal9),
) -> task.Effect(Result(schema.Site, schema.Error), a)
pub fn update_site_asset(
token: String,
site_id: String,
asset_id: String,
state state: String,
) -> task.Effect(Result(schema.Asset, schema.Error), a)
pub fn update_site_build_hook(
token: String,
site_id: String,
id: String,
data: schema.BuildHookSetup,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn update_site_build_log(
token: String,
build_id: String,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn update_site_deploy(
token: String,
site_id: String,
deploy_id: String,
data: schema.DeployFiles,
) -> task.Effect(Result(schema.Deploy, schema.Error), a)
pub fn update_site_dev_server_hook(
token: String,
site_id: String,
id: String,
data: schema.DevServerHookSetup,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn update_site_metadata(
token: String,
site_id: String,
data: dict.Dict(String, utils.Any),
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn update_site_snippet(
token: String,
site_id: String,
snippet_id: String,
data: schema.Snippet,
) -> task.Effect(Result(Nil, schema.Error), a)
pub fn update_split_test(
token: String,
site_id: String,
split_test_id: String,
data: schema.SplitTestSetup,
) -> task.Effect(Result(schema.SplitTest, schema.Error), a)
pub fn upload_deploy_file(
token: String,
deploy_id: String,
path_: String,
size size: option.Option(Int),
) -> task.Effect(Result(schema.File, schema.Error), a)
pub fn upload_deploy_function(
token: String,
deploy_id: String,
name: String,
runtime runtime: option.Option(String),
invocation_mode invocation_mode: option.Option(String),
timeout timeout: option.Option(Int),
size size: option.Option(Int),
) -> task.Effect(Result(schema.Function, schema.Error), a)