//#region src/runtime.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare const BASE_PATH: string; interface ConfigurationParameters { basePath?: string; fetchApi?: FetchAPI; middleware?: Middleware[]; queryParamsStringify?: (params: HTTPQuery) => string; username?: string; password?: string; apiKey?: string | Promise | ((name: string) => string | Promise); accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); headers?: HTTPHeaders; credentials?: RequestCredentials; } declare class Configuration { private configuration; constructor(configuration?: ConfigurationParameters); set config(configuration: Configuration); get basePath(): string; get fetchApi(): FetchAPI | undefined; get middleware(): Middleware[]; get queryParamsStringify(): (params: HTTPQuery) => string; get username(): string | undefined; get password(): string | undefined; get apiKey(): ((name: string) => string | Promise) | undefined; get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; get headers(): HTTPHeaders | undefined; get credentials(): RequestCredentials | undefined; } declare const DefaultConfig: Configuration; /** * This is the base class for all generated API classes. */ declare class BaseAPI { protected configuration: Configuration; private static readonly jsonRegex; private middleware; constructor(configuration?: Configuration); withMiddleware(this: T, ...middlewares: Middleware[]): T; withPreMiddleware(this: T, ...preMiddlewares: Array): T; withPostMiddleware(this: T, ...postMiddlewares: Array): T; /** * Check if the given MIME is a JSON MIME. * JSON MIME examples: * application/json * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json * @param mime - MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ protected isJsonMime(mime: string | null | undefined): boolean; protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; private createFetchParams; private fetchApi; /** * Create a shallow clone of `this` by constructing a new instance * and then shallow cloning data members. */ private clone; } declare class ResponseError extends Error { response: Response; name: "ResponseError"; constructor(response: Response, msg?: string); } declare class FetchError extends Error { cause: Error; name: "FetchError"; constructor(cause: Error, msg?: string); } declare class RequiredError extends Error { field: string; name: "RequiredError"; constructor(field: string, msg?: string); } declare const COLLECTION_FORMATS: { csv: string; ssv: string; tsv: string; pipes: string; }; type FetchAPI = WindowOrWorkerGlobalScope['fetch']; type Json = any; type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; type HTTPHeaders = { [key: string]: string; }; type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; }; type HTTPBody = Json | FormData | URLSearchParams; type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody; }; type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; type InitOverrideFunction = (requestContext: { init: HTTPRequestInit; context: RequestOpts; }) => Promise; interface FetchParams { url: string; init: RequestInit; } interface RequestOpts { path: string; method: HTTPMethod; headers: HTTPHeaders; query?: HTTPQuery; body?: HTTPBody; } declare function querystring(params: HTTPQuery, prefix?: string): string; declare function exists(json: any, key: string): boolean; declare function mapValues(data: any, fn: (item: any) => any): { [key: string]: any; }; declare function canConsumeForm(consumes: Consume[]): boolean; interface Consume { contentType: string; } interface RequestContext { fetch: FetchAPI; url: string; init: RequestInit; } interface ResponseContext { fetch: FetchAPI; url: string; init: RequestInit; response: Response; } interface ErrorContext { fetch: FetchAPI; url: string; init: RequestInit; error: unknown; response?: Response; } interface Middleware { pre?(context: RequestContext): Promise; post?(context: ResponseContext): Promise; onError?(context: ErrorContext): Promise; } interface ApiResponse { raw: Response; value(): Promise; } interface ResponseTransformer { (json: any): T; } declare class JSONApiResponse { raw: Response; private transformer; constructor(raw: Response, transformer?: ResponseTransformer); value(): Promise; } declare class VoidApiResponse { raw: Response; constructor(raw: Response); value(): Promise; } declare class BlobApiResponse { raw: Response; constructor(raw: Response); value(): Promise; } declare class TextApiResponse { raw: Response; constructor(raw: Response); value(): Promise; } //#endregion //#region src/models/Entities.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface Entities */ interface Entities {} /** * Check if a given object implements the Entities interface. */ declare function instanceOfEntities(value: object): value is Entities; declare function EntitiesFromJSON(json: any): Entities; declare function EntitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Entities; declare function EntitiesToJSON(json: any): Entities; declare function EntitiesToJSONTyped(value?: Entities | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/EncryptRule.d.ts /** * * @export * @interface EncryptRule */ interface EncryptRule { /** * * @type {string} * @memberof EncryptRule */ type?: EncryptRuleTypeEnum; /** * * @type {Entities} * @memberof EncryptRule */ entities: Entities; /** * * @type {string} * @memberof EncryptRule */ key?: string; } /** * @export */ declare const EncryptRuleTypeEnum: { readonly encrypt: "encrypt"; }; type EncryptRuleTypeEnum = typeof EncryptRuleTypeEnum[keyof typeof EncryptRuleTypeEnum]; /** * Check if a given object implements the EncryptRule interface. */ declare function instanceOfEncryptRule(value: object): value is EncryptRule; declare function EncryptRuleFromJSON(json: any): EncryptRule; declare function EncryptRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptRule; declare function EncryptRuleToJSON(json: any): EncryptRule; declare function EncryptRuleToJSONTyped(value?: EncryptRule | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/MaskRule.d.ts /** * * @export * @interface MaskRule */ interface MaskRule { /** * * @type {string} * @memberof MaskRule */ type?: MaskRuleTypeEnum; /** * * @type {Entities} * @memberof MaskRule */ entities: Entities; /** * * @type {string} * @memberof MaskRule */ masking_char?: string; /** * * @type {number} * @memberof MaskRule */ chars_to_mask?: number | null; /** * * @type {boolean} * @memberof MaskRule */ from_end?: boolean; } /** * @export */ declare const MaskRuleTypeEnum: { readonly mask: "mask"; }; type MaskRuleTypeEnum = typeof MaskRuleTypeEnum[keyof typeof MaskRuleTypeEnum]; /** * Check if a given object implements the MaskRule interface. */ declare function instanceOfMaskRule(value: object): value is MaskRule; declare function MaskRuleFromJSON(json: any): MaskRule; declare function MaskRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaskRule; declare function MaskRuleToJSON(json: any): MaskRule; declare function MaskRuleToJSONTyped(value?: MaskRule | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/RedactRule.d.ts /** * * @export * @interface RedactRule */ interface RedactRule { /** * * @type {string} * @memberof RedactRule */ type?: RedactRuleTypeEnum; /** * * @type {Entities} * @memberof RedactRule */ entities: Entities; } /** * @export */ declare const RedactRuleTypeEnum: { readonly redact: "redact"; }; type RedactRuleTypeEnum = typeof RedactRuleTypeEnum[keyof typeof RedactRuleTypeEnum]; /** * Check if a given object implements the RedactRule interface. */ declare function instanceOfRedactRule(value: object): value is RedactRule; declare function RedactRuleFromJSON(json: any): RedactRule; declare function RedactRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedactRule; declare function RedactRuleToJSON(json: any): RedactRule; declare function RedactRuleToJSONTyped(value?: RedactRule | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ReplaceRule.d.ts /** * * @export * @interface ReplaceRule */ interface ReplaceRule { /** * * @type {string} * @memberof ReplaceRule */ type?: ReplaceRuleTypeEnum; /** * * @type {Entities} * @memberof ReplaceRule */ entities: Entities; /** * * @type {string} * @memberof ReplaceRule */ replacement?: string; } /** * @export */ declare const ReplaceRuleTypeEnum: { readonly replace: "replace"; }; type ReplaceRuleTypeEnum = typeof ReplaceRuleTypeEnum[keyof typeof ReplaceRuleTypeEnum]; /** * Check if a given object implements the ReplaceRule interface. */ declare function instanceOfReplaceRule(value: object): value is ReplaceRule; declare function ReplaceRuleFromJSON(json: any): ReplaceRule; declare function ReplaceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplaceRule; declare function ReplaceRuleToJSON(json: any): ReplaceRule; declare function ReplaceRuleToJSONTyped(value?: ReplaceRule | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/SHA256Rule.d.ts /** * * @export * @interface SHA256Rule */ interface SHA256Rule { /** * * @type {string} * @memberof SHA256Rule */ type?: SHA256RuleTypeEnum; /** * * @type {Entities} * @memberof SHA256Rule */ entities: Entities; } /** * @export */ declare const SHA256RuleTypeEnum: { readonly sha256: "sha256"; }; type SHA256RuleTypeEnum = typeof SHA256RuleTypeEnum[keyof typeof SHA256RuleTypeEnum]; /** * Check if a given object implements the SHA256Rule interface. */ declare function instanceOfSHA256Rule(value: object): value is SHA256Rule; declare function SHA256RuleFromJSON(json: any): SHA256Rule; declare function SHA256RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA256Rule; declare function SHA256RuleToJSON(json: any): SHA256Rule; declare function SHA256RuleToJSONTyped(value?: SHA256Rule | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/SHA512Rule.d.ts /** * * @export * @interface SHA512Rule */ interface SHA512Rule { /** * * @type {string} * @memberof SHA512Rule */ type?: SHA512RuleTypeEnum; /** * * @type {Entities} * @memberof SHA512Rule */ entities: Entities; } /** * @export */ declare const SHA512RuleTypeEnum: { readonly sha512: "sha512"; }; type SHA512RuleTypeEnum = typeof SHA512RuleTypeEnum[keyof typeof SHA512RuleTypeEnum]; /** * Check if a given object implements the SHA512Rule interface. */ declare function instanceOfSHA512Rule(value: object): value is SHA512Rule; declare function SHA512RuleFromJSON(json: any): SHA512Rule; declare function SHA512RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHA512Rule; declare function SHA512RuleToJSON(json: any): SHA512Rule; declare function SHA512RuleToJSONTyped(value?: SHA512Rule | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/AnonymizeRequestBodyRulesInner.d.ts /** * @type AnonymizeRequestBodyRulesInner * * @export */ type AnonymizeRequestBodyRulesInner = { type: 'encrypt'; } & EncryptRule | { type: 'mask'; } & MaskRule | { type: 'redact'; } & RedactRule | { type: 'replace'; } & ReplaceRule | { type: 'sha256'; } & SHA256Rule | { type: 'sha512'; } & SHA512Rule; declare function AnonymizeRequestBodyRulesInnerFromJSON(json: any): AnonymizeRequestBodyRulesInner; declare function AnonymizeRequestBodyRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBodyRulesInner; declare function AnonymizeRequestBodyRulesInnerToJSON(json: any): any; declare function AnonymizeRequestBodyRulesInnerToJSONTyped(value?: AnonymizeRequestBodyRulesInner | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/AnonymizeRequestBody.d.ts /** * * @export * @interface AnonymizeRequestBody */ interface AnonymizeRequestBody { /** * * @type {string} * @memberof AnonymizeRequestBody */ text: string; /** * * @type {Array} * @memberof AnonymizeRequestBody */ rules: Array; /** * * @type {number} * @memberof AnonymizeRequestBody */ confidence_threshold?: number | null; } /** * Check if a given object implements the AnonymizeRequestBody interface. */ declare function instanceOfAnonymizeRequestBody(value: object): value is AnonymizeRequestBody; declare function AnonymizeRequestBodyFromJSON(json: any): AnonymizeRequestBody; declare function AnonymizeRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestBody; declare function AnonymizeRequestBodyToJSON(json: any): AnonymizeRequestBody; declare function AnonymizeRequestBodyToJSONTyped(value?: AnonymizeRequestBody | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/TextRange.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * A character range within a text, carrying the substring it covers. * @export * @interface TextRange */ interface TextRange { /** * Start character offset (inclusive). * @type {number} * @memberof TextRange */ start: number; /** * End character offset (exclusive). * @type {number} * @memberof TextRange */ end: number; /** * The substring at [start, end). * @type {string} * @memberof TextRange */ value: string; } /** * Check if a given object implements the TextRange interface. */ declare function instanceOfTextRange(value: object): value is TextRange; declare function TextRangeFromJSON(json: any): TextRange; declare function TextRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextRange; declare function TextRangeToJSON(json: any): TextRange; declare function TextRangeToJSONTyped(value?: TextRange | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ModelResult.d.ts /** * Record of an AI model detection and its anonymization. * * Created when an AI model identifies an entity (e.g. PERSON, EMAIL) * and a rule anonymizes the matched text. * @export * @interface ModelResult */ interface ModelResult { /** * * @type {string} * @memberof ModelResult */ type?: ModelResultTypeEnum; /** * The rule type that was applied, e.g. 'replace', 'mask'. * @type {string} * @memberof ModelResult */ rule: string; /** * The model entity type that matched, e.g. 'PERSON'. * @type {string} * @memberof ModelResult */ value: string; /** * The detected range in the original text. * @type {TextRange} * @memberof ModelResult */ input: TextRange; /** * The anonymized range in the result text. * @type {TextRange} * @memberof ModelResult */ output: TextRange; /** * Confidence score from the AI model (0.0–1.0). * @type {number} * @memberof ModelResult */ score?: number; } /** * @export */ declare const ModelResultTypeEnum: { readonly model: "model"; }; type ModelResultTypeEnum = typeof ModelResultTypeEnum[keyof typeof ModelResultTypeEnum]; /** * Check if a given object implements the ModelResult interface. */ declare function instanceOfModelResult(value: object): value is ModelResult; declare function ModelResultFromJSON(json: any): ModelResult; declare function ModelResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelResult; declare function ModelResultToJSON(json: any): ModelResult; declare function ModelResultToJSONTyped(value?: ModelResult | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/RegexResult.d.ts /** * Record of a regex detection and its anonymization. * * Created when a regex pattern matches text * and a rule anonymizes the matched text. * @export * @interface RegexResult */ interface RegexResult { /** * * @type {string} * @memberof RegexResult */ type?: RegexResultTypeEnum; /** * The rule type that was applied, e.g. 'replace', 'mask'. * @type {string} * @memberof RegexResult */ rule: string; /** * The regex pattern that matched. * @type {string} * @memberof RegexResult */ value: string; /** * The detected range in the original text. * @type {TextRange} * @memberof RegexResult */ input: TextRange; /** * The anonymized range in the result text. * @type {TextRange} * @memberof RegexResult */ output: TextRange; } /** * @export */ declare const RegexResultTypeEnum: { readonly regex: "regex"; }; type RegexResultTypeEnum = typeof RegexResultTypeEnum[keyof typeof RegexResultTypeEnum]; /** * Check if a given object implements the RegexResult interface. */ declare function instanceOfRegexResult(value: object): value is RegexResult; declare function RegexResultFromJSON(json: any): RegexResult; declare function RegexResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexResult; declare function RegexResultToJSON(json: any): RegexResult; declare function RegexResultToJSONTyped(value?: RegexResult | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/AnonymizeResponseBodyResultsInner.d.ts /** * @type AnonymizeResponseBodyResultsInner * * @export */ type AnonymizeResponseBodyResultsInner = { type: 'model'; } & ModelResult | { type: 'regex'; } & RegexResult; declare function AnonymizeResponseBodyResultsInnerFromJSON(json: any): AnonymizeResponseBodyResultsInner; declare function AnonymizeResponseBodyResultsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseBodyResultsInner; declare function AnonymizeResponseBodyResultsInnerToJSON(json: any): any; declare function AnonymizeResponseBodyResultsInnerToJSONTyped(value?: AnonymizeResponseBodyResultsInner | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/AnonymizeResponseBody.d.ts /** * * @export * @interface AnonymizeResponseBody */ interface AnonymizeResponseBody { /** * * @type {string} * @memberof AnonymizeResponseBody */ text: string; /** * * @type {Array} * @memberof AnonymizeResponseBody */ results?: Array; } /** * Check if a given object implements the AnonymizeResponseBody interface. */ declare function instanceOfAnonymizeResponseBody(value: object): value is AnonymizeResponseBody; declare function AnonymizeResponseBodyFromJSON(json: any): AnonymizeResponseBody; declare function AnonymizeResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseBody; declare function AnonymizeResponseBodyToJSON(json: any): AnonymizeResponseBody; declare function AnonymizeResponseBodyToJSONTyped(value?: AnonymizeResponseBody | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ModelEntity.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ModelEntity */ interface ModelEntity { /** * * @type {string} * @memberof ModelEntity */ type?: ModelEntityTypeEnum; /** * * @type {string} * @memberof ModelEntity */ value: string; } /** * @export */ declare const ModelEntityTypeEnum: { readonly model: "model"; }; type ModelEntityTypeEnum = typeof ModelEntityTypeEnum[keyof typeof ModelEntityTypeEnum]; /** * Check if a given object implements the ModelEntity interface. */ declare function instanceOfModelEntity(value: object): value is ModelEntity; declare function ModelEntityFromJSON(json: any): ModelEntity; declare function ModelEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelEntity; declare function ModelEntityToJSON(json: any): ModelEntity; declare function ModelEntityToJSONTyped(value?: ModelEntity | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/RegexEntity.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RegexEntity */ interface RegexEntity { /** * * @type {string} * @memberof RegexEntity */ type?: RegexEntityTypeEnum; /** * * @type {string} * @memberof RegexEntity */ value: string; } /** * @export */ declare const RegexEntityTypeEnum: { readonly regex: "regex"; }; type RegexEntityTypeEnum = typeof RegexEntityTypeEnum[keyof typeof RegexEntityTypeEnum]; /** * Check if a given object implements the RegexEntity interface. */ declare function instanceOfRegexEntity(value: object): value is RegexEntity; declare function RegexEntityFromJSON(json: any): RegexEntity; declare function RegexEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexEntity; declare function RegexEntityToJSON(json: any): RegexEntity; declare function RegexEntityToJSONTyped(value?: RegexEntity | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/EntitiesAnyOfInner.d.ts /** * @type EntitiesAnyOfInner * * @export */ type EntitiesAnyOfInner = { type: 'model'; } & ModelEntity | { type: 'regex'; } & RegexEntity; declare function EntitiesAnyOfInnerFromJSON(json: any): EntitiesAnyOfInner; declare function EntitiesAnyOfInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntitiesAnyOfInner; declare function EntitiesAnyOfInnerToJSON(json: any): any; declare function EntitiesAnyOfInnerToJSONTyped(value?: EntitiesAnyOfInner | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ValidationErrorLocInner.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ValidationErrorLocInner */ interface ValidationErrorLocInner {} /** * Check if a given object implements the ValidationErrorLocInner interface. */ declare function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner; declare function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner; declare function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner; declare function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner; declare function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ValidationError.d.ts /** * * @export * @interface ValidationError */ interface ValidationError { /** * * @type {Array} * @memberof ValidationError */ loc: Array; /** * * @type {string} * @memberof ValidationError */ msg: string; /** * * @type {string} * @memberof ValidationError */ type: string; } /** * Check if a given object implements the ValidationError interface. */ declare function instanceOfValidationError(value: object): value is ValidationError; declare function ValidationErrorFromJSON(json: any): ValidationError; declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError; declare function ValidationErrorToJSON(json: any): ValidationError; declare function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/HTTPValidationError.d.ts /** * * @export * @interface HTTPValidationError */ interface HTTPValidationError { /** * * @type {Array} * @memberof HTTPValidationError */ detail?: Array; } /** * Check if a given object implements the HTTPValidationError interface. */ declare function instanceOfHTTPValidationError(value: object): value is HTTPValidationError; declare function HTTPValidationErrorFromJSON(json: any): HTTPValidationError; declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError; declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError; declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ScanRequestBody.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ScanRequestBody */ interface ScanRequestBody { /** * * @type {string} * @memberof ScanRequestBody */ text: string; /** * * @type {string} * @memberof ScanRequestBody */ language?: string; /** * * @type {Array} * @memberof ScanRequestBody */ entities?: Array; /** * * @type {number} * @memberof ScanRequestBody */ confidence_threshold?: number | null; } /** * Check if a given object implements the ScanRequestBody interface. */ declare function instanceOfScanRequestBody(value: object): value is ScanRequestBody; declare function ScanRequestBodyFromJSON(json: any): ScanRequestBody; declare function ScanRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanRequestBody; declare function ScanRequestBodyToJSON(json: any): ScanRequestBody; declare function ScanRequestBodyToJSONTyped(value?: ScanRequestBody | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ScanResult.d.ts /** * Sensitive Data Protection API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ScanResult */ interface ScanResult { /** * * @type {number} * @memberof ScanResult */ start: number; /** * * @type {number} * @memberof ScanResult */ end: number; /** * * @type {number} * @memberof ScanResult */ score: number; /** * * @type {string} * @memberof ScanResult */ entity_type: string; } /** * Check if a given object implements the ScanResult interface. */ declare function instanceOfScanResult(value: object): value is ScanResult; declare function ScanResultFromJSON(json: any): ScanResult; declare function ScanResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanResult; declare function ScanResultToJSON(json: any): ScanResult; declare function ScanResultToJSONTyped(value?: ScanResult | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/models/ScanResponseBody.d.ts /** * * @export * @interface ScanResponseBody */ interface ScanResponseBody { /** * * @type {Array} * @memberof ScanResponseBody */ results: Array; } /** * Check if a given object implements the ScanResponseBody interface. */ declare function instanceOfScanResponseBody(value: object): value is ScanResponseBody; declare function ScanResponseBodyFromJSON(json: any): ScanResponseBody; declare function ScanResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanResponseBody; declare function ScanResponseBodyToJSON(json: any): ScanResponseBody; declare function ScanResponseBodyToJSONTyped(value?: ScanResponseBody | null, ignoreDiscriminator?: boolean): any; //#endregion //#region src/apis/SensitiveDataProtectionApi.d.ts interface AnonymizeTextRequest { AnonymizeRequestBody: AnonymizeRequestBody; } interface ScanTextRequest { ScanRequestBody: ScanRequestBody; } /** * */ declare class SensitiveDataProtectionApi extends BaseAPI { /** * Anonymize the provided text. * Anonymize Text */ anonymizeTextRaw(requestParameters: AnonymizeTextRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise>; /** * Anonymize the provided text. * Anonymize Text */ anonymizeText(AnonymizeRequestBody: AnonymizeRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise; /** * Return basic health probe result. * Health */ healthCheckRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise>; /** * Return basic health probe result. * Health */ healthCheck(initOverrides?: RequestInit | InitOverrideFunction): Promise; /** * Scan the provided text for sensitive data. * Scan Text */ scanTextRaw(requestParameters: ScanTextRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise>; /** * Scan the provided text for sensitive data. * Scan Text */ scanText(ScanRequestBody: ScanRequestBody, initOverrides?: RequestInit | InitOverrideFunction): Promise; } //#endregion export { AnonymizeRequestBody, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyRulesInner, AnonymizeRequestBodyRulesInnerFromJSON, AnonymizeRequestBodyRulesInnerFromJSONTyped, AnonymizeRequestBodyRulesInnerToJSON, AnonymizeRequestBodyRulesInnerToJSONTyped, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeResponseBody, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyResultsInner, AnonymizeResponseBodyResultsInnerFromJSON, AnonymizeResponseBodyResultsInnerFromJSONTyped, AnonymizeResponseBodyResultsInnerToJSON, AnonymizeResponseBodyResultsInnerToJSONTyped, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AnonymizeTextRequest, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultConfig, EncryptRule, EncryptRuleFromJSON, EncryptRuleFromJSONTyped, EncryptRuleToJSON, EncryptRuleToJSONTyped, EncryptRuleTypeEnum, Entities, EntitiesAnyOfInner, EntitiesAnyOfInnerFromJSON, EntitiesAnyOfInnerFromJSONTyped, EntitiesAnyOfInnerToJSON, EntitiesAnyOfInnerToJSONTyped, EntitiesFromJSON, EntitiesFromJSONTyped, EntitiesToJSON, EntitiesToJSONTyped, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, InitOverrideFunction, JSONApiResponse, Json, MaskRule, MaskRuleFromJSON, MaskRuleFromJSONTyped, MaskRuleToJSON, MaskRuleToJSONTyped, MaskRuleTypeEnum, Middleware, ModelEntity, ModelEntityFromJSON, ModelEntityFromJSONTyped, ModelEntityToJSON, ModelEntityToJSONTyped, ModelEntityTypeEnum, ModelPropertyNaming, ModelResult, ModelResultFromJSON, ModelResultFromJSONTyped, ModelResultToJSON, ModelResultToJSONTyped, ModelResultTypeEnum, 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, ValidationError, ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorLocInner, ValidationErrorLocInnerFromJSON, ValidationErrorLocInnerFromJSONTyped, ValidationErrorLocInnerToJSON, ValidationErrorLocInnerToJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfAnonymizeRequestBody, instanceOfAnonymizeResponseBody, instanceOfEncryptRule, instanceOfEntities, instanceOfHTTPValidationError, instanceOfMaskRule, instanceOfModelEntity, instanceOfModelResult, instanceOfRedactRule, instanceOfRegexEntity, instanceOfRegexResult, instanceOfReplaceRule, instanceOfSHA256Rule, instanceOfSHA512Rule, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfTextRange, instanceOfValidationError, instanceOfValidationErrorLocInner, mapValues, querystring };