@netlify/open-api 2.18.0 → 2.19.1
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 +106 -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.1",
|
|
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"
|
|
@@ -2681,6 +2694,10 @@
|
|
|
2681
2694
|
"description": "An array of Value objects containing values and metadata",
|
|
2682
2695
|
"x-faker": "internet.password"
|
|
2683
2696
|
},
|
|
2697
|
+
"is_secret": {
|
|
2698
|
+
"type": "boolean",
|
|
2699
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
2700
|
+
},
|
|
2684
2701
|
"updated_at": {
|
|
2685
2702
|
"type": "string",
|
|
2686
2703
|
"format": "date-time",
|
|
@@ -2793,13 +2810,22 @@
|
|
|
2793
2810
|
"dev",
|
|
2794
2811
|
"branch-deploy",
|
|
2795
2812
|
"deploy-preview",
|
|
2796
|
-
"production"
|
|
2813
|
+
"production",
|
|
2814
|
+
"branch"
|
|
2797
2815
|
],
|
|
2798
2816
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2817
|
+
},
|
|
2818
|
+
"context_parameter": {
|
|
2819
|
+
"type": "string",
|
|
2820
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
2799
2821
|
}
|
|
2800
2822
|
},
|
|
2801
2823
|
"description": "Environment variable value model definition"
|
|
2802
2824
|
}
|
|
2825
|
+
},
|
|
2826
|
+
"is_secret": {
|
|
2827
|
+
"type": "boolean",
|
|
2828
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
2803
2829
|
}
|
|
2804
2830
|
}
|
|
2805
2831
|
}
|
|
@@ -2868,9 +2894,14 @@
|
|
|
2868
2894
|
"dev",
|
|
2869
2895
|
"branch-deploy",
|
|
2870
2896
|
"deploy-preview",
|
|
2871
|
-
"production"
|
|
2897
|
+
"production",
|
|
2898
|
+
"branch"
|
|
2872
2899
|
],
|
|
2873
2900
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2901
|
+
},
|
|
2902
|
+
"context_parameter": {
|
|
2903
|
+
"type": "string",
|
|
2904
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
2874
2905
|
}
|
|
2875
2906
|
},
|
|
2876
2907
|
"description": "Environment variable value model definition"
|
|
@@ -2878,6 +2909,10 @@
|
|
|
2878
2909
|
"description": "An array of Value objects containing values and metadata",
|
|
2879
2910
|
"x-faker": "internet.password"
|
|
2880
2911
|
},
|
|
2912
|
+
"is_secret": {
|
|
2913
|
+
"type": "boolean",
|
|
2914
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
2915
|
+
},
|
|
2881
2916
|
"updated_at": {
|
|
2882
2917
|
"type": "string",
|
|
2883
2918
|
"format": "date-time",
|
|
@@ -3011,9 +3046,14 @@
|
|
|
3011
3046
|
"dev",
|
|
3012
3047
|
"branch-deploy",
|
|
3013
3048
|
"deploy-preview",
|
|
3014
|
-
"production"
|
|
3049
|
+
"production",
|
|
3050
|
+
"branch"
|
|
3015
3051
|
],
|
|
3016
3052
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3053
|
+
},
|
|
3054
|
+
"context_parameter": {
|
|
3055
|
+
"type": "string",
|
|
3056
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3017
3057
|
}
|
|
3018
3058
|
},
|
|
3019
3059
|
"description": "Environment variable value model definition"
|
|
@@ -3021,6 +3061,10 @@
|
|
|
3021
3061
|
"description": "An array of Value objects containing values and metadata",
|
|
3022
3062
|
"x-faker": "internet.password"
|
|
3023
3063
|
},
|
|
3064
|
+
"is_secret": {
|
|
3065
|
+
"type": "boolean",
|
|
3066
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
3067
|
+
},
|
|
3024
3068
|
"updated_at": {
|
|
3025
3069
|
"type": "string",
|
|
3026
3070
|
"format": "date-time",
|
|
@@ -3144,13 +3188,22 @@
|
|
|
3144
3188
|
"dev",
|
|
3145
3189
|
"branch-deploy",
|
|
3146
3190
|
"deploy-preview",
|
|
3147
|
-
"production"
|
|
3191
|
+
"production",
|
|
3192
|
+
"branch"
|
|
3148
3193
|
],
|
|
3149
3194
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3195
|
+
},
|
|
3196
|
+
"context_parameter": {
|
|
3197
|
+
"type": "string",
|
|
3198
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3150
3199
|
}
|
|
3151
3200
|
},
|
|
3152
3201
|
"description": "Environment variable value model definition"
|
|
3153
3202
|
}
|
|
3203
|
+
},
|
|
3204
|
+
"is_secret": {
|
|
3205
|
+
"type": "boolean",
|
|
3206
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
3154
3207
|
}
|
|
3155
3208
|
}
|
|
3156
3209
|
}
|
|
@@ -3209,9 +3262,14 @@
|
|
|
3209
3262
|
"dev",
|
|
3210
3263
|
"branch-deploy",
|
|
3211
3264
|
"deploy-preview",
|
|
3212
|
-
"production"
|
|
3265
|
+
"production",
|
|
3266
|
+
"branch"
|
|
3213
3267
|
],
|
|
3214
3268
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3269
|
+
},
|
|
3270
|
+
"context_parameter": {
|
|
3271
|
+
"type": "string",
|
|
3272
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3215
3273
|
}
|
|
3216
3274
|
},
|
|
3217
3275
|
"description": "Environment variable value model definition"
|
|
@@ -3219,6 +3277,10 @@
|
|
|
3219
3277
|
"description": "An array of Value objects containing values and metadata",
|
|
3220
3278
|
"x-faker": "internet.password"
|
|
3221
3279
|
},
|
|
3280
|
+
"is_secret": {
|
|
3281
|
+
"type": "boolean",
|
|
3282
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
3283
|
+
},
|
|
3222
3284
|
"updated_at": {
|
|
3223
3285
|
"type": "string",
|
|
3224
3286
|
"format": "date-time",
|
|
@@ -3309,15 +3371,21 @@
|
|
|
3309
3371
|
"type": "object",
|
|
3310
3372
|
"properties": {
|
|
3311
3373
|
"context": {
|
|
3312
|
-
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.",
|
|
3374
|
+
"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
3375
|
"type": "string",
|
|
3314
3376
|
"enum": [
|
|
3377
|
+
"all",
|
|
3315
3378
|
"dev",
|
|
3316
3379
|
"branch-deploy",
|
|
3317
3380
|
"deploy-preview",
|
|
3318
|
-
"production"
|
|
3381
|
+
"production",
|
|
3382
|
+
"branch"
|
|
3319
3383
|
]
|
|
3320
3384
|
},
|
|
3385
|
+
"context_parameter": {
|
|
3386
|
+
"description": "An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`.",
|
|
3387
|
+
"type": "string"
|
|
3388
|
+
},
|
|
3321
3389
|
"value": {
|
|
3322
3390
|
"description": "The environment variable's unencrypted value",
|
|
3323
3391
|
"type": "string"
|
|
@@ -3372,9 +3440,14 @@
|
|
|
3372
3440
|
"dev",
|
|
3373
3441
|
"branch-deploy",
|
|
3374
3442
|
"deploy-preview",
|
|
3375
|
-
"production"
|
|
3443
|
+
"production",
|
|
3444
|
+
"branch"
|
|
3376
3445
|
],
|
|
3377
3446
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3447
|
+
},
|
|
3448
|
+
"context_parameter": {
|
|
3449
|
+
"type": "string",
|
|
3450
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
3378
3451
|
}
|
|
3379
3452
|
},
|
|
3380
3453
|
"description": "Environment variable value model definition"
|
|
@@ -3382,6 +3455,10 @@
|
|
|
3382
3455
|
"description": "An array of Value objects containing values and metadata",
|
|
3383
3456
|
"x-faker": "internet.password"
|
|
3384
3457
|
},
|
|
3458
|
+
"is_secret": {
|
|
3459
|
+
"type": "boolean",
|
|
3460
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
3461
|
+
},
|
|
3385
3462
|
"updated_at": {
|
|
3386
3463
|
"type": "string",
|
|
3387
3464
|
"format": "date-time",
|
|
@@ -8162,6 +8239,7 @@
|
|
|
8162
8239
|
},
|
|
8163
8240
|
"/sites/{site_id}/plugins/{package}": {
|
|
8164
8241
|
"put": {
|
|
8242
|
+
"x-internal": true,
|
|
8165
8243
|
"operationId": "updatePlugin",
|
|
8166
8244
|
"tags": [
|
|
8167
8245
|
"x-internal"
|
|
@@ -8232,6 +8310,7 @@
|
|
|
8232
8310
|
},
|
|
8233
8311
|
"/sites/{site_id}/plugin_runs/latest": {
|
|
8234
8312
|
"get": {
|
|
8313
|
+
"x-internal": true,
|
|
8235
8314
|
"operationId": "getLatestPluginRuns",
|
|
8236
8315
|
"tags": [
|
|
8237
8316
|
"x-internal"
|
|
@@ -8328,6 +8407,7 @@
|
|
|
8328
8407
|
},
|
|
8329
8408
|
"/deploys/{deploy_id}/plugin_runs": {
|
|
8330
8409
|
"post": {
|
|
8410
|
+
"x-internal": true,
|
|
8331
8411
|
"operationId": "createPluginRun",
|
|
8332
8412
|
"tags": [
|
|
8333
8413
|
"x-internal"
|
|
@@ -14993,9 +15073,14 @@
|
|
|
14993
15073
|
"dev",
|
|
14994
15074
|
"branch-deploy",
|
|
14995
15075
|
"deploy-preview",
|
|
14996
|
-
"production"
|
|
15076
|
+
"production",
|
|
15077
|
+
"branch"
|
|
14997
15078
|
],
|
|
14998
15079
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
15080
|
+
},
|
|
15081
|
+
"context_parameter": {
|
|
15082
|
+
"type": "string",
|
|
15083
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
14999
15084
|
}
|
|
15000
15085
|
},
|
|
15001
15086
|
"description": "Environment variable value model definition"
|
|
@@ -15003,6 +15088,10 @@
|
|
|
15003
15088
|
"description": "An array of Value objects containing values and metadata",
|
|
15004
15089
|
"x-faker": "internet.password"
|
|
15005
15090
|
},
|
|
15091
|
+
"is_secret": {
|
|
15092
|
+
"type": "boolean",
|
|
15093
|
+
"description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
|
|
15094
|
+
},
|
|
15006
15095
|
"updated_at": {
|
|
15007
15096
|
"type": "string",
|
|
15008
15097
|
"format": "date-time",
|
|
@@ -15057,9 +15146,14 @@
|
|
|
15057
15146
|
"dev",
|
|
15058
15147
|
"branch-deploy",
|
|
15059
15148
|
"deploy-preview",
|
|
15060
|
-
"production"
|
|
15149
|
+
"production",
|
|
15150
|
+
"branch"
|
|
15061
15151
|
],
|
|
15062
15152
|
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
15153
|
+
},
|
|
15154
|
+
"context_parameter": {
|
|
15155
|
+
"type": "string",
|
|
15156
|
+
"description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
|
|
15063
15157
|
}
|
|
15064
15158
|
},
|
|
15065
15159
|
"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.1",
|
|
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",
|