@quba/sensitive-data-protection 0.0.5 → 0.0.6
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/dist/index.cjs +317 -317
- package/dist/index.d.cts +254 -254
- package/dist/index.d.mts +254 -254
- package/dist/index.mjs +245 -245
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -264,96 +264,96 @@ var TextApiResponse = class {
|
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
//#endregion
|
|
267
|
-
//#region src/models/
|
|
267
|
+
//#region src/models/Entities.ts
|
|
268
268
|
/**
|
|
269
|
-
* Check if a given object implements the
|
|
269
|
+
* Check if a given object implements the Entities interface.
|
|
270
270
|
*/
|
|
271
|
-
function
|
|
271
|
+
function instanceOfEntities(value) {
|
|
272
272
|
return true;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
274
|
+
function EntitiesFromJSON(json) {
|
|
275
|
+
return EntitiesFromJSONTyped(json, false);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function EntitiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
278
278
|
return json;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function EntitiesToJSON(json) {
|
|
281
|
+
return EntitiesToJSONTyped(json, false);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function EntitiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
284
284
|
return value;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
//#endregion
|
|
288
|
-
//#region src/models/
|
|
288
|
+
//#region src/models/EncryptRule.ts
|
|
289
289
|
/**
|
|
290
290
|
* @export
|
|
291
291
|
*/
|
|
292
|
-
const
|
|
292
|
+
const EncryptRuleTypeEnum = { encrypt: "encrypt" };
|
|
293
293
|
/**
|
|
294
|
-
* Check if a given object implements the
|
|
294
|
+
* Check if a given object implements the EncryptRule interface.
|
|
295
295
|
*/
|
|
296
|
-
function
|
|
297
|
-
if (!("
|
|
296
|
+
function instanceOfEncryptRule(value) {
|
|
297
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
298
298
|
return true;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function EncryptRuleFromJSON(json) {
|
|
301
|
+
return EncryptRuleFromJSONTyped(json, false);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function EncryptRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
304
304
|
if (json == null) return json;
|
|
305
305
|
return {
|
|
306
|
-
"
|
|
307
|
-
"
|
|
306
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
307
|
+
"entities": EntitiesFromJSON(json["entities"]),
|
|
308
308
|
"key": json["key"] == null ? void 0 : json["key"]
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
return
|
|
311
|
+
function EncryptRuleToJSON(json) {
|
|
312
|
+
return EncryptRuleToJSONTyped(json, false);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function EncryptRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
315
315
|
if (value == null) return value;
|
|
316
316
|
return {
|
|
317
|
-
"
|
|
318
|
-
"
|
|
317
|
+
"type": value["type"],
|
|
318
|
+
"entities": EntitiesToJSON(value["entities"]),
|
|
319
319
|
"key": value["key"]
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
//#endregion
|
|
324
|
-
//#region src/models/
|
|
324
|
+
//#region src/models/MaskRule.ts
|
|
325
325
|
/**
|
|
326
326
|
* @export
|
|
327
327
|
*/
|
|
328
|
-
const
|
|
328
|
+
const MaskRuleTypeEnum = { mask: "mask" };
|
|
329
329
|
/**
|
|
330
|
-
* Check if a given object implements the
|
|
330
|
+
* Check if a given object implements the MaskRule interface.
|
|
331
331
|
*/
|
|
332
|
-
function
|
|
333
|
-
if (!("
|
|
332
|
+
function instanceOfMaskRule(value) {
|
|
333
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
334
334
|
return true;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
336
|
+
function MaskRuleFromJSON(json) {
|
|
337
|
+
return MaskRuleFromJSONTyped(json, false);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function MaskRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
340
340
|
if (json == null) return json;
|
|
341
341
|
return {
|
|
342
|
-
"
|
|
343
|
-
"
|
|
342
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
343
|
+
"entities": EntitiesFromJSON(json["entities"]),
|
|
344
344
|
"masking_char": json["masking_char"] == null ? void 0 : json["masking_char"],
|
|
345
345
|
"chars_to_mask": json["chars_to_mask"] == null ? void 0 : json["chars_to_mask"],
|
|
346
346
|
"from_end": json["from_end"] == null ? void 0 : json["from_end"]
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return
|
|
349
|
+
function MaskRuleToJSON(json) {
|
|
350
|
+
return MaskRuleToJSONTyped(json, false);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function MaskRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
353
353
|
if (value == null) return value;
|
|
354
354
|
return {
|
|
355
|
-
"
|
|
356
|
-
"
|
|
355
|
+
"type": value["type"],
|
|
356
|
+
"entities": EntitiesToJSON(value["entities"]),
|
|
357
357
|
"masking_char": value["masking_char"],
|
|
358
358
|
"chars_to_mask": value["chars_to_mask"],
|
|
359
359
|
"from_end": value["from_end"]
|
|
@@ -361,172 +361,172 @@ function MaskTransformationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
//#endregion
|
|
364
|
-
//#region src/models/
|
|
364
|
+
//#region src/models/RedactRule.ts
|
|
365
365
|
/**
|
|
366
366
|
* @export
|
|
367
367
|
*/
|
|
368
|
-
const
|
|
368
|
+
const RedactRuleTypeEnum = { redact: "redact" };
|
|
369
369
|
/**
|
|
370
|
-
* Check if a given object implements the
|
|
370
|
+
* Check if a given object implements the RedactRule interface.
|
|
371
371
|
*/
|
|
372
|
-
function
|
|
373
|
-
if (!("
|
|
372
|
+
function instanceOfRedactRule(value) {
|
|
373
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
374
374
|
return true;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
376
|
+
function RedactRuleFromJSON(json) {
|
|
377
|
+
return RedactRuleFromJSONTyped(json, false);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function RedactRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
380
380
|
if (json == null) return json;
|
|
381
381
|
return {
|
|
382
|
-
"
|
|
383
|
-
"
|
|
382
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
383
|
+
"entities": EntitiesFromJSON(json["entities"])
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function RedactRuleToJSON(json) {
|
|
387
|
+
return RedactRuleToJSONTyped(json, false);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function RedactRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
390
390
|
if (value == null) return value;
|
|
391
391
|
return {
|
|
392
|
-
"
|
|
393
|
-
"
|
|
392
|
+
"type": value["type"],
|
|
393
|
+
"entities": EntitiesToJSON(value["entities"])
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
//#endregion
|
|
398
|
-
//#region src/models/
|
|
398
|
+
//#region src/models/ReplaceRule.ts
|
|
399
399
|
/**
|
|
400
400
|
* @export
|
|
401
401
|
*/
|
|
402
|
-
const
|
|
402
|
+
const ReplaceRuleTypeEnum = { replace: "replace" };
|
|
403
403
|
/**
|
|
404
|
-
* Check if a given object implements the
|
|
404
|
+
* Check if a given object implements the ReplaceRule interface.
|
|
405
405
|
*/
|
|
406
|
-
function
|
|
407
|
-
if (!("
|
|
406
|
+
function instanceOfReplaceRule(value) {
|
|
407
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
408
408
|
return true;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
return
|
|
410
|
+
function ReplaceRuleFromJSON(json) {
|
|
411
|
+
return ReplaceRuleFromJSONTyped(json, false);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function ReplaceRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
414
414
|
if (json == null) return json;
|
|
415
415
|
return {
|
|
416
|
-
"
|
|
417
|
-
"
|
|
416
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
417
|
+
"entities": EntitiesFromJSON(json["entities"]),
|
|
418
418
|
"replacement": json["replacement"] == null ? void 0 : json["replacement"]
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
return
|
|
421
|
+
function ReplaceRuleToJSON(json) {
|
|
422
|
+
return ReplaceRuleToJSONTyped(json, false);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function ReplaceRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
425
425
|
if (value == null) return value;
|
|
426
426
|
return {
|
|
427
|
-
"
|
|
428
|
-
"
|
|
427
|
+
"type": value["type"],
|
|
428
|
+
"entities": EntitiesToJSON(value["entities"]),
|
|
429
429
|
"replacement": value["replacement"]
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
//#endregion
|
|
434
|
-
//#region src/models/
|
|
434
|
+
//#region src/models/SHA256Rule.ts
|
|
435
435
|
/**
|
|
436
436
|
* @export
|
|
437
437
|
*/
|
|
438
|
-
const
|
|
438
|
+
const SHA256RuleTypeEnum = { sha256: "sha256" };
|
|
439
439
|
/**
|
|
440
|
-
* Check if a given object implements the
|
|
440
|
+
* Check if a given object implements the SHA256Rule interface.
|
|
441
441
|
*/
|
|
442
|
-
function
|
|
443
|
-
if (!("
|
|
442
|
+
function instanceOfSHA256Rule(value) {
|
|
443
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
444
444
|
return true;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
return
|
|
446
|
+
function SHA256RuleFromJSON(json) {
|
|
447
|
+
return SHA256RuleFromJSONTyped(json, false);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function SHA256RuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
450
450
|
if (json == null) return json;
|
|
451
451
|
return {
|
|
452
|
-
"
|
|
453
|
-
"
|
|
452
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
453
|
+
"entities": EntitiesFromJSON(json["entities"])
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return
|
|
456
|
+
function SHA256RuleToJSON(json) {
|
|
457
|
+
return SHA256RuleToJSONTyped(json, false);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function SHA256RuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
460
460
|
if (value == null) return value;
|
|
461
461
|
return {
|
|
462
|
-
"
|
|
463
|
-
"
|
|
462
|
+
"type": value["type"],
|
|
463
|
+
"entities": EntitiesToJSON(value["entities"])
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
//#endregion
|
|
468
|
-
//#region src/models/
|
|
468
|
+
//#region src/models/SHA512Rule.ts
|
|
469
469
|
/**
|
|
470
470
|
* @export
|
|
471
471
|
*/
|
|
472
|
-
const
|
|
472
|
+
const SHA512RuleTypeEnum = { sha512: "sha512" };
|
|
473
473
|
/**
|
|
474
|
-
* Check if a given object implements the
|
|
474
|
+
* Check if a given object implements the SHA512Rule interface.
|
|
475
475
|
*/
|
|
476
|
-
function
|
|
477
|
-
if (!("
|
|
476
|
+
function instanceOfSHA512Rule(value) {
|
|
477
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
478
478
|
return true;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
480
|
+
function SHA512RuleFromJSON(json) {
|
|
481
|
+
return SHA512RuleFromJSONTyped(json, false);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function SHA512RuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
484
484
|
if (json == null) return json;
|
|
485
485
|
return {
|
|
486
|
-
"
|
|
487
|
-
"
|
|
486
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
487
|
+
"entities": EntitiesFromJSON(json["entities"])
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
490
|
+
function SHA512RuleToJSON(json) {
|
|
491
|
+
return SHA512RuleToJSONTyped(json, false);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function SHA512RuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
494
494
|
if (value == null) return value;
|
|
495
495
|
return {
|
|
496
|
-
"
|
|
497
|
-
"
|
|
496
|
+
"type": value["type"],
|
|
497
|
+
"entities": EntitiesToJSON(value["entities"])
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
//#endregion
|
|
502
|
-
//#region src/models/
|
|
503
|
-
function
|
|
504
|
-
return
|
|
502
|
+
//#region src/models/AnonymizeRequestBodyRulesInner.ts
|
|
503
|
+
function AnonymizeRequestBodyRulesInnerFromJSON(json) {
|
|
504
|
+
return AnonymizeRequestBodyRulesInnerFromJSONTyped(json, false);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function AnonymizeRequestBodyRulesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
507
507
|
if (json == null) return json;
|
|
508
|
-
switch (json["
|
|
509
|
-
case "encrypt": return Object.assign({},
|
|
510
|
-
case "mask": return Object.assign({},
|
|
511
|
-
case "redact": return Object.assign({},
|
|
512
|
-
case "replace": return Object.assign({},
|
|
513
|
-
case "sha256": return Object.assign({},
|
|
514
|
-
case "sha512": return Object.assign({},
|
|
508
|
+
switch (json["type"]) {
|
|
509
|
+
case "encrypt": return Object.assign({}, EncryptRuleFromJSONTyped(json, true), { type: "encrypt" });
|
|
510
|
+
case "mask": return Object.assign({}, MaskRuleFromJSONTyped(json, true), { type: "mask" });
|
|
511
|
+
case "redact": return Object.assign({}, RedactRuleFromJSONTyped(json, true), { type: "redact" });
|
|
512
|
+
case "replace": return Object.assign({}, ReplaceRuleFromJSONTyped(json, true), { type: "replace" });
|
|
513
|
+
case "sha256": return Object.assign({}, SHA256RuleFromJSONTyped(json, true), { type: "sha256" });
|
|
514
|
+
case "sha512": return Object.assign({}, SHA512RuleFromJSONTyped(json, true), { type: "sha512" });
|
|
515
515
|
default: return json;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
518
|
+
function AnonymizeRequestBodyRulesInnerToJSON(json) {
|
|
519
|
+
return AnonymizeRequestBodyRulesInnerToJSONTyped(json, false);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function AnonymizeRequestBodyRulesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
522
522
|
if (value == null) return value;
|
|
523
|
-
switch (value["
|
|
524
|
-
case "encrypt": return Object.assign({},
|
|
525
|
-
case "mask": return Object.assign({},
|
|
526
|
-
case "redact": return Object.assign({},
|
|
527
|
-
case "replace": return Object.assign({},
|
|
528
|
-
case "sha256": return Object.assign({},
|
|
529
|
-
case "sha512": return Object.assign({},
|
|
523
|
+
switch (value["type"]) {
|
|
524
|
+
case "encrypt": return Object.assign({}, EncryptRuleToJSON(value), { type: "encrypt" });
|
|
525
|
+
case "mask": return Object.assign({}, MaskRuleToJSON(value), { type: "mask" });
|
|
526
|
+
case "redact": return Object.assign({}, RedactRuleToJSON(value), { type: "redact" });
|
|
527
|
+
case "replace": return Object.assign({}, ReplaceRuleToJSON(value), { type: "replace" });
|
|
528
|
+
case "sha256": return Object.assign({}, SHA256RuleToJSON(value), { type: "sha256" });
|
|
529
|
+
case "sha512": return Object.assign({}, SHA512RuleToJSON(value), { type: "sha512" });
|
|
530
530
|
default: return value;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
@@ -538,7 +538,7 @@ function AnonymizeRequestBodyTransformationsInnerToJSONTyped(value, ignoreDiscri
|
|
|
538
538
|
*/
|
|
539
539
|
function instanceOfAnonymizeRequestBody(value) {
|
|
540
540
|
if (!("text" in value) || value["text"] === void 0) return false;
|
|
541
|
-
if (!("
|
|
541
|
+
if (!("rules" in value) || value["rules"] === void 0) return false;
|
|
542
542
|
return true;
|
|
543
543
|
}
|
|
544
544
|
function AnonymizeRequestBodyFromJSON(json) {
|
|
@@ -548,7 +548,7 @@ function AnonymizeRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
548
548
|
if (json == null) return json;
|
|
549
549
|
return {
|
|
550
550
|
"text": json["text"],
|
|
551
|
-
"
|
|
551
|
+
"rules": json["rules"].map(AnonymizeRequestBodyRulesInnerFromJSON)
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
function AnonymizeRequestBodyToJSON(json) {
|
|
@@ -558,7 +558,7 @@ function AnonymizeRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
558
558
|
if (value == null) return value;
|
|
559
559
|
return {
|
|
560
560
|
"text": value["text"],
|
|
561
|
-
"
|
|
561
|
+
"rules": value["rules"].map(AnonymizeRequestBodyRulesInnerToJSON)
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
564
|
|
|
@@ -593,84 +593,98 @@ function AnonymizeResponseBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
//#endregion
|
|
596
|
-
//#region src/models/
|
|
596
|
+
//#region src/models/ModelEntity.ts
|
|
597
597
|
/**
|
|
598
598
|
* @export
|
|
599
599
|
*/
|
|
600
|
-
const
|
|
600
|
+
const ModelEntityTypeEnum = { model: "model" };
|
|
601
601
|
/**
|
|
602
|
-
* Check if a given object implements the
|
|
602
|
+
* Check if a given object implements the ModelEntity interface.
|
|
603
603
|
*/
|
|
604
|
-
function
|
|
605
|
-
if (!("
|
|
606
|
-
if (!("end" in value) || value["end"] === void 0) return false;
|
|
607
|
-
if (!("entity_type" in value) || value["entity_type"] === void 0) return false;
|
|
608
|
-
if (!("text" in value) || value["text"] === void 0) return false;
|
|
604
|
+
function instanceOfModelEntity(value) {
|
|
605
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
609
606
|
return true;
|
|
610
607
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
608
|
+
function ModelEntityFromJSON(json) {
|
|
609
|
+
return ModelEntityFromJSONTyped(json, false);
|
|
613
610
|
}
|
|
614
|
-
function
|
|
611
|
+
function ModelEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
615
612
|
if (json == null) return json;
|
|
616
613
|
return {
|
|
617
|
-
"
|
|
618
|
-
"
|
|
619
|
-
"end": json["end"],
|
|
620
|
-
"entity_type": json["entity_type"],
|
|
621
|
-
"text": json["text"],
|
|
622
|
-
"score": json["score"] == null ? void 0 : json["score"]
|
|
614
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
615
|
+
"value": json["value"]
|
|
623
616
|
};
|
|
624
617
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
618
|
+
function ModelEntityToJSON(json) {
|
|
619
|
+
return ModelEntityToJSONTyped(json, false);
|
|
627
620
|
}
|
|
628
|
-
function
|
|
621
|
+
function ModelEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
629
622
|
if (value == null) return value;
|
|
630
623
|
return {
|
|
631
|
-
"
|
|
632
|
-
"
|
|
633
|
-
"end": value["end"],
|
|
634
|
-
"entity_type": value["entity_type"],
|
|
635
|
-
"text": value["text"],
|
|
636
|
-
"score": value["score"]
|
|
624
|
+
"type": value["type"],
|
|
625
|
+
"value": value["value"]
|
|
637
626
|
};
|
|
638
627
|
}
|
|
639
628
|
|
|
640
629
|
//#endregion
|
|
641
|
-
//#region src/models/
|
|
630
|
+
//#region src/models/RegexEntity.ts
|
|
642
631
|
/**
|
|
643
632
|
* @export
|
|
644
633
|
*/
|
|
645
|
-
const
|
|
634
|
+
const RegexEntityTypeEnum = { regex: "regex" };
|
|
646
635
|
/**
|
|
647
|
-
* Check if a given object implements the
|
|
636
|
+
* Check if a given object implements the RegexEntity interface.
|
|
648
637
|
*/
|
|
649
|
-
function
|
|
650
|
-
if (!("
|
|
638
|
+
function instanceOfRegexEntity(value) {
|
|
639
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
651
640
|
return true;
|
|
652
641
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
642
|
+
function RegexEntityFromJSON(json) {
|
|
643
|
+
return RegexEntityFromJSONTyped(json, false);
|
|
655
644
|
}
|
|
656
|
-
function
|
|
645
|
+
function RegexEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
657
646
|
if (json == null) return json;
|
|
658
647
|
return {
|
|
659
|
-
"
|
|
660
|
-
"
|
|
648
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
649
|
+
"value": json["value"]
|
|
661
650
|
};
|
|
662
651
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
652
|
+
function RegexEntityToJSON(json) {
|
|
653
|
+
return RegexEntityToJSONTyped(json, false);
|
|
665
654
|
}
|
|
666
|
-
function
|
|
655
|
+
function RegexEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
667
656
|
if (value == null) return value;
|
|
668
657
|
return {
|
|
669
|
-
"
|
|
670
|
-
"
|
|
658
|
+
"type": value["type"],
|
|
659
|
+
"value": value["value"]
|
|
671
660
|
};
|
|
672
661
|
}
|
|
673
662
|
|
|
663
|
+
//#endregion
|
|
664
|
+
//#region src/models/EntitiesAnyOfInner.ts
|
|
665
|
+
function EntitiesAnyOfInnerFromJSON(json) {
|
|
666
|
+
return EntitiesAnyOfInnerFromJSONTyped(json, false);
|
|
667
|
+
}
|
|
668
|
+
function EntitiesAnyOfInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
669
|
+
if (json == null) return json;
|
|
670
|
+
switch (json["type"]) {
|
|
671
|
+
case "model": return Object.assign({}, ModelEntityFromJSONTyped(json, true), { type: "model" });
|
|
672
|
+
case "regex": return Object.assign({}, RegexEntityFromJSONTyped(json, true), { type: "regex" });
|
|
673
|
+
default: return json;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
function EntitiesAnyOfInnerToJSON(json) {
|
|
677
|
+
return EntitiesAnyOfInnerToJSONTyped(json, false);
|
|
678
|
+
}
|
|
679
|
+
function EntitiesAnyOfInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
680
|
+
if (value == null) return value;
|
|
681
|
+
switch (value["type"]) {
|
|
682
|
+
case "model": return Object.assign({}, ModelEntityToJSON(value), { type: "model" });
|
|
683
|
+
case "regex": return Object.assign({}, RegexEntityToJSON(value), { type: "regex" });
|
|
684
|
+
default: return value;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
674
688
|
//#endregion
|
|
675
689
|
//#region src/models/ValidationErrorLocInner.ts
|
|
676
690
|
/**
|
|
@@ -750,44 +764,89 @@ function HTTPValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
750
764
|
}
|
|
751
765
|
|
|
752
766
|
//#endregion
|
|
753
|
-
//#region src/models/
|
|
767
|
+
//#region src/models/ModelSpan.ts
|
|
768
|
+
/**
|
|
769
|
+
* @export
|
|
770
|
+
*/
|
|
771
|
+
const ModelSpanTypeEnum = { model: "model" };
|
|
772
|
+
/**
|
|
773
|
+
* Check if a given object implements the ModelSpan interface.
|
|
774
|
+
*/
|
|
775
|
+
function instanceOfModelSpan(value) {
|
|
776
|
+
if (!("start" in value) || value["start"] === void 0) return false;
|
|
777
|
+
if (!("end" in value) || value["end"] === void 0) return false;
|
|
778
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
779
|
+
if (!("text" in value) || value["text"] === void 0) return false;
|
|
780
|
+
return true;
|
|
781
|
+
}
|
|
782
|
+
function ModelSpanFromJSON(json) {
|
|
783
|
+
return ModelSpanFromJSONTyped(json, false);
|
|
784
|
+
}
|
|
785
|
+
function ModelSpanFromJSONTyped(json, ignoreDiscriminator) {
|
|
786
|
+
if (json == null) return json;
|
|
787
|
+
return {
|
|
788
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
789
|
+
"start": json["start"],
|
|
790
|
+
"end": json["end"],
|
|
791
|
+
"value": json["value"],
|
|
792
|
+
"text": json["text"],
|
|
793
|
+
"score": json["score"] == null ? void 0 : json["score"]
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
function ModelSpanToJSON(json) {
|
|
797
|
+
return ModelSpanToJSONTyped(json, false);
|
|
798
|
+
}
|
|
799
|
+
function ModelSpanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
800
|
+
if (value == null) return value;
|
|
801
|
+
return {
|
|
802
|
+
"type": value["type"],
|
|
803
|
+
"start": value["start"],
|
|
804
|
+
"end": value["end"],
|
|
805
|
+
"value": value["value"],
|
|
806
|
+
"text": value["text"],
|
|
807
|
+
"score": value["score"]
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region src/models/RegexSpan.ts
|
|
754
813
|
/**
|
|
755
814
|
* @export
|
|
756
815
|
*/
|
|
757
|
-
const
|
|
816
|
+
const RegexSpanTypeEnum = { regex: "regex" };
|
|
758
817
|
/**
|
|
759
|
-
* Check if a given object implements the
|
|
818
|
+
* Check if a given object implements the RegexSpan interface.
|
|
760
819
|
*/
|
|
761
|
-
function
|
|
820
|
+
function instanceOfRegexSpan(value) {
|
|
762
821
|
if (!("start" in value) || value["start"] === void 0) return false;
|
|
763
822
|
if (!("end" in value) || value["end"] === void 0) return false;
|
|
764
|
-
if (!("
|
|
823
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
765
824
|
if (!("text" in value) || value["text"] === void 0) return false;
|
|
766
825
|
return true;
|
|
767
826
|
}
|
|
768
|
-
function
|
|
769
|
-
return
|
|
827
|
+
function RegexSpanFromJSON(json) {
|
|
828
|
+
return RegexSpanFromJSONTyped(json, false);
|
|
770
829
|
}
|
|
771
|
-
function
|
|
830
|
+
function RegexSpanFromJSONTyped(json, ignoreDiscriminator) {
|
|
772
831
|
if (json == null) return json;
|
|
773
832
|
return {
|
|
774
|
-
"
|
|
833
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
775
834
|
"start": json["start"],
|
|
776
835
|
"end": json["end"],
|
|
777
|
-
"
|
|
836
|
+
"value": json["value"],
|
|
778
837
|
"text": json["text"]
|
|
779
838
|
};
|
|
780
839
|
}
|
|
781
|
-
function
|
|
782
|
-
return
|
|
840
|
+
function RegexSpanToJSON(json) {
|
|
841
|
+
return RegexSpanToJSONTyped(json, false);
|
|
783
842
|
}
|
|
784
|
-
function
|
|
843
|
+
function RegexSpanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
785
844
|
if (value == null) return value;
|
|
786
845
|
return {
|
|
787
|
-
"
|
|
846
|
+
"type": value["type"],
|
|
788
847
|
"start": value["start"],
|
|
789
848
|
"end": value["end"],
|
|
790
|
-
"
|
|
849
|
+
"value": value["value"],
|
|
791
850
|
"text": value["text"]
|
|
792
851
|
};
|
|
793
852
|
}
|
|
@@ -799,9 +858,9 @@ function MapValueInnerFromJSON(json) {
|
|
|
799
858
|
}
|
|
800
859
|
function MapValueInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
801
860
|
if (json == null) return json;
|
|
802
|
-
switch (json["
|
|
803
|
-
case "
|
|
804
|
-
case "regex": return Object.assign({},
|
|
861
|
+
switch (json["type"]) {
|
|
862
|
+
case "model": return Object.assign({}, ModelSpanFromJSONTyped(json, true), { type: "model" });
|
|
863
|
+
case "regex": return Object.assign({}, RegexSpanFromJSONTyped(json, true), { type: "regex" });
|
|
805
864
|
default: return json;
|
|
806
865
|
}
|
|
807
866
|
}
|
|
@@ -810,47 +869,13 @@ function MapValueInnerToJSON(json) {
|
|
|
810
869
|
}
|
|
811
870
|
function MapValueInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
812
871
|
if (value == null) return value;
|
|
813
|
-
switch (value["
|
|
814
|
-
case "
|
|
815
|
-
case "regex": return Object.assign({},
|
|
872
|
+
switch (value["type"]) {
|
|
873
|
+
case "model": return Object.assign({}, ModelSpanToJSON(value), { type: "model" });
|
|
874
|
+
case "regex": return Object.assign({}, RegexSpanToJSON(value), { type: "regex" });
|
|
816
875
|
default: return value;
|
|
817
876
|
}
|
|
818
877
|
}
|
|
819
878
|
|
|
820
|
-
//#endregion
|
|
821
|
-
//#region src/models/RegexTarget.ts
|
|
822
|
-
/**
|
|
823
|
-
* @export
|
|
824
|
-
*/
|
|
825
|
-
const RegexTargetIdEnum = { regex: "regex" };
|
|
826
|
-
/**
|
|
827
|
-
* Check if a given object implements the RegexTarget interface.
|
|
828
|
-
*/
|
|
829
|
-
function instanceOfRegexTarget(value) {
|
|
830
|
-
if (!("pattern" in value) || value["pattern"] === void 0) return false;
|
|
831
|
-
return true;
|
|
832
|
-
}
|
|
833
|
-
function RegexTargetFromJSON(json) {
|
|
834
|
-
return RegexTargetFromJSONTyped(json, false);
|
|
835
|
-
}
|
|
836
|
-
function RegexTargetFromJSONTyped(json, ignoreDiscriminator) {
|
|
837
|
-
if (json == null) return json;
|
|
838
|
-
return {
|
|
839
|
-
"id": json["id"] == null ? void 0 : json["id"],
|
|
840
|
-
"pattern": json["pattern"]
|
|
841
|
-
};
|
|
842
|
-
}
|
|
843
|
-
function RegexTargetToJSON(json) {
|
|
844
|
-
return RegexTargetToJSONTyped(json, false);
|
|
845
|
-
}
|
|
846
|
-
function RegexTargetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
847
|
-
if (value == null) return value;
|
|
848
|
-
return {
|
|
849
|
-
"id": value["id"],
|
|
850
|
-
"pattern": value["pattern"]
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
|
|
854
879
|
//#endregion
|
|
855
880
|
//#region src/models/ScanRequestBody.ts
|
|
856
881
|
/**
|
|
@@ -946,31 +971,6 @@ function ScanResponseBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
946
971
|
return { "results": value["results"].map(ScanResultToJSON) };
|
|
947
972
|
}
|
|
948
973
|
|
|
949
|
-
//#endregion
|
|
950
|
-
//#region src/models/TargetsAnyOfInner.ts
|
|
951
|
-
function TargetsAnyOfInnerFromJSON(json) {
|
|
952
|
-
return TargetsAnyOfInnerFromJSONTyped(json, false);
|
|
953
|
-
}
|
|
954
|
-
function TargetsAnyOfInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
955
|
-
if (json == null) return json;
|
|
956
|
-
switch (json["id"]) {
|
|
957
|
-
case "entity": return Object.assign({}, EntityTargetFromJSONTyped(json, true), { id: "entity" });
|
|
958
|
-
case "regex": return Object.assign({}, RegexTargetFromJSONTyped(json, true), { id: "regex" });
|
|
959
|
-
default: return json;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
function TargetsAnyOfInnerToJSON(json) {
|
|
963
|
-
return TargetsAnyOfInnerToJSONTyped(json, false);
|
|
964
|
-
}
|
|
965
|
-
function TargetsAnyOfInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
966
|
-
if (value == null) return value;
|
|
967
|
-
switch (value["id"]) {
|
|
968
|
-
case "entity": return Object.assign({}, EntityTargetToJSON(value), { id: "entity" });
|
|
969
|
-
case "regex": return Object.assign({}, RegexTargetToJSON(value), { id: "regex" });
|
|
970
|
-
default: return value;
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
|
|
974
974
|
//#endregion
|
|
975
975
|
//#region src/apis/SensitiveDataProtectionApi.ts
|
|
976
976
|
/**
|
|
@@ -1064,12 +1064,12 @@ var SensitiveDataProtectionApi = class extends BaseAPI {
|
|
|
1064
1064
|
//#endregion
|
|
1065
1065
|
exports.AnonymizeRequestBodyFromJSON = AnonymizeRequestBodyFromJSON;
|
|
1066
1066
|
exports.AnonymizeRequestBodyFromJSONTyped = AnonymizeRequestBodyFromJSONTyped;
|
|
1067
|
+
exports.AnonymizeRequestBodyRulesInnerFromJSON = AnonymizeRequestBodyRulesInnerFromJSON;
|
|
1068
|
+
exports.AnonymizeRequestBodyRulesInnerFromJSONTyped = AnonymizeRequestBodyRulesInnerFromJSONTyped;
|
|
1069
|
+
exports.AnonymizeRequestBodyRulesInnerToJSON = AnonymizeRequestBodyRulesInnerToJSON;
|
|
1070
|
+
exports.AnonymizeRequestBodyRulesInnerToJSONTyped = AnonymizeRequestBodyRulesInnerToJSONTyped;
|
|
1067
1071
|
exports.AnonymizeRequestBodyToJSON = AnonymizeRequestBodyToJSON;
|
|
1068
1072
|
exports.AnonymizeRequestBodyToJSONTyped = AnonymizeRequestBodyToJSONTyped;
|
|
1069
|
-
exports.AnonymizeRequestBodyTransformationsInnerFromJSON = AnonymizeRequestBodyTransformationsInnerFromJSON;
|
|
1070
|
-
exports.AnonymizeRequestBodyTransformationsInnerFromJSONTyped = AnonymizeRequestBodyTransformationsInnerFromJSONTyped;
|
|
1071
|
-
exports.AnonymizeRequestBodyTransformationsInnerToJSON = AnonymizeRequestBodyTransformationsInnerToJSON;
|
|
1072
|
-
exports.AnonymizeRequestBodyTransformationsInnerToJSONTyped = AnonymizeRequestBodyTransformationsInnerToJSONTyped;
|
|
1073
1073
|
exports.AnonymizeResponseBodyFromJSON = AnonymizeResponseBodyFromJSON;
|
|
1074
1074
|
exports.AnonymizeResponseBodyFromJSONTyped = AnonymizeResponseBodyFromJSONTyped;
|
|
1075
1075
|
exports.AnonymizeResponseBodyToJSON = AnonymizeResponseBodyToJSON;
|
|
@@ -1080,21 +1080,19 @@ exports.BlobApiResponse = BlobApiResponse;
|
|
|
1080
1080
|
exports.COLLECTION_FORMATS = COLLECTION_FORMATS;
|
|
1081
1081
|
exports.Configuration = Configuration;
|
|
1082
1082
|
exports.DefaultConfig = DefaultConfig;
|
|
1083
|
-
exports.
|
|
1084
|
-
exports.
|
|
1085
|
-
exports.
|
|
1086
|
-
exports.
|
|
1087
|
-
exports.
|
|
1088
|
-
exports.
|
|
1089
|
-
exports.
|
|
1090
|
-
exports.
|
|
1091
|
-
exports.
|
|
1092
|
-
exports.
|
|
1093
|
-
exports.
|
|
1094
|
-
exports.
|
|
1095
|
-
exports.
|
|
1096
|
-
exports.EntityTargetToJSON = EntityTargetToJSON;
|
|
1097
|
-
exports.EntityTargetToJSONTyped = EntityTargetToJSONTyped;
|
|
1083
|
+
exports.EncryptRuleFromJSON = EncryptRuleFromJSON;
|
|
1084
|
+
exports.EncryptRuleFromJSONTyped = EncryptRuleFromJSONTyped;
|
|
1085
|
+
exports.EncryptRuleToJSON = EncryptRuleToJSON;
|
|
1086
|
+
exports.EncryptRuleToJSONTyped = EncryptRuleToJSONTyped;
|
|
1087
|
+
exports.EncryptRuleTypeEnum = EncryptRuleTypeEnum;
|
|
1088
|
+
exports.EntitiesAnyOfInnerFromJSON = EntitiesAnyOfInnerFromJSON;
|
|
1089
|
+
exports.EntitiesAnyOfInnerFromJSONTyped = EntitiesAnyOfInnerFromJSONTyped;
|
|
1090
|
+
exports.EntitiesAnyOfInnerToJSON = EntitiesAnyOfInnerToJSON;
|
|
1091
|
+
exports.EntitiesAnyOfInnerToJSONTyped = EntitiesAnyOfInnerToJSONTyped;
|
|
1092
|
+
exports.EntitiesFromJSON = EntitiesFromJSON;
|
|
1093
|
+
exports.EntitiesFromJSONTyped = EntitiesFromJSONTyped;
|
|
1094
|
+
exports.EntitiesToJSON = EntitiesToJSON;
|
|
1095
|
+
exports.EntitiesToJSONTyped = EntitiesToJSONTyped;
|
|
1098
1096
|
exports.FetchError = FetchError;
|
|
1099
1097
|
exports.HTTPValidationErrorFromJSON = HTTPValidationErrorFromJSON;
|
|
1100
1098
|
exports.HTTPValidationErrorFromJSONTyped = HTTPValidationErrorFromJSONTyped;
|
|
@@ -1105,43 +1103,53 @@ exports.MapValueInnerFromJSON = MapValueInnerFromJSON;
|
|
|
1105
1103
|
exports.MapValueInnerFromJSONTyped = MapValueInnerFromJSONTyped;
|
|
1106
1104
|
exports.MapValueInnerToJSON = MapValueInnerToJSON;
|
|
1107
1105
|
exports.MapValueInnerToJSONTyped = MapValueInnerToJSONTyped;
|
|
1108
|
-
exports.
|
|
1109
|
-
exports.
|
|
1110
|
-
exports.
|
|
1111
|
-
exports.
|
|
1112
|
-
exports.
|
|
1113
|
-
exports.
|
|
1114
|
-
exports.
|
|
1115
|
-
exports.
|
|
1116
|
-
exports.
|
|
1117
|
-
exports.
|
|
1118
|
-
exports.
|
|
1119
|
-
exports.
|
|
1120
|
-
exports.
|
|
1121
|
-
exports.
|
|
1122
|
-
exports.
|
|
1123
|
-
exports.
|
|
1124
|
-
exports.
|
|
1125
|
-
exports.
|
|
1126
|
-
exports.
|
|
1127
|
-
exports.
|
|
1128
|
-
exports.
|
|
1129
|
-
exports.
|
|
1130
|
-
exports.
|
|
1131
|
-
exports.
|
|
1132
|
-
exports.
|
|
1106
|
+
exports.MaskRuleFromJSON = MaskRuleFromJSON;
|
|
1107
|
+
exports.MaskRuleFromJSONTyped = MaskRuleFromJSONTyped;
|
|
1108
|
+
exports.MaskRuleToJSON = MaskRuleToJSON;
|
|
1109
|
+
exports.MaskRuleToJSONTyped = MaskRuleToJSONTyped;
|
|
1110
|
+
exports.MaskRuleTypeEnum = MaskRuleTypeEnum;
|
|
1111
|
+
exports.ModelEntityFromJSON = ModelEntityFromJSON;
|
|
1112
|
+
exports.ModelEntityFromJSONTyped = ModelEntityFromJSONTyped;
|
|
1113
|
+
exports.ModelEntityToJSON = ModelEntityToJSON;
|
|
1114
|
+
exports.ModelEntityToJSONTyped = ModelEntityToJSONTyped;
|
|
1115
|
+
exports.ModelEntityTypeEnum = ModelEntityTypeEnum;
|
|
1116
|
+
exports.ModelSpanFromJSON = ModelSpanFromJSON;
|
|
1117
|
+
exports.ModelSpanFromJSONTyped = ModelSpanFromJSONTyped;
|
|
1118
|
+
exports.ModelSpanToJSON = ModelSpanToJSON;
|
|
1119
|
+
exports.ModelSpanToJSONTyped = ModelSpanToJSONTyped;
|
|
1120
|
+
exports.ModelSpanTypeEnum = ModelSpanTypeEnum;
|
|
1121
|
+
exports.RedactRuleFromJSON = RedactRuleFromJSON;
|
|
1122
|
+
exports.RedactRuleFromJSONTyped = RedactRuleFromJSONTyped;
|
|
1123
|
+
exports.RedactRuleToJSON = RedactRuleToJSON;
|
|
1124
|
+
exports.RedactRuleToJSONTyped = RedactRuleToJSONTyped;
|
|
1125
|
+
exports.RedactRuleTypeEnum = RedactRuleTypeEnum;
|
|
1126
|
+
exports.RegexEntityFromJSON = RegexEntityFromJSON;
|
|
1127
|
+
exports.RegexEntityFromJSONTyped = RegexEntityFromJSONTyped;
|
|
1128
|
+
exports.RegexEntityToJSON = RegexEntityToJSON;
|
|
1129
|
+
exports.RegexEntityToJSONTyped = RegexEntityToJSONTyped;
|
|
1130
|
+
exports.RegexEntityTypeEnum = RegexEntityTypeEnum;
|
|
1131
|
+
exports.RegexSpanFromJSON = RegexSpanFromJSON;
|
|
1132
|
+
exports.RegexSpanFromJSONTyped = RegexSpanFromJSONTyped;
|
|
1133
|
+
exports.RegexSpanToJSON = RegexSpanToJSON;
|
|
1134
|
+
exports.RegexSpanToJSONTyped = RegexSpanToJSONTyped;
|
|
1135
|
+
exports.RegexSpanTypeEnum = RegexSpanTypeEnum;
|
|
1136
|
+
exports.ReplaceRuleFromJSON = ReplaceRuleFromJSON;
|
|
1137
|
+
exports.ReplaceRuleFromJSONTyped = ReplaceRuleFromJSONTyped;
|
|
1138
|
+
exports.ReplaceRuleToJSON = ReplaceRuleToJSON;
|
|
1139
|
+
exports.ReplaceRuleToJSONTyped = ReplaceRuleToJSONTyped;
|
|
1140
|
+
exports.ReplaceRuleTypeEnum = ReplaceRuleTypeEnum;
|
|
1133
1141
|
exports.RequiredError = RequiredError;
|
|
1134
1142
|
exports.ResponseError = ResponseError;
|
|
1135
|
-
exports.
|
|
1136
|
-
exports.
|
|
1137
|
-
exports.
|
|
1138
|
-
exports.
|
|
1139
|
-
exports.
|
|
1140
|
-
exports.
|
|
1141
|
-
exports.
|
|
1142
|
-
exports.
|
|
1143
|
-
exports.
|
|
1144
|
-
exports.
|
|
1143
|
+
exports.SHA256RuleFromJSON = SHA256RuleFromJSON;
|
|
1144
|
+
exports.SHA256RuleFromJSONTyped = SHA256RuleFromJSONTyped;
|
|
1145
|
+
exports.SHA256RuleToJSON = SHA256RuleToJSON;
|
|
1146
|
+
exports.SHA256RuleToJSONTyped = SHA256RuleToJSONTyped;
|
|
1147
|
+
exports.SHA256RuleTypeEnum = SHA256RuleTypeEnum;
|
|
1148
|
+
exports.SHA512RuleFromJSON = SHA512RuleFromJSON;
|
|
1149
|
+
exports.SHA512RuleFromJSONTyped = SHA512RuleFromJSONTyped;
|
|
1150
|
+
exports.SHA512RuleToJSON = SHA512RuleToJSON;
|
|
1151
|
+
exports.SHA512RuleToJSONTyped = SHA512RuleToJSONTyped;
|
|
1152
|
+
exports.SHA512RuleTypeEnum = SHA512RuleTypeEnum;
|
|
1145
1153
|
exports.ScanRequestBodyFromJSON = ScanRequestBodyFromJSON;
|
|
1146
1154
|
exports.ScanRequestBodyFromJSONTyped = ScanRequestBodyFromJSONTyped;
|
|
1147
1155
|
exports.ScanRequestBodyToJSON = ScanRequestBodyToJSON;
|
|
@@ -1155,14 +1163,6 @@ exports.ScanResultFromJSONTyped = ScanResultFromJSONTyped;
|
|
|
1155
1163
|
exports.ScanResultToJSON = ScanResultToJSON;
|
|
1156
1164
|
exports.ScanResultToJSONTyped = ScanResultToJSONTyped;
|
|
1157
1165
|
exports.SensitiveDataProtectionApi = SensitiveDataProtectionApi;
|
|
1158
|
-
exports.TargetsAnyOfInnerFromJSON = TargetsAnyOfInnerFromJSON;
|
|
1159
|
-
exports.TargetsAnyOfInnerFromJSONTyped = TargetsAnyOfInnerFromJSONTyped;
|
|
1160
|
-
exports.TargetsAnyOfInnerToJSON = TargetsAnyOfInnerToJSON;
|
|
1161
|
-
exports.TargetsAnyOfInnerToJSONTyped = TargetsAnyOfInnerToJSONTyped;
|
|
1162
|
-
exports.TargetsFromJSON = TargetsFromJSON;
|
|
1163
|
-
exports.TargetsFromJSONTyped = TargetsFromJSONTyped;
|
|
1164
|
-
exports.TargetsToJSON = TargetsToJSON;
|
|
1165
|
-
exports.TargetsToJSONTyped = TargetsToJSONTyped;
|
|
1166
1166
|
exports.TextApiResponse = TextApiResponse;
|
|
1167
1167
|
exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
|
|
1168
1168
|
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
|
|
@@ -1177,21 +1177,21 @@ exports.canConsumeForm = canConsumeForm;
|
|
|
1177
1177
|
exports.exists = exists;
|
|
1178
1178
|
exports.instanceOfAnonymizeRequestBody = instanceOfAnonymizeRequestBody;
|
|
1179
1179
|
exports.instanceOfAnonymizeResponseBody = instanceOfAnonymizeResponseBody;
|
|
1180
|
-
exports.
|
|
1181
|
-
exports.
|
|
1182
|
-
exports.instanceOfEntityTarget = instanceOfEntityTarget;
|
|
1180
|
+
exports.instanceOfEncryptRule = instanceOfEncryptRule;
|
|
1181
|
+
exports.instanceOfEntities = instanceOfEntities;
|
|
1183
1182
|
exports.instanceOfHTTPValidationError = instanceOfHTTPValidationError;
|
|
1184
|
-
exports.
|
|
1185
|
-
exports.
|
|
1186
|
-
exports.
|
|
1187
|
-
exports.
|
|
1188
|
-
exports.
|
|
1189
|
-
exports.
|
|
1190
|
-
exports.
|
|
1183
|
+
exports.instanceOfMaskRule = instanceOfMaskRule;
|
|
1184
|
+
exports.instanceOfModelEntity = instanceOfModelEntity;
|
|
1185
|
+
exports.instanceOfModelSpan = instanceOfModelSpan;
|
|
1186
|
+
exports.instanceOfRedactRule = instanceOfRedactRule;
|
|
1187
|
+
exports.instanceOfRegexEntity = instanceOfRegexEntity;
|
|
1188
|
+
exports.instanceOfRegexSpan = instanceOfRegexSpan;
|
|
1189
|
+
exports.instanceOfReplaceRule = instanceOfReplaceRule;
|
|
1190
|
+
exports.instanceOfSHA256Rule = instanceOfSHA256Rule;
|
|
1191
|
+
exports.instanceOfSHA512Rule = instanceOfSHA512Rule;
|
|
1191
1192
|
exports.instanceOfScanRequestBody = instanceOfScanRequestBody;
|
|
1192
1193
|
exports.instanceOfScanResponseBody = instanceOfScanResponseBody;
|
|
1193
1194
|
exports.instanceOfScanResult = instanceOfScanResult;
|
|
1194
|
-
exports.instanceOfTargets = instanceOfTargets;
|
|
1195
1195
|
exports.instanceOfValidationError = instanceOfValidationError;
|
|
1196
1196
|
exports.instanceOfValidationErrorLocInner = instanceOfValidationErrorLocInner;
|
|
1197
1197
|
exports.mapValues = mapValues;
|