/*
 * 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 UpdateTriggerGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const UpdateTriggerGlobals$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 UpdateTriggerGlobals$;
(function (UpdateTriggerGlobals$) {
    /** @deprecated use `UpdateTriggerGlobals$inboundSchema` instead. */
    UpdateTriggerGlobals$.inboundSchema = UpdateTriggerGlobals$inboundSchema;
    /** @deprecated use `UpdateTriggerGlobals$outboundSchema` instead. */
    UpdateTriggerGlobals$.outboundSchema = UpdateTriggerGlobals$outboundSchema;
})(UpdateTriggerGlobals$ || (UpdateTriggerGlobals$ = {}));
export function updateTriggerGlobalsToJSON(updateTriggerGlobals) {
    return JSON.stringify(UpdateTriggerGlobals$outboundSchema.parse(updateTriggerGlobals));
}
export function updateTriggerGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTriggerGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerGlobals' from JSON`);
}
/** @internal */
export const UpdateTriggerRequestBody$inboundSchema = z.object({
    new_uri: z.string(),
}).transform((v) => {
    return remap$(v, {
        "new_uri": "newUri",
    });
});
/** @internal */
export const UpdateTriggerRequestBody$outboundSchema = z.object({
    newUri: z.string(),
}).transform((v) => {
    return remap$(v, {
        newUri: "new_uri",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateTriggerRequestBody$;
(function (UpdateTriggerRequestBody$) {
    /** @deprecated use `UpdateTriggerRequestBody$inboundSchema` instead. */
    UpdateTriggerRequestBody$.inboundSchema = UpdateTriggerRequestBody$inboundSchema;
    /** @deprecated use `UpdateTriggerRequestBody$outboundSchema` instead. */
    UpdateTriggerRequestBody$.outboundSchema = UpdateTriggerRequestBody$outboundSchema;
})(UpdateTriggerRequestBody$ || (UpdateTriggerRequestBody$ = {}));
export function updateTriggerRequestBodyToJSON(updateTriggerRequestBody) {
    return JSON.stringify(UpdateTriggerRequestBody$outboundSchema.parse(updateTriggerRequestBody));
}
export function updateTriggerRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTriggerRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerRequestBody' from JSON`);
}
/** @internal */
export const UpdateTriggerRequest$inboundSchema = z.object({
    id: z.string(),
    RequestBody: z.lazy(() => UpdateTriggerRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateTriggerRequest$outboundSchema = z.object({
    id: z.string(),
    requestBody: z.lazy(() => UpdateTriggerRequestBody$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 UpdateTriggerRequest$;
(function (UpdateTriggerRequest$) {
    /** @deprecated use `UpdateTriggerRequest$inboundSchema` instead. */
    UpdateTriggerRequest$.inboundSchema = UpdateTriggerRequest$inboundSchema;
    /** @deprecated use `UpdateTriggerRequest$outboundSchema` instead. */
    UpdateTriggerRequest$.outboundSchema = UpdateTriggerRequest$outboundSchema;
})(UpdateTriggerRequest$ || (UpdateTriggerRequest$ = {}));
export function updateTriggerRequestToJSON(updateTriggerRequest) {
    return JSON.stringify(UpdateTriggerRequest$outboundSchema.parse(updateTriggerRequest));
}
export function updateTriggerRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTriggerRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerRequest' from JSON`);
}
/** @internal */
export const UpdateTriggerResponse$inboundSchema = z.object({
    message: z.string(),
});
/** @internal */
export const UpdateTriggerResponse$outboundSchema = z.object({
    message: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateTriggerResponse$;
(function (UpdateTriggerResponse$) {
    /** @deprecated use `UpdateTriggerResponse$inboundSchema` instead. */
    UpdateTriggerResponse$.inboundSchema = UpdateTriggerResponse$inboundSchema;
    /** @deprecated use `UpdateTriggerResponse$outboundSchema` instead. */
    UpdateTriggerResponse$.outboundSchema = UpdateTriggerResponse$outboundSchema;
})(UpdateTriggerResponse$ || (UpdateTriggerResponse$ = {}));
export function updateTriggerResponseToJSON(updateTriggerResponse) {
    return JSON.stringify(UpdateTriggerResponse$outboundSchema.parse(updateTriggerResponse));
}
export function updateTriggerResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTriggerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerResponse' from JSON`);
}
//# sourceMappingURL=updatetrigger.js.map