@netlify/open-api 2.24.0 → 2.25.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.
Files changed (2) hide show
  1. package/dist/swagger.json +190 -414
  2. package/package.json +1 -1
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.24.0",
4
+ "version": "2.25.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/",
@@ -320,39 +320,6 @@
320
320
  "processing_settings": {
321
321
  "type": "object",
322
322
  "properties": {
323
- "skip": {
324
- "type": "boolean"
325
- },
326
- "css": {
327
- "type": "object",
328
- "properties": {
329
- "bundle": {
330
- "type": "boolean"
331
- },
332
- "minify": {
333
- "type": "boolean"
334
- }
335
- }
336
- },
337
- "js": {
338
- "type": "object",
339
- "properties": {
340
- "bundle": {
341
- "type": "boolean"
342
- },
343
- "minify": {
344
- "type": "boolean"
345
- }
346
- }
347
- },
348
- "images": {
349
- "type": "object",
350
- "properties": {
351
- "optimize": {
352
- "type": "boolean"
353
- }
354
- }
355
- },
356
323
  "html": {
357
324
  "type": "object",
358
325
  "properties": {
@@ -463,7 +430,7 @@
463
430
  }
464
431
  }
465
432
  },
466
- "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
433
+ "description": "**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
467
434
  },
468
435
  "post": {
469
436
  "operationId": "createSite",
@@ -697,39 +664,6 @@
697
664
  "processing_settings": {
698
665
  "type": "object",
699
666
  "properties": {
700
- "skip": {
701
- "type": "boolean"
702
- },
703
- "css": {
704
- "type": "object",
705
- "properties": {
706
- "bundle": {
707
- "type": "boolean"
708
- },
709
- "minify": {
710
- "type": "boolean"
711
- }
712
- }
713
- },
714
- "js": {
715
- "type": "object",
716
- "properties": {
717
- "bundle": {
718
- "type": "boolean"
719
- },
720
- "minify": {
721
- "type": "boolean"
722
- }
723
- }
724
- },
725
- "images": {
726
- "type": "object",
727
- "properties": {
728
- "optimize": {
729
- "type": "boolean"
730
- }
731
- }
732
- },
733
667
  "html": {
734
668
  "type": "object",
735
669
  "properties": {
@@ -1109,39 +1043,6 @@
1109
1043
  "processing_settings": {
1110
1044
  "type": "object",
1111
1045
  "properties": {
1112
- "skip": {
1113
- "type": "boolean"
1114
- },
1115
- "css": {
1116
- "type": "object",
1117
- "properties": {
1118
- "bundle": {
1119
- "type": "boolean"
1120
- },
1121
- "minify": {
1122
- "type": "boolean"
1123
- }
1124
- }
1125
- },
1126
- "js": {
1127
- "type": "object",
1128
- "properties": {
1129
- "bundle": {
1130
- "type": "boolean"
1131
- },
1132
- "minify": {
1133
- "type": "boolean"
1134
- }
1135
- }
1136
- },
1137
- "images": {
1138
- "type": "object",
1139
- "properties": {
1140
- "optimize": {
1141
- "type": "boolean"
1142
- }
1143
- }
1144
- },
1145
1046
  "html": {
1146
1047
  "type": "object",
1147
1048
  "properties": {
@@ -1251,7 +1152,7 @@
1251
1152
  }
1252
1153
  }
1253
1154
  },
1254
- "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site."
1155
+ "description": "**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site."
1255
1156
  }
1256
1157
  },
1257
1158
  "/sites/{site_id}": {
@@ -1497,39 +1398,6 @@
1497
1398
  "processing_settings": {
1498
1399
  "type": "object",
1499
1400
  "properties": {
1500
- "skip": {
1501
- "type": "boolean"
1502
- },
1503
- "css": {
1504
- "type": "object",
1505
- "properties": {
1506
- "bundle": {
1507
- "type": "boolean"
1508
- },
1509
- "minify": {
1510
- "type": "boolean"
1511
- }
1512
- }
1513
- },
1514
- "js": {
1515
- "type": "object",
1516
- "properties": {
1517
- "bundle": {
1518
- "type": "boolean"
1519
- },
1520
- "minify": {
1521
- "type": "boolean"
1522
- }
1523
- }
1524
- },
1525
- "images": {
1526
- "type": "object",
1527
- "properties": {
1528
- "optimize": {
1529
- "type": "boolean"
1530
- }
1531
- }
1532
- },
1533
1401
  "html": {
1534
1402
  "type": "object",
1535
1403
  "properties": {
@@ -1639,7 +1507,7 @@
1639
1507
  }
1640
1508
  }
1641
1509
  },
1642
- "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
1510
+ "description": "**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
1643
1511
  },
1644
1512
  "patch": {
1645
1513
  "operationId": "updateSite",
@@ -1873,39 +1741,6 @@
1873
1741
  "processing_settings": {
1874
1742
  "type": "object",
1875
1743
  "properties": {
1876
- "skip": {
1877
- "type": "boolean"
1878
- },
1879
- "css": {
1880
- "type": "object",
1881
- "properties": {
1882
- "bundle": {
1883
- "type": "boolean"
1884
- },
1885
- "minify": {
1886
- "type": "boolean"
1887
- }
1888
- }
1889
- },
1890
- "js": {
1891
- "type": "object",
1892
- "properties": {
1893
- "bundle": {
1894
- "type": "boolean"
1895
- },
1896
- "minify": {
1897
- "type": "boolean"
1898
- }
1899
- }
1900
- },
1901
- "images": {
1902
- "type": "object",
1903
- "properties": {
1904
- "optimize": {
1905
- "type": "boolean"
1906
- }
1907
- }
1908
- },
1909
1744
  "html": {
1910
1745
  "type": "object",
1911
1746
  "properties": {
@@ -2280,39 +2115,6 @@
2280
2115
  "processing_settings": {
2281
2116
  "type": "object",
2282
2117
  "properties": {
2283
- "skip": {
2284
- "type": "boolean"
2285
- },
2286
- "css": {
2287
- "type": "object",
2288
- "properties": {
2289
- "bundle": {
2290
- "type": "boolean"
2291
- },
2292
- "minify": {
2293
- "type": "boolean"
2294
- }
2295
- }
2296
- },
2297
- "js": {
2298
- "type": "object",
2299
- "properties": {
2300
- "bundle": {
2301
- "type": "boolean"
2302
- },
2303
- "minify": {
2304
- "type": "boolean"
2305
- }
2306
- }
2307
- },
2308
- "images": {
2309
- "type": "object",
2310
- "properties": {
2311
- "optimize": {
2312
- "type": "boolean"
2313
- }
2314
- }
2315
- },
2316
2118
  "html": {
2317
2119
  "type": "object",
2318
2120
  "properties": {
@@ -2422,7 +2224,7 @@
2422
2224
  }
2423
2225
  }
2424
2226
  },
2425
- "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [updateEnvVar](#tag/environmentVariables/operation/updateEnvVar) to update a site's environment variables."
2227
+ "description": "**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [updateEnvVar](#tag/environmentVariables/operation/updateEnvVar) to update a site's environment variables."
2426
2228
  },
2427
2229
  "delete": {
2428
2230
  "operationId": "deleteSite",
@@ -2989,6 +2791,174 @@
2989
2791
  }
2990
2792
  }
2991
2793
  },
2794
+ "/api/v1/sites/{site_id}/env": {
2795
+ "get": {
2796
+ "tags": [
2797
+ "environmentVariables"
2798
+ ],
2799
+ "operationId": "getSiteEnvVars",
2800
+ "parameters": [
2801
+ {
2802
+ "name": "context_name",
2803
+ "description": "Filter by deploy context",
2804
+ "required": false,
2805
+ "in": "query",
2806
+ "type": "string",
2807
+ "enum": [
2808
+ "all",
2809
+ "dev",
2810
+ "branch-deploy",
2811
+ "deploy-preview",
2812
+ "production"
2813
+ ]
2814
+ },
2815
+ {
2816
+ "name": "scope",
2817
+ "description": "Filter by scope",
2818
+ "required": false,
2819
+ "in": "query",
2820
+ "type": "string",
2821
+ "enum": [
2822
+ "builds",
2823
+ "functions",
2824
+ "runtime",
2825
+ "post_processing"
2826
+ ]
2827
+ },
2828
+ {
2829
+ "name": "site_id",
2830
+ "description": "Scope response to site_id",
2831
+ "required": true,
2832
+ "type": "string",
2833
+ "in": "path"
2834
+ }
2835
+ ],
2836
+ "responses": {
2837
+ "200": {
2838
+ "description": "OK",
2839
+ "schema": {
2840
+ "type": "array",
2841
+ "items": {
2842
+ "type": "object",
2843
+ "properties": {
2844
+ "key": {
2845
+ "type": "string",
2846
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
2847
+ "x-faker": "commerce.productName"
2848
+ },
2849
+ "scopes": {
2850
+ "type": "array",
2851
+ "items": {
2852
+ "type": "string",
2853
+ "enum": [
2854
+ "builds",
2855
+ "functions",
2856
+ "runtime",
2857
+ "post-processing"
2858
+ ]
2859
+ },
2860
+ "description": "The scopes that this environment variable is set to"
2861
+ },
2862
+ "values": {
2863
+ "type": "array",
2864
+ "items": {
2865
+ "type": "object",
2866
+ "properties": {
2867
+ "id": {
2868
+ "type": "string",
2869
+ "description": "The environment variable value's universally unique ID",
2870
+ "x-faker": "datatype.uuid"
2871
+ },
2872
+ "value": {
2873
+ "type": "string",
2874
+ "description": "The environment variable's unencrypted value",
2875
+ "x-faker": "internet.password"
2876
+ },
2877
+ "context": {
2878
+ "type": "string",
2879
+ "enum": [
2880
+ "all",
2881
+ "dev",
2882
+ "branch-deploy",
2883
+ "deploy-preview",
2884
+ "production",
2885
+ "branch"
2886
+ ],
2887
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
2888
+ },
2889
+ "context_parameter": {
2890
+ "type": "string",
2891
+ "description": "An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`."
2892
+ }
2893
+ },
2894
+ "description": "Environment variable value model definition"
2895
+ },
2896
+ "description": "An array of Value objects containing values and metadata",
2897
+ "x-faker": "internet.password"
2898
+ },
2899
+ "is_secret": {
2900
+ "type": "boolean",
2901
+ "description": "Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)"
2902
+ },
2903
+ "updated_at": {
2904
+ "type": "string",
2905
+ "format": "date-time",
2906
+ "description": "The timestamp of when the value was last updated",
2907
+ "x-faker": "date.past"
2908
+ },
2909
+ "updated_by": {
2910
+ "type": "object",
2911
+ "properties": {
2912
+ "id": {
2913
+ "type": "string",
2914
+ "description": "The user's unique identifier",
2915
+ "x-faker": "datatype.number"
2916
+ },
2917
+ "full_name": {
2918
+ "type": "string",
2919
+ "description": "The user's full name (first and last)",
2920
+ "x-faker": "name.findName"
2921
+ },
2922
+ "email": {
2923
+ "type": "string",
2924
+ "description": "The user's email address",
2925
+ "x-faker": "internet.email"
2926
+ },
2927
+ "avatar_url": {
2928
+ "type": "string",
2929
+ "description": "A URL pointing to the user's avatar",
2930
+ "x-faker": "internet.avatar"
2931
+ }
2932
+ }
2933
+ }
2934
+ },
2935
+ "description": "Environment variable model definition"
2936
+ }
2937
+ }
2938
+ },
2939
+ "default": {
2940
+ "description": "error",
2941
+ "schema": {
2942
+ "type": "object",
2943
+ "required": [
2944
+ "message"
2945
+ ],
2946
+ "properties": {
2947
+ "code": {
2948
+ "type": "integer",
2949
+ "format": "int64"
2950
+ },
2951
+ "message": {
2952
+ "type": "string",
2953
+ "x-nullable": false
2954
+ }
2955
+ }
2956
+ }
2957
+ }
2958
+ },
2959
+ "description": "Returns all environment variables for a site. This convenience method behaves the same as `getEnvVars` but doesn't require an `account_id` as input."
2960
+ }
2961
+ },
2992
2962
  "/accounts/{account_id}/env/{key}": {
2993
2963
  "get": {
2994
2964
  "tags": [
@@ -5531,6 +5501,9 @@
5531
5501
  "OPTIONS"
5532
5502
  ]
5533
5503
  }
5504
+ },
5505
+ "prefer_static": {
5506
+ "type": "boolean"
5534
5507
  }
5535
5508
  }
5536
5509
  }
@@ -5960,6 +5933,9 @@
5960
5933
  "OPTIONS"
5961
5934
  ]
5962
5935
  }
5936
+ },
5937
+ "prefer_static": {
5938
+ "type": "boolean"
5963
5939
  }
5964
5940
  }
5965
5941
  }
@@ -6963,39 +6939,6 @@
6963
6939
  "processing_settings": {
6964
6940
  "type": "object",
6965
6941
  "properties": {
6966
- "skip": {
6967
- "type": "boolean"
6968
- },
6969
- "css": {
6970
- "type": "object",
6971
- "properties": {
6972
- "bundle": {
6973
- "type": "boolean"
6974
- },
6975
- "minify": {
6976
- "type": "boolean"
6977
- }
6978
- }
6979
- },
6980
- "js": {
6981
- "type": "object",
6982
- "properties": {
6983
- "bundle": {
6984
- "type": "boolean"
6985
- },
6986
- "minify": {
6987
- "type": "boolean"
6988
- }
6989
- }
6990
- },
6991
- "images": {
6992
- "type": "object",
6993
- "properties": {
6994
- "optimize": {
6995
- "type": "boolean"
6996
- }
6997
- }
6998
- },
6999
6942
  "html": {
7000
6943
  "type": "object",
7001
6944
  "properties": {
@@ -9852,39 +9795,6 @@
9852
9795
  "processing_settings": {
9853
9796
  "type": "object",
9854
9797
  "properties": {
9855
- "skip": {
9856
- "type": "boolean"
9857
- },
9858
- "css": {
9859
- "type": "object",
9860
- "properties": {
9861
- "bundle": {
9862
- "type": "boolean"
9863
- },
9864
- "minify": {
9865
- "type": "boolean"
9866
- }
9867
- }
9868
- },
9869
- "js": {
9870
- "type": "object",
9871
- "properties": {
9872
- "bundle": {
9873
- "type": "boolean"
9874
- },
9875
- "minify": {
9876
- "type": "boolean"
9877
- }
9878
- }
9879
- },
9880
- "images": {
9881
- "type": "object",
9882
- "properties": {
9883
- "optimize": {
9884
- "type": "boolean"
9885
- }
9886
- }
9887
- },
9888
9798
  "html": {
9889
9799
  "type": "object",
9890
9800
  "properties": {
@@ -10269,39 +10179,6 @@
10269
10179
  "processing_settings": {
10270
10180
  "type": "object",
10271
10181
  "properties": {
10272
- "skip": {
10273
- "type": "boolean"
10274
- },
10275
- "css": {
10276
- "type": "object",
10277
- "properties": {
10278
- "bundle": {
10279
- "type": "boolean"
10280
- },
10281
- "minify": {
10282
- "type": "boolean"
10283
- }
10284
- }
10285
- },
10286
- "js": {
10287
- "type": "object",
10288
- "properties": {
10289
- "bundle": {
10290
- "type": "boolean"
10291
- },
10292
- "minify": {
10293
- "type": "boolean"
10294
- }
10295
- }
10296
- },
10297
- "images": {
10298
- "type": "object",
10299
- "properties": {
10300
- "optimize": {
10301
- "type": "boolean"
10302
- }
10303
- }
10304
- },
10305
10182
  "html": {
10306
10183
  "type": "object",
10307
10184
  "properties": {
@@ -10411,7 +10288,7 @@
10411
10288
  }
10412
10289
  }
10413
10290
  },
10414
- "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site."
10291
+ "description": "**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site."
10415
10292
  },
10416
10293
  "get": {
10417
10294
  "operationId": "listSitesForAccount",
@@ -10668,39 +10545,6 @@
10668
10545
  "processing_settings": {
10669
10546
  "type": "object",
10670
10547
  "properties": {
10671
- "skip": {
10672
- "type": "boolean"
10673
- },
10674
- "css": {
10675
- "type": "object",
10676
- "properties": {
10677
- "bundle": {
10678
- "type": "boolean"
10679
- },
10680
- "minify": {
10681
- "type": "boolean"
10682
- }
10683
- }
10684
- },
10685
- "js": {
10686
- "type": "object",
10687
- "properties": {
10688
- "bundle": {
10689
- "type": "boolean"
10690
- },
10691
- "minify": {
10692
- "type": "boolean"
10693
- }
10694
- }
10695
- },
10696
- "images": {
10697
- "type": "object",
10698
- "properties": {
10699
- "optimize": {
10700
- "type": "boolean"
10701
- }
10702
- }
10703
- },
10704
10548
  "html": {
10705
10549
  "type": "object",
10706
10550
  "properties": {
@@ -10811,7 +10655,7 @@
10811
10655
  }
10812
10656
  }
10813
10657
  },
10814
- "description": "**Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
10658
+ "description": "**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables."
10815
10659
  }
10816
10660
  },
10817
10661
  "/{account_slug}/members": {
@@ -14577,39 +14421,6 @@
14577
14421
  "processing_settings": {
14578
14422
  "type": "object",
14579
14423
  "properties": {
14580
- "skip": {
14581
- "type": "boolean"
14582
- },
14583
- "css": {
14584
- "type": "object",
14585
- "properties": {
14586
- "bundle": {
14587
- "type": "boolean"
14588
- },
14589
- "minify": {
14590
- "type": "boolean"
14591
- }
14592
- }
14593
- },
14594
- "js": {
14595
- "type": "object",
14596
- "properties": {
14597
- "bundle": {
14598
- "type": "boolean"
14599
- },
14600
- "minify": {
14601
- "type": "boolean"
14602
- }
14603
- }
14604
- },
14605
- "images": {
14606
- "type": "object",
14607
- "properties": {
14608
- "optimize": {
14609
- "type": "boolean"
14610
- }
14611
- }
14612
- },
14613
14424
  "html": {
14614
14425
  "type": "object",
14615
14426
  "properties": {
@@ -14918,39 +14729,6 @@
14918
14729
  "processing_settings": {
14919
14730
  "type": "object",
14920
14731
  "properties": {
14921
- "skip": {
14922
- "type": "boolean"
14923
- },
14924
- "css": {
14925
- "type": "object",
14926
- "properties": {
14927
- "bundle": {
14928
- "type": "boolean"
14929
- },
14930
- "minify": {
14931
- "type": "boolean"
14932
- }
14933
- }
14934
- },
14935
- "js": {
14936
- "type": "object",
14937
- "properties": {
14938
- "bundle": {
14939
- "type": "boolean"
14940
- },
14941
- "minify": {
14942
- "type": "boolean"
14943
- }
14944
- }
14945
- },
14946
- "images": {
14947
- "type": "object",
14948
- "properties": {
14949
- "optimize": {
14950
- "type": "boolean"
14951
- }
14952
- }
14953
- },
14954
14732
  "html": {
14955
14733
  "type": "object",
14956
14734
  "properties": {
@@ -15710,6 +15488,9 @@
15710
15488
  "OPTIONS"
15711
15489
  ]
15712
15490
  }
15491
+ },
15492
+ "prefer_static": {
15493
+ "type": "boolean"
15713
15494
  }
15714
15495
  }
15715
15496
  }
@@ -16781,17 +16562,6 @@
16781
16562
  }
16782
16563
  }
16783
16564
  },
16784
- "minifyOptions": {
16785
- "type": "object",
16786
- "properties": {
16787
- "bundle": {
16788
- "type": "boolean"
16789
- },
16790
- "minify": {
16791
- "type": "boolean"
16792
- }
16793
- }
16794
- },
16795
16565
  "buildSetup": {
16796
16566
  "type": "object",
16797
16567
  "properties": {
@@ -16976,6 +16746,9 @@
16976
16746
  "OPTIONS"
16977
16747
  ]
16978
16748
  }
16749
+ },
16750
+ "prefer_static": {
16751
+ "type": "boolean"
16979
16752
  }
16980
16753
  }
16981
16754
  }
@@ -17007,6 +16780,9 @@
17007
16780
  "OPTIONS"
17008
16781
  ]
17009
16782
  }
16783
+ },
16784
+ "prefer_static": {
16785
+ "type": "boolean"
17010
16786
  }
17011
16787
  }
17012
16788
  }
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.24.0",
4
+ "version": "2.25.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [