/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { CaptchaComplexity, CaptchaPreCheckType, CaptchaChallengeType, Captcha, SecurityRule, OverrideVariant, CaptchaSecretKey } from '../../../../yandex/cloud/smartcaptcha/v1/captcha'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.smartcaptcha.v1"; export interface GetCaptchaRequest { /** ID of the Captcha resource to return. */ captchaId: string; } export interface ListCaptchasRequest { /** * ID of the folder that the captcha belongs to. * Currently page_size, page_token, filter and order_by are not supported and List method will return all captchas in the folder. */ folderId: string; } export interface ListCaptchasResponse { /** * List of Captcha resources. * Currently next_page_token is not supported and List method will return all captchas in the folder. */ resources: Captcha[]; } export interface CreateCaptchaRequest { /** ID of the folder to create a captcha in. */ folderId: string; /** * Name of the captcha. * The name must be unique within the folder. */ name: string; /** List of allowed host names, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation). */ allowedSites: string[]; /** Complexity of the captcha. */ complexity: CaptchaComplexity; /** JSON with variables to define the captcha appearance. For more details see generated JSON in cloud console. */ styleJson: string; /** Turn off host name check, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation). */ turnOffHostnameCheck: boolean; /** Basic check type of the captcha. */ preCheckType: CaptchaPreCheckType; /** Additional task type of the captcha. */ challengeType: CaptchaChallengeType; /** List of security rules. */ securityRules: SecurityRule[]; /** Determines whether captcha is protected from being deleted. */ deletionProtection: boolean; /** List of variants to use in security_rules */ overrideVariants: OverrideVariant[]; } export interface CreateCaptchaMetadata { /** ID of the captcha that is being created. */ captchaId: string; } export interface DeleteCaptchaRequest { /** ID of the captcha to delete. */ captchaId: string; } export interface DeleteCaptchaMetadata { /** ID of the Captcha resource that is being deleted. */ captchaId: string; } export interface UpdateCaptchaRequest { /** ID of the captcha to update. */ captchaId: string; /** Field mask that specifies which fields of the Captcha resource are going to be updated. */ updateMask?: FieldMask; /** * Name of the captcha. * The name must be unique within the folder. */ name: string; /** List of allowed host names, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation). */ allowedSites: string[]; /** Complexity of the captcha. */ complexity: CaptchaComplexity; /** JSON with variables to define the captcha appearance. For more details see generated JSON in cloud console. */ styleJson: string; /** Turn off host name check, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation). */ turnOffHostnameCheck: boolean; /** Basic check type of the captcha. */ preCheckType: CaptchaPreCheckType; /** Additional task type of the captcha. */ challengeType: CaptchaChallengeType; /** List of security rules. */ securityRules: SecurityRule[]; /** Determines whether captcha is protected from being deleted. */ deletionProtection: boolean; /** List of variants to use in security_rules */ overrideVariants: OverrideVariant[]; } export interface UpdateCaptchaMetadata { /** ID of the Captcha resource that is being updated. */ captchaId: string; } export declare const GetCaptchaRequest: { encode(message: GetCaptchaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetCaptchaRequest; fromJSON(object: any): GetCaptchaRequest; toJSON(message: GetCaptchaRequest): unknown; fromPartial, never>>(object: I): GetCaptchaRequest; }; export declare const ListCaptchasRequest: { encode(message: ListCaptchasRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListCaptchasRequest; fromJSON(object: any): ListCaptchasRequest; toJSON(message: ListCaptchasRequest): unknown; fromPartial, never>>(object: I): ListCaptchasRequest; }; export declare const ListCaptchasResponse: { encode(message: ListCaptchasResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListCaptchasResponse; fromJSON(object: any): ListCaptchasResponse; toJSON(message: ListCaptchasResponse): unknown; fromPartial, never>) | undefined; complexity?: CaptchaComplexity | undefined; styleJson?: string | undefined; suspend?: boolean | undefined; turnOffHostnameCheck?: boolean | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; securityRules?: ({ name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: { host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } | undefined; overrideVariantUuid?: string | undefined; }[] & ({ name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: { host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } | undefined; overrideVariantUuid?: string | undefined; } & { name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: ({ host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } & { host?: ({ hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } & { hosts?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] & ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; uri?: ({ path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } & { path?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; queries?: ({ key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] & ({ key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; } & { key?: string | undefined; value?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; headers?: ({ name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] & ({ name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; } & { name?: string | undefined; value?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; sourceIp?: ({ ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } & { ipRangesMatch?: ({ ipRanges?: string[] | undefined; } & { ipRanges?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; ipRangesNotMatch?: ({ ipRanges?: string[] | undefined; } & { ipRanges?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; geoIpMatch?: ({ locations?: string[] | undefined; } & { locations?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; geoIpNotMatch?: ({ locations?: string[] | undefined; } & { locations?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; overrideVariantUuid?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; deletionProtection?: boolean | undefined; overrideVariants?: ({ uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; }[] & ({ uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; } & { uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): ListCaptchasResponse; }; export declare const CreateCaptchaRequest: { encode(message: CreateCaptchaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateCaptchaRequest; fromJSON(object: any): CreateCaptchaRequest; toJSON(message: CreateCaptchaRequest): unknown; fromPartial, never>) | undefined; complexity?: CaptchaComplexity | undefined; styleJson?: string | undefined; turnOffHostnameCheck?: boolean | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; securityRules?: ({ name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: { host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } | undefined; overrideVariantUuid?: string | undefined; }[] & ({ name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: { host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } | undefined; overrideVariantUuid?: string | undefined; } & { name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: ({ host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } & { host?: ({ hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } & { hosts?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] & ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; uri?: ({ path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } & { path?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; queries?: ({ key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] & ({ key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; } & { key?: string | undefined; value?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; headers?: ({ name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] & ({ name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; } & { name?: string | undefined; value?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; sourceIp?: ({ ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } & { ipRangesMatch?: ({ ipRanges?: string[] | undefined; } & { ipRanges?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; ipRangesNotMatch?: ({ ipRanges?: string[] | undefined; } & { ipRanges?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; geoIpMatch?: ({ locations?: string[] | undefined; } & { locations?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; geoIpNotMatch?: ({ locations?: string[] | undefined; } & { locations?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; overrideVariantUuid?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; deletionProtection?: boolean | undefined; overrideVariants?: ({ uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; }[] & ({ uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; } & { uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): CreateCaptchaRequest; }; export declare const CreateCaptchaMetadata: { encode(message: CreateCaptchaMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateCaptchaMetadata; fromJSON(object: any): CreateCaptchaMetadata; toJSON(message: CreateCaptchaMetadata): unknown; fromPartial, never>>(object: I): CreateCaptchaMetadata; }; export declare const DeleteCaptchaRequest: { encode(message: DeleteCaptchaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteCaptchaRequest; fromJSON(object: any): DeleteCaptchaRequest; toJSON(message: DeleteCaptchaRequest): unknown; fromPartial, never>>(object: I): DeleteCaptchaRequest; }; export declare const DeleteCaptchaMetadata: { encode(message: DeleteCaptchaMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteCaptchaMetadata; fromJSON(object: any): DeleteCaptchaMetadata; toJSON(message: DeleteCaptchaMetadata): unknown; fromPartial, never>>(object: I): DeleteCaptchaMetadata; }; export declare const UpdateCaptchaRequest: { encode(message: UpdateCaptchaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateCaptchaRequest; fromJSON(object: any): UpdateCaptchaRequest; toJSON(message: UpdateCaptchaRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; allowedSites?: (string[] & string[] & Record, never>) | undefined; complexity?: CaptchaComplexity | undefined; styleJson?: string | undefined; turnOffHostnameCheck?: boolean | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; securityRules?: ({ name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: { host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } | undefined; overrideVariantUuid?: string | undefined; }[] & ({ name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: { host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } | undefined; overrideVariantUuid?: string | undefined; } & { name?: string | undefined; priority?: number | undefined; description?: string | undefined; condition?: ({ host?: { hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } | undefined; uri?: { path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } | undefined; headers?: { name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; sourceIp?: { ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } | undefined; } & { host?: ({ hosts?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] | undefined; } & { hosts?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; }[] & ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; uri?: ({ path?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; queries?: { key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] | undefined; } & { path?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; queries?: ({ key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] & ({ key?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; } & { key?: string | undefined; value?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; headers?: ({ name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; }[] & ({ name?: string | undefined; value?: { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } | undefined; } & { name?: string | undefined; value?: ({ exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & { exactMatch?: string | undefined; exactNotMatch?: string | undefined; prefixMatch?: string | undefined; prefixNotMatch?: string | undefined; pireRegexMatch?: string | undefined; pireRegexNotMatch?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; sourceIp?: ({ ipRangesMatch?: { ipRanges?: string[] | undefined; } | undefined; ipRangesNotMatch?: { ipRanges?: string[] | undefined; } | undefined; geoIpMatch?: { locations?: string[] | undefined; } | undefined; geoIpNotMatch?: { locations?: string[] | undefined; } | undefined; } & { ipRangesMatch?: ({ ipRanges?: string[] | undefined; } & { ipRanges?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; ipRangesNotMatch?: ({ ipRanges?: string[] | undefined; } & { ipRanges?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; geoIpMatch?: ({ locations?: string[] | undefined; } & { locations?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; geoIpNotMatch?: ({ locations?: string[] | undefined; } & { locations?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; overrideVariantUuid?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; deletionProtection?: boolean | undefined; overrideVariants?: ({ uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; }[] & ({ uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; } & { uuid?: string | undefined; description?: string | undefined; complexity?: CaptchaComplexity | undefined; preCheckType?: CaptchaPreCheckType | undefined; challengeType?: CaptchaChallengeType | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): UpdateCaptchaRequest; }; export declare const UpdateCaptchaMetadata: { encode(message: UpdateCaptchaMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateCaptchaMetadata; fromJSON(object: any): UpdateCaptchaMetadata; toJSON(message: UpdateCaptchaMetadata): unknown; fromPartial, never>>(object: I): UpdateCaptchaMetadata; }; /** A set of methods for managing Captcha resources. */ export declare const CaptchaServiceService: { /** Returns the specified Captcha resource. */ readonly get: { readonly path: "/yandex.cloud.smartcaptcha.v1.CaptchaService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCaptchaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetCaptchaRequest; readonly responseSerialize: (value: Captcha) => Buffer; readonly responseDeserialize: (value: Buffer) => Captcha; }; /** Returns the secret data of specified Captcha resource. */ readonly getSecretKey: { readonly path: "/yandex.cloud.smartcaptcha.v1.CaptchaService/GetSecretKey"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCaptchaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetCaptchaRequest; readonly responseSerialize: (value: CaptchaSecretKey) => Buffer; readonly responseDeserialize: (value: Buffer) => CaptchaSecretKey; }; /** Retrieves the list of Captcha resources in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.smartcaptcha.v1.CaptchaService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCaptchasRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListCaptchasRequest; readonly responseSerialize: (value: ListCaptchasResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCaptchasResponse; }; /** Creates a captcha in the specified folder using the data specified in the request. */ readonly create: { readonly path: "/yandex.cloud.smartcaptcha.v1.CaptchaService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateCaptchaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateCaptchaRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified captcha. */ readonly update: { readonly path: "/yandex.cloud.smartcaptcha.v1.CaptchaService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateCaptchaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateCaptchaRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified captcha. */ readonly delete: { readonly path: "/yandex.cloud.smartcaptcha.v1.CaptchaService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteCaptchaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteCaptchaRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface CaptchaServiceServer extends UntypedServiceImplementation { /** Returns the specified Captcha resource. */ get: handleUnaryCall; /** Returns the secret data of specified Captcha resource. */ getSecretKey: handleUnaryCall; /** Retrieves the list of Captcha resources in the specified folder. */ list: handleUnaryCall; /** Creates a captcha in the specified folder using the data specified in the request. */ create: handleUnaryCall; /** Updates the specified captcha. */ update: handleUnaryCall; /** Deletes the specified captcha. */ delete: handleUnaryCall; } export interface CaptchaServiceClient extends Client { /** Returns the specified Captcha resource. */ get(request: GetCaptchaRequest, callback: (error: ServiceError | null, response: Captcha) => void): ClientUnaryCall; get(request: GetCaptchaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Captcha) => void): ClientUnaryCall; get(request: GetCaptchaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Captcha) => void): ClientUnaryCall; /** Returns the secret data of specified Captcha resource. */ getSecretKey(request: GetCaptchaRequest, callback: (error: ServiceError | null, response: CaptchaSecretKey) => void): ClientUnaryCall; getSecretKey(request: GetCaptchaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CaptchaSecretKey) => void): ClientUnaryCall; getSecretKey(request: GetCaptchaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: CaptchaSecretKey) => void): ClientUnaryCall; /** Retrieves the list of Captcha resources in the specified folder. */ list(request: ListCaptchasRequest, callback: (error: ServiceError | null, response: ListCaptchasResponse) => void): ClientUnaryCall; list(request: ListCaptchasRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListCaptchasResponse) => void): ClientUnaryCall; list(request: ListCaptchasRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListCaptchasResponse) => void): ClientUnaryCall; /** Creates a captcha in the specified folder using the data specified in the request. */ create(request: CreateCaptchaRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateCaptchaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateCaptchaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified captcha. */ update(request: UpdateCaptchaRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateCaptchaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateCaptchaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified captcha. */ delete(request: DeleteCaptchaRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteCaptchaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteCaptchaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const CaptchaServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): CaptchaServiceClient; service: typeof CaptchaServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};