/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const AssignResourceToUserResource$inboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: z.string().optional(),
});
/** @internal */
export const 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.
 */
export var AssignResourceToUserResource$;
(function (AssignResourceToUserResource$) {
    /** @deprecated use `AssignResourceToUserResource$inboundSchema` instead. */
    AssignResourceToUserResource$.inboundSchema = AssignResourceToUserResource$inboundSchema;
    /** @deprecated use `AssignResourceToUserResource$outboundSchema` instead. */
    AssignResourceToUserResource$.outboundSchema = AssignResourceToUserResource$outboundSchema;
})(AssignResourceToUserResource$ || (AssignResourceToUserResource$ = {}));
export function assignResourceToUserResourceToJSON(assignResourceToUserResource) {
    return JSON.stringify(AssignResourceToUserResource$outboundSchema.parse(assignResourceToUserResource));
}
export function assignResourceToUserResourceFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToUserResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToUserResource' from JSON`);
}
/** @internal */
export const AssignResourceToUserRequestBody$inboundSchema = z.object({
    resource: z.lazy(() => AssignResourceToUserResource$inboundSchema),
});
/** @internal */
export const AssignResourceToUserRequestBody$outboundSchema = z.object({
    resource: z.lazy(() => AssignResourceToUserResource$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AssignResourceToUserRequestBody$;
(function (AssignResourceToUserRequestBody$) {
    /** @deprecated use `AssignResourceToUserRequestBody$inboundSchema` instead. */
    AssignResourceToUserRequestBody$.inboundSchema = AssignResourceToUserRequestBody$inboundSchema;
    /** @deprecated use `AssignResourceToUserRequestBody$outboundSchema` instead. */
    AssignResourceToUserRequestBody$.outboundSchema = AssignResourceToUserRequestBody$outboundSchema;
})(AssignResourceToUserRequestBody$ || (AssignResourceToUserRequestBody$ = {}));
export function assignResourceToUserRequestBodyToJSON(assignResourceToUserRequestBody) {
    return JSON.stringify(AssignResourceToUserRequestBody$outboundSchema.parse(assignResourceToUserRequestBody));
}
export function assignResourceToUserRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToUserRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToUserRequestBody' from JSON`);
}
/** @internal */
export const AssignResourceToUserRequest$inboundSchema = z.object({
    userSourcedId: z.string(),
    RequestBody: z.lazy(() => AssignResourceToUserRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const AssignResourceToUserRequest$outboundSchema = z.object({
    userSourcedId: z.string(),
    requestBody: z.lazy(() => AssignResourceToUserRequestBody$outboundSchema),
}).transform((v) => {
    return 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.
 */
export var AssignResourceToUserRequest$;
(function (AssignResourceToUserRequest$) {
    /** @deprecated use `AssignResourceToUserRequest$inboundSchema` instead. */
    AssignResourceToUserRequest$.inboundSchema = AssignResourceToUserRequest$inboundSchema;
    /** @deprecated use `AssignResourceToUserRequest$outboundSchema` instead. */
    AssignResourceToUserRequest$.outboundSchema = AssignResourceToUserRequest$outboundSchema;
})(AssignResourceToUserRequest$ || (AssignResourceToUserRequest$ = {}));
export function assignResourceToUserRequestToJSON(assignResourceToUserRequest) {
    return JSON.stringify(AssignResourceToUserRequest$outboundSchema.parse(assignResourceToUserRequest));
}
export function assignResourceToUserRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToUserRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToUserRequest' from JSON`);
}
//# sourceMappingURL=assignresourcetouser.js.map