@secure-exec/core 0.1.1-rc.3 → 0.2.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm-compiler.d.ts +5 -1
- package/dist/esm-compiler.js +5 -1
- package/dist/fs-helpers.d.ts +1 -1
- package/dist/generated/isolate-runtime.d.ts +15 -15
- package/dist/generated/isolate-runtime.js +15 -15
- package/dist/index.d.ts +24 -5
- package/dist/index.js +23 -3
- package/dist/isolate-runtime/apply-custom-global-policy.js +3 -3
- package/dist/isolate-runtime/apply-timing-mitigation-freeze.js +2 -2
- package/dist/isolate-runtime/apply-timing-mitigation-off.js +2 -2
- package/dist/isolate-runtime/bridge-attach.js +2 -2
- package/dist/isolate-runtime/bridge-initial-globals.js +145 -6
- package/dist/isolate-runtime/eval-script-result.js +1 -1
- package/dist/isolate-runtime/global-exposure-helpers.js +2 -2
- package/dist/isolate-runtime/init-commonjs-module-globals.js +2 -2
- package/dist/isolate-runtime/override-process-cwd.js +1 -1
- package/dist/isolate-runtime/override-process-env.js +1 -1
- package/dist/isolate-runtime/require-setup.js +2868 -494
- package/dist/isolate-runtime/set-commonjs-file-globals.js +2 -2
- package/dist/isolate-runtime/set-stdin-data.js +1 -1
- package/dist/isolate-runtime/setup-dynamic-import.js +78 -19
- package/dist/isolate-runtime/setup-fs-facade.js +62 -23
- package/dist/kernel/command-registry.d.ts +44 -0
- package/dist/kernel/command-registry.js +114 -0
- package/dist/kernel/device-layer.d.ts +12 -0
- package/dist/kernel/device-layer.js +262 -0
- package/dist/kernel/dns-cache.d.ts +29 -0
- package/dist/kernel/dns-cache.js +52 -0
- package/dist/kernel/fd-table.d.ts +84 -0
- package/dist/kernel/fd-table.js +278 -0
- package/dist/kernel/file-lock.d.ts +34 -0
- package/dist/kernel/file-lock.js +122 -0
- package/dist/kernel/host-adapter.d.ts +50 -0
- package/dist/kernel/host-adapter.js +8 -0
- package/dist/kernel/index.d.ts +36 -0
- package/dist/kernel/index.js +34 -0
- package/dist/kernel/inode-table.d.ts +43 -0
- package/dist/kernel/inode-table.js +85 -0
- package/dist/kernel/kernel.d.ts +9 -0
- package/dist/kernel/kernel.js +1393 -0
- package/dist/kernel/permissions.d.ts +27 -0
- package/dist/kernel/permissions.js +118 -0
- package/dist/kernel/pipe-manager.d.ts +64 -0
- package/dist/kernel/pipe-manager.js +267 -0
- package/dist/kernel/proc-layer.d.ts +11 -0
- package/dist/kernel/proc-layer.js +501 -0
- package/dist/kernel/process-table.d.ts +124 -0
- package/dist/kernel/process-table.js +631 -0
- package/dist/kernel/pty.d.ts +108 -0
- package/dist/kernel/pty.js +541 -0
- package/dist/kernel/socket-table.d.ts +312 -0
- package/dist/kernel/socket-table.js +1188 -0
- package/dist/kernel/timer-table.d.ts +54 -0
- package/dist/kernel/timer-table.js +108 -0
- package/dist/kernel/types.d.ts +500 -0
- package/dist/kernel/types.js +89 -0
- package/dist/kernel/user.d.ts +29 -0
- package/dist/kernel/user.js +35 -0
- package/dist/kernel/vfs.d.ts +54 -0
- package/dist/kernel/vfs.js +8 -0
- package/dist/kernel/wait.d.ts +45 -0
- package/dist/kernel/wait.js +112 -0
- package/dist/kernel/wstatus.d.ts +21 -0
- package/dist/kernel/wstatus.js +33 -0
- package/dist/module-resolver.d.ts +4 -0
- package/dist/module-resolver.js +4 -0
- package/dist/package-bundler.d.ts +6 -1
- package/dist/runtime-driver.d.ts +3 -1
- package/dist/shared/bridge-contract.d.ts +349 -22
- package/dist/shared/bridge-contract.js +62 -5
- package/dist/shared/console-formatter.js +8 -4
- package/dist/shared/global-exposure.js +364 -19
- package/dist/shared/in-memory-fs.d.ts +33 -11
- package/dist/shared/in-memory-fs.js +439 -130
- package/dist/shared/permissions.d.ts +4 -6
- package/dist/shared/permissions.js +19 -39
- package/dist/types.d.ts +8 -159
- package/dist/types.js +5 -0
- package/package.json +12 -22
- package/dist/bridge/active-handles.d.ts +0 -22
- package/dist/bridge/active-handles.js +0 -55
- package/dist/bridge/child-process.d.ts +0 -99
- package/dist/bridge/child-process.js +0 -670
- package/dist/bridge/fs.d.ts +0 -281
- package/dist/bridge/fs.js +0 -2235
- package/dist/bridge/index.d.ts +0 -10
- package/dist/bridge/index.js +0 -41
- package/dist/bridge/module.d.ts +0 -75
- package/dist/bridge/module.js +0 -308
- package/dist/bridge/network.d.ts +0 -350
- package/dist/bridge/network.js +0 -2050
- package/dist/bridge/os.d.ts +0 -13
- package/dist/bridge/os.js +0 -256
- package/dist/bridge/polyfills.d.ts +0 -2
- package/dist/bridge/polyfills.js +0 -11
- package/dist/bridge/process.d.ts +0 -89
- package/dist/bridge/process.js +0 -1015
- package/dist/bridge.js +0 -12496
- package/dist/python-runtime.d.ts +0 -16
- package/dist/python-runtime.js +0 -45
- package/dist/runtime.d.ts +0 -31
- package/dist/runtime.js +0 -69
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @deprecated Canonical source moved to @secure-exec/nodejs (US-002).
|
|
3
|
+
* This copy is retained for backward compatibility during phased migration.
|
|
4
|
+
* Will be removed in US-005 when kernel merges into core.
|
|
5
|
+
*
|
|
2
6
|
* Bridge contract: typed declarations for the globals shared between the
|
|
3
7
|
* host (Node.js) and the isolate (sandbox V8 context).
|
|
4
8
|
*
|
|
@@ -6,7 +10,7 @@
|
|
|
6
10
|
* - Host bridge globals: set by the host before bridge code runs (fs refs, timers, etc.)
|
|
7
11
|
* - Runtime bridge globals: installed by the bridge bundle itself (active handles, modules, etc.)
|
|
8
12
|
*
|
|
9
|
-
* The typed `Ref` aliases describe the
|
|
13
|
+
* The typed `Ref` aliases describe the bridge calling convention for each global.
|
|
10
14
|
*/
|
|
11
15
|
export type ValueOf<T> = T[keyof T];
|
|
12
16
|
/** Globals injected by the host before the bridge bundle executes. */
|
|
@@ -14,9 +18,7 @@ export declare const HOST_BRIDGE_GLOBAL_KEYS: {
|
|
|
14
18
|
readonly dynamicImport: "_dynamicImport";
|
|
15
19
|
readonly loadPolyfill: "_loadPolyfill";
|
|
16
20
|
readonly resolveModule: "_resolveModule";
|
|
17
|
-
readonly resolveModuleSync: "_resolveModuleSync";
|
|
18
21
|
readonly loadFile: "_loadFile";
|
|
19
|
-
readonly loadFileSync: "_loadFileSync";
|
|
20
22
|
readonly scheduleTimer: "_scheduleTimer";
|
|
21
23
|
readonly cryptoRandomFill: "_cryptoRandomFill";
|
|
22
24
|
readonly cryptoRandomUuid: "_cryptoRandomUUID";
|
|
@@ -31,7 +33,15 @@ export declare const HOST_BRIDGE_GLOBAL_KEYS: {
|
|
|
31
33
|
readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
|
|
32
34
|
readonly cryptoSign: "_cryptoSign";
|
|
33
35
|
readonly cryptoVerify: "_cryptoVerify";
|
|
36
|
+
readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
|
|
37
|
+
readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
|
|
34
38
|
readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
|
|
39
|
+
readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
|
|
40
|
+
readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
|
|
41
|
+
readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
|
|
42
|
+
readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
|
|
43
|
+
readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
|
|
44
|
+
readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
|
|
35
45
|
readonly cryptoSubtle: "_cryptoSubtle";
|
|
36
46
|
readonly fsReadFile: "_fsReadFile";
|
|
37
47
|
readonly fsWriteFile: "_fsWriteFile";
|
|
@@ -62,15 +72,60 @@ export declare const HOST_BRIDGE_GLOBAL_KEYS: {
|
|
|
62
72
|
readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
|
|
63
73
|
readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
|
|
64
74
|
readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
|
|
75
|
+
readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
|
|
76
|
+
readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
|
|
77
|
+
readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
|
|
78
|
+
readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
|
|
79
|
+
readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
|
|
80
|
+
readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
|
|
81
|
+
readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
|
|
82
|
+
readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
|
|
83
|
+
readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
|
|
84
|
+
readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
|
|
85
|
+
readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
|
|
86
|
+
readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
|
|
87
|
+
readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
|
|
88
|
+
readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
|
|
89
|
+
readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
|
|
90
|
+
readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
|
|
91
|
+
readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
|
|
92
|
+
readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
|
|
93
|
+
readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
|
|
94
|
+
readonly networkHttp2StreamCloseRaw: "_networkHttp2StreamCloseRaw";
|
|
95
|
+
readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
|
|
96
|
+
readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
|
|
97
|
+
readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
|
|
98
|
+
readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
|
|
65
99
|
readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
|
|
66
100
|
readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
|
|
67
101
|
readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
|
|
68
102
|
readonly netSocketConnectRaw: "_netSocketConnectRaw";
|
|
103
|
+
readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
|
|
104
|
+
readonly netSocketReadRaw: "_netSocketReadRaw";
|
|
105
|
+
readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
|
|
106
|
+
readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
|
|
69
107
|
readonly netSocketWriteRaw: "_netSocketWriteRaw";
|
|
70
108
|
readonly netSocketEndRaw: "_netSocketEndRaw";
|
|
71
109
|
readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
|
|
72
110
|
readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
|
|
111
|
+
readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
|
|
112
|
+
readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
|
|
113
|
+
readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
|
|
114
|
+
readonly netServerListenRaw: "_netServerListenRaw";
|
|
115
|
+
readonly netServerAcceptRaw: "_netServerAcceptRaw";
|
|
116
|
+
readonly netServerCloseRaw: "_netServerCloseRaw";
|
|
117
|
+
readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
|
|
118
|
+
readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
|
|
119
|
+
readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
|
|
120
|
+
readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
|
|
121
|
+
readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
|
|
122
|
+
readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
|
|
123
|
+
readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
|
|
124
|
+
readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
|
|
125
|
+
readonly resolveModuleSync: "_resolveModuleSync";
|
|
126
|
+
readonly loadFileSync: "_loadFileSync";
|
|
73
127
|
readonly ptySetRawMode: "_ptySetRawMode";
|
|
128
|
+
readonly kernelStdinRead: "_kernelStdinRead";
|
|
74
129
|
readonly processConfig: "_processConfig";
|
|
75
130
|
readonly osConfig: "_osConfig";
|
|
76
131
|
readonly log: "_log";
|
|
@@ -90,12 +145,14 @@ export declare const RUNTIME_BRIDGE_GLOBAL_KEYS: {
|
|
|
90
145
|
readonly httpsModule: "_httpsModule";
|
|
91
146
|
readonly http2Module: "_http2Module";
|
|
92
147
|
readonly dnsModule: "_dnsModule";
|
|
148
|
+
readonly dgramModule: "_dgramModule";
|
|
93
149
|
readonly httpServerDispatch: "_httpServerDispatch";
|
|
94
150
|
readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
|
|
151
|
+
readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
|
|
152
|
+
readonly http2Dispatch: "_http2Dispatch";
|
|
153
|
+
readonly timerDispatch: "_timerDispatch";
|
|
95
154
|
readonly upgradeSocketData: "_upgradeSocketData";
|
|
96
155
|
readonly upgradeSocketEnd: "_upgradeSocketEnd";
|
|
97
|
-
readonly netModule: "_netModule";
|
|
98
|
-
readonly tlsModule: "_tlsModule";
|
|
99
156
|
readonly netSocketDispatch: "_netSocketDispatch";
|
|
100
157
|
readonly fsFacade: "_fs";
|
|
101
158
|
readonly requireFrom: "_requireFrom";
|
|
@@ -109,9 +166,7 @@ export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
|
|
|
109
166
|
readonly dynamicImport: "_dynamicImport";
|
|
110
167
|
readonly loadPolyfill: "_loadPolyfill";
|
|
111
168
|
readonly resolveModule: "_resolveModule";
|
|
112
|
-
readonly resolveModuleSync: "_resolveModuleSync";
|
|
113
169
|
readonly loadFile: "_loadFile";
|
|
114
|
-
readonly loadFileSync: "_loadFileSync";
|
|
115
170
|
readonly scheduleTimer: "_scheduleTimer";
|
|
116
171
|
readonly cryptoRandomFill: "_cryptoRandomFill";
|
|
117
172
|
readonly cryptoRandomUuid: "_cryptoRandomUUID";
|
|
@@ -126,7 +181,15 @@ export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
|
|
|
126
181
|
readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
|
|
127
182
|
readonly cryptoSign: "_cryptoSign";
|
|
128
183
|
readonly cryptoVerify: "_cryptoVerify";
|
|
184
|
+
readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
|
|
185
|
+
readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
|
|
129
186
|
readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
|
|
187
|
+
readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
|
|
188
|
+
readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
|
|
189
|
+
readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
|
|
190
|
+
readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
|
|
191
|
+
readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
|
|
192
|
+
readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
|
|
130
193
|
readonly cryptoSubtle: "_cryptoSubtle";
|
|
131
194
|
readonly fsReadFile: "_fsReadFile";
|
|
132
195
|
readonly fsWriteFile: "_fsWriteFile";
|
|
@@ -157,15 +220,60 @@ export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
|
|
|
157
220
|
readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
|
|
158
221
|
readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
|
|
159
222
|
readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
|
|
223
|
+
readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
|
|
224
|
+
readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
|
|
225
|
+
readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
|
|
226
|
+
readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
|
|
227
|
+
readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
|
|
228
|
+
readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
|
|
229
|
+
readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
|
|
230
|
+
readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
|
|
231
|
+
readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
|
|
232
|
+
readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
|
|
233
|
+
readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
|
|
234
|
+
readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
|
|
235
|
+
readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
|
|
236
|
+
readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
|
|
237
|
+
readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
|
|
238
|
+
readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
|
|
239
|
+
readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
|
|
240
|
+
readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
|
|
241
|
+
readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
|
|
242
|
+
readonly networkHttp2StreamCloseRaw: "_networkHttp2StreamCloseRaw";
|
|
243
|
+
readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
|
|
244
|
+
readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
|
|
245
|
+
readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
|
|
246
|
+
readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
|
|
160
247
|
readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
|
|
161
248
|
readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
|
|
162
249
|
readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
|
|
163
250
|
readonly netSocketConnectRaw: "_netSocketConnectRaw";
|
|
251
|
+
readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
|
|
252
|
+
readonly netSocketReadRaw: "_netSocketReadRaw";
|
|
253
|
+
readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
|
|
254
|
+
readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
|
|
164
255
|
readonly netSocketWriteRaw: "_netSocketWriteRaw";
|
|
165
256
|
readonly netSocketEndRaw: "_netSocketEndRaw";
|
|
166
257
|
readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
|
|
167
258
|
readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
|
|
259
|
+
readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
|
|
260
|
+
readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
|
|
261
|
+
readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
|
|
262
|
+
readonly netServerListenRaw: "_netServerListenRaw";
|
|
263
|
+
readonly netServerAcceptRaw: "_netServerAcceptRaw";
|
|
264
|
+
readonly netServerCloseRaw: "_netServerCloseRaw";
|
|
265
|
+
readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
|
|
266
|
+
readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
|
|
267
|
+
readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
|
|
268
|
+
readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
|
|
269
|
+
readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
|
|
270
|
+
readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
|
|
271
|
+
readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
|
|
272
|
+
readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
|
|
273
|
+
readonly resolveModuleSync: "_resolveModuleSync";
|
|
274
|
+
readonly loadFileSync: "_loadFileSync";
|
|
168
275
|
readonly ptySetRawMode: "_ptySetRawMode";
|
|
276
|
+
readonly kernelStdinRead: "_kernelStdinRead";
|
|
169
277
|
readonly processConfig: "_processConfig";
|
|
170
278
|
readonly osConfig: "_osConfig";
|
|
171
279
|
readonly log: "_log";
|
|
@@ -184,12 +292,14 @@ export declare const RUNTIME_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
|
|
|
184
292
|
readonly httpsModule: "_httpsModule";
|
|
185
293
|
readonly http2Module: "_http2Module";
|
|
186
294
|
readonly dnsModule: "_dnsModule";
|
|
295
|
+
readonly dgramModule: "_dgramModule";
|
|
187
296
|
readonly httpServerDispatch: "_httpServerDispatch";
|
|
188
297
|
readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
|
|
298
|
+
readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
|
|
299
|
+
readonly http2Dispatch: "_http2Dispatch";
|
|
300
|
+
readonly timerDispatch: "_timerDispatch";
|
|
189
301
|
readonly upgradeSocketData: "_upgradeSocketData";
|
|
190
302
|
readonly upgradeSocketEnd: "_upgradeSocketEnd";
|
|
191
|
-
readonly netModule: "_netModule";
|
|
192
|
-
readonly tlsModule: "_tlsModule";
|
|
193
303
|
readonly netSocketDispatch: "_netSocketDispatch";
|
|
194
304
|
readonly fsFacade: "_fs";
|
|
195
305
|
readonly requireFrom: "_requireFrom";
|
|
@@ -200,9 +310,7 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
|
|
|
200
310
|
readonly dynamicImport: "_dynamicImport";
|
|
201
311
|
readonly loadPolyfill: "_loadPolyfill";
|
|
202
312
|
readonly resolveModule: "_resolveModule";
|
|
203
|
-
readonly resolveModuleSync: "_resolveModuleSync";
|
|
204
313
|
readonly loadFile: "_loadFile";
|
|
205
|
-
readonly loadFileSync: "_loadFileSync";
|
|
206
314
|
readonly scheduleTimer: "_scheduleTimer";
|
|
207
315
|
readonly cryptoRandomFill: "_cryptoRandomFill";
|
|
208
316
|
readonly cryptoRandomUuid: "_cryptoRandomUUID";
|
|
@@ -217,7 +325,15 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
|
|
|
217
325
|
readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
|
|
218
326
|
readonly cryptoSign: "_cryptoSign";
|
|
219
327
|
readonly cryptoVerify: "_cryptoVerify";
|
|
328
|
+
readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
|
|
329
|
+
readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
|
|
220
330
|
readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
|
|
331
|
+
readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
|
|
332
|
+
readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
|
|
333
|
+
readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
|
|
334
|
+
readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
|
|
335
|
+
readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
|
|
336
|
+
readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
|
|
221
337
|
readonly cryptoSubtle: "_cryptoSubtle";
|
|
222
338
|
readonly fsReadFile: "_fsReadFile";
|
|
223
339
|
readonly fsWriteFile: "_fsWriteFile";
|
|
@@ -248,15 +364,60 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
|
|
|
248
364
|
readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
|
|
249
365
|
readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
|
|
250
366
|
readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
|
|
367
|
+
readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
|
|
368
|
+
readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
|
|
369
|
+
readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
|
|
370
|
+
readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
|
|
371
|
+
readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
|
|
372
|
+
readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
|
|
373
|
+
readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
|
|
374
|
+
readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
|
|
375
|
+
readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
|
|
376
|
+
readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
|
|
377
|
+
readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
|
|
378
|
+
readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
|
|
379
|
+
readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
|
|
380
|
+
readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
|
|
381
|
+
readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
|
|
382
|
+
readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
|
|
383
|
+
readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
|
|
384
|
+
readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
|
|
385
|
+
readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
|
|
386
|
+
readonly networkHttp2StreamCloseRaw: "_networkHttp2StreamCloseRaw";
|
|
387
|
+
readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
|
|
388
|
+
readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
|
|
389
|
+
readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
|
|
390
|
+
readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
|
|
251
391
|
readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
|
|
252
392
|
readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
|
|
253
393
|
readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
|
|
254
394
|
readonly netSocketConnectRaw: "_netSocketConnectRaw";
|
|
395
|
+
readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
|
|
396
|
+
readonly netSocketReadRaw: "_netSocketReadRaw";
|
|
397
|
+
readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
|
|
398
|
+
readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
|
|
255
399
|
readonly netSocketWriteRaw: "_netSocketWriteRaw";
|
|
256
400
|
readonly netSocketEndRaw: "_netSocketEndRaw";
|
|
257
401
|
readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
|
|
258
402
|
readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
|
|
403
|
+
readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
|
|
404
|
+
readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
|
|
405
|
+
readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
|
|
406
|
+
readonly netServerListenRaw: "_netServerListenRaw";
|
|
407
|
+
readonly netServerAcceptRaw: "_netServerAcceptRaw";
|
|
408
|
+
readonly netServerCloseRaw: "_netServerCloseRaw";
|
|
409
|
+
readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
|
|
410
|
+
readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
|
|
411
|
+
readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
|
|
412
|
+
readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
|
|
413
|
+
readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
|
|
414
|
+
readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
|
|
415
|
+
readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
|
|
416
|
+
readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
|
|
417
|
+
readonly resolveModuleSync: "_resolveModuleSync";
|
|
418
|
+
readonly loadFileSync: "_loadFileSync";
|
|
259
419
|
readonly ptySetRawMode: "_ptySetRawMode";
|
|
420
|
+
readonly kernelStdinRead: "_kernelStdinRead";
|
|
260
421
|
readonly processConfig: "_processConfig";
|
|
261
422
|
readonly osConfig: "_osConfig";
|
|
262
423
|
readonly log: "_log";
|
|
@@ -274,19 +435,21 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
|
|
|
274
435
|
readonly httpsModule: "_httpsModule";
|
|
275
436
|
readonly http2Module: "_http2Module";
|
|
276
437
|
readonly dnsModule: "_dnsModule";
|
|
438
|
+
readonly dgramModule: "_dgramModule";
|
|
277
439
|
readonly httpServerDispatch: "_httpServerDispatch";
|
|
278
440
|
readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
|
|
441
|
+
readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
|
|
442
|
+
readonly http2Dispatch: "_http2Dispatch";
|
|
443
|
+
readonly timerDispatch: "_timerDispatch";
|
|
279
444
|
readonly upgradeSocketData: "_upgradeSocketData";
|
|
280
445
|
readonly upgradeSocketEnd: "_upgradeSocketEnd";
|
|
281
|
-
readonly netModule: "_netModule";
|
|
282
|
-
readonly tlsModule: "_tlsModule";
|
|
283
446
|
readonly netSocketDispatch: "_netSocketDispatch";
|
|
284
447
|
readonly fsFacade: "_fs";
|
|
285
448
|
readonly requireFrom: "_requireFrom";
|
|
286
449
|
readonly moduleCache: "_moduleCache";
|
|
287
450
|
readonly processExitError: "ProcessExitError";
|
|
288
451
|
}>)[];
|
|
289
|
-
/**
|
|
452
|
+
/** A bridge Reference that resolves async via `{ result: { promise: true } }`. */
|
|
290
453
|
export interface BridgeApplyRef<TArgs extends unknown[], TResult> {
|
|
291
454
|
apply(ctx: undefined, args: TArgs, options: {
|
|
292
455
|
result: {
|
|
@@ -294,18 +457,19 @@ export interface BridgeApplyRef<TArgs extends unknown[], TResult> {
|
|
|
294
457
|
};
|
|
295
458
|
}): Promise<TResult>;
|
|
296
459
|
}
|
|
297
|
-
/**
|
|
460
|
+
/** A bridge Reference called synchronously (blocks the isolate). */
|
|
298
461
|
export interface BridgeApplySyncRef<TArgs extends unknown[], TResult> {
|
|
299
462
|
applySync(ctx: undefined, args: TArgs): TResult;
|
|
300
463
|
}
|
|
301
464
|
/**
|
|
302
|
-
*
|
|
465
|
+
* A bridge Reference that blocks the isolate while the host resolves
|
|
303
466
|
* a Promise. Used for sync-looking APIs (require, readFileSync) that need
|
|
304
467
|
* async host operations.
|
|
305
468
|
*/
|
|
306
469
|
export interface BridgeApplySyncPromiseRef<TArgs extends unknown[], TResult> {
|
|
307
470
|
applySyncPromise(ctx: undefined, args: TArgs): TResult;
|
|
308
471
|
}
|
|
472
|
+
export type ModuleLoadMode = "require" | "import";
|
|
309
473
|
export type DynamicImportBridgeRef = BridgeApplyRef<[
|
|
310
474
|
string,
|
|
311
475
|
string
|
|
@@ -314,13 +478,20 @@ export type LoadPolyfillBridgeRef = BridgeApplyRef<[string], string | null>;
|
|
|
314
478
|
export type ResolveModuleBridgeRef = BridgeApplySyncPromiseRef<[
|
|
315
479
|
string,
|
|
316
480
|
string
|
|
317
|
-
], string | null>;
|
|
318
|
-
export type LoadFileBridgeRef = BridgeApplySyncPromiseRef<[
|
|
481
|
+
] | [string, string, ModuleLoadMode], string | null>;
|
|
482
|
+
export type LoadFileBridgeRef = BridgeApplySyncPromiseRef<[
|
|
483
|
+
string
|
|
484
|
+
] | [string, ModuleLoadMode], string | null>;
|
|
319
485
|
export type RequireFromBridgeFn = (request: string, dirname: string) => unknown;
|
|
320
486
|
export type ModuleCacheBridgeRecord = Record<string, unknown>;
|
|
321
487
|
export type ProcessLogBridgeRef = BridgeApplySyncRef<[string], void>;
|
|
322
488
|
export type ProcessErrorBridgeRef = BridgeApplySyncRef<[string], void>;
|
|
323
489
|
export type ScheduleTimerBridgeRef = BridgeApplyRef<[number], void>;
|
|
490
|
+
export type KernelStdinReadBridgeRef = BridgeApplyRef<[
|
|
491
|
+
], {
|
|
492
|
+
done: boolean;
|
|
493
|
+
dataBase64?: string;
|
|
494
|
+
}>;
|
|
324
495
|
export type CryptoRandomFillBridgeRef = BridgeApplySyncRef<[number], string>;
|
|
325
496
|
export type CryptoRandomUuidBridgeRef = BridgeApplySyncRef<[], string>;
|
|
326
497
|
export type CryptoHashDigestBridgeRef = BridgeApplySyncRef<[string, string], string>;
|
|
@@ -341,31 +512,70 @@ export type CryptoScryptBridgeRef = BridgeApplySyncRef<[
|
|
|
341
512
|
export type CryptoCipherivBridgeRef = BridgeApplySyncRef<[
|
|
342
513
|
string,
|
|
343
514
|
string,
|
|
515
|
+
string | null,
|
|
344
516
|
string,
|
|
345
|
-
string
|
|
517
|
+
string?
|
|
346
518
|
], string>;
|
|
347
519
|
export type CryptoDecipherivBridgeRef = BridgeApplySyncRef<[
|
|
348
520
|
string,
|
|
521
|
+
string,
|
|
522
|
+
string | null,
|
|
523
|
+
string,
|
|
524
|
+
string
|
|
525
|
+
], string>;
|
|
526
|
+
export type CryptoCipherivCreateBridgeRef = BridgeApplySyncRef<[
|
|
349
527
|
string,
|
|
350
528
|
string,
|
|
351
529
|
string,
|
|
530
|
+
string | null,
|
|
531
|
+
string
|
|
532
|
+
], number>;
|
|
533
|
+
export type CryptoCipherivUpdateBridgeRef = BridgeApplySyncRef<[
|
|
534
|
+
number,
|
|
352
535
|
string
|
|
353
536
|
], string>;
|
|
537
|
+
export type CryptoCipherivFinalBridgeRef = BridgeApplySyncRef<[
|
|
538
|
+
number
|
|
539
|
+
], string>;
|
|
354
540
|
export type CryptoSignBridgeRef = BridgeApplySyncRef<[
|
|
355
|
-
string,
|
|
541
|
+
string | null,
|
|
356
542
|
string,
|
|
357
543
|
string
|
|
358
544
|
], string>;
|
|
359
545
|
export type CryptoVerifyBridgeRef = BridgeApplySyncRef<[
|
|
360
|
-
string,
|
|
546
|
+
string | null,
|
|
361
547
|
string,
|
|
362
548
|
string,
|
|
363
549
|
string
|
|
364
550
|
], boolean>;
|
|
551
|
+
export type CryptoAsymmetricOpBridgeRef = BridgeApplySyncRef<[
|
|
552
|
+
string,
|
|
553
|
+
string,
|
|
554
|
+
string
|
|
555
|
+
], string>;
|
|
556
|
+
export type CryptoCreateKeyObjectBridgeRef = BridgeApplySyncRef<[
|
|
557
|
+
string,
|
|
558
|
+
string
|
|
559
|
+
], string>;
|
|
365
560
|
export type CryptoGenerateKeyPairSyncBridgeRef = BridgeApplySyncRef<[
|
|
366
561
|
string,
|
|
367
562
|
string
|
|
368
563
|
], string>;
|
|
564
|
+
export type CryptoGenerateKeySyncBridgeRef = BridgeApplySyncRef<[
|
|
565
|
+
string,
|
|
566
|
+
string
|
|
567
|
+
], string>;
|
|
568
|
+
export type CryptoGeneratePrimeSyncBridgeRef = BridgeApplySyncRef<[
|
|
569
|
+
number,
|
|
570
|
+
string
|
|
571
|
+
], string>;
|
|
572
|
+
export type CryptoDiffieHellmanBridgeRef = BridgeApplySyncRef<[string], string>;
|
|
573
|
+
export type CryptoDiffieHellmanGroupBridgeRef = BridgeApplySyncRef<[string], string>;
|
|
574
|
+
export type CryptoDiffieHellmanSessionCreateBridgeRef = BridgeApplySyncRef<[string], number>;
|
|
575
|
+
export type CryptoDiffieHellmanSessionCallBridgeRef = BridgeApplySyncRef<[
|
|
576
|
+
number,
|
|
577
|
+
string
|
|
578
|
+
], string>;
|
|
369
579
|
export type CryptoSubtleBridgeRef = BridgeApplySyncRef<[string], string>;
|
|
370
580
|
export type FsReadFileBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
371
581
|
export type FsWriteFileBridgeRef = BridgeApplySyncPromiseRef<[string, string], void>;
|
|
@@ -432,14 +642,131 @@ export type NetworkDnsLookupRawBridgeRef = BridgeApplyRef<[string], string>;
|
|
|
432
642
|
export type NetworkHttpRequestRawBridgeRef = BridgeApplyRef<[string, string], string>;
|
|
433
643
|
export type NetworkHttpServerListenRawBridgeRef = BridgeApplyRef<[string], string>;
|
|
434
644
|
export type NetworkHttpServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
645
|
+
export type NetworkHttpServerRespondRawBridgeRef = BridgeApplySyncRef<[
|
|
646
|
+
number,
|
|
647
|
+
number,
|
|
648
|
+
string
|
|
649
|
+
], void>;
|
|
650
|
+
export type NetworkHttpServerWaitRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
651
|
+
export type NetworkHttp2ServerListenRawBridgeRef = BridgeApplySyncPromiseRef<[
|
|
652
|
+
string
|
|
653
|
+
], string>;
|
|
654
|
+
export type NetworkHttp2ServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
655
|
+
export type NetworkHttp2ServerWaitRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
656
|
+
export type NetworkHttp2SessionConnectRawBridgeRef = BridgeApplySyncPromiseRef<[
|
|
657
|
+
string
|
|
658
|
+
], string>;
|
|
659
|
+
export type NetworkHttp2SessionRequestRawBridgeRef = BridgeApplySyncRef<[
|
|
660
|
+
number,
|
|
661
|
+
string,
|
|
662
|
+
string
|
|
663
|
+
], number>;
|
|
664
|
+
export type NetworkHttp2SessionSettingsRawBridgeRef = BridgeApplySyncRef<[
|
|
665
|
+
number,
|
|
666
|
+
string
|
|
667
|
+
], void>;
|
|
668
|
+
export type NetworkHttp2SessionSetLocalWindowSizeRawBridgeRef = BridgeApplySyncRef<[
|
|
669
|
+
number,
|
|
670
|
+
number
|
|
671
|
+
], string>;
|
|
672
|
+
export type NetworkHttp2SessionGoawayRawBridgeRef = BridgeApplySyncRef<[
|
|
673
|
+
number,
|
|
674
|
+
number,
|
|
675
|
+
number,
|
|
676
|
+
string | null
|
|
677
|
+
], void>;
|
|
678
|
+
export type NetworkHttp2SessionCloseRawBridgeRef = BridgeApplySyncRef<[
|
|
679
|
+
number
|
|
680
|
+
], void>;
|
|
681
|
+
export type NetworkHttp2SessionDestroyRawBridgeRef = BridgeApplySyncRef<[
|
|
682
|
+
number
|
|
683
|
+
], void>;
|
|
684
|
+
export type NetworkHttp2SessionWaitRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
685
|
+
export type NetworkHttp2ServerPollRawBridgeRef = BridgeApplySyncRef<[
|
|
686
|
+
number
|
|
687
|
+
], string | null>;
|
|
688
|
+
export type NetworkHttp2SessionPollRawBridgeRef = BridgeApplySyncRef<[
|
|
689
|
+
number
|
|
690
|
+
], string | null>;
|
|
691
|
+
export type NetworkHttp2StreamRespondRawBridgeRef = BridgeApplySyncRef<[
|
|
692
|
+
number,
|
|
693
|
+
string
|
|
694
|
+
], void>;
|
|
695
|
+
export type NetworkHttp2StreamPushStreamRawBridgeRef = BridgeApplySyncRef<[
|
|
696
|
+
number,
|
|
697
|
+
string,
|
|
698
|
+
string
|
|
699
|
+
], string>;
|
|
700
|
+
export type NetworkHttp2StreamWriteRawBridgeRef = BridgeApplySyncRef<[
|
|
701
|
+
number,
|
|
702
|
+
string
|
|
703
|
+
], boolean>;
|
|
704
|
+
export type NetworkHttp2StreamEndRawBridgeRef = BridgeApplySyncRef<[
|
|
705
|
+
number,
|
|
706
|
+
string | null
|
|
707
|
+
], void>;
|
|
708
|
+
export type NetworkHttp2StreamCloseRawBridgeRef = BridgeApplySyncRef<[
|
|
709
|
+
number,
|
|
710
|
+
number | null
|
|
711
|
+
], void>;
|
|
712
|
+
export type NetworkHttp2StreamPauseRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
713
|
+
export type NetworkHttp2StreamResumeRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
714
|
+
export type NetworkHttp2StreamRespondWithFileRawBridgeRef = BridgeApplySyncRef<[
|
|
715
|
+
number,
|
|
716
|
+
string,
|
|
717
|
+
string,
|
|
718
|
+
string
|
|
719
|
+
], void>;
|
|
720
|
+
export type NetworkHttp2ServerRespondRawBridgeRef = BridgeApplySyncRef<[
|
|
721
|
+
number,
|
|
722
|
+
number,
|
|
723
|
+
string
|
|
724
|
+
], void>;
|
|
435
725
|
export type UpgradeSocketWriteRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
|
|
436
726
|
export type UpgradeSocketEndRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
437
727
|
export type UpgradeSocketDestroyRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
438
|
-
export type NetSocketConnectRawBridgeRef = BridgeApplySyncRef<[string
|
|
728
|
+
export type NetSocketConnectRawBridgeRef = BridgeApplySyncRef<[string], number>;
|
|
729
|
+
export type NetSocketWaitConnectRawBridgeRef = BridgeApplyRef<[number], string>;
|
|
730
|
+
export type NetSocketReadRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
|
|
731
|
+
export type NetSocketSetNoDelayRawBridgeRef = BridgeApplySyncRef<[number, boolean], void>;
|
|
732
|
+
export type NetSocketSetKeepAliveRawBridgeRef = BridgeApplySyncRef<[number, boolean, number], void>;
|
|
439
733
|
export type NetSocketWriteRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
|
|
440
734
|
export type NetSocketEndRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
441
735
|
export type NetSocketDestroyRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
442
736
|
export type NetSocketUpgradeTlsRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
|
|
737
|
+
export type NetSocketGetTlsClientHelloRawBridgeRef = BridgeApplySyncRef<[number], string>;
|
|
738
|
+
export type NetSocketTlsQueryRawBridgeRef = BridgeApplySyncRef<[
|
|
739
|
+
number,
|
|
740
|
+
string,
|
|
741
|
+
boolean?
|
|
742
|
+
], string>;
|
|
743
|
+
export type TlsGetCiphersRawBridgeRef = BridgeApplySyncRef<[], string>;
|
|
744
|
+
export type NetServerListenRawBridgeRef = BridgeApplyRef<[string], string>;
|
|
745
|
+
export type NetServerAcceptRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
|
|
746
|
+
export type NetServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
747
|
+
export type DgramSocketCreateRawBridgeRef = BridgeApplySyncRef<[string], number>;
|
|
748
|
+
export type DgramSocketBindRawBridgeRef = BridgeApplySyncPromiseRef<[number, string], string>;
|
|
749
|
+
export type DgramSocketRecvRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
|
|
750
|
+
export type DgramSocketSendRawBridgeRef = BridgeApplySyncPromiseRef<[number, string], number>;
|
|
751
|
+
export type DgramSocketCloseRawBridgeRef = BridgeApplySyncPromiseRef<[number], void>;
|
|
752
|
+
export type DgramSocketAddressRawBridgeRef = BridgeApplySyncRef<[number], string>;
|
|
753
|
+
export type DgramSocketSetBufferSizeRawBridgeRef = BridgeApplySyncRef<[
|
|
754
|
+
number,
|
|
755
|
+
"recv" | "send",
|
|
756
|
+
number
|
|
757
|
+
], void>;
|
|
758
|
+
export type DgramSocketGetBufferSizeRawBridgeRef = BridgeApplySyncRef<[
|
|
759
|
+
number,
|
|
760
|
+
"recv" | "send"
|
|
761
|
+
], number>;
|
|
762
|
+
export type ResolveModuleSyncBridgeRef = BridgeApplySyncRef<[
|
|
763
|
+
string,
|
|
764
|
+
string
|
|
765
|
+
], string | null>;
|
|
766
|
+
export type LoadFileSyncBridgeRef = BridgeApplySyncRef<[string], string | null>;
|
|
443
767
|
export type PtySetRawModeBridgeRef = BridgeApplySyncRef<[boolean], void>;
|
|
444
768
|
export type RegisterHandleBridgeFn = (id: string, description: string) => void;
|
|
445
769
|
export type UnregisterHandleBridgeFn = (id: string) => void;
|
|
770
|
+
export type BatchResolveModulesBridgeRef = BridgeApplySyncPromiseRef<[
|
|
771
|
+
string
|
|
772
|
+
], string>;
|