@netlify/open-api 2.11.0 → 2.12.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.
Files changed (2) hide show
  1. package/dist/swagger.json +164 -1
  2. package/package.json +2 -2
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.11.0",
4
+ "version": "2.12.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/js-client)",
7
7
  "termsOfService": "https://www.netlify.com/legal/terms-of-use/",
@@ -3235,6 +3235,169 @@
3235
3235
  }
3236
3236
  }
3237
3237
  },
3238
+ "patch": {
3239
+ "tags": [
3240
+ "environmentVariables"
3241
+ ],
3242
+ "operationId": "setEnvVarValue",
3243
+ "description": "[Beta] Updates or creates a new value for an existing environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.",
3244
+ "parameters": [
3245
+ {
3246
+ "name": "account_id",
3247
+ "description": "Scope response to account_id",
3248
+ "required": true,
3249
+ "type": "string",
3250
+ "in": "path"
3251
+ },
3252
+ {
3253
+ "name": "key",
3254
+ "description": "The existing environment variable key name (case-sensitive)",
3255
+ "required": true,
3256
+ "type": "string",
3257
+ "in": "path"
3258
+ },
3259
+ {
3260
+ "name": "site_id",
3261
+ "description": "If provided, update an environment variable set on this site",
3262
+ "in": "query",
3263
+ "type": "string"
3264
+ },
3265
+ {
3266
+ "in": "body",
3267
+ "name": "env_var",
3268
+ "schema": {
3269
+ "type": "object",
3270
+ "properties": {
3271
+ "context": {
3272
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.",
3273
+ "type": "string",
3274
+ "enum": [
3275
+ "dev",
3276
+ "branch-deploy",
3277
+ "deploy-preview",
3278
+ "production"
3279
+ ]
3280
+ },
3281
+ "value": {
3282
+ "description": "The environment variable's unencrypted value",
3283
+ "type": "string"
3284
+ }
3285
+ }
3286
+ }
3287
+ }
3288
+ ],
3289
+ "responses": {
3290
+ "201": {
3291
+ "description": "Created (success)",
3292
+ "schema": {
3293
+ "type": "object",
3294
+ "properties": {
3295
+ "key": {
3296
+ "type": "string",
3297
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
3298
+ "x-faker": "commerce.productName"
3299
+ },
3300
+ "scopes": {
3301
+ "type": "array",
3302
+ "items": {
3303
+ "type": "string",
3304
+ "enum": [
3305
+ "builds",
3306
+ "functions",
3307
+ "runtime",
3308
+ "post_processing"
3309
+ ]
3310
+ },
3311
+ "description": "The scopes that this environment variable is set to"
3312
+ },
3313
+ "values": {
3314
+ "type": "array",
3315
+ "items": {
3316
+ "type": "object",
3317
+ "properties": {
3318
+ "id": {
3319
+ "type": "string",
3320
+ "description": "The environment variable value's universally unique ID",
3321
+ "x-faker": "datatype.uuid"
3322
+ },
3323
+ "value": {
3324
+ "type": "string",
3325
+ "description": "The environment variable's unencrypted value",
3326
+ "x-faker": "internet.password"
3327
+ },
3328
+ "context": {
3329
+ "type": "string",
3330
+ "enum": [
3331
+ "all",
3332
+ "dev",
3333
+ "branch-deploy",
3334
+ "deploy-preview",
3335
+ "production"
3336
+ ],
3337
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
3338
+ }
3339
+ },
3340
+ "description": "Environment variable value model definition"
3341
+ },
3342
+ "description": "An array of Value objects containing values and metadata",
3343
+ "x-faker": "internet.password"
3344
+ },
3345
+ "updated_at": {
3346
+ "type": "string",
3347
+ "format": "date-time",
3348
+ "description": "The timestamp of when the value was last updated",
3349
+ "x-faker": "date.past"
3350
+ },
3351
+ "updated_by": {
3352
+ "type": "object",
3353
+ "properties": {
3354
+ "id": {
3355
+ "type": "string",
3356
+ "description": "The user's unique identifier",
3357
+ "x-faker": "datatype.number"
3358
+ },
3359
+ "full_name": {
3360
+ "type": "string",
3361
+ "description": "The user's full name (first and last)",
3362
+ "x-faker": "name.findName"
3363
+ },
3364
+ "email": {
3365
+ "type": "string",
3366
+ "description": "The user's email address",
3367
+ "x-faker": "internet.email"
3368
+ },
3369
+ "avatar_url": {
3370
+ "type": "string",
3371
+ "description": "A URL pointing to the user's avatar",
3372
+ "x-faker": "internet.avatar"
3373
+ }
3374
+ }
3375
+ }
3376
+ },
3377
+ "description": "Environment variable model definition"
3378
+ }
3379
+ },
3380
+ "default": {
3381
+ "description": "error",
3382
+ "schema": {
3383
+ "type": "object",
3384
+ "required": [
3385
+ "message"
3386
+ ],
3387
+ "properties": {
3388
+ "code": {
3389
+ "type": "integer",
3390
+ "format": "int64"
3391
+ },
3392
+ "message": {
3393
+ "type": "string",
3394
+ "x-nullable": false
3395
+ }
3396
+ }
3397
+ }
3398
+ }
3399
+ }
3400
+ },
3238
3401
  "delete": {
3239
3402
  "tags": [
3240
3403
  "environmentVariables"
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.11.0",
4
+ "version": "2.12.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [
@@ -32,7 +32,7 @@
32
32
  "prettier": "^1.18.2",
33
33
  "react": "^16.9.0",
34
34
  "react-dom": "^16.9.0",
35
- "redoc-cli": "^0.9.6",
35
+ "redoc-cli": "^0.13.7",
36
36
  "swagger-parser": "^8.0.1"
37
37
  },
38
38
  "files": [],