@intellifend/requestshieldjs 2.0.0-qat.197

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.
@@ -0,0 +1,418 @@
1
+ REQUESTSHIELD JAVASCRIPT SDK - THIRD-PARTY NOTICES
2
+
3
+ Package: @intellifend/requestshieldjs
4
+
5
+ Third-party material retains its own copyright and license terms. Those terms
6
+ apply to the respective components and are not overridden by the proprietary
7
+ RequestShield SDK license. The names below identify upstream projects and do
8
+ not imply endorsement of RequestShield.
9
+
10
+ These notices cover the bundled ALTCHA solver, generated JavaScript helpers,
11
+ and AssemblyScript acknowledgments for the embedded WebAssembly build. Build
12
+ tools themselves are not distributed. The AssemblyScript NOTICE is reproduced
13
+ for attribution; its list of upstream works does not mean every listed work
14
+ is included in this SDK.
15
+
16
+ The upstream license and NOTICE texts below are reproduced in full. The SDK's
17
+ proprietary license is provided separately in LICENSE.txt.
18
+
19
+ ===============================================================================
20
+ 1. ALTCHA library
21
+ Version: 2.2.0
22
+ License: MIT
23
+ Project: https://github.com/altcha-org/altcha-lib
24
+ Bundled proof-of-work solver, helpers, and Web Crypto PBKDF2 adapter.
25
+
26
+ BEGIN UPSTREAM LICENSE
27
+ MIT License
28
+
29
+ Copyright (c) 2023-2026 Daniel Regeci
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in all
39
+ copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
+ SOFTWARE.
48
+ END UPSTREAM LICENSE
49
+
50
+ ===============================================================================
51
+ 2. esbuild
52
+ Version: 0.28.1
53
+ License: MIT
54
+ Project: https://github.com/evanw/esbuild
55
+ Generated helper code included in the JavaScript output; the build tool is not distributed.
56
+
57
+ BEGIN UPSTREAM LICENSE
58
+ MIT License
59
+
60
+ Copyright (c) 2020 Evan Wallace
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in all
70
+ copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
78
+ SOFTWARE.
79
+
80
+ END UPSTREAM LICENSE
81
+
82
+ ===============================================================================
83
+ 3. javascript-obfuscator
84
+ Version: 5.4.7
85
+ License: BSD-2-Clause
86
+ Project: https://github.com/javascript-obfuscator/javascript-obfuscator
87
+ Helper code generated into the obfuscated bundles. The literal <COPYRIGHT HOLDER> text below is present in the upstream license and is reproduced unchanged.
88
+
89
+ BEGIN UPSTREAM LICENSE
90
+ Redistribution and use in source and binary forms, with or without
91
+ modification, are permitted provided that the following conditions are met:
92
+
93
+ * Redistributions of source code must retain the above copyright
94
+ notice, this list of conditions and the following disclaimer.
95
+ * Redistributions in binary form must reproduce the above copyright
96
+ notice, this list of conditions and the following disclaimer in the
97
+ documentation and/or other materials provided with the distribution.
98
+
99
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
100
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
101
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
102
+ ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
103
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
104
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
105
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
106
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
107
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
108
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
109
+ END UPSTREAM LICENSE
110
+
111
+ ===============================================================================
112
+ 4. AssemblyScript
113
+ Version: 0.28.20
114
+ License: Apache-2.0
115
+ Project: https://github.com/AssemblyScript/assemblyscript
116
+ Conservative compiler/standard-library acknowledgment for the embedded WebAssembly build. See the accompanying review notes for the inclusion boundary.
117
+
118
+ BEGIN UPSTREAM LICENSE
119
+ Apache License
120
+ Version 2.0, January 2004
121
+ http://www.apache.org/licenses/
122
+
123
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
124
+
125
+ 1. Definitions.
126
+
127
+ "License" shall mean the terms and conditions for use, reproduction,
128
+ and distribution as defined by Sections 1 through 9 of this document.
129
+
130
+ "Licensor" shall mean the copyright owner or entity authorized by
131
+ the copyright owner that is granting the License.
132
+
133
+ "Legal Entity" shall mean the union of the acting entity and all
134
+ other entities that control, are controlled by, or are under common
135
+ control with that entity. For the purposes of this definition,
136
+ "control" means (i) the power, direct or indirect, to cause the
137
+ direction or management of such entity, whether by contract or
138
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
139
+ outstanding shares, or (iii) beneficial ownership of such entity.
140
+
141
+ "You" (or "Your") shall mean an individual or Legal Entity
142
+ exercising permissions granted by this License.
143
+
144
+ "Source" form shall mean the preferred form for making modifications,
145
+ including but not limited to software source code, documentation
146
+ source, and configuration files.
147
+
148
+ "Object" form shall mean any form resulting from mechanical
149
+ transformation or translation of a Source form, including but
150
+ not limited to compiled object code, generated documentation,
151
+ and conversions to other media types.
152
+
153
+ "Work" shall mean the work of authorship, whether in Source or
154
+ Object form, made available under the License, as indicated by a
155
+ copyright notice that is included in or attached to the work
156
+ (an example is provided in the Appendix below).
157
+
158
+ "Derivative Works" shall mean any work, whether in Source or Object
159
+ form, that is based on (or derived from) the Work and for which the
160
+ editorial revisions, annotations, elaborations, or other modifications
161
+ represent, as a whole, an original work of authorship. For the purposes
162
+ of this License, Derivative Works shall not include works that remain
163
+ separable from, or merely link (or bind by name) to the interfaces of,
164
+ the Work and Derivative Works thereof.
165
+
166
+ "Contribution" shall mean any work of authorship, including
167
+ the original version of the Work and any modifications or additions
168
+ to that Work or Derivative Works thereof, that is intentionally
169
+ submitted to Licensor for inclusion in the Work by the copyright owner
170
+ or by an individual or Legal Entity authorized to submit on behalf of
171
+ the copyright owner. For the purposes of this definition, "submitted"
172
+ means any form of electronic, verbal, or written communication sent
173
+ to the Licensor or its representatives, including but not limited to
174
+ communication on electronic mailing lists, source code control systems,
175
+ and issue tracking systems that are managed by, or on behalf of, the
176
+ Licensor for the purpose of discussing and improving the Work, but
177
+ excluding communication that is conspicuously marked or otherwise
178
+ designated in writing by the copyright owner as "Not a Contribution."
179
+
180
+ "Contributor" shall mean Licensor and any individual or Legal Entity
181
+ on behalf of whom a Contribution has been received by Licensor and
182
+ subsequently incorporated within the Work.
183
+
184
+ 2. Grant of Copyright License. Subject to the terms and conditions of
185
+ this License, each Contributor hereby grants to You a perpetual,
186
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
187
+ copyright license to reproduce, prepare Derivative Works of,
188
+ publicly display, publicly perform, sublicense, and distribute the
189
+ Work and such Derivative Works in Source or Object form.
190
+
191
+ 3. Grant of Patent License. Subject to the terms and conditions of
192
+ this License, each Contributor hereby grants to You a perpetual,
193
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
194
+ (except as stated in this section) patent license to make, have made,
195
+ use, offer to sell, sell, import, and otherwise transfer the Work,
196
+ where such license applies only to those patent claims licensable
197
+ by such Contributor that are necessarily infringed by their
198
+ Contribution(s) alone or by combination of their Contribution(s)
199
+ with the Work to which such Contribution(s) was submitted. If You
200
+ institute patent litigation against any entity (including a
201
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
202
+ or a Contribution incorporated within the Work constitutes direct
203
+ or contributory patent infringement, then any patent licenses
204
+ granted to You under this License for that Work shall terminate
205
+ as of the date such litigation is filed.
206
+
207
+ 4. Redistribution. You may reproduce and distribute copies of the
208
+ Work or Derivative Works thereof in any medium, with or without
209
+ modifications, and in Source or Object form, provided that You
210
+ meet the following conditions:
211
+
212
+ (a) You must give any other recipients of the Work or
213
+ Derivative Works a copy of this License; and
214
+
215
+ (b) You must cause any modified files to carry prominent notices
216
+ stating that You changed the files; and
217
+
218
+ (c) You must retain, in the Source form of any Derivative Works
219
+ that You distribute, all copyright, patent, trademark, and
220
+ attribution notices from the Source form of the Work,
221
+ excluding those notices that do not pertain to any part of
222
+ the Derivative Works; and
223
+
224
+ (d) If the Work includes a "NOTICE" text file as part of its
225
+ distribution, then any Derivative Works that You distribute must
226
+ include a readable copy of the attribution notices contained
227
+ within such NOTICE file, excluding those notices that do not
228
+ pertain to any part of the Derivative Works, in at least one
229
+ of the following places: within a NOTICE text file distributed
230
+ as part of the Derivative Works; within the Source form or
231
+ documentation, if provided along with the Derivative Works; or,
232
+ within a display generated by the Derivative Works, if and
233
+ wherever such third-party notices normally appear. The contents
234
+ of the NOTICE file are for informational purposes only and
235
+ do not modify the License. You may add Your own attribution
236
+ notices within Derivative Works that You distribute, alongside
237
+ or as an addendum to the NOTICE text from the Work, provided
238
+ that such additional attribution notices cannot be construed
239
+ as modifying the License.
240
+
241
+ You may add Your own copyright statement to Your modifications and
242
+ may provide additional or different license terms and conditions
243
+ for use, reproduction, or distribution of Your modifications, or
244
+ for any such Derivative Works as a whole, provided Your use,
245
+ reproduction, and distribution of the Work otherwise complies with
246
+ the conditions stated in this License.
247
+
248
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
249
+ any Contribution intentionally submitted for inclusion in the Work
250
+ by You to the Licensor shall be under the terms and conditions of
251
+ this License, without any additional terms or conditions.
252
+ Notwithstanding the above, nothing herein shall supersede or modify
253
+ the terms of any separate license agreement you may have executed
254
+ with Licensor regarding such Contributions.
255
+
256
+ 6. Trademarks. This License does not grant permission to use the trade
257
+ names, trademarks, service marks, or product names of the Licensor,
258
+ except as required for reasonable and customary use in describing the
259
+ origin of the Work and reproducing the content of the NOTICE file.
260
+
261
+ 7. Disclaimer of Warranty. Unless required by applicable law or
262
+ agreed to in writing, Licensor provides the Work (and each
263
+ Contributor provides its Contributions) on an "AS IS" BASIS,
264
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
265
+ implied, including, without limitation, any warranties or conditions
266
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
267
+ PARTICULAR PURPOSE. You are solely responsible for determining the
268
+ appropriateness of using or redistributing the Work and assume any
269
+ risks associated with Your exercise of permissions under this License.
270
+
271
+ 8. Limitation of Liability. In no event and under no legal theory,
272
+ whether in tort (including negligence), contract, or otherwise,
273
+ unless required by applicable law (such as deliberate and grossly
274
+ negligent acts) or agreed to in writing, shall any Contributor be
275
+ liable to You for damages, including any direct, indirect, special,
276
+ incidental, or consequential damages of any character arising as a
277
+ result of this License or out of the use or inability to use the
278
+ Work (including but not limited to damages for loss of goodwill,
279
+ work stoppage, computer failure or malfunction, or any and all
280
+ other commercial damages or losses), even if such Contributor
281
+ has been advised of the possibility of such damages.
282
+
283
+ 9. Accepting Warranty or Additional Liability. While redistributing
284
+ the Work or Derivative Works thereof, You may choose to offer,
285
+ and charge a fee for, acceptance of support, warranty, indemnity,
286
+ or other liability obligations and/or rights consistent with this
287
+ License. However, in accepting such obligations, You may act only
288
+ on Your own behalf and on Your sole responsibility, not on behalf
289
+ of any other Contributor, and only if You agree to indemnify,
290
+ defend, and hold each Contributor harmless for any liability
291
+ incurred by, or claims asserted against, such Contributor by reason
292
+ of your accepting any such warranty or additional liability.
293
+
294
+ END OF TERMS AND CONDITIONS
295
+
296
+ APPENDIX: How to apply the Apache License to your work.
297
+
298
+ To apply the Apache License to your work, attach the following
299
+ boilerplate notice, with the fields enclosed by brackets "{}"
300
+ replaced with your own identifying information. (Don't include
301
+ the brackets!) The text should be enclosed in the appropriate
302
+ comment syntax for the file format. We also recommend that a
303
+ file or class name and description of purpose be included on the
304
+ same "printed page" as the copyright notice for easier
305
+ identification within third-party archives.
306
+
307
+ Copyright {yyyy} {name of copyright owner}
308
+
309
+ Licensed under the Apache License, Version 2.0 (the "License");
310
+ you may not use this file except in compliance with the License.
311
+ You may obtain a copy of the License at
312
+
313
+ http://www.apache.org/licenses/LICENSE-2.0
314
+
315
+ Unless required by applicable law or agreed to in writing, software
316
+ distributed under the License is distributed on an "AS IS" BASIS,
317
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
318
+ See the License for the specific language governing permissions and
319
+ limitations under the License.
320
+
321
+ END UPSTREAM LICENSE
322
+
323
+ BEGIN ASSEMBLYSCRIPT UPSTREAM NOTICE
324
+ The following authors have all licensed their contributions to AssemblyScript
325
+ under the licensing terms detailed in LICENSE:
326
+
327
+ * Daniel Wirtz <dcode@dcode.io>
328
+ * Max Graey <maxgraey@gmail.com>
329
+ * Igor Sbitnev <PinkaminaDianePie@gmail.com>
330
+ * Norton Wang <me@nortonwang.com>
331
+ * Alan Pierce <alangpierce@gmail.com>
332
+ * Palmer <pengliao@live.cn>
333
+ * Linus Unnebäck <linus@folkdatorn.se>
334
+ * Joshua Tenner <tenner.joshua@gmail.com>
335
+ * Nidin Vinayakan <01@01alchemist.com>
336
+ * Aaron Turner <aaron@aaronthedev.com>
337
+ * Willem Wyndham <willem@cs.umd.edu>
338
+ * Bowen Wang <bowen@nearprotocol.com>
339
+ * Emil Laine <laine.emil@gmail.com>
340
+ * Stephen Paul Weber <stephen.weber@shopify.com>
341
+ * Jay Phelps <hello@jayphelps.com>
342
+ * jhwgh1968 <jhwgh1968@protonmail.com>
343
+ * Jeffrey Charles <jeffreycharles@gmail.com>
344
+ * Vladimir Tikhonov <reg@tikhonov.by>
345
+ * Duncan Uszkay <duncan.uszkay@shopify.com>
346
+ * Surma <surma@surma.dev>
347
+ * Julien Letellier <letellier.julien@gmail.com>
348
+ * Guido Zuidhof <me@guido.io>
349
+ * ncave <777696+ncave@users.noreply.github.com>
350
+ * Andrew Davis <pulpdrew@gmail.com>
351
+ * Maël Nison <nison.mael@gmail.com>
352
+ * Valeria Viana Gusmao <valeria.viana.gusmao@gmail.com>
353
+ * Gabor Greif <ggreif@gmail.com>
354
+ * Martin Fredriksson <martin.fredriksson@vikinganalytics.se>
355
+ * forcepusher <bionitsoup@gmail.com>
356
+ * Piotr Oleś <piotrek.oles@gmail.com>
357
+ * Saúl Cabrera <saulecabrera@gmail.com>
358
+ * Chance Snow <git@chancesnow.me>
359
+ * Peter Salomonsen <petersalomonsen@runbox.com>
360
+ * ookangzheng <git-ed@runbox.no>
361
+ * yjhmelody <yjh465402634@gmail.com>
362
+ * bnbarak <bn.barak@gmail.com>
363
+ * Colin Eberhardt <colin.eberhardt@gmail.com>
364
+ * Ryan Pivovar <ryanpivovar@gmail.com>
365
+ * Roman F. <70765447+romdotdog@users.noreply.github.com>
366
+ * Joe Pea <trusktr@gmail.com>
367
+ * Felipe Gasper <FGasper@users.noreply.github.com>
368
+ * Congcong Cai <congcongcai0907@163.com>
369
+ * mooooooi <emwings@outlook.com>
370
+ * Yasushi Ando <andyjpn@gmail.com>
371
+ * Syed Jafri <syed@metalpay.co>
372
+ * Peter Hayman <peteyhayman@gmail.com>
373
+ * ApsarasX <apsarax@outlook.com>
374
+ * Adrien Zinger <zinger.ad@gmail.com>
375
+ * Ruixiang Chen <xiang19890319@gmail.com>
376
+ * Daniel Salvadori <danaugrs@gmail.com>
377
+ * Jairus Tanaka <me@jairus.dev>
378
+ * CountBleck <Mr.YouKnowWhoIAm@protonmail.com>
379
+ * Abdul Rauf <abdulraufmujahid@gmail.com>
380
+ * Bach Le <bach@bullno1.com>
381
+ * Xinquan Xu <xinquan0203@163.com>
382
+ * Matt Johnson-Pint <mattjohnsonpint@gmail.com>
383
+ * Fabián Heredia Montiel <fabianhjr@users.noreply.github.com>
384
+ * Jonas Minnberg <sasq64@gmail.com>
385
+ * Kam Chehresa <kaz.che@gmail.com>
386
+ * Mopsgamer <79159094+Mopsgamer@users.noreply.github.com>
387
+ * EDM115 <github@edm115.dev>
388
+ * Weixie Cui <cuiweixie@gmail.com>
389
+
390
+ Portions of this software are derived from third-party works licensed under
391
+ the following terms:
392
+
393
+ * TypeScript: https://github.com/Microsoft/TypeScript
394
+
395
+ Copyright (c) Microsoft Corporation
396
+ Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0)
397
+
398
+ * Binaryen: https://github.com/WebAssembly/binaryen
399
+
400
+ Copyright (c) WebAssembly Community Group participants
401
+ Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0)
402
+
403
+ * musl libc: http://www.musl-libc.org
404
+
405
+ Copyright (c) Rich Felker, et al.
406
+ The MIT License (https://opensource.org/licenses/MIT)
407
+
408
+ * V8: https://developers.google.com/v8/
409
+
410
+ Copyright (c) the V8 project authors
411
+ The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
412
+
413
+ * Arm Optimized Routines: https://github.com/ARM-software/optimized-routines
414
+
415
+ Copyright (c) Arm Limited
416
+ The MIT License (https://opensource.org/licenses/MIT)
417
+
418
+ END ASSEMBLYSCRIPT UPSTREAM NOTICE
@@ -0,0 +1,18 @@
1
+ {
2
+ "version": "2.0.0-qat.197",
3
+ "algorithm": "sha384",
4
+ "bundles": [
5
+ {
6
+ "name": "intellifend",
7
+ "path": "intellifend.js",
8
+ "version": "2.0.0-qat.197",
9
+ "integrity": "sha384-IgbeqUANk36GYfJYH0lLNmSoI3eBFd2PhgD7Pbp5rFVnglb1+MyD97lUQsi3lZzj"
10
+ },
11
+ {
12
+ "name": "intellifend-esm",
13
+ "path": "intellifend.mjs",
14
+ "version": "2.0.0-qat.197",
15
+ "integrity": "sha384-fNgov+/xfz3MUZdYMsaWFSqElx329Pa8wljP97f8ndanXDUU2I+RAOpTwbx6gikQ"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Stable client-side reason codes. Server codes pass through unchanged and
3
+ * are not part of this union.
4
+ */
5
+ export type ClientErrorCode = "not_initialized" | "invalid_config" | "invalid_action" | "timeout" | "network_error" | "wasm_unavailable" | "cancelled";
6
+ export declare class IntelliFendError extends Error {
7
+ readonly code: string;
8
+ /** True when retrying may succeed (timeouts, transient network failures). */
9
+ readonly retryable: boolean;
10
+ constructor(code: string, message: string, retryable?: boolean);
11
+ }
@@ -0,0 +1,48 @@
1
+ export interface InitConfig {
2
+ /** Public site key (`pk_...`). Required. */
3
+ appKey: string;
4
+ /** Challenge Server HTTP(S) base URL. Defaults to https://challenge.intellifend.ai. */
5
+ challengeUrl?: string;
6
+ /** Optional HTTPS service base URL used when the preferred endpoint is unavailable. */
7
+ fallbackChallengeUrl?: string;
8
+ /** Overall time budget for one getToken() flow (create + solve + verify),
9
+ * including retries, in milliseconds. Default 5 000. */
10
+ timeoutMs?: number;
11
+ /** Exact endpoint paths/URLs protected automatically through Fetch and async XHR. */
12
+ protect?: string[];
13
+ /** Opts into bounded, page-memory-only browser signal collection. Default false. */
14
+ telemetry?: boolean;
15
+ }
16
+ export interface GetTokenOptions {
17
+ /** Optional logical action being protected, e.g. "login" or "register". */
18
+ action?: string;
19
+ /** Per-call timeout that may narrow, but never widen, the init timeout. */
20
+ timeoutMs?: number;
21
+ /** Cancels the token request; the promise resolves to an empty token. */
22
+ signal?: AbortSignal;
23
+ }
24
+ export { IntelliFendError } from "./errors.js";
25
+ export type { ClientErrorCode } from "./errors.js";
26
+ export declare const VERSION: string;
27
+ export declare const IntelliFend: {
28
+ /**
29
+ * Validates and stores the configuration. Synchronous: throws
30
+ * IntelliFendError("invalid_config") on bad input. Unknown keys are ignored;
31
+ * `protect` enables exact endpoint interception; `telemetry` opts into the
32
+ * bounded signal collector.
33
+ *
34
+ * Re-init is allowed and replaces the configuration (last init wins); a
35
+ * failing re-init keeps the previous configuration because validation
36
+ * happens before assignment.
37
+ */
38
+ init(cfg: InitConfig): void;
39
+ /**
40
+ * Obtains a single-use token for the current site, optionally carrying an
41
+ * action label. The backend verifies the token and any expected action.
42
+ * Resolves to the token string, or "" when no token can be obtained.
43
+ * Never rejects; the backend decides how to handle a missing token.
44
+ */
45
+ getToken(opts?: GetTokenOptions): Promise<string>;
46
+ version: string;
47
+ };
48
+ export type IntelliFendApi = typeof IntelliFend;