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

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

export type WorkflowBulkArchiveRequest = {
  /**
   * List of workflow IDs to archive
   */
  workflowIds: Array<string>;
};

/** @internal */
export type WorkflowBulkArchiveRequest$Outbound = {
  workflow_ids: Array<string>;
};

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

export function workflowBulkArchiveRequestToJSON(
  workflowBulkArchiveRequest: WorkflowBulkArchiveRequest,
): string {
  return JSON.stringify(
    WorkflowBulkArchiveRequest$outboundSchema.parse(workflowBulkArchiveRequest),
  );
}
