diff --git a/package-lock.json b/package-lock.json index 3f64796..2460dd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1164,9 +1164,9 @@ "dev": true }, "@netlify/open-api": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-0.15.0.tgz", - "integrity": "sha512-Nk1NswVrUtI7SDbyn/uvITYeIG5iukKlhsu/6fg4k1G5RMHqMDtVHy+2qcOhKmkf7Qc3ZkIKKd2mQfM6zg2cxw==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-0.16.0.tgz", + "integrity": "sha512-o3QI9hAe6lspQysWrB8CygMO4h+7B4qtPDkacitZ4VPBR26rX2TASq0/x1TNa4TnFG2lNgzkuBWhtXAmd/9tdw==" }, "@netlify/zip-it-and-ship-it": { "version": "1.3.10", diff --git a/package.json b/package.json index 318edeb..c3a8cc4 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "node client" ], "dependencies": { - "@netlify/open-api": "^0.15.0", + "@netlify/open-api": "^0.16.0", "@netlify/zip-it-and-ship-it": "^1.3.10", "backoff": "^2.5.0", "clean-deep": "^3.3.0", diff --git a/src/operations.test.js.md b/src/operations.test.js.md index e685c9e..0377607 100644 --- a/src/operations.test.js.md +++ b/src/operations.test.js.md @@ -2459,6 +2459,56 @@ Generated by [AVA](https://ava.li). ], verb: 'get', }, + { + operationId: 'deleteSiteForm', + parameters: { + body: {}, + path: { + form_id: { + in: 'path', + name: 'form_id', + required: true, + type: 'string', + }, + site_id: { + in: 'path', + name: 'site_id', + required: true, + type: 'string', + }, + }, + query: {}, + }, + path: '/sites/{site_id}/forms/{form_id}', + responses: { + 204: { + description: 'Deleted', + }, + default: { + description: 'error', + schema: { + properties: { + code: { + format: 'int64', + type: 'integer', + }, + message: { + type: 'string', + 'x-nullable': false, + }, + }, + required: [ + 'message', + ], + type: 'object', + }, + }, + }, + tags: [ + 'form', + ], + verb: 'delete', + }, { operationId: 'listSiteSubmissions', parameters: { @@ -4253,6 +4303,9 @@ Generated by [AVA](https://ava.li). async: { type: 'boolean', }, + branch: { + type: 'string', + }, draft: { type: 'boolean', }, @@ -4588,6 +4641,9 @@ Generated by [AVA](https://ava.li). async: { type: 'boolean', }, + branch: { + type: 'string', + }, draft: { type: 'boolean', }, @@ -5269,6 +5325,347 @@ Generated by [AVA](https://ava.li). ], verb: 'get', }, + { + description: `[Beta] Unlinks the repo from the site.␊ + ␊ + This action will also:␊ + - Delete associated deploy keys␊ + - Delete outgoing webhooks for the repo␊ + - Delete the site's build hooks`, + operationId: 'unlinkSiteRepo', + parameters: { + body: {}, + path: { + site_id: { + in: 'path', + name: 'site_id', + required: true, + type: 'string', + }, + }, + query: {}, + }, + path: '/sites/{site_id}/unlink_repo', + responses: { + 200: { + description: 'OK', + schema: { + properties: { + account_name: { + type: 'string', + }, + account_slug: { + type: 'string', + }, + admin_url: { + type: 'string', + }, + build_image: { + type: 'string', + }, + build_settings: { + properties: { + allowed_branches: { + items: { + type: 'string', + }, + type: 'array', + }, + cmd: { + type: 'string', + }, + deploy_key_id: { + type: 'string', + }, + dir: { + type: 'string', + }, + env: { + additionalProperties: { + type: 'string', + }, + type: 'object', + }, + id: { + type: 'integer', + }, + installation_id: { + type: 'integer', + }, + private_logs: { + type: 'boolean', + }, + provider: { + type: 'string', + }, + public_repo: { + type: 'boolean', + }, + repo_branch: { + type: 'string', + }, + repo_path: { + type: 'string', + }, + repo_url: { + type: 'string', + }, + stop_builds: { + type: 'boolean', + }, + }, + type: 'object', + }, + capabilities: { + additionalProperties: { + type: 'object', + }, + type: 'object', + }, + created_at: { + format: 'dateTime', + type: 'string', + }, + custom_domain: { + type: 'string', + }, + default_hooks_data: { + properties: { + access_token: { + type: 'string', + }, + }, + type: 'object', + }, + deploy_hook: { + type: 'string', + }, + deploy_url: { + type: 'string', + }, + domain_aliases: { + items: { + type: 'string', + }, + type: 'array', + }, + force_ssl: { + type: 'boolean', + }, + git_provider: { + type: 'string', + }, + id: { + type: 'string', + }, + id_domain: { + type: 'string', + }, + managed_dns: { + type: 'boolean', + }, + name: { + type: 'string', + }, + notification_email: { + type: 'string', + }, + password: { + type: 'string', + }, + plan: { + type: 'string', + }, + processing_settings: { + properties: { + css: { + properties: { + bundle: { + type: 'boolean', + }, + minify: { + type: 'boolean', + }, + }, + type: 'object', + }, + html: { + properties: { + pretty_urls: { + type: 'boolean', + }, + }, + type: 'object', + }, + images: { + properties: { + optimize: { + type: 'boolean', + }, + }, + type: 'object', + }, + js: { + properties: { + bundle: { + type: 'boolean', + }, + minify: { + type: 'boolean', + }, + }, + type: 'object', + }, + skip: { + type: 'boolean', + }, + }, + type: 'object', + }, + published_deploy: { + properties: { + admin_url: { + type: 'string', + }, + branch: { + type: 'string', + }, + build_id: { + type: 'string', + }, + commit_ref: { + type: 'string', + }, + commit_url: { + type: 'string', + }, + context: { + type: 'string', + }, + created_at: { + format: 'dateTime', + type: 'string', + }, + deploy_ssl_url: { + type: 'string', + }, + deploy_url: { + type: 'string', + }, + draft: { + type: 'boolean', + }, + error_message: { + type: 'string', + }, + id: { + type: 'string', + }, + locked: { + type: 'boolean', + }, + name: { + type: 'string', + }, + published_at: { + format: 'dateTime', + type: 'string', + }, + required: { + items: { + type: 'string', + }, + type: 'array', + }, + required_functions: { + items: { + type: 'string', + }, + type: 'array', + }, + review_id: { + type: 'number', + }, + review_url: { + type: 'string', + }, + screenshot_url: { + type: 'string', + }, + site_capabilities: { + properties: { + large_media_enabled: { + type: 'boolean', + }, + }, + type: 'object', + }, + site_id: { + type: 'string', + }, + skipped: { + type: 'boolean', + }, + ssl_url: { + type: 'string', + }, + state: { + type: 'string', + }, + title: { + type: 'string', + }, + updated_at: { + format: 'dateTime', + type: 'string', + }, + url: { + type: 'string', + }, + user_id: { + type: 'string', + }, + }, + type: 'object', + }, + screenshot_url: { + type: 'string', + }, + session_id: { + type: 'string', + }, + ssl: { + type: 'boolean', + }, + ssl_url: { + type: 'string', + }, + state: { + type: 'string', + }, + updated_at: { + format: 'dateTime', + type: 'string', + }, + url: { + type: 'string', + }, + user_id: { + type: 'string', + }, + }, + type: 'object', + }, + }, + 404: { + description: 'Site not found', + }, + }, + tags: [ + 'site', + ], + verb: 'put', + }, { operationId: 'getSiteBuild', parameters: { @@ -10452,10 +10849,6 @@ Generated by [AVA](https://ava.li). format: 'int64', type: 'integer', }, - support_priority: { - format: 'int64', - type: 'integer', - }, uid: { type: 'string', }, @@ -10521,7 +10914,7 @@ Generated by [AVA](https://ava.li). }, query: {}, }, - path: '/site/{site_id}/traffic_splits', + path: '/sites/{site_id}/traffic_splits', responses: { 201: { description: 'Created', @@ -10603,7 +10996,7 @@ Generated by [AVA](https://ava.li). }, query: {}, }, - path: '/site/{site_id}/traffic_splits', + path: '/sites/{site_id}/traffic_splits', responses: { 200: { description: 'split_tests', @@ -10711,7 +11104,7 @@ Generated by [AVA](https://ava.li). }, query: {}, }, - path: '/site/{site_id}/traffic_splits/{split_test_id}', + path: '/sites/{site_id}/traffic_splits/{split_test_id}', responses: { 201: { description: 'Created', @@ -10799,7 +11192,7 @@ Generated by [AVA](https://ava.li). }, query: {}, }, - path: '/site/{site_id}/traffic_splits/{split_test_id}', + path: '/sites/{site_id}/traffic_splits/{split_test_id}', responses: { 200: { description: 'split_test', @@ -10887,7 +11280,7 @@ Generated by [AVA](https://ava.li). }, query: {}, }, - path: '/site/{site_id}/traffic_splits/{split_test_id}/publish', + path: '/sites/{site_id}/traffic_splits/{split_test_id}/publish', responses: { 204: { description: 'enable', @@ -10937,7 +11330,7 @@ Generated by [AVA](https://ava.li). }, query: {}, }, - path: '/site/{site_id}/traffic_splits/{split_test_id}/unpublish', + path: '/sites/{site_id}/traffic_splits/{split_test_id}/unpublish', responses: { 204: { description: 'disabled', diff --git a/src/operations.test.js.snap b/src/operations.test.js.snap index f3dce7d..df30402 100644 Binary files a/src/operations.test.js.snap and b/src/operations.test.js.snap differ