@hideguard/sdk 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +44 -44
- package/README.md +63 -63
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.mjs +1 -1
- package/package.json +39 -39
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,13 @@ export interface StartOptions {
|
|
|
24
24
|
* decides (an operator's own blocklist entry draws it). While only collecting, pass `false`.
|
|
25
25
|
*/
|
|
26
26
|
block?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* `false` leaves elements tagged `data-hideguard-gateway` alone. Left on, a gateway an operator
|
|
29
|
+
* closed to this visitor (a full block, or a gateway lock) is disabled with one generic line
|
|
30
|
+
* under it. Independent of `block`: `block: false` never covers the page, and still closes a
|
|
31
|
+
* closed gateway's button.
|
|
32
|
+
*/
|
|
33
|
+
gates?: boolean;
|
|
27
34
|
cookie?: boolean;
|
|
28
35
|
heartbeat?: boolean;
|
|
29
36
|
behavior?: boolean;
|
|
@@ -35,6 +42,8 @@ export interface StartOptions {
|
|
|
35
42
|
synCheck?: false | string;
|
|
36
43
|
/** `false` turns the latency series off; a URL names your own host. */
|
|
37
44
|
latencyCheck?: false | string;
|
|
45
|
+
/** `false` turns the QUIC / HTTP/3 probe off; a URL names your own host. */
|
|
46
|
+
quicCheck?: false | string;
|
|
38
47
|
/** A second "which address do I arrive with" host. Off unless named. */
|
|
39
48
|
ipCheck?: string;
|
|
40
49
|
ipCheckKey?: string;
|
|
@@ -66,6 +75,12 @@ export interface HideGuardResult {
|
|
|
66
75
|
/** Ed25519 signature over the reply, when the collector has a signing key. */
|
|
67
76
|
signature?: string;
|
|
68
77
|
presenceToken?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Which payment gateways an operator closed to this visitor. `all`: a full block, every gateway.
|
|
80
|
+
* Absent from collectors older than SDK 1.13. Not signed — never act on it on your server; ask
|
|
81
|
+
* `guard()` there.
|
|
82
|
+
*/
|
|
83
|
+
gates?: { all: boolean; closed: Array<"stripe" | "paypal" | "bank" | "crypto" | "balance"> };
|
|
69
84
|
[field: string]: unknown;
|
|
70
85
|
}
|
|
71
86
|
|