/*
 * 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";
import * as components from "../components/index.js";
/** @internal */
export const ListTriggerGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListTriggerGlobals$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 ListTriggerGlobals$;
(function (ListTriggerGlobals$) {
    /** @deprecated use `ListTriggerGlobals$inboundSchema` instead. */
    ListTriggerGlobals$.inboundSchema = ListTriggerGlobals$inboundSchema;
    /** @deprecated use `ListTriggerGlobals$outboundSchema` instead. */
    ListTriggerGlobals$.outboundSchema = ListTriggerGlobals$outboundSchema;
})(ListTriggerGlobals$ || (ListTriggerGlobals$ = {}));
export function listTriggerGlobalsToJSON(listTriggerGlobals) {
    return JSON.stringify(ListTriggerGlobals$outboundSchema.parse(listTriggerGlobals));
}
export function listTriggerGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListTriggerGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListTriggerGlobals' from JSON`);
}
/** @internal */
export const ListTriggerRequest$inboundSchema = z.object({
    event_type: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "event_type": "eventType",
    });
});
/** @internal */
export const ListTriggerRequest$outboundSchema = z.object({
    eventType: z.string().optional(),
}).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 ListTriggerRequest$;
(function (ListTriggerRequest$) {
    /** @deprecated use `ListTriggerRequest$inboundSchema` instead. */
    ListTriggerRequest$.inboundSchema = ListTriggerRequest$inboundSchema;
    /** @deprecated use `ListTriggerRequest$outboundSchema` instead. */
    ListTriggerRequest$.outboundSchema = ListTriggerRequest$outboundSchema;
})(ListTriggerRequest$ || (ListTriggerRequest$ = {}));
export function listTriggerRequestToJSON(listTriggerRequest) {
    return JSON.stringify(ListTriggerRequest$outboundSchema.parse(listTriggerRequest));
}
export function listTriggerRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListTriggerRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListTriggerRequest' from JSON`);
}
/** @internal */
export const ListTriggerResponse$inboundSchema = z.object({
    triggers: z.array(components.TriggerInfo$inboundSchema),
    total: z.number().int(),
});
/** @internal */
export const ListTriggerResponse$outboundSchema = z.object({
    triggers: z.array(components.TriggerInfo$outboundSchema),
    total: z.number().int(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListTriggerResponse$;
(function (ListTriggerResponse$) {
    /** @deprecated use `ListTriggerResponse$inboundSchema` instead. */
    ListTriggerResponse$.inboundSchema = ListTriggerResponse$inboundSchema;
    /** @deprecated use `ListTriggerResponse$outboundSchema` instead. */
    ListTriggerResponse$.outboundSchema = ListTriggerResponse$outboundSchema;
})(ListTriggerResponse$ || (ListTriggerResponse$ = {}));
export function listTriggerResponseToJSON(listTriggerResponse) {
    return JSON.stringify(ListTriggerResponse$outboundSchema.parse(listTriggerResponse));
}
export function listTriggerResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListTriggerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListTriggerResponse' from JSON`);
}
//# sourceMappingURL=listtrigger.js.map