@netlify/open-api 2.28.0 → 2.30.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 +1148 -74
  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.28.0",
4
+ "version": "2.30.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/build/tree/main/packages/js-client)",
7
7
  "termsOfService": "https://www.netlify.com/legal/terms-of-use/",
@@ -5530,6 +5530,64 @@
5530
5530
  },
5531
5531
  "priority": {
5532
5532
  "type": "integer"
5533
+ },
5534
+ "traffic_rules": {
5535
+ "type": "object",
5536
+ "properties": {
5537
+ "action": {
5538
+ "type": "object",
5539
+ "properties": {
5540
+ "type": {
5541
+ "type": "string"
5542
+ },
5543
+ "config": {
5544
+ "type": "object",
5545
+ "properties": {
5546
+ "to": {
5547
+ "type": "string"
5548
+ },
5549
+ "rate_limit_config": {
5550
+ "type": "object",
5551
+ "properties": {
5552
+ "algorithm": {
5553
+ "type": "string",
5554
+ "enum": [
5555
+ "sliding_window"
5556
+ ]
5557
+ },
5558
+ "window_size": {
5559
+ "type": "integer"
5560
+ },
5561
+ "window_limit": {
5562
+ "type": "integer"
5563
+ }
5564
+ }
5565
+ },
5566
+ "aggregate": {
5567
+ "type": "object",
5568
+ "properties": {
5569
+ "keys": {
5570
+ "type": "array",
5571
+ "items": {
5572
+ "type": "object",
5573
+ "properties": {
5574
+ "type": {
5575
+ "type": "string",
5576
+ "enum": [
5577
+ "ip",
5578
+ "domain"
5579
+ ]
5580
+ }
5581
+ }
5582
+ }
5583
+ }
5584
+ }
5585
+ }
5586
+ }
5587
+ }
5588
+ }
5589
+ }
5590
+ }
5533
5591
  }
5534
5592
  }
5535
5593
  }
@@ -5949,6 +6007,64 @@
5949
6007
  },
5950
6008
  "priority": {
5951
6009
  "type": "integer"
6010
+ },
6011
+ "traffic_rules": {
6012
+ "type": "object",
6013
+ "properties": {
6014
+ "action": {
6015
+ "type": "object",
6016
+ "properties": {
6017
+ "type": {
6018
+ "type": "string"
6019
+ },
6020
+ "config": {
6021
+ "type": "object",
6022
+ "properties": {
6023
+ "to": {
6024
+ "type": "string"
6025
+ },
6026
+ "rate_limit_config": {
6027
+ "type": "object",
6028
+ "properties": {
6029
+ "algorithm": {
6030
+ "type": "string",
6031
+ "enum": [
6032
+ "sliding_window"
6033
+ ]
6034
+ },
6035
+ "window_size": {
6036
+ "type": "integer"
6037
+ },
6038
+ "window_limit": {
6039
+ "type": "integer"
6040
+ }
6041
+ }
6042
+ },
6043
+ "aggregate": {
6044
+ "type": "object",
6045
+ "properties": {
6046
+ "keys": {
6047
+ "type": "array",
6048
+ "items": {
6049
+ "type": "object",
6050
+ "properties": {
6051
+ "type": {
6052
+ "type": "string",
6053
+ "enum": [
6054
+ "ip",
6055
+ "domain"
6056
+ ]
6057
+ }
6058
+ }
6059
+ }
6060
+ }
6061
+ }
6062
+ }
6063
+ }
6064
+ }
6065
+ }
6066
+ }
6067
+ }
5952
6068
  }
5953
6069
  }
5954
6070
  }
@@ -10669,8 +10785,9 @@
10669
10785
  "type": "string",
10670
10786
  "enum": [
10671
10787
  "Owner",
10672
- "Collaborator",
10673
- "Controller"
10788
+ "Developer",
10789
+ "Billing Admin",
10790
+ "Reviewer"
10674
10791
  ]
10675
10792
  },
10676
10793
  "email": {
@@ -10814,8 +10931,9 @@
10814
10931
  "type": "string",
10815
10932
  "enum": [
10816
10933
  "Owner",
10817
- "Collaborator",
10818
- "Controller"
10934
+ "Developer",
10935
+ "Billing Admin",
10936
+ "Reviewer"
10819
10937
  ]
10820
10938
  },
10821
10939
  "site_access": {
@@ -13942,78 +14060,710 @@
13942
14060
  }
13943
14061
  }
13944
14062
  }
13945
- }
13946
- },
13947
- "definitions": {
13948
- "splitTestSetup": {
13949
- "type": "object",
13950
- "properties": {
13951
- "branch_tests": {
13952
- "type": "object"
13953
- }
13954
- }
13955
14063
  },
13956
- "splitTests": {
13957
- "type": "array",
13958
- "items": {
13959
- "type": "object",
13960
- "properties": {
13961
- "id": {
13962
- "type": "string"
13963
- },
13964
- "site_id": {
13965
- "type": "string"
13966
- },
13967
- "name": {
13968
- "type": "string"
13969
- },
13970
- "path": {
13971
- "type": "string"
14064
+ "/sites/{site_id}/dev_servers": {
14065
+ "parameters": [
14066
+ {
14067
+ "name": "site_id",
14068
+ "type": "string",
14069
+ "in": "path",
14070
+ "required": true
14071
+ }
14072
+ ],
14073
+ "get": {
14074
+ "operationId": "listSiteDevServers",
14075
+ "tags": [
14076
+ "devServer"
14077
+ ],
14078
+ "parameters": [
14079
+ {
14080
+ "type": "integer",
14081
+ "format": "int32",
14082
+ "name": "page",
14083
+ "required": false,
14084
+ "in": "query"
13972
14085
  },
13973
- "branches": {
13974
- "type": "array",
13975
- "items": {
13976
- "type": "object"
14086
+ {
14087
+ "type": "integer",
14088
+ "format": "int32",
14089
+ "name": "per_page",
14090
+ "required": false,
14091
+ "in": "query"
14092
+ }
14093
+ ],
14094
+ "responses": {
14095
+ "200": {
14096
+ "description": "OK",
14097
+ "schema": {
14098
+ "type": "array",
14099
+ "items": {
14100
+ "type": "object",
14101
+ "properties": {
14102
+ "id": {
14103
+ "type": "string"
14104
+ },
14105
+ "site_id": {
14106
+ "type": "string"
14107
+ },
14108
+ "branch": {
14109
+ "type": "string"
14110
+ },
14111
+ "url": {
14112
+ "type": "string"
14113
+ },
14114
+ "state": {
14115
+ "type": "string"
14116
+ },
14117
+ "created_at": {
14118
+ "type": "string",
14119
+ "format": "dateTime"
14120
+ },
14121
+ "updated_at": {
14122
+ "type": "string",
14123
+ "format": "dateTime"
14124
+ },
14125
+ "starting_at": {
14126
+ "type": "string",
14127
+ "format": "dateTime"
14128
+ },
14129
+ "error_at": {
14130
+ "type": "string",
14131
+ "format": "dateTime"
14132
+ },
14133
+ "live_at": {
14134
+ "type": "string",
14135
+ "format": "dateTime"
14136
+ },
14137
+ "done_at": {
14138
+ "type": "string",
14139
+ "format": "dateTime"
14140
+ },
14141
+ "title": {
14142
+ "type": "string"
14143
+ }
14144
+ }
14145
+ }
13977
14146
  }
13978
14147
  },
13979
- "active": {
13980
- "type": "boolean"
13981
- },
13982
- "created_at": {
13983
- "type": "string",
13984
- "format": "dateTime"
13985
- },
13986
- "updated_at": {
14148
+ "default": {
14149
+ "description": "error",
14150
+ "schema": {
14151
+ "type": "object",
14152
+ "required": [
14153
+ "message"
14154
+ ],
14155
+ "properties": {
14156
+ "code": {
14157
+ "type": "integer",
14158
+ "format": "int64"
14159
+ },
14160
+ "message": {
14161
+ "type": "string",
14162
+ "x-nullable": false
14163
+ }
14164
+ }
14165
+ }
14166
+ }
14167
+ }
14168
+ },
14169
+ "post": {
14170
+ "operationId": "createSiteDevServer",
14171
+ "tags": [
14172
+ "devServer"
14173
+ ],
14174
+ "parameters": [
14175
+ {
14176
+ "name": "branch",
13987
14177
  "type": "string",
13988
- "format": "dateTime"
14178
+ "in": "query"
14179
+ }
14180
+ ],
14181
+ "responses": {
14182
+ "200": {
14183
+ "description": "OK",
14184
+ "schema": {
14185
+ "type": "array",
14186
+ "items": {
14187
+ "type": "object",
14188
+ "properties": {
14189
+ "id": {
14190
+ "type": "string"
14191
+ },
14192
+ "site_id": {
14193
+ "type": "string"
14194
+ },
14195
+ "branch": {
14196
+ "type": "string"
14197
+ },
14198
+ "url": {
14199
+ "type": "string"
14200
+ },
14201
+ "state": {
14202
+ "type": "string"
14203
+ },
14204
+ "created_at": {
14205
+ "type": "string",
14206
+ "format": "dateTime"
14207
+ },
14208
+ "updated_at": {
14209
+ "type": "string",
14210
+ "format": "dateTime"
14211
+ },
14212
+ "starting_at": {
14213
+ "type": "string",
14214
+ "format": "dateTime"
14215
+ },
14216
+ "error_at": {
14217
+ "type": "string",
14218
+ "format": "dateTime"
14219
+ },
14220
+ "live_at": {
14221
+ "type": "string",
14222
+ "format": "dateTime"
14223
+ },
14224
+ "done_at": {
14225
+ "type": "string",
14226
+ "format": "dateTime"
14227
+ },
14228
+ "title": {
14229
+ "type": "string"
14230
+ }
14231
+ }
14232
+ }
14233
+ }
13989
14234
  },
13990
- "unpublished_at": {
13991
- "type": "string",
13992
- "format": "dateTime"
14235
+ "default": {
14236
+ "description": "error",
14237
+ "schema": {
14238
+ "type": "object",
14239
+ "required": [
14240
+ "message"
14241
+ ],
14242
+ "properties": {
14243
+ "code": {
14244
+ "type": "integer",
14245
+ "format": "int64"
14246
+ },
14247
+ "message": {
14248
+ "type": "string",
14249
+ "x-nullable": false
14250
+ }
14251
+ }
14252
+ }
13993
14253
  }
13994
14254
  }
13995
- }
13996
- },
13997
- "splitTest": {
13998
- "type": "object",
13999
- "properties": {
14000
- "id": {
14001
- "type": "string"
14002
- },
14003
- "site_id": {
14004
- "type": "string"
14005
- },
14006
- "name": {
14007
- "type": "string"
14008
- },
14009
- "path": {
14010
- "type": "string"
14011
- },
14012
- "branches": {
14013
- "type": "array",
14014
- "items": {
14015
- "type": "object"
14016
- }
14255
+ },
14256
+ "delete": {
14257
+ "operationId": "deleteSiteDevServers",
14258
+ "tags": [
14259
+ "devServer"
14260
+ ],
14261
+ "parameters": [
14262
+ {
14263
+ "name": "branch",
14264
+ "type": "string",
14265
+ "in": "query"
14266
+ }
14267
+ ],
14268
+ "responses": {
14269
+ "202": {
14270
+ "description": "OK"
14271
+ },
14272
+ "default": {
14273
+ "description": "error",
14274
+ "schema": {
14275
+ "type": "object",
14276
+ "required": [
14277
+ "message"
14278
+ ],
14279
+ "properties": {
14280
+ "code": {
14281
+ "type": "integer",
14282
+ "format": "int64"
14283
+ },
14284
+ "message": {
14285
+ "type": "string",
14286
+ "x-nullable": false
14287
+ }
14288
+ }
14289
+ }
14290
+ }
14291
+ }
14292
+ }
14293
+ },
14294
+ "/sites/{site_id}/dev_servers/{dev_server_id}": {
14295
+ "parameters": [
14296
+ {
14297
+ "name": "site_id",
14298
+ "type": "string",
14299
+ "in": "path",
14300
+ "required": true
14301
+ },
14302
+ {
14303
+ "name": "dev_server_id",
14304
+ "type": "string",
14305
+ "in": "path",
14306
+ "required": true
14307
+ }
14308
+ ],
14309
+ "get": {
14310
+ "operationId": "getSiteDevServer",
14311
+ "tags": [
14312
+ "devServer"
14313
+ ],
14314
+ "responses": {
14315
+ "200": {
14316
+ "description": "OK",
14317
+ "schema": {
14318
+ "type": "object",
14319
+ "properties": {
14320
+ "id": {
14321
+ "type": "string"
14322
+ },
14323
+ "site_id": {
14324
+ "type": "string"
14325
+ },
14326
+ "branch": {
14327
+ "type": "string"
14328
+ },
14329
+ "url": {
14330
+ "type": "string"
14331
+ },
14332
+ "state": {
14333
+ "type": "string"
14334
+ },
14335
+ "created_at": {
14336
+ "type": "string",
14337
+ "format": "dateTime"
14338
+ },
14339
+ "updated_at": {
14340
+ "type": "string",
14341
+ "format": "dateTime"
14342
+ },
14343
+ "starting_at": {
14344
+ "type": "string",
14345
+ "format": "dateTime"
14346
+ },
14347
+ "error_at": {
14348
+ "type": "string",
14349
+ "format": "dateTime"
14350
+ },
14351
+ "live_at": {
14352
+ "type": "string",
14353
+ "format": "dateTime"
14354
+ },
14355
+ "done_at": {
14356
+ "type": "string",
14357
+ "format": "dateTime"
14358
+ },
14359
+ "title": {
14360
+ "type": "string"
14361
+ }
14362
+ }
14363
+ }
14364
+ }
14365
+ }
14366
+ }
14367
+ },
14368
+ "/sites/{site_id}/dev_server_hooks": {
14369
+ "parameters": [
14370
+ {
14371
+ "name": "site_id",
14372
+ "type": "string",
14373
+ "in": "path",
14374
+ "required": true
14375
+ }
14376
+ ],
14377
+ "get": {
14378
+ "operationId": "listSiteDevServerHooks",
14379
+ "tags": [
14380
+ "devServerHook"
14381
+ ],
14382
+ "responses": {
14383
+ "200": {
14384
+ "description": "OK",
14385
+ "schema": {
14386
+ "type": "array",
14387
+ "items": {
14388
+ "type": "object",
14389
+ "properties": {
14390
+ "id": {
14391
+ "type": "string"
14392
+ },
14393
+ "title": {
14394
+ "type": "string"
14395
+ },
14396
+ "branch": {
14397
+ "type": "string"
14398
+ },
14399
+ "url": {
14400
+ "type": "string"
14401
+ },
14402
+ "site_id": {
14403
+ "type": "string"
14404
+ },
14405
+ "created_at": {
14406
+ "type": "string",
14407
+ "format": "dateTime"
14408
+ },
14409
+ "type": {
14410
+ "type": "string",
14411
+ "enum": [
14412
+ "new_dev_server",
14413
+ "content_refresh"
14414
+ ]
14415
+ }
14416
+ }
14417
+ }
14418
+ }
14419
+ },
14420
+ "default": {
14421
+ "description": "error",
14422
+ "schema": {
14423
+ "type": "object",
14424
+ "required": [
14425
+ "message"
14426
+ ],
14427
+ "properties": {
14428
+ "code": {
14429
+ "type": "integer",
14430
+ "format": "int64"
14431
+ },
14432
+ "message": {
14433
+ "type": "string",
14434
+ "x-nullable": false
14435
+ }
14436
+ }
14437
+ }
14438
+ }
14439
+ }
14440
+ },
14441
+ "post": {
14442
+ "operationId": "createSiteDevServerHook",
14443
+ "tags": [
14444
+ "devServerHook"
14445
+ ],
14446
+ "consumes": [
14447
+ "application/json"
14448
+ ],
14449
+ "parameters": [
14450
+ {
14451
+ "name": "devServerHook",
14452
+ "in": "body",
14453
+ "schema": {
14454
+ "type": "object",
14455
+ "properties": {
14456
+ "title": {
14457
+ "type": "string"
14458
+ },
14459
+ "branch": {
14460
+ "type": "string"
14461
+ },
14462
+ "type": {
14463
+ "type": "string",
14464
+ "enum": [
14465
+ "new_dev_server",
14466
+ "content_refresh"
14467
+ ]
14468
+ }
14469
+ }
14470
+ },
14471
+ "required": true
14472
+ }
14473
+ ],
14474
+ "responses": {
14475
+ "201": {
14476
+ "description": "Created",
14477
+ "schema": {
14478
+ "type": "object",
14479
+ "properties": {
14480
+ "id": {
14481
+ "type": "string"
14482
+ },
14483
+ "title": {
14484
+ "type": "string"
14485
+ },
14486
+ "branch": {
14487
+ "type": "string"
14488
+ },
14489
+ "url": {
14490
+ "type": "string"
14491
+ },
14492
+ "site_id": {
14493
+ "type": "string"
14494
+ },
14495
+ "created_at": {
14496
+ "type": "string",
14497
+ "format": "dateTime"
14498
+ },
14499
+ "type": {
14500
+ "type": "string",
14501
+ "enum": [
14502
+ "new_dev_server",
14503
+ "content_refresh"
14504
+ ]
14505
+ }
14506
+ }
14507
+ }
14508
+ },
14509
+ "default": {
14510
+ "description": "error",
14511
+ "schema": {
14512
+ "type": "object",
14513
+ "required": [
14514
+ "message"
14515
+ ],
14516
+ "properties": {
14517
+ "code": {
14518
+ "type": "integer",
14519
+ "format": "int64"
14520
+ },
14521
+ "message": {
14522
+ "type": "string",
14523
+ "x-nullable": false
14524
+ }
14525
+ }
14526
+ }
14527
+ }
14528
+ }
14529
+ }
14530
+ },
14531
+ "/sites/{site_id}/dev_server_hooks/{id}": {
14532
+ "parameters": [
14533
+ {
14534
+ "name": "site_id",
14535
+ "type": "string",
14536
+ "in": "path",
14537
+ "required": true
14538
+ },
14539
+ {
14540
+ "name": "id",
14541
+ "type": "string",
14542
+ "in": "path",
14543
+ "required": true
14544
+ }
14545
+ ],
14546
+ "get": {
14547
+ "operationId": "getSiteDevServerHook",
14548
+ "tags": [
14549
+ "devServerHook"
14550
+ ],
14551
+ "responses": {
14552
+ "200": {
14553
+ "description": "OK",
14554
+ "schema": {
14555
+ "type": "object",
14556
+ "properties": {
14557
+ "id": {
14558
+ "type": "string"
14559
+ },
14560
+ "title": {
14561
+ "type": "string"
14562
+ },
14563
+ "branch": {
14564
+ "type": "string"
14565
+ },
14566
+ "url": {
14567
+ "type": "string"
14568
+ },
14569
+ "site_id": {
14570
+ "type": "string"
14571
+ },
14572
+ "created_at": {
14573
+ "type": "string",
14574
+ "format": "dateTime"
14575
+ },
14576
+ "type": {
14577
+ "type": "string",
14578
+ "enum": [
14579
+ "new_dev_server",
14580
+ "content_refresh"
14581
+ ]
14582
+ }
14583
+ }
14584
+ }
14585
+ },
14586
+ "default": {
14587
+ "description": "error",
14588
+ "schema": {
14589
+ "type": "object",
14590
+ "required": [
14591
+ "message"
14592
+ ],
14593
+ "properties": {
14594
+ "code": {
14595
+ "type": "integer",
14596
+ "format": "int64"
14597
+ },
14598
+ "message": {
14599
+ "type": "string",
14600
+ "x-nullable": false
14601
+ }
14602
+ }
14603
+ }
14604
+ }
14605
+ }
14606
+ },
14607
+ "put": {
14608
+ "operationId": "updateSiteDevServerHook",
14609
+ "tags": [
14610
+ "devServerHook"
14611
+ ],
14612
+ "consumes": [
14613
+ "application/json"
14614
+ ],
14615
+ "parameters": [
14616
+ {
14617
+ "name": "devServerHook",
14618
+ "in": "body",
14619
+ "schema": {
14620
+ "type": "object",
14621
+ "properties": {
14622
+ "title": {
14623
+ "type": "string"
14624
+ },
14625
+ "branch": {
14626
+ "type": "string"
14627
+ },
14628
+ "type": {
14629
+ "type": "string",
14630
+ "enum": [
14631
+ "new_dev_server",
14632
+ "content_refresh"
14633
+ ]
14634
+ }
14635
+ }
14636
+ },
14637
+ "required": true
14638
+ }
14639
+ ],
14640
+ "responses": {
14641
+ "204": {
14642
+ "description": "No content"
14643
+ },
14644
+ "default": {
14645
+ "description": "error",
14646
+ "schema": {
14647
+ "type": "object",
14648
+ "required": [
14649
+ "message"
14650
+ ],
14651
+ "properties": {
14652
+ "code": {
14653
+ "type": "integer",
14654
+ "format": "int64"
14655
+ },
14656
+ "message": {
14657
+ "type": "string",
14658
+ "x-nullable": false
14659
+ }
14660
+ }
14661
+ }
14662
+ }
14663
+ }
14664
+ },
14665
+ "delete": {
14666
+ "operationId": "deleteSiteDevServerHook",
14667
+ "tags": [
14668
+ "devServerHook"
14669
+ ],
14670
+ "responses": {
14671
+ "204": {
14672
+ "description": "No content"
14673
+ },
14674
+ "default": {
14675
+ "description": "error",
14676
+ "schema": {
14677
+ "type": "object",
14678
+ "required": [
14679
+ "message"
14680
+ ],
14681
+ "properties": {
14682
+ "code": {
14683
+ "type": "integer",
14684
+ "format": "int64"
14685
+ },
14686
+ "message": {
14687
+ "type": "string",
14688
+ "x-nullable": false
14689
+ }
14690
+ }
14691
+ }
14692
+ }
14693
+ }
14694
+ }
14695
+ }
14696
+ },
14697
+ "definitions": {
14698
+ "splitTestSetup": {
14699
+ "type": "object",
14700
+ "properties": {
14701
+ "branch_tests": {
14702
+ "type": "object"
14703
+ }
14704
+ }
14705
+ },
14706
+ "splitTests": {
14707
+ "type": "array",
14708
+ "items": {
14709
+ "type": "object",
14710
+ "properties": {
14711
+ "id": {
14712
+ "type": "string"
14713
+ },
14714
+ "site_id": {
14715
+ "type": "string"
14716
+ },
14717
+ "name": {
14718
+ "type": "string"
14719
+ },
14720
+ "path": {
14721
+ "type": "string"
14722
+ },
14723
+ "branches": {
14724
+ "type": "array",
14725
+ "items": {
14726
+ "type": "object"
14727
+ }
14728
+ },
14729
+ "active": {
14730
+ "type": "boolean"
14731
+ },
14732
+ "created_at": {
14733
+ "type": "string",
14734
+ "format": "dateTime"
14735
+ },
14736
+ "updated_at": {
14737
+ "type": "string",
14738
+ "format": "dateTime"
14739
+ },
14740
+ "unpublished_at": {
14741
+ "type": "string",
14742
+ "format": "dateTime"
14743
+ }
14744
+ }
14745
+ }
14746
+ },
14747
+ "splitTest": {
14748
+ "type": "object",
14749
+ "properties": {
14750
+ "id": {
14751
+ "type": "string"
14752
+ },
14753
+ "site_id": {
14754
+ "type": "string"
14755
+ },
14756
+ "name": {
14757
+ "type": "string"
14758
+ },
14759
+ "path": {
14760
+ "type": "string"
14761
+ },
14762
+ "branches": {
14763
+ "type": "array",
14764
+ "items": {
14765
+ "type": "object"
14766
+ }
14017
14767
  },
14018
14768
  "active": {
14019
14769
  "type": "boolean"
@@ -15403,6 +16153,64 @@
15403
16153
  },
15404
16154
  "priority": {
15405
16155
  "type": "integer"
16156
+ },
16157
+ "traffic_rules": {
16158
+ "type": "object",
16159
+ "properties": {
16160
+ "action": {
16161
+ "type": "object",
16162
+ "properties": {
16163
+ "type": {
16164
+ "type": "string"
16165
+ },
16166
+ "config": {
16167
+ "type": "object",
16168
+ "properties": {
16169
+ "to": {
16170
+ "type": "string"
16171
+ },
16172
+ "rate_limit_config": {
16173
+ "type": "object",
16174
+ "properties": {
16175
+ "algorithm": {
16176
+ "type": "string",
16177
+ "enum": [
16178
+ "sliding_window"
16179
+ ]
16180
+ },
16181
+ "window_size": {
16182
+ "type": "integer"
16183
+ },
16184
+ "window_limit": {
16185
+ "type": "integer"
16186
+ }
16187
+ }
16188
+ },
16189
+ "aggregate": {
16190
+ "type": "object",
16191
+ "properties": {
16192
+ "keys": {
16193
+ "type": "array",
16194
+ "items": {
16195
+ "type": "object",
16196
+ "properties": {
16197
+ "type": {
16198
+ "type": "string",
16199
+ "enum": [
16200
+ "ip",
16201
+ "domain"
16202
+ ]
16203
+ }
16204
+ }
16205
+ }
16206
+ }
16207
+ }
16208
+ }
16209
+ }
16210
+ }
16211
+ }
16212
+ }
16213
+ }
15406
16214
  }
15407
16215
  }
15408
16216
  }
@@ -16301,8 +17109,9 @@
16301
17109
  "type": "string",
16302
17110
  "enum": [
16303
17111
  "Owner",
16304
- "Collaborator",
16305
- "Controller"
17112
+ "Developer",
17113
+ "Billing Admin",
17114
+ "Reviewer"
16306
17115
  ]
16307
17116
  },
16308
17117
  "email": {
@@ -16317,8 +17126,9 @@
16317
17126
  "type": "string",
16318
17127
  "enum": [
16319
17128
  "Owner",
16320
- "Collaborator",
16321
- "Controller"
17129
+ "Developer",
17130
+ "Billing Admin",
17131
+ "Reviewer"
16322
17132
  ]
16323
17133
  },
16324
17134
  "site_access": {
@@ -16664,6 +17474,64 @@
16664
17474
  },
16665
17475
  "priority": {
16666
17476
  "type": "integer"
17477
+ },
17478
+ "traffic_rules": {
17479
+ "type": "object",
17480
+ "properties": {
17481
+ "action": {
17482
+ "type": "object",
17483
+ "properties": {
17484
+ "type": {
17485
+ "type": "string"
17486
+ },
17487
+ "config": {
17488
+ "type": "object",
17489
+ "properties": {
17490
+ "to": {
17491
+ "type": "string"
17492
+ },
17493
+ "rate_limit_config": {
17494
+ "type": "object",
17495
+ "properties": {
17496
+ "algorithm": {
17497
+ "type": "string",
17498
+ "enum": [
17499
+ "sliding_window"
17500
+ ]
17501
+ },
17502
+ "window_size": {
17503
+ "type": "integer"
17504
+ },
17505
+ "window_limit": {
17506
+ "type": "integer"
17507
+ }
17508
+ }
17509
+ },
17510
+ "aggregate": {
17511
+ "type": "object",
17512
+ "properties": {
17513
+ "keys": {
17514
+ "type": "array",
17515
+ "items": {
17516
+ "type": "object",
17517
+ "properties": {
17518
+ "type": {
17519
+ "type": "string",
17520
+ "enum": [
17521
+ "ip",
17522
+ "domain"
17523
+ ]
17524
+ }
17525
+ }
17526
+ }
17527
+ }
17528
+ }
17529
+ }
17530
+ }
17531
+ }
17532
+ }
17533
+ }
17534
+ }
16667
17535
  }
16668
17536
  }
16669
17537
  },
@@ -16698,6 +17566,101 @@
16698
17566
  }
16699
17567
  }
16700
17568
  },
17569
+ "trafficRulesConfig": {
17570
+ "type": "object",
17571
+ "properties": {
17572
+ "action": {
17573
+ "type": "object",
17574
+ "properties": {
17575
+ "type": {
17576
+ "type": "string"
17577
+ },
17578
+ "config": {
17579
+ "type": "object",
17580
+ "properties": {
17581
+ "to": {
17582
+ "type": "string"
17583
+ },
17584
+ "rate_limit_config": {
17585
+ "type": "object",
17586
+ "properties": {
17587
+ "algorithm": {
17588
+ "type": "string",
17589
+ "enum": [
17590
+ "sliding_window"
17591
+ ]
17592
+ },
17593
+ "window_size": {
17594
+ "type": "integer"
17595
+ },
17596
+ "window_limit": {
17597
+ "type": "integer"
17598
+ }
17599
+ }
17600
+ },
17601
+ "aggregate": {
17602
+ "type": "object",
17603
+ "properties": {
17604
+ "keys": {
17605
+ "type": "array",
17606
+ "items": {
17607
+ "type": "object",
17608
+ "properties": {
17609
+ "type": {
17610
+ "type": "string",
17611
+ "enum": [
17612
+ "ip",
17613
+ "domain"
17614
+ ]
17615
+ }
17616
+ }
17617
+ }
17618
+ }
17619
+ }
17620
+ }
17621
+ }
17622
+ }
17623
+ }
17624
+ }
17625
+ }
17626
+ },
17627
+ "trafficRulesRateLimitConfig": {
17628
+ "type": "object",
17629
+ "properties": {
17630
+ "algorithm": {
17631
+ "type": "string",
17632
+ "enum": [
17633
+ "sliding_window"
17634
+ ]
17635
+ },
17636
+ "window_size": {
17637
+ "type": "integer"
17638
+ },
17639
+ "window_limit": {
17640
+ "type": "integer"
17641
+ }
17642
+ }
17643
+ },
17644
+ "trafficRulesAggregateConfig": {
17645
+ "type": "object",
17646
+ "properties": {
17647
+ "keys": {
17648
+ "type": "array",
17649
+ "items": {
17650
+ "type": "object",
17651
+ "properties": {
17652
+ "type": {
17653
+ "type": "string",
17654
+ "enum": [
17655
+ "ip",
17656
+ "domain"
17657
+ ]
17658
+ }
17659
+ }
17660
+ }
17661
+ }
17662
+ }
17663
+ },
16701
17664
  "siteFunction": {
16702
17665
  "type": "object",
16703
17666
  "properties": {
@@ -16724,6 +17687,102 @@
16724
17687
  "type": "string"
16725
17688
  }
16726
17689
  }
17690
+ },
17691
+ "devServer": {
17692
+ "type": "object",
17693
+ "properties": {
17694
+ "id": {
17695
+ "type": "string"
17696
+ },
17697
+ "site_id": {
17698
+ "type": "string"
17699
+ },
17700
+ "branch": {
17701
+ "type": "string"
17702
+ },
17703
+ "url": {
17704
+ "type": "string"
17705
+ },
17706
+ "state": {
17707
+ "type": "string"
17708
+ },
17709
+ "created_at": {
17710
+ "type": "string",
17711
+ "format": "dateTime"
17712
+ },
17713
+ "updated_at": {
17714
+ "type": "string",
17715
+ "format": "dateTime"
17716
+ },
17717
+ "starting_at": {
17718
+ "type": "string",
17719
+ "format": "dateTime"
17720
+ },
17721
+ "error_at": {
17722
+ "type": "string",
17723
+ "format": "dateTime"
17724
+ },
17725
+ "live_at": {
17726
+ "type": "string",
17727
+ "format": "dateTime"
17728
+ },
17729
+ "done_at": {
17730
+ "type": "string",
17731
+ "format": "dateTime"
17732
+ },
17733
+ "title": {
17734
+ "type": "string"
17735
+ }
17736
+ }
17737
+ },
17738
+ "devServerHook": {
17739
+ "type": "object",
17740
+ "properties": {
17741
+ "id": {
17742
+ "type": "string"
17743
+ },
17744
+ "title": {
17745
+ "type": "string"
17746
+ },
17747
+ "branch": {
17748
+ "type": "string"
17749
+ },
17750
+ "url": {
17751
+ "type": "string"
17752
+ },
17753
+ "site_id": {
17754
+ "type": "string"
17755
+ },
17756
+ "created_at": {
17757
+ "type": "string",
17758
+ "format": "dateTime"
17759
+ },
17760
+ "type": {
17761
+ "type": "string",
17762
+ "enum": [
17763
+ "new_dev_server",
17764
+ "content_refresh"
17765
+ ]
17766
+ }
17767
+ }
17768
+ },
17769
+ "devServerHookSetup": {
17770
+ "type": "object",
17771
+ "properties": {
17772
+ "title": {
17773
+ "type": "string"
17774
+ },
17775
+ "branch": {
17776
+ "type": "string"
17777
+ },
17778
+ "type": {
17779
+ "type": "string",
17780
+ "enum": [
17781
+ "new_dev_server",
17782
+ "content_refresh"
17783
+ ]
17784
+ }
17785
+ }
16727
17786
  }
16728
17787
  },
16729
17788
  "parameters": {
@@ -16799,12 +17858,19 @@
16799
17858
  "buildLogMsg"
16800
17859
  ]
16801
17860
  },
17861
+ {
17862
+ "name": "Dev servers",
17863
+ "tags": [
17864
+ "devServer"
17865
+ ]
17866
+ },
16802
17867
  {
16803
17868
  "name": "Webhooks and notifications",
16804
17869
  "tags": [
16805
17870
  "hook",
16806
17871
  "hookType",
16807
- "buildHook"
17872
+ "buildHook",
17873
+ "devServerHook"
16808
17874
  ]
16809
17875
  },
16810
17876
  {
@@ -16969,6 +18035,14 @@
16969
18035
  {
16970
18036
  "name": "assetPublicSignature",
16971
18037
  "x-displayName": "Asset public signature"
18038
+ },
18039
+ {
18040
+ "name": "devServer",
18041
+ "x-displayName": "Dev server"
18042
+ },
18043
+ {
18044
+ "name": "devServerHook",
18045
+ "x-displayName": "Dev server hook"
16972
18046
  }
16973
18047
  ]
16974
18048
  }
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.28.0",
4
+ "version": "2.30.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [