import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare enum ConnectSessionCreateCategories {
    Ats = "ats",
    Hris = "hris",
    HrisLegacy = "hris-legacy",
    Crm = "crm",
    Iam = "iam",
    Marketing = "marketing",
    Lms = "lms",
    Stackone = "stackone",
    Documents = "documents"
}
/**
 * The metadata for the connection
 */
export type Metadata = {};
export type ConnectSessionCreate = {
    /**
     * The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token.
     */
    accountId?: string | null | undefined;
    /**
     * The categories of the provider to connect to
     */
    categories?: Array<ConnectSessionCreateCategories> | null | undefined;
    /**
     * How long the session should be valid for in seconds
     */
    expiresIn?: number | null | undefined;
    /**
     * The label to be applied to the account associated with this connect session.
     */
    label?: string | null | undefined;
    /**
     * The metadata for the connection
     */
    metadata?: Metadata | null | undefined;
    /**
     * If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set.
     */
    multiple?: boolean | null | undefined;
    /**
     * The origin owner identifier
     */
    originOwnerId: string;
    /**
     * The origin owner name
     */
    originOwnerName: string;
    /**
     * The origin username
     */
    originUsername?: string | null | undefined;
    /**
     * The provider to connect to
     */
    provider?: string | null | undefined;
};
/** @internal */
export declare const ConnectSessionCreateCategories$inboundSchema: z.ZodNativeEnum<typeof ConnectSessionCreateCategories>;
/** @internal */
export declare const ConnectSessionCreateCategories$outboundSchema: z.ZodNativeEnum<typeof ConnectSessionCreateCategories>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ConnectSessionCreateCategories$ {
    /** @deprecated use `ConnectSessionCreateCategories$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<typeof ConnectSessionCreateCategories>;
    /** @deprecated use `ConnectSessionCreateCategories$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<typeof ConnectSessionCreateCategories>;
}
/** @internal */
export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
/** @internal */
export type Metadata$Outbound = {};
/** @internal */
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Metadata$ {
    /** @deprecated use `Metadata$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
    /** @deprecated use `Metadata$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
    /** @deprecated use `Metadata$Outbound` instead. */
    type Outbound = Metadata$Outbound;
}
export declare function metadataToJSON(metadata: Metadata): string;
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
/** @internal */
export declare const ConnectSessionCreate$inboundSchema: z.ZodType<ConnectSessionCreate, z.ZodTypeDef, unknown>;
/** @internal */
export type ConnectSessionCreate$Outbound = {
    account_id?: string | null | undefined;
    categories?: Array<string> | null | undefined;
    expires_in: number | null;
    label?: string | null | undefined;
    metadata?: Metadata$Outbound | null | undefined;
    multiple: boolean | null;
    origin_owner_id: string;
    origin_owner_name: string;
    origin_username?: string | null | undefined;
    provider?: string | null | undefined;
};
/** @internal */
export declare const ConnectSessionCreate$outboundSchema: z.ZodType<ConnectSessionCreate$Outbound, z.ZodTypeDef, ConnectSessionCreate>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ConnectSessionCreate$ {
    /** @deprecated use `ConnectSessionCreate$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ConnectSessionCreate, z.ZodTypeDef, unknown>;
    /** @deprecated use `ConnectSessionCreate$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ConnectSessionCreate$Outbound, z.ZodTypeDef, ConnectSessionCreate>;
    /** @deprecated use `ConnectSessionCreate$Outbound` instead. */
    type Outbound = ConnectSessionCreate$Outbound;
}
export declare function connectSessionCreateToJSON(connectSessionCreate: ConnectSessionCreate): string;
export declare function connectSessionCreateFromJSON(jsonString: string): SafeParseResult<ConnectSessionCreate, SDKValidationError>;
//# sourceMappingURL=connectsessioncreate.d.ts.map