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

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

export type ArchiveWorkflowV1WorkflowsWorkflowIdentifierArchivePutRequest = {
  workflowIdentifier: string;
};

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

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

export function archiveWorkflowV1WorkflowsWorkflowIdentifierArchivePutRequestToJSON(
  archiveWorkflowV1WorkflowsWorkflowIdentifierArchivePutRequest:
    ArchiveWorkflowV1WorkflowsWorkflowIdentifierArchivePutRequest,
): string {
  return JSON.stringify(
    ArchiveWorkflowV1WorkflowsWorkflowIdentifierArchivePutRequest$outboundSchema
      .parse(archiveWorkflowV1WorkflowsWorkflowIdentifierArchivePutRequest),
  );
}
