@netlify/open-api 2.45.0 → 2.47.0-alpha.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 +514 -3
- package/dist/swagger.json +1033 -106
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -300,7 +300,11 @@ export interface paths {
|
|
|
300
300
|
/**
|
|
301
301
|
* API Reference: {@link https://open-api.netlify.com/#tag/build/operation/createSiteBuild | `createSiteBuild`}
|
|
302
302
|
*
|
|
303
|
-
* Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.
|
|
303
|
+
* Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.
|
|
304
|
+
*
|
|
305
|
+
* Files for build can be uploaded as a zipped site using one of these methods:
|
|
306
|
+
* 1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
|
|
307
|
+
* 2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
|
|
304
308
|
*/
|
|
305
309
|
post: operations["createSiteBuild"];
|
|
306
310
|
parameters: {
|
|
@@ -336,6 +340,32 @@ export interface paths {
|
|
|
336
340
|
};
|
|
337
341
|
};
|
|
338
342
|
};
|
|
343
|
+
"/sites/{site_id}/enable": {
|
|
344
|
+
/**
|
|
345
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/enableSite | `enableSite`}
|
|
346
|
+
*
|
|
347
|
+
* Re-enables a site that was previously disabled by the user. Sites that were disabled for usage exceeded or marked as spam cannot be re-enabled via this endpoint.
|
|
348
|
+
*/
|
|
349
|
+
put: operations["enableSite"];
|
|
350
|
+
parameters: {
|
|
351
|
+
path: {
|
|
352
|
+
site_id: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
"/sites/{site_id}/disable": {
|
|
357
|
+
/**
|
|
358
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/disableSite | `disableSite`}
|
|
359
|
+
*
|
|
360
|
+
* Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.
|
|
361
|
+
*/
|
|
362
|
+
put: operations["disableSite"];
|
|
363
|
+
parameters: {
|
|
364
|
+
path: {
|
|
365
|
+
site_id: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
339
369
|
"/builds/{build_id}": {
|
|
340
370
|
/** API Reference: {@link https://open-api.netlify.com/#tag/build/operation/getSiteBuild | `getSiteBuild`} */
|
|
341
371
|
get: operations["getSiteBuild"];
|
|
@@ -886,10 +916,176 @@ export interface paths {
|
|
|
886
916
|
};
|
|
887
917
|
};
|
|
888
918
|
};
|
|
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
|
+
parameters: {
|
|
939
|
+
path: {
|
|
940
|
+
site_id: string;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
"/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
|
+
parameters: {
|
|
952
|
+
path: {
|
|
953
|
+
site_id: string;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
"/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
|
+
parameters: {
|
|
971
|
+
path: {
|
|
972
|
+
site_id: string;
|
|
973
|
+
/** The deploy ID associated with the database branch */
|
|
974
|
+
deploy_id: string;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
"/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
|
+
parameters: {
|
|
986
|
+
path: {
|
|
987
|
+
site_id: string;
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
"/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
|
+
parameters: {
|
|
999
|
+
path: {
|
|
1000
|
+
site_id: string;
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
"/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
|
+
parameters: {
|
|
1012
|
+
path: {
|
|
1013
|
+
site_id: string;
|
|
1014
|
+
/** The snapshot ID */
|
|
1015
|
+
snapshot_id: string;
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
"/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
|
+
parameters: {
|
|
1027
|
+
path: {
|
|
1028
|
+
site_id: string;
|
|
1029
|
+
/** The snapshot ID to restore */
|
|
1030
|
+
snapshot_id: string;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
889
1034
|
}
|
|
890
1035
|
|
|
891
1036
|
export interface components {
|
|
892
1037
|
schemas: {
|
|
1038
|
+
/** @description Request body for creating a database */
|
|
1039
|
+
createDatabaseRequest: {
|
|
1040
|
+
/** @description The region where the database should be created. Defaults to the site's functions region if not specified. */
|
|
1041
|
+
region?: string;
|
|
1042
|
+
};
|
|
1043
|
+
/** @description Response containing the database connection string */
|
|
1044
|
+
databaseResponse: {
|
|
1045
|
+
/** @description The connection string for the database */
|
|
1046
|
+
connection_string?: string;
|
|
1047
|
+
};
|
|
1048
|
+
/** @description Request body for creating a database branch */
|
|
1049
|
+
createDatabaseBranchRequest: {
|
|
1050
|
+
/** @description The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified. */
|
|
1051
|
+
parent_branch_id?: string;
|
|
1052
|
+
/** @description The deploy ID to associate with this branch */
|
|
1053
|
+
deploy_id: string;
|
|
1054
|
+
};
|
|
1055
|
+
/** @description Response containing the database branch connection string */
|
|
1056
|
+
databaseBranchResponse: {
|
|
1057
|
+
/** @description The connection string for the database branch */
|
|
1058
|
+
connection_string?: string;
|
|
1059
|
+
};
|
|
1060
|
+
/** @description Request body for creating a database snapshot */
|
|
1061
|
+
createDatabaseSnapshotRequest: {
|
|
1062
|
+
/** @description The name of the branch to snapshot. Defaults to "production" if not specified. */
|
|
1063
|
+
branch_name?: string;
|
|
1064
|
+
/** @description An optional name for the snapshot */
|
|
1065
|
+
name?: string;
|
|
1066
|
+
};
|
|
1067
|
+
/** @description A point-in-time snapshot of a database branch */
|
|
1068
|
+
databaseSnapshot: {
|
|
1069
|
+
/** @description The unique identifier of the snapshot */
|
|
1070
|
+
id?: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Format: dateTime
|
|
1073
|
+
* @description The timestamp when the snapshot was created
|
|
1074
|
+
*/
|
|
1075
|
+
timestamp?: string;
|
|
1076
|
+
/** @description The ID of the branch that was snapshotted */
|
|
1077
|
+
source_branch_id?: string;
|
|
1078
|
+
};
|
|
1079
|
+
/** @description Response containing a list of database snapshots */
|
|
1080
|
+
databaseSnapshotsResponse: {
|
|
1081
|
+
/** @description List of database snapshots */
|
|
1082
|
+
snapshots?: components["schemas"]["databaseSnapshot"][];
|
|
1083
|
+
};
|
|
1084
|
+
/** @description Request body for restoring a database snapshot */
|
|
1085
|
+
restoreDatabaseSnapshotRequest: {
|
|
1086
|
+
/** @description The name of the branch to restore the snapshot to. Defaults to "production" if not specified. */
|
|
1087
|
+
branch_name?: string;
|
|
1088
|
+
};
|
|
893
1089
|
DeployValidationsReport: {
|
|
894
1090
|
/** @description The id of the deploy validations report */
|
|
895
1091
|
id?: string;
|
|
@@ -1012,7 +1208,9 @@ export interface components {
|
|
|
1012
1208
|
repo_path?: string;
|
|
1013
1209
|
repo_branch?: string;
|
|
1014
1210
|
dir?: string;
|
|
1211
|
+
/** @description The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file. */
|
|
1015
1212
|
functions_dir?: string;
|
|
1213
|
+
/** @description The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value. */
|
|
1016
1214
|
cmd?: string;
|
|
1017
1215
|
allowed_branches?: string[];
|
|
1018
1216
|
public_repo?: boolean;
|
|
@@ -1020,6 +1218,7 @@ export interface components {
|
|
|
1020
1218
|
repo_url?: string;
|
|
1021
1219
|
env?: { [key: string]: string };
|
|
1022
1220
|
installation_id?: number;
|
|
1221
|
+
/** @description When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API. */
|
|
1023
1222
|
stop_builds?: boolean;
|
|
1024
1223
|
};
|
|
1025
1224
|
submission: {
|
|
@@ -1178,8 +1377,23 @@ export interface components {
|
|
|
1178
1377
|
skew_protection_token?: string;
|
|
1179
1378
|
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
1180
1379
|
};
|
|
1380
|
+
/**
|
|
1381
|
+
* @description Deploy files can be provided in two ways:
|
|
1382
|
+
* 1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR
|
|
1383
|
+
* 2. As a zip file using one of these methods:
|
|
1384
|
+
* - Set Content-Type to 'application/zip' and send the zip file as the raw request body
|
|
1385
|
+
* - Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'
|
|
1386
|
+
*/
|
|
1181
1387
|
deployFiles: {
|
|
1388
|
+
/** @description A hash mapping file paths to SHA1 digests of the file contents. */
|
|
1182
1389
|
files?: { [key: string]: unknown };
|
|
1390
|
+
/**
|
|
1391
|
+
* Format: binary
|
|
1392
|
+
* @description A zip file containing the site files to deploy. Alternative to 'files'.
|
|
1393
|
+
* To use this field, set Content-Type to 'application/json' and include the zip content here.
|
|
1394
|
+
* Alternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).
|
|
1395
|
+
*/
|
|
1396
|
+
zip?: string;
|
|
1183
1397
|
draft?: boolean;
|
|
1184
1398
|
async?: boolean;
|
|
1185
1399
|
functions?: { [key: string]: unknown };
|
|
@@ -2854,7 +3068,11 @@ export interface operations {
|
|
|
2854
3068
|
/**
|
|
2855
3069
|
* API Reference: {@link https://open-api.netlify.com/#tag/build/operation/createSiteBuild | `createSiteBuild`}
|
|
2856
3070
|
*
|
|
2857
|
-
* Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.
|
|
3071
|
+
* Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.
|
|
3072
|
+
*
|
|
3073
|
+
* Files for build can be uploaded as a zipped site using one of these methods:
|
|
3074
|
+
* 1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
|
|
3075
|
+
* 2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
|
|
2858
3076
|
*/
|
|
2859
3077
|
createSiteBuild: {
|
|
2860
3078
|
parameters: {
|
|
@@ -2862,7 +3080,7 @@ export interface operations {
|
|
|
2862
3080
|
site_id: string;
|
|
2863
3081
|
};
|
|
2864
3082
|
query: {
|
|
2865
|
-
/**
|
|
3083
|
+
/** If no branch is specified, it is treated as a production deploy If a branch IS specified and matches the main branch, it is also production If a branch is specified and doesn't match the main branch, it is a branch deploy */
|
|
2866
3084
|
branch?: string;
|
|
2867
3085
|
/** Whether to clear the build cache before building */
|
|
2868
3086
|
clear_cache?: boolean;
|
|
@@ -2889,6 +3107,19 @@ export interface operations {
|
|
|
2889
3107
|
422: unknown;
|
|
2890
3108
|
default: components["responses"]["error"];
|
|
2891
3109
|
};
|
|
3110
|
+
requestBody: {
|
|
3111
|
+
content: {
|
|
3112
|
+
"multipart/form-data": {
|
|
3113
|
+
/**
|
|
3114
|
+
* Format: binary
|
|
3115
|
+
* @description A zip file containing the site files to build.
|
|
3116
|
+
* Only used with Content-Type 'multipart/form-data'.
|
|
3117
|
+
* Alternatively, set Content-Type to 'application/zip' and send the zip as the raw request body (no 'zip' parameter needed).
|
|
3118
|
+
*/
|
|
3119
|
+
zip?: string;
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
};
|
|
2892
3123
|
};
|
|
2893
3124
|
/** API Reference: {@link https://open-api.netlify.com/#tag/deployedBranch/operation/listSiteDeployedBranches | `listSiteDeployedBranches`} */
|
|
2894
3125
|
listSiteDeployedBranches: {
|
|
@@ -2934,6 +3165,50 @@ export interface operations {
|
|
|
2934
3165
|
404: unknown;
|
|
2935
3166
|
};
|
|
2936
3167
|
};
|
|
3168
|
+
/**
|
|
3169
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/enableSite | `enableSite`}
|
|
3170
|
+
*
|
|
3171
|
+
* Re-enables a site that was previously disabled by the user. Sites that were disabled for usage exceeded or marked as spam cannot be re-enabled via this endpoint.
|
|
3172
|
+
*/
|
|
3173
|
+
enableSite: {
|
|
3174
|
+
parameters: {
|
|
3175
|
+
path: {
|
|
3176
|
+
site_id: string;
|
|
3177
|
+
};
|
|
3178
|
+
};
|
|
3179
|
+
responses: {
|
|
3180
|
+
/** No content */
|
|
3181
|
+
204: never;
|
|
3182
|
+
/** Cannot enable this site */
|
|
3183
|
+
422: {
|
|
3184
|
+
content: {
|
|
3185
|
+
"application/json": components["schemas"]["error"];
|
|
3186
|
+
};
|
|
3187
|
+
};
|
|
3188
|
+
default: components["responses"]["error"];
|
|
3189
|
+
};
|
|
3190
|
+
};
|
|
3191
|
+
/**
|
|
3192
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/disableSite | `disableSite`}
|
|
3193
|
+
*
|
|
3194
|
+
* Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.
|
|
3195
|
+
*/
|
|
3196
|
+
disableSite: {
|
|
3197
|
+
parameters: {
|
|
3198
|
+
path: {
|
|
3199
|
+
site_id: string;
|
|
3200
|
+
};
|
|
3201
|
+
query: {
|
|
3202
|
+
/** Reason for disabling the site */
|
|
3203
|
+
reason: string;
|
|
3204
|
+
};
|
|
3205
|
+
};
|
|
3206
|
+
responses: {
|
|
3207
|
+
/** No content */
|
|
3208
|
+
204: never;
|
|
3209
|
+
default: components["responses"]["error"];
|
|
3210
|
+
};
|
|
3211
|
+
};
|
|
2937
3212
|
/** API Reference: {@link https://open-api.netlify.com/#tag/build/operation/getSiteBuild | `getSiteBuild`} */
|
|
2938
3213
|
getSiteBuild: {
|
|
2939
3214
|
parameters: {
|
|
@@ -4567,6 +4842,242 @@ export interface operations {
|
|
|
4567
4842
|
default: components["responses"]["error"];
|
|
4568
4843
|
};
|
|
4569
4844
|
};
|
|
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
|
+
};
|
|
4570
5081
|
}
|
|
4571
5082
|
|
|
4572
5083
|
export interface external {}
|