@netlify/open-api 2.39.0 → 2.40.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 +65 -12
- package/dist/swagger.json +106 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -842,18 +842,20 @@ export interface paths {
|
|
|
842
842
|
};
|
|
843
843
|
};
|
|
844
844
|
"/ai-gateway/providers": {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
845
|
+
/** API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayProviders | `getAIGatewayProviders`} */
|
|
846
|
+
get: operations["getAIGatewayProviders"];
|
|
847
|
+
};
|
|
848
|
+
"/api/v1/sites/{site_id}/ai-gateway/token": {
|
|
849
|
+
/**
|
|
850
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayToken | `getAIGatewayToken`}
|
|
851
|
+
*
|
|
852
|
+
* Returns an AI Gateway token for a specific site
|
|
853
|
+
*/
|
|
854
|
+
get: operations["getAIGatewayToken"];
|
|
855
|
+
parameters: {
|
|
856
|
+
path: {
|
|
857
|
+
/** The site ID */
|
|
858
|
+
site_id: string;
|
|
857
859
|
};
|
|
858
860
|
};
|
|
859
861
|
};
|
|
@@ -1655,6 +1657,17 @@ export interface components {
|
|
|
1655
1657
|
url_env_var?: string;
|
|
1656
1658
|
models?: string[];
|
|
1657
1659
|
};
|
|
1660
|
+
aiGatewayToken: {
|
|
1661
|
+
/** @description The AI Gateway authentication token */
|
|
1662
|
+
token?: string;
|
|
1663
|
+
/** @description AI gateway base url */
|
|
1664
|
+
url?: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* Format: int64
|
|
1667
|
+
* @description Unix timestamp when the token expires
|
|
1668
|
+
*/
|
|
1669
|
+
expires_at?: number;
|
|
1670
|
+
};
|
|
1658
1671
|
};
|
|
1659
1672
|
responses: {
|
|
1660
1673
|
/** error */
|
|
@@ -4413,6 +4426,46 @@ export interface operations {
|
|
|
4413
4426
|
default: components["responses"]["error"];
|
|
4414
4427
|
};
|
|
4415
4428
|
};
|
|
4429
|
+
/** API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayProviders | `getAIGatewayProviders`} */
|
|
4430
|
+
getAIGatewayProviders: {
|
|
4431
|
+
responses: {
|
|
4432
|
+
/** The mapping of providers and supported models */
|
|
4433
|
+
200: {
|
|
4434
|
+
content: {
|
|
4435
|
+
"application/json": {
|
|
4436
|
+
providers?: {
|
|
4437
|
+
[key: string]: components["schemas"]["providerDefinition"];
|
|
4438
|
+
};
|
|
4439
|
+
};
|
|
4440
|
+
};
|
|
4441
|
+
};
|
|
4442
|
+
default: components["responses"]["error"];
|
|
4443
|
+
};
|
|
4444
|
+
};
|
|
4445
|
+
/**
|
|
4446
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/aiGateway/operation/getAIGatewayToken | `getAIGatewayToken`}
|
|
4447
|
+
*
|
|
4448
|
+
* Returns an AI Gateway token for a specific site
|
|
4449
|
+
*/
|
|
4450
|
+
getAIGatewayToken: {
|
|
4451
|
+
parameters: {
|
|
4452
|
+
path: {
|
|
4453
|
+
/** The site ID */
|
|
4454
|
+
site_id: string;
|
|
4455
|
+
};
|
|
4456
|
+
};
|
|
4457
|
+
responses: {
|
|
4458
|
+
/** AI Gateway token for the site */
|
|
4459
|
+
200: {
|
|
4460
|
+
content: {
|
|
4461
|
+
"application/json": components["schemas"]["aiGatewayToken"];
|
|
4462
|
+
};
|
|
4463
|
+
};
|
|
4464
|
+
/** AI Gateway not available for this site */
|
|
4465
|
+
404: unknown;
|
|
4466
|
+
default: components["responses"]["error"];
|
|
4467
|
+
};
|
|
4468
|
+
};
|
|
4416
4469
|
}
|
|
4417
4470
|
|
|
4418
4471
|
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.
|
|
4
|
+
"version": "2.40.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/",
|
|
@@ -16550,6 +16550,11 @@
|
|
|
16550
16550
|
},
|
|
16551
16551
|
"/ai-gateway/providers": {
|
|
16552
16552
|
"get": {
|
|
16553
|
+
"operationId": "getAIGatewayProviders",
|
|
16554
|
+
"tags": [
|
|
16555
|
+
"aiGateway"
|
|
16556
|
+
],
|
|
16557
|
+
"security": [],
|
|
16553
16558
|
"responses": {
|
|
16554
16559
|
"200": {
|
|
16555
16560
|
"description": "The mapping of providers and supported models",
|
|
@@ -16577,9 +16582,91 @@
|
|
|
16577
16582
|
}
|
|
16578
16583
|
}
|
|
16579
16584
|
}
|
|
16585
|
+
},
|
|
16586
|
+
"default": {
|
|
16587
|
+
"description": "error",
|
|
16588
|
+
"schema": {
|
|
16589
|
+
"type": "object",
|
|
16590
|
+
"required": [
|
|
16591
|
+
"message"
|
|
16592
|
+
],
|
|
16593
|
+
"properties": {
|
|
16594
|
+
"code": {
|
|
16595
|
+
"type": "integer",
|
|
16596
|
+
"format": "int64"
|
|
16597
|
+
},
|
|
16598
|
+
"message": {
|
|
16599
|
+
"type": "string",
|
|
16600
|
+
"x-nullable": false
|
|
16601
|
+
}
|
|
16602
|
+
}
|
|
16603
|
+
}
|
|
16580
16604
|
}
|
|
16581
16605
|
}
|
|
16582
16606
|
}
|
|
16607
|
+
},
|
|
16608
|
+
"/api/v1/sites/{site_id}/ai-gateway/token": {
|
|
16609
|
+
"parameters": [
|
|
16610
|
+
{
|
|
16611
|
+
"name": "site_id",
|
|
16612
|
+
"type": "string",
|
|
16613
|
+
"in": "path",
|
|
16614
|
+
"required": true,
|
|
16615
|
+
"description": "The site ID"
|
|
16616
|
+
}
|
|
16617
|
+
],
|
|
16618
|
+
"get": {
|
|
16619
|
+
"operationId": "getAIGatewayToken",
|
|
16620
|
+
"tags": [
|
|
16621
|
+
"aiGateway"
|
|
16622
|
+
],
|
|
16623
|
+
"responses": {
|
|
16624
|
+
"200": {
|
|
16625
|
+
"description": "AI Gateway token for the site",
|
|
16626
|
+
"schema": {
|
|
16627
|
+
"type": "object",
|
|
16628
|
+
"properties": {
|
|
16629
|
+
"token": {
|
|
16630
|
+
"type": "string",
|
|
16631
|
+
"description": "The AI Gateway authentication token"
|
|
16632
|
+
},
|
|
16633
|
+
"url": {
|
|
16634
|
+
"type": "string",
|
|
16635
|
+
"description": "AI gateway base url"
|
|
16636
|
+
},
|
|
16637
|
+
"expires_at": {
|
|
16638
|
+
"type": "integer",
|
|
16639
|
+
"format": "int64",
|
|
16640
|
+
"description": "Unix timestamp when the token expires"
|
|
16641
|
+
}
|
|
16642
|
+
}
|
|
16643
|
+
}
|
|
16644
|
+
},
|
|
16645
|
+
"404": {
|
|
16646
|
+
"description": "AI Gateway not available for this site"
|
|
16647
|
+
},
|
|
16648
|
+
"default": {
|
|
16649
|
+
"description": "error",
|
|
16650
|
+
"schema": {
|
|
16651
|
+
"type": "object",
|
|
16652
|
+
"required": [
|
|
16653
|
+
"message"
|
|
16654
|
+
],
|
|
16655
|
+
"properties": {
|
|
16656
|
+
"code": {
|
|
16657
|
+
"type": "integer",
|
|
16658
|
+
"format": "int64"
|
|
16659
|
+
},
|
|
16660
|
+
"message": {
|
|
16661
|
+
"type": "string",
|
|
16662
|
+
"x-nullable": false
|
|
16663
|
+
}
|
|
16664
|
+
}
|
|
16665
|
+
}
|
|
16666
|
+
}
|
|
16667
|
+
},
|
|
16668
|
+
"description": "Returns an AI Gateway token for a specific site"
|
|
16669
|
+
}
|
|
16583
16670
|
}
|
|
16584
16671
|
},
|
|
16585
16672
|
"definitions": {
|
|
@@ -20043,6 +20130,24 @@
|
|
|
20043
20130
|
}
|
|
20044
20131
|
}
|
|
20045
20132
|
}
|
|
20133
|
+
},
|
|
20134
|
+
"aiGatewayToken": {
|
|
20135
|
+
"type": "object",
|
|
20136
|
+
"properties": {
|
|
20137
|
+
"token": {
|
|
20138
|
+
"type": "string",
|
|
20139
|
+
"description": "The AI Gateway authentication token"
|
|
20140
|
+
},
|
|
20141
|
+
"url": {
|
|
20142
|
+
"type": "string",
|
|
20143
|
+
"description": "AI gateway base url"
|
|
20144
|
+
},
|
|
20145
|
+
"expires_at": {
|
|
20146
|
+
"type": "integer",
|
|
20147
|
+
"format": "int64",
|
|
20148
|
+
"description": "Unix timestamp when the token expires"
|
|
20149
|
+
}
|
|
20150
|
+
}
|
|
20046
20151
|
}
|
|
20047
20152
|
},
|
|
20048
20153
|
"parameters": {
|