@netlify/open-api 2.47.0-alpha.0 → 2.47.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 +0 -296
- package/dist/swagger.json +11 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -917,24 +917,6 @@ export interface paths {
|
|
|
917
917
|
};
|
|
918
918
|
};
|
|
919
919
|
"/sites/{site_id}/database": {
|
|
920
|
-
/**
|
|
921
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabase | `getSiteDatabase`}
|
|
922
|
-
*
|
|
923
|
-
* Returns the database connection string for the specified site.
|
|
924
|
-
*/
|
|
925
|
-
get: operations["getSiteDatabase"];
|
|
926
|
-
/**
|
|
927
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabase | `createSiteDatabase`}
|
|
928
|
-
*
|
|
929
|
-
* Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.
|
|
930
|
-
*/
|
|
931
|
-
post: operations["createSiteDatabase"];
|
|
932
|
-
/**
|
|
933
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabase | `deleteSiteDatabase`}
|
|
934
|
-
*
|
|
935
|
-
* Deletes the database and all associated branches and snapshots for the specified site.
|
|
936
|
-
*/
|
|
937
|
-
delete: operations["deleteSiteDatabase"];
|
|
938
920
|
parameters: {
|
|
939
921
|
path: {
|
|
940
922
|
site_id: string;
|
|
@@ -942,12 +924,6 @@ export interface paths {
|
|
|
942
924
|
};
|
|
943
925
|
};
|
|
944
926
|
"/sites/{site_id}/database/branch": {
|
|
945
|
-
/**
|
|
946
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseBranch | `createSiteDatabaseBranch`}
|
|
947
|
-
*
|
|
948
|
-
* Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.
|
|
949
|
-
*/
|
|
950
|
-
post: operations["createSiteDatabaseBranch"];
|
|
951
927
|
parameters: {
|
|
952
928
|
path: {
|
|
953
929
|
site_id: string;
|
|
@@ -955,18 +931,6 @@ export interface paths {
|
|
|
955
931
|
};
|
|
956
932
|
};
|
|
957
933
|
"/sites/{site_id}/database/branch/{deploy_id}": {
|
|
958
|
-
/**
|
|
959
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseBranch | `getSiteDatabaseBranch`}
|
|
960
|
-
*
|
|
961
|
-
* Returns the database branch connection string for a specific deploy.
|
|
962
|
-
*/
|
|
963
|
-
get: operations["getSiteDatabaseBranch"];
|
|
964
|
-
/**
|
|
965
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseBranch | `deleteSiteDatabaseBranch`}
|
|
966
|
-
*
|
|
967
|
-
* Deletes a database branch associated with a deploy.
|
|
968
|
-
*/
|
|
969
|
-
delete: operations["deleteSiteDatabaseBranch"];
|
|
970
934
|
parameters: {
|
|
971
935
|
path: {
|
|
972
936
|
site_id: string;
|
|
@@ -976,12 +940,6 @@ export interface paths {
|
|
|
976
940
|
};
|
|
977
941
|
};
|
|
978
942
|
"/sites/{site_id}/database/snapshot": {
|
|
979
|
-
/**
|
|
980
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseSnapshot | `createSiteDatabaseSnapshot`}
|
|
981
|
-
*
|
|
982
|
-
* Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
|
|
983
|
-
*/
|
|
984
|
-
post: operations["createSiteDatabaseSnapshot"];
|
|
985
943
|
parameters: {
|
|
986
944
|
path: {
|
|
987
945
|
site_id: string;
|
|
@@ -989,12 +947,6 @@ export interface paths {
|
|
|
989
947
|
};
|
|
990
948
|
};
|
|
991
949
|
"/sites/{site_id}/database/snapshots": {
|
|
992
|
-
/**
|
|
993
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseSnapshots | `listSiteDatabaseSnapshots`}
|
|
994
|
-
*
|
|
995
|
-
* Returns all snapshots for the site's database.
|
|
996
|
-
*/
|
|
997
|
-
get: operations["listSiteDatabaseSnapshots"];
|
|
998
950
|
parameters: {
|
|
999
951
|
path: {
|
|
1000
952
|
site_id: string;
|
|
@@ -1002,12 +954,6 @@ export interface paths {
|
|
|
1002
954
|
};
|
|
1003
955
|
};
|
|
1004
956
|
"/sites/{site_id}/database/snapshot/{snapshot_id}": {
|
|
1005
|
-
/**
|
|
1006
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseSnapshot | `deleteSiteDatabaseSnapshot`}
|
|
1007
|
-
*
|
|
1008
|
-
* Deletes a database snapshot.
|
|
1009
|
-
*/
|
|
1010
|
-
delete: operations["deleteSiteDatabaseSnapshot"];
|
|
1011
957
|
parameters: {
|
|
1012
958
|
path: {
|
|
1013
959
|
site_id: string;
|
|
@@ -1017,12 +963,6 @@ export interface paths {
|
|
|
1017
963
|
};
|
|
1018
964
|
};
|
|
1019
965
|
"/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
|
|
1020
|
-
/**
|
|
1021
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/restoreSiteDatabaseSnapshot | `restoreSiteDatabaseSnapshot`}
|
|
1022
|
-
*
|
|
1023
|
-
* Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
|
|
1024
|
-
*/
|
|
1025
|
-
post: operations["restoreSiteDatabaseSnapshot"];
|
|
1026
966
|
parameters: {
|
|
1027
967
|
path: {
|
|
1028
968
|
site_id: string;
|
|
@@ -4842,242 +4782,6 @@ export interface operations {
|
|
|
4842
4782
|
default: components["responses"]["error"];
|
|
4843
4783
|
};
|
|
4844
4784
|
};
|
|
4845
|
-
/**
|
|
4846
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabase | `getSiteDatabase`}
|
|
4847
|
-
*
|
|
4848
|
-
* Returns the database connection string for the specified site.
|
|
4849
|
-
*/
|
|
4850
|
-
getSiteDatabase: {
|
|
4851
|
-
parameters: {
|
|
4852
|
-
path: {
|
|
4853
|
-
site_id: string;
|
|
4854
|
-
};
|
|
4855
|
-
};
|
|
4856
|
-
responses: {
|
|
4857
|
-
/** OK */
|
|
4858
|
-
200: {
|
|
4859
|
-
content: {
|
|
4860
|
-
"application/json": components["schemas"]["databaseResponse"];
|
|
4861
|
-
};
|
|
4862
|
-
};
|
|
4863
|
-
default: components["responses"]["error"];
|
|
4864
|
-
};
|
|
4865
|
-
};
|
|
4866
|
-
/**
|
|
4867
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabase | `createSiteDatabase`}
|
|
4868
|
-
*
|
|
4869
|
-
* Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.
|
|
4870
|
-
*/
|
|
4871
|
-
createSiteDatabase: {
|
|
4872
|
-
parameters: {
|
|
4873
|
-
path: {
|
|
4874
|
-
site_id: string;
|
|
4875
|
-
};
|
|
4876
|
-
};
|
|
4877
|
-
responses: {
|
|
4878
|
-
/** Database already exists */
|
|
4879
|
-
200: {
|
|
4880
|
-
content: {
|
|
4881
|
-
"application/json": components["schemas"]["databaseResponse"];
|
|
4882
|
-
};
|
|
4883
|
-
};
|
|
4884
|
-
/** Created */
|
|
4885
|
-
201: {
|
|
4886
|
-
content: {
|
|
4887
|
-
"application/json": components["schemas"]["databaseResponse"];
|
|
4888
|
-
};
|
|
4889
|
-
};
|
|
4890
|
-
default: components["responses"]["error"];
|
|
4891
|
-
};
|
|
4892
|
-
requestBody: {
|
|
4893
|
-
content: {
|
|
4894
|
-
"application/json": components["schemas"]["createDatabaseRequest"];
|
|
4895
|
-
};
|
|
4896
|
-
};
|
|
4897
|
-
};
|
|
4898
|
-
/**
|
|
4899
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabase | `deleteSiteDatabase`}
|
|
4900
|
-
*
|
|
4901
|
-
* Deletes the database and all associated branches and snapshots for the specified site.
|
|
4902
|
-
*/
|
|
4903
|
-
deleteSiteDatabase: {
|
|
4904
|
-
parameters: {
|
|
4905
|
-
path: {
|
|
4906
|
-
site_id: string;
|
|
4907
|
-
};
|
|
4908
|
-
};
|
|
4909
|
-
responses: {
|
|
4910
|
-
/** Deleted */
|
|
4911
|
-
204: never;
|
|
4912
|
-
default: components["responses"]["error"];
|
|
4913
|
-
};
|
|
4914
|
-
};
|
|
4915
|
-
/**
|
|
4916
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseBranch | `createSiteDatabaseBranch`}
|
|
4917
|
-
*
|
|
4918
|
-
* Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.
|
|
4919
|
-
*/
|
|
4920
|
-
createSiteDatabaseBranch: {
|
|
4921
|
-
parameters: {
|
|
4922
|
-
path: {
|
|
4923
|
-
site_id: string;
|
|
4924
|
-
};
|
|
4925
|
-
};
|
|
4926
|
-
responses: {
|
|
4927
|
-
/** Branch already exists for this deploy */
|
|
4928
|
-
200: {
|
|
4929
|
-
content: {
|
|
4930
|
-
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
4931
|
-
};
|
|
4932
|
-
};
|
|
4933
|
-
/** Created */
|
|
4934
|
-
201: {
|
|
4935
|
-
content: {
|
|
4936
|
-
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
4937
|
-
};
|
|
4938
|
-
};
|
|
4939
|
-
default: components["responses"]["error"];
|
|
4940
|
-
};
|
|
4941
|
-
requestBody: {
|
|
4942
|
-
content: {
|
|
4943
|
-
"application/json": components["schemas"]["createDatabaseBranchRequest"];
|
|
4944
|
-
};
|
|
4945
|
-
};
|
|
4946
|
-
};
|
|
4947
|
-
/**
|
|
4948
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseBranch | `getSiteDatabaseBranch`}
|
|
4949
|
-
*
|
|
4950
|
-
* Returns the database branch connection string for a specific deploy.
|
|
4951
|
-
*/
|
|
4952
|
-
getSiteDatabaseBranch: {
|
|
4953
|
-
parameters: {
|
|
4954
|
-
path: {
|
|
4955
|
-
site_id: string;
|
|
4956
|
-
/** The deploy ID associated with the database branch */
|
|
4957
|
-
deploy_id: string;
|
|
4958
|
-
};
|
|
4959
|
-
};
|
|
4960
|
-
responses: {
|
|
4961
|
-
/** OK */
|
|
4962
|
-
200: {
|
|
4963
|
-
content: {
|
|
4964
|
-
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
4965
|
-
};
|
|
4966
|
-
};
|
|
4967
|
-
/** Branch not found for this deploy */
|
|
4968
|
-
404: unknown;
|
|
4969
|
-
default: components["responses"]["error"];
|
|
4970
|
-
};
|
|
4971
|
-
};
|
|
4972
|
-
/**
|
|
4973
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseBranch | `deleteSiteDatabaseBranch`}
|
|
4974
|
-
*
|
|
4975
|
-
* Deletes a database branch associated with a deploy.
|
|
4976
|
-
*/
|
|
4977
|
-
deleteSiteDatabaseBranch: {
|
|
4978
|
-
parameters: {
|
|
4979
|
-
path: {
|
|
4980
|
-
site_id: string;
|
|
4981
|
-
/** The deploy ID associated with the database branch */
|
|
4982
|
-
deploy_id: string;
|
|
4983
|
-
};
|
|
4984
|
-
};
|
|
4985
|
-
responses: {
|
|
4986
|
-
/** Deleted */
|
|
4987
|
-
204: never;
|
|
4988
|
-
default: components["responses"]["error"];
|
|
4989
|
-
};
|
|
4990
|
-
};
|
|
4991
|
-
/**
|
|
4992
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseSnapshot | `createSiteDatabaseSnapshot`}
|
|
4993
|
-
*
|
|
4994
|
-
* Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
|
|
4995
|
-
*/
|
|
4996
|
-
createSiteDatabaseSnapshot: {
|
|
4997
|
-
parameters: {
|
|
4998
|
-
path: {
|
|
4999
|
-
site_id: string;
|
|
5000
|
-
};
|
|
5001
|
-
};
|
|
5002
|
-
responses: {
|
|
5003
|
-
/** Created */
|
|
5004
|
-
201: {
|
|
5005
|
-
content: {
|
|
5006
|
-
"application/json": components["schemas"]["databaseSnapshot"];
|
|
5007
|
-
};
|
|
5008
|
-
};
|
|
5009
|
-
default: components["responses"]["error"];
|
|
5010
|
-
};
|
|
5011
|
-
requestBody: {
|
|
5012
|
-
content: {
|
|
5013
|
-
"application/json": components["schemas"]["createDatabaseSnapshotRequest"];
|
|
5014
|
-
};
|
|
5015
|
-
};
|
|
5016
|
-
};
|
|
5017
|
-
/**
|
|
5018
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseSnapshots | `listSiteDatabaseSnapshots`}
|
|
5019
|
-
*
|
|
5020
|
-
* Returns all snapshots for the site's database.
|
|
5021
|
-
*/
|
|
5022
|
-
listSiteDatabaseSnapshots: {
|
|
5023
|
-
parameters: {
|
|
5024
|
-
path: {
|
|
5025
|
-
site_id: string;
|
|
5026
|
-
};
|
|
5027
|
-
};
|
|
5028
|
-
responses: {
|
|
5029
|
-
/** OK */
|
|
5030
|
-
200: {
|
|
5031
|
-
content: {
|
|
5032
|
-
"application/json": components["schemas"]["databaseSnapshotsResponse"];
|
|
5033
|
-
};
|
|
5034
|
-
};
|
|
5035
|
-
default: components["responses"]["error"];
|
|
5036
|
-
};
|
|
5037
|
-
};
|
|
5038
|
-
/**
|
|
5039
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseSnapshot | `deleteSiteDatabaseSnapshot`}
|
|
5040
|
-
*
|
|
5041
|
-
* Deletes a database snapshot.
|
|
5042
|
-
*/
|
|
5043
|
-
deleteSiteDatabaseSnapshot: {
|
|
5044
|
-
parameters: {
|
|
5045
|
-
path: {
|
|
5046
|
-
site_id: string;
|
|
5047
|
-
/** The snapshot ID */
|
|
5048
|
-
snapshot_id: string;
|
|
5049
|
-
};
|
|
5050
|
-
};
|
|
5051
|
-
responses: {
|
|
5052
|
-
/** Deleted */
|
|
5053
|
-
204: never;
|
|
5054
|
-
default: components["responses"]["error"];
|
|
5055
|
-
};
|
|
5056
|
-
};
|
|
5057
|
-
/**
|
|
5058
|
-
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/restoreSiteDatabaseSnapshot | `restoreSiteDatabaseSnapshot`}
|
|
5059
|
-
*
|
|
5060
|
-
* Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
|
|
5061
|
-
*/
|
|
5062
|
-
restoreSiteDatabaseSnapshot: {
|
|
5063
|
-
parameters: {
|
|
5064
|
-
path: {
|
|
5065
|
-
site_id: string;
|
|
5066
|
-
/** The snapshot ID to restore */
|
|
5067
|
-
snapshot_id: string;
|
|
5068
|
-
};
|
|
5069
|
-
};
|
|
5070
|
-
responses: {
|
|
5071
|
-
/** OK */
|
|
5072
|
-
200: unknown;
|
|
5073
|
-
default: components["responses"]["error"];
|
|
5074
|
-
};
|
|
5075
|
-
requestBody: {
|
|
5076
|
-
content: {
|
|
5077
|
-
"application/json": components["schemas"]["restoreDatabaseSnapshotRequest"];
|
|
5078
|
-
};
|
|
5079
|
-
};
|
|
5080
|
-
};
|
|
5081
4785
|
}
|
|
5082
4786
|
|
|
5083
4787
|
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.47.0
|
|
4
|
+
"version": "2.47.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/",
|
|
@@ -17113,6 +17113,7 @@
|
|
|
17113
17113
|
}
|
|
17114
17114
|
],
|
|
17115
17115
|
"post": {
|
|
17116
|
+
"x-internal": true,
|
|
17116
17117
|
"operationId": "createSiteDatabase",
|
|
17117
17118
|
"tags": [
|
|
17118
17119
|
"database"
|
|
@@ -17186,6 +17187,7 @@
|
|
|
17186
17187
|
}
|
|
17187
17188
|
},
|
|
17188
17189
|
"get": {
|
|
17190
|
+
"x-internal": true,
|
|
17189
17191
|
"operationId": "getSiteDatabase",
|
|
17190
17192
|
"tags": [
|
|
17191
17193
|
"database"
|
|
@@ -17227,6 +17229,7 @@
|
|
|
17227
17229
|
}
|
|
17228
17230
|
},
|
|
17229
17231
|
"delete": {
|
|
17232
|
+
"x-internal": true,
|
|
17230
17233
|
"operationId": "deleteSiteDatabase",
|
|
17231
17234
|
"tags": [
|
|
17232
17235
|
"database"
|
|
@@ -17268,6 +17271,7 @@
|
|
|
17268
17271
|
}
|
|
17269
17272
|
],
|
|
17270
17273
|
"post": {
|
|
17274
|
+
"x-internal": true,
|
|
17271
17275
|
"operationId": "createSiteDatabaseBranch",
|
|
17272
17276
|
"tags": [
|
|
17273
17277
|
"database"
|
|
@@ -17366,6 +17370,7 @@
|
|
|
17366
17370
|
}
|
|
17367
17371
|
],
|
|
17368
17372
|
"get": {
|
|
17373
|
+
"x-internal": true,
|
|
17369
17374
|
"operationId": "getSiteDatabaseBranch",
|
|
17370
17375
|
"tags": [
|
|
17371
17376
|
"database"
|
|
@@ -17410,6 +17415,7 @@
|
|
|
17410
17415
|
}
|
|
17411
17416
|
},
|
|
17412
17417
|
"delete": {
|
|
17418
|
+
"x-internal": true,
|
|
17413
17419
|
"operationId": "deleteSiteDatabaseBranch",
|
|
17414
17420
|
"tags": [
|
|
17415
17421
|
"database"
|
|
@@ -17451,6 +17457,7 @@
|
|
|
17451
17457
|
}
|
|
17452
17458
|
],
|
|
17453
17459
|
"post": {
|
|
17460
|
+
"x-internal": true,
|
|
17454
17461
|
"operationId": "createSiteDatabaseSnapshot",
|
|
17455
17462
|
"tags": [
|
|
17456
17463
|
"database"
|
|
@@ -17534,6 +17541,7 @@
|
|
|
17534
17541
|
}
|
|
17535
17542
|
],
|
|
17536
17543
|
"get": {
|
|
17544
|
+
"x-internal": true,
|
|
17537
17545
|
"operationId": "listSiteDatabaseSnapshots",
|
|
17538
17546
|
"tags": [
|
|
17539
17547
|
"database"
|
|
@@ -17611,6 +17619,7 @@
|
|
|
17611
17619
|
}
|
|
17612
17620
|
],
|
|
17613
17621
|
"delete": {
|
|
17622
|
+
"x-internal": true,
|
|
17614
17623
|
"operationId": "deleteSiteDatabaseSnapshot",
|
|
17615
17624
|
"tags": [
|
|
17616
17625
|
"database"
|
|
@@ -17659,6 +17668,7 @@
|
|
|
17659
17668
|
}
|
|
17660
17669
|
],
|
|
17661
17670
|
"post": {
|
|
17671
|
+
"x-internal": true,
|
|
17662
17672
|
"operationId": "restoreSiteDatabaseSnapshot",
|
|
17663
17673
|
"tags": [
|
|
17664
17674
|
"database"
|