@netlify/open-api 2.34.0 → 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 CHANGED
@@ -26,6 +26,9 @@ export interface paths {
26
26
  get: operations["showSiteTLSCertificate"];
27
27
  post: operations["provisionSiteTLSCertificate"];
28
28
  };
29
+ "/sites/{site_id}/ssl/certificates": {
30
+ get: operations["getAllCertificates"];
31
+ };
29
32
  "/accounts/{account_id}/env": {
30
33
  /** Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI. */
31
34
  get: operations["getEnvVars"];
@@ -676,6 +679,7 @@ export interface components {
676
679
  managed_dns?: boolean;
677
680
  deploy_url?: string;
678
681
  published_deploy?: components["schemas"]["deploy"];
682
+ account_id?: string;
679
683
  account_name?: string;
680
684
  account_slug?: string;
681
685
  git_provider?: string;
@@ -739,7 +743,7 @@ export interface components {
739
743
  scopes?: ("builds" | "functions" | "runtime" | "post-processing")[];
740
744
  /** @description An array of Value objects containing values and metadata */
741
745
  values?: components["schemas"]["envVarValue"][];
742
- /** @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) */
746
+ /** @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. */
743
747
  is_secret?: boolean;
744
748
  /**
745
749
  * Format: date-time
@@ -1486,6 +1490,28 @@ export interface operations {
1486
1490
  default: components["responses"]["error"];
1487
1491
  };
1488
1492
  };
1493
+ getAllCertificates: {
1494
+ parameters: {
1495
+ path: {
1496
+ site_id: string;
1497
+ };
1498
+ query: {
1499
+ domain: string;
1500
+ };
1501
+ };
1502
+ responses: {
1503
+ /** Array of SNI Certificates */
1504
+ 200: {
1505
+ content: {
1506
+ "application/json": components["schemas"]["sniCertificate"][];
1507
+ };
1508
+ };
1509
+ /** Not Found */
1510
+ 404: unknown;
1511
+ /** Unprocessable Entity */
1512
+ 422: unknown;
1513
+ };
1514
+ };
1489
1515
  /** Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI. */
1490
1516
  getEnvVars: {
1491
1517
  parameters: {
@@ -1546,7 +1572,7 @@ export interface operations {
1546
1572
  /** @description The scopes that this environment variable is set to (Pro plans and above) */
1547
1573
  scopes?: ("builds" | "functions" | "runtime" | "post-processing")[];
1548
1574
  values?: components["schemas"]["envVarValue"][];
1549
- /** @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) */
1575
+ /** @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. */
1550
1576
  is_secret?: boolean;
1551
1577
  }[];
1552
1578
  };
@@ -1636,7 +1662,7 @@ export interface operations {
1636
1662
  /** @description The scopes that this environment variable is set to (Pro plans and above) */
1637
1663
  scopes?: ("builds" | "functions" | "runtime" | "post-processing")[];
1638
1664
  values?: components["schemas"]["envVarValue"][];
1639
- /** @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) */
1665
+ /** @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. */
1640
1666
  is_secret?: boolean;
1641
1667
  };
1642
1668
  };
package/dist/swagger.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.34.0",
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’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)",
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’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)"
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",
@@ -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’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)"
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’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)"
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’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)"
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’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)"
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",
@@ -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’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)"
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’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)"
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",
@@ -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’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)"
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",
@@ -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’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)"
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.34.0",
4
+ "version": "2.35.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [