/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 8e5dc92d9e2a
 */

import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";

export type UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest =
  {
    workflowIdentifier: string;
  };

/** @internal */
export type UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest$Outbound =
  {
    workflow_identifier: string;
  };

/** @internal */
export const UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest$outboundSchema:
  z.ZodType<
    UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest$Outbound,
    UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest
  > = z.object({
    workflowIdentifier: z.string(),
  }).transform((v) => {
    return remap$(v, {
      workflowIdentifier: "workflow_identifier",
    });
  });

export function unarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequestToJSON(
  unarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest:
    UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest,
): string {
  return JSON.stringify(
    UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest$outboundSchema
      .parse(unarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest),
  );
}
