@netlify/open-api 2.23.0 → 2.23.2

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 +106 -1
  2. package/package.json +1 -1
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.23.0",
4
+ "version": "2.23.2",
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/",
@@ -435,6 +435,9 @@
435
435
  },
436
436
  "prerender": {
437
437
  "type": "string"
438
+ },
439
+ "functions_region": {
440
+ "type": "string"
438
441
  }
439
442
  }
440
443
  }
@@ -809,6 +812,9 @@
809
812
  },
810
813
  "prerender": {
811
814
  "type": "string"
815
+ },
816
+ "functions_region": {
817
+ "type": "string"
812
818
  }
813
819
  }
814
820
  },
@@ -1218,6 +1224,9 @@
1218
1224
  },
1219
1225
  "prerender": {
1220
1226
  "type": "string"
1227
+ },
1228
+ "functions_region": {
1229
+ "type": "string"
1221
1230
  }
1222
1231
  }
1223
1232
  }
@@ -1603,6 +1612,9 @@
1603
1612
  },
1604
1613
  "prerender": {
1605
1614
  "type": "string"
1615
+ },
1616
+ "functions_region": {
1617
+ "type": "string"
1606
1618
  }
1607
1619
  }
1608
1620
  }
@@ -1976,6 +1988,9 @@
1976
1988
  },
1977
1989
  "prerender": {
1978
1990
  "type": "string"
1991
+ },
1992
+ "functions_region": {
1993
+ "type": "string"
1979
1994
  }
1980
1995
  }
1981
1996
  },
@@ -2380,6 +2395,9 @@
2380
2395
  },
2381
2396
  "prerender": {
2382
2397
  "type": "string"
2398
+ },
2399
+ "functions_region": {
2400
+ "type": "string"
2383
2401
  }
2384
2402
  }
2385
2403
  }
@@ -4449,6 +4467,53 @@
4449
4467
  }
4450
4468
  }
4451
4469
  },
4470
+ "/purge": {
4471
+ "post": {
4472
+ "operationId": "purgeCache",
4473
+ "description": "Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.",
4474
+ "tags": [
4475
+ "purge"
4476
+ ],
4477
+ "consumes": [
4478
+ "application/json"
4479
+ ],
4480
+ "parameters": [
4481
+ {
4482
+ "name": "payload",
4483
+ "in": "body",
4484
+ "schema": {
4485
+ "type": "object",
4486
+ "properties": {
4487
+ "site_id": {
4488
+ "type": "string"
4489
+ },
4490
+ "site_slug": {
4491
+ "type": "string"
4492
+ },
4493
+ "cache_tags": {
4494
+ "type": "array",
4495
+ "items": {
4496
+ "type": "string"
4497
+ }
4498
+ }
4499
+ }
4500
+ },
4501
+ "required": true
4502
+ }
4503
+ ],
4504
+ "responses": {
4505
+ "202": {
4506
+ "description": "OK"
4507
+ },
4508
+ "400": {
4509
+ "description": "Invalid request parameters"
4510
+ },
4511
+ "404": {
4512
+ "description": "Site not found"
4513
+ }
4514
+ }
4515
+ }
4516
+ },
4452
4517
  "/sites/{site_id}/snippets": {
4453
4518
  "parameters": [
4454
4519
  {
@@ -7007,6 +7072,9 @@
7007
7072
  },
7008
7073
  "prerender": {
7009
7074
  "type": "string"
7075
+ },
7076
+ "functions_region": {
7077
+ "type": "string"
7010
7078
  }
7011
7079
  }
7012
7080
  }
@@ -9893,6 +9961,9 @@
9893
9961
  },
9894
9962
  "prerender": {
9895
9963
  "type": "string"
9964
+ },
9965
+ "functions_region": {
9966
+ "type": "string"
9896
9967
  }
9897
9968
  }
9898
9969
  },
@@ -10307,6 +10378,9 @@
10307
10378
  },
10308
10379
  "prerender": {
10309
10380
  "type": "string"
10381
+ },
10382
+ "functions_region": {
10383
+ "type": "string"
10310
10384
  }
10311
10385
  }
10312
10386
  }
@@ -10703,6 +10777,9 @@
10703
10777
  },
10704
10778
  "prerender": {
10705
10779
  "type": "string"
10780
+ },
10781
+ "functions_region": {
10782
+ "type": "string"
10706
10783
  }
10707
10784
  }
10708
10785
  }
@@ -14609,6 +14686,9 @@
14609
14686
  },
14610
14687
  "prerender": {
14611
14688
  "type": "string"
14689
+ },
14690
+ "functions_region": {
14691
+ "type": "string"
14612
14692
  }
14613
14693
  }
14614
14694
  },
@@ -14947,6 +15027,9 @@
14947
15027
  },
14948
15028
  "prerender": {
14949
15029
  "type": "string"
15030
+ },
15031
+ "functions_region": {
15032
+ "type": "string"
14950
15033
  }
14951
15034
  }
14952
15035
  },
@@ -15411,6 +15494,23 @@
15411
15494
  }
15412
15495
  }
15413
15496
  },
15497
+ "purge": {
15498
+ "type": "object",
15499
+ "properties": {
15500
+ "site_id": {
15501
+ "type": "string"
15502
+ },
15503
+ "site_slug": {
15504
+ "type": "string"
15505
+ },
15506
+ "cache_tags": {
15507
+ "type": "array",
15508
+ "items": {
15509
+ "type": "string"
15510
+ }
15511
+ }
15512
+ }
15513
+ },
15414
15514
  "deploy": {
15415
15515
  "type": "object",
15416
15516
  "properties": {
@@ -16949,6 +17049,7 @@
16949
17049
  "environmentVariables",
16950
17050
  "file",
16951
17051
  "metadata",
17052
+ "purge",
16952
17053
  "snippet"
16953
17054
  ]
16954
17055
  },
@@ -17069,6 +17170,10 @@
17069
17170
  "name": "snippet",
17070
17171
  "x-displayName": "Snippet"
17071
17172
  },
17173
+ {
17174
+ "name": "purge",
17175
+ "x-displayName": "Cache purge"
17176
+ },
17072
17177
  {
17073
17178
  "name": "dnsZone",
17074
17179
  "x-displayName": "DNS zone"
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.23.0",
4
+ "version": "2.23.2",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [