@secure-exec/nodejs 0.2.0-rc.1
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/LICENSE +191 -0
- package/README.md +7 -0
- package/dist/bindings.d.ts +31 -0
- package/dist/bindings.js +67 -0
- package/dist/bridge/active-handles.d.ts +22 -0
- package/dist/bridge/active-handles.js +112 -0
- package/dist/bridge/child-process.d.ts +99 -0
- package/dist/bridge/child-process.js +672 -0
- package/dist/bridge/dispatch.d.ts +2 -0
- package/dist/bridge/dispatch.js +40 -0
- package/dist/bridge/fs.d.ts +502 -0
- package/dist/bridge/fs.js +3307 -0
- package/dist/bridge/index.d.ts +10 -0
- package/dist/bridge/index.js +41 -0
- package/dist/bridge/module.d.ts +75 -0
- package/dist/bridge/module.js +325 -0
- package/dist/bridge/network.d.ts +1093 -0
- package/dist/bridge/network.js +8651 -0
- package/dist/bridge/os.d.ts +13 -0
- package/dist/bridge/os.js +256 -0
- package/dist/bridge/polyfills.d.ts +9 -0
- package/dist/bridge/polyfills.js +67 -0
- package/dist/bridge/process.d.ts +121 -0
- package/dist/bridge/process.js +1382 -0
- package/dist/bridge/whatwg-url.d.ts +67 -0
- package/dist/bridge/whatwg-url.js +712 -0
- package/dist/bridge-contract.d.ts +774 -0
- package/dist/bridge-contract.js +172 -0
- package/dist/bridge-handlers.d.ts +199 -0
- package/dist/bridge-handlers.js +4263 -0
- package/dist/bridge-loader.d.ts +9 -0
- package/dist/bridge-loader.js +87 -0
- package/dist/bridge-setup.d.ts +1 -0
- package/dist/bridge-setup.js +3 -0
- package/dist/bridge.js +21652 -0
- package/dist/builtin-modules.d.ts +25 -0
- package/dist/builtin-modules.js +312 -0
- package/dist/default-network-adapter.d.ts +13 -0
- package/dist/default-network-adapter.js +351 -0
- package/dist/driver.d.ts +87 -0
- package/dist/driver.js +191 -0
- package/dist/esm-compiler.d.ts +14 -0
- package/dist/esm-compiler.js +68 -0
- package/dist/execution-driver.d.ts +37 -0
- package/dist/execution-driver.js +977 -0
- package/dist/host-network-adapter.d.ts +7 -0
- package/dist/host-network-adapter.js +279 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +23 -0
- package/dist/isolate-bootstrap.d.ts +86 -0
- package/dist/isolate-bootstrap.js +125 -0
- package/dist/ivm-compat.d.ts +7 -0
- package/dist/ivm-compat.js +31 -0
- package/dist/kernel-runtime.d.ts +58 -0
- package/dist/kernel-runtime.js +535 -0
- package/dist/module-access.d.ts +75 -0
- package/dist/module-access.js +606 -0
- package/dist/module-resolver.d.ts +8 -0
- package/dist/module-resolver.js +150 -0
- package/dist/os-filesystem.d.ts +42 -0
- package/dist/os-filesystem.js +161 -0
- package/dist/package-bundler.d.ts +36 -0
- package/dist/package-bundler.js +497 -0
- package/dist/polyfills.d.ts +17 -0
- package/dist/polyfills.js +97 -0
- package/dist/worker-adapter.d.ts +21 -0
- package/dist/worker-adapter.js +34 -0
- package/package.json +123 -0
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge contract: typed declarations for the globals shared between the
|
|
3
|
+
* host (Node.js) and the isolate (sandbox V8 context).
|
|
4
|
+
*
|
|
5
|
+
* Two categories:
|
|
6
|
+
* - Host bridge globals: set by the host before bridge code runs (fs refs, timers, etc.)
|
|
7
|
+
* - Runtime bridge globals: installed by the bridge bundle itself (active handles, modules, etc.)
|
|
8
|
+
*
|
|
9
|
+
* The typed `Ref` aliases describe the bridge calling convention for each global.
|
|
10
|
+
*/
|
|
11
|
+
export type ValueOf<T> = T[keyof T];
|
|
12
|
+
/** Globals injected by the host before the bridge bundle executes. */
|
|
13
|
+
export declare const HOST_BRIDGE_GLOBAL_KEYS: {
|
|
14
|
+
readonly dynamicImport: "_dynamicImport";
|
|
15
|
+
readonly loadPolyfill: "_loadPolyfill";
|
|
16
|
+
readonly resolveModule: "_resolveModule";
|
|
17
|
+
readonly loadFile: "_loadFile";
|
|
18
|
+
readonly scheduleTimer: "_scheduleTimer";
|
|
19
|
+
readonly cryptoRandomFill: "_cryptoRandomFill";
|
|
20
|
+
readonly cryptoRandomUuid: "_cryptoRandomUUID";
|
|
21
|
+
readonly cryptoHashDigest: "_cryptoHashDigest";
|
|
22
|
+
readonly cryptoHmacDigest: "_cryptoHmacDigest";
|
|
23
|
+
readonly cryptoPbkdf2: "_cryptoPbkdf2";
|
|
24
|
+
readonly cryptoScrypt: "_cryptoScrypt";
|
|
25
|
+
readonly cryptoCipheriv: "_cryptoCipheriv";
|
|
26
|
+
readonly cryptoDecipheriv: "_cryptoDecipheriv";
|
|
27
|
+
readonly cryptoCipherivCreate: "_cryptoCipherivCreate";
|
|
28
|
+
readonly cryptoCipherivUpdate: "_cryptoCipherivUpdate";
|
|
29
|
+
readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
|
|
30
|
+
readonly cryptoSign: "_cryptoSign";
|
|
31
|
+
readonly cryptoVerify: "_cryptoVerify";
|
|
32
|
+
readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
|
|
33
|
+
readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
|
|
34
|
+
readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
|
|
35
|
+
readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
|
|
36
|
+
readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
|
|
37
|
+
readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
|
|
38
|
+
readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
|
|
39
|
+
readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
|
|
40
|
+
readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
|
|
41
|
+
readonly cryptoSubtle: "_cryptoSubtle";
|
|
42
|
+
readonly fsReadFile: "_fsReadFile";
|
|
43
|
+
readonly fsWriteFile: "_fsWriteFile";
|
|
44
|
+
readonly fsReadFileBinary: "_fsReadFileBinary";
|
|
45
|
+
readonly fsWriteFileBinary: "_fsWriteFileBinary";
|
|
46
|
+
readonly fsReadDir: "_fsReadDir";
|
|
47
|
+
readonly fsMkdir: "_fsMkdir";
|
|
48
|
+
readonly fsRmdir: "_fsRmdir";
|
|
49
|
+
readonly fsExists: "_fsExists";
|
|
50
|
+
readonly fsStat: "_fsStat";
|
|
51
|
+
readonly fsUnlink: "_fsUnlink";
|
|
52
|
+
readonly fsRename: "_fsRename";
|
|
53
|
+
readonly fsChmod: "_fsChmod";
|
|
54
|
+
readonly fsChown: "_fsChown";
|
|
55
|
+
readonly fsLink: "_fsLink";
|
|
56
|
+
readonly fsSymlink: "_fsSymlink";
|
|
57
|
+
readonly fsReadlink: "_fsReadlink";
|
|
58
|
+
readonly fsLstat: "_fsLstat";
|
|
59
|
+
readonly fsTruncate: "_fsTruncate";
|
|
60
|
+
readonly fsUtimes: "_fsUtimes";
|
|
61
|
+
readonly childProcessSpawnStart: "_childProcessSpawnStart";
|
|
62
|
+
readonly childProcessStdinWrite: "_childProcessStdinWrite";
|
|
63
|
+
readonly childProcessStdinClose: "_childProcessStdinClose";
|
|
64
|
+
readonly childProcessKill: "_childProcessKill";
|
|
65
|
+
readonly childProcessSpawnSync: "_childProcessSpawnSync";
|
|
66
|
+
readonly networkFetchRaw: "_networkFetchRaw";
|
|
67
|
+
readonly networkDnsLookupRaw: "_networkDnsLookupRaw";
|
|
68
|
+
readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
|
|
69
|
+
readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
|
|
70
|
+
readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
|
|
71
|
+
readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
|
|
72
|
+
readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
|
|
73
|
+
readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
|
|
74
|
+
readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
|
|
75
|
+
readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
|
|
76
|
+
readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
|
|
77
|
+
readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
|
|
78
|
+
readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
|
|
79
|
+
readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
|
|
80
|
+
readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
|
|
81
|
+
readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
|
|
82
|
+
readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
|
|
83
|
+
readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
|
|
84
|
+
readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
|
|
85
|
+
readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
|
|
86
|
+
readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
|
|
87
|
+
readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
|
|
88
|
+
readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
|
|
89
|
+
readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
|
|
90
|
+
readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
|
|
91
|
+
readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
|
|
92
|
+
readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
|
|
93
|
+
readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
|
|
94
|
+
readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
|
|
95
|
+
readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
|
|
96
|
+
readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
|
|
97
|
+
readonly netSocketConnectRaw: "_netSocketConnectRaw";
|
|
98
|
+
readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
|
|
99
|
+
readonly netSocketReadRaw: "_netSocketReadRaw";
|
|
100
|
+
readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
|
|
101
|
+
readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
|
|
102
|
+
readonly netSocketWriteRaw: "_netSocketWriteRaw";
|
|
103
|
+
readonly netSocketEndRaw: "_netSocketEndRaw";
|
|
104
|
+
readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
|
|
105
|
+
readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
|
|
106
|
+
readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
|
|
107
|
+
readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
|
|
108
|
+
readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
|
|
109
|
+
readonly netServerListenRaw: "_netServerListenRaw";
|
|
110
|
+
readonly netServerAcceptRaw: "_netServerAcceptRaw";
|
|
111
|
+
readonly netServerCloseRaw: "_netServerCloseRaw";
|
|
112
|
+
readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
|
|
113
|
+
readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
|
|
114
|
+
readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
|
|
115
|
+
readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
|
|
116
|
+
readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
|
|
117
|
+
readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
|
|
118
|
+
readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
|
|
119
|
+
readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
|
|
120
|
+
readonly resolveModuleSync: "_resolveModuleSync";
|
|
121
|
+
readonly loadFileSync: "_loadFileSync";
|
|
122
|
+
readonly ptySetRawMode: "_ptySetRawMode";
|
|
123
|
+
readonly processConfig: "_processConfig";
|
|
124
|
+
readonly osConfig: "_osConfig";
|
|
125
|
+
readonly log: "_log";
|
|
126
|
+
readonly error: "_error";
|
|
127
|
+
readonly fdOpen: "_fdOpen";
|
|
128
|
+
readonly fdClose: "_fdClose";
|
|
129
|
+
readonly fdRead: "_fdRead";
|
|
130
|
+
readonly fdWrite: "_fdWrite";
|
|
131
|
+
readonly fdFstat: "_fdFstat";
|
|
132
|
+
readonly fdFtruncate: "_fdFtruncate";
|
|
133
|
+
readonly fdFsync: "_fdFsync";
|
|
134
|
+
readonly fdGetPath: "_fdGetPath";
|
|
135
|
+
};
|
|
136
|
+
/** Globals exposed by the bridge bundle and runtime scripts inside the isolate. */
|
|
137
|
+
export declare const RUNTIME_BRIDGE_GLOBAL_KEYS: {
|
|
138
|
+
readonly registerHandle: "_registerHandle";
|
|
139
|
+
readonly unregisterHandle: "_unregisterHandle";
|
|
140
|
+
readonly waitForActiveHandles: "_waitForActiveHandles";
|
|
141
|
+
readonly getActiveHandles: "_getActiveHandles";
|
|
142
|
+
readonly childProcessDispatch: "_childProcessDispatch";
|
|
143
|
+
readonly childProcessModule: "_childProcessModule";
|
|
144
|
+
readonly moduleModule: "_moduleModule";
|
|
145
|
+
readonly osModule: "_osModule";
|
|
146
|
+
readonly httpModule: "_httpModule";
|
|
147
|
+
readonly httpsModule: "_httpsModule";
|
|
148
|
+
readonly http2Module: "_http2Module";
|
|
149
|
+
readonly dnsModule: "_dnsModule";
|
|
150
|
+
readonly dgramModule: "_dgramModule";
|
|
151
|
+
readonly httpServerDispatch: "_httpServerDispatch";
|
|
152
|
+
readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
|
|
153
|
+
readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
|
|
154
|
+
readonly http2Dispatch: "_http2Dispatch";
|
|
155
|
+
readonly timerDispatch: "_timerDispatch";
|
|
156
|
+
readonly upgradeSocketData: "_upgradeSocketData";
|
|
157
|
+
readonly upgradeSocketEnd: "_upgradeSocketEnd";
|
|
158
|
+
readonly netSocketDispatch: "_netSocketDispatch";
|
|
159
|
+
readonly fsFacade: "_fs";
|
|
160
|
+
readonly requireFrom: "_requireFrom";
|
|
161
|
+
readonly moduleCache: "_moduleCache";
|
|
162
|
+
readonly processExitError: "ProcessExitError";
|
|
163
|
+
};
|
|
164
|
+
export type HostBridgeGlobalKey = ValueOf<typeof HOST_BRIDGE_GLOBAL_KEYS>;
|
|
165
|
+
export type RuntimeBridgeGlobalKey = ValueOf<typeof RUNTIME_BRIDGE_GLOBAL_KEYS>;
|
|
166
|
+
export type BridgeGlobalKey = HostBridgeGlobalKey | RuntimeBridgeGlobalKey;
|
|
167
|
+
export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
|
|
168
|
+
readonly dynamicImport: "_dynamicImport";
|
|
169
|
+
readonly loadPolyfill: "_loadPolyfill";
|
|
170
|
+
readonly resolveModule: "_resolveModule";
|
|
171
|
+
readonly loadFile: "_loadFile";
|
|
172
|
+
readonly scheduleTimer: "_scheduleTimer";
|
|
173
|
+
readonly cryptoRandomFill: "_cryptoRandomFill";
|
|
174
|
+
readonly cryptoRandomUuid: "_cryptoRandomUUID";
|
|
175
|
+
readonly cryptoHashDigest: "_cryptoHashDigest";
|
|
176
|
+
readonly cryptoHmacDigest: "_cryptoHmacDigest";
|
|
177
|
+
readonly cryptoPbkdf2: "_cryptoPbkdf2";
|
|
178
|
+
readonly cryptoScrypt: "_cryptoScrypt";
|
|
179
|
+
readonly cryptoCipheriv: "_cryptoCipheriv";
|
|
180
|
+
readonly cryptoDecipheriv: "_cryptoDecipheriv";
|
|
181
|
+
readonly cryptoCipherivCreate: "_cryptoCipherivCreate";
|
|
182
|
+
readonly cryptoCipherivUpdate: "_cryptoCipherivUpdate";
|
|
183
|
+
readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
|
|
184
|
+
readonly cryptoSign: "_cryptoSign";
|
|
185
|
+
readonly cryptoVerify: "_cryptoVerify";
|
|
186
|
+
readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
|
|
187
|
+
readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
|
|
188
|
+
readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
|
|
189
|
+
readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
|
|
190
|
+
readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
|
|
191
|
+
readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
|
|
192
|
+
readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
|
|
193
|
+
readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
|
|
194
|
+
readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
|
|
195
|
+
readonly cryptoSubtle: "_cryptoSubtle";
|
|
196
|
+
readonly fsReadFile: "_fsReadFile";
|
|
197
|
+
readonly fsWriteFile: "_fsWriteFile";
|
|
198
|
+
readonly fsReadFileBinary: "_fsReadFileBinary";
|
|
199
|
+
readonly fsWriteFileBinary: "_fsWriteFileBinary";
|
|
200
|
+
readonly fsReadDir: "_fsReadDir";
|
|
201
|
+
readonly fsMkdir: "_fsMkdir";
|
|
202
|
+
readonly fsRmdir: "_fsRmdir";
|
|
203
|
+
readonly fsExists: "_fsExists";
|
|
204
|
+
readonly fsStat: "_fsStat";
|
|
205
|
+
readonly fsUnlink: "_fsUnlink";
|
|
206
|
+
readonly fsRename: "_fsRename";
|
|
207
|
+
readonly fsChmod: "_fsChmod";
|
|
208
|
+
readonly fsChown: "_fsChown";
|
|
209
|
+
readonly fsLink: "_fsLink";
|
|
210
|
+
readonly fsSymlink: "_fsSymlink";
|
|
211
|
+
readonly fsReadlink: "_fsReadlink";
|
|
212
|
+
readonly fsLstat: "_fsLstat";
|
|
213
|
+
readonly fsTruncate: "_fsTruncate";
|
|
214
|
+
readonly fsUtimes: "_fsUtimes";
|
|
215
|
+
readonly childProcessSpawnStart: "_childProcessSpawnStart";
|
|
216
|
+
readonly childProcessStdinWrite: "_childProcessStdinWrite";
|
|
217
|
+
readonly childProcessStdinClose: "_childProcessStdinClose";
|
|
218
|
+
readonly childProcessKill: "_childProcessKill";
|
|
219
|
+
readonly childProcessSpawnSync: "_childProcessSpawnSync";
|
|
220
|
+
readonly networkFetchRaw: "_networkFetchRaw";
|
|
221
|
+
readonly networkDnsLookupRaw: "_networkDnsLookupRaw";
|
|
222
|
+
readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
|
|
223
|
+
readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
|
|
224
|
+
readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
|
|
225
|
+
readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
|
|
226
|
+
readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
|
|
227
|
+
readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
|
|
228
|
+
readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
|
|
229
|
+
readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
|
|
230
|
+
readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
|
|
231
|
+
readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
|
|
232
|
+
readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
|
|
233
|
+
readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
|
|
234
|
+
readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
|
|
235
|
+
readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
|
|
236
|
+
readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
|
|
237
|
+
readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
|
|
238
|
+
readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
|
|
239
|
+
readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
|
|
240
|
+
readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
|
|
241
|
+
readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
|
|
242
|
+
readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
|
|
243
|
+
readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
|
|
244
|
+
readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
|
|
245
|
+
readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
|
|
246
|
+
readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
|
|
247
|
+
readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
|
|
248
|
+
readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
|
|
249
|
+
readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
|
|
250
|
+
readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
|
|
251
|
+
readonly netSocketConnectRaw: "_netSocketConnectRaw";
|
|
252
|
+
readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
|
|
253
|
+
readonly netSocketReadRaw: "_netSocketReadRaw";
|
|
254
|
+
readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
|
|
255
|
+
readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
|
|
256
|
+
readonly netSocketWriteRaw: "_netSocketWriteRaw";
|
|
257
|
+
readonly netSocketEndRaw: "_netSocketEndRaw";
|
|
258
|
+
readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
|
|
259
|
+
readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
|
|
260
|
+
readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
|
|
261
|
+
readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
|
|
262
|
+
readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
|
|
263
|
+
readonly netServerListenRaw: "_netServerListenRaw";
|
|
264
|
+
readonly netServerAcceptRaw: "_netServerAcceptRaw";
|
|
265
|
+
readonly netServerCloseRaw: "_netServerCloseRaw";
|
|
266
|
+
readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
|
|
267
|
+
readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
|
|
268
|
+
readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
|
|
269
|
+
readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
|
|
270
|
+
readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
|
|
271
|
+
readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
|
|
272
|
+
readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
|
|
273
|
+
readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
|
|
274
|
+
readonly resolveModuleSync: "_resolveModuleSync";
|
|
275
|
+
readonly loadFileSync: "_loadFileSync";
|
|
276
|
+
readonly ptySetRawMode: "_ptySetRawMode";
|
|
277
|
+
readonly processConfig: "_processConfig";
|
|
278
|
+
readonly osConfig: "_osConfig";
|
|
279
|
+
readonly log: "_log";
|
|
280
|
+
readonly error: "_error";
|
|
281
|
+
readonly fdOpen: "_fdOpen";
|
|
282
|
+
readonly fdClose: "_fdClose";
|
|
283
|
+
readonly fdRead: "_fdRead";
|
|
284
|
+
readonly fdWrite: "_fdWrite";
|
|
285
|
+
readonly fdFstat: "_fdFstat";
|
|
286
|
+
readonly fdFtruncate: "_fdFtruncate";
|
|
287
|
+
readonly fdFsync: "_fdFsync";
|
|
288
|
+
readonly fdGetPath: "_fdGetPath";
|
|
289
|
+
}>[];
|
|
290
|
+
export declare const RUNTIME_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
|
|
291
|
+
readonly registerHandle: "_registerHandle";
|
|
292
|
+
readonly unregisterHandle: "_unregisterHandle";
|
|
293
|
+
readonly waitForActiveHandles: "_waitForActiveHandles";
|
|
294
|
+
readonly getActiveHandles: "_getActiveHandles";
|
|
295
|
+
readonly childProcessDispatch: "_childProcessDispatch";
|
|
296
|
+
readonly childProcessModule: "_childProcessModule";
|
|
297
|
+
readonly moduleModule: "_moduleModule";
|
|
298
|
+
readonly osModule: "_osModule";
|
|
299
|
+
readonly httpModule: "_httpModule";
|
|
300
|
+
readonly httpsModule: "_httpsModule";
|
|
301
|
+
readonly http2Module: "_http2Module";
|
|
302
|
+
readonly dnsModule: "_dnsModule";
|
|
303
|
+
readonly dgramModule: "_dgramModule";
|
|
304
|
+
readonly httpServerDispatch: "_httpServerDispatch";
|
|
305
|
+
readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
|
|
306
|
+
readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
|
|
307
|
+
readonly http2Dispatch: "_http2Dispatch";
|
|
308
|
+
readonly timerDispatch: "_timerDispatch";
|
|
309
|
+
readonly upgradeSocketData: "_upgradeSocketData";
|
|
310
|
+
readonly upgradeSocketEnd: "_upgradeSocketEnd";
|
|
311
|
+
readonly netSocketDispatch: "_netSocketDispatch";
|
|
312
|
+
readonly fsFacade: "_fs";
|
|
313
|
+
readonly requireFrom: "_requireFrom";
|
|
314
|
+
readonly moduleCache: "_moduleCache";
|
|
315
|
+
readonly processExitError: "ProcessExitError";
|
|
316
|
+
}>[];
|
|
317
|
+
export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
|
|
318
|
+
readonly dynamicImport: "_dynamicImport";
|
|
319
|
+
readonly loadPolyfill: "_loadPolyfill";
|
|
320
|
+
readonly resolveModule: "_resolveModule";
|
|
321
|
+
readonly loadFile: "_loadFile";
|
|
322
|
+
readonly scheduleTimer: "_scheduleTimer";
|
|
323
|
+
readonly cryptoRandomFill: "_cryptoRandomFill";
|
|
324
|
+
readonly cryptoRandomUuid: "_cryptoRandomUUID";
|
|
325
|
+
readonly cryptoHashDigest: "_cryptoHashDigest";
|
|
326
|
+
readonly cryptoHmacDigest: "_cryptoHmacDigest";
|
|
327
|
+
readonly cryptoPbkdf2: "_cryptoPbkdf2";
|
|
328
|
+
readonly cryptoScrypt: "_cryptoScrypt";
|
|
329
|
+
readonly cryptoCipheriv: "_cryptoCipheriv";
|
|
330
|
+
readonly cryptoDecipheriv: "_cryptoDecipheriv";
|
|
331
|
+
readonly cryptoCipherivCreate: "_cryptoCipherivCreate";
|
|
332
|
+
readonly cryptoCipherivUpdate: "_cryptoCipherivUpdate";
|
|
333
|
+
readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
|
|
334
|
+
readonly cryptoSign: "_cryptoSign";
|
|
335
|
+
readonly cryptoVerify: "_cryptoVerify";
|
|
336
|
+
readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
|
|
337
|
+
readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
|
|
338
|
+
readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
|
|
339
|
+
readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
|
|
340
|
+
readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
|
|
341
|
+
readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
|
|
342
|
+
readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
|
|
343
|
+
readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
|
|
344
|
+
readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
|
|
345
|
+
readonly cryptoSubtle: "_cryptoSubtle";
|
|
346
|
+
readonly fsReadFile: "_fsReadFile";
|
|
347
|
+
readonly fsWriteFile: "_fsWriteFile";
|
|
348
|
+
readonly fsReadFileBinary: "_fsReadFileBinary";
|
|
349
|
+
readonly fsWriteFileBinary: "_fsWriteFileBinary";
|
|
350
|
+
readonly fsReadDir: "_fsReadDir";
|
|
351
|
+
readonly fsMkdir: "_fsMkdir";
|
|
352
|
+
readonly fsRmdir: "_fsRmdir";
|
|
353
|
+
readonly fsExists: "_fsExists";
|
|
354
|
+
readonly fsStat: "_fsStat";
|
|
355
|
+
readonly fsUnlink: "_fsUnlink";
|
|
356
|
+
readonly fsRename: "_fsRename";
|
|
357
|
+
readonly fsChmod: "_fsChmod";
|
|
358
|
+
readonly fsChown: "_fsChown";
|
|
359
|
+
readonly fsLink: "_fsLink";
|
|
360
|
+
readonly fsSymlink: "_fsSymlink";
|
|
361
|
+
readonly fsReadlink: "_fsReadlink";
|
|
362
|
+
readonly fsLstat: "_fsLstat";
|
|
363
|
+
readonly fsTruncate: "_fsTruncate";
|
|
364
|
+
readonly fsUtimes: "_fsUtimes";
|
|
365
|
+
readonly childProcessSpawnStart: "_childProcessSpawnStart";
|
|
366
|
+
readonly childProcessStdinWrite: "_childProcessStdinWrite";
|
|
367
|
+
readonly childProcessStdinClose: "_childProcessStdinClose";
|
|
368
|
+
readonly childProcessKill: "_childProcessKill";
|
|
369
|
+
readonly childProcessSpawnSync: "_childProcessSpawnSync";
|
|
370
|
+
readonly networkFetchRaw: "_networkFetchRaw";
|
|
371
|
+
readonly networkDnsLookupRaw: "_networkDnsLookupRaw";
|
|
372
|
+
readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
|
|
373
|
+
readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
|
|
374
|
+
readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
|
|
375
|
+
readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
|
|
376
|
+
readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
|
|
377
|
+
readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
|
|
378
|
+
readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
|
|
379
|
+
readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
|
|
380
|
+
readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
|
|
381
|
+
readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
|
|
382
|
+
readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
|
|
383
|
+
readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
|
|
384
|
+
readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
|
|
385
|
+
readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
|
|
386
|
+
readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
|
|
387
|
+
readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
|
|
388
|
+
readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
|
|
389
|
+
readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
|
|
390
|
+
readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
|
|
391
|
+
readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
|
|
392
|
+
readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
|
|
393
|
+
readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
|
|
394
|
+
readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
|
|
395
|
+
readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
|
|
396
|
+
readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
|
|
397
|
+
readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
|
|
398
|
+
readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
|
|
399
|
+
readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
|
|
400
|
+
readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
|
|
401
|
+
readonly netSocketConnectRaw: "_netSocketConnectRaw";
|
|
402
|
+
readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
|
|
403
|
+
readonly netSocketReadRaw: "_netSocketReadRaw";
|
|
404
|
+
readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
|
|
405
|
+
readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
|
|
406
|
+
readonly netSocketWriteRaw: "_netSocketWriteRaw";
|
|
407
|
+
readonly netSocketEndRaw: "_netSocketEndRaw";
|
|
408
|
+
readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
|
|
409
|
+
readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
|
|
410
|
+
readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
|
|
411
|
+
readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
|
|
412
|
+
readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
|
|
413
|
+
readonly netServerListenRaw: "_netServerListenRaw";
|
|
414
|
+
readonly netServerAcceptRaw: "_netServerAcceptRaw";
|
|
415
|
+
readonly netServerCloseRaw: "_netServerCloseRaw";
|
|
416
|
+
readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
|
|
417
|
+
readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
|
|
418
|
+
readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
|
|
419
|
+
readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
|
|
420
|
+
readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
|
|
421
|
+
readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
|
|
422
|
+
readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
|
|
423
|
+
readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
|
|
424
|
+
readonly resolveModuleSync: "_resolveModuleSync";
|
|
425
|
+
readonly loadFileSync: "_loadFileSync";
|
|
426
|
+
readonly ptySetRawMode: "_ptySetRawMode";
|
|
427
|
+
readonly processConfig: "_processConfig";
|
|
428
|
+
readonly osConfig: "_osConfig";
|
|
429
|
+
readonly log: "_log";
|
|
430
|
+
readonly error: "_error";
|
|
431
|
+
readonly fdOpen: "_fdOpen";
|
|
432
|
+
readonly fdClose: "_fdClose";
|
|
433
|
+
readonly fdRead: "_fdRead";
|
|
434
|
+
readonly fdWrite: "_fdWrite";
|
|
435
|
+
readonly fdFstat: "_fdFstat";
|
|
436
|
+
readonly fdFtruncate: "_fdFtruncate";
|
|
437
|
+
readonly fdFsync: "_fdFsync";
|
|
438
|
+
readonly fdGetPath: "_fdGetPath";
|
|
439
|
+
}> | ValueOf<{
|
|
440
|
+
readonly registerHandle: "_registerHandle";
|
|
441
|
+
readonly unregisterHandle: "_unregisterHandle";
|
|
442
|
+
readonly waitForActiveHandles: "_waitForActiveHandles";
|
|
443
|
+
readonly getActiveHandles: "_getActiveHandles";
|
|
444
|
+
readonly childProcessDispatch: "_childProcessDispatch";
|
|
445
|
+
readonly childProcessModule: "_childProcessModule";
|
|
446
|
+
readonly moduleModule: "_moduleModule";
|
|
447
|
+
readonly osModule: "_osModule";
|
|
448
|
+
readonly httpModule: "_httpModule";
|
|
449
|
+
readonly httpsModule: "_httpsModule";
|
|
450
|
+
readonly http2Module: "_http2Module";
|
|
451
|
+
readonly dnsModule: "_dnsModule";
|
|
452
|
+
readonly dgramModule: "_dgramModule";
|
|
453
|
+
readonly httpServerDispatch: "_httpServerDispatch";
|
|
454
|
+
readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
|
|
455
|
+
readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
|
|
456
|
+
readonly http2Dispatch: "_http2Dispatch";
|
|
457
|
+
readonly timerDispatch: "_timerDispatch";
|
|
458
|
+
readonly upgradeSocketData: "_upgradeSocketData";
|
|
459
|
+
readonly upgradeSocketEnd: "_upgradeSocketEnd";
|
|
460
|
+
readonly netSocketDispatch: "_netSocketDispatch";
|
|
461
|
+
readonly fsFacade: "_fs";
|
|
462
|
+
readonly requireFrom: "_requireFrom";
|
|
463
|
+
readonly moduleCache: "_moduleCache";
|
|
464
|
+
readonly processExitError: "ProcessExitError";
|
|
465
|
+
}>)[];
|
|
466
|
+
/** A bridge Reference that resolves async via `{ result: { promise: true } }`. */
|
|
467
|
+
export interface BridgeApplyRef<TArgs extends unknown[], TResult> {
|
|
468
|
+
apply(ctx: undefined, args: TArgs, options: {
|
|
469
|
+
result: {
|
|
470
|
+
promise: true;
|
|
471
|
+
};
|
|
472
|
+
}): Promise<TResult>;
|
|
473
|
+
}
|
|
474
|
+
/** A bridge Reference called synchronously (blocks the isolate). */
|
|
475
|
+
export interface BridgeApplySyncRef<TArgs extends unknown[], TResult> {
|
|
476
|
+
applySync(ctx: undefined, args: TArgs): TResult;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* A bridge Reference that blocks the isolate while the host resolves
|
|
480
|
+
* a Promise. Used for sync-looking APIs (require, readFileSync) that need
|
|
481
|
+
* async host operations.
|
|
482
|
+
*/
|
|
483
|
+
export interface BridgeApplySyncPromiseRef<TArgs extends unknown[], TResult> {
|
|
484
|
+
applySyncPromise(ctx: undefined, args: TArgs): TResult;
|
|
485
|
+
}
|
|
486
|
+
export type DynamicImportBridgeRef = BridgeApplyRef<[
|
|
487
|
+
string,
|
|
488
|
+
string
|
|
489
|
+
], Record<string, unknown> | null>;
|
|
490
|
+
export type LoadPolyfillBridgeRef = BridgeApplyRef<[string], string | null>;
|
|
491
|
+
export type ResolveModuleBridgeRef = BridgeApplySyncPromiseRef<[
|
|
492
|
+
string,
|
|
493
|
+
string
|
|
494
|
+
], string | null>;
|
|
495
|
+
export type LoadFileBridgeRef = BridgeApplySyncPromiseRef<[string], string | null>;
|
|
496
|
+
export type RequireFromBridgeFn = (request: string, dirname: string) => unknown;
|
|
497
|
+
export type ModuleCacheBridgeRecord = Record<string, unknown>;
|
|
498
|
+
export type ProcessLogBridgeRef = BridgeApplySyncRef<[string], void>;
|
|
499
|
+
export type ProcessErrorBridgeRef = BridgeApplySyncRef<[string], void>;
|
|
500
|
+
export type ScheduleTimerBridgeRef = BridgeApplyRef<[number], void>;
|
|
501
|
+
export type CryptoRandomFillBridgeRef = BridgeApplySyncRef<[number], string>;
|
|
502
|
+
export type CryptoRandomUuidBridgeRef = BridgeApplySyncRef<[], string>;
|
|
503
|
+
export type CryptoHashDigestBridgeRef = BridgeApplySyncRef<[string, string], string>;
|
|
504
|
+
export type CryptoHmacDigestBridgeRef = BridgeApplySyncRef<[string, string, string], string>;
|
|
505
|
+
export type CryptoPbkdf2BridgeRef = BridgeApplySyncRef<[
|
|
506
|
+
string,
|
|
507
|
+
string,
|
|
508
|
+
number,
|
|
509
|
+
number,
|
|
510
|
+
string
|
|
511
|
+
], string>;
|
|
512
|
+
export type CryptoScryptBridgeRef = BridgeApplySyncRef<[
|
|
513
|
+
string,
|
|
514
|
+
string,
|
|
515
|
+
number,
|
|
516
|
+
string
|
|
517
|
+
], string>;
|
|
518
|
+
export type CryptoCipherivBridgeRef = BridgeApplySyncRef<[
|
|
519
|
+
string,
|
|
520
|
+
string,
|
|
521
|
+
string | null,
|
|
522
|
+
string,
|
|
523
|
+
string?
|
|
524
|
+
], string>;
|
|
525
|
+
export type CryptoDecipherivBridgeRef = BridgeApplySyncRef<[
|
|
526
|
+
string,
|
|
527
|
+
string,
|
|
528
|
+
string | null,
|
|
529
|
+
string,
|
|
530
|
+
string
|
|
531
|
+
], string>;
|
|
532
|
+
export type CryptoCipherivCreateBridgeRef = BridgeApplySyncRef<[
|
|
533
|
+
string,
|
|
534
|
+
string,
|
|
535
|
+
string,
|
|
536
|
+
string | null,
|
|
537
|
+
string
|
|
538
|
+
], number>;
|
|
539
|
+
export type CryptoCipherivUpdateBridgeRef = BridgeApplySyncRef<[
|
|
540
|
+
number,
|
|
541
|
+
string
|
|
542
|
+
], string>;
|
|
543
|
+
export type CryptoCipherivFinalBridgeRef = BridgeApplySyncRef<[
|
|
544
|
+
number
|
|
545
|
+
], string>;
|
|
546
|
+
export type CryptoSignBridgeRef = BridgeApplySyncRef<[
|
|
547
|
+
string | null,
|
|
548
|
+
string,
|
|
549
|
+
string
|
|
550
|
+
], string>;
|
|
551
|
+
export type CryptoVerifyBridgeRef = BridgeApplySyncRef<[
|
|
552
|
+
string | null,
|
|
553
|
+
string,
|
|
554
|
+
string,
|
|
555
|
+
string
|
|
556
|
+
], boolean>;
|
|
557
|
+
export type CryptoAsymmetricOpBridgeRef = BridgeApplySyncRef<[
|
|
558
|
+
string,
|
|
559
|
+
string,
|
|
560
|
+
string
|
|
561
|
+
], string>;
|
|
562
|
+
export type CryptoCreateKeyObjectBridgeRef = BridgeApplySyncRef<[
|
|
563
|
+
string,
|
|
564
|
+
string
|
|
565
|
+
], string>;
|
|
566
|
+
export type CryptoGenerateKeyPairSyncBridgeRef = BridgeApplySyncRef<[
|
|
567
|
+
string,
|
|
568
|
+
string
|
|
569
|
+
], string>;
|
|
570
|
+
export type CryptoGenerateKeySyncBridgeRef = BridgeApplySyncRef<[
|
|
571
|
+
string,
|
|
572
|
+
string
|
|
573
|
+
], string>;
|
|
574
|
+
export type CryptoGeneratePrimeSyncBridgeRef = BridgeApplySyncRef<[
|
|
575
|
+
number,
|
|
576
|
+
string
|
|
577
|
+
], string>;
|
|
578
|
+
export type CryptoDiffieHellmanBridgeRef = BridgeApplySyncRef<[string], string>;
|
|
579
|
+
export type CryptoDiffieHellmanGroupBridgeRef = BridgeApplySyncRef<[string], string>;
|
|
580
|
+
export type CryptoDiffieHellmanSessionCreateBridgeRef = BridgeApplySyncRef<[string], number>;
|
|
581
|
+
export type CryptoDiffieHellmanSessionCallBridgeRef = BridgeApplySyncRef<[
|
|
582
|
+
number,
|
|
583
|
+
string
|
|
584
|
+
], string>;
|
|
585
|
+
export type CryptoSubtleBridgeRef = BridgeApplySyncRef<[string], string>;
|
|
586
|
+
export type FsReadFileBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
587
|
+
export type FsWriteFileBridgeRef = BridgeApplySyncPromiseRef<[string, string], void>;
|
|
588
|
+
export type FsReadFileBinaryBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
589
|
+
export type FsWriteFileBinaryBridgeRef = BridgeApplySyncPromiseRef<[
|
|
590
|
+
string,
|
|
591
|
+
string
|
|
592
|
+
], void>;
|
|
593
|
+
export type FsReadDirBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
594
|
+
export type FsMkdirBridgeRef = BridgeApplySyncPromiseRef<[string, boolean], void>;
|
|
595
|
+
export type FsRmdirBridgeRef = BridgeApplySyncPromiseRef<[string], void>;
|
|
596
|
+
export type FsExistsBridgeRef = BridgeApplySyncPromiseRef<[string], boolean>;
|
|
597
|
+
export type FsStatBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
598
|
+
export type FsUnlinkBridgeRef = BridgeApplySyncPromiseRef<[string], void>;
|
|
599
|
+
export type FsRenameBridgeRef = BridgeApplySyncPromiseRef<[string, string], void>;
|
|
600
|
+
export type FsChmodBridgeRef = BridgeApplySyncPromiseRef<[string, number], void>;
|
|
601
|
+
export type FsChownBridgeRef = BridgeApplySyncPromiseRef<[string, number, number], void>;
|
|
602
|
+
export type FsLinkBridgeRef = BridgeApplySyncPromiseRef<[string, string], void>;
|
|
603
|
+
export type FsSymlinkBridgeRef = BridgeApplySyncPromiseRef<[string, string], void>;
|
|
604
|
+
export type FsReadlinkBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
605
|
+
export type FsLstatBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
606
|
+
export type FsTruncateBridgeRef = BridgeApplySyncPromiseRef<[string, number], void>;
|
|
607
|
+
export type FsUtimesBridgeRef = BridgeApplySyncPromiseRef<[string, number, number], void>;
|
|
608
|
+
/** Combined filesystem bridge facade installed as `globalThis._fs` in the isolate. */
|
|
609
|
+
export interface FsFacadeBridge {
|
|
610
|
+
readFile: FsReadFileBridgeRef;
|
|
611
|
+
writeFile: FsWriteFileBridgeRef;
|
|
612
|
+
readFileBinary: FsReadFileBinaryBridgeRef;
|
|
613
|
+
writeFileBinary: FsWriteFileBinaryBridgeRef;
|
|
614
|
+
readDir: FsReadDirBridgeRef;
|
|
615
|
+
mkdir: FsMkdirBridgeRef;
|
|
616
|
+
rmdir: FsRmdirBridgeRef;
|
|
617
|
+
exists: FsExistsBridgeRef;
|
|
618
|
+
stat: FsStatBridgeRef;
|
|
619
|
+
unlink: FsUnlinkBridgeRef;
|
|
620
|
+
rename: FsRenameBridgeRef;
|
|
621
|
+
chmod: FsChmodBridgeRef;
|
|
622
|
+
chown: FsChownBridgeRef;
|
|
623
|
+
link: FsLinkBridgeRef;
|
|
624
|
+
symlink: FsSymlinkBridgeRef;
|
|
625
|
+
readlink: FsReadlinkBridgeRef;
|
|
626
|
+
lstat: FsLstatBridgeRef;
|
|
627
|
+
truncate: FsTruncateBridgeRef;
|
|
628
|
+
utimes: FsUtimesBridgeRef;
|
|
629
|
+
}
|
|
630
|
+
export type ChildProcessSpawnStartBridgeRef = BridgeApplySyncRef<[
|
|
631
|
+
string,
|
|
632
|
+
string,
|
|
633
|
+
string
|
|
634
|
+
], number>;
|
|
635
|
+
export type ChildProcessStdinWriteBridgeRef = BridgeApplySyncRef<[
|
|
636
|
+
number,
|
|
637
|
+
Uint8Array
|
|
638
|
+
], void>;
|
|
639
|
+
export type ChildProcessStdinCloseBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
640
|
+
export type ChildProcessKillBridgeRef = BridgeApplySyncRef<[number, number], void>;
|
|
641
|
+
export type ChildProcessSpawnSyncBridgeRef = BridgeApplySyncPromiseRef<[
|
|
642
|
+
string,
|
|
643
|
+
string,
|
|
644
|
+
string
|
|
645
|
+
], string>;
|
|
646
|
+
export type NetworkFetchRawBridgeRef = BridgeApplyRef<[string, string], string>;
|
|
647
|
+
export type NetworkDnsLookupRawBridgeRef = BridgeApplyRef<[string], string>;
|
|
648
|
+
export type NetworkHttpRequestRawBridgeRef = BridgeApplyRef<[string, string], string>;
|
|
649
|
+
export type NetworkHttpServerListenRawBridgeRef = BridgeApplyRef<[string], string>;
|
|
650
|
+
export type NetworkHttpServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
651
|
+
export type NetworkHttpServerRespondRawBridgeRef = BridgeApplySyncRef<[
|
|
652
|
+
number,
|
|
653
|
+
number,
|
|
654
|
+
string
|
|
655
|
+
], void>;
|
|
656
|
+
export type NetworkHttpServerWaitRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
657
|
+
export type NetworkHttp2ServerListenRawBridgeRef = BridgeApplySyncPromiseRef<[
|
|
658
|
+
string
|
|
659
|
+
], string>;
|
|
660
|
+
export type NetworkHttp2ServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
661
|
+
export type NetworkHttp2ServerWaitRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
662
|
+
export type NetworkHttp2SessionConnectRawBridgeRef = BridgeApplySyncPromiseRef<[
|
|
663
|
+
string
|
|
664
|
+
], string>;
|
|
665
|
+
export type NetworkHttp2SessionRequestRawBridgeRef = BridgeApplySyncRef<[
|
|
666
|
+
number,
|
|
667
|
+
string,
|
|
668
|
+
string
|
|
669
|
+
], number>;
|
|
670
|
+
export type NetworkHttp2SessionSettingsRawBridgeRef = BridgeApplySyncRef<[
|
|
671
|
+
number,
|
|
672
|
+
string
|
|
673
|
+
], void>;
|
|
674
|
+
export type NetworkHttp2SessionSetLocalWindowSizeRawBridgeRef = BridgeApplySyncRef<[
|
|
675
|
+
number,
|
|
676
|
+
number
|
|
677
|
+
], string>;
|
|
678
|
+
export type NetworkHttp2SessionGoawayRawBridgeRef = BridgeApplySyncRef<[
|
|
679
|
+
number,
|
|
680
|
+
number,
|
|
681
|
+
number,
|
|
682
|
+
string | null
|
|
683
|
+
], void>;
|
|
684
|
+
export type NetworkHttp2SessionCloseRawBridgeRef = BridgeApplySyncRef<[
|
|
685
|
+
number
|
|
686
|
+
], void>;
|
|
687
|
+
export type NetworkHttp2SessionDestroyRawBridgeRef = BridgeApplySyncRef<[
|
|
688
|
+
number
|
|
689
|
+
], void>;
|
|
690
|
+
export type NetworkHttp2SessionWaitRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
691
|
+
export type NetworkHttp2ServerPollRawBridgeRef = BridgeApplySyncRef<[
|
|
692
|
+
number
|
|
693
|
+
], string | null>;
|
|
694
|
+
export type NetworkHttp2SessionPollRawBridgeRef = BridgeApplySyncRef<[
|
|
695
|
+
number
|
|
696
|
+
], string | null>;
|
|
697
|
+
export type NetworkHttp2StreamRespondRawBridgeRef = BridgeApplySyncRef<[
|
|
698
|
+
number,
|
|
699
|
+
string
|
|
700
|
+
], void>;
|
|
701
|
+
export type NetworkHttp2StreamPushStreamRawBridgeRef = BridgeApplySyncPromiseRef<[
|
|
702
|
+
number,
|
|
703
|
+
string,
|
|
704
|
+
string
|
|
705
|
+
], string>;
|
|
706
|
+
export type NetworkHttp2StreamWriteRawBridgeRef = BridgeApplySyncRef<[
|
|
707
|
+
number,
|
|
708
|
+
string
|
|
709
|
+
], boolean>;
|
|
710
|
+
export type NetworkHttp2StreamEndRawBridgeRef = BridgeApplySyncRef<[
|
|
711
|
+
number,
|
|
712
|
+
string | null
|
|
713
|
+
], void>;
|
|
714
|
+
export type NetworkHttp2StreamPauseRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
715
|
+
export type NetworkHttp2StreamResumeRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
716
|
+
export type NetworkHttp2StreamRespondWithFileRawBridgeRef = BridgeApplySyncRef<[
|
|
717
|
+
number,
|
|
718
|
+
string,
|
|
719
|
+
string,
|
|
720
|
+
string
|
|
721
|
+
], void>;
|
|
722
|
+
export type NetworkHttp2ServerRespondRawBridgeRef = BridgeApplySyncRef<[
|
|
723
|
+
number,
|
|
724
|
+
number,
|
|
725
|
+
string
|
|
726
|
+
], void>;
|
|
727
|
+
export type UpgradeSocketWriteRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
|
|
728
|
+
export type UpgradeSocketEndRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
729
|
+
export type UpgradeSocketDestroyRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
730
|
+
export type NetSocketConnectRawBridgeRef = BridgeApplySyncRef<[string], number>;
|
|
731
|
+
export type NetSocketWaitConnectRawBridgeRef = BridgeApplyRef<[number], string>;
|
|
732
|
+
export type NetSocketReadRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
|
|
733
|
+
export type NetSocketSetNoDelayRawBridgeRef = BridgeApplySyncRef<[number, boolean], void>;
|
|
734
|
+
export type NetSocketSetKeepAliveRawBridgeRef = BridgeApplySyncRef<[number, boolean, number], void>;
|
|
735
|
+
export type NetSocketWriteRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
|
|
736
|
+
export type NetSocketEndRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
737
|
+
export type NetSocketDestroyRawBridgeRef = BridgeApplySyncRef<[number], void>;
|
|
738
|
+
export type NetSocketUpgradeTlsRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
|
|
739
|
+
export type NetSocketGetTlsClientHelloRawBridgeRef = BridgeApplySyncRef<[number], string>;
|
|
740
|
+
export type NetSocketTlsQueryRawBridgeRef = BridgeApplySyncRef<[
|
|
741
|
+
number,
|
|
742
|
+
string,
|
|
743
|
+
boolean?
|
|
744
|
+
], string>;
|
|
745
|
+
export type TlsGetCiphersRawBridgeRef = BridgeApplySyncRef<[], string>;
|
|
746
|
+
export type NetServerListenRawBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
|
|
747
|
+
export type NetServerAcceptRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
|
|
748
|
+
export type NetServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
|
|
749
|
+
export type DgramSocketCreateRawBridgeRef = BridgeApplySyncRef<[string], number>;
|
|
750
|
+
export type DgramSocketBindRawBridgeRef = BridgeApplySyncPromiseRef<[number, string], string>;
|
|
751
|
+
export type DgramSocketRecvRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
|
|
752
|
+
export type DgramSocketSendRawBridgeRef = BridgeApplySyncPromiseRef<[number, string], number>;
|
|
753
|
+
export type DgramSocketCloseRawBridgeRef = BridgeApplySyncPromiseRef<[number], void>;
|
|
754
|
+
export type DgramSocketAddressRawBridgeRef = BridgeApplySyncRef<[number], string>;
|
|
755
|
+
export type DgramSocketSetBufferSizeRawBridgeRef = BridgeApplySyncRef<[
|
|
756
|
+
number,
|
|
757
|
+
"recv" | "send",
|
|
758
|
+
number
|
|
759
|
+
], void>;
|
|
760
|
+
export type DgramSocketGetBufferSizeRawBridgeRef = BridgeApplySyncRef<[
|
|
761
|
+
number,
|
|
762
|
+
"recv" | "send"
|
|
763
|
+
], number>;
|
|
764
|
+
export type ResolveModuleSyncBridgeRef = BridgeApplySyncRef<[
|
|
765
|
+
string,
|
|
766
|
+
string
|
|
767
|
+
], string | null>;
|
|
768
|
+
export type LoadFileSyncBridgeRef = BridgeApplySyncRef<[string], string | null>;
|
|
769
|
+
export type PtySetRawModeBridgeRef = BridgeApplySyncRef<[boolean], void>;
|
|
770
|
+
export type RegisterHandleBridgeFn = (id: string, description: string) => void;
|
|
771
|
+
export type UnregisterHandleBridgeFn = (id: string) => void;
|
|
772
|
+
export type BatchResolveModulesBridgeRef = BridgeApplySyncPromiseRef<[
|
|
773
|
+
string
|
|
774
|
+
], string>;
|