@rio-cloud/cdk-v2-constructs 8.2.0-alpha.0 → 8.2.1-alpha.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/.jsii +2 -2
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/node/assert.d.ts +211 -92
- package/node_modules/@types/node/async_hooks.d.ts +103 -19
- package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/node_modules/@types/node/buffer.d.ts +88 -516
- package/node_modules/@types/node/child_process.d.ts +167 -231
- package/node_modules/@types/node/cluster.d.ts +172 -26
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +66 -28
- package/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@types/node/crypto.d.ts +1458 -497
- package/node_modules/@types/node/dgram.d.ts +44 -30
- package/node_modules/@types/node/diagnostics_channel.d.ts +389 -4
- package/node_modules/@types/node/dns/promises.d.ts +120 -42
- package/node_modules/@types/node/dns.d.ts +209 -95
- package/node_modules/@types/node/domain.d.ts +14 -18
- package/node_modules/@types/node/events.d.ts +245 -113
- package/node_modules/@types/node/fs/promises.d.ts +194 -96
- package/node_modules/@types/node/fs.d.ts +695 -270
- package/node_modules/@types/node/globals.d.ts +97 -308
- package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
- package/node_modules/@types/node/http.d.ts +363 -97
- package/node_modules/@types/node/http2.d.ts +684 -231
- package/node_modules/@types/node/https.d.ts +122 -87
- package/node_modules/@types/node/index.d.ts +24 -11
- package/node_modules/@types/node/inspector.d.ts +220 -2690
- package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
- package/node_modules/@types/node/module.d.ts +705 -149
- package/node_modules/@types/node/net.d.ts +178 -54
- package/node_modules/@types/node/os.d.ts +47 -17
- package/node_modules/@types/node/package.json +22 -97
- package/node_modules/@types/node/path.d.ts +12 -3
- package/node_modules/@types/node/perf_hooks.d.ts +500 -97
- package/node_modules/@types/node/process.d.ts +657 -87
- package/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/node/querystring.d.ts +24 -13
- package/node_modules/@types/node/readline/promises.d.ts +25 -14
- package/node_modules/@types/node/readline.d.ts +102 -41
- package/node_modules/@types/node/repl.d.ts +38 -30
- package/node_modules/@types/node/sea.d.ts +162 -0
- package/node_modules/@types/node/sqlite.d.ts +1040 -0
- package/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/node/stream/web.d.ts +251 -28
- package/node_modules/@types/node/stream.d.ts +1060 -1055
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +2133 -1166
- package/node_modules/@types/node/timers/promises.d.ts +31 -16
- package/node_modules/@types/node/timers.d.ts +159 -114
- package/node_modules/@types/node/tls.d.ts +232 -163
- package/node_modules/@types/node/trace_events.d.ts +43 -28
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
- package/node_modules/@types/node/tty.d.ts +9 -9
- package/node_modules/@types/node/url.d.ts +236 -84
- package/node_modules/@types/node/util.d.ts +562 -412
- package/node_modules/@types/node/v8.d.ts +368 -21
- package/node_modules/@types/node/vm.d.ts +443 -149
- package/node_modules/@types/node/wasi.d.ts +62 -18
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +310 -107
- package/node_modules/@types/node/zlib.d.ts +301 -73
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/agent.d.ts +13 -12
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +19 -7
- package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +26 -15
- package/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +19 -12
- package/node_modules/undici-types/dispatcher.d.ts +148 -113
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +79 -46
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +41 -39
- package/node_modules/undici-types/formdata.d.ts +8 -8
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +11 -5
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +68 -43
- package/node_modules/undici-types/interceptors.d.ts +71 -3
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +24 -23
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -42
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +21 -8
- package/node_modules/undici-types/proxy-agent.d.ts +5 -6
- package/node_modules/undici-types/readable.d.ts +24 -17
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +157 -36
- package/node_modules/undici-types/websocket.d.ts +67 -12
- package/package.json +9 -60
- package/version.json +1 -1
- package/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -796
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1232
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4289
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -381
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -287
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -477
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1532
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2186
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -901
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/argparse/CHANGELOG.md +0 -216
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -1,40 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
|
|
3
3
|
* separate module.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/https.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module "https" {
|
|
7
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
7
8
|
import { Duplex } from "node:stream";
|
|
8
9
|
import * as tls from "node:tls";
|
|
9
10
|
import * as http from "node:http";
|
|
10
11
|
import { URL } from "node:url";
|
|
11
|
-
|
|
12
|
+
interface ServerOptions<
|
|
12
13
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
13
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
14
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
15
|
+
> extends http.ServerOptions<Request, Response>, tls.TlsOptions {}
|
|
16
|
+
interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions {
|
|
17
|
+
checkServerIdentity?:
|
|
18
|
+
| ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined)
|
|
19
|
+
| undefined;
|
|
20
|
+
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
21
|
+
servername?: string | undefined; // SNI TLS Extension
|
|
22
|
+
}
|
|
23
23
|
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
24
|
-
rejectUnauthorized?: boolean | undefined;
|
|
25
24
|
maxCachedSessions?: number | undefined;
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
28
27
|
* An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
|
|
28
|
+
*
|
|
29
|
+
* Like `http.Agent`, the `createConnection(options[, callback])` method can be overridden to customize
|
|
30
|
+
* how TLS connections are established.
|
|
31
|
+
*
|
|
32
|
+
* > See [`agent.createConnection()`](https://nodejs.org/docs/latest-v24.x/api/http.html#agentcreateconnectionoptions-callback)
|
|
33
|
+
* for details on overriding this method, including asynchronous socket creation with a callback.
|
|
29
34
|
* @since v0.4.5
|
|
30
35
|
*/
|
|
31
36
|
class Agent extends http.Agent {
|
|
32
37
|
constructor(options?: AgentOptions);
|
|
33
38
|
options: AgentOptions;
|
|
39
|
+
createConnection(
|
|
40
|
+
options: RequestOptions,
|
|
41
|
+
callback?: (err: Error | null, stream: Duplex) => void,
|
|
42
|
+
): Duplex | null | undefined;
|
|
43
|
+
getName(options?: RequestOptions): string;
|
|
34
44
|
}
|
|
35
45
|
interface Server<
|
|
36
46
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
37
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
47
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
38
48
|
> extends http.Server<Request, Response> {}
|
|
39
49
|
/**
|
|
40
50
|
* See `http.Server` for more information.
|
|
@@ -42,7 +52,7 @@ declare module "https" {
|
|
|
42
52
|
*/
|
|
43
53
|
class Server<
|
|
44
54
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
45
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
55
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
46
56
|
> extends tls.Server {
|
|
47
57
|
constructor(requestListener?: http.RequestListener<Request, Response>);
|
|
48
58
|
constructor(
|
|
@@ -60,22 +70,25 @@ declare module "https" {
|
|
|
60
70
|
*/
|
|
61
71
|
closeIdleConnections(): void;
|
|
62
72
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
63
|
-
addListener(event: "keylog", listener: (line:
|
|
73
|
+
addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
64
74
|
addListener(
|
|
65
75
|
event: "newSession",
|
|
66
|
-
listener: (sessionId:
|
|
76
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
67
77
|
): this;
|
|
68
78
|
addListener(
|
|
69
79
|
event: "OCSPRequest",
|
|
70
80
|
listener: (
|
|
71
|
-
certificate:
|
|
72
|
-
issuer:
|
|
73
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
81
|
+
certificate: NonSharedBuffer,
|
|
82
|
+
issuer: NonSharedBuffer,
|
|
83
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
74
84
|
) => void,
|
|
75
85
|
): this;
|
|
76
86
|
addListener(
|
|
77
87
|
event: "resumeSession",
|
|
78
|
-
listener: (
|
|
88
|
+
listener: (
|
|
89
|
+
sessionId: NonSharedBuffer,
|
|
90
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
91
|
+
) => void,
|
|
79
92
|
): this;
|
|
80
93
|
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
81
94
|
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -88,28 +101,32 @@ declare module "https" {
|
|
|
88
101
|
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
89
102
|
addListener(
|
|
90
103
|
event: "connect",
|
|
91
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
104
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
92
105
|
): this;
|
|
93
106
|
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
94
107
|
addListener(
|
|
95
108
|
event: "upgrade",
|
|
96
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
109
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
97
110
|
): this;
|
|
98
111
|
emit(event: string, ...args: any[]): boolean;
|
|
99
|
-
emit(event: "keylog", line:
|
|
112
|
+
emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean;
|
|
100
113
|
emit(
|
|
101
114
|
event: "newSession",
|
|
102
|
-
sessionId:
|
|
103
|
-
sessionData:
|
|
104
|
-
callback: (
|
|
115
|
+
sessionId: NonSharedBuffer,
|
|
116
|
+
sessionData: NonSharedBuffer,
|
|
117
|
+
callback: () => void,
|
|
105
118
|
): boolean;
|
|
106
119
|
emit(
|
|
107
120
|
event: "OCSPRequest",
|
|
108
|
-
certificate:
|
|
109
|
-
issuer:
|
|
110
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
121
|
+
certificate: NonSharedBuffer,
|
|
122
|
+
issuer: NonSharedBuffer,
|
|
123
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
124
|
+
): boolean;
|
|
125
|
+
emit(
|
|
126
|
+
event: "resumeSession",
|
|
127
|
+
sessionId: NonSharedBuffer,
|
|
128
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
111
129
|
): boolean;
|
|
112
|
-
emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
|
113
130
|
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
|
114
131
|
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
115
132
|
emit(event: "close"): boolean;
|
|
@@ -119,44 +136,41 @@ declare module "https" {
|
|
|
119
136
|
emit(
|
|
120
137
|
event: "checkContinue",
|
|
121
138
|
req: InstanceType<Request>,
|
|
122
|
-
res: InstanceType<Response
|
|
123
|
-
req: InstanceType<Request>;
|
|
124
|
-
},
|
|
139
|
+
res: InstanceType<Response>,
|
|
125
140
|
): boolean;
|
|
126
141
|
emit(
|
|
127
142
|
event: "checkExpectation",
|
|
128
143
|
req: InstanceType<Request>,
|
|
129
|
-
res: InstanceType<Response
|
|
130
|
-
req: InstanceType<Request>;
|
|
131
|
-
},
|
|
144
|
+
res: InstanceType<Response>,
|
|
132
145
|
): boolean;
|
|
133
146
|
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
|
134
|
-
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head:
|
|
147
|
+
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
135
148
|
emit(
|
|
136
149
|
event: "request",
|
|
137
150
|
req: InstanceType<Request>,
|
|
138
|
-
res: InstanceType<Response
|
|
139
|
-
req: InstanceType<Request>;
|
|
140
|
-
},
|
|
151
|
+
res: InstanceType<Response>,
|
|
141
152
|
): boolean;
|
|
142
|
-
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head:
|
|
153
|
+
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
143
154
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
144
|
-
on(event: "keylog", listener: (line:
|
|
155
|
+
on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
145
156
|
on(
|
|
146
157
|
event: "newSession",
|
|
147
|
-
listener: (sessionId:
|
|
158
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
148
159
|
): this;
|
|
149
160
|
on(
|
|
150
161
|
event: "OCSPRequest",
|
|
151
162
|
listener: (
|
|
152
|
-
certificate:
|
|
153
|
-
issuer:
|
|
154
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
163
|
+
certificate: NonSharedBuffer,
|
|
164
|
+
issuer: NonSharedBuffer,
|
|
165
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
155
166
|
) => void,
|
|
156
167
|
): this;
|
|
157
168
|
on(
|
|
158
169
|
event: "resumeSession",
|
|
159
|
-
listener: (
|
|
170
|
+
listener: (
|
|
171
|
+
sessionId: NonSharedBuffer,
|
|
172
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
173
|
+
) => void,
|
|
160
174
|
): this;
|
|
161
175
|
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
162
176
|
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -167,26 +181,35 @@ declare module "https" {
|
|
|
167
181
|
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
168
182
|
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
169
183
|
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
170
|
-
on(
|
|
184
|
+
on(
|
|
185
|
+
event: "connect",
|
|
186
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
187
|
+
): this;
|
|
171
188
|
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
172
|
-
on(
|
|
189
|
+
on(
|
|
190
|
+
event: "upgrade",
|
|
191
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
192
|
+
): this;
|
|
173
193
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
174
|
-
once(event: "keylog", listener: (line:
|
|
194
|
+
once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
175
195
|
once(
|
|
176
196
|
event: "newSession",
|
|
177
|
-
listener: (sessionId:
|
|
197
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
178
198
|
): this;
|
|
179
199
|
once(
|
|
180
200
|
event: "OCSPRequest",
|
|
181
201
|
listener: (
|
|
182
|
-
certificate:
|
|
183
|
-
issuer:
|
|
184
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
202
|
+
certificate: NonSharedBuffer,
|
|
203
|
+
issuer: NonSharedBuffer,
|
|
204
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
185
205
|
) => void,
|
|
186
206
|
): this;
|
|
187
207
|
once(
|
|
188
208
|
event: "resumeSession",
|
|
189
|
-
listener: (
|
|
209
|
+
listener: (
|
|
210
|
+
sessionId: NonSharedBuffer,
|
|
211
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
212
|
+
) => void,
|
|
190
213
|
): this;
|
|
191
214
|
once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
192
215
|
once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -197,26 +220,35 @@ declare module "https" {
|
|
|
197
220
|
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
198
221
|
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
199
222
|
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
200
|
-
once(
|
|
223
|
+
once(
|
|
224
|
+
event: "connect",
|
|
225
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
226
|
+
): this;
|
|
201
227
|
once(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
202
|
-
once(
|
|
228
|
+
once(
|
|
229
|
+
event: "upgrade",
|
|
230
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
231
|
+
): this;
|
|
203
232
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
204
|
-
prependListener(event: "keylog", listener: (line:
|
|
233
|
+
prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
205
234
|
prependListener(
|
|
206
235
|
event: "newSession",
|
|
207
|
-
listener: (sessionId:
|
|
236
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
208
237
|
): this;
|
|
209
238
|
prependListener(
|
|
210
239
|
event: "OCSPRequest",
|
|
211
240
|
listener: (
|
|
212
|
-
certificate:
|
|
213
|
-
issuer:
|
|
214
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
241
|
+
certificate: NonSharedBuffer,
|
|
242
|
+
issuer: NonSharedBuffer,
|
|
243
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
215
244
|
) => void,
|
|
216
245
|
): this;
|
|
217
246
|
prependListener(
|
|
218
247
|
event: "resumeSession",
|
|
219
|
-
listener: (
|
|
248
|
+
listener: (
|
|
249
|
+
sessionId: NonSharedBuffer,
|
|
250
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
251
|
+
) => void,
|
|
220
252
|
): this;
|
|
221
253
|
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
222
254
|
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -229,30 +261,33 @@ declare module "https" {
|
|
|
229
261
|
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
230
262
|
prependListener(
|
|
231
263
|
event: "connect",
|
|
232
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
264
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
233
265
|
): this;
|
|
234
266
|
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
235
267
|
prependListener(
|
|
236
268
|
event: "upgrade",
|
|
237
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
269
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
238
270
|
): this;
|
|
239
271
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
240
|
-
prependOnceListener(event: "keylog", listener: (line:
|
|
272
|
+
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
241
273
|
prependOnceListener(
|
|
242
274
|
event: "newSession",
|
|
243
|
-
listener: (sessionId:
|
|
275
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
244
276
|
): this;
|
|
245
277
|
prependOnceListener(
|
|
246
278
|
event: "OCSPRequest",
|
|
247
279
|
listener: (
|
|
248
|
-
certificate:
|
|
249
|
-
issuer:
|
|
250
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
280
|
+
certificate: NonSharedBuffer,
|
|
281
|
+
issuer: NonSharedBuffer,
|
|
282
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
251
283
|
) => void,
|
|
252
284
|
): this;
|
|
253
285
|
prependOnceListener(
|
|
254
286
|
event: "resumeSession",
|
|
255
|
-
listener: (
|
|
287
|
+
listener: (
|
|
288
|
+
sessionId: NonSharedBuffer,
|
|
289
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
290
|
+
) => void,
|
|
256
291
|
): this;
|
|
257
292
|
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
258
293
|
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -265,19 +300,19 @@ declare module "https" {
|
|
|
265
300
|
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
266
301
|
prependOnceListener(
|
|
267
302
|
event: "connect",
|
|
268
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
303
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
269
304
|
): this;
|
|
270
305
|
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
271
306
|
prependOnceListener(
|
|
272
307
|
event: "upgrade",
|
|
273
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
308
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
274
309
|
): this;
|
|
275
310
|
}
|
|
276
311
|
/**
|
|
277
312
|
* ```js
|
|
278
313
|
* // curl -k https://localhost:8000/
|
|
279
|
-
*
|
|
280
|
-
*
|
|
314
|
+
* import https from 'node:https';
|
|
315
|
+
* import fs from 'node:fs';
|
|
281
316
|
*
|
|
282
317
|
* const options = {
|
|
283
318
|
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
@@ -293,8 +328,8 @@ declare module "https" {
|
|
|
293
328
|
* Or
|
|
294
329
|
*
|
|
295
330
|
* ```js
|
|
296
|
-
*
|
|
297
|
-
*
|
|
331
|
+
* import https from 'node:https';
|
|
332
|
+
* import fs from 'node:fs';
|
|
298
333
|
*
|
|
299
334
|
* const options = {
|
|
300
335
|
* pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
|
|
@@ -312,11 +347,11 @@ declare module "https" {
|
|
|
312
347
|
*/
|
|
313
348
|
function createServer<
|
|
314
349
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
315
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
350
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
316
351
|
>(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
|
|
317
352
|
function createServer<
|
|
318
353
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
319
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
354
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
320
355
|
>(
|
|
321
356
|
options: ServerOptions<Request, Response>,
|
|
322
357
|
requestListener?: http.RequestListener<Request, Response>,
|
|
@@ -324,8 +359,8 @@ declare module "https" {
|
|
|
324
359
|
/**
|
|
325
360
|
* Makes a request to a secure web server.
|
|
326
361
|
*
|
|
327
|
-
* The following additional `options` from `tls.connect()` are also accepted
|
|
328
|
-
* `pfx`, `rejectUnauthorized
|
|
362
|
+
* The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
|
|
363
|
+
* `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
|
|
329
364
|
*
|
|
330
365
|
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
331
366
|
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
@@ -334,7 +369,7 @@ declare module "https" {
|
|
|
334
369
|
* upload a file with a POST request, then write to the `ClientRequest` object.
|
|
335
370
|
*
|
|
336
371
|
* ```js
|
|
337
|
-
*
|
|
372
|
+
* import https from 'node:https';
|
|
338
373
|
*
|
|
339
374
|
* const options = {
|
|
340
375
|
* hostname: 'encrypted.google.com',
|
|
@@ -407,9 +442,9 @@ declare module "https" {
|
|
|
407
442
|
* Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
|
|
408
443
|
*
|
|
409
444
|
* ```js
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
445
|
+
* import tls from 'node:tls';
|
|
446
|
+
* import https from 'node:https';
|
|
447
|
+
* import crypto from 'node:crypto';
|
|
413
448
|
*
|
|
414
449
|
* function sha256(s) {
|
|
415
450
|
* return crypto.createHash('sha256').update(s).digest('base64');
|
|
@@ -517,7 +552,7 @@ declare module "https" {
|
|
|
517
552
|
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
518
553
|
*
|
|
519
554
|
* ```js
|
|
520
|
-
*
|
|
555
|
+
* import https from 'node:https';
|
|
521
556
|
*
|
|
522
557
|
* https.get('https://encrypted.google.com/', (res) => {
|
|
523
558
|
* console.log('statusCode:', res.statusCode);
|
|
@@ -22,18 +22,32 @@
|
|
|
22
22
|
* IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// NOTE: These definitions support
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 5.8+.
|
|
26
26
|
|
|
27
|
-
// Reference required
|
|
27
|
+
// Reference required TypeScript libraries:
|
|
28
28
|
/// <reference lib="es2020" />
|
|
29
|
-
/// <reference lib="esnext.
|
|
30
|
-
/// <reference lib="esnext.
|
|
31
|
-
/// <reference lib="esnext.bigint" />
|
|
29
|
+
/// <reference lib="esnext.disposable" />
|
|
30
|
+
/// <reference lib="esnext.float16" />
|
|
32
31
|
|
|
33
|
-
//
|
|
32
|
+
// Iterator definitions required for compatibility with TypeScript <5.6:
|
|
33
|
+
/// <reference path="compatibility/iterators.d.ts" />
|
|
34
|
+
|
|
35
|
+
// Definitions for Node.js modules specific to TypeScript 5.7+:
|
|
36
|
+
/// <reference path="globals.typedarray.d.ts" />
|
|
37
|
+
/// <reference path="buffer.buffer.d.ts" />
|
|
38
|
+
|
|
39
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
40
|
+
/// <reference path="globals.d.ts" />
|
|
41
|
+
/// <reference path="web-globals/abortcontroller.d.ts" />
|
|
42
|
+
/// <reference path="web-globals/crypto.d.ts" />
|
|
43
|
+
/// <reference path="web-globals/domexception.d.ts" />
|
|
44
|
+
/// <reference path="web-globals/events.d.ts" />
|
|
45
|
+
/// <reference path="web-globals/fetch.d.ts" />
|
|
46
|
+
/// <reference path="web-globals/navigator.d.ts" />
|
|
47
|
+
/// <reference path="web-globals/storage.d.ts" />
|
|
48
|
+
/// <reference path="web-globals/streams.d.ts" />
|
|
34
49
|
/// <reference path="assert.d.ts" />
|
|
35
50
|
/// <reference path="assert/strict.d.ts" />
|
|
36
|
-
/// <reference path="globals.d.ts" />
|
|
37
51
|
/// <reference path="async_hooks.d.ts" />
|
|
38
52
|
/// <reference path="buffer.d.ts" />
|
|
39
53
|
/// <reference path="child_process.d.ts" />
|
|
@@ -45,9 +59,7 @@
|
|
|
45
59
|
/// <reference path="diagnostics_channel.d.ts" />
|
|
46
60
|
/// <reference path="dns.d.ts" />
|
|
47
61
|
/// <reference path="dns/promises.d.ts" />
|
|
48
|
-
/// <reference path="dns/promises.d.ts" />
|
|
49
62
|
/// <reference path="domain.d.ts" />
|
|
50
|
-
/// <reference path="dom-events.d.ts" />
|
|
51
63
|
/// <reference path="events.d.ts" />
|
|
52
64
|
/// <reference path="fs.d.ts" />
|
|
53
65
|
/// <reference path="fs/promises.d.ts" />
|
|
@@ -55,6 +67,7 @@
|
|
|
55
67
|
/// <reference path="http2.d.ts" />
|
|
56
68
|
/// <reference path="https.d.ts" />
|
|
57
69
|
/// <reference path="inspector.d.ts" />
|
|
70
|
+
/// <reference path="inspector.generated.d.ts" />
|
|
58
71
|
/// <reference path="module.d.ts" />
|
|
59
72
|
/// <reference path="net.d.ts" />
|
|
60
73
|
/// <reference path="os.d.ts" />
|
|
@@ -66,6 +79,8 @@
|
|
|
66
79
|
/// <reference path="readline.d.ts" />
|
|
67
80
|
/// <reference path="readline/promises.d.ts" />
|
|
68
81
|
/// <reference path="repl.d.ts" />
|
|
82
|
+
/// <reference path="sea.d.ts" />
|
|
83
|
+
/// <reference path="sqlite.d.ts" />
|
|
69
84
|
/// <reference path="stream.d.ts" />
|
|
70
85
|
/// <reference path="stream/promises.d.ts" />
|
|
71
86
|
/// <reference path="stream/consumers.d.ts" />
|
|
@@ -84,5 +99,3 @@
|
|
|
84
99
|
/// <reference path="wasi.d.ts" />
|
|
85
100
|
/// <reference path="worker_threads.d.ts" />
|
|
86
101
|
/// <reference path="zlib.d.ts" />
|
|
87
|
-
|
|
88
|
-
/// <reference path="globals.global.d.ts" />
|