"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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssignResourceToUserRequest$ = exports.AssignResourceToUserRequest$outboundSchema = exports.AssignResourceToUserRequest$inboundSchema = exports.AssignResourceToUserRequestBody$ = exports.AssignResourceToUserRequestBody$outboundSchema = exports.AssignResourceToUserRequestBody$inboundSchema = exports.AssignResourceToUserResource$ = exports.AssignResourceToUserResource$outboundSchema = exports.AssignResourceToUserResource$inboundSchema = void 0;
exports.assignResourceToUserResourceToJSON = assignResourceToUserResourceToJSON;
exports.assignResourceToUserResourceFromJSON = assignResourceToUserResourceFromJSON;
exports.assignResourceToUserRequestBodyToJSON = assignResourceToUserRequestBodyToJSON;
exports.assignResourceToUserRequestBodyFromJSON = assignResourceToUserRequestBodyFromJSON;
exports.assignResourceToUserRequestToJSON = assignResourceToUserRequestToJSON;
exports.assignResourceToUserRequestFromJSON = assignResourceToUserRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.AssignResourceToUserResource$inboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: z.string().optional(),
});
/** @internal */
exports.AssignResourceToUserResource$outboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToUserResource$;
(function (AssignResourceToUserResource$) {
    /** @deprecated use `AssignResourceToUserResource$inboundSchema` instead. */
    AssignResourceToUserResource$.inboundSchema = exports.AssignResourceToUserResource$inboundSchema;
    /** @deprecated use `AssignResourceToUserResource$outboundSchema` instead. */
    AssignResourceToUserResource$.outboundSchema = exports.AssignResourceToUserResource$outboundSchema;
})(AssignResourceToUserResource$ || (exports.AssignResourceToUserResource$ = AssignResourceToUserResource$ = {}));
function assignResourceToUserResourceToJSON(assignResourceToUserResource) {
    return JSON.stringify(exports.AssignResourceToUserResource$outboundSchema.parse(assignResourceToUserResource));
}
function assignResourceToUserResourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToUserResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToUserResource' from JSON`);
}
/** @internal */
exports.AssignResourceToUserRequestBody$inboundSchema = z.object({
    resource: z.lazy(() => exports.AssignResourceToUserResource$inboundSchema),
});
/** @internal */
exports.AssignResourceToUserRequestBody$outboundSchema = z.object({
    resource: z.lazy(() => exports.AssignResourceToUserResource$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToUserRequestBody$;
(function (AssignResourceToUserRequestBody$) {
    /** @deprecated use `AssignResourceToUserRequestBody$inboundSchema` instead. */
    AssignResourceToUserRequestBody$.inboundSchema = exports.AssignResourceToUserRequestBody$inboundSchema;
    /** @deprecated use `AssignResourceToUserRequestBody$outboundSchema` instead. */
    AssignResourceToUserRequestBody$.outboundSchema = exports.AssignResourceToUserRequestBody$outboundSchema;
})(AssignResourceToUserRequestBody$ || (exports.AssignResourceToUserRequestBody$ = AssignResourceToUserRequestBody$ = {}));
function assignResourceToUserRequestBodyToJSON(assignResourceToUserRequestBody) {
    return JSON.stringify(exports.AssignResourceToUserRequestBody$outboundSchema.parse(assignResourceToUserRequestBody));
}
function assignResourceToUserRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToUserRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToUserRequestBody' from JSON`);
}
/** @internal */
exports.AssignResourceToUserRequest$inboundSchema = z.object({
    userSourcedId: z.string(),
    RequestBody: z.lazy(() => exports.AssignResourceToUserRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.AssignResourceToUserRequest$outboundSchema = z.object({
    userSourcedId: z.string(),
    requestBody: z.lazy(() => exports.AssignResourceToUserRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToUserRequest$;
(function (AssignResourceToUserRequest$) {
    /** @deprecated use `AssignResourceToUserRequest$inboundSchema` instead. */
    AssignResourceToUserRequest$.inboundSchema = exports.AssignResourceToUserRequest$inboundSchema;
    /** @deprecated use `AssignResourceToUserRequest$outboundSchema` instead. */
    AssignResourceToUserRequest$.outboundSchema = exports.AssignResourceToUserRequest$outboundSchema;
})(AssignResourceToUserRequest$ || (exports.AssignResourceToUserRequest$ = AssignResourceToUserRequest$ = {}));
function assignResourceToUserRequestToJSON(assignResourceToUserRequest) {
    return JSON.stringify(exports.AssignResourceToUserRequest$outboundSchema.parse(assignResourceToUserRequest));
}
function assignResourceToUserRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToUserRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToUserRequest' from JSON`);
}
//# sourceMappingURL=assignresourcetouser.js.map