@netlify/open-api 2.37.0 → 2.38.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
@@ -774,6 +774,22 @@ export interface paths {
774
774
  };
775
775
  };
776
776
  };
777
+ "/ai-gateway/providers": {
778
+ get: {
779
+ responses: {
780
+ /** The mapping of providers and supported models */
781
+ 200: {
782
+ content: {
783
+ "application/json": {
784
+ providers?: {
785
+ [key: string]: components["schemas"]["providerDefinition"];
786
+ };
787
+ };
788
+ };
789
+ };
790
+ };
791
+ };
792
+ };
777
793
  }
778
794
 
779
795
  export interface components {
@@ -1493,6 +1509,11 @@ export interface components {
1493
1509
  /** @enum {string} */
1494
1510
  type?: "new_dev_server" | "content_refresh";
1495
1511
  };
1512
+ providerDefinition: {
1513
+ token_env_var?: string;
1514
+ url_env_var?: string;
1515
+ models?: string[];
1516
+ };
1496
1517
  };
1497
1518
  responses: {
1498
1519
  /** error */
@@ -3363,7 +3384,7 @@ export interface operations {
3363
3384
  /** OK */
3364
3385
  200: {
3365
3386
  content: {
3366
- "application/json": components["schemas"]["accountMembership"][];
3387
+ "application/json": components["schemas"]["accountMembership"];
3367
3388
  };
3368
3389
  };
3369
3390
  default: components["responses"]["error"];
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.37.0",
4
+ "version": "2.38.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/",
@@ -11664,90 +11664,87 @@
11664
11664
  "200": {
11665
11665
  "description": "OK",
11666
11666
  "schema": {
11667
- "type": "array",
11668
- "items": {
11669
- "type": "object",
11670
- "properties": {
11671
- "id": {
11672
- "type": "string"
11673
- },
11674
- "name": {
11675
- "type": "string"
11676
- },
11677
- "slug": {
11678
- "type": "string"
11679
- },
11680
- "type": {
11681
- "type": "string"
11682
- },
11683
- "capabilities": {
11684
- "type": "object",
11685
- "properties": {
11686
- "sites": {
11687
- "type": "object",
11688
- "properties": {
11689
- "included": {
11690
- "type": "integer"
11691
- },
11692
- "used": {
11693
- "type": "integer"
11694
- }
11667
+ "type": "object",
11668
+ "properties": {
11669
+ "id": {
11670
+ "type": "string"
11671
+ },
11672
+ "name": {
11673
+ "type": "string"
11674
+ },
11675
+ "slug": {
11676
+ "type": "string"
11677
+ },
11678
+ "type": {
11679
+ "type": "string"
11680
+ },
11681
+ "capabilities": {
11682
+ "type": "object",
11683
+ "properties": {
11684
+ "sites": {
11685
+ "type": "object",
11686
+ "properties": {
11687
+ "included": {
11688
+ "type": "integer"
11689
+ },
11690
+ "used": {
11691
+ "type": "integer"
11695
11692
  }
11696
- },
11697
- "collaborators": {
11698
- "type": "object",
11699
- "properties": {
11700
- "included": {
11701
- "type": "integer"
11702
- },
11703
- "used": {
11704
- "type": "integer"
11705
- }
11693
+ }
11694
+ },
11695
+ "collaborators": {
11696
+ "type": "object",
11697
+ "properties": {
11698
+ "included": {
11699
+ "type": "integer"
11700
+ },
11701
+ "used": {
11702
+ "type": "integer"
11706
11703
  }
11707
11704
  }
11708
11705
  }
11709
- },
11710
- "billing_name": {
11711
- "type": "string"
11712
- },
11713
- "billing_email": {
11714
- "type": "string"
11715
- },
11716
- "billing_details": {
11717
- "type": "string"
11718
- },
11719
- "billing_period": {
11720
- "type": "string"
11721
- },
11722
- "payment_method_id": {
11723
- "type": "string"
11724
- },
11725
- "type_name": {
11706
+ }
11707
+ },
11708
+ "billing_name": {
11709
+ "type": "string"
11710
+ },
11711
+ "billing_email": {
11712
+ "type": "string"
11713
+ },
11714
+ "billing_details": {
11715
+ "type": "string"
11716
+ },
11717
+ "billing_period": {
11718
+ "type": "string"
11719
+ },
11720
+ "payment_method_id": {
11721
+ "type": "string"
11722
+ },
11723
+ "type_name": {
11724
+ "type": "string"
11725
+ },
11726
+ "type_id": {
11727
+ "type": "string"
11728
+ },
11729
+ "owner_ids": {
11730
+ "type": "array",
11731
+ "items": {
11726
11732
  "type": "string"
11727
- },
11728
- "type_id": {
11733
+ }
11734
+ },
11735
+ "roles_allowed": {
11736
+ "type": "array",
11737
+ "items": {
11729
11738
  "type": "string"
11730
- },
11731
- "owner_ids": {
11732
- "type": "array",
11733
- "items": {
11734
- "type": "string"
11735
- }
11736
- },
11737
- "roles_allowed": {
11738
- "type": "array",
11739
- "items": {
11740
- "type": "string"
11741
- }
11742
- },
11743
- "created_at": {
11744
- "type": "string",
11745
- "format": "dateTime"
11746
- },
11747
- "updated_at": {
11748
- "type": "string",
11749
- "format": "dateTime"
11750
11739
  }
11740
+ },
11741
+ "created_at": {
11742
+ "type": "string",
11743
+ "format": "dateTime"
11744
+ },
11745
+ "updated_at": {
11746
+ "type": "string",
11747
+ "format": "dateTime"
11751
11748
  }
11752
11749
  }
11753
11750
  }
@@ -14924,6 +14921,39 @@
14924
14921
  }
14925
14922
  }
14926
14923
  }
14924
+ },
14925
+ "/ai-gateway/providers": {
14926
+ "get": {
14927
+ "responses": {
14928
+ "200": {
14929
+ "description": "The mapping of providers and supported models",
14930
+ "schema": {
14931
+ "type": "object",
14932
+ "properties": {
14933
+ "providers": {
14934
+ "additionalProperties": {
14935
+ "type": "object",
14936
+ "properties": {
14937
+ "token_env_var": {
14938
+ "type": "string"
14939
+ },
14940
+ "url_env_var": {
14941
+ "type": "string"
14942
+ },
14943
+ "models": {
14944
+ "type": "array",
14945
+ "items": {
14946
+ "type": "string"
14947
+ }
14948
+ }
14949
+ }
14950
+ }
14951
+ }
14952
+ }
14953
+ }
14954
+ }
14955
+ }
14956
+ }
14927
14957
  }
14928
14958
  },
14929
14959
  "definitions": {
@@ -18114,6 +18144,23 @@
18114
18144
  ]
18115
18145
  }
18116
18146
  }
18147
+ },
18148
+ "providerDefinition": {
18149
+ "type": "object",
18150
+ "properties": {
18151
+ "token_env_var": {
18152
+ "type": "string"
18153
+ },
18154
+ "url_env_var": {
18155
+ "type": "string"
18156
+ },
18157
+ "models": {
18158
+ "type": "array",
18159
+ "items": {
18160
+ "type": "string"
18161
+ }
18162
+ }
18163
+ }
18117
18164
  }
18118
18165
  },
18119
18166
  "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.37.0",
4
+ "version": "2.38.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [