@netlify/open-api 2.17.1 → 2.19.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/swagger.json +74 -12
- package/package.json +4 -6
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.19.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/",
|
|
@@ -1259,6 +1259,14 @@
|
|
|
1259
1259
|
"tags": [
|
|
1260
1260
|
"site"
|
|
1261
1261
|
],
|
|
1262
|
+
"parameters": [
|
|
1263
|
+
{
|
|
1264
|
+
"name": "feature_flags",
|
|
1265
|
+
"x-internal": true,
|
|
1266
|
+
"type": "string",
|
|
1267
|
+
"in": "query"
|
|
1268
|
+
}
|
|
1269
|
+
],
|
|
1262
1270
|
"responses": {
|
|
1263
1271
|
"200": {
|
|
1264
1272
|
"description": "OK",
|
|
@@ -2671,9 +2679,14 @@
|
|
|
2671
2679
|
"dev",
|
|
2672
2680
|
"branch-deploy",
|
|
2673
2681
|
"deploy-preview",
|
|
2674
|
-
"production"
|
|
2682
|
+
"production",
|
|
2683
|
+
"branch"
|
|
2675
2684
|
],
|
|
2676
2685
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2686
|
+
},
|
|
2687
|
+
"context_parameter": {
|
|
2688
|
+
"type": "string",
|
|
2689
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
2677
2690
|
}
|
|
2678
2691
|
},
|
|
2679
2692
|
"description": "Environment variable value model definition"
|
|
@@ -2793,9 +2806,14 @@
|
|
|
2793
2806
|
"dev",
|
|
2794
2807
|
"branch-deploy",
|
|
2795
2808
|
"deploy-preview",
|
|
2796
|
-
"production"
|
|
2809
|
+
"production",
|
|
2810
|
+
"branch"
|
|
2797
2811
|
],
|
|
2798
2812
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2813
|
+
},
|
|
2814
|
+
"context_parameter": {
|
|
2815
|
+
"type": "string",
|
|
2816
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
2799
2817
|
}
|
|
2800
2818
|
},
|
|
2801
2819
|
"description": "Environment variable value model definition"
|
|
@@ -2868,9 +2886,14 @@
|
|
|
2868
2886
|
"dev",
|
|
2869
2887
|
"branch-deploy",
|
|
2870
2888
|
"deploy-preview",
|
|
2871
|
-
"production"
|
|
2889
|
+
"production",
|
|
2890
|
+
"branch"
|
|
2872
2891
|
],
|
|
2873
2892
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2893
|
+
},
|
|
2894
|
+
"context_parameter": {
|
|
2895
|
+
"type": "string",
|
|
2896
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
2874
2897
|
}
|
|
2875
2898
|
},
|
|
2876
2899
|
"description": "Environment variable value model definition"
|
|
@@ -3011,9 +3034,14 @@
|
|
|
3011
3034
|
"dev",
|
|
3012
3035
|
"branch-deploy",
|
|
3013
3036
|
"deploy-preview",
|
|
3014
|
-
"production"
|
|
3037
|
+
"production",
|
|
3038
|
+
"branch"
|
|
3015
3039
|
],
|
|
3016
3040
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3041
|
+
},
|
|
3042
|
+
"context_parameter": {
|
|
3043
|
+
"type": "string",
|
|
3044
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3017
3045
|
}
|
|
3018
3046
|
},
|
|
3019
3047
|
"description": "Environment variable value model definition"
|
|
@@ -3144,9 +3172,14 @@
|
|
|
3144
3172
|
"dev",
|
|
3145
3173
|
"branch-deploy",
|
|
3146
3174
|
"deploy-preview",
|
|
3147
|
-
"production"
|
|
3175
|
+
"production",
|
|
3176
|
+
"branch"
|
|
3148
3177
|
],
|
|
3149
3178
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3179
|
+
},
|
|
3180
|
+
"context_parameter": {
|
|
3181
|
+
"type": "string",
|
|
3182
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3150
3183
|
}
|
|
3151
3184
|
},
|
|
3152
3185
|
"description": "Environment variable value model definition"
|
|
@@ -3209,9 +3242,14 @@
|
|
|
3209
3242
|
"dev",
|
|
3210
3243
|
"branch-deploy",
|
|
3211
3244
|
"deploy-preview",
|
|
3212
|
-
"production"
|
|
3245
|
+
"production",
|
|
3246
|
+
"branch"
|
|
3213
3247
|
],
|
|
3214
3248
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3249
|
+
},
|
|
3250
|
+
"context_parameter": {
|
|
3251
|
+
"type": "string",
|
|
3252
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3215
3253
|
}
|
|
3216
3254
|
},
|
|
3217
3255
|
"description": "Environment variable value model definition"
|
|
@@ -3309,15 +3347,21 @@
|
|
|
3309
3347
|
"type": "object",
|
|
3310
3348
|
"properties": {
|
|
3311
3349
|
"context": {
|
|
3312
|
-
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.",
|
|
3350
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`. `branch` must be provided with a value in `context_parameter`.",
|
|
3313
3351
|
"type": "string",
|
|
3314
3352
|
"enum": [
|
|
3353
|
+
"all",
|
|
3315
3354
|
"dev",
|
|
3316
3355
|
"branch-deploy",
|
|
3317
3356
|
"deploy-preview",
|
|
3318
|
-
"production"
|
|
3357
|
+
"production",
|
|
3358
|
+
"branch"
|
|
3319
3359
|
]
|
|
3320
3360
|
},
|
|
3361
|
+
"context_parameter": {
|
|
3362
|
+
"description": "An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`.",
|
|
3363
|
+
"type": "string"
|
|
3364
|
+
},
|
|
3321
3365
|
"value": {
|
|
3322
3366
|
"description": "The environment variable's unencrypted value",
|
|
3323
3367
|
"type": "string"
|
|
@@ -3372,9 +3416,14 @@
|
|
|
3372
3416
|
"dev",
|
|
3373
3417
|
"branch-deploy",
|
|
3374
3418
|
"deploy-preview",
|
|
3375
|
-
"production"
|
|
3419
|
+
"production",
|
|
3420
|
+
"branch"
|
|
3376
3421
|
],
|
|
3377
3422
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3423
|
+
},
|
|
3424
|
+
"context_parameter": {
|
|
3425
|
+
"type": "string",
|
|
3426
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3378
3427
|
}
|
|
3379
3428
|
},
|
|
3380
3429
|
"description": "Environment variable value model definition"
|
|
@@ -8162,6 +8211,7 @@
|
|
|
8162
8211
|
},
|
|
8163
8212
|
"/sites/{site_id}/plugins/{package}": {
|
|
8164
8213
|
"put": {
|
|
8214
|
+
"x-internal": true,
|
|
8165
8215
|
"operationId": "updatePlugin",
|
|
8166
8216
|
"tags": [
|
|
8167
8217
|
"x-internal"
|
|
@@ -8232,6 +8282,7 @@
|
|
|
8232
8282
|
},
|
|
8233
8283
|
"/sites/{site_id}/plugin_runs/latest": {
|
|
8234
8284
|
"get": {
|
|
8285
|
+
"x-internal": true,
|
|
8235
8286
|
"operationId": "getLatestPluginRuns",
|
|
8236
8287
|
"tags": [
|
|
8237
8288
|
"x-internal"
|
|
@@ -8328,6 +8379,7 @@
|
|
|
8328
8379
|
},
|
|
8329
8380
|
"/deploys/{deploy_id}/plugin_runs": {
|
|
8330
8381
|
"post": {
|
|
8382
|
+
"x-internal": true,
|
|
8331
8383
|
"operationId": "createPluginRun",
|
|
8332
8384
|
"tags": [
|
|
8333
8385
|
"x-internal"
|
|
@@ -14993,9 +15045,14 @@
|
|
|
14993
15045
|
"dev",
|
|
14994
15046
|
"branch-deploy",
|
|
14995
15047
|
"deploy-preview",
|
|
14996
|
-
"production"
|
|
15048
|
+
"production",
|
|
15049
|
+
"branch"
|
|
14997
15050
|
],
|
|
14998
15051
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
15052
|
+
},
|
|
15053
|
+
"context_parameter": {
|
|
15054
|
+
"type": "string",
|
|
15055
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
14999
15056
|
}
|
|
15000
15057
|
},
|
|
15001
15058
|
"description": "Environment variable value model definition"
|
|
@@ -15057,9 +15114,14 @@
|
|
|
15057
15114
|
"dev",
|
|
15058
15115
|
"branch-deploy",
|
|
15059
15116
|
"deploy-preview",
|
|
15060
|
-
"production"
|
|
15117
|
+
"production",
|
|
15118
|
+
"branch"
|
|
15061
15119
|
],
|
|
15062
15120
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
15121
|
+
},
|
|
15122
|
+
"context_parameter": {
|
|
15123
|
+
"type": "string",
|
|
15124
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
15063
15125
|
}
|
|
15064
15126
|
},
|
|
15065
15127
|
"description": "Environment variable value model definition"
|
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.19.0",
|
|
5
5
|
"author": "Netlify",
|
|
6
6
|
"ava": {
|
|
7
7
|
"files": [
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/netlify/open-api/issues"
|
|
13
13
|
},
|
|
14
|
-
"dependencies": {},
|
|
15
14
|
"devDependencies": {
|
|
15
|
+
"@redocly/cli": "^1.0.0-beta.128",
|
|
16
16
|
"analytics": "^0.2.0",
|
|
17
17
|
"analytics-plugin-ga": "^0.1.5",
|
|
18
18
|
"ava": "^5.2.0",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"make-dir": "^3.0.0",
|
|
28
28
|
"npm-run-all": "^4.1.5",
|
|
29
29
|
"prettier": "^2.8.7",
|
|
30
|
-
"react": "^16.9.0",
|
|
31
|
-
"react-dom": "^16.9.0",
|
|
32
|
-
"redoc-cli": "^0.13.7",
|
|
33
30
|
"swagger-parser": "^8.0.1"
|
|
34
31
|
},
|
|
35
32
|
"files": [],
|
|
@@ -49,7 +46,8 @@
|
|
|
49
46
|
"prepublishOnly": "npm ci && npm test",
|
|
50
47
|
"test": "run-s lint build unit",
|
|
51
48
|
"start": "run-s lint build",
|
|
52
|
-
"
|
|
49
|
+
"bundle": "redocly bundle external@latest --output external.yml",
|
|
50
|
+
"build": "run-s convert bundle redoc",
|
|
53
51
|
"convert": "node src/convert.js",
|
|
54
52
|
"bump-swagger": "node src/bump-swagger.js",
|
|
55
53
|
"redoc": "node src/docs/build.js",
|