@fkn/lib 0.4.8 → 0.4.9
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/index.cjs +5 -5
- package/index.d.ts +433 -263
- package/index.js +637 -327
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as osra from 'osra';
|
|
2
|
-
import { BoxBase, Capable, UnderlyingType, RevivableContext } from 'osra';
|
|
2
|
+
import { BoxBase, Capable, UnderlyingType, RevivableContext, DefaultRevivableModules } from 'osra';
|
|
3
3
|
import * as osra_build_revivables_event_target from 'osra/build/revivables/event-target';
|
|
4
4
|
import * as osra_build_revivables_fallbacks from 'osra/build/revivables/fallbacks';
|
|
5
5
|
import * as osra_build_revivables_json_primitives from 'osra/build/revivables/json-primitives';
|
|
@@ -33,30 +33,31 @@ import { EventEmitter } from 'events';
|
|
|
33
33
|
import { Socket as Socket$3, SocketOptions, BindOptions, SocketType, RemoteInfo } from 'dgram';
|
|
34
34
|
import { Buffer } from 'buffer';
|
|
35
35
|
import { OutgoingHttpHeaders, IncomingHttpHeaders, RequestOptions } from 'http';
|
|
36
|
+
import { PathLike } from 'fs';
|
|
36
37
|
import { CSSProperties, ReactElement } from 'react';
|
|
37
38
|
|
|
38
39
|
declare const fetchPermission: {
|
|
39
|
-
readonly scope:
|
|
40
|
-
readonly category:
|
|
40
|
+
readonly scope: 'network.fetch';
|
|
41
|
+
readonly category: 'network';
|
|
41
42
|
readonly severity: 0;
|
|
42
|
-
readonly title:
|
|
43
|
-
readonly description:
|
|
43
|
+
readonly title: 'Fetch data from other sites';
|
|
44
|
+
readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
|
|
44
45
|
};
|
|
45
46
|
declare const fetchCredentialedPermission: {
|
|
46
|
-
readonly scope:
|
|
47
|
-
readonly category:
|
|
47
|
+
readonly scope: 'network.fetchCredentialed';
|
|
48
|
+
readonly category: 'network';
|
|
48
49
|
readonly severity: 3;
|
|
49
50
|
readonly unsafe: true;
|
|
50
|
-
readonly title:
|
|
51
|
-
readonly description:
|
|
51
|
+
readonly title: 'Fetch from other sites, signed in as you';
|
|
52
|
+
readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
|
|
52
53
|
};
|
|
53
54
|
declare const fetchLocalPermission: {
|
|
54
|
-
readonly scope:
|
|
55
|
-
readonly category:
|
|
55
|
+
readonly scope: 'network.fetchLocal';
|
|
56
|
+
readonly category: 'network';
|
|
56
57
|
readonly severity: 3;
|
|
57
58
|
readonly unsafe: true;
|
|
58
|
-
readonly title:
|
|
59
|
-
readonly description:
|
|
59
|
+
readonly title: 'Access devices on your local network';
|
|
60
|
+
readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
|
|
60
61
|
};
|
|
61
62
|
declare const isLocalNetworkUrl: (raw: string) => boolean;
|
|
62
63
|
type ProxyFetchRequest = {
|
|
@@ -75,15 +76,15 @@ type FetchInit = RequestInit & {
|
|
|
75
76
|
};
|
|
76
77
|
declare const isBlockedFetchUrl: (raw: string) => boolean;
|
|
77
78
|
declare const assertFetchableUrl: (raw: string) => void;
|
|
78
|
-
declare const fetch$2: (input:
|
|
79
|
+
declare const fetch$2: (input: RequestInfo | URL, init?: FetchInit) => Promise<Response>;
|
|
79
80
|
|
|
80
81
|
declare const readCookiePermission: {
|
|
81
|
-
readonly scope:
|
|
82
|
-
readonly category:
|
|
82
|
+
readonly scope: 'network.readCookie';
|
|
83
|
+
readonly category: 'network';
|
|
83
84
|
readonly severity: 3;
|
|
84
85
|
readonly unsafe: true;
|
|
85
|
-
readonly title:
|
|
86
|
-
readonly description:
|
|
86
|
+
readonly title: 'Read a site’s cookie';
|
|
87
|
+
readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
|
|
87
88
|
};
|
|
88
89
|
type CookieDetails = {
|
|
89
90
|
url: string;
|
|
@@ -98,12 +99,12 @@ declare const cookies: {
|
|
|
98
99
|
};
|
|
99
100
|
|
|
100
101
|
declare const modifyRequestHeadersPermission: {
|
|
101
|
-
readonly scope:
|
|
102
|
-
readonly category:
|
|
102
|
+
readonly scope: 'network.modifyRequestHeaders';
|
|
103
|
+
readonly category: 'network';
|
|
103
104
|
readonly severity: 2;
|
|
104
105
|
readonly unsafe: true;
|
|
105
|
-
readonly title:
|
|
106
|
-
readonly description:
|
|
106
|
+
readonly title: 'Rewrite request headers to other sites';
|
|
107
|
+
readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
|
|
107
108
|
};
|
|
108
109
|
type HeaderOperation = {
|
|
109
110
|
header: string;
|
|
@@ -133,7 +134,7 @@ type ExtractResolverReturn<M> = M extends {
|
|
|
133
134
|
resolve: (context: any, ...args: any[]) => infer R;
|
|
134
135
|
} ? R : never;
|
|
135
136
|
|
|
136
|
-
declare const type$i:
|
|
137
|
+
declare const type$i: 'locator';
|
|
137
138
|
declare const resolve$h: (context: LocatorContext, selector: string) => Element[];
|
|
138
139
|
declare const render$7: SelectorRenderer;
|
|
139
140
|
|
|
@@ -145,7 +146,7 @@ declare namespace locatorSel {
|
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
declare const type$h:
|
|
149
|
+
declare const type$h: 'getByRole';
|
|
149
150
|
declare const resolve$g: (context: LocatorContext, role: string) => Element[];
|
|
150
151
|
declare const render$6: SelectorRenderer;
|
|
151
152
|
|
|
@@ -157,7 +158,7 @@ declare namespace getByRole {
|
|
|
157
158
|
};
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
declare const type$g:
|
|
161
|
+
declare const type$g: 'getByText';
|
|
161
162
|
declare const resolve$f: (context: LocatorContext, text: string) => Element[];
|
|
162
163
|
declare const render$5: SelectorRenderer;
|
|
163
164
|
|
|
@@ -169,7 +170,7 @@ declare namespace getByText {
|
|
|
169
170
|
};
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
declare const type$f:
|
|
173
|
+
declare const type$f: 'getByTestId';
|
|
173
174
|
declare const resolve$e: (context: LocatorContext, testId: string) => Element[];
|
|
174
175
|
declare const render$4: SelectorRenderer;
|
|
175
176
|
|
|
@@ -181,7 +182,7 @@ declare namespace getByTestId {
|
|
|
181
182
|
};
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
declare const type$e:
|
|
185
|
+
declare const type$e: 'first';
|
|
185
186
|
declare const resolve$d: (context: LocatorContext) => Element[];
|
|
186
187
|
declare const render$3: SelectorRenderer;
|
|
187
188
|
|
|
@@ -193,7 +194,7 @@ declare namespace first {
|
|
|
193
194
|
};
|
|
194
195
|
}
|
|
195
196
|
|
|
196
|
-
declare const type$d:
|
|
197
|
+
declare const type$d: 'nth';
|
|
197
198
|
declare const resolve$c: (context: LocatorContext, index: number) => Element[];
|
|
198
199
|
declare const render$2: SelectorRenderer;
|
|
199
200
|
|
|
@@ -205,19 +206,19 @@ declare namespace nth {
|
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
208
|
|
|
208
|
-
declare const type$c:
|
|
209
|
+
declare const type$c: 'click';
|
|
209
210
|
declare const permission$9: {
|
|
210
|
-
readonly scope:
|
|
211
|
-
readonly category:
|
|
211
|
+
readonly scope: 'act.click';
|
|
212
|
+
readonly category: 'act';
|
|
212
213
|
readonly severity: 3;
|
|
213
|
-
readonly title:
|
|
214
|
-
readonly description:
|
|
214
|
+
readonly title: 'Click on the page';
|
|
215
|
+
readonly description: 'Lets the app press buttons or links for you.';
|
|
215
216
|
};
|
|
216
217
|
declare const resolve$b: (context: LocatorContext, options?: OperationTimeoutOptions & {
|
|
217
218
|
position?: {
|
|
218
|
-
x?: number
|
|
219
|
-
y?: number
|
|
220
|
-
}
|
|
219
|
+
x?: number;
|
|
220
|
+
y?: number;
|
|
221
|
+
};
|
|
221
222
|
}) => void;
|
|
222
223
|
|
|
223
224
|
declare namespace click {
|
|
@@ -228,13 +229,13 @@ declare namespace click {
|
|
|
228
229
|
};
|
|
229
230
|
}
|
|
230
231
|
|
|
231
|
-
declare const type$b:
|
|
232
|
+
declare const type$b: 'fill';
|
|
232
233
|
declare const permission$8: {
|
|
233
|
-
readonly scope:
|
|
234
|
-
readonly category:
|
|
234
|
+
readonly scope: 'act.type';
|
|
235
|
+
readonly category: 'act';
|
|
235
236
|
readonly severity: 1;
|
|
236
|
-
readonly title:
|
|
237
|
-
readonly description:
|
|
237
|
+
readonly title: 'Type into a text field';
|
|
238
|
+
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
238
239
|
};
|
|
239
240
|
declare const resolve$a: (context: LocatorContext, value: string, _options?: OperationTimeoutOptions) => void;
|
|
240
241
|
|
|
@@ -246,19 +247,19 @@ declare namespace fill {
|
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
249
|
|
|
249
|
-
declare const type$a:
|
|
250
|
+
declare const type$a: 'hover';
|
|
250
251
|
declare const permission$7: {
|
|
251
|
-
readonly scope:
|
|
252
|
-
readonly category:
|
|
252
|
+
readonly scope: 'act.hover';
|
|
253
|
+
readonly category: 'act';
|
|
253
254
|
readonly severity: 1;
|
|
254
|
-
readonly title:
|
|
255
|
-
readonly description:
|
|
255
|
+
readonly title: 'Hover over the page';
|
|
256
|
+
readonly description: 'Lets the app point at things to reveal menus or tooltips.';
|
|
256
257
|
};
|
|
257
258
|
declare const resolve$9: (context: LocatorContext, options?: OperationTimeoutOptions & {
|
|
258
259
|
position?: {
|
|
259
|
-
x?: number
|
|
260
|
-
y?: number
|
|
261
|
-
}
|
|
260
|
+
x?: number;
|
|
261
|
+
y?: number;
|
|
262
|
+
};
|
|
262
263
|
}) => void;
|
|
263
264
|
|
|
264
265
|
declare namespace hover {
|
|
@@ -269,13 +270,13 @@ declare namespace hover {
|
|
|
269
270
|
};
|
|
270
271
|
}
|
|
271
272
|
|
|
272
|
-
declare const type$9:
|
|
273
|
+
declare const type$9: 'textContent';
|
|
273
274
|
declare const permission$6: {
|
|
274
|
-
readonly scope:
|
|
275
|
-
readonly category:
|
|
275
|
+
readonly scope: 'read.text';
|
|
276
|
+
readonly category: 'read';
|
|
276
277
|
readonly severity: 1;
|
|
277
|
-
readonly title:
|
|
278
|
-
readonly description:
|
|
278
|
+
readonly title: 'Read text from the page';
|
|
279
|
+
readonly description: 'Lets the app see the text shown on this page.';
|
|
279
280
|
};
|
|
280
281
|
declare const resolve$8: (context: LocatorContext, _options?: OperationTimeoutOptions) => string;
|
|
281
282
|
|
|
@@ -287,13 +288,13 @@ declare namespace textContent {
|
|
|
287
288
|
};
|
|
288
289
|
}
|
|
289
290
|
|
|
290
|
-
declare const type$8:
|
|
291
|
+
declare const type$8: 'isVisible';
|
|
291
292
|
declare const permission$5: {
|
|
292
|
-
readonly scope:
|
|
293
|
-
readonly category:
|
|
293
|
+
readonly scope: 'read.visible';
|
|
294
|
+
readonly category: 'read';
|
|
294
295
|
readonly severity: 0;
|
|
295
|
-
readonly title:
|
|
296
|
-
readonly description:
|
|
296
|
+
readonly title: 'See what’s visible on the page';
|
|
297
|
+
readonly description: 'Lets the app check which elements are currently on screen.';
|
|
297
298
|
};
|
|
298
299
|
declare const resolve$7: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
|
|
299
300
|
|
|
@@ -305,13 +306,13 @@ declare namespace isVisible {
|
|
|
305
306
|
};
|
|
306
307
|
}
|
|
307
308
|
|
|
308
|
-
declare const type$7:
|
|
309
|
+
declare const type$7: 'count';
|
|
309
310
|
declare const permission$4: {
|
|
310
|
-
readonly scope:
|
|
311
|
-
readonly category:
|
|
311
|
+
readonly scope: 'read.count';
|
|
312
|
+
readonly category: 'read';
|
|
312
313
|
readonly severity: 0;
|
|
313
|
-
readonly title:
|
|
314
|
-
readonly description:
|
|
314
|
+
readonly title: 'Count items on the page';
|
|
315
|
+
readonly description: 'Lets the app count how many matching elements are present.';
|
|
315
316
|
};
|
|
316
317
|
declare const resolve$6: (context: LocatorContext, _options?: OperationTimeoutOptions) => number;
|
|
317
318
|
|
|
@@ -323,17 +324,17 @@ declare namespace count {
|
|
|
323
324
|
};
|
|
324
325
|
}
|
|
325
326
|
|
|
326
|
-
declare const type$6:
|
|
327
|
+
declare const type$6: 'exists';
|
|
327
328
|
declare const permission$3: {
|
|
328
|
-
readonly scope:
|
|
329
|
-
readonly category:
|
|
329
|
+
readonly scope: 'read.check';
|
|
330
|
+
readonly category: 'read';
|
|
330
331
|
readonly severity: 0;
|
|
331
|
-
readonly title:
|
|
332
|
-
readonly description:
|
|
332
|
+
readonly title: 'Check if something is on the page';
|
|
333
|
+
readonly description: 'Lets the app test whether a specific element exists.';
|
|
333
334
|
};
|
|
334
335
|
declare const resolve$5: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
|
|
335
336
|
|
|
336
|
-
declare namespace exists {
|
|
337
|
+
declare namespace exists$1 {
|
|
337
338
|
export {
|
|
338
339
|
permission$3 as permission,
|
|
339
340
|
resolve$5 as resolve,
|
|
@@ -341,13 +342,13 @@ declare namespace exists {
|
|
|
341
342
|
};
|
|
342
343
|
}
|
|
343
344
|
|
|
344
|
-
declare const type$5:
|
|
345
|
+
declare const type$5: 'getAttribute';
|
|
345
346
|
declare const permission$2: {
|
|
346
|
-
readonly scope:
|
|
347
|
-
readonly category:
|
|
347
|
+
readonly scope: 'read.info';
|
|
348
|
+
readonly category: 'read';
|
|
348
349
|
readonly severity: 1;
|
|
349
|
-
readonly title:
|
|
350
|
-
readonly description:
|
|
350
|
+
readonly title: 'Read info from the page';
|
|
351
|
+
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
351
352
|
};
|
|
352
353
|
declare const resolve$4: (context: LocatorContext, name: string, _options?: OperationTimeoutOptions) => string | null;
|
|
353
354
|
|
|
@@ -359,13 +360,13 @@ declare namespace getAttribute {
|
|
|
359
360
|
};
|
|
360
361
|
}
|
|
361
362
|
|
|
362
|
-
declare const type$4:
|
|
363
|
+
declare const type$4: 'videoElement';
|
|
363
364
|
declare const permission$1: {
|
|
364
|
-
readonly scope:
|
|
365
|
-
readonly category:
|
|
365
|
+
readonly scope: 'media.video';
|
|
366
|
+
readonly category: 'media';
|
|
366
367
|
readonly severity: 0;
|
|
367
|
-
readonly title:
|
|
368
|
-
readonly description:
|
|
368
|
+
readonly title: 'Control video playback';
|
|
369
|
+
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
369
370
|
};
|
|
370
371
|
declare const resolve$3: (context: LocatorContext, _options?: OperationTimeoutOptions) => RemoteVideoElement;
|
|
371
372
|
|
|
@@ -380,19 +381,19 @@ declare namespace videoElement$1 {
|
|
|
380
381
|
declare const locatorModule: {
|
|
381
382
|
readonly type: "locator";
|
|
382
383
|
readonly selectorModules: readonly [typeof locatorSel, {
|
|
383
|
-
readonly type:
|
|
384
|
+
readonly type: 'frameLocator';
|
|
384
385
|
readonly resolve: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
|
|
385
386
|
readonly resolvePeer: BarrierResolver;
|
|
386
387
|
readonly render: SelectorRenderer;
|
|
387
|
-
readonly nextLocatorType:
|
|
388
|
+
readonly nextLocatorType: 'frameLocator';
|
|
388
389
|
}, typeof getByRole, typeof getByText, typeof getByTestId, typeof first, typeof nth];
|
|
389
|
-
readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists, typeof getAttribute, typeof videoElement$1];
|
|
390
|
+
readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists$1, typeof getAttribute, typeof videoElement$1];
|
|
390
391
|
};
|
|
391
392
|
type LocatorModule = typeof locatorModule;
|
|
392
393
|
interface Locator extends LocatorChain<LocatorModule, Locator> {
|
|
393
394
|
}
|
|
394
395
|
|
|
395
|
-
declare const type$3:
|
|
396
|
+
declare const type$3: 'frameLocator';
|
|
396
397
|
declare const resolve$2: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
|
|
397
398
|
declare const resolvePeer$1: BarrierResolver;
|
|
398
399
|
declare const render$1: SelectorRenderer;
|
|
@@ -406,7 +407,7 @@ declare namespace frameLocatorSel {
|
|
|
406
407
|
};
|
|
407
408
|
}
|
|
408
409
|
|
|
409
|
-
declare const type$2:
|
|
410
|
+
declare const type$2: 'owner';
|
|
410
411
|
declare const resolve$1: (_: LocatorContext) => never;
|
|
411
412
|
declare const resolvePeer: BarrierResolver;
|
|
412
413
|
declare const render: SelectorRenderer;
|
|
@@ -422,39 +423,39 @@ declare namespace owner {
|
|
|
422
423
|
};
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
declare const type$1:
|
|
426
|
+
declare const type$1: 'addStyleTag';
|
|
426
427
|
type AddStyleTagOptions = OperationTimeoutOptions & {
|
|
427
428
|
content: string;
|
|
428
429
|
noSanitize?: boolean;
|
|
429
430
|
};
|
|
430
431
|
declare const appearPermission: {
|
|
431
|
-
readonly scope:
|
|
432
|
-
readonly category:
|
|
432
|
+
readonly scope: 'media.appear';
|
|
433
|
+
readonly category: 'media';
|
|
433
434
|
readonly severity: 0;
|
|
434
|
-
readonly title:
|
|
435
|
-
readonly description:
|
|
435
|
+
readonly title: 'Change page appearance';
|
|
436
|
+
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
436
437
|
};
|
|
437
438
|
declare const appearUnsafePermission: {
|
|
438
|
-
readonly scope:
|
|
439
|
-
readonly category:
|
|
439
|
+
readonly scope: 'media.appearU';
|
|
440
|
+
readonly category: 'media';
|
|
440
441
|
readonly severity: 2;
|
|
441
442
|
readonly unsafe: true;
|
|
442
|
-
readonly title:
|
|
443
|
-
readonly description:
|
|
443
|
+
readonly title: 'Change page appearance (unsafe)';
|
|
444
|
+
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
444
445
|
};
|
|
445
|
-
declare const permission: (options?: AddStyleTagOptions
|
|
446
|
-
readonly scope:
|
|
447
|
-
readonly category:
|
|
446
|
+
declare const permission: (options?: AddStyleTagOptions) => {
|
|
447
|
+
readonly scope: 'media.appear';
|
|
448
|
+
readonly category: 'media';
|
|
448
449
|
readonly severity: 0;
|
|
449
|
-
readonly title:
|
|
450
|
-
readonly description:
|
|
450
|
+
readonly title: 'Change page appearance';
|
|
451
|
+
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
451
452
|
} | {
|
|
452
|
-
readonly scope:
|
|
453
|
-
readonly category:
|
|
453
|
+
readonly scope: 'media.appearU';
|
|
454
|
+
readonly category: 'media';
|
|
454
455
|
readonly severity: 2;
|
|
455
456
|
readonly unsafe: true;
|
|
456
|
-
readonly title:
|
|
457
|
-
readonly description:
|
|
457
|
+
readonly title: 'Change page appearance (unsafe)';
|
|
458
|
+
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
458
459
|
};
|
|
459
460
|
declare const setInjectedStylesDisabled: (disabled: boolean) => void;
|
|
460
461
|
declare const resolve: (_context: LocatorContext, options: AddStyleTagOptions) => Promise<void>;
|
|
@@ -473,10 +474,10 @@ declare namespace addStyleTag {
|
|
|
473
474
|
declare const frameLocatorModule: {
|
|
474
475
|
readonly type: "frameLocator";
|
|
475
476
|
readonly selectorModules: readonly [{
|
|
476
|
-
readonly type:
|
|
477
|
+
readonly type: 'locator';
|
|
477
478
|
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
478
479
|
readonly render: SelectorRenderer;
|
|
479
|
-
readonly nextLocatorType:
|
|
480
|
+
readonly nextLocatorType: 'locator';
|
|
480
481
|
}, typeof frameLocatorSel, typeof owner];
|
|
481
482
|
readonly operationModules: readonly [typeof addStyleTag];
|
|
482
483
|
};
|
|
@@ -563,24 +564,24 @@ declare const ATTACH_FRAME_EVENT_KEY = "FKN_WEB_EXTENSION_ATTACH_FRAME_EVENT_KEY
|
|
|
563
564
|
declare const isBlockedFrameUrl: (raw: string) => boolean;
|
|
564
565
|
declare const assertAttachableFrameUrl: (raw: string) => void;
|
|
565
566
|
declare const attachFramePermission: {
|
|
566
|
-
readonly scope:
|
|
567
|
-
readonly category:
|
|
567
|
+
readonly scope: 'embed.iframe';
|
|
568
|
+
readonly category: 'embed';
|
|
568
569
|
readonly severity: 0;
|
|
569
|
-
readonly title:
|
|
570
|
-
readonly description:
|
|
570
|
+
readonly title: 'Load another website inside this app';
|
|
571
|
+
readonly description: 'Lets the app embed external pages directly inside its own view.';
|
|
571
572
|
};
|
|
572
573
|
declare const gotoPermission: {
|
|
573
|
-
readonly scope:
|
|
574
|
-
readonly category:
|
|
574
|
+
readonly scope: 'embed.open';
|
|
575
|
+
readonly category: 'embed';
|
|
575
576
|
readonly severity: 0;
|
|
576
|
-
readonly title:
|
|
577
|
-
readonly description:
|
|
577
|
+
readonly title: 'Open a website inside this app';
|
|
578
|
+
readonly description: 'Lets the app navigate to another site without leaving its window.';
|
|
578
579
|
};
|
|
579
580
|
declare const evaluatePermission: {
|
|
580
|
-
readonly scope:
|
|
581
|
-
readonly category:
|
|
581
|
+
readonly scope: 'embed.evaluate';
|
|
582
|
+
readonly category: 'embed';
|
|
582
583
|
readonly severity: 0;
|
|
583
|
-
readonly title:
|
|
584
|
+
readonly title: 'Run app code inside an embedded frame';
|
|
584
585
|
readonly description: "Lets the app execute its own code inside a page it embedded, to read back a computed result.";
|
|
585
586
|
};
|
|
586
587
|
type GotoOptions = {
|
|
@@ -601,124 +602,124 @@ type AttachFrameOptions = {
|
|
|
601
602
|
declare const attachFrame: ({ iframe, domains, syncCookies, lockdown }: AttachFrameOptions) => Promise<Frame>;
|
|
602
603
|
|
|
603
604
|
declare const PERMISSIONS: readonly [{
|
|
604
|
-
readonly scope:
|
|
605
|
-
readonly category:
|
|
605
|
+
readonly scope: 'read.text';
|
|
606
|
+
readonly category: 'read';
|
|
606
607
|
readonly severity: 1;
|
|
607
|
-
readonly title:
|
|
608
|
-
readonly description:
|
|
608
|
+
readonly title: 'Read text from the page';
|
|
609
|
+
readonly description: 'Lets the app see the text shown on this page.';
|
|
609
610
|
}, {
|
|
610
|
-
readonly scope:
|
|
611
|
-
readonly category:
|
|
611
|
+
readonly scope: 'read.info';
|
|
612
|
+
readonly category: 'read';
|
|
612
613
|
readonly severity: 1;
|
|
613
|
-
readonly title:
|
|
614
|
-
readonly description:
|
|
614
|
+
readonly title: 'Read info from the page';
|
|
615
|
+
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
615
616
|
}, {
|
|
616
|
-
readonly scope:
|
|
617
|
-
readonly category:
|
|
617
|
+
readonly scope: 'read.visible';
|
|
618
|
+
readonly category: 'read';
|
|
618
619
|
readonly severity: 0;
|
|
619
|
-
readonly title:
|
|
620
|
-
readonly description:
|
|
620
|
+
readonly title: 'See what’s visible on the page';
|
|
621
|
+
readonly description: 'Lets the app check which elements are currently on screen.';
|
|
621
622
|
}, {
|
|
622
|
-
readonly scope:
|
|
623
|
-
readonly category:
|
|
623
|
+
readonly scope: 'read.check';
|
|
624
|
+
readonly category: 'read';
|
|
624
625
|
readonly severity: 0;
|
|
625
|
-
readonly title:
|
|
626
|
-
readonly description:
|
|
626
|
+
readonly title: 'Check if something is on the page';
|
|
627
|
+
readonly description: 'Lets the app test whether a specific element exists.';
|
|
627
628
|
}, {
|
|
628
|
-
readonly scope:
|
|
629
|
-
readonly category:
|
|
629
|
+
readonly scope: 'read.count';
|
|
630
|
+
readonly category: 'read';
|
|
630
631
|
readonly severity: 0;
|
|
631
|
-
readonly title:
|
|
632
|
-
readonly description:
|
|
632
|
+
readonly title: 'Count items on the page';
|
|
633
|
+
readonly description: 'Lets the app count how many matching elements are present.';
|
|
633
634
|
}, {
|
|
634
|
-
readonly scope:
|
|
635
|
-
readonly category:
|
|
635
|
+
readonly scope: 'act.click';
|
|
636
|
+
readonly category: 'act';
|
|
636
637
|
readonly severity: 3;
|
|
637
|
-
readonly title:
|
|
638
|
-
readonly description:
|
|
638
|
+
readonly title: 'Click on the page';
|
|
639
|
+
readonly description: 'Lets the app press buttons or links for you.';
|
|
639
640
|
}, {
|
|
640
|
-
readonly scope:
|
|
641
|
-
readonly category:
|
|
641
|
+
readonly scope: 'act.type';
|
|
642
|
+
readonly category: 'act';
|
|
642
643
|
readonly severity: 1;
|
|
643
|
-
readonly title:
|
|
644
|
-
readonly description:
|
|
644
|
+
readonly title: 'Type into a text field';
|
|
645
|
+
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
645
646
|
}, {
|
|
646
|
-
readonly scope:
|
|
647
|
-
readonly category:
|
|
647
|
+
readonly scope: 'act.hover';
|
|
648
|
+
readonly category: 'act';
|
|
648
649
|
readonly severity: 1;
|
|
649
|
-
readonly title:
|
|
650
|
-
readonly description:
|
|
650
|
+
readonly title: 'Hover over the page';
|
|
651
|
+
readonly description: 'Lets the app point at things to reveal menus or tooltips.';
|
|
651
652
|
}, {
|
|
652
|
-
readonly scope:
|
|
653
|
-
readonly category:
|
|
653
|
+
readonly scope: 'media.video';
|
|
654
|
+
readonly category: 'media';
|
|
654
655
|
readonly severity: 0;
|
|
655
|
-
readonly title:
|
|
656
|
-
readonly description:
|
|
656
|
+
readonly title: 'Control video playback';
|
|
657
|
+
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
657
658
|
}, {
|
|
658
|
-
readonly scope:
|
|
659
|
-
readonly category:
|
|
659
|
+
readonly scope: 'media.appear';
|
|
660
|
+
readonly category: 'media';
|
|
660
661
|
readonly severity: 0;
|
|
661
|
-
readonly title:
|
|
662
|
-
readonly description:
|
|
662
|
+
readonly title: 'Change page appearance';
|
|
663
|
+
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
663
664
|
}, {
|
|
664
|
-
readonly scope:
|
|
665
|
-
readonly category:
|
|
665
|
+
readonly scope: 'media.appearU';
|
|
666
|
+
readonly category: 'media';
|
|
666
667
|
readonly severity: 2;
|
|
667
668
|
readonly unsafe: true;
|
|
668
|
-
readonly title:
|
|
669
|
-
readonly description:
|
|
669
|
+
readonly title: 'Change page appearance (unsafe)';
|
|
670
|
+
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
670
671
|
}, {
|
|
671
|
-
readonly scope:
|
|
672
|
-
readonly category:
|
|
672
|
+
readonly scope: 'embed.iframe';
|
|
673
|
+
readonly category: 'embed';
|
|
673
674
|
readonly severity: 0;
|
|
674
|
-
readonly title:
|
|
675
|
-
readonly description:
|
|
675
|
+
readonly title: 'Load another website inside this app';
|
|
676
|
+
readonly description: 'Lets the app embed external pages directly inside its own view.';
|
|
676
677
|
}, {
|
|
677
|
-
readonly scope:
|
|
678
|
-
readonly category:
|
|
678
|
+
readonly scope: 'embed.open';
|
|
679
|
+
readonly category: 'embed';
|
|
679
680
|
readonly severity: 0;
|
|
680
|
-
readonly title:
|
|
681
|
-
readonly description:
|
|
681
|
+
readonly title: 'Open a website inside this app';
|
|
682
|
+
readonly description: 'Lets the app navigate to another site without leaving its window.';
|
|
682
683
|
}, {
|
|
683
|
-
readonly scope:
|
|
684
|
-
readonly category:
|
|
684
|
+
readonly scope: 'embed.evaluate';
|
|
685
|
+
readonly category: 'embed';
|
|
685
686
|
readonly severity: 0;
|
|
686
|
-
readonly title:
|
|
687
|
+
readonly title: 'Run app code inside an embedded frame';
|
|
687
688
|
readonly description: "Lets the app execute its own code inside a page it embedded, to read back a computed result.";
|
|
688
689
|
}, {
|
|
689
|
-
readonly scope:
|
|
690
|
-
readonly category:
|
|
690
|
+
readonly scope: 'network.fetch';
|
|
691
|
+
readonly category: 'network';
|
|
691
692
|
readonly severity: 0;
|
|
692
|
-
readonly title:
|
|
693
|
-
readonly description:
|
|
693
|
+
readonly title: 'Fetch data from other sites';
|
|
694
|
+
readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
|
|
694
695
|
}, {
|
|
695
|
-
readonly scope:
|
|
696
|
-
readonly category:
|
|
696
|
+
readonly scope: 'network.fetchCredentialed';
|
|
697
|
+
readonly category: 'network';
|
|
697
698
|
readonly severity: 3;
|
|
698
699
|
readonly unsafe: true;
|
|
699
|
-
readonly title:
|
|
700
|
-
readonly description:
|
|
700
|
+
readonly title: 'Fetch from other sites, signed in as you';
|
|
701
|
+
readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
|
|
701
702
|
}, {
|
|
702
|
-
readonly scope:
|
|
703
|
-
readonly category:
|
|
703
|
+
readonly scope: 'network.fetchLocal';
|
|
704
|
+
readonly category: 'network';
|
|
704
705
|
readonly severity: 3;
|
|
705
706
|
readonly unsafe: true;
|
|
706
|
-
readonly title:
|
|
707
|
-
readonly description:
|
|
707
|
+
readonly title: 'Access devices on your local network';
|
|
708
|
+
readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
|
|
708
709
|
}, {
|
|
709
|
-
readonly scope:
|
|
710
|
-
readonly category:
|
|
710
|
+
readonly scope: 'network.readCookie';
|
|
711
|
+
readonly category: 'network';
|
|
711
712
|
readonly severity: 3;
|
|
712
713
|
readonly unsafe: true;
|
|
713
|
-
readonly title:
|
|
714
|
-
readonly description:
|
|
714
|
+
readonly title: 'Read a site’s cookie';
|
|
715
|
+
readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
|
|
715
716
|
}, {
|
|
716
|
-
readonly scope:
|
|
717
|
-
readonly category:
|
|
717
|
+
readonly scope: 'network.modifyRequestHeaders';
|
|
718
|
+
readonly category: 'network';
|
|
718
719
|
readonly severity: 2;
|
|
719
720
|
readonly unsafe: true;
|
|
720
|
-
readonly title:
|
|
721
|
-
readonly description:
|
|
721
|
+
readonly title: 'Rewrite request headers to other sites';
|
|
722
|
+
readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
|
|
722
723
|
}];
|
|
723
724
|
type PermissionScope = (typeof PERMISSIONS)[number]['scope'];
|
|
724
725
|
|
|
@@ -736,7 +737,7 @@ declare const permissions: {
|
|
|
736
737
|
request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
|
|
737
738
|
};
|
|
738
739
|
|
|
739
|
-
declare const type:
|
|
740
|
+
declare const type: 'videoElement';
|
|
740
741
|
type TimeRangesTuple = [number, number][];
|
|
741
742
|
type VideoElementState = {
|
|
742
743
|
currentTime: number;
|
|
@@ -799,7 +800,7 @@ type BoxedVideoElement = BoxBase<typeof type> & {
|
|
|
799
800
|
declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
|
|
800
801
|
declare const isType: (value: unknown) => value is RemoteVideoElement;
|
|
801
802
|
declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
|
|
802
|
-
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[
|
|
803
|
+
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
|
|
803
804
|
|
|
804
805
|
type videoElement_BoxedVideoElement = BoxedVideoElement;
|
|
805
806
|
type videoElement_RemoteVideoElement = RemoteVideoElement;
|
|
@@ -814,57 +815,30 @@ declare namespace videoElement {
|
|
|
814
815
|
export type { videoElement_BoxedVideoElement as BoxedVideoElement, videoElement_RemoteVideoElement as RemoteVideoElement, videoElement_VideoElementState as VideoElementState };
|
|
815
816
|
}
|
|
816
817
|
|
|
817
|
-
declare const handleRevivableModules: (defaults: readonly [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_blob, 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, {
|
|
818
|
-
readonly type:
|
|
818
|
+
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_blob, 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, {
|
|
819
|
+
readonly type: 'nonFiniteNumber';
|
|
819
820
|
readonly isType: (value: unknown) => value is number;
|
|
820
|
-
readonly box: (value: number, context: osra.RevivableContext<any>) =>
|
|
821
|
+
readonly box: (value: number, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedNonFiniteNumber | number;
|
|
821
822
|
readonly revive: (value: osra_build_revivables_json_primitives.BoxedNonFiniteNumber, _context: osra.RevivableContext<any>) => number;
|
|
822
823
|
}, {
|
|
823
|
-
readonly type:
|
|
824
|
+
readonly type: 'undefined';
|
|
824
825
|
readonly isType: (value: unknown) => value is undefined;
|
|
825
826
|
readonly box: (value: undefined, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedUndefined | undefined;
|
|
826
827
|
readonly revive: (_value: osra_build_revivables_json_primitives.BoxedUndefined, _context: osra.RevivableContext<any>) => undefined;
|
|
827
828
|
}, {
|
|
828
|
-
readonly type:
|
|
829
|
+
readonly type: 'clonable';
|
|
829
830
|
readonly capableOnly: true;
|
|
830
831
|
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Clonable;
|
|
831
832
|
readonly box: (value: osra_build_revivables_fallbacks.Clonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
832
833
|
readonly revive: (value: osra_build_revivables_fallbacks.BoxedClonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
833
834
|
}, {
|
|
834
|
-
readonly type:
|
|
835
|
+
readonly type: 'transferable';
|
|
835
836
|
readonly capableOnly: true;
|
|
836
837
|
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Transferable;
|
|
837
838
|
readonly box: (value: osra_build_revivables_fallbacks.Transferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
838
839
|
readonly revive: (value: osra_build_revivables_fallbacks.BoxedTransferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
839
840
|
}, typeof osra_build_revivables_event_target, {
|
|
840
|
-
readonly type:
|
|
841
|
-
readonly isType: (value: unknown) => value is never;
|
|
842
|
-
readonly box: (_value: never, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.BoxedUnclonable;
|
|
843
|
-
readonly revive: (_value: osra_build_revivables_fallbacks.BoxedUnclonable, _context: osra.RevivableContext<any>) => Record<string, never>;
|
|
844
|
-
}]) => 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_blob, 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, {
|
|
845
|
-
readonly type: "nonFiniteNumber";
|
|
846
|
-
readonly isType: (value: unknown) => value is number;
|
|
847
|
-
readonly box: (value: number, context: osra.RevivableContext<any>) => number | osra_build_revivables_json_primitives.BoxedNonFiniteNumber;
|
|
848
|
-
readonly revive: (value: osra_build_revivables_json_primitives.BoxedNonFiniteNumber, _context: osra.RevivableContext<any>) => number;
|
|
849
|
-
}, {
|
|
850
|
-
readonly type: "undefined";
|
|
851
|
-
readonly isType: (value: unknown) => value is undefined;
|
|
852
|
-
readonly box: (value: undefined, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedUndefined | undefined;
|
|
853
|
-
readonly revive: (_value: osra_build_revivables_json_primitives.BoxedUndefined, _context: osra.RevivableContext<any>) => undefined;
|
|
854
|
-
}, {
|
|
855
|
-
readonly type: "clonable";
|
|
856
|
-
readonly capableOnly: true;
|
|
857
|
-
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Clonable;
|
|
858
|
-
readonly box: (value: osra_build_revivables_fallbacks.Clonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
859
|
-
readonly revive: (value: osra_build_revivables_fallbacks.BoxedClonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
860
|
-
}, {
|
|
861
|
-
readonly type: "transferable";
|
|
862
|
-
readonly capableOnly: true;
|
|
863
|
-
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Transferable;
|
|
864
|
-
readonly box: (value: osra_build_revivables_fallbacks.Transferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
865
|
-
readonly revive: (value: osra_build_revivables_fallbacks.BoxedTransferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
866
|
-
}, typeof osra_build_revivables_event_target, {
|
|
867
|
-
readonly type: "unclonable";
|
|
841
|
+
readonly type: 'unclonable';
|
|
868
842
|
readonly isType: (value: unknown) => value is never;
|
|
869
843
|
readonly box: (_value: never, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.BoxedUnclonable;
|
|
870
844
|
readonly revive: (_value: osra_build_revivables_fallbacks.BoxedUnclonable, _context: osra.RevivableContext<any>) => Record<string, never>;
|
|
@@ -1114,6 +1088,21 @@ declare const processTcpSocket: ({ connectedPacket, dataReadableStream, dataWrit
|
|
|
1114
1088
|
}>;
|
|
1115
1089
|
type TcpSocketResult = Awaited<ReturnType<typeof processTcpSocket>>;
|
|
1116
1090
|
|
|
1091
|
+
type StorageEntry = {
|
|
1092
|
+
path: string;
|
|
1093
|
+
size: number;
|
|
1094
|
+
contentType: string | null;
|
|
1095
|
+
updatedAt: string;
|
|
1096
|
+
};
|
|
1097
|
+
type StorageQuota$1 = {
|
|
1098
|
+
usedBytes: number;
|
|
1099
|
+
limitBytes: number;
|
|
1100
|
+
remaining: number;
|
|
1101
|
+
objects: number;
|
|
1102
|
+
maxObjects: number;
|
|
1103
|
+
};
|
|
1104
|
+
type WriteData$3 = Blob | ArrayBuffer | Uint8Array | string;
|
|
1105
|
+
|
|
1117
1106
|
type Account = {
|
|
1118
1107
|
name: string;
|
|
1119
1108
|
image: string | null;
|
|
@@ -1137,7 +1126,7 @@ type Quota = {
|
|
|
1137
1126
|
|
|
1138
1127
|
declare const resolvers: {
|
|
1139
1128
|
readonly cloud: {
|
|
1140
|
-
readonly fetch: (input: string |
|
|
1129
|
+
readonly fetch: (input: string | Request | URL, init?: (RequestInit | undefined) & {
|
|
1141
1130
|
render?: boolean;
|
|
1142
1131
|
}) => Promise<Response>;
|
|
1143
1132
|
readonly quota: () => Promise<Quota>;
|
|
@@ -1147,6 +1136,14 @@ declare const resolvers: {
|
|
|
1147
1136
|
family: 0 | 4 | 6;
|
|
1148
1137
|
}) => Promise<T extends true ? AddressLookupResult[] : AddressLookupResult | undefined>;
|
|
1149
1138
|
};
|
|
1139
|
+
readonly fs: {
|
|
1140
|
+
readonly available: () => Promise<boolean>;
|
|
1141
|
+
readonly list: () => Promise<StorageEntry[]>;
|
|
1142
|
+
readonly quota: () => Promise<StorageQuota$1>;
|
|
1143
|
+
readonly readFile: (path: string) => Promise<Blob>;
|
|
1144
|
+
readonly writeFile: (path: string, data: WriteData$3, contentType: string | null) => Promise<void>;
|
|
1145
|
+
readonly remove: (path: string) => Promise<void>;
|
|
1146
|
+
};
|
|
1150
1147
|
readonly webvpn: {
|
|
1151
1148
|
readonly tcpSocket: ({ remoteAddress: _remoteAddress, remotePort }: {
|
|
1152
1149
|
remoteAddress: string;
|
|
@@ -1232,7 +1229,7 @@ declare const resolvers: {
|
|
|
1232
1229
|
readonly logout: () => void;
|
|
1233
1230
|
readonly onChange: (listener: () => void) => (() => void);
|
|
1234
1231
|
};
|
|
1235
|
-
readonly proxyFetch: (input: string |
|
|
1232
|
+
readonly proxyFetch: (input: string | Request | URL, init?: (RequestInit | undefined) & {
|
|
1236
1233
|
render?: boolean;
|
|
1237
1234
|
}) => Promise<Response>;
|
|
1238
1235
|
readonly webVpnTcpSocket: ({ remoteAddress: _remoteAddress, remotePort }: {
|
|
@@ -1334,7 +1331,7 @@ type QuotaStatus = {
|
|
|
1334
1331
|
/** current effective egress rate cap, bits per second (for display) */
|
|
1335
1332
|
bitsPerSecond: number;
|
|
1336
1333
|
};
|
|
1337
|
-
declare const quota: () => Promise<QuotaStatus>;
|
|
1334
|
+
declare const quota$1: () => Promise<QuotaStatus>;
|
|
1338
1335
|
|
|
1339
1336
|
declare const lookup: <T extends boolean = false>(hostname: string, options?: {
|
|
1340
1337
|
all?: T;
|
|
@@ -1348,6 +1345,36 @@ declare namespace dns$1 {
|
|
|
1348
1345
|
export type { dns$1_AddressLookupResult as AddressLookupResult };
|
|
1349
1346
|
}
|
|
1350
1347
|
|
|
1348
|
+
type FileEntry$1 = {
|
|
1349
|
+
path: string;
|
|
1350
|
+
size: number;
|
|
1351
|
+
contentType: string | null;
|
|
1352
|
+
updatedAt: string;
|
|
1353
|
+
};
|
|
1354
|
+
type StorageQuota = {
|
|
1355
|
+
usedBytes: number;
|
|
1356
|
+
limitBytes: number;
|
|
1357
|
+
remaining: number;
|
|
1358
|
+
objects: number;
|
|
1359
|
+
maxObjects: number;
|
|
1360
|
+
};
|
|
1361
|
+
type WriteData$2 = Blob | ArrayBuffer | Uint8Array | string;
|
|
1362
|
+
declare const available$4: () => Promise<boolean>;
|
|
1363
|
+
declare const list$2: () => Promise<FileEntry$1[]>;
|
|
1364
|
+
declare const quota: () => Promise<StorageQuota>;
|
|
1365
|
+
declare const readFile$3: (path: string) => Promise<Blob>;
|
|
1366
|
+
declare const writeFile$3: (path: string, data: WriteData$2, opts?: {
|
|
1367
|
+
contentType?: string;
|
|
1368
|
+
}) => Promise<void>;
|
|
1369
|
+
declare const remove$2: (path: string) => Promise<void>;
|
|
1370
|
+
|
|
1371
|
+
type storage_StorageQuota = StorageQuota;
|
|
1372
|
+
declare const storage_quota: typeof quota;
|
|
1373
|
+
declare namespace storage {
|
|
1374
|
+
export { available$4 as available, list$2 as list, storage_quota as quota, readFile$3 as readFile, remove$2 as remove, writeFile$3 as writeFile };
|
|
1375
|
+
export type { FileEntry$1 as FileEntry, storage_StorageQuota as StorageQuota, WriteData$2 as WriteData };
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1351
1378
|
declare const isIPv4: (input: string) => boolean;
|
|
1352
1379
|
declare const isIPv6: (input: string) => boolean;
|
|
1353
1380
|
declare const isIP: (input: string) => 0 | 4 | 6;
|
|
@@ -1802,13 +1829,12 @@ declare namespace http {
|
|
|
1802
1829
|
export type { http_ClientRequestArgs as ClientRequestArgs, http_ParsedHead as ParsedHead, http_RequestListener as RequestListener, http_Server as Server, http_ServerResponseOptions as ServerResponseOptions };
|
|
1803
1830
|
}
|
|
1804
1831
|
|
|
1805
|
-
declare const available$
|
|
1832
|
+
declare const available$3: () => boolean;
|
|
1806
1833
|
|
|
1807
1834
|
type cloud_QuotaStatus = QuotaStatus;
|
|
1808
1835
|
declare const cloud_http: typeof http;
|
|
1809
|
-
declare const cloud_quota: typeof quota;
|
|
1810
1836
|
declare namespace cloud {
|
|
1811
|
-
export { available$
|
|
1837
|
+
export { available$3 as available, dgram$1 as dgram, dns$1 as dns, cloudFetch as fetch, storage as fs, cloud_http as http, net$1 as net, quota$1 as quota };
|
|
1812
1838
|
export type { cloud_QuotaStatus as QuotaStatus };
|
|
1813
1839
|
}
|
|
1814
1840
|
|
|
@@ -1868,7 +1894,7 @@ declare namespace extension {
|
|
|
1868
1894
|
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 };
|
|
1869
1895
|
}
|
|
1870
1896
|
|
|
1871
|
-
declare const available: () => boolean;
|
|
1897
|
+
declare const available$2: () => boolean;
|
|
1872
1898
|
declare const fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
1873
1899
|
declare const dns: {
|
|
1874
1900
|
lookup: (..._args: unknown[]) => never;
|
|
@@ -1881,49 +1907,193 @@ declare const net: {
|
|
|
1881
1907
|
declare const dgram: {
|
|
1882
1908
|
createSocket: (..._args: unknown[]) => never;
|
|
1883
1909
|
};
|
|
1884
|
-
declare const fs
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1910
|
+
declare const fs: {
|
|
1911
|
+
available: () => Promise<boolean>;
|
|
1912
|
+
list: (..._args: unknown[]) => never;
|
|
1913
|
+
readFile: (..._args: unknown[]) => never;
|
|
1914
|
+
writeFile: (..._args: unknown[]) => never;
|
|
1915
|
+
remove: (..._args: unknown[]) => never;
|
|
1889
1916
|
};
|
|
1890
1917
|
|
|
1891
|
-
declare const desktop_available: typeof available;
|
|
1892
1918
|
declare const desktop_dgram: typeof dgram;
|
|
1893
1919
|
declare const desktop_dns: typeof dns;
|
|
1894
1920
|
declare const desktop_fetch: typeof fetch;
|
|
1921
|
+
declare const desktop_fs: typeof fs;
|
|
1895
1922
|
declare const desktop_net: typeof net;
|
|
1896
1923
|
declare namespace desktop {
|
|
1897
1924
|
export {
|
|
1898
|
-
|
|
1925
|
+
available$2 as available,
|
|
1899
1926
|
desktop_dgram as dgram,
|
|
1900
1927
|
desktop_dns as dns,
|
|
1901
1928
|
desktop_fetch as fetch,
|
|
1902
|
-
|
|
1929
|
+
desktop_fs as fs,
|
|
1903
1930
|
desktop_net as net,
|
|
1904
1931
|
};
|
|
1905
1932
|
}
|
|
1906
1933
|
|
|
1907
|
-
type
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
};
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
declare
|
|
1925
|
-
|
|
1926
|
-
|
|
1934
|
+
type FileEntry = {
|
|
1935
|
+
path: string;
|
|
1936
|
+
size: number;
|
|
1937
|
+
contentType: string | null;
|
|
1938
|
+
updatedAt: string | null;
|
|
1939
|
+
};
|
|
1940
|
+
type WriteData$1 = Blob | ArrayBuffer | Uint8Array | string;
|
|
1941
|
+
type FileSystem = {
|
|
1942
|
+
available: () => Promise<boolean>;
|
|
1943
|
+
list: () => Promise<FileEntry[]>;
|
|
1944
|
+
readFile: (path: string) => Promise<Blob>;
|
|
1945
|
+
writeFile: (path: string, data: WriteData$1, opts?: {
|
|
1946
|
+
contentType?: string;
|
|
1947
|
+
}) => Promise<void>;
|
|
1948
|
+
remove: (path: string) => Promise<void>;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
declare const available$1: () => Promise<boolean>;
|
|
1952
|
+
declare const list$1: () => Promise<FileEntry[]>;
|
|
1953
|
+
declare const readFile$2: (path: string) => Promise<Blob>;
|
|
1954
|
+
declare const writeFile$2: (path: string, data: WriteData$1, opts?: {
|
|
1955
|
+
contentType?: string;
|
|
1956
|
+
}) => Promise<void>;
|
|
1957
|
+
declare const remove$1: (path: string) => Promise<void>;
|
|
1958
|
+
declare const pull: (path: string) => Promise<Blob>;
|
|
1959
|
+
|
|
1960
|
+
type index$1_FileEntry = FileEntry;
|
|
1961
|
+
type index$1_FileSystem = FileSystem;
|
|
1962
|
+
declare const index$1_pull: typeof pull;
|
|
1963
|
+
declare namespace index$1 {
|
|
1964
|
+
export { available$1 as available, list$1 as list, index$1_pull as pull, readFile$2 as readFile, remove$1 as remove, writeFile$2 as writeFile };
|
|
1965
|
+
export type { index$1_FileEntry as FileEntry, index$1_FileSystem as FileSystem, WriteData$1 as WriteData };
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
declare const available: () => Promise<boolean>;
|
|
1969
|
+
declare const writeFile$1: (path: string, data: WriteData$1, opts?: {
|
|
1970
|
+
contentType?: string;
|
|
1971
|
+
}) => Promise<void>;
|
|
1972
|
+
declare const readFile$1: (path: string) => Promise<Blob>;
|
|
1973
|
+
declare const remove: (path: string) => Promise<void>;
|
|
1974
|
+
declare const list: () => Promise<FileEntry[]>;
|
|
1975
|
+
|
|
1976
|
+
declare const opfs_available: typeof available;
|
|
1977
|
+
declare const opfs_list: typeof list;
|
|
1978
|
+
declare const opfs_remove: typeof remove;
|
|
1979
|
+
declare namespace opfs {
|
|
1980
|
+
export {
|
|
1981
|
+
opfs_available as available,
|
|
1982
|
+
opfs_list as list,
|
|
1983
|
+
readFile$1 as readFile,
|
|
1984
|
+
opfs_remove as remove,
|
|
1985
|
+
writeFile$1 as writeFile,
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
type Stats = {
|
|
1990
|
+
size: number;
|
|
1991
|
+
mtimeMs: number;
|
|
1992
|
+
mtime: Date;
|
|
1993
|
+
atimeMs: number;
|
|
1994
|
+
ctimeMs: number;
|
|
1995
|
+
mode: number;
|
|
1996
|
+
isFile: () => boolean;
|
|
1997
|
+
isDirectory: () => boolean;
|
|
1998
|
+
isSymbolicLink: () => boolean;
|
|
1999
|
+
};
|
|
2000
|
+
declare const mount: () => Promise<void>;
|
|
2001
|
+
declare const remount: () => Promise<void>;
|
|
2002
|
+
declare const flush: () => Promise<void>;
|
|
2003
|
+
|
|
2004
|
+
type ReadOptions = BufferEncoding | {
|
|
2005
|
+
encoding?: BufferEncoding | null;
|
|
2006
|
+
flag?: string;
|
|
2007
|
+
} | null | undefined;
|
|
2008
|
+
type WriteOptions = BufferEncoding | {
|
|
2009
|
+
encoding?: BufferEncoding | null;
|
|
2010
|
+
mode?: number;
|
|
2011
|
+
flag?: string;
|
|
2012
|
+
} | null | undefined;
|
|
2013
|
+
type WriteData = string | Uint8Array | ArrayBuffer | DataView;
|
|
2014
|
+
type MakeOptions = {
|
|
2015
|
+
recursive?: boolean;
|
|
2016
|
+
} | number | null | undefined;
|
|
2017
|
+
type Callback<R> = (error: NodeJS.ErrnoException | null, result?: R) => void;
|
|
2018
|
+
|
|
2019
|
+
declare const readFileSync: (path: PathLike, options?: ReadOptions) => Buffer | string;
|
|
2020
|
+
declare const writeFileSync: (path: PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2021
|
+
declare const appendFileSync: (path: PathLike, data: WriteData, options?: WriteOptions) => void;
|
|
2022
|
+
declare const existsSync: (path: PathLike) => boolean;
|
|
2023
|
+
declare const statSync: (path: PathLike) => Stats;
|
|
2024
|
+
declare const lstatSync: (path: PathLike) => Stats;
|
|
2025
|
+
declare const readdirSync: (path: PathLike) => string[];
|
|
2026
|
+
declare const mkdirSync: (path: PathLike, options?: MakeOptions) => void;
|
|
2027
|
+
declare const rmSync: (path: PathLike, options?: {
|
|
2028
|
+
recursive?: boolean;
|
|
2029
|
+
force?: boolean;
|
|
2030
|
+
}) => void;
|
|
2031
|
+
declare const rmdirSync: (path: PathLike, options?: {
|
|
2032
|
+
recursive?: boolean;
|
|
2033
|
+
}) => void;
|
|
2034
|
+
declare const unlinkSync: (path: PathLike) => void;
|
|
2035
|
+
declare const renameSync: (from: PathLike, to: PathLike) => void;
|
|
2036
|
+
declare const readFile: (path: PathLike, a: ReadOptions | Callback<Buffer | string>, b?: Callback<Buffer | string>) => void;
|
|
2037
|
+
declare const writeFile: (path: PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2038
|
+
declare const appendFile: (path: PathLike, data: WriteData, a: WriteOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2039
|
+
declare const stat: (path: PathLike, callback: Callback<Stats>) => void;
|
|
2040
|
+
declare const readdir: (path: PathLike, a: unknown, b?: Callback<string[]>) => void;
|
|
2041
|
+
declare const mkdir: (path: PathLike, a: MakeOptions | Callback<void>, b?: Callback<void>) => void;
|
|
2042
|
+
declare const rm: (path: PathLike, a: {
|
|
2043
|
+
recursive?: boolean;
|
|
2044
|
+
} | Callback<void>, b?: Callback<void>) => void;
|
|
2045
|
+
declare const unlink: (path: PathLike, callback: Callback<void>) => void;
|
|
2046
|
+
declare const rename: (from: PathLike, to: PathLike, callback: Callback<void>) => void;
|
|
2047
|
+
declare const exists: (path: PathLike, callback: (exists: boolean) => void) => void;
|
|
2048
|
+
declare const promises: {
|
|
2049
|
+
readFile: (path: PathLike, options?: ReadOptions) => Promise<Buffer | string>;
|
|
2050
|
+
writeFile: (path: PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2051
|
+
appendFile: (path: PathLike, data: WriteData, options?: WriteOptions) => Promise<void>;
|
|
2052
|
+
stat: (path: PathLike) => Promise<Stats>;
|
|
2053
|
+
lstat: (path: PathLike) => Promise<Stats>;
|
|
2054
|
+
readdir: (path: PathLike) => Promise<string[]>;
|
|
2055
|
+
mkdir: (path: PathLike, options?: MakeOptions) => Promise<void>;
|
|
2056
|
+
rm: (path: PathLike, options?: {
|
|
2057
|
+
recursive?: boolean;
|
|
2058
|
+
}) => Promise<void>;
|
|
2059
|
+
rmdir: (path: PathLike, options?: {
|
|
2060
|
+
recursive?: boolean;
|
|
2061
|
+
}) => Promise<void>;
|
|
2062
|
+
unlink: (path: PathLike) => Promise<void>;
|
|
2063
|
+
rename: (from: PathLike, to: PathLike) => Promise<void>;
|
|
2064
|
+
access: (path: PathLike) => Promise<void>;
|
|
2065
|
+
};
|
|
2066
|
+
|
|
2067
|
+
type index_Stats = Stats;
|
|
2068
|
+
declare const index_appendFile: typeof appendFile;
|
|
2069
|
+
declare const index_appendFileSync: typeof appendFileSync;
|
|
2070
|
+
declare const index_exists: typeof exists;
|
|
2071
|
+
declare const index_existsSync: typeof existsSync;
|
|
2072
|
+
declare const index_flush: typeof flush;
|
|
2073
|
+
declare const index_lstatSync: typeof lstatSync;
|
|
2074
|
+
declare const index_mkdir: typeof mkdir;
|
|
2075
|
+
declare const index_mkdirSync: typeof mkdirSync;
|
|
2076
|
+
declare const index_mount: typeof mount;
|
|
2077
|
+
declare const index_promises: typeof promises;
|
|
2078
|
+
declare const index_readFile: typeof readFile;
|
|
2079
|
+
declare const index_readFileSync: typeof readFileSync;
|
|
2080
|
+
declare const index_readdir: typeof readdir;
|
|
2081
|
+
declare const index_readdirSync: typeof readdirSync;
|
|
2082
|
+
declare const index_remount: typeof remount;
|
|
2083
|
+
declare const index_rename: typeof rename;
|
|
2084
|
+
declare const index_renameSync: typeof renameSync;
|
|
2085
|
+
declare const index_rm: typeof rm;
|
|
2086
|
+
declare const index_rmSync: typeof rmSync;
|
|
2087
|
+
declare const index_rmdirSync: typeof rmdirSync;
|
|
2088
|
+
declare const index_stat: typeof stat;
|
|
2089
|
+
declare const index_statSync: typeof statSync;
|
|
2090
|
+
declare const index_unlink: typeof unlink;
|
|
2091
|
+
declare const index_unlinkSync: typeof unlinkSync;
|
|
2092
|
+
declare const index_writeFile: typeof writeFile;
|
|
2093
|
+
declare const index_writeFileSync: typeof writeFileSync;
|
|
2094
|
+
declare namespace index {
|
|
2095
|
+
export { index_appendFile as appendFile, index_appendFileSync as appendFileSync, 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 };
|
|
2096
|
+
export type { index_Stats as Stats };
|
|
1927
2097
|
}
|
|
1928
2098
|
|
|
1929
2099
|
declare const relayWorker: (worker: Worker, options?: {
|
|
@@ -1966,5 +2136,5 @@ type ConnectButtonProps = {
|
|
|
1966
2136
|
};
|
|
1967
2137
|
declare const ConnectButton: ({ className, style }?: ConnectButtonProps) => ReactElement;
|
|
1968
2138
|
|
|
1969
|
-
export { ATTACH_FRAME_EVENT_KEY, ConnectButton, account, assertAttachableFrameUrl, assertFetchableUrl, 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, fs, gotoPermission, handleRevivableModules, http, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, net$1 as net, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
|
|
2139
|
+
export { ATTACH_FRAME_EVENT_KEY, ConnectButton, account, assertAttachableFrameUrl, assertFetchableUrl, 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 nodeFs, opfs, permissions, promptInstall, readCookiePermission, relayWorker, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
|
|
1970
2140
|
export type { AttachFrameOptions, BoxedVideoElement, ConnectButtonProps, CookieDetails, FetchInit, Frame, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState };
|