@netlify/open-api 2.39.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"];
@@ -842,18 +853,20 @@ export interface paths {
842
853
  };
843
854
  };
844
855
  "/ai-gateway/providers": {
845
- get: {
846
- responses: {
847
- /** The mapping of providers and supported models */
848
- 200: {
849
- content: {
850
- "application/json": {
851
- providers?: {
852
- [key: string]: components["schemas"]["providerDefinition"];
853
- };
854
- };
855
- };
856
- };
856
+ /** API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayProviders | `getAIGatewayProviders`} */
857
+ get: operations["getAIGatewayProviders"];
858
+ };
859
+ "/api/v1/sites/{site_id}/ai-gateway/token": {
860
+ /**
861
+ * API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayToken | `getAIGatewayToken`}
862
+ *
863
+ * Returns an AI Gateway token for a specific site
864
+ */
865
+ get: operations["getAIGatewayToken"];
866
+ parameters: {
867
+ path: {
868
+ /** The site ID */
869
+ site_id: string;
857
870
  };
858
871
  };
859
872
  };
@@ -1655,6 +1668,17 @@ export interface components {
1655
1668
  url_env_var?: string;
1656
1669
  models?: string[];
1657
1670
  };
1671
+ aiGatewayToken: {
1672
+ /** @description The AI Gateway authentication token */
1673
+ token?: string;
1674
+ /** @description AI gateway base url */
1675
+ url?: string;
1676
+ /**
1677
+ * Format: int64
1678
+ * @description Unix timestamp when the token expires
1679
+ */
1680
+ expires_at?: number;
1681
+ };
1658
1682
  };
1659
1683
  responses: {
1660
1684
  /** error */
@@ -2889,6 +2913,7 @@ export interface operations {
2889
2913
  query: {
2890
2914
  buildbot_version?: string;
2891
2915
  build_version?: string;
2916
+ task_id?: string;
2892
2917
  };
2893
2918
  };
2894
2919
  responses: {
@@ -4331,6 +4356,35 @@ export interface operations {
4331
4356
  };
4332
4357
  };
4333
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
+ };
4334
4388
  /** API Reference: {@link https://open-api.netlify.com/#tag/devServerHook/operation/listSiteDevServerHooks | `listSiteDevServerHooks`} */
4335
4389
  listSiteDevServerHooks: {
4336
4390
  parameters: {
@@ -4413,6 +4467,46 @@ export interface operations {
4413
4467
  default: components["responses"]["error"];
4414
4468
  };
4415
4469
  };
4470
+ /** API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayProviders | `getAIGatewayProviders`} */
4471
+ getAIGatewayProviders: {
4472
+ responses: {
4473
+ /** The mapping of providers and supported models */
4474
+ 200: {
4475
+ content: {
4476
+ "application/json": {
4477
+ providers?: {
4478
+ [key: string]: components["schemas"]["providerDefinition"];
4479
+ };
4480
+ };
4481
+ };
4482
+ };
4483
+ default: components["responses"]["error"];
4484
+ };
4485
+ };
4486
+ /**
4487
+ * API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayToken | `getAIGatewayToken`}
4488
+ *
4489
+ * Returns an AI Gateway token for a specific site
4490
+ */
4491
+ getAIGatewayToken: {
4492
+ parameters: {
4493
+ path: {
4494
+ /** The site ID */
4495
+ site_id: string;
4496
+ };
4497
+ };
4498
+ responses: {
4499
+ /** AI Gateway token for the site */
4500
+ 200: {
4501
+ content: {
4502
+ "application/json": components["schemas"]["aiGatewayToken"];
4503
+ };
4504
+ };
4505
+ /** AI Gateway not available for this site */
4506
+ 404: unknown;
4507
+ default: components["responses"]["error"];
4508
+ };
4509
+ };
4416
4510
  }
4417
4511
 
4418
4512
  export interface external {}
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.39.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
  {
@@ -16550,6 +16663,11 @@
16550
16663
  },
16551
16664
  "/ai-gateway/providers": {
16552
16665
  "get": {
16666
+ "operationId": "getAIGatewayProviders",
16667
+ "tags": [
16668
+ "aiGateway"
16669
+ ],
16670
+ "security": [],
16553
16671
  "responses": {
16554
16672
  "200": {
16555
16673
  "description": "The mapping of providers and supported models",
@@ -16577,9 +16695,91 @@
16577
16695
  }
16578
16696
  }
16579
16697
  }
16698
+ },
16699
+ "default": {
16700
+ "description": "error",
16701
+ "schema": {
16702
+ "type": "object",
16703
+ "required": [
16704
+ "message"
16705
+ ],
16706
+ "properties": {
16707
+ "code": {
16708
+ "type": "integer",
16709
+ "format": "int64"
16710
+ },
16711
+ "message": {
16712
+ "type": "string",
16713
+ "x-nullable": false
16714
+ }
16715
+ }
16716
+ }
16580
16717
  }
16581
16718
  }
16582
16719
  }
16720
+ },
16721
+ "/api/v1/sites/{site_id}/ai-gateway/token": {
16722
+ "parameters": [
16723
+ {
16724
+ "name": "site_id",
16725
+ "type": "string",
16726
+ "in": "path",
16727
+ "required": true,
16728
+ "description": "The site ID"
16729
+ }
16730
+ ],
16731
+ "get": {
16732
+ "operationId": "getAIGatewayToken",
16733
+ "tags": [
16734
+ "aiGateway"
16735
+ ],
16736
+ "responses": {
16737
+ "200": {
16738
+ "description": "AI Gateway token for the site",
16739
+ "schema": {
16740
+ "type": "object",
16741
+ "properties": {
16742
+ "token": {
16743
+ "type": "string",
16744
+ "description": "The AI Gateway authentication token"
16745
+ },
16746
+ "url": {
16747
+ "type": "string",
16748
+ "description": "AI gateway base url"
16749
+ },
16750
+ "expires_at": {
16751
+ "type": "integer",
16752
+ "format": "int64",
16753
+ "description": "Unix timestamp when the token expires"
16754
+ }
16755
+ }
16756
+ }
16757
+ },
16758
+ "404": {
16759
+ "description": "AI Gateway not available for this site"
16760
+ },
16761
+ "default": {
16762
+ "description": "error",
16763
+ "schema": {
16764
+ "type": "object",
16765
+ "required": [
16766
+ "message"
16767
+ ],
16768
+ "properties": {
16769
+ "code": {
16770
+ "type": "integer",
16771
+ "format": "int64"
16772
+ },
16773
+ "message": {
16774
+ "type": "string",
16775
+ "x-nullable": false
16776
+ }
16777
+ }
16778
+ }
16779
+ }
16780
+ },
16781
+ "description": "Returns an AI Gateway token for a specific site"
16782
+ }
16583
16783
  }
16584
16784
  },
16585
16785
  "definitions": {
@@ -20043,6 +20243,24 @@
20043
20243
  }
20044
20244
  }
20045
20245
  }
20246
+ },
20247
+ "aiGatewayToken": {
20248
+ "type": "object",
20249
+ "properties": {
20250
+ "token": {
20251
+ "type": "string",
20252
+ "description": "The AI Gateway authentication token"
20253
+ },
20254
+ "url": {
20255
+ "type": "string",
20256
+ "description": "AI gateway base url"
20257
+ },
20258
+ "expires_at": {
20259
+ "type": "integer",
20260
+ "format": "int64",
20261
+ "description": "Unix timestamp when the token expires"
20262
+ }
20263
+ }
20046
20264
  }
20047
20265
  },
20048
20266
  "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.39.0",
4
+ "version": "2.41.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [