@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/extension.d.ts
CHANGED
|
@@ -1,859 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import * as osra_build_revivables_fallbacks from 'osra/build/revivables/fallbacks';
|
|
5
|
-
import * as osra_build_revivables_json_primitives from 'osra/build/revivables/json-primitives';
|
|
6
|
-
import * as osra_build_revivables_async_iterator from 'osra/build/revivables/async-iterator';
|
|
7
|
-
import * as osra_build_revivables_event from 'osra/build/revivables/event';
|
|
8
|
-
import * as osra_build_revivables_symbol from 'osra/build/revivables/symbol';
|
|
9
|
-
import * as osra_build_revivables_bigint from 'osra/build/revivables/bigint';
|
|
10
|
-
import * as osra_build_revivables_set from 'osra/build/revivables/set';
|
|
11
|
-
import * as osra_build_revivables_map from 'osra/build/revivables/map';
|
|
12
|
-
import * as osra_build_revivables_request from 'osra/build/revivables/request';
|
|
13
|
-
import * as osra_build_revivables_response from 'osra/build/revivables/response';
|
|
14
|
-
import * as osra_build_revivables_abort_signal from 'osra/build/revivables/abort-signal';
|
|
15
|
-
import * as osra_build_revivables_writable_stream from 'osra/build/revivables/writable-stream';
|
|
16
|
-
import * as osra_build_revivables_readable_stream from 'osra/build/revivables/readable-stream';
|
|
17
|
-
import * as osra_build_revivables_message_port from 'osra/build/revivables/message-port';
|
|
18
|
-
import * as osra_build_revivables_function from 'osra/build/revivables/function';
|
|
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
|
-
|
|
28
|
-
declare const fetchPermission: {
|
|
29
|
-
readonly scope: 'network.fetch';
|
|
30
|
-
readonly category: 'network';
|
|
31
|
-
readonly severity: 0;
|
|
32
|
-
readonly title: 'Fetch data from other sites';
|
|
33
|
-
readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
|
|
34
|
-
};
|
|
35
|
-
declare const fetchCredentialedPermission: {
|
|
36
|
-
readonly scope: 'network.fetchCredentialed';
|
|
37
|
-
readonly category: 'network';
|
|
38
|
-
readonly severity: 3;
|
|
39
|
-
readonly unsafe: true;
|
|
40
|
-
readonly title: 'Fetch from other sites, signed in as you';
|
|
41
|
-
readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
|
|
42
|
-
};
|
|
43
|
-
declare const fetchLocalPermission: {
|
|
44
|
-
readonly scope: 'network.fetchLocal';
|
|
45
|
-
readonly category: 'network';
|
|
46
|
-
readonly severity: 3;
|
|
47
|
-
readonly unsafe: true;
|
|
48
|
-
readonly title: 'Access devices on your local network';
|
|
49
|
-
readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
|
|
50
|
-
};
|
|
51
|
-
declare const isLocalNetworkUrl: (raw: string) => boolean;
|
|
52
|
-
type ProxyFetchRequest = {
|
|
53
|
-
url: string;
|
|
54
|
-
method: string;
|
|
55
|
-
headers: [string, string][];
|
|
56
|
-
body: ArrayBuffer | null;
|
|
57
|
-
credentials: 'include' | 'omit';
|
|
58
|
-
redirect: RequestRedirect;
|
|
59
|
-
unsafeHeaders?: [string, string][];
|
|
60
|
-
reason?: string;
|
|
61
|
-
signal?: AbortSignal;
|
|
62
|
-
};
|
|
63
|
-
type FetchInit = RequestInit & {
|
|
64
|
-
reason?: string;
|
|
65
|
-
};
|
|
66
|
-
declare const isBlockedFetchUrl: (raw: string) => boolean;
|
|
67
|
-
declare const assertFetchableUrl: (raw: string) => void;
|
|
68
|
-
declare const fetch: (input: RequestInfo | URL, init?: FetchInit) => Promise<Response>;
|
|
69
|
-
|
|
70
|
-
declare const readCookiePermission: {
|
|
71
|
-
readonly scope: 'network.readCookie';
|
|
72
|
-
readonly category: 'network';
|
|
73
|
-
readonly severity: 3;
|
|
74
|
-
readonly unsafe: true;
|
|
75
|
-
readonly title: 'Read a site’s cookie';
|
|
76
|
-
readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
|
|
77
|
-
};
|
|
78
|
-
type CookieDetails = {
|
|
79
|
-
url: string;
|
|
80
|
-
name: string;
|
|
81
|
-
};
|
|
82
|
-
type SiteCookie = {
|
|
83
|
-
name: string;
|
|
84
|
-
value: string;
|
|
85
|
-
};
|
|
86
|
-
declare const cookies: {
|
|
87
|
-
get: (details: CookieDetails) => Promise<SiteCookie | null>;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
declare const modifyRequestHeadersPermission: {
|
|
91
|
-
readonly scope: 'network.modifyRequestHeaders';
|
|
92
|
-
readonly category: 'network';
|
|
93
|
-
readonly severity: 2;
|
|
94
|
-
readonly unsafe: true;
|
|
95
|
-
readonly title: 'Rewrite request headers to other sites';
|
|
96
|
-
readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
|
|
97
|
-
};
|
|
98
|
-
type HeaderOperation = {
|
|
99
|
-
header: string;
|
|
100
|
-
operation: 'set' | 'remove';
|
|
101
|
-
value?: string;
|
|
102
|
-
};
|
|
103
|
-
type RequestHeaderRule = {
|
|
104
|
-
domains: string[];
|
|
105
|
-
requestHeaders: HeaderOperation[];
|
|
106
|
-
reason?: string;
|
|
107
|
-
};
|
|
108
|
-
declare const setRequestHeaderRule: (rule: RequestHeaderRule) => Promise<{
|
|
109
|
-
ruleId: number;
|
|
110
|
-
}>;
|
|
111
|
-
declare const removeRequestHeaderRule: (ruleId: number) => Promise<void>;
|
|
112
|
-
|
|
113
|
-
type ExtractType<M> = M extends {
|
|
114
|
-
type: infer T extends string;
|
|
115
|
-
} ? T : never;
|
|
116
|
-
type ExtractResolverArgs<M> = M extends {
|
|
117
|
-
resolve: (context: any, ...args: infer A) => Element[];
|
|
118
|
-
} ? A : never;
|
|
119
|
-
type ExtractOperationArgs<M> = M extends {
|
|
120
|
-
resolve: (context: any, ...args: infer A) => any;
|
|
121
|
-
} ? A : never;
|
|
122
|
-
type ExtractResolverReturn<M> = M extends {
|
|
123
|
-
resolve: (context: any, ...args: any[]) => infer R;
|
|
124
|
-
} ? R : never;
|
|
125
|
-
|
|
126
|
-
declare const type$i: 'locator';
|
|
127
|
-
declare const resolve$h: (context: LocatorContext, selector: string) => Element[];
|
|
128
|
-
declare const render$7: SelectorRenderer;
|
|
129
|
-
|
|
130
|
-
declare namespace locatorSel {
|
|
131
|
-
export {
|
|
132
|
-
render$7 as render,
|
|
133
|
-
resolve$h as resolve,
|
|
134
|
-
type$i as type,
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
declare const type$h: 'getByRole';
|
|
139
|
-
declare const resolve$g: (context: LocatorContext, role: string) => Element[];
|
|
140
|
-
declare const render$6: SelectorRenderer;
|
|
141
|
-
|
|
142
|
-
declare namespace getByRole {
|
|
143
|
-
export {
|
|
144
|
-
render$6 as render,
|
|
145
|
-
resolve$g as resolve,
|
|
146
|
-
type$h as type,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
declare const type$g: 'getByText';
|
|
151
|
-
declare const resolve$f: (context: LocatorContext, text: string) => Element[];
|
|
152
|
-
declare const render$5: SelectorRenderer;
|
|
153
|
-
|
|
154
|
-
declare namespace getByText {
|
|
155
|
-
export {
|
|
156
|
-
render$5 as render,
|
|
157
|
-
resolve$f as resolve,
|
|
158
|
-
type$g as type,
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
declare const type$f: 'getByTestId';
|
|
163
|
-
declare const resolve$e: (context: LocatorContext, testId: string) => Element[];
|
|
164
|
-
declare const render$4: SelectorRenderer;
|
|
165
|
-
|
|
166
|
-
declare namespace getByTestId {
|
|
167
|
-
export {
|
|
168
|
-
render$4 as render,
|
|
169
|
-
resolve$e as resolve,
|
|
170
|
-
type$f as type,
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare const type$e: 'first';
|
|
175
|
-
declare const resolve$d: (context: LocatorContext) => Element[];
|
|
176
|
-
declare const render$3: SelectorRenderer;
|
|
177
|
-
|
|
178
|
-
declare namespace first {
|
|
179
|
-
export {
|
|
180
|
-
render$3 as render,
|
|
181
|
-
resolve$d as resolve,
|
|
182
|
-
type$e as type,
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
declare const type$d: 'nth';
|
|
187
|
-
declare const resolve$c: (context: LocatorContext, index: number) => Element[];
|
|
188
|
-
declare const render$2: SelectorRenderer;
|
|
189
|
-
|
|
190
|
-
declare namespace nth {
|
|
191
|
-
export {
|
|
192
|
-
render$2 as render,
|
|
193
|
-
resolve$c as resolve,
|
|
194
|
-
type$d as type,
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
declare const type$c: 'click';
|
|
199
|
-
declare const permission$9: {
|
|
200
|
-
readonly scope: 'act.click';
|
|
201
|
-
readonly category: 'act';
|
|
202
|
-
readonly severity: 3;
|
|
203
|
-
readonly title: 'Click on the page';
|
|
204
|
-
readonly description: 'Lets the app press buttons or links for you.';
|
|
205
|
-
};
|
|
206
|
-
declare const resolve$b: (context: LocatorContext, options?: OperationTimeoutOptions & {
|
|
207
|
-
position?: {
|
|
208
|
-
x?: number;
|
|
209
|
-
y?: number;
|
|
210
|
-
};
|
|
211
|
-
}) => void;
|
|
212
|
-
|
|
213
|
-
declare namespace click {
|
|
214
|
-
export {
|
|
215
|
-
permission$9 as permission,
|
|
216
|
-
resolve$b as resolve,
|
|
217
|
-
type$c as type,
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
declare const type$b: 'fill';
|
|
222
|
-
declare const permission$8: {
|
|
223
|
-
readonly scope: 'act.type';
|
|
224
|
-
readonly category: 'act';
|
|
225
|
-
readonly severity: 1;
|
|
226
|
-
readonly title: 'Type into a text field';
|
|
227
|
-
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
228
|
-
};
|
|
229
|
-
declare const resolve$a: (context: LocatorContext, value: string, _options?: OperationTimeoutOptions) => void;
|
|
230
|
-
|
|
231
|
-
declare namespace fill {
|
|
232
|
-
export {
|
|
233
|
-
permission$8 as permission,
|
|
234
|
-
resolve$a as resolve,
|
|
235
|
-
type$b as type,
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare const type$a: 'hover';
|
|
240
|
-
declare const permission$7: {
|
|
241
|
-
readonly scope: 'act.hover';
|
|
242
|
-
readonly category: 'act';
|
|
243
|
-
readonly severity: 1;
|
|
244
|
-
readonly title: 'Hover over the page';
|
|
245
|
-
readonly description: 'Lets the app point at things to reveal menus or tooltips.';
|
|
246
|
-
};
|
|
247
|
-
declare const resolve$9: (context: LocatorContext, options?: OperationTimeoutOptions & {
|
|
248
|
-
position?: {
|
|
249
|
-
x?: number;
|
|
250
|
-
y?: number;
|
|
251
|
-
};
|
|
252
|
-
}) => void;
|
|
253
|
-
|
|
254
|
-
declare namespace hover {
|
|
255
|
-
export {
|
|
256
|
-
permission$7 as permission,
|
|
257
|
-
resolve$9 as resolve,
|
|
258
|
-
type$a as type,
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
declare const type$9: 'textContent';
|
|
263
|
-
declare const permission$6: {
|
|
264
|
-
readonly scope: 'read.text';
|
|
265
|
-
readonly category: 'read';
|
|
266
|
-
readonly severity: 1;
|
|
267
|
-
readonly title: 'Read text from the page';
|
|
268
|
-
readonly description: 'Lets the app see the text shown on this page.';
|
|
269
|
-
};
|
|
270
|
-
declare const resolve$8: (context: LocatorContext, _options?: OperationTimeoutOptions) => string;
|
|
271
|
-
|
|
272
|
-
declare namespace textContent {
|
|
273
|
-
export {
|
|
274
|
-
permission$6 as permission,
|
|
275
|
-
resolve$8 as resolve,
|
|
276
|
-
type$9 as type,
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
declare const type$8: 'isVisible';
|
|
281
|
-
declare const permission$5: {
|
|
282
|
-
readonly scope: 'read.visible';
|
|
283
|
-
readonly category: 'read';
|
|
284
|
-
readonly severity: 0;
|
|
285
|
-
readonly title: 'See what’s visible on the page';
|
|
286
|
-
readonly description: 'Lets the app check which elements are currently on screen.';
|
|
287
|
-
};
|
|
288
|
-
declare const resolve$7: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
|
|
289
|
-
|
|
290
|
-
declare namespace isVisible {
|
|
291
|
-
export {
|
|
292
|
-
permission$5 as permission,
|
|
293
|
-
resolve$7 as resolve,
|
|
294
|
-
type$8 as type,
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
declare const type$7: 'count';
|
|
299
|
-
declare const permission$4: {
|
|
300
|
-
readonly scope: 'read.count';
|
|
301
|
-
readonly category: 'read';
|
|
302
|
-
readonly severity: 0;
|
|
303
|
-
readonly title: 'Count items on the page';
|
|
304
|
-
readonly description: 'Lets the app count how many matching elements are present.';
|
|
305
|
-
};
|
|
306
|
-
declare const resolve$6: (context: LocatorContext, _options?: OperationTimeoutOptions) => number;
|
|
307
|
-
|
|
308
|
-
declare namespace count {
|
|
309
|
-
export {
|
|
310
|
-
permission$4 as permission,
|
|
311
|
-
resolve$6 as resolve,
|
|
312
|
-
type$7 as type,
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
declare const type$6: 'exists';
|
|
317
|
-
declare const permission$3: {
|
|
318
|
-
readonly scope: 'read.check';
|
|
319
|
-
readonly category: 'read';
|
|
320
|
-
readonly severity: 0;
|
|
321
|
-
readonly title: 'Check if something is on the page';
|
|
322
|
-
readonly description: 'Lets the app test whether a specific element exists.';
|
|
323
|
-
};
|
|
324
|
-
declare const resolve$5: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
|
|
325
|
-
|
|
326
|
-
declare namespace exists {
|
|
327
|
-
export {
|
|
328
|
-
permission$3 as permission,
|
|
329
|
-
resolve$5 as resolve,
|
|
330
|
-
type$6 as type,
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
declare const type$5: 'getAttribute';
|
|
335
|
-
declare const permission$2: {
|
|
336
|
-
readonly scope: 'read.info';
|
|
337
|
-
readonly category: 'read';
|
|
338
|
-
readonly severity: 1;
|
|
339
|
-
readonly title: 'Read info from the page';
|
|
340
|
-
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
341
|
-
};
|
|
342
|
-
declare const resolve$4: (context: LocatorContext, name: string, _options?: OperationTimeoutOptions) => string | null;
|
|
343
|
-
|
|
344
|
-
declare namespace getAttribute {
|
|
345
|
-
export {
|
|
346
|
-
permission$2 as permission,
|
|
347
|
-
resolve$4 as resolve,
|
|
348
|
-
type$5 as type,
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
declare const type$4: 'videoElement';
|
|
353
|
-
declare const permission$1: {
|
|
354
|
-
readonly scope: 'media.video';
|
|
355
|
-
readonly category: 'media';
|
|
356
|
-
readonly severity: 0;
|
|
357
|
-
readonly title: 'Control video playback';
|
|
358
|
-
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
359
|
-
};
|
|
360
|
-
declare const resolve$3: (context: LocatorContext, _options?: OperationTimeoutOptions) => RemoteVideoElement;
|
|
361
|
-
|
|
362
|
-
declare namespace videoElement$1 {
|
|
363
|
-
export {
|
|
364
|
-
permission$1 as permission,
|
|
365
|
-
resolve$3 as resolve,
|
|
366
|
-
type$4 as type,
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
declare const locatorModule: {
|
|
371
|
-
readonly type: "locator";
|
|
372
|
-
readonly selectorModules: readonly [typeof locatorSel, {
|
|
373
|
-
readonly type: 'frameLocator';
|
|
374
|
-
readonly resolve: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
|
|
375
|
-
readonly resolvePeer: BarrierResolver;
|
|
376
|
-
readonly render: SelectorRenderer;
|
|
377
|
-
readonly nextLocatorType: 'frameLocator';
|
|
378
|
-
}, typeof getByRole, typeof getByText, typeof getByTestId, typeof first, typeof nth];
|
|
379
|
-
readonly operationModules: readonly [typeof click, typeof fill, typeof hover, typeof textContent, typeof isVisible, typeof count, typeof exists, typeof getAttribute, typeof videoElement$1];
|
|
380
|
-
};
|
|
381
|
-
type LocatorModule = typeof locatorModule;
|
|
382
|
-
interface Locator extends LocatorChain<LocatorModule, Locator> {
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
declare const type$3: 'frameLocator';
|
|
386
|
-
declare const resolve$2: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
|
|
387
|
-
declare const resolvePeer$1: BarrierResolver;
|
|
388
|
-
declare const render$1: SelectorRenderer;
|
|
389
|
-
|
|
390
|
-
declare namespace frameLocatorSel {
|
|
391
|
-
export {
|
|
392
|
-
render$1 as render,
|
|
393
|
-
resolve$2 as resolve,
|
|
394
|
-
resolvePeer$1 as resolvePeer,
|
|
395
|
-
type$3 as type,
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
declare const type$2: 'owner';
|
|
400
|
-
declare const resolve$1: (_: LocatorContext) => never;
|
|
401
|
-
declare const resolvePeer: BarrierResolver;
|
|
402
|
-
declare const render: SelectorRenderer;
|
|
403
|
-
|
|
404
|
-
declare const owner_render: typeof render;
|
|
405
|
-
declare const owner_resolvePeer: typeof resolvePeer;
|
|
406
|
-
declare namespace owner {
|
|
407
|
-
export {
|
|
408
|
-
owner_render as render,
|
|
409
|
-
resolve$1 as resolve,
|
|
410
|
-
owner_resolvePeer as resolvePeer,
|
|
411
|
-
type$2 as type,
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
declare const type$1: 'addStyleTag';
|
|
416
|
-
type AddStyleTagOptions = OperationTimeoutOptions & {
|
|
417
|
-
content: string;
|
|
418
|
-
noSanitize?: boolean;
|
|
419
|
-
};
|
|
420
|
-
declare const appearPermission: {
|
|
421
|
-
readonly scope: 'media.appear';
|
|
422
|
-
readonly category: 'media';
|
|
423
|
-
readonly severity: 0;
|
|
424
|
-
readonly title: 'Change page appearance';
|
|
425
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
426
|
-
};
|
|
427
|
-
declare const appearUnsafePermission: {
|
|
428
|
-
readonly scope: 'media.appearU';
|
|
429
|
-
readonly category: 'media';
|
|
430
|
-
readonly severity: 2;
|
|
431
|
-
readonly unsafe: true;
|
|
432
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
433
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
434
|
-
};
|
|
435
|
-
declare const permission: (options?: AddStyleTagOptions) => {
|
|
436
|
-
readonly scope: 'media.appear';
|
|
437
|
-
readonly category: 'media';
|
|
438
|
-
readonly severity: 0;
|
|
439
|
-
readonly title: 'Change page appearance';
|
|
440
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
441
|
-
} | {
|
|
442
|
-
readonly scope: 'media.appearU';
|
|
443
|
-
readonly category: 'media';
|
|
444
|
-
readonly severity: 2;
|
|
445
|
-
readonly unsafe: true;
|
|
446
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
447
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
448
|
-
};
|
|
449
|
-
declare const setInjectedStylesDisabled: (disabled: boolean) => void;
|
|
450
|
-
declare const resolve: (_context: LocatorContext, options: AddStyleTagOptions) => Promise<void>;
|
|
451
|
-
|
|
452
|
-
type addStyleTag_AddStyleTagOptions = AddStyleTagOptions;
|
|
453
|
-
declare const addStyleTag_appearPermission: typeof appearPermission;
|
|
454
|
-
declare const addStyleTag_appearUnsafePermission: typeof appearUnsafePermission;
|
|
455
|
-
declare const addStyleTag_permission: typeof permission;
|
|
456
|
-
declare const addStyleTag_resolve: typeof resolve;
|
|
457
|
-
declare const addStyleTag_setInjectedStylesDisabled: typeof setInjectedStylesDisabled;
|
|
458
|
-
declare namespace addStyleTag {
|
|
459
|
-
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 };
|
|
460
|
-
export type { addStyleTag_AddStyleTagOptions as AddStyleTagOptions };
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
declare const frameLocatorModule: {
|
|
464
|
-
readonly type: "frameLocator";
|
|
465
|
-
readonly selectorModules: readonly [{
|
|
466
|
-
readonly type: 'locator';
|
|
467
|
-
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
468
|
-
readonly render: SelectorRenderer;
|
|
469
|
-
readonly nextLocatorType: 'locator';
|
|
470
|
-
}, typeof frameLocatorSel, typeof owner];
|
|
471
|
-
readonly operationModules: readonly [typeof addStyleTag];
|
|
472
|
-
};
|
|
473
|
-
type FrameLocatorModule = typeof frameLocatorModule;
|
|
474
|
-
interface FrameLocator extends LocatorChain<FrameLocatorModule, FrameLocator> {
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
type FrameId = `${number}-${number}`;
|
|
478
|
-
|
|
479
|
-
type PermissionCategory = 'read' | 'act' | 'media' | 'embed' | 'network';
|
|
480
|
-
type PermissionSeverity = 0 | 1 | 2 | 3 | 4;
|
|
481
|
-
type Permission = {
|
|
482
|
-
scope: string;
|
|
483
|
-
category: PermissionCategory;
|
|
484
|
-
severity: PermissionSeverity;
|
|
485
|
-
title: string;
|
|
486
|
-
description: string;
|
|
487
|
-
unsafe?: boolean;
|
|
488
|
-
};
|
|
489
|
-
|
|
490
|
-
type LocatorContext = {
|
|
491
|
-
elements: Element[];
|
|
492
|
-
};
|
|
493
|
-
type OperationTimeoutOptions = {
|
|
494
|
-
timeout?: number;
|
|
495
|
-
reason?: string;
|
|
496
|
-
};
|
|
497
|
-
type BarrierContext = {
|
|
498
|
-
parts: SelectorPart[];
|
|
499
|
-
selfIndex: number;
|
|
500
|
-
resolveLocal: (parts: SelectorPart[]) => Element[];
|
|
501
|
-
};
|
|
502
|
-
type BarrierResolver = (context: BarrierContext) => Promise<FrameId>;
|
|
503
|
-
type SelectorRenderResult = {
|
|
504
|
-
fragment: string;
|
|
505
|
-
separator?: 'descend' | 'frame-down' | 'frame-up';
|
|
506
|
-
};
|
|
507
|
-
type SelectorRenderer = (...args: any[]) => SelectorRenderResult;
|
|
508
|
-
type SelectorModule = {
|
|
509
|
-
type: string;
|
|
510
|
-
resolve: (context: LocatorContext, ...args: any[]) => Element[];
|
|
511
|
-
nextLocatorType?: 'locator' | 'frameLocator';
|
|
512
|
-
resolvePeer?: BarrierResolver;
|
|
513
|
-
render?: SelectorRenderer;
|
|
514
|
-
};
|
|
515
|
-
type OperationPermission = Permission | ((...args: any[]) => Permission);
|
|
516
|
-
type OperationModule = {
|
|
517
|
-
type: string;
|
|
518
|
-
resolve: (context: LocatorContext, ...args: any[]) => unknown;
|
|
519
|
-
permission: OperationPermission;
|
|
520
|
-
};
|
|
521
|
-
type LocatorKindModule = {
|
|
522
|
-
readonly type: string;
|
|
523
|
-
readonly selectorModules: readonly SelectorModule[];
|
|
524
|
-
readonly operationModules: readonly OperationModule[];
|
|
525
|
-
};
|
|
526
|
-
type LocatorModules = [LocatorModule, FrameLocatorModule];
|
|
527
|
-
type LocatorModuleUnion = LocatorModules[number];
|
|
528
|
-
type SelectorPart<L extends LocatorModuleUnion = LocatorModuleUnion> = L extends LocatorModuleUnion ? L['selectorModules'][number] extends infer M extends SelectorModule ? {
|
|
529
|
-
locatorType: L['type'];
|
|
530
|
-
type: ExtractType<M>;
|
|
531
|
-
args: ExtractResolverArgs<M>;
|
|
532
|
-
} : never : never;
|
|
533
|
-
type NextLocator<M> = M extends {
|
|
534
|
-
nextLocatorType: 'frameLocator';
|
|
535
|
-
} ? FrameLocator : M extends {
|
|
536
|
-
nextLocatorType: 'locator';
|
|
537
|
-
} ? Locator : never;
|
|
538
|
-
type LocatorChain<L extends LocatorKindModule, Self> = {
|
|
539
|
-
[M in L['selectorModules'][number] as ExtractType<M>]: [
|
|
540
|
-
NextLocator<M>
|
|
541
|
-
] extends [never] ? (...args: ExtractResolverArgs<M>) => Self : (...args: ExtractResolverArgs<M>) => NextLocator<M>;
|
|
542
|
-
} & {
|
|
543
|
-
[M in L['operationModules'][number] as ExtractType<M>]: (...args: ExtractOperationArgs<M>) => Promise<Awaited<ExtractResolverReturn<M>>>;
|
|
544
|
-
} & {
|
|
545
|
-
ensure: (operation: ExtractType<L['operationModules'][number]>, options?: {
|
|
546
|
-
reason?: string;
|
|
547
|
-
timeout?: number;
|
|
548
|
-
subtree?: boolean;
|
|
549
|
-
} & Record<string, unknown>) => Promise<void>;
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
declare const ATTACH_FRAME_EVENT_KEY = "FKN_WEB_EXTENSION_ATTACH_FRAME_EVENT_KEY";
|
|
553
|
-
declare const isBlockedFrameUrl: (raw: string) => boolean;
|
|
554
|
-
declare const assertAttachableFrameUrl: (raw: string) => void;
|
|
555
|
-
declare const assertLockdownApplicable: ({ src, domains, lockdown }: {
|
|
556
|
-
src: string;
|
|
557
|
-
domains: string[];
|
|
558
|
-
lockdown: boolean;
|
|
559
|
-
}) => void;
|
|
560
|
-
declare const attachFramePermission: {
|
|
561
|
-
readonly scope: 'embed.iframe';
|
|
562
|
-
readonly category: 'embed';
|
|
563
|
-
readonly severity: 0;
|
|
564
|
-
readonly title: 'Load another website inside this app';
|
|
565
|
-
readonly description: 'Lets the app embed external pages directly inside its own view.';
|
|
566
|
-
};
|
|
567
|
-
declare const gotoPermission: {
|
|
568
|
-
readonly scope: 'embed.open';
|
|
569
|
-
readonly category: 'embed';
|
|
570
|
-
readonly severity: 0;
|
|
571
|
-
readonly title: 'Open a website inside this app';
|
|
572
|
-
readonly description: 'Lets the app navigate to another site without leaving its window.';
|
|
573
|
-
};
|
|
574
|
-
declare const evaluatePermission: {
|
|
575
|
-
readonly scope: 'embed.evaluate';
|
|
576
|
-
readonly category: 'embed';
|
|
577
|
-
readonly severity: 3;
|
|
578
|
-
readonly unsafe: true;
|
|
579
|
-
readonly title: 'Run app code inside an embedded site';
|
|
580
|
-
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.';
|
|
581
|
-
};
|
|
582
|
-
type GotoOptions = {
|
|
583
|
-
waitUntil?: 'documentstart' | 'load';
|
|
584
|
-
domains?: string[];
|
|
585
|
-
};
|
|
586
|
-
type Frame = FrameLocator & {
|
|
587
|
-
goto(url: string, options?: GotoOptions): Promise<void>;
|
|
588
|
-
evaluate<T = unknown>(code: string, arg?: unknown): Promise<T>;
|
|
589
|
-
url(): string;
|
|
590
|
-
};
|
|
591
|
-
type AttachFrameOptions = {
|
|
592
|
-
iframe: HTMLIFrameElement;
|
|
593
|
-
domains?: string[];
|
|
594
|
-
syncCookies?: boolean;
|
|
595
|
-
lockdown?: boolean;
|
|
596
|
-
};
|
|
597
|
-
declare const attachFrame: ({ iframe, domains, syncCookies, lockdown }: AttachFrameOptions) => Promise<Frame>;
|
|
598
|
-
|
|
599
|
-
declare const PERMISSIONS: readonly [{
|
|
600
|
-
readonly scope: 'read.text';
|
|
601
|
-
readonly category: 'read';
|
|
602
|
-
readonly severity: 1;
|
|
603
|
-
readonly title: 'Read text from the page';
|
|
604
|
-
readonly description: 'Lets the app see the text shown on this page.';
|
|
605
|
-
}, {
|
|
606
|
-
readonly scope: 'read.info';
|
|
607
|
-
readonly category: 'read';
|
|
608
|
-
readonly severity: 1;
|
|
609
|
-
readonly title: 'Read info from the page';
|
|
610
|
-
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
611
|
-
}, {
|
|
612
|
-
readonly scope: 'read.visible';
|
|
613
|
-
readonly category: 'read';
|
|
614
|
-
readonly severity: 0;
|
|
615
|
-
readonly title: 'See what’s visible on the page';
|
|
616
|
-
readonly description: 'Lets the app check which elements are currently on screen.';
|
|
617
|
-
}, {
|
|
618
|
-
readonly scope: 'read.check';
|
|
619
|
-
readonly category: 'read';
|
|
620
|
-
readonly severity: 0;
|
|
621
|
-
readonly title: 'Check if something is on the page';
|
|
622
|
-
readonly description: 'Lets the app test whether a specific element exists.';
|
|
623
|
-
}, {
|
|
624
|
-
readonly scope: 'read.count';
|
|
625
|
-
readonly category: 'read';
|
|
626
|
-
readonly severity: 0;
|
|
627
|
-
readonly title: 'Count items on the page';
|
|
628
|
-
readonly description: 'Lets the app count how many matching elements are present.';
|
|
629
|
-
}, {
|
|
630
|
-
readonly scope: 'act.click';
|
|
631
|
-
readonly category: 'act';
|
|
632
|
-
readonly severity: 3;
|
|
633
|
-
readonly title: 'Click on the page';
|
|
634
|
-
readonly description: 'Lets the app press buttons or links for you.';
|
|
635
|
-
}, {
|
|
636
|
-
readonly scope: 'act.type';
|
|
637
|
-
readonly category: 'act';
|
|
638
|
-
readonly severity: 1;
|
|
639
|
-
readonly title: 'Type into a text field';
|
|
640
|
-
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
641
|
-
}, {
|
|
642
|
-
readonly scope: 'act.hover';
|
|
643
|
-
readonly category: 'act';
|
|
644
|
-
readonly severity: 1;
|
|
645
|
-
readonly title: 'Hover over the page';
|
|
646
|
-
readonly description: 'Lets the app point at things to reveal menus or tooltips.';
|
|
647
|
-
}, {
|
|
648
|
-
readonly scope: 'media.video';
|
|
649
|
-
readonly category: 'media';
|
|
650
|
-
readonly severity: 0;
|
|
651
|
-
readonly title: 'Control video playback';
|
|
652
|
-
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
653
|
-
}, {
|
|
654
|
-
readonly scope: 'media.appear';
|
|
655
|
-
readonly category: 'media';
|
|
656
|
-
readonly severity: 0;
|
|
657
|
-
readonly title: 'Change page appearance';
|
|
658
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
659
|
-
}, {
|
|
660
|
-
readonly scope: 'media.appearU';
|
|
661
|
-
readonly category: 'media';
|
|
662
|
-
readonly severity: 2;
|
|
663
|
-
readonly unsafe: true;
|
|
664
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
665
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
666
|
-
}, {
|
|
667
|
-
readonly scope: 'embed.iframe';
|
|
668
|
-
readonly category: 'embed';
|
|
669
|
-
readonly severity: 0;
|
|
670
|
-
readonly title: 'Load another website inside this app';
|
|
671
|
-
readonly description: 'Lets the app embed external pages directly inside its own view.';
|
|
672
|
-
}, {
|
|
673
|
-
readonly scope: 'embed.open';
|
|
674
|
-
readonly category: 'embed';
|
|
675
|
-
readonly severity: 0;
|
|
676
|
-
readonly title: 'Open a website inside this app';
|
|
677
|
-
readonly description: 'Lets the app navigate to another site without leaving its window.';
|
|
678
|
-
}, {
|
|
679
|
-
readonly scope: 'embed.evaluate';
|
|
680
|
-
readonly category: 'embed';
|
|
681
|
-
readonly severity: 3;
|
|
682
|
-
readonly unsafe: true;
|
|
683
|
-
readonly title: 'Run app code inside an embedded site';
|
|
684
|
-
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.';
|
|
685
|
-
}, {
|
|
686
|
-
readonly scope: 'network.fetch';
|
|
687
|
-
readonly category: 'network';
|
|
688
|
-
readonly severity: 0;
|
|
689
|
-
readonly title: 'Fetch data from other sites';
|
|
690
|
-
readonly description: 'Lets the app download public data from other websites directly, past the usual cross-origin limits.';
|
|
691
|
-
}, {
|
|
692
|
-
readonly scope: 'network.fetchCredentialed';
|
|
693
|
-
readonly category: 'network';
|
|
694
|
-
readonly severity: 3;
|
|
695
|
-
readonly unsafe: true;
|
|
696
|
-
readonly title: 'Fetch from other sites, signed in as you';
|
|
697
|
-
readonly description: 'Lets the app fetch other sites using your logged-in session cookies, so it can read data only you should see.';
|
|
698
|
-
}, {
|
|
699
|
-
readonly scope: 'network.fetchLocal';
|
|
700
|
-
readonly category: 'network';
|
|
701
|
-
readonly severity: 3;
|
|
702
|
-
readonly unsafe: true;
|
|
703
|
-
readonly title: 'Access devices on your local network';
|
|
704
|
-
readonly description: 'Lets the app reach devices and services on your home or work network, which websites normally cannot touch.';
|
|
705
|
-
}, {
|
|
706
|
-
readonly scope: 'network.readCookie';
|
|
707
|
-
readonly category: 'network';
|
|
708
|
-
readonly severity: 3;
|
|
709
|
-
readonly unsafe: true;
|
|
710
|
-
readonly title: 'Read a site’s cookie';
|
|
711
|
-
readonly description: 'Lets the app read a named cookie from another site, which can include the login token only that site should see.';
|
|
712
|
-
}, {
|
|
713
|
-
readonly scope: 'network.modifyRequestHeaders';
|
|
714
|
-
readonly category: 'network';
|
|
715
|
-
readonly severity: 2;
|
|
716
|
-
readonly unsafe: true;
|
|
717
|
-
readonly title: 'Rewrite request headers to other sites';
|
|
718
|
-
readonly description: 'Lets the app set or remove headers (like Origin and Referer) on this page’s own requests to the listed sites.';
|
|
719
|
-
}];
|
|
720
|
-
type PermissionScope = (typeof PERMISSIONS)[number]['scope'];
|
|
721
|
-
|
|
722
|
-
type PermissionRequest = {
|
|
723
|
-
key: PermissionScope;
|
|
724
|
-
scope?: string;
|
|
725
|
-
reason?: string;
|
|
726
|
-
};
|
|
727
|
-
type PermissionGrant = {
|
|
728
|
-
key: PermissionScope;
|
|
729
|
-
scope: string;
|
|
730
|
-
allow: boolean;
|
|
731
|
-
};
|
|
732
|
-
declare const permissions: {
|
|
733
|
-
request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
declare const type: 'videoElement';
|
|
737
|
-
type TimeRangesTuple = [number, number][];
|
|
738
|
-
type VideoElementState = {
|
|
739
|
-
currentTime: number;
|
|
740
|
-
volume: number;
|
|
741
|
-
muted: boolean;
|
|
742
|
-
playbackRate: number;
|
|
743
|
-
src: string;
|
|
744
|
-
loop: boolean;
|
|
745
|
-
autoplay: boolean;
|
|
746
|
-
preload: string;
|
|
747
|
-
poster: string;
|
|
748
|
-
disableRemotePlayback: boolean;
|
|
749
|
-
duration: number;
|
|
750
|
-
paused: boolean;
|
|
751
|
-
ended: boolean;
|
|
752
|
-
seeking: boolean;
|
|
753
|
-
readyState: number;
|
|
754
|
-
currentSrc: string;
|
|
755
|
-
buffered: TimeRangesTuple;
|
|
756
|
-
seekable: TimeRangesTuple;
|
|
757
|
-
error: {
|
|
758
|
-
code: number;
|
|
759
|
-
message: string;
|
|
760
|
-
} | null;
|
|
761
|
-
};
|
|
762
|
-
type RemoteVideoElement = EventTarget & {
|
|
763
|
-
currentTime: number;
|
|
764
|
-
volume: number;
|
|
765
|
-
muted: boolean;
|
|
766
|
-
playbackRate: number;
|
|
767
|
-
src: string;
|
|
768
|
-
loop: boolean;
|
|
769
|
-
autoplay: boolean;
|
|
770
|
-
preload: string;
|
|
771
|
-
poster: string;
|
|
772
|
-
disableRemotePlayback: boolean;
|
|
773
|
-
readonly duration: number;
|
|
774
|
-
readonly paused: boolean;
|
|
775
|
-
readonly ended: boolean;
|
|
776
|
-
readonly seeking: boolean;
|
|
777
|
-
readonly readyState: number;
|
|
778
|
-
readonly currentSrc: string;
|
|
779
|
-
readonly error: MediaError | null;
|
|
780
|
-
readonly buffered: TimeRanges;
|
|
781
|
-
readonly seekable: TimeRanges;
|
|
782
|
-
play(): Promise<void>;
|
|
783
|
-
pause(): void;
|
|
784
|
-
load(): void;
|
|
785
|
-
requestPictureInPicture(): Promise<void>;
|
|
786
|
-
exitPictureInPicture(): Promise<void>;
|
|
787
|
-
readonly HAVE_FUTURE_DATA: 3;
|
|
788
|
-
readonly HAVE_ENOUGH_DATA: 4;
|
|
789
|
-
};
|
|
790
|
-
type BoxedVideoElement = BoxBase<typeof type> & {
|
|
791
|
-
initialState: VideoElementState;
|
|
792
|
-
controller: Capable;
|
|
793
|
-
} & {
|
|
794
|
-
[UnderlyingType]: RemoteVideoElement;
|
|
795
|
-
};
|
|
796
|
-
declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
|
|
797
|
-
declare const isType: (value: unknown) => value is RemoteVideoElement;
|
|
798
|
-
declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
|
|
799
|
-
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
|
|
800
|
-
|
|
801
|
-
type videoElement_BoxedVideoElement = BoxedVideoElement;
|
|
802
|
-
type videoElement_RemoteVideoElement = RemoteVideoElement;
|
|
803
|
-
type videoElement_VideoElementState = VideoElementState;
|
|
804
|
-
declare const videoElement_box: typeof box;
|
|
805
|
-
declare const videoElement_createVideoElementHandle: typeof createVideoElementHandle;
|
|
806
|
-
declare const videoElement_isType: typeof isType;
|
|
807
|
-
declare const videoElement_revive: typeof revive;
|
|
808
|
-
declare const videoElement_type: typeof type;
|
|
809
|
-
declare namespace videoElement {
|
|
810
|
-
export { videoElement_box as box, videoElement_createVideoElementHandle as createVideoElementHandle, videoElement_isType as isType, videoElement_revive as revive, videoElement_type as type };
|
|
811
|
-
export type { videoElement_BoxedVideoElement as BoxedVideoElement, videoElement_RemoteVideoElement as RemoteVideoElement, videoElement_VideoElementState as VideoElementState };
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
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, {
|
|
815
|
-
readonly type: 'nonFiniteNumber';
|
|
816
|
-
readonly isType: (value: unknown) => value is number;
|
|
817
|
-
readonly box: (value: number, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedNonFiniteNumber | number;
|
|
818
|
-
readonly revive: (value: osra_build_revivables_json_primitives.BoxedNonFiniteNumber, _context: osra.RevivableContext<any>) => number;
|
|
819
|
-
}, {
|
|
820
|
-
readonly type: 'undefined';
|
|
821
|
-
readonly isType: (value: unknown) => value is undefined;
|
|
822
|
-
readonly box: (value: undefined, context: osra.RevivableContext<any>) => osra_build_revivables_json_primitives.BoxedUndefined | undefined;
|
|
823
|
-
readonly revive: (_value: osra_build_revivables_json_primitives.BoxedUndefined, _context: osra.RevivableContext<any>) => undefined;
|
|
824
|
-
}, {
|
|
825
|
-
readonly type: 'clonable';
|
|
826
|
-
readonly capableOnly: true;
|
|
827
|
-
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Clonable;
|
|
828
|
-
readonly box: (value: osra_build_revivables_fallbacks.Clonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
829
|
-
readonly revive: (value: osra_build_revivables_fallbacks.BoxedClonable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Clonable;
|
|
830
|
-
}, {
|
|
831
|
-
readonly type: 'transferable';
|
|
832
|
-
readonly capableOnly: true;
|
|
833
|
-
readonly isType: (value: unknown) => value is osra_build_revivables_fallbacks.Transferable;
|
|
834
|
-
readonly box: (value: osra_build_revivables_fallbacks.Transferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
835
|
-
readonly revive: (value: osra_build_revivables_fallbacks.BoxedTransferable, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.Transferable;
|
|
836
|
-
}, typeof osra_build_revivables_event_target, {
|
|
837
|
-
readonly type: 'unclonable';
|
|
838
|
-
readonly isType: (value: unknown) => value is never;
|
|
839
|
-
readonly box: (_value: never, _context: osra.RevivableContext<any>) => osra_build_revivables_fallbacks.BoxedUnclonable;
|
|
840
|
-
readonly revive: (_value: osra_build_revivables_fallbacks.BoxedUnclonable, _context: osra.RevivableContext<any>) => Record<string, never>;
|
|
841
|
-
}];
|
|
842
|
-
|
|
843
|
-
type ExtensionEventMap = {
|
|
844
|
-
statuschange: CustomEvent<{
|
|
845
|
-
enabled: boolean;
|
|
846
|
-
}>;
|
|
847
|
-
};
|
|
848
|
-
declare const extension: osra.TypedEventTarget<ExtensionEventMap>;
|
|
849
|
-
declare const isExtensionExposed: () => boolean;
|
|
850
|
-
type MissingExtensionHandler = () => Promise<void>;
|
|
851
|
-
declare const setMissingExtensionHandler: (handler: MissingExtensionHandler | null) => void;
|
|
852
|
-
declare const waitForExtensionExposure: (timeout?: number) => Promise<void>;
|
|
853
|
-
|
|
854
|
-
declare const promptInstall: (reason?: string) => Promise<boolean>;
|
|
855
|
-
|
|
856
|
-
declare const isExtensionAvailable: () => boolean;
|
|
857
|
-
|
|
858
|
-
export { ATTACH_FRAME_EVENT_KEY, assertAttachableFrameUrl, assertFetchableUrl, assertLockdownApplicable, attachFrame, attachFramePermission, isExtensionAvailable as available, box, cookies, createVideoElementHandle, evaluatePermission, extension as events, extension, fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, gotoPermission, handleRevivableModules, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, permissions, promptInstall, readCookiePermission, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
|
|
859
|
-
export type { AttachFrameOptions, BoxedVideoElement, CookieDetails, FetchInit, Frame, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState };
|
|
1
|
+
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, V as fetch, 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, t as extension, u as createVideoElementHandle, v as attachFrame, w as createFrame, x as FrameBackend, y as AttachFrameOptions, z as ProxyFetchRequest } from "./index-BJztAQIP.js";
|
|
2
|
+
import { i as promptInstall, r as isExtensionAvailable } from "./extension-3pxUYwrA.js";
|
|
3
|
+
export { ATTACH_FRAME_EVENT_KEY, AttachFrameOptions, BoxedVideoElement, CookieDetails, FetchInit, Frame, FrameBackend, GotoOptions, HeaderOperation, PermissionGrant, PermissionRequest, ProxyFetchRequest, RemoteVideoElement, RequestHeaderRule, SiteCookie, VideoElementState, assertAttachableFrameUrl, assertFetchableUrl, assertLockdownApplicable, attachFrame, attachFramePermission, isExtensionAvailable as available, box, cookies, createFrame, createVideoElementHandle, extension as events, extension, fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, gotoPermission, handleRevivableModules, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isType, modifyRequestHeadersPermission, permissions, promptInstall, readCookiePermission, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, type, waitForExtensionExposure };
|