@quba/sensitive-data-protection 0.0.5 → 0.0.7
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/README.md +4 -4
- package/dist/index.cjs +411 -370
- package/dist/index.d.cts +330 -296
- package/dist/index.d.mts +330 -296
- package/dist/index.mjs +330 -294
- package/docs/AnonymizeRequestBody.md +2 -0
- package/docs/AnonymizeResponseBody.md +2 -2
- package/docs/{MapValueInner.md → AnonymizeResponseBodySpansInner.md} +10 -10
- package/docs/ModelResult.md +45 -0
- package/docs/{ModelSpan.md → RegexResult.md} +11 -13
- package/docs/{RegexSpan.md → TextRange.md} +5 -9
- 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,8 @@ 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
|
+
"confidence_threshold": json["confidence_threshold"] == null ? void 0 : json["confidence_threshold"]
|
|
552
553
|
};
|
|
553
554
|
}
|
|
554
555
|
function AnonymizeRequestBodyToJSON(json) {
|
|
@@ -558,10 +559,158 @@ function AnonymizeRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
558
559
|
if (value == null) return value;
|
|
559
560
|
return {
|
|
560
561
|
"text": value["text"],
|
|
561
|
-
"
|
|
562
|
+
"rules": value["rules"].map(AnonymizeRequestBodyRulesInnerToJSON),
|
|
563
|
+
"confidence_threshold": value["confidence_threshold"]
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region src/models/TextRange.ts
|
|
569
|
+
/**
|
|
570
|
+
* Check if a given object implements the TextRange interface.
|
|
571
|
+
*/
|
|
572
|
+
function instanceOfTextRange(value) {
|
|
573
|
+
if (!("start" in value) || value["start"] === void 0) return false;
|
|
574
|
+
if (!("end" in value) || value["end"] === void 0) return false;
|
|
575
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
576
|
+
return true;
|
|
577
|
+
}
|
|
578
|
+
function TextRangeFromJSON(json) {
|
|
579
|
+
return TextRangeFromJSONTyped(json, false);
|
|
580
|
+
}
|
|
581
|
+
function TextRangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
582
|
+
if (json == null) return json;
|
|
583
|
+
return {
|
|
584
|
+
"start": json["start"],
|
|
585
|
+
"end": json["end"],
|
|
586
|
+
"value": json["value"]
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
function TextRangeToJSON(json) {
|
|
590
|
+
return TextRangeToJSONTyped(json, false);
|
|
591
|
+
}
|
|
592
|
+
function TextRangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
593
|
+
if (value == null) return value;
|
|
594
|
+
return {
|
|
595
|
+
"start": value["start"],
|
|
596
|
+
"end": value["end"],
|
|
597
|
+
"value": value["value"]
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
//#endregion
|
|
602
|
+
//#region src/models/ModelResult.ts
|
|
603
|
+
/**
|
|
604
|
+
* @export
|
|
605
|
+
*/
|
|
606
|
+
const ModelResultTypeEnum = { model: "model" };
|
|
607
|
+
/**
|
|
608
|
+
* Check if a given object implements the ModelResult interface.
|
|
609
|
+
*/
|
|
610
|
+
function instanceOfModelResult(value) {
|
|
611
|
+
if (!("rule" in value) || value["rule"] === void 0) return false;
|
|
612
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
613
|
+
if (!("input" in value) || value["input"] === void 0) return false;
|
|
614
|
+
if (!("output" in value) || value["output"] === void 0) return false;
|
|
615
|
+
return true;
|
|
616
|
+
}
|
|
617
|
+
function ModelResultFromJSON(json) {
|
|
618
|
+
return ModelResultFromJSONTyped(json, false);
|
|
619
|
+
}
|
|
620
|
+
function ModelResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
621
|
+
if (json == null) return json;
|
|
622
|
+
return {
|
|
623
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
624
|
+
"rule": json["rule"],
|
|
625
|
+
"value": json["value"],
|
|
626
|
+
"input": TextRangeFromJSON(json["input"]),
|
|
627
|
+
"output": TextRangeFromJSON(json["output"]),
|
|
628
|
+
"score": json["score"] == null ? void 0 : json["score"]
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
function ModelResultToJSON(json) {
|
|
632
|
+
return ModelResultToJSONTyped(json, false);
|
|
633
|
+
}
|
|
634
|
+
function ModelResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
635
|
+
if (value == null) return value;
|
|
636
|
+
return {
|
|
637
|
+
"type": value["type"],
|
|
638
|
+
"rule": value["rule"],
|
|
639
|
+
"value": value["value"],
|
|
640
|
+
"input": TextRangeToJSON(value["input"]),
|
|
641
|
+
"output": TextRangeToJSON(value["output"]),
|
|
642
|
+
"score": value["score"]
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
//#endregion
|
|
647
|
+
//#region src/models/RegexResult.ts
|
|
648
|
+
/**
|
|
649
|
+
* @export
|
|
650
|
+
*/
|
|
651
|
+
const RegexResultTypeEnum = { regex: "regex" };
|
|
652
|
+
/**
|
|
653
|
+
* Check if a given object implements the RegexResult interface.
|
|
654
|
+
*/
|
|
655
|
+
function instanceOfRegexResult(value) {
|
|
656
|
+
if (!("rule" in value) || value["rule"] === void 0) return false;
|
|
657
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
658
|
+
if (!("input" in value) || value["input"] === void 0) return false;
|
|
659
|
+
if (!("output" in value) || value["output"] === void 0) return false;
|
|
660
|
+
return true;
|
|
661
|
+
}
|
|
662
|
+
function RegexResultFromJSON(json) {
|
|
663
|
+
return RegexResultFromJSONTyped(json, false);
|
|
664
|
+
}
|
|
665
|
+
function RegexResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
666
|
+
if (json == null) return json;
|
|
667
|
+
return {
|
|
668
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
669
|
+
"rule": json["rule"],
|
|
670
|
+
"value": json["value"],
|
|
671
|
+
"input": TextRangeFromJSON(json["input"]),
|
|
672
|
+
"output": TextRangeFromJSON(json["output"])
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
function RegexResultToJSON(json) {
|
|
676
|
+
return RegexResultToJSONTyped(json, false);
|
|
677
|
+
}
|
|
678
|
+
function RegexResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
679
|
+
if (value == null) return value;
|
|
680
|
+
return {
|
|
681
|
+
"type": value["type"],
|
|
682
|
+
"rule": value["rule"],
|
|
683
|
+
"value": value["value"],
|
|
684
|
+
"input": TextRangeToJSON(value["input"]),
|
|
685
|
+
"output": TextRangeToJSON(value["output"])
|
|
562
686
|
};
|
|
563
687
|
}
|
|
564
688
|
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region src/models/AnonymizeResponseBodySpansInner.ts
|
|
691
|
+
function AnonymizeResponseBodySpansInnerFromJSON(json) {
|
|
692
|
+
return AnonymizeResponseBodySpansInnerFromJSONTyped(json, false);
|
|
693
|
+
}
|
|
694
|
+
function AnonymizeResponseBodySpansInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
695
|
+
if (json == null) return json;
|
|
696
|
+
switch (json["type"]) {
|
|
697
|
+
case "model": return Object.assign({}, ModelResultFromJSONTyped(json, true), { type: "model" });
|
|
698
|
+
case "regex": return Object.assign({}, RegexResultFromJSONTyped(json, true), { type: "regex" });
|
|
699
|
+
default: return json;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function AnonymizeResponseBodySpansInnerToJSON(json) {
|
|
703
|
+
return AnonymizeResponseBodySpansInnerToJSONTyped(json, false);
|
|
704
|
+
}
|
|
705
|
+
function AnonymizeResponseBodySpansInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
706
|
+
if (value == null) return value;
|
|
707
|
+
switch (value["type"]) {
|
|
708
|
+
case "model": return Object.assign({}, ModelResultToJSON(value), { type: "model" });
|
|
709
|
+
case "regex": return Object.assign({}, RegexResultToJSON(value), { type: "regex" });
|
|
710
|
+
default: return value;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
565
714
|
//#endregion
|
|
566
715
|
//#region src/models/AnonymizeResponseBody.ts
|
|
567
716
|
/**
|
|
@@ -578,7 +727,7 @@ function AnonymizeResponseBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
578
727
|
if (json == null) return json;
|
|
579
728
|
return {
|
|
580
729
|
"text": json["text"],
|
|
581
|
-
"
|
|
730
|
+
"spans": json["spans"] == null ? void 0 : json["spans"].map(AnonymizeResponseBodySpansInnerFromJSON)
|
|
582
731
|
};
|
|
583
732
|
}
|
|
584
733
|
function AnonymizeResponseBodyToJSON(json) {
|
|
@@ -588,89 +737,103 @@ function AnonymizeResponseBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
588
737
|
if (value == null) return value;
|
|
589
738
|
return {
|
|
590
739
|
"text": value["text"],
|
|
591
|
-
"
|
|
740
|
+
"spans": value["spans"] == null ? void 0 : value["spans"].map(AnonymizeResponseBodySpansInnerToJSON)
|
|
592
741
|
};
|
|
593
742
|
}
|
|
594
743
|
|
|
595
744
|
//#endregion
|
|
596
|
-
//#region src/models/
|
|
745
|
+
//#region src/models/ModelEntity.ts
|
|
597
746
|
/**
|
|
598
747
|
* @export
|
|
599
748
|
*/
|
|
600
|
-
const
|
|
749
|
+
const ModelEntityTypeEnum = { model: "model" };
|
|
601
750
|
/**
|
|
602
|
-
* Check if a given object implements the
|
|
751
|
+
* Check if a given object implements the ModelEntity interface.
|
|
603
752
|
*/
|
|
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;
|
|
753
|
+
function instanceOfModelEntity(value) {
|
|
754
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
609
755
|
return true;
|
|
610
756
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
757
|
+
function ModelEntityFromJSON(json) {
|
|
758
|
+
return ModelEntityFromJSONTyped(json, false);
|
|
613
759
|
}
|
|
614
|
-
function
|
|
760
|
+
function ModelEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
615
761
|
if (json == null) return json;
|
|
616
762
|
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"]
|
|
763
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
764
|
+
"value": json["value"]
|
|
623
765
|
};
|
|
624
766
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
767
|
+
function ModelEntityToJSON(json) {
|
|
768
|
+
return ModelEntityToJSONTyped(json, false);
|
|
627
769
|
}
|
|
628
|
-
function
|
|
770
|
+
function ModelEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
629
771
|
if (value == null) return value;
|
|
630
772
|
return {
|
|
631
|
-
"
|
|
632
|
-
"
|
|
633
|
-
"end": value["end"],
|
|
634
|
-
"entity_type": value["entity_type"],
|
|
635
|
-
"text": value["text"],
|
|
636
|
-
"score": value["score"]
|
|
773
|
+
"type": value["type"],
|
|
774
|
+
"value": value["value"]
|
|
637
775
|
};
|
|
638
776
|
}
|
|
639
777
|
|
|
640
778
|
//#endregion
|
|
641
|
-
//#region src/models/
|
|
779
|
+
//#region src/models/RegexEntity.ts
|
|
642
780
|
/**
|
|
643
781
|
* @export
|
|
644
782
|
*/
|
|
645
|
-
const
|
|
783
|
+
const RegexEntityTypeEnum = { regex: "regex" };
|
|
646
784
|
/**
|
|
647
|
-
* Check if a given object implements the
|
|
785
|
+
* Check if a given object implements the RegexEntity interface.
|
|
648
786
|
*/
|
|
649
|
-
function
|
|
650
|
-
if (!("
|
|
787
|
+
function instanceOfRegexEntity(value) {
|
|
788
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
651
789
|
return true;
|
|
652
790
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
791
|
+
function RegexEntityFromJSON(json) {
|
|
792
|
+
return RegexEntityFromJSONTyped(json, false);
|
|
655
793
|
}
|
|
656
|
-
function
|
|
794
|
+
function RegexEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
657
795
|
if (json == null) return json;
|
|
658
796
|
return {
|
|
659
|
-
"
|
|
660
|
-
"
|
|
797
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
798
|
+
"value": json["value"]
|
|
661
799
|
};
|
|
662
800
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
801
|
+
function RegexEntityToJSON(json) {
|
|
802
|
+
return RegexEntityToJSONTyped(json, false);
|
|
665
803
|
}
|
|
666
|
-
function
|
|
804
|
+
function RegexEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
667
805
|
if (value == null) return value;
|
|
668
806
|
return {
|
|
669
|
-
"
|
|
670
|
-
"
|
|
807
|
+
"type": value["type"],
|
|
808
|
+
"value": value["value"]
|
|
671
809
|
};
|
|
672
810
|
}
|
|
673
811
|
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region src/models/EntitiesAnyOfInner.ts
|
|
814
|
+
function EntitiesAnyOfInnerFromJSON(json) {
|
|
815
|
+
return EntitiesAnyOfInnerFromJSONTyped(json, false);
|
|
816
|
+
}
|
|
817
|
+
function EntitiesAnyOfInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
818
|
+
if (json == null) return json;
|
|
819
|
+
switch (json["type"]) {
|
|
820
|
+
case "model": return Object.assign({}, ModelEntityFromJSONTyped(json, true), { type: "model" });
|
|
821
|
+
case "regex": return Object.assign({}, RegexEntityFromJSONTyped(json, true), { type: "regex" });
|
|
822
|
+
default: return json;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
function EntitiesAnyOfInnerToJSON(json) {
|
|
826
|
+
return EntitiesAnyOfInnerToJSONTyped(json, false);
|
|
827
|
+
}
|
|
828
|
+
function EntitiesAnyOfInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
829
|
+
if (value == null) return value;
|
|
830
|
+
switch (value["type"]) {
|
|
831
|
+
case "model": return Object.assign({}, ModelEntityToJSON(value), { type: "model" });
|
|
832
|
+
case "regex": return Object.assign({}, RegexEntityToJSON(value), { type: "regex" });
|
|
833
|
+
default: return value;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
674
837
|
//#endregion
|
|
675
838
|
//#region src/models/ValidationErrorLocInner.ts
|
|
676
839
|
/**
|
|
@@ -749,108 +912,6 @@ function HTTPValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
749
912
|
return { "detail": value["detail"] == null ? void 0 : value["detail"].map(ValidationErrorToJSON) };
|
|
750
913
|
}
|
|
751
914
|
|
|
752
|
-
//#endregion
|
|
753
|
-
//#region src/models/RegexSpanResult.ts
|
|
754
|
-
/**
|
|
755
|
-
* @export
|
|
756
|
-
*/
|
|
757
|
-
const RegexSpanResultTargetEnum = { regex: "regex" };
|
|
758
|
-
/**
|
|
759
|
-
* Check if a given object implements the RegexSpanResult interface.
|
|
760
|
-
*/
|
|
761
|
-
function instanceOfRegexSpanResult(value) {
|
|
762
|
-
if (!("start" in value) || value["start"] === void 0) return false;
|
|
763
|
-
if (!("end" in value) || value["end"] === void 0) return false;
|
|
764
|
-
if (!("pattern" in value) || value["pattern"] === void 0) return false;
|
|
765
|
-
if (!("text" in value) || value["text"] === void 0) return false;
|
|
766
|
-
return true;
|
|
767
|
-
}
|
|
768
|
-
function RegexSpanResultFromJSON(json) {
|
|
769
|
-
return RegexSpanResultFromJSONTyped(json, false);
|
|
770
|
-
}
|
|
771
|
-
function RegexSpanResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
772
|
-
if (json == null) return json;
|
|
773
|
-
return {
|
|
774
|
-
"target": json["target"] == null ? void 0 : json["target"],
|
|
775
|
-
"start": json["start"],
|
|
776
|
-
"end": json["end"],
|
|
777
|
-
"pattern": json["pattern"],
|
|
778
|
-
"text": json["text"]
|
|
779
|
-
};
|
|
780
|
-
}
|
|
781
|
-
function RegexSpanResultToJSON(json) {
|
|
782
|
-
return RegexSpanResultToJSONTyped(json, false);
|
|
783
|
-
}
|
|
784
|
-
function RegexSpanResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
785
|
-
if (value == null) return value;
|
|
786
|
-
return {
|
|
787
|
-
"target": value["target"],
|
|
788
|
-
"start": value["start"],
|
|
789
|
-
"end": value["end"],
|
|
790
|
-
"pattern": value["pattern"],
|
|
791
|
-
"text": value["text"]
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region src/models/MapValueInner.ts
|
|
797
|
-
function MapValueInnerFromJSON(json) {
|
|
798
|
-
return MapValueInnerFromJSONTyped(json, false);
|
|
799
|
-
}
|
|
800
|
-
function MapValueInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
801
|
-
if (json == null) return json;
|
|
802
|
-
switch (json["target"]) {
|
|
803
|
-
case "entity": return Object.assign({}, EntitySpanResultFromJSONTyped(json, true), { target: "entity" });
|
|
804
|
-
case "regex": return Object.assign({}, RegexSpanResultFromJSONTyped(json, true), { target: "regex" });
|
|
805
|
-
default: return json;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
function MapValueInnerToJSON(json) {
|
|
809
|
-
return MapValueInnerToJSONTyped(json, false);
|
|
810
|
-
}
|
|
811
|
-
function MapValueInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
812
|
-
if (value == null) return value;
|
|
813
|
-
switch (value["target"]) {
|
|
814
|
-
case "entity": return Object.assign({}, EntitySpanResultToJSON(value), { target: "entity" });
|
|
815
|
-
case "regex": return Object.assign({}, RegexSpanResultToJSON(value), { target: "regex" });
|
|
816
|
-
default: return value;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
|
|
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
915
|
//#endregion
|
|
855
916
|
//#region src/models/ScanRequestBody.ts
|
|
856
917
|
/**
|
|
@@ -946,31 +1007,6 @@ function ScanResponseBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
946
1007
|
return { "results": value["results"].map(ScanResultToJSON) };
|
|
947
1008
|
}
|
|
948
1009
|
|
|
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
1010
|
//#endregion
|
|
975
1011
|
//#region src/apis/SensitiveDataProtectionApi.ts
|
|
976
1012
|
/**
|
|
@@ -1064,14 +1100,18 @@ var SensitiveDataProtectionApi = class extends BaseAPI {
|
|
|
1064
1100
|
//#endregion
|
|
1065
1101
|
exports.AnonymizeRequestBodyFromJSON = AnonymizeRequestBodyFromJSON;
|
|
1066
1102
|
exports.AnonymizeRequestBodyFromJSONTyped = AnonymizeRequestBodyFromJSONTyped;
|
|
1103
|
+
exports.AnonymizeRequestBodyRulesInnerFromJSON = AnonymizeRequestBodyRulesInnerFromJSON;
|
|
1104
|
+
exports.AnonymizeRequestBodyRulesInnerFromJSONTyped = AnonymizeRequestBodyRulesInnerFromJSONTyped;
|
|
1105
|
+
exports.AnonymizeRequestBodyRulesInnerToJSON = AnonymizeRequestBodyRulesInnerToJSON;
|
|
1106
|
+
exports.AnonymizeRequestBodyRulesInnerToJSONTyped = AnonymizeRequestBodyRulesInnerToJSONTyped;
|
|
1067
1107
|
exports.AnonymizeRequestBodyToJSON = AnonymizeRequestBodyToJSON;
|
|
1068
1108
|
exports.AnonymizeRequestBodyToJSONTyped = AnonymizeRequestBodyToJSONTyped;
|
|
1069
|
-
exports.AnonymizeRequestBodyTransformationsInnerFromJSON = AnonymizeRequestBodyTransformationsInnerFromJSON;
|
|
1070
|
-
exports.AnonymizeRequestBodyTransformationsInnerFromJSONTyped = AnonymizeRequestBodyTransformationsInnerFromJSONTyped;
|
|
1071
|
-
exports.AnonymizeRequestBodyTransformationsInnerToJSON = AnonymizeRequestBodyTransformationsInnerToJSON;
|
|
1072
|
-
exports.AnonymizeRequestBodyTransformationsInnerToJSONTyped = AnonymizeRequestBodyTransformationsInnerToJSONTyped;
|
|
1073
1109
|
exports.AnonymizeResponseBodyFromJSON = AnonymizeResponseBodyFromJSON;
|
|
1074
1110
|
exports.AnonymizeResponseBodyFromJSONTyped = AnonymizeResponseBodyFromJSONTyped;
|
|
1111
|
+
exports.AnonymizeResponseBodySpansInnerFromJSON = AnonymizeResponseBodySpansInnerFromJSON;
|
|
1112
|
+
exports.AnonymizeResponseBodySpansInnerFromJSONTyped = AnonymizeResponseBodySpansInnerFromJSONTyped;
|
|
1113
|
+
exports.AnonymizeResponseBodySpansInnerToJSON = AnonymizeResponseBodySpansInnerToJSON;
|
|
1114
|
+
exports.AnonymizeResponseBodySpansInnerToJSONTyped = AnonymizeResponseBodySpansInnerToJSONTyped;
|
|
1075
1115
|
exports.AnonymizeResponseBodyToJSON = AnonymizeResponseBodyToJSON;
|
|
1076
1116
|
exports.AnonymizeResponseBodyToJSONTyped = AnonymizeResponseBodyToJSONTyped;
|
|
1077
1117
|
exports.BASE_PATH = BASE_PATH;
|
|
@@ -1080,68 +1120,72 @@ exports.BlobApiResponse = BlobApiResponse;
|
|
|
1080
1120
|
exports.COLLECTION_FORMATS = COLLECTION_FORMATS;
|
|
1081
1121
|
exports.Configuration = Configuration;
|
|
1082
1122
|
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;
|
|
1123
|
+
exports.EncryptRuleFromJSON = EncryptRuleFromJSON;
|
|
1124
|
+
exports.EncryptRuleFromJSONTyped = EncryptRuleFromJSONTyped;
|
|
1125
|
+
exports.EncryptRuleToJSON = EncryptRuleToJSON;
|
|
1126
|
+
exports.EncryptRuleToJSONTyped = EncryptRuleToJSONTyped;
|
|
1127
|
+
exports.EncryptRuleTypeEnum = EncryptRuleTypeEnum;
|
|
1128
|
+
exports.EntitiesAnyOfInnerFromJSON = EntitiesAnyOfInnerFromJSON;
|
|
1129
|
+
exports.EntitiesAnyOfInnerFromJSONTyped = EntitiesAnyOfInnerFromJSONTyped;
|
|
1130
|
+
exports.EntitiesAnyOfInnerToJSON = EntitiesAnyOfInnerToJSON;
|
|
1131
|
+
exports.EntitiesAnyOfInnerToJSONTyped = EntitiesAnyOfInnerToJSONTyped;
|
|
1132
|
+
exports.EntitiesFromJSON = EntitiesFromJSON;
|
|
1133
|
+
exports.EntitiesFromJSONTyped = EntitiesFromJSONTyped;
|
|
1134
|
+
exports.EntitiesToJSON = EntitiesToJSON;
|
|
1135
|
+
exports.EntitiesToJSONTyped = EntitiesToJSONTyped;
|
|
1098
1136
|
exports.FetchError = FetchError;
|
|
1099
1137
|
exports.HTTPValidationErrorFromJSON = HTTPValidationErrorFromJSON;
|
|
1100
1138
|
exports.HTTPValidationErrorFromJSONTyped = HTTPValidationErrorFromJSONTyped;
|
|
1101
1139
|
exports.HTTPValidationErrorToJSON = HTTPValidationErrorToJSON;
|
|
1102
1140
|
exports.HTTPValidationErrorToJSONTyped = HTTPValidationErrorToJSONTyped;
|
|
1103
1141
|
exports.JSONApiResponse = JSONApiResponse;
|
|
1104
|
-
exports.
|
|
1105
|
-
exports.
|
|
1106
|
-
exports.
|
|
1107
|
-
exports.
|
|
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.
|
|
1142
|
+
exports.MaskRuleFromJSON = MaskRuleFromJSON;
|
|
1143
|
+
exports.MaskRuleFromJSONTyped = MaskRuleFromJSONTyped;
|
|
1144
|
+
exports.MaskRuleToJSON = MaskRuleToJSON;
|
|
1145
|
+
exports.MaskRuleToJSONTyped = MaskRuleToJSONTyped;
|
|
1146
|
+
exports.MaskRuleTypeEnum = MaskRuleTypeEnum;
|
|
1147
|
+
exports.ModelEntityFromJSON = ModelEntityFromJSON;
|
|
1148
|
+
exports.ModelEntityFromJSONTyped = ModelEntityFromJSONTyped;
|
|
1149
|
+
exports.ModelEntityToJSON = ModelEntityToJSON;
|
|
1150
|
+
exports.ModelEntityToJSONTyped = ModelEntityToJSONTyped;
|
|
1151
|
+
exports.ModelEntityTypeEnum = ModelEntityTypeEnum;
|
|
1152
|
+
exports.ModelResultFromJSON = ModelResultFromJSON;
|
|
1153
|
+
exports.ModelResultFromJSONTyped = ModelResultFromJSONTyped;
|
|
1154
|
+
exports.ModelResultToJSON = ModelResultToJSON;
|
|
1155
|
+
exports.ModelResultToJSONTyped = ModelResultToJSONTyped;
|
|
1156
|
+
exports.ModelResultTypeEnum = ModelResultTypeEnum;
|
|
1157
|
+
exports.RedactRuleFromJSON = RedactRuleFromJSON;
|
|
1158
|
+
exports.RedactRuleFromJSONTyped = RedactRuleFromJSONTyped;
|
|
1159
|
+
exports.RedactRuleToJSON = RedactRuleToJSON;
|
|
1160
|
+
exports.RedactRuleToJSONTyped = RedactRuleToJSONTyped;
|
|
1161
|
+
exports.RedactRuleTypeEnum = RedactRuleTypeEnum;
|
|
1162
|
+
exports.RegexEntityFromJSON = RegexEntityFromJSON;
|
|
1163
|
+
exports.RegexEntityFromJSONTyped = RegexEntityFromJSONTyped;
|
|
1164
|
+
exports.RegexEntityToJSON = RegexEntityToJSON;
|
|
1165
|
+
exports.RegexEntityToJSONTyped = RegexEntityToJSONTyped;
|
|
1166
|
+
exports.RegexEntityTypeEnum = RegexEntityTypeEnum;
|
|
1167
|
+
exports.RegexResultFromJSON = RegexResultFromJSON;
|
|
1168
|
+
exports.RegexResultFromJSONTyped = RegexResultFromJSONTyped;
|
|
1169
|
+
exports.RegexResultToJSON = RegexResultToJSON;
|
|
1170
|
+
exports.RegexResultToJSONTyped = RegexResultToJSONTyped;
|
|
1171
|
+
exports.RegexResultTypeEnum = RegexResultTypeEnum;
|
|
1172
|
+
exports.ReplaceRuleFromJSON = ReplaceRuleFromJSON;
|
|
1173
|
+
exports.ReplaceRuleFromJSONTyped = ReplaceRuleFromJSONTyped;
|
|
1174
|
+
exports.ReplaceRuleToJSON = ReplaceRuleToJSON;
|
|
1175
|
+
exports.ReplaceRuleToJSONTyped = ReplaceRuleToJSONTyped;
|
|
1176
|
+
exports.ReplaceRuleTypeEnum = ReplaceRuleTypeEnum;
|
|
1133
1177
|
exports.RequiredError = RequiredError;
|
|
1134
1178
|
exports.ResponseError = ResponseError;
|
|
1135
|
-
exports.
|
|
1136
|
-
exports.
|
|
1137
|
-
exports.
|
|
1138
|
-
exports.
|
|
1139
|
-
exports.
|
|
1140
|
-
exports.
|
|
1141
|
-
exports.
|
|
1142
|
-
exports.
|
|
1143
|
-
exports.
|
|
1144
|
-
exports.
|
|
1179
|
+
exports.SHA256RuleFromJSON = SHA256RuleFromJSON;
|
|
1180
|
+
exports.SHA256RuleFromJSONTyped = SHA256RuleFromJSONTyped;
|
|
1181
|
+
exports.SHA256RuleToJSON = SHA256RuleToJSON;
|
|
1182
|
+
exports.SHA256RuleToJSONTyped = SHA256RuleToJSONTyped;
|
|
1183
|
+
exports.SHA256RuleTypeEnum = SHA256RuleTypeEnum;
|
|
1184
|
+
exports.SHA512RuleFromJSON = SHA512RuleFromJSON;
|
|
1185
|
+
exports.SHA512RuleFromJSONTyped = SHA512RuleFromJSONTyped;
|
|
1186
|
+
exports.SHA512RuleToJSON = SHA512RuleToJSON;
|
|
1187
|
+
exports.SHA512RuleToJSONTyped = SHA512RuleToJSONTyped;
|
|
1188
|
+
exports.SHA512RuleTypeEnum = SHA512RuleTypeEnum;
|
|
1145
1189
|
exports.ScanRequestBodyFromJSON = ScanRequestBodyFromJSON;
|
|
1146
1190
|
exports.ScanRequestBodyFromJSONTyped = ScanRequestBodyFromJSONTyped;
|
|
1147
1191
|
exports.ScanRequestBodyToJSON = ScanRequestBodyToJSON;
|
|
@@ -1155,15 +1199,11 @@ exports.ScanResultFromJSONTyped = ScanResultFromJSONTyped;
|
|
|
1155
1199
|
exports.ScanResultToJSON = ScanResultToJSON;
|
|
1156
1200
|
exports.ScanResultToJSONTyped = ScanResultToJSONTyped;
|
|
1157
1201
|
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
1202
|
exports.TextApiResponse = TextApiResponse;
|
|
1203
|
+
exports.TextRangeFromJSON = TextRangeFromJSON;
|
|
1204
|
+
exports.TextRangeFromJSONTyped = TextRangeFromJSONTyped;
|
|
1205
|
+
exports.TextRangeToJSON = TextRangeToJSON;
|
|
1206
|
+
exports.TextRangeToJSONTyped = TextRangeToJSONTyped;
|
|
1167
1207
|
exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
|
|
1168
1208
|
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
|
|
1169
1209
|
exports.ValidationErrorLocInnerFromJSON = ValidationErrorLocInnerFromJSON;
|
|
@@ -1177,21 +1217,22 @@ exports.canConsumeForm = canConsumeForm;
|
|
|
1177
1217
|
exports.exists = exists;
|
|
1178
1218
|
exports.instanceOfAnonymizeRequestBody = instanceOfAnonymizeRequestBody;
|
|
1179
1219
|
exports.instanceOfAnonymizeResponseBody = instanceOfAnonymizeResponseBody;
|
|
1180
|
-
exports.
|
|
1181
|
-
exports.
|
|
1182
|
-
exports.instanceOfEntityTarget = instanceOfEntityTarget;
|
|
1220
|
+
exports.instanceOfEncryptRule = instanceOfEncryptRule;
|
|
1221
|
+
exports.instanceOfEntities = instanceOfEntities;
|
|
1183
1222
|
exports.instanceOfHTTPValidationError = instanceOfHTTPValidationError;
|
|
1184
|
-
exports.
|
|
1185
|
-
exports.
|
|
1186
|
-
exports.
|
|
1187
|
-
exports.
|
|
1188
|
-
exports.
|
|
1189
|
-
exports.
|
|
1190
|
-
exports.
|
|
1223
|
+
exports.instanceOfMaskRule = instanceOfMaskRule;
|
|
1224
|
+
exports.instanceOfModelEntity = instanceOfModelEntity;
|
|
1225
|
+
exports.instanceOfModelResult = instanceOfModelResult;
|
|
1226
|
+
exports.instanceOfRedactRule = instanceOfRedactRule;
|
|
1227
|
+
exports.instanceOfRegexEntity = instanceOfRegexEntity;
|
|
1228
|
+
exports.instanceOfRegexResult = instanceOfRegexResult;
|
|
1229
|
+
exports.instanceOfReplaceRule = instanceOfReplaceRule;
|
|
1230
|
+
exports.instanceOfSHA256Rule = instanceOfSHA256Rule;
|
|
1231
|
+
exports.instanceOfSHA512Rule = instanceOfSHA512Rule;
|
|
1191
1232
|
exports.instanceOfScanRequestBody = instanceOfScanRequestBody;
|
|
1192
1233
|
exports.instanceOfScanResponseBody = instanceOfScanResponseBody;
|
|
1193
1234
|
exports.instanceOfScanResult = instanceOfScanResult;
|
|
1194
|
-
exports.
|
|
1235
|
+
exports.instanceOfTextRange = instanceOfTextRange;
|
|
1195
1236
|
exports.instanceOfValidationError = instanceOfValidationError;
|
|
1196
1237
|
exports.instanceOfValidationErrorLocInner = instanceOfValidationErrorLocInner;
|
|
1197
1238
|
exports.mapValues = mapValues;
|