@fkn/lib 0.5.5 → 0.6.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/account.cjs +1 -1
- package/account.d.ts +9 -11
- package/account.js +2 -2
- package/api-BYUraih6.d.ts +524 -0
- package/{api-CDb2pv7C.cjs → api-DD5v1qP9.cjs} +1 -1
- package/{background-DvQm1JHR.js → background-BVBbBOmL.js} +41 -68
- package/background-B_VgpARk.cjs +1 -0
- package/cloud/dgram.cjs +1 -1
- package/cloud/dgram.d.ts +2 -541
- package/cloud/dgram.js +1 -3
- package/cloud/dns.cjs +1 -1
- package/cloud/dns.d.ts +3 -12
- package/cloud/dns.js +0 -1
- package/cloud/fs/promises.cjs +1 -1
- package/cloud/fs/promises.d.ts +7 -43
- package/cloud/fs/promises.js +0 -3
- package/cloud/fs.cjs +1 -1
- package/cloud/fs.d.ts +3 -75
- package/cloud/fs.js +3 -4
- package/cloud/http.cjs +1 -1
- package/cloud/http.d.ts +2 -767
- package/cloud/http.js +0 -3
- package/cloud/net.cjs +1 -1
- package/cloud/net.d.ts +2 -606
- package/cloud/net.js +2 -3
- package/cloud-5o7yJHeX.cjs +1 -0
- package/cloud-BFyf2uC7.js +112 -0
- package/cloud-gklfa4ZN.d.ts +41 -0
- package/cloud.cjs +1 -1
- package/cloud.d.ts +7 -1053
- package/cloud.js +8 -12
- package/{connect-button-poDZVmq2.cjs → connect-button-BBEjXzB3.cjs} +1 -1
- package/connect-button-D8KXSL6s.d.ts +4 -0
- package/desktop.cjs +1 -1
- package/desktop.d.ts +37 -34
- package/desktop.js +1 -1
- package/dgram-CE43gJq9.cjs +1 -0
- package/{dgram-c_Xk7ckJ.js → dgram-wtjARbt0.js} +3 -3
- package/dgram.cjs +1 -1
- package/dgram.d.ts +83 -533
- package/dgram.js +1 -3
- package/dns.cjs +1 -1
- package/dns.d.ts +9 -9
- package/dns.js +2 -2
- package/extension-3pxUYwrA.d.ts +16 -0
- package/extension-CPj10qwa.js +67 -0
- package/extension-D-NUXxzF.cjs +1 -0
- package/extension.cjs +1 -1
- package/extension.d.ts +3 -859
- package/extension.js +3 -5
- package/fs/promises.cjs +1 -1
- package/fs/promises.d.ts +8 -63
- package/fs/promises.js +1 -4
- package/fs-BfmfMBiw.cjs +1 -0
- package/{fs-BQs-x3_j.js → fs-D6nNf1mR.js} +4 -4
- package/fs-K7ROdxDx.d.ts +41 -0
- package/fs.cjs +1 -1
- package/fs.d.ts +81 -131
- package/fs.js +1 -4
- package/http.cjs +2 -2
- package/http.d.ts +152 -733
- package/http.js +7 -7
- package/index-BJztAQIP.d.ts +721 -0
- package/index-C6ZoDJg8.d.ts +31 -0
- package/index.cjs +1 -1
- package/index.d.ts +25 -2313
- package/index.js +23 -26
- package/lookup-BtwWaCZJ.d.ts +7 -0
- package/net-BDW1AVX1.d.ts +140 -0
- package/net-CpuAhaQC.cjs +1 -0
- package/{net-Bl6_W3bd.js → net-DKMWPXb_.js} +3 -3
- package/net.cjs +1 -1
- package/net.d.ts +2 -606
- package/net.js +2 -3
- package/{node-fs-DQn1TGJz.cjs → node-fs-C0eKnboT.cjs} +1 -1
- package/{node-fs-CdKPXPtW.js → node-fs-Dbf93qP7.js} +1 -1
- package/opfs/promises.cjs +1 -1
- package/opfs/promises.d.ts +8 -63
- package/opfs/promises.js +0 -1
- package/{opfs-BfcYLPGb.js → opfs-7_GmzQ93.js} +1 -1
- package/opfs-uClkgnb5.cjs +1 -0
- package/opfs.cjs +1 -1
- package/opfs.d.ts +80 -130
- package/opfs.js +3 -3
- package/package.json +6 -1
- package/packages-D36R2vBv.d.ts +108 -0
- package/packages.cjs +1 -0
- package/packages.d.ts +2 -0
- package/packages.js +150 -0
- package/{locator-9s7jNIA2.js → proxy-C8SG1Beo.js} +542 -344
- package/proxy-bPaU3-Cz.cjs +53 -0
- package/react.cjs +1 -1
- package/react.d.ts +11 -9
- package/react.js +1 -1
- package/{chunk-CPXzm0be.js → rolldown-runtime-DF993M8W.js} +1 -1
- package/rolldown-runtime-Doa5O59j.cjs +1 -0
- package/storage-OkwsFLN1.cjs +1 -0
- package/{storage-BcJfnkm3.js → storage-TmeyhZGt.js} +2 -2
- package/{utils-BsNRWMfl.cjs → utils-CoimMjf9.cjs} +1 -1
- package/background-CbU8TkWo.cjs +0 -1
- package/chunk-B6C_zzib.cjs +0 -1
- package/cloud-CWg9zCWm.cjs +0 -1
- package/cloud-eLyGYzbA.js +0 -33
- package/dgram-B3WC4VdJ.cjs +0 -1
- package/extension-BLkZiaAP.js +0 -253
- package/extension-DAiRg5ny.cjs +0 -1
- package/fs-DI1maxcZ.cjs +0 -1
- package/locator-CHfEe3Jv.cjs +0 -53
- package/net-C5kWnI4C.cjs +0 -1
- package/opfs-Dsi4FkJU.cjs +0 -1
- package/proxy-A9UvWUaF.cjs +0 -1
- package/proxy-wiZN4eTR.js +0 -14
- package/storage-C2-_-bTO.cjs +0 -1
- /package/{api-ByfayMm1.js → api--bnCFd4w.js} +0 -0
- /package/{connect-button-B_63ldmg.js → connect-button-Ds9KpXHe.js} +0 -0
- /package/{utils-CNydj3OT.js → utils-DPtyxGQu.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -1,2316 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import * as osra_build_revivables_promise from 'osra/build/revivables/promise';
|
|
20
|
-
import * as osra_build_revivables_typed_array from 'osra/build/revivables/typed-array';
|
|
21
|
-
import * as osra_build_revivables_error from 'osra/build/revivables/error';
|
|
22
|
-
import * as osra_build_revivables_headers from 'osra/build/revivables/headers';
|
|
23
|
-
import * as osra_build_revivables_date from 'osra/build/revivables/date';
|
|
24
|
-
import * as osra_build_revivables_array_buffer from 'osra/build/revivables/array-buffer';
|
|
25
|
-
import * as osra_build_revivables_identity from 'osra/build/revivables/identity';
|
|
26
|
-
import * as osra_build_revivables_transfer from 'osra/build/revivables/transfer';
|
|
27
|
-
import * as ip_address from 'ip-address';
|
|
28
|
-
import { Address4, Address6 } from 'ip-address';
|
|
29
|
-
import * as node_fs from 'node:fs';
|
|
30
|
-
import { Socket as Socket$2, SocketConstructorOpts, SocketConnectOpts, AddressInfo, Server as Server$2, ServerOpts, ListenOptions } from 'net';
|
|
31
|
-
import { Stream, DuplexOptions } from 'stream';
|
|
32
|
-
import { EventEmitter } from 'events';
|
|
33
|
-
import { Socket as Socket$3, SocketOptions, BindOptions, SocketType, RemoteInfo } from 'dgram';
|
|
34
|
-
import { Buffer as Buffer$1 } from 'buffer';
|
|
35
|
-
import { OutgoingHttpHeaders, IncomingHttpHeaders, RequestOptions } from 'http';
|
|
36
|
-
|
|
37
|
-
declare const fetchPermission: {
|
|
38
|
-
readonly scope: 'network.fetch';
|
|
39
|
-
readonly category: 'network';
|
|
40
|
-
readonly severity: 0;
|
|
41
|
-
readonly title: 'Fetch data from other sites';
|
|
42
|
-
readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
|
|
43
|
-
};
|
|
44
|
-
declare const fetchCredentialedPermission: {
|
|
45
|
-
readonly scope: 'network.fetchCredentialed';
|
|
46
|
-
readonly category: 'network';
|
|
47
|
-
readonly severity: 3;
|
|
48
|
-
readonly unsafe: true;
|
|
49
|
-
readonly title: 'Fetch from other sites, signed in as you';
|
|
50
|
-
readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
|
|
51
|
-
};
|
|
52
|
-
declare const fetchLocalPermission: {
|
|
53
|
-
readonly scope: 'network.fetchLocal';
|
|
54
|
-
readonly category: 'network';
|
|
55
|
-
readonly severity: 3;
|
|
56
|
-
readonly unsafe: true;
|
|
57
|
-
readonly title: 'Access devices on your local network';
|
|
58
|
-
readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
|
|
59
|
-
};
|
|
60
|
-
declare const isLocalNetworkUrl: (raw: string) => boolean;
|
|
61
|
-
type ProxyFetchRequest = {
|
|
62
|
-
url: string;
|
|
63
|
-
method: string;
|
|
64
|
-
headers: [string, string][];
|
|
65
|
-
body: ArrayBuffer | null;
|
|
66
|
-
credentials: 'include' | 'omit';
|
|
67
|
-
redirect: RequestRedirect;
|
|
68
|
-
unsafeHeaders?: [string, string][];
|
|
69
|
-
reason?: string;
|
|
70
|
-
signal?: AbortSignal;
|
|
71
|
-
};
|
|
72
|
-
type FetchInit = RequestInit & {
|
|
73
|
-
reason?: string;
|
|
74
|
-
};
|
|
75
|
-
declare const isBlockedFetchUrl: (raw: string) => boolean;
|
|
76
|
-
declare const assertFetchableUrl: (raw: string) => void;
|
|
77
|
-
declare const fetch$2: (input: RequestInfo | URL, init?: FetchInit) => Promise<Response>;
|
|
78
|
-
|
|
79
|
-
declare const readCookiePermission: {
|
|
80
|
-
readonly scope: 'network.readCookie';
|
|
81
|
-
readonly category: 'network';
|
|
82
|
-
readonly severity: 3;
|
|
83
|
-
readonly unsafe: true;
|
|
84
|
-
readonly title: 'Read a site’s cookie';
|
|
85
|
-
readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
|
|
86
|
-
};
|
|
87
|
-
type CookieDetails = {
|
|
88
|
-
url: string;
|
|
89
|
-
name: string;
|
|
90
|
-
};
|
|
91
|
-
type SiteCookie = {
|
|
92
|
-
name: string;
|
|
93
|
-
value: string;
|
|
94
|
-
};
|
|
95
|
-
declare const cookies: {
|
|
96
|
-
get: (details: CookieDetails) => Promise<SiteCookie | null>;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
declare const modifyRequestHeadersPermission: {
|
|
100
|
-
readonly scope: 'network.modifyRequestHeaders';
|
|
101
|
-
readonly category: 'network';
|
|
102
|
-
readonly severity: 2;
|
|
103
|
-
readonly unsafe: true;
|
|
104
|
-
readonly title: 'Rewrite request headers to other sites';
|
|
105
|
-
readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
|
|
106
|
-
};
|
|
107
|
-
type HeaderOperation = {
|
|
108
|
-
header: string;
|
|
109
|
-
operation: 'set' | 'remove';
|
|
110
|
-
value?: string;
|
|
111
|
-
};
|
|
112
|
-
type RequestHeaderRule = {
|
|
113
|
-
domains: string[];
|
|
114
|
-
requestHeaders: HeaderOperation[];
|
|
115
|
-
reason?: string;
|
|
116
|
-
};
|
|
117
|
-
declare const setRequestHeaderRule: (rule: RequestHeaderRule) => Promise<{
|
|
118
|
-
ruleId: number;
|
|
119
|
-
}>;
|
|
120
|
-
declare const removeRequestHeaderRule: (ruleId: number) => Promise<void>;
|
|
121
|
-
|
|
122
|
-
type ExtractType<M> = M extends {
|
|
123
|
-
type: infer T extends string;
|
|
124
|
-
} ? T : never;
|
|
125
|
-
type ExtractResolverArgs<M> = M extends {
|
|
126
|
-
resolve: (context: any, ...args: infer A) => Element[];
|
|
127
|
-
} ? A : never;
|
|
128
|
-
type ExtractOperationArgs<M> = M extends {
|
|
129
|
-
resolve: (context: any, ...args: infer A) => any;
|
|
130
|
-
} ? A : never;
|
|
131
|
-
type ExtractResolverReturn<M> = M extends {
|
|
132
|
-
resolve: (context: any, ...args: any[]) => infer R;
|
|
133
|
-
} ? R : never;
|
|
134
|
-
|
|
135
|
-
declare const type$i: 'locator';
|
|
136
|
-
declare const resolve$h: (context: LocatorContext, selector: string) => Element[];
|
|
137
|
-
declare const render$7: SelectorRenderer;
|
|
138
|
-
|
|
139
|
-
declare namespace locatorSel {
|
|
140
|
-
export {
|
|
141
|
-
render$7 as render,
|
|
142
|
-
resolve$h as resolve,
|
|
143
|
-
type$i as type,
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
declare const type$h: 'getByRole';
|
|
148
|
-
declare const resolve$g: (context: LocatorContext, role: string) => Element[];
|
|
149
|
-
declare const render$6: SelectorRenderer;
|
|
150
|
-
|
|
151
|
-
declare namespace getByRole {
|
|
152
|
-
export {
|
|
153
|
-
render$6 as render,
|
|
154
|
-
resolve$g as resolve,
|
|
155
|
-
type$h as type,
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
declare const type$g: 'getByText';
|
|
160
|
-
declare const resolve$f: (context: LocatorContext, text: string) => Element[];
|
|
161
|
-
declare const render$5: SelectorRenderer;
|
|
162
|
-
|
|
163
|
-
declare namespace getByText {
|
|
164
|
-
export {
|
|
165
|
-
render$5 as render,
|
|
166
|
-
resolve$f as resolve,
|
|
167
|
-
type$g as type,
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
declare const type$f: 'getByTestId';
|
|
172
|
-
declare const resolve$e: (context: LocatorContext, testId: string) => Element[];
|
|
173
|
-
declare const render$4: SelectorRenderer;
|
|
174
|
-
|
|
175
|
-
declare namespace getByTestId {
|
|
176
|
-
export {
|
|
177
|
-
render$4 as render,
|
|
178
|
-
resolve$e as resolve,
|
|
179
|
-
type$f as type,
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
declare const type$e: 'first';
|
|
184
|
-
declare const resolve$d: (context: LocatorContext) => Element[];
|
|
185
|
-
declare const render$3: SelectorRenderer;
|
|
186
|
-
|
|
187
|
-
declare namespace first {
|
|
188
|
-
export {
|
|
189
|
-
render$3 as render,
|
|
190
|
-
resolve$d as resolve,
|
|
191
|
-
type$e as type,
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
declare const type$d: 'nth';
|
|
196
|
-
declare const resolve$c: (context: LocatorContext, index: number) => Element[];
|
|
197
|
-
declare const render$2: SelectorRenderer;
|
|
198
|
-
|
|
199
|
-
declare namespace nth {
|
|
200
|
-
export {
|
|
201
|
-
render$2 as render,
|
|
202
|
-
resolve$c as resolve,
|
|
203
|
-
type$d as type,
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
declare const type$c: 'click';
|
|
208
|
-
declare const permission$9: {
|
|
209
|
-
readonly scope: 'act.click';
|
|
210
|
-
readonly category: 'act';
|
|
211
|
-
readonly severity: 3;
|
|
212
|
-
readonly title: 'Click on the page';
|
|
213
|
-
readonly description: 'Lets the app press buttons or links for you.';
|
|
214
|
-
};
|
|
215
|
-
declare const resolve$b: (context: LocatorContext, options?: OperationTimeoutOptions & {
|
|
216
|
-
position?: {
|
|
217
|
-
x?: number;
|
|
218
|
-
y?: number;
|
|
219
|
-
};
|
|
220
|
-
}) => void;
|
|
221
|
-
|
|
222
|
-
declare namespace click {
|
|
223
|
-
export {
|
|
224
|
-
permission$9 as permission,
|
|
225
|
-
resolve$b as resolve,
|
|
226
|
-
type$c as type,
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
declare const type$b: 'fill';
|
|
231
|
-
declare const permission$8: {
|
|
232
|
-
readonly scope: 'act.type';
|
|
233
|
-
readonly category: 'act';
|
|
234
|
-
readonly severity: 1;
|
|
235
|
-
readonly title: 'Type into a text field';
|
|
236
|
-
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
237
|
-
};
|
|
238
|
-
declare const resolve$a: (context: LocatorContext, value: string, _options?: OperationTimeoutOptions) => void;
|
|
239
|
-
|
|
240
|
-
declare namespace fill {
|
|
241
|
-
export {
|
|
242
|
-
permission$8 as permission,
|
|
243
|
-
resolve$a as resolve,
|
|
244
|
-
type$b as type,
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
declare const type$a: 'hover';
|
|
249
|
-
declare const permission$7: {
|
|
250
|
-
readonly scope: 'act.hover';
|
|
251
|
-
readonly category: 'act';
|
|
252
|
-
readonly severity: 1;
|
|
253
|
-
readonly title: 'Hover over the page';
|
|
254
|
-
readonly description: 'Lets the app point at things to reveal menus or tooltips.';
|
|
255
|
-
};
|
|
256
|
-
declare const resolve$9: (context: LocatorContext, options?: OperationTimeoutOptions & {
|
|
257
|
-
position?: {
|
|
258
|
-
x?: number;
|
|
259
|
-
y?: number;
|
|
260
|
-
};
|
|
261
|
-
}) => void;
|
|
262
|
-
|
|
263
|
-
declare namespace hover {
|
|
264
|
-
export {
|
|
265
|
-
permission$7 as permission,
|
|
266
|
-
resolve$9 as resolve,
|
|
267
|
-
type$a as type,
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
declare const type$9: 'textContent';
|
|
272
|
-
declare const permission$6: {
|
|
273
|
-
readonly scope: 'read.text';
|
|
274
|
-
readonly category: 'read';
|
|
275
|
-
readonly severity: 1;
|
|
276
|
-
readonly title: 'Read text from the page';
|
|
277
|
-
readonly description: 'Lets the app see the text shown on this page.';
|
|
278
|
-
};
|
|
279
|
-
declare const resolve$8: (context: LocatorContext, _options?: OperationTimeoutOptions) => string;
|
|
280
|
-
|
|
281
|
-
declare namespace textContent {
|
|
282
|
-
export {
|
|
283
|
-
permission$6 as permission,
|
|
284
|
-
resolve$8 as resolve,
|
|
285
|
-
type$9 as type,
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
declare const type$8: 'isVisible';
|
|
290
|
-
declare const permission$5: {
|
|
291
|
-
readonly scope: 'read.visible';
|
|
292
|
-
readonly category: 'read';
|
|
293
|
-
readonly severity: 0;
|
|
294
|
-
readonly title: 'See what’s visible on the page';
|
|
295
|
-
readonly description: 'Lets the app check which elements are currently on screen.';
|
|
296
|
-
};
|
|
297
|
-
declare const resolve$7: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
|
|
298
|
-
|
|
299
|
-
declare namespace isVisible {
|
|
300
|
-
export {
|
|
301
|
-
permission$5 as permission,
|
|
302
|
-
resolve$7 as resolve,
|
|
303
|
-
type$8 as type,
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
declare const type$7: 'count';
|
|
308
|
-
declare const permission$4: {
|
|
309
|
-
readonly scope: 'read.count';
|
|
310
|
-
readonly category: 'read';
|
|
311
|
-
readonly severity: 0;
|
|
312
|
-
readonly title: 'Count items on the page';
|
|
313
|
-
readonly description: 'Lets the app count how many matching elements are present.';
|
|
314
|
-
};
|
|
315
|
-
declare const resolve$6: (context: LocatorContext, _options?: OperationTimeoutOptions) => number;
|
|
316
|
-
|
|
317
|
-
declare namespace count {
|
|
318
|
-
export {
|
|
319
|
-
permission$4 as permission,
|
|
320
|
-
resolve$6 as resolve,
|
|
321
|
-
type$7 as type,
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
declare const type$6: 'exists';
|
|
326
|
-
declare const permission$3: {
|
|
327
|
-
readonly scope: 'read.check';
|
|
328
|
-
readonly category: 'read';
|
|
329
|
-
readonly severity: 0;
|
|
330
|
-
readonly title: 'Check if something is on the page';
|
|
331
|
-
readonly description: 'Lets the app test whether a specific element exists.';
|
|
332
|
-
};
|
|
333
|
-
declare const resolve$5: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
|
|
334
|
-
|
|
335
|
-
declare namespace exists$2 {
|
|
336
|
-
export {
|
|
337
|
-
permission$3 as permission,
|
|
338
|
-
resolve$5 as resolve,
|
|
339
|
-
type$6 as type,
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
declare const type$5: 'getAttribute';
|
|
344
|
-
declare const permission$2: {
|
|
345
|
-
readonly scope: 'read.info';
|
|
346
|
-
readonly category: 'read';
|
|
347
|
-
readonly severity: 1;
|
|
348
|
-
readonly title: 'Read info from the page';
|
|
349
|
-
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
350
|
-
};
|
|
351
|
-
declare const resolve$4: (context: LocatorContext, name: string, _options?: OperationTimeoutOptions) => string | null;
|
|
352
|
-
|
|
353
|
-
declare namespace getAttribute {
|
|
354
|
-
export {
|
|
355
|
-
permission$2 as permission,
|
|
356
|
-
resolve$4 as resolve,
|
|
357
|
-
type$5 as type,
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
declare const type$4: 'videoElement';
|
|
362
|
-
declare const permission$1: {
|
|
363
|
-
readonly scope: 'media.video';
|
|
364
|
-
readonly category: 'media';
|
|
365
|
-
readonly severity: 0;
|
|
366
|
-
readonly title: 'Control video playback';
|
|
367
|
-
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
368
|
-
};
|
|
369
|
-
declare const resolve$3: (context: LocatorContext, _options?: OperationTimeoutOptions) => RemoteVideoElement;
|
|
370
|
-
|
|
371
|
-
declare namespace videoElement$1 {
|
|
372
|
-
export {
|
|
373
|
-
permission$1 as permission,
|
|
374
|
-
resolve$3 as resolve,
|
|
375
|
-
type$4 as type,
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
declare const locatorModule: {
|
|
380
|
-
readonly type: "locator";
|
|
381
|
-
readonly selectorModules: readonly [typeof locatorSel, {
|
|
382
|
-
readonly type: 'frameLocator';
|
|
383
|
-
readonly resolve: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
|
|
384
|
-
readonly resolvePeer: BarrierResolver;
|
|
385
|
-
readonly render: SelectorRenderer;
|
|
386
|
-
readonly nextLocatorType: 'frameLocator';
|
|
387
|
-
}, typeof getByRole, typeof getByText, typeof getByTestId, typeof first, typeof nth];
|
|
388
|
-
readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists$2, typeof getAttribute, typeof videoElement$1];
|
|
389
|
-
};
|
|
390
|
-
type LocatorModule = typeof locatorModule;
|
|
391
|
-
interface Locator extends LocatorChain<LocatorModule, Locator> {
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
declare const type$3: 'frameLocator';
|
|
395
|
-
declare const resolve$2: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
|
|
396
|
-
declare const resolvePeer$1: BarrierResolver;
|
|
397
|
-
declare const render$1: SelectorRenderer;
|
|
398
|
-
|
|
399
|
-
declare namespace frameLocatorSel {
|
|
400
|
-
export {
|
|
401
|
-
render$1 as render,
|
|
402
|
-
resolve$2 as resolve,
|
|
403
|
-
resolvePeer$1 as resolvePeer,
|
|
404
|
-
type$3 as type,
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
declare const type$2: 'owner';
|
|
409
|
-
declare const resolve$1: (_: LocatorContext) => never;
|
|
410
|
-
declare const resolvePeer: BarrierResolver;
|
|
411
|
-
declare const render: SelectorRenderer;
|
|
412
|
-
|
|
413
|
-
declare const owner_render: typeof render;
|
|
414
|
-
declare const owner_resolvePeer: typeof resolvePeer;
|
|
415
|
-
declare namespace owner {
|
|
416
|
-
export {
|
|
417
|
-
owner_render as render,
|
|
418
|
-
resolve$1 as resolve,
|
|
419
|
-
owner_resolvePeer as resolvePeer,
|
|
420
|
-
type$2 as type,
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
declare const type$1: 'addStyleTag';
|
|
425
|
-
type AddStyleTagOptions = OperationTimeoutOptions & {
|
|
426
|
-
content: string;
|
|
427
|
-
noSanitize?: boolean;
|
|
428
|
-
};
|
|
429
|
-
declare const appearPermission: {
|
|
430
|
-
readonly scope: 'media.appear';
|
|
431
|
-
readonly category: 'media';
|
|
432
|
-
readonly severity: 0;
|
|
433
|
-
readonly title: 'Change page appearance';
|
|
434
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
435
|
-
};
|
|
436
|
-
declare const appearUnsafePermission: {
|
|
437
|
-
readonly scope: 'media.appearU';
|
|
438
|
-
readonly category: 'media';
|
|
439
|
-
readonly severity: 2;
|
|
440
|
-
readonly unsafe: true;
|
|
441
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
442
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
443
|
-
};
|
|
444
|
-
declare const permission: (options?: AddStyleTagOptions) => {
|
|
445
|
-
readonly scope: 'media.appear';
|
|
446
|
-
readonly category: 'media';
|
|
447
|
-
readonly severity: 0;
|
|
448
|
-
readonly title: 'Change page appearance';
|
|
449
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
450
|
-
} | {
|
|
451
|
-
readonly scope: 'media.appearU';
|
|
452
|
-
readonly category: 'media';
|
|
453
|
-
readonly severity: 2;
|
|
454
|
-
readonly unsafe: true;
|
|
455
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
456
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
457
|
-
};
|
|
458
|
-
declare const setInjectedStylesDisabled: (disabled: boolean) => void;
|
|
459
|
-
declare const resolve: (_context: LocatorContext, options: AddStyleTagOptions) => Promise<void>;
|
|
460
|
-
|
|
461
|
-
type addStyleTag_AddStyleTagOptions = AddStyleTagOptions;
|
|
462
|
-
declare const addStyleTag_appearPermission: typeof appearPermission;
|
|
463
|
-
declare const addStyleTag_appearUnsafePermission: typeof appearUnsafePermission;
|
|
464
|
-
declare const addStyleTag_permission: typeof permission;
|
|
465
|
-
declare const addStyleTag_resolve: typeof resolve;
|
|
466
|
-
declare const addStyleTag_setInjectedStylesDisabled: typeof setInjectedStylesDisabled;
|
|
467
|
-
declare namespace addStyleTag {
|
|
468
|
-
export { addStyleTag_appearPermission as appearPermission, addStyleTag_appearUnsafePermission as appearUnsafePermission, addStyleTag_permission as permission, addStyleTag_resolve as resolve, addStyleTag_setInjectedStylesDisabled as setInjectedStylesDisabled, type$1 as type };
|
|
469
|
-
export type { addStyleTag_AddStyleTagOptions as AddStyleTagOptions };
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
declare const frameLocatorModule: {
|
|
473
|
-
readonly type: "frameLocator";
|
|
474
|
-
readonly selectorModules: readonly [{
|
|
475
|
-
readonly type: 'locator';
|
|
476
|
-
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
477
|
-
readonly render: SelectorRenderer;
|
|
478
|
-
readonly nextLocatorType: 'locator';
|
|
479
|
-
}, typeof frameLocatorSel, typeof owner];
|
|
480
|
-
readonly operationModules: readonly [typeof addStyleTag];
|
|
481
|
-
};
|
|
482
|
-
type FrameLocatorModule = typeof frameLocatorModule;
|
|
483
|
-
interface FrameLocator extends LocatorChain<FrameLocatorModule, FrameLocator> {
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
type FrameId = `${number}-${number}`;
|
|
487
|
-
|
|
488
|
-
type PermissionCategory = 'read' | 'act' | 'media' | 'embed' | 'network';
|
|
489
|
-
type PermissionSeverity = 0 | 1 | 2 | 3 | 4;
|
|
490
|
-
type Permission = {
|
|
491
|
-
scope: string;
|
|
492
|
-
category: PermissionCategory;
|
|
493
|
-
severity: PermissionSeverity;
|
|
494
|
-
title: string;
|
|
495
|
-
description: string;
|
|
496
|
-
unsafe?: boolean;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
type LocatorContext = {
|
|
500
|
-
elements: Element[];
|
|
501
|
-
};
|
|
502
|
-
type OperationTimeoutOptions = {
|
|
503
|
-
timeout?: number;
|
|
504
|
-
reason?: string;
|
|
505
|
-
};
|
|
506
|
-
type BarrierContext = {
|
|
507
|
-
parts: SelectorPart[];
|
|
508
|
-
selfIndex: number;
|
|
509
|
-
resolveLocal: (parts: SelectorPart[]) => Element[];
|
|
510
|
-
};
|
|
511
|
-
type BarrierResolver = (context: BarrierContext) => Promise<FrameId>;
|
|
512
|
-
type SelectorRenderResult = {
|
|
513
|
-
fragment: string;
|
|
514
|
-
separator?: 'descend' | 'frame-down' | 'frame-up';
|
|
515
|
-
};
|
|
516
|
-
type SelectorRenderer = (...args: any[]) => SelectorRenderResult;
|
|
517
|
-
type SelectorModule = {
|
|
518
|
-
type: string;
|
|
519
|
-
resolve: (context: LocatorContext, ...args: any[]) => Element[];
|
|
520
|
-
nextLocatorType?: 'locator' | 'frameLocator';
|
|
521
|
-
resolvePeer?: BarrierResolver;
|
|
522
|
-
render?: SelectorRenderer;
|
|
523
|
-
};
|
|
524
|
-
type OperationPermission = Permission | ((...args: any[]) => Permission);
|
|
525
|
-
type OperationModule = {
|
|
526
|
-
type: string;
|
|
527
|
-
resolve: (context: LocatorContext, ...args: any[]) => unknown;
|
|
528
|
-
permission: OperationPermission;
|
|
529
|
-
};
|
|
530
|
-
type LocatorKindModule = {
|
|
531
|
-
readonly type: string;
|
|
532
|
-
readonly selectorModules: readonly SelectorModule[];
|
|
533
|
-
readonly operationModules: readonly OperationModule[];
|
|
534
|
-
};
|
|
535
|
-
type LocatorModules = [LocatorModule, FrameLocatorModule];
|
|
536
|
-
type LocatorModuleUnion = LocatorModules[number];
|
|
537
|
-
type SelectorPart<L extends LocatorModuleUnion = LocatorModuleUnion> = L extends LocatorModuleUnion ? L['selectorModules'][number] extends infer M extends SelectorModule ? {
|
|
538
|
-
locatorType: L['type'];
|
|
539
|
-
type: ExtractType<M>;
|
|
540
|
-
args: ExtractResolverArgs<M>;
|
|
541
|
-
} : never : never;
|
|
542
|
-
type NextLocator<M> = M extends {
|
|
543
|
-
nextLocatorType: 'frameLocator';
|
|
544
|
-
} ? FrameLocator : M extends {
|
|
545
|
-
nextLocatorType: 'locator';
|
|
546
|
-
} ? Locator : never;
|
|
547
|
-
type LocatorChain<L extends LocatorKindModule, Self> = {
|
|
548
|
-
[M in L['selectorModules'][number] as ExtractType<M>]: [
|
|
549
|
-
NextLocator<M>
|
|
550
|
-
] extends [never] ? (...args: ExtractResolverArgs<M>) => Self : (...args: ExtractResolverArgs<M>) => NextLocator<M>;
|
|
551
|
-
} & {
|
|
552
|
-
[M in L['operationModules'][number] as ExtractType<M>]: (...args: ExtractOperationArgs<M>) => Promise<Awaited<ExtractResolverReturn<M>>>;
|
|
553
|
-
} & {
|
|
554
|
-
ensure: (operation: ExtractType<L['operationModules'][number]>, options?: {
|
|
555
|
-
reason?: string;
|
|
556
|
-
timeout?: number;
|
|
557
|
-
subtree?: boolean;
|
|
558
|
-
} & Record<string, unknown>) => Promise<void>;
|
|
559
|
-
};
|
|
560
|
-
|
|
561
|
-
declare const ATTACH_FRAME_EVENT_KEY = "FKN_WEB_EXTENSION_ATTACH_FRAME_EVENT_KEY";
|
|
562
|
-
declare const isBlockedFrameUrl: (raw: string) => boolean;
|
|
563
|
-
declare const assertAttachableFrameUrl: (raw: string) => void;
|
|
564
|
-
declare const assertLockdownApplicable: ({ src, domains, lockdown }: {
|
|
565
|
-
src: string;
|
|
566
|
-
domains: string[];
|
|
567
|
-
lockdown: boolean;
|
|
568
|
-
}) => void;
|
|
569
|
-
declare const attachFramePermission: {
|
|
570
|
-
readonly scope: 'embed.iframe';
|
|
571
|
-
readonly category: 'embed';
|
|
572
|
-
readonly severity: 0;
|
|
573
|
-
readonly title: 'Load another website inside this app';
|
|
574
|
-
readonly description: 'Lets the app embed external pages directly inside its own view.';
|
|
575
|
-
};
|
|
576
|
-
declare const gotoPermission: {
|
|
577
|
-
readonly scope: 'embed.open';
|
|
578
|
-
readonly category: 'embed';
|
|
579
|
-
readonly severity: 0;
|
|
580
|
-
readonly title: 'Open a website inside this app';
|
|
581
|
-
readonly description: 'Lets the app navigate to another site without leaving its window.';
|
|
582
|
-
};
|
|
583
|
-
declare const evaluatePermission: {
|
|
584
|
-
readonly scope: 'embed.evaluate';
|
|
585
|
-
readonly category: 'embed';
|
|
586
|
-
readonly severity: 3;
|
|
587
|
-
readonly unsafe: true;
|
|
588
|
-
readonly title: 'Run app code inside an embedded site';
|
|
589
|
-
readonly description: 'Lets the app run its own code inside a page it embedded, where it can read and act on that site with your logged-in session.';
|
|
590
|
-
};
|
|
591
|
-
type GotoOptions = {
|
|
592
|
-
waitUntil?: 'documentstart' | 'load';
|
|
593
|
-
domains?: string[];
|
|
594
|
-
};
|
|
595
|
-
type Frame = FrameLocator & {
|
|
596
|
-
goto(url: string, options?: GotoOptions): Promise<void>;
|
|
597
|
-
evaluate<T = unknown>(code: string, arg?: unknown): Promise<T>;
|
|
598
|
-
url(): string;
|
|
599
|
-
};
|
|
600
|
-
type AttachFrameOptions = {
|
|
601
|
-
iframe: HTMLIFrameElement;
|
|
602
|
-
domains?: string[];
|
|
603
|
-
syncCookies?: boolean;
|
|
604
|
-
lockdown?: boolean;
|
|
605
|
-
};
|
|
606
|
-
declare const attachFrame: ({ iframe, domains, syncCookies, lockdown }: AttachFrameOptions) => Promise<Frame>;
|
|
607
|
-
|
|
608
|
-
declare const PERMISSIONS: readonly [{
|
|
609
|
-
readonly scope: 'read.text';
|
|
610
|
-
readonly category: 'read';
|
|
611
|
-
readonly severity: 1;
|
|
612
|
-
readonly title: 'Read text from the page';
|
|
613
|
-
readonly description: 'Lets the app see the text shown on this page.';
|
|
614
|
-
}, {
|
|
615
|
-
readonly scope: 'read.info';
|
|
616
|
-
readonly category: 'read';
|
|
617
|
-
readonly severity: 1;
|
|
618
|
-
readonly title: 'Read info from the page';
|
|
619
|
-
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
620
|
-
}, {
|
|
621
|
-
readonly scope: 'read.visible';
|
|
622
|
-
readonly category: 'read';
|
|
623
|
-
readonly severity: 0;
|
|
624
|
-
readonly title: 'See what’s visible on the page';
|
|
625
|
-
readonly description: 'Lets the app check which elements are currently on screen.';
|
|
626
|
-
}, {
|
|
627
|
-
readonly scope: 'read.check';
|
|
628
|
-
readonly category: 'read';
|
|
629
|
-
readonly severity: 0;
|
|
630
|
-
readonly title: 'Check if something is on the page';
|
|
631
|
-
readonly description: 'Lets the app test whether a specific element exists.';
|
|
632
|
-
}, {
|
|
633
|
-
readonly scope: 'read.count';
|
|
634
|
-
readonly category: 'read';
|
|
635
|
-
readonly severity: 0;
|
|
636
|
-
readonly title: 'Count items on the page';
|
|
637
|
-
readonly description: 'Lets the app count how many matching elements are present.';
|
|
638
|
-
}, {
|
|
639
|
-
readonly scope: 'act.click';
|
|
640
|
-
readonly category: 'act';
|
|
641
|
-
readonly severity: 3;
|
|
642
|
-
readonly title: 'Click on the page';
|
|
643
|
-
readonly description: 'Lets the app press buttons or links for you.';
|
|
644
|
-
}, {
|
|
645
|
-
readonly scope: 'act.type';
|
|
646
|
-
readonly category: 'act';
|
|
647
|
-
readonly severity: 1;
|
|
648
|
-
readonly title: 'Type into a text field';
|
|
649
|
-
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
650
|
-
}, {
|
|
651
|
-
readonly scope: 'act.hover';
|
|
652
|
-
readonly category: 'act';
|
|
653
|
-
readonly severity: 1;
|
|
654
|
-
readonly title: 'Hover over the page';
|
|
655
|
-
readonly description: 'Lets the app point at things to reveal menus or tooltips.';
|
|
656
|
-
}, {
|
|
657
|
-
readonly scope: 'media.video';
|
|
658
|
-
readonly category: 'media';
|
|
659
|
-
readonly severity: 0;
|
|
660
|
-
readonly title: 'Control video playback';
|
|
661
|
-
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
662
|
-
}, {
|
|
663
|
-
readonly scope: 'media.appear';
|
|
664
|
-
readonly category: 'media';
|
|
665
|
-
readonly severity: 0;
|
|
666
|
-
readonly title: 'Change page appearance';
|
|
667
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
668
|
-
}, {
|
|
669
|
-
readonly scope: 'media.appearU';
|
|
670
|
-
readonly category: 'media';
|
|
671
|
-
readonly severity: 2;
|
|
672
|
-
readonly unsafe: true;
|
|
673
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
674
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
675
|
-
}, {
|
|
676
|
-
readonly scope: 'embed.iframe';
|
|
677
|
-
readonly category: 'embed';
|
|
678
|
-
readonly severity: 0;
|
|
679
|
-
readonly title: 'Load another website inside this app';
|
|
680
|
-
readonly description: 'Lets the app embed external pages directly inside its own view.';
|
|
681
|
-
}, {
|
|
682
|
-
readonly scope: 'embed.open';
|
|
683
|
-
readonly category: 'embed';
|
|
684
|
-
readonly severity: 0;
|
|
685
|
-
readonly title: 'Open a website inside this app';
|
|
686
|
-
readonly description: 'Lets the app navigate to another site without leaving its window.';
|
|
687
|
-
}, {
|
|
688
|
-
readonly scope: 'embed.evaluate';
|
|
689
|
-
readonly category: 'embed';
|
|
690
|
-
readonly severity: 3;
|
|
691
|
-
readonly unsafe: true;
|
|
692
|
-
readonly title: 'Run app code inside an embedded site';
|
|
693
|
-
readonly description: 'Lets the app run its own code inside a page it embedded, where it can read and act on that site with your logged-in session.';
|
|
694
|
-
}, {
|
|
695
|
-
readonly scope: 'network.fetch';
|
|
696
|
-
readonly category: 'network';
|
|
697
|
-
readonly severity: 0;
|
|
698
|
-
readonly title: 'Fetch data from other sites';
|
|
699
|
-
readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
|
|
700
|
-
}, {
|
|
701
|
-
readonly scope: 'network.fetchCredentialed';
|
|
702
|
-
readonly category: 'network';
|
|
703
|
-
readonly severity: 3;
|
|
704
|
-
readonly unsafe: true;
|
|
705
|
-
readonly title: 'Fetch from other sites, signed in as you';
|
|
706
|
-
readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
|
|
707
|
-
}, {
|
|
708
|
-
readonly scope: 'network.fetchLocal';
|
|
709
|
-
readonly category: 'network';
|
|
710
|
-
readonly severity: 3;
|
|
711
|
-
readonly unsafe: true;
|
|
712
|
-
readonly title: 'Access devices on your local network';
|
|
713
|
-
readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
|
|
714
|
-
}, {
|
|
715
|
-
readonly scope: 'network.readCookie';
|
|
716
|
-
readonly category: 'network';
|
|
717
|
-
readonly severity: 3;
|
|
718
|
-
readonly unsafe: true;
|
|
719
|
-
readonly title: 'Read a site’s cookie';
|
|
720
|
-
readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
|
|
721
|
-
}, {
|
|
722
|
-
readonly scope: 'network.modifyRequestHeaders';
|
|
723
|
-
readonly category: 'network';
|
|
724
|
-
readonly severity: 2;
|
|
725
|
-
readonly unsafe: true;
|
|
726
|
-
readonly title: 'Rewrite request headers to other sites';
|
|
727
|
-
readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
|
|
728
|
-
}];
|
|
729
|
-
type PermissionScope = (typeof PERMISSIONS)[number]['scope'];
|
|
730
|
-
|
|
731
|
-
type PermissionRequest = {
|
|
732
|
-
key: PermissionScope;
|
|
733
|
-
scope?: string;
|
|
734
|
-
reason?: string;
|
|
735
|
-
};
|
|
736
|
-
type PermissionGrant = {
|
|
737
|
-
key: PermissionScope;
|
|
738
|
-
scope: string;
|
|
739
|
-
allow: boolean;
|
|
740
|
-
};
|
|
741
|
-
declare const permissions: {
|
|
742
|
-
request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
|
|
743
|
-
};
|
|
744
|
-
|
|
745
|
-
declare const type: 'videoElement';
|
|
746
|
-
type TimeRangesTuple = [number, number][];
|
|
747
|
-
type VideoElementState = {
|
|
748
|
-
currentTime: number;
|
|
749
|
-
volume: number;
|
|
750
|
-
muted: boolean;
|
|
751
|
-
playbackRate: number;
|
|
752
|
-
src: string;
|
|
753
|
-
loop: boolean;
|
|
754
|
-
autoplay: boolean;
|
|
755
|
-
preload: string;
|
|
756
|
-
poster: string;
|
|
757
|
-
disableRemotePlayback: boolean;
|
|
758
|
-
duration: number;
|
|
759
|
-
paused: boolean;
|
|
760
|
-
ended: boolean;
|
|
761
|
-
seeking: boolean;
|
|
762
|
-
readyState: number;
|
|
763
|
-
currentSrc: string;
|
|
764
|
-
buffered: TimeRangesTuple;
|
|
765
|
-
seekable: TimeRangesTuple;
|
|
766
|
-
error: {
|
|
767
|
-
code: number;
|
|
768
|
-
message: string;
|
|
769
|
-
} | null;
|
|
770
|
-
};
|
|
771
|
-
type RemoteVideoElement = EventTarget & {
|
|
772
|
-
currentTime: number;
|
|
773
|
-
volume: number;
|
|
774
|
-
muted: boolean;
|
|
775
|
-
playbackRate: number;
|
|
776
|
-
src: string;
|
|
777
|
-
loop: boolean;
|
|
778
|
-
autoplay: boolean;
|
|
779
|
-
preload: string;
|
|
780
|
-
poster: string;
|
|
781
|
-
disableRemotePlayback: boolean;
|
|
782
|
-
readonly duration: number;
|
|
783
|
-
readonly paused: boolean;
|
|
784
|
-
readonly ended: boolean;
|
|
785
|
-
readonly seeking: boolean;
|
|
786
|
-
readonly readyState: number;
|
|
787
|
-
readonly currentSrc: string;
|
|
788
|
-
readonly error: MediaError | null;
|
|
789
|
-
readonly buffered: TimeRanges;
|
|
790
|
-
readonly seekable: TimeRanges;
|
|
791
|
-
play(): Promise<void>;
|
|
792
|
-
pause(): void;
|
|
793
|
-
load(): void;
|
|
794
|
-
requestPictureInPicture(): Promise<void>;
|
|
795
|
-
exitPictureInPicture(): Promise<void>;
|
|
796
|
-
readonly HAVE_FUTURE_DATA: 3;
|
|
797
|
-
readonly HAVE_ENOUGH_DATA: 4;
|
|
798
|
-
};
|
|
799
|
-
type BoxedVideoElement = BoxBase<typeof type> & {
|
|
800
|
-
initialState: VideoElementState;
|
|
801
|
-
controller: Capable;
|
|
802
|
-
} & {
|
|
803
|
-
[UnderlyingType]: RemoteVideoElement;
|
|
804
|
-
};
|
|
805
|
-
declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
|
|
806
|
-
declare const isType: (value: unknown) => value is RemoteVideoElement;
|
|
807
|
-
declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
|
|
808
|
-
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
|
|
809
|
-
|
|
810
|
-
type videoElement_BoxedVideoElement = BoxedVideoElement;
|
|
811
|
-
type videoElement_RemoteVideoElement = RemoteVideoElement;
|
|
812
|
-
type videoElement_VideoElementState = VideoElementState;
|
|
813
|
-
declare const videoElement_box: typeof box;
|
|
814
|
-
declare const videoElement_createVideoElementHandle: typeof createVideoElementHandle;
|
|
815
|
-
declare const videoElement_isType: typeof isType;
|
|
816
|
-
declare const videoElement_revive: typeof revive;
|
|
817
|
-
declare const videoElement_type: typeof type;
|
|
818
|
-
declare namespace videoElement {
|
|
819
|
-
export { videoElement_box as box, videoElement_createVideoElementHandle as createVideoElementHandle, videoElement_isType as isType, videoElement_revive as revive, videoElement_type as type };
|
|
820
|
-
export type { videoElement_BoxedVideoElement as BoxedVideoElement, videoElement_RemoteVideoElement as RemoteVideoElement, videoElement_VideoElementState as VideoElementState };
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof videoElement, typeof osra_build_revivables_transfer, typeof osra_build_revivables_identity, typeof osra_build_revivables_array_buffer, typeof osra_build_revivables_date, typeof osra_build_revivables_headers, typeof osra_build_revivables_error, typeof osra_build_revivables_typed_array, typeof osra_build_revivables_promise, typeof osra_build_revivables_function, typeof osra_build_revivables_message_port, typeof osra_build_revivables_readable_stream, typeof osra_build_revivables_writable_stream, typeof osra_build_revivables_abort_signal, typeof osra_build_revivables_response, typeof osra_build_revivables_request, typeof osra_build_revivables_map, typeof osra_build_revivables_set, typeof osra_build_revivables_bigint, typeof osra_build_revivables_symbol, typeof osra_build_revivables_event, typeof osra_build_revivables_async_iterator, {
|
|
824
|
-
readonly type: 'nonFiniteNumber';
|
|
825
|
-
readonly isType: (value: unknown) => value is number;
|
|
826
|
-
readonly box: (value: number, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedNonFiniteNumber | number;
|
|
827
|
-
readonly revive: (value: osra_build_revivables_json_primitives.BoxedNonFiniteNumber, _context: osra.RevivableContext<any>) => number;
|
|
828
|
-
}, {
|
|
829
|
-
readonly type: 'undefined';
|
|
830
|
-
readonly isType: (value: unknown) => value is undefined;
|
|
831
|
-
readonly box: (value: undefined, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedUndefined | undefined;
|
|
832
|
-
readonly revive: (_value: osra_build_revivables_json_primitives.BoxedUndefined, _context: osra.RevivableContext<any>) => undefined;
|
|
833
|
-
}, {
|
|
834
|
-
readonly type: 'clonable';
|
|
835
|
-
readonly capableOnly: true;
|
|
836
|
-
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Clonable;
|
|
837
|
-
readonly box: (value: osra_build_revivables_fallbacks.Clonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
838
|
-
readonly revive: (value: osra_build_revivables_fallbacks.BoxedClonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
839
|
-
}, {
|
|
840
|
-
readonly type: 'transferable';
|
|
841
|
-
readonly capableOnly: true;
|
|
842
|
-
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Transferable;
|
|
843
|
-
readonly box: (value: osra_build_revivables_fallbacks.Transferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
844
|
-
readonly revive: (value: osra_build_revivables_fallbacks.BoxedTransferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
845
|
-
}, typeof osra_build_revivables_event_target, {
|
|
846
|
-
readonly type: 'unclonable';
|
|
847
|
-
readonly isType: (value: unknown) => value is never;
|
|
848
|
-
readonly box: (_value: never, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.BoxedUnclonable;
|
|
849
|
-
readonly revive: (_value: osra_build_revivables_fallbacks.BoxedUnclonable, _context: osra.RevivableContext<any>) => Record<string, never>;
|
|
850
|
-
}];
|
|
851
|
-
|
|
852
|
-
type ExtensionEventMap = {
|
|
853
|
-
statuschange: CustomEvent<{
|
|
854
|
-
enabled: boolean;
|
|
855
|
-
}>;
|
|
856
|
-
};
|
|
857
|
-
declare const extension$1: osra.TypedEventTarget<ExtensionEventMap>;
|
|
858
|
-
declare const isExtensionExposed: () => boolean;
|
|
859
|
-
type MissingExtensionHandler = () => Promise<void>;
|
|
860
|
-
declare const setMissingExtensionHandler: (handler: MissingExtensionHandler | null) => void;
|
|
861
|
-
declare const waitForExtensionExposure: (timeout?: number) => Promise<void>;
|
|
862
|
-
|
|
863
|
-
declare const parseServerMetadataUdpSocketBoundPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
864
|
-
readonly _type: "ServerMetadataUdpSocketBoundPacket";
|
|
865
|
-
readonly offset: number;
|
|
866
|
-
readonly id: number;
|
|
867
|
-
readonly socketId: number;
|
|
868
|
-
readonly localAddressType: 0 | 1;
|
|
869
|
-
readonly localAddress: ip_address.Address4 | ip_address.Address6;
|
|
870
|
-
readonly localPort: number;
|
|
871
|
-
readonly errorLength: number;
|
|
872
|
-
readonly error: string;
|
|
873
|
-
};
|
|
874
|
-
type ServerMetadataUdpSocketBoundPacket = ReturnType<typeof parseServerMetadataUdpSocketBoundPacket>;
|
|
875
|
-
declare const parseServerMetadataUdpSocketUnboundPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
876
|
-
readonly _type: "ServerMetadataUdpSocketUnboundPacket";
|
|
877
|
-
readonly offset: number;
|
|
878
|
-
readonly id: number;
|
|
879
|
-
readonly socketId: number;
|
|
880
|
-
};
|
|
881
|
-
type ServerMetadataUdpSocketUnboundPacket = ReturnType<typeof parseServerMetadataUdpSocketUnboundPacket>;
|
|
882
|
-
declare const parseServerMetadataUdpSocketConnectedPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
883
|
-
readonly _type: "ServerMetadataUdpSocketConnectedPacket";
|
|
884
|
-
readonly offset: number;
|
|
885
|
-
readonly id: number;
|
|
886
|
-
readonly socketId: number;
|
|
887
|
-
readonly remoteAddressType: 0 | 1;
|
|
888
|
-
readonly remoteAddress: ip_address.Address4 | ip_address.Address6;
|
|
889
|
-
readonly remotePort: number;
|
|
890
|
-
readonly errorLength: number;
|
|
891
|
-
readonly error: string;
|
|
892
|
-
};
|
|
893
|
-
type ServerMetadataUdpSocketConnectedPacket = ReturnType<typeof parseServerMetadataUdpSocketConnectedPacket>;
|
|
894
|
-
declare const UDP_OPTION_BROADCAST: 0;
|
|
895
|
-
declare const UDP_OPTION_TTL: 1;
|
|
896
|
-
declare const UDP_OPTION_MULTICAST_TTL_V4: 2;
|
|
897
|
-
declare const UDP_OPTION_MULTICAST_LOOP_V4: 3;
|
|
898
|
-
declare const UDP_OPTION_MULTICAST_LOOP_V6: 4;
|
|
899
|
-
declare const UDP_OPTION_ADD_MEMBERSHIP_V4: 5;
|
|
900
|
-
declare const UDP_OPTION_DROP_MEMBERSHIP_V4: 6;
|
|
901
|
-
declare const UDP_OPTION_ADD_MEMBERSHIP_V6: 7;
|
|
902
|
-
declare const UDP_OPTION_DROP_MEMBERSHIP_V6: 8;
|
|
903
|
-
declare const UDP_OPTION_SEND_BUFFER_SIZE: 9;
|
|
904
|
-
declare const UDP_OPTION_RECV_BUFFER_SIZE: 10;
|
|
905
|
-
type UdpSocketOption = {
|
|
906
|
-
type: typeof UDP_OPTION_BROADCAST;
|
|
907
|
-
value: boolean;
|
|
908
|
-
} | {
|
|
909
|
-
type: typeof UDP_OPTION_TTL;
|
|
910
|
-
value: number;
|
|
911
|
-
} | {
|
|
912
|
-
type: typeof UDP_OPTION_MULTICAST_TTL_V4;
|
|
913
|
-
value: number;
|
|
914
|
-
} | {
|
|
915
|
-
type: typeof UDP_OPTION_MULTICAST_LOOP_V4;
|
|
916
|
-
value: boolean;
|
|
917
|
-
} | {
|
|
918
|
-
type: typeof UDP_OPTION_MULTICAST_LOOP_V6;
|
|
919
|
-
value: boolean;
|
|
920
|
-
} | {
|
|
921
|
-
type: typeof UDP_OPTION_ADD_MEMBERSHIP_V4;
|
|
922
|
-
group: Uint8Array;
|
|
923
|
-
interface: Uint8Array;
|
|
924
|
-
} | {
|
|
925
|
-
type: typeof UDP_OPTION_DROP_MEMBERSHIP_V4;
|
|
926
|
-
group: Uint8Array;
|
|
927
|
-
interface: Uint8Array;
|
|
928
|
-
} | {
|
|
929
|
-
type: typeof UDP_OPTION_ADD_MEMBERSHIP_V6;
|
|
930
|
-
group: Uint8Array;
|
|
931
|
-
ifIndex: number;
|
|
932
|
-
} | {
|
|
933
|
-
type: typeof UDP_OPTION_DROP_MEMBERSHIP_V6;
|
|
934
|
-
group: Uint8Array;
|
|
935
|
-
ifIndex: number;
|
|
936
|
-
} | {
|
|
937
|
-
type: typeof UDP_OPTION_SEND_BUFFER_SIZE;
|
|
938
|
-
value: number;
|
|
939
|
-
} | {
|
|
940
|
-
type: typeof UDP_OPTION_RECV_BUFFER_SIZE;
|
|
941
|
-
value: number;
|
|
942
|
-
};
|
|
943
|
-
declare const parseServerMetadataUdpSetOptionAckPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
944
|
-
_type: "ServerMetadataUdpSetOptionAckPacket";
|
|
945
|
-
offset: number;
|
|
946
|
-
id: number;
|
|
947
|
-
socketId: number;
|
|
948
|
-
errorLength: number;
|
|
949
|
-
error: string;
|
|
950
|
-
};
|
|
951
|
-
type ServerMetadataUdpSetOptionAckPacket = ReturnType<typeof parseServerMetadataUdpSetOptionAckPacket>;
|
|
952
|
-
|
|
953
|
-
declare const parseServerMetadataTcpSocketConnectedPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
954
|
-
readonly _type: "ServerMetadataTcpSocketConnectedPacket";
|
|
955
|
-
readonly offset: number;
|
|
956
|
-
readonly id: number;
|
|
957
|
-
readonly socketId: number;
|
|
958
|
-
readonly localAddressType: 0 | 1;
|
|
959
|
-
readonly localAddress: ip_address.Address4 | ip_address.Address6;
|
|
960
|
-
readonly localPort: number;
|
|
961
|
-
readonly remoteAddressType: 0 | 1;
|
|
962
|
-
readonly remoteAddress: ip_address.Address4 | ip_address.Address6;
|
|
963
|
-
readonly remotePort: number;
|
|
964
|
-
readonly errorLength: number;
|
|
965
|
-
readonly error: string;
|
|
966
|
-
};
|
|
967
|
-
type ServerMetadataTcpSocketConnectedPacket = ReturnType<typeof parseServerMetadataTcpSocketConnectedPacket>;
|
|
968
|
-
declare const parseServerMetadataTcpSocketShutdownPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
969
|
-
readonly _type: "ServerMetadataTcpSocketShutdownPacket";
|
|
970
|
-
readonly offset: number;
|
|
971
|
-
readonly id: number;
|
|
972
|
-
readonly socketId: number;
|
|
973
|
-
};
|
|
974
|
-
type ServerMetadataTcpSocketShutdownPacket = ReturnType<typeof parseServerMetadataTcpSocketShutdownPacket>;
|
|
975
|
-
declare const TCP_OPTION_NODELAY: 0;
|
|
976
|
-
declare const TCP_OPTION_TTL: 1;
|
|
977
|
-
declare const TCP_OPTION_KEEPALIVE: 2;
|
|
978
|
-
declare const TCP_OPTION_SEND_BUFFER_SIZE: 3;
|
|
979
|
-
declare const TCP_OPTION_RECV_BUFFER_SIZE: 4;
|
|
980
|
-
type TcpSocketOption = {
|
|
981
|
-
type: typeof TCP_OPTION_NODELAY;
|
|
982
|
-
value: boolean;
|
|
983
|
-
} | {
|
|
984
|
-
type: typeof TCP_OPTION_TTL;
|
|
985
|
-
value: number;
|
|
986
|
-
} | {
|
|
987
|
-
type: typeof TCP_OPTION_KEEPALIVE;
|
|
988
|
-
enabled: boolean;
|
|
989
|
-
initialDelaySeconds: number;
|
|
990
|
-
} | {
|
|
991
|
-
type: typeof TCP_OPTION_SEND_BUFFER_SIZE;
|
|
992
|
-
value: number;
|
|
993
|
-
} | {
|
|
994
|
-
type: typeof TCP_OPTION_RECV_BUFFER_SIZE;
|
|
995
|
-
value: number;
|
|
996
|
-
};
|
|
997
|
-
declare const parseServerMetadataTcpSetOptionAckPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
998
|
-
_type: "ServerMetadataTcpSetOptionAckPacket";
|
|
999
|
-
offset: number;
|
|
1000
|
-
id: number;
|
|
1001
|
-
socketId: number;
|
|
1002
|
-
errorLength: number;
|
|
1003
|
-
error: string;
|
|
1004
|
-
};
|
|
1005
|
-
type ServerMetadataTcpSetOptionAckPacket = ReturnType<typeof parseServerMetadataTcpSetOptionAckPacket>;
|
|
1006
|
-
|
|
1007
|
-
declare const parseServerMetadataTcpSocketListenerBoundPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
1008
|
-
readonly _type: "ServerMetadataTcpSocketListenerBoundPacket";
|
|
1009
|
-
readonly offset: number;
|
|
1010
|
-
readonly id: number;
|
|
1011
|
-
readonly socketId: number;
|
|
1012
|
-
readonly localAddressType: 0 | 1;
|
|
1013
|
-
readonly localAddress: ip_address.Address4 | ip_address.Address6;
|
|
1014
|
-
readonly localPort: number;
|
|
1015
|
-
readonly errorLength: number;
|
|
1016
|
-
readonly error: string;
|
|
1017
|
-
};
|
|
1018
|
-
type ServerMetadataTcpSocketListenerBoundPacket = ReturnType<typeof parseServerMetadataTcpSocketListenerBoundPacket>;
|
|
1019
|
-
declare const parseServerMetadataTcpSocketListenerUnboundPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
1020
|
-
readonly _type: "ServerMetadataTcpSocketListenerUnboundPacket";
|
|
1021
|
-
readonly offset: number;
|
|
1022
|
-
readonly id: number;
|
|
1023
|
-
readonly socketId: number;
|
|
1024
|
-
};
|
|
1025
|
-
type ServerMetadataTcpSocketListenerUnboundPacket = ReturnType<typeof parseServerMetadataTcpSocketListenerUnboundPacket>;
|
|
1026
|
-
|
|
1027
|
-
declare const parseServerMetadataHeaderPacket: (offset: number, buffer: ArrayBuffer, view: DataView) => {
|
|
1028
|
-
readonly _type: "ServerMetadataHeaderPacket";
|
|
1029
|
-
readonly offset: number;
|
|
1030
|
-
readonly agentLength: number;
|
|
1031
|
-
readonly agent: string;
|
|
1032
|
-
readonly versionLength: number;
|
|
1033
|
-
readonly version: string;
|
|
1034
|
-
};
|
|
1035
|
-
type ServerMetadataHeaderPacket = ReturnType<typeof parseServerMetadataHeaderPacket>;
|
|
1036
|
-
type ServerMetadataPacket = ServerMetadataHeaderPacket | ServerMetadataTcpSocketConnectedPacket | ServerMetadataTcpSocketShutdownPacket | ServerMetadataTcpSocketListenerBoundPacket | ServerMetadataTcpSocketListenerUnboundPacket | ServerMetadataUdpSocketBoundPacket | ServerMetadataUdpSocketUnboundPacket | ServerMetadataUdpSocketConnectedPacket | ServerMetadataTcpSetOptionAckPacket | ServerMetadataUdpSetOptionAckPacket;
|
|
1037
|
-
|
|
1038
|
-
type BidirectionalStreams = {
|
|
1039
|
-
readable: ReadableStream<Uint8Array>;
|
|
1040
|
-
writable: WritableStream<Uint8Array>;
|
|
1041
|
-
};
|
|
1042
|
-
declare const makeWebVPNWebTransport: () => Promise<{
|
|
1043
|
-
webtransport: WebTransport;
|
|
1044
|
-
isClosed: () => boolean;
|
|
1045
|
-
getNewPacketId: () => number;
|
|
1046
|
-
getTcpDataReadableStreamForSocketId: (socketId: number, options?: {
|
|
1047
|
-
signal?: AbortSignal;
|
|
1048
|
-
}) => Promise<BidirectionalStreams>;
|
|
1049
|
-
getUdpDataReadableStreamForSocketId: (socketId: number) => ReadableStream<{
|
|
1050
|
-
readonly _type: "ServerUdpDataPacket";
|
|
1051
|
-
readonly offset: number;
|
|
1052
|
-
readonly socketId: number;
|
|
1053
|
-
readonly remoteAddressType: 0 | 1 | 2;
|
|
1054
|
-
readonly remoteAddress: Address4 | Address6 | undefined;
|
|
1055
|
-
readonly remotePort: number | undefined;
|
|
1056
|
-
readonly dataLength: number;
|
|
1057
|
-
readonly data: ArrayBuffer;
|
|
1058
|
-
}>;
|
|
1059
|
-
claimUdpRawStream: (socketId: number, sink: (packetBytes: Uint8Array) => void) => void;
|
|
1060
|
-
releaseUdpRawStream: (socketId: number) => void;
|
|
1061
|
-
getPacketForId: (packetId: number) => Promise<ServerMetadataPacket>;
|
|
1062
|
-
getMetadataReadableStreamForSocketId: (socketId: number) => ReadableStream<ServerMetadataPacket>;
|
|
1063
|
-
getMetadataReadableStreamForLocalAddress: (address: Address4 | Address6) => ReadableStream<ServerMetadataPacket>;
|
|
1064
|
-
getMetadataReadableStreamForLocalPort: (port: number) => ReadableStream<ServerMetadataPacket>;
|
|
1065
|
-
getMetadataWritableStream: () => WritableStream<Uint8Array<ArrayBufferLike>>;
|
|
1066
|
-
getDatagramWritableStream: () => WritableStream<Uint8Array<ArrayBufferLike>>;
|
|
1067
|
-
presentRateToken: () => Promise<void>;
|
|
1068
|
-
}>;
|
|
1069
|
-
type WebVPNWebTransport = Awaited<ReturnType<typeof makeWebVPNWebTransport>>;
|
|
1070
|
-
|
|
1071
|
-
declare const processTcpSocket: ({ connectedPacket, dataReadableStream, dataWritableStream, metadataReadableStream, metadataWriter, dataStreamAbort, webVpnWebTransport }: {
|
|
1072
|
-
connectedPacket: ServerMetadataTcpSocketConnectedPacket;
|
|
1073
|
-
dataReadableStream: ReadableStream<Uint8Array>;
|
|
1074
|
-
dataWritableStream: WritableStream<Uint8Array>;
|
|
1075
|
-
metadataReadableStream: ReadableStream<ServerMetadataPacket>;
|
|
1076
|
-
metadataWriter: WritableStreamDefaultWriter<Uint8Array>;
|
|
1077
|
-
dataStreamAbort?: AbortController;
|
|
1078
|
-
webVpnWebTransport: WebVPNWebTransport;
|
|
1079
|
-
}) => Promise<{
|
|
1080
|
-
localAddress: string;
|
|
1081
|
-
localFamily: "IPv4" | "IPv6";
|
|
1082
|
-
localPort: number;
|
|
1083
|
-
remoteAddress: string;
|
|
1084
|
-
remoteFamily: "IPv4" | "IPv6";
|
|
1085
|
-
remotePort: number;
|
|
1086
|
-
dataReadableStream: ReadableStream<Uint8Array<ArrayBufferLike>>;
|
|
1087
|
-
dataWritableStream: WritableStream<Uint8Array<ArrayBufferLike>>;
|
|
1088
|
-
end: () => Promise<void>;
|
|
1089
|
-
destroy: () => Promise<void>;
|
|
1090
|
-
destroySoon: () => Promise<void>;
|
|
1091
|
-
resetAndDestroy: () => Promise<void>;
|
|
1092
|
-
setOption: (option: TcpSocketOption) => Promise<void>;
|
|
1093
|
-
}>;
|
|
1094
|
-
type TcpSocketResult = Awaited<ReturnType<typeof processTcpSocket>>;
|
|
1095
|
-
|
|
1096
|
-
type StorageEntry = {
|
|
1097
|
-
path: string;
|
|
1098
|
-
size: number;
|
|
1099
|
-
contentType: string | null;
|
|
1100
|
-
updatedAt: string;
|
|
1101
|
-
};
|
|
1102
|
-
type StorageQuota$1 = {
|
|
1103
|
-
usedBytes: number;
|
|
1104
|
-
limitBytes: number;
|
|
1105
|
-
remaining: number;
|
|
1106
|
-
objects: number;
|
|
1107
|
-
maxObjects: number;
|
|
1108
|
-
};
|
|
1109
|
-
type WriteData$1 = ArrayBuffer | Uint8Array | string;
|
|
1110
|
-
|
|
1111
|
-
type Account = {
|
|
1112
|
-
name: string;
|
|
1113
|
-
image: string | null;
|
|
1114
|
-
premium: boolean;
|
|
1115
|
-
premiumUntil: string | null;
|
|
1116
|
-
};
|
|
1117
|
-
|
|
1118
|
-
type AddressLookupResult = {
|
|
1119
|
-
address: string;
|
|
1120
|
-
family: 0 | 4 | 6;
|
|
1121
|
-
};
|
|
1122
|
-
|
|
1123
|
-
type Quota = {
|
|
1124
|
-
overQuota: boolean;
|
|
1125
|
-
remaining: number;
|
|
1126
|
-
usedBytes: number;
|
|
1127
|
-
limitBytes: number;
|
|
1128
|
-
premium: boolean;
|
|
1129
|
-
bytesPerSecond: number;
|
|
1130
|
-
};
|
|
1131
|
-
|
|
1132
|
-
declare const resolvers: {
|
|
1133
|
-
readonly cloud: {
|
|
1134
|
-
readonly fetch: (input: string | Request | URL, init?: (RequestInit | undefined) & {
|
|
1135
|
-
render?: boolean;
|
|
1136
|
-
}) => Promise<Response>;
|
|
1137
|
-
readonly quota: () => Promise<Quota>;
|
|
1138
|
-
readonly dns: {
|
|
1139
|
-
readonly lookup: <T extends boolean = false>(hostname: string, options?: {
|
|
1140
|
-
all?: T;
|
|
1141
|
-
family?: 0 | 4 | 6;
|
|
1142
|
-
}) => Promise<T extends true ? AddressLookupResult[] : AddressLookupResult | undefined>;
|
|
1143
|
-
};
|
|
1144
|
-
readonly fs: {
|
|
1145
|
-
readonly available: () => Promise<boolean>;
|
|
1146
|
-
readonly list: () => Promise<StorageEntry[]>;
|
|
1147
|
-
readonly quota: () => Promise<StorageQuota$1>;
|
|
1148
|
-
readonly readFile: (path: string) => Promise<Uint8Array>;
|
|
1149
|
-
readonly writeFile: (path: string, data: WriteData$1, contentType: string | null) => Promise<void>;
|
|
1150
|
-
readonly remove: (path: string) => Promise<void>;
|
|
1151
|
-
};
|
|
1152
|
-
readonly webvpn: {
|
|
1153
|
-
readonly tcpSocket: ({ remoteAddress: _remoteAddress, remotePort }: {
|
|
1154
|
-
remoteAddress: string;
|
|
1155
|
-
remotePort: number;
|
|
1156
|
-
}) => Promise<{
|
|
1157
|
-
localAddress: string;
|
|
1158
|
-
localFamily: "IPv4" | "IPv6";
|
|
1159
|
-
localPort: number;
|
|
1160
|
-
remoteAddress: string;
|
|
1161
|
-
remoteFamily: "IPv4" | "IPv6";
|
|
1162
|
-
remotePort: number;
|
|
1163
|
-
dataReadableStream: ReadableStream<Uint8Array<ArrayBufferLike>>;
|
|
1164
|
-
dataWritableStream: WritableStream<Uint8Array<ArrayBufferLike>>;
|
|
1165
|
-
end: () => Promise<void>;
|
|
1166
|
-
destroy: () => Promise<void>;
|
|
1167
|
-
destroySoon: () => Promise<void>;
|
|
1168
|
-
resetAndDestroy: () => Promise<void>;
|
|
1169
|
-
setOption: (option: TcpSocketOption) => Promise<void>;
|
|
1170
|
-
}>;
|
|
1171
|
-
readonly tcpSocketListener: ({ localAddress: _localAddress, localPort, onConnection }: {
|
|
1172
|
-
localAddress: string;
|
|
1173
|
-
localPort: number;
|
|
1174
|
-
onConnection: (connection: TcpSocketResult) => void;
|
|
1175
|
-
}) => Promise<{
|
|
1176
|
-
localAddress: string;
|
|
1177
|
-
localFamily: "IPv4" | "IPv6";
|
|
1178
|
-
localPort: number;
|
|
1179
|
-
close: () => Promise<void>;
|
|
1180
|
-
}>;
|
|
1181
|
-
readonly udpSocket: ({ type, port, address, dataPort }: {
|
|
1182
|
-
type: "udp4" | "udp6";
|
|
1183
|
-
port: number;
|
|
1184
|
-
address: string;
|
|
1185
|
-
dataPort?: boolean;
|
|
1186
|
-
}) => Promise<{
|
|
1187
|
-
socketId: number;
|
|
1188
|
-
dataPort: MessagePort | undefined;
|
|
1189
|
-
localAddress: string;
|
|
1190
|
-
localFamily: "IPv4" | "IPv6";
|
|
1191
|
-
localPort: number;
|
|
1192
|
-
dataReadableStream: ReadableStream<{
|
|
1193
|
-
data: ArrayBuffer;
|
|
1194
|
-
size: number;
|
|
1195
|
-
family: "IPv4" | "IPv6";
|
|
1196
|
-
address: string;
|
|
1197
|
-
port: number;
|
|
1198
|
-
}>;
|
|
1199
|
-
connect: ({ remoteAddress: _remoteAddress, remotePort }: {
|
|
1200
|
-
remoteAddress: string;
|
|
1201
|
-
remotePort: number;
|
|
1202
|
-
}) => Promise<void>;
|
|
1203
|
-
send: ({ message, address: _remoteAddress, port: remotePort }: {
|
|
1204
|
-
message: ArrayBuffer;
|
|
1205
|
-
address?: string;
|
|
1206
|
-
port?: number;
|
|
1207
|
-
}) => Promise<void>;
|
|
1208
|
-
close: () => Promise<void>;
|
|
1209
|
-
setOption: (option: UdpSocketOption) => Promise<void>;
|
|
1210
|
-
}>;
|
|
1211
|
-
};
|
|
1212
|
-
};
|
|
1213
|
-
readonly overlay: {
|
|
1214
|
-
readonly setHost: (push: (state: {
|
|
1215
|
-
modal: boolean;
|
|
1216
|
-
rects: {
|
|
1217
|
-
x: number;
|
|
1218
|
-
y: number;
|
|
1219
|
-
width: number;
|
|
1220
|
-
height: number;
|
|
1221
|
-
}[];
|
|
1222
|
-
}) => unknown) => void;
|
|
1223
|
-
};
|
|
1224
|
-
readonly installPrompt: {
|
|
1225
|
-
readonly show: (reason?: string) => Promise<void>;
|
|
1226
|
-
readonly hide: () => void;
|
|
1227
|
-
};
|
|
1228
|
-
readonly connect: {
|
|
1229
|
-
readonly prompt: (consumerOrigin: string) => Promise<boolean>;
|
|
1230
|
-
};
|
|
1231
|
-
readonly account: {
|
|
1232
|
-
readonly info: () => Promise<Account | null>;
|
|
1233
|
-
readonly login: (consumerOrigin: string) => Promise<boolean>;
|
|
1234
|
-
readonly logout: () => void;
|
|
1235
|
-
readonly onChange: (listener: () => void) => (() => void);
|
|
1236
|
-
};
|
|
1237
|
-
readonly proxyFetch: (input: string | Request | URL, init?: (RequestInit | undefined) & {
|
|
1238
|
-
render?: boolean;
|
|
1239
|
-
}) => Promise<Response>;
|
|
1240
|
-
readonly webVpnTcpSocket: ({ remoteAddress: _remoteAddress, remotePort }: {
|
|
1241
|
-
remoteAddress: string;
|
|
1242
|
-
remotePort: number;
|
|
1243
|
-
}) => Promise<{
|
|
1244
|
-
localAddress: string;
|
|
1245
|
-
localFamily: "IPv4" | "IPv6";
|
|
1246
|
-
localPort: number;
|
|
1247
|
-
remoteAddress: string;
|
|
1248
|
-
remoteFamily: "IPv4" | "IPv6";
|
|
1249
|
-
remotePort: number;
|
|
1250
|
-
dataReadableStream: ReadableStream<Uint8Array<ArrayBufferLike>>;
|
|
1251
|
-
dataWritableStream: WritableStream<Uint8Array<ArrayBufferLike>>;
|
|
1252
|
-
end: () => Promise<void>;
|
|
1253
|
-
destroy: () => Promise<void>;
|
|
1254
|
-
destroySoon: () => Promise<void>;
|
|
1255
|
-
resetAndDestroy: () => Promise<void>;
|
|
1256
|
-
setOption: (option: TcpSocketOption) => Promise<void>;
|
|
1257
|
-
}>;
|
|
1258
|
-
readonly webVpnTcpSocketListener: ({ localAddress: _localAddress, localPort, onConnection }: {
|
|
1259
|
-
localAddress: string;
|
|
1260
|
-
localPort: number;
|
|
1261
|
-
onConnection: (connection: TcpSocketResult) => void;
|
|
1262
|
-
}) => Promise<{
|
|
1263
|
-
localAddress: string;
|
|
1264
|
-
localFamily: "IPv4" | "IPv6";
|
|
1265
|
-
localPort: number;
|
|
1266
|
-
close: () => Promise<void>;
|
|
1267
|
-
}>;
|
|
1268
|
-
readonly webVpnUdpSocket: ({ type, port, address, dataPort }: {
|
|
1269
|
-
type: "udp4" | "udp6";
|
|
1270
|
-
port: number;
|
|
1271
|
-
address: string;
|
|
1272
|
-
dataPort?: boolean;
|
|
1273
|
-
}) => Promise<{
|
|
1274
|
-
socketId: number;
|
|
1275
|
-
dataPort: MessagePort | undefined;
|
|
1276
|
-
localAddress: string;
|
|
1277
|
-
localFamily: "IPv4" | "IPv6";
|
|
1278
|
-
localPort: number;
|
|
1279
|
-
dataReadableStream: ReadableStream<{
|
|
1280
|
-
data: ArrayBuffer;
|
|
1281
|
-
size: number;
|
|
1282
|
-
family: "IPv4" | "IPv6";
|
|
1283
|
-
address: string;
|
|
1284
|
-
port: number;
|
|
1285
|
-
}>;
|
|
1286
|
-
connect: ({ remoteAddress: _remoteAddress, remotePort }: {
|
|
1287
|
-
remoteAddress: string;
|
|
1288
|
-
remotePort: number;
|
|
1289
|
-
}) => Promise<void>;
|
|
1290
|
-
send: ({ message, address: _remoteAddress, port: remotePort }: {
|
|
1291
|
-
message: ArrayBuffer;
|
|
1292
|
-
address?: string;
|
|
1293
|
-
port?: number;
|
|
1294
|
-
}) => Promise<void>;
|
|
1295
|
-
close: () => Promise<void>;
|
|
1296
|
-
setOption: (option: UdpSocketOption) => Promise<void>;
|
|
1297
|
-
}>;
|
|
1298
|
-
readonly dnsLookup: <T extends boolean = false>(hostname: string, options?: {
|
|
1299
|
-
all?: T;
|
|
1300
|
-
family?: 0 | 4 | 6;
|
|
1301
|
-
}) => Promise<T extends true ? AddressLookupResult[] : AddressLookupResult | undefined>;
|
|
1302
|
-
readonly setOverlayHost: (push: (state: {
|
|
1303
|
-
modal: boolean;
|
|
1304
|
-
rects: {
|
|
1305
|
-
x: number;
|
|
1306
|
-
y: number;
|
|
1307
|
-
width: number;
|
|
1308
|
-
height: number;
|
|
1309
|
-
}[];
|
|
1310
|
-
}) => unknown) => void;
|
|
1311
|
-
readonly showInstallPrompt: (reason?: string) => Promise<void>;
|
|
1312
|
-
readonly hideInstallPrompt: () => void;
|
|
1313
|
-
};
|
|
1314
|
-
type Resolvers = typeof resolvers;
|
|
1315
|
-
|
|
1316
|
-
type ProxyFetch = Resolvers['cloud']['fetch'];
|
|
1317
|
-
type FetchParameters = Parameters<ProxyFetch>;
|
|
1318
|
-
declare const cloudFetch: (input: FetchParameters[0], init?: FetchParameters[1]) => Promise<Response>;
|
|
1319
|
-
|
|
1320
|
-
type QuotaStatus = {
|
|
1321
|
-
/** the user has a paid subscription, throttle never applies */
|
|
1322
|
-
premium: boolean;
|
|
1323
|
-
/** today's free-tier volume is spent (true even for premium, see `throttled`) */
|
|
1324
|
-
overQuota: boolean;
|
|
1325
|
-
/** transfers are actually being rate-limited right now (overQuota and not premium) */
|
|
1326
|
-
throttled: boolean;
|
|
1327
|
-
/** bytes egressed through FKN relays today (per anonymized IP), saturates at limitBytes:
|
|
1328
|
-
* consumption past the free-tier volume is private and never reported */
|
|
1329
|
-
usedBytes: number;
|
|
1330
|
-
/** free-tier daily volume before throttling kicks in */
|
|
1331
|
-
limitBytes: number;
|
|
1332
|
-
/** bytes of free-tier volume left today */
|
|
1333
|
-
remainingBytes: number;
|
|
1334
|
-
/** current effective egress rate cap, bytes per second */
|
|
1335
|
-
bytesPerSecond: number;
|
|
1336
|
-
/** current effective egress rate cap, bits per second (for display) */
|
|
1337
|
-
bitsPerSecond: number;
|
|
1338
|
-
};
|
|
1339
|
-
declare const quota$1: () => Promise<QuotaStatus>;
|
|
1340
|
-
|
|
1341
|
-
declare const lookup: <T extends boolean = false>(hostname: string, options?: {
|
|
1342
|
-
all?: T;
|
|
1343
|
-
family?: 0 | 4 | 6;
|
|
1344
|
-
}) => Promise<T extends true ? AddressLookupResult[] : AddressLookupResult | undefined>;
|
|
1345
|
-
|
|
1346
|
-
type dns$1_AddressLookupResult = AddressLookupResult;
|
|
1347
|
-
declare const dns$1_lookup: typeof lookup;
|
|
1348
|
-
declare namespace dns$1 {
|
|
1349
|
-
export { dns$1_lookup as lookup };
|
|
1350
|
-
export type { dns$1_AddressLookupResult as AddressLookupResult };
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
type ReadOptions = BufferEncoding | {
|
|
1354
|
-
encoding?: BufferEncoding | null;
|
|
1355
|
-
flag?: string;
|
|
1356
|
-
} | null | undefined;
|
|
1357
|
-
type WriteOptions = BufferEncoding | {
|
|
1358
|
-
encoding?: BufferEncoding | null;
|
|
1359
|
-
mode?: number;
|
|
1360
|
-
flag?: string;
|
|
1361
|
-
contentType?: string;
|
|
1362
|
-
} | null | undefined;
|
|
1363
|
-
type WriteData = string | Uint8Array | ArrayBuffer | DataView;
|
|
1364
|
-
type MakeOptions = {
|
|
1365
|
-
recursive?: boolean;
|
|
1366
|
-
} | number | null | undefined;
|
|
1367
|
-
type Callback<R> = (error: NodeJS.ErrnoException | null, result?: R) => void;
|
|
1368
|
-
type Stats = {
|
|
1369
|
-
size: number;
|
|
1370
|
-
mtimeMs: number;
|
|
1371
|
-
mtime: Date;
|
|
1372
|
-
atimeMs: number;
|
|
1373
|
-
ctimeMs: number;
|
|
1374
|
-
mode: number;
|
|
1375
|
-
isFile: () => boolean;
|
|
1376
|
-
isDirectory: () => boolean;
|
|
1377
|
-
isSymbolicLink: () => boolean;
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
type FileEntry = {
|
|
1381
|
-
path: string;
|
|
1382
|
-
size: number;
|
|
1383
|
-
contentType: string | null;
|
|
1384
|
-
updatedAt: string;
|
|
1385
|
-
};
|
|
1386
|
-
type StorageQuota = {
|
|
1387
|
-
usedBytes: number;
|
|
1388
|
-
limitBytes: number;
|
|
1389
|
-
remaining: number;
|
|
1390
|
-
objects: number;
|
|
1391
|
-
maxObjects: number;
|
|
1392
|
-
};
|
|
1393
|
-
declare const quota: () => Promise<StorageQuota>;
|
|
1394
|
-
|
|
1395
|
-
declare const available$4: () => Promise<boolean>;
|
|
1396
|
-
declare const readFile$2: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
|
|
1397
|
-
declare const writeFile$2: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
1398
|
-
declare const unlink$2: (path: node_fs.PathLike, callback: Callback<void>) => void;
|
|
1399
|
-
declare const rename$2: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
|
|
1400
|
-
declare const readdir$2: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
|
|
1401
|
-
declare const mkdir$2: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
|
|
1402
|
-
declare const rm$2: (path: node_fs.PathLike, a: {
|
|
1403
|
-
recursive?: boolean;
|
|
1404
|
-
} | Callback<void>, b?: Callback<void>) => void;
|
|
1405
|
-
declare const stat$2: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
|
|
1406
|
-
declare const promises$2: {
|
|
1407
|
-
readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
|
|
1408
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
1409
|
-
unlink: (path: node_fs.PathLike) => Promise<void>;
|
|
1410
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
|
|
1411
|
-
readdir: (path: node_fs.PathLike) => Promise<string[]>;
|
|
1412
|
-
mkdir: (_path?: node_fs.PathLike, _options?: MakeOptions) => Promise<void>;
|
|
1413
|
-
rm: (path: node_fs.PathLike, options?: {
|
|
1414
|
-
recursive?: boolean;
|
|
1415
|
-
}) => Promise<void>;
|
|
1416
|
-
rmdir: (path: node_fs.PathLike, options?: {
|
|
1417
|
-
recursive?: boolean;
|
|
1418
|
-
}) => Promise<void>;
|
|
1419
|
-
stat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
1420
|
-
lstat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
1421
|
-
access: (path: node_fs.PathLike) => Promise<void>;
|
|
1422
|
-
};
|
|
1423
|
-
|
|
1424
|
-
type fs$2_FileEntry = FileEntry;
|
|
1425
|
-
type fs$2_Stats = Stats;
|
|
1426
|
-
type fs$2_StorageQuota = StorageQuota;
|
|
1427
|
-
declare const fs$2_quota: typeof quota;
|
|
1428
|
-
declare namespace fs$2 {
|
|
1429
|
-
export { available$4 as available, mkdir$2 as mkdir, promises$2 as promises, fs$2_quota as quota, readFile$2 as readFile, readdir$2 as readdir, rename$2 as rename, rm$2 as rm, stat$2 as stat, unlink$2 as unlink, writeFile$2 as writeFile };
|
|
1430
|
-
export type { fs$2_FileEntry as FileEntry, fs$2_Stats as Stats, fs$2_StorageQuota as StorageQuota };
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
declare const isIPv4: (input: string) => boolean;
|
|
1434
|
-
declare const isIPv6: (input: string) => boolean;
|
|
1435
|
-
declare const isIP: (input: string) => 0 | 4 | 6;
|
|
1436
|
-
|
|
1437
|
-
type WebVpnTcpSocket = Resolvers['cloud']['webvpn']['tcpSocket'];
|
|
1438
|
-
type WebVpnTcpSocketListener = Resolvers['cloud']['webvpn']['tcpSocketListener'];
|
|
1439
|
-
|
|
1440
|
-
declare class Socket$1 extends Stream.Duplex implements Socket$2 {
|
|
1441
|
-
_localAddress?: {
|
|
1442
|
-
address: string;
|
|
1443
|
-
family: string;
|
|
1444
|
-
port: number;
|
|
1445
|
-
};
|
|
1446
|
-
_remoteAddress?: {
|
|
1447
|
-
address: string;
|
|
1448
|
-
family: string;
|
|
1449
|
-
port: number;
|
|
1450
|
-
};
|
|
1451
|
-
_webVPNTcpSocketPromise?: Promise<(Awaited<ReturnType<WebVpnTcpSocket>> & {
|
|
1452
|
-
reader: ReadableStreamDefaultReader<Uint8Array>;
|
|
1453
|
-
writer: WritableStreamDefaultWriter<Uint8Array>;
|
|
1454
|
-
}) | undefined>;
|
|
1455
|
-
constructor(options?: SocketConstructorOpts & DuplexOptions & {
|
|
1456
|
-
connection?: ReturnType<WebVpnTcpSocket>;
|
|
1457
|
-
});
|
|
1458
|
-
__webvpn_tcp_socket_init__(connection: ReturnType<WebVpnTcpSocket>): Promise<({
|
|
1459
|
-
localAddress: string;
|
|
1460
|
-
localFamily: "IPv4" | "IPv6";
|
|
1461
|
-
localPort: number;
|
|
1462
|
-
remoteAddress: string;
|
|
1463
|
-
remoteFamily: "IPv4" | "IPv6";
|
|
1464
|
-
remotePort: number;
|
|
1465
|
-
dataReadableStream: ReadableStream<Uint8Array<ArrayBufferLike>>;
|
|
1466
|
-
dataWritableStream: WritableStream<Uint8Array<ArrayBufferLike>>;
|
|
1467
|
-
end: () => Promise<void>;
|
|
1468
|
-
destroy: () => Promise<void>;
|
|
1469
|
-
destroySoon: () => Promise<void>;
|
|
1470
|
-
resetAndDestroy: () => Promise<void>;
|
|
1471
|
-
setOption: (option: TcpSocketOption) => Promise<void>;
|
|
1472
|
-
} & {
|
|
1473
|
-
reader: ReadableStreamDefaultReader<Uint8Array>;
|
|
1474
|
-
writer: WritableStreamDefaultWriter<Uint8Array>;
|
|
1475
|
-
}) | undefined>;
|
|
1476
|
-
/** STREAM IMPL */
|
|
1477
|
-
_read(size: number): void;
|
|
1478
|
-
_write(chunk: Uint8Array, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
1479
|
-
/** SOCKET IMPL */
|
|
1480
|
-
connect(options: SocketConnectOpts, connectionListener?: (() => void) | undefined): this;
|
|
1481
|
-
connect(port: number, host: string, connectionListener?: (() => void) | undefined): this;
|
|
1482
|
-
connect(port: number, connectionListener?: (() => void) | undefined): this;
|
|
1483
|
-
connect(path: string, connectionListener?: (() => void) | undefined): this;
|
|
1484
|
-
connect(port: unknown, host?: unknown, connectionListener?: unknown): this;
|
|
1485
|
-
_end(chunk: any, cb?: () => void): this;
|
|
1486
|
-
_end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
|
|
1487
|
-
_destroy(error?: Error | null | undefined): this;
|
|
1488
|
-
destroySoon(): void;
|
|
1489
|
-
resetAndDestroy(): this;
|
|
1490
|
-
_timeoutMs?: number;
|
|
1491
|
-
_timeoutTimer?: ReturnType<typeof setTimeout>;
|
|
1492
|
-
_restartTimeoutTimer(): void;
|
|
1493
|
-
setTimeout(timeout: number, callback?: (() => void) | undefined): this;
|
|
1494
|
-
setNoDelay(noDelay?: boolean | undefined): this;
|
|
1495
|
-
setKeepAlive(enable?: boolean | undefined, initialDelay?: number | undefined): this;
|
|
1496
|
-
setSendBufferSize(size: number): this;
|
|
1497
|
-
setRecvBufferSize(size: number): this;
|
|
1498
|
-
_typeOfService?: number;
|
|
1499
|
-
getTypeOfService(): number;
|
|
1500
|
-
setTypeOfService(tos: number): this;
|
|
1501
|
-
_setTcpOption(option: TcpSocketOption): void;
|
|
1502
|
-
write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
|
|
1503
|
-
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
|
|
1504
|
-
address(): AddressInfo | {};
|
|
1505
|
-
unref(): this;
|
|
1506
|
-
ref(): this;
|
|
1507
|
-
autoSelectFamilyAttemptedAddresses: string[];
|
|
1508
|
-
bufferSize: number;
|
|
1509
|
-
bytesRead: number;
|
|
1510
|
-
bytesWritten: number;
|
|
1511
|
-
connecting: boolean;
|
|
1512
|
-
pending: boolean;
|
|
1513
|
-
get localAddress(): string;
|
|
1514
|
-
get localPort(): number;
|
|
1515
|
-
get localFamily(): string;
|
|
1516
|
-
readyState: 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
|
|
1517
|
-
get remoteAddress(): string;
|
|
1518
|
-
get remotePort(): number;
|
|
1519
|
-
get remoteFamily(): string;
|
|
1520
|
-
timeout?: number | undefined;
|
|
1521
|
-
}
|
|
1522
|
-
interface EventEmitterOptions$1 {
|
|
1523
|
-
/**
|
|
1524
|
-
* Enables automatic capturing of promise rejection.
|
|
1525
|
-
*/
|
|
1526
|
-
captureRejections?: boolean | undefined;
|
|
1527
|
-
}
|
|
1528
|
-
declare class Server$1 extends EventEmitter implements Server$2 {
|
|
1529
|
-
_localAddress?: {
|
|
1530
|
-
address: string;
|
|
1531
|
-
family: string;
|
|
1532
|
-
port: number;
|
|
1533
|
-
};
|
|
1534
|
-
_webVPNTcpSocketListenerPromise?: Promise<Awaited<ReturnType<WebVpnTcpSocketListener>> | undefined>;
|
|
1535
|
-
constructor(options?: ServerOpts & EventEmitterOptions$1 & {
|
|
1536
|
-
connection?: ReturnType<WebVpnTcpSocketListener>;
|
|
1537
|
-
}, connectionListener?: (socket: Socket$1) => void);
|
|
1538
|
-
__webvpn_tcp_socket_listener_init__(connection: ReturnType<WebVpnTcpSocketListener>): Promise<{
|
|
1539
|
-
localAddress: string;
|
|
1540
|
-
localFamily: "IPv4" | "IPv6";
|
|
1541
|
-
localPort: number;
|
|
1542
|
-
close: () => Promise<void>;
|
|
1543
|
-
} | undefined>;
|
|
1544
|
-
listen(port?: number | undefined, hostname?: string | undefined, backlog?: number | undefined, listeningListener?: (() => void) | undefined): this;
|
|
1545
|
-
listen(port?: number | undefined, hostname?: string | undefined, listeningListener?: (() => void) | undefined): this;
|
|
1546
|
-
listen(port?: number | undefined, backlog?: number | undefined, listeningListener?: (() => void) | undefined): this;
|
|
1547
|
-
listen(port?: number | undefined, listeningListener?: (() => void) | undefined): this;
|
|
1548
|
-
listen(path: string, backlog?: number | undefined, listeningListener?: (() => void) | undefined): this;
|
|
1549
|
-
listen(path: string, listeningListener?: (() => void) | undefined): this;
|
|
1550
|
-
listen(options: ListenOptions, listeningListener?: (() => void) | undefined): this;
|
|
1551
|
-
listen(handle: any, backlog?: number | undefined, listeningListener?: (() => void) | undefined): this;
|
|
1552
|
-
listen(handle: any, listeningListener?: (() => void) | undefined): this;
|
|
1553
|
-
listen(port?: unknown, hostname?: unknown, backlog?: unknown, listeningListener?: unknown): this;
|
|
1554
|
-
close(callback?: ((err?: Error | undefined) => void) | undefined): this;
|
|
1555
|
-
address(): string | AddressInfo | null;
|
|
1556
|
-
getConnections(cb: (error: Error | null, count: number) => void): this;
|
|
1557
|
-
ref(): this;
|
|
1558
|
-
unref(): this;
|
|
1559
|
-
maxConnections: number;
|
|
1560
|
-
connections: number;
|
|
1561
|
-
listening: boolean;
|
|
1562
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
1563
|
-
}
|
|
1564
|
-
declare const connect$1: (options: SocketConnectOpts, connectionListener?: () => void) => Socket$1;
|
|
1565
|
-
declare const createConnection: (options: SocketConnectOpts, connectionListener?: () => void) => Socket$1;
|
|
1566
|
-
declare const createServer$1: (options?: ServerOpts | ((socket: Socket$1) => void), connectionListener?: (socket: Socket$1) => void) => Server$1;
|
|
1567
|
-
|
|
1568
|
-
declare const _default$3: {
|
|
1569
|
-
Socket: typeof Socket$1;
|
|
1570
|
-
Server: typeof Server$1;
|
|
1571
|
-
connect: (options: SocketConnectOpts, connectionListener?: () => void) => Socket$1;
|
|
1572
|
-
createConnection: (options: SocketConnectOpts, connectionListener?: () => void) => Socket$1;
|
|
1573
|
-
createServer: (options?: ServerOpts | ((socket: Socket$1) => void), connectionListener?: (socket: Socket$1) => void) => Server$1;
|
|
1574
|
-
isIP: (input: string) => 0 | 4 | 6;
|
|
1575
|
-
isIPv4: (input: string) => boolean;
|
|
1576
|
-
isIPv6: (input: string) => boolean;
|
|
1577
|
-
};
|
|
1578
|
-
|
|
1579
|
-
declare const net$1_createConnection: typeof createConnection;
|
|
1580
|
-
declare const net$1_isIP: typeof isIP;
|
|
1581
|
-
declare const net$1_isIPv4: typeof isIPv4;
|
|
1582
|
-
declare const net$1_isIPv6: typeof isIPv6;
|
|
1583
|
-
declare namespace net$1 {
|
|
1584
|
-
export {
|
|
1585
|
-
Server$1 as Server,
|
|
1586
|
-
Socket$1 as Socket,
|
|
1587
|
-
_default$3 as _default,
|
|
1588
|
-
connect$1 as connect,
|
|
1589
|
-
net$1_createConnection as createConnection,
|
|
1590
|
-
createServer$1 as createServer,
|
|
1591
|
-
_default$3 as default,
|
|
1592
|
-
net$1_isIP as isIP,
|
|
1593
|
-
net$1_isIPv4 as isIPv4,
|
|
1594
|
-
net$1_isIPv6 as isIPv6,
|
|
1595
|
-
};
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
type WebVpnUdpSocket = Resolvers['cloud']['webvpn']['udpSocket'];
|
|
1599
|
-
interface EventEmitterOptions {
|
|
1600
|
-
/**
|
|
1601
|
-
* Enables automatic capturing of promise rejection.
|
|
1602
|
-
*/
|
|
1603
|
-
captureRejections?: boolean | undefined;
|
|
1604
|
-
}
|
|
1605
|
-
declare class Socket extends EventEmitter implements Socket$3 {
|
|
1606
|
-
_type: 'udp4' | 'udp6';
|
|
1607
|
-
_localAddress?: {
|
|
1608
|
-
address: string;
|
|
1609
|
-
family: string;
|
|
1610
|
-
port: number;
|
|
1611
|
-
};
|
|
1612
|
-
_remoteAddress?: {
|
|
1613
|
-
address: string;
|
|
1614
|
-
family: string;
|
|
1615
|
-
port: number;
|
|
1616
|
-
};
|
|
1617
|
-
_webVPNUdpSocketPromise?: Promise<Awaited<ReturnType<WebVpnUdpSocket>> | undefined>;
|
|
1618
|
-
_dataPort?: MessagePort;
|
|
1619
|
-
_socketId?: number;
|
|
1620
|
-
_sendQueue: Uint8Array[];
|
|
1621
|
-
_sendQueueBytes: number;
|
|
1622
|
-
_sendFlushScheduled: boolean;
|
|
1623
|
-
_peerTailCache: Map<string, Uint8Array<ArrayBufferLike>>;
|
|
1624
|
-
constructor(options: SocketOptions & EventEmitterOptions & {
|
|
1625
|
-
connection?: ReturnType<WebVpnUdpSocket>;
|
|
1626
|
-
});
|
|
1627
|
-
_lastRecvBufferSize: number;
|
|
1628
|
-
_lastSendBufferSize: number;
|
|
1629
|
-
_lastTtl: number;
|
|
1630
|
-
_lastMulticastTtl: number;
|
|
1631
|
-
_lastMulticastLoopback: boolean;
|
|
1632
|
-
_setUdpOption(option: UdpSocketOption): void;
|
|
1633
|
-
_onDataPortBatch(buffer: ArrayBuffer): void;
|
|
1634
|
-
_peerTail(address: string | undefined, port: number | undefined): Uint8Array;
|
|
1635
|
-
_portSend(message: Uint8Array, address: string | undefined, port: number | undefined): void;
|
|
1636
|
-
addMembership(multicastAddress: string, multicastInterface?: string | undefined): void;
|
|
1637
|
-
address(): AddressInfo;
|
|
1638
|
-
bind(port?: number | undefined, address?: string | undefined, callback?: (() => void) | undefined): this;
|
|
1639
|
-
bind(port?: number | undefined, callback?: (() => void) | undefined): this;
|
|
1640
|
-
bind(callback?: (() => void) | undefined): this;
|
|
1641
|
-
bind(options: BindOptions, callback?: (() => void) | undefined): this;
|
|
1642
|
-
close(callback?: (() => void) | undefined): this;
|
|
1643
|
-
connect(port: number, address?: string, callback?: () => void): void;
|
|
1644
|
-
connect(port: number, callback: () => void): void;
|
|
1645
|
-
disconnect(): void;
|
|
1646
|
-
dropMembership(multicastAddress: string, multicastInterface?: string | undefined): void;
|
|
1647
|
-
getRecvBufferSize(): number;
|
|
1648
|
-
getSendBufferSize(): number;
|
|
1649
|
-
getSendQueueSize(): number;
|
|
1650
|
-
getSendQueueCount(): number;
|
|
1651
|
-
ref(): this;
|
|
1652
|
-
remoteAddress(): AddressInfo;
|
|
1653
|
-
send(msg: string | readonly any[] | Uint8Array, port?: number | undefined, address?: string | undefined, callback?: ((error: Error | null, bytes: number) => void) | undefined): void;
|
|
1654
|
-
send(msg: string | readonly any[] | Uint8Array, port?: number | undefined, callback?: ((error: Error | null, bytes: number) => void) | undefined): void;
|
|
1655
|
-
send(msg: string | readonly any[] | Uint8Array, callback?: ((error: Error | null, bytes: number) => void) | undefined): void;
|
|
1656
|
-
send(msg: string | Uint8Array, offset: number, length: number, port?: number | undefined, address?: string | undefined, callback?: ((error: Error | null, bytes: number) => void) | undefined): void;
|
|
1657
|
-
send(msg: string | Uint8Array, offset: number, length: number, port?: number | undefined, callback?: ((error: Error | null, bytes: number) => void) | undefined): void;
|
|
1658
|
-
send(msg: string | Uint8Array, offset: number, length: number, callback?: ((error: Error | null, bytes: number) => void) | undefined): void;
|
|
1659
|
-
send(msg: unknown, offset?: unknown, length?: unknown, port?: unknown, address?: unknown, callback?: unknown): void;
|
|
1660
|
-
setBroadcast(flag: boolean): void;
|
|
1661
|
-
setMulticastInterface(multicastInterface: string): void;
|
|
1662
|
-
setMulticastLoopback(flag: boolean): boolean;
|
|
1663
|
-
setMulticastTTL(ttl: number): number;
|
|
1664
|
-
setRecvBufferSize(size: number): void;
|
|
1665
|
-
setSendBufferSize(size: number): void;
|
|
1666
|
-
setTTL(ttl: number): number;
|
|
1667
|
-
unref(): this;
|
|
1668
|
-
addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
|
|
1669
|
-
dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string | undefined): void;
|
|
1670
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
1671
|
-
}
|
|
1672
|
-
declare const createSocket: (options: SocketType | SocketOptions, callback?: (msg: Buffer$1, rinfo: RemoteInfo) => void) => Socket;
|
|
1673
|
-
declare const _default$2: {
|
|
1674
|
-
Socket: typeof Socket;
|
|
1675
|
-
createSocket: (options: SocketType | SocketOptions, callback?: (msg: Buffer$1, rinfo: RemoteInfo) => void) => Socket;
|
|
1676
|
-
};
|
|
1677
|
-
|
|
1678
|
-
type dgram$1_Socket = Socket;
|
|
1679
|
-
declare const dgram$1_Socket: typeof Socket;
|
|
1680
|
-
declare const dgram$1_createSocket: typeof createSocket;
|
|
1681
|
-
declare namespace dgram$1 {
|
|
1682
|
-
export {
|
|
1683
|
-
dgram$1_Socket as Socket,
|
|
1684
|
-
dgram$1_createSocket as createSocket,
|
|
1685
|
-
_default$2 as default,
|
|
1686
|
-
};
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
declare const METHODS: string[];
|
|
1690
|
-
declare const STATUS_CODES: Record<number, string>;
|
|
1691
|
-
interface ParsedHead {
|
|
1692
|
-
/** request only */
|
|
1693
|
-
method?: string;
|
|
1694
|
-
/** request only */
|
|
1695
|
-
url?: string;
|
|
1696
|
-
/** response only */
|
|
1697
|
-
statusCode?: number;
|
|
1698
|
-
/** response only */
|
|
1699
|
-
statusMessage?: string;
|
|
1700
|
-
httpVersionMajor: number;
|
|
1701
|
-
httpVersionMinor: number;
|
|
1702
|
-
httpVersion: string;
|
|
1703
|
-
headers: IncomingHttpHeaders;
|
|
1704
|
-
rawHeaders: string[];
|
|
1705
|
-
}
|
|
1706
|
-
interface ParserHandlers {
|
|
1707
|
-
onHeaders: (head: ParsedHead) => void;
|
|
1708
|
-
onBody: (chunk: Uint8Array) => void;
|
|
1709
|
-
onComplete: () => void;
|
|
1710
|
-
}
|
|
1711
|
-
declare class HTTPParser {
|
|
1712
|
-
private readonly mode;
|
|
1713
|
-
private readonly handlers;
|
|
1714
|
-
private buf;
|
|
1715
|
-
private state;
|
|
1716
|
-
private framing;
|
|
1717
|
-
private bodyRemaining;
|
|
1718
|
-
private chunkState;
|
|
1719
|
-
skipBody: boolean;
|
|
1720
|
-
constructor(mode: 'request' | 'response', handlers: ParserHandlers);
|
|
1721
|
-
execute(chunk: Uint8Array): void;
|
|
1722
|
-
finish(): void;
|
|
1723
|
-
private reset;
|
|
1724
|
-
private parseHead;
|
|
1725
|
-
private applyVersion;
|
|
1726
|
-
private addHeader;
|
|
1727
|
-
private setupBody;
|
|
1728
|
-
private consumeBody;
|
|
1729
|
-
private consumeChunked;
|
|
1730
|
-
}
|
|
1731
|
-
declare class IncomingMessage extends Stream.Readable {
|
|
1732
|
-
httpVersion: string;
|
|
1733
|
-
httpVersionMajor: number;
|
|
1734
|
-
httpVersionMinor: number;
|
|
1735
|
-
headers: IncomingHttpHeaders;
|
|
1736
|
-
rawHeaders: string[];
|
|
1737
|
-
trailers: Record<string, string>;
|
|
1738
|
-
rawTrailers: string[];
|
|
1739
|
-
/** request only */
|
|
1740
|
-
method?: string;
|
|
1741
|
-
/** request only */
|
|
1742
|
-
url?: string;
|
|
1743
|
-
/** response only */
|
|
1744
|
-
statusCode?: number;
|
|
1745
|
-
/** response only */
|
|
1746
|
-
statusMessage?: string;
|
|
1747
|
-
complete: boolean;
|
|
1748
|
-
socket: Socket$1;
|
|
1749
|
-
constructor(socket: Socket$1);
|
|
1750
|
-
get connection(): Socket$1;
|
|
1751
|
-
_applyHead(head: ParsedHead): void;
|
|
1752
|
-
_read(): void;
|
|
1753
|
-
setTimeout(msecs: number, callback?: () => void): this;
|
|
1754
|
-
}
|
|
1755
|
-
declare abstract class OutgoingMessage extends Stream.Writable {
|
|
1756
|
-
private _headerStore;
|
|
1757
|
-
headersSent: boolean;
|
|
1758
|
-
chunkedEncoding: boolean;
|
|
1759
|
-
finished: boolean;
|
|
1760
|
-
protected _bodyWritten: boolean;
|
|
1761
|
-
abstract socket: Socket$1 | null;
|
|
1762
|
-
setHeader(name: string, value: number | string | readonly string[]): this;
|
|
1763
|
-
getHeader(name: string): number | string | string[] | undefined;
|
|
1764
|
-
getHeaderNames(): string[];
|
|
1765
|
-
getHeaders(): OutgoingHttpHeaders;
|
|
1766
|
-
hasHeader(name: string): boolean;
|
|
1767
|
-
removeHeader(name: string): void;
|
|
1768
|
-
protected _storeHeader(startLine: string): string;
|
|
1769
|
-
protected abstract _shouldSendBody(): boolean;
|
|
1770
|
-
protected abstract _implicitHeader(): void;
|
|
1771
|
-
protected _writeToSocket(data: Buffer$1, callback: (error?: Error | null) => void): void;
|
|
1772
|
-
write(chunk: unknown, encoding?: BufferEncoding | ((error: Error | null | undefined) => void), callback?: (error: Error | null | undefined) => void): boolean;
|
|
1773
|
-
_write(chunk: Buffer$1, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
1774
|
-
_final(callback: (error?: Error | null) => void): void;
|
|
1775
|
-
end(chunk?: unknown, encoding?: BufferEncoding | (() => void), callback?: () => void): this;
|
|
1776
|
-
protected _headBlock?: string;
|
|
1777
|
-
}
|
|
1778
|
-
interface ServerResponseOptions {
|
|
1779
|
-
req: IncomingMessage;
|
|
1780
|
-
}
|
|
1781
|
-
declare class ServerResponse extends OutgoingMessage {
|
|
1782
|
-
statusCode: number;
|
|
1783
|
-
statusMessage?: string;
|
|
1784
|
-
private _writeHeadCalled;
|
|
1785
|
-
sendDate: boolean;
|
|
1786
|
-
req: IncomingMessage;
|
|
1787
|
-
socket: Socket$1 | null;
|
|
1788
|
-
_keepAlive: boolean;
|
|
1789
|
-
constructor(req: IncomingMessage);
|
|
1790
|
-
protected _shouldSendBody(): boolean;
|
|
1791
|
-
writeHead(statusCode: number, statusMessage?: string | OutgoingHttpHeaders | OutgoingHttpHeaders[keyof OutgoingHttpHeaders][], headers?: OutgoingHttpHeaders): this;
|
|
1792
|
-
private _appendHeader;
|
|
1793
|
-
protected _implicitHeader(): void;
|
|
1794
|
-
writeContinue(): void;
|
|
1795
|
-
setTimeout(msecs: number, callback?: () => void): this;
|
|
1796
|
-
}
|
|
1797
|
-
interface ClientRequestArgs extends RequestOptions {
|
|
1798
|
-
host?: string;
|
|
1799
|
-
hostname?: string;
|
|
1800
|
-
port?: number | string;
|
|
1801
|
-
path?: string;
|
|
1802
|
-
}
|
|
1803
|
-
declare class ClientRequest extends OutgoingMessage {
|
|
1804
|
-
method: string;
|
|
1805
|
-
path: string;
|
|
1806
|
-
host: string;
|
|
1807
|
-
protocol: string;
|
|
1808
|
-
socket: Socket$1;
|
|
1809
|
-
/** alias retained for Node compatibility */
|
|
1810
|
-
get connection(): Socket$1;
|
|
1811
|
-
res: IncomingMessage | null;
|
|
1812
|
-
aborted: boolean;
|
|
1813
|
-
private _aborted;
|
|
1814
|
-
constructor(options: ClientRequestArgs, callback?: (res: IncomingMessage) => void);
|
|
1815
|
-
protected _shouldSendBody(): boolean;
|
|
1816
|
-
protected _implicitHeader(): void;
|
|
1817
|
-
private _attachResponseParser;
|
|
1818
|
-
abort(): void;
|
|
1819
|
-
destroy(error?: Error): this;
|
|
1820
|
-
end(chunk?: unknown, encoding?: unknown, callback?: unknown): this;
|
|
1821
|
-
protected _writeToSocket(data: Buffer$1, callback: (error?: Error | null) => void): void;
|
|
1822
|
-
setTimeout(timeout: number, callback?: () => void): this;
|
|
1823
|
-
setNoDelay(noDelay?: boolean): void;
|
|
1824
|
-
setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
|
|
1825
|
-
}
|
|
1826
|
-
type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
|
|
1827
|
-
declare class ServerImpl extends Server$1 {
|
|
1828
|
-
constructor(options?: object | RequestListener, requestListener?: RequestListener);
|
|
1829
|
-
private _handleConnection;
|
|
1830
|
-
}
|
|
1831
|
-
declare const Server: typeof ServerImpl;
|
|
1832
|
-
type Server = ServerImpl;
|
|
1833
|
-
declare class Agent {
|
|
1834
|
-
maxSockets: number;
|
|
1835
|
-
maxFreeSockets: number;
|
|
1836
|
-
keepAlive: boolean;
|
|
1837
|
-
options: Record<string, unknown>;
|
|
1838
|
-
constructor(options?: Record<string, unknown>);
|
|
1839
|
-
getName(options?: {
|
|
1840
|
-
host?: string;
|
|
1841
|
-
port?: number;
|
|
1842
|
-
localAddress?: string;
|
|
1843
|
-
}): string;
|
|
1844
|
-
destroy(): void;
|
|
1845
|
-
}
|
|
1846
|
-
declare const globalAgent: Agent;
|
|
1847
|
-
declare const request: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
|
|
1848
|
-
declare const get: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
|
|
1849
|
-
declare const createServer: (options?: object | RequestListener, requestListener?: RequestListener) => Server;
|
|
1850
|
-
declare const _default$1: {
|
|
1851
|
-
METHODS: string[];
|
|
1852
|
-
STATUS_CODES: Record<number, string>;
|
|
1853
|
-
Agent: typeof Agent;
|
|
1854
|
-
globalAgent: Agent;
|
|
1855
|
-
Server: typeof ServerImpl;
|
|
1856
|
-
ServerResponse: typeof ServerResponse;
|
|
1857
|
-
IncomingMessage: typeof IncomingMessage;
|
|
1858
|
-
ClientRequest: typeof ClientRequest;
|
|
1859
|
-
OutgoingMessage: typeof OutgoingMessage;
|
|
1860
|
-
createServer: (options?: object | RequestListener, requestListener?: RequestListener) => Server;
|
|
1861
|
-
request: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
|
|
1862
|
-
get: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
|
|
1863
|
-
};
|
|
1864
|
-
|
|
1865
|
-
type http_Agent = Agent;
|
|
1866
|
-
declare const http_Agent: typeof Agent;
|
|
1867
|
-
type http_ClientRequest = ClientRequest;
|
|
1868
|
-
declare const http_ClientRequest: typeof ClientRequest;
|
|
1869
|
-
type http_ClientRequestArgs = ClientRequestArgs;
|
|
1870
|
-
type http_HTTPParser = HTTPParser;
|
|
1871
|
-
declare const http_HTTPParser: typeof HTTPParser;
|
|
1872
|
-
type http_IncomingMessage = IncomingMessage;
|
|
1873
|
-
declare const http_IncomingMessage: typeof IncomingMessage;
|
|
1874
|
-
declare const http_METHODS: typeof METHODS;
|
|
1875
|
-
type http_ParsedHead = ParsedHead;
|
|
1876
|
-
type http_RequestListener = RequestListener;
|
|
1877
|
-
declare const http_STATUS_CODES: typeof STATUS_CODES;
|
|
1878
|
-
type http_Server = Server;
|
|
1879
|
-
type http_ServerResponse = ServerResponse;
|
|
1880
|
-
declare const http_ServerResponse: typeof ServerResponse;
|
|
1881
|
-
type http_ServerResponseOptions = ServerResponseOptions;
|
|
1882
|
-
declare const http_createServer: typeof createServer;
|
|
1883
|
-
declare const http_get: typeof get;
|
|
1884
|
-
declare const http_globalAgent: typeof globalAgent;
|
|
1885
|
-
declare const http_request: typeof request;
|
|
1886
|
-
declare namespace http {
|
|
1887
|
-
export { http_Agent as Agent, http_ClientRequest as ClientRequest, http_HTTPParser as HTTPParser, http_IncomingMessage as IncomingMessage, http_METHODS as METHODS, http_STATUS_CODES as STATUS_CODES, http_ServerResponse as ServerResponse, _default$1 as _default, http_createServer as createServer, _default$1 as default, http_get as get, http_globalAgent as globalAgent, http_request as request };
|
|
1888
|
-
export type { http_ClientRequestArgs as ClientRequestArgs, http_ParsedHead as ParsedHead, http_RequestListener as RequestListener, http_Server as Server, http_ServerResponseOptions as ServerResponseOptions };
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
declare const available$3: () => boolean;
|
|
1892
|
-
|
|
1893
|
-
type cloud_QuotaStatus = QuotaStatus;
|
|
1894
|
-
declare const cloud_http: typeof http;
|
|
1895
|
-
declare namespace cloud {
|
|
1896
|
-
export { available$3 as available, dgram$1 as dgram, dns$1 as dns, cloudFetch as fetch, fs$2 as fs, cloud_http as http, net$1 as net, quota$1 as quota };
|
|
1897
|
-
export type { cloud_QuotaStatus as QuotaStatus };
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
declare const promptInstall: (reason?: string) => Promise<boolean>;
|
|
1901
|
-
|
|
1902
|
-
declare const isExtensionAvailable: () => boolean;
|
|
1903
|
-
declare const fetch$1: (input: RequestInfo | URL, init?: RequestInit & {
|
|
1904
|
-
reason?: string;
|
|
1905
|
-
render?: boolean;
|
|
1906
|
-
}) => Promise<Response>;
|
|
1907
|
-
|
|
1908
|
-
declare const extension_ATTACH_FRAME_EVENT_KEY: typeof ATTACH_FRAME_EVENT_KEY;
|
|
1909
|
-
type extension_AttachFrameOptions = AttachFrameOptions;
|
|
1910
|
-
type extension_BoxedVideoElement = BoxedVideoElement;
|
|
1911
|
-
type extension_CookieDetails = CookieDetails;
|
|
1912
|
-
type extension_FetchInit = FetchInit;
|
|
1913
|
-
type extension_Frame = Frame;
|
|
1914
|
-
type extension_GotoOptions = GotoOptions;
|
|
1915
|
-
type extension_HeaderOperation = HeaderOperation;
|
|
1916
|
-
type extension_PermissionGrant = PermissionGrant;
|
|
1917
|
-
type extension_PermissionRequest = PermissionRequest;
|
|
1918
|
-
type extension_ProxyFetchRequest = ProxyFetchRequest;
|
|
1919
|
-
type extension_RemoteVideoElement = RemoteVideoElement;
|
|
1920
|
-
type extension_RequestHeaderRule = RequestHeaderRule;
|
|
1921
|
-
type extension_SiteCookie = SiteCookie;
|
|
1922
|
-
type extension_VideoElementState = VideoElementState;
|
|
1923
|
-
declare const extension_assertAttachableFrameUrl: typeof assertAttachableFrameUrl;
|
|
1924
|
-
declare const extension_assertFetchableUrl: typeof assertFetchableUrl;
|
|
1925
|
-
declare const extension_assertLockdownApplicable: typeof assertLockdownApplicable;
|
|
1926
|
-
declare const extension_attachFrame: typeof attachFrame;
|
|
1927
|
-
declare const extension_attachFramePermission: typeof attachFramePermission;
|
|
1928
|
-
declare const extension_box: typeof box;
|
|
1929
|
-
declare const extension_cookies: typeof cookies;
|
|
1930
|
-
declare const extension_createVideoElementHandle: typeof createVideoElementHandle;
|
|
1931
|
-
declare const extension_evaluatePermission: typeof evaluatePermission;
|
|
1932
|
-
declare const extension_fetchCredentialedPermission: typeof fetchCredentialedPermission;
|
|
1933
|
-
declare const extension_fetchLocalPermission: typeof fetchLocalPermission;
|
|
1934
|
-
declare const extension_fetchPermission: typeof fetchPermission;
|
|
1935
|
-
declare const extension_gotoPermission: typeof gotoPermission;
|
|
1936
|
-
declare const extension_handleRevivableModules: typeof handleRevivableModules;
|
|
1937
|
-
declare const extension_isBlockedFetchUrl: typeof isBlockedFetchUrl;
|
|
1938
|
-
declare const extension_isBlockedFrameUrl: typeof isBlockedFrameUrl;
|
|
1939
|
-
declare const extension_isExtensionExposed: typeof isExtensionExposed;
|
|
1940
|
-
declare const extension_isLocalNetworkUrl: typeof isLocalNetworkUrl;
|
|
1941
|
-
declare const extension_isType: typeof isType;
|
|
1942
|
-
declare const extension_modifyRequestHeadersPermission: typeof modifyRequestHeadersPermission;
|
|
1943
|
-
declare const extension_permissions: typeof permissions;
|
|
1944
|
-
declare const extension_promptInstall: typeof promptInstall;
|
|
1945
|
-
declare const extension_readCookiePermission: typeof readCookiePermission;
|
|
1946
|
-
declare const extension_removeRequestHeaderRule: typeof removeRequestHeaderRule;
|
|
1947
|
-
declare const extension_revive: typeof revive;
|
|
1948
|
-
declare const extension_setMissingExtensionHandler: typeof setMissingExtensionHandler;
|
|
1949
|
-
declare const extension_setRequestHeaderRule: typeof setRequestHeaderRule;
|
|
1950
|
-
declare const extension_type: typeof type;
|
|
1951
|
-
declare const extension_waitForExtensionExposure: typeof waitForExtensionExposure;
|
|
1952
|
-
declare namespace extension {
|
|
1953
|
-
export { extension_ATTACH_FRAME_EVENT_KEY as ATTACH_FRAME_EVENT_KEY, extension_assertAttachableFrameUrl as assertAttachableFrameUrl, extension_assertFetchableUrl as assertFetchableUrl, extension_assertLockdownApplicable as assertLockdownApplicable, extension_attachFrame as attachFrame, extension_attachFramePermission as attachFramePermission, isExtensionAvailable as available, extension_box as box, extension_cookies as cookies, extension_createVideoElementHandle as createVideoElementHandle, extension_evaluatePermission as evaluatePermission, extension$1 as events, extension$1 as extension, fetch$2 as fetch, extension_fetchCredentialedPermission as fetchCredentialedPermission, extension_fetchLocalPermission as fetchLocalPermission, extension_fetchPermission as fetchPermission, extension_gotoPermission as gotoPermission, extension_handleRevivableModules as handleRevivableModules, extension_isBlockedFetchUrl as isBlockedFetchUrl, extension_isBlockedFrameUrl as isBlockedFrameUrl, extension_isExtensionExposed as isExtensionExposed, extension_isLocalNetworkUrl as isLocalNetworkUrl, extension_isType as isType, extension_modifyRequestHeadersPermission as modifyRequestHeadersPermission, extension_permissions as permissions, extension_promptInstall as promptInstall, extension_readCookiePermission as readCookiePermission, extension_removeRequestHeaderRule as removeRequestHeaderRule, extension_revive as revive, extension_setMissingExtensionHandler as setMissingExtensionHandler, extension_setRequestHeaderRule as setRequestHeaderRule, extension_type as type, extension_waitForExtensionExposure as waitForExtensionExposure };
|
|
1954
|
-
export type { extension_AttachFrameOptions as AttachFrameOptions, extension_BoxedVideoElement as BoxedVideoElement, extension_CookieDetails as CookieDetails, extension_FetchInit as FetchInit, extension_Frame as Frame, extension_GotoOptions as GotoOptions, extension_HeaderOperation as HeaderOperation, extension_PermissionGrant as PermissionGrant, extension_PermissionRequest as PermissionRequest, extension_ProxyFetchRequest as ProxyFetchRequest, extension_RemoteVideoElement as RemoteVideoElement, extension_RequestHeaderRule as RequestHeaderRule, extension_SiteCookie as SiteCookie, extension_VideoElementState as VideoElementState };
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
declare const available$2: () => boolean;
|
|
1958
|
-
declare const fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
1959
|
-
declare const dns: {
|
|
1960
|
-
lookup: (..._args: unknown[]) => never;
|
|
1961
|
-
};
|
|
1962
|
-
declare const net: {
|
|
1963
|
-
connect: (..._args: unknown[]) => never;
|
|
1964
|
-
createConnection: (..._args: unknown[]) => never;
|
|
1965
|
-
createServer: (..._args: unknown[]) => never;
|
|
1966
|
-
};
|
|
1967
|
-
declare const dgram: {
|
|
1968
|
-
createSocket: (..._args: unknown[]) => never;
|
|
1969
|
-
};
|
|
1970
|
-
declare const fs$1: {
|
|
1971
|
-
available: () => Promise<boolean>;
|
|
1972
|
-
readFile: (..._args: unknown[]) => never;
|
|
1973
|
-
readFileSync: (..._args: unknown[]) => never;
|
|
1974
|
-
writeFile: (..._args: unknown[]) => never;
|
|
1975
|
-
writeFileSync: (..._args: unknown[]) => never;
|
|
1976
|
-
appendFile: (..._args: unknown[]) => never;
|
|
1977
|
-
appendFileSync: (..._args: unknown[]) => never;
|
|
1978
|
-
existsSync: (..._args: unknown[]) => never;
|
|
1979
|
-
stat: (..._args: unknown[]) => never;
|
|
1980
|
-
statSync: (..._args: unknown[]) => never;
|
|
1981
|
-
readdir: (..._args: unknown[]) => never;
|
|
1982
|
-
readdirSync: (..._args: unknown[]) => never;
|
|
1983
|
-
mkdir: (..._args: unknown[]) => never;
|
|
1984
|
-
mkdirSync: (..._args: unknown[]) => never;
|
|
1985
|
-
rm: (..._args: unknown[]) => never;
|
|
1986
|
-
rmSync: (..._args: unknown[]) => never;
|
|
1987
|
-
unlink: (..._args: unknown[]) => never;
|
|
1988
|
-
unlinkSync: (..._args: unknown[]) => never;
|
|
1989
|
-
rename: (..._args: unknown[]) => never;
|
|
1990
|
-
renameSync: (..._args: unknown[]) => never;
|
|
1991
|
-
mount: (..._args: unknown[]) => never;
|
|
1992
|
-
flush: (..._args: unknown[]) => never;
|
|
1993
|
-
promises: {
|
|
1994
|
-
readFile: (..._args: unknown[]) => never;
|
|
1995
|
-
writeFile: (..._args: unknown[]) => never;
|
|
1996
|
-
unlink: (..._args: unknown[]) => never;
|
|
1997
|
-
rename: (..._args: unknown[]) => never;
|
|
1998
|
-
readdir: (..._args: unknown[]) => never;
|
|
1999
|
-
mkdir: (..._args: unknown[]) => never;
|
|
2000
|
-
rm: (..._args: unknown[]) => never;
|
|
2001
|
-
stat: (..._args: unknown[]) => never;
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
declare const desktop_dgram: typeof dgram;
|
|
2006
|
-
declare const desktop_dns: typeof dns;
|
|
2007
|
-
declare const desktop_fetch: typeof fetch;
|
|
2008
|
-
declare const desktop_net: typeof net;
|
|
2009
|
-
declare namespace desktop {
|
|
2010
|
-
export {
|
|
2011
|
-
available$2 as available,
|
|
2012
|
-
desktop_dgram as dgram,
|
|
2013
|
-
desktop_dns as dns,
|
|
2014
|
-
desktop_fetch as fetch,
|
|
2015
|
-
fs$1 as fs,
|
|
2016
|
-
desktop_net as net,
|
|
2017
|
-
};
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
declare const available$1: () => Promise<boolean>;
|
|
2021
|
-
declare const readFileSync$1: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
|
|
2022
|
-
declare const writeFileSync$1: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2023
|
-
declare const appendFileSync$1: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2024
|
-
declare const existsSync$1: (path: node_fs.PathLike) => boolean;
|
|
2025
|
-
declare const statSync$1: (path: node_fs.PathLike) => Stats;
|
|
2026
|
-
declare const lstatSync$1: (path: node_fs.PathLike) => Stats;
|
|
2027
|
-
declare const readdirSync$1: (path: node_fs.PathLike) => string[];
|
|
2028
|
-
declare const mkdirSync$1: (path: node_fs.PathLike, options?: MakeOptions) => void;
|
|
2029
|
-
declare const rmSync$1: (path: node_fs.PathLike, options?: {
|
|
2030
|
-
recursive?: boolean;
|
|
2031
|
-
force?: boolean;
|
|
2032
|
-
}) => void;
|
|
2033
|
-
declare const rmdirSync$1: (path: node_fs.PathLike, options?: {
|
|
2034
|
-
recursive?: boolean;
|
|
2035
|
-
}) => void;
|
|
2036
|
-
declare const unlinkSync$1: (path: node_fs.PathLike) => void;
|
|
2037
|
-
declare const renameSync$1: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
|
|
2038
|
-
declare const readFile$1: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
|
|
2039
|
-
declare const writeFile$1: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2040
|
-
declare const appendFile$1: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2041
|
-
declare const stat$1: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
|
|
2042
|
-
declare const readdir$1: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
|
|
2043
|
-
declare const mkdir$1: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2044
|
-
declare const rm$1: (path: node_fs.PathLike, a: {
|
|
2045
|
-
recursive?: boolean;
|
|
2046
|
-
force?: boolean;
|
|
2047
|
-
} | Callback<void>, b?: Callback<void>) => void;
|
|
2048
|
-
declare const unlink$1: (path: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2049
|
-
declare const rename$1: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2050
|
-
declare const exists$1: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
|
|
2051
|
-
declare const promises$1: {
|
|
2052
|
-
readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
|
|
2053
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2054
|
-
appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2055
|
-
stat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2056
|
-
lstat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2057
|
-
readdir: (path: node_fs.PathLike) => Promise<string[]>;
|
|
2058
|
-
mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
|
|
2059
|
-
rm: (path: node_fs.PathLike, options?: {
|
|
2060
|
-
recursive?: boolean;
|
|
2061
|
-
force?: boolean;
|
|
2062
|
-
}) => Promise<void>;
|
|
2063
|
-
rmdir: (path: node_fs.PathLike, options?: {
|
|
2064
|
-
recursive?: boolean;
|
|
2065
|
-
}) => Promise<void>;
|
|
2066
|
-
unlink: (path: node_fs.PathLike) => Promise<void>;
|
|
2067
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
|
|
2068
|
-
access: (path: node_fs.PathLike) => Promise<void>;
|
|
2069
|
-
};
|
|
2070
|
-
declare const mount$1: () => Promise<void>;
|
|
2071
|
-
declare const flush$1: () => Promise<void>;
|
|
2072
|
-
declare const remount$1: () => Promise<void>;
|
|
2073
|
-
declare const pull: (path: string) => Promise<Blob>;
|
|
2074
|
-
declare const _default: {
|
|
2075
|
-
pull: (path: string) => Promise<Blob>;
|
|
2076
|
-
available: () => Promise<boolean>;
|
|
2077
|
-
readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
|
|
2078
|
-
writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2079
|
-
appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2080
|
-
existsSync: (path: node_fs.PathLike) => boolean;
|
|
2081
|
-
statSync: (path: node_fs.PathLike) => Stats;
|
|
2082
|
-
lstatSync: (path: node_fs.PathLike) => Stats;
|
|
2083
|
-
readdirSync: (path: node_fs.PathLike) => string[];
|
|
2084
|
-
mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
|
|
2085
|
-
rmSync: (path: node_fs.PathLike, options?: {
|
|
2086
|
-
recursive?: boolean;
|
|
2087
|
-
force?: boolean;
|
|
2088
|
-
}) => void;
|
|
2089
|
-
rmdirSync: (path: node_fs.PathLike, options?: {
|
|
2090
|
-
recursive?: boolean;
|
|
2091
|
-
}) => void;
|
|
2092
|
-
unlinkSync: (path: node_fs.PathLike) => void;
|
|
2093
|
-
renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
|
|
2094
|
-
readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
|
|
2095
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2096
|
-
appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2097
|
-
stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
|
|
2098
|
-
readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
|
|
2099
|
-
mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2100
|
-
rm: (path: node_fs.PathLike, a: {
|
|
2101
|
-
recursive?: boolean;
|
|
2102
|
-
force?: boolean;
|
|
2103
|
-
} | Callback<void>, b?: Callback<void>) => void;
|
|
2104
|
-
unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2105
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2106
|
-
exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
|
|
2107
|
-
promises: {
|
|
2108
|
-
readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
|
|
2109
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2110
|
-
appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2111
|
-
stat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2112
|
-
lstat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2113
|
-
readdir: (path: node_fs.PathLike) => Promise<string[]>;
|
|
2114
|
-
mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
|
|
2115
|
-
rm: (path: node_fs.PathLike, options?: {
|
|
2116
|
-
recursive?: boolean;
|
|
2117
|
-
force?: boolean;
|
|
2118
|
-
}) => Promise<void>;
|
|
2119
|
-
rmdir: (path: node_fs.PathLike, options?: {
|
|
2120
|
-
recursive?: boolean;
|
|
2121
|
-
}) => Promise<void>;
|
|
2122
|
-
unlink: (path: node_fs.PathLike) => Promise<void>;
|
|
2123
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
|
|
2124
|
-
access: (path: node_fs.PathLike) => Promise<void>;
|
|
2125
|
-
};
|
|
2126
|
-
mount: () => Promise<void>;
|
|
2127
|
-
flush: () => Promise<void>;
|
|
2128
|
-
remount: () => Promise<void>;
|
|
2129
|
-
};
|
|
2130
|
-
|
|
2131
|
-
type index$1_Stats = Stats;
|
|
2132
|
-
declare const index$1_pull: typeof pull;
|
|
2133
|
-
declare namespace index$1 {
|
|
2134
|
-
export { appendFile$1 as appendFile, appendFileSync$1 as appendFileSync, available$1 as available, _default as default, exists$1 as exists, existsSync$1 as existsSync, flush$1 as flush, lstatSync$1 as lstatSync, mkdir$1 as mkdir, mkdirSync$1 as mkdirSync, mount$1 as mount, promises$1 as promises, index$1_pull as pull, readFile$1 as readFile, readFileSync$1 as readFileSync, readdir$1 as readdir, readdirSync$1 as readdirSync, remount$1 as remount, rename$1 as rename, renameSync$1 as renameSync, rm$1 as rm, rmSync$1 as rmSync, rmdirSync$1 as rmdirSync, stat$1 as stat, statSync$1 as statSync, unlink$1 as unlink, unlinkSync$1 as unlinkSync, writeFile$1 as writeFile, writeFileSync$1 as writeFileSync };
|
|
2135
|
-
export type { index$1_Stats as Stats };
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
declare const fs: {
|
|
2139
|
-
available: () => Promise<boolean>;
|
|
2140
|
-
readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
|
|
2141
|
-
writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2142
|
-
appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2143
|
-
existsSync: (path: node_fs.PathLike) => boolean;
|
|
2144
|
-
statSync: (path: node_fs.PathLike) => Stats;
|
|
2145
|
-
lstatSync: (path: node_fs.PathLike) => Stats;
|
|
2146
|
-
readdirSync: (path: node_fs.PathLike) => string[];
|
|
2147
|
-
mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
|
|
2148
|
-
rmSync: (path: node_fs.PathLike, options?: {
|
|
2149
|
-
recursive?: boolean;
|
|
2150
|
-
force?: boolean;
|
|
2151
|
-
}) => void;
|
|
2152
|
-
rmdirSync: (path: node_fs.PathLike, options?: {
|
|
2153
|
-
recursive?: boolean;
|
|
2154
|
-
}) => void;
|
|
2155
|
-
unlinkSync: (path: node_fs.PathLike) => void;
|
|
2156
|
-
renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
|
|
2157
|
-
readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
|
|
2158
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2159
|
-
appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2160
|
-
stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
|
|
2161
|
-
readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
|
|
2162
|
-
mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2163
|
-
rm: (path: node_fs.PathLike, a: {
|
|
2164
|
-
recursive?: boolean;
|
|
2165
|
-
force?: boolean;
|
|
2166
|
-
} | Callback<void>, b?: Callback<void>) => void;
|
|
2167
|
-
unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2168
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2169
|
-
exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
|
|
2170
|
-
promises: {
|
|
2171
|
-
readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
|
|
2172
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2173
|
-
appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2174
|
-
stat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2175
|
-
lstat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2176
|
-
readdir: (path: node_fs.PathLike) => Promise<string[]>;
|
|
2177
|
-
mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
|
|
2178
|
-
rm: (path: node_fs.PathLike, options?: {
|
|
2179
|
-
recursive?: boolean;
|
|
2180
|
-
force?: boolean;
|
|
2181
|
-
}) => Promise<void>;
|
|
2182
|
-
rmdir: (path: node_fs.PathLike, options?: {
|
|
2183
|
-
recursive?: boolean;
|
|
2184
|
-
}) => Promise<void>;
|
|
2185
|
-
unlink: (path: node_fs.PathLike) => Promise<void>;
|
|
2186
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
|
|
2187
|
-
access: (path: node_fs.PathLike) => Promise<void>;
|
|
2188
|
-
};
|
|
2189
|
-
mount: () => Promise<void>;
|
|
2190
|
-
flush: () => Promise<void>;
|
|
2191
|
-
remount: () => Promise<void>;
|
|
2192
|
-
};
|
|
2193
|
-
declare const available: () => Promise<boolean>;
|
|
2194
|
-
declare const readFileSync: (path: node_fs.PathLike, options?: ReadOptions) => Buffer | string;
|
|
2195
|
-
declare const writeFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2196
|
-
declare const appendFileSync: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2197
|
-
declare const existsSync: (path: node_fs.PathLike) => boolean;
|
|
2198
|
-
declare const statSync: (path: node_fs.PathLike) => Stats;
|
|
2199
|
-
declare const lstatSync: (path: node_fs.PathLike) => Stats;
|
|
2200
|
-
declare const readdirSync: (path: node_fs.PathLike) => string[];
|
|
2201
|
-
declare const mkdirSync: (path: node_fs.PathLike, options?: MakeOptions) => void;
|
|
2202
|
-
declare const rmSync: (path: node_fs.PathLike, options?: {
|
|
2203
|
-
recursive?: boolean;
|
|
2204
|
-
force?: boolean;
|
|
2205
|
-
}) => void;
|
|
2206
|
-
declare const rmdirSync: (path: node_fs.PathLike, options?: {
|
|
2207
|
-
recursive?: boolean;
|
|
2208
|
-
}) => void;
|
|
2209
|
-
declare const unlinkSync: (path: node_fs.PathLike) => void;
|
|
2210
|
-
declare const renameSync: (from: node_fs.PathLike, to: node_fs.PathLike) => void;
|
|
2211
|
-
declare const readFile: (path: node_fs.PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
|
|
2212
|
-
declare const writeFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2213
|
-
declare const appendFile: (path: node_fs.PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2214
|
-
declare const stat: (path: node_fs.PathLike, callback: Callback<Stats>) => void;
|
|
2215
|
-
declare const readdir: (path: node_fs.PathLike, a: unknown, b?: Callback<string[]>) => void;
|
|
2216
|
-
declare const mkdir: (path: node_fs.PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2217
|
-
declare const rm: (path: node_fs.PathLike, a: {
|
|
2218
|
-
recursive?: boolean;
|
|
2219
|
-
force?: boolean;
|
|
2220
|
-
} | Callback<void>, b?: Callback<void>) => void;
|
|
2221
|
-
declare const unlink: (path: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2222
|
-
declare const rename: (from: node_fs.PathLike, to: node_fs.PathLike, callback: Callback<void>) => void;
|
|
2223
|
-
declare const exists: (path: node_fs.PathLike, callback: (exists: boolean) => void) => void;
|
|
2224
|
-
declare const promises: {
|
|
2225
|
-
readFile: (path: node_fs.PathLike, options?: ReadOptions) => Promise<Buffer | string>;
|
|
2226
|
-
writeFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2227
|
-
appendFile: (path: node_fs.PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2228
|
-
stat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2229
|
-
lstat: (path: node_fs.PathLike) => Promise<Stats>;
|
|
2230
|
-
readdir: (path: node_fs.PathLike) => Promise<string[]>;
|
|
2231
|
-
mkdir: (path: node_fs.PathLike, options?: MakeOptions) => Promise<void>;
|
|
2232
|
-
rm: (path: node_fs.PathLike, options?: {
|
|
2233
|
-
recursive?: boolean;
|
|
2234
|
-
force?: boolean;
|
|
2235
|
-
}) => Promise<void>;
|
|
2236
|
-
rmdir: (path: node_fs.PathLike, options?: {
|
|
2237
|
-
recursive?: boolean;
|
|
2238
|
-
}) => Promise<void>;
|
|
2239
|
-
unlink: (path: node_fs.PathLike) => Promise<void>;
|
|
2240
|
-
rename: (from: node_fs.PathLike, to: node_fs.PathLike) => Promise<void>;
|
|
2241
|
-
access: (path: node_fs.PathLike) => Promise<void>;
|
|
2242
|
-
};
|
|
2243
|
-
declare const mount: () => Promise<void>;
|
|
2244
|
-
declare const flush: () => Promise<void>;
|
|
2245
|
-
declare const remount: () => Promise<void>;
|
|
2246
|
-
|
|
2247
|
-
type index_Stats = Stats;
|
|
2248
|
-
declare const index_appendFile: typeof appendFile;
|
|
2249
|
-
declare const index_appendFileSync: typeof appendFileSync;
|
|
2250
|
-
declare const index_available: typeof available;
|
|
2251
|
-
declare const index_exists: typeof exists;
|
|
2252
|
-
declare const index_existsSync: typeof existsSync;
|
|
2253
|
-
declare const index_flush: typeof flush;
|
|
2254
|
-
declare const index_lstatSync: typeof lstatSync;
|
|
2255
|
-
declare const index_mkdir: typeof mkdir;
|
|
2256
|
-
declare const index_mkdirSync: typeof mkdirSync;
|
|
2257
|
-
declare const index_mount: typeof mount;
|
|
2258
|
-
declare const index_promises: typeof promises;
|
|
2259
|
-
declare const index_readFile: typeof readFile;
|
|
2260
|
-
declare const index_readFileSync: typeof readFileSync;
|
|
2261
|
-
declare const index_readdir: typeof readdir;
|
|
2262
|
-
declare const index_readdirSync: typeof readdirSync;
|
|
2263
|
-
declare const index_remount: typeof remount;
|
|
2264
|
-
declare const index_rename: typeof rename;
|
|
2265
|
-
declare const index_renameSync: typeof renameSync;
|
|
2266
|
-
declare const index_rm: typeof rm;
|
|
2267
|
-
declare const index_rmSync: typeof rmSync;
|
|
2268
|
-
declare const index_rmdirSync: typeof rmdirSync;
|
|
2269
|
-
declare const index_stat: typeof stat;
|
|
2270
|
-
declare const index_statSync: typeof statSync;
|
|
2271
|
-
declare const index_unlink: typeof unlink;
|
|
2272
|
-
declare const index_unlinkSync: typeof unlinkSync;
|
|
2273
|
-
declare const index_writeFile: typeof writeFile;
|
|
2274
|
-
declare const index_writeFileSync: typeof writeFileSync;
|
|
2275
|
-
declare namespace index {
|
|
2276
|
-
export { index_appendFile as appendFile, index_appendFileSync as appendFileSync, index_available as available, fs as default, index_exists as exists, index_existsSync as existsSync, index_flush as flush, index_lstatSync as lstatSync, index_mkdir as mkdir, index_mkdirSync as mkdirSync, index_mount as mount, index_promises as promises, index_readFile as readFile, index_readFileSync as readFileSync, index_readdir as readdir, index_readdirSync as readdirSync, index_remount as remount, index_rename as rename, index_renameSync as renameSync, index_rm as rm, index_rmSync as rmSync, index_rmdirSync as rmdirSync, index_stat as stat, index_statSync as statSync, index_unlink as unlink, index_unlinkSync as unlinkSync, index_writeFile as writeFile, index_writeFileSync as writeFileSync };
|
|
2277
|
-
export type { index_Stats as Stats };
|
|
2278
|
-
}
|
|
2279
|
-
|
|
1
|
+
import { t as account_d_exports } from "./account.js";
|
|
2
|
+
import { p as packages_d_exports } from "./packages-D36R2vBv.js";
|
|
3
|
+
import { n as cloud_d_exports } from "./cloud-gklfa4ZN.js";
|
|
4
|
+
import { A as RequestHeaderRule, B as assertFetchableUrl, C as attachFramePermission, D as assertLockdownApplicable, E as assertAttachableFrameUrl, F as SiteCookie, G as isBlockedFetchUrl, H as fetchCredentialedPermission, I as cookies, K as isLocalNetworkUrl, L as readCookiePermission, M as removeRequestHeaderRule, N as setRequestHeaderRule, O as isBlockedFrameUrl, P as CookieDetails, R as FetchInit, S as GotoOptions, T as gotoPermission, U as fetchLocalPermission, W as fetchPermission, _ as ATTACH_FRAME_EVENT_KEY, a as handleRevivableModules, b as Frame, c as VideoElementState, d as isType, f as revive, g as permissions, h as PermissionRequest, i as waitForExtensionExposure, j as modifyRequestHeadersPermission, k as HeaderOperation, l as box, m as PermissionGrant, n as isExtensionExposed, o as BoxedVideoElement, p as type, r as setMissingExtensionHandler, s as RemoteVideoElement, u as createVideoElementHandle, w as createFrame, x as FrameBackend, y as AttachFrameOptions, z as ProxyFetchRequest } from "./index-BJztAQIP.js";
|
|
5
|
+
import { t as dns_d_exports } from "./dns.js";
|
|
6
|
+
import { s as net_d_exports } from "./net-BDW1AVX1.js";
|
|
7
|
+
import { t as dgram_d_exports } from "./dgram.js";
|
|
8
|
+
import { t as http_d_exports } from "./http.js";
|
|
9
|
+
import { t as desktop_d_exports } from "./desktop.js";
|
|
10
|
+
import { i as promptInstall, n as fetch, t as extension_d_exports } from "./extension-3pxUYwrA.js";
|
|
11
|
+
import { t as index_d_exports } from "./fs.js";
|
|
12
|
+
import { t as index_d_exports$1 } from "./opfs.js";
|
|
13
|
+
import { t as connectButtonUrl } from "./connect-button-D8KXSL6s.js";
|
|
14
|
+
|
|
15
|
+
//#region src/lib/frame.d.ts
|
|
16
|
+
declare const attachFrame: (options: AttachFrameOptions) => Promise<Frame>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/lib/relay.d.ts
|
|
2280
19
|
declare const relayWorker: (worker: Worker, options?: {
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
20
|
+
unregisterSignal?: AbortSignal;
|
|
21
|
+
originA?: string;
|
|
22
|
+
originB?: string;
|
|
2284
23
|
}) => void;
|
|
2285
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/lib/connect.d.ts
|
|
2286
26
|
declare const connect: () => Promise<boolean>;
|
|
2287
|
-
|
|
2288
|
-
type
|
|
2289
|
-
/** the account's display name (a username, not necessarily a real name) */
|
|
2290
|
-
name: string;
|
|
2291
|
-
/** profile image URL, or null if none is set */
|
|
2292
|
-
image: string | null;
|
|
2293
|
-
/** the account has an active paid subscription */
|
|
2294
|
-
premium: boolean;
|
|
2295
|
-
/** when the current subscription lapses, as a ms epoch, or null when not subscribed */
|
|
2296
|
-
premiumUntil: number | null;
|
|
2297
|
-
};
|
|
2298
|
-
declare const login: () => Promise<boolean>;
|
|
2299
|
-
declare const logout: () => Promise<void>;
|
|
2300
|
-
declare const info: () => Promise<AccountInfo | null>;
|
|
2301
|
-
declare const onChange: (callback: () => void) => Promise<() => void>;
|
|
2302
|
-
|
|
2303
|
-
type account_AccountInfo = AccountInfo;
|
|
2304
|
-
declare const account_info: typeof info;
|
|
2305
|
-
declare const account_login: typeof login;
|
|
2306
|
-
declare const account_logout: typeof logout;
|
|
2307
|
-
declare const account_onChange: typeof onChange;
|
|
2308
|
-
declare namespace account {
|
|
2309
|
-
export { account_info as info, account_login as login, account_logout as logout, account_onChange as onChange };
|
|
2310
|
-
export type { account_AccountInfo as AccountInfo };
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
declare const connectButtonUrl: (origin?: string) => string;
|
|
2314
|
-
|
|
2315
|
-
export { ATTACH_FRAME_EVENT_KEY, account, assertAttachableFrameUrl, assertFetchableUrl, assertLockdownApplicable, attachFrame, attachFramePermission, box, cloud, connect, connectButtonUrl, cookies, createVideoElementHandle, desktop, dgram$1 as dgram, dns$1 as dns, evaluatePermission, extension, fetch$1 as fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, index$1 as fs, gotoPermission, handleRevivableModules, http, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, net$1 as net, index as opfs, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
|
|
2316
|
-
export type { AttachFrameOptions, BoxedVideoElement, CookieDetails, FetchInit, Frame, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState };
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ATTACH_FRAME_EVENT_KEY, AttachFrameOptions, BoxedVideoElement, CookieDetails, FetchInit, Frame, FrameBackend, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState, account_d_exports as account, assertAttachableFrameUrl, assertFetchableUrl, assertLockdownApplicable, attachFrame, attachFramePermission, box, cloud_d_exports as cloud, connect, connectButtonUrl, cookies, createFrame, createVideoElementHandle, desktop_d_exports as desktop, dgram_d_exports as dgram, dns_d_exports as dns, extension_d_exports as extension, fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, index_d_exports as fs, gotoPermission, handleRevivableModules, http_d_exports as http, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, net_d_exports as net, index_d_exports$1 as opfs, packages_d_exports as packages, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
|