@quba/sensitive-data-protection 0.0.2 → 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.
@@ -0,0 +1,1061 @@
1
+ //#region src/runtime.d.ts
2
+ /**
3
+ * Sensitive Data Protection API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 0.0.1
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ declare const BASE_PATH: string;
14
+ interface ConfigurationParameters {
15
+ basePath?: string;
16
+ fetchApi?: FetchAPI;
17
+ middleware?: Middleware[];
18
+ queryParamsStringify?: (params: HTTPQuery) => string;
19
+ username?: string;
20
+ password?: string;
21
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
22
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
23
+ headers?: HTTPHeaders;
24
+ credentials?: RequestCredentials;
25
+ }
26
+ declare class Configuration {
27
+ private configuration;
28
+ constructor(configuration?: ConfigurationParameters);
29
+ set config(configuration: Configuration);
30
+ get basePath(): string;
31
+ get fetchApi(): FetchAPI | undefined;
32
+ get middleware(): Middleware[];
33
+ get queryParamsStringify(): (params: HTTPQuery) => string;
34
+ get username(): string | undefined;
35
+ get password(): string | undefined;
36
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
37
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
38
+ get headers(): HTTPHeaders | undefined;
39
+ get credentials(): RequestCredentials | undefined;
40
+ }
41
+ declare const DefaultConfig: Configuration;
42
+ /**
43
+ * This is the base class for all generated API classes.
44
+ */
45
+ declare class BaseAPI {
46
+ protected configuration: Configuration;
47
+ private static readonly jsonRegex;
48
+ private middleware;
49
+ constructor(configuration?: Configuration);
50
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
51
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
52
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
53
+ /**
54
+ * Check if the given MIME is a JSON MIME.
55
+ * JSON MIME examples:
56
+ * application/json
57
+ * application/json; charset=UTF8
58
+ * APPLICATION/JSON
59
+ * application/vnd.company+json
60
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
61
+ * @return True if the given MIME is JSON, false otherwise.
62
+ */
63
+ protected isJsonMime(mime: string | null | undefined): boolean;
64
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
65
+ private createFetchParams;
66
+ private fetchApi;
67
+ /**
68
+ * Create a shallow clone of `this` by constructing a new instance
69
+ * and then shallow cloning data members.
70
+ */
71
+ private clone;
72
+ }
73
+ declare class ResponseError extends Error {
74
+ response: Response;
75
+ name: "ResponseError";
76
+ constructor(response: Response, msg?: string);
77
+ }
78
+ declare class FetchError extends Error {
79
+ cause: Error;
80
+ name: "FetchError";
81
+ constructor(cause: Error, msg?: string);
82
+ }
83
+ declare class RequiredError extends Error {
84
+ field: string;
85
+ name: "RequiredError";
86
+ constructor(field: string, msg?: string);
87
+ }
88
+ declare const COLLECTION_FORMATS: {
89
+ csv: string;
90
+ ssv: string;
91
+ tsv: string;
92
+ pipes: string;
93
+ };
94
+ type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
95
+ type Json = any;
96
+ type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
97
+ type HTTPHeaders = {
98
+ [key: string]: string;
99
+ };
100
+ type HTTPQuery = {
101
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
102
+ };
103
+ type HTTPBody = Json | FormData | URLSearchParams;
104
+ type HTTPRequestInit = {
105
+ headers?: HTTPHeaders;
106
+ method: HTTPMethod;
107
+ credentials?: RequestCredentials;
108
+ body?: HTTPBody;
109
+ };
110
+ type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
111
+ type InitOverrideFunction = (requestContext: {
112
+ init: HTTPRequestInit;
113
+ context: RequestOpts;
114
+ }) => Promise<RequestInit>;
115
+ interface FetchParams {
116
+ url: string;
117
+ init: RequestInit;
118
+ }
119
+ interface RequestOpts {
120
+ path: string;
121
+ method: HTTPMethod;
122
+ headers: HTTPHeaders;
123
+ query?: HTTPQuery;
124
+ body?: HTTPBody;
125
+ }
126
+ declare function querystring(params: HTTPQuery, prefix?: string): string;
127
+ declare function exists(json: any, key: string): boolean;
128
+ declare function mapValues(data: any, fn: (item: any) => any): {
129
+ [key: string]: any;
130
+ };
131
+ declare function canConsumeForm(consumes: Consume[]): boolean;
132
+ interface Consume {
133
+ contentType: string;
134
+ }
135
+ interface RequestContext {
136
+ fetch: FetchAPI;
137
+ url: string;
138
+ init: RequestInit;
139
+ }
140
+ interface ResponseContext {
141
+ fetch: FetchAPI;
142
+ url: string;
143
+ init: RequestInit;
144
+ response: Response;
145
+ }
146
+ interface ErrorContext {
147
+ fetch: FetchAPI;
148
+ url: string;
149
+ init: RequestInit;
150
+ error: unknown;
151
+ response?: Response;
152
+ }
153
+ interface Middleware {
154
+ pre?(context: RequestContext): Promise<FetchParams | void>;
155
+ post?(context: ResponseContext): Promise<Response | void>;
156
+ onError?(context: ErrorContext): Promise<Response | void>;
157
+ }
158
+ interface ApiResponse<T> {
159
+ raw: Response;
160
+ value(): Promise<T>;
161
+ }
162
+ interface ResponseTransformer<T> {
163
+ (json: any): T;
164
+ }
165
+ declare class JSONApiResponse<T> {
166
+ raw: Response;
167
+ private transformer;
168
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
169
+ value(): Promise<T>;
170
+ }
171
+ declare class VoidApiResponse {
172
+ raw: Response;
173
+ constructor(raw: Response);
174
+ value(): Promise<void>;
175
+ }
176
+ declare class BlobApiResponse {
177
+ raw: Response;
178
+ constructor(raw: Response);
179
+ value(): Promise<Blob>;
180
+ }
181
+ declare class TextApiResponse {
182
+ raw: Response;
183
+ constructor(raw: Response);
184
+ value(): Promise<string>;
185
+ }
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
743
+ //#region src/models/ValidationErrorLocInner.d.ts
744
+ /**
745
+ * Sensitive Data Protection API
746
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
747
+ *
748
+ * The version of the OpenAPI document: 0.0.1
749
+ *
750
+ *
751
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
752
+ * https://openapi-generator.tech
753
+ * Do not edit the class manually.
754
+ */
755
+ /**
756
+ *
757
+ * @export
758
+ * @interface ValidationErrorLocInner
759
+ */
760
+ interface ValidationErrorLocInner {}
761
+ /**
762
+ * Check if a given object implements the ValidationErrorLocInner interface.
763
+ */
764
+ declare function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner;
765
+ declare function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner;
766
+ declare function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner;
767
+ declare function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner;
768
+ declare function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator?: boolean): any;
769
+ //#endregion
770
+ //#region src/models/ValidationError.d.ts
771
+ /**
772
+ *
773
+ * @export
774
+ * @interface ValidationError
775
+ */
776
+ interface ValidationError {
777
+ /**
778
+ *
779
+ * @type {Array<ValidationErrorLocInner>}
780
+ * @memberof ValidationError
781
+ */
782
+ loc: Array<ValidationErrorLocInner>;
783
+ /**
784
+ *
785
+ * @type {string}
786
+ * @memberof ValidationError
787
+ */
788
+ msg: string;
789
+ /**
790
+ *
791
+ * @type {string}
792
+ * @memberof ValidationError
793
+ */
794
+ type: string;
795
+ }
796
+ /**
797
+ * Check if a given object implements the ValidationError interface.
798
+ */
799
+ declare function instanceOfValidationError(value: object): value is ValidationError;
800
+ declare function ValidationErrorFromJSON(json: any): ValidationError;
801
+ declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
802
+ declare function ValidationErrorToJSON(json: any): ValidationError;
803
+ declare function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator?: boolean): any;
804
+ //#endregion
805
+ //#region src/models/HTTPValidationError.d.ts
806
+ /**
807
+ *
808
+ * @export
809
+ * @interface HTTPValidationError
810
+ */
811
+ interface HTTPValidationError {
812
+ /**
813
+ *
814
+ * @type {Array<ValidationError>}
815
+ * @memberof HTTPValidationError
816
+ */
817
+ detail?: Array<ValidationError>;
818
+ }
819
+ /**
820
+ * Check if a given object implements the HTTPValidationError interface.
821
+ */
822
+ declare function instanceOfHTTPValidationError(value: object): value is HTTPValidationError;
823
+ declare function HTTPValidationErrorFromJSON(json: any): HTTPValidationError;
824
+ declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError;
825
+ declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError;
826
+ declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any;
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
875
+ //#region src/models/ScanRequestBody.d.ts
876
+ /**
877
+ * Sensitive Data Protection API
878
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
879
+ *
880
+ * The version of the OpenAPI document: 0.0.1
881
+ *
882
+ *
883
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
884
+ * https://openapi-generator.tech
885
+ * Do not edit the class manually.
886
+ */
887
+ /**
888
+ *
889
+ * @export
890
+ * @interface ScanRequestBody
891
+ */
892
+ interface ScanRequestBody {
893
+ /**
894
+ *
895
+ * @type {string}
896
+ * @memberof ScanRequestBody
897
+ */
898
+ text: string;
899
+ /**
900
+ *
901
+ * @type {string}
902
+ * @memberof ScanRequestBody
903
+ */
904
+ language?: string;
905
+ /**
906
+ *
907
+ * @type {Array<string>}
908
+ * @memberof ScanRequestBody
909
+ */
910
+ entities?: Array<string>;
911
+ /**
912
+ *
913
+ * @type {number}
914
+ * @memberof ScanRequestBody
915
+ */
916
+ confidence_threshold?: number | null;
917
+ }
918
+ /**
919
+ * Check if a given object implements the ScanRequestBody interface.
920
+ */
921
+ declare function instanceOfScanRequestBody(value: object): value is ScanRequestBody;
922
+ declare function ScanRequestBodyFromJSON(json: any): ScanRequestBody;
923
+ declare function ScanRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanRequestBody;
924
+ declare function ScanRequestBodyToJSON(json: any): ScanRequestBody;
925
+ declare function ScanRequestBodyToJSONTyped(value?: ScanRequestBody | null, ignoreDiscriminator?: boolean): any;
926
+ //#endregion
927
+ //#region src/models/ScanResult.d.ts
928
+ /**
929
+ * Sensitive Data Protection API
930
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
931
+ *
932
+ * The version of the OpenAPI document: 0.0.1
933
+ *
934
+ *
935
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
936
+ * https://openapi-generator.tech
937
+ * Do not edit the class manually.
938
+ */
939
+ /**
940
+ *
941
+ * @export
942
+ * @interface ScanResult
943
+ */
944
+ interface ScanResult {
945
+ /**
946
+ *
947
+ * @type {number}
948
+ * @memberof ScanResult
949
+ */
950
+ start: number;
951
+ /**
952
+ *
953
+ * @type {number}
954
+ * @memberof ScanResult
955
+ */
956
+ end: number;
957
+ /**
958
+ *
959
+ * @type {number}
960
+ * @memberof ScanResult
961
+ */
962
+ score: number;
963
+ /**
964
+ *
965
+ * @type {string}
966
+ * @memberof ScanResult
967
+ */
968
+ entity_type: string;
969
+ }
970
+ /**
971
+ * Check if a given object implements the ScanResult interface.
972
+ */
973
+ declare function instanceOfScanResult(value: object): value is ScanResult;
974
+ declare function ScanResultFromJSON(json: any): ScanResult;
975
+ declare function ScanResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanResult;
976
+ declare function ScanResultToJSON(json: any): ScanResult;
977
+ declare function ScanResultToJSONTyped(value?: ScanResult | null, ignoreDiscriminator?: boolean): any;
978
+ //#endregion
979
+ //#region src/models/ScanResponseBody.d.ts
980
+ /**
981
+ *
982
+ * @export
983
+ * @interface ScanResponseBody
984
+ */
985
+ interface ScanResponseBody {
986
+ /**
987
+ *
988
+ * @type {Array<ScanResult>}
989
+ * @memberof ScanResponseBody
990
+ */
991
+ results: Array<ScanResult>;
992
+ }
993
+ /**
994
+ * Check if a given object implements the ScanResponseBody interface.
995
+ */
996
+ declare function instanceOfScanResponseBody(value: object): value is ScanResponseBody;
997
+ declare function ScanResponseBodyFromJSON(json: any): ScanResponseBody;
998
+ declare function ScanResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanResponseBody;
999
+ declare function ScanResponseBodyToJSON(json: any): ScanResponseBody;
1000
+ declare function ScanResponseBodyToJSONTyped(value?: ScanResponseBody | null, ignoreDiscriminator?: boolean): any;
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
1018
+ //#region src/apis/SensitiveDataProtectionApi.d.ts
1019
+ interface AnonymizeTextRequest {
1020
+ AnonymizeRequestBody: AnonymizeRequestBody;
1021
+ }
1022
+ interface ScanTextRequest {
1023
+ ScanRequestBody: ScanRequestBody;
1024
+ }
1025
+ /**
1026
+ *
1027
+ */
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>;
1039
+ /**
1040
+ * Return basic health probe result.
1041
+ * Health
1042
+ */
1043
+ healthCheckRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<string>>;
1044
+ /**
1045
+ * Return basic health probe result.
1046
+ * Health
1047
+ */
1048
+ healthCheck(initOverrides?: RequestInit | InitOverrideFunction): Promise<string>;
1049
+ /**
1050
+ * Scan the provided text for sensitive data.
1051
+ * Scan Text
1052
+ */
1053
+ scanTextRaw(requestParameters: ScanTextRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ScanResponseBody>>;
1054
+ /**
1055
+ * Scan the provided text for sensitive data.
1056
+ * Scan Text
1057
+ */
1058
+ scanText(ScanRequestBody: ScanRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise<ScanResponseBody>;
1059
+ }
1060
+ //#endregion
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 };