@netlify/open-api 2.12.2 → 2.13.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 +342 -20
- 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.
|
|
4
|
+
"version": "2.13.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
|
},
|
|
@@ -9955,7 +10022,8 @@
|
|
|
9955
10022
|
}
|
|
9956
10023
|
}
|
|
9957
10024
|
}
|
|
9958
|
-
}
|
|
10025
|
+
},
|
|
10026
|
+
"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
10027
|
},
|
|
9960
10028
|
"get": {
|
|
9961
10029
|
"operationId": "listSitesForAccount",
|
|
@@ -10345,7 +10413,8 @@
|
|
|
10345
10413
|
}
|
|
10346
10414
|
}
|
|
10347
10415
|
}
|
|
10348
|
-
}
|
|
10416
|
+
},
|
|
10417
|
+
"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
10418
|
}
|
|
10350
10419
|
},
|
|
10351
10420
|
"/{account_slug}/members": {
|
|
@@ -10415,21 +10484,29 @@
|
|
|
10415
10484
|
"tags": [
|
|
10416
10485
|
"member"
|
|
10417
10486
|
],
|
|
10487
|
+
"consumes": [
|
|
10488
|
+
"application/json"
|
|
10489
|
+
],
|
|
10418
10490
|
"parameters": [
|
|
10419
10491
|
{
|
|
10420
|
-
"name": "
|
|
10421
|
-
"in": "
|
|
10422
|
-
"
|
|
10423
|
-
|
|
10424
|
-
"
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10492
|
+
"name": "accountAddMemberSetup",
|
|
10493
|
+
"in": "body",
|
|
10494
|
+
"schema": {
|
|
10495
|
+
"type": "object",
|
|
10496
|
+
"properties": {
|
|
10497
|
+
"role": {
|
|
10498
|
+
"type": "string",
|
|
10499
|
+
"enum": [
|
|
10500
|
+
"Owner",
|
|
10501
|
+
"Collaborator",
|
|
10502
|
+
"Controller"
|
|
10503
|
+
]
|
|
10504
|
+
},
|
|
10505
|
+
"email": {
|
|
10506
|
+
"type": "string"
|
|
10507
|
+
}
|
|
10508
|
+
}
|
|
10509
|
+
},
|
|
10433
10510
|
"required": true
|
|
10434
10511
|
}
|
|
10435
10512
|
],
|
|
@@ -10482,6 +10559,189 @@
|
|
|
10482
10559
|
}
|
|
10483
10560
|
}
|
|
10484
10561
|
},
|
|
10562
|
+
"/{account_slug}/members/{member_id}": {
|
|
10563
|
+
"parameters": [
|
|
10564
|
+
{
|
|
10565
|
+
"name": "account_slug",
|
|
10566
|
+
"in": "path",
|
|
10567
|
+
"type": "string",
|
|
10568
|
+
"required": true
|
|
10569
|
+
},
|
|
10570
|
+
{
|
|
10571
|
+
"name": "member_id",
|
|
10572
|
+
"in": "path",
|
|
10573
|
+
"type": "string",
|
|
10574
|
+
"required": true
|
|
10575
|
+
}
|
|
10576
|
+
],
|
|
10577
|
+
"get": {
|
|
10578
|
+
"operationId": "getAccountMember",
|
|
10579
|
+
"tags": [
|
|
10580
|
+
"member"
|
|
10581
|
+
],
|
|
10582
|
+
"responses": {
|
|
10583
|
+
"200": {
|
|
10584
|
+
"description": "OK",
|
|
10585
|
+
"schema": {
|
|
10586
|
+
"type": "object",
|
|
10587
|
+
"properties": {
|
|
10588
|
+
"id": {
|
|
10589
|
+
"type": "string"
|
|
10590
|
+
},
|
|
10591
|
+
"full_name": {
|
|
10592
|
+
"type": "string"
|
|
10593
|
+
},
|
|
10594
|
+
"email": {
|
|
10595
|
+
"type": "string"
|
|
10596
|
+
},
|
|
10597
|
+
"avatar": {
|
|
10598
|
+
"type": "string"
|
|
10599
|
+
},
|
|
10600
|
+
"role": {
|
|
10601
|
+
"type": "string"
|
|
10602
|
+
}
|
|
10603
|
+
}
|
|
10604
|
+
}
|
|
10605
|
+
},
|
|
10606
|
+
"default": {
|
|
10607
|
+
"description": "error",
|
|
10608
|
+
"schema": {
|
|
10609
|
+
"type": "object",
|
|
10610
|
+
"required": [
|
|
10611
|
+
"message"
|
|
10612
|
+
],
|
|
10613
|
+
"properties": {
|
|
10614
|
+
"code": {
|
|
10615
|
+
"type": "integer",
|
|
10616
|
+
"format": "int64"
|
|
10617
|
+
},
|
|
10618
|
+
"message": {
|
|
10619
|
+
"type": "string",
|
|
10620
|
+
"x-nullable": false
|
|
10621
|
+
}
|
|
10622
|
+
}
|
|
10623
|
+
}
|
|
10624
|
+
}
|
|
10625
|
+
}
|
|
10626
|
+
},
|
|
10627
|
+
"put": {
|
|
10628
|
+
"operationId": "updateAccountMember",
|
|
10629
|
+
"tags": [
|
|
10630
|
+
"member"
|
|
10631
|
+
],
|
|
10632
|
+
"consumes": [
|
|
10633
|
+
"application/json"
|
|
10634
|
+
],
|
|
10635
|
+
"parameters": [
|
|
10636
|
+
{
|
|
10637
|
+
"name": "accountUpdateMemberSetup",
|
|
10638
|
+
"in": "body",
|
|
10639
|
+
"schema": {
|
|
10640
|
+
"type": "object",
|
|
10641
|
+
"properties": {
|
|
10642
|
+
"role": {
|
|
10643
|
+
"type": "string",
|
|
10644
|
+
"enum": [
|
|
10645
|
+
"Owner",
|
|
10646
|
+
"Collaborator",
|
|
10647
|
+
"Controller"
|
|
10648
|
+
]
|
|
10649
|
+
},
|
|
10650
|
+
"site_access": {
|
|
10651
|
+
"type": "string",
|
|
10652
|
+
"enum": [
|
|
10653
|
+
"all",
|
|
10654
|
+
"none",
|
|
10655
|
+
"selected"
|
|
10656
|
+
]
|
|
10657
|
+
},
|
|
10658
|
+
"site_ids": {
|
|
10659
|
+
"type": "array",
|
|
10660
|
+
"items": {
|
|
10661
|
+
"type": "string"
|
|
10662
|
+
}
|
|
10663
|
+
}
|
|
10664
|
+
}
|
|
10665
|
+
},
|
|
10666
|
+
"required": true
|
|
10667
|
+
}
|
|
10668
|
+
],
|
|
10669
|
+
"responses": {
|
|
10670
|
+
"200": {
|
|
10671
|
+
"description": "OK",
|
|
10672
|
+
"schema": {
|
|
10673
|
+
"type": "object",
|
|
10674
|
+
"properties": {
|
|
10675
|
+
"id": {
|
|
10676
|
+
"type": "string"
|
|
10677
|
+
},
|
|
10678
|
+
"full_name": {
|
|
10679
|
+
"type": "string"
|
|
10680
|
+
},
|
|
10681
|
+
"email": {
|
|
10682
|
+
"type": "string"
|
|
10683
|
+
},
|
|
10684
|
+
"avatar": {
|
|
10685
|
+
"type": "string"
|
|
10686
|
+
},
|
|
10687
|
+
"role": {
|
|
10688
|
+
"type": "string"
|
|
10689
|
+
}
|
|
10690
|
+
}
|
|
10691
|
+
}
|
|
10692
|
+
},
|
|
10693
|
+
"default": {
|
|
10694
|
+
"description": "error",
|
|
10695
|
+
"schema": {
|
|
10696
|
+
"type": "object",
|
|
10697
|
+
"required": [
|
|
10698
|
+
"message"
|
|
10699
|
+
],
|
|
10700
|
+
"properties": {
|
|
10701
|
+
"code": {
|
|
10702
|
+
"type": "integer",
|
|
10703
|
+
"format": "int64"
|
|
10704
|
+
},
|
|
10705
|
+
"message": {
|
|
10706
|
+
"type": "string",
|
|
10707
|
+
"x-nullable": false
|
|
10708
|
+
}
|
|
10709
|
+
}
|
|
10710
|
+
}
|
|
10711
|
+
}
|
|
10712
|
+
}
|
|
10713
|
+
},
|
|
10714
|
+
"delete": {
|
|
10715
|
+
"operationId": "removeAccountMember",
|
|
10716
|
+
"tags": [
|
|
10717
|
+
"member"
|
|
10718
|
+
],
|
|
10719
|
+
"responses": {
|
|
10720
|
+
"204": {
|
|
10721
|
+
"description": "Not Content"
|
|
10722
|
+
},
|
|
10723
|
+
"default": {
|
|
10724
|
+
"description": "error",
|
|
10725
|
+
"schema": {
|
|
10726
|
+
"type": "object",
|
|
10727
|
+
"required": [
|
|
10728
|
+
"message"
|
|
10729
|
+
],
|
|
10730
|
+
"properties": {
|
|
10731
|
+
"code": {
|
|
10732
|
+
"type": "integer",
|
|
10733
|
+
"format": "int64"
|
|
10734
|
+
},
|
|
10735
|
+
"message": {
|
|
10736
|
+
"type": "string",
|
|
10737
|
+
"x-nullable": false
|
|
10738
|
+
}
|
|
10739
|
+
}
|
|
10740
|
+
}
|
|
10741
|
+
}
|
|
10742
|
+
}
|
|
10743
|
+
}
|
|
10744
|
+
},
|
|
10485
10745
|
"/billing/payment_methods": {
|
|
10486
10746
|
"get": {
|
|
10487
10747
|
"operationId": "listPaymentMethodsForUser",
|
|
@@ -14963,6 +15223,17 @@
|
|
|
14963
15223
|
}
|
|
14964
15224
|
}
|
|
14965
15225
|
},
|
|
15226
|
+
"functions_config": {
|
|
15227
|
+
"type": "object",
|
|
15228
|
+
"additionalProperties": {
|
|
15229
|
+
"type": "object",
|
|
15230
|
+
"properties": {
|
|
15231
|
+
"display_name": {
|
|
15232
|
+
"type": "string"
|
|
15233
|
+
}
|
|
15234
|
+
}
|
|
15235
|
+
}
|
|
15236
|
+
},
|
|
14966
15237
|
"branch": {
|
|
14967
15238
|
"type": "string"
|
|
14968
15239
|
},
|
|
@@ -15847,6 +16118,49 @@
|
|
|
15847
16118
|
}
|
|
15848
16119
|
}
|
|
15849
16120
|
},
|
|
16121
|
+
"accountAddMemberSetup": {
|
|
16122
|
+
"type": "object",
|
|
16123
|
+
"properties": {
|
|
16124
|
+
"role": {
|
|
16125
|
+
"type": "string",
|
|
16126
|
+
"enum": [
|
|
16127
|
+
"Owner",
|
|
16128
|
+
"Collaborator",
|
|
16129
|
+
"Controller"
|
|
16130
|
+
]
|
|
16131
|
+
},
|
|
16132
|
+
"email": {
|
|
16133
|
+
"type": "string"
|
|
16134
|
+
}
|
|
16135
|
+
}
|
|
16136
|
+
},
|
|
16137
|
+
"accountUpdateMemberSetup": {
|
|
16138
|
+
"type": "object",
|
|
16139
|
+
"properties": {
|
|
16140
|
+
"role": {
|
|
16141
|
+
"type": "string",
|
|
16142
|
+
"enum": [
|
|
16143
|
+
"Owner",
|
|
16144
|
+
"Collaborator",
|
|
16145
|
+
"Controller"
|
|
16146
|
+
]
|
|
16147
|
+
},
|
|
16148
|
+
"site_access": {
|
|
16149
|
+
"type": "string",
|
|
16150
|
+
"enum": [
|
|
16151
|
+
"all",
|
|
16152
|
+
"none",
|
|
16153
|
+
"selected"
|
|
16154
|
+
]
|
|
16155
|
+
},
|
|
16156
|
+
"site_ids": {
|
|
16157
|
+
"type": "array",
|
|
16158
|
+
"items": {
|
|
16159
|
+
"type": "string"
|
|
16160
|
+
}
|
|
16161
|
+
}
|
|
16162
|
+
}
|
|
16163
|
+
},
|
|
15850
16164
|
"accountMembership": {
|
|
15851
16165
|
"type": "object",
|
|
15852
16166
|
"properties": {
|
|
@@ -16136,6 +16450,14 @@
|
|
|
16136
16450
|
"type": "string"
|
|
16137
16451
|
}
|
|
16138
16452
|
}
|
|
16453
|
+
},
|
|
16454
|
+
"functionConfig": {
|
|
16455
|
+
"type": "object",
|
|
16456
|
+
"properties": {
|
|
16457
|
+
"display_name": {
|
|
16458
|
+
"type": "string"
|
|
16459
|
+
}
|
|
16460
|
+
}
|
|
16139
16461
|
}
|
|
16140
16462
|
},
|
|
16141
16463
|
"parameters": {
|