@netlify/open-api 2.40.0 → 2.42.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/index.d.ts CHANGED
@@ -348,6 +348,7 @@ export interface paths {
348
348
  query: {
349
349
  buildbot_version?: string;
350
350
  build_version?: string;
351
+ task_id?: string;
351
352
  };
352
353
  };
353
354
  };
@@ -816,6 +817,16 @@ export interface paths {
816
817
  };
817
818
  };
818
819
  };
820
+ "/sites/{site_id}/dev_servers/{dev_server_id}/state": {
821
+ /** API Reference: {@link https://open-api.netlify.com/#tag/devServer/operation/updateDevServerState | `updateDevServerState`} */
822
+ post: operations["updateDevServerState"];
823
+ parameters: {
824
+ path: {
825
+ site_id: string;
826
+ dev_server_id: string;
827
+ };
828
+ };
829
+ };
819
830
  "/sites/{site_id}/dev_server_hooks": {
820
831
  /** API Reference: {@link https://open-api.netlify.com/#tag/devServerHook/operation/listSiteDevServerHooks | `listSiteDevServerHooks`} */
821
832
  get: operations["listSiteDevServerHooks"];
@@ -972,6 +983,8 @@ export interface components {
972
983
  build_image?: string;
973
984
  prerender?: string;
974
985
  functions_region?: string;
986
+ /** @default false */
987
+ prevent_non_git_prod_deploys?: boolean;
975
988
  };
976
989
  siteSetup: components["schemas"]["site"] & {
977
990
  repo?: components["schemas"]["repoInfo"];
@@ -2902,6 +2915,7 @@ export interface operations {
2902
2915
  query: {
2903
2916
  buildbot_version?: string;
2904
2917
  build_version?: string;
2918
+ task_id?: string;
2905
2919
  };
2906
2920
  };
2907
2921
  responses: {
@@ -4344,6 +4358,35 @@ export interface operations {
4344
4358
  };
4345
4359
  };
4346
4360
  };
4361
+ /** API Reference: {@link https://open-api.netlify.com/#tag/devServer/operation/updateDevServerState | `updateDevServerState`} */
4362
+ updateDevServerState: {
4363
+ parameters: {
4364
+ path: {
4365
+ site_id: string;
4366
+ dev_server_id: string;
4367
+ };
4368
+ };
4369
+ responses: {
4370
+ /** OK */
4371
+ 200: {
4372
+ content: {
4373
+ "application/json": components["schemas"]["devServer"];
4374
+ };
4375
+ };
4376
+ /** Conflict */
4377
+ 409: unknown;
4378
+ };
4379
+ requestBody: {
4380
+ content: {
4381
+ "application/json": {
4382
+ /** @enum {string} */
4383
+ state: "starting" | "live" | "error" | "done";
4384
+ task_id?: string;
4385
+ error?: string;
4386
+ };
4387
+ };
4388
+ };
4389
+ };
4347
4390
  /** API Reference: {@link https://open-api.netlify.com/#tag/devServerHook/operation/listSiteDevServerHooks | `listSiteDevServerHooks`} */
4348
4391
  listSiteDevServerHooks: {
4349
4392
  parameters: {
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.40.0",
4
+ "version": "2.42.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/",
@@ -400,6 +400,10 @@
400
400
  },
401
401
  "functions_region": {
402
402
  "type": "string"
403
+ },
404
+ "prevent_non_git_prod_deploys": {
405
+ "type": "boolean",
406
+ "default": false
403
407
  }
404
408
  }
405
409
  }
@@ -739,6 +743,10 @@
739
743
  },
740
744
  "functions_region": {
741
745
  "type": "string"
746
+ },
747
+ "prevent_non_git_prod_deploys": {
748
+ "type": "boolean",
749
+ "default": false
742
750
  }
743
751
  }
744
752
  },
@@ -1113,6 +1121,10 @@
1113
1121
  },
1114
1122
  "functions_region": {
1115
1123
  "type": "string"
1124
+ },
1125
+ "prevent_non_git_prod_deploys": {
1126
+ "type": "boolean",
1127
+ "default": false
1116
1128
  }
1117
1129
  }
1118
1130
  }
@@ -1463,6 +1475,10 @@
1463
1475
  },
1464
1476
  "functions_region": {
1465
1477
  "type": "string"
1478
+ },
1479
+ "prevent_non_git_prod_deploys": {
1480
+ "type": "boolean",
1481
+ "default": false
1466
1482
  }
1467
1483
  }
1468
1484
  }
@@ -1801,6 +1817,10 @@
1801
1817
  },
1802
1818
  "functions_region": {
1803
1819
  "type": "string"
1820
+ },
1821
+ "prevent_non_git_prod_deploys": {
1822
+ "type": "boolean",
1823
+ "default": false
1804
1824
  }
1805
1825
  }
1806
1826
  },
@@ -2170,6 +2190,10 @@
2170
2190
  },
2171
2191
  "functions_region": {
2172
2192
  "type": "string"
2193
+ },
2194
+ "prevent_non_git_prod_deploys": {
2195
+ "type": "boolean",
2196
+ "default": false
2173
2197
  }
2174
2198
  }
2175
2199
  }
@@ -7235,6 +7259,10 @@
7235
7259
  },
7236
7260
  "functions_region": {
7237
7261
  "type": "string"
7262
+ },
7263
+ "prevent_non_git_prod_deploys": {
7264
+ "type": "boolean",
7265
+ "default": false
7238
7266
  }
7239
7267
  }
7240
7268
  }
@@ -7394,6 +7422,12 @@
7394
7422
  "type": "string",
7395
7423
  "in": "query",
7396
7424
  "required": false
7425
+ },
7426
+ {
7427
+ "name": "task_id",
7428
+ "type": "string",
7429
+ "in": "query",
7430
+ "required": false
7397
7431
  }
7398
7432
  ],
7399
7433
  "post": {
@@ -10135,6 +10169,10 @@
10135
10169
  },
10136
10170
  "functions_region": {
10137
10171
  "type": "string"
10172
+ },
10173
+ "prevent_non_git_prod_deploys": {
10174
+ "type": "boolean",
10175
+ "default": false
10138
10176
  }
10139
10177
  }
10140
10178
  },
@@ -10514,6 +10552,10 @@
10514
10552
  },
10515
10553
  "functions_region": {
10516
10554
  "type": "string"
10555
+ },
10556
+ "prevent_non_git_prod_deploys": {
10557
+ "type": "boolean",
10558
+ "default": false
10517
10559
  }
10518
10560
  }
10519
10561
  }
@@ -10875,6 +10917,10 @@
10875
10917
  },
10876
10918
  "functions_region": {
10877
10919
  "type": "string"
10920
+ },
10921
+ "prevent_non_git_prod_deploys": {
10922
+ "type": "boolean",
10923
+ "default": false
10878
10924
  }
10879
10925
  }
10880
10926
  }
@@ -16220,6 +16266,113 @@
16220
16266
  }
16221
16267
  }
16222
16268
  },
16269
+ "/sites/{site_id}/dev_servers/{dev_server_id}/state": {
16270
+ "parameters": [
16271
+ {
16272
+ "name": "site_id",
16273
+ "type": "string",
16274
+ "in": "path",
16275
+ "required": true
16276
+ },
16277
+ {
16278
+ "name": "dev_server_id",
16279
+ "type": "string",
16280
+ "in": "path",
16281
+ "required": true
16282
+ }
16283
+ ],
16284
+ "post": {
16285
+ "operationId": "updateDevServerState",
16286
+ "tags": [
16287
+ "devServer"
16288
+ ],
16289
+ "parameters": [
16290
+ {
16291
+ "name": "body",
16292
+ "in": "body",
16293
+ "required": true,
16294
+ "schema": {
16295
+ "type": "object",
16296
+ "required": [
16297
+ "state"
16298
+ ],
16299
+ "properties": {
16300
+ "state": {
16301
+ "type": "string",
16302
+ "enum": [
16303
+ "starting",
16304
+ "live",
16305
+ "error",
16306
+ "done"
16307
+ ]
16308
+ },
16309
+ "task_id": {
16310
+ "type": "string"
16311
+ },
16312
+ "error": {
16313
+ "type": "string"
16314
+ }
16315
+ }
16316
+ }
16317
+ }
16318
+ ],
16319
+ "responses": {
16320
+ "200": {
16321
+ "description": "OK",
16322
+ "schema": {
16323
+ "type": "object",
16324
+ "properties": {
16325
+ "id": {
16326
+ "type": "string"
16327
+ },
16328
+ "site_id": {
16329
+ "type": "string"
16330
+ },
16331
+ "branch": {
16332
+ "type": "string"
16333
+ },
16334
+ "url": {
16335
+ "type": "string"
16336
+ },
16337
+ "state": {
16338
+ "type": "string"
16339
+ },
16340
+ "created_at": {
16341
+ "type": "string",
16342
+ "format": "dateTime"
16343
+ },
16344
+ "updated_at": {
16345
+ "type": "string",
16346
+ "format": "dateTime"
16347
+ },
16348
+ "starting_at": {
16349
+ "type": "string",
16350
+ "format": "dateTime"
16351
+ },
16352
+ "error_at": {
16353
+ "type": "string",
16354
+ "format": "dateTime"
16355
+ },
16356
+ "live_at": {
16357
+ "type": "string",
16358
+ "format": "dateTime"
16359
+ },
16360
+ "done_at": {
16361
+ "type": "string",
16362
+ "format": "dateTime"
16363
+ },
16364
+ "title": {
16365
+ "type": "string"
16366
+ }
16367
+ }
16368
+ }
16369
+ },
16370
+ "409": {
16371
+ "description": "Conflict"
16372
+ }
16373
+ }
16374
+ }
16375
+ },
16223
16376
  "/sites/{site_id}/dev_server_hooks": {
16224
16377
  "parameters": [
16225
16378
  {
@@ -17201,6 +17354,10 @@
17201
17354
  },
17202
17355
  "functions_region": {
17203
17356
  "type": "string"
17357
+ },
17358
+ "prevent_non_git_prod_deploys": {
17359
+ "type": "boolean",
17360
+ "default": false
17204
17361
  }
17205
17362
  }
17206
17363
  },
@@ -17504,6 +17661,10 @@
17504
17661
  },
17505
17662
  "functions_region": {
17506
17663
  "type": "string"
17664
+ },
17665
+ "prevent_non_git_prod_deploys": {
17666
+ "type": "boolean",
17667
+ "default": false
17507
17668
  }
17508
17669
  }
17509
17670
  },
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.40.0",
4
+ "version": "2.42.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [