"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.connectSessionCreateFromJSON = exports.connectSessionCreateToJSON = exports.ConnectSessionCreate$ = exports.ConnectSessionCreate$outboundSchema = exports.ConnectSessionCreate$inboundSchema = exports.connectSessionCreateMetadataFromJSON = exports.connectSessionCreateMetadataToJSON = exports.ConnectSessionCreateMetadata$ = exports.ConnectSessionCreateMetadata$outboundSchema = exports.ConnectSessionCreateMetadata$inboundSchema = exports.ConnectSessionCreateCategories$ = exports.ConnectSessionCreateCategories$outboundSchema = exports.ConnectSessionCreateCategories$inboundSchema = exports.ConnectSessionCreateCategories = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
var ConnectSessionCreateCategories;
(function (ConnectSessionCreateCategories) {
    ConnectSessionCreateCategories["Ats"] = "ats";
    ConnectSessionCreateCategories["Hris"] = "hris";
    ConnectSessionCreateCategories["HrisLegacy"] = "hris-legacy";
    ConnectSessionCreateCategories["Crm"] = "crm";
    ConnectSessionCreateCategories["Iam"] = "iam";
    ConnectSessionCreateCategories["Marketing"] = "marketing";
    ConnectSessionCreateCategories["Lms"] = "lms";
    ConnectSessionCreateCategories["Stackone"] = "stackone";
    ConnectSessionCreateCategories["Documents"] = "documents";
    ConnectSessionCreateCategories["Ticketing"] = "ticketing";
    ConnectSessionCreateCategories["Screening"] = "screening";
    ConnectSessionCreateCategories["Messaging"] = "messaging";
})(ConnectSessionCreateCategories || (exports.ConnectSessionCreateCategories = ConnectSessionCreateCategories = {}));
/** @internal */
exports.ConnectSessionCreateCategories$inboundSchema = z.nativeEnum(ConnectSessionCreateCategories);
/** @internal */
exports.ConnectSessionCreateCategories$outboundSchema = exports.ConnectSessionCreateCategories$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ConnectSessionCreateCategories$;
(function (ConnectSessionCreateCategories$) {
    /** @deprecated use `ConnectSessionCreateCategories$inboundSchema` instead. */
    ConnectSessionCreateCategories$.inboundSchema = exports.ConnectSessionCreateCategories$inboundSchema;
    /** @deprecated use `ConnectSessionCreateCategories$outboundSchema` instead. */
    ConnectSessionCreateCategories$.outboundSchema = exports.ConnectSessionCreateCategories$outboundSchema;
})(ConnectSessionCreateCategories$ || (exports.ConnectSessionCreateCategories$ = ConnectSessionCreateCategories$ = {}));
/** @internal */
exports.ConnectSessionCreateMetadata$inboundSchema = z.object({});
/** @internal */
exports.ConnectSessionCreateMetadata$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ConnectSessionCreateMetadata$;
(function (ConnectSessionCreateMetadata$) {
    /** @deprecated use `ConnectSessionCreateMetadata$inboundSchema` instead. */
    ConnectSessionCreateMetadata$.inboundSchema = exports.ConnectSessionCreateMetadata$inboundSchema;
    /** @deprecated use `ConnectSessionCreateMetadata$outboundSchema` instead. */
    ConnectSessionCreateMetadata$.outboundSchema = exports.ConnectSessionCreateMetadata$outboundSchema;
})(ConnectSessionCreateMetadata$ || (exports.ConnectSessionCreateMetadata$ = ConnectSessionCreateMetadata$ = {}));
function connectSessionCreateMetadataToJSON(connectSessionCreateMetadata) {
    return JSON.stringify(exports.ConnectSessionCreateMetadata$outboundSchema.parse(connectSessionCreateMetadata));
}
exports.connectSessionCreateMetadataToJSON = connectSessionCreateMetadataToJSON;
function connectSessionCreateMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConnectSessionCreateMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectSessionCreateMetadata' from JSON`);
}
exports.connectSessionCreateMetadataFromJSON = connectSessionCreateMetadataFromJSON;
/** @internal */
exports.ConnectSessionCreate$inboundSchema = z.object({
    account_id: z.nullable(z.string()).optional(),
    categories: z.nullable(z.array(exports.ConnectSessionCreateCategories$inboundSchema))
        .optional(),
    expires_in: z.nullable(z.number().default(1800)),
    label: z.nullable(z.string()).optional(),
    metadata: z.nullable(z.lazy(() => exports.ConnectSessionCreateMetadata$inboundSchema))
        .optional(),
    multiple: z.nullable(z.boolean().default(false)),
    origin_owner_id: z.string(),
    origin_owner_name: z.string(),
    origin_username: z.nullable(z.string()).optional(),
    provider: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "account_id": "accountId",
        "expires_in": "expiresIn",
        "origin_owner_id": "originOwnerId",
        "origin_owner_name": "originOwnerName",
        "origin_username": "originUsername",
    });
});
/** @internal */
exports.ConnectSessionCreate$outboundSchema = z.object({
    accountId: z.nullable(z.string()).optional(),
    categories: z.nullable(z.array(exports.ConnectSessionCreateCategories$outboundSchema))
        .optional(),
    expiresIn: z.nullable(z.number().default(1800)),
    label: z.nullable(z.string()).optional(),
    metadata: z.nullable(z.lazy(() => exports.ConnectSessionCreateMetadata$outboundSchema)).optional(),
    multiple: z.nullable(z.boolean().default(false)),
    originOwnerId: z.string(),
    originOwnerName: z.string(),
    originUsername: z.nullable(z.string()).optional(),
    provider: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        accountId: "account_id",
        expiresIn: "expires_in",
        originOwnerId: "origin_owner_id",
        originOwnerName: "origin_owner_name",
        originUsername: "origin_username",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ConnectSessionCreate$;
(function (ConnectSessionCreate$) {
    /** @deprecated use `ConnectSessionCreate$inboundSchema` instead. */
    ConnectSessionCreate$.inboundSchema = exports.ConnectSessionCreate$inboundSchema;
    /** @deprecated use `ConnectSessionCreate$outboundSchema` instead. */
    ConnectSessionCreate$.outboundSchema = exports.ConnectSessionCreate$outboundSchema;
})(ConnectSessionCreate$ || (exports.ConnectSessionCreate$ = ConnectSessionCreate$ = {}));
function connectSessionCreateToJSON(connectSessionCreate) {
    return JSON.stringify(exports.ConnectSessionCreate$outboundSchema.parse(connectSessionCreate));
}
exports.connectSessionCreateToJSON = connectSessionCreateToJSON;
function connectSessionCreateFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConnectSessionCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectSessionCreate' from JSON`);
}
exports.connectSessionCreateFromJSON = connectSessionCreateFromJSON;
//# sourceMappingURL=connectsessioncreate.js.map