@netlify/open-api 2.12.2 → 2.14.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 +424 -20
  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.12.2",
4
+ "version": "2.14.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/",
@@ -453,7 +453,8 @@
453
453
  }
454
454
  }
455
455
  }
456
- }
456
+ },
457
+ "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
457
458
  },
458
459
  "post": {
459
460
  "operationId": "createSite",
@@ -1222,7 +1223,8 @@
1222
1223
  }
1223
1224
  }
1224
1225
  }
1225
- }
1226
+ },
1227
+ "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site."
1226
1228
  }
1227
1229
  },
1228
1230
  "/sites/{site_id}": {
@@ -1592,7 +1594,8 @@
1592
1594
  }
1593
1595
  }
1594
1596
  }
1595
- }
1597
+ },
1598
+ "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
1596
1599
  },
1597
1600
  "patch": {
1598
1601
  "operationId": "updateSite",
@@ -2356,7 +2359,8 @@
2356
2359
  }
2357
2360
  }
2358
2361
  }
2359
- }
2362
+ },
2363
+ "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [updateEnvVar](#tag/environmentVariables/operation/updateEnvVar) to update a site's environment variables."
2360
2364
  },
2361
2365
  "delete": {
2362
2366
  "operationId": "deleteSite",
@@ -5049,6 +5053,47 @@
5049
5053
  "type": "string",
5050
5054
  "in": "path",
5051
5055
  "required": true
5056
+ },
5057
+ {
5058
+ "name": "deploy-previews",
5059
+ "type": "boolean",
5060
+ "in": "query"
5061
+ },
5062
+ {
5063
+ "name": "production",
5064
+ "type": "boolean",
5065
+ "in": "query"
5066
+ },
5067
+ {
5068
+ "name": "state",
5069
+ "type": "string",
5070
+ "enum": [
5071
+ "new",
5072
+ "pending_review",
5073
+ "accepted",
5074
+ "rejected",
5075
+ "enqueued",
5076
+ "building",
5077
+ "uploading",
5078
+ "uploaded",
5079
+ "preparing",
5080
+ "prepared",
5081
+ "processing",
5082
+ "ready",
5083
+ "error",
5084
+ "retrying"
5085
+ ],
5086
+ "in": "query"
5087
+ },
5088
+ {
5089
+ "name": "branch",
5090
+ "type": "string",
5091
+ "in": "query"
5092
+ },
5093
+ {
5094
+ "name": "latest-published",
5095
+ "type": "boolean",
5096
+ "in": "query"
5052
5097
  }
5053
5098
  ],
5054
5099
  "get": {
@@ -5266,6 +5311,17 @@
5266
5311
  }
5267
5312
  }
5268
5313
  },
5314
+ "functions_config": {
5315
+ "type": "object",
5316
+ "additionalProperties": {
5317
+ "type": "object",
5318
+ "properties": {
5319
+ "display_name": {
5320
+ "type": "string"
5321
+ }
5322
+ }
5323
+ }
5324
+ },
5269
5325
  "branch": {
5270
5326
  "type": "string"
5271
5327
  },
@@ -5644,6 +5700,17 @@
5644
5700
  }
5645
5701
  }
5646
5702
  },
5703
+ "functions_config": {
5704
+ "type": "object",
5705
+ "additionalProperties": {
5706
+ "type": "object",
5707
+ "properties": {
5708
+ "display_name": {
5709
+ "type": "string"
5710
+ }
5711
+ }
5712
+ }
5713
+ },
5647
5714
  "branch": {
5648
5715
  "type": "string"
5649
5716
  },
@@ -5802,6 +5869,50 @@
5802
5869
  }
5803
5870
  }
5804
5871
  }
5872
+ },
5873
+ "delete": {
5874
+ "operationId": "deleteSiteDeploy",
5875
+ "tags": [
5876
+ "deploy"
5877
+ ],
5878
+ "parameters": [
5879
+ {
5880
+ "name": "deploy_id",
5881
+ "type": "string",
5882
+ "in": "path",
5883
+ "required": true
5884
+ },
5885
+ {
5886
+ "name": "site_id",
5887
+ "type": "string",
5888
+ "in": "path",
5889
+ "required": true
5890
+ }
5891
+ ],
5892
+ "responses": {
5893
+ "204": {
5894
+ "description": "No content"
5895
+ },
5896
+ "default": {
5897
+ "description": "error",
5898
+ "schema": {
5899
+ "type": "object",
5900
+ "required": [
5901
+ "message"
5902
+ ],
5903
+ "properties": {
5904
+ "code": {
5905
+ "type": "integer",
5906
+ "format": "int64"
5907
+ },
5908
+ "message": {
5909
+ "type": "string",
5910
+ "x-nullable": false
5911
+ }
5912
+ }
5913
+ }
5914
+ }
5915
+ }
5805
5916
  }
5806
5917
  },
5807
5918
  "/deploys/{deploy_id}/cancel": {
@@ -7459,6 +7570,44 @@
7459
7570
  }
7460
7571
  }
7461
7572
  }
7573
+ },
7574
+ "delete": {
7575
+ "operationId": "deleteDeploy",
7576
+ "tags": [
7577
+ "deploy"
7578
+ ],
7579
+ "parameters": [
7580
+ {
7581
+ "name": "deploy_id",
7582
+ "type": "string",
7583
+ "in": "path",
7584
+ "required": true
7585
+ }
7586
+ ],
7587
+ "responses": {
7588
+ "204": {
7589
+ "description": "No content"
7590
+ },
7591
+ "default": {
7592
+ "description": "error",
7593
+ "schema": {
7594
+ "type": "object",
7595
+ "required": [
7596
+ "message"
7597
+ ],
7598
+ "properties": {
7599
+ "code": {
7600
+ "type": "integer",
7601
+ "format": "int64"
7602
+ },
7603
+ "message": {
7604
+ "type": "string",
7605
+ "x-nullable": false
7606
+ }
7607
+ }
7608
+ }
7609
+ }
7610
+ }
7462
7611
  }
7463
7612
  },
7464
7613
  "/deploys/{deploy_id}/lock": {
@@ -9955,7 +10104,8 @@
9955
10104
  }
9956
10105
  }
9957
10106
  }
9958
- }
10107
+ },
10108
+ "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site."
9959
10109
  },
9960
10110
  "get": {
9961
10111
  "operationId": "listSitesForAccount",
@@ -10345,7 +10495,8 @@
10345
10495
  }
10346
10496
  }
10347
10497
  }
10348
- }
10498
+ },
10499
+ "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
10349
10500
  }
10350
10501
  },
10351
10502
  "/{account_slug}/members": {
@@ -10415,21 +10566,29 @@
10415
10566
  "tags": [
10416
10567
  "member"
10417
10568
  ],
10569
+ "consumes": [
10570
+ "application/json"
10571
+ ],
10418
10572
  "parameters": [
10419
10573
  {
10420
- "name": "role",
10421
- "in": "query",
10422
- "type": "string",
10423
- "enum": [
10424
- "Owner",
10425
- "Collaborator",
10426
- "Controller"
10427
- ]
10428
- },
10429
- {
10430
- "name": "email",
10431
- "in": "query",
10432
- "type": "string",
10574
+ "name": "accountAddMemberSetup",
10575
+ "in": "body",
10576
+ "schema": {
10577
+ "type": "object",
10578
+ "properties": {
10579
+ "role": {
10580
+ "type": "string",
10581
+ "enum": [
10582
+ "Owner",
10583
+ "Collaborator",
10584
+ "Controller"
10585
+ ]
10586
+ },
10587
+ "email": {
10588
+ "type": "string"
10589
+ }
10590
+ }
10591
+ },
10433
10592
  "required": true
10434
10593
  }
10435
10594
  ],
@@ -10482,6 +10641,189 @@
10482
10641
  }
10483
10642
  }
10484
10643
  },
10644
+ "/{account_slug}/members/{member_id}": {
10645
+ "parameters": [
10646
+ {
10647
+ "name": "account_slug",
10648
+ "in": "path",
10649
+ "type": "string",
10650
+ "required": true
10651
+ },
10652
+ {
10653
+ "name": "member_id",
10654
+ "in": "path",
10655
+ "type": "string",
10656
+ "required": true
10657
+ }
10658
+ ],
10659
+ "get": {
10660
+ "operationId": "getAccountMember",
10661
+ "tags": [
10662
+ "member"
10663
+ ],
10664
+ "responses": {
10665
+ "200": {
10666
+ "description": "OK",
10667
+ "schema": {
10668
+ "type": "object",
10669
+ "properties": {
10670
+ "id": {
10671
+ "type": "string"
10672
+ },
10673
+ "full_name": {
10674
+ "type": "string"
10675
+ },
10676
+ "email": {
10677
+ "type": "string"
10678
+ },
10679
+ "avatar": {
10680
+ "type": "string"
10681
+ },
10682
+ "role": {
10683
+ "type": "string"
10684
+ }
10685
+ }
10686
+ }
10687
+ },
10688
+ "default": {
10689
+ "description": "error",
10690
+ "schema": {
10691
+ "type": "object",
10692
+ "required": [
10693
+ "message"
10694
+ ],
10695
+ "properties": {
10696
+ "code": {
10697
+ "type": "integer",
10698
+ "format": "int64"
10699
+ },
10700
+ "message": {
10701
+ "type": "string",
10702
+ "x-nullable": false
10703
+ }
10704
+ }
10705
+ }
10706
+ }
10707
+ }
10708
+ },
10709
+ "put": {
10710
+ "operationId": "updateAccountMember",
10711
+ "tags": [
10712
+ "member"
10713
+ ],
10714
+ "consumes": [
10715
+ "application/json"
10716
+ ],
10717
+ "parameters": [
10718
+ {
10719
+ "name": "accountUpdateMemberSetup",
10720
+ "in": "body",
10721
+ "schema": {
10722
+ "type": "object",
10723
+ "properties": {
10724
+ "role": {
10725
+ "type": "string",
10726
+ "enum": [
10727
+ "Owner",
10728
+ "Collaborator",
10729
+ "Controller"
10730
+ ]
10731
+ },
10732
+ "site_access": {
10733
+ "type": "string",
10734
+ "enum": [
10735
+ "all",
10736
+ "none",
10737
+ "selected"
10738
+ ]
10739
+ },
10740
+ "site_ids": {
10741
+ "type": "array",
10742
+ "items": {
10743
+ "type": "string"
10744
+ }
10745
+ }
10746
+ }
10747
+ },
10748
+ "required": true
10749
+ }
10750
+ ],
10751
+ "responses": {
10752
+ "200": {
10753
+ "description": "OK",
10754
+ "schema": {
10755
+ "type": "object",
10756
+ "properties": {
10757
+ "id": {
10758
+ "type": "string"
10759
+ },
10760
+ "full_name": {
10761
+ "type": "string"
10762
+ },
10763
+ "email": {
10764
+ "type": "string"
10765
+ },
10766
+ "avatar": {
10767
+ "type": "string"
10768
+ },
10769
+ "role": {
10770
+ "type": "string"
10771
+ }
10772
+ }
10773
+ }
10774
+ },
10775
+ "default": {
10776
+ "description": "error",
10777
+ "schema": {
10778
+ "type": "object",
10779
+ "required": [
10780
+ "message"
10781
+ ],
10782
+ "properties": {
10783
+ "code": {
10784
+ "type": "integer",
10785
+ "format": "int64"
10786
+ },
10787
+ "message": {
10788
+ "type": "string",
10789
+ "x-nullable": false
10790
+ }
10791
+ }
10792
+ }
10793
+ }
10794
+ }
10795
+ },
10796
+ "delete": {
10797
+ "operationId": "removeAccountMember",
10798
+ "tags": [
10799
+ "member"
10800
+ ],
10801
+ "responses": {
10802
+ "204": {
10803
+ "description": "Not Content"
10804
+ },
10805
+ "default": {
10806
+ "description": "error",
10807
+ "schema": {
10808
+ "type": "object",
10809
+ "required": [
10810
+ "message"
10811
+ ],
10812
+ "properties": {
10813
+ "code": {
10814
+ "type": "integer",
10815
+ "format": "int64"
10816
+ },
10817
+ "message": {
10818
+ "type": "string",
10819
+ "x-nullable": false
10820
+ }
10821
+ }
10822
+ }
10823
+ }
10824
+ }
10825
+ }
10826
+ },
10485
10827
  "/billing/payment_methods": {
10486
10828
  "get": {
10487
10829
  "operationId": "listPaymentMethodsForUser",
@@ -14963,6 +15305,17 @@
14963
15305
  }
14964
15306
  }
14965
15307
  },
15308
+ "functions_config": {
15309
+ "type": "object",
15310
+ "additionalProperties": {
15311
+ "type": "object",
15312
+ "properties": {
15313
+ "display_name": {
15314
+ "type": "string"
15315
+ }
15316
+ }
15317
+ }
15318
+ },
14966
15319
  "branch": {
14967
15320
  "type": "string"
14968
15321
  },
@@ -15847,6 +16200,49 @@
15847
16200
  }
15848
16201
  }
15849
16202
  },
16203
+ "accountAddMemberSetup": {
16204
+ "type": "object",
16205
+ "properties": {
16206
+ "role": {
16207
+ "type": "string",
16208
+ "enum": [
16209
+ "Owner",
16210
+ "Collaborator",
16211
+ "Controller"
16212
+ ]
16213
+ },
16214
+ "email": {
16215
+ "type": "string"
16216
+ }
16217
+ }
16218
+ },
16219
+ "accountUpdateMemberSetup": {
16220
+ "type": "object",
16221
+ "properties": {
16222
+ "role": {
16223
+ "type": "string",
16224
+ "enum": [
16225
+ "Owner",
16226
+ "Collaborator",
16227
+ "Controller"
16228
+ ]
16229
+ },
16230
+ "site_access": {
16231
+ "type": "string",
16232
+ "enum": [
16233
+ "all",
16234
+ "none",
16235
+ "selected"
16236
+ ]
16237
+ },
16238
+ "site_ids": {
16239
+ "type": "array",
16240
+ "items": {
16241
+ "type": "string"
16242
+ }
16243
+ }
16244
+ }
16245
+ },
15850
16246
  "accountMembership": {
15851
16247
  "type": "object",
15852
16248
  "properties": {
@@ -16136,6 +16532,14 @@
16136
16532
  "type": "string"
16137
16533
  }
16138
16534
  }
16535
+ },
16536
+ "functionConfig": {
16537
+ "type": "object",
16538
+ "properties": {
16539
+ "display_name": {
16540
+ "type": "string"
16541
+ }
16542
+ }
16139
16543
  }
16140
16544
  },
16141
16545
  "parameters": {
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.12.2",
4
+ "version": "2.14.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [