@netlify/open-api 2.49.2 → 2.50.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: {
@@ -4807,6 +4821,30 @@ export interface operations {
4807
4821
  default: components["responses"]["error"];
4808
4822
  };
4809
4823
  };
4824
+ /**
4825
+ * API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAccountAIGatewayToken | `getAccountAIGatewayToken`}
4826
+ *
4827
+ * Returns an AI Gateway token scoped to an account
4828
+ */
4829
+ getAccountAIGatewayToken: {
4830
+ parameters: {
4831
+ path: {
4832
+ /** The account ID */
4833
+ account_id: string;
4834
+ };
4835
+ };
4836
+ responses: {
4837
+ /** AI Gateway token for the account */
4838
+ 200: {
4839
+ content: {
4840
+ "application/json": components["schemas"]["aiGatewayToken"];
4841
+ };
4842
+ };
4843
+ /** AI Gateway not available for this account */
4844
+ 404: unknown;
4845
+ default: components["responses"]["error"];
4846
+ };
4847
+ };
4810
4848
  }
4811
4849
 
4812
4850
  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.50.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/",
@@ -17175,6 +17175,69 @@
17175
17175
  "description": "Returns an AI Gateway token for a specific site"
17176
17176
  }
17177
17177
  },
17178
+ "/accounts/{account_id}/ai-gateway/token": {
17179
+ "parameters": [
17180
+ {
17181
+ "name": "account_id",
17182
+ "type": "string",
17183
+ "in": "path",
17184
+ "required": true,
17185
+ "description": "The account ID"
17186
+ }
17187
+ ],
17188
+ "get": {
17189
+ "operationId": "getAccountAIGatewayToken",
17190
+ "tags": [
17191
+ "aiGateway"
17192
+ ],
17193
+ "responses": {
17194
+ "200": {
17195
+ "description": "AI Gateway token for the account",
17196
+ "schema": {
17197
+ "type": "object",
17198
+ "properties": {
17199
+ "token": {
17200
+ "type": "string",
17201
+ "description": "The AI Gateway authentication token"
17202
+ },
17203
+ "url": {
17204
+ "type": "string",
17205
+ "description": "AI gateway base url"
17206
+ },
17207
+ "expires_at": {
17208
+ "type": "integer",
17209
+ "format": "int64",
17210
+ "description": "Unix timestamp when the token expires"
17211
+ }
17212
+ }
17213
+ }
17214
+ },
17215
+ "404": {
17216
+ "description": "AI Gateway not available for this account"
17217
+ },
17218
+ "default": {
17219
+ "description": "error",
17220
+ "schema": {
17221
+ "type": "object",
17222
+ "required": [
17223
+ "message"
17224
+ ],
17225
+ "properties": {
17226
+ "code": {
17227
+ "type": "integer",
17228
+ "format": "int64"
17229
+ },
17230
+ "message": {
17231
+ "type": "string",
17232
+ "x-nullable": false
17233
+ }
17234
+ }
17235
+ }
17236
+ }
17237
+ },
17238
+ "description": "Returns an AI Gateway token scoped to an account"
17239
+ }
17240
+ },
17178
17241
  "/sites/{site_id}/database": {
17179
17242
  "parameters": [
17180
17243
  {
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.50.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [