@netlify/open-api 2.46.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 CHANGED
@@ -916,10 +916,116 @@ export interface paths {
916
916
  };
917
917
  };
918
918
  };
919
+ "/sites/{site_id}/database": {
920
+ parameters: {
921
+ path: {
922
+ site_id: string;
923
+ };
924
+ };
925
+ };
926
+ "/sites/{site_id}/database/branch": {
927
+ parameters: {
928
+ path: {
929
+ site_id: string;
930
+ };
931
+ };
932
+ };
933
+ "/sites/{site_id}/database/branch/{deploy_id}": {
934
+ parameters: {
935
+ path: {
936
+ site_id: string;
937
+ /** The deploy ID associated with the database branch */
938
+ deploy_id: string;
939
+ };
940
+ };
941
+ };
942
+ "/sites/{site_id}/database/snapshot": {
943
+ parameters: {
944
+ path: {
945
+ site_id: string;
946
+ };
947
+ };
948
+ };
949
+ "/sites/{site_id}/database/snapshots": {
950
+ parameters: {
951
+ path: {
952
+ site_id: string;
953
+ };
954
+ };
955
+ };
956
+ "/sites/{site_id}/database/snapshot/{snapshot_id}": {
957
+ parameters: {
958
+ path: {
959
+ site_id: string;
960
+ /** The snapshot ID */
961
+ snapshot_id: string;
962
+ };
963
+ };
964
+ };
965
+ "/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
966
+ parameters: {
967
+ path: {
968
+ site_id: string;
969
+ /** The snapshot ID to restore */
970
+ snapshot_id: string;
971
+ };
972
+ };
973
+ };
919
974
  }
920
975
 
921
976
  export interface components {
922
977
  schemas: {
978
+ /** @description Request body for creating a database */
979
+ createDatabaseRequest: {
980
+ /** @description The region where the database should be created. Defaults to the site's functions region if not specified. */
981
+ region?: string;
982
+ };
983
+ /** @description Response containing the database connection string */
984
+ databaseResponse: {
985
+ /** @description The connection string for the database */
986
+ connection_string?: string;
987
+ };
988
+ /** @description Request body for creating a database branch */
989
+ createDatabaseBranchRequest: {
990
+ /** @description The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified. */
991
+ parent_branch_id?: string;
992
+ /** @description The deploy ID to associate with this branch */
993
+ deploy_id: string;
994
+ };
995
+ /** @description Response containing the database branch connection string */
996
+ databaseBranchResponse: {
997
+ /** @description The connection string for the database branch */
998
+ connection_string?: string;
999
+ };
1000
+ /** @description Request body for creating a database snapshot */
1001
+ createDatabaseSnapshotRequest: {
1002
+ /** @description The name of the branch to snapshot. Defaults to "production" if not specified. */
1003
+ branch_name?: string;
1004
+ /** @description An optional name for the snapshot */
1005
+ name?: string;
1006
+ };
1007
+ /** @description A point-in-time snapshot of a database branch */
1008
+ databaseSnapshot: {
1009
+ /** @description The unique identifier of the snapshot */
1010
+ id?: string;
1011
+ /**
1012
+ * Format: dateTime
1013
+ * @description The timestamp when the snapshot was created
1014
+ */
1015
+ timestamp?: string;
1016
+ /** @description The ID of the branch that was snapshotted */
1017
+ source_branch_id?: string;
1018
+ };
1019
+ /** @description Response containing a list of database snapshots */
1020
+ databaseSnapshotsResponse: {
1021
+ /** @description List of database snapshots */
1022
+ snapshots?: components["schemas"]["databaseSnapshot"][];
1023
+ };
1024
+ /** @description Request body for restoring a database snapshot */
1025
+ restoreDatabaseSnapshotRequest: {
1026
+ /** @description The name of the branch to restore the snapshot to. Defaults to "production" if not specified. */
1027
+ branch_name?: string;
1028
+ };
923
1029
  DeployValidationsReport: {
924
1030
  /** @description The id of the deploy validations report */
925
1031
  id?: string;
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.46.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/",
@@ -17102,9 +17102,744 @@
17102
17102
  },
17103
17103
  "description": "Returns an AI Gateway token for a specific site"
17104
17104
  }
17105
+ },
17106
+ "/sites/{site_id}/database": {
17107
+ "parameters": [
17108
+ {
17109
+ "name": "site_id",
17110
+ "type": "string",
17111
+ "in": "path",
17112
+ "required": true
17113
+ }
17114
+ ],
17115
+ "post": {
17116
+ "x-internal": true,
17117
+ "operationId": "createSiteDatabase",
17118
+ "tags": [
17119
+ "database"
17120
+ ],
17121
+ "description": "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.",
17122
+ "consumes": [
17123
+ "application/json"
17124
+ ],
17125
+ "parameters": [
17126
+ {
17127
+ "name": "database",
17128
+ "in": "body",
17129
+ "schema": {
17130
+ "type": "object",
17131
+ "description": "Request body for creating a database",
17132
+ "properties": {
17133
+ "region": {
17134
+ "type": "string",
17135
+ "description": "The region where the database should be created. Defaults to the site's functions region if not specified."
17136
+ }
17137
+ }
17138
+ }
17139
+ }
17140
+ ],
17141
+ "responses": {
17142
+ "200": {
17143
+ "description": "Database already exists",
17144
+ "schema": {
17145
+ "type": "object",
17146
+ "description": "Response containing the database connection string",
17147
+ "properties": {
17148
+ "connection_string": {
17149
+ "type": "string",
17150
+ "description": "The connection string for the database"
17151
+ }
17152
+ }
17153
+ }
17154
+ },
17155
+ "201": {
17156
+ "description": "Created",
17157
+ "schema": {
17158
+ "type": "object",
17159
+ "description": "Response containing the database connection string",
17160
+ "properties": {
17161
+ "connection_string": {
17162
+ "type": "string",
17163
+ "description": "The connection string for the database"
17164
+ }
17165
+ }
17166
+ }
17167
+ },
17168
+ "default": {
17169
+ "description": "error",
17170
+ "schema": {
17171
+ "type": "object",
17172
+ "required": [
17173
+ "message"
17174
+ ],
17175
+ "properties": {
17176
+ "code": {
17177
+ "type": "integer",
17178
+ "format": "int64"
17179
+ },
17180
+ "message": {
17181
+ "type": "string",
17182
+ "x-nullable": false
17183
+ }
17184
+ }
17185
+ }
17186
+ }
17187
+ }
17188
+ },
17189
+ "get": {
17190
+ "x-internal": true,
17191
+ "operationId": "getSiteDatabase",
17192
+ "tags": [
17193
+ "database"
17194
+ ],
17195
+ "description": "Returns the database connection string for the specified site.",
17196
+ "responses": {
17197
+ "200": {
17198
+ "description": "OK",
17199
+ "schema": {
17200
+ "type": "object",
17201
+ "description": "Response containing the database connection string",
17202
+ "properties": {
17203
+ "connection_string": {
17204
+ "type": "string",
17205
+ "description": "The connection string for the database"
17206
+ }
17207
+ }
17208
+ }
17209
+ },
17210
+ "default": {
17211
+ "description": "error",
17212
+ "schema": {
17213
+ "type": "object",
17214
+ "required": [
17215
+ "message"
17216
+ ],
17217
+ "properties": {
17218
+ "code": {
17219
+ "type": "integer",
17220
+ "format": "int64"
17221
+ },
17222
+ "message": {
17223
+ "type": "string",
17224
+ "x-nullable": false
17225
+ }
17226
+ }
17227
+ }
17228
+ }
17229
+ }
17230
+ },
17231
+ "delete": {
17232
+ "x-internal": true,
17233
+ "operationId": "deleteSiteDatabase",
17234
+ "tags": [
17235
+ "database"
17236
+ ],
17237
+ "description": "Deletes the database and all associated branches and snapshots for the specified site.",
17238
+ "responses": {
17239
+ "204": {
17240
+ "description": "Deleted"
17241
+ },
17242
+ "default": {
17243
+ "description": "error",
17244
+ "schema": {
17245
+ "type": "object",
17246
+ "required": [
17247
+ "message"
17248
+ ],
17249
+ "properties": {
17250
+ "code": {
17251
+ "type": "integer",
17252
+ "format": "int64"
17253
+ },
17254
+ "message": {
17255
+ "type": "string",
17256
+ "x-nullable": false
17257
+ }
17258
+ }
17259
+ }
17260
+ }
17261
+ }
17262
+ }
17263
+ },
17264
+ "/sites/{site_id}/database/branch": {
17265
+ "parameters": [
17266
+ {
17267
+ "name": "site_id",
17268
+ "type": "string",
17269
+ "in": "path",
17270
+ "required": true
17271
+ }
17272
+ ],
17273
+ "post": {
17274
+ "x-internal": true,
17275
+ "operationId": "createSiteDatabaseBranch",
17276
+ "tags": [
17277
+ "database"
17278
+ ],
17279
+ "description": "Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.",
17280
+ "consumes": [
17281
+ "application/json"
17282
+ ],
17283
+ "parameters": [
17284
+ {
17285
+ "name": "branch",
17286
+ "in": "body",
17287
+ "schema": {
17288
+ "type": "object",
17289
+ "description": "Request body for creating a database branch",
17290
+ "required": [
17291
+ "deploy_id"
17292
+ ],
17293
+ "properties": {
17294
+ "parent_branch_id": {
17295
+ "type": "string",
17296
+ "description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified."
17297
+ },
17298
+ "deploy_id": {
17299
+ "type": "string",
17300
+ "description": "The deploy ID to associate with this branch"
17301
+ }
17302
+ }
17303
+ },
17304
+ "required": true
17305
+ }
17306
+ ],
17307
+ "responses": {
17308
+ "200": {
17309
+ "description": "Branch already exists for this deploy",
17310
+ "schema": {
17311
+ "type": "object",
17312
+ "description": "Response containing the database branch connection string",
17313
+ "properties": {
17314
+ "connection_string": {
17315
+ "type": "string",
17316
+ "description": "The connection string for the database branch"
17317
+ }
17318
+ }
17319
+ }
17320
+ },
17321
+ "201": {
17322
+ "description": "Created",
17323
+ "schema": {
17324
+ "type": "object",
17325
+ "description": "Response containing the database branch connection string",
17326
+ "properties": {
17327
+ "connection_string": {
17328
+ "type": "string",
17329
+ "description": "The connection string for the database branch"
17330
+ }
17331
+ }
17332
+ }
17333
+ },
17334
+ "default": {
17335
+ "description": "error",
17336
+ "schema": {
17337
+ "type": "object",
17338
+ "required": [
17339
+ "message"
17340
+ ],
17341
+ "properties": {
17342
+ "code": {
17343
+ "type": "integer",
17344
+ "format": "int64"
17345
+ },
17346
+ "message": {
17347
+ "type": "string",
17348
+ "x-nullable": false
17349
+ }
17350
+ }
17351
+ }
17352
+ }
17353
+ }
17354
+ }
17355
+ },
17356
+ "/sites/{site_id}/database/branch/{deploy_id}": {
17357
+ "parameters": [
17358
+ {
17359
+ "name": "site_id",
17360
+ "type": "string",
17361
+ "in": "path",
17362
+ "required": true
17363
+ },
17364
+ {
17365
+ "name": "deploy_id",
17366
+ "type": "string",
17367
+ "in": "path",
17368
+ "required": true,
17369
+ "description": "The deploy ID associated with the database branch"
17370
+ }
17371
+ ],
17372
+ "get": {
17373
+ "x-internal": true,
17374
+ "operationId": "getSiteDatabaseBranch",
17375
+ "tags": [
17376
+ "database"
17377
+ ],
17378
+ "description": "Returns the database branch connection string for a specific deploy.",
17379
+ "responses": {
17380
+ "200": {
17381
+ "description": "OK",
17382
+ "schema": {
17383
+ "type": "object",
17384
+ "description": "Response containing the database branch connection string",
17385
+ "properties": {
17386
+ "connection_string": {
17387
+ "type": "string",
17388
+ "description": "The connection string for the database branch"
17389
+ }
17390
+ }
17391
+ }
17392
+ },
17393
+ "404": {
17394
+ "description": "Branch not found for this deploy"
17395
+ },
17396
+ "default": {
17397
+ "description": "error",
17398
+ "schema": {
17399
+ "type": "object",
17400
+ "required": [
17401
+ "message"
17402
+ ],
17403
+ "properties": {
17404
+ "code": {
17405
+ "type": "integer",
17406
+ "format": "int64"
17407
+ },
17408
+ "message": {
17409
+ "type": "string",
17410
+ "x-nullable": false
17411
+ }
17412
+ }
17413
+ }
17414
+ }
17415
+ }
17416
+ },
17417
+ "delete": {
17418
+ "x-internal": true,
17419
+ "operationId": "deleteSiteDatabaseBranch",
17420
+ "tags": [
17421
+ "database"
17422
+ ],
17423
+ "description": "Deletes a database branch associated with a deploy.",
17424
+ "responses": {
17425
+ "204": {
17426
+ "description": "Deleted"
17427
+ },
17428
+ "default": {
17429
+ "description": "error",
17430
+ "schema": {
17431
+ "type": "object",
17432
+ "required": [
17433
+ "message"
17434
+ ],
17435
+ "properties": {
17436
+ "code": {
17437
+ "type": "integer",
17438
+ "format": "int64"
17439
+ },
17440
+ "message": {
17441
+ "type": "string",
17442
+ "x-nullable": false
17443
+ }
17444
+ }
17445
+ }
17446
+ }
17447
+ }
17448
+ }
17449
+ },
17450
+ "/sites/{site_id}/database/snapshot": {
17451
+ "parameters": [
17452
+ {
17453
+ "name": "site_id",
17454
+ "type": "string",
17455
+ "in": "path",
17456
+ "required": true
17457
+ }
17458
+ ],
17459
+ "post": {
17460
+ "x-internal": true,
17461
+ "operationId": "createSiteDatabaseSnapshot",
17462
+ "tags": [
17463
+ "database"
17464
+ ],
17465
+ "description": "Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.",
17466
+ "consumes": [
17467
+ "application/json"
17468
+ ],
17469
+ "parameters": [
17470
+ {
17471
+ "name": "snapshot",
17472
+ "in": "body",
17473
+ "schema": {
17474
+ "type": "object",
17475
+ "description": "Request body for creating a database snapshot",
17476
+ "properties": {
17477
+ "branch_name": {
17478
+ "type": "string",
17479
+ "description": "The name of the branch to snapshot. Defaults to \"production\" if not specified."
17480
+ },
17481
+ "name": {
17482
+ "type": "string",
17483
+ "description": "An optional name for the snapshot"
17484
+ }
17485
+ }
17486
+ }
17487
+ }
17488
+ ],
17489
+ "responses": {
17490
+ "201": {
17491
+ "description": "Created",
17492
+ "schema": {
17493
+ "type": "object",
17494
+ "description": "A point-in-time snapshot of a database branch",
17495
+ "properties": {
17496
+ "id": {
17497
+ "type": "string",
17498
+ "description": "The unique identifier of the snapshot"
17499
+ },
17500
+ "timestamp": {
17501
+ "type": "string",
17502
+ "format": "dateTime",
17503
+ "description": "The timestamp when the snapshot was created"
17504
+ },
17505
+ "source_branch_id": {
17506
+ "type": "string",
17507
+ "description": "The ID of the branch that was snapshotted"
17508
+ }
17509
+ }
17510
+ }
17511
+ },
17512
+ "default": {
17513
+ "description": "error",
17514
+ "schema": {
17515
+ "type": "object",
17516
+ "required": [
17517
+ "message"
17518
+ ],
17519
+ "properties": {
17520
+ "code": {
17521
+ "type": "integer",
17522
+ "format": "int64"
17523
+ },
17524
+ "message": {
17525
+ "type": "string",
17526
+ "x-nullable": false
17527
+ }
17528
+ }
17529
+ }
17530
+ }
17531
+ }
17532
+ }
17533
+ },
17534
+ "/sites/{site_id}/database/snapshots": {
17535
+ "parameters": [
17536
+ {
17537
+ "name": "site_id",
17538
+ "type": "string",
17539
+ "in": "path",
17540
+ "required": true
17541
+ }
17542
+ ],
17543
+ "get": {
17544
+ "x-internal": true,
17545
+ "operationId": "listSiteDatabaseSnapshots",
17546
+ "tags": [
17547
+ "database"
17548
+ ],
17549
+ "description": "Returns all snapshots for the site's database.",
17550
+ "responses": {
17551
+ "200": {
17552
+ "description": "OK",
17553
+ "schema": {
17554
+ "type": "object",
17555
+ "description": "Response containing a list of database snapshots",
17556
+ "properties": {
17557
+ "snapshots": {
17558
+ "type": "array",
17559
+ "items": {
17560
+ "type": "object",
17561
+ "description": "A point-in-time snapshot of a database branch",
17562
+ "properties": {
17563
+ "id": {
17564
+ "type": "string",
17565
+ "description": "The unique identifier of the snapshot"
17566
+ },
17567
+ "timestamp": {
17568
+ "type": "string",
17569
+ "format": "dateTime",
17570
+ "description": "The timestamp when the snapshot was created"
17571
+ },
17572
+ "source_branch_id": {
17573
+ "type": "string",
17574
+ "description": "The ID of the branch that was snapshotted"
17575
+ }
17576
+ }
17577
+ },
17578
+ "description": "List of database snapshots"
17579
+ }
17580
+ }
17581
+ }
17582
+ },
17583
+ "default": {
17584
+ "description": "error",
17585
+ "schema": {
17586
+ "type": "object",
17587
+ "required": [
17588
+ "message"
17589
+ ],
17590
+ "properties": {
17591
+ "code": {
17592
+ "type": "integer",
17593
+ "format": "int64"
17594
+ },
17595
+ "message": {
17596
+ "type": "string",
17597
+ "x-nullable": false
17598
+ }
17599
+ }
17600
+ }
17601
+ }
17602
+ }
17603
+ }
17604
+ },
17605
+ "/sites/{site_id}/database/snapshot/{snapshot_id}": {
17606
+ "parameters": [
17607
+ {
17608
+ "name": "site_id",
17609
+ "type": "string",
17610
+ "in": "path",
17611
+ "required": true
17612
+ },
17613
+ {
17614
+ "name": "snapshot_id",
17615
+ "type": "string",
17616
+ "in": "path",
17617
+ "required": true,
17618
+ "description": "The snapshot ID"
17619
+ }
17620
+ ],
17621
+ "delete": {
17622
+ "x-internal": true,
17623
+ "operationId": "deleteSiteDatabaseSnapshot",
17624
+ "tags": [
17625
+ "database"
17626
+ ],
17627
+ "description": "Deletes a database snapshot.",
17628
+ "responses": {
17629
+ "204": {
17630
+ "description": "Deleted"
17631
+ },
17632
+ "default": {
17633
+ "description": "error",
17634
+ "schema": {
17635
+ "type": "object",
17636
+ "required": [
17637
+ "message"
17638
+ ],
17639
+ "properties": {
17640
+ "code": {
17641
+ "type": "integer",
17642
+ "format": "int64"
17643
+ },
17644
+ "message": {
17645
+ "type": "string",
17646
+ "x-nullable": false
17647
+ }
17648
+ }
17649
+ }
17650
+ }
17651
+ }
17652
+ }
17653
+ },
17654
+ "/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
17655
+ "parameters": [
17656
+ {
17657
+ "name": "site_id",
17658
+ "type": "string",
17659
+ "in": "path",
17660
+ "required": true
17661
+ },
17662
+ {
17663
+ "name": "snapshot_id",
17664
+ "type": "string",
17665
+ "in": "path",
17666
+ "required": true,
17667
+ "description": "The snapshot ID to restore"
17668
+ }
17669
+ ],
17670
+ "post": {
17671
+ "x-internal": true,
17672
+ "operationId": "restoreSiteDatabaseSnapshot",
17673
+ "tags": [
17674
+ "database"
17675
+ ],
17676
+ "description": "Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.",
17677
+ "consumes": [
17678
+ "application/json"
17679
+ ],
17680
+ "parameters": [
17681
+ {
17682
+ "name": "restore",
17683
+ "in": "body",
17684
+ "schema": {
17685
+ "type": "object",
17686
+ "description": "Request body for restoring a database snapshot",
17687
+ "properties": {
17688
+ "branch_name": {
17689
+ "type": "string",
17690
+ "description": "The name of the branch to restore the snapshot to. Defaults to \"production\" if not specified."
17691
+ }
17692
+ }
17693
+ }
17694
+ }
17695
+ ],
17696
+ "responses": {
17697
+ "200": {
17698
+ "description": "OK"
17699
+ },
17700
+ "default": {
17701
+ "description": "error",
17702
+ "schema": {
17703
+ "type": "object",
17704
+ "required": [
17705
+ "message"
17706
+ ],
17707
+ "properties": {
17708
+ "code": {
17709
+ "type": "integer",
17710
+ "format": "int64"
17711
+ },
17712
+ "message": {
17713
+ "type": "string",
17714
+ "x-nullable": false
17715
+ }
17716
+ }
17717
+ }
17718
+ }
17719
+ }
17720
+ }
17105
17721
  }
17106
17722
  },
17107
17723
  "definitions": {
17724
+ "createDatabaseRequest": {
17725
+ "type": "object",
17726
+ "description": "Request body for creating a database",
17727
+ "properties": {
17728
+ "region": {
17729
+ "type": "string",
17730
+ "description": "The region where the database should be created. Defaults to the site's functions region if not specified."
17731
+ }
17732
+ }
17733
+ },
17734
+ "databaseResponse": {
17735
+ "type": "object",
17736
+ "description": "Response containing the database connection string",
17737
+ "properties": {
17738
+ "connection_string": {
17739
+ "type": "string",
17740
+ "description": "The connection string for the database"
17741
+ }
17742
+ }
17743
+ },
17744
+ "createDatabaseBranchRequest": {
17745
+ "type": "object",
17746
+ "description": "Request body for creating a database branch",
17747
+ "required": [
17748
+ "deploy_id"
17749
+ ],
17750
+ "properties": {
17751
+ "parent_branch_id": {
17752
+ "type": "string",
17753
+ "description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified."
17754
+ },
17755
+ "deploy_id": {
17756
+ "type": "string",
17757
+ "description": "The deploy ID to associate with this branch"
17758
+ }
17759
+ }
17760
+ },
17761
+ "databaseBranchResponse": {
17762
+ "type": "object",
17763
+ "description": "Response containing the database branch connection string",
17764
+ "properties": {
17765
+ "connection_string": {
17766
+ "type": "string",
17767
+ "description": "The connection string for the database branch"
17768
+ }
17769
+ }
17770
+ },
17771
+ "createDatabaseSnapshotRequest": {
17772
+ "type": "object",
17773
+ "description": "Request body for creating a database snapshot",
17774
+ "properties": {
17775
+ "branch_name": {
17776
+ "type": "string",
17777
+ "description": "The name of the branch to snapshot. Defaults to \"production\" if not specified."
17778
+ },
17779
+ "name": {
17780
+ "type": "string",
17781
+ "description": "An optional name for the snapshot"
17782
+ }
17783
+ }
17784
+ },
17785
+ "databaseSnapshot": {
17786
+ "type": "object",
17787
+ "description": "A point-in-time snapshot of a database branch",
17788
+ "properties": {
17789
+ "id": {
17790
+ "type": "string",
17791
+ "description": "The unique identifier of the snapshot"
17792
+ },
17793
+ "timestamp": {
17794
+ "type": "string",
17795
+ "format": "dateTime",
17796
+ "description": "The timestamp when the snapshot was created"
17797
+ },
17798
+ "source_branch_id": {
17799
+ "type": "string",
17800
+ "description": "The ID of the branch that was snapshotted"
17801
+ }
17802
+ }
17803
+ },
17804
+ "databaseSnapshotsResponse": {
17805
+ "type": "object",
17806
+ "description": "Response containing a list of database snapshots",
17807
+ "properties": {
17808
+ "snapshots": {
17809
+ "type": "array",
17810
+ "items": {
17811
+ "type": "object",
17812
+ "description": "A point-in-time snapshot of a database branch",
17813
+ "properties": {
17814
+ "id": {
17815
+ "type": "string",
17816
+ "description": "The unique identifier of the snapshot"
17817
+ },
17818
+ "timestamp": {
17819
+ "type": "string",
17820
+ "format": "dateTime",
17821
+ "description": "The timestamp when the snapshot was created"
17822
+ },
17823
+ "source_branch_id": {
17824
+ "type": "string",
17825
+ "description": "The ID of the branch that was snapshotted"
17826
+ }
17827
+ }
17828
+ },
17829
+ "description": "List of database snapshots"
17830
+ }
17831
+ }
17832
+ },
17833
+ "restoreDatabaseSnapshotRequest": {
17834
+ "type": "object",
17835
+ "description": "Request body for restoring a database snapshot",
17836
+ "properties": {
17837
+ "branch_name": {
17838
+ "type": "string",
17839
+ "description": "The name of the branch to restore the snapshot to. Defaults to \"production\" if not specified."
17840
+ }
17841
+ }
17842
+ },
17108
17843
  "DeployValidationsReport": {
17109
17844
  "type": "object",
17110
17845
  "properties": {
@@ -20724,6 +21459,12 @@
20724
21459
  "function"
20725
21460
  ]
20726
21461
  },
21462
+ {
21463
+ "name": "Database",
21464
+ "tags": [
21465
+ "database"
21466
+ ]
21467
+ },
20727
21468
  {
20728
21469
  "name": "Forms",
20729
21470
  "tags": [
@@ -20881,6 +21622,10 @@
20881
21622
  {
20882
21623
  "name": "devServerHook",
20883
21624
  "x-displayName": "Dev server hook"
21625
+ },
21626
+ {
21627
+ "name": "database",
21628
+ "x-displayName": "Database"
20884
21629
  }
20885
21630
  ]
20886
21631
  }
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.46.0",
4
+ "version": "2.47.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [