midas/sdk/dnsimple

Types

pub type App {
  App(
    client_id: String,
    client_secret: String,
    redirect_uri: String,
  )
}

Constructors

  • App(
      client_id: String,
      client_secret: String,
      redirect_uri: String,
    )

Constants

pub const api_host: String

Functions

pub fn accept_push(
  token: String,
  account: Int,
  push: Int,
  data: BitArray,
) -> Effect(Nil)
pub fn activate_zone_service(
  token: String,
  account: Int,
  zone: String,
) -> Effect(Dynamic)
pub fn add_domain_collaborator(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn apply_service_to_domain(
  token: String,
  account: Int,
  domain: String,
  service: String,
  data: BitArray,
) -> Effect(Nil)
pub fn apply_template_to_domain(
  token: String,
  account: Int,
  domain: String,
  template: String,
) -> Effect(Nil)
pub fn auth_redirect(
  redirect: Uri,
) -> Result(#(String, String), String)
pub fn authenticate(app: App) -> Effect(#(String, Int))
pub fn authorize_domain_transfer_out(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn cancel_domain_transfer(
  token: String,
  account: Int,
  domain: String,
  domaintransfer: Int,
) -> Effect(Dynamic)
pub fn change_domain_delegation(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn change_domain_delegation_from_vanity(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn change_domain_delegation_to_vanity(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn check_domain(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn check_registrant_change(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn check_zone_distribution(
  token: String,
  account: Int,
  zone: String,
) -> Effect(Dynamic)
pub fn check_zone_record_distribution(
  token: String,
  account: Int,
  zone: String,
  zonerecord: Int,
) -> Effect(Dynamic)
pub fn create_contact(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_domain(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_domain_delegation_signer_record(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_email_forward(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_primary_server(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_registrant_change(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_secondary_zone(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_template(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_template_record(
  token: String,
  account: Int,
  template: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_webhook(
  token: String,
  account: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn create_zone_record(
  token: String,
  account: Int,
  zone: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn deactivate_zone_service(
  token: String,
  account: Int,
  zone: String,
) -> Effect(Dynamic)
pub fn delete_contact(
  token: String,
  account: Int,
  contact: Int,
) -> Effect(Nil)
pub fn delete_domain(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn delete_domain_delegation_signer_record(
  token: String,
  account: Int,
  domain: String,
  ds: Int,
) -> Effect(Nil)
pub fn delete_email_forward(
  token: String,
  account: Int,
  domain: String,
  emailforward: Int,
) -> Effect(Nil)
pub fn delete_template(
  token: String,
  account: Int,
  template: String,
) -> Effect(Nil)
pub fn delete_template_record(
  token: String,
  account: Int,
  template: String,
  templaterecord: Int,
) -> Effect(Nil)
pub fn delete_webhook(
  token: String,
  account: Int,
  webhook: Int,
) -> Effect(Nil)
pub fn delete_zone_record(
  token: String,
  account: Int,
  zone: String,
  zonerecord: Int,
  data: BitArray,
) -> Effect(Nil)
pub fn disable_domain_auto_renewal(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn disable_domain_dnssec(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn disable_domain_transfer_lock(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn disable_vanity_name_servers(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn disable_whois_privacy(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn do_authenticate(
  app: App,
  state: String,
) -> Effect(#(String, Int))
pub fn domain_renew(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn domain_restore(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn download_certificate(
  token: String,
  account: Int,
  domain: String,
  certificate: Int,
) -> Effect(Dynamic)
pub fn enable_domain_auto_renewal(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Nil)
pub fn enable_domain_dnssec(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn enable_domain_transfer_lock(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn enable_vanity_name_servers(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn enable_whois_privacy(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_certificate(
  token: String,
  account: Int,
  domain: String,
  certificate: Int,
) -> Effect(Dynamic)
pub fn get_certificate_private_key(
  token: String,
  account: Int,
  domain: String,
  certificate: Int,
) -> Effect(Dynamic)
pub fn get_contact(
  token: String,
  account: Int,
  contact: Int,
) -> Effect(Dynamic)
pub fn get_domain(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_domain_delegation(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_domain_delegation_signer_record(
  token: String,
  account: Int,
  domain: String,
  ds: Int,
) -> Effect(Dynamic)
pub fn get_domain_dnssec(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_domain_premium_price(
  token: String,
  account: Int,
  domain: String,
  action action: Option(String),
) -> Effect(Dynamic)
pub fn get_domain_prices(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_domain_registration(
  token: String,
  account: Int,
  domain: String,
  domainregistration: Int,
) -> Effect(Dynamic)
pub fn get_domain_renewal(
  token: String,
  account: Int,
  domain: String,
  domainrenewal: Int,
) -> Effect(Dynamic)
pub fn get_domain_restore(
  token: String,
  account: Int,
  domain: String,
  domainrestore: Int,
) -> Effect(Dynamic)
pub fn get_domain_transfer(
  token: String,
  account: Int,
  domain: String,
  domaintransfer: Int,
) -> Effect(Dynamic)
pub fn get_domain_transfer_lock(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_email_forward(
  token: String,
  account: Int,
  domain: String,
  emailforward: Int,
) -> Effect(Dynamic)
pub fn get_primary_server(
  token: String,
  account: Int,
  primaryserver: Int,
) -> Effect(Dynamic)
pub fn get_registrant_change(
  token: String,
  account: Int,
  registrantchange: Int,
) -> Effect(Dynamic)
pub fn get_service(
  token: String,
  service: String,
) -> Effect(Dynamic)
pub fn get_template(
  token: String,
  account: Int,
  template: String,
) -> Effect(Dynamic)
pub fn get_template_record(
  token: String,
  account: Int,
  template: String,
  templaterecord: Int,
) -> Effect(Dynamic)
pub fn get_tld(token: String, tld: String) -> Effect(Dynamic)
pub fn get_tld_extended_attributes(
  token: String,
  tld: String,
) -> Effect(Dynamic)
pub fn get_webhook(
  token: String,
  account: Int,
  webhook: Int,
) -> Effect(Dynamic)
pub fn get_whois_privacy(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn get_zone(
  token: String,
  account: Int,
  zone: String,
) -> Effect(Dynamic)
pub fn get_zone_file(
  token: String,
  account: Int,
  zone: String,
) -> Effect(Dynamic)
pub fn get_zone_record(
  token: String,
  account: Int,
  zone: String,
  zonerecord: Int,
) -> Effect(Dynamic)
pub fn initiate_domain_push(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn issue_letsencrypt_certificate(
  token: String,
  account: Int,
  domain: String,
  purchase_id: Int,
) -> Effect(Dynamic)
pub fn issue_renewal_letsencrypt_certificate(
  token: String,
  account: Int,
  domain: String,
  certificate: Int,
  renewal_id: Int,
) -> Effect(Dynamic)
pub fn link_primary_server(
  token: String,
  account: Int,
  primaryserver: Int,
) -> Effect(Dynamic)
pub fn list_accounts(token: String) -> Effect(Dynamic)
pub fn list_certificates(
  token: String,
  account: Int,
  domain: String,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_charges(
  token: String,
  account: Int,
  start_date start_date: Option(String),
  end_date end_date: Option(String),
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_contacts(
  token: String,
  account: Int,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_domain_applied_services(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn list_domain_collaborators(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn list_domain_delegation_signer_records(
  token: String,
  account: Int,
  domain: String,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_domains(
  token: String,
  account: Int,
  name_like name_like: Option(String),
  registrant_id registrant_id: Option(Int),
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_email_forwards(
  token: String,
  account: Int,
  domain: String,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_primary_servers(
  token: String,
  account: Int,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_pushes(
  token: String,
  account: Int,
) -> Effect(Dynamic)
pub fn list_registrant_changes(
  token: String,
  account: Int,
  sort sort: Option(String),
  state state: Option(String),
  domain_id domain_id: Option(String),
  contact_id contact_id: Option(String),
) -> Effect(Dynamic)
pub fn list_services(
  token: String,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_template_records(
  token: String,
  account: Int,
  template: String,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_templates(
  token: String,
  account: Int,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_tlds(
  token: String,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_webhooks(
  token: String,
  account: Int,
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_zone_records(
  token: String,
  account: Int,
  zone: String,
  name_like name_like: Option(String),
  name name: Option(String),
  type_ type_: Option(String),
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn list_zones(
  token: String,
  account: Int,
  name_like name_like: Option(String),
  sort sort: Option(String),
) -> Effect(Dynamic)
pub fn purchase_letsencrypt_certificate(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn purchase_renewal_letsencrypt_certificate(
  token: String,
  account: Int,
  domain: String,
  certificate: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn query_dns_analytics(
  token: String,
  account: Int,
  start_date start_date: Option(String),
  end_date end_date: Option(String),
  groupings groupings: Option(String),
  sort sort: Option(String),
  page page: Option(Int),
  per_page per_page: Option(Int),
) -> Effect(Dynamic)
pub fn register_domain(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn reject_push(
  token: String,
  account: Int,
  push: Int,
) -> Effect(Nil)
pub fn remove_domain_collaborator(
  token: String,
  account: Int,
  domain: String,
  collaborator: Int,
) -> Effect(Nil)
pub fn remove_primary_server(
  token: String,
  account: Int,
  primaryserver: Int,
) -> Effect(Nil)
pub fn renew_whois_privacy(
  token: String,
  account: Int,
  domain: String,
) -> Effect(Dynamic)
pub fn token_request(
  client_id: String,
  client_secret: String,
  redirect_uri: String,
  code: String,
  state: String,
) -> Request(BitArray)
pub fn token_response(
  response: Response(BitArray),
) -> Result(#(String, Int), a)
pub fn transfer_domain(
  token: String,
  account: Int,
  domain: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn unapply_service_from_domain(
  token: String,
  account: Int,
  domain: String,
  service: String,
) -> Effect(Nil)
pub fn unlink_primary_server(
  token: String,
  account: Int,
  primaryserver: Int,
) -> Effect(Dynamic)
pub fn update_contact(
  token: String,
  account: Int,
  contact: Int,
  data: BitArray,
) -> Effect(Dynamic)
pub fn update_template(
  token: String,
  account: Int,
  template: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn update_zone_ns_records(
  token: String,
  account: Int,
  zone: String,
  data: BitArray,
) -> Effect(Dynamic)
pub fn update_zone_record(
  token: String,
  account: Int,
  zone: String,
  zonerecord: Int,
  data: BitArray,
) -> Effect(Dynamic)
Search Document