@netlify/open-api 2.40.0 → 2.41.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"];
@@ -2902,6 +2913,7 @@ export interface operations {
2902
2913
  query: {
2903
2914
  buildbot_version?: string;
2904
2915
  build_version?: string;
2916
+ task_id?: string;
2905
2917
  };
2906
2918
  };
2907
2919
  responses: {
@@ -4344,6 +4356,35 @@ export interface operations {
4344
4356
  };
4345
4357
  };
4346
4358
  };
4359
+ /** API Reference: {@link https://open-api.netlify.com/#tag/devServer/operation/updateDevServerState | `updateDevServerState`} */
4360
+ updateDevServerState: {
4361
+ parameters: {
4362
+ path: {
4363
+ site_id: string;
4364
+ dev_server_id: string;
4365
+ };
4366
+ };
4367
+ responses: {
4368
+ /** OK */
4369
+ 200: {
4370
+ content: {
4371
+ "application/json": components["schemas"]["devServer"];
4372
+ };
4373
+ };
4374
+ /** Conflict */
4375
+ 409: unknown;
4376
+ };
4377
+ requestBody: {
4378
+ content: {
4379
+ "application/json": {
4380
+ /** @enum {string} */
4381
+ state: "starting" | "live" | "error" | "done";
4382
+ task_id?: string;
4383
+ error?: string;
4384
+ };
4385
+ };
4386
+ };
4387
+ };
4347
4388
  /** API Reference: {@link https://open-api.netlify.com/#tag/devServerHook/operation/listSiteDevServerHooks | `listSiteDevServerHooks`} */
4348
4389
  listSiteDevServerHooks: {
4349
4390
  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.41.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/",
@@ -7394,6 +7394,12 @@
7394
7394
  "type": "string",
7395
7395
  "in": "query",
7396
7396
  "required": false
7397
+ },
7398
+ {
7399
+ "name": "task_id",
7400
+ "type": "string",
7401
+ "in": "query",
7402
+ "required": false
7397
7403
  }
7398
7404
  ],
7399
7405
  "post": {
@@ -16220,6 +16226,113 @@
16220
16226
  }
16221
16227
  }
16222
16228
  },
16229
+ "/sites/{site_id}/dev_servers/{dev_server_id}/state": {
16230
+ "parameters": [
16231
+ {
16232
+ "name": "site_id",
16233
+ "type": "string",
16234
+ "in": "path",
16235
+ "required": true
16236
+ },
16237
+ {
16238
+ "name": "dev_server_id",
16239
+ "type": "string",
16240
+ "in": "path",
16241
+ "required": true
16242
+ }
16243
+ ],
16244
+ "post": {
16245
+ "operationId": "updateDevServerState",
16246
+ "tags": [
16247
+ "devServer"
16248
+ ],
16249
+ "parameters": [
16250
+ {
16251
+ "name": "body",
16252
+ "in": "body",
16253
+ "required": true,
16254
+ "schema": {
16255
+ "type": "object",
16256
+ "required": [
16257
+ "state"
16258
+ ],
16259
+ "properties": {
16260
+ "state": {
16261
+ "type": "string",
16262
+ "enum": [
16263
+ "starting",
16264
+ "live",
16265
+ "error",
16266
+ "done"
16267
+ ]
16268
+ },
16269
+ "task_id": {
16270
+ "type": "string"
16271
+ },
16272
+ "error": {
16273
+ "type": "string"
16274
+ }
16275
+ }
16276
+ }
16277
+ }
16278
+ ],
16279
+ "responses": {
16280
+ "200": {
16281
+ "description": "OK",
16282
+ "schema": {
16283
+ "type": "object",
16284
+ "properties": {
16285
+ "id": {
16286
+ "type": "string"
16287
+ },
16288
+ "site_id": {
16289
+ "type": "string"
16290
+ },
16291
+ "branch": {
16292
+ "type": "string"
16293
+ },
16294
+ "url": {
16295
+ "type": "string"
16296
+ },
16297
+ "state": {
16298
+ "type": "string"
16299
+ },
16300
+ "created_at": {
16301
+ "type": "string",
16302
+ "format": "dateTime"
16303
+ },
16304
+ "updated_at": {
16305
+ "type": "string",
16306
+ "format": "dateTime"
16307
+ },
16308
+ "starting_at": {
16309
+ "type": "string",
16310
+ "format": "dateTime"
16311
+ },
16312
+ "error_at": {
16313
+ "type": "string",
16314
+ "format": "dateTime"
16315
+ },
16316
+ "live_at": {
16317
+ "type": "string",
16318
+ "format": "dateTime"
16319
+ },
16320
+ "done_at": {
16321
+ "type": "string",
16322
+ "format": "dateTime"
16323
+ },
16324
+ "title": {
16325
+ "type": "string"
16326
+ }
16327
+ }
16328
+ }
16329
+ },
16330
+ "409": {
16331
+ "description": "Conflict"
16332
+ }
16333
+ }
16334
+ }
16335
+ },
16223
16336
  "/sites/{site_id}/dev_server_hooks": {
16224
16337
  "parameters": [
16225
16338
  {
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.41.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [