@quba/sensitive-data-protection 0.0.12 → 0.2.0

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.
Files changed (80) hide show
  1. package/README.md +59 -6
  2. package/dist/index.cjs +2908 -560
  3. package/dist/index.d.cts +3092 -764
  4. package/dist/index.d.mts +3092 -764
  5. package/dist/index.mjs +2593 -526
  6. package/docs/Action.md +33 -0
  7. package/docs/AnonymizeFileResponseBody.md +43 -0
  8. package/docs/AnonymizeRequestBody.md +4 -4
  9. package/docs/AnonymizeResponseBody.md +3 -1
  10. package/docs/{AnonymizeResponseBodySpansInner.md → Applied.md} +7 -4
  11. package/docs/At.md +37 -0
  12. package/docs/AttributeSegment.md +37 -0
  13. package/docs/{ValidationErrorLocInner.md → CellKind.md} +5 -4
  14. package/docs/CellNoteSegment.md +35 -0
  15. package/docs/CellSegment.md +43 -0
  16. package/docs/CommentKind.md +33 -0
  17. package/docs/CommentSegment.md +39 -0
  18. package/docs/ComponentSegment.md +39 -0
  19. package/docs/DetectRule.md +3 -1
  20. package/docs/ElementSegment.md +39 -0
  21. package/docs/EncryptRule.md +3 -1
  22. package/docs/{DetectRuleEntitiesInner.md → EndnoteSegment.md} +7 -6
  23. package/docs/{EntitiesAnyOfInner.md → EntityBody.md} +5 -4
  24. package/docs/ErrorCode.md +33 -0
  25. package/docs/ErrorInfo.md +39 -0
  26. package/docs/FieldError.md +51 -0
  27. package/docs/FieldErrorCode.md +33 -0
  28. package/docs/{HTTPValidationError.md → FieldErrorPathInner.md} +5 -6
  29. package/docs/FieldSegment.md +39 -0
  30. package/docs/FileAttributeResult.md +47 -0
  31. package/docs/FileEmbeddedResult.md +43 -0
  32. package/docs/FileModelResult.md +49 -0
  33. package/docs/{AnonymizeResponseBodyResultsInner.md → FileRegexResult.md} +11 -8
  34. package/docs/FileResult.md +51 -0
  35. package/docs/FootnoteSegment.md +37 -0
  36. package/docs/FrameSegment.md +37 -0
  37. package/docs/HMACRule.md +43 -0
  38. package/docs/HeaderFooterSegment.md +37 -0
  39. package/docs/IndexSegment.md +37 -0
  40. package/docs/ItemSegment.md +37 -0
  41. package/docs/KeySegment.md +37 -0
  42. package/docs/Kind.md +33 -0
  43. package/docs/LineSegment.md +39 -0
  44. package/docs/MaskRule.md +3 -1
  45. package/docs/ModelEntity.md +1 -1
  46. package/docs/ModelError.md +35 -0
  47. package/docs/ModelResult.md +3 -1
  48. package/docs/ModelStatus.md +45 -0
  49. package/docs/{Entities.md → ModelType.md} +5 -4
  50. package/docs/ParagraphKind.md +33 -0
  51. package/docs/ParagraphSegment.md +39 -0
  52. package/docs/PartSegment.md +39 -0
  53. package/docs/PathSegment.md +79 -0
  54. package/docs/PoliciesApi.md +10 -1
  55. package/docs/PolicyDocumentRulesInner.md +7 -1
  56. package/docs/{ValidationError.md → PropertySegment.md} +7 -12
  57. package/docs/PseudonymizeRule.md +41 -0
  58. package/docs/RangeKind.md +33 -0
  59. package/docs/RangeSegment.md +39 -0
  60. package/docs/RedactRule.md +3 -1
  61. package/docs/Refusal.md +36 -0
  62. package/docs/RegexResult.md +2 -0
  63. package/docs/RegionSegment.md +43 -0
  64. package/docs/ReplaceRule.md +3 -1
  65. package/docs/{AnonymizeRequestBodyRulesInner.md → RuleBody.md} +12 -5
  66. package/docs/SHA256Rule.md +3 -1
  67. package/docs/SHA512Rule.md +3 -1
  68. package/docs/ScanRequestBody.md +2 -0
  69. package/docs/ScanResponseBody.md +2 -0
  70. package/docs/SegmentSegment.md +39 -0
  71. package/docs/SensitiveDataProtectionApi.md +172 -4
  72. package/docs/ShapeKind.md +33 -0
  73. package/docs/ShapeSegment.md +41 -0
  74. package/docs/SheetSegment.md +39 -0
  75. package/docs/SlideSegment.md +41 -0
  76. package/docs/SpeakerNotesSegment.md +41 -0
  77. package/docs/TableSegment.md +37 -0
  78. package/docs/TagSegment.md +41 -0
  79. package/docs/TextSegment.md +39 -0
  80. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  //#region src/runtime.d.ts
2
2
  /**
3
3
  * Sensitive Data Protection API
4
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
4
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
5
5
  *
6
6
  * The version of the OpenAPI document: 0.1.0
7
7
  *
@@ -184,10 +184,10 @@ declare class TextApiResponse {
184
184
  value(): Promise<string>;
185
185
  }
186
186
  //#endregion
187
- //#region src/models/DetectRuleEntitiesInner.d.ts
187
+ //#region src/models/Action.d.ts
188
188
  /**
189
189
  * Sensitive Data Protection API
190
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
190
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
191
191
  *
192
192
  * The version of the OpenAPI document: 0.1.0
193
193
  *
@@ -197,161 +197,27 @@ declare class TextApiResponse {
197
197
  * Do not edit the class manually.
198
198
  */
199
199
  /**
200
- *
201
- * @export
202
- * @interface DetectRuleEntitiesInner
203
- */
204
- interface DetectRuleEntitiesInner {
205
- /**
206
- *
207
- * @type {string}
208
- * @memberof DetectRuleEntitiesInner
209
- */
210
- type?: DetectRuleEntitiesInnerTypeEnum;
211
- /**
212
- * The regular expression to match.
213
- * @type {string}
214
- * @memberof DetectRuleEntitiesInner
215
- */
216
- value: string;
217
- }
218
- /**
219
- * @export
220
- */
221
- declare const DetectRuleEntitiesInnerTypeEnum: {
222
- readonly model: "model";
223
- readonly regex: "regex";
224
- };
225
- type DetectRuleEntitiesInnerTypeEnum = typeof DetectRuleEntitiesInnerTypeEnum[keyof typeof DetectRuleEntitiesInnerTypeEnum];
226
- /**
227
- * Check if a given object implements the DetectRuleEntitiesInner interface.
228
- */
229
- declare function instanceOfDetectRuleEntitiesInner(value: object): value is DetectRuleEntitiesInner;
230
- declare function DetectRuleEntitiesInnerFromJSON(json: any): DetectRuleEntitiesInner;
231
- declare function DetectRuleEntitiesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetectRuleEntitiesInner;
232
- declare function DetectRuleEntitiesInnerToJSON(json: any): DetectRuleEntitiesInner;
233
- declare function DetectRuleEntitiesInnerToJSONTyped(value?: DetectRuleEntitiesInner | null, ignoreDiscriminator?: boolean): any;
234
- //#endregion
235
- //#region src/models/AnonymizeRequestBodyRulesInner.d.ts
236
- /**
237
- *
238
- * @export
239
- * @interface AnonymizeRequestBodyRulesInner
240
- */
241
- interface AnonymizeRequestBodyRulesInner {
242
- /**
243
- *
244
- * @type {string}
245
- * @memberof AnonymizeRequestBodyRulesInner
246
- */
247
- type?: AnonymizeRequestBodyRulesInnerTypeEnum;
248
- /**
249
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
250
- * @type {Array<DetectRuleEntitiesInner>}
251
- * @memberof AnonymizeRequestBodyRulesInner
252
- */
253
- entities: Array<DetectRuleEntitiesInner>;
254
- /**
255
- * The fixed string to substitute for each match.
256
- * @type {string}
257
- * @memberof AnonymizeRequestBodyRulesInner
258
- */
259
- replacement?: string;
260
- /**
261
- * Base64 Fernet key. If empty, a key is generated automatically.
262
- * @type {string}
263
- * @memberof AnonymizeRequestBodyRulesInner
264
- */
265
- key?: string;
266
- /**
267
- * The character used to mask, e.g. '*'.
268
- * @type {string}
269
- * @memberof AnonymizeRequestBodyRulesInner
270
- */
271
- masking_char?: string;
272
- /**
273
- *
274
- * @type {number}
275
- * @memberof AnonymizeRequestBodyRulesInner
276
- */
277
- chars_to_mask?: number;
278
- /**
279
- * If true, mask the last N characters instead of the first N.
280
- * @type {boolean}
281
- * @memberof AnonymizeRequestBodyRulesInner
282
- */
283
- from_end?: boolean;
284
- }
285
- /**
200
+ * What the browser extension does with a match, before the text is sent.
201
+ * `warn`: highlighted; the user may send it as it is. `enforce`: replaced
202
+ * with the rule's transformation before sending; sending is blocked when it
203
+ * can't be.
286
204
  * @export
287
205
  */
288
- declare const AnonymizeRequestBodyRulesInnerTypeEnum: {
289
- readonly replace: "replace";
290
- readonly redact: "redact";
291
- readonly sha256: "sha256";
292
- readonly sha512: "sha512";
293
- readonly encrypt: "encrypt";
294
- readonly mask: "mask";
295
- readonly detect: "detect";
206
+ declare const Action: {
207
+ readonly warn: "warn";
208
+ readonly enforce: "enforce";
296
209
  };
297
- type AnonymizeRequestBodyRulesInnerTypeEnum = typeof AnonymizeRequestBodyRulesInnerTypeEnum[keyof typeof AnonymizeRequestBodyRulesInnerTypeEnum];
298
- /**
299
- * Check if a given object implements the AnonymizeRequestBodyRulesInner interface.
300
- */
301
- declare function instanceOfAnonymizeRequestBodyRulesInner(value: object): value is AnonymizeRequestBodyRulesInner;
302
- declare function AnonymizeRequestBodyRulesInnerFromJSON(json: any): AnonymizeRequestBodyRulesInner;
303
- declare function AnonymizeRequestBodyRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBodyRulesInner;
304
- declare function AnonymizeRequestBodyRulesInnerToJSON(json: any): AnonymizeRequestBodyRulesInner;
305
- declare function AnonymizeRequestBodyRulesInnerToJSONTyped(value?: AnonymizeRequestBodyRulesInner | null, ignoreDiscriminator?: boolean): any;
306
- //#endregion
307
- //#region src/models/AnonymizeRequestBody.d.ts
308
- /**
309
- * Request body for the anonymize endpoint.
310
- *
311
- * Carries the text to anonymize and the list of de-identification rules to
312
- * apply. See ``AnonymizationCommand`` for field-level details.
313
- * @export
314
- * @interface AnonymizeRequestBody
315
- */
316
- interface AnonymizeRequestBody {
317
- /**
318
- * The text to scan and anonymize. At most 128 KB in UTF-8.
319
- * @type {string}
320
- * @memberof AnonymizeRequestBody
321
- */
322
- text: string;
323
- /**
324
- * The de-identification rules to apply. At least one is required. Optional when `policy` is supplied.
325
- * @type {Array<AnonymizeRequestBodyRulesInner>}
326
- * @memberof AnonymizeRequestBody
327
- */
328
- rules?: Array<AnonymizeRequestBodyRulesInner>;
329
- /**
330
- *
331
- * @type {number}
332
- * @memberof AnonymizeRequestBody
333
- */
334
- confidence_threshold?: number | null;
335
- /**
336
- *
337
- * @type {string}
338
- * @memberof AnonymizeRequestBody
339
- */
340
- policy?: string | null;
341
- }
342
- /**
343
- * Check if a given object implements the AnonymizeRequestBody interface.
344
- */
345
- declare function instanceOfAnonymizeRequestBody(value: object): value is AnonymizeRequestBody;
346
- declare function AnonymizeRequestBodyFromJSON(json: any): AnonymizeRequestBody;
347
- declare function AnonymizeRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBody;
348
- declare function AnonymizeRequestBodyToJSON(json: any): AnonymizeRequestBody;
349
- declare function AnonymizeRequestBodyToJSONTyped(value?: AnonymizeRequestBody | null, ignoreDiscriminator?: boolean): any;
210
+ type Action = typeof Action[keyof typeof Action];
211
+ declare function instanceOfAction(value: any): boolean;
212
+ declare function ActionFromJSON(json: any): Action;
213
+ declare function ActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Action;
214
+ declare function ActionToJSON(value?: Action | null): any;
215
+ declare function ActionToJSONTyped(value: any, ignoreDiscriminator: boolean): Action;
350
216
  //#endregion
351
217
  //#region src/models/Usage.d.ts
352
218
  /**
353
219
  * Sensitive Data Protection API
354
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
220
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
355
221
  *
356
222
  * The version of the OpenAPI document: 0.1.0
357
223
  *
@@ -395,10 +261,10 @@ declare function UsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Us
395
261
  declare function UsageToJSON(json: any): Usage;
396
262
  declare function UsageToJSONTyped(value?: Usage | null, ignoreDiscriminator?: boolean): any;
397
263
  //#endregion
398
- //#region src/models/TextRange.d.ts
264
+ //#region src/models/AttributeSegment.d.ts
399
265
  /**
400
266
  * Sensitive Data Protection API
401
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
267
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
402
268
  *
403
269
  * The version of the OpenAPI document: 0.1.0
404
270
  *
@@ -408,377 +274,486 @@ declare function UsageToJSONTyped(value?: Usage | null, ignoreDiscriminator?: bo
408
274
  * Do not edit the class manually.
409
275
  */
410
276
  /**
411
- * A character range within a text, carrying the substring it covers.
277
+ * An XML or HTML attribute of the element before it.
412
278
  * @export
413
- * @interface TextRange
279
+ * @interface AttributeSegment
414
280
  */
415
- interface TextRange {
416
- /**
417
- * Start character offset (inclusive).
418
- * @type {number}
419
- * @memberof TextRange
420
- */
421
- start: number;
281
+ interface AttributeSegment {
422
282
  /**
423
- * End character offset (exclusive).
424
- * @type {number}
425
- * @memberof TextRange
283
+ *
284
+ * @type {string}
285
+ * @memberof AttributeSegment
426
286
  */
427
- end: number;
287
+ type: AttributeSegmentTypeEnum;
428
288
  /**
429
- * The substring at [start, end).
289
+ *
430
290
  * @type {string}
431
- * @memberof TextRange
291
+ * @memberof AttributeSegment
432
292
  */
433
- value: string;
293
+ name: string;
434
294
  }
435
295
  /**
436
- * Check if a given object implements the TextRange interface.
296
+ * @export
437
297
  */
438
- declare function instanceOfTextRange(value: object): value is TextRange;
439
- declare function TextRangeFromJSON(json: any): TextRange;
440
- declare function TextRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextRange;
441
- declare function TextRangeToJSON(json: any): TextRange;
442
- declare function TextRangeToJSONTyped(value?: TextRange | null, ignoreDiscriminator?: boolean): any;
298
+ declare const AttributeSegmentTypeEnum: {
299
+ readonly attribute: "attribute";
300
+ };
301
+ type AttributeSegmentTypeEnum = typeof AttributeSegmentTypeEnum[keyof typeof AttributeSegmentTypeEnum];
302
+ /**
303
+ * Check if a given object implements the AttributeSegment interface.
304
+ */
305
+ declare function instanceOfAttributeSegment(value: object): value is AttributeSegment;
306
+ declare function AttributeSegmentFromJSON(json: any): AttributeSegment;
307
+ declare function AttributeSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeSegment;
308
+ declare function AttributeSegmentToJSON(json: any): AttributeSegment;
309
+ declare function AttributeSegmentToJSONTyped(value?: AttributeSegment | null, ignoreDiscriminator?: boolean): any;
443
310
  //#endregion
444
- //#region src/models/AnonymizeResponseBodyResultsInner.d.ts
311
+ //#region src/models/CellNoteSegment.d.ts
445
312
  /**
313
+ * Sensitive Data Protection API
314
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
315
+ *
316
+ * The version of the OpenAPI document: 0.1.0
317
+ *
446
318
  *
319
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
320
+ * https://openapi-generator.tech
321
+ * Do not edit the class manually.
322
+ */
323
+ /**
324
+ * A workbook note on a cell (Excel's "Note", a legacy comment); it follows its cell.
447
325
  * @export
448
- * @interface AnonymizeResponseBodyResultsInner
326
+ * @interface CellNoteSegment
449
327
  */
450
- interface AnonymizeResponseBodyResultsInner {
328
+ interface CellNoteSegment {
451
329
  /**
452
330
  *
453
331
  * @type {string}
454
- * @memberof AnonymizeResponseBodyResultsInner
332
+ * @memberof CellNoteSegment
455
333
  */
456
- type?: AnonymizeResponseBodyResultsInnerTypeEnum;
334
+ type: CellNoteSegmentTypeEnum;
335
+ }
336
+ /**
337
+ * @export
338
+ */
339
+ declare const CellNoteSegmentTypeEnum: {
340
+ readonly cell_note: "cell_note";
341
+ };
342
+ type CellNoteSegmentTypeEnum = typeof CellNoteSegmentTypeEnum[keyof typeof CellNoteSegmentTypeEnum];
343
+ /**
344
+ * Check if a given object implements the CellNoteSegment interface.
345
+ */
346
+ declare function instanceOfCellNoteSegment(value: object): value is CellNoteSegment;
347
+ declare function CellNoteSegmentFromJSON(json: any): CellNoteSegment;
348
+ declare function CellNoteSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CellNoteSegment;
349
+ declare function CellNoteSegmentToJSON(json: any): CellNoteSegment;
350
+ declare function CellNoteSegmentToJSONTyped(value?: CellNoteSegment | null, ignoreDiscriminator?: boolean): any;
351
+ //#endregion
352
+ //#region src/models/CellKind.d.ts
353
+ /**
354
+ * Sensitive Data Protection API
355
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
356
+ *
357
+ * The version of the OpenAPI document: 0.1.0
358
+ *
359
+ *
360
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
361
+ * https://openapi-generator.tech
362
+ * Do not edit the class manually.
363
+ */
364
+ /**
365
+ * @type CellKind
366
+ * What a cell's text is when it is not its value.
367
+ * @export
368
+ */
369
+ type CellKind = string;
370
+ declare function CellKindFromJSON(json: any): CellKind;
371
+ declare function CellKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): CellKind;
372
+ declare function CellKindToJSON(json: any): any;
373
+ declare function CellKindToJSONTyped(value?: CellKind | null, ignoreDiscriminator?: boolean): any;
374
+ //#endregion
375
+ //#region src/models/CellSegment.d.ts
376
+ /**
377
+ * A cell, from 1, in the data's order (a CSV's header line is row 1); `ref` in
378
+ * A1. No `kind` for its value.
379
+ * @export
380
+ * @interface CellSegment
381
+ */
382
+ interface CellSegment {
457
383
  /**
458
- * The rule type that was applied, e.g. 'replace', 'mask'.
384
+ *
459
385
  * @type {string}
460
- * @memberof AnonymizeResponseBodyResultsInner
386
+ * @memberof CellSegment
461
387
  */
462
- rule: string;
388
+ type: CellSegmentTypeEnum;
463
389
  /**
464
- * The regex pattern that matched.
465
- * @type {string}
466
- * @memberof AnonymizeResponseBodyResultsInner
390
+ *
391
+ * @type {number}
392
+ * @memberof CellSegment
467
393
  */
468
- value: string;
394
+ row: number;
469
395
  /**
470
- * The detected range in the original text.
471
- * @type {TextRange}
472
- * @memberof AnonymizeResponseBodyResultsInner
396
+ *
397
+ * @type {number}
398
+ * @memberof CellSegment
473
399
  */
474
- input: TextRange;
400
+ column: number;
475
401
  /**
476
- * The anonymized range in the result text.
477
- * @type {TextRange}
478
- * @memberof AnonymizeResponseBodyResultsInner
402
+ *
403
+ * @type {string}
404
+ * @memberof CellSegment
479
405
  */
480
- output: TextRange;
406
+ ref: string;
481
407
  /**
482
- * Confidence score from the AI model (0.0–1.0).
483
- * @type {number}
484
- * @memberof AnonymizeResponseBodyResultsInner
408
+ *
409
+ * @type {CellKind}
410
+ * @memberof CellSegment
485
411
  */
486
- score?: number;
412
+ kind?: CellKind | null;
487
413
  }
488
414
  /**
489
415
  * @export
490
416
  */
491
- declare const AnonymizeResponseBodyResultsInnerTypeEnum: {
492
- readonly model: "model";
493
- readonly regex: "regex";
417
+ declare const CellSegmentTypeEnum: {
418
+ readonly cell: "cell";
494
419
  };
495
- type AnonymizeResponseBodyResultsInnerTypeEnum = typeof AnonymizeResponseBodyResultsInnerTypeEnum[keyof typeof AnonymizeResponseBodyResultsInnerTypeEnum];
420
+ type CellSegmentTypeEnum = typeof CellSegmentTypeEnum[keyof typeof CellSegmentTypeEnum];
496
421
  /**
497
- * Check if a given object implements the AnonymizeResponseBodyResultsInner interface.
422
+ * Check if a given object implements the CellSegment interface.
498
423
  */
499
- declare function instanceOfAnonymizeResponseBodyResultsInner(value: object): value is AnonymizeResponseBodyResultsInner;
500
- declare function AnonymizeResponseBodyResultsInnerFromJSON(json: any): AnonymizeResponseBodyResultsInner;
501
- declare function AnonymizeResponseBodyResultsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseBodyResultsInner;
502
- declare function AnonymizeResponseBodyResultsInnerToJSON(json: any): AnonymizeResponseBodyResultsInner;
503
- declare function AnonymizeResponseBodyResultsInnerToJSONTyped(value?: AnonymizeResponseBodyResultsInner | null, ignoreDiscriminator?: boolean): any;
424
+ declare function instanceOfCellSegment(value: object): value is CellSegment;
425
+ declare function CellSegmentFromJSON(json: any): CellSegment;
426
+ declare function CellSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CellSegment;
427
+ declare function CellSegmentToJSON(json: any): CellSegment;
428
+ declare function CellSegmentToJSONTyped(value?: CellSegment | null, ignoreDiscriminator?: boolean): any;
504
429
  //#endregion
505
- //#region src/models/AnonymizeResponseBody.d.ts
430
+ //#region src/models/CommentKind.d.ts
506
431
  /**
507
- * Response from the anonymize endpoint: the anonymized text and a record
508
- * of every transformation that was applied.
432
+ * Sensitive Data Protection API
433
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
434
+ *
435
+ * The version of the OpenAPI document: 0.1.0
436
+ *
437
+ *
438
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
439
+ * https://openapi-generator.tech
440
+ * Do not edit the class manually.
441
+ */
442
+ /**
443
+ * Its author's name or initials.
509
444
  * @export
510
- * @interface AnonymizeResponseBody
511
445
  */
512
- interface AnonymizeResponseBody {
446
+ declare const CommentKind: {
447
+ readonly author: "author";
448
+ };
449
+ type CommentKind = typeof CommentKind[keyof typeof CommentKind];
450
+ declare function instanceOfCommentKind(value: any): boolean;
451
+ declare function CommentKindFromJSON(json: any): CommentKind;
452
+ declare function CommentKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentKind;
453
+ declare function CommentKindToJSON(value?: CommentKind | null): any;
454
+ declare function CommentKindToJSONTyped(value: any, ignoreDiscriminator: boolean): CommentKind;
455
+ //#endregion
456
+ //#region src/models/CommentSegment.d.ts
457
+ /**
458
+ * A comment (Word `w:comment`, PowerPoint `p:cm`, Excel threaded comment), by
459
+ * its id in the file. In a workbook it follows its cell.
460
+ * @export
461
+ * @interface CommentSegment
462
+ */
463
+ interface CommentSegment {
513
464
  /**
514
- * The anonymized text after all rules have been applied.
465
+ *
515
466
  * @type {string}
516
- * @memberof AnonymizeResponseBody
467
+ * @memberof CommentSegment
517
468
  */
518
- text: string;
469
+ type: CommentSegmentTypeEnum;
519
470
  /**
520
- * Records of each anonymization performed, ordered by position.
521
- * @type {Array<AnonymizeResponseBodyResultsInner>}
522
- * @memberof AnonymizeResponseBody
471
+ *
472
+ * @type {string}
473
+ * @memberof CommentSegment
523
474
  */
524
- results?: Array<AnonymizeResponseBodyResultsInner>;
475
+ id: string;
525
476
  /**
526
- * Token counts for this request.
527
- * @type {Usage}
528
- * @memberof AnonymizeResponseBody
477
+ *
478
+ * @type {CommentKind}
479
+ * @memberof CommentSegment
529
480
  */
530
- usage: Usage;
481
+ kind?: CommentKind | null;
531
482
  }
532
483
  /**
533
- * Check if a given object implements the AnonymizeResponseBody interface.
484
+ * @export
534
485
  */
535
- declare function instanceOfAnonymizeResponseBody(value: object): value is AnonymizeResponseBody;
536
- declare function AnonymizeResponseBodyFromJSON(json: any): AnonymizeResponseBody;
537
- declare function AnonymizeResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseBody;
538
- declare function AnonymizeResponseBodyToJSON(json: any): AnonymizeResponseBody;
539
- declare function AnonymizeResponseBodyToJSONTyped(value?: AnonymizeResponseBody | null, ignoreDiscriminator?: boolean): any;
486
+ declare const CommentSegmentTypeEnum: {
487
+ readonly comment: "comment";
488
+ };
489
+ type CommentSegmentTypeEnum = typeof CommentSegmentTypeEnum[keyof typeof CommentSegmentTypeEnum];
490
+ /**
491
+ * Check if a given object implements the CommentSegment interface.
492
+ */
493
+ declare function instanceOfCommentSegment(value: object): value is CommentSegment;
494
+ declare function CommentSegmentFromJSON(json: any): CommentSegment;
495
+ declare function CommentSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentSegment;
496
+ declare function CommentSegmentToJSON(json: any): CommentSegment;
497
+ declare function CommentSegmentToJSONTyped(value?: CommentSegment | null, ignoreDiscriminator?: boolean): any;
540
498
  //#endregion
541
- //#region src/models/PolicyDocumentRulesInner.d.ts
499
+ //#region src/models/ComponentSegment.d.ts
542
500
  /**
501
+ * Sensitive Data Protection API
502
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
543
503
  *
504
+ * The version of the OpenAPI document: 0.1.0
505
+ *
506
+ *
507
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
508
+ * https://openapi-generator.tech
509
+ * Do not edit the class manually.
510
+ */
511
+ /**
512
+ * An HL7 v2 component of the field before it: `1` in `PID-5.1`.
544
513
  * @export
545
- * @interface PolicyDocumentRulesInner
514
+ * @interface ComponentSegment
546
515
  */
547
- interface PolicyDocumentRulesInner {
516
+ interface ComponentSegment {
548
517
  /**
549
518
  *
550
519
  * @type {string}
551
- * @memberof PolicyDocumentRulesInner
520
+ * @memberof ComponentSegment
552
521
  */
553
- type?: PolicyDocumentRulesInnerTypeEnum;
522
+ type: ComponentSegmentTypeEnum;
554
523
  /**
555
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
556
- * @type {Array<DetectRuleEntitiesInner>}
557
- * @memberof PolicyDocumentRulesInner
524
+ *
525
+ * @type {number}
526
+ * @memberof ComponentSegment
558
527
  */
559
- entities: Array<DetectRuleEntitiesInner>;
528
+ number: number;
560
529
  /**
561
- * The fixed string to substitute for each match.
562
- * @type {string}
563
- * @memberof PolicyDocumentRulesInner
530
+ *
531
+ * @type {number}
532
+ * @memberof ComponentSegment
564
533
  */
565
- replacement?: string;
566
- /**
567
- * The character used to mask, e.g. '*'.
568
- * @type {string}
569
- * @memberof PolicyDocumentRulesInner
570
- */
571
- masking_char?: string;
572
- /**
573
- *
574
- * @type {number}
575
- * @memberof PolicyDocumentRulesInner
576
- */
577
- chars_to_mask?: number;
578
- /**
579
- * If true, mask the last N characters instead of the first N.
580
- * @type {boolean}
581
- * @memberof PolicyDocumentRulesInner
582
- */
583
- from_end?: boolean;
584
- /**
585
- * Base64 Fernet key. If empty, a key is generated automatically.
586
- * @type {string}
587
- * @memberof PolicyDocumentRulesInner
588
- */
589
- key?: string;
534
+ subcomponent?: number | null;
590
535
  }
591
536
  /**
592
537
  * @export
593
538
  */
594
- declare const PolicyDocumentRulesInnerTypeEnum: {
595
- readonly detect: "detect";
596
- readonly redact: "redact";
597
- readonly replace: "replace";
598
- readonly mask: "mask";
599
- readonly sha256: "sha256";
600
- readonly sha512: "sha512";
601
- readonly encrypt: "encrypt";
539
+ declare const ComponentSegmentTypeEnum: {
540
+ readonly component: "component";
602
541
  };
603
- type PolicyDocumentRulesInnerTypeEnum = typeof PolicyDocumentRulesInnerTypeEnum[keyof typeof PolicyDocumentRulesInnerTypeEnum];
542
+ type ComponentSegmentTypeEnum = typeof ComponentSegmentTypeEnum[keyof typeof ComponentSegmentTypeEnum];
604
543
  /**
605
- * Check if a given object implements the PolicyDocumentRulesInner interface.
544
+ * Check if a given object implements the ComponentSegment interface.
606
545
  */
607
- declare function instanceOfPolicyDocumentRulesInner(value: object): value is PolicyDocumentRulesInner;
608
- declare function PolicyDocumentRulesInnerFromJSON(json: any): PolicyDocumentRulesInner;
609
- declare function PolicyDocumentRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyDocumentRulesInner;
610
- declare function PolicyDocumentRulesInnerToJSON(json: any): PolicyDocumentRulesInner;
611
- declare function PolicyDocumentRulesInnerToJSONTyped(value?: PolicyDocumentRulesInner | null, ignoreDiscriminator?: boolean): any;
546
+ declare function instanceOfComponentSegment(value: object): value is ComponentSegment;
547
+ declare function ComponentSegmentFromJSON(json: any): ComponentSegment;
548
+ declare function ComponentSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentSegment;
549
+ declare function ComponentSegmentToJSON(json: any): ComponentSegment;
550
+ declare function ComponentSegmentToJSONTyped(value?: ComponentSegment | null, ignoreDiscriminator?: boolean): any;
612
551
  //#endregion
613
- //#region src/models/PolicyDocument.d.ts
552
+ //#region src/models/ElementSegment.d.ts
614
553
  /**
615
- * A reusable set of de-identification rules. Rules are ORDERED: overlapping matches are resolved first-match-wins, so a detect rule placed before a transform shields those spans from being rewritten.
554
+ * Sensitive Data Protection API
555
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
556
+ *
557
+ * The version of the OpenAPI document: 0.1.0
558
+ *
559
+ *
560
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
561
+ * https://openapi-generator.tech
562
+ * Do not edit the class manually.
563
+ */
564
+ /**
565
+ * An XML or HTML element, by its local name (no namespace prefix): a step
566
+ * towards a value, as in a path of element names.
616
567
  * @export
617
- * @interface PolicyDocument
568
+ * @interface ElementSegment
618
569
  */
619
- interface PolicyDocument {
570
+ interface ElementSegment {
620
571
  /**
621
572
  *
622
- * @type {number}
623
- * @memberof PolicyDocument
573
+ * @type {string}
574
+ * @memberof ElementSegment
624
575
  */
625
- schema_version: PolicyDocumentSchemaVersionEnum;
576
+ type: ElementSegmentTypeEnum;
626
577
  /**
627
578
  *
628
579
  * @type {string}
629
- * @memberof PolicyDocument
580
+ * @memberof ElementSegment
630
581
  */
631
- name?: string;
582
+ name: string;
632
583
  /**
633
- *
584
+ * Among the siblings with this name, from 0.
634
585
  * @type {number}
635
- * @memberof PolicyDocument
636
- */
637
- confidence_threshold?: number | null;
638
- /**
639
- *
640
- * @type {Array<PolicyDocumentRulesInner>}
641
- * @memberof PolicyDocument
586
+ * @memberof ElementSegment
642
587
  */
643
- rules: Array<PolicyDocumentRulesInner>;
588
+ index: number;
644
589
  }
645
590
  /**
646
591
  * @export
647
592
  */
648
- declare const PolicyDocumentSchemaVersionEnum: {
649
- readonly NUMBER_1: 1;
593
+ declare const ElementSegmentTypeEnum: {
594
+ readonly element: "element";
650
595
  };
651
- type PolicyDocumentSchemaVersionEnum = typeof PolicyDocumentSchemaVersionEnum[keyof typeof PolicyDocumentSchemaVersionEnum];
596
+ type ElementSegmentTypeEnum = typeof ElementSegmentTypeEnum[keyof typeof ElementSegmentTypeEnum];
652
597
  /**
653
- * Check if a given object implements the PolicyDocument interface.
598
+ * Check if a given object implements the ElementSegment interface.
654
599
  */
655
- declare function instanceOfPolicyDocument(value: object): value is PolicyDocument;
656
- declare function PolicyDocumentFromJSON(json: any): PolicyDocument;
657
- declare function PolicyDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyDocument;
658
- declare function PolicyDocumentToJSON(json: any): PolicyDocument;
659
- declare function PolicyDocumentToJSONTyped(value?: PolicyDocument | null, ignoreDiscriminator?: boolean): any;
600
+ declare function instanceOfElementSegment(value: object): value is ElementSegment;
601
+ declare function ElementSegmentFromJSON(json: any): ElementSegment;
602
+ declare function ElementSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ElementSegment;
603
+ declare function ElementSegmentToJSON(json: any): ElementSegment;
604
+ declare function ElementSegmentToJSONTyped(value?: ElementSegment | null, ignoreDiscriminator?: boolean): any;
660
605
  //#endregion
661
- //#region src/models/CreatePolicyRequest.d.ts
606
+ //#region src/models/EndnoteSegment.d.ts
662
607
  /**
608
+ * Sensitive Data Protection API
609
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
610
+ *
611
+ * The version of the OpenAPI document: 0.1.0
663
612
  *
613
+ *
614
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
615
+ * https://openapi-generator.tech
616
+ * Do not edit the class manually.
617
+ */
618
+ /**
619
+ * An endnote (`w:endnote`), by its id.
664
620
  * @export
665
- * @interface CreatePolicyRequest
621
+ * @interface EndnoteSegment
666
622
  */
667
- interface CreatePolicyRequest {
623
+ interface EndnoteSegment {
668
624
  /**
669
625
  *
670
626
  * @type {string}
671
- * @memberof CreatePolicyRequest
627
+ * @memberof EndnoteSegment
672
628
  */
673
- name: string;
629
+ type: EndnoteSegmentTypeEnum;
674
630
  /**
675
631
  *
676
- * @type {PolicyDocument}
677
- * @memberof CreatePolicyRequest
632
+ * @type {string}
633
+ * @memberof EndnoteSegment
678
634
  */
679
- document: PolicyDocument;
635
+ id: string;
680
636
  }
681
637
  /**
682
- * Check if a given object implements the CreatePolicyRequest interface.
638
+ * @export
683
639
  */
684
- declare function instanceOfCreatePolicyRequest(value: object): value is CreatePolicyRequest;
685
- declare function CreatePolicyRequestFromJSON(json: any): CreatePolicyRequest;
686
- declare function CreatePolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePolicyRequest;
687
- declare function CreatePolicyRequestToJSON(json: any): CreatePolicyRequest;
688
- declare function CreatePolicyRequestToJSONTyped(value?: CreatePolicyRequest | null, ignoreDiscriminator?: boolean): any;
640
+ declare const EndnoteSegmentTypeEnum: {
641
+ readonly endnote: "endnote";
642
+ };
643
+ type EndnoteSegmentTypeEnum = typeof EndnoteSegmentTypeEnum[keyof typeof EndnoteSegmentTypeEnum];
644
+ /**
645
+ * Check if a given object implements the EndnoteSegment interface.
646
+ */
647
+ declare function instanceOfEndnoteSegment(value: object): value is EndnoteSegment;
648
+ declare function EndnoteSegmentFromJSON(json: any): EndnoteSegment;
649
+ declare function EndnoteSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndnoteSegment;
650
+ declare function EndnoteSegmentToJSON(json: any): EndnoteSegment;
651
+ declare function EndnoteSegmentToJSONTyped(value?: EndnoteSegment | null, ignoreDiscriminator?: boolean): any;
689
652
  //#endregion
690
- //#region src/models/DetectRule.d.ts
653
+ //#region src/models/FieldSegment.d.ts
691
654
  /**
692
- * Report each matched value without changing it.
655
+ * Sensitive Data Protection API
656
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
693
657
  *
694
- * The match is recorded in the results like any other rule, but the text is
695
- * returned untouched — this is how a policy says "flag this, don't rewrite
696
- * it", which is what the browser extension needs when it must not edit the
697
- * user's prompt.
658
+ * The version of the OpenAPI document: 0.1.0
698
659
  *
699
- * Because overlapping spans are resolved first-match-wins, placing a detect
700
- * rule before a transform also shields those spans from being rewritten.
660
+ *
661
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
662
+ * https://openapi-generator.tech
663
+ * Do not edit the class manually.
664
+ */
665
+ /**
666
+ * An HL7 v2 field of the segment before it: `5` in `PID-5`.
701
667
  * @export
702
- * @interface DetectRule
668
+ * @interface FieldSegment
703
669
  */
704
- interface DetectRule {
670
+ interface FieldSegment {
705
671
  /**
706
672
  *
707
673
  * @type {string}
708
- * @memberof DetectRule
674
+ * @memberof FieldSegment
709
675
  */
710
- type?: DetectRuleTypeEnum;
676
+ type: FieldSegmentTypeEnum;
711
677
  /**
712
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
713
- * @type {Array<DetectRuleEntitiesInner>}
714
- * @memberof DetectRule
678
+ * The field's number, as the standard counts them (MSH-1 is the separator).
679
+ * @type {number}
680
+ * @memberof FieldSegment
681
+ */
682
+ number: number;
683
+ /**
684
+ * Which repetition of the field, from 0.
685
+ * @type {number}
686
+ * @memberof FieldSegment
715
687
  */
716
- entities: Array<DetectRuleEntitiesInner>;
688
+ repetition: number;
717
689
  }
718
690
  /**
719
691
  * @export
720
692
  */
721
- declare const DetectRuleTypeEnum: {
722
- readonly detect: "detect";
693
+ declare const FieldSegmentTypeEnum: {
694
+ readonly field: "field";
723
695
  };
724
- type DetectRuleTypeEnum = typeof DetectRuleTypeEnum[keyof typeof DetectRuleTypeEnum];
696
+ type FieldSegmentTypeEnum = typeof FieldSegmentTypeEnum[keyof typeof FieldSegmentTypeEnum];
725
697
  /**
726
- * Check if a given object implements the DetectRule interface.
698
+ * Check if a given object implements the FieldSegment interface.
727
699
  */
728
- declare function instanceOfDetectRule(value: object): value is DetectRule;
729
- declare function DetectRuleFromJSON(json: any): DetectRule;
730
- declare function DetectRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetectRule;
731
- declare function DetectRuleToJSON(json: any): DetectRule;
732
- declare function DetectRuleToJSONTyped(value?: DetectRule | null, ignoreDiscriminator?: boolean): any;
700
+ declare function instanceOfFieldSegment(value: object): value is FieldSegment;
701
+ declare function FieldSegmentFromJSON(json: any): FieldSegment;
702
+ declare function FieldSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldSegment;
703
+ declare function FieldSegmentToJSON(json: any): FieldSegment;
704
+ declare function FieldSegmentToJSONTyped(value?: FieldSegment | null, ignoreDiscriminator?: boolean): any;
733
705
  //#endregion
734
- //#region src/models/EncryptRule.d.ts
706
+ //#region src/models/FootnoteSegment.d.ts
735
707
  /**
736
- * Replace each matched value with a Fernet-encrypted token.
708
+ * Sensitive Data Protection API
709
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
737
710
  *
738
- * If no key is supplied, a new Fernet key is generated per rule instance.
711
+ * The version of the OpenAPI document: 0.1.0
712
+ *
713
+ *
714
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
715
+ * https://openapi-generator.tech
716
+ * Do not edit the class manually.
717
+ */
718
+ /**
719
+ * A footnote (`w:footnote`), by its id.
739
720
  * @export
740
- * @interface EncryptRule
721
+ * @interface FootnoteSegment
741
722
  */
742
- interface EncryptRule {
723
+ interface FootnoteSegment {
743
724
  /**
744
725
  *
745
726
  * @type {string}
746
- * @memberof EncryptRule
747
- */
748
- type?: EncryptRuleTypeEnum;
749
- /**
750
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
751
- * @type {Array<DetectRuleEntitiesInner>}
752
- * @memberof EncryptRule
727
+ * @memberof FootnoteSegment
753
728
  */
754
- entities: Array<DetectRuleEntitiesInner>;
729
+ type: FootnoteSegmentTypeEnum;
755
730
  /**
756
- * Base64 Fernet key. If empty, a key is generated automatically.
731
+ *
757
732
  * @type {string}
758
- * @memberof EncryptRule
733
+ * @memberof FootnoteSegment
759
734
  */
760
- key?: string;
735
+ id: string;
761
736
  }
762
737
  /**
763
738
  * @export
764
739
  */
765
- declare const EncryptRuleTypeEnum: {
766
- readonly encrypt: "encrypt";
740
+ declare const FootnoteSegmentTypeEnum: {
741
+ readonly footnote: "footnote";
767
742
  };
768
- type EncryptRuleTypeEnum = typeof EncryptRuleTypeEnum[keyof typeof EncryptRuleTypeEnum];
743
+ type FootnoteSegmentTypeEnum = typeof FootnoteSegmentTypeEnum[keyof typeof FootnoteSegmentTypeEnum];
769
744
  /**
770
- * Check if a given object implements the EncryptRule interface.
745
+ * Check if a given object implements the FootnoteSegment interface.
771
746
  */
772
- declare function instanceOfEncryptRule(value: object): value is EncryptRule;
773
- declare function EncryptRuleFromJSON(json: any): EncryptRule;
774
- declare function EncryptRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptRule;
775
- declare function EncryptRuleToJSON(json: any): EncryptRule;
776
- declare function EncryptRuleToJSONTyped(value?: EncryptRule | null, ignoreDiscriminator?: boolean): any;
747
+ declare function instanceOfFootnoteSegment(value: object): value is FootnoteSegment;
748
+ declare function FootnoteSegmentFromJSON(json: any): FootnoteSegment;
749
+ declare function FootnoteSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): FootnoteSegment;
750
+ declare function FootnoteSegmentToJSON(json: any): FootnoteSegment;
751
+ declare function FootnoteSegmentToJSONTyped(value?: FootnoteSegment | null, ignoreDiscriminator?: boolean): any;
777
752
  //#endregion
778
- //#region src/models/ValidationErrorLocInner.d.ts
753
+ //#region src/models/FrameSegment.d.ts
779
754
  /**
780
755
  * Sensitive Data Protection API
781
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
756
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
782
757
  *
783
758
  * The version of the OpenAPI document: 0.1.0
784
759
  *
@@ -788,94 +763,185 @@ declare function EncryptRuleToJSONTyped(value?: EncryptRule | null, ignoreDiscri
788
763
  * Do not edit the class manually.
789
764
  */
790
765
  /**
791
- *
766
+ * A frame of DICOM pixel data, from 1.
767
+ * @export
768
+ * @interface FrameSegment
769
+ */
770
+ interface FrameSegment {
771
+ /**
772
+ *
773
+ * @type {string}
774
+ * @memberof FrameSegment
775
+ */
776
+ type: FrameSegmentTypeEnum;
777
+ /**
778
+ *
779
+ * @type {number}
780
+ * @memberof FrameSegment
781
+ */
782
+ number: number;
783
+ }
784
+ /**
792
785
  * @export
793
- * @interface ValidationErrorLocInner
794
786
  */
795
- interface ValidationErrorLocInner {}
787
+ declare const FrameSegmentTypeEnum: {
788
+ readonly frame: "frame";
789
+ };
790
+ type FrameSegmentTypeEnum = typeof FrameSegmentTypeEnum[keyof typeof FrameSegmentTypeEnum];
796
791
  /**
797
- * Check if a given object implements the ValidationErrorLocInner interface.
792
+ * Check if a given object implements the FrameSegment interface.
798
793
  */
799
- declare function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner;
800
- declare function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner;
801
- declare function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner;
802
- declare function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner;
803
- declare function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator?: boolean): any;
794
+ declare function instanceOfFrameSegment(value: object): value is FrameSegment;
795
+ declare function FrameSegmentFromJSON(json: any): FrameSegment;
796
+ declare function FrameSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrameSegment;
797
+ declare function FrameSegmentToJSON(json: any): FrameSegment;
798
+ declare function FrameSegmentToJSONTyped(value?: FrameSegment | null, ignoreDiscriminator?: boolean): any;
804
799
  //#endregion
805
- //#region src/models/ValidationError.d.ts
800
+ //#region src/models/HeaderFooterSegment.d.ts
806
801
  /**
802
+ * Sensitive Data Protection API
803
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
804
+ *
805
+ * The version of the OpenAPI document: 0.1.0
806
+ *
807
807
  *
808
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
809
+ * https://openapi-generator.tech
810
+ * Do not edit the class manually.
811
+ */
812
+ /**
813
+ * A worksheet's page header or footer, by its element: `oddHeader`, `oddFooter`, `evenHeader`…
808
814
  * @export
809
- * @interface ValidationError
815
+ * @interface HeaderFooterSegment
810
816
  */
811
- interface ValidationError {
812
- /**
813
- *
814
- * @type {Array<ValidationErrorLocInner>}
815
- * @memberof ValidationError
816
- */
817
- loc: Array<ValidationErrorLocInner>;
817
+ interface HeaderFooterSegment {
818
818
  /**
819
819
  *
820
820
  * @type {string}
821
- * @memberof ValidationError
821
+ * @memberof HeaderFooterSegment
822
822
  */
823
- msg: string;
823
+ type: HeaderFooterSegmentTypeEnum;
824
824
  /**
825
825
  *
826
826
  * @type {string}
827
- * @memberof ValidationError
827
+ * @memberof HeaderFooterSegment
828
828
  */
829
- type: string;
829
+ name: string;
830
+ }
831
+ /**
832
+ * @export
833
+ */
834
+ declare const HeaderFooterSegmentTypeEnum: {
835
+ readonly header_footer: "header_footer";
836
+ };
837
+ type HeaderFooterSegmentTypeEnum = typeof HeaderFooterSegmentTypeEnum[keyof typeof HeaderFooterSegmentTypeEnum];
838
+ /**
839
+ * Check if a given object implements the HeaderFooterSegment interface.
840
+ */
841
+ declare function instanceOfHeaderFooterSegment(value: object): value is HeaderFooterSegment;
842
+ declare function HeaderFooterSegmentFromJSON(json: any): HeaderFooterSegment;
843
+ declare function HeaderFooterSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): HeaderFooterSegment;
844
+ declare function HeaderFooterSegmentToJSON(json: any): HeaderFooterSegment;
845
+ declare function HeaderFooterSegmentToJSONTyped(value?: HeaderFooterSegment | null, ignoreDiscriminator?: boolean): any;
846
+ //#endregion
847
+ //#region src/models/IndexSegment.d.ts
848
+ /**
849
+ * Sensitive Data Protection API
850
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
851
+ *
852
+ * The version of the OpenAPI document: 0.1.0
853
+ *
854
+ *
855
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
856
+ * https://openapi-generator.tech
857
+ * Do not edit the class manually.
858
+ */
859
+ /**
860
+ * A JSON array's index, from 0: a step towards a value, as in a JSON Pointer.
861
+ * @export
862
+ * @interface IndexSegment
863
+ */
864
+ interface IndexSegment {
830
865
  /**
831
866
  *
832
- * @type {any}
833
- * @memberof ValidationError
867
+ * @type {string}
868
+ * @memberof IndexSegment
834
869
  */
835
- input?: any | null;
870
+ type: IndexSegmentTypeEnum;
836
871
  /**
837
872
  *
838
- * @type {object}
839
- * @memberof ValidationError
873
+ * @type {number}
874
+ * @memberof IndexSegment
840
875
  */
841
- ctx?: object;
876
+ index: number;
842
877
  }
843
878
  /**
844
- * Check if a given object implements the ValidationError interface.
879
+ * @export
880
+ */
881
+ declare const IndexSegmentTypeEnum: {
882
+ readonly index: "index";
883
+ };
884
+ type IndexSegmentTypeEnum = typeof IndexSegmentTypeEnum[keyof typeof IndexSegmentTypeEnum];
885
+ /**
886
+ * Check if a given object implements the IndexSegment interface.
845
887
  */
846
- declare function instanceOfValidationError(value: object): value is ValidationError;
847
- declare function ValidationErrorFromJSON(json: any): ValidationError;
848
- declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
849
- declare function ValidationErrorToJSON(json: any): ValidationError;
850
- declare function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator?: boolean): any;
888
+ declare function instanceOfIndexSegment(value: object): value is IndexSegment;
889
+ declare function IndexSegmentFromJSON(json: any): IndexSegment;
890
+ declare function IndexSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexSegment;
891
+ declare function IndexSegmentToJSON(json: any): IndexSegment;
892
+ declare function IndexSegmentToJSONTyped(value?: IndexSegment | null, ignoreDiscriminator?: boolean): any;
851
893
  //#endregion
852
- //#region src/models/HTTPValidationError.d.ts
894
+ //#region src/models/ItemSegment.d.ts
853
895
  /**
896
+ * Sensitive Data Protection API
897
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
898
+ *
899
+ * The version of the OpenAPI document: 0.1.0
900
+ *
854
901
  *
902
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
903
+ * https://openapi-generator.tech
904
+ * Do not edit the class manually.
905
+ */
906
+ /**
907
+ * An item of the DICOM sequence before it, from 1.
855
908
  * @export
856
- * @interface HTTPValidationError
909
+ * @interface ItemSegment
857
910
  */
858
- interface HTTPValidationError {
911
+ interface ItemSegment {
912
+ /**
913
+ *
914
+ * @type {string}
915
+ * @memberof ItemSegment
916
+ */
917
+ type: ItemSegmentTypeEnum;
859
918
  /**
860
919
  *
861
- * @type {Array<ValidationError>}
862
- * @memberof HTTPValidationError
920
+ * @type {number}
921
+ * @memberof ItemSegment
863
922
  */
864
- detail?: Array<ValidationError>;
923
+ number: number;
865
924
  }
866
925
  /**
867
- * Check if a given object implements the HTTPValidationError interface.
926
+ * @export
927
+ */
928
+ declare const ItemSegmentTypeEnum: {
929
+ readonly item: "item";
930
+ };
931
+ type ItemSegmentTypeEnum = typeof ItemSegmentTypeEnum[keyof typeof ItemSegmentTypeEnum];
932
+ /**
933
+ * Check if a given object implements the ItemSegment interface.
868
934
  */
869
- declare function instanceOfHTTPValidationError(value: object): value is HTTPValidationError;
870
- declare function HTTPValidationErrorFromJSON(json: any): HTTPValidationError;
871
- declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError;
872
- declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError;
873
- declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any;
935
+ declare function instanceOfItemSegment(value: object): value is ItemSegment;
936
+ declare function ItemSegmentFromJSON(json: any): ItemSegment;
937
+ declare function ItemSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemSegment;
938
+ declare function ItemSegmentToJSON(json: any): ItemSegment;
939
+ declare function ItemSegmentToJSONTyped(value?: ItemSegment | null, ignoreDiscriminator?: boolean): any;
874
940
  //#endregion
875
- //#region src/models/PolicySummary.d.ts
941
+ //#region src/models/KeySegment.d.ts
876
942
  /**
877
943
  * Sensitive Data Protection API
878
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
944
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
879
945
  *
880
946
  * The version of the OpenAPI document: 0.1.0
881
947
  *
@@ -885,135 +951,164 @@ declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | nu
885
951
  * Do not edit the class manually.
886
952
  */
887
953
  /**
888
- *
954
+ * A JSON object's key: a step towards a value, as in a JSON Pointer.
889
955
  * @export
890
- * @interface PolicySummary
956
+ * @interface KeySegment
891
957
  */
892
- interface PolicySummary {
958
+ interface KeySegment {
893
959
  /**
894
960
  *
895
961
  * @type {string}
896
- * @memberof PolicySummary
962
+ * @memberof KeySegment
897
963
  */
898
- id: string;
964
+ type: KeySegmentTypeEnum;
899
965
  /**
900
966
  *
901
967
  * @type {string}
902
- * @memberof PolicySummary
968
+ * @memberof KeySegment
903
969
  */
904
970
  name: string;
905
- /**
906
- *
907
- * @type {string}
908
- * @memberof PolicySummary
909
- */
910
- versionId: string;
911
- /**
912
- *
913
- * @type {number}
914
- * @memberof PolicySummary
915
- */
916
- createdAt: number;
917
- /**
918
- *
919
- * @type {number}
920
- * @memberof PolicySummary
921
- */
922
- updatedAt: number;
923
971
  }
924
972
  /**
925
- * Check if a given object implements the PolicySummary interface.
973
+ * @export
926
974
  */
927
- declare function instanceOfPolicySummary(value: object): value is PolicySummary;
928
- declare function PolicySummaryFromJSON(json: any): PolicySummary;
929
- declare function PolicySummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicySummary;
930
- declare function PolicySummaryToJSON(json: any): PolicySummary;
931
- declare function PolicySummaryToJSONTyped(value?: PolicySummary | null, ignoreDiscriminator?: boolean): any;
975
+ declare const KeySegmentTypeEnum: {
976
+ readonly key: "key";
977
+ };
978
+ type KeySegmentTypeEnum = typeof KeySegmentTypeEnum[keyof typeof KeySegmentTypeEnum];
979
+ /**
980
+ * Check if a given object implements the KeySegment interface.
981
+ */
982
+ declare function instanceOfKeySegment(value: object): value is KeySegment;
983
+ declare function KeySegmentFromJSON(json: any): KeySegment;
984
+ declare function KeySegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeySegment;
985
+ declare function KeySegmentToJSON(json: any): KeySegment;
986
+ declare function KeySegmentToJSONTyped(value?: KeySegment | null, ignoreDiscriminator?: boolean): any;
932
987
  //#endregion
933
- //#region src/models/ListPolicies200Response.d.ts
988
+ //#region src/models/LineSegment.d.ts
934
989
  /**
990
+ * Sensitive Data Protection API
991
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
992
+ *
993
+ * The version of the OpenAPI document: 0.1.0
994
+ *
935
995
  *
996
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
997
+ * https://openapi-generator.tech
998
+ * Do not edit the class manually.
999
+ */
1000
+ /**
1001
+ * Where a value starts in a text file, from 1, as an editor shows it; in an
1002
+ * image, the line read (in reading order) and the character in it.
936
1003
  * @export
937
- * @interface ListPolicies200Response
1004
+ * @interface LineSegment
938
1005
  */
939
- interface ListPolicies200Response {
1006
+ interface LineSegment {
940
1007
  /**
941
1008
  *
942
- * @type {Array<PolicySummary>}
943
- * @memberof ListPolicies200Response
1009
+ * @type {string}
1010
+ * @memberof LineSegment
944
1011
  */
945
- policies: Array<PolicySummary>;
1012
+ type: LineSegmentTypeEnum;
1013
+ /**
1014
+ *
1015
+ * @type {number}
1016
+ * @memberof LineSegment
1017
+ */
1018
+ line: number;
1019
+ /**
1020
+ *
1021
+ * @type {number}
1022
+ * @memberof LineSegment
1023
+ */
1024
+ column: number;
946
1025
  }
947
1026
  /**
948
- * Check if a given object implements the ListPolicies200Response interface.
1027
+ * @export
949
1028
  */
950
- declare function instanceOfListPolicies200Response(value: object): value is ListPolicies200Response;
951
- declare function ListPolicies200ResponseFromJSON(json: any): ListPolicies200Response;
952
- declare function ListPolicies200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPolicies200Response;
953
- declare function ListPolicies200ResponseToJSON(json: any): ListPolicies200Response;
954
- declare function ListPolicies200ResponseToJSONTyped(value?: ListPolicies200Response | null, ignoreDiscriminator?: boolean): any;
1029
+ declare const LineSegmentTypeEnum: {
1030
+ readonly line: "line";
1031
+ };
1032
+ type LineSegmentTypeEnum = typeof LineSegmentTypeEnum[keyof typeof LineSegmentTypeEnum];
1033
+ /**
1034
+ * Check if a given object implements the LineSegment interface.
1035
+ */
1036
+ declare function instanceOfLineSegment(value: object): value is LineSegment;
1037
+ declare function LineSegmentFromJSON(json: any): LineSegment;
1038
+ declare function LineSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineSegment;
1039
+ declare function LineSegmentToJSON(json: any): LineSegment;
1040
+ declare function LineSegmentToJSONTyped(value?: LineSegment | null, ignoreDiscriminator?: boolean): any;
955
1041
  //#endregion
956
- //#region src/models/MaskRule.d.ts
1042
+ //#region src/models/ParagraphKind.d.ts
957
1043
  /**
958
- * Mask part of each matched value with a repeated character.
1044
+ * Sensitive Data Protection API
1045
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
959
1046
  *
960
- * By default the whole value is masked; set ``chars_to_mask`` to mask only a
961
- * portion, and ``from_end`` to mask the trailing characters instead of leading.
1047
+ * The version of the OpenAPI document: 0.1.0
1048
+ *
1049
+ *
1050
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1051
+ * https://openapi-generator.tech
1052
+ * Do not edit the class manually.
1053
+ */
1054
+ /**
1055
+ * @type ParagraphKind
1056
+ * What a paragraph's text is when it is not its own text.
962
1057
  * @export
963
- * @interface MaskRule
964
1058
  */
965
- interface MaskRule {
1059
+ type ParagraphKind = string;
1060
+ declare function ParagraphKindFromJSON(json: any): ParagraphKind;
1061
+ declare function ParagraphKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParagraphKind;
1062
+ declare function ParagraphKindToJSON(json: any): any;
1063
+ declare function ParagraphKindToJSONTyped(value?: ParagraphKind | null, ignoreDiscriminator?: boolean): any;
1064
+ //#endregion
1065
+ //#region src/models/ParagraphSegment.d.ts
1066
+ /**
1067
+ * A paragraph (`w:p`, `a:p`), numbered from 1 in what holds it (the part, a
1068
+ * shape, a cell, a comment, a footnote). No `kind` for its own text.
1069
+ * @export
1070
+ * @interface ParagraphSegment
1071
+ */
1072
+ interface ParagraphSegment {
966
1073
  /**
967
1074
  *
968
1075
  * @type {string}
969
- * @memberof MaskRule
970
- */
971
- type?: MaskRuleTypeEnum;
972
- /**
973
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
974
- * @type {Array<DetectRuleEntitiesInner>}
975
- * @memberof MaskRule
976
- */
977
- entities: Array<DetectRuleEntitiesInner>;
978
- /**
979
- * The character used to mask, e.g. '*'.
980
- * @type {string}
981
- * @memberof MaskRule
1076
+ * @memberof ParagraphSegment
982
1077
  */
983
- masking_char?: string;
1078
+ type: ParagraphSegmentTypeEnum;
984
1079
  /**
985
1080
  *
986
1081
  * @type {number}
987
- * @memberof MaskRule
1082
+ * @memberof ParagraphSegment
988
1083
  */
989
- chars_to_mask?: number | null;
1084
+ number: number;
990
1085
  /**
991
- * If true, mask the last N characters instead of the first N.
992
- * @type {boolean}
993
- * @memberof MaskRule
1086
+ *
1087
+ * @type {ParagraphKind}
1088
+ * @memberof ParagraphSegment
994
1089
  */
995
- from_end?: boolean;
1090
+ kind?: ParagraphKind | null;
996
1091
  }
997
1092
  /**
998
1093
  * @export
999
1094
  */
1000
- declare const MaskRuleTypeEnum: {
1001
- readonly mask: "mask";
1095
+ declare const ParagraphSegmentTypeEnum: {
1096
+ readonly paragraph: "paragraph";
1002
1097
  };
1003
- type MaskRuleTypeEnum = typeof MaskRuleTypeEnum[keyof typeof MaskRuleTypeEnum];
1098
+ type ParagraphSegmentTypeEnum = typeof ParagraphSegmentTypeEnum[keyof typeof ParagraphSegmentTypeEnum];
1004
1099
  /**
1005
- * Check if a given object implements the MaskRule interface.
1100
+ * Check if a given object implements the ParagraphSegment interface.
1006
1101
  */
1007
- declare function instanceOfMaskRule(value: object): value is MaskRule;
1008
- declare function MaskRuleFromJSON(json: any): MaskRule;
1009
- declare function MaskRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaskRule;
1010
- declare function MaskRuleToJSON(json: any): MaskRule;
1011
- declare function MaskRuleToJSONTyped(value?: MaskRule | null, ignoreDiscriminator?: boolean): any;
1102
+ declare function instanceOfParagraphSegment(value: object): value is ParagraphSegment;
1103
+ declare function ParagraphSegmentFromJSON(json: any): ParagraphSegment;
1104
+ declare function ParagraphSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParagraphSegment;
1105
+ declare function ParagraphSegmentToJSON(json: any): ParagraphSegment;
1106
+ declare function ParagraphSegmentToJSONTyped(value?: ParagraphSegment | null, ignoreDiscriminator?: boolean): any;
1012
1107
  //#endregion
1013
- //#region src/models/ModelEntity.d.ts
1108
+ //#region src/models/Kind.d.ts
1014
1109
  /**
1015
1110
  * Sensitive Data Protection API
1016
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
1111
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1017
1112
  *
1018
1113
  * The version of the OpenAPI document: 0.1.0
1019
1114
  *
@@ -1023,196 +1118,2417 @@ declare function MaskRuleToJSONTyped(value?: MaskRule | null, ignoreDiscriminato
1023
1118
  * Do not edit the class manually.
1024
1119
  */
1025
1120
  /**
1026
- * An AI-model entity type to target, e.g. 'PERSON', 'EMAIL', 'LOCATION'.
1121
+ * @type Kind
1122
+ * What the text is in an Office file, named after its ECMA-376 element or property.
1027
1123
  * @export
1028
- * @interface ModelEntity
1029
1124
  */
1030
- interface ModelEntity {
1125
+ type Kind = string;
1126
+ declare function KindFromJSON(json: any): Kind;
1127
+ declare function KindFromJSONTyped(json: any, ignoreDiscriminator: boolean): Kind;
1128
+ declare function KindToJSON(json: any): any;
1129
+ declare function KindToJSONTyped(value?: Kind | null, ignoreDiscriminator?: boolean): any;
1130
+ //#endregion
1131
+ //#region src/models/PartSegment.d.ts
1132
+ /**
1133
+ * Any other file in an Office zip, e.g. `word/document.xml`, `docProps/core.xml`.
1134
+ * `kind` until finer segments (paragraphs, properties) say where its text is.
1135
+ * @export
1136
+ * @interface PartSegment
1137
+ */
1138
+ interface PartSegment {
1031
1139
  /**
1032
1140
  *
1033
1141
  * @type {string}
1034
- * @memberof ModelEntity
1142
+ * @memberof PartSegment
1035
1143
  */
1036
- type?: ModelEntityTypeEnum;
1144
+ type: PartSegmentTypeEnum;
1037
1145
  /**
1038
- * The model entity type name, e.g. 'PERSON'.
1146
+ *
1039
1147
  * @type {string}
1040
- * @memberof ModelEntity
1148
+ * @memberof PartSegment
1041
1149
  */
1042
- value: string;
1150
+ part: string;
1151
+ /**
1152
+ *
1153
+ * @type {Kind}
1154
+ * @memberof PartSegment
1155
+ */
1156
+ kind?: Kind | null;
1043
1157
  }
1044
1158
  /**
1045
1159
  * @export
1046
1160
  */
1047
- declare const ModelEntityTypeEnum: {
1048
- readonly model: "model";
1161
+ declare const PartSegmentTypeEnum: {
1162
+ readonly part: "part";
1049
1163
  };
1050
- type ModelEntityTypeEnum = typeof ModelEntityTypeEnum[keyof typeof ModelEntityTypeEnum];
1164
+ type PartSegmentTypeEnum = typeof PartSegmentTypeEnum[keyof typeof PartSegmentTypeEnum];
1051
1165
  /**
1052
- * Check if a given object implements the ModelEntity interface.
1166
+ * Check if a given object implements the PartSegment interface.
1053
1167
  */
1054
- declare function instanceOfModelEntity(value: object): value is ModelEntity;
1055
- declare function ModelEntityFromJSON(json: any): ModelEntity;
1056
- declare function ModelEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelEntity;
1057
- declare function ModelEntityToJSON(json: any): ModelEntity;
1058
- declare function ModelEntityToJSONTyped(value?: ModelEntity | null, ignoreDiscriminator?: boolean): any;
1168
+ declare function instanceOfPartSegment(value: object): value is PartSegment;
1169
+ declare function PartSegmentFromJSON(json: any): PartSegment;
1170
+ declare function PartSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartSegment;
1171
+ declare function PartSegmentToJSON(json: any): PartSegment;
1172
+ declare function PartSegmentToJSONTyped(value?: PartSegment | null, ignoreDiscriminator?: boolean): any;
1059
1173
  //#endregion
1060
- //#region src/models/ModelResult.d.ts
1174
+ //#region src/models/PropertySegment.d.ts
1061
1175
  /**
1062
- * Record of an AI model detection and its anonymization.
1176
+ * Sensitive Data Protection API
1177
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1063
1178
  *
1064
- * Created when an AI model identifies an entity (e.g. PERSON, EMAIL)
1065
- * and a rule anonymizes the matched text.
1179
+ * The version of the OpenAPI document: 0.1.0
1180
+ *
1181
+ *
1182
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1183
+ * https://openapi-generator.tech
1184
+ * Do not edit the class manually.
1185
+ */
1186
+ /**
1187
+ * A document property: a core one by its element (`creator`, `title`,
1188
+ * `lastModifiedBy`), an extended one likewise (`Company`, `Manager`), a custom
1189
+ * one by its name.
1066
1190
  * @export
1067
- * @interface ModelResult
1191
+ * @interface PropertySegment
1068
1192
  */
1069
- interface ModelResult {
1193
+ interface PropertySegment {
1070
1194
  /**
1071
1195
  *
1072
1196
  * @type {string}
1073
- * @memberof ModelResult
1197
+ * @memberof PropertySegment
1074
1198
  */
1075
- type?: ModelResultTypeEnum;
1199
+ type: PropertySegmentTypeEnum;
1076
1200
  /**
1077
- * The rule type that was applied, e.g. 'replace', 'mask'.
1201
+ *
1078
1202
  * @type {string}
1079
- * @memberof ModelResult
1203
+ * @memberof PropertySegment
1080
1204
  */
1081
- rule: string;
1205
+ name: string;
1206
+ }
1207
+ /**
1208
+ * @export
1209
+ */
1210
+ declare const PropertySegmentTypeEnum: {
1211
+ readonly property: "property";
1212
+ };
1213
+ type PropertySegmentTypeEnum = typeof PropertySegmentTypeEnum[keyof typeof PropertySegmentTypeEnum];
1214
+ /**
1215
+ * Check if a given object implements the PropertySegment interface.
1216
+ */
1217
+ declare function instanceOfPropertySegment(value: object): value is PropertySegment;
1218
+ declare function PropertySegmentFromJSON(json: any): PropertySegment;
1219
+ declare function PropertySegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertySegment;
1220
+ declare function PropertySegmentToJSON(json: any): PropertySegment;
1221
+ declare function PropertySegmentToJSONTyped(value?: PropertySegment | null, ignoreDiscriminator?: boolean): any;
1222
+ //#endregion
1223
+ //#region src/models/RangeKind.d.ts
1224
+ /**
1225
+ * Sensitive Data Protection API
1226
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1227
+ *
1228
+ * The version of the OpenAPI document: 0.1.0
1229
+ *
1230
+ *
1231
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1232
+ * https://openapi-generator.tech
1233
+ * Do not edit the class manually.
1234
+ */
1235
+ /**
1236
+ * A data validation's prompt, error message or list of values.
1237
+ * @export
1238
+ */
1239
+ declare const RangeKind: {
1240
+ readonly data_validation: "data_validation";
1241
+ };
1242
+ type RangeKind = typeof RangeKind[keyof typeof RangeKind];
1243
+ declare function instanceOfRangeKind(value: any): boolean;
1244
+ declare function RangeKindFromJSON(json: any): RangeKind;
1245
+ declare function RangeKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): RangeKind;
1246
+ declare function RangeKindToJSON(value?: RangeKind | null): any;
1247
+ declare function RangeKindToJSONTyped(value: any, ignoreDiscriminator: boolean): RangeKind;
1248
+ //#endregion
1249
+ //#region src/models/RangeSegment.d.ts
1250
+ /**
1251
+ * Cells, in A1 (`A2:A100`): a data validation's.
1252
+ * @export
1253
+ * @interface RangeSegment
1254
+ */
1255
+ interface RangeSegment {
1082
1256
  /**
1083
- * The model entity type that matched, e.g. 'PERSON'.
1257
+ *
1084
1258
  * @type {string}
1085
- * @memberof ModelResult
1086
- */
1087
- value: string;
1088
- /**
1089
- * The detected range in the original text.
1090
- * @type {TextRange}
1091
- * @memberof ModelResult
1259
+ * @memberof RangeSegment
1092
1260
  */
1093
- input: TextRange;
1261
+ type: RangeSegmentTypeEnum;
1094
1262
  /**
1095
- * The anonymized range in the result text.
1096
- * @type {TextRange}
1097
- * @memberof ModelResult
1263
+ *
1264
+ * @type {string}
1265
+ * @memberof RangeSegment
1098
1266
  */
1099
- output: TextRange;
1267
+ ref: string;
1100
1268
  /**
1101
- * Confidence score from the AI model (0.0–1.0).
1102
- * @type {number}
1103
- * @memberof ModelResult
1269
+ *
1270
+ * @type {RangeKind}
1271
+ * @memberof RangeSegment
1104
1272
  */
1105
- score?: number;
1273
+ kind: RangeKind;
1106
1274
  }
1107
1275
  /**
1108
1276
  * @export
1109
1277
  */
1110
- declare const ModelResultTypeEnum: {
1111
- readonly model: "model";
1278
+ declare const RangeSegmentTypeEnum: {
1279
+ readonly range: "range";
1112
1280
  };
1113
- type ModelResultTypeEnum = typeof ModelResultTypeEnum[keyof typeof ModelResultTypeEnum];
1281
+ type RangeSegmentTypeEnum = typeof RangeSegmentTypeEnum[keyof typeof RangeSegmentTypeEnum];
1114
1282
  /**
1115
- * Check if a given object implements the ModelResult interface.
1283
+ * Check if a given object implements the RangeSegment interface.
1116
1284
  */
1117
- declare function instanceOfModelResult(value: object): value is ModelResult;
1118
- declare function ModelResultFromJSON(json: any): ModelResult;
1119
- declare function ModelResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelResult;
1120
- declare function ModelResultToJSON(json: any): ModelResult;
1121
- declare function ModelResultToJSONTyped(value?: ModelResult | null, ignoreDiscriminator?: boolean): any;
1285
+ declare function instanceOfRangeSegment(value: object): value is RangeSegment;
1286
+ declare function RangeSegmentFromJSON(json: any): RangeSegment;
1287
+ declare function RangeSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RangeSegment;
1288
+ declare function RangeSegmentToJSON(json: any): RangeSegment;
1289
+ declare function RangeSegmentToJSONTyped(value?: RangeSegment | null, ignoreDiscriminator?: boolean): any;
1122
1290
  //#endregion
1123
- //#region src/models/Policy.d.ts
1291
+ //#region src/models/RegionSegment.d.ts
1124
1292
  /**
1293
+ * Sensitive Data Protection API
1294
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1295
+ *
1296
+ * The version of the OpenAPI document: 0.1.0
1297
+ *
1125
1298
  *
1299
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1300
+ * https://openapi-generator.tech
1301
+ * Do not edit the class manually.
1302
+ */
1303
+ /**
1304
+ * A box on an image, in its upright pixels, padded as painted: where a value
1305
+ * found in it is. A value over several boxes has a path for each.
1126
1306
  * @export
1127
- * @interface Policy
1307
+ * @interface RegionSegment
1128
1308
  */
1129
- interface Policy {
1309
+ interface RegionSegment {
1130
1310
  /**
1131
1311
  *
1132
1312
  * @type {string}
1133
- * @memberof Policy
1313
+ * @memberof RegionSegment
1134
1314
  */
1135
- id: string;
1315
+ type: RegionSegmentTypeEnum;
1136
1316
  /**
1137
1317
  *
1138
- * @type {string}
1139
- * @memberof Policy
1318
+ * @type {number}
1319
+ * @memberof RegionSegment
1140
1320
  */
1141
- name: string;
1321
+ x: number;
1142
1322
  /**
1143
1323
  *
1144
- * @type {string}
1145
- * @memberof Policy
1324
+ * @type {number}
1325
+ * @memberof RegionSegment
1146
1326
  */
1147
- versionId: string;
1327
+ y: number;
1148
1328
  /**
1149
1329
  *
1150
- * @type {PolicyDocument}
1151
- * @memberof Policy
1330
+ * @type {number}
1331
+ * @memberof RegionSegment
1152
1332
  */
1153
- document: PolicyDocument;
1333
+ w: number;
1154
1334
  /**
1155
1335
  *
1156
1336
  * @type {number}
1157
- * @memberof Policy
1337
+ * @memberof RegionSegment
1158
1338
  */
1159
- createdAt: number;
1339
+ h: number;
1340
+ }
1341
+ /**
1342
+ * @export
1343
+ */
1344
+ declare const RegionSegmentTypeEnum: {
1345
+ readonly region: "region";
1346
+ };
1347
+ type RegionSegmentTypeEnum = typeof RegionSegmentTypeEnum[keyof typeof RegionSegmentTypeEnum];
1348
+ /**
1349
+ * Check if a given object implements the RegionSegment interface.
1350
+ */
1351
+ declare function instanceOfRegionSegment(value: object): value is RegionSegment;
1352
+ declare function RegionSegmentFromJSON(json: any): RegionSegment;
1353
+ declare function RegionSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegionSegment;
1354
+ declare function RegionSegmentToJSON(json: any): RegionSegment;
1355
+ declare function RegionSegmentToJSONTyped(value?: RegionSegment | null, ignoreDiscriminator?: boolean): any;
1356
+ //#endregion
1357
+ //#region src/models/SegmentSegment.d.ts
1358
+ /**
1359
+ * Sensitive Data Protection API
1360
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1361
+ *
1362
+ * The version of the OpenAPI document: 0.1.0
1363
+ *
1364
+ *
1365
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1366
+ * https://openapi-generator.tech
1367
+ * Do not edit the class manually.
1368
+ */
1369
+ /**
1370
+ * An HL7 v2 segment (`PID`).
1371
+ * @export
1372
+ * @interface SegmentSegment
1373
+ */
1374
+ interface SegmentSegment {
1375
+ /**
1376
+ *
1377
+ * @type {string}
1378
+ * @memberof SegmentSegment
1379
+ */
1380
+ type: SegmentSegmentTypeEnum;
1160
1381
  /**
1161
1382
  *
1383
+ * @type {string}
1384
+ * @memberof SegmentSegment
1385
+ */
1386
+ name: string;
1387
+ /**
1388
+ * Among the segments with this name, from 0.
1162
1389
  * @type {number}
1163
- * @memberof Policy
1390
+ * @memberof SegmentSegment
1391
+ */
1392
+ index: number;
1393
+ }
1394
+ /**
1395
+ * @export
1396
+ */
1397
+ declare const SegmentSegmentTypeEnum: {
1398
+ readonly segment: "segment";
1399
+ };
1400
+ type SegmentSegmentTypeEnum = typeof SegmentSegmentTypeEnum[keyof typeof SegmentSegmentTypeEnum];
1401
+ /**
1402
+ * Check if a given object implements the SegmentSegment interface.
1403
+ */
1404
+ declare function instanceOfSegmentSegment(value: object): value is SegmentSegment;
1405
+ declare function SegmentSegmentFromJSON(json: any): SegmentSegment;
1406
+ declare function SegmentSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SegmentSegment;
1407
+ declare function SegmentSegmentToJSON(json: any): SegmentSegment;
1408
+ declare function SegmentSegmentToJSONTyped(value?: SegmentSegment | null, ignoreDiscriminator?: boolean): any;
1409
+ //#endregion
1410
+ //#region src/models/ShapeKind.d.ts
1411
+ /**
1412
+ * Sensitive Data Protection API
1413
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1414
+ *
1415
+ * The version of the OpenAPI document: 0.1.0
1416
+ *
1417
+ *
1418
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1419
+ * https://openapi-generator.tech
1420
+ * Do not edit the class manually.
1421
+ */
1422
+ /**
1423
+ * @type ShapeKind
1424
+ * What a shape's text is when it is not its own text.
1425
+ * @export
1426
+ */
1427
+ type ShapeKind = string;
1428
+ declare function ShapeKindFromJSON(json: any): ShapeKind;
1429
+ declare function ShapeKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShapeKind;
1430
+ declare function ShapeKindToJSON(json: any): any;
1431
+ declare function ShapeKindToJSONTyped(value?: ShapeKind | null, ignoreDiscriminator?: boolean): any;
1432
+ //#endregion
1433
+ //#region src/models/ShapeSegment.d.ts
1434
+ /**
1435
+ * A shape: a text box, picture, table, group; its `cNvPr` / `docPr` id and name.
1436
+ * No `kind` for its own text.
1437
+ * @export
1438
+ * @interface ShapeSegment
1439
+ */
1440
+ interface ShapeSegment {
1441
+ /**
1442
+ *
1443
+ * @type {string}
1444
+ * @memberof ShapeSegment
1445
+ */
1446
+ type: ShapeSegmentTypeEnum;
1447
+ /**
1448
+ *
1449
+ * @type {number}
1450
+ * @memberof ShapeSegment
1451
+ */
1452
+ id: number;
1453
+ /**
1454
+ *
1455
+ * @type {string}
1456
+ * @memberof ShapeSegment
1457
+ */
1458
+ name: string;
1459
+ /**
1460
+ *
1461
+ * @type {ShapeKind}
1462
+ * @memberof ShapeSegment
1463
+ */
1464
+ kind?: ShapeKind | null;
1465
+ }
1466
+ /**
1467
+ * @export
1468
+ */
1469
+ declare const ShapeSegmentTypeEnum: {
1470
+ readonly shape: "shape";
1471
+ };
1472
+ type ShapeSegmentTypeEnum = typeof ShapeSegmentTypeEnum[keyof typeof ShapeSegmentTypeEnum];
1473
+ /**
1474
+ * Check if a given object implements the ShapeSegment interface.
1475
+ */
1476
+ declare function instanceOfShapeSegment(value: object): value is ShapeSegment;
1477
+ declare function ShapeSegmentFromJSON(json: any): ShapeSegment;
1478
+ declare function ShapeSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShapeSegment;
1479
+ declare function ShapeSegmentToJSON(json: any): ShapeSegment;
1480
+ declare function ShapeSegmentToJSONTyped(value?: ShapeSegment | null, ignoreDiscriminator?: boolean): any;
1481
+ //#endregion
1482
+ //#region src/models/SheetSegment.d.ts
1483
+ /**
1484
+ * Sensitive Data Protection API
1485
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1486
+ *
1487
+ * The version of the OpenAPI document: 0.1.0
1488
+ *
1489
+ *
1490
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1491
+ * https://openapi-generator.tech
1492
+ * Do not edit the class manually.
1493
+ */
1494
+ /**
1495
+ * A worksheet: its name on the tab, and its part.
1496
+ * @export
1497
+ * @interface SheetSegment
1498
+ */
1499
+ interface SheetSegment {
1500
+ /**
1501
+ *
1502
+ * @type {string}
1503
+ * @memberof SheetSegment
1504
+ */
1505
+ type: SheetSegmentTypeEnum;
1506
+ /**
1507
+ *
1508
+ * @type {string}
1509
+ * @memberof SheetSegment
1510
+ */
1511
+ name: string;
1512
+ /**
1513
+ *
1514
+ * @type {string}
1515
+ * @memberof SheetSegment
1516
+ */
1517
+ part: string;
1518
+ }
1519
+ /**
1520
+ * @export
1521
+ */
1522
+ declare const SheetSegmentTypeEnum: {
1523
+ readonly sheet: "sheet";
1524
+ };
1525
+ type SheetSegmentTypeEnum = typeof SheetSegmentTypeEnum[keyof typeof SheetSegmentTypeEnum];
1526
+ /**
1527
+ * Check if a given object implements the SheetSegment interface.
1528
+ */
1529
+ declare function instanceOfSheetSegment(value: object): value is SheetSegment;
1530
+ declare function SheetSegmentFromJSON(json: any): SheetSegment;
1531
+ declare function SheetSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SheetSegment;
1532
+ declare function SheetSegmentToJSON(json: any): SheetSegment;
1533
+ declare function SheetSegmentToJSONTyped(value?: SheetSegment | null, ignoreDiscriminator?: boolean): any;
1534
+ //#endregion
1535
+ //#region src/models/SlideSegment.d.ts
1536
+ /**
1537
+ * A slide, numbered as PowerPoint shows it, and its part. `kind` until shapes
1538
+ * hold all of a slide's text.
1539
+ * @export
1540
+ * @interface SlideSegment
1541
+ */
1542
+ interface SlideSegment {
1543
+ /**
1544
+ *
1545
+ * @type {string}
1546
+ * @memberof SlideSegment
1547
+ */
1548
+ type: SlideSegmentTypeEnum;
1549
+ /**
1550
+ *
1551
+ * @type {number}
1552
+ * @memberof SlideSegment
1553
+ */
1554
+ number: number;
1555
+ /**
1556
+ *
1557
+ * @type {string}
1558
+ * @memberof SlideSegment
1559
+ */
1560
+ part: string;
1561
+ /**
1562
+ *
1563
+ * @type {Kind}
1564
+ * @memberof SlideSegment
1565
+ */
1566
+ kind?: Kind | null;
1567
+ }
1568
+ /**
1569
+ * @export
1570
+ */
1571
+ declare const SlideSegmentTypeEnum: {
1572
+ readonly slide: "slide";
1573
+ };
1574
+ type SlideSegmentTypeEnum = typeof SlideSegmentTypeEnum[keyof typeof SlideSegmentTypeEnum];
1575
+ /**
1576
+ * Check if a given object implements the SlideSegment interface.
1577
+ */
1578
+ declare function instanceOfSlideSegment(value: object): value is SlideSegment;
1579
+ declare function SlideSegmentFromJSON(json: any): SlideSegment;
1580
+ declare function SlideSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlideSegment;
1581
+ declare function SlideSegmentToJSON(json: any): SlideSegment;
1582
+ declare function SlideSegmentToJSONTyped(value?: SlideSegment | null, ignoreDiscriminator?: boolean): any;
1583
+ //#endregion
1584
+ //#region src/models/SpeakerNotesSegment.d.ts
1585
+ /**
1586
+ * A slide's speaker notes (`speaker_notes`): the slide's number, and the notes' part. `kind` until
1587
+ * shapes hold all of their text.
1588
+ * @export
1589
+ * @interface SpeakerNotesSegment
1590
+ */
1591
+ interface SpeakerNotesSegment {
1592
+ /**
1593
+ *
1594
+ * @type {string}
1595
+ * @memberof SpeakerNotesSegment
1596
+ */
1597
+ type: SpeakerNotesSegmentTypeEnum;
1598
+ /**
1599
+ *
1600
+ * @type {number}
1601
+ * @memberof SpeakerNotesSegment
1602
+ */
1603
+ slide: number;
1604
+ /**
1605
+ *
1606
+ * @type {string}
1607
+ * @memberof SpeakerNotesSegment
1608
+ */
1609
+ part: string;
1610
+ /**
1611
+ *
1612
+ * @type {Kind}
1613
+ * @memberof SpeakerNotesSegment
1614
+ */
1615
+ kind?: Kind | null;
1616
+ }
1617
+ /**
1618
+ * @export
1619
+ */
1620
+ declare const SpeakerNotesSegmentTypeEnum: {
1621
+ readonly speaker_notes: "speaker_notes";
1622
+ };
1623
+ type SpeakerNotesSegmentTypeEnum = typeof SpeakerNotesSegmentTypeEnum[keyof typeof SpeakerNotesSegmentTypeEnum];
1624
+ /**
1625
+ * Check if a given object implements the SpeakerNotesSegment interface.
1626
+ */
1627
+ declare function instanceOfSpeakerNotesSegment(value: object): value is SpeakerNotesSegment;
1628
+ declare function SpeakerNotesSegmentFromJSON(json: any): SpeakerNotesSegment;
1629
+ declare function SpeakerNotesSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpeakerNotesSegment;
1630
+ declare function SpeakerNotesSegmentToJSON(json: any): SpeakerNotesSegment;
1631
+ declare function SpeakerNotesSegmentToJSONTyped(value?: SpeakerNotesSegment | null, ignoreDiscriminator?: boolean): any;
1632
+ //#endregion
1633
+ //#region src/models/TableSegment.d.ts
1634
+ /**
1635
+ * Sensitive Data Protection API
1636
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1637
+ *
1638
+ * The version of the OpenAPI document: 0.1.0
1639
+ *
1640
+ *
1641
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1642
+ * https://openapi-generator.tech
1643
+ * Do not edit the class manually.
1644
+ */
1645
+ /**
1646
+ * A table in a Word document or on a slide, numbered from 1 in what holds it.
1647
+ * @export
1648
+ * @interface TableSegment
1649
+ */
1650
+ interface TableSegment {
1651
+ /**
1652
+ *
1653
+ * @type {string}
1654
+ * @memberof TableSegment
1655
+ */
1656
+ type: TableSegmentTypeEnum;
1657
+ /**
1658
+ *
1659
+ * @type {number}
1660
+ * @memberof TableSegment
1661
+ */
1662
+ number: number;
1663
+ }
1664
+ /**
1665
+ * @export
1666
+ */
1667
+ declare const TableSegmentTypeEnum: {
1668
+ readonly table: "table";
1669
+ };
1670
+ type TableSegmentTypeEnum = typeof TableSegmentTypeEnum[keyof typeof TableSegmentTypeEnum];
1671
+ /**
1672
+ * Check if a given object implements the TableSegment interface.
1673
+ */
1674
+ declare function instanceOfTableSegment(value: object): value is TableSegment;
1675
+ declare function TableSegmentFromJSON(json: any): TableSegment;
1676
+ declare function TableSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TableSegment;
1677
+ declare function TableSegmentToJSON(json: any): TableSegment;
1678
+ declare function TableSegmentToJSONTyped(value?: TableSegment | null, ignoreDiscriminator?: boolean): any;
1679
+ //#endregion
1680
+ //#region src/models/TagSegment.d.ts
1681
+ /**
1682
+ * Sensitive Data Protection API
1683
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1684
+ *
1685
+ * The version of the OpenAPI document: 0.1.0
1686
+ *
1687
+ *
1688
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1689
+ * https://openapi-generator.tech
1690
+ * Do not edit the class manually.
1691
+ */
1692
+ /**
1693
+ * A DICOM attribute: its tag, as four hex digits each, and its keyword
1694
+ * (`PatientName`) when the standard names it; none for a private one.
1695
+ * @export
1696
+ * @interface TagSegment
1697
+ */
1698
+ interface TagSegment {
1699
+ /**
1700
+ *
1701
+ * @type {string}
1702
+ * @memberof TagSegment
1703
+ */
1704
+ type: TagSegmentTypeEnum;
1705
+ /**
1706
+ *
1707
+ * @type {string}
1708
+ * @memberof TagSegment
1709
+ */
1710
+ group: string;
1711
+ /**
1712
+ *
1713
+ * @type {string}
1714
+ * @memberof TagSegment
1715
+ */
1716
+ element: string;
1717
+ /**
1718
+ *
1719
+ * @type {string}
1720
+ * @memberof TagSegment
1721
+ */
1722
+ keyword?: string | null;
1723
+ }
1724
+ /**
1725
+ * @export
1726
+ */
1727
+ declare const TagSegmentTypeEnum: {
1728
+ readonly tag: "tag";
1729
+ };
1730
+ type TagSegmentTypeEnum = typeof TagSegmentTypeEnum[keyof typeof TagSegmentTypeEnum];
1731
+ /**
1732
+ * Check if a given object implements the TagSegment interface.
1733
+ */
1734
+ declare function instanceOfTagSegment(value: object): value is TagSegment;
1735
+ declare function TagSegmentFromJSON(json: any): TagSegment;
1736
+ declare function TagSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagSegment;
1737
+ declare function TagSegmentToJSON(json: any): TagSegment;
1738
+ declare function TagSegmentToJSONTyped(value?: TagSegment | null, ignoreDiscriminator?: boolean): any;
1739
+ //#endregion
1740
+ //#region src/models/TextRange.d.ts
1741
+ /**
1742
+ * Sensitive Data Protection API
1743
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1744
+ *
1745
+ * The version of the OpenAPI document: 0.1.0
1746
+ *
1747
+ *
1748
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1749
+ * https://openapi-generator.tech
1750
+ * Do not edit the class manually.
1751
+ */
1752
+ /**
1753
+ * A character range within a text, carrying the substring it covers.
1754
+ * @export
1755
+ * @interface TextRange
1756
+ */
1757
+ interface TextRange {
1758
+ /**
1759
+ * Start offset (inclusive), in Unicode code points (in JavaScript, index `[...text]`: UTF-16 counts an emoji twice).
1760
+ * @type {number}
1761
+ * @memberof TextRange
1762
+ */
1763
+ start: number;
1764
+ /**
1765
+ * End offset (exclusive), in Unicode code points.
1766
+ * @type {number}
1767
+ * @memberof TextRange
1768
+ */
1769
+ end: number;
1770
+ /**
1771
+ * The substring at [start, end).
1772
+ * @type {string}
1773
+ * @memberof TextRange
1774
+ */
1775
+ value: string;
1776
+ }
1777
+ /**
1778
+ * Check if a given object implements the TextRange interface.
1779
+ */
1780
+ declare function instanceOfTextRange(value: object): value is TextRange;
1781
+ declare function TextRangeFromJSON(json: any): TextRange;
1782
+ declare function TextRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextRange;
1783
+ declare function TextRangeToJSON(json: any): TextRange;
1784
+ declare function TextRangeToJSONTyped(value?: TextRange | null, ignoreDiscriminator?: boolean): any;
1785
+ //#endregion
1786
+ //#region src/models/TextSegment.d.ts
1787
+ /**
1788
+ * The last segment of a found value's path: its piece in the object the path
1789
+ * leads to, in the file as it was and as it is now. Offsets from the start of
1790
+ * the cell (xlsx, CSV, TSV), the paragraph (docx, pptx), the line (other text
1791
+ * files) or the JSON value, as `/anonymize` counts them.
1792
+ * @export
1793
+ * @interface TextSegment
1794
+ */
1795
+ interface TextSegment {
1796
+ /**
1797
+ *
1798
+ * @type {string}
1799
+ * @memberof TextSegment
1800
+ */
1801
+ type: TextSegmentTypeEnum;
1802
+ /**
1803
+ *
1804
+ * @type {TextRange}
1805
+ * @memberof TextSegment
1806
+ */
1807
+ input: TextRange;
1808
+ /**
1809
+ *
1810
+ * @type {TextRange}
1811
+ * @memberof TextSegment
1812
+ */
1813
+ output: TextRange;
1814
+ }
1815
+ /**
1816
+ * @export
1817
+ */
1818
+ declare const TextSegmentTypeEnum: {
1819
+ readonly text: "text";
1820
+ };
1821
+ type TextSegmentTypeEnum = typeof TextSegmentTypeEnum[keyof typeof TextSegmentTypeEnum];
1822
+ /**
1823
+ * Check if a given object implements the TextSegment interface.
1824
+ */
1825
+ declare function instanceOfTextSegment(value: object): value is TextSegment;
1826
+ declare function TextSegmentFromJSON(json: any): TextSegment;
1827
+ declare function TextSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextSegment;
1828
+ declare function TextSegmentToJSON(json: any): TextSegment;
1829
+ declare function TextSegmentToJSONTyped(value?: TextSegment | null, ignoreDiscriminator?: boolean): any;
1830
+ //#endregion
1831
+ //#region src/models/PathSegment.d.ts
1832
+ /**
1833
+ * @type PathSegment
1834
+ * One step of where a result is, outermost first: a container (a worksheet, a
1835
+ * slide, another file in an Office zip), the shapes it is in, where the text
1836
+ * is, then `text`: the characters found there, before and after. `kind`, on
1837
+ * the segment before `text` only, says what the text is there.
1838
+ *
1839
+ * Paths grow: later versions add segment types inside these (paragraphs,
1840
+ * tables, comments, properties), so the same text may get a longer path.
1841
+ * Read `text` and `kind` from the end and find segments by `type`; do not
1842
+ * compare whole paths.
1843
+ * @export
1844
+ */
1845
+ type PathSegment = {
1846
+ type: 'attribute';
1847
+ } & AttributeSegment | {
1848
+ type: 'cell';
1849
+ } & CellSegment | {
1850
+ type: 'cell_note';
1851
+ } & CellNoteSegment | {
1852
+ type: 'comment';
1853
+ } & CommentSegment | {
1854
+ type: 'component';
1855
+ } & ComponentSegment | {
1856
+ type: 'element';
1857
+ } & ElementSegment | {
1858
+ type: 'endnote';
1859
+ } & EndnoteSegment | {
1860
+ type: 'field';
1861
+ } & FieldSegment | {
1862
+ type: 'footnote';
1863
+ } & FootnoteSegment | {
1864
+ type: 'frame';
1865
+ } & FrameSegment | {
1866
+ type: 'header_footer';
1867
+ } & HeaderFooterSegment | {
1868
+ type: 'index';
1869
+ } & IndexSegment | {
1870
+ type: 'item';
1871
+ } & ItemSegment | {
1872
+ type: 'key';
1873
+ } & KeySegment | {
1874
+ type: 'line';
1875
+ } & LineSegment | {
1876
+ type: 'paragraph';
1877
+ } & ParagraphSegment | {
1878
+ type: 'part';
1879
+ } & PartSegment | {
1880
+ type: 'property';
1881
+ } & PropertySegment | {
1882
+ type: 'range';
1883
+ } & RangeSegment | {
1884
+ type: 'region';
1885
+ } & RegionSegment | {
1886
+ type: 'segment';
1887
+ } & SegmentSegment | {
1888
+ type: 'shape';
1889
+ } & ShapeSegment | {
1890
+ type: 'sheet';
1891
+ } & SheetSegment | {
1892
+ type: 'slide';
1893
+ } & SlideSegment | {
1894
+ type: 'speaker_notes';
1895
+ } & SpeakerNotesSegment | {
1896
+ type: 'table';
1897
+ } & TableSegment | {
1898
+ type: 'tag';
1899
+ } & TagSegment | {
1900
+ type: 'text';
1901
+ } & TextSegment;
1902
+ declare function PathSegmentFromJSON(json: any): PathSegment;
1903
+ declare function PathSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathSegment;
1904
+ declare function PathSegmentToJSON(json: any): any;
1905
+ declare function PathSegmentToJSONTyped(value?: PathSegment | null, ignoreDiscriminator?: boolean): any;
1906
+ //#endregion
1907
+ //#region src/models/FileAttributeResult.d.ts
1908
+ /**
1909
+ * A DICOM attribute the confidentiality profile (PS3.15 Annex E) acted on, or
1910
+ * content kept unread.
1911
+ * @export
1912
+ * @interface FileAttributeResult
1913
+ */
1914
+ interface FileAttributeResult {
1915
+ /**
1916
+ *
1917
+ * @type {string}
1918
+ * @memberof FileAttributeResult
1919
+ */
1920
+ type: FileAttributeResultTypeEnum;
1921
+ /**
1922
+ * As a model result's `id`; only in the `done` list.
1923
+ * @type {number}
1924
+ * @memberof FileAttributeResult
1925
+ */
1926
+ id: number;
1927
+ /**
1928
+ * What was done: `remove`, `empty` (kept without a value), `dummy` (a
1929
+ * placeholder value), `uid` (a new UID, the same for every copy of the
1930
+ * old one), `clean` (a removed value taken out of kept text), or
1931
+ * `unscanned`: kept as it is, not read (pixel data without an image
1932
+ * model, an encapsulated document).
1933
+ * @type {string}
1934
+ * @memberof FileAttributeResult
1935
+ */
1936
+ rule: string;
1937
+ /**
1938
+ * The value as it was, its values joined by `\`; empty for binary data and sequences.
1939
+ * @type {string}
1940
+ * @memberof FileAttributeResult
1941
+ */
1942
+ input: string;
1943
+ /**
1944
+ * What it became; empty when removed.
1945
+ * @type {string}
1946
+ * @memberof FileAttributeResult
1947
+ */
1948
+ output: string;
1949
+ /**
1950
+ *
1951
+ * @type {string}
1952
+ * @memberof FileAttributeResult
1953
+ */
1954
+ content_type?: string | null;
1955
+ /**
1956
+ * Where: one path of `tag` and `item` segments, outermost first, with no `text`.
1957
+ * @type {Array<Array<PathSegment>>}
1958
+ * @memberof FileAttributeResult
1959
+ */
1960
+ path: Array<Array<PathSegment>>;
1961
+ }
1962
+ /**
1963
+ * @export
1964
+ */
1965
+ declare const FileAttributeResultTypeEnum: {
1966
+ readonly attribute: "attribute";
1967
+ };
1968
+ type FileAttributeResultTypeEnum = typeof FileAttributeResultTypeEnum[keyof typeof FileAttributeResultTypeEnum];
1969
+ /**
1970
+ * Check if a given object implements the FileAttributeResult interface.
1971
+ */
1972
+ declare function instanceOfFileAttributeResult(value: object): value is FileAttributeResult;
1973
+ declare function FileAttributeResultFromJSON(json: any): FileAttributeResult;
1974
+ declare function FileAttributeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileAttributeResult;
1975
+ declare function FileAttributeResultToJSON(json: any): FileAttributeResult;
1976
+ declare function FileAttributeResultToJSONTyped(value?: FileAttributeResult | null, ignoreDiscriminator?: boolean): any;
1977
+ //#endregion
1978
+ //#region src/models/FileEmbeddedResult.d.ts
1979
+ /**
1980
+ * Embedded content taken out of the file: embedded files, OLE objects,
1981
+ * media, a FHIR photo's data; and the thumbnail, which is always removed.
1982
+ * @export
1983
+ * @interface FileEmbeddedResult
1984
+ */
1985
+ interface FileEmbeddedResult {
1986
+ /**
1987
+ *
1988
+ * @type {string}
1989
+ * @memberof FileEmbeddedResult
1990
+ */
1991
+ type: FileEmbeddedResultTypeEnum;
1992
+ /**
1993
+ * As a model result's `id`; only in the `done` list.
1994
+ * @type {number}
1995
+ * @memberof FileEmbeddedResult
1996
+ */
1997
+ id: number;
1998
+ /**
1999
+ * `remove`.
2000
+ * @type {string}
2001
+ * @memberof FileEmbeddedResult
2002
+ */
2003
+ rule: string;
2004
+ /**
2005
+ * As the file gives it; `application/octet-stream` for a photo with no `contentType`.
2006
+ * @type {string}
2007
+ * @memberof FileEmbeddedResult
2008
+ */
2009
+ content_type: string;
2010
+ /**
2011
+ * The removed file inside the Office zip, or a FHIR photo's `data`
2012
+ * (keys and indexes): one path, with no `text`.
2013
+ * @type {Array<Array<PathSegment>>}
2014
+ * @memberof FileEmbeddedResult
2015
+ */
2016
+ path: Array<Array<PathSegment>>;
2017
+ }
2018
+ /**
2019
+ * @export
2020
+ */
2021
+ declare const FileEmbeddedResultTypeEnum: {
2022
+ readonly embedded: "embedded";
2023
+ };
2024
+ type FileEmbeddedResultTypeEnum = typeof FileEmbeddedResultTypeEnum[keyof typeof FileEmbeddedResultTypeEnum];
2025
+ /**
2026
+ * Check if a given object implements the FileEmbeddedResult interface.
2027
+ */
2028
+ declare function instanceOfFileEmbeddedResult(value: object): value is FileEmbeddedResult;
2029
+ declare function FileEmbeddedResultFromJSON(json: any): FileEmbeddedResult;
2030
+ declare function FileEmbeddedResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileEmbeddedResult;
2031
+ declare function FileEmbeddedResultToJSON(json: any): FileEmbeddedResult;
2032
+ declare function FileEmbeddedResultToJSONTyped(value?: FileEmbeddedResult | null, ignoreDiscriminator?: boolean): any;
2033
+ //#endregion
2034
+ //#region src/models/FileModelResult.d.ts
2035
+ /**
2036
+ * The model found the value. Another copy of a value already replaced is
2037
+ * reported as the first one was.
2038
+ * @export
2039
+ * @interface FileModelResult
2040
+ */
2041
+ interface FileModelResult {
2042
+ /**
2043
+ *
2044
+ * @type {string}
2045
+ * @memberof FileModelResult
2046
+ */
2047
+ type: FileModelResultTypeEnum;
2048
+ /**
2049
+ * Unique in a run, from 0, not always consecutive: a `batch` event's
2050
+ * result and the `done` list's with the same `id` are the same find,
2051
+ * `done`'s final.
2052
+ * @type {number}
2053
+ * @memberof FileModelResult
2054
+ */
2055
+ id: number;
2056
+ /**
2057
+ * The rule applied, e.g. `replace`, `mask`; `detect` changes nothing.
2058
+ * @type {string}
2059
+ * @memberof FileModelResult
2060
+ */
2061
+ rule: string;
2062
+ /**
2063
+ * The model entity type, e.g. `person`.
2064
+ * @type {string}
2065
+ * @memberof FileModelResult
2066
+ */
2067
+ value: string;
2068
+ /**
2069
+ * The model's confidence, 0.0–1.0.
2070
+ * @type {number}
2071
+ * @memberof FileModelResult
2072
+ */
2073
+ score: number;
2074
+ /**
2075
+ * The value as it was. Split across objects: as the model read it, the
2076
+ * pieces joined by what stood between them (a tab between cells).
2077
+ * @type {string}
2078
+ * @memberof FileModelResult
2079
+ */
2080
+ input: string;
2081
+ /**
2082
+ * What it became, in each object it is in.
2083
+ * @type {string}
2084
+ * @memberof FileModelResult
2085
+ */
2086
+ output: string;
2087
+ /**
2088
+ * Where the value is, each path ending in its `text`: one path, or one per
2089
+ * object for a value split across objects side by side (two table cells,
2090
+ * a text box and its paragraph, two shapes level on a slide), in reading order.
2091
+ * @type {Array<Array<PathSegment>>}
2092
+ * @memberof FileModelResult
2093
+ */
2094
+ path: Array<Array<PathSegment>>;
2095
+ }
2096
+ /**
2097
+ * @export
2098
+ */
2099
+ declare const FileModelResultTypeEnum: {
2100
+ readonly model: "model";
2101
+ };
2102
+ type FileModelResultTypeEnum = typeof FileModelResultTypeEnum[keyof typeof FileModelResultTypeEnum];
2103
+ /**
2104
+ * Check if a given object implements the FileModelResult interface.
2105
+ */
2106
+ declare function instanceOfFileModelResult(value: object): value is FileModelResult;
2107
+ declare function FileModelResultFromJSON(json: any): FileModelResult;
2108
+ declare function FileModelResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileModelResult;
2109
+ declare function FileModelResultToJSON(json: any): FileModelResult;
2110
+ declare function FileModelResultToJSONTyped(value?: FileModelResult | null, ignoreDiscriminator?: boolean): any;
2111
+ //#endregion
2112
+ //#region src/models/FileRegexResult.d.ts
2113
+ /**
2114
+ * A regex rule matched.
2115
+ * @export
2116
+ * @interface FileRegexResult
2117
+ */
2118
+ interface FileRegexResult {
2119
+ /**
2120
+ *
2121
+ * @type {string}
2122
+ * @memberof FileRegexResult
2123
+ */
2124
+ type: FileRegexResultTypeEnum;
2125
+ /**
2126
+ * As a model result's `id`.
2127
+ * @type {number}
2128
+ * @memberof FileRegexResult
2129
+ */
2130
+ id: number;
2131
+ /**
2132
+ *
2133
+ * @type {string}
2134
+ * @memberof FileRegexResult
2135
+ */
2136
+ rule: string;
2137
+ /**
2138
+ * The pattern that matched.
2139
+ * @type {string}
2140
+ * @memberof FileRegexResult
2141
+ */
2142
+ value: string;
2143
+ /**
2144
+ * The value as it was. Split across objects: as the model read it, the
2145
+ * pieces joined by what stood between them (a tab between cells).
2146
+ * @type {string}
2147
+ * @memberof FileRegexResult
2148
+ */
2149
+ input: string;
2150
+ /**
2151
+ * What it became, in each object it is in.
2152
+ * @type {string}
2153
+ * @memberof FileRegexResult
2154
+ */
2155
+ output: string;
2156
+ /**
2157
+ * Where the value is, each path ending in its `text`: one path, or one per
2158
+ * object for a value split across objects side by side (two table cells,
2159
+ * a text box and its paragraph, two shapes level on a slide), in reading order.
2160
+ * @type {Array<Array<PathSegment>>}
2161
+ * @memberof FileRegexResult
2162
+ */
2163
+ path: Array<Array<PathSegment>>;
2164
+ }
2165
+ /**
2166
+ * @export
2167
+ */
2168
+ declare const FileRegexResultTypeEnum: {
2169
+ readonly regex: "regex";
2170
+ };
2171
+ type FileRegexResultTypeEnum = typeof FileRegexResultTypeEnum[keyof typeof FileRegexResultTypeEnum];
2172
+ /**
2173
+ * Check if a given object implements the FileRegexResult interface.
2174
+ */
2175
+ declare function instanceOfFileRegexResult(value: object): value is FileRegexResult;
2176
+ declare function FileRegexResultFromJSON(json: any): FileRegexResult;
2177
+ declare function FileRegexResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileRegexResult;
2178
+ declare function FileRegexResultToJSON(json: any): FileRegexResult;
2179
+ declare function FileRegexResultToJSONTyped(value?: FileRegexResult | null, ignoreDiscriminator?: boolean): any;
2180
+ //#endregion
2181
+ //#region src/models/FileResult.d.ts
2182
+ /**
2183
+ * @type FileResult
2184
+ * One change made to the file, by what found it.
2185
+ * @export
2186
+ */
2187
+ type FileResult = {
2188
+ type: 'attribute';
2189
+ } & FileAttributeResult | {
2190
+ type: 'embedded';
2191
+ } & FileEmbeddedResult | {
2192
+ type: 'model';
2193
+ } & FileModelResult | {
2194
+ type: 'regex';
2195
+ } & FileRegexResult;
2196
+ declare function FileResultFromJSON(json: any): FileResult;
2197
+ declare function FileResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileResult;
2198
+ declare function FileResultToJSON(json: any): any;
2199
+ declare function FileResultToJSONTyped(value?: FileResult | null, ignoreDiscriminator?: boolean): any;
2200
+ //#endregion
2201
+ //#region src/models/AnonymizeFileResponseBody.d.ts
2202
+ /**
2203
+ * Response from the document endpoint: the anonymized file and what changed in it.
2204
+ * @export
2205
+ * @interface AnonymizeFileResponseBody
2206
+ */
2207
+ interface AnonymizeFileResponseBody {
2208
+ /**
2209
+ * Token counts for this request: the document's text.
2210
+ * @type {Usage}
2211
+ * @memberof AnonymizeFileResponseBody
2212
+ */
2213
+ usage: Usage;
2214
+ /**
2215
+ * The models that ran, ids from `GET /models`: the text model, then the image reader when images were read.
2216
+ * @type {Array<string>}
2217
+ * @memberof AnonymizeFileResponseBody
2218
+ */
2219
+ models: Array<string>;
2220
+ /**
2221
+ * `docx`, `xlsx`, `pptx`, `csv`, `tsv`, `txt`, `md`, `log`, `json`, `jsonl`, `png`, `jpg`, `webp`, `bmp`, `tiff` or `dcm`.
2222
+ * @type {string}
2223
+ * @memberof AnonymizeFileResponseBody
2224
+ */
2225
+ format: string;
2226
+ /**
2227
+ * Each change made to the file: values the model or a regex found (replaced, or
2228
+ * left as they were by a detect rule), then embedded content removed.
2229
+ * @type {Array<FileResult>}
2230
+ * @memberof AnonymizeFileResponseBody
2231
+ */
2232
+ results: Array<FileResult>;
2233
+ /**
2234
+ * The anonymized file, base64-encoded, in the format it came in.
2235
+ * @type {string}
2236
+ * @memberof AnonymizeFileResponseBody
2237
+ */
2238
+ file: string;
2239
+ }
2240
+ /**
2241
+ * Check if a given object implements the AnonymizeFileResponseBody interface.
2242
+ */
2243
+ declare function instanceOfAnonymizeFileResponseBody(value: object): value is AnonymizeFileResponseBody;
2244
+ declare function AnonymizeFileResponseBodyFromJSON(json: any): AnonymizeFileResponseBody;
2245
+ declare function AnonymizeFileResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeFileResponseBody;
2246
+ declare function AnonymizeFileResponseBodyToJSON(json: any): AnonymizeFileResponseBody;
2247
+ declare function AnonymizeFileResponseBodyToJSONTyped(value?: AnonymizeFileResponseBody | null, ignoreDiscriminator?: boolean): any;
2248
+ //#endregion
2249
+ //#region src/models/ModelEntity.d.ts
2250
+ /**
2251
+ * Sensitive Data Protection API
2252
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
2253
+ *
2254
+ * The version of the OpenAPI document: 0.1.0
2255
+ *
2256
+ *
2257
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2258
+ * https://openapi-generator.tech
2259
+ * Do not edit the class manually.
2260
+ */
2261
+ /**
2262
+ * An AI-model entity type to target, e.g. 'person', 'email', 'phone_number'.
2263
+ * @export
2264
+ * @interface ModelEntity
2265
+ */
2266
+ interface ModelEntity {
2267
+ /**
2268
+ *
2269
+ * @type {string}
2270
+ * @memberof ModelEntity
2271
+ */
2272
+ type: ModelEntityTypeEnum;
2273
+ /**
2274
+ * The model entity type name, e.g. 'person'.
2275
+ * @type {string}
2276
+ * @memberof ModelEntity
2277
+ */
2278
+ value: string;
2279
+ }
2280
+ /**
2281
+ * @export
2282
+ */
2283
+ declare const ModelEntityTypeEnum: {
2284
+ readonly model: "model";
2285
+ };
2286
+ type ModelEntityTypeEnum = typeof ModelEntityTypeEnum[keyof typeof ModelEntityTypeEnum];
2287
+ /**
2288
+ * Check if a given object implements the ModelEntity interface.
2289
+ */
2290
+ declare function instanceOfModelEntity(value: object): value is ModelEntity;
2291
+ declare function ModelEntityFromJSON(json: any): ModelEntity;
2292
+ declare function ModelEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelEntity;
2293
+ declare function ModelEntityToJSON(json: any): ModelEntity;
2294
+ declare function ModelEntityToJSONTyped(value?: ModelEntity | null, ignoreDiscriminator?: boolean): any;
2295
+ //#endregion
2296
+ //#region src/models/RegexEntity.d.ts
2297
+ /**
2298
+ * Sensitive Data Protection API
2299
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
2300
+ *
2301
+ * The version of the OpenAPI document: 0.1.0
2302
+ *
2303
+ *
2304
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2305
+ * https://openapi-generator.tech
2306
+ * Do not edit the class manually.
2307
+ */
2308
+ /**
2309
+ * A regex pattern to target, e.g. a custom ID or date format.
2310
+ * @export
2311
+ * @interface RegexEntity
2312
+ */
2313
+ interface RegexEntity {
2314
+ /**
2315
+ *
2316
+ * @type {string}
2317
+ * @memberof RegexEntity
2318
+ */
2319
+ type: RegexEntityTypeEnum;
2320
+ /**
2321
+ * The regular expression to match.
2322
+ * @type {string}
2323
+ * @memberof RegexEntity
2324
+ */
2325
+ value: string;
2326
+ }
2327
+ /**
2328
+ * @export
2329
+ */
2330
+ declare const RegexEntityTypeEnum: {
2331
+ readonly regex: "regex";
2332
+ };
2333
+ type RegexEntityTypeEnum = typeof RegexEntityTypeEnum[keyof typeof RegexEntityTypeEnum];
2334
+ /**
2335
+ * Check if a given object implements the RegexEntity interface.
2336
+ */
2337
+ declare function instanceOfRegexEntity(value: object): value is RegexEntity;
2338
+ declare function RegexEntityFromJSON(json: any): RegexEntity;
2339
+ declare function RegexEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexEntity;
2340
+ declare function RegexEntityToJSON(json: any): RegexEntity;
2341
+ declare function RegexEntityToJSONTyped(value?: RegexEntity | null, ignoreDiscriminator?: boolean): any;
2342
+ //#endregion
2343
+ //#region src/models/EntityBody.d.ts
2344
+ /**
2345
+ * @type EntityBody
2346
+ * An entity to target, chosen by its `type`.
2347
+ * @export
2348
+ */
2349
+ type EntityBody = {
2350
+ type: 'model';
2351
+ } & ModelEntity | {
2352
+ type: 'regex';
2353
+ } & RegexEntity;
2354
+ declare function EntityBodyFromJSON(json: any): EntityBody;
2355
+ declare function EntityBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityBody;
2356
+ declare function EntityBodyToJSON(json: any): any;
2357
+ declare function EntityBodyToJSONTyped(value?: EntityBody | null, ignoreDiscriminator?: boolean): any;
2358
+ //#endregion
2359
+ //#region src/models/DetectRule.d.ts
2360
+ /**
2361
+ * Report each matched value without changing it.
2362
+ *
2363
+ * The match is recorded in the results like any other rule, but the text is
2364
+ * returned untouched — this is how a policy says "flag this, don't rewrite
2365
+ * it", which is what the browser extension needs when it must not edit the
2366
+ * user's prompt.
2367
+ *
2368
+ * Because overlapping spans are resolved first-match-wins, placing a detect
2369
+ * rule before a transform also shields those spans from being rewritten.
2370
+ * @export
2371
+ * @interface DetectRule
2372
+ */
2373
+ interface DetectRule {
2374
+ /**
2375
+ *
2376
+ * @type {string}
2377
+ * @memberof DetectRule
2378
+ */
2379
+ type: DetectRuleTypeEnum;
2380
+ /**
2381
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2382
+ * @type {Array<EntityBody>}
2383
+ * @memberof DetectRule
2384
+ */
2385
+ entities: Array<EntityBody>;
2386
+ /**
2387
+ *
2388
+ * @type {Action}
2389
+ * @memberof DetectRule
2390
+ */
2391
+ action?: Action;
2392
+ }
2393
+ /**
2394
+ * @export
2395
+ */
2396
+ declare const DetectRuleTypeEnum: {
2397
+ readonly detect: "detect";
2398
+ };
2399
+ type DetectRuleTypeEnum = typeof DetectRuleTypeEnum[keyof typeof DetectRuleTypeEnum];
2400
+ /**
2401
+ * Check if a given object implements the DetectRule interface.
2402
+ */
2403
+ declare function instanceOfDetectRule(value: object): value is DetectRule;
2404
+ declare function DetectRuleFromJSON(json: any): DetectRule;
2405
+ declare function DetectRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetectRule;
2406
+ declare function DetectRuleToJSON(json: any): DetectRule;
2407
+ declare function DetectRuleToJSONTyped(value?: DetectRule | null, ignoreDiscriminator?: boolean): any;
2408
+ //#endregion
2409
+ //#region src/models/EncryptRule.d.ts
2410
+ /**
2411
+ * Replace each matched value with a Fernet-encrypted token.
2412
+ *
2413
+ * If no key is supplied, a new Fernet key is generated per rule instance.
2414
+ * @export
2415
+ * @interface EncryptRule
2416
+ */
2417
+ interface EncryptRule {
2418
+ /**
2419
+ *
2420
+ * @type {string}
2421
+ * @memberof EncryptRule
2422
+ */
2423
+ type: EncryptRuleTypeEnum;
2424
+ /**
2425
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2426
+ * @type {Array<EntityBody>}
2427
+ * @memberof EncryptRule
2428
+ */
2429
+ entities: Array<EntityBody>;
2430
+ /**
2431
+ *
2432
+ * @type {Action}
2433
+ * @memberof EncryptRule
2434
+ */
2435
+ action?: Action;
2436
+ /**
2437
+ * Base64 Fernet key. If empty, a key is generated automatically.
2438
+ * @type {string}
2439
+ * @memberof EncryptRule
2440
+ */
2441
+ key?: string;
2442
+ }
2443
+ /**
2444
+ * @export
2445
+ */
2446
+ declare const EncryptRuleTypeEnum: {
2447
+ readonly encrypt: "encrypt";
2448
+ };
2449
+ type EncryptRuleTypeEnum = typeof EncryptRuleTypeEnum[keyof typeof EncryptRuleTypeEnum];
2450
+ /**
2451
+ * Check if a given object implements the EncryptRule interface.
2452
+ */
2453
+ declare function instanceOfEncryptRule(value: object): value is EncryptRule;
2454
+ declare function EncryptRuleFromJSON(json: any): EncryptRule;
2455
+ declare function EncryptRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptRule;
2456
+ declare function EncryptRuleToJSON(json: any): EncryptRule;
2457
+ declare function EncryptRuleToJSONTyped(value?: EncryptRule | null, ignoreDiscriminator?: boolean): any;
2458
+ //#endregion
2459
+ //#region src/models/HMACRule.d.ts
2460
+ /**
2461
+ * Replace each matched value with its HMAC-SHA256 under `key`, in hex.
2462
+ *
2463
+ * The same value and key always give the same digest, so records can still be
2464
+ * joined; without the key, values can't be recovered by hashing guesses (a
2465
+ * plain SHA-256 of a phone number can).
2466
+ * @export
2467
+ * @interface HMACRule
2468
+ */
2469
+ interface HMACRule {
2470
+ /**
2471
+ *
2472
+ * @type {string}
2473
+ * @memberof HMACRule
2474
+ */
2475
+ type: HMACRuleTypeEnum;
2476
+ /**
2477
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2478
+ * @type {Array<EntityBody>}
2479
+ * @memberof HMACRule
2480
+ */
2481
+ entities: Array<EntityBody>;
2482
+ /**
2483
+ *
2484
+ * @type {Action}
2485
+ * @memberof HMACRule
2486
+ */
2487
+ action?: Action;
2488
+ /**
2489
+ * The secret key, at least 32 characters. Keep it: the same key gives the same digests.
2490
+ * @type {string}
2491
+ * @memberof HMACRule
2492
+ */
2493
+ key: string;
2494
+ /**
2495
+ * How many hex characters of the digest to keep, from the start.
2496
+ * @type {number}
2497
+ * @memberof HMACRule
2498
+ */
2499
+ length?: number;
2500
+ }
2501
+ /**
2502
+ * @export
2503
+ */
2504
+ declare const HMACRuleTypeEnum: {
2505
+ readonly hmac: "hmac";
2506
+ };
2507
+ type HMACRuleTypeEnum = typeof HMACRuleTypeEnum[keyof typeof HMACRuleTypeEnum];
2508
+ /**
2509
+ * Check if a given object implements the HMACRule interface.
2510
+ */
2511
+ declare function instanceOfHMACRule(value: object): value is HMACRule;
2512
+ declare function HMACRuleFromJSON(json: any): HMACRule;
2513
+ declare function HMACRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): HMACRule;
2514
+ declare function HMACRuleToJSON(json: any): HMACRule;
2515
+ declare function HMACRuleToJSONTyped(value?: HMACRule | null, ignoreDiscriminator?: boolean): any;
2516
+ //#endregion
2517
+ //#region src/models/MaskRule.d.ts
2518
+ /**
2519
+ * Mask part of each matched value with a repeated character.
2520
+ *
2521
+ * By default the whole value is masked; set ``chars_to_mask`` to mask only a
2522
+ * portion, and ``from_end`` to mask the trailing characters instead of leading.
2523
+ * @export
2524
+ * @interface MaskRule
2525
+ */
2526
+ interface MaskRule {
2527
+ /**
2528
+ *
2529
+ * @type {string}
2530
+ * @memberof MaskRule
2531
+ */
2532
+ type: MaskRuleTypeEnum;
2533
+ /**
2534
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2535
+ * @type {Array<EntityBody>}
2536
+ * @memberof MaskRule
2537
+ */
2538
+ entities: Array<EntityBody>;
2539
+ /**
2540
+ *
2541
+ * @type {Action}
2542
+ * @memberof MaskRule
2543
+ */
2544
+ action?: Action;
2545
+ /**
2546
+ * The character used to mask, e.g. '*'.
2547
+ * @type {string}
2548
+ * @memberof MaskRule
2549
+ */
2550
+ masking_char?: string;
2551
+ /**
2552
+ *
2553
+ * @type {number}
2554
+ * @memberof MaskRule
2555
+ */
2556
+ chars_to_mask?: number | null;
2557
+ /**
2558
+ * If true, mask the last N characters instead of the first N.
2559
+ * @type {boolean}
2560
+ * @memberof MaskRule
2561
+ */
2562
+ from_end?: boolean;
2563
+ }
2564
+ /**
2565
+ * @export
2566
+ */
2567
+ declare const MaskRuleTypeEnum: {
2568
+ readonly mask: "mask";
2569
+ };
2570
+ type MaskRuleTypeEnum = typeof MaskRuleTypeEnum[keyof typeof MaskRuleTypeEnum];
2571
+ /**
2572
+ * Check if a given object implements the MaskRule interface.
2573
+ */
2574
+ declare function instanceOfMaskRule(value: object): value is MaskRule;
2575
+ declare function MaskRuleFromJSON(json: any): MaskRule;
2576
+ declare function MaskRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaskRule;
2577
+ declare function MaskRuleToJSON(json: any): MaskRule;
2578
+ declare function MaskRuleToJSONTyped(value?: MaskRule | null, ignoreDiscriminator?: boolean): any;
2579
+ //#endregion
2580
+ //#region src/models/PseudonymizeRule.d.ts
2581
+ /**
2582
+ * Replace each matched value with its label and a number, e.g. '[PERSON_1]'.
2583
+ *
2584
+ * The same value gets the same tag throughout one request (or one file), a
2585
+ * different value the next number. Each result pairs the tag with the value
2586
+ * it stands for: the mapping to restore the values in a reply. It is not
2587
+ * kept. Pseudonymize rules in one request number together: two rules
2588
+ * tagging 'person' never both give '[PERSON_1]'.
2589
+ * @export
2590
+ * @interface PseudonymizeRule
2591
+ */
2592
+ interface PseudonymizeRule {
2593
+ /**
2594
+ *
2595
+ * @type {string}
2596
+ * @memberof PseudonymizeRule
2597
+ */
2598
+ type: PseudonymizeRuleTypeEnum;
2599
+ /**
2600
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2601
+ * @type {Array<EntityBody>}
2602
+ * @memberof PseudonymizeRule
2603
+ */
2604
+ entities: Array<EntityBody>;
2605
+ /**
2606
+ *
2607
+ * @type {Action}
2608
+ * @memberof PseudonymizeRule
2609
+ */
2610
+ action?: Action;
2611
+ /**
2612
+ *
2613
+ * @type {string}
2614
+ * @memberof PseudonymizeRule
2615
+ */
2616
+ tag?: string | null;
2617
+ }
2618
+ /**
2619
+ * @export
2620
+ */
2621
+ declare const PseudonymizeRuleTypeEnum: {
2622
+ readonly pseudonymize: "pseudonymize";
2623
+ };
2624
+ type PseudonymizeRuleTypeEnum = typeof PseudonymizeRuleTypeEnum[keyof typeof PseudonymizeRuleTypeEnum];
2625
+ /**
2626
+ * Check if a given object implements the PseudonymizeRule interface.
2627
+ */
2628
+ declare function instanceOfPseudonymizeRule(value: object): value is PseudonymizeRule;
2629
+ declare function PseudonymizeRuleFromJSON(json: any): PseudonymizeRule;
2630
+ declare function PseudonymizeRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PseudonymizeRule;
2631
+ declare function PseudonymizeRuleToJSON(json: any): PseudonymizeRule;
2632
+ declare function PseudonymizeRuleToJSONTyped(value?: PseudonymizeRule | null, ignoreDiscriminator?: boolean): any;
2633
+ //#endregion
2634
+ //#region src/models/RedactRule.d.ts
2635
+ /**
2636
+ * Remove each matched value entirely (replace with an empty string).
2637
+ * @export
2638
+ * @interface RedactRule
2639
+ */
2640
+ interface RedactRule {
2641
+ /**
2642
+ *
2643
+ * @type {string}
2644
+ * @memberof RedactRule
2645
+ */
2646
+ type: RedactRuleTypeEnum;
2647
+ /**
2648
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2649
+ * @type {Array<EntityBody>}
2650
+ * @memberof RedactRule
2651
+ */
2652
+ entities: Array<EntityBody>;
2653
+ /**
2654
+ *
2655
+ * @type {Action}
2656
+ * @memberof RedactRule
2657
+ */
2658
+ action?: Action;
2659
+ }
2660
+ /**
2661
+ * @export
2662
+ */
2663
+ declare const RedactRuleTypeEnum: {
2664
+ readonly redact: "redact";
2665
+ };
2666
+ type RedactRuleTypeEnum = typeof RedactRuleTypeEnum[keyof typeof RedactRuleTypeEnum];
2667
+ /**
2668
+ * Check if a given object implements the RedactRule interface.
2669
+ */
2670
+ declare function instanceOfRedactRule(value: object): value is RedactRule;
2671
+ declare function RedactRuleFromJSON(json: any): RedactRule;
2672
+ declare function RedactRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedactRule;
2673
+ declare function RedactRuleToJSON(json: any): RedactRule;
2674
+ declare function RedactRuleToJSONTyped(value?: RedactRule | null, ignoreDiscriminator?: boolean): any;
2675
+ //#endregion
2676
+ //#region src/models/ReplaceRule.d.ts
2677
+ /**
2678
+ * Replace each matched value with a fixed string (default '****').
2679
+ * @export
2680
+ * @interface ReplaceRule
2681
+ */
2682
+ interface ReplaceRule {
2683
+ /**
2684
+ *
2685
+ * @type {string}
2686
+ * @memberof ReplaceRule
2687
+ */
2688
+ type: ReplaceRuleTypeEnum;
2689
+ /**
2690
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2691
+ * @type {Array<EntityBody>}
2692
+ * @memberof ReplaceRule
2693
+ */
2694
+ entities: Array<EntityBody>;
2695
+ /**
2696
+ *
2697
+ * @type {Action}
2698
+ * @memberof ReplaceRule
2699
+ */
2700
+ action?: Action;
2701
+ /**
2702
+ * The fixed string to substitute for each match.
2703
+ * @type {string}
2704
+ * @memberof ReplaceRule
2705
+ */
2706
+ replacement?: string;
2707
+ }
2708
+ /**
2709
+ * @export
2710
+ */
2711
+ declare const ReplaceRuleTypeEnum: {
2712
+ readonly replace: "replace";
2713
+ };
2714
+ type ReplaceRuleTypeEnum = typeof ReplaceRuleTypeEnum[keyof typeof ReplaceRuleTypeEnum];
2715
+ /**
2716
+ * Check if a given object implements the ReplaceRule interface.
2717
+ */
2718
+ declare function instanceOfReplaceRule(value: object): value is ReplaceRule;
2719
+ declare function ReplaceRuleFromJSON(json: any): ReplaceRule;
2720
+ declare function ReplaceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplaceRule;
2721
+ declare function ReplaceRuleToJSON(json: any): ReplaceRule;
2722
+ declare function ReplaceRuleToJSONTyped(value?: ReplaceRule | null, ignoreDiscriminator?: boolean): any;
2723
+ //#endregion
2724
+ //#region src/models/SHA256Rule.d.ts
2725
+ /**
2726
+ * Replace each matched value with its SHA-256 hex digest.
2727
+ * @export
2728
+ * @interface SHA256Rule
2729
+ */
2730
+ interface SHA256Rule {
2731
+ /**
2732
+ *
2733
+ * @type {string}
2734
+ * @memberof SHA256Rule
2735
+ */
2736
+ type: SHA256RuleTypeEnum;
2737
+ /**
2738
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2739
+ * @type {Array<EntityBody>}
2740
+ * @memberof SHA256Rule
2741
+ */
2742
+ entities: Array<EntityBody>;
2743
+ /**
2744
+ *
2745
+ * @type {Action}
2746
+ * @memberof SHA256Rule
2747
+ */
2748
+ action?: Action;
2749
+ }
2750
+ /**
2751
+ * @export
2752
+ */
2753
+ declare const SHA256RuleTypeEnum: {
2754
+ readonly sha256: "sha256";
2755
+ };
2756
+ type SHA256RuleTypeEnum = typeof SHA256RuleTypeEnum[keyof typeof SHA256RuleTypeEnum];
2757
+ /**
2758
+ * Check if a given object implements the SHA256Rule interface.
2759
+ */
2760
+ declare function instanceOfSHA256Rule(value: object): value is SHA256Rule;
2761
+ declare function SHA256RuleFromJSON(json: any): SHA256Rule;
2762
+ declare function SHA256RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA256Rule;
2763
+ declare function SHA256RuleToJSON(json: any): SHA256Rule;
2764
+ declare function SHA256RuleToJSONTyped(value?: SHA256Rule | null, ignoreDiscriminator?: boolean): any;
2765
+ //#endregion
2766
+ //#region src/models/SHA512Rule.d.ts
2767
+ /**
2768
+ * Replace each matched value with its SHA-512 hex digest.
2769
+ * @export
2770
+ * @interface SHA512Rule
2771
+ */
2772
+ interface SHA512Rule {
2773
+ /**
2774
+ *
2775
+ * @type {string}
2776
+ * @memberof SHA512Rule
2777
+ */
2778
+ type: SHA512RuleTypeEnum;
2779
+ /**
2780
+ * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
2781
+ * @type {Array<EntityBody>}
2782
+ * @memberof SHA512Rule
2783
+ */
2784
+ entities: Array<EntityBody>;
2785
+ /**
2786
+ *
2787
+ * @type {Action}
2788
+ * @memberof SHA512Rule
2789
+ */
2790
+ action?: Action;
2791
+ }
2792
+ /**
2793
+ * @export
2794
+ */
2795
+ declare const SHA512RuleTypeEnum: {
2796
+ readonly sha512: "sha512";
2797
+ };
2798
+ type SHA512RuleTypeEnum = typeof SHA512RuleTypeEnum[keyof typeof SHA512RuleTypeEnum];
2799
+ /**
2800
+ * Check if a given object implements the SHA512Rule interface.
2801
+ */
2802
+ declare function instanceOfSHA512Rule(value: object): value is SHA512Rule;
2803
+ declare function SHA512RuleFromJSON(json: any): SHA512Rule;
2804
+ declare function SHA512RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA512Rule;
2805
+ declare function SHA512RuleToJSON(json: any): SHA512Rule;
2806
+ declare function SHA512RuleToJSONTyped(value?: SHA512Rule | null, ignoreDiscriminator?: boolean): any;
2807
+ //#endregion
2808
+ //#region src/models/RuleBody.d.ts
2809
+ /**
2810
+ * @type RuleBody
2811
+ * One rule, chosen by its `type`.
2812
+ * @export
2813
+ */
2814
+ type RuleBody = {
2815
+ type: 'detect';
2816
+ } & DetectRule | {
2817
+ type: 'encrypt';
2818
+ } & EncryptRule | {
2819
+ type: 'hmac';
2820
+ } & HMACRule | {
2821
+ type: 'mask';
2822
+ } & MaskRule | {
2823
+ type: 'pseudonymize';
2824
+ } & PseudonymizeRule | {
2825
+ type: 'redact';
2826
+ } & RedactRule | {
2827
+ type: 'replace';
2828
+ } & ReplaceRule | {
2829
+ type: 'sha256';
2830
+ } & SHA256Rule | {
2831
+ type: 'sha512';
2832
+ } & SHA512Rule;
2833
+ declare function RuleBodyFromJSON(json: any): RuleBody;
2834
+ declare function RuleBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleBody;
2835
+ declare function RuleBodyToJSON(json: any): any;
2836
+ declare function RuleBodyToJSONTyped(value?: RuleBody | null, ignoreDiscriminator?: boolean): any;
2837
+ //#endregion
2838
+ //#region src/models/AnonymizeRequestBody.d.ts
2839
+ /**
2840
+ * Request body for the anonymize endpoint.
2841
+ *
2842
+ * Carries the text to anonymize and the list of de-identification rules to
2843
+ * apply.
2844
+ * @export
2845
+ * @interface AnonymizeRequestBody
2846
+ */
2847
+ interface AnonymizeRequestBody {
2848
+ /**
2849
+ * The text to scan and anonymize. At most 128 KB in UTF-8.
2850
+ * @type {string}
2851
+ * @memberof AnonymizeRequestBody
2852
+ */
2853
+ text: string;
2854
+ /**
2855
+ *
2856
+ * @type {Array<RuleBody>}
2857
+ * @memberof AnonymizeRequestBody
2858
+ */
2859
+ rules?: Array<RuleBody> | null;
2860
+ /**
2861
+ *
2862
+ * @type {number}
2863
+ * @memberof AnonymizeRequestBody
2864
+ */
2865
+ confidence_threshold?: number | null;
2866
+ /**
2867
+ *
2868
+ * @type {Array<string>}
2869
+ * @memberof AnonymizeRequestBody
2870
+ */
2871
+ models?: Array<string> | null;
2872
+ }
2873
+ /**
2874
+ * Check if a given object implements the AnonymizeRequestBody interface.
2875
+ */
2876
+ declare function instanceOfAnonymizeRequestBody(value: object): value is AnonymizeRequestBody;
2877
+ declare function AnonymizeRequestBodyFromJSON(json: any): AnonymizeRequestBody;
2878
+ declare function AnonymizeRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBody;
2879
+ declare function AnonymizeRequestBodyToJSON(json: any): AnonymizeRequestBody;
2880
+ declare function AnonymizeRequestBodyToJSONTyped(value?: AnonymizeRequestBody | null, ignoreDiscriminator?: boolean): any;
2881
+ //#endregion
2882
+ //#region src/models/ModelResult.d.ts
2883
+ /**
2884
+ * Record of an AI model detection and its anonymization.
2885
+ *
2886
+ * Created when an AI model identifies an entity (e.g. person, email)
2887
+ * and a rule anonymizes the matched text.
2888
+ * @export
2889
+ * @interface ModelResult
2890
+ */
2891
+ interface ModelResult {
2892
+ /**
2893
+ *
2894
+ * @type {string}
2895
+ * @memberof ModelResult
2896
+ */
2897
+ type: ModelResultTypeEnum;
2898
+ /**
2899
+ * The rule type that was applied, e.g. 'replace', 'mask'.
2900
+ * @type {string}
2901
+ * @memberof ModelResult
2902
+ */
2903
+ rule: string;
2904
+ /**
2905
+ * The model entity type that matched, e.g. 'person'.
2906
+ * @type {string}
2907
+ * @memberof ModelResult
2908
+ */
2909
+ value: string;
2910
+ /**
2911
+ * The detected range in the original text.
2912
+ * @type {TextRange}
2913
+ * @memberof ModelResult
2914
+ */
2915
+ input: TextRange;
2916
+ /**
2917
+ * The anonymized range in the result text.
2918
+ * @type {TextRange}
2919
+ * @memberof ModelResult
2920
+ */
2921
+ output: TextRange;
2922
+ /**
2923
+ * Confidence score from the AI model (0.0–1.0).
2924
+ * @type {number}
2925
+ * @memberof ModelResult
2926
+ */
2927
+ score?: number;
2928
+ /**
2929
+ * What the browser extension does with it: `enforce` when the rule says so; omitted for `warn`.
2930
+ * @type {Action}
2931
+ * @memberof ModelResult
2932
+ */
2933
+ action?: Action;
2934
+ }
2935
+ /**
2936
+ * @export
2937
+ */
2938
+ declare const ModelResultTypeEnum: {
2939
+ readonly model: "model";
2940
+ };
2941
+ type ModelResultTypeEnum = typeof ModelResultTypeEnum[keyof typeof ModelResultTypeEnum];
2942
+ /**
2943
+ * Check if a given object implements the ModelResult interface.
2944
+ */
2945
+ declare function instanceOfModelResult(value: object): value is ModelResult;
2946
+ declare function ModelResultFromJSON(json: any): ModelResult;
2947
+ declare function ModelResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelResult;
2948
+ declare function ModelResultToJSON(json: any): ModelResult;
2949
+ declare function ModelResultToJSONTyped(value?: ModelResult | null, ignoreDiscriminator?: boolean): any;
2950
+ //#endregion
2951
+ //#region src/models/RegexResult.d.ts
2952
+ /**
2953
+ * Record of a regex detection and its anonymization.
2954
+ *
2955
+ * Created when a regex pattern matches text
2956
+ * and a rule anonymizes the matched text.
2957
+ * @export
2958
+ * @interface RegexResult
2959
+ */
2960
+ interface RegexResult {
2961
+ /**
2962
+ *
2963
+ * @type {string}
2964
+ * @memberof RegexResult
2965
+ */
2966
+ type: RegexResultTypeEnum;
2967
+ /**
2968
+ * The rule type that was applied, e.g. 'replace', 'mask'.
2969
+ * @type {string}
2970
+ * @memberof RegexResult
2971
+ */
2972
+ rule: string;
2973
+ /**
2974
+ * The regex pattern that matched.
2975
+ * @type {string}
2976
+ * @memberof RegexResult
2977
+ */
2978
+ value: string;
2979
+ /**
2980
+ * The detected range in the original text.
2981
+ * @type {TextRange}
2982
+ * @memberof RegexResult
2983
+ */
2984
+ input: TextRange;
2985
+ /**
2986
+ * The anonymized range in the result text.
2987
+ * @type {TextRange}
2988
+ * @memberof RegexResult
2989
+ */
2990
+ output: TextRange;
2991
+ /**
2992
+ * What the browser extension does with it: `enforce` when the rule says so; omitted for `warn`.
2993
+ * @type {Action}
2994
+ * @memberof RegexResult
2995
+ */
2996
+ action?: Action;
2997
+ }
2998
+ /**
2999
+ * @export
3000
+ */
3001
+ declare const RegexResultTypeEnum: {
3002
+ readonly regex: "regex";
3003
+ };
3004
+ type RegexResultTypeEnum = typeof RegexResultTypeEnum[keyof typeof RegexResultTypeEnum];
3005
+ /**
3006
+ * Check if a given object implements the RegexResult interface.
3007
+ */
3008
+ declare function instanceOfRegexResult(value: object): value is RegexResult;
3009
+ declare function RegexResultFromJSON(json: any): RegexResult;
3010
+ declare function RegexResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexResult;
3011
+ declare function RegexResultToJSON(json: any): RegexResult;
3012
+ declare function RegexResultToJSONTyped(value?: RegexResult | null, ignoreDiscriminator?: boolean): any;
3013
+ //#endregion
3014
+ //#region src/models/Applied.d.ts
3015
+ /**
3016
+ * @type Applied
3017
+ * One rewrite, from a model detection or a regex match.
3018
+ * @export
3019
+ */
3020
+ type Applied = {
3021
+ type: 'model';
3022
+ } & ModelResult | {
3023
+ type: 'regex';
3024
+ } & RegexResult;
3025
+ declare function AppliedFromJSON(json: any): Applied;
3026
+ declare function AppliedFromJSONTyped(json: any, ignoreDiscriminator: boolean): Applied;
3027
+ declare function AppliedToJSON(json: any): any;
3028
+ declare function AppliedToJSONTyped(value?: Applied | null, ignoreDiscriminator?: boolean): any;
3029
+ //#endregion
3030
+ //#region src/models/AnonymizeResponseBody.d.ts
3031
+ /**
3032
+ * Response from the anonymize endpoint: the anonymized text and a record
3033
+ * of every transformation that was applied.
3034
+ * @export
3035
+ * @interface AnonymizeResponseBody
3036
+ */
3037
+ interface AnonymizeResponseBody {
3038
+ /**
3039
+ * The anonymized text after all rules have been applied.
3040
+ * @type {string}
3041
+ * @memberof AnonymizeResponseBody
3042
+ */
3043
+ text: string;
3044
+ /**
3045
+ * Records of each anonymization performed, ordered by position.
3046
+ * @type {Array<Applied>}
3047
+ * @memberof AnonymizeResponseBody
3048
+ */
3049
+ results?: Array<Applied>;
3050
+ /**
3051
+ * Token counts for this request.
3052
+ * @type {Usage}
3053
+ * @memberof AnonymizeResponseBody
3054
+ */
3055
+ usage: Usage;
3056
+ /**
3057
+ * The text model that ran, as `[id]` with the id from `GET /models`.
3058
+ * @type {Array<string>}
3059
+ * @memberof AnonymizeResponseBody
3060
+ */
3061
+ models: Array<string>;
3062
+ }
3063
+ /**
3064
+ * Check if a given object implements the AnonymizeResponseBody interface.
3065
+ */
3066
+ declare function instanceOfAnonymizeResponseBody(value: object): value is AnonymizeResponseBody;
3067
+ declare function AnonymizeResponseBodyFromJSON(json: any): AnonymizeResponseBody;
3068
+ declare function AnonymizeResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseBody;
3069
+ declare function AnonymizeResponseBodyToJSON(json: any): AnonymizeResponseBody;
3070
+ declare function AnonymizeResponseBodyToJSONTyped(value?: AnonymizeResponseBody | null, ignoreDiscriminator?: boolean): any;
3071
+ //#endregion
3072
+ //#region src/models/At.d.ts
3073
+ /**
3074
+ * How far reading has got: the last unit of a batch.
3075
+ * @export
3076
+ * @interface At
3077
+ */
3078
+ interface At {
3079
+ /**
3080
+ * Where it is, as a result's `path`: its start.
3081
+ * @type {Array<PathSegment>}
3082
+ * @memberof At
3083
+ */
3084
+ path: Array<PathSegment>;
3085
+ /**
3086
+ * The start of its text, for a viewer to find it on the page; for JSON its first value, decoded.
3087
+ * @type {string}
3088
+ * @memberof At
3089
+ */
3090
+ text: string;
3091
+ }
3092
+ /**
3093
+ * Check if a given object implements the At interface.
3094
+ */
3095
+ declare function instanceOfAt(value: object): value is At;
3096
+ declare function AtFromJSON(json: any): At;
3097
+ declare function AtFromJSONTyped(json: any, ignoreDiscriminator: boolean): At;
3098
+ declare function AtToJSON(json: any): At;
3099
+ declare function AtToJSONTyped(value?: At | null, ignoreDiscriminator?: boolean): any;
3100
+ //#endregion
3101
+ //#region src/models/PolicyDocumentRulesInner.d.ts
3102
+ /**
3103
+ * @type PolicyDocumentRulesInner
3104
+ *
3105
+ * @export
3106
+ */
3107
+ type PolicyDocumentRulesInner = {
3108
+ type: 'detect';
3109
+ } & DetectRule | {
3110
+ type: 'encrypt';
3111
+ } & EncryptRule | {
3112
+ type: 'hmac';
3113
+ } & HMACRule | {
3114
+ type: 'mask';
3115
+ } & MaskRule | {
3116
+ type: 'pseudonymize';
3117
+ } & PseudonymizeRule | {
3118
+ type: 'redact';
3119
+ } & RedactRule | {
3120
+ type: 'replace';
3121
+ } & ReplaceRule | {
3122
+ type: 'sha256';
3123
+ } & SHA256Rule | {
3124
+ type: 'sha512';
3125
+ } & SHA512Rule;
3126
+ declare function PolicyDocumentRulesInnerFromJSON(json: any): PolicyDocumentRulesInner;
3127
+ declare function PolicyDocumentRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyDocumentRulesInner;
3128
+ declare function PolicyDocumentRulesInnerToJSON(json: any): any;
3129
+ declare function PolicyDocumentRulesInnerToJSONTyped(value?: PolicyDocumentRulesInner | null, ignoreDiscriminator?: boolean): any;
3130
+ //#endregion
3131
+ //#region src/models/PolicyDocument.d.ts
3132
+ /**
3133
+ * A reusable set of de-identification rules. Rules are ORDERED: overlapping matches are resolved first-match-wins, so a detect rule placed before a transform shields those spans from being rewritten.
3134
+ * @export
3135
+ * @interface PolicyDocument
3136
+ */
3137
+ interface PolicyDocument {
3138
+ /**
3139
+ *
3140
+ * @type {number}
3141
+ * @memberof PolicyDocument
3142
+ */
3143
+ schema_version: PolicyDocumentSchemaVersionEnum;
3144
+ /**
3145
+ *
3146
+ * @type {string}
3147
+ * @memberof PolicyDocument
3148
+ */
3149
+ name?: string;
3150
+ /**
3151
+ *
3152
+ * @type {number}
3153
+ * @memberof PolicyDocument
3154
+ */
3155
+ confidence_threshold?: number | null;
3156
+ /**
3157
+ *
3158
+ * @type {Array<PolicyDocumentRulesInner>}
3159
+ * @memberof PolicyDocument
3160
+ */
3161
+ rules: Array<PolicyDocumentRulesInner>;
3162
+ }
3163
+ /**
3164
+ * @export
3165
+ */
3166
+ declare const PolicyDocumentSchemaVersionEnum: {
3167
+ readonly NUMBER_1: 1;
3168
+ };
3169
+ type PolicyDocumentSchemaVersionEnum = typeof PolicyDocumentSchemaVersionEnum[keyof typeof PolicyDocumentSchemaVersionEnum];
3170
+ /**
3171
+ * Check if a given object implements the PolicyDocument interface.
3172
+ */
3173
+ declare function instanceOfPolicyDocument(value: object): value is PolicyDocument;
3174
+ declare function PolicyDocumentFromJSON(json: any): PolicyDocument;
3175
+ declare function PolicyDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyDocument;
3176
+ declare function PolicyDocumentToJSON(json: any): PolicyDocument;
3177
+ declare function PolicyDocumentToJSONTyped(value?: PolicyDocument | null, ignoreDiscriminator?: boolean): any;
3178
+ //#endregion
3179
+ //#region src/models/CreatePolicyRequest.d.ts
3180
+ /**
3181
+ *
3182
+ * @export
3183
+ * @interface CreatePolicyRequest
3184
+ */
3185
+ interface CreatePolicyRequest {
3186
+ /**
3187
+ *
3188
+ * @type {string}
3189
+ * @memberof CreatePolicyRequest
3190
+ */
3191
+ name: string;
3192
+ /**
3193
+ *
3194
+ * @type {PolicyDocument}
3195
+ * @memberof CreatePolicyRequest
3196
+ */
3197
+ document: PolicyDocument;
3198
+ }
3199
+ /**
3200
+ * Check if a given object implements the CreatePolicyRequest interface.
3201
+ */
3202
+ declare function instanceOfCreatePolicyRequest(value: object): value is CreatePolicyRequest;
3203
+ declare function CreatePolicyRequestFromJSON(json: any): CreatePolicyRequest;
3204
+ declare function CreatePolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePolicyRequest;
3205
+ declare function CreatePolicyRequestToJSON(json: any): CreatePolicyRequest;
3206
+ declare function CreatePolicyRequestToJSONTyped(value?: CreatePolicyRequest | null, ignoreDiscriminator?: boolean): any;
3207
+ //#endregion
3208
+ //#region src/models/ErrorCode.d.ts
3209
+ /**
3210
+ * Sensitive Data Protection API
3211
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
3212
+ *
3213
+ * The version of the OpenAPI document: 0.1.0
3214
+ *
3215
+ *
3216
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3217
+ * https://openapi-generator.tech
3218
+ * Do not edit the class manually.
3219
+ */
3220
+ /**
3221
+ * What went wrong, for callers to branch on. `invalid_json` (400): the body
3222
+ * is not JSON. `invalid_request` (422): some fields are invalid, `details`
3223
+ * says which. `unauthorized` (401), `not_found` (404), `method_not_allowed`
3224
+ * (405). `internal` (500): the request failed; retrying may help.
3225
+ * `unavailable` (503): the model is not loaded.
3226
+ * `forbidden` (403): the caller's assigned policy sets the rules or threshold. `policy_unreadable` (409): that policy cannot be read.
3227
+ * @export
3228
+ */
3229
+ declare const ErrorCode: {
3230
+ readonly invalid_json: "invalid_json";
3231
+ readonly invalid_request: "invalid_request";
3232
+ readonly unauthorized: "unauthorized";
3233
+ readonly not_found: "not_found";
3234
+ readonly method_not_allowed: "method_not_allowed";
3235
+ readonly internal: "internal";
3236
+ readonly unavailable: "unavailable";
3237
+ readonly forbidden: "forbidden";
3238
+ readonly policy_unreadable: "policy_unreadable";
3239
+ };
3240
+ type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
3241
+ declare function instanceOfErrorCode(value: any): boolean;
3242
+ declare function ErrorCodeFromJSON(json: any): ErrorCode;
3243
+ declare function ErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorCode;
3244
+ declare function ErrorCodeToJSON(value?: ErrorCode | null): any;
3245
+ declare function ErrorCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): ErrorCode;
3246
+ //#endregion
3247
+ //#region src/models/FieldErrorPathInner.d.ts
3248
+ /**
3249
+ * Sensitive Data Protection API
3250
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
3251
+ *
3252
+ * The version of the OpenAPI document: 0.1.0
3253
+ *
3254
+ *
3255
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3256
+ * https://openapi-generator.tech
3257
+ * Do not edit the class manually.
3258
+ */
3259
+ /**
3260
+ * One step of a path into the request body: a field name or a list index.
3261
+ * @export
3262
+ * @interface FieldErrorPathInner
3263
+ */
3264
+ interface FieldErrorPathInner {}
3265
+ /**
3266
+ * Check if a given object implements the FieldErrorPathInner interface.
3267
+ */
3268
+ declare function instanceOfFieldErrorPathInner(value: object): value is FieldErrorPathInner;
3269
+ declare function FieldErrorPathInnerFromJSON(json: any): FieldErrorPathInner;
3270
+ declare function FieldErrorPathInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldErrorPathInner;
3271
+ declare function FieldErrorPathInnerToJSON(json: any): FieldErrorPathInner;
3272
+ declare function FieldErrorPathInnerToJSONTyped(value?: FieldErrorPathInner | null, ignoreDiscriminator?: boolean): any;
3273
+ //#endregion
3274
+ //#region src/models/FieldErrorCode.d.ts
3275
+ /**
3276
+ * Sensitive Data Protection API
3277
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
3278
+ *
3279
+ * The version of the OpenAPI document: 0.1.0
3280
+ *
3281
+ *
3282
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3283
+ * https://openapi-generator.tech
3284
+ * Do not edit the class manually.
3285
+ */
3286
+ /**
3287
+ * Why one field was refused. `missing`; `wrong_type` (see `expected`);
3288
+ * `too_short`/`too_long` in characters and `too_large` in UTF-8 bytes (see
3289
+ * `limit`); `too_few`/`too_many` items (see `limit`); `out_of_range` (see
3290
+ * `min`, `max`); `blank`: only whitespace; `unknown_type` (see `allowed`);
3291
+ * `invalid_pattern`: not a regular expression the engine runs;
3292
+ * `invalid_key`: not a Fernet key; `labels_over_budget`: the labels leave
3293
+ * the model too little room for text (see `tokens`, `limit`).
3294
+ * @export
3295
+ */
3296
+ declare const FieldErrorCode: {
3297
+ readonly missing: "missing";
3298
+ readonly wrong_type: "wrong_type";
3299
+ readonly too_short: "too_short";
3300
+ readonly too_long: "too_long";
3301
+ readonly too_large: "too_large";
3302
+ readonly too_few: "too_few";
3303
+ readonly too_many: "too_many";
3304
+ readonly out_of_range: "out_of_range";
3305
+ readonly blank: "blank";
3306
+ readonly unknown_type: "unknown_type";
3307
+ readonly invalid_pattern: "invalid_pattern";
3308
+ readonly invalid_key: "invalid_key";
3309
+ readonly labels_over_budget: "labels_over_budget";
3310
+ };
3311
+ type FieldErrorCode = typeof FieldErrorCode[keyof typeof FieldErrorCode];
3312
+ declare function instanceOfFieldErrorCode(value: any): boolean;
3313
+ declare function FieldErrorCodeFromJSON(json: any): FieldErrorCode;
3314
+ declare function FieldErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldErrorCode;
3315
+ declare function FieldErrorCodeToJSON(value?: FieldErrorCode | null): any;
3316
+ declare function FieldErrorCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldErrorCode;
3317
+ //#endregion
3318
+ //#region src/models/FieldError.d.ts
3319
+ /**
3320
+ * One refused field.
3321
+ * @export
3322
+ * @interface FieldError
3323
+ */
3324
+ interface FieldError {
3325
+ /**
3326
+ * Where in the request body: field names and list indices. Empty for the body itself.
3327
+ * @type {Array<FieldErrorPathInner>}
3328
+ * @memberof FieldError
3329
+ */
3330
+ path: Array<FieldErrorPathInner>;
3331
+ /**
3332
+ *
3333
+ * @type {FieldErrorCode}
3334
+ * @memberof FieldError
3335
+ */
3336
+ code: FieldErrorCode;
3337
+ /**
3338
+ * What is wrong, in English.
3339
+ * @type {string}
3340
+ * @memberof FieldError
3341
+ */
3342
+ message: string;
3343
+ /**
3344
+ * The bound a size refusal holds to.
3345
+ * @type {number}
3346
+ * @memberof FieldError
3347
+ */
3348
+ limit?: number;
3349
+ /**
3350
+ * The lowest value accepted.
3351
+ * @type {number}
3352
+ * @memberof FieldError
3353
+ */
3354
+ min?: number;
3355
+ /**
3356
+ * The highest value accepted.
3357
+ * @type {number}
3358
+ * @memberof FieldError
3359
+ */
3360
+ max?: number;
3361
+ /**
3362
+ * The JSON type expected: string, number, integer, boolean, array or object.
3363
+ * @type {string}
3364
+ * @memberof FieldError
3365
+ */
3366
+ expected?: string;
3367
+ /**
3368
+ * The values accepted.
3369
+ * @type {Array<string>}
3370
+ * @memberof FieldError
3371
+ */
3372
+ allowed?: Array<string>;
3373
+ /**
3374
+ * Tokens the labels use.
3375
+ * @type {number}
3376
+ * @memberof FieldError
3377
+ */
3378
+ tokens?: number;
3379
+ }
3380
+ /**
3381
+ * Check if a given object implements the FieldError interface.
3382
+ */
3383
+ declare function instanceOfFieldError(value: object): value is FieldError;
3384
+ declare function FieldErrorFromJSON(json: any): FieldError;
3385
+ declare function FieldErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldError;
3386
+ declare function FieldErrorToJSON(json: any): FieldError;
3387
+ declare function FieldErrorToJSONTyped(value?: FieldError | null, ignoreDiscriminator?: boolean): any;
3388
+ //#endregion
3389
+ //#region src/models/ErrorInfo.d.ts
3390
+ /**
3391
+ * The error itself.
3392
+ * @export
3393
+ * @interface ErrorInfo
3394
+ */
3395
+ interface ErrorInfo {
3396
+ /**
3397
+ *
3398
+ * @type {ErrorCode}
3399
+ * @memberof ErrorInfo
3400
+ */
3401
+ code: ErrorCode;
3402
+ /**
3403
+ * What went wrong, in English.
3404
+ * @type {string}
3405
+ * @memberof ErrorInfo
3406
+ */
3407
+ message: string;
3408
+ /**
3409
+ * The refused fields, for `invalid_request`.
3410
+ * @type {Array<FieldError>}
3411
+ * @memberof ErrorInfo
3412
+ */
3413
+ details?: Array<FieldError>;
3414
+ }
3415
+ /**
3416
+ * Check if a given object implements the ErrorInfo interface.
3417
+ */
3418
+ declare function instanceOfErrorInfo(value: object): value is ErrorInfo;
3419
+ declare function ErrorInfoFromJSON(json: any): ErrorInfo;
3420
+ declare function ErrorInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorInfo;
3421
+ declare function ErrorInfoToJSON(json: any): ErrorInfo;
3422
+ declare function ErrorInfoToJSONTyped(value?: ErrorInfo | null, ignoreDiscriminator?: boolean): any;
3423
+ //#endregion
3424
+ //#region src/models/PolicySummary.d.ts
3425
+ /**
3426
+ * Sensitive Data Protection API
3427
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
3428
+ *
3429
+ * The version of the OpenAPI document: 0.1.0
3430
+ *
3431
+ *
3432
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3433
+ * https://openapi-generator.tech
3434
+ * Do not edit the class manually.
3435
+ */
3436
+ /**
3437
+ *
3438
+ * @export
3439
+ * @interface PolicySummary
3440
+ */
3441
+ interface PolicySummary {
3442
+ /**
3443
+ *
3444
+ * @type {string}
3445
+ * @memberof PolicySummary
3446
+ */
3447
+ id: string;
3448
+ /**
3449
+ *
3450
+ * @type {string}
3451
+ * @memberof PolicySummary
3452
+ */
3453
+ name: string;
3454
+ /**
3455
+ *
3456
+ * @type {string}
3457
+ * @memberof PolicySummary
3458
+ */
3459
+ versionId: string;
3460
+ /**
3461
+ *
3462
+ * @type {number}
3463
+ * @memberof PolicySummary
3464
+ */
3465
+ createdAt: number;
3466
+ /**
3467
+ *
3468
+ * @type {number}
3469
+ * @memberof PolicySummary
3470
+ */
3471
+ updatedAt: number;
3472
+ }
3473
+ /**
3474
+ * Check if a given object implements the PolicySummary interface.
3475
+ */
3476
+ declare function instanceOfPolicySummary(value: object): value is PolicySummary;
3477
+ declare function PolicySummaryFromJSON(json: any): PolicySummary;
3478
+ declare function PolicySummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicySummary;
3479
+ declare function PolicySummaryToJSON(json: any): PolicySummary;
3480
+ declare function PolicySummaryToJSONTyped(value?: PolicySummary | null, ignoreDiscriminator?: boolean): any;
3481
+ //#endregion
3482
+ //#region src/models/ListPolicies200Response.d.ts
3483
+ /**
3484
+ *
3485
+ * @export
3486
+ * @interface ListPolicies200Response
3487
+ */
3488
+ interface ListPolicies200Response {
3489
+ /**
3490
+ *
3491
+ * @type {Array<PolicySummary>}
3492
+ * @memberof ListPolicies200Response
1164
3493
  */
1165
- updatedAt: number;
3494
+ policies: Array<PolicySummary>;
1166
3495
  }
1167
3496
  /**
1168
- * Check if a given object implements the Policy interface.
3497
+ * Check if a given object implements the ListPolicies200Response interface.
1169
3498
  */
1170
- declare function instanceOfPolicy(value: object): value is Policy;
1171
- declare function PolicyFromJSON(json: any): Policy;
1172
- declare function PolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Policy;
1173
- declare function PolicyToJSON(json: any): Policy;
1174
- declare function PolicyToJSONTyped(value?: Policy | null, ignoreDiscriminator?: boolean): any;
3499
+ declare function instanceOfListPolicies200Response(value: object): value is ListPolicies200Response;
3500
+ declare function ListPolicies200ResponseFromJSON(json: any): ListPolicies200Response;
3501
+ declare function ListPolicies200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPolicies200Response;
3502
+ declare function ListPolicies200ResponseToJSON(json: any): ListPolicies200Response;
3503
+ declare function ListPolicies200ResponseToJSONTyped(value?: ListPolicies200Response | null, ignoreDiscriminator?: boolean): any;
1175
3504
  //#endregion
1176
- //#region src/models/RedactRule.d.ts
3505
+ //#region src/models/ModelError.d.ts
1177
3506
  /**
1178
- * Remove each matched value entirely (replace with an empty string).
3507
+ * Every error response's body.
1179
3508
  * @export
1180
- * @interface RedactRule
3509
+ * @interface ModelError
1181
3510
  */
1182
- interface RedactRule {
3511
+ interface ModelError {
1183
3512
  /**
1184
3513
  *
1185
- * @type {string}
1186
- * @memberof RedactRule
1187
- */
1188
- type?: RedactRuleTypeEnum;
1189
- /**
1190
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
1191
- * @type {Array<DetectRuleEntitiesInner>}
1192
- * @memberof RedactRule
3514
+ * @type {ErrorInfo}
3515
+ * @memberof ModelError
1193
3516
  */
1194
- entities: Array<DetectRuleEntitiesInner>;
3517
+ error: ErrorInfo;
1195
3518
  }
1196
3519
  /**
1197
- * @export
1198
- */
1199
- declare const RedactRuleTypeEnum: {
1200
- readonly redact: "redact";
1201
- };
1202
- type RedactRuleTypeEnum = typeof RedactRuleTypeEnum[keyof typeof RedactRuleTypeEnum];
1203
- /**
1204
- * Check if a given object implements the RedactRule interface.
3520
+ * Check if a given object implements the ModelError interface.
1205
3521
  */
1206
- declare function instanceOfRedactRule(value: object): value is RedactRule;
1207
- declare function RedactRuleFromJSON(json: any): RedactRule;
1208
- declare function RedactRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedactRule;
1209
- declare function RedactRuleToJSON(json: any): RedactRule;
1210
- declare function RedactRuleToJSONTyped(value?: RedactRule | null, ignoreDiscriminator?: boolean): any;
3522
+ declare function instanceOfModelError(value: object): value is ModelError;
3523
+ declare function ModelErrorFromJSON(json: any): ModelError;
3524
+ declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
3525
+ declare function ModelErrorToJSON(json: any): ModelError;
3526
+ declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any;
1211
3527
  //#endregion
1212
- //#region src/models/RegexEntity.d.ts
3528
+ //#region src/models/ModelType.d.ts
1213
3529
  /**
1214
3530
  * Sensitive Data Protection API
1215
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
3531
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1216
3532
  *
1217
3533
  * The version of the OpenAPI document: 0.1.0
1218
3534
  *
@@ -1222,215 +3538,166 @@ declare function RedactRuleToJSONTyped(value?: RedactRule | null, ignoreDiscrimi
1222
3538
  * Do not edit the class manually.
1223
3539
  */
1224
3540
  /**
1225
- * A regex pattern to target, e.g. a custom ID or date format.
1226
- * @export
1227
- * @interface RegexEntity
1228
- */
1229
- interface RegexEntity {
1230
- /**
1231
- *
1232
- * @type {string}
1233
- * @memberof RegexEntity
1234
- */
1235
- type?: RegexEntityTypeEnum;
1236
- /**
1237
- * The regular expression to match.
1238
- * @type {string}
1239
- * @memberof RegexEntity
1240
- */
1241
- value: string;
1242
- }
1243
- /**
3541
+ * @type ModelType
3542
+ * What a model reads.
1244
3543
  * @export
1245
3544
  */
1246
- declare const RegexEntityTypeEnum: {
1247
- readonly regex: "regex";
1248
- };
1249
- type RegexEntityTypeEnum = typeof RegexEntityTypeEnum[keyof typeof RegexEntityTypeEnum];
1250
- /**
1251
- * Check if a given object implements the RegexEntity interface.
1252
- */
1253
- declare function instanceOfRegexEntity(value: object): value is RegexEntity;
1254
- declare function RegexEntityFromJSON(json: any): RegexEntity;
1255
- declare function RegexEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexEntity;
1256
- declare function RegexEntityToJSON(json: any): RegexEntity;
1257
- declare function RegexEntityToJSONTyped(value?: RegexEntity | null, ignoreDiscriminator?: boolean): any;
3545
+ type ModelType = string;
3546
+ declare function ModelTypeFromJSON(json: any): ModelType;
3547
+ declare function ModelTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelType;
3548
+ declare function ModelTypeToJSON(json: any): any;
3549
+ declare function ModelTypeToJSONTyped(value?: ModelType | null, ignoreDiscriminator?: boolean): any;
1258
3550
  //#endregion
1259
- //#region src/models/RegexResult.d.ts
3551
+ //#region src/models/ModelStatus.d.ts
1260
3552
  /**
1261
- * Record of a regex detection and its anonymization.
1262
- *
1263
- * Created when a regex pattern matches text
1264
- * and a rule anonymizes the matched text.
3553
+ * One model the server offers.
1265
3554
  * @export
1266
- * @interface RegexResult
3555
+ * @interface ModelStatus
1267
3556
  */
1268
- interface RegexResult {
3557
+ interface ModelStatus {
1269
3558
  /**
1270
- *
3559
+ * What a request names it by, in `models`.
1271
3560
  * @type {string}
1272
- * @memberof RegexResult
3561
+ * @memberof ModelStatus
1273
3562
  */
1274
- type?: RegexResultTypeEnum;
3563
+ id: string;
1275
3564
  /**
1276
- * The rule type that was applied, e.g. 'replace', 'mask'.
1277
- * @type {string}
1278
- * @memberof RegexResult
3565
+ * What it reads: `text` or `image`.
3566
+ * @type {ModelType}
3567
+ * @memberof ModelStatus
1279
3568
  */
1280
- rule: string;
3569
+ type: ModelType;
1281
3570
  /**
1282
- * The regex pattern that matched.
1283
- * @type {string}
1284
- * @memberof RegexResult
3571
+ * What a request naming no model of this type runs on now: the first ready (largest first), else the first. One per type.
3572
+ * @type {boolean}
3573
+ * @memberof ModelStatus
1285
3574
  */
1286
- value: string;
3575
+ _default: boolean;
1287
3576
  /**
1288
- * The detected range in the original text.
1289
- * @type {TextRange}
1290
- * @memberof RegexResult
3577
+ * Loaded.
3578
+ * @type {boolean}
3579
+ * @memberof ModelStatus
1291
3580
  */
1292
- input: TextRange;
3581
+ ready: boolean;
1293
3582
  /**
1294
- * The anonymized range in the result text.
1295
- * @type {TextRange}
1296
- * @memberof RegexResult
3583
+ *
3584
+ * @type {string}
3585
+ * @memberof ModelStatus
1297
3586
  */
1298
- output: TextRange;
3587
+ description?: string | null;
3588
+ /**
3589
+ *
3590
+ * @type {string}
3591
+ * @memberof ModelStatus
3592
+ */
3593
+ error?: string | null;
1299
3594
  }
1300
3595
  /**
1301
- * @export
1302
- */
1303
- declare const RegexResultTypeEnum: {
1304
- readonly regex: "regex";
1305
- };
1306
- type RegexResultTypeEnum = typeof RegexResultTypeEnum[keyof typeof RegexResultTypeEnum];
1307
- /**
1308
- * Check if a given object implements the RegexResult interface.
3596
+ * Check if a given object implements the ModelStatus interface.
1309
3597
  */
1310
- declare function instanceOfRegexResult(value: object): value is RegexResult;
1311
- declare function RegexResultFromJSON(json: any): RegexResult;
1312
- declare function RegexResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexResult;
1313
- declare function RegexResultToJSON(json: any): RegexResult;
1314
- declare function RegexResultToJSONTyped(value?: RegexResult | null, ignoreDiscriminator?: boolean): any;
3598
+ declare function instanceOfModelStatus(value: object): value is ModelStatus;
3599
+ declare function ModelStatusFromJSON(json: any): ModelStatus;
3600
+ declare function ModelStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelStatus;
3601
+ declare function ModelStatusToJSON(json: any): ModelStatus;
3602
+ declare function ModelStatusToJSONTyped(value?: ModelStatus | null, ignoreDiscriminator?: boolean): any;
1315
3603
  //#endregion
1316
- //#region src/models/ReplaceRule.d.ts
3604
+ //#region src/models/Policy.d.ts
1317
3605
  /**
1318
- * Replace each matched value with a fixed string (default '****').
3606
+ *
1319
3607
  * @export
1320
- * @interface ReplaceRule
3608
+ * @interface Policy
1321
3609
  */
1322
- interface ReplaceRule {
3610
+ interface Policy {
1323
3611
  /**
1324
3612
  *
1325
3613
  * @type {string}
1326
- * @memberof ReplaceRule
3614
+ * @memberof Policy
1327
3615
  */
1328
- type?: ReplaceRuleTypeEnum;
3616
+ id: string;
1329
3617
  /**
1330
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
1331
- * @type {Array<DetectRuleEntitiesInner>}
1332
- * @memberof ReplaceRule
3618
+ *
3619
+ * @type {string}
3620
+ * @memberof Policy
1333
3621
  */
1334
- entities: Array<DetectRuleEntitiesInner>;
3622
+ name: string;
1335
3623
  /**
1336
- * The fixed string to substitute for each match.
3624
+ *
1337
3625
  * @type {string}
1338
- * @memberof ReplaceRule
3626
+ * @memberof Policy
1339
3627
  */
1340
- replacement?: string;
1341
- }
1342
- /**
1343
- * @export
1344
- */
1345
- declare const ReplaceRuleTypeEnum: {
1346
- readonly replace: "replace";
1347
- };
1348
- type ReplaceRuleTypeEnum = typeof ReplaceRuleTypeEnum[keyof typeof ReplaceRuleTypeEnum];
1349
- /**
1350
- * Check if a given object implements the ReplaceRule interface.
1351
- */
1352
- declare function instanceOfReplaceRule(value: object): value is ReplaceRule;
1353
- declare function ReplaceRuleFromJSON(json: any): ReplaceRule;
1354
- declare function ReplaceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplaceRule;
1355
- declare function ReplaceRuleToJSON(json: any): ReplaceRule;
1356
- declare function ReplaceRuleToJSONTyped(value?: ReplaceRule | null, ignoreDiscriminator?: boolean): any;
1357
- //#endregion
1358
- //#region src/models/SHA256Rule.d.ts
1359
- /**
1360
- * Replace each matched value with its SHA-256 hex digest.
1361
- * @export
1362
- * @interface SHA256Rule
1363
- */
1364
- interface SHA256Rule {
3628
+ versionId: string;
1365
3629
  /**
1366
3630
  *
1367
- * @type {string}
1368
- * @memberof SHA256Rule
3631
+ * @type {PolicyDocument}
3632
+ * @memberof Policy
1369
3633
  */
1370
- type?: SHA256RuleTypeEnum;
3634
+ document: PolicyDocument;
1371
3635
  /**
1372
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
1373
- * @type {Array<DetectRuleEntitiesInner>}
1374
- * @memberof SHA256Rule
3636
+ *
3637
+ * @type {number}
3638
+ * @memberof Policy
3639
+ */
3640
+ createdAt: number;
3641
+ /**
3642
+ *
3643
+ * @type {number}
3644
+ * @memberof Policy
1375
3645
  */
1376
- entities: Array<DetectRuleEntitiesInner>;
3646
+ updatedAt: number;
1377
3647
  }
1378
3648
  /**
1379
- * @export
3649
+ * Check if a given object implements the Policy interface.
1380
3650
  */
1381
- declare const SHA256RuleTypeEnum: {
1382
- readonly sha256: "sha256";
1383
- };
1384
- type SHA256RuleTypeEnum = typeof SHA256RuleTypeEnum[keyof typeof SHA256RuleTypeEnum];
3651
+ declare function instanceOfPolicy(value: object): value is Policy;
3652
+ declare function PolicyFromJSON(json: any): Policy;
3653
+ declare function PolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Policy;
3654
+ declare function PolicyToJSON(json: any): Policy;
3655
+ declare function PolicyToJSONTyped(value?: Policy | null, ignoreDiscriminator?: boolean): any;
3656
+ //#endregion
3657
+ //#region src/models/Refusal.d.ts
1385
3658
  /**
1386
- * Check if a given object implements the SHA256Rule interface.
3659
+ * Sensitive Data Protection API
3660
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
3661
+ *
3662
+ * The version of the OpenAPI document: 0.1.0
3663
+ *
3664
+ *
3665
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3666
+ * https://openapi-generator.tech
3667
+ * Do not edit the class manually.
1387
3668
  */
1388
- declare function instanceOfSHA256Rule(value: object): value is SHA256Rule;
1389
- declare function SHA256RuleFromJSON(json: any): SHA256Rule;
1390
- declare function SHA256RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA256Rule;
1391
- declare function SHA256RuleToJSON(json: any): SHA256Rule;
1392
- declare function SHA256RuleToJSONTyped(value?: SHA256Rule | null, ignoreDiscriminator?: boolean): any;
1393
- //#endregion
1394
- //#region src/models/SHA512Rule.d.ts
1395
3669
  /**
1396
- * Replace each matched value with its SHA-512 hex digest.
3670
+ *
1397
3671
  * @export
1398
- * @interface SHA512Rule
3672
+ * @interface Refusal
1399
3673
  */
1400
- interface SHA512Rule {
3674
+ interface Refusal {
1401
3675
  /**
1402
3676
  *
1403
3677
  * @type {string}
1404
- * @memberof SHA512Rule
3678
+ * @memberof Refusal
1405
3679
  */
1406
- type?: SHA512RuleTypeEnum;
3680
+ error: string;
1407
3681
  /**
1408
- * The entities this rule targets: model entities (e.g. ModelEntity(value='email')) and/or regex entities (e.g. RegexEntity(value='\d{4}-\d{2}-\d{2}')).
1409
- * @type {Array<DetectRuleEntitiesInner>}
1410
- * @memberof SHA512Rule
3682
+ * Present on anonymous refusals: an account lifts the limit.
3683
+ * @type {boolean}
3684
+ * @memberof Refusal
1411
3685
  */
1412
- entities: Array<DetectRuleEntitiesInner>;
3686
+ signup?: boolean;
1413
3687
  }
1414
3688
  /**
1415
- * @export
1416
- */
1417
- declare const SHA512RuleTypeEnum: {
1418
- readonly sha512: "sha512";
1419
- };
1420
- type SHA512RuleTypeEnum = typeof SHA512RuleTypeEnum[keyof typeof SHA512RuleTypeEnum];
1421
- /**
1422
- * Check if a given object implements the SHA512Rule interface.
3689
+ * Check if a given object implements the Refusal interface.
1423
3690
  */
1424
- declare function instanceOfSHA512Rule(value: object): value is SHA512Rule;
1425
- declare function SHA512RuleFromJSON(json: any): SHA512Rule;
1426
- declare function SHA512RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA512Rule;
1427
- declare function SHA512RuleToJSON(json: any): SHA512Rule;
1428
- declare function SHA512RuleToJSONTyped(value?: SHA512Rule | null, ignoreDiscriminator?: boolean): any;
3691
+ declare function instanceOfRefusal(value: object): value is Refusal;
3692
+ declare function RefusalFromJSON(json: any): Refusal;
3693
+ declare function RefusalFromJSONTyped(json: any, ignoreDiscriminator: boolean): Refusal;
3694
+ declare function RefusalToJSON(json: any): Refusal;
3695
+ declare function RefusalToJSONTyped(value?: Refusal | null, ignoreDiscriminator?: boolean): any;
1429
3696
  //#endregion
1430
3697
  //#region src/models/ScanRequestBody.d.ts
1431
3698
  /**
1432
3699
  * Sensitive Data Protection API
1433
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
3700
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1434
3701
  *
1435
3702
  * The version of the OpenAPI document: 0.1.0
1436
3703
  *
@@ -1459,7 +3726,7 @@ interface ScanRequestBody {
1459
3726
  */
1460
3727
  language?: string;
1461
3728
  /**
1462
- * The entity types to detect, e.g. 'name', 'email', 'location'.
3729
+ * The entity types to detect, e.g. 'person', 'email', 'phone_number'. Defaults to personal, health, payment and credential identifiers.
1463
3730
  * @type {Array<string>}
1464
3731
  * @memberof ScanRequestBody
1465
3732
  */
@@ -1470,6 +3737,12 @@ interface ScanRequestBody {
1470
3737
  * @memberof ScanRequestBody
1471
3738
  */
1472
3739
  confidence_threshold?: number | null;
3740
+ /**
3741
+ *
3742
+ * @type {Array<string>}
3743
+ * @memberof ScanRequestBody
3744
+ */
3745
+ models?: Array<string> | null;
1473
3746
  }
1474
3747
  /**
1475
3748
  * Check if a given object implements the ScanRequestBody interface.
@@ -1483,7 +3756,7 @@ declare function ScanRequestBodyToJSONTyped(value?: ScanRequestBody | null, igno
1483
3756
  //#region src/models/ScanResult.d.ts
1484
3757
  /**
1485
3758
  * Sensitive Data Protection API
1486
- * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, hash, or encrypt).
3759
+ * Detect and de-identify sensitive data (PII) in text. Use `scan` to locate sensitive entities such as emails, phone numbers, and names, and `anonymize` to transform them using configurable rules (redact, mask, replace, pseudonymize, hash, or encrypt).
1487
3760
  *
1488
3761
  * The version of the OpenAPI document: 0.1.0
1489
3762
  *
@@ -1552,6 +3825,12 @@ interface ScanResponseBody {
1552
3825
  * @memberof ScanResponseBody
1553
3826
  */
1554
3827
  usage: Usage;
3828
+ /**
3829
+ * The text model that ran, as `[id]` with the id from `GET /models`.
3830
+ * @type {Array<string>}
3831
+ * @memberof ScanResponseBody
3832
+ */
3833
+ models: Array<string>;
1555
3834
  }
1556
3835
  /**
1557
3836
  * Check if a given object implements the ScanResponseBody interface.
@@ -1652,6 +3931,15 @@ declare class PoliciesApi extends BaseAPI {
1652
3931
  }
1653
3932
  //#endregion
1654
3933
  //#region src/apis/SensitiveDataProtectionApi.d.ts
3934
+ interface AnonymizeFileRequest {
3935
+ file: Blob;
3936
+ rules?: string;
3937
+ confidence_threshold?: number;
3938
+ embedded_rules?: AnonymizeFileEmbeddedRulesEnum;
3939
+ table_headers?: AnonymizeFileTableHeadersEnum;
3940
+ models?: string;
3941
+ dicom_options?: string;
3942
+ }
1655
3943
  interface AnonymizeTextRequest {
1656
3944
  AnonymizeRequestBody: AnonymizeRequestBody;
1657
3945
  }
@@ -1663,12 +3951,22 @@ interface ScanTextRequest {
1663
3951
  */
1664
3952
  declare class SensitiveDataProtectionApi extends BaseAPI {
1665
3953
  /**
1666
- * Anonymize sensitive data in text. Scans the request text for the entities targeted by each supplied rule and applies that rule\'s operation (replace, redact, mask, hash, or encrypt) to every match. Returns the anonymized text together with a record of each transformation, including the original and resulting character ranges.
3954
+ * Anonymize sensitive data in a file. Reads the file\'s text (Office parts, cells, lines), applies the rules as `/anonymize` does, and returns the file in its own format with every change made: each value found, with where it is (`path`), and each part removed. With `Accept: application/x-ndjson`, answers with one JSON event per line: `start`, a `batch` per step of reading, then `done` (the same body) or `error`. An Office file\'s images and kept embedded files are read as files of their own beside its text: each has `task` events (queued, started, then done, stopped or failed), and its own `start` and `batch` events carry its `task` path.
3955
+ * Anonymize File
3956
+ */
3957
+ anonymizeFileRaw(requestParameters: AnonymizeFileRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<AnonymizeFileResponseBody>>;
3958
+ /**
3959
+ * Anonymize sensitive data in a file. Reads the file\'s text (Office parts, cells, lines), applies the rules as `/anonymize` does, and returns the file in its own format with every change made: each value found, with where it is (`path`), and each part removed. With `Accept: application/x-ndjson`, answers with one JSON event per line: `start`, a `batch` per step of reading, then `done` (the same body) or `error`. An Office file\'s images and kept embedded files are read as files of their own beside its text: each has `task` events (queued, started, then done, stopped or failed), and its own `start` and `batch` events carry its `task` path.
3960
+ * Anonymize File
3961
+ */
3962
+ anonymizeFile(file: Blob, rules?: string, confidence_threshold?: number, embedded_rules?: AnonymizeFileEmbeddedRulesEnum, table_headers?: AnonymizeFileTableHeadersEnum, models?: string, dicom_options?: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<AnonymizeFileResponseBody>;
3963
+ /**
3964
+ * Anonymize sensitive data in text. Scans the request text for the entities targeted by each supplied rule and applies that rule\'s operation (replace, redact, mask, pseudonymize, hash, or encrypt) to every match. Returns the anonymized text together with a record of each transformation, including the original and resulting character ranges.
1667
3965
  * Anonymize Text
1668
3966
  */
1669
3967
  anonymizeTextRaw(requestParameters: AnonymizeTextRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<AnonymizeResponseBody>>;
1670
3968
  /**
1671
- * Anonymize sensitive data in text. Scans the request text for the entities targeted by each supplied rule and applies that rule\'s operation (replace, redact, mask, hash, or encrypt) to every match. Returns the anonymized text together with a record of each transformation, including the original and resulting character ranges.
3969
+ * Anonymize sensitive data in text. Scans the request text for the entities targeted by each supplied rule and applies that rule\'s operation (replace, redact, mask, pseudonymize, hash, or encrypt) to every match. Returns the anonymized text together with a record of each transformation, including the original and resulting character ranges.
1672
3970
  * Anonymize Text
1673
3971
  */
1674
3972
  anonymizeText(AnonymizeRequestBody: AnonymizeRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise<AnonymizeResponseBody>;
@@ -1682,6 +3980,16 @@ declare class SensitiveDataProtectionApi extends BaseAPI {
1682
3980
  * Health
1683
3981
  */
1684
3982
  healthCheck(initOverrides?: RequestInit | InitOverrideFunction): Promise<string>;
3983
+ /**
3984
+ * The models this server offers: text models (`type: text`, run on every request), then image readers (`type: image`, read a file\'s images), each type largest first. A request lists ids in `models`, each type\'s in order of preference: of each type, the first `ready` runs. If none of a type it names is ready, it is refused with a 503, with `Retry-After` while one still loads. A type it names none of runs on its `default`: the first `ready`, largest first (so `default` moves as models load); at startup, before any is ready, the request waits for the first to load. An unknown id is a 422.
3985
+ * List Models
3986
+ */
3987
+ listModelsRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<ModelStatus>>>;
3988
+ /**
3989
+ * The models this server offers: text models (`type: text`, run on every request), then image readers (`type: image`, read a file\'s images), each type largest first. A request lists ids in `models`, each type\'s in order of preference: of each type, the first `ready` runs. If none of a type it names is ready, it is refused with a 503, with `Retry-After` while one still loads. A type it names none of runs on its `default`: the first `ready`, largest first (so `default` moves as models load); at startup, before any is ready, the request waits for the first to load. An unknown id is a 422.
3990
+ * List Models
3991
+ */
3992
+ listModels(initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<ModelStatus>>;
1685
3993
  /**
1686
3994
  * Scan text for sensitive data. Runs the configured detection entities over the request text and returns every match as a character range with its entity type and confidence score. Detections below the confidence threshold are omitted.
1687
3995
  * Scan Text
@@ -1693,5 +4001,25 @@ declare class SensitiveDataProtectionApi extends BaseAPI {
1693
4001
  */
1694
4002
  scanText(ScanRequestBody: ScanRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise<ScanResponseBody>;
1695
4003
  }
4004
+ /**
4005
+ * @export
4006
+ */
4007
+ declare const AnonymizeFileEmbeddedRulesEnum: {
4008
+ readonly anonymize: "anonymize";
4009
+ readonly anonymize_or_keep: "anonymize_or_keep";
4010
+ readonly remove: "remove";
4011
+ readonly keep: "keep";
4012
+ };
4013
+ type AnonymizeFileEmbeddedRulesEnum = typeof AnonymizeFileEmbeddedRulesEnum[keyof typeof AnonymizeFileEmbeddedRulesEnum];
4014
+ /**
4015
+ * @export
4016
+ */
4017
+ declare const AnonymizeFileTableHeadersEnum: {
4018
+ readonly none: "none";
4019
+ readonly first_row: "first_row";
4020
+ readonly first_column: "first_column";
4021
+ readonly last_column: "last_column";
4022
+ };
4023
+ type AnonymizeFileTableHeadersEnum = typeof AnonymizeFileTableHeadersEnum[keyof typeof AnonymizeFileTableHeadersEnum];
1696
4024
  //#endregion
1697
- export { AnonymizeRequestBody, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyRulesInner, AnonymizeRequestBodyRulesInnerFromJSON, AnonymizeRequestBodyRulesInnerFromJSONTyped, AnonymizeRequestBodyRulesInnerToJSON, AnonymizeRequestBodyRulesInnerToJSONTyped, AnonymizeRequestBodyRulesInnerTypeEnum, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeResponseBody, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyResultsInner, AnonymizeResponseBodyResultsInnerFromJSON, AnonymizeResponseBodyResultsInnerFromJSONTyped, AnonymizeResponseBodyResultsInnerToJSON, AnonymizeResponseBodyResultsInnerToJSONTyped, AnonymizeResponseBodyResultsInnerTypeEnum, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AnonymizeTextRequest, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, CreatePolicyOperationRequest, CreatePolicyRequest, CreatePolicyRequestFromJSON, CreatePolicyRequestFromJSONTyped, CreatePolicyRequestToJSON, CreatePolicyRequestToJSONTyped, DefaultConfig, DeletePolicyRequest, DetectRule, DetectRuleEntitiesInner, DetectRuleEntitiesInnerFromJSON, DetectRuleEntitiesInnerFromJSONTyped, DetectRuleEntitiesInnerToJSON, DetectRuleEntitiesInnerToJSONTyped, DetectRuleEntitiesInnerTypeEnum, DetectRuleFromJSON, DetectRuleFromJSONTyped, DetectRuleToJSON, DetectRuleToJSONTyped, DetectRuleTypeEnum, EncryptRule, EncryptRuleFromJSON, EncryptRuleFromJSONTyped, EncryptRuleToJSON, EncryptRuleToJSONTyped, EncryptRuleTypeEnum, ErrorContext, FetchAPI, FetchError, FetchParams, GetPolicyRequest, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, InitOverrideFunction, JSONApiResponse, Json, ListPolicies200Response, ListPolicies200ResponseFromJSON, ListPolicies200ResponseFromJSONTyped, ListPolicies200ResponseToJSON, ListPolicies200ResponseToJSONTyped, MaskRule, MaskRuleFromJSON, MaskRuleFromJSONTyped, MaskRuleToJSON, MaskRuleToJSONTyped, MaskRuleTypeEnum, Middleware, ModelEntity, ModelEntityFromJSON, ModelEntityFromJSONTyped, ModelEntityToJSON, ModelEntityToJSONTyped, ModelEntityTypeEnum, ModelPropertyNaming, ModelResult, ModelResultFromJSON, ModelResultFromJSONTyped, ModelResultToJSON, ModelResultToJSONTyped, ModelResultTypeEnum, PoliciesApi, Policy, PolicyDocument, PolicyDocumentFromJSON, PolicyDocumentFromJSONTyped, PolicyDocumentRulesInner, PolicyDocumentRulesInnerFromJSON, PolicyDocumentRulesInnerFromJSONTyped, PolicyDocumentRulesInnerToJSON, PolicyDocumentRulesInnerToJSONTyped, PolicyDocumentRulesInnerTypeEnum, PolicyDocumentSchemaVersionEnum, PolicyDocumentToJSON, PolicyDocumentToJSONTyped, PolicyFromJSON, PolicyFromJSONTyped, PolicySummary, PolicySummaryFromJSON, PolicySummaryFromJSONTyped, PolicySummaryToJSON, PolicySummaryToJSONTyped, PolicyToJSON, PolicyToJSONTyped, RedactRule, RedactRuleFromJSON, RedactRuleFromJSONTyped, RedactRuleToJSON, RedactRuleToJSONTyped, RedactRuleTypeEnum, RegexEntity, RegexEntityFromJSON, RegexEntityFromJSONTyped, RegexEntityToJSON, RegexEntityToJSONTyped, RegexEntityTypeEnum, RegexResult, RegexResultFromJSON, RegexResultFromJSONTyped, RegexResultToJSON, RegexResultToJSONTyped, RegexResultTypeEnum, 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, TextRange, TextRangeFromJSON, TextRangeFromJSONTyped, TextRangeToJSON, TextRangeToJSONTyped, UpdatePolicyOperationRequest, UpdatePolicyRequest, UpdatePolicyRequestFromJSON, UpdatePolicyRequestFromJSONTyped, UpdatePolicyRequestToJSON, UpdatePolicyRequestToJSONTyped, Usage, UsageFromJSON, UsageFromJSONTyped, UsageToJSON, UsageToJSONTyped, ValidationError, ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorLocInner, ValidationErrorLocInnerFromJSON, ValidationErrorLocInnerFromJSONTyped, ValidationErrorLocInnerToJSON, ValidationErrorLocInnerToJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfAnonymizeRequestBody, instanceOfAnonymizeRequestBodyRulesInner, instanceOfAnonymizeResponseBody, instanceOfAnonymizeResponseBodyResultsInner, instanceOfCreatePolicyRequest, instanceOfDetectRule, instanceOfDetectRuleEntitiesInner, instanceOfEncryptRule, instanceOfHTTPValidationError, instanceOfListPolicies200Response, instanceOfMaskRule, instanceOfModelEntity, instanceOfModelResult, instanceOfPolicy, instanceOfPolicyDocument, instanceOfPolicyDocumentRulesInner, instanceOfPolicySummary, instanceOfRedactRule, instanceOfRegexEntity, instanceOfRegexResult, instanceOfReplaceRule, instanceOfSHA256Rule, instanceOfSHA512Rule, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfTextRange, instanceOfUpdatePolicyRequest, instanceOfUsage, instanceOfValidationError, instanceOfValidationErrorLocInner, mapValues, querystring };
4025
+ export { Action, ActionFromJSON, ActionFromJSONTyped, ActionToJSON, ActionToJSONTyped, AnonymizeFileEmbeddedRulesEnum, AnonymizeFileRequest, AnonymizeFileResponseBody, AnonymizeFileResponseBodyFromJSON, AnonymizeFileResponseBodyFromJSONTyped, AnonymizeFileResponseBodyToJSON, AnonymizeFileResponseBodyToJSONTyped, AnonymizeFileTableHeadersEnum, AnonymizeRequestBody, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeResponseBody, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AnonymizeTextRequest, ApiResponse, Applied, AppliedFromJSON, AppliedFromJSONTyped, AppliedToJSON, AppliedToJSONTyped, At, AtFromJSON, AtFromJSONTyped, AtToJSON, AtToJSONTyped, AttributeSegment, AttributeSegmentFromJSON, AttributeSegmentFromJSONTyped, AttributeSegmentToJSON, AttributeSegmentToJSONTyped, AttributeSegmentTypeEnum, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, CellKind, CellKindFromJSON, CellKindFromJSONTyped, CellKindToJSON, CellKindToJSONTyped, CellNoteSegment, CellNoteSegmentFromJSON, CellNoteSegmentFromJSONTyped, CellNoteSegmentToJSON, CellNoteSegmentToJSONTyped, CellNoteSegmentTypeEnum, CellSegment, CellSegmentFromJSON, CellSegmentFromJSONTyped, CellSegmentToJSON, CellSegmentToJSONTyped, CellSegmentTypeEnum, CommentKind, CommentKindFromJSON, CommentKindFromJSONTyped, CommentKindToJSON, CommentKindToJSONTyped, CommentSegment, CommentSegmentFromJSON, CommentSegmentFromJSONTyped, CommentSegmentToJSON, CommentSegmentToJSONTyped, CommentSegmentTypeEnum, ComponentSegment, ComponentSegmentFromJSON, ComponentSegmentFromJSONTyped, ComponentSegmentToJSON, ComponentSegmentToJSONTyped, ComponentSegmentTypeEnum, Configuration, ConfigurationParameters, Consume, CreatePolicyOperationRequest, CreatePolicyRequest, CreatePolicyRequestFromJSON, CreatePolicyRequestFromJSONTyped, CreatePolicyRequestToJSON, CreatePolicyRequestToJSONTyped, DefaultConfig, DeletePolicyRequest, DetectRule, DetectRuleFromJSON, DetectRuleFromJSONTyped, DetectRuleToJSON, DetectRuleToJSONTyped, DetectRuleTypeEnum, ElementSegment, ElementSegmentFromJSON, ElementSegmentFromJSONTyped, ElementSegmentToJSON, ElementSegmentToJSONTyped, ElementSegmentTypeEnum, EncryptRule, EncryptRuleFromJSON, EncryptRuleFromJSONTyped, EncryptRuleToJSON, EncryptRuleToJSONTyped, EncryptRuleTypeEnum, EndnoteSegment, EndnoteSegmentFromJSON, EndnoteSegmentFromJSONTyped, EndnoteSegmentToJSON, EndnoteSegmentToJSONTyped, EndnoteSegmentTypeEnum, EntityBody, EntityBodyFromJSON, EntityBodyFromJSONTyped, EntityBodyToJSON, EntityBodyToJSONTyped, ErrorCode, ErrorCodeFromJSON, ErrorCodeFromJSONTyped, ErrorCodeToJSON, ErrorCodeToJSONTyped, ErrorContext, ErrorInfo, ErrorInfoFromJSON, ErrorInfoFromJSONTyped, ErrorInfoToJSON, ErrorInfoToJSONTyped, FetchAPI, FetchError, FetchParams, FieldError, FieldErrorCode, FieldErrorCodeFromJSON, FieldErrorCodeFromJSONTyped, FieldErrorCodeToJSON, FieldErrorCodeToJSONTyped, FieldErrorFromJSON, FieldErrorFromJSONTyped, FieldErrorPathInner, FieldErrorPathInnerFromJSON, FieldErrorPathInnerFromJSONTyped, FieldErrorPathInnerToJSON, FieldErrorPathInnerToJSONTyped, FieldErrorToJSON, FieldErrorToJSONTyped, FieldSegment, FieldSegmentFromJSON, FieldSegmentFromJSONTyped, FieldSegmentToJSON, FieldSegmentToJSONTyped, FieldSegmentTypeEnum, FileAttributeResult, FileAttributeResultFromJSON, FileAttributeResultFromJSONTyped, FileAttributeResultToJSON, FileAttributeResultToJSONTyped, FileAttributeResultTypeEnum, FileEmbeddedResult, FileEmbeddedResultFromJSON, FileEmbeddedResultFromJSONTyped, FileEmbeddedResultToJSON, FileEmbeddedResultToJSONTyped, FileEmbeddedResultTypeEnum, FileModelResult, FileModelResultFromJSON, FileModelResultFromJSONTyped, FileModelResultToJSON, FileModelResultToJSONTyped, FileModelResultTypeEnum, FileRegexResult, FileRegexResultFromJSON, FileRegexResultFromJSONTyped, FileRegexResultToJSON, FileRegexResultToJSONTyped, FileRegexResultTypeEnum, FileResult, FileResultFromJSON, FileResultFromJSONTyped, FileResultToJSON, FileResultToJSONTyped, FootnoteSegment, FootnoteSegmentFromJSON, FootnoteSegmentFromJSONTyped, FootnoteSegmentToJSON, FootnoteSegmentToJSONTyped, FootnoteSegmentTypeEnum, FrameSegment, FrameSegmentFromJSON, FrameSegmentFromJSONTyped, FrameSegmentToJSON, FrameSegmentToJSONTyped, FrameSegmentTypeEnum, GetPolicyRequest, HMACRule, HMACRuleFromJSON, HMACRuleFromJSONTyped, HMACRuleToJSON, HMACRuleToJSONTyped, HMACRuleTypeEnum, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, HeaderFooterSegment, HeaderFooterSegmentFromJSON, HeaderFooterSegmentFromJSONTyped, HeaderFooterSegmentToJSON, HeaderFooterSegmentToJSONTyped, HeaderFooterSegmentTypeEnum, IndexSegment, IndexSegmentFromJSON, IndexSegmentFromJSONTyped, IndexSegmentToJSON, IndexSegmentToJSONTyped, IndexSegmentTypeEnum, InitOverrideFunction, ItemSegment, ItemSegmentFromJSON, ItemSegmentFromJSONTyped, ItemSegmentToJSON, ItemSegmentToJSONTyped, ItemSegmentTypeEnum, JSONApiResponse, Json, KeySegment, KeySegmentFromJSON, KeySegmentFromJSONTyped, KeySegmentToJSON, KeySegmentToJSONTyped, KeySegmentTypeEnum, Kind, KindFromJSON, KindFromJSONTyped, KindToJSON, KindToJSONTyped, LineSegment, LineSegmentFromJSON, LineSegmentFromJSONTyped, LineSegmentToJSON, LineSegmentToJSONTyped, LineSegmentTypeEnum, ListPolicies200Response, ListPolicies200ResponseFromJSON, ListPolicies200ResponseFromJSONTyped, ListPolicies200ResponseToJSON, ListPolicies200ResponseToJSONTyped, MaskRule, MaskRuleFromJSON, MaskRuleFromJSONTyped, MaskRuleToJSON, MaskRuleToJSONTyped, MaskRuleTypeEnum, Middleware, ModelEntity, ModelEntityFromJSON, ModelEntityFromJSONTyped, ModelEntityToJSON, ModelEntityToJSONTyped, ModelEntityTypeEnum, ModelError, ModelErrorFromJSON, ModelErrorFromJSONTyped, ModelErrorToJSON, ModelErrorToJSONTyped, ModelPropertyNaming, ModelResult, ModelResultFromJSON, ModelResultFromJSONTyped, ModelResultToJSON, ModelResultToJSONTyped, ModelResultTypeEnum, ModelStatus, ModelStatusFromJSON, ModelStatusFromJSONTyped, ModelStatusToJSON, ModelStatusToJSONTyped, ModelType, ModelTypeFromJSON, ModelTypeFromJSONTyped, ModelTypeToJSON, ModelTypeToJSONTyped, ParagraphKind, ParagraphKindFromJSON, ParagraphKindFromJSONTyped, ParagraphKindToJSON, ParagraphKindToJSONTyped, ParagraphSegment, ParagraphSegmentFromJSON, ParagraphSegmentFromJSONTyped, ParagraphSegmentToJSON, ParagraphSegmentToJSONTyped, ParagraphSegmentTypeEnum, PartSegment, PartSegmentFromJSON, PartSegmentFromJSONTyped, PartSegmentToJSON, PartSegmentToJSONTyped, PartSegmentTypeEnum, PathSegment, PathSegmentFromJSON, PathSegmentFromJSONTyped, PathSegmentToJSON, PathSegmentToJSONTyped, PoliciesApi, Policy, PolicyDocument, PolicyDocumentFromJSON, PolicyDocumentFromJSONTyped, PolicyDocumentRulesInner, PolicyDocumentRulesInnerFromJSON, PolicyDocumentRulesInnerFromJSONTyped, PolicyDocumentRulesInnerToJSON, PolicyDocumentRulesInnerToJSONTyped, PolicyDocumentSchemaVersionEnum, PolicyDocumentToJSON, PolicyDocumentToJSONTyped, PolicyFromJSON, PolicyFromJSONTyped, PolicySummary, PolicySummaryFromJSON, PolicySummaryFromJSONTyped, PolicySummaryToJSON, PolicySummaryToJSONTyped, PolicyToJSON, PolicyToJSONTyped, PropertySegment, PropertySegmentFromJSON, PropertySegmentFromJSONTyped, PropertySegmentToJSON, PropertySegmentToJSONTyped, PropertySegmentTypeEnum, PseudonymizeRule, PseudonymizeRuleFromJSON, PseudonymizeRuleFromJSONTyped, PseudonymizeRuleToJSON, PseudonymizeRuleToJSONTyped, PseudonymizeRuleTypeEnum, RangeKind, RangeKindFromJSON, RangeKindFromJSONTyped, RangeKindToJSON, RangeKindToJSONTyped, RangeSegment, RangeSegmentFromJSON, RangeSegmentFromJSONTyped, RangeSegmentToJSON, RangeSegmentToJSONTyped, RangeSegmentTypeEnum, RedactRule, RedactRuleFromJSON, RedactRuleFromJSONTyped, RedactRuleToJSON, RedactRuleToJSONTyped, RedactRuleTypeEnum, Refusal, RefusalFromJSON, RefusalFromJSONTyped, RefusalToJSON, RefusalToJSONTyped, RegexEntity, RegexEntityFromJSON, RegexEntityFromJSONTyped, RegexEntityToJSON, RegexEntityToJSONTyped, RegexEntityTypeEnum, RegexResult, RegexResultFromJSON, RegexResultFromJSONTyped, RegexResultToJSON, RegexResultToJSONTyped, RegexResultTypeEnum, RegionSegment, RegionSegmentFromJSON, RegionSegmentFromJSONTyped, RegionSegmentToJSON, RegionSegmentToJSONTyped, RegionSegmentTypeEnum, ReplaceRule, ReplaceRuleFromJSON, ReplaceRuleFromJSONTyped, ReplaceRuleToJSON, ReplaceRuleToJSONTyped, ReplaceRuleTypeEnum, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, RuleBody, RuleBodyFromJSON, RuleBodyFromJSONTyped, RuleBodyToJSON, RuleBodyToJSONTyped, 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, SegmentSegment, SegmentSegmentFromJSON, SegmentSegmentFromJSONTyped, SegmentSegmentToJSON, SegmentSegmentToJSONTyped, SegmentSegmentTypeEnum, SensitiveDataProtectionApi, ShapeKind, ShapeKindFromJSON, ShapeKindFromJSONTyped, ShapeKindToJSON, ShapeKindToJSONTyped, ShapeSegment, ShapeSegmentFromJSON, ShapeSegmentFromJSONTyped, ShapeSegmentToJSON, ShapeSegmentToJSONTyped, ShapeSegmentTypeEnum, SheetSegment, SheetSegmentFromJSON, SheetSegmentFromJSONTyped, SheetSegmentToJSON, SheetSegmentToJSONTyped, SheetSegmentTypeEnum, SlideSegment, SlideSegmentFromJSON, SlideSegmentFromJSONTyped, SlideSegmentToJSON, SlideSegmentToJSONTyped, SlideSegmentTypeEnum, SpeakerNotesSegment, SpeakerNotesSegmentFromJSON, SpeakerNotesSegmentFromJSONTyped, SpeakerNotesSegmentToJSON, SpeakerNotesSegmentToJSONTyped, SpeakerNotesSegmentTypeEnum, TableSegment, TableSegmentFromJSON, TableSegmentFromJSONTyped, TableSegmentToJSON, TableSegmentToJSONTyped, TableSegmentTypeEnum, TagSegment, TagSegmentFromJSON, TagSegmentFromJSONTyped, TagSegmentToJSON, TagSegmentToJSONTyped, TagSegmentTypeEnum, TextApiResponse, TextRange, TextRangeFromJSON, TextRangeFromJSONTyped, TextRangeToJSON, TextRangeToJSONTyped, TextSegment, TextSegmentFromJSON, TextSegmentFromJSONTyped, TextSegmentToJSON, TextSegmentToJSONTyped, TextSegmentTypeEnum, UpdatePolicyOperationRequest, UpdatePolicyRequest, UpdatePolicyRequestFromJSON, UpdatePolicyRequestFromJSONTyped, UpdatePolicyRequestToJSON, UpdatePolicyRequestToJSONTyped, Usage, UsageFromJSON, UsageFromJSONTyped, UsageToJSON, UsageToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfAction, instanceOfAnonymizeFileResponseBody, instanceOfAnonymizeRequestBody, instanceOfAnonymizeResponseBody, instanceOfAt, instanceOfAttributeSegment, instanceOfCellNoteSegment, instanceOfCellSegment, instanceOfCommentKind, instanceOfCommentSegment, instanceOfComponentSegment, instanceOfCreatePolicyRequest, instanceOfDetectRule, instanceOfElementSegment, instanceOfEncryptRule, instanceOfEndnoteSegment, instanceOfErrorCode, instanceOfErrorInfo, instanceOfFieldError, instanceOfFieldErrorCode, instanceOfFieldErrorPathInner, instanceOfFieldSegment, instanceOfFileAttributeResult, instanceOfFileEmbeddedResult, instanceOfFileModelResult, instanceOfFileRegexResult, instanceOfFootnoteSegment, instanceOfFrameSegment, instanceOfHMACRule, instanceOfHeaderFooterSegment, instanceOfIndexSegment, instanceOfItemSegment, instanceOfKeySegment, instanceOfLineSegment, instanceOfListPolicies200Response, instanceOfMaskRule, instanceOfModelEntity, instanceOfModelError, instanceOfModelResult, instanceOfModelStatus, instanceOfParagraphSegment, instanceOfPartSegment, instanceOfPolicy, instanceOfPolicyDocument, instanceOfPolicySummary, instanceOfPropertySegment, instanceOfPseudonymizeRule, instanceOfRangeKind, instanceOfRangeSegment, instanceOfRedactRule, instanceOfRefusal, instanceOfRegexEntity, instanceOfRegexResult, instanceOfRegionSegment, instanceOfReplaceRule, instanceOfSHA256Rule, instanceOfSHA512Rule, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfSegmentSegment, instanceOfShapeSegment, instanceOfSheetSegment, instanceOfSlideSegment, instanceOfSpeakerNotesSegment, instanceOfTableSegment, instanceOfTagSegment, instanceOfTextRange, instanceOfTextSegment, instanceOfUpdatePolicyRequest, instanceOfUsage, mapValues, querystring };