@quba/sensitive-data-protection 0.0.3 → 0.0.4
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 +25 -3
- package/dist/index.cjs +647 -0
- package/dist/index.d.cts +633 -1
- package/dist/index.d.mts +633 -1
- package/dist/index.mjs +561 -1
- package/docs/AnonymizeRequestBody.md +36 -0
- package/docs/AnonymizeRequestBodyTransformationsInner.md +46 -0
- package/docs/AnonymizeResponseBody.md +36 -0
- package/docs/EncryptTransformation.md +38 -0
- package/docs/EntitySpanResult.md +45 -0
- package/docs/EntityTarget.md +36 -0
- package/docs/MapValueInner.md +46 -0
- package/docs/MaskTransformation.md +42 -0
- package/docs/RedactTransformation.md +36 -0
- package/docs/RegexSpanResult.md +43 -0
- package/docs/RegexTarget.md +36 -0
- package/docs/ReplaceTransformation.md +38 -0
- package/docs/SHA256Transformation.md +36 -0
- package/docs/SHA512Transformation.md +36 -0
- package/docs/SensitiveDataProtectionApi.md +69 -0
- package/docs/Targets.md +32 -0
- package/docs/TargetsAnyOfInner.md +38 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -184,6 +184,562 @@ declare class TextApiResponse {
|
|
|
184
184
|
value(): Promise<string>;
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
|
+
//#region src/models/Targets.d.ts
|
|
188
|
+
/**
|
|
189
|
+
* Sensitive Data Protection API
|
|
190
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
191
|
+
*
|
|
192
|
+
* The version of the OpenAPI document: 0.0.1
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
196
|
+
* https://openapi-generator.tech
|
|
197
|
+
* Do not edit the class manually.
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @export
|
|
202
|
+
* @interface Targets
|
|
203
|
+
*/
|
|
204
|
+
interface Targets {}
|
|
205
|
+
/**
|
|
206
|
+
* Check if a given object implements the Targets interface.
|
|
207
|
+
*/
|
|
208
|
+
declare function instanceOfTargets(value: object): value is Targets;
|
|
209
|
+
declare function TargetsFromJSON(json: any): Targets;
|
|
210
|
+
declare function TargetsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Targets;
|
|
211
|
+
declare function TargetsToJSON(json: any): Targets;
|
|
212
|
+
declare function TargetsToJSONTyped(value?: Targets | null, ignoreDiscriminator?: boolean): any;
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/models/EncryptTransformation.d.ts
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @export
|
|
218
|
+
* @interface EncryptTransformation
|
|
219
|
+
*/
|
|
220
|
+
interface EncryptTransformation {
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @type {string}
|
|
224
|
+
* @memberof EncryptTransformation
|
|
225
|
+
*/
|
|
226
|
+
id?: EncryptTransformationIdEnum;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @type {Targets}
|
|
230
|
+
* @memberof EncryptTransformation
|
|
231
|
+
*/
|
|
232
|
+
targets: Targets;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof EncryptTransformation
|
|
237
|
+
*/
|
|
238
|
+
key?: string;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* @export
|
|
242
|
+
*/
|
|
243
|
+
declare const EncryptTransformationIdEnum: {
|
|
244
|
+
readonly encrypt: "encrypt";
|
|
245
|
+
};
|
|
246
|
+
type EncryptTransformationIdEnum = typeof EncryptTransformationIdEnum[keyof typeof EncryptTransformationIdEnum];
|
|
247
|
+
/**
|
|
248
|
+
* Check if a given object implements the EncryptTransformation interface.
|
|
249
|
+
*/
|
|
250
|
+
declare function instanceOfEncryptTransformation(value: object): value is EncryptTransformation;
|
|
251
|
+
declare function EncryptTransformationFromJSON(json: any): EncryptTransformation;
|
|
252
|
+
declare function EncryptTransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptTransformation;
|
|
253
|
+
declare function EncryptTransformationToJSON(json: any): EncryptTransformation;
|
|
254
|
+
declare function EncryptTransformationToJSONTyped(value?: EncryptTransformation | null, ignoreDiscriminator?: boolean): any;
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/models/MaskTransformation.d.ts
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @export
|
|
260
|
+
* @interface MaskTransformation
|
|
261
|
+
*/
|
|
262
|
+
interface MaskTransformation {
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {string}
|
|
266
|
+
* @memberof MaskTransformation
|
|
267
|
+
*/
|
|
268
|
+
id?: MaskTransformationIdEnum;
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {Targets}
|
|
272
|
+
* @memberof MaskTransformation
|
|
273
|
+
*/
|
|
274
|
+
targets: Targets;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof MaskTransformation
|
|
279
|
+
*/
|
|
280
|
+
masking_char?: string;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @type {number}
|
|
284
|
+
* @memberof MaskTransformation
|
|
285
|
+
*/
|
|
286
|
+
chars_to_mask?: number | null;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @type {boolean}
|
|
290
|
+
* @memberof MaskTransformation
|
|
291
|
+
*/
|
|
292
|
+
from_end?: boolean;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @export
|
|
296
|
+
*/
|
|
297
|
+
declare const MaskTransformationIdEnum: {
|
|
298
|
+
readonly mask: "mask";
|
|
299
|
+
};
|
|
300
|
+
type MaskTransformationIdEnum = typeof MaskTransformationIdEnum[keyof typeof MaskTransformationIdEnum];
|
|
301
|
+
/**
|
|
302
|
+
* Check if a given object implements the MaskTransformation interface.
|
|
303
|
+
*/
|
|
304
|
+
declare function instanceOfMaskTransformation(value: object): value is MaskTransformation;
|
|
305
|
+
declare function MaskTransformationFromJSON(json: any): MaskTransformation;
|
|
306
|
+
declare function MaskTransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaskTransformation;
|
|
307
|
+
declare function MaskTransformationToJSON(json: any): MaskTransformation;
|
|
308
|
+
declare function MaskTransformationToJSONTyped(value?: MaskTransformation | null, ignoreDiscriminator?: boolean): any;
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/models/RedactTransformation.d.ts
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @export
|
|
314
|
+
* @interface RedactTransformation
|
|
315
|
+
*/
|
|
316
|
+
interface RedactTransformation {
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof RedactTransformation
|
|
321
|
+
*/
|
|
322
|
+
id?: RedactTransformationIdEnum;
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @type {Targets}
|
|
326
|
+
* @memberof RedactTransformation
|
|
327
|
+
*/
|
|
328
|
+
targets: Targets;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* @export
|
|
332
|
+
*/
|
|
333
|
+
declare const RedactTransformationIdEnum: {
|
|
334
|
+
readonly redact: "redact";
|
|
335
|
+
};
|
|
336
|
+
type RedactTransformationIdEnum = typeof RedactTransformationIdEnum[keyof typeof RedactTransformationIdEnum];
|
|
337
|
+
/**
|
|
338
|
+
* Check if a given object implements the RedactTransformation interface.
|
|
339
|
+
*/
|
|
340
|
+
declare function instanceOfRedactTransformation(value: object): value is RedactTransformation;
|
|
341
|
+
declare function RedactTransformationFromJSON(json: any): RedactTransformation;
|
|
342
|
+
declare function RedactTransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedactTransformation;
|
|
343
|
+
declare function RedactTransformationToJSON(json: any): RedactTransformation;
|
|
344
|
+
declare function RedactTransformationToJSONTyped(value?: RedactTransformation | null, ignoreDiscriminator?: boolean): any;
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region src/models/ReplaceTransformation.d.ts
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @export
|
|
350
|
+
* @interface ReplaceTransformation
|
|
351
|
+
*/
|
|
352
|
+
interface ReplaceTransformation {
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @memberof ReplaceTransformation
|
|
357
|
+
*/
|
|
358
|
+
id?: ReplaceTransformationIdEnum;
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @type {Targets}
|
|
362
|
+
* @memberof ReplaceTransformation
|
|
363
|
+
*/
|
|
364
|
+
targets: Targets;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {string}
|
|
368
|
+
* @memberof ReplaceTransformation
|
|
369
|
+
*/
|
|
370
|
+
replacement?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @export
|
|
374
|
+
*/
|
|
375
|
+
declare const ReplaceTransformationIdEnum: {
|
|
376
|
+
readonly replace: "replace";
|
|
377
|
+
};
|
|
378
|
+
type ReplaceTransformationIdEnum = typeof ReplaceTransformationIdEnum[keyof typeof ReplaceTransformationIdEnum];
|
|
379
|
+
/**
|
|
380
|
+
* Check if a given object implements the ReplaceTransformation interface.
|
|
381
|
+
*/
|
|
382
|
+
declare function instanceOfReplaceTransformation(value: object): value is ReplaceTransformation;
|
|
383
|
+
declare function ReplaceTransformationFromJSON(json: any): ReplaceTransformation;
|
|
384
|
+
declare function ReplaceTransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplaceTransformation;
|
|
385
|
+
declare function ReplaceTransformationToJSON(json: any): ReplaceTransformation;
|
|
386
|
+
declare function ReplaceTransformationToJSONTyped(value?: ReplaceTransformation | null, ignoreDiscriminator?: boolean): any;
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/models/SHA256Transformation.d.ts
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @export
|
|
392
|
+
* @interface SHA256Transformation
|
|
393
|
+
*/
|
|
394
|
+
interface SHA256Transformation {
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @type {string}
|
|
398
|
+
* @memberof SHA256Transformation
|
|
399
|
+
*/
|
|
400
|
+
id?: SHA256TransformationIdEnum;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @type {Targets}
|
|
404
|
+
* @memberof SHA256Transformation
|
|
405
|
+
*/
|
|
406
|
+
targets: Targets;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* @export
|
|
410
|
+
*/
|
|
411
|
+
declare const SHA256TransformationIdEnum: {
|
|
412
|
+
readonly sha256: "sha256";
|
|
413
|
+
};
|
|
414
|
+
type SHA256TransformationIdEnum = typeof SHA256TransformationIdEnum[keyof typeof SHA256TransformationIdEnum];
|
|
415
|
+
/**
|
|
416
|
+
* Check if a given object implements the SHA256Transformation interface.
|
|
417
|
+
*/
|
|
418
|
+
declare function instanceOfSHA256Transformation(value: object): value is SHA256Transformation;
|
|
419
|
+
declare function SHA256TransformationFromJSON(json: any): SHA256Transformation;
|
|
420
|
+
declare function SHA256TransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA256Transformation;
|
|
421
|
+
declare function SHA256TransformationToJSON(json: any): SHA256Transformation;
|
|
422
|
+
declare function SHA256TransformationToJSONTyped(value?: SHA256Transformation | null, ignoreDiscriminator?: boolean): any;
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region src/models/SHA512Transformation.d.ts
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @export
|
|
428
|
+
* @interface SHA512Transformation
|
|
429
|
+
*/
|
|
430
|
+
interface SHA512Transformation {
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @type {string}
|
|
434
|
+
* @memberof SHA512Transformation
|
|
435
|
+
*/
|
|
436
|
+
id?: SHA512TransformationIdEnum;
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @type {Targets}
|
|
440
|
+
* @memberof SHA512Transformation
|
|
441
|
+
*/
|
|
442
|
+
targets: Targets;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @export
|
|
446
|
+
*/
|
|
447
|
+
declare const SHA512TransformationIdEnum: {
|
|
448
|
+
readonly sha512: "sha512";
|
|
449
|
+
};
|
|
450
|
+
type SHA512TransformationIdEnum = typeof SHA512TransformationIdEnum[keyof typeof SHA512TransformationIdEnum];
|
|
451
|
+
/**
|
|
452
|
+
* Check if a given object implements the SHA512Transformation interface.
|
|
453
|
+
*/
|
|
454
|
+
declare function instanceOfSHA512Transformation(value: object): value is SHA512Transformation;
|
|
455
|
+
declare function SHA512TransformationFromJSON(json: any): SHA512Transformation;
|
|
456
|
+
declare function SHA512TransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA512Transformation;
|
|
457
|
+
declare function SHA512TransformationToJSON(json: any): SHA512Transformation;
|
|
458
|
+
declare function SHA512TransformationToJSONTyped(value?: SHA512Transformation | null, ignoreDiscriminator?: boolean): any;
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region src/models/AnonymizeRequestBodyTransformationsInner.d.ts
|
|
461
|
+
/**
|
|
462
|
+
* @type AnonymizeRequestBodyTransformationsInner
|
|
463
|
+
*
|
|
464
|
+
* @export
|
|
465
|
+
*/
|
|
466
|
+
type AnonymizeRequestBodyTransformationsInner = {
|
|
467
|
+
id: 'encrypt';
|
|
468
|
+
} & EncryptTransformation | {
|
|
469
|
+
id: 'mask';
|
|
470
|
+
} & MaskTransformation | {
|
|
471
|
+
id: 'redact';
|
|
472
|
+
} & RedactTransformation | {
|
|
473
|
+
id: 'replace';
|
|
474
|
+
} & ReplaceTransformation | {
|
|
475
|
+
id: 'sha256';
|
|
476
|
+
} & SHA256Transformation | {
|
|
477
|
+
id: 'sha512';
|
|
478
|
+
} & SHA512Transformation;
|
|
479
|
+
declare function AnonymizeRequestBodyTransformationsInnerFromJSON(json: any): AnonymizeRequestBodyTransformationsInner;
|
|
480
|
+
declare function AnonymizeRequestBodyTransformationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBodyTransformationsInner;
|
|
481
|
+
declare function AnonymizeRequestBodyTransformationsInnerToJSON(json: any): any;
|
|
482
|
+
declare function AnonymizeRequestBodyTransformationsInnerToJSONTyped(value?: AnonymizeRequestBodyTransformationsInner | null, ignoreDiscriminator?: boolean): any;
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region src/models/AnonymizeRequestBody.d.ts
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @export
|
|
488
|
+
* @interface AnonymizeRequestBody
|
|
489
|
+
*/
|
|
490
|
+
interface AnonymizeRequestBody {
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof AnonymizeRequestBody
|
|
495
|
+
*/
|
|
496
|
+
text: string;
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @type {Array<AnonymizeRequestBodyTransformationsInner>}
|
|
500
|
+
* @memberof AnonymizeRequestBody
|
|
501
|
+
*/
|
|
502
|
+
transformations: Array<AnonymizeRequestBodyTransformationsInner>;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Check if a given object implements the AnonymizeRequestBody interface.
|
|
506
|
+
*/
|
|
507
|
+
declare function instanceOfAnonymizeRequestBody(value: object): value is AnonymizeRequestBody;
|
|
508
|
+
declare function AnonymizeRequestBodyFromJSON(json: any): AnonymizeRequestBody;
|
|
509
|
+
declare function AnonymizeRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBody;
|
|
510
|
+
declare function AnonymizeRequestBodyToJSON(json: any): AnonymizeRequestBody;
|
|
511
|
+
declare function AnonymizeRequestBodyToJSONTyped(value?: AnonymizeRequestBody | null, ignoreDiscriminator?: boolean): any;
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/models/EntitySpanResult.d.ts
|
|
514
|
+
/**
|
|
515
|
+
* Sensitive Data Protection API
|
|
516
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
517
|
+
*
|
|
518
|
+
* The version of the OpenAPI document: 0.0.1
|
|
519
|
+
*
|
|
520
|
+
*
|
|
521
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
522
|
+
* https://openapi-generator.tech
|
|
523
|
+
* Do not edit the class manually.
|
|
524
|
+
*/
|
|
525
|
+
/**
|
|
526
|
+
* A detected entity span.
|
|
527
|
+
* @export
|
|
528
|
+
* @interface EntitySpanResult
|
|
529
|
+
*/
|
|
530
|
+
interface EntitySpanResult {
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof EntitySpanResult
|
|
535
|
+
*/
|
|
536
|
+
target?: EntitySpanResultTargetEnum;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {number}
|
|
540
|
+
* @memberof EntitySpanResult
|
|
541
|
+
*/
|
|
542
|
+
start: number;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @type {number}
|
|
546
|
+
* @memberof EntitySpanResult
|
|
547
|
+
*/
|
|
548
|
+
end: number;
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof EntitySpanResult
|
|
553
|
+
*/
|
|
554
|
+
entity_type: string;
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {string}
|
|
558
|
+
* @memberof EntitySpanResult
|
|
559
|
+
*/
|
|
560
|
+
text: string;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {number}
|
|
564
|
+
* @memberof EntitySpanResult
|
|
565
|
+
*/
|
|
566
|
+
score?: number;
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* @export
|
|
570
|
+
*/
|
|
571
|
+
declare const EntitySpanResultTargetEnum: {
|
|
572
|
+
readonly entity: "entity";
|
|
573
|
+
};
|
|
574
|
+
type EntitySpanResultTargetEnum = typeof EntitySpanResultTargetEnum[keyof typeof EntitySpanResultTargetEnum];
|
|
575
|
+
/**
|
|
576
|
+
* Check if a given object implements the EntitySpanResult interface.
|
|
577
|
+
*/
|
|
578
|
+
declare function instanceOfEntitySpanResult(value: object): value is EntitySpanResult;
|
|
579
|
+
declare function EntitySpanResultFromJSON(json: any): EntitySpanResult;
|
|
580
|
+
declare function EntitySpanResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntitySpanResult;
|
|
581
|
+
declare function EntitySpanResultToJSON(json: any): EntitySpanResult;
|
|
582
|
+
declare function EntitySpanResultToJSONTyped(value?: EntitySpanResult | null, ignoreDiscriminator?: boolean): any;
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/models/RegexSpanResult.d.ts
|
|
585
|
+
/**
|
|
586
|
+
* Sensitive Data Protection API
|
|
587
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
588
|
+
*
|
|
589
|
+
* The version of the OpenAPI document: 0.0.1
|
|
590
|
+
*
|
|
591
|
+
*
|
|
592
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
593
|
+
* https://openapi-generator.tech
|
|
594
|
+
* Do not edit the class manually.
|
|
595
|
+
*/
|
|
596
|
+
/**
|
|
597
|
+
* A detected regex span.
|
|
598
|
+
* @export
|
|
599
|
+
* @interface RegexSpanResult
|
|
600
|
+
*/
|
|
601
|
+
interface RegexSpanResult {
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof RegexSpanResult
|
|
606
|
+
*/
|
|
607
|
+
target?: RegexSpanResultTargetEnum;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {number}
|
|
611
|
+
* @memberof RegexSpanResult
|
|
612
|
+
*/
|
|
613
|
+
start: number;
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @type {number}
|
|
617
|
+
* @memberof RegexSpanResult
|
|
618
|
+
*/
|
|
619
|
+
end: number;
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @type {string}
|
|
623
|
+
* @memberof RegexSpanResult
|
|
624
|
+
*/
|
|
625
|
+
pattern: string;
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof RegexSpanResult
|
|
630
|
+
*/
|
|
631
|
+
text: string;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @export
|
|
635
|
+
*/
|
|
636
|
+
declare const RegexSpanResultTargetEnum: {
|
|
637
|
+
readonly regex: "regex";
|
|
638
|
+
};
|
|
639
|
+
type RegexSpanResultTargetEnum = typeof RegexSpanResultTargetEnum[keyof typeof RegexSpanResultTargetEnum];
|
|
640
|
+
/**
|
|
641
|
+
* Check if a given object implements the RegexSpanResult interface.
|
|
642
|
+
*/
|
|
643
|
+
declare function instanceOfRegexSpanResult(value: object): value is RegexSpanResult;
|
|
644
|
+
declare function RegexSpanResultFromJSON(json: any): RegexSpanResult;
|
|
645
|
+
declare function RegexSpanResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexSpanResult;
|
|
646
|
+
declare function RegexSpanResultToJSON(json: any): RegexSpanResult;
|
|
647
|
+
declare function RegexSpanResultToJSONTyped(value?: RegexSpanResult | null, ignoreDiscriminator?: boolean): any;
|
|
648
|
+
//#endregion
|
|
649
|
+
//#region src/models/MapValueInner.d.ts
|
|
650
|
+
/**
|
|
651
|
+
* @type MapValueInner
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
*/
|
|
655
|
+
type MapValueInner = {
|
|
656
|
+
target: 'entity';
|
|
657
|
+
} & EntitySpanResult | {
|
|
658
|
+
target: 'regex';
|
|
659
|
+
} & RegexSpanResult;
|
|
660
|
+
declare function MapValueInnerFromJSON(json: any): MapValueInner;
|
|
661
|
+
declare function MapValueInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MapValueInner;
|
|
662
|
+
declare function MapValueInnerToJSON(json: any): any;
|
|
663
|
+
declare function MapValueInnerToJSONTyped(value?: MapValueInner | null, ignoreDiscriminator?: boolean): any;
|
|
664
|
+
//#endregion
|
|
665
|
+
//#region src/models/AnonymizeResponseBody.d.ts
|
|
666
|
+
/**
|
|
667
|
+
*
|
|
668
|
+
* @export
|
|
669
|
+
* @interface AnonymizeResponseBody
|
|
670
|
+
*/
|
|
671
|
+
interface AnonymizeResponseBody {
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @type {string}
|
|
675
|
+
* @memberof AnonymizeResponseBody
|
|
676
|
+
*/
|
|
677
|
+
text: string;
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {{ [key: string]: Array<MapValueInner>; }}
|
|
681
|
+
* @memberof AnonymizeResponseBody
|
|
682
|
+
*/
|
|
683
|
+
map?: {
|
|
684
|
+
[key: string]: Array<MapValueInner>;
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Check if a given object implements the AnonymizeResponseBody interface.
|
|
689
|
+
*/
|
|
690
|
+
declare function instanceOfAnonymizeResponseBody(value: object): value is AnonymizeResponseBody;
|
|
691
|
+
declare function AnonymizeResponseBodyFromJSON(json: any): AnonymizeResponseBody;
|
|
692
|
+
declare function AnonymizeResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseBody;
|
|
693
|
+
declare function AnonymizeResponseBodyToJSON(json: any): AnonymizeResponseBody;
|
|
694
|
+
declare function AnonymizeResponseBodyToJSONTyped(value?: AnonymizeResponseBody | null, ignoreDiscriminator?: boolean): any;
|
|
695
|
+
//#endregion
|
|
696
|
+
//#region src/models/EntityTarget.d.ts
|
|
697
|
+
/**
|
|
698
|
+
* Sensitive Data Protection API
|
|
699
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
700
|
+
*
|
|
701
|
+
* The version of the OpenAPI document: 0.0.1
|
|
702
|
+
*
|
|
703
|
+
*
|
|
704
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
705
|
+
* https://openapi-generator.tech
|
|
706
|
+
* Do not edit the class manually.
|
|
707
|
+
*/
|
|
708
|
+
/**
|
|
709
|
+
*
|
|
710
|
+
* @export
|
|
711
|
+
* @interface EntityTarget
|
|
712
|
+
*/
|
|
713
|
+
interface EntityTarget {
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @type {string}
|
|
717
|
+
* @memberof EntityTarget
|
|
718
|
+
*/
|
|
719
|
+
id?: EntityTargetIdEnum;
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @type {string}
|
|
723
|
+
* @memberof EntityTarget
|
|
724
|
+
*/
|
|
725
|
+
entity_type: string;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* @export
|
|
729
|
+
*/
|
|
730
|
+
declare const EntityTargetIdEnum: {
|
|
731
|
+
readonly entity: "entity";
|
|
732
|
+
};
|
|
733
|
+
type EntityTargetIdEnum = typeof EntityTargetIdEnum[keyof typeof EntityTargetIdEnum];
|
|
734
|
+
/**
|
|
735
|
+
* Check if a given object implements the EntityTarget interface.
|
|
736
|
+
*/
|
|
737
|
+
declare function instanceOfEntityTarget(value: object): value is EntityTarget;
|
|
738
|
+
declare function EntityTargetFromJSON(json: any): EntityTarget;
|
|
739
|
+
declare function EntityTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityTarget;
|
|
740
|
+
declare function EntityTargetToJSON(json: any): EntityTarget;
|
|
741
|
+
declare function EntityTargetToJSONTyped(value?: EntityTarget | null, ignoreDiscriminator?: boolean): any;
|
|
742
|
+
//#endregion
|
|
187
743
|
//#region src/models/ValidationErrorLocInner.d.ts
|
|
188
744
|
/**
|
|
189
745
|
* Sensitive Data Protection API
|
|
@@ -269,6 +825,53 @@ declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
269
825
|
declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError;
|
|
270
826
|
declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any;
|
|
271
827
|
//#endregion
|
|
828
|
+
//#region src/models/RegexTarget.d.ts
|
|
829
|
+
/**
|
|
830
|
+
* Sensitive Data Protection API
|
|
831
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
832
|
+
*
|
|
833
|
+
* The version of the OpenAPI document: 0.0.1
|
|
834
|
+
*
|
|
835
|
+
*
|
|
836
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
837
|
+
* https://openapi-generator.tech
|
|
838
|
+
* Do not edit the class manually.
|
|
839
|
+
*/
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
* @export
|
|
843
|
+
* @interface RegexTarget
|
|
844
|
+
*/
|
|
845
|
+
interface RegexTarget {
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @type {string}
|
|
849
|
+
* @memberof RegexTarget
|
|
850
|
+
*/
|
|
851
|
+
id?: RegexTargetIdEnum;
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @type {string}
|
|
855
|
+
* @memberof RegexTarget
|
|
856
|
+
*/
|
|
857
|
+
pattern: string;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* @export
|
|
861
|
+
*/
|
|
862
|
+
declare const RegexTargetIdEnum: {
|
|
863
|
+
readonly regex: "regex";
|
|
864
|
+
};
|
|
865
|
+
type RegexTargetIdEnum = typeof RegexTargetIdEnum[keyof typeof RegexTargetIdEnum];
|
|
866
|
+
/**
|
|
867
|
+
* Check if a given object implements the RegexTarget interface.
|
|
868
|
+
*/
|
|
869
|
+
declare function instanceOfRegexTarget(value: object): value is RegexTarget;
|
|
870
|
+
declare function RegexTargetFromJSON(json: any): RegexTarget;
|
|
871
|
+
declare function RegexTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexTarget;
|
|
872
|
+
declare function RegexTargetToJSON(json: any): RegexTarget;
|
|
873
|
+
declare function RegexTargetToJSONTyped(value?: RegexTarget | null, ignoreDiscriminator?: boolean): any;
|
|
874
|
+
//#endregion
|
|
272
875
|
//#region src/models/ScanRequestBody.d.ts
|
|
273
876
|
/**
|
|
274
877
|
* Sensitive Data Protection API
|
|
@@ -396,7 +999,26 @@ declare function ScanResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
396
999
|
declare function ScanResponseBodyToJSON(json: any): ScanResponseBody;
|
|
397
1000
|
declare function ScanResponseBodyToJSONTyped(value?: ScanResponseBody | null, ignoreDiscriminator?: boolean): any;
|
|
398
1001
|
//#endregion
|
|
1002
|
+
//#region src/models/TargetsAnyOfInner.d.ts
|
|
1003
|
+
/**
|
|
1004
|
+
* @type TargetsAnyOfInner
|
|
1005
|
+
*
|
|
1006
|
+
* @export
|
|
1007
|
+
*/
|
|
1008
|
+
type TargetsAnyOfInner = {
|
|
1009
|
+
id: 'entity';
|
|
1010
|
+
} & EntityTarget | {
|
|
1011
|
+
id: 'regex';
|
|
1012
|
+
} & RegexTarget;
|
|
1013
|
+
declare function TargetsAnyOfInnerFromJSON(json: any): TargetsAnyOfInner;
|
|
1014
|
+
declare function TargetsAnyOfInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TargetsAnyOfInner;
|
|
1015
|
+
declare function TargetsAnyOfInnerToJSON(json: any): any;
|
|
1016
|
+
declare function TargetsAnyOfInnerToJSONTyped(value?: TargetsAnyOfInner | null, ignoreDiscriminator?: boolean): any;
|
|
1017
|
+
//#endregion
|
|
399
1018
|
//#region src/apis/SensitiveDataProtectionApi.d.ts
|
|
1019
|
+
interface AnonymizeTextRequest {
|
|
1020
|
+
AnonymizeRequestBody: AnonymizeRequestBody;
|
|
1021
|
+
}
|
|
400
1022
|
interface ScanTextRequest {
|
|
401
1023
|
ScanRequestBody: ScanRequestBody;
|
|
402
1024
|
}
|
|
@@ -404,6 +1026,16 @@ interface ScanTextRequest {
|
|
|
404
1026
|
*
|
|
405
1027
|
*/
|
|
406
1028
|
declare class SensitiveDataProtectionApi extends BaseAPI {
|
|
1029
|
+
/**
|
|
1030
|
+
* Anonymize the provided text.
|
|
1031
|
+
* Anonymize Text
|
|
1032
|
+
*/
|
|
1033
|
+
anonymizeTextRaw(requestParameters: AnonymizeTextRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<AnonymizeResponseBody>>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Anonymize the provided text.
|
|
1036
|
+
* Anonymize Text
|
|
1037
|
+
*/
|
|
1038
|
+
anonymizeText(AnonymizeRequestBody: AnonymizeRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise<AnonymizeResponseBody>;
|
|
407
1039
|
/**
|
|
408
1040
|
* Return basic health probe result.
|
|
409
1041
|
* Health
|
|
@@ -426,4 +1058,4 @@ declare class SensitiveDataProtectionApi extends BaseAPI {
|
|
|
426
1058
|
scanText(ScanRequestBody: ScanRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise<ScanResponseBody>;
|
|
427
1059
|
}
|
|
428
1060
|
//#endregion
|
|
429
|
-
export { ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultConfig, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, InitOverrideFunction, JSONApiResponse, Json, Middleware, ModelPropertyNaming, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, ScanRequestBody, ScanRequestBodyFromJSON, ScanRequestBodyFromJSONTyped, ScanRequestBodyToJSON, ScanRequestBodyToJSONTyped, ScanResponseBody, ScanResponseBodyFromJSON, ScanResponseBodyFromJSONTyped, ScanResponseBodyToJSON, ScanResponseBodyToJSONTyped, ScanResult, ScanResultFromJSON, ScanResultFromJSONTyped, ScanResultToJSON, ScanResultToJSONTyped, ScanTextRequest, SensitiveDataProtectionApi, TextApiResponse, ValidationError, ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorLocInner, ValidationErrorLocInnerFromJSON, ValidationErrorLocInnerFromJSONTyped, ValidationErrorLocInnerToJSON, ValidationErrorLocInnerToJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfHTTPValidationError, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfValidationError, instanceOfValidationErrorLocInner, mapValues, querystring };
|
|
1061
|
+
export { AnonymizeRequestBody, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeRequestBodyTransformationsInner, AnonymizeRequestBodyTransformationsInnerFromJSON, AnonymizeRequestBodyTransformationsInnerFromJSONTyped, AnonymizeRequestBodyTransformationsInnerToJSON, AnonymizeRequestBodyTransformationsInnerToJSONTyped, AnonymizeResponseBody, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AnonymizeTextRequest, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultConfig, EncryptTransformation, EncryptTransformationFromJSON, EncryptTransformationFromJSONTyped, EncryptTransformationIdEnum, EncryptTransformationToJSON, EncryptTransformationToJSONTyped, EntitySpanResult, EntitySpanResultFromJSON, EntitySpanResultFromJSONTyped, EntitySpanResultTargetEnum, EntitySpanResultToJSON, EntitySpanResultToJSONTyped, EntityTarget, EntityTargetFromJSON, EntityTargetFromJSONTyped, EntityTargetIdEnum, EntityTargetToJSON, EntityTargetToJSONTyped, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, InitOverrideFunction, JSONApiResponse, Json, MapValueInner, MapValueInnerFromJSON, MapValueInnerFromJSONTyped, MapValueInnerToJSON, MapValueInnerToJSONTyped, MaskTransformation, MaskTransformationFromJSON, MaskTransformationFromJSONTyped, MaskTransformationIdEnum, MaskTransformationToJSON, MaskTransformationToJSONTyped, Middleware, ModelPropertyNaming, RedactTransformation, RedactTransformationFromJSON, RedactTransformationFromJSONTyped, RedactTransformationIdEnum, RedactTransformationToJSON, RedactTransformationToJSONTyped, RegexSpanResult, RegexSpanResultFromJSON, RegexSpanResultFromJSONTyped, RegexSpanResultTargetEnum, RegexSpanResultToJSON, RegexSpanResultToJSONTyped, RegexTarget, RegexTargetFromJSON, RegexTargetFromJSONTyped, RegexTargetIdEnum, RegexTargetToJSON, RegexTargetToJSONTyped, ReplaceTransformation, ReplaceTransformationFromJSON, ReplaceTransformationFromJSONTyped, ReplaceTransformationIdEnum, ReplaceTransformationToJSON, ReplaceTransformationToJSONTyped, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, SHA256Transformation, SHA256TransformationFromJSON, SHA256TransformationFromJSONTyped, SHA256TransformationIdEnum, SHA256TransformationToJSON, SHA256TransformationToJSONTyped, SHA512Transformation, SHA512TransformationFromJSON, SHA512TransformationFromJSONTyped, SHA512TransformationIdEnum, SHA512TransformationToJSON, SHA512TransformationToJSONTyped, ScanRequestBody, ScanRequestBodyFromJSON, ScanRequestBodyFromJSONTyped, ScanRequestBodyToJSON, ScanRequestBodyToJSONTyped, ScanResponseBody, ScanResponseBodyFromJSON, ScanResponseBodyFromJSONTyped, ScanResponseBodyToJSON, ScanResponseBodyToJSONTyped, ScanResult, ScanResultFromJSON, ScanResultFromJSONTyped, ScanResultToJSON, ScanResultToJSONTyped, ScanTextRequest, SensitiveDataProtectionApi, Targets, TargetsAnyOfInner, TargetsAnyOfInnerFromJSON, TargetsAnyOfInnerFromJSONTyped, TargetsAnyOfInnerToJSON, TargetsAnyOfInnerToJSONTyped, TargetsFromJSON, TargetsFromJSONTyped, TargetsToJSON, TargetsToJSONTyped, TextApiResponse, ValidationError, ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorLocInner, ValidationErrorLocInnerFromJSON, ValidationErrorLocInnerFromJSONTyped, ValidationErrorLocInnerToJSON, ValidationErrorLocInnerToJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfAnonymizeRequestBody, instanceOfAnonymizeResponseBody, instanceOfEncryptTransformation, instanceOfEntitySpanResult, instanceOfEntityTarget, instanceOfHTTPValidationError, instanceOfMaskTransformation, instanceOfRedactTransformation, instanceOfRegexSpanResult, instanceOfRegexTarget, instanceOfReplaceTransformation, instanceOfSHA256Transformation, instanceOfSHA512Transformation, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfTargets, instanceOfValidationError, instanceOfValidationErrorLocInner, mapValues, querystring };
|