import _m0 from 'protobufjs/minimal';
import { Duration } from '../../../../../google/protobuf/duration';
export declare const protobufPackage = "yandex.cloud.organizationmanager.v1.saml";
export declare enum BindingType {
    BINDING_TYPE_UNSPECIFIED = 0,
    /** POST - HTTP POST binding. */
    POST = 1,
    /** REDIRECT - HTTP redirect binding. */
    REDIRECT = 2,
    /** ARTIFACT - HTTP artifact binding. */
    ARTIFACT = 3,
    UNRECOGNIZED = -1
}
export declare function bindingTypeFromJSON(object: any): BindingType;
export declare function bindingTypeToJSON(object: BindingType): string;
/**
 * A federation.
 * For more information, see [SAML-compatible identity federations](/docs/iam/concepts/federations).
 */
export interface Federation {
    /** ID of the federation. */
    id: string;
    /** ID of the organization that the federation belongs to. */
    organizationId: string;
    /** Name of the federation. */
    name: string;
    /** Description of the federation. */
    description: string;
    /** Creation timestamp. */
    createdAt?: Date;
    /**
     * Browser cookie lifetime in seconds.
     * If the cookie is still valid, the management console
     * authenticates the user immediately and redirects them to the home page.
     */
    cookieMaxAge?: Duration;
    /**
     * Add new users automatically on successful authentication.
     * The user becomes member of the organization automatically,
     * but you need to grant other roles to them.
     *
     * If the value is `false`, users who aren't added to the organization
     * can't log in, even if they have authenticated on your server.
     */
    autoCreateAccountOnLogin: boolean;
    /**
     * ID of the IdP server to be used for authentication.
     * The IdP server also responds to IAM with this ID after the user authenticates.
     */
    issuer: string;
    /**
     * Single sign-on endpoint binding type. Most Identity Providers support the `POST` binding type.
     *
     * SAML Binding is a mapping of a SAML protocol message onto standard messaging
     * formats and/or communications protocols.
     */
    ssoBinding: BindingType;
    /**
     * Single sign-on endpoint URL.
     * Specify the link to the IdP login page here.
     */
    ssoUrl: string;
    /** Federation security settings. */
    securitySettings?: FederationSecuritySettings;
    /** Use case insensitive Name IDs. */
    caseInsensitiveNameIds: boolean;
    /** Resource labels as `` key:value `` pairs. Maximum of 64 per resource. */
    labels: {
        [key: string]: string;
    };
}
export interface Federation_LabelsEntry {
    key: string;
    value: string;
}
/** Federation security settings. */
export interface FederationSecuritySettings {
    /** Enable encrypted assertions. */
    encryptedAssertions: boolean;
    /** Value parameter ForceAuthn in SAMLRequest. */
    forceAuthn: boolean;
}
export declare const Federation: {
    encode(message: Federation, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Federation;
    fromJSON(object: any): Federation;
    toJSON(message: Federation): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        organizationId?: string | undefined;
        name?: string | undefined;
        description?: string | undefined;
        createdAt?: Date | undefined;
        cookieMaxAge?: {
            seconds?: number | undefined;
            nanos?: number | undefined;
        } | undefined;
        autoCreateAccountOnLogin?: boolean | undefined;
        issuer?: string | undefined;
        ssoBinding?: BindingType | undefined;
        ssoUrl?: string | undefined;
        securitySettings?: {
            encryptedAssertions?: boolean | undefined;
            forceAuthn?: boolean | undefined;
        } | undefined;
        caseInsensitiveNameIds?: boolean | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
    } & {
        id?: string | undefined;
        organizationId?: string | undefined;
        name?: string | undefined;
        description?: string | undefined;
        createdAt?: Date | undefined;
        cookieMaxAge?: ({
            seconds?: number | undefined;
            nanos?: number | undefined;
        } & {
            seconds?: number | undefined;
            nanos?: number | undefined;
        } & Record<Exclude<keyof I["cookieMaxAge"], keyof Duration>, never>) | undefined;
        autoCreateAccountOnLogin?: boolean | undefined;
        issuer?: string | undefined;
        ssoBinding?: BindingType | undefined;
        ssoUrl?: string | undefined;
        securitySettings?: ({
            encryptedAssertions?: boolean | undefined;
            forceAuthn?: boolean | undefined;
        } & {
            encryptedAssertions?: boolean | undefined;
            forceAuthn?: boolean | undefined;
        } & Record<Exclude<keyof I["securitySettings"], keyof FederationSecuritySettings>, never>) | undefined;
        caseInsensitiveNameIds?: boolean | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Federation>, never>>(object: I): Federation;
};
export declare const Federation_LabelsEntry: {
    encode(message: Federation_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Federation_LabelsEntry;
    fromJSON(object: any): Federation_LabelsEntry;
    toJSON(message: Federation_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof Federation_LabelsEntry>, never>>(object: I): Federation_LabelsEntry;
};
export declare const FederationSecuritySettings: {
    encode(message: FederationSecuritySettings, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): FederationSecuritySettings;
    fromJSON(object: any): FederationSecuritySettings;
    toJSON(message: FederationSecuritySettings): unknown;
    fromPartial<I extends {
        encryptedAssertions?: boolean | undefined;
        forceAuthn?: boolean | undefined;
    } & {
        encryptedAssertions?: boolean | undefined;
        forceAuthn?: boolean | undefined;
    } & Record<Exclude<keyof I, keyof FederationSecuritySettings>, never>>(object: I): FederationSecuritySettings;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
export {};
