@netlify/open-api 2.62.0 → 2.63.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/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.62.0",
4
+ "version": "2.63.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/",
@@ -63,6 +63,7 @@
63
63
  "/sites": {
64
64
  "get": {
65
65
  "operationId": "listSites",
66
+ "summary": "List sites",
66
67
  "tags": [
67
68
  "site"
68
69
  ],
@@ -472,6 +473,7 @@
472
473
  },
473
474
  "post": {
474
475
  "operationId": "createSite",
476
+ "summary": "Create a site",
475
477
  "tags": [
476
478
  "site"
477
479
  ],
@@ -1283,6 +1285,7 @@
1283
1285
  ],
1284
1286
  "get": {
1285
1287
  "operationId": "getSite",
1288
+ "summary": "Get a site",
1286
1289
  "tags": [
1287
1290
  "site"
1288
1291
  ],
@@ -1666,6 +1669,7 @@
1666
1669
  },
1667
1670
  "patch": {
1668
1671
  "operationId": "updateSite",
1672
+ "summary": "Update a site",
1669
1673
  "tags": [
1670
1674
  "site"
1671
1675
  ],
@@ -2462,6 +2466,7 @@
2462
2466
  },
2463
2467
  "delete": {
2464
2468
  "operationId": "deleteSite",
2469
+ "summary": "Delete a site",
2465
2470
  "tags": [
2466
2471
  "site"
2467
2472
  ],
@@ -2494,6 +2499,7 @@
2494
2499
  "/sites/{site_id}/ssl": {
2495
2500
  "post": {
2496
2501
  "operationId": "provisionSiteTLSCertificate",
2502
+ "summary": "Provision or update a site's TLS certificate",
2497
2503
  "tags": [
2498
2504
  "sniCertificate"
2499
2505
  ],
@@ -2580,6 +2586,7 @@
2580
2586
  },
2581
2587
  "get": {
2582
2588
  "operationId": "showSiteTLSCertificate",
2589
+ "summary": "Get a site's TLS certificate",
2583
2590
  "tags": [
2584
2591
  "sniCertificate"
2585
2592
  ],
@@ -2646,6 +2653,8 @@
2646
2653
  "/sites/{site_id}/ssl/certificates": {
2647
2654
  "get": {
2648
2655
  "operationId": "getAllCertificates",
2656
+ "summary": "List TLS certificates for a site's domain",
2657
+ "description": "Returns details about the certificates associated with a domain. The site must be using the domain.",
2649
2658
  "tags": [
2650
2659
  "sniCertificate"
2651
2660
  ],
@@ -2711,6 +2720,7 @@
2711
2720
  "environmentVariables"
2712
2721
  ],
2713
2722
  "operationId": "getEnvVars",
2723
+ "summary": "List environment variables for a team or site",
2714
2724
  "parameters": [
2715
2725
  {
2716
2726
  "name": "account_id",
@@ -2886,6 +2896,7 @@
2886
2896
  "environmentVariables"
2887
2897
  ],
2888
2898
  "operationId": "createEnvVars",
2899
+ "summary": "Create environment variables",
2889
2900
  "description": "Creates new environment variables. Granular scopes are available on Pro plans and above.",
2890
2901
  "parameters": [
2891
2902
  {
@@ -3104,6 +3115,7 @@
3104
3115
  "environmentVariables"
3105
3116
  ],
3106
3117
  "operationId": "getSiteEnvVars",
3118
+ "summary": "List environment variables for a site",
3107
3119
  "parameters": [
3108
3120
  {
3109
3121
  "name": "context_name",
@@ -3274,6 +3286,7 @@
3274
3286
  "environmentVariables"
3275
3287
  ],
3276
3288
  "operationId": "getEnvVar",
3289
+ "summary": "Get an environment variable",
3277
3290
  "parameters": [
3278
3291
  {
3279
3292
  "name": "account_id",
@@ -3425,6 +3438,7 @@
3425
3438
  "environmentVariables"
3426
3439
  ],
3427
3440
  "operationId": "updateEnvVar",
3441
+ "summary": "Update an environment variable",
3428
3442
  "description": "Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.",
3429
3443
  "parameters": [
3430
3444
  {
@@ -3642,6 +3656,7 @@
3642
3656
  "environmentVariables"
3643
3657
  ],
3644
3658
  "operationId": "setEnvVarValue",
3659
+ "summary": "Set a value on an environment variable",
3645
3660
  "description": "Updates or creates a new value for an existing environment variable.",
3646
3661
  "parameters": [
3647
3662
  {
@@ -3822,6 +3837,7 @@
3822
3837
  "environmentVariables"
3823
3838
  ],
3824
3839
  "operationId": "deleteEnvVar",
3840
+ "summary": "Delete an environment variable",
3825
3841
  "parameters": [
3826
3842
  {
3827
3843
  "name": "account_id",
@@ -3878,6 +3894,7 @@
3878
3894
  "environmentVariables"
3879
3895
  ],
3880
3896
  "operationId": "deleteEnvVarValue",
3897
+ "summary": "Delete an environment variable value",
3881
3898
  "parameters": [
3882
3899
  {
3883
3900
  "name": "account_id",
@@ -3938,6 +3955,7 @@
3938
3955
  "/sites/{site_id}/functions": {
3939
3956
  "get": {
3940
3957
  "operationId": "searchSiteFunctions",
3958
+ "summary": "Search a site's functions",
3941
3959
  "tags": [
3942
3960
  "function"
3943
3961
  ],
@@ -4014,6 +4032,7 @@
4014
4032
  "/sites/{site_id}/forms": {
4015
4033
  "get": {
4016
4034
  "operationId": "listSiteForms",
4035
+ "summary": "List a site's forms",
4017
4036
  "tags": [
4018
4037
  "form"
4019
4038
  ],
@@ -4091,6 +4110,8 @@
4091
4110
  "/sites/{site_id}/forms/{form_id}": {
4092
4111
  "delete": {
4093
4112
  "operationId": "deleteSiteForm",
4113
+ "summary": "Delete a form",
4114
+ "description": "Deletes a form and all of its submissions.",
4094
4115
  "tags": [
4095
4116
  "form"
4096
4117
  ],
@@ -4137,6 +4158,7 @@
4137
4158
  "/sites/{site_id}/submissions": {
4138
4159
  "get": {
4139
4160
  "operationId": "listSiteSubmissions",
4161
+ "summary": "List a site's form submissions",
4140
4162
  "tags": [
4141
4163
  "submission"
4142
4164
  ],
@@ -4237,6 +4259,7 @@
4237
4259
  "/sites/{site_id}/files": {
4238
4260
  "get": {
4239
4261
  "operationId": "listSiteFiles",
4262
+ "summary": "List a site's files",
4240
4263
  "tags": [
4241
4264
  "file"
4242
4265
  ],
@@ -4309,6 +4332,8 @@
4309
4332
  ],
4310
4333
  "get": {
4311
4334
  "operationId": "listSiteAssets",
4335
+ "summary": "List a site's assets",
4336
+ "description": "_This endpoint is only available to certain sites._",
4312
4337
  "tags": [
4313
4338
  "asset"
4314
4339
  ],
@@ -4386,6 +4411,8 @@
4386
4411
  },
4387
4412
  "post": {
4388
4413
  "operationId": "createSiteAsset",
4414
+ "summary": "Create a site asset",
4415
+ "description": "_This endpoint is only available to certain sites._",
4389
4416
  "tags": [
4390
4417
  "asset"
4391
4418
  ],
@@ -4521,6 +4548,8 @@
4521
4548
  ],
4522
4549
  "get": {
4523
4550
  "operationId": "getSiteAssetInfo",
4551
+ "summary": "Get a site asset",
4552
+ "description": "_This endpoint is only available to certain sites._",
4524
4553
  "tags": [
4525
4554
  "asset"
4526
4555
  ],
@@ -4595,6 +4624,8 @@
4595
4624
  },
4596
4625
  "put": {
4597
4626
  "operationId": "updateSiteAsset",
4627
+ "summary": "Update a site asset's state",
4628
+ "description": "_This endpoint is only available to certain sites._",
4598
4629
  "tags": [
4599
4630
  "asset"
4600
4631
  ],
@@ -4677,6 +4708,8 @@
4677
4708
  },
4678
4709
  "delete": {
4679
4710
  "operationId": "deleteSiteAsset",
4711
+ "summary": "Delete a site asset",
4712
+ "description": "_This endpoint is only available to certain sites._",
4680
4713
  "tags": [
4681
4714
  "asset"
4682
4715
  ],
@@ -4723,6 +4756,8 @@
4723
4756
  ],
4724
4757
  "get": {
4725
4758
  "operationId": "getSiteAssetPublicSignature",
4759
+ "summary": "Get a site asset's URL",
4760
+ "description": "Returns the URL of the asset. If the asset isn't publicly visible, returns a signed URL. _This endpoint is only available to certain sites._",
4726
4761
  "tags": [
4727
4762
  "assetPublicSignature"
4728
4763
  ],
@@ -4763,6 +4798,7 @@
4763
4798
  "/sites/{site_id}/files/{file_path}": {
4764
4799
  "get": {
4765
4800
  "operationId": "getSiteFileByPathName",
4801
+ "summary": "Get a site file by path",
4766
4802
  "tags": [
4767
4803
  "file"
4768
4804
  ],
@@ -4830,6 +4866,7 @@
4830
4866
  "/purge": {
4831
4867
  "post": {
4832
4868
  "operationId": "purgeCache",
4869
+ "summary": "Purge cached content",
4833
4870
  "description": "Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.",
4834
4871
  "tags": [
4835
4872
  "purge"
@@ -4885,6 +4922,7 @@
4885
4922
  ],
4886
4923
  "get": {
4887
4924
  "operationId": "listSiteSnippets",
4925
+ "summary": "List a site's snippets",
4888
4926
  "tags": [
4889
4927
  "snippet"
4890
4928
  ],
@@ -4945,6 +4983,7 @@
4945
4983
  },
4946
4984
  "post": {
4947
4985
  "operationId": "createSiteSnippet",
4986
+ "summary": "Create a snippet",
4948
4987
  "tags": [
4949
4988
  "snippet"
4950
4989
  ],
@@ -5055,6 +5094,7 @@
5055
5094
  ],
5056
5095
  "get": {
5057
5096
  "operationId": "getSiteSnippet",
5097
+ "summary": "Get a snippet",
5058
5098
  "tags": [
5059
5099
  "snippet"
5060
5100
  ],
@@ -5112,6 +5152,7 @@
5112
5152
  },
5113
5153
  "put": {
5114
5154
  "operationId": "updateSiteSnippet",
5155
+ "summary": "Update a snippet",
5115
5156
  "tags": [
5116
5157
  "snippet"
5117
5158
  ],
@@ -5179,6 +5220,7 @@
5179
5220
  },
5180
5221
  "delete": {
5181
5222
  "operationId": "deleteSiteSnippet",
5223
+ "summary": "Delete a snippet",
5182
5224
  "tags": [
5183
5225
  "snippet"
5184
5226
  ],
@@ -5219,6 +5261,7 @@
5219
5261
  ],
5220
5262
  "get": {
5221
5263
  "operationId": "getSiteMetadata",
5264
+ "summary": "Get a site's metadata",
5222
5265
  "tags": [
5223
5266
  "metadata"
5224
5267
  ],
@@ -5252,6 +5295,7 @@
5252
5295
  },
5253
5296
  "put": {
5254
5297
  "operationId": "updateSiteMetadata",
5298
+ "summary": "Update a site's metadata",
5255
5299
  "tags": [
5256
5300
  "metadata"
5257
5301
  ],
@@ -5302,6 +5346,7 @@
5302
5346
  ],
5303
5347
  "get": {
5304
5348
  "operationId": "listSiteBuildHooks",
5349
+ "summary": "List a site's build hooks",
5305
5350
  "tags": [
5306
5351
  "buildHook"
5307
5352
  ],
@@ -5359,6 +5404,7 @@
5359
5404
  },
5360
5405
  "post": {
5361
5406
  "operationId": "createSiteBuildHook",
5407
+ "summary": "Create a build hook",
5362
5408
  "tags": [
5363
5409
  "buildHook"
5364
5410
  ],
@@ -5450,6 +5496,7 @@
5450
5496
  ],
5451
5497
  "get": {
5452
5498
  "operationId": "getSiteBuildHook",
5499
+ "summary": "Get a build hook",
5453
5500
  "tags": [
5454
5501
  "buildHook"
5455
5502
  ],
@@ -5504,6 +5551,7 @@
5504
5551
  },
5505
5552
  "put": {
5506
5553
  "operationId": "updateSiteBuildHook",
5554
+ "summary": "Update a build hook",
5507
5555
  "tags": [
5508
5556
  "buildHook"
5509
5557
  ],
@@ -5555,6 +5603,7 @@
5555
5603
  },
5556
5604
  "delete": {
5557
5605
  "operationId": "deleteSiteBuildHook",
5606
+ "summary": "Delete a build hook",
5558
5607
  "tags": [
5559
5608
  "buildHook"
5560
5609
  ],
@@ -5637,6 +5686,7 @@
5637
5686
  ],
5638
5687
  "get": {
5639
5688
  "operationId": "listSiteDeploys",
5689
+ "summary": "List a site's deploys",
5640
5690
  "tags": [
5641
5691
  "deploy"
5642
5692
  ],
@@ -5837,6 +5887,7 @@
5837
5887
  },
5838
5888
  "post": {
5839
5889
  "operationId": "createSiteDeploy",
5890
+ "summary": "Create a deploy",
5840
5891
  "tags": [
5841
5892
  "deploy"
5842
5893
  ],
@@ -5957,6 +6008,26 @@
5957
6008
  "runtime_version": {
5958
6009
  "type": "string",
5959
6010
  "description": "The runtime version the server was built for, such as `nodejs24.x`. A\ndefault version is used when absent.\n"
6011
+ },
6012
+ "scale": {
6013
+ "type": "object",
6014
+ "description": "How many instances of the server run.",
6015
+ "properties": {
6016
+ "min": {
6017
+ "type": "integer",
6018
+ "format": "int64",
6019
+ "minimum": 0,
6020
+ "x-nullable": true,
6021
+ "description": "The minimum number of instances the server keeps running. Defaults to 0\nwhen absent.\n"
6022
+ },
6023
+ "max": {
6024
+ "type": "integer",
6025
+ "format": "int64",
6026
+ "minimum": 1,
6027
+ "x-nullable": true,
6028
+ "description": "The maximum number of instances the server scales to. Defaults to the\nhighest the account's plan allows when absent.\n"
6029
+ }
6030
+ }
5960
6031
  }
5961
6032
  }
5962
6033
  },
@@ -6351,6 +6422,7 @@
6351
6422
  "/sites/{site_id}/deploys/{deploy_id}": {
6352
6423
  "get": {
6353
6424
  "operationId": "getSiteDeploy",
6425
+ "summary": "Get a site's deploy",
6354
6426
  "tags": [
6355
6427
  "deploy"
6356
6428
  ],
@@ -6546,6 +6618,7 @@
6546
6618
  },
6547
6619
  "put": {
6548
6620
  "operationId": "updateSiteDeploy",
6621
+ "summary": "Update a deploy",
6549
6622
  "tags": [
6550
6623
  "deploy"
6551
6624
  ],
@@ -6678,6 +6751,26 @@
6678
6751
  "runtime_version": {
6679
6752
  "type": "string",
6680
6753
  "description": "The runtime version the server was built for, such as `nodejs24.x`. A\ndefault version is used when absent.\n"
6754
+ },
6755
+ "scale": {
6756
+ "type": "object",
6757
+ "description": "How many instances of the server run.",
6758
+ "properties": {
6759
+ "min": {
6760
+ "type": "integer",
6761
+ "format": "int64",
6762
+ "minimum": 0,
6763
+ "x-nullable": true,
6764
+ "description": "The minimum number of instances the server keeps running. Defaults to 0\nwhen absent.\n"
6765
+ },
6766
+ "max": {
6767
+ "type": "integer",
6768
+ "format": "int64",
6769
+ "minimum": 1,
6770
+ "x-nullable": true,
6771
+ "description": "The maximum number of instances the server scales to. Defaults to the\nhighest the account's plan allows when absent.\n"
6772
+ }
6773
+ }
6681
6774
  }
6682
6775
  }
6683
6776
  },
@@ -7070,6 +7163,8 @@
7070
7163
  },
7071
7164
  "delete": {
7072
7165
  "operationId": "deleteSiteDeploy",
7166
+ "summary": "Delete a site's deploy",
7167
+ "description": "Marks a deploy for deletion.",
7073
7168
  "tags": [
7074
7169
  "deploy"
7075
7170
  ],
@@ -7116,6 +7211,7 @@
7116
7211
  "/deploys/{deploy_id}/cancel": {
7117
7212
  "post": {
7118
7213
  "operationId": "cancelSiteDeploy",
7214
+ "summary": "Cancel a deploy",
7119
7215
  "tags": [
7120
7216
  "deploy"
7121
7217
  ],
@@ -7307,6 +7403,8 @@
7307
7403
  "/sites/{site_id}/deploys/{deploy_id}/restore": {
7308
7404
  "post": {
7309
7405
  "operationId": "restoreSiteDeploy",
7406
+ "summary": "Restore a previous deploy",
7407
+ "description": "Publishes a previous deploy of the site.",
7310
7408
  "tags": [
7311
7409
  "deploy"
7312
7410
  ],
@@ -7512,6 +7610,7 @@
7512
7610
  ],
7513
7611
  "get": {
7514
7612
  "operationId": "listSiteBuilds",
7613
+ "summary": "List a site's builds",
7515
7614
  "tags": [
7516
7615
  "build"
7517
7616
  ],
@@ -7585,6 +7684,7 @@
7585
7684
  },
7586
7685
  "post": {
7587
7686
  "operationId": "createSiteBuild",
7687
+ "summary": "Start a build",
7588
7688
  "tags": [
7589
7689
  "build"
7590
7690
  ],
@@ -7727,6 +7827,7 @@
7727
7827
  ],
7728
7828
  "get": {
7729
7829
  "operationId": "listSiteDeployedBranches",
7830
+ "summary": "List a site's deployed branches",
7730
7831
  "tags": [
7731
7832
  "deployedBranch"
7732
7833
  ],
@@ -7793,6 +7894,7 @@
7793
7894
  ],
7794
7895
  "put": {
7795
7896
  "operationId": "unlinkSiteRepo",
7897
+ "summary": "Unlink a site's repository",
7796
7898
  "tags": [
7797
7899
  "site"
7798
7900
  ],
@@ -8162,6 +8264,7 @@
8162
8264
  ],
8163
8265
  "put": {
8164
8266
  "operationId": "enableSite",
8267
+ "summary": "Enable a site",
8165
8268
  "tags": [
8166
8269
  "site"
8167
8270
  ],
@@ -8222,6 +8325,7 @@
8222
8325
  ],
8223
8326
  "put": {
8224
8327
  "operationId": "disableSite",
8328
+ "summary": "Disable a site",
8225
8329
  "tags": [
8226
8330
  "site"
8227
8331
  ],
@@ -8272,6 +8376,7 @@
8272
8376
  ],
8273
8377
  "get": {
8274
8378
  "operationId": "getSiteBuild",
8379
+ "summary": "Get a build",
8275
8380
  "tags": [
8276
8381
  "build"
8277
8382
  ],
@@ -8362,6 +8467,7 @@
8362
8467
  ],
8363
8468
  "post": {
8364
8469
  "operationId": "updateSiteBuildLog",
8470
+ "summary": "Add a message to a build log",
8365
8471
  "tags": [
8366
8472
  "buildLogMsg"
8367
8473
  ],
@@ -8420,6 +8526,7 @@
8420
8526
  ],
8421
8527
  "post": {
8422
8528
  "operationId": "notifyBuildStart",
8529
+ "summary": "Mark a build as started",
8423
8530
  "tags": [
8424
8531
  "build"
8425
8532
  ],
@@ -8460,6 +8567,8 @@
8460
8567
  ],
8461
8568
  "get": {
8462
8569
  "operationId": "getAccountBuildStatus",
8570
+ "summary": "Get a team's build status",
8571
+ "description": "Returns the team's counts of active, concurrency-pending, and enqueued builds, and its build minutes usage.",
8463
8572
  "tags": [
8464
8573
  "build"
8465
8574
  ],
@@ -8552,6 +8661,7 @@
8552
8661
  ],
8553
8662
  "get": {
8554
8663
  "operationId": "getDNSForSite",
8664
+ "summary": "Get a site's DNS configuration",
8555
8665
  "tags": [
8556
8666
  "dnsZone"
8557
8667
  ],
@@ -8689,6 +8799,8 @@
8689
8799
  },
8690
8800
  "put": {
8691
8801
  "operationId": "configureDNSForSite",
8802
+ "summary": "Configure a site's DNS",
8803
+ "description": "Creates any missing DNS zones and records for the site's custom domain and domain aliases. This usually runs automatically when the custom domain is set.",
8692
8804
  "tags": [
8693
8805
  "dnsZone"
8694
8806
  ],
@@ -8836,6 +8948,8 @@
8836
8948
  ],
8837
8949
  "put": {
8838
8950
  "operationId": "rollbackSiteDeploy",
8951
+ "summary": "Roll back a site's production deploy",
8952
+ "description": "Rolls back the production deploy to the deploy referenced by its `rollback_id`. Does nothing if the current production deploy has no `rollback_id`.",
8839
8953
  "tags": [
8840
8954
  "deploy"
8841
8955
  ],
@@ -8868,6 +8982,7 @@
8868
8982
  "/deploys/{deploy_id}": {
8869
8983
  "get": {
8870
8984
  "operationId": "getDeploy",
8985
+ "summary": "Get a deploy",
8871
8986
  "tags": [
8872
8987
  "deploy"
8873
8988
  ],
@@ -9057,6 +9172,8 @@
9057
9172
  },
9058
9173
  "delete": {
9059
9174
  "operationId": "deleteDeploy",
9175
+ "summary": "Delete a deploy",
9176
+ "description": "Marks a deploy for deletion.",
9060
9177
  "tags": [
9061
9178
  "deploy"
9062
9179
  ],
@@ -9097,6 +9214,7 @@
9097
9214
  "/deploys/{deploy_id}/validations_report": {
9098
9215
  "patch": {
9099
9216
  "operationId": "updateDeployValidations",
9217
+ "summary": "Update a deploy's validations report",
9100
9218
  "tags": [
9101
9219
  "deploy"
9102
9220
  ],
@@ -9165,6 +9283,8 @@
9165
9283
  "/deploys/{deploy_id}/lock": {
9166
9284
  "post": {
9167
9285
  "operationId": "lockDeploy",
9286
+ "summary": "Lock a deploy",
9287
+ "description": "Locks a deploy so that subsequent deploys are built but not published. If the deploy is not the site's published deploy, locking publishes it first. When publishing is gated, the publish and lock are queued and the API responds with 202 Accepted and the deploy; poll `getDeploy` to follow it.",
9168
9288
  "tags": [
9169
9289
  "deploy"
9170
9290
  ],
@@ -9356,6 +9476,7 @@
9356
9476
  "/deploys/{deploy_id}/unlock": {
9357
9477
  "post": {
9358
9478
  "operationId": "unlockDeploy",
9479
+ "summary": "Unlock a deploy",
9359
9480
  "tags": [
9360
9481
  "deploy"
9361
9482
  ],
@@ -9547,6 +9668,7 @@
9547
9668
  "/deploys/{deploy_id}/files/{path}": {
9548
9669
  "put": {
9549
9670
  "operationId": "uploadDeployFile",
9671
+ "summary": "Upload a deploy file",
9550
9672
  "tags": [
9551
9673
  "file"
9552
9674
  ],
@@ -9631,6 +9753,7 @@
9631
9753
  "/deploys/{deploy_id}/functions/{name}": {
9632
9754
  "put": {
9633
9755
  "operationId": "uploadDeployFunction",
9756
+ "summary": "Upload a deploy function",
9634
9757
  "tags": [
9635
9758
  "function"
9636
9759
  ],
@@ -9731,6 +9854,7 @@
9731
9854
  "/deploys/{deploy_id}/server/{code_sha}": {
9732
9855
  "put": {
9733
9856
  "operationId": "uploadDeployServer",
9857
+ "summary": "Upload a deploy's Netlify Server bundle",
9734
9858
  "tags": [
9735
9859
  "deploy"
9736
9860
  ],
@@ -9800,6 +9924,7 @@
9800
9924
  "/deploys/{deploy_id}/edge_functions/{code_sha}": {
9801
9925
  "put": {
9802
9926
  "operationId": "uploadDeployEdgeFunction",
9927
+ "summary": "Upload a deploy's edge functions bundle",
9803
9928
  "tags": [
9804
9929
  "edgeFunction"
9805
9930
  ],
@@ -9864,6 +9989,7 @@
9864
9989
  "put": {
9865
9990
  "x-internal": true,
9866
9991
  "operationId": "updatePlugin",
9992
+ "summary": "Update a site's build plugin",
9867
9993
  "tags": [
9868
9994
  "x-internal"
9869
9995
  ],
@@ -9935,6 +10061,7 @@
9935
10061
  "get": {
9936
10062
  "x-internal": true,
9937
10063
  "operationId": "getLatestPluginRuns",
10064
+ "summary": "List a site's latest build plugin runs",
9938
10065
  "tags": [
9939
10066
  "x-internal"
9940
10067
  ],
@@ -10032,6 +10159,7 @@
10032
10159
  "post": {
10033
10160
  "x-internal": true,
10034
10161
  "operationId": "createPluginRun",
10162
+ "summary": "Create a build plugin run",
10035
10163
  "tags": [
10036
10164
  "x-internal"
10037
10165
  ],
@@ -10141,6 +10269,7 @@
10141
10269
  "/forms/{form_id}/submissions": {
10142
10270
  "get": {
10143
10271
  "operationId": "listFormSubmissions",
10272
+ "summary": "List a form's submissions",
10144
10273
  "tags": [
10145
10274
  "submission"
10146
10275
  ],
@@ -10241,6 +10370,8 @@
10241
10370
  "/hooks": {
10242
10371
  "get": {
10243
10372
  "operationId": "listHooksBySiteId",
10373
+ "summary": "List a site's outgoing hooks",
10374
+ "description": "Returns the outgoing hooks for a site. Pass `form_id` or `event` to filter the results.",
10244
10375
  "tags": [
10245
10376
  "hook"
10246
10377
  ],
@@ -10250,6 +10381,18 @@
10250
10381
  "in": "query",
10251
10382
  "type": "string",
10252
10383
  "required": true
10384
+ },
10385
+ {
10386
+ "name": "form_id",
10387
+ "in": "query",
10388
+ "type": "string",
10389
+ "description": "Only return hooks attached to this form."
10390
+ },
10391
+ {
10392
+ "name": "event",
10393
+ "in": "query",
10394
+ "type": "string",
10395
+ "description": "Only return hooks for this event name."
10253
10396
  }
10254
10397
  ],
10255
10398
  "responses": {
@@ -10313,6 +10456,7 @@
10313
10456
  },
10314
10457
  "post": {
10315
10458
  "operationId": "createHookBySiteId",
10459
+ "summary": "Create an outgoing hook",
10316
10460
  "tags": [
10317
10461
  "hook"
10318
10462
  ],
@@ -10431,6 +10575,7 @@
10431
10575
  ],
10432
10576
  "get": {
10433
10577
  "operationId": "getHook",
10578
+ "summary": "Get an outgoing hook",
10434
10579
  "tags": [
10435
10580
  "hook"
10436
10581
  ],
@@ -10492,6 +10637,7 @@
10492
10637
  },
10493
10638
  "put": {
10494
10639
  "operationId": "updateHook",
10640
+ "summary": "Update an outgoing hook",
10495
10641
  "tags": [
10496
10642
  "hook"
10497
10643
  ],
@@ -10591,6 +10737,7 @@
10591
10737
  },
10592
10738
  "delete": {
10593
10739
  "operationId": "deleteHook",
10740
+ "summary": "Delete an outgoing hook",
10594
10741
  "tags": [
10595
10742
  "hook"
10596
10743
  ],
@@ -10612,6 +10759,8 @@
10612
10759
  ],
10613
10760
  "post": {
10614
10761
  "operationId": "enableHook",
10762
+ "summary": "Re-enable an outgoing hook",
10763
+ "description": "Re-enables an outgoing hook that was disabled after repeated delivery errors.",
10615
10764
  "tags": [
10616
10765
  "hook"
10617
10766
  ],
@@ -10675,9 +10824,19 @@
10675
10824
  "/hooks/types": {
10676
10825
  "get": {
10677
10826
  "operationId": "listHookTypes",
10827
+ "summary": "List outgoing hook types",
10828
+ "description": "Returns the available outgoing hook types. When `site_id` is given, returns only the types available to that site.",
10678
10829
  "tags": [
10679
10830
  "hookType"
10680
10831
  ],
10832
+ "parameters": [
10833
+ {
10834
+ "name": "site_id",
10835
+ "in": "query",
10836
+ "type": "string",
10837
+ "description": "Only return the hook types available to this site."
10838
+ }
10839
+ ],
10681
10840
  "responses": {
10682
10841
  "200": {
10683
10842
  "description": "OK",
@@ -10730,6 +10889,7 @@
10730
10889
  "/oauth/tickets": {
10731
10890
  "post": {
10732
10891
  "operationId": "createTicket",
10892
+ "summary": "Create an OAuth ticket",
10733
10893
  "tags": [
10734
10894
  "ticket"
10735
10895
  ],
@@ -10838,6 +10998,7 @@
10838
10998
  "/oauth/tickets/{ticket_id}": {
10839
10999
  "get": {
10840
11000
  "operationId": "showTicket",
11001
+ "summary": "Get an OAuth ticket",
10841
11002
  "tags": [
10842
11003
  "ticket"
10843
11004
  ],
@@ -10896,6 +11057,7 @@
10896
11057
  "/oauth/tickets/{ticket_id}/exchange": {
10897
11058
  "post": {
10898
11059
  "operationId": "exchangeTicket",
11060
+ "summary": "Exchange an OAuth ticket for an access token",
10899
11061
  "tags": [
10900
11062
  "accessToken"
10901
11063
  ],
@@ -10957,6 +11119,7 @@
10957
11119
  "/deploy_keys": {
10958
11120
  "get": {
10959
11121
  "operationId": "listDeployKeys",
11122
+ "summary": "List deploy keys",
10960
11123
  "tags": [
10961
11124
  "deployKey"
10962
11125
  ],
@@ -11005,6 +11168,7 @@
11005
11168
  },
11006
11169
  "post": {
11007
11170
  "operationId": "createDeployKey",
11171
+ "summary": "Create a deploy key",
11008
11172
  "tags": [
11009
11173
  "deployKey"
11010
11174
  ],
@@ -11063,6 +11227,7 @@
11063
11227
  ],
11064
11228
  "get": {
11065
11229
  "operationId": "getDeployKey",
11230
+ "summary": "Get a deploy key",
11066
11231
  "tags": [
11067
11232
  "deployKey"
11068
11233
  ],
@@ -11108,6 +11273,7 @@
11108
11273
  },
11109
11274
  "delete": {
11110
11275
  "operationId": "deleteDeployKey",
11276
+ "summary": "Delete a deploy key",
11111
11277
  "tags": [
11112
11278
  "deployKey"
11113
11279
  ],
@@ -11140,6 +11306,7 @@
11140
11306
  "/{account_slug}/sites": {
11141
11307
  "post": {
11142
11308
  "operationId": "createSiteInTeam",
11309
+ "summary": "Create a site in a team",
11143
11310
  "tags": [
11144
11311
  "site"
11145
11312
  ],
@@ -11946,6 +12113,7 @@
11946
12113
  },
11947
12114
  "get": {
11948
12115
  "operationId": "listSitesForAccount",
12116
+ "summary": "List a team's sites",
11949
12117
  "tags": [
11950
12118
  "site"
11951
12119
  ],
@@ -12361,6 +12529,7 @@
12361
12529
  ],
12362
12530
  "get": {
12363
12531
  "operationId": "listMembersForAccount",
12532
+ "summary": "List a team's members",
12364
12533
  "tags": [
12365
12534
  "member"
12366
12535
  ],
@@ -12414,6 +12583,7 @@
12414
12583
  },
12415
12584
  "post": {
12416
12585
  "operationId": "addMemberToAccount",
12586
+ "summary": "Add a member to a team",
12417
12587
  "tags": [
12418
12588
  "member"
12419
12589
  ],
@@ -12510,6 +12680,7 @@
12510
12680
  ],
12511
12681
  "get": {
12512
12682
  "operationId": "getAccountMember",
12683
+ "summary": "Get a team member",
12513
12684
  "tags": [
12514
12685
  "member"
12515
12686
  ],
@@ -12560,6 +12731,7 @@
12560
12731
  },
12561
12732
  "put": {
12562
12733
  "operationId": "updateAccountMember",
12734
+ "summary": "Update a team member",
12563
12735
  "tags": [
12564
12736
  "member"
12565
12737
  ],
@@ -12648,6 +12820,7 @@
12648
12820
  },
12649
12821
  "delete": {
12650
12822
  "operationId": "removeAccountMember",
12823
+ "summary": "Remove a team member",
12651
12824
  "tags": [
12652
12825
  "member"
12653
12826
  ],
@@ -12680,6 +12853,7 @@
12680
12853
  "/billing/payment_methods": {
12681
12854
  "get": {
12682
12855
  "operationId": "listPaymentMethodsForUser",
12856
+ "summary": "List payment methods",
12683
12857
  "tags": [
12684
12858
  "paymentMethod"
12685
12859
  ],
@@ -12754,6 +12928,7 @@
12754
12928
  "/accounts/types": {
12755
12929
  "get": {
12756
12930
  "operationId": "listAccountTypesForUser",
12931
+ "summary": "List plans available for new teams",
12757
12932
  "tags": [
12758
12933
  "accountType"
12759
12934
  ],
@@ -12818,6 +12993,7 @@
12818
12993
  "/accounts": {
12819
12994
  "get": {
12820
12995
  "operationId": "listAccountsForUser",
12996
+ "summary": "List the current user's teams",
12821
12997
  "tags": [
12822
12998
  "accountMembership"
12823
12999
  ],
@@ -12944,6 +13120,7 @@
12944
13120
  },
12945
13121
  "post": {
12946
13122
  "operationId": "createAccount",
13123
+ "summary": "Create a team",
12947
13124
  "tags": [
12948
13125
  "accountMembership"
12949
13126
  ],
@@ -13104,6 +13281,7 @@
13104
13281
  ],
13105
13282
  "get": {
13106
13283
  "operationId": "getAccount",
13284
+ "summary": "Get a team",
13107
13285
  "tags": [
13108
13286
  "accountMembership"
13109
13287
  ],
@@ -13219,6 +13397,7 @@
13219
13397
  },
13220
13398
  "put": {
13221
13399
  "operationId": "updateAccount",
13400
+ "summary": "Update a team",
13222
13401
  "tags": [
13223
13402
  "accountMembership"
13224
13403
  ],
@@ -13366,6 +13545,7 @@
13366
13545
  },
13367
13546
  "delete": {
13368
13547
  "operationId": "cancelAccount",
13548
+ "summary": "Cancel a team",
13369
13549
  "tags": [
13370
13550
  "accountMembership"
13371
13551
  ],
@@ -13406,6 +13586,7 @@
13406
13586
  ],
13407
13587
  "get": {
13408
13588
  "operationId": "listAccountAuditEvents",
13589
+ "summary": "List a team's audit log events",
13409
13590
  "tags": [
13410
13591
  "auditLog"
13411
13592
  ],
@@ -13505,6 +13686,7 @@
13505
13686
  "/agent_runners": {
13506
13687
  "get": {
13507
13688
  "operationId": "listAgentRunners",
13689
+ "summary": "List a site's agent runs",
13508
13690
  "tags": [
13509
13691
  "agentRunner"
13510
13692
  ],
@@ -13727,6 +13909,7 @@
13727
13909
  },
13728
13910
  "post": {
13729
13911
  "operationId": "createAgentRunner",
13912
+ "summary": "Start an agent run",
13730
13913
  "tags": [
13731
13914
  "agentRunner"
13732
13915
  ],
@@ -13946,6 +14129,7 @@
13946
14129
  ],
13947
14130
  "post": {
13948
14131
  "operationId": "createSiteAgentRunner",
14132
+ "summary": "Start an agent run on a site",
13949
14133
  "tags": [
13950
14134
  "agentRunner"
13951
14135
  ],
@@ -14307,6 +14491,8 @@
14307
14491
  "post": {
14308
14492
  "x-internal": true,
14309
14493
  "operationId": "createAgentRunnerUploadUrl",
14494
+ "summary": "Create an upload URL for agent run files",
14495
+ "description": "Returns a presigned URL for uploading a file that agent run sessions can use, and the file's storage key.",
14310
14496
  "tags": [
14311
14497
  "agentRunner"
14312
14498
  ],
@@ -14332,7 +14518,24 @@
14332
14518
  ],
14333
14519
  "responses": {
14334
14520
  "200": {
14335
- "description": "OK"
14521
+ "description": "OK",
14522
+ "schema": {
14523
+ "type": "object",
14524
+ "required": [
14525
+ "upload_url",
14526
+ "file_key"
14527
+ ],
14528
+ "properties": {
14529
+ "upload_url": {
14530
+ "type": "string",
14531
+ "description": "Presigned URL to upload the file to with a PUT request. Expires after one hour."
14532
+ },
14533
+ "file_key": {
14534
+ "type": "string",
14535
+ "description": "Storage key of the uploaded file."
14536
+ }
14537
+ }
14538
+ }
14336
14539
  },
14337
14540
  "400": {
14338
14541
  "description": "Bad Request"
@@ -14373,6 +14576,7 @@
14373
14576
  ],
14374
14577
  "get": {
14375
14578
  "operationId": "getAgentRunner",
14579
+ "summary": "Get an agent run",
14376
14580
  "tags": [
14377
14581
  "agentRunner"
14378
14582
  ],
@@ -14524,6 +14728,7 @@
14524
14728
  },
14525
14729
  "patch": {
14526
14730
  "operationId": "updateAgentRunner",
14731
+ "summary": "Update an agent run",
14527
14732
  "tags": [
14528
14733
  "agentRunner"
14529
14734
  ],
@@ -14675,6 +14880,7 @@
14675
14880
  },
14676
14881
  "delete": {
14677
14882
  "operationId": "deleteAgentRunner",
14883
+ "summary": "Stop an agent run (alias)",
14678
14884
  "tags": [
14679
14885
  "hiddenAgentRunner"
14680
14886
  ],
@@ -14716,6 +14922,7 @@
14716
14922
  ],
14717
14923
  "post": {
14718
14924
  "operationId": "stopAgentRunner",
14925
+ "summary": "Stop an agent run",
14719
14926
  "tags": [
14720
14927
  "agentRunner"
14721
14928
  ],
@@ -14757,6 +14964,7 @@
14757
14964
  ],
14758
14965
  "get": {
14759
14966
  "operationId": "getAgentRunnerDiff",
14967
+ "summary": "Get an agent run's diff",
14760
14968
  "tags": [
14761
14969
  "agentRunner"
14762
14970
  ],
@@ -14829,6 +15037,7 @@
14829
15037
  ],
14830
15038
  "post": {
14831
15039
  "operationId": "archiveAgentRunner",
15040
+ "summary": "Archive an agent run",
14832
15041
  "tags": [
14833
15042
  "agentRunner"
14834
15043
  ],
@@ -14876,12 +15085,135 @@
14876
15085
  "post": {
14877
15086
  "x-internal": true,
14878
15087
  "operationId": "agentRunnerPullRequest",
15088
+ "summary": "Open a pull request from an agent run",
15089
+ "description": "Queues a pull request for the run's diff (`result_diff`). The pull request is created in the background, so `pr_url` is usually not set yet in the response: `pr_is_being_created` is `true` until it finishes. Poll `getAgentRunner` until `pr_url` or `pr_error` is set. Returns 409 if a pull request already exists or is being created, and 422 if the run has no diff, no branch, no GitHub repository or installation, or needs a git sync.",
14879
15090
  "tags": [
14880
15091
  "agentRunner"
14881
15092
  ],
14882
15093
  "responses": {
14883
15094
  "200": {
14884
- "description": "OK"
15095
+ "description": "OK",
15096
+ "schema": {
15097
+ "type": "object",
15098
+ "properties": {
15099
+ "id": {
15100
+ "type": "string"
15101
+ },
15102
+ "site_id": {
15103
+ "type": "string"
15104
+ },
15105
+ "parent_agent_runner_id": {
15106
+ "type": "string"
15107
+ },
15108
+ "state": {
15109
+ "type": "string",
15110
+ "description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
15111
+ },
15112
+ "created_at": {
15113
+ "type": "string",
15114
+ "format": "dateTime"
15115
+ },
15116
+ "updated_at": {
15117
+ "type": "string",
15118
+ "format": "dateTime"
15119
+ },
15120
+ "done_at": {
15121
+ "type": "string",
15122
+ "format": "dateTime"
15123
+ },
15124
+ "title": {
15125
+ "type": "string"
15126
+ },
15127
+ "branch": {
15128
+ "type": "string"
15129
+ },
15130
+ "result_branch": {
15131
+ "type": "string"
15132
+ },
15133
+ "pr_url": {
15134
+ "type": "string"
15135
+ },
15136
+ "pr_branch": {
15137
+ "type": "string"
15138
+ },
15139
+ "pr_state": {
15140
+ "type": "string",
15141
+ "description": "One of `open`, `draft`, `merged` or `closed`."
15142
+ },
15143
+ "pr_number": {
15144
+ "type": "integer"
15145
+ },
15146
+ "pr_is_being_created": {
15147
+ "type": "boolean"
15148
+ },
15149
+ "pr_error": {
15150
+ "type": "string"
15151
+ },
15152
+ "current_task": {
15153
+ "type": "string",
15154
+ "description": "What the agent is working on in the active session."
15155
+ },
15156
+ "result_diff": {
15157
+ "type": "string"
15158
+ },
15159
+ "sha": {
15160
+ "type": "string"
15161
+ },
15162
+ "merge_commit_sha": {
15163
+ "type": "string"
15164
+ },
15165
+ "merge_commit_error": {
15166
+ "type": "string"
15167
+ },
15168
+ "merge_commit_is_being_created": {
15169
+ "type": "boolean"
15170
+ },
15171
+ "base_deploy_id": {
15172
+ "type": "string"
15173
+ },
15174
+ "attached_file_keys": {
15175
+ "type": "array",
15176
+ "items": {
15177
+ "type": "string"
15178
+ }
15179
+ },
15180
+ "active_session_created_at": {
15181
+ "type": "string",
15182
+ "format": "dateTime"
15183
+ },
15184
+ "has_result_diff": {
15185
+ "type": "boolean",
15186
+ "description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
15187
+ },
15188
+ "latest_session_deploy_id": {
15189
+ "type": "string"
15190
+ },
15191
+ "latest_session_deploy_url": {
15192
+ "type": "string"
15193
+ },
15194
+ "preview_state": {
15195
+ "type": "string",
15196
+ "description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
15197
+ },
15198
+ "user": {
15199
+ "type": "object",
15200
+ "properties": {
15201
+ "id": {
15202
+ "type": "string"
15203
+ },
15204
+ "full_name": {
15205
+ "type": "string"
15206
+ },
15207
+ "email": {
15208
+ "type": "string"
15209
+ },
15210
+ "avatar_url": {
15211
+ "type": "string"
15212
+ }
15213
+ }
15214
+ }
15215
+ }
15216
+ }
14885
15217
  },
14886
15218
  "400": {
14887
15219
  "description": "Bad Request"
@@ -14926,6 +15258,8 @@
14926
15258
  "post": {
14927
15259
  "x-internal": true,
14928
15260
  "operationId": "agentRunnerCommitToBranch",
15261
+ "summary": "Commit an agent run's changes to a branch",
15262
+ "description": "Queues a commit of the run's diff to `target_branch`. The commit is made in the background: `merge_commit_is_being_created` is `true` until it finishes. Poll `getAgentRunner` until `merge_commit_sha` or `merge_commit_error` is set.",
14929
15263
  "tags": [
14930
15264
  "agentRunner"
14931
15265
  ],
@@ -14939,7 +15273,128 @@
14939
15273
  ],
14940
15274
  "responses": {
14941
15275
  "200": {
14942
- "description": "OK"
15276
+ "description": "OK",
15277
+ "schema": {
15278
+ "type": "object",
15279
+ "properties": {
15280
+ "id": {
15281
+ "type": "string"
15282
+ },
15283
+ "site_id": {
15284
+ "type": "string"
15285
+ },
15286
+ "parent_agent_runner_id": {
15287
+ "type": "string"
15288
+ },
15289
+ "state": {
15290
+ "type": "string",
15291
+ "description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
15292
+ },
15293
+ "created_at": {
15294
+ "type": "string",
15295
+ "format": "dateTime"
15296
+ },
15297
+ "updated_at": {
15298
+ "type": "string",
15299
+ "format": "dateTime"
15300
+ },
15301
+ "done_at": {
15302
+ "type": "string",
15303
+ "format": "dateTime"
15304
+ },
15305
+ "title": {
15306
+ "type": "string"
15307
+ },
15308
+ "branch": {
15309
+ "type": "string"
15310
+ },
15311
+ "result_branch": {
15312
+ "type": "string"
15313
+ },
15314
+ "pr_url": {
15315
+ "type": "string"
15316
+ },
15317
+ "pr_branch": {
15318
+ "type": "string"
15319
+ },
15320
+ "pr_state": {
15321
+ "type": "string",
15322
+ "description": "One of `open`, `draft`, `merged` or `closed`."
15323
+ },
15324
+ "pr_number": {
15325
+ "type": "integer"
15326
+ },
15327
+ "pr_is_being_created": {
15328
+ "type": "boolean"
15329
+ },
15330
+ "pr_error": {
15331
+ "type": "string"
15332
+ },
15333
+ "current_task": {
15334
+ "type": "string",
15335
+ "description": "What the agent is working on in the active session."
15336
+ },
15337
+ "result_diff": {
15338
+ "type": "string"
15339
+ },
15340
+ "sha": {
15341
+ "type": "string"
15342
+ },
15343
+ "merge_commit_sha": {
15344
+ "type": "string"
15345
+ },
15346
+ "merge_commit_error": {
15347
+ "type": "string"
15348
+ },
15349
+ "merge_commit_is_being_created": {
15350
+ "type": "boolean"
15351
+ },
15352
+ "base_deploy_id": {
15353
+ "type": "string"
15354
+ },
15355
+ "attached_file_keys": {
15356
+ "type": "array",
15357
+ "items": {
15358
+ "type": "string"
15359
+ }
15360
+ },
15361
+ "active_session_created_at": {
15362
+ "type": "string",
15363
+ "format": "dateTime"
15364
+ },
15365
+ "has_result_diff": {
15366
+ "type": "boolean",
15367
+ "description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
15368
+ },
15369
+ "latest_session_deploy_id": {
15370
+ "type": "string"
15371
+ },
15372
+ "latest_session_deploy_url": {
15373
+ "type": "string"
15374
+ },
15375
+ "preview_state": {
15376
+ "type": "string",
15377
+ "description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
15378
+ },
15379
+ "user": {
15380
+ "type": "object",
15381
+ "properties": {
15382
+ "id": {
15383
+ "type": "string"
15384
+ },
15385
+ "full_name": {
15386
+ "type": "string"
15387
+ },
15388
+ "email": {
15389
+ "type": "string"
15390
+ },
15391
+ "avatar_url": {
15392
+ "type": "string"
15393
+ }
15394
+ }
15395
+ }
15396
+ }
15397
+ }
14943
15398
  },
14944
15399
  "400": {
14945
15400
  "description": "Bad Request"
@@ -14983,6 +15438,7 @@
14983
15438
  ],
14984
15439
  "get": {
14985
15440
  "operationId": "listAgentRunnerSessions",
15441
+ "summary": "List an agent run's sessions",
14986
15442
  "tags": [
14987
15443
  "agentRunnerSession"
14988
15444
  ],
@@ -15223,6 +15679,7 @@
15223
15679
  },
15224
15680
  "post": {
15225
15681
  "operationId": "createAgentRunnerSession",
15682
+ "summary": "Start a follow-up agent run session",
15226
15683
  "tags": [
15227
15684
  "agentRunnerSession"
15228
15685
  ],
@@ -15677,6 +16134,7 @@
15677
16134
  ],
15678
16135
  "get": {
15679
16136
  "operationId": "getAgentRunnerSession",
16137
+ "summary": "Get an agent run session",
15680
16138
  "tags": [
15681
16139
  "agentRunnerSession"
15682
16140
  ],
@@ -15871,6 +16329,7 @@
15871
16329
  },
15872
16330
  "patch": {
15873
16331
  "operationId": "updateAgentRunnerSession",
16332
+ "summary": "Update an agent run session",
15874
16333
  "tags": [
15875
16334
  "agentRunnerSession"
15876
16335
  ],
@@ -16072,6 +16531,7 @@
16072
16531
  },
16073
16532
  "delete": {
16074
16533
  "operationId": "deleteAgentRunnerSession",
16534
+ "summary": "Stop an agent run session (alias)",
16075
16535
  "tags": [
16076
16536
  "hiddenAgentRunner"
16077
16537
  ],
@@ -16119,6 +16579,7 @@
16119
16579
  ],
16120
16580
  "post": {
16121
16581
  "operationId": "stopAgentRunnerSession",
16582
+ "summary": "Stop an agent run session",
16122
16583
  "tags": [
16123
16584
  "agentRunnerSession"
16124
16585
  ],
@@ -16166,6 +16627,7 @@
16166
16627
  ],
16167
16628
  "post": {
16168
16629
  "operationId": "answerAgentRunnerSession",
16630
+ "summary": "Answer an agent run session's pending interaction",
16169
16631
  "tags": [
16170
16632
  "agentRunnerSession"
16171
16633
  ],
@@ -16496,6 +16958,7 @@
16496
16958
  ],
16497
16959
  "get": {
16498
16960
  "operationId": "listFormSubmission",
16961
+ "summary": "Get a form submission",
16499
16962
  "tags": [
16500
16963
  "submission"
16501
16964
  ],
@@ -16593,6 +17056,7 @@
16593
17056
  },
16594
17057
  "delete": {
16595
17058
  "operationId": "deleteSubmission",
17059
+ "summary": "Delete a form submission",
16596
17060
  "tags": [
16597
17061
  "submission"
16598
17062
  ],
@@ -16633,6 +17097,7 @@
16633
17097
  ],
16634
17098
  "get": {
16635
17099
  "operationId": "listServiceInstancesForSite",
17100
+ "summary": "List a site's add-on instances",
16636
17101
  "tags": [
16637
17102
  "serviceInstance"
16638
17103
  ],
@@ -16728,6 +17193,7 @@
16728
17193
  ],
16729
17194
  "post": {
16730
17195
  "operationId": "createServiceInstance",
17196
+ "summary": "Create an add-on instance",
16731
17197
  "tags": [
16732
17198
  "serviceInstance"
16733
17199
  ],
@@ -16839,6 +17305,7 @@
16839
17305
  ],
16840
17306
  "get": {
16841
17307
  "operationId": "showServiceInstance",
17308
+ "summary": "Get an add-on instance",
16842
17309
  "tags": [
16843
17310
  "serviceInstance"
16844
17311
  ],
@@ -16915,6 +17382,7 @@
16915
17382
  },
16916
17383
  "put": {
16917
17384
  "operationId": "updateServiceInstance",
17385
+ "summary": "Update an add-on instance",
16918
17386
  "tags": [
16919
17387
  "serviceInstance"
16920
17388
  ],
@@ -16958,6 +17426,7 @@
16958
17426
  },
16959
17427
  "delete": {
16960
17428
  "operationId": "deleteServiceInstance",
17429
+ "summary": "Delete an add-on instance",
16961
17430
  "tags": [
16962
17431
  "serviceInstance"
16963
17432
  ],
@@ -16997,6 +17466,7 @@
16997
17466
  ],
16998
17467
  "get": {
16999
17468
  "operationId": "getServices",
17469
+ "summary": "List add-on services",
17000
17470
  "tags": [
17001
17471
  "service"
17002
17472
  ],
@@ -17095,6 +17565,7 @@
17095
17565
  ],
17096
17566
  "get": {
17097
17567
  "operationId": "showService",
17568
+ "summary": "Get an add-on service",
17098
17569
  "tags": [
17099
17570
  "service"
17100
17571
  ],
@@ -17190,6 +17661,7 @@
17190
17661
  ],
17191
17662
  "get": {
17192
17663
  "operationId": "showServiceManifest",
17664
+ "summary": "Get an add-on service's manifest",
17193
17665
  "tags": [
17194
17666
  "service"
17195
17667
  ],
@@ -17225,6 +17697,7 @@
17225
17697
  "/user": {
17226
17698
  "get": {
17227
17699
  "operationId": "getCurrentUser",
17700
+ "summary": "Get the current user",
17228
17701
  "tags": [
17229
17702
  "user"
17230
17703
  ],
@@ -17314,6 +17787,7 @@
17314
17787
  ],
17315
17788
  "post": {
17316
17789
  "operationId": "createSplitTest",
17790
+ "summary": "Create a split test",
17317
17791
  "tags": [
17318
17792
  "splitTest"
17319
17793
  ],
@@ -17400,6 +17874,7 @@
17400
17874
  },
17401
17875
  "get": {
17402
17876
  "operationId": "getSplitTests",
17877
+ "summary": "List a site's split tests",
17403
17878
  "tags": [
17404
17879
  "splitTest"
17405
17880
  ],
@@ -17487,6 +17962,7 @@
17487
17962
  ],
17488
17963
  "put": {
17489
17964
  "operationId": "updateSplitTest",
17965
+ "summary": "Update a split test",
17490
17966
  "tags": [
17491
17967
  "splitTest"
17492
17968
  ],
@@ -17573,6 +18049,7 @@
17573
18049
  },
17574
18050
  "get": {
17575
18051
  "operationId": "getSplitTest",
18052
+ "summary": "Get a split test",
17576
18053
  "tags": [
17577
18054
  "splitTest"
17578
18055
  ],
@@ -17657,6 +18134,7 @@
17657
18134
  ],
17658
18135
  "post": {
17659
18136
  "operationId": "enableSplitTest",
18137
+ "summary": "Publish a split test",
17660
18138
  "tags": [
17661
18139
  "splitTest"
17662
18140
  ],
@@ -17703,6 +18181,7 @@
17703
18181
  ],
17704
18182
  "post": {
17705
18183
  "operationId": "disableSplitTest",
18184
+ "summary": "Unpublish a split test",
17706
18185
  "tags": [
17707
18186
  "splitTest"
17708
18187
  ],
@@ -17735,6 +18214,7 @@
17735
18214
  "/dns_zones": {
17736
18215
  "post": {
17737
18216
  "operationId": "createDnsZone",
18217
+ "summary": "Create a DNS zone",
17738
18218
  "tags": [
17739
18219
  "dnsZone"
17740
18220
  ],
@@ -17893,6 +18373,8 @@
17893
18373
  },
17894
18374
  "get": {
17895
18375
  "operationId": "getDnsZones",
18376
+ "summary": "List DNS zones",
18377
+ "description": "Returns the DNS zones for the team given by `account_slug`, or all DNS zones the current user can access.",
17896
18378
  "tags": [
17897
18379
  "dnsZone"
17898
18380
  ],
@@ -18048,6 +18530,7 @@
18048
18530
  ],
18049
18531
  "get": {
18050
18532
  "operationId": "getDnsZone",
18533
+ "summary": "Get a DNS zone",
18051
18534
  "tags": [
18052
18535
  "dnsZone"
18053
18536
  ],
@@ -18182,6 +18665,7 @@
18182
18665
  },
18183
18666
  "delete": {
18184
18667
  "operationId": "deleteDnsZone",
18668
+ "summary": "Delete a DNS zone",
18185
18669
  "tags": [
18186
18670
  "dnsZone"
18187
18671
  ],
@@ -18243,6 +18727,7 @@
18243
18727
  ],
18244
18728
  "put": {
18245
18729
  "operationId": "transferDnsZone",
18730
+ "summary": "Transfer a DNS zone to another team",
18246
18731
  "tags": [
18247
18732
  "dnsZone"
18248
18733
  ],
@@ -18387,6 +18872,7 @@
18387
18872
  ],
18388
18873
  "get": {
18389
18874
  "operationId": "getDnsRecords",
18875
+ "summary": "List a DNS zone's records",
18390
18876
  "tags": [
18391
18877
  "dnsZone"
18392
18878
  ],
@@ -18460,6 +18946,7 @@
18460
18946
  },
18461
18947
  "post": {
18462
18948
  "operationId": "createDnsRecord",
18949
+ "summary": "Create a DNS record",
18463
18950
  "tags": [
18464
18951
  "dnsZone"
18465
18952
  ],
@@ -18593,6 +19080,7 @@
18593
19080
  ],
18594
19081
  "get": {
18595
19082
  "operationId": "getIndividualDnsRecord",
19083
+ "summary": "Get a DNS record",
18596
19084
  "tags": [
18597
19085
  "dnsZone"
18598
19086
  ],
@@ -18663,6 +19151,7 @@
18663
19151
  },
18664
19152
  "delete": {
18665
19153
  "operationId": "deleteDnsRecord",
19154
+ "summary": "Delete a DNS record",
18666
19155
  "tags": [
18667
19156
  "dnsZone"
18668
19157
  ],
@@ -18703,6 +19192,7 @@
18703
19192
  ],
18704
19193
  "get": {
18705
19194
  "operationId": "listSiteDevServers",
19195
+ "summary": "List a site's dev servers",
18706
19196
  "tags": [
18707
19197
  "devServer"
18708
19198
  ],
@@ -18799,6 +19289,7 @@
18799
19289
  },
18800
19290
  "post": {
18801
19291
  "operationId": "createSiteDevServer",
19292
+ "summary": "Start a dev server",
18802
19293
  "tags": [
18803
19294
  "devServer"
18804
19295
  ],
@@ -18886,6 +19377,8 @@
18886
19377
  },
18887
19378
  "delete": {
18888
19379
  "operationId": "deleteSiteDevServers",
19380
+ "summary": "Stop a branch's dev servers",
19381
+ "description": "Stops all dev servers for a branch. Stopping happens in the background.",
18889
19382
  "tags": [
18890
19383
  "devServer"
18891
19384
  ],
@@ -18939,6 +19432,7 @@
18939
19432
  ],
18940
19433
  "get": {
18941
19434
  "operationId": "getSiteDevServer",
19435
+ "summary": "Get a dev server",
18942
19436
  "tags": [
18943
19437
  "devServer"
18944
19438
  ],
@@ -19014,12 +19508,60 @@
19014
19508
  "post": {
19015
19509
  "x-internal": true,
19016
19510
  "operationId": "markDevServerActivity",
19511
+ "summary": "Record dev server activity",
19017
19512
  "tags": [
19018
19513
  "devServer"
19019
19514
  ],
19020
19515
  "responses": {
19021
19516
  "200": {
19022
- "description": "OK"
19517
+ "description": "OK",
19518
+ "schema": {
19519
+ "type": "object",
19520
+ "properties": {
19521
+ "id": {
19522
+ "type": "string"
19523
+ },
19524
+ "site_id": {
19525
+ "type": "string"
19526
+ },
19527
+ "branch": {
19528
+ "type": "string"
19529
+ },
19530
+ "url": {
19531
+ "type": "string"
19532
+ },
19533
+ "state": {
19534
+ "type": "string"
19535
+ },
19536
+ "created_at": {
19537
+ "type": "string",
19538
+ "format": "dateTime"
19539
+ },
19540
+ "updated_at": {
19541
+ "type": "string",
19542
+ "format": "dateTime"
19543
+ },
19544
+ "starting_at": {
19545
+ "type": "string",
19546
+ "format": "dateTime"
19547
+ },
19548
+ "error_at": {
19549
+ "type": "string",
19550
+ "format": "dateTime"
19551
+ },
19552
+ "live_at": {
19553
+ "type": "string",
19554
+ "format": "dateTime"
19555
+ },
19556
+ "done_at": {
19557
+ "type": "string",
19558
+ "format": "dateTime"
19559
+ },
19560
+ "title": {
19561
+ "type": "string"
19562
+ }
19563
+ }
19564
+ }
19023
19565
  }
19024
19566
  }
19025
19567
  }
@@ -19041,6 +19583,7 @@
19041
19583
  ],
19042
19584
  "post": {
19043
19585
  "operationId": "updateDevServerState",
19586
+ "summary": "Update a dev server's state",
19044
19587
  "tags": [
19045
19588
  "devServer"
19046
19589
  ],
@@ -19142,6 +19685,7 @@
19142
19685
  ],
19143
19686
  "get": {
19144
19687
  "operationId": "listSiteDevServerHooks",
19688
+ "summary": "List a site's dev server hooks",
19145
19689
  "tags": [
19146
19690
  "devServerHook"
19147
19691
  ],
@@ -19206,6 +19750,7 @@
19206
19750
  },
19207
19751
  "post": {
19208
19752
  "operationId": "createSiteDevServerHook",
19753
+ "summary": "Create a dev server hook",
19209
19754
  "tags": [
19210
19755
  "devServerHook"
19211
19756
  ],
@@ -19311,6 +19856,7 @@
19311
19856
  ],
19312
19857
  "get": {
19313
19858
  "operationId": "getSiteDevServerHook",
19859
+ "summary": "Get a dev server hook",
19314
19860
  "tags": [
19315
19861
  "devServerHook"
19316
19862
  ],
@@ -19372,6 +19918,7 @@
19372
19918
  },
19373
19919
  "put": {
19374
19920
  "operationId": "updateSiteDevServerHook",
19921
+ "summary": "Update a dev server hook",
19375
19922
  "tags": [
19376
19923
  "devServerHook"
19377
19924
  ],
@@ -19430,6 +19977,7 @@
19430
19977
  },
19431
19978
  "delete": {
19432
19979
  "operationId": "deleteSiteDevServerHook",
19980
+ "summary": "Delete a dev server hook",
19433
19981
  "tags": [
19434
19982
  "devServerHook"
19435
19983
  ],
@@ -19471,6 +20019,7 @@
19471
20019
  "get": {
19472
20020
  "x-internal": true,
19473
20021
  "operationId": "listSiteAgentRunnerHooks",
20022
+ "summary": "List a site's agent runner hooks",
19474
20023
  "tags": [
19475
20024
  "agentRunnerHook"
19476
20025
  ],
@@ -19538,6 +20087,7 @@
19538
20087
  "post": {
19539
20088
  "x-internal": true,
19540
20089
  "operationId": "createSiteAgentRunnerHook",
20090
+ "summary": "Create an agent runner hook",
19541
20091
  "tags": [
19542
20092
  "agentRunnerHook"
19543
20093
  ],
@@ -19656,6 +20206,7 @@
19656
20206
  "get": {
19657
20207
  "x-internal": true,
19658
20208
  "operationId": "getSiteAgentRunnerHook",
20209
+ "summary": "Get an agent runner hook",
19659
20210
  "tags": [
19660
20211
  "agentRunnerHook"
19661
20212
  ],
@@ -19720,6 +20271,7 @@
19720
20271
  "put": {
19721
20272
  "x-internal": true,
19722
20273
  "operationId": "updateSiteAgentRunnerHook",
20274
+ "summary": "Update an agent runner hook",
19723
20275
  "tags": [
19724
20276
  "agentRunnerHook"
19725
20277
  ],
@@ -19778,6 +20330,7 @@
19778
20330
  "delete": {
19779
20331
  "x-internal": true,
19780
20332
  "operationId": "deleteSiteAgentRunnerHook",
20333
+ "summary": "Delete an agent runner hook",
19781
20334
  "tags": [
19782
20335
  "agentRunnerHook"
19783
20336
  ],
@@ -19810,6 +20363,7 @@
19810
20363
  "/ai-gateway/providers": {
19811
20364
  "get": {
19812
20365
  "operationId": "getAIGatewayProviders",
20366
+ "summary": "List AI Gateway providers and models",
19813
20367
  "tags": [
19814
20368
  "aiGateway"
19815
20369
  ],
@@ -19876,6 +20430,7 @@
19876
20430
  ],
19877
20431
  "get": {
19878
20432
  "operationId": "getAIGatewayToken",
20433
+ "summary": "Get a site's AI Gateway token",
19879
20434
  "tags": [
19880
20435
  "aiGateway"
19881
20436
  ],
@@ -19939,6 +20494,7 @@
19939
20494
  ],
19940
20495
  "get": {
19941
20496
  "operationId": "getAccountAIGatewayToken",
20497
+ "summary": "Get a team's AI Gateway token",
19942
20498
  "tags": [
19943
20499
  "aiGateway"
19944
20500
  ],
@@ -20001,6 +20557,7 @@
20001
20557
  ],
20002
20558
  "post": {
20003
20559
  "operationId": "createSiteDatabase",
20560
+ "summary": "Create a site database",
20004
20561
  "tags": [
20005
20562
  "database"
20006
20563
  ],
@@ -20074,6 +20631,7 @@
20074
20631
  },
20075
20632
  "get": {
20076
20633
  "operationId": "getSiteDatabase",
20634
+ "summary": "Get a site database",
20077
20635
  "tags": [
20078
20636
  "database"
20079
20637
  ],
@@ -20127,6 +20685,7 @@
20127
20685
  },
20128
20686
  "delete": {
20129
20687
  "operationId": "deleteSiteDatabase",
20688
+ "summary": "Delete a site database",
20130
20689
  "tags": [
20131
20690
  "database"
20132
20691
  ],
@@ -20168,6 +20727,7 @@
20168
20727
  ],
20169
20728
  "post": {
20170
20729
  "operationId": "createSiteDatabaseBranch",
20730
+ "summary": "Create a database branch",
20171
20731
  "tags": [
20172
20732
  "database"
20173
20733
  ],
@@ -20274,6 +20834,7 @@
20274
20834
  ],
20275
20835
  "get": {
20276
20836
  "operationId": "listSiteDatabaseBranches",
20837
+ "summary": "List database branches",
20277
20838
  "tags": [
20278
20839
  "database"
20279
20840
  ],
@@ -20420,6 +20981,7 @@
20420
20981
  ],
20421
20982
  "get": {
20422
20983
  "operationId": "getSiteDatabaseBranch",
20984
+ "summary": "Get a database branch",
20423
20985
  "tags": [
20424
20986
  "database"
20425
20987
  ],
@@ -20481,6 +21043,7 @@
20481
21043
  },
20482
21044
  "delete": {
20483
21045
  "operationId": "deleteSiteDatabaseBranch",
21046
+ "summary": "Delete a database branch",
20484
21047
  "tags": [
20485
21048
  "database"
20486
21049
  ],
@@ -20529,6 +21092,7 @@
20529
21092
  ],
20530
21093
  "post": {
20531
21094
  "operationId": "resetSiteDatabaseBranch",
21095
+ "summary": "Reset a database branch",
20532
21096
  "tags": [
20533
21097
  "database"
20534
21098
  ],
@@ -20637,6 +21201,7 @@
20637
21201
  ],
20638
21202
  "put": {
20639
21203
  "operationId": "setSiteDatabaseBranchComputeSettings",
21204
+ "summary": "Set a database branch's compute settings",
20640
21205
  "tags": [
20641
21206
  "database"
20642
21207
  ],
@@ -20741,6 +21306,7 @@
20741
21306
  ],
20742
21307
  "put": {
20743
21308
  "operationId": "setSiteDatabaseComputeSettings",
21309
+ "summary": "Set database compute settings",
20744
21310
  "tags": [
20745
21311
  "database"
20746
21312
  ],
@@ -20835,6 +21401,7 @@
20835
21401
  },
20836
21402
  "get": {
20837
21403
  "operationId": "getSiteDatabaseComputeSettings",
21404
+ "summary": "Get database compute settings",
20838
21405
  "tags": [
20839
21406
  "database"
20840
21407
  ],
@@ -20890,6 +21457,7 @@
20890
21457
  },
20891
21458
  "delete": {
20892
21459
  "operationId": "clearSiteDatabaseComputeSettings",
21460
+ "summary": "Reset database compute settings to defaults",
20893
21461
  "tags": [
20894
21462
  "database"
20895
21463
  ],
@@ -20934,6 +21502,7 @@
20934
21502
  ],
20935
21503
  "get": {
20936
21504
  "operationId": "listSiteDatabaseMigrations",
21505
+ "summary": "List database migrations",
20937
21506
  "tags": [
20938
21507
  "database"
20939
21508
  ],
@@ -21029,6 +21598,7 @@
21029
21598
  ],
21030
21599
  "get": {
21031
21600
  "operationId": "getSiteDatabaseMigration",
21601
+ "summary": "Get a database migration",
21032
21602
  "tags": [
21033
21603
  "database"
21034
21604
  ],
@@ -21114,6 +21684,7 @@
21114
21684
  ],
21115
21685
  "post": {
21116
21686
  "operationId": "runSiteDatabaseMigrations",
21687
+ "summary": "Run database migrations for a deploy",
21117
21688
  "tags": [
21118
21689
  "database"
21119
21690
  ],
@@ -21180,6 +21751,7 @@
21180
21751
  ],
21181
21752
  "post": {
21182
21753
  "operationId": "createSiteDatabaseSnapshot",
21754
+ "summary": "Create a database snapshot",
21183
21755
  "tags": [
21184
21756
  "database"
21185
21757
  ],
@@ -21307,6 +21879,7 @@
21307
21879
  ],
21308
21880
  "get": {
21309
21881
  "operationId": "listSiteDatabaseSnapshots",
21882
+ "summary": "List database snapshots",
21310
21883
  "tags": [
21311
21884
  "database"
21312
21885
  ],
@@ -21413,6 +21986,7 @@
21413
21986
  ],
21414
21987
  "delete": {
21415
21988
  "operationId": "deleteSiteDatabaseSnapshot",
21989
+ "summary": "Delete a database snapshot",
21416
21990
  "tags": [
21417
21991
  "database"
21418
21992
  ],
@@ -21461,6 +22035,7 @@
21461
22035
  ],
21462
22036
  "post": {
21463
22037
  "operationId": "restoreSiteDatabaseSnapshot",
22038
+ "summary": "Restore a database snapshot",
21464
22039
  "tags": [
21465
22040
  "database"
21466
22041
  ],
@@ -23820,6 +24395,26 @@
23820
24395
  "runtime_version": {
23821
24396
  "type": "string",
23822
24397
  "description": "The runtime version the server was built for, such as `nodejs24.x`. A\ndefault version is used when absent.\n"
24398
+ },
24399
+ "scale": {
24400
+ "type": "object",
24401
+ "description": "How many instances of the server run.",
24402
+ "properties": {
24403
+ "min": {
24404
+ "type": "integer",
24405
+ "format": "int64",
24406
+ "minimum": 0,
24407
+ "x-nullable": true,
24408
+ "description": "The minimum number of instances the server keeps running. Defaults to 0\nwhen absent.\n"
24409
+ },
24410
+ "max": {
24411
+ "type": "integer",
24412
+ "format": "int64",
24413
+ "minimum": 1,
24414
+ "x-nullable": true,
24415
+ "description": "The maximum number of instances the server scales to. Defaults to the\nhighest the account's plan allows when absent.\n"
24416
+ }
24417
+ }
23823
24418
  }
23824
24419
  }
23825
24420
  },