@netlify/open-api 2.33.1 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3641 -0
- package/dist/swagger.json +8 -8
- package/package.json +9 -4
package/dist/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.34.0",
|
|
5
5
|
"title": "Netlify's API documentation",
|
|
6
6
|
"description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/build/tree/main/packages/js-client)",
|
|
7
7
|
"termsOfService": "https://www.netlify.com/legal/terms-of-use/",
|
|
@@ -2526,14 +2526,14 @@
|
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
},
|
|
2529
|
-
"description": "Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
|
|
2529
|
+
"description": "Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI."
|
|
2530
2530
|
},
|
|
2531
2531
|
"post": {
|
|
2532
2532
|
"tags": [
|
|
2533
2533
|
"environmentVariables"
|
|
2534
2534
|
],
|
|
2535
2535
|
"operationId": "createEnvVars",
|
|
2536
|
-
"description": "Creates new environment variables. Granular scopes are available on Pro plans and above.
|
|
2536
|
+
"description": "Creates new environment variables. Granular scopes are available on Pro plans and above.",
|
|
2537
2537
|
"parameters": [
|
|
2538
2538
|
{
|
|
2539
2539
|
"in": "body",
|
|
@@ -3060,14 +3060,14 @@
|
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
3062
3062
|
},
|
|
3063
|
-
"description": "Returns an individual environment variable.
|
|
3063
|
+
"description": "Returns an individual environment variable."
|
|
3064
3064
|
},
|
|
3065
3065
|
"put": {
|
|
3066
3066
|
"tags": [
|
|
3067
3067
|
"environmentVariables"
|
|
3068
3068
|
],
|
|
3069
3069
|
"operationId": "updateEnvVar",
|
|
3070
|
-
"description": "Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.
|
|
3070
|
+
"description": "Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.",
|
|
3071
3071
|
"parameters": [
|
|
3072
3072
|
{
|
|
3073
3073
|
"name": "account_id",
|
|
@@ -3282,7 +3282,7 @@
|
|
|
3282
3282
|
"environmentVariables"
|
|
3283
3283
|
],
|
|
3284
3284
|
"operationId": "setEnvVarValue",
|
|
3285
|
-
"description": "Updates or creates a new value for an existing environment variable.
|
|
3285
|
+
"description": "Updates or creates a new value for an existing environment variable.",
|
|
3286
3286
|
"parameters": [
|
|
3287
3287
|
{
|
|
3288
3288
|
"name": "account_id",
|
|
@@ -3507,7 +3507,7 @@
|
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
3509
|
},
|
|
3510
|
-
"description": "Deletes an environment variable
|
|
3510
|
+
"description": "Deletes an environment variable"
|
|
3511
3511
|
}
|
|
3512
3512
|
},
|
|
3513
3513
|
"/accounts/{account_id}/env/{key}/value/{id}": {
|
|
@@ -3570,7 +3570,7 @@
|
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
3572
|
},
|
|
3573
|
-
"description": "Deletes a specific environment variable value.
|
|
3573
|
+
"description": "Deletes a specific environment variable value."
|
|
3574
3574
|
}
|
|
3575
3575
|
},
|
|
3576
3576
|
"/sites/{site_id}/functions": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/open-api",
|
|
3
3
|
"description": "Netlify's open-api definition as a module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.34.0",
|
|
5
5
|
"author": "Netlify",
|
|
6
6
|
"ava": {
|
|
7
7
|
"files": [
|
|
@@ -28,11 +28,15 @@
|
|
|
28
28
|
"execa": "^2.0.4",
|
|
29
29
|
"is-plain-obj": "^2.1.0",
|
|
30
30
|
"npm-run-all": "^4.1.5",
|
|
31
|
+
"openapi-typescript": "^5.4.2",
|
|
31
32
|
"prettier": "^2.8.7",
|
|
32
33
|
"swagger-parser": "^8.0.1",
|
|
33
34
|
"swagger2openapi": "^7.0.8"
|
|
34
35
|
},
|
|
35
|
-
"files": [
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/index.d.ts",
|
|
38
|
+
"dist/swagger.json"
|
|
39
|
+
],
|
|
36
40
|
"homepage": "https://github.com/netlify/open-api#readme",
|
|
37
41
|
"keywords": [
|
|
38
42
|
"netlify",
|
|
@@ -41,17 +45,18 @@
|
|
|
41
45
|
],
|
|
42
46
|
"license": "MIT",
|
|
43
47
|
"main": "dist/swagger.json",
|
|
48
|
+
"types": "dist/index.d.ts",
|
|
44
49
|
"repository": {
|
|
45
50
|
"type": "git",
|
|
46
51
|
"url": "git+https://github.com/netlify/open-api.git"
|
|
47
52
|
},
|
|
48
53
|
"scripts": {
|
|
49
|
-
"prepublishOnly": "npm
|
|
54
|
+
"prepublishOnly": "npm test",
|
|
50
55
|
"test": "run-s lint build unit",
|
|
51
56
|
"start": "run-s lint build",
|
|
52
57
|
"bundle": "redocly bundle external@latest --output external.yml",
|
|
53
58
|
"build": "run-s convert bundle redoc",
|
|
54
|
-
"postbuild": "swagger2openapi external.yml -o dist/openapi.json",
|
|
59
|
+
"postbuild": "swagger2openapi external.yml -o dist/openapi.json && openapi-typescript dist/openapi.json -o dist/index.d.ts --alphabetize --empty-objects-unknown",
|
|
55
60
|
"convert": "node src/convert.js",
|
|
56
61
|
"bump-swagger": "node src/bump-swagger.js",
|
|
57
62
|
"redoc": "node src/docs/build.js",
|