perimeterx-js-core 0.18.2 → 0.20.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/lib/cjs/additional_activity_handler/AdditionalActivityHandlerUtils.js +1 -1
- package/lib/cjs/blocker/utils.js +1 -3
- package/lib/cjs/config/ConfigurationBase.js +112 -91
- package/lib/cjs/config/ConfigurationBuilderBase.js +8 -7
- package/lib/cjs/config/defaults/DefaultCommonConfigurationParams.js +3 -1
- package/lib/cjs/config/defaults/DefaultStaticConfigurationParams.js +0 -1
- package/lib/cjs/config/remote_config/DefaultRemoteConfigUpdater.js +1 -1
- package/lib/cjs/config/remote_config/RemoteConfigUtils.js +1 -1
- package/lib/cjs/context/DefaultContext.js +4 -1
- package/lib/cjs/custom_parameters/CustomParametersUtils.js +1 -1
- package/lib/cjs/graphql/DefaultGraphQLParser.js +155 -30
- package/lib/cjs/graphql/ExtractGraphQLKeywordsFunction.js +2 -0
- package/lib/cjs/graphql/index.js +1 -0
- package/lib/cjs/telemetry/DefaultTelemetry.js +14 -4
- package/lib/cjs/utils/constants.js +1 -1
- package/lib/cjs/utils/utils.js +25 -1
- package/lib/esm/additional_activity_handler/AdditionalActivityHandlerUtils.js +1 -1
- package/lib/esm/blocker/utils.js +1 -2
- package/lib/esm/config/ConfigurationBase.js +106 -91
- package/lib/esm/config/ConfigurationBuilderBase.js +7 -6
- package/lib/esm/config/defaults/DefaultCommonConfigurationParams.js +3 -1
- package/lib/esm/config/defaults/DefaultStaticConfigurationParams.js +0 -1
- package/lib/esm/config/remote_config/DefaultRemoteConfigUpdater.js +1 -1
- package/lib/esm/config/remote_config/RemoteConfigUtils.js +1 -1
- package/lib/esm/context/DefaultContext.js +5 -2
- package/lib/esm/custom_parameters/CustomParametersUtils.js +1 -1
- package/lib/esm/graphql/DefaultGraphQLParser.js +109 -25
- package/lib/esm/graphql/ExtractGraphQLKeywordsFunction.js +1 -0
- package/lib/esm/graphql/index.js +1 -0
- package/lib/esm/telemetry/DefaultTelemetry.js +15 -5
- package/lib/esm/utils/constants.js +1 -1
- package/lib/esm/utils/utils.js +23 -0
- package/lib/types/activities/utils.d.ts +60 -30
- package/lib/types/blocker/utils.d.ts +6 -3
- package/lib/types/config/ConfigurationBase.d.ts +12 -4
- package/lib/types/config/IConfiguration.d.ts +28 -8
- package/lib/types/config/params/CommonConfigurationParams.d.ts +4 -1
- package/lib/types/config/params/StaticConfigurationParams.d.ts +0 -1
- package/lib/types/graphql/DefaultGraphQLParser.d.ts +20 -11
- package/lib/types/graphql/ExtractGraphQLKeywordsFunction.d.ts +1 -0
- package/lib/types/graphql/index.d.ts +1 -0
- package/lib/types/graphql/model/GraphQLData.d.ts +2 -1
- package/lib/types/monitored_request/MonitoredRequestUtils.d.ts +18 -9
- package/lib/types/pxhd/PXHDUtils.d.ts +12 -6
- package/lib/types/sensitive_request/SensitiveRequestUtils.d.ts +12 -6
- package/lib/types/telemetry/model/TelemetryActivity.d.ts +7 -2
- package/lib/types/utils/constants.d.ts +1 -1
- package/lib/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -17,8 +17,10 @@ var logger_1 = require("../logger");
|
|
|
17
17
|
var utils_1 = require("../utils");
|
|
18
18
|
var ConfigurationBase = /** @class */ (function () {
|
|
19
19
|
function ConfigurationBase(params, defaultParams) {
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
20
|
+
this.defaultConfigParams = __assign(__assign({}, defaults_1.DEFAULT_CONFIGURATION_PARAMS), defaultParams);
|
|
21
|
+
this.activeConfigParams = this.initialize(params, this.defaultConfigParams);
|
|
22
|
+
this.staticConfigParams = params;
|
|
23
|
+
this.internalLogger = this.createInternalLogger(this.activeConfigParams.px_logger_severity);
|
|
22
24
|
}
|
|
23
25
|
ConfigurationBase.prototype.initialize = function (params, defaultParams) {
|
|
24
26
|
var _this = this;
|
|
@@ -74,8 +76,18 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
74
76
|
ConfigurationBase.prototype.createInternalLogger = function (loggerSeverity) {
|
|
75
77
|
return new logger_1.DefaultLogger(loggerSeverity, false);
|
|
76
78
|
};
|
|
77
|
-
ConfigurationBase.prototype.
|
|
78
|
-
|
|
79
|
+
ConfigurationBase.prototype.addRemoteConfig = function (remoteConfigParams) {
|
|
80
|
+
this.remoteConfigParams = remoteConfigParams;
|
|
81
|
+
this.activeConfigParams = this.initialize(__assign(__assign({}, this.staticConfigParams), remoteConfigParams), this.defaultConfigParams);
|
|
82
|
+
};
|
|
83
|
+
ConfigurationBase.prototype.getActiveConfig = function () {
|
|
84
|
+
return Object.assign({}, this.activeConfigParams);
|
|
85
|
+
};
|
|
86
|
+
ConfigurationBase.prototype.getStaticConfig = function () {
|
|
87
|
+
return Object.assign({}, this.staticConfigParams);
|
|
88
|
+
};
|
|
89
|
+
ConfigurationBase.prototype.getRemoteConfig = function () {
|
|
90
|
+
return Object.assign({}, this.remoteConfigParams);
|
|
79
91
|
};
|
|
80
92
|
Object.defineProperty(ConfigurationBase.prototype, "moduleVersion", {
|
|
81
93
|
get: function () {
|
|
@@ -93,147 +105,149 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
93
105
|
});
|
|
94
106
|
Object.defineProperty(ConfigurationBase.prototype, "appId", {
|
|
95
107
|
get: function () {
|
|
96
|
-
return this.
|
|
108
|
+
return this.activeConfigParams.px_app_id;
|
|
97
109
|
},
|
|
98
110
|
enumerable: false,
|
|
99
111
|
configurable: true
|
|
100
112
|
});
|
|
101
113
|
Object.defineProperty(ConfigurationBase.prototype, "authToken", {
|
|
102
114
|
get: function () {
|
|
103
|
-
return this.
|
|
115
|
+
return this.activeConfigParams.px_auth_token;
|
|
104
116
|
},
|
|
105
117
|
enumerable: false,
|
|
106
118
|
configurable: true
|
|
107
119
|
});
|
|
108
120
|
Object.defineProperty(ConfigurationBase.prototype, "blockingScore", {
|
|
109
121
|
get: function () {
|
|
110
|
-
return this.
|
|
122
|
+
return this.activeConfigParams.px_blocking_score;
|
|
111
123
|
},
|
|
112
124
|
enumerable: false,
|
|
113
125
|
configurable: true
|
|
114
126
|
});
|
|
115
127
|
Object.defineProperty(ConfigurationBase.prototype, "bypassMonitorHeader", {
|
|
116
128
|
get: function () {
|
|
117
|
-
return this.
|
|
129
|
+
return this.activeConfigParams.px_bypass_monitor_header;
|
|
118
130
|
},
|
|
119
131
|
enumerable: false,
|
|
120
132
|
configurable: true
|
|
121
133
|
});
|
|
122
134
|
Object.defineProperty(ConfigurationBase.prototype, "cookieSecret", {
|
|
123
135
|
get: function () {
|
|
124
|
-
return this.
|
|
136
|
+
return this.activeConfigParams.px_cookie_secret;
|
|
125
137
|
},
|
|
126
138
|
enumerable: false,
|
|
127
139
|
configurable: true
|
|
128
140
|
});
|
|
129
141
|
Object.defineProperty(ConfigurationBase.prototype, "customCookieHeader", {
|
|
130
142
|
get: function () {
|
|
131
|
-
return this.
|
|
143
|
+
return this.activeConfigParams.px_custom_cookie_header;
|
|
132
144
|
},
|
|
133
145
|
enumerable: false,
|
|
134
146
|
configurable: true
|
|
135
147
|
});
|
|
136
148
|
Object.defineProperty(ConfigurationBase.prototype, "customLogo", {
|
|
137
149
|
get: function () {
|
|
138
|
-
return this.
|
|
150
|
+
return this.activeConfigParams.px_custom_logo;
|
|
139
151
|
},
|
|
140
152
|
enumerable: false,
|
|
141
153
|
configurable: true
|
|
142
154
|
});
|
|
143
155
|
Object.defineProperty(ConfigurationBase.prototype, "enforcedRoutes", {
|
|
144
156
|
get: function () {
|
|
145
|
-
return this.
|
|
157
|
+
return this.activeConfigParams.px_enforced_routes;
|
|
146
158
|
},
|
|
147
159
|
enumerable: false,
|
|
148
160
|
configurable: true
|
|
149
161
|
});
|
|
150
162
|
Object.defineProperty(ConfigurationBase.prototype, "customIsEnforcedRequest", {
|
|
151
163
|
get: function () {
|
|
152
|
-
return this.
|
|
164
|
+
return this.activeConfigParams.px_custom_is_enforced_request;
|
|
153
165
|
},
|
|
154
166
|
enumerable: false,
|
|
155
167
|
configurable: true
|
|
156
168
|
});
|
|
157
169
|
Object.defineProperty(ConfigurationBase.prototype, "filteredExtensions", {
|
|
158
170
|
get: function () {
|
|
159
|
-
return this.
|
|
171
|
+
return this.activeConfigParams.px_filter_by_extension.map(function (ext) {
|
|
172
|
+
return ext.startsWith('.') ? ext : ".".concat(ext);
|
|
173
|
+
});
|
|
160
174
|
},
|
|
161
175
|
enumerable: false,
|
|
162
176
|
configurable: true
|
|
163
177
|
});
|
|
164
178
|
Object.defineProperty(ConfigurationBase.prototype, "filteredHttpMethods", {
|
|
165
179
|
get: function () {
|
|
166
|
-
return this.
|
|
180
|
+
return this.activeConfigParams.px_filter_by_http_method;
|
|
167
181
|
},
|
|
168
182
|
enumerable: false,
|
|
169
183
|
configurable: true
|
|
170
184
|
});
|
|
171
185
|
Object.defineProperty(ConfigurationBase.prototype, "filteredIps", {
|
|
172
186
|
get: function () {
|
|
173
|
-
return this.
|
|
187
|
+
return this.activeConfigParams.px_filter_by_ip;
|
|
174
188
|
},
|
|
175
189
|
enumerable: false,
|
|
176
190
|
configurable: true
|
|
177
191
|
});
|
|
178
192
|
Object.defineProperty(ConfigurationBase.prototype, "filteredRoutes", {
|
|
179
193
|
get: function () {
|
|
180
|
-
return this.
|
|
194
|
+
return this.activeConfigParams.px_filter_by_route;
|
|
181
195
|
},
|
|
182
196
|
enumerable: false,
|
|
183
197
|
configurable: true
|
|
184
198
|
});
|
|
185
199
|
Object.defineProperty(ConfigurationBase.prototype, "filteredUserAgents", {
|
|
186
200
|
get: function () {
|
|
187
|
-
return this.
|
|
201
|
+
return this.activeConfigParams.px_filter_by_user_agent;
|
|
188
202
|
},
|
|
189
203
|
enumerable: false,
|
|
190
204
|
configurable: true
|
|
191
205
|
});
|
|
192
206
|
Object.defineProperty(ConfigurationBase.prototype, "firstPartyEnabled", {
|
|
193
207
|
get: function () {
|
|
194
|
-
return this.
|
|
208
|
+
return this.activeConfigParams.px_first_party_enabled;
|
|
195
209
|
},
|
|
196
210
|
enumerable: false,
|
|
197
211
|
configurable: true
|
|
198
212
|
});
|
|
199
213
|
Object.defineProperty(ConfigurationBase.prototype, "customIsFilteredRequest", {
|
|
200
214
|
get: function () {
|
|
201
|
-
return this.
|
|
215
|
+
return this.activeConfigParams.px_custom_is_filtered_request;
|
|
202
216
|
},
|
|
203
217
|
enumerable: false,
|
|
204
218
|
configurable: true
|
|
205
219
|
});
|
|
206
220
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyPrefix", {
|
|
207
221
|
get: function () {
|
|
208
|
-
return this.
|
|
222
|
+
return this.activeConfigParams.px_custom_first_party_prefix;
|
|
209
223
|
},
|
|
210
224
|
enumerable: false,
|
|
211
225
|
configurable: true
|
|
212
226
|
});
|
|
213
227
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartySensorEndpoint", {
|
|
214
228
|
get: function () {
|
|
215
|
-
return this.
|
|
229
|
+
return this.activeConfigParams.px_custom_first_party_sensor_endpoint;
|
|
216
230
|
},
|
|
217
231
|
enumerable: false,
|
|
218
232
|
configurable: true
|
|
219
233
|
});
|
|
220
234
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyXhrEndpoint", {
|
|
221
235
|
get: function () {
|
|
222
|
-
return this.
|
|
236
|
+
return this.activeConfigParams.px_custom_first_party_xhr_endpoint;
|
|
223
237
|
},
|
|
224
238
|
enumerable: false,
|
|
225
239
|
configurable: true
|
|
226
240
|
});
|
|
227
241
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyCaptchaEndpoint", {
|
|
228
242
|
get: function () {
|
|
229
|
-
return this.
|
|
243
|
+
return this.activeConfigParams.px_custom_first_party_captcha_endpoint;
|
|
230
244
|
},
|
|
231
245
|
enumerable: false,
|
|
232
246
|
configurable: true
|
|
233
247
|
});
|
|
234
248
|
Object.defineProperty(ConfigurationBase.prototype, "firstPartyTimeoutMs", {
|
|
235
249
|
get: function () {
|
|
236
|
-
return this.
|
|
250
|
+
return this.activeConfigParams.px_first_party_timeout_ms;
|
|
237
251
|
},
|
|
238
252
|
enumerable: false,
|
|
239
253
|
configurable: true
|
|
@@ -247,196 +261,210 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
247
261
|
});
|
|
248
262
|
Object.defineProperty(ConfigurationBase.prototype, "moduleEnabled", {
|
|
249
263
|
get: function () {
|
|
250
|
-
return this.
|
|
264
|
+
return this.activeConfigParams.px_module_enabled;
|
|
251
265
|
},
|
|
252
266
|
enumerable: false,
|
|
253
267
|
configurable: true
|
|
254
268
|
});
|
|
255
269
|
Object.defineProperty(ConfigurationBase.prototype, "moduleMode", {
|
|
256
270
|
get: function () {
|
|
257
|
-
return this.
|
|
271
|
+
return this.activeConfigParams.px_module_mode;
|
|
258
272
|
},
|
|
259
273
|
enumerable: false,
|
|
260
274
|
configurable: true
|
|
261
275
|
});
|
|
262
276
|
Object.defineProperty(ConfigurationBase.prototype, "monitoredRoutes", {
|
|
263
277
|
get: function () {
|
|
264
|
-
return this.
|
|
278
|
+
return this.activeConfigParams.px_monitored_routes;
|
|
265
279
|
},
|
|
266
280
|
enumerable: false,
|
|
267
281
|
configurable: true
|
|
268
282
|
});
|
|
269
283
|
Object.defineProperty(ConfigurationBase.prototype, "customIsMonitoredRequest", {
|
|
270
284
|
get: function () {
|
|
271
|
-
return this.
|
|
285
|
+
return this.activeConfigParams.px_custom_is_monitored_request;
|
|
272
286
|
},
|
|
273
287
|
enumerable: false,
|
|
274
288
|
configurable: true
|
|
275
289
|
});
|
|
276
290
|
Object.defineProperty(ConfigurationBase.prototype, "s2sTimeout", {
|
|
277
291
|
get: function () {
|
|
278
|
-
return this.
|
|
292
|
+
return this.activeConfigParams.px_s2s_timeout;
|
|
279
293
|
},
|
|
280
294
|
enumerable: false,
|
|
281
295
|
configurable: true
|
|
282
296
|
});
|
|
283
297
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveHeaders", {
|
|
284
298
|
get: function () {
|
|
285
|
-
return this.
|
|
299
|
+
return this.activeConfigParams.px_sensitive_headers;
|
|
286
300
|
},
|
|
287
301
|
enumerable: false,
|
|
288
302
|
configurable: true
|
|
289
303
|
});
|
|
290
304
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveRoutes", {
|
|
291
305
|
get: function () {
|
|
292
|
-
return this.
|
|
306
|
+
return this.activeConfigParams.px_sensitive_routes;
|
|
293
307
|
},
|
|
294
308
|
enumerable: false,
|
|
295
309
|
configurable: true
|
|
296
310
|
});
|
|
297
311
|
Object.defineProperty(ConfigurationBase.prototype, "customIsSensitiveRequest", {
|
|
298
312
|
get: function () {
|
|
299
|
-
return this.
|
|
313
|
+
return this.activeConfigParams.px_custom_is_sensitive_request;
|
|
300
314
|
},
|
|
301
315
|
enumerable: false,
|
|
302
316
|
configurable: true
|
|
303
317
|
});
|
|
304
318
|
Object.defineProperty(ConfigurationBase.prototype, "advancedBlockingResponseEnabled", {
|
|
305
319
|
get: function () {
|
|
306
|
-
return this.
|
|
320
|
+
return this.activeConfigParams.px_advanced_blocking_response_enabled;
|
|
307
321
|
},
|
|
308
322
|
enumerable: false,
|
|
309
323
|
configurable: true
|
|
310
324
|
});
|
|
311
325
|
Object.defineProperty(ConfigurationBase.prototype, "backendScoreApiUrl", {
|
|
312
326
|
get: function () {
|
|
313
|
-
return this.
|
|
327
|
+
return this.activeConfigParams.px_backend_url;
|
|
314
328
|
},
|
|
315
329
|
enumerable: false,
|
|
316
330
|
configurable: true
|
|
317
331
|
});
|
|
318
332
|
Object.defineProperty(ConfigurationBase.prototype, "ipHeaders", {
|
|
319
333
|
get: function () {
|
|
320
|
-
return this.
|
|
334
|
+
return this.activeConfigParams.px_ip_headers;
|
|
321
335
|
},
|
|
322
336
|
enumerable: false,
|
|
323
337
|
configurable: true
|
|
324
338
|
});
|
|
325
339
|
Object.defineProperty(ConfigurationBase.prototype, "backendCaptchaUrl", {
|
|
326
340
|
get: function () {
|
|
327
|
-
return this.
|
|
341
|
+
return this.activeConfigParams.px_backend_captcha_url;
|
|
328
342
|
},
|
|
329
343
|
enumerable: false,
|
|
330
344
|
configurable: true
|
|
331
345
|
});
|
|
332
346
|
Object.defineProperty(ConfigurationBase.prototype, "backendClientUrl", {
|
|
333
347
|
get: function () {
|
|
334
|
-
return this.
|
|
348
|
+
return this.activeConfigParams.px_backend_client_url;
|
|
335
349
|
},
|
|
336
350
|
enumerable: false,
|
|
337
351
|
configurable: true
|
|
338
352
|
});
|
|
339
353
|
Object.defineProperty(ConfigurationBase.prototype, "backendCollectorUrl", {
|
|
340
354
|
get: function () {
|
|
341
|
-
return this.
|
|
355
|
+
return this.activeConfigParams.px_backend_collector_url;
|
|
342
356
|
},
|
|
343
357
|
enumerable: false,
|
|
344
358
|
configurable: true
|
|
345
359
|
});
|
|
346
360
|
Object.defineProperty(ConfigurationBase.prototype, "cssRef", {
|
|
347
361
|
get: function () {
|
|
348
|
-
return this.
|
|
362
|
+
return this.activeConfigParams.px_css_ref;
|
|
349
363
|
},
|
|
350
364
|
enumerable: false,
|
|
351
365
|
configurable: true
|
|
352
366
|
});
|
|
353
367
|
Object.defineProperty(ConfigurationBase.prototype, "jsRef", {
|
|
354
368
|
get: function () {
|
|
355
|
-
return this.
|
|
369
|
+
return this.activeConfigParams.px_js_ref;
|
|
356
370
|
},
|
|
357
371
|
enumerable: false,
|
|
358
372
|
configurable: true
|
|
359
373
|
});
|
|
360
374
|
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMaxIterations", {
|
|
361
375
|
get: function () {
|
|
362
|
-
return this.
|
|
376
|
+
return this.activeConfigParams.px_risk_cookie_max_iterations;
|
|
363
377
|
},
|
|
364
378
|
enumerable: false,
|
|
365
379
|
configurable: true
|
|
366
380
|
});
|
|
367
381
|
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMinIterations", {
|
|
368
382
|
get: function () {
|
|
369
|
-
return this.
|
|
383
|
+
return this.activeConfigParams.px_risk_cookie_min_iterations;
|
|
370
384
|
},
|
|
371
385
|
enumerable: false,
|
|
372
386
|
configurable: true
|
|
373
387
|
});
|
|
374
388
|
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMaxLength", {
|
|
375
389
|
get: function () {
|
|
376
|
-
return this.
|
|
390
|
+
return this.activeConfigParams.px_risk_cookie_max_length;
|
|
377
391
|
},
|
|
378
392
|
enumerable: false,
|
|
379
393
|
configurable: true
|
|
380
394
|
});
|
|
381
395
|
Object.defineProperty(ConfigurationBase.prototype, "userAgentMaxLength", {
|
|
382
396
|
get: function () {
|
|
383
|
-
return this.
|
|
397
|
+
return this.activeConfigParams.px_user_agent_max_length;
|
|
384
398
|
},
|
|
385
399
|
enumerable: false,
|
|
386
400
|
configurable: true
|
|
387
401
|
});
|
|
388
402
|
Object.defineProperty(ConfigurationBase.prototype, "maxActivityBatchSize", {
|
|
389
403
|
get: function () {
|
|
390
|
-
return this.
|
|
404
|
+
return this.activeConfigParams.px_max_activity_batch_size;
|
|
391
405
|
},
|
|
392
406
|
enumerable: false,
|
|
393
407
|
configurable: true
|
|
394
408
|
});
|
|
395
409
|
Object.defineProperty(ConfigurationBase.prototype, "activityBatchTimeoutMs", {
|
|
396
410
|
get: function () {
|
|
397
|
-
return this.
|
|
411
|
+
return this.activeConfigParams.px_batch_activities_timeout_ms;
|
|
398
412
|
},
|
|
399
413
|
enumerable: false,
|
|
400
414
|
configurable: true
|
|
401
415
|
});
|
|
402
416
|
Object.defineProperty(ConfigurationBase.prototype, "graphqlEnabled", {
|
|
403
417
|
get: function () {
|
|
404
|
-
return this.
|
|
418
|
+
return this.activeConfigParams.px_graphql_enabled;
|
|
405
419
|
},
|
|
406
420
|
enumerable: false,
|
|
407
421
|
configurable: true
|
|
408
422
|
});
|
|
409
423
|
Object.defineProperty(ConfigurationBase.prototype, "graphqlRoutes", {
|
|
410
424
|
get: function () {
|
|
411
|
-
return this.
|
|
425
|
+
return this.activeConfigParams.px_graphql_routes;
|
|
426
|
+
},
|
|
427
|
+
enumerable: false,
|
|
428
|
+
configurable: true
|
|
429
|
+
});
|
|
430
|
+
Object.defineProperty(ConfigurationBase.prototype, "graphqlKeywords", {
|
|
431
|
+
get: function () {
|
|
432
|
+
return this.activeConfigParams.px_graphql_keywords;
|
|
433
|
+
},
|
|
434
|
+
enumerable: false,
|
|
435
|
+
configurable: true
|
|
436
|
+
});
|
|
437
|
+
Object.defineProperty(ConfigurationBase.prototype, "extractGraphQLKeywords", {
|
|
438
|
+
get: function () {
|
|
439
|
+
return this.activeConfigParams.px_extract_graphql_keywords;
|
|
412
440
|
},
|
|
413
441
|
enumerable: false,
|
|
414
442
|
configurable: true
|
|
415
443
|
});
|
|
416
444
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveGraphqlOperationNames", {
|
|
417
445
|
get: function () {
|
|
418
|
-
return this.
|
|
446
|
+
return this.activeConfigParams.px_sensitive_graphql_operation_names;
|
|
419
447
|
},
|
|
420
448
|
enumerable: false,
|
|
421
449
|
configurable: true
|
|
422
450
|
});
|
|
423
451
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveGraphqlOperationTypes", {
|
|
424
452
|
get: function () {
|
|
425
|
-
return this.
|
|
453
|
+
return this.activeConfigParams.px_sensitive_graphql_operation_types;
|
|
426
454
|
},
|
|
427
455
|
enumerable: false,
|
|
428
456
|
configurable: true
|
|
429
457
|
});
|
|
430
458
|
Object.defineProperty(ConfigurationBase.prototype, "enrichCustomParameters", {
|
|
431
459
|
get: function () {
|
|
432
|
-
return this.
|
|
460
|
+
return this.activeConfigParams.px_enrich_custom_parameters || null;
|
|
433
461
|
},
|
|
434
462
|
enumerable: false,
|
|
435
463
|
configurable: true
|
|
436
464
|
});
|
|
437
465
|
Object.defineProperty(ConfigurationBase.prototype, "additionalActivityHandler", {
|
|
438
466
|
get: function () {
|
|
439
|
-
return this.
|
|
467
|
+
return this.activeConfigParams.px_additional_activity_handler || null;
|
|
440
468
|
},
|
|
441
469
|
enumerable: false,
|
|
442
470
|
configurable: true
|
|
@@ -450,224 +478,217 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
450
478
|
});
|
|
451
479
|
Object.defineProperty(ConfigurationBase.prototype, "corsSupportEnabled", {
|
|
452
480
|
get: function () {
|
|
453
|
-
return this.
|
|
481
|
+
return this.activeConfigParams.px_cors_support_enabled;
|
|
454
482
|
},
|
|
455
483
|
enumerable: false,
|
|
456
484
|
configurable: true
|
|
457
485
|
});
|
|
458
486
|
Object.defineProperty(ConfigurationBase.prototype, "corsCustomPreflightHandler", {
|
|
459
487
|
get: function () {
|
|
460
|
-
return this.
|
|
488
|
+
return this.activeConfigParams.px_cors_custom_preflight_handler || null;
|
|
461
489
|
},
|
|
462
490
|
enumerable: false,
|
|
463
491
|
configurable: true
|
|
464
492
|
});
|
|
465
493
|
Object.defineProperty(ConfigurationBase.prototype, "corsPreflightRequestFilterEnabled", {
|
|
466
494
|
get: function () {
|
|
467
|
-
return this.
|
|
495
|
+
return this.activeConfigParams.px_cors_preflight_request_filter_enabled;
|
|
468
496
|
},
|
|
469
497
|
enumerable: false,
|
|
470
498
|
configurable: true
|
|
471
499
|
});
|
|
472
500
|
Object.defineProperty(ConfigurationBase.prototype, "corsCreateCustomBlockResponseHeaders", {
|
|
473
501
|
get: function () {
|
|
474
|
-
return this.
|
|
502
|
+
return this.activeConfigParams.px_cors_create_custom_block_response_headers || null;
|
|
475
503
|
},
|
|
476
504
|
enumerable: false,
|
|
477
505
|
configurable: true
|
|
478
506
|
});
|
|
479
507
|
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieAdditionalFieldNames", {
|
|
480
508
|
get: function () {
|
|
481
|
-
return this.
|
|
509
|
+
return this.activeConfigParams.px_jwt_cookie_additional_field_names;
|
|
482
510
|
},
|
|
483
511
|
enumerable: false,
|
|
484
512
|
configurable: true
|
|
485
513
|
});
|
|
486
514
|
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieName", {
|
|
487
515
|
get: function () {
|
|
488
|
-
return this.
|
|
516
|
+
return this.activeConfigParams.px_jwt_cookie_name;
|
|
489
517
|
},
|
|
490
518
|
enumerable: false,
|
|
491
519
|
configurable: true
|
|
492
520
|
});
|
|
493
521
|
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieUserIdFieldName", {
|
|
494
522
|
get: function () {
|
|
495
|
-
return this.
|
|
523
|
+
return this.activeConfigParams.px_jwt_cookie_user_id_field_name;
|
|
496
524
|
},
|
|
497
525
|
enumerable: false,
|
|
498
526
|
configurable: true
|
|
499
527
|
});
|
|
500
528
|
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderAdditionalFieldNames", {
|
|
501
529
|
get: function () {
|
|
502
|
-
return this.
|
|
530
|
+
return this.activeConfigParams.px_jwt_header_additional_field_names;
|
|
503
531
|
},
|
|
504
532
|
enumerable: false,
|
|
505
533
|
configurable: true
|
|
506
534
|
});
|
|
507
535
|
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderName", {
|
|
508
536
|
get: function () {
|
|
509
|
-
return this.
|
|
537
|
+
return this.activeConfigParams.px_jwt_header_name;
|
|
510
538
|
},
|
|
511
539
|
enumerable: false,
|
|
512
540
|
configurable: true
|
|
513
541
|
});
|
|
514
542
|
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderUserIdFieldName", {
|
|
515
543
|
get: function () {
|
|
516
|
-
return this.
|
|
544
|
+
return this.activeConfigParams.px_jwt_header_user_id_field_name;
|
|
517
545
|
},
|
|
518
546
|
enumerable: false,
|
|
519
547
|
configurable: true
|
|
520
548
|
});
|
|
521
549
|
Object.defineProperty(ConfigurationBase.prototype, "ciEnabled", {
|
|
522
550
|
get: function () {
|
|
523
|
-
return this.
|
|
551
|
+
return this.activeConfigParams.px_login_credentials_extraction_enabled;
|
|
524
552
|
},
|
|
525
553
|
enumerable: false,
|
|
526
554
|
configurable: true
|
|
527
555
|
});
|
|
528
556
|
Object.defineProperty(ConfigurationBase.prototype, "loggerAuthToken", {
|
|
529
557
|
get: function () {
|
|
530
|
-
return this.
|
|
558
|
+
return this.activeConfigParams.px_logger_auth_token;
|
|
531
559
|
},
|
|
532
560
|
enumerable: false,
|
|
533
561
|
configurable: true
|
|
534
562
|
});
|
|
535
563
|
Object.defineProperty(ConfigurationBase.prototype, "ciEndpoints", {
|
|
536
564
|
get: function () {
|
|
537
|
-
return this.
|
|
565
|
+
return this.activeConfigParams.px_login_credentials_extraction;
|
|
538
566
|
},
|
|
539
567
|
enumerable: false,
|
|
540
568
|
configurable: true
|
|
541
569
|
});
|
|
542
570
|
Object.defineProperty(ConfigurationBase.prototype, "ciCompromisedCredentialsHeaderName", {
|
|
543
571
|
get: function () {
|
|
544
|
-
return this.
|
|
572
|
+
return this.activeConfigParams.px_compromised_credentials_header;
|
|
545
573
|
},
|
|
546
574
|
enumerable: false,
|
|
547
575
|
configurable: true
|
|
548
576
|
});
|
|
549
577
|
Object.defineProperty(ConfigurationBase.prototype, "ciSendRawUsernameOnAdditionalS2SActivity", {
|
|
550
578
|
get: function () {
|
|
551
|
-
return this.
|
|
579
|
+
return this.activeConfigParams.px_send_raw_username_on_additional_s2s_activity;
|
|
552
580
|
},
|
|
553
581
|
enumerable: false,
|
|
554
582
|
configurable: true
|
|
555
583
|
});
|
|
556
584
|
Object.defineProperty(ConfigurationBase.prototype, "ciAutomaticAdditionalS2SEnabled", {
|
|
557
585
|
get: function () {
|
|
558
|
-
return this.
|
|
586
|
+
return this.activeConfigParams.px_automatic_additional_s2s_activity_enabled;
|
|
559
587
|
},
|
|
560
588
|
enumerable: false,
|
|
561
589
|
configurable: true
|
|
562
590
|
});
|
|
563
591
|
Object.defineProperty(ConfigurationBase.prototype, "ciAdditionalS2SHeaderEnabled", {
|
|
564
592
|
get: function () {
|
|
565
|
-
return this.
|
|
593
|
+
return this.activeConfigParams.px_additional_s2s_activity_header_enabled;
|
|
566
594
|
},
|
|
567
595
|
enumerable: false,
|
|
568
596
|
configurable: true
|
|
569
597
|
});
|
|
570
598
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultVersion", {
|
|
571
599
|
get: function () {
|
|
572
|
-
return this.
|
|
600
|
+
return this.activeConfigParams.px_credentials_intelligence_version;
|
|
573
601
|
},
|
|
574
602
|
enumerable: false,
|
|
575
603
|
configurable: true
|
|
576
604
|
});
|
|
577
605
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulReportingMethod", {
|
|
578
606
|
get: function () {
|
|
579
|
-
return this.
|
|
607
|
+
return this.activeConfigParams.px_login_successful_reporting_method;
|
|
580
608
|
},
|
|
581
609
|
enumerable: false,
|
|
582
610
|
configurable: true
|
|
583
611
|
});
|
|
584
612
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulStatus", {
|
|
585
613
|
get: function () {
|
|
586
|
-
return this.
|
|
614
|
+
return this.activeConfigParams.px_login_successful_status;
|
|
587
615
|
},
|
|
588
616
|
enumerable: false,
|
|
589
617
|
configurable: true
|
|
590
618
|
});
|
|
591
619
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulBodyRegex", {
|
|
592
620
|
get: function () {
|
|
593
|
-
return this.
|
|
621
|
+
return this.activeConfigParams.px_login_successful_body_regex;
|
|
594
622
|
},
|
|
595
623
|
enumerable: false,
|
|
596
624
|
configurable: true
|
|
597
625
|
});
|
|
598
626
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulHeaderName", {
|
|
599
627
|
get: function () {
|
|
600
|
-
return this.
|
|
628
|
+
return this.activeConfigParams.px_login_successful_header_name;
|
|
601
629
|
},
|
|
602
630
|
enumerable: false,
|
|
603
631
|
configurable: true
|
|
604
632
|
});
|
|
605
633
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulHeaderValue", {
|
|
606
634
|
get: function () {
|
|
607
|
-
return this.
|
|
635
|
+
return this.activeConfigParams.px_login_successful_header_value;
|
|
608
636
|
},
|
|
609
637
|
enumerable: false,
|
|
610
638
|
configurable: true
|
|
611
639
|
});
|
|
612
640
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulCustomCallback", {
|
|
613
641
|
get: function () {
|
|
614
|
-
return this.
|
|
642
|
+
return this.activeConfigParams.px_login_successful_custom_callback;
|
|
615
643
|
},
|
|
616
644
|
enumerable: false,
|
|
617
645
|
configurable: true
|
|
618
646
|
});
|
|
619
647
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigAuthToken", {
|
|
620
648
|
get: function () {
|
|
621
|
-
return this.
|
|
622
|
-
},
|
|
623
|
-
enumerable: false,
|
|
624
|
-
configurable: true
|
|
625
|
-
});
|
|
626
|
-
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigSecret", {
|
|
627
|
-
get: function () {
|
|
628
|
-
return this.configParams.px_remote_config_secret;
|
|
649
|
+
return this.activeConfigParams.px_remote_config_auth_token;
|
|
629
650
|
},
|
|
630
651
|
enumerable: false,
|
|
631
652
|
configurable: true
|
|
632
653
|
});
|
|
633
654
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigVersion", {
|
|
634
655
|
get: function () {
|
|
635
|
-
return this.
|
|
656
|
+
return this.activeConfigParams.px_remote_config_version;
|
|
636
657
|
},
|
|
637
658
|
enumerable: false,
|
|
638
659
|
configurable: true
|
|
639
660
|
});
|
|
640
661
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigId", {
|
|
641
662
|
get: function () {
|
|
642
|
-
return this.
|
|
663
|
+
return this.activeConfigParams.px_remote_config_id;
|
|
643
664
|
},
|
|
644
665
|
enumerable: false,
|
|
645
666
|
configurable: true
|
|
646
667
|
});
|
|
647
668
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigRetryIntervalMs", {
|
|
648
669
|
get: function () {
|
|
649
|
-
return this.
|
|
670
|
+
return this.activeConfigParams.px_remote_config_retry_interval_ms;
|
|
650
671
|
},
|
|
651
672
|
enumerable: false,
|
|
652
673
|
configurable: true
|
|
653
674
|
});
|
|
654
675
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigMaxFetchAttempts", {
|
|
655
676
|
get: function () {
|
|
656
|
-
return this.
|
|
677
|
+
return this.activeConfigParams.px_remote_config_max_fetch_attempts;
|
|
657
678
|
},
|
|
658
679
|
enumerable: false,
|
|
659
680
|
configurable: true
|
|
660
681
|
});
|
|
661
682
|
Object.defineProperty(ConfigurationBase.prototype, "urlDecodeReservedCharacters", {
|
|
662
683
|
get: function () {
|
|
663
|
-
return this.
|
|
684
|
+
return this.activeConfigParams.px_url_decode_reserved_characters;
|
|
664
685
|
},
|
|
665
686
|
enumerable: false,
|
|
666
687
|
configurable: true
|
|
667
688
|
});
|
|
668
689
|
Object.defineProperty(ConfigurationBase.prototype, "securedPxhdEnabled", {
|
|
669
690
|
get: function () {
|
|
670
|
-
return this.
|
|
691
|
+
return this.activeConfigParams.px_secured_pxhd_enabled;
|
|
671
692
|
},
|
|
672
693
|
enumerable: false,
|
|
673
694
|
configurable: true
|