diff --git a/package-lock.json b/package-lock.json index 4cac3d9..55839a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "6.1.23", "license": "MIT", "dependencies": { - "@netlify/open-api": "^1.4.0", + "@netlify/open-api": "^2.3.1", "@netlify/zip-it-and-ship-it": "^3.8.0", "backoff": "^2.5.0", "clean-deep": "^3.4.0", @@ -1818,9 +1818,9 @@ } }, "node_modules/@netlify/open-api": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-1.4.0.tgz", - "integrity": "sha512-aS8BfofAX4OzdHPyGmDKZZLykHWn7zFmB77tXEC95c7IG0SkCZrKnULuDgXh82mB76DPuFG5XN6br/lcY6gZ2A==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.3.1.tgz", + "integrity": "sha512-t+4M1iJNVTSu/Q8Xxr0RQFzuMoVs0s2UaomCLLvbnWP9IHP9So7fiJ9ynwykDKFovPjUqgkU2Yqm+7KlXJ0k9g==" }, "node_modules/@netlify/zip-it-and-ship-it": { "version": "3.8.0", @@ -17633,9 +17633,9 @@ } }, "@netlify/open-api": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-1.4.0.tgz", - "integrity": "sha512-aS8BfofAX4OzdHPyGmDKZZLykHWn7zFmB77tXEC95c7IG0SkCZrKnULuDgXh82mB76DPuFG5XN6br/lcY6gZ2A==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.3.1.tgz", + "integrity": "sha512-t+4M1iJNVTSu/Q8Xxr0RQFzuMoVs0s2UaomCLLvbnWP9IHP9So7fiJ9ynwykDKFovPjUqgkU2Yqm+7KlXJ0k9g==" }, "@netlify/zip-it-and-ship-it": { "version": "3.8.0", diff --git a/package.json b/package.json index d6bc89d..2539950 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "node client" ], "dependencies": { - "@netlify/open-api": "^1.4.0", + "@netlify/open-api": "^2.3.1", "@netlify/zip-it-and-ship-it": "^3.8.0", "backoff": "^2.5.0", "clean-deep": "^3.4.0", diff --git a/src/operations.test.js.md b/src/operations.test.js.md index 386f26b..e3cfbcc 100644 --- a/src/operations.test.js.md +++ b/src/operations.test.js.md @@ -88,6 +88,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -263,6 +266,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -439,6 +445,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -614,6 +623,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -737,6 +749,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -823,6 +838,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -998,6 +1016,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -1177,6 +1198,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -1352,6 +1376,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -1526,6 +1553,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -1701,6 +1731,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -1824,6 +1857,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -1911,6 +1947,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -2086,6 +2125,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -4228,6 +4270,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -4348,6 +4393,9 @@ Generated by [AVA](https://ava.li). files: { type: 'object', }, + framework: { + type: 'string', + }, functions: { type: 'object', }, @@ -4412,6 +4460,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -4568,6 +4619,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -4686,6 +4740,9 @@ Generated by [AVA](https://ava.li). files: { type: 'object', }, + framework: { + type: 'string', + }, functions: { type: 'object', }, @@ -4750,6 +4807,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -4900,6 +4960,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -5056,6 +5119,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -5437,6 +5503,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -5612,6 +5681,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -6389,6 +6461,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -6539,6 +6614,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -6689,6 +6767,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -6963,6 +7044,81 @@ Generated by [AVA](https://ava.li). ], verb: 'put', }, + { + description: 'This is an internal-only endpoint.', + operationId: 'updatePlugin', + parameters: { + body: { + plugin_params: { + in: 'body', + name: 'plugin_params', + schema: { + properties: { + pinned_version: { + type: 'string', + }, + }, + type: 'object', + }, + }, + }, + path: { + package: { + in: 'path', + name: 'package', + required: true, + type: 'string', + }, + site_id: { + in: 'path', + name: 'site_id', + required: true, + type: 'string', + }, + }, + query: {}, + }, + path: '/sites/{site_id}/plugins/{package}', + responses: { + 200: { + description: 'OK', + schema: { + properties: { + package: { + type: 'string', + }, + pinned_version: { + type: 'string', + }, + }, + type: 'object', + }, + }, + default: { + description: 'error', + schema: { + properties: { + code: { + format: 'int64', + type: 'integer', + }, + message: { + type: 'string', + 'x-nullable': false, + }, + }, + required: [ + 'message', + ], + type: 'object', + }, + }, + }, + tags: [ + 'x-internal', + ], + verb: 'put', + }, { description: 'This is an internal-only endpoint.', operationId: 'createPluginRun', @@ -8173,6 +8329,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -8348,6 +8507,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -8471,6 +8633,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -8564,6 +8729,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -8739,6 +8907,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, @@ -8939,6 +9110,9 @@ Generated by [AVA](https://ava.li). }, type: 'object', }, + functions_dir: { + type: 'string', + }, id: { type: 'integer', }, @@ -9114,6 +9288,9 @@ Generated by [AVA](https://ava.li). error_message: { type: 'string', }, + framework: { + type: 'string', + }, id: { type: 'string', }, diff --git a/src/operations.test.js.snap b/src/operations.test.js.snap index dc5487e..77d8bba 100644 Binary files a/src/operations.test.js.snap and b/src/operations.test.js.snap differ