@netlify/open-api 2.33.1 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3667 -0
- package/dist/swagger.json +124 -18
- package/package.json +9 -4
package/dist/swagger.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.35.0",
|
|
5
5
|
"title": "Netlify's API documentation",
|
|
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
|
|
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/",
|
|
8
8
|
"x-logo": {
|
|
9
9
|
"url": "netlify-logo.png",
|
|
@@ -291,6 +291,9 @@
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
+
"account_id": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
294
297
|
"account_name": {
|
|
295
298
|
"type": "string"
|
|
296
299
|
},
|
|
@@ -627,6 +630,9 @@
|
|
|
627
630
|
}
|
|
628
631
|
}
|
|
629
632
|
},
|
|
633
|
+
"account_id": {
|
|
634
|
+
"type": "string"
|
|
635
|
+
},
|
|
630
636
|
"account_name": {
|
|
631
637
|
"type": "string"
|
|
632
638
|
},
|
|
@@ -998,6 +1004,9 @@
|
|
|
998
1004
|
}
|
|
999
1005
|
}
|
|
1000
1006
|
},
|
|
1007
|
+
"account_id": {
|
|
1008
|
+
"type": "string"
|
|
1009
|
+
},
|
|
1001
1010
|
"account_name": {
|
|
1002
1011
|
"type": "string"
|
|
1003
1012
|
},
|
|
@@ -1345,6 +1354,9 @@
|
|
|
1345
1354
|
}
|
|
1346
1355
|
}
|
|
1347
1356
|
},
|
|
1357
|
+
"account_id": {
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1348
1360
|
"account_name": {
|
|
1349
1361
|
"type": "string"
|
|
1350
1362
|
},
|
|
@@ -1680,6 +1692,9 @@
|
|
|
1680
1692
|
}
|
|
1681
1693
|
}
|
|
1682
1694
|
},
|
|
1695
|
+
"account_id": {
|
|
1696
|
+
"type": "string"
|
|
1697
|
+
},
|
|
1683
1698
|
"account_name": {
|
|
1684
1699
|
"type": "string"
|
|
1685
1700
|
},
|
|
@@ -2046,6 +2061,9 @@
|
|
|
2046
2061
|
}
|
|
2047
2062
|
}
|
|
2048
2063
|
},
|
|
2064
|
+
"account_id": {
|
|
2065
|
+
"type": "string"
|
|
2066
|
+
},
|
|
2049
2067
|
"account_name": {
|
|
2050
2068
|
"type": "string"
|
|
2051
2069
|
},
|
|
@@ -2354,6 +2372,68 @@
|
|
|
2354
2372
|
}
|
|
2355
2373
|
}
|
|
2356
2374
|
},
|
|
2375
|
+
"/sites/{site_id}/ssl/certificates": {
|
|
2376
|
+
"get": {
|
|
2377
|
+
"operationId": "getAllCertificates",
|
|
2378
|
+
"tags": [
|
|
2379
|
+
"sniCertificate"
|
|
2380
|
+
],
|
|
2381
|
+
"parameters": [
|
|
2382
|
+
{
|
|
2383
|
+
"name": "site_id",
|
|
2384
|
+
"type": "string",
|
|
2385
|
+
"in": "path",
|
|
2386
|
+
"required": true
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"name": "domain",
|
|
2390
|
+
"type": "string",
|
|
2391
|
+
"in": "query",
|
|
2392
|
+
"required": true
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
"responses": {
|
|
2396
|
+
"200": {
|
|
2397
|
+
"description": "Array of SNI Certificates",
|
|
2398
|
+
"schema": {
|
|
2399
|
+
"type": "array",
|
|
2400
|
+
"items": {
|
|
2401
|
+
"type": "object",
|
|
2402
|
+
"properties": {
|
|
2403
|
+
"state": {
|
|
2404
|
+
"type": "string"
|
|
2405
|
+
},
|
|
2406
|
+
"domains": {
|
|
2407
|
+
"type": "array",
|
|
2408
|
+
"items": {
|
|
2409
|
+
"type": "string"
|
|
2410
|
+
}
|
|
2411
|
+
},
|
|
2412
|
+
"created_at": {
|
|
2413
|
+
"type": "string",
|
|
2414
|
+
"format": "dateTime"
|
|
2415
|
+
},
|
|
2416
|
+
"updated_at": {
|
|
2417
|
+
"type": "string",
|
|
2418
|
+
"format": "dateTime"
|
|
2419
|
+
},
|
|
2420
|
+
"expires_at": {
|
|
2421
|
+
"type": "string",
|
|
2422
|
+
"format": "dateTime"
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2428
|
+
"404": {
|
|
2429
|
+
"description": "Not Found"
|
|
2430
|
+
},
|
|
2431
|
+
"422": {
|
|
2432
|
+
"description": "Unprocessable Entity"
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2357
2437
|
"/accounts/{account_id}/env": {
|
|
2358
2438
|
"get": {
|
|
2359
2439
|
"tags": [
|
|
@@ -2468,7 +2548,7 @@
|
|
|
2468
2548
|
},
|
|
2469
2549
|
"is_secret": {
|
|
2470
2550
|
"type": "boolean",
|
|
2471
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
2551
|
+
"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."
|
|
2472
2552
|
},
|
|
2473
2553
|
"updated_at": {
|
|
2474
2554
|
"type": "string",
|
|
@@ -2526,14 +2606,14 @@
|
|
|
2526
2606
|
}
|
|
2527
2607
|
}
|
|
2528
2608
|
},
|
|
2529
|
-
"description": "Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
|
|
2609
|
+
"description": "Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI."
|
|
2530
2610
|
},
|
|
2531
2611
|
"post": {
|
|
2532
2612
|
"tags": [
|
|
2533
2613
|
"environmentVariables"
|
|
2534
2614
|
],
|
|
2535
2615
|
"operationId": "createEnvVars",
|
|
2536
|
-
"description": "Creates new environment variables. Granular scopes are available on Pro plans and above.
|
|
2616
|
+
"description": "Creates new environment variables. Granular scopes are available on Pro plans and above.",
|
|
2537
2617
|
"parameters": [
|
|
2538
2618
|
{
|
|
2539
2619
|
"in": "body",
|
|
@@ -2597,7 +2677,7 @@
|
|
|
2597
2677
|
},
|
|
2598
2678
|
"is_secret": {
|
|
2599
2679
|
"type": "boolean",
|
|
2600
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
2680
|
+
"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."
|
|
2601
2681
|
}
|
|
2602
2682
|
}
|
|
2603
2683
|
}
|
|
@@ -2683,7 +2763,7 @@
|
|
|
2683
2763
|
},
|
|
2684
2764
|
"is_secret": {
|
|
2685
2765
|
"type": "boolean",
|
|
2686
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
2766
|
+
"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."
|
|
2687
2767
|
},
|
|
2688
2768
|
"updated_at": {
|
|
2689
2769
|
"type": "string",
|
|
@@ -2850,7 +2930,7 @@
|
|
|
2850
2930
|
},
|
|
2851
2931
|
"is_secret": {
|
|
2852
2932
|
"type": "boolean",
|
|
2853
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
2933
|
+
"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."
|
|
2854
2934
|
},
|
|
2855
2935
|
"updated_at": {
|
|
2856
2936
|
"type": "string",
|
|
@@ -3003,7 +3083,7 @@
|
|
|
3003
3083
|
},
|
|
3004
3084
|
"is_secret": {
|
|
3005
3085
|
"type": "boolean",
|
|
3006
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
3086
|
+
"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."
|
|
3007
3087
|
},
|
|
3008
3088
|
"updated_at": {
|
|
3009
3089
|
"type": "string",
|
|
@@ -3060,14 +3140,14 @@
|
|
|
3060
3140
|
}
|
|
3061
3141
|
}
|
|
3062
3142
|
},
|
|
3063
|
-
"description": "Returns an individual environment variable.
|
|
3143
|
+
"description": "Returns an individual environment variable."
|
|
3064
3144
|
},
|
|
3065
3145
|
"put": {
|
|
3066
3146
|
"tags": [
|
|
3067
3147
|
"environmentVariables"
|
|
3068
3148
|
],
|
|
3069
3149
|
"operationId": "updateEnvVar",
|
|
3070
|
-
"description": "Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.
|
|
3150
|
+
"description": "Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.",
|
|
3071
3151
|
"parameters": [
|
|
3072
3152
|
{
|
|
3073
3153
|
"name": "account_id",
|
|
@@ -3143,7 +3223,7 @@
|
|
|
3143
3223
|
},
|
|
3144
3224
|
"is_secret": {
|
|
3145
3225
|
"type": "boolean",
|
|
3146
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
3226
|
+
"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."
|
|
3147
3227
|
}
|
|
3148
3228
|
}
|
|
3149
3229
|
}
|
|
@@ -3219,7 +3299,7 @@
|
|
|
3219
3299
|
},
|
|
3220
3300
|
"is_secret": {
|
|
3221
3301
|
"type": "boolean",
|
|
3222
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
3302
|
+
"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."
|
|
3223
3303
|
},
|
|
3224
3304
|
"updated_at": {
|
|
3225
3305
|
"type": "string",
|
|
@@ -3282,7 +3362,7 @@
|
|
|
3282
3362
|
"environmentVariables"
|
|
3283
3363
|
],
|
|
3284
3364
|
"operationId": "setEnvVarValue",
|
|
3285
|
-
"description": "Updates or creates a new value for an existing environment variable.
|
|
3365
|
+
"description": "Updates or creates a new value for an existing environment variable.",
|
|
3286
3366
|
"parameters": [
|
|
3287
3367
|
{
|
|
3288
3368
|
"name": "account_id",
|
|
@@ -3397,7 +3477,7 @@
|
|
|
3397
3477
|
},
|
|
3398
3478
|
"is_secret": {
|
|
3399
3479
|
"type": "boolean",
|
|
3400
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
3480
|
+
"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."
|
|
3401
3481
|
},
|
|
3402
3482
|
"updated_at": {
|
|
3403
3483
|
"type": "string",
|
|
@@ -3507,7 +3587,7 @@
|
|
|
3507
3587
|
}
|
|
3508
3588
|
}
|
|
3509
3589
|
},
|
|
3510
|
-
"description": "Deletes an environment variable
|
|
3590
|
+
"description": "Deletes an environment variable"
|
|
3511
3591
|
}
|
|
3512
3592
|
},
|
|
3513
3593
|
"/accounts/{account_id}/env/{key}/value/{id}": {
|
|
@@ -3570,7 +3650,7 @@
|
|
|
3570
3650
|
}
|
|
3571
3651
|
}
|
|
3572
3652
|
},
|
|
3573
|
-
"description": "Deletes a specific environment variable value.
|
|
3653
|
+
"description": "Deletes a specific environment variable value."
|
|
3574
3654
|
}
|
|
3575
3655
|
},
|
|
3576
3656
|
"/sites/{site_id}/functions": {
|
|
@@ -7046,6 +7126,9 @@
|
|
|
7046
7126
|
}
|
|
7047
7127
|
}
|
|
7048
7128
|
},
|
|
7129
|
+
"account_id": {
|
|
7130
|
+
"type": "string"
|
|
7131
|
+
},
|
|
7049
7132
|
"account_name": {
|
|
7050
7133
|
"type": "string"
|
|
7051
7134
|
},
|
|
@@ -9875,6 +9958,9 @@
|
|
|
9875
9958
|
}
|
|
9876
9959
|
}
|
|
9877
9960
|
},
|
|
9961
|
+
"account_id": {
|
|
9962
|
+
"type": "string"
|
|
9963
|
+
},
|
|
9878
9964
|
"account_name": {
|
|
9879
9965
|
"type": "string"
|
|
9880
9966
|
},
|
|
@@ -10251,6 +10337,9 @@
|
|
|
10251
10337
|
}
|
|
10252
10338
|
}
|
|
10253
10339
|
},
|
|
10340
|
+
"account_id": {
|
|
10341
|
+
"type": "string"
|
|
10342
|
+
},
|
|
10254
10343
|
"account_name": {
|
|
10255
10344
|
"type": "string"
|
|
10256
10345
|
},
|
|
@@ -10609,6 +10698,9 @@
|
|
|
10609
10698
|
}
|
|
10610
10699
|
}
|
|
10611
10700
|
},
|
|
10701
|
+
"account_id": {
|
|
10702
|
+
"type": "string"
|
|
10703
|
+
},
|
|
10612
10704
|
"account_name": {
|
|
10613
10705
|
"type": "string"
|
|
10614
10706
|
},
|
|
@@ -11214,6 +11306,14 @@
|
|
|
11214
11306
|
"tags": [
|
|
11215
11307
|
"accountMembership"
|
|
11216
11308
|
],
|
|
11309
|
+
"parameters": [
|
|
11310
|
+
{
|
|
11311
|
+
"name": "minimal",
|
|
11312
|
+
"x-internal": true,
|
|
11313
|
+
"type": "boolean",
|
|
11314
|
+
"in": "query"
|
|
11315
|
+
}
|
|
11316
|
+
],
|
|
11217
11317
|
"responses": {
|
|
11218
11318
|
"200": {
|
|
11219
11319
|
"description": "OK",
|
|
@@ -15139,6 +15239,9 @@
|
|
|
15139
15239
|
}
|
|
15140
15240
|
}
|
|
15141
15241
|
},
|
|
15242
|
+
"account_id": {
|
|
15243
|
+
"type": "string"
|
|
15244
|
+
},
|
|
15142
15245
|
"account_name": {
|
|
15143
15246
|
"type": "string"
|
|
15144
15247
|
},
|
|
@@ -15439,6 +15542,9 @@
|
|
|
15439
15542
|
}
|
|
15440
15543
|
}
|
|
15441
15544
|
},
|
|
15545
|
+
"account_id": {
|
|
15546
|
+
"type": "string"
|
|
15547
|
+
},
|
|
15442
15548
|
"account_name": {
|
|
15443
15549
|
"type": "string"
|
|
15444
15550
|
},
|
|
@@ -15769,7 +15875,7 @@
|
|
|
15769
15875
|
},
|
|
15770
15876
|
"is_secret": {
|
|
15771
15877
|
"type": "boolean",
|
|
15772
|
-
"description": "Secret values are only readable by code running on Netlify
|
|
15878
|
+
"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."
|
|
15773
15879
|
},
|
|
15774
15880
|
"updated_at": {
|
|
15775
15881
|
"type": "string",
|
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.
|
|
4
|
+
"version": "2.35.0",
|
|
5
5
|
"author": "Netlify",
|
|
6
6
|
"ava": {
|
|
7
7
|
"files": [
|
|
@@ -28,11 +28,15 @@
|
|
|
28
28
|
"execa": "^2.0.4",
|
|
29
29
|
"is-plain-obj": "^2.1.0",
|
|
30
30
|
"npm-run-all": "^4.1.5",
|
|
31
|
+
"openapi-typescript": "^5.4.2",
|
|
31
32
|
"prettier": "^2.8.7",
|
|
32
33
|
"swagger-parser": "^8.0.1",
|
|
33
34
|
"swagger2openapi": "^7.0.8"
|
|
34
35
|
},
|
|
35
|
-
"files": [
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/index.d.ts",
|
|
38
|
+
"dist/swagger.json"
|
|
39
|
+
],
|
|
36
40
|
"homepage": "https://github.com/netlify/open-api#readme",
|
|
37
41
|
"keywords": [
|
|
38
42
|
"netlify",
|
|
@@ -41,17 +45,18 @@
|
|
|
41
45
|
],
|
|
42
46
|
"license": "MIT",
|
|
43
47
|
"main": "dist/swagger.json",
|
|
48
|
+
"types": "dist/index.d.ts",
|
|
44
49
|
"repository": {
|
|
45
50
|
"type": "git",
|
|
46
51
|
"url": "git+https://github.com/netlify/open-api.git"
|
|
47
52
|
},
|
|
48
53
|
"scripts": {
|
|
49
|
-
"prepublishOnly": "npm
|
|
54
|
+
"prepublishOnly": "npm test",
|
|
50
55
|
"test": "run-s lint build unit",
|
|
51
56
|
"start": "run-s lint build",
|
|
52
57
|
"bundle": "redocly bundle external@latest --output external.yml",
|
|
53
58
|
"build": "run-s convert bundle redoc",
|
|
54
|
-
"postbuild": "swagger2openapi external.yml -o dist/openapi.json",
|
|
59
|
+
"postbuild": "swagger2openapi external.yml -o dist/openapi.json && openapi-typescript dist/openapi.json -o dist/index.d.ts --alphabetize --empty-objects-unknown",
|
|
55
60
|
"convert": "node src/convert.js",
|
|
56
61
|
"bump-swagger": "node src/bump-swagger.js",
|
|
57
62
|
"redoc": "node src/docs/build.js",
|