@netlify/open-api 2.49.2 → 2.51.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
@@ -916,6 +916,20 @@ export interface paths {
916
916
  };
917
917
  };
918
918
  };
919
+ "/accounts/{account_id}/ai-gateway/token": {
920
+ /**
921
+ * API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAccountAIGatewayToken | `getAccountAIGatewayToken`}
922
+ *
923
+ * Returns an AI Gateway token scoped to an account
924
+ */
925
+ get: operations["getAccountAIGatewayToken"];
926
+ parameters: {
927
+ path: {
928
+ /** The account ID */
929
+ account_id: string;
930
+ };
931
+ };
932
+ };
919
933
  "/sites/{site_id}/database": {
920
934
  parameters: {
921
935
  path: {
@@ -3540,14 +3554,33 @@ export interface operations {
3540
3554
  };
3541
3555
  };
3542
3556
  responses: {
3543
- /** ok */
3557
+ /** Created */
3544
3558
  201: {
3545
3559
  content: {
3546
3560
  "application/json": components["schemas"]["ticket"];
3547
3561
  };
3548
3562
  };
3563
+ /** OAuth application not found */
3564
+ 401: {
3565
+ content: {
3566
+ "application/json": components["schemas"]["error"];
3567
+ };
3568
+ };
3569
+ /** Validation error */
3570
+ 422: {
3571
+ content: {
3572
+ "application/json": components["schemas"]["error"];
3573
+ };
3574
+ };
3549
3575
  default: components["responses"]["error"];
3550
3576
  };
3577
+ requestBody: {
3578
+ content: {
3579
+ "application/json": {
3580
+ message?: string;
3581
+ };
3582
+ };
3583
+ };
3551
3584
  };
3552
3585
  /** API Reference: {@link https://open-api.netlify.com/#tag/ticket/operation/showTicket | `showTicket`} */
3553
3586
  showTicket: {
@@ -4807,6 +4840,30 @@ export interface operations {
4807
4840
  default: components["responses"]["error"];
4808
4841
  };
4809
4842
  };
4843
+ /**
4844
+ * API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAccountAIGatewayToken | `getAccountAIGatewayToken`}
4845
+ *
4846
+ * Returns an AI Gateway token scoped to an account
4847
+ */
4848
+ getAccountAIGatewayToken: {
4849
+ parameters: {
4850
+ path: {
4851
+ /** The account ID */
4852
+ account_id: string;
4853
+ };
4854
+ };
4855
+ responses: {
4856
+ /** AI Gateway token for the account */
4857
+ 200: {
4858
+ content: {
4859
+ "application/json": components["schemas"]["aiGatewayToken"];
4860
+ };
4861
+ };
4862
+ /** AI Gateway not available for this account */
4863
+ 404: unknown;
4864
+ default: components["responses"]["error"];
4865
+ };
4866
+ };
4810
4867
  }
4811
4868
 
4812
4869
  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.49.2",
4
+ "version": "2.51.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/",
@@ -9841,11 +9841,23 @@
9841
9841
  "type": "string",
9842
9842
  "in": "query",
9843
9843
  "required": true
9844
+ },
9845
+ {
9846
+ "name": "body",
9847
+ "in": "body",
9848
+ "schema": {
9849
+ "type": "object",
9850
+ "properties": {
9851
+ "message": {
9852
+ "type": "string"
9853
+ }
9854
+ }
9855
+ }
9844
9856
  }
9845
9857
  ],
9846
9858
  "responses": {
9847
9859
  "201": {
9848
- "description": "ok",
9860
+ "description": "Created",
9849
9861
  "schema": {
9850
9862
  "type": "object",
9851
9863
  "properties": {
@@ -9865,6 +9877,44 @@
9865
9877
  }
9866
9878
  }
9867
9879
  },
9880
+ "401": {
9881
+ "description": "OAuth application not found",
9882
+ "schema": {
9883
+ "type": "object",
9884
+ "required": [
9885
+ "message"
9886
+ ],
9887
+ "properties": {
9888
+ "code": {
9889
+ "type": "integer",
9890
+ "format": "int64"
9891
+ },
9892
+ "message": {
9893
+ "type": "string",
9894
+ "x-nullable": false
9895
+ }
9896
+ }
9897
+ }
9898
+ },
9899
+ "422": {
9900
+ "description": "Validation error",
9901
+ "schema": {
9902
+ "type": "object",
9903
+ "required": [
9904
+ "message"
9905
+ ],
9906
+ "properties": {
9907
+ "code": {
9908
+ "type": "integer",
9909
+ "format": "int64"
9910
+ },
9911
+ "message": {
9912
+ "type": "string",
9913
+ "x-nullable": false
9914
+ }
9915
+ }
9916
+ }
9917
+ },
9868
9918
  "default": {
9869
9919
  "description": "error",
9870
9920
  "schema": {
@@ -17175,6 +17225,69 @@
17175
17225
  "description": "Returns an AI Gateway token for a specific site"
17176
17226
  }
17177
17227
  },
17228
+ "/accounts/{account_id}/ai-gateway/token": {
17229
+ "parameters": [
17230
+ {
17231
+ "name": "account_id",
17232
+ "type": "string",
17233
+ "in": "path",
17234
+ "required": true,
17235
+ "description": "The account ID"
17236
+ }
17237
+ ],
17238
+ "get": {
17239
+ "operationId": "getAccountAIGatewayToken",
17240
+ "tags": [
17241
+ "aiGateway"
17242
+ ],
17243
+ "responses": {
17244
+ "200": {
17245
+ "description": "AI Gateway token for the account",
17246
+ "schema": {
17247
+ "type": "object",
17248
+ "properties": {
17249
+ "token": {
17250
+ "type": "string",
17251
+ "description": "The AI Gateway authentication token"
17252
+ },
17253
+ "url": {
17254
+ "type": "string",
17255
+ "description": "AI gateway base url"
17256
+ },
17257
+ "expires_at": {
17258
+ "type": "integer",
17259
+ "format": "int64",
17260
+ "description": "Unix timestamp when the token expires"
17261
+ }
17262
+ }
17263
+ }
17264
+ },
17265
+ "404": {
17266
+ "description": "AI Gateway not available for this account"
17267
+ },
17268
+ "default": {
17269
+ "description": "error",
17270
+ "schema": {
17271
+ "type": "object",
17272
+ "required": [
17273
+ "message"
17274
+ ],
17275
+ "properties": {
17276
+ "code": {
17277
+ "type": "integer",
17278
+ "format": "int64"
17279
+ },
17280
+ "message": {
17281
+ "type": "string",
17282
+ "x-nullable": false
17283
+ }
17284
+ }
17285
+ }
17286
+ }
17287
+ },
17288
+ "description": "Returns an AI Gateway token scoped to an account"
17289
+ }
17290
+ },
17178
17291
  "/sites/{site_id}/database": {
17179
17292
  "parameters": [
17180
17293
  {
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.49.2",
4
+ "version": "2.51.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [