@netlify/open-api 2.56.1 → 2.57.1

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
@@ -449,6 +449,10 @@ export interface paths {
449
449
  /** API Reference: {@link https://open-api.netlify.com/#tag/function/operation/uploadDeployFunction | `uploadDeployFunction`} */
450
450
  put: operations["uploadDeployFunction"];
451
451
  };
452
+ "/deploys/{deploy_id}/edge_functions/{code_sha}": {
453
+ /** API Reference: {@link https://open-api.netlify.com/#tag/edgeFunction/operation/uploadDeployEdgeFunction | `uploadDeployEdgeFunction`} */
454
+ put: operations["uploadDeployEdgeFunction"];
455
+ };
452
456
  "/forms/{form_id}/submissions": {
453
457
  /** API Reference: {@link https://open-api.netlify.com/#tag/submission/operation/listFormSubmissions | `listFormSubmissions`} */
454
458
  get: operations["listFormSubmissions"];
@@ -1682,6 +1686,11 @@ export interface components {
1682
1686
  draft?: boolean;
1683
1687
  required?: string[];
1684
1688
  required_functions?: string[];
1689
+ /**
1690
+ * @description An array of code_shas for the edge-function bundles that need to be uploaded to
1691
+ * complete the deploy.
1692
+ */
1693
+ required_edge_functions?: string[];
1685
1694
  error_message?: string;
1686
1695
  branch?: string;
1687
1696
  commit_ref?: string;
@@ -1737,6 +1746,11 @@ export interface components {
1737
1746
  draft?: boolean;
1738
1747
  async?: boolean;
1739
1748
  functions?: { [key: string]: unknown };
1749
+ /**
1750
+ * @description A hash mapping edge-function bundle formats to the code_sha of each bundle. The
1751
+ * response's required_edge_functions lists which of these still need to be uploaded.
1752
+ */
1753
+ edge_functions?: { [key: string]: unknown };
1740
1754
  function_schedules?: components["schemas"]["functionSchedule"][];
1741
1755
  functions_config?: {
1742
1756
  [key: string]: components["schemas"]["functionConfig"];
@@ -3830,6 +3844,24 @@ export interface operations {
3830
3844
  };
3831
3845
  requestBody: components["requestBodies"]["uploadDeployFileFileBody"];
3832
3846
  };
3847
+ /** API Reference: {@link https://open-api.netlify.com/#tag/edgeFunction/operation/uploadDeployEdgeFunction | `uploadDeployEdgeFunction`} */
3848
+ uploadDeployEdgeFunction: {
3849
+ parameters: {
3850
+ path: {
3851
+ deploy_id: string;
3852
+ code_sha: string;
3853
+ };
3854
+ header: {
3855
+ "X-Nf-Retry-Count"?: components["parameters"]["retryCount"];
3856
+ };
3857
+ };
3858
+ responses: {
3859
+ /** OK */
3860
+ 200: unknown;
3861
+ default: components["responses"]["error"];
3862
+ };
3863
+ requestBody: components["requestBodies"]["uploadDeployFileFileBody"];
3864
+ };
3833
3865
  /** API Reference: {@link https://open-api.netlify.com/#tag/submission/operation/listFormSubmissions | `listFormSubmissions`} */
3834
3866
  listFormSubmissions: {
3835
3867
  parameters: {
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.56.1",
4
+ "version": "2.57.1",
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/",
@@ -233,6 +233,13 @@
233
233
  "type": "string"
234
234
  }
235
235
  },
236
+ "required_edge_functions": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string"
240
+ },
241
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
242
+ },
236
243
  "error_message": {
237
244
  "type": "string"
238
245
  },
@@ -601,6 +608,13 @@
601
608
  "type": "string"
602
609
  }
603
610
  },
611
+ "required_edge_functions": {
612
+ "type": "array",
613
+ "items": {
614
+ "type": "string"
615
+ },
616
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
617
+ },
604
618
  "error_message": {
605
619
  "type": "string"
606
620
  },
@@ -1007,6 +1021,13 @@
1007
1021
  "type": "string"
1008
1022
  }
1009
1023
  },
1024
+ "required_edge_functions": {
1025
+ "type": "array",
1026
+ "items": {
1027
+ "type": "string"
1028
+ },
1029
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
1030
+ },
1010
1031
  "error_message": {
1011
1032
  "type": "string"
1012
1033
  },
@@ -1386,6 +1407,13 @@
1386
1407
  "type": "string"
1387
1408
  }
1388
1409
  },
1410
+ "required_edge_functions": {
1411
+ "type": "array",
1412
+ "items": {
1413
+ "type": "string"
1414
+ },
1415
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
1416
+ },
1389
1417
  "error_message": {
1390
1418
  "type": "string"
1391
1419
  },
@@ -1753,6 +1781,13 @@
1753
1781
  "type": "string"
1754
1782
  }
1755
1783
  },
1784
+ "required_edge_functions": {
1785
+ "type": "array",
1786
+ "items": {
1787
+ "type": "string"
1788
+ },
1789
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
1790
+ },
1756
1791
  "error_message": {
1757
1792
  "type": "string"
1758
1793
  },
@@ -2154,6 +2189,13 @@
2154
2189
  "type": "string"
2155
2190
  }
2156
2191
  },
2192
+ "required_edge_functions": {
2193
+ "type": "array",
2194
+ "items": {
2195
+ "type": "string"
2196
+ },
2197
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
2198
+ },
2157
2199
  "error_message": {
2158
2200
  "type": "string"
2159
2201
  },
@@ -5634,6 +5676,13 @@
5634
5676
  "type": "string"
5635
5677
  }
5636
5678
  },
5679
+ "required_edge_functions": {
5680
+ "type": "array",
5681
+ "items": {
5682
+ "type": "string"
5683
+ },
5684
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
5685
+ },
5637
5686
  "error_message": {
5638
5687
  "type": "string"
5639
5688
  },
@@ -5773,6 +5822,10 @@
5773
5822
  "functions": {
5774
5823
  "type": "object"
5775
5824
  },
5825
+ "edge_functions": {
5826
+ "type": "object",
5827
+ "description": "A hash mapping edge-function bundle formats to the code_sha of each bundle. The\nresponse's required_edge_functions lists which of these still need to be uploaded.\n"
5828
+ },
5776
5829
  "function_schedules": {
5777
5830
  "type": "array",
5778
5831
  "items": {
@@ -6044,6 +6097,13 @@
6044
6097
  "type": "string"
6045
6098
  }
6046
6099
  },
6100
+ "required_edge_functions": {
6101
+ "type": "array",
6102
+ "items": {
6103
+ "type": "string"
6104
+ },
6105
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
6106
+ },
6047
6107
  "error_message": {
6048
6108
  "type": "string"
6049
6109
  },
@@ -6227,6 +6287,13 @@
6227
6287
  "type": "string"
6228
6288
  }
6229
6289
  },
6290
+ "required_edge_functions": {
6291
+ "type": "array",
6292
+ "items": {
6293
+ "type": "string"
6294
+ },
6295
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
6296
+ },
6230
6297
  "error_message": {
6231
6298
  "type": "string"
6232
6299
  },
@@ -6377,6 +6444,10 @@
6377
6444
  "functions": {
6378
6445
  "type": "object"
6379
6446
  },
6447
+ "edge_functions": {
6448
+ "type": "object",
6449
+ "description": "A hash mapping edge-function bundle formats to the code_sha of each bundle. The\nresponse's required_edge_functions lists which of these still need to be uploaded.\n"
6450
+ },
6380
6451
  "function_schedules": {
6381
6452
  "type": "array",
6382
6453
  "items": {
@@ -6648,6 +6719,13 @@
6648
6719
  "type": "string"
6649
6720
  }
6650
6721
  },
6722
+ "required_edge_functions": {
6723
+ "type": "array",
6724
+ "items": {
6725
+ "type": "string"
6726
+ },
6727
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
6728
+ },
6651
6729
  "error_message": {
6652
6730
  "type": "string"
6653
6731
  },
@@ -6869,6 +6947,13 @@
6869
6947
  "type": "string"
6870
6948
  }
6871
6949
  },
6950
+ "required_edge_functions": {
6951
+ "type": "array",
6952
+ "items": {
6953
+ "type": "string"
6954
+ },
6955
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
6956
+ },
6872
6957
  "error_message": {
6873
6958
  "type": "string"
6874
6959
  },
@@ -7052,6 +7137,13 @@
7052
7137
  "type": "string"
7053
7138
  }
7054
7139
  },
7140
+ "required_edge_functions": {
7141
+ "type": "array",
7142
+ "items": {
7143
+ "type": "string"
7144
+ },
7145
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
7146
+ },
7055
7147
  "error_message": {
7056
7148
  "type": "string"
7057
7149
  },
@@ -7564,6 +7656,13 @@
7564
7656
  "type": "string"
7565
7657
  }
7566
7658
  },
7659
+ "required_edge_functions": {
7660
+ "type": "array",
7661
+ "items": {
7662
+ "type": "string"
7663
+ },
7664
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
7665
+ },
7567
7666
  "error_message": {
7568
7667
  "type": "string"
7569
7668
  },
@@ -8558,6 +8657,13 @@
8558
8657
  "type": "string"
8559
8658
  }
8560
8659
  },
8660
+ "required_edge_functions": {
8661
+ "type": "array",
8662
+ "items": {
8663
+ "type": "string"
8664
+ },
8665
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
8666
+ },
8561
8667
  "error_message": {
8562
8668
  "type": "string"
8563
8669
  },
@@ -8841,6 +8947,13 @@
8841
8947
  "type": "string"
8842
8948
  }
8843
8949
  },
8950
+ "required_edge_functions": {
8951
+ "type": "array",
8952
+ "items": {
8953
+ "type": "string"
8954
+ },
8955
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
8956
+ },
8844
8957
  "error_message": {
8845
8958
  "type": "string"
8846
8959
  },
@@ -9018,6 +9131,13 @@
9018
9131
  "type": "string"
9019
9132
  }
9020
9133
  },
9134
+ "required_edge_functions": {
9135
+ "type": "array",
9136
+ "items": {
9137
+ "type": "string"
9138
+ },
9139
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
9140
+ },
9021
9141
  "error_message": {
9022
9142
  "type": "string"
9023
9143
  },
@@ -9305,6 +9425,69 @@
9305
9425
  }
9306
9426
  }
9307
9427
  },
9428
+ "/deploys/{deploy_id}/edge_functions/{code_sha}": {
9429
+ "put": {
9430
+ "operationId": "uploadDeployEdgeFunction",
9431
+ "tags": [
9432
+ "edgeFunction"
9433
+ ],
9434
+ "consumes": [
9435
+ "application/octet-stream"
9436
+ ],
9437
+ "parameters": [
9438
+ {
9439
+ "name": "deploy_id",
9440
+ "type": "string",
9441
+ "in": "path",
9442
+ "required": true
9443
+ },
9444
+ {
9445
+ "name": "code_sha",
9446
+ "type": "string",
9447
+ "in": "path",
9448
+ "required": true
9449
+ },
9450
+ {
9451
+ "name": "file_body",
9452
+ "in": "body",
9453
+ "schema": {
9454
+ "type": "string",
9455
+ "format": "binary"
9456
+ },
9457
+ "required": true
9458
+ },
9459
+ {
9460
+ "name": "X-Nf-Retry-Count",
9461
+ "type": "integer",
9462
+ "in": "header"
9463
+ }
9464
+ ],
9465
+ "responses": {
9466
+ "200": {
9467
+ "description": "OK"
9468
+ },
9469
+ "default": {
9470
+ "description": "error",
9471
+ "schema": {
9472
+ "type": "object",
9473
+ "required": [
9474
+ "message"
9475
+ ],
9476
+ "properties": {
9477
+ "code": {
9478
+ "type": "integer",
9479
+ "format": "int64"
9480
+ },
9481
+ "message": {
9482
+ "type": "string",
9483
+ "x-nullable": false
9484
+ }
9485
+ }
9486
+ }
9487
+ }
9488
+ }
9489
+ }
9490
+ },
9308
9491
  "/sites/{site_id}/plugins/{package}": {
9309
9492
  "put": {
9310
9493
  "x-internal": true,
@@ -10728,6 +10911,13 @@
10728
10911
  "type": "string"
10729
10912
  }
10730
10913
  },
10914
+ "required_edge_functions": {
10915
+ "type": "array",
10916
+ "items": {
10917
+ "type": "string"
10918
+ },
10919
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
10920
+ },
10731
10921
  "error_message": {
10732
10922
  "type": "string"
10733
10923
  },
@@ -11139,6 +11329,13 @@
11139
11329
  "type": "string"
11140
11330
  }
11141
11331
  },
11332
+ "required_edge_functions": {
11333
+ "type": "array",
11334
+ "items": {
11335
+ "type": "string"
11336
+ },
11337
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
11338
+ },
11142
11339
  "error_message": {
11143
11340
  "type": "string"
11144
11341
  },
@@ -11529,6 +11726,13 @@
11529
11726
  "type": "string"
11530
11727
  }
11531
11728
  },
11729
+ "required_edge_functions": {
11730
+ "type": "array",
11731
+ "items": {
11732
+ "type": "string"
11733
+ },
11734
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
11735
+ },
11532
11736
  "error_message": {
11533
11737
  "type": "string"
11534
11738
  },
@@ -20527,6 +20731,13 @@
20527
20731
  "type": "string"
20528
20732
  }
20529
20733
  },
20734
+ "required_edge_functions": {
20735
+ "type": "array",
20736
+ "items": {
20737
+ "type": "string"
20738
+ },
20739
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
20740
+ },
20530
20741
  "error_message": {
20531
20742
  "type": "string"
20532
20743
  },
@@ -20859,6 +21070,13 @@
20859
21070
  "type": "string"
20860
21071
  }
20861
21072
  },
21073
+ "required_edge_functions": {
21074
+ "type": "array",
21075
+ "items": {
21076
+ "type": "string"
21077
+ },
21078
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
21079
+ },
20862
21080
  "error_message": {
20863
21081
  "type": "string"
20864
21082
  },
@@ -21604,6 +21822,13 @@
21604
21822
  "type": "string"
21605
21823
  }
21606
21824
  },
21825
+ "required_edge_functions": {
21826
+ "type": "array",
21827
+ "items": {
21828
+ "type": "string"
21829
+ },
21830
+ "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"
21831
+ },
21607
21832
  "error_message": {
21608
21833
  "type": "string"
21609
21834
  },
@@ -21738,6 +21963,10 @@
21738
21963
  "functions": {
21739
21964
  "type": "object"
21740
21965
  },
21966
+ "edge_functions": {
21967
+ "type": "object",
21968
+ "description": "A hash mapping edge-function bundle formats to the code_sha of each bundle. The\nresponse's required_edge_functions lists which of these still need to be uploaded.\n"
21969
+ },
21741
21970
  "function_schedules": {
21742
21971
  "type": "array",
21743
21972
  "items": {
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.56.1",
4
+ "version": "2.57.1",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [