mutation publish($domain: String!, $content: Upload!, $protocol: Protocol!, $subdirectory: String!, $siteConfig: SiteConfig!) {
    publish(domain: $domain, content: $content, protocol: $protocol, subdirectory: $subdirectory, siteConfig: $siteConfig) {
        domain
    }
}

mutation unpublish($domain: String!, $protocol: Protocol!) {
    unpublish(domain: $domain, protocol: $protocol) {
        domain
    }
}

mutation createUserWebhook($config: UserWebhookInput!) {
    createUserWebhook(config: $config) {
        id
    }
}

mutation deleteUserWebhook($id: Int!) {
    deleteUserWebhook(id: $id) {
        id
    }
}

query sites {
    sites {
        results {
            domain
            protocol
        }
    }
}

query userWebhooks {
    userWebhooks {
        results {
            id
            url
        }
    }
}
