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

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

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

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

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

export function workflowBulkUnarchiveRequestToJSON(
  workflowBulkUnarchiveRequest: WorkflowBulkUnarchiveRequest,
): string {
  return JSON.stringify(
    WorkflowBulkUnarchiveRequest$outboundSchema.parse(
      workflowBulkUnarchiveRequest,
    ),
  );
}
