cdk-common 2.1.67 → 2.1.69

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 (56) hide show
  1. package/.jsii +74 -2
  2. package/API.md +72 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +13 -1
  5. package/lib/managed-policies.js +13 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +64 -25
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +18 -5
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +237 -3
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +1 -1
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/ffi.d.ts +486 -0
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +19 -6
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +21 -6
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +25 -0
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +1 -0
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +14 -1
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +92 -11
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +55 -0
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/iter.d.ts +150 -0
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +32 -0
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +112 -2
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +19 -2
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +84 -2
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +8 -7
  28. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  29. package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +64 -25
  30. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +18 -5
  31. package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +237 -3
  32. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +1 -1
  33. package/node_modules/@types/form-data/node_modules/@types/node/ffi.d.ts +486 -0
  34. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +19 -6
  35. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +21 -6
  36. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +25 -0
  37. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +1 -0
  38. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  39. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +14 -1
  40. package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +92 -11
  41. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +55 -0
  42. package/node_modules/@types/form-data/node_modules/@types/node/stream/iter.d.ts +150 -0
  43. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +32 -0
  44. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +112 -2
  45. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  46. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  47. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +19 -2
  48. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +84 -2
  49. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +8 -7
  50. package/node_modules/fast-uri/index.js +1 -1
  51. package/node_modules/fast-uri/package.json +1 -1
  52. package/node_modules/fast-uri/test/security.test.js +28 -0
  53. package/node_modules/sync-rpc/lib/index.js +6 -2
  54. package/node_modules/sync-rpc/lib/worker.js +16 -9
  55. package/node_modules/sync-rpc/package.json +1 -1
  56. package/package.json +4 -4
@@ -68,6 +68,7 @@
68
68
  /// <reference path="../dns/promises.d.ts" />
69
69
  /// <reference path="../domain.d.ts" />
70
70
  /// <reference path="../events.d.ts" />
71
+ /// <reference path="../ffi.d.ts" />
71
72
  /// <reference path="../fs.d.ts" />
72
73
  /// <reference path="../fs/promises.d.ts" />
73
74
  /// <reference path="../http.d.ts" />
@@ -974,6 +974,8 @@ declare module "node:util" {
974
974
  * `reason`.
975
975
  *
976
976
  * ```js
977
+ * import util from 'node:util';
978
+ *
977
979
  * function fn() {
978
980
  * return Promise.reject(null);
979
981
  * }
@@ -1246,13 +1248,28 @@ declare module "node:util" {
1246
1248
  *
1247
1249
  * The special format value `none` applies no additional styling to the text.
1248
1250
  *
1251
+ * In addition to predefined color names, `util.styleText()` supports hex color
1252
+ * strings using ANSI TrueColor (24-bit) escape sequences. Hex colors can be
1253
+ * specified in either 3-digit (`#RGB`) or 6-digit (`#RRGGBB`) format:
1254
+ *
1255
+ * ```js
1256
+ * import { styleText } from 'node:util';
1257
+ *
1258
+ * // 6-digit hex color
1259
+ * console.log(styleText('#ff5733', 'Orange text'));
1260
+ *
1261
+ * // 3-digit hex color (shorthand)
1262
+ * console.log(styleText('#f00', 'Red text'));
1263
+ * ```
1264
+ *
1249
1265
  * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v26.x/api/util.html#modifiers).
1250
- * @param format A text format or an Array of text formats defined in `util.inspect.colors`.
1266
+ * @param format A text format or an Array of text formats defined in `util.inspect.colors`, or a hex color in `#RGB`
1267
+ * or `#RRGGBB` form.
1251
1268
  * @param text The text to to be formatted.
1252
1269
  * @since v20.12.0
1253
1270
  */
1254
1271
  export function styleText(
1255
- format: InspectColor | readonly InspectColor[],
1272
+ format: InspectColor | readonly InspectColor[] | `#${string}`,
1256
1273
  text: string,
1257
1274
  options?: StyleTextOptions,
1258
1275
  ): string;
@@ -412,6 +412,21 @@ declare module "node:v8" {
412
412
  */
413
413
  [Symbol.dispose](): void;
414
414
  }
415
+ /**
416
+ * @since v26.1.0
417
+ */
418
+ interface SyncHeapProfileHandle {
419
+ /**
420
+ * Stopping collecting the profile and return the profile data.
421
+ * @since v26.1.0
422
+ */
423
+ stop(): string;
424
+ /**
425
+ * Stopping collecting the profile and the profile will be discarded.
426
+ * @since v26.1.0
427
+ */
428
+ [Symbol.dispose](): void;
429
+ }
415
430
  /**
416
431
  * @since v24.8.0
417
432
  */
@@ -444,18 +459,85 @@ declare module "node:v8" {
444
459
  */
445
460
  [Symbol.asyncDispose](): Promise<void>;
446
461
  }
462
+ interface CPUProfileOptions {
463
+ /**
464
+ * Requested sampling interval in milliseconds. **Default:** `0`.
465
+ */
466
+ sampleInterval?: number | undefined;
467
+ /**
468
+ * Maximum number of samples to keep before older
469
+ * entries are discarded. **Default:** `4294967295`.
470
+ */
471
+ maxBufferSize?: number | undefined;
472
+ }
447
473
  /**
448
474
  * Starting a CPU profile then return a `SyncCPUProfileHandle` object.
449
475
  * This API supports `using` syntax.
450
476
  *
451
477
  * ```js
452
- * const handle = v8.startCpuProfile();
478
+ * const handle = v8.startCpuProfile({ sampleInterval: 1, maxBufferSize: 10_000 });
453
479
  * const profile = handle.stop();
454
480
  * console.log(profile);
455
481
  * ```
456
482
  * @since v25.0.0
457
483
  */
458
- function startCpuProfile(): SyncCPUProfileHandle;
484
+ function startCpuProfile(options?: CPUProfileOptions): SyncCPUProfileHandle;
485
+ interface HeapProfileOptions {
486
+ /**
487
+ * The average sampling interval in bytes.
488
+ * **Default:** `524288` (512 KiB).
489
+ */
490
+ sampleInterval?: number | undefined;
491
+ /**
492
+ * The maximum stack depth for samples.
493
+ * **Default:** `16`.
494
+ */
495
+ stackDepth?: number | undefined;
496
+ /**
497
+ * Force garbage collection before taking the profile.
498
+ * **Default:** `false`.
499
+ */
500
+ forceGC?: boolean | undefined;
501
+ /**
502
+ * Include objects collected
503
+ * by major GC. **Default:** `false`.
504
+ */
505
+ includeObjectsCollectedByMajorGC?: boolean | undefined;
506
+ /**
507
+ * Include objects collected
508
+ * by minor GC. **Default:** `false`.
509
+ */
510
+ includeObjectsCollectedByMinorGC?: boolean | undefined;
511
+ }
512
+ /**
513
+ * Starting a heap profile then return a `SyncHeapProfileHandle` object.
514
+ * This API supports `using` syntax.
515
+ *
516
+ * ```js
517
+ * import v8 from 'node:v8';
518
+ *
519
+ * const handle = v8.startHeapProfile();
520
+ * const profile = handle.stop();
521
+ * console.log(profile);
522
+ * ```
523
+ *
524
+ * With custom parameters:
525
+ *
526
+ * ```js
527
+ * import v8 from 'node:v8';
528
+ *
529
+ * const handle = v8.startHeapProfile({
530
+ * sampleInterval: 1024,
531
+ * stackDepth: 8,
532
+ * forceGC: true,
533
+ * includeObjectsCollectedByMajorGC: true,
534
+ * });
535
+ * const profile = handle.stop();
536
+ * console.log(profile);
537
+ * ```
538
+ * @since v26.1.0
539
+ */
540
+ function startHeapProfile(options?: HeapProfileOptions): SyncHeapProfileHandle;
459
541
  /**
460
542
  * V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
461
543
  * If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
@@ -10,7 +10,7 @@ declare module "node:worker_threads" {
10
10
  import { Readable, Writable } from "node:stream";
11
11
  import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
12
12
  import { URL } from "node:url";
13
- import { CPUProfileHandle, HeapInfo, HeapProfileHandle } from "node:v8";
13
+ import { CPUProfileHandle, CPUProfileOptions, HeapInfo, HeapProfileHandle, HeapProfileOptions } from "node:v8";
14
14
  import { Context } from "node:vm";
15
15
  import { MessageEvent } from "undici-types";
16
16
  const isInternalThread: boolean;
@@ -259,7 +259,7 @@ declare module "node:worker_threads" {
259
259
  * `, { eval: true });
260
260
  *
261
261
  * worker.on('online', async () => {
262
- * const handle = await worker.startCpuProfile();
262
+ * const handle = await worker.startCpuProfile({ sampleInterval: 1 });
263
263
  * const profile = await handle.stop();
264
264
  * console.log(profile);
265
265
  * worker.terminate();
@@ -283,16 +283,16 @@ declare module "node:worker_threads" {
283
283
  * ```
284
284
  * @since v24.8.0
285
285
  */
286
- startCpuProfile(): Promise<CPUProfileHandle>;
286
+ startCpuProfile(options?: CPUProfileOptions): Promise<CPUProfileHandle>;
287
287
  /**
288
288
  * Starting a Heap profile then return a Promise that fulfills with an error
289
289
  * or an `HeapProfileHandle` object. This API supports `await using` syntax.
290
290
  *
291
291
  * ```js
292
- * const { Worker } = require('node:worker_threads');
292
+ * import { Worker } from 'node:worker_threads';
293
293
  *
294
294
  * const worker = new Worker(`
295
- * const { parentPort } = require('worker_threads');
295
+ * const { parentPort } = require('node:worker_threads');
296
296
  * parentPort.on('message', () => {});
297
297
  * `, { eval: true });
298
298
  *
@@ -307,7 +307,7 @@ declare module "node:worker_threads" {
307
307
  * `await using` example.
308
308
  *
309
309
  * ```js
310
- * const { Worker } = require('node:worker_threads');
310
+ * import { Worker } from 'node:worker_threads';
311
311
  *
312
312
  * const w = new Worker(`
313
313
  * const { parentPort } = require('node:worker_threads');
@@ -319,8 +319,9 @@ declare module "node:worker_threads" {
319
319
  * await using handle = await w.startHeapProfile();
320
320
  * });
321
321
  * ```
322
+ * @since v24.9.0
322
323
  */
323
- startHeapProfile(): Promise<HeapProfileHandle>;
324
+ startHeapProfile(options?: HeapProfileOptions): Promise<HeapProfileHandle>;
324
325
  /**
325
326
  * Calls `worker.terminate()` when the dispose scope is exited.
326
327
  *
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 24 Jun 2026 20:32:59 GMT
11
+ * Last updated: Wed, 08 Jul 2026 06:47:45 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1550,11 +1550,12 @@ declare module "node:buffer" {
1550
1550
  /**
1551
1551
  * If `value` is:
1552
1552
  *
1553
- * * a string, `value` is interpreted according to the character encoding in `encoding`.
1554
- * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
1555
- * To compare a partial `Buffer`, use `buf.subarray`.
1553
+ * * a string, `value` is interpreted according to the character encoding in
1554
+ * `encoding`.
1555
+ * * a `Buffer` or `Uint8Array`, `value` will be used in its entirety.
1556
+ * To compare a partial `Buffer`, use `buf.subarray`.
1556
1557
  * * a number, `value` will be interpreted as an unsigned 8-bit integer
1557
- * value between `0` and `255`.
1558
+ * value between `0` and `255`.
1558
1559
  *
1559
1560
  * ```js
1560
1561
  * import { Buffer } from 'node:buffer';
@@ -1582,12 +1583,13 @@ declare module "node:buffer" {
1582
1583
  * // Prints: 6
1583
1584
  * ```
1584
1585
  *
1585
- * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1586
+ * If `value` is not a string, number, or `Buffer`, this method will throw a
1587
+ * `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1586
1588
  * an integer between 0 and 255.
1587
1589
  *
1588
1590
  * If `byteOffset` is not a number, it will be coerced to a number. If the result
1589
1591
  * of coercion is `NaN` or `0`, then the entire buffer will be searched. This
1590
- * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
1592
+ * behavior matches `String.prototype.indexOf()`.
1591
1593
  *
1592
1594
  * ```js
1593
1595
  * import { Buffer } from 'node:buffer';
@@ -1608,14 +1610,27 @@ declare module "node:buffer" {
1608
1610
  * ```
1609
1611
  *
1610
1612
  * If `value` is an empty string or empty `Buffer` and `byteOffset` is less
1611
- * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
1613
+ * than `buf.length`, `byteOffset` will be returned. If `value` is empty and
1614
+ * `byteOffset` is at least `buf.length`, `buf.length` will be returned.
1612
1615
  * @since v1.5.0
1613
1616
  * @param value What to search for.
1614
- * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1615
- * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
1616
- * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1617
- */
1618
- indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1617
+ * @param start Where to begin searching in `buf`. If negative, then
1618
+ * offset is calculated from the end of `buf`. **Default:** `0`.
1619
+ * @param end Where to stop searching in `buf` (exclusive). **Default:**
1620
+ * `buf.length`.
1621
+ * @param encoding If `value` is a string, this is the encoding used to
1622
+ * determine the binary representation of the string that will be searched for in
1623
+ * `buf`. **Default:** `'utf8'`.
1624
+ * @returns The index of the first occurrence of `value` in `buf`, or
1625
+ * `-1` if `buf` does not contain `value`.
1626
+ */
1627
+ indexOf(
1628
+ value: string | number | Uint8Array,
1629
+ start?: number,
1630
+ end?: number,
1631
+ encoding?: BufferEncoding,
1632
+ ): number;
1633
+ indexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
1619
1634
  indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1620
1635
  /**
1621
1636
  * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
@@ -1649,12 +1664,13 @@ declare module "node:buffer" {
1649
1664
  * // Prints: 4
1650
1665
  * ```
1651
1666
  *
1652
- * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1667
+ * If `value` is not a string, number, or `Buffer`, this method will throw a
1668
+ * `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1653
1669
  * an integer between 0 and 255.
1654
1670
  *
1655
1671
  * If `byteOffset` is not a number, it will be coerced to a number. Any arguments
1656
1672
  * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
1657
- * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
1673
+ * This behavior matches `String.prototype.lastIndexOf()`.
1658
1674
  *
1659
1675
  * ```js
1660
1676
  * import { Buffer } from 'node:buffer';
@@ -1680,11 +1696,24 @@ declare module "node:buffer" {
1680
1696
  * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
1681
1697
  * @since v6.0.0
1682
1698
  * @param value What to search for.
1683
- * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1684
- * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
1685
- * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1686
- */
1687
- lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1699
+ * @param start Where to begin searching in `buf`. If negative, then
1700
+ * offset is calculated from the end of `buf`. **Default:**
1701
+ * `buf.length - 1`.
1702
+ * @param end Where to stop searching in `buf` (exclusive). **Default:**
1703
+ * `buf.length`.
1704
+ * @param encoding If `value` is a string, this is the encoding used to
1705
+ * determine the binary representation of the string that will be searched for in
1706
+ * `buf`. **Default:** `'utf8'`.
1707
+ * @returns The index of the last occurrence of `value` in `buf`, or
1708
+ * `-1` if `buf` does not contain `value`.
1709
+ */
1710
+ lastIndexOf(
1711
+ value: string | number | Uint8Array,
1712
+ start?: number,
1713
+ end?: number,
1714
+ encoding?: BufferEncoding,
1715
+ ): number;
1716
+ lastIndexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
1688
1717
  lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1689
1718
  /**
1690
1719
  * Equivalent to `buf.indexOf() !== -1`.
@@ -1711,12 +1740,22 @@ declare module "node:buffer" {
1711
1740
  * ```
1712
1741
  * @since v5.3.0
1713
1742
  * @param value What to search for.
1714
- * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1715
- * @param [encoding='utf8'] If `value` is a string, this is its encoding.
1716
- * @return `true` if `value` was found in `buf`, `false` otherwise.
1717
- */
1718
- includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
1719
- includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
1743
+ * @param start Where to begin searching in `buf`. If negative, then
1744
+ * offset is calculated from the end of `buf`. **Default:** `0`.
1745
+ * @param end Where to stop searching in `buf` (exclusive). **Default:**
1746
+ * `buf.length`.
1747
+ * @param encoding If `value` is a string, this is its encoding.
1748
+ * **Default:** `'utf8'`.
1749
+ * @returns `true` if `value` was found in `buf`, `false` otherwise.
1750
+ */
1751
+ includes(
1752
+ value: string | number | Uint8Array,
1753
+ start?: number,
1754
+ end?: number,
1755
+ encoding?: BufferEncoding,
1756
+ ): boolean;
1757
+ includes(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): boolean;
1758
+ includes(value: string | number | Uint8Array, encoding: BufferEncoding): boolean;
1720
1759
  }
1721
1760
  var Buffer: BufferConstructor;
1722
1761
  }
@@ -1373,9 +1373,9 @@ declare module "node:crypto" {
1373
1373
  */
1374
1374
  update(data: string | NodeJS.ArrayBufferView, inputEncoding?: BufferEncoding): Verify;
1375
1375
  /**
1376
- * Verifies the provided data using the given `object` and `signature`.
1376
+ * Verifies the provided data using the given `key` and `signature`.
1377
1377
  *
1378
- * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
1378
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
1379
1379
  * object, the following additional properties can be passed:
1380
1380
  *
1381
1381
  * The `signature` argument is the previously calculated signature for the data, in
@@ -1392,7 +1392,7 @@ declare module "node:crypto" {
1392
1392
  * @since v0.1.92
1393
1393
  */
1394
1394
  verify(
1395
- object:
1395
+ key:
1396
1396
  | KeyLike
1397
1397
  | VerifyKeyObjectInput
1398
1398
  | VerifyPublicKeyInput
@@ -1470,8 +1470,10 @@ declare module "node:crypto" {
1470
1470
  * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
1471
1471
  *
1472
1472
  * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
1473
- * once a private key has been generated or set, calling this function only updates
1474
- * the public key but does not generate a new private key.
1473
+ * once a private key has been generated or set, calling this function only
1474
+ * recomputes the public key from the existing private key. Since the public key is
1475
+ * determined by the private key, the result will be the same unless the private key
1476
+ * has been changed via `diffieHellman.setPrivateKey()`.
1475
1477
  * @since v0.5.0
1476
1478
  * @param encoding The `encoding` of the return value.
1477
1479
  */
@@ -2997,6 +2999,7 @@ declare module "node:crypto" {
2997
2999
  */
2998
3000
  disableEntropyCache?: boolean | undefined;
2999
3001
  }
3002
+ interface RandomUUIDV7Options extends RandomUUIDOptions {}
3000
3003
  type UUID = `${string}-${string}-${string}-${string}-${string}`;
3001
3004
  /**
3002
3005
  * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
@@ -3004,6 +3007,16 @@ declare module "node:crypto" {
3004
3007
  * @since v15.6.0, v14.17.0
3005
3008
  */
3006
3009
  function randomUUID(options?: RandomUUIDOptions): UUID;
3010
+ /**
3011
+ * Generates a random [RFC 9562](https://www.rfc-editor.org/rfc/rfc9562.txt) version 7 UUID. The UUID contains a millisecond
3012
+ * precision Unix timestamp in the most significant 48 bits, followed by
3013
+ * cryptographically secure random bits for the remaining fields, making it
3014
+ * suitable for use as a database key with time-based sorting. The embedded
3015
+ * timestamp relies on a non-monotonic clock and is not guaranteed to be strictly
3016
+ * increasing.
3017
+ * @since v26.1.0
3018
+ */
3019
+ function randomUUIDv7(options?: RandomUUIDV7Options): UUID;
3007
3020
  interface X509CheckOptions {
3008
3021
  subject?: "always" | "default" | "never" | undefined;
3009
3022
  wildcards?: boolean | undefined;