@quba/sensitive-data-protection 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +317 -317
- package/dist/index.d.cts +254 -254
- package/dist/index.d.mts +254 -254
- package/dist/index.mjs +245 -245
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -184,7 +184,7 @@ declare class TextApiResponse {
|
|
|
184
184
|
value(): Promise<string>;
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region src/models/
|
|
187
|
+
//#region src/models/Entities.d.ts
|
|
188
188
|
/**
|
|
189
189
|
* Sensitive Data Protection API
|
|
190
190
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -199,287 +199,287 @@ declare class TextApiResponse {
|
|
|
199
199
|
/**
|
|
200
200
|
*
|
|
201
201
|
* @export
|
|
202
|
-
* @interface
|
|
202
|
+
* @interface Entities
|
|
203
203
|
*/
|
|
204
|
-
interface
|
|
204
|
+
interface Entities {}
|
|
205
205
|
/**
|
|
206
|
-
* Check if a given object implements the
|
|
206
|
+
* Check if a given object implements the Entities interface.
|
|
207
207
|
*/
|
|
208
|
-
declare function
|
|
209
|
-
declare function
|
|
210
|
-
declare function
|
|
211
|
-
declare function
|
|
212
|
-
declare function
|
|
208
|
+
declare function instanceOfEntities(value: object): value is Entities;
|
|
209
|
+
declare function EntitiesFromJSON(json: any): Entities;
|
|
210
|
+
declare function EntitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Entities;
|
|
211
|
+
declare function EntitiesToJSON(json: any): Entities;
|
|
212
|
+
declare function EntitiesToJSONTyped(value?: Entities | null, ignoreDiscriminator?: boolean): any;
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region src/models/
|
|
214
|
+
//#region src/models/EncryptRule.d.ts
|
|
215
215
|
/**
|
|
216
216
|
*
|
|
217
217
|
* @export
|
|
218
|
-
* @interface
|
|
218
|
+
* @interface EncryptRule
|
|
219
219
|
*/
|
|
220
|
-
interface
|
|
220
|
+
interface EncryptRule {
|
|
221
221
|
/**
|
|
222
222
|
*
|
|
223
223
|
* @type {string}
|
|
224
|
-
* @memberof
|
|
224
|
+
* @memberof EncryptRule
|
|
225
225
|
*/
|
|
226
|
-
|
|
226
|
+
type?: EncryptRuleTypeEnum;
|
|
227
227
|
/**
|
|
228
228
|
*
|
|
229
|
-
* @type {
|
|
230
|
-
* @memberof
|
|
229
|
+
* @type {Entities}
|
|
230
|
+
* @memberof EncryptRule
|
|
231
231
|
*/
|
|
232
|
-
|
|
232
|
+
entities: Entities;
|
|
233
233
|
/**
|
|
234
234
|
*
|
|
235
235
|
* @type {string}
|
|
236
|
-
* @memberof
|
|
236
|
+
* @memberof EncryptRule
|
|
237
237
|
*/
|
|
238
238
|
key?: string;
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
241
|
* @export
|
|
242
242
|
*/
|
|
243
|
-
declare const
|
|
243
|
+
declare const EncryptRuleTypeEnum: {
|
|
244
244
|
readonly encrypt: "encrypt";
|
|
245
245
|
};
|
|
246
|
-
type
|
|
246
|
+
type EncryptRuleTypeEnum = typeof EncryptRuleTypeEnum[keyof typeof EncryptRuleTypeEnum];
|
|
247
247
|
/**
|
|
248
|
-
* Check if a given object implements the
|
|
248
|
+
* Check if a given object implements the EncryptRule interface.
|
|
249
249
|
*/
|
|
250
|
-
declare function
|
|
251
|
-
declare function
|
|
252
|
-
declare function
|
|
253
|
-
declare function
|
|
254
|
-
declare function
|
|
250
|
+
declare function instanceOfEncryptRule(value: object): value is EncryptRule;
|
|
251
|
+
declare function EncryptRuleFromJSON(json: any): EncryptRule;
|
|
252
|
+
declare function EncryptRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptRule;
|
|
253
|
+
declare function EncryptRuleToJSON(json: any): EncryptRule;
|
|
254
|
+
declare function EncryptRuleToJSONTyped(value?: EncryptRule | null, ignoreDiscriminator?: boolean): any;
|
|
255
255
|
//#endregion
|
|
256
|
-
//#region src/models/
|
|
256
|
+
//#region src/models/MaskRule.d.ts
|
|
257
257
|
/**
|
|
258
258
|
*
|
|
259
259
|
* @export
|
|
260
|
-
* @interface
|
|
260
|
+
* @interface MaskRule
|
|
261
261
|
*/
|
|
262
|
-
interface
|
|
262
|
+
interface MaskRule {
|
|
263
263
|
/**
|
|
264
264
|
*
|
|
265
265
|
* @type {string}
|
|
266
|
-
* @memberof
|
|
266
|
+
* @memberof MaskRule
|
|
267
267
|
*/
|
|
268
|
-
|
|
268
|
+
type?: MaskRuleTypeEnum;
|
|
269
269
|
/**
|
|
270
270
|
*
|
|
271
|
-
* @type {
|
|
272
|
-
* @memberof
|
|
271
|
+
* @type {Entities}
|
|
272
|
+
* @memberof MaskRule
|
|
273
273
|
*/
|
|
274
|
-
|
|
274
|
+
entities: Entities;
|
|
275
275
|
/**
|
|
276
276
|
*
|
|
277
277
|
* @type {string}
|
|
278
|
-
* @memberof
|
|
278
|
+
* @memberof MaskRule
|
|
279
279
|
*/
|
|
280
280
|
masking_char?: string;
|
|
281
281
|
/**
|
|
282
282
|
*
|
|
283
283
|
* @type {number}
|
|
284
|
-
* @memberof
|
|
284
|
+
* @memberof MaskRule
|
|
285
285
|
*/
|
|
286
286
|
chars_to_mask?: number | null;
|
|
287
287
|
/**
|
|
288
288
|
*
|
|
289
289
|
* @type {boolean}
|
|
290
|
-
* @memberof
|
|
290
|
+
* @memberof MaskRule
|
|
291
291
|
*/
|
|
292
292
|
from_end?: boolean;
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
295
|
* @export
|
|
296
296
|
*/
|
|
297
|
-
declare const
|
|
297
|
+
declare const MaskRuleTypeEnum: {
|
|
298
298
|
readonly mask: "mask";
|
|
299
299
|
};
|
|
300
|
-
type
|
|
300
|
+
type MaskRuleTypeEnum = typeof MaskRuleTypeEnum[keyof typeof MaskRuleTypeEnum];
|
|
301
301
|
/**
|
|
302
|
-
* Check if a given object implements the
|
|
302
|
+
* Check if a given object implements the MaskRule interface.
|
|
303
303
|
*/
|
|
304
|
-
declare function
|
|
305
|
-
declare function
|
|
306
|
-
declare function
|
|
307
|
-
declare function
|
|
308
|
-
declare function
|
|
304
|
+
declare function instanceOfMaskRule(value: object): value is MaskRule;
|
|
305
|
+
declare function MaskRuleFromJSON(json: any): MaskRule;
|
|
306
|
+
declare function MaskRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaskRule;
|
|
307
|
+
declare function MaskRuleToJSON(json: any): MaskRule;
|
|
308
|
+
declare function MaskRuleToJSONTyped(value?: MaskRule | null, ignoreDiscriminator?: boolean): any;
|
|
309
309
|
//#endregion
|
|
310
|
-
//#region src/models/
|
|
310
|
+
//#region src/models/RedactRule.d.ts
|
|
311
311
|
/**
|
|
312
312
|
*
|
|
313
313
|
* @export
|
|
314
|
-
* @interface
|
|
314
|
+
* @interface RedactRule
|
|
315
315
|
*/
|
|
316
|
-
interface
|
|
316
|
+
interface RedactRule {
|
|
317
317
|
/**
|
|
318
318
|
*
|
|
319
319
|
* @type {string}
|
|
320
|
-
* @memberof
|
|
320
|
+
* @memberof RedactRule
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
type?: RedactRuleTypeEnum;
|
|
323
323
|
/**
|
|
324
324
|
*
|
|
325
|
-
* @type {
|
|
326
|
-
* @memberof
|
|
325
|
+
* @type {Entities}
|
|
326
|
+
* @memberof RedactRule
|
|
327
327
|
*/
|
|
328
|
-
|
|
328
|
+
entities: Entities;
|
|
329
329
|
}
|
|
330
330
|
/**
|
|
331
331
|
* @export
|
|
332
332
|
*/
|
|
333
|
-
declare const
|
|
333
|
+
declare const RedactRuleTypeEnum: {
|
|
334
334
|
readonly redact: "redact";
|
|
335
335
|
};
|
|
336
|
-
type
|
|
336
|
+
type RedactRuleTypeEnum = typeof RedactRuleTypeEnum[keyof typeof RedactRuleTypeEnum];
|
|
337
337
|
/**
|
|
338
|
-
* Check if a given object implements the
|
|
338
|
+
* Check if a given object implements the RedactRule interface.
|
|
339
339
|
*/
|
|
340
|
-
declare function
|
|
341
|
-
declare function
|
|
342
|
-
declare function
|
|
343
|
-
declare function
|
|
344
|
-
declare function
|
|
340
|
+
declare function instanceOfRedactRule(value: object): value is RedactRule;
|
|
341
|
+
declare function RedactRuleFromJSON(json: any): RedactRule;
|
|
342
|
+
declare function RedactRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedactRule;
|
|
343
|
+
declare function RedactRuleToJSON(json: any): RedactRule;
|
|
344
|
+
declare function RedactRuleToJSONTyped(value?: RedactRule | null, ignoreDiscriminator?: boolean): any;
|
|
345
345
|
//#endregion
|
|
346
|
-
//#region src/models/
|
|
346
|
+
//#region src/models/ReplaceRule.d.ts
|
|
347
347
|
/**
|
|
348
348
|
*
|
|
349
349
|
* @export
|
|
350
|
-
* @interface
|
|
350
|
+
* @interface ReplaceRule
|
|
351
351
|
*/
|
|
352
|
-
interface
|
|
352
|
+
interface ReplaceRule {
|
|
353
353
|
/**
|
|
354
354
|
*
|
|
355
355
|
* @type {string}
|
|
356
|
-
* @memberof
|
|
356
|
+
* @memberof ReplaceRule
|
|
357
357
|
*/
|
|
358
|
-
|
|
358
|
+
type?: ReplaceRuleTypeEnum;
|
|
359
359
|
/**
|
|
360
360
|
*
|
|
361
|
-
* @type {
|
|
362
|
-
* @memberof
|
|
361
|
+
* @type {Entities}
|
|
362
|
+
* @memberof ReplaceRule
|
|
363
363
|
*/
|
|
364
|
-
|
|
364
|
+
entities: Entities;
|
|
365
365
|
/**
|
|
366
366
|
*
|
|
367
367
|
* @type {string}
|
|
368
|
-
* @memberof
|
|
368
|
+
* @memberof ReplaceRule
|
|
369
369
|
*/
|
|
370
370
|
replacement?: string;
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* @export
|
|
374
374
|
*/
|
|
375
|
-
declare const
|
|
375
|
+
declare const ReplaceRuleTypeEnum: {
|
|
376
376
|
readonly replace: "replace";
|
|
377
377
|
};
|
|
378
|
-
type
|
|
378
|
+
type ReplaceRuleTypeEnum = typeof ReplaceRuleTypeEnum[keyof typeof ReplaceRuleTypeEnum];
|
|
379
379
|
/**
|
|
380
|
-
* Check if a given object implements the
|
|
380
|
+
* Check if a given object implements the ReplaceRule interface.
|
|
381
381
|
*/
|
|
382
|
-
declare function
|
|
383
|
-
declare function
|
|
384
|
-
declare function
|
|
385
|
-
declare function
|
|
386
|
-
declare function
|
|
382
|
+
declare function instanceOfReplaceRule(value: object): value is ReplaceRule;
|
|
383
|
+
declare function ReplaceRuleFromJSON(json: any): ReplaceRule;
|
|
384
|
+
declare function ReplaceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplaceRule;
|
|
385
|
+
declare function ReplaceRuleToJSON(json: any): ReplaceRule;
|
|
386
|
+
declare function ReplaceRuleToJSONTyped(value?: ReplaceRule | null, ignoreDiscriminator?: boolean): any;
|
|
387
387
|
//#endregion
|
|
388
|
-
//#region src/models/
|
|
388
|
+
//#region src/models/SHA256Rule.d.ts
|
|
389
389
|
/**
|
|
390
390
|
*
|
|
391
391
|
* @export
|
|
392
|
-
* @interface
|
|
392
|
+
* @interface SHA256Rule
|
|
393
393
|
*/
|
|
394
|
-
interface
|
|
394
|
+
interface SHA256Rule {
|
|
395
395
|
/**
|
|
396
396
|
*
|
|
397
397
|
* @type {string}
|
|
398
|
-
* @memberof
|
|
398
|
+
* @memberof SHA256Rule
|
|
399
399
|
*/
|
|
400
|
-
|
|
400
|
+
type?: SHA256RuleTypeEnum;
|
|
401
401
|
/**
|
|
402
402
|
*
|
|
403
|
-
* @type {
|
|
404
|
-
* @memberof
|
|
403
|
+
* @type {Entities}
|
|
404
|
+
* @memberof SHA256Rule
|
|
405
405
|
*/
|
|
406
|
-
|
|
406
|
+
entities: Entities;
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* @export
|
|
410
410
|
*/
|
|
411
|
-
declare const
|
|
411
|
+
declare const SHA256RuleTypeEnum: {
|
|
412
412
|
readonly sha256: "sha256";
|
|
413
413
|
};
|
|
414
|
-
type
|
|
414
|
+
type SHA256RuleTypeEnum = typeof SHA256RuleTypeEnum[keyof typeof SHA256RuleTypeEnum];
|
|
415
415
|
/**
|
|
416
|
-
* Check if a given object implements the
|
|
416
|
+
* Check if a given object implements the SHA256Rule interface.
|
|
417
417
|
*/
|
|
418
|
-
declare function
|
|
419
|
-
declare function
|
|
420
|
-
declare function
|
|
421
|
-
declare function
|
|
422
|
-
declare function
|
|
418
|
+
declare function instanceOfSHA256Rule(value: object): value is SHA256Rule;
|
|
419
|
+
declare function SHA256RuleFromJSON(json: any): SHA256Rule;
|
|
420
|
+
declare function SHA256RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA256Rule;
|
|
421
|
+
declare function SHA256RuleToJSON(json: any): SHA256Rule;
|
|
422
|
+
declare function SHA256RuleToJSONTyped(value?: SHA256Rule | null, ignoreDiscriminator?: boolean): any;
|
|
423
423
|
//#endregion
|
|
424
|
-
//#region src/models/
|
|
424
|
+
//#region src/models/SHA512Rule.d.ts
|
|
425
425
|
/**
|
|
426
426
|
*
|
|
427
427
|
* @export
|
|
428
|
-
* @interface
|
|
428
|
+
* @interface SHA512Rule
|
|
429
429
|
*/
|
|
430
|
-
interface
|
|
430
|
+
interface SHA512Rule {
|
|
431
431
|
/**
|
|
432
432
|
*
|
|
433
433
|
* @type {string}
|
|
434
|
-
* @memberof
|
|
434
|
+
* @memberof SHA512Rule
|
|
435
435
|
*/
|
|
436
|
-
|
|
436
|
+
type?: SHA512RuleTypeEnum;
|
|
437
437
|
/**
|
|
438
438
|
*
|
|
439
|
-
* @type {
|
|
440
|
-
* @memberof
|
|
439
|
+
* @type {Entities}
|
|
440
|
+
* @memberof SHA512Rule
|
|
441
441
|
*/
|
|
442
|
-
|
|
442
|
+
entities: Entities;
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
445
|
* @export
|
|
446
446
|
*/
|
|
447
|
-
declare const
|
|
447
|
+
declare const SHA512RuleTypeEnum: {
|
|
448
448
|
readonly sha512: "sha512";
|
|
449
449
|
};
|
|
450
|
-
type
|
|
450
|
+
type SHA512RuleTypeEnum = typeof SHA512RuleTypeEnum[keyof typeof SHA512RuleTypeEnum];
|
|
451
451
|
/**
|
|
452
|
-
* Check if a given object implements the
|
|
452
|
+
* Check if a given object implements the SHA512Rule interface.
|
|
453
453
|
*/
|
|
454
|
-
declare function
|
|
455
|
-
declare function
|
|
456
|
-
declare function
|
|
457
|
-
declare function
|
|
458
|
-
declare function
|
|
454
|
+
declare function instanceOfSHA512Rule(value: object): value is SHA512Rule;
|
|
455
|
+
declare function SHA512RuleFromJSON(json: any): SHA512Rule;
|
|
456
|
+
declare function SHA512RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA512Rule;
|
|
457
|
+
declare function SHA512RuleToJSON(json: any): SHA512Rule;
|
|
458
|
+
declare function SHA512RuleToJSONTyped(value?: SHA512Rule | null, ignoreDiscriminator?: boolean): any;
|
|
459
459
|
//#endregion
|
|
460
|
-
//#region src/models/
|
|
460
|
+
//#region src/models/AnonymizeRequestBodyRulesInner.d.ts
|
|
461
461
|
/**
|
|
462
|
-
* @type
|
|
462
|
+
* @type AnonymizeRequestBodyRulesInner
|
|
463
463
|
*
|
|
464
464
|
* @export
|
|
465
465
|
*/
|
|
466
|
-
type
|
|
467
|
-
|
|
468
|
-
} &
|
|
469
|
-
|
|
470
|
-
} &
|
|
471
|
-
|
|
472
|
-
} &
|
|
473
|
-
|
|
474
|
-
} &
|
|
475
|
-
|
|
476
|
-
} &
|
|
477
|
-
|
|
478
|
-
} &
|
|
479
|
-
declare function
|
|
480
|
-
declare function
|
|
481
|
-
declare function
|
|
482
|
-
declare function
|
|
466
|
+
type AnonymizeRequestBodyRulesInner = {
|
|
467
|
+
type: 'encrypt';
|
|
468
|
+
} & EncryptRule | {
|
|
469
|
+
type: 'mask';
|
|
470
|
+
} & MaskRule | {
|
|
471
|
+
type: 'redact';
|
|
472
|
+
} & RedactRule | {
|
|
473
|
+
type: 'replace';
|
|
474
|
+
} & ReplaceRule | {
|
|
475
|
+
type: 'sha256';
|
|
476
|
+
} & SHA256Rule | {
|
|
477
|
+
type: 'sha512';
|
|
478
|
+
} & SHA512Rule;
|
|
479
|
+
declare function AnonymizeRequestBodyRulesInnerFromJSON(json: any): AnonymizeRequestBodyRulesInner;
|
|
480
|
+
declare function AnonymizeRequestBodyRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBodyRulesInner;
|
|
481
|
+
declare function AnonymizeRequestBodyRulesInnerToJSON(json: any): any;
|
|
482
|
+
declare function AnonymizeRequestBodyRulesInnerToJSONTyped(value?: AnonymizeRequestBodyRulesInner | null, ignoreDiscriminator?: boolean): any;
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/models/AnonymizeRequestBody.d.ts
|
|
485
485
|
/**
|
|
@@ -496,10 +496,10 @@ interface AnonymizeRequestBody {
|
|
|
496
496
|
text: string;
|
|
497
497
|
/**
|
|
498
498
|
*
|
|
499
|
-
* @type {Array<
|
|
499
|
+
* @type {Array<AnonymizeRequestBodyRulesInner>}
|
|
500
500
|
* @memberof AnonymizeRequestBody
|
|
501
501
|
*/
|
|
502
|
-
|
|
502
|
+
rules: Array<AnonymizeRequestBodyRulesInner>;
|
|
503
503
|
}
|
|
504
504
|
/**
|
|
505
505
|
* Check if a given object implements the AnonymizeRequestBody interface.
|
|
@@ -510,7 +510,7 @@ declare function AnonymizeRequestBodyFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
510
510
|
declare function AnonymizeRequestBodyToJSON(json: any): AnonymizeRequestBody;
|
|
511
511
|
declare function AnonymizeRequestBodyToJSONTyped(value?: AnonymizeRequestBody | null, ignoreDiscriminator?: boolean): any;
|
|
512
512
|
//#endregion
|
|
513
|
-
//#region src/models/
|
|
513
|
+
//#region src/models/ModelSpan.d.ts
|
|
514
514
|
/**
|
|
515
515
|
* Sensitive Data Protection API
|
|
516
516
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -523,65 +523,65 @@ declare function AnonymizeRequestBodyToJSONTyped(value?: AnonymizeRequestBody |
|
|
|
523
523
|
* Do not edit the class manually.
|
|
524
524
|
*/
|
|
525
525
|
/**
|
|
526
|
-
* A detected
|
|
526
|
+
* A detected model span.
|
|
527
527
|
* @export
|
|
528
|
-
* @interface
|
|
528
|
+
* @interface ModelSpan
|
|
529
529
|
*/
|
|
530
|
-
interface
|
|
530
|
+
interface ModelSpan {
|
|
531
531
|
/**
|
|
532
532
|
*
|
|
533
533
|
* @type {string}
|
|
534
|
-
* @memberof
|
|
534
|
+
* @memberof ModelSpan
|
|
535
535
|
*/
|
|
536
|
-
|
|
536
|
+
type?: ModelSpanTypeEnum;
|
|
537
537
|
/**
|
|
538
538
|
*
|
|
539
539
|
* @type {number}
|
|
540
|
-
* @memberof
|
|
540
|
+
* @memberof ModelSpan
|
|
541
541
|
*/
|
|
542
542
|
start: number;
|
|
543
543
|
/**
|
|
544
544
|
*
|
|
545
545
|
* @type {number}
|
|
546
|
-
* @memberof
|
|
546
|
+
* @memberof ModelSpan
|
|
547
547
|
*/
|
|
548
548
|
end: number;
|
|
549
549
|
/**
|
|
550
550
|
*
|
|
551
551
|
* @type {string}
|
|
552
|
-
* @memberof
|
|
552
|
+
* @memberof ModelSpan
|
|
553
553
|
*/
|
|
554
|
-
|
|
554
|
+
value: string;
|
|
555
555
|
/**
|
|
556
556
|
*
|
|
557
557
|
* @type {string}
|
|
558
|
-
* @memberof
|
|
558
|
+
* @memberof ModelSpan
|
|
559
559
|
*/
|
|
560
560
|
text: string;
|
|
561
561
|
/**
|
|
562
562
|
*
|
|
563
563
|
* @type {number}
|
|
564
|
-
* @memberof
|
|
564
|
+
* @memberof ModelSpan
|
|
565
565
|
*/
|
|
566
566
|
score?: number;
|
|
567
567
|
}
|
|
568
568
|
/**
|
|
569
569
|
* @export
|
|
570
570
|
*/
|
|
571
|
-
declare const
|
|
572
|
-
readonly
|
|
571
|
+
declare const ModelSpanTypeEnum: {
|
|
572
|
+
readonly model: "model";
|
|
573
573
|
};
|
|
574
|
-
type
|
|
574
|
+
type ModelSpanTypeEnum = typeof ModelSpanTypeEnum[keyof typeof ModelSpanTypeEnum];
|
|
575
575
|
/**
|
|
576
|
-
* Check if a given object implements the
|
|
576
|
+
* Check if a given object implements the ModelSpan interface.
|
|
577
577
|
*/
|
|
578
|
-
declare function
|
|
579
|
-
declare function
|
|
580
|
-
declare function
|
|
581
|
-
declare function
|
|
582
|
-
declare function
|
|
578
|
+
declare function instanceOfModelSpan(value: object): value is ModelSpan;
|
|
579
|
+
declare function ModelSpanFromJSON(json: any): ModelSpan;
|
|
580
|
+
declare function ModelSpanFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelSpan;
|
|
581
|
+
declare function ModelSpanToJSON(json: any): ModelSpan;
|
|
582
|
+
declare function ModelSpanToJSONTyped(value?: ModelSpan | null, ignoreDiscriminator?: boolean): any;
|
|
583
583
|
//#endregion
|
|
584
|
-
//#region src/models/
|
|
584
|
+
//#region src/models/RegexSpan.d.ts
|
|
585
585
|
/**
|
|
586
586
|
* Sensitive Data Protection API
|
|
587
587
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -596,55 +596,55 @@ declare function EntitySpanResultToJSONTyped(value?: EntitySpanResult | null, ig
|
|
|
596
596
|
/**
|
|
597
597
|
* A detected regex span.
|
|
598
598
|
* @export
|
|
599
|
-
* @interface
|
|
599
|
+
* @interface RegexSpan
|
|
600
600
|
*/
|
|
601
|
-
interface
|
|
601
|
+
interface RegexSpan {
|
|
602
602
|
/**
|
|
603
603
|
*
|
|
604
604
|
* @type {string}
|
|
605
|
-
* @memberof
|
|
605
|
+
* @memberof RegexSpan
|
|
606
606
|
*/
|
|
607
|
-
|
|
607
|
+
type?: RegexSpanTypeEnum;
|
|
608
608
|
/**
|
|
609
609
|
*
|
|
610
610
|
* @type {number}
|
|
611
|
-
* @memberof
|
|
611
|
+
* @memberof RegexSpan
|
|
612
612
|
*/
|
|
613
613
|
start: number;
|
|
614
614
|
/**
|
|
615
615
|
*
|
|
616
616
|
* @type {number}
|
|
617
|
-
* @memberof
|
|
617
|
+
* @memberof RegexSpan
|
|
618
618
|
*/
|
|
619
619
|
end: number;
|
|
620
620
|
/**
|
|
621
621
|
*
|
|
622
622
|
* @type {string}
|
|
623
|
-
* @memberof
|
|
623
|
+
* @memberof RegexSpan
|
|
624
624
|
*/
|
|
625
|
-
|
|
625
|
+
value: string;
|
|
626
626
|
/**
|
|
627
627
|
*
|
|
628
628
|
* @type {string}
|
|
629
|
-
* @memberof
|
|
629
|
+
* @memberof RegexSpan
|
|
630
630
|
*/
|
|
631
631
|
text: string;
|
|
632
632
|
}
|
|
633
633
|
/**
|
|
634
634
|
* @export
|
|
635
635
|
*/
|
|
636
|
-
declare const
|
|
636
|
+
declare const RegexSpanTypeEnum: {
|
|
637
637
|
readonly regex: "regex";
|
|
638
638
|
};
|
|
639
|
-
type
|
|
639
|
+
type RegexSpanTypeEnum = typeof RegexSpanTypeEnum[keyof typeof RegexSpanTypeEnum];
|
|
640
640
|
/**
|
|
641
|
-
* Check if a given object implements the
|
|
641
|
+
* Check if a given object implements the RegexSpan interface.
|
|
642
642
|
*/
|
|
643
|
-
declare function
|
|
644
|
-
declare function
|
|
645
|
-
declare function
|
|
646
|
-
declare function
|
|
647
|
-
declare function
|
|
643
|
+
declare function instanceOfRegexSpan(value: object): value is RegexSpan;
|
|
644
|
+
declare function RegexSpanFromJSON(json: any): RegexSpan;
|
|
645
|
+
declare function RegexSpanFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexSpan;
|
|
646
|
+
declare function RegexSpanToJSON(json: any): RegexSpan;
|
|
647
|
+
declare function RegexSpanToJSONTyped(value?: RegexSpan | null, ignoreDiscriminator?: boolean): any;
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region src/models/MapValueInner.d.ts
|
|
650
650
|
/**
|
|
@@ -653,10 +653,10 @@ declare function RegexSpanResultToJSONTyped(value?: RegexSpanResult | null, igno
|
|
|
653
653
|
* @export
|
|
654
654
|
*/
|
|
655
655
|
type MapValueInner = {
|
|
656
|
-
|
|
657
|
-
} &
|
|
658
|
-
|
|
659
|
-
} &
|
|
656
|
+
type: 'model';
|
|
657
|
+
} & ModelSpan | {
|
|
658
|
+
type: 'regex';
|
|
659
|
+
} & RegexSpan;
|
|
660
660
|
declare function MapValueInnerFromJSON(json: any): MapValueInner;
|
|
661
661
|
declare function MapValueInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MapValueInner;
|
|
662
662
|
declare function MapValueInnerToJSON(json: any): any;
|
|
@@ -693,7 +693,7 @@ declare function AnonymizeResponseBodyFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
693
693
|
declare function AnonymizeResponseBodyToJSON(json: any): AnonymizeResponseBody;
|
|
694
694
|
declare function AnonymizeResponseBodyToJSONTyped(value?: AnonymizeResponseBody | null, ignoreDiscriminator?: boolean): any;
|
|
695
695
|
//#endregion
|
|
696
|
-
//#region src/models/
|
|
696
|
+
//#region src/models/ModelEntity.d.ts
|
|
697
697
|
/**
|
|
698
698
|
* Sensitive Data Protection API
|
|
699
699
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -708,37 +708,100 @@ declare function AnonymizeResponseBodyToJSONTyped(value?: AnonymizeResponseBody
|
|
|
708
708
|
/**
|
|
709
709
|
*
|
|
710
710
|
* @export
|
|
711
|
-
* @interface
|
|
711
|
+
* @interface ModelEntity
|
|
712
712
|
*/
|
|
713
|
-
interface
|
|
713
|
+
interface ModelEntity {
|
|
714
714
|
/**
|
|
715
715
|
*
|
|
716
716
|
* @type {string}
|
|
717
|
-
* @memberof
|
|
717
|
+
* @memberof ModelEntity
|
|
718
718
|
*/
|
|
719
|
-
|
|
719
|
+
type?: ModelEntityTypeEnum;
|
|
720
720
|
/**
|
|
721
721
|
*
|
|
722
722
|
* @type {string}
|
|
723
|
-
* @memberof
|
|
723
|
+
* @memberof ModelEntity
|
|
724
724
|
*/
|
|
725
|
-
|
|
725
|
+
value: string;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* @export
|
|
729
|
+
*/
|
|
730
|
+
declare const ModelEntityTypeEnum: {
|
|
731
|
+
readonly model: "model";
|
|
732
|
+
};
|
|
733
|
+
type ModelEntityTypeEnum = typeof ModelEntityTypeEnum[keyof typeof ModelEntityTypeEnum];
|
|
734
|
+
/**
|
|
735
|
+
* Check if a given object implements the ModelEntity interface.
|
|
736
|
+
*/
|
|
737
|
+
declare function instanceOfModelEntity(value: object): value is ModelEntity;
|
|
738
|
+
declare function ModelEntityFromJSON(json: any): ModelEntity;
|
|
739
|
+
declare function ModelEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelEntity;
|
|
740
|
+
declare function ModelEntityToJSON(json: any): ModelEntity;
|
|
741
|
+
declare function ModelEntityToJSONTyped(value?: ModelEntity | null, ignoreDiscriminator?: boolean): any;
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region src/models/RegexEntity.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 RegexEntity
|
|
759
|
+
*/
|
|
760
|
+
interface RegexEntity {
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof RegexEntity
|
|
765
|
+
*/
|
|
766
|
+
type?: RegexEntityTypeEnum;
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @type {string}
|
|
770
|
+
* @memberof RegexEntity
|
|
771
|
+
*/
|
|
772
|
+
value: string;
|
|
726
773
|
}
|
|
727
774
|
/**
|
|
728
775
|
* @export
|
|
729
776
|
*/
|
|
730
|
-
declare const
|
|
731
|
-
readonly
|
|
777
|
+
declare const RegexEntityTypeEnum: {
|
|
778
|
+
readonly regex: "regex";
|
|
732
779
|
};
|
|
733
|
-
type
|
|
780
|
+
type RegexEntityTypeEnum = typeof RegexEntityTypeEnum[keyof typeof RegexEntityTypeEnum];
|
|
734
781
|
/**
|
|
735
|
-
* Check if a given object implements the
|
|
782
|
+
* Check if a given object implements the RegexEntity interface.
|
|
783
|
+
*/
|
|
784
|
+
declare function instanceOfRegexEntity(value: object): value is RegexEntity;
|
|
785
|
+
declare function RegexEntityFromJSON(json: any): RegexEntity;
|
|
786
|
+
declare function RegexEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexEntity;
|
|
787
|
+
declare function RegexEntityToJSON(json: any): RegexEntity;
|
|
788
|
+
declare function RegexEntityToJSONTyped(value?: RegexEntity | null, ignoreDiscriminator?: boolean): any;
|
|
789
|
+
//#endregion
|
|
790
|
+
//#region src/models/EntitiesAnyOfInner.d.ts
|
|
791
|
+
/**
|
|
792
|
+
* @type EntitiesAnyOfInner
|
|
793
|
+
*
|
|
794
|
+
* @export
|
|
736
795
|
*/
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
796
|
+
type EntitiesAnyOfInner = {
|
|
797
|
+
type: 'model';
|
|
798
|
+
} & ModelEntity | {
|
|
799
|
+
type: 'regex';
|
|
800
|
+
} & RegexEntity;
|
|
801
|
+
declare function EntitiesAnyOfInnerFromJSON(json: any): EntitiesAnyOfInner;
|
|
802
|
+
declare function EntitiesAnyOfInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntitiesAnyOfInner;
|
|
803
|
+
declare function EntitiesAnyOfInnerToJSON(json: any): any;
|
|
804
|
+
declare function EntitiesAnyOfInnerToJSONTyped(value?: EntitiesAnyOfInner | null, ignoreDiscriminator?: boolean): any;
|
|
742
805
|
//#endregion
|
|
743
806
|
//#region src/models/ValidationErrorLocInner.d.ts
|
|
744
807
|
/**
|
|
@@ -825,53 +888,6 @@ declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
825
888
|
declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError;
|
|
826
889
|
declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any;
|
|
827
890
|
//#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
891
|
//#region src/models/ScanRequestBody.d.ts
|
|
876
892
|
/**
|
|
877
893
|
* Sensitive Data Protection API
|
|
@@ -999,22 +1015,6 @@ declare function ScanResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
999
1015
|
declare function ScanResponseBodyToJSON(json: any): ScanResponseBody;
|
|
1000
1016
|
declare function ScanResponseBodyToJSONTyped(value?: ScanResponseBody | null, ignoreDiscriminator?: boolean): any;
|
|
1001
1017
|
//#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
1018
|
//#region src/apis/SensitiveDataProtectionApi.d.ts
|
|
1019
1019
|
interface AnonymizeTextRequest {
|
|
1020
1020
|
AnonymizeRequestBody: AnonymizeRequestBody;
|
|
@@ -1058,4 +1058,4 @@ declare class SensitiveDataProtectionApi extends BaseAPI {
|
|
|
1058
1058
|
scanText(ScanRequestBody: ScanRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise<ScanResponseBody>;
|
|
1059
1059
|
}
|
|
1060
1060
|
//#endregion
|
|
1061
|
-
export { AnonymizeRequestBody, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped,
|
|
1061
|
+
export { AnonymizeRequestBody, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyRulesInner, AnonymizeRequestBodyRulesInnerFromJSON, AnonymizeRequestBodyRulesInnerFromJSONTyped, AnonymizeRequestBodyRulesInnerToJSON, AnonymizeRequestBodyRulesInnerToJSONTyped, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeResponseBody, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AnonymizeTextRequest, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultConfig, EncryptRule, EncryptRuleFromJSON, EncryptRuleFromJSONTyped, EncryptRuleToJSON, EncryptRuleToJSONTyped, EncryptRuleTypeEnum, Entities, EntitiesAnyOfInner, EntitiesAnyOfInnerFromJSON, EntitiesAnyOfInnerFromJSONTyped, EntitiesAnyOfInnerToJSON, EntitiesAnyOfInnerToJSONTyped, EntitiesFromJSON, EntitiesFromJSONTyped, EntitiesToJSON, EntitiesToJSONTyped, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, InitOverrideFunction, JSONApiResponse, Json, MapValueInner, MapValueInnerFromJSON, MapValueInnerFromJSONTyped, MapValueInnerToJSON, MapValueInnerToJSONTyped, MaskRule, MaskRuleFromJSON, MaskRuleFromJSONTyped, MaskRuleToJSON, MaskRuleToJSONTyped, MaskRuleTypeEnum, Middleware, ModelEntity, ModelEntityFromJSON, ModelEntityFromJSONTyped, ModelEntityToJSON, ModelEntityToJSONTyped, ModelEntityTypeEnum, ModelPropertyNaming, ModelSpan, ModelSpanFromJSON, ModelSpanFromJSONTyped, ModelSpanToJSON, ModelSpanToJSONTyped, ModelSpanTypeEnum, RedactRule, RedactRuleFromJSON, RedactRuleFromJSONTyped, RedactRuleToJSON, RedactRuleToJSONTyped, RedactRuleTypeEnum, RegexEntity, RegexEntityFromJSON, RegexEntityFromJSONTyped, RegexEntityToJSON, RegexEntityToJSONTyped, RegexEntityTypeEnum, RegexSpan, RegexSpanFromJSON, RegexSpanFromJSONTyped, RegexSpanToJSON, RegexSpanToJSONTyped, RegexSpanTypeEnum, ReplaceRule, ReplaceRuleFromJSON, ReplaceRuleFromJSONTyped, ReplaceRuleToJSON, ReplaceRuleToJSONTyped, ReplaceRuleTypeEnum, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, SHA256Rule, SHA256RuleFromJSON, SHA256RuleFromJSONTyped, SHA256RuleToJSON, SHA256RuleToJSONTyped, SHA256RuleTypeEnum, SHA512Rule, SHA512RuleFromJSON, SHA512RuleFromJSONTyped, SHA512RuleToJSON, SHA512RuleToJSONTyped, SHA512RuleTypeEnum, 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, instanceOfAnonymizeRequestBody, instanceOfAnonymizeResponseBody, instanceOfEncryptRule, instanceOfEntities, instanceOfHTTPValidationError, instanceOfMaskRule, instanceOfModelEntity, instanceOfModelSpan, instanceOfRedactRule, instanceOfRegexEntity, instanceOfRegexSpan, instanceOfReplaceRule, instanceOfSHA256Rule, instanceOfSHA512Rule, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfValidationError, instanceOfValidationErrorLocInner, mapValues, querystring };
|