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

import * as z from "zod/v3";

export type GetWorkflowInstanceRequest = {
  /**
   * The unique identifier of the account.
   */
  accountId?: string | undefined;
  workflowId?: string | undefined;
  /**
   * Unique identifier for the workflow instance
   */
  instanceId: string;
};

/** @internal */
export type GetWorkflowInstanceRequest$Outbound = {
  accountId: string;
  workflowId: string;
  instanceId: string;
};

/** @internal */
export const GetWorkflowInstanceRequest$outboundSchema: z.ZodType<
  GetWorkflowInstanceRequest$Outbound,
  z.ZodTypeDef,
  GetWorkflowInstanceRequest
> = z.object({
  accountId: z.string().default("00000000-0000-0000-0000-000000000000"),
  workflowId: z.string().default("00000000-0000-0000-0000-000000000000"),
  instanceId: z.string(),
});

export function getWorkflowInstanceRequestToJSON(
  getWorkflowInstanceRequest: GetWorkflowInstanceRequest,
): string {
  return JSON.stringify(
    GetWorkflowInstanceRequest$outboundSchema.parse(getWorkflowInstanceRequest),
  );
}
