@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
@@ -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
  import Client from './client'
2
17
  import Dispatcher from './dispatcher'
3
18
  import MockAgent from './mock-agent'
@@ -14,6 +29,8 @@ declare class MockClient extends Client implements Interceptable {
14
29
  dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean
15
30
  /** Closes the mock client and gracefully waits for enqueued requests to complete. */
16
31
  close (): Promise<void>
32
+ /** Clean up all the prepared mocks. */
33
+ cleanMocks (): void
17
34
  }
18
35
 
19
36
  declare namespace MockClient {
@@ -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
  import Errors from './errors'
2
17
 
3
18
  export default MockErrors
@@ -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
  import { IncomingHttpHeaders } from './header'
2
17
  import Dispatcher from './dispatcher'
3
18
  import { BodyInit, Headers } from './fetch'
@@ -69,7 +84,6 @@ declare namespace MockInterceptor {
69
84
  headers?: Headers | Record<string, string>;
70
85
  origin?: string;
71
86
  body?: BodyInit | Dispatcher.DispatchOptions['body'] | null;
72
- maxRedirections?: number;
73
87
  }
74
88
 
75
89
  export type MockResponseDataHandler<TData extends object = object> = (
@@ -84,6 +98,8 @@ declare namespace MockInterceptor {
84
98
  interface Interceptable extends Dispatcher {
85
99
  /** Intercepts any matching requests that use the same origin as this mock client. */
86
100
  intercept(options: MockInterceptor.Options): MockInterceptor;
101
+ /** Clean up all the prepared mocks. */
102
+ cleanMocks (): void
87
103
  }
88
104
 
89
105
  export {
@@ -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
  import Pool from './pool'
2
17
  import MockAgent from './mock-agent'
3
18
  import { Interceptable, MockInterceptor } from './mock-interceptor'
@@ -14,6 +29,8 @@ declare class MockPool extends Pool implements Interceptable {
14
29
  dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean
15
30
  /** Closes the mock pool and gracefully waits for enqueued requests to complete. */
16
31
  close (): Promise<void>
32
+ /** Clean up all the prepared mocks. */
33
+ cleanMocks (): void
17
34
  }
18
35
 
19
36
  declare namespace MockPool {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "7.8.0",
3
+ "version": "7.16.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -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
  /// <reference types="node" />
2
17
 
3
18
  // See https://github.com/nodejs/undici/issues/1740
@@ -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
  import Pool from './pool'
2
17
 
3
18
  export default PoolStats
@@ -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
  import Client from './client'
2
17
  import TPoolStats from './pool-stats'
3
18
  import { URL } from 'node:url'
@@ -33,6 +48,8 @@ declare namespace Pool {
33
48
  factory?(origin: URL, opts: object): Dispatcher;
34
49
  /** The max number of clients to create. `null` if no limit. Default `null`. */
35
50
  connections?: number | null;
51
+ /** The amount of time before a client is removed from the pool and closed. `null` if no time limit. Default `null` */
52
+ clientTtl?: number | null;
36
53
 
37
54
  interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors']
38
55
  }
@@ -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
  import Agent from './agent'
2
17
  import buildConnector from './connector'
3
18
  import Dispatcher from './dispatcher'
@@ -24,6 +39,7 @@ declare namespace ProxyAgent {
24
39
  requestTls?: buildConnector.BuildOptions;
25
40
  proxyTls?: buildConnector.BuildOptions;
26
41
  clientFactory?(origin: URL, opts: object): Dispatcher;
42
+ proxyTunnel?: boolean;
27
43
  }
28
44
  }
29
45
 
@@ -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
  import { Readable } from 'node:stream'
2
17
  import { Blob } from 'node:buffer'
3
18
 
@@ -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
  import Dispatcher from './dispatcher'
2
17
  import RetryHandler from './retry-handler'
3
18
 
@@ -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
  import Dispatcher from './dispatcher'
2
17
 
3
18
  export default RetryHandler
@@ -35,6 +50,15 @@ declare namespace RetryHandler {
35
50
  ) => void
36
51
 
37
52
  export interface RetryOptions {
53
+ /**
54
+ * If true, the retry handler will throw an error if the request fails,
55
+ * this will prevent the folling handlers from being called, and will destroy the socket.
56
+ *
57
+ * @type {boolean}
58
+ * @memberof RetryOptions
59
+ * @default true
60
+ */
61
+ throwOnError?: boolean;
38
62
  /**
39
63
  * Callback to be invoked on every retry iteration.
40
64
  * It receives the error, current state of the retry object and the options object
@@ -0,0 +1,125 @@
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
+
16
+ import MockAgent from './mock-agent'
17
+
18
+ declare class SnapshotRecorder {
19
+ constructor (options?: SnapshotRecorder.Options)
20
+
21
+ record (requestOpts: any, response: any): Promise<void>
22
+ findSnapshot (requestOpts: any): SnapshotRecorder.Snapshot | undefined
23
+ loadSnapshots (filePath?: string): Promise<void>
24
+ saveSnapshots (filePath?: string): Promise<void>
25
+ clear (): void
26
+ getSnapshots (): SnapshotRecorder.Snapshot[]
27
+ size (): number
28
+ resetCallCounts (): void
29
+ deleteSnapshot (requestOpts: any): boolean
30
+ getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null
31
+ replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void
32
+ destroy (): void
33
+ }
34
+
35
+ declare namespace SnapshotRecorder {
36
+ type SnapshotRecorderMode = 'record' | 'playback' | 'update'
37
+
38
+ export interface Options {
39
+ snapshotPath?: string
40
+ mode?: SnapshotRecorderMode
41
+ maxSnapshots?: number
42
+ autoFlush?: boolean
43
+ flushInterval?: number
44
+ matchHeaders?: string[]
45
+ ignoreHeaders?: string[]
46
+ excludeHeaders?: string[]
47
+ matchBody?: boolean
48
+ matchQuery?: boolean
49
+ caseSensitive?: boolean
50
+ shouldRecord?: (requestOpts: any) => boolean
51
+ shouldPlayback?: (requestOpts: any) => boolean
52
+ excludeUrls?: (string | RegExp)[]
53
+ }
54
+
55
+ export interface Snapshot {
56
+ request: {
57
+ method: string
58
+ url: string
59
+ headers: Record<string, string>
60
+ body?: string
61
+ }
62
+ responses: {
63
+ statusCode: number
64
+ headers: Record<string, string>
65
+ body: string
66
+ trailers: Record<string, string>
67
+ }[]
68
+ callCount: number
69
+ timestamp: string
70
+ }
71
+
72
+ export interface SnapshotInfo {
73
+ hash: string
74
+ request: {
75
+ method: string
76
+ url: string
77
+ headers: Record<string, string>
78
+ body?: string
79
+ }
80
+ responseCount: number
81
+ callCount: number
82
+ timestamp: string
83
+ }
84
+
85
+ export interface SnapshotData {
86
+ hash: string
87
+ snapshot: Snapshot
88
+ }
89
+ }
90
+
91
+ declare class SnapshotAgent extends MockAgent {
92
+ constructor (options?: SnapshotAgent.Options)
93
+
94
+ saveSnapshots (filePath?: string): Promise<void>
95
+ loadSnapshots (filePath?: string): Promise<void>
96
+ getRecorder (): SnapshotRecorder
97
+ getMode (): SnapshotRecorder.SnapshotRecorderMode
98
+ clearSnapshots (): void
99
+ resetCallCounts (): void
100
+ deleteSnapshot (requestOpts: any): boolean
101
+ getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null
102
+ replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void
103
+ }
104
+
105
+ declare namespace SnapshotAgent {
106
+ export interface Options extends MockAgent.Options {
107
+ mode?: SnapshotRecorder.SnapshotRecorderMode
108
+ snapshotPath?: string
109
+ maxSnapshots?: number
110
+ autoFlush?: boolean
111
+ flushInterval?: number
112
+ matchHeaders?: string[]
113
+ ignoreHeaders?: string[]
114
+ excludeHeaders?: string[]
115
+ matchBody?: boolean
116
+ matchQuery?: boolean
117
+ caseSensitive?: boolean
118
+ shouldRecord?: (requestOpts: any) => boolean
119
+ shouldPlayback?: (requestOpts: any) => boolean
120
+ excludeUrls?: (string | RegExp)[]
121
+ }
122
+ }
123
+
124
+ export { SnapshotAgent, SnapshotRecorder }
125
+
@@ -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
  export namespace util {
2
17
  /**
3
18
  * Retrieves a header name and returns its lowercase value.
@@ -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
  type AutocompletePrimitiveBaseType<T> =
2
17
  T extends string ? string :
3
18
  T extends number ? number :