@netlify/open-api 2.52.0 → 2.54.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 +866 -12
- package/dist/swagger.json +1927 -101
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -931,6 +931,24 @@ export interface paths {
|
|
|
931
931
|
};
|
|
932
932
|
};
|
|
933
933
|
"/sites/{site_id}/database": {
|
|
934
|
+
/**
|
|
935
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabase | `getSiteDatabase`}
|
|
936
|
+
*
|
|
937
|
+
* Returns the database connection string for the specified site.
|
|
938
|
+
*/
|
|
939
|
+
get: operations["getSiteDatabase"];
|
|
940
|
+
/**
|
|
941
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabase | `createSiteDatabase`}
|
|
942
|
+
*
|
|
943
|
+
* 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.
|
|
944
|
+
*/
|
|
945
|
+
post: operations["createSiteDatabase"];
|
|
946
|
+
/**
|
|
947
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabase | `deleteSiteDatabase`}
|
|
948
|
+
*
|
|
949
|
+
* Deletes the database and all associated branches and snapshots for the specified site.
|
|
950
|
+
*/
|
|
951
|
+
delete: operations["deleteSiteDatabase"];
|
|
934
952
|
parameters: {
|
|
935
953
|
path: {
|
|
936
954
|
site_id: string;
|
|
@@ -938,22 +956,157 @@ export interface paths {
|
|
|
938
956
|
};
|
|
939
957
|
};
|
|
940
958
|
"/sites/{site_id}/database/branch": {
|
|
959
|
+
/**
|
|
960
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseBranch | `createSiteDatabaseBranch`}
|
|
961
|
+
*
|
|
962
|
+
* Creates a new database branch. If a branch already exists for the specified branch ID, returns the existing connection string.
|
|
963
|
+
*/
|
|
964
|
+
post: operations["createSiteDatabaseBranch"];
|
|
965
|
+
parameters: {
|
|
966
|
+
path: {
|
|
967
|
+
site_id: string;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
"/sites/{site_id}/database/branches": {
|
|
972
|
+
/**
|
|
973
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseBranches | `listSiteDatabaseBranches`}
|
|
974
|
+
*
|
|
975
|
+
* Returns all branches for the site's database with compute status and metadata.
|
|
976
|
+
*/
|
|
977
|
+
get: operations["listSiteDatabaseBranches"];
|
|
978
|
+
parameters: {
|
|
979
|
+
path: {
|
|
980
|
+
site_id: string;
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
"/sites/{site_id}/database/branch/{branch_id}": {
|
|
985
|
+
/**
|
|
986
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseBranch | `getSiteDatabaseBranch`}
|
|
987
|
+
*
|
|
988
|
+
* Returns the database branch connection string for a specific branch.
|
|
989
|
+
*/
|
|
990
|
+
get: operations["getSiteDatabaseBranch"];
|
|
991
|
+
/**
|
|
992
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseBranch | `deleteSiteDatabaseBranch`}
|
|
993
|
+
*
|
|
994
|
+
* Deletes a database branch.
|
|
995
|
+
*/
|
|
996
|
+
delete: operations["deleteSiteDatabaseBranch"];
|
|
997
|
+
parameters: {
|
|
998
|
+
path: {
|
|
999
|
+
site_id: string;
|
|
1000
|
+
/** The branch ID */
|
|
1001
|
+
branch_id: string;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
"/sites/{site_id}/database/branch/{branch_id}/reset": {
|
|
1006
|
+
/**
|
|
1007
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/resetSiteDatabaseBranch | `resetSiteDatabaseBranch`}
|
|
1008
|
+
*
|
|
1009
|
+
* Resets a non-production database branch by re-forking it from a source branch (defaults to the production branch). If the target branch is already in sync with the source, returns the existing connection string without performing a reset, unless `force=true` is passed. The production branch cannot be reset.
|
|
1010
|
+
*/
|
|
1011
|
+
post: operations["resetSiteDatabaseBranch"];
|
|
1012
|
+
parameters: {
|
|
1013
|
+
path: {
|
|
1014
|
+
site_id: string;
|
|
1015
|
+
/** The branch ID to reset */
|
|
1016
|
+
branch_id: string;
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
"/sites/{site_id}/database/branch/{branch_id}/compute/settings": {
|
|
1021
|
+
/**
|
|
1022
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/setSiteDatabaseBranchComputeSettings | `setSiteDatabaseBranchComputeSettings`}
|
|
1023
|
+
*
|
|
1024
|
+
* Sets compute settings for a specific database branch, overriding project-level settings. Requires a Pro or higher plan.
|
|
1025
|
+
*/
|
|
1026
|
+
put: operations["setSiteDatabaseBranchComputeSettings"];
|
|
1027
|
+
parameters: {
|
|
1028
|
+
path: {
|
|
1029
|
+
site_id: string;
|
|
1030
|
+
/** The branch ID */
|
|
1031
|
+
branch_id: string;
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
"/sites/{site_id}/database/compute/settings": {
|
|
1036
|
+
/**
|
|
1037
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseComputeSettings | `getSiteDatabaseComputeSettings`}
|
|
1038
|
+
*
|
|
1039
|
+
* Returns the project-level compute settings for the database. Returns effective settings (custom or tier defaults). Requires a Pro or higher plan.
|
|
1040
|
+
*/
|
|
1041
|
+
get: operations["getSiteDatabaseComputeSettings"];
|
|
1042
|
+
/**
|
|
1043
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/setSiteDatabaseComputeSettings | `setSiteDatabaseComputeSettings`}
|
|
1044
|
+
*
|
|
1045
|
+
* Sets project-level compute settings for the database. Applied to new branches. Can be overridden per-branch. Requires a Pro or higher plan.
|
|
1046
|
+
*/
|
|
1047
|
+
put: operations["setSiteDatabaseComputeSettings"];
|
|
1048
|
+
/**
|
|
1049
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/clearSiteDatabaseComputeSettings | `clearSiteDatabaseComputeSettings`}
|
|
1050
|
+
*
|
|
1051
|
+
* Resets project-level compute settings to tier defaults. Requires a Pro or higher plan.
|
|
1052
|
+
*/
|
|
1053
|
+
delete: operations["clearSiteDatabaseComputeSettings"];
|
|
1054
|
+
parameters: {
|
|
1055
|
+
path: {
|
|
1056
|
+
site_id: string;
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
"/sites/{site_id}/database/migrations": {
|
|
1061
|
+
/**
|
|
1062
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseMigrations | `listSiteDatabaseMigrations`}
|
|
1063
|
+
*
|
|
1064
|
+
* Returns the list of migrations available for the specified branch, indicating which ones have been applied to the database.
|
|
1065
|
+
*/
|
|
1066
|
+
get: operations["listSiteDatabaseMigrations"];
|
|
1067
|
+
parameters: {
|
|
1068
|
+
path: {
|
|
1069
|
+
site_id: string;
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
"/sites/{site_id}/database/migrations/{name}": {
|
|
1074
|
+
/**
|
|
1075
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseMigration | `getSiteDatabaseMigration`}
|
|
1076
|
+
*
|
|
1077
|
+
* Returns the contents of a named migration for the specified branch.
|
|
1078
|
+
*/
|
|
1079
|
+
get: operations["getSiteDatabaseMigration"];
|
|
941
1080
|
parameters: {
|
|
942
1081
|
path: {
|
|
943
1082
|
site_id: string;
|
|
1083
|
+
/** The migration name */
|
|
1084
|
+
name: string;
|
|
944
1085
|
};
|
|
945
1086
|
};
|
|
946
1087
|
};
|
|
947
|
-
"/sites/{site_id}/database/
|
|
1088
|
+
"/sites/{site_id}/database/migrations/{deploy_id}": {
|
|
1089
|
+
/**
|
|
1090
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/runSiteDatabaseMigrations | `runSiteDatabaseMigrations`}
|
|
1091
|
+
*
|
|
1092
|
+
* Runs database migrations for the specified deploy. Finds the deploy and determines the appropriate branch.
|
|
1093
|
+
*/
|
|
1094
|
+
post: operations["runSiteDatabaseMigrations"];
|
|
948
1095
|
parameters: {
|
|
949
1096
|
path: {
|
|
950
1097
|
site_id: string;
|
|
951
|
-
/** The deploy ID
|
|
1098
|
+
/** The deploy ID to run migrations for */
|
|
952
1099
|
deploy_id: string;
|
|
953
1100
|
};
|
|
954
1101
|
};
|
|
955
1102
|
};
|
|
956
1103
|
"/sites/{site_id}/database/snapshot": {
|
|
1104
|
+
/**
|
|
1105
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseSnapshot | `createSiteDatabaseSnapshot`}
|
|
1106
|
+
*
|
|
1107
|
+
* Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
|
|
1108
|
+
*/
|
|
1109
|
+
post: operations["createSiteDatabaseSnapshot"];
|
|
957
1110
|
parameters: {
|
|
958
1111
|
path: {
|
|
959
1112
|
site_id: string;
|
|
@@ -961,6 +1114,12 @@ export interface paths {
|
|
|
961
1114
|
};
|
|
962
1115
|
};
|
|
963
1116
|
"/sites/{site_id}/database/snapshots": {
|
|
1117
|
+
/**
|
|
1118
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseSnapshots | `listSiteDatabaseSnapshots`}
|
|
1119
|
+
*
|
|
1120
|
+
* Returns all snapshots for the site's database.
|
|
1121
|
+
*/
|
|
1122
|
+
get: operations["listSiteDatabaseSnapshots"];
|
|
964
1123
|
parameters: {
|
|
965
1124
|
path: {
|
|
966
1125
|
site_id: string;
|
|
@@ -968,6 +1127,12 @@ export interface paths {
|
|
|
968
1127
|
};
|
|
969
1128
|
};
|
|
970
1129
|
"/sites/{site_id}/database/snapshot/{snapshot_id}": {
|
|
1130
|
+
/**
|
|
1131
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseSnapshot | `deleteSiteDatabaseSnapshot`}
|
|
1132
|
+
*
|
|
1133
|
+
* Deletes a database snapshot.
|
|
1134
|
+
*/
|
|
1135
|
+
delete: operations["deleteSiteDatabaseSnapshot"];
|
|
971
1136
|
parameters: {
|
|
972
1137
|
path: {
|
|
973
1138
|
site_id: string;
|
|
@@ -977,6 +1142,12 @@ export interface paths {
|
|
|
977
1142
|
};
|
|
978
1143
|
};
|
|
979
1144
|
"/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
|
|
1145
|
+
/**
|
|
1146
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/restoreSiteDatabaseSnapshot | `restoreSiteDatabaseSnapshot`}
|
|
1147
|
+
*
|
|
1148
|
+
* Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
|
|
1149
|
+
*/
|
|
1150
|
+
post: operations["restoreSiteDatabaseSnapshot"];
|
|
980
1151
|
parameters: {
|
|
981
1152
|
path: {
|
|
982
1153
|
site_id: string;
|
|
@@ -1003,32 +1174,127 @@ export interface components {
|
|
|
1003
1174
|
createDatabaseBranchRequest: {
|
|
1004
1175
|
/** @description The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified. */
|
|
1005
1176
|
parent_branch_id?: string;
|
|
1006
|
-
/** @description The
|
|
1007
|
-
|
|
1177
|
+
/** @description The branch identifier */
|
|
1178
|
+
branch_id: string;
|
|
1179
|
+
/** @description Arbitrary metadata to associate with the branch */
|
|
1180
|
+
metadata?: { [key: string]: unknown };
|
|
1008
1181
|
};
|
|
1009
1182
|
/** @description Response containing the database branch connection string */
|
|
1010
1183
|
databaseBranchResponse: {
|
|
1011
1184
|
/** @description The connection string for the database branch */
|
|
1012
1185
|
connection_string?: string;
|
|
1186
|
+
/** @description Metadata associated with the branch */
|
|
1187
|
+
metadata?: { [key: string]: unknown };
|
|
1188
|
+
};
|
|
1189
|
+
/** @description Response containing a list of database branches */
|
|
1190
|
+
databaseBranchesResponse: {
|
|
1191
|
+
/** @description List of database branches */
|
|
1192
|
+
branches?: components["schemas"]["databaseBranchDetail"][];
|
|
1193
|
+
};
|
|
1194
|
+
/** @description Detailed information about a database branch */
|
|
1195
|
+
databaseBranchDetail: {
|
|
1196
|
+
/** @description The branch identifier */
|
|
1197
|
+
branch_id?: string;
|
|
1198
|
+
/** @description The branch name */
|
|
1199
|
+
name?: string;
|
|
1200
|
+
/** @description The connection string for the branch */
|
|
1201
|
+
connection_string?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* @description The current state of the branch
|
|
1204
|
+
* @enum {string}
|
|
1205
|
+
*/
|
|
1206
|
+
state?: "init" | "creating" | "resetting" | "ready" | "archived";
|
|
1207
|
+
/**
|
|
1208
|
+
* Format: int64
|
|
1209
|
+
* @description The logical size of the branch in bytes
|
|
1210
|
+
*/
|
|
1211
|
+
logical_size_bytes?: number;
|
|
1212
|
+
/**
|
|
1213
|
+
* Format: dateTime
|
|
1214
|
+
* @description When the branch was created
|
|
1215
|
+
*/
|
|
1216
|
+
created_at?: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* Format: dateTime
|
|
1219
|
+
* @description When the branch was last updated
|
|
1220
|
+
*/
|
|
1221
|
+
updated_at?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Format: dateTime
|
|
1224
|
+
* @description When the branch was last active
|
|
1225
|
+
*/
|
|
1226
|
+
last_active_at?: string;
|
|
1227
|
+
compute?: components["schemas"]["databaseBranchCompute"];
|
|
1228
|
+
/** @description Metadata associated with the branch */
|
|
1229
|
+
metadata?: { [key: string]: unknown };
|
|
1230
|
+
};
|
|
1231
|
+
/** @description Compute endpoint status for a branch */
|
|
1232
|
+
databaseBranchCompute: {
|
|
1233
|
+
/**
|
|
1234
|
+
* @description The current state of the compute endpoint
|
|
1235
|
+
* @enum {string}
|
|
1236
|
+
*/
|
|
1237
|
+
current_state?: "active" | "idle";
|
|
1238
|
+
/**
|
|
1239
|
+
* Format: double
|
|
1240
|
+
* @description Minimum compute units for autoscaling
|
|
1241
|
+
*/
|
|
1242
|
+
autoscaling_limit_min_cu?: number;
|
|
1243
|
+
/**
|
|
1244
|
+
* Format: double
|
|
1245
|
+
* @description Maximum compute units for autoscaling
|
|
1246
|
+
*/
|
|
1247
|
+
autoscaling_limit_max_cu?: number;
|
|
1248
|
+
/**
|
|
1249
|
+
* Format: int64
|
|
1250
|
+
* @description Seconds of inactivity before the compute endpoint is suspended
|
|
1251
|
+
*/
|
|
1252
|
+
suspend_timeout_seconds?: number;
|
|
1253
|
+
/**
|
|
1254
|
+
* Format: dateTime
|
|
1255
|
+
* @description When the compute endpoint was last active
|
|
1256
|
+
*/
|
|
1257
|
+
last_active?: string;
|
|
1013
1258
|
};
|
|
1014
1259
|
/** @description Request body for creating a database snapshot */
|
|
1015
1260
|
createDatabaseSnapshotRequest: {
|
|
1016
|
-
/** @description The
|
|
1017
|
-
|
|
1018
|
-
/** @description
|
|
1261
|
+
/** @description The ID of the branch to snapshot. Defaults to "production" if not specified. */
|
|
1262
|
+
branch_id?: string;
|
|
1263
|
+
/** @description A name for the snapshot */
|
|
1019
1264
|
name?: string;
|
|
1265
|
+
metadata?: components["schemas"]["databaseSnapshotMetadata"];
|
|
1020
1266
|
};
|
|
1021
1267
|
/** @description A point-in-time snapshot of a database branch */
|
|
1022
1268
|
databaseSnapshot: {
|
|
1023
1269
|
/** @description The unique identifier of the snapshot */
|
|
1024
1270
|
id?: string;
|
|
1271
|
+
/** @description The ID of the branch that was snapshotted */
|
|
1272
|
+
source_branch_id?: string;
|
|
1273
|
+
/** @description Whether this snapshot was manually created */
|
|
1274
|
+
manual?: boolean;
|
|
1275
|
+
/**
|
|
1276
|
+
* Format: dateTime
|
|
1277
|
+
* @description When the snapshot was created
|
|
1278
|
+
*/
|
|
1279
|
+
created_at?: string;
|
|
1280
|
+
/**
|
|
1281
|
+
* Format: dateTime
|
|
1282
|
+
* @description When the snapshot expires
|
|
1283
|
+
*/
|
|
1284
|
+
expires_at?: string;
|
|
1025
1285
|
/**
|
|
1026
1286
|
* Format: dateTime
|
|
1027
|
-
* @description The timestamp
|
|
1287
|
+
* @description The point-in-time timestamp of the snapshot
|
|
1028
1288
|
*/
|
|
1029
1289
|
timestamp?: string;
|
|
1030
|
-
|
|
1031
|
-
|
|
1290
|
+
metadata?: components["schemas"]["databaseSnapshotMetadata"];
|
|
1291
|
+
};
|
|
1292
|
+
/** @description Metadata associated with a snapshot */
|
|
1293
|
+
databaseSnapshotMetadata: {
|
|
1294
|
+
/** @description Deploy information associated with the snapshot */
|
|
1295
|
+
deploy?: { [key: string]: unknown };
|
|
1296
|
+
/** @description The source that created the snapshot */
|
|
1297
|
+
source?: string;
|
|
1032
1298
|
};
|
|
1033
1299
|
/** @description Response containing a list of database snapshots */
|
|
1034
1300
|
databaseSnapshotsResponse: {
|
|
@@ -1037,8 +1303,96 @@ export interface components {
|
|
|
1037
1303
|
};
|
|
1038
1304
|
/** @description Request body for restoring a database snapshot */
|
|
1039
1305
|
restoreDatabaseSnapshotRequest: {
|
|
1040
|
-
/** @description The
|
|
1041
|
-
|
|
1306
|
+
/** @description The ID of the branch to restore the snapshot to. Defaults to "production" if not specified. */
|
|
1307
|
+
branch_id?: string;
|
|
1308
|
+
};
|
|
1309
|
+
/** @description Request body for setting compute settings. All fields are optional; only provided fields are updated. */
|
|
1310
|
+
databaseComputeSettingsRequest: {
|
|
1311
|
+
/**
|
|
1312
|
+
* Format: double
|
|
1313
|
+
* @description Minimum compute units (0.25 to 16.0). Must be less than or equal to max_cu.
|
|
1314
|
+
*/
|
|
1315
|
+
min_cu?: number | null;
|
|
1316
|
+
/**
|
|
1317
|
+
* Format: double
|
|
1318
|
+
* @description Maximum compute units (0.25 to 16.0). Must be greater than or equal to min_cu. max_cu - min_cu must not exceed 8.0.
|
|
1319
|
+
*/
|
|
1320
|
+
max_cu?: number | null;
|
|
1321
|
+
/**
|
|
1322
|
+
* Format: int64
|
|
1323
|
+
* @description Seconds of inactivity before the compute endpoint is suspended. Use -1 for always on, or a non-negative value.
|
|
1324
|
+
*/
|
|
1325
|
+
sleep_timeout_seconds?: number | null;
|
|
1326
|
+
};
|
|
1327
|
+
/** @description Compute settings for a database or branch */
|
|
1328
|
+
databaseComputeSettings: {
|
|
1329
|
+
/**
|
|
1330
|
+
* Format: double
|
|
1331
|
+
* @description Minimum compute units
|
|
1332
|
+
*/
|
|
1333
|
+
min_cu?: number;
|
|
1334
|
+
/**
|
|
1335
|
+
* Format: double
|
|
1336
|
+
* @description Maximum compute units
|
|
1337
|
+
*/
|
|
1338
|
+
max_cu?: number;
|
|
1339
|
+
/**
|
|
1340
|
+
* Format: int64
|
|
1341
|
+
* @description Seconds of inactivity before suspension
|
|
1342
|
+
*/
|
|
1343
|
+
sleep_timeout_seconds?: number;
|
|
1344
|
+
};
|
|
1345
|
+
/** @description Request body for running database migrations */
|
|
1346
|
+
runDatabaseMigrationsRequest: {
|
|
1347
|
+
/** @description If true, validates migrations without applying them. */
|
|
1348
|
+
dry_run?: boolean;
|
|
1349
|
+
};
|
|
1350
|
+
/** @description Request body for resetting a database branch */
|
|
1351
|
+
resetDatabaseBranchRequest: {
|
|
1352
|
+
/** @description The ID of the branch to re-fork the target branch from. Defaults to "production" if not specified. */
|
|
1353
|
+
source_branch_id?: string;
|
|
1354
|
+
};
|
|
1355
|
+
/** @description Response for a database branch reset */
|
|
1356
|
+
resetDatabaseBranchResponse: {
|
|
1357
|
+
/** @description Whether the branch was actually re-forked. False when the target was already in sync with the source and `force=true` was not set. */
|
|
1358
|
+
reset?: boolean;
|
|
1359
|
+
/** @description The connection string for the reset (or unchanged) branch */
|
|
1360
|
+
connection_string?: string;
|
|
1361
|
+
/** @description Metadata associated with the branch */
|
|
1362
|
+
metadata?: { [key: string]: unknown };
|
|
1363
|
+
};
|
|
1364
|
+
/** @description Response containing the list of migrations for a branch */
|
|
1365
|
+
listDatabaseMigrationsResponse: {
|
|
1366
|
+
/** @description List of migrations */
|
|
1367
|
+
migrations?: components["schemas"]["databaseMigration"][];
|
|
1368
|
+
};
|
|
1369
|
+
/** @description A migration available to a database branch */
|
|
1370
|
+
databaseMigration: {
|
|
1371
|
+
/**
|
|
1372
|
+
* Format: int64
|
|
1373
|
+
* @description The migration version number
|
|
1374
|
+
*/
|
|
1375
|
+
version?: number;
|
|
1376
|
+
/** @description The migration name */
|
|
1377
|
+
name?: string;
|
|
1378
|
+
/** @description The path to the migration file in the deploy bundle */
|
|
1379
|
+
path?: string;
|
|
1380
|
+
/** @description Whether this migration has been applied to the branch */
|
|
1381
|
+
applied?: boolean;
|
|
1382
|
+
};
|
|
1383
|
+
/** @description A migration with its file contents */
|
|
1384
|
+
databaseMigrationDetail: {
|
|
1385
|
+
/**
|
|
1386
|
+
* Format: int64
|
|
1387
|
+
* @description The migration version number
|
|
1388
|
+
*/
|
|
1389
|
+
version?: number;
|
|
1390
|
+
/** @description The migration name */
|
|
1391
|
+
name?: string;
|
|
1392
|
+
/** @description The path to the migration file in the deploy bundle */
|
|
1393
|
+
path?: string;
|
|
1394
|
+
/** @description The raw contents of the migration file */
|
|
1395
|
+
content?: string;
|
|
1042
1396
|
};
|
|
1043
1397
|
DeployValidationsReport: {
|
|
1044
1398
|
/** @description The id of the deploy validations report */
|
|
@@ -1279,6 +1633,7 @@ export interface components {
|
|
|
1279
1633
|
id?: string;
|
|
1280
1634
|
name?: string;
|
|
1281
1635
|
sha?: string;
|
|
1636
|
+
region?: string;
|
|
1282
1637
|
};
|
|
1283
1638
|
snippet: {
|
|
1284
1639
|
/** Format: int32 */
|
|
@@ -1330,6 +1685,16 @@ export interface components {
|
|
|
1330
1685
|
framework?: string;
|
|
1331
1686
|
skew_protection_token?: string;
|
|
1332
1687
|
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
1688
|
+
/** @description The functions region for this deploy as an airport code. */
|
|
1689
|
+
functions_region?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* @description Functions in the deploy that explicitly specify their own region
|
|
1692
|
+
* (airport code).
|
|
1693
|
+
*/
|
|
1694
|
+
functions_region_overrides?: {
|
|
1695
|
+
name?: string;
|
|
1696
|
+
region?: string;
|
|
1697
|
+
}[];
|
|
1333
1698
|
};
|
|
1334
1699
|
deployEnvironmentVariable: {
|
|
1335
1700
|
key: string;
|
|
@@ -1794,6 +2159,7 @@ export interface components {
|
|
|
1794
2159
|
routes?: components["schemas"]["functionRoute"][];
|
|
1795
2160
|
excluded_routes?: components["schemas"]["excludedFunctionRoute"][];
|
|
1796
2161
|
priority?: number;
|
|
2162
|
+
region?: string;
|
|
1797
2163
|
traffic_rules?: components["schemas"]["trafficRulesConfig"];
|
|
1798
2164
|
event_subscriptions?: string[];
|
|
1799
2165
|
};
|
|
@@ -1953,6 +2319,11 @@ export interface components {
|
|
|
1953
2319
|
"application/json": components["schemas"]["splitTestSetup"];
|
|
1954
2320
|
};
|
|
1955
2321
|
};
|
|
2322
|
+
databaseComputeSettingsRequest: {
|
|
2323
|
+
content: {
|
|
2324
|
+
"application/json": components["schemas"]["databaseComputeSettingsRequest"];
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
1956
2327
|
};
|
|
1957
2328
|
}
|
|
1958
2329
|
|
|
@@ -4865,6 +5236,489 @@ export interface operations {
|
|
|
4865
5236
|
default: components["responses"]["error"];
|
|
4866
5237
|
};
|
|
4867
5238
|
};
|
|
5239
|
+
/**
|
|
5240
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabase | `getSiteDatabase`}
|
|
5241
|
+
*
|
|
5242
|
+
* Returns the database connection string for the specified site.
|
|
5243
|
+
*/
|
|
5244
|
+
getSiteDatabase: {
|
|
5245
|
+
parameters: {
|
|
5246
|
+
path: {
|
|
5247
|
+
site_id: string;
|
|
5248
|
+
};
|
|
5249
|
+
query: {
|
|
5250
|
+
/** The database role to use for the connection string. Defaults to netlifydb_owner if not specified. */
|
|
5251
|
+
role?: "netlifydb_owner" | "netlifydb_readonly";
|
|
5252
|
+
};
|
|
5253
|
+
};
|
|
5254
|
+
responses: {
|
|
5255
|
+
/** OK */
|
|
5256
|
+
200: {
|
|
5257
|
+
content: {
|
|
5258
|
+
"application/json": components["schemas"]["databaseResponse"];
|
|
5259
|
+
};
|
|
5260
|
+
};
|
|
5261
|
+
default: components["responses"]["error"];
|
|
5262
|
+
};
|
|
5263
|
+
};
|
|
5264
|
+
/**
|
|
5265
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabase | `createSiteDatabase`}
|
|
5266
|
+
*
|
|
5267
|
+
* 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.
|
|
5268
|
+
*/
|
|
5269
|
+
createSiteDatabase: {
|
|
5270
|
+
parameters: {
|
|
5271
|
+
path: {
|
|
5272
|
+
site_id: string;
|
|
5273
|
+
};
|
|
5274
|
+
};
|
|
5275
|
+
responses: {
|
|
5276
|
+
/** Database already exists */
|
|
5277
|
+
200: {
|
|
5278
|
+
content: {
|
|
5279
|
+
"application/json": components["schemas"]["databaseResponse"];
|
|
5280
|
+
};
|
|
5281
|
+
};
|
|
5282
|
+
/** Created */
|
|
5283
|
+
201: {
|
|
5284
|
+
content: {
|
|
5285
|
+
"application/json": components["schemas"]["databaseResponse"];
|
|
5286
|
+
};
|
|
5287
|
+
};
|
|
5288
|
+
default: components["responses"]["error"];
|
|
5289
|
+
};
|
|
5290
|
+
requestBody: {
|
|
5291
|
+
content: {
|
|
5292
|
+
"application/json": components["schemas"]["createDatabaseRequest"];
|
|
5293
|
+
};
|
|
5294
|
+
};
|
|
5295
|
+
};
|
|
5296
|
+
/**
|
|
5297
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabase | `deleteSiteDatabase`}
|
|
5298
|
+
*
|
|
5299
|
+
* Deletes the database and all associated branches and snapshots for the specified site.
|
|
5300
|
+
*/
|
|
5301
|
+
deleteSiteDatabase: {
|
|
5302
|
+
parameters: {
|
|
5303
|
+
path: {
|
|
5304
|
+
site_id: string;
|
|
5305
|
+
};
|
|
5306
|
+
};
|
|
5307
|
+
responses: {
|
|
5308
|
+
/** Deleted */
|
|
5309
|
+
204: never;
|
|
5310
|
+
default: components["responses"]["error"];
|
|
5311
|
+
};
|
|
5312
|
+
};
|
|
5313
|
+
/**
|
|
5314
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseBranch | `createSiteDatabaseBranch`}
|
|
5315
|
+
*
|
|
5316
|
+
* Creates a new database branch. If a branch already exists for the specified branch ID, returns the existing connection string.
|
|
5317
|
+
*/
|
|
5318
|
+
createSiteDatabaseBranch: {
|
|
5319
|
+
parameters: {
|
|
5320
|
+
path: {
|
|
5321
|
+
site_id: string;
|
|
5322
|
+
};
|
|
5323
|
+
};
|
|
5324
|
+
responses: {
|
|
5325
|
+
/** Branch already exists */
|
|
5326
|
+
200: {
|
|
5327
|
+
content: {
|
|
5328
|
+
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
5329
|
+
};
|
|
5330
|
+
};
|
|
5331
|
+
/** Created */
|
|
5332
|
+
201: {
|
|
5333
|
+
content: {
|
|
5334
|
+
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
5335
|
+
};
|
|
5336
|
+
};
|
|
5337
|
+
default: components["responses"]["error"];
|
|
5338
|
+
};
|
|
5339
|
+
requestBody: {
|
|
5340
|
+
content: {
|
|
5341
|
+
"application/json": components["schemas"]["createDatabaseBranchRequest"];
|
|
5342
|
+
};
|
|
5343
|
+
};
|
|
5344
|
+
};
|
|
5345
|
+
/**
|
|
5346
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseBranches | `listSiteDatabaseBranches`}
|
|
5347
|
+
*
|
|
5348
|
+
* Returns all branches for the site's database with compute status and metadata.
|
|
5349
|
+
*/
|
|
5350
|
+
listSiteDatabaseBranches: {
|
|
5351
|
+
parameters: {
|
|
5352
|
+
path: {
|
|
5353
|
+
site_id: string;
|
|
5354
|
+
};
|
|
5355
|
+
};
|
|
5356
|
+
responses: {
|
|
5357
|
+
/** OK */
|
|
5358
|
+
200: {
|
|
5359
|
+
content: {
|
|
5360
|
+
"application/json": components["schemas"]["databaseBranchesResponse"];
|
|
5361
|
+
};
|
|
5362
|
+
};
|
|
5363
|
+
default: components["responses"]["error"];
|
|
5364
|
+
};
|
|
5365
|
+
};
|
|
5366
|
+
/**
|
|
5367
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseBranch | `getSiteDatabaseBranch`}
|
|
5368
|
+
*
|
|
5369
|
+
* Returns the database branch connection string for a specific branch.
|
|
5370
|
+
*/
|
|
5371
|
+
getSiteDatabaseBranch: {
|
|
5372
|
+
parameters: {
|
|
5373
|
+
path: {
|
|
5374
|
+
site_id: string;
|
|
5375
|
+
/** The branch ID */
|
|
5376
|
+
branch_id: string;
|
|
5377
|
+
};
|
|
5378
|
+
query: {
|
|
5379
|
+
/** The database role to use for the connection string. Defaults to netlifydb_owner if not specified. */
|
|
5380
|
+
role?: "netlifydb_owner" | "netlifydb_readonly";
|
|
5381
|
+
};
|
|
5382
|
+
};
|
|
5383
|
+
responses: {
|
|
5384
|
+
/** OK */
|
|
5385
|
+
200: {
|
|
5386
|
+
content: {
|
|
5387
|
+
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
5388
|
+
};
|
|
5389
|
+
};
|
|
5390
|
+
/** Branch not found */
|
|
5391
|
+
404: unknown;
|
|
5392
|
+
default: components["responses"]["error"];
|
|
5393
|
+
};
|
|
5394
|
+
};
|
|
5395
|
+
/**
|
|
5396
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseBranch | `deleteSiteDatabaseBranch`}
|
|
5397
|
+
*
|
|
5398
|
+
* Deletes a database branch.
|
|
5399
|
+
*/
|
|
5400
|
+
deleteSiteDatabaseBranch: {
|
|
5401
|
+
parameters: {
|
|
5402
|
+
path: {
|
|
5403
|
+
site_id: string;
|
|
5404
|
+
/** The branch ID */
|
|
5405
|
+
branch_id: string;
|
|
5406
|
+
};
|
|
5407
|
+
};
|
|
5408
|
+
responses: {
|
|
5409
|
+
/** Deleted */
|
|
5410
|
+
204: never;
|
|
5411
|
+
default: components["responses"]["error"];
|
|
5412
|
+
};
|
|
5413
|
+
};
|
|
5414
|
+
/**
|
|
5415
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/resetSiteDatabaseBranch | `resetSiteDatabaseBranch`}
|
|
5416
|
+
*
|
|
5417
|
+
* Resets a non-production database branch by re-forking it from a source branch (defaults to the production branch). If the target branch is already in sync with the source, returns the existing connection string without performing a reset, unless `force=true` is passed. The production branch cannot be reset.
|
|
5418
|
+
*/
|
|
5419
|
+
resetSiteDatabaseBranch: {
|
|
5420
|
+
parameters: {
|
|
5421
|
+
path: {
|
|
5422
|
+
site_id: string;
|
|
5423
|
+
/** The branch ID to reset */
|
|
5424
|
+
branch_id: string;
|
|
5425
|
+
};
|
|
5426
|
+
query: {
|
|
5427
|
+
/** If true, resets the branch even when it is already in sync with the source. */
|
|
5428
|
+
force?: boolean;
|
|
5429
|
+
/** The database role to use for the returned connection string. Defaults to netlifydb_owner if not specified. */
|
|
5430
|
+
role?: "netlifydb_owner" | "netlifydb_readonly";
|
|
5431
|
+
};
|
|
5432
|
+
};
|
|
5433
|
+
responses: {
|
|
5434
|
+
/** OK */
|
|
5435
|
+
200: {
|
|
5436
|
+
content: {
|
|
5437
|
+
"application/json": components["schemas"]["resetDatabaseBranchResponse"];
|
|
5438
|
+
};
|
|
5439
|
+
};
|
|
5440
|
+
/** Invalid request — for example, the target is the production branch or the source branch is the same as the target. */
|
|
5441
|
+
400: unknown;
|
|
5442
|
+
/** Database or branch not found */
|
|
5443
|
+
404: unknown;
|
|
5444
|
+
default: components["responses"]["error"];
|
|
5445
|
+
};
|
|
5446
|
+
requestBody: {
|
|
5447
|
+
content: {
|
|
5448
|
+
"application/json": components["schemas"]["resetDatabaseBranchRequest"];
|
|
5449
|
+
};
|
|
5450
|
+
};
|
|
5451
|
+
};
|
|
5452
|
+
/**
|
|
5453
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/setSiteDatabaseBranchComputeSettings | `setSiteDatabaseBranchComputeSettings`}
|
|
5454
|
+
*
|
|
5455
|
+
* Sets compute settings for a specific database branch, overriding project-level settings. Requires a Pro or higher plan.
|
|
5456
|
+
*/
|
|
5457
|
+
setSiteDatabaseBranchComputeSettings: {
|
|
5458
|
+
parameters: {
|
|
5459
|
+
path: {
|
|
5460
|
+
site_id: string;
|
|
5461
|
+
/** The branch ID */
|
|
5462
|
+
branch_id: string;
|
|
5463
|
+
};
|
|
5464
|
+
};
|
|
5465
|
+
responses: {
|
|
5466
|
+
/** OK */
|
|
5467
|
+
200: {
|
|
5468
|
+
content: {
|
|
5469
|
+
"application/json": components["schemas"]["databaseComputeSettings"];
|
|
5470
|
+
};
|
|
5471
|
+
};
|
|
5472
|
+
/** Compute customization requires a Pro or higher plan */
|
|
5473
|
+
403: unknown;
|
|
5474
|
+
default: components["responses"]["error"];
|
|
5475
|
+
};
|
|
5476
|
+
requestBody: components["requestBodies"]["databaseComputeSettingsRequest"];
|
|
5477
|
+
};
|
|
5478
|
+
/**
|
|
5479
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseComputeSettings | `getSiteDatabaseComputeSettings`}
|
|
5480
|
+
*
|
|
5481
|
+
* Returns the project-level compute settings for the database. Returns effective settings (custom or tier defaults). Requires a Pro or higher plan.
|
|
5482
|
+
*/
|
|
5483
|
+
getSiteDatabaseComputeSettings: {
|
|
5484
|
+
parameters: {
|
|
5485
|
+
path: {
|
|
5486
|
+
site_id: string;
|
|
5487
|
+
};
|
|
5488
|
+
};
|
|
5489
|
+
responses: {
|
|
5490
|
+
/** OK */
|
|
5491
|
+
200: {
|
|
5492
|
+
content: {
|
|
5493
|
+
"application/json": components["schemas"]["databaseComputeSettings"];
|
|
5494
|
+
};
|
|
5495
|
+
};
|
|
5496
|
+
/** Compute customization requires a Pro or higher plan */
|
|
5497
|
+
403: unknown;
|
|
5498
|
+
default: components["responses"]["error"];
|
|
5499
|
+
};
|
|
5500
|
+
};
|
|
5501
|
+
/**
|
|
5502
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/setSiteDatabaseComputeSettings | `setSiteDatabaseComputeSettings`}
|
|
5503
|
+
*
|
|
5504
|
+
* Sets project-level compute settings for the database. Applied to new branches. Can be overridden per-branch. Requires a Pro or higher plan.
|
|
5505
|
+
*/
|
|
5506
|
+
setSiteDatabaseComputeSettings: {
|
|
5507
|
+
parameters: {
|
|
5508
|
+
path: {
|
|
5509
|
+
site_id: string;
|
|
5510
|
+
};
|
|
5511
|
+
};
|
|
5512
|
+
responses: {
|
|
5513
|
+
/** OK */
|
|
5514
|
+
200: {
|
|
5515
|
+
content: {
|
|
5516
|
+
"application/json": components["schemas"]["databaseComputeSettings"];
|
|
5517
|
+
};
|
|
5518
|
+
};
|
|
5519
|
+
/** Compute customization requires a Pro or higher plan */
|
|
5520
|
+
403: unknown;
|
|
5521
|
+
default: components["responses"]["error"];
|
|
5522
|
+
};
|
|
5523
|
+
requestBody: components["requestBodies"]["databaseComputeSettingsRequest"];
|
|
5524
|
+
};
|
|
5525
|
+
/**
|
|
5526
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/clearSiteDatabaseComputeSettings | `clearSiteDatabaseComputeSettings`}
|
|
5527
|
+
*
|
|
5528
|
+
* Resets project-level compute settings to tier defaults. Requires a Pro or higher plan.
|
|
5529
|
+
*/
|
|
5530
|
+
clearSiteDatabaseComputeSettings: {
|
|
5531
|
+
parameters: {
|
|
5532
|
+
path: {
|
|
5533
|
+
site_id: string;
|
|
5534
|
+
};
|
|
5535
|
+
};
|
|
5536
|
+
responses: {
|
|
5537
|
+
/** Cleared */
|
|
5538
|
+
204: never;
|
|
5539
|
+
/** Compute customization requires a Pro or higher plan */
|
|
5540
|
+
403: unknown;
|
|
5541
|
+
default: components["responses"]["error"];
|
|
5542
|
+
};
|
|
5543
|
+
};
|
|
5544
|
+
/**
|
|
5545
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseMigrations | `listSiteDatabaseMigrations`}
|
|
5546
|
+
*
|
|
5547
|
+
* Returns the list of migrations available for the specified branch, indicating which ones have been applied to the database.
|
|
5548
|
+
*/
|
|
5549
|
+
listSiteDatabaseMigrations: {
|
|
5550
|
+
parameters: {
|
|
5551
|
+
path: {
|
|
5552
|
+
site_id: string;
|
|
5553
|
+
};
|
|
5554
|
+
query: {
|
|
5555
|
+
/** The branch ID to list migrations for. Defaults to "production" if not specified. */
|
|
5556
|
+
branch?: string;
|
|
5557
|
+
};
|
|
5558
|
+
};
|
|
5559
|
+
responses: {
|
|
5560
|
+
/** OK */
|
|
5561
|
+
200: {
|
|
5562
|
+
content: {
|
|
5563
|
+
"application/json": components["schemas"]["listDatabaseMigrationsResponse"];
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
5566
|
+
/** Database or branch not found */
|
|
5567
|
+
404: unknown;
|
|
5568
|
+
/** Database is disabled */
|
|
5569
|
+
423: unknown;
|
|
5570
|
+
default: components["responses"]["error"];
|
|
5571
|
+
};
|
|
5572
|
+
};
|
|
5573
|
+
/**
|
|
5574
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseMigration | `getSiteDatabaseMigration`}
|
|
5575
|
+
*
|
|
5576
|
+
* Returns the contents of a named migration for the specified branch.
|
|
5577
|
+
*/
|
|
5578
|
+
getSiteDatabaseMigration: {
|
|
5579
|
+
parameters: {
|
|
5580
|
+
path: {
|
|
5581
|
+
site_id: string;
|
|
5582
|
+
/** The migration name */
|
|
5583
|
+
name: string;
|
|
5584
|
+
};
|
|
5585
|
+
query: {
|
|
5586
|
+
/** The branch ID to look up the migration on. Defaults to the currently published deploy's branch. */
|
|
5587
|
+
branch?: string;
|
|
5588
|
+
};
|
|
5589
|
+
};
|
|
5590
|
+
responses: {
|
|
5591
|
+
/** OK */
|
|
5592
|
+
200: {
|
|
5593
|
+
content: {
|
|
5594
|
+
"application/json": components["schemas"]["databaseMigrationDetail"];
|
|
5595
|
+
};
|
|
5596
|
+
};
|
|
5597
|
+
/** Migration, database, or branch not found */
|
|
5598
|
+
404: unknown;
|
|
5599
|
+
/** Database is disabled */
|
|
5600
|
+
423: unknown;
|
|
5601
|
+
default: components["responses"]["error"];
|
|
5602
|
+
};
|
|
5603
|
+
};
|
|
5604
|
+
/**
|
|
5605
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/runSiteDatabaseMigrations | `runSiteDatabaseMigrations`}
|
|
5606
|
+
*
|
|
5607
|
+
* Runs database migrations for the specified deploy. Finds the deploy and determines the appropriate branch.
|
|
5608
|
+
*/
|
|
5609
|
+
runSiteDatabaseMigrations: {
|
|
5610
|
+
parameters: {
|
|
5611
|
+
path: {
|
|
5612
|
+
site_id: string;
|
|
5613
|
+
/** The deploy ID to run migrations for */
|
|
5614
|
+
deploy_id: string;
|
|
5615
|
+
};
|
|
5616
|
+
};
|
|
5617
|
+
responses: {
|
|
5618
|
+
/** OK */
|
|
5619
|
+
200: unknown;
|
|
5620
|
+
/** Migration conflict - migration modified or removed after being applied */
|
|
5621
|
+
409: unknown;
|
|
5622
|
+
/** Migration validation failed */
|
|
5623
|
+
422: unknown;
|
|
5624
|
+
default: components["responses"]["error"];
|
|
5625
|
+
};
|
|
5626
|
+
requestBody: {
|
|
5627
|
+
content: {
|
|
5628
|
+
"application/json": components["schemas"]["runDatabaseMigrationsRequest"];
|
|
5629
|
+
};
|
|
5630
|
+
};
|
|
5631
|
+
};
|
|
5632
|
+
/**
|
|
5633
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseSnapshot | `createSiteDatabaseSnapshot`}
|
|
5634
|
+
*
|
|
5635
|
+
* Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
|
|
5636
|
+
*/
|
|
5637
|
+
createSiteDatabaseSnapshot: {
|
|
5638
|
+
parameters: {
|
|
5639
|
+
path: {
|
|
5640
|
+
site_id: string;
|
|
5641
|
+
};
|
|
5642
|
+
};
|
|
5643
|
+
responses: {
|
|
5644
|
+
/** Created */
|
|
5645
|
+
201: {
|
|
5646
|
+
content: {
|
|
5647
|
+
"application/json": components["schemas"]["databaseSnapshot"];
|
|
5648
|
+
};
|
|
5649
|
+
};
|
|
5650
|
+
default: components["responses"]["error"];
|
|
5651
|
+
};
|
|
5652
|
+
requestBody: {
|
|
5653
|
+
content: {
|
|
5654
|
+
"application/json": components["schemas"]["createDatabaseSnapshotRequest"];
|
|
5655
|
+
};
|
|
5656
|
+
};
|
|
5657
|
+
};
|
|
5658
|
+
/**
|
|
5659
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseSnapshots | `listSiteDatabaseSnapshots`}
|
|
5660
|
+
*
|
|
5661
|
+
* Returns all snapshots for the site's database.
|
|
5662
|
+
*/
|
|
5663
|
+
listSiteDatabaseSnapshots: {
|
|
5664
|
+
parameters: {
|
|
5665
|
+
path: {
|
|
5666
|
+
site_id: string;
|
|
5667
|
+
};
|
|
5668
|
+
};
|
|
5669
|
+
responses: {
|
|
5670
|
+
/** OK */
|
|
5671
|
+
200: {
|
|
5672
|
+
content: {
|
|
5673
|
+
"application/json": components["schemas"]["databaseSnapshotsResponse"];
|
|
5674
|
+
};
|
|
5675
|
+
};
|
|
5676
|
+
default: components["responses"]["error"];
|
|
5677
|
+
};
|
|
5678
|
+
};
|
|
5679
|
+
/**
|
|
5680
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseSnapshot | `deleteSiteDatabaseSnapshot`}
|
|
5681
|
+
*
|
|
5682
|
+
* Deletes a database snapshot.
|
|
5683
|
+
*/
|
|
5684
|
+
deleteSiteDatabaseSnapshot: {
|
|
5685
|
+
parameters: {
|
|
5686
|
+
path: {
|
|
5687
|
+
site_id: string;
|
|
5688
|
+
/** The snapshot ID */
|
|
5689
|
+
snapshot_id: string;
|
|
5690
|
+
};
|
|
5691
|
+
};
|
|
5692
|
+
responses: {
|
|
5693
|
+
/** Deleted */
|
|
5694
|
+
204: never;
|
|
5695
|
+
default: components["responses"]["error"];
|
|
5696
|
+
};
|
|
5697
|
+
};
|
|
5698
|
+
/**
|
|
5699
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/restoreSiteDatabaseSnapshot | `restoreSiteDatabaseSnapshot`}
|
|
5700
|
+
*
|
|
5701
|
+
* Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
|
|
5702
|
+
*/
|
|
5703
|
+
restoreSiteDatabaseSnapshot: {
|
|
5704
|
+
parameters: {
|
|
5705
|
+
path: {
|
|
5706
|
+
site_id: string;
|
|
5707
|
+
/** The snapshot ID to restore */
|
|
5708
|
+
snapshot_id: string;
|
|
5709
|
+
};
|
|
5710
|
+
};
|
|
5711
|
+
responses: {
|
|
5712
|
+
/** OK */
|
|
5713
|
+
200: unknown;
|
|
5714
|
+
default: components["responses"]["error"];
|
|
5715
|
+
};
|
|
5716
|
+
requestBody: {
|
|
5717
|
+
content: {
|
|
5718
|
+
"application/json": components["schemas"]["restoreDatabaseSnapshotRequest"];
|
|
5719
|
+
};
|
|
5720
|
+
};
|
|
5721
|
+
};
|
|
4868
5722
|
}
|
|
4869
5723
|
|
|
4870
5724
|
export interface external {}
|