/*
 * 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 CreateTriggerGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateTriggerGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateTriggerGlobals$;
(function (CreateTriggerGlobals$) {
    /** @deprecated use `CreateTriggerGlobals$inboundSchema` instead. */
    CreateTriggerGlobals$.inboundSchema = CreateTriggerGlobals$inboundSchema;
    /** @deprecated use `CreateTriggerGlobals$outboundSchema` instead. */
    CreateTriggerGlobals$.outboundSchema = CreateTriggerGlobals$outboundSchema;
})(CreateTriggerGlobals$ || (CreateTriggerGlobals$ = {}));
export function createTriggerGlobalsToJSON(createTriggerGlobals) {
    return JSON.stringify(CreateTriggerGlobals$outboundSchema.parse(createTriggerGlobals));
}
export function createTriggerGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateTriggerGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTriggerGlobals' from JSON`);
}
/** @internal */
export const CreateTriggerRequest$inboundSchema = z.object({
    uri: z.string(),
    event_type: z.string(),
}).transform((v) => {
    return remap$(v, {
        "event_type": "eventType",
    });
});
/** @internal */
export const CreateTriggerRequest$outboundSchema = z.object({
    uri: z.string(),
    eventType: z.string(),
}).transform((v) => {
    return remap$(v, {
        eventType: "event_type",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateTriggerRequest$;
(function (CreateTriggerRequest$) {
    /** @deprecated use `CreateTriggerRequest$inboundSchema` instead. */
    CreateTriggerRequest$.inboundSchema = CreateTriggerRequest$inboundSchema;
    /** @deprecated use `CreateTriggerRequest$outboundSchema` instead. */
    CreateTriggerRequest$.outboundSchema = CreateTriggerRequest$outboundSchema;
})(CreateTriggerRequest$ || (CreateTriggerRequest$ = {}));
export function createTriggerRequestToJSON(createTriggerRequest) {
    return JSON.stringify(CreateTriggerRequest$outboundSchema.parse(createTriggerRequest));
}
export function createTriggerRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateTriggerRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTriggerRequest' from JSON`);
}
//# sourceMappingURL=createtrigger.js.map