@idlebox/stripe-node-types 24.0.14-patch.0 → 24.0.15

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 (134) hide show
  1. package/README.md +1 -1
  2. package/assert/strict.d.ts +113 -1
  3. package/assert.d.ts +162 -248
  4. package/async_hooks.d.ts +20 -5
  5. package/buffer.buffer.d.ts +24 -6
  6. package/buffer.d.ts +63 -168
  7. package/child_process.d.ts +117 -223
  8. package/cluster.d.ts +251 -329
  9. package/compatibility/iterators.d.ts +15 -0
  10. package/console.d.ts +60 -346
  11. package/constants.d.ts +15 -1
  12. package/crypto.d.ts +713 -1149
  13. package/dgram.d.ts +30 -50
  14. package/diagnostics_channel.d.ts +16 -3
  15. package/dns/promises.d.ts +15 -0
  16. package/dns.d.ts +150 -131
  17. package/domain.d.ts +25 -14
  18. package/events.d.ts +858 -719
  19. package/fs/promises.d.ts +117 -53
  20. package/fs.d.ts +729 -484
  21. package/globals.d.ts +142 -344
  22. package/globals.typedarray.d.ts +94 -0
  23. package/http.d.ts +358 -246
  24. package/http2.d.ts +578 -711
  25. package/https.d.ts +85 -216
  26. package/index.d.ts +39 -3
  27. package/inspector/promises.d.ts +54 -0
  28. package/inspector.d.ts +180 -3936
  29. package/inspector.generated.d.ts +4242 -0
  30. package/module.d.ts +60 -95
  31. package/my-shim.d.ts +15 -0
  32. package/net.d.ts +102 -186
  33. package/os.d.ts +32 -6
  34. package/package.json +3 -8
  35. package/path/posix.d.ts +20 -0
  36. package/path/win32.d.ts +20 -0
  37. package/path.d.ts +132 -122
  38. package/perf_hooks.d.ts +310 -644
  39. package/process.d.ts +192 -138
  40. package/punycode.d.ts +17 -2
  41. package/querystring.d.ts +16 -1
  42. package/quic.d.ts +926 -0
  43. package/readline/promises.d.ts +16 -1
  44. package/readline.d.ts +80 -118
  45. package/repl.d.ts +98 -96
  46. package/sea.d.ts +25 -1
  47. package/sqlite.d.ts +277 -13
  48. package/stream/consumers.d.ts +22 -7
  49. package/stream/promises.d.ts +148 -12
  50. package/stream/web.d.ts +187 -494
  51. package/stream.d.ts +608 -490
  52. package/string_decoder.d.ts +18 -3
  53. package/test/reporters.d.ts +112 -0
  54. package/test.d.ts +238 -199
  55. package/timers/promises.d.ts +16 -1
  56. package/timers.d.ts +16 -129
  57. package/tls.d.ts +163 -163
  58. package/trace_events.d.ts +21 -6
  59. package/ts5.6/buffer.buffer.d.ts +25 -8
  60. package/ts5.6/compatibility/float16array.d.ts +15 -0
  61. package/ts5.6/globals.typedarray.d.ts +31 -0
  62. package/ts5.6/index.d.ts +39 -3
  63. package/ts5.7/compatibility/float16array.d.ts +15 -0
  64. package/ts5.7/index.d.ts +39 -3
  65. package/tty.d.ts +70 -13
  66. package/undici-types/agent.d.ts +20 -4
  67. package/undici-types/api.d.ts +15 -0
  68. package/undici-types/balanced-pool.d.ts +15 -0
  69. package/undici-types/cache-interceptor.d.ts +15 -0
  70. package/undici-types/cache.d.ts +15 -0
  71. package/undici-types/client-stats.d.ts +31 -0
  72. package/undici-types/client.d.ts +21 -5
  73. package/undici-types/connector.d.ts +15 -0
  74. package/undici-types/content-type.d.ts +15 -0
  75. package/undici-types/cookies.d.ts +15 -0
  76. package/undici-types/diagnostics-channel.d.ts +24 -1
  77. package/undici-types/dispatcher.d.ts +18 -8
  78. package/undici-types/env-http-proxy-agent.d.ts +17 -1
  79. package/undici-types/errors.d.ts +20 -15
  80. package/undici-types/eventsource.d.ts +24 -4
  81. package/undici-types/fetch.d.ts +16 -0
  82. package/undici-types/formdata.d.ts +15 -0
  83. package/undici-types/global-dispatcher.d.ts +15 -0
  84. package/undici-types/global-origin.d.ts +15 -0
  85. package/undici-types/h2c-client.d.ts +15 -2
  86. package/undici-types/handlers.d.ts +16 -1
  87. package/undici-types/header.d.ts +15 -0
  88. package/undici-types/index.d.ts +21 -1
  89. package/undici-types/interceptors.d.ts +20 -0
  90. package/undici-types/mock-agent.d.ts +18 -0
  91. package/undici-types/mock-call-history.d.ts +15 -0
  92. package/undici-types/mock-client.d.ts +17 -0
  93. package/undici-types/mock-errors.d.ts +15 -0
  94. package/undici-types/mock-interceptor.d.ts +17 -1
  95. package/undici-types/mock-pool.d.ts +17 -0
  96. package/undici-types/package.json +1 -1
  97. package/undici-types/patch.d.ts +15 -0
  98. package/undici-types/pool-stats.d.ts +15 -0
  99. package/undici-types/pool.d.ts +17 -0
  100. package/undici-types/proxy-agent.d.ts +16 -0
  101. package/undici-types/readable.d.ts +15 -0
  102. package/undici-types/retry-agent.d.ts +15 -0
  103. package/undici-types/retry-handler.d.ts +24 -0
  104. package/undici-types/snapshot-agent.d.ts +125 -0
  105. package/undici-types/util.d.ts +15 -0
  106. package/undici-types/utility.d.ts +15 -0
  107. package/undici-types/webidl.d.ts +126 -36
  108. package/undici-types/websocket.d.ts +18 -1
  109. package/url.d.ts +107 -587
  110. package/util/types.d.ts +571 -0
  111. package/util.d.ts +158 -792
  112. package/v8.d.ts +82 -7
  113. package/vm.d.ts +267 -108
  114. package/wasi.d.ts +38 -2
  115. package/web-globals/abortcontroller.d.ts +75 -0
  116. package/web-globals/blob.d.ts +39 -0
  117. package/web-globals/console.d.ts +25 -0
  118. package/web-globals/crypto.d.ts +55 -0
  119. package/web-globals/domexception.d.ts +84 -0
  120. package/web-globals/encoding.d.ts +27 -0
  121. package/{dom-events.d.ts → web-globals/events.d.ts} +72 -50
  122. package/web-globals/fetch.d.ts +70 -0
  123. package/web-globals/importmeta.d.ts +29 -0
  124. package/web-globals/messaging.d.ts +39 -0
  125. package/web-globals/navigator.d.ts +41 -0
  126. package/web-globals/performance.d.ts +61 -0
  127. package/web-globals/storage.d.ts +40 -0
  128. package/web-globals/streams.d.ts +131 -0
  129. package/web-globals/timers.d.ts +60 -0
  130. package/web-globals/url.d.ts +40 -0
  131. package/worker_threads.d.ts +306 -349
  132. package/zlib.d.ts +59 -94
  133. package/ts5.1/compatibility/disposable.d.ts +0 -13
  134. package/ts5.1/index.d.ts +0 -100
package/sea.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * This feature allows the distribution of a Node.js application conveniently to a
3
18
  * system that does not have Node.js installed.
@@ -111,7 +126,7 @@
111
126
  * ```
112
127
  * @since v19.7.0, v18.16.0
113
128
  * @experimental
114
- * @see [source](https://github.com/nodejs/node/blob/v24.x/src/node_sea.cc)
129
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/src/node_sea.cc)
115
130
  */
116
131
 
117
132
  declare module "node:sea" {
@@ -151,4 +166,13 @@ declare module "node:sea" {
151
166
  * @since v20.12.0
152
167
  */
153
168
  function getRawAsset(key: AssetKey): ArrayBuffer;
169
+ /**
170
+ * This method can be used to retrieve an array of all the keys of assets
171
+ * embedded into the single-executable application.
172
+ * An error is thrown when not running inside a single-executable application.
173
+ * @since v24.8.0
174
+ * @returns An array containing all the keys of the assets
175
+ * embedded in the executable. If no assets are embedded, returns an empty array.
176
+ */
177
+ function getAssetKeys(): string[];
154
178
  }
package/sqlite.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * The `node:sqlite` module facilitates working with SQLite databases.
3
18
  * To access it:
@@ -40,14 +55,13 @@
40
55
  * ```
41
56
  * @since v22.5.0
42
57
  * @experimental
43
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/sqlite.js)
58
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/sqlite.js)
44
59
  */
45
60
 
46
61
  declare module "node:sqlite" {
62
+ import { PathLike } from '_not-use-node-type_fs';
47
63
  type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
48
- type SQLOutputValue = null | number | bigint | string | Uint8Array;
49
- /** @deprecated Use `SQLInputValue` or `SQLOutputValue` instead. */
50
- type SupportedValueType = SQLOutputValue;
64
+ type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array;
51
65
  interface DatabaseSyncOptions {
52
66
  /**
53
67
  * If `true`, the database is opened by the constructor. When
@@ -98,6 +112,33 @@ declare module "node:sqlite" {
98
112
  * @default 0
99
113
  */
100
114
  timeout?: number | undefined;
115
+ /**
116
+ * If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
117
+ * integer fields are read as JavaScript numbers.
118
+ * @since v24.4.0
119
+ * @default false
120
+ */
121
+ readBigInts?: boolean | undefined;
122
+ /**
123
+ * If `true`, query results are returned as arrays instead of objects.
124
+ * @since v24.4.0
125
+ * @default false
126
+ */
127
+ returnArrays?: boolean | undefined;
128
+ /**
129
+ * If `true`, allows binding named parameters without the prefix
130
+ * character (e.g., `foo` instead of `:foo`).
131
+ * @since v24.4.40
132
+ * @default true
133
+ */
134
+ allowBareNamedParameters?: boolean | undefined;
135
+ /**
136
+ * If `true`, unknown named parameters are ignored when binding.
137
+ * If `false`, an exception is thrown for unknown named parameters.
138
+ * @since v24.4.40
139
+ * @default false
140
+ */
141
+ allowUnknownNamedParameters?: boolean | undefined;
101
142
  }
102
143
  interface CreateSessionOptions {
103
144
  /**
@@ -214,7 +255,7 @@ declare module "node:sqlite" {
214
255
  * To use an in-memory database, the path should be the special name `':memory:'`.
215
256
  * @param options Configuration options for the database connection.
216
257
  */
217
- constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
258
+ constructor(path: PathLike, options?: DatabaseSyncOptions);
218
259
  /**
219
260
  * Registers a new aggregate function with the SQLite database. This method is a wrapper around
220
261
  * [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
@@ -295,7 +336,7 @@ declare module "node:sqlite" {
295
336
  * @param func The JavaScript function to call when the SQLite
296
337
  * function is invoked. The return value of this function should be a valid
297
338
  * SQLite data type: see
298
- * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v24.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
339
+ * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v25.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
299
340
  * The result defaults to `NULL` if the return value is `undefined`.
300
341
  */
301
342
  function(
@@ -304,6 +345,64 @@ declare module "node:sqlite" {
304
345
  func: (...args: SQLOutputValue[]) => SQLInputValue,
305
346
  ): void;
306
347
  function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void;
348
+ /**
349
+ * Sets an authorizer callback that SQLite will invoke whenever it attempts to
350
+ * access data or modify the database schema through prepared statements.
351
+ * This can be used to implement security policies, audit access, or restrict certain operations.
352
+ * This method is a wrapper around [`sqlite3_set_authorizer()`](https://sqlite.org/c3ref/set_authorizer.html).
353
+ *
354
+ * When invoked, the callback receives five arguments:
355
+ *
356
+ * * `actionCode` {number} The type of operation being performed (e.g.,
357
+ * `SQLITE_INSERT`, `SQLITE_UPDATE`, `SQLITE_SELECT`).
358
+ * * `arg1` {string|null} The first argument (context-dependent, often a table name).
359
+ * * `arg2` {string|null} The second argument (context-dependent, often a column name).
360
+ * * `dbName` {string|null} The name of the database.
361
+ * * `triggerOrView` {string|null} The name of the trigger or view causing the access.
362
+ *
363
+ * The callback must return one of the following constants:
364
+ *
365
+ * * `SQLITE_OK` - Allow the operation.
366
+ * * `SQLITE_DENY` - Deny the operation (causes an error).
367
+ * * `SQLITE_IGNORE` - Ignore the operation (silently skip).
368
+ *
369
+ * ```js
370
+ * import { DatabaseSync, constants } from 'node:sqlite';
371
+ * const db = new DatabaseSync(':memory:');
372
+ *
373
+ * // Set up an authorizer that denies all table creation
374
+ * db.setAuthorizer((actionCode) => {
375
+ * if (actionCode === constants.SQLITE_CREATE_TABLE) {
376
+ * return constants.SQLITE_DENY;
377
+ * }
378
+ * return constants.SQLITE_OK;
379
+ * });
380
+ *
381
+ * // This will work
382
+ * db.prepare('SELECT 1').get();
383
+ *
384
+ * // This will throw an error due to authorization denial
385
+ * try {
386
+ * db.exec('CREATE TABLE blocked (id INTEGER)');
387
+ * } catch (err) {
388
+ * console.log('Operation blocked:', err.message);
389
+ * }
390
+ * ```
391
+ * @since v24.10.0
392
+ * @param callback The authorizer function to set, or `null` to
393
+ * clear the current authorizer.
394
+ */
395
+ setAuthorizer(
396
+ callback:
397
+ | ((
398
+ actionCode: number,
399
+ arg1: string | null,
400
+ arg2: string | null,
401
+ dbName: string | null,
402
+ triggerOrView: string | null,
403
+ ) => number)
404
+ | null,
405
+ ): void;
307
406
  /**
308
407
  * Whether the database is currently open or not.
309
408
  * @since v22.15.0
@@ -329,6 +428,47 @@ declare module "node:sqlite" {
329
428
  * @return The prepared statement.
330
429
  */
331
430
  prepare(sql: string): StatementSync;
431
+ /**
432
+ * Creates a new `SQLTagStore`, which is an LRU (Least Recently Used) cache for
433
+ * storing prepared statements. This allows for the efficient reuse of prepared
434
+ * statements by tagging them with a unique identifier.
435
+ *
436
+ * When a tagged SQL literal is executed, the `SQLTagStore` checks if a prepared
437
+ * statement for that specific SQL string already exists in the cache. If it does,
438
+ * the cached statement is used. If not, a new prepared statement is created,
439
+ * executed, and then stored in the cache for future use. This mechanism helps to
440
+ * avoid the overhead of repeatedly parsing and preparing the same SQL statements.
441
+ *
442
+ * ```js
443
+ * import { DatabaseSync } from 'node:sqlite';
444
+ *
445
+ * const db = new DatabaseSync(':memory:');
446
+ * const sql = db.createSQLTagStore();
447
+ *
448
+ * db.exec('CREATE TABLE users (id INT, name TEXT)');
449
+ *
450
+ * // Using the 'run' method to insert data.
451
+ * // The tagged literal is used to identify the prepared statement.
452
+ * sql.run`INSERT INTO users VALUES (1, 'Alice')`;
453
+ * sql.run`INSERT INTO users VALUES (2, 'Bob')`;
454
+ *
455
+ * // Using the 'get' method to retrieve a single row.
456
+ * const id = 1;
457
+ * const user = sql.get`SELECT * FROM users WHERE id = ${id}`;
458
+ * console.log(user); // { id: 1, name: 'Alice' }
459
+ *
460
+ * // Using the 'all' method to retrieve all rows.
461
+ * const allUsers = sql.all`SELECT * FROM users ORDER BY id`;
462
+ * console.log(allUsers);
463
+ * // [
464
+ * // { id: 1, name: 'Alice' },
465
+ * // { id: 2, name: 'Bob' }
466
+ * // ]
467
+ * ```
468
+ * @since v24.9.0
469
+ * @returns A new SQL tag store for caching prepared statements.
470
+ */
471
+ createTagStore(maxSize?: number): SQLTagStore;
332
472
  /**
333
473
  * Creates and attaches a session to the database. This method is a wrapper around
334
474
  * [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
@@ -370,7 +510,6 @@ declare module "node:sqlite" {
370
510
  * Closes the database connection. If the database connection is already closed
371
511
  * then this is a no-op.
372
512
  * @since v22.15.0
373
- * @experimental
374
513
  */
375
514
  [Symbol.dispose](): void;
376
515
  }
@@ -385,7 +524,7 @@ declare module "node:sqlite" {
385
524
  * @returns Binary changeset that can be applied to other databases.
386
525
  * @since v22.12.0
387
526
  */
388
- changeset(): Uint8Array;
527
+ changeset(): NodeJS.NonSharedUint8Array;
389
528
  /**
390
529
  * Similar to the method above, but generates a more compact patchset. See
391
530
  * [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets)
@@ -395,7 +534,7 @@ declare module "node:sqlite" {
395
534
  * @returns Binary patchset that can be applied to other databases.
396
535
  * @since v22.12.0
397
536
  */
398
- patchset(): Uint8Array;
537
+ patchset(): NodeJS.NonSharedUint8Array;
399
538
  /**
400
539
  * Closes the session. An exception is thrown if the database or the session is not open. This method is a
401
540
  * wrapper around
@@ -403,6 +542,73 @@ declare module "node:sqlite" {
403
542
  */
404
543
  close(): void;
405
544
  }
545
+ /**
546
+ * This class represents a single LRU (Least Recently Used) cache for storing
547
+ * prepared statements.
548
+ *
549
+ * Instances of this class are created via the database.createSQLTagStore() method,
550
+ * not by using a constructor. The store caches prepared statements based on the
551
+ * provided SQL query string. When the same query is seen again, the store
552
+ * retrieves the cached statement and safely applies the new values through
553
+ * parameter binding, thereby preventing attacks like SQL injection.
554
+ *
555
+ * The cache has a maxSize that defaults to 1000 statements, but a custom size can
556
+ * be provided (e.g., database.createSQLTagStore(100)). All APIs exposed by this
557
+ * class execute synchronously.
558
+ * @since v24.9.0
559
+ */
560
+ interface SQLTagStore {
561
+ /**
562
+ * Executes the given SQL query and returns all resulting rows as an array of objects.
563
+ * @since v24.9.0
564
+ */
565
+ all(
566
+ stringElements: TemplateStringsArray,
567
+ ...boundParameters: SQLInputValue[]
568
+ ): Record<string, SQLOutputValue>[];
569
+ /**
570
+ * Executes the given SQL query and returns the first resulting row as an object.
571
+ * @since v24.9.0
572
+ */
573
+ get(
574
+ stringElements: TemplateStringsArray,
575
+ ...boundParameters: SQLInputValue[]
576
+ ): Record<string, SQLOutputValue> | undefined;
577
+ /**
578
+ * Executes the given SQL query and returns an iterator over the resulting rows.
579
+ * @since v24.9.0
580
+ */
581
+ iterate(
582
+ stringElements: TemplateStringsArray,
583
+ ...boundParameters: SQLInputValue[]
584
+ ): NodeJS.Iterator<Record<string, SQLOutputValue>>;
585
+ /**
586
+ * Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE).
587
+ * @since v24.9.0
588
+ */
589
+ run(stringElements: TemplateStringsArray, ...boundParameters: SQLInputValue[]): StatementResultingChanges;
590
+ /**
591
+ * A read-only property that returns the number of prepared statements currently in the cache.
592
+ * @since v24.9.0
593
+ * @returns The maximum number of prepared statements the cache can hold.
594
+ */
595
+ size(): number;
596
+ /**
597
+ * A read-only property that returns the maximum number of prepared statements the cache can hold.
598
+ * @since v24.9.0
599
+ */
600
+ readonly capacity: number;
601
+ /**
602
+ * A read-only property that returns the `DatabaseSync` object associated with this `SQLTagStore`.
603
+ * @since v24.9.0
604
+ */
605
+ readonly db: DatabaseSync;
606
+ /**
607
+ * Resets the LRU cache, clearing all stored prepared statements.
608
+ * @since v24.9.0
609
+ */
610
+ clear(): void;
611
+ }
406
612
  interface StatementColumnMetadata {
407
613
  /**
408
614
  * The unaliased name of the column in the origin
@@ -568,6 +774,13 @@ declare module "node:sqlite" {
568
774
  * @param enabled Enables or disables support for unknown named parameters.
569
775
  */
570
776
  setAllowUnknownNamedParameters(enabled: boolean): void;
777
+ /**
778
+ * When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
779
+ * of objects.
780
+ * @since v24.0.0
781
+ * @param enabled Enables or disables the return of query results as arrays.
782
+ */
783
+ setReturnArrays(enabled: boolean): void;
571
784
  /**
572
785
  * When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
573
786
  * numbers by default. However, SQLite `INTEGER`s can store values larger than
@@ -605,8 +818,9 @@ declare module "node:sqlite" {
605
818
  */
606
819
  rate?: number | undefined;
607
820
  /**
608
- * Callback function that will be called with the number of pages copied and the total number of
609
- * pages.
821
+ * An optional callback function that will be called after each backup step. The argument passed
822
+ * to this callback is an `Object` with `remainingPages` and `totalPages` properties, describing the current progress
823
+ * of the backup operation.
610
824
  */
611
825
  progress?: ((progressInfo: BackupProgressInfo) => void) | undefined;
612
826
  }
@@ -643,9 +857,10 @@ declare module "node:sqlite" {
643
857
  * the contents will be overwritten.
644
858
  * @param options Optional configuration for the backup. The
645
859
  * following properties are supported:
646
- * @returns A promise that resolves when the backup is completed and rejects if an error occurs.
860
+ * @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an
861
+ * error occurs.
647
862
  */
648
- function backup(sourceDb: DatabaseSync, path: string | Buffer | URL, options?: BackupOptions): Promise<void>;
863
+ function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise<number>;
649
864
  /**
650
865
  * @since v22.13.0
651
866
  */
@@ -685,5 +900,54 @@ declare module "node:sqlite" {
685
900
  * @since v22.12.0
686
901
  */
687
902
  const SQLITE_CHANGESET_ABORT: number;
903
+ /**
904
+ * Deny the operation and cause an error to be returned.
905
+ * @since v24.10.0
906
+ */
907
+ const SQLITE_DENY: number;
908
+ /**
909
+ * Ignore the operation and continue as if it had never been requested.
910
+ * @since 24.10.0
911
+ */
912
+ const SQLITE_IGNORE: number;
913
+ /**
914
+ * Allow the operation to proceed normally.
915
+ * @since v24.10.0
916
+ */
917
+ const SQLITE_OK: number;
918
+ const SQLITE_CREATE_INDEX: number;
919
+ const SQLITE_CREATE_TABLE: number;
920
+ const SQLITE_CREATE_TEMP_INDEX: number;
921
+ const SQLITE_CREATE_TEMP_TABLE: number;
922
+ const SQLITE_CREATE_TEMP_TRIGGER: number;
923
+ const SQLITE_CREATE_TEMP_VIEW: number;
924
+ const SQLITE_CREATE_TRIGGER: number;
925
+ const SQLITE_CREATE_VIEW: number;
926
+ const SQLITE_DELETE: number;
927
+ const SQLITE_DROP_INDEX: number;
928
+ const SQLITE_DROP_TABLE: number;
929
+ const SQLITE_DROP_TEMP_INDEX: number;
930
+ const SQLITE_DROP_TEMP_TABLE: number;
931
+ const SQLITE_DROP_TEMP_TRIGGER: number;
932
+ const SQLITE_DROP_TEMP_VIEW: number;
933
+ const SQLITE_DROP_TRIGGER: number;
934
+ const SQLITE_DROP_VIEW: number;
935
+ const SQLITE_INSERT: number;
936
+ const SQLITE_PRAGMA: number;
937
+ const SQLITE_READ: number;
938
+ const SQLITE_SELECT: number;
939
+ const SQLITE_TRANSACTION: number;
940
+ const SQLITE_UPDATE: number;
941
+ const SQLITE_ATTACH: number;
942
+ const SQLITE_DETACH: number;
943
+ const SQLITE_ALTER_TABLE: number;
944
+ const SQLITE_REINDEX: number;
945
+ const SQLITE_ANALYZE: number;
946
+ const SQLITE_CREATE_VTABLE: number;
947
+ const SQLITE_DROP_VTABLE: number;
948
+ const SQLITE_FUNCTION: number;
949
+ const SQLITE_SAVEPOINT: number;
950
+ const SQLITE_COPY: number;
951
+ const SQLITE_RECURSIVE: number;
688
952
  }
689
953
  }
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * The utility consumer functions provide common options for consuming
3
18
  * streams.
@@ -5,32 +20,32 @@
5
20
  */
6
21
 
7
22
  declare module "node:stream/consumers" {
8
- import { Blob as NodeBlob } from 'node:buffer';
9
- import { ReadableStream as WebReadableStream } from 'node:stream/web';
23
+ import { Blob, NonSharedBuffer } from 'node:buffer';
24
+ import { ReadableStream } from 'node:stream/web';
10
25
  /**
11
26
  * @since v16.7.0
12
27
  * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
13
28
  */
14
- function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
29
+ function arrayBuffer(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
15
30
  /**
16
31
  * @since v16.7.0
17
32
  * @returns Fulfills with a `Blob` containing the full contents of the stream.
18
33
  */
19
- function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NodeBlob>;
34
+ function blob(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Blob>;
20
35
  /**
21
36
  * @since v16.7.0
22
37
  * @returns Fulfills with a `Buffer` containing the full contents of the stream.
23
38
  */
24
- function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Buffer>;
39
+ function buffer(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
25
40
  /**
26
41
  * @since v16.7.0
27
42
  * @returns Fulfills with the contents of the stream parsed as a
28
43
  * UTF-8 encoded string that is then passed through `JSON.parse()`.
29
44
  */
30
- function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
45
+ function json(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
31
46
  /**
32
47
  * @since v16.7.0
33
48
  * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
34
49
  */
35
- function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
50
+ function text(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
36
51
  }