@truesift/express 0.1.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.
@@ -0,0 +1,135 @@
1
+ type TrueSiftErrorCode = 'TRUESIFT_CONFIG_ERROR' | 'TRUESIFT_REQUEST_ERROR' | 'TRUESIFT_TIMEOUT_ERROR' | 'TRUESIFT_AUTH_ERROR' | 'TRUESIFT_RESPONSE_ERROR' | 'TRUESIFT_API_ERROR';
2
+ interface TrueSiftErrorContext {
3
+ readonly [key: string]: unknown;
4
+ }
5
+ interface TrueSiftErrorOptions {
6
+ readonly code: TrueSiftErrorCode;
7
+ readonly message: string;
8
+ readonly statusCode?: number | undefined;
9
+ readonly requestId?: string | undefined;
10
+ readonly context?: TrueSiftErrorContext | undefined;
11
+ readonly cause?: unknown;
12
+ }
13
+ interface TrueSiftApiErrorPayload {
14
+ readonly code?: string | undefined;
15
+ readonly message?: string | undefined;
16
+ readonly details?: unknown;
17
+ }
18
+ interface TrueSiftApiErrorContext extends TrueSiftErrorContext {
19
+ readonly apiError?: TrueSiftApiErrorPayload | undefined;
20
+ }
21
+ interface TrueSiftHttpErrorContext extends TrueSiftErrorContext {
22
+ readonly statusCode?: number | undefined;
23
+ readonly requestId?: string | undefined;
24
+ readonly endpoint?: string | undefined;
25
+ readonly method?: string | undefined;
26
+ }
27
+ type BotGuardErrorCode = TrueSiftErrorCode;
28
+ type BotGuardErrorContext = TrueSiftErrorContext;
29
+ type BotGuardErrorOptions = TrueSiftErrorOptions;
30
+ type BotGuardApiErrorPayload = TrueSiftApiErrorPayload;
31
+ type BotGuardApiErrorContext = TrueSiftApiErrorContext;
32
+ type BotGuardHttpErrorContext = TrueSiftHttpErrorContext;
33
+
34
+ declare class BotGuardError extends Error {
35
+ readonly code: TrueSiftErrorCode;
36
+ readonly statusCode?: number;
37
+ readonly requestId?: string;
38
+ readonly context?: TrueSiftErrorContext;
39
+ constructor(options: TrueSiftErrorOptions);
40
+ toJSON(): {
41
+ readonly name: string;
42
+ readonly code: TrueSiftErrorCode;
43
+ readonly message: string;
44
+ readonly statusCode?: number;
45
+ readonly requestId?: string;
46
+ readonly context?: TrueSiftErrorContext;
47
+ };
48
+ }
49
+
50
+ interface BotGuardConfigErrorOptions {
51
+ readonly message?: string | undefined;
52
+ readonly context?: TrueSiftErrorContext | undefined;
53
+ readonly cause?: unknown;
54
+ }
55
+ declare class BotGuardConfigError extends BotGuardError {
56
+ constructor(options?: BotGuardConfigErrorOptions);
57
+ }
58
+
59
+ interface BotGuardRequestErrorOptions {
60
+ readonly message?: string | undefined;
61
+ readonly statusCode?: number | undefined;
62
+ readonly requestId?: string | undefined;
63
+ readonly context?: TrueSiftErrorContext | undefined;
64
+ readonly cause?: unknown;
65
+ }
66
+ declare class BotGuardRequestError extends BotGuardError {
67
+ constructor(options?: BotGuardRequestErrorOptions);
68
+ }
69
+
70
+ interface BotGuardTimeoutErrorOptions {
71
+ readonly message?: string | undefined;
72
+ readonly timeoutMs?: number | undefined;
73
+ readonly requestId?: string | undefined;
74
+ readonly context?: TrueSiftErrorContext | undefined;
75
+ readonly cause?: unknown;
76
+ }
77
+ declare class BotGuardTimeoutError extends BotGuardError {
78
+ readonly timeoutMs?: number;
79
+ constructor(options?: BotGuardTimeoutErrorOptions);
80
+ toJSON(): {
81
+ readonly name: string;
82
+ readonly code: 'TRUESIFT_TIMEOUT_ERROR';
83
+ readonly message: string;
84
+ readonly statusCode?: number;
85
+ readonly requestId?: string;
86
+ readonly context?: TrueSiftErrorContext;
87
+ readonly timeoutMs?: number;
88
+ };
89
+ }
90
+
91
+ interface BotGuardAuthErrorOptions {
92
+ readonly message?: string | undefined;
93
+ readonly statusCode?: number | undefined;
94
+ readonly requestId?: string | undefined;
95
+ readonly context?: TrueSiftErrorContext | undefined;
96
+ readonly cause?: unknown;
97
+ }
98
+ declare class BotGuardAuthError extends BotGuardError {
99
+ constructor(options?: BotGuardAuthErrorOptions);
100
+ }
101
+
102
+ interface BotGuardResponseErrorOptions {
103
+ readonly message?: string | undefined;
104
+ readonly statusCode?: number | undefined;
105
+ readonly requestId?: string | undefined;
106
+ readonly context?: TrueSiftErrorContext | undefined;
107
+ readonly cause?: unknown;
108
+ }
109
+ declare class BotGuardResponseError extends BotGuardError {
110
+ constructor(options?: BotGuardResponseErrorOptions);
111
+ }
112
+
113
+ interface BotGuardApiErrorOptions {
114
+ readonly message?: string | undefined;
115
+ readonly statusCode?: number | undefined;
116
+ readonly requestId?: string | undefined;
117
+ readonly apiError?: TrueSiftApiErrorPayload | undefined;
118
+ readonly context?: TrueSiftErrorContext | undefined;
119
+ readonly cause?: unknown;
120
+ }
121
+ declare class BotGuardApiError extends BotGuardError {
122
+ readonly apiError?: TrueSiftApiErrorPayload;
123
+ constructor(options?: BotGuardApiErrorOptions);
124
+ toJSON(): {
125
+ readonly name: string;
126
+ readonly code: 'TRUESIFT_API_ERROR';
127
+ readonly message: string;
128
+ readonly statusCode?: number;
129
+ readonly requestId?: string;
130
+ readonly context?: TrueSiftErrorContext;
131
+ readonly apiError?: TrueSiftApiErrorPayload;
132
+ };
133
+ }
134
+
135
+ export { BotGuardApiError as B, type TrueSiftApiErrorContext as T, type BotGuardApiErrorContext as a, type BotGuardApiErrorPayload as b, BotGuardAuthError as c, BotGuardConfigError as d, BotGuardError as e, type BotGuardErrorCode as f, type BotGuardErrorContext as g, type BotGuardErrorOptions as h, type BotGuardHttpErrorContext as i, BotGuardRequestError as j, BotGuardResponseError as k, BotGuardTimeoutError as l, type TrueSiftApiErrorPayload as m, type TrueSiftErrorCode as n, type TrueSiftErrorContext as o, type TrueSiftErrorOptions as p, type TrueSiftHttpErrorContext as q };
@@ -0,0 +1,280 @@
1
+ export { B as BotGuardApiError, a as BotGuardApiErrorContext, b as BotGuardApiErrorPayload, c as BotGuardAuthError, d as BotGuardConfigError, e as BotGuardError, f as BotGuardErrorCode, g as BotGuardErrorContext, h as BotGuardErrorOptions, i as BotGuardHttpErrorContext, j as BotGuardRequestError, k as BotGuardResponseError, l as BotGuardTimeoutError, B as TrueSiftApiError, T as TrueSiftApiErrorContext, m as TrueSiftApiErrorPayload, c as TrueSiftAuthError, d as TrueSiftConfigError, e as TrueSiftError, n as TrueSiftErrorCode, o as TrueSiftErrorContext, p as TrueSiftErrorOptions, q as TrueSiftHttpErrorContext, j as TrueSiftRequestError, k as TrueSiftResponseError, l as TrueSiftTimeoutError } from './index-DWCqfBfQ.js';
2
+
3
+ interface TrueSiftLoggerContext {
4
+ readonly [key: string]: unknown;
5
+ }
6
+ interface TrueSiftLogger {
7
+ readonly warn?: (message: string, context?: TrueSiftLoggerContext) => void;
8
+ readonly error?: (message: string, context?: TrueSiftLoggerContext) => void;
9
+ }
10
+ type TrueSiftFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
11
+ interface TrueSiftClientConfig {
12
+ readonly apiBaseUrl: string | undefined;
13
+ readonly siteKey: string | undefined;
14
+ readonly secretKey: string | undefined;
15
+ readonly defaultAction?: string | undefined;
16
+ readonly defaultOrigin?: string | undefined;
17
+ readonly timeoutMs?: number | undefined;
18
+ readonly fetchImpl?: TrueSiftFetch | undefined;
19
+ readonly logger?: TrueSiftLogger | undefined;
20
+ }
21
+ interface NormalizedTrueSiftClientConfig {
22
+ readonly apiBaseUrl: string;
23
+ readonly siteKey: string;
24
+ readonly secretKey: string;
25
+ readonly defaultAction?: string;
26
+ readonly defaultOrigin?: string;
27
+ readonly timeoutMs: number;
28
+ readonly fetchImpl: TrueSiftFetch;
29
+ readonly logger?: TrueSiftLogger;
30
+ }
31
+ interface TrueSiftSafeClientConfig {
32
+ readonly apiBaseUrl?: string;
33
+ readonly siteKey?: string;
34
+ readonly defaultAction?: string;
35
+ readonly defaultOrigin?: string;
36
+ readonly timeoutMs?: number;
37
+ readonly hasSecretKey: boolean;
38
+ readonly hasCustomFetch: boolean;
39
+ readonly hasLogger: boolean;
40
+ }
41
+ type BotGuardLoggerContext = TrueSiftLoggerContext;
42
+ type BotGuardLogger = TrueSiftLogger;
43
+ type BotGuardFetch = TrueSiftFetch;
44
+ type BotGuardClientConfig = TrueSiftClientConfig;
45
+ type NormalizedBotGuardClientConfig = NormalizedTrueSiftClientConfig;
46
+ type BotGuardSafeClientConfig = TrueSiftSafeClientConfig;
47
+
48
+ type TrueSiftChallengeMetadata = Readonly<Record<string, unknown>>;
49
+ interface TrueSiftCreateChallengeInput {
50
+ readonly siteKey?: string | undefined;
51
+ readonly origin?: string | undefined;
52
+ readonly action?: string | undefined;
53
+ readonly path?: string | undefined;
54
+ readonly metadata?: TrueSiftChallengeMetadata | undefined;
55
+ }
56
+ interface TrueSiftCreateChallengePayload {
57
+ readonly siteKey: string;
58
+ readonly origin: string;
59
+ readonly action: string;
60
+ readonly path: string;
61
+ readonly metadata?: TrueSiftChallengeMetadata | undefined;
62
+ }
63
+ interface TrueSiftChallengeResult {
64
+ readonly success: true;
65
+ readonly challengeId: string;
66
+ readonly challengeToken: string;
67
+ readonly expiresAt: string;
68
+ readonly requestId?: string | undefined;
69
+ readonly raw?: unknown;
70
+ }
71
+ interface TrueSiftChallengeApiResponse {
72
+ readonly success: true;
73
+ readonly challengeId: string;
74
+ readonly challengeToken: string;
75
+ readonly expiresAt: string;
76
+ readonly requestId?: string | undefined;
77
+ }
78
+ interface TrueSiftChallengeValidationContext {
79
+ readonly siteKey?: string | undefined;
80
+ readonly origin?: string | undefined;
81
+ readonly action?: string | undefined;
82
+ readonly path?: string | undefined;
83
+ }
84
+ type BotGuardChallengeMetadata = TrueSiftChallengeMetadata;
85
+ type BotGuardCreateChallengeInput = TrueSiftCreateChallengeInput;
86
+ type BotGuardCreateChallengePayload = TrueSiftCreateChallengePayload;
87
+ type BotGuardChallengeResult = TrueSiftChallengeResult;
88
+ type BotGuardChallengeApiResponse = TrueSiftChallengeApiResponse;
89
+ type BotGuardChallengeValidationContext = TrueSiftChallengeValidationContext;
90
+
91
+ declare const TRUE_SIFT_DECISIONS: readonly ["allow", "review", "block"];
92
+ type TrueSiftDecision = (typeof TRUE_SIFT_DECISIONS)[number];
93
+ type BotGuardDecision = TrueSiftDecision;
94
+ declare const TRUE_SIFT_VERIFICATION_MODES: readonly ["observe", "protect"];
95
+ type TrueSiftVerificationMode = (typeof TRUE_SIFT_VERIFICATION_MODES)[number];
96
+ type BotGuardVerificationMode = TrueSiftVerificationMode;
97
+ interface TrueSiftDecisionMetadata {
98
+ readonly mode?: TrueSiftVerificationMode;
99
+ readonly calculatedDecision?: TrueSiftDecision;
100
+ readonly effectiveDecision?: TrueSiftDecision;
101
+ }
102
+ type BotGuardDecisionMetadata = TrueSiftDecisionMetadata;
103
+ interface TrueSiftDecisionFlags {
104
+ readonly isAllowed: boolean;
105
+ readonly isReview: boolean;
106
+ readonly isBlocked: boolean;
107
+ }
108
+ type BotGuardDecisionFlags = TrueSiftDecisionFlags;
109
+
110
+ type TrueSiftVerifyMetadata = Readonly<Record<string, unknown>>;
111
+ interface TrueSiftClientSignals {
112
+ readonly elapsedMs?: number | undefined;
113
+ readonly honeypotValue?: string | undefined;
114
+ }
115
+ interface TrueSiftVerifyChallengeInput {
116
+ readonly siteKey?: string | undefined;
117
+ readonly secretKey?: string | undefined;
118
+ readonly challengeId?: string | undefined;
119
+ readonly challengeToken?: string | undefined;
120
+ readonly origin?: string | undefined;
121
+ readonly action?: string | undefined;
122
+ readonly path?: string | undefined;
123
+ readonly clientSignals?: TrueSiftClientSignals | undefined;
124
+ readonly metadata?: TrueSiftVerifyMetadata | undefined;
125
+ }
126
+ interface TrueSiftVerifyChallengePayload {
127
+ readonly siteKey: string;
128
+ readonly secretKey: string;
129
+ readonly challengeId: string;
130
+ readonly challengeToken: string;
131
+ readonly origin: string;
132
+ readonly action: string;
133
+ readonly path: string;
134
+ readonly clientSignals?: TrueSiftClientSignals | undefined;
135
+ readonly metadata?: TrueSiftVerifyMetadata | undefined;
136
+ }
137
+ interface TrueSiftVerifyResult extends TrueSiftDecisionMetadata {
138
+ readonly success: true;
139
+ readonly decision: TrueSiftDecision;
140
+ readonly score: number;
141
+ readonly reasonCodes: readonly string[];
142
+ readonly challengeId?: string | undefined;
143
+ readonly requestId?: string | undefined;
144
+ readonly isAllowed: boolean;
145
+ readonly isReview: boolean;
146
+ readonly isBlocked: boolean;
147
+ readonly raw?: unknown;
148
+ }
149
+ interface TrueSiftVerifyApiResponse {
150
+ readonly success: true;
151
+ readonly decision: string;
152
+ readonly score: number;
153
+ readonly reasonCodes?: readonly string[] | undefined;
154
+ readonly challengeId?: string | undefined;
155
+ readonly requestId?: string | undefined;
156
+ readonly mode?: string | undefined;
157
+ readonly calculatedDecision?: string | undefined;
158
+ readonly effectiveDecision?: string | undefined;
159
+ }
160
+ interface TrueSiftVerifyValidationContext {
161
+ readonly siteKey?: string | undefined;
162
+ readonly secretKey?: string | undefined;
163
+ readonly challengeId?: string | undefined;
164
+ readonly challengeToken?: string | undefined;
165
+ readonly origin?: string | undefined;
166
+ readonly action?: string | undefined;
167
+ readonly path?: string | undefined;
168
+ }
169
+ type BotGuardVerifyMetadata = TrueSiftVerifyMetadata;
170
+ type BotGuardClientSignals = TrueSiftClientSignals;
171
+ type BotGuardVerifyChallengeInput = TrueSiftVerifyChallengeInput;
172
+ type BotGuardVerifyChallengePayload = TrueSiftVerifyChallengePayload;
173
+ interface BotGuardVerifyResult extends BotGuardDecisionMetadata {
174
+ readonly success: true;
175
+ readonly decision: BotGuardDecision;
176
+ readonly score: number;
177
+ readonly reasonCodes: readonly string[];
178
+ readonly challengeId?: string | undefined;
179
+ readonly requestId?: string | undefined;
180
+ readonly isAllowed: boolean;
181
+ readonly isReview: boolean;
182
+ readonly isBlocked: boolean;
183
+ readonly raw?: unknown;
184
+ }
185
+ type BotGuardVerifyApiResponse = TrueSiftVerifyApiResponse;
186
+ type BotGuardVerifyValidationContext = TrueSiftVerifyValidationContext;
187
+
188
+ declare class BotGuardClient {
189
+ readonly config: NormalizedBotGuardClientConfig;
190
+ constructor(config: NormalizedBotGuardClientConfig);
191
+ createChallenge(input?: BotGuardCreateChallengeInput): Promise<BotGuardChallengeResult>;
192
+ verifyChallenge(input: BotGuardVerifyChallengeInput): Promise<BotGuardVerifyResult>;
193
+ }
194
+ declare class TrueSiftClient extends BotGuardClient {
195
+ constructor(config: NormalizedTrueSiftClientConfig);
196
+ createChallenge(input?: TrueSiftCreateChallengeInput): Promise<TrueSiftChallengeResult>;
197
+ verifyChallenge(input: TrueSiftVerifyChallengeInput): Promise<TrueSiftVerifyResult>;
198
+ }
199
+
200
+ declare function createBotGuardClient(config: BotGuardClientConfig): BotGuardClient;
201
+ declare function createTrueSiftClient(config: TrueSiftClientConfig): TrueSiftClient;
202
+
203
+ interface DecisionLike {
204
+ readonly decision?: TrueSiftDecision;
205
+ }
206
+ interface BotGuardDecisionLike {
207
+ readonly decision?: BotGuardDecision;
208
+ }
209
+ declare function isAllowedDecision(decision: TrueSiftDecision): boolean;
210
+ declare function isReviewDecision(decision: TrueSiftDecision): boolean;
211
+ declare function isBlockedDecision(decision: TrueSiftDecision): boolean;
212
+ declare function createDecisionFlags(decision: TrueSiftDecision): TrueSiftDecisionFlags;
213
+ declare function isAllowed(result: DecisionLike): boolean;
214
+ declare function isReview(result: DecisionLike): boolean;
215
+ declare function isBlocked(result: DecisionLike): boolean;
216
+ declare const isBotGuardAllowedDecision: typeof isAllowedDecision;
217
+ declare const isBotGuardReviewDecision: typeof isReviewDecision;
218
+ declare const isBotGuardBlockedDecision: typeof isBlockedDecision;
219
+ declare function createBotGuardDecisionFlags(decision: BotGuardDecision): TrueSiftDecisionFlags;
220
+ declare function isBotGuardAllowed(result: BotGuardDecisionLike): boolean;
221
+ declare function isBotGuardReview(result: BotGuardDecisionLike): boolean;
222
+ declare function isBotGuardBlocked(result: BotGuardDecisionLike): boolean;
223
+
224
+ declare function isTrueSiftDecision(value: unknown): value is TrueSiftDecision;
225
+ declare const isBotGuardDecision: typeof isTrueSiftDecision;
226
+ declare function normalizeDecision(value: unknown): TrueSiftDecision;
227
+ declare function normalizeBotGuardDecision(value: unknown): BotGuardDecision;
228
+
229
+ declare const REDACTED_VALUE = "[REDACTED]";
230
+ declare function redactSensitiveValue(value: unknown): unknown;
231
+ declare function isSensitiveKey(key: string): boolean;
232
+ declare function redactSensitiveRecord(record: Readonly<Record<string, unknown>>): Record<string, unknown>;
233
+ declare function redactTrueSiftClientConfig(config: TrueSiftClientConfig): TrueSiftSafeClientConfig;
234
+ declare function redactBotGuardConfig(config: BotGuardClientConfig): BotGuardSafeClientConfig;
235
+
236
+ type TrueSiftHttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
237
+ interface TrueSiftRequestOptions {
238
+ readonly method: TrueSiftHttpMethod;
239
+ readonly endpoint: string;
240
+ readonly body?: unknown;
241
+ readonly timeoutMs: number;
242
+ readonly signal?: AbortSignal | undefined;
243
+ }
244
+ interface TrueSiftHttpResponse<TBody = unknown> {
245
+ readonly statusCode: number;
246
+ readonly ok: boolean;
247
+ readonly headers: Headers;
248
+ readonly body: TBody;
249
+ readonly requestId?: string | undefined;
250
+ }
251
+ interface TrueSiftRequestContext {
252
+ readonly method: TrueSiftHttpMethod;
253
+ readonly endpoint: string;
254
+ readonly timeoutMs?: number | undefined;
255
+ readonly statusCode?: number | undefined;
256
+ readonly requestId?: string | undefined;
257
+ }
258
+ interface TrueSiftJsonErrorResponse {
259
+ readonly success: false;
260
+ readonly error?: {
261
+ readonly code?: string;
262
+ readonly message?: string;
263
+ readonly details?: unknown;
264
+ };
265
+ readonly requestId?: string;
266
+ }
267
+ interface TrueSiftJsonSuccessResponse {
268
+ readonly success: true;
269
+ readonly requestId?: string;
270
+ }
271
+ type TrueSiftJsonResponse = TrueSiftJsonSuccessResponse | TrueSiftJsonErrorResponse;
272
+ type BotGuardHttpMethod = TrueSiftHttpMethod;
273
+ type BotGuardRequestOptions = TrueSiftRequestOptions;
274
+ type BotGuardHttpResponse<TBody = unknown> = TrueSiftHttpResponse<TBody>;
275
+ type BotGuardRequestContext = TrueSiftRequestContext;
276
+ type BotGuardJsonErrorResponse = TrueSiftJsonErrorResponse;
277
+ type BotGuardJsonSuccessResponse = TrueSiftJsonSuccessResponse;
278
+ type BotGuardJsonResponse = TrueSiftJsonResponse;
279
+
280
+ export { type BotGuardChallengeApiResponse, type BotGuardChallengeMetadata, type BotGuardChallengeResult, type BotGuardChallengeValidationContext, BotGuardClient, type BotGuardClientConfig, type BotGuardClientSignals, type BotGuardCreateChallengeInput, type BotGuardCreateChallengePayload, type BotGuardDecision, type BotGuardDecisionFlags, type BotGuardDecisionMetadata, type BotGuardFetch, type BotGuardHttpMethod, type BotGuardHttpResponse, type BotGuardJsonErrorResponse, type BotGuardJsonResponse, type BotGuardJsonSuccessResponse, type BotGuardLogger, type BotGuardLoggerContext, type BotGuardRequestContext, type BotGuardRequestOptions, type BotGuardSafeClientConfig, type BotGuardVerificationMode, type BotGuardVerifyApiResponse, type BotGuardVerifyChallengeInput, type BotGuardVerifyChallengePayload, type BotGuardVerifyMetadata, type BotGuardVerifyResult, type BotGuardVerifyValidationContext, type NormalizedBotGuardClientConfig, type NormalizedTrueSiftClientConfig, REDACTED_VALUE, type TrueSiftChallengeApiResponse, type TrueSiftChallengeMetadata, type TrueSiftChallengeResult, type TrueSiftChallengeValidationContext, TrueSiftClient, type TrueSiftClientConfig, type TrueSiftClientSignals, type TrueSiftCreateChallengeInput, type TrueSiftCreateChallengePayload, type TrueSiftDecision, type TrueSiftDecisionFlags, type TrueSiftDecisionMetadata, type TrueSiftFetch, type TrueSiftHttpMethod, type TrueSiftHttpResponse, type TrueSiftJsonErrorResponse, type TrueSiftJsonResponse, type TrueSiftJsonSuccessResponse, type TrueSiftLogger, type TrueSiftLoggerContext, type TrueSiftRequestContext, type TrueSiftRequestOptions, type TrueSiftSafeClientConfig, type TrueSiftVerificationMode, type TrueSiftVerifyApiResponse, type TrueSiftVerifyChallengeInput, type TrueSiftVerifyChallengePayload, type TrueSiftVerifyMetadata, type TrueSiftVerifyResult, type TrueSiftVerifyValidationContext, createBotGuardClient, createBotGuardDecisionFlags, createDecisionFlags, createTrueSiftClient, isAllowed, isAllowedDecision, isBlocked, isBlockedDecision, isBotGuardAllowed, isBotGuardAllowedDecision, isBotGuardBlocked, isBotGuardBlockedDecision, isBotGuardDecision, isBotGuardReview, isBotGuardReviewDecision, isReview, isReviewDecision, isSensitiveKey, isTrueSiftDecision, normalizeBotGuardDecision, normalizeDecision, redactBotGuardConfig, redactSensitiveRecord, redactSensitiveValue, redactTrueSiftClientConfig };